Allow immediate operand.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Konstantin Belousov 2013-06-20 14:30:04 +00:00
parent a04d64d875
commit 9dbb63fe03

View File

@ -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");
}