mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Yves has sent us a ~600 Kb patch, which shuts up gcc entirely for the
entire kernel. Unfortunately we didn't send him a copy of the style guide before he did it. I'm trying to find all the benign and downright sound bits and will commit them without any other explanation than "YF fix" if they are merely cosmetic. Reviewed by: phk Submitted by: yves@dutncp8.tn.tudelft.nl (Yves Fonk)
This commit is contained in:
parent
a2d29640be
commit
a3dbba7a60
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=6354
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)genassym.c 5.11 (Berkeley) 5/10/91
|
||||
* $Id: genassym.c,v 1.22 1995/01/21 15:22:28 bde Exp $
|
||||
* $Id: genassym.c,v 1.23 1995/01/25 21:40:13 bde Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@ -79,24 +79,25 @@ main()
|
||||
struct bootinfo *bootinfo = (struct bootinfo *)0;
|
||||
|
||||
/* XXX should use %p to print pointers. About 80 lines are wrong. */
|
||||
/* YF - fixed */
|
||||
printf("#define\tUDOT_SZ %d\n", sizeof(struct user));
|
||||
printf("#define\tP_FORW %d\n", &p->p_forw);
|
||||
printf("#define\tP_BACK %d\n", &p->p_back);
|
||||
printf("#define\tP_VMSPACE %d\n", &p->p_vmspace);
|
||||
printf("#define\tVM_PMAP %d\n", &vms->vm_pmap);
|
||||
printf("#define\tP_ADDR %d\n", &p->p_addr);
|
||||
printf("#define\tP_PRI %d\n", &p->p_priority);
|
||||
printf("#define\tP_RTPRIO_TYPE %d\n", &p->p_rtprio.type);
|
||||
printf("#define\tP_RTPRIO_PRIO %d\n", &p->p_rtprio.prio);
|
||||
printf("#define\tP_STAT %d\n", &p->p_stat);
|
||||
printf("#define\tP_WCHAN %d\n", &p->p_wchan);
|
||||
printf("#define\tP_FLAG %d\n", &p->p_flag);
|
||||
printf("#define\tP_PID %d\n", &p->p_pid);
|
||||
printf("#define\tP_FORW %p\n", &p->p_forw);
|
||||
printf("#define\tP_BACK %p\n", &p->p_back);
|
||||
printf("#define\tP_VMSPACE %p\n", &p->p_vmspace);
|
||||
printf("#define\tVM_PMAP %p\n", &vms->vm_pmap);
|
||||
printf("#define\tP_ADDR %p\n", &p->p_addr);
|
||||
printf("#define\tP_PRI %p\n", &p->p_priority);
|
||||
printf("#define\tP_RTPRIO_TYPE %p\n", &p->p_rtprio.type);
|
||||
printf("#define\tP_RTPRIO_PRIO %p\n", &p->p_rtprio.prio);
|
||||
printf("#define\tP_STAT %p\n", &p->p_stat);
|
||||
printf("#define\tP_WCHAN %p\n", &p->p_wchan);
|
||||
printf("#define\tP_FLAG %p\n", &p->p_flag);
|
||||
printf("#define\tP_PID %p\n", &p->p_pid);
|
||||
printf("#define\tSSLEEP %d\n", SSLEEP);
|
||||
printf("#define\tSRUN %d\n", SRUN);
|
||||
printf("#define\tV_TRAP %d\n", &vm->v_trap);
|
||||
printf("#define\tV_SYSCALL %d\n", &vm->v_syscall);
|
||||
printf("#define\tV_INTR %d\n", &vm->v_intr);
|
||||
printf("#define\tV_TRAP %p\n", &vm->v_trap);
|
||||
printf("#define\tV_SYSCALL %p\n", &vm->v_syscall);
|
||||
printf("#define\tV_INTR %p\n", &vm->v_intr);
|
||||
printf("#define\tUPAGES %d\n", UPAGES);
|
||||
printf("#define\tCLSIZE %d\n", CLSIZE);
|
||||
printf("#define\tNBPG %d\n", NBPG);
|
||||
@ -124,70 +125,70 @@ main()
|
||||
printf("#define\tMSGBUFPTECNT %d\n", btoc(sizeof (struct msgbuf)));
|
||||
printf("#define\tNMBCLUSTERS %d\n", NMBCLUSTERS);
|
||||
printf("#define\tMCLBYTES %d\n", MCLBYTES);
|
||||
printf("#define\tPCB_LINK %d\n", &pcb->pcb_tss.tss_link);
|
||||
printf("#define\tPCB_ESP0 %d\n", &pcb->pcb_tss.tss_esp0);
|
||||
printf("#define\tPCB_SS0 %d\n", &pcb->pcb_tss.tss_ss0);
|
||||
printf("#define\tPCB_ESP1 %d\n", &pcb->pcb_tss.tss_esp1);
|
||||
printf("#define\tPCB_SS1 %d\n", &pcb->pcb_tss.tss_ss1);
|
||||
printf("#define\tPCB_ESP2 %d\n", &pcb->pcb_tss.tss_esp2);
|
||||
printf("#define\tPCB_SS2 %d\n", &pcb->pcb_tss.tss_ss2);
|
||||
printf("#define\tPCB_CR3 %d\n", &pcb->pcb_tss.tss_cr3);
|
||||
printf("#define\tPCB_EIP %d\n", &pcb->pcb_tss.tss_eip);
|
||||
printf("#define\tPCB_EFLAGS %d\n", &pcb->pcb_tss.tss_eflags);
|
||||
printf("#define\tPCB_EAX %d\n", &pcb->pcb_tss.tss_eax);
|
||||
printf("#define\tPCB_ECX %d\n", &pcb->pcb_tss.tss_ecx);
|
||||
printf("#define\tPCB_EDX %d\n", &pcb->pcb_tss.tss_edx);
|
||||
printf("#define\tPCB_EBX %d\n", &pcb->pcb_tss.tss_ebx);
|
||||
printf("#define\tPCB_ESP %d\n", &pcb->pcb_tss.tss_esp);
|
||||
printf("#define\tPCB_EBP %d\n", &pcb->pcb_tss.tss_ebp);
|
||||
printf("#define\tPCB_ESI %d\n", &pcb->pcb_tss.tss_esi);
|
||||
printf("#define\tPCB_EDI %d\n", &pcb->pcb_tss.tss_edi);
|
||||
printf("#define\tPCB_ES %d\n", &pcb->pcb_tss.tss_es);
|
||||
printf("#define\tPCB_CS %d\n", &pcb->pcb_tss.tss_cs);
|
||||
printf("#define\tPCB_SS %d\n", &pcb->pcb_tss.tss_ss);
|
||||
printf("#define\tPCB_DS %d\n", &pcb->pcb_tss.tss_ds);
|
||||
printf("#define\tPCB_FS %d\n", &pcb->pcb_tss.tss_fs);
|
||||
printf("#define\tPCB_GS %d\n", &pcb->pcb_tss.tss_gs);
|
||||
printf("#define\tPCB_LDT %d\n", &pcb->pcb_tss.tss_ldt);
|
||||
printf("#define\tPCB_USERLDT %d\n", &pcb->pcb_ldt);
|
||||
printf("#define\tPCB_IOOPT %d\n", &pcb->pcb_tss.tss_ioopt);
|
||||
printf("#define\tU_PROF %d\n", &up->u_stats.p_prof);
|
||||
printf("#define\tU_PROFSCALE %d\n", &up->u_stats.p_prof.pr_scale);
|
||||
printf("#define\tPR_BASE %d\n", &uprof->pr_base);
|
||||
printf("#define\tPR_SIZE %d\n", &uprof->pr_size);
|
||||
printf("#define\tPR_OFF %d\n", &uprof->pr_off);
|
||||
printf("#define\tPR_SCALE %d\n", &uprof->pr_scale);
|
||||
printf("#define\tRU_MINFLT %d\n", &rup->ru_minflt);
|
||||
printf("#define\tPCB_FLAGS %d\n", &pcb->pcb_flags);
|
||||
printf("#define\tPCB_SAVEFPU %d\n", &pcb->pcb_savefpu);
|
||||
printf("#define\tPCB_LINK %p\n", &pcb->pcb_tss.tss_link);
|
||||
printf("#define\tPCB_ESP0 %p\n", &pcb->pcb_tss.tss_esp0);
|
||||
printf("#define\tPCB_SS0 %p\n", &pcb->pcb_tss.tss_ss0);
|
||||
printf("#define\tPCB_ESP1 %p\n", &pcb->pcb_tss.tss_esp1);
|
||||
printf("#define\tPCB_SS1 %p\n", &pcb->pcb_tss.tss_ss1);
|
||||
printf("#define\tPCB_ESP2 %p\n", &pcb->pcb_tss.tss_esp2);
|
||||
printf("#define\tPCB_SS2 %p\n", &pcb->pcb_tss.tss_ss2);
|
||||
printf("#define\tPCB_CR3 %p\n", &pcb->pcb_tss.tss_cr3);
|
||||
printf("#define\tPCB_EIP %p\n", &pcb->pcb_tss.tss_eip);
|
||||
printf("#define\tPCB_EFLAGS %p\n", &pcb->pcb_tss.tss_eflags);
|
||||
printf("#define\tPCB_EAX %p\n", &pcb->pcb_tss.tss_eax);
|
||||
printf("#define\tPCB_ECX %p\n", &pcb->pcb_tss.tss_ecx);
|
||||
printf("#define\tPCB_EDX %p\n", &pcb->pcb_tss.tss_edx);
|
||||
printf("#define\tPCB_EBX %p\n", &pcb->pcb_tss.tss_ebx);
|
||||
printf("#define\tPCB_ESP %p\n", &pcb->pcb_tss.tss_esp);
|
||||
printf("#define\tPCB_EBP %p\n", &pcb->pcb_tss.tss_ebp);
|
||||
printf("#define\tPCB_ESI %p\n", &pcb->pcb_tss.tss_esi);
|
||||
printf("#define\tPCB_EDI %p\n", &pcb->pcb_tss.tss_edi);
|
||||
printf("#define\tPCB_ES %p\n", &pcb->pcb_tss.tss_es);
|
||||
printf("#define\tPCB_CS %p\n", &pcb->pcb_tss.tss_cs);
|
||||
printf("#define\tPCB_SS %p\n", &pcb->pcb_tss.tss_ss);
|
||||
printf("#define\tPCB_DS %p\n", &pcb->pcb_tss.tss_ds);
|
||||
printf("#define\tPCB_FS %p\n", &pcb->pcb_tss.tss_fs);
|
||||
printf("#define\tPCB_GS %p\n", &pcb->pcb_tss.tss_gs);
|
||||
printf("#define\tPCB_LDT %p\n", &pcb->pcb_tss.tss_ldt);
|
||||
printf("#define\tPCB_USERLDT %p\n", &pcb->pcb_ldt);
|
||||
printf("#define\tPCB_IOOPT %p\n", &pcb->pcb_tss.tss_ioopt);
|
||||
printf("#define\tU_PROF %p\n", &up->u_stats.p_prof);
|
||||
printf("#define\tU_PROFSCALE %p\n", &up->u_stats.p_prof.pr_scale);
|
||||
printf("#define\tPR_BASE %p\n", &uprof->pr_base);
|
||||
printf("#define\tPR_SIZE %p\n", &uprof->pr_size);
|
||||
printf("#define\tPR_OFF %p\n", &uprof->pr_off);
|
||||
printf("#define\tPR_SCALE %p\n", &uprof->pr_scale);
|
||||
printf("#define\tRU_MINFLT %p\n", &rup->ru_minflt);
|
||||
printf("#define\tPCB_FLAGS %p\n", &pcb->pcb_flags);
|
||||
printf("#define\tPCB_SAVEFPU %p\n", &pcb->pcb_savefpu);
|
||||
printf("#define\tFP_USESEMC %d\n", FP_USESEMC);
|
||||
printf("#define\tPCB_SAVEEMC %d\n", &pcb->pcb_saveemc);
|
||||
printf("#define\tPCB_INL %d\n", &pcb->pcb_inl);
|
||||
printf("#define\tPCB_ONFAULT %d\n", &pcb->pcb_onfault);
|
||||
printf("#define\tPCB_SAVEEMC %p\n", &pcb->pcb_saveemc);
|
||||
printf("#define\tPCB_INL %p\n", &pcb->pcb_inl);
|
||||
printf("#define\tPCB_ONFAULT %p\n", &pcb->pcb_onfault);
|
||||
|
||||
printf("#define\tTF_ES %d\n", &tf->tf_es);
|
||||
printf("#define\tTF_DS %d\n", &tf->tf_ds);
|
||||
printf("#define\tTF_EDI %d\n", &tf->tf_edi);
|
||||
printf("#define\tTF_ESI %d\n", &tf->tf_esi);
|
||||
printf("#define\tTF_EBP %d\n", &tf->tf_ebp);
|
||||
printf("#define\tTF_ISP %d\n", &tf->tf_isp);
|
||||
printf("#define\tTF_EBX %d\n", &tf->tf_ebx);
|
||||
printf("#define\tTF_EDX %d\n", &tf->tf_edx);
|
||||
printf("#define\tTF_ECX %d\n", &tf->tf_ecx);
|
||||
printf("#define\tTF_EAX %d\n", &tf->tf_eax);
|
||||
printf("#define\tTF_TRAPNO %d\n", &tf->tf_trapno);
|
||||
printf("#define\tTF_ERR %d\n", &tf->tf_err);
|
||||
printf("#define\tTF_EIP %d\n", &tf->tf_eip);
|
||||
printf("#define\tTF_CS %d\n", &tf->tf_cs);
|
||||
printf("#define\tTF_EFLAGS %d\n", &tf->tf_eflags);
|
||||
printf("#define\tTF_ESP %d\n", &tf->tf_esp);
|
||||
printf("#define\tTF_SS %d\n", &tf->tf_ss);
|
||||
printf("#define\tTF_ES %p\n", &tf->tf_es);
|
||||
printf("#define\tTF_DS %p\n", &tf->tf_ds);
|
||||
printf("#define\tTF_EDI %p\n", &tf->tf_edi);
|
||||
printf("#define\tTF_ESI %p\n", &tf->tf_esi);
|
||||
printf("#define\tTF_EBP %p\n", &tf->tf_ebp);
|
||||
printf("#define\tTF_ISP %p\n", &tf->tf_isp);
|
||||
printf("#define\tTF_EBX %p\n", &tf->tf_ebx);
|
||||
printf("#define\tTF_EDX %p\n", &tf->tf_edx);
|
||||
printf("#define\tTF_ECX %p\n", &tf->tf_ecx);
|
||||
printf("#define\tTF_EAX %p\n", &tf->tf_eax);
|
||||
printf("#define\tTF_TRAPNO %p\n", &tf->tf_trapno);
|
||||
printf("#define\tTF_ERR %p\n", &tf->tf_err);
|
||||
printf("#define\tTF_EIP %p\n", &tf->tf_eip);
|
||||
printf("#define\tTF_CS %p\n", &tf->tf_cs);
|
||||
printf("#define\tTF_EFLAGS %p\n", &tf->tf_eflags);
|
||||
printf("#define\tTF_ESP %p\n", &tf->tf_esp);
|
||||
printf("#define\tTF_SS %p\n", &tf->tf_ss);
|
||||
|
||||
printf("#define\tSIGF_SIGNUM %d\n", &sigf->sf_signum);
|
||||
printf("#define\tSIGF_CODE %d\n", &sigf->sf_code);
|
||||
printf("#define\tSIGF_SCP %d\n", &sigf->sf_scp);
|
||||
printf("#define\tSIGF_HANDLER %d\n", &sigf->sf_handler);
|
||||
printf("#define\tSIGF_SC %d\n", &sigf->sf_sc);
|
||||
printf("#define\tSIGF_SIGNUM %p\n", &sigf->sf_signum);
|
||||
printf("#define\tSIGF_CODE %p\n", &sigf->sf_code);
|
||||
printf("#define\tSIGF_SCP %p\n", &sigf->sf_scp);
|
||||
printf("#define\tSIGF_HANDLER %p\n", &sigf->sf_handler);
|
||||
printf("#define\tSIGF_SC %p\n", &sigf->sf_sc);
|
||||
|
||||
printf("#define\tB_READ %d\n", B_READ);
|
||||
printf("#define\tENOENT %d\n", ENOENT);
|
||||
@ -196,14 +197,14 @@ main()
|
||||
printf("#define\tMAXPATHLEN %d\n", MAXPATHLEN);
|
||||
|
||||
printf("#define\tBOOTINFO_SIZE %d\n", sizeof *bootinfo);
|
||||
printf("#define\tBI_VERSION %d\n", &bootinfo->bi_version);
|
||||
printf("#define\tBI_KERNELNAME %d\n", &bootinfo->bi_kernelname);
|
||||
printf("#define\tBI_NFS_DISKLESS %d\n", &bootinfo->bi_nfs_diskless);
|
||||
printf("#define\tBI_ENDCOMMON %d\n", &bootinfo->bi_endcommon);
|
||||
printf("#define\tBI_VERSION %p\n", &bootinfo->bi_version);
|
||||
printf("#define\tBI_KERNELNAME %p\n", &bootinfo->bi_kernelname);
|
||||
printf("#define\tBI_NFS_DISKLESS %p\n", &bootinfo->bi_nfs_diskless);
|
||||
printf("#define\tBI_ENDCOMMON %p\n", &bootinfo->bi_endcommon);
|
||||
printf("#define\tNFSDISKLESS_SIZE %d\n", sizeof(struct nfs_diskless));
|
||||
printf("#define\tBI_SIZE %d\n", &bootinfo->bi_size);
|
||||
printf("#define\tBI_SYMTAB %d\n", &bootinfo->bi_symtab);
|
||||
printf("#define\tBI_ESYMTAB %d\n", &bootinfo->bi_esymtab);
|
||||
printf("#define\tBI_SIZE %p\n", &bootinfo->bi_size);
|
||||
printf("#define\tBI_SYMTAB %p\n", &bootinfo->bi_symtab);
|
||||
printf("#define\tBI_ESYMTAB %p\n", &bootinfo->bi_esymtab);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)genassym.c 5.11 (Berkeley) 5/10/91
|
||||
* $Id: genassym.c,v 1.22 1995/01/21 15:22:28 bde Exp $
|
||||
* $Id: genassym.c,v 1.23 1995/01/25 21:40:13 bde Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@ -79,24 +79,25 @@ main()
|
||||
struct bootinfo *bootinfo = (struct bootinfo *)0;
|
||||
|
||||
/* XXX should use %p to print pointers. About 80 lines are wrong. */
|
||||
/* YF - fixed */
|
||||
printf("#define\tUDOT_SZ %d\n", sizeof(struct user));
|
||||
printf("#define\tP_FORW %d\n", &p->p_forw);
|
||||
printf("#define\tP_BACK %d\n", &p->p_back);
|
||||
printf("#define\tP_VMSPACE %d\n", &p->p_vmspace);
|
||||
printf("#define\tVM_PMAP %d\n", &vms->vm_pmap);
|
||||
printf("#define\tP_ADDR %d\n", &p->p_addr);
|
||||
printf("#define\tP_PRI %d\n", &p->p_priority);
|
||||
printf("#define\tP_RTPRIO_TYPE %d\n", &p->p_rtprio.type);
|
||||
printf("#define\tP_RTPRIO_PRIO %d\n", &p->p_rtprio.prio);
|
||||
printf("#define\tP_STAT %d\n", &p->p_stat);
|
||||
printf("#define\tP_WCHAN %d\n", &p->p_wchan);
|
||||
printf("#define\tP_FLAG %d\n", &p->p_flag);
|
||||
printf("#define\tP_PID %d\n", &p->p_pid);
|
||||
printf("#define\tP_FORW %p\n", &p->p_forw);
|
||||
printf("#define\tP_BACK %p\n", &p->p_back);
|
||||
printf("#define\tP_VMSPACE %p\n", &p->p_vmspace);
|
||||
printf("#define\tVM_PMAP %p\n", &vms->vm_pmap);
|
||||
printf("#define\tP_ADDR %p\n", &p->p_addr);
|
||||
printf("#define\tP_PRI %p\n", &p->p_priority);
|
||||
printf("#define\tP_RTPRIO_TYPE %p\n", &p->p_rtprio.type);
|
||||
printf("#define\tP_RTPRIO_PRIO %p\n", &p->p_rtprio.prio);
|
||||
printf("#define\tP_STAT %p\n", &p->p_stat);
|
||||
printf("#define\tP_WCHAN %p\n", &p->p_wchan);
|
||||
printf("#define\tP_FLAG %p\n", &p->p_flag);
|
||||
printf("#define\tP_PID %p\n", &p->p_pid);
|
||||
printf("#define\tSSLEEP %d\n", SSLEEP);
|
||||
printf("#define\tSRUN %d\n", SRUN);
|
||||
printf("#define\tV_TRAP %d\n", &vm->v_trap);
|
||||
printf("#define\tV_SYSCALL %d\n", &vm->v_syscall);
|
||||
printf("#define\tV_INTR %d\n", &vm->v_intr);
|
||||
printf("#define\tV_TRAP %p\n", &vm->v_trap);
|
||||
printf("#define\tV_SYSCALL %p\n", &vm->v_syscall);
|
||||
printf("#define\tV_INTR %p\n", &vm->v_intr);
|
||||
printf("#define\tUPAGES %d\n", UPAGES);
|
||||
printf("#define\tCLSIZE %d\n", CLSIZE);
|
||||
printf("#define\tNBPG %d\n", NBPG);
|
||||
@ -124,70 +125,70 @@ main()
|
||||
printf("#define\tMSGBUFPTECNT %d\n", btoc(sizeof (struct msgbuf)));
|
||||
printf("#define\tNMBCLUSTERS %d\n", NMBCLUSTERS);
|
||||
printf("#define\tMCLBYTES %d\n", MCLBYTES);
|
||||
printf("#define\tPCB_LINK %d\n", &pcb->pcb_tss.tss_link);
|
||||
printf("#define\tPCB_ESP0 %d\n", &pcb->pcb_tss.tss_esp0);
|
||||
printf("#define\tPCB_SS0 %d\n", &pcb->pcb_tss.tss_ss0);
|
||||
printf("#define\tPCB_ESP1 %d\n", &pcb->pcb_tss.tss_esp1);
|
||||
printf("#define\tPCB_SS1 %d\n", &pcb->pcb_tss.tss_ss1);
|
||||
printf("#define\tPCB_ESP2 %d\n", &pcb->pcb_tss.tss_esp2);
|
||||
printf("#define\tPCB_SS2 %d\n", &pcb->pcb_tss.tss_ss2);
|
||||
printf("#define\tPCB_CR3 %d\n", &pcb->pcb_tss.tss_cr3);
|
||||
printf("#define\tPCB_EIP %d\n", &pcb->pcb_tss.tss_eip);
|
||||
printf("#define\tPCB_EFLAGS %d\n", &pcb->pcb_tss.tss_eflags);
|
||||
printf("#define\tPCB_EAX %d\n", &pcb->pcb_tss.tss_eax);
|
||||
printf("#define\tPCB_ECX %d\n", &pcb->pcb_tss.tss_ecx);
|
||||
printf("#define\tPCB_EDX %d\n", &pcb->pcb_tss.tss_edx);
|
||||
printf("#define\tPCB_EBX %d\n", &pcb->pcb_tss.tss_ebx);
|
||||
printf("#define\tPCB_ESP %d\n", &pcb->pcb_tss.tss_esp);
|
||||
printf("#define\tPCB_EBP %d\n", &pcb->pcb_tss.tss_ebp);
|
||||
printf("#define\tPCB_ESI %d\n", &pcb->pcb_tss.tss_esi);
|
||||
printf("#define\tPCB_EDI %d\n", &pcb->pcb_tss.tss_edi);
|
||||
printf("#define\tPCB_ES %d\n", &pcb->pcb_tss.tss_es);
|
||||
printf("#define\tPCB_CS %d\n", &pcb->pcb_tss.tss_cs);
|
||||
printf("#define\tPCB_SS %d\n", &pcb->pcb_tss.tss_ss);
|
||||
printf("#define\tPCB_DS %d\n", &pcb->pcb_tss.tss_ds);
|
||||
printf("#define\tPCB_FS %d\n", &pcb->pcb_tss.tss_fs);
|
||||
printf("#define\tPCB_GS %d\n", &pcb->pcb_tss.tss_gs);
|
||||
printf("#define\tPCB_LDT %d\n", &pcb->pcb_tss.tss_ldt);
|
||||
printf("#define\tPCB_USERLDT %d\n", &pcb->pcb_ldt);
|
||||
printf("#define\tPCB_IOOPT %d\n", &pcb->pcb_tss.tss_ioopt);
|
||||
printf("#define\tU_PROF %d\n", &up->u_stats.p_prof);
|
||||
printf("#define\tU_PROFSCALE %d\n", &up->u_stats.p_prof.pr_scale);
|
||||
printf("#define\tPR_BASE %d\n", &uprof->pr_base);
|
||||
printf("#define\tPR_SIZE %d\n", &uprof->pr_size);
|
||||
printf("#define\tPR_OFF %d\n", &uprof->pr_off);
|
||||
printf("#define\tPR_SCALE %d\n", &uprof->pr_scale);
|
||||
printf("#define\tRU_MINFLT %d\n", &rup->ru_minflt);
|
||||
printf("#define\tPCB_FLAGS %d\n", &pcb->pcb_flags);
|
||||
printf("#define\tPCB_SAVEFPU %d\n", &pcb->pcb_savefpu);
|
||||
printf("#define\tPCB_LINK %p\n", &pcb->pcb_tss.tss_link);
|
||||
printf("#define\tPCB_ESP0 %p\n", &pcb->pcb_tss.tss_esp0);
|
||||
printf("#define\tPCB_SS0 %p\n", &pcb->pcb_tss.tss_ss0);
|
||||
printf("#define\tPCB_ESP1 %p\n", &pcb->pcb_tss.tss_esp1);
|
||||
printf("#define\tPCB_SS1 %p\n", &pcb->pcb_tss.tss_ss1);
|
||||
printf("#define\tPCB_ESP2 %p\n", &pcb->pcb_tss.tss_esp2);
|
||||
printf("#define\tPCB_SS2 %p\n", &pcb->pcb_tss.tss_ss2);
|
||||
printf("#define\tPCB_CR3 %p\n", &pcb->pcb_tss.tss_cr3);
|
||||
printf("#define\tPCB_EIP %p\n", &pcb->pcb_tss.tss_eip);
|
||||
printf("#define\tPCB_EFLAGS %p\n", &pcb->pcb_tss.tss_eflags);
|
||||
printf("#define\tPCB_EAX %p\n", &pcb->pcb_tss.tss_eax);
|
||||
printf("#define\tPCB_ECX %p\n", &pcb->pcb_tss.tss_ecx);
|
||||
printf("#define\tPCB_EDX %p\n", &pcb->pcb_tss.tss_edx);
|
||||
printf("#define\tPCB_EBX %p\n", &pcb->pcb_tss.tss_ebx);
|
||||
printf("#define\tPCB_ESP %p\n", &pcb->pcb_tss.tss_esp);
|
||||
printf("#define\tPCB_EBP %p\n", &pcb->pcb_tss.tss_ebp);
|
||||
printf("#define\tPCB_ESI %p\n", &pcb->pcb_tss.tss_esi);
|
||||
printf("#define\tPCB_EDI %p\n", &pcb->pcb_tss.tss_edi);
|
||||
printf("#define\tPCB_ES %p\n", &pcb->pcb_tss.tss_es);
|
||||
printf("#define\tPCB_CS %p\n", &pcb->pcb_tss.tss_cs);
|
||||
printf("#define\tPCB_SS %p\n", &pcb->pcb_tss.tss_ss);
|
||||
printf("#define\tPCB_DS %p\n", &pcb->pcb_tss.tss_ds);
|
||||
printf("#define\tPCB_FS %p\n", &pcb->pcb_tss.tss_fs);
|
||||
printf("#define\tPCB_GS %p\n", &pcb->pcb_tss.tss_gs);
|
||||
printf("#define\tPCB_LDT %p\n", &pcb->pcb_tss.tss_ldt);
|
||||
printf("#define\tPCB_USERLDT %p\n", &pcb->pcb_ldt);
|
||||
printf("#define\tPCB_IOOPT %p\n", &pcb->pcb_tss.tss_ioopt);
|
||||
printf("#define\tU_PROF %p\n", &up->u_stats.p_prof);
|
||||
printf("#define\tU_PROFSCALE %p\n", &up->u_stats.p_prof.pr_scale);
|
||||
printf("#define\tPR_BASE %p\n", &uprof->pr_base);
|
||||
printf("#define\tPR_SIZE %p\n", &uprof->pr_size);
|
||||
printf("#define\tPR_OFF %p\n", &uprof->pr_off);
|
||||
printf("#define\tPR_SCALE %p\n", &uprof->pr_scale);
|
||||
printf("#define\tRU_MINFLT %p\n", &rup->ru_minflt);
|
||||
printf("#define\tPCB_FLAGS %p\n", &pcb->pcb_flags);
|
||||
printf("#define\tPCB_SAVEFPU %p\n", &pcb->pcb_savefpu);
|
||||
printf("#define\tFP_USESEMC %d\n", FP_USESEMC);
|
||||
printf("#define\tPCB_SAVEEMC %d\n", &pcb->pcb_saveemc);
|
||||
printf("#define\tPCB_INL %d\n", &pcb->pcb_inl);
|
||||
printf("#define\tPCB_ONFAULT %d\n", &pcb->pcb_onfault);
|
||||
printf("#define\tPCB_SAVEEMC %p\n", &pcb->pcb_saveemc);
|
||||
printf("#define\tPCB_INL %p\n", &pcb->pcb_inl);
|
||||
printf("#define\tPCB_ONFAULT %p\n", &pcb->pcb_onfault);
|
||||
|
||||
printf("#define\tTF_ES %d\n", &tf->tf_es);
|
||||
printf("#define\tTF_DS %d\n", &tf->tf_ds);
|
||||
printf("#define\tTF_EDI %d\n", &tf->tf_edi);
|
||||
printf("#define\tTF_ESI %d\n", &tf->tf_esi);
|
||||
printf("#define\tTF_EBP %d\n", &tf->tf_ebp);
|
||||
printf("#define\tTF_ISP %d\n", &tf->tf_isp);
|
||||
printf("#define\tTF_EBX %d\n", &tf->tf_ebx);
|
||||
printf("#define\tTF_EDX %d\n", &tf->tf_edx);
|
||||
printf("#define\tTF_ECX %d\n", &tf->tf_ecx);
|
||||
printf("#define\tTF_EAX %d\n", &tf->tf_eax);
|
||||
printf("#define\tTF_TRAPNO %d\n", &tf->tf_trapno);
|
||||
printf("#define\tTF_ERR %d\n", &tf->tf_err);
|
||||
printf("#define\tTF_EIP %d\n", &tf->tf_eip);
|
||||
printf("#define\tTF_CS %d\n", &tf->tf_cs);
|
||||
printf("#define\tTF_EFLAGS %d\n", &tf->tf_eflags);
|
||||
printf("#define\tTF_ESP %d\n", &tf->tf_esp);
|
||||
printf("#define\tTF_SS %d\n", &tf->tf_ss);
|
||||
printf("#define\tTF_ES %p\n", &tf->tf_es);
|
||||
printf("#define\tTF_DS %p\n", &tf->tf_ds);
|
||||
printf("#define\tTF_EDI %p\n", &tf->tf_edi);
|
||||
printf("#define\tTF_ESI %p\n", &tf->tf_esi);
|
||||
printf("#define\tTF_EBP %p\n", &tf->tf_ebp);
|
||||
printf("#define\tTF_ISP %p\n", &tf->tf_isp);
|
||||
printf("#define\tTF_EBX %p\n", &tf->tf_ebx);
|
||||
printf("#define\tTF_EDX %p\n", &tf->tf_edx);
|
||||
printf("#define\tTF_ECX %p\n", &tf->tf_ecx);
|
||||
printf("#define\tTF_EAX %p\n", &tf->tf_eax);
|
||||
printf("#define\tTF_TRAPNO %p\n", &tf->tf_trapno);
|
||||
printf("#define\tTF_ERR %p\n", &tf->tf_err);
|
||||
printf("#define\tTF_EIP %p\n", &tf->tf_eip);
|
||||
printf("#define\tTF_CS %p\n", &tf->tf_cs);
|
||||
printf("#define\tTF_EFLAGS %p\n", &tf->tf_eflags);
|
||||
printf("#define\tTF_ESP %p\n", &tf->tf_esp);
|
||||
printf("#define\tTF_SS %p\n", &tf->tf_ss);
|
||||
|
||||
printf("#define\tSIGF_SIGNUM %d\n", &sigf->sf_signum);
|
||||
printf("#define\tSIGF_CODE %d\n", &sigf->sf_code);
|
||||
printf("#define\tSIGF_SCP %d\n", &sigf->sf_scp);
|
||||
printf("#define\tSIGF_HANDLER %d\n", &sigf->sf_handler);
|
||||
printf("#define\tSIGF_SC %d\n", &sigf->sf_sc);
|
||||
printf("#define\tSIGF_SIGNUM %p\n", &sigf->sf_signum);
|
||||
printf("#define\tSIGF_CODE %p\n", &sigf->sf_code);
|
||||
printf("#define\tSIGF_SCP %p\n", &sigf->sf_scp);
|
||||
printf("#define\tSIGF_HANDLER %p\n", &sigf->sf_handler);
|
||||
printf("#define\tSIGF_SC %p\n", &sigf->sf_sc);
|
||||
|
||||
printf("#define\tB_READ %d\n", B_READ);
|
||||
printf("#define\tENOENT %d\n", ENOENT);
|
||||
@ -196,14 +197,14 @@ main()
|
||||
printf("#define\tMAXPATHLEN %d\n", MAXPATHLEN);
|
||||
|
||||
printf("#define\tBOOTINFO_SIZE %d\n", sizeof *bootinfo);
|
||||
printf("#define\tBI_VERSION %d\n", &bootinfo->bi_version);
|
||||
printf("#define\tBI_KERNELNAME %d\n", &bootinfo->bi_kernelname);
|
||||
printf("#define\tBI_NFS_DISKLESS %d\n", &bootinfo->bi_nfs_diskless);
|
||||
printf("#define\tBI_ENDCOMMON %d\n", &bootinfo->bi_endcommon);
|
||||
printf("#define\tBI_VERSION %p\n", &bootinfo->bi_version);
|
||||
printf("#define\tBI_KERNELNAME %p\n", &bootinfo->bi_kernelname);
|
||||
printf("#define\tBI_NFS_DISKLESS %p\n", &bootinfo->bi_nfs_diskless);
|
||||
printf("#define\tBI_ENDCOMMON %p\n", &bootinfo->bi_endcommon);
|
||||
printf("#define\tNFSDISKLESS_SIZE %d\n", sizeof(struct nfs_diskless));
|
||||
printf("#define\tBI_SIZE %d\n", &bootinfo->bi_size);
|
||||
printf("#define\tBI_SYMTAB %d\n", &bootinfo->bi_symtab);
|
||||
printf("#define\tBI_ESYMTAB %d\n", &bootinfo->bi_esymtab);
|
||||
printf("#define\tBI_SIZE %p\n", &bootinfo->bi_size);
|
||||
printf("#define\tBI_SYMTAB %p\n", &bootinfo->bi_symtab);
|
||||
printf("#define\tBI_ESYMTAB %p\n", &bootinfo->bi_esymtab);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user