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

Skip to content

Conversation

phil-levis
Copy link
Contributor

@phil-levis phil-levis commented Dec 24, 2020

Pull Request Overview

This pull requests updates the alarm system call driver to use the 2.0 syscall API.

Testing Strategy

This pull request was tested by running two copies of multi_alarm_test in parallel on the imix platform. I found a few bugs while doing so, which led me to update libtock-c's alarm code to use the new (reference, dt) system calls. It had still be using just an absolute time, which if there are long delays due to printfs can cause the hang-on-alarm-in-the-past bug.

TODO or Help Wanted

Documentation Updated

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

Formatting

  • Ran make prepush.

@phil-levis phil-levis added the tock-2.0 Issues and PRs related to Tock version 2.0. label Dec 24, 2020
Copy link
Contributor

@hudson-ayers hudson-ayers left a comment

Choose a reason for hiding this comment

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

Looks good except for the leftover debug statement

@phil-levis
Copy link
Contributor Author

bors r+

@bors
Copy link
Contributor

bors bot commented Dec 29, 2020

@bors bors bot merged commit 195e006 into tock-2.0-dev Dec 29, 2020
@bors bors bot deleted the alarm_2.0 branch December 29, 2020 00:54
lschuermann pushed a commit to lschuermann/tock that referenced this pull request Mar 20, 2021
2307: Updating Alarm syscall driver to 2.0 syscall API r=phil-levis a=phil-levis

### Pull Request Overview

This pull requests updates the alarm system call driver to use the 2.0 syscall API.


### Testing Strategy

This pull request was tested by running two copies of multi_alarm_test in parallel on the imix platform. I found a few bugs while doing so, which led me to update libtock-c's alarm code to use the new (reference, dt) system calls. It had still be using just an absolute time, which if there are long delays due to printfs can cause the hang-on-alarm-in-the-past bug.


### TODO or Help Wanted


### Documentation Updated

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

### Formatting

- [x] Ran `make prepush`.


Co-authored-by: Philip Levis <[email protected]>
Co-authored-by: Hudson Ayers <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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