summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/hppa1.1
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-15 21:09:02 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-08-15 21:09:02 +0000
commitcd3868cdd35255d57a08c4dd6e8a7b8545a08538 (patch)
tree943b1ed5ffacd8b53701df82a59c681c195ee490 /cpukit/score/cpu/hppa1.1
parent_Thread_Start_multitasking: added code to initialize the floating point (diff)
downloadrtems-cd3868cdd35255d57a08c4dd6e8a7b8545a08538.tar.bz2
updates from Tony Bennett (tbennett@divnc.com)
Diffstat (limited to 'cpukit/score/cpu/hppa1.1')
-rw-r--r--cpukit/score/cpu/hppa1.1/cpu.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/cpu/hppa1.1/cpu.c b/cpukit/score/cpu/hppa1.1/cpu.c
index 89bb8a8447..d72dda4941 100644
--- a/cpukit/score/cpu/hppa1.1/cpu.c
+++ b/cpukit/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.
*/