.section .multiboot, "a" .global header header: .long 0x1BADB002 .long 1 | 2 | 4 .long -(0x1BADB002 + (1 | 2 | 4)) .long 0, 0, 0, 0, 0 .long 0, 1280, 1024, 32 .section .bss, "aw", @nobits .global stackBottom .global stackTop stackBottom: .skip 8192 stackTop: .section .text .extern kmain .global _start _start: mov $stackTop, %ebp mov %ebp, %esp push %ebx call kmain cli _end: hlt jmp _end