[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C++ ctors, cdtest.exe, printf and termios oh my!
- Date: Fri, 06 Aug 1999 08:07:37 -0700
- From: erik.ivanenko at utoronto.ca (erik.ivanenko)
- Subject: C++ ctors, cdtest.exe, printf and termios oh my!
Tony R. Ambardar wrote:
> This is what I originally suspected. However, I believe Rosimildo and Erik
> have both successfully run cdtest.exe using interrupt-driven console I/O.
> Hence my confusion...
>
> Is this true, Erik, Rosimildo?
Nope. I change the printf's to printk's.
>
>
> I haven't looked closely before, so how does one turn on polling for
> general I/O in the x86 BSP's?
>
see console.c There is a polling driver instead of an interrupt driven one
that you use to get characters.
> Joel, why don't we just change the printf's in cdtest.exe to printk's and
> not worry about this any more?
>
That's my vote.
> Another place where polling I/O is required is for the various timing
> tests. Would using printk in these cases be alright?
>
> ____________________________________________________________
> / \
> | Tony R. Ambardar | Department of Electrical & |
> | M.Sc., M.Eng. | Computer Engineering |
> | Email: tonya at ece.ubc.ca | University of British Columbia |
> | Ph: (604) 822-2872 | 2356 Main Mall, Vancouver B.C. |
> | Fax:(604) 822-5949 | V6T 1Z4 CANADA |
> \____________________________________________________________/
>
> On Thu, 5 Aug 1999 joel at OARcorp.com wrote:
>
> >
> > You almost answered the question yourself. :)
> >
> > Your console device driver is interrupt driven. The constructurs are
> > being run long before interrupts are enabled at the system level -- even
> > before tasking is initiated. If you run the test with polled console
> > output, it will avoid this problem.
> >
> > As has been noted before, most of the RTEMS tests behave best when using
> > polled console IO.
> >
> > Try it again with polled IO
> >
> > --joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vcard.vcf
Type: text/x-vcard
Size: 291 bytes
Desc: Card for Erik Ivanenko
Url : http://rtems.rtems.org/pipermail/rtems-users/attachments/19990806/fe25f6a4/attachment.vcf