Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Aug 2016 19:04:38 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r304096 - head/lib/libthr/arch/mips/include
Message-ID:  <201608141904.u7EJ4cpg047794@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sun Aug 14 19:04:37 2016
New Revision: 304096
URL: https://svnweb.freebsd.org/changeset/base/304096

Log:
  [mips] convert over =v to =r for the inline assembly.
  
  Later gcc and clang have deprecated =v (which maps to a specific temp
  register) and instead we should just use =r to have the assembler
  (hopefully!) save/restore things appropriately after choosing
  a register.
  
  Tested:
  
  * AR9344 SoC, with userreg support
  * AR9331 SoC, with no userreg support
  
  Sponsored by:	Sponsored by: DARPA, AFRL (MIPS TLS user register work)

Modified:
  head/lib/libthr/arch/mips/include/pthread_md.h

Modified: head/lib/libthr/arch/mips/include/pthread_md.h
==============================================================================
--- head/lib/libthr/arch/mips/include/pthread_md.h	Sun Aug 14 19:03:33 2016	(r304095)
+++ head/lib/libthr/arch/mips/include/pthread_md.h	Sun Aug 14 19:04:37 2016	(r304096)
@@ -84,7 +84,7 @@ _tcb_get(void)
 	    ".set\tmips64r2\n\t"
 	    "rdhwr\t%0, $29\n\t"
 	    ".set\tpop"
-	    : "=v" (_rv));
+	    : "=r" (_rv));
 
 	/*
 	 * XXXSS See 'git show c6be4f4d2d1b71c04de5d3bbb6933ce2dbcdb317'
@@ -106,7 +106,7 @@ _tcb_get(void)
 	    ".set\tmips32r2\n\t"
 	    "rdhwr\t%0, $29\n\t"
 	    ".set\tpop"
-	    : "=v" (_rv));
+	    : "=r" (_rv));
 
 	/*
 	 * XXXSS See 'git show c6be4f4d2d1b71c04de5d3bbb6933ce2dbcdb317'



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