- Add new cvs code to cvs
[coreboot.git] / src / cpu / k8 / disable_mmx_sse.inc
1         /* Clear out an mmx state */
2         emms
3
4         /*
5          * Put the processor back into a reset state
6          * with respect to the xmm registers.
7          */
8         
9         pxor %xmm0, %xmm0
10         pxor %xmm1, %xmm1
11         pxor %xmm2, %xmm2
12         pxor %xmm3, %xmm3
13         pxor %xmm4, %xmm4
14         pxor %xmm5, %xmm5
15         pxor %xmm6, %xmm6
16         pxor %xmm7, %xmm7
17
18         /* Disable floating point emulation */
19         movl    %cr0, %eax
20         andl    $~(1<<2), %eax
21         movl    %eax, %cr0
22
23         /* Disable sse instructions */
24         movl    %cr4, %eax
25         andl    $~(3<<9), %eax
26         movl    %eax, %cr4
27