1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 16:47:42 +00:00
serenity/Kernel/Arch
Gunnar Beutner 52f9aaa823 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.
2021-07-02 23:33:17 +02:00
..
PC Kernel: Introduce the new SysFS 2021-06-29 20:53:59 +02:00
x86 Kernel: Use the GS segment for the per-CPU struct 2021-07-02 23:33:17 +02:00