mirror of
https://github.com/andersrh/copr-andersrh.git
synced 2026-05-17 13:58:01 +00:00
27 lines
948 B
Diff
27 lines
948 B
Diff
From c9043a422fb4a5a6c72aaa1b907cea5f6a3061dd Mon Sep 17 00:00:00 2001
|
|
From: Shawn Anastasio <shawnanastasio@yahoo.com>
|
|
Date: Thu, 9 Aug 2018 19:10:24 -0500
|
|
Subject: [PATCH 1/4] sandbox/linux/bpf_dsl: Update syscall ranges for ppc64
|
|
|
|
---
|
|
sandbox/linux/bpf_dsl/linux_syscall_ranges.h | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
Index: chromium-137.0.7151.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
|
|
===================================================================
|
|
--- chromium-137.0.7151.40.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
|
|
+++ chromium-137.0.7151.40/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
|
|
@@ -56,6 +56,13 @@
|
|
#define MAX_PUBLIC_SYSCALL __NR_syscalls
|
|
#define MAX_SYSCALL MAX_PUBLIC_SYSCALL
|
|
|
|
+#elif defined(__powerpc64__)
|
|
+
|
|
+#include <asm-generic/unistd.h>
|
|
+#define MIN_SYSCALL 0u
|
|
+#define MAX_PUBLIC_SYSCALL __NR_syscalls
|
|
+#define MAX_SYSCALL MAX_PUBLIC_SYSCALL
|
|
+
|
|
#else
|
|
#error "Unsupported architecture"
|
|
#endif
|