Subject: Re: Atheros HAL vs NetBSD
To: Andrew Doran <ad@netbsd.org>
From: Simon Burge <simonb@NetBSD.org>
List: tech-kern
Date: 08/25/2007 13:35:07
Andrew Doran wrote:

> On Sat, Aug 25, 2007 at 02:07:53AM +0200, Quentin Garnier wrote:
> 
> > On Fri, Aug 24, 2007 at 11:52:11PM +0000, Andrew Doran wrote:
> > > 
> > > Module Name:	src
> > > Committed By:	ad
> > > Date:		Fri Aug 24 23:52:11 UTC 2007
> > > 
> > > Modified Files:
> > > 	src/sys/arch/mips/mips: genassym.cf mipsX_subr.S
> > > 	src/sys/contrib/dev/ath/netbsd: ah_osdep.c
> > > 
> > > 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.
> > 
> [ ... ]

Andy, could you please document this in src/doc/HACKS?

Thanks,
Simon.