Bare Bones
- crazygray1
- Member
- Posts: 168
- Joined: Thu Nov 22, 2007 7:18 pm
- Location: USA,Hawaii,Honolulu(Seriously)
Bare Bones
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)
Working On: Design Doc(CFFS file system)
- crazygray1
- Member
- Posts: 168
- Joined: Thu Nov 22, 2007 7:18 pm
- Location: USA,Hawaii,Honolulu(Seriously)
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.
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