VirtualBox

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

Last change on this file since 67954 was 62484, checked in by vboxsync, 8 years ago

(C) 2016

  • 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-basic-1.asm 62484 2016-07-22 18:35:33Z vboxsync $
2;; @file
3; Bootsector that checks the basic CPU operation.
4;
5
6;
7; Copyright (C) 2007-2016 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; The contents of this file may alternatively be used under the terms
18; of the Common Development and Distribution License Version 1.0
19; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20; VirtualBox OSE distribution, in which case the provisions of the
21; CDDL are applicable instead of those of the GPL.
22;
23; You may elect to license modified versions of this file under the
24; terms and conditions of either the GPL or the CDDL or both.
25;
26
27
28%include "iprt/asmdefs.mac"
29%include "iprt/x86.mac"
30%include "VBox/VMMDevTesting.mac"
31
32;
33; Include and execute the init code.
34;
35%define BS2_WITH_TRAPS
36%define BS2_INIT_RM
37%define BS2_INC_PE16
38%define BS2_INC_PE32
39%define BS2_INC_PP16
40%define BS2_INC_PP32
41%define BS2_INC_PAE32
42%define BS2_INC_PAE16
43%define BS2_INC_LM16
44%define BS2_INC_LM32
45%define BS2_INC_LM64
46%include "bootsector2-common-init-code.mac"
47
48
49;
50; The benchmark driver
51;
52BEGINPROC main
53 ;
54 ; Test prologue.
55 ;
56 mov ax, .s_szTstName
57 call TestInit_r86
58
59 ;
60 ; The actual tests.
61 ;
62 call TestBasic1_rm_rm
63 call TestBasic1_rm_pe16
64 call TestBasic1_rm_pe32
65 call TestBasic1_rm_pp32
66 call TestBasic1_rm_pp16
67 call TestBasic1_rm_pae16
68 call TestBasic1_rm_pae32
69 call TestBasic1_rm_lm64
70 call TestBasic1_rm_lm32
71 call TestBasic1_rm_lm16
72
73 ;
74 ; We're done.
75 ;
76 call TestTerm_r86
77 call Bs2Panic
78
79.s_szTstName:
80 db 'tstBasic1-1', 0
81.s_szInitialBasic1Status:
82 db 'Initial Basic1 state', 0
83ENDPROC main
84
85
86;
87; Instantiate the template code.
88;
89%include "bootsector2-template-footer.mac" ; reset the initial environemnt.
90
91%define TMPL_RM
92%include "bootsector2-cpu-basic-1-template.mac"
93;%define TMPL_CMN_V86
94;%include "bootsector2-cpu-basic-1-template.mac"
95%define TMPL_PE16
96%include "bootsector2-cpu-basic-1-template.mac"
97%define TMPL_PE32
98%include "bootsector2-cpu-basic-1-template.mac"
99%define TMPL_PP16
100%include "bootsector2-cpu-basic-1-template.mac"
101%define TMPL_PP32
102%include "bootsector2-cpu-basic-1-template.mac"
103%define TMPL_PAE16
104%include "bootsector2-cpu-basic-1-template.mac"
105%define TMPL_PAE32
106%include "bootsector2-cpu-basic-1-template.mac"
107%define TMPL_LM16
108%include "bootsector2-cpu-basic-1-template.mac"
109%define TMPL_LM32
110%include "bootsector2-cpu-basic-1-template.mac"
111%define TMPL_LM64
112%include "bootsector2-cpu-basic-1-template.mac"
113
114
115;
116; End sections and image.
117;
118%include "bootsector2-common-end.mac"
119
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