Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 added some error checking on return from ...
details: https://anonhg.NetBSD.org/src/rev/1a368b99dbaa
branches: trunk
changeset: 512132:1a368b99dbaa
user: mcr <mcr%NetBSD.org@localhost>
date: Fri Jul 06 18:01:26 2001 +0000
description:
added some error checking on return from rbus_new_root_share().
diffstat:
sys/arch/i386/i386/rbus_machdep.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r f6c70aa6c1cd -r 1a368b99dbaa sys/arch/i386/i386/rbus_machdep.c
--- a/sys/arch/i386/i386/rbus_machdep.c Fri Jul 06 18:00:50 2001 +0000
+++ b/sys/arch/i386/i386/rbus_machdep.c Fri Jul 06 18:01:26 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rbus_machdep.c,v 1.11 2001/04/25 03:31:23 thorpej Exp $ */
+/* $NetBSD: rbus_machdep.c,v 1.12 2001/07/06 18:01:26 mcr Exp $ */
/*
* Copyright (c) 1999
@@ -111,14 +111,19 @@
struct extent *ex;
bus_addr_t start;
bus_size_t size;
+ rbus_tag_t ret;
#ifdef PCIBIOS_ADDR_FIXUP
ex = pciaddr.extent_port;
#else
extern struct extent *ioport_ex;
ex = ioport_ex;
#endif
- start = 0x2000;
- size = 0x1000;
+ start = 0x4000;
+ size = 0x2000;
- return rbus_new_root_share(pa->pa_iot, ex, start, size, 0);
+ ret = rbus_new_root_share(pa->pa_iot, ex, start, size, 0);
+ if(ret == NULL) {
+ panic("failed to alloc I/O space");
+ }
+ return ret;
}
Home |
Main Index |
Thread Index |
Old Index