[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v16 00/10] Add support for LoongArch
From: |
Xiaotian Wu |
Subject: |
[PATCH v16 00/10] Add support for LoongArch |
Date: |
Thu, 27 Apr 2023 15:42:59 +0800 |
LoongArch is a new Loongson 3A5000 CPU instruction set, you can read
documents [1] or visit the development community [2] to get more information.
[1]: https://loongson.github.io/LoongArch-Documentation/README-EN.html
[2]: https://github.com/loongson
This patch series adds support for the Loongarch architecture, which can
compile and run the linux-6.2+ kernel on LoongArch.
Please review the patches, thank you.
v14->v15:
- Update test code to pass more test cases.
v15->v16:
- Update commit message for the test patch.
- Change 2022 year to 2023 in copyright texts.
- Use "asm volatile" instead of "__asm__ __volatile__".
- Add extra space in casts code.
- Update commented code according to the GRUB coding style.
Xiaotian Wu (10):
PE: Add LoongArch definitions
ELF: Add LoongArch definitions
LoongArch: Add setjmp implementation
LoongArch: Add early startup code
LoongArch: Add support for ELF psABI v1.00 relocations
LoongArch: Add support for ELF psABI v2.00 relocations
LoongArch: Add auxiliary files
LoongArch: Add to build system
tests: Fix timezone inconsistency in squashfs_test
tests: Add LoongArch to various test cases
Makefile.util.def | 1 +
configure.ac | 23 +-
gentpl.py | 27 +--
grub-core/Makefile.am | 6 +
grub-core/Makefile.core.def | 17 ++
grub-core/kern/dl.c | 9 +-
grub-core/kern/efi/mm.c | 3 +-
grub-core/kern/loongarch64/cache.c | 39 ++++
grub-core/kern/loongarch64/cache_flush.S | 33 +++
grub-core/kern/loongarch64/dl.c | 150 +++++++++++++
grub-core/kern/loongarch64/dl_helper.c | 260 +++++++++++++++++++++++
grub-core/kern/loongarch64/efi/init.c | 77 +++++++
grub-core/kern/loongarch64/efi/startup.S | 34 +++
grub-core/lib/efi/halt.c | 2 +-
grub-core/lib/loongarch64/setjmp.S | 69 ++++++
grub-core/lib/setjmp.S | 2 +
include/grub/dl.h | 1 +
include/grub/efi/api.h | 2 +-
include/grub/efi/efi.h | 2 +-
include/grub/efi/pe32.h | 36 ++--
include/grub/elf.h | 30 +++
include/grub/loongarch64/efi/memory.h | 24 +++
include/grub/loongarch64/reloc.h | 113 ++++++++++
include/grub/loongarch64/setjmp.h | 27 +++
include/grub/loongarch64/time.h | 28 +++
include/grub/loongarch64/types.h | 34 +++
include/grub/util/install.h | 1 +
tests/ahci_test.in | 2 +-
tests/ehci_test.in | 2 +-
tests/grub_func_test.in | 2 +
tests/ohci_test.in | 2 +-
tests/pata_test.in | 2 +-
tests/uhci_test.in | 2 +-
tests/util/grub-fs-tester.in | 2 +-
tests/util/grub-shell-luks-tester.in | 3 +
tests/util/grub-shell.in | 15 ++
util/grub-install-common.c | 49 ++---
util/grub-install.c | 16 ++
util/grub-mkimagexx.c | 126 +++++++++++
util/grub-mknetdir.c | 1 +
util/grub-mkrescue.c | 8 +
util/grub-module-verifier.c | 33 +++
util/mkimage.c | 16 ++
43 files changed, 1264 insertions(+), 67 deletions(-)
create mode 100644 grub-core/kern/loongarch64/cache.c
create mode 100644 grub-core/kern/loongarch64/cache_flush.S
create mode 100644 grub-core/kern/loongarch64/dl.c
create mode 100644 grub-core/kern/loongarch64/dl_helper.c
create mode 100644 grub-core/kern/loongarch64/efi/init.c
create mode 100644 grub-core/kern/loongarch64/efi/startup.S
create mode 100644 grub-core/lib/loongarch64/setjmp.S
create mode 100644 include/grub/loongarch64/efi/memory.h
create mode 100644 include/grub/loongarch64/reloc.h
create mode 100644 include/grub/loongarch64/setjmp.h
create mode 100644 include/grub/loongarch64/time.h
create mode 100644 include/grub/loongarch64/types.h
--
2.40.0
- [PATCH v16 00/10] Add support for LoongArch,
Xiaotian Wu <=
- [PATCH v16 01/10] PE: Add LoongArch definitions, Xiaotian Wu, 2023/04/27
- [PATCH v16 02/10] ELF: Add LoongArch definitions, Xiaotian Wu, 2023/04/27
- [PATCH v16 03/10] LoongArch: Add setjmp implementation, Xiaotian Wu, 2023/04/27
- [PATCH v16 04/10] LoongArch: Add early startup code, Xiaotian Wu, 2023/04/27
- [PATCH v16 05/10] LoongArch: Add support for ELF psABI v1.00 relocations, Xiaotian Wu, 2023/04/27
- [PATCH v16 06/10] LoongArch: Add support for ELF psABI v2.00 relocations, Xiaotian Wu, 2023/04/27
- [PATCH v16 07/10] LoongArch: Add auxiliary files, Xiaotian Wu, 2023/04/27
- [PATCH v16 08/10] LoongArch: Add to build system, Xiaotian Wu, 2023/04/27
- [PATCH v16 09/10] tests: Fix timezone inconsistency in squashfs_test, Xiaotian Wu, 2023/04/27
- [PATCH v16 10/10] tests: Add LoongArch to various test cases, Xiaotian Wu, 2023/04/27