diff options
| -rw-r--r-- | arch/x86/boot/compressed/head_32.S | 2 | ||||
| -rw-r--r-- | arch/x86/boot/compressed/head_64.S | 3 | ||||
| -rw-r--r-- | arch/x86/boot/tools/build.c | 7 |
3 files changed, 9 insertions, 3 deletions
diff --git a/arch/x86/boot/compressed/head_32.S b/arch/x86/boot/compressed/head_32.S index cccc05f0681c..de9d4200d305 100644 --- a/arch/x86/boot/compressed/head_32.S +++ b/arch/x86/boot/compressed/head_32.S | |||
| @@ -229,12 +229,14 @@ relocated: | |||
| 229 | xorl %ebx, %ebx | 229 | xorl %ebx, %ebx |
| 230 | jmp *%eax | 230 | jmp *%eax |
| 231 | 231 | ||
| 232 | #ifdef CONFIG_EFI_STUB | ||
| 232 | .data | 233 | .data |
| 233 | efi32_config: | 234 | efi32_config: |
| 234 | .fill 11,8,0 | 235 | .fill 11,8,0 |
| 235 | .long efi_call_phys | 236 | .long efi_call_phys |
| 236 | .long 0 | 237 | .long 0 |
| 237 | .byte 0 | 238 | .byte 0 |
| 239 | #endif | ||
| 238 | 240 | ||
| 239 | /* | 241 | /* |
| 240 | * Stack and heap for uncompression | 242 | * Stack and heap for uncompression |
diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S index 4f40cddd025d..57e58a5fa210 100644 --- a/arch/x86/boot/compressed/head_64.S +++ b/arch/x86/boot/compressed/head_64.S | |||
| @@ -440,6 +440,7 @@ gdt: | |||
| 440 | .quad 0x0000000000000000 /* TS continued */ | 440 | .quad 0x0000000000000000 /* TS continued */ |
| 441 | gdt_end: | 441 | gdt_end: |
| 442 | 442 | ||
| 443 | #ifdef CONFIG_EFI_STUB | ||
| 443 | efi_config: | 444 | efi_config: |
| 444 | .quad 0 | 445 | .quad 0 |
| 445 | 446 | ||
| @@ -456,6 +457,8 @@ efi64_config: | |||
| 456 | .fill 11,8,0 | 457 | .fill 11,8,0 |
| 457 | .quad efi_call6 | 458 | .quad efi_call6 |
| 458 | .byte 1 | 459 | .byte 1 |
| 460 | #endif /* CONFIG_EFI_STUB */ | ||
| 461 | |||
| 459 | /* | 462 | /* |
| 460 | * Stack and heap for uncompression | 463 | * Stack and heap for uncompression |
| 461 | */ | 464 | */ |
diff --git a/arch/x86/boot/tools/build.c b/arch/x86/boot/tools/build.c index 4f07df5ac5d9..1a2f2121cada 100644 --- a/arch/x86/boot/tools/build.c +++ b/arch/x86/boot/tools/build.c | |||
| @@ -256,10 +256,11 @@ static void efi_stub_entry_update(void) | |||
| 256 | 256 | ||
| 257 | #else | 257 | #else |
| 258 | 258 | ||
| 259 | static inline void update_pecoff_setup_and_reloc(unsigned int) {} | 259 | static inline void update_pecoff_setup_and_reloc(unsigned int size) {} |
| 260 | static inline void update_pecoff_text(unsigned int, unsigned int) {} | 260 | static inline void update_pecoff_text(unsigned int text_start, |
| 261 | unsigned int file_sz) {} | ||
| 261 | static inline void efi_stub_defaults(void) {} | 262 | static inline void efi_stub_defaults(void) {} |
| 262 | static inline void efi_stup_entry_update(void) {} | 263 | static inline void efi_stub_entry_update(void) {} |
| 263 | 264 | ||
| 264 | static inline int reserve_pecoff_reloc_section(int c) | 265 | static inline int reserve_pecoff_reloc_section(int c) |
| 265 | { | 266 | { |
