Skip to content

Commit

Permalink
kernel: yield: do not need all three params
Browse files Browse the repository at this point in the history
  • Loading branch information
bradjc committed Jun 14, 2024
1 parent 165dd9b commit 9efe5e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions kernel/src/kernel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,6 @@ impl Kernel {
which: _,
param1: _,
param2: _,
param3: _,
} => {} // Yield is not filterable.
Syscall::Exit {
which: _,
Expand Down Expand Up @@ -808,7 +807,6 @@ impl Kernel {
which,
param1,
param2,
param3: _,
} => {
if config::CONFIG.trace_syscalls {
debug!("[{:?}] yield. which: {}", process.processid(), which);
Expand Down
2 changes: 0 additions & 2 deletions kernel/src/syscall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ pub enum Syscall {
which: usize,
param1: usize,
param2: usize,
param3: usize,
},

/// Structure representing an invocation of the Subscribe system call class.
Expand Down Expand Up @@ -209,7 +208,6 @@ impl Syscall {
which: r0,
param1: r1,
param2: r2,
param3: r3,
}),
Ok(SyscallClass::Subscribe) => Some(Syscall::Subscribe {
driver_number: r0,
Expand Down

0 comments on commit 9efe5e1

Please sign in to comment.