kern
annotate src/intr.h @ 25:9939a6d7a45a
protected critical sections in VM and the physical memory manager by disabling interrupts
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 06 Apr 2011 07:42:44 +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_ */ |