svn commit: r184974 - head/sys/dev/mfi
Kostik Belousov
kostikbel at gmail.com
Mon Nov 17 12:04:34 PST 2008
On Mon, Nov 17, 2008 at 12:53:10PM -0700, M. Warner Losh wrote:
> In message: <20081117193541.GG90129 at deviant.kiev.zoral.com.ua>
> Kostik Belousov <kostikbel at gmail.com> writes:
> : diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
> : index f4e4614..114e0ba 100644
> : --- a/sys/kern/imgact_aout.c
> : +++ b/sys/kern/imgact_aout.c
> : @@ -82,7 +82,17 @@ struct sysentvec aout_sysvec = {
> : .sv_copyout_strings = exec_copyout_strings,
> : .sv_setregs = exec_setregs,
> : .sv_fixlimit = NULL,
> : - .sv_maxssiz = NULL
> : + .sv_maxssiz = NULL,
> : + .sv_flags = SV_NATIVE | SV_AOUT |
> : +#if defined(__i386__)
> : + SV_IA32 | SV_ILP32
> : +#elif defined(__powerpc__) || defined(__mips__)
> : + SV_ILP32
> : +#elif defined(__ia64__) || defined(__sparc64__) || defined(__amd64__)
> : + SV_LP64
> : +#else
> : +#error Choose SV_XXX flags for the platform
> : +#endif
> : };
>
> I didn't think we supported aout for mips. Also, arm is missing from
> the list :-)
Thanks.
In fact, aout works for i386 (and pc98) only. I changed the #ifdef to the
following:
diff --git a/sys/kern/imgact_aout.c b/sys/kern/imgact_aout.c
index f4e4614..78055f7 100644
--- a/sys/kern/imgact_aout.c
+++ b/sys/kern/imgact_aout.c
@@ -82,7 +82,13 @@ struct sysentvec aout_sysvec = {
.sv_copyout_strings = exec_copyout_strings,
.sv_setregs = exec_setregs,
.sv_fixlimit = NULL,
- .sv_maxssiz = NULL
+ .sv_maxssiz = NULL,
+ .sv_flags = SV_NATIVE | SV_AOUT |
+#if defined(__i386__)
+ SV_IA32 | SV_ILP32
+#else
+#error Choose SV_XXX flags for the platform
+#endif
};
static int
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20081117/dd69ae1d/attachment.pgp
More information about the svn-src-head
mailing list