28 lines
934 B
Diff
28 lines
934 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-128.0.6613.113/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
|
|
===================================================================
|
|
--- chromium-128.0.6613.113.orig/sandbox/linux/bpf_dsl/linux_syscall_ranges.h
|
|
+++ chromium-128.0.6613.113/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/unistd.h>
|
|
+#define MIN_SYSCALL 0u
|
|
+#define MAX_PUBLIC_SYSCALL 386u
|
|
+#define MAX_SYSCALL MAX_PUBLIC_SYSCALL
|
|
+
|
|
#else
|
|
#error "Unsupported architecture"
|
|
#endif
|