diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2014-12-07 19:59:34 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2014-12-07 19:59:34 +0100 |
commit | f0475a3d517b4df8eb2b73f22eaec91a72bcc51f (patch) | |
tree | 084e6cd1db812cafdd67ba650796eda3091c2ea7 /kernel/include/idt.h | |
parent | d7aaba8c85cc71f3184cddcf20b740c5157c864d (diff) | |
download | kogata-f0475a3d517b4df8eb2b73f22eaec91a72bcc51f.tar.gz kogata-f0475a3d517b4df8eb2b73f22eaec91a72bcc51f.zip |
Implement multitasking.
Diffstat (limited to 'kernel/include/idt.h')
-rw-r--r-- | kernel/include/idt.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/include/idt.h b/kernel/include/idt.h index 9415c8e..8e84cea 100644 --- a/kernel/include/idt.h +++ b/kernel/include/idt.h @@ -60,13 +60,12 @@ #define EFLAGS_IF (0x1 << 9) -struct registers { +typedef struct registers { uint32_t ds; // Data segment selector uint32_t edi, esi, ebp, useless_esp, ebx, edx, ecx, eax; // Pushed by pusha. uint32_t int_no, err_code; // Interrupt number and error code (if applicable) uint32_t eip, cs, eflags, esp, ss; // Pushed by the processor automatically. -}; -typedef struct registers registers_t; +} registers_t; typedef void (*isr_handler_t)(registers_t*); |