summaryrefslogtreecommitdiff
path: root/source/tools/acpihelp/ahmain.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2020-11-13 21:41:15 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2020-11-13 21:41:15 +0000
commit960614968e0da10b32875a57ea1e30cc9c85b5e0 (patch)
treeaaf48208a3fb6bc556d860f5100f5a26b92a4a96 /source/tools/acpihelp/ahmain.c
parente09636e66f40fad3b03a8dd4b86b1a371c435631 (diff)
Notes
Diffstat (limited to 'source/tools/acpihelp/ahmain.c')
-rw-r--r--source/tools/acpihelp/ahmain.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/source/tools/acpihelp/ahmain.c b/source/tools/acpihelp/ahmain.c
index 0d69385682b8d..86fcc8d38a7c1 100644
--- a/source/tools/acpihelp/ahmain.c
+++ b/source/tools/acpihelp/ahmain.c
@@ -160,7 +160,7 @@ AhDisplayUsage (
void);
#define AH_UTILITY_NAME "ACPI Help Utility"
-#define AH_SUPPORTED_OPTIONS "adeghikmopstuv^"
+#define AH_SUPPORTED_OPTIONS "adeghikmopstuvx^"
#if defined ACPI_OPTION
@@ -197,6 +197,7 @@ AhDisplayUsage (
ACPI_USAGE_TEXT ("\nACPI Values:\n");
ACPI_OPTION ("-e [HexValue]", "Decode ACPICA exception code");
ACPI_OPTION ("-o [HexValue]", "Decode hex AML opcode");
+ ACPI_OPTION ("-x [HexValue]", "Decode iASL exception code");
ACPI_USAGE_TEXT ("\nASL Names and Symbols (ACPI Source Language):\n");
ACPI_OPTION ("-k [Name/Prefix | *]", "Display ASL non-operator keyword(s)");
@@ -309,6 +310,11 @@ main (
DecodeType = AH_DISPLAY_UUIDS;
break;
+ case 'x':
+
+ DecodeType = AH_DECODE_ASL_EXCEPTION;
+ break;
+
case 'v': /* -v: (Version): signon already emitted, just exit */
switch (AcpiGbl_Optarg[0])
@@ -402,6 +408,11 @@ main (
AhDisplayDirectives ();
break;
+ case AH_DECODE_ASL_EXCEPTION:
+
+ AhDecodeAslException (Name);
+ break;
+
default:
if (!Name)