Lines Matching full:mc

12 void get_regs_from_mc(struct uml_pt_regs *regs, mcontext_t *mc)  in get_regs_from_mc()  argument
15 #define COPY2(X,Y) regs->gp[X] = mc->gregs[REG_##Y] in get_regs_from_mc()
16 #define COPY(X) regs->gp[X] = mc->gregs[REG_##X] in get_regs_from_mc()
17 #define COPY_SEG(X) regs->gp[X] = mc->gregs[REG_##X] & 0xffff; in get_regs_from_mc()
18 #define COPY_SEG_CPL3(X) regs->gp[X] = (mc->gregs[REG_##X] & 0xffff) | 3; in get_regs_from_mc()
29 #define COPY2(X,Y) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##Y] in get_regs_from_mc()
30 #define COPY(X) regs->gp[X/sizeof(unsigned long)] = mc->gregs[REG_##X] in get_regs_from_mc()
38 regs->gp[SS / sizeof(unsigned long)] = mc->gregs[REG_CSGSFS] >> 48; in get_regs_from_mc()
46 mcontext_t *mc = _mc; in mc_set_rip() local
49 mc->gregs[REG_EIP] = (unsigned long)target; in mc_set_rip()
51 mc->gregs[REG_RIP] = (unsigned long)target; in mc_set_rip()
56 void get_mc_from_regs(struct uml_pt_regs *regs, mcontext_t *mc, int single_stepping) in get_mc_from_regs() argument
59 #define COPY2(X,Y) mc->gregs[REG_##Y] = regs->gp[X] in get_mc_from_regs()
60 #define COPY(X) mc->gregs[REG_##X] = regs->gp[X] in get_mc_from_regs()
61 #define COPY_SEG(X) mc->gregs[REG_##X] = regs->gp[X] & 0xffff; in get_mc_from_regs()
62 #define COPY_SEG_CPL3(X) mc->gregs[REG_##X] = (regs->gp[X] & 0xffff) | 3; in get_mc_from_regs()
69 #define COPY2(X,Y) mc->gregs[REG_##Y] = regs->gp[X/sizeof(unsigned long)] in get_mc_from_regs()
70 #define COPY(X) mc->gregs[REG_##X] = regs->gp[X/sizeof(unsigned long)] in get_mc_from_regs()
77 mc->gregs[REG_CSGSFS] = mc->gregs[REG_CSGSFS] & 0xffffffffffffl; in get_mc_from_regs()
78 mc->gregs[REG_CSGSFS] |= (regs->gp[SS / sizeof(unsigned long)] & 0xffff) << 48; in get_mc_from_regs()
82 mc->gregs[REG_EFL] |= X86_EFLAGS_TF; in get_mc_from_regs()
84 mc->gregs[REG_EFL] &= ~X86_EFLAGS_TF; in get_mc_from_regs()