The FAQ at http://www.osdev.org/osfaq2/index.php/Visual%20C
May not have what you are looking for, but it is what I and others have put together.
Mike
Microsoft Visual C++
Re:Microsoft Visual C++
how to create PE-file bootable by GRUB? Is it possible with MSVS 2005?
Re:Microsoft Visual C++
Hello,
once i've found an article about the topic "how to create PE-file bootable by GRUB?".
You can find it here: http://ksrenevasan.blogspot.com/2005/10/writing-multiboot-pe-kernels-using.html.
But i don't like this way at all.....
I've written a simple PE loader for grub.
You can set the PE loader binary as kernel and include your real kernel as a module.
The PE loader initializes some basic stuff like A20, PIC, GDT, IDT...etc.
Besides that it setups a simple exception handler.
After all those basic stuff is done it setups paging and establishes some common
mappings (first 4mb will be mapped 1:1). Then it searches the boot modules
for your kernel. When it has found your kernel it will map the kernel sections and after
everything is done it will execute your kernel.
If you want i can send you my PE loader.
Bye !
once i've found an article about the topic "how to create PE-file bootable by GRUB?".
You can find it here: http://ksrenevasan.blogspot.com/2005/10/writing-multiboot-pe-kernels-using.html.
But i don't like this way at all.....
I've written a simple PE loader for grub.
You can set the PE loader binary as kernel and include your real kernel as a module.
The PE loader initializes some basic stuff like A20, PIC, GDT, IDT...etc.
Besides that it setups a simple exception handler.
After all those basic stuff is done it setups paging and establishes some common
mappings (first 4mb will be mapped 1:1). Then it searches the boot modules
for your kernel. When it has found your kernel it will map the kernel sections and after
everything is done it will execute your kernel.
If you want i can send you my PE loader.
Bye !
-
- Member
- Posts: 31
- Joined: Thu Apr 14, 2005 11:00 pm
- Location: Planet Earth
- Contact: