Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Add watchdog support to the ABI #30

Open
g2p opened this issue May 28, 2018 · 4 comments
Open

Add watchdog support to the ABI #30

g2p opened this issue May 28, 2018 · 4 comments

Comments

@g2p
Copy link
Contributor

g2p commented May 28, 2018

(I'm trying to figure out a good first issue to expand the ABIs)

A watchdog ABI could work like this:

  • watchdog_setup(tick_interval)
  • watchdog_alive()

An interrupt is programmed for the given tick interval, and the process is killed if it doesn't call watchdog_alive before the interrupt triggers. Each call to watchdog_alive resets the interrupt.

@g2p
Copy link
Contributor Author

g2p commented May 28, 2018

Looking at https://wiki.osdev.org/Timer_Interrupt_Sources , this may be too complex for a first issue.
Does Nebulet have some kind of global tick that could be used here?

@g2p
Copy link
Contributor Author

g2p commented May 28, 2018

Looking at irq.rs and the PIT section, that seems like a good place to integrate it.

@lachlansneff
Copy link
Contributor

What would this abi be used for?

@g2p
Copy link
Contributor Author

g2p commented May 28, 2018 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants