[PATCH 0/5] Add LoongArch port support

Youling Tang tangyouling at loongson.cn
Tue Sep 27 19:28:21 PDT 2022


This patch series to support kexec/kdump (only 64bit).

Note: Kernel kexec/kdump support patch see link [1]:
Link [1]: https://lore.kernel.org/loongarch/711d53ae-197f-3c55-d09d-2f40e6886ad1@loongson.cn/T/#t

Youling Tang (5):
  LoongArch: Add LoongArch architecture support in config.guess and
    config.sub files
  LoongArch: Add kexec/kdump support
  LoongArch: PE format image loading support
  LoongArch: Add purgatory framework code
  LoongArch: Remove redundant cmdline parameters when using
    --reuse-cmdline option

 config/config.guess                           |   3 +
 config/config.sub                             |   1 +
 configure.ac                                  |   3 +
 include/elf.h                                 |   1 +
 include/image.h                               |   1 +
 kexec/Makefile                                |   1 +
 kexec/arch/loongarch/Makefile                 |  22 ++
 kexec/arch/loongarch/crashdump-loongarch.c    | 198 ++++++++++
 kexec/arch/loongarch/crashdump-loongarch.h    |  25 ++
 kexec/arch/loongarch/image-header.h           |  79 ++++
 kexec/arch/loongarch/include/arch/options.h   |  28 ++
 kexec/arch/loongarch/iomem.h                  |  10 +
 kexec/arch/loongarch/kexec-elf-loongarch.c    | 117 ++++++
 .../arch/loongarch/kexec-elf-rel-loongarch.c  |  42 ++
 kexec/arch/loongarch/kexec-loongarch.c        | 374 ++++++++++++++++++
 kexec/arch/loongarch/kexec-loongarch.h        |  60 +++
 kexec/arch/loongarch/kexec-pei-loongarch.c    | 117 ++++++
 kexec/kexec-syscall.h                         |   7 +
 kexec/kexec.c                                 |   2 +-
 kexec/kexec.h                                 |   1 +
 purgatory/Makefile                            |   1 +
 purgatory/arch/loongarch/Makefile             |  10 +
 purgatory/arch/loongarch/console-loongarch.c  |   7 +
 .../arch/loongarch/purgatory-loongarch.c      |   7 +
 .../arch/loongarch/purgatory-loongarch.h      |   6 +
 25 files changed, 1122 insertions(+), 1 deletion(-)
 create mode 100644 kexec/arch/loongarch/Makefile
 create mode 100644 kexec/arch/loongarch/crashdump-loongarch.c
 create mode 100644 kexec/arch/loongarch/crashdump-loongarch.h
 create mode 100644 kexec/arch/loongarch/image-header.h
 create mode 100644 kexec/arch/loongarch/include/arch/options.h
 create mode 100644 kexec/arch/loongarch/iomem.h
 create mode 100644 kexec/arch/loongarch/kexec-elf-loongarch.c
 create mode 100644 kexec/arch/loongarch/kexec-elf-rel-loongarch.c
 create mode 100644 kexec/arch/loongarch/kexec-loongarch.c
 create mode 100644 kexec/arch/loongarch/kexec-loongarch.h
 create mode 100644 kexec/arch/loongarch/kexec-pei-loongarch.c
 create mode 100644 purgatory/arch/loongarch/Makefile
 create mode 100644 purgatory/arch/loongarch/console-loongarch.c
 create mode 100644 purgatory/arch/loongarch/purgatory-loongarch.c
 create mode 100644 purgatory/arch/loongarch/purgatory-loongarch.h

-- 
2.36.0




More information about the kexec mailing list