diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/efi.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/efi.h b/include/efi.h index 789a64eda9d..c559fda3004 100644 --- a/include/efi.h +++ b/include/efi.h @@ -678,6 +678,21 @@ void efi_show_tables(struct efi_system_table *systab); */ const char *efi_get_basename(void); +#ifdef CONFIG_SANDBOX +#include <asm/state.h> +#endif + +static inline bool efi_use_host_arch(void) +{ +#ifdef CONFIG_SANDBOX + struct sandbox_state *state = state_get_current(); + + return state->native; +#else + return false; +#endif +} + /** * efi_get_pxe_arch() - Get the architecture value for PXE * |
