Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LoongArch: Use correct API to map cmdline in relocate_kernel()
[ Upstream commit 0124fbb ] 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: Jiaxun Yang <[email protected]> Reviewed-by: Jiaxun Yang <[email protected]> Signed-off-by: Huacai Chen <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information