diff options
Diffstat (limited to 'arch/score/mm')
-rw-r--r-- | arch/score/mm/init.c | 4 | ||||
-rw-r--r-- | arch/score/mm/pgtable.c | 10 |
2 files changed, 4 insertions, 10 deletions
diff --git a/arch/score/mm/init.c b/arch/score/mm/init.c index d496e9f1a601..4e3dcd0c4716 100644 --- a/arch/score/mm/init.c +++ b/arch/score/mm/init.c | |||
@@ -144,7 +144,8 @@ void free_initrd_mem(unsigned long start, unsigned long end) | |||
144 | void __init_refok free_initmem(void) | 144 | void __init_refok free_initmem(void) |
145 | { | 145 | { |
146 | free_init_pages("unused kernel memory", | 146 | free_init_pages("unused kernel memory", |
147 | (unsigned long)__init_begin, (unsigned long)__init_end); | 147 | __pa(&__init_begin), |
148 | __pa(&__init_end)); | ||
148 | } | 149 | } |
149 | 150 | ||
150 | unsigned long pgd_current; | 151 | unsigned long pgd_current; |
@@ -156,4 +157,5 @@ unsigned long pgd_current; | |||
156 | * are constants. So we use the variants from asm-offset.h until that gcc | 157 | * are constants. So we use the variants from asm-offset.h until that gcc |
157 | * will officially be retired. | 158 | * will officially be retired. |
158 | */ | 159 | */ |
160 | pgd_t swapper_pg_dir[PTRS_PER_PGD] __page_aligned(PTE_ORDER); | ||
159 | pte_t invalid_pte_table[PTRS_PER_PTE] __page_aligned(PTE_ORDER); | 161 | pte_t invalid_pte_table[PTRS_PER_PTE] __page_aligned(PTE_ORDER); |
diff --git a/arch/score/mm/pgtable.c b/arch/score/mm/pgtable.c index 10b0962f83d4..6408bb73d3cc 100644 --- a/arch/score/mm/pgtable.c +++ b/arch/score/mm/pgtable.c | |||
@@ -47,14 +47,6 @@ void pgd_init(unsigned long page) | |||
47 | 47 | ||
48 | void __init pagetable_init(void) | 48 | void __init pagetable_init(void) |
49 | { | 49 | { |
50 | unsigned long vaddr; | ||
51 | pgd_t *pgd_base; | ||
52 | |||
53 | /* Initialize the entire pgd. */ | 50 | /* Initialize the entire pgd. */ |
54 | pgd_init((unsigned long) swapper_pg_dir); | 51 | pgd_init((unsigned long)swapper_pg_dir); |
55 | pgd_init((unsigned long) swapper_pg_dir | ||
56 | + sizeof(pgd_t) * USER_PTRS_PER_PGD); | ||
57 | |||
58 | pgd_base = swapper_pg_dir; | ||
59 | vaddr = __fix_to_virt(__end_of_fixed_addresses - 1) & PMD_MASK; | ||
60 | } | 52 | } |