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
487cb474
Commit
487cb474
authored
Jan 06, 2003
by
James Simmons
Browse files
Options
Browse Files
Download
Plain Diff
Merge maxwell.earthlink.net:/usr/src/linus-2.5
into maxwell.earthlink.net:/usr/src/fbdev-2.5
parents
ede590e3
ae4d9837
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
drivers/char/agp/generic.c
drivers/char/agp/generic.c
+1
-1
drivers/char/agp/intel-agp.c
drivers/char/agp/intel-agp.c
+4
-4
No files found.
drivers/char/agp/generic.c
View file @
487cb474
...
...
@@ -157,7 +157,7 @@ agp_memory *agp_allocate_memory(size_t page_count, u32 type)
agp_free_memory
(
new
);
return
NULL
;
}
new
->
memory
[
i
]
=
virt_to_phys
(
(
void
*
)
new
->
memory
[
i
]
);
new
->
memory
[
i
]
=
virt_to_phys
(
addr
);
new
->
page_count
++
;
}
...
...
drivers/char/agp/intel-agp.c
View file @
487cb474
...
...
@@ -220,11 +220,11 @@ static agp_memory *intel_i810_alloc_by_type(size_t pg_count, int type)
agp_free_memory
(
new
);
return
NULL
;
}
new
->
memory
[
0
]
=
virt_to_phys
(
(
void
*
)
new
->
memory
[
0
]
);
new
->
memory
[
0
]
=
virt_to_phys
(
addr
);
new
->
page_count
=
1
;
new
->
num_scratch_pages
=
1
;
new
->
type
=
AGP_PHYS_MEMORY
;
new
->
physical
=
virt_to_phys
((
void
*
)
new
->
memory
[
0
])
;
new
->
physical
=
new
->
memory
[
0
]
;
return
new
;
}
return
NULL
;
...
...
@@ -515,11 +515,11 @@ static agp_memory *intel_i830_alloc_by_type(size_t pg_count,int type)
return
(
NULL
);
}
nw
->
memory
[
0
]
=
virt_to_phys
(
(
void
*
)
nw
->
memory
[
0
]
);
nw
->
memory
[
0
]
=
virt_to_phys
(
addr
);
nw
->
page_count
=
1
;
nw
->
num_scratch_pages
=
1
;
nw
->
type
=
AGP_PHYS_MEMORY
;
nw
->
physical
=
virt_to_phys
(
addr
)
;
nw
->
physical
=
nw
->
memory
[
0
]
;
return
(
nw
);
}
...
...
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