diff options
Diffstat (limited to 'arch/s390/mm/init.c')
-rw-r--r-- | arch/s390/mm/init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index 0e7e9acab9e1..162a338a5575 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c | |||
@@ -104,7 +104,7 @@ static void __init setup_ro_region(void) | |||
104 | pmd = pmd_offset(pgd, address); | 104 | pmd = pmd_offset(pgd, address); |
105 | pte = pte_offset_kernel(pmd, address); | 105 | pte = pte_offset_kernel(pmd, address); |
106 | new_pte = mk_pte_phys(address, __pgprot(_PAGE_RO)); | 106 | new_pte = mk_pte_phys(address, __pgprot(_PAGE_RO)); |
107 | set_pte(pte, new_pte); | 107 | *pte = new_pte; |
108 | } | 108 | } |
109 | } | 109 | } |
110 | 110 | ||
@@ -124,11 +124,11 @@ void __init paging_init(void) | |||
124 | #ifdef CONFIG_64BIT | 124 | #ifdef CONFIG_64BIT |
125 | pgdir_k = (__pa(swapper_pg_dir) & PAGE_MASK) | _KERN_REGION_TABLE; | 125 | pgdir_k = (__pa(swapper_pg_dir) & PAGE_MASK) | _KERN_REGION_TABLE; |
126 | for (i = 0; i < PTRS_PER_PGD; i++) | 126 | for (i = 0; i < PTRS_PER_PGD; i++) |
127 | pgd_clear(pg_dir + i); | 127 | pgd_clear_kernel(pg_dir + i); |
128 | #else | 128 | #else |
129 | pgdir_k = (__pa(swapper_pg_dir) & PAGE_MASK) | _KERNSEG_TABLE; | 129 | pgdir_k = (__pa(swapper_pg_dir) & PAGE_MASK) | _KERNSEG_TABLE; |
130 | for (i = 0; i < PTRS_PER_PGD; i++) | 130 | for (i = 0; i < PTRS_PER_PGD; i++) |
131 | pmd_clear((pmd_t *)(pg_dir + i)); | 131 | pmd_clear_kernel((pmd_t *)(pg_dir + i)); |
132 | #endif | 132 | #endif |
133 | vmem_map_init(); | 133 | vmem_map_init(); |
134 | setup_ro_region(); | 134 | setup_ro_region(); |