From d08be7eecdfd3ee5adff11341a4b7510e7d004dd Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Sat, 17 Oct 2009 15:01:00 +0000 Subject: Move files from src/cpu/x86/{fpu,mmx,sse}/ to x86/ Signed-off-by: Peter Stuge Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4803 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/x86/fpu/enable_fpu.inc | 10 ---------- src/cpu/x86/fpu_enable.inc | 10 ++++++++++ src/cpu/x86/mmx/disable_mmx.inc | 2 -- src/cpu/x86/mmx_disable.inc | 2 ++ src/cpu/x86/sse/disable_sse.inc | 18 ------------------ src/cpu/x86/sse/enable_sse.inc | 14 -------------- src/cpu/x86/sse_disable.inc | 18 ++++++++++++++++++ src/cpu/x86/sse_enable.inc | 14 ++++++++++++++ 8 files changed, 44 insertions(+), 44 deletions(-) delete mode 100644 src/cpu/x86/fpu/enable_fpu.inc create mode 100644 src/cpu/x86/fpu_enable.inc delete mode 100644 src/cpu/x86/mmx/disable_mmx.inc create mode 100644 src/cpu/x86/mmx_disable.inc delete mode 100644 src/cpu/x86/sse/disable_sse.inc delete mode 100644 src/cpu/x86/sse/enable_sse.inc create mode 100644 src/cpu/x86/sse_disable.inc create mode 100644 src/cpu/x86/sse_enable.inc (limited to 'src/cpu') diff --git a/src/cpu/x86/fpu/enable_fpu.inc b/src/cpu/x86/fpu/enable_fpu.inc deleted file mode 100644 index bd7a7ff630..0000000000 --- a/src/cpu/x86/fpu/enable_fpu.inc +++ /dev/null @@ -1,10 +0,0 @@ - /* preserve BIST in %eax */ -__fpu_start: - movl %eax, %ebp - - /* Disable floating point emulation */ - movl %cr0, %eax - andl $~(1<<2), %eax - movl %eax, %cr0 - - movl %ebp, %eax diff --git a/src/cpu/x86/fpu_enable.inc b/src/cpu/x86/fpu_enable.inc new file mode 100644 index 0000000000..bd7a7ff630 --- /dev/null +++ b/src/cpu/x86/fpu_enable.inc @@ -0,0 +1,10 @@ + /* preserve BIST in %eax */ +__fpu_start: + movl %eax, %ebp + + /* Disable floating point emulation */ + movl %cr0, %eax + andl $~(1<<2), %eax + movl %eax, %cr0 + + movl %ebp, %eax diff --git a/src/cpu/x86/mmx/disable_mmx.inc b/src/cpu/x86/mmx/disable_mmx.inc deleted file mode 100644 index 97d62d60f5..0000000000 --- a/src/cpu/x86/mmx/disable_mmx.inc +++ /dev/null @@ -1,2 +0,0 @@ - /* Clear out an mmx state */ - emms diff --git a/src/cpu/x86/mmx_disable.inc b/src/cpu/x86/mmx_disable.inc new file mode 100644 index 0000000000..97d62d60f5 --- /dev/null +++ b/src/cpu/x86/mmx_disable.inc @@ -0,0 +1,2 @@ + /* Clear out an mmx state */ + emms diff --git a/src/cpu/x86/sse/disable_sse.inc b/src/cpu/x86/sse/disable_sse.inc deleted file mode 100644 index a18ea18643..0000000000 --- a/src/cpu/x86/sse/disable_sse.inc +++ /dev/null @@ -1,18 +0,0 @@ - /* - * 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 diff --git a/src/cpu/x86/sse/enable_sse.inc b/src/cpu/x86/sse/enable_sse.inc deleted file mode 100644 index 95724b71f7..0000000000 --- a/src/cpu/x86/sse/enable_sse.inc +++ /dev/null @@ -1,14 +0,0 @@ - /* 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 - 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 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 + -- cgit v1.2.3