This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
Re: PPC serial - fix buffer allocation
On Fri, 2003-03-28 at 09:21, Jonathan Larmour wrote:
> Gary Thomas wrote:
> > Index: devs/serial/powerpc/quicc/current/ChangeLog
> > ===================================================================
> > RCS file: /misc/cvsfiles/ecos/packages/devs/serial/powerpc/quicc/current/ChangeLog,v
> > retrieving revision 1.16
> > diff -u -5 -p -r1.16 ChangeLog
> > --- devs/serial/powerpc/quicc/current/ChangeLog 23 Mar 2003 16:21:40 -0000 1.16
> > +++ devs/serial/powerpc/quicc/current/ChangeLog 28 Mar 2003 13:14:15 -0000
> > @@ -1,5 +1,10 @@
> > +2003-03-28 Gary Thomas <gary at mlbassoc dot com>
> > +
> > + * src/quicc_smc_serial.c: Change how buffers are allocated & aligned
> > + to a cache line - previous attempt wasted a huge amount of space.
>
> Wouldn't it be (potentially) more efficient still to use an alignment macro?
It might, but I seem to recall that there are limits on the
granularity of the alignment (the linker will only go so far
for non-section objects).
--
------------------------------------------------------------
Gary Thomas |
MLB Associates | Consulting for the
+1 (970) 229-1963 | Embedded world
http://www.mlbassoc.com/ |
email: <gary at mlbassoc dot com> |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------