1 /* kdbparam.h 7.2 86/11/20 */ 2 3 #include <sys/vm.h> 4 5 #define DBNAME "kdb\n" 6 #define LPRMODE "%R" 7 #define OFFMODE "+%R" 8 9 #define MAXINT 0x7fffffff 10 #define MAXSTOR (KERNBASE - ctob(UPAGES)) 11 12 #define BPT 0x30 13 #define KCALL 0xcf 14 #define CASEL 0xfc 15 #define TBIT 0x10 16 17 #define SETBP(ins) ((BPT<<24) | ((ins) & 0xffffff)) 18 19 #define ALIGN -4 20 21 #define leng(a) ((long)((unsigned)(a))) 22 #define shorten(a) (((a) >> 16) & 0xffff) 23 #define itol(a,b) (((a) << 16) | ((b) & 0xffff)) 24 #define byte(a) (((a) >> 24) & 0xff) 25 #define btol(a) ((a) << 24) 26 27 /* 28 * INSTACK tells whether its argument is a stack address. 29 * INUDOT tells whether its argument is in the (extended) u. area. 30 * These are used for consistency checking and dont have to be exact. 31 * 32 * INKERNEL tells whether its argument is a kernel space address. 33 * KVTOPH trims a kernel virtal address back to its offset 34 * in the kernel address space. 35 */ 36 #define INSTACK(x) (((int)(x)&0xf0000000) == 0xb0000000) 37 #define INUDOT(x) (((int)(x)&0xf0000000) == 0xb0000000) 38 #define INKERNEL(x) (((int)(x)&0xf0000000) == 0xc0000000) 39 40 #define KERNBASE 0xc0000000 41 #define KERNOFF (KERNBASE + 0x800) /* start of kernel's text */ 42 #define KVTOPH(x) ((x)&~ 0xc0000000) 43