Path: blob/main/sys/contrib/dev/acpica/compiler/asllisting.c
48373 views
/******************************************************************************1*2* Module Name: asllisting - Listing file generation3*4*****************************************************************************/56/******************************************************************************7*8* 1. Copyright Notice9*10* Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp.11* All rights reserved.12*13* 2. License14*15* 2.1. This is your license from Intel Corp. under its intellectual property16* rights. You may have additional license terms from the party that provided17* you this software, covering your right to use that party's intellectual18* property rights.19*20* 2.2. Intel grants, free of charge, to any person ("Licensee") obtaining a21* copy of the source code appearing in this file ("Covered Code") an22* irrevocable, perpetual, worldwide license under Intel's copyrights in the23* base code distributed originally by Intel ("Original Intel Code") to copy,24* make derivatives, distribute, use and display any portion of the Covered25* Code in any form, with the right to sublicense such rights; and26*27* 2.3. Intel grants Licensee a non-exclusive and non-transferable patent28* license (with the right to sublicense), under only those claims of Intel29* patents that are infringed by the Original Intel Code, to make, use, sell,30* offer to sell, and import the Covered Code and derivative works thereof31* solely to the minimum extent necessary to exercise the above copyright32* license, and in no event shall the patent license extend to any additions33* to or modifications of the Original Intel Code. No other license or right34* is granted directly or by implication, estoppel or otherwise;35*36* The above copyright and patent license is granted only if the following37* conditions are met:38*39* 3. Conditions40*41* 3.1. Redistribution of Source with Rights to Further Distribute Source.42* Redistribution of source code of any substantial portion of the Covered43* Code or modification with rights to further distribute source must include44* the above Copyright Notice, the above License, this list of Conditions,45* and the following Disclaimer and Export Compliance provision. In addition,46* Licensee must cause all Covered Code to which Licensee contributes to47* contain a file documenting the changes Licensee made to create that Covered48* Code and the date of any change. Licensee must include in that file the49* documentation of any changes made by any predecessor Licensee. Licensee50* must include a prominent statement that the modification is derived,51* directly or indirectly, from Original Intel Code.52*53* 3.2. Redistribution of Source with no Rights to Further Distribute Source.54* Redistribution of source code of any substantial portion of the Covered55* Code or modification without rights to further distribute source must56* include the following Disclaimer and Export Compliance provision in the57* documentation and/or other materials provided with distribution. In58* addition, Licensee may not authorize further sublicense of source of any59* portion of the Covered Code, and must include terms to the effect that the60* license from Licensee to its licensee is limited to the intellectual61* property embodied in the software Licensee provides to its licensee, and62* not to intellectual property embodied in modifications its licensee may63* make.64*65* 3.3. Redistribution of Executable. Redistribution in executable form of any66* substantial portion of the Covered Code or modification must reproduce the67* above Copyright Notice, and the following Disclaimer and Export Compliance68* provision in the documentation and/or other materials provided with the69* distribution.70*71* 3.4. Intel retains all right, title, and interest in and to the Original72* Intel Code.73*74* 3.5. Neither the name Intel nor any other trademark owned or controlled by75* Intel shall be used in advertising or otherwise to promote the sale, use or76* other dealings in products derived from or relating to the Covered Code77* without prior written authorization from Intel.78*79* 4. Disclaimer and Export Compliance80*81* 4.1. INTEL MAKES NO WARRANTY OF ANY KIND REGARDING ANY SOFTWARE PROVIDED82* HERE. ANY SOFTWARE ORIGINATING FROM INTEL OR DERIVED FROM INTEL SOFTWARE83* IS PROVIDED "AS IS," AND INTEL WILL NOT PROVIDE ANY SUPPORT, ASSISTANCE,84* INSTALLATION, TRAINING OR OTHER SERVICES. INTEL WILL NOT PROVIDE ANY85* UPDATES, ENHANCEMENTS OR EXTENSIONS. INTEL SPECIFICALLY DISCLAIMS ANY86* IMPLIED WARRANTIES OF MERCHANTABILITY, NONINFRINGEMENT AND FITNESS FOR A87* PARTICULAR PURPOSE.88*89* 4.2. IN NO EVENT SHALL INTEL HAVE ANY LIABILITY TO LICENSEE, ITS LICENSEES90* OR ANY OTHER THIRD PARTY, FOR ANY LOST PROFITS, LOST DATA, LOSS OF USE OR91* COSTS OF PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, OR FOR ANY INDIRECT,92* SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THIS AGREEMENT, UNDER ANY93* CAUSE OF ACTION OR THEORY OF LIABILITY, AND IRRESPECTIVE OF WHETHER INTEL94* HAS ADVANCE NOTICE OF THE POSSIBILITY OF SUCH DAMAGES. THESE LIMITATIONS95* SHALL APPLY NOTWITHSTANDING THE FAILURE OF THE ESSENTIAL PURPOSE OF ANY96* LIMITED REMEDY.97*98* 4.3. Licensee shall not export, either directly or indirectly, any of this99* software or system incorporating such software without first obtaining any100* required license or other approval from the U. S. Department of Commerce or101* any other agency or department of the United States Government. In the102* event Licensee exports any such software from the United States or103* re-exports any such software from a foreign destination, Licensee shall104* ensure that the distribution and export/re-export of the software is in105* compliance with all laws, regulations, orders, or other restrictions of the106* U.S. Export Administration Regulations. Licensee agrees that neither it nor107* any of its subsidiaries will export/re-export any technical data, process,108* software, or service, directly or indirectly, to any country for which the109* United States government or any agency thereof requires an export license,110* other governmental approval, or letter of assurance, without first obtaining111* such license, approval or letter.112*113*****************************************************************************114*115* Alternatively, you may choose to be licensed under the terms of the116* following license:117*118* Redistribution and use in source and binary forms, with or without119* modification, are permitted provided that the following conditions120* are met:121* 1. Redistributions of source code must retain the above copyright122* notice, this list of conditions, and the following disclaimer,123* without modification.124* 2. Redistributions in binary form must reproduce at minimum a disclaimer125* substantially similar to the "NO WARRANTY" disclaimer below126* ("Disclaimer") and any redistribution must be conditioned upon127* including a substantially similar Disclaimer requirement for further128* binary redistribution.129* 3. Neither the names of the above-listed copyright holders nor the names130* of any contributors may be used to endorse or promote products derived131* from this software without specific prior written permission.132*133* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS134* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT135* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR136* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT137* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,138* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT139* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,140* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY141* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT142* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE143* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.144*145* Alternatively, you may choose to be licensed under the terms of the146* GNU General Public License ("GPL") version 2 as published by the Free147* Software Foundation.148*149*****************************************************************************/150151#include <contrib/dev/acpica/compiler/aslcompiler.h>152#include "aslcompiler.y.h"153#include <contrib/dev/acpica/include/amlcode.h>154#include <contrib/dev/acpica/include/acparser.h>155#include <contrib/dev/acpica/include/acnamesp.h>156157158#define _COMPONENT ACPI_COMPILER159ACPI_MODULE_NAME ("asllisting")160161162/* Local prototypes */163164static void165LsGenerateListing (166UINT32 FileId);167168static ACPI_STATUS169LsAmlListingWalk (170ACPI_PARSE_OBJECT *Op,171UINT32 Level,172void *Context);173174static ACPI_STATUS175LsTreeWriteWalk (176ACPI_PARSE_OBJECT *Op,177UINT32 Level,178void *Context);179180static void181LsWriteNodeToListing (182ACPI_PARSE_OBJECT *Op,183UINT32 FileId);184185static void186LsFinishSourceListing (187UINT32 FileId);188189190/*******************************************************************************191*192* FUNCTION: LsDoListings193*194* PARAMETERS: None. Examines the various output file global flags.195*196* RETURN: None197*198* DESCRIPTION: Generate all requested listing files.199*200******************************************************************************/201202void203LsDoListings (204void)205{206207if (AslGbl_C_OutputFlag)208{209LsGenerateListing (ASL_FILE_C_SOURCE_OUTPUT);210}211212if (AslGbl_ListingFlag)213{214LsGenerateListing (ASL_FILE_LISTING_OUTPUT);215}216217if (AslGbl_AsmOutputFlag)218{219LsGenerateListing (ASL_FILE_ASM_SOURCE_OUTPUT);220}221222if (AslGbl_C_IncludeOutputFlag)223{224LsGenerateListing (ASL_FILE_C_INCLUDE_OUTPUT);225}226227if (AslGbl_AsmIncludeOutputFlag)228{229LsGenerateListing (ASL_FILE_ASM_INCLUDE_OUTPUT);230}231232if (AslGbl_C_OffsetTableFlag)233{234LsGenerateListing (ASL_FILE_C_OFFSET_OUTPUT);235}236}237238239/*******************************************************************************240*241* FUNCTION: LsGenerateListing242*243* PARAMETERS: FileId - ID of listing file244*245* RETURN: None246*247* DESCRIPTION: Generate a listing file. This can be one of the several types248* of "listings" supported.249*250******************************************************************************/251252static void253LsGenerateListing (254UINT32 FileId)255{256UINT32 WalkMode = ASL_WALK_VISIT_DOWNWARD | ASL_WALK_VISIT_DB_SEPARATELY;257258/* Start at the beginning of both the source and AML files */259260FlSeekFile (ASL_FILE_SOURCE_OUTPUT, 0);261FlSeekFile (ASL_FILE_AML_OUTPUT, 0);262AslGbl_SourceLine = 0;263AslGbl_CurrentHexColumn = 0;264LsPushNode (AslGbl_Files[ASL_FILE_INPUT].Filename);265266if (FileId == ASL_FILE_C_OFFSET_OUTPUT)267{268AslGbl_CurrentAmlOffset = 0;269270/* Offset table file has a special header and footer */271272LsDoOffsetTableHeader (FileId);273274TrWalkParseTree (AslGbl_CurrentDB, WalkMode,275LsAmlOffsetWalk, NULL, (void *) ACPI_TO_POINTER (FileId));276LsDoOffsetTableFooter (FileId);277return;278}279280/* Process all parse nodes */281282TrWalkParseTree (AslGbl_CurrentDB, WalkMode,283LsAmlListingWalk, NULL, (void *) ACPI_TO_POINTER (FileId));284285/* Final processing */286287LsFinishSourceListing (FileId);288}289290291/*******************************************************************************292*293* FUNCTION: LsAmlListingWalk294*295* PARAMETERS: ASL_WALK_CALLBACK296*297* RETURN: Status298*299* DESCRIPTION: Process one node during a listing file generation.300*301******************************************************************************/302303static ACPI_STATUS304LsAmlListingWalk (305ACPI_PARSE_OBJECT *Op,306UINT32 Level,307void *Context)308{309UINT8 FileByte;310UINT32 i;311UINT32 FileId = (UINT32) ACPI_TO_INTEGER (Context);312313314LsWriteNodeToListing (Op, FileId);315316if (Op->Asl.CompileFlags & OP_IS_RESOURCE_DATA)317{318/* Buffer is a resource template, don't dump the data all at once */319320return (AE_OK);321}322323if ((FileId == ASL_FILE_ASM_INCLUDE_OUTPUT) ||324(FileId == ASL_FILE_C_INCLUDE_OUTPUT))325{326return (AE_OK);327}328329/* Write the hex bytes to the listing file(s) (if requested) */330331for (i = 0; i < Op->Asl.FinalAmlLength; i++)332{333if (ACPI_FAILURE (FlReadFile (ASL_FILE_AML_OUTPUT, &FileByte, 1)))334{335FlFileError (ASL_FILE_AML_OUTPUT, ASL_MSG_READ);336AslAbort ();337}338339LsWriteListingHexBytes (&FileByte, 1, FileId);340}341342return (AE_OK);343}344345346/*******************************************************************************347*348* FUNCTION: LsDumpParseTree, LsTreeWriteWalk349*350* PARAMETERS: None351*352* RETURN: None353*354* DESCRIPTION: Dump entire parse tree, for compiler debug only355*356******************************************************************************/357358void359LsDumpParseTree (360void)361{362363if (!AslGbl_DebugFlag)364{365return;366}367368DbgPrint (ASL_TREE_OUTPUT, "\nOriginal parse tree from parser:\n\n");369DbgPrint (ASL_TREE_OUTPUT, ASL_PARSE_TREE_HEADER1);370371TrWalkParseTree (AslGbl_ParseTreeRoot, ASL_WALK_VISIT_DOWNWARD,372LsTreeWriteWalk, NULL, NULL);373374DbgPrint (ASL_TREE_OUTPUT, ASL_PARSE_TREE_HEADER1);375}376377378static ACPI_STATUS379LsTreeWriteWalk (380ACPI_PARSE_OBJECT *Op,381UINT32 Level,382void *Context)383{384385/* Dump ParseOp name and possible value */386387switch (Op->Asl.ParseOpcode)388{389case PARSEOP_NAMESEG:390case PARSEOP_NAMESTRING:391case PARSEOP_METHODCALL:392case PARSEOP_STRING_LITERAL:393394UtDumpStringOp (Op, Level);395break;396397case PARSEOP_BYTECONST:398399UtDumpIntegerOp (Op, Level, 2);400break;401402case PARSEOP_WORDCONST:403case PARSEOP_PACKAGE_LENGTH:404405UtDumpIntegerOp (Op, Level, 4);406break;407408case PARSEOP_DWORDCONST:409case PARSEOP_EISAID:410411UtDumpIntegerOp (Op, Level, 8);412break;413414case PARSEOP_QWORDCONST:415case PARSEOP_INTEGER:416case PARSEOP_ONE:417case PARSEOP_ZERO:418case PARSEOP_ONES:419420UtDumpIntegerOp (Op, Level, 16);421break;422423case PARSEOP_INCLUDE:424425DbgPrint (ASL_TREE_OUTPUT,426"Open: %s\n", Op->Asl.Value.String);427return (AE_OK);428429case PARSEOP_INCLUDE_END:430431DbgPrint (ASL_TREE_OUTPUT,432"Close: %s\n", Op->Asl.Filename);433return (AE_OK);434435default:436437UtDumpBasicOp (Op, Level);438break;439}440441/* Dump the remaining data */442443DbgPrint (ASL_TREE_OUTPUT, ASL_PARSE_TREE_DEBUG1,444Op->Asl.ParseOpcode, Op->Asl.CompileFlags,445Op->Asl.LineNumber, Op->Asl.EndLine,446Op->Asl.LogicalLineNumber, Op->Asl.EndLogicalLine);447448TrPrintOpFlags (Op->Asl.CompileFlags, ASL_TREE_OUTPUT);449DbgPrint (ASL_TREE_OUTPUT, "\n");450return (AE_OK);451}452453454/*******************************************************************************455*456* FUNCTION: LsWriteNodeToListing457*458* PARAMETERS: Op - Parse node to write to the listing file.459* FileId - ID of current listing file460*461* RETURN: None.462*463* DESCRIPTION: Write "a node" to the listing file. This means to464* 1) Write out all of the source text associated with the node465* 2) Write out all of the AML bytes associated with the node466* 3) Write any compiler exceptions associated with the node467*468******************************************************************************/469470static void471LsWriteNodeToListing (472ACPI_PARSE_OBJECT *Op,473UINT32 FileId)474{475const ACPI_OPCODE_INFO *OpInfo;476UINT32 OpClass;477char *Pathname;478UINT32 Length;479UINT32 i;480481482OpInfo = AcpiPsGetOpcodeInfo (Op->Asl.AmlOpcode);483OpClass = OpInfo->Class;484485/* TBD: clean this up with a single flag that says:486* I start a named output block487*/488if (FileId == ASL_FILE_C_SOURCE_OUTPUT)489{490switch (Op->Asl.ParseOpcode)491{492case PARSEOP_DEFINITION_BLOCK:493case PARSEOP_METHODCALL:494case PARSEOP_INCLUDE:495case PARSEOP_INCLUDE_END:496case PARSEOP_DEFAULT_ARG:497498break;499500default:501502switch (OpClass)503{504case AML_CLASS_NAMED_OBJECT:505506switch (Op->Asl.AmlOpcode)507{508case AML_SCOPE_OP:509case AML_ALIAS_OP:510511break;512513default:514515if (Op->Asl.ExternalName)516{517LsFlushListingBuffer (FileId);518FlPrintFile (FileId, " };\n");519}520break;521}522break;523524default:525526/* Don't care about other objects */527528break;529}530break;531}532}533534/* These cases do not have a corresponding AML opcode */535536switch (Op->Asl.ParseOpcode)537{538case PARSEOP_DEFINITION_BLOCK:539540/* Always start a definition block at AML offset zero */541542AslGbl_CurrentAmlOffset = 0;543LsWriteSourceLines (Op->Asl.EndLine, Op->Asl.EndLogicalLine, FileId);544545/* Use the table Signature and TableId to build a unique name */546547switch (FileId)548{549case ASL_FILE_ASM_SOURCE_OUTPUT:550551FlPrintFile (FileId,552"%s_%s_Header \\\n",553AslGbl_TableSignature, AslGbl_TableId);554break;555556case ASL_FILE_C_SOURCE_OUTPUT:557558FlPrintFile (FileId,559" unsigned char %s_%s_Header [] =\n {\n",560AslGbl_TableSignature, AslGbl_TableId);561break;562563case ASL_FILE_ASM_INCLUDE_OUTPUT:564565FlPrintFile (FileId,566"extrn %s_%s_Header : byte\n",567AslGbl_TableSignature, AslGbl_TableId);568break;569570case ASL_FILE_C_INCLUDE_OUTPUT:571572FlPrintFile (FileId,573"extern unsigned char %s_%s_Header [];\n",574AslGbl_TableSignature, AslGbl_TableId);575break;576577default:578break;579}580581return;582583584case PARSEOP_METHODCALL:585586LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber,587FileId);588return;589590591case PARSEOP_INCLUDE:592593/* Flush everything up to and including the include source line */594595LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber,596FileId);597598/* Create a new listing node and push it */599600LsPushNode (Op->Asl.Value.String);601return;602603604case PARSEOP_INCLUDE_END:605606/* Flush out the rest of the include file */607608LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber,609FileId);610611/* Pop off this listing node and go back to the parent file */612613(void) LsPopNode ();614return;615616617case PARSEOP_DEFAULT_ARG:618619if (Op->Asl.CompileFlags & OP_IS_RESOURCE_DESC)620{621LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.EndLogicalLine,622FileId);623}624return;625626627default:628629/* All other opcodes have an AML opcode */630631break;632}633634/*635* Otherwise, we look at the AML opcode because we can636* switch on the opcode type, getting an entire class637* at once638*/639switch (OpClass)640{641case AML_CLASS_ARGUMENT: /* argument type only */642case AML_CLASS_INTERNAL:643644break;645646case AML_CLASS_NAMED_OBJECT:647648switch (Op->Asl.AmlOpcode)649{650case AML_FIELD_OP:651case AML_INDEX_FIELD_OP:652case AML_BANK_FIELD_OP:653/*654* For fields, we want to dump all the AML after the655* entire definition656*/657LsWriteSourceLines (Op->Asl.EndLine, Op->Asl.EndLogicalLine,658FileId);659break;660661case AML_NAME_OP:662663if (Op->Asl.CompileFlags & OP_IS_RESOURCE_DESC)664{665LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber,666FileId);667}668else669{670/*671* For fields, we want to dump all the AML after the672* entire definition673*/674LsWriteSourceLines (Op->Asl.EndLine, Op->Asl.EndLogicalLine,675FileId);676}677break;678679default:680681LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber,682FileId);683break;684}685686switch (Op->Asl.AmlOpcode)687{688case AML_SCOPE_OP:689case AML_ALIAS_OP:690691/* These opcodes do not declare a new object, ignore them */692693break;694695default:696697/* All other named object opcodes come here */698699switch (FileId)700{701case ASL_FILE_ASM_SOURCE_OUTPUT:702case ASL_FILE_C_SOURCE_OUTPUT:703case ASL_FILE_ASM_INCLUDE_OUTPUT:704case ASL_FILE_C_INCLUDE_OUTPUT:705/*706* For named objects, we will create a valid symbol so that the707* AML code can be referenced from C or ASM708*/709if (Op->Asl.ExternalName)710{711/* Get the full pathname associated with this node */712713Pathname = AcpiNsGetExternalPathname (Op->Asl.Node);714Length = strlen (Pathname);715if (Length >= 4)716{717/* Convert all dots in the path to underscores */718719for (i = 0; i < Length; i++)720{721if (Pathname[i] == '.')722{723Pathname[i] = '_';724}725}726727/* Create the appropriate symbol in the output file */728729switch (FileId)730{731case ASL_FILE_ASM_SOURCE_OUTPUT:732733FlPrintFile (FileId,734"%s_%s_%s \\\n",735AslGbl_TableSignature, AslGbl_TableId, &Pathname[1]);736break;737738case ASL_FILE_C_SOURCE_OUTPUT:739740FlPrintFile (FileId,741" unsigned char %s_%s_%s [] =\n {\n",742AslGbl_TableSignature, AslGbl_TableId, &Pathname[1]);743break;744745case ASL_FILE_ASM_INCLUDE_OUTPUT:746747FlPrintFile (FileId,748"extrn %s_%s_%s : byte\n",749AslGbl_TableSignature, AslGbl_TableId, &Pathname[1]);750break;751752case ASL_FILE_C_INCLUDE_OUTPUT:753754FlPrintFile (FileId,755"extern unsigned char %s_%s_%s [];\n",756AslGbl_TableSignature, AslGbl_TableId, &Pathname[1]);757break;758759default:760break;761}762}763764ACPI_FREE (Pathname);765}766break;767768default:769770/* Nothing to do for listing file */771772break;773}774}775break;776777case AML_CLASS_EXECUTE:778case AML_CLASS_CREATE:779default:780781if ((Op->Asl.ParseOpcode == PARSEOP_BUFFER) &&782(Op->Asl.CompileFlags & OP_IS_RESOURCE_DESC))783{784return;785}786787LsWriteSourceLines (Op->Asl.LineNumber, Op->Asl.LogicalLineNumber,788FileId);789break;790791case AML_CLASS_UNKNOWN:792793break;794}795}796797798/*******************************************************************************799*800* FUNCTION: LsFinishSourceListing801*802* PARAMETERS: FileId - ID of current listing file.803*804* RETURN: None805*806* DESCRIPTION: Cleanup routine for the listing file. Flush the hex AML807* listing buffer, and flush out any remaining lines in the808* source input file.809*810******************************************************************************/811812static void813LsFinishSourceListing (814UINT32 FileId)815{816817if ((FileId == ASL_FILE_ASM_INCLUDE_OUTPUT) ||818(FileId == ASL_FILE_C_INCLUDE_OUTPUT))819{820return;821}822823LsFlushListingBuffer (FileId);824AslGbl_CurrentAmlOffset = 0;825826/* Flush any remaining text in the source file */827828if (FileId == ASL_FILE_C_SOURCE_OUTPUT)829{830FlPrintFile (FileId, " /*\n");831}832833while (LsWriteOneSourceLine (FileId))834{ ; }835836if (FileId == ASL_FILE_C_SOURCE_OUTPUT)837{838FlPrintFile (FileId, "\n */\n };\n");839}840841FlPrintFile (FileId, "\n");842843if (FileId == ASL_FILE_LISTING_OUTPUT)844{845/* Print a summary of the compile exceptions */846847FlPrintFile (FileId, "\n\nSummary of errors and warnings\n\n");848AePrintErrorLog (FileId);849FlPrintFile (FileId, "\n");850UtDisplayOneSummary (FileId, TRUE);851FlPrintFile (FileId, "\n");852}853}854855856