diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-09-21 01:18:53 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-09-21 01:18:53 +0000 |
commit | d4d2d0a3bb28828f802b5adfe6eacc1d45597dd7 (patch) | |
tree | 87bdba51a1797f8174e104288f143571af5f38b5 /sys | |
parent | f33fcaaf7b92cb8d1fd722d1b34426092ad74167 (diff) |
uvm_km_suballoc() will panic if it fails. No need to check the return
value.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/mvme88k/mvme88k/machdep.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/arch/mvme88k/mvme88k/machdep.c b/sys/arch/mvme88k/mvme88k/machdep.c index a876adb6c8b..4fff045e582 100644 --- a/sys/arch/mvme88k/mvme88k/machdep.c +++ b/sys/arch/mvme88k/mvme88k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.58 2001/09/19 20:50:56 mickey Exp $ */ +/* $OpenBSD: machdep.c,v 1.59 2001/09/21 01:18:52 miod Exp $ */ /* * Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr. * Copyright (c) 1996 Nivas Madhur @@ -642,18 +642,13 @@ cpu_startup() phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, VM_PHYS_SIZE, 0, FALSE, NULL); - if (phys_map == NULL) { - panic("cpu_startup: unable to create phys_map"); - } /* * Allocate map for external I/O */ iomap_map = uvm_km_suballoc(kernel_map, &iomapbase, &maxaddr, IOMAP_SIZE, 0, FALSE, NULL); - if (iomap_map == NULL) { - panic("cpu_startup: unable to create iomap_map"); - } + iomap_extent = extent_create("iomap", iomapbase, iomapbase + IOMAP_SIZE, M_DEVBUF, NULL, 0, EX_NOWAIT); if (iomap_extent == NULL) |