mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Move Arch specific code to arch specific files.
PiperOrigin-RevId: 362297474
This commit is contained in:
committed by
gVisor bot
parent
a44dc15bdc
commit
1020ac83f4
@@ -50,3 +50,14 @@ type PtraceRegs struct {
|
||||
Fs uint64
|
||||
Gs uint64
|
||||
}
|
||||
|
||||
// InstructionPointer returns the address of the next instruction to
|
||||
// be executed.
|
||||
func (p *PtraceRegs) InstructionPointer() uint64 {
|
||||
return p.Rip
|
||||
}
|
||||
|
||||
// StackPointer returns the address of the Stack pointer.
|
||||
func (p *PtraceRegs) StackPointer() uint64 {
|
||||
return p.Rsp
|
||||
}
|
||||
|
||||
@@ -27,3 +27,14 @@ type PtraceRegs struct {
|
||||
Pc uint64
|
||||
Pstate uint64
|
||||
}
|
||||
|
||||
// InstructionPointer returns the address of the next instruction to be
|
||||
// executed.
|
||||
func (p *PtraceRegs) InstructionPointer() uint64 {
|
||||
return p.Pc
|
||||
}
|
||||
|
||||
// StackPointer returns the address of the Stack pointer.
|
||||
func (p *PtraceRegs) StackPointer() uint64 {
|
||||
return p.Sp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user