Fixed a bug where we weren't checking for required or
forbidden locators correctly, especially physical addresses.
This commit is contained in:
parent
9976af904a
commit
175ee0ab88
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: autoconf.c,v 1.1 2001/06/27 02:48:32 fredette Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.2 2001/12/15 22:39:17 fredette Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
@ -153,6 +153,8 @@ extern struct sun68k_bus_space_tag mainbus_space_tag;
|
||||
|
||||
ma.ma_bustag = &mainbus_space_tag;
|
||||
ma.ma_dmatag = &mainbus_dma_tag;
|
||||
ma.ma_paddr = LOCATOR_FORBIDDEN;
|
||||
ma.ma_pri = LOCATOR_FORBIDDEN;
|
||||
|
||||
/* Find all `early' mainbus buses */
|
||||
for (cpp = special; *cpp != NULL; cpp++) {
|
||||
@ -228,7 +230,6 @@ int sun68k_bus_search(parent, cf, aux)
|
||||
BAD_LOCATOR( ma_loc, what); \
|
||||
else \
|
||||
ma. ma_loc = cf->cf_loc
|
||||
ma.ma_paddr = LOCATOR_REQUIRED;
|
||||
CHECK_LOCATOR(ma_paddr, cf_paddr, "address");
|
||||
CHECK_LOCATOR(ma_pri, cf_intpri, "ipl");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user