summaryrefslogtreecommitdiff
path: root/asm/int_clock_handler.asm
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-08-21 01:20:42 +0200
committerMiguel <m.i@gmx.at>2018-08-21 01:20:42 +0200
commit690403fc51ecb51689cb72f224fccc0d301b7f7d (patch)
tree44b6a93d95ac04461d02a9c411cbe5e3f4431ce4 /asm/int_clock_handler.asm
parent1963dbcd92c15094c99d2f900e4812611b6af733 (diff)
cleanup timer stuff and move to asm.
Diffstat (limited to 'asm/int_clock_handler.asm')
-rw-r--r--asm/int_clock_handler.asm23
1 files changed, 0 insertions, 23 deletions
diff --git a/asm/int_clock_handler.asm b/asm/int_clock_handler.asm
deleted file mode 100644
index f6c056a..0000000
--- a/asm/int_clock_handler.asm
+++ /dev/null
@@ -1,23 +0,0 @@
-global int_clock_handler
-[extern task_switch_next]
-
-[bits 32]
-
-int_clock_handler:
-
-pusha ;Push all standard registers
-
-mov eax, esp ;save current stack pointer in esp
-mov esp, 0x7000 ;now put the stack outside of virtual memory in kernel space!
-
-push eax ;Push pointer to all the stuff we just pushed
-call task_switch_next ;Call C code
-
-mov esp, eax ;Replace the stack with what the C code gave us
-
-mov al, 0x20 ;Port number AND command number to Acknowledge IRQ
-out 0x20, al ;Acknowledge IRQ, so we keep getting interrupts
-
-popa ;Put the standard registers back
-
-iretd ;Interrupt-Return