mcctrl: IHK CPU register manipulation implementation

This commit is contained in:
Balazs Gerofi
2017-05-20 10:39:41 +09:00
parent 39352cd364
commit 21373338cc
7 changed files with 36 additions and 51 deletions

View File

@ -652,11 +652,11 @@ static int syscall_packet_handler(struct ihk_ikc_channel_desc *c,
pckt.msg = SCD_MSG_CPU_RW_REG_RESP;
memcpy(&pckt.desc, &packet->desc,
sizeof(struct mcctrl_os_cpu_register));
sizeof(struct ihk_os_cpu_register));
pckt.resp = packet->resp;
pckt.err = arch_cpu_read_write_register(&pckt.desc, pckt.op);
pckt.err = arch_cpu_read_write_register(&pckt.desc, packet->op);
ihk_ikc_send(c, &pckt, 0);
ihk_ikc_send(resp_channel, &pckt, 0);
break;
default: