Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
u-boot-2015.04
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vesta
u-boot-2015.04
Commits
c53fd2bb
Commit
c53fd2bb
authored
14 years ago
by
Graeme Russ
Browse files
Options
Downloads
Patches
Plain Diff
x86: Move Global Descriptor Table defines to processor.h
parent
ca56a4ce
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arch/i386/cpu/cpu.c
+1
-7
1 addition, 7 deletions
arch/i386/cpu/cpu.c
arch/i386/include/asm/processor.h
+6
-3
6 additions, 3 deletions
arch/i386/include/asm/processor.h
with
7 additions
and
10 deletions
arch/i386/cpu/cpu.c
+
1
−
7
View file @
c53fd2bb
...
@@ -35,6 +35,7 @@
...
@@ -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 @@
...
@@ -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
*/
*/
...
...
This diff is collapsed.
Click to expand it.
arch/i386/include/asm/processor.h
+
6
−
3
View file @
c53fd2bb
...
@@ -23,7 +23,10 @@
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment