diff --git a/sys/amd64/include/counter.h b/sys/amd64/include/counter.h index 3ed5f7626b21..b37a4b836a79 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"); }