Tue Jan 28 16:40:27 2020 UTC ()
Put pri_t back to an int.  It looks like there might be a sign extension
issue somewhere but it's not worth the hassle trying to find it.


(ad)
diff -r1.198 -r1.199 src/sys/sys/lwp.h
diff -r1.103 -r1.104 src/sys/sys/types.h

cvs diff -r1.198 -r1.199 src/sys/sys/lwp.h (expand / switch to context diff)
--- src/sys/sys/lwp.h 2020/01/25 15:41:52 1.198
+++ src/sys/sys/lwp.h 2020/01/28 16:40:27 1.199
@@ -1,4 +1,4 @@
-/*	$NetBSD: lwp.h,v 1.198 2020/01/25 15:41:52 ad Exp $	*/
+/*	$NetBSD: lwp.h,v 1.199 2020/01/28 16:40:27 ad Exp $	*/
 
 /*
  * Copyright (c) 2001, 2006, 2007, 2008, 2009, 2010, 2019, 2020
@@ -103,7 +103,7 @@
 	int		l_biglocks;	/* l: biglock count before sleep */
 	short		l_stat;		/* l: overall LWP status */
 	short		l_class;	/* l: scheduling class */
-	short		l_kpriority;	/* !: has kernel priority boost */
+	int		l_kpriority;	/* !: has kernel priority boost */
 	pri_t		l_kpribase;	/* !: kernel priority base level */
 	pri_t		l_priority;	/* l: scheduler priority */
 	pri_t		l_inheritedprio;/* l: inherited priority */

cvs diff -r1.103 -r1.104 src/sys/sys/types.h (expand / switch to context diff)
--- src/sys/sys/types.h 2020/01/12 21:40:44 1.103
+++ src/sys/sys/types.h 2020/01/28 16:40:27 1.104
@@ -1,4 +1,4 @@
-/*	$NetBSD: types.h,v 1.103 2020/01/12 21:40:44 ad Exp $	*/
+/*	$NetBSD: types.h,v 1.104 2020/01/28 16:40:27 ad Exp $	*/
 
 /*-
  * Copyright (c) 1982, 1986, 1991, 1993, 1994
@@ -317,7 +317,7 @@
 
 typedef struct kauth_cred *kauth_cred_t;
 
-typedef short pri_t;
+typedef int pri_t;
 
 #endif