VirtualBox

source: vbox/trunk/src/VBox/VMM/testcase/Instructions/env-bs2-r0.mac@ 46917

Last change on this file since 46917 was 46917, checked in by vboxsync, 12 years ago

bs2 + VBoxInsTst hacking.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1; $Id: env-bs2-r0.mac 46917 2013-07-02 17:44:45Z vboxsync $
2;; @file
3; Instruction Test Environment - Boot Sector Type 2, Ring-0.
4;
5
6;
7; Copyright (C) 2006-2013 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%ifndef ___env_bs2_r0_mac
19%define ___env_bs2_r0_mac
20
21
22;; Same as BEGINPROC in asmdefs.mac.
23%macro VBINSTST_BEGINPROC 1
24VBINSTST_GLOBALNAME_EX %1, function hidden
25%endm
26
27;; Same as ENDPROC in asmdefs.mac.
28%macro VBINSTST_ENDPROC 1,
29VBINSTST_GLOBALNAME_EX %1 %+ _EndProc, function hidden
30%endm
31
32;; Same as NAME in asmdefs.mac.
33%define VBINSTST_NAME(a_Name) TMPL_NM(a_Name)
34
35;; Same as GLOBALNAME_EX in asmdefs.mac.
36%macro VBINSTST_GLOBALNAME_EX 2,
37VBINSTST_NAME(%1):
38%endmacro
39
40;; Same as BEGINCODE in asmdefs.mac.
41%macro VBINSTST_BEGINCODE 0,
42%endmacro
43
44;; Same as BEGINDATA in asmdefs.mac.
45%macro VBINSTST_BEGINDATA 0,
46%endmacro
47
48
49;; Call RTTestISub like function.
50%define VBINSTST_CALL_FN_SUB_TEST call TMPL_NM_CMN(TestSub)
51
52;; Call RTTestIFailure like function with simple message.
53%define VBINSTST_CALL_FN_FAILURE call TMPL_NM_CMN(TestFailedF)
54
55;; Call RTTestIFailure like function with format message + 1 arg.
56%define VBINSTST_CALL_FN_FAILURE_1 call TMPL_NM_CMN(TestFailedF)
57
58;; Call RTTestIFailure like function with format message + 2 args.
59%define VBINSTST_CALL_FN_FAILURE_2 call TMPL_NM_CMN(TestFailedF)
60
61;; Call RTTestIFailure like function with format message + 3 args.
62%define VBINSTST_CALL_FN_FAILURE_3 call TMPL_NM_CMN(TestFailedF)
63
64;; Call RTTestIFailure like function with format message + 4 args.
65%define VBINSTST_CALL_FN_FAILURE_4 call TMPL_NM_CMN(TestFailedF)
66
67
68;
69; Include the common bits (contains code using above macros)
70;
71%include "env-common.mac"
72
73%endif
74
Note: See TracBrowser for help on using the repository browser.

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