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:
Lv Zheng 2016-05-23 23:54:44 +08:00
parent 43cb45b8e1
commit def0dcd048
4 changed files with 9 additions and 1 deletions

View File

@ -426,6 +426,7 @@
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <signal.h>
#include <sys/stat.h>
#endif

View File

@ -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 (

View File

@ -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
/******************************************************************************

View File

@ -530,7 +530,9 @@ main (
ACPI_DEBUG_INITIALIZE (); /* For debug version only */
#ifndef _GNU_EFI
signal (SIGINT, AeCtrlCHandler);
#endif
/* Init debug globals */