Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Change kcsan_md_is_avail() to always return true; I was ...
details: https://anonhg.NetBSD.org/src/rev/da68ad366326
branches: trunk
changeset: 460842:da68ad366326
user: maxv <maxv%NetBSD.org@localhost>
date: Wed Nov 06 06:57:22 2019 +0000
description:
Change kcsan_md_is_avail() to always return true; I was testing with
interrupts disabled as debugging. Change the delay/sample parameters
to have better fluidity.
diffstat:
sys/arch/amd64/include/csan.h | 4 ++--
sys/kern/subr_csan.c | 8 ++++----
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (47 lines):
diff -r 34157cd0e933 -r da68ad366326 sys/arch/amd64/include/csan.h
--- a/sys/arch/amd64/include/csan.h Wed Nov 06 04:17:16 2019 +0000
+++ b/sys/arch/amd64/include/csan.h Wed Nov 06 06:57:22 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: csan.h,v 1.1 2019/11/05 20:19:17 maxv Exp $ */
+/* $NetBSD: csan.h,v 1.2 2019/11/06 06:57:22 maxv Exp $ */
/*
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
static inline bool
kcsan_md_is_avail(void)
{
- return (x86_read_psl() & PSL_I) == 0;
+ return true;
}
static inline void
diff -r 34157cd0e933 -r da68ad366326 sys/kern/subr_csan.c
--- a/sys/kern/subr_csan.c Wed Nov 06 04:17:16 2019 +0000
+++ b/sys/kern/subr_csan.c Wed Nov 06 06:57:22 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_csan.c,v 1.1 2019/11/05 20:19:17 maxv Exp $ */
+/* $NetBSD: subr_csan.c,v 1.2 2019/11/06 06:57:22 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.1 2019/11/05 20:19:17 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_csan.c,v 1.2 2019/11/06 06:57:22 maxv Exp $");
#include "opt_kcsan.h"
@@ -69,8 +69,8 @@
#define __RET_ADDR (uintptr_t)__builtin_return_address(0)
-#define KCSAN_NACCESSES 2000
-#define KCSAN_DELAY 10000 /* 10 milliseconds */
+#define KCSAN_NACCESSES 1024
+#define KCSAN_DELAY 10 /* 10 microseconds */
/* -------------------------------------------------------------------------- */
Home |
Main Index |
Thread Index |
Old Index