The article shows the GDT segment descriptor. (Please see article)
My interpretation of this is:
Code: Select all
struct __attribute__((packed)) gdt_entry {
uint8_t membasehigh; // byte 0
uint8_t flagslimit; // byte 1
uint8_t access; // byte 2
uint8_t membasemiddle; // byte 3
uint16_t membaselow; // bytes 4-5
uint16_t limit; // bytes 6-7
};I find it hard to believe that being a newbie at this, my interpretation is the correct one. I think it is more likely that I am missing something basic.
Could someone please tell me if I am correct, or explain what I'm missing?
Tom
