xref: /linux/arch/x86/boot/compressed/pgtable.h (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
13548e131SKirill A. Shutemov #ifndef BOOT_COMPRESSED_PAGETABLE_H
23548e131SKirill A. Shutemov #define BOOT_COMPRESSED_PAGETABLE_H
33548e131SKirill A. Shutemov 
43548e131SKirill A. Shutemov #define TRAMPOLINE_32BIT_SIZE		(2 * PAGE_SIZE)
53548e131SKirill A. Shutemov 
632fcefa2SKirill A. Shutemov #define TRAMPOLINE_32BIT_CODE_OFFSET	PAGE_SIZE
7e8972a76SArd Biesheuvel #define TRAMPOLINE_32BIT_CODE_SIZE	0xA0
832fcefa2SKirill A. Shutemov 
93548e131SKirill A. Shutemov #ifndef __ASSEMBLER__
103548e131SKirill A. Shutemov 
113548e131SKirill A. Shutemov extern unsigned long *trampoline_32bit;
123548e131SKirill A. Shutemov 
13918a7a04SArd Biesheuvel extern void trampoline_32bit_src(void *trampoline, bool enable_5lvl);
1432fcefa2SKirill A. Shutemov 
15*bd328aa0SArd Biesheuvel extern const u16 trampoline_ljmp_imm_offset;
16*bd328aa0SArd Biesheuvel 
173548e131SKirill A. Shutemov #endif /* __ASSEMBLER__ */
183548e131SKirill A. Shutemov #endif /* BOOT_COMPRESSED_PAGETABLE_H */
19