diff options
author | Bob Moore <robert.moore@intel.com> | 2006-10-03 00:00:00 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-04-01 01:26:39 -0500 |
commit | 8313524a0d466f451a62709aaedf988d8257b21c (patch) | |
tree | d612fc796ae07d8a39542c95eec0f5169c9f64eb /drivers/acpi/dispatcher | |
parent | ea936b78f46cbe089a4ac363e1682dee7d427096 (diff) |
ACPI: ACPICA 20060310
Tagged all external interfaces to the subsystem with the
new ACPI_EXPORT_SYMBOL macro. This macro can be defined
as necessary to assist kernel integration. For Linux,
the macro resolves to the EXPORT_SYMBOL macro. The default
definition is NULL.
Added the ACPI_THREAD_ID type for the return value from
acpi_os_get_thread_id(). This allows the host to define this
as necessary to simplify kernel integration. The default
definition is ACPI_NATIVE_UINT.
Valery Podrezov fixed two interpreter problems related
to error processing, the deletion of objects, and placing
invalid pointers onto the internal operator result stack.
http://bugzilla.kernel.org/show_bug.cgi?id=6028
http://bugzilla.kernel.org/show_bug.cgi?id=6151
Increased the reference count threshold where a warning is
emitted for large reference counts in order to eliminate
unnecessary warnings on systems with large namespaces
(especially 64-bit.) Increased the value from 0x400
to 0x800.
Due to universal disagreement as to the meaning of the
'c' in the calloc() function, the ACPI_MEM_CALLOCATE
macro has been renamed to ACPI_ALLOCATE_ZEROED so that the
purpose of the interface is 'clear'. ACPI_MEM_ALLOCATE and
ACPI_MEM_FREE are renamed to ACPI_ALLOCATE and ACPI_FREE.
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/dispatcher')
-rw-r--r-- | drivers/acpi/dispatcher/dsmthdat.c | 2 | ||||
-rw-r--r-- | drivers/acpi/dispatcher/dsobject.c | 9 | ||||
-rw-r--r-- | drivers/acpi/dispatcher/dsutils.c | 2 | ||||
-rw-r--r-- | drivers/acpi/dispatcher/dswload.c | 1 | ||||
-rw-r--r-- | drivers/acpi/dispatcher/dswstate.c | 8 |
5 files changed, 10 insertions, 12 deletions
diff --git a/drivers/acpi/dispatcher/dsmthdat.c b/drivers/acpi/dispatcher/dsmthdat.c index f7cb5170aa11..2ed48439835d 100644 --- a/drivers/acpi/dispatcher/dsmthdat.c +++ b/drivers/acpi/dispatcher/dsmthdat.c | |||
@@ -81,7 +81,7 @@ acpi_ds_method_data_get_type(u16 opcode, | |||
81 | * special data types. | 81 | * special data types. |
82 | * | 82 | * |
83 | * NOTES: walk_state fields are initialized to zero by the | 83 | * NOTES: walk_state fields are initialized to zero by the |
84 | * ACPI_MEM_CALLOCATE(). | 84 | * ACPI_ALLOCATE_ZEROED(). |
85 | * | 85 | * |
86 | * A pseudo-Namespace Node is assigned to each argument and local | 86 | * A pseudo-Namespace Node is assigned to each argument and local |
87 | * so that ref_of() can return a pointer to the Node. | 87 | * so that ref_of() can return a pointer to the Node. |
diff --git a/drivers/acpi/dispatcher/dsobject.c b/drivers/acpi/dispatcher/dsobject.c index 1f2d0c6ef36c..ce54715f13ad 100644 --- a/drivers/acpi/dispatcher/dsobject.c +++ b/drivers/acpi/dispatcher/dsobject.c | |||
@@ -245,7 +245,7 @@ acpi_ds_build_internal_buffer_obj(struct acpi_walk_state *walk_state, | |||
245 | "Buffer defined with zero length in AML, creating\n")); | 245 | "Buffer defined with zero length in AML, creating\n")); |
246 | } else { | 246 | } else { |
247 | obj_desc->buffer.pointer = | 247 | obj_desc->buffer.pointer = |
248 | ACPI_MEM_CALLOCATE(obj_desc->buffer.length); | 248 | ACPI_ALLOCATE_ZEROED(obj_desc->buffer.length); |
249 | if (!obj_desc->buffer.pointer) { | 249 | if (!obj_desc->buffer.pointer) { |
250 | acpi_ut_delete_object_desc(obj_desc); | 250 | acpi_ut_delete_object_desc(obj_desc); |
251 | return_ACPI_STATUS(AE_NO_MEMORY); | 251 | return_ACPI_STATUS(AE_NO_MEMORY); |
@@ -341,9 +341,10 @@ acpi_ds_build_internal_package_obj(struct acpi_walk_state *walk_state, | |||
341 | * individual objects). Add an extra pointer slot so | 341 | * individual objects). Add an extra pointer slot so |
342 | * that the list is always null terminated. | 342 | * that the list is always null terminated. |
343 | */ | 343 | */ |
344 | obj_desc->package.elements = ACPI_MEM_CALLOCATE(((acpi_size) obj_desc-> | 344 | obj_desc->package.elements = ACPI_ALLOCATE_ZEROED(((acpi_size) |
345 | package.count + | 345 | obj_desc->package. |
346 | 1) * sizeof(void *)); | 346 | count + |
347 | 1) * sizeof(void *)); | ||
347 | 348 | ||
348 | if (!obj_desc->package.elements) { | 349 | if (!obj_desc->package.elements) { |
349 | acpi_ut_delete_object_desc(obj_desc); | 350 | acpi_ut_delete_object_desc(obj_desc); |
diff --git a/drivers/acpi/dispatcher/dsutils.c b/drivers/acpi/dispatcher/dsutils.c index 3fbe17ebef5a..ab24aa88e2fa 100644 --- a/drivers/acpi/dispatcher/dsutils.c +++ b/drivers/acpi/dispatcher/dsutils.c | |||
@@ -577,7 +577,7 @@ acpi_ds_create_operand(struct acpi_walk_state *walk_state, | |||
577 | 577 | ||
578 | /* Free the namestring created above */ | 578 | /* Free the namestring created above */ |
579 | 579 | ||
580 | ACPI_MEM_FREE(name_string); | 580 | ACPI_FREE(name_string); |
581 | 581 | ||
582 | /* Check status from the lookup */ | 582 | /* Check status from the lookup */ |
583 | 583 | ||
diff --git a/drivers/acpi/dispatcher/dswload.c b/drivers/acpi/dispatcher/dswload.c index 02b03126e14e..1ad7870101fb 100644 --- a/drivers/acpi/dispatcher/dswload.c +++ b/drivers/acpi/dispatcher/dswload.c | |||
@@ -1113,7 +1113,6 @@ acpi_status acpi_ds_load2_end_op(struct acpi_walk_state *walk_state) | |||
1113 | ACPI_NS_DONT_OPEN_SCOPE, walk_state, | 1113 | ACPI_NS_DONT_OPEN_SCOPE, walk_state, |
1114 | &(new_node)); | 1114 | &(new_node)); |
1115 | if (ACPI_SUCCESS(status)) { | 1115 | if (ACPI_SUCCESS(status)) { |
1116 | |||
1117 | /* | 1116 | /* |
1118 | * Make sure that what we found is indeed a method | 1117 | * Make sure that what we found is indeed a method |
1119 | * We didn't search for a method on purpose, to see if the name | 1118 | * We didn't search for a method on purpose, to see if the name |
diff --git a/drivers/acpi/dispatcher/dswstate.c b/drivers/acpi/dispatcher/dswstate.c index 5bc340b1b286..d2846ffc9773 100644 --- a/drivers/acpi/dispatcher/dswstate.c +++ b/drivers/acpi/dispatcher/dswstate.c | |||
@@ -66,7 +66,6 @@ void *acpi_ds_obj_stack_get_value(u32 index, | |||
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | #ifdef ACPI_FUTURE_USAGE | 68 | #ifdef ACPI_FUTURE_USAGE |
69 | |||
70 | /******************************************************************************* | 69 | /******************************************************************************* |
71 | * | 70 | * |
72 | * FUNCTION: acpi_ds_result_remove | 71 | * FUNCTION: acpi_ds_result_remove |
@@ -128,7 +127,6 @@ acpi_ds_result_remove(union acpi_operand_object **object, | |||
128 | 127 | ||
129 | return (AE_OK); | 128 | return (AE_OK); |
130 | } | 129 | } |
131 | |||
132 | #endif /* ACPI_FUTURE_USAGE */ | 130 | #endif /* ACPI_FUTURE_USAGE */ |
133 | 131 | ||
134 | /******************************************************************************* | 132 | /******************************************************************************* |
@@ -645,7 +643,7 @@ struct acpi_walk_state *acpi_ds_create_walk_state(acpi_owner_id owner_id, | |||
645 | 643 | ||
646 | ACPI_FUNCTION_TRACE("ds_create_walk_state"); | 644 | ACPI_FUNCTION_TRACE("ds_create_walk_state"); |
647 | 645 | ||
648 | walk_state = ACPI_MEM_CALLOCATE(sizeof(struct acpi_walk_state)); | 646 | walk_state = ACPI_ALLOCATE_ZEROED(sizeof(struct acpi_walk_state)); |
649 | if (!walk_state) { | 647 | if (!walk_state) { |
650 | return_PTR(NULL); | 648 | return_PTR(NULL); |
651 | } | 649 | } |
@@ -668,7 +666,7 @@ struct acpi_walk_state *acpi_ds_create_walk_state(acpi_owner_id owner_id, | |||
668 | 666 | ||
669 | status = acpi_ds_result_stack_push(walk_state); | 667 | status = acpi_ds_result_stack_push(walk_state); |
670 | if (ACPI_FAILURE(status)) { | 668 | if (ACPI_FAILURE(status)) { |
671 | ACPI_MEM_FREE(walk_state); | 669 | ACPI_FREE(walk_state); |
672 | return_PTR(NULL); | 670 | return_PTR(NULL); |
673 | } | 671 | } |
674 | 672 | ||
@@ -859,7 +857,7 @@ void acpi_ds_delete_walk_state(struct acpi_walk_state *walk_state) | |||
859 | acpi_ut_delete_generic_state(state); | 857 | acpi_ut_delete_generic_state(state); |
860 | } | 858 | } |
861 | 859 | ||
862 | ACPI_MEM_FREE(walk_state); | 860 | ACPI_FREE(walk_state); |
863 | return_VOID; | 861 | return_VOID; |
864 | } | 862 | } |
865 | 863 | ||