aboutsummaryrefslogtreecommitdiff
path: root/01-ctest/start.S
blob: 933bf48486844df37e3180dbcafd9a4c79176feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#define VRAMADDR 0x14800000
#define DISPH 480
#define DISPW 800

#define DRAM_START 0xa0000000
#define DRAM_END   0xa4000000

.globl start
.arm
start:
  @setup stack
  ldr sp, =(DRAM_END)
  @initialize bss
  ldr r0, =_edata
  ldr r1, =_end
  mov r2, #0
.Lbssloop:
  cmp r0, r1
  bhs .Lbssloopend
  stmia r0!, {r2}
  b .Lbssloop
.Lbssloopend:
  blx cstart
.Lhalt:
  b .Lhalt