summaryrefslogtreecommitdiff
path: root/asm/pit.s
diff options
context:
space:
mode:
Diffstat (limited to 'asm/pit.s')
-rw-r--r--asm/pit.s10
1 files changed, 6 insertions, 4 deletions
diff --git a/asm/pit.s b/asm/pit.s
index c25e9a1..34b69ec 100644
--- a/asm/pit.s
+++ b/asm/pit.s
@@ -19,13 +19,14 @@ pit_interrupt_handler:
incl (%eax)
// ACK IRQ
- mov $0x20,%al
- out %al,$0x20
+ //mov $0x20,%al
+ //out %al,$0x20
pop %eax // load original
///////
+ /*
pusha //Push all standard registers
push %ds //Push data segment
push %es //etc...
@@ -45,8 +46,9 @@ pit_interrupt_handler:
pop %ds
popa
- iret
-
+ iret // pops the return instruction pointer, return code segment selector, and EFLAGS image from the stack
+*/
+ ret
pit_init:
// configure ticking 25 times a second