diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-08 16:59:36 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-08 16:59:36 +0000 |
commit | 40ed13f63e36dd3f5170c4bdd980e73b83466f6a (patch) | |
tree | a409b2ca4e5507bfeafc7531561cdc98321a9125 /sys | |
parent | 081bc1891ee5c3e8c350fa5e97a68790bd3c45b4 (diff) |
Use Nubus-related constants from <machine/cpu.h> instead of hardcoded values.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/mac68k/dev/macfb.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/mac68k/dev/macfb.c b/sys/arch/mac68k/dev/macfb.c index 0fbb8eba267..3e9ed880e6a 100644 --- a/sys/arch/mac68k/dev/macfb.c +++ b/sys/arch/mac68k/dev/macfb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macfb.c,v 1.2 2006/01/08 16:36:54 miod Exp $ */ +/* $OpenBSD: macfb.c,v 1.3 2006/01/08 16:59:35 miod Exp $ */ /* $NetBSD: macfb.c,v 1.11 2005/01/15 16:00:59 chs Exp $ */ /* * Copyright (c) 1998 Matt DeBergalis @@ -101,8 +101,7 @@ extern u_int32_t mac68k_vidlen; int macfb_is_console(paddr_t addr) { - if (addr != macfb_consaddr && - (addr >= 0xf9000000 && addr <= 0xfeffffff)) { + if (addr != macfb_consaddr && (addr >= NBBASE && addr < NBTOP)) { /* * This is in the NuBus standard slot space range, so we * may well have to look at 0xFssxxxxx, too. Mask off the |