summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-27score: Add CPU_INTERRUPT_STACK_ALIGNMENTSebastian Huber18-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.
2018-06-27Remove unused CPU_MODES_INTERRUPT_LEVELSebastian Huber3-3/+0
2018-06-15arm: Simplify CPU counter supportSebastian Huber1-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.
2018-06-15Add _CPU_Counter_frequency()Sebastian Huber34-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.
2018-06-07powerpc: Fix ss555 buildSebastian Huber1-6/+0
The mpc555 define is provided via <bspopts.h>. It must not be used in cpukit header files. Update #3425.
2018-04-30Drop executable permissions on .[ch] filesJoel Sherrill1-0/+0
2018-04-20sparc: Move irq_asm.SSebastian Huber2-0/+904
This file is BSP-independent. This patch is a part of the BSP source reorganization. Update #3285.
2018-04-20sparc: Move _CPU_Trap_slot_templateSebastian Huber1-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.
2018-04-16Remove register keyword from public header filesSebastian Huber11-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.
2018-04-09build: Remove DISTCLEANFILESSebastian Huber3-3/+0
A "make distclean" is not supported. So, it makes no sense to have pure "make distclean" related stuff in the Makefile.am.
2018-03-16i386/smp: Export _CPU_SMP_Prepare_start_multitasking as a functionAmaan Cheval1-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
2018-03-16i386/smp: Define CPU_Interrupt_frame as non-void structAmaan Cheval1-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
2018-03-16rtems/bfin/bf533.h: Eliminate redefinition warning and add sanity checkJoel Sherrill1-0/+9
Closes #3346.
2018-03-13Add PowerPC paravirtualization supportJoel Sherrill4-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.
2018-03-13Add ARM Paravirtualization supportJoel Sherrill4-3/+90
Closes #3305.
2018-03-13Rework i386 Paravirtualization to have paravirt.hJoel Sherrill5-3/+70
2018-03-13sparc64: Move libcpu content to cpukitSebastian Huber5-5/+906
This patch is a part of the BSP source reorganization. Update #3285.
2018-03-13sparc: Move libcpu content to cpukitSebastian Huber8-4/+756
This patch is a part of the BSP source reorganization. Update #3285.
2018-03-12sparc/include/rtems/score/types.h: Eliminate this fileJoel Sherrill4-56/+5
Updates #3327.
2018-03-12sparc64/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-47/+4
Updates #3327.
2018-03-12powerpc/include/rtems/score/types.h: Eliminate this fileJoel Sherrill4-63/+5
Updates #3327.
2018-03-12m68k/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-45/+3
Updates #3327.
2018-03-12riscv/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-72/+4
Updates #3327.
2018-03-12arm/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-53/+4
Updates #3327.
2018-03-12v850/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-45/+4
Updates #3327.
2018-03-12no_cpu/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-45/+5
Updates #3327.
2018-03-12or1k/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-55/+4
Updates #3327.
2018-03-12m32c/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-51/+4
Updates #3327.
2018-03-12moxie/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-58/+4
Updates #3327.
2018-03-12sh/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-58/+8
Updates #3327.
2018-03-12nios2/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-48/+4
Updates #3327.
2018-03-12epiphany/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-69/+4
Updates #3327.
2018-03-12lm32/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-48/+4
Updates #3327.
2018-03-12i386/include/rtems/score/types.h: Eliminate this fileJoel Sherrill4-49/+4
Updates #3327.
2018-03-12mips/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-60/+4
Updates #3327.
2018-03-12bfin/include/rtems/score/types.h: Eliminate this fileJoel Sherrill3-51/+4
Updates #3327.
2018-03-08score/cpu/powerpc/include/rtems/score/powerpc.h: Fix typoJoel Sherrill1-1/+1
2018-03-08powerpc/include/rtems/score/types.h: Remove unused ppc_isrJoel Sherrill1-2/+0
Updates #3327.
2018-01-31epiphany: Workaround until next Newlib snapshotSebastian Huber2-0/+70
At least with Binutils 2.30 and GCC 7.3 we need symbol definitions without the leading underscore. Fixed in Newlib 1658a57715de93d50983f34e75216101eb373993.
2018-01-31epiphany: Fixes for GCC 7.3Sebastian Huber2-13/+12
GCC 7.3 defines __USER_LABEL_PREFIX__ to nothing.
2018-01-25Remove make preinstallChris Johns207-1305/+1249
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.
2018-01-22powerpc: Add FSL_EIS_EPRSebastian Huber1-0/+1
Update #3085.
2018-01-02sparc: Move <libcpu/byteorder.h>Sebastian Huber3-0/+78
Update #3254. Update #3260.
2017-12-14epiphany: Remove superfluous includesSebastian Huber1-4/+0
Update #3254.
2017-12-13arm: Move <libcpu/arm-cp15.h> to cpukitSebastian Huber3-0/+2272
Update #3254.
2017-11-29riscv/rtems/score/cpu.h: Use RTEMS_NO_RETURN not deprecated ↵Joel Sherrill1-3/+2
RTEMS_COMPILER_NO_RETURN_ATTRIBUTE
2017-11-22powerpc: Remove _BSP_Fatal_error()Sebastian Huber1-13/+12
BSPs can use the bsp_fatal_extension() to provide BSP-specific fatal error handling. There is no need for a _BSP_Fatal_error(). Close #3246.
2017-11-22powerpc: Replace BSP_panic() with rtems_panic()Sebastian Huber1-2/+0
Due to a new rtems_panic() implementation, it is possible to replace the PowerPC-specific BSP_panic() with rtems_panic(). Remove BSP_panic() implementations. Close #3245.
2017-11-20bsps/powerpc: Fix PPC_EXC_CONFIG_USE_FIXED_HANDLERSebastian Huber1-2/+2
For the SPE support we must store the upper half of r3 as well. Update #3085.
2017-11-01cpukit: RISC-V - make riscv32 code work for riscv64 - v2Hesham Almatary19-48/+69
* Use #ifdefs for 32/64 bit code * Use unsigned long which is 32-bit on riscv32 and 64-bit on riscv64 (register size) * Move the code to a new shared riscv folder to be shared between riscv32 and riscv64 * Rename RTEMS_CPU extracted from command line to shared riscv target s/riscv*/riscv Update #3109