Remove MM_MODE_NOINVALIDATE.
This flag exists to avoid paying the cost required for consistency when
consistency is not required. It was used for stage-2 allocation when the
VMs are initially being created i.e. there is a point before which all
stage-2 updates don't invalidate and after which they do. Given this, it
can move to the same approach used by the locks for dlog and mpool
allowing the mode clutter to be removed from where is doesn't belong.
Change-Id: I9be9e42c1daaf8570d7555bb3f37876aa7c3bd51
diff --git a/src/fdt_handler.c b/src/fdt_handler.c
index d0400a8..4b0adf9 100644
--- a/src/fdt_handler.c
+++ b/src/fdt_handler.c
@@ -222,7 +222,7 @@
return fdt;
fail:
- mm_unmap(fdt_addr, pa_add(fdt_addr, fdt_header_size()), 0, ppool);
+ mm_unmap(fdt_addr, pa_add(fdt_addr, fdt_header_size()), ppool);
return NULL;
}
@@ -230,8 +230,7 @@
{
paddr_t fdt_addr = pa_from_va(va_from_ptr(fdt));
- return mm_unmap(fdt_addr, pa_add(fdt_addr, fdt_total_size(fdt)), 0,
- ppool);
+ return mm_unmap(fdt_addr, pa_add(fdt_addr, fdt_total_size(fdt)), ppool);
}
bool fdt_patch(paddr_t fdt_addr, struct boot_params_update *p,
@@ -303,7 +302,7 @@
out_unmap_fdt:
/* Unmap FDT. */
if (!mm_unmap(fdt_addr,
- pa_add(fdt_addr, fdt_total_size(fdt) + PAGE_SIZE), 0,
+ pa_add(fdt_addr, fdt_total_size(fdt) + PAGE_SIZE),
ppool)) {
dlog("Unable to unmap writable FDT.\n");
return false;
@@ -311,6 +310,6 @@
return ret;
err_unmap_fdt_header:
- mm_unmap(fdt_addr, pa_add(fdt_addr, fdt_header_size()), 0, ppool);
+ mm_unmap(fdt_addr, pa_add(fdt_addr, fdt_header_size()), ppool);
return false;
}