forked from Imagelibrary/rtems
Convert to "bool".
This commit is contained in:
@@ -19,12 +19,12 @@
|
|||||||
#ifndef _RTEMS_RTEMS_ASR_H
|
#ifndef _RTEMS_RTEMS_ASR_H
|
||||||
#define _RTEMS_RTEMS_ASR_H
|
#define _RTEMS_RTEMS_ASR_H
|
||||||
|
|
||||||
|
#include <rtems/rtems/modes.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <rtems/rtems/modes.h>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup ClassicASR Classic API ASR Support
|
* @defgroup ClassicASR Classic API ASR Support
|
||||||
*
|
*
|
||||||
@@ -57,7 +57,7 @@ typedef rtems_asr ( *rtems_asr_entry )(
|
|||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/** This field indicates if are ASRs enabled currently. */
|
/** This field indicates if are ASRs enabled currently. */
|
||||||
boolean is_enabled;
|
bool is_enabled;
|
||||||
/** This field indicates if address of the signal handler function. */
|
/** This field indicates if address of the signal handler function. */
|
||||||
rtems_asr_entry handler;
|
rtems_asr_entry handler;
|
||||||
/** This field indicates if the task mode the signal will run with. */
|
/** This field indicates if the task mode the signal will run with. */
|
||||||
|
|||||||
@@ -245,7 +245,7 @@ rtems_status_code rtems_clock_get_uptime(
|
|||||||
*
|
*
|
||||||
* @return This method returns TRUE if the TOD is valid and FALSE otherwise.
|
* @return This method returns TRUE if the TOD is valid and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
boolean _TOD_Validate(
|
bool _TOD_Validate(
|
||||||
rtems_time_of_day *the_tod
|
rtems_time_of_day *the_tod
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -18,13 +18,13 @@
|
|||||||
#ifndef _RTEMS_RTEMS_CONFIG_H
|
#ifndef _RTEMS_RTEMS_CONFIG_H
|
||||||
#define _RTEMS_RTEMS_CONFIG_H
|
#define _RTEMS_RTEMS_CONFIG_H
|
||||||
|
|
||||||
|
#include <rtems/rtems/types.h>
|
||||||
|
#include <rtems/rtems/tasks.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <rtems/rtems/types.h>
|
|
||||||
#include <rtems/rtems/tasks.h>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup ClassicConfig Classic API Configuration
|
* @defgroup ClassicConfig Classic API Configuration
|
||||||
*
|
*
|
||||||
@@ -51,7 +51,7 @@ typedef struct {
|
|||||||
* This field indicates whether Classic API notepads are
|
* This field indicates whether Classic API notepads are
|
||||||
* enabled or disabled.
|
* enabled or disabled.
|
||||||
*/
|
*/
|
||||||
boolean notepads_enabled;
|
bool notepads_enabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This field contains the maximum number of Classic API
|
* This field contains the maximum number of Classic API
|
||||||
|
|||||||
@@ -15,15 +15,15 @@
|
|||||||
#ifndef _RTEMS_RTEMS_OBJECT_H
|
#ifndef _RTEMS_RTEMS_OBJECT_H
|
||||||
#define _RTEMS_RTEMS_OBJECT_H
|
#define _RTEMS_RTEMS_OBJECT_H
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <rtems/score/object.h>
|
#include <rtems/score/object.h>
|
||||||
#include <rtems/rtems/status.h>
|
#include <rtems/rtems/status.h>
|
||||||
#include <rtems/rtems/types.h>
|
#include <rtems/rtems/types.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @defgroup ClassicClassInfo Classic API Class Information
|
* @defgroup ClassicClassInfo Classic API Class Information
|
||||||
*
|
*
|
||||||
@@ -43,7 +43,7 @@ typedef struct {
|
|||||||
/** This field is the number of object instances configured for this class. */
|
/** This field is the number of object instances configured for this class. */
|
||||||
uint32_t maximum;
|
uint32_t maximum;
|
||||||
/** This field indicates if the class is configured for auto-extend. */
|
/** This field indicates if the class is configured for auto-extend. */
|
||||||
boolean auto_extend;
|
bool auto_extend;
|
||||||
/** This field is the number of currently unallocated objects. */
|
/** This field is the number of currently unallocated objects. */
|
||||||
uint32_t unallocated;
|
uint32_t unallocated;
|
||||||
} rtems_object_api_class_information;
|
} rtems_object_api_class_information;
|
||||||
|
|||||||
@@ -202,7 +202,7 @@ rtems_status_code rtems_semaphore_flush(
|
|||||||
* option_set, then the routine returns. Otherwise, the calling task
|
* option_set, then the routine returns. Otherwise, the calling task
|
||||||
* is blocked until a unit becomes available.
|
* is blocked until a unit becomes available.
|
||||||
*/
|
*/
|
||||||
boolean _Semaphore_Seize(
|
bool _Semaphore_Seize(
|
||||||
Semaphore_Control *the_semaphore,
|
Semaphore_Control *the_semaphore,
|
||||||
uint32_t option_set
|
uint32_t option_set
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ extern "C" {
|
|||||||
*
|
*
|
||||||
* @return TRUE if successful
|
* @return TRUE if successful
|
||||||
*/
|
*/
|
||||||
boolean rtems_workspace_get_information(
|
bool rtems_workspace_get_information(
|
||||||
Heap_Information_block *the_info
|
Heap_Information_block *the_info
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ boolean rtems_workspace_get_information(
|
|||||||
*
|
*
|
||||||
* @return TRUE if successful
|
* @return TRUE if successful
|
||||||
*/
|
*/
|
||||||
boolean rtems_workspace_allocate(
|
bool rtems_workspace_allocate(
|
||||||
size_t bytes,
|
size_t bytes,
|
||||||
void **pointer
|
void **pointer
|
||||||
);
|
);
|
||||||
@@ -93,7 +93,7 @@ boolean rtems_workspace_allocate(
|
|||||||
*
|
*
|
||||||
* @return TRUE if successful
|
* @return TRUE if successful
|
||||||
*/
|
*/
|
||||||
boolean rtems_workspace_free(
|
bool rtems_workspace_free(
|
||||||
void *pointer
|
void *pointer
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ RTEMS_INLINE_ROUTINE void _ASR_Initialize (
|
|||||||
ASR_Information *information
|
ASR_Information *information
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
information->is_enabled = TRUE;
|
information->is_enabled = true;
|
||||||
information->handler = NULL;
|
information->handler = NULL;
|
||||||
information->mode_set = RTEMS_DEFAULT_MODES;
|
information->mode_set = RTEMS_DEFAULT_MODES;
|
||||||
information->signals_posted = 0;
|
information->signals_posted = 0;
|
||||||
@@ -73,7 +73,7 @@ RTEMS_INLINE_ROUTINE void _ASR_Swap_signals (
|
|||||||
* This function returns TRUE if the given asr_handler is NULL and
|
* This function returns TRUE if the given asr_handler is NULL and
|
||||||
* FALSE otherwise.
|
* FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _ASR_Is_null_handler (
|
RTEMS_INLINE_ROUTINE bool _ASR_Is_null_handler (
|
||||||
rtems_asr_entry asr_handler
|
rtems_asr_entry asr_handler
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -86,7 +86,7 @@ RTEMS_INLINE_ROUTINE boolean _ASR_Is_null_handler (
|
|||||||
* This function returns TRUE if there are signals pending in the
|
* This function returns TRUE if there are signals pending in the
|
||||||
* given RTEMS_ASR information record and FALSE otherwise.
|
* given RTEMS_ASR information record and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _ASR_Are_signals_pending (
|
RTEMS_INLINE_ROUTINE bool _ASR_Are_signals_pending (
|
||||||
ASR_Information *information
|
ASR_Information *information
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -62,11 +62,11 @@ RTEMS_INLINE_ROUTINE rtems_attribute _Attributes_Clear (
|
|||||||
* This function returns TRUE if the floating point attribute is
|
* This function returns TRUE if the floating point attribute is
|
||||||
* enabled in the attribute_set and FALSE otherwise.
|
* enabled in the attribute_set and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_floating_point(
|
RTEMS_INLINE_ROUTINE bool _Attributes_Is_floating_point(
|
||||||
rtems_attribute attribute_set
|
rtems_attribute attribute_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return ( attribute_set & RTEMS_FLOATING_POINT );
|
return ( attribute_set & RTEMS_FLOATING_POINT ) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
@@ -76,11 +76,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_floating_point(
|
|||||||
* This function returns TRUE if the global object attribute is
|
* This function returns TRUE if the global object attribute is
|
||||||
* enabled in the attribute_set and FALSE otherwise.
|
* enabled in the attribute_set and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_global(
|
RTEMS_INLINE_ROUTINE bool _Attributes_Is_global(
|
||||||
rtems_attribute attribute_set
|
rtems_attribute attribute_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return ( attribute_set & RTEMS_GLOBAL );
|
return ( attribute_set & RTEMS_GLOBAL ) ? true : false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -90,11 +90,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_global(
|
|||||||
* This function returns TRUE if the priority attribute is
|
* This function returns TRUE if the priority attribute is
|
||||||
* enabled in the attribute_set and FALSE otherwise.
|
* enabled in the attribute_set and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority(
|
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority(
|
||||||
rtems_attribute attribute_set
|
rtems_attribute attribute_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return ( attribute_set & RTEMS_PRIORITY );
|
return ( attribute_set & RTEMS_PRIORITY ) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -103,7 +103,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority(
|
|||||||
* This function returns TRUE if the binary semaphore attribute is
|
* This function returns TRUE if the binary semaphore attribute is
|
||||||
* enabled in the attribute_set and FALSE otherwise.
|
* enabled in the attribute_set and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_binary_semaphore(
|
RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore(
|
||||||
rtems_attribute attribute_set
|
rtems_attribute attribute_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -116,7 +116,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_binary_semaphore(
|
|||||||
* This function returns TRUE if the simple binary semaphore attribute is
|
* This function returns TRUE if the simple binary semaphore attribute is
|
||||||
* enabled in the attribute_set and FALSE otherwise.
|
* enabled in the attribute_set and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_simple_binary_semaphore(
|
RTEMS_INLINE_ROUTINE bool _Attributes_Is_simple_binary_semaphore(
|
||||||
rtems_attribute attribute_set
|
rtems_attribute attribute_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -130,7 +130,7 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_simple_binary_semaphore(
|
|||||||
* This function returns TRUE if the counting semaphore attribute is
|
* This function returns TRUE if the counting semaphore attribute is
|
||||||
* enabled in the attribute_set and FALSE otherwise.
|
* enabled in the attribute_set and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_counting_semaphore(
|
RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(
|
||||||
rtems_attribute attribute_set
|
rtems_attribute attribute_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -143,11 +143,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_counting_semaphore(
|
|||||||
* This function returns TRUE if the priority inheritance attribute
|
* This function returns TRUE if the priority inheritance attribute
|
||||||
* is enabled in the attribute_set and FALSE otherwise.
|
* is enabled in the attribute_set and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_inherit_priority(
|
RTEMS_INLINE_ROUTINE bool _Attributes_Is_inherit_priority(
|
||||||
rtems_attribute attribute_set
|
rtems_attribute attribute_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return ( attribute_set & RTEMS_INHERIT_PRIORITY );
|
return ( attribute_set & RTEMS_INHERIT_PRIORITY ) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -156,11 +156,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_inherit_priority(
|
|||||||
* This function returns TRUE if the priority ceiling attribute
|
* This function returns TRUE if the priority ceiling attribute
|
||||||
* is enabled in the attribute_set and FALSE otherwise.
|
* is enabled in the attribute_set and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority_ceiling(
|
RTEMS_INLINE_ROUTINE bool _Attributes_Is_priority_ceiling(
|
||||||
rtems_attribute attribute_set
|
rtems_attribute attribute_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return ( attribute_set & RTEMS_PRIORITY_CEILING );
|
return ( attribute_set & RTEMS_PRIORITY_CEILING ) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -169,11 +169,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_priority_ceiling(
|
|||||||
* This function returns TRUE if the barrier automatic release
|
* This function returns TRUE if the barrier automatic release
|
||||||
* attribute is enabled in the attribute_set and FALSE otherwise.
|
* attribute is enabled in the attribute_set and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_barrier_automatic(
|
RTEMS_INLINE_ROUTINE bool _Attributes_Is_barrier_automatic(
|
||||||
rtems_attribute attribute_set
|
rtems_attribute attribute_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return ( attribute_set & RTEMS_BARRIER_AUTOMATIC_RELEASE );
|
return ( attribute_set & RTEMS_BARRIER_AUTOMATIC_RELEASE ) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -182,11 +182,11 @@ RTEMS_INLINE_ROUTINE boolean _Attributes_Is_barrier_automatic(
|
|||||||
* This function returns TRUE if the system task attribute
|
* This function returns TRUE if the system task attribute
|
||||||
* is enabled in the attribute_set and FALSE otherwise.
|
* is enabled in the attribute_set and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Attributes_Is_system_task(
|
RTEMS_INLINE_ROUTINE bool _Attributes_Is_system_task(
|
||||||
rtems_attribute attribute_set
|
rtems_attribute attribute_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return ( attribute_set & RTEMS_SYSTEM_TASK );
|
return ( attribute_set & RTEMS_SYSTEM_TASK ) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get (
|
|||||||
*
|
*
|
||||||
* This function returns TRUE if the_barrier is NULL and FALSE otherwise.
|
* This function returns TRUE if the_barrier is NULL and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Barrier_Is_null (
|
RTEMS_INLINE_ROUTINE bool _Barrier_Is_null (
|
||||||
Barrier_Control *the_barrier
|
Barrier_Control *the_barrier
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -75,9 +75,9 @@ RTEMS_INLINE_ROUTINE Dual_ported_memory_Control *_Dual_ported_memory_Get (
|
|||||||
/**
|
/**
|
||||||
* @brief Dual_ported_memory_Is_null
|
* @brief Dual_ported_memory_Is_null
|
||||||
*
|
*
|
||||||
* This function returns TRUE if the_port is NULL and FALSE otherwise.
|
* This function returns true if the_port is NULL and false otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Dual_ported_memory_Is_null(
|
RTEMS_INLINE_ROUTINE bool _Dual_ported_memory_Is_null(
|
||||||
Dual_ported_memory_Control *the_port
|
Dual_ported_memory_Control *the_port
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
* This function returns TRUE if on events are posted in the event_set,
|
* This function returns TRUE if on events are posted in the event_set,
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Event_sets_Is_empty(
|
RTEMS_INLINE_ROUTINE bool _Event_sets_Is_empty(
|
||||||
rtems_event_set the_event_set
|
rtems_event_set the_event_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
* This function places the_message at the rear of the outstanding
|
* This function places the_message at the rear of the outstanding
|
||||||
* messages on the_message_queue.
|
* messages on the_message_queue.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Message_queue_Is_null (
|
RTEMS_INLINE_ROUTINE bool _Message_queue_Is_null (
|
||||||
Message_queue_Control *the_message_queue
|
Message_queue_Control *the_message_queue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,12 +33,12 @@
|
|||||||
* This function returns TRUE if any of the mode flags in mask
|
* This function returns TRUE if any of the mode flags in mask
|
||||||
* are set in mode_set, and FALSE otherwise.
|
* are set in mode_set, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Modes_Mask_changed (
|
RTEMS_INLINE_ROUTINE bool _Modes_Mask_changed (
|
||||||
Modes_Control mode_set,
|
Modes_Control mode_set,
|
||||||
Modes_Control masks
|
Modes_Control masks
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return ( mode_set & masks );
|
return ( mode_set & masks ) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -47,7 +47,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Mask_changed (
|
|||||||
* This function returns TRUE if mode_set indicates that Asynchronous
|
* This function returns TRUE if mode_set indicates that Asynchronous
|
||||||
* Signal Processing is disabled, and FALSE otherwise.
|
* Signal Processing is disabled, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Modes_Is_asr_disabled (
|
RTEMS_INLINE_ROUTINE bool _Modes_Is_asr_disabled (
|
||||||
Modes_Control mode_set
|
Modes_Control mode_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -60,7 +60,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Is_asr_disabled (
|
|||||||
* This function returns TRUE if mode_set indicates that preemption
|
* This function returns TRUE if mode_set indicates that preemption
|
||||||
* is enabled, and FALSE otherwise.
|
* is enabled, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Modes_Is_preempt (
|
RTEMS_INLINE_ROUTINE bool _Modes_Is_preempt (
|
||||||
Modes_Control mode_set
|
Modes_Control mode_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -73,7 +73,7 @@ RTEMS_INLINE_ROUTINE boolean _Modes_Is_preempt (
|
|||||||
* This function returns TRUE if mode_set indicates that timeslicing
|
* This function returns TRUE if mode_set indicates that timeslicing
|
||||||
* is enabled, and FALSE otherwise.
|
* is enabled, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Modes_Is_timeslice (
|
RTEMS_INLINE_ROUTINE bool _Modes_Is_timeslice (
|
||||||
Modes_Control mode_set
|
Modes_Control mode_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,11 +33,11 @@
|
|||||||
* This function returns TRUE if the RTEMS_NO_WAIT option is enabled in
|
* This function returns TRUE if the RTEMS_NO_WAIT option is enabled in
|
||||||
* option_set, and FALSE otherwise.
|
* option_set, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Options_Is_no_wait (
|
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (
|
||||||
rtems_option option_set
|
rtems_option option_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (option_set & RTEMS_NO_WAIT);
|
return (option_set & RTEMS_NO_WAIT) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -46,11 +46,11 @@ RTEMS_INLINE_ROUTINE boolean _Options_Is_no_wait (
|
|||||||
* This function returns TRUE if the RTEMS_EVENT_ANY option is enabled in
|
* This function returns TRUE if the RTEMS_EVENT_ANY option is enabled in
|
||||||
* OPTION_SET, and FALSE otherwise.
|
* OPTION_SET, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Options_Is_any (
|
RTEMS_INLINE_ROUTINE bool _Options_Is_any (
|
||||||
rtems_option option_set
|
rtems_option option_set
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (option_set & RTEMS_EVENT_ANY);
|
return (option_set & RTEMS_EVENT_ANY) ? true : false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**@}*/
|
/**@}*/
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ RTEMS_INLINE_ROUTINE void _Partition_Free_buffer (
|
|||||||
* This function returns TRUE if the_buffer is on a valid buffer
|
* This function returns TRUE if the_buffer is on a valid buffer
|
||||||
* boundary for the_partition, and FALSE otherwise.
|
* boundary for the_partition, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_on_boundary (
|
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_on_boundary (
|
||||||
void *the_buffer,
|
void *the_buffer,
|
||||||
Partition_Control *the_partition
|
Partition_Control *the_partition
|
||||||
)
|
)
|
||||||
@@ -81,7 +81,7 @@ RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_on_boundary (
|
|||||||
* This function returns TRUE if the_buffer is a valid buffer from
|
* This function returns TRUE if the_buffer is a valid buffer from
|
||||||
* the_partition, otherwise FALSE is returned.
|
* the_partition, otherwise FALSE is returned.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_valid (
|
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_valid (
|
||||||
Chain_Node *the_buffer,
|
Chain_Node *the_buffer,
|
||||||
Partition_Control *the_partition
|
Partition_Control *the_partition
|
||||||
)
|
)
|
||||||
@@ -105,7 +105,7 @@ RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_valid (
|
|||||||
* will result in the allocation of buffers whose first byte is
|
* will result in the allocation of buffers whose first byte is
|
||||||
* properly aligned, and FALSE otherwise.
|
* properly aligned, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Partition_Is_buffer_size_aligned (
|
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned (
|
||||||
uint32_t buffer_size
|
uint32_t buffer_size
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -162,7 +162,7 @@ RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get (
|
|||||||
* This function returns TRUE if the_partition is NULL
|
* This function returns TRUE if the_partition is NULL
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Partition_Is_null (
|
RTEMS_INLINE_ROUTINE bool _Partition_Is_null (
|
||||||
Partition_Control *the_partition
|
Partition_Control *the_partition
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get (
|
|||||||
* This function returns TRUE if the_period is in the ACTIVE state,
|
* This function returns TRUE if the_period is in the ACTIVE state,
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_active (
|
RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_active (
|
||||||
Rate_monotonic_Control *the_period
|
Rate_monotonic_Control *the_period
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -89,7 +89,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_active (
|
|||||||
* This function returns TRUE if the_period is in the ACTIVE state,
|
* This function returns TRUE if the_period is in the ACTIVE state,
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_inactive (
|
RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_inactive (
|
||||||
Rate_monotonic_Control *the_period
|
Rate_monotonic_Control *the_period
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -102,7 +102,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_inactive (
|
|||||||
* This function returns TRUE if the_period is in the EXPIRED state,
|
* This function returns TRUE if the_period is in the EXPIRED state,
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_expired (
|
RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_expired (
|
||||||
Rate_monotonic_Control *the_period
|
Rate_monotonic_Control *the_period
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -114,7 +114,7 @@ RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_expired (
|
|||||||
*
|
*
|
||||||
* This function returns TRUE if the_period is NULL and FALSE otherwise.
|
* This function returns TRUE if the_period is NULL and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Rate_monotonic_Is_null (
|
RTEMS_INLINE_ROUTINE bool _Rate_monotonic_Is_null (
|
||||||
Rate_monotonic_Control *the_period
|
Rate_monotonic_Control *the_period
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment (
|
|||||||
*
|
*
|
||||||
* This function frees the_segment to the_region.
|
* This function frees the_segment to the_region.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Region_Free_segment (
|
RTEMS_INLINE_ROUTINE bool _Region_Free_segment (
|
||||||
Region_Control *the_region,
|
Region_Control *the_region,
|
||||||
void *the_segment
|
void *the_segment
|
||||||
)
|
)
|
||||||
@@ -102,7 +102,7 @@ RTEMS_INLINE_ROUTINE boolean _Region_Free_segment (
|
|||||||
*
|
*
|
||||||
* This function returns TRUE if the_region is NULL and FALSE otherwise.
|
* This function returns TRUE if the_region is NULL and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Region_Is_null (
|
RTEMS_INLINE_ROUTINE bool _Region_Is_null (
|
||||||
Region_Control *the_region
|
Region_Control *the_region
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get_interrupt_disable (
|
|||||||
*
|
*
|
||||||
* This function returns TRUE if the_semaphore is NULL and FALSE otherwise.
|
* This function returns TRUE if the_semaphore is NULL and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Semaphore_Is_null (
|
RTEMS_INLINE_ROUTINE bool _Semaphore_Is_null (
|
||||||
Semaphore_Control *the_semaphore
|
Semaphore_Control *the_semaphore
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
* This function returns TRUE if the status code is equal to RTEMS_SUCCESSFUL,
|
* This function returns TRUE if the status code is equal to RTEMS_SUCCESSFUL,
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean rtems_is_status_successful(
|
RTEMS_INLINE_ROUTINE bool rtems_is_status_successful(
|
||||||
rtems_status_code code
|
rtems_status_code code
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -46,7 +46,7 @@ RTEMS_INLINE_ROUTINE boolean rtems_is_status_successful(
|
|||||||
* This function returns TRUE if the status code1 is equal to code2,
|
* This function returns TRUE if the status code1 is equal to code2,
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean rtems_are_statuses_equal(
|
RTEMS_INLINE_ROUTINE bool rtems_are_statuses_equal(
|
||||||
rtems_status_code code1,
|
rtems_status_code code1,
|
||||||
rtems_status_code code2
|
rtems_status_code code2
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
*
|
*
|
||||||
* This function returns TRUE if the name is valid, and FALSE otherwise.
|
* This function returns TRUE if the name is valid, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE rtems_boolean rtems_is_name_valid (
|
RTEMS_INLINE_ROUTINE bool rtems_is_name_valid (
|
||||||
rtems_name name
|
rtems_name name
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ RTEMS_INLINE_ROUTINE Priority_Control _RTEMS_tasks_Priority_to_Core(
|
|||||||
* This function returns TRUE if the_priority is a valid user task priority
|
* This function returns TRUE if the_priority is a valid user task priority
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _RTEMS_tasks_Priority_is_valid (
|
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
|
||||||
rtems_task_priority the_priority
|
rtems_task_priority the_priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (
|
|||||||
* This function returns TRUE if the class is that of an INTERVAL
|
* This function returns TRUE if the class is that of an INTERVAL
|
||||||
* timer, and FALSE otherwise.
|
* timer, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Timer_Is_interval_class (
|
RTEMS_INLINE_ROUTINE bool _Timer_Is_interval_class (
|
||||||
Timer_Classes the_class
|
Timer_Classes the_class
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -88,7 +88,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_interval_class (
|
|||||||
* This function returns TRUE if the class is that of an INTERVAL
|
* This function returns TRUE if the class is that of an INTERVAL
|
||||||
* timer, and FALSE otherwise.
|
* timer, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Timer_Is_timer_of_day_class (
|
RTEMS_INLINE_ROUTINE bool _Timer_Is_timer_of_day_class (
|
||||||
Timer_Classes the_class
|
Timer_Classes the_class
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -101,7 +101,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_timer_of_day_class (
|
|||||||
* This function returns TRUE if the class is that of a DORMANT
|
* This function returns TRUE if the class is that of a DORMANT
|
||||||
* timer, and FALSE otherwise.
|
* timer, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Timer_Is_dormant_class (
|
RTEMS_INLINE_ROUTINE bool _Timer_Is_dormant_class (
|
||||||
Timer_Classes the_class
|
Timer_Classes the_class
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -113,7 +113,7 @@ RTEMS_INLINE_ROUTINE boolean _Timer_Is_dormant_class (
|
|||||||
*
|
*
|
||||||
* This function returns TRUE if the_timer is NULL and FALSE otherwise.
|
* This function returns TRUE if the_timer is NULL and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Timer_Is_null (
|
RTEMS_INLINE_ROUTINE bool _Timer_Is_null (
|
||||||
Timer_Control *the_timer
|
Timer_Control *the_timer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = {
|
|||||||
* NOTE: This routine only works for leap-years through 2099.
|
* NOTE: This routine only works for leap-years through 2099.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
boolean _TOD_Validate(
|
bool _TOD_Validate(
|
||||||
rtems_time_of_day *the_tod
|
rtems_time_of_day *the_tod
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -62,7 +62,7 @@ boolean _TOD_Validate(
|
|||||||
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
|
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
|
||||||
(the_tod->year < TOD_BASE_YEAR) ||
|
(the_tod->year < TOD_BASE_YEAR) ||
|
||||||
(the_tod->day == 0) )
|
(the_tod->day == 0) )
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
if ( (the_tod->year % 4) == 0 )
|
if ( (the_tod->year % 4) == 0 )
|
||||||
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
|
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
|
||||||
@@ -70,7 +70,7 @@ boolean _TOD_Validate(
|
|||||||
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
|
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
|
||||||
|
|
||||||
if ( the_tod->day > days_in_month )
|
if ( the_tod->day > days_in_month )
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ void rtems_interrupt_flash(
|
|||||||
|
|
||||||
#undef rtems_interrupt_is_in_progress
|
#undef rtems_interrupt_is_in_progress
|
||||||
|
|
||||||
boolean rtems_interrupt_is_in_progress( void )
|
bool rtems_interrupt_is_in_progress( void )
|
||||||
{
|
{
|
||||||
return _ISR_Is_in_progress();
|
return _ISR_Is_in_progress();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ void _Message_queue_MP_Process_packet (
|
|||||||
{
|
{
|
||||||
Message_queue_MP_Packet *the_packet;
|
Message_queue_MP_Packet *the_packet;
|
||||||
Thread_Control *the_thread;
|
Thread_Control *the_thread;
|
||||||
boolean ignored;
|
bool ignored;
|
||||||
|
|
||||||
the_packet = (Message_queue_MP_Packet *) the_packet_prefix;
|
the_packet = (Message_queue_MP_Packet *) the_packet_prefix;
|
||||||
|
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ rtems_status_code rtems_message_queue_create(
|
|||||||
register Message_queue_Control *the_message_queue;
|
register Message_queue_Control *the_message_queue;
|
||||||
CORE_message_queue_Attributes the_msgq_attributes;
|
CORE_message_queue_Attributes the_msgq_attributes;
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
boolean is_global;
|
bool is_global;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if ( !rtems_is_name_valid( name ) )
|
if ( !rtems_is_name_valid( name ) )
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ rtems_status_code rtems_message_queue_receive(
|
|||||||
{
|
{
|
||||||
register Message_queue_Control *the_message_queue;
|
register Message_queue_Control *the_message_queue;
|
||||||
Objects_Locations location;
|
Objects_Locations location;
|
||||||
boolean wait;
|
bool wait;
|
||||||
|
|
||||||
if ( !buffer )
|
if ( !buffer )
|
||||||
return RTEMS_INVALID_ADDRESS;
|
return RTEMS_INVALID_ADDRESS;
|
||||||
@@ -76,9 +76,9 @@ rtems_status_code rtems_message_queue_receive(
|
|||||||
|
|
||||||
case OBJECTS_LOCAL:
|
case OBJECTS_LOCAL:
|
||||||
if ( _Options_Is_no_wait( option_set ) )
|
if ( _Options_Is_no_wait( option_set ) )
|
||||||
wait = FALSE;
|
wait = false;
|
||||||
else
|
else
|
||||||
wait = TRUE;
|
wait = true;
|
||||||
|
|
||||||
_CORE_message_queue_Seize(
|
_CORE_message_queue_Seize(
|
||||||
&the_message_queue->message_queue,
|
&the_message_queue->message_queue,
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ void _Partition_MP_Process_packet (
|
|||||||
{
|
{
|
||||||
Partition_MP_Packet *the_packet;
|
Partition_MP_Packet *the_packet;
|
||||||
Thread_Control *the_thread;
|
Thread_Control *the_thread;
|
||||||
boolean ignored;
|
bool ignored;
|
||||||
|
|
||||||
the_packet = (Partition_MP_Packet *) the_packet_prefix;
|
the_packet = (Partition_MP_Packet *) the_packet_prefix;
|
||||||
|
|
||||||
|
|||||||
@@ -187,7 +187,7 @@ void _Region_MP_Process_packet (
|
|||||||
{
|
{
|
||||||
Region_MP_Packet *the_packet;
|
Region_MP_Packet *the_packet;
|
||||||
Thread_Control *the_thread;
|
Thread_Control *the_thread;
|
||||||
boolean ignored;
|
bool ignored;
|
||||||
|
|
||||||
the_packet = (Region_MP_Packet *) the_packet_prefix;
|
the_packet = (Region_MP_Packet *) the_packet_prefix;
|
||||||
|
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ void _Semaphore_MP_Process_packet (
|
|||||||
{
|
{
|
||||||
Semaphore_MP_Packet *the_packet;
|
Semaphore_MP_Packet *the_packet;
|
||||||
Thread_Control *the_thread;
|
Thread_Control *the_thread;
|
||||||
boolean ignored;
|
bool ignored;
|
||||||
|
|
||||||
the_packet = (Semaphore_MP_Packet *) the_packet_prefix;
|
the_packet = (Semaphore_MP_Packet *) the_packet_prefix;
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ rtems_status_code rtems_signal_send(
|
|||||||
if ( asr->is_enabled ) {
|
if ( asr->is_enabled ) {
|
||||||
_ASR_Post_signals( signal_set, &asr->signals_posted );
|
_ASR_Post_signals( signal_set, &asr->signals_posted );
|
||||||
|
|
||||||
the_thread->do_post_task_switch_extension = TRUE;
|
the_thread->do_post_task_switch_extension = true;
|
||||||
|
|
||||||
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
|
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
|
||||||
_ISR_Signals_to_thread_executing = TRUE;
|
_ISR_Signals_to_thread_executing = TRUE;
|
||||||
|
|||||||
@@ -65,12 +65,12 @@ rtems_status_code rtems_task_create(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
register Thread_Control *the_thread;
|
register Thread_Control *the_thread;
|
||||||
boolean is_fp;
|
bool is_fp;
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
Objects_MP_Control *the_global_object = NULL;
|
Objects_MP_Control *the_global_object = NULL;
|
||||||
boolean is_global;
|
bool is_global;
|
||||||
#endif
|
#endif
|
||||||
boolean status;
|
bool status;
|
||||||
rtems_attribute the_attribute_set;
|
rtems_attribute the_attribute_set;
|
||||||
Priority_Control core_priority;
|
Priority_Control core_priority;
|
||||||
RTEMS_API_Control *api;
|
RTEMS_API_Control *api;
|
||||||
@@ -102,9 +102,9 @@ rtems_status_code rtems_task_create(
|
|||||||
_Attributes_Clear( the_attribute_set, ATTRIBUTES_NOT_SUPPORTED );
|
_Attributes_Clear( the_attribute_set, ATTRIBUTES_NOT_SUPPORTED );
|
||||||
|
|
||||||
if ( _Attributes_Is_floating_point( the_attribute_set ) )
|
if ( _Attributes_Is_floating_point( the_attribute_set ) )
|
||||||
is_fp = TRUE;
|
is_fp = true;
|
||||||
else
|
else
|
||||||
is_fp = FALSE;
|
is_fp = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Validate the RTEMS API priority and convert it to the core priority range.
|
* Validate the RTEMS API priority and convert it to the core priority range.
|
||||||
@@ -120,13 +120,13 @@ rtems_status_code rtems_task_create(
|
|||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
if ( _Attributes_Is_global( the_attribute_set ) ) {
|
if ( _Attributes_Is_global( the_attribute_set ) ) {
|
||||||
|
|
||||||
is_global = TRUE;
|
is_global = true;
|
||||||
|
|
||||||
if ( !_System_state_Is_multiprocessing )
|
if ( !_System_state_Is_multiprocessing )
|
||||||
return RTEMS_MP_NOT_CONFIGURED;
|
return RTEMS_MP_NOT_CONFIGURED;
|
||||||
|
|
||||||
} else
|
} else
|
||||||
is_global = FALSE;
|
is_global = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -200,7 +200,7 @@ rtems_status_code rtems_task_create(
|
|||||||
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
|
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
|
||||||
asr = &api->Signal;
|
asr = &api->Signal;
|
||||||
|
|
||||||
asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? FALSE : TRUE;
|
asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true;
|
||||||
|
|
||||||
*id = the_thread->Object.id;
|
*id = the_thread->Object.id;
|
||||||
|
|
||||||
|
|||||||
@@ -58,8 +58,8 @@ rtems_status_code rtems_task_mode(
|
|||||||
Thread_Control *executing;
|
Thread_Control *executing;
|
||||||
RTEMS_API_Control *api;
|
RTEMS_API_Control *api;
|
||||||
ASR_Information *asr;
|
ASR_Information *asr;
|
||||||
boolean is_asr_enabled = FALSE;
|
bool is_asr_enabled = false;
|
||||||
boolean needs_asr_dispatching = FALSE;
|
bool needs_asr_dispatching = false;
|
||||||
rtems_mode old_mode;
|
rtems_mode old_mode;
|
||||||
|
|
||||||
if ( !previous_mode_set )
|
if ( !previous_mode_set )
|
||||||
@@ -111,13 +111,13 @@ rtems_status_code rtems_task_mode(
|
|||||||
needs_asr_dispatching = FALSE;
|
needs_asr_dispatching = FALSE;
|
||||||
|
|
||||||
if ( mask & RTEMS_ASR_MASK ) {
|
if ( mask & RTEMS_ASR_MASK ) {
|
||||||
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? FALSE : TRUE;
|
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
|
||||||
if ( is_asr_enabled != asr->is_enabled ) {
|
if ( is_asr_enabled != asr->is_enabled ) {
|
||||||
asr->is_enabled = is_asr_enabled;
|
asr->is_enabled = is_asr_enabled;
|
||||||
_ASR_Swap_signals( asr );
|
_ASR_Swap_signals( asr );
|
||||||
if ( _ASR_Are_signals_pending( asr ) ) {
|
if ( _ASR_Are_signals_pending( asr ) ) {
|
||||||
needs_asr_dispatching = TRUE;
|
needs_asr_dispatching = true;
|
||||||
executing->do_post_task_switch_extension = TRUE;
|
executing->do_post_task_switch_extension = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ void _RTEMS_tasks_MP_Process_packet (
|
|||||||
{
|
{
|
||||||
RTEMS_tasks_MP_Packet *the_packet;
|
RTEMS_tasks_MP_Packet *the_packet;
|
||||||
Thread_Control *the_thread;
|
Thread_Control *the_thread;
|
||||||
boolean ignored;
|
bool ignored;
|
||||||
|
|
||||||
the_packet = (RTEMS_tasks_MP_Packet *) the_packet_prefix;
|
the_packet = (RTEMS_tasks_MP_Packet *) the_packet_prefix;
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
* area.
|
* area.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
boolean _RTEMS_tasks_Create_extension(
|
bool _RTEMS_tasks_Create_extension(
|
||||||
Thread_Control *executing,
|
Thread_Control *executing,
|
||||||
Thread_Control *created
|
Thread_Control *created
|
||||||
)
|
)
|
||||||
@@ -63,7 +63,7 @@ boolean _RTEMS_tasks_Create_extension(
|
|||||||
api = _Workspace_Allocate( to_allocate );
|
api = _Workspace_Allocate( to_allocate );
|
||||||
|
|
||||||
if ( !api )
|
if ( !api )
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
created->API_Extensions[ THREAD_API_RTEMS ] = api;
|
created->API_Extensions[ THREAD_API_RTEMS ] = api;
|
||||||
|
|
||||||
@@ -76,7 +76,7 @@ boolean _RTEMS_tasks_Create_extension(
|
|||||||
api->Notepads[i] = 0;
|
api->Notepads[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*PAGE
|
/*PAGE
|
||||||
|
|||||||
@@ -147,8 +147,8 @@ rtems_status_code rtems_timer_initiate_server(
|
|||||||
rtems_id id;
|
rtems_id id;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
rtems_task_priority _priority;
|
rtems_task_priority _priority;
|
||||||
static boolean initialized = FALSE;
|
static bool initialized = false;
|
||||||
boolean tmpInitialized;
|
bool tmpInitialized;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make sure the requested priority is valid. The if is
|
* Make sure the requested priority is valid. The if is
|
||||||
@@ -169,7 +169,7 @@ rtems_status_code rtems_timer_initiate_server(
|
|||||||
|
|
||||||
_Thread_Disable_dispatch();
|
_Thread_Disable_dispatch();
|
||||||
tmpInitialized = initialized;
|
tmpInitialized = initialized;
|
||||||
initialized = TRUE;
|
initialized = true;
|
||||||
_Thread_Enable_dispatch();
|
_Thread_Enable_dispatch();
|
||||||
|
|
||||||
if ( tmpInitialized )
|
if ( tmpInitialized )
|
||||||
@@ -201,7 +201,7 @@ rtems_status_code rtems_timer_initiate_server(
|
|||||||
&id /* get the id back */
|
&id /* get the id back */
|
||||||
);
|
);
|
||||||
if (status) {
|
if (status) {
|
||||||
initialized = FALSE;
|
initialized = false;
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -254,7 +254,7 @@ rtems_status_code rtems_timer_initiate_server(
|
|||||||
* be good. If this service fails, something is weirdly wrong on the
|
* be good. If this service fails, something is weirdly wrong on the
|
||||||
* target such as a stray write in an ISR or incorrect memory layout.
|
* target such as a stray write in an ISR or incorrect memory layout.
|
||||||
*/
|
*/
|
||||||
initialized = FALSE;
|
initialized = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include <string.h> /* for memset */
|
#include <string.h> /* for memset */
|
||||||
|
|
||||||
boolean rtems_workspace_get_information(
|
bool rtems_workspace_get_information(
|
||||||
Heap_Information_block *the_info
|
Heap_Information_block *the_info
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -30,30 +30,30 @@ boolean rtems_workspace_get_information(
|
|||||||
|
|
||||||
status = _Heap_Get_information( &_Workspace_Area, the_info );
|
status = _Heap_Get_information( &_Workspace_Area, the_info );
|
||||||
if ( status == HEAP_GET_INFORMATION_SUCCESSFUL )
|
if ( status == HEAP_GET_INFORMATION_SUCCESSFUL )
|
||||||
return TRUE;
|
return true;
|
||||||
else
|
else
|
||||||
return FALSE;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _Workspace_Allocate
|
* _Workspace_Allocate
|
||||||
*/
|
*/
|
||||||
boolean rtems_workspace_allocate(
|
bool rtems_workspace_allocate(
|
||||||
size_t bytes,
|
size_t bytes,
|
||||||
void **pointer
|
void **pointer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
*pointer = _Heap_Allocate( &_Workspace_Area, bytes );
|
*pointer = _Heap_Allocate( &_Workspace_Area, bytes );
|
||||||
if (!pointer)
|
if (!pointer)
|
||||||
return FALSE;
|
return false;
|
||||||
else
|
else
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _Workspace_Allocate
|
* _Workspace_Allocate
|
||||||
*/
|
*/
|
||||||
boolean rtems_workspace_free(
|
bool rtems_workspace_free(
|
||||||
void *pointer
|
void *pointer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ typedef struct {
|
|||||||
* environment has ensured that memory was cleared before RTEMS was
|
* environment has ensured that memory was cleared before RTEMS was
|
||||||
* invoked.
|
* invoked.
|
||||||
*/
|
*/
|
||||||
boolean do_zero_of_workspace;
|
bool do_zero_of_workspace;
|
||||||
|
|
||||||
uint32_t maximum_drivers;
|
uint32_t maximum_drivers;
|
||||||
uint32_t number_of_device_drivers;
|
uint32_t number_of_device_drivers;
|
||||||
|
|||||||
@@ -53,13 +53,13 @@ RTEMS_INLINE_ROUTINE void rtems_chain_initialize_empty(
|
|||||||
/**
|
/**
|
||||||
* @brief Is the Chain Node Pointer NULL
|
* @brief Is the Chain Node Pointer NULL
|
||||||
*
|
*
|
||||||
* This function returns TRUE if the_node is NULL and FALSE otherwise.
|
* This function returns true if the_node is NULL and false otherwise.
|
||||||
*
|
*
|
||||||
* @param[in] the_node is the node pointer to check.
|
* @param[in] the_node is the node pointer to check.
|
||||||
*
|
*
|
||||||
* @return This method returns TRUE if the_node is NULL and FALSE otherwise.
|
* @return This method returns true if the_node is NULL and false otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_null_node(
|
RTEMS_INLINE_ROUTINE bool rtems_chain_is_null_node(
|
||||||
const rtems_chain_node *the_node
|
const rtems_chain_node *the_node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -101,16 +101,16 @@ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_tail(
|
|||||||
/**
|
/**
|
||||||
* @brief Are Two Nodes Equal
|
* @brief Are Two Nodes Equal
|
||||||
*
|
*
|
||||||
* This function returns TRUE if @a left and @a right are equal,
|
* This function returns true if @a left and @a right are equal,
|
||||||
* and FALSE otherwise.
|
* and false otherwise.
|
||||||
*
|
*
|
||||||
* @param[in] left is the node on the left hand side of the comparison.
|
* @param[in] left is the node on the left hand side of the comparison.
|
||||||
* @param[in] right is the node on the left hand side of the comparison.
|
* @param[in] right is the node on the left hand side of the comparison.
|
||||||
*
|
*
|
||||||
* @return This function returns TRUE if @a left and @a right are equal,
|
* @return This function returns true if @a left and @a right are equal,
|
||||||
* and FALSE otherwise.
|
* and false otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean rtems_chain_are_nodes_equal(
|
RTEMS_INLINE_ROUTINE bool rtems_chain_are_nodes_equal(
|
||||||
const rtems_chain_node *left,
|
const rtems_chain_node *left,
|
||||||
const rtems_chain_node *right
|
const rtems_chain_node *right
|
||||||
)
|
)
|
||||||
@@ -121,15 +121,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_are_nodes_equal(
|
|||||||
/**
|
/**
|
||||||
* @brief Is the Chain Empty
|
* @brief Is the Chain Empty
|
||||||
*
|
*
|
||||||
* This function returns TRUE if there a no nodes on @a the_chain and
|
* This function returns true if there a no nodes on @a the_chain and
|
||||||
* FALSE otherwise.
|
* false otherwise.
|
||||||
*
|
*
|
||||||
* @param[in] the_chain is the chain to be operated upon.
|
* @param[in] the_chain is the chain to be operated upon.
|
||||||
*
|
*
|
||||||
* @return This function returns TRUE if there a no nodes on @a the_chain and
|
* @return This function returns true if there a no nodes on @a the_chain and
|
||||||
* FALSE otherwise.
|
* false otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_empty(
|
RTEMS_INLINE_ROUTINE bool rtems_chain_is_empty(
|
||||||
rtems_chain_control *the_chain
|
rtems_chain_control *the_chain
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -139,16 +139,16 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_empty(
|
|||||||
/**
|
/**
|
||||||
* @brief Is this the First Node on the Chain
|
* @brief Is this the First Node on the Chain
|
||||||
*
|
*
|
||||||
* This function returns TRUE if the_node is the first node on a chain and
|
* This function returns true if the_node is the first node on a chain and
|
||||||
* FALSE otherwise.
|
* false otherwise.
|
||||||
*
|
*
|
||||||
* @param[in] the_node is the node the caller wants to know if it is
|
* @param[in] the_node is the node the caller wants to know if it is
|
||||||
* the first node on a chain.
|
* the first node on a chain.
|
||||||
*
|
*
|
||||||
* @return This function returns TRUE if @a the_node is the first node on
|
* @return This function returns true if @a the_node is the first node on
|
||||||
* a chain and FALSE otherwise.
|
* a chain and false otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_first(
|
RTEMS_INLINE_ROUTINE bool rtems_chain_is_first(
|
||||||
const rtems_chain_node *the_node
|
const rtems_chain_node *the_node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -158,15 +158,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_first(
|
|||||||
/**
|
/**
|
||||||
* @brief Is this the Last Node on the Chain
|
* @brief Is this the Last Node on the Chain
|
||||||
*
|
*
|
||||||
* This function returns TRUE if @a the_node is the last node on a chain and
|
* This function returns true if @a the_node is the last node on a chain and
|
||||||
* FALSE otherwise.
|
* false otherwise.
|
||||||
*
|
*
|
||||||
* @param[in] the_node is the node to check as the last node.
|
* @param[in] the_node is the node to check as the last node.
|
||||||
*
|
*
|
||||||
* @return This function returns TRUE if @a the_node is the last node on
|
* @return This function returns true if @a the_node is the last node on
|
||||||
* a chain and FALSE otherwise.
|
* a chain and false otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_last(
|
RTEMS_INLINE_ROUTINE bool rtems_chain_is_last(
|
||||||
const rtems_chain_node *the_node
|
const rtems_chain_node *the_node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -176,15 +176,15 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_last(
|
|||||||
/**
|
/**
|
||||||
* @brief Does this Chain have only One Node
|
* @brief Does this Chain have only One Node
|
||||||
*
|
*
|
||||||
* This function returns TRUE if there is only one node on @a the_chain and
|
* This function returns true if there is only one node on @a the_chain and
|
||||||
* FALSE otherwise.
|
* false otherwise.
|
||||||
*
|
*
|
||||||
* @param[in] the_chain is the chain to be operated upon.
|
* @param[in] the_chain is the chain to be operated upon.
|
||||||
*
|
*
|
||||||
* @return This function returns TRUE if there is only one node on
|
* @return This function returns true if there is only one node on
|
||||||
* @a the_chain and FALSE otherwise.
|
* @a the_chain and false otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean rtems_chain_has_only_one_node(
|
RTEMS_INLINE_ROUTINE bool rtems_chain_has_only_one_node(
|
||||||
const rtems_chain_control *the_chain
|
const rtems_chain_control *the_chain
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -194,16 +194,16 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_has_only_one_node(
|
|||||||
/**
|
/**
|
||||||
* @brief Is this Node the Chain Head
|
* @brief Is this Node the Chain Head
|
||||||
*
|
*
|
||||||
* This function returns TRUE if @a the_node is the head of the_chain and
|
* This function returns true if @a the_node is the head of the_chain and
|
||||||
* FALSE otherwise.
|
* false otherwise.
|
||||||
*
|
*
|
||||||
* @param[in] the_chain is the chain to be operated upon.
|
* @param[in] the_chain is the chain to be operated upon.
|
||||||
* @param[in] the_node is the node to check for being the Chain Head.
|
* @param[in] the_node is the node to check for being the Chain Head.
|
||||||
*
|
*
|
||||||
* @return This function returns TRUE if @a the_node is the head of
|
* @return This function returns true if @a the_node is the head of
|
||||||
* @a the_chain and FALSE otherwise.
|
* @a the_chain and false otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_head(
|
RTEMS_INLINE_ROUTINE bool rtems_chain_is_head(
|
||||||
rtems_chain_control *the_chain,
|
rtems_chain_control *the_chain,
|
||||||
const rtems_chain_node *the_node
|
const rtems_chain_node *the_node
|
||||||
)
|
)
|
||||||
@@ -214,13 +214,13 @@ RTEMS_INLINE_ROUTINE boolean rtems_chain_is_head(
|
|||||||
/**
|
/**
|
||||||
* @brief Is this Node the Chail Tail
|
* @brief Is this Node the Chail Tail
|
||||||
*
|
*
|
||||||
* This function returns TRUE if the_node is the tail of the_chain and
|
* This function returns true if the_node is the tail of the_chain and
|
||||||
* FALSE otherwise.
|
* false otherwise.
|
||||||
*
|
*
|
||||||
* @param[in] the_chain is the chain to be operated upon.
|
* @param[in] the_chain is the chain to be operated upon.
|
||||||
* @param[in] the_node is the node to check for being the Chain Tail.
|
* @param[in] the_node is the node to check for being the Chain Tail.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean rtems_chain_is_tail(
|
RTEMS_INLINE_ROUTINE bool rtems_chain_is_tail(
|
||||||
rtems_chain_control *the_chain,
|
rtems_chain_control *the_chain,
|
||||||
const rtems_chain_node *the_node
|
const rtems_chain_node *the_node
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Get (
|
|||||||
* This function returns TRUE if the_extension is NULL and FALSE otherwise.
|
* This function returns TRUE if the_extension is NULL and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Extension_Is_null (
|
RTEMS_INLINE_ROUTINE bool _Extension_Is_null (
|
||||||
Extension_Control *the_extension
|
Extension_Control *the_extension
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -57,9 +57,9 @@ void rtems_debug_disable (
|
|||||||
* _Debug_Is_enabled
|
* _Debug_Is_enabled
|
||||||
*/
|
*/
|
||||||
|
|
||||||
boolean _Debug_Is_enabled(
|
bool _Debug_Is_enabled(
|
||||||
rtems_debug_control level
|
rtems_debug_control level
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return (_Debug_Level & level) ? TRUE : FALSE;
|
return (_Debug_Level & level) ? true : false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,11 +43,11 @@ void _Extension_Manager_initialization(
|
|||||||
OBJECTS_RTEMS_EXTENSIONS,
|
OBJECTS_RTEMS_EXTENSIONS,
|
||||||
maximum_extensions,
|
maximum_extensions,
|
||||||
sizeof( Extension_Control ),
|
sizeof( Extension_Control ),
|
||||||
FALSE, /* TRUE if the name is a string */
|
false, /* true if the name is a string */
|
||||||
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */
|
RTEMS_MAXIMUM_NAME_LENGTH /* maximum length of an object name */
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
,
|
,
|
||||||
FALSE, /* TRUE if this is a global object class */
|
false, /* true if this is a global object class */
|
||||||
NULL /* Proxy extraction support callout */
|
NULL /* Proxy extraction support callout */
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -67,11 +67,11 @@ rtems_status_code rtems_io_register_driver(
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if ( major == 0 ) {
|
if ( major == 0 ) {
|
||||||
boolean found = FALSE;
|
bool found = false;
|
||||||
for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) {
|
for ( major = _IO_Number_of_drivers - 1 ; major ; major-- ) {
|
||||||
if ( !_IO_Driver_address_table[major].initialization_entry &&
|
if ( !_IO_Driver_address_table[major].initialization_entry &&
|
||||||
!_IO_Driver_address_table[major].open_entry ) {
|
!_IO_Driver_address_table[major].open_entry ) {
|
||||||
found = TRUE;
|
found = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ void rtems_debug_disable (
|
|||||||
* This routine returns TRUE if the requested debug level is
|
* This routine returns TRUE if the requested debug level is
|
||||||
* enabled, and FALSE otherwise.
|
* enabled, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
boolean _Debug_Is_enabled(
|
bool _Debug_Is_enabled(
|
||||||
rtems_debug_control level
|
rtems_debug_control level
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ extern "C" {
|
|||||||
* currently executing thread and given to the heir thread.
|
* currently executing thread and given to the heir thread.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SCORE_EXTERN volatile boolean _Context_Switch_necessary;
|
SCORE_EXTERN volatile bool _Context_Switch_necessary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Initialize Context Area
|
* @brief Initialize Context Area
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ void _CORE_barrier_Initialize(
|
|||||||
void _CORE_barrier_Wait(
|
void _CORE_barrier_Wait(
|
||||||
CORE_barrier_Control *the_barrier,
|
CORE_barrier_Control *the_barrier,
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout,
|
Watchdog_Interval timeout,
|
||||||
CORE_barrier_API_mp_support_callout api_barrier_mp_support
|
CORE_barrier_API_mp_support_callout api_barrier_mp_support
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -27,16 +27,16 @@
|
|||||||
*/
|
*/
|
||||||
/**@{*/
|
/**@{*/
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include <rtems/score/thread.h>
|
#include <rtems/score/thread.h>
|
||||||
#include <rtems/score/threadq.h>
|
#include <rtems/score/threadq.h>
|
||||||
#include <rtems/score/priority.h>
|
#include <rtems/score/priority.h>
|
||||||
#include <rtems/score/watchdog.h>
|
#include <rtems/score/watchdog.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Message Queue MP Callback Prototype
|
* @brief Message Queue MP Callback Prototype
|
||||||
*
|
*
|
||||||
@@ -240,7 +240,7 @@ typedef struct {
|
|||||||
* FALSE will only be returned if memory for the pending
|
* FALSE will only be returned if memory for the pending
|
||||||
* messages cannot be allocated.
|
* messages cannot be allocated.
|
||||||
*/
|
*/
|
||||||
boolean _CORE_message_queue_Initialize(
|
bool _CORE_message_queue_Initialize(
|
||||||
CORE_message_queue_Control *the_message_queue,
|
CORE_message_queue_Control *the_message_queue,
|
||||||
CORE_message_queue_Attributes *the_message_queue_attributes,
|
CORE_message_queue_Attributes *the_message_queue_attributes,
|
||||||
uint32_t maximum_pending_messages,
|
uint32_t maximum_pending_messages,
|
||||||
@@ -365,7 +365,7 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
|
|||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
|
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
|
||||||
CORE_message_queue_Submit_types submit_type,
|
CORE_message_queue_Submit_types submit_type,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -397,7 +397,7 @@ void _CORE_message_queue_Seize(
|
|||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
void *buffer,
|
void *buffer,
|
||||||
size_t *size_p,
|
size_t *size_p,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ typedef struct {
|
|||||||
/** When this field is TRUE, then only the thread that locked the mutex
|
/** When this field is TRUE, then only the thread that locked the mutex
|
||||||
* is allowed to unlock it.
|
* is allowed to unlock it.
|
||||||
*/
|
*/
|
||||||
boolean only_owner_release;
|
bool only_owner_release;
|
||||||
/** This field indicates whether threads waiting on the mutex block in
|
/** This field indicates whether threads waiting on the mutex block in
|
||||||
* FIFO or priority order.
|
* FIFO or priority order.
|
||||||
*/
|
*/
|
||||||
@@ -402,7 +402,7 @@ void _CORE_mutex_Seize_interrupt_blocking(
|
|||||||
void _CORE_mutex_Seize(
|
void _CORE_mutex_Seize(
|
||||||
CORE_mutex_Control *_the_mutex,
|
CORE_mutex_Control *_the_mutex,
|
||||||
Objects_Id _id,
|
Objects_Id _id,
|
||||||
boolean _wait,
|
bool _wait,
|
||||||
Watchdog_Interval _timeout,
|
Watchdog_Interval _timeout,
|
||||||
ISR_Level _level
|
ISR_Level _level
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ void _CORE_RWLock_Initialize(
|
|||||||
void _CORE_RWLock_Obtain_for_reading(
|
void _CORE_RWLock_Obtain_for_reading(
|
||||||
CORE_RWLock_Control *the_rwlock,
|
CORE_RWLock_Control *the_rwlock,
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout,
|
Watchdog_Interval timeout,
|
||||||
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
|
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
|
||||||
);
|
);
|
||||||
@@ -172,7 +172,7 @@ void _CORE_RWLock_Obtain_for_reading(
|
|||||||
void _CORE_RWLock_Obtain_for_writing(
|
void _CORE_RWLock_Obtain_for_writing(
|
||||||
CORE_RWLock_Control *the_rwlock,
|
CORE_RWLock_Control *the_rwlock,
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout,
|
Watchdog_Interval timeout,
|
||||||
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
|
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ void _CORE_semaphore_Initialize(
|
|||||||
void _CORE_semaphore_Seize(
|
void _CORE_semaphore_Seize(
|
||||||
CORE_semaphore_Control *the_semaphore,
|
CORE_semaphore_Control *the_semaphore,
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -136,7 +136,7 @@ void _CORE_spinlock_Initialize(
|
|||||||
*/
|
*/
|
||||||
CORE_spinlock_Status _CORE_spinlock_Wait(
|
CORE_spinlock_Status _CORE_spinlock_Wait(
|
||||||
CORE_spinlock_Control *the_spinlock,
|
CORE_spinlock_Control *the_spinlock,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -333,7 +333,7 @@ void *_Heap_Allocate_aligned(
|
|||||||
* @return TRUE if successfully able to determine the size, FALSE otherwise
|
* @return TRUE if successfully able to determine the size, FALSE otherwise
|
||||||
* @return *size filled in with the size of the user area for this block
|
* @return *size filled in with the size of the user area for this block
|
||||||
*/
|
*/
|
||||||
boolean _Heap_Size_of_user_area(
|
bool _Heap_Size_of_user_area(
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
void *starting_address,
|
void *starting_address,
|
||||||
size_t *size
|
size_t *size
|
||||||
@@ -379,7 +379,7 @@ Heap_Resize_status _Heap_Resize_block(
|
|||||||
* to free
|
* to free
|
||||||
* @return TRUE if successfully freed, FALSE otherwise
|
* @return TRUE if successfully freed, FALSE otherwise
|
||||||
*/
|
*/
|
||||||
boolean _Heap_Free(
|
bool _Heap_Free(
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
void *start_address
|
void *start_address
|
||||||
);
|
);
|
||||||
@@ -393,10 +393,10 @@ boolean _Heap_Free(
|
|||||||
* @param[in] do_dump is set to TRUE if errors should be printed
|
* @param[in] do_dump is set to TRUE if errors should be printed
|
||||||
* @return TRUE if the test passed fine, FALSE otherwise.
|
* @return TRUE if the test passed fine, FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
boolean _Heap_Walk(
|
bool _Heap_Walk(
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
int source,
|
int source,
|
||||||
boolean do_dump
|
bool do_dump
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ typedef struct {
|
|||||||
/** This is the source of the error. */
|
/** This is the source of the error. */
|
||||||
Internal_errors_Source the_source;
|
Internal_errors_Source the_source;
|
||||||
/** This indicates if the error is internal of external. */
|
/** This indicates if the error is internal of external. */
|
||||||
boolean is_internal;
|
bool is_internal;
|
||||||
/** This is the error code. */
|
/** This is the error code. */
|
||||||
uint32_t the_error;
|
uint32_t the_error;
|
||||||
} Internal_errors_Information;
|
} Internal_errors_Information;
|
||||||
@@ -92,7 +92,7 @@ SCORE_EXTERN Internal_errors_Information _Internal_errors_What_happened;
|
|||||||
*/
|
*/
|
||||||
void _Internal_error_Occurred(
|
void _Internal_error_Occurred(
|
||||||
Internal_errors_Source the_source,
|
Internal_errors_Source the_source,
|
||||||
boolean is_internal,
|
bool is_internal,
|
||||||
uint32_t the_error
|
uint32_t the_error
|
||||||
) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
|
) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
|
||||||
|
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ typedef ISR_Handler ( *ISR_Handler_entry )(
|
|||||||
* The following is TRUE if signals have been sent to the currently
|
* The following is TRUE if signals have been sent to the currently
|
||||||
* executing thread by an ISR handler.
|
* executing thread by an ISR handler.
|
||||||
*/
|
*/
|
||||||
SCORE_EXTERN boolean _ISR_Signals_to_thread_executing;
|
SCORE_EXTERN bool _ISR_Signals_to_thread_executing;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The following contains the interrupt service routine nest level.
|
* The following contains the interrupt service routine nest level.
|
||||||
@@ -201,7 +201,7 @@ void _ISR_Dispatch( void );
|
|||||||
* that the caller is an interrupt service routine, NOT a thread. The
|
* that the caller is an interrupt service routine, NOT a thread. The
|
||||||
*/
|
*/
|
||||||
#if (CPU_PROVIDES_ISR_IS_IN_PROGRESS == TRUE)
|
#if (CPU_PROVIDES_ISR_IS_IN_PROGRESS == TRUE)
|
||||||
boolean _ISR_Is_in_progress( void );
|
bool _ISR_Is_in_progress( void );
|
||||||
#else
|
#else
|
||||||
#define _ISR_Is_in_progress() \
|
#define _ISR_Is_in_progress() \
|
||||||
(_ISR_Nest_level != 0)
|
(_ISR_Nest_level != 0)
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ typedef union {
|
|||||||
/**
|
/**
|
||||||
* Functions which compare names are prototyped like this.
|
* Functions which compare names are prototyped like this.
|
||||||
*/
|
*/
|
||||||
typedef boolean (*Objects_Name_comparators)(
|
typedef bool (*Objects_Name_comparators)(
|
||||||
void * /* name_1 */,
|
void * /* name_1 */,
|
||||||
void * /* name_2 */,
|
void * /* name_2 */,
|
||||||
uint16_t /* length */
|
uint16_t /* length */
|
||||||
@@ -334,7 +334,7 @@ typedef struct {
|
|||||||
/** This is the maximum number of objects in this class. */
|
/** This is the maximum number of objects in this class. */
|
||||||
Objects_Maximum maximum;
|
Objects_Maximum maximum;
|
||||||
/** This is the TRUE if unlimited objects in this class. */
|
/** This is the TRUE if unlimited objects in this class. */
|
||||||
boolean auto_extend;
|
bool auto_extend;
|
||||||
/** This is the number of objects in a block. */
|
/** This is the number of objects in a block. */
|
||||||
uint32_t allocation_size;
|
uint32_t allocation_size;
|
||||||
/** This is the size in bytes of each object instance. */
|
/** This is the size in bytes of each object instance. */
|
||||||
@@ -349,8 +349,8 @@ typedef struct {
|
|||||||
uint32_t *inactive_per_block;
|
uint32_t *inactive_per_block;
|
||||||
/** This is a table to the chain of inactive object memory blocks. */
|
/** This is a table to the chain of inactive object memory blocks. */
|
||||||
void **object_blocks;
|
void **object_blocks;
|
||||||
/** This is the TRUE if names are strings. */
|
/** This is true if names are strings. */
|
||||||
boolean is_string;
|
bool is_string;
|
||||||
/** This is the maximum length of names. */
|
/** This is the maximum length of names. */
|
||||||
uint16_t name_length;
|
uint16_t name_length;
|
||||||
/** This is this object class' method called when extracting a thread. */
|
/** This is this object class' method called when extracting a thread. */
|
||||||
@@ -498,11 +498,11 @@ void _Objects_Initialize_information (
|
|||||||
uint32_t the_class,
|
uint32_t the_class,
|
||||||
uint32_t maximum,
|
uint32_t maximum,
|
||||||
uint16_t size,
|
uint16_t size,
|
||||||
boolean is_string,
|
bool is_string,
|
||||||
uint32_t maximum_name_length
|
uint32_t maximum_name_length
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
,
|
,
|
||||||
boolean supports_global,
|
bool supports_global,
|
||||||
Objects_Thread_queue_Extract_callout extract
|
Objects_Thread_queue_Extract_callout extract
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
@@ -859,7 +859,7 @@ char *_Objects_Get_name_as_string(
|
|||||||
*
|
*
|
||||||
* @return If successful, TRUE is returned. Otherwise FALSE is returned.
|
* @return If successful, TRUE is returned. Otherwise FALSE is returned.
|
||||||
*/
|
*/
|
||||||
boolean _Objects_Set_name(
|
bool _Objects_Set_name(
|
||||||
Objects_Information *information,
|
Objects_Information *information,
|
||||||
Objects_Control *the_object,
|
Objects_Control *the_object,
|
||||||
const char *name
|
const char *name
|
||||||
|
|||||||
@@ -100,11 +100,11 @@ void _Objects_MP_Open (
|
|||||||
* @todo This method only works for object types with 4 byte object names.
|
* @todo This method only works for object types with 4 byte object names.
|
||||||
* It does not support variable length object names.
|
* It does not support variable length object names.
|
||||||
*/
|
*/
|
||||||
boolean _Objects_MP_Allocate_and_open (
|
bool _Objects_MP_Allocate_and_open (
|
||||||
Objects_Information *information,
|
Objects_Information *information,
|
||||||
uint32_t the_name,
|
uint32_t the_name,
|
||||||
Objects_Id the_id,
|
Objects_Id the_id,
|
||||||
boolean is_fatal_error
|
bool is_fatal_error
|
||||||
);
|
);
|
||||||
|
|
||||||
/** @brief Objects MP Close
|
/** @brief Objects MP Close
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ static inline uint32_t _Protected_heap_Initialize(
|
|||||||
* @param[in] size is the size in bytes of the memory area to add
|
* @param[in] size is the size in bytes of the memory area to add
|
||||||
* @return a status indicating success or the reason for failure
|
* @return a status indicating success or the reason for failure
|
||||||
*/
|
*/
|
||||||
boolean _Protected_heap_Extend(
|
bool _Protected_heap_Extend(
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
void *starting_address,
|
void *starting_address,
|
||||||
size_t size
|
size_t size
|
||||||
@@ -125,7 +125,7 @@ void *_Protected_heap_Allocate_aligned(
|
|||||||
* @return TRUE if successfully able to determine the size, FALSE otherwise
|
* @return TRUE if successfully able to determine the size, FALSE otherwise
|
||||||
* @return *size filled in with the size of the user area for this block
|
* @return *size filled in with the size of the user area for this block
|
||||||
*/
|
*/
|
||||||
boolean _Protected_heap_Get_block_size(
|
bool _Protected_heap_Get_block_size(
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
void *starting_address,
|
void *starting_address,
|
||||||
size_t *size
|
size_t *size
|
||||||
@@ -143,7 +143,7 @@ boolean _Protected_heap_Get_block_size(
|
|||||||
* @return TRUE if successfully able to resize the block.
|
* @return TRUE if successfully able to resize the block.
|
||||||
* FALSE if the block can't be resized in place.
|
* FALSE if the block can't be resized in place.
|
||||||
*/
|
*/
|
||||||
boolean _Protected_heap_Resize_block(
|
bool _Protected_heap_Resize_block(
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
void *starting_address,
|
void *starting_address,
|
||||||
size_t size
|
size_t size
|
||||||
@@ -159,7 +159,7 @@ boolean _Protected_heap_Resize_block(
|
|||||||
* to free
|
* to free
|
||||||
* @return TRUE if successfully freed, FALSE otherwise
|
* @return TRUE if successfully freed, FALSE otherwise
|
||||||
*/
|
*/
|
||||||
boolean _Protected_heap_Free(
|
bool _Protected_heap_Free(
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
void *start_address
|
void *start_address
|
||||||
);
|
);
|
||||||
@@ -173,10 +173,10 @@ boolean _Protected_heap_Free(
|
|||||||
* @param[in] do_dump is set to TRUE if errors should be printed
|
* @param[in] do_dump is set to TRUE if errors should be printed
|
||||||
* @return TRUE if the test passed fine, FALSE otherwise.
|
* @return TRUE if the test passed fine, FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
boolean _Protected_heap_Walk(
|
bool _Protected_heap_Walk(
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
int source,
|
int source,
|
||||||
boolean do_dump
|
bool do_dump
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ typedef enum {
|
|||||||
* The following variable indicates whether or not this is
|
* The following variable indicates whether or not this is
|
||||||
* an multiprocessing system.
|
* an multiprocessing system.
|
||||||
*/
|
*/
|
||||||
SCORE_EXTERN boolean _System_state_Is_multiprocessing;
|
SCORE_EXTERN bool _System_state_Is_multiprocessing;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ typedef struct {
|
|||||||
/** This field indicates whether the thread was preemptible when
|
/** This field indicates whether the thread was preemptible when
|
||||||
* it started.
|
* it started.
|
||||||
*/
|
*/
|
||||||
boolean is_preemptible;
|
bool is_preemptible;
|
||||||
/** This field indicates the CPU budget algorith. */
|
/** This field indicates the CPU budget algorith. */
|
||||||
Thread_CPU_budget_algorithms budget_algorithm;
|
Thread_CPU_budget_algorithms budget_algorithm;
|
||||||
/** This field is the routine to invoke when the CPU allotment is
|
/** This field is the routine to invoke when the CPU allotment is
|
||||||
@@ -203,7 +203,7 @@ typedef struct {
|
|||||||
/** This field is the initial priority. */
|
/** This field is the initial priority. */
|
||||||
Priority_Control initial_priority;
|
Priority_Control initial_priority;
|
||||||
/** This field indicates whether the SuperCore allocated the stack. */
|
/** This field indicates whether the SuperCore allocated the stack. */
|
||||||
boolean core_allocated_stack;
|
bool core_allocated_stack;
|
||||||
/** This field is the stack information. */
|
/** This field is the stack information. */
|
||||||
Stack_Control Initial_stack;
|
Stack_Control Initial_stack;
|
||||||
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
|
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
|
||||||
@@ -351,13 +351,13 @@ struct Thread_Control_struct {
|
|||||||
/** This field is the number of nested suspend calls. */
|
/** This field is the number of nested suspend calls. */
|
||||||
uint32_t suspend_count;
|
uint32_t suspend_count;
|
||||||
/** This field is true if the thread is offered globally */
|
/** This field is true if the thread is offered globally */
|
||||||
boolean is_global;
|
bool is_global;
|
||||||
/** This field is is true if the post task context switch should be
|
/** This field is is true if the post task context switch should be
|
||||||
* executed for this thread at the next context switch.
|
* executed for this thread at the next context switch.
|
||||||
*/
|
*/
|
||||||
boolean do_post_task_switch_extension;
|
bool do_post_task_switch_extension;
|
||||||
/** This field is true if the thread is preemptible. */
|
/** This field is true if the thread is preemptible. */
|
||||||
boolean is_preemptible;
|
bool is_preemptible;
|
||||||
#if __RTEMS_ADA__
|
#if __RTEMS_ADA__
|
||||||
/** This field is the GNAT self context pointer. */
|
/** This field is the GNAT self context pointer. */
|
||||||
void *rtems_ada_self;
|
void *rtems_ada_self;
|
||||||
@@ -570,14 +570,14 @@ void _Thread_Stack_Free(
|
|||||||
* @note If the stack is allocated from the workspace, then it is
|
* @note If the stack is allocated from the workspace, then it is
|
||||||
* guaranteed to be of at least minimum size.
|
* guaranteed to be of at least minimum size.
|
||||||
*/
|
*/
|
||||||
boolean _Thread_Initialize(
|
bool _Thread_Initialize(
|
||||||
Objects_Information *information,
|
Objects_Information *information,
|
||||||
Thread_Control *the_thread,
|
Thread_Control *the_thread,
|
||||||
void *stack_area,
|
void *stack_area,
|
||||||
size_t stack_size,
|
size_t stack_size,
|
||||||
boolean is_fp,
|
bool is_fp,
|
||||||
Priority_Control priority,
|
Priority_Control priority,
|
||||||
boolean is_preemptible,
|
bool is_preemptible,
|
||||||
Thread_CPU_budget_algorithms budget_algorithm,
|
Thread_CPU_budget_algorithms budget_algorithm,
|
||||||
Thread_CPU_budget_algorithm_callout budget_callout,
|
Thread_CPU_budget_algorithm_callout budget_callout,
|
||||||
uint32_t isr_level,
|
uint32_t isr_level,
|
||||||
@@ -589,7 +589,7 @@ boolean _Thread_Initialize(
|
|||||||
* and makes it ready to execute. After this routine executes, the
|
* and makes it ready to execute. After this routine executes, the
|
||||||
* thread competes with all other threads for CPU time.
|
* thread competes with all other threads for CPU time.
|
||||||
*/
|
*/
|
||||||
boolean _Thread_Start(
|
bool _Thread_Start(
|
||||||
Thread_Control *the_thread,
|
Thread_Control *the_thread,
|
||||||
Thread_Start_types the_prototype,
|
Thread_Start_types the_prototype,
|
||||||
void *entry_point,
|
void *entry_point,
|
||||||
@@ -604,7 +604,7 @@ boolean _Thread_Start(
|
|||||||
*
|
*
|
||||||
* TODO: multiple task arg profiles
|
* TODO: multiple task arg profiles
|
||||||
*/
|
*/
|
||||||
boolean _Thread_Restart(
|
bool _Thread_Restart(
|
||||||
Thread_Control *the_thread,
|
Thread_Control *the_thread,
|
||||||
void *pointer_argument,
|
void *pointer_argument,
|
||||||
Thread_Entry_numeric_type numeric_argument
|
Thread_Entry_numeric_type numeric_argument
|
||||||
@@ -735,7 +735,7 @@ void _Thread_Delay_ended(
|
|||||||
void _Thread_Change_priority (
|
void _Thread_Change_priority (
|
||||||
Thread_Control *the_thread,
|
Thread_Control *the_thread,
|
||||||
Priority_Control new_priority,
|
Priority_Control new_priority,
|
||||||
boolean prepend_it
|
bool prepend_it
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -762,7 +762,7 @@ void _Thread_Suspend(
|
|||||||
*/
|
*/
|
||||||
void _Thread_Resume(
|
void _Thread_Resume(
|
||||||
Thread_Control *the_thread,
|
Thread_Control *the_thread,
|
||||||
boolean force
|
bool force
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -771,7 +771,7 @@ void _Thread_Resume(
|
|||||||
* is usually called after changing an execution mode such as preemptability
|
* is usually called after changing an execution mode such as preemptability
|
||||||
* for a thread.
|
* for a thread.
|
||||||
*/
|
*/
|
||||||
boolean _Thread_Evaluate_mode( void );
|
bool _Thread_Evaluate_mode( void );
|
||||||
|
|
||||||
#if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE)
|
#if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE)
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ void _Thread_queue_Extract(
|
|||||||
* and ensures that if there is a proxy for this task on
|
* and ensures that if there is a proxy for this task on
|
||||||
* another node, it is also dealt with.
|
* another node, it is also dealt with.
|
||||||
*/
|
*/
|
||||||
boolean _Thread_queue_Extract_with_proxy(
|
bool _Thread_queue_Extract_with_proxy(
|
||||||
Thread_Control *the_thread
|
Thread_Control *the_thread
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -192,7 +192,7 @@ Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
|
|||||||
void _Thread_queue_Extract_priority_helper(
|
void _Thread_queue_Extract_priority_helper(
|
||||||
Thread_queue_Control *the_thread_queue,
|
Thread_queue_Control *the_thread_queue,
|
||||||
Thread_Control *the_thread,
|
Thread_Control *the_thread,
|
||||||
boolean requeuing
|
bool requeuing
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ extern "C" {
|
|||||||
* @return This method returns true if @a time is valid and
|
* @return This method returns true if @a time is valid and
|
||||||
* false otherwise.
|
* false otherwise.
|
||||||
*/
|
*/
|
||||||
boolean _Timespec_Is_valid(
|
bool _Timespec_Is_valid(
|
||||||
const struct timespec *time
|
const struct timespec *time
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ boolean _Timespec_Is_valid(
|
|||||||
* @return This method returns true if @a lhs is less than the @a rhs and
|
* @return This method returns true if @a lhs is less than the @a rhs and
|
||||||
* false otherwise.
|
* false otherwise.
|
||||||
*/
|
*/
|
||||||
boolean _Timespec_Less_than(
|
bool _Timespec_Less_than(
|
||||||
const struct timespec *lhs,
|
const struct timespec *lhs,
|
||||||
const struct timespec *rhs
|
const struct timespec *rhs
|
||||||
);
|
);
|
||||||
@@ -72,7 +72,7 @@ boolean _Timespec_Less_than(
|
|||||||
* @return This method returns true if @a lhs is greater than the @a rhs and
|
* @return This method returns true if @a lhs is greater than the @a rhs and
|
||||||
* false otherwise.
|
* false otherwise.
|
||||||
*/
|
*/
|
||||||
boolean _Timespec_Greater_than(
|
bool _Timespec_Greater_than(
|
||||||
const struct timespec *lhs,
|
const struct timespec *lhs,
|
||||||
const struct timespec *rhs
|
const struct timespec *rhs
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ extern "C" {
|
|||||||
* This is TRUE if the application has set the current
|
* This is TRUE if the application has set the current
|
||||||
* time of day, and FALSE otherwise.
|
* time of day, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
SCORE_EXTERN boolean _TOD_Is_set;
|
SCORE_EXTERN bool _TOD_Is_set;
|
||||||
|
|
||||||
/** @brief Current Time of Day (Timespec)
|
/** @brief Current Time of Day (Timespec)
|
||||||
* The following contains the current time of day.
|
* The following contains the current time of day.
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ typedef void User_extensions_routine;
|
|||||||
* This type defines the prototype of a thread creation extension handler.
|
* This type defines the prototype of a thread creation extension handler.
|
||||||
* The handler is passed the thread executing and the thread being created.
|
* The handler is passed the thread executing and the thread being created.
|
||||||
*/
|
*/
|
||||||
typedef boolean ( *User_extensions_thread_create_extension )(
|
typedef bool ( *User_extensions_thread_create_extension )(
|
||||||
Thread_Control *,
|
Thread_Control *,
|
||||||
Thread_Control *
|
Thread_Control *
|
||||||
);
|
);
|
||||||
@@ -130,7 +130,7 @@ typedef User_extensions_routine ( *User_extensions_thread_exitted_extension )(
|
|||||||
*/
|
*/
|
||||||
typedef User_extensions_routine ( *User_extensions_fatal_extension )(
|
typedef User_extensions_routine ( *User_extensions_fatal_extension )(
|
||||||
Internal_errors_Source /* the_source */,
|
Internal_errors_Source /* the_source */,
|
||||||
boolean /* is_internal */,
|
bool /* is_internal */,
|
||||||
uint32_t /* the_error */
|
uint32_t /* the_error */
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -253,7 +253,7 @@ void _User_extensions_Remove_set (
|
|||||||
* @return This method returns TRUE if the user extension executed
|
* @return This method returns TRUE if the user extension executed
|
||||||
* successfully.
|
* successfully.
|
||||||
*/
|
*/
|
||||||
boolean _User_extensions_Thread_create (
|
bool _User_extensions_Thread_create (
|
||||||
Thread_Control *the_thread
|
Thread_Control *the_thread
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -337,7 +337,7 @@ void _User_extensions_Thread_exitted (
|
|||||||
*/
|
*/
|
||||||
void _User_extensions_Fatal (
|
void _User_extensions_Fatal (
|
||||||
Internal_errors_Source the_source,
|
Internal_errors_Source the_source,
|
||||||
boolean is_internal,
|
bool is_internal,
|
||||||
uint32_t the_error
|
uint32_t the_error
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ void *_Workspace_Allocate(
|
|||||||
* @return TRUE if the free was successful.
|
* @return TRUE if the free was successful.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
boolean _Workspace_Free(
|
bool _Workspace_Free(
|
||||||
void *block
|
void *block
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Addresses_Subtract (
|
|||||||
* @return This method returns TRUE if the address is aligned and
|
* @return This method returns TRUE if the address is aligned and
|
||||||
* FALSE otherwise.
|
* FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Addresses_Is_aligned (
|
RTEMS_INLINE_ROUTINE bool _Addresses_Is_aligned (
|
||||||
void *address
|
void *address
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -125,7 +125,7 @@ RTEMS_INLINE_ROUTINE boolean _Addresses_Is_aligned (
|
|||||||
* @return This method returns TRUE if the given @a address is within the
|
* @return This method returns TRUE if the given @a address is within the
|
||||||
* memory range specified and FALSE otherwise.
|
* memory range specified and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Addresses_Is_in_range (
|
RTEMS_INLINE_ROUTINE bool _Addresses_Is_in_range (
|
||||||
void *address,
|
void *address,
|
||||||
void *base,
|
void *base,
|
||||||
void *limit
|
void *limit
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
* @return This function returns TRUE if @a left and @a right are equal,
|
* @return This function returns TRUE if @a left and @a right are equal,
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Chain_Are_nodes_equal(
|
RTEMS_INLINE_ROUTINE bool _Chain_Are_nodes_equal(
|
||||||
const Chain_Node *left,
|
const Chain_Node *left,
|
||||||
const Chain_Node *right
|
const Chain_Node *right
|
||||||
)
|
)
|
||||||
@@ -59,7 +59,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Are_nodes_equal(
|
|||||||
*
|
*
|
||||||
* @return This method returns TRUE if the_chain is NULL and FALSE otherwise.
|
* @return This method returns TRUE if the_chain is NULL and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Chain_Is_null(
|
RTEMS_INLINE_ROUTINE bool _Chain_Is_null(
|
||||||
const Chain_Control *the_chain
|
const Chain_Control *the_chain
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -74,7 +74,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_null(
|
|||||||
*
|
*
|
||||||
* @return This method returns TRUE if the_node is NULL and FALSE otherwise.
|
* @return This method returns TRUE if the_node is NULL and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Chain_Is_null_node(
|
RTEMS_INLINE_ROUTINE bool _Chain_Is_null_node(
|
||||||
const Chain_Node *the_node
|
const Chain_Node *the_node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -121,7 +121,7 @@ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
|
|||||||
* @return This function returns TRUE if there a no nodes on @a the_chain and
|
* @return This function returns TRUE if there a no nodes on @a the_chain and
|
||||||
* FALSE otherwise.
|
* FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty(
|
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
|
||||||
Chain_Control *the_chain
|
Chain_Control *the_chain
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -139,7 +139,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_empty(
|
|||||||
* @return This function returns TRUE if @a the_node is the first node on
|
* @return This function returns TRUE if @a the_node is the first node on
|
||||||
* a chain and FALSE otherwise.
|
* a chain and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Chain_Is_first(
|
RTEMS_INLINE_ROUTINE bool _Chain_Is_first(
|
||||||
const Chain_Node *the_node
|
const Chain_Node *the_node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -156,7 +156,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_first(
|
|||||||
* @return This function returns TRUE if @a the_node is the last node on
|
* @return This function returns TRUE if @a the_node is the last node on
|
||||||
* a chain and FALSE otherwise.
|
* a chain and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Chain_Is_last(
|
RTEMS_INLINE_ROUTINE bool _Chain_Is_last(
|
||||||
const Chain_Node *the_node
|
const Chain_Node *the_node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -173,7 +173,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_last(
|
|||||||
* @return This function returns TRUE if there is only one node on
|
* @return This function returns TRUE if there is only one node on
|
||||||
* @a the_chain and FALSE otherwise.
|
* @a the_chain and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Chain_Has_only_one_node(
|
RTEMS_INLINE_ROUTINE bool _Chain_Has_only_one_node(
|
||||||
const Chain_Control *the_chain
|
const Chain_Control *the_chain
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -191,7 +191,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Has_only_one_node(
|
|||||||
* @return This function returns TRUE if @a the_node is the head of
|
* @return This function returns TRUE if @a the_node is the head of
|
||||||
* @a the_chain and FALSE otherwise.
|
* @a the_chain and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Chain_Is_head(
|
RTEMS_INLINE_ROUTINE bool _Chain_Is_head(
|
||||||
Chain_Control *the_chain,
|
Chain_Control *the_chain,
|
||||||
const Chain_Node *the_node
|
const Chain_Node *the_node
|
||||||
)
|
)
|
||||||
@@ -207,7 +207,7 @@ RTEMS_INLINE_ROUTINE boolean _Chain_Is_head(
|
|||||||
* @param[in] the_chain is the chain to be operated upon.
|
* @param[in] the_chain is the chain to be operated upon.
|
||||||
* @param[in] the_node is the node to check for being the Chain Tail.
|
* @param[in] the_node is the node to check for being the Chain Tail.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Chain_Is_tail(
|
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(
|
||||||
Chain_Control *the_chain,
|
Chain_Control *the_chain,
|
||||||
const Chain_Node *the_node
|
const Chain_Node *the_node
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
* @param[in] the_attribute is the attribute set to test
|
* @param[in] the_attribute is the attribute set to test
|
||||||
* @return TRUE if the priority attribute is enabled
|
* @return TRUE if the priority attribute is enabled
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _CORE_barrier_Is_automatic(
|
RTEMS_INLINE_ROUTINE bool _CORE_barrier_Is_automatic(
|
||||||
CORE_barrier_Attributes *the_attribute
|
CORE_barrier_Attributes *the_attribute
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ RTEMS_INLINE_ROUTINE CORE_message_queue_Status _CORE_message_queue_Send(
|
|||||||
size_t size,
|
size_t size,
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
|
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -70,7 +70,7 @@ RTEMS_INLINE_ROUTINE CORE_message_queue_Status _CORE_message_queue_Urgent(
|
|||||||
size_t size,
|
size_t size,
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
|
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -150,7 +150,7 @@ RTEMS_INLINE_ROUTINE
|
|||||||
* enabled in the attribute_set and FALSE otherwise.
|
* enabled in the attribute_set and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _CORE_message_queue_Is_priority(
|
RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_priority(
|
||||||
CORE_message_queue_Attributes *the_attribute
|
CORE_message_queue_Attributes *the_attribute
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -193,7 +193,7 @@ RTEMS_INLINE_ROUTINE void _CORE_message_queue_Prepend_unprotected (
|
|||||||
* This function returns TRUE if the_message_queue is TRUE and FALSE otherwise.
|
* This function returns TRUE if the_message_queue is TRUE and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _CORE_message_queue_Is_null (
|
RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_null (
|
||||||
CORE_message_queue_Control *the_message_queue
|
CORE_message_queue_Control *the_message_queue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -205,7 +205,7 @@ RTEMS_INLINE_ROUTINE boolean _CORE_message_queue_Is_null (
|
|||||||
* queue and FALSE otherwise.
|
* queue and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _CORE_message_queue_Is_notify_enabled (
|
RTEMS_INLINE_ROUTINE bool _CORE_message_queue_Is_notify_enabled (
|
||||||
CORE_message_queue_Control *the_message_queue
|
CORE_message_queue_Control *the_message_queue
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
*
|
*
|
||||||
* @return This method returns TRUE if the mutex is locked.
|
* @return This method returns TRUE if the mutex is locked.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_locked(
|
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_locked(
|
||||||
CORE_mutex_Control *the_mutex
|
CORE_mutex_Control *the_mutex
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -55,7 +55,7 @@ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_locked(
|
|||||||
*
|
*
|
||||||
* @return This method returns TRUE if the mutex is using FIFO blocking order.
|
* @return This method returns TRUE if the mutex is using FIFO blocking order.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_fifo(
|
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_fifo(
|
||||||
CORE_mutex_Attributes *the_attribute
|
CORE_mutex_Attributes *the_attribute
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -73,7 +73,7 @@ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_fifo(
|
|||||||
* @return This method returns TRUE if the mutex is using
|
* @return This method returns TRUE if the mutex is using
|
||||||
* priority blocking order.
|
* priority blocking order.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_priority(
|
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_priority(
|
||||||
CORE_mutex_Attributes *the_attribute
|
CORE_mutex_Attributes *the_attribute
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -91,7 +91,7 @@ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_priority(
|
|||||||
* @return This method returns TRUE if the mutex is using priority
|
* @return This method returns TRUE if the mutex is using priority
|
||||||
* inheritance.
|
* inheritance.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority(
|
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority(
|
||||||
CORE_mutex_Attributes *the_attribute
|
CORE_mutex_Attributes *the_attribute
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -108,7 +108,7 @@ RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_inherit_priority(
|
|||||||
* @return This method returns TRUE if the mutex is using priority
|
* @return This method returns TRUE if the mutex is using priority
|
||||||
* ceiling.
|
* ceiling.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _CORE_mutex_Is_priority_ceiling(
|
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_priority_ceiling(
|
||||||
CORE_mutex_Attributes *the_attribute
|
CORE_mutex_Attributes *the_attribute
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
* @param[in] the_attribute is the attribute set to test
|
* @param[in] the_attribute is the attribute set to test
|
||||||
* @return TRUE if the priority attribute is enabled
|
* @return TRUE if the priority attribute is enabled
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _CORE_semaphore_Is_priority(
|
RTEMS_INLINE_ROUTINE bool _CORE_semaphore_Is_priority(
|
||||||
CORE_semaphore_Attributes *the_attribute
|
CORE_semaphore_Attributes *the_attribute
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE uint32_t _CORE_semaphore_Get_count(
|
|||||||
RTEMS_INLINE_ROUTINE void _CORE_semaphore_Seize_isr_disable(
|
RTEMS_INLINE_ROUTINE void _CORE_semaphore_Seize_isr_disable(
|
||||||
CORE_semaphore_Control *the_semaphore,
|
CORE_semaphore_Control *the_semaphore,
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout,
|
Watchdog_Interval timeout,
|
||||||
ISR_Level *level_p
|
ISR_Level *level_p
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
* @return This method will return TRUE if the spinlock is busy
|
* @return This method will return TRUE if the spinlock is busy
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _CORE_spinlock_Is_busy(
|
RTEMS_INLINE_ROUTINE bool _CORE_spinlock_Is_busy(
|
||||||
CORE_spinlock_Control *the_spinlock
|
CORE_spinlock_Control *the_spinlock
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ RTEMS_INLINE_ROUTINE void _Heap_Block_insert_after (
|
|||||||
* @return This method returns TRUE if the address is aligned and false
|
* @return This method returns TRUE if the address is aligned and false
|
||||||
* otherwise.
|
* otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Heap_Is_aligned (
|
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned (
|
||||||
uint32_t value,
|
uint32_t value,
|
||||||
uint32_t alignment
|
uint32_t alignment
|
||||||
)
|
)
|
||||||
@@ -217,7 +217,7 @@ RTEMS_INLINE_ROUTINE void _Heap_Align_down (
|
|||||||
* @return This method returns TRUE if @a ptr is aligned at @a alignment
|
* @return This method returns TRUE if @a ptr is aligned at @a alignment
|
||||||
* boundary, and FALSE otherwise.
|
* boundary, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Heap_Is_aligned_ptr (
|
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned_ptr (
|
||||||
void *ptr,
|
void *ptr,
|
||||||
uint32_t alignment
|
uint32_t alignment
|
||||||
)
|
)
|
||||||
@@ -329,7 +329,7 @@ RTEMS_INLINE_ROUTINE void _Heap_Start_of_block (
|
|||||||
* @return This method returns TRUE if the previous block is used and FALSE
|
* @return This method returns TRUE if the previous block is used and FALSE
|
||||||
* if the previous block is free.
|
* if the previous block is free.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Heap_Is_prev_used (
|
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used (
|
||||||
Heap_Block *the_block
|
Heap_Block *the_block
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -360,7 +360,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Heap_Block_size (
|
|||||||
* @return This method returns TRUE if @a the_block appears to have been
|
* @return This method returns TRUE if @a the_block appears to have been
|
||||||
* allocated from @a the_heap, and FALSE otherwise.
|
* allocated from @a the_heap, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Heap_Is_block_in (
|
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in (
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
Heap_Block *the_block
|
Heap_Block *the_block
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
* for this processor and FALSE otherwise.
|
* for this processor and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _ISR_Is_vector_number_valid (
|
RTEMS_INLINE_ROUTINE bool _ISR_Is_vector_number_valid (
|
||||||
uint32_t vector
|
uint32_t vector
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -45,7 +45,7 @@ RTEMS_INLINE_ROUTINE boolean _ISR_Is_vector_number_valid (
|
|||||||
* use interrupt service routine and FALSE otherwise.
|
* use interrupt service routine and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _ISR_Is_valid_user_handler (
|
RTEMS_INLINE_ROUTINE bool _ISR_Is_valid_user_handler (
|
||||||
void *handler
|
void *handler
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -36,7 +36,7 @@
|
|||||||
* because this enum starts at lower bound of zero.
|
* because this enum starts at lower bound of zero.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Mp_packet_Is_valid_packet_class (
|
RTEMS_INLINE_ROUTINE bool _Mp_packet_Is_valid_packet_class (
|
||||||
MP_packet_Classes the_packet_class
|
MP_packet_Classes the_packet_class
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -48,7 +48,7 @@ RTEMS_INLINE_ROUTINE boolean _Mp_packet_Is_valid_packet_class (
|
|||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Mp_packet_Is_null (
|
RTEMS_INLINE_ROUTINE bool _Mp_packet_Is_null (
|
||||||
MP_packet_Prefix *the_packet
|
MP_packet_Prefix *the_packet
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_index(
|
|||||||
* @return This method returns TRUE if the specified api value is valid
|
* @return This method returns TRUE if the specified api value is valid
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Objects_Is_api_valid(
|
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
|
||||||
uint32_t the_api
|
uint32_t the_api
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -131,7 +131,7 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_api_valid(
|
|||||||
* @return This method returns TRUE if the specified node is the local node
|
* @return This method returns TRUE if the specified node is the local node
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_node(
|
RTEMS_INLINE_ROUTINE bool _Objects_Is_local_node(
|
||||||
uint32_t node
|
uint32_t node
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -149,7 +149,7 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_node(
|
|||||||
*
|
*
|
||||||
* @note On a single processor configuration, this always returns TRUE.
|
* @note On a single processor configuration, this always returns TRUE.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_id(
|
RTEMS_INLINE_ROUTINE bool _Objects_Is_local_id(
|
||||||
Objects_Id id
|
Objects_Id id
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -170,7 +170,7 @@ RTEMS_INLINE_ROUTINE boolean _Objects_Is_local_id(
|
|||||||
* @return This method returns TRUE if the specified object IDs are equal
|
* @return This method returns TRUE if the specified object IDs are equal
|
||||||
* and FALSE otherwise.
|
* and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Objects_Are_ids_equal(
|
RTEMS_INLINE_ROUTINE bool _Objects_Are_ids_equal(
|
||||||
Objects_Id left,
|
Objects_Id left,
|
||||||
Objects_Id right
|
Objects_Id right
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ RTEMS_INLINE_ROUTINE void _Objects_MP_Free_global_object (
|
|||||||
* This function returns whether the global object is NULL or not.
|
* This function returns whether the global object is NULL or not.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Objects_MP_Is_null_global_object (
|
RTEMS_INLINE_ROUTINE bool _Objects_MP_Is_null_global_object (
|
||||||
Objects_MP_Control *the_object
|
Objects_MP_Control *the_object
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ RTEMS_INLINE_ROUTINE void _Priority_Handler_initialization( void )
|
|||||||
* user task, and FALSE otherwise.
|
* user task, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Priority_Is_valid (
|
RTEMS_INLINE_ROUTINE bool _Priority_Is_valid (
|
||||||
Priority_Control the_priority
|
Priority_Control the_priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -192,7 +192,7 @@ RTEMS_INLINE_ROUTINE void _Priority_Initialize_information(
|
|||||||
* FALSE otherwise.
|
* FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Priority_Is_group_empty (
|
RTEMS_INLINE_ROUTINE bool _Priority_Is_group_empty (
|
||||||
Priority_Control the_priority
|
Priority_Control the_priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Stack_Minimum (void)
|
|||||||
*
|
*
|
||||||
* @return This method returns TRUE if the stack is large enough.
|
* @return This method returns TRUE if the stack is large enough.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Stack_Is_enough (
|
RTEMS_INLINE_ROUTINE bool _Stack_Is_enough (
|
||||||
size_t size
|
size_t size
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ RTEMS_INLINE_ROUTINE States_Control _States_Clear (
|
|||||||
* state is READY, and FALSE otherwise.
|
* state is READY, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_ready (
|
RTEMS_INLINE_ROUTINE bool _States_Is_ready (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -71,7 +71,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_ready (
|
|||||||
* set in the_states, and FALSE otherwise.
|
* set in the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_only_dormant (
|
RTEMS_INLINE_ROUTINE bool _States_Is_only_dormant (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -83,7 +83,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_only_dormant (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_dormant (
|
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -95,7 +95,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_dormant (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_suspended (
|
RTEMS_INLINE_ROUTINE bool _States_Is_suspended (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -107,7 +107,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_suspended (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_transient (
|
RTEMS_INLINE_ROUTINE bool _States_Is_transient (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -119,7 +119,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_transient (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_delaying (
|
RTEMS_INLINE_ROUTINE bool _States_Is_delaying (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -131,7 +131,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_delaying (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_buffer (
|
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_buffer (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -143,7 +143,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_buffer (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_segment (
|
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_segment (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -155,7 +155,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_segment (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_message (
|
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_message (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -167,7 +167,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_message (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_event (
|
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -179,7 +179,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_event (
|
|||||||
* is set in the_states, and FALSE otherwise.
|
* is set in the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_mutex (
|
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_mutex (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -191,7 +191,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_mutex (
|
|||||||
* is set in the_states, and FALSE otherwise.
|
* is set in the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_semaphore (
|
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_semaphore (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -203,7 +203,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_semaphore (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_time (
|
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_time (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -215,7 +215,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_time (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_rpc_reply (
|
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_rpc_reply (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -227,7 +227,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_rpc_reply (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_period (
|
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -240,7 +240,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_for_period (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_locally_blocked (
|
RTEMS_INLINE_ROUTINE bool _States_Is_locally_blocked (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -253,7 +253,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_locally_blocked (
|
|||||||
* the_states, and FALSE otherwise.
|
* the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_on_thread_queue (
|
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -265,7 +265,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_waiting_on_thread_queue (
|
|||||||
* that a task is blocked is set in the_states, and FALSE otherwise.
|
* that a task is blocked is set in the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Is_blocked (
|
RTEMS_INLINE_ROUTINE bool _States_Is_blocked (
|
||||||
States_Control the_states
|
States_Control the_states
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -277,7 +277,7 @@ RTEMS_INLINE_ROUTINE boolean _States_Is_blocked (
|
|||||||
* are set in the_states, and FALSE otherwise.
|
* are set in the_states, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _States_Are_set (
|
RTEMS_INLINE_ROUTINE bool _States_Are_set (
|
||||||
States_Control the_states,
|
States_Control the_states,
|
||||||
States_Control mask
|
States_Control mask
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization (
|
RTEMS_INLINE_ROUTINE void _System_state_Handler_initialization (
|
||||||
boolean is_multiprocessing
|
bool is_multiprocessing
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION;
|
_System_state_Current = SYSTEM_STATE_BEFORE_INITIALIZATION;
|
||||||
@@ -68,7 +68,7 @@ RTEMS_INLINE_ROUTINE System_state_Codes _System_state_Get ( void )
|
|||||||
* "before initialization" state, and FALSE otherwise.
|
* "before initialization" state, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _System_state_Is_before_initialization (
|
RTEMS_INLINE_ROUTINE bool _System_state_Is_before_initialization (
|
||||||
System_state_Codes state
|
System_state_Codes state
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -80,7 +80,7 @@ RTEMS_INLINE_ROUTINE boolean _System_state_Is_before_initialization (
|
|||||||
* "before multitasking" state, and FALSE otherwise.
|
* "before multitasking" state, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _System_state_Is_before_multitasking (
|
RTEMS_INLINE_ROUTINE bool _System_state_Is_before_multitasking (
|
||||||
System_state_Codes state
|
System_state_Codes state
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -92,7 +92,7 @@ RTEMS_INLINE_ROUTINE boolean _System_state_Is_before_multitasking (
|
|||||||
* "begin multitasking" state, and FALSE otherwise.
|
* "begin multitasking" state, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _System_state_Is_begin_multitasking (
|
RTEMS_INLINE_ROUTINE bool _System_state_Is_begin_multitasking (
|
||||||
System_state_Codes state
|
System_state_Codes state
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -104,7 +104,7 @@ RTEMS_INLINE_ROUTINE boolean _System_state_Is_begin_multitasking (
|
|||||||
* "up" state, and FALSE otherwise.
|
* "up" state, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _System_state_Is_up (
|
RTEMS_INLINE_ROUTINE bool _System_state_Is_up (
|
||||||
System_state_Codes state
|
System_state_Codes state
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -116,7 +116,7 @@ RTEMS_INLINE_ROUTINE boolean _System_state_Is_up (
|
|||||||
* "failed" state, and FALSE otherwise.
|
* "failed" state, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _System_state_Is_failed (
|
RTEMS_INLINE_ROUTINE bool _System_state_Is_failed (
|
||||||
System_state_Codes state
|
System_state_Codes state
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Stop_multitasking( void )
|
|||||||
* thread, and FALSE otherwise.
|
* thread, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Thread_Is_executing (
|
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
|
||||||
const Thread_Control *the_thread
|
const Thread_Control *the_thread
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -64,7 +64,7 @@ RTEMS_INLINE_ROUTINE boolean _Thread_Is_executing (
|
|||||||
* thread, and FALSE otherwise.
|
* thread, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Thread_Is_heir (
|
RTEMS_INLINE_ROUTINE bool _Thread_Is_heir (
|
||||||
const Thread_Control *the_thread
|
const Thread_Control *the_thread
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -76,7 +76,7 @@ RTEMS_INLINE_ROUTINE boolean _Thread_Is_heir (
|
|||||||
* is also the heir thread, and FALSE otherwise.
|
* is also the heir thread, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Thread_Is_executing_also_the_heir( void )
|
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
|
||||||
{
|
{
|
||||||
return ( _Thread_Executing == _Thread_Heir );
|
return ( _Thread_Executing == _Thread_Heir );
|
||||||
}
|
}
|
||||||
@@ -127,7 +127,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
|
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
|
||||||
RTEMS_INLINE_ROUTINE boolean _Thread_Is_allocated_fp (
|
RTEMS_INLINE_ROUTINE bool _Thread_Is_allocated_fp (
|
||||||
const Thread_Control *the_thread
|
const Thread_Control *the_thread
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -235,7 +235,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
|
|||||||
* otherwise.
|
* otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Thread_Is_dispatching_enabled( void )
|
RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void )
|
||||||
{
|
{
|
||||||
return ( _Thread_Dispatch_disable_level == 0 );
|
return ( _Thread_Dispatch_disable_level == 0 );
|
||||||
}
|
}
|
||||||
@@ -245,7 +245,7 @@ RTEMS_INLINE_ROUTINE boolean _Thread_Is_dispatching_enabled( void )
|
|||||||
* otherwise.
|
* otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Thread_Is_context_switch_necessary( void )
|
RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void )
|
||||||
{
|
{
|
||||||
return ( _Context_Switch_necessary );
|
return ( _Context_Switch_necessary );
|
||||||
}
|
}
|
||||||
@@ -263,7 +263,7 @@ RTEMS_INLINE_ROUTINE void _Thread_Dispatch_initialization( void )
|
|||||||
* This function returns TRUE if the_thread is NULL and FALSE otherwise.
|
* This function returns TRUE if the_thread is NULL and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Thread_Is_null (
|
RTEMS_INLINE_ROUTINE bool _Thread_Is_null (
|
||||||
const Thread_Control *the_thread
|
const Thread_Control *the_thread
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@@ -274,7 +274,7 @@ RTEMS_INLINE_ROUTINE boolean _Thread_Is_null (
|
|||||||
*
|
*
|
||||||
* status which indicates that a proxy is blocking, and FALSE otherwise.
|
* status which indicates that a proxy is blocking, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
RTEMS_INLINE_ROUTINE boolean _Thread_Is_proxy_blocking (
|
RTEMS_INLINE_ROUTINE bool _Thread_Is_proxy_blocking (
|
||||||
uint32_t code
|
uint32_t code
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
* multiprocessing receive thread.
|
* multiprocessing receive thread.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Thread_MP_Is_receive (
|
RTEMS_INLINE_ROUTINE bool _Thread_MP_Is_receive (
|
||||||
Thread_Control *the_thread
|
Thread_Control *the_thread
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number (
|
|||||||
* group chain, and FALSE if the search should start at the rear.
|
* group chain, and FALSE if the search should start at the rear.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Thread_queue_Is_reverse_search (
|
RTEMS_INLINE_ROUTINE bool _Thread_queue_Is_reverse_search (
|
||||||
Priority_Control the_priority
|
Priority_Control the_priority
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ RTEMS_INLINE_ROUTINE void _Watchdog_Initialize(
|
|||||||
* state, and FALSE otherwise.
|
* state, and FALSE otherwise.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
RTEMS_INLINE_ROUTINE boolean _Watchdog_Is_active(
|
RTEMS_INLINE_ROUTINE bool _Watchdog_Is_active(
|
||||||
Watchdog_Control *the_watchdog
|
Watchdog_Control *the_watchdog
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
void _CORE_barrier_Wait(
|
void _CORE_barrier_Wait(
|
||||||
CORE_barrier_Control *the_barrier,
|
CORE_barrier_Control *the_barrier,
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout,
|
Watchdog_Interval timeout,
|
||||||
CORE_barrier_API_mp_support_callout api_barrier_mp_support
|
CORE_barrier_API_mp_support_callout api_barrier_mp_support
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
* FALSE - if the message queue is NOT initialized
|
* FALSE - if the message queue is NOT initialized
|
||||||
*/
|
*/
|
||||||
|
|
||||||
boolean _CORE_message_queue_Initialize(
|
bool _CORE_message_queue_Initialize(
|
||||||
CORE_message_queue_Control *the_message_queue,
|
CORE_message_queue_Control *the_message_queue,
|
||||||
CORE_message_queue_Attributes *the_message_queue_attributes,
|
CORE_message_queue_Attributes *the_message_queue_attributes,
|
||||||
uint32_t maximum_pending_messages,
|
uint32_t maximum_pending_messages,
|
||||||
@@ -79,7 +79,7 @@ boolean _CORE_message_queue_Initialize(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (allocated_message_size < maximum_message_size)
|
if (allocated_message_size < maximum_message_size)
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calculate how much total memory is required for message buffering and
|
* Calculate how much total memory is required for message buffering and
|
||||||
@@ -89,7 +89,7 @@ boolean _CORE_message_queue_Initialize(
|
|||||||
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
|
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
|
||||||
|
|
||||||
if (message_buffering_required < allocated_message_size)
|
if (message_buffering_required < allocated_message_size)
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Attempt to allocate the message memory
|
* Attempt to allocate the message memory
|
||||||
@@ -98,7 +98,7 @@ boolean _CORE_message_queue_Initialize(
|
|||||||
_Workspace_Allocate( message_buffering_required );
|
_Workspace_Allocate( message_buffering_required );
|
||||||
|
|
||||||
if (the_message_queue->message_buffers == 0)
|
if (the_message_queue->message_buffers == 0)
|
||||||
return FALSE;
|
return false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialize the pool of inactive messages, pending messages,
|
* Initialize the pool of inactive messages, pending messages,
|
||||||
@@ -121,5 +121,5 @@ boolean _CORE_message_queue_Initialize(
|
|||||||
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
|
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
|
||||||
);
|
);
|
||||||
|
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ void _CORE_message_queue_Insert_message(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
ISR_Level level;
|
ISR_Level level;
|
||||||
boolean notify = FALSE;
|
bool notify = false;
|
||||||
|
|
||||||
the_message->priority = submit_type;
|
the_message->priority = submit_type;
|
||||||
|
|
||||||
@@ -67,14 +67,14 @@ void _CORE_message_queue_Insert_message(
|
|||||||
case CORE_MESSAGE_QUEUE_SEND_REQUEST:
|
case CORE_MESSAGE_QUEUE_SEND_REQUEST:
|
||||||
_ISR_Disable( level );
|
_ISR_Disable( level );
|
||||||
if ( the_message_queue->number_of_pending_messages++ == 0 )
|
if ( the_message_queue->number_of_pending_messages++ == 0 )
|
||||||
notify = TRUE;
|
notify = true;
|
||||||
_CORE_message_queue_Append_unprotected(the_message_queue, the_message);
|
_CORE_message_queue_Append_unprotected(the_message_queue, the_message);
|
||||||
_ISR_Enable( level );
|
_ISR_Enable( level );
|
||||||
break;
|
break;
|
||||||
case CORE_MESSAGE_QUEUE_URGENT_REQUEST:
|
case CORE_MESSAGE_QUEUE_URGENT_REQUEST:
|
||||||
_ISR_Disable( level );
|
_ISR_Disable( level );
|
||||||
if ( the_message_queue->number_of_pending_messages++ == 0 )
|
if ( the_message_queue->number_of_pending_messages++ == 0 )
|
||||||
notify = TRUE;
|
notify = true;
|
||||||
_CORE_message_queue_Prepend_unprotected(the_message_queue, the_message);
|
_CORE_message_queue_Prepend_unprotected(the_message_queue, the_message);
|
||||||
_ISR_Enable( level );
|
_ISR_Enable( level );
|
||||||
break;
|
break;
|
||||||
@@ -99,7 +99,7 @@ void _CORE_message_queue_Insert_message(
|
|||||||
}
|
}
|
||||||
_ISR_Disable( level );
|
_ISR_Disable( level );
|
||||||
if ( the_message_queue->number_of_pending_messages++ == 0 )
|
if ( the_message_queue->number_of_pending_messages++ == 0 )
|
||||||
notify = TRUE;
|
notify = true;
|
||||||
_Chain_Insert_unprotected( the_node->previous, &the_message->Node );
|
_Chain_Insert_unprotected( the_node->previous, &the_message->Node );
|
||||||
_ISR_Enable( level );
|
_ISR_Enable( level );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ void _CORE_message_queue_Seize(
|
|||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
void *buffer,
|
void *buffer,
|
||||||
size_t *size_p,
|
size_t *size_p,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ CORE_message_queue_Status _CORE_message_queue_Submit(
|
|||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
|
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
|
||||||
CORE_message_queue_Submit_types submit_type,
|
CORE_message_queue_Submit_types submit_type,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
void _CORE_mutex_Seize(
|
void _CORE_mutex_Seize(
|
||||||
CORE_mutex_Control *_the_mutex,
|
CORE_mutex_Control *_the_mutex,
|
||||||
Objects_Id _id,
|
Objects_Id _id,
|
||||||
boolean _wait,
|
bool _wait,
|
||||||
Watchdog_Interval _timeout,
|
Watchdog_Interval _timeout,
|
||||||
ISR_Level _level
|
ISR_Level _level
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
void _CORE_RWLock_Obtain_for_reading(
|
void _CORE_RWLock_Obtain_for_reading(
|
||||||
CORE_RWLock_Control *the_rwlock,
|
CORE_RWLock_Control *the_rwlock,
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout,
|
Watchdog_Interval timeout,
|
||||||
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
|
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
void _CORE_RWLock_Obtain_for_writing(
|
void _CORE_RWLock_Obtain_for_writing(
|
||||||
CORE_RWLock_Control *the_rwlock,
|
CORE_RWLock_Control *the_rwlock,
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout,
|
Watchdog_Interval timeout,
|
||||||
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
|
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
void _CORE_semaphore_Seize(
|
void _CORE_semaphore_Seize(
|
||||||
CORE_semaphore_Control *the_semaphore,
|
CORE_semaphore_Control *the_semaphore,
|
||||||
Objects_Id id,
|
Objects_Id id,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
CORE_spinlock_Status _CORE_spinlock_Wait(
|
CORE_spinlock_Status _CORE_spinlock_Wait(
|
||||||
CORE_spinlock_Control *the_spinlock,
|
CORE_spinlock_Control *the_spinlock,
|
||||||
boolean wait,
|
bool wait,
|
||||||
Watchdog_Interval timeout
|
Watchdog_Interval timeout
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
* FALSE - if starting_address is invalid heap address
|
* FALSE - if starting_address is invalid heap address
|
||||||
*/
|
*/
|
||||||
|
|
||||||
boolean _Heap_Free(
|
bool _Heap_Free(
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
void *starting_address
|
void *starting_address
|
||||||
)
|
)
|
||||||
@@ -45,7 +45,7 @@ boolean _Heap_Free(
|
|||||||
uint32_t the_size;
|
uint32_t the_size;
|
||||||
uint32_t next_size;
|
uint32_t next_size;
|
||||||
Heap_Statistics *const stats = &the_heap->stats;
|
Heap_Statistics *const stats = &the_heap->stats;
|
||||||
boolean next_is_free;
|
bool next_is_free;
|
||||||
|
|
||||||
if ( !_Addresses_Is_in_range(
|
if ( !_Addresses_Is_in_range(
|
||||||
starting_address, (void *)the_heap->start, (void *)the_heap->final ) ) {
|
starting_address, (void *)the_heap->start, (void *)the_heap->final ) ) {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ Heap_Resize_status _Heap_Resize_block(
|
|||||||
Heap_Block *the_block;
|
Heap_Block *the_block;
|
||||||
Heap_Block *next_block;
|
Heap_Block *next_block;
|
||||||
uint32_t next_block_size;
|
uint32_t next_block_size;
|
||||||
boolean next_is_used;
|
bool next_is_used;
|
||||||
Heap_Block *next_next_block;
|
Heap_Block *next_next_block;
|
||||||
uint32_t old_block_size;
|
uint32_t old_block_size;
|
||||||
uint32_t old_user_size;
|
uint32_t old_user_size;
|
||||||
|
|||||||
@@ -39,7 +39,7 @@
|
|||||||
* FALSE - if starting_address is invalid heap address
|
* FALSE - if starting_address is invalid heap address
|
||||||
*/
|
*/
|
||||||
|
|
||||||
boolean _Heap_Size_of_user_area(
|
bool _Heap_Size_of_user_area(
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
void *starting_address,
|
void *starting_address,
|
||||||
size_t *size
|
size_t *size
|
||||||
|
|||||||
@@ -39,10 +39,10 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
boolean _Heap_Walk(
|
bool _Heap_Walk(
|
||||||
Heap_Control *the_heap,
|
Heap_Control *the_heap,
|
||||||
int source,
|
int source,
|
||||||
boolean do_dump
|
bool do_dump
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Heap_Block *the_block = the_heap->start;
|
Heap_Block *the_block = the_heap->start;
|
||||||
@@ -89,7 +89,7 @@ boolean _Heap_Walk(
|
|||||||
while ( the_block != end ) {
|
while ( the_block != end ) {
|
||||||
uint32_t const the_size = _Heap_Block_size(the_block);
|
uint32_t const the_size = _Heap_Block_size(the_block);
|
||||||
Heap_Block *const next_block = _Heap_Block_at(the_block, the_size);
|
Heap_Block *const next_block = _Heap_Block_at(the_block, the_size);
|
||||||
boolean prev_used = _Heap_Is_prev_used(the_block);
|
bool prev_used = _Heap_Is_prev_used(the_block);
|
||||||
|
|
||||||
if (do_dump) {
|
if (do_dump) {
|
||||||
printk("PASS: %d block %p size %d(%c)",
|
printk("PASS: %d block %p size %d(%c)",
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
void _Internal_error_Occurred(
|
void _Internal_error_Occurred(
|
||||||
Internal_errors_Source the_source,
|
Internal_errors_Source the_source,
|
||||||
boolean is_internal,
|
bool is_internal,
|
||||||
uint32_t the_error
|
uint32_t the_error
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -53,11 +53,11 @@ void _Objects_Initialize_information(
|
|||||||
uint32_t the_class,
|
uint32_t the_class,
|
||||||
uint32_t maximum,
|
uint32_t maximum,
|
||||||
uint16_t size,
|
uint16_t size,
|
||||||
boolean is_string,
|
bool is_string,
|
||||||
uint32_t maximum_name_length
|
uint32_t maximum_name_length
|
||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
,
|
,
|
||||||
boolean supports_global,
|
bool supports_global,
|
||||||
Objects_Thread_queue_Extract_callout extract
|
Objects_Thread_queue_Extract_callout extract
|
||||||
#endif
|
#endif
|
||||||
)
|
)
|
||||||
@@ -165,7 +165,7 @@ void _Objects_Initialize_information(
|
|||||||
#if defined(RTEMS_MULTIPROCESSING)
|
#if defined(RTEMS_MULTIPROCESSING)
|
||||||
information->extract = extract;
|
information->extract = extract;
|
||||||
|
|
||||||
if ( supports_global == TRUE && _System_state_Is_multiprocessing ) {
|
if ( (supports_global == true) && _System_state_Is_multiprocessing ) {
|
||||||
|
|
||||||
information->global_table =
|
information->global_table =
|
||||||
(Chain_Control *) _Workspace_Allocate_or_fatal_error(
|
(Chain_Control *) _Workspace_Allocate_or_fatal_error(
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user