Commit | Line | Data |
---|---|---|
db7e2859 | 1 | # srt0.c 4.2 %G% |
3a30f6d7 BJ |
2 | |
3 | # Startup code for standalone system | |
4 | # Non-relocating version -- for programs which are loaded by boot | |
5 | ||
1a6aead8 | 6 | .globl _edata |
3a30f6d7 BJ |
7 | .globl _main |
8 | .globl __rtt | |
3a30f6d7 BJ |
9 | |
10 | .set PHYSUBA,0x20006000 # uba 0 | |
3a30f6d7 BJ |
11 | |
12 | .set HIGH,31 # mask for total disable | |
13 | ||
14 | .word 0x0 | |
15 | mtpr $HIGH,$IPL # just in case | |
1a6aead8 | 16 | movl $RELOC-0x2000,sp |
3a30f6d7 | 17 | movl $1,PHYSUBA+4 # init |
1a6aead8 BJ |
18 | ubic: |
19 | movl *$PHYSUBA,r0 # while ((up->uba_cnfgr & UBIC) == 0) | |
20 | bitl $0x10000,r0 # continue; | |
db7e2859 | 21 | jeql ubic |
1a6aead8 | 22 | movab _edata,r0 |
784de51c BJ |
23 | clr: |
24 | clrl (r0)+ | |
25 | cmpl r0,sp | |
26 | jlss clr | |
3a30f6d7 | 27 | start: |
3a30f6d7 BJ |
28 | calls $0,_main |
29 | jmp start | |
30 | ||
31 | __rtt: | |
32 | .word 0x0 | |
33 | jmp start |