Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
osv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Verlässliche Systemsoftware
projects
osv
Commits
c3596659
Commit
c3596659
authored
12 years ago
by
Dor Laor
Browse files
Options
Downloads
Patches
Plain Diff
Fix the bar read|write offset by addint the forgotten base addr
parent
934a112b
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
drivers/pci.hh
+6
-6
6 additions, 6 deletions
drivers/pci.hh
with
6 additions
and
6 deletions
drivers/pci.hh
+
6
−
6
View file @
c3596659
...
@@ -56,12 +56,12 @@ using processor::outl;
...
@@ -56,12 +56,12 @@ using processor::outl;
BAR_MMIO
=
1
,
BAR_MMIO
=
1
,
};
};
u32
read
(
u32
offset
)
{
return
inl
(
offset
);}
u32
read
(
u32
offset
)
{
return
inl
(
_addr
+
offset
);}
u16
readw
(
u32
offset
)
{
return
inw
(
offset
);}
u16
readw
(
u32
offset
)
{
return
inw
(
_addr
+
offset
);}
u8
readb
(
u32
offset
)
{
return
inb
(
offset
);}
u8
readb
(
u32
offset
)
{
return
inb
(
_addr
+
offset
);}
void
write
(
u32
offset
,
u32
val
)
{
outl
(
val
,
offset
);}
void
write
(
u32
offset
,
u32
val
)
{
outl
(
val
,
_addr
+
offset
);}
void
write
(
u32
offset
,
u16
val
)
{
outw
(
val
,
offset
);}
void
write
(
u32
offset
,
u16
val
)
{
outw
(
val
,
_addr
+
offset
);}
void
write
(
u32
offset
,
u8
val
)
{
outb
(
val
,
offset
);}
void
write
(
u32
offset
,
u8
val
)
{
outb
(
val
,
_addr
+
offset
);}
private
:
private
:
u32
_addr
;
u32
_addr
;
...
...
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