Thread (32 messages) 32 messages, 5 authors, 2020-07-02

Re: [PATCH 02/11] powerpc/kexec_file: mark PPC64 specific code

From: Hari Bathini <hbathini@linux.ibm.com>
Date: 2020-06-29 18:43:32
Also in: kexec, lkml

Hi Christophe

Thanks for the review...

On 27/06/20 12:12 pm, Christophe Leroy wrote:

Le 26/06/2020 à 21:04, Hari Bathini a écrit :
quoted
Some of the kexec_file_load code isn't PPC64 specific. Move PPC64
specific code from kexec/file_load.c to kexec/file_load_64.c. Also,
rename purgatory/trampoline.S to purgatory/trampoline_64.S in the
same spirit.
At the time being, CONFIG_KEXEC_FILE depends on PPC64.
Right.
Are you planning to make it work on PPC32 as well ?
No.
Otherwise I don't understand the purpose of this patch.
But I want to make sure the changes I am adding in this series do not
get in the way of adding PPC32 changes whenever they are submitted as there
is common code currently and some more of it in the changes I am adding
in this series...
Also, what is being done in this patch seems to go far beyond what you describe above.> It is propably worth splitting in several patches with proper explanation.
Hmmm.. I don't see any other reason beyond what I mentioned above.
Will try to split the patch but the changelog would still be the same, afaics.
Christophe
quoted
Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
---
  arch/powerpc/include/asm/kexec.h       |   11 +++
  arch/powerpc/kexec/Makefile            |    2 -
  arch/powerpc/kexec/elf_64.c            |    7 +-
  arch/powerpc/kexec/file_load.c         |   37 ++--------
  arch/powerpc/kexec/file_load_64.c      |  108 ++++++++++++++++++++++++++++++
  arch/powerpc/purgatory/Makefile        |    4 +
  arch/powerpc/purgatory/trampoline.S    |  117 --------------------------------
  arch/powerpc/purgatory/trampoline_64.S |  117 ++++++++++++++++++++++++++++++++
  8 files changed, 248 insertions(+), 155 deletions(-)
  create mode 100644 arch/powerpc/kexec/file_load_64.c
  delete mode 100644 arch/powerpc/purgatory/trampoline.S
  create mode 100644 arch/powerpc/purgatory/trampoline_64.S
Thanks
Hari
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help