Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 0124fbb4 authored by Huacai Chen's avatar Huacai Chen
Browse files

LoongArch: Use correct API to map cmdline in relocate_kernel()


fw_arg1 is in memory space rather than I/O space, so we should use
early_memremap_ro() instead of early_ioremap() to map the cmdline.
Moreover, we should unmap it after using.

Suggested-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
Reviewed-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 67e6b115
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment