1 /* machine.h 1.2 87/06/25 */ 2 3 #include <sys/vm.h> 4 5 #define PAGSIZ (NBPG*CLSIZE) 6 7 #define DBNAME "adb\n" 8 #define LPRMODE "%R" 9 #define OFFMODE "+%R" 10 #define TXTRNDSIZ PAGSIZ 11 12 #define MAXINT 0x7fffffff 13 #define MAXSTOR (KERNBASE - ctob(UPAGES)) 14 #define MAXFILE 0xffffffff 15 16 /* 17 * INSTACK tells whether its argument is a stack address. 18 * INUDOT tells whether its argument is in the (extended) u. area. 19 * These are used for consistency checking and dont have to be exact. 20 * 21 * INKERNEL tells whether its argument is a kernel space address. 22 * KVTOPH trims a kernel virtal address back to its offset 23 * in the kernel address space. 24 */ 25 #define INSTACK(x) (((int)(x)&0xf0000000) == 0xb0000000) 26 #define INUDOT(x) (((int)(x)&0xf0000000) == 0xb0000000) 27 #define INKERNEL(x) (((int)(x)&0xf0000000) == 0xc0000000) 28 29 #define KERNOFF (KERNBASE + 0x800) /* start of kernel's text */ 30 #define KVTOPH(x) ((x)&~ 0xc0000000) 31