public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] Add LoongArch support to nolibc
@ 2023-02-08 10:17 chris.chenfeiyang
  2023-02-08 10:17 ` [PATCH v2 1/5] tools/nolibc: Include linux/fcntl.h and remove duplicate code chris.chenfeiyang
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: chris.chenfeiyang @ 2023-02-08 10:17 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() when available.
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.

Feiyang Chen (5):
  tools/nolibc: Include linux/fcntl.h and remove duplicate code
  tools/nolibc: Add statx() and make stat() rely on statx() when
    available
  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              |  53 ++++++-
 tools/include/nolibc/types.h            |   5 -
 tools/testing/selftests/nolibc/Makefile |  78 ++++-----
 5 files changed, 295 insertions(+), 43 deletions(-)
 create mode 100644 tools/include/nolibc/arch-loongarch.h

-- 
2.39.0


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

end of thread, other threads:[~2023-02-09  2:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-08 10:17 [PATCH v2 0/5] Add LoongArch support to nolibc chris.chenfeiyang
2023-02-08 10:17 ` [PATCH v2 1/5] tools/nolibc: Include linux/fcntl.h and remove duplicate code chris.chenfeiyang
2023-02-08 10:17 ` [PATCH v2 2/5] tools/nolibc: Add statx() and make stat() rely on statx() when available chris.chenfeiyang
2023-02-08 10:39   ` Arnd Bergmann
2023-02-09  2:06     ` Feiyang Chen
2023-02-08 10:39   ` Willy Tarreau
2023-02-09  2:02     ` Feiyang Chen
2023-02-08 11:00   ` Huacai Chen
2023-02-09  2:25     ` Feiyang Chen
2023-02-08 22:39   ` David Laight
2023-02-09  2:14     ` Feiyang Chen
2023-02-08 10:17 ` [PATCH v2 3/5] tools/nolibc: Add support for LoongArch chris.chenfeiyang
2023-02-08 10:17 ` [PATCH v2 4/5] selftests/nolibc: " chris.chenfeiyang
2023-02-08 10:17 ` [PATCH v2 5/5] selftests/nolibc: Adjust indentation for Makefile chris.chenfeiyang

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