summaryrefslogtreecommitdiffstats
path: root/cpukit (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-01-10arm: Add ARMv7-M SHCSR register bitsSebastian Huber1-0/+6
2014-01-09tasksetpriority.c: Remove obsolete commentJoel Sherrill1-2/+1
2014-01-09posix: fix race condition between pthread_create and capture engineTill Strauman1-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.
2014-01-09mw_uid: corrects uid_read_message short timeoutsAllan Hessenflow1-2/+11
2014-01-09NTP: Sync time correctly when receiving broadcast updatesJim Panetta1-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.
2014-01-08libcsupport: Refactor rtems_deviceio_errnoDaniel Ramirez6-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
2014-01-07libcsupport: implemented termios functions cfsetspeed and cfmakerawDaniel Ramirez4-1/+109
2013-12-24cpukit/capture: Print the uptime and diff in ctrace.Chris Johns1-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
2013-12-24cpukit/capture: Use the new RTEMS API to get the uptime in nanoseconds.Chris Johns3-16/+57
Use the new API to get the uptime in nanoseconds and update the capture engine.
2013-12-24cpukit/rtems: Add rtems_clock_get_uptime_nanoseconds to the RTEMS API.Chris Johns8-3/+127
Add Timestamp support in the score to return a timestamp in nanoseconds. Add a test. Update the RTEMS API documentation.
2013-12-21rtems: classic api to/from core priority conversionsDaniel Ramirez5-5/+27
2013-12-20libcsupport: Accept NULL for zero-length entriesSebastian Huber3-21/+29
2013-12-20Filesystem: Use default kqfilter and poll handlerSebastian Huber20-0/+50
2013-12-20Filesystem: Add readv/writev handlersSebastian Huber26-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.
2013-12-20libcsupport: Add and use rtems_libio_iovec_eval()Sebastian Huber3-155/+87
2013-12-19cpukit/capture: Update the capture engine.Chris Johns3-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.
2013-12-19For PR 2164 - RFS File System - fix bitmap_create_search loop bugAlan Cudmore1-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.
2013-12-19For PR 2162 - RFS File System - statvfs reports 1 block freeAlan Cudmore2-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.
2013-12-19For PR 2163 - RFS File System - fix group search algorithm bugAlan Cudmore1-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.
2013-12-16arm: Fix set by but not used warningSebastian Huber1-1/+2
2013-12-16nfsclient: Move defines to cover all header filesSebastian Huber1-2/+3
2013-12-16JFFS2: Do not re-define struct iovecSebastian Huber1-5/+1
2013-12-16cpukit/shell: Control help break with SHELL_LINES env variable.Chris Johns1-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.
2013-12-14no_cpu/cpusmplock.h: Clean up to be compilableJoel Sherrill1-0/+4
2013-12-13cpukit/configure.ac: Probe for SMP affinity methodsJoel Sherrill1-0/+8
2013-12-11PR2160: imfs: Use ENOSYS for unsupported nodesSebastian Huber4-7/+18
Return an error status with errno set to ENOSYS during node creation for nodes not available in the current configuration.
2013-12-10alarm.c: Use _Assert() not assert()Joel Sherrill1-1/+1
2013-12-10PR2138: rtems_rfs_rtems_initialize() can erroneously set errno.Chris Johns1-1/+1
Patch from Nick for this. Thanks.
2013-12-09alarm.c: Per comment add debug code for kill() failingJoel Sherrill1-4/+17
This is highly unlikely and would indicate a serious bug in the system or corruption. But it is better to be cautious.
2013-12-09pthread.c: Use UINT32_MAX rather than constant valueJoel Sherrill1-1/+1
2013-12-09condwaitsupp.c: Return EPERM if waiting and mutex is not lockedJoel Sherrill1-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.
2013-12-09psignalimpl.h: Remove dead commentJoel Sherrill1-3/+1
2013-12-09pthread.c: Remove XXX and use SIGNAL_ constantsJoel Sherrill1-5/+3
2013-12-09posix/config.h: Comment clean upJoel Sherrill1-10/+102
2013-12-09signalcatch.c: Remove junk commentJoel Sherrill2-2/+1
2013-12-09timerimpl.h: Comment clean upJoel Sherrill1-36/+22
2013-12-09semaphoreimpl.h: Comment clean upJoel Sherrill1-79/+38
2013-12-09mqueueimpl.h: Comment clean upJoel Sherrill1-176/+91
2013-12-09condimpl.h: Comment clean upJoel Sherrill1-98/+35
2013-12-09ptimer.h: Comment clean upJoel Sherrill1-31/+14
2013-12-09muteximpl.h: Comment clean upJoel Sherrill1-108/+44
2013-12-09pspin.c: Comment clean upJoel Sherrill1-16/+7
2013-12-09pbarrier.c: Comment clean upJoel Sherrill1-16/+7
2013-12-10PR2161: Set the source port to SYSLOG in the syslog socket.Chris Johns1-1/+1
2013-12-10PR2158: Add support for dup2.Chris Johns3-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.
2013-12-10PR2159: Have the FIFO driver read follow POSIX standard.Chris Johns1-43/+41
The read call was only returning once the requested buffer was full. The change returns any available data.
2013-12-10libfs/imfs: Set the FIFO control block.Chris Johns1-1/+1
The FIFO was incorrectly set to the default control block.
2013-12-09cpukit/rtems: Remove XXX in commentsJoel Sherrill29-73/+112
2013-12-05Fix leap year calculationNickolay Semyonov-Kolchin1-1/+2
Reference: http://en.wikipedia.org/wiki/Leap_year Bug: https://www.rtems.org/bugzilla/show_bug.cgi?id=1422
2013-12-04Update to Mongoose 3.9 at the last point before the MIT -> GPL license changeNick Withers3-1403/+2572
[That is, https://github.com/cesanta/mongoose/commit/04fc209644b414d915c446bb1815b55e9fe63acc. See https://groups.google.com/forum/#!topic/mongoose-users/aafbOnHonkI] The RTEMS patches described in the following emails and made to the previous Mongoose base have been applied: - http://www.rtems.org/pipermail/rtems-devel/2012-July/001345.html - http://www.rtems.org/pipermail/rtems-devel/2012-July/001343.html - http://www.rtems.org/pipermail/rtems-devel/2012-July/001346.html (except to mongoose.1, see below) ...as well as a patch very similar to that discussed at http://forums.bannister.org/ubbthreads.php?ubb=showflat&topic=7600&gonew=1 to provide poll() (which might be able to go away soon, with incoming RTEMS poll() support) mg_connect(), mg_url_encode() and mg_vprintf() were additionally marked "static" to silence warnings. mongoose.1 appears to have been removed from the upstream distribution. Note that the API's changed, for example: - A struct mg_callbacks must now be provided to mg_start(). Initialise members to NULL to disable various types of callbacks - Callback interfaces have changed significantly in general - The short form of options (e.g., "u" instead of "run_as_user") are no longer available (upstream) - The "max_request_size" options has been removed