|
@@ -804,6 +804,18 @@ int __init_memblock memblock_mark_nomap(phys_addr_t base, phys_addr_t size)
|
|
|
return memblock_setclr_flag(base, size, 1, MEMBLOCK_NOMAP);
|
|
|
}
|
|
|
|
|
|
+/**
|
|
|
+ * memblock_clear_nomap - Clear flag MEMBLOCK_NOMAP for a specified region.
|
|
|
+ * @base: the base phys addr of the region
|
|
|
+ * @size: the size of the region
|
|
|
+ *
|
|
|
+ * Return 0 on success, -errno on failure.
|
|
|
+ */
|
|
|
+int __init_memblock memblock_clear_nomap(phys_addr_t base, phys_addr_t size)
|
|
|
+{
|
|
|
+ return memblock_setclr_flag(base, size, 0, MEMBLOCK_NOMAP);
|
|
|
+}
|
|
|
+
|
|
|
/**
|
|
|
* __next_reserved_mem_region - next function for for_each_reserved_region()
|
|
|
* @idx: pointer to u64 loop variable
|