From patchwork Tue Dec 21 12:09:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 76284 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 B85CCB7080 for ; Tue, 21 Dec 2010 23:15:44 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 08A8F280FA; Tue, 21 Dec 2010 13:15:42 +0100 (CET) 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 vknSOzEcJ31O; Tue, 21 Dec 2010 13:15:41 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A6B028104; Tue, 21 Dec 2010 13:15:40 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2979328104 for ; Tue, 21 Dec 2010 13:15:37 +0100 (CET) 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 TZDrj+v1bQlr for ; Tue, 21 Dec 2010 13:15:35 +0100 (CET) X-Greylist: delayed 344 seconds by postgrey-1.27 at theia; Tue, 21 Dec 2010 13:15:33 CET 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-bw0-f46.google.com (mail-bw0-f46.google.com [209.85.214.46]) by theia.denx.de (Postfix) with ESMTP id 06C1C280FA for ; Tue, 21 Dec 2010 13:15:33 +0100 (CET) Received: by bwz15 with SMTP id 15so4463038bwz.33 for ; Tue, 21 Dec 2010 04:15:33 -0800 (PST) Received: by 10.204.69.73 with SMTP id y9mr4516073bki.76.1292933390282; Tue, 21 Dec 2010 04:09:50 -0800 (PST) Received: from localhost ([178.23.216.97]) by mx.google.com with ESMTPS id a17sm4321432bku.23.2010.12.21.04.09.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 21 Dec 2010 04:09:49 -0800 (PST) From: Michal Simek To: wd@denx.de Date: Tue, 21 Dec 2010 13:09:43 +0100 Message-Id: <1292933384-3032-2-git-send-email-monstr@monstr.eu> X-Mailer: git-send-email 1.5.5.1 In-Reply-To: <1292933384-3032-1-git-send-email-monstr@monstr.eu> References: <1292933384-3032-1-git-send-email-monstr@monstr.eu> Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/2] microblaze: Disabling interrupt should return 1 if implemented X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 Microblaze implement enable/disable interrupts through MSR that's why disable_interrupts function should return 1. Signed-off-by: John Linn Signed-off-by: Michal Simek --- arch/microblaze/cpu/interrupts.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/microblaze/cpu/interrupts.c b/arch/microblaze/cpu/interrupts.c index e9d53c1..331746c 100644 --- a/arch/microblaze/cpu/interrupts.c +++ b/arch/microblaze/cpu/interrupts.c @@ -42,7 +42,7 @@ void enable_interrupts (void) int disable_interrupts (void) { MSRCLR(0x2); - return 0; + return 1; } #ifdef CONFIG_SYS_INTC_0