1 | ; $Id: bootsector2-cpu-basic-1-template.mac 52776 2014-09-17 14:51:43Z vboxsync $
|
---|
2 | ;; @file
|
---|
3 | ; bootsector2 basic #1 - multi mode template.
|
---|
4 | ;
|
---|
5 |
|
---|
6 | ;
|
---|
7 | ; Copyright (C) 2007-2014 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 "bootsector2-template-header.mac"
|
---|
29 |
|
---|
30 |
|
---|
31 | ;;
|
---|
32 | ; Do the tests for this mode.
|
---|
33 | ;
|
---|
34 | ; @uses nothing
|
---|
35 | ;
|
---|
36 | BEGINCODELOW
|
---|
37 | BITS 16
|
---|
38 | BEGINPROC TMPL_NM(TestBasic1_rm)
|
---|
39 | push eax
|
---|
40 |
|
---|
41 | mov ax, .s_szTestName
|
---|
42 | call TestSub_r86
|
---|
43 |
|
---|
44 | call TMPL_NM(Bs2IsModeSupported_rm)
|
---|
45 | jz .skip_not_supported
|
---|
46 |
|
---|
47 | call TMPL_NM(Bs2EnterMode_rm)
|
---|
48 | BITS TMPL_BITS
|
---|
49 | ; Later, currently just getting thru the mode switch is good enough.
|
---|
50 | nop
|
---|
51 | call TMPL_NM(Bs2ExitMode)
|
---|
52 | BITS 16
|
---|
53 | .done1:
|
---|
54 | call TestSubDone_r86
|
---|
55 |
|
---|
56 | pop eax
|
---|
57 | ret
|
---|
58 |
|
---|
59 | .skip_not_supported:
|
---|
60 | mov eax, .s_szSkipNotSupported
|
---|
61 | call TestSkipped_r86
|
---|
62 | jmp .done1
|
---|
63 |
|
---|
64 | .s_szTestName:
|
---|
65 | db TMPL_MODE_STR, 0
|
---|
66 | .s_szSkipNotSupported:
|
---|
67 | db TMPL_MODE_STR, ' is not supported by the CPU', 10, 13, 0
|
---|
68 | ENDPROC TMPL_NM(TestBasic1_rm)
|
---|
69 | TMPL_BEGINCODE
|
---|
70 | BITS TMPL_BITS
|
---|
71 |
|
---|
72 |
|
---|
73 | %include "bootsector2-template-footer.mac"
|
---|
74 |
|
---|