From e95056563d2bcbc252ee29d8943f0ee4ec1bcb12 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 23 Aug 2003 00:04:53 +0000 Subject: Switch to using the emulator in the common compat area. Still work-in-progress. --- sys/compat/ia32/ia32_sysvec.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'sys/compat/ia32') diff --git a/sys/compat/ia32/ia32_sysvec.c b/sys/compat/ia32/ia32_sysvec.c index a8426c9..5efb4d8 100644 --- a/sys/compat/ia32/ia32_sysvec.c +++ b/sys/compat/ia32/ia32_sysvec.c @@ -64,9 +64,9 @@ __FBSDID("$FreeBSD$"); #include #include -#include -#include -#include +#include +#include +#include #include #include #include @@ -101,15 +101,16 @@ struct sysentvec ia32_freebsd_sysvec = { MINSIGSTKSZ, PAGE_SIZE, 0, - IA32_USRSTACK, - IA32_USRSTACK, - IA32_PS_STRINGS, + FREEBSD32_USRSTACK, + FREEBSD32_USRSTACK, + FREEBSD32_PS_STRINGS, VM_PROT_ALL, ia32_copyout_strings, ia32_setregs }; +const char freebsd32_emul_path[] = "/compat/ia32"; static Elf32_Brandinfo ia32_brand_info = { ELFOSABI_FREEBSD, @@ -132,14 +133,14 @@ ia32_copyout_strings(struct image_params *imgp) u_int32_t *vectp; char *stringp, *destp; u_int32_t *stack_base; - struct ia32_ps_strings *arginfo; + struct freebsd32_ps_strings *arginfo; int szsigcode; /* * Calculate string base and vector table pointers. * Also deal with signal trampoline code for this exec type. */ - arginfo = (struct ia32_ps_strings *)IA32_PS_STRINGS; + arginfo = (struct freebsd32_ps_strings *)FREEBSD32_PS_STRINGS; szsigcode = *(imgp->proc->p_sysent->sv_szsigcode); destp = (caddr_t)arginfo - szsigcode - SPARE_USRSPACE - roundup((ARG_MAX - imgp->stringspace), sizeof(char *)); -- cgit v1.1