Page 1 of 1

Loading pe formatted kernel from bootloader

Posted: Sun Apr 05, 2020 6:51 am
by Kamal123
How can I load pe formatted kernel from bootloader... Any idea with rough "C" code would be appreciated. Currently I have a working bootloader written in C, and can load kernel from hard disk. But I m facing problem in loading pe formatted kernel. How can I get kernel address of entry point and jump to it?

Thank you,

Re: Loading pe formatted kernel from bootloader

Posted: Sun Apr 05, 2020 8:18 am
by iansjack
Can I ask why you chose the PE format for your kernel if you don't know how to load a PE file?

Have a look at https://wiki.osdev.org/PE