Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 Avoid ras_lookup call if compiling ...



details:   https://anonhg.NetBSD.org/src/rev/c8ff35641b03
branches:  trunk
changeset: 557539:c8ff35641b03
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jan 11 15:56:28 2004 +0000

description:
Avoid ras_lookup call if compiling 32bit kernel (which does not have
__HAVE_RAS). Avoids a compile failure pointed out by Juergen Hannken-Illjes.

diffstat:

 sys/arch/sparc64/sparc64/trap.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r cc989d995fdb -r c8ff35641b03 sys/arch/sparc64/sparc64/trap.c
--- a/sys/arch/sparc64/sparc64/trap.c   Sun Jan 11 15:12:46 2004 +0000
+++ b/sys/arch/sparc64/sparc64/trap.c   Sun Jan 11 15:56:28 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.108 2004/01/06 21:35:19 martin Exp $ */
+/*     $NetBSD: trap.c,v 1.109 2004/01/11 15:56:28 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.108 2004/01/06 21:35:19 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.109 2004/01/11 15:56:28 martin Exp $");
 
 #define NEW_FPSTATE
 
@@ -885,14 +885,18 @@
                break;
 
        case T_BREAKPOINT:
+#ifdef __HAVE_RAS
                if (LIST_EMPTY(&p->p_raslist) ||
                    (ras_lookup(p, (caddr_t)tf->tf_pc) == (caddr_t)-1)) {
+#endif
                        sig = SIGTRAP;
                        KSI_INIT_TRAP(&ksi);
                        ksi.ksi_trap = type;
                        ksi.ksi_code = TRAP_BRKPT;
                        ksi.ksi_addr = (void *)pc;
+#ifdef __HAVE_RAS
                }
+#endif
                break;
 
        case T_IDIV0:



Home | Main Index | Thread Index | Old Index