xref: /openbmc/u-boot/arch/x86/include/asm/processor.h (revision 109ad143)
1fea25720SGraeme Russ /*
2fea25720SGraeme Russ  * (C) Copyright 2002
3fa82f871SAlbert ARIBAUD  * Daniel Engström, Omicron Ceti AB, daniel@omicron.se
4fea25720SGraeme Russ  *
5fea25720SGraeme Russ  * See file CREDITS for list of people who contributed to this
6fea25720SGraeme Russ  * project.
7fea25720SGraeme Russ  *
8fea25720SGraeme Russ  * This program is free software; you can redistribute it and/or
9fea25720SGraeme Russ  * modify it under the terms of the GNU General Public License as
10fea25720SGraeme Russ  * published by the Free Software Foundation; either version 2 of
11fea25720SGraeme Russ  * the License, or (at your option) any later version.
12fea25720SGraeme Russ  *
13fea25720SGraeme Russ  * This program is distributed in the hope that it will be useful,
14fea25720SGraeme Russ  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15fea25720SGraeme Russ  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16fea25720SGraeme Russ  * GNU General Public License for more details.
17fea25720SGraeme Russ  *
18fea25720SGraeme Russ  * You should have received a copy of the GNU General Public License
19fea25720SGraeme Russ  * along with this program; if not, write to the Free Software
20fea25720SGraeme Russ  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21fea25720SGraeme Russ  * MA 02111-1307 USA
22fea25720SGraeme Russ  */
23fea25720SGraeme Russ 
24fea25720SGraeme Russ #ifndef __ASM_PROCESSOR_H_
25fea25720SGraeme Russ #define __ASM_PROCESSOR_H_ 1
26fea25720SGraeme Russ 
27*109ad143SGraeme Russ #define X86_GDT_ENTRY_SIZE	8
28*109ad143SGraeme Russ 
29*109ad143SGraeme Russ #ifndef __ASSEMBLY__
30*109ad143SGraeme Russ 
31*109ad143SGraeme Russ enum {
32*109ad143SGraeme Russ 	X86_GDT_ENTRY_NULL = 0,
33*109ad143SGraeme Russ 	X86_GDT_ENTRY_UNUSED,
34*109ad143SGraeme Russ 	X86_GDT_ENTRY_32BIT_CS,
35*109ad143SGraeme Russ 	X86_GDT_ENTRY_32BIT_DS,
36*109ad143SGraeme Russ 	X86_GDT_ENTRY_16BIT_CS,
37*109ad143SGraeme Russ 	X86_GDT_ENTRY_16BIT_DS,
38*109ad143SGraeme Russ 	X86_GDT_NUM_ENTRIES
39*109ad143SGraeme Russ };
40*109ad143SGraeme Russ #else
41*109ad143SGraeme Russ /* NOTE: If the above enum is modified, this define must be checked */
42*109ad143SGraeme Russ #define X86_GDT_ENTRY_32BIT_DS	3
43*109ad143SGraeme Russ #endif
44*109ad143SGraeme Russ 
45*109ad143SGraeme Russ #define X86_GDT_SIZE		(X86_GDT_NUM_ENTRIES * X86_GDT_ENTRY_SIZE)
46fea25720SGraeme Russ 
47fea25720SGraeme Russ #endif
48