* Patch by Marc Singer, 29 May 2003:
[pandora-u-boot.git] / cpu / i386 / cpu.c
index 669823f..3c67c12 100644 (file)
 
 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;
 }