|
@@ -67,8 +67,6 @@ struct efi_memory_map memmap;
|
|
static struct efi efi_phys __initdata;
|
|
static struct efi efi_phys __initdata;
|
|
static efi_system_table_t efi_systab __initdata;
|
|
static efi_system_table_t efi_systab __initdata;
|
|
|
|
|
|
-unsigned long x86_efi_facility;
|
|
|
|
-
|
|
|
|
static __initdata efi_config_table_type_t arch_tables[] = {
|
|
static __initdata efi_config_table_type_t arch_tables[] = {
|
|
#ifdef CONFIG_X86_UV
|
|
#ifdef CONFIG_X86_UV
|
|
{UV_SYSTEM_TABLE_GUID, "UVsystab", &efi.uv_systab},
|
|
{UV_SYSTEM_TABLE_GUID, "UVsystab", &efi.uv_systab},
|
|
@@ -78,15 +76,6 @@ static __initdata efi_config_table_type_t arch_tables[] = {
|
|
|
|
|
|
u64 efi_setup; /* efi setup_data physical address */
|
|
u64 efi_setup; /* efi setup_data physical address */
|
|
|
|
|
|
-/*
|
|
|
|
- * Returns 1 if 'facility' is enabled, 0 otherwise.
|
|
|
|
- */
|
|
|
|
-int efi_enabled(int facility)
|
|
|
|
-{
|
|
|
|
- return test_bit(facility, &x86_efi_facility) != 0;
|
|
|
|
-}
|
|
|
|
-EXPORT_SYMBOL(efi_enabled);
|
|
|
|
-
|
|
|
|
static bool __initdata disable_runtime = false;
|
|
static bool __initdata disable_runtime = false;
|
|
static int __init setup_noefi(char *arg)
|
|
static int __init setup_noefi(char *arg)
|
|
{
|
|
{
|
|
@@ -455,7 +444,7 @@ void __init efi_reserve_boot_services(void)
|
|
|
|
|
|
void __init efi_unmap_memmap(void)
|
|
void __init efi_unmap_memmap(void)
|
|
{
|
|
{
|
|
- clear_bit(EFI_MEMMAP, &x86_efi_facility);
|
|
|
|
|
|
+ clear_bit(EFI_MEMMAP, &efi.flags);
|
|
if (memmap.map) {
|
|
if (memmap.map) {
|
|
early_iounmap(memmap.map, memmap.nr_map * memmap.desc_size);
|
|
early_iounmap(memmap.map, memmap.nr_map * memmap.desc_size);
|
|
memmap.map = NULL;
|
|
memmap.map = NULL;
|
|
@@ -722,7 +711,7 @@ void __init efi_init(void)
|
|
if (efi_systab_init(efi_phys.systab))
|
|
if (efi_systab_init(efi_phys.systab))
|
|
return;
|
|
return;
|
|
|
|
|
|
- set_bit(EFI_SYSTEM_TABLES, &x86_efi_facility);
|
|
|
|
|
|
+ set_bit(EFI_SYSTEM_TABLES, &efi.flags);
|
|
|
|
|
|
efi.config_table = (unsigned long)efi.systab->tables;
|
|
efi.config_table = (unsigned long)efi.systab->tables;
|
|
efi.fw_vendor = (unsigned long)efi.systab->fw_vendor;
|
|
efi.fw_vendor = (unsigned long)efi.systab->fw_vendor;
|
|
@@ -750,7 +739,7 @@ void __init efi_init(void)
|
|
if (efi_config_init(arch_tables))
|
|
if (efi_config_init(arch_tables))
|
|
return;
|
|
return;
|
|
|
|
|
|
- set_bit(EFI_CONFIG_TABLES, &x86_efi_facility);
|
|
|
|
|
|
+ set_bit(EFI_CONFIG_TABLES, &efi.flags);
|
|
|
|
|
|
/*
|
|
/*
|
|
* Note: We currently don't support runtime services on an EFI
|
|
* Note: We currently don't support runtime services on an EFI
|
|
@@ -762,12 +751,12 @@ void __init efi_init(void)
|
|
else {
|
|
else {
|
|
if (disable_runtime || efi_runtime_init())
|
|
if (disable_runtime || efi_runtime_init())
|
|
return;
|
|
return;
|
|
- set_bit(EFI_RUNTIME_SERVICES, &x86_efi_facility);
|
|
|
|
|
|
+ set_bit(EFI_RUNTIME_SERVICES, &efi.flags);
|
|
}
|
|
}
|
|
if (efi_memmap_init())
|
|
if (efi_memmap_init())
|
|
return;
|
|
return;
|
|
|
|
|
|
- set_bit(EFI_MEMMAP, &x86_efi_facility);
|
|
|
|
|
|
+ set_bit(EFI_MEMMAP, &efi.flags);
|
|
|
|
|
|
print_efi_memmap();
|
|
print_efi_memmap();
|
|
}
|
|
}
|