Always use the software DBM bit for now.

r350004 added most of the machinery needed to support hardware DBM
management, but it did not intend to actually enable use of the hardware
DBM bit.

Reviewed by:	andrew
MFC with:	r350004
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
markj 2019-07-16 15:41:09 +00:00
parent 079d038a05
commit 07347a7f8f

View File

@ -780,13 +780,17 @@ pmap_bootstrap(vm_offset_t l0pt, vm_offset_t l1pt, vm_paddr_t kernstart,
vm_offset_t va, freemempos;
vm_offset_t dpcpu, msgbufpv;
vm_paddr_t start_pa, pa, min_pa;
uint64_t kern_delta, reg;
uint64_t kern_delta;
int i;
#ifdef notyet
/* Determine whether the hardware implements DBM management. */
reg = READ_SPECIALREG(ID_AA64MMFR1_EL1);
uint64_t reg = READ_SPECIALREG(ID_AA64MMFR1_EL1);
ATTR_SW_DBM = ID_AA64MMFR1_HAFDBS(reg) == ID_AA64MMFR1_HAFDBS_AF_DBS ?
ATTR_DBM : _ATTR_SW_DBM;
#else
ATTR_SW_DBM = _ATTR_SW_DBM;
#endif
kern_delta = KERNBASE - kernstart;