mirror of
https://github.com/acpica/acpica/
synced 2025-02-15 13:04:16 +03:00
Enhanced reserved name checking, added typechecking for _HID reserved
name date 2002.05.14.21.50.00; author rmoore1; state Exp;
This commit is contained in:
parent
df628a0b1e
commit
1ab3da67d3
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: aslopcode - AML opcode generation
|
||||
* $Revision: 1.42 $
|
||||
* $Revision: 1.43 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -419,7 +419,11 @@ OpcDoEisaId (
|
||||
}
|
||||
}
|
||||
|
||||
if (ACPI_SUCCESS (Status))
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
AslError (ASL_ERROR, ASL_MSG_INVALID_EISAID, Op, Op->Asl.Value.String);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Create ID big-endian first (bits are contiguous) */
|
||||
|
||||
@ -437,19 +441,19 @@ OpcDoEisaId (
|
||||
EisaId = AcpiUtDwordByteSwap (BigEndianId);
|
||||
}
|
||||
|
||||
/*
|
||||
* Morph the Op into an integer, regardless of whether there
|
||||
* was an error in the EISAID string
|
||||
*/
|
||||
Op->Asl.Value.Integer32 = EisaId;
|
||||
|
||||
/* Op is now an integer */
|
||||
|
||||
Op->Asl.CompileFlags &= ~NODE_COMPILE_TIME_CONST;
|
||||
Op->Asl.ParseOpcode = PARSEOP_INTEGER;
|
||||
(void) OpcSetOptimalIntegerSize (Op);
|
||||
UtSetParseOpName (Op);
|
||||
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
AslError (ASL_ERROR, ASL_MSG_INVALID_EISAID, Op, Op->Asl.ExternalName);
|
||||
}
|
||||
/* Op is now an integer */
|
||||
|
||||
UtSetParseOpName (Op);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user