kern

diff 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
line diff
     1.1 --- a/src/intr.h	Tue Apr 05 02:09:02 2011 +0300
     1.2 +++ b/src/intr.h	Wed Apr 06 07:42:44 2011 +0300
     1.3 @@ -2,6 +2,7 @@
     1.4  #define INTR_H_
     1.5  
     1.6  #include <inttypes.h>
     1.7 +#include "asmops.h"
     1.8  
     1.9  typedef void (*intr_func_t)(int, uint32_t);
    1.10  
    1.11 @@ -10,4 +11,8 @@
    1.12  
    1.13  void interrupt(int intr_num, intr_func_t func);
    1.14  
    1.15 +/* defined in intr-asm.S */
    1.16 +int get_intr_state(void);
    1.17 +void set_intr_state(int s);
    1.18 +
    1.19  #endif	/* INTR_H_ */