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