Add LoongArch support to nolibc
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest5 patches 6 repliesIn review
- v25 patches 8 repliesSuperseded
- v13 patches 15 repliesSuperseded
Changes in v3 from the cover letter
- Add #if defined(__NR_statx) guard.
- Keep the check for statx() from the first version.
- Mention that we may use statx() everywhere in the future.
- struct statx stat -> struct statx statx.
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | tools/nolibc: Include linux/fcntl.h and remove duplicate codetools/ tools/ | +1 | 0 replies | |
| 2/5 | tools/nolibc: Add statx() and make stat() rely on statx() if necessarytools/ | +56 | 4 replies | |
| 3/5 | tools/nolibc: Add support for LoongArchtools/ tools/ | +202 | 0 replies | |
| 4/5 | selftests/nolibc: Add support for LoongArchtools/ | +4 | 0 replies | |
| 5/5 | selftests/nolibc: Adjust indentation for Makefiletools/ | +37 | 0 replies |
Reviews trailers per patch
None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Huacai Chen |
|---|---|
| Series | A-b |
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/5] Add LoongArch support to nolibc
From: Feiyang Chen <[email protected]>
Add statx() and make stat() rely on statx() if necessary. Add support for LoongArch (32 and 64 bit) to nolibc. It was tested on LoongArch64 only.
The latest QEMU support full-system emulation of a LoongArch64 machine, but for the moment we need to specify the firmware manually.
https://github.com/loongson/Firmware/tree/main/LoongArchVirtMachine
QEMU_ARGS_loongarch = -M virt -bios edk2-loongarch64-code.fd ...
v2:
- Mention that statx() will also benefit other architectures.
- Make stat() rely on statx() when available.
- Put the whitespace changes into one commit.
v3:
- Add #if defined(__NR_statx) guard.
- Keep the check for statx() from the first version.
- Mention that we may use statx() everywhere in the future.
- struct statx stat -> struct statx statx.
Feiyang Chen (5):
tools/nolibc: Include linux/fcntl.h and remove duplicate code tools/nolibc: Add statx() and make stat() rely on statx() if necessary tools/nolibc: Add support for LoongArch
selftests/nolibc: Add support for LoongArch selftests/nolibc: Adjust indentation for Makefile
tools/include/nolibc/arch-loongarch.h | 200 ++++++++++++++++++++++++ tools/include/nolibc/arch.h | 2 + tools/include/nolibc/sys.h | 58 ++++++- tools/include/nolibc/types.h | 5 - tools/testing/selftests/nolibc/Makefile | 78 ++++----- 5 files changed, 300 insertions(+), 43 deletions(-) create mode 100644 tools/include/nolibc/arch-loongarch.h
Signature · 1 line
2.39.0