summaryrefslogtreecommitdiff
path: root/kern/clock.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-04-21 10:49:14 +0200
committerRichard Braun <rbraun@sceen.net>2018-04-21 10:49:14 +0200
commite6a01670c335a1864b659e250cd2c29fb7da369f (patch)
tree2f0b1e7bd6d01a97db12be0fee5b37ecb5d2a068 /kern/clock.c
parent429527a32ec603d3184da12d97eb36e44f335aa4 (diff)
parentc986dc56b743c7e2de4ca370ea8aba57b064178e (diff)
Merge branch 'atomic_rework'
Diffstat (limited to 'kern/clock.c')
-rw-r--r--kern/clock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/clock.c b/kern/clock.c
index 27fb9a2..5c48bb9 100644
--- a/kern/clock.c
+++ b/kern/clock.c
@@ -72,7 +72,7 @@ void clock_tick_intr(void)
if (cpu_id() == 0) {
#ifdef ATOMIC_HAVE_64B_OPS
- atomic_add(&clock_global_time.ticks, 1, ATOMIC_RELAXED);
+ atomic_add(&clock_global_time.ticks, 1ULL, ATOMIC_RELAXED);
#else /* ATOMIC_HAVE_64B_OPS */