Add KeGetContextSwitches macro for amd64

svn path=/branches/ros-amd64-bringup/; revision=45073
This commit is contained in:
Timo Kreuzer 2010-01-14 08:40:16 +00:00
parent df461e55cc
commit 3f1658e744

View file

@ -109,6 +109,13 @@ extern ULONG KeI386CpuStep;
(PKTRAP_FRAME)((ULONG_PTR)((Thread)->InitialStack) - \
sizeof(KTRAP_FRAME))
//
// Macro to get context switches from the PRCB
// All architectures but x86 have it in the PRCB's KeContextSwitches
//
#define KeGetContextSwitches(Prcb) \
(Prcb->KeContextSwitches)
#define KeGetExceptionFrame(Thread) \
(PKEXCEPTION_FRAME)((ULONG_PTR)KeGetTrapFrame(Thread) - \
sizeof(KEXCEPTION_FRAME))