Message type for SIGS_SIGNAL_RECEIVED.

Change-Id: I5c13ff06e0203a98d4087829308d03020f302542
This commit is contained in:
Lionel Sambuc 2014-07-25 16:08:01 +02:00
parent f45c6b86cb
commit 93b1819dac
5 changed files with 11 additions and 4 deletions

View file

@ -586,7 +586,6 @@
/* Field names for system signals (sent by a signal manager). */
#define SIGS_SIGNAL_RECEIVED (COMMON_RQ_BASE+0)
# define SIGS_SIG_NUM m2_i1
/* Common request to all processes: gcov data. */
#define COMMON_REQ_GCOV_DATA (COMMON_RQ_BASE+1)

View file

@ -124,6 +124,13 @@ typedef struct {
} mess_lsys_krn_readbios;
_ASSERT_MSG_SIZE(mess_lsys_krn_readbios);
typedef struct {
int num;
uint8_t padding[52];
} mess_pm_lsys_sigs_signal;
_ASSERT_MSG_SIZE(mess_pm_lsys_sigs_signal);
typedef struct {
off_t offset;
void *addr;
@ -1962,6 +1969,7 @@ typedef struct {
mess_sigcalls m_sigcalls;
mess_lsys_krn_readbios m_lsys_krn_readbios;
mess_pm_lsys_sigs_signal m_pm_lsys_sigs_signal;
mess_input_tty_event m_input_tty_event;
mess_krn_lsys_schedule m_krn_lsys_schedule;

View file

@ -114,7 +114,7 @@ int do_sef_signal_request(message *m_ptr)
}
else {
/* Handle system signals from a signal manager. */
signo = m_ptr->SIGS_SIG_NUM;
signo = m_ptr->m_pm_lsys_sigs_signal.num;
/* Debug. */
#if SEF_SIGNAL_DEBUG

View file

@ -464,7 +464,7 @@ int ksig; /* non-zero means signal comes from kernel */
/* Translate every non-termination sys signal into a message. */
message m;
m.m_type = SIGS_SIGNAL_RECEIVED;
m.SIGS_SIG_NUM = signo;
m.m_pm_lsys_sigs_signal.num = signo;
asynsend3(rmp->mp_endpoint, &m, AMF_NOREPLY);
}
else {

View file

@ -545,7 +545,7 @@ static int sef_cb_signal_manager(endpoint_t target, int signo)
/* Translate every non-termination signal into a message. */
m.m_type = SIGS_SIGNAL_RECEIVED;
m.SIGS_SIG_NUM = signo;
m.m_pm_lsys_sigs_signal.num = signo;
asynsend3(rpub->endpoint, &m, AMF_NOREPLY);
return OK; /* signal has been delivered */