Is my concept of a gdt correct??
Posted: Wed Jun 25, 2008 12:19 pm
Is my visualization of the GDT ok? Im trying to get this all worked out before adding any of my own code, is it the case that we have 16 bits for null descriptor, 16 bits for code descriptor and another 16 bits for data and that these would be placed contiguously.......each of the three 16 bits parts makes 48bits so is this what they mean by a 48bit entry?
Does each of the 16bit parts I have stated limit for, well is that correct in regards to what the limit field can reference?
Im not to sure about this limit aspect if I have got it correct but I have actually been trying to get to grips with theory a bit more this time around and basing the layout on brans tutorial while drawing the above to try and gain understanding of what is happening.Im also wandering a far pointer is 48bit, thats 16bits to referance one of those limits above and 32bit offset into the table to the start of the addresses to use? Is this correct.
Sorry to bother you all again its just I know I really need to take this part slow and make sure I at some point gain a decent understanding.
Thanks
edit: Well I was just going to leave this post as is but I figured would post back in case some newbie reads this(since it is missing info and in many respects wrong), anyway I have spent the last 2 and a half hours just referencing theory in brans and other tutorial and I think I have a better idea now of whats what. I am going through theory at
http://www.osdever.net/bkerndev/index.php?the_id=90
WHich I am comparing with the gdt code from brans guide, I think my main problem is going to be remembering all the details in regards to what bits do what in the gdt
. I will try and get through the idt tonight as well then see if I can put code in to force specific faults and then add my own basic as hell exception handling, thats the plan anyway lol
Code: Select all
7 6 5 4 3 0 7 6 5 4 3 0
P |DPL| DT------> |Type| G D 0 A SEGLEN
NULL
<------------------------LIMIT----------------------------------------------------->
7 6 5 4 3 0 7 6 5 4 3 0
P |DPL| DT------> |Type| G D 0 A SEGLEN
CODE
<------------------------LIMIT----------------------------------------------------->
7 6 5 4 3 0 7 6 5 4 3 0
P |DPL| DT------> |Type| G D 0 A SEGLEN
DATA
<------------------------LIMIT----------------------------------------------------->
Im not to sure about this limit aspect if I have got it correct but I have actually been trying to get to grips with theory a bit more this time around and basing the layout on brans tutorial while drawing the above to try and gain understanding of what is happening.Im also wandering a far pointer is 48bit, thats 16bits to referance one of those limits above and 32bit offset into the table to the start of the addresses to use? Is this correct.
Sorry to bother you all again its just I know I really need to take this part slow and make sure I at some point gain a decent understanding.
Thanks
edit: Well I was just going to leave this post as is but I figured would post back in case some newbie reads this(since it is missing info and in many respects wrong), anyway I have spent the last 2 and a half hours just referencing theory in brans and other tutorial and I think I have a better idea now of whats what. I am going through theory at
http://www.osdever.net/bkerndev/index.php?the_id=90
WHich I am comparing with the gdt code from brans guide, I think my main problem is going to be remembering all the details in regards to what bits do what in the gdt