Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/nvmm/x86 Add missing pmap_update after pmap_kenter_p...
details: https://anonhg.NetBSD.org/src/rev/24a437e3d480
branches: trunk
changeset: 994793:24a437e3d480
user: maxv <maxv%NetBSD.org@localhost>
date: Thu Nov 22 07:37:12 2018 +0000
description:
Add missing pmap_update after pmap_kenter_pa, noted by Kamil.
diffstat:
sys/dev/nvmm/x86/nvmm_x86_svm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 769680ec2ec8 -r 24a437e3d480 sys/dev/nvmm/x86/nvmm_x86_svm.c
--- a/sys/dev/nvmm/x86/nvmm_x86_svm.c Thu Nov 22 06:15:06 2018 +0000
+++ b/sys/dev/nvmm/x86/nvmm_x86_svm.c Thu Nov 22 07:37:12 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvmm_x86_svm.c,v 1.4 2018/11/19 17:35:12 maxv Exp $ */
+/* $NetBSD: nvmm_x86_svm.c,v 1.5 2018/11/22 07:37:12 maxv Exp $ */
/*
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.4 2018/11/19 17:35:12 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvmm_x86_svm.c,v 1.5 2018/11/22 07:37:12 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1234,6 +1234,7 @@
pmap_kenter_pa(_va + i * PAGE_SIZE, _pa + i * PAGE_SIZE,
VM_PROT_READ | VM_PROT_WRITE, PMAP_WRITE_BACK);
}
+ pmap_update(pmap_kernel());
memset((void *)_va, 0, npages * PAGE_SIZE);
Home |
Main Index |
Thread Index |
Old Index