mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
Kernel: Use the GS segment for the per-CPU struct
Right now we're using the FS segment for our per-CPU struct. On x86_64 there's an instruction to switch between a kernel and usermode GS segment (swapgs) which we could use. This patch doesn't update the rest of the code to use swapgs but it prepares for that by using the GS segment instead of the FS segment.
This commit is contained in:
parent
42d197cde7
commit
52f9aaa823
Notes:
sideshowbarker
2024-07-18 11:05:17 +09:00
Author: https://github.com/gunnarbeutner
Commit: 52f9aaa823
Pull-request: https://github.com/SerenityOS/serenity/pull/8392
8 changed files with 36 additions and 36 deletions
|
@ -38,7 +38,7 @@ NEVER_INLINE void syscall_asm_entry_dummy()
|
|||
" mov %ax, %ds\n"
|
||||
" mov %ax, %es\n"
|
||||
" mov $" __STRINGIFY(GDT_SELECTOR_PROC) ", %ax\n"
|
||||
" mov %ax, %fs\n"
|
||||
" mov %ax, %gs\n"
|
||||
" cld\n"
|
||||
" xor %esi, %esi\n"
|
||||
" xor %edi, %edi\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue