Deleted Added
sdiff udiff text old ( 193529 ) new ( 199337 )
full compact
1
2/******************************************************************************
3 *
4 * Module Name: exoparg1 - AML execution - opcodes with 1 argument
5 *
6 *****************************************************************************/
7
8/******************************************************************************

--- 169 unchanged lines hidden (view full) ---

178 /* Examine the AML opcode */
179
180 switch (WalkState->Opcode)
181 {
182 case AML_TIMER_OP: /* Timer () */
183
184 /* Create a return object of type Integer */
185
186 ReturnDesc = AcpiUtCreateIntegerObject (AcpiOsGetTimer ());
187 if (!ReturnDesc)
188 {
189 Status = AE_NO_MEMORY;
190 goto Cleanup;
191 }
192 break;
193
194 default: /* Unknown opcode */
195
196 ACPI_ERROR ((AE_INFO, "Unknown AML opcode %X",
197 WalkState->Opcode));
198 Status = AE_AML_BAD_OPCODE;
199 break;

--- 527 unchanged lines hidden (view full) ---

727
728
729 /* Examine the AML opcode */
730
731 switch (WalkState->Opcode)
732 {
733 case AML_LNOT_OP: /* LNot (Operand) */
734
735 ReturnDesc = AcpiUtCreateIntegerObject ((UINT64) 0);
736 if (!ReturnDesc)
737 {
738 Status = AE_NO_MEMORY;
739 goto Cleanup;
740 }
741
742 /*
743 * Set result to ONES (TRUE) if Value == 0. Note:

--- 88 unchanged lines hidden (view full) ---

832 Status = AcpiExResolveMultiple (WalkState, Operand[0], &Type, NULL);
833 if (ACPI_FAILURE (Status))
834 {
835 goto Cleanup;
836 }
837
838 /* Allocate a descriptor to hold the type. */
839
840 ReturnDesc = AcpiUtCreateIntegerObject ((UINT64) Type);
841 if (!ReturnDesc)
842 {
843 Status = AE_NO_MEMORY;
844 goto Cleanup;
845 }
846 break;
847
848
849 case AML_SIZE_OF_OP: /* SizeOf (SourceObject) */
850
851 /*
852 * Note: The operand is not resolved at this point because we want to
853 * get the associated object, not its value.

--- 55 unchanged lines hidden (view full) ---

909 {
910 goto Cleanup;
911 }
912
913 /*
914 * Now that we have the size of the object, create a result
915 * object to hold the value
916 */
917 ReturnDesc = AcpiUtCreateIntegerObject (Value);
918 if (!ReturnDesc)
919 {
920 Status = AE_NO_MEMORY;
921 goto Cleanup;
922 }
923 break;
924
925
926 case AML_REF_OF_OP: /* RefOf (SourceObject) */
927
928 Status = AcpiExGetObjectReference (Operand[0], &ReturnDesc, WalkState);
929 if (ACPI_FAILURE (Status))
930 {

--- 148 unchanged lines hidden (view full) ---

1079
1080 /*
1081 * Create a new object that contains one element of the
1082 * buffer -- the element pointed to by the index.
1083 *
1084 * NOTE: index into a buffer is NOT a pointer to a
1085 * sub-buffer of the main buffer, it is only a pointer to a
1086 * single element (byte) of the buffer!
1087 *
1088 * Since we are returning the value of the buffer at the
1089 * indexed location, we don't need to add an additional
1090 * reference to the buffer itself.
1091 */
1092 ReturnDesc = AcpiUtCreateIntegerObject ((UINT64)
1093 TempDesc->Buffer.Pointer[Operand[0]->Reference.Value]);
1094 if (!ReturnDesc)
1095 {
1096 Status = AE_NO_MEMORY;
1097 goto Cleanup;
1098 }
1099 break;
1100
1101
1102 case ACPI_TYPE_PACKAGE:
1103
1104 /*
1105 * Return the referenced element of the package. We must
1106 * add another reference to the referenced object, however.

--- 77 unchanged lines hidden ---