]> Joshua Wise's Git repositories - netwatch.git/blob - grubload/multiboot_asm.S
77eb4e08750b989c28dfcd9bcc4a835356fba5a2
[netwatch.git] / grubload / multiboot_asm.S
1 .globl _start
2
3 _start:
4         jmp multiboot_entry
5
6         .align 4
7 multiboot_header:
8         .long 0x1badb002        /* Magic value */
9         .long 0x00000001        /* Flags -- "Please align modules for me" */
10         .long 0xE4524FFD        /* Checksum */
11
12 multiboot_entry:
13         mov $_stack_top, %esp
14         pushl %ebx      /* Multiboot info structure */
15         pushl %eax      /* Magic number */
16         call c_start
17 hang:   jmp hang
18
19         .align 4
20 _stack:
21         .space 16384
22 _stack_top:
This page took 0.018511 seconds and 2 git commands to generate.