Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm Use __BIT. NFC.
details: https://anonhg.NetBSD.org/src/rev/60ab5a2d06e0
branches: trunk
changeset: 993874:60ab5a2d06e0
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Oct 06 16:04:21 2018 +0000
description:
Use __BIT. NFC.
diffstat:
sys/arch/arm/arm32/cpu.c | 6 +++---
sys/arch/arm/broadcom/bcm283x_platform.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 776ac3dd9e26 -r 60ab5a2d06e0 sys/arch/arm/arm32/cpu.c
--- a/sys/arch/arm/arm32/cpu.c Sat Oct 06 15:54:55 2018 +0000
+++ b/sys/arch/arm/arm32/cpu.c Sat Oct 06 16:04:21 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.120 2018/08/15 06:06:05 skrll Exp $ */
+/* $NetBSD: cpu.c,v 1.121 2018/10/06 16:04:21 skrll Exp $ */
/*
* Copyright (c) 1995 Mark Brinicombe.
@@ -46,7 +46,7 @@
#include "opt_multiprocessor.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.120 2018/08/15 06:06:05 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.121 2018/10/06 16:04:21 skrll Exp $");
#include <sys/param.h>
#include <sys/conf.h>
@@ -116,7 +116,7 @@
ci->ci_ctrl = cpu_info_store.ci_ctrl;
ci->ci_undefsave[2] = cpu_info_store.ci_undefsave[2];
cpu_info[ci->ci_cpuid] = ci;
- if ((arm_cpu_hatched & (1 << id)) == 0) {
+ if ((arm_cpu_hatched & __BIT(id)) == 0) {
ci->ci_dev = dv;
dv->dv_private = ci;
aprint_naive(": disabled\n");
diff -r 776ac3dd9e26 -r 60ab5a2d06e0 sys/arch/arm/broadcom/bcm283x_platform.c
--- a/sys/arch/arm/broadcom/bcm283x_platform.c Sat Oct 06 15:54:55 2018 +0000
+++ b/sys/arch/arm/broadcom/bcm283x_platform.c Sat Oct 06 16:04:21 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bcm283x_platform.c,v 1.18 2018/09/10 11:05:12 ryo Exp $ */
+/* $NetBSD: bcm283x_platform.c,v 1.19 2018/10/06 16:04:21 skrll Exp $ */
/*-
* Copyright (c) 2017 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm283x_platform.c,v 1.18 2018/09/10 11:05:12 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm283x_platform.c,v 1.19 2018/10/06 16:04:21 skrll Exp $");
#include "opt_arm_debug.h"
#include "opt_bcm283x.h"
@@ -771,7 +771,7 @@
}
for (size_t i = 1; i < arm_cpu_max; i++) {
- if ((arm_cpu_hatched & (1 << i)) == 0) {
+ if ((arm_cpu_hatched & __BIT(i)) == 0) {
printf("%s: warning: cpu%zu failed to hatch\n",
__func__, i);
}
Home |
Main Index |
Thread Index |
Old Index