mbox series

[0/5] csky: add shutdown and nolibc support

Message ID 20240929-nolibc-csky-v1-0-bb28031a73b0@weissschuh.net
Headers show
Series csky: add shutdown and nolibc support | expand

Message

Thomas Weißschuh Sept. 29, 2024, 9:47 p.m. UTC
This series adds support for the C-SKY architecture to nolibc.
It is hard to find a usable C-SKY userspace and compiler, so having
support in nolibc provides an easy way to perform tests there.

The nolibc test suite requires system power off support in QEMU,
so a driver for that is added, too.
I'm not sure who is responsible for drivers/virt/ and can take the
driver.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
---
Thomas Weißschuh (5):
      drivers/virt: introduce csky_exit system poweroff driver
      tools/nolibc: provide a fallback for lseek through llseek
      selftests/nolibc: add support to use standalone kernels for tests
      tools/nolibc: add csky support
      selftests/nolibc: skip test for getppid() on csky

 drivers/virt/Kconfig                         |  11 ++
 drivers/virt/Makefile                        |   1 +
 drivers/virt/csky_exit.c                     |  57 ++++++++++
 tools/include/nolibc/arch-csky.h             | 161 +++++++++++++++++++++++++++
 tools/include/nolibc/arch.h                  |   2 +
 tools/include/nolibc/sys.h                   |   8 ++
 tools/testing/selftests/nolibc/Makefile      |  21 +++-
 tools/testing/selftests/nolibc/nolibc-test.c |   9 +-
 8 files changed, 265 insertions(+), 5 deletions(-)
---
base-commit: e7ed343658792771cf1b868df061661b7bcc5cef
change-id: 20240928-nolibc-csky-eff1104825d2

Best regards,