1*31688Sbostic /* machine.h 1.2 87/06/25 */ 226414Ssam 326414Ssam #include <sys/vm.h> 426414Ssam 526414Ssam #define PAGSIZ (NBPG*CLSIZE) 626414Ssam 726414Ssam #define DBNAME "adb\n" 826414Ssam #define LPRMODE "%R" 926414Ssam #define OFFMODE "+%R" 1026414Ssam #define TXTRNDSIZ PAGSIZ 1126414Ssam 1226414Ssam #define MAXINT 0x7fffffff 1326414Ssam #define MAXSTOR (KERNBASE - ctob(UPAGES)) 1426414Ssam #define MAXFILE 0xffffffff 1526414Ssam 1626414Ssam /* 1726414Ssam * INSTACK tells whether its argument is a stack address. 1826414Ssam * INUDOT tells whether its argument is in the (extended) u. area. 1926414Ssam * These are used for consistency checking and dont have to be exact. 2026414Ssam * 2126414Ssam * INKERNEL tells whether its argument is a kernel space address. 2226414Ssam * KVTOPH trims a kernel virtal address back to its offset 2326414Ssam * in the kernel address space. 2426414Ssam */ 2526414Ssam #define INSTACK(x) (((int)(x)&0xf0000000) == 0xb0000000) 2626414Ssam #define INUDOT(x) (((int)(x)&0xf0000000) == 0xb0000000) 2726414Ssam #define INKERNEL(x) (((int)(x)&0xf0000000) == 0xc0000000) 2826414Ssam 2926414Ssam #define KERNOFF (KERNBASE + 0x800) /* start of kernel's text */ 3026414Ssam #define KVTOPH(x) ((x)&~ 0xc0000000) 31