x86: Remove unused _relocate arguments
authorIvan Gorinov <ivan.gorinov@intel.com>
Thu, 28 Jun 2018 21:49:46 +0000 (14:49 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 19 Jul 2018 20:31:36 +0000 (16:31 -0400)
EFI image handle and system table are not used in _relocate().

Signed-off-by: Ivan Gorinov <ivan.gorinov@intel.com>
arch/x86/lib/crt0_x86_64_efi.S
arch/x86/lib/reloc_ia32_efi.c
arch/x86/lib/reloc_x86_64_efi.c

index bb8d3cf..47ed5af 100644 (file)
@@ -18,9 +18,6 @@ _start:
        pushq %rcx
        pushq %rdx
 
-       mov %rcx, %r8
-       mov %rdx, %r9
-
        lea image_base(%rip), %rcx
        lea _DYNAMIC(%rip), %rdx
 
index e838af3..a262533 100644 (file)
@@ -12,8 +12,7 @@
 #include <elf.h>
 #include <asm/elf.h>
 
-efi_status_t _relocate(long ldbase, Elf32_Dyn *dyn, efi_handle_t image,
-                      struct efi_system_table *systab)
+efi_status_t EFIAPI _relocate(long ldbase, Elf32_Dyn *dyn)
 {
        long relsz = 0, relent = 0;
        Elf32_Rel *rel = 0;
index 34c5b2e..59d6f8d 100644 (file)
@@ -14,8 +14,7 @@
 #include <elf.h>
 #include <asm/elf.h>
 
-efi_status_t _relocate(long ldbase, Elf64_Dyn *dyn, efi_handle_t image,
-                      struct efi_system_table *systab)
+efi_status_t EFIAPI _relocate(long ldbase, Elf64_Dyn *dyn)
 {
        long relsz = 0, relent = 0;
        Elf64_Rel *rel = 0;