Changeset f24d300 in mainline for kernel/arch/amd64/src/amd64.c
- Timestamp:
- 2009-03-03T15:52:55Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e762b43
- Parents:
- add04f7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
radd04f7 rf24d300 73 73 static void clean_IOPL_NT_flags(void) 74 74 { 75 asm (75 asm volatile ( 76 76 "pushfq\n" 77 77 "pop %%rax\n" … … 79 79 "pushq %%rax\n" 80 80 "popfq\n" 81 : 82 : 83 : "%rax" 81 ::: "%rax" 84 82 ); 85 83 } … … 91 89 static void clean_AM_flag(void) 92 90 { 93 asm (91 asm volatile ( 94 92 "mov %%cr0, %%rax\n" 95 93 "and $~(0x40000), %%rax\n" 96 94 "mov %%rax, %%cr0\n" 97 : 98 : 99 : "%rax" 95 ::: "%rax" 100 96 ); 101 97 }
Note:
See TracChangeset
for help on using the changeset viewer.