summaryrefslogtreecommitdiffstats
path: root/cpukit (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fill in the correct d_off in rtems_rfs_dir_read.Fan Deng2018-04-111-1/+1
| | | | | | | | | | | | | | | | | | rtems_rfs_dir_read searches the directory inode's entries list starting at the specified offset until an empty entry (last entry) is encountered. It fills in a struct dirent with the name of the entry, length of the name, ino of the entry, and the absolute offset of the entry in the parent directory's entries list. Unfortunately, the stock implementation of rtems_rfs_dir_read returns a somewhat arbitrary offset (as dirent::d_off), while rtems_rfs_dir_lookup_ino always returns the correct offset. This change fixes that logic so the returned offset is accurate. Tested by comparing the offset returned in dirent with the result of rtems_rfs_dir_lookup_ino.
* Fixes bitmap allocation accounting logic in rtems-rfs-bitmaps.cFan Deng2018-04-111-18/+47
| | | | | | | | | | | | | | | | | | | | The bitmap allocation accounting logic in rtems-rfs-bitmaps.c is flawed around control->free. Specifically: In rtems_rfs_bitmap_map_set(): control->free is only decremented when its corresponding search bit is toggled. This is wrong and will miss on average 31/32 set updates. In rtems_rfs_bitmap_map_clear(): control->free is incremented unconditionally. The correct behavior is: When updating the map, check if the bit is already set/clear. Only update control->free when the bit is toggled. This change enforced the correct behavior. Tested by inspecting the internal data structure.
* Reset free count properly in rtems_rfs_bitmap_map_clear_all().Fan Deng2018-04-111-1/+1
| | | | | | | | In rtems_rfs_bitmap_map_clear_all(), control->free is set to 'elements', which is the number of elements in the bitmap. This is incorrect, as control->free should contain the number of free bits, not elements. This change fixes the logic and resets control->free to a correct value.
* Make bit addressing consistent in rtems_rfs_group.cFan Deng2018-04-111-1/+12
| | | | | | | | | | | | | This change fixes https://devel.rtems.org/ticket/3089. Briefly, rtems_rfs_group.c contains conflicting conversions between block numbers and group number and bit offset pairs. This caused the actual bit stored on the bitmask to be one bit displaced from its intended location. For more details, please see the associated ticket. Tested by inspecting the written bitmasks with and without this change.
* build: Remove DISTCLEANFILESSebastian Huber2018-04-094-4/+0
| | | | | A "make distclean" is not supported. So, it makes no sense to have pure "make distclean" related stuff in the Makefile.am.
* build: Remove EXTRA_DISTSebastian Huber2018-04-0413-44/+0
| | | | | A "make dist" is not supported. So, it makes no sense to have pure "make dist" related stuff in the Makefile.am.
* Remove unused POSIX_NOT_IMPLEMENTED() declarationSebastian Huber2018-03-271-5/+0
|
* mpci: Fix _MPCI_Enqueue_callout()Sebastian Huber2018-03-221-1/+2
| | | | | Update #3117. Update #3182.
* config: Fix re-definition warningSebastian Huber2018-03-221-14/+3
|
* mpci: Update due to thread queue API changesSebastian Huber2018-03-221-6/+7
| | | | | Update #3117. Update #3182.
* i386/smp: Export _CPU_SMP_Prepare_start_multitasking as a functionAmaan Cheval2018-03-161-2/+1
| | | | | | | | | | When it's a macro, a function declaration causes a compiler error due to the macro being expanded. Partial log showing error: https://gist.github.com/AmaanC/ab3521141479aa6f61ea25f5d74ebb4d Closes #3331
* i386/smp: Define CPU_Interrupt_frame as non-void structAmaan Cheval2018-03-161-1/+15
| | | | | | | | | | | | This change, excluding the #error directive, lets us make progress towards compiling i386 targets with --enable-smp. The #error directive needs to be there since the CPU_Interrupt_frame is used by the SMP context switching code, and this placeholder struct, if used, would only lead to more subtle bugs and errors. With the directive, the SMP context switching code can be improved separately. Updates #3331
* rtems/bfin/bf533.h: Eliminate redefinition warning and add sanity checkJoel Sherrill2018-03-161-0/+9
| | | | Closes #3346.
* imfs: Use most efficient way to get the timeSebastian Huber2018-03-161-18/+17
| | | | | | As a side-effect, this fixes some warnings. Close #3350.
* Add PowerPC paravirtualization supportJoel Sherrill2018-03-134-0/+94
| | | | | | | | | Cannot read or write MSR when executing in user mode. This is used when RTEMS_PARAVIRT is defined. Provide alternate methods to disable/enable interrupts Closes #3306.
* Add ARM Paravirtualization supportJoel Sherrill2018-03-134-3/+90
| | | | Closes #3305.
* Rework i386 Paravirtualization to have paravirt.hJoel Sherrill2018-03-135-3/+70
|
* sparc64: Move libcpu content to cpukitSebastian Huber2018-03-135-5/+906
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* sparc: Move libcpu content to cpukitSebastian Huber2018-03-138-4/+756
| | | | | | This patch is a part of the BSP source reorganization. Update #3285.
* sparc/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-124-56/+5
| | | | Updates #3327.
* sparc64/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-47/+4
| | | | Updates #3327.
* powerpc/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-124-63/+5
| | | | Updates #3327.
* m68k/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-45/+3
| | | | Updates #3327.
* riscv/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-72/+4
| | | | Updates #3327.
* arm/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-53/+4
| | | | Updates #3327.
* v850/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-45/+4
| | | | Updates #3327.
* no_cpu/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-45/+5
| | | | Updates #3327.
* or1k/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-55/+4
| | | | Updates #3327.
* m32c/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-51/+4
| | | | Updates #3327.
* moxie/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-58/+4
| | | | Updates #3327.
* sh/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-58/+8
| | | | Updates #3327.
* nios2/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-48/+4
| | | | Updates #3327.
* epiphany/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-69/+4
| | | | Updates #3327.
* lm32/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-48/+4
| | | | Updates #3327.
* i386/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-124-49/+4
| | | | Updates #3327.
* mips/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-60/+4
| | | | Updates #3327.
* bfin/include/rtems/score/types.h: Eliminate this fileJoel Sherrill2018-03-123-51/+4
| | | | Updates #3327.
* shell: Fix rtems_shell_init_env()Sebastian Huber2018-03-121-1/+1
| | | | Do not discard a user provided task name in rtems_shell_init_env().
* libblock: C++ compatibilitySebastian Huber2018-03-122-0/+16
|
* config: Use new scheduler configuration definesSebastian Huber2018-03-121-18/+18
| | | | Update #3325.
* config: Simplify clustered scheduler configurationSebastian Huber2018-03-122-86/+173
| | | | | | | | | Do not use names derived from scheduler implementation details. Instead use names derived from the scheduler configuration or documentation. Provide defines for backward compatibility. Update #3325.
* network: Optionally install network headersSebastian Huber2018-03-0924-28/+26
| | | | | | Install the network headers only if --enable-networking is specified. Update #3254.
* cpukit/include/mqueue.h: Delete unneeded includesJoel Sherrill2018-03-081-3/+0
|
* score/cpu/powerpc/include/rtems/score/powerpc.h: Fix typoJoel Sherrill2018-03-081-1/+1
|
* powerpc/include/rtems/score/types.h: Remove unused ppc_isrJoel Sherrill2018-03-081-2/+0
| | | | Updates #3327.
* config: Remove RTEMS prefix from internal definesSebastian Huber2018-03-081-42/+42
| | | | Update #3325.
* capture: Fix get priority methodsSebastian Huber2018-03-071-2/+2
|
* Add a simple task console driverSebastian Huber2018-03-067-31/+313
| | | | Close #3320.
* termios: Fix use of uninitialized variableSebastian Huber2018-02-221-4/+4
| | | | Update #2840.
* confdefs.h: Minor rework to avoid warnings when CONFIGURE_HAS_OWN_INIT_TABLEJoel Sherrill2018-02-191-13/+16
| | | | | | CONFIGURE_HAS_OWN_INIT_TABLE was used both with and without defining CONFIGURE_RTEMS_INIT_TASKS_TABLE. This rework allows it to work both ways without warnings.