Re: Regarding the ULTRIX and OSF1 compats

Maxime Villard <[email protected]> Sat, 16 Mar 2019 23:14:04 +0100
Newsgroups gmane.os.netbsd.devel.kernel,gmane.os.netbsd.ports.pmax,gmane.os.netbsd.ports.alpha
Message-ID <[email protected]>
Le 16/03/2019 à 22:41, Paul Goyette a écrit :
> On Sat, 16 Mar 2019, Maxime Villard wrote:
>> Regarding COMPAT_OSF1: I'm not totally sure, but it seems that Alpha's
>> COMPAT_LINUX uses COMPAT_OSF1 as dependency (even if there is no proper
>> dependency in the module), because there are osf1_* calls. Some more
>> compat mess to untangle, it seems...
>>
>> In all cases, it's only a few functions that are just wrappers, so it
>> probably shouldn't be too complicated to solve.
> 
> It's a total of 15 functions (I generated this list by building an alpha GENERIC 
> kernel with COMPAT_OSF1 removed):
> 
>          osf1_sys_wait4
>          osf1_sys_mount
>          osf1_sys_set_program_attributes
>          osf1_sys_setitimer
>          osf1_sys_select
>          osf1_sys_gettimeofday
>          osf1_sys_getrusage
>          osf1_sys_settimeofday
>          osf1_sys_utimes
>          osf1_sys_statfs
>          osf1_sys_fstatfs
>          osf1_sys_sysinfo
>          osf1_sys_usleep_thread
>          osf1_sys_getsysinfo
>          osf1_sys_setsysinfo
> 
> All of these are references from linux_sysent.o

Yes. Most of these functions are basic wrappers, that I think we can just
gather into a linux_misc.c or similar.

Do we know if COMPAT_OSF1 has actually ever been supported on HPPA? It is
commented out in GENERIC since rev1, and there is some Alpha-specific code
in osf1_misc.c that could hardly have compiled on HPPA.