Lines Matching refs:saved_state
142 x86_saved_state32_t *saved_state;
144 saved_state = (x86_saved_state32_t *)kdp.saved_state;
147 state->eax = saved_state->eax;
148 state->ebx = saved_state->ebx;
149 state->ecx = saved_state->ecx;
150 state->edx = saved_state->edx;
151 state->edi = saved_state->edi;
152 state->esi = saved_state->esi;
153 state->ebp = saved_state->ebp;
155 if ((saved_state->cs & SEL_PL) == SEL_PL_K) { /* Kernel state? */
157 state->esp = (uint32_t) saved_state->uesp;
159 state->esp = ((uint32_t)saved_state) + offsetof(x86_saved_state_t, ss_32) + sizeof(x86_saved_state32_t);
162 state->esp = saved_state->uesp;
163 state->ss = saved_state->ss;
166 state->eflags = saved_state->efl;
167 state->eip = saved_state->eip;
168 state->cs = saved_state->cs;
169 state->ds = saved_state->ds;
170 state->es = saved_state->es;
171 state->fs = saved_state->fs;
172 state->gs = saved_state->gs;
181 x86_saved_state32_t *saved_state;
183 saved_state = (x86_saved_state32_t *)kdp.saved_state;
185 saved_state->eax = state->eax;
186 saved_state->ebx = state->ebx;
187 saved_state->ecx = state->ecx;
188 saved_state->edx = state->edx;
189 saved_state->edi = state->edi;
190 saved_state->esi = state->esi;
191 saved_state->ebp = state->ebp;
192 saved_state->efl = state->eflags;
194 saved_state->frame.eflags &= ~( EFL_VM | EFL_NT | EFL_IOPL | EFL_CLR );
195 saved_state->frame.eflags |= ( EFL_IF | EFL_SET );
197 saved_state->eip = state->eip;
327 x86_saved_state32_t *saved_state;
329 saved_state = state;
331 kprintf("pc = 0x%x\n", saved_state->eip);
332 kprintf("cr2= 0x%x\n", saved_state->cr2);
334 kprintf("sp = %p\n", saved_state);
383 x86_saved_state32_t *saved_state,
393 trapno, saved_state->eip, saved_state->cr2);
401 if (saved_state->efl & EFL_TF) {
430 subcode = saved_state->err;
436 subcode = saved_state->err;
442 subcode = saved_state->err;
468 kdp_raise_exception(exception, code, subcode, saved_state);
471 if (saved_state->efl & EFL_TF) {