133965Sjdp/* Intel 386 running any BSD Unix */ 233965Sjdp 333965Sjdp#include <machine/param.h> 433965Sjdp#include <machine/vmparam.h> 533965Sjdp 633965Sjdp/* Recent versions of FreeBSD don't define NBPG. */ 733965Sjdp#ifndef NBPG 833965Sjdp#ifdef PAGE_SIZE 933965Sjdp#define NBPG PAGE_SIZE 1033965Sjdp#endif 1133965Sjdp#endif 1233965Sjdp 1333965Sjdp#define HOST_PAGE_SIZE NBPG 1433965Sjdp#define HOST_MACHINE_ARCH bfd_arch_i386 1533965Sjdp#define HOST_TEXT_START_ADDR USRTEXT 1633965Sjdp 1733965Sjdp/* Jolitz suggested defining HOST_STACK_END_ADDR to 1833965Sjdp (u.u_kproc.kp_eproc.e_vm.vm_maxsaddr + MAXSSIZ), which should work on 1933965Sjdp both BSDI and 386BSD, but that is believed not to work for BSD 4.4. */ 2033965Sjdp 2133965Sjdp#ifdef __bsdi__ 2233965Sjdp/* This seems to be the right thing for BSDI. */ 2333965Sjdp#define HOST_STACK_END_ADDR USRSTACK 2433965Sjdp#define HOST_DATA_START_ADDR ((bfd_vma)u.u_kproc.kp_eproc.e_vm.vm_daddr) 2533965Sjdp#else 2633965Sjdp/* This seems to be the right thing for 386BSD release 0.1. */ 2733965Sjdp#define HOST_STACK_END_ADDR (USRSTACK - MAXSSIZ) 2833965Sjdp#endif 2933965Sjdp 3033965Sjdp#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \ 3133965Sjdp ((core_bfd)->tdata.trad_core_data->u.u_sig) 3233965Sjdp#define u_comm u_kproc.kp_proc.p_comm 33