Add Exit system call class to Tock 2.0.#2378
Conversation
Also includes structure for yield-no-return, but this is not implemented yet. Untested.
Co-authored-by: Hudson Ayers <32688905+hudson-ayers@users.noreply.github.com>
|
This PR will be hard to reconcile with master. Can you move the restart function back to where it was (at least in git's view) so the diff is smaller? |
I don't think so, because now it's inside the |
|
Let's discuss this on the core call tomorrow? Since it's a major change I'd like a little discussion before merging. |
|
OK, in response to the discussion on the core call today, I moved the restart mechanism out of the |
|
bors r+ |
2378: Add Exit system call class to Tock 2.0. r=phil-levis a=phil-levis ### Pull Request Overview This pull request adds the Exit system call class to Tock 2.0, including `exit-terminate` and `exit-restart`. It refactors some of the process restart code to separate policy from mechanism. It builds on the `yield_2.0` branch/PR tock#2351 . This borrows heavily from @torfmaster's tock#1624. ### Testing Strategy This pull request was tested by running the `restart` and `terminate` test apps in libtock-c. Both behave as expected, and work correctly with process console. ### TODO or Help Wanted This pull request doesn't need anything, but process console could probably benefit from a command to reboot a process as well as one to start a terminated process. ### Documentation Updated - [x] Updated the relevant files in `/docs`, or no updates are required. ### Formatting - [x] Ran `make prepush`. Co-authored-by: Philip Levis <pal@cs.stanford.edu>
Pull Request Overview
This pull request adds the Exit system call class to Tock 2.0, including
exit-terminateandexit-restart. It refactors some of the process restart code to separate policy from mechanism. It builds on theyield_2.0branch/PR #2351 . This borrows heavily from @torfmaster's #1624.Testing Strategy
This pull request was tested by running the
restartandterminatetest apps in libtock-c. Both behave as expected, and work correctly with process console.TODO or Help Wanted
This pull request doesn't need anything, but process console could probably benefit from a command to reboot a process as well as one to start a terminated process.
Documentation Updated
/docs, or no updates are required.Formatting
make prepush.