trampoline.h 726 字节
Newer Older
H
H. Peter Anvin 已提交
1 2
#ifndef _ASM_X86_TRAMPOLINE_H
#define _ASM_X86_TRAMPOLINE_H
3 4 5

#ifndef __ASSEMBLY__

6
#ifdef CONFIG_X86_TRAMPOLINE
7 8 9 10 11 12 13 14 15 16
/*
 * Trampoline 80x86 program as an array.
 */
extern const unsigned char trampoline_data [];
extern const unsigned char trampoline_end  [];
extern unsigned char *trampoline_base;

extern unsigned long init_rsp;
extern unsigned long initial_code;

17
#define TRAMPOLINE_SIZE roundup(trampoline_end - trampoline_data, PAGE_SIZE)
18
#define TRAMPOLINE_BASE 0x6000
19

20
extern unsigned long setup_trampoline(void);
21 22 23 24
extern void __init reserve_trampoline_memory(void);
#else
static inline void reserve_trampoline_memory(void) {};
#endif /* CONFIG_X86_TRAMPOLINE */
25 26 27

#endif /* __ASSEMBLY__ */

H
H. Peter Anvin 已提交
28
#endif /* _ASM_X86_TRAMPOLINE_H */