mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Implement KeGetTrapFrame and KeGetExceptionFrame macros.
svn path=/branches/ros-amd64-bringup/; revision=44773
This commit is contained in:
@@ -102,6 +102,17 @@ extern ULONG KeI386CpuStep;
|
||||
#define KeSetContextReturnRegister(Context, ReturnValue) \
|
||||
((Context)->Rax = (ReturnValue))
|
||||
|
||||
//
|
||||
// Macro to get trap and exception frame from a thread stack
|
||||
//
|
||||
#define KeGetTrapFrame(Thread) \
|
||||
(PKTRAP_FRAME)((ULONG_PTR)((Thread)->InitialStack) - \
|
||||
sizeof(KTRAP_FRAME))
|
||||
|
||||
#define KeGetExceptionFrame(Thread) \
|
||||
(PKEXCEPTION_FRAME)((ULONG_PTR)KeGetTrapFrame(Thread) - \
|
||||
sizeof(KEXCEPTION_FRAME))
|
||||
|
||||
//
|
||||
// Returns the Interrupt State from a Trap Frame.
|
||||
// ON = TRUE, OFF = FALSE
|
||||
|
||||
Reference in New Issue
Block a user