summaryrefslogtreecommitdiff
path: root/drivers/acpi/parser/psopcode.c
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2006-06-15 23:19:48 +0400
committerLen Brown <len.brown@intel.com>2006-06-15 23:19:48 +0400
commitb3899c6613160b18f79e4356184de55311302fe4 (patch)
tree4aa7945bac59cbe5bb5d863be2d4ded285d3e936 /drivers/acpi/parser/psopcode.c
parent553698f944ed715dfe023b4cef07601f0ce735f0 (diff)
parent4c90ece249992c7a2e3fc921e5cdb8eb92193067 (diff)
downloadlinux-b3899c6613160b18f79e4356184de55311302fe4.tar.xz
Pull acpica into release branch
Diffstat (limited to 'drivers/acpi/parser/psopcode.c')
-rw-r--r--drivers/acpi/parser/psopcode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/acpi/parser/psopcode.c b/drivers/acpi/parser/psopcode.c
index 11d6351ab8b2..4bd25e32769f 100644
--- a/drivers/acpi/parser/psopcode.c
+++ b/drivers/acpi/parser/psopcode.c
@@ -725,12 +725,13 @@ static const u8 acpi_gbl_long_op_index[NUM_EXTENDED_OPCODE] = {
const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode)
{
- ACPI_FUNCTION_NAME("ps_get_opcode_info");
+ ACPI_FUNCTION_NAME(ps_get_opcode_info);
/*
* Detect normal 8-bit opcode or extended 16-bit opcode
*/
if (!(opcode & 0xFF00)) {
+
/* Simple (8-bit) opcode: 0-255, can't index beyond table */
return (&acpi_gbl_aml_op_info
@@ -739,6 +740,7 @@ const struct acpi_opcode_info *acpi_ps_get_opcode_info(u16 opcode)
if (((opcode & 0xFF00) == AML_EXTENDED_OPCODE) &&
(((u8) opcode) <= MAX_EXTENDED_OPCODE)) {
+
/* Valid extended (16-bit) opcode */
return (&acpi_gbl_aml_op_info
@@ -779,7 +781,7 @@ char *acpi_ps_get_opcode_name(u16 opcode)
return (op->name);
#else
- return ("AE_NOT_CONFIGURED");
+ return ("OpcodeName unavailable");
#endif
}