summaryrefslogtreecommitdiff
path: root/cpu/i386/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/i386/cpu.c')
-rw-r--r--cpu/i386/cpu.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpu/i386/cpu.c b/cpu/i386/cpu.c
index 669823f946..3c67c124d0 100644
--- a/cpu/i386/cpu.c
+++ b/cpu/i386/cpu.c
@@ -38,6 +38,13 @@
int cpu_init(void)
{
+ /* initialize FPU, reset EM, set MP and NE */
+ asm ("fninit\n" \
+ "movl %cr0, %eax\n" \
+ "andl $~0x4, %eax\n" \
+ "orl $0x22, %eax\n" \
+ "movl %eax, %cr0\n" );
+
return 0;
}