Statistics
| Branch: | Revision:

root / tests / tcg / xtensa / crt.S @ c09015dd

History | View | Annotate | Download (357 Bytes)

1
.section .init
2
    j       1f
3
.section .init.text
4
1:
5
    movi    a2, _start
6
    jx      a2
7

    
8
.text
9
.global _start
10
_start:
11
    movi    a2, 1
12
    wsr     a2, windowstart
13
    movi    a2, 0
14
    wsr     a2, windowbase
15
    movi    a1, _fstack
16
    movi    a2, 0x4000f
17
    wsr     a2, ps
18
    isync
19

    
20
    call0   main
21

    
22
    mov     a3, a2
23
    movi    a2, 1
24
    simcall