From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 3/4] uimage_sdram_flush: fix resource start
Date: Mon, 13 Aug 2012 08:57:13 +0200 [thread overview]
Message-ID: <1344841034-10068-3-git-send-email-plagnioj@jcrosoft.com> (raw)
In-Reply-To: <1344841034-10068-1-git-send-email-plagnioj@jcrosoft.com>
The start is the start of the previous resource nor the size of it.
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
common/uimage.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/common/uimage.c b/common/uimage.c
index 43878b5..735b64e 100644
--- a/common/uimage.c
+++ b/common/uimage.c
@@ -355,8 +355,9 @@ static struct resource *uimage_resource;
static int uimage_sdram_flush(void *buf, unsigned int len)
{
if (uimage_size + len > resource_size(uimage_resource)) {
- resource_size_t start = resource_size(uimage_resource);
+ resource_size_t start = uimage_resource->start;
resource_size_t size = resource_size(uimage_resource) + len;
+
release_sdram_region(uimage_resource);
uimage_resource = request_sdram_region("uimage",
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-08-13 6:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-13 6:54 [for master PATCH 0/4] Bootm uImage initrd fix Jean-Christophe PLAGNIOL-VILLARD
2012-08-13 6:57 ` [PATCH 1/4] arm/bootm: fix initrd_start init Jean-Christophe PLAGNIOL-VILLARD
2012-08-13 6:57 ` [PATCH 2/4] bootm: do not load the initrd in the common code Jean-Christophe PLAGNIOL-VILLARD
2012-08-13 6:57 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2012-08-13 6:57 ` [PATCH 4/4] uimage_laod: fix ramdisk support Jean-Christophe PLAGNIOL-VILLARD
2012-08-13 18:38 ` [for master PATCH 0/4] Bootm uImage initrd fix Sascha Hauer
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=1344841034-10068-3-git-send-email-plagnioj@jcrosoft.com \
--to=plagnioj@jcrosoft.com \
--cc=barebox@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox