This commit is contained in:
LLONSIT 2025-01-22 21:05:00 -05:00 committed by GitHub
commit 0a193dafde
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

2
dtc

@ -1 +1 @@
Subproject commit e54388015af1fb4bf04d0bca99caba1074d9cc42 Subproject commit 2cdf93a6d402a161edf16de6011bd5ad76382e92

View File

@ -267,6 +267,7 @@
/* syssgi(sysconf, cmd, ...) */ /* syssgi(sysconf, cmd, ...) */
#define TARGET_NR_sysconf_argmax (1)
#define TARGET_NR_sysconf_childmax (2) #define TARGET_NR_sysconf_childmax (2)
#define TARGET_NR_sysconf_clktick (3) #define TARGET_NR_sysconf_clktick (3)
#define TARGET_NR_sysconf_openmax (5) #define TARGET_NR_sysconf_openmax (5)

View File

@ -14520,6 +14520,9 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
case TARGET_NR_sysconf_mac: case TARGET_NR_sysconf_mac:
ret = 0; ret = 0;
break; break;
case TARGET_NR_sysconf_argmax:
ret = get_errno(sysconf(_SC_ARG_MAX));
break;
default: default:
gemu_log("qemu: Unsupported syscall: sysconf(%d)\n", (int)arg2); gemu_log("qemu: Unsupported syscall: sysconf(%d)\n", (int)arg2);
ret = -TARGET_ENOSYS; ret = -TARGET_ENOSYS;