Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 PTE_SYNC_RANGE a newly allocated L1 page ...
details: https://anonhg.NetBSD.org/src/rev/daef194fa1eb
branches: trunk
changeset: 330941:daef194fa1eb
user: matt <matt%NetBSD.org@localhost>
date: Fri Jul 25 15:09:43 2014 +0000
description:
PTE_SYNC_RANGE a newly allocated L1 page for ARM_MMU_EXTENDED
diffstat:
sys/arch/arm/arm32/pmap.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r c6434b4d81be -r daef194fa1eb sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Fri Jul 25 15:07:03 2014 +0000
+++ b/sys/arch/arm/arm32/pmap.c Fri Jul 25 15:09:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.294 2014/06/15 04:04:01 ozaki-r Exp $ */
+/* $NetBSD: pmap.c,v 1.295 2014/07/25 15:09:43 matt Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -216,7 +216,7 @@
#include <arm/locore.h>
//#include <arm/arm32/katelib.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.294 2014/06/15 04:04:01 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.295 2014/07/25 15:09:43 matt Exp $");
//#define PMAP_DEBUG
#ifdef PMAP_DEBUG
@@ -1304,7 +1304,7 @@
bool ok __diagused;
KASSERT(pg != NULL);
pm->pm_l1_pa = VM_PAGE_TO_PHYS(pg);
- vaddr_t va = pmap_direct_mapped_phys(pm->pm_l1_pa, &ok, 0xdeadbeef);
+ vaddr_t va = pmap_direct_mapped_phys(pm->pm_l1_pa, &ok, 0);
KASSERT(ok);
KASSERT(va >= KERNEL_BASE);
@@ -1316,6 +1316,7 @@
pmap_extract(pmap_kernel(), va, &pm->pm_l1_pa);
#endif
pm->pm_l1 = (pd_entry_t *)va;
+ PTE_SYNC_RANGE(pm->pm_l1, PAGE_SIZE / sizeof(pt_entry_t));
#else
struct l1_ttable *l1;
uint8_t domain;
Home |
Main Index |
Thread Index |
Old Index