Simplified RR, cleanup stream function params

This commit is contained in:
2026-03-18 23:18:06 +01:00
parent 4c26fcfc11
commit 0f320c8f07
6 changed files with 29 additions and 45 deletions

View File

@@ -1061,7 +1061,7 @@ DEFINE_SYSCALL (sys_stream_write) {
if (stream_resource == NULL)
return SYSRESULT (-ST_NOT_FOUND);
proc_stream_write (proc, &stream_resource->u.stream, rctx, buffer, buffer_size);
proc_stream_write (&stream_resource->u.stream, buffer, buffer_size);
return SYSRESULT (ST_OK);
}
@@ -1094,7 +1094,7 @@ DEFINE_SYSCALL (sys_stream_read) {
if (stream_resource == NULL)
return SYSRESULT (-ST_NOT_FOUND);
return SYSRESULT (proc_stream_read (proc, &stream_resource->u.stream, rctx, buffer, buffer_size));
return SYSRESULT (proc_stream_read (&stream_resource->u.stream, buffer, buffer_size));
}
static syscall_handler_func_t handler_table[] = {