[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/8] Add support for LoongArch
From: |
Xiaotian Wu |
Subject: |
[PATCH v2 0/8] Add support for LoongArch |
Date: |
Wed, 23 Feb 2022 21:46:35 +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 will add the basic support for LoongArch architecture, it can
compile on LoongArch and display the GRUB UI.
Please review the patches, thank you.
changes from v1:
- rebase on the last commit.
- fix some errors.
- change the year to 2022 for the new files.
Xiaotian Wu (8):
PE: Add LoongArch definitions
Add LoongArch definitions
LoongArch: Add setjmp implementation
LoongArch: Add early startup code
LoongArch: Add stubs for Linux loading commands
LoongArch: Add awareness for LoongArch relocations
LoongArch: Add auxiliary files
LoongArch: Add to build system
Makefile.util.def | 1 +
conf/Makefile.common | 3 +
configure.ac | 7 +
gentpl.py | 25 +--
grub-core/Makefile.am | 6 +
grub-core/Makefile.core.def | 15 ++
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 | 102 ++++++++++++
grub-core/kern/loongarch64/dl_helper.c | 198 +++++++++++++++++++++++
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 | 68 ++++++++
grub-core/lib/setjmp.S | 2 +
grub-core/loader/loongarch64/linux.c | 59 +++++++
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 | 23 +++
include/grub/loongarch64/efi/memory.h | 24 +++
include/grub/loongarch64/linux.h | 31 ++++
include/grub/loongarch64/reloc.h | 107 ++++++++++++
include/grub/loongarch64/setjmp.h | 27 ++++
include/grub/loongarch64/time.h | 28 ++++
include/grub/loongarch64/types.h | 34 ++++
include/grub/util/install.h | 1 +
util/grub-install-common.c | 49 +++---
util/grub-install.c | 16 ++
util/grub-mkimagexx.c | 77 +++++++++
util/grub-mknetdir.c | 1 +
util/grub-mkrescue.c | 7 +
util/grub-module-verifier.c | 26 +++
util/mkimage.c | 16 ++
37 files changed, 1132 insertions(+), 59 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 grub-core/loader/loongarch64/linux.c
create mode 100644 include/grub/loongarch64/efi/memory.h
create mode 100644 include/grub/loongarch64/linux.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.32.0
- [PATCH v2 0/8] Add support for LoongArch,
Xiaotian Wu <=
- [PATCH v2 1/8] PE: Add LoongArch definitions, Xiaotian Wu, 2022/02/23
- [PATCH v2 2/8] Add LoongArch definitions, Xiaotian Wu, 2022/02/23
- [PATCH v2 3/8] LoongArch: Add setjmp implementation, Xiaotian Wu, 2022/02/23
- [PATCH v2 4/8] LoongArch: Add early startup code, Xiaotian Wu, 2022/02/23
- [PATCH v2 5/8] LoongArch: Add stubs for Linux loading commands, Xiaotian Wu, 2022/02/23
- [PATCH v2 6/8] LoongArch: Add awareness for LoongArch relocations, Xiaotian Wu, 2022/02/23