|
|
1.1 ! root 1: /* ! 2: * Copyright (c) 1983, 1988 Regents of the University of California. ! 3: * All rights reserved. ! 4: * ! 5: * Redistribution is only permitted until one year after the first shipment ! 6: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and ! 7: * binary forms are permitted provided that: (1) source distributions retain ! 8: * this entire copyright notice and comment, and (2) distributions including ! 9: * binaries display the following acknowledgement: This product includes ! 10: * software developed by the University of California, Berkeley and its ! 11: * contributors'' in the documentation or other materials provided with the ! 12: * distribution and in all advertising materials mentioning features or use ! 13: * of this software. Neither the name of the University nor the names of ! 14: * its contributors may be used to endorse or promote products derived from ! 15: * this software without specific prior written permission. ! 16: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED ! 17: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF ! 18: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ! 19: */ ! 20: ! 21: #ifndef lint ! 22: char copyright[] = ! 23: "@(#) Copyright (c) 1983, 1988 Regents of the University of California.\n\ ! 24: All rights reserved.\n"; ! 25: #endif /* not lint */ ! 26: ! 27: #ifndef lint ! 28: static char sccsid[] = "@(#)genassym.c 7.6 (Berkeley) 5/10/90"; ! 29: #endif /* not lint */ ! 30: ! 31: #include "param.h" ! 32: #include "vmmeter.h" ! 33: #include "vmparam.h" ! 34: #include "buf.h" ! 35: #include "user.h" ! 36: #include "cmap.h" ! 37: #include "map.h" ! 38: #include "proc.h" ! 39: #include "text.h" ! 40: #include "mbuf.h" ! 41: #include "msgbuf.h" ! 42: ! 43: #include "pte.h" ! 44: #include "scb.h" ! 45: ! 46: #include "../tahoevba/vbaparam.h" ! 47: ! 48: main() ! 49: { ! 50: register struct user *u = (struct user *)0; ! 51: register struct proc *p = (struct proc *)0; ! 52: register struct vmmeter *vm = (struct vmmeter *)0; ! 53: register struct pcb *pcb = (struct pcb *)0; ! 54: register struct scb *scb = (struct scb *)0; ! 55: ! 56: printf("#ifdef LOCORE\n"); ! 57: printf("#define\tU_PROCP %d\n", &u->u_procp); ! 58: printf("#define\tP_LINK %d\n", &p->p_link); ! 59: printf("#define\tP_RLINK %d\n", &p->p_rlink); ! 60: printf("#define\tP_XLINK %d\n", &p->p_xlink); ! 61: printf("#define\tP_ADDR %d\n", &p->p_addr); ! 62: printf("#define\tP_PRI %d\n", &p->p_pri); ! 63: printf("#define\tP_STAT %d\n", &p->p_stat); ! 64: printf("#define\tP_WCHAN %d\n", &p->p_wchan); ! 65: printf("#define\tP_TSIZE %d\n", &p->p_tsize); ! 66: printf("#define\tP_SSIZE %d\n", &p->p_ssize); ! 67: printf("#define\tP_P0BR %d\n", &p->p_p0br); ! 68: printf("#define\tP_SZPT %d\n", &p->p_szpt); ! 69: printf("#define\tP_TEXTP %d\n", &p->p_textp); ! 70: printf("#define\tP_FLAG %d\n", &p->p_flag); ! 71: printf("#define\tP_DKEY %d\n", &p->p_dkey); ! 72: printf("#define\tP_CKEY %d\n", &p->p_ckey); ! 73: printf("#define\tSSLEEP %d\n", SSLEEP); ! 74: printf("#define\tSRUN %d\n", SRUN); ! 75: printf("#define\tV_SWTCH %d\n", &vm->v_swtch); ! 76: printf("#define\tV_TRAP %d\n", &vm->v_trap); ! 77: printf("#define\tV_SYSCALL %d\n", &vm->v_syscall); ! 78: printf("#define\tV_INTR %d\n", &vm->v_intr); ! 79: printf("#define\tV_SOFT %d\n", &vm->v_soft); ! 80: printf("#define\tV_FPE %d\n", &vm->v_fpe); ! 81: printf("#define\tV_ALIGN %d\n", &vm->v_align); ! 82: printf("#define\tMCLBYTES %d\n", MCLBYTES); ! 83: printf("#define\tNBPG %d\n", NBPG); ! 84: printf("#define\tPGSHIFT %d\n", PGSHIFT); ! 85: printf("#define\tUPAGES %d\n", UPAGES); ! 86: printf("#define\tCLSIZE %d\n", CLSIZE); ! 87: printf("#define\tMAXPHYS %d\n", MAXPHYS); ! 88: printf("#define\tSYSPTSIZE %d\n", SYSPTSIZE); ! 89: printf("#define\tUSRPTSIZE %d\n", USRPTSIZE); ! 90: printf("#define\tVBIOSIZE %d\n", VBIOSIZE); ! 91: printf("#define\tMSGBUFPTECNT %d\n", btoc(sizeof (struct msgbuf))); ! 92: printf("#define\tNMBCLUSTERS %d\n", NMBCLUSTERS); ! 93: printf("#define\tNKMEMCLUSTERS %d\n", NKMEMCLUSTERS); ! 94: #ifdef SYSVSHM ! 95: printf("#define\tSHMMAXPGS %d\n", SHMMAXPGS); ! 96: #endif ! 97: printf("#define\tPCB_KSP %d\n", &pcb->pcb_ksp); ! 98: printf("#define\tPCB_USP %d\n", &pcb->pcb_usp); ! 99: printf("#define\tPCB_R0 %d\n", &pcb->pcb_r0); ! 100: printf("#define\tPCB_R1 %d\n", &pcb->pcb_r1); ! 101: printf("#define\tPCB_R2 %d\n", &pcb->pcb_r2); ! 102: printf("#define\tPCB_R3 %d\n", &pcb->pcb_r3); ! 103: printf("#define\tPCB_R4 %d\n", &pcb->pcb_r4); ! 104: printf("#define\tPCB_R5 %d\n", &pcb->pcb_r5); ! 105: printf("#define\tPCB_R6 %d\n", &pcb->pcb_r6); ! 106: printf("#define\tPCB_R7 %d\n", &pcb->pcb_r7); ! 107: printf("#define\tPCB_R8 %d\n", &pcb->pcb_r8); ! 108: printf("#define\tPCB_R9 %d\n", &pcb->pcb_r9); ! 109: printf("#define\tPCB_R10 %d\n", &pcb->pcb_r10); ! 110: printf("#define\tPCB_R11 %d\n", &pcb->pcb_r11); ! 111: printf("#define\tPCB_R12 %d\n", &pcb->pcb_r12); ! 112: printf("#define\tPCB_R13 %d\n", &pcb->pcb_r13); ! 113: printf("#define\tPCB_FP %d\n", &pcb->pcb_fp); ! 114: printf("#define\tPCB_PC %d\n", &pcb->pcb_pc); ! 115: printf("#define\tPCB_PSL %d\n", &pcb->pcb_psl); ! 116: printf("#define\tPCB_P0BR %d\n", &pcb->pcb_p0br); ! 117: printf("#define\tPCB_P0LR %d\n", &pcb->pcb_p0lr); ! 118: printf("#define\tPCB_P1BR %d\n", &pcb->pcb_p1br); ! 119: printf("#define\tPCB_P1LR %d\n", &pcb->pcb_p1lr); ! 120: printf("#define\tPCB_P2BR %d\n", &pcb->pcb_p2br); ! 121: printf("#define\tPCB_P2LR %d\n", &pcb->pcb_p2lr); ! 122: printf("#define\tPCB_ACH %d\n", &pcb->pcb_ach); ! 123: printf("#define\tPCB_ACL %d\n", &pcb->pcb_acl); ! 124: printf("#define\tPCB_HFS %d\n", &pcb->pcb_hfs); ! 125: printf("#define\tPCB_SAVACC %d\n", &pcb->pcb_savacc); ! 126: printf("#define\tPCB_SZPT %d\n", &pcb->pcb_szpt); ! 127: printf("#define\tPCB_CMAP2 %d\n", &pcb->pcb_cmap2); ! 128: printf("#define\tPCB_SSWAP %d\n", &pcb->pcb_sswap); ! 129: printf("#define\tPCB_SIGC %d\n", pcb->pcb_sigc); ! 130: printf("#define\tSCB_DOADUMP %d\n", &scb->scb_doadump); ! 131: printf("#define\tSCB_BUSERR %d\n", &scb->scb_buserr); ! 132: #define SCB_DEVBASE (((int)((struct scb *)0)->scb_devint)/sizeof (int)) ! 133: printf("#define\tSCB_DEVBASE %d\n", SCB_DEVBASE); ! 134: printf("#endif\n"); ! 135: exit(0); ! 136: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.