Sending Parameters to Kernel?
Posted: Thu May 25, 2006 1:02 pm
Hey all.
I have a question.
... How can I Send a Parameter to my Kernel?
Id like to send it the Amount of Memory my system has.
This is the later code... in teh Bootloader. JUST before it calls the Kernel.
lgdt [citadel_gdt_descriptor] ; Load the Global Descriptor Table.
mov eax, cr0 ; Enable PE Bit in CR0
or eax, 1
mov cr0, eax
mov eax, 0x09
push eax
jmp 0x08:clear_pipe
Id like to know how to pass it a Number, that being the Number of RAM I have.
Ive tried moving a valu einto EAX and pushing EAX, but nothing happens.
Any advice would be helpful.
Thanks!
I have a question.
... How can I Send a Parameter to my Kernel?
Id like to send it the Amount of Memory my system has.
This is the later code... in teh Bootloader. JUST before it calls the Kernel.
lgdt [citadel_gdt_descriptor] ; Load the Global Descriptor Table.
mov eax, cr0 ; Enable PE Bit in CR0
or eax, 1
mov cr0, eax
mov eax, 0x09
push eax
jmp 0x08:clear_pipe
Id like to know how to pass it a Number, that being the Number of RAM I have.
Ive tried moving a valu einto EAX and pushing EAX, but nothing happens.
Any advice would be helpful.
Thanks!