diff options
author | Jiaxun Yang <jiaxun.yang@flygoat.com> | 2024-06-03 15:45:53 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-06-16 13:51:03 +0200 |
commit | 3240c4d6b8aebd2887965f0450732a2ed0c1c773 (patch) | |
tree | beac4327f885ce0fb72486888f4dcd452d4b41f0 /tools/lib/api/fs/tracing_path.c | |
parent | bf8fd9c3814b26d34689bb2b9f51e74e00442d72 (diff) |
LoongArch: Fix entry point in kernel image header
commit beb2800074c15362cf9f6c7301120910046d6556 upstream.
Currently kernel entry in head.S is in DMW address range, firmware is
instructed to jump to this address after loading the kernel image.
However kernel should not make any assumption on firmware's DMW
setting, thus the entry point should be a physical address falls into
direct translation region.
Fix by converting entry address to physical and amend entry calculation
logic in libstub accordingly.
BTW, use ABSOLUTE() to calculate variables to make Clang/LLVM happy.
Cc: stable@vger.kernel.org
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions