load_elf: check mckernel execution

refs #758
This commit is contained in:
Tomoki Shirasawa
2017-09-12 13:15:22 +09:00
parent a05b6e1ba8
commit cdfa4015b7
3 changed files with 15 additions and 0 deletions

View File

@ -185,6 +185,16 @@ int mcctrl_os_shutdown_notifier(int os_index)
return 0;
}
int mcctrl_os_alive()
{
int i;
for (i = 0; i < OS_MAX_MINOR; i++)
if (os[i])
return i;
return -1;
}
static struct ihk_os_notifier_ops mcctrl_os_notifier_ops = {
.boot = mcctrl_os_boot_notifier,
.shutdown = mcctrl_os_shutdown_notifier,