summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/stand/sboot
diff options
context:
space:
mode:
authorchuck <chuck@cvs.openbsd.org>1996-05-29 15:23:00 +0000
committerchuck <chuck@cvs.openbsd.org>1996-05-29 15:23:00 +0000
commit754fde6d76ac83b7eec31b565cdb25ec0a9475e8 (patch)
tree8950d9ba75b63c8ce3bfabe7aa7d4311c45453a7 /sys/arch/mvme68k/stand/sboot
parent4e3e5227af0c6faf25d533e09ec87136006a861f (diff)
new "go"
Diffstat (limited to 'sys/arch/mvme68k/stand/sboot')
-rw-r--r--sys/arch/mvme68k/stand/sboot/XSRT0.S20
1 files changed, 19 insertions, 1 deletions
diff --git a/sys/arch/mvme68k/stand/sboot/XSRT0.S b/sys/arch/mvme68k/stand/sboot/XSRT0.S
index 793413eb2ed..5fa059eb046 100644
--- a/sys/arch/mvme68k/stand/sboot/XSRT0.S
+++ b/sys/arch/mvme68k/stand/sboot/XSRT0.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: XSRT0.S,v 1.3 1996/04/28 10:49:33 deraadt Exp $ */
+/* $OpenBSD: XSRT0.S,v 1.4 1996/05/29 15:22:59 chuck Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -71,3 +71,21 @@ Ldoit: movl #0x00006ff0,sp
.globl ___main
___main: rts
+
+Lname:
+ .ascii "sboot\0"
+
+.globl _go
+_go:
+ clrl d0 | dev lun
+ clrl d1 | ctrl lun
+ movl #0x2c, d4 | flags for IPL
+ movl #0xfffe1800, a0 | address of "disk" ctrl
+ movl sp@(4), a1 | entry point of loaded program
+ movl d0, a2 | media config block (NULL)
+ movl sp@(8), a3 | nb args (start)
+ movl sp@(12), a4 | nb end args
+ movl #Lname, a5 | args
+ movl #Lname+5, a6 | end args
+ | SRT0 will set stack
+ jmp a1@ | GO!