;; @file ; ; CPUM - CPU Monitor. ; ; ; Copyright (C) 2006-2007 innotek GmbH ; ; This file is part of VirtualBox Open Source Edition (OSE), as ; available from http://www.virtualbox.org. This file is free software; ; you can redistribute it and/or modify it under the terms of the GNU ; General Public License (GPL) as published by the Free Software ; Foundation, in version 2 as it comes in the "COPYING" file of the ; VirtualBox OSE distribution. VirtualBox OSE is distributed in the ; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. ; ; The contents of this file may alternatively be used under the terms ; of the Common Development and Distribution License Version 1.0 ; (CDDL) only, as it comes in the "COPYING.CDDL" file of the ; VirtualBox OSE distribution, in which case the provisions of the ; CDDL are applicable instead of those of the GPL. ; ; You may elect to license modified versions of this file under the ; terms and conditions of either the GPL or the CDDL or both. ; %ifndef __VBox_cpum_mac__ %define __VBox_cpum_mac__ ;; ; Registers frame. ; This is used internally in TRPM, VMMSwitcher_GuestToHost_GuestCtx ; and other places. struc CPUMCTXCORE .edi resq 1 .esi resq 1 .ebp resq 1 .eax resq 1 .ebx resq 1 .edx resq 1 .ecx resq 1 .esp resd 1 .ss resw 1 .ssPadding resw 1 .rsp resq 1 .gs resw 1 .gsPadding resw 1 .fs resw 1 .fsPadding resw 1 .es resw 1 .esPadding resw 1 .ds resw 1 .dsPadding resw 1 .cs resw 1 .csPadding resw 3 .eflags resq 1 .eip resq 1 .r8 resq 1 .r9 resq 1 .r10 resq 1 .r11 resq 1 .r12 resq 1 .r13 resq 1 .r14 resq 1 .r15 resq 1 .esHid.u32Base resd 1 .esHid.u32Limit resd 1 .esHid.Attr resd 1 .csHid.u32Base resd 1 .csHid.u32Limit resd 1 .csHid.Attr resd 1 .ssHid.u32Base resd 1 .ssHid.u32Limit resd 1 .ssHid.Attr resd 1 .dsHid.u32Base resd 1 .dsHid.u32Limit resd 1 .dsHid.Attr resd 1 .fsHid.u32Base resd 1 .fsHid.u32Limit resd 1 .fsHid.Attr resd 1 .gsHid.u32Base resd 1 .gsHid.u32Limit resd 1 .gsHid.Attr resd 1 endstruc struc CPUMCTX .fpu resb 512 .edi resq 1 .esi resq 1 .ebp resq 1 .eax resq 1 .ebx resq 1 .edx resq 1 .ecx resq 1 .esp resd 1 .ss resw 1 .ssPadding resw 1 .rsp resq 1 .gs resw 1 .gsPadding resw 1 .fs resw 1 .fsPadding resw 1 .es resw 1 .esPadding resw 1 .ds resw 1 .dsPadding resw 1 .cs resw 1 .csPadding resw 3 .eflags resq 1 .eip resq 1 .r8 resq 1 .r9 resq 1 .r10 resq 1 .r11 resq 1 .r12 resq 1 .r13 resq 1 .r14 resq 1 .r15 resq 1 .esHid.u32Base resd 1 .esHid.u32Limit resd 1 .esHid.Attr resd 1 .csHid.u32Base resd 1 .csHid.u32Limit resd 1 .csHid.Attr resd 1 .ssHid.u32Base resd 1 .ssHid.u32Limit resd 1 .ssHid.Attr resd 1 .dsHid.u32Base resd 1 .dsHid.u32Limit resd 1 .dsHid.Attr resd 1 .fsHid.u32Base resd 1 .fsHid.u32Limit resd 1 .fsHid.Attr resd 1 .gsHid.u32Base resd 1 .gsHid.u32Limit resd 1 .gsHid.Attr resd 1 .cr0 resq 1 .cr2 resq 1 .cr3 resq 1 .cr4 resq 1 .cr8 resq 1 .dr0 resq 1 .dr1 resq 1 .dr2 resq 1 .dr3 resq 1 .dr4 resq 1 .dr5 resq 1 .dr6 resq 1 .dr7 resq 1 .gdtr resb 6 ; GDT limit + linear address .gdtrPadding resw 1 .gdtrPadding64 resd 1 .idtr resb 6 ; IDT limit + linear address .idtrPadding resw 1 .idtrPadding64 resd 1 .ldtr resw 1 .ldtrPadding resw 1 .tr resw 1 .trPadding resw 1 .SysEnter.cs resb 8 .SysEnter.eip resb 8 .SysEnter.esp resb 8 .ldtrHid.u32Base resd 1 .ldtrHid.u32Limit resd 1 .ldtrHid.Attr resd 1 .trHid.u32Base resd 1 .trHid.u32Limit resd 1 .trHid.Attr resd 1 ; padding .padding resd 4 endstruc %endif