diff options
Diffstat (limited to 'src/cpu/x86/fpu')
-rw-r--r-- | src/cpu/x86/fpu/Config.lb | 0 | ||||
-rw-r--r-- | src/cpu/x86/fpu/enable_fpu.inc | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/cpu/x86/fpu/Config.lb b/src/cpu/x86/fpu/Config.lb new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/src/cpu/x86/fpu/Config.lb diff --git a/src/cpu/x86/fpu/enable_fpu.inc b/src/cpu/x86/fpu/enable_fpu.inc new file mode 100644 index 0000000000..e663e365ac --- /dev/null +++ b/src/cpu/x86/fpu/enable_fpu.inc @@ -0,0 +1,9 @@ + /* preserve BIST in %eax */ + movl %eax, %ebp + + /* Disable floating point emulation */ + movl %cr0, %eax + andl $~(1<<2), %eax + movl %eax, %cr0 + + movl %ebp, %eax |