summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-06-20 14:30:04 +0000
committerkib <kib@FreeBSD.org>2013-06-20 14:30:04 +0000
commit06771a9c87365149111695df47e76bde799bb0c0 (patch)
treedea1e1a61ec9955d36b3eed7e83ccfeb4c2015cb /sys/amd64/include
parentb05df49af65d3ab697c586f71af5d5fe6f368656 (diff)
downloadFreeBSD-src-06771a9c87365149111695df47e76bde799bb0c0.zip
FreeBSD-src-06771a9c87365149111695df47e76bde799bb0c0.tar.gz
Allow immediate operand.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/amd64/include')
-rw-r--r--sys/amd64/include/counter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/counter.h b/sys/amd64/include/counter.h
index 3ed5f76..b37a4b8 100644
--- a/sys/amd64/include/counter.h
+++ b/sys/amd64/include/counter.h
@@ -44,7 +44,7 @@ counter_u64_add(counter_u64_t c, int64_t inc)
__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");
}
OpenPOWER on IntegriCloud