making the kernel build with up to date compilers again, see https://bbs.archlinux...
[nao-ulib.git] / kernel / 2.6.29.6-aldebaran-rt / arch / x86 / include / asm / trampoline.h
blob90f06c25221d792dab33f662c25012b7d0c39f59
1 #ifndef _ASM_X86_TRAMPOLINE_H
2 #define _ASM_X86_TRAMPOLINE_H
4 #ifndef __ASSEMBLY__
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;
14 extern unsigned long init_rsp;
15 extern unsigned long initial_code;
16 extern unsigned long initial_gs;
18 #define TRAMPOLINE_SIZE roundup(trampoline_end - trampoline_data, PAGE_SIZE)
19 #define TRAMPOLINE_BASE 0x6000
21 extern unsigned long setup_trampoline(void);
22 extern void __init reserve_trampoline_memory(void);
23 #else
24 static inline void reserve_trampoline_memory(void) {};
25 #endif /* CONFIG_X86_TRAMPOLINE */
27 #endif /* __ASSEMBLY__ */
29 #endif /* _ASM_X86_TRAMPOLINE_H */