change log for rtems (2011-07-27)

Joel Sherrill joel.sherrill at OARcorp.com
Thu Jul 28 13:25:27 UTC 2011


Till,

Some powerpc bsps have their own start.S including
qemuppc and psim.  Could you make a sweep across
them and see if this needs to be done to them?

Thanks.

--joel

On 07/27/2011 09:10 PM, rtems-vc at rtems.org wrote:
> *strauman*
> 2011-07-27  Till Straumann<strauman at slac.stanford.edu>
>
> 	* shared/start/start.S, shared/start/preload.S:
> 	Make sure stack is 16-byte aligned and the TOS
> 	is tagged with a NULL pointer (used as a terminator
> 	when printing stack traces).
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/ChangeLog.diff?r1=text&tr1=1.265&r2=text&tr2=1.266&diff_format=h> 
> 	1.266 	c/src/lib/libbsp/powerpc/ChangeLog
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/shared/start/preload.S.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h> 
> 	1.3 	c/src/lib/libbsp/powerpc/shared/start/preload.S
> M 
> <http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/c/src/lib/libbsp/powerpc/shared/start/start.S.diff?r1=text&tr1=1.28&r2=text&tr2=1.29&diff_format=h> 
> 	1.29 	c/src/lib/libbsp/powerpc/shared/start/start.S
>
> diff -u rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.265 rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.266
> --- rtems/c/src/lib/libbsp/powerpc/ChangeLog:1.265	Tue Jul 26 23:21:25 2011
> +++ rtems/c/src/lib/libbsp/powerpc/ChangeLog	Wed Jul 27 20:13:19 2011
> @@ -1,3 +1,10 @@
> +2011-07-27  Till Straumann<strauman at slac.stanford.edu>
> +
> +	* shared/start/start.S, shared/start/preload.S:
> +	Make sure stack is 16-byte aligned and the TOS
> +	is tagged with a NULL pointer (used as a terminator
> +	when printing stack traces).
> +
>   2011-07-26  Till Straumann<strauman at slac.stanford.edu>
>
>   	* shared/irq/openpic_i8259_irq.c: silenced compiler warnings.
>
> diff -u rtems/c/src/lib/libbsp/powerpc/shared/start/preload.S:1.2 rtems/c/src/lib/libbsp/powerpc/shared/start/preload.S:1.3
> --- rtems/c/src/lib/libbsp/powerpc/shared/start/preload.S:1.2	Sun Nov 29 22:32:24 2009
> +++ rtems/c/src/lib/libbsp/powerpc/shared/start/preload.S	Wed Jul 27 20:13:20 2011
> @@ -84,7 +84,7 @@
>    * if DESTINATION_ADDR is not 0
>    */
>   #define KERNELBASE			0x0
> -#define INITIAL_STACK		0x78					/* 8-byte aligned */
> +#define INITIAL_STACK		0x70					/* 16-byte aligned */
>   #define CACHE_LINE_SIZE		PPC_CACHE_ALIGNMENT  	/* autodetect doesn't work, see below */
>   #define	ASSUME_RTEMS_INSTALLS_VECTORS				/* assume we need not load vectors */
>   #define DONT_USE_R5_ENTRY							/* always dynamically determine the address we're running from */
> @@ -211,6 +211,9 @@
>
>   	/* setup initial stack for rtems early boot */
>   	li		r1,INITIAL_STACK
> +	/* tag TOS with a NULL pointer (for stack trace) */
> +	li      r0, 0
> +	stw     r0, 0(r1)
>   	/* disable the MMU and fire up rtems */
>   	mfmsr	r0
>   	ori  	r0,r0,MSR_IR|MSR_DR|MSR_IP|MSR_ME
>
> diff -u rtems/c/src/lib/libbsp/powerpc/shared/start/start.S:1.28 rtems/c/src/lib/libbsp/powerpc/shared/start/start.S:1.29
> --- rtems/c/src/lib/libbsp/powerpc/shared/start/start.S:1.28	Fri Jan 28 14:29:53 2011
> +++ rtems/c/src/lib/libbsp/powerpc/shared/start/start.S	Wed Jul 27 20:13:20 2011
> @@ -130,6 +130,12 @@
>   	li   r0, (CPU_STACK_ALIGNMENT-1)
>   	andc r1, r9, r0
>   	/*
> +	 * Tag TOS with a NULL (terminator for stack dump)
> +	 */
> +	li   r0, 0
> +	stw  r0, 0(r1)
> +	
> +	/*
>   	* We are now in a environment that is totally independent from
>   	 * bootloader setup.
>   	 */
>
> --
> Generated by Deluxe Loginfo 
> <http://www.codewiz.org/projects/index.html#loginfo> 2.122 by Bernardo 
> Innocenti <bernie at develer.com>
>


-- 
Joel Sherrill, Ph.D.             Director of Research&  Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
    Support Available             (256) 722-9985





More information about the vc mailing list