Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/dev Long term bug finally reared its head: s...



details:   https://anonhg.NetBSD.org/src/rev/27203ae91cf2
branches:  trunk
changeset: 485274:27203ae91cf2
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Sun Apr 23 19:55:51 2000 +0000

description:
Long term bug finally reared its head:  size of device softc was specified
as sizeof(struct device) when amiga switched to new config, and recent
additions of callout structures and a long missing struct device to the
soft structure resulted in kernel panics when attempting to open the builtin
serial port.  The callout structure initialization was clearing the serial
port softc data!  Fixed by using sizeof(struct par_softc).

diffstat:

 sys/arch/amiga/dev/par.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c1e1053c51f0 -r 27203ae91cf2 sys/arch/amiga/dev/par.c
--- a/sys/arch/amiga/dev/par.c  Sun Apr 23 19:35:35 2000 +0000
+++ b/sys/arch/amiga/dev/par.c  Sun Apr 23 19:55:51 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: par.c,v 1.21 2000/03/26 10:15:32 frueauf Exp $ */
+/*     $NetBSD: par.c,v 1.22 2000/04/23 19:55:51 mhitch Exp $  */
 
 /*
  * Copyright (c) 1982, 1990 The Regents of the University of California.
@@ -110,7 +110,7 @@
 int parmatch __P((struct device *, struct cfdata *, void *));
 
 struct cfattach par_ca = {
-       sizeof(struct device), parmatch, parattach
+       sizeof(struct par_softc), parmatch, parattach
 };
 
 /*ARGSUSED*/



Home | Main Index | Thread Index | Old Index