/*++
KPROCESSOR_MODE
KeGetPreviousMode (
VOID
)
Routine Description:
This function gets the threads previous mode from the trap frame
Arguments:
None.
Return Value:
KPROCESSOR_MODE - Previous mode for this thread.
--*/
#define KeGetPreviousMode() (KeGetCurrentThread()->PreviousMode)
/*++
KPROCESSOR_MODE
KeGetPReviousModeByThread (
__in PKTHREAD xxCurrentThread
)
Routine Description:
This function gets the threads previous mode from the trap frame.
Arguments:
xxCurrentThread - Current thread.
N.B. This must be the current thread.
Return Value:
KPROCESSOR_MODE - Previous mode for this thread.
--*/
#define KeGetPreviousModeByThread(xxCurrentThread) \
(ASSERT (xxCurrentThread == KeGetCurrentThread ()), \
(xxCurrentThread)->PreviousMode)