From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from inx.pm.waw.pl ([195.116.170.130]) by casper.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SQmjT-0006sa-Hs for barebox@lists.infradead.org; Sat, 05 May 2012 21:41:40 +0000 From: Krzysztof Halasa Date: Sat, 05 May 2012 23:38:15 +0200 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] ARM: Shutdown barebox (MMU) before setting ATAGS to avoid page #0 fault. To: barebox@lists.infradead.org VGhpcyBkb2Vzbid0IGZpeCB0aGUgIm1kIiBpc3N1ZS4KClNpZ25lZC1vZmYtYnk6IEtyenlzenRv ZiBIYcWCYXNhIDxraGNAcG0ud2F3LnBsPgoKZGlmZiAtLWdpdCBhL2FyY2gvYXJtL2xpYi9hcm1s aW51eC5jIGIvYXJjaC9hcm0vbGliL2FybWxpbnV4LmMKaW5kZXggYTE2NzAzNi4uODQ3ZmVmYSAx MDA2NDQKLS0tIGEvYXJjaC9hcm0vbGliL2FybWxpbnV4LmMKKysrIGIvYXJjaC9hcm0vbGliL2Fy bWxpbnV4LmMKQEAgLTI2MCwxMiArMjYwLDE1IEBAIHZvaWQgc3RhcnRfbGludXgodm9pZCAqYWRy LCBpbnQgc3dhcCwgdW5zaWduZWQgbG9uZyBpbml0cmRfYWRkcmVzcywKIAlpZiAob2Z0cmVlKSB7 CiAJCXByaW50ZigiYm9vdGluZyBMaW51eCBrZXJuZWwgd2l0aCBkZXZpY2V0cmVlXG4iKTsKIAkJ cGFyYW1zID0gb2Z0cmVlOwotCX0gZWxzZSB7CisJfQorCisJc2h1dGRvd25fYmFyZWJveCgpOwor CisJaWYgKCFvZnRyZWUpIHsKIAkJc2V0dXBfdGFncyhp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