71,13 → 71,12 |
*/ |
static void clean_IOPL_NT_flags(void) |
{ |
asm |
( |
"pushfq;" |
"pop %%rax;" |
"and $~(0x7000),%%rax;" |
"pushq %%rax;" |
"popfq;" |
asm ( |
"pushfq\n" |
"pop %%rax\n" |
"and $~(0x7000), %%rax\n" |
"pushq %%rax\n" |
"popfq\n" |
: |
: |
:"%rax" |
90,11 → 89,10 |
*/ |
static void clean_AM_flag(void) |
{ |
asm |
( |
"mov %%cr0,%%rax;" |
"and $~(0x40000),%%rax;" |
"mov %%rax,%%cr0;" |
asm ( |
"mov %%cr0, %%rax\n" |
"and $~(0x40000), %%rax\n" |
"mov %%rax, %%cr0\n" |
: |
: |
:"%rax" |
127,6 → 125,7 |
} |
} |
|
|
void arch_post_mm_init(void) |
{ |
if (config.cpu_active == 1) { |
148,9 → 147,9 |
/* Merge all memory zones to 1 big zone */ |
zone_merge_all(); |
} |
|
/* Setup fast SYSCALL/SYSRET */ |
syscall_setup_cpu(); |
|
} |
|
void arch_post_cpu_init() |