Changeset 2e19bfd in rtems
- Timestamp:
- 12/23/14 11:27:53 (8 years ago)
- Branches:
- 4.11, 5, master
- Children:
- b1268e6
- Parents:
- 0d0095f1
- git-author:
- Sebastian Huber <sebastian.huber@…> (12/23/14 11:27:53)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (01/09/15 13:05:46)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S
r0d0095f1 r2e19bfd 57 57 #define PPC_CONTEXT_CACHE_LINE_4 (5 * PPC_DEFAULT_CACHE_LINE_SIZE) 58 58 59 BEGIN_CODE 60 61 #if PPC_HAS_FPU == 1 62 59 63 /* 60 * Offsets for various Contexts64 * Offsets for Context_Control_fp 61 65 */ 62 66 … … 105 109 .set FP_FPSCR, (FP_31 + FP_SIZE) 106 110 107 BEGIN_CODE108 111 /* 109 112 * _CPU_Context_save_fp_context … … 122 125 PUBLIC_PROC (_CPU_Context_save_fp) 123 126 PROC (_CPU_Context_save_fp): 124 #if (PPC_HAS_FPU == 1)125 127 /* A FP context switch may occur in an ISR or exception handler when the FPU is not 126 128 * available. Therefore, we must explicitely enable it here! … … 172 174 isync 173 175 1: 174 #endif175 176 blr 176 177 … … 191 192 PUBLIC_PROC (_CPU_Context_restore_fp) 192 193 PROC (_CPU_Context_restore_fp): 193 #if (PPC_HAS_FPU == 1)194 194 lwz r3, 0(r3) 195 195 /* A FP context switch may occur in an ISR or exception handler when the FPU is not … … 241 241 isync 242 242 1: 243 #endif244 243 blr 244 #endif /* PPC_HAS_FPU == 1 */ 245 245 246 246 ALIGN (PPC_CACHE_ALIGNMENT, PPC_CACHE_ALIGN_POWER) -
cpukit/score/cpu/powerpc/rtems/score/cpu.h
r0d0095f1 r2e19bfd 393 393 #ifndef ASM 394 394 typedef struct { 395 #if (PPC_HAS_FPU == 1) 395 396 /* The ABIs (PowerOpen/SVR4/EABI) only require saving f14-f31 over 396 397 * procedure calls. However, this would mean that the interrupt … … 406 407 uint32_t fpscr; 407 408 #endif 409 #endif /* (PPC_HAS_FPU == 1) */ 408 410 } Context_Control_fp; 409 411
Note: See TracChangeset
for help on using the changeset viewer.