summaryrefslogtreecommitdiff
path: root/src/stem/task/idt_.asm
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2010-02-03 17:50:30 +0100
committerAlexis211 <alexis211@gmail.com>2010-02-03 17:50:30 +0100
commit6d849bc12d6afe2fe239c5a7dc581ba76d67974b (patch)
treea227121ed4e5d3ef86d5047fed7b5a0bbef33ead /src/stem/task/idt_.asm
parent9c4310651a91e64c10a17f3190c895a49096aeb1 (diff)
downloadTCE-6d849bc12d6afe2fe239c5a7dc581ba76d67974b.tar.gz
TCE-6d849bc12d6afe2fe239c5a7dc581ba76d67974b.zip
Start syscall work
Diffstat (limited to 'src/stem/task/idt_.asm')
-rw-r--r--src/stem/task/idt_.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/stem/task/idt_.asm b/src/stem/task/idt_.asm
index b73f7a5..63d1570 100644
--- a/src/stem/task/idt_.asm
+++ b/src/stem/task/idt_.asm
@@ -63,6 +63,7 @@ idt_flush:
COMMONSTUB isr
COMMONSTUB irq
+COMMONSTUB syscall
;************************************************************************************
@@ -92,6 +93,15 @@ COMMONSTUB irq
jmp irq_common_stub
%endmacro
+%macro SYSCALL 1
+ [GLOBAL syscall%1]
+ syscall%1:
+ cli
+ push byte 0
+ push byte %1
+ jmp syscall_common_stub
+%endmacro
+
ISR_NOERRCODE 0
ISR_NOERRCODE 1
ISR_NOERRCODE 2
@@ -141,3 +151,5 @@ IRQ 12, 44
IRQ 13, 45
IRQ 14, 46
IRQ 15, 47
+
+SYSCALL 64