higher half kernel tutorial problem -

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
overburn
Member
Member
Posts: 50
Joined: Sun Feb 22, 2009 9:15 am

higher half kernel tutorial problem -

Post 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
One Tequila, Two Tequila, Three Tequila, Floor!
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: higher half kernel tutorial problem -

Post 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
Post Reply