Rev 2071 | Rev 2089 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2071 | Rev 2082 | ||
---|---|---|---|
Line 69... | Line 69... | ||
69 | "GenuineIntel" |
69 | "GenuineIntel" |
70 | }; |
70 | }; |
71 | 71 | ||
72 | void fpu_disable(void) |
72 | void fpu_disable(void) |
73 | { |
73 | { |
74 | __asm__ volatile ( |
74 | asm volatile ( |
75 | "mov %%cr0,%%eax;" |
75 | "mov %%cr0,%%eax;" |
76 | "or $8,%%eax;" |
76 | "or $8,%%eax;" |
77 | "mov %%eax,%%cr0;" |
77 | "mov %%eax,%%cr0;" |
78 | : |
78 | : |
79 | : |
79 | : |
Line 81... | Line 81... | ||
81 | ); |
81 | ); |
82 | } |
82 | } |
83 | 83 | ||
84 | void fpu_enable(void) |
84 | void fpu_enable(void) |
85 | { |
85 | { |
86 | __asm__ volatile ( |
86 | asm volatile ( |
87 | "mov %%cr0,%%eax;" |
87 | "mov %%cr0,%%eax;" |
88 | "and $0xffFFffF7,%%eax;" |
88 | "and $0xffFFffF7,%%eax;" |
89 | "mov %%eax,%%cr0;" |
89 | "mov %%eax,%%cr0;" |
90 | : |
90 | : |
91 | : |
91 | : |