Skip to content
This repository was archived by the owner on Jan 20, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions pkg/platform/architecture_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ type systeminfo struct {

// Constants
const (
ProcessorArchitecture64 = 9 // PROCESSOR_ARCHITECTURE_AMD64
ProcessorArchitectureIA64 = 6 // PROCESSOR_ARCHITECTURE_IA64
ProcessorArchitecture32 = 0 // PROCESSOR_ARCHITECTURE_INTEL
ProcessorArchitectureArm = 5 // PROCESSOR_ARCHITECTURE_ARM
ProcessorArchitecture64 = 9 // PROCESSOR_ARCHITECTURE_AMD64
ProcessorArchitectureIA64 = 6 // PROCESSOR_ARCHITECTURE_IA64
ProcessorArchitecture32 = 0 // PROCESSOR_ARCHITECTURE_INTEL
ProcessorArchitectureArm = 5 // PROCESSOR_ARCHITECTURE_ARM
ProcessorArchitectureArm64 = 12 // PROCESSOR_ARCHITECTURE_ARM64
)

// runtimeArchitecture gets the name of the current architecture (x86, x86_64, …)
Expand All @@ -47,6 +48,8 @@ func runtimeArchitecture() (string, error) {
return "i686", nil
case ProcessorArchitectureArm:
return "arm", nil
case ProcessorArchitectureArm64:
return "arm64", nil
default:
return "", fmt.Errorf("Unknown processor architecture")
}
Expand Down
15 changes: 15 additions & 0 deletions vendor/golang.org/x/sys/windows/asm_windows_arm64.s

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions vendor/golang.org/x/sys/windows/svc/sys_arm64.s

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions vendor/golang.org/x/sys/windows/types_windows_arm64.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.