summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: _CPU_Context_switch_to_first_task_smp()Sebastian Huber2014-02-056-41/+1
| | | | | Delete _CPU_Context_switch_to_first_task_smp() and use _CPU_Context_restore() instead.
* Add thread-local storage (TLS) supportSebastian Huber2014-02-0446-55/+521
| | | | | Tested and implemented on ARM, m68k, PowerPC and SPARC. Other architectures need more work.
* score: Add _Thread_Get_maximum_internal_threads()Sebastian Huber2014-02-042-11/+20
|
* score: Add _Heap_Size_with_overhead()Sebastian Huber2014-02-041-0/+23
|
* score: Add _Workspace_Allocate_aligned()Sebastian Huber2014-02-042-0/+16
|
* dosfs/fat.c: Remove use of register keywordJoel Sherrill2014-02-031-1/+1
|
* calloc.c: Remove use of register keywordJoel Sherrill2014-02-031-3/+3
|
* posix/*.c: Remove use of register keywordJoel Sherrill2014-02-0313-26/+26
|
* rtems/*.c: Remove use of register keywordJoel Sherrill2014-02-0337-73/+73
|
* IMFS: Improved support for generic nodesSebastian Huber2014-01-212-3/+3
| | | | | | | | | | | | | | | | The rtems_filesystem_location_info_t::node_access_2 was unused by the IMFS. Use it to hold the context of generic nodes. This makes it possible to use node handlers for objects with and without a corresponding file system node. For example network sockets created with socket() have only a file descriptor, but no corresponding file system node. The UNIX(4) domain sockets can be bound to file system nodes. In both cases the rtems_filesystem_location_info_t must provide a pointer to the socket structure used by the socket node handlers. With the context pointer (for sockets, this is the socket structure) in rtems_filesystem_location_info_t::node_access_2 the same node handlers can be used in both cases.
* IMFS: Allow sockets as generic nodesSebastian Huber2014-01-211-1/+2
|
* Don't use unsafe buffer operationsNick Withers2014-01-201-18/+12
| | | | | | Don't use unsafe buffer operations, averting (stack) buffer overflow when the syslog message length (including Facility and Level encoding) would exceed 199 characters
* arm: Add ARMv7-M SHCSR register bitsSebastian Huber2014-01-101-0/+6
|
* tasksetpriority.c: Remove obsolete commentJoel Sherrill2014-01-091-2/+1
|
* posix: fix race condition between pthread_create and capture engineTill Strauman2014-01-091-0/+5
| | | | | | Reproducable crashes occur when using pthreads and the capture engine at the same time. 'pthread_create()' is the culprit. It creates a SCORE thread and then calls Thread_Start( ) without disabling thread-dispatching.
* mw_uid: corrects uid_read_message short timeoutsAllan Hessenflow2014-01-091-2/+11
|
* NTP: Sync time correctly when receiving broadcast updatesJim Panetta2014-01-091-3/+4
| | | | | | | | | | | | | | | 1) The value of rtems_bsdnet_ntpserver_count is equal to 0 when no server is set, so the check for (rtems_bsdnet_ntpserver_count < 0) in rtems_bsdnet_get_ntp() is wrong. The check should be "<= 0". 2) Binding the listening socket port to 0 does not work. Packets appear on the interface, but the recvfrom in tryServer() never returns. Changing this to the well known NTP socket 123 allows the packets to be seen. 3) In tryServer(), an explicit check for NTP version 3 packets is made. If the NTP server is version 4, this check fails even though the packets seem to be the right shape.
* libcsupport: Refactor rtems_deviceio_errnoDaniel Ramirez2014-01-086-86/+83
| | | | | | Renames rtems_deviceio_errno to rtems_status_code_to_errno and integrates it into the Classic API Status Handler. This function can now be called by including status.h
* libcsupport: implemented termios functions cfsetspeed and cfmakerawDaniel Ramirez2014-01-074-1/+109
|
* cpukit/capture: Print the uptime and diff in ctrace.Chris Johns2013-12-241-17/+17
| | | | | | | | | | | Print the uptime and difference in nanoseconds to the previous record in the ctrace output. For example: 0:00:59.474927121 14760 0a01000c TNTD 235 235 CREATED_BY 0:00:59.474927418 297 0a010012 /dev 235 235 CREATED 0:00:59.474930799 3381 0a01000c TNTD 235 235 STARTED_BY 0:00:59.474931105 306 0a010012 /dev 235 235 STARTED 0:00:59.475072297 141192 0a01000c TNTD 235 235 SWITCHED_OUT
* cpukit/capture: Use the new RTEMS API to get the uptime in nanoseconds.Chris Johns2013-12-243-16/+57
| | | | | Use the new API to get the uptime in nanoseconds and update the capture engine.
* cpukit/rtems: Add rtems_clock_get_uptime_nanoseconds to the RTEMS API.Chris Johns2013-12-248-3/+127
| | | | | | Add Timestamp support in the score to return a timestamp in nanoseconds. Add a test. Update the RTEMS API documentation.
* rtems: classic api to/from core priority conversionsDaniel Ramirez2013-12-215-5/+27
|
* libcsupport: Accept NULL for zero-length entriesSebastian Huber2013-12-203-21/+29
|
* Filesystem: Use default kqfilter and poll handlerSebastian Huber2013-12-2020-0/+50
|
* Filesystem: Add readv/writev handlersSebastian Huber2013-12-2026-145/+352
| | | | | | | | | The readv() and writev() support was implemented in terms of multiple calls to the read and write handlers. This imposes a problem on device files which use an IO vector as single request entity. For example a low-level network device (e.g. BPF(4)) may use an IO vector to create one frame from multiple protocol layers each with its own IO vector entry.
* libcsupport: Add and use rtems_libio_iovec_eval()Sebastian Huber2013-12-203-155/+87
|
* cpukit/capture: Update the capture engine.Chris Johns2013-12-193-233/+195
| | | | | | | | | | | | The capture did not work due to changes in the workspace allocator. The engine now scans all existing tasks when enabled and does any allocations then. Fixed a bug in the ctset commandi in the CLI. Updated the capture engine to use 64bit nanosec timestamps. Fixed the CLI showing the stack usage.
* For PR 2164 - RFS File System - fix bitmap_create_search loop bugAlan Cudmore2013-12-191-1/+2
| | | | | | | | | | | | | | | | | This is for the RFS file system. There is a bug in the rtems_rfs_bitmap_create_search loop. It is supposed to iterate over the range of bits in a search element ( usually 32 bits ), so it should loop through bits 0 through 31. Instead it loops through 0 - 32, causing some blocks not to be allocated. As in PR 2163, this depends on the block size and number of blocks in a file system. Block sizes and group sizes that are powers of 2 seem to work fine ( 512 byte blocks, 4096 block groups, etc ). When the block sizes are not powers of 2, then this loop error causes some of the blocks at the end of a group to be skipped, preventing 100% of the blocks from being used. A simple test for this and PR2163 is to create a RAM disk with block size 3900 and at least 1 full group ( 31200 blocks ). A file system with these sizes will not be able to allocate 100% of the blocks.
* For PR 2162 - RFS File System - statvfs reports 1 block freeAlan Cudmore2013-12-192-2/+2
| | | | | | | | | This is for the RFS file system. The statvfs call reports 1 block free when the file system is full because it does not account for the superblock in its calculation of free blocks. This is a simple fix that adjusts the number of blocks reported to account for the superblock. We may want to wait for a more complete solution such as locating the superblock in each group.
* For PR 2163 - RFS File System - fix group search algorithm bugAlan Cudmore2013-12-191-1/+15
| | | | | | | | | This is for the RFS file system. There is a bug in the group search algorithm where it will skip groups, causing blocks to remain unallocated. This is dependant on the size of the blocks and number of blocks in a group, so it does not always show up. The fix corrects the skipping of groups during the search, allowing all of the blocks to be found.
* arm: Fix set by but not used warningSebastian Huber2013-12-161-1/+2
|
* nfsclient: Move defines to cover all header filesSebastian Huber2013-12-161-2/+3
|
* JFFS2: Do not re-define struct iovecSebastian Huber2013-12-161-5/+1
|
* cpukit/shell: Control help break with SHELL_LINES env variable.Chris Johns2013-12-161-3/+11
| | | | | | | | Control the help command break with the SHELL_LINES evironment variable where the numeric value is the number of lines to break on. If the value is 0 the output is not broken. The default is 16 lines. Add shell documentation for the help command.
* no_cpu/cpusmplock.h: Clean up to be compilableJoel Sherrill2013-12-141-0/+4
|
* cpukit/configure.ac: Probe for SMP affinity methodsJoel Sherrill2013-12-131-0/+8
|
* PR2160: imfs: Use ENOSYS for unsupported nodesSebastian Huber2013-12-114-7/+18
| | | | | Return an error status with errno set to ENOSYS during node creation for nodes not available in the current configuration.
* alarm.c: Use _Assert() not assert()Joel Sherrill2013-12-101-1/+1
|
* PR2138: rtems_rfs_rtems_initialize() can erroneously set errno.Chris Johns2013-12-101-1/+1
| | | | Patch from Nick for this. Thanks.
* Merge branch 'master' into amJoel Sherrill2013-12-096-52/+98
|\
| * PR2161: Set the source port to SYSLOG in the syslog socket.Chris Johns2013-12-101-1/+1
| |
| * PR2158: Add support for dup2.Chris Johns2013-12-103-7/+55
| | | | | | | | | | Split the dub call into dup and dup2 in fcntl.c. This requires a private command which is placed in the internal libio header.
| * PR2159: Have the FIFO driver read follow POSIX standard.Chris Johns2013-12-101-43/+41
| | | | | | | | | | The read call was only returning once the requested buffer was full. The change returns any available data.
| * libfs/imfs: Set the FIFO control block.Chris Johns2013-12-101-1/+1
| | | | | | | | The FIFO was incorrectly set to the default control block.
* | alarm.c: Per comment add debug code for kill() failingJoel Sherrill2013-12-091-4/+17
| | | | | | | | | | This is highly unlikely and would indicate a serious bug in the system or corruption. But it is better to be cautious.
* | pthread.c: Use UINT32_MAX rather than constant valueJoel Sherrill2013-12-091-1/+1
| |
* | condwaitsupp.c: Return EPERM if waiting and mutex is not lockedJoel Sherrill2013-12-091-4/+8
| | | | | | | | | | | | This error check was commented out because it is not in the POSIX specification. However, the GNU/Linux manual page does document that EPERM is to be returned in this situation.
* | psignalimpl.h: Remove dead commentJoel Sherrill2013-12-091-3/+1
| |
* | pthread.c: Remove XXX and use SIGNAL_ constantsJoel Sherrill2013-12-091-5/+3
| |