~ahs3/+junk/cq-qemu

« back to all changes in this revision

Viewing changes to tests/xtensa/crt.S

  • Committer: Al Stone
  • Date: 2012-02-09 01:17:20 UTC
  • Revision ID: albert.stone@canonical.com-20120209011720-tztl7ik3qayz80p4
first commit to bzr for qemu

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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