Subject: CVS commit: src/sys/arch/sgimips/sgimips
To: None <source-changes@NetBSD.org>
From: Christopher SEKIYA <sekiya@netbsd.org>
List: source-changes
Date: 01/18/2004 00:47:21
Module Name:	src
Committed By:	sekiya
Date:		Sun Jan 18 00:47:21 UTC 2004

Modified Files:
	src/sys/arch/sgimips/sgimips: bus.c clock.c console.c cpu.c machdep.c
Added Files:
	src/sys/arch/sgimips/sgimips: int.c
Removed Files:
	src/sys/arch/sgimips/sgimips: ip2x.c ip32.c

Log Message:
Large rototill of the lowlevel code:

* move all device-specific bitbanging to the device drivers in question --
  i.e., the ip32 init code doesn't access the CRIME registers directly but
  instead trusts the CRIME driver to DTRT.  machdep.c is cleaner thereby.
* introduce int.c, which handles the interrupt-controller goo formerly
  in ip2x.c.
* unify the CPU interrupt handler, with CRIME, INT2, and the various timer
  handlers hooked in via pointers in the platform struct.
* eliminate ip2x.c and ip32.c.  After the interrupt handler cleanup, the
  actual platform-dependent code was so minimal (rev identification, mask level
  initialization) that it made sense to move it into machdep.c
* "#ifdef DEBUG printf("foo"); #endif" becomes aprint_debug.

Tested on my ip22 and ip32.  Discussed with pooka@, rafal@.


To generate a diff of this commit:
cvs rdiff -r1.25 -r1.26 src/sys/arch/sgimips/sgimips/bus.c
cvs rdiff -r1.9 -r1.10 src/sys/arch/sgimips/sgimips/clock.c
cvs rdiff -r1.18 -r1.19 src/sys/arch/sgimips/sgimips/console.c
cvs rdiff -r1.16 -r1.17 src/sys/arch/sgimips/sgimips/cpu.c
cvs rdiff -r0 -r1.1 src/sys/arch/sgimips/sgimips/int.c
cvs rdiff -r1.8 -r0 src/sys/arch/sgimips/sgimips/ip2x.c
cvs rdiff -r1.23 -r0 src/sys/arch/sgimips/sgimips/ip32.c
cvs rdiff -r1.74 -r1.75 src/sys/arch/sgimips/sgimips/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.