diff options
Diffstat (limited to 'cpu/i386/cpu.c')
-rw-r--r-- | cpu/i386/cpu.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpu/i386/cpu.c b/cpu/i386/cpu.c index 669823f..3c67c12 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; } |