Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/walnut Attach the ECC driver instead of the previou...
details: https://anonhg.NetBSD.org/src/rev/2b70e0999f4f
branches: trunk
changeset: 535615:2b70e0999f4f
user: scw <scw%NetBSD.org@localhost>
date: Fri Aug 23 15:03:33 2002 +0000
description:
Attach the ECC driver instead of the previous "eccirq" property hack.
diffstat:
sys/arch/walnut/conf/WALNUT | 4 +++-
sys/arch/walnut/walnut/machdep.c | 12 ++----------
2 files changed, 5 insertions(+), 11 deletions(-)
diffs (51 lines):
diff -r 154cac91b818 -r 2b70e0999f4f sys/arch/walnut/conf/WALNUT
--- a/sys/arch/walnut/conf/WALNUT Fri Aug 23 15:01:07 2002 +0000
+++ b/sys/arch/walnut/conf/WALNUT Fri Aug 23 15:03:33 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: WALNUT,v 1.24 2002/08/23 13:16:23 scw Exp $
+# $NetBSD: WALNUT,v 1.25 2002/08/23 15:03:33 scw Exp $
#
# GENERIC -- everything that's currently supported
#
@@ -131,6 +131,8 @@
cpu0 at plb?
+ecc0 at plb? irq 16 # On-chip ECC controller
+
opb* at plb? # On-chip Peripheral Bus
wdog* at opb? # Watchdog timer
diff -r 154cac91b818 -r 2b70e0999f4f sys/arch/walnut/walnut/machdep.c
--- a/sys/arch/walnut/walnut/machdep.c Fri Aug 23 15:01:07 2002 +0000
+++ b/sys/arch/walnut/walnut/machdep.c Fri Aug 23 15:03:33 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.12 2002/08/23 13:41:55 simonb Exp $ */
+/* $NetBSD: machdep.c,v 1.13 2002/08/23 15:03:33 scw Exp $ */
/*
* Copyright 2001, 2002 Wasabi Systems, Inc.
@@ -366,7 +366,7 @@
void
cpu_startup(void)
{
- int sz, i, eccirq;
+ int sz, i;
caddr_t v;
vaddr_t minaddr, maxaddr;
int base, residual;
@@ -495,14 +495,6 @@
if (board_info_set("processor-frequency", &board_data.processor_speed,
sizeof(&board_data.processor_speed), PROP_CONST, 0))
panic("setting processor-frequency");
-
- /*
- * Walnut supports ECC error reporting on irq 16
- */
- eccirq = 16;
- if (board_info_set("4xx-ecc-irq", &eccirq, sizeof(&eccirq), 0, 0))
- panic("setting ECC interrupt");
-
#if NCOM > 0
{
unsigned int comfreq = COM_FREQ * 6;
Home |
Main Index |
Thread Index |
Old Index