summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu (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.
* 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-093-3/+0
| | | | | A "make distclean" is not supported. So, it makes no sense to have pure "make distclean" related stuff in the Makefile.am.
* 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.
* 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-25207-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.
* powerpc: Add FSL_EIS_EPRSebastian Huber2018-01-221-0/+1
| | | | Update #3085.
* sparc: Move <libcpu/byteorder.h>Sebastian Huber2018-01-023-0/+78
| | | | | Update #3254. Update #3260.
* epiphany: Remove superfluous includesSebastian Huber2017-12-141-4/+0
| | | | Update #3254.
* arm: Move <libcpu/arm-cp15.h> to cpukitSebastian Huber2017-12-133-0/+2272
| | | | Update #3254.
* riscv/rtems/score/cpu.h: Use RTEMS_NO_RETURN not deprecated ↵Joel Sherrill2017-11-291-3/+2
| | | | RTEMS_COMPILER_NO_RETURN_ATTRIBUTE
* powerpc: Remove _BSP_Fatal_error()Sebastian Huber2017-11-221-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.
* powerpc: Replace BSP_panic() with rtems_panic()Sebastian Huber2017-11-221-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.
* bsps/powerpc: Fix PPC_EXC_CONFIG_USE_FIXED_HANDLERSebastian Huber2017-11-201-2/+2
| | | | | | For the SPE support we must store the upper half of r3 as well. Update #3085.
* cpukit: RISC-V - make riscv32 code work for riscv64 - v2Hesham Almatary2017-11-0119-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