Skip to content

Commit

Permalink
intr: Document how to get the interrupt frame
Browse files Browse the repository at this point in the history
Document that the only way to get the interrupt thread is to use
curthread->td_intr_frame, rather than the old-style of having a NULL
pointer for the interrupt thread. As of 38c3524, support for that
has been removed. I neglected to update that commit message with these
details.

Suggested by: mhorne
  • Loading branch information
bsdimp authored and bsdjhb committed Aug 26, 2024
2 parents 90ec168 + a2409f1 commit c205e0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sys/kern/kern_intr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,10 @@ ithread_loop(void *arg)
*
* Input:
* o ie: the event connected to this interrupt.
* o frame: the current trap frame.
--------------------------------------------------------------------------------
* o frame: the current trap frame. If the client interrupt
* handler needs this frame, they should get it
* via curthread->td_intr_frame.
*
* Return value:
* o 0: everything ok.
Expand Down

0 comments on commit c205e0e

Please sign in to comment.