Lines Matching refs:saved_state
143 x86_saved_state32_t *saved_state;
145 saved_state = (x86_saved_state32_t *)kdp.saved_state;
148 state->eax = saved_state->eax;
149 state->ebx = saved_state->ebx;
150 state->ecx = saved_state->ecx;
151 state->edx = saved_state->edx;
152 state->edi = saved_state->edi;
153 state->esi = saved_state->esi;
154 state->ebp = saved_state->ebp;
156 if ((saved_state->cs & SEL_PL) == SEL_PL_K) { /* Kernel state? */
158 state->esp = (uint32_t) saved_state->uesp;
160 state->esp = ((uint32_t)saved_state) + offsetof(x86_saved_state_t, ss_32) + sizeof(x86_saved_state32_t);
163 state->esp = saved_state->uesp;
164 state->ss = saved_state->ss;
167 state->eflags = saved_state->efl;
168 state->eip = saved_state->eip;
169 state->cs = saved_state->cs;
170 state->ds = saved_state->ds;
171 state->es = saved_state->es;
172 state->fs = saved_state->fs;
173 state->gs = saved_state->gs;
182 x86_saved_state32_t *saved_state;
184 saved_state = (x86_saved_state32_t *)kdp.saved_state;
186 saved_state->eax = state->eax;
187 saved_state->ebx = state->ebx;
188 saved_state->ecx = state->ecx;
189 saved_state->edx = state->edx;
190 saved_state->edi = state->edi;
191 saved_state->esi = state->esi;
192 saved_state->ebp = state->ebp;
193 saved_state->efl = state->eflags;
195 saved_state->frame.eflags &= ~( EFL_VM | EFL_NT | EFL_IOPL | EFL_CLR );
196 saved_state->frame.eflags |= ( EFL_IF | EFL_SET );
198 saved_state->eip = state->eip;
331 x86_saved_state32_t *saved_state;
333 saved_state = state;
335 kprintf("pc = 0x%x\n", saved_state->eip);
336 kprintf("cr2= 0x%x\n", saved_state->cr2);
338 kprintf("sp = %p\n", saved_state);
387 x86_saved_state32_t *saved_state,
397 trapno, saved_state->eip, saved_state->cr2);
405 if (saved_state->efl & EFL_TF) {
434 subcode = saved_state->err;
440 subcode = saved_state->err;
446 subcode = saved_state->err;
472 kdp_raise_exception(exception, code, subcode, saved_state);
475 if (saved_state->efl & EFL_TF) {