summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sparc: Remove sequences that the B2BST scan script warns aboutDaniel Cederman2021-03-072-3/+6
| | | | Update #4154.
* score: Add barrier thread queue operationsSebastian Huber2021-02-063-4/+40
| | | | | | | This fixes a missing decrement of the number of waiting threads during a barrier wait timeout. Close #4232.
* score: Make FIFO thread queue ops publicSebastian Huber2021-02-063-8/+144
| | | | Update #4232.
* score: Constify Thread_queue_First_operationSebastian Huber2021-02-062-12/+13
| | | | Update #4232.
* Fix RTEMS_LINKER_ROSET_ITEM_ORDERED_DECLARE()Sebastian Huber2021-01-251-1/+1
| | | | | | Add "extern" similar to RTEMS_LINKER_RWSET_ITEM_ORDERED_DECLARE(). Close #4224.
* confdefs: Add extern C guards to libpci.hJan Sommer2020-10-301-0/+8
| | | | Closes #4169
* libfs/rfs: Check search bit map end on last bitChris Johns2020-10-171-2/+15
| | | | | | | - Do not write past the last location of the search bit map whe nit is being created. Closes #4149
* bsps/arm: Workaround for Errata 845369Sebastian Huber2020-10-161-0/+32
| | | | | | | Add a workaround for Cortex-A9 Errata 845369: Under Very Rare Timing Circumstances Transition into Streaming Mode Might Create Data Corruption. Update #4114.
* i386/score: fix assembly mnemonicGedare Bloom2020-10-021-1/+1
| | | | | | | This is a backport for assembler error observed in 6. Although the assembler error does not appear in 5, the backport was requested. Closes #4083.
* Fixing bug in line editing of the shell with CTRL-U.Frank Kühndel2020-09-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a tiny bug in the command line editing of the RTEMS shell. Typing CTRL-U in the shell should remove all characters left of the cursor. After pressing CTRL-U, the current implementation does wrongly place the cursor at the end of the line instead at its beginning. To reproduce the bug, start the shell and type 'abc123' (no <RETURN>): > ~/src/rtems $ qemu-system-arm -net none -nographic -M realview-pbx-a9 \ -m 256M -kernel build/arm/realview_pbx_a9_qemu/testsuites/libtests/dl10.exe > *** BEGIN OF TEST libdl (RTL) 10 *** > *** TEST VERSION: 6.0.0.d9bdf166644f612dd628fe4951c12c6f8e94ba5f > *** TEST STATE: USER_INPUT > *** TEST BUILD: RTEMS_DEBUG RTEMS_NETWORKING RTEMS_POSIX_API RTEMS_SMP > *** TEST TOOLS: 10.2.1 20200904 \ (RTEMS 6, RSB 31f936a7b74d60bda609a9960c6e1a705ba54974, Newlib a0d7982) > RTL (libdl) commands: dl, rtl > > RTEMS Shell on /dev/foobar. Use 'help' to list commands. > SHLL [/] # abc123 Then move the cursor onto the '1' by hitting three times the <ARROW-LEFT> key. Next type <CTRL>-U: > SHLL [/] # 123 Note that the cursor is at the end of the line (after '3') instead of correctly at the beginning (on the '1'), now. Continuing typing 'echo ' incorrectly results in the output: > SHLL [/] # 123echo 123 The patch changes this behavior so that the cursor in the second last step will be on the '1' and typing 'echo ' will then correctly reflected as: > SHLL [/] # echo 123 Close #4096.
* confdefs: Fix cyclic dependencySebastian Huber2020-08-212-12/+8
| | | | Close #4060.
* posix: Only check shm_unlink obj_err if necessaryKinsey Moore2020-08-111-22/+23
| | | | | | | | | | In the nominal case checked by spsysinit01, obj_err is unmodified if _POSIX_Shm_Get_by_name returns non-NULL. In the case of shm_unlink, this means an uninitialized value is passed into the switch and it appears tests using it were passing by virtue of the stack having the right value on it in most cases. This now checks obj_err only if _POSIX_Shm_Get_by_name returns NULL. Close #4016
* shell: Only clear std handles when the shell task exitsChris Johns2020-08-081-4/+22
| | | | | | | Clearing the std file handles when the main loop exited crashes telnetd as it reuses its session threads. Closes #3859
* dosfs: Fix memory leak on failed mounts.Christian Mauderer2020-08-043-0/+13
| | | | | | | | | | | | | | | | | | | | Currently if mount fails, a converter isn't destroyed. We have to take care of two cases: 1. The user doesn't provide a converter. In this case mounting a dosfs creates a default converter. This patch makes sure that the converter is destroyed again if mount failes for this case. 2. The user provides a converter. In this case it's not sure that the dosfs specific routines are reached because mount can fail before that. Therefore the user has to destroy the converter himself again. This patch adds a documentation for that and implements it in the media server. Closes #4041.
* rtems: Add rtems_interrupt_server_create()Sebastian Huber2020-08-031-14/+129
| | | | | | | | | | | | | | | | | | Add rtems_interrupt_server_destroy(). Before this patch, the only way to create interrupt servers was rtems_interrupt_server_initialize(). This function creates the default interrupt server and in SMP configurations additional interrupt servers for the additional processors. The interrupt server is heavily used by libbsd. This includes the epoch based reclamation which performs time consuming resource and memory deallocation work. This does not work well with time critical services, for example an UART over SPI or I2C. One approach to address this problem is to allow the application to create custom interrupt servers with the right priority and task properties. The interrupt server API accounted for this, however, it was not implemented before this patch. Close #4033.
* i386: Fix possible race condition on first context restoreJan Sommer2020-07-291-1/+1
| | | | | | | | | | | | Make sure that the esp is restored before the eflags register. When the init task is initially restored, system interrupts are activated when the eflags register is loaded. If the esp register still points to an address in the interrupt stack area (from early system initlization) the ISR might overwrite its own stack. Closes #4030
* rtems: Remove RTEMS_MP_NOT_CONFIGURED errorSebastian Huber2020-06-184-19/+14
| | | | | | | | | | | | | | Some objects can be created with a local or global scope in a multiprocessing network. In non-multiprocessing configurations setting the scope to local or global had no effect since such a system can be viewed as a multiprocessing network with just one node. One and all nodes is the same in such a network. However, if multiprocessing was configured, creation of a global object in a single node network resulted in an RTEMS_MP_NOT_CONFIGURED error. Remove this error condition for symmetry to the non-multiprocessing setup. This is in line with the task affinity behaviour in SMP systems. Update #4005.
* bsp/pc386: Define interrupt stack frame for smpJan Sommer2020-06-112-13/+17
| | | | | | - Defines CPU_Interrupt_frame in cpu_impl.h - Updates isq_asm.S to save/restore registers in matching order to interrupt frame
* bsp/pc386: Update context switch and restoreJan Sommer2020-06-112-16/+51
| | | | Uses similar flow in cpu_asm.S for i386 as for arm.
* bsp/pc386: Update GDT to work for SMPJan Sommer2020-06-112-5/+32
| | | | | | | | | | Create a GS segment in the GDT for each processor for storing TLS. This makes the GDT in startAP.S obsolete as all processors now share the same GDT, which is passed to each AP at startup. The correct segment for each processor is calculated in cpu_asm.S. Update #3335
* arm: Fix ARMv7-M exception handlerSebastian Huber2020-05-271-8/+15
| | | | | | Store the stack pointer of the exception context to the exception frame. Close #3987.
* posix: Get real priority in pthread_getattr_np()Sebastian Huber2020-05-121-4/+6
| | | | | | | This is in line with pthread_setschedparam() and pthread_getschedparam(). Update #2514.
* termios: Replace rtems_termios_isig_status_codeSebastian Huber2020-05-073-59/+40
| | | | | | | | | | Merge the rtems_termios_isig_status_code and rtems_termios_iproc_status_code enums into a single rtems_termios_iproc_status_code which is now a part of the API. Simplify rtems_termios_posix_isig_handler() to avoid unreachable code. Close #3800.
* libdl: Add allocator check scriptChris Johns2020-05-061-0/+96
| | | | Use with the trace outout to check for allocation leaks.
* score: Update _Copyright_NoticeSebastian Huber2020-05-061-3/+2
| | | | | Add the _Copyright_Notice to a special linker set to prevent a garbage collection of this item.
* rtems: Deprecate _Copyright_NoticeSebastian Huber2020-05-062-1/+3
| | | | Close #3973.
* rtems: Add rtems_get_copyright_notice()Sebastian Huber2020-05-064-2/+64
| | | | Update #3973.
* rtems: Deprecate <rtems/system.h>Sebastian Huber2020-05-061-0/+4
| | | | Close #3972.
* rtems: Deprecate RTEMS_MAXIMUM_NAME_LENGTHSebastian Huber2020-05-061-2/+3
| | | | | | | | | | | | This define is * not documented, * not used in the RTEMS code base, and * longer than sizeof(rtems_name). Close #3971.
* rtems: Deprecate use of _RTEMS_versionSebastian Huber2020-05-062-5/+6
| | | | Close #3970.
* Use rtems_get_version_string()Sebastian Huber2020-05-061-3/+3
| | | | Update #3970.
* libdl/rap: Correctly check the return enum from rela callsChris Johns2020-05-051-4/+13
| | | | | | | | - The change from bool to an enum did not trip a compiler warning and only the rel path was changed. The rela path was missed so archs like SPARC failed. Updates #3969
* libdl/obj-comp: Add trace prints when decompressingChris Johns2020-05-052-0/+33
| | | | Updates #3969
* libdl/obj-cache: Fail if the read offset is past the file lengthChris Johns2020-05-051-4/+5
| | | | | | - The check was for greater than and not equal or greater Updates #3969
* libdl/obj: Fix RAP format call table.Chris Johns2020-05-051-1/+0
| | | | Updates #3969
* libdl/sparc: Print trace message of reloc failture pathChris Johns2020-05-051-1/+4
| | | | Updates #3969
* libdl: Fix comment.Chris Johns2020-05-051-1/+1
| | | | Updates #3969
* doxygen: Switch @brief and @ingroupSebastian Huber2020-04-28393-393/+786
| | | | This order change fixes the Latex documentation build via Doxygen.
* libdl/mips: Fix MIPS16hi/lo relocation support.Chris Johns2020-04-281-24/+45
| | | | | | | | This patch is an updated version from: https://lists.rtems.org/pipermail/users/2016-January/029740.html Closes #3693
* sapi: Add param check to rtems_extension_create()Sebastian Huber2020-04-171-4/+10
| | | | | | Check that the extensions table is not NULL. Change format. Update #3953.
* Canonicalize config.h includeSebastian Huber2020-04-161120-1316/+1316
| | | | | | | | Use the following variant which was already used by most source files: #ifdef HAVE_CONFIG_H #include "config.h" #endif
* libnetworking: Remove config.h include in headerSebastian Huber2020-04-161-4/+0
|
* libmisc/shell: Fix the handling of joel scripts in telnetChris Johns2020-04-152-102/+274
| | | | | | | | | | | | - Fix the passing of std[in/out] to child threads - Fix deleting of managed memory in the key destructor - Only set the key in the main loop thread - Only allocate a shell env outside of the main loop - Fix memory leak if the task start fails - Remove error level from shell env, it cannot be returned this way. Add exit_code but the API is broken so it cannot be returned. Closes #3859
* config: Fix typoSebastian Huber2020-04-141-1/+1
| | | | Update #3875.
* score: Check time of day in _TOD_Set()Sebastian Huber2020-04-142-4/+20
| | | | Close #3949.
* score: Return status in _TOD_Set()Sebastian Huber2020-04-145-44/+41
| | | | Update #3949.
* score: Delete RTEMS_DECLARE_GLOBAL_SYMBOL()Sebastian Huber2020-04-081-20/+0
| | | | | | Delete unused RTEMS_DECLARE_GLOBAL_SYMBOL(). Update #3799.
* config: Fix _ISR_Stack_area_endSebastian Huber2020-04-081-6/+9
| | | | | | | | | | | | | | In the previous implementation, the _ISR_Stack_area_begin and _ISR_Stack_area_end symbols were in different sections. If they do not have the same alignment, then the following linker directive could separate them: *(SORT_BY_ALIGNMENT (SORT_BY_NAME (.rtemsstack*))) Do not use different sections and instead define _ISR_Stack_area_end directly. Update #3799.
* score: Add and use RTEMS_SYMBOL_NAME()Sebastian Huber2020-04-081-10/+27
| | | | Update #3799.
* Revert "score: Fix _ISR_Stack_area_end"Sebastian Huber2020-04-053-37/+5
| | | | | This reverts commit 8e80876bdd54e36fb668eee655eec1dd588daf13 which broke several architectures.