Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Apr 2017 22:58:29 +0000 (UTC)
From:      Alexander Kabaev <kan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316626 - head/sys/arm64/include
Message-ID:  <201704072258.v37MwTkN004977@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704072258.v37MwTkN004977>