Page 1 of 1
How to test the GDT?
Posted: Wed Sep 10, 2008 10:46 am
by errorX
I have completed the Global Descriptor Table now. There is no compiler or linker error and the kernel runs, but I am not sure whether the GDT is implemented right and I don't want to go on until I know. How can I test whether the GDT is alright?
errorX
Re: How to test the GDT?
Posted: Wed Sep 10, 2008 11:05 am
by Combuster
tried bochs in debugger mode?
Re: How to test the GDT?
Posted: Wed Sep 10, 2008 11:32 am
by errorX
I'm using QEMU but I think there's a debugger mode, too. I'll try.
Thanks for this tip.
Re: How to test the GDT?
Posted: Wed Sep 10, 2008 8:33 pm
by Troy Martin
Welcome, errorX!
Yeah, try using a debugger in QEMU or whatever emulator you use. That helps to find issues with memory and anything loaded into memory.
I'm curious, what's your OS project? I assume you've had experience with 16-bit OS programming, since 32-bit can get hard for less experienced people (no bios calls, etc.)
Re: How to test the GDT?
Posted: Wed Sep 10, 2008 11:51 pm
by errorX
Ok, thanks for your help. I wonder, it really seems to be alright.
My OS project is really small. I've less experience, but I just write it to get this experience, trying to get as far as I can.