Expand description
the x86 gdt struct is so obscure and it’s not worth the lines of code to write proper high level representaion. Also since it only needs to be written to once or twice, I’ll live with the hard coded stuffs in this mod. You need to suffer all this pain exists because intel/amd doens’t want to ditch segmentation due to backward compatibility. THIS REALLY SUCKS.
Structs§
- gdtd describes the gdt, don’t be confused, gdtd is not a gdt entdy (segment descriptor)