]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/x86/include/asm/processor.h
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / arch / x86 / include / asm / processor.h
CommitLineData
b2184c31
WD
1/*
2 * (C) Copyright 2002
fa82f871 3 * Daniel Engström, Omicron Ceti AB, daniel@omicron.se
8bde7f77 4 *
1a459660 5 * SPDX-License-Identifier: GPL-2.0+
b2184c31
WD
6 */
7
8#ifndef __ASM_PROCESSOR_H_
9#define __ASM_PROCESSOR_H_ 1
c53fd2bb 10
109ad143
GR
11#define X86_GDT_ENTRY_SIZE 8
12
13#ifndef __ASSEMBLY__
14
15enum {
16 X86_GDT_ENTRY_NULL = 0,
17 X86_GDT_ENTRY_UNUSED,
18 X86_GDT_ENTRY_32BIT_CS,
19 X86_GDT_ENTRY_32BIT_DS,
9e6c572f 20 X86_GDT_ENTRY_32BIT_FS,
109ad143
GR
21 X86_GDT_ENTRY_16BIT_CS,
22 X86_GDT_ENTRY_16BIT_DS,
23 X86_GDT_NUM_ENTRIES
24};
25#else
26/* NOTE: If the above enum is modified, this define must be checked */
27#define X86_GDT_ENTRY_32BIT_DS 3
8d61625d 28#define X86_GDT_NUM_ENTRIES 7
109ad143
GR
29#endif
30
31#define X86_GDT_SIZE (X86_GDT_NUM_ENTRIES * X86_GDT_ENTRY_SIZE)
c53fd2bb 32
b2184c31 33#endif