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

Dev 2.5.0 #4

Open
wants to merge 2 commits into
base: la64/2.5.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 11 additions & 1 deletion src/arch-syscall-validate
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,10 @@ function dump_sys_loongarch64() {
sed_filter+='s/__NR3264_truncate/45/;'

gcc -E -dM -I$1/include/uapi \
-D__BITS_PER_LONG=64 -D__ARCH_WANT_RENAMEAT \
-D__BITS_PER_LONG=64 \
-D__ARCH_WANT_NEW_STAT \
-D__ARCH_WANT_SYS_CLONE \
-D__ARCH_WANT_SYS_CLONE3 \
$1/arch/loongarch/include/uapi/asm/unistd.h | \
grep "^#define __NR_" | \
sed '/__NR_syscalls/d' | \
Expand Down Expand Up @@ -638,6 +640,9 @@ function dump_sys() {
aarch64)
dump_sys_aarch64 "$2"
;;
loongarch64)
dump_sys_loongarch64 "$2"
;;
mips)
dump_sys_mips "$2"
;;
Expand Down Expand Up @@ -702,6 +707,9 @@ function dump_lib() {
aarch64)
dump_lib_aarch64
;;
loongarch64)
dump_lib_loongarch64
;;
mips)
dump_lib_mips
;;
Expand Down Expand Up @@ -762,6 +770,7 @@ function gen_csv() {
abi_list=""
abi_list+=" x86 x86_64 x32"
abi_list+=" arm aarch64"
abi_list+=" loongarch64"
abi_list+=" mips mips64 mips64n32"
abi_list+=" parisc parisc64"
abi_list+=" ppc ppc64"
Expand Down Expand Up @@ -851,6 +860,7 @@ if [[ $opt_arches == "" ]]; then
opt_arches=" \
x86 x86_64 x32 \
arm aarch64 \
loongarch64 \
mips mips64 mips64n32 \
parisc parisc64 \
ppc ppc64 \
Expand Down
6 changes: 6 additions & 0 deletions tests/16-sim-arch_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ int main(int argc, char *argv[])
if (rc != 0)
goto out;
rc = seccomp_arch_add(ctx, SCMP_ARCH_AARCH64);
if (rc != 0)
goto out;
rc = seccomp_arch_add(ctx, SCMP_ARCH_LOONGARCH64);
if (rc != 0)
goto out;
rc = seccomp_arch_add(ctx, SCMP_ARCH_MIPSEL);
Expand Down Expand Up @@ -145,6 +148,9 @@ int main(int argc, char *argv[])
if (rc != 0)
goto out;
rc = seccomp_arch_remove(ctx, SCMP_ARCH_AARCH64);
if (rc != 0)
goto out;
rc = seccomp_arch_remove(ctx, SCMP_ARCH_LOONGARCH64);
if (rc != 0)
goto out;
rc = seccomp_arch_remove(ctx, SCMP_ARCH_MIPSEL);
Expand Down