Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 One more tweak.
details: https://anonhg.NetBSD.org/src/rev/9e771c179876
branches: trunk
changeset: 465760:9e771c179876
user: ad <ad%NetBSD.org@localhost>
date: Tue Dec 03 12:42:21 2019 +0000
description:
One more tweak.
diffstat:
sys/arch/sh3/sh3/exception.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r f969285d5186 -r 9e771c179876 sys/arch/sh3/sh3/exception.c
--- a/sys/arch/sh3/sh3/exception.c Tue Dec 03 12:39:00 2019 +0000
+++ b/sys/arch/sh3/sh3/exception.c Tue Dec 03 12:42:21 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: exception.c,v 1.72 2019/12/03 12:39:00 ad Exp $ */
+/* $NetBSD: exception.c,v 1.73 2019/12/03 12:42:21 ad Exp $ */
/*-
* Copyright (c) 2002, 2019 The NetBSD Foundation, Inc. All rights reserved.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.72 2019/12/03 12:39:00 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exception.c,v 1.73 2019/12/03 12:42:21 ad Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -378,7 +378,8 @@
/* Page not found. call fault handler */
splx(tf->tf_ssr & PSL_IMASK);
- LWP_CACHE_CREDS(l, l->l_proc);
+ if (usermode)
+ LWP_CACHE_CREDS(l, l->l_proc);
pcb->pcb_onfault = NULL;
err = uvm_fault(map, va, ftype);
pcb->pcb_onfault = onfault;
Home |
Main Index |
Thread Index |
Old Index