FAR Jmp problem
Posted: Mon Sep 22, 2003 11:00 pm
Hi,
I am almost on the verge of completing my bootloader. These are the things that I have done
1. relocate by bootloader from 0x7C00 to 0x8000:0
2. Enable A20
3. Then jump to the relocated bootloader
4. Then I loaded my kernel at 0x1000:0
5. But when I try to do a far jmp to that address(to execute my kernel) I get
rip > cs error in Bochs
I have tried the following
a) jmp 0x1000:0x0
b) krnl_load_address dw 0x1000
jmp word far krnl_load_address:0x0
and many others............
But still I am not able to get What I want.
PS:
I am still in real mode but I have enabled A20 (but I think both have nothing to do with my problem - except ofcourse the 64K segment limit)
I am almost on the verge of completing my bootloader. These are the things that I have done
1. relocate by bootloader from 0x7C00 to 0x8000:0
2. Enable A20
3. Then jump to the relocated bootloader
4. Then I loaded my kernel at 0x1000:0
5. But when I try to do a far jmp to that address(to execute my kernel) I get
rip > cs error in Bochs
I have tried the following
a) jmp 0x1000:0x0
b) krnl_load_address dw 0x1000
jmp word far krnl_load_address:0x0
and many others............
But still I am not able to get What I want.
PS:
I am still in real mode but I have enabled A20 (but I think both have nothing to do with my problem - except ofcourse the 64K segment limit)