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:
7bfb72e
)
x86: switch direct mapping setup over to set_pte
author
Andi Kleen
<
[email protected]
>
Mon, 4 Feb 2008 15:48:09 +0000
(16:48 +0100)
committer
Ingo Molnar
<
[email protected]
>
Mon, 4 Feb 2008 15:48:09 +0000
(16:48 +0100)
Use set_pte() for setting up the 2MB pages in the direct mapping.
Signed-off-by: Andi Kleen <
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
Signed-off-by: Thomas Gleixner <
[email protected]
>
arch/x86/mm/init_64.c
patch
|
blob
|
history
diff --git
a/arch/x86/mm/init_64.c
b/arch/x86/mm/init_64.c
index 5855449ce7aac4ced1e756d2b3a5429172f0039b..3a98d6f724ab69b9ed4d075a0a14895efe482dbc 100644
(file)
--- a/
arch/x86/mm/init_64.c
+++ b/
arch/x86/mm/init_64.c
@@
-273,7
+273,6
@@
phys_pmd_init(pmd_t *pmd_page, unsigned long address, unsigned long end)
int i = pmd_index(address);
for (; i < PTRS_PER_PMD; i++, address += PMD_SIZE) {
- unsigned long entry;
pmd_t *pmd = pmd_page + pmd_index(address);
if (address >= end) {
@@
-287,9
+286,8
@@
phys_pmd_init(pmd_t *pmd_page, unsigned long address, unsigned long end)
if (pmd_val(*pmd))
continue;
- entry = __PAGE_KERNEL_LARGE|_PAGE_GLOBAL|address;
- entry &= __supported_pte_mask;
- set_pmd(pmd, __pmd(entry));
+ set_pte((pte_t *)pmd,
+ pfn_pte(address >> PAGE_SHIFT, PAGE_KERNEL_LARGE));
}
}