We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f173d commit 1a7f95fCopy full SHA for 1a7f95f
sys/arm64/arm64/machdep.c
@@ -465,7 +465,8 @@ arm64_get_writable_addr(void *addr, void **out)
465
* If it is within the DMAP region and is writable use that.
466
*/
467
if (PHYS_IN_DMAP_RANGE(pa)) {
468
- addr = (void *)PHYS_TO_DMAP_PAGE(pa);
+ addr = (void *)((uintptr_t)PHYS_TO_DMAP_PAGE(trunc_page(pa)) +
469
+ ((vm_offset_t)addr & PAGE_MASK));
470
if (PAR_SUCCESS(arm64_address_translate_s1e1w(
471
(vm_offset_t)addr))) {
472
*out = addr;
0 commit comments