VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-instantiate-common.h@ 60600

Last change on this file since 60600 was 60019, checked in by vboxsync, 9 years ago

bs3kit: Fixes and updates.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.8 KB
Line 
1
2
3/*
4 * Instantiating common code (c16, c32, c64).
5 */
6#define BS3_INSTANTIATING_CMN
7
8#ifdef BS3_CMN_INSTANTIATE_FILE1
9
10# define BS3_CMN_INSTANTIATE_FILE1_B <BS3_CMN_INSTANTIATE_FILE1>
11
12# if ARCH_BITS == 16 /* 16-bit - real mode. */
13# define TMPL_MODE BS3_MODE_RM
14# include <bs3kit/bs3kit-template-header.h>
15# include BS3_CMN_INSTANTIATE_FILE1_B
16# include <bs3kit/bs3kit-template-footer.h>
17# endif
18
19# if ARCH_BITS == 32 /* 32-bit - paged protected mode. */
20# define TMPL_MODE BS3_MODE_PP32
21# include <bs3kit/bs3kit-template-header.h>
22# include BS3_CMN_INSTANTIATE_FILE1_B
23# include <bs3kit/bs3kit-template-footer.h>
24# endif
25
26# if ARCH_BITS == 64 /* 64-bit. */
27# define TMPL_MODE BS3_MODE_LM64
28# include <bs3kit/bs3kit-template-header.h>
29# include BS3_CMN_INSTANTIATE_FILE1_B
30# include <bs3kit/bs3kit-template-footer.h>
31# endif
32
33#endif
34
35#undef BS3_INSTANTIATING_CMN
36
37
38/*
39 * Instantiating code for each individual mode (rm, pe16, pe16_32, ..).
40 */
41#define BS3_INSTANTIATING_MODE
42
43#ifdef BS3_MODE_INSTANTIATE_FILE1
44
45# define BS3_MODE_INSTANTIATE_FILE1_B <BS3_MODE_INSTANTIATE_FILE1>
46
47# if ARCH_BITS == 16 /* 16-bit */
48
49# define TMPL_MODE BS3_MODE_RM
50# include <bs3kit/bs3kit-template-header.h>
51# include BS3_MODE_INSTANTIATE_FILE1_B
52# include <bs3kit/bs3kit-template-footer.h>
53
54# define TMPL_MODE BS3_MODE_PE16
55# include <bs3kit/bs3kit-template-header.h>
56# include BS3_MODE_INSTANTIATE_FILE1_B
57# include <bs3kit/bs3kit-template-footer.h>
58
59# define TMPL_MODE BS3_MODE_PE16_V86
60# include <bs3kit/bs3kit-template-header.h>
61# include BS3_MODE_INSTANTIATE_FILE1_B
62# include <bs3kit/bs3kit-template-footer.h>
63
64# define TMPL_MODE BS3_MODE_PE32_16
65# include <bs3kit/bs3kit-template-header.h>
66# include BS3_MODE_INSTANTIATE_FILE1_B
67# include <bs3kit/bs3kit-template-footer.h>
68
69# define TMPL_MODE BS3_MODE_PEV86
70# include <bs3kit/bs3kit-template-header.h>
71# include BS3_MODE_INSTANTIATE_FILE1_B
72# include <bs3kit/bs3kit-template-footer.h>
73
74# define TMPL_MODE BS3_MODE_PP16
75# include <bs3kit/bs3kit-template-header.h>
76# include BS3_MODE_INSTANTIATE_FILE1_B
77# include <bs3kit/bs3kit-template-footer.h>
78
79# define TMPL_MODE BS3_MODE_PP16_V86
80# include <bs3kit/bs3kit-template-header.h>
81# include BS3_MODE_INSTANTIATE_FILE1_B
82# include <bs3kit/bs3kit-template-footer.h>
83
84# define TMPL_MODE BS3_MODE_PP32_16
85# include <bs3kit/bs3kit-template-header.h>
86# include BS3_MODE_INSTANTIATE_FILE1_B
87# include <bs3kit/bs3kit-template-footer.h>
88
89# define TMPL_MODE BS3_MODE_PPV86
90# include <bs3kit/bs3kit-template-header.h>
91# include BS3_MODE_INSTANTIATE_FILE1_B
92# include <bs3kit/bs3kit-template-footer.h>
93
94# define TMPL_MODE BS3_MODE_PAE16
95# include <bs3kit/bs3kit-template-header.h>
96# include BS3_MODE_INSTANTIATE_FILE1_B
97# include <bs3kit/bs3kit-template-footer.h>
98
99# define TMPL_MODE BS3_MODE_PAE16_V86
100# include <bs3kit/bs3kit-template-header.h>
101# include BS3_MODE_INSTANTIATE_FILE1_B
102# include <bs3kit/bs3kit-template-footer.h>
103
104# define TMPL_MODE BS3_MODE_PAE32_16
105# include <bs3kit/bs3kit-template-header.h>
106# include BS3_MODE_INSTANTIATE_FILE1_B
107# include <bs3kit/bs3kit-template-footer.h>
108
109# define TMPL_MODE BS3_MODE_PAEV86
110# include <bs3kit/bs3kit-template-header.h>
111# include BS3_MODE_INSTANTIATE_FILE1_B
112# include <bs3kit/bs3kit-template-footer.h>
113
114# define TMPL_MODE BS3_MODE_LM16
115# include <bs3kit/bs3kit-template-header.h>
116# include BS3_MODE_INSTANTIATE_FILE1_B
117# include <bs3kit/bs3kit-template-footer.h>
118
119# endif
120
121# if ARCH_BITS == 32 /* 32-bit */
122
123# define TMPL_MODE BS3_MODE_PE16_32
124# include <bs3kit/bs3kit-template-header.h>
125# include BS3_MODE_INSTANTIATE_FILE1_B
126# include <bs3kit/bs3kit-template-footer.h>
127
128# define TMPL_MODE BS3_MODE_PE32
129# include <bs3kit/bs3kit-template-header.h>
130# include BS3_MODE_INSTANTIATE_FILE1_B
131# include <bs3kit/bs3kit-template-footer.h>
132
133# define TMPL_MODE BS3_MODE_PP16_32
134# include <bs3kit/bs3kit-template-header.h>
135# include BS3_MODE_INSTANTIATE_FILE1_B
136# include <bs3kit/bs3kit-template-footer.h>
137
138# define TMPL_MODE BS3_MODE_PP32
139# include <bs3kit/bs3kit-template-header.h>
140# include BS3_MODE_INSTANTIATE_FILE1_B
141# include <bs3kit/bs3kit-template-footer.h>
142
143# define TMPL_MODE BS3_MODE_PAE16_32
144# include <bs3kit/bs3kit-template-header.h>
145# include BS3_MODE_INSTANTIATE_FILE1_B
146# include <bs3kit/bs3kit-template-footer.h>
147
148# define TMPL_MODE BS3_MODE_PAE32
149# include <bs3kit/bs3kit-template-header.h>
150# include BS3_MODE_INSTANTIATE_FILE1_B
151# include <bs3kit/bs3kit-template-footer.h>
152
153# define TMPL_MODE BS3_MODE_LM32
154# include <bs3kit/bs3kit-template-header.h>
155# include BS3_MODE_INSTANTIATE_FILE1_B
156# include <bs3kit/bs3kit-template-footer.h>
157
158# endif
159
160# if ARCH_BITS == 64 /* 64-bit. */
161# define TMPL_MODE BS3_MODE_LM64
162# include <bs3kit/bs3kit-template-header.h>
163# include BS3_MODE_INSTANTIATE_FILE1_B
164# include <bs3kit/bs3kit-template-footer.h>
165# endif
166
167#endif
168
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette