Thread (4 messages) 4 messages, 2 authors, 2002-04-23

Re: MPC8xx and IDMA !?!?

From: Dan Malek <hidden>
Date: 2002-04-19 18:15:25

Steven Scholz wrote:

So my workaround for now is to allocate more than I need and correct the
value for IBASE like
	ibase += ibase % 16

Could anyone think of a better solution? Since I waste at least 16 bytes
in the DPRAM.
That's the way I always did it on 8xx.  For 8260, I added a second alignment
parameter to dpram_alloc().  If the address it would return isn't properly
aligned, it will waste sufficient memory behind your back to make this
happen :-)  At least it won't waste any if you align and the sizes are
modulo the alignment.

Where is Wolfgangs m8xx_cpm_dpfree() !?!?
Sitting in my basket of things to do.  I wanted to add the alignment
to the 8xx as well, and this complicates the free function because it
doesn't know alignment was done with the region you may have allocated.


	-- Dan


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help