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).
This commit is contained in:
parent
0e5c7f55af
commit
437d090c28
|
@ -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 @@ void parattach __P((struct device *, struct device *, void *));
|
|||
int parmatch __P((struct device *, struct cfdata *, void *));
|
||||
|
||||
struct cfattach par_ca = {
|
||||
sizeof(struct device), parmatch, parattach
|
||||
sizeof(struct par_softc), parmatch, parattach
|
||||
};
|
||||
|
||||
/*ARGSUSED*/
|
||||
|
|
Loading…
Reference in New Issue