VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/bootsectors/bootsector2-vbinstst-big-template.asm@ 103068

Last change on this file since 103068 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: 2.5 KB
Line 
1; $Id: bootsector2-vbinstst-big-template.asm 98103 2023-01-17 14:15:46Z vboxsync $
2;; @file
3; Boot Sector 2 with big instruction test image template. For use with
4; bootsector2-vbinstst-kernel.asm. Requires:
5; VBoxManage setextradata bs-vbinstst-64-1 VBoxInternal/Devices/VMMDev/0/Config/TestingEnabled 1
6;
7
8;
9; Copyright (C) 2007-2023 Oracle and/or its affiliates.
10;
11; This file is part of VirtualBox base platform packages, as
12; available from https://www.virtualbox.org.
13;
14; This program is free software; you can redistribute it and/or
15; modify it under the terms of the GNU General Public License
16; as published by the Free Software Foundation, in version 3 of the
17; License.
18;
19; This program is distributed in the hope that it will be useful, but
20; WITHOUT ANY WARRANTY; without even the implied warranty of
21; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22; General Public License for more details.
23;
24; You should have received a copy of the GNU General Public License
25; along with this program; if not, see <https://www.gnu.org/licenses>.
26;
27; The contents of this file may alternatively be used under the terms
28; of the Common Development and Distribution License Version 1.0
29; (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
30; in the VirtualBox distribution, in which case the provisions of the
31; CDDL are applicable instead of those of the GPL.
32;
33; You may elect to license modified versions of this file under the
34; terms and conditions of either the GPL or the CDDL or both.
35;
36; SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
37;
38
39
40;
41; Set up the assembler environment.
42;
43%include "bootsector2-first.mac"
44%include "bootsector2-api.mac"
45
46%include "bootsector2-template-footer.mac"
47%ifdef BS2_BIG_IMAGE_LM64
48 %define TMPL_LM64
49 %include "bootsector2-template-header.mac"
50 BITS 64
51
52%elifdef BS2_BIG_IMAGE_PAE32
53 %define TMPL_PAE32
54 %include "bootsector2-template-header.mac"
55 BITS 32
56
57%elifdef BS2_BIG_IMAGE_PP32
58 %define TMPL_PP32
59 %include "bootsector2-template-header.mac"
60 BITS 32
61
62%else
63 %error Do not know which mode to run in.
64 mov bad,instr
65%endif
66
67
68 ORG BS2_BIG_LOAD_ADDR
69
70;
71; The entry point is the first byte in the image.
72;
73bs2_big_image_start:
74entrypoint:
75 mov xAX, .s_szTestName
76 call [TMPL_NM_CMN(g_pfnTestInit) xWrtRIP]
77 call TMPL_NM(TestInstrMain)
78 call [TMPL_NM_CMN(g_pfnTestTerm) xWrtRIP]
79.hltloop:
80 hlt
81 jmp .hltloop
82
83.s_szTestName:
84 db BS2_BIG_IMAGE_GEN_TEST_NAME, 0
85
86
87;
88; Instantiate the template code.
89;
90%include "BS2_BIG_IMAGE_GEN_SOURCE_FILE"
91
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