1a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes/*	$NetBSD: elf_machdep.h,v 1.15 2011/03/15 07:39:22 matt Exp $	*/
2a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
3a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#ifndef _MIPS_ELF_MACHDEP_H_
4a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define  _MIPS_ELF_MACHDEP_H_
5a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
6a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#ifdef _LP64
7a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define ARCH_ELFSIZE		64	/* MD native binary size */
8a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#else
9a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define ARCH_ELFSIZE		32	/* MD native binary size */
10a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#endif
11a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
12a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#if ELFSIZE == 32
13a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	ELF32_MACHDEP_ID_CASES						\
14a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes		case EM_MIPS:						\
15a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes			break;
16a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
17a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	ELF32_MACHDEP_ID	EM_MIPS
18a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#elif ELFSIZE == 64
19a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	ELF64_MACHDEP_ID_CASES						\
20a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes		case EM_MIPS:						\
21a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes			break;
22a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
23a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	ELF64_MACHDEP_ID	EM_MIPS
24a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#endif
25a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
26a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes/* mips relocs.  */
27a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
28a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_NONE		0
29a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_16		1
30a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_32		2
31a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_REL32		3
32a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_REL		R_MIPS_REL32
33a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_26		4
34a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_HI16		5	/* high 16 bits of symbol value */
35a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_LO16		6	/* low 16 bits of symbol value */
36a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_GPREL16		7  	/* GP-relative reference  */
37a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_LITERAL		8 	/* Reference to literal section  */
38a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_GOT16		9	/* Reference to global offset table */
39a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_GOT		R_MIPS_GOT16
40a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_PC16		10  	/* 16 bit PC relative reference */
41a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_CALL16 		11  	/* 16 bit call thru glbl offset tbl */
42a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_CALL		R_MIPS_CALL16
43a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_GPREL32		12
44a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
45a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes/* 13, 14, 15 are not defined at this point. */
46a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_UNUSED1		13
47a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_UNUSED2		14
48a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_UNUSED3		15
49a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
50a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes/*
51a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes * The remaining relocs are apparently part of the 64-bit Irix ELF ABI.
52a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes */
53a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_SHIFT5		16
54a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_SHIFT6		17
55a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
56a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_64		18
57a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_GOT_DISP		19
58a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_GOT_PAGE		20
59a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_GOT_OFST		21
60a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_GOT_HI16		22
61a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_GOT_LO16		23
62a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_SUB 		24
63a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_INSERT_A		25
64a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_INSERT_B		26
65a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_DELETE		27
66a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_HIGHER		28
67a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_HIGHEST		29
68a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_CALL_HI16	30
69a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_CALL_LO16	31
70a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_SCN_DISP		32
71a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_REL16		33
72a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_ADD_IMMEDIATE	34
73a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_PJUMP		35
74a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_RELGOT		36
75a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	R_MIPS_JALR		37
76a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes/* TLS relocations */
77a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
78a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_DTPMOD32	38	/* Module number 32 bit */
79a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_DTPREL32	39	/* Module-relative offset 32 bit */
80a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_DTPMOD64	40	/* Module number 64 bit */
81a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_DTPREL64	41	/* Module-relative offset 64 bit */
82a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_GD		42	/* 16 bit GOT offset for GD */
83a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_LDM		43	/* 16 bit GOT offset for LDM */
84a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_DTPREL_HI16	44	/* Module-relative offset, high 16 bits */
85a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_DTPREL_LO16	45	/* Module-relative offset, low 16 bits */
86a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_GOTTPREL	46	/* 16 bit GOT offset for IE */
87a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_TPREL32	47	/* TP-relative offset, 32 bit */
88a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_TPREL64	48	/* TP-relative offset, 64 bit */
89a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_TPREL_HI16	49	/* TP-relative offset, high 16 bits */
90a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_TLS_TPREL_LO16	50	/* TP-relative offset, low 16 bits */
91a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
92a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_MIPS_max		51
93a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
94a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define R_TYPE(name)		__CONCAT(R_MIPS_,name)
95a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
96a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	R_MIPS16_min		100
97a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	R_MIPS16_26		100
98a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	R_MIPS16_GPREL		101
99a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	R_MIPS16_GOT16		102
100a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	R_MIPS16_CALL16		103
101a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	R_MIPS16_HI16		104
102a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	R_MIPS16_LO16		105
103a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	R_MIPS16_max		106
104a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
105a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
106a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes/* mips dynamic tags */
107a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
108a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_RLD_VERSION	0x70000001
109a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_TIME_STAMP	0x70000002
110a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_ICHECKSUM	0x70000003
111a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_IVERSION	0x70000004
112a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_FLAGS		0x70000005
113a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_BASE_ADDRESS	0x70000006
114a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_CONFLICT	0x70000008
115a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_LIBLIST		0x70000009
116a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_CONFLICTNO	0x7000000b
117a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	DT_MIPS_LOCAL_GOTNO	0x7000000a	/* number of local got ents */
118a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_LIBLISTNO	0x70000010
119a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	DT_MIPS_SYMTABNO	0x70000011	/* number of .dynsym entries */
120a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_UNREFEXTNO	0x70000012
121a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	DT_MIPS_GOTSYM		0x70000013	/* first dynamic sym in got */
122a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define DT_MIPS_HIPAGENO	0x70000014
123a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	DT_MIPS_RLD_MAP		0x70000016	/* address of loader map */
124a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
125a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes/*
126a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes * ELF Flags
127a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes */
128a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_PIC		0x00000002	/* Contains PIC code */
129a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_CPIC		0x00000004	/* STD PIC calling sequence */
130a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ABI2		0x00000020	/* N32 */
131a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
132a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_ASE	0x0f000000	/* Architectural extensions */
133a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_MDMX	0x08000000	/* MDMX multimedia extension */
134a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_M16	0x04000000	/* MIPS-16 ISA extensions */
135a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
136a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH		0xf0000000	/* Architecture field */
137a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_1		0x00000000	/* -mips1 code */
138a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_2		0x10000000	/* -mips2 code */
139a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_3		0x20000000	/* -mips3 code */
140a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_4		0x30000000	/* -mips4 code */
141a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_5		0x40000000	/* -mips5 code */
142a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_32		0x50000000	/* -mips32 code */
143a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_64		0x60000000	/* -mips64 code */
144a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_32R2	0x70000000	/* -mips32r2 code */
145a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ARCH_64R2	0x80000000	/* -mips64r2 code */
146a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
147a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ABI		0x0000f000
148a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ABI_O32		0x00001000
149a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ABI_O64		0x00002000
150a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ABI_EABI32	0x00003000
151a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	EF_MIPS_ABI_EABI64	0x00004000
152a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
153a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#if defined(__MIPSEB__)
154a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	ELF32_MACHDEP_ENDIANNESS	ELFDATA2MSB
155a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	ELF64_MACHDEP_ENDIANNESS	ELFDATA2MSB
156a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#elif defined(__MIPSEL__)
157a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	ELF32_MACHDEP_ENDIANNESS	ELFDATA2LSB
158a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	ELF64_MACHDEP_ENDIANNESS	ELFDATA2LSB
159a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#elif !defined(HAVE_NBTOOL_CONFIG_H)
160a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#error neither __MIPSEL__ nor __MIPSEB__ are defined.
161a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#endif
162a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
163a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#ifdef _KERNEL
164a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#ifdef _KERNEL_OPT
165a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#include "opt_compat_netbsd.h"
166a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#endif
167a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#ifdef COMPAT_16
168a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes/*
169a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes * Up to 1.6, the ELF dynamic loader (ld.elf_so) was not relocatable.
170a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes * Tell the kernel ELF exec code not to try relocating the interpreter
171a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes * for dynamically-linked ELF binaries.
172a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes */
173a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define ELF_INTERP_NON_RELOCATABLE
174a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#endif /* COMPAT_16 */
175a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
176a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes/*
177a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes * We need to be able to include the ELF header so we can pick out the
178a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes * ABI being used.
179a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes */
180a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#ifdef ELFSIZE
181a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	ELF_MD_PROBE_FUNC	ELFNAME2(mips_netbsd,probe)
182a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#define	ELF_MD_COREDUMP_SETUP	ELFNAME2(coredump,setup)
183a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#endif
184a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
185a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughesstruct exec_package;
186a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
187a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughesint mips_netbsd_elf32_probe(struct lwp *, struct exec_package *, void *, char *,
188a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes	vaddr_t *);
189a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughesvoid coredump_elf32_setup(struct lwp *, void *);
190a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
191a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughesint mips_netbsd_elf64_probe(struct lwp *, struct exec_package *, void *, char *,
192a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes	vaddr_t *);
193a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughesvoid coredump_elf64_setup(struct lwp *, void *);
194a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#endif /* _KERNEL */
195a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes
196a6a3ac59243d8c95c94c3069e9332051f785c05fElliott Hughes#endif /* _MIPS_ELF_MACHDEP_H_ */
197