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/35203b869a91
branches:  trunk
changeset: 848247:35203b869a91
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 31694554b0b1 -r 35203b869a91 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