view simpletest/testbootstrap.S @ 4:ef4c29d7eda2

success to move on grub2. simple test program.
author Taiki TAIRA <e095767@ie.u-ryukyu.ac.jp>
date Mon, 23 Jul 2012 19:56:21 +0900 (2012-07-23)
parents
children be1123717c14
line wrap: on
line source
#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