arch_arm64.mx raw

   1  package runtime
   2  
   3  const GOARCH = "arm64"
   4  
   5  // The bitness of the CPU (e.g. 8, 32, 64).
   6  const TargetBits = 64
   7  
   8  const deferExtraRegs = 0
   9  
  10  const callInstSize = 4 // "bl someFunction" is 4 bytes
  11  
  12  const (
  13  	linux_MAP_ANONYMOUS = 0x20
  14  	linux_SIGBUS        = 7
  15  	linux_SIGILL        = 4
  16  	linux_SIGSEGV       = 11
  17  )
  18  
  19  // Align on word boundary.
  20  func align(ptr uintptr) uintptr {
  21  	return (ptr + 15) &^ 15
  22  }
  23  
  24  func getCurrentStackPointer() uintptr {
  25  	return uintptr(stacksave())
  26  }
  27