kernel initializes early GDT
Outside of Xen, when the kernel goes to initialize its GDT on the boot processor, it retrieves the boot GDT and copies some boot-specific entries from that into the new GDT.
This unnecessarily couples the bootstrap and the kernel. To the extent that the kernel needs to set up segments relevant to boot, it should simply do so itself and avoid copying them from the bootstrap GDT.
Updated by Electric Monk about 2 months ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit 075343cbd89929c34843ffe183e5e2e633367bd6 Author: Dan Cross <email@example.com> Date: 2022-10-12T20:03:14.000Z 15039 kernel initializes early GDT Reviewed by: Rich Lowe <firstname.lastname@example.org> Reviewed by: Thirteen Oxide <email@example.com> Reviewed by: Patrick Mooney <firstname.lastname@example.org> Reviewed by: Toomas Soome <email@example.com> Reviewed by: Andy Fiddaman <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>