Over 1 Meg OS Loading

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.
jrfritz

Re:Over 1 Meg OS Loading

Post by jrfritz »

So...does this load the kernel after the one megabyte and I can have room for v86 later?
jrfritz

Re:Over 1 Meg OS Loading

Post by jrfritz »

Ok it does...never mind...

Actually I am thinking about no v86 mode. But anyway...
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:Over 1 Meg OS Loading

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:15 pm, edited 1 time in total.
jrfritz

Re:Over 1 Meg OS Loading

Post 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...
jrfritz

Re:Over 1 Meg OS Loading

Post by jrfritz »

[attachment deleted by admin]
jrfritz

Re:Over 1 Meg OS Loading

Post by jrfritz »

[attachment deleted by admin]
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:Over 1 Meg OS Loading

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:15 pm, edited 1 time in total.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Over 1 Meg OS Loading

Post by df »

[attachment deleted by admin]
-- Stu --
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:Over 1 Meg OS Loading

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:15 pm, edited 1 time in total.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Over 1 Meg OS Loading

Post 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
-- Stu --
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:Over 1 Meg OS Loading

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:15 pm, edited 1 time in total.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:Over 1 Meg OS Loading

Post 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
-- Stu --
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:Over 1 Meg OS Loading

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:15 pm, edited 1 time in total.
jrfritz

Re:Over 1 Meg OS Loading

Post 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.....
jrfritz

Re:Over 1 Meg OS Loading

Post by jrfritz »

Section .TEXT does not make it work....I think there is something like a .addr or .address code for linker scripts?
Post Reply