Commit f67860a7 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Russell King

ARM: 7363/1: DEBUG_LL: limit early mapping to the minimum

There is just no point mapping up to 512MB for a serial port.
Using a single 1MB entry is way sufficient for all users.
This will create less interference for the following debugging patch.
Signed-off-by: default avatarNicolas Pitre <nico@linaro.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c5102f59
...@@ -277,10 +277,6 @@ __create_page_tables: ...@@ -277,10 +277,6 @@ __create_page_tables:
mov r3, r3, lsl #PMD_ORDER mov r3, r3, lsl #PMD_ORDER
add r0, r4, r3 add r0, r4, r3
rsb r3, r3, #0x4000 @ PTRS_PER_PGD*sizeof(long)
cmp r3, #0x0800 @ limit to 512MB
movhi r3, #0x0800
add r6, r0, r3
mov r3, r7, lsr #SECTION_SHIFT mov r3, r7, lsr #SECTION_SHIFT
ldr r7, [r10, #PROCINFO_IO_MMUFLAGS] @ io_mmuflags ldr r7, [r10, #PROCINFO_IO_MMUFLAGS] @ io_mmuflags
orr r3, r7, r3, lsl #SECTION_SHIFT orr r3, r7, r3, lsl #SECTION_SHIFT
...@@ -289,13 +285,10 @@ __create_page_tables: ...@@ -289,13 +285,10 @@ __create_page_tables:
#else #else
orr r3, r3, #PMD_SECT_XN orr r3, r3, #PMD_SECT_XN
#endif #endif
1: str r3, [r0], #4 str r3, [r0], #4
#ifdef CONFIG_ARM_LPAE #ifdef CONFIG_ARM_LPAE
str r7, [r0], #4 str r7, [r0], #4
#endif #endif
add r3, r3, #1 << SECTION_SHIFT
cmp r0, r6
blo 1b
#else /* CONFIG_DEBUG_ICEDCC || CONFIG_DEBUG_SEMIHOSTING */ #else /* CONFIG_DEBUG_ICEDCC || CONFIG_DEBUG_SEMIHOSTING */
/* we don't need any serial debugging mappings */ /* we don't need any serial debugging mappings */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment