initialize zsaddr to intio address space in zs_attach

addresses pr 6770
in the future, zs should be upgraded to use NEXT68k_INTIO_BUS_SPACE
instead of using IIOV directly.
This commit is contained in:
dbj 2001-04-05 05:35:12 +00:00
parent 0c6af3e769
commit 4db02d75fa
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: zs.c,v 1.12 2000/03/06 04:14:15 deberg Exp $ */
/* $NetBSD: zs.c,v 1.13 2001/04/05 05:35:12 dbj Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -220,6 +220,10 @@ zs_attach(parent, self, aux)
zs_unit = zsc->zsc_dev.dv_unit;
if (zs_unit == 0) {
zsaddr[0] = (void *)IIOV(NEXT_P_SCC);
}
if (zsaddr[zs_unit] == NULL)
panic("zs_attach: zs%d not mapped\n", zs_unit);