diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2009-11-15 22:37:19 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2009-11-15 22:37:19 +0000 |
commit | 1a1c3fb565519644efac641b2ce88004ff48429a (patch) | |
tree | deebf840d03f051f7ca4d0145a192ec16e4a3c1b /c/src/lib/libbsp/powerpc/psim/startup/bspstart.c | |
parent | 2009-11-15 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-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.c | 9 |
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"); + } |