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
c396d065
Commit
c396d065
authored
16 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
xv6/x86.h: add stosb, fix bugs in insl/outsl (rep not repne)
parent
4003e9be
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
+11
-2
11 additions, 2 deletions
x86.h
with
11 additions
and
2 deletions
x86.h
+
11
−
2
View file @
c396d065
...
...
@@ -12,7 +12,7 @@ inb(ushort port)
static
inline
void
insl
(
int
port
,
void
*
addr
,
int
cnt
)
{
asm
volatile
(
"cld; rep
ne
insl"
:
asm
volatile
(
"cld; rep insl"
:
"=D"
(
addr
),
"=c"
(
cnt
)
:
"d"
(
port
),
"0"
(
addr
),
"1"
(
cnt
)
:
"memory"
,
"cc"
);
...
...
@@ -33,12 +33,21 @@ outw(ushort port, ushort data)
static
inline
void
outsl
(
int
port
,
const
void
*
addr
,
int
cnt
)
{
asm
volatile
(
"cld; rep
ne
outsl"
:
asm
volatile
(
"cld; rep outsl"
:
"=S"
(
addr
),
"=c"
(
cnt
)
:
"d"
(
port
),
"0"
(
addr
),
"1"
(
cnt
)
:
"cc"
);
}
static
inline
void
stosb
(
void
*
addr
,
int
data
,
int
cnt
)
{
asm
volatile
(
"cld; rep stosb"
:
"=D"
(
addr
),
"=c"
(
cnt
)
:
"0"
(
addr
),
"1"
(
cnt
),
"a"
(
data
)
:
"memory"
,
"cc"
);
}
static
inline
uint
read_ebp
(
void
)
{
...
...
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