Changeset 4cc2ddd in mainline for kernel/arch/amd64/src/amd64.c
- Timestamp:
- 2008-01-15T13:19:35Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 62da45a
- Parents:
- 22e8166d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/src/amd64.c
r22e8166d r4cc2ddd 72 72 static void clean_IOPL_NT_flags(void) 73 73 { 74 asm 75 ( 76 "pushfq;" 77 "pop %%rax;" 78 "and $~(0x7000),%%rax;" 79 "pushq %%rax;" 80 "popfq;" 81 : 82 : 83 :"%rax" 74 asm ( 75 "pushfq\n" 76 "pop %%rax\n" 77 "and $~(0x7000), %%rax\n" 78 "pushq %%rax\n" 79 "popfq\n" 80 : 81 : 82 : "%rax" 84 83 ); 85 84 } … … 91 90 static void clean_AM_flag(void) 92 91 { 93 asm 94 ( 95 "mov %%cr0,%%rax;" 96 "and $~(0x40000),%%rax;" 97 "mov %%rax,%%cr0;" 98 : 99 : 100 :"%rax" 92 asm ( 93 "mov %%cr0, %%rax\n" 94 "and $~(0x40000), %%rax\n" 95 "mov %%rax, %%cr0\n" 96 : 97 : 98 : "%rax" 101 99 ); 102 100 } … … 128 126 } 129 127 128 130 129 void arch_post_mm_init(void) 131 130 { … … 136 135 /* hard clock */ 137 136 i8254_init(); 138 137 139 138 #ifdef CONFIG_FB 140 139 if (vesa_present()) … … 149 148 zone_merge_all(); 150 149 } 150 151 151 /* Setup fast SYSCALL/SYSRET */ 152 152 syscall_setup_cpu(); 153 154 153 } 155 154
Note:
See TracChangeset
for help on using the changeset viewer.