ReactOS
0.4.15-dev-4857-g47842d7
|
Go to the source code of this file.
Classes | |
union | _KTRAP_EXIT_SKIP_BITS |
struct | _KV86_FRAME |
struct | _KV8086_STACK_FRAME |
struct | _LARGE_IDENTITY_MAP |
struct | _FLOATING_SAVE_CONTEXT |
Typedefs | |
typedef union _KTRAP_EXIT_SKIP_BITS | KTRAP_EXIT_SKIP_BITS |
typedef union _KTRAP_EXIT_SKIP_BITS * | PKTRAP_EXIT_SKIP_BITS |
typedef struct _KV86_FRAME | KV86_FRAME |
typedef struct _KV86_FRAME * | PKV86_FRAME |
typedef struct _KV8086_STACK_FRAME | KV8086_STACK_FRAME |
typedef struct _KV8086_STACK_FRAME * | PKV8086_STACK_FRAME |
typedef struct _LARGE_IDENTITY_MAP | LARGE_IDENTITY_MAP |
typedef struct _LARGE_IDENTITY_MAP * | PLARGE_IDENTITY_MAP |
typedef struct _FLOATING_SAVE_CONTEXT | FLOATING_SAVE_CONTEXT |
typedef struct _FLOATING_SAVE_CONTEXT * | PFLOATING_SAVE_CONTEXT |
#define KeGetContextSwitches | ( | Prcb | ) | CONTAINING_RECORD(Prcb, KIPCR, PrcbData)->ContextSwitches |
#define KeGetTrapFrameInterruptState | ( | TrapFrame | ) | BooleanFlagOn((TrapFrame)->EFlags, EFLAGS_INTERRUPT_MASK) |
#define KiCallVdmPrefixHandler | ( | x | ) | KiVdmOpcodePrefix(TrapFrame, Flags | x) |
#define KiVdmClearVdmEFlags | ( | x | ) | InterlockedAnd((PLONG)KiNtVdmState, ~(x)) |
#define KiVdmSetVdmEFlags | ( | x | ) | InterlockedOr((PLONG)KiNtVdmState, (x)); |
#define KTE_SKIP_PM_BIT (((KTRAP_EXIT_SKIP_BITS) { { .SkipPreviousMode = TRUE } }).Bits) |
#define KTE_SKIP_SEG_BIT (((KTRAP_EXIT_SKIP_BITS) { { .SkipSegments = TRUE } }).Bits) |
#define KTE_SKIP_VOL_BIT (((KTRAP_EXIT_SKIP_BITS) { { .SkipVolatiles = TRUE } }).Bits) |
typedef union _KTRAP_EXIT_SKIP_BITS KTRAP_EXIT_SKIP_BITS |
typedef struct _KV86_FRAME KV86_FRAME |
typedef union _KTRAP_EXIT_SKIP_BITS * PKTRAP_EXIT_SKIP_BITS |
typedef struct _KV8086_STACK_FRAME * PKV8086_STACK_FRAME |
typedef struct _KV86_FRAME * PKV86_FRAME |
typedef struct _LARGE_IDENTITY_MAP * PLARGE_IDENTITY_MAP |
C_ASSERT | ( | NPX_FRAME_LENGTH | = =sizeof(FX_SAVE_AREA) | ) |
Referenced by KiTrap0EHandler().
Referenced by KeInvalidAccessAllowed(), and KiCheckForSListFault().
Referenced by KiCheckForSListFault().
NTSTATUS NTAPI Ke386GetGdtEntryThread | ( | IN PKTHREAD | Thread, |
IN ULONG | Offset, | ||
IN PKGDTENTRY | Descriptor | ||
) |
Definition at line 26 of file ldt.c.
Referenced by PspQueryDescriptorThread().
FORCEINLINE PVOID Ke386SanitizeDr | ( | IN PVOID | DrAddress, |
IN KPROCESSOR_MODE | Mode | ||
) |
Definition at line 716 of file ke.h.
FORCEINLINE ULONG Ke386SanitizeFlags | ( | IN ULONG | Eflags, |
IN KPROCESSOR_MODE | Mode | ||
) |
Definition at line 699 of file ke.h.
Referenced by KeContextToTrapFrame(), and KiInitializeUserApc().
FORCEINLINE ULONG Ke386SanitizeSeg | ( | IN ULONG | Cs, |
IN KPROCESSOR_MODE | Mode | ||
) |
Definition at line 682 of file ke.h.
Referenced by KeContextToTrapFrame(), KiDispatchException(), and KiInitializeUserApc().
FORCEINLINE VOID Ke386SetGdtEntryBase | ( | PKGDTENTRY | GdtEntry, |
PVOID | BaseAddress | ||
) |
Definition at line 380 of file ke.h.
Referenced by KiSetTebBase().
FORCEINLINE BOOLEAN KeDisableInterrupts | ( | VOID | ) |
FORCEINLINE VOID KeFlushProcessTb | ( | VOID | ) |
FORCEINLINE ULONG_PTR KeGetContextFrameRegister | ( | PCONTEXT | Context | ) |
FORCEINLINE ULONG_PTR KeGetContextPc | ( | PCONTEXT | Context | ) |
FORCEINLINE ULONG_PTR KeGetContextReturnRegister | ( | PCONTEXT | Context | ) |
FORCEINLINE PRKTHREAD KeGetCurrentThread | ( | VOID | ) |
Definition at line 355 of file ke.h.
Referenced by KiCheckForApcDelivery(), and KiGetUserModeStackAddress().
FORCEINLINE ULONG_PTR KeGetTrapFrameFrameRegister | ( | PKTRAP_FRAME | TrapFrame | ) |
FORCEINLINE ULONG_PTR KeGetTrapFramePc | ( | PKTRAP_FRAME | TrapFrame | ) |
FORCEINLINE ULONG_PTR KeGetTrapFrameStackRegister | ( | PKTRAP_FRAME | TrapFrame | ) |
Definition at line 87 of file ke.h.
Definition at line 42 of file vdmmain.c.
Referenced by Phase1InitializationDiscard().
FORCEINLINE VOID KeInvalidateTlbEntry | ( | IN PVOID | Address | ) |
FORCEINLINE PVOID KeQueryInterruptHandler | ( | IN ULONG | Vector | ) |
Definition at line 304 of file ke.h.
Definition at line 279 of file ke.h.
FORCEINLINE VOID KeRestoreInterrupts | ( | BOOLEAN | WereEnabled | ) |
FORCEINLINE VOID KeSetContextFrameRegister | ( | PCONTEXT | Context, |
ULONG_PTR | Frame | ||
) |
FORCEINLINE VOID KeSetContextPc | ( | PCONTEXT | Context, |
ULONG_PTR | ProgramCounter | ||
) |
FORCEINLINE VOID KeSetContextReturnRegister | ( | PCONTEXT | Context, |
ULONG_PTR | ReturnValue | ||
) |
Definition at line 51 of file ke.h.
Definition at line 342 of file ke.h.
VOID NTAPI Ki386AdjustEsp0 | ( | IN PKTRAP_FRAME | TrapFrame | ) |
Definition at line 280 of file exp.c.
Referenced by KeContextToTrapFrame(), KiVdmOpcodeIRET(), KiVdmOpcodePOPF(), and VdmSwapContext().
VOID FASTCALL Ki386BiosCallReturnAddress | ( | IN PKTRAP_FRAME | TrapFrame | ) |
Referenced by KiEnterV86Mode(), and KiTrap0DHandler().
BOOLEAN NTAPI Ki386CreateIdentityMap | ( | IN PLARGE_IDENTITY_MAP | IdentityMap, |
IN PVOID | StartPtr, | ||
IN ULONG | Length | ||
) |
Referenced by KiInitMachineDependent().
Referenced by Ki386EnableTargetLargePage(), and KiInitMachineDependent().
Definition at line 70 of file patpge.c.
Referenced by KiInitMachineDependent().
Definition at line 1065 of file cpu.c.
Referenced by KiInitMachineDependent().
VOID NTAPI Ki386FreeIdentityMap | ( | IN PLARGE_IDENTITY_MAP | IdentityMap | ) |
Referenced by KiInitMachineDependent().
BOOLEAN FASTCALL Ki386HandleOpcodeV86 | ( | IN PKTRAP_FRAME | TrapFrame | ) |
Definition at line 456 of file v86vdm.c.
Referenced by KiTrap0DHandler().
VOID FASTCALL Ki386InitializeTss | ( | IN PKTSS | Tss, |
IN PKIDTENTRY | Idt, | ||
IN PKGDTENTRY | Gdt | ||
) |
Definition at line 799 of file cpu.c.
Referenced by KiSystemStartup().
FORCEINLINE VOID Ki386PerfEnd | ( | VOID | ) |
Referenced by Ke386CallBios().
FORCEINLINE VOID KiCheckForApcDelivery | ( | IN PKTRAP_FRAME | TrapFrame | ) |
Definition at line 788 of file ke.h.
Referenced by KiCommonExit().
Referenced by KiSystemServiceHandler().
FORCEINLINE DECLSPEC_NORETURN VOID KiDispatchException0Args | ( | IN NTSTATUS | Code, |
IN ULONG_PTR | Address, | ||
IN PKTRAP_FRAME | TrapFrame | ||
) |
Definition at line 734 of file ke.h.
Referenced by KiRaiseAssertionHandler(), KiTrap00Handler(), KiTrap01Handler(), KiTrap04Handler(), KiTrap05Handler(), KiTrap06Handler(), and KiTrap0DHandler().
FORCEINLINE DECLSPEC_NORETURN VOID KiDispatchException1Args | ( | IN NTSTATUS | Code, |
IN ULONG_PTR | Address, | ||
IN ULONG | P1, | ||
IN PKTRAP_FRAME | TrapFrame | ||
) |
Definition at line 748 of file ke.h.
Referenced by KiNpxHandler(), and KiTrap13Handler().
FORCEINLINE DECLSPEC_NORETURN VOID KiDispatchException2Args | ( | IN NTSTATUS | Code, |
IN ULONG_PTR | Address, | ||
IN ULONG | P1, | ||
IN ULONG | P2, | ||
IN PKTRAP_FRAME | TrapFrame | ||
) |
Definition at line 763 of file ke.h.
Referenced by KiNpxHandler(), KiTrap0DHandler(), and KiTrap0EHandler().
DECLSPEC_NORETURN VOID NTAPI KiDispatchExceptionFromTrapFrame | ( | IN NTSTATUS | Code, |
IN ULONG | Flags, | ||
IN ULONG_PTR | Address, | ||
IN ULONG | ParameterCount, | ||
IN ULONG_PTR | Parameter1, | ||
IN ULONG_PTR | Parameter2, | ||
IN ULONG_PTR | Parameter3, | ||
IN PKTRAP_FRAME | TrapFrame | ||
) |
Definition at line 1055 of file exp.c.
Referenced by KiDebugHandler(), KiDispatchException0Args(), KiDispatchException1Args(), KiDispatchException2Args(), KiRaiseSecurityCheckFailureHandler(), and KiTrap0EHandler().
FORCEINLINE VOID KiEndInterrupt | ( | IN KIRQL | Irql, |
IN PKTRAP_FRAME | TrapFrame | ||
) |
Definition at line 891 of file ke.h.
DECLSPEC_NORETURN VOID FASTCALL KiEoiHelper | ( | IN PKTRAP_FRAME | TrapFrame | ) |
Definition at line 126 of file traphdlr.c.
Referenced by _HalpApcInterruptHandler(), HalpApcInterruptHandler(), HalpClockInterruptHandler(), HalpDispatchInterrupt2ndEntry(), HalpDispatchInterruptHandler(), HalpTrap0DHandler(), KiDispatchExceptionFromTrapFrame(), KiEndInterrupt(), KiEnterV86Mode(), KiExitInterrupt(), KiExitV86Trap(), KiGetTickCountHandler(), KiNpxHandler(), KiTrap01Handler(), KiTrap07Handler(), KiTrap0EHandler(), and KiTrap10Handler().
ULONG_PTR FASTCALL KiExitV86Mode | ( | IN PKTRAP_FRAME | TrapFrame | ) |
Definition at line 468 of file v86vdm.c.
Referenced by KiLoadFastSyscallMachineSpecificRegisters().
VOID NTAPI KiFlushNPXState | ( | IN FLOATING_SAVE_AREA * | SaveArea | ) |
Referenced by KeContextToTrapFrame(), and KeTrapFrameToContext().
Definition at line 239 of file cpu.c.
Definition at line 150 of file cpu.c.
FORCEINLINE PKTRAP_FRAME KiGetLinkedTrapFrame | ( | PKTRAP_FRAME | TrapFrame | ) |
Definition at line 79 of file ke.h.
FORCEINLINE PFX_SAVE_AREA KiGetThreadNpxArea | ( | IN PKTHREAD | Thread | ) |
Definition at line 671 of file ke.h.
Referenced by KeSaveFloatingPointState(), KiCoprocessorError(), KiEnterV86Mode(), KiExitV86Mode(), KiFlushNPXState(), KiInitMachineDependent(), KiSwapContextEntry(), KiTrap07Handler(), KiTrap10Handler(), and KiTrap13Handler().
FORCEINLINE PULONG KiGetUserModeStackAddress | ( | void | ) |
Definition at line 1088 of file cpu.c.
Referenced by KiInitMachineDependent().
FORCEINLINE DECLSPEC_NORETURN VOID KiIret | ( | VOID | ) |
Definition at line 1159 of file cpu.c.
Referenced by KiVerifyCpuFeatures().
Definition at line 1011 of file cpu.c.
Referenced by KiInitMachineDependent().
Definition at line 97 of file cpu.c.
FORCEINLINE VOID KiSetTebBase | ( | PKPCR | Pcr, |
PNT_TIB | TebAddress | ||
) |
Definition at line 389 of file ke.h.
Referenced by KiEnterV86Mode(), KiExitV86Mode(), and KiSwapContextExit().
FORCEINLINE DECLSPEC_NORETURN VOID KiSwitchToBootStack | ( | IN ULONG_PTR | InitialStack | ) |
Definition at line 827 of file ke.h.
Referenced by KiSystemStartup().
NTSTATUS NTAPI KiSystemCallTrampoline | ( | _In_ PVOID | Handler, |
_In_ PVOID | Arguments, | ||
_In_ ULONG | StackBytes | ||
) |
Referenced by KiSystemServiceHandler().
Referenced by Ki386InitializeTss().
Referenced by Ki386InitializeTss().
Referenced by Ki386EnableXMMIExceptions().
Definition at line 442 of file v86vdm.c.
Referenced by KiTrap0EHandler().
BOOLEAN NTAPI VdmDispatchBop | ( | IN PKTRAP_FRAME | TrapFrame | ) |
Definition at line 313 of file vdmexec.c.
Referenced by KiTrap06Handler(), and KiVdmOpcodeIRET().
BOOLEAN NTAPI VdmDispatchPageFault | ( | _In_ PKTRAP_FRAME | TrapFrame | ) |
Definition at line 367 of file vdmexec.c.
Referenced by KiTrap0EHandler().
ULONG KeI386CpuType |
Definition at line 22 of file cpu.c.
Referenced by KeInvalidateAllCaches().
ULONG KeI386EFlagsAndMaskV86 |
Definition at line 21 of file v86vdm.c.
Referenced by VdmSwapContext().
ULONG KeI386EFlagsOrMaskV86 |
Definition at line 22 of file v86vdm.c.
Referenced by VdmSwapContext().
ULONG KeI386FxsrPresent |
Definition at line 33 of file cpu.c.
Referenced by KiFlushNPXState().
ULONG KeI386NpxPresent |
Definition at line 25 of file cpu.c.
Referenced by KeRestoreFloatingPointState(), and KeSaveFloatingPointState().
BOOLEAN KeI386VirtualIntExtensions |
Definition at line 24 of file v86vdm.c.
Referenced by KeI386VdmInitialize(), KiVdmOpcodeCLI(), KiVdmOpcodeINTnn(), KiVdmOpcodeIRET(), KiVdmOpcodePOPF(), KiVdmOpcodePUSHF(), KiVdmOpcodeSTI(), VdmEndExecution(), and VdmpStartExecution().
PVOID Ki386IopmSaveArea |
Definition at line 23 of file v86vdm.c.
Referenced by Ke386CallBios(), and KiInitializeKernel().
UCHAR KiDebugRegisterContextOffsets[9] |
UCHAR KiDebugRegisterTrapOffsets[9] |
ULONG KiFastSystemCallDisable |
Definition at line 28 of file cpu.c.
Referenced by KiRestoreFastSyscallReturnState().
BOOLEAN KiI386PentiumLockErrataPresent |
Definition at line 42 of file cpu.c.
Referenced by KiGetFeatureBits(), KiInitMachineDependent(), and MiInitMachineDependent().
KIDTENTRY KiIdt[MAXIMUM_IDTVECTOR+1] |
Definition at line 50 of file except.c.
Referenced by KeInitExceptions().
KDESCRIPTOR KiIdtDescriptor |
Definition at line 51 of file except.c.
Referenced by KeInitExceptions(), and KiSystemStartup().
ULONG KiMXCsrMask |
Definition at line 30 of file cpu.c.
Referenced by KeContextToTrapFrame(), and KiInitMachineDependent().
CHAR KiSystemCallExit[] |
CHAR KiSystemCallExit2[] |
CHAR KiSystemCallExitBranch[] |