Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Drop no longer available macros KCOV_STORE() KCOV_L...
details: https://anonhg.NetBSD.org/src/rev/bc29cc72412c
branches: trunk
changeset: 841621:bc29cc72412c
user: kamil <kamil%NetBSD.org@localhost>
date: Sun May 26 05:41:45 2019 +0000
description:
Drop no longer available macros KCOV_STORE() KCOV_LOAD() in kcov(4)
Recently KCOV_STORE() and KCOV_LOAD() were equivalent to x=y.
Obtained from <R3x>
diffstat:
sys/kern/subr_kcov.c | 22 +++++++++++-----------
1 files changed, 11 insertions(+), 11 deletions(-)
diffs (45 lines):
diff -r 4c8d171ec380 -r bc29cc72412c sys/kern/subr_kcov.c
--- a/sys/kern/subr_kcov.c Sun May 26 04:52:07 2019 +0000
+++ b/sys/kern/subr_kcov.c Sun May 26 05:41:45 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_kcov.c,v 1.7 2019/04/07 21:01:43 kamil Exp $ */
+/* $NetBSD: subr_kcov.c,v 1.8 2019/05/26 05:41:45 kamil Exp $ */
/*
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -380,11 +380,11 @@
return;
}
- idx = KCOV_LOAD(kd->buf[0]);
+ idx = kd->buf[0];
if (idx < kd->bufnent) {
- KCOV_STORE(kd->buf[idx+1],
- (intptr_t)__builtin_return_address(0));
- KCOV_STORE(kd->buf[0], idx + 1);
+ kd->buf[idx+1] =
+ (intptr_t)__builtin_return_address(0);
+ kd->buf[0] = idx + 1;
}
}
@@ -421,13 +421,13 @@
return;
}
- idx = KCOV_LOAD(kd->buf[0]);
+ idx = kd->buf[0];
if ((idx * 4 + 4) <= kd->bufnent) {
- KCOV_STORE(kd->buf[idx * 4 + 1], type);
- KCOV_STORE(kd->buf[idx * 4 + 2], arg1);
- KCOV_STORE(kd->buf[idx * 4 + 3], arg2);
- KCOV_STORE(kd->buf[idx * 4 + 4], pc);
- KCOV_STORE(kd->buf[0], idx + 1);
+ kd->buf[idx * 4 + 1] = type;
+ kd->buf[idx * 4 + 2] = arg1;
+ kd->buf[idx * 4 + 3] = arg2;
+ kd->buf[idx * 4 + 4] = pc;
+ kd->buf[0] = idx + 1;
}
}
Home |
Main Index |
Thread Index |
Old Index