Page 2 of 4

Re:Over 1 Meg OS Loading

Posted: Tue Dec 31, 2002 7:11 am
by jrfritz
So...does this load the kernel after the one megabyte and I can have room for v86 later?

Re:Over 1 Meg OS Loading

Posted: Tue Dec 31, 2002 7:20 am
by jrfritz
Ok it does...never mind...

Actually I am thinking about no v86 mode. But anyway...

Re:Over 1 Meg OS Loading

Posted: Sat Jan 11, 2003 10:09 pm
by Perica
..

Re:Over 1 Meg OS Loading

Posted: Sat Jan 11, 2003 10:11 pm
by jrfritz
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...

Re:Over 1 Meg OS Loading

Posted: Sat Jan 11, 2003 10:24 pm
by jrfritz
[attachment deleted by admin]

Re:Over 1 Meg OS Loading

Posted: Sat Jan 11, 2003 10:33 pm
by jrfritz
[attachment deleted by admin]

Re:Over 1 Meg OS Loading

Posted: Sat Jan 11, 2003 10:45 pm
by Perica
..

Re:Over 1 Meg OS Loading

Posted: Sun Jan 12, 2003 3:52 am
by df
[attachment deleted by admin]

Re:Over 1 Meg OS Loading

Posted: Sun Jan 12, 2003 4:47 am
by Perica
..

Re:Over 1 Meg OS Loading

Posted: Sun Jan 12, 2003 5:07 am
by df
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

Re:Over 1 Meg OS Loading

Posted: Sun Jan 12, 2003 5:45 am
by Perica
..

Re:Over 1 Meg OS Loading

Posted: Sun Jan 12, 2003 6:03 am
by df
if your in pmode you, at 1mb, you cant

Code: Select all

dw EXCEPTION_0
because your turning a 32bit address into a 16bit address

Re:Over 1 Meg OS Loading

Posted: Sun Jan 12, 2003 6:08 am
by Perica
..

Re:Over 1 Meg OS Loading

Posted: Sun Jan 12, 2003 8:32 am
by jrfritz
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.....

Re:Over 1 Meg OS Loading

Posted: Sun Jan 12, 2003 12:02 pm
by jrfritz
Section .TEXT does not make it work....I think there is something like a .addr or .address code for linker scripts?