Files
RockOS/kernel/common_stubs.S

26 lines
382 B
ArmAsm
Raw Normal View History

2026-06-13 13:27:39 -05:00
.code32
2026-06-13 20:43:09 -04:00
.section .text
.global disable_interrupts
disable_interrupts:
cli
ret
2026-06-13 13:27:39 -05:00
.global enable_interrupts
enable_interrupts:
sti
ret
.global io_wait
io_wait:
outb %al, $0x80
2026-06-13 20:43:09 -04:00
ret
.global load_grub_boot_struct
load_grub_boot_struct:
mov %ebx, grub_boot_struct_ptr
.section .bss
.align 4
.global grub_boot_struct_ptr
grub_boot_struct_ptr:
.int 0