Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CSEP551
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
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
4003e9be
Commit
4003e9be
authored
16 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
xv6/x86.h: inline assembly cleanup
parent
8eb20827
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
x86.h
+8
-8
8 additions, 8 deletions
x86.h
with
8 additions
and
8 deletions
x86.h
+
8
−
8
View file @
4003e9be
...
...
@@ -12,10 +12,10 @@ inb(ushort port)
static
inline
void
insl
(
int
port
,
void
*
addr
,
int
cnt
)
{
asm
volatile
(
"cld
\n\t
repne
\n\t
insl"
:
"=D"
(
addr
),
"=c"
(
cnt
)
:
"d"
(
port
),
"0"
(
addr
),
"1"
(
cnt
)
:
"memory"
,
"cc"
);
asm
volatile
(
"cld
;
repne
insl"
:
"=D"
(
addr
),
"=c"
(
cnt
)
:
"d"
(
port
),
"0"
(
addr
),
"1"
(
cnt
)
:
"memory"
,
"cc"
);
}
static
inline
void
...
...
@@ -33,10 +33,10 @@ outw(ushort port, ushort data)
static
inline
void
outsl
(
int
port
,
const
void
*
addr
,
int
cnt
)
{
asm
volatile
(
"cld
\n\t
repne
\n\t
outsl"
:
"=S"
(
addr
),
"=c"
(
cnt
)
:
"d"
(
port
),
"0"
(
addr
),
"1"
(
cnt
)
:
"cc"
);
asm
volatile
(
"cld
;
repne
outsl"
:
"=S"
(
addr
),
"=c"
(
cnt
)
:
"d"
(
port
),
"0"
(
addr
),
"1"
(
cnt
)
:
"cc"
);
}
static
inline
uint
...
...
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