| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
Efi edk2
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
fxxx()/errno/perror() instead
This patch follows new ACPICA design, eliminates old portable OSLs, and
implements fopen/fread/fwrite/fclose/fseek/ftell for GNU EFI
environment. This patch also eliminates AcpiLogError(), convering them
into fprintf(stderr)/perror(). Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
|
| |
| |
| |
| | |
Don't use new bison file (internal file for now).
|
|/
|
|
| |
Broken into more logical groups of rules.i
|
|
|
|
| |
New file is utascii.c
|
|
|
|
|
|
|
| |
"-o" option is an extension for GNU Bison. Although many modern POSIX yacc
implementations have this extension now, POSIX itself does not support it.
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/yacc.html
|
|
|
|
|
|
|
|
|
|
|
| |
- byacc has a bug in "-o" option parsing. Prefix may not be set properly
if its argument contains ".c" somewhere before the actual output file name.
With "byacc -ofoo.cXXXXX/foo.c -d foo.y", for example, it generates "foo.h"
instead of "foo.cXXXXX/foo.h" because ".cXXXXX/foo.c" is replaced with ".h".
- Prefer a GNU make built-in function, suffix(), rather than a series of
complex variable substitutions, to improve readability.
- Use symbol prefix for output file name to reduce external command uses.
- Exit with a meaningful exit status to make it more like a real function.
|
|
|
|
| |
Adds aslpld.c
|
|
|
|
|
|
|
|
|
| |
Allows all object types to be used with Concatenate. Objects
other than Int/Str/Buf are convert to a string that contains
the type of the object. Improves the utility of the Printf
and Fprintf macros.
Adds a new file, exconcat.c
|
|
|
|
|
| |
-lx option: creates a large, multiple cross-reference file.
Intended mostly for BIOS developers.
|
|
|
|
|
|
|
| |
Support for both the compiler and disassembler.
Also, the interpreter will ignore this opcode if it
is ever encountered (should not happen).
David Box.
|
|
|
|
|
|
| |
1) Cleanup output
2) Enhance output with additional data (namestrings, etc.)
3) Adds a new file: asldebug.c
|
|
|
|
| |
Matches the support in iASL and AcpiExec.
|
|
|
|
| |
dttable.c -> dttable, dttable1, dttable2
|
|
|
|
| |
Adds aslresources.y
|
|
|
|
| |
Adds aslcstyle.y
|
| |
|
| |
|
|
|
|
| |
This file no longer exists.
|
|
|
|
|
|
|
|
| |
ACPICA implements all non-ANSI functions locally. However, there
are sometimes two or more versions of the same function throughout
the ACPICA code. This change fixes this.
Adds a new file, utilities/utnonansi.c
|
|
|
|
| |
Also add stubs for some of the tracing functions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The AcpiDebugTrace() is the mechanism known as ACPI method tracing that is
used by Linux as ACPICA debugging message reducer. This facility can be
controlled through Linux ACPI subsystem - /sys/module/acpi/parameters.
This facility requires CONFIG_ACPI_DEBUG to be enabled to see ACPICA trace
logs in the kernel dmesg output.
This patch enhances AcpiDebugTrace() to make it not only a message reducer,
but a real tracer to trace AML interpreter execution. Note that in addition
to the AML tracer enabling, this patch also updates the facility with the
following enhancements:
1. Allow a full path to be specified by the AcpiDebugTrace() API.
2. Allow any method rather than just the entrance of AcpiEvaluateObject()
to be traced.
3. All interpreter ACPI_LV_TRACE_POINT messages are collected for
ACPI_EXECUTER layer.
This patch also updates "trace" command to allow it to perform all Linux
method tracing functionalities:
1. "trace aml" to always enable AML execution trace messages
(level=TRACE_POINT, layer=EXECUTER) for all control methods.
2. "trace aml \MTHD" to always enable AML execution trace messages for
only \MTHD method.
3. "trace aml \MTHD once" to enable AML execution trace messages only
once for only \MTHD method.
4. "trace enable" to always enable all trace messsages (level=ALL,
layer=ALL) for all control methods.
5. "trace enable \MTHD" to always enable all trace messages for only
\MTHD method.
6. "trace enable \MTHD once" to enable all trace messages only once for
only \MTHD method.
7. "trace disable" to disable trace facility.
The Makefiles of acpinames/iasl are also updated to include exdebug.o and
the duplicated stubs are removed after that.
Note that since this patch has enhanced the method tracing facility, Linux
need also be updated after applying this patch. Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
|
|
|
|
| |
-t option displays all ACPI tables.
|
|
|
|
|
|
|
| |
Printf stores to the debug object.
Fprintf stores to any named object.
%o is the main format specifier since only very limited typechecking
can be performed at compile time.
|
|
|
|
|
| |
Now emit ASL+ code which includes C-style operators.
Optionally, legacy text ASL operators can still be emitted.
|
|
|
|
|
|
|
| |
Allows devices, methods, or if/else blocks to be removed from
the parse tree in order to attempt to isolate a block of ASL
code that is causing a problem. Debug enhancement.
David E. Box.
|
|
|
|
|
| |
Adds support for both iASL and the disassembler to create a hardware
and connection summary mapfile (via the -lm option.)
|
|
|
|
|
| |
Update .y file dependencies to correctly build iASL for any .y
file changes.
|
|
|
|
|
|
|
|
|
|
|
| |
Split the main aslcompiler.y file into a master file and 4 included
subfiles, using the M4 macro processor to perform the actual include,
since Bison does not provide this function.
Makefiles/project files updated.
M4 is typically included in the Bison package, for both Windows
and Unix.
|
|
|
|
| |
New file is aslascii.c
|
|
|
|
| |
Update for new files created in the previous commit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Invocations like fprintf(stderr) and perror() are not portable, this patch
introduces AcpiLogError() as a replacement, it is implemented using new
portable API - AcpiUtFileVprintf().
Some applications are already referencing utdebug.c, they now need to build
utlibcfs.c/utprint.c as well.
Note that though AcpiOsInitialize() need to be invoked prior than using
this new API, since no users are introduced in this patch, such invocations
are not added for applications that link utprint.c in this patch. Futher
patches that introduce users of AcpiLogError() should take care of this.
Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The acpinames code defines ACPI_DEBUGGER in order to link
AcpiDbReadTableFromFile(). This patch splits the AcpiDbReadTableFromFile()
function from the debugger and implements it in a generic utilities API so that
acpinames no longer needs to link the debugger for this.
Because acpinames needs access to dump functions, ACPI_DEBUG_OUTPUT needs to be
defined and AcpiDbgLevel needs to be set to maintain consistent behavior.
This patch also cleans up ACPI_DEBUGGER for acpihelp.
This patch is required for removing anstubs.c. Without doing this first,
removing anstubs.c will lead to many link requirements to all debugger and
disassembler objects for acpinames.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
|
|
|
|
|
|
|
| |
Split exception codes into three distinct blocks; for the main
ASL compiler, Table compiler, and the preprocessor. This allows
easy addition of new codes into each block without disturbing
the others. Adds one new file, aslmessages.c
|
|
|
|
|
| |
New file is tbdata.c -- management functions for ACPICA table
manager data structures.
|
|
|
|
|
|
|
| |
For _HID and _CID, the disassembler will emit a string that describes
the device if the _HID/_CID value is recognized. AcpiHelp updated also.
AcpiHelp will now search for a specific ID as well as displaying
the list of "known" (to ACPICA) IDs.
|
|
|
|
|
| |
Replaces 7 separate instances of this common function, with
full exception handling. One new file, common/cmfsize.c
|
|
|
|
|
|
| |
This patch enables parallel compilation for iASL. Fixes issues
caused by the YACC header generation.
Reported by Andrew McDermott, fixed by Lv Zheng.
|
|
|
|
|
|
| |
1) Use $(MAKE) instead of naked make.
2) Consistently use braces instead of parentheses.
Jung-uk Kim <jkim@FreeBSD.org>
|
|
|
|
|
| |
Adds a new file, asloptions.c, that contains the command-line
option processing.
|
|
|
|
| |
Add tbprint.c
|
|
|
|
| |
Add uterror.c
|
|
|
|
| |
Add utbuffer.c
|
|
|
|
|
|
| |
The -so option will create a C table containing offsets of various
named objects so that BIOS code can modifiy them easily at boot
time. Simplifies BIOS code and provides greater reliability.
|
|
|
|
| |
New file is utilities/utpredef.c
|
|
|
|
|
|
|
| |
This change adds validation of static package objects returned
by the various predefined names. Object types and package lengths
are validated. The code is similar to the repair mechanism within
the interpreter, and uses the common predefined name table.
|
|
|
|
|
|
| |
1) Add OPT_CFLAGS to allow the warning flags to by overriden by
the command line. Thomas Renninger (trenn@suse.de)
2) Eliminate extraneous spaces from the makefile execution output.
|
|
|
|
| |
Five new iASL files added.
|
|
|
|
| |
Eight new files.
|