Skip to content

Commit d91c59a

Browse files
ExtremsDacoTaco
authored andcommitted
Add missing address translation
(cherry picked from commit 7456c4a)
1 parent a2841dc commit d91c59a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

libogc/ipc.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,11 +355,14 @@ static void __ipc_replyhandler(void)
355355
if(req->result>0) DCInvalidateRange(req->read.data,req->result);
356356
}
357357
} else if(req->req_cmd==IOS_IOCTL) {
358+
if(req->ioctl.buffer_in!=NULL) {
359+
req->ioctl.buffer_in = MEM_PHYSICAL_TO_K0(req->ioctl.buffer_in);
360+
DCInvalidateRange(req->ioctl.buffer_in,req->ioctl.len_in);
361+
}
358362
if(req->ioctl.buffer_io!=NULL) {
359363
req->ioctl.buffer_io = MEM_PHYSICAL_TO_K0(req->ioctl.buffer_io);
360364
DCInvalidateRange(req->ioctl.buffer_io,req->ioctl.len_io);
361365
}
362-
DCInvalidateRange(req->ioctl.buffer_in,req->ioctl.len_in);
363366
} else if(req->req_cmd==IOS_IOCTLV) {
364367
if(req->ioctlv.argv!=NULL) {
365368
req->ioctlv.argv = MEM_PHYSICAL_TO_K0(req->ioctlv.argv);

0 commit comments

Comments
 (0)