Re: Protected Mode Hello world.
Posted: Mon Jul 27, 2009 11:04 am
I mean the selector entries in the GDT. They're 8 bytes long, which makes 0x16 incorrect. (0x16 == 22)raghuk wrote:Small correction there. Size of a selector is 16 bits. Selector needs not be multiples of 8. Usually they are multiples of 8 because bits 0-1 represent requested privilege level and bit 2 represents table indicator (GDT = 0, LDT = 1). For kernel code/data segments we have RPL = 0 and TI = 0. Hence they are multiples of 8.Troy Martin wrote:Okay, but here's the odd thing: 0x16!? Well thar's a problem, it should be 0x18. Selectors are usually multiples of 8, as that's the size of a selector...