Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libkvm undefine VA_VPG and VA_OFF before defining them.



details:   https://anonhg.NetBSD.org/src/rev/03f6e9bb37cd
branches:  trunk
changeset: 515305:03f6e9bb37cd
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Sep 22 00:53:01 2001 +0000

description:
undefine VA_VPG and VA_OFF before defining them.

diffstat:

 lib/libkvm/kvm_sparc.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r 4ed7ffda7d32 -r 03f6e9bb37cd lib/libkvm/kvm_sparc.c
--- a/lib/libkvm/kvm_sparc.c    Fri Sep 21 23:54:57 2001 +0000
+++ b/lib/libkvm/kvm_sparc.c    Sat Sep 22 00:53:01 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kvm_sparc.c,v 1.25 2001/08/05 03:33:15 matt Exp $      */
+/*     $NetBSD: kvm_sparc.c,v 1.26 2001/09/22 00:53:01 mrg Exp $       */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)kvm_sparc.c        8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: kvm_sparc.c,v 1.25 2001/08/05 03:33:15 matt Exp $");
+__RCSID("$NetBSD: kvm_sparc.c,v 1.26 2001/09/22 00:53:01 mrg Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -77,10 +77,12 @@
 static int pgshift;
 static int nptesg;     /* [sun4/sun4c] only */
 
+#undef VA_VPG
 #define VA_VPG(va)     ((cputyp == CPU_SUN4C || cputyp == CPU_SUN4M) \
                                ? VA_SUN4C_VPG(va) \
                                : VA_SUN4_VPG(va))
 
+#undef VA_OFF
 #define VA_OFF(va) (va & (kd->nbpg - 1))
 
 int _kvm_kvatop44c __P((kvm_t *, u_long, u_long *));



Home | Main Index | Thread Index | Old Index