Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm26 Hack to allow arm26 to have its own "cpu" dev...



details:   https://anonhg.NetBSD.org/src/rev/79ca3b763c9d
branches:  trunk
changeset: 504225:79ca3b763c9d
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sun Feb 25 15:33:33 2001 +0000

description:
Hack to allow arm26 to have its own "cpu" device.  This device should really
be shared between all ARM ports, but the arm32 one is too ugly for me to
touch it till I've got a test system running.

diffstat:

 sys/arch/arm26/arm26/cpu.c      |  6 +++---
 sys/arch/arm26/conf/files.arm26 |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 6dc3305bdfc2 -r 79ca3b763c9d sys/arch/arm26/arm26/cpu.c
--- a/sys/arch/arm26/arm26/cpu.c        Sun Feb 25 15:31:39 2001 +0000
+++ b/sys/arch/arm26/arm26/cpu.c        Sun Feb 25 15:33:33 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.6 2001/01/23 23:58:31 bjh21 Exp $ */
+/* $NetBSD: cpu.c,v 1.7 2001/02/25 15:33:34 bjh21 Exp $ */
 
 /*-
  * Copyright (c) 2000 Ben Harris
@@ -33,7 +33,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.6 2001/01/23 23:58:31 bjh21 Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.7 2001/02/25 15:33:34 bjh21 Exp $");
 
 #include <sys/device.h>
 #include <sys/proc.h>
@@ -63,7 +63,7 @@
        struct device sc_dev;
 };
 
-struct cfattach cpu_ca = {
+struct cfattach cpu_root_ca = {
        sizeof(struct cpu_softc), cpu_match, cpu_attach
 };
 
diff -r 6dc3305bdfc2 -r 79ca3b763c9d sys/arch/arm26/conf/files.arm26
--- a/sys/arch/arm26/conf/files.arm26   Sun Feb 25 15:31:39 2001 +0000
+++ b/sys/arch/arm26/conf/files.arm26   Sun Feb 25 15:33:33 2001 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.arm26,v 1.19 2001/02/11 17:03:05 bjh21 Exp $
+# $NetBSD: files.arm26,v 1.20 2001/02/25 15:33:33 bjh21 Exp $
 
 # Copyright (c) 1997, 1998, 2000 Ben Harris
 # All rights reserved.
@@ -41,8 +41,8 @@
 major   {cd = 6}
 
 # CPU
-device cpu { }
-attach cpu at root
+#device        cpu { }
+attach cpu at root with cpu_root
 defopt opt_cputypes.h  CPU_ARM2 CPU_ARM250 CPU_ARM3
 file   arch/arm26/arm26/cpu.c                  cpu
 



Home | Main Index | Thread Index | Old Index