; $Id$

MAGIC_NUMBER equ 0x1badb002
FLAGS equ (1 << 0) | (1 << 1)
CHECKSUM equ -(MAGIC_NUMBER + FLAGS)

section .multiboot
	align 4
	dd MAGIC_NUMBER
	dd FLAGS
	dd CHECKSUM

section .data
	seax: dd 0
	sebx: dd 0

section .bss
	align 16
	stack_bottom:
	resb 16384
	stack_top:

section .text
global _start:function (_start.end - _start)
extern init_kernel
_start:
	mov [seax], eax
	mov [sebx], ebx
	mov esp, stack_top
	mov eax, [seax]
	mov ebx, [sebx]
	push ebx
	push eax
	call init_kernel
.end:
