Lines Matching refs:pt

79 #define AL(regs)	(((unsigned char *)&((regs)->pt.ax))[0])
80 #define AH(regs) (((unsigned char *)&((regs)->pt.ax))[1])
81 #define IP(regs) (*(unsigned short *)&((regs)->pt.ip))
82 #define SP(regs) (*(unsigned short *)&((regs)->pt.sp))
111 set_flags(regs->pt.flags, VEFLAGS, X86_EFLAGS_VIF | vm86->veflags_mask); in save_v86_state()
119 unsafe_put_user(regs->pt.bx, &user->regs.ebx, Efault_end); in save_v86_state()
120 unsafe_put_user(regs->pt.cx, &user->regs.ecx, Efault_end); in save_v86_state()
121 unsafe_put_user(regs->pt.dx, &user->regs.edx, Efault_end); in save_v86_state()
122 unsafe_put_user(regs->pt.si, &user->regs.esi, Efault_end); in save_v86_state()
123 unsafe_put_user(regs->pt.di, &user->regs.edi, Efault_end); in save_v86_state()
124 unsafe_put_user(regs->pt.bp, &user->regs.ebp, Efault_end); in save_v86_state()
125 unsafe_put_user(regs->pt.ax, &user->regs.eax, Efault_end); in save_v86_state()
126 unsafe_put_user(regs->pt.ip, &user->regs.eip, Efault_end); in save_v86_state()
127 unsafe_put_user(regs->pt.cs, &user->regs.cs, Efault_end); in save_v86_state()
128 unsafe_put_user(regs->pt.flags, &user->regs.eflags, Efault_end); in save_v86_state()
129 unsafe_put_user(regs->pt.sp, &user->regs.esp, Efault_end); in save_v86_state()
130 unsafe_put_user(regs->pt.ss, &user->regs.ss, Efault_end); in save_v86_state()
152 memcpy(&regs->pt, &vm86->regs32, sizeof(struct pt_regs)); in save_v86_state()
156 regs->pt.ax = retval; in save_v86_state()
257 vm86regs.pt.bx = v.regs.ebx; in do_sys_vm86()
258 vm86regs.pt.cx = v.regs.ecx; in do_sys_vm86()
259 vm86regs.pt.dx = v.regs.edx; in do_sys_vm86()
260 vm86regs.pt.si = v.regs.esi; in do_sys_vm86()
261 vm86regs.pt.di = v.regs.edi; in do_sys_vm86()
262 vm86regs.pt.bp = v.regs.ebp; in do_sys_vm86()
263 vm86regs.pt.ax = v.regs.eax; in do_sys_vm86()
264 vm86regs.pt.ip = v.regs.eip; in do_sys_vm86()
265 vm86regs.pt.cs = v.regs.cs; in do_sys_vm86()
266 vm86regs.pt.flags = v.regs.eflags; in do_sys_vm86()
267 vm86regs.pt.sp = v.regs.esp; in do_sys_vm86()
268 vm86regs.pt.ss = v.regs.ss; in do_sys_vm86()
302 VEFLAGS = vm86regs.pt.flags; in do_sys_vm86()
303 vm86regs.pt.flags &= SAFE_MASK; in do_sys_vm86()
304 vm86regs.pt.flags |= regs->flags & ~SAFE_MASK; in do_sys_vm86()
305 vm86regs.pt.flags |= X86_VM_MASK; in do_sys_vm86()
307 vm86regs.pt.orig_ax = regs->orig_ax; in do_sys_vm86()
358 regs->pt.flags &= ~X86_EFLAGS_TF; in clear_TF()
363 regs->pt.flags &= ~X86_EFLAGS_AC; in clear_AC()
381 set_flags(regs->pt.flags, flags, SAFE_MASK); in set_vflags_long()
391 set_flags(regs->pt.flags, flags, SAFE_MASK); in set_vflags_short()
400 unsigned long flags = regs->pt.flags & RETURN_MASK; in get_vflags()
502 if (regs->pt.cs == BIOSSEG) in do_int()
514 pushw(ssp, sp, regs->pt.cs, cannot_handle); in do_int()
516 regs->pt.cs = segoffs >> 16; in do_int()
537 do_int(regs, trapno, (unsigned char __user *) (regs->pt.ss << 4), SP(regs)); in handle_vm86_trap()
561 orig_flags = *(unsigned short *)&regs->pt.flags; in handle_vm86_fault()
563 csp = (unsigned char __user *) (regs->pt.cs << 4); in handle_vm86_fault()
564 ssp = (unsigned char __user *) (regs->pt.ss << 4); in handle_vm86_fault()
653 regs->pt.cs = newcs; in handle_vm86_fault()