Allow immediate operand.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
a04d64d875
commit
9dbb63fe03
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user