1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-11-13 11:04:27 -05:00
libkernaux/examples/bootloader-multiboot2-grub/start.S

31 lines
463 B
ArmAsm
Raw Normal View History

2022-01-08 22:06:03 -05:00
.section .bss
.global _kernel_stack_start
.global _kernel_stack_end
.align 16
_kernel_stack_start:
.skip 16384 # 16 KiB
_kernel_stack_end:
.section .text
.global _start
2022-01-12 04:40:35 -05:00
.type _start, @function
.type main, @function
.type poweroff, @function
2022-01-08 22:06:03 -05:00
_start:
mov $_kernel_stack_end, %esp // Initialize stack
push %ebx // Multiboot information pointer
push %eax // Multiboot magic number
call main
2022-01-12 04:40:35 -05:00
call poweroff
2022-01-08 22:06:03 -05:00
.size _start, . - _start