On Sat, Jul 22 2023, Scott Cheloha <scottchel...@gmail.com> wrote: [...]
> Is there any difference if you duplicate the contents of > intr_disable/intr_restore in MCOUNT_ENTER/MCOUNT_EXIT directly? > Unlikely, but maybe the compiler is shoving an _mcount() call into > intr_disable/intr_restore, causing infinite recursion. As said in private, that didn't help. The check at lib/libkern/mcount.c:76 should already avoid recursion. -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE