1 | ; $Id: sup.mac 36254 2011-03-10 17:22:08Z vboxsync $
|
---|
2 | ;; @file
|
---|
3 | ; SUP - Support Library, assembly definitions.
|
---|
4 | ;
|
---|
5 |
|
---|
6 | ;
|
---|
7 | ; Copyright (C) 2006-2011 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 | ; The contents of this file may alternatively be used under the terms
|
---|
18 | ; of the Common Development and Distribution License Version 1.0
|
---|
19 | ; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
20 | ; VirtualBox OSE distribution, in which case the provisions of the
|
---|
21 | ; CDDL are applicable instead of those of the GPL.
|
---|
22 | ;
|
---|
23 | ; You may elect to license modified versions of this file under the
|
---|
24 | ; terms and conditions of either the GPL or the CDDL or both.
|
---|
25 | ;
|
---|
26 |
|
---|
27 | %ifndef ___VBox_sup_mac
|
---|
28 | %define ___VBox_sup_mac
|
---|
29 |
|
---|
30 | %ifndef SUP_WITH_LOTS_OF_CPUS
|
---|
31 | %define SUPGLOBALINFOPAGE_CPUS 32
|
---|
32 | %endif
|
---|
33 |
|
---|
34 | struc SUPGIPCPU
|
---|
35 | .u32TransactionId resd 1
|
---|
36 | .u32UpdateIntervalTSC resd 1
|
---|
37 | .u64NanoTS resq 1
|
---|
38 | .u64TSC resq 1
|
---|
39 | .u64CpuHz resq 1
|
---|
40 | .cErrors resd 1
|
---|
41 | .iTSCHistoryHead resd 1
|
---|
42 | .au32TSCHistory resd 8
|
---|
43 | .u32PrevUpdateIntervalNS resd 1
|
---|
44 | %ifdef SUP_WITH_LOTS_OF_CPUS
|
---|
45 | .au32Reserved resd (5+5)
|
---|
46 | .enmState resd 1
|
---|
47 | .idCpu resd 1
|
---|
48 | .iCpuSet resw 1
|
---|
49 | .idApic resw 1
|
---|
50 | %else
|
---|
51 | .au32Reserved resd 5
|
---|
52 | %endif
|
---|
53 | endstruc
|
---|
54 |
|
---|
55 | %define SUPGLOBALINFOPAGE_MAGIC 0x19590106
|
---|
56 | struc SUPGLOBALINFOPAGE
|
---|
57 | .u32Magic resd 1
|
---|
58 | .u32Version resd 1
|
---|
59 | .u32Mode resd 1
|
---|
60 | %ifdef SUP_WITH_LOTS_OF_CPUS
|
---|
61 | .cCpus resw 1
|
---|
62 | .cPages resw 1
|
---|
63 | %else
|
---|
64 | .u32Padding0 resd 1
|
---|
65 | %endif
|
---|
66 | .u32UpdateHz resd 1
|
---|
67 | .u32UpdateIntervalNS resd 1
|
---|
68 | .u64NanoTSLastUpdateHz resq 1
|
---|
69 | %ifdef SUP_WITH_LOTS_OF_CPUS
|
---|
70 | .OnlineCpuSet resq 4
|
---|
71 | .cOnlineCpus resd 1
|
---|
72 | .cPresentCpus resd 1
|
---|
73 | .PresentCpuSet resq 4
|
---|
74 | .PossibleCpuSet resq 4
|
---|
75 | .cPossibleCpus resd 1
|
---|
76 | .idCpuMax resd 1
|
---|
77 | .au32Padding1 resd 28
|
---|
78 | .aiCpuFromApicId resw 256
|
---|
79 | .aiCpuFromCpuSetIdx resw 256
|
---|
80 | .aCPUs resb SUPGIPCPU_size
|
---|
81 | %else
|
---|
82 | .au32Padding1 resd 56
|
---|
83 | .aCPUs resb (SUPGIPCPU_size*SUPGLOBALINFOPAGE_CPUS)
|
---|
84 | %endif
|
---|
85 | endstruc
|
---|
86 |
|
---|
87 |
|
---|
88 | %endif
|
---|
89 |
|
---|