diff options
author | kettenis <kettenis@openbsd.org> | 2020-07-11 15:22:44 +0000 |
---|---|---|
committer | kettenis <kettenis@openbsd.org> | 2020-07-11 15:22:44 +0000 |
commit | e5f663db92da6173e8ee8880231be949680a771b (patch) | |
tree | fe9af3ac58ba5c054f00b7bd7634d3a2258ff437 | |
parent | Synchronize each core's CP0 cycle counter using the IO clock counter. (diff) | |
download | wireguard-openbsd-e5f663db92da6173e8ee8880231be949680a771b.tar.xz wireguard-openbsd-e5f663db92da6173e8ee8880231be949680a771b.zip |
Some whitespace fixes for the inline assembly.
-rw-r--r-- | sys/arch/arm64/dev/agtimer.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/arm64/dev/agtimer.c b/sys/arch/arm64/dev/agtimer.c index fe9606a3733..d64ce663563 100644 --- a/sys/arch/arm64/dev/agtimer.c +++ b/sys/arch/arm64/dev/agtimer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agtimer.c,v 1.13 2020/07/06 13:33:06 pirofti Exp $ */ +/* $OpenBSD: agtimer.c,v 1.14 2020/07/11 15:22:44 kettenis Exp $ */ /* * Copyright (c) 2011 Dale Rahn <drahn@openbsd.org> * Copyright (c) 2013 Patrick Wildt <patrick@blueri.se> @@ -100,7 +100,7 @@ agtimer_readcnt64(void) * for the low 32 bits and the new value for the high 32 bits * upon roll-over of the low 32 bits. */ - __asm volatile("isb" : : : "memory"); + __asm volatile("isb" ::: "memory"); __asm volatile("mrs %x0, CNTVCT_EL0" : "=r" (val0)); __asm volatile("mrs %x0, CNTVCT_EL0" : "=r" (val1)); return ((val0 ^ val1) & 0x100000000ULL) ? val0 : val1; @@ -129,8 +129,8 @@ agtimer_get_ctrl(void) static inline int agtimer_set_ctrl(uint32_t val) { - __asm volatile("msr CNTV_CTL_EL0, %x0" : : "r" (val)); - __asm volatile("isb" : : : "memory"); + __asm volatile("msr CNTV_CTL_EL0, %x0" :: "r" (val)); + __asm volatile("isb" ::: "memory"); return (0); } @@ -138,8 +138,8 @@ agtimer_set_ctrl(uint32_t val) static inline int agtimer_set_tval(uint32_t val) { - __asm volatile("msr CNTV_TVAL_EL0, %x0" : : "r" (val)); - __asm volatile("isb" : : : "memory"); + __asm volatile("msr CNTV_TVAL_EL0, %x0" :: "r" (val)); + __asm volatile("isb" ::: "memory"); return (0); } |