Home
last modified time | relevance | path

Searched refs:SegCs (Results 1 – 25 of 55) sorted by relevance

123

/reactos/ntoskrnl/vdm/
H A Dvdmexec.c64 else if (TrapFrame->SegCs != (KGDT_R3_CODE | RPL_MASK)) in VdmSwapContext()
74 OutContext->SegCs = TrapFrame->SegCs; in VdmSwapContext()
94 TrapFrame->SegCs = InContext->SegCs; in VdmSwapContext()
121 TrapFrame->SegCs |= RPL_MASK; in VdmSwapContext()
125 if (TrapFrame->SegCs < KGDT_R0_CODE) in VdmSwapContext()
128 TrapFrame->SegCs = KGDT_R3_CODE | RPL_MASK; in VdmSwapContext()
236 if (!(VdmContext.SegCs & FRAME_EDITED)) in VdmpStartExecution()
262 (TrapFrame->SegCs != (KGDT_R3_CODE | RPL_MASK))); in VdmEndExecution()
274 if ((Context.EFlags & EFLAGS_V86_MASK) || (Context.SegCs & FRAME_EDITED)) in VdmEndExecution()
323 ((TrapFrame->SegCs & 0xFFFF) << 4)); in VdmDispatchBop()
/reactos/ntoskrnl/ke/amd64/
H A Dcontext.c91 if ((Context->SegCs & MODE_MASK) == KernelMode) in KeContextToTrapFrame()
94 TrapFrame->SegCs = KGDT64_R0_CODE; in KeContextToTrapFrame()
103 TrapFrame->SegCs = Context->SegCs; in KeContextToTrapFrame()
104 if (TrapFrame->SegCs != (KGDT64_R3_CODE | RPL_MASK)) in KeContextToTrapFrame()
106 TrapFrame->SegCs = (KGDT64_R3_CMCODE | RPL_MASK); in KeContextToTrapFrame()
121 if ((Context->SegCs & MODE_MASK) == KernelMode) in KeContextToTrapFrame()
150 if ((Context->SegCs & MODE_MASK) != KernelMode) in KeContextToTrapFrame()
238 if ((TrapFrame->SegCs & MODE_MASK) == KernelMode) in KeTrapFrameToContext()
241 Context->SegCs = KGDT64_R0_CODE; in KeTrapFrameToContext()
247 Context->SegCs = TrapFrame->SegCs; in KeTrapFrameToContext()
[all …]
H A Dexcept.c138 UserStack->MachineFrame.SegCs = Context->SegCs; in KiDispatchExceptionToUser()
162 TrapFrame->SegCs = KGDT64_R3_CODE | RPL_MASK; in KiDispatchExceptionToUser()
592 BOOLEAN Wow64 = TrapFrame->SegCs == KGDT64_R3_CMCODE; in KiGeneralProtectionFaultUserMode()
631 if (TrapFrame->SegCs & 3) in KiGeneralProtectionFaultHandler()
H A Dusercall.c61 ASSERT((TrapFrame->SegCs & MODE_MASK) != KernelMode); in KiInitializeUserApc()
106 TrapFrame->SegCs = KGDT64_R3_CODE | RPL_MASK; in KiInitializeUserApc()
/reactos/hal/halx86/generic/
H A Dbios.c69 BiosFrame->SegCs, BiosFrame->Eip, in HalpOpcodeInvalid()
95 *Stack = BiosFrame->SegCs & 0xFFFF; in HalpPushInt()
104 BiosFrame->SegCs = Eip >> 16; in HalpPushInt()
110 BiosFrame->CsBase = BiosFrame->SegCs << 4; in HalpPushInt()
145 TrapFrame->SegCs = BiosFrame->SegCs; in HalpOpcodeINTnn()
168 BiosFrame.SegCs = TrapFrame->SegCs; in HalpDispatchV86Opcode()
173 BiosFrame.CsBase = BiosFrame.SegCs << 4; in HalpDispatchV86Opcode()
281 V86TrapFrame.SegCs = 0x2000; in HalpBiosCall()
/reactos/ntoskrnl/ke/i386/
H A Dexp.c149 if (!(TrapFrame->SegCs & FRAME_EDITED)) in KiEspFromTrapFrame()
194 if (!(TrapFrame->SegCs & FRAME_EDITED)) in KiEspToTrapFrame()
205 TrapFrame->TempSegCs = TrapFrame->SegCs; in KiEspToTrapFrame()
206 TrapFrame->SegCs &= ~FRAME_EDITED; in KiEspToTrapFrame()
352 TrapFrame->SegCs = Context->SegCs; in KeContextToTrapFrame()
357 TrapFrame->SegCs = Ke386SanitizeSeg(Context->SegCs, PreviousMode); in KeContextToTrapFrame()
363 TrapFrame->SegCs = KGDT_R3_CODE | RPL_MASK; in KeContextToTrapFrame()
603 if (!(TrapFrame->SegCs & FRAME_EDITED) && in KeTrapFrameToContext()
612 Context->SegCs = TrapFrame->SegCs & 0xFFFF; in KeTrapFrameToContext()
635 if (TrapFrame->SegCs == KGDT_R0_CODE) in KeTrapFrameToContext()
[all …]
H A Dv86vdm.c214 *(PUSHORT)(Esp) = (USHORT)TrapFrame->SegCs; in KiVdmOpcodeINTnn()
224 Eip = (TrapFrame->SegCs << 4) + TrapFrame->Eip; in KiVdmOpcodeINTnn()
244 if (TrapFrame->SegCs == KGDT_R0_CODE) in KiVdmOpcodeINTnn()
247 TrapFrame->SegCs = Interrupt; in KiVdmOpcodeINTnn()
252 TrapFrame->SegCs = KGDT_R3_CODE | RPL_MASK; in KiVdmOpcodeINTnn()
258 TrapFrame->SegCs = Interrupt; in KiVdmOpcodeINTnn()
280 TrapFrame->SegCs = *(PUSHORT)(Esp + 4); in KiVdmOpcodeIRET()
292 TrapFrame->SegCs = *(PUSHORT)(Esp + 2); in KiVdmOpcodeIRET()
323 Eip = (TrapFrame->SegCs << 4) + TrapFrame->Eip; in KiVdmOpcodeIRET()
385 Eip = (TrapFrame->SegCs << 4) + TrapFrame->Eip; in KiVdmHandleOpcode()
[all …]
/reactos/modules/rostests/apitests/ntdll/
H A DNtContinue.c117 ok((pContext->SegCs & NTC_SEGMENT_BITS) == in check()
118 (continueContext.SegCs & NTC_SEGMENT_BITS), in check()
119 "SegCs: 0x%lx != 0x%lx\n", pContext->SegCs, continueContext.SegCs); in check()
131 ok_eq_hex(pContext->SegCs, continueContext.SegCs); in check()
/reactos/modules/rostests/apitests/rtl/i386/
H A DRtlUnwind.c46 ok_eq_hex(g_OutContext.SegCs, 0x23ul); in START_TEST()
53 ok_eq_hex(g_OutContext.SegCs, 0x1bul); in START_TEST()
/reactos/sdk/lib/rtl/amd64/
H A Dstubs.c51 ThreadContext->SegCs = KGDT64_R0_CODE; in RtlInitializeContext()
61 ThreadContext->SegCs = KGDT64_R3_CODE | RPL_MASK; in RtlInitializeContext()
/reactos/ntoskrnl/kd64/amd64/
H A Dkdx64.c78 WaitStateChange->ControlReport.SegCs = (USHORT)Context->SegCs; in KdpSetContextState()
88 if (WaitStateChange->ControlReport.SegCs == KGDT64_R0_CODE) in KdpSetContextState()
/reactos/ntoskrnl/kd64/i386/
H A Dkdx86.c76 WaitStateChange->ControlReport.SegCs = (USHORT)Context->SegCs; in KdpSetContextState()
86 if (WaitStateChange->ControlReport.SegCs == KGDT_R0_CODE) in KdpSetContextState()
/reactos/boot/freeldr/freeldr/arch/i386/
H A Di386bug.c141 (USHORT)TrapFrame->SegCs, TrapFrame->Eip); in i386PrintExceptionText()
165 TrapFrame->SegCs, TrapFrame->Rip); in i386PrintExceptionText()
/reactos/dll/win32/dbghelp/
H A Dcpu_i386.c86 case cpu_addr_pc: return i386_build_addr(hThread, ctx, addr, ctx->SegCs, ctx->Eip); in i386_get_addr()
197 context->x86.SegCs = frame->AddrPC.Segment; in i386_stack_walk()
471 SET(AddrReturn, SegCs, Eip); in i386_stack_walk()
607 case CV_REG_CS: *size = sizeof(ctx->SegCs); return &ctx->SegCs; in i386_fetch_context_reg()
/reactos/drivers/base/kdgdb/
H A Damd64_sup.c56 case CS: return &ctx->SegCs; in ctx_to_reg()
94 case CS: return &TrapFrame->SegCs; in thread_to_reg()
H A Di386_sup.c40 case CS: return &ctx->SegCs; in ctx_to_reg()
122 case CS: return &TrapFrame->SegCs; in thread_to_reg()
/reactos/modules/rostests/winetests/dbghelp/
H A Ddbghelp.c68 frame.AddrPC.Segment = ctx.SegCs; in test_stack_walk()
77 frame.AddrPC.Segment = ctx.SegCs; in test_stack_walk()
/reactos/sdk/lib/rtl/
H A Dexception.c209 DbgPrint("CS:EIP %x:%x\n", pc->SegCs & 0xffff, pc->Eip); in _dump_context()
217 DbgPrint("CS:RIP %x:%I64x\n", pc->SegCs & 0xffff, pc->Rip); in _dump_context()
/reactos/sdk/lib/ucrt/misc/
H A Dinvalid_parameter.cpp191 [CxSegCs] "=m" (ContextRecord.SegCs), in __acrt_call_reportfault()
210 mov word ptr [ContextRecord.SegCs], cs in __acrt_call_reportfault()
/reactos/sdk/lib/rtl/i386/
H A Dthread.c54 ThreadContext->SegCs = KGDT_R3_CODE; in RtlInitializeContext()
/reactos/ntoskrnl/include/internal/i386/
H A Dtrap_x.h23 return !!(TrapFrame->SegCs & MODE_MASK); in KiUserTrap()
61 DbgPrint("SegCs: %x\n", TrapFrame->SegCs); in KiDumpTrapFrame()
/reactos/subsystems/mvdm/ntvdm/cpu/
H A Dx86context.h124 ULONG SegCs; member
/reactos/hal/halx86/smp/i386/
H A Dspinup.c108 .Jump32Segment = (ULONG)ProcessorState->ContextFrame.SegCs, in HalStartNextProcessor()
/reactos/modules/rostests/winetests/ntdll/
H A Dexception.c1485 SegCs, SegDs, SegEs, SegFs, SegGs, SegSs, EFlags, prev_frame; in test_thread_context() member
1537 expect.Ebp, expect.Esp, expect.Eip, expect.SegCs, expect.SegDs, expect.SegEs, in test_thread_context()
1542 context.Ebp, context.Esp, context.Eip, context.SegCs, context.SegDs, context.SegEs, in test_thread_context()
1555 COMPARE( SegCs ); in test_thread_context()
1575 expect.Ebp, expect.Esp, expect.Eip, expect.SegCs, expect.SegDs, expect.SegEs, in test_thread_context()
1580 context.Ebp, context.Esp, context.Eip, context.SegCs, context.SegDs, context.SegEs, in test_thread_context()
1597 …ok( context.SegCs == LOWORD(expect.SegCs), "wrong SegCs %08x/%08x\n", context.SegCs, expect.SegCs in test_thread_context()
/reactos/ntoskrnl/kdbg/
H A Dkdbg.c121 KdbgContext.SegCs & 1, in KdSendPacket()

123