omos-tcnj2024/boot/boot.s

21 lines
254 B
ArmAsm
Raw Normal View History

2024-02-17 20:10:42 +01:00
; only support mb1
align equ 1 << 0
info equ 1 << 1
flags equ align | info
magic equ 0x1BADB002
chksum equ - (magic + flags)
2024-02-17 18:56:38 +01:00
2024-02-17 20:10:42 +01:00
section .multiboot
align 4
dd magic
dd flags
dd chksum
2024-02-17 18:56:38 +01:00
2024-02-17 20:10:42 +01:00
global _start
extern sysinit
2024-02-17 18:56:38 +01:00
2024-02-17 20:10:42 +01:00
_start:
cli
call sysinit
hlt