This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Re: PowerPC questions
- From: "Harald Küthe" <Harald dot Kuethe at controlware dot de>
- To: <ecos-devel at sources dot redhat dot com>
- Date: Tue, 12 Oct 2004 08:34:42 +0200
- Subject: Re: PowerPC questions
Hello Anthony
I stumbled around the same thing. There are 2 drivers for the smc's.
I think one is used very early during init time. It uses the extra byte for the data transfer.
so each bd has only one byte which is as well located in the dpram.
There is one patch in the list
/*
* Set pointers to buffer descriptors.
* (Sections 16.15.4.1, 16.15.7.12, and 16.15.7.13)
*/
len = sizeof(struct cp_bufdesc)*info->Rxnum + info->Rxnum;
len = (len + 7) & ~7; // Make len Multiple of 8 bytes
uart_pram->rbase = _mpc8xx_allocBd(len);
len = sizeof(struct cp_bufdesc)*info->Txnum + info->Txnum;
len = (len + 7) & ~7; // Make len Multiple of 8 bytes
uart_pram->tbase = _mpc8xx_allocBd(len);
which 'solves' the assert issue
It seems that everyone uses only the NDEBUG version for ppc.
The second driver seems to be used later (located in devs/serial/...)
It uses a static bufferpool.
Thats what I found out, it is strange.
Regards
Harald