Seems to be a bug in mbx8xx BSP

Leon Pollak leonp at
Tue Jun 18 07:15:25 UTC 2002

	I think that there is a bug in the file 
The bssclr computes in r5 the length of the area to be zeroed.
The line 
	sub r5,r5,r4
seems to be missing
 * bssclr - zero out bss
	lis	r3, base_addr at ha
	addi	r3, r3, base_addr at l
        lwz     r4, bss_addr-base_addr(r3)      /* Start of bss */
        lwz     r5, bss_length-base_addr(r3)    /* Length of bss */
	sub   r5,r5,r4	/* <<<<<<<<<<<<< Is absent <<<<<<< */

        rlwinm. r5,r5,30,0x3FFFFFFF             /* form length/4 */
        beqlr                                   /* no bss - return */
        mtctr   r5                              /* set ctr reg */

        li      r5,0x0000                       /* r5 = 0 */

Also, I am not able to run cdtest sample. Can someone acknowledge successive 
run of it on this BSP?

leonp at plris dot com

More information about the users mailing list