--- zzzz-none-000/linux-5.4.213/mm/memblock.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/mm/memblock.c 2024-08-14 09:02:12.000000000 +0000 @@ -566,6 +566,7 @@ /* special case for empty array */ if (type->regions[0].size == 0) { WARN_ON(type->cnt != 1 || type->total_size); + type->start_base = base; type->regions[0].base = base; type->regions[0].size = size; type->regions[0].flags = flags; @@ -1585,7 +1586,11 @@ /* lowest address */ phys_addr_t __init_memblock memblock_start_of_DRAM(void) { +#ifdef CONFIG_ARM64 return memblock.memory.regions[0].base; +#else + return memblock.memory.start_base; +#endif } phys_addr_t __init_memblock memblock_end_of_DRAM(void)