Page 1 of 1
GDT HELP
Posted: Fri Sep 20, 2002 10:33 am
by beyondsociety
I have added a offset to the beginning of my kernel code. I have added this whole offset to the GDTR base address and the far jump to protected mode.
Do I also have to add this offset to the loading in of the GDTR?
ex: lgdt [GDTR + offset]
Re:GDT HELP
Posted: Fri Sep 20, 2002 11:19 am
by drizzt
No if you have added the [org old_org+offset] directive to the beginning of your code...
Re:GDT HELP
Posted: Fri Sep 20, 2002 11:25 am
by beyondsociety
Whats the [org old_org + offset] drizzt?
Re:GDT HELP
Posted: Fri Sep 20, 2002 11:31 am
by drizzt
If your previous beginning address was for example 0x10000 and you add an offset 0x600, you write:
[org 0x10000+0x600]
In this case you do not have to specify GDTR + offset