summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-11-28 15:29:28 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-11-28 15:29:28 +0100
commitf5f8862a7a39d920325cae53e0f07a4a0d0d7714 (patch)
tree1342faa978f67ee3e76c94af055dbd0ecaceacd0
parent7f08c8227ac454b8ec5673128ececcbfaa585f00 (diff)
Panic when no FPU is available
* i386/i386/fpu.c (init_fpu): Panic if no FPU is available.
-rw-r--r--i386/i386/fpu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/i386/i386/fpu.c b/i386/i386/fpu.c
index 5e507e9..6ff35a0 100644
--- a/i386/i386/fpu.c
+++ b/i386/i386/fpu.c
@@ -141,8 +141,7 @@ init_fpu()
/*
* NO FPU.
*/
- fp_kind = FP_NO;
- set_cr0(get_cr0() | CR0_EM);
+ panic("No FPU!");
}
}