diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-08-29 02:08:14 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-08-29 02:08:14 +0000 |
commit | f8187a6eb66878b0b0b80568b5d8df62b948285d (patch) | |
tree | 45ba4d3d1cdc301e5567a04fbf1f1bb2e90ef2cf /sys/dev/pv/hyperv.c | |
parent | bca10c250b0643dabec71519d1d6cf5f3a5745f1 (diff) |
use ansi volatile keyword, not __volatile__
ok miod@ guenther@
Diffstat (limited to 'sys/dev/pv/hyperv.c')
-rw-r--r-- | sys/dev/pv/hyperv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pv/hyperv.c b/sys/dev/pv/hyperv.c index dcebd3ae681..f57a5e366c1 100644 --- a/sys/dev/pv/hyperv.c +++ b/sys/dev/pv/hyperv.c @@ -408,8 +408,8 @@ hv_hypercall(struct hv_softc *sc, uint64_t control, void *input, } #ifdef __amd64__ - __asm__ __volatile__ ("mov %0, %%r8" : : "r" (output_pa) : "r8"); - __asm__ __volatile__ ("call *%3" : "=a" (status) : "c" (control), + __asm__ volatile ("mov %0, %%r8" : : "r" (output_pa) : "r8"); + __asm__ volatile ("call *%3" : "=a" (status) : "c" (control), "d" (input_pa), "m" (sc->sc_hc)); #else /* __i386__ */ { @@ -418,7 +418,7 @@ hv_hypercall(struct hv_softc *sc, uint64_t control, void *input, uint32_t status_hi = 1; uint32_t status_lo = 1; - __asm__ __volatile__ ("call *%8" : + __asm__ volatile ("call *%8" : "=d" (status_hi), "=a"(status_lo) : "d" (control_hi), "a" (control_lo), "b" (0), "c" (input_pa), "D" (0), "S" (output_pa), |