mcexec forward signal to MIC process.

This commit is contained in:
Tomoki Shirasawa
2013-08-19 12:17:23 +09:00
parent 591f398768
commit 1d69225532
14 changed files with 148 additions and 37 deletions

View File

@ -55,8 +55,8 @@ struct vm_regions {
struct process_vm;
struct sig_handler {
// TODO: lock;
int use;
ihk_spinlock_t lock;
ihk_atomic_t use;
struct k_sigaction action[_NSIG];
};
@ -83,9 +83,12 @@ struct process {
} thread;
int signal;
sigset_t sigpend;
sigset_t sigmask;
struct sig_handler *sighandler;
ihk_mc_kernel_context_t sigctx;
char sigstack[512];
// TODO: backup FR and MMX regs
unsigned long sigrc; // return code of rt_sigreturn (x86_64: rax reg.)
};

View File

@ -21,6 +21,7 @@
#define SCD_MSG_INIT_CHANNEL_ACKED 0x6
#define SCD_MSG_SYSCALL_ONESIDE 0x4
#define SCD_MSG_SEND_SIGNAL 0x8
#define ARCH_SET_GS 0x1001
#define ARCH_SET_FS 0x1002