public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arm64: Keep macro PGTABLE_SIZE for non-full-va map
@ 2016-03-21 18:59 York Sun
  2016-03-21 19:12 ` Alexander Graf
  0 siblings, 1 reply; 6+ messages in thread
From: York Sun @ 2016-03-21 18:59 UTC (permalink / raw)
  To: u-boot

Commit 7985cdf removed non-full-va map code, replaced PGTABLE_SIZE
with get_page_table_size() function for all. It is incorrect for
platforms with non-full-va mapping, at this moment Layerscape SoCs.

Signed-off-by: York Sun <york.sun@nxp.com>
CC: Alexander Graf <agraf@suse.de>
CC: Alison Wang <alison.wang@nxp.com>
CC: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
---
 arch/arm/include/asm/system.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/include/asm/system.h b/arch/arm/include/asm/system.h
index ac1173d..fab6f0c 100644
--- a/arch/arm/include/asm/system.h
+++ b/arch/arm/include/asm/system.h
@@ -20,7 +20,11 @@
 #ifndef __ASSEMBLY__
 
 u64 get_page_table_size(void);
+#ifdef CONFIG_SYS_FULL_VA
 #define PGTABLE_SIZE	get_page_table_size()
+#else
+#define PGTABLE_SIZE 0x10000
+#endif
 
 /* 2MB granularity */
 #define MMU_SECTION_SHIFT	21
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-03-21 19:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-21 18:59 [U-Boot] [PATCH] arm64: Keep macro PGTABLE_SIZE for non-full-va map York Sun
2016-03-21 19:12 ` Alexander Graf
2016-03-21 19:23   ` york sun
2016-03-21 19:29     ` Alexander Graf
2016-03-21 19:39       ` york sun
2016-03-21 19:42         ` Alexander Graf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox