RTEMS 4.10Annotated Report
Sat May 22 07:03:24 2010
ffc0923c <_API_extensions_Run_postdriver>:
*
* _API_extensions_Run_postdriver
*/
void _API_extensions_Run_postdriver( void )
{
ffc0923c: 94 21 ff f0 stwu r1,-16(r1)
ffc09240: 7c 08 02 a6 mflr r0
ffc09244: 93 c1 00 08 stw r30,8(r1)
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
ffc09248: 3f c0 00 00 lis r30,0
*
* _API_extensions_Run_postdriver
*/
void _API_extensions_Run_postdriver( void )
{
ffc0924c: 93 e1 00 0c stw r31,12(r1)
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
ffc09250: 83 fe 2d 8c lwz r31,11660(r30)
ffc09254: 3b de 2d 8c addi r30,r30,11660
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc09258: 3b de 00 04 addi r30,r30,4
*
* _API_extensions_Run_postdriver
*/
void _API_extensions_Run_postdriver( void )
{
ffc0925c: 90 01 00 14 stw r0,20(r1)
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
ffc09260: 7f 9f f0 00 cmpw cr7,r31,r30
ffc09264: 41 9e 00 1c beq- cr7,ffc09280 <_API_extensions_Run_postdriver+0x44><== NEVER TAKEN
* Currently all APIs configure this hook so it is always non-NULL.
*/
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
if ( the_extension->postdriver_hook )
#endif
(*the_extension->postdriver_hook)();
ffc09268: 80 1f 00 08 lwz r0,8(r31)
ffc0926c: 7c 09 03 a6 mtctr r0
ffc09270: 4e 80 04 21 bctrl
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
!_Chain_Is_tail( &_API_extensions_List, the_node ) ;
the_node = the_node->next ) {
ffc09274: 83 ff 00 00 lwz r31,0(r31)
void _API_extensions_Run_postdriver( void )
{
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
ffc09278: 7f 9f f0 00 cmpw cr7,r31,r30
ffc0927c: 40 9e ff ec bne+ cr7,ffc09268 <_API_extensions_Run_postdriver+0x2c><== NEVER TAKEN
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
if ( the_extension->postdriver_hook )
#endif
(*the_extension->postdriver_hook)();
}
}
ffc09280: 80 01 00 14 lwz r0,20(r1)
ffc09284: 83 c1 00 08 lwz r30,8(r1)
ffc09288: 7c 08 03 a6 mtlr r0
ffc0928c: 83 e1 00 0c lwz r31,12(r1)
ffc09290: 38 21 00 10 addi r1,r1,16
ffc09294: 4e 80 00 20 blr
ffc09298 <_API_extensions_Run_postswitch>:
*
* _API_extensions_Run_postswitch
*/
void _API_extensions_Run_postswitch( void )
{
ffc09298: 94 21 ff e8 stwu r1,-24(r1)
ffc0929c: 7c 08 02 a6 mflr r0
ffc092a0: 93 c1 00 10 stw r30,16(r1)
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
ffc092a4: 3f c0 00 00 lis r30,0
*
* _API_extensions_Run_postswitch
*/
void _API_extensions_Run_postswitch( void )
{
ffc092a8: 93 e1 00 14 stw r31,20(r1)
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
ffc092ac: 83 fe 2d 8c lwz r31,11660(r30)
ffc092b0: 3b de 2d 8c addi r30,r30,11660
ffc092b4: 3b de 00 04 addi r30,r30,4
*
* _API_extensions_Run_postswitch
*/
void _API_extensions_Run_postswitch( void )
{
ffc092b8: 90 01 00 1c stw r0,28(r1)
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
ffc092bc: 7f 9f f0 00 cmpw cr7,r31,r30
*
* _API_extensions_Run_postswitch
*/
void _API_extensions_Run_postswitch( void )
{
ffc092c0: 93 a1 00 0c stw r29,12(r1)
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
ffc092c4: 41 9e 00 28 beq- cr7,ffc092ec <_API_extensions_Run_postswitch+0x54><== NEVER TAKEN
ffc092c8: 3f a0 00 00 lis r29,0
ffc092cc: 3b bd 27 6c addi r29,r29,10092
* provide this hook.
*/
#if defined(RTEMS_ITRON_API)
if ( the_extension->postswitch_hook )
#endif
(*the_extension->postswitch_hook)( _Thread_Executing );
ffc092d0: 80 1f 00 0c lwz r0,12(r31)
ffc092d4: 80 7d 00 00 lwz r3,0(r29)
ffc092d8: 7c 09 03 a6 mtctr r0
ffc092dc: 4e 80 04 21 bctrl
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
!_Chain_Is_tail( &_API_extensions_List, the_node ) ;
the_node = the_node->next ) {
ffc092e0: 83 ff 00 00 lwz r31,0(r31)
void _API_extensions_Run_postswitch( void )
{
Chain_Node *the_node;
API_extensions_Control *the_extension;
for ( the_node = _API_extensions_List.first ;
ffc092e4: 7f 9f f0 00 cmpw cr7,r31,r30
ffc092e8: 40 9e ff e8 bne+ cr7,ffc092d0 <_API_extensions_Run_postswitch+0x38><== NEVER TAKEN
#if defined(RTEMS_ITRON_API)
if ( the_extension->postswitch_hook )
#endif
(*the_extension->postswitch_hook)( _Thread_Executing );
}
}
ffc092ec: 80 01 00 1c lwz r0,28(r1)
ffc092f0: 83 a1 00 0c lwz r29,12(r1)
ffc092f4: 7c 08 03 a6 mtlr r0
ffc092f8: 83 c1 00 10 lwz r30,16(r1)
ffc092fc: 83 e1 00 14 lwz r31,20(r1)
ffc09300: 38 21 00 18 addi r1,r1,24
ffc09304: 4e 80 00 20 blr
ffc1c824 <_CORE_message_queue_Broadcast>:
Objects_Id id __attribute__((unused)),
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)),
#endif
uint32_t *count
)
{
ffc1c824: 94 21 ff e0 stwu r1,-32(r1)
ffc1c828: 7c 08 02 a6 mflr r0
ffc1c82c: 90 01 00 24 stw r0,36(r1)
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
ffc1c830: 80 03 00 4c lwz r0,76(r3)
Objects_Id id __attribute__((unused)),
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)),
#endif
uint32_t *count
)
{
ffc1c834: 93 41 00 08 stw r26,8(r1)
ffc1c838: 7d 1a 43 78 mr r26,r8
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
ffc1c83c: 7f 80 28 40 cmplw cr7,r0,r5
Objects_Id id __attribute__((unused)),
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)),
#endif
uint32_t *count
)
{
ffc1c840: 93 a1 00 14 stw r29,20(r1)
ffc1c844: 7c 9d 23 78 mr r29,r4
ffc1c848: 93 c1 00 18 stw r30,24(r1)
ffc1c84c: 7c 7e 1b 78 mr r30,r3
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
ffc1c850: 38 60 00 01 li r3,1
Objects_Id id __attribute__((unused)),
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)),
#endif
uint32_t *count
)
{
ffc1c854: 93 e1 00 1c stw r31,28(r1)
ffc1c858: 7c bf 2b 78 mr r31,r5
ffc1c85c: 93 61 00 0c stw r27,12(r1)
ffc1c860: 93 81 00 10 stw r28,16(r1)
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
ffc1c864: 41 9c 00 20 blt- cr7,ffc1c884 <_CORE_message_queue_Broadcast+0x60><== NEVER TAKEN
* NOTE: This check is critical because threads can block on
* send and receive and this ensures that we are broadcasting
* the message to threads waiting to receive -- not to send.
*/
if ( the_message_queue->number_of_pending_messages != 0 ) {
ffc1c868: 80 1e 00 48 lwz r0,72(r30)
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
_Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {
ffc1c86c: 3b 60 00 00 li r27,0
* NOTE: This check is critical because threads can block on
* send and receive and this ensures that we are broadcasting
* the message to threads waiting to receive -- not to send.
*/
if ( the_message_queue->number_of_pending_messages != 0 ) {
ffc1c870: 2f 80 00 00 cmpwi cr7,r0,0
ffc1c874: 41 be 00 4c beq+ cr7,ffc1c8c0 <_CORE_message_queue_Broadcast+0x9c>
*count = 0;
ffc1c878: 38 00 00 00 li r0,0
ffc1c87c: 90 08 00 00 stw r0,0(r8)
ffc1c880: 38 60 00 00 li r3,0
#endif
}
*count = number_broadcasted;
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
ffc1c884: 80 01 00 24 lwz r0,36(r1)
ffc1c888: 83 41 00 08 lwz r26,8(r1)
ffc1c88c: 7c 08 03 a6 mtlr r0
ffc1c890: 83 61 00 0c lwz r27,12(r1)
ffc1c894: 83 81 00 10 lwz r28,16(r1)
ffc1c898: 83 a1 00 14 lwz r29,20(r1)
ffc1c89c: 83 c1 00 18 lwz r30,24(r1)
ffc1c8a0: 83 e1 00 1c lwz r31,28(r1)
ffc1c8a4: 38 21 00 20 addi r1,r1,32
ffc1c8a8: 4e 80 00 20 blr
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
ffc1c8ac: 80 7c 00 2c lwz r3,44(r28)
*/
number_broadcasted = 0;
while ((the_thread =
_Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {
waitp = &the_thread->Wait;
number_broadcasted += 1;
ffc1c8b0: 3b 7b 00 01 addi r27,r27,1
ffc1c8b4: 48 00 a1 2d bl ffc269e0 <memcpy>
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
ffc1c8b8: 81 3c 00 28 lwz r9,40(r28)
ffc1c8bc: 93 e9 00 00 stw r31,0(r9)
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
_Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {
ffc1c8c0: 7f c3 f3 78 mr r3,r30
ffc1c8c4: 48 00 30 0d bl ffc1f8d0 <_Thread_queue_Dequeue>
ffc1c8c8: 7f a4 eb 78 mr r4,r29
/*
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
ffc1c8cc: 7c 7c 1b 79 mr. r28,r3
ffc1c8d0: 7f e5 fb 78 mr r5,r31
ffc1c8d4: 40 82 ff d8 bne+ ffc1c8ac <_CORE_message_queue_Broadcast+0x88>
#endif
}
*count = number_broadcasted;
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
ffc1c8d8: 80 01 00 24 lwz r0,36(r1)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_message_queue_mp_support) ( the_thread, id );
#endif
}
*count = number_broadcasted;
ffc1c8dc: 93 7a 00 00 stw r27,0(r26)
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
ffc1c8e0: 7c 08 03 a6 mtlr r0
ffc1c8e4: 83 41 00 08 lwz r26,8(r1)
ffc1c8e8: 83 61 00 0c lwz r27,12(r1)
ffc1c8ec: 83 81 00 10 lwz r28,16(r1)
ffc1c8f0: 83 a1 00 14 lwz r29,20(r1)
ffc1c8f4: 83 c1 00 18 lwz r30,24(r1)
ffc1c8f8: 83 e1 00 1c lwz r31,28(r1)
ffc1c8fc: 38 21 00 20 addi r1,r1,32
ffc1c900: 4e 80 00 20 blr
ffc14cb8 <_CORE_message_queue_Initialize>:
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Attributes *the_message_queue_attributes,
uint32_t maximum_pending_messages,
size_t maximum_message_size
)
{
ffc14cb8: 94 21 ff e0 stwu r1,-32(r1)
ffc14cbc: 7c 08 02 a6 mflr r0
/*
* Round size up to multiple of a pointer for chain init and
* check for overflow on adding overhead to each message.
*/
allocated_message_size = maximum_message_size;
if (allocated_message_size & (sizeof(uint32_t) - 1)) {
ffc14cc0: 7c c9 33 78 mr r9,r6
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Attributes *the_message_queue_attributes,
uint32_t maximum_pending_messages,
size_t maximum_message_size
)
{
ffc14cc4: 90 01 00 24 stw r0,36(r1)
/*
* Round size up to multiple of a pointer for chain init and
* check for overflow on adding overhead to each message.
*/
allocated_message_size = maximum_message_size;
if (allocated_message_size & (sizeof(uint32_t) - 1)) {
ffc14cc8: 70 c0 00 03 andi. r0,r6,3
{
size_t message_buffering_required;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
the_message_queue->number_of_pending_messages = 0;
ffc14ccc: 38 00 00 00 li r0,0
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Attributes *the_message_queue_attributes,
uint32_t maximum_pending_messages,
size_t maximum_message_size
)
{
ffc14cd0: 93 c1 00 18 stw r30,24(r1)
ffc14cd4: 7c 9e 23 78 mr r30,r4
ffc14cd8: 93 e1 00 1c stw r31,28(r1)
ffc14cdc: 7c 7f 1b 78 mr r31,r3
ffc14ce0: 93 a1 00 14 stw r29,20(r1)
size_t message_buffering_required;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
the_message_queue->number_of_pending_messages = 0;
ffc14ce4: 90 03 00 48 stw r0,72(r3)
)
{
size_t message_buffering_required;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
ffc14ce8: 90 a3 00 44 stw r5,68(r3)
the_message_queue->number_of_pending_messages = 0;
the_message_queue->maximum_message_size = maximum_message_size;
ffc14cec: 90 c3 00 4c stw r6,76(r3)
/*
* Round size up to multiple of a pointer for chain init and
* check for overflow on adding overhead to each message.
*/
allocated_message_size = maximum_message_size;
if (allocated_message_size & (sizeof(uint32_t) - 1)) {
ffc14cf0: 41 82 00 34 beq- ffc14d24 <_CORE_message_queue_Initialize+0x6c>
allocated_message_size += sizeof(uint32_t);
ffc14cf4: 39 26 00 04 addi r9,r6,4
allocated_message_size &= ~(sizeof(uint32_t) - 1);
ffc14cf8: 55 29 00 3a rlwinm r9,r9,0,0,29
}
if (allocated_message_size < maximum_message_size)
ffc14cfc: 7f 86 48 40 cmplw cr7,r6,r9
ffc14d00: 40 9d 00 24 ble- cr7,ffc14d24 <_CORE_message_queue_Initialize+0x6c><== ALWAYS TAKEN
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
}
ffc14d04: 80 01 00 24 lwz r0,36(r1)
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
ffc14d08: 38 60 00 00 li r3,0
}
ffc14d0c: 83 a1 00 14 lwz r29,20(r1)
ffc14d10: 7c 08 03 a6 mtlr r0
ffc14d14: 83 c1 00 18 lwz r30,24(r1)
ffc14d18: 83 e1 00 1c lwz r31,28(r1)
ffc14d1c: 38 21 00 20 addi r1,r1,32
ffc14d20: 4e 80 00 20 blr
/*
* Calculate how much total memory is required for message buffering and
* check for overflow on the multiplication.
*/
message_buffering_required = (size_t) maximum_pending_messages *
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
ffc14d24: 3b a9 00 10 addi r29,r9,16
/*
* Calculate how much total memory is required for message buffering and
* check for overflow on the multiplication.
*/
message_buffering_required = (size_t) maximum_pending_messages *
ffc14d28: 7c 7d 29 d6 mullw r3,r29,r5
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
ffc14d2c: 7f 83 48 40 cmplw cr7,r3,r9
ffc14d30: 41 9c ff d4 blt+ cr7,ffc14d04 <_CORE_message_queue_Initialize+0x4c><== NEVER TAKEN
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
ffc14d34: 90 a1 00 08 stw r5,8(r1)
ffc14d38: 48 00 3a 3d bl ffc18774 <_Workspace_Allocate>
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
ffc14d3c: 2f 83 00 00 cmpwi cr7,r3,0
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
ffc14d40: 90 7f 00 5c stw r3,92(r31)
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
ffc14d44: 80 a1 00 08 lwz r5,8(r1)
ffc14d48: 41 be ff bc beq- cr7,ffc14d04 <_CORE_message_queue_Initialize+0x4c>
/*
* Initialize the pool of inactive messages, pending messages,
* and set of waiting threads.
*/
_Chain_Initialize (
ffc14d4c: 7c 64 1b 78 mr r4,r3
ffc14d50: 7f a6 eb 78 mr r6,r29
ffc14d54: 38 7f 00 60 addi r3,r31,96
ffc14d58: 48 00 5b 9d bl ffc1a8f4 <_Chain_Initialize>
allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
);
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
_Thread_queue_Initialize(
ffc14d5c: 80 9e 00 00 lwz r4,0(r30)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc14d60: 39 3f 00 54 addi r9,r31,84
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc14d64: 38 1f 00 50 addi r0,r31,80
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc14d68: 91 3f 00 50 stw r9,80(r31)
ffc14d6c: 68 84 00 01 xori r4,r4,1
the_chain->permanent_null = NULL;
ffc14d70: 39 20 00 00 li r9,0
the_chain->last = _Chain_Head(the_chain);
ffc14d74: 90 1f 00 58 stw r0,88(r31)
ffc14d78: 7c 84 00 34 cntlzw r4,r4
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
ffc14d7c: 91 3f 00 54 stw r9,84(r31)
ffc14d80: 7f e3 fb 78 mr r3,r31
ffc14d84: 54 84 d9 7e rlwinm r4,r4,27,5,31
ffc14d88: 38 a0 00 80 li r5,128
ffc14d8c: 38 c0 00 06 li r6,6
ffc14d90: 48 00 29 55 bl ffc176e4 <_Thread_queue_Initialize>
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
}
ffc14d94: 80 01 00 24 lwz r0,36(r1)
allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
);
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
_Thread_queue_Initialize(
ffc14d98: 38 60 00 01 li r3,1
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
}
ffc14d9c: 83 a1 00 14 lwz r29,20(r1)
ffc14da0: 7c 08 03 a6 mtlr r0
ffc14da4: 83 c1 00 18 lwz r30,24(r1)
ffc14da8: 83 e1 00 1c lwz r31,28(r1)
ffc14dac: 38 21 00 20 addi r1,r1,32
ffc14db0: 4e 80 00 20 blr
ffc096bc <_CORE_mutex_Seize>:
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
ffc096bc: 94 21 ff d8 stwu r1,-40(r1)
ffc096c0: 7c 08 02 a6 mflr r0
ffc096c4: 93 e1 00 24 stw r31,36(r1)
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
ffc096c8: 3f e0 00 00 lis r31,0
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
ffc096cc: 90 01 00 2c stw r0,44(r1)
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
ffc096d0: 80 1f 27 2c lwz r0,10028(r31)
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
ffc096d4: 93 61 00 14 stw r27,20(r1)
ffc096d8: 7c db 33 78 mr r27,r6
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
ffc096dc: 2f 80 00 00 cmpwi cr7,r0,0
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
ffc096e0: 93 81 00 18 stw r28,24(r1)
ffc096e4: 7c bc 2b 78 mr r28,r5
ffc096e8: 93 a1 00 1c stw r29,28(r1)
ffc096ec: 7c 9d 23 78 mr r29,r4
ffc096f0: 93 c1 00 20 stw r30,32(r1)
ffc096f4: 7c 7e 1b 78 mr r30,r3
ffc096f8: 90 e1 00 08 stw r7,8(r1)
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
ffc096fc: 41 9e 00 0c beq- cr7,ffc09708 <_CORE_mutex_Seize+0x4c>
ffc09700: 2f 85 00 00 cmpwi cr7,r5,0
ffc09704: 40 9e 00 5c bne- cr7,ffc09760 <_CORE_mutex_Seize+0xa4> <== ALWAYS TAKEN
ffc09708: 7f c3 f3 78 mr r3,r30
ffc0970c: 38 81 00 08 addi r4,r1,8
ffc09710: 48 00 56 9d bl ffc0edac <_CORE_mutex_Seize_interrupt_trylock>
ffc09714: 2f 83 00 00 cmpwi cr7,r3,0
ffc09718: 41 9e 00 24 beq- cr7,ffc0973c <_CORE_mutex_Seize+0x80>
ffc0971c: 2f 9c 00 00 cmpwi cr7,r28,0
ffc09720: 40 9e 00 60 bne- cr7,ffc09780 <_CORE_mutex_Seize+0xc4>
ffc09724: 80 01 00 08 lwz r0,8(r1)
ffc09728: 7c 00 01 24 mtmsr r0
ffc0972c: 3d 20 00 00 lis r9,0
ffc09730: 81 29 27 6c lwz r9,10092(r9)
ffc09734: 38 00 00 01 li r0,1
ffc09738: 90 09 00 34 stw r0,52(r9)
}
ffc0973c: 80 01 00 2c lwz r0,44(r1)
ffc09740: 83 61 00 14 lwz r27,20(r1)
ffc09744: 7c 08 03 a6 mtlr r0
ffc09748: 83 81 00 18 lwz r28,24(r1)
ffc0974c: 83 a1 00 1c lwz r29,28(r1)
ffc09750: 83 c1 00 20 lwz r30,32(r1)
ffc09754: 83 e1 00 24 lwz r31,36(r1)
ffc09758: 38 21 00 28 addi r1,r1,40
ffc0975c: 4e 80 00 20 blr
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
ffc09760: 3d 20 00 00 lis r9,0
ffc09764: 80 09 27 90 lwz r0,10128(r9)
ffc09768: 2b 80 00 01 cmplwi cr7,r0,1
ffc0976c: 40 9d ff 9c ble+ cr7,ffc09708 <_CORE_mutex_Seize+0x4c>
ffc09770: 38 60 00 00 li r3,0
ffc09774: 38 80 00 00 li r4,0
ffc09778: 38 a0 00 13 li r5,19
ffc0977c: 48 00 07 9d bl ffc09f18 <_Internal_error_Occurred>
ffc09780: 3d 20 00 00 lis r9,0
ffc09784: 81 7f 27 2c lwz r11,10028(r31)
ffc09788: 81 29 27 6c lwz r9,10092(r9)
ffc0978c: 38 0b 00 01 addi r0,r11,1
ffc09790: 93 a9 00 20 stw r29,32(r9)
RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section (
Thread_queue_Control *the_thread_queue
)
{
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
ffc09794: 39 60 00 01 li r11,1
ffc09798: 91 7e 00 30 stw r11,48(r30)
ffc0979c: 93 c9 00 44 stw r30,68(r9)
ffc097a0: 90 1f 27 2c stw r0,10028(r31)
ffc097a4: 80 01 00 08 lwz r0,8(r1)
ffc097a8: 7c 00 01 24 mtmsr r0
ffc097ac: 7f c3 f3 78 mr r3,r30
ffc097b0: 7f 64 db 78 mr r4,r27
ffc097b4: 4b ff fe 45 bl ffc095f8 <_CORE_mutex_Seize_interrupt_blocking>
}
ffc097b8: 80 01 00 2c lwz r0,44(r1)
ffc097bc: 83 61 00 14 lwz r27,20(r1)
ffc097c0: 7c 08 03 a6 mtlr r0
ffc097c4: 83 81 00 18 lwz r28,24(r1)
ffc097c8: 83 a1 00 1c lwz r29,28(r1)
ffc097cc: 83 c1 00 20 lwz r30,32(r1)
ffc097d0: 83 e1 00 24 lwz r31,36(r1)
ffc097d4: 38 21 00 28 addi r1,r1,40
ffc097d8: 4e 80 00 20 blr
ffc0edac <_CORE_mutex_Seize_interrupt_trylock>:
#if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__)
int _CORE_mutex_Seize_interrupt_trylock(
CORE_mutex_Control *the_mutex,
ISR_Level *level_p
)
{
ffc0edac: 7c 08 02 a6 mflr r0
ffc0edb0: 94 21 ff f8 stwu r1,-8(r1)
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
ffc0edb4: 3d 20 00 00 lis r9,0
ffc0edb8: 81 29 27 6c lwz r9,10092(r9)
ffc0edbc: 90 01 00 0c stw r0,12(r1)
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
ffc0edc0: 38 00 00 00 li r0,0
ffc0edc4: 90 09 00 34 stw r0,52(r9)
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
ffc0edc8: 81 63 00 50 lwz r11,80(r3)
ffc0edcc: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0edd0: 41 9e 00 4c beq- cr7,ffc0ee1c <_CORE_mutex_Seize_interrupt_trylock+0x70>
*/
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority(
CORE_mutex_Attributes *the_attribute
)
{
return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
ffc0edd4: 81 63 00 48 lwz r11,72(r3)
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
the_mutex->nest_count = 1;
ffc0edd8: 39 40 00 01 li r10,1
/* disabled when you get here */
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
ffc0eddc: 90 03 00 50 stw r0,80(r3)
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
the_mutex->nest_count = 1;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
ffc0ede0: 2f 8b 00 02 cmpwi cr7,r11,2
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
ffc0ede4: 81 09 00 08 lwz r8,8(r9)
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
the_mutex->lock = CORE_MUTEX_LOCKED;
the_mutex->holder = executing;
ffc0ede8: 91 23 00 5c stw r9,92(r3)
the_mutex->holder_id = executing->Object.id;
ffc0edec: 91 03 00 60 stw r8,96(r3)
the_mutex->nest_count = 1;
ffc0edf0: 91 43 00 54 stw r10,84(r3)
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
ffc0edf4: 41 9e 00 48 beq- cr7,ffc0ee3c <_CORE_mutex_Seize_interrupt_trylock+0x90>
ffc0edf8: 2f 8b 00 03 cmpwi cr7,r11,3
ffc0edfc: 41 9e 00 78 beq- cr7,ffc0ee74 <_CORE_mutex_Seize_interrupt_trylock+0xc8>
ffc0ee00: 80 04 00 00 lwz r0,0(r4)
ffc0ee04: 7c 00 01 24 mtmsr r0
return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
}
ffc0ee08: 80 01 00 0c lwz r0,12(r1)
ffc0ee0c: 38 60 00 00 li r3,0
ffc0ee10: 38 21 00 08 addi r1,r1,8
ffc0ee14: 7c 08 03 a6 mtlr r0
ffc0ee18: 4e 80 00 20 blr
/*
* At this point, we know the mutex was not available. If this thread
* is the thread that has locked the mutex, let's see if we are allowed
* to nest access.
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
ffc0ee1c: 80 03 00 5c lwz r0,92(r3)
ffc0ee20: 7f 89 00 00 cmpw cr7,r9,r0
ffc0ee24: 41 9e 00 28 beq- cr7,ffc0ee4c <_CORE_mutex_Seize_interrupt_trylock+0xa0>
ffc0ee28: 38 60 00 01 li r3,1
ffc0ee2c: 80 01 00 0c lwz r0,12(r1)
ffc0ee30: 38 21 00 08 addi r1,r1,8
ffc0ee34: 7c 08 03 a6 mtlr r0
ffc0ee38: 4e 80 00 20 blr
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
ffc0ee3c: 81 69 00 1c lwz r11,28(r9)
ffc0ee40: 38 0b 00 01 addi r0,r11,1
ffc0ee44: 90 09 00 1c stw r0,28(r9)
ffc0ee48: 4b ff ff b8 b ffc0ee00 <_CORE_mutex_Seize_interrupt_trylock+0x54>
* At this point, we know the mutex was not available. If this thread
* is the thread that has locked the mutex, let's see if we are allowed
* to nest access.
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
ffc0ee4c: 80 03 00 40 lwz r0,64(r3)
ffc0ee50: 2f 80 00 00 cmpwi cr7,r0,0
ffc0ee54: 40 9e 00 74 bne- cr7,ffc0eec8 <_CORE_mutex_Seize_interrupt_trylock+0x11c>
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
ffc0ee58: 81 23 00 54 lwz r9,84(r3)
ffc0ee5c: 38 09 00 01 addi r0,r9,1
ffc0ee60: 90 03 00 54 stw r0,84(r3)
ffc0ee64: 80 04 00 00 lwz r0,0(r4)
ffc0ee68: 7c 00 01 24 mtmsr r0
ffc0ee6c: 38 60 00 00 li r3,0
ffc0ee70: 4b ff ff bc b ffc0ee2c <_CORE_mutex_Seize_interrupt_trylock+0x80>
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
ffc0ee74: 80 e9 00 1c lwz r7,28(r9)
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
current = executing->current_priority;
ffc0ee78: 81 69 00 14 lwz r11,20(r9)
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
ffc0ee7c: 39 07 00 01 addi r8,r7,1
ffc0ee80: 91 09 00 1c stw r8,28(r9)
*/
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
ffc0ee84: 81 03 00 4c lwz r8,76(r3)
current = executing->current_priority;
if ( current == ceiling ) {
ffc0ee88: 7f 88 58 00 cmpw cr7,r8,r11
ffc0ee8c: 41 9e 00 90 beq- cr7,ffc0ef1c <_CORE_mutex_Seize_interrupt_trylock+0x170>
_ISR_Enable( *level_p );
return 0;
}
if ( current > ceiling ) {
ffc0ee90: 7f 88 58 40 cmplw cr7,r8,r11
ffc0ee94: 41 9c 00 54 blt- cr7,ffc0eee8 <_CORE_mutex_Seize_interrupt_trylock+0x13c>
);
_Thread_Enable_dispatch();
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
ffc0ee98: 39 60 00 06 li r11,6
ffc0ee9c: 91 69 00 34 stw r11,52(r9)
the_mutex->lock = CORE_MUTEX_UNLOCKED;
the_mutex->nest_count = 0; /* undo locking above */
ffc0eea0: 90 03 00 54 stw r0,84(r3)
_Thread_Enable_dispatch();
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
the_mutex->lock = CORE_MUTEX_UNLOCKED;
ffc0eea4: 91 43 00 50 stw r10,80(r3)
the_mutex->nest_count = 0; /* undo locking above */
executing->resource_count--; /* undo locking above */
ffc0eea8: 90 e9 00 1c stw r7,28(r9)
ffc0eeac: 80 04 00 00 lwz r0,0(r4)
ffc0eeb0: 7c 00 01 24 mtmsr r0
ffc0eeb4: 80 01 00 0c lwz r0,12(r1)
ffc0eeb8: 38 60 00 00 li r3,0
ffc0eebc: 38 21 00 08 addi r1,r1,8
ffc0eec0: 7c 08 03 a6 mtlr r0
ffc0eec4: 4e 80 00 20 blr
* At this point, we know the mutex was not available. If this thread
* is the thread that has locked the mutex, let's see if we are allowed
* to nest access.
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
ffc0eec8: 2f 80 00 01 cmpwi cr7,r0,1
ffc0eecc: 40 9e ff 5c bne+ cr7,ffc0ee28 <_CORE_mutex_Seize_interrupt_trylock+0x7c><== ALWAYS TAKEN
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
_ISR_Enable( *level_p );
return 0;
case CORE_MUTEX_NESTING_IS_ERROR:
executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
ffc0eed0: 38 00 00 02 li r0,2 <== NOT EXECUTED
ffc0eed4: 90 09 00 34 stw r0,52(r9) <== NOT EXECUTED
ffc0eed8: 80 04 00 00 lwz r0,0(r4) <== NOT EXECUTED
ffc0eedc: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
ffc0eee0: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc0eee4: 4b ff ff 48 b ffc0ee2c <_CORE_mutex_Seize_interrupt_trylock+0x80><== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
ffc0eee8: 3d 20 00 00 lis r9,0
ffc0eeec: 81 69 27 2c lwz r11,10028(r9)
ffc0eef0: 38 0b 00 01 addi r0,r11,1
ffc0eef4: 90 09 27 2c stw r0,10028(r9)
ffc0eef8: 80 04 00 00 lwz r0,0(r4)
ffc0eefc: 7c 00 01 24 mtmsr r0
}
if ( current > ceiling ) {
_Thread_Disable_dispatch();
_ISR_Enable( *level_p );
_Thread_Change_priority(
ffc0ef00: 80 83 00 4c lwz r4,76(r3)
ffc0ef04: 38 a0 00 00 li r5,0
ffc0ef08: 80 63 00 5c lwz r3,92(r3)
ffc0ef0c: 4b ff ba ed bl ffc0a9f8 <_Thread_Change_priority>
the_mutex->holder,
the_mutex->Attributes.priority_ceiling,
false
);
_Thread_Enable_dispatch();
ffc0ef10: 4b ff c1 f5 bl ffc0b104 <_Thread_Enable_dispatch>
ffc0ef14: 38 60 00 00 li r3,0
ffc0ef18: 4b ff ff 14 b ffc0ee2c <_CORE_mutex_Seize_interrupt_trylock+0x80>
ffc0ef1c: 80 04 00 00 lwz r0,0(r4)
ffc0ef20: 7c 00 01 24 mtmsr r0
ffc0ef24: 38 60 00 00 li r3,0
ffc0ef28: 4b ff ff 04 b ffc0ee2c <_CORE_mutex_Seize_interrupt_trylock+0x80>
ffc099bc <_CORE_semaphore_Surrender>:
CORE_semaphore_Status _CORE_semaphore_Surrender(
CORE_semaphore_Control *the_semaphore,
Objects_Id id,
CORE_semaphore_API_mp_support_callout api_semaphore_mp_support
)
{
ffc099bc: 94 21 ff f0 stwu r1,-16(r1)
ffc099c0: 7c 08 02 a6 mflr r0
ffc099c4: 93 e1 00 0c stw r31,12(r1)
ffc099c8: 7c 7f 1b 78 mr r31,r3
ffc099cc: 90 01 00 14 stw r0,20(r1)
ISR_Level level;
CORE_semaphore_Status status;
status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
ffc099d0: 48 00 1b dd bl ffc0b5ac <_Thread_queue_Dequeue>
ffc099d4: 2f 83 00 00 cmpwi cr7,r3,0
ffc099d8: 38 60 00 00 li r3,0
ffc099dc: 41 9e 00 18 beq- cr7,ffc099f4 <_CORE_semaphore_Surrender+0x38>
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
}
return status;
}
ffc099e0: 80 01 00 14 lwz r0,20(r1)
ffc099e4: 83 e1 00 0c lwz r31,12(r1)
ffc099e8: 38 21 00 10 addi r1,r1,16
ffc099ec: 7c 08 03 a6 mtlr r0
ffc099f0: 4e 80 00 20 blr
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc099f4: 7c 00 00 a6 mfmsr r0
ffc099f8: 7d 30 42 a6 mfsprg r9,0
ffc099fc: 7c 09 48 78 andc r9,r0,r9
ffc09a00: 7d 20 01 24 mtmsr r9
(*api_semaphore_mp_support) ( the_thread, id );
#endif
} else {
_ISR_Disable( level );
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
ffc09a04: 81 3f 00 48 lwz r9,72(r31)
ffc09a08: 38 60 00 04 li r3,4
ffc09a0c: 81 7f 00 40 lwz r11,64(r31)
ffc09a10: 7f 89 58 40 cmplw cr7,r9,r11
ffc09a14: 41 9c 00 1c blt- cr7,ffc09a30 <_CORE_semaphore_Surrender+0x74><== ALWAYS TAKEN
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc09a18: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
}
return status;
}
ffc09a1c: 80 01 00 14 lwz r0,20(r1)
ffc09a20: 83 e1 00 0c lwz r31,12(r1)
ffc09a24: 38 21 00 10 addi r1,r1,16
ffc09a28: 7c 08 03 a6 mtlr r0
ffc09a2c: 4e 80 00 20 blr
#endif
} else {
_ISR_Disable( level );
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
the_semaphore->count += 1;
ffc09a30: 39 29 00 01 addi r9,r9,1
ffc09a34: 91 3f 00 48 stw r9,72(r31)
ffc09a38: 38 60 00 00 li r3,0
ffc09a3c: 7c 00 01 24 mtmsr r0
ffc09a40: 4b ff ff dc b ffc09a1c <_CORE_semaphore_Surrender+0x60>
ffc0ed68 <_Chain_Initialize>:
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
next = starting_address;
while ( count-- ) {
ffc0ed68: 2c 05 00 00 cmpwi r5,0
Chain_Node *current;
Chain_Node *next;
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
ffc0ed6c: 38 00 00 00 li r0,0
ffc0ed70: 90 03 00 04 stw r0,4(r3)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(
Chain_Control *the_chain
)
{
return (Chain_Node *) the_chain;
ffc0ed74: 7c 69 1b 78 mr r9,r3
next = starting_address;
while ( count-- ) {
ffc0ed78: 41 82 00 24 beq- ffc0ed9c <_Chain_Initialize+0x34> <== NEVER TAKEN
Chain_Node *next;
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
next = starting_address;
ffc0ed7c: 7c a9 03 a6 mtctr r5
ffc0ed80: 48 00 00 08 b ffc0ed88 <_Chain_Initialize+0x20>
while ( count-- ) {
ffc0ed84: 7c 04 03 78 mr r4,r0
current->next = next;
next->previous = current;
ffc0ed88: 91 24 00 04 stw r9,4(r4)
ffc0ed8c: 7c 04 32 14 add r0,r4,r6
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
next = starting_address;
while ( count-- ) {
current->next = next;
ffc0ed90: 90 89 00 00 stw r4,0(r9)
next->previous = current;
current = next;
next = (Chain_Node *)
ffc0ed94: 7c 89 23 78 mr r9,r4
count = number_nodes;
current = _Chain_Head( the_chain );
the_chain->permanent_null = NULL;
next = starting_address;
while ( count-- ) {
ffc0ed98: 42 00 ff ec bdnz+ ffc0ed84 <_Chain_Initialize+0x1c>
next->previous = current;
current = next;
next = (Chain_Node *)
_Addresses_Add_offset( (void *) next, node_size );
}
current->next = _Chain_Tail( the_chain );
ffc0ed9c: 38 03 00 04 addi r0,r3,4
ffc0eda0: 90 09 00 00 stw r0,0(r9)
the_chain->last = current;
ffc0eda4: 91 23 00 08 stw r9,8(r3)
}
ffc0eda8: 4e 80 00 20 blr
ffc08018 <_Event_Seize>:
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
ffc08018: 94 21 ff f0 stwu r1,-16(r1)
ffc0801c: 7c 08 02 a6 mflr r0
rtems_event_set pending_events;
ISR_Level level;
RTEMS_API_Control *api;
Thread_blocking_operation_States sync_state;
executing = _Thread_Executing;
ffc08020: 3d 20 00 00 lis r9,0
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
ffc08024: 93 e1 00 0c stw r31,12(r1)
rtems_event_set pending_events;
ISR_Level level;
RTEMS_API_Control *api;
Thread_blocking_operation_States sync_state;
executing = _Thread_Executing;
ffc08028: 83 e9 27 6c lwz r31,10092(r9)
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
ffc0802c: 90 01 00 14 stw r0,20(r1)
ISR_Level level;
RTEMS_API_Control *api;
Thread_blocking_operation_States sync_state;
executing = _Thread_Executing;
executing->Wait.return_code = RTEMS_SUCCESSFUL;
ffc08030: 38 00 00 00 li r0,0
ffc08034: 90 1f 00 34 stw r0,52(r31)
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
ffc08038: 93 c1 00 08 stw r30,8(r1)
Thread_blocking_operation_States sync_state;
executing = _Thread_Executing;
executing->Wait.return_code = RTEMS_SUCCESSFUL;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
ffc0803c: 81 7f 01 40 lwz r11,320(r31)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc08040: 7d 40 00 a6 mfmsr r10
ffc08044: 7c 10 42 a6 mfsprg r0,0
ffc08048: 7d 40 00 78 andc r0,r10,r0
ffc0804c: 7c 00 01 24 mtmsr r0
_ISR_Disable( level );
pending_events = api->pending_events;
ffc08050: 80 0b 00 00 lwz r0,0(r11)
seized_events = _Event_sets_Get( pending_events, event_in );
if ( !_Event_sets_Is_empty( seized_events ) &&
ffc08054: 7c 69 00 39 and. r9,r3,r0
ffc08058: 41 82 00 14 beq- ffc0806c <_Event_Seize+0x54>
ffc0805c: 7f 83 48 00 cmpw cr7,r3,r9
ffc08060: 41 9e 00 b0 beq- cr7,ffc08110 <_Event_Seize+0xf8>
ffc08064: 70 88 00 02 andi. r8,r4,2
ffc08068: 40 82 00 a8 bne- ffc08110 <_Event_Seize+0xf8> <== ALWAYS TAKEN
_ISR_Enable( level );
*event_out = seized_events;
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
ffc0806c: 70 80 00 01 andi. r0,r4,1
ffc08070: 40 82 00 78 bne- ffc080e8 <_Event_Seize+0xd0>
*/
executing->Wait.option = (uint32_t) option_set;
executing->Wait.count = (uint32_t) event_in;
executing->Wait.return_argument = event_out;
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
ffc08074: 3f c0 00 00 lis r30,0
* set properly when we are marked as in the event critical section.
*
* NOTE: Since interrupts are disabled, this isn't that much of an
* issue but better safe than sorry.
*/
executing->Wait.option = (uint32_t) option_set;
ffc08078: 90 9f 00 30 stw r4,48(r31)
executing->Wait.count = (uint32_t) event_in;
executing->Wait.return_argument = event_out;
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
ffc0807c: 38 00 00 01 li r0,1
*
* NOTE: Since interrupts are disabled, this isn't that much of an
* issue but better safe than sorry.
*/
executing->Wait.option = (uint32_t) option_set;
executing->Wait.count = (uint32_t) event_in;
ffc08080: 90 7f 00 24 stw r3,36(r31)
executing->Wait.return_argument = event_out;
ffc08084: 90 df 00 28 stw r6,40(r31)
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
ffc08088: 90 1e 27 a0 stw r0,10144(r30)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0808c: 7d 40 01 24 mtmsr r10
_ISR_Enable( level );
if ( ticks ) {
ffc08090: 2f 85 00 00 cmpwi cr7,r5,0
ffc08094: 40 9e 00 c0 bne- cr7,ffc08154 <_Event_Seize+0x13c>
NULL
);
_Watchdog_Insert_ticks( &executing->Timer, ticks );
}
_Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );
ffc08098: 7f e3 fb 78 mr r3,r31
ffc0809c: 38 80 01 00 li r4,256
ffc080a0: 48 00 3b ed bl ffc0bc8c <_Thread_Set_state>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc080a4: 7c a0 00 a6 mfmsr r5
ffc080a8: 7c 10 42 a6 mfsprg r0,0
ffc080ac: 7c a0 00 78 andc r0,r5,r0
ffc080b0: 7c 00 01 24 mtmsr r0
_ISR_Disable( level );
sync_state = _Event_Sync_state;
ffc080b4: 80 7e 27 a0 lwz r3,10144(r30)
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
ffc080b8: 38 00 00 00 li r0,0
ffc080bc: 90 1e 27 a0 stw r0,10144(r30)
if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
ffc080c0: 2f 83 00 01 cmpwi cr7,r3,1
ffc080c4: 41 9e 00 74 beq- cr7,ffc08138 <_Event_Seize+0x120>
* An interrupt completed the thread's blocking request.
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
ffc080c8: 7f e4 fb 78 mr r4,r31
ffc080cc: 48 00 28 c9 bl ffc0a994 <_Thread_blocking_operation_Cancel>
}
ffc080d0: 80 01 00 14 lwz r0,20(r1)
ffc080d4: 83 c1 00 08 lwz r30,8(r1)
ffc080d8: 7c 08 03 a6 mtlr r0
ffc080dc: 83 e1 00 0c lwz r31,12(r1)
ffc080e0: 38 21 00 10 addi r1,r1,16
ffc080e4: 4e 80 00 20 blr
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc080e8: 7d 40 01 24 mtmsr r10
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
_ISR_Enable( level );
executing->Wait.return_code = RTEMS_UNSATISFIED;
ffc080ec: 38 00 00 0d li r0,13
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
}
ffc080f0: 83 c1 00 08 lwz r30,8(r1)
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
_ISR_Enable( level );
executing->Wait.return_code = RTEMS_UNSATISFIED;
ffc080f4: 90 1f 00 34 stw r0,52(r31)
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
}
ffc080f8: 80 01 00 14 lwz r0,20(r1)
ffc080fc: 83 e1 00 0c lwz r31,12(r1)
ffc08100: 38 21 00 10 addi r1,r1,16
ffc08104: 7c 08 03 a6 mtlr r0
}
if ( _Options_Is_no_wait( option_set ) ) {
_ISR_Enable( level );
executing->Wait.return_code = RTEMS_UNSATISFIED;
*event_out = seized_events;
ffc08108: 91 26 00 00 stw r9,0(r6)
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
}
ffc0810c: 4e 80 00 20 blr
pending_events = api->pending_events;
seized_events = _Event_sets_Get( pending_events, event_in );
if ( !_Event_sets_Is_empty( seized_events ) &&
(seized_events == event_in || _Options_Is_any( option_set )) ) {
api->pending_events =
ffc08110: 7c 00 48 78 andc r0,r0,r9
ffc08114: 90 0b 00 00 stw r0,0(r11)
ffc08118: 7d 40 01 24 mtmsr r10
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
}
ffc0811c: 80 01 00 14 lwz r0,20(r1)
ffc08120: 83 c1 00 08 lwz r30,8(r1)
ffc08124: 7c 08 03 a6 mtlr r0
ffc08128: 83 e1 00 0c lwz r31,12(r1)
if ( !_Event_sets_Is_empty( seized_events ) &&
(seized_events == event_in || _Options_Is_any( option_set )) ) {
api->pending_events =
_Event_sets_Clear( pending_events, seized_events );
_ISR_Enable( level );
*event_out = seized_events;
ffc0812c: 91 26 00 00 stw r9,0(r6)
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
_Thread_blocking_operation_Cancel( sync_state, executing, level );
}
ffc08130: 38 21 00 10 addi r1,r1,16
ffc08134: 4e 80 00 20 blr
ffc08138: 7c a0 01 24 mtmsr r5
ffc0813c: 80 01 00 14 lwz r0,20(r1)
ffc08140: 83 c1 00 08 lwz r30,8(r1)
ffc08144: 7c 08 03 a6 mtlr r0
ffc08148: 83 e1 00 0c lwz r31,12(r1)
ffc0814c: 38 21 00 10 addi r1,r1,16
ffc08150: 4e 80 00 20 blr
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
_ISR_Enable( level );
if ( ticks ) {
_Watchdog_Initialize(
ffc08154: 81 3f 00 08 lwz r9,8(r31)
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
ffc08158: 3d 60 ff c1 lis r11,-63
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc0815c: 38 00 00 00 li r0,0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
ffc08160: 90 bf 00 54 stw r5,84(r31)
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
ffc08164: 39 6b 83 7c addi r11,r11,-31876
ffc08168: 91 7f 00 64 stw r11,100(r31)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc0816c: 3c 60 00 00 lis r3,0
ffc08170: 38 63 2c a8 addi r3,r3,11432
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
ffc08174: 91 3f 00 68 stw r9,104(r31)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc08178: 38 9f 00 48 addi r4,r31,72
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
ffc0817c: 90 1f 00 6c stw r0,108(r31)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc08180: 90 1f 00 50 stw r0,80(r31)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc08184: 48 00 46 35 bl ffc0c7b8 <_Watchdog_Insert>
ffc08188: 4b ff ff 10 b ffc08098 <_Event_Seize+0x80>
ffc08200 <_Event_Surrender>:
*/
void _Event_Surrender(
Thread_Control *the_thread
)
{
ffc08200: 94 21 ff f0 stwu r1,-16(r1)
ffc08204: 7c 08 02 a6 mflr r0
ffc08208: 90 01 00 14 stw r0,20(r1)
ffc0820c: 93 e1 00 0c stw r31,12(r1)
ffc08210: 7c 7f 1b 78 mr r31,r3
rtems_event_set event_condition;
rtems_event_set seized_events;
rtems_option option_set;
RTEMS_API_Control *api;
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
ffc08214: 81 63 01 40 lwz r11,320(r3)
option_set = (rtems_option) the_thread->Wait.option;
ffc08218: 80 e3 00 30 lwz r7,48(r3)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0821c: 7d 40 00 a6 mfmsr r10
ffc08220: 7c 10 42 a6 mfsprg r0,0
ffc08224: 7d 40 00 78 andc r0,r10,r0
ffc08228: 7c 00 01 24 mtmsr r0
_ISR_Disable( level );
pending_events = api->pending_events;
ffc0822c: 81 2b 00 00 lwz r9,0(r11)
event_condition = (rtems_event_set) the_thread->Wait.count;
ffc08230: 80 03 00 24 lwz r0,36(r3)
seized_events = _Event_sets_Get( pending_events, event_condition );
/*
* No events were seized in this operation
*/
if ( _Event_sets_Is_empty( seized_events ) ) {
ffc08234: 7c 08 48 39 and. r8,r0,r9
ffc08238: 41 82 00 b0 beq- ffc082e8 <_Event_Surrender+0xe8>
/*
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
if ( _ISR_Is_in_progress() &&
ffc0823c: 3c c0 00 00 lis r6,0
ffc08240: 80 c6 27 54 lwz r6,10068(r6)
ffc08244: 2f 86 00 00 cmpwi cr7,r6,0
ffc08248: 41 9e 00 14 beq- cr7,ffc0825c <_Event_Surrender+0x5c>
ffc0824c: 3c c0 00 00 lis r6,0
ffc08250: 80 c6 27 6c lwz r6,10092(r6)
ffc08254: 7f 83 30 00 cmpw cr7,r3,r6
ffc08258: 41 9e 00 d0 beq- cr7,ffc08328 <_Event_Surrender+0x128>
}
/*
* Otherwise, this is a normal send to another thread
*/
if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
ffc0825c: 80 df 00 10 lwz r6,16(r31)
ffc08260: 70 c5 01 00 andi. r5,r6,256
ffc08264: 41 82 00 6c beq- ffc082d0 <_Event_Surrender+0xd0>
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
ffc08268: 7f 80 40 00 cmpw cr7,r0,r8
ffc0826c: 41 9e 00 0c beq- cr7,ffc08278 <_Event_Surrender+0x78>
ffc08270: 70 e0 00 02 andi. r0,r7,2
ffc08274: 41 82 00 5c beq- ffc082d0 <_Event_Surrender+0xd0> <== NEVER TAKEN
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc08278: 80 ff 00 28 lwz r7,40(r31)
/*
* Otherwise, this is a normal send to another thread
*/
if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
ffc0827c: 7d 29 40 78 andc r9,r9,r8
the_thread->Wait.count = 0;
ffc08280: 38 00 00 00 li r0,0
/*
* Otherwise, this is a normal send to another thread
*/
if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
ffc08284: 91 2b 00 00 stw r9,0(r11)
the_thread->Wait.count = 0;
ffc08288: 90 1f 00 24 stw r0,36(r31)
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc0828c: 91 07 00 00 stw r8,0(r7)
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc08290: 7c 00 00 a6 mfmsr r0
ffc08294: 7d 40 01 24 mtmsr r10
ffc08298: 7c 00 01 24 mtmsr r0
_ISR_Flash( level );
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
ffc0829c: 80 1f 00 50 lwz r0,80(r31)
ffc082a0: 2f 80 00 02 cmpwi cr7,r0,2
ffc082a4: 41 9e 00 5c beq- cr7,ffc08300 <_Event_Surrender+0x100>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc082a8: 7d 40 01 24 mtmsr r10
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
ffc082ac: 3c 80 10 03 lis r4,4099
ffc082b0: 7f e3 fb 78 mr r3,r31
ffc082b4: 60 84 ff f8 ori r4,r4,65528
ffc082b8: 48 00 29 39 bl ffc0abf0 <_Thread_Clear_state>
}
return;
}
}
_ISR_Enable( level );
}
ffc082bc: 80 01 00 14 lwz r0,20(r1)
ffc082c0: 83 e1 00 0c lwz r31,12(r1)
ffc082c4: 38 21 00 10 addi r1,r1,16
ffc082c8: 7c 08 03 a6 mtlr r0
ffc082cc: 4e 80 00 20 blr
ffc082d0: 7d 40 01 24 mtmsr r10
ffc082d4: 80 01 00 14 lwz r0,20(r1)
ffc082d8: 83 e1 00 0c lwz r31,12(r1)
ffc082dc: 38 21 00 10 addi r1,r1,16
ffc082e0: 7c 08 03 a6 mtlr r0
ffc082e4: 4e 80 00 20 blr
ffc082e8: 7d 40 01 24 mtmsr r10
ffc082ec: 80 01 00 14 lwz r0,20(r1)
ffc082f0: 83 e1 00 0c lwz r31,12(r1)
ffc082f4: 38 21 00 10 addi r1,r1,16
ffc082f8: 7c 08 03 a6 mtlr r0
ffc082fc: 4e 80 00 20 blr
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
ffc08300: 38 00 00 03 li r0,3
ffc08304: 90 1f 00 50 stw r0,80(r31)
ffc08308: 7d 40 01 24 mtmsr r10
_ISR_Enable( level );
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
ffc0830c: 38 7f 00 48 addi r3,r31,72
ffc08310: 48 00 46 71 bl ffc0c980 <_Watchdog_Remove>
ffc08314: 3c 80 10 03 lis r4,4099
ffc08318: 7f e3 fb 78 mr r3,r31
ffc0831c: 60 84 ff f8 ori r4,r4,65528
ffc08320: 48 00 28 d1 bl ffc0abf0 <_Thread_Clear_state>
ffc08324: 4b ff ff b0 b ffc082d4 <_Event_Surrender+0xd4>
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
if ( _ISR_Is_in_progress() &&
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
ffc08328: 3c c0 00 00 lis r6,0
ffc0832c: 80 a6 27 a0 lwz r5,10144(r6)
/*
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
if ( _ISR_Is_in_progress() &&
ffc08330: 2f 85 00 02 cmpwi cr7,r5,2
ffc08334: 41 9e 00 10 beq- cr7,ffc08344 <_Event_Surrender+0x144> <== NEVER TAKEN
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
ffc08338: 80 a6 27 a0 lwz r5,10144(r6)
/*
* If we are in an ISR and sending to the current thread, then
* we have a critical section issue to deal with.
*/
if ( _ISR_Is_in_progress() &&
ffc0833c: 2f 85 00 01 cmpwi cr7,r5,1
ffc08340: 40 9e ff 1c bne+ cr7,ffc0825c <_Event_Surrender+0x5c>
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
ffc08344: 7f 80 40 00 cmpw cr7,r0,r8
ffc08348: 41 9e 00 0c beq- cr7,ffc08354 <_Event_Surrender+0x154>
ffc0834c: 70 e0 00 02 andi. r0,r7,2
ffc08350: 41 82 00 24 beq- ffc08374 <_Event_Surrender+0x174> <== NEVER TAKEN
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
ffc08354: 38 00 00 03 li r0,3
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc08358: 80 ff 00 28 lwz r7,40(r31)
if ( _ISR_Is_in_progress() &&
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
ffc0835c: 7d 29 40 78 andc r9,r9,r8
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
ffc08360: 90 06 27 a0 stw r0,10144(r6)
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
the_thread->Wait.count = 0;
ffc08364: 38 00 00 00 li r0,0
if ( _ISR_Is_in_progress() &&
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
ffc08368: 91 2b 00 00 stw r9,0(r11)
the_thread->Wait.count = 0;
ffc0836c: 90 1f 00 24 stw r0,36(r31)
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc08370: 91 07 00 00 stw r8,0(r7)
ffc08374: 7d 40 01 24 mtmsr r10
ffc08378: 4b ff ff 5c b ffc082d4 <_Event_Surrender+0xd4>
ffc0837c <_Event_Timeout>:
void _Event_Timeout(
Objects_Id id,
void *ignored
)
{
ffc0837c: 94 21 ff e8 stwu r1,-24(r1)
ffc08380: 7c 08 02 a6 mflr r0
Thread_Control *the_thread;
Objects_Locations location;
ISR_Level level;
the_thread = _Thread_Get( id, &location );
ffc08384: 38 81 00 08 addi r4,r1,8
void _Event_Timeout(
Objects_Id id,
void *ignored
)
{
ffc08388: 90 01 00 1c stw r0,28(r1)
Thread_Control *the_thread;
Objects_Locations location;
ISR_Level level;
the_thread = _Thread_Get( id, &location );
ffc0838c: 48 00 2d 99 bl ffc0b124 <_Thread_Get>
switch ( location ) {
ffc08390: 80 01 00 08 lwz r0,8(r1)
ffc08394: 2f 80 00 00 cmpwi cr7,r0,0
ffc08398: 40 9e 00 50 bne- cr7,ffc083e8 <_Event_Timeout+0x6c> <== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0839c: 7d 20 00 a6 mfmsr r9
ffc083a0: 7d 70 42 a6 mfsprg r11,0
ffc083a4: 7d 2b 58 78 andc r11,r9,r11
ffc083a8: 7d 60 01 24 mtmsr r11
return;
}
#endif
the_thread->Wait.count = 0;
if ( _Thread_Is_executing( the_thread ) ) {
ffc083ac: 3d 60 00 00 lis r11,0
_ISR_Enable( level );
return;
}
#endif
the_thread->Wait.count = 0;
ffc083b0: 90 03 00 24 stw r0,36(r3)
if ( _Thread_Is_executing( the_thread ) ) {
ffc083b4: 81 6b 27 6c lwz r11,10092(r11)
ffc083b8: 7f 83 58 00 cmpw cr7,r3,r11
ffc083bc: 41 9e 00 3c beq- cr7,ffc083f8 <_Event_Timeout+0x7c>
if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
_Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
}
the_thread->Wait.return_code = RTEMS_TIMEOUT;
ffc083c0: 38 00 00 06 li r0,6
ffc083c4: 90 03 00 34 stw r0,52(r3)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc083c8: 7d 20 01 24 mtmsr r9
ffc083cc: 3c 80 10 03 lis r4,4099
ffc083d0: 60 84 ff f8 ori r4,r4,65528
ffc083d4: 48 00 28 1d bl ffc0abf0 <_Thread_Clear_state>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
ffc083d8: 3d 20 00 00 lis r9,0
ffc083dc: 81 69 27 2c lwz r11,10028(r9)
ffc083e0: 38 0b ff ff addi r0,r11,-1
ffc083e4: 90 09 27 2c stw r0,10028(r9)
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
ffc083e8: 80 01 00 1c lwz r0,28(r1)
ffc083ec: 38 21 00 18 addi r1,r1,24
ffc083f0: 7c 08 03 a6 mtlr r0
ffc083f4: 4e 80 00 20 blr
}
#endif
the_thread->Wait.count = 0;
if ( _Thread_Is_executing( the_thread ) ) {
if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
ffc083f8: 3d 60 00 00 lis r11,0
ffc083fc: 80 0b 27 a0 lwz r0,10144(r11)
ffc08400: 2f 80 00 01 cmpwi cr7,r0,1
ffc08404: 40 9e ff bc bne+ cr7,ffc083c0 <_Event_Timeout+0x44>
_Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
ffc08408: 38 00 00 02 li r0,2
ffc0840c: 90 0b 27 a0 stw r0,10144(r11)
ffc08410: 4b ff ff b0 b ffc083c0 <_Event_Timeout+0x44>
ffc0f074 <_Heap_Allocate_aligned_with_boundary>:
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
ffc0f074: 94 21 ff e0 stwu r1,-32(r1)
ffc0f078: 7c 08 02 a6 mflr r0
ffc0f07c: 7d 80 00 26 mfcr r12
ffc0f080: 7c 89 23 78 mr r9,r4
ffc0f084: 90 01 00 24 stw r0,36(r1)
Heap_Statistics *const stats = &heap->stats;
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
Heap_Block *block = _Heap_Free_list_first( heap );
uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
- HEAP_BLOCK_SIZE_OFFSET;
ffc0f088: 38 04 00 04 addi r0,r4,4
uintptr_t const page_size = heap->page_size;
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
if ( block_size_floor < alloc_size ) {
ffc0f08c: 7f 84 00 40 cmplw cr7,r4,r0
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
ffc0f090: 93 a1 00 14 stw r29,20(r1)
ffc0f094: 7c 7d 1b 78 mr r29,r3
ffc0f098: 93 61 00 0c stw r27,12(r1)
ffc0f09c: 93 81 00 10 stw r28,16(r1)
ffc0f0a0: 93 c1 00 18 stw r30,24(r1)
ffc0f0a4: 93 e1 00 1c stw r31,28(r1)
ffc0f0a8: 91 81 00 08 stw r12,8(r1)
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
ffc0f0ac: 80 83 00 08 lwz r4,8(r3)
Heap_Statistics *const stats = &heap->stats;
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
Heap_Block *block = _Heap_Free_list_first( heap );
uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
- HEAP_BLOCK_SIZE_OFFSET;
uintptr_t const page_size = heap->page_size;
ffc0f0b0: 80 e3 00 10 lwz r7,16(r3)
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
if ( block_size_floor < alloc_size ) {
ffc0f0b4: 41 9d 01 7c bgt- cr7,ffc0f230 <_Heap_Allocate_aligned_with_boundary+0x1bc>
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
ffc0f0b8: 2e 06 00 00 cmpwi cr4,r6,0
ffc0f0bc: 40 92 01 6c bne- cr4,ffc0f228 <_Heap_Allocate_aligned_with_boundary+0x1b4>
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
ffc0f0c0: 7f 9d 20 00 cmpw cr7,r29,r4
ffc0f0c4: 3b c0 00 00 li r30,0
ffc0f0c8: 41 9e 01 98 beq- cr7,ffc0f260 <_Heap_Allocate_aligned_with_boundary+0x1ec>
* The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
* field. Thus the value is about one unit larger than the real block
* size. The greater than operator takes this into account.
*/
if ( block->size_and_flag > block_size_floor ) {
if ( alignment == 0 ) {
ffc0f0cc: 2c 05 00 00 cmpwi r5,0
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
ffc0f0d0: 3b 67 00 07 addi r27,r7,7
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
ffc0f0d4: 23 89 00 04 subfic r28,r9,4
ffc0f0d8: 48 00 00 1c b ffc0f0f4 <_Heap_Allocate_aligned_with_boundary+0x80>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
ffc0f0dc: 3b e4 00 08 addi r31,r4,8
boundary
);
}
}
if ( alloc_begin != 0 ) {
ffc0f0e0: 2f 9f 00 00 cmpwi cr7,r31,0
ffc0f0e4: 40 9e 00 e8 bne- cr7,ffc0f1cc <_Heap_Allocate_aligned_with_boundary+0x158><== ALWAYS TAKEN
break;
}
block = block->next;
ffc0f0e8: 80 84 00 08 lwz r4,8(r4)
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
ffc0f0ec: 7f 9d 20 00 cmpw cr7,r29,r4
ffc0f0f0: 41 9e 01 70 beq- cr7,ffc0f260 <_Heap_Allocate_aligned_with_boundary+0x1ec>
/*
* The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
* field. Thus the value is about one unit larger than the real block
* size. The greater than operator takes this into account.
*/
if ( block->size_and_flag > block_size_floor ) {
ffc0f0f4: 81 64 00 04 lwz r11,4(r4)
while ( block != free_list_tail ) {
_HAssert( _Heap_Is_prev_used( block ) );
/* Statistics */
++search_count;
ffc0f0f8: 3b de 00 01 addi r30,r30,1
/*
* The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
* field. Thus the value is about one unit larger than the real block
* size. The greater than operator takes this into account.
*/
if ( block->size_and_flag > block_size_floor ) {
ffc0f0fc: 7f 80 58 40 cmplw cr7,r0,r11
ffc0f100: 40 bc ff e8 bge- cr7,ffc0f0e8 <_Heap_Allocate_aligned_with_boundary+0x74>
if ( alignment == 0 ) {
ffc0f104: 41 82 ff d8 beq+ ffc0f0dc <_Heap_Allocate_aligned_with_boundary+0x68>
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
ffc0f108: 55 6b 00 3c rlwinm r11,r11,0,0,30
uintptr_t alignment,
uintptr_t boundary
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
ffc0f10c: 80 7d 00 14 lwz r3,20(r29)
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
ffc0f110: 7d 64 5a 14 add r11,r4,r11
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET;
uintptr_t alloc_begin = alloc_end - alloc_size;
ffc0f114: 7f fc 5a 14 add r31,r28,r11
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
ffc0f118: 7f ff 2b 96 divwu r31,r31,r5
ffc0f11c: 7f ff 29 d6 mullw r31,r31,r5
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
ffc0f120: 7d 43 d8 50 subf r10,r3,r27
ffc0f124: 7d 6a 5a 14 add r11,r10,r11
uintptr_t alloc_begin = alloc_end - alloc_size;
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
/* Ensure that the we have a valid new block at the end */
if ( alloc_begin > alloc_begin_ceiling ) {
ffc0f128: 7f 8b f8 40 cmplw cr7,r11,r31
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
ffc0f12c: 39 84 00 08 addi r12,r4,8
ffc0f130: 40 9c 00 0c bge- cr7,ffc0f13c <_Heap_Allocate_aligned_with_boundary+0xc8>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
ffc0f134: 7d 6b 2b 96 divwu r11,r11,r5
ffc0f138: 7f eb 29 d6 mullw r31,r11,r5
}
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
ffc0f13c: 41 92 00 60 beq- cr4,ffc0f19c <_Heap_Allocate_aligned_with_boundary+0x128>
/* Ensure that the we have a valid new block at the end */
if ( alloc_begin > alloc_begin_ceiling ) {
alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment );
}
alloc_end = alloc_begin + alloc_size;
ffc0f140: 7d 5f 4a 14 add r10,r31,r9
ffc0f144: 7d 6a 33 96 divwu r11,r10,r6
ffc0f148: 7d 6b 31 d6 mullw r11,r11,r6
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
ffc0f14c: 7f 9f 58 40 cmplw cr7,r31,r11
ffc0f150: 40 9c 00 4c bge- cr7,ffc0f19c <_Heap_Allocate_aligned_with_boundary+0x128>
ffc0f154: 7f 8a 58 40 cmplw cr7,r10,r11
ffc0f158: 40 9d 00 44 ble- cr7,ffc0f19c <_Heap_Allocate_aligned_with_boundary+0x128>
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
ffc0f15c: 7d 0c 4a 14 add r8,r12,r9
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
if ( boundary_line < boundary_floor ) {
ffc0f160: 7f 88 58 40 cmplw cr7,r8,r11
ffc0f164: 40 bd 00 10 ble+ cr7,ffc0f174 <_Heap_Allocate_aligned_with_boundary+0x100>
ffc0f168: 4b ff ff 80 b ffc0f0e8 <_Heap_Allocate_aligned_with_boundary+0x74>
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
ffc0f16c: 40 99 00 30 ble- cr6,ffc0f19c <_Heap_Allocate_aligned_with_boundary+0x128>
if ( boundary_line < boundary_floor ) {
ffc0f170: 41 a5 ff 78 bgt- cr1,ffc0f0e8 <_Heap_Allocate_aligned_with_boundary+0x74><== NEVER TAKEN
return 0;
}
alloc_begin = boundary_line - alloc_size;
ffc0f174: 7f e9 58 50 subf r31,r9,r11
ffc0f178: 7f ff 2b 96 divwu r31,r31,r5
ffc0f17c: 7f ff 29 d6 mullw r31,r31,r5
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
alloc_end = alloc_begin + alloc_size;
ffc0f180: 7d 5f 4a 14 add r10,r31,r9
ffc0f184: 7d 6a 33 96 divwu r11,r10,r6
ffc0f188: 7d 6b 31 d6 mullw r11,r11,r6
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
ffc0f18c: 7f 9f 58 40 cmplw cr7,r31,r11
ffc0f190: 7f 0a 58 40 cmplw cr6,r10,r11
if ( boundary_line < boundary_floor ) {
ffc0f194: 7c 88 58 40 cmplw cr1,r8,r11
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
ffc0f198: 41 9c ff d4 blt+ cr7,ffc0f16c <_Heap_Allocate_aligned_with_boundary+0xf8>
boundary_line = _Heap_Align_down( alloc_end, boundary );
}
}
/* Ensure that the we have a valid new block at the beginning */
if ( alloc_begin >= alloc_begin_floor ) {
ffc0f19c: 7f 8c f8 40 cmplw cr7,r12,r31
ffc0f1a0: 41 bd ff 48 bgt- cr7,ffc0f0e8 <_Heap_Allocate_aligned_with_boundary+0x74>
uintptr_t const alloc_block_begin =
(uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size );
uintptr_t const free_size = alloc_block_begin - block_begin;
ffc0f1a4: 7d 7f 3b 96 divwu r11,r31,r7
ffc0f1a8: 7d 6b 39 d6 mullw r11,r11,r7
ffc0f1ac: 21 44 ff f8 subfic r10,r4,-8
ffc0f1b0: 7d 6a 5a 14 add r11,r10,r11
if ( free_size >= min_block_size || free_size == 0 ) {
ffc0f1b4: 7f 83 58 40 cmplw cr7,r3,r11
ffc0f1b8: 40 bd ff 28 ble- cr7,ffc0f0e0 <_Heap_Allocate_aligned_with_boundary+0x6c>
ffc0f1bc: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0f1c0: 40 be ff 28 bne- cr7,ffc0f0e8 <_Heap_Allocate_aligned_with_boundary+0x74>
boundary
);
}
}
if ( alloc_begin != 0 ) {
ffc0f1c4: 2f 9f 00 00 cmpwi cr7,r31,0
ffc0f1c8: 41 9e ff 20 beq+ cr7,ffc0f0e8 <_Heap_Allocate_aligned_with_boundary+0x74><== NEVER TAKEN
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
ffc0f1cc: 80 1d 00 4c lwz r0,76(r29)
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
ffc0f1d0: 7d 26 4b 78 mr r6,r9
ffc0f1d4: 7f a3 eb 78 mr r3,r29
block = block->next;
}
if ( alloc_begin != 0 ) {
/* Statistics */
stats->searches += search_count;
ffc0f1d8: 7c 00 f2 14 add r0,r0,r30
ffc0f1dc: 90 1d 00 4c stw r0,76(r29)
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
ffc0f1e0: 7f e5 fb 78 mr r5,r31
ffc0f1e4: 4b ff ab bd bl ffc09da0 <_Heap_Block_allocate>
ffc0f1e8: 7f e3 fb 78 mr r3,r31
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
Heap_Statistics *const stats = &heap->stats;
ffc0f1ec: 80 1d 00 44 lwz r0,68(r29)
ffc0f1f0: 7f 80 f0 40 cmplw cr7,r0,r30
ffc0f1f4: 40 9c 00 40 bge- cr7,ffc0f234 <_Heap_Allocate_aligned_with_boundary+0x1c0>
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
}
return (void *) alloc_begin;
}
ffc0f1f8: 80 01 00 24 lwz r0,36(r1)
ffc0f1fc: 81 81 00 08 lwz r12,8(r1)
ffc0f200: 7c 08 03 a6 mtlr r0
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
ffc0f204: 93 dd 00 44 stw r30,68(r29)
}
return (void *) alloc_begin;
}
ffc0f208: 7d 80 81 20 mtcrf 8,r12
ffc0f20c: 83 61 00 0c lwz r27,12(r1)
ffc0f210: 83 81 00 10 lwz r28,16(r1)
ffc0f214: 83 a1 00 14 lwz r29,20(r1)
ffc0f218: 83 c1 00 18 lwz r30,24(r1)
ffc0f21c: 83 e1 00 1c lwz r31,28(r1)
ffc0f220: 38 21 00 20 addi r1,r1,32
ffc0f224: 4e 80 00 20 blr
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
ffc0f228: 7f 89 30 40 cmplw cr7,r9,r6
ffc0f22c: 40 bd 00 3c ble+ cr7,ffc0f268 <_Heap_Allocate_aligned_with_boundary+0x1f4>
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
ffc0f230: 38 60 00 00 li r3,0
}
return (void *) alloc_begin;
}
ffc0f234: 80 01 00 24 lwz r0,36(r1)
ffc0f238: 81 81 00 08 lwz r12,8(r1)
ffc0f23c: 7c 08 03 a6 mtlr r0
ffc0f240: 83 61 00 0c lwz r27,12(r1)
ffc0f244: 83 81 00 10 lwz r28,16(r1)
ffc0f248: 7d 80 81 20 mtcrf 8,r12
ffc0f24c: 83 a1 00 14 lwz r29,20(r1)
ffc0f250: 83 c1 00 18 lwz r30,24(r1)
ffc0f254: 83 e1 00 1c lwz r31,28(r1)
ffc0f258: 38 21 00 20 addi r1,r1,32
ffc0f25c: 4e 80 00 20 blr
if ( alignment == 0 ) {
alignment = page_size;
}
}
while ( block != free_list_tail ) {
ffc0f260: 38 60 00 00 li r3,0
ffc0f264: 4b ff ff 88 b ffc0f1ec <_Heap_Allocate_aligned_with_boundary+0x178>
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
return NULL;
}
if ( alignment == 0 ) {
ffc0f268: 2f 85 00 00 cmpwi cr7,r5,0
ffc0f26c: 40 be fe 54 bne- cr7,ffc0f0c0 <_Heap_Allocate_aligned_with_boundary+0x4c>
ffc0f270: 7c e5 3b 78 mr r5,r7
ffc0f274: 4b ff fe 4c b ffc0f0c0 <_Heap_Allocate_aligned_with_boundary+0x4c>
ffc14250 <_Heap_Extend>:
Heap_Control *heap,
void *area_begin_ptr,
uintptr_t area_size,
uintptr_t *amount_extended
)
{
ffc14250: 7c 08 02 a6 mflr r0
ffc14254: 94 21 ff f8 stwu r1,-8(r1)
ffc14258: 7c 69 1b 78 mr r9,r3
ffc1425c: 90 01 00 0c stw r0,12(r1)
Heap_Statistics *const stats = &heap->stats;
uintptr_t const area_begin = (uintptr_t) area_begin_ptr;
uintptr_t const heap_area_begin = heap->area_begin;
ffc14260: 80 03 00 18 lwz r0,24(r3)
uintptr_t const heap_area_end = heap->area_end;
uintptr_t const new_heap_area_end = heap_area_end + area_size;
uintptr_t extend_size = 0;
Heap_Block *const last_block = heap->last_block;
ffc14264: 81 43 00 24 lwz r10,36(r3)
uintptr_t *amount_extended
)
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const area_begin = (uintptr_t) area_begin_ptr;
uintptr_t const heap_area_begin = heap->area_begin;
ffc14268: 7f 84 00 40 cmplw cr7,r4,r0
uintptr_t const heap_area_end = heap->area_end;
ffc1426c: 80 03 00 1c lwz r0,28(r3)
uintptr_t *amount_extended
)
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const area_begin = (uintptr_t) area_begin_ptr;
uintptr_t const heap_area_begin = heap->area_begin;
ffc14270: 40 9c 00 bc bge- cr7,ffc1432c <_Heap_Extend+0xdc>
* As noted, this code only supports (4).
*/
if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) {
return HEAP_EXTEND_ERROR; /* case 3 */
} else if ( area_begin != heap_area_end ) {
ffc14274: 7f 84 00 00 cmpw cr7,r4,r0
ffc14278: 38 60 00 02 li r3,2
ffc1427c: 41 9e 00 14 beq- cr7,ffc14290 <_Heap_Extend+0x40>
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
}
return HEAP_EXTEND_SUCCESSFUL;
}
ffc14280: 80 01 00 0c lwz r0,12(r1)
ffc14284: 38 21 00 08 addi r1,r1,8
ffc14288: 7c 08 03 a6 mtlr r0
ffc1428c: 4e 80 00 20 blr
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
ffc14290: 81 69 00 10 lwz r11,16(r9)
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const area_begin = (uintptr_t) area_begin_ptr;
uintptr_t const heap_area_begin = heap->area_begin;
uintptr_t const heap_area_end = heap->area_end;
uintptr_t const new_heap_area_end = heap_area_end + area_size;
ffc14294: 7c 84 2a 14 add r4,r4,r5
* block and free it.
*/
heap->area_end = new_heap_area_end;
extend_size = new_heap_area_end
ffc14298: 20 0a ff f8 subfic r0,r10,-8
* Currently only case 4 should make it to this point.
* The basic trick is to make the extend area look like a used
* block and free it.
*/
heap->area_end = new_heap_area_end;
ffc1429c: 90 89 00 1c stw r4,28(r9)
extend_size = new_heap_area_end
ffc142a0: 7c 00 22 14 add r0,r0,r4
ffc142a4: 7c 00 5b 96 divwu r0,r0,r11
ffc142a8: 7c 00 59 d6 mullw r0,r0,r11
- (uintptr_t) last_block - HEAP_BLOCK_HEADER_SIZE;
extend_size = _Heap_Align_down( extend_size, heap->page_size );
*amount_extended = extend_size;
if( extend_size >= heap->min_block_size ) {
ffc142ac: 38 60 00 00 li r3,0
extend_size = new_heap_area_end
- (uintptr_t) last_block - HEAP_BLOCK_HEADER_SIZE;
extend_size = _Heap_Align_down( extend_size, heap->page_size );
*amount_extended = extend_size;
ffc142b0: 90 06 00 00 stw r0,0(r6)
if( extend_size >= heap->min_block_size ) {
ffc142b4: 81 69 00 14 lwz r11,20(r9)
ffc142b8: 7f 8b 00 40 cmplw cr7,r11,r0
ffc142bc: 41 9d ff c4 bgt+ cr7,ffc14280 <_Heap_Extend+0x30> <== NEVER TAKEN
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
block->size_and_flag = size | flag;
ffc142c0: 80 ea 00 04 lwz r7,4(r10)
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
ffc142c4: 7d 60 52 14 add r11,r0,r10
Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size );
_Heap_Block_set_size( last_block, extend_size );
new_last_block->size_and_flag =
ffc142c8: 81 09 00 20 lwz r8,32(r9)
/* Statistics */
stats->size += extend_size;
++stats->used_blocks;
--stats->frees; /* Do not count subsequent call as actual free() */
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
ffc142cc: 38 8a 00 08 addi r4,r10,8
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
block->size_and_flag = size | flag;
ffc142d0: 54 e7 07 fe clrlwi r7,r7,31
new_last_block->size_and_flag =
((uintptr_t) heap->first_block - (uintptr_t) new_last_block)
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
ffc142d4: 91 69 00 24 stw r11,36(r9)
if( extend_size >= heap->min_block_size ) {
Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size );
_Heap_Block_set_size( last_block, extend_size );
new_last_block->size_and_flag =
ffc142d8: 7d 0b 40 50 subf r8,r11,r8
ffc142dc: 7c 07 3b 78 or r7,r0,r7
ffc142e0: 61 08 00 01 ori r8,r8,1
ffc142e4: 90 ea 00 04 stw r7,4(r10)
/* Statistics */
stats->size += extend_size;
++stats->used_blocks;
--stats->frees; /* Do not count subsequent call as actual free() */
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
ffc142e8: 7d 23 4b 78 mr r3,r9
if( extend_size >= heap->min_block_size ) {
Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size );
_Heap_Block_set_size( last_block, extend_size );
new_last_block->size_and_flag =
ffc142ec: 91 0b 00 04 stw r8,4(r11)
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
ffc142f0: 80 e9 00 2c lwz r7,44(r9)
++stats->used_blocks;
ffc142f4: 81 09 00 40 lwz r8,64(r9)
--stats->frees; /* Do not count subsequent call as actual free() */
ffc142f8: 81 49 00 50 lwz r10,80(r9)
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
ffc142fc: 7c 07 02 14 add r0,r7,r0
++stats->used_blocks;
ffc14300: 39 08 00 01 addi r8,r8,1
| HEAP_PREV_BLOCK_USED;
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
ffc14304: 90 09 00 2c stw r0,44(r9)
++stats->used_blocks;
--stats->frees; /* Do not count subsequent call as actual free() */
ffc14308: 39 4a ff ff addi r10,r10,-1
heap->last_block = new_last_block;
/* Statistics */
stats->size += extend_size;
++stats->used_blocks;
ffc1430c: 91 09 00 40 stw r8,64(r9)
--stats->frees; /* Do not count subsequent call as actual free() */
ffc14310: 91 49 00 50 stw r10,80(r9)
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
ffc14314: 4b ff 9b 49 bl ffc0de5c <_Heap_Free>
}
return HEAP_EXTEND_SUCCESSFUL;
}
ffc14318: 80 01 00 0c lwz r0,12(r1)
/* Statistics */
stats->size += extend_size;
++stats->used_blocks;
--stats->frees; /* Do not count subsequent call as actual free() */
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
ffc1431c: 38 60 00 00 li r3,0
}
return HEAP_EXTEND_SUCCESSFUL;
}
ffc14320: 7c 08 03 a6 mtlr r0
ffc14324: 38 21 00 08 addi r1,r1,8
ffc14328: 4e 80 00 20 blr
* 5. non-contiguous higher address (NOT SUPPORTED)
*
* As noted, this code only supports (4).
*/
if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) {
ffc1432c: 7f 84 00 40 cmplw cr7,r4,r0
ffc14330: 38 60 00 01 li r3,1
ffc14334: 40 9c ff 40 bge+ cr7,ffc14274 <_Heap_Extend+0x24>
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block ));
}
return HEAP_EXTEND_SUCCESSFUL;
}
ffc14338: 80 01 00 0c lwz r0,12(r1)
ffc1433c: 38 21 00 08 addi r1,r1,8
ffc14340: 7c 08 03 a6 mtlr r0
ffc14344: 4e 80 00 20 blr
ffc0f278 <_Heap_Free>:
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
ffc0f278: 80 03 00 10 lwz r0,16(r3)
#include <rtems/system.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
ffc0f27c: 7c 69 1b 78 mr r9,r3
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
ffc0f280: 81 63 00 20 lwz r11,32(r3)
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
ffc0f284: 7d 44 03 96 divwu r10,r4,r0
ffc0f288: 7d 4a 01 d6 mullw r10,r10,r0
ffc0f28c: 39 4a ff f8 addi r10,r10,-8
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc0f290: 7f 8a 58 40 cmplw cr7,r10,r11
ffc0f294: 41 9c 00 c0 blt- cr7,ffc0f354 <_Heap_Free+0xdc>
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
ffc0f298: 80 03 00 24 lwz r0,36(r3)
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc0f29c: 7f 8a 00 40 cmplw cr7,r10,r0
ffc0f2a0: 41 9d 00 b4 bgt- cr7,ffc0f354 <_Heap_Free+0xdc>
- HEAP_BLOCK_HEADER_SIZE);
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{
return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;
ffc0f2a4: 80 ca 00 04 lwz r6,4(r10)
ffc0f2a8: 54 c7 00 3c rlwinm r7,r6,0,0,30
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
ffc0f2ac: 7d 0a 3a 14 add r8,r10,r7
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc0f2b0: 7f 8b 40 40 cmplw cr7,r11,r8
ffc0f2b4: 41 9d 00 a0 bgt- cr7,ffc0f354 <_Heap_Free+0xdc> <== NEVER TAKEN
ffc0f2b8: 7f 80 40 40 cmplw cr7,r0,r8
ffc0f2bc: 41 9c 00 98 blt- cr7,ffc0f354 <_Heap_Free+0xdc> <== NEVER TAKEN
block->size_and_flag = size | flag;
}
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{
return block->size_and_flag & HEAP_PREV_BLOCK_USED;
ffc0f2c0: 80 a8 00 04 lwz r5,4(r8)
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
_HAssert( false );
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
ffc0f2c4: 70 a3 00 01 andi. r3,r5,1
ffc0f2c8: 41 82 00 8c beq- ffc0f354 <_Heap_Free+0xdc> <== NEVER TAKEN
_HAssert( false );
return false;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
ffc0f2cc: 7f 80 40 00 cmpw cr7,r0,r8
- HEAP_BLOCK_HEADER_SIZE);
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{
return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;
ffc0f2d0: 54 a4 00 3c rlwinm r4,r5,0,0,30
ffc0f2d4: 38 a0 00 00 li r5,0
ffc0f2d8: 41 9e 00 14 beq- cr7,ffc0f2ec <_Heap_Free+0x74>
#include <rtems/system.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
ffc0f2dc: 7c a8 22 14 add r5,r8,r4
ffc0f2e0: 80 a5 00 04 lwz r5,4(r5)
ffc0f2e4: 54 a5 07 fe clrlwi r5,r5,31
ffc0f2e8: 68 a5 00 01 xori r5,r5,1
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
if ( !_Heap_Is_prev_used( block ) ) {
ffc0f2ec: 70 c3 00 01 andi. r3,r6,1
ffc0f2f0: 40 82 00 6c bne- ffc0f35c <_Heap_Free+0xe4>
uintptr_t const prev_size = block->prev_size;
ffc0f2f4: 80 6a 00 00 lwz r3,0(r10)
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
ffc0f2f8: 7c c3 50 50 subf r6,r3,r10
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc0f2fc: 7f 8b 30 40 cmplw cr7,r11,r6
ffc0f300: 41 9d 00 54 bgt- cr7,ffc0f354 <_Heap_Free+0xdc> <== NEVER TAKEN
ffc0f304: 7f 80 30 40 cmplw cr7,r0,r6
ffc0f308: 41 9c 00 4c blt- cr7,ffc0f354 <_Heap_Free+0xdc> <== NEVER TAKEN
return( false );
}
/* As we always coalesce free blocks, the block that preceedes prev_block
must have been used. */
if ( !_Heap_Is_prev_used ( prev_block) ) {
ffc0f30c: 80 06 00 04 lwz r0,4(r6)
ffc0f310: 70 0b 00 01 andi. r11,r0,1
ffc0f314: 41 82 00 40 beq- ffc0f354 <_Heap_Free+0xdc> <== NEVER TAKEN
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
ffc0f318: 2f 85 00 00 cmpwi cr7,r5,0
ffc0f31c: 41 9e 00 e8 beq- cr7,ffc0f404 <_Heap_Free+0x18c>
uintptr_t const size = block_size + prev_size + next_block_size;
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
ffc0f320: 81 89 00 38 lwz r12,56(r9)
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
uintptr_t const size = block_size + prev_size + next_block_size;
ffc0f324: 7c 87 22 14 add r4,r7,r4
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
Heap_Block *prev = block->prev;
ffc0f328: 81 68 00 0c lwz r11,12(r8)
ffc0f32c: 7c 64 1a 14 add r3,r4,r3
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
ffc0f330: 81 48 00 08 lwz r10,8(r8)
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
ffc0f334: 60 60 00 01 ori r0,r3,1
}
if ( next_is_free ) { /* coalesce both */
uintptr_t const size = block_size + prev_size + next_block_size;
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
ffc0f338: 39 0c ff ff addi r8,r12,-1
ffc0f33c: 91 09 00 38 stw r8,56(r9)
Heap_Block *prev = block->prev;
prev->next = next;
next->prev = prev;
ffc0f340: 91 6a 00 0c stw r11,12(r10)
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
ffc0f344: 7c 66 19 2e stwx r3,r6,r3
if ( next_is_free ) { /* coalesce both */
uintptr_t const size = block_size + prev_size + next_block_size;
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
ffc0f348: 90 06 00 04 stw r0,4(r6)
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
Heap_Block *prev = block->prev;
prev->next = next;
ffc0f34c: 91 4b 00 08 stw r10,8(r11)
ffc0f350: 48 00 00 3c b ffc0f38c <_Heap_Free+0x114>
/* Statistics */
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
ffc0f354: 38 60 00 00 li r3,0
}
ffc0f358: 4e 80 00 20 blr
uintptr_t const size = block_size + prev_size;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = size;
}
} else if ( next_is_free ) { /* coalesce next */
ffc0f35c: 2f 85 00 00 cmpwi cr7,r5,0
ffc0f360: 41 9e 00 58 beq- cr7,ffc0f3b8 <_Heap_Free+0x140>
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
Heap_Block *prev = old_block->prev;
ffc0f364: 80 c8 00 0c lwz r6,12(r8)
uintptr_t const size = block_size + next_block_size;
ffc0f368: 7c 84 3a 14 add r4,r4,r7
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
ffc0f36c: 81 68 00 08 lwz r11,8(r8)
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
ffc0f370: 60 80 00 01 ori r0,r4,1
Heap_Block *prev = old_block->prev;
new_block->next = next;
new_block->prev = prev;
ffc0f374: 90 ca 00 0c stw r6,12(r10)
)
{
Heap_Block *next = old_block->next;
Heap_Block *prev = old_block->prev;
new_block->next = next;
ffc0f378: 91 6a 00 08 stw r11,8(r10)
next_block = _Heap_Block_at( block, size );
next_block->prev_size = size;
ffc0f37c: 7c 8a 21 2e stwx r4,r10,r4
next_block->prev_size = size;
}
} else if ( next_is_free ) { /* coalesce next */
uintptr_t const size = block_size + next_block_size;
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
ffc0f380: 90 0a 00 04 stw r0,4(r10)
new_block->prev = prev;
next->prev = new_block;
prev->next = new_block;
ffc0f384: 91 46 00 08 stw r10,8(r6)
Heap_Block *prev = old_block->prev;
new_block->next = next;
new_block->prev = prev;
next->prev = new_block;
ffc0f388: 91 4b 00 0c stw r10,12(r11)
}
/* Statistics */
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
ffc0f38c: 80 09 00 30 lwz r0,48(r9)
ffc0f390: 38 60 00 01 li r3,1
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
ffc0f394: 81 69 00 40 lwz r11,64(r9)
++stats->frees;
ffc0f398: 81 49 00 50 lwz r10,80(r9)
stats->free_size += block_size;
ffc0f39c: 7c e0 3a 14 add r7,r0,r7
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
ffc0f3a0: 39 6b ff ff addi r11,r11,-1
++stats->frees;
stats->free_size += block_size;
ffc0f3a4: 90 e9 00 30 stw r7,48(r9)
}
}
/* Statistics */
--stats->used_blocks;
++stats->frees;
ffc0f3a8: 38 0a 00 01 addi r0,r10,1
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
ffc0f3ac: 91 69 00 40 stw r11,64(r9)
++stats->frees;
ffc0f3b0: 90 09 00 50 stw r0,80(r9)
stats->free_size += block_size;
return( true );
ffc0f3b4: 4e 80 00 20 blr
next_block->prev_size = size;
} else { /* no coalesce */
/* Add 'block' to the head of the free blocks list as it tends to
produce less fragmentation than adding to the tail. */
_Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
ffc0f3b8: 60 e0 00 01 ori r0,r7,1
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = block_size;
ffc0f3bc: 7c ea 39 2e stwx r7,r10,r7
next_block->prev_size = size;
} else { /* no coalesce */
/* Add 'block' to the head of the free blocks list as it tends to
produce less fragmentation than adding to the tail. */
_Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
ffc0f3c0: 90 0a 00 04 stw r0,4(r10)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
ffc0f3c4: 80 08 00 04 lwz r0,4(r8)
)
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
ffc0f3c8: 91 2a 00 0c stw r9,12(r10)
ffc0f3cc: 54 00 00 3c rlwinm r0,r0,0,0,30
ffc0f3d0: 90 08 00 04 stw r0,4(r8)
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
ffc0f3d4: 81 09 00 38 lwz r8,56(r9)
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
Heap_Statistics *const stats = &heap->stats;
ffc0f3d8: 81 69 00 3c lwz r11,60(r9)
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
ffc0f3dc: 38 08 00 01 addi r0,r8,1
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
Heap_Statistics *const stats = &heap->stats;
ffc0f3e0: 7f 80 58 40 cmplw cr7,r0,r11
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
ffc0f3e4: 81 69 00 08 lwz r11,8(r9)
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
ffc0f3e8: 90 09 00 38 stw r0,56(r9)
new_block->next = next;
ffc0f3ec: 91 6a 00 08 stw r11,8(r10)
new_block->prev = block_before;
block_before->next = new_block;
next->prev = new_block;
ffc0f3f0: 91 4b 00 0c stw r10,12(r11)
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
block_before->next = new_block;
ffc0f3f4: 91 49 00 08 stw r10,8(r9)
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
Heap_Statistics *const stats = &heap->stats;
ffc0f3f8: 40 bd ff 94 ble- cr7,ffc0f38c <_Heap_Free+0x114>
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
if ( stats->max_free_blocks < stats->free_blocks ) {
stats->max_free_blocks = stats->free_blocks;
ffc0f3fc: 90 09 00 3c stw r0,60(r9)
ffc0f400: 4b ff ff 8c b ffc0f38c <_Heap_Free+0x114>
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
} else { /* coalesce prev */
uintptr_t const size = block_size + prev_size;
ffc0f404: 7c 67 1a 14 add r3,r7,r3
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
ffc0f408: 60 60 00 01 ori r0,r3,1
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = size;
ffc0f40c: 7c 6a 39 2e stwx r3,r10,r7
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
} else { /* coalesce prev */
uintptr_t const size = block_size + prev_size;
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
ffc0f410: 90 06 00 04 stw r0,4(r6)
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
ffc0f414: 80 08 00 04 lwz r0,4(r8)
ffc0f418: 54 00 00 3c rlwinm r0,r0,0,0,30
ffc0f41c: 90 08 00 04 stw r0,4(r8)
ffc0f420: 4b ff ff 6c b ffc0f38c <_Heap_Free+0x114>
ffc143ac <_Heap_Get_information>:
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
Heap_Block *the_block = the_heap->first_block;
Heap_Block *const end = the_heap->last_block;
ffc143ac: 80 03 00 24 lwz r0,36(r3)
_HAssert(the_block->prev_size == the_heap->page_size);
_HAssert(_Heap_Is_prev_used(the_block));
the_info->Free.number = 0;
ffc143b0: 39 60 00 00 li r11,0
void _Heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
Heap_Block *the_block = the_heap->first_block;
ffc143b4: 81 23 00 20 lwz r9,32(r3)
the_info->Free.largest = 0;
the_info->Used.number = 0;
the_info->Used.total = 0;
the_info->Used.largest = 0;
while ( the_block != end ) {
ffc143b8: 39 40 00 08 li r10,8
the_info->Free.number = 0;
the_info->Free.total = 0;
the_info->Free.largest = 0;
the_info->Used.number = 0;
the_info->Used.total = 0;
the_info->Used.largest = 0;
ffc143bc: 91 64 00 10 stw r11,16(r4)
while ( the_block != end ) {
ffc143c0: 7f 89 00 00 cmpw cr7,r9,r0
Heap_Block *const end = the_heap->last_block;
_HAssert(the_block->prev_size == the_heap->page_size);
_HAssert(_Heap_Is_prev_used(the_block));
the_info->Free.number = 0;
ffc143c4: 91 64 00 00 stw r11,0(r4)
the_info->Free.total = 0;
ffc143c8: 91 64 00 08 stw r11,8(r4)
the_info->Free.largest = 0;
ffc143cc: 91 64 00 04 stw r11,4(r4)
the_info->Used.number = 0;
ffc143d0: 91 64 00 0c stw r11,12(r4)
the_info->Used.total = 0;
ffc143d4: 91 64 00 14 stw r11,20(r4)
the_info->Used.largest = 0;
while ( the_block != end ) {
ffc143d8: 41 9e 00 60 beq- cr7,ffc14438 <_Heap_Get_information+0x8c><== NEVER TAKEN
ffc143dc: 81 09 00 04 lwz r8,4(r9)
uintptr_t const the_size = _Heap_Block_size(the_block);
Heap_Block *const next_block = _Heap_Block_at(the_block, the_size);
Heap_Information *info;
if ( _Heap_Is_prev_used(next_block) )
info = &the_info->Used;
ffc143e0: 38 a4 00 0c addi r5,r4,12
ffc143e4: 55 0a 00 3c rlwinm r10,r8,0,0,30
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
ffc143e8: 7d 29 52 14 add r9,r9,r10
block->size_and_flag = size | flag;
}
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{
return block->size_and_flag & HEAP_PREV_BLOCK_USED;
ffc143ec: 81 09 00 04 lwz r8,4(r9)
the_info->Free.largest = 0;
the_info->Used.number = 0;
the_info->Used.total = 0;
the_info->Used.largest = 0;
while ( the_block != end ) {
ffc143f0: 7f 80 48 00 cmpw cr7,r0,r9
uintptr_t const the_size = _Heap_Block_size(the_block);
Heap_Block *const next_block = _Heap_Block_at(the_block, the_size);
Heap_Information *info;
if ( _Heap_Is_prev_used(next_block) )
ffc143f4: 71 0b 00 01 andi. r11,r8,1
ffc143f8: 7c ab 2b 78 mr r11,r5
ffc143fc: 40 82 00 08 bne- ffc14404 <_Heap_Get_information+0x58>
ffc14400: 7c 8b 23 78 mr r11,r4
else
info = &the_info->Free;
info->number++;
info->total += the_size;
if ( info->largest < the_size )
ffc14404: 80 eb 00 04 lwz r7,4(r11)
if ( _Heap_Is_prev_used(next_block) )
info = &the_info->Used;
else
info = &the_info->Free;
info->number++;
ffc14408: 80 cb 00 00 lwz r6,0(r11)
info->total += the_size;
if ( info->largest < the_size )
ffc1440c: 7f 07 50 40 cmplw cr6,r7,r10
info = &the_info->Used;
else
info = &the_info->Free;
info->number++;
info->total += the_size;
ffc14410: 80 eb 00 08 lwz r7,8(r11)
if ( _Heap_Is_prev_used(next_block) )
info = &the_info->Used;
else
info = &the_info->Free;
info->number++;
ffc14414: 38 c6 00 01 addi r6,r6,1
info->total += the_size;
ffc14418: 7c e7 52 14 add r7,r7,r10
if ( _Heap_Is_prev_used(next_block) )
info = &the_info->Used;
else
info = &the_info->Free;
info->number++;
ffc1441c: 90 cb 00 00 stw r6,0(r11)
info->total += the_size;
ffc14420: 90 eb 00 08 stw r7,8(r11)
if ( info->largest < the_size )
ffc14424: 40 98 00 08 bge- cr6,ffc1442c <_Heap_Get_information+0x80>
info->largest = the_size;
ffc14428: 91 4b 00 04 stw r10,4(r11)
the_info->Free.largest = 0;
the_info->Used.number = 0;
the_info->Used.total = 0;
the_info->Used.largest = 0;
while ( the_block != end ) {
ffc1442c: 40 9e ff b8 bne+ cr7,ffc143e4 <_Heap_Get_information+0x38>
ffc14430: 81 44 00 14 lwz r10,20(r4)
ffc14434: 39 4a 00 08 addi r10,r10,8
/*
* Handle the last dummy block. Don't consider this block to be
* "used" as client never allocated it. Make 'Used.total' contain this
* blocks' overhead though.
*/
the_info->Used.total += HEAP_BLOCK_HEADER_SIZE;
ffc14438: 91 44 00 14 stw r10,20(r4)
}
ffc1443c: 4e 80 00 20 blr
ffc1d02c <_Heap_Size_of_alloc_area>:
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
ffc1d02c: 80 03 00 10 lwz r0,16(r3)
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
ffc1d030: 81 23 00 20 lwz r9,32(r3)
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
ffc1d034: 7d 64 03 96 divwu r11,r4,r0
ffc1d038: 7d 6b 01 d6 mullw r11,r11,r0
ffc1d03c: 39 6b ff f8 addi r11,r11,-8
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc1d040: 7f 8b 48 40 cmplw cr7,r11,r9
ffc1d044: 41 9c 00 4c blt- cr7,ffc1d090 <_Heap_Size_of_alloc_area+0x64><== NEVER TAKEN
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
ffc1d048: 81 43 00 24 lwz r10,36(r3)
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc1d04c: 7f 8b 50 40 cmplw cr7,r11,r10
ffc1d050: 41 9d 00 40 bgt- cr7,ffc1d090 <_Heap_Size_of_alloc_area+0x64>
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
ffc1d054: 80 0b 00 04 lwz r0,4(r11)
ffc1d058: 54 00 00 3c rlwinm r0,r0,0,0,30
ffc1d05c: 7d 6b 02 14 add r11,r11,r0
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc1d060: 7f 89 58 40 cmplw cr7,r9,r11
ffc1d064: 41 9d 00 2c bgt- cr7,ffc1d090 <_Heap_Size_of_alloc_area+0x64><== NEVER TAKEN
ffc1d068: 7f 8a 58 40 cmplw cr7,r10,r11
ffc1d06c: 41 9c 00 24 blt- cr7,ffc1d090 <_Heap_Size_of_alloc_area+0x64><== NEVER TAKEN
}
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if (
ffc1d070: 80 0b 00 04 lwz r0,4(r11)
ffc1d074: 70 09 00 01 andi. r9,r0,1
ffc1d078: 41 82 00 18 beq- ffc1d090 <_Heap_Size_of_alloc_area+0x64><== NEVER TAKEN
|| !_Heap_Is_prev_used( next_block )
) {
return false;
}
*alloc_size = (uintptr_t) next_block + HEAP_BLOCK_SIZE_OFFSET - alloc_begin;
ffc1d07c: 20 84 00 04 subfic r4,r4,4
ffc1d080: 7d 64 5a 14 add r11,r4,r11
ffc1d084: 91 65 00 00 stw r11,0(r5)
ffc1d088: 38 60 00 01 li r3,1
return true;
ffc1d08c: 4e 80 00 20 blr
ffc1d090: 38 60 00 00 li r3,0
}
ffc1d094: 4e 80 00 20 blr
ffc0ab7c <_Heap_Walk>:
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
Heap_Block *const last_block = heap->last_block;
Heap_Block *block = heap->first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
ffc0ab7c: 2f 85 00 00 cmpwi cr7,r5,0
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
ffc0ab80: 94 21 ff 98 stwu r1,-104(r1)
ffc0ab84: 7c 08 02 a6 mflr r0
ffc0ab88: 93 21 00 4c stw r25,76(r1)
ffc0ab8c: 90 01 00 6c stw r0,108(r1)
ffc0ab90: 93 41 00 50 stw r26,80(r1)
ffc0ab94: 93 61 00 54 stw r27,84(r1)
ffc0ab98: 93 81 00 58 stw r28,88(r1)
ffc0ab9c: 7c 9c 23 78 mr r28,r4
ffc0aba0: 93 c1 00 60 stw r30,96(r1)
ffc0aba4: 93 e1 00 64 stw r31,100(r1)
ffc0aba8: 7c 7f 1b 78 mr r31,r3
ffc0abac: 91 c1 00 20 stw r14,32(r1)
ffc0abb0: 91 e1 00 24 stw r15,36(r1)
ffc0abb4: 92 01 00 28 stw r16,40(r1)
ffc0abb8: 92 21 00 2c stw r17,44(r1)
ffc0abbc: 92 41 00 30 stw r18,48(r1)
ffc0abc0: 92 61 00 34 stw r19,52(r1)
ffc0abc4: 92 81 00 38 stw r20,56(r1)
ffc0abc8: 92 a1 00 3c stw r21,60(r1)
ffc0abcc: 92 c1 00 40 stw r22,64(r1)
ffc0abd0: 92 e1 00 44 stw r23,68(r1)
ffc0abd4: 93 01 00 48 stw r24,72(r1)
ffc0abd8: 93 a1 00 5c stw r29,92(r1)
uintptr_t const page_size = heap->page_size;
ffc0abdc: 83 63 00 10 lwz r27,16(r3)
uintptr_t const min_block_size = heap->min_block_size;
ffc0abe0: 83 43 00 14 lwz r26,20(r3)
Heap_Block *const last_block = heap->last_block;
ffc0abe4: 83 23 00 24 lwz r25,36(r3)
Heap_Block *block = heap->first_block;
ffc0abe8: 83 c3 00 20 lwz r30,32(r3)
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
ffc0abec: 40 9e 00 7c bne- cr7,ffc0ac68 <_Heap_Walk+0xec>
ffc0abf0: 3d 20 ff c1 lis r9,-63
ffc0abf4: 39 29 ab 78 addi r9,r9,-21640
ffc0abf8: 91 21 00 18 stw r9,24(r1)
if ( !_System_state_Is_up( _System_state_Get() ) ) {
ffc0abfc: 3d 20 00 00 lis r9,0
ffc0ac00: 80 09 27 90 lwz r0,10128(r9)
ffc0ac04: 2f 80 00 03 cmpwi cr7,r0,3
ffc0ac08: 41 9e 00 7c beq- cr7,ffc0ac84 <_Heap_Walk+0x108>
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
ffc0ac0c: 38 60 00 01 li r3,1
block = next_block;
}
return true;
}
ffc0ac10: 80 01 00 6c lwz r0,108(r1)
ffc0ac14: 81 c1 00 20 lwz r14,32(r1)
ffc0ac18: 7c 08 03 a6 mtlr r0
ffc0ac1c: 81 e1 00 24 lwz r15,36(r1)
ffc0ac20: 82 01 00 28 lwz r16,40(r1)
ffc0ac24: 82 21 00 2c lwz r17,44(r1)
ffc0ac28: 82 41 00 30 lwz r18,48(r1)
ffc0ac2c: 82 61 00 34 lwz r19,52(r1)
ffc0ac30: 82 81 00 38 lwz r20,56(r1)
ffc0ac34: 82 a1 00 3c lwz r21,60(r1)
ffc0ac38: 82 c1 00 40 lwz r22,64(r1)
ffc0ac3c: 82 e1 00 44 lwz r23,68(r1)
ffc0ac40: 83 01 00 48 lwz r24,72(r1)
ffc0ac44: 83 21 00 4c lwz r25,76(r1)
ffc0ac48: 83 41 00 50 lwz r26,80(r1)
ffc0ac4c: 83 61 00 54 lwz r27,84(r1)
ffc0ac50: 83 81 00 58 lwz r28,88(r1)
ffc0ac54: 83 a1 00 5c lwz r29,92(r1)
ffc0ac58: 83 c1 00 60 lwz r30,96(r1)
ffc0ac5c: 83 e1 00 64 lwz r31,100(r1)
ffc0ac60: 38 21 00 68 addi r1,r1,104
ffc0ac64: 4e 80 00 20 blr
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
Heap_Block *const last_block = heap->last_block;
Heap_Block *block = heap->first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
ffc0ac68: 3d 20 ff c1 lis r9,-63
ffc0ac6c: 39 29 b1 94 addi r9,r9,-20076
ffc0ac70: 91 21 00 18 stw r9,24(r1)
if ( !_System_state_Is_up( _System_state_Get() ) ) {
ffc0ac74: 3d 20 00 00 lis r9,0
ffc0ac78: 80 09 27 90 lwz r0,10128(r9)
ffc0ac7c: 2f 80 00 03 cmpwi cr7,r0,3
ffc0ac80: 40 9e ff 8c bne+ cr7,ffc0ac0c <_Heap_Walk+0x90> <== NEVER TAKEN
Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
Heap_Block *const first_block = heap->first_block;
Heap_Block *const last_block = heap->last_block;
(*printer)(
ffc0ac84: 80 1f 00 0c lwz r0,12(r31)
ffc0ac88: 3c a0 ff c2 lis r5,-62
ffc0ac8c: 81 1f 00 18 lwz r8,24(r31)
ffc0ac90: 38 a5 f5 80 addi r5,r5,-2688
ffc0ac94: 81 3f 00 1c lwz r9,28(r31)
ffc0ac98: 7f 83 e3 78 mr r3,r28
ffc0ac9c: 81 7f 00 08 lwz r11,8(r31)
ffc0aca0: 38 80 00 00 li r4,0
ffc0aca4: 90 01 00 10 stw r0,16(r1)
ffc0aca8: 7f 66 db 78 mr r6,r27
ffc0acac: 7f 47 d3 78 mr r7,r26
ffc0acb0: 80 01 00 18 lwz r0,24(r1)
ffc0acb4: 7f ca f3 78 mr r10,r30
ffc0acb8: 91 61 00 0c stw r11,12(r1)
ffc0acbc: 7c 09 03 a6 mtctr r0
ffc0acc0: 93 21 00 08 stw r25,8(r1)
ffc0acc4: 4c c6 31 82 crclr 4*cr1+eq
ffc0acc8: 4e 80 04 21 bctrl
heap->area_begin, heap->area_end,
first_block, last_block,
first_free_block, last_free_block
);
if ( page_size == 0 ) {
ffc0accc: 2f 9b 00 00 cmpwi cr7,r27,0
ffc0acd0: 41 9e 00 d0 beq- cr7,ffc0ada0 <_Heap_Walk+0x224>
(*printer)( source, true, "page size is zero\n" );
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
ffc0acd4: 73 67 00 07 andi. r7,r27,7
ffc0acd8: 40 82 00 f0 bne- ffc0adc8 <_Heap_Walk+0x24c>
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
ffc0acdc: 7c 1a db 96 divwu r0,r26,r27
ffc0ace0: 7c 00 d9 d6 mullw r0,r0,r27
ffc0ace4: 7f 9a 00 00 cmpw cr7,r26,r0
ffc0ace8: 40 9e 00 f4 bne- cr7,ffc0addc <_Heap_Walk+0x260>
);
return false;
}
if (
ffc0acec: 38 1e 00 08 addi r0,r30,8
ffc0acf0: 7d 20 db 96 divwu r9,r0,r27
ffc0acf4: 7d 29 d9 d6 mullw r9,r9,r27
ffc0acf8: 7f 80 48 00 cmpw cr7,r0,r9
ffc0acfc: 40 9e 00 f4 bne- cr7,ffc0adf0 <_Heap_Walk+0x274>
block->size_and_flag = size | flag;
}
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{
return block->size_and_flag & HEAP_PREV_BLOCK_USED;
ffc0ad00: 83 1e 00 04 lwz r24,4(r30)
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
ffc0ad04: 73 00 00 01 andi. r0,r24,1
ffc0ad08: 41 82 00 fc beq- ffc0ae04 <_Heap_Walk+0x288>
);
return false;
}
if ( first_block->prev_size != page_size ) {
ffc0ad0c: 80 de 00 00 lwz r6,0(r30)
ffc0ad10: 7f 9b 30 00 cmpw cr7,r27,r6
ffc0ad14: 40 9e 00 60 bne- cr7,ffc0ad74 <_Heap_Walk+0x1f8>
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
ffc0ad18: 81 39 00 04 lwz r9,4(r25)
ffc0ad1c: 55 29 00 3c rlwinm r9,r9,0,0,30
ffc0ad20: 7d 39 4a 14 add r9,r25,r9
ffc0ad24: 81 29 00 04 lwz r9,4(r9)
ffc0ad28: 71 27 00 01 andi. r7,r9,1
ffc0ad2c: 41 82 04 28 beq- ffc0b154 <_Heap_Walk+0x5d8>
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
ffc0ad30: 80 df 00 08 lwz r6,8(r31)
int source,
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
ffc0ad34: 80 bf 00 10 lwz r5,16(r31)
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
const Heap_Block *prev_block = free_list_tail;
const Heap_Block *free_block = first_free_block;
while ( free_block != free_list_tail ) {
ffc0ad38: 7f 9f 30 00 cmpw cr7,r31,r6
ffc0ad3c: 41 9e 01 78 beq- cr7,ffc0aeb4 <_Heap_Walk+0x338>
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
ffc0ad40: 81 5f 00 20 lwz r10,32(r31)
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc0ad44: 7f 8a 30 40 cmplw cr7,r10,r6
ffc0ad48: 40 9d 00 cc ble- cr7,ffc0ae14 <_Heap_Walk+0x298> <== ALWAYS TAKEN
if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {
(*printer)(
ffc0ad4c: 3c a0 ff c2 lis r5,-62
ffc0ad50: 7f 83 e3 78 mr r3,r28
ffc0ad54: 38 a5 f7 14 addi r5,r5,-2284
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
ffc0ad58: 80 01 00 18 lwz r0,24(r1)
ffc0ad5c: 38 80 00 01 li r4,1
ffc0ad60: 7c 09 03 a6 mtctr r0
ffc0ad64: 4c c6 31 82 crclr 4*cr1+eq
ffc0ad68: 4e 80 04 21 bctrl
ffc0ad6c: 38 60 00 00 li r3,0
ffc0ad70: 4b ff fe a0 b ffc0ac10 <_Heap_Walk+0x94>
return false;
}
if ( first_block->prev_size != page_size ) {
(*printer)(
ffc0ad74: 3c a0 ff c2 lis r5,-62
ffc0ad78: 7f 83 e3 78 mr r3,r28
ffc0ad7c: 38 a5 f6 d0 addi r5,r5,-2352
ffc0ad80: 7f 67 db 78 mr r7,r27
return false;
}
if ( next_block_begin <= block_begin ) {
(*printer)(
ffc0ad84: 80 01 00 18 lwz r0,24(r1)
ffc0ad88: 38 80 00 01 li r4,1
ffc0ad8c: 7c 09 03 a6 mtctr r0
ffc0ad90: 4c c6 31 82 crclr 4*cr1+eq
ffc0ad94: 4e 80 04 21 bctrl
ffc0ad98: 38 60 00 00 li r3,0
"block 0x%08x: next block 0x%08x is not a successor\n",
block,
next_block
);
return false;
ffc0ad9c: 4b ff fe 74 b ffc0ac10 <_Heap_Walk+0x94>
first_block, last_block,
first_free_block, last_free_block
);
if ( page_size == 0 ) {
(*printer)( source, true, "page size is zero\n" );
ffc0ada0: 3c a0 ff c2 lis r5,-62
ffc0ada4: 7f 83 e3 78 mr r3,r28
ffc0ada8: 38 a5 f6 14 addi r5,r5,-2540
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
(*printer)(
ffc0adac: 80 01 00 18 lwz r0,24(r1)
ffc0adb0: 38 80 00 01 li r4,1
ffc0adb4: 7c 09 03 a6 mtctr r0
ffc0adb8: 4c c6 31 82 crclr 4*cr1+eq
ffc0adbc: 4e 80 04 21 bctrl
ffc0adc0: 38 60 00 00 li r3,0
ffc0adc4: 4b ff fe 4c b ffc0ac10 <_Heap_Walk+0x94>
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
(*printer)(
ffc0adc8: 3c a0 ff c2 lis r5,-62
ffc0adcc: 7f 83 e3 78 mr r3,r28
ffc0add0: 38 a5 f6 28 addi r5,r5,-2520
ffc0add4: 7f 66 db 78 mr r6,r27
ffc0add8: 4b ff ff 80 b ffc0ad58 <_Heap_Walk+0x1dc>
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
(*printer)(
ffc0addc: 3c a0 ff c2 lis r5,-62
ffc0ade0: 7f 83 e3 78 mr r3,r28
ffc0ade4: 38 a5 f6 48 addi r5,r5,-2488
ffc0ade8: 7f 46 d3 78 mr r6,r26
ffc0adec: 4b ff ff 6c b ffc0ad58 <_Heap_Walk+0x1dc>
}
if (
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
ffc0adf0: 3c a0 ff c2 lis r5,-62
ffc0adf4: 7f 83 e3 78 mr r3,r28
ffc0adf8: 38 a5 f6 6c addi r5,r5,-2452
ffc0adfc: 7f c6 f3 78 mr r6,r30
ffc0ae00: 4b ff ff 58 b ffc0ad58 <_Heap_Walk+0x1dc>
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
(*printer)(
ffc0ae04: 3c a0 ff c2 lis r5,-62
ffc0ae08: 7f 83 e3 78 mr r3,r28
ffc0ae0c: 38 a5 f6 a0 addi r5,r5,-2400
ffc0ae10: 4b ff ff 9c b ffc0adac <_Heap_Walk+0x230>
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
ffc0ae14: 81 1f 00 24 lwz r8,36(r31)
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc0ae18: 7f 88 30 40 cmplw cr7,r8,r6
ffc0ae1c: 41 bc ff 30 blt- cr7,ffc0ad4c <_Heap_Walk+0x1d0> <== NEVER TAKEN
);
return false;
}
if (
ffc0ae20: 39 26 00 08 addi r9,r6,8
ffc0ae24: 7d 69 2b 96 divwu r11,r9,r5
ffc0ae28: 7d 6b 29 d6 mullw r11,r11,r5
ffc0ae2c: 7f 89 58 00 cmpw cr7,r9,r11
ffc0ae30: 40 9e 03 34 bne- cr7,ffc0b164 <_Heap_Walk+0x5e8> <== NEVER TAKEN
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
ffc0ae34: 81 26 00 04 lwz r9,4(r6)
ffc0ae38: 55 29 00 3c rlwinm r9,r9,0,0,30
ffc0ae3c: 7d 26 4a 14 add r9,r6,r9
ffc0ae40: 81 29 00 04 lwz r9,4(r9)
ffc0ae44: 71 27 00 01 andi. r7,r9,1
ffc0ae48: 40 82 03 3c bne- ffc0b184 <_Heap_Walk+0x608> <== NEVER TAKEN
);
return false;
}
if ( free_block->prev != prev_block ) {
ffc0ae4c: 80 e6 00 0c lwz r7,12(r6)
ffc0ae50: 7f 9f 38 00 cmpw cr7,r31,r7
ffc0ae54: 41 be 00 48 beq+ cr7,ffc0ae9c <_Heap_Walk+0x320> <== ALWAYS TAKEN
ffc0ae58: 48 00 03 1c b ffc0b174 <_Heap_Walk+0x5f8> <== NOT EXECUTED
ffc0ae5c: 41 b8 fe f0 blt- cr6,ffc0ad4c <_Heap_Walk+0x1d0>
);
return false;
}
if (
ffc0ae60: 39 66 00 08 addi r11,r6,8
ffc0ae64: 41 a4 fe e8 blt- cr1,ffc0ad4c <_Heap_Walk+0x1d0> <== NEVER TAKEN
ffc0ae68: 7c eb 2b 96 divwu r7,r11,r5
ffc0ae6c: 7c e7 29 d6 mullw r7,r7,r5
ffc0ae70: 7f 8b 38 00 cmpw cr7,r11,r7
ffc0ae74: 40 9e 02 f0 bne- cr7,ffc0b164 <_Heap_Walk+0x5e8>
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
ffc0ae78: 81 66 00 04 lwz r11,4(r6)
ffc0ae7c: 55 6b 00 3c rlwinm r11,r11,0,0,30
ffc0ae80: 7d 6b 32 14 add r11,r11,r6
ffc0ae84: 81 6b 00 04 lwz r11,4(r11)
ffc0ae88: 71 67 00 01 andi. r7,r11,1
ffc0ae8c: 40 82 02 f8 bne- ffc0b184 <_Heap_Walk+0x608>
);
return false;
}
if ( free_block->prev != prev_block ) {
ffc0ae90: 80 e6 00 0c lwz r7,12(r6)
ffc0ae94: 7f 87 48 00 cmpw cr7,r7,r9
ffc0ae98: 40 9e 02 dc bne- cr7,ffc0b174 <_Heap_Walk+0x5f8>
(*printer)(
ffc0ae9c: 7c c9 33 78 mr r9,r6
return false;
}
prev_block = free_block;
free_block = free_block->next;
ffc0aea0: 80 c6 00 08 lwz r6,8(r6)
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
const Heap_Block *prev_block = free_list_tail;
const Heap_Block *free_block = first_free_block;
while ( free_block != free_list_tail ) {
ffc0aea4: 7f 9f 30 00 cmpw cr7,r31,r6
ffc0aea8: 7f 06 50 40 cmplw cr6,r6,r10
ffc0aeac: 7c 88 30 40 cmplw cr1,r8,r6
ffc0aeb0: 40 9e ff ac bne+ cr7,ffc0ae5c <_Heap_Walk+0x2e0>
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
ffc0aeb4: 7f 99 f0 00 cmpw cr7,r25,r30
ffc0aeb8: 41 be fd 54 beq- cr7,ffc0ac0c <_Heap_Walk+0x90> <== NEVER TAKEN
bool const prev_used = _Heap_Is_prev_used( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
if ( prev_used ) {
(*printer)(
ffc0aebc: 3e 60 ff c2 lis r19,-62
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
ffc0aec0: 3e 80 ff c2 lis r20,-62
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0aec4: 3e 40 ff c2 lis r18,-62
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
ffc0aec8: 3d e0 ff c2 lis r15,-62
ffc0aecc: 3e a0 ff c2 lis r21,-62
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0aed0: 3e 20 ff c2 lis r17,-62
"block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n",
block,
block->prev,
block->prev == first_free_block ?
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
ffc0aed4: 3d c0 ff c2 lis r14,-62
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
ffc0aed8: 3e 00 ff c2 lis r16,-62
bool const prev_used = _Heap_Is_prev_used( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
if ( prev_used ) {
(*printer)(
ffc0aedc: 3a 73 f7 b4 addi r19,r19,-2124
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
ffc0aee0: 3a 94 f7 cc addi r20,r20,-2100
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0aee4: 3a 52 f8 e4 addi r18,r18,-1820
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
ffc0aee8: 39 ef f8 d8 addi r15,r15,-1832
ffc0aeec: 3a b5 f9 48 addi r21,r21,-1720
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0aef0: 3a 31 f8 cc addi r17,r17,-1844
"block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n",
block,
block->prev,
block->prev == first_free_block ?
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
ffc0aef4: 39 ce f8 c0 addi r14,r14,-1856
ffc0aef8: 3a 10 f8 b4 addi r16,r16,-1868
uintptr_t const block_size = _Heap_Block_size( block );
bool const prev_used = _Heap_Is_prev_used( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
if ( prev_used ) {
ffc0aefc: 2f 80 00 00 cmpwi cr7,r0,0
- HEAP_BLOCK_HEADER_SIZE);
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{
return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;
ffc0af00: 57 18 00 3c rlwinm r24,r24,0,0,30
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
ffc0af04: 7f b8 f2 14 add r29,r24,r30
ffc0af08: 41 9e 00 4c beq- cr7,ffc0af54 <_Heap_Walk+0x3d8>
(*printer)(
ffc0af0c: 80 01 00 18 lwz r0,24(r1)
ffc0af10: 7f 83 e3 78 mr r3,r28
ffc0af14: 38 80 00 00 li r4,0
ffc0af18: 7c 09 03 a6 mtctr r0
ffc0af1c: 7e 65 9b 78 mr r5,r19
ffc0af20: 7f c6 f3 78 mr r6,r30
ffc0af24: 7f 07 c3 78 mr r7,r24
ffc0af28: 4c c6 31 82 crclr 4*cr1+eq
ffc0af2c: 4e 80 04 21 bctrl
RTEMS_INLINE_ROUTINE bool _Heap_Is_block_in_heap(
const Heap_Control *heap,
const Heap_Block *block
)
{
return (uintptr_t) block >= (uintptr_t) heap->first_block
ffc0af30: 80 1f 00 20 lwz r0,32(r31)
ffc0af34: 7f 80 e8 40 cmplw cr7,r0,r29
ffc0af38: 40 9d 00 50 ble- cr7,ffc0af88 <_Heap_Walk+0x40c> <== ALWAYS TAKEN
block->prev_size
);
}
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
(*printer)(
ffc0af3c: 3c a0 ff c2 lis r5,-62
ffc0af40: 7f 83 e3 78 mr r3,r28
ffc0af44: 38 a5 f7 f4 addi r5,r5,-2060
ffc0af48: 7f c6 f3 78 mr r6,r30
ffc0af4c: 7f a7 eb 78 mr r7,r29
ffc0af50: 4b ff fe 34 b ffc0ad84 <_Heap_Walk+0x208>
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
ffc0af54: 80 01 00 18 lwz r0,24(r1)
ffc0af58: 7f 83 e3 78 mr r3,r28
ffc0af5c: 38 80 00 00 li r4,0
ffc0af60: 81 1e 00 00 lwz r8,0(r30)
ffc0af64: 7c 09 03 a6 mtctr r0
ffc0af68: 7e 85 a3 78 mr r5,r20
ffc0af6c: 7f c6 f3 78 mr r6,r30
ffc0af70: 7f 07 c3 78 mr r7,r24
ffc0af74: 4c c6 31 82 crclr 4*cr1+eq
ffc0af78: 4e 80 04 21 bctrl
ffc0af7c: 80 1f 00 20 lwz r0,32(r31)
ffc0af80: 7f 80 e8 40 cmplw cr7,r0,r29
ffc0af84: 41 bd ff b8 bgt- cr7,ffc0af3c <_Heap_Walk+0x3c0> <== NEVER TAKEN
ffc0af88: 80 1f 00 24 lwz r0,36(r31)
ffc0af8c: 7f 80 e8 40 cmplw cr7,r0,r29
ffc0af90: 41 bc ff ac blt- cr7,ffc0af3c <_Heap_Walk+0x3c0>
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
ffc0af94: 7c 18 db 96 divwu r0,r24,r27
ffc0af98: 7c 00 d9 d6 mullw r0,r0,r27
ffc0af9c: 7f 98 00 00 cmpw cr7,r24,r0
ffc0afa0: 40 9e 01 50 bne- cr7,ffc0b0f0 <_Heap_Walk+0x574>
);
return false;
}
if ( block_size < min_block_size ) {
ffc0afa4: 7f 9a c0 40 cmplw cr7,r26,r24
ffc0afa8: 41 9d 01 60 bgt- cr7,ffc0b108 <_Heap_Walk+0x58c>
);
return false;
}
if ( next_block_begin <= block_begin ) {
ffc0afac: 7f 9e e8 40 cmplw cr7,r30,r29
ffc0afb0: 40 9c 01 8c bge- cr7,ffc0b13c <_Heap_Walk+0x5c0>
);
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
ffc0afb4: 80 1d 00 04 lwz r0,4(r29)
ffc0afb8: 70 07 00 01 andi. r7,r0,1
ffc0afbc: 40 82 00 b0 bne- ffc0b06c <_Heap_Walk+0x4f0>
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
ffc0afc0: 80 1f 00 08 lwz r0,8(r31)
ffc0afc4: 7e 08 83 78 mr r8,r16
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0afc8: 80 fe 00 0c lwz r7,12(r30)
block->size_and_flag = size | flag;
}
RTEMS_INLINE_ROUTINE bool _Heap_Is_prev_used( const Heap_Block *block )
{
return block->size_and_flag & HEAP_PREV_BLOCK_USED;
ffc0afcc: 82 de 00 04 lwz r22,4(r30)
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
ffc0afd0: 7f 80 38 00 cmpw cr7,r0,r7
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap )
{
return _Heap_Free_list_tail(heap)->prev;
ffc0afd4: 80 1f 00 0c lwz r0,12(r31)
- HEAP_BLOCK_HEADER_SIZE);
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Block_size( const Heap_Block *block )
{
return block->size_and_flag & ~HEAP_PREV_BLOCK_USED;
ffc0afd8: 56 d8 00 3c rlwinm r24,r22,0,0,30
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
ffc0afdc: 7e fe c2 14 add r23,r30,r24
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
ffc0afe0: 41 9e 00 10 beq- cr7,ffc0aff0 <_Heap_Walk+0x474>
"block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n",
block,
block->prev,
block->prev == first_free_block ?
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
ffc0afe4: 7f 87 f8 00 cmpw cr7,r7,r31
ffc0afe8: 7e a8 ab 78 mr r8,r21
ffc0afec: 41 9e 00 fc beq- cr7,ffc0b0e8 <_Heap_Walk+0x56c>
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0aff0: 81 3e 00 08 lwz r9,8(r30)
ffc0aff4: 7e 2a 8b 78 mr r10,r17
ffc0aff8: 7f 80 48 00 cmpw cr7,r0,r9
ffc0affc: 41 9e 00 10 beq- cr7,ffc0b00c <_Heap_Walk+0x490>
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
ffc0b000: 7f 89 f8 00 cmpw cr7,r9,r31
ffc0b004: 7e aa ab 78 mr r10,r21
ffc0b008: 41 9e 00 d8 beq- cr7,ffc0b0e0 <_Heap_Walk+0x564>
Heap_Block *const last_free_block = _Heap_Free_list_last( heap );
bool const prev_used = _Heap_Is_prev_used( block );
uintptr_t const block_size = _Heap_Block_size( block );
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
(*printer)(
ffc0b00c: 80 01 00 18 lwz r0,24(r1)
ffc0b010: 7f 83 e3 78 mr r3,r28
ffc0b014: 38 80 00 00 li r4,0
ffc0b018: 7e 45 93 78 mr r5,r18
ffc0b01c: 7c 09 03 a6 mtctr r0
ffc0b020: 7f c6 f3 78 mr r6,r30
ffc0b024: 4c c6 31 82 crclr 4*cr1+eq
ffc0b028: 4e 80 04 21 bctrl
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
);
if ( block_size != next_block->prev_size ) {
ffc0b02c: 81 17 00 00 lwz r8,0(r23)
ffc0b030: 7f 98 40 00 cmpw cr7,r24,r8
ffc0b034: 41 9e 00 50 beq- cr7,ffc0b084 <_Heap_Walk+0x508>
(*printer)(
ffc0b038: 80 01 00 18 lwz r0,24(r1)
ffc0b03c: 3c a0 ff c2 lis r5,-62
ffc0b040: 7f 83 e3 78 mr r3,r28
ffc0b044: 38 a5 f9 10 addi r5,r5,-1776
ffc0b048: 7c 09 03 a6 mtctr r0
ffc0b04c: 7f c6 f3 78 mr r6,r30
ffc0b050: 7f 07 c3 78 mr r7,r24
ffc0b054: 7e e9 bb 78 mr r9,r23
ffc0b058: 38 80 00 01 li r4,1
ffc0b05c: 4c c6 31 82 crclr 4*cr1+eq
ffc0b060: 4e 80 04 21 bctrl
ffc0b064: 38 60 00 00 li r3,0
ffc0b068: 4b ff fb a8 b ffc0ac10 <_Heap_Walk+0x94>
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
}
while ( block != last_block ) {
ffc0b06c: 7f 99 e8 00 cmpw cr7,r25,r29
ffc0b070: 41 be fb 9c beq- cr7,ffc0ac0c <_Heap_Walk+0x90>
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *const first_free_block = _Heap_Free_list_first( heap );
const Heap_Block *prev_block = free_list_tail;
const Heap_Block *free_block = first_free_block;
while ( free_block != free_list_tail ) {
ffc0b074: 83 1d 00 04 lwz r24,4(r29)
ffc0b078: 7f be eb 78 mr r30,r29
ffc0b07c: 57 00 07 fe clrlwi r0,r24,31
ffc0b080: 4b ff fe 7c b ffc0aefc <_Heap_Walk+0x380>
);
return false;
}
if ( !prev_used ) {
ffc0b084: 72 c7 00 01 andi. r7,r22,1
ffc0b088: 41 82 00 44 beq- ffc0b0cc <_Heap_Walk+0x550>
ffc0b08c: 81 3f 00 08 lwz r9,8(r31)
)
{
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *free_block = _Heap_Free_list_first( heap );
while ( free_block != free_list_tail ) {
ffc0b090: 7f 89 f8 00 cmpw cr7,r9,r31
ffc0b094: 41 9e 00 24 beq- cr7,ffc0b0b8 <_Heap_Walk+0x53c> <== NEVER TAKEN
if ( free_block == block ) {
ffc0b098: 7f 89 f0 00 cmpw cr7,r9,r30
ffc0b09c: 40 be 00 0c bne+ cr7,ffc0b0a8 <_Heap_Walk+0x52c>
ffc0b0a0: 4b ff ff cc b ffc0b06c <_Heap_Walk+0x4f0>
ffc0b0a4: 41 ba ff c8 beq- cr6,ffc0b06c <_Heap_Walk+0x4f0>
return true;
}
free_block = free_block->next;
ffc0b0a8: 81 29 00 08 lwz r9,8(r9)
)
{
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *free_block = _Heap_Free_list_first( heap );
while ( free_block != free_list_tail ) {
ffc0b0ac: 7f 89 f8 00 cmpw cr7,r9,r31
if ( free_block == block ) {
ffc0b0b0: 7f 09 f0 00 cmpw cr6,r9,r30
)
{
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
const Heap_Block *free_block = _Heap_Free_list_first( heap );
while ( free_block != free_list_tail ) {
ffc0b0b4: 40 9e ff f0 bne+ cr7,ffc0b0a4 <_Heap_Walk+0x528>
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
ffc0b0b8: 3c a0 ff c2 lis r5,-62
ffc0b0bc: 7f 83 e3 78 mr r3,r28
ffc0b0c0: 38 a5 f9 7c addi r5,r5,-1668
ffc0b0c4: 7f c6 f3 78 mr r6,r30
ffc0b0c8: 4b ff fc 90 b ffc0ad58 <_Heap_Walk+0x1dc>
return false;
}
if ( !prev_used ) {
(*printer)(
ffc0b0cc: 3c a0 ff c2 lis r5,-62
ffc0b0d0: 7f 83 e3 78 mr r3,r28
ffc0b0d4: 38 a5 f9 4c addi r5,r5,-1716
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
ffc0b0d8: 7f c6 f3 78 mr r6,r30
ffc0b0dc: 4b ff fc 7c b ffc0ad58 <_Heap_Walk+0x1dc>
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last)"
: (block->next == free_list_tail ? " (= tail)" : "")
ffc0b0e0: 7d ea 7b 78 mr r10,r15
ffc0b0e4: 4b ff ff 28 b ffc0b00c <_Heap_Walk+0x490>
"block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n",
block,
block->prev,
block->prev == first_free_block ?
" (= first)"
: (block->prev == free_list_head ? " (= head)" : ""),
ffc0b0e8: 7d c8 73 78 mr r8,r14
ffc0b0ec: 4b ff ff 04 b ffc0aff0 <_Heap_Walk+0x474>
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) ) {
(*printer)(
ffc0b0f0: 3c a0 ff c2 lis r5,-62
ffc0b0f4: 7f 83 e3 78 mr r3,r28
ffc0b0f8: 38 a5 f8 24 addi r5,r5,-2012
ffc0b0fc: 7f c6 f3 78 mr r6,r30
ffc0b100: 7f 07 c3 78 mr r7,r24
ffc0b104: 4b ff fc 80 b ffc0ad84 <_Heap_Walk+0x208>
return false;
}
if ( block_size < min_block_size ) {
(*printer)(
ffc0b108: 80 01 00 18 lwz r0,24(r1)
ffc0b10c: 3c a0 ff c2 lis r5,-62
ffc0b110: 7f 83 e3 78 mr r3,r28
ffc0b114: 38 a5 f8 54 addi r5,r5,-1964
ffc0b118: 7c 09 03 a6 mtctr r0
ffc0b11c: 7f c6 f3 78 mr r6,r30
ffc0b120: 7f 07 c3 78 mr r7,r24
ffc0b124: 7f 48 d3 78 mr r8,r26
ffc0b128: 38 80 00 01 li r4,1
ffc0b12c: 4c c6 31 82 crclr 4*cr1+eq
ffc0b130: 4e 80 04 21 bctrl
ffc0b134: 38 60 00 00 li r3,0
block,
block_size,
min_block_size
);
return false;
ffc0b138: 4b ff fa d8 b ffc0ac10 <_Heap_Walk+0x94>
}
if ( next_block_begin <= block_begin ) {
(*printer)(
ffc0b13c: 3c a0 ff c2 lis r5,-62
ffc0b140: 7f 83 e3 78 mr r3,r28
ffc0b144: 38 a5 f8 80 addi r5,r5,-1920
ffc0b148: 7f c6 f3 78 mr r6,r30
ffc0b14c: 7f a7 eb 78 mr r7,r29
ffc0b150: 4b ff fc 34 b ffc0ad84 <_Heap_Walk+0x208>
return false;
}
if ( _Heap_Is_free( last_block ) ) {
(*printer)(
ffc0b154: 3c a0 ff c2 lis r5,-62
ffc0b158: 7f 83 e3 78 mr r3,r28
ffc0b15c: 38 a5 f6 fc addi r5,r5,-2308
ffc0b160: 4b ff fc 4c b ffc0adac <_Heap_Walk+0x230>
}
if (
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
ffc0b164: 3c a0 ff c2 lis r5,-62
ffc0b168: 7f 83 e3 78 mr r3,r28
ffc0b16c: 38 a5 f7 34 addi r5,r5,-2252
ffc0b170: 4b ff fb e8 b ffc0ad58 <_Heap_Walk+0x1dc>
return false;
}
if ( free_block->prev != prev_block ) {
(*printer)(
ffc0b174: 3c a0 ff c2 lis r5,-62
ffc0b178: 7f 83 e3 78 mr r3,r28
ffc0b17c: 38 a5 f7 80 addi r5,r5,-2176
ffc0b180: 4b ff fc 04 b ffc0ad84 <_Heap_Walk+0x208>
return false;
}
if ( _Heap_Is_used( free_block ) ) {
(*printer)(
ffc0b184: 3c a0 ff c2 lis r5,-62
ffc0b188: 7f 83 e3 78 mr r3,r28
ffc0b18c: 38 a5 f7 64 addi r5,r5,-2204
ffc0b190: 4b ff fb c8 b ffc0ad58 <_Heap_Walk+0x1dc>
ffc0b194 <_Heap_Walk_print>:
{
/* Do nothing */
}
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
ffc0b194: 94 21 ff 88 stwu r1,-120(r1)
ffc0b198: 7c 08 02 a6 mflr r0
ffc0b19c: 93 e1 00 74 stw r31,116(r1)
ffc0b1a0: 90 01 00 7c stw r0,124(r1)
ffc0b1a4: 7c 60 1b 78 mr r0,r3
ffc0b1a8: 90 c1 00 1c stw r6,28(r1)
ffc0b1ac: 90 e1 00 20 stw r7,32(r1)
ffc0b1b0: 91 01 00 24 stw r8,36(r1)
ffc0b1b4: 91 21 00 28 stw r9,40(r1)
ffc0b1b8: 91 41 00 2c stw r10,44(r1)
ffc0b1bc: 40 86 00 24 bne- cr1,ffc0b1e0 <_Heap_Walk_print+0x4c> <== ALWAYS TAKEN
ffc0b1c0: d8 21 00 30 stfd f1,48(r1) <== NOT EXECUTED
ffc0b1c4: d8 41 00 38 stfd f2,56(r1) <== NOT EXECUTED
ffc0b1c8: d8 61 00 40 stfd f3,64(r1) <== NOT EXECUTED
ffc0b1cc: d8 81 00 48 stfd f4,72(r1) <== NOT EXECUTED
ffc0b1d0: d8 a1 00 50 stfd f5,80(r1) <== NOT EXECUTED
ffc0b1d4: d8 c1 00 58 stfd f6,88(r1) <== NOT EXECUTED
ffc0b1d8: d8 e1 00 60 stfd f7,96(r1) <== NOT EXECUTED
ffc0b1dc: d9 01 00 68 stfd f8,104(r1) <== NOT EXECUTED
va_list ap;
if ( error ) {
ffc0b1e0: 2f 84 00 00 cmpwi cr7,r4,0
{
/* Do nothing */
}
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
ffc0b1e4: 7c bf 2b 78 mr r31,r5
va_list ap;
if ( error ) {
ffc0b1e8: 40 9e 00 58 bne- cr7,ffc0b240 <_Heap_Walk_print+0xac>
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
ffc0b1ec: 3c 60 ff c2 lis r3,-62
ffc0b1f0: 7c 04 03 78 mr r4,r0
ffc0b1f4: 38 63 f9 b4 addi r3,r3,-1612
ffc0b1f8: 4c c6 31 82 crclr 4*cr1+eq
ffc0b1fc: 4b ff ad d9 bl ffc05fd4 <printk>
}
va_start( ap, fmt );
ffc0b200: 38 00 00 03 li r0,3
ffc0b204: 98 01 00 08 stb r0,8(r1)
ffc0b208: 38 00 00 00 li r0,0
vprintk( fmt, ap );
ffc0b20c: 7f e3 fb 78 mr r3,r31
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0b210: 98 01 00 09 stb r0,9(r1)
ffc0b214: 38 01 00 80 addi r0,r1,128
vprintk( fmt, ap );
ffc0b218: 38 81 00 08 addi r4,r1,8
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0b21c: 90 01 00 0c stw r0,12(r1)
ffc0b220: 38 01 00 10 addi r0,r1,16
ffc0b224: 90 01 00 10 stw r0,16(r1)
vprintk( fmt, ap );
ffc0b228: 4b ff d0 e1 bl ffc08308 <vprintk>
va_end( ap );
}
ffc0b22c: 80 01 00 7c lwz r0,124(r1)
ffc0b230: 83 e1 00 74 lwz r31,116(r1)
ffc0b234: 38 21 00 78 addi r1,r1,120
ffc0b238: 7c 08 03 a6 mtlr r0
ffc0b23c: 4e 80 00 20 blr
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
va_list ap;
if ( error ) {
printk( "FAIL[%d]: ", source );
ffc0b240: 3c 60 ff c2 lis r3,-62
ffc0b244: 7c 04 03 78 mr r4,r0
ffc0b248: 38 63 f9 a8 addi r3,r3,-1624
ffc0b24c: 4c c6 31 82 crclr 4*cr1+eq
ffc0b250: 4b ff ad 85 bl ffc05fd4 <printk>
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0b254: 38 00 00 03 li r0,3
ffc0b258: 98 01 00 08 stb r0,8(r1)
ffc0b25c: 38 00 00 00 li r0,0
vprintk( fmt, ap );
ffc0b260: 7f e3 fb 78 mr r3,r31
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0b264: 98 01 00 09 stb r0,9(r1)
ffc0b268: 38 01 00 80 addi r0,r1,128
vprintk( fmt, ap );
ffc0b26c: 38 81 00 08 addi r4,r1,8
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
ffc0b270: 90 01 00 0c stw r0,12(r1)
ffc0b274: 38 01 00 10 addi r0,r1,16
ffc0b278: 90 01 00 10 stw r0,16(r1)
vprintk( fmt, ap );
ffc0b27c: 4b ff d0 8d bl ffc08308 <vprintk>
va_end( ap );
}
ffc0b280: 80 01 00 7c lwz r0,124(r1)
ffc0b284: 83 e1 00 74 lwz r31,116(r1)
ffc0b288: 38 21 00 78 addi r1,r1,120
ffc0b28c: 7c 08 03 a6 mtlr r0
ffc0b290: 4e 80 00 20 blr
ffc09050 <_IO_Initialize_all_drivers>:
*
* Output Parameters: NONE
*/
void _IO_Initialize_all_drivers( void )
{
ffc09050: 94 21 ff f0 stwu r1,-16(r1)
ffc09054: 7c 08 02 a6 mflr r0
ffc09058: 93 c1 00 08 stw r30,8(r1)
rtems_device_major_number major;
for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )
ffc0905c: 3f c0 00 00 lis r30,0
*
* Output Parameters: NONE
*/
void _IO_Initialize_all_drivers( void )
{
ffc09060: 90 01 00 14 stw r0,20(r1)
rtems_device_major_number major;
for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )
ffc09064: 80 1e 27 a4 lwz r0,10148(r30)
*
* Output Parameters: NONE
*/
void _IO_Initialize_all_drivers( void )
{
ffc09068: 93 e1 00 0c stw r31,12(r1)
rtems_device_major_number major;
for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )
ffc0906c: 2f 80 00 00 cmpwi cr7,r0,0
ffc09070: 41 9e 00 2c beq- cr7,ffc0909c <_IO_Initialize_all_drivers+0x4c><== NEVER TAKEN
ffc09074: 3b de 27 a4 addi r30,r30,10148
ffc09078: 3b e0 00 00 li r31,0
(void) rtems_io_initialize( major, 0, NULL );
ffc0907c: 7f e3 fb 78 mr r3,r31
ffc09080: 38 80 00 00 li r4,0
ffc09084: 38 a0 00 00 li r5,0
ffc09088: 48 00 5c 5d bl ffc0ece4 <rtems_io_initialize>
void _IO_Initialize_all_drivers( void )
{
rtems_device_major_number major;
for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )
ffc0908c: 80 1e 00 00 lwz r0,0(r30)
ffc09090: 3b ff 00 01 addi r31,r31,1
ffc09094: 7f 80 f8 40 cmplw cr7,r0,r31
ffc09098: 41 9d ff e4 bgt+ cr7,ffc0907c <_IO_Initialize_all_drivers+0x2c>
(void) rtems_io_initialize( major, 0, NULL );
}
ffc0909c: 80 01 00 14 lwz r0,20(r1)
ffc090a0: 83 c1 00 08 lwz r30,8(r1)
ffc090a4: 7c 08 03 a6 mtlr r0
ffc090a8: 83 e1 00 0c lwz r31,12(r1)
ffc090ac: 38 21 00 10 addi r1,r1,16
ffc090b0: 4e 80 00 20 blr
ffc090b4 <_IO_Manager_initialization>:
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
ffc090b4: 94 21 ff e0 stwu r1,-32(r1)
ffc090b8: 7c 08 02 a6 mflr r0
uint32_t index;
rtems_driver_address_table *driver_table;
uint32_t drivers_in_table;
uint32_t number_of_drivers;
driver_table = Configuration.Device_driver_table;
ffc090bc: 3d 20 00 00 lis r9,0
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
ffc090c0: 90 01 00 24 stw r0,36(r1)
uint32_t index;
rtems_driver_address_table *driver_table;
uint32_t drivers_in_table;
uint32_t number_of_drivers;
driver_table = Configuration.Device_driver_table;
ffc090c4: 39 29 20 a0 addi r9,r9,8352
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
ffc090c8: 93 a1 00 14 stw r29,20(r1)
ffc090cc: 93 c1 00 18 stw r30,24(r1)
uint32_t drivers_in_table;
uint32_t number_of_drivers;
driver_table = Configuration.Device_driver_table;
drivers_in_table = Configuration.number_of_device_drivers;
number_of_drivers = Configuration.maximum_drivers;
ffc090d0: 83 a9 00 2c lwz r29,44(r9)
rtems_driver_address_table *driver_table;
uint32_t drivers_in_table;
uint32_t number_of_drivers;
driver_table = Configuration.Device_driver_table;
drivers_in_table = Configuration.number_of_device_drivers;
ffc090d4: 83 c9 00 30 lwz r30,48(r9)
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
ffc090d8: 93 e1 00 1c stw r31,28(r1)
/*
* If the user claims there are less drivers than are actually in
* the table, then let's just go with the table's count.
*/
if ( number_of_drivers <= drivers_in_table )
ffc090dc: 7f 9e e8 40 cmplw cr7,r30,r29
* workspace.
*
*/
void _IO_Manager_initialization(void)
{
ffc090e0: 93 61 00 0c stw r27,12(r1)
ffc090e4: 93 81 00 10 stw r28,16(r1)
uint32_t index;
rtems_driver_address_table *driver_table;
uint32_t drivers_in_table;
uint32_t number_of_drivers;
driver_table = Configuration.Device_driver_table;
ffc090e8: 83 e9 00 34 lwz r31,52(r9)
/*
* If the user claims there are less drivers than are actually in
* the table, then let's just go with the table's count.
*/
if ( number_of_drivers <= drivers_in_table )
ffc090ec: 41 9c 00 38 blt- cr7,ffc09124 <_IO_Manager_initialization+0x70>
* If the maximum number of driver is the same as the number in the
* table, then we do not have to copy the driver table. They can't
* register any dynamically.
*/
if ( number_of_drivers == drivers_in_table ) {
_IO_Driver_address_table = driver_table;
ffc090f0: 3d 20 00 00 lis r9,0
ffc090f4: 93 e9 27 a8 stw r31,10152(r9)
_IO_Number_of_drivers = number_of_drivers;
ffc090f8: 3d 20 00 00 lis r9,0
ffc090fc: 93 c9 27 a4 stw r30,10148(r9)
);
for ( index = 0 ; index < drivers_in_table ; index++ )
_IO_Driver_address_table[index] = driver_table[index];
number_of_drivers = drivers_in_table;
}
ffc09100: 80 01 00 24 lwz r0,36(r1)
ffc09104: 83 61 00 0c lwz r27,12(r1)
ffc09108: 7c 08 03 a6 mtlr r0
ffc0910c: 83 81 00 10 lwz r28,16(r1)
ffc09110: 83 a1 00 14 lwz r29,20(r1)
ffc09114: 83 c1 00 18 lwz r30,24(r1)
ffc09118: 83 e1 00 1c lwz r31,28(r1)
ffc0911c: 38 21 00 20 addi r1,r1,32
ffc09120: 4e 80 00 20 blr
* have to allocate a new driver table and copy theirs to it.
*/
_IO_Driver_address_table = (rtems_driver_address_table *)
_Workspace_Allocate_or_fatal_error(
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
ffc09124: 1f 7d 00 18 mulli r27,r29,24
/*
* The application requested extra slots in the driver table, so we
* have to allocate a new driver table and copy theirs to it.
*/
_IO_Driver_address_table = (rtems_driver_address_table *)
ffc09128: 7f 63 db 78 mr r3,r27
ffc0912c: 48 00 39 fd bl ffc0cb28 <_Workspace_Allocate_or_fatal_error>
ffc09130: 3f 80 00 00 lis r28,0
_Workspace_Allocate_or_fatal_error(
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
_IO_Number_of_drivers = number_of_drivers;
ffc09134: 3d 20 00 00 lis r9,0
/*
* The application requested extra slots in the driver table, so we
* have to allocate a new driver table and copy theirs to it.
*/
_IO_Driver_address_table = (rtems_driver_address_table *)
ffc09138: 90 7c 27 a8 stw r3,10152(r28)
_Workspace_Allocate_or_fatal_error(
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
_IO_Number_of_drivers = number_of_drivers;
memset(
ffc0913c: 7f 65 db 78 mr r5,r27
ffc09140: 38 80 00 00 li r4,0
_IO_Driver_address_table = (rtems_driver_address_table *)
_Workspace_Allocate_or_fatal_error(
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
_IO_Number_of_drivers = number_of_drivers;
ffc09144: 93 a9 27 a4 stw r29,10148(r9)
memset(
ffc09148: 48 00 97 59 bl ffc128a0 <memset>
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
ffc0914c: 2f 9e 00 00 cmpwi cr7,r30,0
ffc09150: 41 be ff b0 beq- cr7,ffc09100 <_IO_Manager_initialization+0x4c><== NEVER TAKEN
ffc09154: 7f c9 03 a6 mtctr r30
ffc09158: 81 1c 27 a8 lwz r8,10152(r28)
ffc0915c: 39 40 00 00 li r10,0
_IO_Driver_address_table[index] = driver_table[index];
ffc09160: 7f e9 fb 78 mr r9,r31
ffc09164: 7c a9 50 6e lwzux r5,r9,r10
ffc09168: 7d 68 52 14 add r11,r8,r10
ffc0916c: 80 e9 00 08 lwz r7,8(r9)
ffc09170: 80 09 00 0c lwz r0,12(r9)
ffc09174: 80 c9 00 04 lwz r6,4(r9)
ffc09178: 7c a8 51 2e stwx r5,r8,r10
memset(
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
ffc0917c: 39 4a 00 18 addi r10,r10,24
_IO_Driver_address_table[index] = driver_table[index];
ffc09180: 90 cb 00 04 stw r6,4(r11)
ffc09184: 90 eb 00 08 stw r7,8(r11)
ffc09188: 90 0b 00 0c stw r0,12(r11)
ffc0918c: 80 e9 00 14 lwz r7,20(r9)
ffc09190: 80 09 00 10 lwz r0,16(r9)
ffc09194: 90 eb 00 14 stw r7,20(r11)
ffc09198: 90 0b 00 10 stw r0,16(r11)
memset(
_IO_Driver_address_table, 0,
sizeof( rtems_driver_address_table ) * ( number_of_drivers )
);
for ( index = 0 ; index < drivers_in_table ; index++ )
ffc0919c: 42 00 ff c4 bdnz+ ffc09160 <_IO_Manager_initialization+0xac>
_IO_Driver_address_table[index] = driver_table[index];
number_of_drivers = drivers_in_table;
}
ffc091a0: 80 01 00 24 lwz r0,36(r1)
ffc091a4: 83 61 00 0c lwz r27,12(r1)
ffc091a8: 7c 08 03 a6 mtlr r0
ffc091ac: 83 81 00 10 lwz r28,16(r1)
ffc091b0: 83 a1 00 14 lwz r29,20(r1)
ffc091b4: 83 c1 00 18 lwz r30,24(r1)
ffc091b8: 83 e1 00 1c lwz r31,28(r1)
ffc091bc: 38 21 00 20 addi r1,r1,32
ffc091c0: 4e 80 00 20 blr
ffc09f18 <_Internal_error_Occurred>:
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc09f18: 94 21 ff f0 stwu r1,-16(r1)
ffc09f1c: 7c 08 02 a6 mflr r0
_Internal_errors_What_happened.the_source = the_source;
ffc09f20: 3d 60 00 00 lis r11,0
ffc09f24: 39 2b 2c 90 addi r9,r11,11408
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc09f28: 90 01 00 14 stw r0,20(r1)
_Internal_errors_What_happened.the_source = the_source;
_Internal_errors_What_happened.is_internal = is_internal;
_Internal_errors_What_happened.the_error = the_error;
ffc09f2c: 90 a9 00 08 stw r5,8(r9)
Internal_errors_t the_error
)
{
_Internal_errors_What_happened.the_source = the_source;
_Internal_errors_What_happened.is_internal = is_internal;
ffc09f30: 98 89 00 04 stb r4,4(r9)
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc09f34: 93 e1 00 0c stw r31,12(r1)
ffc09f38: 7c bf 2b 78 mr r31,r5
_Internal_errors_What_happened.the_source = the_source;
ffc09f3c: 90 6b 2c 90 stw r3,11408(r11)
_Internal_errors_What_happened.is_internal = is_internal;
_Internal_errors_What_happened.the_error = the_error;
_User_extensions_Fatal( the_source, is_internal, the_error );
ffc09f40: 48 00 25 cd bl ffc0c50c <_User_extensions_Fatal>
RTEMS_INLINE_ROUTINE void _System_state_Set (
System_state_Codes state
)
{
_System_state_Current = state;
ffc09f44: 38 00 00 05 li r0,5
ffc09f48: 3d 20 00 00 lis r9,0
_System_state_Set( SYSTEM_STATE_FAILED );
_CPU_Fatal_halt( the_error );
ffc09f4c: 7f e3 fb 78 mr r3,r31
ffc09f50: 90 09 27 90 stw r0,10128(r9)
ffc09f54: 4b ff 9a e1 bl ffc03a34 <_BSP_Fatal_error>
ffc09f58: 48 00 00 00 b ffc09f58 <_Internal_error_Occurred+0x40><== NOT EXECUTED
ffc09f78 <_Objects_Allocate>:
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
ffc09f78: 94 21 ff f0 stwu r1,-16(r1)
ffc09f7c: 7c 08 02 a6 mflr r0
ffc09f80: 90 01 00 14 stw r0,20(r1)
* If the application is using the optional manager stubs and
* still attempts to create the object, the information block
* should be all zeroed out because it is in the BSS. So let's
* check that code for this manager is even present.
*/
if ( information->size == 0 )
ffc09f84: 80 03 00 18 lwz r0,24(r3)
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
ffc09f88: 93 e1 00 0c stw r31,12(r1)
ffc09f8c: 7c 7f 1b 78 mr r31,r3
* If the application is using the optional manager stubs and
* still attempts to create the object, the information block
* should be all zeroed out because it is in the BSS. So let's
* check that code for this manager is even present.
*/
if ( information->size == 0 )
ffc09f90: 2f 80 00 00 cmpwi cr7,r0,0
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
ffc09f94: 93 c1 00 08 stw r30,8(r1)
* If the application is using the optional manager stubs and
* still attempts to create the object, the information block
* should be all zeroed out because it is in the BSS. So let's
* check that code for this manager is even present.
*/
if ( information->size == 0 )
ffc09f98: 38 60 00 00 li r3,0
ffc09f9c: 40 9e 00 1c bne- cr7,ffc09fb8 <_Objects_Allocate+0x40> <== ALWAYS TAKEN
information->inactive--;
}
}
return the_object;
}
ffc09fa0: 80 01 00 14 lwz r0,20(r1)
ffc09fa4: 83 c1 00 08 lwz r30,8(r1)
ffc09fa8: 7c 08 03 a6 mtlr r0
ffc09fac: 83 e1 00 0c lwz r31,12(r1)
ffc09fb0: 38 21 00 10 addi r1,r1,16
ffc09fb4: 4e 80 00 20 blr
/*
* OK. The manager should be initialized and configured to have objects.
* With any luck, it is safe to attempt to allocate an object.
*/
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
ffc09fb8: 3b df 00 20 addi r30,r31,32
ffc09fbc: 7f c3 f3 78 mr r3,r30
ffc09fc0: 4b ff f5 05 bl ffc094c4 <_Chain_Get>
if ( information->auto_extend ) {
ffc09fc4: 88 1f 00 12 lbz r0,18(r31)
ffc09fc8: 2f 80 00 00 cmpwi cr7,r0,0
ffc09fcc: 41 be ff d4 beq- cr7,ffc09fa0 <_Objects_Allocate+0x28>
/*
* If the list is empty then we are out of objects and need to
* extend information base.
*/
if ( !the_object ) {
ffc09fd0: 2f 83 00 00 cmpwi cr7,r3,0
ffc09fd4: 41 9e 00 50 beq- cr7,ffc0a024 <_Objects_Allocate+0xac>
}
if ( the_object ) {
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
ffc09fd8: a1 63 00 0a lhz r11,10(r3)
ffc09fdc: a0 1f 00 0a lhz r0,10(r31)
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
ffc09fe0: a1 3f 00 14 lhz r9,20(r31)
}
if ( the_object ) {
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
ffc09fe4: 7c 00 58 50 subf r0,r0,r11
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
information->inactive--;
ffc09fe8: a1 7f 00 2c lhz r11,44(r31)
block = (uint32_t) _Objects_Get_index( the_object->id ) -
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
ffc09fec: 7c 00 4b 96 divwu r0,r0,r9
ffc09ff0: 81 3f 00 30 lwz r9,48(r31)
information->inactive--;
}
}
return the_object;
}
ffc09ff4: 83 c1 00 08 lwz r30,8(r1)
block = (uint32_t) _Objects_Get_index( the_object->id ) -
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
ffc09ff8: 54 00 10 3a rlwinm r0,r0,2,0,29
ffc09ffc: 7d 49 00 2e lwzx r10,r9,r0
information->inactive--;
ffc0a000: 39 6b ff ff addi r11,r11,-1
ffc0a004: b1 7f 00 2c sth r11,44(r31)
block = (uint32_t) _Objects_Get_index( the_object->id ) -
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
information->inactive_per_block[ block ]--;
ffc0a008: 39 4a ff ff addi r10,r10,-1
ffc0a00c: 7d 49 01 2e stwx r10,r9,r0
information->inactive--;
}
}
return the_object;
}
ffc0a010: 80 01 00 14 lwz r0,20(r1)
ffc0a014: 83 e1 00 0c lwz r31,12(r1)
ffc0a018: 38 21 00 10 addi r1,r1,16
ffc0a01c: 7c 08 03 a6 mtlr r0
ffc0a020: 4e 80 00 20 blr
* If the list is empty then we are out of objects and need to
* extend information base.
*/
if ( !the_object ) {
_Objects_Extend_information( information );
ffc0a024: 7f e3 fb 78 mr r3,r31
ffc0a028: 48 00 00 4d bl ffc0a074 <_Objects_Extend_information>
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
ffc0a02c: 7f c3 f3 78 mr r3,r30
ffc0a030: 4b ff f4 95 bl ffc094c4 <_Chain_Get>
}
if ( the_object ) {
ffc0a034: 2c 03 00 00 cmpwi r3,0
ffc0a038: 41 82 ff 68 beq+ ffc09fa0 <_Objects_Allocate+0x28>
ffc0a03c: 4b ff ff 9c b ffc09fd8 <_Objects_Allocate+0x60>
ffc0a074 <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
ffc0a074: 94 21 ff b8 stwu r1,-72(r1)
ffc0a078: 7c 08 02 a6 mflr r0
ffc0a07c: 90 01 00 4c stw r0,76(r1)
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
ffc0a080: 81 63 00 34 lwz r11,52(r3)
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
ffc0a084: 93 a1 00 3c stw r29,60(r1)
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
ffc0a088: 2f 8b 00 00 cmpwi cr7,r11,0
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
ffc0a08c: 93 e1 00 44 stw r31,68(r1)
ffc0a090: 7c 7f 1b 78 mr r31,r3
ffc0a094: 92 a1 00 1c stw r21,28(r1)
ffc0a098: 92 c1 00 20 stw r22,32(r1)
ffc0a09c: 92 e1 00 24 stw r23,36(r1)
ffc0a0a0: 93 01 00 28 stw r24,40(r1)
ffc0a0a4: 93 21 00 2c stw r25,44(r1)
ffc0a0a8: 93 41 00 30 stw r26,48(r1)
ffc0a0ac: 93 61 00 34 stw r27,52(r1)
ffc0a0b0: 93 81 00 38 stw r28,56(r1)
ffc0a0b4: 93 c1 00 40 stw r30,64(r1)
/*
* Search for a free block of indexes. The block variable ends up set
* to block_count + 1 if the table needs to be extended.
*/
minimum_index = _Objects_Get_index( information->minimum_id );
ffc0a0b8: a3 a3 00 0a lhz r29,10(r3)
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
ffc0a0bc: 41 9e 02 9c beq- cr7,ffc0a358 <_Objects_Extend_information+0x2e4>
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
ffc0a0c0: a3 23 00 10 lhz r25,16(r3)
ffc0a0c4: a1 23 00 14 lhz r9,20(r3)
ffc0a0c8: 7e b9 4b 96 divwu r21,r25,r9
for ( ; block < block_count; block++ ) {
ffc0a0cc: 2f 95 00 00 cmpwi cr7,r21,0
ffc0a0d0: 41 9e 02 a0 beq- cr7,ffc0a370 <_Objects_Extend_information+0x2fc><== NEVER TAKEN
if ( information->object_blocks[ block ] == NULL )
ffc0a0d4: 80 0b 00 00 lwz r0,0(r11)
ffc0a0d8: 2f 80 00 00 cmpwi cr7,r0,0
ffc0a0dc: 41 9e 02 94 beq- cr7,ffc0a370 <_Objects_Extend_information+0x2fc><== NEVER TAKEN
ffc0a0e0: 7d 2a 4b 78 mr r10,r9
ffc0a0e4: 7e a9 03 a6 mtctr r21
ffc0a0e8: 7f be eb 78 mr r30,r29
ffc0a0ec: 3b 60 00 00 li r27,0
ffc0a0f0: 48 00 00 10 b ffc0a100 <_Objects_Extend_information+0x8c>
ffc0a0f4: 7c 0b 00 2e lwzx r0,r11,r0
ffc0a0f8: 2f 80 00 00 cmpwi cr7,r0,0
ffc0a0fc: 41 9e 00 14 beq- cr7,ffc0a110 <_Objects_Extend_information+0x9c>
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
ffc0a100: 3b 7b 00 01 addi r27,r27,1
if ( information->object_blocks[ block ] == NULL )
ffc0a104: 57 60 10 3a rlwinm r0,r27,2,0,29
break;
else
index_base += information->allocation_size;
ffc0a108: 7f de 4a 14 add r30,r30,r9
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
ffc0a10c: 42 00 ff e8 bdnz+ ffc0a0f4 <_Objects_Extend_information+0x80>
else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
ffc0a110: 7f 39 52 14 add r25,r25,r10
/*
* We need to limit the number of objects to the maximum number
* representable in the index portion of the object Id. In the
* case of 16-bit Ids, this is only 256 object instances.
*/
if ( maximum > OBJECTS_ID_FINAL_INDEX ) {
ffc0a114: 2b 99 ff ff cmplwi cr7,r25,65535
ffc0a118: 41 9d 01 b8 bgt- cr7,ffc0a2d0 <_Objects_Extend_information+0x25c><== NEVER TAKEN
/*
* Allocate the name table, and the objects and if it fails either return or
* generate a fatal error depending on auto-extending being active.
*/
block_size = information->allocation_size * information->size;
if ( information->auto_extend ) {
ffc0a11c: 88 1f 00 12 lbz r0,18(r31)
/*
* Allocate the name table, and the objects and if it fails either return or
* generate a fatal error depending on auto-extending being active.
*/
block_size = information->allocation_size * information->size;
ffc0a120: 80 7f 00 18 lwz r3,24(r31)
if ( information->auto_extend ) {
ffc0a124: 2f 80 00 00 cmpwi cr7,r0,0
/*
* Allocate the name table, and the objects and if it fails either return or
* generate a fatal error depending on auto-extending being active.
*/
block_size = information->allocation_size * information->size;
ffc0a128: 7c 6a 19 d6 mullw r3,r10,r3
if ( information->auto_extend ) {
ffc0a12c: 40 9e 01 e0 bne- cr7,ffc0a30c <_Objects_Extend_information+0x298>
new_object_block = _Workspace_Allocate( block_size );
if ( !new_object_block )
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
ffc0a130: 48 00 29 f9 bl ffc0cb28 <_Workspace_Allocate_or_fatal_error>
ffc0a134: 7c 7c 1b 78 mr r28,r3
}
/*
* If the index_base is the maximum we need to grow the tables.
*/
if (index_base >= information->maximum ) {
ffc0a138: a0 1f 00 10 lhz r0,16(r31)
ffc0a13c: 7f 9e 00 40 cmplw cr7,r30,r0
ffc0a140: 41 9c 01 08 blt- cr7,ffc0a248 <_Objects_Extend_information+0x1d4>
*/
/*
* Up the block count and maximum
*/
block_count++;
ffc0a144: 3b 55 00 01 addi r26,r21,1
* Allocate the tables and break it up.
*/
block_size = block_count *
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
((maximum + minimum_index) * sizeof(Objects_Control *));
object_blocks = (void**) _Workspace_Allocate( block_size );
ffc0a148: 1c 7a 00 03 mulli r3,r26,3
ffc0a14c: 7c 79 1a 14 add r3,r25,r3
ffc0a150: 7c 63 ea 14 add r3,r3,r29
ffc0a154: 54 63 10 3a rlwinm r3,r3,2,0,29
ffc0a158: 48 00 2a 19 bl ffc0cb70 <_Workspace_Allocate>
if ( !object_blocks ) {
ffc0a15c: 7c 76 1b 79 mr. r22,r3
ffc0a160: 41 82 02 20 beq- ffc0a380 <_Objects_Extend_information+0x30c>
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
ffc0a164: a0 1f 00 10 lhz r0,16(r31)
}
/*
* Break the block into the various sections.
*/
inactive_per_block = (uint32_t *) _Addresses_Add_offset(
ffc0a168: 57 5a 10 3a rlwinm r26,r26,2,0,29
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
ffc0a16c: 7f 16 d2 14 add r24,r22,r26
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
ffc0a170: 7f 9d 00 40 cmplw cr7,r29,r0
ffc0a174: 7f 58 d2 14 add r26,r24,r26
ffc0a178: 41 9c 01 a4 blt- cr7,ffc0a31c <_Objects_Extend_information+0x2a8>
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
ffc0a17c: 2f 9d 00 00 cmpwi cr7,r29,0
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
ffc0a180: 39 20 00 00 li r9,0
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
ffc0a184: 56 b7 10 3a rlwinm r23,r21,2,0,29
ffc0a188: 41 9e 00 20 beq- cr7,ffc0a1a8 <_Objects_Extend_information+0x134><== NEVER TAKEN
local_table[ index ] = NULL;
ffc0a18c: 7f a9 03 a6 mtctr r29
ffc0a190: 38 00 00 00 li r0,0
ffc0a194: 55 2b 10 3a rlwinm r11,r9,2,0,29
ffc0a198: 7c 0b d1 2e stwx r0,r11,r26
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
ffc0a19c: 39 29 00 01 addi r9,r9,1
ffc0a1a0: 42 00 ff f4 bdnz+ ffc0a194 <_Objects_Extend_information+0x120>
ffc0a1a4: 56 b7 10 3a rlwinm r23,r21,2,0,29
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
ffc0a1a8: a1 7f 00 14 lhz r11,20(r31)
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
ffc0a1ac: 38 00 00 00 li r0,0
inactive_per_block[block_count] = 0;
ffc0a1b0: 7c 18 b9 2e stwx r0,r24,r23
for ( index=index_base ;
index < ( information->allocation_size + index_base );
ffc0a1b4: 7d 7e 5a 14 add r11,r30,r11
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
ffc0a1b8: 7f 9e 58 40 cmplw cr7,r30,r11
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
ffc0a1bc: 7c 16 b9 2e stwx r0,r22,r23
inactive_per_block[block_count] = 0;
for ( index=index_base ;
ffc0a1c0: 40 9c 00 30 bge- cr7,ffc0a1f0 <_Objects_Extend_information+0x17c><== NEVER TAKEN
ffc0a1c4: 38 1e 00 01 addi r0,r30,1
ffc0a1c8: 7f 80 58 40 cmplw cr7,r0,r11
ffc0a1cc: 57 c9 10 3a rlwinm r9,r30,2,0,29
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
ffc0a1d0: 7d 7e 58 50 subf r11,r30,r11
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
ffc0a1d4: 7d 3a 4a 14 add r9,r26,r9
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
ffc0a1d8: 7d 69 03 a6 mtctr r11
ffc0a1dc: 38 00 00 00 li r0,0
ffc0a1e0: 41 9d 01 ac bgt- cr7,ffc0a38c <_Objects_Extend_information+0x318><== NEVER TAKEN
ffc0a1e4: 90 09 00 00 stw r0,0(r9)
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
index++ ) {
ffc0a1e8: 39 29 00 04 addi r9,r9,4
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
ffc0a1ec: 42 00 ff f8 bdnz+ ffc0a1e4 <_Objects_Extend_information+0x170>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0a1f0: 7c 00 00 a6 mfmsr r0
ffc0a1f4: 7d 30 42 a6 mfsprg r9,0
ffc0a1f8: 7c 09 48 78 andc r9,r0,r9
ffc0a1fc: 7d 20 01 24 mtmsr r9
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
ffc0a200: 81 7f 00 00 lwz r11,0(r31)
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
ffc0a204: 57 39 04 3e clrlwi r25,r25,16
information->maximum_id = _Objects_Build_id(
ffc0a208: a1 3f 00 04 lhz r9,4(r31)
ffc0a20c: 55 6b c0 0e rlwinm r11,r11,24,0,7
local_table[ index ] = NULL;
}
_ISR_Disable( level );
old_tables = information->object_blocks;
ffc0a210: 80 7f 00 34 lwz r3,52(r31)
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
ffc0a214: 65 6b 00 01 oris r11,r11,1
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
ffc0a218: 93 1f 00 30 stw r24,48(r31)
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
ffc0a21c: 55 29 d8 08 rlwinm r9,r9,27,0,4
ffc0a220: 7d 69 4b 78 or r9,r11,r9
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
ffc0a224: 93 5f 00 1c stw r26,28(r31)
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
ffc0a228: 7d 29 cb 78 or r9,r9,r25
ffc0a22c: 91 3f 00 0c stw r9,12(r31)
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
ffc0a230: b3 3f 00 10 sth r25,16(r31)
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
ffc0a234: 92 df 00 34 stw r22,52(r31)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0a238: 7c 00 01 24 mtmsr r0
information->maximum
);
_ISR_Enable( level );
if ( old_tables )
ffc0a23c: 2f 83 00 00 cmpwi cr7,r3,0
ffc0a240: 41 9e 00 08 beq- cr7,ffc0a248 <_Objects_Extend_information+0x1d4>
_Workspace_Free( old_tables );
ffc0a244: 48 00 29 61 bl ffc0cba4 <_Workspace_Free>
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
ffc0a248: 81 3f 00 34 lwz r9,52(r31)
ffc0a24c: 57 7b 10 3a rlwinm r27,r27,2,0,29
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
ffc0a250: 3b a1 00 08 addi r29,r1,8
ffc0a254: a0 bf 00 14 lhz r5,20(r31)
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
ffc0a258: 7f 89 d9 2e stwx r28,r9,r27
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
ffc0a25c: 7f 84 e3 78 mr r4,r28
ffc0a260: 7f a3 eb 78 mr r3,r29
ffc0a264: 80 df 00 18 lwz r6,24(r31)
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
ffc0a268: 3b 9f 00 20 addi r28,r31,32
information->object_blocks[ block ] = new_object_block;
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
ffc0a26c: 48 00 4a fd bl ffc0ed68 <_Chain_Initialize>
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
ffc0a270: 48 00 00 2c b ffc0a29c <_Objects_Extend_information+0x228>
the_object->id = _Objects_Build_id(
ffc0a274: 81 7f 00 00 lwz r11,0(r31)
ffc0a278: a0 1f 00 04 lhz r0,4(r31)
ffc0a27c: 55 6b c0 0e rlwinm r11,r11,24,0,7
ffc0a280: 65 6b 00 01 oris r11,r11,1
ffc0a284: 54 00 d8 08 rlwinm r0,r0,27,0,4
ffc0a288: 7d 60 03 78 or r0,r11,r0
ffc0a28c: 7c 00 f3 78 or r0,r0,r30
ffc0a290: 90 09 00 08 stw r0,8(r9)
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
ffc0a294: 3b de 00 01 addi r30,r30,1
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
ffc0a298: 4b ff f1 fd bl ffc09494 <_Chain_Append>
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
ffc0a29c: 7f a3 eb 78 mr r3,r29
ffc0a2a0: 4b ff f2 25 bl ffc094c4 <_Chain_Get>
ffc0a2a4: 7c 69 1b 79 mr. r9,r3
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
ffc0a2a8: 7f 83 e3 78 mr r3,r28
ffc0a2ac: 7d 24 4b 78 mr r4,r9
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
ffc0a2b0: 40 82 ff c4 bne+ ffc0a274 <_Objects_Extend_information+0x200>
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc0a2b4: a0 1f 00 14 lhz r0,20(r31)
information->inactive =
ffc0a2b8: a1 3f 00 2c lhz r9,44(r31)
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc0a2bc: 81 7f 00 30 lwz r11,48(r31)
information->inactive =
ffc0a2c0: 7d 20 4a 14 add r9,r0,r9
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc0a2c4: 54 00 04 3e clrlwi r0,r0,16
information->inactive =
ffc0a2c8: b1 3f 00 2c sth r9,44(r31)
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
ffc0a2cc: 7c 0b d9 2e stwx r0,r11,r27
information->inactive =
(Objects_Maximum)(information->inactive + information->allocation_size);
}
ffc0a2d0: 80 01 00 4c lwz r0,76(r1)
ffc0a2d4: 82 a1 00 1c lwz r21,28(r1)
ffc0a2d8: 7c 08 03 a6 mtlr r0
ffc0a2dc: 82 c1 00 20 lwz r22,32(r1)
ffc0a2e0: 82 e1 00 24 lwz r23,36(r1)
ffc0a2e4: 83 01 00 28 lwz r24,40(r1)
ffc0a2e8: 83 21 00 2c lwz r25,44(r1)
ffc0a2ec: 83 41 00 30 lwz r26,48(r1)
ffc0a2f0: 83 61 00 34 lwz r27,52(r1)
ffc0a2f4: 83 81 00 38 lwz r28,56(r1)
ffc0a2f8: 83 a1 00 3c lwz r29,60(r1)
ffc0a2fc: 83 c1 00 40 lwz r30,64(r1)
ffc0a300: 83 e1 00 44 lwz r31,68(r1)
ffc0a304: 38 21 00 48 addi r1,r1,72
ffc0a308: 4e 80 00 20 blr
* Allocate the name table, and the objects and if it fails either return or
* generate a fatal error depending on auto-extending being active.
*/
block_size = information->allocation_size * information->size;
if ( information->auto_extend ) {
new_object_block = _Workspace_Allocate( block_size );
ffc0a30c: 48 00 28 65 bl ffc0cb70 <_Workspace_Allocate>
if ( !new_object_block )
ffc0a310: 7c 7c 1b 79 mr. r28,r3
ffc0a314: 40 82 fe 24 bne+ ffc0a138 <_Objects_Extend_information+0xc4>
ffc0a318: 4b ff ff b8 b ffc0a2d0 <_Objects_Extend_information+0x25c>
* separate parts as size of each block has changed.
*/
memcpy( object_blocks,
information->object_blocks,
block_count * sizeof(void*) );
ffc0a31c: 56 b7 10 3a rlwinm r23,r21,2,0,29
/*
* Copy each section of the table over. This has to be performed as
* separate parts as size of each block has changed.
*/
memcpy( object_blocks,
ffc0a320: 80 9f 00 34 lwz r4,52(r31)
ffc0a324: 7e e5 bb 78 mr r5,r23
ffc0a328: 48 00 84 79 bl ffc127a0 <memcpy>
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
ffc0a32c: 80 9f 00 30 lwz r4,48(r31)
ffc0a330: 7e e5 bb 78 mr r5,r23
ffc0a334: 7f 03 c3 78 mr r3,r24
ffc0a338: 48 00 84 69 bl ffc127a0 <memcpy>
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
ffc0a33c: a0 bf 00 10 lhz r5,16(r31)
ffc0a340: 80 9f 00 1c lwz r4,28(r31)
ffc0a344: 7f 43 d3 78 mr r3,r26
ffc0a348: 7c bd 2a 14 add r5,r29,r5
ffc0a34c: 54 a5 10 3a rlwinm r5,r5,2,0,29
ffc0a350: 48 00 84 51 bl ffc127a0 <memcpy>
ffc0a354: 4b ff fe 54 b ffc0a1a8 <_Objects_Extend_information+0x134>
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
ffc0a358: a3 23 00 10 lhz r25,16(r3)
ffc0a35c: 7f be eb 78 mr r30,r29
ffc0a360: a1 43 00 14 lhz r10,20(r3)
ffc0a364: 3b 60 00 00 li r27,0
ffc0a368: 3a a0 00 00 li r21,0
ffc0a36c: 4b ff fd a4 b ffc0a110 <_Objects_Extend_information+0x9c>
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
if ( information->object_blocks[ block ] == NULL )
ffc0a370: 7d 2a 4b 78 mr r10,r9 <== NOT EXECUTED
ffc0a374: 7f be eb 78 mr r30,r29 <== NOT EXECUTED
ffc0a378: 3b 60 00 00 li r27,0 <== NOT EXECUTED
ffc0a37c: 4b ff fd 94 b ffc0a110 <_Objects_Extend_information+0x9c><== NOT EXECUTED
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
((maximum + minimum_index) * sizeof(Objects_Control *));
object_blocks = (void**) _Workspace_Allocate( block_size );
if ( !object_blocks ) {
_Workspace_Free( new_object_block );
ffc0a380: 7f 83 e3 78 mr r3,r28
ffc0a384: 48 00 28 21 bl ffc0cba4 <_Workspace_Free>
return;
ffc0a388: 4b ff ff 48 b ffc0a2d0 <_Objects_Extend_information+0x25c>
ffc0a38c: 39 60 00 01 li r11,1 <== NOT EXECUTED
ffc0a390: 7d 69 03 a6 mtctr r11 <== NOT EXECUTED
ffc0a394: 4b ff fe 50 b ffc0a1e4 <_Objects_Extend_information+0x170><== NOT EXECUTED
ffc0a480 <_Objects_Get_information>:
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint32_t the_class
)
{
ffc0a480: 94 21 ff f0 stwu r1,-16(r1)
ffc0a484: 7c 08 02 a6 mflr r0
ffc0a488: 93 e1 00 0c stw r31,12(r1)
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
ffc0a48c: 7c 9f 23 79 mr. r31,r4
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint32_t the_class
)
{
ffc0a490: 93 c1 00 08 stw r30,8(r1)
ffc0a494: 7c 7e 1b 78 mr r30,r3
ffc0a498: 90 01 00 14 stw r0,20(r1)
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
ffc0a49c: 40 82 00 20 bne- ffc0a4bc <_Objects_Get_information+0x3c>
* In a multprocessing configuration, we may access remote objects.
* Thus we may have 0 local instances and still have a valid object
* pointer.
*/
#if !defined(RTEMS_MULTIPROCESSING)
if ( info->maximum == 0 )
ffc0a4a0: 38 60 00 00 li r3,0
return NULL;
#endif
return info;
}
ffc0a4a4: 80 01 00 14 lwz r0,20(r1)
ffc0a4a8: 83 c1 00 08 lwz r30,8(r1)
ffc0a4ac: 7c 08 03 a6 mtlr r0
ffc0a4b0: 83 e1 00 0c lwz r31,12(r1)
ffc0a4b4: 38 21 00 10 addi r1,r1,16
ffc0a4b8: 4e 80 00 20 blr
/*
* This call implicitly validates the_api so we do not call
* _Objects_Is_api_valid above here.
*/
the_class_api_maximum = _Objects_API_maximum_class( the_api );
ffc0a4bc: 48 00 4f 69 bl ffc0f424 <_Objects_API_maximum_class>
if ( the_class_api_maximum == 0 )
ffc0a4c0: 2c 03 00 00 cmpwi r3,0
ffc0a4c4: 41 82 ff dc beq+ ffc0a4a0 <_Objects_Get_information+0x20>
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
ffc0a4c8: 7f 9f 18 40 cmplw cr7,r31,r3
ffc0a4cc: 41 9d ff d4 bgt+ cr7,ffc0a4a0 <_Objects_Get_information+0x20>
return NULL;
if ( !_Objects_Information_table[ the_api ] )
ffc0a4d0: 3d 20 00 00 lis r9,0
ffc0a4d4: 57 de 10 3a rlwinm r30,r30,2,0,29
ffc0a4d8: 39 29 2b 80 addi r9,r9,11136
ffc0a4dc: 7d 29 f0 2e lwzx r9,r9,r30
ffc0a4e0: 2f 89 00 00 cmpwi cr7,r9,0
ffc0a4e4: 41 9e ff bc beq+ cr7,ffc0a4a0 <_Objects_Get_information+0x20><== NEVER TAKEN
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
ffc0a4e8: 57 ff 10 3a rlwinm r31,r31,2,0,29
ffc0a4ec: 7c 69 f8 2e lwzx r3,r9,r31
if ( !info )
ffc0a4f0: 2f 83 00 00 cmpwi cr7,r3,0
ffc0a4f4: 41 9e ff b0 beq+ cr7,ffc0a4a4 <_Objects_Get_information+0x24><== NEVER TAKEN
* In a multprocessing configuration, we may access remote objects.
* Thus we may have 0 local instances and still have a valid object
* pointer.
*/
#if !defined(RTEMS_MULTIPROCESSING)
if ( info->maximum == 0 )
ffc0a4f8: a0 03 00 10 lhz r0,16(r3)
ffc0a4fc: 2f 80 00 00 cmpwi cr7,r0,0
ffc0a500: 40 9e ff a4 bne+ cr7,ffc0a4a4 <_Objects_Get_information+0x24>
ffc0a504: 4b ff ff 9c b ffc0a4a0 <_Objects_Get_information+0x20>
ffc0c7ec <_Objects_Get_name_as_string>:
char *_Objects_Get_name_as_string(
Objects_Id id,
size_t length,
char *name
)
{
ffc0c7ec: 94 21 ff d8 stwu r1,-40(r1)
ffc0c7f0: 7c 08 02 a6 mflr r0
ffc0c7f4: 93 c1 00 20 stw r30,32(r1)
char lname[5];
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
ffc0c7f8: 7c 9e 23 79 mr. r30,r4
char *_Objects_Get_name_as_string(
Objects_Id id,
size_t length,
char *name
)
{
ffc0c7fc: 93 e1 00 24 stw r31,36(r1)
ffc0c800: 7c bf 2b 78 mr r31,r5
ffc0c804: 90 01 00 2c stw r0,44(r1)
ffc0c808: 93 a1 00 1c stw r29,28(r1)
char lname[5];
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
ffc0c80c: 40 82 00 28 bne- ffc0c834 <_Objects_Get_name_as_string+0x48>
}
}
*d = '\0';
_Thread_Enable_dispatch();
return name;
ffc0c810: 3b e0 00 00 li r31,0
}
return NULL; /* unreachable path */
}
ffc0c814: 80 01 00 2c lwz r0,44(r1)
ffc0c818: 7f e3 fb 78 mr r3,r31
ffc0c81c: 83 a1 00 1c lwz r29,28(r1)
ffc0c820: 7c 08 03 a6 mtlr r0
ffc0c824: 83 c1 00 20 lwz r30,32(r1)
ffc0c828: 83 e1 00 24 lwz r31,36(r1)
ffc0c82c: 38 21 00 28 addi r1,r1,40
ffc0c830: 4e 80 00 20 blr
Objects_Id tmpId;
if ( length == 0 )
return NULL;
if ( name == NULL )
ffc0c834: 2f 85 00 00 cmpwi cr7,r5,0
ffc0c838: 41 9e ff dc beq+ cr7,ffc0c814 <_Objects_Get_name_as_string+0x28>
return NULL;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
ffc0c83c: 2f 83 00 00 cmpwi cr7,r3,0
ffc0c840: 7c 7d 1b 78 mr r29,r3
ffc0c844: 40 9e 00 10 bne- cr7,ffc0c854 <_Objects_Get_name_as_string+0x68>
ffc0c848: 3d 20 00 00 lis r9,0
ffc0c84c: 81 29 28 18 lwz r9,10264(r9)
ffc0c850: 83 a9 00 08 lwz r29,8(r9)
information = _Objects_Get_information_id( tmpId );
ffc0c854: 7f a3 eb 78 mr r3,r29
ffc0c858: 4b ff fe 75 bl ffc0c6cc <_Objects_Get_information_id>
if ( !information )
ffc0c85c: 2f 83 00 00 cmpwi cr7,r3,0
ffc0c860: 41 9e ff b0 beq+ cr7,ffc0c810 <_Objects_Get_name_as_string+0x24>
return NULL;
the_object = _Objects_Get( information, tmpId, &location );
ffc0c864: 7f a4 eb 78 mr r4,r29
ffc0c868: 38 a1 00 08 addi r5,r1,8
ffc0c86c: 48 00 00 ad bl ffc0c918 <_Objects_Get>
switch ( location ) {
ffc0c870: 80 01 00 08 lwz r0,8(r1)
ffc0c874: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c878: 40 be ff 98 bne- cr7,ffc0c810 <_Objects_Get_name_as_string+0x24>
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
ffc0c87c: 37 de ff ff addic. r30,r30,-1
if ( information->is_string ) {
s = the_object->name.name_p;
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
ffc0c880: 81 23 00 0c lwz r9,12(r3)
lname[ 0 ] = (u32_name >> 24) & 0xff;
lname[ 1 ] = (u32_name >> 16) & 0xff;
lname[ 2 ] = (u32_name >> 8) & 0xff;
lname[ 3 ] = (u32_name >> 0) & 0xff;
lname[ 4 ] = '\0';
ffc0c884: 98 01 00 10 stb r0,16(r1)
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
lname[ 1 ] = (u32_name >> 16) & 0xff;
ffc0c888: 55 2a 84 3e rlwinm r10,r9,16,16,31
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
ffc0c88c: 55 20 46 3e rlwinm r0,r9,8,24,31
lname[ 1 ] = (u32_name >> 16) & 0xff;
ffc0c890: 99 41 00 0d stb r10,13(r1)
lname[ 2 ] = (u32_name >> 8) & 0xff;
ffc0c894: 55 2b c2 3e rlwinm r11,r9,24,8,31
ffc0c898: 99 61 00 0e stb r11,14(r1)
lname[ 3 ] = (u32_name >> 0) & 0xff;
ffc0c89c: 99 21 00 0f stb r9,15(r1)
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
ffc0c8a0: 98 01 00 0c stb r0,12(r1)
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
ffc0c8a4: 41 82 00 6c beq- ffc0c910 <_Objects_Get_name_as_string+0x124><== NEVER TAKEN
ffc0c8a8: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c8ac: 41 9e 00 64 beq- cr7,ffc0c910 <_Objects_Get_name_as_string+0x124>
ffc0c8b0: 3d 00 00 00 lis r8,0
ffc0c8b4: 7f c9 03 a6 mtctr r30
ffc0c8b8: 39 08 27 28 addi r8,r8,10024
ffc0c8bc: 7f e9 fb 78 mr r9,r31
ffc0c8c0: 39 60 00 00 li r11,0
ffc0c8c4: 38 e1 00 0c addi r7,r1,12
ffc0c8c8: 48 00 00 10 b ffc0c8d8 <_Objects_Get_name_as_string+0xec>
ffc0c8cc: 7c 07 58 ae lbzx r0,r7,r11
ffc0c8d0: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c8d4: 41 9e 00 2c beq- cr7,ffc0c900 <_Objects_Get_name_as_string+0x114>
*d = (isprint((unsigned char)*s)) ? *s : '*';
ffc0c8d8: 81 48 00 00 lwz r10,0(r8)
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
ffc0c8dc: 39 6b 00 01 addi r11,r11,1
*d = (isprint((unsigned char)*s)) ? *s : '*';
ffc0c8e0: 7d 4a 02 14 add r10,r10,r0
ffc0c8e4: 89 4a 00 01 lbz r10,1(r10)
ffc0c8e8: 71 46 00 97 andi. r6,r10,151
ffc0c8ec: 40 82 00 08 bne- ffc0c8f4 <_Objects_Get_name_as_string+0x108>
ffc0c8f0: 38 00 00 2a li r0,42
ffc0c8f4: 98 09 00 00 stb r0,0(r9)
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
ffc0c8f8: 39 29 00 01 addi r9,r9,1
ffc0c8fc: 42 00 ff d0 bdnz+ ffc0c8cc <_Objects_Get_name_as_string+0xe0>
*d = (isprint((unsigned char)*s)) ? *s : '*';
}
}
*d = '\0';
ffc0c900: 38 00 00 00 li r0,0
ffc0c904: 98 09 00 00 stb r0,0(r9)
_Thread_Enable_dispatch();
ffc0c908: 48 00 0b 9d bl ffc0d4a4 <_Thread_Enable_dispatch>
return name;
ffc0c90c: 4b ff ff 08 b ffc0c814 <_Objects_Get_name_as_string+0x28>
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
ffc0c910: 7f e9 fb 78 mr r9,r31
ffc0c914: 4b ff ff ec b ffc0c900 <_Objects_Get_name_as_string+0x114>
ffc1e754 <_Objects_Get_no_protection>:
/*
* You can't just extract the index portion or you can get tricked
* by a value between 1 and maximum.
*/
index = id - information->minimum_id + 1;
ffc1e754: 81 23 00 08 lwz r9,8(r3)
if ( information->maximum >= index ) {
ffc1e758: a0 03 00 10 lhz r0,16(r3)
/*
* You can't just extract the index portion or you can get tricked
* by a value between 1 and maximum.
*/
index = id - information->minimum_id + 1;
ffc1e75c: 21 29 00 01 subfic r9,r9,1
ffc1e760: 7d 29 22 14 add r9,r9,r4
if ( information->maximum >= index ) {
ffc1e764: 7f 89 00 40 cmplw cr7,r9,r0
ffc1e768: 41 9d 00 24 bgt- cr7,ffc1e78c <_Objects_Get_no_protection+0x38>
if ( (the_object = information->local_table[ index ]) != NULL ) {
ffc1e76c: 81 63 00 1c lwz r11,28(r3)
ffc1e770: 55 29 10 3a rlwinm r9,r9,2,0,29
ffc1e774: 7c 6b 48 2e lwzx r3,r11,r9
ffc1e778: 2f 83 00 00 cmpwi cr7,r3,0
ffc1e77c: 41 9e 00 10 beq- cr7,ffc1e78c <_Objects_Get_no_protection+0x38><== NEVER TAKEN
*location = OBJECTS_LOCAL;
ffc1e780: 38 00 00 00 li r0,0
ffc1e784: 90 05 00 00 stw r0,0(r5)
return the_object;
ffc1e788: 4e 80 00 20 blr
/*
* This isn't supported or required yet for Global objects so
* if it isn't local, we don't find it.
*/
*location = OBJECTS_ERROR;
ffc1e78c: 38 00 00 01 li r0,1
ffc1e790: 90 05 00 00 stw r0,0(r5)
ffc1e794: 38 60 00 00 li r3,0
return NULL;
}
ffc1e798: 4e 80 00 20 blr
ffc0c0f0 <_Objects_Id_to_name>:
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
ffc0c0f0: 2c 03 00 00 cmpwi r3,0
*/
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
ffc0c0f4: 94 21 ff e0 stwu r1,-32(r1)
ffc0c0f8: 7c 08 02 a6 mflr r0
ffc0c0fc: 93 e1 00 1c stw r31,28(r1)
ffc0c100: 7c 9f 23 78 mr r31,r4
ffc0c104: 90 01 00 24 stw r0,36(r1)
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
ffc0c108: 41 82 00 8c beq- ffc0c194 <_Objects_Id_to_name+0xa4>
ffc0c10c: 7c 64 1b 78 mr r4,r3
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
ffc0c110: 54 89 47 7e rlwinm r9,r4,8,29,31
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
ffc0c114: 38 09 ff ff addi r0,r9,-1
ffc0c118: 2b 80 00 03 cmplwi cr7,r0,3
ffc0c11c: 41 9d 00 60 bgt- cr7,ffc0c17c <_Objects_Id_to_name+0x8c>
the_api = _Objects_Get_API( tmpId );
if ( !_Objects_Is_api_valid( the_api ) )
return OBJECTS_INVALID_ID;
if ( !_Objects_Information_table[ the_api ] )
ffc0c120: 3d 60 00 00 lis r11,0
ffc0c124: 55 29 10 3a rlwinm r9,r9,2,0,29
ffc0c128: 39 6b 2b e0 addi r11,r11,11232
ffc0c12c: 7d 2b 48 2e lwzx r9,r11,r9
ffc0c130: 2f 89 00 00 cmpwi cr7,r9,0
ffc0c134: 41 9e 00 48 beq- cr7,ffc0c17c <_Objects_Id_to_name+0x8c>
return OBJECTS_INVALID_ID;
the_class = _Objects_Get_class( tmpId );
information = _Objects_Information_table[ the_api ][ the_class ];
ffc0c138: 54 80 3e 7a rlwinm r0,r4,7,25,29
ffc0c13c: 7c 69 00 2e lwzx r3,r9,r0
if ( !information )
ffc0c140: 2f 83 00 00 cmpwi cr7,r3,0
ffc0c144: 41 9e 00 38 beq- cr7,ffc0c17c <_Objects_Id_to_name+0x8c><== NEVER TAKEN
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string )
return OBJECTS_INVALID_ID;
#endif
the_object = _Objects_Get( information, tmpId, &ignored_location );
ffc0c148: 38 a1 00 08 addi r5,r1,8
ffc0c14c: 4b ff ff 09 bl ffc0c054 <_Objects_Get>
if ( !the_object )
ffc0c150: 2c 03 00 00 cmpwi r3,0
ffc0c154: 41 82 00 28 beq- ffc0c17c <_Objects_Id_to_name+0x8c>
return OBJECTS_INVALID_ID;
*name = the_object->name;
ffc0c158: 80 03 00 0c lwz r0,12(r3)
ffc0c15c: 90 1f 00 00 stw r0,0(r31)
_Thread_Enable_dispatch();
ffc0c160: 48 00 0b 35 bl ffc0cc94 <_Thread_Enable_dispatch>
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
}
ffc0c164: 80 01 00 24 lwz r0,36(r1)
the_object = _Objects_Get( information, tmpId, &ignored_location );
if ( !the_object )
return OBJECTS_INVALID_ID;
*name = the_object->name;
_Thread_Enable_dispatch();
ffc0c168: 38 60 00 00 li r3,0
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
}
ffc0c16c: 83 e1 00 1c lwz r31,28(r1)
ffc0c170: 7c 08 03 a6 mtlr r0
ffc0c174: 38 21 00 20 addi r1,r1,32
ffc0c178: 4e 80 00 20 blr
ffc0c17c: 80 01 00 24 lwz r0,36(r1)
if ( !the_object )
return OBJECTS_INVALID_ID;
*name = the_object->name;
_Thread_Enable_dispatch();
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
ffc0c180: 38 60 00 03 li r3,3
}
ffc0c184: 83 e1 00 1c lwz r31,28(r1)
ffc0c188: 38 21 00 20 addi r1,r1,32
ffc0c18c: 7c 08 03 a6 mtlr r0
ffc0c190: 4e 80 00 20 blr
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
ffc0c194: 3d 20 00 00 lis r9,0
ffc0c198: 81 29 27 98 lwz r9,10136(r9)
ffc0c19c: 80 89 00 08 lwz r4,8(r9)
ffc0c1a0: 4b ff ff 70 b ffc0c110 <_Objects_Id_to_name+0x20>
ffc0a614 <_Objects_Initialize_information>:
,
bool supports_global,
Objects_Thread_queue_Extract_callout extract
#endif
)
{
ffc0a614: 7c 08 02 a6 mflr r0
ffc0a618: 94 21 ff f8 stwu r1,-8(r1)
information->maximum = 0;
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
ffc0a61c: 3d 40 00 00 lis r10,0
,
bool supports_global,
Objects_Thread_queue_Extract_callout extract
#endif
)
{
ffc0a620: 90 01 00 0c stw r0,12(r1)
/*
* Are we operating in limited or unlimited (e.g. auto-extend) mode.
*/
information->auto_extend =
(maximum & OBJECTS_UNLIMITED_OBJECTS) ? true : false;
ffc0a624: 54 c0 0f fe rlwinm r0,r6,1,31,31
maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;
/*
* Unlimited and maximum of zero is illogical.
*/
if ( information->auto_extend && maximum_per_allocation == 0) {
ffc0a628: 2f 80 00 00 cmpwi cr7,r0,0
information->maximum = 0;
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
ffc0a62c: 39 4a 2b 80 addi r10,r10,11136
uint32_t index;
#endif
information->the_api = the_api;
information->the_class = the_class;
information->size = size;
ffc0a630: 90 e3 00 18 stw r7,24(r3)
information->maximum = 0;
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
ffc0a634: 54 8b 10 3a rlwinm r11,r4,2,0,29
ffc0a638: 7d 6a 58 2e lwzx r11,r10,r11
ffc0a63c: 54 a8 10 3a rlwinm r8,r5,2,0,29
#endif
information->the_api = the_api;
information->the_class = the_class;
information->size = size;
information->local_table = 0;
ffc0a640: 39 40 00 00 li r10,0
uint32_t maximum_per_allocation;
#if defined(RTEMS_MULTIPROCESSING)
uint32_t index;
#endif
information->the_api = the_api;
ffc0a644: 90 83 00 00 stw r4,0(r3)
ffc0a648: 54 c6 00 7f clrlwi. r6,r6,1
information->maximum = 0;
/*
* Register this Object Class in the Object Information Table.
*/
_Objects_Information_table[ the_api ][ the_class ] = information;
ffc0a64c: 7c 6b 41 2e stwx r3,r11,r8
/*
* Set the maximum value to 0. It will be updated when objects are
* added to the inactive set from _Objects_Extend_information()
*/
information->maximum = 0;
ffc0a650: b1 43 00 10 sth r10,16(r3)
#if defined(RTEMS_MULTIPROCESSING)
uint32_t index;
#endif
information->the_api = the_api;
information->the_class = the_class;
ffc0a654: b0 a3 00 04 sth r5,4(r3)
information->size = size;
information->local_table = 0;
ffc0a658: 91 43 00 1c stw r10,28(r3)
information->inactive_per_block = 0;
ffc0a65c: 91 43 00 30 stw r10,48(r3)
information->object_blocks = 0;
ffc0a660: 91 43 00 34 stw r10,52(r3)
information->inactive = 0;
ffc0a664: b1 43 00 2c sth r10,44(r3)
_Objects_Information_table[ the_api ][ the_class ] = information;
/*
* Are we operating in limited or unlimited (e.g. auto-extend) mode.
*/
information->auto_extend =
ffc0a668: 98 03 00 12 stb r0,18(r3)
maximum_per_allocation = maximum & ~OBJECTS_UNLIMITED_OBJECTS;
/*
* Unlimited and maximum of zero is illogical.
*/
if ( information->auto_extend && maximum_per_allocation == 0) {
ffc0a66c: 41 9e 00 08 beq- cr7,ffc0a674 <_Objects_Initialize_information+0x60>
ffc0a670: 41 82 00 84 beq- ffc0a6f4 <_Objects_Initialize_information+0xe0>
/*
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
ffc0a674: 55 20 07 be clrlwi r0,r9,30
}
/*
* The allocation unit is the maximum value
*/
information->allocation_size = maximum_per_allocation;
ffc0a678: b0 c3 00 14 sth r6,20(r3)
/*
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
ffc0a67c: 2f 80 00 00 cmpwi cr7,r0,0
/*
* Calculate minimum and maximum Id's
*/
minimum_index = (maximum_per_allocation == 0) ? 0 : 1;
information->minimum_id =
ffc0a680: 54 84 c0 0e rlwinm r4,r4,24,0,7
ffc0a684: 64 84 00 01 oris r4,r4,1
ffc0a688: 54 a5 d8 08 rlwinm r5,r5,27,0,4
ffc0a68c: 7c 06 00 d0 neg r0,r6
ffc0a690: 54 00 0f fe rlwinm r0,r0,1,31,31
ffc0a694: 7c 85 2b 78 or r5,r4,r5
information->allocation_size = maximum_per_allocation;
/*
* Provide a null local table entry for the case of any empty table.
*/
information->local_table = &null_local_table;
ffc0a698: 3d 60 00 00 lis r11,0
/*
* Calculate minimum and maximum Id's
*/
minimum_index = (maximum_per_allocation == 0) ? 0 : 1;
information->minimum_id =
ffc0a69c: 7c a5 03 78 or r5,r5,r0
information->allocation_size = maximum_per_allocation;
/*
* Provide a null local table entry for the case of any empty table.
*/
information->local_table = &null_local_table;
ffc0a6a0: 39 6b 28 f4 addi r11,r11,10484
/*
* Calculate minimum and maximum Id's
*/
minimum_index = (maximum_per_allocation == 0) ? 0 : 1;
information->minimum_id =
ffc0a6a4: 90 a3 00 08 stw r5,8(r3)
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
ffc0a6a8: 38 09 00 04 addi r0,r9,4
information->allocation_size = maximum_per_allocation;
/*
* Provide a null local table entry for the case of any empty table.
*/
information->local_table = &null_local_table;
ffc0a6ac: 91 63 00 1c stw r11,28(r3)
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
ffc0a6b0: 54 00 00 3a rlwinm r0,r0,0,0,29
/*
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
ffc0a6b4: 41 9e 00 38 beq- cr7,ffc0a6ec <_Objects_Initialize_information+0xd8><== ALWAYS TAKEN
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc0a6b8: 39 63 00 24 addi r11,r3,36
name_length = (name_length + OBJECTS_NAME_ALIGNMENT) &
~(OBJECTS_NAME_ALIGNMENT-1);
information->name_length = name_length;
ffc0a6bc: b0 03 00 38 sth r0,56(r3)
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc0a6c0: 39 23 00 20 addi r9,r3,32
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
ffc0a6c4: 38 00 00 00 li r0,0
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc0a6c8: 91 63 00 20 stw r11,32(r3)
the_chain->permanent_null = NULL;
ffc0a6cc: 90 03 00 24 stw r0,36(r3)
the_chain->last = _Chain_Head(the_chain);
ffc0a6d0: 91 23 00 28 stw r9,40(r3)
_Chain_Initialize_empty( &information->Inactive );
/*
* Initialize objects .. if there are any
*/
if ( maximum_per_allocation ) {
ffc0a6d4: 41 a2 00 08 beq+ ffc0a6dc <_Objects_Initialize_information+0xc8>
/*
* Always have the maximum size available so the current performance
* figures are create are met. If the user moves past the maximum
* number then a performance hit is taken.
*/
_Objects_Extend_information( information );
ffc0a6d8: 4b ff f9 9d bl ffc0a074 <_Objects_Extend_information>
_Chain_Initialize_empty( &information->global_table[ index ] );
}
else
information->global_table = NULL;
#endif
}
ffc0a6dc: 80 01 00 0c lwz r0,12(r1)
ffc0a6e0: 38 21 00 08 addi r1,r1,8
ffc0a6e4: 7c 08 03 a6 mtlr r0
ffc0a6e8: 4e 80 00 20 blr
/*
* Calculate the maximum name length
*/
name_length = maximum_name_length;
if ( name_length & (OBJECTS_NAME_ALIGNMENT-1) )
ffc0a6ec: 7d 20 4b 78 mr r0,r9
ffc0a6f0: 4b ff ff c8 b ffc0a6b8 <_Objects_Initialize_information+0xa4>
/*
* Unlimited and maximum of zero is illogical.
*/
if ( information->auto_extend && maximum_per_allocation == 0) {
_Internal_error_Occurred(
ffc0a6f4: 38 60 00 00 li r3,0
ffc0a6f8: 38 80 00 01 li r4,1
ffc0a6fc: 38 a0 00 14 li r5,20
ffc0a700: 4b ff f8 19 bl ffc09f18 <_Internal_error_Occurred>
ffc0a79c <_Objects_Shrink_information>:
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc0a79c: 94 21 ff e8 stwu r1,-24(r1)
ffc0a7a0: 7c 08 02 a6 mflr r0
ffc0a7a4: 90 01 00 1c stw r0,28(r1)
ffc0a7a8: 93 c1 00 10 stw r30,16(r1)
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
ffc0a7ac: a1 23 00 10 lhz r9,16(r3)
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
ffc0a7b0: a3 c3 00 0a lhz r30,10(r3)
block_count = (information->maximum - index_base) /
ffc0a7b4: a0 03 00 14 lhz r0,20(r3)
ffc0a7b8: 7d 3e 48 50 subf r9,r30,r9
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc0a7bc: 93 81 00 08 stw r28,8(r1)
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
ffc0a7c0: 7d 29 03 96 divwu r9,r9,r0
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc0a7c4: 93 a1 00 0c stw r29,12(r1)
ffc0a7c8: 93 e1 00 14 stw r31,20(r1)
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
ffc0a7cc: 2f 89 00 00 cmpwi cr7,r9,0
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
ffc0a7d0: 7c 7c 1b 78 mr r28,r3
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
ffc0a7d4: 41 9e 00 3c beq- cr7,ffc0a810 <_Objects_Shrink_information+0x74><== NEVER TAKEN
if ( information->inactive_per_block[ block ] ==
ffc0a7d8: 81 63 00 30 lwz r11,48(r3)
ffc0a7dc: 7d 29 03 a6 mtctr r9
information->object_blocks[ block ] = NULL;
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
return;
ffc0a7e0: 3b e0 00 04 li r31,4
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
ffc0a7e4: 81 2b 00 00 lwz r9,0(r11)
ffc0a7e8: 7f 80 48 00 cmpw cr7,r0,r9
ffc0a7ec: 41 9e 00 44 beq- cr7,ffc0a830 <_Objects_Shrink_information+0x94><== NEVER TAKEN
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
ffc0a7f0: 42 40 00 20 bdz- ffc0a810 <_Objects_Shrink_information+0x74>
if ( information->inactive_per_block[ block ] ==
ffc0a7f4: 7d 2b f8 2e lwzx r9,r11,r31
information->inactive -= information->allocation_size;
return;
}
index_base += information->allocation_size;
ffc0a7f8: 7f de 02 14 add r30,r30,r0
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
ffc0a7fc: 7f 80 48 00 cmpw cr7,r0,r9
information->inactive -= information->allocation_size;
return;
}
index_base += information->allocation_size;
ffc0a800: 39 3f 00 04 addi r9,r31,4
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
ffc0a804: 41 9e 00 30 beq- cr7,ffc0a834 <_Objects_Shrink_information+0x98>
ffc0a808: 7d 3f 4b 78 mr r31,r9
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
ffc0a80c: 42 00 ff e8 bdnz+ ffc0a7f4 <_Objects_Shrink_information+0x58>
return;
}
index_base += information->allocation_size;
}
}
ffc0a810: 80 01 00 1c lwz r0,28(r1)
ffc0a814: 83 81 00 08 lwz r28,8(r1)
ffc0a818: 7c 08 03 a6 mtlr r0
ffc0a81c: 83 a1 00 0c lwz r29,12(r1)
ffc0a820: 83 c1 00 10 lwz r30,16(r1)
ffc0a824: 83 e1 00 14 lwz r31,20(r1)
ffc0a828: 38 21 00 18 addi r1,r1,24
ffc0a82c: 4e 80 00 20 blr
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
if ( information->inactive_per_block[ block ] ==
ffc0a830: 3b e0 00 00 li r31,0 <== NOT EXECUTED
information->allocation_size ) {
/*
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) information->Inactive.first;
ffc0a834: 80 7c 00 20 lwz r3,32(r28)
ffc0a838: 48 00 00 10 b ffc0a848 <_Objects_Shrink_information+0xac>
if ((index >= index_base) &&
(index < (index_base + information->allocation_size))) {
_Chain_Extract( &extract_me->Node );
}
}
while ( the_object );
ffc0a83c: 2f 9d 00 00 cmpwi cr7,r29,0
ffc0a840: 7f a3 eb 78 mr r3,r29
ffc0a844: 41 9e 00 34 beq- cr7,ffc0a878 <_Objects_Shrink_information+0xdc>
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) information->Inactive.first;
do {
index = _Objects_Get_index( the_object->id );
ffc0a848: a0 03 00 0a lhz r0,10(r3)
/*
* Get the next node before the node is extracted
*/
extract_me = the_object;
the_object = (Objects_Control *) the_object->Node.next;
ffc0a84c: 83 a3 00 00 lwz r29,0(r3)
if ((index >= index_base) &&
ffc0a850: 7f 80 f0 40 cmplw cr7,r0,r30
ffc0a854: 41 bc ff e8 blt- cr7,ffc0a83c <_Objects_Shrink_information+0xa0>
(index < (index_base + information->allocation_size))) {
ffc0a858: a1 3c 00 14 lhz r9,20(r28)
ffc0a85c: 7d 3e 4a 14 add r9,r30,r9
ffc0a860: 7f 80 48 40 cmplw cr7,r0,r9
ffc0a864: 40 9c ff d8 bge+ cr7,ffc0a83c <_Objects_Shrink_information+0xa0>
_Chain_Extract( &extract_me->Node );
ffc0a868: 48 00 44 d9 bl ffc0ed40 <_Chain_Extract>
}
}
while ( the_object );
ffc0a86c: 2f 9d 00 00 cmpwi cr7,r29,0
ffc0a870: 7f a3 eb 78 mr r3,r29
ffc0a874: 40 9e ff d4 bne+ cr7,ffc0a848 <_Objects_Shrink_information+0xac><== ALWAYS TAKEN
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
ffc0a878: 81 3c 00 34 lwz r9,52(r28)
ffc0a87c: 7c 69 f8 2e lwzx r3,r9,r31
ffc0a880: 48 00 23 25 bl ffc0cba4 <_Workspace_Free>
information->object_blocks[ block ] = NULL;
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
ffc0a884: a1 5c 00 2c lhz r10,44(r28)
ffc0a888: a0 1c 00 14 lhz r0,20(r28)
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
ffc0a88c: 81 3c 00 34 lwz r9,52(r28)
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
ffc0a890: 7c 00 50 50 subf r0,r0,r10
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
information->inactive_per_block[ block ] = 0;
ffc0a894: 81 7c 00 30 lwz r11,48(r28)
information->inactive -= information->allocation_size;
ffc0a898: b0 1c 00 2c sth r0,44(r28)
return;
}
index_base += information->allocation_size;
}
}
ffc0a89c: 80 01 00 1c lwz r0,28(r1)
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
information->inactive_per_block[ block ] = 0;
ffc0a8a0: 7f ab f9 2e stwx r29,r11,r31
return;
}
index_base += information->allocation_size;
}
}
ffc0a8a4: 7c 08 03 a6 mtlr r0
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
ffc0a8a8: 7f a9 f9 2e stwx r29,r9,r31
return;
}
index_base += information->allocation_size;
}
}
ffc0a8ac: 83 81 00 08 lwz r28,8(r1)
ffc0a8b0: 83 a1 00 0c lwz r29,12(r1)
ffc0a8b4: 83 c1 00 10 lwz r30,16(r1)
ffc0a8b8: 83 e1 00 14 lwz r31,20(r1)
ffc0a8bc: 38 21 00 18 addi r1,r1,24
ffc0a8c0: 4e 80 00 20 blr
ffc08c48 <_RTEMS_tasks_Initialize_user_tasks_body>:
*
* Output parameters: NONE
*/
void _RTEMS_tasks_Initialize_user_tasks_body( void )
{
ffc08c48: 94 21 ff d8 stwu r1,-40(r1)
ffc08c4c: 7c 08 02 a6 mflr r0
rtems_initialization_tasks_table *user_tasks;
/*
* Move information into local variables
*/
user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
ffc08c50: 3d 20 00 00 lis r9,0
*
* Output parameters: NONE
*/
void _RTEMS_tasks_Initialize_user_tasks_body( void )
{
ffc08c54: 90 01 00 2c stw r0,44(r1)
rtems_initialization_tasks_table *user_tasks;
/*
* Move information into local variables
*/
user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
ffc08c58: 39 29 20 70 addi r9,r9,8304
*
* Output parameters: NONE
*/
void _RTEMS_tasks_Initialize_user_tasks_body( void )
{
ffc08c5c: 93 e1 00 24 stw r31,36(r1)
rtems_initialization_tasks_table *user_tasks;
/*
* Move information into local variables
*/
user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
ffc08c60: 83 e9 00 2c lwz r31,44(r9)
*
* Output parameters: NONE
*/
void _RTEMS_tasks_Initialize_user_tasks_body( void )
{
ffc08c64: 93 a1 00 1c stw r29,28(r1)
maximum = Configuration_RTEMS_API.number_of_initialization_tasks;
/*
* Verify that we have a set of user tasks to iterate
*/
if ( !user_tasks )
ffc08c68: 2f 9f 00 00 cmpwi cr7,r31,0
*
* Output parameters: NONE
*/
void _RTEMS_tasks_Initialize_user_tasks_body( void )
{
ffc08c6c: 93 81 00 18 stw r28,24(r1)
ffc08c70: 93 c1 00 20 stw r30,32(r1)
/*
* Move information into local variables
*/
user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
maximum = Configuration_RTEMS_API.number_of_initialization_tasks;
ffc08c74: 83 a9 00 28 lwz r29,40(r9)
/*
* Verify that we have a set of user tasks to iterate
*/
if ( !user_tasks )
ffc08c78: 41 9e 00 60 beq- cr7,ffc08cd8 <_RTEMS_tasks_Initialize_user_tasks_body+0x90>
return;
/*
* Now iterate over the initialization tasks and create/start them.
*/
for ( index=0 ; index < maximum ; index++ ) {
ffc08c7c: 2f 9d 00 00 cmpwi cr7,r29,0
ffc08c80: 41 9e 00 58 beq- cr7,ffc08cd8 <_RTEMS_tasks_Initialize_user_tasks_body+0x90><== NEVER TAKEN
ffc08c84: 3b c0 00 00 li r30,0
ffc08c88: 3b 81 00 08 addi r28,r1,8
return_value = rtems_task_create(
ffc08c8c: 80 7f 00 00 lwz r3,0(r31)
ffc08c90: 7f 88 e3 78 mr r8,r28
ffc08c94: 80 9f 00 08 lwz r4,8(r31)
ffc08c98: 80 bf 00 04 lwz r5,4(r31)
ffc08c9c: 80 df 00 14 lwz r6,20(r31)
ffc08ca0: 80 ff 00 0c lwz r7,12(r31)
ffc08ca4: 4b ff fc a9 bl ffc0894c <rtems_task_create>
user_tasks[ index ].stack_size,
user_tasks[ index ].mode_set,
user_tasks[ index ].attribute_set,
&id
);
if ( !rtems_is_status_successful( return_value ) )
ffc08ca8: 2c 03 00 00 cmpwi r3,0
ffc08cac: 40 82 00 4c bne- ffc08cf8 <_RTEMS_tasks_Initialize_user_tasks_body+0xb0>
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
return_value = rtems_task_start(
ffc08cb0: 80 61 00 08 lwz r3,8(r1)
ffc08cb4: 80 9f 00 10 lwz r4,16(r31)
ffc08cb8: 80 bf 00 18 lwz r5,24(r31)
ffc08cbc: 48 00 00 4d bl ffc08d08 <rtems_task_start>
id,
user_tasks[ index ].entry_point,
user_tasks[ index ].argument
);
if ( !rtems_is_status_successful( return_value ) )
ffc08cc0: 2c 03 00 00 cmpwi r3,0
ffc08cc4: 40 82 00 34 bne- ffc08cf8 <_RTEMS_tasks_Initialize_user_tasks_body+0xb0>
return;
/*
* Now iterate over the initialization tasks and create/start them.
*/
for ( index=0 ; index < maximum ; index++ ) {
ffc08cc8: 3b de 00 01 addi r30,r30,1
ffc08ccc: 7f 9d f0 40 cmplw cr7,r29,r30
ffc08cd0: 3b ff 00 1c addi r31,r31,28
ffc08cd4: 41 9d ff b8 bgt+ cr7,ffc08c8c <_RTEMS_tasks_Initialize_user_tasks_body+0x44><== NEVER TAKEN
user_tasks[ index ].argument
);
if ( !rtems_is_status_successful( return_value ) )
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
}
}
ffc08cd8: 80 01 00 2c lwz r0,44(r1)
ffc08cdc: 83 81 00 18 lwz r28,24(r1)
ffc08ce0: 7c 08 03 a6 mtlr r0
ffc08ce4: 83 a1 00 1c lwz r29,28(r1)
ffc08ce8: 83 c1 00 20 lwz r30,32(r1)
ffc08cec: 83 e1 00 24 lwz r31,36(r1)
ffc08cf0: 38 21 00 28 addi r1,r1,40
ffc08cf4: 4e 80 00 20 blr
id,
user_tasks[ index ].entry_point,
user_tasks[ index ].argument
);
if ( !rtems_is_status_successful( return_value ) )
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
ffc08cf8: 7c 65 1b 78 mr r5,r3
ffc08cfc: 38 80 00 01 li r4,1
ffc08d00: 38 60 00 01 li r3,1
ffc08d04: 48 00 12 15 bl ffc09f18 <_Internal_error_Occurred>
ffc0ea4c <_RTEMS_tasks_Post_switch_extension>:
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
ffc0ea4c: 94 21 ff d8 stwu r1,-40(r1)
ffc0ea50: 7c 08 02 a6 mflr r0
ffc0ea54: 90 01 00 2c stw r0,44(r1)
ffc0ea58: 93 e1 00 24 stw r31,36(r1)
RTEMS_API_Control *api;
ASR_Information *asr;
rtems_signal_set signal_set;
Modes_Control prev_mode;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
ffc0ea5c: 83 e3 01 40 lwz r31,320(r3)
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
ffc0ea60: 93 a1 00 1c stw r29,28(r1)
ASR_Information *asr;
rtems_signal_set signal_set;
Modes_Control prev_mode;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
if ( !api )
ffc0ea64: 2f 9f 00 00 cmpwi cr7,r31,0
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
ffc0ea68: 93 c1 00 20 stw r30,32(r1)
ASR_Information *asr;
rtems_signal_set signal_set;
Modes_Control prev_mode;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
if ( !api )
ffc0ea6c: 41 9e 00 80 beq- cr7,ffc0eaec <_RTEMS_tasks_Post_switch_extension+0xa0><== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0ea70: 7c 00 00 a6 mfmsr r0
ffc0ea74: 7d 30 42 a6 mfsprg r9,0
ffc0ea78: 7c 09 48 78 andc r9,r0,r9
ffc0ea7c: 7d 20 01 24 mtmsr r9
asr = &api->Signal;
_ISR_Disable( level );
signal_set = asr->signals_posted;
asr->signals_posted = 0;
ffc0ea80: 39 20 00 00 li r9,0
*/
asr = &api->Signal;
_ISR_Disable( level );
signal_set = asr->signals_posted;
ffc0ea84: 83 df 00 14 lwz r30,20(r31)
asr->signals_posted = 0;
ffc0ea88: 91 3f 00 14 stw r9,20(r31)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0ea8c: 7c 00 01 24 mtmsr r0
_ISR_Enable( level );
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
ffc0ea90: 2f 9e 00 00 cmpwi cr7,r30,0
ffc0ea94: 41 be 00 58 beq+ cr7,ffc0eaec <_RTEMS_tasks_Post_switch_extension+0xa0><== NEVER TAKEN
return;
asr->nest_level += 1;
ffc0ea98: 81 3f 00 1c lwz r9,28(r31)
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
ffc0ea9c: 3b a1 00 08 addi r29,r1,8
ffc0eaa0: 80 7f 00 10 lwz r3,16(r31)
ffc0eaa4: 38 80 00 00 li r4,0
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
return;
asr->nest_level += 1;
ffc0eaa8: 38 09 00 01 addi r0,r9,1
ffc0eaac: 90 1f 00 1c stw r0,28(r31)
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
ffc0eab0: 60 84 ff ff ori r4,r4,65535
ffc0eab4: 7f a5 eb 78 mr r5,r29
ffc0eab8: 48 00 23 b1 bl ffc10e68 <rtems_task_mode>
(*asr->handler)( signal_set );
ffc0eabc: 80 1f 00 0c lwz r0,12(r31)
ffc0eac0: 7f c3 f3 78 mr r3,r30
ffc0eac4: 7c 09 03 a6 mtctr r0
ffc0eac8: 4e 80 04 21 bctrl
asr->nest_level -= 1;
ffc0eacc: 81 3f 00 1c lwz r9,28(r31)
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
ffc0ead0: 38 80 00 00 li r4,0
asr->nest_level += 1;
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
(*asr->handler)( signal_set );
asr->nest_level -= 1;
ffc0ead4: 38 09 ff ff addi r0,r9,-1
ffc0ead8: 90 1f 00 1c stw r0,28(r31)
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
ffc0eadc: 60 84 ff ff ori r4,r4,65535
ffc0eae0: 7f a5 eb 78 mr r5,r29
ffc0eae4: 80 61 00 08 lwz r3,8(r1)
ffc0eae8: 48 00 23 81 bl ffc10e68 <rtems_task_mode>
}
ffc0eaec: 80 01 00 2c lwz r0,44(r1)
ffc0eaf0: 83 a1 00 1c lwz r29,28(r1)
ffc0eaf4: 7c 08 03 a6 mtlr r0
ffc0eaf8: 83 c1 00 20 lwz r30,32(r1)
ffc0eafc: 83 e1 00 24 lwz r31,36(r1)
ffc0eb00: 38 21 00 28 addi r1,r1,40
ffc0eb04: 4e 80 00 20 blr
ffc0e958 <_RTEMS_tasks_Switch_extension>:
/*
* Per Task Variables
*/
tvp = executing->task_variables;
ffc0e958: 81 23 01 50 lwz r9,336(r3)
while (tvp) {
ffc0e95c: 2f 89 00 00 cmpwi cr7,r9,0
ffc0e960: 41 9e 00 24 beq- cr7,ffc0e984 <_RTEMS_tasks_Switch_extension+0x2c>
tvp->tval = *tvp->ptr;
ffc0e964: 81 69 00 04 lwz r11,4(r9)
*tvp->ptr = tvp->gval;
ffc0e968: 80 09 00 08 lwz r0,8(r9)
* Per Task Variables
*/
tvp = executing->task_variables;
while (tvp) {
tvp->tval = *tvp->ptr;
ffc0e96c: 81 4b 00 00 lwz r10,0(r11)
ffc0e970: 91 49 00 0c stw r10,12(r9)
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
ffc0e974: 81 29 00 00 lwz r9,0(r9)
*/
tvp = executing->task_variables;
while (tvp) {
tvp->tval = *tvp->ptr;
*tvp->ptr = tvp->gval;
ffc0e978: 90 0b 00 00 stw r0,0(r11)
/*
* Per Task Variables
*/
tvp = executing->task_variables;
while (tvp) {
ffc0e97c: 2f 89 00 00 cmpwi cr7,r9,0
ffc0e980: 40 9e ff e4 bne+ cr7,ffc0e964 <_RTEMS_tasks_Switch_extension+0xc><== NEVER TAKEN
tvp->tval = *tvp->ptr;
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
ffc0e984: 81 24 01 50 lwz r9,336(r4)
while (tvp) {
ffc0e988: 2f 89 00 00 cmpwi cr7,r9,0
ffc0e98c: 4d 9e 00 20 beqlr cr7
tvp->gval = *tvp->ptr;
ffc0e990: 81 69 00 04 lwz r11,4(r9)
*tvp->ptr = tvp->tval;
ffc0e994: 80 09 00 0c lwz r0,12(r9)
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
while (tvp) {
tvp->gval = *tvp->ptr;
ffc0e998: 81 4b 00 00 lwz r10,0(r11)
ffc0e99c: 91 49 00 08 stw r10,8(r9)
*tvp->ptr = tvp->tval;
tvp = (rtems_task_variable_t *)tvp->next;
ffc0e9a0: 81 29 00 00 lwz r9,0(r9)
}
tvp = heir->task_variables;
while (tvp) {
tvp->gval = *tvp->ptr;
*tvp->ptr = tvp->tval;
ffc0e9a4: 90 0b 00 00 stw r0,0(r11)
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
while (tvp) {
ffc0e9a8: 2f 89 00 00 cmpwi cr7,r9,0
ffc0e9ac: 40 9e ff e4 bne+ cr7,ffc0e990 <_RTEMS_tasks_Switch_extension+0x38><== NEVER TAKEN
ffc0e9b0: 4e 80 00 20 blr
ffc0a268 <_Rate_monotonic_Timeout>:
void _Rate_monotonic_Timeout(
Objects_Id id,
void *ignored
)
{
ffc0a268: 94 21 ff e0 stwu r1,-32(r1)
ffc0a26c: 7c 08 02 a6 mflr r0
ffc0a270: 7c 64 1b 78 mr r4,r3
ffc0a274: 3c 60 00 00 lis r3,0
ffc0a278: 90 01 00 24 stw r0,36(r1)
ffc0a27c: 38 63 2b ec addi r3,r3,11244
ffc0a280: 38 a1 00 08 addi r5,r1,8
ffc0a284: 93 e1 00 1c stw r31,28(r1)
ffc0a288: 48 00 26 29 bl ffc0c8b0 <_Objects_Get>
/*
* When we get here, the Timer is already off the chain so we do not
* have to worry about that -- hence no _Watchdog_Remove().
*/
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
ffc0a28c: 80 01 00 08 lwz r0,8(r1)
ffc0a290: 7c 7f 1b 78 mr r31,r3
ffc0a294: 2f 80 00 00 cmpwi cr7,r0,0
ffc0a298: 40 9e 00 48 bne- cr7,ffc0a2e0 <_Rate_monotonic_Timeout+0x78><== NEVER TAKEN
case OBJECTS_LOCAL:
the_thread = the_period->owner;
ffc0a29c: 80 63 00 40 lwz r3,64(r3)
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
ffc0a2a0: 80 03 00 10 lwz r0,16(r3)
ffc0a2a4: 70 09 40 00 andi. r9,r0,16384
ffc0a2a8: 41 82 00 14 beq- ffc0a2bc <_Rate_monotonic_Timeout+0x54>
the_thread->Wait.id == the_period->Object.id ) {
ffc0a2ac: 81 23 00 20 lwz r9,32(r3)
ffc0a2b0: 80 1f 00 08 lwz r0,8(r31)
ffc0a2b4: 7f 89 00 00 cmpw cr7,r9,r0
ffc0a2b8: 41 9e 00 68 beq- cr7,ffc0a320 <_Rate_monotonic_Timeout+0xb8>
_Thread_Unblock( the_thread );
_Rate_monotonic_Initiate_statistics( the_period );
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
ffc0a2bc: 80 1f 00 38 lwz r0,56(r31)
ffc0a2c0: 2f 80 00 01 cmpwi cr7,r0,1
ffc0a2c4: 41 9e 00 30 beq- cr7,ffc0a2f4 <_Rate_monotonic_Timeout+0x8c>
_Rate_monotonic_Initiate_statistics( the_period );
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else
the_period->state = RATE_MONOTONIC_EXPIRED;
ffc0a2c8: 38 00 00 04 li r0,4
ffc0a2cc: 90 1f 00 38 stw r0,56(r31)
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
ffc0a2d0: 3d 20 00 00 lis r9,0
ffc0a2d4: 81 69 27 b0 lwz r11,10160(r9)
ffc0a2d8: 38 0b ff ff addi r0,r11,-1
ffc0a2dc: 90 09 27 b0 stw r0,10160(r9)
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
ffc0a2e0: 80 01 00 24 lwz r0,36(r1)
ffc0a2e4: 83 e1 00 1c lwz r31,28(r1)
ffc0a2e8: 38 21 00 20 addi r1,r1,32
ffc0a2ec: 7c 08 03 a6 mtlr r0
ffc0a2f0: 4e 80 00 20 blr
_Rate_monotonic_Initiate_statistics( the_period );
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;
ffc0a2f4: 38 00 00 03 li r0,3
ffc0a2f8: 90 1f 00 38 stw r0,56(r31)
_Rate_monotonic_Initiate_statistics( the_period );
ffc0a2fc: 7f e3 fb 78 mr r3,r31
ffc0a300: 4b ff f6 75 bl ffc09974 <_Rate_monotonic_Initiate_statistics>
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
ffc0a304: 80 1f 00 3c lwz r0,60(r31)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc0a308: 3c 60 00 00 lis r3,0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
ffc0a30c: 90 1f 00 1c stw r0,28(r31)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc0a310: 38 63 2d e8 addi r3,r3,11752
ffc0a314: 38 9f 00 10 addi r4,r31,16
ffc0a318: 48 00 49 49 bl ffc0ec60 <_Watchdog_Insert>
ffc0a31c: 4b ff ff b4 b ffc0a2d0 <_Rate_monotonic_Timeout+0x68>
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
ffc0a320: 3c 80 10 03 lis r4,4099
ffc0a324: 60 84 ff f8 ori r4,r4,65528
ffc0a328: 48 00 2c 01 bl ffc0cf28 <_Thread_Clear_state>
ffc0a32c: 4b ff ff d0 b ffc0a2fc <_Rate_monotonic_Timeout+0x94>
ffc09a7c <_TOD_Tickle_ticks>:
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
ffc09a7c: 94 21 ff d8 stwu r1,-40(r1)
ffc09a80: 7c 08 02 a6 mflr r0
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
ffc09a84: 3d 20 00 00 lis r9,0
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
ffc09a88: 90 01 00 2c stw r0,44(r1)
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
ffc09a8c: 3c 60 00 00 lis r3,0
ffc09a90: 38 63 27 38 addi r3,r3,10040
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
ffc09a94: 80 09 20 ac lwz r0,8364(r9)
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
ffc09a98: 3d 20 00 00 lis r9,0
ffc09a9c: 81 69 27 84 lwz r11,10116(r9)
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
ffc09aa0: 1c 00 03 e8 mulli r0,r0,1000
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
ffc09aa4: 93 e1 00 24 stw r31,36(r1)
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
ffc09aa8: 39 6b 00 01 addi r11,r11,1
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
ffc09aac: 90 01 00 0c stw r0,12(r1)
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
ffc09ab0: 3b e1 00 08 addi r31,r1,8
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
ffc09ab4: 91 69 27 84 stw r11,10116(r9)
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
ffc09ab8: 7f e4 fb 78 mr r4,r31
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
ffc09abc: 39 20 00 00 li r9,0
ffc09ac0: 91 21 00 08 stw r9,8(r1)
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
ffc09ac4: 48 00 27 a5 bl ffc0c268 <_Timespec_Add_to>
/* we do not care how much the uptime changed */
/* Update the timespec format TOD */
seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );
ffc09ac8: 3c 60 00 00 lis r3,0
ffc09acc: 38 63 27 4c addi r3,r3,10060
ffc09ad0: 7f e4 fb 78 mr r4,r31
ffc09ad4: 48 00 27 95 bl ffc0c268 <_Timespec_Add_to>
while ( seconds ) {
ffc09ad8: 7c 60 1b 79 mr. r0,r3
ffc09adc: 90 01 00 18 stw r0,24(r1)
ffc09ae0: 41 82 00 24 beq- ffc09b04 <_TOD_Tickle_ticks+0x88>
ffc09ae4: 3f e0 00 00 lis r31,0
ffc09ae8: 3b ff 2c 9c addi r31,r31,11420
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void )
{
_Watchdog_Tickle( &_Watchdog_Seconds_chain );
ffc09aec: 7f e3 fb 78 mr r3,r31
ffc09af0: 48 00 2f 61 bl ffc0ca50 <_Watchdog_Tickle>
ffc09af4: 80 01 00 18 lwz r0,24(r1)
ffc09af8: 35 20 ff ff addic. r9,r0,-1
ffc09afc: 91 21 00 18 stw r9,24(r1)
ffc09b00: 40 82 ff ec bne+ ffc09aec <_TOD_Tickle_ticks+0x70> <== NEVER TAKEN
_Watchdog_Tickle_seconds();
seconds--;
}
}
ffc09b04: 80 01 00 2c lwz r0,44(r1)
ffc09b08: 83 e1 00 24 lwz r31,36(r1)
ffc09b0c: 38 21 00 28 addi r1,r1,40
ffc09b10: 7c 08 03 a6 mtlr r0
ffc09b14: 4e 80 00 20 blr
ffc09a84 <_TOD_Validate>:
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
ffc09a84: 2c 03 00 00 cmpwi r3,0
{
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
ffc09a88: 3d 20 00 00 lis r9,0
ffc09a8c: 80 09 20 cc lwz r0,8396(r9)
if ((!the_tod) ||
ffc09a90: 41 82 00 98 beq- ffc09b28 <_TOD_Validate+0xa4> <== NEVER TAKEN
ffc09a94: 3d 20 00 0f lis r9,15
ffc09a98: 61 29 42 40 ori r9,r9,16960
ffc09a9c: 7c 09 03 96 divwu r0,r9,r0
(the_tod->ticks >= ticks_per_second) ||
ffc09aa0: 81 23 00 18 lwz r9,24(r3)
ffc09aa4: 7f 80 48 40 cmplw cr7,r0,r9
ffc09aa8: 40 9d 00 80 ble- cr7,ffc09b28 <_TOD_Validate+0xa4>
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
ffc09aac: 80 03 00 14 lwz r0,20(r3)
ffc09ab0: 2b 80 00 3b cmplwi cr7,r0,59
ffc09ab4: 41 9d 00 74 bgt- cr7,ffc09b28 <_TOD_Validate+0xa4>
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
ffc09ab8: 80 03 00 10 lwz r0,16(r3)
ffc09abc: 2b 80 00 3b cmplwi cr7,r0,59
ffc09ac0: 41 9d 00 68 bgt- cr7,ffc09b28 <_TOD_Validate+0xa4>
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
ffc09ac4: 80 03 00 0c lwz r0,12(r3)
ffc09ac8: 2b 80 00 17 cmplwi cr7,r0,23
ffc09acc: 41 9d 00 5c bgt- cr7,ffc09b28 <_TOD_Validate+0xa4>
(the_tod->month == 0) ||
ffc09ad0: 81 23 00 04 lwz r9,4(r3)
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
ffc09ad4: 2f 89 00 00 cmpwi cr7,r9,0
ffc09ad8: 41 9e 00 50 beq- cr7,ffc09b28 <_TOD_Validate+0xa4> <== NEVER TAKEN
ffc09adc: 2b 89 00 0c cmplwi cr7,r9,12
ffc09ae0: 41 9d 00 48 bgt- cr7,ffc09b28 <_TOD_Validate+0xa4>
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
(the_tod->month == 0) ||
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
ffc09ae4: 80 03 00 00 lwz r0,0(r3)
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
ffc09ae8: 2b 80 07 c3 cmplwi cr7,r0,1987
ffc09aec: 40 9d 00 3c ble- cr7,ffc09b28 <_TOD_Validate+0xa4>
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
(the_tod->month == 0) ||
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
ffc09af0: 81 63 00 08 lwz r11,8(r3)
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
ffc09af4: 2f 8b 00 00 cmpwi cr7,r11,0
ffc09af8: 41 9e 00 30 beq- cr7,ffc09b28 <_TOD_Validate+0xa4> <== NEVER TAKEN
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
return false;
if ( (the_tod->year % 4) == 0 )
ffc09afc: 70 0a 00 03 andi. r10,r0,3
ffc09b00: 40 82 00 30 bne- ffc09b30 <_TOD_Validate+0xac>
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
ffc09b04: 38 09 00 0d addi r0,r9,13
ffc09b08: 3d 20 ff c2 lis r9,-62
ffc09b0c: 54 00 10 3a rlwinm r0,r0,2,0,29
ffc09b10: 39 29 41 44 addi r9,r9,16708
ffc09b14: 7c 69 00 2e lwzx r3,r9,r0
* false - if the the_tod is invalid
*
* NOTE: This routine only works for leap-years through 2099.
*/
bool _TOD_Validate(
ffc09b18: 7c 6b 18 10 subfc r3,r11,r3
ffc09b1c: 38 60 00 00 li r3,0
ffc09b20: 7c 63 19 14 adde r3,r3,r3
ffc09b24: 4e 80 00 20 blr
ffc09b28: 38 60 00 00 li r3,0
if ( the_tod->day > days_in_month )
return false;
return true;
}
ffc09b2c: 4e 80 00 20 blr
return false;
if ( (the_tod->year % 4) == 0 )
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
else
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
ffc09b30: 3d 40 ff c2 lis r10,-62
ffc09b34: 55 29 10 3a rlwinm r9,r9,2,0,29
ffc09b38: 39 4a 41 44 addi r10,r10,16708
ffc09b3c: 7c 6a 48 2e lwzx r3,r10,r9
ffc09b40: 4b ff ff d8 b ffc09b18 <_TOD_Validate+0x94>
ffc0a9f8 <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
ffc0a9f8: 94 21 ff e8 stwu r1,-24(r1)
ffc0a9fc: 7c 08 02 a6 mflr r0
ffc0aa00: 90 01 00 1c stw r0,28(r1)
ffc0aa04: 93 e1 00 14 stw r31,20(r1)
ffc0aa08: 7c 7f 1b 78 mr r31,r3
ffc0aa0c: 93 81 00 08 stw r28,8(r1)
ffc0aa10: 7c bc 2b 78 mr r28,r5
ffc0aa14: 93 a1 00 0c stw r29,12(r1)
ffc0aa18: 93 c1 00 10 stw r30,16(r1)
ffc0aa1c: 7c 9e 23 78 mr r30,r4
*/
/*
* Save original state
*/
original_state = the_thread->current_state;
ffc0aa20: 83 a3 00 10 lwz r29,16(r3)
/*
* Set a transient state for the thread so it is pulled off the Ready chains.
* This will prevent it from being scheduled no matter what happens in an
* ISR.
*/
_Thread_Set_transient( the_thread );
ffc0aa24: 48 00 13 8d bl ffc0bdb0 <_Thread_Set_transient>
/*
* Do not bother recomputing all the priority related information if
* we are not REALLY changing priority.
*/
if ( the_thread->current_priority != new_priority )
ffc0aa28: 80 1f 00 14 lwz r0,20(r31)
ffc0aa2c: 7f 80 f0 00 cmpw cr7,r0,r30
ffc0aa30: 41 9e 00 10 beq- cr7,ffc0aa40 <_Thread_Change_priority+0x48>
_Thread_Set_priority( the_thread, new_priority );
ffc0aa34: 7f c4 f3 78 mr r4,r30
ffc0aa38: 7f e3 fb 78 mr r3,r31
ffc0aa3c: 48 00 11 f5 bl ffc0bc30 <_Thread_Set_priority>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0aa40: 7d 20 00 a6 mfmsr r9
ffc0aa44: 7c 10 42 a6 mfsprg r0,0
ffc0aa48: 7d 20 00 78 andc r0,r9,r0
ffc0aa4c: 7c 00 01 24 mtmsr r0
/*
* If the thread has more than STATES_TRANSIENT set, then it is blocked,
* If it is blocked on a thread queue, then we need to requeue it.
*/
state = the_thread->current_state;
ffc0aa50: 80 1f 00 10 lwz r0,16(r31)
if ( state != STATES_TRANSIENT ) {
ffc0aa54: 2f 80 00 04 cmpwi cr7,r0,4
ffc0aa58: 41 9e 00 88 beq- cr7,ffc0aae0 <_Thread_Change_priority+0xe8>
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
ffc0aa5c: 73 ab 00 04 andi. r11,r29,4
ffc0aa60: 41 82 00 38 beq- ffc0aa98 <_Thread_Change_priority+0xa0><== ALWAYS TAKEN
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0aa64: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
_ISR_Enable( level );
if ( _States_Is_waiting_on_thread_queue( state ) ) {
ffc0aa68: 3d 20 00 03 lis r9,3 <== NOT EXECUTED
ffc0aa6c: 61 29 be e0 ori r9,r9,48864 <== NOT EXECUTED
ffc0aa70: 7c 0b 48 39 and. r11,r0,r9 <== NOT EXECUTED
ffc0aa74: 40 82 00 40 bne- ffc0aab4 <_Thread_Change_priority+0xbc><== NOT EXECUTED
if ( !_Thread_Is_executing_also_the_heir() &&
_Thread_Executing->is_preemptible )
_Context_Switch_necessary = true;
_ISR_Enable( level );
}
ffc0aa78: 80 01 00 1c lwz r0,28(r1)
ffc0aa7c: 83 81 00 08 lwz r28,8(r1)
ffc0aa80: 7c 08 03 a6 mtlr r0
ffc0aa84: 83 a1 00 0c lwz r29,12(r1)
ffc0aa88: 83 c1 00 10 lwz r30,16(r1)
ffc0aa8c: 83 e1 00 14 lwz r31,20(r1)
ffc0aa90: 38 21 00 18 addi r1,r1,24
ffc0aa94: 4e 80 00 20 blr
*/
state = the_thread->current_state;
if ( state != STATES_TRANSIENT ) {
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
ffc0aa98: 54 0b 07 b8 rlwinm r11,r0,0,30,28
ffc0aa9c: 91 7f 00 10 stw r11,16(r31)
ffc0aaa0: 7d 20 01 24 mtmsr r9
_ISR_Enable( level );
if ( _States_Is_waiting_on_thread_queue( state ) ) {
ffc0aaa4: 3d 20 00 03 lis r9,3
ffc0aaa8: 61 29 be e0 ori r9,r9,48864
ffc0aaac: 7c 0b 48 39 and. r11,r0,r9
ffc0aab0: 41 82 ff c8 beq+ ffc0aa78 <_Thread_Change_priority+0x80>
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
ffc0aab4: 80 7f 00 44 lwz r3,68(r31)
ffc0aab8: 7f e4 fb 78 mr r4,r31
ffc0aabc: 48 00 10 7d bl ffc0bb38 <_Thread_queue_Requeue>
if ( !_Thread_Is_executing_also_the_heir() &&
_Thread_Executing->is_preemptible )
_Context_Switch_necessary = true;
_ISR_Enable( level );
}
ffc0aac0: 80 01 00 1c lwz r0,28(r1)
ffc0aac4: 83 81 00 08 lwz r28,8(r1)
ffc0aac8: 7c 08 03 a6 mtlr r0
ffc0aacc: 83 a1 00 0c lwz r29,12(r1)
ffc0aad0: 83 c1 00 10 lwz r30,16(r1)
ffc0aad4: 83 e1 00 14 lwz r31,20(r1)
ffc0aad8: 38 21 00 18 addi r1,r1,24
ffc0aadc: 4e 80 00 20 blr
}
return;
}
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) ) {
ffc0aae0: 73 bd 00 04 andi. r29,r29,4
ffc0aae4: 3d 40 00 00 lis r10,0
ffc0aae8: 40 82 00 4c bne- ffc0ab34 <_Thread_Change_priority+0x13c><== NEVER TAKEN
* Interrupts are STILL disabled.
* We now know the thread will be in the READY state when we remove
* the TRANSIENT state. So we have to place it on the appropriate
* Ready Queue with interrupts off.
*/
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
ffc0aaec: 93 bf 00 10 stw r29,16(r31)
_Priority_Add_to_bit_map( &the_thread->Priority_map );
if ( prepend_it )
ffc0aaf0: 2f 9c 00 00 cmpwi cr7,r28,0
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
ffc0aaf4: 81 7f 00 90 lwz r11,144(r31)
ffc0aaf8: 80 1f 00 98 lwz r0,152(r31)
ffc0aafc: 81 0b 00 00 lwz r8,0(r11)
ffc0ab00: 7d 00 03 78 or r0,r8,r0
ffc0ab04: 90 0b 00 00 stw r0,0(r11)
_Priority_Major_bit_map |= the_priority_map->ready_major;
ffc0ab08: 81 6a 27 60 lwz r11,10080(r10)
ffc0ab0c: 80 1f 00 94 lwz r0,148(r31)
ffc0ab10: 7d 60 03 78 or r0,r11,r0
ffc0ab14: 90 0a 27 60 stw r0,10080(r10)
ffc0ab18: 41 9e 00 b8 beq- cr7,ffc0abd0 <_Thread_Change_priority+0x1d8>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Head(
Chain_Control *the_chain
)
{
return (Chain_Node *) the_chain;
ffc0ab1c: 81 7f 00 8c lwz r11,140(r31)
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
ffc0ab20: 81 0b 00 00 lwz r8,0(r11)
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
ffc0ab24: 91 7f 00 04 stw r11,4(r31)
before_node = after_node->next;
after_node->next = the_node;
ffc0ab28: 93 eb 00 00 stw r31,0(r11)
the_node->next = before_node;
before_node->previous = the_node;
ffc0ab2c: 93 e8 00 04 stw r31,4(r8)
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
ffc0ab30: 91 1f 00 00 stw r8,0(r31)
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0ab34: 7c 00 00 a6 mfmsr r0
ffc0ab38: 7d 20 01 24 mtmsr r9
ffc0ab3c: 7c 00 01 24 mtmsr r0
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
_Thread_Ready_chain[ _Priority_Get_highest() ].first;
ffc0ab40: 3d 00 00 00 lis r8,0
RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void )
{
Priority_Bit_map_control minor;
Priority_Bit_map_control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
ffc0ab44: 81 6a 27 60 lwz r11,10080(r10)
ffc0ab48: 80 a8 27 20 lwz r5,10016(r8)
ffc0ab4c: 7d 66 00 34 cntlzw r6,r11
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
ffc0ab50: 3c e0 00 00 lis r7,0
RTEMS_INLINE_ROUTINE Priority_Control _Priority_Get_highest( void )
{
Priority_Bit_map_control minor;
Priority_Bit_map_control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
ffc0ab54: 91 6a 27 60 stw r11,10080(r10)
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
ffc0ab58: 38 e7 2d 00 addi r7,r7,11520
ffc0ab5c: 54 c8 10 3a rlwinm r8,r6,2,0,29
ffc0ab60: 7c 07 40 2e lwzx r0,r7,r8
ffc0ab64: 7c 0b 00 34 cntlzw r11,r0
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
ffc0ab68: 54 c6 20 36 rlwinm r6,r6,4,0,27
ffc0ab6c: 7c 07 41 2e stwx r0,r7,r8
ffc0ab70: 7c c6 5a 14 add r6,r6,r11
ffc0ab74: 1c c6 00 0c mulli r6,r6,12
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
ffc0ab78: 3d 60 00 00 lis r11,0
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
ffc0ab7c: 7c 05 30 2e lwzx r0,r5,r6
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
ffc0ab80: 81 6b 27 6c lwz r11,10092(r11)
* ready thread.
*/
RTEMS_INLINE_ROUTINE void _Thread_Calculate_heir( void )
{
_Thread_Heir = (Thread_Control *)
ffc0ab84: 3d 40 00 00 lis r10,0
ffc0ab88: 90 0a 27 48 stw r0,10056(r10)
* We altered the set of thread priorities. So let's figure out
* who is the heir and if we need to switch to them.
*/
_Thread_Calculate_heir();
if ( !_Thread_Is_executing_also_the_heir() &&
ffc0ab8c: 7f 80 58 00 cmpw cr7,r0,r11
ffc0ab90: 41 9e 00 1c beq- cr7,ffc0abac <_Thread_Change_priority+0x1b4>
_Thread_Executing->is_preemptible )
ffc0ab94: 88 0b 00 75 lbz r0,117(r11)
ffc0ab98: 2f 80 00 00 cmpwi cr7,r0,0
ffc0ab9c: 41 9e 00 10 beq- cr7,ffc0abac <_Thread_Change_priority+0x1b4>
_Context_Switch_necessary = true;
ffc0aba0: 38 00 00 01 li r0,1
ffc0aba4: 3d 60 00 00 lis r11,0
ffc0aba8: 98 0b 27 7c stb r0,10108(r11)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0abac: 7d 20 01 24 mtmsr r9
_ISR_Enable( level );
}
ffc0abb0: 80 01 00 1c lwz r0,28(r1)
ffc0abb4: 83 81 00 08 lwz r28,8(r1)
ffc0abb8: 7c 08 03 a6 mtlr r0
ffc0abbc: 83 a1 00 0c lwz r29,12(r1)
ffc0abc0: 83 c1 00 10 lwz r30,16(r1)
ffc0abc4: 83 e1 00 14 lwz r31,20(r1)
ffc0abc8: 38 21 00 18 addi r1,r1,24
ffc0abcc: 4e 80 00 20 blr
_Priority_Add_to_bit_map( &the_thread->Priority_map );
if ( prepend_it )
_Chain_Prepend_unprotected( the_thread->ready, &the_thread->Object.Node );
else
_Chain_Append_unprotected( the_thread->ready, &the_thread->Object.Node );
ffc0abd0: 81 7f 00 8c lwz r11,140(r31)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
ffc0abd4: 38 0b 00 04 addi r0,r11,4
ffc0abd8: 90 1f 00 00 stw r0,0(r31)
old_last_node = the_chain->last;
ffc0abdc: 81 0b 00 08 lwz r8,8(r11)
the_chain->last = the_node;
ffc0abe0: 93 eb 00 08 stw r31,8(r11)
old_last_node->next = the_node;
the_node->previous = old_last_node;
ffc0abe4: 91 1f 00 04 stw r8,4(r31)
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
ffc0abe8: 93 e8 00 00 stw r31,0(r8)
ffc0abec: 4b ff ff 48 b ffc0ab34 <_Thread_Change_priority+0x13c>
ffc0abf0 <_Thread_Clear_state>:
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0abf0: 7d 20 00 a6 mfmsr r9
ffc0abf4: 7c 10 42 a6 mfsprg r0,0
ffc0abf8: 7d 20 00 78 andc r0,r9,r0
ffc0abfc: 7c 00 01 24 mtmsr r0
{
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
current_state = the_thread->current_state;
ffc0ac00: 80 03 00 10 lwz r0,16(r3)
if ( current_state & state ) {
ffc0ac04: 7c 8b 00 39 and. r11,r4,r0
ffc0ac08: 41 82 00 a0 beq- ffc0aca8 <_Thread_Clear_state+0xb8>
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
ffc0ac0c: 7c 00 20 78 andc r0,r0,r4
current_state =
the_thread->current_state = _States_Clear( state, current_state );
if ( _States_Is_ready( current_state ) ) {
ffc0ac10: 2f 80 00 00 cmpwi cr7,r0,0
_ISR_Disable( level );
current_state = the_thread->current_state;
if ( current_state & state ) {
current_state =
ffc0ac14: 90 03 00 10 stw r0,16(r3)
the_thread->current_state = _States_Clear( state, current_state );
if ( _States_Is_ready( current_state ) ) {
ffc0ac18: 40 9e 00 90 bne- cr7,ffc0aca8 <_Thread_Clear_state+0xb8>
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
ffc0ac1c: 81 43 00 90 lwz r10,144(r3)
ffc0ac20: 80 03 00 98 lwz r0,152(r3)
ffc0ac24: 81 0a 00 00 lwz r8,0(r10)
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
ffc0ac28: 81 63 00 8c lwz r11,140(r3)
ffc0ac2c: 7d 00 03 78 or r0,r8,r0
ffc0ac30: 90 0a 00 00 stw r0,0(r10)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
ffc0ac34: 38 0b 00 04 addi r0,r11,4
_Priority_Major_bit_map |= the_priority_map->ready_major;
ffc0ac38: 3d 00 00 00 lis r8,0
ffc0ac3c: 90 03 00 00 stw r0,0(r3)
ffc0ac40: 80 e8 27 60 lwz r7,10080(r8)
ffc0ac44: 80 03 00 94 lwz r0,148(r3)
old_last_node = the_chain->last;
ffc0ac48: 81 4b 00 08 lwz r10,8(r11)
ffc0ac4c: 7c e0 03 78 or r0,r7,r0
the_chain->last = the_node;
ffc0ac50: 90 6b 00 08 stw r3,8(r11)
ffc0ac54: 90 08 27 60 stw r0,10080(r8)
old_last_node->next = the_node;
the_node->previous = old_last_node;
ffc0ac58: 91 43 00 04 stw r10,4(r3)
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
ffc0ac5c: 90 6a 00 00 stw r3,0(r10)
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0ac60: 7c 00 00 a6 mfmsr r0
ffc0ac64: 7d 20 01 24 mtmsr r9
ffc0ac68: 7c 00 01 24 mtmsr r0
* a context switch.
* Pseudo-ISR case:
* Even if the thread isn't preemptible, if the new heir is
* a pseudo-ISR system task, we need to do a context switch.
*/
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
ffc0ac6c: 3d 60 00 00 lis r11,0
ffc0ac70: 80 03 00 14 lwz r0,20(r3)
ffc0ac74: 81 4b 27 48 lwz r10,10056(r11)
ffc0ac78: 81 4a 00 14 lwz r10,20(r10)
ffc0ac7c: 7f 80 50 40 cmplw cr7,r0,r10
ffc0ac80: 40 9c 00 28 bge- cr7,ffc0aca8 <_Thread_Clear_state+0xb8>
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
ffc0ac84: 3d 40 00 00 lis r10,0
* Pseudo-ISR case:
* Even if the thread isn't preemptible, if the new heir is
* a pseudo-ISR system task, we need to do a context switch.
*/
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
_Thread_Heir = the_thread;
ffc0ac88: 90 6b 27 48 stw r3,10056(r11)
if ( _Thread_Executing->is_preemptible ||
ffc0ac8c: 81 4a 27 6c lwz r10,10092(r10)
ffc0ac90: 89 6a 00 75 lbz r11,117(r10)
ffc0ac94: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0ac98: 41 9e 00 18 beq- cr7,ffc0acb0 <_Thread_Clear_state+0xc0>
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
ffc0ac9c: 38 00 00 01 li r0,1
ffc0aca0: 3d 60 00 00 lis r11,0
ffc0aca4: 98 0b 27 7c stb r0,10108(r11)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0aca8: 7d 20 01 24 mtmsr r9
}
}
}
_ISR_Enable( level );
}
ffc0acac: 4e 80 00 20 blr
* Even if the thread isn't preemptible, if the new heir is
* a pseudo-ISR system task, we need to do a context switch.
*/
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
ffc0acb0: 2f 80 00 00 cmpwi cr7,r0,0
ffc0acb4: 41 9e ff e8 beq+ cr7,ffc0ac9c <_Thread_Clear_state+0xac><== NEVER TAKEN
ffc0acb8: 4b ff ff f0 b ffc0aca8 <_Thread_Clear_state+0xb8>
ffc0acbc <_Thread_Close>:
void _Thread_Close(
Objects_Information *information,
Thread_Control *the_thread
)
{
ffc0acbc: 94 21 ff e8 stwu r1,-24(r1)
ffc0acc0: 7c 08 02 a6 mflr r0
ffc0acc4: 39 60 00 00 li r11,0
ffc0acc8: 90 01 00 1c stw r0,28(r1)
ffc0accc: a0 04 00 0a lhz r0,10(r4)
ffc0acd0: 81 23 00 1c lwz r9,28(r3)
ffc0acd4: 54 00 10 3a rlwinm r0,r0,2,0,29
ffc0acd8: 93 a1 00 0c stw r29,12(r1)
ffc0acdc: 7c 7d 1b 78 mr r29,r3
ffc0ace0: 93 e1 00 14 stw r31,20(r1)
ffc0ace4: 7c 9f 23 78 mr r31,r4
ffc0ace8: 93 c1 00 10 stw r30,16(r1)
ffc0acec: 7d 69 01 2e stwx r11,r9,r0
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
ffc0acf0: 3f c0 00 00 lis r30,0
ffc0acf4: 81 3e 27 2c lwz r9,10028(r30)
* disappear and set a transient state on it. So we temporarily
* unnest dispatching.
*/
_Thread_Unnest_dispatch();
_User_extensions_Thread_delete( the_thread );
ffc0acf8: 7c 83 23 78 mr r3,r4
ffc0acfc: 38 09 ff ff addi r0,r9,-1
ffc0ad00: 90 1e 27 2c stw r0,10028(r30)
ffc0ad04: 48 00 19 2d bl ffc0c630 <_User_extensions_Thread_delete>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
ffc0ad08: 81 3e 27 2c lwz r9,10028(r30)
ffc0ad0c: 38 09 00 01 addi r0,r9,1
ffc0ad10: 90 1e 27 2c stw r0,10028(r30)
/*
* Now we are in a dispatching critical section again and we
* can take the thread OUT of the published set. It is invalid
* to use this thread's Id OR name after this call.
*/
_Objects_Close( information, &the_thread->Object );
ffc0ad14: 7f a3 eb 78 mr r3,r29
ffc0ad18: 7f e4 fb 78 mr r4,r31
ffc0ad1c: 4b ff f3 25 bl ffc0a040 <_Objects_Close>
/*
* By setting the dormant state, the thread will not be considered
* for scheduling when we remove any blocking states.
*/
_Thread_Set_state( the_thread, STATES_DORMANT );
ffc0ad20: 7f e3 fb 78 mr r3,r31
ffc0ad24: 38 80 00 01 li r4,1
ffc0ad28: 48 00 0f 65 bl ffc0bc8c <_Thread_Set_state>
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
ffc0ad2c: 7f e3 fb 78 mr r3,r31
ffc0ad30: 48 00 0d 21 bl ffc0ba50 <_Thread_queue_Extract_with_proxy>
ffc0ad34: 2f 83 00 00 cmpwi cr7,r3,0
ffc0ad38: 40 9e 00 10 bne- cr7,ffc0ad48 <_Thread_Close+0x8c>
if ( _Watchdog_Is_active( &the_thread->Timer ) )
ffc0ad3c: 80 1f 00 50 lwz r0,80(r31)
ffc0ad40: 2f 80 00 02 cmpwi cr7,r0,2
ffc0ad44: 41 9e 00 60 beq- cr7,ffc0ada4 <_Thread_Close+0xe8>
if ( _Thread_Is_allocated_fp( the_thread ) )
_Thread_Deallocate_fp();
#endif
the_thread->fp_context = NULL;
if ( the_thread->Start.fp_context )
ffc0ad48: 80 7f 00 d0 lwz r3,208(r31)
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
if ( _Thread_Is_allocated_fp( the_thread ) )
_Thread_Deallocate_fp();
#endif
the_thread->fp_context = NULL;
ffc0ad4c: 38 00 00 00 li r0,0
ffc0ad50: 90 1f 01 38 stw r0,312(r31)
if ( the_thread->Start.fp_context )
ffc0ad54: 2f 83 00 00 cmpwi cr7,r3,0
ffc0ad58: 41 9e 00 08 beq- cr7,ffc0ad60 <_Thread_Close+0xa4> <== NEVER TAKEN
(void) _Workspace_Free( the_thread->Start.fp_context );
ffc0ad5c: 48 00 1e 49 bl ffc0cba4 <_Workspace_Free>
/*
* Free the rest of the memory associated with this task
* and set the associated pointers to NULL for safety.
*/
_Thread_Stack_Free( the_thread );
ffc0ad60: 7f e3 fb 78 mr r3,r31
ffc0ad64: 48 00 11 99 bl ffc0befc <_Thread_Stack_Free>
the_thread->Start.stack = NULL;
if ( the_thread->extensions )
ffc0ad68: 80 7f 01 4c lwz r3,332(r31)
/*
* Free the rest of the memory associated with this task
* and set the associated pointers to NULL for safety.
*/
_Thread_Stack_Free( the_thread );
the_thread->Start.stack = NULL;
ffc0ad6c: 38 00 00 00 li r0,0
if ( the_thread->extensions )
ffc0ad70: 2f 83 00 00 cmpwi cr7,r3,0
/*
* Free the rest of the memory associated with this task
* and set the associated pointers to NULL for safety.
*/
_Thread_Stack_Free( the_thread );
the_thread->Start.stack = NULL;
ffc0ad74: 90 1f 00 d4 stw r0,212(r31)
if ( the_thread->extensions )
ffc0ad78: 41 9e 00 08 beq- cr7,ffc0ad80 <_Thread_Close+0xc4>
(void) _Workspace_Free( the_thread->extensions );
ffc0ad7c: 48 00 1e 29 bl ffc0cba4 <_Workspace_Free>
the_thread->extensions = NULL;
ffc0ad80: 38 00 00 00 li r0,0
}
ffc0ad84: 83 a1 00 0c lwz r29,12(r1)
_Thread_Stack_Free( the_thread );
the_thread->Start.stack = NULL;
if ( the_thread->extensions )
(void) _Workspace_Free( the_thread->extensions );
the_thread->extensions = NULL;
ffc0ad88: 90 1f 01 4c stw r0,332(r31)
}
ffc0ad8c: 80 01 00 1c lwz r0,28(r1)
ffc0ad90: 83 c1 00 10 lwz r30,16(r1)
ffc0ad94: 7c 08 03 a6 mtlr r0
ffc0ad98: 83 e1 00 14 lwz r31,20(r1)
ffc0ad9c: 38 21 00 18 addi r1,r1,24
ffc0ada0: 4e 80 00 20 blr
*/
_Thread_Set_state( the_thread, STATES_DORMANT );
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
if ( _Watchdog_Is_active( &the_thread->Timer ) )
(void) _Watchdog_Remove( &the_thread->Timer );
ffc0ada4: 38 7f 00 48 addi r3,r31,72
ffc0ada8: 48 00 1b d9 bl ffc0c980 <_Watchdog_Remove>
ffc0adac: 4b ff ff 9c b ffc0ad48 <_Thread_Close+0x8c>
ffc0aeb0 <_Thread_Delay_ended>:
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
ffc0aeb0: 94 21 ff e8 stwu r1,-24(r1)
ffc0aeb4: 7c 08 02 a6 mflr r0
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
ffc0aeb8: 38 81 00 08 addi r4,r1,8
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
ffc0aebc: 90 01 00 1c stw r0,28(r1)
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
ffc0aec0: 48 00 02 65 bl ffc0b124 <_Thread_Get>
switch ( location ) {
ffc0aec4: 80 01 00 08 lwz r0,8(r1)
ffc0aec8: 2f 80 00 00 cmpwi cr7,r0,0
ffc0aecc: 40 9e 00 20 bne- cr7,ffc0aeec <_Thread_Delay_ended+0x3c><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_Clear_state(
ffc0aed0: 3c 80 10 00 lis r4,4096
ffc0aed4: 60 84 00 18 ori r4,r4,24
ffc0aed8: 4b ff fd 19 bl ffc0abf0 <_Thread_Clear_state>
ffc0aedc: 3d 20 00 00 lis r9,0
ffc0aee0: 81 69 27 2c lwz r11,10028(r9)
ffc0aee4: 38 0b ff ff addi r0,r11,-1
ffc0aee8: 90 09 27 2c stw r0,10028(r9)
| STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Thread_Unnest_dispatch();
break;
}
}
ffc0aeec: 80 01 00 1c lwz r0,28(r1)
ffc0aef0: 38 21 00 18 addi r1,r1,24
ffc0aef4: 7c 08 03 a6 mtlr r0
ffc0aef8: 4e 80 00 20 blr
ffc0aefc <_Thread_Dispatch>:
* dispatch thread
* no dispatch thread
*/
void _Thread_Dispatch( void )
{
ffc0aefc: 94 21 ff b0 stwu r1,-80(r1)
ffc0af00: 7c 08 02 a6 mflr r0
ffc0af04: 93 41 00 38 stw r26,56(r1)
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
ffc0af08: 3f 40 00 00 lis r26,0
* dispatch thread
* no dispatch thread
*/
void _Thread_Dispatch( void )
{
ffc0af0c: 93 e1 00 4c stw r31,76(r1)
ffc0af10: 90 01 00 54 stw r0,84(r1)
ffc0af14: 92 41 00 18 stw r18,24(r1)
ffc0af18: 92 61 00 1c stw r19,28(r1)
ffc0af1c: 92 81 00 20 stw r20,32(r1)
ffc0af20: 92 a1 00 24 stw r21,36(r1)
ffc0af24: 92 c1 00 28 stw r22,40(r1)
ffc0af28: 92 e1 00 2c stw r23,44(r1)
ffc0af2c: 93 01 00 30 stw r24,48(r1)
ffc0af30: 93 21 00 34 stw r25,52(r1)
ffc0af34: 93 61 00 3c stw r27,60(r1)
ffc0af38: 93 81 00 40 stw r28,64(r1)
ffc0af3c: 93 a1 00 44 stw r29,68(r1)
ffc0af40: 93 c1 00 48 stw r30,72(r1)
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
ffc0af44: 83 fa 27 6c lwz r31,10092(r26)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0af48: 7c 00 00 a6 mfmsr r0
ffc0af4c: 7d 30 42 a6 mfsprg r9,0
ffc0af50: 7c 09 48 78 andc r9,r0,r9
ffc0af54: 7d 20 01 24 mtmsr r9
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
ffc0af58: 3f 20 00 00 lis r25,0
ffc0af5c: 89 39 27 7c lbz r9,10108(r25)
ffc0af60: 3e 40 00 00 lis r18,0
ffc0af64: 2f 89 00 00 cmpwi cr7,r9,0
ffc0af68: 41 9e 01 20 beq- cr7,ffc0b088 <_Thread_Dispatch+0x18c>
ffc0af6c: 3e 80 00 00 lis r20,0
ffc0af70: 3f 60 00 00 lis r27,0
ffc0af74: 3e a0 00 00 lis r21,0
#if __RTEMS_ADA__
executing->rtems_ada_self = rtems_ada_self;
rtems_ada_self = heir->rtems_ada_self;
#endif
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
ffc0af78: 3e 60 00 00 lis r19,0
ffc0af7c: 3a 94 27 48 addi r20,r20,10056
ffc0af80: 3b 39 27 7c addi r25,r25,10108
ffc0af84: 3b 5a 27 6c addi r26,r26,10092
ffc0af88: 3b 7b 27 74 addi r27,r27,10100
ffc0af8c: 3a b5 27 44 addi r21,r21,10052
ffc0af90: 3a 73 27 24 addi r19,r19,10020
ffc0af94: 3a d2 27 2c addi r22,r18,10028
ffc0af98: 3b 81 00 08 addi r28,r1,8
ffc0af9c: 3b a1 00 10 addi r29,r1,16
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
ffc0afa0: 3a e0 00 01 li r23,1
_Context_Switch_necessary = false;
ffc0afa4: 3b 00 00 00 li r24,0
ffc0afa8: 48 00 00 b8 b ffc0b060 <_Thread_Dispatch+0x164>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0afac: 7c 00 01 24 mtmsr r0
_ISR_Enable( level );
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
ffc0afb0: 7f 83 e3 78 mr r3,r28
ffc0afb4: 48 00 40 1d bl ffc0efd0 <_TOD_Get_uptime>
_Timestamp_Subtract(
ffc0afb8: 7f 63 db 78 mr r3,r27
ffc0afbc: 7f 84 e3 78 mr r4,r28
ffc0afc0: 7f a5 eb 78 mr r5,r29
ffc0afc4: 48 00 13 01 bl ffc0c2c4 <_Timespec_Subtract>
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
ffc0afc8: 7f a4 eb 78 mr r4,r29
ffc0afcc: 38 7f 00 84 addi r3,r31,132
ffc0afd0: 48 00 12 99 bl ffc0c268 <_Timespec_Add_to>
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
ffc0afd4: 81 35 00 00 lwz r9,0(r21)
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
_Thread_Time_of_last_context_switch = uptime;
ffc0afd8: 81 61 00 08 lwz r11,8(r1)
if ( _Thread_libc_reent ) {
executing->libc_reent = *_Thread_libc_reent;
*_Thread_libc_reent = heir->libc_reent;
}
_User_extensions_Thread_switch( executing, heir );
ffc0afdc: 7f e3 fb 78 mr r3,r31
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
ffc0afe0: 2f 89 00 00 cmpwi cr7,r9,0
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
_Thread_Time_of_last_context_switch = uptime;
ffc0afe4: 81 81 00 0c lwz r12,12(r1)
if ( _Thread_libc_reent ) {
executing->libc_reent = *_Thread_libc_reent;
*_Thread_libc_reent = heir->libc_reent;
}
_User_extensions_Thread_switch( executing, heir );
ffc0afe8: 7f c4 f3 78 mr r4,r30
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
_Thread_Time_of_last_context_switch = uptime;
ffc0afec: 91 7b 00 00 stw r11,0(r27)
ffc0aff0: 91 9b 00 04 stw r12,4(r27)
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
ffc0aff4: 41 9e 00 14 beq- cr7,ffc0b008 <_Thread_Dispatch+0x10c> <== NEVER TAKEN
executing->libc_reent = *_Thread_libc_reent;
ffc0aff8: 80 09 00 00 lwz r0,0(r9)
ffc0affc: 90 1f 01 3c stw r0,316(r31)
*_Thread_libc_reent = heir->libc_reent;
ffc0b000: 80 1e 01 3c lwz r0,316(r30)
ffc0b004: 90 09 00 00 stw r0,0(r9)
}
_User_extensions_Thread_switch( executing, heir );
ffc0b008: 48 00 17 35 bl ffc0c73c <_User_extensions_Thread_switch>
* operations.
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH != TRUE )
if ( executing->fp_context != NULL )
ffc0b00c: 80 1f 01 38 lwz r0,312(r31)
_Context_Save_fp( &executing->fp_context );
ffc0b010: 38 7f 01 38 addi r3,r31,312
* operations.
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
#if ( CPU_USE_DEFERRED_FP_SWITCH != TRUE )
if ( executing->fp_context != NULL )
ffc0b014: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b018: 41 9e 00 08 beq- cr7,ffc0b020 <_Thread_Dispatch+0x124>
_Context_Save_fp( &executing->fp_context );
ffc0b01c: 48 01 13 25 bl ffc1c340 <_CPU_Context_save_fp>
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
ffc0b020: 38 7f 00 d8 addi r3,r31,216
ffc0b024: 38 9e 00 d8 addi r4,r30,216
ffc0b028: 48 01 14 99 bl ffc1c4c0 <_CPU_Context_switch>
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
_Context_Restore_fp( &executing->fp_context );
_Thread_Allocated_fp = executing;
}
#else
if ( executing->fp_context != NULL )
ffc0b02c: 80 1f 01 38 lwz r0,312(r31)
_Context_Restore_fp( &executing->fp_context );
ffc0b030: 38 7f 01 38 addi r3,r31,312
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
_Context_Restore_fp( &executing->fp_context );
_Thread_Allocated_fp = executing;
}
#else
if ( executing->fp_context != NULL )
ffc0b034: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b038: 41 9e 00 08 beq- cr7,ffc0b040 <_Thread_Dispatch+0x144>
_Context_Restore_fp( &executing->fp_context );
ffc0b03c: 48 01 13 c5 bl ffc1c400 <_CPU_Context_restore_fp>
#endif
#endif
executing = _Thread_Executing;
ffc0b040: 83 fa 00 00 lwz r31,0(r26)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0b044: 7c 00 00 a6 mfmsr r0
ffc0b048: 7d 30 42 a6 mfsprg r9,0
ffc0b04c: 7c 09 48 78 andc r9,r0,r9
ffc0b050: 7d 20 01 24 mtmsr r9
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
ffc0b054: 89 39 00 00 lbz r9,0(r25)
ffc0b058: 2f 89 00 00 cmpwi cr7,r9,0
ffc0b05c: 41 9e 00 2c beq- cr7,ffc0b088 <_Thread_Dispatch+0x18c>
heir = _Thread_Heir;
ffc0b060: 83 d4 00 00 lwz r30,0(r20)
_Thread_Dispatch_disable_level = 1;
ffc0b064: 92 f6 00 00 stw r23,0(r22)
_Thread_Executing = heir;
#if __RTEMS_ADA__
executing->rtems_ada_self = rtems_ada_self;
rtems_ada_self = heir->rtems_ada_self;
#endif
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
ffc0b068: 81 3e 00 7c lwz r9,124(r30)
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
_Context_Switch_necessary = false;
ffc0b06c: 9b 19 00 00 stb r24,0(r25)
_Thread_Executing = heir;
#if __RTEMS_ADA__
executing->rtems_ada_self = rtems_ada_self;
rtems_ada_self = heir->rtems_ada_self;
#endif
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
ffc0b070: 2f 89 00 01 cmpwi cr7,r9,1
_ISR_Disable( level );
while ( _Context_Switch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
_Context_Switch_necessary = false;
_Thread_Executing = heir;
ffc0b074: 93 da 00 00 stw r30,0(r26)
#if __RTEMS_ADA__
executing->rtems_ada_self = rtems_ada_self;
rtems_ada_self = heir->rtems_ada_self;
#endif
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
ffc0b078: 40 9e ff 34 bne+ cr7,ffc0afac <_Thread_Dispatch+0xb0>
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
ffc0b07c: 81 33 00 00 lwz r9,0(r19)
ffc0b080: 91 3e 00 78 stw r9,120(r30)
ffc0b084: 4b ff ff 28 b ffc0afac <_Thread_Dispatch+0xb0>
executing = _Thread_Executing;
_ISR_Disable( level );
}
_Thread_Dispatch_disable_level = 0;
ffc0b088: 39 20 00 00 li r9,0
ffc0b08c: 91 32 27 2c stw r9,10028(r18)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0b090: 7c 00 01 24 mtmsr r0
_ISR_Enable( level );
if ( _Thread_Do_post_task_switch_extension ||
ffc0b094: 3d 20 00 00 lis r9,0
ffc0b098: 80 09 27 5c lwz r0,10076(r9)
ffc0b09c: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b0a0: 40 9e 00 10 bne- cr7,ffc0b0b0 <_Thread_Dispatch+0x1b4> <== NEVER TAKEN
executing->do_post_task_switch_extension ) {
ffc0b0a4: 88 1f 00 74 lbz r0,116(r31)
ffc0b0a8: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b0ac: 41 9e 00 10 beq- cr7,ffc0b0bc <_Thread_Dispatch+0x1c0>
executing->do_post_task_switch_extension = false;
ffc0b0b0: 38 00 00 00 li r0,0
ffc0b0b4: 98 1f 00 74 stb r0,116(r31)
_API_extensions_Run_postswitch();
ffc0b0b8: 4b ff e1 e1 bl ffc09298 <_API_extensions_Run_postswitch>
}
}
ffc0b0bc: 80 01 00 54 lwz r0,84(r1)
ffc0b0c0: 82 41 00 18 lwz r18,24(r1)
ffc0b0c4: 7c 08 03 a6 mtlr r0
ffc0b0c8: 82 61 00 1c lwz r19,28(r1)
ffc0b0cc: 82 81 00 20 lwz r20,32(r1)
ffc0b0d0: 82 a1 00 24 lwz r21,36(r1)
ffc0b0d4: 82 c1 00 28 lwz r22,40(r1)
ffc0b0d8: 82 e1 00 2c lwz r23,44(r1)
ffc0b0dc: 83 01 00 30 lwz r24,48(r1)
ffc0b0e0: 83 21 00 34 lwz r25,52(r1)
ffc0b0e4: 83 41 00 38 lwz r26,56(r1)
ffc0b0e8: 83 61 00 3c lwz r27,60(r1)
ffc0b0ec: 83 81 00 40 lwz r28,64(r1)
ffc0b0f0: 83 a1 00 44 lwz r29,68(r1)
ffc0b0f4: 83 c1 00 48 lwz r30,72(r1)
ffc0b0f8: 83 e1 00 4c lwz r31,76(r1)
ffc0b0fc: 38 21 00 50 addi r1,r1,80
ffc0b100: 4e 80 00 20 blr
ffc11368 <_Thread_Evaluate_mode>:
bool _Thread_Evaluate_mode( void )
{
Thread_Control *executing;
executing = _Thread_Executing;
ffc11368: 3d 20 00 00 lis r9,0
ffc1136c: 81 29 27 6c lwz r9,10092(r9)
if ( !_States_Is_ready( executing->current_state ) ||
ffc11370: 80 09 00 10 lwz r0,16(r9)
ffc11374: 2f 80 00 00 cmpwi cr7,r0,0
ffc11378: 40 9e 00 20 bne- cr7,ffc11398 <_Thread_Evaluate_mode+0x30><== NEVER TAKEN
ffc1137c: 3d 60 00 00 lis r11,0
ffc11380: 80 0b 27 48 lwz r0,10056(r11)
ffc11384: 7f 89 00 00 cmpw cr7,r9,r0
ffc11388: 41 9e 00 24 beq- cr7,ffc113ac <_Thread_Evaluate_mode+0x44>
( !_Thread_Is_heir( executing ) && executing->is_preemptible ) ) {
ffc1138c: 88 09 00 75 lbz r0,117(r9)
ffc11390: 2f 80 00 00 cmpwi cr7,r0,0
ffc11394: 41 9e 00 18 beq- cr7,ffc113ac <_Thread_Evaluate_mode+0x44><== NEVER TAKEN
_Context_Switch_necessary = true;
ffc11398: 38 00 00 01 li r0,1
ffc1139c: 3d 20 00 00 lis r9,0
ffc113a0: 98 09 27 7c stb r0,10108(r9)
ffc113a4: 38 60 00 01 li r3,1
return true;
ffc113a8: 4e 80 00 20 blr
ffc113ac: 38 60 00 00 li r3,0
}
return false;
}
ffc113b0: 4e 80 00 20 blr
ffc113b4 <_Thread_Handler>:
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
ffc113b4: 94 21 ff f0 stwu r1,-16(r1)
ffc113b8: 7c 08 02 a6 mflr r0
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
ffc113bc: 3d 20 00 00 lis r9,0
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
ffc113c0: 90 01 00 14 stw r0,20(r1)
ffc113c4: 93 e1 00 0c stw r31,12(r1)
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
ffc113c8: 83 e9 27 6c lwz r31,10092(r9)
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
ffc113cc: 93 c1 00 08 stw r30,8(r1)
/*
* have to put level into a register for those cpu's that use
* inline asm here
*/
level = executing->Start.isr_level;
ffc113d0: 81 3f 00 c0 lwz r9,192(r31)
}
static inline void _CPU_ISR_Set_level( uint32_t level )
{
register unsigned int msr;
_CPU_MSR_GET(msr);
ffc113d4: 38 00 00 00 li r0,0
ffc113d8: 7c 00 00 a6 mfmsr r0
if (!(level & CPU_MODES_INTERRUPT_MASK)) {
ffc113dc: 71 2b 00 01 andi. r11,r9,1
ffc113e0: 40 82 00 58 bne- ffc11438 <_Thread_Handler+0x84>
static inline uint32_t ppc_interrupt_get_disable_mask( void )
{
uint32_t mask;
asm volatile (
ffc113e4: 7d 30 42 a6 mfsprg r9,0
msr |= ppc_interrupt_get_disable_mask();
ffc113e8: 7d 20 03 78 or r0,r9,r0
}
else {
msr &= ~ppc_interrupt_get_disable_mask();
}
_CPU_MSR_SET(msr);
ffc113ec: 7c 00 01 24 mtmsr r0
_ISR_Set_level(level);
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
ffc113f0: 3d 20 00 00 lis r9,0
ffc113f4: 8b c9 29 00 lbz r30,10496(r9)
doneConstructors = 1;
ffc113f8: 38 00 00 01 li r0,1
/*
* Take care that 'begin' extensions get to complete before
* 'switch' extensions can run. This means must keep dispatch
* disabled until all 'begin' extensions complete.
*/
_User_extensions_Thread_begin( executing );
ffc113fc: 7f e3 fb 78 mr r3,r31
level = executing->Start.isr_level;
_ISR_Set_level(level);
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
doneConstructors = 1;
ffc11400: 98 09 29 00 stb r0,10496(r9)
/*
* Take care that 'begin' extensions get to complete before
* 'switch' extensions can run. This means must keep dispatch
* disabled until all 'begin' extensions complete.
*/
_User_extensions_Thread_begin( executing );
ffc11404: 4b ff b0 25 bl ffc0c428 <_User_extensions_Thread_begin>
/*
* At this point, the dispatch disable level BETTER be 1.
*/
_Thread_Enable_dispatch();
ffc11408: 4b ff 9c fd bl ffc0b104 <_Thread_Enable_dispatch>
/*
* _init could be a weak symbol and we SHOULD test it but it isn't
* in any configuration I know of and it generates a warning on every
* RTEMS target configuration. --joel (12 May 2007)
*/
if (!doneCons) /* && (volatile void *)_init) */ {
ffc1140c: 2f 9e 00 00 cmpwi cr7,r30,0
ffc11410: 41 9e 00 58 beq- cr7,ffc11468 <_Thread_Handler+0xb4>
INIT_NAME ();
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
ffc11414: 80 1f 00 a8 lwz r0,168(r31)
ffc11418: 2f 80 00 00 cmpwi cr7,r0,0
ffc1141c: 41 9e 00 5c beq- cr7,ffc11478 <_Thread_Handler+0xc4> <== ALWAYS TAKEN
* was placed in return_argument. This assumed that if it returned
* anything (which is not supporting in all APIs), then it would be
* able to fit in a (void *).
*/
_User_extensions_Thread_exitted( executing );
ffc11420: 7f e3 fb 78 mr r3,r31
ffc11424: 4b ff b0 79 bl ffc0c49c <_User_extensions_Thread_exitted>
_Internal_error_Occurred(
ffc11428: 38 60 00 00 li r3,0
ffc1142c: 38 80 00 01 li r4,1
ffc11430: 38 a0 00 06 li r5,6
ffc11434: 4b ff 8a e5 bl ffc09f18 <_Internal_error_Occurred>
ffc11438: 7d 30 42 a6 mfsprg r9,0
_CPU_MSR_GET(msr);
if (!(level & CPU_MODES_INTERRUPT_MASK)) {
msr |= ppc_interrupt_get_disable_mask();
}
else {
msr &= ~ppc_interrupt_get_disable_mask();
ffc1143c: 7c 00 48 78 andc r0,r0,r9
}
_CPU_MSR_SET(msr);
ffc11440: 7c 00 01 24 mtmsr r0
level = executing->Start.isr_level;
_ISR_Set_level(level);
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
ffc11444: 3d 20 00 00 lis r9,0
ffc11448: 8b c9 29 00 lbz r30,10496(r9)
doneConstructors = 1;
ffc1144c: 38 00 00 01 li r0,1
/*
* Take care that 'begin' extensions get to complete before
* 'switch' extensions can run. This means must keep dispatch
* disabled until all 'begin' extensions complete.
*/
_User_extensions_Thread_begin( executing );
ffc11450: 7f e3 fb 78 mr r3,r31
level = executing->Start.isr_level;
_ISR_Set_level(level);
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
doneConstructors = 1;
ffc11454: 98 09 29 00 stb r0,10496(r9)
/*
* Take care that 'begin' extensions get to complete before
* 'switch' extensions can run. This means must keep dispatch
* disabled until all 'begin' extensions complete.
*/
_User_extensions_Thread_begin( executing );
ffc11458: 4b ff af d1 bl ffc0c428 <_User_extensions_Thread_begin>
/*
* At this point, the dispatch disable level BETTER be 1.
*/
_Thread_Enable_dispatch();
ffc1145c: 4b ff 9c a9 bl ffc0b104 <_Thread_Enable_dispatch>
/*
* _init could be a weak symbol and we SHOULD test it but it isn't
* in any configuration I know of and it generates a warning on every
* RTEMS target configuration. --joel (12 May 2007)
*/
if (!doneCons) /* && (volatile void *)_init) */ {
ffc11460: 2f 9e 00 00 cmpwi cr7,r30,0
ffc11464: 40 9e ff b0 bne+ cr7,ffc11414 <_Thread_Handler+0x60> <== ALWAYS TAKEN
INIT_NAME ();
ffc11468: 48 00 bf d5 bl ffc1d43c <_init>
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
ffc1146c: 80 1f 00 a8 lwz r0,168(r31)
ffc11470: 2f 80 00 00 cmpwi cr7,r0,0
ffc11474: 40 9e ff ac bne+ cr7,ffc11420 <_Thread_Handler+0x6c> <== NEVER TAKEN
executing->Wait.return_argument =
(*(Thread_Entry_numeric) executing->Start.entry_point)(
ffc11478: 80 1f 00 a4 lwz r0,164(r31)
ffc1147c: 80 7f 00 b0 lwz r3,176(r31)
ffc11480: 7c 09 03 a6 mtctr r0
ffc11484: 4e 80 04 21 bctrl
INIT_NAME ();
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
executing->Wait.return_argument =
ffc11488: 90 7f 00 28 stw r3,40(r31)
ffc1148c: 4b ff ff 94 b ffc11420 <_Thread_Handler+0x6c>
ffc0b1f0 <_Thread_Initialize>:
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
ffc0b1f0: 94 21 ff d0 stwu r1,-48(r1)
ffc0b1f4: 7c 08 02 a6 mflr r0
ffc0b1f8: 7d 80 00 26 mfcr r12
ffc0b1fc: 90 01 00 34 stw r0,52(r1)
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
ffc0b200: 38 00 00 00 li r0,0
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
ffc0b204: 93 41 00 18 stw r26,24(r1)
ffc0b208: 7d 3a 4b 78 mr r26,r9
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
extensions_area = NULL;
the_thread->libc_reent = NULL;
ffc0b20c: 90 04 01 3c stw r0,316(r4)
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
ffc0b210: 90 04 01 40 stw r0,320(r4)
ffc0b214: 90 04 01 44 stw r0,324(r4)
ffc0b218: 90 04 01 48 stw r0,328(r4)
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
ffc0b21c: 81 21 00 40 lwz r9,64(r1)
ffc0b220: 93 a1 00 24 stw r29,36(r1)
ffc0b224: 7c 7d 1b 78 mr r29,r3
/*
* Allocate and Initialize the stack for this thread.
*/
#if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0b228: 7c 83 23 78 mr r3,r4
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
ffc0b22c: 93 e1 00 2c stw r31,44(r1)
ffc0b230: 7c 9f 23 78 mr r31,r4
/*
* Allocate and Initialize the stack for this thread.
*/
#if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0b234: 7c c4 33 78 mr r4,r6
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
ffc0b238: 93 01 00 10 stw r24,16(r1)
ffc0b23c: 93 21 00 14 stw r25,20(r1)
ffc0b240: 7d 59 53 78 mr r25,r10
ffc0b244: 93 61 00 1c stw r27,28(r1)
ffc0b248: 7d 1b 43 78 mr r27,r8
ffc0b24c: 93 81 00 20 stw r28,32(r1)
ffc0b250: 7c fc 3b 78 mr r28,r7
ffc0b254: 93 c1 00 28 stw r30,40(r1)
ffc0b258: 7c de 33 78 mr r30,r6
ffc0b25c: 92 e1 00 0c stw r23,12(r1)
ffc0b260: 91 81 00 08 stw r12,8(r1)
ffc0b264: 83 09 00 00 lwz r24,0(r9)
/*
* Allocate and Initialize the stack for this thread.
*/
#if !defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0b268: 48 00 0b dd bl ffc0be44 <_Thread_Stack_Allocate>
if ( !actual_stack_size || actual_stack_size < stack_size )
ffc0b26c: 2c 03 00 00 cmpwi r3,0
ffc0b270: 41 82 01 74 beq- ffc0b3e4 <_Thread_Initialize+0x1f4>
ffc0b274: 7f 9e 18 40 cmplw cr7,r30,r3
ffc0b278: 41 9d 01 6c bgt- cr7,ffc0b3e4 <_Thread_Initialize+0x1f4><== NEVER TAKEN
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
ffc0b27c: 2f 9c 00 00 cmpwi cr7,r28,0
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
ffc0b280: 80 1f 00 d4 lwz r0,212(r31)
the_stack->size = size;
ffc0b284: 90 7f 00 c8 stw r3,200(r31)
ffc0b288: 39 20 00 00 li r9,0
ffc0b28c: 3b 80 00 00 li r28,0
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
ffc0b290: 90 1f 00 cc stw r0,204(r31)
ffc0b294: 40 9e 01 90 bne- cr7,ffc0b424 <_Thread_Initialize+0x234>
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
ffc0b298: 3f c0 00 00 lis r30,0
if ( !fp_area )
goto failed;
fp_area = _Context_Fp_start( fp_area, 0 );
}
the_thread->fp_context = fp_area;
the_thread->Start.fp_context = fp_area;
ffc0b29c: 91 3f 00 d0 stw r9,208(r31)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc0b2a0: 38 00 00 00 li r0,0
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
ffc0b2a4: 81 7e 27 58 lwz r11,10072(r30)
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
ffc0b2a8: 90 1f 00 6c stw r0,108(r31)
ffc0b2ac: 2f 8b 00 00 cmpwi cr7,r11,0
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
if ( !fp_area )
goto failed;
fp_area = _Context_Fp_start( fp_area, 0 );
}
the_thread->fp_context = fp_area;
ffc0b2b0: 91 3f 01 38 stw r9,312(r31)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc0b2b4: 90 1f 00 50 stw r0,80(r31)
the_watchdog->routine = routine;
ffc0b2b8: 90 1f 00 64 stw r0,100(r31)
the_watchdog->id = id;
ffc0b2bc: 90 1f 00 68 stw r0,104(r31)
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
ffc0b2c0: 40 9e 01 88 bne- cr7,ffc0b448 <_Thread_Initialize+0x258>
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
goto failed;
}
the_thread->extensions = (void **) extensions_area;
ffc0b2c4: 91 7f 01 4c stw r11,332(r31)
ffc0b2c8: 3a e0 00 00 li r23,0
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
ffc0b2cc: 80 01 00 38 lwz r0,56(r1)
}
the_thread->Start.isr_level = isr_level;
the_thread->current_state = STATES_DORMANT;
the_thread->Wait.queue = NULL;
ffc0b2d0: 3b c0 00 00 li r30,0
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
ffc0b2d4: 9b 5f 00 b4 stb r26,180(r31)
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->real_priority = priority;
the_thread->Start.initial_priority = priority;
_Thread_Set_priority( the_thread, priority );
ffc0b2d8: 7f 64 db 78 mr r4,r27
ffc0b2dc: 7f e3 fb 78 mr r3,r31
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
ffc0b2e0: 90 1f 00 bc stw r0,188(r31)
ffc0b2e4: 2e 1c 00 00 cmpwi cr4,r28,0
ffc0b2e8: 2d 97 00 00 cmpwi cr3,r23,0
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
ffc0b2ec: 80 01 00 3c lwz r0,60(r1)
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
ffc0b2f0: 93 3f 00 b8 stw r25,184(r31)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
ffc0b2f4: 90 1f 00 c0 stw r0,192(r31)
the_thread->current_state = STATES_DORMANT;
ffc0b2f8: 38 00 00 01 li r0,1
ffc0b2fc: 90 1f 00 10 stw r0,16(r31)
the_thread->Wait.queue = NULL;
ffc0b300: 93 df 00 44 stw r30,68(r31)
the_thread->resource_count = 0;
ffc0b304: 93 df 00 1c stw r30,28(r31)
#if defined(RTEMS_ITRON_API)
the_thread->suspend_count = 0;
#endif
the_thread->real_priority = priority;
ffc0b308: 93 7f 00 18 stw r27,24(r31)
the_thread->Start.initial_priority = priority;
ffc0b30c: 93 7f 00 c4 stw r27,196(r31)
_Thread_Set_priority( the_thread, priority );
ffc0b310: 48 00 09 21 bl ffc0bc30 <_Thread_Set_priority>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
ffc0b314: a0 1f 00 0a lhz r0,10(r31)
ffc0b318: 81 3d 00 1c lwz r9,28(r29)
* enabled when we get here. We want to be able to run the
* user extensions with dispatching enabled. The Allocator
* Mutex provides sufficient protection to let the user extensions
* run safely.
*/
extension_status = _User_extensions_Thread_create( the_thread );
ffc0b31c: 7f e3 fb 78 mr r3,r31
ffc0b320: 54 00 10 3a rlwinm r0,r0,2,0,29
/*
* Initialize the CPU usage statistics
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Set_to_zero( &the_thread->cpu_time_used );
ffc0b324: 93 df 00 88 stw r30,136(r31)
ffc0b328: 7f e9 01 2e stwx r31,r9,r0
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
ffc0b32c: 93 1f 00 0c stw r24,12(r31)
ffc0b330: 93 df 00 84 stw r30,132(r31)
* enabled when we get here. We want to be able to run the
* user extensions with dispatching enabled. The Allocator
* Mutex provides sufficient protection to let the user extensions
* run safely.
*/
extension_status = _User_extensions_Thread_create( the_thread );
ffc0b334: 48 00 12 69 bl ffc0c59c <_User_extensions_Thread_create>
if ( extension_status )
ffc0b338: 2f 83 00 00 cmpwi cr7,r3,0
ffc0b33c: 38 60 00 01 li r3,1
ffc0b340: 40 9e 00 a8 bne- cr7,ffc0b3e8 <_Thread_Initialize+0x1f8>
return true;
failed:
if ( the_thread->libc_reent )
ffc0b344: 80 7f 01 3c lwz r3,316(r31)
ffc0b348: 2f 83 00 00 cmpwi cr7,r3,0
ffc0b34c: 41 9e 00 08 beq- cr7,ffc0b354 <_Thread_Initialize+0x164>
_Workspace_Free( the_thread->libc_reent );
ffc0b350: 48 00 18 55 bl ffc0cba4 <_Workspace_Free>
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
ffc0b354: 80 7f 01 40 lwz r3,320(r31)
ffc0b358: 2f 83 00 00 cmpwi cr7,r3,0
ffc0b35c: 41 9e 00 08 beq- cr7,ffc0b364 <_Thread_Initialize+0x174>
_Workspace_Free( the_thread->API_Extensions[i] );
ffc0b360: 48 00 18 45 bl ffc0cba4 <_Workspace_Free>
failed:
if ( the_thread->libc_reent )
_Workspace_Free( the_thread->libc_reent );
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
ffc0b364: 80 7f 01 44 lwz r3,324(r31)
ffc0b368: 2f 83 00 00 cmpwi cr7,r3,0
ffc0b36c: 41 9e 00 08 beq- cr7,ffc0b374 <_Thread_Initialize+0x184><== ALWAYS TAKEN
_Workspace_Free( the_thread->API_Extensions[i] );
ffc0b370: 48 00 18 35 bl ffc0cba4 <_Workspace_Free> <== NOT EXECUTED
failed:
if ( the_thread->libc_reent )
_Workspace_Free( the_thread->libc_reent );
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
if ( the_thread->API_Extensions[i] )
ffc0b374: 80 7f 01 48 lwz r3,328(r31)
ffc0b378: 2f 83 00 00 cmpwi cr7,r3,0
ffc0b37c: 41 9e 00 08 beq- cr7,ffc0b384 <_Thread_Initialize+0x194><== ALWAYS TAKEN
_Workspace_Free( the_thread->API_Extensions[i] );
ffc0b380: 48 00 18 25 bl ffc0cba4 <_Workspace_Free> <== NOT EXECUTED
if ( extensions_area )
ffc0b384: 41 8e 00 0c beq- cr3,ffc0b390 <_Thread_Initialize+0x1a0>
(void) _Workspace_Free( extensions_area );
ffc0b388: 7e e3 bb 78 mr r3,r23
ffc0b38c: 48 00 18 19 bl ffc0cba4 <_Workspace_Free>
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
ffc0b390: 41 92 00 0c beq- cr4,ffc0b39c <_Thread_Initialize+0x1ac>
(void) _Workspace_Free( fp_area );
ffc0b394: 7f 83 e3 78 mr r3,r28
ffc0b398: 48 00 18 0d bl ffc0cba4 <_Workspace_Free>
#endif
_Thread_Stack_Free( the_thread );
ffc0b39c: 7f e3 fb 78 mr r3,r31
ffc0b3a0: 48 00 0b 5d bl ffc0befc <_Thread_Stack_Free>
return false;
}
ffc0b3a4: 80 01 00 34 lwz r0,52(r1)
ffc0b3a8: 81 81 00 08 lwz r12,8(r1)
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( fp_area )
(void) _Workspace_Free( fp_area );
#endif
_Thread_Stack_Free( the_thread );
ffc0b3ac: 38 60 00 00 li r3,0
return false;
}
ffc0b3b0: 7c 08 03 a6 mtlr r0
ffc0b3b4: 82 e1 00 0c lwz r23,12(r1)
ffc0b3b8: 83 01 00 10 lwz r24,16(r1)
ffc0b3bc: 7d 81 81 20 mtcrf 24,r12
ffc0b3c0: 83 21 00 14 lwz r25,20(r1)
ffc0b3c4: 83 41 00 18 lwz r26,24(r1)
ffc0b3c8: 83 61 00 1c lwz r27,28(r1)
ffc0b3cc: 83 81 00 20 lwz r28,32(r1)
ffc0b3d0: 83 a1 00 24 lwz r29,36(r1)
ffc0b3d4: 83 c1 00 28 lwz r30,40(r1)
ffc0b3d8: 83 e1 00 2c lwz r31,44(r1)
ffc0b3dc: 38 21 00 30 addi r1,r1,48
ffc0b3e0: 4e 80 00 20 blr
if ( fp_area )
(void) _Workspace_Free( fp_area );
#endif
_Thread_Stack_Free( the_thread );
return false;
ffc0b3e4: 38 60 00 00 li r3,0
}
ffc0b3e8: 80 01 00 34 lwz r0,52(r1)
ffc0b3ec: 81 81 00 08 lwz r12,8(r1)
ffc0b3f0: 7c 08 03 a6 mtlr r0
ffc0b3f4: 82 e1 00 0c lwz r23,12(r1)
ffc0b3f8: 83 01 00 10 lwz r24,16(r1)
ffc0b3fc: 7d 81 81 20 mtcrf 24,r12
ffc0b400: 83 21 00 14 lwz r25,20(r1)
ffc0b404: 83 41 00 18 lwz r26,24(r1)
ffc0b408: 83 61 00 1c lwz r27,28(r1)
ffc0b40c: 83 81 00 20 lwz r28,32(r1)
ffc0b410: 83 a1 00 24 lwz r29,36(r1)
ffc0b414: 83 c1 00 28 lwz r30,40(r1)
ffc0b418: 83 e1 00 2c lwz r31,44(r1)
ffc0b41c: 38 21 00 30 addi r1,r1,48
ffc0b420: 4e 80 00 20 blr
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
ffc0b424: 38 60 01 08 li r3,264
ffc0b428: 48 00 17 49 bl ffc0cb70 <_Workspace_Allocate>
if ( !fp_area )
ffc0b42c: 2e 03 00 00 cmpwi cr4,r3,0
/*
* Allocate the floating point area for this thread
*/
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( is_fp ) {
fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );
ffc0b430: 7c 7c 1b 78 mr r28,r3
if ( !fp_area )
ffc0b434: 7c 69 1b 78 mr r9,r3
ffc0b438: 40 92 fe 60 bne+ cr4,ffc0b298 <_Thread_Initialize+0xa8>
ffc0b43c: 3a e0 00 00 li r23,0
ffc0b440: 4d 90 00 00 mcrf cr3,cr4
ffc0b444: 4b ff ff 00 b ffc0b344 <_Thread_Initialize+0x154>
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
extensions_area = _Workspace_Allocate(
ffc0b448: 39 6b 00 01 addi r11,r11,1
ffc0b44c: 55 63 10 3a rlwinm r3,r11,2,0,29
ffc0b450: 48 00 17 21 bl ffc0cb70 <_Workspace_Allocate>
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
ffc0b454: 2d 83 00 00 cmpwi cr3,r3,0
ffc0b458: 7c 77 1b 78 mr r23,r3
ffc0b45c: 41 8e 00 40 beq- cr3,ffc0b49c <_Thread_Initialize+0x2ac>
goto failed;
}
the_thread->extensions = (void **) extensions_area;
ffc0b460: 90 7f 01 4c stw r3,332(r31)
ffc0b464: 7c 6b 1b 78 mr r11,r3
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
ffc0b468: 38 00 00 00 li r0,0
ffc0b46c: 81 1e 27 58 lwz r8,10072(r30)
ffc0b470: 39 20 00 00 li r9,0
the_thread->extensions[i] = NULL;
ffc0b474: 39 40 00 00 li r10,0
ffc0b478: 48 00 00 08 b ffc0b480 <_Thread_Initialize+0x290>
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
ffc0b47c: 81 7f 01 4c lwz r11,332(r31)
ffc0b480: 39 29 00 01 addi r9,r9,1
ffc0b484: 7f 88 48 40 cmplw cr7,r8,r9
the_thread->extensions[i] = NULL;
ffc0b488: 54 00 10 3a rlwinm r0,r0,2,0,29
ffc0b48c: 7d 4b 01 2e stwx r10,r11,r0
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
ffc0b490: 7d 20 4b 78 mr r0,r9
ffc0b494: 40 9c ff e8 bge+ cr7,ffc0b47c <_Thread_Initialize+0x28c>
ffc0b498: 4b ff fe 34 b ffc0b2cc <_Thread_Initialize+0xdc>
ffc0b49c: 2e 1c 00 00 cmpwi cr4,r28,0
ffc0b4a0: 4b ff fe a4 b ffc0b344 <_Thread_Initialize+0x154>
ffc0f894 <_Thread_Reset_timeslice>:
{
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
ffc0f894: 3d 20 00 00 lis r9,0
ffc0f898: 81 29 27 6c lwz r9,10092(r9)
ready = executing->ready;
ffc0f89c: 81 69 00 8c lwz r11,140(r9)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0f8a0: 7c 00 00 a6 mfmsr r0
ffc0f8a4: 7d 50 42 a6 mfsprg r10,0
ffc0f8a8: 7c 0a 50 78 andc r10,r0,r10
ffc0f8ac: 7d 40 01 24 mtmsr r10
_ISR_Disable( level );
if ( _Chain_Has_only_one_node( ready ) ) {
ffc0f8b0: 81 0b 00 00 lwz r8,0(r11)
ffc0f8b4: 81 4b 00 08 lwz r10,8(r11)
ffc0f8b8: 7f 88 50 00 cmpw cr7,r8,r10
ffc0f8bc: 41 9e 00 78 beq- cr7,ffc0f934 <_Thread_Reset_timeslice+0xa0>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
ffc0f8c0: 81 49 00 00 lwz r10,0(r9)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
ffc0f8c4: 38 eb 00 04 addi r7,r11,4
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
ffc0f8c8: 81 09 00 04 lwz r8,4(r9)
next->previous = previous;
previous->next = next;
ffc0f8cc: 91 48 00 00 stw r10,0(r8)
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
ffc0f8d0: 91 0a 00 04 stw r8,4(r10)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
ffc0f8d4: 90 e9 00 00 stw r7,0(r9)
old_last_node = the_chain->last;
ffc0f8d8: 81 4b 00 08 lwz r10,8(r11)
the_chain->last = the_node;
ffc0f8dc: 91 2b 00 08 stw r9,8(r11)
old_last_node->next = the_node;
the_node->previous = old_last_node;
ffc0f8e0: 91 49 00 04 stw r10,4(r9)
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
ffc0f8e4: 91 2a 00 00 stw r9,0(r10)
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0f8e8: 7d 40 00 a6 mfmsr r10
ffc0f8ec: 7c 00 01 24 mtmsr r0
ffc0f8f0: 7d 40 01 24 mtmsr r10
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
ffc0f8f4: 3d 40 00 00 lis r10,0
ffc0f8f8: 81 0a 27 48 lwz r8,10056(r10)
ffc0f8fc: 7f 89 40 00 cmpw cr7,r9,r8
ffc0f900: 41 9e 00 18 beq- cr7,ffc0f918 <_Thread_Reset_timeslice+0x84><== ALWAYS TAKEN
_Thread_Heir = (Thread_Control *) ready->first;
_Context_Switch_necessary = true;
ffc0f904: 39 60 00 01 li r11,1 <== NOT EXECUTED
ffc0f908: 3d 20 00 00 lis r9,0 <== NOT EXECUTED
ffc0f90c: 99 69 27 7c stb r11,10108(r9) <== NOT EXECUTED
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0f910: 7c 00 01 24 mtmsr r0 <== NOT EXECUTED
ffc0f914: 4e 80 00 20 blr <== NOT EXECUTED
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
_Thread_Heir = (Thread_Control *) ready->first;
ffc0f918: 81 2b 00 00 lwz r9,0(r11)
_Context_Switch_necessary = true;
ffc0f91c: 39 60 00 01 li r11,1
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
_Thread_Heir = (Thread_Control *) ready->first;
ffc0f920: 91 2a 27 48 stw r9,10056(r10)
_Context_Switch_necessary = true;
ffc0f924: 3d 20 00 00 lis r9,0
ffc0f928: 99 69 27 7c stb r11,10108(r9)
ffc0f92c: 7c 00 01 24 mtmsr r0
ffc0f930: 4e 80 00 20 blr
ffc0f934: 7c 00 01 24 mtmsr r0
ffc0f938: 4e 80 00 20 blr
ffc0ccac <_Thread_Restart>:
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
ffc0ccac: 94 21 ff e8 stwu r1,-24(r1)
ffc0ccb0: 7c 08 02 a6 mflr r0
ffc0ccb4: 90 01 00 1c stw r0,28(r1)
if ( !_States_Is_dormant( the_thread->current_state ) ) {
ffc0ccb8: 80 03 00 10 lwz r0,16(r3)
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
ffc0ccbc: 93 e1 00 14 stw r31,20(r1)
ffc0ccc0: 7c 7f 1b 78 mr r31,r3
if ( !_States_Is_dormant( the_thread->current_state ) ) {
ffc0ccc4: 70 09 00 01 andi. r9,r0,1
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
ffc0ccc8: 93 c1 00 10 stw r30,16(r1)
if ( !_States_Is_dormant( the_thread->current_state ) ) {
ffc0cccc: 38 00 00 00 li r0,0
ffc0ccd0: 41 82 00 20 beq- ffc0ccf0 <_Thread_Restart+0x44>
return true;
}
return false;
}
ffc0ccd4: 7c 03 03 78 mr r3,r0
ffc0ccd8: 80 01 00 1c lwz r0,28(r1)
ffc0ccdc: 83 c1 00 10 lwz r30,16(r1)
ffc0cce0: 7c 08 03 a6 mtlr r0
ffc0cce4: 83 e1 00 14 lwz r31,20(r1)
ffc0cce8: 38 21 00 18 addi r1,r1,24
ffc0ccec: 4e 80 00 20 blr
Thread_Entry_numeric_type numeric_argument
)
{
if ( !_States_Is_dormant( the_thread->current_state ) ) {
_Thread_Set_transient( the_thread );
ffc0ccf0: 90 81 00 08 stw r4,8(r1)
_Thread_Ready( the_thread );
_User_extensions_Thread_restart( the_thread );
if ( _Thread_Is_executing ( the_thread ) )
ffc0ccf4: 3f c0 00 00 lis r30,0
Thread_Entry_numeric_type numeric_argument
)
{
if ( !_States_Is_dormant( the_thread->current_state ) ) {
_Thread_Set_transient( the_thread );
ffc0ccf8: 90 a1 00 0c stw r5,12(r1)
ffc0ccfc: 48 00 01 e5 bl ffc0cee0 <_Thread_Set_transient>
_Thread_Reset( the_thread, pointer_argument, numeric_argument );
ffc0cd00: 7f e3 fb 78 mr r3,r31
ffc0cd04: 80 81 00 08 lwz r4,8(r1)
ffc0cd08: 80 a1 00 0c lwz r5,12(r1)
ffc0cd0c: 48 00 3e 6d bl ffc10b78 <_Thread_Reset>
_Thread_Load_environment( the_thread );
ffc0cd10: 7f e3 fb 78 mr r3,r31
ffc0cd14: 48 00 3a 19 bl ffc1072c <_Thread_Load_environment>
_Thread_Ready( the_thread );
ffc0cd18: 7f e3 fb 78 mr r3,r31
ffc0cd1c: 48 00 3d 81 bl ffc10a9c <_Thread_Ready>
_User_extensions_Thread_restart( the_thread );
ffc0cd20: 7f e3 fb 78 mr r3,r31
ffc0cd24: 48 00 0a c1 bl ffc0d7e4 <_User_extensions_Thread_restart>
if ( _Thread_Is_executing ( the_thread ) )
ffc0cd28: 81 3e 27 98 lwz r9,10136(r30)
ffc0cd2c: 38 00 00 01 li r0,1
ffc0cd30: 7f 9f 48 00 cmpw cr7,r31,r9
ffc0cd34: 40 9e ff a0 bne+ cr7,ffc0ccd4 <_Thread_Restart+0x28>
*/
RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void )
{
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( _Thread_Executing->fp_context != NULL )
ffc0cd38: 80 1f 01 38 lwz r0,312(r31)
ffc0cd3c: 2f 80 00 00 cmpwi cr7,r0,0
ffc0cd40: 41 9e 00 10 beq- cr7,ffc0cd50 <_Thread_Restart+0xa4> <== NEVER TAKEN
_Context_Restore_fp( &_Thread_Executing->fp_context );
ffc0cd44: 38 7f 01 38 addi r3,r31,312
ffc0cd48: 48 01 35 f9 bl ffc20340 <_CPU_Context_restore_fp>
ffc0cd4c: 83 fe 27 98 lwz r31,10136(r30)
#endif
_CPU_Context_Restart_self( &_Thread_Executing->Registers );
ffc0cd50: 38 7f 00 d8 addi r3,r31,216
ffc0cd54: 48 01 37 ad bl ffc20500 <_CPU_Context_restore>
ffc0cd58: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc0cd5c: 4b ff ff 78 b ffc0ccd4 <_Thread_Restart+0x28> <== NOT EXECUTED
ffc107f8 <_Thread_Resume>:
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc107f8: 7d 20 00 a6 mfmsr r9
ffc107fc: 7c 10 42 a6 mfsprg r0,0
ffc10800: 7d 20 00 78 andc r0,r9,r0
ffc10804: 7c 00 01 24 mtmsr r0
_ISR_Enable( level );
return;
}
#endif
current_state = the_thread->current_state;
ffc10808: 80 03 00 10 lwz r0,16(r3)
if ( current_state & STATES_SUSPENDED ) {
ffc1080c: 70 0b 00 02 andi. r11,r0,2
ffc10810: 41 82 00 a0 beq- ffc108b0 <_Thread_Resume+0xb8> <== NEVER TAKEN
ffc10814: 54 00 07 fa rlwinm r0,r0,0,31,29
current_state =
the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
if ( _States_Is_ready( current_state ) ) {
ffc10818: 2f 80 00 00 cmpwi cr7,r0,0
}
#endif
current_state = the_thread->current_state;
if ( current_state & STATES_SUSPENDED ) {
current_state =
ffc1081c: 90 03 00 10 stw r0,16(r3)
the_thread->current_state = _States_Clear(STATES_SUSPENDED, current_state);
if ( _States_Is_ready( current_state ) ) {
ffc10820: 40 9e 00 90 bne- cr7,ffc108b0 <_Thread_Resume+0xb8>
RTEMS_INLINE_ROUTINE void _Priority_Add_to_bit_map (
Priority_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
ffc10824: 81 43 00 90 lwz r10,144(r3)
ffc10828: 80 03 00 98 lwz r0,152(r3)
ffc1082c: 81 0a 00 00 lwz r8,0(r10)
_Priority_Add_to_bit_map( &the_thread->Priority_map );
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
ffc10830: 81 63 00 8c lwz r11,140(r3)
ffc10834: 7d 00 03 78 or r0,r8,r0
ffc10838: 90 0a 00 00 stw r0,0(r10)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
ffc1083c: 38 0b 00 04 addi r0,r11,4
_Priority_Major_bit_map |= the_priority_map->ready_major;
ffc10840: 3d 00 00 00 lis r8,0
ffc10844: 90 03 00 00 stw r0,0(r3)
ffc10848: 80 e8 27 80 lwz r7,10112(r8)
ffc1084c: 80 03 00 94 lwz r0,148(r3)
old_last_node = the_chain->last;
ffc10850: 81 4b 00 08 lwz r10,8(r11)
ffc10854: 7c e0 03 78 or r0,r7,r0
the_chain->last = the_node;
ffc10858: 90 6b 00 08 stw r3,8(r11)
ffc1085c: 90 08 27 80 stw r0,10112(r8)
old_last_node->next = the_node;
the_node->previous = old_last_node;
ffc10860: 91 43 00 04 stw r10,4(r3)
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
ffc10864: 90 6a 00 00 stw r3,0(r10)
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc10868: 7c 00 00 a6 mfmsr r0
ffc1086c: 7d 20 01 24 mtmsr r9
ffc10870: 7c 00 01 24 mtmsr r0
_ISR_Flash( level );
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
ffc10874: 3d 60 00 00 lis r11,0
ffc10878: 80 03 00 14 lwz r0,20(r3)
ffc1087c: 81 4b 27 68 lwz r10,10088(r11)
ffc10880: 81 4a 00 14 lwz r10,20(r10)
ffc10884: 7f 80 50 40 cmplw cr7,r0,r10
ffc10888: 40 9c 00 28 bge- cr7,ffc108b0 <_Thread_Resume+0xb8>
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
ffc1088c: 3d 40 00 00 lis r10,0
_Chain_Append_unprotected(the_thread->ready, &the_thread->Object.Node);
_ISR_Flash( level );
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
_Thread_Heir = the_thread;
ffc10890: 90 6b 27 68 stw r3,10088(r11)
if ( _Thread_Executing->is_preemptible ||
ffc10894: 81 4a 27 8c lwz r10,10124(r10)
ffc10898: 89 6a 00 75 lbz r11,117(r10)
ffc1089c: 2f 8b 00 00 cmpwi cr7,r11,0
ffc108a0: 41 9e 00 18 beq- cr7,ffc108b8 <_Thread_Resume+0xc0>
the_thread->current_priority == 0 )
_Context_Switch_necessary = true;
ffc108a4: 38 00 00 01 li r0,1
ffc108a8: 3d 60 00 00 lis r11,0
ffc108ac: 98 0b 27 9c stb r0,10140(r11)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc108b0: 7d 20 01 24 mtmsr r9
}
}
}
_ISR_Enable( level );
}
ffc108b4: 4e 80 00 20 blr
_ISR_Flash( level );
if ( the_thread->current_priority < _Thread_Heir->current_priority ) {
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
ffc108b8: 2f 80 00 00 cmpwi cr7,r0,0
ffc108bc: 41 9e ff e8 beq+ cr7,ffc108a4 <_Thread_Resume+0xac> <== NEVER TAKEN
ffc108c0: 4b ff ff f0 b ffc108b0 <_Thread_Resume+0xb8>
ffc0c1c4 <_Thread_Yield_processor>:
{
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
ffc0c1c4: 3d 20 00 00 lis r9,0
ffc0c1c8: 81 29 27 6c lwz r9,10092(r9)
ready = executing->ready;
ffc0c1cc: 81 69 00 8c lwz r11,140(r9)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0c1d0: 7c 00 00 a6 mfmsr r0
ffc0c1d4: 7d 50 42 a6 mfsprg r10,0
ffc0c1d8: 7c 0a 50 78 andc r10,r0,r10
ffc0c1dc: 7d 40 01 24 mtmsr r10
_ISR_Disable( level );
if ( !_Chain_Has_only_one_node( ready ) ) {
ffc0c1e0: 81 0b 00 00 lwz r8,0(r11)
ffc0c1e4: 81 4b 00 08 lwz r10,8(r11)
ffc0c1e8: 7f 88 50 00 cmpw cr7,r8,r10
ffc0c1ec: 41 9e 00 68 beq- cr7,ffc0c254 <_Thread_Yield_processor+0x90>
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
ffc0c1f0: 81 49 00 00 lwz r10,0(r9)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
ffc0c1f4: 38 eb 00 04 addi r7,r11,4
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
ffc0c1f8: 81 09 00 04 lwz r8,4(r9)
next->previous = previous;
previous->next = next;
ffc0c1fc: 91 48 00 00 stw r10,0(r8)
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
ffc0c200: 91 0a 00 04 stw r8,4(r10)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
ffc0c204: 90 e9 00 00 stw r7,0(r9)
old_last_node = the_chain->last;
ffc0c208: 81 4b 00 08 lwz r10,8(r11)
the_chain->last = the_node;
ffc0c20c: 91 2b 00 08 stw r9,8(r11)
old_last_node->next = the_node;
the_node->previous = old_last_node;
ffc0c210: 91 49 00 04 stw r10,4(r9)
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
ffc0c214: 91 2a 00 00 stw r9,0(r10)
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0c218: 7d 40 00 a6 mfmsr r10
ffc0c21c: 7c 00 01 24 mtmsr r0
ffc0c220: 7d 40 01 24 mtmsr r10
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
ffc0c224: 3d 40 00 00 lis r10,0
ffc0c228: 81 0a 27 48 lwz r8,10056(r10)
ffc0c22c: 7f 89 40 00 cmpw cr7,r9,r8
ffc0c230: 41 9e 00 18 beq- cr7,ffc0c248 <_Thread_Yield_processor+0x84><== ALWAYS TAKEN
_Thread_Heir = (Thread_Control *) ready->first;
_Context_Switch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
_Context_Switch_necessary = true;
ffc0c234: 39 60 00 01 li r11,1
ffc0c238: 3d 20 00 00 lis r9,0
ffc0c23c: 99 69 27 7c stb r11,10108(r9)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0c240: 7c 00 01 24 mtmsr r0
_ISR_Enable( level );
}
ffc0c244: 4e 80 00 20 blr
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
_Thread_Heir = (Thread_Control *) ready->first;
ffc0c248: 81 2b 00 00 lwz r9,0(r11)
ffc0c24c: 91 2a 27 48 stw r9,10056(r10)
ffc0c250: 4b ff ff e4 b ffc0c234 <_Thread_Yield_processor+0x70>
_Context_Switch_necessary = true;
}
else if ( !_Thread_Is_heir( executing ) )
ffc0c254: 3d 60 00 00 lis r11,0
ffc0c258: 81 6b 27 48 lwz r11,10056(r11)
ffc0c25c: 7f 89 58 00 cmpw cr7,r9,r11
ffc0c260: 40 9e ff d4 bne+ cr7,ffc0c234 <_Thread_Yield_processor+0x70><== NEVER TAKEN
ffc0c264: 4b ff ff dc b ffc0c240 <_Thread_Yield_processor+0x7c>
ffc0b870 <_Thread_queue_Enqueue_priority>:
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
ffc0b870: 80 04 00 14 lwz r0,20(r4)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc0b874: 39 04 00 3c addi r8,r4,60
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
ffc0b878: 94 21 ff f0 stwu r1,-16(r1)
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc0b87c: 39 64 00 38 addi r11,r4,56
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
ffc0b880: 70 09 00 20 andi. r9,r0,32
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
ffc0b884: 54 0a d1 be rlwinm r10,r0,26,6,31
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc0b888: 91 04 00 38 stw r8,56(r4)
ffc0b88c: 1d 4a 00 0c mulli r10,r10,12
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
ffc0b890: 93 e1 00 0c stw r31,12(r1)
the_chain->permanent_null = NULL;
ffc0b894: 39 00 00 00 li r8,0
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
block_state = the_thread_queue->state;
ffc0b898: 81 23 00 38 lwz r9,56(r3)
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
ffc0b89c: 7d 43 52 14 add r10,r3,r10
ffc0b8a0: 91 04 00 3c stw r8,60(r4)
the_chain->last = _Chain_Head(the_chain);
ffc0b8a4: 91 64 00 40 stw r11,64(r4)
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
ffc0b8a8: 40 82 00 7c bne- ffc0b924 <_Thread_queue_Enqueue_priority+0xb4>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc0b8ac: 39 8a 00 04 addi r12,r10,4
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0b8b0: 7c c0 00 a6 mfmsr r6
ffc0b8b4: 7d 70 42 a6 mfsprg r11,0
ffc0b8b8: 7c cb 58 78 andc r11,r6,r11
ffc0b8bc: 7d 60 01 24 mtmsr r11
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->first;
ffc0b8c0: 81 6a 00 00 lwz r11,0(r10)
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
ffc0b8c4: 7f 8b 60 00 cmpw cr7,r11,r12
ffc0b8c8: 40 be 00 2c bne+ cr7,ffc0b8f4 <_Thread_queue_Enqueue_priority+0x84>
ffc0b8cc: 48 00 01 78 b ffc0ba44 <_Thread_queue_Enqueue_priority+0x1d4>
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0b8d0: 7c e0 00 a6 mfmsr r7
ffc0b8d4: 7c c0 01 24 mtmsr r6
ffc0b8d8: 7c e0 01 24 mtmsr r7
search_priority = search_thread->current_priority;
if ( priority <= search_priority )
break;
#endif
_ISR_Flash( level );
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
ffc0b8dc: 80 eb 00 10 lwz r7,16(r11)
ffc0b8e0: 7d 3f 38 39 and. r31,r9,r7
ffc0b8e4: 41 82 00 f4 beq- ffc0b9d8 <_Thread_queue_Enqueue_priority+0x168><== NEVER TAKEN
_ISR_Enable( level );
goto restart_forward_search;
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
ffc0b8e8: 81 6b 00 00 lwz r11,0(r11)
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->first;
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
ffc0b8ec: 7f 8b 60 00 cmpw cr7,r11,r12
ffc0b8f0: 41 9e 00 10 beq- cr7,ffc0b900 <_Thread_queue_Enqueue_priority+0x90>
search_priority = search_thread->current_priority;
ffc0b8f4: 81 0b 00 14 lwz r8,20(r11)
if ( priority <= search_priority )
ffc0b8f8: 7f 80 40 40 cmplw cr7,r0,r8
ffc0b8fc: 41 9d ff d4 bgt+ cr7,ffc0b8d0 <_Thread_queue_Enqueue_priority+0x60>
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->first;
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
ffc0b900: 7c ca 33 78 mr r10,r6
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
ffc0b904: 81 23 00 30 lwz r9,48(r3)
ffc0b908: 2f 89 00 01 cmpwi cr7,r9,1
ffc0b90c: 41 9e 00 d4 beq- cr7,ffc0b9e0 <_Thread_queue_Enqueue_priority+0x170>
* For example, the blocking thread could have been given
* the mutex by an ISR or timed out.
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
ffc0b910: 91 45 00 00 stw r10,0(r5)
return the_thread_queue->sync_state;
ffc0b914: 7d 23 4b 78 mr r3,r9
}
ffc0b918: 83 e1 00 0c lwz r31,12(r1)
ffc0b91c: 38 21 00 10 addi r1,r1,16
ffc0b920: 4e 80 00 20 blr
ffc0b924: 3d 80 00 00 lis r12,0
ffc0b928: 39 8c 26 64 addi r12,r12,9828
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
ffc0b92c: 89 0c 00 00 lbz r8,0(r12)
ffc0b930: 39 08 00 01 addi r8,r8,1
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0b934: 7c c0 00 a6 mfmsr r6
ffc0b938: 7d 70 42 a6 mfsprg r11,0
ffc0b93c: 7c cb 58 78 andc r11,r6,r11
ffc0b940: 7d 60 01 24 mtmsr r11
_ISR_Disable( level );
search_thread = (Thread_Control *) header->last;
ffc0b944: 81 6a 00 08 lwz r11,8(r10)
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
ffc0b948: 7f 8b 50 00 cmpw cr7,r11,r10
ffc0b94c: 40 be 00 2c bne+ cr7,ffc0b978 <_Thread_queue_Enqueue_priority+0x108>
ffc0b950: 48 00 00 34 b ffc0b984 <_Thread_queue_Enqueue_priority+0x114>
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0b954: 7c e0 00 a6 mfmsr r7
ffc0b958: 7c c0 01 24 mtmsr r6
ffc0b95c: 7c e0 01 24 mtmsr r7
search_priority = search_thread->current_priority;
if ( priority >= search_priority )
break;
#endif
_ISR_Flash( level );
if ( !_States_Are_set( search_thread->current_state, block_state) ) {
ffc0b960: 80 eb 00 10 lwz r7,16(r11)
ffc0b964: 7d 3f 38 39 and. r31,r9,r7
ffc0b968: 41 82 00 68 beq- ffc0b9d0 <_Thread_queue_Enqueue_priority+0x160>
_ISR_Enable( level );
goto restart_reverse_search;
}
search_thread = (Thread_Control *)
ffc0b96c: 81 6b 00 04 lwz r11,4(r11)
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->last;
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
ffc0b970: 7f 8b 50 00 cmpw cr7,r11,r10
ffc0b974: 41 9e 00 10 beq- cr7,ffc0b984 <_Thread_queue_Enqueue_priority+0x114>
search_priority = search_thread->current_priority;
ffc0b978: 81 0b 00 14 lwz r8,20(r11)
if ( priority >= search_priority )
ffc0b97c: 7f 80 40 40 cmplw cr7,r0,r8
ffc0b980: 41 9c ff d4 blt+ cr7,ffc0b954 <_Thread_queue_Enqueue_priority+0xe4>
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
ffc0b984: 81 23 00 30 lwz r9,48(r3)
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->last;
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
ffc0b988: 7c ca 33 78 mr r10,r6
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
ffc0b98c: 2f 89 00 01 cmpwi cr7,r9,1
ffc0b990: 40 9e ff 80 bne+ cr7,ffc0b910 <_Thread_queue_Enqueue_priority+0xa0>
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( priority == search_priority )
ffc0b994: 7f 80 40 00 cmpw cr7,r0,r8
if ( the_thread_queue->sync_state !=
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
ffc0b998: 38 00 00 00 li r0,0
ffc0b99c: 90 03 00 30 stw r0,48(r3)
if ( priority == search_priority )
ffc0b9a0: 41 9e 00 7c beq- cr7,ffc0ba1c <_Thread_queue_Enqueue_priority+0x1ac>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
ffc0b9a4: 81 2b 00 00 lwz r9,0(r11)
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
ffc0b9a8: 91 64 00 04 stw r11,4(r4)
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
ffc0b9ac: 91 24 00 00 stw r9,0(r4)
the_node->previous = search_node;
search_node->next = the_node;
next_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
ffc0b9b0: 90 64 00 44 stw r3,68(r4)
next_node = search_node->next;
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
search_node->next = the_node;
ffc0b9b4: 90 8b 00 00 stw r4,0(r11)
next_node->previous = the_node;
ffc0b9b8: 90 89 00 04 stw r4,4(r9)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0b9bc: 7c c0 01 24 mtmsr r6
ffc0b9c0: 38 60 00 01 li r3,1
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return the_thread_queue->sync_state;
}
ffc0b9c4: 83 e1 00 0c lwz r31,12(r1)
ffc0b9c8: 38 21 00 10 addi r1,r1,16
ffc0b9cc: 4e 80 00 20 blr
ffc0b9d0: 7c c0 01 24 mtmsr r6
ffc0b9d4: 4b ff ff 58 b ffc0b92c <_Thread_queue_Enqueue_priority+0xbc>
ffc0b9d8: 7c c0 01 24 mtmsr r6 <== NOT EXECUTED
ffc0b9dc: 4b ff fe d4 b ffc0b8b0 <_Thread_queue_Enqueue_priority+0x40><== NOT EXECUTED
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( priority == search_priority )
ffc0b9e0: 7f 80 40 00 cmpw cr7,r0,r8
if ( the_thread_queue->sync_state !=
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
ffc0b9e4: 38 00 00 00 li r0,0
ffc0b9e8: 90 03 00 30 stw r0,48(r3)
if ( priority == search_priority )
ffc0b9ec: 41 9e 00 30 beq- cr7,ffc0ba1c <_Thread_queue_Enqueue_priority+0x1ac>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
previous_node = search_node->previous;
ffc0b9f0: 81 2b 00 04 lwz r9,4(r11)
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
ffc0b9f4: 91 64 00 00 stw r11,0(r4)
the_node->previous = previous_node;
ffc0b9f8: 91 24 00 04 stw r9,4(r4)
previous_node->next = the_node;
search_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
ffc0b9fc: 90 64 00 44 stw r3,68(r4)
previous_node = search_node->previous;
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
the_node->previous = previous_node;
previous_node->next = the_node;
ffc0ba00: 90 89 00 00 stw r4,0(r9)
search_node->previous = the_node;
ffc0ba04: 90 8b 00 04 stw r4,4(r11)
ffc0ba08: 7c c0 01 24 mtmsr r6
ffc0ba0c: 38 60 00 01 li r3,1
*
* WARNING! Returning with interrupts disabled!
*/
*level_p = level;
return the_thread_queue->sync_state;
}
ffc0ba10: 83 e1 00 0c lwz r31,12(r1)
ffc0ba14: 38 21 00 10 addi r1,r1,16
ffc0ba18: 4e 80 00 20 blr
ffc0ba1c: 39 6b 00 3c addi r11,r11,60
the_node->next = search_node;
the_node->previous = previous_node;
previous_node->next = the_node;
search_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
ffc0ba20: 90 64 00 44 stw r3,68(r4)
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
equal_priority: /* add at end of priority group */
search_node = _Chain_Tail( &search_thread->Wait.Block2n );
previous_node = search_node->previous;
ffc0ba24: 81 2b 00 04 lwz r9,4(r11)
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
ffc0ba28: 91 64 00 00 stw r11,0(r4)
the_node->previous = previous_node;
ffc0ba2c: 91 24 00 04 stw r9,4(r4)
previous_node->next = the_node;
ffc0ba30: 90 89 00 00 stw r4,0(r9)
search_node->previous = the_node;
ffc0ba34: 90 8b 00 04 stw r4,4(r11)
ffc0ba38: 7d 40 01 24 mtmsr r10
ffc0ba3c: 38 60 00 01 li r3,1
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
ffc0ba40: 4b ff fe d8 b ffc0b918 <_Thread_queue_Enqueue_priority+0xa8>
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) header->first;
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
ffc0ba44: 7c ca 33 78 mr r10,r6
ffc0ba48: 39 00 ff ff li r8,-1
ffc0ba4c: 4b ff fe b8 b ffc0b904 <_Thread_queue_Enqueue_priority+0x94>
ffc0bb38 <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
ffc0bb38: 94 21 ff d8 stwu r1,-40(r1)
ffc0bb3c: 7c 08 02 a6 mflr r0
ffc0bb40: 93 e1 00 24 stw r31,36(r1)
/*
* Just in case the thread really wasn't blocked on a thread queue
* when we get here.
*/
if ( !the_thread_queue )
ffc0bb44: 7c 7f 1b 79 mr. r31,r3
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
ffc0bb48: 93 c1 00 20 stw r30,32(r1)
ffc0bb4c: 7c 9e 23 78 mr r30,r4
ffc0bb50: 90 01 00 2c stw r0,44(r1)
ffc0bb54: 93 a1 00 1c stw r29,28(r1)
/*
* Just in case the thread really wasn't blocked on a thread queue
* when we get here.
*/
if ( !the_thread_queue )
ffc0bb58: 41 82 00 10 beq- ffc0bb68 <_Thread_queue_Requeue+0x30> <== NEVER TAKEN
/*
* If queueing by FIFO, there is nothing to do. This only applies to
* priority blocking discipline.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY ) {
ffc0bb5c: 80 1f 00 34 lwz r0,52(r31)
ffc0bb60: 2f 80 00 01 cmpwi cr7,r0,1
ffc0bb64: 41 9e 00 20 beq- cr7,ffc0bb84 <_Thread_queue_Requeue+0x4c><== ALWAYS TAKEN
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
}
_ISR_Enable( level );
}
}
ffc0bb68: 80 01 00 2c lwz r0,44(r1) <== NOT EXECUTED
ffc0bb6c: 83 a1 00 1c lwz r29,28(r1) <== NOT EXECUTED
ffc0bb70: 7c 08 03 a6 mtlr r0 <== NOT EXECUTED
ffc0bb74: 83 c1 00 20 lwz r30,32(r1) <== NOT EXECUTED
ffc0bb78: 83 e1 00 24 lwz r31,36(r1) <== NOT EXECUTED
ffc0bb7c: 38 21 00 28 addi r1,r1,40 <== NOT EXECUTED
ffc0bb80: 4e 80 00 20 blr <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0bb84: 7f a0 00 a6 mfmsr r29
ffc0bb88: 7d 30 42 a6 mfsprg r9,0
ffc0bb8c: 7f a9 48 78 andc r9,r29,r9
ffc0bb90: 7d 20 01 24 mtmsr r9
Thread_queue_Control *tq = the_thread_queue;
ISR_Level level;
ISR_Level level_ignored;
_ISR_Disable( level );
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
ffc0bb94: 3d 60 00 03 lis r11,3
ffc0bb98: 81 24 00 10 lwz r9,16(r4)
ffc0bb9c: 61 6b be e0 ori r11,r11,48864
ffc0bba0: 7d 6a 48 39 and. r10,r11,r9
ffc0bba4: 40 82 00 24 bne- ffc0bbc8 <_Thread_queue_Requeue+0x90> <== ALWAYS TAKEN
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0bba8: 7f a0 01 24 mtmsr r29 <== NOT EXECUTED
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
}
_ISR_Enable( level );
}
}
ffc0bbac: 80 01 00 2c lwz r0,44(r1)
ffc0bbb0: 83 a1 00 1c lwz r29,28(r1)
ffc0bbb4: 7c 08 03 a6 mtlr r0
ffc0bbb8: 83 c1 00 20 lwz r30,32(r1)
ffc0bbbc: 83 e1 00 24 lwz r31,36(r1)
ffc0bbc0: 38 21 00 28 addi r1,r1,40
ffc0bbc4: 4e 80 00 20 blr
ffc0bbc8: 90 1f 00 30 stw r0,48(r31)
ISR_Level level_ignored;
_ISR_Disable( level );
if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
ffc0bbcc: 38 a0 00 01 li r5,1
ffc0bbd0: 48 00 3a 6d bl ffc0f63c <_Thread_queue_Extract_priority_helper>
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
ffc0bbd4: 7f e3 fb 78 mr r3,r31
ffc0bbd8: 7f c4 f3 78 mr r4,r30
ffc0bbdc: 38 a1 00 08 addi r5,r1,8
ffc0bbe0: 4b ff fc 91 bl ffc0b870 <_Thread_queue_Enqueue_priority>
ffc0bbe4: 7f a0 01 24 mtmsr r29
ffc0bbe8: 4b ff ff c4 b ffc0bbac <_Thread_queue_Requeue+0x74>
ffc0bbec <_Thread_queue_Timeout>:
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
ffc0bbec: 94 21 ff e8 stwu r1,-24(r1)
ffc0bbf0: 7c 08 02 a6 mflr r0
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
ffc0bbf4: 38 81 00 08 addi r4,r1,8
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
ffc0bbf8: 90 01 00 1c stw r0,28(r1)
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
ffc0bbfc: 4b ff f5 29 bl ffc0b124 <_Thread_Get>
switch ( location ) {
ffc0bc00: 80 01 00 08 lwz r0,8(r1)
ffc0bc04: 2f 80 00 00 cmpwi cr7,r0,0
ffc0bc08: 40 9e 00 18 bne- cr7,ffc0bc20 <_Thread_queue_Timeout+0x34><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
ffc0bc0c: 48 00 3b 45 bl ffc0f750 <_Thread_queue_Process_timeout>
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
ffc0bc10: 3d 20 00 00 lis r9,0
ffc0bc14: 81 69 27 2c lwz r11,10028(r9)
ffc0bc18: 38 0b ff ff addi r0,r11,-1
ffc0bc1c: 90 09 27 2c stw r0,10028(r9)
_Thread_Unnest_dispatch();
break;
}
}
ffc0bc20: 80 01 00 1c lwz r0,28(r1)
ffc0bc24: 38 21 00 18 addi r1,r1,24
ffc0bc28: 7c 08 03 a6 mtlr r0
ffc0bc2c: 4e 80 00 20 blr
ffc1bb04 <_Timer_server_Body>:
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bb04: 94 21 ff 98 stwu r1,-104(r1)
ffc1bb08: 7c 08 02 a6 mflr r0
ffc1bb0c: 92 a1 00 3c stw r21,60(r1)
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc1bb10: 3a a1 00 08 addi r21,r1,8
ffc1bb14: 90 01 00 6c stw r0,108(r1)
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
ffc1bb18: 38 00 00 00 li r0,0
ffc1bb1c: 92 e1 00 44 stw r23,68(r1)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc1bb20: 3a e1 00 18 addi r23,r1,24
ffc1bb24: 93 41 00 50 stw r26,80(r1)
ffc1bb28: 3b 41 00 0c addi r26,r1,12
ffc1bb2c: 93 81 00 58 stw r28,88(r1)
ffc1bb30: 3b 81 00 14 addi r28,r1,20
ffc1bb34: 92 81 00 38 stw r20,56(r1)
ffc1bb38: 3e 80 00 00 lis r20,0
ffc1bb3c: 3a 94 28 24 addi r20,r20,10276
ffc1bb40: 93 01 00 48 stw r24,72(r1)
ffc1bb44: 3f 00 00 00 lis r24,0
ffc1bb48: 3b 18 28 7c addi r24,r24,10364
ffc1bb4c: 93 21 00 4c stw r25,76(r1)
ffc1bb50: 3f 20 00 00 lis r25,0
ffc1bb54: 3b 39 28 44 addi r25,r25,10308
ffc1bb58: 93 c1 00 60 stw r30,96(r1)
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
ffc1bb5c: 90 01 00 18 stw r0,24(r1)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc1bb60: 93 41 00 08 stw r26,8(r1)
the_chain->permanent_null = NULL;
ffc1bb64: 90 01 00 0c stw r0,12(r1)
the_chain->last = _Chain_Head(the_chain);
ffc1bb68: 92 a1 00 10 stw r21,16(r1)
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc1bb6c: 92 e1 00 14 stw r23,20(r1)
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc1bb70: 93 81 00 1c stw r28,28(r1)
ffc1bb74: 92 01 00 28 stw r16,40(r1)
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
ffc1bb78: 3a 03 00 08 addi r16,r3,8
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bb7c: 92 21 00 2c stw r17,44(r1)
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
ffc1bb80: 3a 23 00 40 addi r17,r3,64
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bb84: 92 41 00 30 stw r18,48(r1)
* the active flag of the timer server is true.
*/
(*watchdog->routine)( watchdog->id, watchdog->user_data );
}
} else {
ts->active = false;
ffc1bb88: 3a 40 00 00 li r18,0
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bb8c: 92 61 00 34 stw r19,52(r1)
_Thread_Set_state( ts->thread, STATES_DELAYING );
_Timer_server_Reset_interval_system_watchdog( ts );
_Timer_server_Reset_tod_system_watchdog( ts );
_Thread_Enable_dispatch();
ts->active = true;
ffc1bb90: 3a 60 00 01 li r19,1
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bb94: 92 c1 00 40 stw r22,64(r1)
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
ffc1bb98: 3a c0 00 00 li r22,0
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bb9c: 93 61 00 54 stw r27,84(r1)
/*
* This path is for normal forward movement and cases where the
* TOD has been set forward.
*/
delta = snapshot - last_snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bba0: 3b 63 00 68 addi r27,r3,104
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bba4: 93 a1 00 5c stw r29,92(r1)
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bba8: 3b a3 00 30 addi r29,r3,48
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
ffc1bbac: 93 e1 00 64 stw r31,100(r1)
ffc1bbb0: 7c 7f 1b 78 mr r31,r3
{
/*
* Afterwards all timer inserts are directed to this chain and the interval
* and TOD chains will be no more modified by other parties.
*/
ts->insert_chain = insert_chain;
ffc1bbb4: 92 bf 00 78 stw r21,120(r31)
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bbb8: 7f a3 eb 78 mr r3,r29
ffc1bbbc: 7f 85 e3 78 mr r5,r28
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
ffc1bbc0: 80 18 00 00 lwz r0,0(r24)
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
ffc1bbc4: 80 9f 00 3c lwz r4,60(r31)
watchdogs->last_snapshot = snapshot;
ffc1bbc8: 90 1f 00 3c stw r0,60(r31)
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bbcc: 7c 84 00 50 subf r4,r4,r0
ffc1bbd0: 48 00 52 ad bl ffc20e7c <_Watchdog_Adjust_to_chain>
static void _Timer_server_Process_tod_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ffc1bbd4: 83 d9 00 00 lwz r30,0(r25)
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
ffc1bbd8: 80 9f 00 74 lwz r4,116(r31)
/*
* Process the seconds chain. Start by checking that the Time
* of Day (TOD) has not been set backwards. If it has then
* we want to adjust the watchdogs->Chain to indicate this.
*/
if ( snapshot > last_snapshot ) {
ffc1bbdc: 7f 9e 20 40 cmplw cr7,r30,r4
ffc1bbe0: 41 9d 00 98 bgt- cr7,ffc1bc78 <_Timer_server_Body+0x174>
* TOD has been set forward.
*/
delta = snapshot - last_snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
} else if ( snapshot < last_snapshot ) {
ffc1bbe4: 41 9c 00 a8 blt- cr7,ffc1bc8c <_Timer_server_Body+0x188>
*/
delta = last_snapshot - snapshot;
_Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta );
}
watchdogs->last_snapshot = snapshot;
ffc1bbe8: 93 df 00 74 stw r30,116(r31)
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
ffc1bbec: 80 7f 00 78 lwz r3,120(r31)
ffc1bbf0: 48 00 0b ad bl ffc1c79c <_Chain_Get>
if ( timer == NULL ) {
ffc1bbf4: 2c 03 00 00 cmpwi r3,0
ffc1bbf8: 41 82 00 34 beq- ffc1bc2c <_Timer_server_Body+0x128>
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
ffc1bbfc: 80 03 00 38 lwz r0,56(r3)
ffc1bc00: 2f 80 00 01 cmpwi cr7,r0,1
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
ffc1bc04: 2f 00 00 03 cmpwi cr6,r0,3
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
ffc1bc08: 41 9e 00 98 beq- cr7,ffc1bca0 <_Timer_server_Body+0x19c>
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
ffc1bc0c: 40 9a ff e0 bne+ cr6,ffc1bbec <_Timer_server_Body+0xe8> <== NEVER TAKEN
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
ffc1bc10: 38 83 00 10 addi r4,r3,16
ffc1bc14: 7f 63 db 78 mr r3,r27
ffc1bc18: 48 00 53 21 bl ffc20f38 <_Watchdog_Insert>
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
ffc1bc1c: 80 7f 00 78 lwz r3,120(r31)
ffc1bc20: 48 00 0b 7d bl ffc1c79c <_Chain_Get>
if ( timer == NULL ) {
ffc1bc24: 2c 03 00 00 cmpwi r3,0
ffc1bc28: 40 82 ff d4 bne+ ffc1bbfc <_Timer_server_Body+0xf8> <== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc1bc2c: 7d 20 00 a6 mfmsr r9
ffc1bc30: 7c 10 42 a6 mfsprg r0,0
ffc1bc34: 7d 20 00 78 andc r0,r9,r0
ffc1bc38: 7c 00 01 24 mtmsr r0
* body loop.
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
if ( _Chain_Is_empty( insert_chain ) ) {
ffc1bc3c: 80 01 00 08 lwz r0,8(r1)
ffc1bc40: 7f 9a 00 00 cmpw cr7,r26,r0
ffc1bc44: 41 9e 00 6c beq- cr7,ffc1bcb0 <_Timer_server_Body+0x1ac><== ALWAYS TAKEN
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc1bc48: 7d 20 01 24 mtmsr r9 <== NOT EXECUTED
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
ffc1bc4c: 80 18 00 00 lwz r0,0(r24) <== NOT EXECUTED
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bc50: 7f a3 eb 78 mr r3,r29 <== NOT EXECUTED
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
ffc1bc54: 80 9f 00 3c lwz r4,60(r31) <== NOT EXECUTED
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bc58: 7f 85 e3 78 mr r5,r28 <== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
ffc1bc5c: 90 1f 00 3c stw r0,60(r31) <== NOT EXECUTED
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bc60: 7c 84 00 50 subf r4,r4,r0 <== NOT EXECUTED
ffc1bc64: 48 00 52 19 bl ffc20e7c <_Watchdog_Adjust_to_chain> <== NOT EXECUTED
static void _Timer_server_Process_tod_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ffc1bc68: 83 d9 00 00 lwz r30,0(r25) <== NOT EXECUTED
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
ffc1bc6c: 80 9f 00 74 lwz r4,116(r31) <== NOT EXECUTED
/*
* Process the seconds chain. Start by checking that the Time
* of Day (TOD) has not been set backwards. If it has then
* we want to adjust the watchdogs->Chain to indicate this.
*/
if ( snapshot > last_snapshot ) {
ffc1bc70: 7f 9e 20 40 cmplw cr7,r30,r4 <== NOT EXECUTED
ffc1bc74: 40 9d ff 70 ble+ cr7,ffc1bbe4 <_Timer_server_Body+0xe0> <== NOT EXECUTED
/*
* This path is for normal forward movement and cases where the
* TOD has been set forward.
*/
delta = snapshot - last_snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1bc78: 7c 84 f0 50 subf r4,r4,r30
ffc1bc7c: 7f 63 db 78 mr r3,r27
ffc1bc80: 7f 85 e3 78 mr r5,r28
ffc1bc84: 48 00 51 f9 bl ffc20e7c <_Watchdog_Adjust_to_chain>
ffc1bc88: 4b ff ff 60 b ffc1bbe8 <_Timer_server_Body+0xe4>
/*
* The current TOD is before the last TOD which indicates that
* TOD has been set backwards.
*/
delta = last_snapshot - snapshot;
_Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta );
ffc1bc8c: 7c be 20 50 subf r5,r30,r4
ffc1bc90: 7f 63 db 78 mr r3,r27
ffc1bc94: 38 80 00 01 li r4,1
ffc1bc98: 48 00 50 c5 bl ffc20d5c <_Watchdog_Adjust>
ffc1bc9c: 4b ff ff 4c b ffc1bbe8 <_Timer_server_Body+0xe4>
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
ffc1bca0: 38 83 00 10 addi r4,r3,16
ffc1bca4: 7f a3 eb 78 mr r3,r29
ffc1bca8: 48 00 52 91 bl ffc20f38 <_Watchdog_Insert>
ffc1bcac: 4b ff ff 40 b ffc1bbec <_Timer_server_Body+0xe8>
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
if ( _Chain_Is_empty( insert_chain ) ) {
ts->insert_chain = NULL;
ffc1bcb0: 90 7f 00 78 stw r3,120(r31)
ffc1bcb4: 7d 20 01 24 mtmsr r9
_Chain_Initialize_empty( &fire_chain );
while ( true ) {
_Timer_server_Get_watchdogs_that_fire_now( ts, &insert_chain, &fire_chain );
if ( !_Chain_Is_empty( &fire_chain ) ) {
ffc1bcb8: 80 01 00 14 lwz r0,20(r1)
ffc1bcbc: 7f 97 00 00 cmpw cr7,r23,r0
ffc1bcc0: 40 be 00 30 bne+ cr7,ffc1bcf0 <_Timer_server_Body+0x1ec>
ffc1bcc4: 48 00 00 50 b ffc1bd14 <_Timer_server_Body+0x210>
{
Chain_Node *return_node;
Chain_Node *new_first;
return_node = the_chain->first;
new_first = return_node->next;
ffc1bcc8: 81 69 00 00 lwz r11,0(r9)
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
watchdog->state = WATCHDOG_INACTIVE;
ffc1bccc: 92 c9 00 08 stw r22,8(r9)
the_chain->first = new_first;
ffc1bcd0: 91 61 00 14 stw r11,20(r1)
new_first->previous = _Chain_Head(the_chain);
ffc1bcd4: 93 8b 00 04 stw r28,4(r11)
ffc1bcd8: 7c 00 01 24 mtmsr r0
/*
* The timer server may block here and wait for resources or time.
* The system watchdogs are inactive and will remain inactive since
* the active flag of the timer server is true.
*/
(*watchdog->routine)( watchdog->id, watchdog->user_data );
ffc1bcdc: 80 09 00 1c lwz r0,28(r9)
ffc1bce0: 80 89 00 24 lwz r4,36(r9)
ffc1bce4: 80 69 00 20 lwz r3,32(r9)
ffc1bce8: 7c 09 03 a6 mtctr r0
ffc1bcec: 4e 80 04 21 bctrl
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc1bcf0: 7c 00 00 a6 mfmsr r0
ffc1bcf4: 7d 30 42 a6 mfsprg r9,0
ffc1bcf8: 7c 09 48 78 andc r9,r0,r9
ffc1bcfc: 7d 20 01 24 mtmsr r9
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
ffc1bd00: 81 21 00 14 lwz r9,20(r1)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
ffc1bd04: 7f 97 48 00 cmpw cr7,r23,r9
ffc1bd08: 40 9e ff c0 bne+ cr7,ffc1bcc8 <_Timer_server_Body+0x1c4>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc1bd0c: 7c 00 01 24 mtmsr r0
ffc1bd10: 4b ff fe a4 b ffc1bbb4 <_Timer_server_Body+0xb0>
}
} else {
ts->active = false;
ffc1bd14: 9a 5f 00 7c stb r18,124(r31)
ffc1bd18: 80 14 00 00 lwz r0,0(r20)
ffc1bd1c: 30 00 00 01 addic r0,r0,1
ffc1bd20: 90 14 00 00 stw r0,0(r20)
/*
* Block until there is something to do.
*/
_Thread_Disable_dispatch();
_Thread_Set_state( ts->thread, STATES_DELAYING );
ffc1bd24: 80 7f 00 00 lwz r3,0(r31)
ffc1bd28: 38 80 00 08 li r4,8
ffc1bd2c: 48 00 44 05 bl ffc20130 <_Thread_Set_state>
_Timer_server_Reset_interval_system_watchdog( ts );
ffc1bd30: 7f e3 fb 78 mr r3,r31
ffc1bd34: 4b ff fc a9 bl ffc1b9dc <_Timer_server_Reset_interval_system_watchdog>
_Timer_server_Reset_tod_system_watchdog( ts );
ffc1bd38: 7f e3 fb 78 mr r3,r31
ffc1bd3c: 4b ff fd 35 bl ffc1ba70 <_Timer_server_Reset_tod_system_watchdog>
_Thread_Enable_dispatch();
ffc1bd40: 48 00 36 9d bl ffc1f3dc <_Thread_Enable_dispatch>
ts->active = true;
ffc1bd44: 9a 7f 00 7c stb r19,124(r31)
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
ffc1bd48: 7e 03 83 78 mr r3,r16
ffc1bd4c: 48 00 53 b5 bl ffc21100 <_Watchdog_Remove>
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
ffc1bd50: 7e 23 8b 78 mr r3,r17
ffc1bd54: 48 00 53 ad bl ffc21100 <_Watchdog_Remove>
ffc1bd58: 4b ff fe 5c b ffc1bbb4 <_Timer_server_Body+0xb0>
ffc0c268 <_Timespec_Add_to>:
{
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
ffc0c268: 80 03 00 04 lwz r0,4(r3)
uint32_t _Timespec_Add_to(
struct timespec *time,
const struct timespec *add
)
{
ffc0c26c: 7c 69 1b 78 mr r9,r3
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
ffc0c270: 81 04 00 04 lwz r8,4(r4)
uint32_t _Timespec_Add_to(
struct timespec *time,
const struct timespec *add
)
{
uint32_t seconds = add->tv_sec;
ffc0c274: 80 64 00 00 lwz r3,0(r4)
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
ffc0c278: 7d 08 02 14 add r8,r8,r0
)
{
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
ffc0c27c: 81 49 00 00 lwz r10,0(r9)
time->tv_nsec += add->tv_nsec;
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
ffc0c280: 3c 00 3b 9a lis r0,15258
{
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
ffc0c284: 91 09 00 04 stw r8,4(r9)
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
ffc0c288: 60 00 c9 ff ori r0,r0,51711
ffc0c28c: 7f 88 00 40 cmplw cr7,r8,r0
)
{
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
ffc0c290: 7d 4a 1a 14 add r10,r10,r3
time->tv_nsec += add->tv_nsec;
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
ffc0c294: 7d 0b 43 78 mr r11,r8
)
{
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
ffc0c298: 91 49 00 00 stw r10,0(r9)
time->tv_nsec += add->tv_nsec;
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
ffc0c29c: 4c 9d 00 20 blelr cr7
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ffc0c2a0: 3d 6b c4 65 addis r11,r11,-15259
ffc0c2a4: 39 6b 36 00 addi r11,r11,13824
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
ffc0c2a8: 7f 8b 00 40 cmplw cr7,r11,r0
*
* This routines adds two timespecs. The second argument is added
* to the first.
*/
uint32_t _Timespec_Add_to(
ffc0c2ac: 39 4a 00 01 addi r10,r10,1
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
time->tv_sec++;
seconds++;
ffc0c2b0: 38 63 00 01 addi r3,r3,1
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
ffc0c2b4: 41 9d ff ec bgt+ cr7,ffc0c2a0 <_Timespec_Add_to+0x38> <== NEVER TAKEN
ffc0c2b8: 91 49 00 00 stw r10,0(r9)
ffc0c2bc: 91 69 00 04 stw r11,4(r9)
time->tv_sec++;
seconds++;
}
return seconds;
}
ffc0c2c0: 4e 80 00 20 blr
ffc0e730 <_Timespec_Less_than>:
bool _Timespec_Less_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec < rhs->tv_sec )
ffc0e730: 81 63 00 00 lwz r11,0(r3)
bool _Timespec_Less_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
ffc0e734: 7c 69 1b 78 mr r9,r3
if ( lhs->tv_sec < rhs->tv_sec )
ffc0e738: 80 04 00 00 lwz r0,0(r4)
ffc0e73c: 38 60 00 01 li r3,1
ffc0e740: 7f 8b 00 00 cmpw cr7,r11,r0
ffc0e744: 4d 9c 00 20 bltlr cr7
return true;
if ( lhs->tv_sec > rhs->tv_sec )
ffc0e748: 41 9d 00 1c bgt- cr7,ffc0e764 <_Timespec_Less_than+0x34><== NEVER TAKEN
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Less_than(
ffc0e74c: 81 29 00 04 lwz r9,4(r9)
ffc0e750: 80 04 00 04 lwz r0,4(r4)
ffc0e754: 7f 89 00 00 cmpw cr7,r9,r0
ffc0e758: 7c 60 00 26 mfcr r3
ffc0e75c: 54 63 ef fe rlwinm r3,r3,29,31,31
/* ASSERT: lhs->tv_sec == rhs->tv_sec */
if ( lhs->tv_nsec < rhs->tv_nsec )
return true;
return false;
}
ffc0e760: 4e 80 00 20 blr
)
{
if ( lhs->tv_sec < rhs->tv_sec )
return true;
if ( lhs->tv_sec > rhs->tv_sec )
ffc0e764: 38 60 00 00 li r3,0 <== NOT EXECUTED
ffc0e768: 4e 80 00 20 blr <== NOT EXECUTED
ffc0c50c <_User_extensions_Fatal>:
void _User_extensions_Fatal (
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc0c50c: 94 21 ff e0 stwu r1,-32(r1)
ffc0c510: 7c 08 02 a6 mflr r0
ffc0c514: 93 c1 00 18 stw r30,24(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c518: 3f c0 00 00 lis r30,0
ffc0c51c: 3b de 2d 80 addi r30,r30,11648
void _User_extensions_Fatal (
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc0c520: 93 e1 00 1c stw r31,28(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c524: 83 fe 00 08 lwz r31,8(r30)
void _User_extensions_Fatal (
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc0c528: 93 61 00 0c stw r27,12(r1)
ffc0c52c: 7c 7b 1b 78 mr r27,r3
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c530: 7f 9f f0 00 cmpw cr7,r31,r30
void _User_extensions_Fatal (
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
ffc0c534: 93 81 00 10 stw r28,16(r1)
ffc0c538: 7c 9c 23 78 mr r28,r4
ffc0c53c: 93 a1 00 14 stw r29,20(r1)
ffc0c540: 7c bd 2b 78 mr r29,r5
ffc0c544: 90 01 00 24 stw r0,36(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c548: 41 9e 00 30 beq- cr7,ffc0c578 <_User_extensions_Fatal+0x6c><== NEVER TAKEN
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
ffc0c54c: 80 1f 00 30 lwz r0,48(r31)
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
ffc0c550: 7f 63 db 78 mr r3,r27
ffc0c554: 7f 84 e3 78 mr r4,r28
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
ffc0c558: 2f 80 00 00 cmpwi cr7,r0,0
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
ffc0c55c: 7f a5 eb 78 mr r5,r29
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
ffc0c560: 41 9e 00 0c beq- cr7,ffc0c56c <_User_extensions_Fatal+0x60>
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
ffc0c564: 7c 09 03 a6 mtctr r0
ffc0c568: 4e 80 04 21 bctrl
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
ffc0c56c: 83 ff 00 04 lwz r31,4(r31)
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c570: 7f 9f f0 00 cmpw cr7,r31,r30
ffc0c574: 40 9e ff d8 bne+ cr7,ffc0c54c <_User_extensions_Fatal+0x40>
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
}
}
ffc0c578: 80 01 00 24 lwz r0,36(r1)
ffc0c57c: 83 61 00 0c lwz r27,12(r1)
ffc0c580: 7c 08 03 a6 mtlr r0
ffc0c584: 83 81 00 10 lwz r28,16(r1)
ffc0c588: 83 a1 00 14 lwz r29,20(r1)
ffc0c58c: 83 c1 00 18 lwz r30,24(r1)
ffc0c590: 83 e1 00 1c lwz r31,28(r1)
ffc0c594: 38 21 00 20 addi r1,r1,32
ffc0c598: 4e 80 00 20 blr
ffc0c318 <_User_extensions_Handler_initialization>:
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
#include <string.h>
void _User_extensions_Handler_initialization(void)
{
ffc0c318: 94 21 ff e8 stwu r1,-24(r1)
ffc0c31c: 7c 08 02 a6 mflr r0
User_extensions_Control *extension;
uint32_t i;
uint32_t number_of_extensions;
User_extensions_Table *initial_extensions;
number_of_extensions = Configuration.number_of_initial_extensions;
ffc0c320: 3d 40 00 00 lis r10,0
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
#include <string.h>
void _User_extensions_Handler_initialization(void)
{
ffc0c324: 90 01 00 1c stw r0,28(r1)
User_extensions_Control *extension;
uint32_t i;
uint32_t number_of_extensions;
User_extensions_Table *initial_extensions;
number_of_extensions = Configuration.number_of_initial_extensions;
ffc0c328: 39 4a 20 a0 addi r10,r10,8352
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc0c32c: 3c e0 00 00 lis r7,0
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
#include <string.h>
void _User_extensions_Handler_initialization(void)
{
ffc0c330: 93 a1 00 0c stw r29,12(r1)
ffc0c334: 3d 00 00 00 lis r8,0
ffc0c338: 39 27 2d 80 addi r9,r7,11648
uint32_t i;
uint32_t number_of_extensions;
User_extensions_Table *initial_extensions;
number_of_extensions = Configuration.number_of_initial_extensions;
initial_extensions = Configuration.User_extension_table;
ffc0c33c: 83 aa 00 3c lwz r29,60(r10)
ffc0c340: 39 68 2b f4 addi r11,r8,11252
the_chain->permanent_null = NULL;
ffc0c344: 38 00 00 00 li r0,0
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
#include <string.h>
void _User_extensions_Handler_initialization(void)
{
ffc0c348: 93 c1 00 10 stw r30,16(r1)
initial_extensions = Configuration.User_extension_table;
_Chain_Initialize_empty( &_User_extensions_List );
_Chain_Initialize_empty( &_User_extensions_Switches_list );
if ( initial_extensions ) {
ffc0c34c: 2f 9d 00 00 cmpwi cr7,r29,0
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
ffc0c350: 38 a9 00 04 addi r5,r9,4
#include <rtems/score/userext.h>
#include <rtems/score/wkspace.h>
#include <string.h>
void _User_extensions_Handler_initialization(void)
{
ffc0c354: 93 81 00 08 stw r28,8(r1)
ffc0c358: 38 cb 00 04 addi r6,r11,4
ffc0c35c: 93 e1 00 14 stw r31,20(r1)
ffc0c360: 90 a7 2d 80 stw r5,11648(r7)
ffc0c364: 90 c8 2b f4 stw r6,11252(r8)
the_chain->permanent_null = NULL;
the_chain->last = _Chain_Head(the_chain);
ffc0c368: 91 29 00 08 stw r9,8(r9)
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
ffc0c36c: 90 0b 00 04 stw r0,4(r11)
the_chain->last = _Chain_Head(the_chain);
ffc0c370: 91 6b 00 08 stw r11,8(r11)
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
the_chain->first = _Chain_Tail(the_chain);
the_chain->permanent_null = NULL;
ffc0c374: 90 09 00 04 stw r0,4(r9)
User_extensions_Control *extension;
uint32_t i;
uint32_t number_of_extensions;
User_extensions_Table *initial_extensions;
number_of_extensions = Configuration.number_of_initial_extensions;
ffc0c378: 83 ca 00 38 lwz r30,56(r10)
initial_extensions = Configuration.User_extension_table;
_Chain_Initialize_empty( &_User_extensions_List );
_Chain_Initialize_empty( &_User_extensions_Switches_list );
if ( initial_extensions ) {
ffc0c37c: 41 9e 00 8c beq- cr7,ffc0c408 <_User_extensions_Handler_initialization+0xf0>
extension = (User_extensions_Control *)
_Workspace_Allocate_or_fatal_error(
number_of_extensions * sizeof( User_extensions_Control )
ffc0c380: 1f 9e 00 34 mulli r28,r30,52
_Chain_Initialize_empty( &_User_extensions_List );
_Chain_Initialize_empty( &_User_extensions_Switches_list );
if ( initial_extensions ) {
extension = (User_extensions_Control *)
ffc0c384: 7f 83 e3 78 mr r3,r28
ffc0c388: 48 00 07 a1 bl ffc0cb28 <_Workspace_Allocate_or_fatal_error>
_Workspace_Allocate_or_fatal_error(
number_of_extensions * sizeof( User_extensions_Control )
);
memset (
ffc0c38c: 7f 85 e3 78 mr r5,r28
ffc0c390: 38 80 00 00 li r4,0
_Chain_Initialize_empty( &_User_extensions_List );
_Chain_Initialize_empty( &_User_extensions_Switches_list );
if ( initial_extensions ) {
extension = (User_extensions_Control *)
ffc0c394: 7c 7f 1b 78 mr r31,r3
_Workspace_Allocate_or_fatal_error(
number_of_extensions * sizeof( User_extensions_Control )
);
memset (
ffc0c398: 48 00 65 09 bl ffc128a0 <memset>
extension,
0,
number_of_extensions * sizeof( User_extensions_Control )
);
for ( i = 0 ; i < number_of_extensions ; i++ ) {
ffc0c39c: 2f 9e 00 00 cmpwi cr7,r30,0
ffc0c3a0: 41 9e 00 68 beq- cr7,ffc0c408 <_User_extensions_Handler_initialization+0xf0><== NEVER TAKEN
ffc0c3a4: 3b 80 00 00 li r28,0
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(
User_extensions_Control *extension,
const User_extensions_Table *extension_table
)
{
extension->Callouts = *extension_table;
ffc0c3a8: 7f a9 eb 78 mr r9,r29
ffc0c3ac: 57 80 28 34 rlwinm r0,r28,5,0,26
ffc0c3b0: 7d 09 00 6e lwzux r8,r9,r0
_User_extensions_Add_set( extension );
ffc0c3b4: 7f e3 fb 78 mr r3,r31
ffc0c3b8: 3b 9c 00 01 addi r28,r28,1
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(
User_extensions_Control *extension,
const User_extensions_Table *extension_table
)
{
extension->Callouts = *extension_table;
ffc0c3bc: 81 49 00 04 lwz r10,4(r9)
ffc0c3c0: 81 69 00 08 lwz r11,8(r9)
ffc0c3c4: 80 09 00 0c lwz r0,12(r9)
ffc0c3c8: 91 1f 00 14 stw r8,20(r31)
ffc0c3cc: 91 5f 00 18 stw r10,24(r31)
ffc0c3d0: 91 7f 00 1c stw r11,28(r31)
ffc0c3d4: 90 1f 00 20 stw r0,32(r31)
ffc0c3d8: 80 09 00 1c lwz r0,28(r9)
ffc0c3dc: 81 49 00 10 lwz r10,16(r9)
ffc0c3e0: 81 69 00 14 lwz r11,20(r9)
ffc0c3e4: 81 29 00 18 lwz r9,24(r9)
ffc0c3e8: 91 5f 00 24 stw r10,36(r31)
ffc0c3ec: 91 7f 00 28 stw r11,40(r31)
ffc0c3f0: 91 3f 00 2c stw r9,44(r31)
ffc0c3f4: 90 1f 00 30 stw r0,48(r31)
_User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
extension++;
ffc0c3f8: 3b ff 00 34 addi r31,r31,52
_User_extensions_Add_set( extension );
ffc0c3fc: 48 00 35 41 bl ffc0f93c <_User_extensions_Add_set>
extension,
0,
number_of_extensions * sizeof( User_extensions_Control )
);
for ( i = 0 ; i < number_of_extensions ; i++ ) {
ffc0c400: 7f 9e e0 40 cmplw cr7,r30,r28
ffc0c404: 41 9d ff a4 bgt+ cr7,ffc0c3a8 <_User_extensions_Handler_initialization+0x90>
_User_extensions_Add_set_with_table (extension, &initial_extensions[i]);
extension++;
}
}
}
ffc0c408: 80 01 00 1c lwz r0,28(r1)
ffc0c40c: 83 81 00 08 lwz r28,8(r1)
ffc0c410: 7c 08 03 a6 mtlr r0
ffc0c414: 83 a1 00 0c lwz r29,12(r1)
ffc0c418: 83 c1 00 10 lwz r30,16(r1)
ffc0c41c: 83 e1 00 14 lwz r31,20(r1)
ffc0c420: 38 21 00 18 addi r1,r1,24
ffc0c424: 4e 80 00 20 blr
ffc0c428 <_User_extensions_Thread_begin>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_begin (
Thread_Control *executing
)
{
ffc0c428: 94 21 ff e8 stwu r1,-24(r1)
ffc0c42c: 7c 08 02 a6 mflr r0
ffc0c430: 93 c1 00 10 stw r30,16(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0c434: 3f c0 00 00 lis r30,0
#include <rtems/score/userext.h>
void _User_extensions_Thread_begin (
Thread_Control *executing
)
{
ffc0c438: 93 e1 00 14 stw r31,20(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0c43c: 83 fe 2d 80 lwz r31,11648(r30)
ffc0c440: 3b de 2d 80 addi r30,r30,11648
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc0c444: 3b de 00 04 addi r30,r30,4
#include <rtems/score/userext.h>
void _User_extensions_Thread_begin (
Thread_Control *executing
)
{
ffc0c448: 93 a1 00 0c stw r29,12(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0c44c: 7f 9f f0 00 cmpw cr7,r31,r30
#include <rtems/score/userext.h>
void _User_extensions_Thread_begin (
Thread_Control *executing
)
{
ffc0c450: 90 01 00 1c stw r0,28(r1)
ffc0c454: 7c 7d 1b 78 mr r29,r3
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0c458: 41 9e 00 28 beq- cr7,ffc0c480 <_User_extensions_Thread_begin+0x58><== NEVER TAKEN
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_begin != NULL )
ffc0c45c: 80 1f 00 28 lwz r0,40(r31)
(*the_extension->Callouts.thread_begin)( executing );
ffc0c460: 7f a3 eb 78 mr r3,r29
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_begin != NULL )
ffc0c464: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c468: 41 9e 00 0c beq- cr7,ffc0c474 <_User_extensions_Thread_begin+0x4c>
(*the_extension->Callouts.thread_begin)( executing );
ffc0c46c: 7c 09 03 a6 mtctr r0
ffc0c470: 4e 80 04 21 bctrl
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
ffc0c474: 83 ff 00 00 lwz r31,0(r31)
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0c478: 7f 9f f0 00 cmpw cr7,r31,r30
ffc0c47c: 40 9e ff e0 bne+ cr7,ffc0c45c <_User_extensions_Thread_begin+0x34>
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_begin != NULL )
(*the_extension->Callouts.thread_begin)( executing );
}
}
ffc0c480: 80 01 00 1c lwz r0,28(r1)
ffc0c484: 83 a1 00 0c lwz r29,12(r1)
ffc0c488: 7c 08 03 a6 mtlr r0
ffc0c48c: 83 c1 00 10 lwz r30,16(r1)
ffc0c490: 83 e1 00 14 lwz r31,20(r1)
ffc0c494: 38 21 00 18 addi r1,r1,24
ffc0c498: 4e 80 00 20 blr
ffc0c59c <_User_extensions_Thread_create>:
#include <rtems/score/userext.h>
bool _User_extensions_Thread_create (
Thread_Control *the_thread
)
{
ffc0c59c: 94 21 ff e8 stwu r1,-24(r1)
ffc0c5a0: 7c 08 02 a6 mflr r0
ffc0c5a4: 93 c1 00 10 stw r30,16(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
ffc0c5a8: 3f c0 00 00 lis r30,0
#include <rtems/score/userext.h>
bool _User_extensions_Thread_create (
Thread_Control *the_thread
)
{
ffc0c5ac: 93 e1 00 14 stw r31,20(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
ffc0c5b0: 83 fe 2d 80 lwz r31,11648(r30)
ffc0c5b4: 3b de 2d 80 addi r30,r30,11648
ffc0c5b8: 3b de 00 04 addi r30,r30,4
#include <rtems/score/userext.h>
bool _User_extensions_Thread_create (
Thread_Control *the_thread
)
{
ffc0c5bc: 93 a1 00 0c stw r29,12(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
ffc0c5c0: 7f 9f f0 00 cmpw cr7,r31,r30
#include <rtems/score/userext.h>
bool _User_extensions_Thread_create (
Thread_Control *the_thread
)
{
ffc0c5c4: 90 01 00 1c stw r0,28(r1)
ffc0c5c8: 7c 7d 1b 78 mr r29,r3
ffc0c5cc: 93 81 00 08 stw r28,8(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
ffc0c5d0: 41 9e 00 3c beq- cr7,ffc0c60c <_User_extensions_Thread_create+0x70><== NEVER TAKEN
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_create != NULL ) {
status = (*the_extension->Callouts.thread_create)(
ffc0c5d4: 3f 80 00 00 lis r28,0
ffc0c5d8: 3b 9c 27 6c addi r28,r28,10092
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_create != NULL ) {
ffc0c5dc: 80 1f 00 14 lwz r0,20(r31)
status = (*the_extension->Callouts.thread_create)(
ffc0c5e0: 7f a4 eb 78 mr r4,r29
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_create != NULL ) {
ffc0c5e4: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c5e8: 41 9e 00 18 beq- cr7,ffc0c600 <_User_extensions_Thread_create+0x64>
status = (*the_extension->Callouts.thread_create)(
ffc0c5ec: 80 7c 00 00 lwz r3,0(r28)
ffc0c5f0: 7c 09 03 a6 mtctr r0
ffc0c5f4: 4e 80 04 21 bctrl
_Thread_Executing,
the_thread
);
if ( !status )
ffc0c5f8: 2f 83 00 00 cmpwi cr7,r3,0
ffc0c5fc: 41 9e 00 14 beq- cr7,ffc0c610 <_User_extensions_Thread_create+0x74>
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
ffc0c600: 83 ff 00 00 lwz r31,0(r31)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
bool status;
for ( the_node = _User_extensions_List.first ;
ffc0c604: 7f 9f f0 00 cmpw cr7,r31,r30
ffc0c608: 40 9e ff d4 bne+ cr7,ffc0c5dc <_User_extensions_Thread_create+0x40>
ffc0c60c: 38 60 00 01 li r3,1
return false;
}
}
return true;
}
ffc0c610: 80 01 00 1c lwz r0,28(r1)
ffc0c614: 83 81 00 08 lwz r28,8(r1)
ffc0c618: 7c 08 03 a6 mtlr r0
ffc0c61c: 83 a1 00 0c lwz r29,12(r1)
ffc0c620: 83 c1 00 10 lwz r30,16(r1)
ffc0c624: 83 e1 00 14 lwz r31,20(r1)
ffc0c628: 38 21 00 18 addi r1,r1,24
ffc0c62c: 4e 80 00 20 blr
ffc0c630 <_User_extensions_Thread_delete>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
ffc0c630: 94 21 ff e8 stwu r1,-24(r1)
ffc0c634: 7c 08 02 a6 mflr r0
ffc0c638: 93 c1 00 10 stw r30,16(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c63c: 3f c0 00 00 lis r30,0
ffc0c640: 3b de 2d 80 addi r30,r30,11648
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
ffc0c644: 93 e1 00 14 stw r31,20(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c648: 83 fe 00 08 lwz r31,8(r30)
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
ffc0c64c: 93 a1 00 0c stw r29,12(r1)
ffc0c650: 7c 7d 1b 78 mr r29,r3
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c654: 7f 9f f0 00 cmpw cr7,r31,r30
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
ffc0c658: 90 01 00 1c stw r0,28(r1)
ffc0c65c: 93 81 00 08 stw r28,8(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c660: 41 9e 00 34 beq- cr7,ffc0c694 <_User_extensions_Thread_delete+0x64><== NEVER TAKEN
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_delete != NULL )
(*the_extension->Callouts.thread_delete)(
ffc0c664: 3f 80 00 00 lis r28,0
ffc0c668: 3b 9c 27 6c addi r28,r28,10092
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_delete != NULL )
ffc0c66c: 80 1f 00 20 lwz r0,32(r31)
(*the_extension->Callouts.thread_delete)(
ffc0c670: 7f a4 eb 78 mr r4,r29
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_delete != NULL )
ffc0c674: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c678: 41 9e 00 10 beq- cr7,ffc0c688 <_User_extensions_Thread_delete+0x58>
(*the_extension->Callouts.thread_delete)(
ffc0c67c: 80 7c 00 00 lwz r3,0(r28)
ffc0c680: 7c 09 03 a6 mtctr r0
ffc0c684: 4e 80 04 21 bctrl
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
ffc0c688: 83 ff 00 04 lwz r31,4(r31)
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c68c: 7f 9f f0 00 cmpw cr7,r31,r30
ffc0c690: 40 9e ff dc bne+ cr7,ffc0c66c <_User_extensions_Thread_delete+0x3c>
(*the_extension->Callouts.thread_delete)(
_Thread_Executing,
the_thread
);
}
}
ffc0c694: 80 01 00 1c lwz r0,28(r1)
ffc0c698: 83 81 00 08 lwz r28,8(r1)
ffc0c69c: 7c 08 03 a6 mtlr r0
ffc0c6a0: 83 a1 00 0c lwz r29,12(r1)
ffc0c6a4: 83 c1 00 10 lwz r30,16(r1)
ffc0c6a8: 83 e1 00 14 lwz r31,20(r1)
ffc0c6ac: 38 21 00 18 addi r1,r1,24
ffc0c6b0: 4e 80 00 20 blr
ffc0c49c <_User_extensions_Thread_exitted>:
void _User_extensions_Thread_exitted (
Thread_Control *executing
)
{
ffc0c49c: 94 21 ff e8 stwu r1,-24(r1)
ffc0c4a0: 7c 08 02 a6 mflr r0
ffc0c4a4: 93 c1 00 10 stw r30,16(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c4a8: 3f c0 00 00 lis r30,0
ffc0c4ac: 3b de 2d 80 addi r30,r30,11648
}
void _User_extensions_Thread_exitted (
Thread_Control *executing
)
{
ffc0c4b0: 93 e1 00 14 stw r31,20(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c4b4: 83 fe 00 08 lwz r31,8(r30)
}
void _User_extensions_Thread_exitted (
Thread_Control *executing
)
{
ffc0c4b8: 93 a1 00 0c stw r29,12(r1)
ffc0c4bc: 7c 7d 1b 78 mr r29,r3
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c4c0: 7f 9f f0 00 cmpw cr7,r31,r30
}
void _User_extensions_Thread_exitted (
Thread_Control *executing
)
{
ffc0c4c4: 90 01 00 1c stw r0,28(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c4c8: 41 9e 00 28 beq- cr7,ffc0c4f0 <_User_extensions_Thread_exitted+0x54><== NEVER TAKEN
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_exitted != NULL )
ffc0c4cc: 80 1f 00 2c lwz r0,44(r31)
(*the_extension->Callouts.thread_exitted)( executing );
ffc0c4d0: 7f a3 eb 78 mr r3,r29
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_exitted != NULL )
ffc0c4d4: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c4d8: 41 9e 00 0c beq- cr7,ffc0c4e4 <_User_extensions_Thread_exitted+0x48>
(*the_extension->Callouts.thread_exitted)( executing );
ffc0c4dc: 7c 09 03 a6 mtctr r0
ffc0c4e0: 4e 80 04 21 bctrl
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
ffc0c4e4: 83 ff 00 04 lwz r31,4(r31)
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.last ;
ffc0c4e8: 7f 9f f0 00 cmpw cr7,r31,r30
ffc0c4ec: 40 9e ff e0 bne+ cr7,ffc0c4cc <_User_extensions_Thread_exitted+0x30>
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_exitted != NULL )
(*the_extension->Callouts.thread_exitted)( executing );
}
}
ffc0c4f0: 80 01 00 1c lwz r0,28(r1)
ffc0c4f4: 83 a1 00 0c lwz r29,12(r1)
ffc0c4f8: 7c 08 03 a6 mtlr r0
ffc0c4fc: 83 c1 00 10 lwz r30,16(r1)
ffc0c500: 83 e1 00 14 lwz r31,20(r1)
ffc0c504: 38 21 00 18 addi r1,r1,24
ffc0c508: 4e 80 00 20 blr
ffc0d7e4 <_User_extensions_Thread_restart>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
ffc0d7e4: 94 21 ff e8 stwu r1,-24(r1)
ffc0d7e8: 7c 08 02 a6 mflr r0
ffc0d7ec: 93 c1 00 10 stw r30,16(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0d7f0: 3f c0 00 00 lis r30,0
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
ffc0d7f4: 93 e1 00 14 stw r31,20(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0d7f8: 83 fe 2d e0 lwz r31,11744(r30)
ffc0d7fc: 3b de 2d e0 addi r30,r30,11744
ffc0d800: 3b de 00 04 addi r30,r30,4
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
ffc0d804: 93 a1 00 0c stw r29,12(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0d808: 7f 9f f0 00 cmpw cr7,r31,r30
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
ffc0d80c: 90 01 00 1c stw r0,28(r1)
ffc0d810: 7c 7d 1b 78 mr r29,r3
ffc0d814: 93 81 00 08 stw r28,8(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0d818: 41 9e 00 34 beq- cr7,ffc0d84c <_User_extensions_Thread_restart+0x68><== NEVER TAKEN
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_restart != NULL )
(*the_extension->Callouts.thread_restart)(
ffc0d81c: 3f 80 00 00 lis r28,0
ffc0d820: 3b 9c 27 98 addi r28,r28,10136
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_restart != NULL )
ffc0d824: 80 1f 00 1c lwz r0,28(r31)
(*the_extension->Callouts.thread_restart)(
ffc0d828: 7f a4 eb 78 mr r4,r29
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_restart != NULL )
ffc0d82c: 2f 80 00 00 cmpwi cr7,r0,0
ffc0d830: 41 9e 00 10 beq- cr7,ffc0d840 <_User_extensions_Thread_restart+0x5c>
(*the_extension->Callouts.thread_restart)(
ffc0d834: 80 7c 00 00 lwz r3,0(r28)
ffc0d838: 7c 09 03 a6 mtctr r0
ffc0d83c: 4e 80 04 21 bctrl
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
ffc0d840: 83 ff 00 00 lwz r31,0(r31)
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0d844: 7f 9f f0 00 cmpw cr7,r31,r30
ffc0d848: 40 9e ff dc bne+ cr7,ffc0d824 <_User_extensions_Thread_restart+0x40>
(*the_extension->Callouts.thread_restart)(
_Thread_Executing,
the_thread
);
}
}
ffc0d84c: 80 01 00 1c lwz r0,28(r1)
ffc0d850: 83 81 00 08 lwz r28,8(r1)
ffc0d854: 7c 08 03 a6 mtlr r0
ffc0d858: 83 a1 00 0c lwz r29,12(r1)
ffc0d85c: 83 c1 00 10 lwz r30,16(r1)
ffc0d860: 83 e1 00 14 lwz r31,20(r1)
ffc0d864: 38 21 00 18 addi r1,r1,24
ffc0d868: 4e 80 00 20 blr
ffc0c6b4 <_User_extensions_Thread_start>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_start (
Thread_Control *the_thread
)
{
ffc0c6b4: 94 21 ff e8 stwu r1,-24(r1)
ffc0c6b8: 7c 08 02 a6 mflr r0
ffc0c6bc: 93 c1 00 10 stw r30,16(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0c6c0: 3f c0 00 00 lis r30,0
#include <rtems/score/userext.h>
void _User_extensions_Thread_start (
Thread_Control *the_thread
)
{
ffc0c6c4: 93 e1 00 14 stw r31,20(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0c6c8: 83 fe 2d 80 lwz r31,11648(r30)
ffc0c6cc: 3b de 2d 80 addi r30,r30,11648
ffc0c6d0: 3b de 00 04 addi r30,r30,4
#include <rtems/score/userext.h>
void _User_extensions_Thread_start (
Thread_Control *the_thread
)
{
ffc0c6d4: 93 a1 00 0c stw r29,12(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0c6d8: 7f 9f f0 00 cmpw cr7,r31,r30
#include <rtems/score/userext.h>
void _User_extensions_Thread_start (
Thread_Control *the_thread
)
{
ffc0c6dc: 90 01 00 1c stw r0,28(r1)
ffc0c6e0: 7c 7d 1b 78 mr r29,r3
ffc0c6e4: 93 81 00 08 stw r28,8(r1)
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0c6e8: 41 9e 00 34 beq- cr7,ffc0c71c <_User_extensions_Thread_start+0x68><== NEVER TAKEN
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_start != NULL )
(*the_extension->Callouts.thread_start)(
ffc0c6ec: 3f 80 00 00 lis r28,0
ffc0c6f0: 3b 9c 27 6c addi r28,r28,10092
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_start != NULL )
ffc0c6f4: 80 1f 00 18 lwz r0,24(r31)
(*the_extension->Callouts.thread_start)(
ffc0c6f8: 7f a4 eb 78 mr r4,r29
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_start != NULL )
ffc0c6fc: 2f 80 00 00 cmpwi cr7,r0,0
ffc0c700: 41 9e 00 10 beq- cr7,ffc0c710 <_User_extensions_Thread_start+0x5c>
(*the_extension->Callouts.thread_start)(
ffc0c704: 80 7c 00 00 lwz r3,0(r28)
ffc0c708: 7c 09 03 a6 mtctr r0
ffc0c70c: 4e 80 04 21 bctrl
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
ffc0c710: 83 ff 00 00 lwz r31,0(r31)
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _User_extensions_List.first ;
ffc0c714: 7f 9f f0 00 cmpw cr7,r31,r30
ffc0c718: 40 9e ff dc bne+ cr7,ffc0c6f4 <_User_extensions_Thread_start+0x40>
(*the_extension->Callouts.thread_start)(
_Thread_Executing,
the_thread
);
}
}
ffc0c71c: 80 01 00 1c lwz r0,28(r1)
ffc0c720: 83 81 00 08 lwz r28,8(r1)
ffc0c724: 7c 08 03 a6 mtlr r0
ffc0c728: 83 a1 00 0c lwz r29,12(r1)
ffc0c72c: 83 c1 00 10 lwz r30,16(r1)
ffc0c730: 83 e1 00 14 lwz r31,20(r1)
ffc0c734: 38 21 00 18 addi r1,r1,24
ffc0c738: 4e 80 00 20 blr
ffc0c73c <_User_extensions_Thread_switch>:
void _User_extensions_Thread_switch (
Thread_Control *executing,
Thread_Control *heir
)
{
ffc0c73c: 94 21 ff e8 stwu r1,-24(r1)
ffc0c740: 7c 08 02 a6 mflr r0
ffc0c744: 93 c1 00 10 stw r30,16(r1)
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
ffc0c748: 3f c0 00 00 lis r30,0
void _User_extensions_Thread_switch (
Thread_Control *executing,
Thread_Control *heir
)
{
ffc0c74c: 93 e1 00 14 stw r31,20(r1)
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
ffc0c750: 83 fe 2b f4 lwz r31,11252(r30)
ffc0c754: 3b de 2b f4 addi r30,r30,11252
ffc0c758: 3b de 00 04 addi r30,r30,4
void _User_extensions_Thread_switch (
Thread_Control *executing,
Thread_Control *heir
)
{
ffc0c75c: 93 81 00 08 stw r28,8(r1)
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
ffc0c760: 7f 9f f0 00 cmpw cr7,r31,r30
void _User_extensions_Thread_switch (
Thread_Control *executing,
Thread_Control *heir
)
{
ffc0c764: 93 a1 00 0c stw r29,12(r1)
ffc0c768: 7c 7c 1b 78 mr r28,r3
ffc0c76c: 7c 9d 23 78 mr r29,r4
ffc0c770: 90 01 00 1c stw r0,28(r1)
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
ffc0c774: 41 9e 00 24 beq- cr7,ffc0c798 <_User_extensions_Thread_switch+0x5c><== NEVER TAKEN
!_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
the_node = the_node->next ) {
the_extension_switch = (User_extensions_Switch_control *) the_node;
(*the_extension_switch->thread_switch)( executing, heir );
ffc0c778: 80 1f 00 08 lwz r0,8(r31)
ffc0c77c: 7f 83 e3 78 mr r3,r28
ffc0c780: 7f a4 eb 78 mr r4,r29
ffc0c784: 7c 09 03 a6 mtctr r0
ffc0c788: 4e 80 04 21 bctrl
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
!_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
the_node = the_node->next ) {
ffc0c78c: 83 ff 00 00 lwz r31,0(r31)
)
{
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _User_extensions_Switches_list.first ;
ffc0c790: 7f 9f f0 00 cmpw cr7,r31,r30
ffc0c794: 40 9e ff e4 bne+ cr7,ffc0c778 <_User_extensions_Thread_switch+0x3c>
the_extension_switch = (User_extensions_Switch_control *) the_node;
(*the_extension_switch->thread_switch)( executing, heir );
}
}
ffc0c798: 80 01 00 1c lwz r0,28(r1)
ffc0c79c: 83 81 00 08 lwz r28,8(r1)
ffc0c7a0: 7c 08 03 a6 mtlr r0
ffc0c7a4: 83 a1 00 0c lwz r29,12(r1)
ffc0c7a8: 83 c1 00 10 lwz r30,16(r1)
ffc0c7ac: 83 e1 00 14 lwz r31,20(r1)
ffc0c7b0: 38 21 00 18 addi r1,r1,24
ffc0c7b4: 4e 80 00 20 blr
ffc0edd4 <_Watchdog_Adjust>:
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
ffc0edd4: 94 21 ff e0 stwu r1,-32(r1)
ffc0edd8: 7c 08 02 a6 mflr r0
ffc0eddc: 90 01 00 24 stw r0,36(r1)
ffc0ede0: 93 c1 00 18 stw r30,24(r1)
ffc0ede4: 7c be 2b 78 mr r30,r5
ffc0ede8: 93 e1 00 1c stw r31,28(r1)
ffc0edec: 7c 7f 1b 78 mr r31,r3
ffc0edf0: 93 61 00 0c stw r27,12(r1)
ffc0edf4: 93 81 00 10 stw r28,16(r1)
ffc0edf8: 93 a1 00 14 stw r29,20(r1)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0edfc: 7c 00 00 a6 mfmsr r0
ffc0ee00: 7d 30 42 a6 mfsprg r9,0
ffc0ee04: 7c 09 48 78 andc r9,r0,r9
ffc0ee08: 7d 20 01 24 mtmsr r9
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
ffc0ee0c: 81 23 00 00 lwz r9,0(r3)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc0ee10: 3b 83 00 04 addi r28,r3,4
* hence the compiler must not assume *header to remain
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
ffc0ee14: 7f 89 e0 00 cmpw cr7,r9,r28
ffc0ee18: 41 9e 00 6c beq- cr7,ffc0ee84 <_Watchdog_Adjust+0xb0>
switch ( direction ) {
ffc0ee1c: 2f 84 00 00 cmpwi cr7,r4,0
ffc0ee20: 40 9e 00 8c bne- cr7,ffc0eeac <_Watchdog_Adjust+0xd8>
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
ffc0ee24: 2f 85 00 00 cmpwi cr7,r5,0
ffc0ee28: 41 9e 00 5c beq- cr7,ffc0ee84 <_Watchdog_Adjust+0xb0> <== NEVER TAKEN
if ( units < _Watchdog_First( header )->delta_interval ) {
ffc0ee2c: 83 a9 00 10 lwz r29,16(r9)
_Watchdog_First( header )->delta_interval -= units;
break;
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
ffc0ee30: 3b 60 00 01 li r27,1
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
ffc0ee34: 7f 85 e8 40 cmplw cr7,r5,r29
ffc0ee38: 40 bc 00 18 bge+ cr7,ffc0ee50 <_Watchdog_Adjust+0x7c> <== ALWAYS TAKEN
ffc0ee3c: 48 00 00 ac b ffc0eee8 <_Watchdog_Adjust+0x114> <== NOT EXECUTED
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
ffc0ee40: 41 82 00 44 beq- ffc0ee84 <_Watchdog_Adjust+0xb0> <== NEVER TAKEN
if ( units < _Watchdog_First( header )->delta_interval ) {
ffc0ee44: 83 a9 00 10 lwz r29,16(r9)
ffc0ee48: 7f 9d f0 40 cmplw cr7,r29,r30
ffc0ee4c: 41 9d 00 9c bgt- cr7,ffc0eee8 <_Watchdog_Adjust+0x114>
_Watchdog_First( header )->delta_interval -= units;
break;
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
ffc0ee50: 93 69 00 10 stw r27,16(r9)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0ee54: 7c 00 01 24 mtmsr r0
_ISR_Enable( level );
_Watchdog_Tickle( header );
ffc0ee58: 7f e3 fb 78 mr r3,r31
ffc0ee5c: 48 00 03 31 bl ffc0f18c <_Watchdog_Tickle>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0ee60: 7c 00 00 a6 mfmsr r0
ffc0ee64: 7d 30 42 a6 mfsprg r9,0
ffc0ee68: 7c 09 48 78 andc r9,r0,r9
ffc0ee6c: 7d 20 01 24 mtmsr r9
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
ffc0ee70: 81 7f 00 00 lwz r11,0(r31)
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
ffc0ee74: 7f dd f0 51 subf. r30,r29,r30
_Watchdog_Tickle( header );
_ISR_Disable( level );
if ( _Chain_Is_empty( header ) )
ffc0ee78: 7f 9c 58 00 cmpw cr7,r28,r11
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(
Chain_Control *header
)
{
return ( (Watchdog_Control *) header->first );
ffc0ee7c: 7d 69 5b 78 mr r9,r11
ffc0ee80: 40 9e ff c0 bne+ cr7,ffc0ee40 <_Watchdog_Adjust+0x6c>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0ee84: 7c 00 01 24 mtmsr r0
}
}
_ISR_Enable( level );
}
ffc0ee88: 80 01 00 24 lwz r0,36(r1)
ffc0ee8c: 83 61 00 0c lwz r27,12(r1)
ffc0ee90: 7c 08 03 a6 mtlr r0
ffc0ee94: 83 81 00 10 lwz r28,16(r1)
ffc0ee98: 83 a1 00 14 lwz r29,20(r1)
ffc0ee9c: 83 c1 00 18 lwz r30,24(r1)
ffc0eea0: 83 e1 00 1c lwz r31,28(r1)
ffc0eea4: 38 21 00 20 addi r1,r1,32
ffc0eea8: 4e 80 00 20 blr
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
switch ( direction ) {
ffc0eeac: 2f 84 00 01 cmpwi cr7,r4,1
ffc0eeb0: 40 9e ff d4 bne+ cr7,ffc0ee84 <_Watchdog_Adjust+0xb0> <== NEVER TAKEN
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
ffc0eeb4: 81 69 00 10 lwz r11,16(r9)
ffc0eeb8: 7f cb 2a 14 add r30,r11,r5
ffc0eebc: 93 c9 00 10 stw r30,16(r9)
ffc0eec0: 7c 00 01 24 mtmsr r0
}
}
_ISR_Enable( level );
}
ffc0eec4: 80 01 00 24 lwz r0,36(r1)
ffc0eec8: 83 61 00 0c lwz r27,12(r1)
ffc0eecc: 7c 08 03 a6 mtlr r0
ffc0eed0: 83 81 00 10 lwz r28,16(r1)
ffc0eed4: 83 a1 00 14 lwz r29,20(r1)
ffc0eed8: 83 c1 00 18 lwz r30,24(r1)
ffc0eedc: 83 e1 00 1c lwz r31,28(r1)
ffc0eee0: 38 21 00 20 addi r1,r1,32
ffc0eee4: 4e 80 00 20 blr
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
_Watchdog_First( header )->delta_interval -= units;
ffc0eee8: 7f de e8 50 subf r30,r30,r29
ffc0eeec: 93 c9 00 10 stw r30,16(r9)
break;
ffc0eef0: 4b ff ff 94 b ffc0ee84 <_Watchdog_Adjust+0xb0>
ffc20e7c <_Watchdog_Adjust_to_chain>:
{
Watchdog_Interval units = units_arg;
ISR_Level level;
Watchdog_Control *first;
if ( units <= 0 ) {
ffc20e7c: 2c 04 00 00 cmpwi r4,0
ffc20e80: 4d 82 00 20 beqlr
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc20e84: 7c e0 00 a6 mfmsr r7
ffc20e88: 7c 10 42 a6 mfsprg r0,0
ffc20e8c: 7c e0 00 78 andc r0,r7,r0
ffc20e90: 7c 00 01 24 mtmsr r0
return;
}
_ISR_Disable( level );
ffc20e94: 81 23 00 00 lwz r9,0(r3)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc20e98: 39 03 00 04 addi r8,r3,4
ffc20e9c: 38 c5 00 04 addi r6,r5,4
/*
* The first set happens in less than units, so take all of them
* off the chain and adjust units to reflect this.
*/
units -= first->delta_interval;
first->delta_interval = 0;
ffc20ea0: 39 80 00 00 li r12,0
while ( 1 ) {
if ( units <= 0 ) {
break;
}
if ( _Chain_Is_empty( header ) ) {
ffc20ea4: 7f 88 48 00 cmpw cr7,r8,r9
ffc20ea8: 41 9e 00 68 beq- cr7,ffc20f10 <_Watchdog_Adjust_to_chain+0x94>
/*
* If it is longer than "units" until the first element on the chain
* fires, then bump it and quit.
*/
if ( units < first->delta_interval ) {
ffc20eac: 80 09 00 10 lwz r0,16(r9)
ffc20eb0: 7f 80 20 40 cmplw cr7,r0,r4
ffc20eb4: 41 9d 00 74 bgt- cr7,ffc20f28 <_Watchdog_Adjust_to_chain+0xac>
/*
* The first set happens in less than units, so take all of them
* off the chain and adjust units to reflect this.
*/
units -= first->delta_interval;
first->delta_interval = 0;
ffc20eb8: 91 89 00 10 stw r12,16(r9)
/*
* The first set happens in less than units, so take all of them
* off the chain and adjust units to reflect this.
*/
units -= first->delta_interval;
ffc20ebc: 7c 80 20 50 subf r4,r0,r4
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
ffc20ec0: 81 69 00 00 lwz r11,0(r9)
previous = the_node->previous;
ffc20ec4: 81 49 00 04 lwz r10,4(r9)
next->previous = previous;
previous->next = next;
ffc20ec8: 91 6a 00 00 stw r11,0(r10)
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
ffc20ecc: 91 4b 00 04 stw r10,4(r11)
Chain_Node *the_node
)
{
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
ffc20ed0: 90 c9 00 00 stw r6,0(r9)
old_last_node = the_chain->last;
ffc20ed4: 81 65 00 08 lwz r11,8(r5)
the_chain->last = the_node;
ffc20ed8: 91 25 00 08 stw r9,8(r5)
old_last_node->next = the_node;
the_node->previous = old_last_node;
ffc20edc: 91 69 00 04 stw r11,4(r9)
Chain_Node *old_last_node;
the_node->next = _Chain_Tail(the_chain);
old_last_node = the_chain->last;
the_chain->last = the_node;
old_last_node->next = the_node;
ffc20ee0: 91 2b 00 00 stw r9,0(r11)
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc20ee4: 7c 00 00 a6 mfmsr r0
ffc20ee8: 7c e0 01 24 mtmsr r7
ffc20eec: 7c 00 01 24 mtmsr r0
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
ffc20ef0: 81 23 00 00 lwz r9,0(r3)
_Chain_Extract_unprotected( &first->Node );
_Chain_Append_unprotected( to_fire, &first->Node );
_ISR_Flash( level );
if ( _Chain_Is_empty( header ) )
ffc20ef4: 7f 88 48 00 cmpw cr7,r8,r9
ffc20ef8: 41 9e 00 20 beq- cr7,ffc20f18 <_Watchdog_Adjust_to_chain+0x9c>
break;
first = _Watchdog_First( header );
if ( first->delta_interval != 0 )
ffc20efc: 80 09 00 10 lwz r0,16(r9)
ffc20f00: 2f 80 00 00 cmpwi cr7,r0,0
ffc20f04: 41 9e ff bc beq+ cr7,ffc20ec0 <_Watchdog_Adjust_to_chain+0x44><== NEVER TAKEN
}
_ISR_Disable( level );
while ( 1 ) {
if ( units <= 0 ) {
ffc20f08: 2f 84 00 00 cmpwi cr7,r4,0
ffc20f0c: 40 9e ff 98 bne+ cr7,ffc20ea4 <_Watchdog_Adjust_to_chain+0x28>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc20f10: 7c e0 01 24 mtmsr r7
ffc20f14: 4e 80 00 20 blr
ffc20f18: 2f 84 00 00 cmpwi cr7,r4,0
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc20f1c: 7d 09 43 78 mr r9,r8
ffc20f20: 40 9e ff 84 bne+ cr7,ffc20ea4 <_Watchdog_Adjust_to_chain+0x28>
ffc20f24: 4b ff ff ec b ffc20f10 <_Watchdog_Adjust_to_chain+0x94>
/*
* If it is longer than "units" until the first element on the chain
* fires, then bump it and quit.
*/
if ( units < first->delta_interval ) {
first->delta_interval -= units;
ffc20f28: 7c 04 00 50 subf r0,r4,r0
ffc20f2c: 90 09 00 10 stw r0,16(r9)
ffc20f30: 7c e0 01 24 mtmsr r7
ffc20f34: 4e 80 00 20 blr
ffc0c7b8 <_Watchdog_Insert>:
Watchdog_Control *after;
uint32_t insert_isr_nest_level;
Watchdog_Interval delta_interval;
insert_isr_nest_level = _ISR_Nest_level;
ffc0c7b8: 3d 20 00 00 lis r9,0
ffc0c7bc: 80 09 27 54 lwz r0,10068(r9)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0c7c0: 7c e0 00 a6 mfmsr r7
ffc0c7c4: 7d 30 42 a6 mfsprg r9,0
ffc0c7c8: 7c e9 48 78 andc r9,r7,r9
ffc0c7cc: 7d 20 01 24 mtmsr r9
/*
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_watchdog->state != WATCHDOG_INACTIVE ) {
ffc0c7d0: 81 24 00 08 lwz r9,8(r4)
ffc0c7d4: 2f 89 00 00 cmpwi cr7,r9,0
ffc0c7d8: 40 9e 01 0c bne- cr7,ffc0c8e4 <_Watchdog_Insert+0x12c>
_ISR_Enable( level );
return;
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
_Watchdog_Sync_count++;
ffc0c7dc: 3c a0 00 00 lis r5,0
ffc0c7e0: 81 25 27 80 lwz r9,10112(r5)
if ( the_watchdog->state != WATCHDOG_INACTIVE ) {
_ISR_Enable( level );
return;
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
ffc0c7e4: 39 60 00 01 li r11,1
ffc0c7e8: 3d 80 00 00 lis r12,0
ffc0c7ec: 91 64 00 08 stw r11,8(r4)
_Watchdog_Sync_count++;
ffc0c7f0: 39 29 00 01 addi r9,r9,1
ffc0c7f4: 91 25 27 80 stw r9,10112(r5)
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
ffc0c7f8: 38 cc 27 68 addi r6,r12,10088
the_watchdog->state = WATCHDOG_BEING_INSERTED;
_Watchdog_Sync_count++;
restart:
delta_interval = the_watchdog->initial;
ffc0c7fc: 81 24 00 0c lwz r9,12(r4)
* cache *header!!
*
* Till Straumann, 7/2003 (gcc-3.2.2 -O4 on powerpc)
*
*/
for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ;
ffc0c800: 81 63 00 00 lwz r11,0(r3)
;
after = _Watchdog_Next( after ) ) {
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
ffc0c804: 2f 89 00 00 cmpwi cr7,r9,0
ffc0c808: 41 9e 00 94 beq- cr7,ffc0c89c <_Watchdog_Insert+0xe4>
ffc0c80c: 81 4b 00 00 lwz r10,0(r11)
ffc0c810: 2f 8a 00 00 cmpwi cr7,r10,0
ffc0c814: 41 9e 00 88 beq- cr7,ffc0c89c <_Watchdog_Insert+0xe4>
break;
if ( delta_interval < after->delta_interval ) {
ffc0c818: 81 4b 00 10 lwz r10,16(r11)
ffc0c81c: 7f 89 50 40 cmplw cr7,r9,r10
ffc0c820: 41 9c 00 cc blt- cr7,ffc0c8ec <_Watchdog_Insert+0x134>
static inline void ppc_interrupt_flash( uint32_t level )
{
uint32_t current_level;
asm volatile (
ffc0c824: 7d 00 00 a6 mfmsr r8
ffc0c828: 7c e0 01 24 mtmsr r7
ffc0c82c: 7d 00 01 24 mtmsr r8
* mechanism used here WAS redesigned to address this.
*/
_ISR_Flash( level );
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
ffc0c830: 81 04 00 08 lwz r8,8(r4)
ffc0c834: 2f 88 00 01 cmpwi cr7,r8,1
ffc0c838: 40 9e 00 94 bne- cr7,ffc0c8cc <_Watchdog_Insert+0x114>
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
ffc0c83c: 81 06 00 00 lwz r8,0(r6)
if ( delta_interval < after->delta_interval ) {
after->delta_interval -= delta_interval;
break;
}
delta_interval -= after->delta_interval;
ffc0c840: 7d 2a 48 50 subf r9,r10,r9
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
ffc0c844: 7f 80 40 40 cmplw cr7,r0,r8
ffc0c848: 40 bc 00 48 bge+ cr7,ffc0c890 <_Watchdog_Insert+0xd8>
ffc0c84c: 48 00 00 dc b ffc0c928 <_Watchdog_Insert+0x170>
*/
for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ;
;
after = _Watchdog_Next( after ) ) {
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
ffc0c850: 81 4b 00 00 lwz r10,0(r11)
ffc0c854: 2f 8a 00 00 cmpwi cr7,r10,0
ffc0c858: 41 9e 00 44 beq- cr7,ffc0c89c <_Watchdog_Insert+0xe4>
break;
if ( delta_interval < after->delta_interval ) {
ffc0c85c: 81 4b 00 10 lwz r10,16(r11)
ffc0c860: 7f 8a 48 40 cmplw cr7,r10,r9
ffc0c864: 41 9d 00 88 bgt- cr7,ffc0c8ec <_Watchdog_Insert+0x134>
ffc0c868: 7d 00 00 a6 mfmsr r8
ffc0c86c: 7c e0 01 24 mtmsr r7
ffc0c870: 7d 00 01 24 mtmsr r8
* mechanism used here WAS redesigned to address this.
*/
_ISR_Flash( level );
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
ffc0c874: 81 04 00 08 lwz r8,8(r4)
if ( delta_interval < after->delta_interval ) {
after->delta_interval -= delta_interval;
break;
}
delta_interval -= after->delta_interval;
ffc0c878: 7d 2a 48 50 subf r9,r10,r9
* mechanism used here WAS redesigned to address this.
*/
_ISR_Flash( level );
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
ffc0c87c: 2f 88 00 01 cmpwi cr7,r8,1
ffc0c880: 40 9e 00 4c bne- cr7,ffc0c8cc <_Watchdog_Insert+0x114> <== NEVER TAKEN
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
ffc0c884: 81 46 00 00 lwz r10,0(r6)
ffc0c888: 7f 80 50 40 cmplw cr7,r0,r10
ffc0c88c: 41 9c 00 9c blt- cr7,ffc0c928 <_Watchdog_Insert+0x170>
*/
for ( after = (Watchdog_Control *) ((volatile Chain_Control *)header)->first ;
;
after = _Watchdog_Next( after ) ) {
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
ffc0c890: 2f 89 00 00 cmpwi cr7,r9,0
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next(
Watchdog_Control *the_watchdog
)
{
return ( (Watchdog_Control *) the_watchdog->Node.next );
ffc0c894: 81 6b 00 00 lwz r11,0(r11)
ffc0c898: 40 9e ff b8 bne+ cr7,ffc0c850 <_Watchdog_Insert+0x98>
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
ffc0c89c: 81 6b 00 04 lwz r11,4(r11)
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
ffc0c8a0: 3d 40 00 00 lis r10,0
ffc0c8a4: 81 0a 27 84 lwz r8,10116(r10)
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
ffc0c8a8: 81 4b 00 00 lwz r10,0(r11)
ffc0c8ac: 91 04 00 14 stw r8,20(r4)
RTEMS_INLINE_ROUTINE void _Watchdog_Activate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_ACTIVE;
ffc0c8b0: 39 00 00 02 li r8,2
after_node->next = the_node;
ffc0c8b4: 90 8b 00 00 stw r4,0(r11)
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
ffc0c8b8: 91 64 00 04 stw r11,4(r4)
ffc0c8bc: 91 04 00 08 stw r8,8(r4)
}
}
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
ffc0c8c0: 91 24 00 10 stw r9,16(r4)
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
before_node->previous = the_node;
ffc0c8c4: 90 8a 00 04 stw r4,4(r10)
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
ffc0c8c8: 91 44 00 00 stw r10,0(r4)
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
exit_insert:
_Watchdog_Sync_level = insert_isr_nest_level;
ffc0c8cc: 90 0c 27 68 stw r0,10088(r12)
_Watchdog_Sync_count--;
ffc0c8d0: 81 25 27 80 lwz r9,10112(r5)
ffc0c8d4: 38 09 ff ff addi r0,r9,-1
ffc0c8d8: 90 05 27 80 stw r0,10112(r5)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0c8dc: 7c e0 01 24 mtmsr r7
ffc0c8e0: 4e 80 00 20 blr
ffc0c8e4: 7c e0 01 24 mtmsr r7
ffc0c8e8: 4e 80 00 20 blr
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
break;
if ( delta_interval < after->delta_interval ) {
after->delta_interval -= delta_interval;
ffc0c8ec: 7d 49 50 50 subf r10,r9,r10
ffc0c8f0: 91 4b 00 10 stw r10,16(r11)
the_watchdog->delta_interval = delta_interval;
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
ffc0c8f4: 3d 40 00 00 lis r10,0
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
ffc0c8f8: 81 6b 00 04 lwz r11,4(r11)
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
ffc0c8fc: 81 0a 27 84 lwz r8,10116(r10)
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
ffc0c900: 81 4b 00 00 lwz r10,0(r11)
ffc0c904: 91 04 00 14 stw r8,20(r4)
ffc0c908: 39 00 00 02 li r8,2
after_node->next = the_node;
ffc0c90c: 90 8b 00 00 stw r4,0(r11)
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
ffc0c910: 91 64 00 04 stw r11,4(r4)
ffc0c914: 91 04 00 08 stw r8,8(r4)
}
}
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
ffc0c918: 91 24 00 10 stw r9,16(r4)
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
before_node->previous = the_node;
ffc0c91c: 90 8a 00 04 stw r4,4(r10)
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
ffc0c920: 91 44 00 00 stw r10,0(r4)
ffc0c924: 4b ff ff a8 b ffc0c8cc <_Watchdog_Insert+0x114>
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
_Watchdog_Sync_level = insert_isr_nest_level;
ffc0c928: 90 06 00 00 stw r0,0(r6)
goto restart;
ffc0c92c: 4b ff fe d0 b ffc0c7fc <_Watchdog_Insert+0x44>
ffc0c980 <_Watchdog_Remove>:
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0c980: 7d 20 00 a6 mfmsr r9
ffc0c984: 7c 10 42 a6 mfsprg r0,0
ffc0c988: 7d 20 00 78 andc r0,r9,r0
ffc0c98c: 7c 00 01 24 mtmsr r0
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
previous_state = the_watchdog->state;
ffc0c990: 80 03 00 08 lwz r0,8(r3)
switch ( previous_state ) {
ffc0c994: 2f 80 00 01 cmpwi cr7,r0,1
ffc0c998: 41 9e 00 98 beq- cr7,ffc0ca30 <_Watchdog_Remove+0xb0>
ffc0c99c: 2b 80 00 01 cmplwi cr7,r0,1
ffc0c9a0: 40 9c 00 1c bge- cr7,ffc0c9bc <_Watchdog_Remove+0x3c>
_Watchdog_Sync_level = _ISR_Nest_level;
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
ffc0c9a4: 3d 60 00 00 lis r11,0
ffc0c9a8: 81 6b 27 84 lwz r11,10116(r11)
ffc0c9ac: 91 63 00 18 stw r11,24(r3)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0c9b0: 7d 20 01 24 mtmsr r9
_ISR_Enable( level );
return( previous_state );
}
ffc0c9b4: 7c 03 03 78 mr r3,r0
ffc0c9b8: 4e 80 00 20 blr
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
previous_state = the_watchdog->state;
switch ( previous_state ) {
ffc0c9bc: 2b 80 00 03 cmplwi cr7,r0,3
ffc0c9c0: 41 bd ff e4 bgt- cr7,ffc0c9a4 <_Watchdog_Remove+0x24> <== NEVER TAKEN
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next(
Watchdog_Control *the_watchdog
)
{
return ( (Watchdog_Control *) the_watchdog->Node.next );
ffc0c9c4: 81 63 00 00 lwz r11,0(r3)
break;
case WATCHDOG_ACTIVE:
case WATCHDOG_REMOVE_IT:
the_watchdog->state = WATCHDOG_INACTIVE;
ffc0c9c8: 39 00 00 00 li r8,0
ffc0c9cc: 91 03 00 08 stw r8,8(r3)
next_watchdog = _Watchdog_Next( the_watchdog );
if ( _Watchdog_Next(next_watchdog) )
ffc0c9d0: 81 4b 00 00 lwz r10,0(r11)
ffc0c9d4: 2f 8a 00 00 cmpwi cr7,r10,0
ffc0c9d8: 41 9e 00 14 beq- cr7,ffc0c9ec <_Watchdog_Remove+0x6c>
next_watchdog->delta_interval += the_watchdog->delta_interval;
ffc0c9dc: 81 0b 00 10 lwz r8,16(r11)
ffc0c9e0: 81 43 00 10 lwz r10,16(r3)
ffc0c9e4: 7d 48 52 14 add r10,r8,r10
ffc0c9e8: 91 4b 00 10 stw r10,16(r11)
if ( _Watchdog_Sync_count )
ffc0c9ec: 3d 40 00 00 lis r10,0
ffc0c9f0: 81 4a 27 80 lwz r10,10112(r10)
ffc0c9f4: 2f 8a 00 00 cmpwi cr7,r10,0
ffc0c9f8: 41 9e 00 14 beq- cr7,ffc0ca0c <_Watchdog_Remove+0x8c>
_Watchdog_Sync_level = _ISR_Nest_level;
ffc0c9fc: 3d 40 00 00 lis r10,0
ffc0ca00: 81 0a 27 54 lwz r8,10068(r10)
ffc0ca04: 3d 40 00 00 lis r10,0
ffc0ca08: 91 0a 27 68 stw r8,10088(r10)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
ffc0ca0c: 81 43 00 04 lwz r10,4(r3)
next->previous = previous;
previous->next = next;
ffc0ca10: 91 6a 00 00 stw r11,0(r10)
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
ffc0ca14: 91 4b 00 04 stw r10,4(r11)
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
ffc0ca18: 3d 60 00 00 lis r11,0
ffc0ca1c: 81 6b 27 84 lwz r11,10116(r11)
ffc0ca20: 91 63 00 18 stw r11,24(r3)
ffc0ca24: 7d 20 01 24 mtmsr r9
_ISR_Enable( level );
return( previous_state );
}
ffc0ca28: 7c 03 03 78 mr r3,r0
ffc0ca2c: 4e 80 00 20 blr
/*
* It is not actually on the chain so just change the state and
* the Insert operation we interrupted will be aborted.
*/
the_watchdog->state = WATCHDOG_INACTIVE;
ffc0ca30: 39 60 00 00 li r11,0
ffc0ca34: 91 63 00 08 stw r11,8(r3)
_Watchdog_Sync_level = _ISR_Nest_level;
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
ffc0ca38: 3d 60 00 00 lis r11,0
ffc0ca3c: 81 6b 27 84 lwz r11,10116(r11)
ffc0ca40: 91 63 00 18 stw r11,24(r3)
ffc0ca44: 7d 20 01 24 mtmsr r9
_ISR_Enable( level );
return( previous_state );
}
ffc0ca48: 7c 03 03 78 mr r3,r0
ffc0ca4c: 4e 80 00 20 blr
ffc0e510 <_Watchdog_Report_chain>:
void _Watchdog_Report_chain(
const char *name,
Chain_Control *header
)
{
ffc0e510: 94 21 ff e8 stwu r1,-24(r1)
ffc0e514: 7c 08 02 a6 mflr r0
ffc0e518: 93 c1 00 10 stw r30,16(r1)
ffc0e51c: 7c 7e 1b 78 mr r30,r3
ffc0e520: 93 e1 00 14 stw r31,20(r1)
ffc0e524: 7c 9f 23 78 mr r31,r4
ffc0e528: 90 01 00 1c stw r0,28(r1)
ffc0e52c: 93 81 00 08 stw r28,8(r1)
ffc0e530: 93 a1 00 0c stw r29,12(r1)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc0e534: 7f a0 00 a6 mfmsr r29
ffc0e538: 7c 10 42 a6 mfsprg r0,0
ffc0e53c: 7f a0 00 78 andc r0,r29,r0
ffc0e540: 7c 00 01 24 mtmsr r0
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
ffc0e544: 3c 60 ff c2 lis r3,-62
ffc0e548: 7f e5 fb 78 mr r5,r31
ffc0e54c: 38 63 38 dc addi r3,r3,14556
ffc0e550: 7f c4 f3 78 mr r4,r30
ffc0e554: 4c c6 31 82 crclr 4*cr1+eq
ffc0e558: 4b ff 81 fd bl ffc06754 <printk>
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
Chain_Control *the_chain
)
{
return (the_chain->first == _Chain_Tail(the_chain));
ffc0e55c: 83 9f 00 00 lwz r28,0(r31)
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail(
Chain_Control *the_chain
)
{
return (Chain_Node *) &the_chain->permanent_null;
ffc0e560: 3b ff 00 04 addi r31,r31,4
if ( !_Chain_Is_empty( header ) ) {
ffc0e564: 7f 9c f8 00 cmpw cr7,r28,r31
ffc0e568: 41 9e 00 54 beq- cr7,ffc0e5bc <_Watchdog_Report_chain+0xac>
node != _Chain_Tail(header) ;
node = node->next )
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
ffc0e56c: 7f 84 e3 78 mr r4,r28
ffc0e570: 38 60 00 00 li r3,0
ffc0e574: 48 00 00 5d bl ffc0e5d0 <_Watchdog_Report>
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
for ( node = header->first ;
node != _Chain_Tail(header) ;
node = node->next )
ffc0e578: 83 9c 00 00 lwz r28,0(r28)
Chain_Node *node;
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
for ( node = header->first ;
ffc0e57c: 7f 9c f8 00 cmpw cr7,r28,r31
ffc0e580: 40 9e ff ec bne+ cr7,ffc0e56c <_Watchdog_Report_chain+0x5c><== NEVER TAKEN
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
ffc0e584: 3c 60 ff c2 lis r3,-62
ffc0e588: 38 63 38 f4 addi r3,r3,14580
ffc0e58c: 7f c4 f3 78 mr r4,r30
ffc0e590: 4c c6 31 82 crclr 4*cr1+eq
ffc0e594: 4b ff 81 c1 bl ffc06754 <printk>
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc0e598: 7f a0 01 24 mtmsr r29
} else {
printk( "Chain is empty\n" );
}
_ISR_Enable( level );
}
ffc0e59c: 80 01 00 1c lwz r0,28(r1)
ffc0e5a0: 83 81 00 08 lwz r28,8(r1)
ffc0e5a4: 7c 08 03 a6 mtlr r0
ffc0e5a8: 83 a1 00 0c lwz r29,12(r1)
ffc0e5ac: 83 c1 00 10 lwz r30,16(r1)
ffc0e5b0: 83 e1 00 14 lwz r31,20(r1)
ffc0e5b4: 38 21 00 18 addi r1,r1,24
ffc0e5b8: 4e 80 00 20 blr
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
} else {
printk( "Chain is empty\n" );
ffc0e5bc: 3c 60 ff c2 lis r3,-62
ffc0e5c0: 38 63 39 04 addi r3,r3,14596
ffc0e5c4: 4c c6 31 82 crclr 4*cr1+eq
ffc0e5c8: 4b ff 81 8d bl ffc06754 <printk>
ffc0e5cc: 4b ff ff cc b ffc0e598 <_Watchdog_Report_chain+0x88>
ffc10b84 <rtems_barrier_create>:
rtems_name name,
rtems_attribute attribute_set,
uint32_t maximum_waiters,
rtems_id *id
)
{
ffc10b84: 94 21 ff d0 stwu r1,-48(r1)
ffc10b88: 7c 08 02 a6 mflr r0
ffc10b8c: 93 e1 00 2c stw r31,44(r1)
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
ffc10b90: 7c 7f 1b 79 mr. r31,r3
ffc10b94: 38 60 00 03 li r3,3
rtems_name name,
rtems_attribute attribute_set,
uint32_t maximum_waiters,
rtems_id *id
)
{
ffc10b98: 93 a1 00 24 stw r29,36(r1)
ffc10b9c: 7c dd 33 78 mr r29,r6
ffc10ba0: 90 01 00 34 stw r0,52(r1)
ffc10ba4: 93 81 00 20 stw r28,32(r1)
ffc10ba8: 93 c1 00 28 stw r30,40(r1)
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
ffc10bac: 41 82 00 90 beq- ffc10c3c <rtems_barrier_create+0xb8>
return RTEMS_INVALID_NAME;
if ( !id )
ffc10bb0: 2f 86 00 00 cmpwi cr7,r6,0
ffc10bb4: 38 60 00 09 li r3,9
ffc10bb8: 41 9e 00 84 beq- cr7,ffc10c3c <rtems_barrier_create+0xb8>
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
ffc10bbc: 70 80 00 10 andi. r0,r4,16
ffc10bc0: 41 82 00 9c beq- ffc10c5c <rtems_barrier_create+0xd8>
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
ffc10bc4: 2f 85 00 00 cmpwi cr7,r5,0
ffc10bc8: 38 60 00 0a li r3,10
ffc10bcc: 41 9e 00 70 beq- cr7,ffc10c3c <rtems_barrier_create+0xb8>
ffc10bd0: 3d 20 00 00 lis r9,0
return RTEMS_INVALID_NUMBER;
} else
the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;
the_attributes.maximum_count = maximum_waiters;
ffc10bd4: 90 a1 00 0c stw r5,12(r1)
if ( !id )
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
ffc10bd8: 38 00 00 00 li r0,0
ffc10bdc: 81 69 27 2c lwz r11,10028(r9)
ffc10be0: 90 01 00 08 stw r0,8(r1)
ffc10be4: 38 0b 00 01 addi r0,r11,1
ffc10be8: 90 09 27 2c stw r0,10028(r9)
* This function allocates a barrier control block from
* the inactive chain of free barrier control blocks.
*/
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Allocate( void )
{
return (Barrier_Control *) _Objects_Allocate( &_Barrier_Information );
ffc10bec: 3f 80 00 00 lis r28,0
ffc10bf0: 90 81 00 18 stw r4,24(r1)
ffc10bf4: 3b 9c 2e 04 addi r28,r28,11780
ffc10bf8: 7f 83 e3 78 mr r3,r28
ffc10bfc: 4b ff 93 7d bl ffc09f78 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
ffc10c00: 80 81 00 18 lwz r4,24(r1)
ffc10c04: 7c 7e 1b 79 mr. r30,r3
ffc10c08: 41 82 00 90 beq- ffc10c98 <rtems_barrier_create+0x114> <== NEVER TAKEN
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_barrier->attribute_set = attribute_set;
ffc10c0c: 90 9e 00 10 stw r4,16(r30)
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
ffc10c10: 38 7e 00 14 addi r3,r30,20
ffc10c14: 38 81 00 08 addi r4,r1,8
ffc10c18: 48 00 06 1d bl ffc11234 <_CORE_barrier_Initialize>
ffc10c1c: 80 1e 00 08 lwz r0,8(r30)
ffc10c20: 81 7c 00 1c lwz r11,28(r28)
ffc10c24: 54 09 13 ba rlwinm r9,r0,2,14,29
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
ffc10c28: 93 fe 00 0c stw r31,12(r30)
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
ffc10c2c: 7f cb 49 2e stwx r30,r11,r9
&_Barrier_Information,
&the_barrier->Object,
(Objects_Name) name
);
*id = the_barrier->Object.id;
ffc10c30: 90 1d 00 00 stw r0,0(r29)
_Thread_Enable_dispatch();
ffc10c34: 4b ff a4 d1 bl ffc0b104 <_Thread_Enable_dispatch>
ffc10c38: 38 60 00 00 li r3,0
return RTEMS_SUCCESSFUL;
}
ffc10c3c: 80 01 00 34 lwz r0,52(r1)
ffc10c40: 83 81 00 20 lwz r28,32(r1)
ffc10c44: 7c 08 03 a6 mtlr r0
ffc10c48: 83 a1 00 24 lwz r29,36(r1)
ffc10c4c: 83 c1 00 28 lwz r30,40(r1)
ffc10c50: 83 e1 00 2c lwz r31,44(r1)
ffc10c54: 38 21 00 30 addi r1,r1,48
ffc10c58: 4e 80 00 20 blr
ffc10c5c: 3d 20 00 00 lis r9,0
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
return RTEMS_INVALID_NUMBER;
} else
the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;
the_attributes.maximum_count = maximum_waiters;
ffc10c60: 90 a1 00 0c stw r5,12(r1)
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
return RTEMS_INVALID_NUMBER;
} else
the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;
ffc10c64: 38 00 00 01 li r0,1
ffc10c68: 81 69 27 2c lwz r11,10028(r9)
ffc10c6c: 90 01 00 08 stw r0,8(r1)
ffc10c70: 38 0b 00 01 addi r0,r11,1
ffc10c74: 90 09 27 2c stw r0,10028(r9)
ffc10c78: 3f 80 00 00 lis r28,0
ffc10c7c: 90 81 00 18 stw r4,24(r1)
ffc10c80: 3b 9c 2e 04 addi r28,r28,11780
ffc10c84: 7f 83 e3 78 mr r3,r28
ffc10c88: 4b ff 92 f1 bl ffc09f78 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
ffc10c8c: 80 81 00 18 lwz r4,24(r1)
ffc10c90: 7c 7e 1b 79 mr. r30,r3
ffc10c94: 40 82 ff 78 bne+ ffc10c0c <rtems_barrier_create+0x88>
_Thread_Enable_dispatch();
ffc10c98: 4b ff a4 6d bl ffc0b104 <_Thread_Enable_dispatch>
*id = the_barrier->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
ffc10c9c: 80 01 00 34 lwz r0,52(r1)
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
_Thread_Enable_dispatch();
ffc10ca0: 38 60 00 05 li r3,5
*id = the_barrier->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
ffc10ca4: 83 81 00 20 lwz r28,32(r1)
ffc10ca8: 7c 08 03 a6 mtlr r0
ffc10cac: 83 a1 00 24 lwz r29,36(r1)
ffc10cb0: 83 c1 00 28 lwz r30,40(r1)
ffc10cb4: 83 e1 00 2c lwz r31,44(r1)
ffc10cb8: 38 21 00 30 addi r1,r1,48
ffc10cbc: 4e 80 00 20 blr
ffc0b180 <rtems_io_register_driver>:
rtems_status_code rtems_io_register_driver(
rtems_device_major_number major,
const rtems_driver_address_table *driver_table,
rtems_device_major_number *registered_major
)
{
ffc0b180: 94 21 ff f0 stwu r1,-16(r1)
ffc0b184: 7c 08 02 a6 mflr r0
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
ffc0b188: 3d 20 00 00 lis r9,0
rtems_status_code rtems_io_register_driver(
rtems_device_major_number major,
const rtems_driver_address_table *driver_table,
rtems_device_major_number *registered_major
)
{
ffc0b18c: 90 01 00 14 stw r0,20(r1)
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
ffc0b190: 80 09 27 74 lwz r0,10100(r9)
rtems_device_major_number major,
const rtems_driver_address_table *driver_table,
rtems_device_major_number *registered_major
)
{
rtems_device_major_number major_limit = _IO_Number_of_drivers;
ffc0b194: 3d 20 00 00 lis r9,0
rtems_status_code rtems_io_register_driver(
rtems_device_major_number major,
const rtems_driver_address_table *driver_table,
rtems_device_major_number *registered_major
)
{
ffc0b198: 93 e1 00 0c stw r31,12(r1)
ffc0b19c: 7c 7f 1b 78 mr r31,r3
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
ffc0b1a0: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b1a4: 38 60 00 12 li r3,18
rtems_device_major_number major,
const rtems_driver_address_table *driver_table,
rtems_device_major_number *registered_major
)
{
rtems_device_major_number major_limit = _IO_Number_of_drivers;
ffc0b1a8: 80 09 27 c0 lwz r0,10176(r9)
if ( rtems_interrupt_is_in_progress() )
ffc0b1ac: 40 9e 00 e8 bne- cr7,ffc0b294 <rtems_io_register_driver+0x114>
return RTEMS_CALLED_FROM_ISR;
if ( registered_major == NULL )
ffc0b1b0: 2f 85 00 00 cmpwi cr7,r5,0
ffc0b1b4: 41 9e 01 38 beq- cr7,ffc0b2ec <rtems_io_register_driver+0x16c>
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
if ( driver_table == NULL )
ffc0b1b8: 2f 84 00 00 cmpwi cr7,r4,0
if ( registered_major == NULL )
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
ffc0b1bc: 90 05 00 00 stw r0,0(r5)
if ( driver_table == NULL )
ffc0b1c0: 41 9e 01 2c beq- cr7,ffc0b2ec <rtems_io_register_driver+0x16c>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b1c4: 81 64 00 00 lwz r11,0(r4)
ffc0b1c8: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0b1cc: 41 9e 01 14 beq- cr7,ffc0b2e0 <rtems_io_register_driver+0x160>
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
if ( major >= major_limit )
ffc0b1d0: 7f 80 f8 40 cmplw cr7,r0,r31
ffc0b1d4: 38 60 00 0a li r3,10
ffc0b1d8: 40 9d 00 bc ble- cr7,ffc0b294 <rtems_io_register_driver+0x114>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
ffc0b1dc: 3d 60 00 00 lis r11,0
ffc0b1e0: 81 4b 27 4c lwz r10,10060(r11)
ffc0b1e4: 38 0a 00 01 addi r0,r10,1
ffc0b1e8: 90 0b 27 4c stw r0,10060(r11)
return RTEMS_INVALID_NUMBER;
_Thread_Disable_dispatch();
if ( major == 0 ) {
ffc0b1ec: 2f 9f 00 00 cmpwi cr7,r31,0
ffc0b1f0: 40 9e 00 b8 bne- cr7,ffc0b2a8 <rtems_io_register_driver+0x128>
static rtems_status_code rtems_io_obtain_major_number(
rtems_device_major_number *major
)
{
rtems_device_major_number n = _IO_Number_of_drivers;
ffc0b1f4: 81 69 27 c0 lwz r11,10176(r9)
rtems_device_major_number m = 0;
/* major is error checked by caller */
for ( m = 0; m < n; ++m ) {
ffc0b1f8: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0b1fc: 41 9e 01 08 beq- cr7,ffc0b304 <rtems_io_register_driver+0x184><== NEVER TAKEN
ffc0b200: 3d 20 00 00 lis r9,0
ffc0b204: 7d 69 03 a6 mtctr r11
ffc0b208: 81 49 27 c4 lwz r10,10180(r9)
ffc0b20c: 7d 49 53 78 mr r9,r10
ffc0b210: 40 be 00 14 bne+ cr7,ffc0b224 <rtems_io_register_driver+0xa4><== ALWAYS TAKEN
ffc0b214: 48 00 01 14 b ffc0b328 <rtems_io_register_driver+0x1a8><== NOT EXECUTED
ffc0b218: 3b ff 00 01 addi r31,r31,1
ffc0b21c: 39 29 00 18 addi r9,r9,24
ffc0b220: 42 40 00 1c bdz- ffc0b23c <rtems_io_register_driver+0xbc>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b224: 80 09 00 00 lwz r0,0(r9)
ffc0b228: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b22c: 40 9e ff ec bne+ cr7,ffc0b218 <rtems_io_register_driver+0x98>
ffc0b230: 80 09 00 04 lwz r0,4(r9)
ffc0b234: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b238: 40 9e ff e0 bne+ cr7,ffc0b218 <rtems_io_register_driver+0x98>
}
/* Assigns invalid value in case of failure */
*major = m;
if ( m != n )
ffc0b23c: 7f 8b f8 00 cmpw cr7,r11,r31
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
ffc0b240: 93 e5 00 00 stw r31,0(r5)
if ( m != n )
ffc0b244: 41 9e 00 c4 beq- cr7,ffc0b308 <rtems_io_register_driver+0x188>
ffc0b248: 1d 3f 00 18 mulli r9,r31,24
ffc0b24c: 7d 2a 4a 14 add r9,r10,r9
}
*registered_major = major;
}
_IO_Driver_address_table [major] = *driver_table;
ffc0b250: 81 64 00 08 lwz r11,8(r4)
ffc0b254: 80 04 00 0c lwz r0,12(r4)
ffc0b258: 81 04 00 00 lwz r8,0(r4)
ffc0b25c: 81 44 00 04 lwz r10,4(r4)
ffc0b260: 91 09 00 00 stw r8,0(r9)
ffc0b264: 91 49 00 04 stw r10,4(r9)
ffc0b268: 91 69 00 08 stw r11,8(r9)
ffc0b26c: 90 09 00 0c stw r0,12(r9)
ffc0b270: 81 64 00 14 lwz r11,20(r4)
ffc0b274: 80 04 00 10 lwz r0,16(r4)
ffc0b278: 91 69 00 14 stw r11,20(r9)
ffc0b27c: 90 09 00 10 stw r0,16(r9)
_Thread_Enable_dispatch();
ffc0b280: 48 00 21 95 bl ffc0d414 <_Thread_Enable_dispatch>
return rtems_io_initialize( major, 0, NULL );
ffc0b284: 7f e3 fb 78 mr r3,r31
ffc0b288: 38 80 00 00 li r4,0
ffc0b28c: 38 a0 00 00 li r5,0
ffc0b290: 48 00 a4 41 bl ffc156d0 <rtems_io_initialize>
}
ffc0b294: 80 01 00 14 lwz r0,20(r1)
ffc0b298: 83 e1 00 0c lwz r31,12(r1)
ffc0b29c: 38 21 00 10 addi r1,r1,16
ffc0b2a0: 7c 08 03 a6 mtlr r0
ffc0b2a4: 4e 80 00 20 blr
_Thread_Enable_dispatch();
return sc;
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
ffc0b2a8: 3d 20 00 00 lis r9,0
ffc0b2ac: 81 29 27 c4 lwz r9,10180(r9)
ffc0b2b0: 1c 1f 00 18 mulli r0,r31,24
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b2b4: 7d 69 00 2e lwzx r11,r9,r0
_Thread_Enable_dispatch();
return sc;
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
ffc0b2b8: 7d 29 02 14 add r9,r9,r0
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b2bc: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0b2c0: 41 9e 00 54 beq- cr7,ffc0b314 <rtems_io_register_driver+0x194>
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
if ( !rtems_io_is_empty_table( table ) ) {
_Thread_Enable_dispatch();
ffc0b2c4: 48 00 21 51 bl ffc0d414 <_Thread_Enable_dispatch>
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
ffc0b2c8: 80 01 00 14 lwz r0,20(r1)
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
if ( !rtems_io_is_empty_table( table ) ) {
_Thread_Enable_dispatch();
ffc0b2cc: 38 60 00 0c li r3,12
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
ffc0b2d0: 83 e1 00 0c lwz r31,12(r1)
ffc0b2d4: 7c 08 03 a6 mtlr r0
ffc0b2d8: 38 21 00 10 addi r1,r1,16
ffc0b2dc: 4e 80 00 20 blr
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b2e0: 81 64 00 04 lwz r11,4(r4)
ffc0b2e4: 2f 8b 00 00 cmpwi cr7,r11,0
ffc0b2e8: 40 9e fe e8 bne+ cr7,ffc0b1d0 <rtems_io_register_driver+0x50>
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
ffc0b2ec: 80 01 00 14 lwz r0,20(r1)
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
ffc0b2f0: 38 60 00 09 li r3,9
}
ffc0b2f4: 83 e1 00 0c lwz r31,12(r1)
ffc0b2f8: 38 21 00 10 addi r1,r1,16
ffc0b2fc: 7c 08 03 a6 mtlr r0
ffc0b300: 4e 80 00 20 blr
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
ffc0b304: 93 e5 00 00 stw r31,0(r5) <== NOT EXECUTED
if ( major == 0 ) {
rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
if ( sc != RTEMS_SUCCESSFUL ) {
_Thread_Enable_dispatch();
ffc0b308: 48 00 21 0d bl ffc0d414 <_Thread_Enable_dispatch>
ffc0b30c: 38 60 00 05 li r3,5
return sc;
ffc0b310: 4b ff ff 84 b ffc0b294 <rtems_io_register_driver+0x114>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b314: 80 09 00 04 lwz r0,4(r9)
ffc0b318: 2f 80 00 00 cmpwi cr7,r0,0
ffc0b31c: 40 9e ff a8 bne+ cr7,ffc0b2c4 <rtems_io_register_driver+0x144>
if ( !rtems_io_is_empty_table( table ) ) {
_Thread_Enable_dispatch();
return RTEMS_RESOURCE_IN_USE;
}
*registered_major = major;
ffc0b320: 93 e5 00 00 stw r31,0(r5)
ffc0b324: 4b ff ff 2c b ffc0b250 <rtems_io_register_driver+0xd0>
ffc0b328: 38 00 00 01 li r0,1 <== NOT EXECUTED
ffc0b32c: 7c 09 03 a6 mtctr r0 <== NOT EXECUTED
ffc0b330: 4b ff fe f4 b ffc0b224 <rtems_io_register_driver+0xa4><== NOT EXECUTED
ffc0c12c <rtems_iterate_over_all_threads>:
#include <rtems/system.h>
#include <rtems/score/thread.h>
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
{
ffc0c12c: 94 21 ff e0 stwu r1,-32(r1)
ffc0c130: 7c 08 02 a6 mflr r0
ffc0c134: 90 01 00 24 stw r0,36(r1)
uint32_t i;
uint32_t api_index;
Thread_Control *the_thread;
Objects_Information *information;
if ( !routine )
ffc0c138: 7c 60 1b 79 mr. r0,r3
#include <rtems/system.h>
#include <rtems/score/thread.h>
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
{
ffc0c13c: 93 81 00 10 stw r28,16(r1)
ffc0c140: 93 a1 00 14 stw r29,20(r1)
ffc0c144: 93 c1 00 18 stw r30,24(r1)
ffc0c148: 93 e1 00 1c stw r31,28(r1)
uint32_t i;
uint32_t api_index;
Thread_Control *the_thread;
Objects_Information *information;
if ( !routine )
ffc0c14c: 90 01 00 08 stw r0,8(r1)
ffc0c150: 41 82 00 7c beq- ffc0c1cc <rtems_iterate_over_all_threads+0xa0><== NEVER TAKEN
ffc0c154: 3f a0 00 01 lis r29,1
ffc0c158: 3b bd a9 84 addi r29,r29,-22140
#endif
#include <rtems/system.h>
#include <rtems/score/thread.h>
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
ffc0c15c: 3b 9d 00 10 addi r28,r29,16
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
if ( !_Objects_Information_table[ api_index ] )
ffc0c160: 81 3d 00 00 lwz r9,0(r29)
ffc0c164: 2f 89 00 00 cmpwi cr7,r9,0
ffc0c168: 41 9e 00 58 beq- cr7,ffc0c1c0 <rtems_iterate_over_all_threads+0x94>
continue;
information = _Objects_Information_table[ api_index ][ 1 ];
ffc0c16c: 83 c9 00 04 lwz r30,4(r9)
if ( !information )
ffc0c170: 2f 9e 00 00 cmpwi cr7,r30,0
ffc0c174: 41 9e 00 4c beq- cr7,ffc0c1c0 <rtems_iterate_over_all_threads+0x94>
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
ffc0c178: a1 3e 00 10 lhz r9,16(r30)
ffc0c17c: 2f 89 00 00 cmpwi cr7,r9,0
ffc0c180: 41 9e 00 40 beq- cr7,ffc0c1c0 <rtems_iterate_over_all_threads+0x94><== NEVER TAKEN
ffc0c184: 3b e0 00 01 li r31,1
the_thread = (Thread_Control *)information->local_table[ i ];
ffc0c188: 81 7e 00 1c lwz r11,28(r30)
ffc0c18c: 57 e0 10 3a rlwinm r0,r31,2,0,29
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
ffc0c190: 3b ff 00 01 addi r31,r31,1
the_thread = (Thread_Control *)information->local_table[ i ];
ffc0c194: 7c 0b 00 2e lwzx r0,r11,r0
if ( !the_thread )
ffc0c198: 2f 80 00 00 cmpwi cr7,r0,0
continue;
(*routine)(the_thread);
ffc0c19c: 7c 03 03 78 mr r3,r0
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
the_thread = (Thread_Control *)information->local_table[ i ];
if ( !the_thread )
ffc0c1a0: 41 9e 00 14 beq- cr7,ffc0c1b4 <rtems_iterate_over_all_threads+0x88><== NEVER TAKEN
continue;
(*routine)(the_thread);
ffc0c1a4: 80 01 00 08 lwz r0,8(r1)
ffc0c1a8: 7c 09 03 a6 mtctr r0
ffc0c1ac: 4e 80 04 21 bctrl
ffc0c1b0: a1 3e 00 10 lhz r9,16(r30)
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
ffc0c1b4: 55 20 04 3e clrlwi r0,r9,16
ffc0c1b8: 7f 80 f8 40 cmplw cr7,r0,r31
ffc0c1bc: 40 9c ff cc bge+ cr7,ffc0c188 <rtems_iterate_over_all_threads+0x5c>
ffc0c1c0: 3b bd 00 04 addi r29,r29,4
Objects_Information *information;
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
ffc0c1c4: 7f 9d e0 00 cmpw cr7,r29,r28
ffc0c1c8: 40 9e ff 98 bne+ cr7,ffc0c160 <rtems_iterate_over_all_threads+0x34>
(*routine)(the_thread);
}
}
}
ffc0c1cc: 80 01 00 24 lwz r0,36(r1)
ffc0c1d0: 83 81 00 10 lwz r28,16(r1)
ffc0c1d4: 7c 08 03 a6 mtlr r0
ffc0c1d8: 83 a1 00 14 lwz r29,20(r1)
ffc0c1dc: 83 c1 00 18 lwz r30,24(r1)
ffc0c1e0: 83 e1 00 1c lwz r31,28(r1)
ffc0c1e4: 38 21 00 20 addi r1,r1,32
ffc0c1e8: 4e 80 00 20 blr
ffc0a824 <rtems_object_get_class_information>:
rtems_status_code rtems_object_get_class_information(
int the_api,
int the_class,
rtems_object_api_class_information *info
)
{
ffc0a824: 94 21 ff f0 stwu r1,-16(r1)
ffc0a828: 7c 08 02 a6 mflr r0
ffc0a82c: 93 e1 00 0c stw r31,12(r1)
int i;
/*
* Validate parameters and look up information structure.
*/
if ( !info )
ffc0a830: 7c bf 2b 79 mr. r31,r5
rtems_status_code rtems_object_get_class_information(
int the_api,
int the_class,
rtems_object_api_class_information *info
)
{
ffc0a834: 90 01 00 14 stw r0,20(r1)
int i;
/*
* Validate parameters and look up information structure.
*/
if ( !info )
ffc0a838: 38 00 00 09 li r0,9
ffc0a83c: 41 82 00 78 beq- ffc0a8b4 <rtems_object_get_class_information+0x90>
return RTEMS_INVALID_ADDRESS;
obj_info = _Objects_Get_information( the_api, the_class );
ffc0a840: 48 00 23 51 bl ffc0cb90 <_Objects_Get_information>
if ( !obj_info )
ffc0a844: 38 00 00 0a li r0,10
ffc0a848: 2c 03 00 00 cmpwi r3,0
ffc0a84c: 41 82 00 68 beq- ffc0a8b4 <rtems_object_get_class_information+0x90>
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
ffc0a850: a1 03 00 10 lhz r8,16(r3)
return RTEMS_INVALID_NUMBER;
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
ffc0a854: 80 03 00 08 lwz r0,8(r3)
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
ffc0a858: 2f 88 00 00 cmpwi cr7,r8,0
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
ffc0a85c: 89 23 00 12 lbz r9,18(r3)
return RTEMS_INVALID_NUMBER;
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
ffc0a860: 90 1f 00 00 stw r0,0(r31)
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
ffc0a864: 38 00 00 00 li r0,0
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
ffc0a868: 81 63 00 0c lwz r11,12(r3)
info->auto_extend = obj_info->auto_extend;
ffc0a86c: 99 3f 00 0c stb r9,12(r31)
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
ffc0a870: 91 7f 00 04 stw r11,4(r31)
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
ffc0a874: 91 1f 00 08 stw r8,8(r31)
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
ffc0a878: 41 9e 00 34 beq- cr7,ffc0a8ac <rtems_object_get_class_information+0x88><== NEVER TAKEN
ffc0a87c: 80 e3 00 1c lwz r7,28(r3)
ffc0a880: 39 60 00 01 li r11,1
ffc0a884: 39 20 00 01 li r9,1
ffc0a888: 39 29 00 01 addi r9,r9,1
ffc0a88c: 7f 88 48 40 cmplw cr7,r8,r9
if ( !obj_info->local_table[i] )
ffc0a890: 55 6b 10 3a rlwinm r11,r11,2,0,29
ffc0a894: 7d 47 58 2e lwzx r10,r7,r11
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
ffc0a898: 7d 2b 4b 78 mr r11,r9
if ( !obj_info->local_table[i] )
unallocated++;
ffc0a89c: 20 ca 00 00 subfic r6,r10,0
ffc0a8a0: 7c c0 01 94 addze r6,r0
ffc0a8a4: 7c c0 33 78 mr r0,r6
info->minimum_id = obj_info->minimum_id;
info->maximum_id = obj_info->maximum_id;
info->auto_extend = obj_info->auto_extend;
info->maximum = obj_info->maximum;
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
ffc0a8a8: 40 9c ff e0 bge+ cr7,ffc0a888 <rtems_object_get_class_information+0x64>
if ( !obj_info->local_table[i] )
unallocated++;
info->unallocated = unallocated;
ffc0a8ac: 90 1f 00 10 stw r0,16(r31)
ffc0a8b0: 38 00 00 00 li r0,0
return RTEMS_SUCCESSFUL;
}
ffc0a8b4: 7c 03 03 78 mr r3,r0
ffc0a8b8: 80 01 00 14 lwz r0,20(r1)
ffc0a8bc: 83 e1 00 0c lwz r31,12(r1)
ffc0a8c0: 38 21 00 10 addi r1,r1,16
ffc0a8c4: 7c 08 03 a6 mtlr r0
ffc0a8c8: 4e 80 00 20 blr
ffc184c8 <rtems_partition_create>:
uint32_t length,
uint32_t buffer_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
ffc184c8: 94 21 ff d0 stwu r1,-48(r1)
ffc184cc: 7c 08 02 a6 mflr r0
ffc184d0: 93 e1 00 2c stw r31,44(r1)
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
ffc184d4: 7c 7f 1b 79 mr. r31,r3
ffc184d8: 38 60 00 03 li r3,3
uint32_t length,
uint32_t buffer_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
ffc184dc: 93 c1 00 28 stw r30,40(r1)
ffc184e0: 7c be 2b 78 mr r30,r5
ffc184e4: 90 01 00 34 stw r0,52(r1)
ffc184e8: 93 61 00 1c stw r27,28(r1)
ffc184ec: 93 81 00 20 stw r28,32(r1)
ffc184f0: 93 a1 00 24 stw r29,36(r1)
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
ffc184f4: 41 82 00 40 beq- ffc18534 <rtems_partition_create+0x6c>
return RTEMS_INVALID_NAME;
if ( !starting_address )
ffc184f8: 2f 84 00 00 cmpwi cr7,r4,0
ffc184fc: 41 9e 00 34 beq- cr7,ffc18530 <rtems_partition_create+0x68>
return RTEMS_INVALID_ADDRESS;
if ( !id )
ffc18500: 2f 88 00 00 cmpwi cr7,r8,0
ffc18504: 41 9e 00 2c beq- cr7,ffc18530 <rtems_partition_create+0x68><== NEVER TAKEN
return RTEMS_INVALID_ADDRESS;
if ( length == 0 || buffer_size == 0 || length < buffer_size ||
ffc18508: 2f 85 00 00 cmpwi cr7,r5,0
ffc1850c: 41 9e 00 4c beq- cr7,ffc18558 <rtems_partition_create+0x90>
ffc18510: 2f 86 00 00 cmpwi cr7,r6,0
ffc18514: 41 9e 00 44 beq- cr7,ffc18558 <rtems_partition_create+0x90>
ffc18518: 7f 85 30 40 cmplw cr7,r5,r6
ffc1851c: 41 9c 00 3c blt- cr7,ffc18558 <rtems_partition_create+0x90>
ffc18520: 70 c0 00 07 andi. r0,r6,7
ffc18524: 40 82 00 34 bne- ffc18558 <rtems_partition_create+0x90>
!_Partition_Is_buffer_size_aligned( buffer_size ) )
return RTEMS_INVALID_SIZE;
if ( !_Addresses_Is_aligned( starting_address ) )
ffc18528: 70 9b 00 07 andi. r27,r4,7
ffc1852c: 41 82 00 54 beq- ffc18580 <rtems_partition_create+0xb8>
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
ffc18530: 38 60 00 09 li r3,9
}
ffc18534: 80 01 00 34 lwz r0,52(r1)
ffc18538: 83 61 00 1c lwz r27,28(r1)
ffc1853c: 7c 08 03 a6 mtlr r0
ffc18540: 83 81 00 20 lwz r28,32(r1)
ffc18544: 83 a1 00 24 lwz r29,36(r1)
ffc18548: 83 c1 00 28 lwz r30,40(r1)
ffc1854c: 83 e1 00 2c lwz r31,44(r1)
ffc18550: 38 21 00 30 addi r1,r1,48
ffc18554: 4e 80 00 20 blr
ffc18558: 80 01 00 34 lwz r0,52(r1)
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
ffc1855c: 38 60 00 08 li r3,8
}
ffc18560: 83 61 00 1c lwz r27,28(r1)
ffc18564: 7c 08 03 a6 mtlr r0
ffc18568: 83 81 00 20 lwz r28,32(r1)
ffc1856c: 83 a1 00 24 lwz r29,36(r1)
ffc18570: 83 c1 00 28 lwz r30,40(r1)
ffc18574: 83 e1 00 2c lwz r31,44(r1)
ffc18578: 38 21 00 30 addi r1,r1,48
ffc1857c: 4e 80 00 20 blr
ffc18580: 3d 20 00 00 lis r9,0
ffc18584: 81 69 28 24 lwz r11,10276(r9)
ffc18588: 38 0b 00 01 addi r0,r11,1
ffc1858c: 90 09 28 24 stw r0,10276(r9)
* This function allocates a partition control block from
* the inactive chain of free partition control blocks.
*/
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void )
{
return (Partition_Control *) _Objects_Allocate( &_Partition_Information );
ffc18590: 3f 80 00 00 lis r28,0
ffc18594: 90 81 00 08 stw r4,8(r1)
ffc18598: 3b 9c 6e 6c addi r28,r28,28268
ffc1859c: 7f 83 e3 78 mr r3,r28
ffc185a0: 90 c1 00 0c stw r6,12(r1)
ffc185a4: 90 e1 00 10 stw r7,16(r1)
ffc185a8: 91 01 00 14 stw r8,20(r1)
ffc185ac: 48 00 5b a9 bl ffc1e154 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
ffc185b0: 7c 7d 1b 79 mr. r29,r3
ffc185b4: 80 81 00 08 lwz r4,8(r1)
ffc185b8: 80 c1 00 0c lwz r6,12(r1)
ffc185bc: 80 e1 00 10 lwz r7,16(r1)
ffc185c0: 81 01 00 14 lwz r8,20(r1)
ffc185c4: 41 82 00 50 beq- ffc18614 <rtems_partition_create+0x14c>
the_partition->length = length;
the_partition->buffer_size = buffer_size;
the_partition->attribute_set = attribute_set;
the_partition->number_of_used_blocks = 0;
_Chain_Initialize( &the_partition->Memory, starting_address,
ffc185c8: 7c be 33 96 divwu r5,r30,r6
#endif
the_partition->starting_address = starting_address;
the_partition->length = length;
the_partition->buffer_size = buffer_size;
the_partition->attribute_set = attribute_set;
ffc185cc: 90 fd 00 1c stw r7,28(r29)
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
ffc185d0: 90 9d 00 10 stw r4,16(r29)
the_partition->length = length;
the_partition->buffer_size = buffer_size;
ffc185d4: 90 dd 00 18 stw r6,24(r29)
the_partition->attribute_set = attribute_set;
the_partition->number_of_used_blocks = 0;
ffc185d8: 93 7d 00 20 stw r27,32(r29)
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
the_partition->length = length;
ffc185dc: 93 dd 00 14 stw r30,20(r29)
the_partition->buffer_size = buffer_size;
the_partition->attribute_set = attribute_set;
the_partition->number_of_used_blocks = 0;
_Chain_Initialize( &the_partition->Memory, starting_address,
ffc185e0: 91 01 00 14 stw r8,20(r1)
ffc185e4: 38 7d 00 24 addi r3,r29,36
ffc185e8: 48 00 41 f9 bl ffc1c7e0 <_Chain_Initialize>
ffc185ec: 80 1d 00 08 lwz r0,8(r29)
ffc185f0: 81 7c 00 1c lwz r11,28(r28)
&_Partition_Information,
&the_partition->Object,
(Objects_Name) name
);
*id = the_partition->Object.id;
ffc185f4: 81 01 00 14 lwz r8,20(r1)
ffc185f8: 54 09 13 ba rlwinm r9,r0,2,14,29
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
ffc185fc: 93 fd 00 0c stw r31,12(r29)
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
ffc18600: 7f ab 49 2e stwx r29,r11,r9
ffc18604: 90 08 00 00 stw r0,0(r8)
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
ffc18608: 48 00 6d d5 bl ffc1f3dc <_Thread_Enable_dispatch>
ffc1860c: 38 60 00 00 li r3,0
return RTEMS_SUCCESSFUL;
ffc18610: 4b ff ff 24 b ffc18534 <rtems_partition_create+0x6c>
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
_Thread_Enable_dispatch();
ffc18614: 48 00 6d c9 bl ffc1f3dc <_Thread_Enable_dispatch>
ffc18618: 38 60 00 05 li r3,5
return RTEMS_TOO_MANY;
ffc1861c: 4b ff ff 18 b ffc18534 <rtems_partition_create+0x6c>
ffc187ac <rtems_partition_return_buffer>:
rtems_status_code rtems_partition_return_buffer(
rtems_id id,
void *buffer
)
{
ffc187ac: 94 21 ff e0 stwu r1,-32(r1)
ffc187b0: 7c 08 02 a6 mflr r0
ffc187b4: 90 01 00 24 stw r0,36(r1)
ffc187b8: 7c 60 1b 78 mr r0,r3
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
ffc187bc: 3c 60 00 00 lis r3,0
ffc187c0: 93 e1 00 1c stw r31,28(r1)
ffc187c4: 38 63 6e 6c addi r3,r3,28268
ffc187c8: 7c 9f 23 78 mr r31,r4
ffc187cc: 38 a1 00 08 addi r5,r1,8
ffc187d0: 93 c1 00 18 stw r30,24(r1)
ffc187d4: 7c 04 03 78 mr r4,r0
ffc187d8: 48 00 5f c5 bl ffc1e79c <_Objects_Get>
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
ffc187dc: 80 01 00 08 lwz r0,8(r1)
ffc187e0: 7c 7e 1b 78 mr r30,r3
ffc187e4: 2f 80 00 00 cmpwi cr7,r0,0
ffc187e8: 38 60 00 04 li r3,4
ffc187ec: 40 9e 00 58 bne- cr7,ffc18844 <rtems_partition_return_buffer+0x98>
)
{
void *starting;
void *ending;
starting = the_partition->starting_address;
ffc187f0: 80 1e 00 10 lwz r0,16(r30)
ending = _Addresses_Add_offset( starting, the_partition->length );
ffc187f4: 81 3e 00 14 lwz r9,20(r30)
const void *address,
const void *base,
const void *limit
)
{
return (address >= base && address <= limit);
ffc187f8: 7f 9f 00 40 cmplw cr7,r31,r0
ffc187fc: 41 9c 00 60 blt- cr7,ffc1885c <rtems_partition_return_buffer+0xb0>
ffc18800: 7d 20 4a 14 add r9,r0,r9
ffc18804: 7f 9f 48 40 cmplw cr7,r31,r9
ffc18808: 41 9d 00 54 bgt- cr7,ffc1885c <rtems_partition_return_buffer+0xb0><== NEVER TAKEN
return (
ffc1880c: 81 3e 00 18 lwz r9,24(r30)
ffc18810: 7c 00 f8 50 subf r0,r0,r31
ffc18814: 7d 60 4b 96 divwu r11,r0,r9
ffc18818: 7d 2b 49 d6 mullw r9,r11,r9
ffc1881c: 7f 80 48 00 cmpw cr7,r0,r9
ffc18820: 40 9e 00 3c bne- cr7,ffc1885c <rtems_partition_return_buffer+0xb0>
RTEMS_INLINE_ROUTINE void _Partition_Free_buffer (
Partition_Control *the_partition,
Chain_Node *the_buffer
)
{
_Chain_Append( &the_partition->Memory, the_buffer );
ffc18824: 38 7e 00 24 addi r3,r30,36
ffc18828: 7f e4 fb 78 mr r4,r31
ffc1882c: 48 00 3f 41 bl ffc1c76c <_Chain_Append>
case OBJECTS_LOCAL:
if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) {
_Partition_Free_buffer( the_partition, buffer );
the_partition->number_of_used_blocks -= 1;
ffc18830: 81 3e 00 20 lwz r9,32(r30)
ffc18834: 38 09 ff ff addi r0,r9,-1
ffc18838: 90 1e 00 20 stw r0,32(r30)
_Thread_Enable_dispatch();
ffc1883c: 48 00 6b a1 bl ffc1f3dc <_Thread_Enable_dispatch>
ffc18840: 38 60 00 00 li r3,0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc18844: 80 01 00 24 lwz r0,36(r1)
ffc18848: 83 c1 00 18 lwz r30,24(r1)
ffc1884c: 7c 08 03 a6 mtlr r0
ffc18850: 83 e1 00 1c lwz r31,28(r1)
ffc18854: 38 21 00 20 addi r1,r1,32
ffc18858: 4e 80 00 20 blr
_Partition_Free_buffer( the_partition, buffer );
the_partition->number_of_used_blocks -= 1;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
ffc1885c: 48 00 6b 81 bl ffc1f3dc <_Thread_Enable_dispatch>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc18860: 80 01 00 24 lwz r0,36(r1)
_Partition_Free_buffer( the_partition, buffer );
the_partition->number_of_used_blocks -= 1;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
ffc18864: 38 60 00 09 li r3,9
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc18868: 83 c1 00 18 lwz r30,24(r1)
ffc1886c: 7c 08 03 a6 mtlr r0
ffc18870: 83 e1 00 1c lwz r31,28(r1)
ffc18874: 38 21 00 20 addi r1,r1,32
ffc18878: 4e 80 00 20 blr
ffc09c64 <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
ffc09c64: 94 21 ff d0 stwu r1,-48(r1)
ffc09c68: 7c 08 02 a6 mflr r0
ffc09c6c: 93 e1 00 2c stw r31,44(r1)
ffc09c70: 7c 7f 1b 78 mr r31,r3
RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Rate_monotonic_Control *)
ffc09c74: 3c 60 00 00 lis r3,0
ffc09c78: 93 c1 00 28 stw r30,40(r1)
ffc09c7c: 38 63 2b ec addi r3,r3,11244
ffc09c80: 7c 9e 23 78 mr r30,r4
ffc09c84: 38 a1 00 08 addi r5,r1,8
ffc09c88: 90 01 00 34 stw r0,52(r1)
ffc09c8c: 7f e4 fb 78 mr r4,r31
ffc09c90: 93 a1 00 24 stw r29,36(r1)
ffc09c94: 93 61 00 1c stw r27,28(r1)
ffc09c98: 93 81 00 20 stw r28,32(r1)
ffc09c9c: 48 00 2c 15 bl ffc0c8b0 <_Objects_Get>
ffc09ca0: 7c 7d 1b 78 mr r29,r3
rtems_rate_monotonic_period_states local_state;
ISR_Level level;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
ffc09ca4: 80 01 00 08 lwz r0,8(r1)
ffc09ca8: 2f 80 00 00 cmpwi cr7,r0,0
ffc09cac: 40 9e 00 48 bne- cr7,ffc09cf4 <rtems_rate_monotonic_period+0x90>
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
ffc09cb0: 3f 80 00 00 lis r28,0
ffc09cb4: 81 23 00 40 lwz r9,64(r3)
ffc09cb8: 80 1c 27 f0 lwz r0,10224(r28)
ffc09cbc: 7f 89 00 00 cmpw cr7,r9,r0
ffc09cc0: 41 9e 00 60 beq- cr7,ffc09d20 <rtems_rate_monotonic_period+0xbc>
_Thread_Enable_dispatch();
ffc09cc4: 48 00 37 79 bl ffc0d43c <_Thread_Enable_dispatch>
ffc09cc8: 3b e0 00 17 li r31,23
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc09ccc: 80 01 00 34 lwz r0,52(r1)
ffc09cd0: 7f e3 fb 78 mr r3,r31
ffc09cd4: 83 61 00 1c lwz r27,28(r1)
ffc09cd8: 7c 08 03 a6 mtlr r0
ffc09cdc: 83 81 00 20 lwz r28,32(r1)
ffc09ce0: 83 a1 00 24 lwz r29,36(r1)
ffc09ce4: 83 c1 00 28 lwz r30,40(r1)
ffc09ce8: 83 e1 00 2c lwz r31,44(r1)
ffc09cec: 38 21 00 30 addi r1,r1,48
ffc09cf0: 4e 80 00 20 blr
ffc09cf4: 80 01 00 34 lwz r0,52(r1)
the_period->state = RATE_MONOTONIC_ACTIVE;
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
return RTEMS_TIMEOUT;
ffc09cf8: 3b e0 00 04 li r31,4
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc09cfc: 7f e3 fb 78 mr r3,r31
ffc09d00: 83 61 00 1c lwz r27,28(r1)
ffc09d04: 7c 08 03 a6 mtlr r0
ffc09d08: 83 81 00 20 lwz r28,32(r1)
ffc09d0c: 83 a1 00 24 lwz r29,36(r1)
ffc09d10: 83 c1 00 28 lwz r30,40(r1)
ffc09d14: 83 e1 00 2c lwz r31,44(r1)
ffc09d18: 38 21 00 30 addi r1,r1,48
ffc09d1c: 4e 80 00 20 blr
if ( !_Thread_Is_executing( the_period->owner ) ) {
_Thread_Enable_dispatch();
return RTEMS_NOT_OWNER_OF_RESOURCE;
}
if ( length == RTEMS_PERIOD_STATUS ) {
ffc09d20: 2f 9e 00 00 cmpwi cr7,r30,0
ffc09d24: 41 9e 00 b4 beq- cr7,ffc09dd8 <rtems_rate_monotonic_period+0x174>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc09d28: 7f 60 00 a6 mfmsr r27
ffc09d2c: 7c 10 42 a6 mfsprg r0,0
ffc09d30: 7f 60 00 78 andc r0,r27,r0
ffc09d34: 7c 00 01 24 mtmsr r0
_Thread_Enable_dispatch();
return( return_value );
}
_ISR_Disable( level );
switch ( the_period->state ) {
ffc09d38: 80 03 00 38 lwz r0,56(r3)
ffc09d3c: 2f 80 00 02 cmpwi cr7,r0,2
ffc09d40: 41 9e 00 c0 beq- cr7,ffc09e00 <rtems_rate_monotonic_period+0x19c>
ffc09d44: 2f 80 00 04 cmpwi cr7,r0,4
ffc09d48: 41 9e 00 5c beq- cr7,ffc09da4 <rtems_rate_monotonic_period+0x140>
ffc09d4c: 2f 80 00 00 cmpwi cr7,r0,0
ffc09d50: 40 be ff a4 bne- cr7,ffc09cf4 <rtems_rate_monotonic_period+0x90><== NEVER TAKEN
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc09d54: 7f 60 01 24 mtmsr r27
_ISR_Enable( level );
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
ffc09d58: 4b ff fc 1d bl ffc09974 <_Rate_monotonic_Initiate_statistics>
the_period->state = RATE_MONOTONIC_ACTIVE;
ffc09d5c: 39 20 00 02 li r9,2
ffc09d60: 91 3d 00 38 stw r9,56(r29)
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
ffc09d64: 3d 20 ff c1 lis r9,-63
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc09d68: 38 00 00 00 li r0,0
the_watchdog->routine = routine;
ffc09d6c: 39 29 a2 68 addi r9,r9,-23960
the_watchdog->id = id;
ffc09d70: 93 fd 00 30 stw r31,48(r29)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc09d74: 3c 60 00 00 lis r3,0
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
ffc09d78: 91 3d 00 2c stw r9,44(r29)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc09d7c: 38 63 2d e8 addi r3,r3,11752
ffc09d80: 38 9d 00 10 addi r4,r29,16
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
ffc09d84: 90 1d 00 34 stw r0,52(r29)
);
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
ffc09d88: 3b e0 00 00 li r31,0
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
ffc09d8c: 93 dd 00 1c stw r30,28(r29)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc09d90: 90 1d 00 18 stw r0,24(r29)
_Rate_monotonic_Timeout,
id,
NULL
);
the_period->next_length = length;
ffc09d94: 93 dd 00 3c stw r30,60(r29)
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc09d98: 48 00 4e c9 bl ffc0ec60 <_Watchdog_Insert>
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
ffc09d9c: 48 00 36 a1 bl ffc0d43c <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
ffc09da0: 4b ff ff 2c b ffc09ccc <rtems_rate_monotonic_period+0x68>
case RATE_MONOTONIC_EXPIRED:
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
ffc09da4: 4b ff fd 79 bl ffc09b1c <_Rate_monotonic_Update_statistics>
ffc09da8: 7f 60 01 24 mtmsr r27
_ISR_Enable( level );
the_period->state = RATE_MONOTONIC_ACTIVE;
ffc09dac: 38 00 00 02 li r0,2
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
ffc09db0: 93 dd 00 1c stw r30,28(r29)
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
ffc09db4: 3c 60 00 00 lis r3,0
ffc09db8: 90 1d 00 38 stw r0,56(r29)
ffc09dbc: 38 63 2d e8 addi r3,r3,11752
ffc09dc0: 38 9d 00 10 addi r4,r29,16
the_period->next_length = length;
ffc09dc4: 93 dd 00 3c stw r30,60(r29)
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
ffc09dc8: 3b e0 00 06 li r31,6
ffc09dcc: 48 00 4e 95 bl ffc0ec60 <_Watchdog_Insert>
ffc09dd0: 48 00 36 6d bl ffc0d43c <_Thread_Enable_dispatch>
return RTEMS_TIMEOUT;
ffc09dd4: 4b ff fe f8 b ffc09ccc <rtems_rate_monotonic_period+0x68>
_Thread_Enable_dispatch();
return RTEMS_NOT_OWNER_OF_RESOURCE;
}
if ( length == RTEMS_PERIOD_STATUS ) {
switch ( the_period->state ) {
ffc09dd8: 80 03 00 38 lwz r0,56(r3)
ffc09ddc: 3b e0 00 00 li r31,0
ffc09de0: 2b 80 00 04 cmplwi cr7,r0,4
ffc09de4: 41 bd ff b8 bgt- cr7,ffc09d9c <rtems_rate_monotonic_period+0x138><== NEVER TAKEN
ffc09de8: 3d 20 ff c2 lis r9,-62
ffc09dec: 54 00 10 3a rlwinm r0,r0,2,0,29
ffc09df0: 39 29 36 74 addi r9,r9,13940
ffc09df4: 7f e9 00 2e lwzx r31,r9,r0
);
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
ffc09df8: 48 00 36 45 bl ffc0d43c <_Thread_Enable_dispatch>
ffc09dfc: 4b ff fe d0 b ffc09ccc <rtems_rate_monotonic_period+0x68>
case RATE_MONOTONIC_ACTIVE:
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
ffc09e00: 4b ff fd 1d bl ffc09b1c <_Rate_monotonic_Update_statistics>
/*
* This tells the _Rate_monotonic_Timeout that this task is
* in the process of blocking on the period and that we
* may be changing the length of the next period.
*/
the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;
ffc09e04: 38 00 00 01 li r0,1
the_period->next_length = length;
ffc09e08: 93 dd 00 3c stw r30,60(r29)
/*
* This tells the _Rate_monotonic_Timeout that this task is
* in the process of blocking on the period and that we
* may be changing the length of the next period.
*/
the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;
ffc09e0c: 90 1d 00 38 stw r0,56(r29)
ffc09e10: 7f 60 01 24 mtmsr r27
the_period->next_length = length;
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
ffc09e14: 81 3c 27 f0 lwz r9,10224(r28)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc09e18: 38 80 40 00 li r4,16384
the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;
the_period->next_length = length;
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
ffc09e1c: 80 1d 00 08 lwz r0,8(r29)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc09e20: 7d 23 4b 78 mr r3,r9
the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;
the_period->next_length = length;
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
ffc09e24: 90 09 00 20 stw r0,32(r9)
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc09e28: 48 00 41 e9 bl ffc0e010 <_Thread_Set_state>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc09e2c: 7d 20 00 a6 mfmsr r9
ffc09e30: 7c 10 42 a6 mfsprg r0,0
ffc09e34: 7d 20 00 78 andc r0,r9,r0
ffc09e38: 7c 00 01 24 mtmsr r0
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
local_state = the_period->state;
the_period->state = RATE_MONOTONIC_ACTIVE;
ffc09e3c: 39 60 00 02 li r11,2
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
local_state = the_period->state;
ffc09e40: 80 1d 00 38 lwz r0,56(r29)
the_period->state = RATE_MONOTONIC_ACTIVE;
ffc09e44: 91 7d 00 38 stw r11,56(r29)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc09e48: 7d 20 01 24 mtmsr r9
/*
* If it did, then we want to unblock ourself and continue as
* if nothing happen. The period was reset in the timeout routine.
*/
if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING )
ffc09e4c: 2f 80 00 03 cmpwi cr7,r0,3
ffc09e50: 41 9e 00 10 beq- cr7,ffc09e60 <rtems_rate_monotonic_period+0x1fc><== NEVER TAKEN
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
_Thread_Enable_dispatch();
ffc09e54: 48 00 35 e9 bl ffc0d43c <_Thread_Enable_dispatch>
ffc09e58: 3b e0 00 00 li r31,0
return RTEMS_SUCCESSFUL;
ffc09e5c: 4b ff fe 70 b ffc09ccc <rtems_rate_monotonic_period+0x68>
/*
* If it did, then we want to unblock ourself and continue as
* if nothing happen. The period was reset in the timeout routine.
*/
if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING )
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc09e60: 80 7c 27 f0 lwz r3,10224(r28) <== NOT EXECUTED
ffc09e64: 38 80 40 00 li r4,16384 <== NOT EXECUTED
ffc09e68: 48 00 30 c1 bl ffc0cf28 <_Thread_Clear_state> <== NOT EXECUTED
ffc09e6c: 4b ff ff e8 b ffc09e54 <rtems_rate_monotonic_period+0x1f0><== NOT EXECUTED
ffc09e70 <rtems_rate_monotonic_report_statistics_with_plugin>:
*/
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
ffc09e70: 94 21 ff 58 stwu r1,-168(r1)
ffc09e74: 7c 08 02 a6 mflr r0
ffc09e78: 90 01 00 ac stw r0,172(r1)
rtems_id id;
rtems_rate_monotonic_period_statistics the_stats;
rtems_rate_monotonic_period_status the_status;
char name[5];
if ( !print )
ffc09e7c: 7c 80 23 79 mr. r0,r4
*/
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
ffc09e80: 93 a1 00 9c stw r29,156(r1)
ffc09e84: 7c 7d 1b 78 mr r29,r3
ffc09e88: 92 41 00 70 stw r18,112(r1)
ffc09e8c: 92 61 00 74 stw r19,116(r1)
ffc09e90: 92 81 00 78 stw r20,120(r1)
ffc09e94: 92 a1 00 7c stw r21,124(r1)
ffc09e98: 92 c1 00 80 stw r22,128(r1)
ffc09e9c: 92 e1 00 84 stw r23,132(r1)
ffc09ea0: 93 01 00 88 stw r24,136(r1)
ffc09ea4: 93 21 00 8c stw r25,140(r1)
ffc09ea8: 93 41 00 90 stw r26,144(r1)
ffc09eac: 93 61 00 94 stw r27,148(r1)
ffc09eb0: 93 81 00 98 stw r28,152(r1)
ffc09eb4: 93 c1 00 a0 stw r30,160(r1)
ffc09eb8: 93 e1 00 a4 stw r31,164(r1)
rtems_id id;
rtems_rate_monotonic_period_statistics the_stats;
rtems_rate_monotonic_period_status the_status;
char name[5];
if ( !print )
ffc09ebc: 90 01 00 68 stw r0,104(r1)
ffc09ec0: 41 82 01 88 beq- ffc0a048 <rtems_rate_monotonic_report_statistics_with_plugin+0x1d8><== NEVER TAKEN
return;
(*print)( context, "Period information by period\n" );
ffc09ec4: 3c 80 ff c2 lis r4,-62
ffc09ec8: 7c 09 03 a6 mtctr r0
ffc09ecc: 38 84 36 88 addi r4,r4,13960
/*
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
ffc09ed0: 3f c0 00 00 lis r30,0
ffc09ed4: 3b de 2b ec addi r30,r30,11244
char name[5];
if ( !print )
return;
(*print)( context, "Period information by period\n" );
ffc09ed8: 4c c6 31 82 crclr 4*cr1+eq
ffc09edc: 4e 80 04 21 bctrl
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)( context, "--- CPU times are in seconds ---\n" );
ffc09ee0: 80 01 00 68 lwz r0,104(r1)
ffc09ee4: 3c 80 ff c2 lis r4,-62
ffc09ee8: 7c 09 03 a6 mtctr r0
ffc09eec: 38 84 36 a8 addi r4,r4,13992
ffc09ef0: 7f a3 eb 78 mr r3,r29
ffc09ef4: 4c c6 31 82 crclr 4*cr1+eq
ffc09ef8: 4e 80 04 21 bctrl
(*print)( context, "--- Wall times are in seconds ---\n" );
ffc09efc: 80 01 00 68 lwz r0,104(r1)
ffc09f00: 3c 80 ff c2 lis r4,-62
ffc09f04: 7c 09 03 a6 mtctr r0
ffc09f08: 38 84 36 cc addi r4,r4,14028
ffc09f0c: 7f a3 eb 78 mr r3,r29
ffc09f10: 4c c6 31 82 crclr 4*cr1+eq
ffc09f14: 4e 80 04 21 bctrl
Be sure to test the various cases.
(*print)( context,"\
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");
*/
(*print)( context, " ID OWNER COUNT MISSED "
ffc09f18: 80 01 00 68 lwz r0,104(r1)
ffc09f1c: 3c 80 ff c2 lis r4,-62
ffc09f20: 7c 09 03 a6 mtctr r0
ffc09f24: 38 84 36 f0 addi r4,r4,14064
ffc09f28: 7f a3 eb 78 mr r3,r29
ffc09f2c: 4c c6 31 82 crclr 4*cr1+eq
ffc09f30: 4e 80 04 21 bctrl
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
" "
#endif
" WALL TIME\n"
);
(*print)( context, " "
ffc09f34: 80 01 00 68 lwz r0,104(r1)
ffc09f38: 3c 80 ff c2 lis r4,-62
ffc09f3c: 7c 09 03 a6 mtctr r0
ffc09f40: 38 84 37 3c addi r4,r4,14140
ffc09f44: 7f a3 eb 78 mr r3,r29
ffc09f48: 4c c6 31 82 crclr 4*cr1+eq
ffc09f4c: 4e 80 04 21 bctrl
/*
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
ffc09f50: 83 fe 00 08 lwz r31,8(r30)
ffc09f54: 80 1e 00 0c lwz r0,12(r30)
ffc09f58: 7f 9f 00 40 cmplw cr7,r31,r0
ffc09f5c: 41 9d 00 ec bgt- cr7,ffc0a048 <rtems_rate_monotonic_report_statistics_with_plugin+0x1d8><== NEVER TAKEN
rtems_object_get_name( the_status.owner, sizeof(name), name );
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
ffc09f60: 3e a0 ff c2 lis r21,-62
struct timespec *min_cpu = &the_stats.min_cpu_time;
struct timespec *max_cpu = &the_stats.max_cpu_time;
struct timespec *total_cpu = &the_stats.total_cpu_time;
_Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
(*print)( context,
ffc09f64: 3e 60 ff c2 lis r19,-62
ffc09f68: 3f 60 10 62 lis r27,4194
struct timespec *min_wall = &the_stats.min_wall_time;
struct timespec *max_wall = &the_stats.max_wall_time;
struct timespec *total_wall = &the_stats.total_wall_time;
_Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
(*print)( context,
ffc09f6c: 3e 80 ff c2 lis r20,-62
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
(*print)( context, "\n" );
ffc09f70: 3e c0 ff c2 lis r22,-62
rtems_object_get_name( the_status.owner, sizeof(name), name );
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
ffc09f74: 3a b5 37 88 addi r21,r21,14216
struct timespec *min_cpu = &the_stats.min_cpu_time;
struct timespec *max_cpu = &the_stats.max_cpu_time;
struct timespec *total_cpu = &the_stats.total_cpu_time;
_Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
(*print)( context,
ffc09f78: 3a 73 37 a0 addi r19,r19,14240
ffc09f7c: 63 7b 4d d3 ori r27,r27,19923
struct timespec *min_wall = &the_stats.min_wall_time;
struct timespec *max_wall = &the_stats.max_wall_time;
struct timespec *total_wall = &the_stats.total_wall_time;
_Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
(*print)( context,
ffc09f80: 3a 94 37 c0 addi r20,r20,14272
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
(*print)( context, "\n" );
ffc09f84: 3a d6 24 10 addi r22,r22,9232
ffc09f88: 3b 81 00 30 addi r28,r1,48
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
if ( status != RTEMS_SUCCESSFUL )
continue;
/* If the above passed, so should this but check it anyway */
status = rtems_rate_monotonic_get_status( id, &the_status );
ffc09f8c: 3a e1 00 18 addi r23,r1,24
#if defined(RTEMS_DEBUG)
if ( status != RTEMS_SUCCESSFUL )
continue;
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
ffc09f90: 3b 41 00 08 addi r26,r1,8
struct timespec cpu_average;
struct timespec *min_cpu = &the_stats.min_cpu_time;
struct timespec *max_cpu = &the_stats.max_cpu_time;
struct timespec *total_cpu = &the_stats.total_cpu_time;
_Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
ffc09f94: 3b 01 00 48 addi r24,r1,72
ffc09f98: 3b 21 00 10 addi r25,r1,16
struct timespec wall_average;
struct timespec *min_wall = &the_stats.min_wall_time;
struct timespec *max_wall = &the_stats.max_wall_time;
struct timespec *total_wall = &the_stats.total_wall_time;
_Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
ffc09f9c: 3a 41 00 60 addi r18,r1,96
ffc09fa0: 48 00 00 14 b ffc09fb4 <rtems_rate_monotonic_report_statistics_with_plugin+0x144>
/*
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
ffc09fa4: 80 1e 00 0c lwz r0,12(r30)
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
ffc09fa8: 3b ff 00 01 addi r31,r31,1
/*
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
ffc09fac: 7f 80 f8 40 cmplw cr7,r0,r31
ffc09fb0: 41 9c 00 98 blt- cr7,ffc0a048 <rtems_rate_monotonic_report_statistics_with_plugin+0x1d8>
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
ffc09fb4: 7f e3 fb 78 mr r3,r31
ffc09fb8: 7f 84 e3 78 mr r4,r28
ffc09fbc: 48 00 6e c9 bl ffc10e84 <rtems_rate_monotonic_get_statistics>
if ( status != RTEMS_SUCCESSFUL )
ffc09fc0: 2f 83 00 00 cmpwi cr7,r3,0
ffc09fc4: 40 9e ff e0 bne+ cr7,ffc09fa4 <rtems_rate_monotonic_report_statistics_with_plugin+0x134>
continue;
/* If the above passed, so should this but check it anyway */
status = rtems_rate_monotonic_get_status( id, &the_status );
ffc09fc8: 7e e4 bb 78 mr r4,r23
ffc09fcc: 7f e3 fb 78 mr r3,r31
ffc09fd0: 48 00 6f 99 bl ffc10f68 <rtems_rate_monotonic_get_status>
#if defined(RTEMS_DEBUG)
if ( status != RTEMS_SUCCESSFUL )
continue;
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
ffc09fd4: 80 61 00 18 lwz r3,24(r1)
ffc09fd8: 7f 45 d3 78 mr r5,r26
ffc09fdc: 38 80 00 05 li r4,5
ffc09fe0: 48 00 03 51 bl ffc0a330 <rtems_object_get_name>
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
ffc09fe4: 80 01 00 68 lwz r0,104(r1)
ffc09fe8: 7e a4 ab 78 mr r4,r21
ffc09fec: 80 e1 00 30 lwz r7,48(r1)
ffc09ff0: 7f e5 fb 78 mr r5,r31
ffc09ff4: 7c 09 03 a6 mtctr r0
ffc09ff8: 7f a3 eb 78 mr r3,r29
ffc09ffc: 81 01 00 34 lwz r8,52(r1)
ffc0a000: 7f 46 d3 78 mr r6,r26
ffc0a004: 4c c6 31 82 crclr 4*cr1+eq
ffc0a008: 4e 80 04 21 bctrl
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
ffc0a00c: 80 01 00 30 lwz r0,48(r1)
struct timespec cpu_average;
struct timespec *min_cpu = &the_stats.min_cpu_time;
struct timespec *max_cpu = &the_stats.max_cpu_time;
struct timespec *total_cpu = &the_stats.total_cpu_time;
_Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
ffc0a010: 7f 03 c3 78 mr r3,r24
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
ffc0a014: 2f 80 00 00 cmpwi cr7,r0,0
struct timespec cpu_average;
struct timespec *min_cpu = &the_stats.min_cpu_time;
struct timespec *max_cpu = &the_stats.max_cpu_time;
struct timespec *total_cpu = &the_stats.total_cpu_time;
_Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
ffc0a018: 7f 25 cb 78 mr r5,r25
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
(*print)( context, "\n" );
ffc0a01c: 7e c4 b3 78 mr r4,r22
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
ffc0a020: 40 9e 00 70 bne- cr7,ffc0a090 <rtems_rate_monotonic_report_statistics_with_plugin+0x220>
(*print)( context, "\n" );
ffc0a024: 80 01 00 68 lwz r0,104(r1)
ffc0a028: 7f a3 eb 78 mr r3,r29
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
ffc0a02c: 3b ff 00 01 addi r31,r31,1
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
(*print)( context, "\n" );
ffc0a030: 7c 09 03 a6 mtctr r0
ffc0a034: 4c c6 31 82 crclr 4*cr1+eq
ffc0a038: 4e 80 04 21 bctrl
/*
* Cycle through all possible ids and try to report on each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
ffc0a03c: 80 1e 00 0c lwz r0,12(r30)
ffc0a040: 7f 80 f8 40 cmplw cr7,r0,r31
ffc0a044: 40 9c ff 70 bge+ cr7,ffc09fb4 <rtems_rate_monotonic_report_statistics_with_plugin+0x144><== ALWAYS TAKEN
the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
);
#endif
}
}
}
ffc0a048: 80 01 00 ac lwz r0,172(r1)
ffc0a04c: 82 41 00 70 lwz r18,112(r1)
ffc0a050: 7c 08 03 a6 mtlr r0
ffc0a054: 82 61 00 74 lwz r19,116(r1)
ffc0a058: 82 81 00 78 lwz r20,120(r1)
ffc0a05c: 82 a1 00 7c lwz r21,124(r1)
ffc0a060: 82 c1 00 80 lwz r22,128(r1)
ffc0a064: 82 e1 00 84 lwz r23,132(r1)
ffc0a068: 83 01 00 88 lwz r24,136(r1)
ffc0a06c: 83 21 00 8c lwz r25,140(r1)
ffc0a070: 83 41 00 90 lwz r26,144(r1)
ffc0a074: 83 61 00 94 lwz r27,148(r1)
ffc0a078: 83 81 00 98 lwz r28,152(r1)
ffc0a07c: 83 a1 00 9c lwz r29,156(r1)
ffc0a080: 83 c1 00 a0 lwz r30,160(r1)
ffc0a084: 83 e1 00 a4 lwz r31,164(r1)
ffc0a088: 38 21 00 a8 addi r1,r1,168
ffc0a08c: 4e 80 00 20 blr
struct timespec cpu_average;
struct timespec *min_cpu = &the_stats.min_cpu_time;
struct timespec *max_cpu = &the_stats.max_cpu_time;
struct timespec *total_cpu = &the_stats.total_cpu_time;
_Timespec_Divide_by_integer( total_cpu, the_stats.count, &cpu_average );
ffc0a090: 7c 04 03 78 mr r4,r0
ffc0a094: 48 00 45 b5 bl ffc0e648 <_Timespec_Divide_by_integer>
(*print)( context,
ffc0a098: 80 01 00 14 lwz r0,20(r1)
ffc0a09c: 80 81 00 3c lwz r4,60(r1)
ffc0a0a0: 7f a3 eb 78 mr r3,r29
ffc0a0a4: 81 61 00 44 lwz r11,68(r1)
ffc0a0a8: 7d 40 d8 96 mulhw r10,r0,r27
ffc0a0ac: 80 e1 00 40 lwz r7,64(r1)
ffc0a0b0: 7c c4 d8 96 mulhw r6,r4,r27
ffc0a0b4: 81 21 00 10 lwz r9,16(r1)
ffc0a0b8: 80 a1 00 38 lwz r5,56(r1)
ffc0a0bc: 7d 0b d8 96 mulhw r8,r11,r27
ffc0a0c0: 7c 00 fe 70 srawi r0,r0,31
ffc0a0c4: 7d 4a 36 70 srawi r10,r10,6
ffc0a0c8: 7d 40 50 50 subf r10,r0,r10
ffc0a0cc: 80 01 00 68 lwz r0,104(r1)
ffc0a0d0: 7d 6b fe 70 srawi r11,r11,31
ffc0a0d4: 7c 84 fe 70 srawi r4,r4,31
ffc0a0d8: 7c 09 03 a6 mtctr r0
ffc0a0dc: 7c c6 36 70 srawi r6,r6,6
ffc0a0e0: 7d 08 36 70 srawi r8,r8,6
ffc0a0e4: 7c c4 30 50 subf r6,r4,r6
ffc0a0e8: 7d 0b 40 50 subf r8,r11,r8
ffc0a0ec: 7e 64 9b 78 mr r4,r19
ffc0a0f0: 4c c6 31 82 crclr 4*cr1+eq
ffc0a0f4: 4e 80 04 21 bctrl
struct timespec wall_average;
struct timespec *min_wall = &the_stats.min_wall_time;
struct timespec *max_wall = &the_stats.max_wall_time;
struct timespec *total_wall = &the_stats.total_wall_time;
_Timespec_Divide_by_integer(total_wall, the_stats.count, &wall_average);
ffc0a0f8: 80 81 00 30 lwz r4,48(r1)
ffc0a0fc: 7e 43 93 78 mr r3,r18
ffc0a100: 7f 25 cb 78 mr r5,r25
ffc0a104: 48 00 45 45 bl ffc0e648 <_Timespec_Divide_by_integer>
(*print)( context,
ffc0a108: 80 01 00 14 lwz r0,20(r1)
ffc0a10c: 80 81 00 54 lwz r4,84(r1)
ffc0a110: 7f a3 eb 78 mr r3,r29
ffc0a114: 81 61 00 5c lwz r11,92(r1)
ffc0a118: 7d 40 d8 96 mulhw r10,r0,r27
ffc0a11c: 80 a1 00 50 lwz r5,80(r1)
ffc0a120: 7c c4 d8 96 mulhw r6,r4,r27
ffc0a124: 80 e1 00 58 lwz r7,88(r1)
ffc0a128: 81 21 00 10 lwz r9,16(r1)
ffc0a12c: 7d 0b d8 96 mulhw r8,r11,r27
ffc0a130: 7c 00 fe 70 srawi r0,r0,31
ffc0a134: 7d 4a 36 70 srawi r10,r10,6
ffc0a138: 7d 40 50 50 subf r10,r0,r10
ffc0a13c: 80 01 00 68 lwz r0,104(r1)
ffc0a140: 7c 84 fe 70 srawi r4,r4,31
ffc0a144: 7d 6b fe 70 srawi r11,r11,31
ffc0a148: 7c 09 03 a6 mtctr r0
ffc0a14c: 7c c6 36 70 srawi r6,r6,6
ffc0a150: 7d 08 36 70 srawi r8,r8,6
ffc0a154: 7c c4 30 50 subf r6,r4,r6
ffc0a158: 7d 0b 40 50 subf r8,r11,r8
ffc0a15c: 7e 84 a3 78 mr r4,r20
ffc0a160: 4c c6 31 82 crclr 4*cr1+eq
ffc0a164: 4e 80 04 21 bctrl
ffc0a168: 4b ff fe 3c b ffc09fa4 <rtems_rate_monotonic_report_statistics_with_plugin+0x134>
ffc0a17c <rtems_rate_monotonic_reset_all_statistics>:
ffc0a17c: 3d 20 00 00 lis r9,0
/*
* rtems_rate_monotonic_reset_all_statistics
*/
void rtems_rate_monotonic_reset_all_statistics( void )
{
ffc0a180: 94 21 ff f0 stwu r1,-16(r1)
ffc0a184: 7c 08 02 a6 mflr r0
ffc0a188: 81 69 27 b0 lwz r11,10160(r9)
ffc0a18c: 90 01 00 14 stw r0,20(r1)
ffc0a190: 38 0b 00 01 addi r0,r11,1
ffc0a194: 93 c1 00 08 stw r30,8(r1)
ffc0a198: 93 e1 00 0c stw r31,12(r1)
ffc0a19c: 90 09 27 b0 stw r0,10160(r9)
/*
* Cycle through all possible ids and try to reset each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
ffc0a1a0: 3f c0 00 00 lis r30,0
ffc0a1a4: 3b de 2b ec addi r30,r30,11244
ffc0a1a8: 83 fe 00 08 lwz r31,8(r30)
ffc0a1ac: 80 1e 00 0c lwz r0,12(r30)
ffc0a1b0: 7f 9f 00 40 cmplw cr7,r31,r0
ffc0a1b4: 41 9d 00 1c bgt- cr7,ffc0a1d0 <rtems_rate_monotonic_reset_all_statistics+0x54><== NEVER TAKEN
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_reset_statistics( id );
ffc0a1b8: 7f e3 fb 78 mr r3,r31
ffc0a1bc: 48 00 00 31 bl ffc0a1ec <rtems_rate_monotonic_reset_statistics>
/*
* Cycle through all possible ids and try to reset each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
ffc0a1c0: 80 1e 00 0c lwz r0,12(r30)
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
ffc0a1c4: 3b ff 00 01 addi r31,r31,1
/*
* Cycle through all possible ids and try to reset each one. If it
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
ffc0a1c8: 7f 80 f8 40 cmplw cr7,r0,r31
ffc0a1cc: 40 9c ff ec bge+ cr7,ffc0a1b8 <rtems_rate_monotonic_reset_all_statistics+0x3c>
}
/*
* Done so exit thread dispatching disabled critical section.
*/
_Thread_Enable_dispatch();
ffc0a1d0: 48 00 32 6d bl ffc0d43c <_Thread_Enable_dispatch>
}
ffc0a1d4: 80 01 00 14 lwz r0,20(r1)
ffc0a1d8: 83 c1 00 08 lwz r30,8(r1)
ffc0a1dc: 7c 08 03 a6 mtlr r0
ffc0a1e0: 83 e1 00 0c lwz r31,12(r1)
ffc0a1e4: 38 21 00 10 addi r1,r1,16
ffc0a1e8: 4e 80 00 20 blr
ffc198dc <rtems_region_get_segment_size>:
rtems_status_code rtems_region_get_segment_size(
rtems_id id,
void *segment,
uintptr_t *size
)
{
ffc198dc: 94 21 ff d8 stwu r1,-40(r1)
ffc198e0: 7c 08 02 a6 mflr r0
ffc198e4: 93 a1 00 1c stw r29,28(r1)
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
register Region_Control *the_region;
if ( !segment )
ffc198e8: 7c 9d 23 79 mr. r29,r4
rtems_status_code rtems_region_get_segment_size(
rtems_id id,
void *segment,
uintptr_t *size
)
{
ffc198ec: 93 81 00 18 stw r28,24(r1)
ffc198f0: 7c 7c 1b 78 mr r28,r3
ffc198f4: 93 c1 00 20 stw r30,32(r1)
ffc198f8: 7c be 2b 78 mr r30,r5
ffc198fc: 90 01 00 2c stw r0,44(r1)
ffc19900: 93 e1 00 24 stw r31,36(r1)
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
register Region_Control *the_region;
if ( !segment )
ffc19904: 41 82 00 94 beq- ffc19998 <rtems_region_get_segment_size+0xbc>
return RTEMS_INVALID_ADDRESS;
if ( !size )
ffc19908: 2f 85 00 00 cmpwi cr7,r5,0
ffc1990c: 41 9e 00 8c beq- cr7,ffc19998 <rtems_region_get_segment_size+0xbc>
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
ffc19910: 3f e0 00 00 lis r31,0
ffc19914: 80 7f 28 5c lwz r3,10332(r31)
ffc19918: 48 00 2d 95 bl ffc1c6ac <_API_Mutex_Lock>
ffc1991c: 3c 60 00 00 lis r3,0
ffc19920: 38 63 6e ec addi r3,r3,28396
ffc19924: 7f 84 e3 78 mr r4,r28
ffc19928: 38 a1 00 08 addi r5,r1,8
ffc1992c: 48 00 4e 29 bl ffc1e754 <_Objects_Get_no_protection>
the_region = _Region_Get( id, &location );
switch ( location ) {
ffc19930: 80 01 00 08 lwz r0,8(r1)
ffc19934: 2f 80 00 00 cmpwi cr7,r0,0
ffc19938: 40 9e 00 50 bne- cr7,ffc19988 <rtems_region_get_segment_size+0xac>
case OBJECTS_LOCAL:
if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) )
ffc1993c: 7f c5 f3 78 mr r5,r30
ffc19940: 38 63 00 68 addi r3,r3,104
ffc19944: 7f a4 eb 78 mr r4,r29
ffc19948: 48 00 47 41 bl ffc1e088 <_Heap_Size_of_alloc_area>
ffc1994c: 3b c0 00 09 li r30,9
ffc19950: 2f 83 00 00 cmpwi cr7,r3,0
ffc19954: 41 9e 00 08 beq- cr7,ffc1995c <rtems_region_get_segment_size+0x80><== NEVER TAKEN
ffc19958: 3b c0 00 00 li r30,0
case OBJECTS_ERROR:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
ffc1995c: 80 7f 28 5c lwz r3,10332(r31)
ffc19960: 48 00 2d cd bl ffc1c72c <_API_Mutex_Unlock>
return return_status;
}
ffc19964: 80 01 00 2c lwz r0,44(r1)
ffc19968: 7f c3 f3 78 mr r3,r30
ffc1996c: 83 81 00 18 lwz r28,24(r1)
ffc19970: 7c 08 03 a6 mtlr r0
ffc19974: 83 a1 00 1c lwz r29,28(r1)
ffc19978: 83 c1 00 20 lwz r30,32(r1)
ffc1997c: 83 e1 00 24 lwz r31,36(r1)
ffc19980: 38 21 00 28 addi r1,r1,40
ffc19984: 4e 80 00 20 blr
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
ffc19988: 2f 80 00 01 cmpwi cr7,r0,1
ffc1998c: 3b c0 00 04 li r30,4
ffc19990: 40 9e ff c8 bne+ cr7,ffc19958 <rtems_region_get_segment_size+0x7c><== NEVER TAKEN
ffc19994: 4b ff ff c8 b ffc1995c <rtems_region_get_segment_size+0x80>
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
ffc19998: 80 01 00 2c lwz r0,44(r1)
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
return return_status;
ffc1999c: 3b c0 00 09 li r30,9
}
ffc199a0: 7f c3 f3 78 mr r3,r30
ffc199a4: 83 81 00 18 lwz r28,24(r1)
ffc199a8: 7c 08 03 a6 mtlr r0
ffc199ac: 83 a1 00 1c lwz r29,28(r1)
ffc199b0: 83 c1 00 20 lwz r30,32(r1)
ffc199b4: 83 e1 00 24 lwz r31,36(r1)
ffc199b8: 38 21 00 28 addi r1,r1,40
ffc199bc: 4e 80 00 20 blr
ffc1a260 <rtems_signal_send>:
rtems_status_code rtems_signal_send(
rtems_id id,
rtems_signal_set signal_set
)
{
ffc1a260: 94 21 ff e0 stwu r1,-32(r1)
ffc1a264: 7c 08 02 a6 mflr r0
ffc1a268: 93 e1 00 1c stw r31,28(r1)
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
ffc1a26c: 7c 9f 23 79 mr. r31,r4
rtems_status_code rtems_signal_send(
rtems_id id,
rtems_signal_set signal_set
)
{
ffc1a270: 90 01 00 24 stw r0,36(r1)
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
ffc1a274: 38 00 00 0a li r0,10
ffc1a278: 40 82 00 1c bne- ffc1a294 <rtems_signal_send+0x34>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc1a27c: 7c 03 03 78 mr r3,r0
ffc1a280: 80 01 00 24 lwz r0,36(r1)
ffc1a284: 83 e1 00 1c lwz r31,28(r1)
ffc1a288: 38 21 00 20 addi r1,r1,32
ffc1a28c: 7c 08 03 a6 mtlr r0
ffc1a290: 4e 80 00 20 blr
ASR_Information *asr;
if ( !signal_set )
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
ffc1a294: 38 81 00 08 addi r4,r1,8
ffc1a298: 48 00 51 b1 bl ffc1f448 <_Thread_Get>
switch ( location ) {
ffc1a29c: 81 21 00 08 lwz r9,8(r1)
ffc1a2a0: 38 00 00 04 li r0,4
ffc1a2a4: 2f 89 00 00 cmpwi cr7,r9,0
ffc1a2a8: 40 be ff d4 bne- cr7,ffc1a27c <rtems_signal_send+0x1c>
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
ffc1a2ac: 81 23 01 40 lwz r9,320(r3)
asr = &api->Signal;
ffc1a2b0: 80 09 00 0c lwz r0,12(r9)
ffc1a2b4: 2f 80 00 00 cmpwi cr7,r0,0
ffc1a2b8: 41 9e 00 a4 beq- cr7,ffc1a35c <rtems_signal_send+0xfc>
if ( ! _ASR_Is_null_handler( asr->handler ) ) {
if ( asr->is_enabled ) {
ffc1a2bc: 88 09 00 08 lbz r0,8(r9)
ffc1a2c0: 2f 80 00 00 cmpwi cr7,r0,0
ffc1a2c4: 41 9e 00 58 beq- cr7,ffc1a31c <rtems_signal_send+0xbc>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc1a2c8: 7c 00 00 a6 mfmsr r0
ffc1a2cc: 7d 70 42 a6 mfsprg r11,0
ffc1a2d0: 7c 0b 58 78 andc r11,r0,r11
ffc1a2d4: 7d 60 01 24 mtmsr r11
)
{
ISR_Level _level;
_ISR_Disable( _level );
*signal_set |= signals;
ffc1a2d8: 81 69 00 14 lwz r11,20(r9)
ffc1a2dc: 7d 7f fb 78 or r31,r11,r31
ffc1a2e0: 93 e9 00 14 stw r31,20(r9)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc1a2e4: 7c 00 01 24 mtmsr r0
_ASR_Post_signals( signal_set, &asr->signals_posted );
the_thread->do_post_task_switch_extension = true;
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
ffc1a2e8: 3d 20 00 00 lis r9,0
ffc1a2ec: 81 29 28 4c lwz r9,10316(r9)
if ( ! _ASR_Is_null_handler( asr->handler ) ) {
if ( asr->is_enabled ) {
_ASR_Post_signals( signal_set, &asr->signals_posted );
the_thread->do_post_task_switch_extension = true;
ffc1a2f0: 38 00 00 01 li r0,1
ffc1a2f4: 98 03 00 74 stb r0,116(r3)
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
ffc1a2f8: 2f 89 00 00 cmpwi cr7,r9,0
ffc1a2fc: 41 9e 00 40 beq- cr7,ffc1a33c <rtems_signal_send+0xdc>
ffc1a300: 3d 20 00 00 lis r9,0
ffc1a304: 81 29 28 64 lwz r9,10340(r9)
ffc1a308: 7f 83 48 00 cmpw cr7,r3,r9
ffc1a30c: 40 be 00 30 bne+ cr7,ffc1a33c <rtems_signal_send+0xdc> <== NEVER TAKEN
_ISR_Signals_to_thread_executing = true;
ffc1a310: 3d 20 00 00 lis r9,0
ffc1a314: 98 09 28 80 stb r0,10368(r9)
ffc1a318: 48 00 00 24 b ffc1a33c <rtems_signal_send+0xdc>
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc1a31c: 7c 00 00 a6 mfmsr r0
ffc1a320: 7d 70 42 a6 mfsprg r11,0
ffc1a324: 7c 0b 58 78 andc r11,r0,r11
ffc1a328: 7d 60 01 24 mtmsr r11
ffc1a32c: 81 69 00 18 lwz r11,24(r9)
ffc1a330: 7d 7f fb 78 or r31,r11,r31
ffc1a334: 93 e9 00 18 stw r31,24(r9)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc1a338: 7c 00 01 24 mtmsr r0
} else {
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
_Thread_Enable_dispatch();
ffc1a33c: 48 00 50 a1 bl ffc1f3dc <_Thread_Enable_dispatch>
ffc1a340: 38 00 00 00 li r0,0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc1a344: 7c 03 03 78 mr r3,r0
ffc1a348: 80 01 00 24 lwz r0,36(r1)
ffc1a34c: 83 e1 00 1c lwz r31,28(r1)
ffc1a350: 38 21 00 20 addi r1,r1,32
ffc1a354: 7c 08 03 a6 mtlr r0
ffc1a358: 4e 80 00 20 blr
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
ffc1a35c: 48 00 50 81 bl ffc1f3dc <_Thread_Enable_dispatch>
ffc1a360: 38 00 00 0b li r0,11
return RTEMS_NOT_DEFINED;
ffc1a364: 4b ff ff 18 b ffc1a27c <rtems_signal_send+0x1c>
ffc10e68 <rtems_task_mode>:
ASR_Information *asr;
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
ffc10e68: 2c 05 00 00 cmpwi r5,0
rtems_status_code rtems_task_mode(
rtems_mode mode_set,
rtems_mode mask,
rtems_mode *previous_mode_set
)
{
ffc10e6c: 94 21 ff f0 stwu r1,-16(r1)
ffc10e70: 7c 08 02 a6 mflr r0
ffc10e74: 93 e1 00 0c stw r31,12(r1)
ffc10e78: 90 01 00 14 stw r0,20(r1)
ASR_Information *asr;
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
ffc10e7c: 38 00 00 09 li r0,9
ffc10e80: 41 82 01 1c beq- ffc10f9c <rtems_task_mode+0x134>
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
ffc10e84: 3d 20 00 00 lis r9,0
ffc10e88: 81 29 27 6c lwz r9,10092(r9)
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
ffc10e8c: 80 09 00 7c lwz r0,124(r9)
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
ffc10e90: 89 49 00 75 lbz r10,117(r9)
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
ffc10e94: 2f 80 00 00 cmpwi cr7,r0,0
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
ffc10e98: 81 69 01 40 lwz r11,320(r9)
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
ffc10e9c: 7d 4a 00 34 cntlzw r10,r10
ffc10ea0: 55 4a d9 7e rlwinm r10,r10,27,5,31
ffc10ea4: 55 48 40 2e rlwinm r8,r10,8,0,23
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
ffc10ea8: 40 9e 01 0c bne- cr7,ffc10fb4 <rtems_task_mode+0x14c>
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
ffc10eac: 89 4b 00 08 lbz r10,8(r11)
#ifndef ASM
static inline uint32_t _CPU_ISR_Get_level( void )
{
register unsigned int msr;
_CPU_MSR_GET(msr);
ffc10eb0: 38 00 00 00 li r0,0
ffc10eb4: 7d 4a 00 34 cntlzw r10,r10
ffc10eb8: 55 4a d9 7e rlwinm r10,r10,27,5,31
ffc10ebc: 55 4a 50 2a rlwinm r10,r10,10,0,21
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
ffc10ec0: 7d 48 43 78 or r8,r10,r8
ffc10ec4: 7c 00 00 a6 mfmsr r0
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
ffc10ec8: 70 8a 01 00 andi. r10,r4,256
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
old_mode |= _ISR_Get_level();
*previous_mode_set = old_mode;
ffc10ecc: 68 00 80 00 xori r0,r0,32768
ffc10ed0: 54 00 8f fe rlwinm r0,r0,17,31,31
ffc10ed4: 7d 08 03 78 or r8,r8,r0
ffc10ed8: 91 05 00 00 stw r8,0(r5)
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
ffc10edc: 41 82 00 10 beq- ffc10eec <rtems_task_mode+0x84>
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
ffc10ee0: 68 60 01 00 xori r0,r3,256
ffc10ee4: 54 00 c7 fe rlwinm r0,r0,24,31,31
ffc10ee8: 98 09 00 75 stb r0,117(r9)
if ( mask & RTEMS_TIMESLICE_MASK ) {
ffc10eec: 70 80 02 00 andi. r0,r4,512
ffc10ef0: 41 82 00 20 beq- ffc10f10 <rtems_task_mode+0xa8>
if ( _Modes_Is_timeslice(mode_set) ) {
ffc10ef4: 70 60 02 00 andi. r0,r3,512
ffc10ef8: 41 82 01 08 beq- ffc11000 <rtems_task_mode+0x198>
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
ffc10efc: 3d 40 00 00 lis r10,0
ffc10f00: 80 0a 27 24 lwz r0,10020(r10)
if ( mask & RTEMS_PREEMPT_MASK )
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
if ( mask & RTEMS_TIMESLICE_MASK ) {
if ( _Modes_Is_timeslice(mode_set) ) {
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
ffc10f04: 39 40 00 01 li r10,1
ffc10f08: 91 49 00 7c stw r10,124(r9)
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
ffc10f0c: 90 09 00 78 stw r0,120(r9)
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
ffc10f10: 70 8a 00 01 andi. r10,r4,1
ffc10f14: 41 82 00 20 beq- ffc10f34 <rtems_task_mode+0xcc>
}
static inline void _CPU_ISR_Set_level( uint32_t level )
{
register unsigned int msr;
_CPU_MSR_GET(msr);
ffc10f18: 38 00 00 00 li r0,0
ffc10f1c: 7c 00 00 a6 mfmsr r0
if (!(level & CPU_MODES_INTERRUPT_MASK)) {
ffc10f20: 70 6a 00 01 andi. r10,r3,1
ffc10f24: 40 82 00 cc bne- ffc10ff0 <rtems_task_mode+0x188>
static inline uint32_t ppc_interrupt_get_disable_mask( void )
{
uint32_t mask;
asm volatile (
ffc10f28: 7d 50 42 a6 mfsprg r10,0
msr |= ppc_interrupt_get_disable_mask();
ffc10f2c: 7d 40 03 78 or r0,r10,r0
}
else {
msr &= ~ppc_interrupt_get_disable_mask();
}
_CPU_MSR_SET(msr);
ffc10f30: 7c 00 01 24 mtmsr r0
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
ffc10f34: 70 80 04 00 andi. r0,r4,1024
ffc10f38: 41 82 00 4c beq- ffc10f84 <rtems_task_mode+0x11c>
* Output:
* *previous_mode_set - previous mode set
* always return RTEMS_SUCCESSFUL;
*/
rtems_status_code rtems_task_mode(
ffc10f3c: 68 63 04 00 xori r3,r3,1024
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
ffc10f40: 88 0b 00 08 lbz r0,8(r11)
* Output:
* *previous_mode_set - previous mode set
* always return RTEMS_SUCCESSFUL;
*/
rtems_status_code rtems_task_mode(
ffc10f44: 54 63 b7 fe rlwinm r3,r3,22,31,31
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
ffc10f48: 7f 80 18 00 cmpw cr7,r0,r3
ffc10f4c: 41 9e 00 38 beq- cr7,ffc10f84 <rtems_task_mode+0x11c>
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
if ( is_asr_enabled != asr->is_enabled ) {
asr->is_enabled = is_asr_enabled;
ffc10f50: 98 6b 00 08 stb r3,8(r11)
static inline uint32_t ppc_interrupt_disable( void )
{
uint32_t level;
uint32_t mask;
asm volatile (
ffc10f54: 7c 00 00 a6 mfmsr r0
ffc10f58: 7d 50 42 a6 mfsprg r10,0
ffc10f5c: 7c 0a 50 78 andc r10,r0,r10
ffc10f60: 7d 40 01 24 mtmsr r10
{
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
_signals = information->signals_pending;
ffc10f64: 81 0b 00 18 lwz r8,24(r11)
information->signals_pending = information->signals_posted;
ffc10f68: 81 4b 00 14 lwz r10,20(r11)
information->signals_posted = _signals;
ffc10f6c: 91 0b 00 14 stw r8,20(r11)
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
_signals = information->signals_pending;
information->signals_pending = information->signals_posted;
ffc10f70: 91 4b 00 18 stw r10,24(r11)
return level;
}
static inline void ppc_interrupt_enable( uint32_t level )
{
asm volatile (
ffc10f74: 7c 00 01 24 mtmsr r0
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
ffc10f78: 80 0b 00 14 lwz r0,20(r11)
ffc10f7c: 2f 80 00 00 cmpwi cr7,r0,0
ffc10f80: 40 9e 00 c4 bne- cr7,ffc11044 <rtems_task_mode+0x1dc>
if ( is_asr_enabled != asr->is_enabled ) {
asr->is_enabled = is_asr_enabled;
_ASR_Swap_signals( asr );
if ( _ASR_Are_signals_pending( asr ) ) {
needs_asr_dispatching = true;
executing->do_post_task_switch_extension = true;
ffc10f84: 3b e0 00 00 li r31,0
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) )
ffc10f88: 3d 20 00 00 lis r9,0
ffc10f8c: 80 09 27 90 lwz r0,10128(r9)
ffc10f90: 2f 80 00 03 cmpwi cr7,r0,3
ffc10f94: 41 9e 00 7c beq- cr7,ffc11010 <rtems_task_mode+0x1a8> <== ALWAYS TAKEN
if ( _Thread_Evaluate_mode() || needs_asr_dispatching )
_Thread_Dispatch();
ffc10f98: 38 00 00 00 li r0,0
return RTEMS_SUCCESSFUL;
}
ffc10f9c: 7c 03 03 78 mr r3,r0
ffc10fa0: 80 01 00 14 lwz r0,20(r1)
ffc10fa4: 83 e1 00 0c lwz r31,12(r1)
ffc10fa8: 38 21 00 10 addi r1,r1,16
ffc10fac: 7c 08 03 a6 mtlr r0
ffc10fb0: 4e 80 00 20 blr
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
ffc10fb4: 89 4b 00 08 lbz r10,8(r11)
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
ffc10fb8: 61 08 02 00 ori r8,r8,512
#ifndef ASM
static inline uint32_t _CPU_ISR_Get_level( void )
{
register unsigned int msr;
_CPU_MSR_GET(msr);
ffc10fbc: 38 00 00 00 li r0,0
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
ffc10fc0: 7d 4a 00 34 cntlzw r10,r10
ffc10fc4: 55 4a d9 7e rlwinm r10,r10,27,5,31
ffc10fc8: 55 4a 50 2a rlwinm r10,r10,10,0,21
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
ffc10fcc: 7d 48 43 78 or r8,r10,r8
ffc10fd0: 7c 00 00 a6 mfmsr r0
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
ffc10fd4: 70 8a 01 00 andi. r10,r4,256
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
old_mode |= _ISR_Get_level();
*previous_mode_set = old_mode;
ffc10fd8: 68 00 80 00 xori r0,r0,32768
ffc10fdc: 54 00 8f fe rlwinm r0,r0,17,31,31
ffc10fe0: 7d 08 03 78 or r8,r8,r0
ffc10fe4: 91 05 00 00 stw r8,0(r5)
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
ffc10fe8: 41 a2 ff 04 beq- ffc10eec <rtems_task_mode+0x84>
ffc10fec: 4b ff fe f4 b ffc10ee0 <rtems_task_mode+0x78>
static inline uint32_t ppc_interrupt_get_disable_mask( void )
{
uint32_t mask;
asm volatile (
ffc10ff0: 7d 50 42 a6 mfsprg r10,0
_CPU_MSR_GET(msr);
if (!(level & CPU_MODES_INTERRUPT_MASK)) {
msr |= ppc_interrupt_get_disable_mask();
}
else {
msr &= ~ppc_interrupt_get_disable_mask();
ffc10ff4: 7c 00 50 78 andc r0,r0,r10
}
_CPU_MSR_SET(msr);
ffc10ff8: 7c 00 01 24 mtmsr r0
*/
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (
Modes_Control mode_set
)
{
_ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );
ffc10ffc: 4b ff ff 38 b ffc10f34 <rtems_task_mode+0xcc>
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
ffc11000: 70 8a 00 01 andi. r10,r4,1
if ( mask & RTEMS_TIMESLICE_MASK ) {
if ( _Modes_Is_timeslice(mode_set) ) {
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
} else
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
ffc11004: 90 09 00 7c stw r0,124(r9)
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
ffc11008: 41 a2 ff 2c beq- ffc10f34 <rtems_task_mode+0xcc>
ffc1100c: 4b ff ff 0c b ffc10f18 <rtems_task_mode+0xb0>
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) )
if ( _Thread_Evaluate_mode() || needs_asr_dispatching )
ffc11010: 48 00 03 59 bl ffc11368 <_Thread_Evaluate_mode>
ffc11014: 2f 83 00 00 cmpwi cr7,r3,0
ffc11018: 40 9e 00 0c bne- cr7,ffc11024 <rtems_task_mode+0x1bc>
ffc1101c: 2f 9f 00 00 cmpwi cr7,r31,0
ffc11020: 41 be ff 78 beq- cr7,ffc10f98 <rtems_task_mode+0x130>
_Thread_Dispatch();
ffc11024: 4b ff 9e d9 bl ffc0aefc <_Thread_Dispatch>
ffc11028: 38 00 00 00 li r0,0
return RTEMS_SUCCESSFUL;
}
ffc1102c: 7c 03 03 78 mr r3,r0
ffc11030: 80 01 00 14 lwz r0,20(r1)
ffc11034: 83 e1 00 0c lwz r31,12(r1)
ffc11038: 38 21 00 10 addi r1,r1,16
ffc1103c: 7c 08 03 a6 mtlr r0
ffc11040: 4e 80 00 20 blr
if ( is_asr_enabled != asr->is_enabled ) {
asr->is_enabled = is_asr_enabled;
_ASR_Swap_signals( asr );
if ( _ASR_Are_signals_pending( asr ) ) {
needs_asr_dispatching = true;
executing->do_post_task_switch_extension = true;
ffc11044: 38 00 00 01 li r0,1
ffc11048: 98 09 00 74 stb r0,116(r9)
ffc1104c: 3b e0 00 01 li r31,1
ffc11050: 4b ff ff 38 b ffc10f88 <rtems_task_mode+0x120>
ffc0edb4 <rtems_task_set_priority>:
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
ffc0edb4: 7d 80 00 26 mfcr r12
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
ffc0edb8: 2e 04 00 00 cmpwi cr4,r4,0
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
ffc0edbc: 94 21 ff d8 stwu r1,-40(r1)
ffc0edc0: 7c 08 02 a6 mflr r0
ffc0edc4: 93 c1 00 20 stw r30,32(r1)
ffc0edc8: 7c be 2b 78 mr r30,r5
ffc0edcc: 93 e1 00 24 stw r31,36(r1)
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
ffc0edd0: 7c 9f 23 78 mr r31,r4
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
ffc0edd4: 90 01 00 2c stw r0,44(r1)
ffc0edd8: 91 81 00 1c stw r12,28(r1)
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
ffc0eddc: 41 92 00 18 beq- cr4,ffc0edf4 <rtems_task_set_priority+0x40>
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
ffc0ede0: 3d 20 00 00 lis r9,0
ffc0ede4: 89 29 26 a4 lbz r9,9892(r9)
ffc0ede8: 38 00 00 13 li r0,19
ffc0edec: 7f 84 48 40 cmplw cr7,r4,r9
ffc0edf0: 41 9d 00 64 bgt- cr7,ffc0ee54 <rtems_task_set_priority+0xa0>
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
ffc0edf4: 2f 9e 00 00 cmpwi cr7,r30,0
ffc0edf8: 38 00 00 09 li r0,9
ffc0edfc: 41 9e 00 58 beq- cr7,ffc0ee54 <rtems_task_set_priority+0xa0>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
ffc0ee00: 38 81 00 08 addi r4,r1,8
ffc0ee04: 48 00 28 5d bl ffc11660 <_Thread_Get>
switch ( location ) {
ffc0ee08: 81 21 00 08 lwz r9,8(r1)
ffc0ee0c: 38 00 00 04 li r0,4
ffc0ee10: 2f 89 00 00 cmpwi cr7,r9,0
ffc0ee14: 40 9e 00 40 bne- cr7,ffc0ee54 <rtems_task_set_priority+0xa0>
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
*old_priority = the_thread->current_priority;
ffc0ee18: 80 03 00 14 lwz r0,20(r3)
ffc0ee1c: 90 1e 00 00 stw r0,0(r30)
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
ffc0ee20: 41 92 00 2c beq- cr4,ffc0ee4c <rtems_task_set_priority+0x98>
the_thread->real_priority = new_priority;
if ( the_thread->resource_count == 0 ||
ffc0ee24: 80 03 00 1c lwz r0,28(r3)
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
*old_priority = the_thread->current_priority;
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
the_thread->real_priority = new_priority;
ffc0ee28: 93 e3 00 18 stw r31,24(r3)
if ( the_thread->resource_count == 0 ||
ffc0ee2c: 2f 80 00 00 cmpwi cr7,r0,0
ffc0ee30: 41 9e 00 10 beq- cr7,ffc0ee40 <rtems_task_set_priority+0x8c>
the_thread->current_priority > new_priority )
ffc0ee34: 80 03 00 14 lwz r0,20(r3)
ffc0ee38: 7f 9f 00 40 cmplw cr7,r31,r0
ffc0ee3c: 40 9c 00 10 bge- cr7,ffc0ee4c <rtems_task_set_priority+0x98><== ALWAYS TAKEN
_Thread_Change_priority( the_thread, new_priority, false );
ffc0ee40: 7f e4 fb 78 mr r4,r31
ffc0ee44: 38 a0 00 00 li r5,0
ffc0ee48: 48 00 20 a1 bl ffc10ee8 <_Thread_Change_priority>
}
_Thread_Enable_dispatch();
ffc0ee4c: 48 00 27 a9 bl ffc115f4 <_Thread_Enable_dispatch>
ffc0ee50: 38 00 00 00 li r0,0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc0ee54: 7c 03 03 78 mr r3,r0
ffc0ee58: 80 01 00 2c lwz r0,44(r1)
ffc0ee5c: 81 81 00 1c lwz r12,28(r1)
ffc0ee60: 7c 08 03 a6 mtlr r0
ffc0ee64: 83 c1 00 20 lwz r30,32(r1)
ffc0ee68: 83 e1 00 24 lwz r31,36(r1)
ffc0ee6c: 7d 80 81 20 mtcrf 8,r12
ffc0ee70: 38 21 00 28 addi r1,r1,40
ffc0ee74: 4e 80 00 20 blr
ffc09fd0 <rtems_task_variable_delete>:
rtems_status_code rtems_task_variable_delete(
rtems_id tid,
void **ptr
)
{
ffc09fd0: 94 21 ff e0 stwu r1,-32(r1)
ffc09fd4: 7c 08 02 a6 mflr r0
ffc09fd8: 93 e1 00 1c stw r31,28(r1)
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
ffc09fdc: 7c 9f 23 79 mr. r31,r4
rtems_status_code rtems_task_variable_delete(
rtems_id tid,
void **ptr
)
{
ffc09fe0: 90 01 00 24 stw r0,36(r1)
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
ffc09fe4: 38 00 00 09 li r0,9
ffc09fe8: 41 82 00 1c beq- ffc0a004 <rtems_task_variable_delete+0x34>
return RTEMS_INVALID_ADDRESS;
prev = NULL;
the_thread = _Thread_Get (tid, &location);
ffc09fec: 38 81 00 08 addi r4,r1,8
ffc09ff0: 48 00 25 39 bl ffc0c528 <_Thread_Get>
switch (location) {
ffc09ff4: 81 21 00 08 lwz r9,8(r1)
ffc09ff8: 38 00 00 04 li r0,4
ffc09ffc: 2f 89 00 00 cmpwi cr7,r9,0
ffc0a000: 41 9e 00 1c beq- cr7,ffc0a01c <rtems_task_variable_delete+0x4c>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc0a004: 7c 03 03 78 mr r3,r0
ffc0a008: 80 01 00 24 lwz r0,36(r1)
ffc0a00c: 83 e1 00 1c lwz r31,28(r1)
ffc0a010: 38 21 00 20 addi r1,r1,32
ffc0a014: 7c 08 03 a6 mtlr r0
ffc0a018: 4e 80 00 20 blr
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
ffc0a01c: 80 83 01 50 lwz r4,336(r3)
while (tvp) {
ffc0a020: 2f 84 00 00 cmpwi cr7,r4,0
ffc0a024: 41 9e 00 30 beq- cr7,ffc0a054 <rtems_task_variable_delete+0x84>
if (tvp->ptr == ptr) {
ffc0a028: 80 04 00 04 lwz r0,4(r4)
ffc0a02c: 7f 80 f8 00 cmpw cr7,r0,r31
ffc0a030: 40 be 00 14 bne+ cr7,ffc0a044 <rtems_task_variable_delete+0x74>
ffc0a034: 48 00 00 6c b ffc0a0a0 <rtems_task_variable_delete+0xd0>
ffc0a038: 80 04 00 04 lwz r0,4(r4)
ffc0a03c: 7f 80 f8 00 cmpw cr7,r0,r31
ffc0a040: 41 9e 00 34 beq- cr7,ffc0a074 <rtems_task_variable_delete+0xa4>
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
ffc0a044: 7c 89 23 78 mr r9,r4
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
ffc0a048: 80 84 00 00 lwz r4,0(r4)
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
ffc0a04c: 2f 84 00 00 cmpwi cr7,r4,0
ffc0a050: 40 9e ff e8 bne+ cr7,ffc0a038 <rtems_task_variable_delete+0x68><== ALWAYS TAKEN
return RTEMS_SUCCESSFUL;
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
ffc0a054: 48 00 24 b5 bl ffc0c508 <_Thread_Enable_dispatch>
ffc0a058: 38 00 00 09 li r0,9
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc0a05c: 7c 03 03 78 mr r3,r0
ffc0a060: 80 01 00 24 lwz r0,36(r1)
ffc0a064: 83 e1 00 1c lwz r31,28(r1)
ffc0a068: 38 21 00 20 addi r1,r1,32
ffc0a06c: 7c 08 03 a6 mtlr r0
ffc0a070: 4e 80 00 20 blr
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
if (tvp->ptr == ptr) {
if (prev)
prev->next = tvp->next;
ffc0a074: 80 04 00 00 lwz r0,0(r4)
ffc0a078: 90 09 00 00 stw r0,0(r9)
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
ffc0a07c: 48 00 01 01 bl ffc0a17c <_RTEMS_Tasks_Invoke_task_variable_dtor>
_Thread_Enable_dispatch();
ffc0a080: 48 00 24 89 bl ffc0c508 <_Thread_Enable_dispatch>
ffc0a084: 38 00 00 00 li r0,0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc0a088: 7c 03 03 78 mr r3,r0
ffc0a08c: 80 01 00 24 lwz r0,36(r1)
ffc0a090: 83 e1 00 1c lwz r31,28(r1)
ffc0a094: 38 21 00 20 addi r1,r1,32
ffc0a098: 7c 08 03 a6 mtlr r0
ffc0a09c: 4e 80 00 20 blr
while (tvp) {
if (tvp->ptr == ptr) {
if (prev)
prev->next = tvp->next;
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
ffc0a0a0: 80 04 00 00 lwz r0,0(r4)
ffc0a0a4: 90 03 01 50 stw r0,336(r3)
ffc0a0a8: 4b ff ff d4 b ffc0a07c <rtems_task_variable_delete+0xac>
ffc0a0ac <rtems_task_variable_get>:
rtems_status_code rtems_task_variable_get(
rtems_id tid,
void **ptr,
void **result
)
{
ffc0a0ac: 94 21 ff e0 stwu r1,-32(r1)
ffc0a0b0: 7c 08 02 a6 mflr r0
ffc0a0b4: 93 e1 00 1c stw r31,28(r1)
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp;
if ( !ptr )
ffc0a0b8: 7c 9f 23 79 mr. r31,r4
rtems_status_code rtems_task_variable_get(
rtems_id tid,
void **ptr,
void **result
)
{
ffc0a0bc: 93 c1 00 18 stw r30,24(r1)
ffc0a0c0: 7c be 2b 78 mr r30,r5
ffc0a0c4: 90 01 00 24 stw r0,36(r1)
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp;
if ( !ptr )
ffc0a0c8: 41 82 00 78 beq- ffc0a140 <rtems_task_variable_get+0x94>
return RTEMS_INVALID_ADDRESS;
if ( !result )
ffc0a0cc: 2f 85 00 00 cmpwi cr7,r5,0
ffc0a0d0: 41 9e 00 70 beq- cr7,ffc0a140 <rtems_task_variable_get+0x94>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
ffc0a0d4: 38 81 00 08 addi r4,r1,8
ffc0a0d8: 48 00 24 51 bl ffc0c528 <_Thread_Get>
switch (location) {
ffc0a0dc: 80 01 00 08 lwz r0,8(r1)
return RTEMS_INVALID_ADDRESS;
if ( !result )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
ffc0a0e0: 7c 69 1b 78 mr r9,r3
switch (location) {
ffc0a0e4: 2f 80 00 00 cmpwi cr7,r0,0
ffc0a0e8: 38 60 00 04 li r3,4
ffc0a0ec: 40 9e 00 3c bne- cr7,ffc0a128 <rtems_task_variable_get+0x7c>
case OBJECTS_LOCAL:
/*
* Figure out if the variable is in this task's list.
*/
tvp = the_thread->task_variables;
ffc0a0f0: 81 29 01 50 lwz r9,336(r9)
while (tvp) {
ffc0a0f4: 2f 89 00 00 cmpwi cr7,r9,0
ffc0a0f8: 40 be 00 14 bne+ cr7,ffc0a10c <rtems_task_variable_get+0x60>
ffc0a0fc: 48 00 00 60 b ffc0a15c <rtems_task_variable_get+0xb0>
*/
*result = tvp->tval;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
ffc0a100: 81 29 00 00 lwz r9,0(r9)
case OBJECTS_LOCAL:
/*
* Figure out if the variable is in this task's list.
*/
tvp = the_thread->task_variables;
while (tvp) {
ffc0a104: 2f 89 00 00 cmpwi cr7,r9,0
ffc0a108: 41 9e 00 54 beq- cr7,ffc0a15c <rtems_task_variable_get+0xb0><== NEVER TAKEN
if (tvp->ptr == ptr) {
ffc0a10c: 80 09 00 04 lwz r0,4(r9)
ffc0a110: 7f 80 f8 00 cmpw cr7,r0,r31
ffc0a114: 40 9e ff ec bne+ cr7,ffc0a100 <rtems_task_variable_get+0x54>
/*
* Should this return the current (i.e not the
* saved) value if `tid' is the current task?
*/
*result = tvp->tval;
ffc0a118: 80 09 00 0c lwz r0,12(r9)
ffc0a11c: 90 1e 00 00 stw r0,0(r30)
_Thread_Enable_dispatch();
ffc0a120: 48 00 23 e9 bl ffc0c508 <_Thread_Enable_dispatch>
ffc0a124: 38 60 00 00 li r3,0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc0a128: 80 01 00 24 lwz r0,36(r1)
ffc0a12c: 83 c1 00 18 lwz r30,24(r1)
ffc0a130: 7c 08 03 a6 mtlr r0
ffc0a134: 83 e1 00 1c lwz r31,28(r1)
ffc0a138: 38 21 00 20 addi r1,r1,32
ffc0a13c: 4e 80 00 20 blr
ffc0a140: 80 01 00 24 lwz r0,36(r1)
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
return RTEMS_INVALID_ADDRESS;
ffc0a144: 38 60 00 09 li r3,9
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc0a148: 83 c1 00 18 lwz r30,24(r1)
ffc0a14c: 7c 08 03 a6 mtlr r0
ffc0a150: 83 e1 00 1c lwz r31,28(r1)
ffc0a154: 38 21 00 20 addi r1,r1,32
ffc0a158: 4e 80 00 20 blr
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
ffc0a15c: 48 00 23 ad bl ffc0c508 <_Thread_Enable_dispatch>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc0a160: 80 01 00 24 lwz r0,36(r1)
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
ffc0a164: 38 60 00 09 li r3,9
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc0a168: 83 c1 00 18 lwz r30,24(r1)
ffc0a16c: 7c 08 03 a6 mtlr r0
ffc0a170: 83 e1 00 1c lwz r31,28(r1)
ffc0a174: 38 21 00 20 addi r1,r1,32
ffc0a178: 4e 80 00 20 blr
ffc1afb0 <rtems_timer_cancel>:
*/
rtems_status_code rtems_timer_cancel(
rtems_id id
)
{
ffc1afb0: 94 21 ff e8 stwu r1,-24(r1)
ffc1afb4: 7c 08 02 a6 mflr r0
ffc1afb8: 7c 64 1b 78 mr r4,r3
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
ffc1afbc: 3c 60 00 00 lis r3,0
ffc1afc0: 90 01 00 1c stw r0,28(r1)
ffc1afc4: 38 63 72 44 addi r3,r3,29252
ffc1afc8: 38 a1 00 08 addi r5,r1,8
ffc1afcc: 48 00 37 d1 bl ffc1e79c <_Objects_Get>
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
ffc1afd0: 81 21 00 08 lwz r9,8(r1)
ffc1afd4: 38 00 00 04 li r0,4
ffc1afd8: 2f 89 00 00 cmpwi cr7,r9,0
ffc1afdc: 40 9e 00 20 bne- cr7,ffc1affc <rtems_timer_cancel+0x4c>
case OBJECTS_LOCAL:
if ( !_Timer_Is_dormant_class( the_timer->the_class ) )
ffc1afe0: 80 03 00 38 lwz r0,56(r3)
ffc1afe4: 2f 80 00 04 cmpwi cr7,r0,4
ffc1afe8: 41 9e 00 0c beq- cr7,ffc1aff4 <rtems_timer_cancel+0x44> <== NEVER TAKEN
(void) _Watchdog_Remove( &the_timer->Ticker );
ffc1afec: 38 63 00 10 addi r3,r3,16
ffc1aff0: 48 00 61 11 bl ffc21100 <_Watchdog_Remove>
_Thread_Enable_dispatch();
ffc1aff4: 48 00 43 e9 bl ffc1f3dc <_Thread_Enable_dispatch>
ffc1aff8: 38 00 00 00 li r0,0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc1affc: 7c 03 03 78 mr r3,r0
ffc1b000: 80 01 00 1c lwz r0,28(r1)
ffc1b004: 38 21 00 18 addi r1,r1,24
ffc1b008: 7c 08 03 a6 mtlr r0
ffc1b00c: 4e 80 00 20 blr
ffc1b6c8 <rtems_timer_server_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
ffc1b6c8: 94 21 ff c8 stwu r1,-56(r1)
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
ffc1b6cc: 3d 20 00 00 lis r9,0
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
ffc1b6d0: 7c 08 02 a6 mflr r0
ffc1b6d4: 93 e1 00 34 stw r31,52(r1)
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
ffc1b6d8: 83 e9 28 a4 lwz r31,10404(r9)
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
ffc1b6dc: 93 61 00 24 stw r27,36(r1)
ffc1b6e0: 7c db 33 78 mr r27,r6
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
ffc1b6e4: 2f 9f 00 00 cmpwi cr7,r31,0
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
ffc1b6e8: 93 81 00 28 stw r28,40(r1)
ffc1b6ec: 7c 9c 23 78 mr r28,r4
ffc1b6f0: 93 a1 00 2c stw r29,44(r1)
ffc1b6f4: 7c 7d 1b 78 mr r29,r3
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
ffc1b6f8: 38 60 00 0e li r3,14
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
ffc1b6fc: 93 c1 00 30 stw r30,48(r1)
ffc1b700: 7c be 2b 78 mr r30,r5
ffc1b704: 90 01 00 3c stw r0,60(r1)
ffc1b708: 93 01 00 18 stw r24,24(r1)
ffc1b70c: 93 21 00 1c stw r25,28(r1)
ffc1b710: 93 41 00 20 stw r26,32(r1)
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
ffc1b714: 41 9e 00 38 beq- cr7,ffc1b74c <rtems_timer_server_fire_when+0x84>
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
ffc1b718: 3d 20 00 00 lis r9,0
ffc1b71c: 88 09 28 2c lbz r0,10284(r9)
ffc1b720: 38 60 00 0b li r3,11
ffc1b724: 2f 80 00 00 cmpwi cr7,r0,0
ffc1b728: 41 9e 00 24 beq- cr7,ffc1b74c <rtems_timer_server_fire_when+0x84><== NEVER TAKEN
return RTEMS_NOT_DEFINED;
if ( !routine )
ffc1b72c: 2f 85 00 00 cmpwi cr7,r5,0
ffc1b730: 38 60 00 09 li r3,9
ffc1b734: 41 9e 00 18 beq- cr7,ffc1b74c <rtems_timer_server_fire_when+0x84>
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
ffc1b738: 7c 83 23 78 mr r3,r4
ffc1b73c: 4b ff be bd bl ffc175f8 <_TOD_Validate>
ffc1b740: 2f 83 00 00 cmpwi cr7,r3,0
ffc1b744: 40 9e 00 38 bne- cr7,ffc1b77c <rtems_timer_server_fire_when+0xb4>
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
(*timer_server->schedule_operation)( timer_server, the_timer );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
ffc1b748: 38 60 00 14 li r3,20
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
ffc1b74c: 80 01 00 3c lwz r0,60(r1)
ffc1b750: 83 01 00 18 lwz r24,24(r1)
ffc1b754: 7c 08 03 a6 mtlr r0
ffc1b758: 83 21 00 1c lwz r25,28(r1)
ffc1b75c: 83 41 00 20 lwz r26,32(r1)
ffc1b760: 83 61 00 24 lwz r27,36(r1)
ffc1b764: 83 81 00 28 lwz r28,40(r1)
ffc1b768: 83 a1 00 2c lwz r29,44(r1)
ffc1b76c: 83 c1 00 30 lwz r30,48(r1)
ffc1b770: 83 e1 00 34 lwz r31,52(r1)
ffc1b774: 38 21 00 38 addi r1,r1,56
ffc1b778: 4e 80 00 20 blr
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
ffc1b77c: 7f 83 e3 78 mr r3,r28
if ( seconds <= _TOD_Seconds_since_epoch() )
ffc1b780: 3f 40 00 00 lis r26,0
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
ffc1b784: 4b ff bd d1 bl ffc17554 <_TOD_To_seconds>
if ( seconds <= _TOD_Seconds_since_epoch() )
ffc1b788: 80 1a 28 44 lwz r0,10308(r26)
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
ffc1b78c: 7c 7c 1b 78 mr r28,r3
if ( seconds <= _TOD_Seconds_since_epoch() )
ffc1b790: 7f 83 00 40 cmplw cr7,r3,r0
ffc1b794: 40 bd ff b4 ble- cr7,ffc1b748 <rtems_timer_server_fire_when+0x80>
ffc1b798: 3c 60 00 00 lis r3,0
ffc1b79c: 38 63 72 44 addi r3,r3,29252
ffc1b7a0: 7f a4 eb 78 mr r4,r29
ffc1b7a4: 38 a1 00 08 addi r5,r1,8
ffc1b7a8: 48 00 2f f5 bl ffc1e79c <_Objects_Get>
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
ffc1b7ac: 83 01 00 08 lwz r24,8(r1)
ffc1b7b0: 7c 79 1b 78 mr r25,r3
ffc1b7b4: 2f 98 00 00 cmpwi cr7,r24,0
ffc1b7b8: 38 60 00 04 li r3,4
ffc1b7bc: 40 be ff 90 bne- cr7,ffc1b74c <rtems_timer_server_fire_when+0x84>
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
ffc1b7c0: 38 79 00 10 addi r3,r25,16
ffc1b7c4: 48 00 59 3d bl ffc21100 <_Watchdog_Remove>
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
ffc1b7c8: 93 b9 00 30 stw r29,48(r25)
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
ffc1b7cc: 39 20 00 03 li r9,3
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
ffc1b7d0: 80 1a 28 44 lwz r0,10308(r26)
(*timer_server->schedule_operation)( timer_server, the_timer );
ffc1b7d4: 7f e3 fb 78 mr r3,r31
the_timer = _Timer_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
ffc1b7d8: 91 39 00 38 stw r9,56(r25)
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
(*timer_server->schedule_operation)( timer_server, the_timer );
ffc1b7dc: 7f 24 cb 78 mr r4,r25
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
ffc1b7e0: 7f 80 e0 50 subf r28,r0,r28
(*timer_server->schedule_operation)( timer_server, the_timer );
ffc1b7e4: 80 1f 00 04 lwz r0,4(r31)
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
ffc1b7e8: 93 19 00 18 stw r24,24(r25)
ffc1b7ec: 7c 09 03 a6 mtctr r0
the_watchdog->routine = routine;
ffc1b7f0: 93 d9 00 2c stw r30,44(r25)
the_watchdog->id = id;
the_watchdog->user_data = user_data;
ffc1b7f4: 93 79 00 34 stw r27,52(r25)
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
ffc1b7f8: 93 99 00 1c stw r28,28(r25)
(*timer_server->schedule_operation)( timer_server, the_timer );
ffc1b7fc: 4e 80 04 21 bctrl
_Thread_Enable_dispatch();
ffc1b800: 48 00 3b dd bl ffc1f3dc <_Thread_Enable_dispatch>
ffc1b804: 38 60 00 00 li r3,0
return RTEMS_SUCCESSFUL;
ffc1b808: 4b ff ff 44 b ffc1b74c <rtems_timer_server_fire_when+0x84>