MCPcopy Create free account
hub / github.com/F-Stack/f-stack / db_gs

Function db_gs

freebsd/i386/i386/db_trace.c:154–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static int
155db_gs(struct db_variable *vp, db_expr_t *valuep, int op)
156{
157 struct trapframe_vm86 *tfp;
158
159 if (kdb_frame != NULL && kdb_frame->tf_eflags & PSL_VM) {
160 tfp = (void *)kdb_frame;
161 if (op == DB_VAR_GET)
162 *valuep = tfp->tf_vm86_gs;
163 else
164 tfp->tf_vm86_gs = *valuep;
165 return (1);
166 }
167 if (op == DB_VAR_GET)
168 *valuep = rgs();
169 else
170 load_gs(*valuep);
171 return (1);
172}
173
174static int
175db_ss(struct db_variable *vp, db_expr_t *valuep, int op)

Callers

nothing calls this directly

Calls 2

rgsFunction · 0.50
load_gsFunction · 0.50

Tested by

no test coverage detected