Back to index

cell-binutils  2.17cvs20070401
i386bsd.h
Go to the documentation of this file.
00001 /* Intel 386 running any BSD Unix */
00002 
00003 #include <machine/param.h>
00004 #include <machine/vmparam.h>
00005 
00006 /* Recent versions of FreeBSD don't define NBPG.  */
00007 #ifndef NBPG
00008 #ifdef PAGE_SIZE
00009 #define NBPG PAGE_SIZE
00010 #endif
00011 #endif
00012 
00013 #define       HOST_PAGE_SIZE              NBPG
00014 #define       HOST_MACHINE_ARCH    bfd_arch_i386
00015 #define       HOST_TEXT_START_ADDR        USRTEXT
00016 
00017 /* Jolitz suggested defining HOST_STACK_END_ADDR to
00018    (u.u_kproc.kp_eproc.e_vm.vm_maxsaddr + MAXSSIZ), which should work on
00019    both BSDI and 386BSD, but that is believed not to work for BSD 4.4.  */
00020 
00021 #ifdef __bsdi__
00022 /* This seems to be the right thing for BSDI.  */
00023 #define       HOST_STACK_END_ADDR         USRSTACK
00024 #define HOST_DATA_START_ADDR ((bfd_vma)u.u_kproc.kp_eproc.e_vm.vm_daddr)
00025 #else
00026 /* This seems to be the right thing for 386BSD release 0.1.  */
00027 #define       HOST_STACK_END_ADDR         (USRSTACK - MAXSSIZ)
00028 #endif
00029 
00030 #define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
00031   ((core_bfd)->tdata.trad_core_data->u.u_sig)
00032 #define u_comm u_kproc.kp_proc.p_comm