mirror of
https://github.com/acpica/acpica/
synced 2025-02-24 09:24:08 +03:00
Support for ACPI 2.0 object conversion ASL operators
date 2001.07.11.17.28.00; author rmoore1; state Exp;
This commit is contained in:
parent
a4e2e68136
commit
703decfdd8
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: exmonad - ACPI AML execution for monadic (1 operand) operators
|
||||
* $Revision: 1.102 $
|
||||
* $Revision: 1.103 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -635,10 +635,7 @@ AcpiExMonadic2R (
|
||||
/*
|
||||
* ACPI 2.0 Opcodes
|
||||
*/
|
||||
case AML_TO_BUFFER_OP:
|
||||
case AML_TO_DECSTRING_OP:
|
||||
case AML_TO_HEXSTRING_OP:
|
||||
case AML_TO_INTEGER_OP:
|
||||
|
||||
DEBUG_PRINTP (ACPI_ERROR, ("%s is not implemented\n",
|
||||
AcpiPsGetOpcodeName (Opcode)));
|
||||
@ -647,6 +644,18 @@ AcpiExMonadic2R (
|
||||
break;
|
||||
|
||||
|
||||
case AML_TO_HEXSTRING_OP:
|
||||
Status = AcpiExConvertToString (ObjDesc, &RetDesc, WalkState);
|
||||
break;
|
||||
|
||||
case AML_TO_BUFFER_OP:
|
||||
Status = AcpiExConvertToBuffer (ObjDesc, &RetDesc, WalkState);
|
||||
break;
|
||||
|
||||
case AML_TO_INTEGER_OP:
|
||||
Status = AcpiExConvertToInteger (ObjDesc, &RetDesc, WalkState);
|
||||
break;
|
||||
|
||||
|
||||
/*
|
||||
* These are obsolete opcodes
|
||||
|
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: exdyadic - ACPI AML execution for dyadic (2-operand) operators
|
||||
* $Revision: 1.80 $
|
||||
* $Revision: 1.81 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -675,15 +675,15 @@ AcpiExDyadic2R (
|
||||
switch (ObjDesc->Common.Type)
|
||||
{
|
||||
case ACPI_TYPE_INTEGER:
|
||||
Status = AcpiExConvertToInteger (&ObjDesc2, WalkState);
|
||||
Status = AcpiExConvertToInteger (ObjDesc2, &ObjDesc2, WalkState);
|
||||
break;
|
||||
|
||||
case ACPI_TYPE_STRING:
|
||||
Status = AcpiExConvertToString (&ObjDesc2, WalkState);
|
||||
Status = AcpiExConvertToString (ObjDesc2, &ObjDesc2, WalkState);
|
||||
break;
|
||||
|
||||
case ACPI_TYPE_BUFFER:
|
||||
Status = AcpiExConvertToBuffer (&ObjDesc2, WalkState);
|
||||
Status = AcpiExConvertToBuffer (ObjDesc2, &ObjDesc2, WalkState);
|
||||
break;
|
||||
|
||||
default:
|
||||
@ -713,8 +713,7 @@ AcpiExDyadic2R (
|
||||
|
||||
case AML_TO_STRING_OP: /* ACPI 2.0 */
|
||||
|
||||
Status = AE_NOT_IMPLEMENTED;
|
||||
goto Cleanup;
|
||||
Status = AcpiExConvertToString (ObjDesc, &RetDesc, WalkState);
|
||||
break;
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user