]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Add support code for kexec_file_load()
authorThiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Tue, 29 Nov 2016 12:45:51 +0000 (23:45 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 30 Nov 2016 12:15:25 +0000 (23:15 +1100)
commit1a17f2236bec314d3c019c1254ef083de464aabd
tree0f14a6905e9882dfec5158fafbcf122da8ea8512
parent9c05ea395feb3621e3d796479a0a0fa2841807c9
powerpc: Add support code for kexec_file_load()

This patch adds the support code needed for implementing
kexec_file_load() on powerpc.

This consists of functions to load the ELF kernel, either big or little
endian, and setup the purgatory enviroment which switches from the first
kernel to the second kernel.

None of this code is built yet, as it depends on CONFIG_KEXEC_FILE which
we have not yet defined. Although we could define CONFIG_KEXEC_FILE in
this patch, we'd then have a window in history where the kconfig symbol
is present but the syscall is not, which would be awkward.

Signed-off-by: Josh Sklar <sklar@linux.vnet.ibm.com>
Signed-off-by: Thiago Jung Bauermann <bauerman@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/kexec.h
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/kexec_elf_64.c [new file with mode: 0644]
arch/powerpc/kernel/machine_kexec_file_64.c [new file with mode: 0644]