Did you make sure these matched the actual Microsoft-defined offsets in ksamd64?
On 2009-11-09, at 2:49 PM, tkreuzer(a)svn.reactos.org wrote:
Author: tkreuzer
Date: Mon Nov 9 20:49:47 2009
New Revision: 44052
URL:
http://svn.reactos.org/svn/reactos?rev=44052&view=rev
Log:
[NDK]
- Add KEXCEPTION_FRAME offsets
Modified:
branches/ros-amd64-bringup/reactos/include/ndk/amd64/asm.h
Modified: branches/ros-amd64-bringup/reactos/include/ndk/amd64/asm.h
URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/ndk/amd64/asm.h [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/include/ndk/amd64/asm.h [iso-8859-1] Mon Nov 9
20:49:47 2009
@@ -192,6 +192,42 @@
#define CONTEXT_LastExceptionFromRip 0x4c8
//
+// KEXCEPTION_FRAME offsets
+//
+#define KEXCEPTION_FRAME_P1Home 0x000
+#define KEXCEPTION_FRAME_P2Home 0x008
+#define KEXCEPTION_FRAME_P3Home 0x010
+#define KEXCEPTION_FRAME_P4Home 0x018
+#define KEXCEPTION_FRAME_P5 0x020
+#define KEXCEPTION_FRAME_InitialStack 0x028
+#define KEXCEPTION_FRAME_Xmm6 0x030
+#define KEXCEPTION_FRAME_Xmm7 0x040
+#define KEXCEPTION_FRAME_Xmm8 0x050
+#define KEXCEPTION_FRAME_Xmm9 0x060
+#define KEXCEPTION_FRAME_Xmm10 0x070
+#define KEXCEPTION_FRAME_Xmm11 0x080
+#define KEXCEPTION_FRAME_Xmm12 0x090
+#define KEXCEPTION_FRAME_Xmm13 0x0A0
+#define KEXCEPTION_FRAME_Xmm14 0x0B0
+#define KEXCEPTION_FRAME_Xmm15 0x0C0
+#define KEXCEPTION_FRAME_TrapFrame 0x0D0
+#define KEXCEPTION_FRAME_CallbackStack 0x0D8
+#define KEXCEPTION_FRAME_OutputBuffer 0x0E0
+#define KEXCEPTION_FRAME_OutputLength 0x0E8
+#define KEXCEPTION_FRAME_MxCsr 0x0F0
+#define KEXCEPTION_FRAME_Rbp 0x0F8
+#define KEXCEPTION_FRAME_Rbx 0x100
+#define KEXCEPTION_FRAME_Rdi 0x108
+#define KEXCEPTION_FRAME_Rsi 0x110
+#define KEXCEPTION_FRAME_R12 0x118
+#define KEXCEPTION_FRAME_R13 0x120
+#define KEXCEPTION_FRAME_R14 0x128
+#define KEXCEPTION_FRAME_R15 0x130
+#define KEXCEPTION_FRAME_Return 0x138
+#define SIZE_KEXCEPTION_FRAME 0x140
+
+
+//
// EXCEPTION_RECORD Offsets
//
#define EXCEPTION_RECORD_ExceptionCode 0x00
Best regards,
Alex Ionescu