os/pit_handler.s

13 lines
352 B
ArmAsm
Raw Normal View History

2024-05-21 18:41:16 +03:00
.section .text
.global pit_handler_asm
pit_handler_asm:
push %eax # Save the registers used by the C handler
push %ecx
push %edx
call pit_handler # Call the C handler
pop %edx # Restore the registers in reverse order
pop %ecx
pop %eax
iret # Return from interrupt