|
|
1.1 ! root 1: /* ! 2: * VAX process control block ! 3: */ ! 4: ! 5: struct pcb ! 6: { ! 7: int pcb_ksp; /* kernel stack pointer */ ! 8: int pcb_esp; /* exec stack pointer */ ! 9: int pcb_ssp; /* supervisor stack pointer */ ! 10: int pcb_usp; /* user stack pointer */ ! 11: int pcb_r0; ! 12: int pcb_r1; ! 13: int pcb_r2; ! 14: int pcb_r3; ! 15: int pcb_r4; ! 16: int pcb_r5; ! 17: int pcb_r6; ! 18: int pcb_r7; ! 19: int pcb_r8; ! 20: int pcb_r9; ! 21: int pcb_r10; ! 22: int pcb_r11; ! 23: int pcb_r12; ! 24: #define pcb_ap pcb_r12 ! 25: int pcb_r13; ! 26: #define pcb_fp pcb_r13 ! 27: int pcb_pc; /* program counter */ ! 28: int pcb_psl; /* program status longword */ ! 29: struct pte *pcb_p0br; /* seg 0 base register */ ! 30: int pcb_p0lr; /* seg 0 length register and astlevel */ ! 31: struct pte *pcb_p1br; /* seg 1 base register */ ! 32: int pcb_p1lr; /* seg 1 length register and pme */ ! 33: /* ! 34: * Software pcb (extension) ! 35: */ ! 36: int pcb_szpt; /* number of pages of user page table */ ! 37: int pcb_cmap2; ! 38: int *pcb_sswap; ! 39: int pcb_sigc[3]; ! 40: }; ! 41: ! 42: #define AST_NONE 0x04000000 /* ast level */ ! 43: #define AST_USER 0x03000000 /* ast for user mode */ ! 44: ! 45: #define ASTLVL_NONE 4 ! 46: #define ASTLVL_USER 3 ! 47: ! 48: #define AST_CLR 0x07000000 ! 49: ! 50: #define aston() \ ! 51: { \ ! 52: u.u_pcb.pcb_p0lr = (u.u_pcb.pcb_p0lr &~ AST_CLR) | AST_USER; \ ! 53: mtpr(ASTLVL, ASTLVL_USER); \ ! 54: } ! 55: ! 56: #define astoff() \ ! 57: { \ ! 58: u.u_pcb.pcb_p0lr = (u.u_pcb.pcb_p0lr &~ AST_CLR) | AST_NONE; \ ! 59: mtpr(ASTLVL, ASTLVL_NONE); \ ! 60: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.