i have made a basic kernel
now what i want to do is load a .out file as a module (using grub) in my kernel and then execute the program.
how to go about this. any ideas.
load program
Re: load program
Code: Select all
jmp [location]
Re: load program
lets say i ended the execution. and now want to return to the code after the line where jmp was called. how do i do that?
Re: load program
How about this...
just call to the module address you got from grub
Code: Select all
call module
.halt:
hlt
jmp .halt
module:
ret