diff options
Diffstat (limited to 'src/cpu/x86/sse_enable.inc')
-rw-r--r-- | src/cpu/x86/sse_enable.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cpu/x86/sse_enable.inc b/src/cpu/x86/sse_enable.inc new file mode 100644 index 0000000000..95724b71f7 --- /dev/null +++ b/src/cpu/x86/sse_enable.inc @@ -0,0 +1,14 @@ + /* preserve BIST in %eax */ + movl %eax, %ebp + + /* + * Enable the use of the xmm registers + */ + + /* Enable sse instructions */ + movl %cr4, %eax + orl $(1<<9), %eax + movl %eax, %cr4 + + movl %ebp, %eax + |