diff options
author | Bob Moore <robert.moore@intel.com> | 2006-01-27 16:43:00 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-31 03:25:09 -0500 |
commit | b8e4d89357fc434618a59c1047cac72641191805 (patch) | |
tree | ac97fcc6fdc277c682365900663872c96f2420bd /drivers/acpi/events/evevent.c | |
parent | 292dd876ee765c478b27c93cc51e93a558ed58bf (diff) |
[ACPI] ACPICA 20060127
Implemented support in the Resource Manager to allow
unresolved namestring references within resource package
objects for the _PRT method. This support is in addition
to the previously implemented unresolved reference
support within the AML parser. If the interpreter slack
mode is enabled (true on Linux unless acpi=strict),
these unresolved references will be passed through
to the caller as a NULL package entry.
http://bugzilla.kernel.org/show_bug.cgi?id=5741
Implemented and deployed new macros and functions for
error and warning messages across the subsystem. These
macros are simpler and generate less code than their
predecessors. The new macros ACPI_ERROR, ACPI_EXCEPTION,
ACPI_WARNING, and ACPI_INFO replace the ACPI_REPORT_*
macros.
Implemented the acpi_cpu_flags type to simplify host OS
integration of the Acquire/Release Lock OSL interfaces.
Suggested by Steven Rostedt and Andrew Morton.
Fixed a problem where Alias ASL operators are sometimes
not correctly resolved. causing AE_AML_INTERNAL
http://bugzilla.kernel.org/show_bug.cgi?id=5189
http://bugzilla.kernel.org/show_bug.cgi?id=5674
Fixed several problems with the implementation of the
ConcatenateResTemplate ASL operator. As per the ACPI
specification, zero length buffers are now treated as a
single EndTag. One-length buffers always cause a fatal
exception. Non-zero length buffers that do not end with
a full 2-byte EndTag cause a fatal exception.
Fixed a possible structure overwrite in the
AcpiGetObjectInfo external interface. (With assistance
from Thomas Renninger)
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/events/evevent.c')
-rw-r--r-- | drivers/acpi/events/evevent.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/drivers/acpi/events/evevent.c b/drivers/acpi/events/evevent.c index b380ae1044b7..c9ac05c4685f 100644 --- a/drivers/acpi/events/evevent.c +++ b/drivers/acpi/events/evevent.c | |||
@@ -73,7 +73,7 @@ acpi_status acpi_ev_initialize_events(void) | |||
73 | /* Make sure we have ACPI tables */ | 73 | /* Make sure we have ACPI tables */ |
74 | 74 | ||
75 | if (!acpi_gbl_DSDT) { | 75 | if (!acpi_gbl_DSDT) { |
76 | ACPI_REPORT_WARNING(("No ACPI tables present!\n")); | 76 | ACPI_WARNING((AE_INFO, "No ACPI tables present!")); |
77 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); | 77 | return_ACPI_STATUS(AE_NO_ACPI_TABLES); |
78 | } | 78 | } |
79 | 79 | ||
@@ -84,14 +84,15 @@ acpi_status acpi_ev_initialize_events(void) | |||
84 | */ | 84 | */ |
85 | status = acpi_ev_fixed_event_initialize(); | 85 | status = acpi_ev_fixed_event_initialize(); |
86 | if (ACPI_FAILURE(status)) { | 86 | if (ACPI_FAILURE(status)) { |
87 | ACPI_REPORT_ERROR(("Unable to initialize fixed events, %s\n", | 87 | ACPI_EXCEPTION((AE_INFO, status, |
88 | acpi_format_exception(status))); | 88 | "Unable to initialize fixed events")); |
89 | return_ACPI_STATUS(status); | 89 | return_ACPI_STATUS(status); |
90 | } | 90 | } |
91 | 91 | ||
92 | status = acpi_ev_gpe_initialize(); | 92 | status = acpi_ev_gpe_initialize(); |
93 | if (ACPI_FAILURE(status)) { | 93 | if (ACPI_FAILURE(status)) { |
94 | ACPI_REPORT_ERROR(("Unable to initialize general purpose events, %s\n", acpi_format_exception(status))); | 94 | ACPI_EXCEPTION((AE_INFO, status, |
95 | "Unable to initialize general purpose events")); | ||
95 | return_ACPI_STATUS(status); | 96 | return_ACPI_STATUS(status); |
96 | } | 97 | } |
97 | 98 | ||
@@ -162,7 +163,8 @@ acpi_status acpi_ev_install_xrupt_handlers(void) | |||
162 | 163 | ||
163 | status = acpi_ev_install_sci_handler(); | 164 | status = acpi_ev_install_sci_handler(); |
164 | if (ACPI_FAILURE(status)) { | 165 | if (ACPI_FAILURE(status)) { |
165 | ACPI_REPORT_ERROR(("Unable to install System Control Interrupt Handler, %s\n", acpi_format_exception(status))); | 166 | ACPI_EXCEPTION((AE_INFO, status, |
167 | "Unable to install System Control Interrupt handler")); | ||
166 | return_ACPI_STATUS(status); | 168 | return_ACPI_STATUS(status); |
167 | } | 169 | } |
168 | 170 | ||
@@ -170,7 +172,8 @@ acpi_status acpi_ev_install_xrupt_handlers(void) | |||
170 | 172 | ||
171 | status = acpi_ev_init_global_lock_handler(); | 173 | status = acpi_ev_init_global_lock_handler(); |
172 | if (ACPI_FAILURE(status)) { | 174 | if (ACPI_FAILURE(status)) { |
173 | ACPI_REPORT_ERROR(("Unable to initialize Global Lock handler, %s\n", acpi_format_exception(status))); | 175 | ACPI_EXCEPTION((AE_INFO, status, |
176 | "Unable to initialize Global Lock handler")); | ||
174 | return_ACPI_STATUS(status); | 177 | return_ACPI_STATUS(status); |
175 | } | 178 | } |
176 | 179 | ||
@@ -304,7 +307,9 @@ static u32 acpi_ev_fixed_event_dispatch(u32 event) | |||
304 | enable_register_id, 0, | 307 | enable_register_id, 0, |
305 | ACPI_MTX_DO_NOT_LOCK); | 308 | ACPI_MTX_DO_NOT_LOCK); |
306 | 309 | ||
307 | ACPI_REPORT_ERROR(("No installed handler for fixed event [%08X]\n", event)); | 310 | ACPI_ERROR((AE_INFO, |
311 | "No installed handler for fixed event [%08X]", | ||
312 | event)); | ||
308 | 313 | ||
309 | return (ACPI_INTERRUPT_NOT_HANDLED); | 314 | return (ACPI_INTERRUPT_NOT_HANDLED); |
310 | } | 315 | } |