Skip to content

Commit

Permalink
Add missing address translation
Browse files Browse the repository at this point in the history
(cherry picked from commit 7456c4a)
  • Loading branch information
Extrems authored and DacoTaco committed Apr 12, 2023
1 parent a2841dc commit d91c59a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libogc/ipc.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,14 @@ static void __ipc_replyhandler(void)
if(req->result>0) DCInvalidateRange(req->read.data,req->result);
}
} else if(req->req_cmd==IOS_IOCTL) {
if(req->ioctl.buffer_in!=NULL) {
req->ioctl.buffer_in = MEM_PHYSICAL_TO_K0(req->ioctl.buffer_in);
DCInvalidateRange(req->ioctl.buffer_in,req->ioctl.len_in);
}
if(req->ioctl.buffer_io!=NULL) {
req->ioctl.buffer_io = MEM_PHYSICAL_TO_K0(req->ioctl.buffer_io);
DCInvalidateRange(req->ioctl.buffer_io,req->ioctl.len_io);
}
DCInvalidateRange(req->ioctl.buffer_in,req->ioctl.len_in);
} else if(req->req_cmd==IOS_IOCTLV) {
if(req->ioctlv.argv!=NULL) {
req->ioctlv.argv = MEM_PHYSICAL_TO_K0(req->ioctlv.argv);
Expand Down

0 comments on commit d91c59a

Please sign in to comment.