Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2013 14:30:04 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252032 - head/sys/amd64/include
Message-ID:  <201306201430.r5KEU4G5049115@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Jun 20 14:30:04 2013
New Revision: 252032
URL: http://svnweb.freebsd.org/changeset/base/252032

Log:
  Allow immediate operand.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sys/amd64/include/counter.h

Modified: head/sys/amd64/include/counter.h
==============================================================================
--- head/sys/amd64/include/counter.h	Thu Jun 20 14:20:03 2013	(r252031)
+++ head/sys/amd64/include/counter.h	Thu Jun 20 14:30:04 2013	(r252032)
@@ -44,7 +44,7 @@ counter_u64_add(counter_u64_t c, int64_t
 
 	__asm __volatile("addq\t%1,%%gs:(%0)"
 	    :
-	    : "r" ((char *)c - (char *)&__pcpu[0]), "r" (inc)
+	    : "r" ((char *)c - (char *)&__pcpu[0]), "ri" (inc)
 	    : "memory", "cc");
 }
 



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