diff options
author | 2006-05-07 18:58:53 +0000 | |
---|---|---|
committer | 2006-05-07 18:58:53 +0000 | |
commit | 4f6d5789f4910b3a77f36fcc247b442adc38a872 (patch) | |
tree | f81ffcbd54582ee5a0dde5c37ab4cc5c443993d3 | |
parent | Add abstraction for resistor factor; makes it easier to compare them to (diff) | |
download | wireguard-openbsd-4f6d5789f4910b3a77f36fcc247b442adc38a872.tar.xz wireguard-openbsd-4f6d5789f4910b3a77f36fcc247b442adc38a872.zip |
fix pmap debug code and only compile it when PMAPDEBUG is defined.
this change also unbreaks builds with DEBUG defined.
ok miod@
-rw-r--r-- | sys/arch/sgi/sgi/machdep.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c index 32bdf8259a9..d7ffa754ca3 100644 --- a/sys/arch/sgi/sgi/machdep.c +++ b/sys/arch/sgi/sgi/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.31 2006/03/14 22:42:01 deraadt Exp $ */ +/* $OpenBSD: machdep.c,v 1.32 2006/05/07 18:58:53 robert Exp $ */ /* * Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com) @@ -636,11 +636,11 @@ cpu_startup() int base, residual; vaddr_t minaddr, maxaddr; vsize_t size; -#ifdef DEBUG - extern int pmapdebugflag; - int opmapdebugflag = pmapdebugflag; +#ifdef PMAPDEBUG + extern int pmapdebug; + int opmapdebug = pmapdebug; - pmapdebugflag = 0; /* Shut up pmap debug during bootstrap */ + pmapdebug = 0; /* Shut up pmap debug during bootstrap */ #endif /* @@ -699,8 +699,8 @@ cpu_startup() phys_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr, VM_PHYS_SIZE, 0, FALSE, NULL); -#ifdef DEBUG - pmapdebugflag = opmapdebugflag; +#ifdef PMAPDEBUG + pmapdebug = opmapdebug; #endif printf("avail mem = %d\n", ptoa(uvmexp.free)); printf("using %d buffers containing %d bytes of memory\n", |