blob: f0b2487b8ceb718c34dd5a538788d45388ffe76d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* Save the BIST result */
movl %eax, %ebp
/*
* Enabling mmx registers is a noop
* Enable the use of the xmm registers
*/
/* Enable sse instructions */
movl %cr4, %eax
orl $(1<<9), %eax
movl %eax, %cr4
/* Disable floating point emulation */
movl %cr0, %eax
andl $~(1<<2), %eax
movl %eax, %cr0
/* enable sse extension */
movl %cr0, %eax
andl $~(1<<1), %eax
movl %eax, %cr0
/* Restore the BIST result */
movl %ebp, %eax
|