Loading pe formatted kernel from bootloader

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
Kamal123
Member
Member
Posts: 99
Joined: Fri Nov 01, 2019 1:17 am

Loading pe formatted kernel from bootloader

Post 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,
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: Loading pe formatted kernel from bootloader

Post 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
Post Reply