~ubuntu-branches/ubuntu/raring/virtualbox-ose/raring

« back to all changes in this revision

Viewing changes to src/VBox/VMM/VMMInternal.mac

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
; $Id: VMMInternal.mac $
2
 
;; @file
3
 
; VMM - Internal header file.
4
 
;
5
 
 
6
 
;
7
 
; Copyright (C) 2006-2009 Oracle Corporation
8
 
;
9
 
; This file is part of VirtualBox Open Source Edition (OSE), as
10
 
; available from http://www.virtualbox.org. This file is free software;
11
 
; you can redistribute it and/or modify it under the terms of the GNU
12
 
; General Public License (GPL) as published by the Free Software
13
 
; Foundation, in version 2 as it comes in the "COPYING" file of the
14
 
; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15
 
; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16
 
;
17
 
 
18
 
%include "VBox/asmdefs.mac"
19
 
 
20
 
;
21
 
; Determin the default stack switching unless specified explicitly.
22
 
;
23
 
%ifndef VMM_R0_SWITCH_STACK
24
 
 %ifndef VMM_R0_NO_SWITCH_STACK
25
 
  %ifdef RT_OS_DARWIN
26
 
   %define VMM_R0_SWITCH_STACK
27
 
  %endif
28
 
 %endif
29
 
%endif
30
 
 
31
 
 
32
 
struc VMMR0JMPBUF
33
 
%ifdef RT_ARCH_X86
34
 
    ; traditional jmp_buf
35
 
    .ebx            resd 1
36
 
    .esi            resd 1
37
 
    .edi            resd 1
38
 
    .ebp            resd 1
39
 
    .esp            resd 1
40
 
    .eip            resd 1
41
 
    .eflags         resd 1
42
 
 
43
 
    ; additional state and stack info.
44
 
    .fInRing3Call   resd 1
45
 
    .cbSavedStack   resd 1
46
 
    .pvSavedStack   resd 1
47
 
    .SpCheck        resd 1
48
 
    .SpResume       resd 1
49
 
    .SavedEsp       resd 1
50
 
    .SavedEbp       resd 1
51
 
%endif
52
 
%ifdef RT_ARCH_AMD64
53
 
    ; traditional jmp_buf
54
 
    .rbx            resq 1
55
 
 %ifdef RT_OS_WINDOWS
56
 
    .rsi            resq 1
57
 
    .rdi            resq 1
58
 
 %endif
59
 
    .rbp            resq 1
60
 
    .r12            resq 1
61
 
    .r13            resq 1
62
 
    .r14            resq 1
63
 
    .r15            resq 1
64
 
    .rsp            resq 1
65
 
    .rip            resq 1
66
 
 %ifdef RT_OS_WINDOWS
67
 
    .xmm6           resq 2
68
 
    .xmm7           resq 2
69
 
    .xmm8           resq 2
70
 
    .xmm9           resq 2
71
 
    .xmm10          resq 2
72
 
    .xmm11          resq 2
73
 
    .xmm12          resq 2
74
 
    .xmm13          resq 2
75
 
    .xmm14          resq 2
76
 
    .xmm15          resq 2
77
 
 %endif
78
 
    .rflags         resq 1
79
 
 
80
 
    ; additional state and stack info.
81
 
    .fInRing3Call   resd 1
82
 
    .cbSavedStack   resd 1
83
 
    .pvSavedStack   resq 1
84
 
    .SpCheck        resq 1
85
 
    .SpResume       resq 1
86
 
    .SavedEsp       resq 1
87
 
    .SavedEbp       resq 1
88
 
%endif
89
 
 
90
 
    ; Statistics
91
 
    .cbUsedMax      resd 1
92
 
    .cbUsedAvg      resd 1
93
 
    .cbUsedTotal    resq 1
94
 
    .cUsedTotal     resq 1
95
 
endstruc
96