xref: /netbsd-src/sys/arch/pmax/stand/common/bootread.S (revision 1c53db4943d20877bb426d2c771d85ee4b357fe6)
1*1c53db49Stsutsui/*	$NetBSD: bootread.S,v 1.8 2011/03/26 15:49:26 tsutsui Exp $	*/
24a755523Ssimonb
34a755523Ssimonb/*-
44a755523Ssimonb * Copyright (c) 1999 The NetBSD Foundation, Inc.
54a755523Ssimonb * All rights reserved.
64a755523Ssimonb *
74a755523Ssimonb * This code is derived from software contributed to The NetBSD Foundation
84a755523Ssimonb * by Jonathan Stone, Michael Hitch and Simon Burge.
94a755523Ssimonb *
104a755523Ssimonb * Redistribution and use in source and binary forms, with or without
114a755523Ssimonb * modification, are permitted provided that the following conditions
124a755523Ssimonb * are met:
134a755523Ssimonb * 1. Redistributions of source code must retain the above copyright
144a755523Ssimonb *    notice, this list of conditions and the following disclaimer.
154a755523Ssimonb * 2. Redistributions in binary form must reproduce the above copyright
164a755523Ssimonb *    notice, this list of conditions and the following disclaimer in the
174a755523Ssimonb *    documentation and/or other materials provided with the distribution.
184a755523Ssimonb *
194a755523Ssimonb * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
204a755523Ssimonb * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
214a755523Ssimonb * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
224a755523Ssimonb * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
234a755523Ssimonb * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
244a755523Ssimonb * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
254a755523Ssimonb * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
264a755523Ssimonb * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
274a755523Ssimonb * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
284a755523Ssimonb * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
294a755523Ssimonb * POSSIBILITY OF SUCH DAMAGE.
304a755523Ssimonb */
314a755523Ssimonb
324a755523Ssimonb#include <mips/asm.h>
334a755523Ssimonb#include <mips/cpuregs.h>
344a755523Ssimonb#include <machine/dec_prom.h>
354a755523Ssimonb
36*1c53db49Stsutsui	.set	reorder		# make as(1) handle hazard and BDslot
374a755523SsimonbLEAF(bootread)
384a755523Ssimonb	lw	v0, _C_LABEL(callv)	# get pointer to call back vectors
394a755523Ssimonb	lw	v0, 0x58(v0)	# offset for callv->_bootread
404a755523Ssimonb	j	v0		# call PROM bootread
414a755523SsimonbEND(bootread)
42