write kernel sp to tss in dispatcher
This commit is contained in:
@@ -17,6 +17,10 @@ void switchToUsermode(void *stackpointer, void *kickoff,
|
||||
constexpr uint16_t user_ds = 4 << 3 | 3;
|
||||
|
||||
asm volatile ( \
|
||||
"mov %[user_data], %%ds \n" \
|
||||
"mov %[user_data], %%es \n" \
|
||||
"mov %[user_data], %%fs \n" \
|
||||
"mov %[user_data], %%gs \n" \
|
||||
"pushq %[user_data] \n" \
|
||||
"pushq %[user_stack] \n" \
|
||||
"pushq %[user_eflags] \n" \
|
||||
|
||||
Reference in New Issue
Block a user