diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-03 11:36:23 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-02-17 09:15:00 +0100 |
commit | 59e6e76190383d396582263800e915d54fb0206f (patch) | |
tree | 9b362e3d9feca67e6dd0f59fd469c49f9a5553b2 /cpukit/score/cpu/sh/cpu.c | |
parent | i386: Avoid SCORE_EXTERN (diff) | |
download | rtems-59e6e76190383d396582263800e915d54fb0206f.tar.bz2 |
sh: Avoid SCORE_EXTERN
Update #2559.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/sh/cpu.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/score/cpu/sh/cpu.c b/cpukit/score/cpu/sh/cpu.c index 2b41e78df1..d6e2d176f5 100644 --- a/cpukit/score/cpu/sh/cpu.c +++ b/cpukit/score/cpu/sh/cpu.c @@ -43,6 +43,10 @@ proc_ptr vectab[256] ; extern proc_ptr _Hardware_isr_Table[]; +#if SH_HAS_FPU +Context_Control_fp _CPU_Null_fp_context; +#endif + /* _CPU_Initialize * * This routine performs processor dependent initialization. @@ -62,6 +66,7 @@ void _CPU_Initialize(void) */ /* FP context initialization support goes here */ +#if SH_HAS_FPU /* FIXME: When not to use SH4_FPSCR_PR ? */ #ifdef __SH4__ _CPU_Null_fp_context.fpscr = SH4_FPSCR_DN | SH4_FPSCR_RM | SH4_FPSCR_PR; @@ -70,6 +75,7 @@ void _CPU_Initialize(void) /* FIXME: Wild guess :) */ _CPU_Null_fp_context.fpscr = SH4_FPSCR_DN | SH4_FPSCR_RM; #endif +#endif /* enable interrupts */ _CPU_ISR_Set_level( level ) ; |