BSD 3 development
authorBill Joy <wnj@ucbvax.Berkeley.EDU>
Thu, 3 Jan 1980 04:21:51 +0000 (20:21 -0800)
committerBill Joy <wnj@ucbvax.Berkeley.EDU>
Thu, 3 Jan 1980 04:21:51 +0000 (20:21 -0800)
Work on file usr/src/sys/stand/tpsrt0.s

Synthesized-from: 3bsd

usr/src/sys/stand/tpsrt0.s [new file with mode: 0644]

diff --git a/usr/src/sys/stand/tpsrt0.s b/usr/src/sys/stand/tpsrt0.s
new file mode 100644 (file)
index 0000000..469ae8c
--- /dev/null
@@ -0,0 +1,30 @@
+# Startup code for standalone system
+# Non-relocating version -- for programs which are loaded by boot
+
+       .globl  _end
+       .globl  _main
+       .globl  __rtt
+       .globl  _edata
+
+       .set    PHYSUBA,0x20006000      # uba 0
+       .set    PHYSMBA0,0x20010000     # mba 0
+       .set    PHYSMBA1,0x20012000     # mba 1
+       .set    PHYSUMEM,0x2013e000     # unibus memory
+
+       .set    HIGH,31         # mask for total disable
+
+       .word   0x0
+       mtpr    $HIGH,$IPL              # just in case
+       movl    $1,PHYSMBA0+4           # init
+       movl    $1,PHYSMBA1+4           # init
+       movl    $1,PHYSUBA+4            # init
+       subl3   $_edata,$RELOC-0x2000,r0
+       movc5   $0,(sp),$0,r0,_edata
+start:
+       movl    $RELOC-0x2000,sp
+       calls   $0,_main
+       ret
+
+__rtt:
+       .word   0x0
+       jmp     start