diff options
author | Robert Nagy <robert@cvs.openbsd.org> | 2006-05-07 18:58:54 +0000 |
---|---|---|
committer | Robert Nagy <robert@cvs.openbsd.org> | 2006-05-07 18:58:54 +0000 |
commit | e6d23a895906918e38f6d0070d86e62e660a02f3 (patch) | |
tree | b59cd55eb69695f8fba045181d18fb607dac63fb /sys/arch | |
parent | 715f8efd6c20821a13f95f24bb3dde84665a4d77 (diff) |
fix pmap debug code and only compile it when PMAPDEBUG is defined.
this change also unbreaks builds with DEBUG defined.
ok miod@
Diffstat (limited to 'sys/arch')
-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", |