projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f8afb7
)
x86: Ioremap: fix wrong physical address handling in PAT code
author
Yasuaki Ishimatsu
<
[email protected]
>
Thu, 22 Jul 2010 05:57:35 +0000
(14:57 +0900)
committer
Thomas Gleixner
<
[email protected]
>
Thu, 29 Jul 2010 13:26:11 +0000
(15:26 +0200)
The following two commits fixed a problem that x86 ioremap() doesn't handle
physical address higher than 32-bit properly in X86_32 PAE mode.
ffa71f33a820d1ab3f2fc5723819ac60fb76080b
(x86, ioremap: Fix incorrect
physical address handling in PAE mode)
35be1b716a475717611b2dc04185e9d80b9cb693
(x86, ioremap: Fix normal
ram range check)
But these fixes are not enough, since pat_pagerange_is_ram() in PAT code
also has a same problem. This patch fixes it.
Signed-off-by: Yasuaki Ishimatsu <
[email protected]
>
Reviewed-by: Kenji Kaneshige <
[email protected]
>
LKML-Reference: <
4C47DDCF
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
arch/x86/mm/pat.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/pat.c
b/arch/x86/mm/pat.c
index acc15b23b74342df6188d0fd0e7b356e1530e8bb..03b48c80c651a918bd18f14889884d71c9ce254c 100644
(file)
--- a/
arch/x86/mm/pat.c
+++ b/
arch/x86/mm/pat.c
@@
-158,7
+158,7
@@
static unsigned long pat_x_mtrr_type(u64 start, u64 end, unsigned long req_type)
return req_type;
}
-static int pat_pagerange_is_ram(
unsigned long start, unsigned long
end)
+static int pat_pagerange_is_ram(
resource_size_t start, resource_size_t
end)
{
int ram_page = 0, not_rampage = 0;
unsigned long page_nr;