]> Joshua Wise's Git repositories - netwatch.git/blame - include/reg-x86.h
Improve correctness of backtrace library.
[netwatch.git] / include / reg-x86.h
CommitLineData
4e3ef36b
JW
1/* reg-x86.h
2 * X86 standard registers
3 * NetWatch system management mode administration console
4 *
5 * Copyright 2009, Google Inc.
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are
10 * met:
11 *
12 * * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * * Redistributions in binary form must reproduce the above
15 * copyright notice, this list of conditions and the following disclaimer
16 * in the documentation and/or other materials provided with the
17 * distribution.
18 * * Neither the name of Google Inc. nor the names of its
19 * contributors may be used to endorse or promote products derived from
20 * this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35#ifndef __REG_X86_H
36#define __REG_X86_H
37
38#define CR0_PE (1<<0)
39#define CR0_MP (1<<1)
40#define CR0_EM (1<<2)
41#define CR0_TS (1<<3)
42#define CR0_ET (1<<4)
43#define CR0_NE (1<<5)
44#define CR0_WP (1<<16)
45#define CR0_AM (1<<18)
46#define CR0_NW (1<<29)
47#define CR0_CD (1<<30)
48#define CR0_PG (1<<31)
49
50#define CR3_PWT (1<<3)
51#define CR3_PCD (1<<4)
52
53#define CR4_VME (1<<0)
54#define CR4_PVI (1<<1)
55#define CR4_TSD (1<<2)
56#define CR4_DE (1<<3)
57#define CR4_PSE (1<<4)
58#define CR4_PAE (1<<5)
59#define CR4_MCE (1<<6)
60#define CR4_PGE (1<<7)
61#define CR4_PCE (1<<8)
62#define CR4_OSFXSR (1<<9)
63#define CR4_OSXMMEXCPT (1<<10)
64
65#define EFLAGS_CF (1<<0)
66#define EFLAGS_PF (1<<2)
67#define EFLAGS_AF (1<<4)
68#define EFLAGS_ZF (1<<6)
69#define EFLAGS_SF (1<<7)
70#define EFLAGS_TF (1<<8)
71#define EFLAGS_IF (1<<9)
72#define EFLAGS_DF (1<<10)
73#define EFLAGS_OF (1<<11)
74#define EFLAGS_IOPL (3<<12)
75#define EFLAGS_NT (1<<14)
76#define EFLAGS_RF (1<<16)
77#define EFLAGS_VM (1<<17)
78#define EFLAGS_AC (1<<18)
79#define EFLAGS_VIF (1<<19)
80#define EFLAGS_VIP (1<<20)
81#define EFLAGS_ID (1<<21)
82
83#endif /* __REG_X86_H */
84
This page took 0.032308 seconds and 4 git commands to generate.