Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm Oops, the cast is required



details:   https://anonhg.NetBSD.org/src/rev/840a1113f844
branches:  trunk
changeset: 1006648:840a1113f844
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Jan 22 10:52:35 2020 +0000

description:
Oops, the cast is required

diffstat:

 sys/arch/arm/arm/arm_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4ae88d566cb7 -r 840a1113f844 sys/arch/arm/arm/arm_machdep.c
--- a/sys/arch/arm/arm/arm_machdep.c    Wed Jan 22 08:32:33 2020 +0000
+++ b/sys/arch/arm/arm/arm_machdep.c    Wed Jan 22 10:52:35 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm_machdep.c,v 1.61 2020/01/21 04:59:47 skrll Exp $   */
+/*     $NetBSD: arm_machdep.c,v 1.62 2020/01/22 10:52:35 skrll Exp $   */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -80,7 +80,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: arm_machdep.c,v 1.61 2020/01/21 04:59:47 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm_machdep.c,v 1.62 2020/01/22 10:52:35 skrll Exp $");
 
 #include <sys/atomic.h>
 #include <sys/cpu.h>
@@ -309,7 +309,7 @@
 void
 cpu_kpreempt_exit(uintptr_t where)
 {
-       atomic_and_uint(&curcpu()->ci_astpending, ~__BIT(1));
+       atomic_and_uint(&curcpu()->ci_astpending, (unsigned int)~__BIT(1));
 }
 
 bool



Home | Main Index | Thread Index | Old Index