Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Krishna Vinnakota
CSEP551
Commits
30c1901a
Commit
30c1901a
authored
13 years ago
by
Austin Clements
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused x86.h definitions
parent
dd4438b4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x86.h
+0
-62
0 additions, 62 deletions
x86.h
with
0 additions
and
62 deletions
x86.h
+
0
−
62
View file @
30c1901a
...
...
@@ -105,46 +105,6 @@ loadgs(ushort v)
asm
volatile
(
"movw %0, %%gs"
:
:
"r"
(
v
));
}
static
inline
void
loadfs
(
ushort
v
)
{
__asm
volatile
(
"movw %0, %%fs"
:
:
"r"
(
v
));
}
static
inline
void
loades
(
ushort
v
)
{
__asm
volatile
(
"movw %0, %%es"
:
:
"r"
(
v
));
}
static
inline
void
loadds
(
ushort
v
)
{
__asm
volatile
(
"movw %0, %%ds"
:
:
"r"
(
v
));
}
static
inline
void
loadss
(
ushort
v
)
{
__asm
volatile
(
"movw %0, %%ss"
:
:
"r"
(
v
));
}
static
inline
uint
rebp
(
void
)
{
uint
val
;
asm
volatile
(
"movl %%ebp,%0"
:
"=r"
(
val
));
return
val
;
}
static
inline
uint
resp
(
void
)
{
uint
val
;
asm
volatile
(
"movl %%esp,%0"
:
"=r"
(
val
));
return
val
;
}
static
inline
void
cli
(
void
)
{
...
...
@@ -170,20 +130,6 @@ xchg(volatile uint *addr, uint newval)
return
result
;
}
static
inline
void
lcr0
(
uint
val
)
{
asm
volatile
(
"movl %0,%%cr0"
:
:
"r"
(
val
));
}
static
inline
uint
rcr0
(
void
)
{
uint
val
;
asm
volatile
(
"movl %%cr0,%0"
:
"=r"
(
val
));
return
val
;
}
static
inline
uint
rcr2
(
void
)
{
...
...
@@ -198,14 +144,6 @@ lcr3(uint val)
asm
volatile
(
"movl %0,%%cr3"
:
:
"r"
(
val
));
}
static
inline
uint
rcr3
(
void
)
{
uint
val
;
asm
volatile
(
"movl %%cr3,%0"
:
"=r"
(
val
));
return
val
;
}
//PAGEBREAK: 36
// Layout of the trap frame built on the stack by the
// hardware and by trapasm.S, and passed to trap().
...
...
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