summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/arch
diff options
context:
space:
mode:
authorBin Lu <bin.lu@arm.com>2019-07-18 23:30:52 -0700
committerBin Lu <bin.lu@arm.com>2019-07-21 19:30:18 -0700
commitffe45f38e6f379c1c6986348f361914202603978 (patch)
tree76c29eb400265b81f376c3934ed67e03efb23f42 /pkg/sentry/arch
parenteefa817cfdb04ff07e7069396f21bd6ba2c89957 (diff)
Add ARM64 support to pkg/sentry/loader
Signed-off-by: Bin Lu <bin.lu@arm.com>
Diffstat (limited to 'pkg/sentry/arch')
-rw-r--r--pkg/sentry/arch/arch.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/sentry/arch/arch.go b/pkg/sentry/arch/arch.go
index ace7d5b18..498ca4669 100644
--- a/pkg/sentry/arch/arch.go
+++ b/pkg/sentry/arch/arch.go
@@ -33,6 +33,8 @@ type Arch int
const (
// AMD64 is the x86-64 architecture.
AMD64 Arch = iota
+ // ARM64 is the aarch64 architecture.
+ ARM64
)
// String implements fmt.Stringer.
@@ -40,6 +42,8 @@ func (a Arch) String() string {
switch a {
case AMD64:
return "amd64"
+ case ARM64:
+ return "arm64"
default:
return fmt.Sprintf("Arch(%d)", a)
}