os_windows_386.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 EIP (program counter) register from the context.
  6. func contextPC(r *context) uintptr { return uintptr(r.eip) }
  7. // contextSP returns the ESP (stack pointer) register from the context.
  8. func contextSP(r *context) uintptr { return uintptr(r.esp) }