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
nexedi
linux
Commits
1fb13dc1
Commit
1fb13dc1
authored
Nov 21, 2003
by
Dave Jones
Committed by
Dave Jones
Nov 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[AGPGART] Mask memory after allocation
We missed a few cases where we need to do this. Fix from Alan Hourihane.
parent
b8123db4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+2
-1
drivers/char/agp/intel-agp.c
drivers/char/agp/intel-agp.c
+1
-1
No files found.
drivers/char/agp/generic.c
View file @
1fb13dc1
...
...
@@ -180,7 +180,8 @@ struct agp_memory *agp_allocate_memory(size_t page_count, u32 type)
agp_free_memory
(
new
);
return
NULL
;
}
new
->
memory
[
i
]
=
virt_to_phys
(
addr
);
new
->
memory
[
i
]
=
agp_bridge
->
driver
->
mask_memory
(
virt_to_phys
(
addr
),
type
);
new
->
page_count
++
;
}
...
...
drivers/char/agp/intel-agp.c
View file @
1fb13dc1
...
...
@@ -204,7 +204,7 @@ static struct agp_memory *alloc_agpphysmem_i8xx(size_t pg_count, int type)
if
(
new
==
NULL
)
return
NULL
;
new
->
memory
[
0
]
=
virt_to_phys
(
addr
);
new
->
memory
[
0
]
=
agp_bridge
->
driver
->
mask_memory
(
virt_to_phys
(
addr
),
type
);
new
->
page_count
=
1
;
new
->
num_scratch_pages
=
1
;
new
->
type
=
AGP_PHYS_MEMORY
;
...
...
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