mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
Merge tag 'riscv-for-linus-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux
Pull RISC-V fix from Palmer Dabbelt "Avoid trying to initialize memory regions outside the usable range" * tag 'riscv-for-linus-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux: RISC-V: Fix usage of memblock_enforce_memory_limit
This commit is contained in:
@@ -176,7 +176,7 @@ void __init setup_bootmem(void)
|
||||
* Make sure that any memory beyond mem_start + (-PAGE_OFFSET) is removed
|
||||
* as it is unusable by kernel.
|
||||
*/
|
||||
memblock_enforce_memory_limit(mem_start - PAGE_OFFSET);
|
||||
memblock_enforce_memory_limit(-PAGE_OFFSET);
|
||||
|
||||
/* Reserve from the start of the kernel to the end of the kernel */
|
||||
memblock_reserve(vmlinux_start, vmlinux_end - vmlinux_start);
|
||||
|
Reference in New Issue
Block a user