Module Name:    src
Committed By:   martin
Date:           Sun Sep 15 14:49:50 UTC 2013

Modified Files:
        src/sys/arch/sparc64/sparc64: trap.c

Log Message:
ifdef a variable like its use


To generate a diff of this commit:
cvs rdiff -u -r1.178 -r1.179 src/sys/arch/sparc64/sparc64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc64/sparc64/trap.c
diff -u src/sys/arch/sparc64/sparc64/trap.c:1.178 src/sys/arch/sparc64/sparc64/trap.c:1.179
--- src/sys/arch/sparc64/sparc64/trap.c:1.178	Fri Jun 21 20:09:59 2013
+++ src/sys/arch/sparc64/sparc64/trap.c	Sun Sep 15 14:49:50 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: trap.c,v 1.178 2013/06/21 20:09:59 nakayama Exp $ */
+/*	$NetBSD: trap.c,v 1.179 2013/09/15 14:49:50 martin Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath.  All rights reserved.
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.178 2013/06/21 20:09:59 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.179 2013/09/15 14:49:50 martin Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -709,12 +709,16 @@ badtrap:
 	case T_LDDF_ALIGN:
 	case T_STDF_ALIGN:
 		{
-		int64_t dsfsr, dsfar=0, isfsr;
-
+		int64_t dsfsr, dsfar=0;
+#ifdef DEBUG
+		int64_t isfsr;
+#endif
 		dsfsr = ldxa(SFSR, ASI_DMMU);
 		if (dsfsr & SFSR_FV)
 			dsfar = ldxa(SFAR, ASI_DMMU);
+#ifdef DEBUG
 		isfsr = ldxa(SFSR, ASI_IMMU);
+#endif
 		/* 
 		 * If we're busy doing copyin/copyout continue
 		 */

Reply via email to