summaryrefslogtreecommitdiff
path: root/src/cpu/x86/fpu_enable.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/x86/fpu_enable.inc')
-rw-r--r--src/cpu/x86/fpu_enable.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cpu/x86/fpu_enable.inc b/src/cpu/x86/fpu_enable.inc
new file mode 100644
index 0000000000..bd7a7ff630
--- /dev/null
+++ b/src/cpu/x86/fpu_enable.inc
@@ -0,0 +1,10 @@
+ /* preserve BIST in %eax */
+__fpu_start:
+ movl %eax, %ebp
+
+ /* Disable floating point emulation */
+ movl %cr0, %eax
+ andl $~(1<<2), %eax
+ movl %eax, %cr0
+
+ movl %ebp, %eax