mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
有bug,在debian,gcc=10.2.1上编译后运行会在进程切换时page fault
This commit is contained in:
@ -52,11 +52,7 @@ void __switch_to(struct process_control_block *prev, struct process_control_bloc
|
||||
__asm__ __volatile__("movq %0, %%fs \n\t" ::"a"(next->thread->fs));
|
||||
__asm__ __volatile__("movq %0, %%gs \n\t" ::"a"(next->thread->gs));
|
||||
// wrmsr(0x175, next->thread->rbp);
|
||||
uint color;
|
||||
if (proc_current_cpu_id == 0)
|
||||
color = WHITE;
|
||||
else
|
||||
color = YELLOW;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user