original_kernel/arch/loongarch/kernel
Jiaxun Yang beb2800074 LoongArch: Fix entry point in kernel image header
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>
2024-06-03 15:45:53 +08:00
..
.gitignore
Makefile LoongArch: KVM: Add PV IPI support on guest side 2024-05-06 22:00:47 +08:00
access-helper.h
acpi.c
alternative.c
asm-offsets.c
cacheinfo.c
cpu-probe.c
crash_dump.c
dma.c dma-mapping: Add helpers for dma_range_map bounds 2024-04-26 12:07:24 +02:00
efi-header.S
efi.c
elf.c
entry.S
env.c
fpu.S
ftrace.c
ftrace_dyn.c kprobe/ftrace: bail out if ftrace was killed 2024-05-16 07:23:30 +09:00
genex.S
head.S LoongArch: Fix entry point in kernel image header 2024-06-03 15:45:53 +08:00
hw_breakpoint.c
idle.c
image-vars.h
inst.c
io.c
irq.c LoongArch: Give a chance to build with !CONFIG_SMP 2024-05-14 12:24:18 +08:00
jump_label.c
kfpu.c
kgdb.c
kprobes.c
lbt.S
machine_kexec.c LoongArch: Give a chance to build with !CONFIG_SMP 2024-05-14 12:24:18 +08:00
mcount.S
mcount_dyn.S
mem.c
module-sections.c
module.c arch: make execmem setup available regardless of CONFIG_MODULES 2024-05-14 00:31:44 -07:00
numa.c
paravirt.c LoongArch: KVM: Add PV IPI support on guest side 2024-05-06 22:00:47 +08:00
perf_event.c LoongArch/smp: Refine some ipi functions on LoongArch platform 2024-05-06 22:00:46 +08:00
perf_regs.c
proc.c
process.c
ptrace.c
relocate.c
relocate_kernel.S
reset.c
rethook.c
rethook.h
rethook_trampoline.S
setup.c LoongArch: Fix built-in DTB detection 2024-06-03 15:45:53 +08:00
signal.c
smp.c LoongArch: Add all CPUs enabled by fdt to NUMA node 0 2024-06-03 15:45:53 +08:00
stacktrace.c
switch.S
syscall.c
sysrq.c
time.c LoongArch/smp: Refine some ipi functions on LoongArch platform 2024-05-06 22:00:46 +08:00
topology.c
traps.c
unaligned.c
unwind.c
unwind_guess.c
unwind_orc.c
unwind_prologue.c
uprobes.c
vdso.c
vmlinux.lds.S LoongArch: Fix entry point in kernel image header 2024-06-03 15:45:53 +08:00