Deleted Added
full compact
exconfig.c (80062) exconfig.c (82367)
1/******************************************************************************
2 *
3 * Module Name: exconfig - Namespace reconfiguration (Load/Unload opcodes)
1/******************************************************************************
2 *
3 * Module Name: exconfig - Namespace reconfiguration (Load/Unload opcodes)
4 * $Revision: 36 $
4 * $Revision: 37 $
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

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

209
210 if ((!STRNCMP (TableHeader.Signature,
211 AcpiGbl_AcpiTableData[ACPI_TABLE_PSDT].Signature,
212 AcpiGbl_AcpiTableData[ACPI_TABLE_PSDT].SigLength)) &&
213 (!STRNCMP (TableHeader.Signature,
214 AcpiGbl_AcpiTableData[ACPI_TABLE_SSDT].Signature,
215 AcpiGbl_AcpiTableData[ACPI_TABLE_SSDT].SigLength)))
216 {
5 *
6 *****************************************************************************/
7
8/******************************************************************************
9 *
10 * 1. Copyright Notice
11 *
12 * Some or all of this work - Copyright (c) 1999, 2000, 2001, Intel Corp.

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

209
210 if ((!STRNCMP (TableHeader.Signature,
211 AcpiGbl_AcpiTableData[ACPI_TABLE_PSDT].Signature,
212 AcpiGbl_AcpiTableData[ACPI_TABLE_PSDT].SigLength)) &&
213 (!STRNCMP (TableHeader.Signature,
214 AcpiGbl_AcpiTableData[ACPI_TABLE_SSDT].Signature,
215 AcpiGbl_AcpiTableData[ACPI_TABLE_SSDT].SigLength)))
216 {
217 DEBUG_PRINTP (ACPI_ERROR,
218 ("Table has invalid signature [%4.4s], must be SSDT or PSDT\n",
217 ACPI_DEBUG_PRINT ((ACPI_DB_ERROR,
218 "Table has invalid signature [%4.4s], must be SSDT or PSDT\n",
219 TableHeader.Signature));
220 Status = AE_BAD_SIGNATURE;
221 goto Cleanup;
222 }
223
224 /* Create an object to be the table handle */
225
226 TableDesc = AcpiUtCreateInternalObject (INTERNAL_TYPE_REFERENCE);

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

388
389 case AML_LOAD_OP:
390
391 /* Get the region or field descriptor */
392
393 Status |= AcpiDsObjStackPopObject (&RegionDesc, WalkState);
394 if (ACPI_FAILURE (Status))
395 {
219 TableHeader.Signature));
220 Status = AE_BAD_SIGNATURE;
221 goto Cleanup;
222 }
223
224 /* Create an object to be the table handle */
225
226 TableDesc = AcpiUtCreateInternalObject (INTERNAL_TYPE_REFERENCE);

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

388
389 case AML_LOAD_OP:
390
391 /* Get the region or field descriptor */
392
393 Status |= AcpiDsObjStackPopObject (&RegionDesc, WalkState);
394 if (ACPI_FAILURE (Status))
395 {
396 DEBUG_PRINTP (ACPI_ERROR, ("bad operand(s) (Load) (%s)\n",
396 ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "bad operand(s) (Load) (%s)\n",
397 AcpiFormatException (Status)));
398
399 AcpiUtRemoveReference (RegionDesc);
400 return_ACPI_STATUS (Status);
401 }
402
403 Status = AcpiExLoadTableOp (RegionDesc, DdbHandle);
404 break;
405
406
407 case AML_UNLOAD_OP:
408
409 if (ACPI_FAILURE (Status))
410 {
397 AcpiFormatException (Status)));
398
399 AcpiUtRemoveReference (RegionDesc);
400 return_ACPI_STATUS (Status);
401 }
402
403 Status = AcpiExLoadTableOp (RegionDesc, DdbHandle);
404 break;
405
406
407 case AML_UNLOAD_OP:
408
409 if (ACPI_FAILURE (Status))
410 {
411 DEBUG_PRINTP (ACPI_ERROR, ("bad operand(s) (unload) (%s)\n",
411 ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "bad operand(s) (unload) (%s)\n",
412 AcpiFormatException (Status)));
413
414 return_ACPI_STATUS (Status);
415 }
416
417 Status = AcpiExUnloadTable (DdbHandle);
418 break;
419
420
421 default:
422
412 AcpiFormatException (Status)));
413
414 return_ACPI_STATUS (Status);
415 }
416
417 Status = AcpiExUnloadTable (DdbHandle);
418 break;
419
420
421 default:
422
423 DEBUG_PRINTP (ACPI_ERROR, ("bad opcode=%X\n", Opcode));
423 ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "bad opcode=%X\n", Opcode));
424 Status = AE_AML_BAD_OPCODE;
425 break;
426 }
427
428
429 return_ACPI_STATUS (Status);
430}
431
424 Status = AE_AML_BAD_OPCODE;
425 break;
426 }
427
428
429 return_ACPI_STATUS (Status);
430}
431