I have a problem with creating AcpiDump.efi . I only can create
AcpiDump.exe with Visual Studio 2013, but I can't create efi file.
I try to do with minnowMax 078 buidable developming tree
<http://firmware.intel.com/projects/minnowboard-max>, but it don't work
beacause I got error :
c:\minmax078\acpica-master\source\tools\acpidump\acenv.h(296) : fatal error
C1189 : #error : Unknown target environment
NMAKE : fatal error U1077 : ' "C:\Program Files(x86)\Microsoft Visual
Studio 9.0\Vc\bin\cl.exe" ' : return code 0x2 '
PROBLEM : What I need to do to create the AcpiDump.efi ?
> From: Rafael J. Wysocki [mailto:[email protected]]
> Sent: Wednesday, April 29, 2015 8:44 AM
> Subject: Re: [PATCH] ACPICA: remove duplicate u8 typedef
> On Tuesday, April 28, 2015 04:54:04 PM Olaf Hering wrote:
> > During commit e252652fb2664d42de19f933aa3688bbc470de3f ("ACPICA:
> > acpidump: Remove integer types translation protection.") two 'unsigned
> > char' types got converted to 'u8'.
> > The result does not compile with gcc-4.5, it can not cope with duplicate
> > typedefs.
> > Signed-off-by: Olaf Hering <olaf(a)aepfle.de>
> Applied, thanks!
> Lv, can you please see if that's an upstream issue too?
In ACPICA, one u8 is UINT8 and the other is for BOOLEAN.
Pleas merge this first.
I'll think about a solution to reduce this divergence.
Thanks and best regards
> > ---
> > include/acpi/actypes.h | 1 -
> > 1 file changed, 1 deletion(-)
> > diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
> > index f5ca0e9..1c3002e 100644
> > --- a/include/acpi/actypes.h
> > +++ b/include/acpi/actypes.h
> > @@ -124,7 +124,6 @@
> > #ifndef ACPI_USE_SYSTEM_INTTYPES
> > typedef unsigned char u8;
> > -typedef unsigned char u8;
> > typedef unsigned short u16;
> > typedef short s16;
> > typedef COMPILER_DEPENDENT_UINT64 u64;
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> > the body of a message to majordomo(a)vger.kernel.org
> > More majordomo info at http://vger.kernel.org/majordomo-info.html
> I speak only for myself.
> Rafael J. Wysocki, Intel Open Source Technology Center.
> From: Olaf Hering [mailto:[email protected]]
> Sent: Tuesday, April 28, 2015 10:54 PM
> Subject: [PATCH] ACPICA: remove duplicate u8 typedef
> During commit e252652fb2664d42de19f933aa3688bbc470de3f ("ACPICA:
> acpidump: Remove integer types translation protection.") two 'unsigned
> char' types got converted to 'u8'.
> The result does not compile with gcc-4.5, it can not cope with duplicate
The 2 u8 typedefs actually are different types in ACPICA.
If this really causes problem, I'm OK with deleting it from Linux side.
We'll take care of introducing a new type to eliminate such "divergence".
> Signed-off-by: Olaf Hering <olaf(a)aepfle.de>
> include/acpi/actypes.h | 1 -
> 1 file changed, 1 deletion(-)
> diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h
> index f5ca0e9..1c3002e 100644
> --- a/include/acpi/actypes.h
> +++ b/include/acpi/actypes.h
> @@ -124,7 +124,6 @@
> #ifndef ACPI_USE_SYSTEM_INTTYPES
> typedef unsigned char u8;
> -typedef unsigned char u8;
> typedef unsigned short u16;
> typedef short s16;
> typedef COMPILER_DEPENDENT_UINT64 u64;
While trying to make use of dynamic tables as a way to provide driver
initialization properties, I've encountered a couple of issues with the
way dynamic tables are being handled.
The first patch appears to be a bug. There is a mutex release without
a corresponding aquire. This extra release causes a mutex error message
when a table is re-loaded after being unloaded.
The second patch actually unloads a table when table unload is called.
When a table is being dynamically loaded by a driver module and that
driver module is unloaded, the memory for the table would typically be
freed resulting in a table that is marked as unloaded but still pointing
to that freed memory. If the driver module is then re-loaded, the
ACPI table reload function will attempt to access that freed memory when
it does a table compare and results in a oops.
These patches solve the problems I've encountered but may not be the
proper way to solve.
Bob Paauwe (2):
Remove extra release mutex call.
Acutally unload a table.
drivers/acpi/acpica/tbinstal.c | 1 -
drivers/acpi/acpica/tbxfload.c | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
08 April 2015. Summary of changes for version 20150408:
This release is available at https://acpica.org/downloads
1) ACPICA kernel-resident subsystem:
Permanently set the return value for the _REV predefined name. It now returns 2 (was 5). This matches other ACPI implementations. _REV will be deprecated in the future, and is now defined to be 1 for ACPI 1.0, and 2 for ACPI 2.0 and later.
Added the "Windows 2015" string to the _OSI support. ACPICA will now return TRUE to a query with this string.
Fixed several issues with the local version of the printf function.
Added the C99 compiler option (-std=c99) to the Unix makefiles.
Non-Debug Version: 99.1K Code, 27.3K Data, 126.4K Total
Debug Version: 192.8K Code, 79.9K Data, 272.7K Total
Non-Debug Version: 98.8K Code, 27.3K Data, 126.1K Total
Debug Version: 192.1K Code, 79.8K Data, 271.9K Total
2) iASL Compiler/Disassembler and Tools:
Implemented an enhancement to the constant folding feature to transform the parse tree to a simple Store operation whenever possible:
Add (2, 3, X) ==> Store (5, X)
X = 2 + 3 ==> X = 5 ==> Store (5, X)
Updated support for the SLIC table (Software Licensing Description Table) in both the Data Table compiler and the disassembler. The SLIC table support now conforms to "Microsoft Software Licensing Tables (SLIC and MSDM). November 29, 2011. Copyright 2011 Microsoft". Note: The SLIC data following the ACPI header is now defined to be "Proprietary Data", and as such, can only be displayed as a hex data block.
Implemented full support for the MSDM table as described in the document above. Note: The MSDM data following the ACPI header is defined to be "Proprietary Data", and as such, can only be displayed as a hex data block.
Changes for the EFI version of the tools:
1) Fixed a build error/issue
2) Fixed a cast warning
Implemented the -Pn option for the Table Compiler (in addition to the ASL compiler). This option disables the preprocessor.
Fixed some problems with the local version of the strstr function.
Disassembler: For disassembly of Data Tables, added a comment field around the Ascii equivalent data that is emitted as part of the "Raw Table Data" block. This prevents the iASL Preprocessor from possible confusion if/when the table is compiled.
Disassembler: Added an option (-df) to force the disassembler to assume that the table being disassembled contains valid AML. This feature is useful for disassembling AML files that contain ACPI signatures other than DSDT or SSDT (such as OEMx or other signatures).
iASL: Fixed a path issue with the __FILE__ operator by making the directory prefix optional within the internal SplitInputFilename function.
Debugger: Remove some unused global variables.
Tests: Updated the makefile for the AAPITS suite.