Module Name:    src
Committed By:   dholland
Date:           Mon Aug  1 18:09:50 UTC 2016

Modified Files:
        src/sys/arch/mips/rmi: rmixl_intr.c

Log Message:
PR 51384 David Binderman: don't shift into the void


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/mips/rmi/rmixl_intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/rmi/rmixl_intr.c
diff -u src/sys/arch/mips/rmi/rmixl_intr.c:1.10 src/sys/arch/mips/rmi/rmixl_intr.c:1.11
--- src/sys/arch/mips/rmi/rmixl_intr.c:1.10	Sat Apr 23 10:15:30 2016
+++ src/sys/arch/mips/rmi/rmixl_intr.c	Mon Aug  1 18:09:50 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: rmixl_intr.c,v 1.10 2016/04/23 10:15:30 skrll Exp $	*/
+/*	$NetBSD: rmixl_intr.c,v 1.11 2016/08/01 18:09:50 dholland Exp $	*/
 
 /*-
  * Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rmixl_intr.c,v 1.10 2016/04/23 10:15:30 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rmixl_intr.c,v 1.11 2016/08/01 18:09:50 dholland Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -978,7 +978,7 @@ static int
 rmixl_ipi_intr(void *arg)
 {
 	struct cpu_info * const ci = curcpu();
-	const uint64_t ipi_mask = 1 << (uintptr_t)arg;
+	const uint64_t ipi_mask = 1ULL << (uintptr_t)arg;
 
 	KASSERT(ci->ci_cpl >= IPL_SCHED);
 	KASSERT((uintptr_t)arg < NIPIS);

Reply via email to