Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Use PMAP_DIRECT_UNMAP.
details: https://anonhg.NetBSD.org/src/rev/af15acb3f449
branches: trunk
changeset: 320040:af15acb3f449
user: maxv <maxv%NetBSD.org@localhost>
date: Wed Jun 20 11:57:22 2018 +0000
description:
Use PMAP_DIRECT_UNMAP.
diffstat:
sys/arch/x86/x86/pmap.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 743bc001ec5a -r af15acb3f449 sys/arch/x86/x86/pmap.c
--- a/sys/arch/x86/x86/pmap.c Wed Jun 20 11:49:37 2018 +0000
+++ b/sys/arch/x86/x86/pmap.c Wed Jun 20 11:57:22 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.290 2018/05/19 11:39:37 jdolecek Exp $ */
+/* $NetBSD: pmap.c,v 1.291 2018/06/20 11:57:22 maxv Exp $ */
/*
* Copyright (c) 2008, 2010, 2016, 2017 The NetBSD Foundation, Inc.
@@ -170,7 +170,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.290 2018/05/19 11:39:37 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.291 2018/06/20 11:57:22 maxv Exp $");
#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
@@ -3091,7 +3091,7 @@
#ifdef __HAVE_DIRECT_MAP
if (va >= PMAP_DIRECT_BASE && va < PMAP_DIRECT_END) {
if (pap != NULL) {
- *pap = va - PMAP_DIRECT_BASE;
+ *pap = PMAP_DIRECT_UNMAP(va);
}
return true;
}
Home |
Main Index |
Thread Index |
Old Index