summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* timecounter: Merge FreeBSD change r282424Ian Lepore2017-10-122-6/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement a mechanism for making changes in the kernel<->driver PPS interface without breaking ABI or API compatibility with existing drivers. The existing data structures used to communicate between the kernel and driver portions of PPS processing contain no spare/padding fields and no flags field or other straightforward mechanism for communicating changes in the structures or behaviors of the code. This makes it difficult to MFC new features added to the PPS facility. ABI compatibility is important; out-of-tree drivers in module form are known to exist. (Note that the existing api_version field in the pps_params structure must contain the value mandated by RFC 2783 and any RFCs that come along after.) These changes introduce a pair of abi-version fields which are filled in by the driver and the kernel respectively to indicate the interface version. The driver sets its version field before calling the new pps_init_abi() function. That lets the kernel know how much of the pps_state structure is understood by the driver and it can avoid using newer fields at the end of the structure that it knows about if the driver is a lower version. The kernel fills in its version field during the init call, letting the driver know what features and data the kernel supports. To implement the new version information in a way that is backwards compatible with code from before these changes, the high bit of the lightly-used 'kcmode' field is repurposed as a flag bit that indicates the driver is aware of the abi versioning scheme. Basically if this bit is clear that indicates a "version 0" driver and if it is set the driver_abi field indicates the version. These changes also move the recently-added 'mtx' field of pps_state from the middle to the end of the structure, and make the kernel code that uses this field conditional on the driver being abi version 1 or higher. It changes the only driver currently supplying the mtx field, usb_serial, to use pps_init_abi(). Reviewed by: hselasky@ Update #3175.
* timecounter: Merge FreeBSD change r280012Ian Lepore2017-10-121-0/+1
| | | | | | Use sbuf_printf() for sysctl strings instead of stack buffers and snprintf(). Update #3175.
* timecounter: Merge FreeBSD change r279728Hans Petter Selasky2017-10-122-11/+8
| | | | | | | | | Add mutex support to the pps_ioctl() API in the kernel. Bump kernel version to reflect structure change. PR: 196897 MFC after: 1 week Update #3175.
* posix: Use right time format in adjtime()Sebastian Huber2017-10-121-4/+5
| | | | Update #2740.
* xz/README: Correct URLJoel Sherrill2017-10-111-1/+2
| | | | Closes #2829.
* posix: Include missing <limits.h>Sebastian Huber2017-10-111-0/+2
|
* score: Remove CPU_set_ControlSebastian Huber2017-10-1116-394/+12
| | | | | | Use Processor_mask instead. Update #2514.
* posix: Validate affinity sets by the schedulerSebastian Huber2017-10-112-18/+10
| | | | Update #2514.
* score: Add _Thread_queue_Dispatch_disable()Sebastian Huber2017-10-1012-46/+25
|
* posix: Unconditional thread attribute supportSebastian Huber2017-10-1013-100/+155
| | | | Update #2514.
* posix: Constify default thread processor affinitySebastian Huber2017-10-102-18/+3
| | | | | | | | Set default thread processor affinity to all processors of the pre-allocated set. This allows to constify the _POSIX_Threads_Default_attributes. Update #2514.
* posix: Simplify pthread_attr_setstack()Sebastian Huber2017-10-102-15/+2
| | | | | | | | | Simplify * pthread_attr_setstack(), and * pthread_attr_setstacksize(). Update #2514.
* posix: Remove rtems_pthread_attribute_compare()Sebastian Huber2017-10-093-104/+0
| | | | | Update #2514. Close #3174.
* posix: Simplify POSIX_API_ControlSebastian Huber2017-10-0914-58/+73
| | | | | | | | | | | | | | | | | | | | | | | | Return stack area via pthread_getattr_np(). Simplify * pthread_attr_setaffinity_np(), and * pthread_attr_getaffinity_np() and let the scheduler do the more sophisticated error checks. Make * pthread_setaffinity_np(), * pthread_getaffinity_np(), * pthread_attr_setaffinity_np(), and * pthread_attr_getaffinity_np() available in all configurations. Update #2514. Close #3145. Close #3168.
* score: Change Timestamp_Control to sbintime_tSebastian Huber2017-10-094-34/+43
| | | | | | | | The timestamp are based on the uptime. There is no need for a 64-bit seconds part. The signed 32-bit seconds part of the sbintime_t limits the uptime to roughly 68 years. Close #2740.
* score: Use struct timespec for TODSebastian Huber2017-10-098-69/+33
| | | | | | | Use the timestamps only for uptime based values. Use struct timespec for the absolute time values (TOD). Update #2740.
* score: Simplify _Timestamp_Add_to()Sebastian Huber2017-10-091-7/+1
| | | | Update #2740.
* posix: Resurrect signal supportSebastian Huber2017-10-061-0/+4
| | | | | This was accidentally removed during a merge conflict by 89fc9345dea5c675f8d93546fa3c723918d3279a.
* confdefs: Fix typoSebastian Huber2017-10-061-1/+1
|
* libdl: Fix warningsSebastian Huber2017-10-065-39/+47
| | | | Update #3155.
* libdl: Use 64-bit ELF on 64-bit targetsSebastian Huber2017-10-061-1/+5
| | | | Update #3155.
* rtems: Fix format warningsSebastian Huber2017-10-061-2/+2
| | | | Update #3111.
* posix: Implement self-contained POSIX mutexSebastian Huber2017-10-0525-464/+692
| | | | | | | | POSIX mutexes are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3112.
* posix: Implement self-contained POSIX condvarSebastian Huber2017-10-0519-373/+223
| | | | | | | | POSIX condition variables are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3113.
* posix: Implement self-contained POSIX rwlocksSebastian Huber2017-10-0530-437/+214
| | | | | | | | POSIX rwlocks are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3115.
* posix: Implement self-contained POSIX barriersSebastian Huber2017-10-0516-320/+182
| | | | | | | | POSIX barriers are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3114.
* posix: Implement self-contained POSIX semaphoresSebastian Huber2017-10-0523-521/+412
| | | | | | | | | | | | | | For semaphore object pointer and object validation see POSIX_SEMAPHORE_VALIDATE_OBJECT(). Destruction or close of a busy semaphore returns an error status. The object is not flushed. POSIX semaphores are now available in all configurations and no longer depend on --enable-posix. Update #2514. Update #3116.
* posix: Optimize pthread_once_tSebastian Huber2017-10-054-7/+4
| | | | | | Reduce size of pthread_once_t and make it zero-initialized. Update #3142.
* Enforce compatible Newlib versionSebastian Huber2017-10-051-0/+1
| | | | | | | | | | | | | This Newlib check ensures that we have a 64-bit time_t and self-contained POSIX synchronization objects. Update #2514. Update #3111. Update #3112. Update #3113. Update #3114. Update #3115. Update #3116.
* score: Make status codes unconditionalSebastian Huber2017-10-051-9/+2
| | | | | | | | The internal status codes encode a Classic rtems_status_code and error codes used by the POSIX and C11/C++11 APIs. In case the POSIX API is disabled, the C11/C++11 support must still work. Close #3167.
* posix: Fix aio_cancel()Sebastian Huber2017-10-041-1/+1
| | | | Update #3164.
* i2c: Add temperature sensor LM75A driverSebastian Huber2017-10-024-0/+329
| | | | Close #3163.
* i2c: Fix EEPROM driver program timeout handlingSebastian Huber2017-10-021-4/+13
| | | | | | | | The RTEMS_MILLISECONDS_TO_TICKS() macro doesn't round up. Do not use it to calculate the program timeout in ticks. Check program done condition after the timeout check to account for pre-emptions. Update #3162.
* i2c: Send MSB of address first for EEPROMsSebastian Huber2017-10-021-12/+21
| | | | Update #3161.
* libpci: fix pci device allocationDaniel Hellstrom2017-09-295-37/+32
| | | | | | | | | | The refactoring of pci_dev_create() was incorrect since the code relied on different defines before including pci/cfg.h. This reverts back to the original code having two pci_dev_create() one in auto and one in read library. confdefs.h selectes between the two libraries so both there is no link conflict. Updates #3029
* shell: Fix missing prototype warningSebastian Huber2017-09-281-0/+1
|
* network: Add missing forward declarationSebastian Huber2017-09-281-0/+1
|
* posix: Remove superfluous includesSebastian Huber2017-09-278-57/+18
|
* score: Simplify red-black tree debug supportSebastian Huber2017-09-274-16/+17
| | | | | | | | Make the RBTree_Node layout independent of RTEMS_DEBUG (and all other build configuration options). This allows the use of this structure in Newlib. Update #3112.
* posix: Remove superfluous includesSebastian Huber2017-09-272-14/+8
|
* score: Rename to _Scheduler_ControlSebastian Huber2017-09-277-15/+15
| | | | | | | Rename struct Scheduler_Control to _Scheduler_Control to allow its use in standard header files, e.g. <pthread.h>. Update #3112.
* posix shm: Add oflag to Shm_ControlJoel Sherrill2017-09-222-0/+2
|
* score: Include missing header fileSebastian Huber2017-09-221-0/+2
| | | | Update #3059.
* posix: Allow PTHREAD_PROCESS_SHARED for rwlocksSebastian Huber2017-09-221-23/+7
| | | | Close #3153.
* score: Include missing <limits.h>Sebastian Huber2017-09-191-0/+2
| | | | | Update #2132. Close #3140.
* Add "\n" to "\r\n" translation to rtems_putc()Sebastian Huber2017-09-191-1/+5
| | | | Update #3122.
* posix: Allow PTHREAD_PROCESS_SHARED for condvarSebastian Huber2017-09-151-2/+5
| | | | Close #3137.
* posix: Allow PTHREAD_PROCESS_SHARED for barriersSebastian Huber2017-09-151-6/+3
| | | | Close #3126.
* posix: Allow PTHREAD_PROCESS_SHARED for mutexesSebastian Huber2017-09-152-7/+18
| | | | Close #3125.
* libio: Remove rtems_libio_t::driverSebastian Huber2017-09-151-1/+0
| | | | | | This member was apparently unused. Close #3133.