summaryrefslogtreecommitdiffstats
path: root/cpukit/score (follow)
Commit message (Collapse)AuthorAgeFilesLines
* score: Add CPU_INTERRUPT_STACK_ALIGNMENTSebastian Huber2018-06-2718-0/+45
| | | | | | | Add CPU port define for the interrupt stack alignment. The alignment should take the stack ABI and the cache line size into account. Update #3459.
* Remove unused CPU_MODES_INTERRUPT_LEVELSebastian Huber2018-06-273-3/+0
|
* arm: Simplify CPU counter supportSebastian Huber2018-06-151-2/+5
| | | | | | | | | | Use the standard ARMv7-M systick module for the ARMv7-M CPU counter instead of DWT counter since the DWT counter is affected by power saving states. Use an inline function for _CPU_Counter_difference() for all ARM BSPs. Update #3456.
* Add _CPU_Counter_frequency()Sebastian Huber2018-06-1534-3/+77
| | | | | | | | | | Add rtems_counter_frequency() API function. Use it to initialize the counter value converter via the new system initialization step (RTEMS_SYSINIT_CPU_COUNTER). This decouples the counter implementation and the counter converter. It avoids an unnecessary pull in of the 64-bit integer division from libgcc. Update #3456.
* powerpc: Fix ss555 buildSebastian Huber2018-06-071-6/+0
| | | | | | | The mpc555 define is provided via <bspopts.h>. It must not be used in cpukit header files. Update #3425.
* score: Simplify _Objects_Name_to_string()Sebastian Huber2018-06-051-2/+12
| | | | | Do not use isprint() from <ctype.h> since it depends on the heavy weight C locale implementation in Newlib.
* Drop executable permissions on .[ch] filesJoel Sherrill2018-04-301-0/+0
|
* sparc: Move irq_asm.SSebastian Huber2018-04-202-0/+904
| | | | | | | | This file is BSP-independent. This patch is a part of the BSP source reorganization. Update #3285.
* sparc: Move _CPU_Trap_slot_templateSebastian Huber2018-04-201-0/+16
| | | | | | | | | The definition of _CPU_Trap_slot_template is BSP-independent. A potential para-virtualization support may use <rtems/score/paravirt.h>. This patch is a part of the BSP source reorganization. Update #3285.
* Remove register keyword from public header filesSebastian Huber2018-04-1611-52/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following code void f(void) { register int i; } gives a warning with GCC and -std=c++17 test.cc: In function ‘void f()’: test.cc:3:15: warning: ISO C++1z does not allow ‘register’ storage class specifier [-Wregister] register int i; ^ and clang with -std=c++14 test.cc:3:3: warning: 'register' storage class specifier is deprecated and incompatible with C++1z [-Wdeprecated-register] register int i; ^~~~~~~~~ 1 warning generated. Remove the use of the register keyword at least in the public header files for C++ compatibility. Close #3397.
* 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-041-1/+0
| | | | | A "make dist" is not supported. So, it makes no sense to have pure "make dist" related stuff in the Makefile.am.
* mpci: Fix _MPCI_Enqueue_callout()Sebastian Huber2018-03-221-1/+2
| | | | | Update #3117. Update #3182.
* 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.
* 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.
* 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.
* Use _Thread_Dispatch_direct()Sebastian Huber2018-02-081-2/+2
| | | | | | | Use _Thread_Dispatch_direct() for operations that block the executing thread. This ensures that we get a fatal error (INTERNAL_ERROR_BAD_THREAD_DISPATCH_DISABLE_LEVEL) if we try to block in an invalid context, e.g. during system start or an interrupt handler.
* Add RTEMS thread APISebastian Huber2018-02-021-3/+96
| | | | Update #2843.
* score: Introduce new monotonic clockSebastian Huber2018-02-022-78/+66
| | | | | | | | Rename PER_CPU_WATCHDOG_MONOTONIC to PER_CPU_WATCHDOG_TICKS. Add new PER_CPU_WATCHDOG_MONOTONIC which is based on the system uptime (measured by timecounter). Close #3264.
* score: Rename _Watchdog_Realtime_from_*()Sebastian Huber2018-02-023-4/+4
| | | | | | Rename _Watchdog_Realtime_from_*() to _Watchdog_Ticks_from_*(). Update #3264.
* score: Optimize watchdog tickleSebastian Huber2018-02-022-34/+65
| | | | | | | Avoid unnecessary lock acquire/release operations. Get realtime via timecounter only if necessary. Update #3264.
* epiphany: Workaround until next Newlib snapshotSebastian Huber2018-01-312-0/+70
| | | | | | | At least with Binutils 2.30 and GCC 7.3 we need symbol definitions without the leading underscore. Fixed in Newlib 1658a57715de93d50983f34e75216101eb373993.
* epiphany: Fixes for GCC 7.3Sebastian Huber2018-01-312-13/+12
| | | | GCC 7.3 defines __USER_LABEL_PREFIX__ to nothing.
* Remove make preinstallChris Johns2018-01-25318-33311/+1253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A speciality of the RTEMS build system was the make preinstall step. It copied header files from arbitrary locations into the build tree. The header files were included via the -Bsome/build/tree/path GCC command line option. This has at least seven problems: * The make preinstall step itself needs time and disk space. * Errors in header files show up in the build tree copy. This makes it hard for editors to open the right file to fix the error. * There is no clear relationship between source and build tree header files. This makes an audit of the build process difficult. * The visibility of all header files in the build tree makes it difficult to enforce API barriers. For example it is discouraged to use BSP-specifics in the cpukit. * An introduction of a new build system is difficult. * Include paths specified by the -B option are system headers. This may suppress warnings. * The parallel build had sporadic failures on some hosts. This patch removes the make preinstall step. All installed header files are moved to dedicated include directories in the source tree. Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc, etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g. erc32, imx, qoriq, etc. The new cpukit include directories are: * cpukit/include * cpukit/score/cpu/@RTEMS_CPU@/include * cpukit/libnetworking The new BSP include directories are: * bsps/include * bsps/@RTEMS_CPU@/include * bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include There are build tree include directories for generated files. The include directory order favours the most general header file, e.g. it is not possible to override general header files via the include path order. The "bootstrap -p" option was removed. The new "bootstrap -H" option should be used to regenerate the "headers.am" files. Update #3254.