1. 20 May, 2020 2 commits
  2. 19 May, 2020 16 commits
  3. 06 May, 2020 1 commit
  4. 05 May, 2020 3 commits
  5. 01 May, 2020 11 commits
  6. 25 Apr, 2020 2 commits
  7. 24 Apr, 2020 5 commits
    • Ard Biesheuvel's avatar
      efi: Move arch_tables check to caller · 4eb8320b
      Ard Biesheuvel authored
      Instead of making match_config_table() test its table_types pointer for
      NULL-ness, omit the call entirely if no arch_tables pointer was provided
      to efi_config_parse_tables().
      Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
      4eb8320b
    • Ard Biesheuvel's avatar
      efi: Clean up config table description arrays · 4e9a0f73
      Ard Biesheuvel authored
      Increase legibility by adding whitespace to the efi_config_table_type_t
      arrays that describe which EFI config tables we look for when going over
      the firmware provided list. While at it, replace the 'name' char pointer
      with a char array, which is more space efficient on relocatable 64-bit
      kernels, as it avoids a 8 byte pointer and the associated relocation
      data (24 bytes when using RELA format)
      Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
      4e9a0f73
    • Ard Biesheuvel's avatar
      efi/libstub/x86: Avoid getter function for efi_is64 · 0a755614
      Ard Biesheuvel authored
      We no longer need to take special care when using global variables
      in the EFI stub, so switch to a simple symbol reference for efi_is64.
      Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
      0a755614
    • Ard Biesheuvel's avatar
      efi/libstub: Drop __pure getters for EFI stub options · 980771f6
      Ard Biesheuvel authored
      The practice of using __pure getter functions to access global
      variables in the EFI stub dates back to the time when we had to
      carefully prevent GOT entries from being emitted, because we
      could not rely on the toolchain to do this for us.
      
      Today, we use the hidden visibility pragma for all EFI stub source
      files, which now all live in the same subdirectory, and we apply a
      sanity check on the objects, so we can get rid of these getter
      functions and simply refer to global data objects directly.
      
      So switch over the remaining boolean variables carrying options set
      on the kernel command line.
      Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
      980771f6
    • Ard Biesheuvel's avatar
      efi/libstub: Drop __pure getter for efi_system_table · ccc27ae7
      Ard Biesheuvel authored
      The practice of using __pure getter functions to access global
      variables in the EFI stub dates back to the time when we had to
      carefully prevent GOT entries from being emitted, because we
      could not rely on the toolchain to do this for us.
      
      Today, we use the hidden visibility pragma for all EFI stub source
      files, which now all live in the same subdirectory, and we apply a
      sanity check on the objects, so we can get rid of these getter
      functions and simply refer to global data objects directly.
      
      Start with efi_system_table(), and convert it into a global variable.
      While at it, make it a pointer-to-const, because we can.
      Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
      ccc27ae7