All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/10] Add RISC-V support
@ 2018-11-14 17:27 Alexander Graf
  2018-11-14 17:27 ` [PATCH v3 01/10] efi: Rename armxx to arch Alexander Graf
                   ` (9 more replies)
  0 siblings, 10 replies; 41+ messages in thread
From: Alexander Graf @ 2018-11-14 17:27 UTC (permalink / raw)
  To: grub-devel
  Cc: leif.lindholm, Peter Jones, Paul Walmsley, David Abdurachmanov,
	atish.patra, schwab, Michael Chang, Alistair Francis, Lukas Auer,
	greentime @ andestech . com, rickchen36 @ gmail . com, Bin Meng

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

Alex

Alexander Graf (10):
  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 to build system
  fdt: Add device tree file type

 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       |   6 +-
 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       |  64 +++++++
 grub-core/kern/riscv/cache_flush.S |  40 +++++
 grub-core/kern/riscv/dl.c          | 335 +++++++++++++++++++++++++++++++++++
 grub-core/kern/riscv/efi/init.c    |  82 +++++++++
 grub-core/kern/riscv/efi/startup.S |  49 ++++++
 grub-core/lib/efi/halt.c           |   3 +-
 grub-core/lib/riscv/setjmp.S       |  82 +++++++++
 grub-core/lib/setjmp.S             |   2 +
 grub-core/loader/arm64/linux.c     |  10 +-
 grub-core/loader/arm64/xen_boot.c  |   6 +-
 grub-core/loader/efi/fdt.c         |   2 +-
 grub-core/loader/riscv/linux.c     | 352 +++++++++++++++++++++++++++++++++++++
 include/grub/arm/linux.h           |   2 +-
 include/grub/arm64/linux.h         |   2 +-
 include/grub/compiler-rt.h         |  12 +-
 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                 |  59 +++++++
 include/grub/file.h                |   2 +
 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              | 268 ++++++++++++++++++++++++++++
 util/grub-mknetdir.c               |   4 +-
 util/grub-mkrescue.c               |  16 +-
 util/grub-module-verifier.c        |  56 ++++++
 util/mkimage.c                     |  32 ++++
 52 files changed, 1889 insertions(+), 38 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

-- 
2.12.3



^ permalink raw reply	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2018-11-26 22:40 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-14 17:27 [PATCH v3 00/10] Add RISC-V support Alexander Graf
2018-11-14 17:27 ` [PATCH v3 01/10] efi: Rename armxx to arch Alexander Graf
2018-11-18 11:41   ` Bin Meng
2018-11-14 17:27 ` [PATCH v3 02/10] PE: Add RISC-V definitions Alexander Graf
2018-11-18 11:41   ` Bin Meng
2018-11-14 17:27 ` [PATCH v3 03/10] elf.h: " Alexander Graf
2018-11-18 11:41   ` Bin Meng
2018-11-14 17:27 ` [PATCH v3 04/10] RISC-V: Add setjmp implementation Alexander Graf
2018-11-18 11:41   ` Bin Meng
2018-11-21 15:31   ` Daniel Kiper
2018-11-14 17:27 ` [PATCH v3 05/10] RISC-V: Add early startup code Alexander Graf
2018-11-18 11:41   ` Bin Meng
2018-11-14 17:27 ` [PATCH v3 06/10] RISC-V: Add Linux load logic Alexander Graf
2018-11-16 22:18   ` Alistair Francis
2018-11-21 15:43   ` Daniel Kiper
2018-11-14 17:27 ` [PATCH v3 07/10] RISC-V: Add awareness for RISC-V reloations Alexander Graf
2018-11-21 15:51   ` Daniel Kiper
2018-11-21 16:08     ` Andreas Schwab
2018-11-21 16:31       ` Daniel Kiper
2018-11-25 22:12     ` Alexander Graf
2018-11-14 17:27 ` [PATCH v3 08/10] RISC-V: Add auxiliary files Alexander Graf
2018-11-17 22:51   ` Auer, Lukas
2018-11-25 23:01     ` Alexander Graf
2018-11-26 22:39       ` Auer, Lukas
2018-11-21 16:02   ` Daniel Kiper
2018-11-25 22:21     ` Alexander Graf
2018-11-14 17:27 ` [PATCH v3 09/10] RISC-V: Add to build system Alexander Graf
2018-11-18 11:41   ` Bin Meng
2018-11-25 23:06     ` Alexander Graf
2018-11-26  1:08       ` Bin Meng
2018-11-21 16:09   ` Daniel Kiper
2018-11-21 16:26     ` Andreas Schwab
2018-11-21 16:34       ` Daniel Kiper
2018-11-21 16:54         ` Andreas Schwab
2018-11-21 16:56           ` Daniel Kiper
2018-11-14 17:27 ` [PATCH v3 10/10] fdt: Add device tree file type Alexander Graf
2018-11-16 22:07   ` Alistair Francis
2018-11-19 10:11   ` Andreas Schwab
2018-11-19 17:56     ` Leif Lindholm
2018-11-21 16:36       ` Daniel Kiper
2018-11-21 16:27   ` Daniel Kiper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.