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