Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/include USE __BIT() for CPUF_* flags. NFCI.



details:   https://anonhg.NetBSD.org/src/rev/0b8f2d365b98
branches:  trunk
changeset: 378151:0b8f2d365b98
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Jul 23 07:20:45 2023 +0000

description:
USE __BIT() for CPUF_* flags. NFCI.

diffstat:

 sys/arch/mips/include/cpu.h |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (26 lines):

diff -r f9747dc0015e -r 0b8f2d365b98 sys/arch/mips/include/cpu.h
--- a/sys/arch/mips/include/cpu.h       Sun Jul 23 05:54:25 2023 +0000
+++ b/sys/arch/mips/include/cpu.h       Sun Jul 23 07:20:45 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.134 2023/01/31 21:11:24 andvar Exp $ */
+/*     $NetBSD: cpu.h,v 1.135 2023/07/23 07:20:45 skrll Exp $  */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -150,11 +150,11 @@ struct cpu_info {
        struct evcnt ci_evcnt_synci_deferred_rqst;
        struct evcnt ci_evcnt_synci_ipi_rqst;
 
-#define        CPUF_PRIMARY    0x01            /* CPU is primary CPU */
-#define        CPUF_PRESENT    0x02            /* CPU is present */
-#define        CPUF_RUNNING    0x04            /* CPU is running */
-#define        CPUF_PAUSED     0x08            /* CPU is paused */
-#define        CPUF_USERPMAP   0x20            /* CPU has a user pmap activated */
+#define        CPUF_PRIMARY    __BIT(0)        /* CPU is primary CPU */
+#define        CPUF_PRESENT    __BIT(1)        /* CPU is present */
+#define        CPUF_RUNNING    __BIT(2)        /* CPU is running */
+#define        CPUF_PAUSED     __BIT(3)        /* CPU is paused */
+#define        CPUF_USERPMAP   __BIT(5)        /* CPU has a user pmap activated */
        kcpuset_t *ci_shootdowncpus;
        kcpuset_t *ci_multicastcpus;
        kcpuset_t *ci_watchcpus;



Home | Main Index | Thread Index | Old Index