kernel

hobby kernel
git clone git://git.evenfri.xyz/kernel.git
Log | Files | Refs | README | LICENSE

isr_stub.asm (219B)


      1 bits 32
      2 
      3 global irq0_stub
      4 extern pit_handler
      5 
      6 section .text
      7 
      8 irq0_stub:
      9   pusha
     10 
     11   mov ax, ds
     12   push eax
     13 
     14   mov ax, 0x10
     15   mov ds, ax
     16   mov es, ax
     17 
     18   call pit_handler
     19 
     20   pop eax
     21   mov ds, ax
     22   mov es, ax
     23 
     24   popa
     25   iret