Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751265AbbFBTou (ORCPT ); Tue, 2 Jun 2015 15:44:50 -0400 Received: from mail.kmu-office.ch ([178.209.48.109]:60291 "EHLO mail.kmu-office.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751105AbbFBTon (ORCPT ); Tue, 2 Jun 2015 15:44:43 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Date: Tue, 02 Jun 2015 21:42:41 +0200 From: Stefan Agner To: linux@arm.linux.org.uk Cc: arnd@arndb.de, will.deacon@arm.com, u.kleine-koenig@pengutronix.de, manabian@gmail.com, mcoquelin.stm32@gmail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ARM: nommu: avoid deprecated source register on mov In-Reply-To: <1432337148-9894-1-git-send-email-stefan@agner.ch> References: <1432337148-9894-1-git-send-email-stefan@agner.ch> Message-ID: <597f1a12eb3962fcb569982659ee3196@agner.ch> User-Agent: Roundcube Webmail/1.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1073 Lines: 26 On 2015-05-23 01:25, Stefan Agner wrote: > In Thumb2 mode, the stack register r13 is deprecated if the > destination register is the program counter (r15). Similar to > head.S, head-nommu.S uses r13 to store the return address used > after configuring the CPU's CP15 register. However, since we do > not enable a MMU, there will be no address switch and it is > possible to use branch with link instruction to call > __after_proc_init. > > Avoid using r13 completely by using bl to call __after_proc_init > and get rid of __secondary_switched. > > Beside removing unnecessary complexity, this also fixes a > compiler warning when compiling a !MMU kernel: > Warning: Use of r13 as a source register is deprecated when r15 > is the destination register. Submitted this patch to the patch tracking system, ID 8383/1. -- Stefan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/