Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Make sure PT_F_* bits are uintptr_t.
details: https://anonhg.NetBSD.org/src/rev/10a6ea39aaaa
branches: trunk
changeset: 1009478:10a6ea39aaaa
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Apr 24 05:21:18 2020 +0000
description:
Make sure PT_F_* bits are uintptr_t.
diffstat:
sys/kern/kern_proc.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 27c0cd12086a -r 10a6ea39aaaa sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c Fri Apr 24 04:55:40 2020 +0000
+++ b/sys/kern/kern_proc.c Fri Apr 24 05:21:18 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_proc.c,v 1.247 2020/04/24 03:22:06 thorpej Exp $ */
+/* $NetBSD: kern_proc.c,v 1.248 2020/04/24 05:21:18 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2006, 2007, 2008, 2020 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.247 2020/04/24 03:22:06 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.248 2020/04/24 05:21:18 thorpej Exp $");
#ifdef _KERNEL_OPT
#include "opt_kstack.h"
@@ -143,10 +143,10 @@
pid_t pt_pid;
};
-#define PT_F_FREE __BIT(0)
+#define PT_F_FREE ((uintptr_t)__BIT(0))
#define PT_F_LWP 0 /* pseudo-flag */
-#define PT_F_PROC __BIT(1)
-#define PT_F_HIDDEN __BIT(2)
+#define PT_F_PROC ((uintptr_t)__BIT(1))
+#define PT_F_HIDDEN ((uintptr_t)__BIT(2))
#define PT_F_TYPEBITS (PT_F_FREE|PT_F_PROC)
#define PT_F_ALLBITS (PT_F_FREE|PT_F_PROC|PT_F_HIDDEN)
Home |
Main Index |
Thread Index |
Old Index