mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 04:13:35 +00:00
[NTOS]
Add KeGetContextSwitches macro for amd64 svn path=/branches/ros-amd64-bringup/; revision=45073
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user