summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include
diff options
context:
space:
mode:
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