VirtualBox

source: vbox/trunk/src/VBox/VMM/testcase/Instructions/env-iprt-r3.mac@ 99196

Last change on this file since 99196 was 98103, checked in by vboxsync, 23 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1; $Id: env-iprt-r3.mac 98103 2023-01-17 14:15:46Z vboxsync $
2;; @file
3; Instruction Test Environment - IPRT, Ring-3, 32-bit and 64-bit.
4;
5
6;
7; Copyright (C) 2006-2023 Oracle and/or its affiliates.
8;
9; This file is part of VirtualBox base platform packages, as
10; available from https://www.virtualbox.org.
11;
12; This program is free software; you can redistribute it and/or
13; modify it under the terms of the GNU General Public License
14; as published by the Free Software Foundation, in version 3 of the
15; License.
16;
17; This program is distributed in the hope that it will be useful, but
18; WITHOUT ANY WARRANTY; without even the implied warranty of
19; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20; General Public License for more details.
21;
22; You should have received a copy of the GNU General Public License
23; along with this program; if not, see <https://www.gnu.org/licenses>.
24;
25; SPDX-License-Identifier: GPL-3.0-only
26;
27
28%ifndef ___env_iprt_r3_mac
29%define ___env_iprt_r3_mac
30
31;*******************************************************************************
32;* Header Files *
33;*******************************************************************************
34%include "iprt/asmdefs.mac"
35
36
37;*******************************************************************************
38;* Defined Constants And Macros *
39;*******************************************************************************
40%define sAX xAX
41%define sBX xBX
42%define sCX xCX
43%define sDX xDX
44%define sSP xSP
45%define sBP xBP
46%define sSI xSI
47%define sDI xDI
48%define sCB xCB
49
50
51;; Same as BEGINPROC in asmdefs.mac.
52%macro VBINSTST_BEGINPROC 1
53BEGINPROC %1
54%endm
55
56;; Same as ENDPROC in asmdefs.mac.
57%macro VBINSTST_ENDPROC 1
58ENDPROC %1
59%endm
60
61;; Same as NAME in asmdefs.mac.
62%define VBINSTST_NAME(a_Name) NAME(a_Name)
63
64;; Same as GLOBALNAME_EX in asmdefs.mac.
65%define VBINSTST_GLOBALNAME_EX GLOBALNAME_EX
66
67;; Same as BEGINCODE in asmdefs.mac.
68%define VBINSTST_BEGINCODE BEGINCODE
69
70;; Same as BEGINDATA in asmdefs.mac.
71%define VBINSTST_BEGINDATA BEGINDATA
72
73
74;; Call RTTestISub like function.
75%define VBINSTST_CALL_FN_SUB_TEST call IMP2(RTTestISub)
76EXTERN_IMP2 RTTestISub
77
78;; Call RTTestIFailure like function with simple message.
79%define VBINSTST_CALL_FN_FAILURE call NAME(VBInsTstFailure)
80extern NAME(VBInsTstFailure)
81
82;; Call RTTestIFailure like function with format message + 1 arg.
83%define VBINSTST_CALL_FN_FAILURE_1 call NAME(VBInsTstFailure1)
84extern NAME(VBInsTstFailure1)
85
86;; Call RTTestIFailure like function with format message + 2 args.
87%define VBINSTST_CALL_FN_FAILURE_2 call NAME(VBInsTstFailure2)
88extern NAME(VBInsTstFailure2)
89
90;; Call RTTestIFailure like function with format message + 3 args.
91%define VBINSTST_CALL_FN_FAILURE_3 call NAME(VBInsTstFailure3)
92extern NAME(VBInsTstFailure3)
93
94;; Call RTTestIFailure like function with format message + 4 args.
95%define VBINSTST_CALL_FN_FAILURE_4 call NAME(VBInsTstFailure4)
96extern NAME(VBInsTstFailure4)
97
98
99;; Cannot do traps yet.
100%undef VBINSTST_CAN_DO_TRAPS
101
102
103;
104; Include the common bits (contains code using above macros)
105;
106%include "env-common.mac"
107
108%endif
109
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