/************************************************************************* ** Broadcom Corp. Confidential ** Copyright 2010 Broadcom Corp. All Rights Reserved. ** ** THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE ** AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR ** EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. ** ** File: bls1.S ** Description: stage 1 of two stage bootloader for 755x chip. ** Created: alexp ** ** REVISION: ** ***************************************************************************/ #include "bmips3300.h" .set mips32 .text .align 4 .globl auth_test .ent auth_test auth_test: la a0, _test_bsp_start or a0, 0x20000000 la a1, _test_bsp_vma la a2, _test_bsp_size bal aligned_copy nop /* flush invalidate d cache */ bal clear_all_d_cache nop la a0, _test_bsp_vma and a0, 0x1fffffff move a1, a0 addiu a0, a0, 2 la a3, _test_bsp_size sub a3, a3, 0x100 add a1, a1, a3 move a2, a1 sub a1, a1, 1 li a3, 0x01ff0000 bal aegis_arch_r2_setup nop sdbbp nop .end auth_test LEAF(aligned_copy) 1: lw v0, 0(a0) addiu a2, a2, -4 sw v0, 0(a1) addiu a0, a0, 4 addiu a1, a1, 4 bnez a2, 1b nop jr ra nop END(aligned_copy) #include "uart.s" #include "cache_lib.s" #define delay_loop dl1 #include "mem_auth_new.s"