1262197Srwatson/*-
2262197Srwatson * Copyright (c) 2013 Robert N. M. Watson
3262197Srwatson * All rights reserved.
4262197Srwatson *
5262197Srwatson * This software was developed by SRI International and the University of
6262197Srwatson * Cambridge Computer Laboratory under DARPA/AFRL contract (FA8750-10-C-0237)
7262197Srwatson * ("CTSRD"), as part of the DARPA CRASH research programme.
8262197Srwatson *
9262197Srwatson * Redistribution and use in source and binary forms, with or without
10262197Srwatson * modification, are permitted provided that the following conditions
11262197Srwatson * are met:
12262197Srwatson * 1. Redistributions of source code must retain the above copyright
13262197Srwatson *    notice, this list of conditions and the following disclaimer.
14262197Srwatson * 2. Redistributions in binary form must reproduce the above copyright
15262197Srwatson *    notice, this list of conditions and the following disclaimer in the
16262197Srwatson *    documentation and/or other materials provided with the distribution.
17262197Srwatson *
18262197Srwatson * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19262197Srwatson * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20262197Srwatson * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21262197Srwatson * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22262197Srwatson * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23262197Srwatson * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24262197Srwatson * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25262197Srwatson * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26262197Srwatson * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27262197Srwatson * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28262197Srwatson * SUCH DAMAGE.
29262197Srwatson */
30262197Srwatson
31262197Srwatson#include <machine/asm.h>
32262197Srwatson__FBSDID("$FreeBSD: stable/11/stand/mips/beri/loader/start.S 262197 2014-02-18 23:18:32Z rwatson $");
33262197Srwatson
34262197Srwatson.set mips64
35262197Srwatson.set noreorder
36262197Srwatson.set nobopt
37262197Srwatson.set noat
38262197Srwatson
39262197SrwatsonASM_ENTRY(__start)
40262197SrwatsonVECTOR(_loader_start, unknown)
41262197Srwatson	/* Not much here yet. */
42262197Srwatson	jal	main
43262197Srwatson	nop
44262197Srwatson
45262197Srwatson	/* If main() returns, spin. */
46262197Srwatsonloop:
47262197Srwatson	b loop
48262197Srwatson	nop
49262197SrwatsonVECTOR_END(_loader_start)
50