Module Name: src Committed By: skrll Date: Thu Mar 11 21:43:15 UTC 2010
Modified Files: src/sys/arch/hppa/hppa: trap.c Log Message: Start at the first, not the second, exception register. To generate a diff of this commit: cvs rdiff -u -r1.77 -r1.78 src/sys/arch/hppa/hppa/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/hppa/hppa/trap.c diff -u src/sys/arch/hppa/hppa/trap.c:1.77 src/sys/arch/hppa/hppa/trap.c:1.78 --- src/sys/arch/hppa/hppa/trap.c:1.77 Thu Mar 11 21:41:50 2010 +++ src/sys/arch/hppa/hppa/trap.c Thu Mar 11 21:43:15 2010 @@ -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);