diff cos/kernel/kernel.h @ 14:a58904747019

Added asm interrupt handler things, not yet working
author windel
date Mon, 14 Nov 2011 22:45:55 +0100
parents d07d4701a103
children f3e3e0e9c4bc
line wrap: on
line diff
--- a/cos/kernel/kernel.h	Mon Nov 14 21:44:35 2011 +0100
+++ b/cos/kernel/kernel.h	Mon Nov 14 22:45:55 2011 +0100
@@ -19,6 +19,10 @@
 void memset(void* ptr, uint32_t value, uint32_t num);
 void memcpy(void* dst, void* src, uint32_t num);
 
+struct IDT_entry {
+  unsigned char b[8];
+};
+
 // memory alloc functions:
 void* malloc(size_t size);
 void free(void* ptr);
@@ -31,6 +35,10 @@
 unsigned char inb(unsigned short);
 void outb(unsigned short, unsigned char);
 
+// ASM helper:
+int loadIDT(struct IDT_entry *table, unsigned short size);
+void halt(void);
+
 void setupIDT(void);
 void PICremap(void);
 // Assembler util functions: