Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch add gtmr_cntv_cval_write
details: https://anonhg.NetBSD.org/src/rev/b7c20122121d
branches: trunk
changeset: 996369:b7c20122121d
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Jan 30 02:02:23 2019 +0000
description:
add gtmr_cntv_cval_write
diffstat:
sys/arch/aarch64/include/armreg.h | 9 ++++++++-
sys/arch/arm/include/armreg.h | 9 ++++++++-
2 files changed, 16 insertions(+), 2 deletions(-)
diffs (46 lines):
diff -r 86d9c5e37e13 -r b7c20122121d sys/arch/aarch64/include/armreg.h
--- a/sys/arch/aarch64/include/armreg.h Wed Jan 30 02:01:58 2019 +0000
+++ b/sys/arch/aarch64/include/armreg.h Wed Jan 30 02:02:23 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: armreg.h,v 1.22 2018/12/13 10:44:25 ryo Exp $ */
+/* $NetBSD: armreg.h,v 1.23 2019/01/30 02:02:23 jmcneill Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -1156,6 +1156,13 @@
return reg_cntv_cval_el0_read();
}
+
+static __inline void
+gtmr_cntv_cval_write(uint64_t val)
+{
+
+ reg_cntv_cval_el0_write(val);
+}
#endif /* _KERNEL */
/*
diff -r 86d9c5e37e13 -r b7c20122121d sys/arch/arm/include/armreg.h
--- a/sys/arch/arm/include/armreg.h Wed Jan 30 02:01:58 2019 +0000
+++ b/sys/arch/arm/include/armreg.h Wed Jan 30 02:02:23 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: armreg.h,v 1.124 2018/08/15 06:13:56 skrll Exp $ */
+/* $NetBSD: armreg.h,v 1.125 2019/01/30 02:02:23 jmcneill Exp $ */
/*
* Copyright (c) 1998, 2001 Ben Harris
@@ -1026,6 +1026,13 @@
return armreg_cntv_cval_read();
}
+static inline void
+gtmr_cntv_cval_write(uint64_t val)
+{
+
+ armreg_cntv_cval_write(val);
+}
+
#endif /* _KERNEL */
#endif /* !__ASSEMBLER && !_RUMPKERNEL */
Home |
Main Index |
Thread Index |
Old Index