From 1a1c3fb565519644efac641b2ce88004ff48429a Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Sun, 15 Nov 2009 22:37:19 +0000 Subject: 2009-11-15 Till Straumann * 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. --- c/src/lib/libbsp/powerpc/psim/ChangeLog | 9 +++++++++ c/src/lib/libbsp/powerpc/psim/startup/bspstart.c | 9 ++++++--- c/src/lib/libbsp/powerpc/psim/startup/linkcmds | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) (limited to 'c') 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 + + * 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 * 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 = .); -- cgit v1.2.3