Draft: Improve kernel percpu management
Moves the KPCR (now renamed to Processor Control Page, because, you know, it's now exactly one page, and of course because KPCR is the name the Windows NT kernel uses), together with the GDT and TSS into one page. This greatly simplifies the way the PCP is retrieved, and can now be done either (1) by loading gs:self_ref_offset
, (2) rdgsbase
, or (3) by running SGDT
and subtracting the GDT offset within the PCP.
Edited by Jacob Lorentzon