summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/new-exceptions (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-03-19bsps/powerpc: Move exceptions support to bspsSebastian Huber15-3884/+0
This patch is a part of the BSP source reorganization. Update #3285.
2018-03-19bsps/powerpc: Remove unused filesSebastian Huber3-402/+0
This patch is a part of the BSP source reorganization. Update #3285.
2018-03-19bsps/powerpc: Move basic support to bspsSebastian Huber2-733/+0
This patch is a part of the BSP source reorganization. Update #3285.
2018-03-19bsps/powerpc: Move legacy IRQ supportSebastian Huber1-393/+0
This patch is a part of the BSP source reorganization. Update #3285.
2018-03-13Add PowerPC paravirtualization supportJoel Sherrill2-3/+23
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-01-25Remove make preinstallChris Johns2-617/+0
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-04bsps/powerpc: Use public include pathChris Johns1-2/+2
Update #3254.
2017-11-20bsps/powerpc: Fix PPC_EXC_CONFIG_USE_FIXED_HANDLERSebastian Huber1-0/+7
For the SPE support we must store the upper half of r3 as well. Update #3085.
2017-10-09bsps/powerpc: Fix robust thread dispatch againSebastian Huber1-3/+1
Use the saved MSR to account for FPU and AltiVec settings. Update #2811.
2017-09-28bsps: Fix integer to/from pointer warningsSebastian Huber2-4/+4
Update #3082.
2017-09-28bsps/powerpc: Fix print format warningsSebastian Huber1-1/+1
2017-09-21bsps/powerpc: Fix robust thread dispatchSebastian Huber1-6/+21
Implement thread dispatch code in ppc_exc_wrapup() similar to ppc_exc_interrupt(). Update #2811.
2017-09-20bsps/powerpc: Fix PPC_EXC_CONFIG_USE_FIXED_HANDLERSebastian Huber2-4/+6
Fix link-time error on BSPs not using PPC_EXC_CONFIG_USE_FIXED_HANDLER. Update #3085.
2017-09-19bsps/powerpc: PPC_EXC_CONFIG_USE_FIXED_HANDLERSebastian Huber2-149/+105
Make PPC_EXC_CONFIG_USE_FIXED_HANDLER mandatory for BSPs using ppc_exc_interrupt(). Pass exception number to bsp_interrupt_dispatch() to allow processing of decrementer and doorbell exceptions as hypervisor guest. Update #3085.
2017-08-22powerpc: PPC64_NOP_FOR_LINKER_TOC_POINTER_RESTORESebastian Huber2-0/+4
In 64-bit mode, the linker must have the ability to restore the TOC pointer after an external function call. Update #3082.
2017-08-22bsps/powerpc: Rename ppc_exc_wrap_async_normal_endSebastian Huber1-1/+1
Rename ppc_exc_wrap_async_normal_end to ppc_exc_interrupt_end to avoid a bit of obfuscation. Update #3082.
2017-08-22powerpc: Add 64-bit context/interrupt supportSebastian Huber6-151/+142
Update #3082.
2017-08-22powerpc: 64-bit _CPU_Context_Initialize() supportSebastian Huber1-7/+9
Update #3082.
2017-08-01bsps/powerpc: Add PPC_EXC_INTERRUPT_FRAME_SIZESebastian Huber2-2/+4
Use a specific define for the interrupt exception frame size. Update #3082.
2017-08-01bsps/powerpc: Rename ppc_exc_wrap_async_normalSebastian Huber1-3/+3
Rename ppc_exc_wrap_async_normal to ppc_exc_interrupt to avoid a bit of obfuscation. Update #3082.
2017-07-31bsp/qoriq: Simplify fatal exceptionsSebastian Huber1-0/+228
Avoid use of small-data area, since it is not supported in the ELFv2 ABI by GCC. Update #3082.
2017-07-31bsps/powerpc: Fix format specifiersSebastian Huber1-39/+39
2017-06-09Simplify TLS support in context switchSebastian Huber1-1/+0
There is no need to save the thread pointer in _CPU_Context_switch() since it is a thread invariant. It is initialized once in _CPU_Context_Initialize().
2017-05-29Add support for IBM PowerPC 750 chip.Phong Pham1-0/+2
Closes #3015.
2017-04-24powerpc/new-exceptions/bspsupport/ppc_exc_print.c: Fix printf() format warningsJoel Sherrill1-2/+2
2017-03-07powerpc: Optimize AltiVec context switchSebastian Huber1-2/+0
Use r8 instead of r5 to slightly optimize _CPU_Context_switch(). It is not a big deal, however, we already assume r12 is used by _CPU_Context_switch(). Treat r5 the in same way.
2017-03-02powerpc: Fix warningsSebastian Huber1-1/+1
2017-03-02powerpc: Fix interrupt thread dispatchSebastian Huber1-2/+1
Update #2751.
2017-02-15bsps/powerpc: Fix warningsSebastian Huber1-45/+47
2016-12-02score: Fix ARM and PowerPC context initializationSebastian Huber1-0/+1
Update #2751.
2016-11-24score: Fix interrupt profilingSebastian Huber1-20/+13
Callers of _Thread_Do_dispatch() must have a valid Per_CPU_Control::Stats::thread_dispatch_disabled_instant. Call _Profiling_Outer_most_interrupt_entry_and_exit() with the interrupt stack to not exceed Per_CPU_Control::Interrupt_frame. Update #2751.
2016-11-24powerpc: Fix interrupt profiling for e6500Sebastian Huber1-1/+3
2016-11-18powerpc: Use Per_CPU_Control::isr_dispatch_disableSebastian Huber2-20/+66
Update #2751.
2016-11-18score: Allow interrupts during thread dispatchSebastian Huber1-12/+17
Use a processor-specific interrupt frame during context switches in case the executing thread is longer executes on the processor and the heir thread is about to start execution. During this period we must not use a thread stack for interrupt processing. Update #2809.
2016-11-18powerpc: Add up to date CPU_Interrupt_frameSebastian Huber3-379/+4
Rename ppc_exc_min_frame to CPU_Interrupt_frame. Move it and the corresponding defines to <rtems/score/cpuimpl.h>. Update #2809.
2016-09-08powerpc: Fix SMP context switchSebastian Huber1-61/+62
We need the unmodified r4 for get_potential_new_heir. This partially reverts commit 8d785f72d9610fb80a65d7848404f0f7507e026c.
2016-07-19bsps/powerpc: Fix AtliVec context switchSebastian Huber1-62/+62
Properly pass the stack aligned context to _CPU_Context_switch_altivec() since _CPU_altivec_ctxt_off defined via ppc_context. Close #2761.
2016-02-03Delete unused API extensionsSebastian Huber2-2/+0
2015-11-12Fix interrupt epilogue for ARMv7-AR and PowerPCSebastian Huber1-13/+38
2015-09-28SMP: Fix and optimize thread dispatchingSebastian Huber1-14/+11
According to the C11 and C++11 memory models only a read-modify-write operation guarantees that we read the last value written in modification order. Avoid the sequential consistent thread fence and instead use the inter-processor interrupt to set the thread dispatch necessary indicator.
2015-07-08bsps/powerpc: Provide debug and trace symbolsSebastian Huber1-0/+3
2015-06-09score: Add Thread_Control::is_fpSebastian Huber1-17/+1
Store the floating-point unit property in the thread control block regardless of the CPU_HARDWARE_FP and CPU_SOFTWARE_FP settings. Make sure the floating-point unit is only enabled for the corresponding multilibs. This helps targets which have a volatile only floating point context like SPARC for example.
2015-01-20powerpc: Fix AltiVec VSCR save/restoreSebastian Huber1-4/+6
2015-01-13powerpc: AltiVec and FPU context supportSebastian Huber7-12/+821
Add AltiVec and FPU support to the Context_Control in case we use the e6500 multilib. Add PPC_MULTILIB_ALTIVEC and PPC_MULTILIB_FPU multilib defines. Add non-volatile AltiVec and FPU context to Context_Control. Add save/restore of non-volatile AltiVec and FPU to _CPU_Context_switch(). Add save/restore of volatile AltiVec and FPU context to the exception code. Adjust data cache optimizations for the new context and cache line size.
2015-01-13bsps/powerpc: Use e500 exc categories for e6500Sebastian Huber1-0/+1
This is not correct, but works for now.
2015-01-09powerpc: Use PPC_HAS_FPUSebastian Huber1-6/+6
Provide floating point context support only if PPC_HAS_FPU == 1.
2015-01-09powerpc: Set PPC_DEFAULT_CACHE_LINE_SIZE for e6500Sebastian Huber1-15/+11
2015-01-09bsps/powerpc: ppc_exc_initialize_interrupt_stack()Sebastian Huber2-11/+20
2014-10-14bsps/powerpc: Fix the warning fixSebastian Huber1-3/+3
2014-10-10bsps/powerpc: Fix warningSebastian Huber1-3/+3