RTEMS 6.1-rc5
Loading...
Searching...
No Matches
processormask.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
12/*
13 * Copyright (C) 2016, 2017 embedded brains GmbH & Co. KG
14 *
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 * 1. Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
28 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
29 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
30 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
31 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
32 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
33 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
34 * POSSIBILITY OF SUCH DAMAGE.
35 */
36
37#ifndef _RTEMS_SCORE_PROCESSORMASK_H
38#define _RTEMS_SCORE_PROCESSORMASK_H
39
40#include <rtems/score/cpu.h>
41
42#include <sys/_bitset.h>
43
44#ifdef __cplusplus
45extern "C" {
46#endif /* __cplusplus */
47
48/*
49 * Recent Newlib versions provide the bitset defines in the system reserved
50 * namespace.
51 */
52#ifndef __BIT_AND2
53#define __BIT_AND2 BIT_AND2
54#endif
55#ifndef __BIT_CLR
56#define __BIT_CLR BIT_CLR
57#endif
58#ifndef __BIT_CMP
59#define __BIT_CMP BIT_CMP
60#endif
61#ifndef __BIT_COPY
62#define __BIT_COPY BIT_COPY
63#endif
64#ifndef __BIT_COUNT
65#define __BIT_COUNT BIT_COUNT
66#endif
67#ifndef __BITSET_DEFINE
68#define __BITSET_DEFINE BITSET_DEFINE
69#endif
70#ifndef __BIT_EMPTY
71#define __BIT_EMPTY BIT_EMPTY
72#endif
73#ifndef __BIT_FILL
74#define __BIT_FILL BIT_FILL
75#endif
76#ifndef __BIT_FLS
77#define __BIT_FLS BIT_FLS
78#endif
79#ifndef __BIT_ISSET
80#define __BIT_ISSET BIT_ISSET
81#endif
82#ifndef __BIT_OR2
83#define __BIT_OR2 BIT_OR2
84#endif
85#ifndef __BIT_OVERLAP
86#define __BIT_OVERLAP BIT_OVERLAP
87#endif
88#ifndef __BIT_SET
89#define __BIT_SET BIT_SET
90#endif
91#ifndef __BIT_SETOF
92#define __BIT_SETOF BIT_SETOF
93#endif
94#ifndef __BIT_SUBSET
95#define __BIT_SUBSET BIT_SUBSET
96#endif
97#ifndef __BIT_XOR2
98#define __BIT_XOR2 BIT_XOR2
99#endif
100#ifndef __BIT_ZERO
101#define __BIT_ZERO BIT_ZERO
102#endif
103
122typedef __BITSET_DEFINE( Processor_mask, CPU_MAXIMUM_PROCESSORS ) Processor_mask;
123
126#ifdef __cplusplus
127}
128#endif /* __cplusplus */
129
130#endif /* _RTEMS_SCORE_PROCESSORMASK_H */