Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hppa/hppa Convert some assignments into KASSERTs.
details: https://anonhg.NetBSD.org/src/rev/7362b3e1aca8
branches: trunk
changeset: 373736:7362b3e1aca8
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Feb 25 08:30:31 2023 +0000
description:
Convert some assignments into KASSERTs.
l_md is zeroised by lwp_create with
memset(&l2->l_startzero, 0, sizeof(*l2) -
offsetof(lwp_t, l_startzero));
diffstat:
sys/arch/hppa/hppa/vm_machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 819448ad9b8c -r 7362b3e1aca8 sys/arch/hppa/hppa/vm_machdep.c
--- a/sys/arch/hppa/hppa/vm_machdep.c Sat Feb 25 08:22:00 2023 +0000
+++ b/sys/arch/hppa/hppa/vm_machdep.c Sat Feb 25 08:30:31 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vm_machdep.c,v 1.57 2022/09/29 06:39:59 skrll Exp $ */
+/* $NetBSD: vm_machdep.c,v 1.58 2023/02/25 08:30:31 skrll Exp $ */
/* $OpenBSD: vm_machdep.c,v 1.64 2008/09/30 18:54:26 miod Exp $ */
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.57 2022/09/29 06:39:59 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.58 2023/02/25 08:30:31 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -96,8 +96,8 @@
pcb1 = lwp_getpcb(l1);
pcb2 = lwp_getpcb(l2);
- l2->l_md.md_astpending = 0;
- l2->l_md.md_flags = 0;
+ KASSERT(l2->l_md.md_astpending == 0);
+ KASSERT(l2->l_md.md_flags == 0);
/* Flush the parent LWP out of the FPU. */
hppa_fpu_flush(l1);
Home |
Main Index |
Thread Index |
Old Index