Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/riscv/include Consistency nit: use "__volatile" ins...



details:   https://anonhg.NetBSD.org/src/rev/fe91c2f14040
branches:  trunk
changeset: 371851:fe91c2f14040
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Oct 15 06:52:35 2022 +0000

description:
Consistency nit: use "__volatile" instead of "volatile" with asm()s.

diffstat:

 sys/arch/riscv/include/sysreg.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r ffebd4bae458 -r fe91c2f14040 sys/arch/riscv/include/sysreg.h
--- a/sys/arch/riscv/include/sysreg.h   Sat Oct 15 06:48:31 2022 +0000
+++ b/sys/arch/riscv/include/sysreg.h   Sat Oct 15 06:52:35 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sysreg.h,v 1.16 2022/10/15 06:48:31 simonb Exp $ */
+/* $NetBSD: sysreg.h,v 1.17 2022/10/15 06:52:35 simonb Exp $ */
 
 /*
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
 {
        uint32_t __old;
        __new = __SHIFTIN(__new, FCSR_FRM);
-       __asm volatile("fsrm\t%0, %1" : "=r"(__old) : "r"(__new));
+       __asm __volatile("fsrm\t%0, %1" : "=r"(__old) : "r"(__new));
        return __SHIFTOUT(__old, FCSR_FRM);
 }
 



Home | Main Index | Thread Index | Old Index