source: svn/trunk/newcon3bcm2_21bu/dta/tests/basic/auth_test.S @ 2

Last change on this file since 2 was 2, checked in by jglee, 11 years ago

first commit

  • Property svn:executable set to *
File size: 1.6 KB
Line 
1/*************************************************************************
2**      Broadcom Corp. Confidential
3**      Copyright 2010 Broadcom Corp.  All Rights Reserved.
4**
5**      THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE
6**      AGREEMENT  BETWEEN THE USER AND BROADCOM.  YOU HAVE NO RIGHT TO USE OR
7**      EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT.
8**
9**      File:                   bls1.S
10**      Description:    stage 1 of two stage bootloader for 755x chip.
11**      Created:                alexp
12**
13**      REVISION:
14**
15***************************************************************************/
16
17#include "bmips3300.h"
18
19        .set mips32
20        .text
21        .align 4
22        .globl auth_test
23        .ent auth_test
24auth_test:
25        la a0, _test_bsp_start
26        or a0, 0x20000000
27        la a1, _test_bsp_vma
28        la a2, _test_bsp_size
29        bal aligned_copy
30        nop
31/* flush invalidate d cache */
32        bal clear_all_d_cache
33        nop
34        la a0, _test_bsp_vma
35        and a0, 0x1fffffff
36        move a1, a0
37        addiu a0, a0, 2
38        la  a3, _test_bsp_size
39        sub a3, a3, 0x100
40        add a1, a1, a3
41        move a2, a1
42        sub a1, a1, 1
43        li a3, 0x01ff0000
44        bal aegis_arch_r2_setup
45        nop
46        sdbbp
47        nop
48        .end auth_test
49
50LEAF(aligned_copy)
51
521:
53        lw      v0, 0(a0)
54        addiu   a2, a2, -4
55        sw      v0, 0(a1)
56        addiu   a0, a0, 4
57        addiu   a1, a1, 4
58        bnez    a2, 1b
59        nop
60        jr      ra
61        nop
62
63END(aligned_copy)
64       
65#include "uart.s"
66#include "cache_lib.s"
67#define delay_loop dl1
68#include "mem_auth_new.s"
69
Note: See TracBrowser for help on using the repository browser.