os/boot.s

32 lines
476 B
ArmAsm
Raw Normal View History

2024-05-21 18:41:16 +03:00
.set ALIGN, 1<<0
.set MEMINFO, 1<<1
.set FLAGS, ALIGN | MEMINFO
.set MAGIC, 0x1BADB002 /* multiboot 1 */
.set CHECKSUM, -(MAGIC + FLAGS)
.section .multiboot
.align 4
.long MAGIC
.long FLAGS
.long CHECKSUM
.section .bss
.align 16
stack_bottom:
2024-05-23 20:59:18 +03:00
.skip 16384
stack_top:
2024-05-21 18:41:16 +03:00
stack_top:
.section .text
.global _start
.type _start, @function
_start:
mov $stack_top, %esp
2024-05-23 20:59:18 +03:00
push %ebx
2024-05-21 18:41:16 +03:00
call kernel_main
1:
2024-05-23 20:59:18 +03:00
jmp 1b
2024-05-21 18:41:16 +03:00
.size _start, . - _start