VirtualBox

source: vbox/trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-PerCpuData.c@ 82525

Last change on this file since 82525 was 76553, checked in by vboxsync, 6 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
1/* $Id: bs3-cmn-PerCpuData.c 76553 2019-01-01 01:45:53Z vboxsync $ */
2/** @file
3 * BS3Kit - Per CPU Data.
4 *
5 * @remarks Not quite sure how to do per-cpu data yet, but this is stuff
6 * that eventually needs to be per CPU.
7 */
8
9/*
10 * Copyright (C) 2007-2019 Oracle Corporation
11 *
12 * This file is part of VirtualBox Open Source Edition (OSE), as
13 * available from http://www.virtualbox.org. This file is free software;
14 * you can redistribute it and/or modify it under the terms of the GNU
15 * General Public License (GPL) as published by the Free Software
16 * Foundation, in version 2 as it comes in the "COPYING" file of the
17 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
18 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
19 *
20 * The contents of this file may alternatively be used under the terms
21 * of the Common Development and Distribution License Version 1.0
22 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
23 * VirtualBox OSE distribution, in which case the provisions of the
24 * CDDL are applicable instead of those of the GPL.
25 *
26 * You may elect to license modified versions of this file under the
27 * terms and conditions of either the GPL or the CDDL or both.
28 */
29
30
31/*********************************************************************************************************************************
32* Header Files *
33*********************************************************************************************************************************/
34#include "bs3kit-template-header.h"
35#include "bs3-cmn-test.h"
36
37
38/*********************************************************************************************************************************
39* Global Variables *
40*********************************************************************************************************************************/
41#if ARCH_BITS == 16
42
43/** Hint for 16-bit trap handlers regarding the high word of EIP. */
44uint32_t g_uBs3TrapEipHint = 0;
45
46/** Flat pointer to a BS3TRAPFRAME registered by Bs3TrapSetJmp.
47 * When this is non-zero, the setjmp is considered armed. */
48uint32_t g_pBs3TrapSetJmpFrame = 0;
49
50/** The current CPU mode. */
51uint8_t g_bBs3CurrentMode = BS3_MODE_RM;
52
53uint8_t g_bStupidUnalignedCompiler1 = 0xfe;
54
55/** Set to disable special V8086 \#GP and \#UD handling in Bs3TrapDefaultHandler.
56 * This is useful for getting */
57bool volatile g_fBs3TrapNoV86Assist = false;
58
59/** The context of the last Bs3TrapSetJmp call.
60 * This will have eax set to 1 and need only be restored when it triggers. */
61BS3REGCTX g_Bs3TrapSetJmpCtx;
62
63#endif /* ARCH_BITS == 16 */
64
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