Add RISC-V support
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest11 patches 15 repliesIn review
- v511 patches 0 repliesSuperseded
- v410 patches 26 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 10 patches | 30 replies | Superseded | |
| v2 | 10 patches | 14 replies | Superseded | |
| v1 | 9 patches | 8 replies | Superseded |
Changes in v6 from the cover letter
- Remove most linux loading logic
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | efi: Rename armxx to archgrub-core/ grub-core/ include/ +2 more | +12 | 0 replies | |
| 2/11 | PE: Add RISC-V definitionsinclude/ | +5 | 0 replies | |
| 3/11 | elf.h: Add RISC-V definitionsinclude/ | +58 | 0 replies | |
| 4/11 | RISC-V: Add setjmp implementationgrub-core/ include/ include/ | +138 | 0 replies | |
| 5/11 | RISC-V: Add early startup codegrub-core/ | +48 | 0 replies | |
| 6/11 | RISC-V: Add Linux load logicgrub-core/ include/ include/ | +143 | 4 replies | |
| 7/11 | RISC-V: Add awareness for RISC-V reloationsgrub-core/ grub-core/ include/ +2 more | +662 | 2 replies | |
| 8/11 | RISC-V: Add auxiliary filesgrub-core/ grub-core/ grub-core/ +6 more | +319 | 3 replies | |
| 9/11 | RISC-V: Add libgcc helpers for clzgrub-core/ include/ | +49 | 3 replies | |
| 10/11 | RISC-V: Add to build systemconfigure.ac gentpl.py grub-core/ +19 more | +200 | 3 replies | |
| 11/11 | fdt: Treat device tree file type like ACPIgrub-core/ include/ | +3 | 1 reply |
Reviews trailers per patch
10 of 11 patches have a Reviewed-by or Acked-by.
| Patch | Alistair Francis | Bin Meng | Daniel Kiper | Leif Lindholm |
|---|---|---|---|---|
| 1/11 | R-b | R-b T-b | R-b | A-b |
| 2/11 | R-b | R-b T-b | R-b | R-b |
| 3/11 | R-b | R-b T-b | R-b | |
| 4/11 | R-b | R-b T-b | R-b | |
| 5/11 | R-b | R-b T-b | R-b | |
| 6/11 | R-b | R-b | ||
| 7/11 | R-b | R-b | ||
| 8/11 | R-b | R-b | ||
| 9/11 | ||||
| 10/11 | R-b | R-b T-b | R-b | |
| 11/11 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v6 00/11] Add RISC-V support
As part of the plan for total world domination, we would like to make sure that booting on RISC-V is in a sane state before anyone goes and does quick hacks "just because".
For that reason, U-Boot supports UEFI booting on RISC-V for a while now. This patch set is the second part of the puzzle, with grub learning how to deal with a UEFI enabled RISC-V target.
The third bit (still missing) is to actually make a working Linux UEFI port. But that will come, I'm sure :).
Looking forward to review feedback and testing,
v1 -> v2:
- adapt to new grub_open_file() API
- adapt to new grub_create_loader_cmdline() API
v2 -> v3:
- fix riscv32 target
v3 -> v4:
- Rebase onto current git master
- Change copyright from 2013 to 2018
- Coding style fixes
- Add spec reference
- Resurrect time reading code
v4 -> v5:
- Mark grub_arch_sync_dma_caches args as unused
- Whitespace fix
- Add spec link to mkimagexx.c
- Remove curly braces
- Use GRUB_EFI_LINUX_FDT_EXTRA_SPACE
- Fix whitespace
- s/failure/fail
- Remove blank line at EOF
- Add blank lines before and after license tag
- New patch: RISC-V: Add libgcc helpers for clz
v5 -> v6:
- Remove most linux loading logic
Alexander Graf (11):
efi: Rename armxx to arch
PE: Add RISC-V definitions
elf.h: Add RISC-V definitions
RISC-V: Add setjmp implementation
RISC-V: Add early startup code
RISC-V: Add Linux load logic
RISC-V: Add awareness for RISC-V reloations
RISC-V: Add auxiliary files
RISC-V: Add libgcc helpers for clz
RISC-V: Add to build system
fdt: Treat device tree file type like ACPI
configure.ac | 28 ++- gentpl.py | 11 +- grub-core/Makefile.am | 12 ++ grub-core/Makefile.core.def | 29 ++++ grub-core/commands/efi/shim_lock.c | 1 + grub-core/commands/file.c | 14 +- grub-core/kern/compiler-rt.c | 48 +++++- grub-core/kern/dl.c | 6 +- grub-core/kern/efi/mm.c | 2 +- grub-core/kern/emu/cache.c | 6 + grub-core/kern/emu/cache_s.S | 1 + grub-core/kern/emu/lite.c | 2 + grub-core/kern/riscv/cache.c | 63 +++++++ grub-core/kern/riscv/cache_flush.S | 44 +++++ grub-core/kern/riscv/dl.c | 340 +++++++++++++++++++++++++++++++++++++ grub-core/kern/riscv/efi/init.c | 76 +++++++++ grub-core/kern/riscv/efi/startup.S | 48 ++++++ grub-core/lib/efi/halt.c | 3 +- grub-core/lib/riscv/setjmp.S | 84 +++++++++ grub-core/lib/setjmp.S | 2 + grub-core/loader/arm64/linux.c | 10 +- grub-core/loader/arm64/xen_boot.c | 6 +- grub-core/loader/riscv/linux.c | 59 +++++++ include/grub/arm/linux.h | 2 +- include/grub/arm64/linux.h | 2 +- include/grub/compiler-rt.h | 19 ++- include/grub/dl.h | 6 +- include/grub/efi/api.h | 3 +- include/grub/efi/efi.h | 6 +- include/grub/efi/pe32.h | 5 + include/grub/elf.h | 58 +++++++ include/grub/file.h | 4 +- include/grub/misc.h | 3 +- include/grub/riscv32/efi/memory.h | 6 + include/grub/riscv32/linux.h | 41 +++++ include/grub/riscv32/setjmp.h | 27 +++ include/grub/riscv32/time.h | 28 +++ include/grub/riscv32/types.h | 34 ++++ include/grub/riscv64/efi/memory.h | 6 + include/grub/riscv64/linux.h | 43 +++++ include/grub/riscv64/setjmp.h | 27 +++ include/grub/riscv64/time.h | 28 +++ include/grub/riscv64/types.h | 34 ++++ include/grub/util/install.h | 2 + util/grub-install-common.c | 2 + util/grub-install.c | 28 +++ util/grub-mkimagexx.c | 259 ++++++++++++++++++++++++++++ util/grub-mknetdir.c | 4 +- util/grub-mkrescue.c | 16 +- util/grub-module-verifier.c | 56 ++++++ util/mkimage.c | 32 ++++ 51 files changed, 1637 insertions(+), 39 deletions(-) create mode 100644 grub-core/kern/riscv/cache.c create mode 100644 grub-core/kern/riscv/cache_flush.S create mode 100644 grub-core/kern/riscv/dl.c create mode 100644 grub-core/kern/riscv/efi/init.c create mode 100644 grub-core/kern/riscv/efi/startup.S create mode 100644 grub-core/lib/riscv/setjmp.S create mode 100644 grub-core/loader/riscv/linux.c create mode 100644 include/grub/riscv32/efi/memory.h create mode 100644 include/grub/riscv32/linux.h create mode 100644 include/grub/riscv32/setjmp.h create mode 100644 include/grub/riscv32/time.h create mode 100644 include/grub/riscv32/types.h create mode 100644 include/grub/riscv64/efi/memory.h create mode 100644 include/grub/riscv64/linux.h create mode 100644 include/grub/riscv64/setjmp.h create mode 100644 include/grub/riscv64/time.h create mode 100644 include/grub/riscv64/types.h
Signature · 1 line
2.12.3