mirror of
https://github.com/acpica/acpica/
synced 2025-02-06 08:34:19 +03:00
Some Lint changes; 16-bit changes
date 2002.04.15.22.46.00; author rmoore1; state Exp;
This commit is contained in:
parent
4f65359cd2
commit
dd27c53a16
@ -1,7 +1,7 @@
|
|||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
*
|
*
|
||||||
* Module Name: dbutils - AML debugger utilities
|
* Module Name: dbutils - AML debugger utilities
|
||||||
* $Revision: 1.52 $
|
* $Revision: 1.55 $
|
||||||
*
|
*
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
||||||
@ -119,9 +119,6 @@
|
|||||||
#include "acparser.h"
|
#include "acparser.h"
|
||||||
#include "amlcode.h"
|
#include "amlcode.h"
|
||||||
#include "acnamesp.h"
|
#include "acnamesp.h"
|
||||||
#include "acparser.h"
|
|
||||||
#include "acevents.h"
|
|
||||||
#include "acinterp.h"
|
|
||||||
#include "acdebug.h"
|
#include "acdebug.h"
|
||||||
#include "acdispat.h"
|
#include "acdispat.h"
|
||||||
|
|
||||||
@ -362,7 +359,7 @@ AcpiDbSecondPassParse (
|
|||||||
ACPI_PARSE_OBJECT *Root)
|
ACPI_PARSE_OBJECT *Root)
|
||||||
{
|
{
|
||||||
ACPI_PARSE_OBJECT *Op = Root;
|
ACPI_PARSE_OBJECT *Op = Root;
|
||||||
ACPI_PARSE2_OBJECT *Method;
|
ACPI_PARSE_OBJECT *Method;
|
||||||
ACPI_PARSE_OBJECT *SearchOp;
|
ACPI_PARSE_OBJECT *SearchOp;
|
||||||
ACPI_PARSE_OBJECT *StartOp;
|
ACPI_PARSE_OBJECT *StartOp;
|
||||||
ACPI_STATUS Status = AE_OK;
|
ACPI_STATUS Status = AE_OK;
|
||||||
@ -375,12 +372,13 @@ AcpiDbSecondPassParse (
|
|||||||
|
|
||||||
AcpiOsPrintf ("Pass two parse ....\n");
|
AcpiOsPrintf ("Pass two parse ....\n");
|
||||||
|
|
||||||
|
|
||||||
while (Op)
|
while (Op)
|
||||||
{
|
{
|
||||||
if (Op->Opcode == AML_METHOD_OP)
|
if (Op->Common.AmlOpcode == AML_METHOD_OP)
|
||||||
{
|
{
|
||||||
Method = (ACPI_PARSE2_OBJECT *) Op;
|
Method = Op;
|
||||||
|
|
||||||
|
/* Create a new walk state for the parse */
|
||||||
|
|
||||||
WalkState = AcpiDsCreateWalkState (TABLE_ID_DSDT,
|
WalkState = AcpiDsCreateWalkState (TABLE_ID_DSDT,
|
||||||
NULL, NULL, NULL);
|
NULL, NULL, NULL);
|
||||||
@ -389,33 +387,33 @@ AcpiDbSecondPassParse (
|
|||||||
return (AE_NO_MEMORY);
|
return (AE_NO_MEMORY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Init the Walk State */
|
||||||
|
|
||||||
WalkState->ParserState.Aml =
|
WalkState->ParserState.Aml =
|
||||||
WalkState->ParserState.AmlStart = Method->Data;
|
WalkState->ParserState.AmlStart = Method->Named.Data;
|
||||||
WalkState->ParserState.AmlEnd =
|
WalkState->ParserState.AmlEnd =
|
||||||
WalkState->ParserState.PkgEnd = Method->Data + Method->Length;
|
WalkState->ParserState.PkgEnd = Method->Named.Data + Method->Named.Length;
|
||||||
WalkState->ParserState.StartScope = Op;
|
WalkState->ParserState.StartScope = Op;
|
||||||
|
|
||||||
WalkState->DescendingCallback = AcpiDsLoad1BeginOp;
|
WalkState->DescendingCallback = AcpiDsLoad1BeginOp;
|
||||||
WalkState->AscendingCallback = AcpiDsLoad1EndOp;
|
WalkState->AscendingCallback = AcpiDsLoad1EndOp;
|
||||||
|
|
||||||
|
/* Perform the AML parse */
|
||||||
|
|
||||||
Status = AcpiPsParseAml (WalkState);
|
Status = AcpiPsParseAml (WalkState);
|
||||||
|
|
||||||
|
BaseAmlOffset = (Method->Common.Value.Arg)->Common.AmlOffset + 1;
|
||||||
BaseAmlOffset = (Method->Value.Arg)->AmlOffset + 1;
|
StartOp = (Method->Common.Value.Arg)->Common.Next;
|
||||||
StartOp = (Method->Value.Arg)->Next;
|
|
||||||
SearchOp = StartOp;
|
SearchOp = StartOp;
|
||||||
|
|
||||||
while (SearchOp)
|
while (SearchOp)
|
||||||
{
|
{
|
||||||
SearchOp->AmlOffset += BaseAmlOffset;
|
SearchOp->Common.AmlOffset += BaseAmlOffset;
|
||||||
SearchOp = AcpiPsGetDepthNext (StartOp, SearchOp);
|
SearchOp = AcpiPsGetDepthNext (StartOp, SearchOp);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Op->Opcode == AML_REGION_OP)
|
if (Op->Common.AmlOpcode == AML_REGION_OP)
|
||||||
{
|
{
|
||||||
/* TBD: [Investigate] this isn't quite the right thing to do! */
|
/* TBD: [Investigate] this isn't quite the right thing to do! */
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user