diff options
| author | Jung-uk Kim <jkim@FreeBSD.org> | 2020-02-14 19:19:39 +0000 |
|---|---|---|
| committer | Jung-uk Kim <jkim@FreeBSD.org> | 2020-02-14 19:19:39 +0000 |
| commit | aa36cd6999384cddbfa0d030bcdd44e8bf9c7779 (patch) | |
| tree | 4f865c7e1146baad112589d1fc57dc6b335c68ec /source/common/adisasm.c | |
| parent | 8bf5cb5c35eaf503e388d960914add6a539c1e06 (diff) | |
Notes
Diffstat (limited to 'source/common/adisasm.c')
| -rw-r--r-- | source/common/adisasm.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/source/common/adisasm.c b/source/common/adisasm.c index 60bd5fda8395..015765ff5820 100644 --- a/source/common/adisasm.c +++ b/source/common/adisasm.c @@ -156,6 +156,7 @@ #include "acnamesp.h" #include "acparser.h" #include "acapps.h" +#include "acconvert.h" #define _COMPONENT ACPI_TOOLS @@ -379,8 +380,6 @@ AdAmlDisassemble ( Status = AE_ERROR; goto Cleanup; } - - AcpiOsRedirectOutput (File); } *OutFilename = DisasmFilename; @@ -467,6 +466,11 @@ AdDisassembleOneTable ( if (!AcpiGbl_ForceAmlDisassembly && !AcpiUtIsAmlTable (Table)) { + if (File) + { + AcpiOsRedirectOutput (File); + } + AdDisassemblerHeader (Filename, ACPI_IS_DATA_TABLE); /* This is a "Data Table" (non-AML table) */ @@ -489,6 +493,10 @@ AdDisassembleOneTable ( return (AE_OK); } + /* Initialize the converter output file */ + + ASL_CV_INIT_FILETREE(Table, File); + /* * This is an AML table (DSDT or SSDT). * Always parse the tables, only option is what to display @@ -501,6 +509,13 @@ AdDisassembleOneTable ( return (Status); } + /* Redirect output for code generation and debugging output */ + + if (File) + { + AcpiOsRedirectOutput (File); + } + /* Debug output, namespace and parse tree */ if (AslCompilerdebug && File) |
