Commit | Line | Data |
---|---|---|
f7acbdcc | 1 | # srt0.c 1.4 %G% |
3a30f6d7 BJ |
2 | |
3 | # Startup code for standalone system | |
4 | # Non-relocating version -- for programs which are loaded by boot | |
5 | ||
6 | .globl _end | |
7 | .globl _main | |
8 | .globl __rtt | |
9 | .globl _edata | |
10 | ||
11 | .set PHYSUBA,0x20006000 # uba 0 | |
3a30f6d7 BJ |
12 | .set PHYSUMEM,0x2013e000 # unibus memory |
13 | ||
14 | .set HIGH,31 # mask for total disable | |
15 | ||
16 | .word 0x0 | |
17 | mtpr $HIGH,$IPL # just in case | |
3a30f6d7 | 18 | movl $1,PHYSUBA+4 # init |
f7acbdcc | 19 | movab _end,r0 |
784de51c BJ |
20 | clr: |
21 | clrl (r0)+ | |
22 | cmpl r0,sp | |
23 | jlss clr | |
3a30f6d7 BJ |
24 | start: |
25 | movl $RELOC-0x2000,sp | |
26 | calls $0,_main | |
27 | jmp start | |
28 | ||
29 | __rtt: | |
30 | .word 0x0 | |
31 | jmp start |