mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
arm64 iommu: Fix build without INVARIANTS.
Obtained from: CheriBSD Sponsored by: DARPA
This commit is contained in:
parent
b1c66bc44a
commit
c3e58ace31
1 changed files with 2 additions and 0 deletions
|
|
@ -414,7 +414,9 @@ smmu_pmap_pinit(struct smmu_pmap *pmap)
|
|||
pmap->sp_l0_paddr = VM_PAGE_TO_PHYS(m);
|
||||
pmap->sp_l0 = (pd_entry_t *)PHYS_TO_DMAP(pmap->sp_l0_paddr);
|
||||
|
||||
#ifdef INVARIANTS
|
||||
pmap->sp_resident_count = 0;
|
||||
#endif
|
||||
mtx_init(&pmap->sp_mtx, "smmu pmap", NULL, MTX_DEF);
|
||||
|
||||
return (1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue