Subject: Re: NetBSD/hpcarm snap code
To: Richard Earnshaw <rearnsha@buzzard.freeserve.co.uk>
From: Chris Gilbert <chris@paradox.demon.co.uk>
List: tech-kern
Date: 02/16/2001 22:11:33
On Friday 16 February 2001  9:54 pm, Richard Earnshaw wrote:
> arch/arm/arm2	<- contains e.g. the ARM2 pmap module
> 	arch/arm/arm6	<- contains e.g. the ARM6 pmap module,
> 			   cache routines, TLB routines, etc.
> 	arch/arm/arm7	<- contains all the ARM7-specific goo.
> 	arch/arm/arm8	<- contains all the ARM8-specific goo.
> 	arch/arm/sa110	<- contains e.g. the SA110 cache routines,
> 			   TLB routines, etc.
>
> Seems basically sound, except...
>
> A RiscPC can be fitted with any of arm6,7/SA110 (or even a few had arm8)
> How would one build a kernel that could select at boot time the
> appropriate CPU?

I can't see a problem (but then it's late :), we'll need to pull cpufunc.c 
apart, keep the set_cpufuncs() as is, and then it should just link if all the 
right files are there?  It might be acorn32 specific, but it's just a bit of 
glue.

Cheers,
Chris