81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; $Id$
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;; @file
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; Instruction Test Environment - Big Boot Sector Type 2, Ring-0.
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; Copyright (C) 2006-2013 Oracle Corporation
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; This file is part of VirtualBox Open Source Edition (OSE), as
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; available from http://www.virtualbox.org. This file is free software;
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; you can redistribute it and/or modify it under the terms of the GNU
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; General Public License (GPL) as published by the Free Software
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; Foundation, in version 2 as it comes in the "COPYING" file of the
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; VirtualBox OSE distribution. VirtualBox OSE is distributed in the
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync%ifndef ___env_bs2_r0_big_mac
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync%define ___env_bs2_r0_big_mac
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; Include the BS2 API for BIG images.
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync%include "bootsector2-api.mac"
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;; Call RTTestISub like function.
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync%define VBINSTST_CALL_FN_SUB_TEST call [TMPL_NM_CMN(g_pfnTestSub) xWrtRIP]
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;; Call RTTestIFailure like function with simple message.
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync%define VBINSTST_CALL_FN_FAILURE call [TMPL_NM_CMN(g_pfnTestFailedF) xWrtRIP]
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;; Call RTTestIFailure like function with format message + 1 arg.
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync%define VBINSTST_CALL_FN_FAILURE_1 call [TMPL_NM_CMN(g_pfnTestFailedF) xWrtRIP]
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;; Call RTTestIFailure like function with format message + 2 args.
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync%define VBINSTST_CALL_FN_FAILURE_2 call [TMPL_NM_CMN(g_pfnTestFailedF) xWrtRIP]
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;; Call RTTestIFailure like function with format message + 3 args.
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync%define VBINSTST_CALL_FN_FAILURE_3 call [TMPL_NM_CMN(g_pfnTestFailedF) xWrtRIP]
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;; Call RTTestIFailure like function with format message + 4 args.
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync%define VBINSTST_CALL_FN_FAILURE_4 call [TMPL_NM_CMN(g_pfnTestFailedF) xWrtRIP]
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
7528d4a15800321b4013826ce35ad184898dba21vboxsync;; The image base label (used by the trap macros).
7528d4a15800321b4013826ce35ad184898dba21vboxsync%define VBINSTST_IMAGE_BASE_LABLE bs2_big_image_start
7528d4a15800321b4013826ce35ad184898dba21vboxsync
7528d4a15800321b4013826ce35ad184898dba21vboxsync;; Wrapper for calling TestInstallTrapRecs (used by the trap macros).
7528d4a15800321b4013826ce35ad184898dba21vboxsync%define VBINSTST_CALL_TEST_INSTALL_TRAP_RECS call [TMPL_NM_CMN(g_pfnTestInstallTrapRecs) xWrtRIP]
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync; Include the common bits (contains code using above macros)
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync;
7528d4a15800321b4013826ce35ad184898dba21vboxsync%include "env-bs2-r0-common.mac"
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync%endif
81a042b394e569219fd7bf5c66281e6afc2212a3vboxsync