This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Redboot console performance tweak


On Tue, Sep 10, 2002 at 01:05:55PM -0400, Mark Salter wrote:
> I'm not sure. How are you configuring/running the hello world app?
As usual :-).

net/net_io.c contains the following code:

    if ((++out_buflen == sizeof(out_buf)) ||
        (have_hash && (++hash_count == 3))) {
        net_io_flush();

this means, that net_io_flush() is only called
if the to be written data exceeds sizeof(out_buf)
which is 1024.
What about writing once "Hello World\n",
which is about 12 characters? RedBoot will never
show it.

reverting the tweak to ( note: the ( c =='\n') ):
    if ((++out_buflen == sizeof(out_buf)) || ( c =='\n') ||
        (have_hash && (++hash_count == 3))) {
        net_io_flush();

and the string is displayed.

Christoph

-- 

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]