VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/bootsectors/bootsector2-cpu-instr-1.asm@ 105684

Last change on this file since 105684 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: bootsector2-cpu-instr-1.asm 98103 2023-01-17 14:15:46Z vboxsync $
2;; @file
3; Bootsector test for misc instructions.
4;
5; Recommended (but not necessary):
6; VBoxManage setextradata bs-cpu-instr-1 VBoxInternal/Devices/VMMDev/0/Config/TestingEnabled 1
7;
8
9;
10; Copyright (C) 2007-2023 Oracle and/or its affiliates.
11;
12; This file is part of VirtualBox base platform packages, as
13; available from https://www.virtualbox.org.
14;
15; This program is free software; you can redistribute it and/or
16; modify it under the terms of the GNU General Public License
17; as published by the Free Software Foundation, in version 3 of the
18; License.
19;
20; This program is distributed in the hope that it will be useful, but
21; WITHOUT ANY WARRANTY; without even the implied warranty of
22; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23; General Public License for more details.
24;
25; You should have received a copy of the GNU General Public License
26; along with this program; if not, see <https://www.gnu.org/licenses>.
27;
28; The contents of this file may alternatively be used under the terms
29; of the Common Development and Distribution License Version 1.0
30; (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
31; in the VirtualBox distribution, in which case the provisions of the
32; CDDL are applicable instead of those of the GPL.
33;
34; You may elect to license modified versions of this file under the
35; terms and conditions of either the GPL or the CDDL or both.
36;
37; SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
38;
39
40
41;*******************************************************************************
42;* Header Files *
43;*******************************************************************************
44%include "iprt/asmdefs.mac"
45%include "iprt/x86.mac"
46%include "VBox/VMMDevTesting.mac"
47
48; Include and execute the init code.
49%define BS2_INIT_RM
50%define BS2_WITH_TRAPS
51%define BS2_INC_RM
52%define BS2_INC_PE32
53%define BS2_INC_PP32
54%define BS2_INC_PAE32
55%define BS2_INC_LM32
56%define BS2_INC_LM64
57%define BS2_WITH_TRAPRECS
58%include "bootsector2-common-init-code.mac"
59
60
61;
62; The main() function.
63;
64BEGINPROC main
65 BITS 16
66 ;
67 ; Test prologue.
68 ;
69 mov ax, .s_szTstName
70 call TestInit_r86
71 call Bs2EnableA20_r86
72
73
74 ;
75 ; Execute the tests
76 ;
77%if 1
78 call NAME(DoTestsForMode_rm_pe32)
79%endif
80%if 1
81 call NAME(DoTestsForMode_rm_pp32)
82%endif
83%if 1
84 call NAME(DoTestsForMode_rm_pae32)
85%endif
86%if 1
87 call NAME(DoTestsForMode_rm_lm64)
88%endif
89
90 ;
91 ; We're done.
92 ;
93 call TestTerm_r86
94 ret
95
96.s_szTstName:
97 db 'tstCpuInstr1', 0
98ENDPROC main
99
100
101;
102; Instantiate the template code.
103;
104%include "bootsector2-template-footer.mac" ; reset the initial environemnt.
105
106%define TMPL_PE32
107%include "bootsector2-cpu-instr-1-template.mac"
108%define TMPL_PP32
109%include "bootsector2-cpu-instr-1-template.mac"
110%define TMPL_PAE32
111%include "bootsector2-cpu-instr-1-template.mac"
112%define TMPL_LM64
113%include "bootsector2-cpu-instr-1-template.mac"
114
115
116;
117; End sections and image.
118;
119%include "bootsector2-common-end.mac"
120
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