xref: /netbsd/sys/arch/x68k/stand/loadbsd/trampoline.h (revision bf9ec67e)
1 /*
2  *	definitions for trampoline code
3  *
4  *	written by Yasha (ITOH Yasufumi)
5  *	public domain
6  *
7  *	$NetBSD: trampoline.h,v 1.1 1998/09/01 19:55:33 itohy Exp $
8  */
9 
10 #define MPU_68030	3
11 #define MPU_68040	4
12 #define MPU_68060	6
13 
14 #define AREA_SET_REG	0x00E86001	/* (B) supervisor protection reg */
15 
16 #define EXSPC		0x00EA0000	/* external SCSI board */
17 #define EXSPC_BDID	(EXSPC + 1)	/* (B) SCSI board bdid reg */
18 
19 #define SIZE_TMPSTACK	8192
20 
21 #ifndef __ASSEMBLER__
22 #include "../common/execkern.h"
23 
24 struct tramparg {
25 	unsigned	bsr_inst;
26 #define TRAMP_BSR	0x61000000	/* bsr xxx */
27 	void		*tmp_stack;
28 	int		mpu_type;
29 	struct execkern_arg	xk;
30 };
31 
32 extern char trampoline[], end_trampoline[];
33 #endif
34