Rev 1498 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | /****************************************************************************** |
7 | /****************************************************************************** |
8 | * |
8 | * |
9 | * 1. Copyright Notice |
9 | * 1. Copyright Notice |
10 | * |
10 | * |
11 | * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
11 | * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
12 | * All rights reserved. |
12 | * All rights reserved. |
13 | * |
13 | * |
14 | * 2. License |
14 | * 2. License |
15 | * |
15 | * |
Line 398... | Line 398... | ||
398 | /* |
398 | /* |
399 | * Space ID must be one of the predefined IDs, or in the user-defined |
399 | * Space ID must be one of the predefined IDs, or in the user-defined |
400 | * range |
400 | * range |
401 | */ |
401 | */ |
402 | if ((RegionSpace >= ACPI_NUM_PREDEFINED_REGIONS) && |
402 | if ((RegionSpace >= ACPI_NUM_PREDEFINED_REGIONS) && |
403 | (RegionSpace < ACPI_USER_REGION_BEGIN)) |
403 | (RegionSpace < ACPI_USER_REGION_BEGIN) && |
- | 404 | (RegionSpace != ACPI_ADR_SPACE_DATA_TABLE)) |
|
404 | { |
405 | { |
405 | ACPI_ERROR ((AE_INFO, "Invalid AddressSpace type 0x%X", RegionSpace)); |
406 | ACPI_ERROR ((AE_INFO, "Invalid AddressSpace type 0x%X", RegionSpace)); |
406 | return_ACPI_STATUS (AE_AML_INVALID_SPACE_ID); |
407 | return_ACPI_STATUS (AE_AML_INVALID_SPACE_ID); |
407 | } |
408 | } |
Line 593... | Line 594... | ||
593 | 594 | ||
594 | ObjDesc->Method.AmlStart = AmlStart; |
595 | ObjDesc->Method.AmlStart = AmlStart; |
Line 595... | Line 596... | ||
595 | ObjDesc->Method.AmlLength = AmlLength; |
596 | ObjDesc->Method.AmlLength = AmlLength; |
596 | 597 | ||
597 | /* |
598 | /* |
598 | * Disassemble the method flags. Split off the Arg Count |
599 | * Disassemble the method flags. Split off the ArgCount, Serialized |
599 | * for efficiency |
600 | * flag, and SyncLevel for efficiency. |
600 | */ |
- | |
601 | MethodFlags = (UINT8) Operand[1]->Integer.Value; |
- | |
602 | 601 | */ |
|
Line 603... | Line 602... | ||
603 | ObjDesc->Method.MethodFlags = (UINT8) (MethodFlags & ~AML_METHOD_ARG_COUNT); |
602 | MethodFlags = (UINT8) Operand[1]->Integer.Value; |
604 | ObjDesc->Method.ParamCount = (UINT8) (MethodFlags & AML_METHOD_ARG_COUNT); |
603 | ObjDesc->Method.ParamCount = (UINT8) (MethodFlags & AML_METHOD_ARG_COUNT); |
605 | 604 | ||
606 | /* |
605 | /* |
607 | * Get the SyncLevel. If method is serialized, a mutex will be |
606 | * Get the SyncLevel. If method is serialized, a mutex will be |
608 | * created for this method when it is parsed. |
607 | * created for this method when it is parsed. |
- | 608 | */ |
|
- | 609 | if (MethodFlags & AML_METHOD_SERIALIZED) |
|
609 | */ |
610 | { |
610 | if (MethodFlags & AML_METHOD_SERIALIZED) |
611 | ObjDesc->Method.InfoFlags = ACPI_METHOD_SERIALIZED; |
611 | { |
612 | |
612 | /* |
613 | /* |
613 | * ACPI 1.0: SyncLevel = 0 |
614 | * ACPI 1.0: SyncLevel = 0 |