[ASM]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 19 Nov 2010 18:27:05 +0000 (18:27 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Fri, 19 Nov 2010 18:27:05 +0000 (18:27 +0000)
Add more constants for ks386.inc

svn path=/branches/cmake-bringup/; revision=49639

include/asm/ks386.template.h

index 4f9eebf..ebb934d 100644 (file)
@@ -346,7 +346,6 @@ OFFSET(CONTEXT_SEGSS, CONTEXT, SegSs),
 //OFFSET(CONTEXT_FLOAT_SAVE_CONTROL_WORD         CONTEXT_FLOAT_SAVE + FP_CONTROL_WORD
 //OFFSET(CONTEXT_FLOAT_SAVE_STATUS_WORD          CONTEXT_FLOAT_SAVE + FP_STATUS_WORD
 //OFFSET(CONTEXT_FLOAT_SAVE_TAG_WORD             CONTEXT_FLOAT_SAVE + FP_TAG_WORD
-//OFFSET(CONTEXT_ALIGNED_SIZE                    0x2CC
 //OFFSET(CONTEXT_FRAME_LENGTH                    0x2D0
 SIZE(CONTEXT_FRAME_LENGTH, CONTEXT), 
 
@@ -360,7 +359,10 @@ OFFSET(EXCEPTION_RECORD_EXCEPTION_FLAGS, EXCEPTION_RECORD, ExceptionFlags),
 OFFSET(EXCEPTION_RECORD_EXCEPTION_RECORD, EXCEPTION_RECORD, ExceptionRecord),
 OFFSET(EXCEPTION_RECORD_EXCEPTION_ADDRESS, EXCEPTION_RECORD, ExceptionAddress),
 OFFSET(EXCEPTION_RECORD_NUMBER_PARAMETERS, EXCEPTION_RECORD, NumberParameters),
+OFFSET(EXCEPTION_RECORD_EXCEPTION_ADDRESS, EXCEPTION_RECORD, ExceptionAddress),
 SIZE(SIZEOF_EXCEPTION_RECORD, EXCEPTION_RECORD),
+CONSTANT(EXCEPTION_RECORD_LENGTH),
 //#define EXCEPTION_RECORD_LENGTH                 0x50
 
 HEADER("KTHREAD"),
@@ -418,4 +420,17 @@ CONSTANT(CBSTACK_TRAP_FRAME),
 CONSTANT(CBSTACK_CALLBACK_STACK),
 SIZE(SIZEOF_FX_SAVE_AREA, FX_SAVE_AREA),
 OFFSET(TEB_EXCEPTION_LIST, TEB, NtTib.ExceptionList),
+OFFSET(TEB_STACK_LIMIT, TEB, NtTib.StackLimit),
+OFFSET(TEB_STACK_BASE, TEB, NtTib.StackBase),
+OFFSET(TEB_PEB, TEB, ProcessEnvironmentBlock),
+OFFSET(TEB_EXCEPTION_CODE, TEB, ExceptionCode),
+OFFSET(PEB_KERNEL_CALLBACK_TABLE, PEB, KernelCallbackTable),
 CONSTANT(KUSER_SHARED_SYSCALL),
+CONSTANT(EXCEPTION_EXECUTE_HANDLER),
+CONSTANT(STATUS_CALLBACK_POP_STACK),
+CONSTANT(CONTEXT_ALIGNED_SIZE),
+
+
+
+
+