Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Start at the first, not the second, excep...



details:   https://anonhg.NetBSD.org/src/rev/014018c93954
branches:  trunk
changeset: 752934:014018c93954
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Mar 11 21:43:15 2010 +0000

description:
Start at the first, not the second, exception register.

diffstat:

 sys/arch/hppa/hppa/trap.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r f6b8911f09ca -r 014018c93954 sys/arch/hppa/hppa/trap.c
--- a/sys/arch/hppa/hppa/trap.c Thu Mar 11 21:41:50 2010 +0000
+++ b/sys/arch/hppa/hppa/trap.c Thu Mar 11 21:43:15 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.77 2010/03/11 21:41:50 skrll Exp $  */
+/*     $NetBSD: trap.c,v 1.78 2010/03/11 21:43:15 skrll Exp $  */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.77 2010/03/11 21:41:50 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.78 2010/03/11 21:43:15 skrll Exp $");
 
 /* #define INTRDEBUG */
 /* #define TRAPDEBUG */
@@ -735,7 +735,12 @@
 
                hppa_fpu_flush(l);
                fpp = pcb->pcb_fpregs;
-               pex = (uint32_t *)&fpp[1];
+
+               /* skip the status register */
+               pex = (uint32_t *)&fpp[0];
+               pex++;
+
+               /* loop through the exception registers */
                for (i = 1; i < 8 && !*pex; i++, pex++)
                        ;
                KASSERT(i < 8);



Home | Main Index | Thread Index | Old Index