1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
// automatically generated by stateify.
//go:build arm64
// +build arm64
package arch
import (
"gvisor.dev/gvisor/pkg/state"
)
func (r *Registers) StateTypeName() string {
return "pkg/sentry/arch.Registers"
}
func (r *Registers) StateFields() []string {
return []string{
"PtraceRegs",
"TPIDR_EL0",
}
}
func (r *Registers) beforeSave() {}
// +checklocksignore
func (r *Registers) StateSave(stateSinkObject state.Sink) {
r.beforeSave()
stateSinkObject.Save(0, &r.PtraceRegs)
stateSinkObject.Save(1, &r.TPIDR_EL0)
}
func (r *Registers) afterLoad() {}
// +checklocksignore
func (r *Registers) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &r.PtraceRegs)
stateSourceObject.Load(1, &r.TPIDR_EL0)
}
func (s *State) StateTypeName() string {
return "pkg/sentry/arch.State"
}
func (s *State) StateFields() []string {
return []string{
"Regs",
"fpState",
"FeatureSet",
"OrigR0",
}
}
func (s *State) beforeSave() {}
// +checklocksignore
func (s *State) StateSave(stateSinkObject state.Sink) {
s.beforeSave()
stateSinkObject.Save(0, &s.Regs)
stateSinkObject.Save(1, &s.fpState)
stateSinkObject.Save(2, &s.FeatureSet)
stateSinkObject.Save(3, &s.OrigR0)
}
func (s *State) afterLoad() {}
// +checklocksignore
func (s *State) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &s.Regs)
stateSourceObject.LoadWait(1, &s.fpState)
stateSourceObject.Load(2, &s.FeatureSet)
stateSourceObject.Load(3, &s.OrigR0)
}
func init() {
state.Register((*Registers)(nil))
state.Register((*State)(nil))
}
|