diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-15 21:09:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-08-15 21:09:02 +0000 |
commit | cd3868cdd35255d57a08c4dd6e8a7b8545a08538 (patch) | |
tree | 943b1ed5ffacd8b53701df82a59c681c195ee490 /c/src/exec/score/cpu/hppa1.1/cpu.c | |
parent | _Thread_Start_multitasking: added code to initialize the floating point (diff) | |
download | rtems-cd3868cdd35255d57a08c4dd6e8a7b8545a08538.tar.bz2 |
updates from Tony Bennett (tbennett@divnc.com)
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/score/cpu/hppa1.1/cpu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/c/src/exec/score/cpu/hppa1.1/cpu.c b/c/src/exec/score/cpu/hppa1.1/cpu.c index 89bb8a8447..d72dda4941 100644 --- a/c/src/exec/score/cpu/hppa1.1/cpu.c +++ b/c/src/exec/score/cpu/hppa1.1/cpu.c @@ -126,15 +126,17 @@ void _CPU_Initialize( proc_ptr old_handler; /* - * XXX; need to setup fpsr smarter perhaps + * This is the default fp context for all tasks + * Set it up so that denormalized results go to zero. */ fp_context = (unsigned8*) &_CPU_Null_fp_context; for (i=0 ; i<sizeof(Context_Control_fp); i++) *fp_context++ = 0; + *((unsigned32 *) &_CPU_Null_fp_context) = HPPA_FPSTATUS_D; /* - * Set _CPU_Default_gr27 here so it will hopefully be the correct + * Save r27 into _CPU_Default_gr27 so it will hopefully be the correct * global data pointer for the entire system. */ |