diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-04 20:18:38 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-04 20:18:38 +0000 |
commit | e5a54ed84575461492221ebdbda47de65feb326e (patch) | |
tree | ab46115bb59ac1c0244b77a01c9bde25538149e0 /sys | |
parent | 9f624e81ca1b630a01d479d91c019b4d5e7dabb7 (diff) |
Use symbolic constants for the MACE ISA address range in mace_space_unmap()
too!
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sgi/localbus/macebus.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/sgi/localbus/macebus.c b/sys/arch/sgi/localbus/macebus.c index f9df0924405..6b4bf821d52 100644 --- a/sys/arch/sgi/localbus/macebus.c +++ b/sys/arch/sgi/localbus/macebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macebus.c,v 1.15 2005/12/20 06:59:27 miod Exp $ */ +/* $OpenBSD: macebus.c,v 1.16 2006/01/04 20:18:37 miod Exp $ */ /* * Copyright (c) 2000-2004 Opsycon AB (www.opsycon.se) @@ -395,7 +395,8 @@ mace_space_unmap(bus_space_tag_t t, bus_space_handle_t bsh, bus_size_t size) len = size+off; paddr = KSEG1_TO_PHYS(bsh); - if (paddr >= 0x1f380000 && (paddr+size) <= 0x1f3a0000) + if (paddr >= (MACEBUS_BASE + MACE_ISAX_OFFS) && + (paddr+size) <= (MACEBUS_BASE + MACE_ISAX_OFFS + MACE_ISAX_SIZE)) return; if (pmap_extract(pmap_kernel(), bsh, (void *)&paddr) == 0) { |