mirror of https://github.com/acpica/acpica/
EFI/acpiexec: Add stubs for Ctrl+C signal handling
Currently we do not support console termination caused by Ctrl+C for EFI environment. Lv Zheng. Signed-off-by: Lv Zheng <lv.zheng@intel.com>
This commit is contained in:
parent
43cb45b8e1
commit
def0dcd048
|
@ -426,6 +426,7 @@
|
|||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -173,9 +173,11 @@ extern ACPI_CONNECTION_INFO AeMyContext;
|
|||
#define OSD_PRINT(lvl,fp) TEST_OUTPUT_LEVEL(lvl) {\
|
||||
AcpiOsPrintf PARAM_LIST(fp);}
|
||||
|
||||
#ifndef _GNU_EFI
|
||||
void ACPI_SYSTEM_XFACE
|
||||
AeCtrlCHandler (
|
||||
int Sig);
|
||||
#endif
|
||||
|
||||
ACPI_STATUS
|
||||
AeBuildLocalTables (
|
||||
|
|
|
@ -192,10 +192,12 @@ static char *TableEvents[] =
|
|||
#endif /* !ACPI_REDUCED_HARDWARE */
|
||||
|
||||
|
||||
static UINT32 SigintCount = 0;
|
||||
static AE_DEBUG_REGIONS AeRegions;
|
||||
|
||||
|
||||
#ifndef _GNU_EFI
|
||||
static UINT32 SigintCount = 0;
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* FUNCTION: AeCtrlCHandler
|
||||
|
@ -232,6 +234,7 @@ AeCtrlCHandler (
|
|||
(void) AcpiOsTerminate ();
|
||||
exit (0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
|
|
|
@ -530,7 +530,9 @@ main (
|
|||
|
||||
|
||||
ACPI_DEBUG_INITIALIZE (); /* For debug version only */
|
||||
#ifndef _GNU_EFI
|
||||
signal (SIGINT, AeCtrlCHandler);
|
||||
#endif
|
||||
|
||||
/* Init debug globals */
|
||||
|
||||
|
|
Loading…
Reference in New Issue