aboutsummaryrefslogtreecommitdiff
path: root/sys/powerpc/booke/pmap.c
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2019-08-25 20:11:35 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2019-08-25 20:11:35 +0000
commit8da08d512350c970787781496090bd7757bc0468 (patch)
treeaf7b6c31f761861dc02d2ff3959512a16276b9f8 /sys/powerpc/booke/pmap.c
parente7f2151c75bc6535f259035cac81d33c9b100a45 (diff)
downloadsrc-8da08d512350c970787781496090bd7757bc0468.tar.gz
src-8da08d512350c970787781496090bd7757bc0468.zip
Notes
Diffstat (limited to 'sys/powerpc/booke/pmap.c')
-rw-r--r--sys/powerpc/booke/pmap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/powerpc/booke/pmap.c b/sys/powerpc/booke/pmap.c
index d542ba82576c..44be1ef4260c 100644
--- a/sys/powerpc/booke/pmap.c
+++ b/sys/powerpc/booke/pmap.c
@@ -161,16 +161,18 @@ static int availmem_regions_sz;
static struct mem_region *physmem_regions;
static int physmem_regions_sz;
+#ifndef __powerpc64__
/* Reserved KVA space and mutex for mmu_booke_zero_page. */
static vm_offset_t zero_page_va;
static struct mtx zero_page_mutex;
-static struct mtx tlbivax_mutex;
-
/* Reserved KVA space and mutex for mmu_booke_copy_page. */
static vm_offset_t copy_page_src_va;
static vm_offset_t copy_page_dst_va;
static struct mtx copy_page_mutex;
+#endif
+
+static struct mtx tlbivax_mutex;
/**************************************************************************/
/* PMAP */
@@ -1646,6 +1648,7 @@ mmu_booke_bootstrap(mmu_t mmu, vm_offset_t start, vm_offset_t kernelend)
virtual_avail = round_page(data_end);
virtual_end = VM_MAX_KERNEL_ADDRESS;
+#ifndef __powerpc64__
/* Allocate KVA space for page zero/copy operations. */
zero_page_va = virtual_avail;
virtual_avail += PAGE_SIZE;
@@ -1661,7 +1664,6 @@ mmu_booke_bootstrap(mmu_t mmu, vm_offset_t start, vm_offset_t kernelend)
mtx_init(&zero_page_mutex, "mmu_booke_zero_page", NULL, MTX_DEF);
mtx_init(&copy_page_mutex, "mmu_booke_copy_page", NULL, MTX_DEF);
-#ifndef __powerpc64__
/* Allocate KVA space for ptbl bufs. */
ptbl_buf_pool_vabase = virtual_avail;
virtual_avail += PTBL_BUFS * PTBL_PAGES * PAGE_SIZE;
@@ -1820,12 +1822,10 @@ mmu_booke_bootstrap(mmu_t mmu, vm_offset_t start, vm_offset_t kernelend)
/* Initialize (statically allocated) kernel pmap. */
/*******************************************************/
PMAP_LOCK_INIT(kernel_pmap);
-#ifndef __powerpc64__
- kptbl_min = VM_MIN_KERNEL_ADDRESS / PDIR_SIZE;
-#endif
#ifdef __powerpc64__
kernel_pmap->pm_pp2d = (pte_t ***)kernel_ptbl_root;
#else
+ kptbl_min = VM_MIN_KERNEL_ADDRESS / PDIR_SIZE;
kernel_pmap->pm_pdir = (pte_t **)kernel_ptbl_root;
#endif