Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

lschuermann
Copy link
Member

Pull Request Overview

The discriminators for the return variants

  • Success with u64 (131) and
  • Success with 3 u32 (132)

were accidentally swapped in the initial implementation. This implements the correct encoding as per the Syscalls Tock Reference Document.

Fixes: 78bfb87 ("Implement the 2.0 syscall return value types")
Reported-by: Pat Pannuto [email protected] (@ppannuto) in #2394

Testing Strategy

This pull request was not tested. It was verified that libtock-c does indeed use the correct encoding as specified in the TRD.

TODO or Help Wanted

N/A

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

The discriminators for the return variants

- Success with u64 (131) and
- Success with 3 u32 (132)

were accidentally swapped in the initial implementation. This
implements the correct encoding as per the Syscalls Tock Reference
Document.

Fixes: 78bfb87 ("Implement the 2.0 syscall return value types")
Reported-by: Pat Pannuto <[email protected]>
Signed-off-by: Leon Schuermann <[email protected]>
@lschuermann lschuermann added the tock-2.0 Issues and PRs related to Tock version 2.0. label Feb 3, 2021
@github-actions github-actions bot added the kernel label Feb 3, 2021
Copy link
Contributor

@jrvanwhy jrvanwhy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirmed that libtock-rs uses the correct encoding as specified by the TRD.

@phil-levis
Copy link
Contributor

bors r+

@bors
Copy link
Contributor

bors bot commented Feb 4, 2021

@bors bors bot merged commit 17e698e into tock:tock-2.0-dev Feb 4, 2021
lschuermann added a commit to lschuermann/tock that referenced this pull request Mar 20, 2021
2406: Tock 2.0: fix system call return variant discriminators r=phil-levis a=lschuermann

### Pull Request Overview

The discriminators for the return variants

- Success with u64 (`131`) and
- Success with 3 u32 (`132`)

were accidentally swapped in the initial implementation. This implements the correct encoding as per the Syscalls Tock Reference Document.

Fixes: 78bfb87 ("Implement the 2.0 syscall return value types")
Reported-by: Pat Pannuto <[email protected]> (@ppannuto) in tock#2394 

### Testing Strategy

This pull request was not tested. It was verified that `libtock-c` does indeed use the correct encoding as specified in the TRD.


### TODO or Help Wanted

N/A

### Documentation Updated

- [x] Updated the relevant files in `/docs`, or no updates are required.

### Formatting

- [x] Ran `make prepush`.


Co-authored-by: Leon Schuermann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernel tock-2.0 Issues and PRs related to Tock version 2.0.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants