diff options
Diffstat (limited to 'sys/arch/hp300/stand/machdep.c')
-rw-r--r-- | sys/arch/hp300/stand/machdep.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/arch/hp300/stand/machdep.c b/sys/arch/hp300/stand/machdep.c index b7b7efbe921..aed315de64d 100644 --- a/sys/arch/hp300/stand/machdep.c +++ b/sys/arch/hp300/stand/machdep.c @@ -1,4 +1,5 @@ -/* $NetBSD: machdep.c,v 1.5 1994/10/26 07:27:43 cgd Exp $ */ +/* $OpenBSD: machdep.c,v 1.2 1997/01/17 08:32:52 downsj Exp $ */ +/* $NetBSD: machdep.c,v 1.6 1996/10/14 07:33:46 thorpej Exp $ */ /* * Copyright (c) 1988 University of Utah. @@ -155,3 +156,19 @@ romputchar(c) } } #endif + +void +machdep_start(entry, howto, loadaddr, ssym, esym) + char *entry; + int howto; + char *loadaddr; + char *ssym, *esym; +{ + + asm("movl %0,d7" : : "m" (howto)); + asm("movl %0,d6" : : "m" (opendev)); + asm("movl %0,d5" : : "m" (cons_scode)); + asm("movl %0,a5" : : "a" (loadaddr)); + asm("movl %0,a4" : : "a" (esym)); + (*((int (*)())entry))(); +} |