kern
view 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 |
line source
1 #ifndef INTR_H_
2 #define INTR_H_
4 #include <inttypes.h>
5 #include "asmops.h"
7 typedef void (*intr_func_t)(int, uint32_t);
10 void init_intr(void);
12 void interrupt(int intr_num, intr_func_t func);
14 /* defined in intr-asm.S */
15 int get_intr_state(void);
16 void set_intr_state(int s);
18 #endif /* INTR_H_ */