summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/stand/libbug/m68k/outstr.c
blob: 3cf9f4d69d555e08a4993b08d6ce87746d23a49c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*	$OpenBSD: outstr.c,v 1.2 1996/04/28 10:48:45 deraadt Exp $ */

/*
 * bug routines -- assumes that the necessary sections of memory
 * are preserved.
 */
#include <sys/types.h>
#include <machine/prom.h>

void
mvmeprom_outstr(start, end)
	char *start, *end;
{
	asm volatile ("movl %0, sp@-" : "=a" (start));
	asm volatile ("movl %0, sp@-" : "=a" (end));
	MVMEPROM_CALL(MVMEPROM_OUTSTR);
}