]> git.ipfire.org Git - thirdparty/linux.git/commit
tools/nolibc: handle 64-bit system call arguments on MIPS N32
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 18 Apr 2026 10:20:00 +0000 (12:20 +0200)
committerThomas Weißschuh <linux@weissschuh.net>
Mon, 27 Apr 2026 18:09:07 +0000 (20:09 +0200)
commit02937a241c811cd31e052a16c0ea036b5071d052
tree9a444f9a81744245238598acdc675d4042fafd2a
parent7070421c9f3324446805e9ab3883deb40ba47c10
tools/nolibc: handle 64-bit system call arguments on MIPS N32

The N32 system call ABI expects 64-bit values directly in registers.
This does not work on nolibc currently, as a 'long' is only 32 bits
wide. Switch the system call wrappers to use 'long long' instead which
can handle 64-bit values on N32. As on N64 'long' and 'long long' are
the same, this does not change the behavior there.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Link: https://patch.msgid.link/20260418-nolibc-largefile-v1-5-b91f0775bac3@weissschuh.net
tools/include/nolibc/arch-mips.h