mirror of
https://github.com/reactos/reactos.git
synced 2024-08-20 18:35:32 +00:00
[NTOS]
Add KeGetContextSwitches macro for amd64 svn path=/branches/ros-amd64-bringup/; revision=45073
This commit is contained in:
parent
df461e55cc
commit
3f1658e744
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue