- OS-A platform stoptime requirement
Re: OS-A platform stoptime requirement
On Mon, Jan 3, 2022 at 9:43 AM Beeman Strong <beeman@...
Back to the original topic, it seems there is broad agreement that stoptime=1 shouldn't be a requirement for the OS-A (or server) platform spec. Is there a formal mechanism by which an issue should be filed to get that changed?
Send a patch :)
On Wed, Dec 29, 2021 at 9:44 AM Tim Newsome <tim@...
On Tue, Dec 28, 2021 at 4:19 PM Ved Shanbhogue <ved@...
On Tue, Dec 28, 2021 at 10:04:41AM -0800, Tim Newsome wrote:
>stoptime is nice on single-hart systems, but not really practical in
>multi-hart systems where one hart can be running while another is halted.
>The main benefit is that it allows you to single step through code with a
>timer interrupt enabled, without going into that timer interrupt every time
>you single step.
Are there downsides to the debugger inhibiting the timer interrupt by setting STIE to 0?
This seems like would provide similar benefit even for a multi-hart system...
It works fine, but it's not as nice as the system itself slowing down to your debugging speed. (Although slowing the system down will generally be imperfect in any case, because systems have other peripherals that will not stop generating interrupts/counting time/whatever.)
Join firstname.lastname@example.org to automatically receive all group messages.