summaryrefslogtreecommitdiff
path: root/source/components/debugger/dbinput.c
diff options
context:
space:
mode:
authorSaket Dumbre <97769119+sacdintel@users.noreply.github.com>2023-05-10 11:22:48 -0700
committerGitHub <noreply@github.com>2023-05-10 11:22:48 -0700
commit71abb8cff8e8adaef61f0e11eed42dda64892c1d (patch)
treeef5aed5eb59edaa93cb4c41f3f7ea501350b91ee /source/components/debugger/dbinput.c
parent3a526a6d94d3ab6798c95f62ebaff36f5344586a (diff)
parentef7cf185a046d76119b631f16e7c991543c80edc (diff)
downloadacpica-71abb8cff8e8adaef61f0e11eed42dda64892c1d.tar.gz
Merge pull request #864 from jmarinho/master
Add support for Interrupt in acpiexec
Diffstat (limited to 'source/components/debugger/dbinput.c')
-rw-r--r--source/components/debugger/dbinput.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/components/debugger/dbinput.c b/source/components/debugger/dbinput.c
index 5e5c62893..d98c24870 100644
--- a/source/components/debugger/dbinput.c
+++ b/source/components/debugger/dbinput.c
@@ -264,6 +264,7 @@ enum AcpiExDebuggerCommands
CMD_THREADS,
CMD_TEST,
+ CMD_INTERRUPT,
#endif
};
@@ -345,6 +346,7 @@ static const ACPI_DB_COMMAND_INFO AcpiGbl_DbCommands[] =
{"THREADS", 3},
{"TEST", 1},
+ {"INTERRUPT", 1},
#endif
{NULL, 0}
};
@@ -461,6 +463,7 @@ static const ACPI_DB_COMMAND_HELP AcpiGbl_DbCommandHelp[] =
{1, " Gpes", "Display info on all GPE devices\n"},
{1, " Sci", "Generate an SCI\n"},
{1, " Sleep [SleepState]", "Simulate sleep/wake sequence(s) (0-5)\n"},
+ {1, " Interrupt <GSIV>", "Simulate an interrupt\n"},
#endif
{0, NULL, NULL}
};
@@ -1263,6 +1266,11 @@ AcpiDbCommandDispatch (
AcpiOsPrintf ("Event command not implemented\n");
break;
+ case CMD_INTERRUPT:
+
+ AcpiDbGenerateInterrupt (AcpiGbl_DbArgs[1]);
+ break;
+
case CMD_GPE:
AcpiDbGenerateGpe (AcpiGbl_DbArgs[1], AcpiGbl_DbArgs[2]);