I believe this will need to be done for all the segments. So because the lower (four?) bits limit of the 16-bit segments is 0xF, what does the upper four bits of the limit have to be? I have the same question for the 32-bit (and 64-bit) segments.Octocontrabass wrote: Yes. That specific example sets G=1, D/B=0, L=1, and the upper four bits of the limit to 0xF.
I'm attempting to future-proof here. When I begin to enter user-mode, I know I will need user-mode code and data segments. When I add those to the GDT, do I only have to add 64-bit segments to the GDT?