Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Make the result from SOFTIPLMASK match th...



details:   https://anonhg.NetBSD.org/src/rev/f9758c86aec2
branches:  trunk
changeset: 780218:f9758c86aec2
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jul 16 06:33:05 2012 +0000

description:
Make the result from SOFTIPLMASK match the comment.

"Wouldn't hurt" from matt@

diffstat:

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

diffs (27 lines):

diff -r 7a557d16c793 -r f9758c86aec2 sys/arch/arm/arm32/arm32_machdep.c
--- a/sys/arch/arm/arm32/arm32_machdep.c        Mon Jul 16 06:26:43 2012 +0000
+++ b/sys/arch/arm/arm32/arm32_machdep.c        Mon Jul 16 06:33:05 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm32_machdep.c,v 1.77 2012/07/16 06:26:43 skrll Exp $ */
+/*     $NetBSD: arm32_machdep.c,v 1.78 2012/07/16 06:33:05 skrll Exp $ */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.77 2012/07/16 06:26:43 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_machdep.c,v 1.78 2012/07/16 06:33:05 skrll Exp $");
 
 #include "opt_modular.h"
 #include "opt_md.h"
@@ -420,7 +420,7 @@
  * SOFTIPLMASK(IPL_SOFTNET)    = 0x00000008
  * SOFTIPLMASK(IPL_SOFTSERIAL) = 0x00000000
  */
-#define        SOFTIPLMASK(ipl) (0x0f << (ipl))
+#define        SOFTIPLMASK(ipl) ((0x0f << (ipl)) & 0x0f)
 
 void softint_switch(lwp_t *, int);
 



Home | Main Index | Thread Index | Old Index