Lines Matching refs:saved_state
127 zone_t iss_zone; /* zone for saved_state area */
410 x86_debug_state32_t *saved_state;
412 saved_state = thread->machine.ids;
414 if (saved_state) {
415 copy_debug_state32(saved_state, ds, TRUE);
423 x86_debug_state64_t *saved_state;
425 saved_state = (x86_debug_state64_t *)thread->machine.ids;
427 if (saved_state) {
428 copy_debug_state64(saved_state, ds, TRUE);
592 x86_saved_state64_t *saved_state;
594 saved_state = USER_REGS64(thread);
596 es->trapno = saved_state->isf.trapno;
597 es->cpu = saved_state->isf.cpu;
598 es->err = (typeof(es->err))saved_state->isf.err;
599 es->faultvaddr = saved_state->cr2;
605 x86_saved_state32_t *saved_state;
607 saved_state = USER_REGS32(thread);
609 es->trapno = saved_state->trapno;
610 es->cpu = saved_state->cpu;
611 es->err = saved_state->err;
612 es->faultvaddr = saved_state->cr2;
619 x86_saved_state32_t *saved_state;
623 saved_state = USER_REGS32(thread);
654 saved_state->eax = ts->eax;
655 saved_state->ebx = ts->ebx;
656 saved_state->ecx = ts->ecx;
657 saved_state->edx = ts->edx;
658 saved_state->edi = ts->edi;
659 saved_state->esi = ts->esi;
660 saved_state->ebp = ts->ebp;
661 saved_state->uesp = ts->esp;
662 saved_state->efl = (ts->eflags & ~EFL_USER_CLEAR) | EFL_USER_SET;
663 saved_state->eip = ts->eip;
664 saved_state->cs = ts->cs;
665 saved_state->ss = ts->ss;
666 saved_state->ds = ts->ds;
667 saved_state->es = ts->es;
668 saved_state->fs = ts->fs;
669 saved_state->gs = ts->gs;
676 if ((saved_state->efl & EFL_TF) && saved_state->cs == SYSENTER_CS)
677 saved_state->cs = SYSENTER_TF_CS;
685 x86_saved_state64_t *saved_state;
689 saved_state = USER_REGS64(thread);
695 saved_state->r8 = ts->r8;
696 saved_state->r9 = ts->r9;
697 saved_state->r10 = ts->r10;
698 saved_state->r11 = ts->r11;
699 saved_state->r12 = ts->r12;
700 saved_state->r13 = ts->r13;
701 saved_state->r14 = ts->r14;
702 saved_state->r15 = ts->r15;
703 saved_state->rax = ts->rax;
704 saved_state->rbx = ts->rbx;
705 saved_state->rcx = ts->rcx;
706 saved_state->rdx = ts->rdx;
707 saved_state->rdi = ts->rdi;
708 saved_state->rsi = ts->rsi;
709 saved_state->rbp = ts->rbp;
710 saved_state->isf.rsp = ts->rsp;
711 saved_state->isf.rflags = (ts->rflags & ~EFL_USER_CLEAR) | EFL_USER_SET;
712 saved_state->isf.rip = ts->rip;
713 saved_state->isf.cs = USER64_CS;
714 saved_state->fs = (uint32_t)ts->fs;
715 saved_state->gs = (uint32_t)ts->gs;
725 x86_saved_state32_t *saved_state;
729 saved_state = USER_REGS32(thread);
731 ts->eax = saved_state->eax;
732 ts->ebx = saved_state->ebx;
733 ts->ecx = saved_state->ecx;
734 ts->edx = saved_state->edx;
735 ts->edi = saved_state->edi;
736 ts->esi = saved_state->esi;
737 ts->ebp = saved_state->ebp;
738 ts->esp = saved_state->uesp;
739 ts->eflags = saved_state->efl;
740 ts->eip = saved_state->eip;
741 ts->cs = saved_state->cs;
742 ts->ss = saved_state->ss;
743 ts->ds = saved_state->ds;
744 ts->es = saved_state->es;
745 ts->fs = saved_state->fs;
746 ts->gs = saved_state->gs;
753 x86_saved_state64_t *saved_state;
757 saved_state = USER_REGS64(thread);
759 ts->r8 = saved_state->r8;
760 ts->r9 = saved_state->r9;
761 ts->r10 = saved_state->r10;
762 ts->r11 = saved_state->r11;
763 ts->r12 = saved_state->r12;
764 ts->r13 = saved_state->r13;
765 ts->r14 = saved_state->r14;
766 ts->r15 = saved_state->r15;
767 ts->rax = saved_state->rax;
768 ts->rbx = saved_state->rbx;
769 ts->rcx = saved_state->rcx;
770 ts->rdx = saved_state->rdx;
771 ts->rdi = saved_state->rdi;
772 ts->rsi = saved_state->rsi;
773 ts->rbp = saved_state->rbp;
774 ts->rsp = saved_state->isf.rsp;
775 ts->rflags = saved_state->isf.rflags;
776 ts->rip = saved_state->isf.rip;
777 ts->cs = saved_state->isf.cs;
778 ts->fs = saved_state->fs;
779 ts->gs = saved_state->gs;
800 x86_saved_state32_t *saved_state;
821 saved_state = USER_REGS32(thr_act);
826 saved_state->edi = state->edi;
827 saved_state->esi = state->esi;
828 saved_state->ebp = state->ebp;
829 saved_state->uesp = state->uesp;
830 saved_state->ebx = state->ebx;
831 saved_state->edx = state->edx;
832 saved_state->ecx = state->ecx;
833 saved_state->eax = state->eax;
834 saved_state->eip = state->eip;
836 saved_state->efl = (state->efl & ~EFL_USER_CLEAR) | EFL_USER_SET;
843 if ((saved_state->efl & EFL_TF) && state->cs == SYSENTER_CS)
852 saved_state->cs = state->cs;
853 saved_state->ss = state->ss;
854 saved_state->ds = state->ds;
855 saved_state->es = state->es;
856 saved_state->fs = state->fs;
857 saved_state->gs = state->gs;
865 x86_saved_state64_t *saved_state;
892 saved_state = USER_REGS64(thr_act);
897 saved_state->r8 = state->r8;
898 saved_state->r9 = state->r9;
899 saved_state->r10 = state->r10;
900 saved_state->r11 = state->r11;
901 saved_state->r12 = state->r12;
902 saved_state->r13 = state->r13;
903 saved_state->r14 = state->r14;
904 saved_state->r15 = state->r15;
905 saved_state->rdi = state->rdi;
906 saved_state->rsi = state->rsi;
907 saved_state->rbp = state->rbp;
908 saved_state->rbx = state->rbx;
909 saved_state->rdx = state->rdx;
910 saved_state->rcx = state->rcx;
911 saved_state->rax = state->rax;
912 saved_state->isf.rsp = state->isf.rsp;
913 saved_state->isf.rip = state->isf.rip;
915 saved_state->isf.rflags = (state->isf.rflags & ~EFL_USER_CLEAR) | EFL_USER_SET;
923 saved_state->isf.cs = state->isf.cs;
924 saved_state->isf.ss = state->isf.ss;
925 saved_state->fs = state->fs;
926 saved_state->gs = state->gs;
1183 x86_saved_state32_t *saved_state;
1192 saved_state = USER_REGS32(thr_act);
1197 *state = *saved_state;
1198 state->ds = saved_state->ds & 0xffff;
1199 state->es = saved_state->es & 0xffff;
1200 state->fs = saved_state->fs & 0xffff;
1201 state->gs = saved_state->gs & 0xffff;
1210 x86_saved_state64_t *saved_state;
1219 saved_state = USER_REGS64(thr_act);
1224 *state = *saved_state;
1225 state->fs = saved_state->fs & 0xffff;
1226 state->gs = saved_state->gs & 0xffff;
1541 x86_saved_state32_t *saved_state;
1549 saved_state = saved_state32(int_state);
1553 state->eax = saved_state->eax;
1554 state->ebx = saved_state->ebx;
1555 state->ecx = saved_state->ecx;
1556 state->edx = saved_state->edx;
1557 state->edi = saved_state->edi;
1558 state->esi = saved_state->esi;
1559 state->ebp = saved_state->ebp;
1560 state->esp = saved_state->uesp;
1561 state->eflags = saved_state->efl;
1562 state->eip = saved_state->eip;
1563 state->cs = saved_state->cs;
1564 state->ss = saved_state->ss;
1565 state->ds = saved_state->ds & 0xffff;
1566 state->es = saved_state->es & 0xffff;
1567 state->fs = saved_state->fs & 0xffff;
1568 state->gs = saved_state->gs & 0xffff;
1577 x86_saved_state64_t *saved_state;
1585 saved_state = saved_state64(int_state);
1589 state->rax = saved_state->rax;
1590 state->rbx = saved_state->rbx;
1591 state->rcx = saved_state->rcx;
1592 state->rdx = saved_state->rdx;
1593 state->rdi = saved_state->rdi;
1594 state->rsi = saved_state->rsi;
1595 state->rbp = saved_state->rbp;
1596 state->rsp = saved_state->isf.rsp;
1597 state->r8 = saved_state->r8;
1598 state->r9 = saved_state->r9;
1599 state->r10 = saved_state->r10;
1600 state->r11 = saved_state->r11;
1601 state->r12 = saved_state->r12;
1602 state->r13 = saved_state->r13;
1603 state->r14 = saved_state->r14;
1604 state->r15 = saved_state->r15;
1606 state->rip = saved_state->isf.rip;
1607 state->rflags = saved_state->isf.rflags;
1608 state->cs = saved_state->isf.cs;
1609 state->fs = saved_state->fs & 0xffff;
1610 state->gs = saved_state->gs & 0xffff;
1625 x86_saved_state32_t *saved_state = saved_state32(int_state);
1633 state->uts.ts32.eax = saved_state->eax;
1634 state->uts.ts32.ebx = saved_state->ebx;
1635 state->uts.ts32.ecx = saved_state->ecx;
1636 state->uts.ts32.edx = saved_state->edx;
1637 state->uts.ts32.edi = saved_state->edi;
1638 state->uts.ts32.esi = saved_state->esi;
1639 state->uts.ts32.ebp = saved_state->ebp;
1640 state->uts.ts32.esp = saved_state->uesp;
1641 state->uts.ts32.eflags = saved_state->efl;
1642 state->uts.ts32.eip = saved_state->eip;
1643 state->uts.ts32.cs = saved_state->cs;
1644 state->uts.ts32.ss = saved_state->ss;
1645 state->uts.ts32.ds = saved_state->ds & 0xffff;
1646 state->uts.ts32.es = saved_state->es & 0xffff;
1647 state->uts.ts32.fs = saved_state->fs & 0xffff;
1648 state->uts.ts32.gs = saved_state->gs & 0xffff;
1650 x86_saved_state64_t *saved_state = saved_state64(int_state);
1658 state->uts.ts64.rax = saved_state->rax;
1659 state->uts.ts64.rbx = saved_state->rbx;
1660 state->uts.ts64.rcx = saved_state->rcx;
1661 state->uts.ts64.rdx = saved_state->rdx;
1662 state->uts.ts64.rdi = saved_state->rdi;
1663 state->uts.ts64.rsi = saved_state->rsi;
1664 state->uts.ts64.rbp = saved_state->rbp;
1665 state->uts.ts64.rsp = saved_state->isf.rsp;
1666 state->uts.ts64.r8 = saved_state->r8;
1667 state->uts.ts64.r9 = saved_state->r9;
1668 state->uts.ts64.r10 = saved_state->r10;
1669 state->uts.ts64.r11 = saved_state->r11;
1670 state->uts.ts64.r12 = saved_state->r12;
1671 state->uts.ts64.r13 = saved_state->r13;
1672 state->uts.ts64.r14 = saved_state->r14;
1673 state->uts.ts64.r15 = saved_state->r15;
1675 state->uts.ts64.rip = saved_state->isf.rip;
1676 state->uts.ts64.rflags = saved_state->isf.rflags;
1677 state->uts.ts64.cs = saved_state->isf.cs;
1678 state->uts.ts64.fs = saved_state->fs & 0xffff;
1679 state->uts.ts64.gs = saved_state->gs & 0xffff;