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

Skip to content

Conversation

lschuermann
Copy link
Member

@lschuermann lschuermann commented May 6, 2021

Pull Request Overview

Two fixes (commits) for the ports to nonvirtualized drivers:

  • capsules/spi_controller: properly propagate Grant enter errors

    As part of the transition of nonvirtualized userspace drivers to use Grants for Tock 2.0: implement Callback swapping restrictions (v3) #2462, the mechanism used to store appslices and upcalls did not propagate Grant enter errors back to userspace. This commit uses ErrorCode's From implementation to propagate these error cases to userspace.

    Thanks to @phil-levis for reporting!

  • capsules/analog_comparator: don't reset current_process on upcall

Testing Strategy

This pull request was tested by compiling.

TODO or Help Wanted

@bradjc Not sure about the second one... That might just work as intended? Though it would work differently compared to the other drivers then.

Documentation Updated

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

Formatting

  • Ran make prepush.

As part of the transition of nonvirtualized userspace drivers to use
Grants for tock#2462, the mechanism used to store appslices and
upcalls did not propagate Grant enter errors back to userspace. This
commit uses ErrorCode's From implementation to propagate these error
cases to userspace.

Fixes: c2c2002 ("capsules/spi_controller: migrate ...")
Reported-by: Philip Levis <[email protected]>
Signed-off-by: Leon Schuermann <[email protected]>
Fixes: e9621aa ("capsules: analog comparator use grant")
Signed-off-by: Leon Schuermann <[email protected]>
@lschuermann lschuermann requested a review from bradjc May 6, 2021 20:10
@phil-levis
Copy link
Contributor

bors r+

@bors
Copy link
Contributor

bors bot commented May 7, 2021

@bors bors bot merged commit d44dc91 into tock:master May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants