Subject: Atheros HAL vs NetBSD
To: Andrew Doran <ad@netbsd.org>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 08/25/2007 02:07:53
--YszDAcSgCu6rDIlP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Fri, Aug 24, 2007 at 11:52:11PM +0000, Andrew Doran wrote:
>=20
> Module Name: src
> Committed By: ad
> Date: Fri Aug 24 23:52:11 UTC 2007
>=20
> Modified Files:
> src/sys/arch/mips/mips: genassym.cf mipsX_subr.S
> src/sys/contrib/dev/ath/netbsd: ah_osdep.c
>=20
> Log Message:
> The Atheros HAL on MIPS uses %s7 as a general purpose register, but the
> rest of the kernel uses it to store the value of curlwp. Sam won't
> recompile the HAL for us (fair enough), and we can't modify the HAL
> to use another register because doing so could put us in breach of
> the license (v. crappy). So, do a save/set/restore on %s7 in KernIntr()
> and in the stubs that the HAL uses to call back into the kernel.
So NetBSD is a second-class citizen for a binary blob whose licence, as
friendly as it might be to end users, is a pain in NetBSD's own
developers' necks.
That _should_ teach us a lesson. I won't go as far as daring hoping it
will, but it definitely should.
--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.
--YszDAcSgCu6rDIlP
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)
iQEVAwUBRs9y2dgoQloHrPnoAQLvlAf9FP13em2DBHt/YQhNhwwTPpItZhzKOpVI
6CvXydNJdZzYNWc4EtqqH8f+S0aCLO158yvBTYk2wswdfs/XsYnMOlfB791cmAUA
wGVEaS3cCUtgS9F7j7SNUZ1ApX8kiQCwX86ZJsySbQSopVf5I4MEbJRTJBC1i3Jp
AsO3BIeLdtwy6yUu+I3GyxjCUzMj8AAmJXMNba1LrHM87kmcISM132dyYcadIBc/
gWrthYVIO0gVUsAcY6BjjySC/k7T28n+Yc/BRpkVxbJGyN/IJi80vRNRogb6Gbqt
54cHrTUli4uwGFuJnufqEVysR7NijgT7vPUc+IOawzvC9IodYbwuHA==
=7mNx
-----END PGP SIGNATURE-----
--YszDAcSgCu6rDIlP--