From owner-svn-src-head@freebsd.org Fri Apr 7 22:58:30 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11BA5D32353; Fri, 7 Apr 2017 22:58:30 +0000 (UTC) (envelope-from kan@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D4EBF210; Fri, 7 Apr 2017 22:58:29 +0000 (UTC) (envelope-from kan@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v37MwTsH004978; Fri, 7 Apr 2017 22:58:29 GMT (envelope-from kan@FreeBSD.org) Received: (from kan@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v37MwTkN004977; Fri, 7 Apr 2017 22:58:29 GMT (envelope-from kan@FreeBSD.org) Message-Id: <201704072258.v37MwTkN004977@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kan set sender to kan@FreeBSD.org using -f From: Alexander Kabaev Date: Fri, 7 Apr 2017 22:58:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r316626 - head/sys/arm64/include X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Apr 2017 22:58:30 -0000 Author: kan Date: Fri Apr 7 22:58:28 2017 New Revision: 316626 URL: https://svnweb.freebsd.org/changeset/base/316626 Log: Define 'lr' as x30 on aarch64 GNU toolchain does not recognize LR as standard register alias, but clang does. Use of #define will work on both. Place the definition into central machine/asm.h instead of patching every affected file, as requested by plaftorm maintainers. Reviews by: andrew, emaste, imp Differential Revision: https://reviews.freebsd.org/D10307 Modified: head/sys/arm64/include/asm.h Modified: head/sys/arm64/include/asm.h ============================================================================== --- head/sys/arm64/include/asm.h Fri Apr 7 22:58:25 2017 (r316625) +++ head/sys/arm64/include/asm.h Fri Apr 7 22:58:28 2017 (r316626) @@ -57,6 +57,9 @@ #define PIC_SYM(x,y) x #endif +/* Alias for link register x30 */ +#define lr x30 + /* * Sets the trap fault handler. The exception handler will return to the * address in the handler register on a data abort or the xzr register to