Skip to content

Commit 0382396

Browse files
committed
Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King: "Three fixes for ARM: - unbreak the RiscPC build - fix wrong pg_level in page table dumper - make MT_MEMORY_RO really read-only with LPAE" * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm: ARM: 9247/1: mm: set readonly for MT_MEMORY_RO with ARM_LPAE ARM: 9244/1: dump: Fix wrong pg_level in walk_pmd() ARM: 9243/1: riscpc: Unbreak the build
2 parents 75003fa + 14ca1a4 commit 0382396

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

arch/arm/boot/compressed/misc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ unsigned int __machine_arch_type;
2323
#include <linux/types.h>
2424
#include <linux/linkage.h>
2525
#include "misc.h"
26+
#ifdef CONFIG_ARCH_EP93XX
2627
#include "misc-ep93xx.h"
28+
#endif
2729

2830
static void putstr(const char *ptr);
2931

arch/arm/mm/dump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static void walk_pmd(struct pg_state *st, pud_t *pud, unsigned long start)
346346
addr = start + i * PMD_SIZE;
347347
domain = get_domain_name(pmd);
348348
if (pmd_none(*pmd) || pmd_large(*pmd) || !pmd_present(*pmd))
349-
note_page(st, addr, 3, pmd_val(*pmd), domain);
349+
note_page(st, addr, 4, pmd_val(*pmd), domain);
350350
else
351351
walk_pte(st, pmd, addr, domain);
352352

arch/arm/mm/mmu.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,11 @@ static struct mem_type mem_types[] __ro_after_init = {
300300
.prot_pte = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY |
301301
L_PTE_XN | L_PTE_RDONLY,
302302
.prot_l1 = PMD_TYPE_TABLE,
303+
#ifdef CONFIG_ARM_LPAE
304+
.prot_sect = PMD_TYPE_SECT | L_PMD_SECT_RDONLY | PMD_SECT_AP2,
305+
#else
303306
.prot_sect = PMD_TYPE_SECT,
307+
#endif
304308
.domain = DOMAIN_KERNEL,
305309
},
306310
[MT_ROM] = {

0 commit comments

Comments
 (0)