summaryrefslogtreecommitdiff
path: root/asm/pit.s
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-08-31 11:49:07 +0200
committerMiguel <m.i@gmx.at>2018-08-31 11:49:07 +0200
commit47d7e8e4527c663dd1a0c04a4ea5624589464895 (patch)
treed6d5ef82f1089a9ab058b27c427c1463db0fae60 /asm/pit.s
parent4404fa9b3d98646f942e32146722a9d0a68edc13 (diff)
various improvmenets
* added debugging symbols to nasm output * started implementing an unified interrupt interface * moved smp entry point to kernel image!
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