Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | /* Intel 386 running any BSD Unix */ |
2 | ||
3 | #include <machine/param.h> | |
4 | #include <machine/vmparam.h> | |
5 | ||
6 | /* Recent versions of FreeBSD don't define NBPG. */ | |
7 | #ifndef NBPG | |
8 | #ifdef PAGE_SIZE | |
9 | #define NBPG PAGE_SIZE | |
10 | #endif | |
11 | #endif | |
12 | ||
13 | #define HOST_PAGE_SIZE NBPG | |
14 | #define HOST_MACHINE_ARCH bfd_arch_i386 | |
15 | #define HOST_TEXT_START_ADDR USRTEXT | |
16 | ||
17 | /* Jolitz suggested defining HOST_STACK_END_ADDR to | |
18 | (u.u_kproc.kp_eproc.e_vm.vm_maxsaddr + MAXSSIZ), which should work on | |
19 | both BSDI and 386BSD, but that is believed not to work for BSD 4.4. */ | |
20 | ||
21 | #ifdef __bsdi__ | |
22 | /* This seems to be the right thing for BSDI. */ | |
23 | #define HOST_STACK_END_ADDR USRSTACK | |
24 | #define HOST_DATA_START_ADDR ((bfd_vma)u.u_kproc.kp_eproc.e_vm.vm_daddr) | |
25 | #else | |
26 | /* This seems to be the right thing for 386BSD release 0.1. */ | |
27 | #define HOST_STACK_END_ADDR (USRSTACK - MAXSSIZ) | |
28 | #endif | |
29 | ||
30 | #define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \ | |
31 | ((core_bfd)->tdata.trad_core_data->u.u_sig) | |
32 | #define u_comm u_kproc.kp_proc.p_comm |