Page 1 of 1

higher half kernel tutorial problem -

Posted: Thu Feb 26, 2009 2:08 pm
by overburn
i've compiled and written to a floppy the exact code of the upper memory kernel tutorial and i have a problem
when i try to boot it , my pc restarts, or if i try to boot it through virtual box it gives a send/don't send error.
anyone been there and got out? thanx in advance.

i'm booting with grub... is there anything else i should do that grub doesn't enable?

edit:
i tried with bochs and it restarts, but at least gives me some info
so
CR0 = 0xE0000011
cr1 = 0x0
cr2 = 0x00000000c0100034
cr3= 0x00101000
cr4 = 0x00000010

and then
(instruction unavailable) page not present

and i get exception 13 (or 3rd - don't understand it quite well it says: execption(): 3rd (13) , i presume it's 13) exception with no resolution, shutdown status is 00h, resetting
and then resets
what am i doing wrong?



the file is here:
http://edgeos.podzone.net/image.img

Re: higher half kernel tutorial problem -

Posted: Fri Feb 27, 2009 3:23 am
by AJ
Hi,

Look at CR2 - you are page faulting at 0xc0100034. Are you intending to run code (or access data / a stack) there? If so, you need to page in.

Cheers,
Adam