Subject: Re: CVS commit: syssrc/sys/arch
To: None <uch@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: port-sh3
Date: 03/04/2002 11:58:16
[ Bcc'd to source-changes, followups to port-sh3 please ]

UCHIYAMA Yasushi wrote:

> Module Name:	syssrc
> Committed By:	uch
> Date:		Sun Mar  3 14:28:51 UTC 2002
> 
> Modified Files:
> 
> 	syssrc/sys/arch/dreamcast/dreamcast: machdep.c
> 	syssrc/sys/arch/dreamcast/include: cpu.h
> 	syssrc/sys/arch/evbsh3/evbsh3: machdep.c
> 	syssrc/sys/arch/evbsh3/include: cpu.h
> 	syssrc/sys/arch/hpcsh/hpcsh: machdep.c
> 	syssrc/sys/arch/hpcsh/include: cpu.h
> 	syssrc/sys/arch/mmeye/include: cpu.h
> 	syssrc/sys/arch/mmeye/mmeye: machdep.c
> 	syssrc/sys/arch/sh3/include: cpu.h
> 
> Log Message:
> 
> machine dependent sysctl are moved to machine/cpu.h
> 	dreamcast, hpcsh ... CPU_CONSDEV
> 	mmeye, evbsh3	 ... CPU_CONSDEV, CPU_LOADANDRESET

The reason for having all the machdep sysctl info in the cpu-wide
cpu.h is so that you can share the sysctl(8) binary (and possibly
others) across all ports that use the same processor.  Now, for
example, you can't query CPU_LOADANDRESET on mmeye and evbsh3
with a sysctl(8) binary built on dreamcast or hpcsh.

Simon.
--
Simon Burge                            <simonb@wasabisystems.com>
NetBSD CDs, Support and Service:    http://www.wasabisystems.com/