mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Add LoongArch support to nolibc
@ 2023-02-09  3:24 chris.chenfeiyang
  2023-02-09  3:24 ` [PATCH v3 1/5] tools/nolibc: Include linux/fcntl.h and remove duplicate code chris.chenfeiyang
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: chris.chenfeiyang @ 2023-02-09  3:24 UTC (permalink / raw)
  To: w, paulmck
  Cc: Feiyang Chen, arnd, chenhuacai, jiaxun.yang, chris.chenfeiyang,
	loongarch, linux-kernel

From: Feiyang Chen <chenfeiyang@loongson.cn>

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

-- 
2.39.0


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

end of thread, other threads:[~2023-02-20  1:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-09  3:24 [PATCH v3 0/5] Add LoongArch support to nolibc chris.chenfeiyang
2023-02-09  3:24 ` [PATCH v3 1/5] tools/nolibc: Include linux/fcntl.h and remove duplicate code chris.chenfeiyang
2023-02-09  3:24 ` [PATCH v3 2/5] tools/nolibc: Add statx() and make stat() rely on statx() if necessary chris.chenfeiyang
2023-02-12 21:12   ` Willy Tarreau
2023-02-13  1:06     ` Feiyang Chen
2023-02-19 19:06       ` Willy Tarreau
2023-02-20  1:04         ` Feiyang Chen
2023-02-09  3:24 ` [PATCH v3 3/5] tools/nolibc: Add support for LoongArch chris.chenfeiyang
2023-02-09  3:24 ` [PATCH v3 4/5] selftests/nolibc: " chris.chenfeiyang
2023-02-09  3:24 ` [PATCH v3 5/5] selftests/nolibc: Adjust indentation for Makefile chris.chenfeiyang
2023-02-09  3:35 ` [PATCH v3 0/5] Add LoongArch support to nolibc Willy Tarreau
2023-02-09  3:38   ` Huacai Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®