|
|
Power 6/32 Unix version 1.21
/* * adb - vax string table version; common definitions */ #include <sys/param.h> #include <sys/dir.h> #include <machine/psl.h> #include <machine/pte.h> #include <sys/user.h> #include <ctype.h> #include <a.out.h> #include "mac.h" #include "mode.h" #include "head.h" /* access modes */ #define RD 0 #define WT 1 #define NSP 0 #define ISP 1 #define DSP 2 #define STAR 4 /* * Symbol types, used internally in calls to findsym routine. * One the VAX this all degenerates since I & D symbols are indistinct. * Basically we get NSYM==0 for `=' command, ISYM==DSYM otherwise. */ #define NSYM 0 #define DSYM 1 /* Data space symbol */ #define ISYM DSYM /* Instruction space symbol == DSYM on VAX */ #define BKPTSET 1 #define BKPTEXEC 2 #define BPT 0x30 #define KCALL 0xcf #define CASEL 0xfc #define TBIT 0x10 #define SETTRC 0 #define RDUSER 2 #define RIUSER 1 #define WDUSER 5 #define WIUSER 4 #define RUREGS 3 #define WUREGS 6 #define CONTIN 7 #define EXIT 8 #define SINGLE 9 /* the quantities involving ctob() are located in the kernel stack. */ /* the others are in the pcb. */ #define KSP 0 #define USP (ctob(UPAGES)/NBPW-9) #define R0 (ctob(UPAGES)/NBPW-25) #define R1 (ctob(UPAGES)/NBPW-24) #define R2 (ctob(UPAGES)/NBPW-23) #define R3 (ctob(UPAGES)/NBPW-22) #define R4 (ctob(UPAGES)/NBPW-21) #define R5 (ctob(UPAGES)/NBPW-20) #define R6 (ctob(UPAGES)/NBPW-19) #define R7 (ctob(UPAGES)/NBPW-18) #define R8 (ctob(UPAGES)/NBPW-17) #define R9 (ctob(UPAGES)/NBPW-16) #define R10 (ctob(UPAGES)/NBPW-15) #define R11 (ctob(UPAGES)/NBPW-14) #define R12 (ctob(UPAGES)/NBPW-13) #define FP (ctob(UPAGES)/NBPW-10) #define PC (ctob(UPAGES)/NBPW-2) #define PSL (ctob(UPAGES)/NBPW-1) #define P0BR 18 #define P0LR 19 #define P1BR 20 #define P1LR 21 #define P2BR 22 #define P2LR 23 #define ACLO (ctob(UPAGES)/NBPW-5) #define ACHI (ctob(UPAGES)/NBPW-6) #define HFS (ctob(UPAGES)/NBPW-8) #define MAXOFF 1024 #define MAXPOS 80 #define MAXLIN 256 #define QUOTE 0200 #define ALIGN -4 #define shorten(a) ((a)>>16&0xffff) #define itol(a,b) (((a)&0xffff)<<16|((b)&0xffff)) #define byte(a) ((a)>>24&LOBYTE) /* result type declarations */ L_INT inkdot(); POS get(); POS chkget(); STRING exform(); L_INT round(); BKPTR scanbkpt(); VOID fault(); struct pcb pcb; int kernel; struct pte *sbr; int slr;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.