diff options
author | Andrei Vagin <avagin@gmail.com> | 2020-02-21 11:00:11 -0800 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2020-02-28 17:07:01 -0800 |
commit | 413a9b7fdc14f8bff660e1988e3ef0355dd4e6c6 (patch) | |
tree | f712e6fa39aff587773182bdf6dda19a24c2caa5 /pkg/sentry/arch | |
parent | ce4d1e45bb8822a1677c90c33fe211467febc1b6 (diff) |
Define CPUIDInstruction for arm64
There is no cpuid instruction on arm64, so we need to defined it
just to avoid a compile time error.
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Diffstat (limited to 'pkg/sentry/arch')
-rw-r--r-- | pkg/sentry/arch/arch_arm64.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/arch/arch_arm64.go b/pkg/sentry/arch/arch_arm64.go index 372b650b9..885115ae2 100644 --- a/pkg/sentry/arch/arch_arm64.go +++ b/pkg/sentry/arch/arch_arm64.go @@ -53,6 +53,11 @@ const ( preferredPIELoadAddr usermem.Addr = maxAddr64 / 6 * 5 ) +var ( + // CPUIDInstruction doesn't exist on ARM64. + CPUIDInstruction = []byte{} +) + // These constants are selected as heuristics to help make the Platform's // potentially limited address space conform as closely to Linux as possible. const ( |