mirror of
https://github.com/acpica/acpica/
synced 2025-01-18 15:39:18 +03:00
DefFieldOp IS a field opcode (bug fix)
date 2000.02.04.22.49.00; author rmoore1; state Exp;
This commit is contained in:
parent
722244ada6
commit
586931e945
@ -339,6 +339,7 @@ PsIsFieldOp (
|
||||
UINT32 Opcode)
|
||||
{
|
||||
return (Opcode == AML_CreateFieldOp
|
||||
|| Opcode == AML_DefFieldOp
|
||||
|| Opcode == AML_IndexFieldOp
|
||||
|| Opcode == AML_BankFieldOp);
|
||||
}
|
||||
@ -380,17 +381,6 @@ PsToBytelistOp (
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Cast away const-ness
|
||||
*/
|
||||
ACPI_GENERIC_OP*
|
||||
PsToNonconstOp (
|
||||
ACPI_GENERIC_OP *Op)
|
||||
{
|
||||
return (ACPI_GENERIC_OP*) Op;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Get op's name (4-byte name segment) or 0 if unnamed
|
||||
*/
|
||||
@ -398,7 +388,7 @@ UINT32
|
||||
PsGetName (
|
||||
ACPI_GENERIC_OP *Op)
|
||||
{
|
||||
ACPI_NAMED_OP *Named = PsToNamedOp (PsToNonconstOp (Op));
|
||||
ACPI_NAMED_OP *Named = PsToNamedOp (Op);
|
||||
|
||||
return (Named ? Named->Name : 0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user