VirtualBox

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

Last change on this file was 106061, checked in by vboxsync, 3 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1/* $Id: bs3-cmn-PerCpuData.c 106061 2024-09-16 14:03:52Z 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-2024 Oracle and/or its affiliates.
11 *
12 * This file is part of VirtualBox base platform packages, as
13 * available from https://www.virtualbox.org.
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * as published by the Free Software Foundation, in version 3 of the
18 * License.
19 *
20 * This program is distributed in the hope that it will be useful, but
21 * WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, see <https://www.gnu.org/licenses>.
27 *
28 * The contents of this file may alternatively be used under the terms
29 * of the Common Development and Distribution License Version 1.0
30 * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
31 * in the VirtualBox distribution, in which case the provisions of the
32 * CDDL are applicable instead of those of the GPL.
33 *
34 * You may elect to license modified versions of this file under the
35 * terms and conditions of either the GPL or the CDDL or both.
36 *
37 * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
38 */
39
40
41/*********************************************************************************************************************************
42* Header Files *
43*********************************************************************************************************************************/
44#include "bs3kit-template-header.h"
45#include "bs3-cmn-test.h"
46
47
48/*********************************************************************************************************************************
49* Global Variables *
50*********************************************************************************************************************************/
51#if ARCH_BITS == 16
52
53/** Hint for 16-bit trap handlers regarding the high word of EIP. */
54uint32_t g_uBs3TrapEipHint = 0;
55
56/** Flat pointer to a BS3TRAPFRAME registered by Bs3TrapSetJmp.
57 * When this is non-zero, the setjmp is considered armed. */
58uint32_t g_pBs3TrapSetJmpFrame = 0;
59
60/** The current CPU mode. */
61uint8_t g_bBs3CurrentMode = BS3_MODE_RM;
62
63uint8_t g_bStupidUnalignedCompiler1 = 0xfe;
64
65/** Set to disable special V8086 \#GP and \#UD handling in Bs3TrapDefaultHandler.
66 * This is useful for getting */
67bool volatile g_fBs3TrapNoV86Assist = false;
68
69/** The context of the last Bs3TrapSetJmp call.
70 * This will have eax set to 1 and need only be restored when it triggers. */
71BS3REGCTX g_Bs3TrapSetJmpCtx;
72
73#endif /* ARCH_BITS == 16 */
74
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