summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
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/startup/bspstart.c
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/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/bspstart.c9
1 files changed, 6 insertions, 3 deletions
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");
+
}