aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/excreate.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/acpi/acpica/excreate.c')
-rw-r--r--drivers/acpi/acpica/excreate.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/acpi/acpica/excreate.c b/drivers/acpi/acpica/excreate.c
index 3c61b48c73f5..110711afada8 100644
--- a/drivers/acpi/acpica/excreate.c
+++ b/drivers/acpi/acpica/excreate.c
@@ -5,7 +5,7 @@
5 *****************************************************************************/ 5 *****************************************************************************/
6 6
7/* 7/*
8 * Copyright (C) 2000 - 2010, Intel Corp. 8 * Copyright (C) 2000 - 2011, Intel Corp.
9 * All rights reserved. 9 * All rights reserved.
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
@@ -305,7 +305,8 @@ acpi_ex_create_region(u8 * aml_start,
305 * range 305 * range
306 */ 306 */
307 if ((region_space >= ACPI_NUM_PREDEFINED_REGIONS) && 307 if ((region_space >= ACPI_NUM_PREDEFINED_REGIONS) &&
308 (region_space < ACPI_USER_REGION_BEGIN)) { 308 (region_space < ACPI_USER_REGION_BEGIN) &&
309 (region_space != ACPI_ADR_SPACE_DATA_TABLE)) {
309 ACPI_ERROR((AE_INFO, "Invalid AddressSpace type 0x%X", 310 ACPI_ERROR((AE_INFO, "Invalid AddressSpace type 0x%X",
310 region_space)); 311 region_space));
311 return_ACPI_STATUS(AE_AML_INVALID_SPACE_ID); 312 return_ACPI_STATUS(AE_AML_INVALID_SPACE_ID);
@@ -482,13 +483,11 @@ acpi_ex_create_method(u8 * aml_start,
482 obj_desc->method.aml_length = aml_length; 483 obj_desc->method.aml_length = aml_length;
483 484
484 /* 485 /*
485 * Disassemble the method flags. Split off the Arg Count 486 * Disassemble the method flags. Split off the arg_count, Serialized
486 * for efficiency 487 * flag, and sync_level for efficiency.
487 */ 488 */
488 method_flags = (u8) operand[1]->integer.value; 489 method_flags = (u8) operand[1]->integer.value;
489 490
490 obj_desc->method.method_flags =
491 (u8) (method_flags & ~AML_METHOD_ARG_COUNT);
492 obj_desc->method.param_count = 491 obj_desc->method.param_count =
493 (u8) (method_flags & AML_METHOD_ARG_COUNT); 492 (u8) (method_flags & AML_METHOD_ARG_COUNT);
494 493
@@ -497,6 +496,8 @@ acpi_ex_create_method(u8 * aml_start,
497 * created for this method when it is parsed. 496 * created for this method when it is parsed.
498 */ 497 */
499 if (method_flags & AML_METHOD_SERIALIZED) { 498 if (method_flags & AML_METHOD_SERIALIZED) {
499 obj_desc->method.info_flags = ACPI_METHOD_SERIALIZED;
500
500 /* 501 /*
501 * ACPI 1.0: sync_level = 0 502 * ACPI 1.0: sync_level = 0
502 * ACPI 2.0: sync_level = sync_level in method declaration 503 * ACPI 2.0: sync_level = sync_level in method declaration