From 38ef9ee346eae3b9bb1d667390fcacc2a89d2db3 Mon Sep 17 00:00:00 2001 From: Adam Conrad Date: Fri, 10 Apr 2015 12:48:48 -0600 Subject: [PATCH] Add support for ARMv8 (AKA: arm64 or Aarch64) Signed-off-by: Adam Conrad --- system/setns_linux.go | 1 + system/syscall_linux_64.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/system/setns_linux.go b/system/setns_linux.go index 228e6ccd7..beffd8dd8 100644 --- a/system/setns_linux.go +++ b/system/setns_linux.go @@ -12,6 +12,7 @@ import ( // We are declaring the macro here because the SETNS syscall does not exist in th stdlib var setNsMap = map[string]uintptr{ "linux/386": 346, + "linux/arm64": 268, "linux/amd64": 308, "linux/arm": 374, "linux/ppc64": 350, diff --git a/system/syscall_linux_64.go b/system/syscall_linux_64.go index 6840c3770..5e28a3f4c 100644 --- a/system/syscall_linux_64.go +++ b/system/syscall_linux_64.go @@ -1,4 +1,4 @@ -// +build linux,amd64 linux,ppc64 linux,ppc64le linux,s390x +// +build linux,arm64 linux,amd64 linux,ppc64 linux,ppc64le linux,s390x package system