arch: Add parisc architecture support
authorHelge Deller <deller@gmx.de>
Wed, 25 May 2016 14:53:39 +0000 (16:53 +0200)
committerFelix Geyer <fgeyer@debian.org>
Sun, 10 Feb 2019 11:25:44 +0000 (11:25 +0000)
commitcc63be8322e933d8b14fbb67a383e00483af3660
treefc8161ba158b70761c4f3cb704ca0381a4a9072d
parentb1ad5d779ebf932e58652a3c9967df0e4a28212e
arch: Add parisc architecture support

This patch (v4) adds support for the parisc and parisc64 architectures
to libseccomp.

I didn't split up the patch, because it's pretty trivial.
Those parisc-specific files gets added:
 src/arch-parisc-syscalls.c
 src/arch-parisc.c
 src/arch-parisc.h
 src/arch-parisc64.c

All other changes are trivial because they simply add parisc-specific
case statements in variouse switch statements.

I did ran a "make check" on x86-64 and parisc and all testcases succeeded.
All live testcases succeed as well when running "./regression -T live".

The patch applies cleanly to current libseccomp git head.

Changes between v4 and v3 of this patch:
- Added parisc arch to arch-syscall-check.c and fixup syscall table as
  needed
- Fixed copyright notices in parisc files as suggested by Mike Frysinger

Changes between v3 and v2 of this patch:
- Stripped out patch which reports if a check was skipped because
  valgrind isn't installed.
- Added tuxcall pseudo syscall for 19-sim-missing_syscalls testcase
- Added sysmips pseudo syscall for 29-sim-pseudo_syscall testcase

Changes between v2 and v1 of this patch:
- Enabled seccomp mode 2 regression tests on parisc. Kernel support for
  hppa was added in kernel 4.6-rc1 and backported into the kernel v4.5.2
  stable series.

Signed-off-by: Helge Deller <deller@gmx.de>
[PM: corrected a number or errors from 'make check-syntax']
Signed-off-by: Paul Moore <paul@paul-moore.com>
Gbp-Pq: Name 28-parisc_support.patch
18 files changed:
include/seccomp.h.in
src/Makefile.am
src/arch-parisc-syscalls.c [new file with mode: 0644]
src/arch-parisc.c [new file with mode: 0644]
src/arch-parisc.h [new file with mode: 0644]
src/arch-parisc64.c [new file with mode: 0644]
src/arch-syscall-check.c
src/arch-syscall-dump.c
src/arch.c
src/gen_pfc.c
src/python/libseccomp.pxd
src/python/seccomp.pyx
tests/26-sim-arch_all_be_basic.c
tests/26-sim-arch_all_be_basic.py
tests/regression
tools/scmp_arch_detect.c
tools/scmp_bpf_sim.c
tools/util.c