summaryrefslogtreecommitdiff
path: root/sys/arch/arm64/include/pmap.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-03-24 19:48:02 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-03-24 19:48:02 +0000
commit960bf034a5224117584e38bc930e1d381bdc960b (patch)
tree0fc568aa4e9de34b8fd1260b78a3fe20feea9800 /sys/arch/arm64/include/pmap.h
parent8d5c49ada92e0203a01619c68ff09ca71b5a503b (diff)
Simplify ASID allocation code considerably by allocating an ASID up front
when a pmap is created and freeing it when the pmap is destroyed. This diff relies on the fill 16-bit ASID space being implemented in the processor. While this is documented as an optional feature in the ARMv8 architecture reference manual, all ARMv8 processors seen in the wild so far implement the full 16-bit space. This change incorporates changes by drahn@ to allocate an empty page table for the lower half of the address space for the kernel. ok drahn@, patrick@
Diffstat (limited to 'sys/arch/arm64/include/pmap.h')
-rw-r--r--sys/arch/arm64/include/pmap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/arm64/include/pmap.h b/sys/arch/arm64/include/pmap.h
index 413bdaf53c1..7bd09ce59ae 100644
--- a/sys/arch/arm64/include/pmap.h
+++ b/sys/arch/arm64/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.3 2017/03/16 20:15:07 kettenis Exp $ */
+/* $OpenBSD: pmap.h,v 1.4 2017/03/24 19:48:01 kettenis Exp $ */
/*
* Copyright (c) 2008,2009,2014 Dale Rahn <drahn@dalerahn.com>
*
@@ -70,7 +70,6 @@ struct pmap {
uint64_t pm_pt0pa;
int have_4_level_pt;
int pm_asid;
- int pm_active;
int pm_refs; /* ref count */
struct pmap_statistics pm_stats; /* pmap statistics */
};