diff options
author | Paul Moore <paul@paul-moore.com> | 2021-11-01 10:06:57 -0600 |
---|---|---|
committer | Tom Hromatka <tom.hromatka@oracle.com> | 2021-11-01 10:07:08 -0600 |
commit | 060a677ea5de077a7ae9f82b7142d388a1a336b6 (patch) | |
tree | 35b082b67217c62f7c80346daef4aadd9f0ff398 /src/arch-x32.c | |
parent | 68cc5bf3d85ddedbd9a43a44389c3593b517e6c5 (diff) | |
download | libseccomp-060a677ea5de077a7ae9f82b7142d388a1a336b6.tar.gz |
arch: move the ARCH_DEF() calls into the arch/ABI specific files
This should make it easier to ensure we have arch/ABIs added
properly to libseccomp.
Signed-off-by: Paul Moore <paul@paul-moore.com>
Reviewed-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Diffstat (limited to 'src/arch-x32.c')
-rw-r--r-- | src/arch-x32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/arch-x32.c b/src/arch-x32.c index 0a73923..cca6940 100644 --- a/src/arch-x32.c +++ b/src/arch-x32.c @@ -25,6 +25,7 @@ #include "arch.h" #include "arch-x32.h" +#include "syscalls.h" /** * Resolve a syscall name to a number @@ -68,6 +69,8 @@ const char *x32_syscall_resolve_num_munge(const struct arch_def *arch, return arch->syscall_resolve_num_raw(num); } +ARCH_DEF(x32) + const struct arch_def arch_def_x32 = { .token = SCMP_ARCH_X32, /* NOTE: this seems odd but the kernel treats x32 like x86_64 here */ |