Skip to content

Commit 4e1db26

Browse files
pebolleRussell King
authored andcommitted
ARM: 7690/1: mm: fix CONFIG_LPAE typos
CONFIG_LPAE doesn't exist: the correct option is CONFIG_ARM_LPAE, so fix up the two typos under arch/arm/. The fix to head.S is slightly scary, but this is just for setting up an early io-mapping for the serial port when running on a big-endian, LPAE system. Since these systems don't exist in the wild (at least, I have no access to one outside of kvmtool, which doesn't provide a serial port suitable for earlyprintk), then we can revisit the code later if it causes any problems. Signed-off-by: Paul Bolle <[email protected]> Signed-off-by: Will Deacon <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent b21e023 commit 4e1db26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

arch/arm/kernel/head.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ __create_page_tables:
267267
addne r6, r6, #1 << SECTION_SHIFT
268268
strne r6, [r3]
269269

270-
#if defined(CONFIG_LPAE) && defined(CONFIG_CPU_ENDIAN_BE8)
270+
#if defined(CONFIG_ARM_LPAE) && defined(CONFIG_CPU_ENDIAN_BE8)
271271
sub r4, r4, #4 @ Fixup page table pointer
272272
@ for 64-bit descriptors
273273
#endif

arch/arm/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ int __init arm_add_memory(phys_addr_t start, phys_addr_t size)
544544
size -= start & ~PAGE_MASK;
545545
bank->start = PAGE_ALIGN(start);
546546

547-
#ifndef CONFIG_LPAE
547+
#ifndef CONFIG_ARM_LPAE
548548
if (bank->start + size < bank->start) {
549549
printk(KERN_CRIT "Truncating memory at 0x%08llx to fit in "
550550
"32-bit physical address space\n", (long long)start);

0 commit comments

Comments
 (0)