old-MTGos-old/kernel/hal/x86/boot/boot.S

24 lines
342 B
ArmAsm
Raw Normal View History

.section multiboot
#define MB_MAGIC 0x1BADB002
#define MB_FLAGS 0x0
#define MB_CHECKSUM -(MB_MAGIC + MB_FLAGS)
.align 4
.int MB_MAGIC
.int MB_FLAGS
.int MB_CHECKSUM
.section .text
.extern init
.global _start
_start:
mov $kernel_stack, %esp
push %ebx
push %eax
call init
_stop:
cli
hlt
jmp _stop
.section .bss
.space 8192
kernel_stack: