Implement IOCTL_KERN_WRITE32 in /dev/iosuhax

This commit is contained in:
Maschell 2020-11-27 00:54:24 +01:00
parent 5762c88deb
commit 009086ed52

View File

@ -165,8 +165,11 @@ static int ipc_ioctl(ipcmessage *message) {
break; break;
} }
case IOCTL_KERN_WRITE32: { case IOCTL_KERN_WRITE32: {
//! TODO: add syscall as on kern_read32 if ((message->ioctl.length_in < 8)) {
res = IOS_ERROR_NOEXISTS; res = IOS_ERROR_INVALID_SIZE;
} else {
svcCustomKernelCommand(KERNEL_WRITE32, message->ioctl.buffer_in[0], message->ioctl.buffer_in[1]);
}
break; break;
} }
//!-------------------------------------------------------------------------------------------------------------- //!--------------------------------------------------------------------------------------------------------------