Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Add a comment.



details:   https://anonhg.NetBSD.org/src/rev/09fa8792dde2
branches:  trunk
changeset: 970735:09fa8792dde2
user:      maxv <maxv%NetBSD.org@localhost>
date:      Thu Apr 02 16:31:37 2020 +0000

description:
Add a comment.

diffstat:

 sys/kern/subr_csan.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r ef93d72deddb -r 09fa8792dde2 sys/kern/subr_csan.c
--- a/sys/kern/subr_csan.c      Thu Apr 02 16:29:30 2020 +0000
+++ b/sys/kern/subr_csan.c      Thu Apr 02 16:31:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_csan.c,v 1.6 2019/12/01 08:15:58 maxv Exp $       */
+/*     $NetBSD: subr_csan.c,v 1.7 2020/04/02 16:31:37 maxv Exp $       */
 
 /*
  * Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_csan.c,v 1.6 2019/12/01 08:15:58 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_csan.c,v 1.7 2020/04/02 16:31:37 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -606,6 +606,11 @@
 CSAN_ATOMIC_FUNC_INC(ulong, unsigned long, unsigned long);
 CSAN_ATOMIC_FUNC_INC(ptr, void *, void);
 
+/*
+ * TODO: these two functions should qualify as atomic accesses. However
+ * for now we just whitelist them, to reduce the output.
+ */
+
 void
 kcsan_atomic_load(const volatile void *p, void *v, int size)
 {



Home | Main Index | Thread Index | Old Index