mcctrl: release syscall packets to LWK -> Linux channels

This commit is contained in:
Balazs Gerofi
2017-06-12 22:02:32 +09:00
parent c6e3185246
commit 4dfd806aa7
2 changed files with 31 additions and 13 deletions

View File

@@ -133,7 +133,10 @@ static int syscall_packet_handler(struct ihk_ikc_channel_desc *c,
* mcexec_ret_syscall(), for the rest, free it here.
*/
if (msg != SCD_MSG_SYSCALL_ONESIDE) {
ihk_ikc_release_packet((struct ihk_ikc_free_packet *)__packet, c);
ihk_ikc_release_packet((struct ihk_ikc_free_packet *)__packet,
(usrdata->ikc2linux[smp_processor_id()] ?
usrdata->ikc2linux[smp_processor_id()] :
usrdata->ikc2linux[0]));
}
return 0;
}