Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 2003 20:48:56 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Hajimu UMEMOTO <ume@mahoroba.org>
Cc:        David Malone <dwmalone@maths.tcd.ie>, current@FreeBSD.org, emulation@FreeBSD.org
Subject:   Re: [CFR] IPv6 support for Linux sym
Message-ID:  <15916.42760.152912.977008@grasshopper.cs.duke.edu>
In-Reply-To: <ygebs2cp4b2.wl%ume@mahoroba.org>
References:  <ygelm1hm96h.wl%ume@mahoroba.org> <20030119195957.GA54865@walton.maths.tcd.ie> <ygebs2cp4b2.wl%ume@mahoroba.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Hajimu UMEMOTO writes:

 > dwmalone> 	2) The patches wouldn't compile on the alpha 'cos of some
 > dwmalone> 	ifdefs in the linux emulation code. I just hadn't got around
 > dwmalone> 	to resolving this.
 > 
 > Oops, thank you for pointing this out.  It seems that other than
 > linux_connect() are ifdef'ed by __alpha__.  Is it right?  Is there any
 > problem removing #ifdef __alpha__ and compiling the codes in on
 > FreeBSD/Alpha?
 > 

The ifdefs are there because the linux hack^W OS uses a different
syscall table on each platform, with a different ABI (eg, the same
syscall may take 3 args on x86 and 2 on alpha).   They basically never
cleaned up after bootstrapping themselves from OSF/1.

The #ifndef alpha code is not compiled because it will never be
referred to on the alpha..  The osf1 compat code is a much better
match for the linux networking syscalls, so that's what's used.  On
alpha, the linux compat module depends on the osf1 compat module..

Naively, I'm uncertain why you're having compilation problems on
alpha, since the code is just ifdef'ed out there anyway ;)

Drew

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15916.42760.152912.977008>