Message ID | 20220613082147.183145-6-mawupeng1@huawei.com |
---|---|
State | Accepted |
Commit | c0b978fedff685c9fdf91a46a6f026ac49d99591 |
Headers | show |
Series | introduce mirrored memory support for arm64 | expand |
diff --git a/arch/arm64/mm/init.c b/arch/arm64/mm/init.c index 339ee84e5a61..8456dbae9441 100644 --- a/arch/arm64/mm/init.c +++ b/arch/arm64/mm/init.c @@ -350,8 +350,8 @@ void __init arm64_memblock_init(void) "initrd not fully accessible via the linear mapping -- please check your bootloader ...\n")) { phys_initrd_size = 0; } else { - memblock_remove(base, size); /* clear MEMBLOCK_ flags */ memblock_add(base, size); + memblock_clear_nomap(base, size); memblock_reserve(base, size); } }