Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips fix lp64 kvm access for many kernel addre...
details: https://anonhg.NetBSD.org/src/rev/61fe0dd19a5a
branches: trunk
changeset: 349751:61fe0dd19a5a
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Dec 22 07:56:38 2016 +0000
description:
fix lp64 kvm access for many kernel addresses.
in mm_md_kernacc() allow an address if it matches MIPS_KSEG0_P().
now a static n64 kvm-using binary runs sanely on an n64 kernel.
(dynamic n64 has problems with non-trivial programs.)
ok matt@.
diffstat:
sys/arch/mips/mips/mips_machdep.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 271deca59c0c -r 61fe0dd19a5a sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Thu Dec 22 04:54:54 2016 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Thu Dec 22 07:56:38 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_machdep.c,v 1.274 2016/07/30 05:55:34 matt Exp $ */
+/* $NetBSD: mips_machdep.c,v 1.275 2016/12/22 07:56:38 mrg Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -111,7 +111,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.274 2016/07/30 05:55:34 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.275 2016/12/22 07:56:38 mrg Exp $");
#define __INTR_PRIVATE
#include "opt_cputype.h"
@@ -2427,7 +2427,8 @@
mips_round_page(MSGBUFSIZE))) {
return EFAULT;
}
- if (MIPS_XKSEG_P(v) && v < MIPS_KSEG0_START) {
+ if (MIPS_KSEG0_P(v) ||
+ (MIPS_XKSEG_P(v) && v < MIPS_KSEG0_START)) {
*handled = true;
return 0;
}
Home |
Main Index |
Thread Index |
Old Index