Solution needed for building a static IDT and GDT at assemble/compile/link time
One solution that I most commonly use is to actually use the GNU linker (ld) to build the IDT and GDT for me. This answer isn’t a primer on writing GNU linker scripts, but it does make use of the BYTE, SHORT, and LONG linker script directives to build the IDT, the GDT, the IDT … Read more