4 Aug 2007 23:24
Re: arch_int_restore_interrupts
On 2007-08-04 at 22:13:18 [+0200], Salvatore Benedetto <emitrax@...> wrote: > I didn't open a ticket because I can't really call it a bug since there is > this ToDo in the dprintf function > > // ToDo: maybe add a non-interrupt buffer and path that only > // needs to acquire a semaphore instead of needing to disable > // interrupts? > > Basically I'm doing an heavy use of TRACE calls (a.k.a. dprintf) to debug > my thread, and sometimes (actually often) my systems hangs. At first I > thought > I introduced a deadlock but then, by looking at the stack frame > in kdl I saw that the system was blocked at > > arch_int_restore_interrupts > restore_interrupts > dprintf > mythread > etc... Not sure what you mean with the "system was blocked at ...". arch_int_restore_interrupts() does nothing that would block the system in anyway. It performs a few harmless instructions and returns. If you're printing a lot of debug info, your thread will spend quite a lot of time in dprintf() with interrupts disabled. It is likely that a timer interrupt occurs or you've pressed the F12 key (=> keyboard interrupt)(Continue reading)
I'm afraid it might not
RSS Feed