x86_64
x86_64 copied to clipboard
const fn gdt creation
I would like the ability to create a GlobalDescriptorTable with a const fn. I am writing a kernel and need to ensure that no 64-bit code runs before I jump to long mode because the kernel is started in 32-bit mode. I want to define the gdt structure with rust.