diff options
author | Bob Moore <robert.moore@intel.com> | 2006-05-12 17:12:00 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-06-14 02:34:48 -0400 |
commit | 958dd242b691f64ab4632b4903dbb1e16fee8269 (patch) | |
tree | ddf4932fb4e3023dd0d1914571f17f2e3b03978d /drivers/acpi/executer/exconfig.c | |
parent | b229cf92eee616c7cb5ad8cdb35a19b119f00bc8 (diff) |
ACPI: ACPICA 20060512
Replaced the acpi_os_queue_for_execution() with a new
interface named acpi_os_execute(). The major difference is
that the new interface does not have a Priority parameter,
this appeared to be useless and has been replaced by
a Type parameter. The Type tells the OS what type of
execution is being requested, such as global lock handler,
notify handler, GPE handler, etc. This allows the host
to queue and execute the request as appropriate for the
request type, possibly using different work queues and
different priorities for the various request types. This
enables fixes for multithreading deadlock problems such as
http://bugzilla.kernel.org/show_bug.cgi?id=5534
(Alexey Starikovskiy and Bob Moore)
Fixed a possible memory leak associated with the
support for the so-called "implicit return" ACPI
extension. Reported by FreeBSD (Fiodor Suietov)
http://bugzilla.kernel.org/show_bug.cgi?id=6514
Fixed a problem with the Load() operator where a table
load from an operation region could overwrite an internal
table buffer by up to 7 bytes and cause alignment faults
on IPF systems. (With assistance from Luming Yu)
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/executer/exconfig.c')
-rw-r--r-- | drivers/acpi/executer/exconfig.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/drivers/acpi/executer/exconfig.c b/drivers/acpi/executer/exconfig.c index 9c46f3338640..9ae3cb55979b 100644 --- a/drivers/acpi/executer/exconfig.c +++ b/drivers/acpi/executer/exconfig.c | |||
@@ -298,6 +298,7 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc, | |||
298 | struct acpi_table_header *table_ptr = NULL; | 298 | struct acpi_table_header *table_ptr = NULL; |
299 | acpi_physical_address address; | 299 | acpi_physical_address address; |
300 | struct acpi_table_header table_header; | 300 | struct acpi_table_header table_header; |
301 | acpi_integer temp; | ||
301 | u32 i; | 302 | u32 i; |
302 | 303 | ||
303 | ACPI_FUNCTION_TRACE(ex_load_op); | 304 | ACPI_FUNCTION_TRACE(ex_load_op); |
@@ -326,7 +327,7 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc, | |||
326 | 327 | ||
327 | address = obj_desc->region.address; | 328 | address = obj_desc->region.address; |
328 | 329 | ||
329 | /* Get the table length from the table header */ | 330 | /* Get part of the table header to get the table length */ |
330 | 331 | ||
331 | table_header.length = 0; | 332 | table_header.length = 0; |
332 | for (i = 0; i < 8; i++) { | 333 | for (i = 0; i < 8; i++) { |
@@ -334,11 +335,14 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc, | |||
334 | acpi_ev_address_space_dispatch(obj_desc, ACPI_READ, | 335 | acpi_ev_address_space_dispatch(obj_desc, ACPI_READ, |
335 | (acpi_physical_address) | 336 | (acpi_physical_address) |
336 | (i + address), 8, | 337 | (i + address), 8, |
337 | ((u8 *) & | 338 | &temp); |
338 | table_header) + i); | ||
339 | if (ACPI_FAILURE(status)) { | 339 | if (ACPI_FAILURE(status)) { |
340 | return_ACPI_STATUS(status); | 340 | return_ACPI_STATUS(status); |
341 | } | 341 | } |
342 | |||
343 | /* Get the one valid byte of the returned 64-bit value */ | ||
344 | |||
345 | ACPI_CAST_PTR(u8, &table_header)[i] = (u8) temp; | ||
342 | } | 346 | } |
343 | 347 | ||
344 | /* Sanity check the table length */ | 348 | /* Sanity check the table length */ |
@@ -361,11 +365,14 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc, | |||
361 | acpi_ev_address_space_dispatch(obj_desc, ACPI_READ, | 365 | acpi_ev_address_space_dispatch(obj_desc, ACPI_READ, |
362 | (acpi_physical_address) | 366 | (acpi_physical_address) |
363 | (i + address), 8, | 367 | (i + address), 8, |
364 | ((u8 *) table_ptr + | 368 | &temp); |
365 | i)); | ||
366 | if (ACPI_FAILURE(status)) { | 369 | if (ACPI_FAILURE(status)) { |
367 | goto cleanup; | 370 | goto cleanup; |
368 | } | 371 | } |
372 | |||
373 | /* Get the one valid byte of the returned 64-bit value */ | ||
374 | |||
375 | ACPI_CAST_PTR(u8, table_ptr)[i] = (u8) temp; | ||
369 | } | 376 | } |
370 | break; | 377 | break; |
371 | 378 | ||