os_windows_amd64.go 447 B

123456789101112
  1. // Copyright 2014 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package runtime
  5. // contextPC returns the RIP (program counter) register from the context.
  6. func contextPC(r *context) uintptr { return uintptr(r.rip) }
  7. // contextSP returns the RSP (stack pointer) register from the context.
  8. func contextSP(r *context) uintptr { return uintptr(r.rsp) }