kern

annotate src/intr.h @ 30:a2c6110bd24b

refactored the code a bit, and merged with the malloc implementation branch
author John Tsiombikas <nuclear@siggraph.org>
date Fri, 27 May 2011 22:09:10 +0300
parents cccaa40f5432
children 06172322fb76
rev   line source
nuclear@11 1 #ifndef INTR_H_
nuclear@11 2 #define INTR_H_
nuclear@11 3
nuclear@11 4 #include <inttypes.h>
nuclear@25 5 #include "asmops.h"
nuclear@11 6
nuclear@11 7 typedef void (*intr_func_t)(int, uint32_t);
nuclear@11 8
nuclear@11 9
nuclear@11 10 void init_intr(void);
nuclear@11 11
nuclear@11 12 void interrupt(int intr_num, intr_func_t func);
nuclear@11 13
nuclear@25 14 /* defined in intr-asm.S */
nuclear@25 15 int get_intr_state(void);
nuclear@25 16 void set_intr_state(int s);
nuclear@25 17
nuclear@11 18 #endif /* INTR_H_ */