projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- Add new cvs code to cvs
[coreboot.git]
/
src
/
cpu
/
x86
/
fpu
/
enable_fpu.inc
diff --git a/src/cpu/x86/fpu/enable_fpu.inc
b/src/cpu/x86/fpu/enable_fpu.inc
new file mode 100644
(file)
index 0000000..
e663e36
--- /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