Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add loongarch64 #1

Draft
wants to merge 193 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
38144f6
Add some loongarch64 support.
yxd-ym Jan 26, 2024
e6befed
Add types.
yxd-ym Jan 26, 2024
efc0505
Add type.
yxd-ym Jan 26, 2024
2cb61a4
Add types.
yxd-ym Jan 26, 2024
5010de2
Add types.
yxd-ym Jan 26, 2024
03184a4
Add types.
yxd-ym Jan 26, 2024
08d5d99
Add types.
yxd-ym Jan 26, 2024
3d61862
Add types.
yxd-ym Jan 26, 2024
7455a4c
Fix syscalls.
yxd-ym Jan 26, 2024
24f5f09
Init llvm.
yxd-ym Jan 29, 2024
0b868e1
Add extern declaration.
yxd-ym Jan 29, 2024
e2b28de
Add clone.
yxd-ym Jan 29, 2024
d792fbe
Fix clone.
yxd-ym Jan 29, 2024
3219a80
Fix clone.
yxd-ym Jan 29, 2024
45747e3
Fix clone.
yxd-ym Jan 29, 2024
9e73d47
Fix clone.
yxd-ym Jan 29, 2024
f9c7899
Fix clone.
yxd-ym Jan 29, 2024
fd4aa46
Fix clone.
yxd-ym Jan 29, 2024
de6668c
Add start stub.
yxd-ym Jan 29, 2024
e8c4ac5
Add clone.
yxd-ym Jan 29, 2024
8cd1b4a
Add restore.
yxd-ym Jan 29, 2024
7de8237
Add elf symndx.
yxd-ym Jan 29, 2024
3997710
Add freeAndExit.
yxd-ym Jan 29, 2024
ecaaf1f
Fix fstat.
yxd-ym Jan 30, 2024
4a3b76b
Fix fstat.
yxd-ym Jan 30, 2024
1fa32e0
Add tls.
yxd-ym Jan 30, 2024
6ae607f
Fix exit.
yxd-ym Jan 30, 2024
da7e0b8
Fix exit.
yxd-ym Jan 30, 2024
e944504
Fix typo.
yxd-ym Jan 30, 2024
edb3102
Fix register.
yxd-ym Jan 30, 2024
6c85401
Fix assmebly.
yxd-ym Jan 30, 2024
c5a747f
Fix assembly.
yxd-ym Jan 30, 2024
13594a8
Fix assembly.
yxd-ym Jan 30, 2024
176f02e
Fix assembly.
yxd-ym Jan 30, 2024
98d93e7
Fix assembly.
yxd-ym Jan 30, 2024
638f090
Fix assembly.
yxd-ym Jan 30, 2024
5b0760a
Fix input.
yxd-ym Jan 30, 2024
6ab2392
Fix output.
yxd-ym Jan 30, 2024
034a278
Fix assembly.
yxd-ym Jan 30, 2024
5c39917
Fix assembly.
yxd-ym Jan 30, 2024
c5f104c
Fix assembly.
yxd-ym Jan 30, 2024
7e65c23
Fix assembly.
yxd-ym Jan 30, 2024
cf343ec
Fix assembly.
yxd-ym Jan 30, 2024
112ea59
Fix assembly.
yxd-ym Jan 30, 2024
5497112
Fix assembly.
yxd-ym Jan 30, 2024
30d3644
Fix assembly.
yxd-ym Jan 30, 2024
6a76eb0
Fix assembly.
yxd-ym Jan 30, 2024
ad103c7
Fix assembly.
yxd-ym Jan 30, 2024
324d3f5
Fix assembly.
yxd-ym Jan 30, 2024
80ad734
Fix assembly.
yxd-ym Jan 30, 2024
770100f
Fix assembly.
yxd-ym Jan 30, 2024
cab2f02
Fix error.
yxd-ym Jan 30, 2024
5247295
Fix error.
yxd-ym Jan 31, 2024
503e0cd
Fix error.
yxd-ym Jan 31, 2024
9996a9e
Fix error.
yxd-ym Jan 31, 2024
9e5e684
Fix error.
yxd-ym Jan 31, 2024
b15f6c8
Fix error.
yxd-ym Jan 31, 2024
5497c02
Fix error.
yxd-ym Jan 31, 2024
346ecdd
Fix assembly.
yxd-ym Jan 31, 2024
b9bc1f4
Remove fixme.
yxd-ym Jan 31, 2024
e8661db
Fix clone.
yxd-ym Jan 31, 2024
cedd745
Use other temp register.
yxd-ym Jan 31, 2024
3cf2e08
Fix thread.
yxd-ym Jan 31, 2024
c27e9f8
Fix thread.
yxd-ym Jan 31, 2024
db840b5
Fix start.
yxd-ym Jan 31, 2024
71445ed
Fix fstat.
yxd-ym Jan 31, 2024
2df1df5
Fix fstat.
yxd-ym Jan 31, 2024
c982456
Fix syscall.
yxd-ym Jan 31, 2024
e17e648
Fix syscall.
yxd-ym Jan 31, 2024
d96d268
Fix syscall.
yxd-ym Jan 31, 2024
d574837
Fix register name.
yxd-ym Jan 31, 2024
bb6bb36
Fix registers.
yxd-ym Jan 31, 2024
5e45292
Add page size.
yxd-ym Jan 31, 2024
c7a4c17
Fix builtin.
yxd-ym Jan 31, 2024
df38980
Do not use C.
yxd-ym Jan 31, 2024
5f9b616
Add comment.
yxd-ym Jan 31, 2024
1db6b63
Fix fstat.
yxd-ym Feb 1, 2024
83bee7f
Fix decorator.
yxd-ym Feb 1, 2024
6798452
Fix param.
yxd-ym Feb 1, 2024
0945af0
Fix var.
yxd-ym Feb 1, 2024
ae9e348
Return 0.
yxd-ym Feb 1, 2024
e60ea6d
Fix type casting.
yxd-ym Feb 1, 2024
975d726
Fix type convert.
yxd-ym Feb 1, 2024
4597f67
Add layout.
yxd-ym Feb 1, 2024
7e4203a
Add supported libc.
yxd-ym Feb 1, 2024
1f182bd
Add PIE.
yxd-ym Feb 1, 2024
b01e86b
Fix coff.
yxd-ym Feb 2, 2024
8e4f339
Fix dyn linker.
yxd-ym Feb 2, 2024
8f08895
Add qemu.
yxd-ym Feb 2, 2024
04dd717
Add ld m option.
yxd-ym Feb 2, 2024
d8129a3
Fix type.
yxd-ym Feb 2, 2024
d9a0a8a
Fix type conversion.
yxd-ym Feb 2, 2024
06a8da0
Fix init.
yxd-ym Feb 2, 2024
52c73e1
Fix decl.
yxd-ym Feb 2, 2024
83579d4
Try to fix target.
yxd-ym Feb 2, 2024
6451361
Revert "Try to fix target."
yxd-ym Feb 2, 2024
f4a83e6
Do not support.
yxd-ym Feb 2, 2024
f8c9ae3
Revert "Do not support."
yxd-ym Feb 2, 2024
01f87bb
Disable macos.
yxd-ym Feb 2, 2024
b46b81a
Revert "Disable macos."
yxd-ym Feb 2, 2024
6005260
Fix arch.
yxd-ym Feb 2, 2024
c1ee874
Fix version range.
yxd-ym Feb 2, 2024
9846373
Fix case.
yxd-ym Feb 2, 2024
522217e
Fix variable.
yxd-ym Feb 2, 2024
c6f3f36
Fix code.
yxd-ym Feb 2, 2024
405d8e1
Revert "Fix code."
yxd-ym Feb 2, 2024
c95cded
Revert "Fix variable."
yxd-ym Feb 2, 2024
63a69c0
Revert "Fix case."
yxd-ym Feb 2, 2024
d605997
Disable macho tests.
yxd-ym Feb 2, 2024
d859aef
Revert test.
yxd-ym Feb 2, 2024
18862f4
Add target.
yxd-ym Feb 2, 2024
20eef92
Disable macho tests.
yxd-ym Feb 2, 2024
307c6d0
Fix default target.
yxd-ym Feb 3, 2024
cb6b7c8
Fix generic.
yxd-ym Feb 3, 2024
4e0768d
Add baseline.
yxd-ym Feb 3, 2024
993c2af
Remove baseline.
yxd-ym Feb 3, 2024
609ee92
Use la464.
yxd-ym Feb 3, 2024
e3c0972
Remove it.
yxd-ym Feb 3, 2024
6ef257e
la464 does not work.
yxd-ym Feb 3, 2024
fc60728
Try to use loongarch64.
yxd-ym Feb 3, 2024
ef79db0
Fix const.
yxd-ym Feb 3, 2024
59a021d
Fix libunwind macro.
yxd-ym Feb 4, 2024
da37dee
Fix local symbol.
yxd-ym Feb 4, 2024
12012e8
Do not set min version.
yxd-ym Feb 5, 2024
edba598
Add detect func.
yxd-ym Feb 5, 2024
7ba3311
Use mold.
yxd-ym Feb 5, 2024
6798672
Fix subcommand.
yxd-ym Feb 5, 2024
0ede93c
Fix assignment.
yxd-ym Feb 5, 2024
07521d9
Assign value.
yxd-ym Feb 5, 2024
4e1dd93
Use mold.
yxd-ym Feb 5, 2024
a0bd57e
Fix condition.
yxd-ym Feb 5, 2024
0ad4ece
use fatal.
yxd-ym Feb 5, 2024
f275006
Fix compile.
yxd-ym Feb 5, 2024
e549b42
Fix command.
yxd-ym Feb 5, 2024
6bb83ad
Unset mold.
yxd-ym Feb 5, 2024
743d81d
Revert "Unset mold."
yxd-ym Feb 5, 2024
02b4edc
Try to find mold.
yxd-ym Feb 5, 2024
06983bd
Revert "Try to find mold."
yxd-ym Feb 5, 2024
b4d9273
Run mold.
yxd-ym Feb 5, 2024
9214214
Fix exit code.
yxd-ym Feb 5, 2024
59d6948
Use fatal.
yxd-ym Feb 5, 2024
6f47092
Fix type.
yxd-ym Feb 5, 2024
3242219
Do not provide libc.
yxd-ym Feb 5, 2024
690f187
Update abilists.
yxd-ym Feb 6, 2024
1bce05c
Add loongarch64 header.
yxd-ym Feb 6, 2024
0dafa70
Add libc.
yxd-ym Feb 7, 2024
b5af28d
Set default abi to gnu.
yxd-ym Feb 7, 2024
6a7ea21
Fix long double.
yxd-ym Feb 7, 2024
bd443fd
Fix name.
yxd-ym Feb 7, 2024
85731bd
Update glibc.
yxd-ym Feb 7, 2024
aab48b0
Fix version.
yxd-ym Feb 7, 2024
2be6302
Restore zig's patch.
yxd-ym Feb 7, 2024
31807b7
Revert "Try to use loongarch64."
yxd-ym Feb 7, 2024
868f824
Fix baseline.
yxd-ym Feb 7, 2024
98d1a59
Use baseline for native.
yxd-ym Feb 7, 2024
f7b13d9
Fix generic.
yxd-ym Feb 7, 2024
019370f
Fix baseline.
yxd-ym Feb 7, 2024
6a84fa0
Fix detection.
yxd-ym Feb 7, 2024
7845458
Fix baseline.
yxd-ym Feb 7, 2024
72c17ac
Fix baseline.
yxd-ym Feb 7, 2024
d943e77
Fix assembler arg.
yxd-ym Feb 7, 2024
6534a82
No f16.
yxd-ym Feb 8, 2024
a1402c2
Fix baseline.
yxd-ym Feb 18, 2024
6549b72
Add glibc min version.
yxd-ym Feb 18, 2024
5a8bc72
Revert "Add glibc min version."
yxd-ym Feb 19, 2024
1d3a240
Add loongarch.
yxd-ym Feb 19, 2024
032fd5b
Revert "Fix libunwind macro."
yxd-ym Feb 19, 2024
04dfeb7
Reapply "Add glibc min version."
yxd-ym Feb 19, 2024
11e2bfa
Bump linux version.
yxd-ym Feb 19, 2024
3a42c39
No crtn/crti for loongarch64 in glibc.
yxd-ym Feb 19, 2024
2e93988
Bump glibc.
yxd-ym Feb 19, 2024
f04e877
Add start.S.
yxd-ym Feb 19, 2024
da5623b
Add generic name.
yxd-ym Feb 20, 2024
038c1c2
Add start.S path.
yxd-ym Feb 20, 2024
2c1dad4
Add regdef.
yxd-ym Feb 20, 2024
e06793b
Fix cfi_label.
yxd-ym Feb 20, 2024
f64ae57
Try ld.bfd.
yxd-ym Feb 20, 2024
5d0c3d7
Fix parameter.
yxd-ym Feb 20, 2024
dfdfe27
Use ld.lld.
yxd-ym Feb 20, 2024
0241297
Use ld.bfd.
yxd-ym Feb 20, 2024
0891503
Use ld.lld.
yxd-ym Feb 20, 2024
9ac895f
Use mold.
yxd-ym Feb 21, 2024
0479857
Disable lto.
yxd-ym Feb 22, 2024
43ca85c
Use ld.lld.
yxd-ym Feb 22, 2024
d9ef54f
Use mold.
yxd-ym Feb 22, 2024
ef3d5be
Use ld.bfd.
yxd-ym Feb 22, 2024
6b8c622
Use mold.
yxd-ym Feb 27, 2024
acc34c2
Add musl support.
yxd-ym Mar 4, 2024
58b1837
Add musl support.
yxd-ym Mar 4, 2024
2310695
Add musl support.
yxd-ym Mar 4, 2024
f52d16c
Add musl support.
yxd-ym Mar 4, 2024
545dc82
Add musl support.
yxd-ym Mar 4, 2024
b916ffd
Update musl libc.
yxd-ym Mar 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions zig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ set(ZIG_STAGE2_SOURCES
"${CMAKE_SOURCE_DIR}/lib/std/Target/avr.zig"
"${CMAKE_SOURCE_DIR}/lib/std/Target/bpf.zig"
"${CMAKE_SOURCE_DIR}/lib/std/Target/hexagon.zig"
"${CMAKE_SOURCE_DIR}/lib/std/Target/loongarch.zig"
"${CMAKE_SOURCE_DIR}/lib/std/Target/mips.zig"
"${CMAKE_SOURCE_DIR}/lib/std/Target/msp430.zig"
"${CMAKE_SOURCE_DIR}/lib/std/Target/nvptx.zig"
Expand Down
8 changes: 4 additions & 4 deletions zig/deps/aro/aro/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ test "alignment functions - smoke test" {
var target: std.Target = undefined;
const x86 = std.Target.Cpu.Arch.x86_64;
target.cpu = std.Target.Cpu.baseline(x86);
target.os = std.Target.Os.Tag.defaultVersionRange(.linux, x86);
target.os = std.Target.Os.Tag.defaultVersionRange(.linux);
target.abi = std.Target.Abi.default(x86, target.os);

try std.testing.expect(isTlsSupported(target));
Expand All @@ -781,7 +781,7 @@ test "alignment functions - smoke test" {

const arm = std.Target.Cpu.Arch.arm;
target.cpu = std.Target.Cpu.baseline(arm);
target.os = std.Target.Os.Tag.defaultVersionRange(.ios, arm);
target.os = std.Target.Os.Tag.defaultVersionRange(.ios);
target.abi = std.Target.Abi.default(arm, target.os);

try std.testing.expect(!isTlsSupported(target));
Expand All @@ -799,7 +799,7 @@ test "target size/align tests" {
const x86 = std.Target.Cpu.Arch.x86;
comp.target.cpu.arch = x86;
comp.target.cpu.model = &std.Target.x86.cpu.i586;
comp.target.os = std.Target.Os.Tag.defaultVersionRange(.linux, x86);
comp.target.os = std.Target.Os.Tag.defaultVersionRange(.linux);
comp.target.abi = std.Target.Abi.gnu;

const tt: Type = .{
Expand All @@ -811,7 +811,7 @@ test "target size/align tests" {

const arm = std.Target.Cpu.Arch.arm;
comp.target.cpu = std.Target.Cpu.Model.toCpu(&std.Target.arm.cpu.cortex_r4, arm);
comp.target.os = std.Target.Os.Tag.defaultVersionRange(.ios, arm);
comp.target.os = std.Target.Os.Tag.defaultVersionRange(.ios);
comp.target.abi = std.Target.Abi.none;

const ct: Type = .{
Expand Down
27 changes: 27 additions & 0 deletions zig/lib/c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,33 @@ fn clone() callconv(.Naked) void {
\\ restore
);
},
.loongarch64 => {
// __clone(func, stack, flags, arg, ptid, tls, ctid)
// a0, a1, a2, a3, a4, a5, a6
// sys_clone(flags, stack, ptid, ctid, tls)
// a0, a1, a2, a3, a4
asm volatile (
\\ # Save function pointer and argument pointer on new thread stack
\\ addi.d $a1, $a1, -16
\\ st.d $a0, $a1, 0 # save function pointer
\\ st.d $a3, $a1, 8 # save argument pointer
\\ or $a0, $a2, $zero
\\ or $a2, $a4, $zero
\\ or $a3, $a6, $zero
\\ or $a4, $a5, $zero
\\ ori $a7, $zero, 220
\\ syscall 0 # call clone
\\
\\ beqz $a0, 1f # whether child process
\\ jirl $zero, $ra, 0 # parent process return
\\1:
\\ ld.d $t8, $sp, 0 # function pointer
\\ ld.d $a0, $sp, 8 # argument pointer
\\ jirl $ra, $t8, 0 # call the user's function
\\ ori $a7, $zero, 93
\\ syscall 0 # child process exit
);
},
else => @compileError("Implement clone() for this arch."),
}
}
Binary file modified zig/lib/libc/glibc/abilists
Binary file not shown.
7 changes: 7 additions & 0 deletions zig/lib/libc/glibc/sysdeps/generic/sysdep.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@
# define cfi_personality(enc, exp) .cfi_personality enc, exp
# define cfi_lsda(enc, exp) .cfi_lsda enc, exp

/* .cfi_label is a gas extension not supported by clang. */
# ifndef __clang__
# define cfi_label(label) .cfi_label label
# else
# define cfi_label(label)
# endif

#else /* ! ASSEMBLER */

# define CFI_STRINGIFY(Name) CFI_STRINGIFY2 (Name)
Expand Down
92 changes: 92 additions & 0 deletions zig/lib/libc/glibc/sysdeps/loongarch/start.S
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
/* Startup code compliant to the ELF LoongArch ABI.
Copyright (C) 2022-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.

The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

In addition to the permissions in the GNU Lesser General Public
License, the Free Software Foundation gives you unlimited
permission to link the compiled version of this file with other
programs, and to distribute those programs without any restriction
coming from the use of this file. (The GNU Lesser General Public
License restrictions do apply in other respects; for example, they
cover modification of the file, and distribution when not linked
into another program.)

Note that people who make modified versions of this file are not
obligated to grant this special exception for their modified
versions; it is their choice whether to do so. The GNU Lesser
General Public License gives permission to release a modified
version without this exception; this exception also makes it
possible to release a modified version which carries forward this
exception.

The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */

#define __ASSEMBLY__ 1
#include <entry.h>
#include <sys/asm.h>

/* The entry point's job is to call __libc_start_main. Per the ABI,
a0 contains the address of a function to be passed to atexit.
__libc_start_main wants this in a5. */

/*
int
__libc_start_main (int (*main) (int, char **, char **),
int argc,
char **argv,
__typeof (main) init,
void (*fini) (void),
void (*rtld_fini) (void),
void *stack_end);
*/

ENTRY (ENTRY_POINT)

/* Terminate call stack by noting ra is undefined. Use a dummy
.cfi_label to force starting the FDE. */
cfi_label (.Ldummy)
cfi_undefined (1)
or a5, a0, zero /* rtld_fini */

#if ENABLE_STATIC_PIE
/* For static PIE, the GOT cannot be used in _start because the GOT entries are
offsets instead of real addresses before __libc_start_main.
__libc_start_main and/or main may be not local, so we rely on the linker to
produce PLT entries for them. GNU ld >= 2.40 supports this. */
# define LA la.pcrel
#else
/* Old GNU ld (< 2.40) cannot handle PC relative address against a non-local
function correctly. We deem these old linkers failing to support static PIE
and load the addresses from GOT. */
# define LA la.got
#endif

LA a0, t0, main
REG_L a1, sp, 0
ADDI a2, sp, SZREG

/* Adjust $sp for 16-aligned */
BSTRINS sp, zero, 3, 0

move a3, zero /* used to be init */
move a4, zero /* used to be fini */
or a6, sp, zero /* stack_end */

LA ra, t0, __libc_start_main
jirl ra, ra, 0

LA ra, t0, abort
jirl ra, ra, 0
END (ENTRY_POINT)
12 changes: 11 additions & 1 deletion zig/lib/libc/include/aarch64-linux-musl/bits/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,11 @@
#define __NR_landlock_create_ruleset 444
#define __NR_landlock_add_rule 445
#define __NR_landlock_restrict_self 446
#define __NR_process_mrelease 448
#define __NR_futex_waitv 449
#define __NR_set_mempolicy_home_node 450
#define __NR_cachestat 451
#define __NR_fchmodat2 452

#define SYS_io_setup 0
#define SYS_io_destroy 1
Expand Down Expand Up @@ -600,4 +605,9 @@
#define SYS_mount_setattr 442
#define SYS_landlock_create_ruleset 444
#define SYS_landlock_add_rule 445
#define SYS_landlock_restrict_self 446
#define SYS_landlock_restrict_self 446
#define SYS_process_mrelease 448
#define SYS_futex_waitv 449
#define SYS_set_mempolicy_home_node 450
#define SYS_cachestat 451
#define SYS_fchmodat2 452
16 changes: 16 additions & 0 deletions zig/lib/libc/include/arm-linux-musl/bits/float.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#define FLT_EVAL_METHOD 0

#define LDBL_TRUE_MIN 4.94065645841246544177e-324L
#define LDBL_MIN 2.22507385850720138309e-308L
#define LDBL_MAX 1.79769313486231570815e+308L
#define LDBL_EPSILON 2.22044604925031308085e-16L

#define LDBL_MANT_DIG 53
#define LDBL_MIN_EXP (-1021)
#define LDBL_MAX_EXP 1024

#define LDBL_DIG 15
#define LDBL_MIN_10_EXP (-307)
#define LDBL_MAX_10_EXP 308

#define DECIMAL_DIG 17
12 changes: 11 additions & 1 deletion zig/lib/libc/include/arm-linux-musl/bits/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,11 @@
#define __NR_landlock_create_ruleset 444
#define __NR_landlock_add_rule 445
#define __NR_landlock_restrict_self 446
#define __NR_process_mrelease 448
#define __NR_futex_waitv 449
#define __NR_set_mempolicy_home_node 450
#define __NR_cachestat 451
#define __NR_fchmodat2 452

#define __ARM_NR_breakpoint 0x0f0001
#define __ARM_NR_cacheflush 0x0f0002
Expand Down Expand Up @@ -807,4 +812,9 @@
#define SYS_mount_setattr 442
#define SYS_landlock_create_ruleset 444
#define SYS_landlock_add_rule 445
#define SYS_landlock_restrict_self 446
#define SYS_landlock_restrict_self 446
#define SYS_process_mrelease 448
#define SYS_futex_waitv 449
#define SYS_set_mempolicy_home_node 450
#define SYS_cachestat 451
#define SYS_fchmodat2 452
61 changes: 0 additions & 61 deletions zig/lib/libc/include/csky-linux-gnueabi/bits/struct_rwlock.h

This file was deleted.

61 changes: 0 additions & 61 deletions zig/lib/libc/include/csky-linux-gnueabihf/bits/struct_rwlock.h

This file was deleted.

Loading