All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Malek <dan@embeddededge.com>
To: Steven Scholz <steven.scholz@imc-berlin.de>
Cc: LinuxPPC <linuxppc-embedded@lists.linuxppc.org>,
	Frank Przybylski <frank.przybylski@vas-gmbh.de>
Subject: Re: MPC8xx and IDMA !?!?
Date: Fri, 19 Apr 2002 14:15:25 -0400	[thread overview]
Message-ID: <3CC05EBD.6050905@embeddededge.com> (raw)
In-Reply-To: 3CC006F1.5940B04E@imc-berlin.de


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/

  reply	other threads:[~2002-04-19 18:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-17  8:28 MPC8xx and IDMA !?!? Steven Scholz
2002-04-19 12:00 ` Steven Scholz
2002-04-19 18:15   ` Dan Malek [this message]
2002-04-23 15:39     ` Steven Scholz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CC05EBD.6050905@embeddededge.com \
    --to=dan@embeddededge.com \
    --cc=frank.przybylski@vas-gmbh.de \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=steven.scholz@imc-berlin.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.