[rtems commit] powerpc/psim: Increase the psim memory to 256M

Chris Johns chrisj at rtems.org
Fri Feb 8 23:07:58 UTC 2019


Module:    rtems
Branch:    master
Commit:    b08278e8520d14e5b809bb07785b724c7a127e29
Changeset: http://git.rtems.org/rtems/commit/?id=b08278e8520d14e5b809bb07785b724c7a127e29

Author:    Chris Johns <chrisj at rtems.org>
Date:      Sat Feb  2 15:32:38 2019 +1100

powerpc/psim: Increase the psim memory to 256M

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 4fcc3ac..3c13673 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 bd2a2a5..2bace84 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 7ac8284..d5e61f9 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



More information about the vc mailing list