summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/psim
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2009-11-15 22:37:19 +0000
committerTill Straumann <strauman@slac.stanford.edu>2009-11-15 22:37:19 +0000
commit1a1c3fb565519644efac641b2ce88004ff48429a (patch)
treedeebf840d03f051f7ca4d0145a192ec16e4a3c1b /c/src/lib/libbsp/powerpc/psim
parent2009-11-15 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-1a1c3fb565519644efac641b2ce88004ff48429a.tar.bz2
2009-11-15 Till Straumann <strauman@slac.stanford.edu>
* startup/bspstart.c: use normal get_ppc_cpu_type() for determining PPC flavor. This causes the appropriate 'feature' bits to be set and should work as long as the PVR is set to 0xfffe0000 in the device tree. * startup/linkcmds: increased RAM_SIZE to 32M.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim')
-rw-r--r--c/src/lib/libbsp/powerpc/psim/ChangeLog9
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/bspstart.c9
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/linkcmds2
3 files changed, 16 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/ChangeLog b/c/src/lib/libbsp/powerpc/psim/ChangeLog
index 7120ad897e..13815036c7 100644
--- a/c/src/lib/libbsp/powerpc/psim/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/psim/ChangeLog
@@ -1,3 +1,12 @@
+2009-11-15 Till Straumann <strauman@slac.stanford.edu>
+
+ * startup/bspstart.c: use normal get_ppc_cpu_type()
+ for determining PPC flavor. This causes the appropriate
+ 'feature' bits to be set and should work as long
+ as the PVR is set to 0xfffe0000 in the device tree.
+
+ * startup/linkcmds: increased RAM_SIZE to 32M.
+
2009-11-11 Till Straumann <strauman@slac.stanford.edu>
* start/start.S: Ensure that initial stack is aligned to
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
index 3fe8df34c8..2d921db3bd 100644
--- a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
@@ -84,10 +84,12 @@ void bsp_start( void )
uintptr_t intrStackSize;
/*
- * Note we can not get CPU identification dynamically, so
- * force current_ppc_cpu.
+ * Note we can not get CPU identification dynamically.
+ * PVR has to be set to PPC_PSIM (0xfffe) from the device
+ * file.
*/
- current_ppc_cpu = PPC_PSIM;
+
+ get_ppc_cpu_type();
/*
* initialize the device driver parameters
@@ -136,4 +138,5 @@ void bsp_start( void )
_write_MSR(_read_MSR() | MSR_DR | MSR_IR);
asm volatile("sync; isync");
+
}
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/linkcmds b/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
index 23bfb4139e..b10cc466e5 100644
--- a/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
+++ b/c/src/lib/libbsp/powerpc/psim/startup/linkcmds
@@ -214,7 +214,7 @@ _SDA_BASE_ = __SDATA_START__ + 0x8000;
_edata = .;
PROVIDE (edata = .);
- PROVIDE (RAM_END = 8M);
+ PROVIDE (RAM_END = 32M);
.sbss :
{
PROVIDE (__sbss_start = .);