Author: tkreuzer
Date: Sun Jan 16 18:16:24 2011
New Revision: 50403
URL:
http://svn.reactos.org/svn/reactos?rev=50403&view=rev
Log:
[AMD64]
Add ksamd64.inc
Added:
trunk/reactos/include/reactos/ksamd64.inc (with props)
Added: trunk/reactos/include/reactos/ksamd64.inc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/ksamd64.in…
==============================================================================
--- trunk/reactos/include/reactos/ksamd64.inc (added)
+++ trunk/reactos/include/reactos/ksamd64.inc [iso-8859-1] Sun Jan 16 18:16:24 2011
@@ -1,0 +1,1074 @@
+
+/* Pointer size */
+SizeofPointer = 0x8
+
+/* Breakpoints */
+BREAKPOINT_BREAK = 0x0
+BREAKPOINT_PRINT = 0x1
+BREAKPOINT_PROMPT = 0x2
+BREAKPOINT_LOAD_SYMBOLS = 0x3
+BREAKPOINT_UNLOAD_SYMBOLS = 0x4
+BREAKPOINT_COMMAND_STRING = 0x5
+
+/* Context Frame Flags */
+CONTEXT_FULL = 0x10000b
+CONTEXT_CONTROL = 0x100001
+CONTEXT_INTEGER = 0x100002
+CONTEXT_SEGMENTS = 0x100004
+CONTEXT_FLOATING_POINT = 0x100008
+CONTEXT_DEBUG_REGISTERS = 0x100010
+
+/* Exception flags */
+EXCEPTION_NONCONTINUABLE = 0x1
+EXCEPTION_UNWINDING = 0x2
+EXCEPTION_EXIT_UNWIND = 0x4
+EXCEPTION_STACK_INVALID = 0x8
+EXCEPTION_NESTED_CALL = 0x10
+EXCEPTION_TARGET_UNWIND = 0x20
+EXCEPTION_COLLIDED_UNWIND = 0x20
+EXCEPTION_UNWIND = 0x6
+EXCEPTION_EXECUTE_HANDLER = 0x1
+EXCEPTION_CONTINUE_SEARCH = 0x0
+EXCEPTION_CONTINUE_EXECUTION = 0xffffffff
+
+/* Exception types */
+ExceptionContinueExecution = 0x0
+ExceptionContinueSearch = 0x1
+ExceptionNestedException = 0x2
+ExceptionCollidedUnwind = 0x3
+
+/* Lock Queue */
+LOCK_QUEUE_WAIT = 0x1
+LOCK_QUEUE_OWNER = 0x2
+LockQueueDispatcherLock = 0x0
+
+/* Process states */
+ProcessInMemory = 0x0
+ProcessOutOfMemory = 0x1
+ProcessInTransition = 0x2
+
+/* Processor mode */
+KernelMode = 0x0
+UserMode = 0x1
+
+/* Status codes */
+STATUS_ACCESS_VIOLATION = 0xc0000005
+STATUS_ASSERTION_FAILURE = 0xc0000420
+STATUS_ARRAY_BOUNDS_EXCEEDED = 0xc000008c
+STATUS_BAD_COMPRESSION_BUFFER = 0xc0000242
+STATUS_BREAKPOINT = 0x80000003
+STATUS_CALLBACK_POP_STACK = 0xc0000423
+STATUS_DATATYPE_MISALIGNMENT = 0x80000002
+STATUS_FLOAT_DENORMAL_OPERAND = 0xc000008d
+STATUS_FLOAT_DIVIDE_BY_ZERO = 0xc000008e
+STATUS_FLOAT_INEXACT_RESULT = 0xc000008f
+STATUS_FLOAT_INVALID_OPERATION = 0xc0000090
+STATUS_FLOAT_OVERFLOW = 0xc0000091
+STATUS_FLOAT_STACK_CHECK = 0xc0000092
+STATUS_FLOAT_UNDERFLOW = 0xc0000093
+STATUS_FLOAT_MULTIPLE_FAULTS = 0xc00002b4
+STATUS_FLOAT_MULTIPLE_TRAPS = 0xc00002b5
+STATUS_GUARD_PAGE_VIOLATION = 0x80000001
+STATUS_ILLEGAL_FLOAT_CONTEXT = 0xc000014a
+STATUS_ILLEGAL_INSTRUCTION = 0xc000001d
+STATUS_INSTRUCTION_MISALIGNMENT = 0xc00000aa
+STATUS_INVALID_HANDLE = 0xc0000008
+STATUS_INVALID_LOCK_SEQUENCE = 0xc000001e
+STATUS_INVALID_OWNER = 0xc000005a
+STATUS_INVALID_PARAMETER = 0xc000000d
+STATUS_INVALID_PARAMETER_1 = 0xc00000ef
+STATUS_INVALID_SYSTEM_SERVICE = 0xc000001c
+STATUS_INTEGER_DIVIDE_BY_ZERO = 0xc0000094
+STATUS_INTEGER_OVERFLOW = 0xc0000095
+STATUS_IN_PAGE_ERROR = 0xc0000006
+STATUS_KERNEL_APC = 0x100
+STATUS_LONGJUMP = 0x80000026
+STATUS_NO_CALLBACK_ACTIVE = 0xc0000258
+STATUS_NO_EVENT_PAIR = 0xc000014e
+STATUS_PRIVILEGED_INSTRUCTION = 0xc0000096
+STATUS_SINGLE_STEP = 0x80000004
+STATUS_STACK_BUFFER_OVERRUN = 0xc0000409
+STATUS_STACK_OVERFLOW = 0xc00000fd
+STATUS_SUCCESS = 0x0
+STATUS_THREAD_IS_TERMINATING = 0xc000004b
+STATUS_TIMEOUT = 0x102
+STATUS_UNWIND = 0xc0000027
+STATUS_UNWIND_CONSOLIDATE = 0x80000029
+STATUS_USER_APC = 0xc0
+STATUS_WAKE_SYSTEM_DEBUGGER = 0x80000007
+
+/* TLS defines */
+TLS_MINIMUM_AVAILABLE = 0x40
+TLS_EXPANSION_SLOTS = 0x400
+
+/* Thread states */
+Initialized = 0x0
+Ready = 0x1
+Running = 0x2
+Standby = 0x3
+Terminated = 0x4
+Waiting = 0x5
+
+/* Wait type / reason */
+WrExecutive = 0x7
+WrMutex = 0x1d
+WrDispatchInt = 0x1f
+WrQuantumEnd = 0x1e
+WrEventPair = 0xe
+WaitAny = 0x1
+WaitAll = 0x0
+
+/* Interrupt object types */
+InLevelSensitive = 0x0
+InLatched = 0x1
+
+/* Bug Check Codes */
+APC_INDEX_MISMATCH = 0x1
+INVALID_AFFINITY_SET = 0x3
+INVALID_DATA_ACCESS_TRAP = 0x4
+IRQL_NOT_GREATER_OR_EQUAL = 0x9
+IRQL_NOT_LESS_OR_EQUAL = 0xa
+NO_USER_MODE_CONTEXT = 0xe
+SPIN_LOCK_ALREADY_OWNED = 0xf
+SPIN_LOCK_NOT_OWNED = 0x10
+THREAD_NOT_MUTEX_OWNER = 0x11
+TRAP_CAUSE_UNKNOWN = 0x12
+KMODE_EXCEPTION_NOT_HANDLED = 0x1e
+KERNEL_APC_PENDING_DURING_EXIT = 0x20
+PANIC_STACK_SWITCH = 0x2b
+DATA_BUS_ERROR = 0x2e
+INSTRUCTION_BUS_ERROR = 0x2f
+SYSTEM_EXIT_OWNED_MUTEX = 0x39
+PAGE_FAULT_WITH_INTERRUPTS_OFF = 0x49
+IRQL_GT_ZERO_AT_SYSTEM_SERVICE = 0x4a
+DATA_COHERENCY_EXCEPTION = 0x55
+INSTRUCTION_COHERENCY_EXCEPTION = 0x56
+HAL1_INITIALIZATION_FAILED = 0x61
+UNEXPECTED_KERNEL_MODE_TRAP = 0x7f
+NMI_HARDWARE_FAILURE = 0x80
+SPIN_LOCK_INIT_FAILURE = 0x81
+ATTEMPTED_SWITCH_FROM_DPC = 0xb8
+
+/* IRQL */
+PASSIVE_LEVEL = 0x0
+APC_LEVEL = 0x1
+DISPATCH_LEVEL = 0x2
+CLOCK_LEVEL = 0xd
+IPI_LEVEL = 0xe
+POWER_LEVEL = 0xe
+PROFILE_LEVEL = 0xf
+HIGH_LEVEL = 0xf
+#ifdef NT_UP
+SYNCH_LEVEL = 0x2
+#else
+SYNCH_LEVEL = 0xc
+#endif
+
+/* Stack sizes */
+KERNEL_STACK_SIZE = 0x6000
+KERNEL_LARGE_STACK_SIZE = 0x12000
+KERNEL_LARGE_STACK_COMMIT = 0x6000
+KERNEL_MCA_EXCEPTION_STACK_SIZE = 0x2000
+NMI_STACK_SIZE = 0x2000
+
+/* Miscellaneous Definitions */
+LOW_REALTIME_PRIORITY = 0x10
+CLOCK_QUANTUM_DECREMENT = 0x3
+WAIT_QUANTUM_DECREMENT = 0x1
+MAXIMUM_PROCESSORS = 0x40
+INITIAL_STALL_COUNT = 0x64
+KI_EXCEPTION_ACCESS_VIOLATION = 0x10000004
+Executive = 0x0
+FALSE = 0x0
+TRUE = 0x1
+DBG_STATUS_CONTROL_C = 0x1
+USER_SHARED_DATA = 0x7ffe0000
+PAGE_SIZE = 0x1000
+MAXIMUM_IDTVECTOR = 0xff
+PRIMARY_VECTOR_BASE = 0x30
+RPL_MASK = 0x3
+MODE_MASK = 0x1
+NUMBER_SERVICE_TABLES = 0x2
+SERVICE_NUMBER_MASK = 0xfff
+SERVICE_TABLE_SHIFT = 0x7
+SERVICE_TABLE_MASK = 0x20
+SERVICE_TABLE_TEST = 0x20
+
+/* KAPC */
+ApType = 0x0
+ApSize = 0x2
+ApThread = 0x8
+ApApcListEntry = 0x10
+ApKernelRoutine = 0x20
+ApRundownRoutine = 0x28
+ApNormalRoutine = 0x30
+ApNormalContext = 0x38
+ApSystemArgument1 = 0x40
+ApSystemArgument2 = 0x48
+ApApcStateIndex = 0x50
+ApApcMode = 0x51
+ApInserted = 0x52
+ApcObjectLength = 0x58
+
+/* KAPC_STATE */
+AsApcListHead = 0x0
+AsProcess = 0x20
+AsKernelApcInProgress = 0x28
+AsKernelApcPending = 0x29
+AsUserApcPending = 0x2a
+
+/* CLIENT_ID */
+CidUniqueProcess = 0x0
+CidUniqueThread = 0x8
+
+/* RTL_CRITICAL_SECTION */
+CsDebugInfo = 0x0
+CsLockCount = 0x8
+CsRecursionCount = 0xc
+CsOwningThread = 0x10
+CsLockSemaphore = 0x18
+CsSpinCount = 0x20
+
+/* RTL_CRITICAL_SECTION_DEBUG */
+CsType = 0x0
+CsCreatorBackTraceIndex = 0x2
+CsCriticalSection = 0x8
+CsProcessLocksList = 0x10
+CsEntryCount = 0x20
+CsContentionCount = 0x24
+
+/* KDEVICE_QUEUE_ENTRY */
+DeDeviceListEntry = 0x0
+DeSortKey = 0x10
+DeInserted = 0x14
+DeviceQueueEntryLength = 0x18
+
+/* KDPC */
+DpType = 0x0
+DpImportance = 0x1
+DpNumber = 0x2
+DpDpcListEntry = 0x8
+DpDeferredRoutine = 0x18
+DpDeferredContext = 0x20
+DpSystemArgument1 = 0x28
+DpSystemArgument2 = 0x30
+DpDpcData = 0x38
+DpcObjectLength = 0x40
+
+/* KDEVICE_QUEUE */
+DvType = 0x0
+DvSize = 0x2
+DvDeviceListHead = 0x8
+DvSpinLock = 0x18
+DvBusy = 0x20
+DeviceQueueObjectLength = 0x28
+
+/* EXCEPTION_RECORD */
+ErExceptionCode = 0x0
+ErExceptionFlags = 0x4
+ErExceptionRecord = 0x8
+ErExceptionAddress = 0x10
+ErNumberParameters = 0x18
+ErExceptionInformation = 0x20
+ExceptionRecordLength = 0x98
+EXCEPTION_RECORD_LENGTH = 0x98
+
+/* EPROCESS */
+EpDebugPort = 0x110
+EpVdmObjects = 0x1f0
+ExecutiveProcessObjectLength = 0x3a0
+
+/* KEVENT */
+EvType = 0x0
+EvSize = 0x2
+EvSignalState = 0x4
+EvWaitListHead = 0x8
+EventObjectLength = 0x18
+
+/* FAST_MUTEX */
+FmCount = 0x0
+FmOwner = 0x8
+FmContention = 0x10
+FmOldIrql = 0x30
+
+/* KINTERRUPT */
+InType = 0x0
+InSize = 0x2
+InInterruptListEntry = 0x8
+InServiceRoutine = 0x18
+InServiceContext = 0x20
+InSpinLock = 0x28
+InTickCount = 0x30
+InActualLock = 0x38
+InDispatchAddress = 0x40
+InVector = 0x48
+InIrql = 0x4c
+InSynchronizeIrql = 0x4d
+InFloatingSave = 0x4e
+InConnected = 0x4f
+InNumber = 0x50
+InShareVector = 0x51
+InMode = 0x54
+InServiceCount = 0x58
+InDispatchCount = 0x5c
+InDispatchCode = 0x60
+InterruptObjectLength = 0x208
+
+/* IO_STATUS_BLOCK */
+IoStatus = 0x0
+IoPointer = 0x0
+IoInformation = 0x8
+
+/* KNODE */
+KnPfnDereferenceSListHead = 0x10
+KnProcessorMask = 0x20
+KnColor = 0x28
+KnSeed = 0x2c
+KnNodeNumber = 0x2d
+KnFlags = 0x2e
+knMmShiftedColor = 0x32
+KnFreeCount = 0x36
+KnPfnDeferredList = 0x3e
+KNODE_SIZE = 0x46
+
+/* KSPIN_LOCK_QUEUE */
+LqNext = 0x0
+LqLock = 0x8
+
+/* KLOCK_QUEUE_HANDLE */
+LqhNext = 0x0
+LqhLock = 0x8
+LqhOldIrql = 0x10
+LOCK_QUEUE_HEADER_SIZE = 0x18
+
+/* LARGE_INTEGER */
+LiLowPart = 0x0
+LiHighPart = 0x4
+
+/* LIST_ENTRY */
+LsFlink = 0x0
+LsBlink = 0x8
+
+/* PEB */
+PeKernelCallbackTable = 0x58
+ProcessEnvironmentBlockLength = 0x358
+
+/* KPROFILE */
+PfType = 0x0
+PfSize = 0x2
+PfProfileListEntry = 0x8
+PfProcess = 0x18
+PfRangeBase = 0x20
+PfRangeLimit = 0x28
+PfBucketShift = 0x30
+PfBuffer = 0x38
+PfSegment = 0x40
+PfAffinity = 0x48
+PfSource = 0x50
+PfStarted = 0x54
+ProfileObjectLength = 0x58
+
+/* PORT_MESSAGE */
+PmLength = 0x0
+PmZeroInit = 0x4
+PmClientId = 0x8
+PmProcess = 0x8
+PmThread = 0x10
+PmMessageId = 0x18
+PmClientViewSize = 0x1c
+PortMessageLength = 0x24
+
+/* KPROCESS */
+PrType = 0x0
+PrSize = 0x2
+PrSignalState = 0x4
+PrProfileListHead = 0x18
+PrDirectoryTableBase = 0x28
+PrActiveProcessors = 0x30
+PrKernelTime = 0x34
+PrUserTime = 0x38
+PrReadyListHead = 0x40
+PrSwapListEntry = 0x50
+PrThreadListHead = 0x60
+PrProcessLock = 0x70
+PrAffinity = 0x78
+PrProcessFlags = 0x80
+PrBasePriority = 0x84
+PrQuantumReset = 0x85
+PrState = 0x86
+PrStackCount = 0x8c
+KernelProcessObjectLength = 0xa0
+
+/* KQUEUE */
+QuType = 0x0
+QuSize = 0x2
+QuSignalState = 0x4
+QuEntryListHead = 0x18
+QuCurrentCount = 0x28
+QuMaximumCount = 0x2c
+QuThreadListHead = 0x30
+QueueObjectLength = 0x40
+
+/* STRING */
+StrLength = 0x0
+StrMaximumLength = 0x2
+StrBuffer = 0x8
+
+/* TEB */
+TeCmTeb = 0x0
+TeStackBase = 0x8
+TeStackLimit = 0x10
+TeFiberData = 0x20
+TeSelf = 0x30
+TeEnvironmentPointer = 0x38
+TeClientId = 0x40
+TeActiveRpcHandle = 0x50
+TeThreadLocalStoragePointer = 0x58
+TeCountOfOwnedCriticalSections = 0x6c
+TePeb = 0x60
+TeCsrClientThread = 0x70
+TeWOW32Reserved = 0x100
+TeExceptionCode = 0x2c0
+TeActivationContextStackPointer = 0x2c8
+TeGdiClientPID = 0x7f0
+TeGdiClientTID = 0x7f4
+TeGdiThreadLocalInfo = 0x7f8
+TeglDispatchTable = 0x9f0
+TeglReserved1 = 0x1138
+TeglReserved2 = 0x1220
+TeglSectionInfo = 0x1228
+TeglSection = 0x1230
+TeglTable = 0x1238
+TeglCurrentRC = 0x1240
+TeglContext = 0x1248
+TeDeallocationStack = 0x1478
+TeTlsSlots = 0x1480
+TeTlsExpansionSlots = 0x1780
+TeLastErrorValue = 0x68
+TeVdm = 0x1690
+TeInstrumentation = 0x16b8
+TeGdiBatchCount = 0x1740
+TeGuaranteedStackBytes = 0x1748
+TeFlsData = 0x17c8
+ThreadEnvironmentBlockLength = 0x17d8
+
+/* TIME_FIELDS */
+TfSecond = 0xa
+TfMinute = 0x8
+TfHour = 0x6
+TfWeekday = 0xe
+TfDay = 0x4
+TfMonth = 0x2
+TfYear = 0x0
+TfMilliseconds = 0xc
+
+/* KTHREAD */
+ThType = 0x0
+ThSize = 0x2
+ThLock = 0x0
+ThDebugActive = 0x3
+ThSignalState = 0x4
+ThInitialStack = 0x28
+ThStackLimit = 0x30
+ThKernelStack = 0x38
+ThThreadLock = 0x40
+ThAlerted = 0x9e
+ThApcState = 0x48
+ThPriority = 0x9b
+ThSwapBusy = 0x9d
+ThNextProcessor = 0x60
+ThDeferredProcessor = 0x61
+ThApcQueueLock = 0x78
+ThContextSwitches = 0x80
+ThState = 0x84
+ThNpxState = 0x85
+ThWaitIrql = 0x86
+ThWaitMode = 0x87
+ThWaitStatus = 0x88
+ThWaitBlockList = 0x90
+ThGateObject = 0x90
+ThWaitListEntry = 0xa0
+ThSwapListEntry = 0xa0
+ThQueue = 0xb0
+ThWaitTime = 0xb8
+ThCombinedApcDisable = 0xbc
+ThKernelApcDisable = 0xbc
+ThSpecialApcDisable = 0xbe
+ThTeb = 0xc0
+ThTimer = 0xc8
+ThThreadFlags = 0xf0
+ThServiceTable = 0x1e8
+ThWaitBlock = 0x108
+ThResourceIndex = 0x14f
+ThQueueListEntry = 0x1c8
+ThTrapFrame = 0x1d8
+ThCallbackStack = 0x1e0
+ThApcStateIndex = 0x1f0
+ThIdealProcessor = 0x1f1
+ThBasePriority = 0x1f5
+ThPriorityDecrement = 0x1f6
+ThAdjustReason = 0x62
+ThAdjustIncrement = 0x63
+ThPreviousMode = 0x137
+ThSaturation = 0x1f7
+ThFreezeCount = 0x237
+ThUserAffinity = 0x1f8
+ThProcess = 0x200
+ThAffinity = 0x208
+ThUserIdealProcessor = 0x239
+ThApcStatePointer = 0x210
+ThSavedApcState = 0x220
+ThWaitReason = 0x9a
+ThSuspendCount = 0x238
+ThWin32Thread = 0x250
+ThStackBase = 0x258
+ThSuspendApc = 0x260
+ThPowerState = 0x28f
+ThKernelTime = 0x264
+ThLegoData = 0x288
+ThLargeStack = 0x167
+ThUserTime = 0x290
+ThSuspendSemaphore = 0x2b8
+ThSListFaultCount = 0x2cc
+ThThreadListEntry = 0x2d8
+ThMutantListHead = 0x18
+ThSListFaultAddress = 0x2e8
+KernelThreadObjectLength = 0x2f0
+ExecutiveThreadObjectLength = 0x3f8
+
+/* KTIMER */
+TiType = 0x0
+TiSize = 0x2
+TiInserted = 0x3
+TiSignalState = 0x4
+TiDueTime = 0x18
+TiTimerListEntry = 0x20
+TiDpc = 0x30
+TiPeriod = 0x3c
+TimerObjectLength = 0x40
+
+/* TIME */
+
+/* KUSER_SHARED_DATA */
+UsTickCountMultiplier = 0x4
+UsInterruptTime = 0x8
+UsSystemTime = 0x14
+UsTimeZoneBias = 0x20
+UsImageNumberLow = 0x2c
+UsImageNumberHigh = 0x2e
+UsNtSystemRoot = 0x30
+UsMaxStackTraceDepth = 0x238
+UsCryptoExponent = 0x23c
+UsTimeZoneId = 0x240
+UsLargePageMinimum = 0x244
+UsReserved2 = 0x248
+UsNtProductType = 0x264
+UsProductTypeIsValid = 0x268
+UsNtMajorVersion = 0x26c
+UsNtMinorVersion = 0x270
+UsProcessorFeatures = 0x274
+UsReserved1 = 0x2b4
+UsReserved3 = 0x2b8
+UsTimeSlip = 0x2bc
+UsAlternativeArchitecture = 0x2c0
+UsSystemExpirationDate = 0x2c8
+UsSuiteMask = 0x2d0
+UsKdDebuggerEnabled = 0x2d4
+UsActiveConsoleId = 0x2d8
+UsDismountCount = 0x2dc
+UsComPlusPackage = 0x2e0
+UsLastSystemRITEventTickCount = 0x2e4
+UsNumberOfPhysicalPages = 0x2e8
+UsSafeBootMode = 0x2ec
+UsTestRetInstruction = 0x2f8
+UsSystemCall = 0x300
+UsSystemCallReturn = 0x304
+UsSystemCallPad = 0x308
+UsTickCount = 0x320
+UsTickCountQuad = 0x320
+UsWow64SharedInformation = 0x340
+
+/* KWAIT_BLOCK */
+WbWaitListEntry = 0x0
+WbThread = 0x10
+WbObject = 0x18
+WbNextWaitBlock = 0x20
+WbWaitKey = 0x28
+WbWaitType = 0x2a
+
+/* CR0 flags */
+CR0_PE = 0x1
+CR0_MP = 0x2
+CR0_EM = 0x4
+CR0_TS = 0x8
+CR0_ET = 0x10
+CR0_NE = 0x20
+CR0_WP = 0x10000
+CR0_AM = 0x40000
+CR0_NW = 0x20000000
+CR0_CD = 0x40000000
+CR0_PG = 0x80000000
+
+/* CR4 flags */
+CR4_VME = 0x1
+CR4_PVI = 0x2
+CR4_TSD = 0x4
+CR4_DE = 0x8
+CR4_PSE = 0x10
+CR4_PAE = 0x20
+CR4_MCE = 0x40
+CR4_PGE = 0x80
+CR4_FXSR = 0x200
+CR4_XMMEXCPT = 0x400
+CR4_CHANNELS = 0x800
+
+/* KeFeatureBits flags */
+KF_RDTSC = 0x2
+KF_CR4 = 0x4
+KF_GLOBAL_PAGE = 0x10
+KF_LARGE_PAGE = 0x20
+KF_CMPXCHG8B = 0x80
+KF_FAST_SYSCALL = 0x1000
+
+/* Machine type definitions */
+MACHINE_TYPE_ISA = 0x0
+MACHINE_TYPE_EISA = 0x1
+MACHINE_TYPE_MCA = 0x2
+
+/* EFLAGS */
+EFLAGS_TF_MASK = 0x100
+EFLAGS_TF_SHIFT = 0x8
+EFLAGS_IF_MASK = 0x200
+EFLAGS_IF_SHIFT = 0x9
+EFLAGS_ID_MASK = 0x200000
+
+/* Hypervisor Enlightenment Definitions */
+
+/* KDGT selectors */
+KGDT64_NULL = 0x0
+KGDT64_R0_CODE = 0x10
+KGDT64_R0_DATA = 0x18
+KGDT64_R3_CMCODE = 0x20
+KGDT64_R3_DATA = 0x28
+KGDT64_R3_CODE = 0x30
+KGDT64_SYS_TSS = 0x40
+KGDT64_R3_CMTEB = 0x50
+
+/* Machine Specific Register Numbers */
+MSR_EFER = 0xc0000080
+MSR_STAR = 0xc0000081
+MSR_LSTAR = 0xc0000082
+MSR_CSTAR = 0xc0000083
+MSR_SYSCALL_MASK = 0xc0000084
+MSR_FS_BASE = 0xc0000100
+MSR_GS_BASE = 0xc0000101
+MSR_GS_SWAP = 0xc0000102
+MSR_MCG_STATUS = 0x17a
+MSR_AMD_ACCESS = 0x9c5a203a
+
+/* Flags for MSR_EFER */
+MSR_LMA = 0x400
+MSR_LME = 0x100
+MSR_SCE = 0x1
+MSR_NXE = 0x800
+MSR_PAT = 0x277
+MSR_DEGUG_CTL = 0x1d9
+MSR_LAST_BRANCH_FROM = 0x1db
+MSR_LAST_BRANCH_TO = 0x1dc
+MSR_LAST_EXCEPTION_FROM = 0x1dd
+MSR_LAST_EXCEPTION_TO = 0x1de
+
+/* Flags for MSR_DEGUG_CTL */
+
+/* Fatal exception codes */
+EXCEPTION_DIVIDED_BY_ZERO = 0x0
+EXCEPTION_DEBUG = 0x1
+EXCEPTION_NMI = 0x2
+EXCEPTION_INT3 = 0x3
+EXCEPTION_BOUND_CHECK = 0x5
+EXCEPTION_INVALID_OPCODE = 0x6
+EXCEPTION_NPX_NOT_AVAILABLE = 0x7
+EXCEPTION_DOUBLE_FAULT = 0x8
+EXCEPTION_NPX_OVERRUN = 0x9
+EXCEPTION_INVALID_TSS = 0xa
+EXCEPTION_SEGMENT_NOT_PRESENT = 0xb
+EXCEPTION_STACK_FAULT = 0xc
+EXCEPTION_GP_FAULT = 0xd
+EXCEPTION_RESERVED_TRAP = 0xf
+EXCEPTION_NPX_ERROR = 0x10
+EXCEPTION_ALIGNMENT_CHECK = 0x11
+
+/* Argument Home Address */
+P1Home = 0x0
+P2Home = 0x0
+P3Home = 0x0
+P4Home = 0x0
+
+/* CONTEXT */
+CONTEXT_P1Home = 0x0
+CONTEXT_P2Home = 0x8
+CONTEXT_P3Home = 0x10
+CONTEXT_P4Home = 0x18
+CONTEXT_P5Home = 0x20
+CONTEXT_P6Home = 0x28
+CONTEXT_ContextFlags = 0x30
+CONTEXT_MxCsr = 0x34
+CONTEXT_SegCs = 0x38
+CONTEXT_SegDs = 0x3a
+CONTEXT_SegEs = 0x3c
+CONTEXT_SegFs = 0x3e
+CONTEXT_SegGs = 0x40
+CONTEXT_SegSs = 0x42
+CONTEXT_EFlags = 0x44
+CONTEXT_Dr0 = 0x48
+CONTEXT_Dr1 = 0x50
+CONTEXT_Dr2 = 0x58
+CONTEXT_Dr3 = 0x60
+CONTEXT_Dr6 = 0x68
+CONTEXT_Dr7 = 0x70
+CONTEXT_Rax = 0x78
+CONTEXT_Rcx = 0x80
+CONTEXT_Rdx = 0x88
+CONTEXT_Rbx = 0x90
+CONTEXT_Rsp = 0x98
+CONTEXT_Rbp = 0xa0
+CONTEXT_Rsi = 0xa8
+CONTEXT_Rdi = 0xb0
+CONTEXT_R8 = 0xb8
+CONTEXT_R9 = 0xc0
+CONTEXT_R10 = 0xc8
+CONTEXT_R11 = 0xd0
+CONTEXT_R12 = 0xd8
+CONTEXT_R13 = 0xe0
+CONTEXT_R14 = 0xe8
+CONTEXT_R15 = 0xf0
+CONTEXT_Rip = 0xf8
+CONTEXT_FltSave = 0x100
+CONTEXT_Xmm0 = 0x1a0
+CONTEXT_Xmm1 = 0x1b0
+CONTEXT_Xmm2 = 0x1c0
+CONTEXT_Xmm3 = 0x1d0
+CONTEXT_Xmm4 = 0x1e0
+CONTEXT_Xmm5 = 0x1f0
+CONTEXT_Xmm6 = 0x200
+CONTEXT_Xmm7 = 0x210
+CONTEXT_Xmm8 = 0x220
+CONTEXT_Xmm9 = 0x230
+CONTEXT_Xmm10 = 0x240
+CONTEXT_Xmm11 = 0x250
+CONTEXT_Xmm12 = 0x260
+CONTEXT_Xmm13 = 0x270
+CONTEXT_Xmm14 = 0x280
+CONTEXT_Xmm15 = 0x290
+CONTEXT_DebugControl = 0x4a8
+CONTEXT_LastBranchToRip = 0x4b0
+CONTEXT_LastBranchFromRip = 0x4b8
+CONTEXT_LastExceptionToRip = 0x4c0
+CONTEXT_LastExceptionFromRip = 0x4c8
+CONTEXT_VectorControl = 0x4a0
+CONTEXT_VectorRegister = 0x300
+CONTEXT_FRAME_LENGTH = 0x4d0
+
+/* DISPATCHER_CONTEXT */
+DcControlPc = 0x0
+DcImageBase = 0x8
+DcFunctionEntry = 0x10
+DcEstablisherFrame = 0x18
+DcTargetIp = 0x20
+DcContextRecord = 0x28
+DcLanguageHandler = 0x30
+DcHandlerData = 0x38
+DcHistoryTable = 0x40
+DcScopeIndex = 0x48
+
+/* KEXCEPTION_FRAME */
+KEXCEPTION_FRAME_P1Home = 0x0
+KEXCEPTION_FRAME_P2Home = 0x8
+KEXCEPTION_FRAME_P3Home = 0x10
+KEXCEPTION_FRAME_P4Home = 0x18
+KEXCEPTION_FRAME_P5 = 0x20
+KEXCEPTION_FRAME_Xmm6 = 0x30
+KEXCEPTION_FRAME_Xmm7 = 0x40
+KEXCEPTION_FRAME_Xmm8 = 0x50
+KEXCEPTION_FRAME_Xmm9 = 0x60
+KEXCEPTION_FRAME_Xmm10 = 0x70
+KEXCEPTION_FRAME_Xmm11 = 0x80
+KEXCEPTION_FRAME_Xmm12 = 0x90
+KEXCEPTION_FRAME_Xmm13 = 0xa0
+KEXCEPTION_FRAME_Xmm14 = 0xb0
+KEXCEPTION_FRAME_Xmm15 = 0xc0
+KEXCEPTION_FRAME_MxCsr = 0xf0
+KEXCEPTION_FRAME_Rbp = 0xf8
+KEXCEPTION_FRAME_Rbx = 0x100
+KEXCEPTION_FRAME_Rdi = 0x108
+KEXCEPTION_FRAME_Rsi = 0x110
+KEXCEPTION_FRAME_R12 = 0x118
+KEXCEPTION_FRAME_R13 = 0x120
+KEXCEPTION_FRAME_R14 = 0x128
+KEXCEPTION_FRAME_R15 = 0x130
+KEXCEPTION_FRAME_Return = 0x138
+KEXCEPTION_FRAME_InitialStack = 0x28
+KEXCEPTION_FRAME_TrapFrame = 0xd0
+KEXCEPTION_FRAME_CallbackStack = 0xd8
+KEXCEPTION_FRAME_OutputBuffer = 0xe0
+KEXCEPTION_FRAME_OutputLength = 0xe8
+KEXCEPTION_FRAME_LENGTH = 0x140
+
+/* JUMP_BUFFER */
+JbFrame = 0x0
+JbRbx = 0x8
+JbRsp = 0x10
+JbRbp = 0x18
+JbRsi = 0x20
+JbRdi = 0x28
+JbR12 = 0x30
+JbR13 = 0x38
+JbR14 = 0x40
+JbR15 = 0x48
+JbRip = 0x50
+JbXmm6 = 0x60
+JbXmm7 = 0x70
+JbXmm8 = 0x80
+JbXmm9 = 0x90
+JbXmm10 = 0xa0
+JbXmm11 = 0xb0
+JbXmm12 = 0xc0
+JbXmm13 = 0xd0
+JbXmm14 = 0xe0
+JbXmm15 = 0xf0
+
+/* KGDTENTRY64 */
+KgdtBaseLow = 0x2
+KgdtBaseMiddle = 0x4
+KgdtBaseHigh = 0x7
+KgdtBaseUpper = 0x8
+KgdtLimitHigh = 0x6
+KgdtLimitLow = 0x0
+
+/* KPRCB */
+PbMxCsr = 0x0
+PbNumber = 0x4
+PbInterruptRequest = 0x6
+PbIdleHalt = 0x7
+PbCurrentThread = 0x8
+PbNextThread = 0x10
+PbIdleThread = 0x18
+PbNestingLevel = 0x5
+PbRspBase = 0x28
+PbPrcbLock = 0x30
+PbSetMember = 0x38
+PbProcessorState = 0x40
+PbCpuType = 0x5f0
+PbCpuID = 0x5f1
+PbCpuStep = 0x5f2
+PbHalReserved = 0x5f8
+PbMinorVersion = 0x638
+PbMajorVersion = 0x63a
+PbBuildType = 0x63c
+PbCpuVendor = 0x63d
+PbApicMask = 0x640
+PbCFlushSize = 0x644
+PbAcpiReserved = 0x648
+PbInitialApicId = 0x63e
+PbLockQueue = 0x670
+PbPPLookasideList = 0x880
+PbPPNPagedLookasideList = 0x980
+PbPPPagedLookasideList = 0xb80
+PbPacketBarrier = 0xd80
+PbDeferredReadyListHead = 0xd88
+PbLookasideIrpFloat = 0xdc4
+PbTargetSet = 0xe00
+PbIpiFrozen = 0xe08
+PbRequestMailbox = 0xe80
+PbSenderSummary = 0x2680
+PbDpcStack = 0x2740
+PbMaximumDpcQueueDepth = 0x2750
+PbDpcRequestRate = 0x2754
+PbMinimumDpcRate = 0x2758
+PbDpcInterruptRequested = 0x275c
+PbDpcThreadRequested = 0x275d
+PbDpcRoutineActive = 0x275e
+PbDpcThreadActive = 0x275f
+PbTimerHand = 0x2760
+PbTimerRequest = 0x2768
+PbTickOffset = 0x2770
+PbMasterOffset = 0x2774
+PbDpcLastCount = 0x2778
+PbQuantumEnd = 0x277d
+PbDpcSetEventRequest = 0x2780
+PbIdleSchedule = 0x277f
+PbReadySummary = 0x2818
+PbDispatcherReadyListHead = 0x2820
+PbInterruptCount = 0x2a20
+PbKernelTime = 0x2a24
+PbUserTime = 0x2a28
+PbDpcTime = 0x2a2c
+PbInterruptTime = 0x2a30
+PbAdjustDpcThreshold = 0x2a34
+PbSkipTick = 0x2a38
+PbPollSlot = 0x2a3a
+PbParentNode = 0x2a48
+PbMultiThreadProcessorSet = 0x2a50
+PbMultiThreadSetMaster = 0x2a58
+PbPageColor = 0x2a6c
+PbNodeColor = 0x2a70
+PbNodeShiftedColor = 0x2a74
+PbSecondaryColorMask = 0x2a78
+PbSleeping = 0x2a60
+PbVendorString = 0x2abc
+PbPowerState = 0x2ad8
+ProcessorBlockLength = 0x2c88
+
+/* KPCR */
+PcUserRsp = 0x10
+PcSelf = 0x18
+PcCurrentPrcb = 0x20
+PcLockArray = 0x28
+PcIrql = 0x50
+PcStallScaleFactor = 0x64
+PcHalReserved = 0xc0
+
+/* KPROCESSOR_STATE */
+PsSpecialRegisters = 0x0
+PsCr0 = 0x0
+PsCr2 = 0x8
+PsCr3 = 0x10
+PsCr4 = 0x18
+PsKernelDr0 = 0x20
+PsKernelDr1 = 0x28
+PsKernelDr2 = 0x30
+PsKernelDr3 = 0x38
+PsKernelDr6 = 0x40
+PsKernelDr7 = 0x48
+PsGdtr = 0x50
+PsIdtr = 0x60
+PsTr = 0x70
+PsLdtr = 0x72
+PsMxCsr = 0x74
+PsContextFrame = 0xe0
+PsDebugControl = 0x78
+PsLastBranchToRip = 0x80
+PsLastBranchFromRip = 0x88
+PsLastExceptionToRip = 0x90
+PsLastExceptionFromRip = 0x98
+PsCr8 = 0xa0
+ProcessorStateLength = 0x5b0
+
+/* KSTART_FRAME */
+SfP1Home = 0x0
+SfP2Home = 0x8
+SfP3Home = 0x10
+SfP4Home = 0x18
+SfReturn = 0x28
+KSTART_FRAME_LENGTH = 0x30
+
+/* KSPECIAL_REGISTERS */
+SrKernelDr0 = 0x20
+SrKernelDr1 = 0x28
+SrKernelDr2 = 0x30
+SrKernelDr3 = 0x38
+SrKernelDr6 = 0x40
+SrKernelDr7 = 0x48
+SrGdtr = 0x50
+SrIdtr = 0x60
+SrTr = 0x70
+SrMxCsr = 0x74
+SrMsrGsBase = 0xa8
+SrMsrGsSwap = 0xb0
+SrMsrStar = 0xb8
+SrMsrLStar = 0xc0
+SrMsrCStar = 0xc8
+SrMsrSyscallMask = 0xd0
+
+/* KSYSTEM_TIME */
+StLowTime = 0x0
+StHigh1Time = 0x4
+StHigh2Time = 0x8
+
+/* KSWITCH_FRAME */
+SwP5Home = 0x20
+SwApcBypass = 0x28
+SwRbp = 0x30
+SwReturn = 0x38
+SwitchFrameLength = 0x40
+KSWITCH_FRAME_LENGTH = 0x40
+
+/* KTRAP_FRAME */
+KTRAP_FRAME_P1Home = 0x0
+KTRAP_FRAME_P2Home = 0x8
+KTRAP_FRAME_P3Home = 0x10
+KTRAP_FRAME_P4Home = 0x18
+KTRAP_FRAME_P5 = 0x20
+KTRAP_FRAME_PreviousMode = 0x28
+KTRAP_FRAME_PreviousIrql = 0x29
+KTRAP_FRAME_FaultIndicator = 0x2a
+KTRAP_FRAME_ExceptionActive = 0x2b
+KTRAP_FRAME_MxCsr = 0x2c
+KTRAP_FRAME_Rax = 0x30
+KTRAP_FRAME_Rcx = 0x38
+KTRAP_FRAME_Rdx = 0x40
+KTRAP_FRAME_R8 = 0x48
+KTRAP_FRAME_R9 = 0x50
+KTRAP_FRAME_R10 = 0x58
+KTRAP_FRAME_R11 = 0x60
+KTRAP_FRAME_GsBase = 0x68
+KTRAP_FRAME_GsSwap = 0x68
+KTRAP_FRAME_Xmm0 = 0x70
+KTRAP_FRAME_Xmm1 = 0x80
+KTRAP_FRAME_Xmm2 = 0x90
+KTRAP_FRAME_Xmm3 = 0xa0
+KTRAP_FRAME_Xmm4 = 0xb0
+KTRAP_FRAME_Xmm5 = 0xc0
+KTRAP_FRAME_FaultAddress = 0xd0
+KTRAP_FRAME_TimeStampCKCL = 0xd0
+KTRAP_FRAME_Dr0 = 0xd8
+KTRAP_FRAME_Dr1 = 0xe0
+KTRAP_FRAME_Dr2 = 0xe8
+KTRAP_FRAME_Dr3 = 0xf0
+KTRAP_FRAME_Dr6 = 0xf8
+KTRAP_FRAME_Dr7 = 0x100
+KTRAP_FRAME_DebugControl = 0x108
+KTRAP_FRAME_LastBranchToRip = 0x110
+KTRAP_FRAME_LastBranchFromRip = 0x118
+KTRAP_FRAME_LastExceptionToRip = 0x120
+KTRAP_FRAME_LastExceptionFromRip = 0x128
+KTRAP_FRAME_LastBranchControl = 0x108
+KTRAP_FRAME_LastBranchMSR = 0x110
+KTRAP_FRAME_SegDs = 0x130
+KTRAP_FRAME_SegEs = 0x132
+KTRAP_FRAME_SegFs = 0x134
+KTRAP_FRAME_SegGs = 0x136
+KTRAP_FRAME_TrapFrame = 0x138
+KTRAP_FRAME_Rbx = 0x140
+KTRAP_FRAME_Rdi = 0x148
+KTRAP_FRAME_Rsi = 0x150
+KTRAP_FRAME_Rbp = 0x158
+KTRAP_FRAME_ErrorCode = 0x160
+KTRAP_FRAME_TimeStampKlog = 0x160
+KTRAP_FRAME_Rip = 0x168
+KTRAP_FRAME_SegCs = 0x170
+KTRAP_FRAME_Logging = 0x173
+KTRAP_FRAME_EFlags = 0x178
+KTRAP_FRAME_Rsp = 0x180
+KTRAP_FRAME_SegSs = 0x188
+KTRAP_FRAME_CodePatchCycle = 0x18c
+KTRAP_FRAME_LENGTH = 0x190
+
+/* KTSS */
+TssRsp0 = 0x4
+TssRsp1 = 0xc
+TssRsp2 = 0x14
+TssPanicStack = 0x24
+TssMcaStack = 0x2c
+TssNmiStack = 0x34
+TssIoMapBase = 0x66
+TssLength = 0x68
+
+/* EXCEPTION_RECORD */
+EXCEPTION_RECORD_ExceptionCode = 0x0
+EXCEPTION_RECORD_ExceptionFlags = 0x4
+EXCEPTION_RECORD_ExceptionRecord = 0x8
+EXCEPTION_RECORD_ExceptionAddress = 0x10
+EXCEPTION_RECORD_NumberParameters = 0x18
+EXCEPTION_RECORD_ExceptionInformation = 0x20
+KTHREAD_WAIT_IRQL = 0x86
Propchange: trunk/reactos/include/reactos/ksamd64.inc
------------------------------------------------------------------------------
svn:eol-style = native