The non-standard, non-portable type cpu_set_t was created specifically to support the NuttX internal, SMP implementation. Any resemblance to any other cpu_set_t would be purely coincidental. However it appears that that coincidence has occurred. cpu_set_t is an equivalent, non-standard, non-portable type in the GNU C library. Compilation of libgnat expects this non-standard type to be defined. Who am I to standard in the way of progress? This commit removes the conditioning on CONFIG_SMP so that cpu_set_t is typed (as a uint8_t) even if CONFIG_SMP is not defined. Reference: Bitbucket issue 164.
This commit is contained in:
parent
d6ad7ebd47
commit
58743b7488
@ -280,6 +280,8 @@ typedef volatile uint32_t cpu_set_t;
|
||||
#else
|
||||
# error SMP: Extensions needed to support this number of CPUs
|
||||
#endif
|
||||
#else
|
||||
typedef volatile uint8_t cpu_set_t;
|
||||
#endif /* CONFIG_SMP */
|
||||
|
||||
/* BSD types provided only to support porting to NuttX. */
|
||||
|
Loading…
Reference in New Issue
Block a user