From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UXpUM-00042C-3y for barebox@lists.infradead.org; Thu, 02 May 2013 09:07:44 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 2 May 2013 11:07:11 +0200 Message-Id: <1367485632-10725-2-git-send-email-u.kleine-koenig@pengutronix.de> In-Reply-To: <1367485632-10725-1-git-send-email-u.kleine-koenig@pengutronix.de> References: <1367485632-10725-1-git-send-email-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH RFC 1/2] bootm: Simplify initrd address handling To: barebox@lists.infradead.org CWRhdGEuaW5pdHJkX2FkZHJlc3MgPSBVSU1BR0VfU09NRV9BRERSRVNTOwoJLi4uCglpZiAoLUwg d2FzIGdpdmVuIHRvIGJvb3RtKQoJCWRhdGEuaW5pdHJkX2FkZHJlc3MgPSBhZGRyZXNzX3Byb3Zp ZGVkX3RvXy1MOwoJLi4uCglpZiAoaW5pdHJkIGlzIHByb3ZpZGVkIGFzIHVJbml0cmQgJiYgZGF0 YS5pbml0cmRfYWRkcmVzcyA9PSBVSU1BR0VfU09NRV9BRERSRVNTKQoJCWRhdGEuaW5pdHJkX2Fk ZHJlc3MgPSBsb2FkX2FkZHJlc3NfZnJvbV91SW5pdHJkOwoJLi4uCglpZiAoZGF0YS5pbml0cmRf YWRkcmVzcyA9PSBVSU1BR0VfU09NRV9BRERSRVNTKQoJCWRhdGEuaW5pdHJkX2FkZHJlc3MgPSBV SU1BR0VfSU5WQUxJRF9BRERSRVNTOwoKY2FuIGJlIHNpbX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