Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/booke Do not clear pcb_onfault for error pa...
details: https://anonhg.NetBSD.org/src/rev/b9349de7daeb
branches: trunk
changeset: 1011706:b9349de7daeb
user: rin <rin%NetBSD.org@localhost>
date: Tue Jul 07 00:41:32 2020 +0000
description:
Do not clear pcb_onfault for error path of setfault().
This is caller's responsibility, and all the callers actually do so.
diffstat:
sys/arch/powerpc/booke/trap.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r f34c64c98854 -r b9349de7daeb sys/arch/powerpc/booke/trap.c
--- a/sys/arch/powerpc/booke/trap.c Tue Jul 07 00:37:46 2020 +0000
+++ b/sys/arch/powerpc/booke/trap.c Tue Jul 07 00:41:32 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.30 2020/07/07 00:37:46 rin Exp $ */
+/* $NetBSD: trap.c,v 1.31 2020/07/07 00:41:32 rin Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.30 2020/07/07 00:37:46 rin Exp $");
+__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.31 2020/07/07 00:41:32 rin Exp $");
#ifdef _KERNEL_OPT
#include "opt_altivec.h"
@@ -691,7 +691,6 @@
tf->tf_fixreg[2] = fb->fb_r2;
tf->tf_fixreg[3] = rv;
memcpy(&tf->tf_fixreg[13], fb->fb_fixreg, sizeof(fb->fb_fixreg));
- pcb->pcb_onfault = NULL;
return true;
}
Home |
Main Index |
Thread Index |
Old Index