From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from inx.pm.waw.pl ([195.116.170.130]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ULtuj-0004yd-2o for barebox@lists.infradead.org; Sat, 30 Mar 2013 11:25:37 +0000 From: Krzysztof Halasa References: Date: Sat, 30 Mar 2013 12:25:35 +0100 In-Reply-To: (Krzysztof Halasa's message of "Sat, 30 Mar 2013 12:19:07 +0100") Message-ID: 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] Implement ALTERNATE memory layout. To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogS3J6eXN6dG9mIEhhxYJhc2EgPGtoY0BwbS53YXcucGw+CgotLS0gYS9h cmNoL2FybS9jcHUvc3RhcnQuYworKysgYi9hcmNoL2FybS9jcHUvc3RhcnQuYwpAQCAtNTgsNyAr NTgsNiBAQCBzdGF0aWMgbm9pbmxpbmUgX19ub3JldHVybiB2b2lkIF9fc3RhcnQodWludDMyX3Qg bWVtYmFzZSwgdWludDMyX3QgbWVtc2l6ZSwKIAllbmRtZW0gLT0gU1RBQ0tfU0laRTsgLyogU3Rh Y2sgKi8KIAogCWlmIChJU19FTkFCTEVEKENPTkZJR19NTVVfRUFSTFkpKSB7Ci0KIAkJZW5kbWVt ICY9IH4weDNmZmY7CiAJCWVuZG1lbSAtPSBTWl8xNks7IC8qIHR0YiAqLwogCkBAIC02Niw2ICs2 NSw5IEBAIHN0YXRpYyBub2lubGluZSBfX25vcmV0dXJuIHZvaWQgX19zdGFydCh1aW50MzJfdCBt ZW1iYXNlLCB1aW50MzJfdCBtZW1zaXplLAogCQkJbW11X2Vhcmx5X2VuYWJsZShtZW1iYXNlLCBt ZW1zaXplLCBlbmRtZW0pOwogCX0K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