summaryrefslogtreecommitdiff
path: root/src/cpu/x86/sse_disable.inc
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2009-10-17 15:01:00 +0000
committerPeter Stuge <peter@stuge.se>2009-10-17 15:01:00 +0000
commitd08be7eecdfd3ee5adff11341a4b7510e7d004dd (patch)
treeb7a71af2b846b8ef85cd5a2d0edd407eb9aeb0d1 /src/cpu/x86/sse_disable.inc
parent0bc615482e34af308712be970479aeb613f5fa41 (diff)
Move files from src/cpu/x86/{fpu,mmx,sse}/ to x86/
Signed-off-by: Peter Stuge <peter@stuge.se> Acked-by: Myles Watson <mylesgw@gmail.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4803 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/cpu/x86/sse_disable.inc')
-rw-r--r--src/cpu/x86/sse_disable.inc18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cpu/x86/sse_disable.inc b/src/cpu/x86/sse_disable.inc
new file mode 100644
index 0000000000..a18ea18643
--- /dev/null
+++ b/src/cpu/x86/sse_disable.inc
@@ -0,0 +1,18 @@
+ /*
+ * Put the processor back into a reset state
+ * with respect to the xmm registers.
+ */
+
+ xorps %xmm0, %xmm0
+ xorps %xmm1, %xmm1
+ xorps %xmm2, %xmm2
+ xorps %xmm3, %xmm3
+ xorps %xmm4, %xmm4
+ xorps %xmm5, %xmm5
+ xorps %xmm6, %xmm6
+ xorps %xmm7, %xmm7
+
+ /* Disable sse instructions */
+ movl %cr4, %eax
+ andl $~(3<<9), %eax
+ movl %eax, %cr4