]> bbs.cooldavid.org Git - net-next-2.6.git/blame - arch/x86/include/asm/trampoline.h
x86, cpu: Fix regression in AMD errata checking code
[net-next-2.6.git] / arch / x86 / include / asm / trampoline.h
CommitLineData
1965aae3
PA
1#ifndef _ASM_X86_TRAMPOLINE_H
2#define _ASM_X86_TRAMPOLINE_H
e44b7b75
PM
3
4#ifndef __ASSEMBLY__
5
3e1e9002 6#ifdef CONFIG_X86_TRAMPOLINE
e44b7b75
PM
7/*
8 * Trampoline 80x86 program as an array.
9 */
10extern const unsigned char trampoline_data [];
11extern const unsigned char trampoline_end [];
12extern unsigned char *trampoline_base;
13
14extern unsigned long init_rsp;
15extern unsigned long initial_code;
f32ff538 16extern unsigned long initial_gs;
e44b7b75 17
3e1e9002 18#define TRAMPOLINE_SIZE roundup(trampoline_end - trampoline_data, PAGE_SIZE)
3e1e9002 19
e44b7b75 20extern unsigned long setup_trampoline(void);
3e1e9002
RW
21extern void __init reserve_trampoline_memory(void);
22#else
23static inline void reserve_trampoline_memory(void) {};
24#endif /* CONFIG_X86_TRAMPOLINE */
e44b7b75
PM
25
26#endif /* __ASSEMBLY__ */
27
1965aae3 28#endif /* _ASM_X86_TRAMPOLINE_H */