1/*
2 * Copyright 2020, Fran��ois Revol, revol@free.fr. All rights reserved.
3 * Copyright 2007, Haiku, Inc. All Rights Reserved.
4 * Distributed under the terms of the MIT license.
5 */
6
7/**	This file contains the entry point for the NeXT loader.
8 */
9
10/*
11 * references :
12 * NetBSD sys/arch/next68k/stand/boot/srt0.s
13 */
14
15 #include <asm_defs.h>
16
17
18// 1 enable verbose output
19//#define DEBUG 1
20
21#define GLOBAL(x) .globl x ; x
22//#define FUNCTION(x) .global x; .type x,@function; x
23
24
25.text
26
27
28SYMBOL(_start):
29	// find the monitor vector and push it
30	movec	%vbr,%a3
31	movel	%a3@(4),-(%sp)
32	// push the arg (bootarg)
33	movel	%sp@(8),-(%sp)
34	jsr	start_next
35	addql	#8,%sp
36	rts
37SYMBOL_END(_start)
38
39
40