[PATCH 0/4] examples: allow building API examples on RISC-V
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Sat Nov 23 09:47:50 CET 2024
With the current series the demo code can be built an executed
on qemu-riscv64_smode_defconfig.
The following bug still needs to be investigated:
The demo binary overwrites the gp register that points to the
global data structure.
Heinrich Schuchardt (4):
API: unify platform_sys_info() implementations
examples: implement _start and syscall for RISC-V
examples: use architecture specific memset() on RISC-V
examples: use QEMU compatible LOAD_ADDR on RISC-V
api/Makefile | 9 ++++++---
api/api_platform-arm.c | 35 -----------------------------------
api/api_platform-mips.c | 29 -----------------------------
api/api_platform.c | 25 +++++++++++++++++++++++++
examples/api/Makefile | 7 +++++--
examples/api/crt0.S | 32 ++++++++++++++++++++++++++++++++
6 files changed, 68 insertions(+), 69 deletions(-)
delete mode 100644 api/api_platform-arm.c
delete mode 100644 api/api_platform-mips.c
create mode 100644 api/api_platform.c
--
2.45.2
More information about the U-Boot
mailing list