summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* nios2-iic-irq.c: Fix warningsJoel Sherrill2014-10-091-0/+6
|
* nios2-iic-irq.c: Include <rtems/score/interr.h> so it buildsJoel Sherrill2014-10-091-0/+1
|
* ppp: PR1943: Avoid NULL pointer accessSebastian Huber2014-10-081-8/+2
| | | | | | | Waiting for mbufs at this level is a bad solution. It would be better to try to allocate a new mbuf chain before we hand over the current mbuf chain to the upper layer. In case the allocation fails we should drop the current packet and use its mbuf chain for a new packet.
* IMFS: Avoid NULL pointer accessSebastian Huber2014-10-081-1/+2
| | | | | Avoid NULL pointer access in IMFS_is_imfs_instance(). File systems mounted via mount() always have a valid type string.
* posix: Add auto initializaton for rwlockSebastian Huber2014-10-0810-46/+54
|
* posix: Fix mutex auto initializationSebastian Huber2014-10-081-1/+10
| | | | Use the once lock to prevent race conditions during auto initialization.
* posix: Use function instead of macrosSebastian Huber2014-10-081-41/+28
|
* ppp: Add ppp_unit()Sebastian Huber2014-10-081-15/+21
| | | | This makes porting to the new network stack easier.
* ppp: Nothing to transmit hint for Termios driverSebastian Huber2014-10-071-1/+10
|
* termios: Partially hide rtems_termios_ttySebastian Huber2014-10-075-106/+195
| | | | | | | Move interrupt lock to device context and expose only this structure to the read, write and set attributes device handler. This makes these device handler independent of the general Termios infrastructure suitable for direct use in printk() support.
* termios: Separate flow control from normal handlerSebastian Huber2014-10-072-17/+41
|
* termios: Fix transmit daemonSebastian Huber2014-10-071-1/+9
| | | | | | Do not call rtems_termios_refill_transmitter() in case a PPP line discipline is present. This is similar to rtems_termios_dequeue_characters().
* SPARC: Fatal_halt use source and exit codesDaniel Hellstrom2014-10-061-8/+2
| | | | | | | | | | | | | | | The Fatal_halt handler now have two options, either halt as before or enter system error state to return to debugger or simulator. The exit-code is now also propagated to the debugger which is very useful for testing. The CPU_Fatal_halt handler was split up into two, since the only the LEON3 support the CPU power down. The LEON3 halt now uses the power-down instruction to save CPU power. This doesn't stop a potential watch-dog timer from expiring.
* libmisc/shell: Remove the need for -lm when linking from the ping command.Chris Johns2014-10-041-5/+12
| | | | | Remove the use of sqrt and so the need to link to -lm. Clean up some warnings.
* pppd: Import change from NetBSDSebastian Huber2014-09-301-1/+1
| | | | | This avoids the use of gethostbyname() in case the "noipdefault" option is given. The gethostbyname() uses DNS by default.
* pppd: Fix warningsSebastian Huber2014-09-302-3/+22
|
* libnetworking: Update due to Termios changesSebastian Huber2014-09-302-3/+3
|
* or1k fix bug: Initialize thread context with higher stack address.Hesham ALMatary2014-09-291-2/+3
| | | | | | Since or1k architecture stack grows down, threads should be initialized with high stack addresses instead of lower ones. This is done in _CPU_Context_Initialize function.
* m68k: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPECSebastian Huber2014-09-231-1/+1
| | | | | | | Converting 64-bit nanoseconds values into the common struct timeval or struct timespec formats requires a 64-bit division to get the seconds value. Performance analysis of high network loads revealed that this is too costly on PowerPC.
* powerpc: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPECSebastian Huber2014-09-231-1/+1
| | | | | | | Converting 64-bit nanoseconds values into the common struct timeval or struct timespec formats requires a 64-bit division to get the seconds value. Performance analysis of high network loads revealed that this is too costly on PowerPC.
* score: Delete Thread_Wait_information::Block2nSebastian Huber2014-09-231-4/+0
| | | | This field is no longer used.
* score: Critical fix for _Thread_queue_Dequeue()Sebastian Huber2014-09-191-6/+8
| | | | | Do not return NULL in case we can dequeue the executing thread. This bug was introduced with 32506647001a815e3c0daf25757d386104a07184.
* sparc: Add commentSebastian Huber2014-09-181-0/+5
|
* telnetd: Use socklen_tSebastian Huber2014-09-181-10/+0
|
* redirector: Rename rtems_stdio_redirect_tSebastian Huber2014-09-172-25/+25
| | | | | | | Rename rtems_stdio_redirect_t to rtems_stdio_redirect since the namespace *_t is reserved by POSIX, see also The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition, 2.2.2 The Name Space.
* Libmisc/Makefile.am: Build with networking disabledJoel Sherrill2014-09-161-2/+3
|
* tod.h -> libcsupport like other driver and helper prototype filesJoel Sherrill2014-09-163-0/+75
| | | | | This rippled into the handful of files that should have been using <rtems/tod.h>.
* Revert: rtems-rfs-buffer.c: Correct printf() format specifiers to eliminate ↵Joel Sherrill2014-09-161-2/+3
| | | | | | warnings This may actually be a problem in inttypes.h.
* Use correct prototype of benchmark_timer_read()Joel Sherrill2014-09-164-40/+1
| | | | | | | | | | | | | | This change starts with removing the effectively empty file timerdrv.h. The prototypes for benchmark_timer_XXX() were in btimer.h which was not universally used. Thus every use of timerdrv.h had to be changed to btimer.h. Then the prototypes for benchmark_timer_read() had to be adjusted to return benchmark_timer_t rather than int or uint32_t. I took this opportunity to also correct the file headers to separate the copyright from the file description comments which is needed to ensure the copyright isn't propagated into Doxygen output.
* score/cpu/or1k: Follow no_cpu ISR_Handler algorithm.Hesham ALMatary2014-09-161-0/+10
| | | | | | | | This patch adjusts ISR_Handler to exactly follow the pseudo code introduced in http://rtems.org/onlinedocs/doc-current/share/rtems/html/porting/Interrupts-Interrupt-Dispatching.html It adds two new checkings on _Thread_Dispatch_disable_level and _ISR_Nest_level after returning from the C handler.
* OpenRISC: Account for red-zone (fixup printf bug).Hesham ALMatary2014-09-162-19/+22
| | | | | | | | | | | | | | This patch allocate a space in the stack to account for red-zone that gcc may utilize for the use of leaf functions. Care must be taken to handle this red-zone from many places: 1- Upon creation of a new thread stack. 2- Once an interrupt entred. Also moving the enable-thread-dispach() and increment ISR level before checking if dispatch needed was required. The previous modifications solved the printf bug which disabled ticker to output strings after context switches that arise from Thread_Delay_ended.
* shell: Add an md5 hash command for files.Chris Johns2014-09-163-3/+119
| | | | This command lets you get an MD5 hash for a file in an RTEMS file system.
* libmisc: Add a stdio redirector helper.Chris Johns2014-09-165-0/+458
| | | | | | | | This module makes it easy to redirect and capture stdout, stderr or any other fd in your application. The captured data can be sent off board, for example using syslog, or buffered and displayed in a web page.
* shell: Add a ping command.Chris Johns2014-09-164-1/+2100
| | | | | | | | | The ping code is taken from a recent FreeBSD release. Some options have been tested, other not tested or do not work. This could be due to the age of our TCP/IP stack. This version of ping will not work if more than 64 file descriptors are open at once because the select FD size is 64 as set in newlib.
* dosfs: Check error statusSebastian Huber2014-09-111-14/+16
|
* score: Rename _BSP_Exception_frame_print()Sebastian Huber2014-09-113-24/+3
| | | | | Rename _BSP_Exception_frame_print() to _CPU_Exception_frame_print() to be in line with other CPU port functions.
* powerpc: Delete PPC_BSP_HAS_FIXED_PR288Sebastian Huber2014-09-111-7/+0
|
* or1k: Let CPU/BSP Fatal handler have access to sourceHesham ALMatary2014-09-101-2/+2
| | | | | | This patchs follows the latest commit by Daniel Hellstrom that requires _CPU_Fatal_halt to have _source passed to it along with _error number.
* Let CPU/BSP Fatal handler have access to sourceDaniel Hellstrom2014-09-1021-25/+26
| | | | | | | | | Without the source the error code does not say that much. Let it be up to the CPU/BSP to determine the error code reported on fatal shutdown. This patch does not change the current behaviour, just adds the option to handle the source of the fatal halt.
* score: More strict RTEMS_DEQUALIFY implementation.Pavel Pisa2014-09-081-1/+53
| | | | | | | | | | | | This implementation is able to catch cast to type which differs not only in qualifiers. The error diagnostic message when used in function is self descriptive. Macro is compatible with used in initializers but there message about not constant initial value signals types incompatibility. The actual implementation does not distinguish between volatile and const removal.
* posix: Use RTEMS_DECONST()Sebastian Huber2014-09-082-3/+3
|
* posix: Fix warningSebastian Huber2014-09-081-2/+0
|
* libcsupport: Use RTEMS_DECONST()Sebastian Huber2014-09-081-1/+1
|
* score: Add RTEMS_DECONST|DEVOLATILE|DEQUALIFY()Sebastian Huber2014-09-081-0/+27
|
* capture: Add support for variable length records.Jennifer Averett2014-09-0510-72/+475
|
* capture: Split user extension methods out.Jennifer Averett2014-09-054-388/+673
|
* Regenerate preinstall.am for score/cpu/or1kHesham ALMatary2014-09-041-3/+3
| | | | | This patch regenerates preinstall.am file after Chris fixup regarding preinstall.am files gerenration from bootstrap -p command.
* shell.c: Add cast to match printf() expectations for width specifierJoel Sherrill2014-09-041-1/+6
|
* rtems-rfs-buffer.c: Correct printf() format specifiers to eliminate warningsJoel Sherrill2014-09-041-3/+2
|
* rtems/score/assert.h: Rework to allow use of NDEBUGJoel Sherrill2014-09-041-13/+43
|