Bare Bones

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
User avatar
crazygray1
Member
Member
Posts: 168
Joined: Thu Nov 22, 2007 7:18 pm
Location: USA,Hawaii,Honolulu(Seriously)

Bare Bones

Post by crazygray1 »

OK, I used the bare bones tutorial and came up with this:
Attachments

[The extension s has been deactivated and can no longer be displayed.]

linker.ld
linker script
(133 Bytes) Downloaded 36 times
Codname: Cipher
Working On: Design Doc(CFFS file system)
User avatar
crazygray1
Member
Member
Posts: 168
Joined: Thu Nov 22, 2007 7:18 pm
Location: USA,Hawaii,Honolulu(Seriously)

Post by crazygray1 »

Can I just start the kernel code from here?
Codname: Cipher
Working On: Design Doc(CFFS file system)
User avatar
lukem95
Member
Member
Posts: 536
Joined: Fri Aug 03, 2007 6:03 am
Location: Cambridge, UK

Post by lukem95 »

It looks fine, except i think the multiboot macroes/defines must be 4 byte aligned as well as the kludge stuff.

Im not 100% sure if thats enough to work, as i decided to use a readymade bootstrap from brans dev kernel, and build from that. You should just build a simple kernel that prints a character to the screen and call it.

Code: Select all

extern _kmain ; Kernels main() function
push eax ; Push the Magic boot number onto stack
push ebx ; Push multiboot_info_t onto stack
call _kmain ; Call it
~ Lukem95 [ Cake ]
Release: 0.08b
Image
Post Reply