version 1.1.1.1.2.6, 2017/08/28 17:52:31 |
version 1.1.1.2, 2016/05/04 18:15:54 |
|
|
*****************************************************************************/ |
*****************************************************************************/ |
|
|
/* |
/* |
* Copyright (C) 2000 - 2017, Intel Corp. |
* Copyright (C) 2000 - 2016, Intel Corp. |
* All rights reserved. |
* All rights reserved. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
|
|
*/ |
*/ |
|
|
#include "aslcompiler.h" |
#include "aslcompiler.h" |
|
#include "acapps.h" |
#include "acdispat.h" |
#include "acdispat.h" |
#include "acnamesp.h" |
#include "acnamesp.h" |
#include "actables.h" |
#include "actables.h" |
#include "acparser.h" |
#include "acparser.h" |
#include "acapps.h" |
|
#include "acmacros.h" |
|
#include "acconvert.h" |
|
|
|
|
#include <stdio.h> |
|
#include <time.h> |
|
|
#define _COMPONENT ACPI_TOOLS |
#define _COMPONENT ACPI_TOOLS |
ACPI_MODULE_NAME ("dmtables") |
ACPI_MODULE_NAME ("dmtables") |
Line 204 AdCreateTableHeader ( |
|
Line 204 AdCreateTableHeader ( |
|
AcpiOsPrintf (" */\n"); |
AcpiOsPrintf (" */\n"); |
|
|
/* |
/* |
* Print comments that come before this definition block. |
|
*/ |
|
if (Gbl_CaptureComments) |
|
{ |
|
ASL_CV_PRINT_ONE_COMMENT(AcpiGbl_ParseOpRoot,AML_COMMENT_STANDARD, NULL, 0); |
|
} |
|
|
|
/* |
|
* Open the ASL definition block. |
* Open the ASL definition block. |
* |
* |
* Note: the AMLFilename string is left zero-length in order to just let |
* Note: the AMLFilename string is left zero-length in order to just let |
|
|
|
|
AmlLength = Table->Length - sizeof (ACPI_TABLE_HEADER); |
AmlLength = Table->Length - sizeof (ACPI_TABLE_HEADER); |
AmlStart = ((UINT8 *) Table + sizeof (ACPI_TABLE_HEADER)); |
AmlStart = ((UINT8 *) Table + sizeof (ACPI_TABLE_HEADER)); |
ASL_CV_INIT_FILETREE(Table, AmlStart, AmlLength); |
|
|
|
/* Create the root object */ |
/* Create the root object */ |
|
|
|
|
return (AE_NO_MEMORY); |
return (AE_NO_MEMORY); |
} |
} |
|
|
#ifdef ACPI_ASL_COMPILER |
|
if (Gbl_CaptureComments) |
|
{ |
|
AcpiGbl_ParseOpRoot->Common.CvFilename = AcpiGbl_FileTreeRoot->Filename; |
|
} |
|
else |
|
{ |
|
AcpiGbl_ParseOpRoot->Common.CvFilename = NULL; |
|
} |
|
#endif |
|
|
|
/* Create and initialize a new walk state */ |
/* Create and initialize a new walk state */ |
|
|
WalkState = AcpiDsCreateWalkState (0, AcpiGbl_ParseOpRoot, NULL, NULL); |
WalkState = AcpiDsCreateWalkState (0, AcpiGbl_ParseOpRoot, NULL, NULL); |