Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 112533
b: refs/heads/master
c: 9a79f4f
h: refs/heads/master
i:
  112531: b41e2c9
v: v3
  • Loading branch information
Rene Herman authored and Ingo Molnar committed Aug 22, 2008
1 parent 5ba9008 commit ab72c08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8b53b57576292b92b27769f9e213df19b6e57786
refs/heads/master: 9a79f4f491f92bc713e1f28f96516b141b752600
6 changes: 3 additions & 3 deletions trunk/arch/x86/mm/pageattr.c
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ int set_memory_array_uc(unsigned long *addr, int addrinarray)
* for now UC MINUS. see comments in ioremap_nocache()
*/
for (i = 0; i < addrinarray; i++) {
if (reserve_memtype(addr[i], addr[i] + PAGE_SIZE,
if (reserve_memtype(__pa(addr[i]), __pa(addr[i]) + PAGE_SIZE,
_PAGE_CACHE_UC_MINUS, NULL))
goto out;
}
Expand All @@ -956,7 +956,7 @@ int set_memory_array_uc(unsigned long *addr, int addrinarray)
__pgprot(_PAGE_CACHE_UC_MINUS), 1);
out:
while (--i >= 0)
free_memtype(addr[i], addr[i] + PAGE_SIZE);
free_memtype(__pa(addr[i]), __pa(addr[i]) + PAGE_SIZE);
return -EINVAL;
}
EXPORT_SYMBOL(set_memory_array_uc);
Expand Down Expand Up @@ -998,7 +998,7 @@ int set_memory_array_wb(unsigned long *addr, int addrinarray)
{
int i;
for (i = 0; i < addrinarray; i++)
free_memtype(addr[i], addr[i] + PAGE_SIZE);
free_memtype(__pa(addr[i]), __pa(addr[i]) + PAGE_SIZE);

return change_page_attr_clear(addr, addrinarray,
__pgprot(_PAGE_CACHE_MASK), 1);
Expand Down

0 comments on commit ab72c08

Please sign in to comment.