git.openpandora.org
/
pandora-u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* Patch by Marc Singer, 29 May 2003:
[pandora-u-boot.git]
/
cpu
/
i386
/
cpu.c
diff --git
a/cpu/i386/cpu.c
b/cpu/i386/cpu.c
index
669823f
..
3c67c12
100644
(file)
--- 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;
}