[PATCH 03/11] powerpc/psim: Increase the psim memory to 256M
chrisj at rtems.org
chrisj at rtems.org
Tue Feb 5 01:42:56 UTC 2019
From: Chris Johns <chrisj at rtems.org>
This allows test dl09 to run and test PowePC backend trampoline support.
Updates #3685
---
bsps/powerpc/psim/start/bspstart.c | 4 ++--
bsps/powerpc/psim/start/device-tree | 2 +-
bsps/powerpc/psim/start/linkcmds | 7 ++++++-
3 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/bsps/powerpc/psim/start/bspstart.c b/bsps/powerpc/psim/start/bspstart.c
index 4fcc3ac01c..3c136739de 100644
--- a/bsps/powerpc/psim/start/bspstart.c
+++ b/bsps/powerpc/psim/start/bspstart.c
@@ -101,8 +101,8 @@ void bsp_start( void )
* Setup BATs and enable MMU
*/
/* Memory */
- setdbat(0, 0x0<<24, 0x0<<24, 2<<24, _PAGE_RW);
- setibat(0, 0x0<<24, 0x0<<24, 2<<24, 0);
+ setdbat(0, 0x0<<28, 0x0<<28, 1<<28, _PAGE_RW);
+ setibat(0, 0x0<<28, 0x0<<28, 1<<28, 0);
/* PCI */
setdbat(1, 0x8<<24, 0x8<<24, 1<<24, IO_PAGE);
setdbat(2, 0xc<<24, 0xc<<24, 1<<24, IO_PAGE);
diff --git a/bsps/powerpc/psim/start/device-tree b/bsps/powerpc/psim/start/device-tree
index bd2a2a56ef..2bace84869 100644
--- a/bsps/powerpc/psim/start/device-tree
+++ b/bsps/powerpc/psim/start/device-tree
@@ -1,4 +1,4 @@
#/openprom/init/register/pc 0
#/openprom/options/smp 2
#/openprom/options/oea-memory-size 4194304
-/openprom/options/oea-memory-size 8388608
+/openprom/options/oea-memory-size 0x10000000
diff --git a/bsps/powerpc/psim/start/linkcmds b/bsps/powerpc/psim/start/linkcmds
index 7ac828443d..d5e61f9425 100644
--- a/bsps/powerpc/psim/start/linkcmds
+++ b/bsps/powerpc/psim/start/linkcmds
@@ -10,7 +10,7 @@
EXTERN (__vectors)
MEMORY {
- RAM : ORIGIN = 0, LENGTH = 16M
+ RAM : ORIGIN = 0, LENGTH = 256M
EMPTY : ORIGIN = 0x0, LENGTH = 0
}
@@ -37,4 +37,9 @@ PROVIDE (PSIM_INSTRUCTIONS_PER_MICROSECOND = 10000);
PSIM = 0x0c000000;
+/*
+ * Allocate the maximum memory to the sdata/sbss section.
+ */
+bsp_section_sdata_bss_maximum_size = 1;
+
INCLUDE linkcmds.base
--
2.19.1
More information about the devel
mailing list