Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/aarch64/include fix build with COPTS=-O0
details: https://anonhg.NetBSD.org/src/rev/297d7e91120d
branches: trunk
changeset: 1024491:297d7e91120d
user: ryo <ryo%NetBSD.org@localhost>
date: Tue Oct 26 16:58:46 2021 +0000
description:
fix build with COPTS=-O0
diffstat:
sys/arch/aarch64/include/armreg.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 29c0c1821cec -r 297d7e91120d sys/arch/aarch64/include/armreg.h
--- a/sys/arch/aarch64/include/armreg.h Tue Oct 26 16:16:34 2021 +0000
+++ b/sys/arch/aarch64/include/armreg.h Tue Oct 26 16:58:46 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: armreg.h,v 1.58 2021/10/23 05:31:53 skrll Exp $ */
+/* $NetBSD: armreg.h,v 1.59 2021/10/26 16:58:46 ryo Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -74,8 +74,8 @@
AARCH64REG_WRITE_INLINE3(regname, regdesc, )
#define AARCH64REG_WRITEIMM_INLINE2(regname, regdesc) \
-static __inline void \
-reg_##regname##_write(uint64_t __val) \
+static __inline void __always_inline \
+reg_##regname##_write(const uint64_t __val) \
{ \
__asm __volatile( \
"msr " #regdesc ", %0" :: "n"(__val) : "memory" \
Home |
Main Index |
Thread Index |
Old Index