aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/runtime/arch_arm64.go
blob: 373be8840a512767bfef2f6ce7de698195022614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package runtime

const GOARCH = "arm64"

// The bitness of the CPU (e.g. 8, 32, 64).
const TargetBits = 64

const deferExtraRegs = 0

// Align on word boundary.
func align(ptr uintptr) uintptr {
	return (ptr + 7) &^ 7
}

func getCurrentStackPointer() uintptr {
	return uintptr(stacksave())
}