From patchwork Fri Jan 4 08:23:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guillaume GARDET X-Patchwork-Id: 1020615 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43WHqV2slSz9s3l for ; Fri, 4 Jan 2019 19:23:29 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 0712BC21DF9; Fri, 4 Jan 2019 08:23:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 94A5CC21C4A; Fri, 4 Jan 2019 08:23:22 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B8633C21C4A; Fri, 4 Jan 2019 08:23:21 +0000 (UTC) Received: from smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by lists.denx.de (Postfix) with ESMTPS id E69ABC21C2C for ; Fri, 4 Jan 2019 08:23:20 +0000 (UTC) Received: from localhost.localdomain (unknown [91.163.92.88]) by smtp1-g21.free.fr (Postfix) with ESMTP id 67605B00533; Fri, 4 Jan 2019 09:23:20 +0100 (CET) From: Guillaume GARDET To: u-boot@lists.denx.de Date: Fri, 4 Jan 2019 09:23:19 +0100 Message-Id: <20190104082319.9277-1-guillaume.gardet@free.fr> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Cc: Guillaume GARDET , Tom Rini Subject: [U-Boot] [PATCH] exynos: Leave the compiler to choose the register to avoid possible r0 corruption X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Reported-by: Siarhei Siamashka Signed-off-by: Guillaume GARDET Cc: Albert Aribaud Cc: Minkyu Kang Cc: Tom Rini --- arch/arm/mach-exynos/include/mach/system.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/include/mach/system.h b/arch/arm/mach-exynos/include/mach/system.h index 81fa9800b4..48f13c7648 100644 --- a/arch/arm/mach-exynos/include/mach/system.h +++ b/arch/arm/mach-exynos/include/mach/system.h @@ -58,8 +58,7 @@ struct exynos5_sysreg { /* Move 0xd3 value to CPSR register to enable SVC mode */ #define svc32_mode_en() __asm__ __volatile__ \ ("@ I&F disable, Mode: 0x13 - SVC\n\t" \ - "mov r0, #0x13|0xC0\n\t" \ - "msr cpsr_c, r0\n\t" : : ) + "msr cpsr_c, %0\n\t" : : "r"(0x13|0xC0)) /* Set program counter with the given value */ #define set_pc(x) __asm__ __volatile__ ("mov pc, %0\n\t" : : "r"(x))