26 lines
382 B
ArmAsm
26 lines
382 B
ArmAsm
.code32
|
|
.section .text
|
|
.global disable_interrupts
|
|
disable_interrupts:
|
|
cli
|
|
ret
|
|
|
|
.global enable_interrupts
|
|
enable_interrupts:
|
|
sti
|
|
ret
|
|
|
|
.global io_wait
|
|
io_wait:
|
|
outb %al, $0x80
|
|
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 |