printf in interrupt handlers
Jiri Gaisler
jiri at gaisler.com
Thu Jan 20 15:32:15 UTC 2005
Thanks. I printk works, after adding the BSP_output_char
routines to the sparc bsps. Once we sync up with rtems-4.6.2
and the cvs, we will submit a patch.
Jiri.
Ralf Corsepius wrote:
> On Thu, 2005-01-20 at 12:09 +0100, Jiri Gaisler wrote:
>
>>Simple question: is printf in interrupt handlers allowed?
>
> Simple answer: No.
>
> More verbose: In general no, this doesn't work. In some (corner-) cases
> it works. If it can work, depends on various details of a port/BSP. If
> it works, in most cases, this is almost a random accident (or a smart
> design ;-) )
>
> Rule of thumb: Use printk - printk is supposed to work in ISRs. If it
> doesn't, this would qualify as a bug.
>
> Ralf
>
>
> .
>
--
--------------------------------------------------------------------------
Gaisler Research, 1:a Långgatan 19, 413 27 Goteborg, Sweden, +46-317758650
fax: +46-31421407 email: info at gaisler.com, home page: www.gaisler.com
--------------------------------------------------------------------------
More information about the users
mailing list