Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e08d0e8e
Commit
e08d0e8e
authored
Mar 10, 2002
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pci_memspace_mask instead of hard-coded
value 0xffffffff.
parent
455db04b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/sparc64/kernel/pci.c
arch/sparc64/kernel/pci.c
+3
-3
No files found.
arch/sparc64/kernel/pci.c
View file @
e08d0e8e
...
...
@@ -418,7 +418,7 @@ static int __pci_mmap_make_offset(struct pci_dev *dev, struct vm_area_struct *vm
enum
pci_mmap_state
mmap_state
)
{
unsigned
long
user_offset
=
vma
->
vm_pgoff
<<
PAGE_SHIFT
;
unsigned
long
user32
=
user_offset
&
0xffffffffUL
;
unsigned
long
user32
=
user_offset
&
pci_memspace_mask
;
unsigned
long
largest_base
,
this_base
,
addr32
;
int
i
;
...
...
@@ -448,7 +448,7 @@ static int __pci_mmap_make_offset(struct pci_dev *dev, struct vm_area_struct *vm
this_base
=
rp
->
start
;
addr32
=
(
this_base
&
PAGE_MASK
)
&
0xffffffffUL
;
addr32
=
(
this_base
&
PAGE_MASK
)
&
pci_memspace_mask
;
if
(
mmap_state
==
pci_mmap_io
)
addr32
&=
0xffffff
;
...
...
@@ -464,7 +464,7 @@ static int __pci_mmap_make_offset(struct pci_dev *dev, struct vm_area_struct *vm
if
(
mmap_state
==
pci_mmap_io
)
vma
->
vm_pgoff
=
(((
largest_base
&
~
0xffffffUL
)
|
user32
)
>>
PAGE_SHIFT
);
else
vma
->
vm_pgoff
=
(((
largest_base
&
~
0xffffffffUL
)
|
user32
)
>>
PAGE_SHIFT
);
vma
->
vm_pgoff
=
(((
largest_base
&
~
(
pci_memspace_mask
)
)
|
user32
)
>>
PAGE_SHIFT
);
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment