-/* $OpenBSD: pmap.c,v 1.11 2021/05/18 09:14:49 kettenis Exp $ */
+/* $OpenBSD: pmap.c,v 1.12 2021/05/18 12:26:31 deraadt Exp $ */
/*
* Copyright (c) 2019-2020 Brian Bamsch <bbamsch@google.com>
/* Do not have pted for this, get one and put it in VP */
if (pted == NULL) {
- panic("pted not preallocated in pmap_kernel() va %lx pa %lx\n",
+ panic("pted not preallocated in pmap_kernel() va %lx pa %lx",
va, pa);
}
}
if (l1_pa & (Lx_TABLE_ALIGN-1))
- panic("misaligned L2 table\n");
+ panic("misaligned L2 table");
pg_entry = VP_Lx(l1_pa);
}
if (l2_pa & (Lx_TABLE_ALIGN-1))
- panic("misaligned L2 table\n");
+ panic("misaligned L2 table");
pg_entry = VP_Lx(l2_pa);
}
if (l3_pa & (Lx_TABLE_ALIGN-1))
- panic("misaligned L2 table\n");
+ panic("misaligned L2 table");
pg_entry = VP_Lx(l3_pa);
mtx_enter(&pg->mdpage.pv_mtx);
LIST_FOREACH(pted, &(pg->mdpage.pv_list), pted_pv_list) {
if (pmap_vp_lookup(pted->pted_pmap, pted->pted_va & ~PAGE_MASK, &pl3) == NULL)
- panic("failed to look up pte\n");
+ panic("failed to look up pte");
*pl3 &= ~PTE_W;
pted->pted_pte &= ~PROT_WRITE;
}
}
}
- panic ("unable to allocate region with size %lx align %x",
+ panic("unable to allocate region with size %lx align %x",
size, align);
}