mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 18:04:08 +03:00
Support for FieldAttribute byte, merged Access/Lock/Update bits back
into the FieldFlags. Renamed the various field bits and access masks. date 2001.11.16.22.27.00; author rmoore1; state Exp;
This commit is contained in:
parent
3b8832aa8c
commit
1c1150a128
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: aslanalyze.c - check for semantic errors
|
||||
* $Revision: 1.47 $
|
||||
* $Revision: 1.48 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -1078,7 +1078,7 @@ AnMethodTypingWalkEnd (
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AnSemanticAnalysisWalkBegin
|
||||
* FUNCTION: AnOperandTypecheckWalkBegin
|
||||
*
|
||||
* PARAMETERS: ASL_WALK_CALLBACK
|
||||
*
|
||||
@ -1092,7 +1092,7 @@ AnMethodTypingWalkEnd (
|
||||
******************************************************************************/
|
||||
|
||||
ACPI_STATUS
|
||||
AnSemanticAnalysisWalkBegin (
|
||||
AnOperandTypecheckWalkBegin (
|
||||
ASL_PARSE_NODE *Node,
|
||||
UINT32 Level,
|
||||
void *Context)
|
||||
@ -1104,7 +1104,7 @@ AnSemanticAnalysisWalkBegin (
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AnSemanticAnalysisWalkEnd
|
||||
* FUNCTION: AnOperandTypecheckWalkEnd
|
||||
*
|
||||
* PARAMETERS: ASL_WALK_CALLBACK
|
||||
*
|
||||
@ -1116,7 +1116,7 @@ AnSemanticAnalysisWalkBegin (
|
||||
******************************************************************************/
|
||||
|
||||
ACPI_STATUS
|
||||
AnSemanticAnalysisWalkEnd (
|
||||
AnOperandTypecheckWalkEnd (
|
||||
ASL_PARSE_NODE *Node,
|
||||
UINT32 Level,
|
||||
void *Context)
|
||||
@ -1349,3 +1349,53 @@ AnSemanticAnalysisWalkEnd (
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AnOtherSemanticAnalysisWalkBegin
|
||||
*
|
||||
* PARAMETERS: ASL_WALK_CALLBACK
|
||||
*
|
||||
* RETURN: none
|
||||
*
|
||||
* DESCRIPTION: Descending callback for the analysis walk. Check methods for :
|
||||
* 1) Initialized local variables
|
||||
* 2) Valid arguments
|
||||
* 3) Return types
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
ACPI_STATUS
|
||||
AnOtherSemanticAnalysisWalkBegin (
|
||||
ASL_PARSE_NODE *Node,
|
||||
UINT32 Level,
|
||||
void *Context)
|
||||
{
|
||||
|
||||
return AE_OK;
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AnOtherSemanticAnalysisWalkEnd
|
||||
*
|
||||
* PARAMETERS: ASL_WALK_CALLBACK
|
||||
*
|
||||
* RETURN: None.
|
||||
*
|
||||
* DESCRIPTION: Ascending callback for analysis walk. Complete method
|
||||
* return analysis.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
ACPI_STATUS
|
||||
AnOtherSemanticAnalysisWalkEnd (
|
||||
ASL_PARSE_NODE *PsNode,
|
||||
UINT32 Level,
|
||||
void *Context)
|
||||
{
|
||||
|
||||
return AE_OK;
|
||||
|
||||
}
|
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: aslcompile - top level compile module
|
||||
* $Revision: 1.32 $
|
||||
* $Revision: 1.36 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -150,14 +150,6 @@ AcpiTbDeleteAcpiTables (void)
|
||||
}
|
||||
|
||||
|
||||
BOOLEAN
|
||||
AcpiTbSystemTablePointer (
|
||||
void *Where)
|
||||
{
|
||||
return FALSE;
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
AcpiExDumpOperands (
|
||||
ACPI_OPERAND_OBJECT **Operands,
|
||||
@ -196,8 +188,8 @@ AslCompilerSignon (
|
||||
{
|
||||
|
||||
FlPrintFile (FileId,
|
||||
"\n%s %s [%s]\n%s\nSupports ACPI Specification Revision 2.0\n\n",
|
||||
CompilerId, CompilerVersion, __DATE__, CompilerCopyright);
|
||||
"\n%s %s [%s]\nACPI CA Subsystem version %X\n%s\nSupports ACPI Specification Revision 2.0\n\n",
|
||||
CompilerId, CompilerVersion, __DATE__, ACPI_CA_VERSION, CompilerCopyright);
|
||||
}
|
||||
|
||||
|
||||
@ -284,10 +276,14 @@ CmDoCompile (void)
|
||||
AslCompilerparse();
|
||||
UtEndEvent (i++);
|
||||
|
||||
/* Pre-process parse tree for any operator transforms */
|
||||
|
||||
UtBeginEvent (i, "Generate AML opcodes");
|
||||
DbgPrint (ASL_DEBUG_OUTPUT, "\nParse tree transforms\n\n");
|
||||
TrWalkParseTree (RootNode, ASL_WALK_VISIT_DOWNWARD, TrAmlTransformWalk, NULL, NULL);
|
||||
|
||||
/* Generate AML opcodes corresponding to the parse tokens */
|
||||
|
||||
UtBeginEvent (i, "Generate AML opcodes");
|
||||
DbgPrint (ASL_DEBUG_OUTPUT, "\nGenerating AML opcodes\n\n");
|
||||
TrWalkParseTree (RootNode, ASL_WALK_VISIT_UPWARD, NULL, OpcAmlOpcodeWalk, NULL);
|
||||
UtEndEvent (i++);
|
||||
@ -362,8 +358,16 @@ CmDoCompile (void)
|
||||
|
||||
UtBeginEvent (i, "Analyze AML operand types");
|
||||
DbgPrint (ASL_DEBUG_OUTPUT, "\nSemantic analysis - Operand type checking \n\n");
|
||||
TrWalkParseTree (RootNode, ASL_WALK_VISIT_TWICE, AnSemanticAnalysisWalkBegin,
|
||||
AnSemanticAnalysisWalkEnd, &AnalysisWalkInfo);
|
||||
TrWalkParseTree (RootNode, ASL_WALK_VISIT_TWICE, AnOperandTypecheckWalkBegin,
|
||||
AnOperandTypecheckWalkEnd, &AnalysisWalkInfo);
|
||||
UtEndEvent (i++);
|
||||
|
||||
/* Semantic error checking part four - other miscellaneous checks */
|
||||
|
||||
UtBeginEvent (i, "Miscellaneous analysis");
|
||||
DbgPrint (ASL_DEBUG_OUTPUT, "\nSemantic analysis - miscellaneous \n\n");
|
||||
TrWalkParseTree (RootNode, ASL_WALK_VISIT_TWICE, AnOtherSemanticAnalysisWalkBegin,
|
||||
AnOtherSemanticAnalysisWalkEnd, &AnalysisWalkInfo);
|
||||
UtEndEvent (i++);
|
||||
|
||||
|
||||
@ -408,7 +412,7 @@ CmDoCompile (void)
|
||||
UtEndEvent (i++);
|
||||
|
||||
|
||||
UtEndEvent (12);
|
||||
UtEndEvent (13);
|
||||
CmCleanupAndExit ();
|
||||
|
||||
return 0;
|
||||
|
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: aslcompiler.h - common include file
|
||||
* $Revision: 1.75 $
|
||||
* $Revision: 1.79 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -164,8 +164,8 @@ getopt (
|
||||
* Compiler versions and names
|
||||
*/
|
||||
|
||||
#define CompilerVersion "X2028"
|
||||
#define CompilerCreatorRevision 0x02002028 /* Acpi 2.0, Version # */
|
||||
#define CompilerVersion "X2031"
|
||||
#define CompilerCreatorRevision 0x02002031 /* Acpi 2.0, Version # */
|
||||
|
||||
#define CompilerId "Intel ACPI Component Architecture ASL Compiler"
|
||||
#define CompilerCopyright "Copyright (C) 2000, 2001 Intel Corporation"
|
||||
@ -440,7 +440,6 @@ CgAmlWriteWalk (
|
||||
UINT32 Level,
|
||||
void *Context);
|
||||
|
||||
|
||||
void
|
||||
CgGenerateOutput(
|
||||
void);
|
||||
@ -453,6 +452,13 @@ void
|
||||
CgWriteNode (
|
||||
ASL_PARSE_NODE *Node);
|
||||
|
||||
/*
|
||||
* aslmap
|
||||
*/
|
||||
|
||||
ACPI_OBJECT_TYPE8
|
||||
AslMapNamedOpcodeToDataType (
|
||||
UINT16 Opcode);
|
||||
|
||||
/*
|
||||
* asltransform - parse tree transformations
|
||||
@ -565,13 +571,25 @@ TrReleaseNode (
|
||||
/* Analyze */
|
||||
|
||||
ACPI_STATUS
|
||||
AnSemanticAnalysisWalkBegin (
|
||||
AnOtherSemanticAnalysisWalkBegin (
|
||||
ASL_PARSE_NODE *Node,
|
||||
UINT32 Level,
|
||||
void *Context);
|
||||
|
||||
ACPI_STATUS
|
||||
AnSemanticAnalysisWalkEnd (
|
||||
AnOtherSemanticAnalysisWalkEnd (
|
||||
ASL_PARSE_NODE *Node,
|
||||
UINT32 Level,
|
||||
void *Context);
|
||||
|
||||
ACPI_STATUS
|
||||
AnOperandTypecheckWalkBegin (
|
||||
ASL_PARSE_NODE *Node,
|
||||
UINT32 Level,
|
||||
void *Context);
|
||||
|
||||
ACPI_STATUS
|
||||
AnOperandTypecheckWalkEnd (
|
||||
ASL_PARSE_NODE *Node,
|
||||
UINT32 Level,
|
||||
void *Context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user