cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; $Id$
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;; @file
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; Common bootsector routines.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; This is just a bit file with common code that can be included at the end of
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; a bootsector2-xxx.asm file. Conventions (used elsewhere as well):
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _rm - real-mode function suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _r86 - common real and virtual 8086 mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _p16 - common 16-bit protected mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _p32 - common 32-bit protected mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _p64 - common 64-bit long mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _pe16 - 16-bit unpaged protected mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _pe32 - 32-bit unpaged protected mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _pev86 - v8086 unpaged protected mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _pp16 - 16-bit paged protected mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _pp32 - 32-bit paged protected mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _ppv86 - v8086 paged protected mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _pae16 - 16-bit pae protected mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _pae32 - 32-bit pae protected mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _paev86- v8086 pae protected mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _lm16 - 16-bit long mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _lm32 - 32-bit long mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - _lm64 - 64-bit long mode suffix.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; The routines uses a custom register based calling convention for all cpu
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; modes so that the users can template multi mode code. To make life easy for
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; the programmer all registers are preserved with the exception of rflags and
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; any return registers that may be used. Routines that does not return
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; anything will only clobber eflags.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; The parameter register allocation order:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; rax, rdx, rcx, rbx, rsi, rdi(, r8, r9, r10, r11)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; When pointers are passed by 16-bit code, segments registers are allocated in
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; the following order:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; ds, es, fs, gs.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; The return register allocations are:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - edx:eax for 64-bit values in 16 and 32-bit mode,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - eax for 32-bit,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - ax for 16-bit,
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; - al for 8-bit.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; Routines may use other calling convensions will be named differently.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; Copyright (C) 2007-2014 Oracle Corporation
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; This file is part of VirtualBox Open Source Edition (OSE), as
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; available from http://www.virtualbox.org. This file is free software;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; you can redistribute it and/or modify it under the terms of the GNU
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; General Public License (GPL) as published by the Free Software
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; Foundation, in version 2 as it comes in the "COPYING" file of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; The contents of this file may alternatively be used under the terms
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; of the Common Development and Distribution License Version 1.0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; (CDDL) only, as it comes in the "COPYING.CDDL" file of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; VirtualBox OSE distribution, in which case the provisions of the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; CDDL are applicable instead of those of the GPL.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; You may elect to license modified versions of this file under the
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; terms and conditions of either the GPL or the CDDL or both.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;*******************************************************************************
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;* Structures and Typedefs *
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;*******************************************************************************
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;*******************************************************************************
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;* Global Variables *
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;*******************************************************************************
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncBEGINCODELOW
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncALIGNDATA(32)
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;; Indicates whether the VMMDev is operational.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncGLOBALNAME g_fbBs2VMMDevTesting
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 1
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 0 ; padding
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;; The test name (DS16:xxx).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_npszBs2Test:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync dd 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;; The number of tests that have failed.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_uscBs2TestErrors:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync dw 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;; The subtest name (DS16:xxx).
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_npszBs2SubTest
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync dd 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;; The start error count of the current subtest.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_uscBs2SubTestAtErrors:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync dw 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;; Whether we've reported the sub-test result or not.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_fbBs2SubTestReported:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 0 ; padding
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;; The number of sub tests.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_uscBs2SubTests:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync dw 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;; The number of sub tests that failed.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_uscBs2SubTestsFailed:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync dw 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;; VMMDEV_TESTING_UNIT_XXX -> string
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncg_aszBs2TestUnitNames:
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'i','n','v', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db '%', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'b','y','t','e','s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'b','y','t','e','s','/','s', 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'K','B', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'K','B','/','s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'M','B', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'M','B','/','s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'p','a','c','k','e','t','s', 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'p','a','c','k','e','t','s','/','s', 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'f','r','a','m','e','s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'f','r','a','m','e','s','/', 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'o','c','c', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'o','c','c','/','s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'r','n','d','t','r','p', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'c','a','l','l','s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'c','a','l','l','s','/','s', 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 's', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'm','s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'n','s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'n','s','/','c','a','l','l', 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'n','s','/','f','r','a','m','e', 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'n','s','/','o','c','c', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'n','s','/','p','a','c','k','e','t', 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'n','s','/','r','n','d','t','r','p', 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'i','n','s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'i','n','s','/','s', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ; none
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'p','p','1','k', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'p','p','1','0','k', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'p','p','m', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync db 'p','p','b', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync ; 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, a, b, c, d, e, f
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; Instantiate the common template code.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_CMN_R86
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_RM
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-1.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_CMN_P16
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_PE16
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-1.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_CMN_P32
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_PE32
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-1.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_LM64
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_LM64
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-1.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync; Instantiate the mode specific code.
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync;
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_RM
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_RM
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_PE16
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_PE16
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_PE32
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_PE32
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_PEV86
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_PEV86
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_PP16
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_PP16
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_PP32
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_PP32
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_PPV86
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_PPV86
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_PAE16
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_PAE16
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_PAE32
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_PAE32
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_PAEV86
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_PAEV86
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_LM16
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_LM16
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_LM32
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_LM32
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%ifdef BS2_INC_LM64
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %define TMPL_LM64
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync %include "bootsector2-common-routines-template-2.mac"
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync%endif
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsyncBEGINCODELOW
cf22150eaeeb72431bf1cf65c309a431454fb22bvboxsync