Lines Matching refs:GET_SMSTATE
2456 selector = GET_SMSTATE(u32, smstate, 0x7fa8 + n * 4); in rsm_load_seg_32()
2463 set_desc_base(&desc, GET_SMSTATE(u32, smstate, offset + 8)); in rsm_load_seg_32()
2464 set_desc_limit(&desc, GET_SMSTATE(u32, smstate, offset + 4)); in rsm_load_seg_32()
2465 rsm_set_desc_flags(&desc, GET_SMSTATE(u32, smstate, offset)); in rsm_load_seg_32()
2481 selector = GET_SMSTATE(u16, smstate, offset); in rsm_load_seg_64()
2482 rsm_set_desc_flags(&desc, GET_SMSTATE(u16, smstate, offset + 2) << 8); in rsm_load_seg_64()
2483 set_desc_limit(&desc, GET_SMSTATE(u32, smstate, offset + 4)); in rsm_load_seg_64()
2484 set_desc_base(&desc, GET_SMSTATE(u32, smstate, offset + 8)); in rsm_load_seg_64()
2485 base3 = GET_SMSTATE(u32, smstate, offset + 12); in rsm_load_seg_64()
2546 cr0 = GET_SMSTATE(u32, smstate, 0x7ffc); in rsm_load_state_32()
2547 cr3 = GET_SMSTATE(u32, smstate, 0x7ff8); in rsm_load_state_32()
2548 ctxt->eflags = GET_SMSTATE(u32, smstate, 0x7ff4) | X86_EFLAGS_FIXED; in rsm_load_state_32()
2549 ctxt->_eip = GET_SMSTATE(u32, smstate, 0x7ff0); in rsm_load_state_32()
2552 *reg_write(ctxt, i) = GET_SMSTATE(u32, smstate, 0x7fd0 + i * 4); in rsm_load_state_32()
2554 val = GET_SMSTATE(u32, smstate, 0x7fcc); in rsm_load_state_32()
2559 val = GET_SMSTATE(u32, smstate, 0x7fc8); in rsm_load_state_32()
2564 selector = GET_SMSTATE(u32, smstate, 0x7fc4); in rsm_load_state_32()
2565 set_desc_base(&desc, GET_SMSTATE(u32, smstate, 0x7f64)); in rsm_load_state_32()
2566 set_desc_limit(&desc, GET_SMSTATE(u32, smstate, 0x7f60)); in rsm_load_state_32()
2567 rsm_set_desc_flags(&desc, GET_SMSTATE(u32, smstate, 0x7f5c)); in rsm_load_state_32()
2570 selector = GET_SMSTATE(u32, smstate, 0x7fc0); in rsm_load_state_32()
2571 set_desc_base(&desc, GET_SMSTATE(u32, smstate, 0x7f80)); in rsm_load_state_32()
2572 set_desc_limit(&desc, GET_SMSTATE(u32, smstate, 0x7f7c)); in rsm_load_state_32()
2573 rsm_set_desc_flags(&desc, GET_SMSTATE(u32, smstate, 0x7f78)); in rsm_load_state_32()
2576 dt.address = GET_SMSTATE(u32, smstate, 0x7f74); in rsm_load_state_32()
2577 dt.size = GET_SMSTATE(u32, smstate, 0x7f70); in rsm_load_state_32()
2580 dt.address = GET_SMSTATE(u32, smstate, 0x7f58); in rsm_load_state_32()
2581 dt.size = GET_SMSTATE(u32, smstate, 0x7f54); in rsm_load_state_32()
2590 cr4 = GET_SMSTATE(u32, smstate, 0x7f14); in rsm_load_state_32()
2592 ctxt->ops->set_smbase(ctxt, GET_SMSTATE(u32, smstate, 0x7ef8)); in rsm_load_state_32()
2609 *reg_write(ctxt, i) = GET_SMSTATE(u64, smstate, 0x7ff8 - i * 8); in rsm_load_state_64()
2611 ctxt->_eip = GET_SMSTATE(u64, smstate, 0x7f78); in rsm_load_state_64()
2612 ctxt->eflags = GET_SMSTATE(u32, smstate, 0x7f70) | X86_EFLAGS_FIXED; in rsm_load_state_64()
2614 val = GET_SMSTATE(u64, smstate, 0x7f68); in rsm_load_state_64()
2619 val = GET_SMSTATE(u64, smstate, 0x7f60); in rsm_load_state_64()
2624 cr0 = GET_SMSTATE(u64, smstate, 0x7f58); in rsm_load_state_64()
2625 cr3 = GET_SMSTATE(u64, smstate, 0x7f50); in rsm_load_state_64()
2626 cr4 = GET_SMSTATE(u64, smstate, 0x7f48); in rsm_load_state_64()
2627 ctxt->ops->set_smbase(ctxt, GET_SMSTATE(u32, smstate, 0x7f00)); in rsm_load_state_64()
2628 val = GET_SMSTATE(u64, smstate, 0x7ed0); in rsm_load_state_64()
2633 selector = GET_SMSTATE(u32, smstate, 0x7e90); in rsm_load_state_64()
2634 rsm_set_desc_flags(&desc, GET_SMSTATE(u32, smstate, 0x7e92) << 8); in rsm_load_state_64()
2635 set_desc_limit(&desc, GET_SMSTATE(u32, smstate, 0x7e94)); in rsm_load_state_64()
2636 set_desc_base(&desc, GET_SMSTATE(u32, smstate, 0x7e98)); in rsm_load_state_64()
2637 base3 = GET_SMSTATE(u32, smstate, 0x7e9c); in rsm_load_state_64()
2640 dt.size = GET_SMSTATE(u32, smstate, 0x7e84); in rsm_load_state_64()
2641 dt.address = GET_SMSTATE(u64, smstate, 0x7e88); in rsm_load_state_64()
2644 selector = GET_SMSTATE(u32, smstate, 0x7e70); in rsm_load_state_64()
2645 rsm_set_desc_flags(&desc, GET_SMSTATE(u32, smstate, 0x7e72) << 8); in rsm_load_state_64()
2646 set_desc_limit(&desc, GET_SMSTATE(u32, smstate, 0x7e74)); in rsm_load_state_64()
2647 set_desc_base(&desc, GET_SMSTATE(u32, smstate, 0x7e78)); in rsm_load_state_64()
2648 base3 = GET_SMSTATE(u32, smstate, 0x7e7c); in rsm_load_state_64()
2651 dt.size = GET_SMSTATE(u32, smstate, 0x7e64); in rsm_load_state_64()
2652 dt.address = GET_SMSTATE(u64, smstate, 0x7e68); in rsm_load_state_64()