1. 16 2月, 2019 3 次提交
  2. 24 9月, 2018 1 次提交
  3. 25 7月, 2018 1 次提交
    • A
      efi_loader: Use compiler constants for image loader · b59f6971
      Alexander Graf 提交于
      The EFI image loader tries to determine which target architecture we're
      working with to only load PE binaries that match.
      
      So far this has worked based on CONFIG defines, because the target CPU
      was always indicated by a config define. With sandbox however, this is
      not longer true as all sandbox targets only encompass a single CONFIG
      option and so we need to use compiler defines to determine the CPU
      architecture.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      b59f6971
  4. 14 6月, 2018 1 次提交
    • A
      riscv: Add support for HI20 PE relocations · de452c04
      Alexander Graf 提交于
      The PE standard allows for HI20/LOW12 relocations. Within the efi_loader
      target we always know that our relocation target is 4k aligned, so we
      don't need to worry about the LOW12 part.
      
      This patch adds support for the respective relocations. With this and a
      few grub patches I have cooking in parallel I'm able to run grub on RISC-V.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      de452c04
  5. 03 6月, 2018 2 次提交
  6. 29 5月, 2018 1 次提交
  7. 11 5月, 2018 1 次提交
  8. 28 4月, 2018 1 次提交
  9. 06 4月, 2018 1 次提交
  10. 05 4月, 2018 1 次提交
  11. 04 4月, 2018 2 次提交
  12. 10 2月, 2018 1 次提交
  13. 23 1月, 2018 2 次提交
  14. 20 9月, 2017 3 次提交
  15. 19 7月, 2017 1 次提交
    • X
      efi_loader: refactor efi_open_protocol · b5349f74
      xypron.glpk@gmx.de 提交于
      efi_open_protocol was implemented to call a protocol specific open
      function to retrieve the protocol interface.
      
      The UEFI specification does not know of such a function.
      
      It is not possible to implement InstallProtocolInterface with the
      current design.
      
      With the patch the protocol interface itself is stored in the list
      of installed protocols of an efi_object instead of an open function.
      Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
      [agraf: fix efi gop support]
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      b5349f74
  16. 04 7月, 2017 1 次提交
  17. 15 11月, 2016 1 次提交
  18. 21 8月, 2016 1 次提交
    • A
      efi_loader: Fix relocations above 64kb image size · b1237c6e
      Alexander Graf 提交于
      We were truncating the image offset within the target image to 16 bits
      which again meant that we were potentially overwriting random memory
      in the lower 16 bits of the image.
      
      This patch casts the offset to a more reasonable 32bits.
      
      With this applied, I can successfully see Shell.efi assert because it
      can't find a protocol it expects to be available.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      b1237c6e
  19. 27 3月, 2016 1 次提交
    • A
      efi_loader: Fix some entry/exit points · 1cd29f0a
      Alexander Graf 提交于
      When switching between EFI context and U-Boot context we need to swap
      the register that "gd" resides in.
      
      Some functions slipped through here, with efi_allocate_pool / efi_free_pool
      not doing the switch correctly and efi_return_handle switching too often.
      
      Fix them all up to make sure we always have consistent register state.
      Signed-off-by: NAlexander Graf <agraf@suse.de>
      1cd29f0a
  20. 16 3月, 2016 1 次提交