1 /* General macros and constants used by the kernel. */
5 #include <minix/config.h>
6 #include <minix/bitmap.h>
11 /* Translate an endpoint number to a process number, return success. */
12 #define isokendpt(e,p) isokendpt_d((e),(p),0)
13 #define okendpt(e,p) isokendpt_d((e),(p),1)
15 /* Constants used in virtual_copy(). Values must be 0 and 1, respectively. */
19 #define get_sys_bit(map,bit) \
20 ( MAP_CHUNK(map.chunk,bit) & (1 << CHUNK_OFFSET(bit) ))
21 #define get_sys_bits(map,bit) \
22 ( MAP_CHUNK(map.chunk,bit) )
23 #define set_sys_bit(map,bit) \
24 ( MAP_CHUNK(map.chunk,bit) |= (1 << CHUNK_OFFSET(bit) ))
25 #define unset_sys_bit(map,bit) \
26 ( MAP_CHUNK(map.chunk,bit) &= ~(1 << CHUNK_OFFSET(bit) ))
28 /* args to intr_init() */
29 #define INTS_ORIG 0 /* restore interrupts */
30 #define INTS_MINIX 1 /* initialize interrupts for minix */
33 #define END_OF_KMESS 0