mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-05 22:31:36 +00:00
x86: Move Global Descriptor Table defines to processor.h
This commit is contained in:
parent
ca56a4ceec
commit
c53fd2bb6d
2 changed files with 7 additions and 10 deletions
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <command.h>
|
#include <command.h>
|
||||||
|
#include <asm/processor.h>
|
||||||
#include <asm/interrupt.h>
|
#include <asm/interrupt.h>
|
||||||
|
|
||||||
/* Constructor for a conventional segment GDT (or LDT) entry */
|
/* Constructor for a conventional segment GDT (or LDT) entry */
|
||||||
|
@ -46,13 +47,6 @@
|
||||||
(((base) & 0x00ffffffULL) << 16) | \
|
(((base) & 0x00ffffffULL) << 16) | \
|
||||||
(((limit) & 0x0000ffffULL)))
|
(((limit) & 0x0000ffffULL)))
|
||||||
|
|
||||||
/* Simple and small GDT entries for booting only */
|
|
||||||
|
|
||||||
#define GDT_ENTRY_32BIT_CS 2
|
|
||||||
#define GDT_ENTRY_32BIT_DS (GDT_ENTRY_32BIT_CS + 1)
|
|
||||||
#define GDT_ENTRY_16BIT_CS (GDT_ENTRY_32BIT_DS + 1)
|
|
||||||
#define GDT_ENTRY_16BIT_DS (GDT_ENTRY_16BIT_CS + 1)
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up the GDT
|
* Set up the GDT
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -23,7 +23,10 @@
|
||||||
|
|
||||||
#ifndef __ASM_PROCESSOR_H_
|
#ifndef __ASM_PROCESSOR_H_
|
||||||
#define __ASM_PROCESSOR_H_ 1
|
#define __ASM_PROCESSOR_H_ 1
|
||||||
/* Currently this header is unused in the i386 port
|
|
||||||
* but some generic files #include <asm/processor.h>
|
#define GDT_ENTRY_32BIT_CS 2
|
||||||
* so this file is a placeholder. */
|
#define GDT_ENTRY_32BIT_DS (GDT_ENTRY_32BIT_CS + 1)
|
||||||
|
#define GDT_ENTRY_16BIT_CS (GDT_ENTRY_32BIT_DS + 1)
|
||||||
|
#define GDT_ENTRY_16BIT_DS (GDT_ENTRY_16BIT_CS + 1)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue