Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/development/syscall.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,20 +197,20 @@ The steps from the overview are elaborated on here.
fn allow_readwrite(
&self,
appid: AppId,
which, usize,
command_num, usize,
slice: ReadWriteAppSlice,
) -> Result<ReadWriteAppSlice, (ReadWriteAppSlice, ErrorCode)> { }

fn allow_readonly(
&self,
app: AppId,
which: usize,
command_num: usize,
slice: ReadOnlyAppSlice,
) -> Result<ReadOnlyAppSlice, (ReadOnlyAppSlice, ErrorCode)> { }

fn command(
&self,
which: usize,
command_num: usize,
r2: usize,
r3: usize,
caller_id: AppId) -> CommandReturn { }
Expand All @@ -233,7 +233,7 @@ The steps from the overview are elaborated on here.
`allow_readonly` calls.

By Tock convention, every syscall interface must at least support the command
call with `which == 0`. This allows applications to check if the syscall
call with `command_num == 0`. This allows applications to check if the syscall
interface is supported on the current platform. The command must return a
`CommandReturn::success()`. If the command is not present, then the kernel
automatically has it return a failure with an error code of
Expand All @@ -243,7 +243,7 @@ The steps from the overview are elaborated on here.
impl SyscallDriver for WS00123 {
fn command(
&self,
which: usize,
command_num: usize,
r2: usize,
r3: usize,
caller_id: AppId) -> CommandReturn {
Expand Down Expand Up @@ -290,7 +290,7 @@ The steps from the overview are elaborated on here.
/// height to set as the the threshold for detection.
fn command(
&self,
which: usize,
command_num: usize,
r2: usize,
r3: usize,
caller_id: AppId) -> CommandReturn {
Expand Down