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
ef30c2c7
Commit
ef30c2c7
authored
17 years ago
by
rsc
Browse files
Options
Downloads
Patches
Plain Diff
no more w
parent
bcca6c6b
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
+6
-6
6 additions, 6 deletions
x86.h
with
6 additions
and
6 deletions
x86.h
+
6
−
6
View file @
ef30c2c7
...
...
@@ -2,10 +2,10 @@
// hardware instructions.
static
__inline
uchar
inb
(
in
t
port
)
inb
(
ushor
t
port
)
{
uchar
data
;
__asm
__volatile
(
"in
b
%
w
1,%0"
:
"=a"
(
data
)
:
"d"
(
port
));
__asm
__volatile
(
"in %1,%0"
:
"=a"
(
data
)
:
"d"
(
port
));
return
data
;
}
...
...
@@ -19,15 +19,15 @@ insl(int port, void *addr, int cnt)
}
static
__inline
void
outb
(
in
t
port
,
uchar
data
)
outb
(
ushor
t
port
,
uchar
data
)
{
__asm
__volatile
(
"out
b
%0,%
w
1"
:
:
"a"
(
data
),
"d"
(
port
));
__asm
__volatile
(
"out %0,%1"
:
:
"a"
(
data
),
"d"
(
port
));
}
static
__inline
void
outw
(
in
t
port
,
ushort
data
)
outw
(
ushor
t
port
,
ushort
data
)
{
__asm
__volatile
(
"out
w
%0,%
w
1"
:
:
"a"
(
data
),
"d"
(
port
));
__asm
__volatile
(
"out %0,%1"
:
:
"a"
(
data
),
"d"
(
port
));
}
static
__inline
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