diff options
author | kib <kib@FreeBSD.org> | 2013-06-20 14:30:04 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-06-20 14:30:04 +0000 |
commit | 06771a9c87365149111695df47e76bde799bb0c0 (patch) | |
tree | dea1e1a61ec9955d36b3eed7e83ccfeb4c2015cb /sys/amd64 | |
parent | b05df49af65d3ab697c586f71af5d5fe6f368656 (diff) | |
download | FreeBSD-src-06771a9c87365149111695df47e76bde799bb0c0.zip FreeBSD-src-06771a9c87365149111695df47e76bde799bb0c0.tar.gz |
Allow immediate operand.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/include/counter.h | 2 |
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"); } |