genassym.c (5770) | genassym.c (5908) |
---|---|
1/*- 2 * Copyright (c) 1982, 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)genassym.c 5.11 (Berkeley) 5/10/91 | 1/*- 2 * Copyright (c) 1982, 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * from: @(#)genassym.c 5.11 (Berkeley) 5/10/91 |
37 * $Id: genassym.c,v 1.21 1994/12/03 10:02:20 bde Exp $ | 37 * $Id: genassym.c,v 1.22 1995/01/21 15:22:28 bde Exp $ |
38 */ 39 40#include <stdio.h> 41#include <sys/param.h> 42#include <sys/buf.h> 43#include <sys/proc.h> 44/* XXX This is just real ugly to have to do, but it is what you have to do! */ 45#ifndef NFS --- 25 unchanged lines hidden (view full) --- 71 struct vmmeter *vm = (struct vmmeter *)0; 72 struct user *up = (struct user *)0; 73 struct rusage *rup = (struct rusage *)0; 74 struct uprof *uprof = (struct uprof *)0; 75 struct vmspace *vms = (struct vmspace *)0; 76 struct pcb *pcb = (struct pcb *)0; 77 struct trapframe *tf = (struct trapframe *)0; 78 struct sigframe *sigf = (struct sigframe *)0; | 38 */ 39 40#include <stdio.h> 41#include <sys/param.h> 42#include <sys/buf.h> 43#include <sys/proc.h> 44/* XXX This is just real ugly to have to do, but it is what you have to do! */ 45#ifndef NFS --- 25 unchanged lines hidden (view full) --- 71 struct vmmeter *vm = (struct vmmeter *)0; 72 struct user *up = (struct user *)0; 73 struct rusage *rup = (struct rusage *)0; 74 struct uprof *uprof = (struct uprof *)0; 75 struct vmspace *vms = (struct vmspace *)0; 76 struct pcb *pcb = (struct pcb *)0; 77 struct trapframe *tf = (struct trapframe *)0; 78 struct sigframe *sigf = (struct sigframe *)0; |
79 struct bootinfo_t *bootinfo = (struct bootinfo_t *)0; | 79 struct bootinfo *bootinfo = (struct bootinfo *)0; |
80 81 /* XXX should use %p to print pointers. About 80 lines are wrong. */ 82 printf("#define\tUDOT_SZ %d\n", sizeof(struct user)); 83 printf("#define\tP_FORW %d\n", &p->p_forw); 84 printf("#define\tP_BACK %d\n", &p->p_back); 85 printf("#define\tP_VMSPACE %d\n", &p->p_vmspace); 86 printf("#define\tVM_PMAP %d\n", &vms->vm_pmap); 87 printf("#define\tP_ADDR %d\n", &p->p_addr); --- 101 unchanged lines hidden (view full) --- 189 printf("#define\tSIGF_HANDLER %d\n", &sigf->sf_handler); 190 printf("#define\tSIGF_SC %d\n", &sigf->sf_sc); 191 192 printf("#define\tB_READ %d\n", B_READ); 193 printf("#define\tENOENT %d\n", ENOENT); 194 printf("#define\tEFAULT %d\n", EFAULT); 195 printf("#define\tENAMETOOLONG %d\n", ENAMETOOLONG); 196 printf("#define\tMAXPATHLEN %d\n", MAXPATHLEN); | 80 81 /* XXX should use %p to print pointers. About 80 lines are wrong. */ 82 printf("#define\tUDOT_SZ %d\n", sizeof(struct user)); 83 printf("#define\tP_FORW %d\n", &p->p_forw); 84 printf("#define\tP_BACK %d\n", &p->p_back); 85 printf("#define\tP_VMSPACE %d\n", &p->p_vmspace); 86 printf("#define\tVM_PMAP %d\n", &vms->vm_pmap); 87 printf("#define\tP_ADDR %d\n", &p->p_addr); --- 101 unchanged lines hidden (view full) --- 189 printf("#define\tSIGF_HANDLER %d\n", &sigf->sf_handler); 190 printf("#define\tSIGF_SC %d\n", &sigf->sf_sc); 191 192 printf("#define\tB_READ %d\n", B_READ); 193 printf("#define\tENOENT %d\n", ENOENT); 194 printf("#define\tEFAULT %d\n", EFAULT); 195 printf("#define\tENAMETOOLONG %d\n", ENAMETOOLONG); 196 printf("#define\tMAXPATHLEN %d\n", MAXPATHLEN); |
197 |
|
197 printf("#define\tBOOTINFO_SIZE %d\n", sizeof *bootinfo); | 198 printf("#define\tBOOTINFO_SIZE %d\n", sizeof *bootinfo); |
198 printf("#define\tBOOTINFO_VERSION %d\n", &bootinfo->version); 199 printf("#define\tBOOTINFO_KERNELNAME %d\n", &bootinfo->kernelname); 200 printf("#define\tBOOTINFO_NFS_DISKLESS %d\n", &bootinfo->nfs_diskless); | 199 printf("#define\tBI_VERSION %d\n", &bootinfo->bi_version); 200 printf("#define\tBI_KERNELNAME %d\n", &bootinfo->bi_kernelname); 201 printf("#define\tBI_NFS_DISKLESS %d\n", &bootinfo->bi_nfs_diskless); 202 printf("#define\tBI_ENDCOMMON %d\n", &bootinfo->bi_endcommon); |
201 printf("#define\tNFSDISKLESS_SIZE %d\n", sizeof(struct nfs_diskless)); | 203 printf("#define\tNFSDISKLESS_SIZE %d\n", sizeof(struct nfs_diskless)); |
204 printf("#define\tBI_SIZE %d\n", &bootinfo->bi_size); 205 printf("#define\tBI_SYMTAB %d\n", &bootinfo->bi_symtab); 206 printf("#define\tBI_ESYMTAB %d\n", &bootinfo->bi_esymtab); |
|
202 203 return (0); 204} | 207 208 return (0); 209} |