VirtualBox

source: vbox/trunk/src/VBox/VMM/x86context.h@ 1076

Last change on this file since 1076 was 23, checked in by vboxsync, 18 years ago

string.h & stdio.h + header cleanups.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1/* $Id: x86context.h 23 2007-01-15 14:08:28Z vboxsync $ */
2/** @file
3 * VMM - Context switcher macros & definitions
4 */
5
6/*
7 * Copyright (C) 2006 InnoTek Systemberatung GmbH
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 as published by the Free Software Foundation,
13 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14 * distribution. VirtualBox OSE is distributed in the hope that it will
15 * be useful, but WITHOUT ANY WARRANTY of any kind.
16 *
17 * If you received this file as part of a commercial VirtualBox
18 * distribution, then only the terms of your commercial VirtualBox
19 * license agreement apply instead of the previous paragraph.
20 */
21
22#ifndef __X86CONTEXT_H__
23#define __X86CONTEXT_H__
24
25#include <VBox/types.h>
26
27// Selector types (memory/system)
28#define X86_SELTYPE_MEM_READONLY 0
29#define X86_SELTYPE_MEM_READONLY_ACC 1
30#define X86_SELTYPE_MEM_READWRITE 2
31#define X86_SELTYPE_MEM_READWRITE_ACC 3
32#define X86_SELTYPE_MEM_READONLY_EXPDOWN 4
33#define X86_SELTYPE_MEM_READONLY_EXPDOWN_ACC 5
34#define X86_SELTYPE_MEM_READWRITE_EXPDOWN 6
35#define X86_SELTYPE_MEM_READWRITE_EXPDOWN_ACC 7
36#define X86_SELTYPE_MEM_EXECUTEONLY 8
37#define X86_SELTYPE_MEM_EXECUTEONLY_ACC 9
38#define X86_SELTYPE_MEM_EXECUTEREAD 0xA
39#define X86_SELTYPE_MEM_EXECUTEREAD_ACC 0xB
40#define X86_SELTYPE_MEM_EXECUTEONLY_CONF 0xC
41#define X86_SELTYPE_MEM_EXECUTEONLY_CONF_ACC 0xD
42#define X86_SELTYPE_MEM_EXECUTEREAD_CONF 0xE
43#define X86_SELTYPE_MEM_EXECUTEREAD_CONF_ACC 0xF
44
45#define X86_SELTYPE_SYS_UNDEFINED 0
46#define X86_SELTYPE_SYS_286_TSS_AVAIL 1
47#define X86_SELTYPE_SYS_LDT 2
48#define X86_SELTYPE_SYS_286_TSS_BUSY 3
49#define X86_SELTYPE_SYS_286_CALL_GATE 4
50#define X86_SELTYPE_SYS_TASK_GATE 5
51#define X86_SELTYPE_SYS_286_INT_GATE 6
52#define X86_SELTYPE_SYS_286_TRAP_GATE 7
53#define X86_SELTYPE_SYS_UNDEFINED2 8
54#define X86_SELTYPE_SYS_386_TSS_AVAIL 9
55#define X86_SELTYPE_SYS_UNDEFINED3 0xA
56#define X86_SELTYPE_SYS_386_TSS_BUSY 0xB
57#define X86_SELTYPE_SYS_386_CALL_GATE 0xC
58#define X86_SELTYPE_SYS_UNDEFINED4 0xD
59#define X86_SELTYPE_SYS_386_INT_GATE 0xE
60#define X86_SELTYPE_SYS_386_TRAP_GATE 0xF
61
62
63#endif //__X86CONTEXT_H__
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