diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-22 14:01:29 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-01-22 14:01:29 +0000 |
commit | 1fd455f4c7c38541187a67136533b0cb2ef5de56 (patch) | |
tree | 7d35534cd57d662871317c346b168c7a4cf4ea4e | |
parent | 2c3134188db725b3288f27c78643846905054e1d (diff) |
PAGE_SHIFT can be a define, avoid double-define.
-rw-r--r-- | lib/libkvm/kvm_alpha.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_alpha.c b/lib/libkvm/kvm_alpha.c index ee7b749a50e..84f385d9951 100644 --- a/lib/libkvm/kvm_alpha.c +++ b/lib/libkvm/kvm_alpha.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_alpha.c,v 1.5 2000/11/08 18:40:48 ericj Exp $ */ +/* $OpenBSD: kvm_alpha.c,v 1.6 2001/01/22 14:01:28 art Exp $ */ /* $NetBSD: kvm_alpha.c,v 1.5 1996/10/01 21:12:05 cgd Exp $ */ /* @@ -109,7 +109,9 @@ _kvm_kvatop(kd, va, pa) vm = kd->vmst; page_off = va & (cpu_kh->page_size - 1); +#ifndef PAGE_SHIFT #define PAGE_SHIFT vm->page_shift +#endif if (va >= ALPHA_K0SEG_BASE && va <= ALPHA_K0SEG_END) { /* |