[ECOS] Printf and diag_printf

Andrew Lunn andrew@lunn.ch
Mon Nov 22 20:25:00 GMT 2004


On Mon, Nov 22, 2004 at 09:24:51PM +0530, sandeep wrote:
> >diag_printf() is none realtime. It disables interrupts while doing its
> >printing. So if you have a low priority function doing a diag_printf
> are you talking of diag_printf in packages/infra/current/src/diag.cxx ??
> but that doesn't disable interrupts while doing printing.
> there must be something i am missing.

hal/commen/current/src/hal_if.c:cyg_hal_diag_mangler_gdb_flush().

Disables interrupts before pushing output down to redboot and
reenables them afterwards.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list