mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 19:42:26 +00:00
This patch clears up trampoline memory and copies trampoline code in place. It's not yet used though. Tested-by: Borislav Petkov <[email protected]> Signed-off-by: Kirill A. Shutemov <[email protected]> Cc: Andy Lutomirski <[email protected]> Cc: Andy Shevchenko <[email protected]> Cc: Cyrill Gorcunov <[email protected]> Cc: Eric Biederman <[email protected]> Cc: H. Peter Anvin <[email protected]> Cc: Juergen Gross <[email protected]> Cc: Kees Cook <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
21 lines
495 B
C
21 lines
495 B
C
#ifndef BOOT_COMPRESSED_PAGETABLE_H
|
|
#define BOOT_COMPRESSED_PAGETABLE_H
|
|
|
|
#define TRAMPOLINE_32BIT_SIZE (2 * PAGE_SIZE)
|
|
|
|
#define TRAMPOLINE_32BIT_PGTABLE_OFFSET 0
|
|
|
|
#define TRAMPOLINE_32BIT_CODE_OFFSET PAGE_SIZE
|
|
#define TRAMPOLINE_32BIT_CODE_SIZE 0x60
|
|
|
|
#define TRAMPOLINE_32BIT_STACK_END TRAMPOLINE_32BIT_SIZE
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
extern unsigned long *trampoline_32bit;
|
|
|
|
extern void trampoline_32bit_src(void *return_ptr);
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
#endif /* BOOT_COMPRESSED_PAGETABLE_H */
|