lkml.org 
[lkml]   [2023]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Subject[PATCH v2 0/5] Add LoongArch support to nolibc
    Date
    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

    \
     
     \ /
      Last update: 2023-03-27 00:14    [W:2.296 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site