Over 1 Meg OS Loading
Re:Over 1 Meg OS Loading
So...does this load the kernel after the one megabyte and I can have room for v86 later?
Re:Over 1 Meg OS Loading
Ok it does...never mind...
Actually I am thinking about no v86 mode. But anyway...
Actually I am thinking about no v86 mode. But anyway...
Re:Over 1 Meg OS Loading
..
Last edited by Perica on Sun Dec 03, 2006 8:15 pm, edited 1 time in total.
Re:Over 1 Meg OS Loading
You need to load your kernel at 9000h using the BIOS, and move the code to 0x100000 using MOVSB...
Yea you use 0x100000 but it makes your kernel size 1 meg...
Yea you use 0x100000 but it makes your kernel size 1 meg...
Re:Over 1 Meg OS Loading
..
Last edited by Perica on Sun Dec 03, 2006 8:15 pm, edited 1 time in total.
Re:Over 1 Meg OS Loading
..
Last edited by Perica on Sun Dec 03, 2006 8:15 pm, edited 1 time in total.
Re:Over 1 Meg OS Loading
have you got a [bits 16] in your nasm code? its trying to do a 16 bit relocation... so you have some 16bit code somewhere
-- Stu --
Re:Over 1 Meg OS Loading
..
Last edited by Perica on Sun Dec 03, 2006 8:15 pm, edited 1 time in total.
Re:Over 1 Meg OS Loading
if your in pmode you, at 1mb, you cant
because your turning a 32bit address into a 16bit address
Code: Select all
dw EXCEPTION_0
-- Stu --
Re:Over 1 Meg OS Loading
..
Last edited by Perica on Sun Dec 03, 2006 8:15 pm, edited 1 time in total.
Re:Over 1 Meg OS Loading
My IDT In C works in 1meg pmode
Ok....but I can't use ORG in my kernelasm.asm file since its linked....my -Ttext option does that when linking...
I'll try section .text.....
Ok....but I can't use ORG in my kernelasm.asm file since its linked....my -Ttext option does that when linking...
I'll try section .text.....
Re:Over 1 Meg OS Loading
Section .TEXT does not make it work....I think there is something like a .addr or .address code for linker scripts?