# HG changeset patch # User Taiki TAIRA # Date 1343040981 -32400 # Node ID ef4c29d7eda2b1cf60c43adfb0848734a5bf914f # Parent b541382769e653afec9d71098415f9da676b6164 success to move on grub2. simple test program. diff -r b541382769e6 -r ef4c29d7eda2 simpletest/multiboot2.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/simpletest/multiboot2.h Mon Jul 23 19:56:21 2012 +0900 @@ -0,0 +1,3 @@ +#define MULTIBOOT2_HEADER_MAGIC 0xe85250d6 +#define MULTIBOOT_ARCHITECTURE_I386 0 +#define MULTIBOOT_HEADER_TAG_END 0 diff -r b541382769e6 -r ef4c29d7eda2 simpletest/testbootstrap.S --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/simpletest/testbootstrap.S Mon Jul 23 19:56:21 2012 +0900 @@ -0,0 +1,21 @@ +#include "multiboot2.h" +.text +.code32 +.globl start +start: + jmp go_kernel + .align 8 + +multiboot_header: + .long MULTIBOOT2_HEADER_MAGIC + .long MULTIBOOT_ARCHITECTURE_I386 + .long multiboot_header_end - multiboot_header + .long -(MULTIBOOT2_HEADER_MAGIC + MULTIBOOT_ARCHITECTURE_I386 + (multiboot_header_end - multiboot_header)) + .short MULTIBOOT_HEADER_TAG_END + .short 0 + .long 8 +multiboot_header_end: + +go_kernel: + pushl %eax + diff -r b541382769e6 -r ef4c29d7eda2 simpletest/testbootstrap.o Binary file simpletest/testbootstrap.o has changed diff -r b541382769e6 -r ef4c29d7eda2 simpletest/testkernel.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/simpletest/testkernel.c Mon Jul 23 19:56:21 2012 +0900 @@ -0,0 +1,6 @@ + +void +kmain (unsigned long magic, unsigned long addr) +{ + return; +} diff -r b541382769e6 -r ef4c29d7eda2 simpletest/testkernel.elf Binary file simpletest/testkernel.elf has changed