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/d3faf8c4ea04
branches:  trunk
changeset: 746494:d3faf8c4ea04
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 91796c62322b -r d3faf8c4ea04 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