tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: amd64 kernel, i386 userland



In article <1lfyrch.n0en6eho0ft6M%manu%netbsd.org@localhost>,
Emmanuel Dreyfus <manu%netbsd.org@localhost> wrote:
>Since nobody opposes, I am going to commit that. Perhaps the option name
>could be better:  NATIVE_EMULROOT or EMULROOT_NATIVE?
>
>> --- sys/kern/kern_exec.c.orig   2014-01-21 16:55:00.000000000 +0100
>> +++ sys/kern/kern_exec.c        2014-01-21 16:55:13.000000000 +0100
>> @@ -184,9 +184,13 @@
>>  
>>  /* NetBSD emul struct */
>>  struct emul emul_netbsd = {
>>         .e_name =               "netbsd",
>> +#ifdef COMPAT_NATIVE
>> +       .e_path =               COMPAT_NATIVE,
>> +#else
>>         .e_path =               NULL,
>> +#endif
>>  #ifndef __HAVE_MINIMAL_EMUL
>>         .e_flags =              EMUL_HAS_SYS___syscall,
>>         .e_errno =              NULL,
>>         .e_nosys =              SYS_syscall,

I think EMUL_NATIVEROOT is better, since everything starts with EMUL?

christos



Home | Main Index | Thread Index | Old Index