jmping into kernel
Posted: Sun Jul 13, 2003 1:46 pm
Hi,
Im a newbie os developer and after long studies I have my hello world printing bootsector and now I want to jump into my kernel. I wrote a simple kernel that just prints "Im in kernel now" and halts. But I couldnt manage to jump into my kernel. Im sure my kernel is working fine.(I tried with another boot sector.). I load my kernel from disk at 0:1000 adress but couldnt find how to jmp there. I examine nearly 10 oses but most of them jmps after switching pmode.
jmp CodeSel:KernelPos
My bootsector is just write "hello world" to video memory and loads kernel.Nothing more. Some oses use raw code of commands.
I couldnt make both working. Ill be glad if some one explain how to jmp kernel at 0:1000h? I need just a line of code.. (No A20 line, no pmode, ...)(Im using Nasm)
Im a newbie os developer and after long studies I have my hello world printing bootsector and now I want to jump into my kernel. I wrote a simple kernel that just prints "Im in kernel now" and halts. But I couldnt manage to jump into my kernel. Im sure my kernel is working fine.(I tried with another boot sector.). I load my kernel from disk at 0:1000 adress but couldnt find how to jmp there. I examine nearly 10 oses but most of them jmps after switching pmode.
jmp CodeSel:KernelPos
My bootsector is just write "hello world" to video memory and loads kernel.Nothing more. Some oses use raw code of commands.
Code: Select all
db 0edh
dw 0, KernelPos