c++ Kernel

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
PuMaister

c++ Kernel

Post by PuMaister »

I've been trying to make the c++ kernel in this tutorial: http://www.invalidsoftware.net/os/?the_id=11 (I've done EXACTLY what it says). But when i try to boot it with a bootloader it just dont work :( it seems that the bootloader wont load the kernel at all.. :( A friend implied that it might only work on intel cpu's, but i dont think so... anyone have a clue what I might have done wrong?
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:c++ Kernel

Post by Solar »

PuMaister wrote: A friend implied that it might only work on intel cpu's, but i dont think so... anyone have a clue what I might have done wrong?
1) What bootloader are you using?

2) What CPU are you working with if it isn't Intel?

2a) The assembly code pieces are verified to be applicable for your CPU?

3) What target binary format is your toolchain set to?

3a) You are sure that your binary code is targeted at the correct CPU, and the format has all the right sections the linker script requires?
Every good solution is obvious once you've found it.
PuMaister

Re:c++ Kernel

Post by PuMaister »

I found out...
the kernel was set up for Protected mode (32 bit, right?) and the bootloader wasn't... works fine now :D
Post Reply