]> git.openfabrics.org - ~shefty/rdma-dev.git/blob - arch/x86/include/asm/trampoline.h
x86-32, mm: Add an initial page table for core bootstrapping
[~shefty/rdma-dev.git] / arch / x86 / include / asm / trampoline.h
1 #ifndef _ASM_X86_TRAMPOLINE_H
2 #define _ASM_X86_TRAMPOLINE_H
3
4 #ifndef __ASSEMBLY__
5
6 #ifdef CONFIG_X86_TRAMPOLINE
7 /*
8  * Trampoline 80x86 program as an array.
9  */
10 extern const unsigned char trampoline_data [];
11 extern const unsigned char trampoline_end  [];
12 extern unsigned char *trampoline_base;
13
14 extern unsigned long init_rsp;
15 extern unsigned long initial_code;
16 extern unsigned long initial_gs;
17
18 #define TRAMPOLINE_SIZE roundup(trampoline_end - trampoline_data, PAGE_SIZE)
19
20 extern unsigned long setup_trampoline(void);
21 extern void __init reserve_trampoline_memory(void);
22 #else
23 static inline void reserve_trampoline_memory(void) {}
24 #endif /* CONFIG_X86_TRAMPOLINE */
25
26 #endif /* __ASSEMBLY__ */
27
28 #endif /* _ASM_X86_TRAMPOLINE_H */