diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-06-27 14:32:21 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2005-06-27 14:32:21 +0000 |
commit | f33ec8b71903ad717e92289785cad0155b4388b3 (patch) | |
tree | 6ed7ad99d4adf633b144c5a7cc38e9e36e8bd588 /sys/arch | |
parent | 9c67bbde39eae50e0073b17b7035291a7dedb02c (diff) |
remove dead code; drahn@ ok
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/macppc/macppc/machdep.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sys/arch/macppc/macppc/machdep.c b/sys/arch/macppc/macppc/machdep.c index 35b3cc53e67..05546d8e08f 100644 --- a/sys/arch/macppc/macppc/machdep.c +++ b/sys/arch/macppc/macppc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.69 2005/06/08 19:08:23 drahn Exp $ */ +/* $OpenBSD: machdep.c,v 1.70 2005/06/27 14:32:20 mickey Exp $ */ /* $NetBSD: machdep.c,v 1.4 1996/10/16 19:33:11 ws Exp $ */ /* @@ -175,9 +175,6 @@ static long devio_ex_storage[EXTENT_FIXED_STORAGE_SIZE(8) / sizeof (long)]; struct extent *devio_ex; static int devio_malloc_safe = 0; -/* HACK - XXX */ -int segment8_a_mapped = 0; - extern int OF_stdout; /* XXX, called from asm */ @@ -1034,12 +1031,6 @@ bus_space_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, (ppc_malloc_ok ? EX_MALLOCOK : 0)))) return error; - if ((bpa >= 0x80000000) && ((bpa+size) < 0xb0000000)) { - if (segment8_a_mapped) { - *bshp = bpa; - return 0; - } - } if ((error = bus_mem_add_mapping(bpa, size, cacheable, bshp))) { if (extent_free(devio_ex, bpa, size, EX_NOWAIT | (ppc_malloc_ok ? EX_MALLOCOK : 0))) @@ -1171,11 +1162,6 @@ mapiodev(paddr_t pa, psize_t len) spa = trunc_page(pa); off = pa - spa; size = round_page(off+len); - if ((pa >= 0x80000000) && ((pa+len) < 0xb0000000)) { - if (segment8_a_mapped) { - return (void *)pa; - } - } if (ppc_malloc_ok == 0) { /* need to steal vm space before kernel vm is initialized */ va = VM_MIN_KERNEL_ADDRESS + ppc_kvm_stolen; |