From patchwork Mon Apr 22 14:41:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 238548 X-Patchwork-Delegate: monstr@monstr.eu Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 85D232C0107 for ; Tue, 23 Apr 2013 00:51:09 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 191634A22A; Mon, 22 Apr 2013 16:49:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9jwyQfFJ-WsR; Mon, 22 Apr 2013 16:49:06 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 435C54A22C; Mon, 22 Apr 2013 16:49:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 870A44A22C for ; Mon, 22 Apr 2013 16:48:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q9iJkag0tBNi for ; Mon, 22 Apr 2013 16:48:55 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by theia.denx.de (Postfix) with ESMTPS id 0F42E4A22A for ; Mon, 22 Apr 2013 16:48:49 +0200 (CEST) Received: by mail-wi0-f179.google.com with SMTP id l13so4528938wie.6 for ; Mon, 22 Apr 2013 07:48:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:content-type :x-gm-message-state; bh=quUXKRPzd9nnYNbLHNQSYOJss76+zPgF8BV5FQsmf7s=; b=p3Icav5PIhBpBkXOCei+c71OSTbD3xyYHi2tMZKhmwHubdMFzCIDKY3eBWai8O38Mq PFMrhY3Se7sjOmLtXkZ20gHZjsF8k2jkZj4yghSLrggIhv7Nb2mNTvYDY0NA3kOU13Ne BdPS6HsmhEyoLHYuaBXe9NTkalN5nO+LpTqrrXY7S/7YpgZSnlshfsx+Y5IcDe0j8Pzb RiCZZBMIvHNYNebSYju4/sw72JaSjjEE3vYv0KAF3fmHEEj3xm1uXanKwJ30qTXBJLgq l61229ZQOrhoTrgyAqpiestapb7ockyNUQHwMb4S4CNwSGt7zRyf3eQpBe40o+BmSB1k hGMw== X-Received: by 10.180.13.166 with SMTP id i6mr67318110wic.21.1366641689061; Mon, 22 Apr 2013 07:41:29 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPS id s47sm41132593eeg.8.2013.04.22.07.41.28 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Mon, 22 Apr 2013 07:41:28 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de Date: Mon, 22 Apr 2013 16:41:02 +0200 Message-Id: X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <865c446dd3208ed797260efe67a114ac4b24b86a.1366641621.git.michal.simek@xilinx.com> References: <865c446dd3208ed797260efe67a114ac4b24b86a.1366641621.git.michal.simek@xilinx.com> In-Reply-To: <865c446dd3208ed797260efe67a114ac4b24b86a.1366641621.git.michal.simek@xilinx.com> References: <865c446dd3208ed797260efe67a114ac4b24b86a.1366641621.git.michal.simek@xilinx.com> X-Gm-Message-State: ALoCoQmBBfk5oa3LIXGEOJBh7XW603affLKkZgu5M0KeWPqaR5UmEbv9qyYeaHOn+VXhlOR46tOp Subject: [U-Boot] [PATCH 3/4] microblaze: Disable all cpu features before reset X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Michal Simek Fix microblaze soft reset function and disable all cpu features. Especially disable caches because IRQs were off by disable_interrupts(). Reported-by: John Williams Signed-off-by: Michal Simek Signed-off-by: Michal Simek --- board/xilinx/microblaze-generic/microblaze-generic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 1.8.2.1 diff --git a/board/xilinx/microblaze-generic/microblaze-generic.c b/board/xilinx/microblaze-generic/microblaze-generic.c index 8ba99f9..1af0b86 100644 --- a/board/xilinx/microblaze-generic/microblaze-generic.c +++ b/board/xilinx/microblaze-generic/microblaze-generic.c @@ -40,7 +40,8 @@ int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) #endif puts ("Reseting board\n"); - asm ("bra r0"); + __asm__ __volatile__ (" mts rmsr, r0;" \ + "bra r0"); return 0; }