Commit 6250098655809b4e149d74bff50af86c6209ce8f

Authored by Ivan Gorinov
Committed by Tom Rini
1 parent 960a63973b

x86: Remove unused _relocate arguments

EFI image handle and system table are not used in _relocate().

Signed-off-by: Ivan Gorinov <ivan.gorinov@intel.com>

Showing 3 changed files with 2 additions and 7 deletions Side-by-side Diff

arch/x86/lib/crt0_x86_64_efi.S
... ... @@ -18,9 +18,6 @@
18 18 pushq %rcx
19 19 pushq %rdx
20 20  
21   - mov %rcx, %r8
22   - mov %rdx, %r9
23   -
24 21 lea image_base(%rip), %rcx
25 22 lea _DYNAMIC(%rip), %rdx
26 23  
arch/x86/lib/reloc_ia32_efi.c
... ... @@ -12,8 +12,7 @@
12 12 #include <elf.h>
13 13 #include <asm/elf.h>
14 14  
15   -efi_status_t _relocate(long ldbase, Elf32_Dyn *dyn, efi_handle_t image,
16   - struct efi_system_table *systab)
  15 +efi_status_t EFIAPI _relocate(long ldbase, Elf32_Dyn *dyn)
17 16 {
18 17 long relsz = 0, relent = 0;
19 18 Elf32_Rel *rel = 0;
arch/x86/lib/reloc_x86_64_efi.c
... ... @@ -14,8 +14,7 @@
14 14 #include <elf.h>
15 15 #include <asm/elf.h>
16 16  
17   -efi_status_t _relocate(long ldbase, Elf64_Dyn *dyn, efi_handle_t image,
18   - struct efi_system_table *systab)
  17 +efi_status_t EFIAPI _relocate(long ldbase, Elf64_Dyn *dyn)
19 18 {
20 19 long relsz = 0, relent = 0;
21 20 Elf64_Rel *rel = 0;