EFI/acpiexec: Disable object override mechanism

This mechanism requires sscanf to be implemented for almost no
significant benefit for EFI environment, so disables it. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
This commit is contained in:
Lv Zheng 2016-05-23 23:54:44 +08:00
parent def0dcd048
commit 6bbbef8811
4 changed files with 16 additions and 0 deletions

View File

@ -126,9 +126,11 @@
ACPI_MODULE_NAME ("utxfinit")
/* For AcpiExec only */
#ifndef ACPI_DISABLE_OBJECT_OVERRIDE
void
AeDoObjectOverrides (
void);
#endif
/*******************************************************************************
@ -346,11 +348,13 @@ AcpiInitializeObjects (
#ifdef ACPI_EXEC_APP
#ifndef ACPI_DISABLE_OBJECT_OVERRIDE
/*
* This call implements the "initialization file" option for AcpiExec.
* This is the precise point that we want to perform the overrides.
*/
AeDoObjectOverrides ();
#endif
#endif
/*

View File

@ -301,6 +301,12 @@ UINT64 efi_call10(void *func, UINT64 arg1, UINT64 arg2, UINT64 arg3,
#undef ACPI_USE_NATIVE_DIVIDE
#undef ACPI_USE_SYSTEM_INTTYPES
/* AcpiExec configuration */
#ifdef ACPI_EXEC_APP
#define ACPI_DISABLE_OBJECT_OVERRIDE
#endif
/*
* Math helpers
*/

View File

@ -122,6 +122,8 @@
/* Local prototypes */
#ifndef ACPI_DISABLE_OBJECT_OVERRIDE
static void
AeDoOneOverride (
char *Pathname,
@ -304,3 +306,5 @@ AeDoOneOverride (
AcpiOsPrintf ("New value: 0x%8.8X%8.8X\n",
ACPI_FORMAT_UINT64 (Value));
}
#endif

View File

@ -397,10 +397,12 @@ AeDoOptions (
return (-1);
}
#ifndef ACPI_DISABLE_OBJECT_OVERRIDE
if (AeOpenInitializationFile (AcpiGbl_Optarg))
{
return (-1);
}
#endif
break;
default: