|
@@ -1407,6 +1407,11 @@ void __init_memblock memblock_set_current_limit(phys_addr_t limit)
|
|
memblock.current_limit = limit;
|
|
memblock.current_limit = limit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+phys_addr_t __init_memblock memblock_get_current_limit(void)
|
|
|
|
+{
|
|
|
|
+ return memblock.current_limit;
|
|
|
|
+}
|
|
|
|
+
|
|
static void __init_memblock memblock_dump(struct memblock_type *type, char *name)
|
|
static void __init_memblock memblock_dump(struct memblock_type *type, char *name)
|
|
{
|
|
{
|
|
unsigned long long base, size;
|
|
unsigned long long base, size;
|