Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sched: Do not use uninitialized boolean in waitpid(). From Juha Niskanen | Gregory Nutt | 2015-03-12 | 1 | -1/+1 |
| | |||||
* | Fix a case in mq_timedsend() where the return errno value was being overwritten | Gregory Nutt | 2015-03-10 | 2 | -3/+12 |
| | |||||
* | Reorder some operations to minimize a race condition | Gregory Nutt | 2015-03-10 | 2 | -41/+65 |
| | |||||
* | mq_timedsend(): Do check for time errors if the message queue is not full. ↵ | Gregory Nutt | 2015-03-10 | 3 | -74/+84 |
| | | | | Noted by Freddie Chopin | ||||
* | Move board_ prototypes from arch.h to board.h | Gregory Nutt | 2015-02-27 | 1 | -0/+1 |
| | |||||
* | Fix places where the errno value was being overwritten by subsequent actions ↵ | Gregory Nutt | 2015-02-25 | 1 | -10/+23 |
| | | | | so that the returned errno value was incorrect. From Max Neklyudov. | ||||
* | When an RTC is used, clock_systimespec() must subtract the basetime from the ↵ | Gregory Nutt | 2015-02-25 | 2 | -4/+44 |
| | | | | RTC time | ||||
* | Fix some time value changes; mostly changing greater than 1000000000 to ↵ | Gregory Nutt | 2015-02-20 | 3 | -5/+5 |
| | | | | greater than or equal to 1000000000. From Juha Niskanen | ||||
* | Networking: Divide net_intiialize() into net_setup() and net_initialize() to ↵ | Gregory Nutt | 2015-02-14 | 1 | -3/+15 |
| | | | | | | solve a chicken-and-egg problem. net_setup() must be caleld before up_initialize() is called so that networking data structures are ready to register new network devices. net_initialize() now does only timer related operations and is called AFTER up_initialize() where the timers are configured. This is really. | ||||
* | Update ChangeLog | Gregory Nutt | 2015-02-13 | 1 | -1/+3 |
| | |||||
* | Back out commit d998cbdfa6c10dbd8074dd43c39c23a006505987 | Gregory Nutt | 2015-02-13 | 1 | -6/+6 |
| | |||||
* | Move the initialization of the networking subsystem to AFTER up_initialize ↵ | Gregory Nutt | 2015-02-13 | 1 | -6/+6 |
| | | | | is called. Fromo Macs Neklyudov. | ||||
* | RTC: Remove all backdoor interfaces from rtc.h | Gregory Nutt | 2015-02-13 | 4 | -8/+3 |
| | |||||
* | Fix a problem in clock_systimer64 that occurs when (1) the 64-bit system ↵ | Gregory Nutt | 2015-02-13 | 1 | -4/+3 |
| | | | | | | | | time is enabled, and (2) the value of CONFIG_USEC_PER_TICK is less than 1 millisconds (such as when using the tickless mode of operation). In that case, the convertion of time to 64-bit millisecond value in clock_systmer64() causes some bad times to be returned. Time was converted to milliseconds, then to configured ticks. Precision was lost in the millisecond convertion. The fix is to first convert time to a 64-bit microsecond value, then to the configured tick value. Noted by David Sidrane. | ||||
* | gettimeofday() and settimeofday(): Move gittimeofdady() from sched/clock to ↵ | Gregory Nutt | 2015-02-12 | 2 | -114/+1 |
| | | | | | | libc/time. All remove gettimeofday() from NuttX system calls. It is only a wrapper around clock_settime() and does not need a trap. gettimeofday() is no longer tried as a core OS interface. gettimeofday has been decremented in POSIX 2008. settimeofday() was never part of POSIX, but I decided to add it to libc as well just for symmetry. | ||||
* | Convert the 64-bit usec limit to a 32-bit tick limit | Gregory Nutt | 2015-02-03 | 2 | -8/+9 |
| | |||||
* | Eliminates a warning. From Macs N | Gregory Nutt | 2015-02-03 | 1 | -0/+4 |
| | |||||
* | On my platform I have just 16-bit timer clocked at 32kHz. As result oneshot ↵ | Gregory Nutt | 2015-02-03 | 2 | -5/+35 |
| | | | | timer max delay is 2s. The patch adds limit of maximum ticks in sched_timer_start (nuttx/sched/sched/sched_timerexpiration.c). From Macs N. | ||||
* | clock_systimespec(): Fixes for compilation errors in certain ↵ | Gregory Nutt | 2015-01-30 | 1 | -1/+2 |
| | | | | configurations. From Macs N. | ||||
* | Fix backward calculation in the work queue timing. From Liio Chen via the ↵ | Gregory Nutt | 2015-01-27 | 1 | -5/+13 |
| | | | | PX4 repository | ||||
* | Semaphores: sem_waitirq.c must be built when signals are disabled. That is ↵ | Gregory Nutt | 2014-12-28 | 3 | -14/+13 |
| | | | | because not handles not only the case of semaphore wait being awakened by a signal, but also the case with sem_timedwait.c when the semaphore wait is awakened by a timeout. | ||||
* | Semahores: Remove a warning with SIGNALS are disabled | Gregory Nutt | 2014-12-28 | 1 | -2/+0 |
| | |||||
* | strncpy will not copy the terminating \0 into the destination if the source ↵ | Gregory Nutt | 2014-12-17 | 5 | -4/+10 |
| | | | | is larger than the size of the destination. Ensure that the last byte is always zero and let strncpy only copy CONFIG_TASK_NAME_SIZE bytes. The issue of unterminated names can be observed in ps when creating a pthread while CONFIG_TASK_NAME_SIZE is set to 8. | ||||
* | Sempahores: Add logic to clean up after task_delete() or pthread_cancel() ↵ | Gregory Nutt | 2014-12-13 | 7 | -22/+304 |
| | | | | if the task happens to be waiting on a semaphore when it is cancelled | ||||
* | Costmetic change to a comment | Gregory Nutt | 2014-12-13 | 1 | -1/+1 |
| | |||||
* | In message queue created return ENOSPC error if size exceeds the configured ↵ | Gregory Nutt | 2014-12-06 | 2 | -14/+20 |
| | | | | size of pre-allocatd messages; Use ENOSPC vs ENOMEM per OpenGroup.org. From Pierre-Noel Bouteville | ||||
* | msg type should be char * not void * in mq_send, mq_timedsend, mq_receive, ↵ | Gregory Nutt | 2014-12-05 | 7 | -27/+26 |
| | | | | and mq_timedreceive. Noted by Pierre-Noel Bouteville | ||||
* | Fix more issues detected by cppcheck | Gregory Nutt | 2014-11-25 | 1 | -5/+3 |
| | |||||
* | More fixes to problems noted by cppcheck. Some are kind of risky; some are ↵ | Gregory Nutt | 2014-11-25 | 4 | -5/+6 |
| | | | | real bugs. | ||||
* | Cosmetic chnages to comments | Gregory Nutt | 2014-11-20 | 1 | -0/+6 |
| | |||||
* | alling mq_timedreceived with immediate timeout was getting stuck and not | Gregory Nutt | 2014-11-19 | 1 | -2/+39 |
| | | | | | | | | | | | | | timeout. Immediate timeout is achieved by setting absolute timeout value to past time, for example abstime={ .tv_sec=0, .tv_nsec=0 }. However absolute time was converted to relative time using unsigned integer arithmetic and resulted large ticks count by clock_abstime2ticks, instead of expected negative ticks value. Patch corrects clock_abstime2ticks to return negative ticks, if absolute time is in the past. Signed-off-by: Jussi Kivilinna <jussi.kivilinna@haltian.com> | ||||
* | Fix some compile issues introduces with removal of CONFIG_MAX_TASK_ARGS | Gregory Nutt | 2014-11-14 | 1 | -1/+5 |
| | |||||
* | Fix some compile errors introduce in last commits | Gregory Nutt | 2014-11-13 | 1 | -1/+1 |
| | |||||
* | task_create: Don't even try if the accumulated size of the argument list is ↵ | Gregory Nutt | 2014-11-13 | 1 | -1/+8 |
| | | | | larger than the stack | ||||
* | vfork no longer depends on CONFIG_MAX_TASK_ARGS | Gregory Nutt | 2014-11-12 | 2 | -18/+51 |
| | |||||
* | task_start() no longer depends on CONFIG_MAX_TASK_ARGS | Gregory Nutt | 2014-11-12 | 1 | -0/+5 |
| | |||||
* | task_setup() no longer depends on CONFIG_MAX_TASK_ARGS | Gregory Nutt | 2014-11-12 | 1 | -8/+19 |
| | |||||
* | Remove CONFIG_MAX_TASK_ARGS from all Kconfigs and defconfigs | Gregory Nutt | 2014-11-12 | 1 | -7/+0 |
| | |||||
* | Fix an important bug in the watchdog creation logic | Gregory Nutt | 2014-11-10 | 1 | -1/+1 |
| | |||||
* | Fix incorrect comment | Gregory Nutt | 2014-11-07 | 1 | -3/+1 |
| | |||||
* | More fixes to tickless operation, alarm/mode code. From Brandon Warhurst | Gregory Nutt | 2014-10-23 | 1 | -1/+7 |
| | |||||
* | Fixes to tickless operation code. From Brandon Warhurst | Gregory Nutt | 2014-10-23 | 1 | -5/+5 |
| | |||||
* | Default for CONFIG_SCHED_HPWORK should be no | Gregory Nutt | 2014-10-14 | 1 | -1/+1 |
| | |||||
* | Add description of work queues to the porting guide. Update comments | Gregory Nutt | 2014-10-14 | 1 | -5/+5 |
| | |||||
* | Missing workqueue logic | Gregory Nutt | 2014-10-12 | 1 | -0/+3 |
| | |||||
* | Fix one missed name change from last big commit | Gregory Nutt | 2014-10-12 | 1 | -3/+3 |
| | |||||
* | Change naming of HP work queue configuration varaibles to be symmetric with ↵ | Gregory Nutt | 2014-10-11 | 2 | -7/+7 |
| | | | | LP work queue naming | ||||
* | Eliminate warnings | Gregory Nutt | 2014-10-11 | 1 | -1/+1 |
| | |||||
* | Rename CONFIG_SCHED_USRWORK to CONFIG_LIB_USRWORK | Gregory Nutt | 2014-10-11 | 2 | -4/+4 |
| | |||||
* | Decouple the user-space work queue from the kernel space work queues | Gregory Nutt | 2014-10-11 | 1 | -1/+170 |
| |