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
be4258fe
Commit
be4258fe
authored
Feb 08, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make AGP on x86 work temporarily while waiting for the proper fix.
parent
d7b65475
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/char/agp/agpgart_be.c
drivers/char/agp/agpgart_be.c
+5
-5
No files found.
drivers/char/agp/agpgart_be.c
View file @
be4258fe
...
...
@@ -2391,7 +2391,7 @@ static int amd_create_gatt_table(void)
agp_bridge
.
gatt_table_real
=
page_dir
.
real
;
agp_bridge
.
gatt_table
=
page_dir
.
remapped
;
agp_bridge
.
gatt_bus_addr
=
virt_to_
bu
s
(
page_dir
.
real
);
agp_bridge
.
gatt_bus_addr
=
virt_to_
phy
s
(
page_dir
.
real
);
/* Get the address for the gart region.
* This is a bus address even on the alpha, b/c its
...
...
@@ -2405,7 +2405,7 @@ static int amd_create_gatt_table(void)
/* Calculate the agp offset */
for
(
i
=
0
;
i
<
value
->
num_entries
/
1024
;
i
++
,
addr
+=
0x00400000
)
{
page_dir
.
remapped
[
GET_PAGE_DIR_OFF
(
addr
)]
=
virt_to_
bu
s
(
amd_irongate_private
.
gatt_pages
[
i
]
->
real
);
virt_to_
phy
s
(
amd_irongate_private
.
gatt_pages
[
i
]
->
real
);
page_dir
.
remapped
[
GET_PAGE_DIR_OFF
(
addr
)]
|=
0x00000001
;
}
...
...
@@ -3027,7 +3027,7 @@ static int serverworks_create_gatt_table(void)
for
(
i
=
0
;
i
<
1024
;
i
++
)
{
serverworks_private
.
scratch_dir
.
remapped
[
i
]
=
(
unsigned
long
)
agp_bridge
.
scratch_page
;
page_dir
.
remapped
[
i
]
=
virt_to_
bu
s
(
serverworks_private
.
scratch_dir
.
real
);
virt_to_
phy
s
(
serverworks_private
.
scratch_dir
.
real
);
page_dir
.
remapped
[
i
]
|=
0x00000001
;
}
...
...
@@ -3040,7 +3040,7 @@ static int serverworks_create_gatt_table(void)
agp_bridge
.
gatt_table_real
=
page_dir
.
real
;
agp_bridge
.
gatt_table
=
page_dir
.
remapped
;
agp_bridge
.
gatt_bus_addr
=
virt_to_
bu
s
(
page_dir
.
real
);
agp_bridge
.
gatt_bus_addr
=
virt_to_
phy
s
(
page_dir
.
real
);
/* Get the address for the gart region.
* This is a bus address even on the alpha, b/c its
...
...
@@ -3056,7 +3056,7 @@ static int serverworks_create_gatt_table(void)
for
(
i
=
0
;
i
<
value
->
num_entries
/
1024
;
i
++
)
{
page_dir
.
remapped
[
i
]
=
virt_to_
bu
s
(
serverworks_private
.
gatt_pages
[
i
]
->
real
);
virt_to_
phy
s
(
serverworks_private
.
gatt_pages
[
i
]
->
real
);
page_dir
.
remapped
[
i
]
|=
0x00000001
;
}
...
...
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