diff options
author | chuck <chuck@cvs.openbsd.org> | 1996-02-03 18:31:13 +0000 |
---|---|---|
committer | chuck <chuck@cvs.openbsd.org> | 1996-02-03 18:31:13 +0000 |
commit | 18fd0c22032a9c4f541172058eb56113e70ca735 (patch) | |
tree | f06b7aeedbb87ced139f36e4268119c6b75af273 /sys/arch/mvme68k/dev/siopvar.h | |
parent | f34705a30c83ef27acf58b47c75c736e6858247a (diff) |
Ensure siop_acb alignment via malloc rather than let alignment depend
on the size of MI data structures that come before it in the softc.
Chip will not function properly if alignment is wrong.
Detected and fixed by: Chuck Cranor <chuck@ccrc.wustl.edu>
and Michael L Hitch <osymh@gemini.oscs.montana.edu>
Diffstat (limited to 'sys/arch/mvme68k/dev/siopvar.h')
-rw-r--r-- | sys/arch/mvme68k/dev/siopvar.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mvme68k/dev/siopvar.h b/sys/arch/mvme68k/dev/siopvar.h index f028eb65e74..8121be8ff93 100644 --- a/sys/arch/mvme68k/dev/siopvar.h +++ b/sys/arch/mvme68k/dev/siopvar.h @@ -1,4 +1,4 @@ -/* $Id: siopvar.h,v 1.2 1995/11/07 08:49:34 deraadt Exp $ */ +/* $Id: siopvar.h,v 1.3 1996/02/03 18:31:12 chuck Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -143,7 +143,8 @@ struct siop_softc { nexus_list; struct siop_acb *sc_nexus; /* current command */ - struct siop_acb sc_acb[8]; /* the real command blocks */ +#define SIOP_NACB 8 + struct siop_acb *sc_acb; /* the real command blocks */ struct siop_tinfo sc_tinfo[8]; u_short sc_clock_freq; |