Home
last modified time | relevance | path

Searched refs:ProcessorState (Results 1 – 25 of 30) sorted by relevance

12

/reactos/ntoskrnl/ke/i386/
H A Dmproc.c95 PKPROCESSOR_STATE ProcessorState = &APInfo->Pcr.Prcb->ProcessorState; in KeStartAllProcessors() local
96 RtlZeroMemory(ProcessorState, sizeof(*ProcessorState)); in KeStartAllProcessors()
98 ProcessorState->SpecialRegisters.Cr0 = __readcr0(); in KeStartAllProcessors()
99 ProcessorState->SpecialRegisters.Cr3 = __readcr3(); in KeStartAllProcessors()
102 ProcessorState->ContextFrame.SegCs = KGDT_R0_CODE; in KeStartAllProcessors()
103 ProcessorState->ContextFrame.SegDs = KGDT_R3_DATA; in KeStartAllProcessors()
104 ProcessorState->ContextFrame.SegEs = KGDT_R3_DATA; in KeStartAllProcessors()
105 ProcessorState->ContextFrame.SegSs = KGDT_R0_DATA; in KeStartAllProcessors()
106 ProcessorState->ContextFrame.SegFs = KGDT_R0_PCR; in KeStartAllProcessors()
113 ProcessorState->SpecialRegisters.Tr = KGDT_TSS; in KeStartAllProcessors()
[all …]
H A Dcpu.c943 __writecr0(ProcessorState->SpecialRegisters.Cr0); in KiRestoreProcessorControlState()
944 Ke386SetCr2(ProcessorState->SpecialRegisters.Cr2); in KiRestoreProcessorControlState()
945 __writecr3(ProcessorState->SpecialRegisters.Cr3); in KiRestoreProcessorControlState()
962 __lidt(&ProcessorState->SpecialRegisters.Idtr.Limit); in KiRestoreProcessorControlState()
974 Ke386SetTr(ProcessorState->SpecialRegisters.Tr); in KiRestoreProcessorControlState()
983 ProcessorState->SpecialRegisters.Cr0 = __readcr0(); in KiSaveProcessorControlState()
984 ProcessorState->SpecialRegisters.Cr2 = __readcr2(); in KiSaveProcessorControlState()
985 ProcessorState->SpecialRegisters.Cr3 = __readcr3(); in KiSaveProcessorControlState()
1000 __sidt(&ProcessorState->SpecialRegisters.Idtr.Limit); in KiSaveProcessorControlState()
1001 ProcessorState->SpecialRegisters.Tr = Ke386GetTr(); in KiSaveProcessorControlState()
[all …]
/reactos/ntoskrnl/ke/amd64/
H A Dcpu.c537 __writecr0(ProcessorState->SpecialRegisters.Cr0); in KiRestoreProcessorControlState()
539 __writecr3(ProcessorState->SpecialRegisters.Cr3); in KiRestoreProcessorControlState()
540 __writecr4(ProcessorState->SpecialRegisters.Cr4); in KiRestoreProcessorControlState()
541 __writecr8(ProcessorState->SpecialRegisters.Cr8); in KiRestoreProcessorControlState()
557 _mm_setcsr(ProcessorState->SpecialRegisters.MxCsr); in KiRestoreProcessorControlState()
579 ProcessorState->SpecialRegisters.Cr0 = __readcr0(); in KiSaveProcessorControlState()
580 ProcessorState->SpecialRegisters.Cr2 = __readcr2(); in KiSaveProcessorControlState()
581 ProcessorState->SpecialRegisters.Cr3 = __readcr3(); in KiSaveProcessorControlState()
582 ProcessorState->SpecialRegisters.Cr4 = __readcr4(); in KiSaveProcessorControlState()
595 __sldt(&ProcessorState->SpecialRegisters.Ldtr); in KiSaveProcessorControlState()
[all …]
H A Dkiinit.c145 Pcr->Prcb.ProcessorState.SpecialRegisters.KernelDr6 = 0; in KiInitializePcr()
146 Pcr->Prcb.ProcessorState.SpecialRegisters.KernelDr7 = 0; in KiInitializePcr()
H A Dkrnlinit.c158 KiSaveProcessorControlState(&Prcb->ProcessorState); in KiSystemStartupBootStack()
/reactos/ntoskrnl/ke/arm/
H A Dcpu.c65 KiSaveProcessorControlState(OUT PKPROCESSOR_STATE ProcessorState) in KiSaveProcessorControlState() argument
72 ProcessorState->SpecialRegisters.ControlRegister = KeArmControlRegisterGet(); in KiSaveProcessorControlState()
73 ProcessorState->SpecialRegisters.LockdownRegister = KeArmLockdownRegisterGet(); in KiSaveProcessorControlState()
74 ProcessorState->SpecialRegisters.CacheRegister = KeArmCacheRegisterGet(); in KiSaveProcessorControlState()
75 ProcessorState->SpecialRegisters.StatusRegister = KeArmStatusRegisterGet(); in KiSaveProcessorControlState()
81 KiRestoreProcessorControlState(PKPROCESSOR_STATE ProcessorState) in KiRestoreProcessorControlState() argument
85 KeArmControlRegisterSet(ProcessorState->SpecialRegisters.ControlRegister); in KiRestoreProcessorControlState()
86 KeArmLockdownRegisterSet(ProcessorState->SpecialRegisters.LockdownRegister); in KiRestoreProcessorControlState()
87 KeArmCacheRegisterSet(ProcessorState->SpecialRegisters.CacheRegister); in KiRestoreProcessorControlState()
88 KeArmStatusRegisterSet(ProcessorState->SpecialRegisters.StatusRegister); in KiRestoreProcessorControlState()
H A Dkiinit.c86 KeProcessorLevel = (USHORT)(Pcr->Prcb.ProcessorState.ArchState.Cp15_Cr0_CpuId >> 8); in KiInitializeKernel()
87 KeProcessorRevision = (USHORT)(Pcr->Prcb.ProcessorState.ArchState.Cp15_Cr0_CpuId & 0xFF); in KiInitializeKernel()
/reactos/hal/halx86/smp/i386/
H A Dspinup.c45 PKPROCESSOR_STATE ProcessorState; member
55 _In_ PKPROCESSOR_STATE ProcessorState) in HalpSetupTemporaryMappings() argument
89 _In_ PKPROCESSOR_STATE ProcessorState) in HalStartNextProcessor() argument
96 ULONG initialCr3 = HalpSetupTemporaryMappings(ProcessorState); in HalStartNextProcessor()
108 .Jump32Segment = (ULONG)ProcessorState->ContextFrame.SegCs, in HalStartNextProcessor()
111 .ProcessorState = ProcessorState, in HalStartNextProcessor()
112 .Gdtr = ProcessorState->SpecialRegisters.Gdtr, in HalStartNextProcessor()
113 .Idtr = ProcessorState->SpecialRegisters.Idtr, in HalStartNextProcessor()
H A Dapentry.S61 ProcessorState: label
86 mov esi, [ebp + ZERO_OFFSET(ProcessorState)]
/reactos/ntoskrnl/include/internal/i386/
H A Dtrap_x.h171 CheckDr(0, Prcb->ProcessorState.SpecialRegisters.KernelDr0); in KiExitTrapDebugChecks()
172 CheckDr(1, Prcb->ProcessorState.SpecialRegisters.KernelDr1); in KiExitTrapDebugChecks()
173 CheckDr(2, Prcb->ProcessorState.SpecialRegisters.KernelDr2); in KiExitTrapDebugChecks()
174 CheckDr(3, Prcb->ProcessorState.SpecialRegisters.KernelDr3); in KiExitTrapDebugChecks()
268 __writedr(0, Prcb->ProcessorState.SpecialRegisters.KernelDr0); in KiHandleDebugRegistersOnTrapEntry()
269 __writedr(1, Prcb->ProcessorState.SpecialRegisters.KernelDr1); in KiHandleDebugRegistersOnTrapEntry()
270 __writedr(2, Prcb->ProcessorState.SpecialRegisters.KernelDr2); in KiHandleDebugRegistersOnTrapEntry()
271 __writedr(3, Prcb->ProcessorState.SpecialRegisters.KernelDr3); in KiHandleDebugRegistersOnTrapEntry()
272 __writedr(6, Prcb->ProcessorState.SpecialRegisters.KernelDr6); in KiHandleDebugRegistersOnTrapEntry()
273 __writedr(7, Prcb->ProcessorState.SpecialRegisters.KernelDr7); in KiHandleDebugRegistersOnTrapEntry()
/reactos/ntoskrnl/kd64/amd64/
H A Dkdx64.c48 Prcb->ProcessorState.SpecialRegisters.KernelDr7 = in KdpGetStateChange()
50 Prcb->ProcessorState.SpecialRegisters.KernelDr6 = 0; in KdpGetStateChange()
72 WaitStateChange->ControlReport.Dr6 = Prcb->ProcessorState.SpecialRegisters. in KdpSetContextState()
74 WaitStateChange->ControlReport.Dr7 = Prcb->ProcessorState.SpecialRegisters. in KdpSetContextState()
188 ControlStart = &Prcb->ProcessorState.SpecialRegisters; in KdpSysReadControlSpace()
226 ControlStart = &Prcb->ProcessorState.SpecialRegisters; in KdpSysWriteControlSpace()
371 PKPROCESSOR_STATE ProcessorState = &KiProcessorBlock[i]->ProcessorState; in KdpAllowDisable() local
375 if (ProcessorState->SpecialRegisters.KernelDr7 & 0xFF) in KdpAllowDisable()
/reactos/ntoskrnl/kd64/i386/
H A Dkdx86.c46 Prcb->ProcessorState.SpecialRegisters.KernelDr7 = in KdpGetStateChange()
48 Prcb->ProcessorState.SpecialRegisters.KernelDr6 = 0; in KdpGetStateChange()
70 WaitStateChange->ControlReport.Dr6 = Prcb->ProcessorState.SpecialRegisters. in KdpSetContextState()
72 WaitStateChange->ControlReport.Dr7 = Prcb->ProcessorState.SpecialRegisters. in KdpSetContextState()
202 ProcessorState); in KdpSysReadControlSpace()
237 ProcessorState); in KdpSysWriteControlSpace()
434 PKPROCESSOR_STATE ProcessorState = &KiProcessorBlock[i]->ProcessorState; in KdpAllowDisable() local
438 if (ProcessorState->SpecialRegisters.KernelDr7 & 0xFF) in KdpAllowDisable()
/reactos/ntoskrnl/kd64/
H A Dkdprint.c241 KiSaveProcessorControlState(&Prcb->ProcessorState); in KdpCommandString()
242 KdpMoveMemory(&Prcb->ProcessorState.ContextFrame, in KdpCommandString()
249 &Prcb->ProcessorState.ContextFrame); in KdpCommandString()
253 &Prcb->ProcessorState.ContextFrame, in KdpCommandString()
255 KiRestoreProcessorControlState(&Prcb->ProcessorState); in KdpCommandString()
281 KiSaveProcessorControlState(&Prcb->ProcessorState); in KdpSymbol()
282 KdpMoveMemory(&Prcb->ProcessorState.ContextFrame, in KdpSymbol()
290 &Prcb->ProcessorState.ContextFrame); in KdpSymbol()
294 &Prcb->ProcessorState.ContextFrame, in KdpSymbol()
296 KiRestoreProcessorControlState(&Prcb->ProcessorState); in KdpSymbol()
H A Dkdtrap.c110 KiSaveProcessorControlState(&Prcb->ProcessorState); in KdpReport()
111 KdpMoveMemory(&Prcb->ProcessorState.ContextFrame, in KdpReport()
117 &Prcb->ProcessorState. in KdpReport()
123 &Prcb->ProcessorState.ContextFrame, in KdpReport()
125 KiRestoreProcessorControlState(&Prcb->ProcessorState); in KdpReport()
H A Dkdapi.c743 ProcessorState.ContextFrame; in KdpGetContext()
799 ProcessorState.ContextFrame; in KdpSetContext()
855 ProcessorState.ContextFrame; in KdpGetContextEx()
919 ProcessorState.ContextFrame; in KdpSetContextEx()
1815 PCONTEXT ContextRecord = &CurrentPrcb->ProcessorState.ContextFrame; in KdReportProcessorChange()
H A Dkddata.c636 FIELD_OFFSET(KPRCB, ProcessorState.ContextFrame),
658 FIELD_OFFSET(KPRCB, ProcessorState.SpecialRegisters),
/reactos/hal/halx86/mp/
H A Dprocessor_mp.c107 IN PKPROCESSOR_STATE ProcessorState) in HalStartNextProcessor() argument
111 DPRINT("HalStartNextProcessor(%x %x)\n", LoaderBlock, ProcessorState); in HalStartNextProcessor()
128 HaliStartApplicationProcessor(CPU, (ULONG)ProcessorState); in HalStartNextProcessor()
/reactos/hal/halx86/smp/amd64/
H A Dspinup.c20 _In_ PKPROCESSOR_STATE ProcessorState) in HalStartNextProcessor() argument
/reactos/hal/halx86/generic/
H A Dup.c30 _In_ PKPROCESSOR_STATE ProcessorState) in HalStartNextProcessor() argument
/reactos/hal/halarm/generic/
H A Dprocessor.c72 IN PKPROCESSOR_STATE ProcessorState) in HalStartNextProcessor() argument
/reactos/ntoskrnl/ke/
H A Dbug.c760 RtlCaptureContext(&Prcb->ProcessorState.ContextFrame); in KeBugCheckWithTf()
761 KiSaveProcessorControlState(&Prcb->ProcessorState); in KeBugCheckWithTf()
762 Context = Prcb->ProcessorState.ContextFrame; in KeBugCheckWithTf()
1122 Prcb->ProcessorState.ContextFrame = Context; in KeBugCheckWithTf()
/reactos/sdk/include/ndk/
H A Dhalfuncs.h98 _In_ PKPROCESSOR_STATE ProcessorState
/reactos/sdk/include/ndk/arm/
H A Dketypes.h777 KPROCESSOR_STATE ProcessorState; member
1034 C_ASSERT(FIELD_OFFSET(KPRCB, ProcessorState) == 0x20);
/reactos/sdk/include/ndk/amd64/
H A Dketypes.h672 KPROCESSOR_STATE ProcessorState; member
1171 KPROCESSOR_STATE ProcessorState; // 0x0090 member
/reactos/ntoskrnl/include/internal/
H A Dke.h1015 IN PKPROCESSOR_STATE ProcessorState
1021 OUT PKPROCESSOR_STATE ProcessorState

12