Module Name:    src
Committed By:   maxv
Date:           Thu Apr  2 16:31:37 UTC 2020

Modified Files:
        src/sys/kern: subr_csan.c

Log Message:
Add a comment.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/kern/subr_csan.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_csan.c
diff -u src/sys/kern/subr_csan.c:1.6 src/sys/kern/subr_csan.c:1.7
--- src/sys/kern/subr_csan.c:1.6	Sun Dec  1 08:15:58 2019
+++ src/sys/kern/subr_csan.c	Thu Apr  2 16:31:37 2020
@@ -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(uint, unsigned int,
 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)
 {

Reply via email to