RTEMS 4.11Annotated Report
Fri Dec 21 21:50:50 2012
30010710 <TOD_MICROSECONDS_TO_TICKS>:
/**
* We should ensure the ticks not be truncated by integer division. We
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
microseconds_per_tick = rtems_configuration_get_microseconds_per_tick();
30010710: e59f3030 ldr r3, [pc, #48] ; 30010748 <TOD_MICROSECONDS_TO_TICKS+0x38><== NOT EXECUTED
#include <rtems/score/tod.h>
uint32_t TOD_MICROSECONDS_TO_TICKS(
uint32_t microseconds
)
{
30010714: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
/**
* We should ensure the ticks not be truncated by integer division. We
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
microseconds_per_tick = rtems_configuration_get_microseconds_per_tick();
30010718: e593500c ldr r5, [r3, #12] <== NOT EXECUTED
#include <rtems/score/tod.h>
uint32_t TOD_MICROSECONDS_TO_TICKS(
uint32_t microseconds
)
{
3001071c: e1a06000 mov r6, r0 <== NOT EXECUTED
* We should ensure the ticks not be truncated by integer division. We
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
microseconds_per_tick = rtems_configuration_get_microseconds_per_tick();
ticks = microseconds / microseconds_per_tick;
30010720: e1a01005 mov r1, r5 <== NOT EXECUTED
30010724: eb004bf7 bl 30023708 <__aeabi_uidiv> <== NOT EXECUTED
if ( (microseconds % microseconds_per_tick) != 0 )
30010728: e1a01005 mov r1, r5 <== NOT EXECUTED
* We should ensure the ticks not be truncated by integer division. We
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
microseconds_per_tick = rtems_configuration_get_microseconds_per_tick();
ticks = microseconds / microseconds_per_tick;
3001072c: e1a04000 mov r4, r0 <== NOT EXECUTED
if ( (microseconds % microseconds_per_tick) != 0 )
30010730: e1a00006 mov r0, r6 <== NOT EXECUTED
30010734: eb004c39 bl 30023820 <__umodsi3> <== NOT EXECUTED
30010738: e3500000 cmp r0, #0 <== NOT EXECUTED
ticks += 1;
3001073c: 12844001 addne r4, r4, #1 <== NOT EXECUTED
return ticks;
}
30010740: e1a00004 mov r0, r4 <== NOT EXECUTED
30010744: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
3000bfc4 <TOD_MILLISECONDS_TO_TICKS>:
/**
* We should ensure the ticks not be truncated by integer division. We
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
milliseconds_per_tick = rtems_configuration_get_milliseconds_per_tick();
3000bfc4: e59f203c ldr r2, [pc, #60] ; 3000c008 <TOD_MILLISECONDS_TO_TICKS+0x44><== NOT EXECUTED
#include <rtems/score/tod.h>
uint32_t TOD_MILLISECONDS_TO_TICKS(
uint32_t milliseconds
)
{
3000bfc8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
/**
* We should ensure the ticks not be truncated by integer division. We
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
milliseconds_per_tick = rtems_configuration_get_milliseconds_per_tick();
3000bfcc: e59f3038 ldr r3, [pc, #56] ; 3000c00c <TOD_MILLISECONDS_TO_TICKS+0x48><== NOT EXECUTED
3000bfd0: e592500c ldr r5, [r2, #12] <== NOT EXECUTED
#include <rtems/score/tod.h>
uint32_t TOD_MILLISECONDS_TO_TICKS(
uint32_t milliseconds
)
{
3000bfd4: e1a06000 mov r6, r0 <== NOT EXECUTED
/**
* We should ensure the ticks not be truncated by integer division. We
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
milliseconds_per_tick = rtems_configuration_get_milliseconds_per_tick();
3000bfd8: e0852593 umull r2, r5, r3, r5 <== NOT EXECUTED
3000bfdc: e1a05325 lsr r5, r5, #6 <== NOT EXECUTED
ticks = milliseconds / milliseconds_per_tick;
3000bfe0: e1a01005 mov r1, r5 <== NOT EXECUTED
3000bfe4: eb003eea bl 3001bb94 <__aeabi_uidiv> <== NOT EXECUTED
if ( (milliseconds % milliseconds_per_tick) != 0 )
3000bfe8: e1a01005 mov r1, r5 <== NOT EXECUTED
* We should ensure the ticks not be truncated by integer division. We
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
milliseconds_per_tick = rtems_configuration_get_milliseconds_per_tick();
ticks = milliseconds / milliseconds_per_tick;
3000bfec: e1a04000 mov r4, r0 <== NOT EXECUTED
if ( (milliseconds % milliseconds_per_tick) != 0 )
3000bff0: e1a00006 mov r0, r6 <== NOT EXECUTED
3000bff4: eb003f2c bl 3001bcac <__umodsi3> <== NOT EXECUTED
3000bff8: e3500000 cmp r0, #0 <== NOT EXECUTED
ticks += 1;
3000bffc: 12844001 addne r4, r4, #1 <== NOT EXECUTED
return ticks;
}
3000c000: e1a00004 mov r0, r4 <== NOT EXECUTED
3000c004: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
3002c2e8 <TOD_TICKS_PER_SECOND_method>:
#include <rtems/config.h>
#include <rtems/score/tod.h>
uint32_t TOD_TICKS_PER_SECOND_method(void)
{
return (TOD_MICROSECONDS_PER_SECOND /
3002c2e8: e59f3010 ldr r3, [pc, #16] ; 3002c300 <TOD_TICKS_PER_SECOND_method+0x18><== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/config.h>
#include <rtems/score/tod.h>
uint32_t TOD_TICKS_PER_SECOND_method(void)
{
3002c2ec: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
return (TOD_MICROSECONDS_PER_SECOND /
3002c2f0: e593100c ldr r1, [r3, #12] <== NOT EXECUTED
3002c2f4: e59f0008 ldr r0, [pc, #8] ; 3002c304 <TOD_TICKS_PER_SECOND_method+0x1c><== NOT EXECUTED
3002c2f8: ebff62cc bl 30004e30 <__aeabi_uidiv> <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick());
}
3002c2fc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
3001284c <_CORE_barrier_Wait>:
)
{
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
3001284c: e59f2078 ldr r2, [pc, #120] ; 300128cc <_CORE_barrier_Wait+0x80>
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_barrier_API_mp_support_callout api_barrier_mp_support
)
{
30012850: e92d0070 push {r4, r5, r6}
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
30012854: e592c008 ldr ip, [r2, #8]
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
30012858: e3a04000 mov r4, #0
3001285c: e58c4034 str r4, [ip, #52] ; 0x34
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_barrier_API_mp_support_callout api_barrier_mp_support
)
{
30012860: e59d200c ldr r2, [sp, #12]
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
30012864: e10f6000 mrs r6, CPSR
30012868: e3864080 orr r4, r6, #128 ; 0x80
3001286c: e129f004 msr CPSR_fc, r4
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
_ISR_Disable( level );
the_barrier->number_of_waiting_threads++;
30012870: e5904048 ldr r4, [r0, #72] ; 0x48
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
30012874: e5905040 ldr r5, [r0, #64] ; 0x40
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
_ISR_Disable( level );
the_barrier->number_of_waiting_threads++;
30012878: e2844001 add r4, r4, #1
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
3001287c: e3550000 cmp r5, #0
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
_ISR_Disable( level );
the_barrier->number_of_waiting_threads++;
30012880: e5804048 str r4, [r0, #72] ; 0x48
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
30012884: 1a000002 bne 30012894 <_CORE_barrier_Wait+0x48>
if ( the_barrier->number_of_waiting_threads ==
30012888: e5905044 ldr r5, [r0, #68] ; 0x44 <== NOT EXECUTED
3001288c: e1540005 cmp r4, r5 <== NOT EXECUTED
30012890: 0a000008 beq 300128b8 <_CORE_barrier_Wait+0x6c> <== NOT EXECUTED
30012894: e3a02001 mov r2, #1
30012898: e5802030 str r2, [r0, #48] ; 0x30
return;
}
}
_Thread_queue_Enter_critical_section( &the_barrier->Wait_queue );
executing->Wait.queue = &the_barrier->Wait_queue;
3001289c: e58c0044 str r0, [ip, #68] ; 0x44
executing->Wait.id = id;
300128a0: e58c1020 str r1, [ip, #32]
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
300128a4: e129f006 msr CPSR_fc, r6
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
300128a8: e59f2020 ldr r2, [pc, #32] ; 300128d0 <_CORE_barrier_Wait+0x84>
300128ac: e1a01003 mov r1, r3
}
300128b0: e8bd0070 pop {r4, r5, r6}
_Thread_queue_Enter_critical_section( &the_barrier->Wait_queue );
executing->Wait.queue = &the_barrier->Wait_queue;
executing->Wait.id = id;
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
300128b4: eafff15f b 3000ee38 <_Thread_queue_Enqueue_with_handler>
_ISR_Disable( level );
the_barrier->number_of_waiting_threads++;
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
if ( the_barrier->number_of_waiting_threads ==
the_barrier->Attributes.maximum_count) {
executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
300128b8: e3a03001 mov r3, #1 <== NOT EXECUTED
300128bc: e58c3034 str r3, [ip, #52] ; 0x34 <== NOT EXECUTED
300128c0: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
executing->Wait.queue = &the_barrier->Wait_queue;
executing->Wait.id = id;
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
}
300128c4: e8bd0070 pop {r4, r5, r6} <== NOT EXECUTED
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
if ( the_barrier->number_of_waiting_threads ==
the_barrier->Attributes.maximum_count) {
executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
_ISR_Enable( level );
_CORE_barrier_Release( the_barrier, id, api_barrier_mp_support );
300128c8: eaffffd3 b 3001281c <_CORE_barrier_Release> <== NOT EXECUTED
3001bc50 <_CORE_message_queue_Broadcast>:
{
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
3001bc50: e590304c ldr r3, [r0, #76] ; 0x4c
Objects_Id id __attribute__((unused)),
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)),
#endif
uint32_t *count
)
{
3001bc54: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
3001bc58: e1530002 cmp r3, r2
Objects_Id id __attribute__((unused)),
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)),
#endif
uint32_t *count
)
{
3001bc5c: e1a07000 mov r7, r0
3001bc60: e1a05002 mov r5, r2
3001bc64: e1a08001 mov r8, r1
3001bc68: e59da020 ldr sl, [sp, #32]
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
3001bc6c: 3a000016 bcc 3001bccc <_CORE_message_queue_Broadcast+0x7c>
* 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 ) {
3001bc70: e5906048 ldr r6, [r0, #72] ; 0x48
3001bc74: e3560000 cmp r6, #0
*count = 0;
3001bc78: 13a00000 movne r0, #0
3001bc7c: 158a0000 strne r0, [sl]
* 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 ) {
3001bc80: 18bd85f0 popne {r4, r5, r6, r7, r8, sl, pc}
/*
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
3001bc84: e1a00007 mov r0, r7
3001bc88: eb000bad bl 3001eb44 <_Thread_queue_Dequeue>
3001bc8c: e2504000 subs r4, r0, #0
3001bc90: 0a00000a beq 3001bcc0 <_CORE_message_queue_Broadcast+0x70>
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
3001bc94: e594002c ldr r0, [r4, #44] ; 0x2c
3001bc98: e1a01008 mov r1, r8
3001bc9c: e1a02005 mov r2, r5
3001bca0: eb001e6e bl 30023660 <memcpy>
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
3001bca4: e5943028 ldr r3, [r4, #40] ; 0x28
/*
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
3001bca8: e1a00007 mov r0, r7
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
3001bcac: e5835000 str r5, [r3]
/*
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
3001bcb0: eb000ba3 bl 3001eb44 <_Thread_queue_Dequeue>
3001bcb4: e2504000 subs r4, r0, #0
_Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {
waitp = &the_thread->Wait;
number_broadcasted += 1;
3001bcb8: e2866001 add r6, r6, #1
/*
* There must be no pending messages if there is a thread waiting to
* receive a message.
*/
number_broadcasted = 0;
while ((the_thread =
3001bcbc: 1afffff4 bne 3001bc94 <_CORE_message_queue_Broadcast+0x44>
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_message_queue_mp_support) ( the_thread, id );
#endif
}
*count = number_broadcasted;
3001bcc0: e58a6000 str r6, [sl]
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
3001bcc4: e1a00004 mov r0, r4
3001bcc8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE;
3001bccc: e3a00001 mov r0, #1 <== NOT EXECUTED
#endif
}
*count = number_broadcasted;
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
3001bcd0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
30013b20 <_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
)
{
30013b20: e92d40f0 push {r4, r5, r6, r7, lr}
/*
* Check if allocated_message_size is aligned to uintptr-size boundary.
* If not, it will increase allocated_message_size to multiplicity of pointer
* size.
*/
if (allocated_message_size & (sizeof(uintptr_t) - 1)) {
30013b24: e3130003 tst r3, #3
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
)
{
30013b28: e1a04000 mov r4, r0
size_t message_buffering_required = 0;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
the_message_queue->number_of_pending_messages = 0;
30013b2c: e3a00000 mov 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
)
{
30013b30: e1a05002 mov r5, r2
30013b34: e1a07001 mov r7, r1
size_t message_buffering_required = 0;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
30013b38: e5842044 str r2, [r4, #68] ; 0x44
the_message_queue->number_of_pending_messages = 0;
30013b3c: e5840048 str r0, [r4, #72] ; 0x48
the_message_queue->maximum_message_size = maximum_message_size;
30013b40: e584304c str r3, [r4, #76] ; 0x4c
/*
* Check if allocated_message_size is aligned to uintptr-size boundary.
* If not, it will increase allocated_message_size to multiplicity of pointer
* size.
*/
if (allocated_message_size & (sizeof(uintptr_t) - 1)) {
30013b44: 01a06003 moveq r6, r3
30013b48: 0a000003 beq 30013b5c <_CORE_message_queue_Initialize+0x3c>
allocated_message_size += sizeof(uintptr_t);
30013b4c: e2836004 add r6, r3, #4 <== NOT EXECUTED
allocated_message_size &= ~(sizeof(uintptr_t) - 1);
30013b50: e3c66003 bic r6, r6, #3 <== NOT EXECUTED
/*
* Check for an overflow. It can occur while increasing allocated_message_size
* to multiplicity of uintptr_t above.
*/
if (allocated_message_size < maximum_message_size)
30013b54: e1530006 cmp r3, r6 <== NOT EXECUTED
30013b58: 88bd80f0 pophi {r4, r5, r6, r7, pc} <== NOT EXECUTED
/*
* Calculate how much total memory is required for message buffering and
* check for overflow on the multiplication.
*/
if ( !size_t_mult32_with_overflow(
30013b5c: e2866010 add r6, r6, #16
size_t a,
size_t b,
size_t *c
)
{
long long x = (long long)a*b;
30013b60: e0810695 umull r0, r1, r5, r6
if ( x > SIZE_MAX )
30013b64: e3e02000 mvn r2, #0
30013b68: e3a03000 mov r3, #0
30013b6c: e1520000 cmp r2, r0
30013b70: e0d3c001 sbcs ip, r3, r1
*/
if ( !size_t_mult32_with_overflow(
(size_t) maximum_pending_messages,
allocated_message_size + sizeof(CORE_message_queue_Buffer_control),
&message_buffering_required ) )
return false;
30013b74: b3a00000 movlt r0, #0
size_t *c
)
{
long long x = (long long)a*b;
if ( x > SIZE_MAX )
30013b78: b8bd80f0 poplt {r4, r5, r6, r7, pc}
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
_Workspace_Allocate( message_buffering_required );
30013b7c: eb000bcf bl 30016ac0 <_Workspace_Allocate>
if (the_message_queue->message_buffers == 0)
30013b80: e3500000 cmp r0, #0
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
_Workspace_Allocate( message_buffering_required );
30013b84: e1a01000 mov r1, r0
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
30013b88: e584005c str r0, [r4, #92] ; 0x5c
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
30013b8c: 0a000013 beq 30013be0 <_CORE_message_queue_Initialize+0xc0>
/*
* Initialize the pool of inactive messages, pending messages,
* and set of waiting threads.
*/
_Chain_Initialize (
30013b90: e2840060 add r0, r4, #96 ; 0x60
30013b94: e1a02005 mov r2, r5
30013b98: e1a03006 mov r3, r6
30013b9c: ebffffc6 bl 30013abc <_Chain_Initialize>
allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
);
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
_Thread_queue_Initialize(
30013ba0: e5971000 ldr r1, [r7]
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
30013ba4: e2843050 add r3, r4, #80 ; 0x50
30013ba8: e2842054 add r2, r4, #84 ; 0x54
head->next = tail;
head->previous = NULL;
tail->previous = head;
30013bac: e5843058 str r3, [r4, #88] ; 0x58
30013bb0: e2413001 sub r3, r1, #1
30013bb4: e2731000 rsbs r1, r3, #0
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
30013bb8: e5842050 str r2, [r4, #80] ; 0x50
head->previous = NULL;
30013bbc: e3a02000 mov r2, #0
30013bc0: e5842054 str r2, [r4, #84] ; 0x54
30013bc4: e1a00004 mov r0, r4
30013bc8: e0a11003 adc r1, r1, r3
30013bcc: e3a02080 mov r2, #128 ; 0x80
30013bd0: e3a03006 mov r3, #6
30013bd4: eb000981 bl 300161e0 <_Thread_queue_Initialize>
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
30013bd8: e3a00001 mov r0, #1
30013bdc: e8bd80f0 pop {r4, r5, r6, r7, pc}
}
30013be0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
30013cc4 <_CORE_message_queue_Submit>:
)
{
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
30013cc4: e590304c ldr r3, [r0, #76] ; 0x4c
#endif
CORE_message_queue_Submit_types submit_type,
bool wait,
Watchdog_Interval timeout
)
{
30013cc8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
30013ccc: e1530002 cmp r3, r2
#endif
CORE_message_queue_Submit_types submit_type,
bool wait,
Watchdog_Interval timeout
)
{
30013cd0: e1a04000 mov r4, r0
30013cd4: e1a05002 mov r5, r2
30013cd8: e1a0a001 mov sl, r1
30013cdc: e59d6020 ldr r6, [sp, #32]
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
return CORE_MESSAGE_QUEUE_STATUS_INVALID_SIZE;
30013ce0: 33a00001 movcc r0, #1
)
{
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
30013ce4: 38bd85f0 popcc {r4, r5, r6, r7, r8, sl, pc}
}
/*
* Is there a thread currently waiting on this message queue?
*/
if ( the_message_queue->number_of_pending_messages == 0 ) {
30013ce8: e5947048 ldr r7, [r4, #72] ; 0x48
30013cec: e3570000 cmp r7, #0
30013cf0: 0a00000e beq 30013d30 <_CORE_message_queue_Submit+0x6c>
RTEMS_INLINE_ROUTINE CORE_message_queue_Buffer_control *
_CORE_message_queue_Allocate_message_buffer (
CORE_message_queue_Control *the_message_queue
)
{
return (CORE_message_queue_Buffer_control *)
30013cf4: e2840060 add r0, r4, #96 ; 0x60
30013cf8: ebffff62 bl 30013a88 <_Chain_Get>
* No one waiting on the message queue at this time, so attempt to
* queue the message up for a future receive.
*/
the_message =
_CORE_message_queue_Allocate_message_buffer( the_message_queue );
if ( the_message ) {
30013cfc: e2507000 subs r7, r0, #0
30013d00: 0a000016 beq 30013d60 <_CORE_message_queue_Submit+0x9c>
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
30013d04: e1a0100a mov r1, sl
30013d08: e1a02005 mov r2, r5
30013d0c: e287000c add r0, r7, #12
30013d10: eb001c45 bl 3001ae2c <memcpy>
size
);
the_message->Contents.size = size;
_CORE_message_queue_Set_message_priority( the_message, submit_type );
_CORE_message_queue_Insert_message(
30013d14: e1a00004 mov r0, r4
_CORE_message_queue_Copy_buffer(
buffer,
the_message->Contents.buffer,
size
);
the_message->Contents.size = size;
30013d18: e5875008 str r5, [r7, #8]
_CORE_message_queue_Set_message_priority( the_message, submit_type );
_CORE_message_queue_Insert_message(
30013d1c: e1a01007 mov r1, r7
30013d20: e1a02006 mov r2, r6
30013d24: eb00126f bl 300186e8 <_CORE_message_queue_Insert_message>
the_message_queue,
the_message,
submit_type
);
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
30013d28: e3a00000 mov r0, #0
30013d2c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
/*
* Is there a thread currently waiting on this message queue?
*/
if ( the_message_queue->number_of_pending_messages == 0 ) {
the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
30013d30: eb000824 bl 30015dc8 <_Thread_queue_Dequeue>
if ( the_thread ) {
30013d34: e2508000 subs r8, r0, #0
30013d38: 0affffed beq 30013cf4 <_CORE_message_queue_Submit+0x30>
30013d3c: e598002c ldr r0, [r8, #44] ; 0x2c
30013d40: e1a0100a mov r1, sl
30013d44: e1a02005 mov r2, r5
30013d48: eb001c37 bl 3001ae2c <memcpy>
_CORE_message_queue_Copy_buffer(
buffer,
the_thread->Wait.return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
30013d4c: e5983028 ldr r3, [r8, #40] ; 0x28
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_message_queue_mp_support) ( the_thread, id );
#endif
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
30013d50: e1a00007 mov r0, r7
_CORE_message_queue_Copy_buffer(
buffer,
the_thread->Wait.return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
30013d54: e5835000 str r5, [r3]
the_thread->Wait.count = (uint32_t) submit_type;
30013d58: e5886024 str r6, [r8, #36] ; 0x24
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_message_queue_mp_support) ( the_thread, id );
#endif
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
30013d5c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
);
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
#if !defined(RTEMS_SCORE_COREMSG_ENABLE_BLOCKING_SEND)
return CORE_MESSAGE_QUEUE_STATUS_TOO_MANY;
30013d60: e3a00002 mov r0, #2 <== NOT EXECUTED
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
#endif
}
30013d64: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
3000b39c <_CORE_mutex_Initialize>:
CORE_mutex_Status _CORE_mutex_Initialize(
CORE_mutex_Control *the_mutex,
CORE_mutex_Attributes *the_mutex_attributes,
uint32_t initial_lock
)
{
3000b39c: e92d40f0 push {r4, r5, r6, r7, lr}
initial_lock == CORE_MUTEX_UNLOCKED );
*/
the_mutex->Attributes = *the_mutex_attributes;
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
3000b3a0: e3a05000 mov r5, #0
CORE_mutex_Status _CORE_mutex_Initialize(
CORE_mutex_Control *the_mutex,
CORE_mutex_Attributes *the_mutex_attributes,
uint32_t initial_lock
)
{
3000b3a4: e1a0c000 mov ip, r0
the_mutex->Attributes = *the_mutex_attributes;
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
if ( initial_lock == CORE_MUTEX_LOCKED ) {
3000b3a8: e1520005 cmp r2, r5
CORE_mutex_Status _CORE_mutex_Initialize(
CORE_mutex_Control *the_mutex,
CORE_mutex_Attributes *the_mutex_attributes,
uint32_t initial_lock
)
{
3000b3ac: e1a06002 mov r6, r2
/* Add this to the RTEMS environment later ?????????
rtems_assert( initial_lock == CORE_MUTEX_LOCKED ||
initial_lock == CORE_MUTEX_UNLOCKED );
*/
the_mutex->Attributes = *the_mutex_attributes;
3000b3b0: e2804040 add r4, r0, #64 ; 0x40
CORE_mutex_Status _CORE_mutex_Initialize(
CORE_mutex_Control *the_mutex,
CORE_mutex_Attributes *the_mutex_attributes,
uint32_t initial_lock
)
{
3000b3b4: e1a07001 mov r7, r1
/* Add this to the RTEMS environment later ?????????
rtems_assert( initial_lock == CORE_MUTEX_LOCKED ||
initial_lock == CORE_MUTEX_UNLOCKED );
*/
the_mutex->Attributes = *the_mutex_attributes;
3000b3b8: e891000f ldm r1, {r0, r1, r2, r3}
the_mutex->lock = initial_lock;
3000b3bc: e58c6050 str r6, [ip, #80] ; 0x50
/* Add this to the RTEMS environment later ?????????
rtems_assert( initial_lock == CORE_MUTEX_LOCKED ||
initial_lock == CORE_MUTEX_UNLOCKED );
*/
the_mutex->Attributes = *the_mutex_attributes;
3000b3c0: e884000f stm r4, {r0, r1, r2, r3}
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
3000b3c4: e58c5058 str r5, [ip, #88] ; 0x58
#endif
_Thread_Executing->resource_count++;
}
} else {
the_mutex->nest_count = 0;
3000b3c8: 158c5054 strne r5, [ip, #84] ; 0x54
the_mutex->holder = NULL;
3000b3cc: 158c505c strne r5, [ip, #92] ; 0x5c
the_mutex->holder_id = 0;
3000b3d0: 158c5060 strne r5, [ip, #96] ; 0x60
the_mutex->Attributes = *the_mutex_attributes;
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
if ( initial_lock == CORE_MUTEX_LOCKED ) {
3000b3d4: 1a00000b bne 3000b408 <_CORE_mutex_Initialize+0x6c>
the_mutex->nest_count = 1;
the_mutex->holder = _Thread_Executing;
3000b3d8: e59f3074 ldr r3, [pc, #116] ; 3000b454 <_CORE_mutex_Initialize+0xb8>
*/
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority(
CORE_mutex_Attributes *the_attribute
)
{
return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
3000b3dc: e59c2048 ldr r2, [ip, #72] ; 0x48
3000b3e0: e5933008 ldr r3, [r3, #8]
the_mutex->Attributes = *the_mutex_attributes;
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
if ( initial_lock == CORE_MUTEX_LOCKED ) {
the_mutex->nest_count = 1;
3000b3e4: e3a00001 mov r0, #1
the_mutex->holder = _Thread_Executing;
the_mutex->holder_id = _Thread_Executing->Object.id;
3000b3e8: e5931008 ldr r1, [r3, #8]
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
3000b3ec: e3520002 cmp r2, #2
the_mutex->Attributes = *the_mutex_attributes;
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
if ( initial_lock == CORE_MUTEX_LOCKED ) {
the_mutex->nest_count = 1;
3000b3f0: e58c0054 str r0, [ip, #84] ; 0x54
the_mutex->holder = _Thread_Executing;
3000b3f4: e58c305c str r3, [ip, #92] ; 0x5c
the_mutex->holder_id = _Thread_Executing->Object.id;
3000b3f8: e58c1060 str r1, [ip, #96] ; 0x60
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
3000b3fc: 0a00000a beq 3000b42c <_CORE_mutex_Initialize+0x90>
3000b400: e3520003 cmp r2, #3
3000b404: 0a000008 beq 3000b42c <_CORE_mutex_Initialize+0x90>
the_mutex->nest_count = 0;
the_mutex->holder = NULL;
the_mutex->holder_id = 0;
}
_Thread_queue_Initialize(
3000b408: e5971008 ldr r1, [r7, #8]
3000b40c: e1a0000c mov r0, ip
3000b410: e2911000 adds r1, r1, #0
3000b414: 13a01001 movne r1, #1
3000b418: e3a02b01 mov r2, #1024 ; 0x400
3000b41c: e3a03004 mov r3, #4
3000b420: eb0008fa bl 3000d810 <_Thread_queue_Initialize>
THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY,
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
3000b424: e3a00000 mov r0, #0
3000b428: e8bd80f0 pop {r4, r5, r6, r7, pc}
the_mutex->holder = _Thread_Executing;
the_mutex->holder_id = _Thread_Executing->Object.id;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
if ( _Thread_Executing->current_priority <
3000b42c: e5931014 ldr r1, [r3, #20]
3000b430: e59c204c ldr r2, [ip, #76] ; 0x4c
3000b434: e1510002 cmp r1, r2
3000b438: 2a000001 bcs 3000b444 <_CORE_mutex_Initialize+0xa8>
the_mutex->Attributes.priority_ceiling )
return CORE_MUTEX_STATUS_CEILING_VIOLATED;
3000b43c: e3a00005 mov r0, #5
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
3000b440: e8bd80f0 pop {r4, r5, r6, r7, pc}
_Chain_Prepend_unprotected( &_Thread_Executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = _Thread_Executing->current_priority;
#endif
_Thread_Executing->resource_count++;
3000b444: e593201c ldr r2, [r3, #28] <== NOT EXECUTED
3000b448: e2822001 add r2, r2, #1 <== NOT EXECUTED
3000b44c: e583201c str r2, [r3, #28] <== NOT EXECUTED
3000b450: eaffffec b 3000b408 <_CORE_mutex_Initialize+0x6c> <== NOT EXECUTED
3000b4dc <_CORE_mutex_Seize>:
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
3000b4dc: e92d41f0 push {r4, r5, r6, r7, r8, lr}
* This routine returns true if thread dispatch indicates
* that we are in a critical section.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Dispatch_in_critical_section(void)
{
if ( _Thread_Dispatch_disable_level == 0 )
3000b4e0: e59f40b4 ldr r4, [pc, #180] ; 3000b59c <_CORE_mutex_Seize+0xc0>
3000b4e4: e1a05000 mov r5, r0
3000b4e8: e594c000 ldr ip, [r4]
3000b4ec: e1a06001 mov r6, r1
3000b4f0: e35c0000 cmp ip, #0
3000b4f4: e1a08003 mov r8, r3
3000b4f8: e20270ff and r7, r2, #255 ; 0xff
3000b4fc: 0a000001 beq 3000b508 <_CORE_mutex_Seize+0x2c>
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
3000b500: e3570000 cmp r7, #0
3000b504: 1a00000d bne 3000b540 <_CORE_mutex_Seize+0x64>
3000b508: e1a00005 mov r0, r5
3000b50c: e28d1018 add r1, sp, #24
3000b510: eb0011b8 bl 3000fbf8 <_CORE_mutex_Seize_interrupt_trylock>
3000b514: e3500000 cmp r0, #0
3000b518: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc}
3000b51c: e3570000 cmp r7, #0
3000b520: 1a00000e bne 3000b560 <_CORE_mutex_Seize+0x84>
3000b524: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED
3000b528: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
3000b52c: e59f306c ldr r3, [pc, #108] ; 3000b5a0 <_CORE_mutex_Seize+0xc4><== NOT EXECUTED
3000b530: e3a02001 mov r2, #1 <== NOT EXECUTED
3000b534: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED
3000b538: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED
3000b53c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
3000b540: e59f305c ldr r3, [pc, #92] ; 3000b5a4 <_CORE_mutex_Seize+0xc8>
3000b544: e5933000 ldr r3, [r3]
3000b548: e3530001 cmp r3, #1
3000b54c: 9affffed bls 3000b508 <_CORE_mutex_Seize+0x2c>
3000b550: e3a00000 mov r0, #0 <== NOT EXECUTED
3000b554: e1a01000 mov r1, r0 <== NOT EXECUTED
3000b558: e3a02012 mov r2, #18 <== NOT EXECUTED
3000b55c: eb0001c5 bl 3000bc78 <_Internal_error_Occurred> <== NOT EXECUTED
3000b560: e59f3038 ldr r3, [pc, #56] ; 3000b5a0 <_CORE_mutex_Seize+0xc4>
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000b564: e5942000 ldr r2, [r4]
3000b568: e5933008 ldr r3, [r3, #8]
++level;
3000b56c: e2822001 add r2, r2, #1
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;
3000b570: e3a01001 mov r1, #1
3000b574: e5851030 str r1, [r5, #48] ; 0x30
_Thread_Dispatch_disable_level = level;
3000b578: e5842000 str r2, [r4]
3000b57c: e5835044 str r5, [r3, #68] ; 0x44
3000b580: e5836020 str r6, [r3, #32]
3000b584: e59d3018 ldr r3, [sp, #24]
3000b588: e129f003 msr CPSR_fc, r3
3000b58c: e1a00005 mov r0, r5
3000b590: e1a01008 mov r1, r8
3000b594: ebffffaf bl 3000b458 <_CORE_mutex_Seize_interrupt_blocking>
3000b598: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
3000fbf8 <_CORE_mutex_Seize_interrupt_trylock>:
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
3000fbf8: e59f2120 ldr r2, [pc, #288] ; 3000fd20 <_CORE_mutex_Seize_interrupt_trylock+0x128>
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
3000fbfc: e590c050 ldr ip, [r0, #80] ; 0x50
#if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__)
int _CORE_mutex_Seize_interrupt_trylock(
CORE_mutex_Control *the_mutex,
ISR_Level *level_p
)
{
3000fc00: e1a03000 mov r3, r0
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
3000fc04: e5922008 ldr r2, [r2, #8]
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
3000fc08: e3a00000 mov r0, #0
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
3000fc0c: e15c0000 cmp ip, r0
3000fc10: e92d40f0 push {r4, r5, r6, r7, lr}
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
3000fc14: e5820034 str r0, [r2, #52] ; 0x34
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
3000fc18: 0a00000e beq 3000fc58 <_CORE_mutex_Seize_interrupt_trylock+0x60>
*/
RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority(
CORE_mutex_Attributes *the_attribute
)
{
return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
3000fc1c: e593c048 ldr ip, [r3, #72] ; 0x48
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;
3000fc20: e5925008 ldr r5, [r2, #8]
the_mutex->nest_count = 1;
3000fc24: e3a04001 mov r4, #1
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
3000fc28: e35c0002 cmp ip, #2
/* 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;
3000fc2c: e5830050 str r0, [r3, #80] ; 0x50
the_mutex->holder = executing;
3000fc30: e583205c str r2, [r3, #92] ; 0x5c
the_mutex->holder_id = executing->Object.id;
3000fc34: e5835060 str r5, [r3, #96] ; 0x60
the_mutex->nest_count = 1;
3000fc38: e5834054 str r4, [r3, #84] ; 0x54
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
3000fc3c: 0a00000e beq 3000fc7c <_CORE_mutex_Seize_interrupt_trylock+0x84>
3000fc40: e35c0003 cmp ip, #3
3000fc44: 0a000013 beq 3000fc98 <_CORE_mutex_Seize_interrupt_trylock+0xa0>
3000fc48: e5913000 ldr r3, [r1]
3000fc4c: e129f003 msr CPSR_fc, r3
if ( _Thread_Is_executing( the_mutex->holder ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
_ISR_Enable( *level_p );
return 0;
3000fc50: e3a00000 mov r0, #0
3000fc54: e8bd80f0 pop {r4, r5, r6, r7, pc}
/*
* 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 ) ) {
3000fc58: e593005c ldr r0, [r3, #92] ; 0x5c
3000fc5c: e1520000 cmp r2, r0
/*
* The mutex is not available and the caller must deal with the possibility
* of blocking.
*/
return 1;
3000fc60: 13a00001 movne r0, #1
/*
* 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 ) ) {
3000fc64: 18bd80f0 popne {r4, r5, r6, r7, pc}
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
3000fc68: e5932040 ldr r2, [r3, #64] ; 0x40
3000fc6c: e3520000 cmp r2, #0
3000fc70: 0a000019 beq 3000fcdc <_CORE_mutex_Seize_interrupt_trylock+0xe4>
/*
* The mutex is not available and the caller must deal with the possibility
* of blocking.
*/
return 1;
3000fc74: e3a00001 mov r0, #1
return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p );
}
3000fc78: e8bd80f0 pop {r4, r5, r6, r7, pc}
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
3000fc7c: e592301c ldr r3, [r2, #28]
3000fc80: e2833001 add r3, r3, #1
3000fc84: e582301c str r3, [r2, #28]
3000fc88: e5913000 ldr r3, [r1]
3000fc8c: e129f003 msr CPSR_fc, r3
if ( _Thread_Is_executing( the_mutex->holder ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
_ISR_Enable( *level_p );
return 0;
3000fc90: e3a00000 mov r0, #0
3000fc94: e8bd80f0 pop {r4, r5, r6, r7, pc}
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
3000fc98: e592c01c ldr ip, [r2, #28]
*/
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
3000fc9c: e593704c ldr r7, [r3, #76] ; 0x4c
current = executing->current_priority;
3000fca0: e5926014 ldr r6, [r2, #20]
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
3000fca4: e08c5004 add r5, ip, r4
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
current = executing->current_priority;
if ( current == ceiling ) {
3000fca8: e1570006 cmp r7, r6
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
3000fcac: e582501c str r5, [r2, #28]
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
current = executing->current_priority;
if ( current == ceiling ) {
3000fcb0: 0affffe4 beq 3000fc48 <_CORE_mutex_Seize_interrupt_trylock+0x50>
_ISR_Enable( *level_p );
return 0;
}
if ( current > ceiling ) {
3000fcb4: 3a00000c bcc 3000fcec <_CORE_mutex_Seize_interrupt_trylock+0xf4>
);
_Thread_Enable_dispatch();
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
3000fcb8: e3a05005 mov r5, #5
3000fcbc: e5825034 str r5, [r2, #52] ; 0x34
the_mutex->lock = CORE_MUTEX_UNLOCKED;
3000fcc0: e5834050 str r4, [r3, #80] ; 0x50
the_mutex->nest_count = 0; /* undo locking above */
3000fcc4: e5830054 str r0, [r3, #84] ; 0x54
executing->resource_count--; /* undo locking above */
3000fcc8: e582c01c str ip, [r2, #28]
3000fccc: e5913000 ldr r3, [r1]
3000fcd0: e129f003 msr CPSR_fc, r3
_ISR_Enable( *level_p );
return 0;
3000fcd4: e3a00000 mov r0, #0
3000fcd8: e8bd80f0 pop {r4, r5, r6, r7, pc}
* to nest access.
*/
if ( _Thread_Is_executing( the_mutex->holder ) ) {
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
3000fcdc: e5932054 ldr r2, [r3, #84] ; 0x54
3000fce0: e2822001 add r2, r2, #1
3000fce4: e5832054 str r2, [r3, #84] ; 0x54
3000fce8: eaffffd6 b 3000fc48 <_CORE_mutex_Seize_interrupt_trylock+0x50>
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000fcec: e59f2030 ldr r2, [pc, #48] ; 3000fd24 <_CORE_mutex_Seize_interrupt_trylock+0x12c><== NOT EXECUTED
3000fcf0: e5920000 ldr r0, [r2] <== NOT EXECUTED
++level;
3000fcf4: e2800001 add r0, r0, #1 <== NOT EXECUTED
_Thread_Dispatch_disable_level = level;
3000fcf8: e5820000 str r0, [r2] <== NOT EXECUTED
3000fcfc: e5912000 ldr r2, [r1] <== NOT EXECUTED
3000fd00: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
}
if ( current > ceiling ) {
_Thread_Disable_dispatch();
_ISR_Enable( *level_p );
_Thread_Change_priority(
3000fd04: e3a02000 mov r2, #0 <== NOT EXECUTED
3000fd08: e593005c ldr r0, [r3, #92] ; 0x5c <== NOT EXECUTED
3000fd0c: e593104c ldr r1, [r3, #76] ; 0x4c <== NOT EXECUTED
3000fd10: ebfff3b8 bl 3000cbf8 <_Thread_Change_priority> <== NOT EXECUTED
the_mutex->holder,
the_mutex->Attributes.priority_ceiling,
false
);
_Thread_Enable_dispatch();
3000fd14: ebfff4ea bl 3000d0c4 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
3000fd18: e3a00000 mov r0, #0 <== NOT EXECUTED
3000fd1c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
3000b5a8 <_CORE_mutex_Surrender>:
* allowed when the mutex in quetion is FIFO or simple Priority
* discipline. But Priority Ceiling or Priority Inheritance mutexes
* must be released by the thread which acquired them.
*/
if ( the_mutex->Attributes.only_owner_release ) {
3000b5a8: e5d03044 ldrb r3, [r0, #68] ; 0x44
#else
Objects_Id id __attribute__((unused)),
CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused))
#endif
)
{
3000b5ac: e92d4030 push {r4, r5, lr}
* allowed when the mutex in quetion is FIFO or simple Priority
* discipline. But Priority Ceiling or Priority Inheritance mutexes
* must be released by the thread which acquired them.
*/
if ( the_mutex->Attributes.only_owner_release ) {
3000b5b0: e3530000 cmp r3, #0
#else
Objects_Id id __attribute__((unused)),
CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused))
#endif
)
{
3000b5b4: e1a04000 mov r4, r0
Thread_Control *the_thread;
Thread_Control *holder;
holder = the_mutex->holder;
3000b5b8: e590205c ldr r2, [r0, #92] ; 0x5c
* allowed when the mutex in quetion is FIFO or simple Priority
* discipline. But Priority Ceiling or Priority Inheritance mutexes
* must be released by the thread which acquired them.
*/
if ( the_mutex->Attributes.only_owner_release ) {
3000b5bc: 0a000004 beq 3000b5d4 <_CORE_mutex_Surrender+0x2c>
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
3000b5c0: e59f3110 ldr r3, [pc, #272] ; 3000b6d8 <_CORE_mutex_Surrender+0x130>
if ( !_Thread_Is_executing( holder ) )
3000b5c4: e5933008 ldr r3, [r3, #8]
3000b5c8: e1520003 cmp r2, r3
return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE;
3000b5cc: 13a00002 movne r0, #2
* discipline. But Priority Ceiling or Priority Inheritance mutexes
* must be released by the thread which acquired them.
*/
if ( the_mutex->Attributes.only_owner_release ) {
if ( !_Thread_Is_executing( holder ) )
3000b5d0: 18bd8030 popne {r4, r5, pc}
return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE;
}
/* XXX already unlocked -- not right status */
if ( !the_mutex->nest_count )
3000b5d4: e5940054 ldr r0, [r4, #84] ; 0x54
3000b5d8: e3500000 cmp r0, #0
3000b5dc: 08bd8030 popeq {r4, r5, pc}
return CORE_MUTEX_STATUS_SUCCESSFUL;
the_mutex->nest_count--;
3000b5e0: e2400001 sub r0, r0, #1
if ( the_mutex->nest_count != 0 ) {
3000b5e4: e3500000 cmp r0, #0
/* XXX already unlocked -- not right status */
if ( !the_mutex->nest_count )
return CORE_MUTEX_STATUS_SUCCESSFUL;
the_mutex->nest_count--;
3000b5e8: e5840054 str r0, [r4, #84] ; 0x54
/* Currently no API exercises this behavior. */
break;
}
#else
/* must be CORE_MUTEX_NESTING_ACQUIRES or we wouldn't be here */
return CORE_MUTEX_STATUS_SUCCESSFUL;
3000b5ec: 13a00000 movne r0, #0
if ( !the_mutex->nest_count )
return CORE_MUTEX_STATUS_SUCCESSFUL;
the_mutex->nest_count--;
if ( the_mutex->nest_count != 0 ) {
3000b5f0: 18bd8030 popne {r4, r5, pc}
3000b5f4: e5943048 ldr r3, [r4, #72] ; 0x48
/*
* Formally release the mutex before possibly transferring it to a
* blocked thread.
*/
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
3000b5f8: e3530002 cmp r3, #2
3000b5fc: 0a00001f beq 3000b680 <_CORE_mutex_Surrender+0xd8>
3000b600: e3530003 cmp r3, #3
3000b604: 0a00001d beq 3000b680 <_CORE_mutex_Surrender+0xd8>
if ( holder->resource_count == 0 &&
holder->real_priority != holder->current_priority ) {
_Thread_Change_priority( holder, holder->real_priority, true );
}
}
the_mutex->holder = NULL;
3000b608: e3a05000 mov r5, #0
3000b60c: e584505c str r5, [r4, #92] ; 0x5c
the_mutex->holder_id = 0;
3000b610: e5845060 str r5, [r4, #96] ; 0x60
/*
* Now we check if another thread was waiting for this mutex. If so,
* transfer the mutex to that thread.
*/
if ( ( the_thread = _Thread_queue_Dequeue( &the_mutex->Wait_queue ) ) ) {
3000b614: e1a00004 mov r0, r4
3000b618: eb000776 bl 3000d3f8 <_Thread_queue_Dequeue>
3000b61c: e2503000 subs r3, r0, #0
}
break;
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
3000b620: 03a02001 moveq r2, #1
3000b624: 05842050 streq r2, [r4, #80] ; 0x50
return CORE_MUTEX_STATUS_SUCCESSFUL;
3000b628: 01a00003 moveq r0, r3
/*
* Now we check if another thread was waiting for this mutex. If so,
* transfer the mutex to that thread.
*/
if ( ( the_thread = _Thread_queue_Dequeue( &the_mutex->Wait_queue ) ) ) {
3000b62c: 08bd8030 popeq {r4, r5, pc}
} else
#endif
{
the_mutex->holder = the_thread;
the_mutex->holder_id = the_thread->Object.id;
3000b630: e5931008 ldr r1, [r3, #8]
the_mutex->nest_count = 1;
switch ( the_mutex->Attributes.discipline ) {
3000b634: e5942048 ldr r2, [r4, #72] ; 0x48
} else
#endif
{
the_mutex->holder = the_thread;
the_mutex->holder_id = the_thread->Object.id;
3000b638: e5841060 str r1, [r4, #96] ; 0x60
the_mutex->nest_count = 1;
switch ( the_mutex->Attributes.discipline ) {
3000b63c: e3520002 cmp r2, #2
#endif
{
the_mutex->holder = the_thread;
the_mutex->holder_id = the_thread->Object.id;
the_mutex->nest_count = 1;
3000b640: e3a01001 mov r1, #1
} else
#endif
{
the_mutex->holder = the_thread;
3000b644: e584305c str r3, [r4, #92] ; 0x5c
the_mutex->holder_id = the_thread->Object.id;
the_mutex->nest_count = 1;
3000b648: e5841054 str r1, [r4, #84] ; 0x54
switch ( the_mutex->Attributes.discipline ) {
3000b64c: 0a000018 beq 3000b6b4 <_CORE_mutex_Surrender+0x10c>
3000b650: e3520003 cmp r2, #3 <== NOT EXECUTED
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
return CORE_MUTEX_STATUS_SUCCESSFUL;
3000b654: 11a00005 movne r0, r5 <== NOT EXECUTED
the_mutex->holder = the_thread;
the_mutex->holder_id = the_thread->Object.id;
the_mutex->nest_count = 1;
switch ( the_mutex->Attributes.discipline ) {
3000b658: 18bd8030 popne {r4, r5, pc} <== NOT EXECUTED
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
break;
case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING:
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
3000b65c: e593201c ldr r2, [r3, #28] <== NOT EXECUTED
if (the_mutex->Attributes.priority_ceiling <
3000b660: e594104c ldr r1, [r4, #76] ; 0x4c <== NOT EXECUTED
3000b664: e593c014 ldr ip, [r3, #20] <== NOT EXECUTED
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
break;
case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING:
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
3000b668: e2822001 add r2, r2, #1 <== NOT EXECUTED
if (the_mutex->Attributes.priority_ceiling <
3000b66c: e151000c cmp r1, ip <== NOT EXECUTED
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
break;
case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING:
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
3000b670: e583201c str r2, [r3, #28] <== NOT EXECUTED
if (the_mutex->Attributes.priority_ceiling <
3000b674: 3a000013 bcc 3000b6c8 <_CORE_mutex_Surrender+0x120> <== NOT EXECUTED
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
return CORE_MUTEX_STATUS_SUCCESSFUL;
3000b678: e1a00005 mov r0, r5 <== NOT EXECUTED
}
3000b67c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
_CORE_mutex_Pop_priority( the_mutex, holder );
if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL )
return pop_status;
holder->resource_count--;
3000b680: e592301c ldr r3, [r2, #28]
3000b684: e2433001 sub r3, r3, #1
/*
* Whether or not someone is waiting for the mutex, an
* inherited priority must be lowered if this is the last
* mutex (i.e. resource) this task has.
*/
if ( holder->resource_count == 0 &&
3000b688: e3530000 cmp r3, #0
_CORE_mutex_Pop_priority( the_mutex, holder );
if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL )
return pop_status;
holder->resource_count--;
3000b68c: e582301c str r3, [r2, #28]
/*
* Whether or not someone is waiting for the mutex, an
* inherited priority must be lowered if this is the last
* mutex (i.e. resource) this task has.
*/
if ( holder->resource_count == 0 &&
3000b690: 1affffdc bne 3000b608 <_CORE_mutex_Surrender+0x60>
holder->real_priority != holder->current_priority ) {
3000b694: e5921018 ldr r1, [r2, #24]
/*
* Whether or not someone is waiting for the mutex, an
* inherited priority must be lowered if this is the last
* mutex (i.e. resource) this task has.
*/
if ( holder->resource_count == 0 &&
3000b698: e5923014 ldr r3, [r2, #20]
3000b69c: e1510003 cmp r1, r3
3000b6a0: 0affffd8 beq 3000b608 <_CORE_mutex_Surrender+0x60>
holder->real_priority != holder->current_priority ) {
_Thread_Change_priority( holder, holder->real_priority, true );
3000b6a4: e1a00002 mov r0, r2
3000b6a8: e3a02001 mov r2, #1
3000b6ac: eb000551 bl 3000cbf8 <_Thread_Change_priority>
3000b6b0: eaffffd4 b 3000b608 <_CORE_mutex_Surrender+0x60>
case CORE_MUTEX_DISCIPLINES_FIFO:
case CORE_MUTEX_DISCIPLINES_PRIORITY:
break;
case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT:
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
3000b6b4: e593201c ldr r2, [r3, #28]
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
return CORE_MUTEX_STATUS_SUCCESSFUL;
3000b6b8: e1a00005 mov r0, r5
case CORE_MUTEX_DISCIPLINES_FIFO:
case CORE_MUTEX_DISCIPLINES_PRIORITY:
break;
case CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT:
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
3000b6bc: e2822001 add r2, r2, #1
3000b6c0: e583201c str r2, [r3, #28]
break;
3000b6c4: e8bd8030 pop {r4, r5, pc}
case CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING:
_CORE_mutex_Push_priority( the_mutex, the_thread );
the_thread->resource_count++;
if (the_mutex->Attributes.priority_ceiling <
the_thread->current_priority){
_Thread_Change_priority(
3000b6c8: e1a02005 mov r2, r5 <== NOT EXECUTED
3000b6cc: eb000549 bl 3000cbf8 <_Thread_Change_priority> <== NOT EXECUTED
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
return CORE_MUTEX_STATUS_SUCCESSFUL;
3000b6d0: e1a00005 mov r0, r5 <== NOT EXECUTED
3000b6d4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
3000bae0 <_Chain_Append_with_empty_check>:
bool _Chain_Append_with_empty_check(
Chain_Control *chain,
Chain_Node *node
)
{
3000bae0: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED
3000bae4: e10fc000 mrs ip, CPSR <== NOT EXECUTED
3000bae8: e38c3080 orr r3, ip, #128 ; 0x80 <== NOT EXECUTED
3000baec: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
3000baf0: e5904000 ldr r4, [r0] <== NOT EXECUTED
== _Chain_Immutable_tail( the_chain );
3000baf4: e2802004 add r2, r0, #4 <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
3000baf8: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED
the_node->next = tail;
3000bafc: e5812000 str r2, [r1] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
3000bb00: e0622004 rsb r2, r2, r4 <== NOT EXECUTED
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
3000bb04: e5801008 str r1, [r0, #8] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
3000bb08: e2720000 rsbs r0, r2, #0 <== NOT EXECUTED
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
old_last->next = the_node;
3000bb0c: e5831000 str r1, [r3] <== NOT EXECUTED
the_node->previous = old_last;
3000bb10: e5813004 str r3, [r1, #4] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
3000bb14: e0a00002 adc r0, r0, r2 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000bb18: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
_ISR_Disable( level );
was_empty = _Chain_Append_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
return was_empty;
}
3000bb1c: e8bd0010 pop {r4} <== NOT EXECUTED
3000bb20: e12fff1e bx lr <== NOT EXECUTED
3000bb50 <_Chain_Get_with_empty_check>:
bool _Chain_Get_with_empty_check(
Chain_Control *chain,
Chain_Node **node
)
{
3000bb50: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000bb54: e10f4000 mrs r4, CPSR <== NOT EXECUTED
3000bb58: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED
3000bb5c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
)
{
bool is_empty_now = true;
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_first = head->next;
3000bb60: e5903000 ldr r3, [r0] <== NOT EXECUTED
Chain_Node **the_node
)
{
bool is_empty_now = true;
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
3000bb64: e280c004 add ip, r0, #4 <== NOT EXECUTED
Chain_Node *old_first = head->next;
if ( old_first != tail ) {
3000bb68: e15c0003 cmp ip, r3 <== NOT EXECUTED
*the_node = old_first;
is_empty_now = new_first == tail;
} else
*the_node = NULL;
3000bb6c: 03a03000 moveq r3, #0 <== NOT EXECUTED
3000bb70: 05813000 streq r3, [r1] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Get_with_empty_check_unprotected(
Chain_Control *the_chain,
Chain_Node **the_node
)
{
bool is_empty_now = true;
3000bb74: 03a00001 moveq r0, #1 <== NOT EXECUTED
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_first = head->next;
if ( old_first != tail ) {
3000bb78: 0a000006 beq 3000bb98 <_Chain_Get_with_empty_check+0x48> <== NOT EXECUTED
Chain_Node *new_first = old_first->next;
3000bb7c: e5932000 ldr r2, [r3] <== NOT EXECUTED
head->next = new_first;
3000bb80: e5802000 str r2, [r0] <== NOT EXECUTED
new_first->previous = head;
3000bb84: e5820004 str r0, [r2, #4] <== NOT EXECUTED
*the_node = old_first;
is_empty_now = new_first == tail;
3000bb88: e062200c rsb r2, r2, ip <== NOT EXECUTED
3000bb8c: e2720000 rsbs r0, r2, #0 <== NOT EXECUTED
3000bb90: e0a00002 adc r0, r0, r2 <== NOT EXECUTED
Chain_Node *new_first = old_first->next;
head->next = new_first;
new_first->previous = head;
*the_node = old_first;
3000bb94: e5813000 str r3, [r1] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000bb98: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Disable( level );
is_empty_now = _Chain_Get_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
return is_empty_now;
}
3000bb9c: e8bd0010 pop {r4} <== NOT EXECUTED
3000bba0: e12fff1e bx lr <== NOT EXECUTED
3000bbd8 <_Chain_Insert>:
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000bbd8: e10f2000 mrs r2, CPSR <== NOT EXECUTED
3000bbdc: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED
3000bbe0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
3000bbe4: e5903000 ldr r3, [r0] <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
3000bbe8: e5810004 str r0, [r1, #4] <== NOT EXECUTED
before_node = after_node->next;
after_node->next = the_node;
3000bbec: e5801000 str r1, [r0] <== NOT EXECUTED
the_node->next = before_node;
before_node->previous = the_node;
3000bbf0: e5831004 str r1, [r3, #4] <== NOT EXECUTED
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
3000bbf4: e5813000 str r3, [r1] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000bbf8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
_Chain_Insert_unprotected( after_node, node );
_ISR_Enable( level );
}
3000bbfc: e12fff1e bx lr <== NOT EXECUTED
3000bc64 <_Chain_Prepend_with_empty_check>:
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000bc64: e10fc000 mrs ip, CPSR <== NOT EXECUTED
3000bc68: e38c3080 orr r3, ip, #128 ; 0x80 <== NOT EXECUTED
3000bc6c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3000bc70: e5902000 ldr r2, [r0] <== NOT EXECUTED
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
3000bc74: e1a03000 mov r3, r0 <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
3000bc78: e5810004 str r0, [r1, #4] <== NOT EXECUTED
before_node = after_node->next;
after_node->next = the_node;
3000bc7c: e4831004 str r1, [r3], #4 <== NOT EXECUTED
the_node->next = before_node;
before_node->previous = the_node;
3000bc80: e5821004 str r1, [r2, #4] <== NOT EXECUTED
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
3000bc84: e5812000 str r2, [r1] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000bc88: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
_ISR_Disable( level );
was_empty = _Chain_Prepend_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
return was_empty;
}
3000bc8c: e0633002 rsb r3, r3, r2 <== NOT EXECUTED
3000bc90: e2730000 rsbs r0, r3, #0 <== NOT EXECUTED
3000bc94: e0a00003 adc r0, r0, r3 <== NOT EXECUTED
3000bc98: e12fff1e bx lr <== NOT EXECUTED
3000a304 <_Event_Seize>:
Thread_Control *executing,
Event_Control *event,
Thread_blocking_operation_States *sync_state,
States_Control wait_state
)
{
3000a304: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
3000a308: e59d401c ldr r4, [sp, #28]
rtems_event_set seized_events;
rtems_event_set pending_events;
ISR_Level level;
Thread_blocking_operation_States current_sync_state;
executing->Wait.return_code = RTEMS_SUCCESSFUL;
3000a30c: e3a06000 mov r6, #0
Thread_Control *executing,
Event_Control *event,
Thread_blocking_operation_States *sync_state,
States_Control wait_state
)
{
3000a310: e59dc020 ldr ip, [sp, #32]
3000a314: e59d5024 ldr r5, [sp, #36] ; 0x24
3000a318: e59d7028 ldr r7, [sp, #40] ; 0x28
rtems_event_set seized_events;
rtems_event_set pending_events;
ISR_Level level;
Thread_blocking_operation_States current_sync_state;
executing->Wait.return_code = RTEMS_SUCCESSFUL;
3000a31c: e5846034 str r6, [r4, #52] ; 0x34
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000a320: e10fa000 mrs sl, CPSR
3000a324: e38a6080 orr r6, sl, #128 ; 0x80
3000a328: e129f006 msr CPSR_fc, r6
_ISR_Disable( level );
pending_events = event->pending_events;
3000a32c: e59c6000 ldr r6, [ip]
seized_events = _Event_sets_Get( pending_events, event_in );
if ( !_Event_sets_Is_empty( seized_events ) &&
3000a330: e0108006 ands r8, r0, r6
3000a334: 0a000003 beq 3000a348 <_Event_Seize+0x44>
3000a338: e1500008 cmp r0, r8
3000a33c: 0a00001e beq 3000a3bc <_Event_Seize+0xb8>
(seized_events == event_in || _Options_Is_any( option_set )) ) {
3000a340: e3110002 tst r1, #2 <== NOT EXECUTED
3000a344: 1a00001c bne 3000a3bc <_Event_Seize+0xb8> <== NOT EXECUTED
_ISR_Enable( level );
*event_out = seized_events;
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
3000a348: e3110001 tst r1, #1
3000a34c: 1a000015 bne 3000a3a8 <_Event_Seize+0xa4>
* NOTE: Since interrupts are disabled, this isn't that much of an
* issue but better safe than sorry.
*/
executing->Wait.option = option_set;
executing->Wait.count = event_in;
executing->Wait.return_argument = event_out;
3000a350: e5843028 str r3, [r4, #40] ; 0x28
*sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
3000a354: e3a03001 mov r3, #1
* 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 = option_set;
3000a358: e5841030 str r1, [r4, #48] ; 0x30
executing->Wait.count = event_in;
3000a35c: e5840024 str r0, [r4, #36] ; 0x24
executing->Wait.return_argument = event_out;
*sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
3000a360: e5853000 str r3, [r5]
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000a364: e129f00a msr CPSR_fc, sl
_ISR_Enable( level );
if ( ticks ) {
3000a368: e3520000 cmp r2, #0
3000a36c: 1a000019 bne 3000a3d8 <_Event_Seize+0xd4>
sync_state
);
_Watchdog_Insert_ticks( &executing->Timer, ticks );
}
_Thread_Set_state( executing, wait_state );
3000a370: e1a00004 mov r0, r4
3000a374: e1a01007 mov r1, r7
3000a378: eb000d6f bl 3000d93c <_Thread_Set_state>
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000a37c: e10f2000 mrs r2, CPSR
3000a380: e3823080 orr r3, r2, #128 ; 0x80
3000a384: e129f003 msr CPSR_fc, r3
_ISR_Disable( level );
current_sync_state = *sync_state;
3000a388: e5950000 ldr r0, [r5]
*sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
3000a38c: e3a03000 mov r3, #0
if ( current_sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
3000a390: e3500001 cmp r0, #1
_Thread_Set_state( executing, wait_state );
_ISR_Disable( level );
current_sync_state = *sync_state;
*sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
3000a394: e5853000 str r3, [r5]
if ( current_sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
3000a398: 0a00000c beq 3000a3d0 <_Event_Seize+0xcc>
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Entering with interrupts disabled and returning with interrupts
* enabled!
*/
_Thread_blocking_operation_Cancel( current_sync_state, executing, level );
3000a39c: e1a01004 mov r1, r4 <== NOT EXECUTED
}
3000a3a0: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
* The blocking thread was satisfied by an ISR or timed out.
*
* WARNING! Entering with interrupts disabled and returning with interrupts
* enabled!
*/
_Thread_blocking_operation_Cancel( current_sync_state, executing, level );
3000a3a4: ea0009fd b 3000cba0 <_Thread_blocking_operation_Cancel> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000a3a8: e129f00a msr CPSR_fc, sl
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
_ISR_Enable( level );
executing->Wait.return_code = RTEMS_UNSATISFIED;
3000a3ac: e3a0200d mov r2, #13
3000a3b0: e5842034 str r2, [r4, #52] ; 0x34
*event_out = seized_events;
3000a3b4: e5838000 str r8, [r3]
return;
3000a3b8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear(
rtems_event_set the_event_set,
rtems_event_set the_mask
)
{
return ( the_event_set & ~(the_mask) );
3000a3bc: e1c66008 bic r6, r6, r8
pending_events = event->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 )) ) {
event->pending_events =
3000a3c0: e58c6000 str r6, [ip]
3000a3c4: e129f00a msr CPSR_fc, sl
_Event_sets_Clear( pending_events, seized_events );
_ISR_Enable( level );
*event_out = seized_events;
3000a3c8: e5838000 str r8, [r3]
return;
3000a3cc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
3000a3d0: e129f002 msr CPSR_fc, r2
3000a3d4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
3000a3d8: e3a01000 mov r1, #0
*sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
_ISR_Enable( level );
if ( ticks ) {
_Watchdog_Initialize(
3000a3dc: e5943008 ldr r3, [r4, #8]
3000a3e0: e5841050 str r1, [r4, #80] ; 0x50
the_watchdog->routine = routine;
3000a3e4: e59f101c ldr r1, [pc, #28] ; 3000a408 <_Event_Seize+0x104>
the_watchdog->id = id;
3000a3e8: e5843068 str r3, [r4, #104] ; 0x68
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
3000a3ec: e5841064 str r1, [r4, #100] ; 0x64
the_watchdog->id = id;
the_watchdog->user_data = user_data;
3000a3f0: e584506c str r5, [r4, #108] ; 0x6c
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
3000a3f4: e5842054 str r2, [r4, #84] ; 0x54
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
3000a3f8: e59f000c ldr r0, [pc, #12] ; 3000a40c <_Event_Seize+0x108>
3000a3fc: e2841048 add r1, r4, #72 ; 0x48
3000a400: eb000e2f bl 3000dcc4 <_Watchdog_Insert>
3000a404: eaffffd9 b 3000a370 <_Event_Seize+0x6c>
3000a464 <_Event_Surrender>:
rtems_event_set event_in,
Event_Control *event,
Thread_blocking_operation_States *sync_state,
States_Control wait_state
)
{
3000a464: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
rtems_event_set pending_events;
rtems_event_set event_condition;
rtems_event_set seized_events;
rtems_option option_set;
option_set = the_thread->Wait.option;
3000a468: e590c030 ldr ip, [r0, #48] ; 0x30
rtems_event_set event_in,
Event_Control *event,
Thread_blocking_operation_States *sync_state,
States_Control wait_state
)
{
3000a46c: e1a04000 mov r4, r0
3000a470: e59d001c ldr r0, [sp, #28]
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000a474: e10f6000 mrs r6, CPSR
3000a478: e3865080 orr r5, r6, #128 ; 0x80
3000a47c: e129f005 msr CPSR_fc, r5
RTEMS_INLINE_ROUTINE void _Event_sets_Post(
rtems_event_set the_new_events,
rtems_event_set *the_event_set
)
{
*the_event_set |= the_new_events;
3000a480: e5925000 ldr r5, [r2]
3000a484: e1811005 orr r1, r1, r5
3000a488: e5821000 str r1, [r2]
option_set = the_thread->Wait.option;
_ISR_Disable( level );
_Event_sets_Post( event_in, &event->pending_events );
pending_events = event->pending_events;
event_condition = the_thread->Wait.count;
3000a48c: e5945024 ldr r5, [r4, #36] ; 0x24
seized_events = _Event_sets_Get( pending_events, event_condition );
/*
* No events were seized in this operation
*/
if ( _Event_sets_Is_empty( seized_events ) ) {
3000a490: e0117005 ands r7, r1, r5
3000a494: 0a00002e beq 3000a554 <_Event_Surrender+0xf0>
/*
* 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() &&
3000a498: e59f80e0 ldr r8, [pc, #224] ; 3000a580 <_Event_Surrender+0x11c>
3000a49c: e598a000 ldr sl, [r8]
3000a4a0: e35a0000 cmp sl, #0
3000a4a4: 0a000002 beq 3000a4b4 <_Event_Surrender+0x50>
3000a4a8: e5988008 ldr r8, [r8, #8] <== NOT EXECUTED
3000a4ac: e1540008 cmp r4, r8 <== NOT EXECUTED
3000a4b0: 0a000017 beq 3000a514 <_Event_Surrender+0xb0> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _States_Are_set (
States_Control the_states,
States_Control mask
)
{
return ( (the_states & mask) != STATES_READY);
3000a4b4: e5943010 ldr r3, [r4, #16]
}
/*
* Otherwise, this is a normal send to another thread
*/
if ( _States_Are_set( the_thread->current_state, wait_state ) ) {
3000a4b8: e1100003 tst r0, r3
3000a4bc: 0a000024 beq 3000a554 <_Event_Surrender+0xf0>
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
3000a4c0: e1550007 cmp r5, r7
3000a4c4: 0a000001 beq 3000a4d0 <_Event_Surrender+0x6c>
3000a4c8: e31c0002 tst ip, #2 <== NOT EXECUTED
3000a4cc: 0a000020 beq 3000a554 <_Event_Surrender+0xf0> <== NOT EXECUTED
event->pending_events = _Event_sets_Clear(
pending_events,
seized_events
);
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
3000a4d0: e5943028 ldr r3, [r4, #40] ; 0x28
RTEMS_INLINE_ROUTINE rtems_event_set _Event_sets_Clear(
rtems_event_set the_event_set,
rtems_event_set the_mask
)
{
return ( the_event_set & ~(the_mask) );
3000a4d4: e1c11007 bic r1, r1, r7
/*
* Otherwise, this is a normal send to another thread
*/
if ( _States_Are_set( the_thread->current_state, wait_state ) ) {
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
event->pending_events = _Event_sets_Clear(
3000a4d8: e5821000 str r1, [r2]
pending_events,
seized_events
);
the_thread->Wait.count = 0;
3000a4dc: e3a02000 mov r2, #0
3000a4e0: e5842024 str r2, [r4, #36] ; 0x24
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
3000a4e4: e5837000 str r7, [r3]
static inline void arm_interrupt_flash( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000a4e8: e10f3000 mrs r3, CPSR
3000a4ec: e129f006 msr CPSR_fc, r6
3000a4f0: e129f003 msr CPSR_fc, r3
_ISR_Flash( level );
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
3000a4f4: e5943050 ldr r3, [r4, #80] ; 0x50
3000a4f8: e3530002 cmp r3, #2
3000a4fc: 0a000016 beq 3000a55c <_Event_Surrender+0xf8>
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000a500: e129f006 msr CPSR_fc, r6
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
3000a504: e59f1078 ldr r1, [pc, #120] ; 3000a584 <_Event_Surrender+0x120>
3000a508: e1a00004 mov r0, r4
}
return;
}
}
_ISR_Enable( level );
}
3000a50c: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr}
3000a510: ea0009f6 b 3000ccf0 <_Thread_Clear_state>
* 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 ) &&
((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
3000a514: e5938000 ldr r8, [r3] <== NOT EXECUTED
3000a518: e2488001 sub r8, r8, #1 <== NOT EXECUTED
/*
* 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 ) &&
3000a51c: e3580001 cmp r8, #1 <== NOT EXECUTED
3000a520: 8affffe3 bhi 3000a4b4 <_Event_Surrender+0x50> <== NOT EXECUTED
((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(*sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
3000a524: e1550007 cmp r5, r7 <== NOT EXECUTED
3000a528: 0a000001 beq 3000a534 <_Event_Surrender+0xd0> <== NOT EXECUTED
3000a52c: e31c0002 tst ip, #2 <== NOT EXECUTED
3000a530: 0a000007 beq 3000a554 <_Event_Surrender+0xf0> <== NOT EXECUTED
3000a534: e1c11007 bic r1, r1, r7 <== NOT EXECUTED
event->pending_events = _Event_sets_Clear(
pending_events,
seized_events
);
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
3000a538: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED
if ( _ISR_Is_in_progress() &&
_Thread_Is_executing( the_thread ) &&
((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(*sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
event->pending_events = _Event_sets_Clear(
3000a53c: e5821000 str r1, [r2] <== NOT EXECUTED
pending_events,
seized_events
);
the_thread->Wait.count = 0;
3000a540: e3a02000 mov r2, #0 <== NOT EXECUTED
3000a544: e5842024 str r2, [r4, #36] ; 0x24 <== NOT EXECUTED
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
*sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
3000a548: e3a02003 mov r2, #3 <== NOT EXECUTED
event->pending_events = _Event_sets_Clear(
pending_events,
seized_events
);
the_thread->Wait.count = 0;
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
3000a54c: e5807000 str r7, [r0] <== NOT EXECUTED
*sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
3000a550: e5832000 str r2, [r3] <== NOT EXECUTED
3000a554: e129f006 msr CPSR_fc, r6
3000a558: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
3000a55c: e3a03003 mov r3, #3
3000a560: e5843050 str r3, [r4, #80] ; 0x50
3000a564: e129f006 msr CPSR_fc, r6
_ISR_Enable( level );
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
3000a568: e2840048 add r0, r4, #72 ; 0x48
3000a56c: eb000e41 bl 3000de78 <_Watchdog_Remove>
3000a570: e59f100c ldr r1, [pc, #12] ; 3000a584 <_Event_Surrender+0x120>
3000a574: e1a00004 mov r0, r4
}
return;
}
}
_ISR_Enable( level );
}
3000a578: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr}
3000a57c: ea0009db b 3000ccf0 <_Thread_Clear_state>
3000a588 <_Event_Timeout>:
void _Event_Timeout(
Objects_Id id,
void *arg
)
{
3000a588: e92d4010 push {r4, lr} <== NOT EXECUTED
3000a58c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
3000a590: e1a04001 mov r4, r1 <== NOT EXECUTED
ISR_Level level;
Thread_blocking_operation_States *sync_state;
sync_state = arg;
the_thread = _Thread_Get( id, &location );
3000a594: e1a0100d mov r1, sp <== NOT EXECUTED
3000a598: eb000ad1 bl 3000d0e4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
3000a59c: e59d3000 ldr r3, [sp] <== NOT EXECUTED
3000a5a0: e3530000 cmp r3, #0 <== NOT EXECUTED
3000a5a4: 1a000010 bne 3000a5ec <_Event_Timeout+0x64> <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000a5a8: e10f2000 mrs r2, CPSR <== NOT EXECUTED
3000a5ac: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED
3000a5b0: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
_ISR_Enable( level );
return;
}
#endif
the_thread->Wait.count = 0;
3000a5b4: e5803024 str r3, [r0, #36] ; 0x24 <== NOT EXECUTED
if ( _Thread_Is_executing( the_thread ) ) {
3000a5b8: e59f3048 ldr r3, [pc, #72] ; 3000a608 <_Event_Timeout+0x80><== NOT EXECUTED
3000a5bc: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED
3000a5c0: e1500003 cmp r0, r3 <== NOT EXECUTED
3000a5c4: 0a00000a beq 3000a5f4 <_Event_Timeout+0x6c> <== NOT EXECUTED
if ( *sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
*sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
}
the_thread->Wait.return_code = RTEMS_TIMEOUT;
3000a5c8: e3a03006 mov r3, #6 <== NOT EXECUTED
3000a5cc: e5803034 str r3, [r0, #52] ; 0x34 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000a5d0: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
3000a5d4: e59f1030 ldr r1, [pc, #48] ; 3000a60c <_Event_Timeout+0x84><== NOT EXECUTED
3000a5d8: eb0009c4 bl 3000ccf0 <_Thread_Clear_state> <== NOT EXECUTED
*
* This routine decrements the thread dispatch level.
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000a5dc: e59f302c ldr r3, [pc, #44] ; 3000a610 <_Event_Timeout+0x88><== NOT EXECUTED
3000a5e0: e5932000 ldr r2, [r3] <== NOT EXECUTED
--level;
3000a5e4: e2422001 sub r2, r2, #1 <== NOT EXECUTED
_Thread_Dispatch_disable_level = level;
3000a5e8: e5832000 str r2, [r3] <== NOT EXECUTED
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
3000a5ec: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000a5f0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
}
#endif
the_thread->Wait.count = 0;
if ( _Thread_Is_executing( the_thread ) ) {
if ( *sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
3000a5f4: e5943000 ldr r3, [r4] <== NOT EXECUTED
3000a5f8: e3530001 cmp r3, #1 <== NOT EXECUTED
*sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
3000a5fc: 03a03002 moveq r3, #2 <== NOT EXECUTED
3000a600: 05843000 streq r3, [r4] <== NOT EXECUTED
3000a604: eaffffef b 3000a5c8 <_Event_Timeout+0x40> <== NOT EXECUTED
3000fd28 <_Heap_Allocate_aligned_with_boundary>:
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
3000fd28: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
3000fd2c: e1a08002 mov r8, r2
Heap_Statistics *const stats = &heap->stats;
uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
- HEAP_ALLOC_BONUS;
uintptr_t const page_size = heap->page_size;
3000fd30: e5902010 ldr r2, [r0, #16]
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
3000fd34: e24dd01c sub sp, sp, #28
3000fd38: e1a06001 mov r6, r1
Heap_Block *block = NULL;
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
bool search_again = false;
if ( block_size_floor < alloc_size ) {
3000fd3c: e2911004 adds r1, r1, #4
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
3000fd40: e1a07000 mov r7, r0
Heap_Block *block = NULL;
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
bool search_again = false;
if ( block_size_floor < alloc_size ) {
3000fd44: e58d1000 str r1, [sp]
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
3000fd48: e1a0b003 mov fp, r3
Heap_Statistics *const stats = &heap->stats;
uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
- HEAP_ALLOC_BONUS;
uintptr_t const page_size = heap->page_size;
3000fd4c: e58d200c str r2, [sp, #12]
Heap_Block *block = NULL;
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
bool search_again = false;
if ( block_size_floor < alloc_size ) {
3000fd50: 2a000086 bcs 3000ff70 <_Heap_Allocate_aligned_with_boundary+0x248>
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
3000fd54: e3530000 cmp r3, #0
3000fd58: 1a000078 bne 3000ff40 <_Heap_Allocate_aligned_with_boundary+0x218>
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
3000fd5c: e597a008 ldr sl, [r7, #8]
do {
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
block = _Heap_Free_list_first( heap );
while ( block != free_list_tail ) {
3000fd60: e3a05000 mov r5, #0
3000fd64: e157000a cmp r7, sl
3000fd68: 0a00007b beq 3000ff5c <_Heap_Allocate_aligned_with_boundary+0x234>
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;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
3000fd6c: e59d300c ldr r3, [sp, #12]
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
3000fd70: e2662004 rsb r2, r6, #4
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;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
3000fd74: e2833007 add r3, r3, #7
3000fd78: e58d3010 str r3, [sp, #16]
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
3000fd7c: e58d2014 str r2, [sp, #20]
3000fd80: ea000005 b 3000fd9c <_Heap_Allocate_aligned_with_boundary+0x74>
}
/* Statistics */
++search_count;
if ( alloc_begin != 0 ) {
3000fd84: e3540000 cmp r4, #0
);
}
}
/* Statistics */
++search_count;
3000fd88: e2855001 add r5, r5, #1
if ( alloc_begin != 0 ) {
3000fd8c: 1a00005a bne 3000fefc <_Heap_Allocate_aligned_with_boundary+0x1d4>
break;
}
block = block->next;
3000fd90: e59aa008 ldr sl, [sl, #8]
do {
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
block = _Heap_Free_list_first( heap );
while ( block != free_list_tail ) {
3000fd94: e157000a cmp r7, sl
3000fd98: 0a00006f beq 3000ff5c <_Heap_Allocate_aligned_with_boundary+0x234>
/*
* 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 ) {
3000fd9c: e59a9004 ldr r9, [sl, #4]
3000fda0: e59d3000 ldr r3, [sp]
3000fda4: e1530009 cmp r3, r9
);
}
}
/* Statistics */
++search_count;
3000fda8: 22855001 addcs r5, r5, #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 ) {
3000fdac: 2afffff7 bcs 3000fd90 <_Heap_Allocate_aligned_with_boundary+0x68>
if ( alignment == 0 ) {
3000fdb0: e3580000 cmp r8, #0
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
3000fdb4: 028a4008 addeq r4, sl, #8
3000fdb8: 0afffff1 beq 3000fd84 <_Heap_Allocate_aligned_with_boundary+0x5c>
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_ALLOC_BONUS;
uintptr_t alloc_begin = alloc_end - alloc_size;
3000fdbc: e59d3014 ldr r3, [sp, #20]
- 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;
3000fdc0: e3c99001 bic r9, r9, #1
uintptr_t alignment,
uintptr_t boundary
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
3000fdc4: e5972014 ldr r2, [r7, #20]
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;
3000fdc8: e08a9009 add r9, sl, r9
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;
3000fdcc: e59d1010 ldr r1, [sp, #16]
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
uintptr_t alloc_begin = alloc_end - alloc_size;
3000fdd0: e0834009 add r4, r3, r9
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
3000fdd4: e1a00004 mov r0, r4
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;
3000fdd8: e0623001 rsb r3, r2, r1
3000fddc: e1a01008 mov r1, r8
uintptr_t alignment,
uintptr_t boundary
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
3000fde0: e58d2004 str r2, [sp, #4]
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;
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
3000fde4: e0839009 add r9, r3, r9
3000fde8: eb002b54 bl 3001ab40 <__umodsi3>
3000fdec: e0604004 rsb r4, r0, r4
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
3000fdf0: e28a2008 add r2, sl, #8
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 ) {
3000fdf4: e1590004 cmp r9, r4
3000fdf8: e58d2008 str r2, [sp, #8]
3000fdfc: 2a000003 bcs 3000fe10 <_Heap_Allocate_aligned_with_boundary+0xe8>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
3000fe00: e1a00009 mov r0, r9
3000fe04: e1a01008 mov r1, r8
3000fe08: eb002b4c bl 3001ab40 <__umodsi3>
3000fe0c: e0604009 rsb r4, r0, r9
}
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
3000fe10: e35b0000 cmp fp, #0
3000fe14: 0a000025 beq 3000feb0 <_Heap_Allocate_aligned_with_boundary+0x188>
/* 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;
3000fe18: e0849006 add r9, r4, r6 <== NOT EXECUTED
3000fe1c: e1a00009 mov r0, r9 <== NOT EXECUTED
3000fe20: e1a0100b mov r1, fp <== NOT EXECUTED
3000fe24: eb002b45 bl 3001ab40 <__umodsi3> <== NOT EXECUTED
3000fe28: e0600009 rsb r0, r0, r9 <== NOT EXECUTED
/* 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 ) {
3000fe2c: e1540000 cmp r4, r0 <== NOT EXECUTED
3000fe30: 23a03000 movcs r3, #0 <== NOT EXECUTED
3000fe34: 33a03001 movcc r3, #1 <== NOT EXECUTED
3000fe38: e1590000 cmp r9, r0 <== NOT EXECUTED
3000fe3c: 93a03000 movls r3, #0 <== NOT EXECUTED
3000fe40: e3530000 cmp r3, #0 <== NOT EXECUTED
3000fe44: 0a000019 beq 3000feb0 <_Heap_Allocate_aligned_with_boundary+0x188><== NOT EXECUTED
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
3000fe48: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED
3000fe4c: e0839006 add r9, r3, r6 <== NOT EXECUTED
uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
if ( boundary_line < boundary_floor ) {
3000fe50: e1590000 cmp r9, r0 <== NOT EXECUTED
3000fe54: 958da018 strls sl, [sp, #24] <== NOT EXECUTED
3000fe58: 9a000002 bls 3000fe68 <_Heap_Allocate_aligned_with_boundary+0x140><== NOT EXECUTED
3000fe5c: ea00003c b 3000ff54 <_Heap_Allocate_aligned_with_boundary+0x22c><== NOT EXECUTED
3000fe60: e1590000 cmp r9, r0 <== NOT EXECUTED
3000fe64: 8a00003e bhi 3000ff64 <_Heap_Allocate_aligned_with_boundary+0x23c><== NOT EXECUTED
return 0;
}
alloc_begin = boundary_line - alloc_size;
3000fe68: e0664000 rsb r4, r6, r0 <== NOT EXECUTED
3000fe6c: e1a01008 mov r1, r8 <== NOT EXECUTED
3000fe70: e1a00004 mov r0, r4 <== NOT EXECUTED
3000fe74: eb002b31 bl 3001ab40 <__umodsi3> <== NOT EXECUTED
3000fe78: e0604004 rsb r4, r0, r4 <== NOT EXECUTED
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
alloc_end = alloc_begin + alloc_size;
3000fe7c: e084a006 add sl, r4, r6 <== NOT EXECUTED
3000fe80: e1a0000a mov r0, sl <== NOT EXECUTED
3000fe84: e1a0100b mov r1, fp <== NOT EXECUTED
3000fe88: eb002b2c bl 3001ab40 <__umodsi3> <== NOT EXECUTED
3000fe8c: e060000a rsb r0, r0, sl <== NOT EXECUTED
/* 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 ) {
3000fe90: e15a0000 cmp sl, r0 <== NOT EXECUTED
3000fe94: 93a0a000 movls sl, #0 <== NOT EXECUTED
3000fe98: 83a0a001 movhi sl, #1 <== NOT EXECUTED
3000fe9c: e1540000 cmp r4, r0 <== NOT EXECUTED
3000fea0: 23a0a000 movcs sl, #0 <== NOT EXECUTED
3000fea4: e35a0000 cmp sl, #0 <== NOT EXECUTED
3000fea8: 1affffec bne 3000fe60 <_Heap_Allocate_aligned_with_boundary+0x138><== NOT EXECUTED
3000feac: e59da018 ldr sl, [sp, #24] <== NOT EXECUTED
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 ) {
3000feb0: e59d2008 ldr r2, [sp, #8]
3000feb4: e1520004 cmp r2, r4
3000feb8: 8a000025 bhi 3000ff54 <_Heap_Allocate_aligned_with_boundary+0x22c>
3000febc: e1a00004 mov r0, r4
3000fec0: e59d100c ldr r1, [sp, #12]
3000fec4: eb002b1d bl 3001ab40 <__umodsi3>
3000fec8: e3e09007 mvn r9, #7
3000fecc: e06a9009 rsb r9, sl, r9
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
3000fed0: e0899004 add r9, r9, r4
if ( free_size >= min_block_size || free_size == 0 ) {
return alloc_begin;
}
}
return 0;
3000fed4: e59d2004 ldr r2, [sp, #4]
if ( alloc_begin >= alloc_begin_floor ) {
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;
if ( free_size >= min_block_size || free_size == 0 ) {
3000fed8: e0603009 rsb r3, r0, r9
return alloc_begin;
}
}
return 0;
3000fedc: e1590000 cmp r9, r0
3000fee0: 11520003 cmpne r2, r3
3000fee4: 83a03000 movhi r3, #0
3000fee8: 93a03001 movls r3, #1
3000feec: 81a04003 movhi r4, r3
}
/* Statistics */
++search_count;
if ( alloc_begin != 0 ) {
3000fef0: e3540000 cmp r4, #0
);
}
}
/* Statistics */
++search_count;
3000fef4: e2855001 add r5, r5, #1
if ( alloc_begin != 0 ) {
3000fef8: 0affffa4 beq 3000fd90 <_Heap_Allocate_aligned_with_boundary+0x68>
search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
} while ( search_again );
if ( alloc_begin != 0 ) {
/* Statistics */
++stats->allocs;
3000fefc: e5972048 ldr r2, [r7, #72] ; 0x48
stats->searches += search_count;
3000ff00: e597304c ldr r3, [r7, #76] ; 0x4c
search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
} while ( search_again );
if ( alloc_begin != 0 ) {
/* Statistics */
++stats->allocs;
3000ff04: e2822001 add r2, r2, #1
stats->searches += search_count;
3000ff08: e0833005 add r3, r3, r5
search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
} while ( search_again );
if ( alloc_begin != 0 ) {
/* Statistics */
++stats->allocs;
3000ff0c: e5872048 str r2, [r7, #72] ; 0x48
stats->searches += search_count;
3000ff10: e587304c str r3, [r7, #76] ; 0x4c
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
3000ff14: e1a00007 mov r0, r7
3000ff18: e1a0100a mov r1, sl
3000ff1c: e1a02004 mov r2, r4
3000ff20: e1a03006 mov r3, r6
3000ff24: ebffef03 bl 3000bb38 <_Heap_Block_allocate>
boundary
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
3000ff28: e5973044 ldr r3, [r7, #68] ; 0x44
stats->max_search = search_count;
}
return (void *) alloc_begin;
3000ff2c: e1a00004 mov r0, r4
boundary
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
3000ff30: e1530005 cmp r3, r5
stats->max_search = search_count;
3000ff34: 35875044 strcc r5, [r7, #68] ; 0x44
}
return (void *) alloc_begin;
}
3000ff38: e28dd01c add sp, sp, #28
3000ff3c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
3000ff40: e1560003 cmp r6, r3 <== NOT EXECUTED
3000ff44: 8a000009 bhi 3000ff70 <_Heap_Allocate_aligned_with_boundary+0x248><== NOT EXECUTED
return NULL;
}
if ( alignment == 0 ) {
alignment = page_size;
3000ff48: e3580000 cmp r8, #0 <== NOT EXECUTED
3000ff4c: 01a08002 moveq r8, r2 <== NOT EXECUTED
3000ff50: eaffff81 b 3000fd5c <_Heap_Allocate_aligned_with_boundary+0x34><== NOT EXECUTED
if ( free_size >= min_block_size || free_size == 0 ) {
return alloc_begin;
}
}
return 0;
3000ff54: e3a04000 mov r4, #0
3000ff58: eaffff89 b 3000fd84 <_Heap_Allocate_aligned_with_boundary+0x5c>
do {
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
block = _Heap_Free_list_first( heap );
while ( block != free_list_tail ) {
3000ff5c: e3a04000 mov r4, #0
3000ff60: eafffff0 b 3000ff28 <_Heap_Allocate_aligned_with_boundary+0x200>
3000ff64: e59da018 ldr sl, [sp, #24] <== NOT EXECUTED
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 ) {
if ( boundary_line < boundary_floor ) {
return 0;
3000ff68: e3a04000 mov r4, #0 <== NOT EXECUTED
3000ff6c: eaffff84 b 3000fd84 <_Heap_Allocate_aligned_with_boundary+0x5c><== NOT EXECUTED
return NULL;
}
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
return NULL;
3000ff70: e3a00000 mov r0, #0
3000ff74: eaffffef b 3000ff38 <_Heap_Allocate_aligned_with_boundary+0x210>
3000bb38 <_Heap_Block_allocate>:
Heap_Control *heap,
Heap_Block *block,
uintptr_t alloc_begin,
uintptr_t alloc_size
)
{
3000bb38: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
- 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;
3000bb3c: e5917004 ldr r7, [r1, #4]
3000bb40: e1a05001 mov r5, r1
3000bb44: e3c71001 bic r1, r7, #1
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
3000bb48: e0858001 add r8, r5, r1
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;
3000bb4c: e598c004 ldr ip, [r8, #4]
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
3000bb50: e2426008 sub r6, r2, #8
Heap_Block *free_list_anchor = NULL;
_HAssert( alloc_area_begin <= alloc_begin );
if ( _Heap_Is_free( block ) ) {
3000bb54: e31c0001 tst ip, #1
Heap_Control *heap,
Heap_Block *block,
uintptr_t alloc_begin,
uintptr_t alloc_size
)
{
3000bb58: e1a0a003 mov sl, r3
3000bb5c: e1a04000 mov r4, r0
Heap_Statistics *const stats = &heap->stats;
uintptr_t const alloc_area_begin = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_area_offset = alloc_begin - alloc_area_begin;
3000bb60: e0653006 rsb r3, r5, r6
/* Statistics */
--stats->free_blocks;
++stats->used_blocks;
stats->free_size -= _Heap_Block_size( block );
} else {
free_list_anchor = _Heap_Free_list_head( heap );
3000bb64: 11a09000 movne r9, r0
Heap_Block *free_list_anchor = NULL;
_HAssert( alloc_area_begin <= alloc_begin );
if ( _Heap_Is_free( block ) ) {
3000bb68: 1a00000c bne 3000bba0 <_Heap_Block_allocate+0x68>
free_list_anchor = block->prev;
_Heap_Free_list_remove( block );
/* Statistics */
--stats->free_blocks;
3000bb6c: e590e038 ldr lr, [r0, #56] ; 0x38
++stats->used_blocks;
3000bb70: e590c040 ldr ip, [r0, #64] ; 0x40
stats->free_size -= _Heap_Block_size( block );
3000bb74: e590b030 ldr fp, [r0, #48] ; 0x30
Heap_Block *free_list_anchor = NULL;
_HAssert( alloc_area_begin <= alloc_begin );
if ( _Heap_Is_free( block ) ) {
free_list_anchor = block->prev;
3000bb78: e595900c ldr r9, [r5, #12]
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
3000bb7c: e5950008 ldr r0, [r5, #8]
_Heap_Free_list_remove( block );
/* Statistics */
--stats->free_blocks;
3000bb80: e24ee001 sub lr, lr, #1
++stats->used_blocks;
3000bb84: e28cc001 add ip, ip, #1
stats->free_size -= _Heap_Block_size( block );
3000bb88: e061100b rsb r1, r1, fp
Heap_Block *prev = block->prev;
prev->next = next;
3000bb8c: e5890008 str r0, [r9, #8]
next->prev = prev;
3000bb90: e580900c str r9, [r0, #12]
free_list_anchor = block->prev;
_Heap_Free_list_remove( block );
/* Statistics */
--stats->free_blocks;
3000bb94: e584e038 str lr, [r4, #56] ; 0x38
++stats->used_blocks;
3000bb98: e584c040 str ip, [r4, #64] ; 0x40
stats->free_size -= _Heap_Block_size( block );
3000bb9c: e5841030 str r1, [r4, #48] ; 0x30
} else {
free_list_anchor = _Heap_Free_list_head( heap );
}
if ( alloc_area_offset < heap->page_size ) {
3000bba0: e5941010 ldr r1, [r4, #16]
3000bba4: e1530001 cmp r3, r1
3000bba8: 2a00000a bcs 3000bbd8 <_Heap_Block_allocate+0xa0>
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
_Heap_Block_split( heap, block, free_list_anchor, alloc_size );
3000bbac: e1a00004 mov r0, r4
3000bbb0: e1a02009 mov r2, r9
3000bbb4: e083300a add r3, r3, sl
3000bbb8: e1a01005 mov r1, r5
3000bbbc: ebffff2d bl 3000b878 <_Heap_Block_split>
alloc_size
);
}
/* Statistics */
if ( stats->min_free_size > stats->free_size ) {
3000bbc0: e5943030 ldr r3, [r4, #48] ; 0x30
3000bbc4: e5942034 ldr r2, [r4, #52] ; 0x34
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
3000bbc8: e1a00005 mov r0, r5
alloc_size
);
}
/* Statistics */
if ( stats->min_free_size > stats->free_size ) {
3000bbcc: e1520003 cmp r2, r3
stats->min_free_size = stats->free_size;
3000bbd0: 85843034 strhi r3, [r4, #52] ; 0x34
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
3000bbd4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
3000bbd8: e1a00002 mov r0, r2
3000bbdc: eb003bd7 bl 3001ab40 <__umodsi3>
_HAssert( block_size >= heap->min_block_size );
_HAssert( new_block_size >= heap->min_block_size );
/* Statistics */
stats->free_size += block_size;
3000bbe0: e5943030 ldr r3, [r4, #48] ; 0x30
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
3000bbe4: e0606006 rsb r6, r0, r6
_Heap_Block_of_alloc_area( alloc_begin, heap->page_size );
uintptr_t const new_block_begin = (uintptr_t) new_block;
uintptr_t const new_block_size = block_end - new_block_begin;
block_end = new_block_begin;
block_size = block_end - block_begin;
3000bbe8: e0651006 rsb r1, r5, r6
_HAssert( block_size >= heap->min_block_size );
_HAssert( new_block_size >= heap->min_block_size );
/* Statistics */
stats->free_size += block_size;
3000bbec: e0833001 add r3, r3, r1
if ( _Heap_Is_prev_used( block ) ) {
3000bbf0: e3170001 tst r7, #1
uintptr_t block_end = block_begin + block_size;
Heap_Block *const new_block =
_Heap_Block_of_alloc_area( alloc_begin, heap->page_size );
uintptr_t const new_block_begin = (uintptr_t) new_block;
uintptr_t const new_block_size = block_end - new_block_begin;
3000bbf4: e0668008 rsb r8, r6, r8
_HAssert( block_size >= heap->min_block_size );
_HAssert( new_block_size >= heap->min_block_size );
/* Statistics */
stats->free_size += block_size;
3000bbf8: e5843030 str r3, [r4, #48] ; 0x30
if ( _Heap_Is_prev_used( block ) ) {
3000bbfc: 1a000013 bne 3000bc50 <_Heap_Block_allocate+0x118>
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Prev_block(
const Heap_Block *block
)
{
return (Heap_Block *) ((uintptr_t) block - block->prev_size);
3000bc00: e5953000 ldr r3, [r5] <== NOT EXECUTED
} else {
Heap_Block *const prev_block = _Heap_Prev_block( block );
uintptr_t const prev_block_size = _Heap_Block_size( prev_block );
block = prev_block;
block_size += prev_block_size;
3000bc04: e1a02009 mov r2, r9 <== NOT EXECUTED
3000bc08: e0635005 rsb r5, r3, r5 <== NOT EXECUTED
- 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;
3000bc0c: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED
3000bc10: e3c33001 bic r3, r3, #1 <== NOT EXECUTED
3000bc14: e0811003 add r1, r1, r3 <== NOT EXECUTED
}
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
3000bc18: e3813001 orr r3, r1, #1
3000bc1c: e5853004 str r3, [r5, #4]
new_block->prev_size = block_size;
new_block->size_and_flag = new_block_size;
_Heap_Block_split( heap, new_block, free_list_anchor, alloc_size );
3000bc20: e1a00004 mov r0, r4
}
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
new_block->prev_size = block_size;
new_block->size_and_flag = new_block_size;
3000bc24: e8860102 stm r6, {r1, r8}
_Heap_Block_split( heap, new_block, free_list_anchor, alloc_size );
3000bc28: e1a0300a mov r3, sl
3000bc2c: e1a01006 mov r1, r6
3000bc30: ebffff10 bl 3000b878 <_Heap_Block_split>
alloc_size
);
}
/* Statistics */
if ( stats->min_free_size > stats->free_size ) {
3000bc34: e5943030 ldr r3, [r4, #48] ; 0x30
3000bc38: e5942034 ldr r2, [r4, #52] ; 0x34
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
new_block->prev_size = block_size;
new_block->size_and_flag = new_block_size;
_Heap_Block_split( heap, new_block, free_list_anchor, alloc_size );
3000bc3c: e1a05006 mov r5, r6
alloc_size
);
}
/* Statistics */
if ( stats->min_free_size > stats->free_size ) {
3000bc40: e1520003 cmp r2, r3
stats->min_free_size = stats->free_size;
3000bc44: 85843034 strhi r3, [r4, #52] ; 0x34
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
3000bc48: e1a00005 mov r0, r5
3000bc4c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
_Heap_Free_list_insert_after( free_list_anchor, block );
free_list_anchor = block;
/* Statistics */
++stats->free_blocks;
3000bc50: e5940038 ldr r0, [r4, #56] ; 0x38
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
3000bc54: e5993008 ldr r3, [r9, #8]
3000bc58: e2800001 add r0, r0, #1
new_block->next = next;
3000bc5c: e5853008 str r3, [r5, #8]
new_block->prev = block_before;
3000bc60: e585900c str r9, [r5, #12]
block_before->next = new_block;
3000bc64: e5895008 str r5, [r9, #8]
next->prev = new_block;
3000bc68: e583500c str r5, [r3, #12]
3000bc6c: e1a02005 mov r2, r5
3000bc70: e5840038 str r0, [r4, #56] ; 0x38
3000bc74: eaffffe7 b 3000bc18 <_Heap_Block_allocate+0xe0>
3000b878 <_Heap_Block_split>:
Heap_Control *heap,
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
3000b878: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
Heap_Statistics *const stats = &heap->stats;
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
3000b87c: e5905014 ldr r5, [r0, #20]
uintptr_t alloc_size
)
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const page_size = heap->page_size;
3000b880: e5906010 ldr r6, [r0, #16]
uintptr_t const min_block_size = heap->min_block_size;
uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE;
3000b884: e2458008 sub r8, r5, #8
return heap->stats.size;
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Max( uintptr_t a, uintptr_t b )
{
return a > b ? a : b;
3000b888: e1530008 cmp r3, r8
3000b88c: 21a08003 movcs r8, r3
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const used_size =
3000b890: e2888008 add r8, r8, #8
Heap_Control *heap,
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
3000b894: e1a07001 mov r7, r1
3000b898: e1a04000 mov r4, r0
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
3000b89c: e1a01006 mov r1, r6
3000b8a0: e1a00008 mov r0, r8
3000b8a4: e1a0a002 mov sl, r2
3000b8a8: eb003ca4 bl 3001ab40 <__umodsi3>
- 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;
3000b8ac: e5973004 ldr r3, [r7, #4]
if ( remainder != 0 ) {
3000b8b0: e3500000 cmp r0, #0
3000b8b4: e3c31001 bic r1, r3, #1
uintptr_t const used_size =
_Heap_Max( alloc_size, min_alloc_size ) + HEAP_BLOCK_HEADER_SIZE;
uintptr_t const used_block_size = _Heap_Align_up( used_size, page_size );
uintptr_t const free_size = block_size + HEAP_ALLOC_BONUS - used_size;
3000b8b8: e2812004 add r2, r1, #4
return value - remainder + alignment;
3000b8bc: 10886006 addne r6, r8, r6
} else {
return value;
3000b8c0: 01a06008 moveq r6, r8
uintptr_t const free_size_limit = min_block_size + HEAP_ALLOC_BONUS;
3000b8c4: e2855004 add r5, r5, #4
uintptr_t const used_size =
_Heap_Max( alloc_size, min_alloc_size ) + HEAP_BLOCK_HEADER_SIZE;
uintptr_t const used_block_size = _Heap_Align_up( used_size, page_size );
uintptr_t const free_size = block_size + HEAP_ALLOC_BONUS - used_size;
3000b8c8: e0688002 rsb r8, r8, r2
)
{
uintptr_t remainder = value % alignment;
if ( remainder != 0 ) {
return value - remainder + alignment;
3000b8cc: 10606006 rsbne r6, r0, r6
Heap_Block *next_block = _Heap_Block_at( block, block_size );
_HAssert( used_size <= block_size + HEAP_ALLOC_BONUS );
_HAssert( used_size + free_size == block_size + HEAP_ALLOC_BONUS );
if ( free_size >= free_size_limit ) {
3000b8d0: e1580005 cmp r8, r5
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
3000b8d4: e0872001 add r2, r7, r1
3000b8d8: 3a00001c bcc 3000b950 <_Heap_Block_split+0xd8>
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
3000b8dc: e2033001 and r3, r3, #1
block->size_and_flag = size | flag;
3000b8e0: e1863003 orr r3, r6, r3
3000b8e4: e5873004 str r3, [r7, #4]
- 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;
3000b8e8: e5923004 ldr r3, [r2, #4]
_HAssert( used_block_size + free_block_size == block_size );
_Heap_Block_set_size( block, used_block_size );
/* Statistics */
stats->free_size += free_block_size;
3000b8ec: e5940030 ldr r0, [r4, #48] ; 0x30
3000b8f0: e3c33001 bic r3, r3, #1
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;
3000b8f4: e082c003 add ip, r2, r3
3000b8f8: e59cc004 ldr ip, [ip, #4]
_HAssert( used_size <= block_size + HEAP_ALLOC_BONUS );
_HAssert( used_size + free_size == block_size + HEAP_ALLOC_BONUS );
if ( free_size >= free_size_limit ) {
Heap_Block *const free_block = _Heap_Block_at( block, used_block_size );
uintptr_t free_block_size = block_size - used_block_size;
3000b8fc: e0661001 rsb r1, r6, r1
_HAssert( used_block_size + free_block_size == block_size );
_Heap_Block_set_size( block, used_block_size );
/* Statistics */
stats->free_size += free_block_size;
3000b900: e0800001 add r0, r0, r1
if ( _Heap_Is_used( next_block ) ) {
3000b904: e31c0001 tst ip, #1
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
3000b908: e0867007 add r7, r6, r7
_HAssert( used_block_size + free_block_size == block_size );
_Heap_Block_set_size( block, used_block_size );
/* Statistics */
stats->free_size += free_block_size;
3000b90c: e5840030 str r0, [r4, #48] ; 0x30
if ( _Heap_Is_used( next_block ) ) {
3000b910: 1a000012 bne 3000b960 <_Heap_Block_split+0xe8>
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
3000b914: e5920008 ldr r0, [r2, #8] <== NOT EXECUTED
Heap_Block *prev = old_block->prev;
3000b918: e592200c ldr r2, [r2, #12] <== NOT EXECUTED
} else {
uintptr_t const next_block_size = _Heap_Block_size( next_block );
_Heap_Free_list_replace( next_block, free_block );
free_block_size += next_block_size;
3000b91c: e0811003 add r1, r1, r3 <== NOT EXECUTED
new_block->next = next;
new_block->prev = prev;
3000b920: e587200c str r2, [r7, #12] <== NOT EXECUTED
)
{
Heap_Block *next = old_block->next;
Heap_Block *prev = old_block->prev;
new_block->next = next;
3000b924: e5870008 str r0, [r7, #8] <== NOT EXECUTED
new_block->prev = prev;
next->prev = new_block;
3000b928: e580700c str r7, [r0, #12] <== NOT EXECUTED
prev->next = new_block;
3000b92c: e5827008 str r7, [r2, #8] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
3000b930: e0812007 add r2, r1, r7 <== NOT EXECUTED
next_block = _Heap_Block_at( free_block, free_block_size );
}
free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED;
3000b934: e3813001 orr r3, r1, #1
3000b938: e5873004 str r3, [r7, #4]
next_block->prev_size = free_block_size;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
3000b93c: e5923004 ldr r3, [r2, #4]
next_block = _Heap_Block_at( free_block, free_block_size );
}
free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED;
next_block->prev_size = free_block_size;
3000b940: e5821000 str r1, [r2]
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
3000b944: e3c33001 bic r3, r3, #1
3000b948: e5823004 str r3, [r2, #4]
3000b94c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
_Heap_Protection_block_initialize( heap, free_block );
} else {
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
3000b950: e5923004 ldr r3, [r2, #4]
3000b954: e3833001 orr r3, r3, #1
3000b958: e5823004 str r3, [r2, #4]
3000b95c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
if ( _Heap_Is_used( next_block ) ) {
_Heap_Free_list_insert_after( free_list_anchor, free_block );
/* Statistics */
++stats->free_blocks;
3000b960: e5940038 ldr r0, [r4, #56] ; 0x38
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
3000b964: e59a3008 ldr r3, [sl, #8]
3000b968: e2800001 add r0, r0, #1
new_block->next = next;
3000b96c: e5873008 str r3, [r7, #8]
new_block->prev = block_before;
3000b970: e587a00c str sl, [r7, #12]
block_before->next = new_block;
3000b974: e58a7008 str r7, [sl, #8]
next->prev = new_block;
3000b978: e583700c str r7, [r3, #12]
3000b97c: e5840038 str r0, [r4, #56] ; 0x38
3000b980: eaffffeb b 3000b934 <_Heap_Block_split+0xbc>
3000ffe4 <_Heap_Extend>:
Heap_Control *heap,
void *extend_area_begin_ptr,
uintptr_t extend_area_size,
uintptr_t unused __attribute__((unused))
)
{
3000ffe4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
3000ffe8: e1a05000 mov r5, r0 <== NOT EXECUTED
uintptr_t const free_size = stats->free_size;
uintptr_t extend_first_block_size = 0;
uintptr_t extended_size = 0;
bool extend_area_ok = false;
if ( extend_area_end < extend_area_begin ) {
3000ffec: e0916002 adds r6, r1, r2 <== NOT EXECUTED
Heap_Control *heap,
void *extend_area_begin_ptr,
uintptr_t extend_area_size,
uintptr_t unused __attribute__((unused))
)
{
3000fff0: e1a04001 mov r4, r1 <== NOT EXECUTED
Heap_Statistics *const stats = &heap->stats;
Heap_Block *const first_block = heap->first_block;
3000fff4: e5908020 ldr r8, [r0, #32] <== NOT EXECUTED
Heap_Block *extend_last_block = NULL;
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
uintptr_t const free_size = stats->free_size;
3000fff8: e5951030 ldr r1, [r5, #48] ; 0x30 <== NOT EXECUTED
Heap_Block *merge_above_block = NULL;
Heap_Block *link_below_block = NULL;
Heap_Block *link_above_block = NULL;
Heap_Block *extend_first_block = NULL;
Heap_Block *extend_last_block = NULL;
uintptr_t const page_size = heap->page_size;
3000fffc: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED
Heap_Control *heap,
void *extend_area_begin_ptr,
uintptr_t extend_area_size,
uintptr_t unused __attribute__((unused))
)
{
30010000: e24dd020 sub sp, sp, #32 <== NOT EXECUTED
Heap_Block *start_block = first_block;
Heap_Block *merge_below_block = NULL;
Heap_Block *merge_above_block = NULL;
Heap_Block *link_below_block = NULL;
Heap_Block *link_above_block = NULL;
Heap_Block *extend_first_block = NULL;
30010004: e3a07000 mov r7, #0 <== NOT EXECUTED
Heap_Block *extend_last_block = NULL;
uintptr_t const page_size = heap->page_size;
30010008: e58d0008 str r0, [sp, #8] <== NOT EXECUTED
Heap_Block *start_block = first_block;
Heap_Block *merge_below_block = NULL;
Heap_Block *merge_above_block = NULL;
Heap_Block *link_below_block = NULL;
Heap_Block *link_above_block = NULL;
Heap_Block *extend_first_block = NULL;
3001000c: e58d7018 str r7, [sp, #24] <== NOT EXECUTED
Heap_Block *extend_last_block = NULL;
30010010: e58d701c str r7, [sp, #28] <== NOT EXECUTED
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
30010014: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED
uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
uintptr_t const free_size = stats->free_size;
30010018: e58d1014 str r1, [sp, #20] <== NOT EXECUTED
uintptr_t extend_first_block_size = 0;
uintptr_t extended_size = 0;
bool extend_area_ok = false;
if ( extend_area_end < extend_area_begin ) {
return 0;
3001001c: 21a00007 movcs r0, r7 <== NOT EXECUTED
uintptr_t const free_size = stats->free_size;
uintptr_t extend_first_block_size = 0;
uintptr_t extended_size = 0;
bool extend_area_ok = false;
if ( extend_area_end < extend_area_begin ) {
30010020: 3a000001 bcc 3001002c <_Heap_Extend+0x48> <== NOT EXECUTED
/* Statistics */
stats->size += extended_size;
return extended_size;
}
30010024: e28dd020 add sp, sp, #32 <== NOT EXECUTED
30010028: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
if ( extend_area_end < extend_area_begin ) {
return 0;
}
extend_area_ok = _Heap_Get_first_and_last_block(
3001002c: e28dc018 add ip, sp, #24 <== NOT EXECUTED
30010030: e1a01002 mov r1, r2 <== NOT EXECUTED
30010034: e58dc000 str ip, [sp] <== NOT EXECUTED
30010038: e1a00004 mov r0, r4 <== NOT EXECUTED
3001003c: e28dc01c add ip, sp, #28 <== NOT EXECUTED
30010040: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED
30010044: e58dc004 str ip, [sp, #4] <== NOT EXECUTED
30010048: ebffee61 bl 3000b9d4 <_Heap_Get_first_and_last_block> <== NOT EXECUTED
page_size,
min_block_size,
&extend_first_block,
&extend_last_block
);
if (!extend_area_ok ) {
3001004c: e3500000 cmp r0, #0 <== NOT EXECUTED
30010050: 0afffff3 beq 30010024 <_Heap_Extend+0x40> <== NOT EXECUTED
30010054: e1a09008 mov r9, r8 <== NOT EXECUTED
30010058: e1a0b007 mov fp, r7 <== NOT EXECUTED
3001005c: e58d700c str r7, [sp, #12] <== NOT EXECUTED
30010060: e58d7010 str r7, [sp, #16] <== NOT EXECUTED
return 0;
}
do {
uintptr_t const sub_area_begin = (start_block != first_block) ?
(uintptr_t) start_block : heap->area_begin;
30010064: e1590008 cmp r9, r8 <== NOT EXECUTED
30010068: 05953018 ldreq r3, [r5, #24] <== NOT EXECUTED
uintptr_t const sub_area_end = start_block->prev_size;
3001006c: e599a000 ldr sl, [r9] <== NOT EXECUTED
return 0;
}
do {
uintptr_t const sub_area_begin = (start_block != first_block) ?
(uintptr_t) start_block : heap->area_begin;
30010070: 11a03009 movne r3, r9 <== NOT EXECUTED
uintptr_t const sub_area_end = start_block->prev_size;
Heap_Block *const end_block =
_Heap_Block_of_alloc_area( sub_area_end, page_size );
if (
30010074: e1530006 cmp r3, r6 <== NOT EXECUTED
30010078: 3154000a cmpcc r4, sl <== NOT EXECUTED
3001007c: 3a000067 bcc 30010220 <_Heap_Extend+0x23c> <== NOT EXECUTED
sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
) {
return 0;
}
if ( extend_area_end == sub_area_begin ) {
30010080: e1530006 cmp r3, r6 <== NOT EXECUTED
30010084: 058d9010 streq r9, [sp, #16] <== NOT EXECUTED
30010088: 0a000001 beq 30010094 <_Heap_Extend+0xb0> <== NOT EXECUTED
merge_below_block = start_block;
} else if ( extend_area_end < sub_area_end ) {
3001008c: e156000a cmp r6, sl <== NOT EXECUTED
30010090: 31a0b009 movcc fp, r9 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
30010094: e1a0000a mov r0, sl <== NOT EXECUTED
30010098: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED
3001009c: eb002b69 bl 3001ae48 <__umodsi3> <== NOT EXECUTED
300100a0: e24a3008 sub r3, sl, #8 <== NOT EXECUTED
link_below_block = start_block;
}
if ( sub_area_end == extend_area_begin ) {
300100a4: e15a0004 cmp sl, r4 <== NOT EXECUTED
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
300100a8: e0603003 rsb r3, r0, r3 <== NOT EXECUTED
start_block->prev_size = extend_area_end;
300100ac: 05896000 streq r6, [r9] <== NOT EXECUTED
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 )
300100b0: 058d300c streq r3, [sp, #12] <== NOT EXECUTED
merge_below_block = start_block;
} else if ( extend_area_end < sub_area_end ) {
link_below_block = start_block;
}
if ( sub_area_end == extend_area_begin ) {
300100b4: 0a000001 beq 300100c0 <_Heap_Extend+0xdc> <== NOT EXECUTED
300100b8: e154000a cmp r4, sl <== NOT EXECUTED
300100bc: 81a07003 movhi r7, r3 <== NOT EXECUTED
- 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;
300100c0: e5939004 ldr r9, [r3, #4] <== NOT EXECUTED
300100c4: e3c99001 bic r9, r9, #1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
300100c8: e0839009 add r9, r3, r9 <== NOT EXECUTED
} else if ( sub_area_end < extend_area_begin ) {
link_above_block = end_block;
}
start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
} while ( start_block != first_block );
300100cc: e1580009 cmp r8, r9 <== NOT EXECUTED
300100d0: 1affffe3 bne 30010064 <_Heap_Extend+0x80> <== NOT EXECUTED
if ( extend_area_begin < heap->area_begin ) {
300100d4: e5953018 ldr r3, [r5, #24] <== NOT EXECUTED
300100d8: e1540003 cmp r4, r3 <== NOT EXECUTED
heap->area_begin = extend_area_begin;
300100dc: 35854018 strcc r4, [r5, #24] <== NOT EXECUTED
}
start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
} while ( start_block != first_block );
if ( extend_area_begin < heap->area_begin ) {
300100e0: 3a000002 bcc 300100f0 <_Heap_Extend+0x10c> <== NOT EXECUTED
heap->area_begin = extend_area_begin;
} else if ( heap->area_end < extend_area_end ) {
300100e4: e595301c ldr r3, [r5, #28] <== NOT EXECUTED
300100e8: e1560003 cmp r6, r3 <== NOT EXECUTED
heap->area_end = extend_area_end;
300100ec: 8585601c strhi r6, [r5, #28] <== NOT EXECUTED
}
extend_first_block_size =
(uintptr_t) extend_last_block - (uintptr_t) extend_first_block;
300100f0: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED
300100f4: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED
extend_last_block->prev_size = extend_first_block_size;
extend_last_block->size_and_flag = 0;
_Heap_Protection_block_initialize( heap, extend_last_block );
if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
300100f8: e595c020 ldr ip, [r5, #32] <== NOT EXECUTED
heap->area_begin = extend_area_begin;
} else if ( heap->area_end < extend_area_end ) {
heap->area_end = extend_area_end;
}
extend_first_block_size =
300100fc: e0631002 rsb r1, r3, r2 <== NOT EXECUTED
(uintptr_t) extend_last_block - (uintptr_t) extend_first_block;
extend_first_block->prev_size = extend_area_end;
extend_first_block->size_and_flag =
extend_first_block_size | HEAP_PREV_BLOCK_USED;
30010100: e3810001 orr r0, r1, #1 <== NOT EXECUTED
}
extend_first_block_size =
(uintptr_t) extend_last_block - (uintptr_t) extend_first_block;
extend_first_block->prev_size = extend_area_end;
30010104: e5836000 str r6, [r3] <== NOT EXECUTED
extend_last_block->prev_size = extend_first_block_size;
extend_last_block->size_and_flag = 0;
_Heap_Protection_block_initialize( heap, extend_last_block );
if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
30010108: e15c0003 cmp ip, r3 <== NOT EXECUTED
extend_first_block->prev_size = extend_area_end;
extend_first_block->size_and_flag =
extend_first_block_size | HEAP_PREV_BLOCK_USED;
_Heap_Protection_block_initialize( heap, extend_first_block );
extend_last_block->prev_size = extend_first_block_size;
3001010c: e5821000 str r1, [r2] <== NOT EXECUTED
extend_last_block->size_and_flag = 0;
30010110: e3a01000 mov r1, #0 <== NOT EXECUTED
extend_first_block_size =
(uintptr_t) extend_last_block - (uintptr_t) extend_first_block;
extend_first_block->prev_size = extend_area_end;
extend_first_block->size_and_flag =
30010114: e5830004 str r0, [r3, #4] <== NOT EXECUTED
extend_first_block_size | HEAP_PREV_BLOCK_USED;
_Heap_Protection_block_initialize( heap, extend_first_block );
extend_last_block->prev_size = extend_first_block_size;
extend_last_block->size_and_flag = 0;
30010118: e5821004 str r1, [r2, #4] <== NOT EXECUTED
_Heap_Protection_block_initialize( heap, extend_last_block );
if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
heap->first_block = extend_first_block;
3001011c: 85853020 strhi r3, [r5, #32] <== NOT EXECUTED
extend_last_block->prev_size = extend_first_block_size;
extend_last_block->size_and_flag = 0;
_Heap_Protection_block_initialize( heap, extend_last_block );
if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
30010120: 8a000002 bhi 30010130 <_Heap_Extend+0x14c> <== NOT EXECUTED
heap->first_block = extend_first_block;
} else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
30010124: e5953024 ldr r3, [r5, #36] ; 0x24 <== NOT EXECUTED
30010128: e1530002 cmp r3, r2 <== NOT EXECUTED
heap->last_block = extend_last_block;
3001012c: 35852024 strcc r2, [r5, #36] ; 0x24 <== NOT EXECUTED
}
if ( merge_below_block != NULL ) {
30010130: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED
30010134: e3530000 cmp r3, #0 <== NOT EXECUTED
30010138: 0a00004b beq 3001026c <_Heap_Extend+0x288> <== NOT EXECUTED
Heap_Control *heap,
uintptr_t extend_area_begin,
Heap_Block *first_block
)
{
uintptr_t const page_size = heap->page_size;
3001013c: e5958010 ldr r8, [r5, #16] <== NOT EXECUTED
uintptr_t const new_first_block_alloc_begin =
_Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
30010140: e2844008 add r4, r4, #8 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
30010144: e1a00004 mov r0, r4 <== NOT EXECUTED
30010148: e1a01008 mov r1, r8 <== NOT EXECUTED
3001014c: eb002b3d bl 3001ae48 <__umodsi3> <== NOT EXECUTED
if ( remainder != 0 ) {
30010150: e3500000 cmp r0, #0 <== NOT EXECUTED
return value - remainder + alignment;
30010154: 10844008 addne r4, r4, r8 <== NOT EXECUTED
30010158: 10604004 rsbne r4, r0, r4 <== NOT EXECUTED
uintptr_t const first_block_begin = (uintptr_t) first_block;
uintptr_t const new_first_block_size =
first_block_begin - new_first_block_begin;
Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
new_first_block->prev_size = first_block->prev_size;
3001015c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const new_first_block_alloc_begin =
_Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
uintptr_t const new_first_block_begin =
30010160: e2441008 sub r1, r4, #8 <== NOT EXECUTED
uintptr_t const first_block_begin = (uintptr_t) first_block;
uintptr_t const new_first_block_size =
first_block_begin - new_first_block_begin;
Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
new_first_block->prev_size = first_block->prev_size;
30010164: e5932000 ldr r2, [r3] <== NOT EXECUTED
uintptr_t const new_first_block_alloc_begin =
_Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
uintptr_t const new_first_block_begin =
new_first_block_alloc_begin - HEAP_BLOCK_HEADER_SIZE;
uintptr_t const first_block_begin = (uintptr_t) first_block;
uintptr_t const new_first_block_size =
30010168: e0613003 rsb r3, r1, r3 <== NOT EXECUTED
first_block_begin - new_first_block_begin;
Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
new_first_block->prev_size = first_block->prev_size;
new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
3001016c: e3833001 orr r3, r3, #1 <== NOT EXECUTED
uintptr_t const first_block_begin = (uintptr_t) first_block;
uintptr_t const new_first_block_size =
first_block_begin - new_first_block_begin;
Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
new_first_block->prev_size = first_block->prev_size;
30010170: e5042008 str r2, [r4, #-8] <== NOT EXECUTED
new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
30010174: e5813004 str r3, [r1, #4] <== NOT EXECUTED
_Heap_Free_block( heap, new_first_block );
30010178: e1a00005 mov r0, r5 <== NOT EXECUTED
3001017c: ebffff83 bl 3000ff90 <_Heap_Free_block> <== NOT EXECUTED
link_below_block,
extend_last_block
);
}
if ( merge_above_block != NULL ) {
30010180: e59d400c ldr r4, [sp, #12] <== NOT EXECUTED
30010184: e3540000 cmp r4, #0 <== NOT EXECUTED
30010188: 0a000026 beq 30010228 <_Heap_Extend+0x244> <== NOT EXECUTED
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const last_block_begin = (uintptr_t) last_block;
uintptr_t const last_block_new_size = _Heap_Align_down(
extend_area_end - last_block_begin - HEAP_BLOCK_HEADER_SIZE,
3001018c: e2466008 sub r6, r6, #8 <== NOT EXECUTED
uintptr_t extend_area_end
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const last_block_begin = (uintptr_t) last_block;
uintptr_t const last_block_new_size = _Heap_Align_down(
30010190: e0646006 rsb r6, r4, r6 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
30010194: e5951010 ldr r1, [r5, #16] <== NOT EXECUTED
30010198: e1a00006 mov r0, r6 <== NOT EXECUTED
3001019c: eb002b29 bl 3001ae48 <__umodsi3> <== NOT EXECUTED
);
Heap_Block *const new_last_block =
_Heap_Block_at( last_block, last_block_new_size );
new_last_block->size_and_flag =
(last_block->size_and_flag - last_block_new_size)
300101a0: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED
300101a4: e0606006 rsb r6, r0, r6 <== NOT EXECUTED
300101a8: e0663003 rsb r3, r6, r3 <== NOT EXECUTED
page_size
);
Heap_Block *const new_last_block =
_Heap_Block_at( last_block, last_block_new_size );
new_last_block->size_and_flag =
300101ac: e0862004 add r2, r6, r4 <== NOT EXECUTED
(last_block->size_and_flag - last_block_new_size)
| HEAP_PREV_BLOCK_USED;
300101b0: e3833001 orr r3, r3, #1 <== NOT EXECUTED
page_size
);
Heap_Block *const new_last_block =
_Heap_Block_at( last_block, last_block_new_size );
new_last_block->size_and_flag =
300101b4: e5823004 str r3, [r2, #4] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
300101b8: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED
(last_block->size_and_flag - last_block_new_size)
| HEAP_PREV_BLOCK_USED;
_Heap_Block_set_size( last_block, last_block_new_size );
_Heap_Free_block( heap, last_block );
300101bc: e1a00005 mov r0, r5 <== NOT EXECUTED
300101c0: e2033001 and r3, r3, #1 <== NOT EXECUTED
block->size_and_flag = size | flag;
300101c4: e1866003 orr r6, r6, r3 <== NOT EXECUTED
300101c8: e5846004 str r6, [r4, #4] <== NOT EXECUTED
300101cc: e59d100c ldr r1, [sp, #12] <== NOT EXECUTED
300101d0: ebffff6e bl 3000ff90 <_Heap_Free_block> <== NOT EXECUTED
extend_first_block,
extend_last_block
);
}
if ( merge_below_block == NULL && merge_above_block == NULL ) {
300101d4: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED
300101d8: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED
300101dc: e3520000 cmp r2, #0 <== NOT EXECUTED
300101e0: 03530000 cmpeq r3, #0 <== NOT EXECUTED
300101e4: 0a00001c beq 3001025c <_Heap_Extend+0x278> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{
_Heap_Block_set_size(
heap->last_block,
(uintptr_t) heap->first_block - (uintptr_t) heap->last_block
300101e8: e5953024 ldr r3, [r5, #36] ; 0x24 <== NOT EXECUTED
* This feature will be used to terminate the scattered heap area list. See
* also _Heap_Extend().
*/
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{
_Heap_Block_set_size(
300101ec: e595c020 ldr ip, [r5, #32] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
300101f0: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED
_Heap_Free_block( heap, extend_first_block );
}
_Heap_Set_last_block_size( heap );
extended_size = stats->free_size - free_size;
300101f4: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED
300101f8: e59d4014 ldr r4, [sp, #20] <== NOT EXECUTED
/* Statistics */
stats->size += extended_size;
300101fc: e595202c ldr r2, [r5, #44] ; 0x2c <== NOT EXECUTED
* This feature will be used to terminate the scattered heap area list. See
* also _Heap_Extend().
*/
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{
_Heap_Block_set_size(
30010200: e063c00c rsb ip, r3, ip <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
30010204: e2011001 and r1, r1, #1 <== NOT EXECUTED
_Heap_Free_block( heap, extend_first_block );
}
_Heap_Set_last_block_size( heap );
extended_size = stats->free_size - free_size;
30010208: e0640000 rsb r0, r4, r0 <== NOT EXECUTED
block->size_and_flag = size | flag;
3001020c: e18c1001 orr r1, ip, r1 <== NOT EXECUTED
/* Statistics */
stats->size += extended_size;
30010210: e0822000 add r2, r2, r0 <== NOT EXECUTED
30010214: e5831004 str r1, [r3, #4] <== NOT EXECUTED
30010218: e585202c str r2, [r5, #44] ; 0x2c <== NOT EXECUTED
return extended_size;
3001021c: eaffff80 b 30010024 <_Heap_Extend+0x40> <== NOT EXECUTED
_Heap_Block_of_alloc_area( sub_area_end, page_size );
if (
sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
) {
return 0;
30010220: e3a00000 mov r0, #0 <== NOT EXECUTED
30010224: eaffff7e b 30010024 <_Heap_Extend+0x40> <== NOT EXECUTED
);
}
if ( merge_above_block != NULL ) {
_Heap_Merge_above( heap, merge_above_block, extend_area_end );
} else if ( link_above_block != NULL ) {
30010228: e3570000 cmp r7, #0 <== NOT EXECUTED
3001022c: 0affffe8 beq 300101d4 <_Heap_Extend+0x1f0> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
30010230: e5971004 ldr r1, [r7, #4] <== NOT EXECUTED
)
{
uintptr_t const link_begin = (uintptr_t) link;
uintptr_t const first_block_begin = (uintptr_t) first_block;
_Heap_Block_set_size( link, first_block_begin - link_begin );
30010234: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED
30010238: e2011001 and r1, r1, #1 <== NOT EXECUTED
3001023c: e0672002 rsb r2, r7, r2 <== NOT EXECUTED
}
if ( merge_above_block != NULL ) {
_Heap_Merge_above( heap, merge_above_block, extend_area_end );
} else if ( link_above_block != NULL ) {
_Heap_Link_above(
30010240: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED
block->size_and_flag = size | flag;
30010244: e1822001 orr r2, r2, r1 <== NOT EXECUTED
30010248: e5872004 str r2, [r7, #4] <== NOT EXECUTED
uintptr_t const link_begin = (uintptr_t) link;
uintptr_t const first_block_begin = (uintptr_t) first_block;
_Heap_Block_set_size( link, first_block_begin - link_begin );
last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
3001024c: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED
30010250: e3822001 orr r2, r2, #1 <== NOT EXECUTED
30010254: e5832004 str r2, [r3, #4] <== NOT EXECUTED
30010258: eaffffdd b 300101d4 <_Heap_Extend+0x1f0> <== NOT EXECUTED
extend_last_block
);
}
if ( merge_below_block == NULL && merge_above_block == NULL ) {
_Heap_Free_block( heap, extend_first_block );
3001025c: e1a00005 mov r0, r5 <== NOT EXECUTED
30010260: e59d1018 ldr r1, [sp, #24] <== NOT EXECUTED
30010264: ebffff49 bl 3000ff90 <_Heap_Free_block> <== NOT EXECUTED
30010268: eaffffde b 300101e8 <_Heap_Extend+0x204> <== NOT EXECUTED
heap->last_block = extend_last_block;
}
if ( merge_below_block != NULL ) {
_Heap_Merge_below( heap, extend_area_begin, merge_below_block );
} else if ( link_below_block != NULL ) {
3001026c: e35b0000 cmp fp, #0 <== NOT EXECUTED
{
uintptr_t const last_block_begin = (uintptr_t) last_block;
uintptr_t const link_begin = (uintptr_t) link;
last_block->size_and_flag =
(link_begin - last_block_begin) | HEAP_PREV_BLOCK_USED;
30010270: 1062b00b rsbne fp, r2, fp <== NOT EXECUTED
30010274: 138bb001 orrne fp, fp, #1 <== NOT EXECUTED
)
{
uintptr_t const last_block_begin = (uintptr_t) last_block;
uintptr_t const link_begin = (uintptr_t) link;
last_block->size_and_flag =
30010278: 1582b004 strne fp, [r2, #4] <== NOT EXECUTED
3001027c: eaffffbf b 30010180 <_Heap_Extend+0x19c> <== NOT EXECUTED
3000ff78 <_Heap_Free>:
/*
* If NULL return true so a free on NULL is considered a valid release. This
* is a special case that could be handled by the in heap check how-ever that
* would result in false being returned which is wrong.
*/
if ( alloc_begin_ptr == NULL ) {
3000ff78: e2513000 subs r3, r1, #0
return do_free;
}
#endif
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
3000ff7c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
3000ff80: e1a04000 mov r4, r0
* If NULL return true so a free on NULL is considered a valid release. This
* is a special case that could be handled by the in heap check how-ever that
* would result in false being returned which is wrong.
*/
if ( alloc_begin_ptr == NULL ) {
return true;
3000ff84: 03a00001 moveq r0, #1
/*
* If NULL return true so a free on NULL is considered a valid release. This
* is a special case that could be handled by the in heap check how-ever that
* would result in false being returned which is wrong.
*/
if ( alloc_begin_ptr == NULL ) {
3000ff88: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
3000ff8c: e1a00003 mov r0, r3
3000ff90: e5941010 ldr r1, [r4, #16]
3000ff94: e2435008 sub r5, r3, #8
3000ff98: eb002ae8 bl 3001ab40 <__umodsi3>
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
3000ff9c: e5942020 ldr r2, [r4, #32]
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
3000ffa0: e0605005 rsb r5, r0, r5
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;
3000ffa4: e1550002 cmp r5, r2
3000ffa8: 3a00002f bcc 3001006c <_Heap_Free+0xf4>
3000ffac: e5941024 ldr r1, [r4, #36] ; 0x24
3000ffb0: e1550001 cmp r5, r1
3000ffb4: 8a00002c bhi 3001006c <_Heap_Free+0xf4>
- 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;
3000ffb8: e595c004 ldr ip, [r5, #4]
3000ffbc: e3cc6001 bic r6, ip, #1
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
3000ffc0: e0853006 add r3, r5, r6
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;
3000ffc4: e1520003 cmp r2, r3
3000ffc8: 8a000027 bhi 3001006c <_Heap_Free+0xf4>
3000ffcc: e1510003 cmp r1, r3
3000ffd0: 3a000027 bcc 30010074 <_Heap_Free+0xfc>
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;
3000ffd4: e5937004 ldr r7, [r3, #4]
return false;
}
_Heap_Protection_block_check( heap, next_block );
if ( !_Heap_Is_prev_used( next_block ) ) {
3000ffd8: e2170001 ands r0, r7, #1
3000ffdc: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc}
return true;
}
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 ));
3000ffe0: e1510003 cmp r1, r3
- 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;
3000ffe4: e3c77001 bic r7, r7, #1
3000ffe8: 03a08000 moveq r8, #0
3000ffec: 0a000004 beq 30010004 <_Heap_Free+0x8c>
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;
3000fff0: e0830007 add r0, r3, r7
3000fff4: e5900004 ldr r0, [r0, #4]
return do_free;
}
#endif
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
3000fff8: e3100001 tst r0, #1
3000fffc: 13a08000 movne r8, #0
30010000: 03a08001 moveq r8, #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 ) ) {
30010004: e21c0001 ands r0, ip, #1
30010008: 1a00001b bne 3001007c <_Heap_Free+0x104>
uintptr_t const prev_size = block->prev_size;
3001000c: e595c000 ldr ip, [r5]
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
30010010: e06ca005 rsb sl, ip, r5
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;
30010014: e152000a cmp r2, sl
30010018: 88bd85f0 pophi {r4, r5, r6, r7, r8, sl, pc}
3001001c: e151000a cmp r1, sl
30010020: 38bd85f0 popcc {r4, r5, r6, r7, r8, sl, pc}
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;
30010024: e59a0004 ldr r0, [sl, #4]
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) ) {
30010028: e2100001 ands r0, r0, #1
3001002c: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc}
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
30010030: e3580000 cmp r8, #0
30010034: 0a000039 beq 30010120 <_Heap_Free+0x1a8>
uintptr_t const size = block_size + prev_size + next_block_size;
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
30010038: e5940038 ldr r0, [r4, #56] ; 0x38
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
uintptr_t const size = block_size + prev_size + next_block_size;
3001003c: e0867007 add r7, r6, r7
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
30010040: e5932008 ldr r2, [r3, #8]
30010044: e087c00c add ip, r7, ip
Heap_Block *prev = block->prev;
30010048: e593300c ldr r3, [r3, #12]
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
3001004c: e2400001 sub r0, r0, #1
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
30010050: e38c1001 orr r1, ip, #1
prev->next = next;
30010054: e5832008 str r2, [r3, #8]
next->prev = prev;
30010058: e582300c str r3, [r2, #12]
}
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;
3001005c: e5840038 str r0, [r4, #56] ; 0x38
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
30010060: e58a1004 str r1, [sl, #4]
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
30010064: e78ac00c str ip, [sl, ip]
30010068: ea00000f b 300100ac <_Heap_Free+0x134>
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
return false;
3001006c: e3a00000 mov r0, #0
30010070: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
30010074: e3a00000 mov r0, #0 <== NOT EXECUTED
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
30010078: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
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 */
3001007c: e3580000 cmp r8, #0
30010080: 0a000014 beq 300100d8 <_Heap_Free+0x160>
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
30010084: e5932008 ldr r2, [r3, #8]
uintptr_t const size = block_size + next_block_size;
30010088: e0877006 add r7, r7, r6
Heap_Block *prev = old_block->prev;
3001008c: e593300c ldr r3, [r3, #12]
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
30010090: e3871001 orr r1, r7, #1
new_block->next = next;
30010094: e5852008 str r2, [r5, #8]
new_block->prev = prev;
30010098: e585300c str r3, [r5, #12]
next->prev = new_block;
prev->next = new_block;
3001009c: e5835008 str r5, [r3, #8]
Heap_Block *prev = old_block->prev;
new_block->next = next;
new_block->prev = prev;
next->prev = new_block;
300100a0: e582500c str r5, [r2, #12]
300100a4: e5851004 str r1, [r5, #4]
next_block = _Heap_Block_at( block, size );
next_block->prev_size = size;
300100a8: e7857007 str r7, [r5, r7]
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
300100ac: e5942040 ldr r2, [r4, #64] ; 0x40
++stats->frees;
300100b0: e5943050 ldr r3, [r4, #80] ; 0x50
stats->free_size += block_size;
300100b4: e5941030 ldr r1, [r4, #48] ; 0x30
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
300100b8: e2422001 sub r2, r2, #1
++stats->frees;
300100bc: e2833001 add r3, r3, #1
stats->free_size += block_size;
300100c0: e0816006 add r6, r1, r6
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
300100c4: e5842040 str r2, [r4, #64] ; 0x40
++stats->frees;
300100c8: e5843050 str r3, [r4, #80] ; 0x50
stats->free_size += block_size;
300100cc: e5846030 str r6, [r4, #48] ; 0x30
return( true );
300100d0: e3a00001 mov r0, #1
300100d4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
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;
300100d8: e3862001 orr r2, r6, #1
300100dc: e5852004 str r2, [r5, #4]
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
300100e0: e5942038 ldr r2, [r4, #56] ; 0x38
if ( stats->max_free_blocks < stats->free_blocks ) {
300100e4: e594c03c ldr ip, [r4, #60] ; 0x3c
} 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;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
300100e8: e5930004 ldr r0, [r3, #4]
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
300100ec: e5941008 ldr r1, [r4, #8]
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
300100f0: e2822001 add r2, r2, #1
} 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;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
300100f4: e3c00001 bic r0, r0, #1
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
if ( stats->max_free_blocks < stats->free_blocks ) {
300100f8: e152000c cmp r2, ip
new_block->next = next;
300100fc: e5851008 str r1, [r5, #8]
new_block->prev = block_before;
30010100: e585400c str r4, [r5, #12]
} 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;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
30010104: e5830004 str r0, [r3, #4]
block_before->next = new_block;
next->prev = new_block;
30010108: e581500c str r5, [r1, #12]
next_block->prev_size = block_size;
3001010c: e7856006 str r6, [r5, r6]
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
block_before->next = new_block;
30010110: e5845008 str r5, [r4, #8]
/* Statistics */
++stats->free_blocks;
30010114: e5842038 str r2, [r4, #56] ; 0x38
if ( stats->max_free_blocks < stats->free_blocks ) {
stats->max_free_blocks = stats->free_blocks;
30010118: 8584203c strhi r2, [r4, #60] ; 0x3c
3001011c: eaffffe2 b 300100ac <_Heap_Free+0x134>
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;
30010120: e086c00c add ip, r6, ip
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
30010124: e38c2001 orr r2, ip, #1
30010128: e58a2004 str r2, [sl, #4]
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
3001012c: e5932004 ldr r2, [r3, #4]
next_block->prev_size = size;
30010130: e785c006 str ip, [r5, r6]
_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;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
30010134: e3c22001 bic r2, r2, #1
30010138: e5832004 str r2, [r3, #4]
3001013c: eaffffda b 300100ac <_Heap_Free+0x134>
3000ff90 <_Heap_Free_block>:
{
Heap_Statistics *const stats = &heap->stats;
Heap_Block *first_free;
/* Statistics */
++stats->used_blocks;
3000ff90: e5902040 ldr r2, [r0, #64] ; 0x40 <== NOT EXECUTED
--stats->frees;
3000ff94: e5903050 ldr r3, [r0, #80] ; 0x50 <== NOT EXECUTED
{
Heap_Statistics *const stats = &heap->stats;
Heap_Block *first_free;
/* Statistics */
++stats->used_blocks;
3000ff98: e2822001 add r2, r2, #1 <== NOT EXECUTED
--stats->frees;
3000ff9c: e2433001 sub r3, r3, #1 <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block )
{
3000ffa0: e92d4010 push {r4, lr} <== NOT EXECUTED
/*
* The _Heap_Free() will place the block to the head of free list. We want
* the new block at the end of the free list. So that initial and earlier
* areas are consumed first.
*/
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block ) );
3000ffa4: e2811008 add r1, r1, #8 <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/heap.h>
static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block )
{
3000ffa8: e1a04000 mov r4, r0 <== NOT EXECUTED
Heap_Statistics *const stats = &heap->stats;
Heap_Block *first_free;
/* Statistics */
++stats->used_blocks;
3000ffac: e5802040 str r2, [r0, #64] ; 0x40 <== NOT EXECUTED
--stats->frees;
3000ffb0: e5803050 str r3, [r0, #80] ; 0x50 <== NOT EXECUTED
/*
* The _Heap_Free() will place the block to the head of free list. We want
* the new block at the end of the free list. So that initial and earlier
* areas are consumed first.
*/
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block ) );
3000ffb4: eb0000b1 bl 30010280 <_Heap_Free> <== NOT EXECUTED
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
3000ffb8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
3000ffbc: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED
Heap_Block *prev = block->prev;
3000ffc0: e593100c ldr r1, [r3, #12] <== NOT EXECUTED
prev->next = next;
next->prev = prev;
3000ffc4: e580100c str r1, [r0, #12] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_before(
Heap_Block *block_next,
Heap_Block *new_block
)
{
Heap_Block *prev = block_next->prev;
3000ffc8: e594200c ldr r2, [r4, #12] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
Heap_Block *prev = block->prev;
prev->next = next;
3000ffcc: e5810008 str r0, [r1, #8] <== NOT EXECUTED
)
{
Heap_Block *prev = block_next->prev;
new_block->next = block_next;
new_block->prev = prev;
3000ffd0: e583200c str r2, [r3, #12] <== NOT EXECUTED
Heap_Block *new_block
)
{
Heap_Block *prev = block_next->prev;
new_block->next = block_next;
3000ffd4: e5834008 str r4, [r3, #8] <== NOT EXECUTED
new_block->prev = prev;
prev->next = new_block;
block_next->prev = new_block;
3000ffd8: e584300c str r3, [r4, #12] <== NOT EXECUTED
{
Heap_Block *prev = block_next->prev;
new_block->next = block_next;
new_block->prev = prev;
prev->next = new_block;
3000ffdc: e5823008 str r3, [r2, #8] <== NOT EXECUTED
first_free = _Heap_Free_list_first( heap );
_Heap_Free_list_remove( first_free );
_Heap_Free_list_insert_before( _Heap_Free_list_tail( heap ), first_free );
}
3000ffe0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
3000dbb0 <_Heap_Greedy_allocate>:
Heap_Block *_Heap_Greedy_allocate(
Heap_Control *heap,
const uintptr_t *block_sizes,
size_t block_count
)
{
3000dbb0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
Heap_Block *allocated_blocks = NULL;
Heap_Block *blocks = NULL;
Heap_Block *current;
size_t i;
for (i = 0; i < block_count; ++i) {
3000dbb4: e2528000 subs r8, r2, #0
Heap_Block *_Heap_Greedy_allocate(
Heap_Control *heap,
const uintptr_t *block_sizes,
size_t block_count
)
{
3000dbb8: e1a04000 mov r4, r0
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
Heap_Block *allocated_blocks = NULL;
3000dbbc: 01a05008 moveq r5, r8
Heap_Block *blocks = NULL;
Heap_Block *current;
size_t i;
for (i = 0; i < block_count; ++i) {
3000dbc0: 0a000012 beq 3000dc10 <_Heap_Greedy_allocate+0x60>
3000dbc4: e3a06000 mov r6, #0
3000dbc8: e1a07001 mov r7, r1
const uintptr_t *block_sizes,
size_t block_count
)
{
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
Heap_Block *allocated_blocks = NULL;
3000dbcc: e1a05006 mov r5, r6
* @brief See _Heap_Allocate_aligned_with_boundary() with alignment and
* boundary equals zero.
*/
RTEMS_INLINE_ROUTINE void *_Heap_Allocate( Heap_Control *heap, uintptr_t size )
{
return _Heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
3000dbd0: e3a02000 mov r2, #0
3000dbd4: e4971004 ldr r1, [r7], #4
3000dbd8: e1a03002 mov r3, r2
3000dbdc: e1a00004 mov r0, r4
3000dbe0: eb001c72 bl 30014db0 <_Heap_Allocate_aligned_with_boundary>
size_t i;
for (i = 0; i < block_count; ++i) {
void *next = _Heap_Allocate( heap, block_sizes [i] );
if ( next != NULL ) {
3000dbe4: e250a000 subs sl, r0, #0
Heap_Block *allocated_blocks = NULL;
Heap_Block *blocks = NULL;
Heap_Block *current;
size_t i;
for (i = 0; i < block_count; ++i) {
3000dbe8: e2866001 add r6, r6, #1
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
3000dbec: e24aa008 sub sl, sl, #8
void *next = _Heap_Allocate( heap, block_sizes [i] );
if ( next != NULL ) {
3000dbf0: 0a000004 beq 3000dc08 <_Heap_Greedy_allocate+0x58>
3000dbf4: e5941010 ldr r1, [r4, #16]
3000dbf8: eb0047ba bl 3001fae8 <__umodsi3>
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
3000dbfc: e060000a rsb r0, r0, sl
Heap_Block *next_block = _Heap_Block_of_alloc_area(
(uintptr_t) next,
heap->page_size
);
next_block->next = allocated_blocks;
3000dc00: e5805008 str r5, [r0, #8]
3000dc04: e1a05000 mov r5, r0
Heap_Block *allocated_blocks = NULL;
Heap_Block *blocks = NULL;
Heap_Block *current;
size_t i;
for (i = 0; i < block_count; ++i) {
3000dc08: e1560008 cmp r6, r8
3000dc0c: 1affffef bne 3000dbd0 <_Heap_Greedy_allocate+0x20>
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
3000dc10: e5946008 ldr r6, [r4, #8]
next_block->next = allocated_blocks;
allocated_blocks = next_block;
}
}
while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
3000dc14: e1540006 cmp r4, r6
3000dc18: 13a07000 movne r7, #0
3000dc1c: 1a000001 bne 3000dc28 <_Heap_Greedy_allocate+0x78>
3000dc20: ea000018 b 3000dc88 <_Heap_Greedy_allocate+0xd8> <== NOT EXECUTED
3000dc24: e1a06003 mov r6, r3
- 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;
3000dc28: e5963004 ldr r3, [r6, #4]
_Heap_Block_allocate(
3000dc2c: e1a01006 mov r1, r6
3000dc30: e3c33001 bic r3, r3, #1
3000dc34: e2433008 sub r3, r3, #8
3000dc38: e2862008 add r2, r6, #8
3000dc3c: e1a00004 mov r0, r4
3000dc40: eb0000cd bl 3000df7c <_Heap_Block_allocate>
current,
_Heap_Alloc_area_of_block( current ),
_Heap_Block_size( current ) - HEAP_BLOCK_HEADER_SIZE
);
current->next = blocks;
3000dc44: e5867008 str r7, [r6, #8]
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
3000dc48: e5943008 ldr r3, [r4, #8]
next_block->next = allocated_blocks;
allocated_blocks = next_block;
}
}
while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
3000dc4c: e1a07006 mov r7, r6
3000dc50: e1540003 cmp r4, r3
3000dc54: 1afffff2 bne 3000dc24 <_Heap_Greedy_allocate+0x74>
current->next = blocks;
blocks = current;
}
while ( allocated_blocks != NULL ) {
3000dc58: e3550000 cmp r5, #0
3000dc5c: 1a000001 bne 3000dc68 <_Heap_Greedy_allocate+0xb8>
3000dc60: ea000006 b 3000dc80 <_Heap_Greedy_allocate+0xd0>
current = allocated_blocks;
allocated_blocks = allocated_blocks->next;
3000dc64: e1a05007 mov r5, r7 <== NOT EXECUTED
3000dc68: e1a01005 mov r1, r5
3000dc6c: e5b17008 ldr r7, [r1, #8]!
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
3000dc70: e1a00004 mov r0, r4
3000dc74: eb001ce1 bl 30015000 <_Heap_Free>
current->next = blocks;
blocks = current;
}
while ( allocated_blocks != NULL ) {
3000dc78: e3570000 cmp r7, #0
3000dc7c: 1afffff8 bne 3000dc64 <_Heap_Greedy_allocate+0xb4>
allocated_blocks = allocated_blocks->next;
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
}
return blocks;
}
3000dc80: e1a00006 mov r0, r6
3000dc84: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
next_block->next = allocated_blocks;
allocated_blocks = next_block;
}
}
while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
3000dc88: e3a06000 mov r6, #0 <== NOT EXECUTED
3000dc8c: eafffff1 b 3000dc58 <_Heap_Greedy_allocate+0xa8> <== NOT EXECUTED
300103b8 <_Heap_No_extend>:
uintptr_t unused_2 __attribute__((unused)),
uintptr_t unused_3 __attribute__((unused))
)
{
return 0;
}
300103b8: e3a00000 mov r0, #0 <== NOT EXECUTED
300103bc: e12fff1e bx lr <== NOT EXECUTED
30010140 <_Heap_Resize_block>:
void *alloc_begin_ptr,
uintptr_t new_alloc_size,
uintptr_t *old_size,
uintptr_t *new_size
)
{
30010140: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
30010144: e1a04000 mov r4, r0
30010148: e1a05001 mov r5, r1
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
3001014c: e1a00001 mov r0, r1
30010150: e5941010 ldr r1, [r4, #16]
30010154: e1a07003 mov r7, r3
30010158: e1a08002 mov r8, r2
3001015c: eb002a77 bl 3001ab40 <__umodsi3>
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;
30010160: e5943020 ldr r3, [r4, #32]
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
30010164: e2451008 sub r1, r5, #8
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
30010168: e0601001 rsb r1, r0, r1
3001016c: e59d601c ldr r6, [sp, #28]
uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;
Heap_Block *const block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
*old_size = 0;
30010170: e3a02000 mov r2, #0
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;
30010174: e1530001 cmp r3, r1
30010178: e5872000 str r2, [r7]
new_alloc_size,
old_size,
new_size
);
}
return HEAP_RESIZE_FATAL_ERROR;
3001017c: 83a00002 movhi r0, #2
uintptr_t const alloc_begin = (uintptr_t) alloc_begin_ptr;
Heap_Block *const block = _Heap_Block_of_alloc_area( alloc_begin, page_size );
*old_size = 0;
*new_size = 0;
30010180: e5862000 str r2, [r6]
30010184: 88bd85f0 pophi {r4, r5, r6, r7, r8, sl, pc}
30010188: e5943024 ldr r3, [r4, #36] ; 0x24
3001018c: e1530001 cmp r3, r1
30010190: 3a000036 bcc 30010270 <_Heap_Resize_block+0x130>
- 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;
30010194: e5910004 ldr r0, [r1, #4]
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t block_size = _Heap_Block_size( block );
uintptr_t block_end = block_begin + block_size;
uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS;
30010198: e2652004 rsb r2, r5, #4
3001019c: e3c00001 bic r0, r0, #1
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t block_size = _Heap_Block_size( block );
uintptr_t block_end = block_begin + block_size;
300101a0: e0813000 add r3, r1, r0
300101a4: e593c004 ldr ip, [r3, #4]
uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS;
300101a8: e0822003 add r2, r2, r3
300101ac: e3ccc001 bic ip, ip, #1
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;
300101b0: e083a00c add sl, r3, ip
300101b4: e59aa004 ldr sl, [sl, #4]
bool next_block_is_free = _Heap_Is_free( next_block );
_HAssert( _Heap_Is_block_in_heap( heap, next_block ) );
_HAssert( _Heap_Is_prev_used( next_block ) );
*old_size = alloc_size;
300101b8: e5872000 str r2, [r7]
RTEMS_INLINE_ROUTINE bool _Heap_Is_free(
const Heap_Block *block
)
{
return !_Heap_Is_used( block );
300101bc: e31a0001 tst sl, #1
300101c0: 13a07000 movne r7, #0
300101c4: 03a07001 moveq r7, #1
if ( next_block_is_free ) {
300101c8: e3570000 cmp r7, #0
block_size += next_block_size;
alloc_size += next_block_size;
300101cc: 1082200c addne r2, r2, ip
_HAssert( _Heap_Is_prev_used( next_block ) );
*old_size = alloc_size;
if ( next_block_is_free ) {
block_size += next_block_size;
300101d0: 1080000c addne r0, r0, ip
alloc_size += next_block_size;
}
if ( new_alloc_size > alloc_size ) {
300101d4: e1580002 cmp r8, r2
return HEAP_RESIZE_UNSATISFIED;
300101d8: 83a00001 movhi r0, #1
if ( next_block_is_free ) {
block_size += next_block_size;
alloc_size += next_block_size;
}
if ( new_alloc_size > alloc_size ) {
300101dc: 88bd85f0 pophi {r4, r5, r6, r7, r8, sl, pc}
return HEAP_RESIZE_UNSATISFIED;
}
if ( next_block_is_free ) {
300101e0: e3570000 cmp r7, #0
300101e4: 0a000011 beq 30010230 <_Heap_Resize_block+0xf0>
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
300101e8: e591e004 ldr lr, [r1, #4]
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
300101ec: e0802001 add r2, r0, r1
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(
Heap_Block *block,
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
300101f0: e20ee001 and lr, lr, #1
block->size_and_flag = size | flag;
300101f4: e180000e orr r0, r0, lr
300101f8: e5810004 str r0, [r1, #4]
next_block = _Heap_Block_at( block, block_size );
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
/* Statistics */
--stats->free_blocks;
300101fc: e594e038 ldr lr, [r4, #56] ; 0x38
stats->free_size -= next_block_size;
30010200: e594a030 ldr sl, [r4, #48] ; 0x30
_Heap_Block_set_size( block, block_size );
_Heap_Free_list_remove( next_block );
next_block = _Heap_Block_at( block, block_size );
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
30010204: e5927004 ldr r7, [r2, #4]
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
30010208: e5930008 ldr r0, [r3, #8]
Heap_Block *prev = block->prev;
3001020c: e593300c ldr r3, [r3, #12]
30010210: e3877001 orr r7, r7, #1
/* Statistics */
--stats->free_blocks;
30010214: e24ee001 sub lr, lr, #1
stats->free_size -= next_block_size;
30010218: e06cc00a rsb ip, ip, sl
prev->next = next;
3001021c: e5830008 str r0, [r3, #8]
next->prev = prev;
30010220: e580300c str r3, [r0, #12]
_Heap_Block_set_size( block, block_size );
_Heap_Free_list_remove( next_block );
next_block = _Heap_Block_at( block, block_size );
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
30010224: e5827004 str r7, [r2, #4]
/* Statistics */
--stats->free_blocks;
30010228: e584e038 str lr, [r4, #56] ; 0x38
stats->free_size -= next_block_size;
3001022c: e584c030 str ip, [r4, #48] ; 0x30
}
block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size );
30010230: e1a02005 mov r2, r5
30010234: e1a03008 mov r3, r8
30010238: e1a00004 mov r0, r4
3001023c: ebffee3d bl 3000bb38 <_Heap_Block_allocate>
- 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;
30010240: e5902004 ldr r2, [r0, #4]
30010244: e1a03000 mov r3, r0
30010248: e3c22001 bic r2, r2, #1
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
3001024c: e2822004 add r2, r2, #4
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
*new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS;
30010250: e0655002 rsb r5, r5, r2
30010254: e0833005 add r3, r3, r5
30010258: e5863000 str r3, [r6]
/* Statistics */
++stats->resizes;
3001025c: e5943054 ldr r3, [r4, #84] ; 0x54
return HEAP_RESIZE_SUCCESSFUL;
30010260: e3a00000 mov r0, #0
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
*new_size = (uintptr_t) next_block - alloc_begin + HEAP_ALLOC_BONUS;
/* Statistics */
++stats->resizes;
30010264: e2833001 add r3, r3, #1
30010268: e5843054 str r3, [r4, #84] ; 0x54
3001026c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
new_alloc_size,
old_size,
new_size
);
}
return HEAP_RESIZE_FATAL_ERROR;
30010270: e3a00002 mov r0, #2 <== NOT EXECUTED
}
30010274: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
30010278 <_Heap_Size_of_alloc_area>:
bool _Heap_Size_of_alloc_area(
Heap_Control *heap,
void *alloc_begin_ptr,
uintptr_t *alloc_size
)
{
30010278: e92d4070 push {r4, r5, r6, lr}
3001027c: e1a04000 mov r4, r0
30010280: e1a05001 mov r5, r1
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
30010284: e1a00001 mov r0, r1
30010288: e5941010 ldr r1, [r4, #16]
3001028c: e1a06002 mov r6, r2
30010290: eb002a2a bl 3001ab40 <__umodsi3>
30010294: e2452008 sub r2, r5, #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
30010298: e5943020 ldr r3, [r4, #32]
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
3001029c: e0602002 rsb r2, r0, r2
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;
300102a0: e1520003 cmp r2, r3
300102a4: 3a000010 bcc 300102ec <_Heap_Size_of_alloc_area+0x74>
300102a8: e5941024 ldr r1, [r4, #36] ; 0x24
300102ac: e1520001 cmp r2, r1
300102b0: 8a00000d bhi 300102ec <_Heap_Size_of_alloc_area+0x74>
- 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;
300102b4: e5920004 ldr r0, [r2, #4]
300102b8: e3c00001 bic r0, r0, #1
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
300102bc: e0822000 add r2, r2, r0
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;
300102c0: e1530002 cmp r3, r2
300102c4: 8a000008 bhi 300102ec <_Heap_Size_of_alloc_area+0x74>
300102c8: e1510002 cmp r1, r2
300102cc: 3a000008 bcc 300102f4 <_Heap_Size_of_alloc_area+0x7c>
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;
300102d0: e5920004 ldr r0, [r2, #4]
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if (
!_Heap_Is_block_in_heap( heap, next_block )
|| !_Heap_Is_prev_used( next_block )
300102d4: e2100001 ands r0, r0, #1
) {
return false;
}
*alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
300102d8: 12655004 rsbne r5, r5, #4
300102dc: 10852002 addne r2, r5, r2
300102e0: 15862000 strne r2, [r6]
return true;
300102e4: 13a00001 movne r0, #1
300102e8: e8bd8070 pop {r4, r5, r6, pc}
if (
!_Heap_Is_block_in_heap( heap, next_block )
|| !_Heap_Is_prev_used( next_block )
) {
return false;
300102ec: e3a00000 mov r0, #0 <== NOT EXECUTED
300102f0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
300102f4: e3a00000 mov r0, #0 <== NOT EXECUTED
}
*alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
return true;
}
300102f8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
3000c668 <_Heap_Walk>:
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
3000c668: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
uintptr_t const page_size = heap->page_size;
3000c66c: e590c010 ldr ip, [r0, #16] <== NOT EXECUTED
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
3000c670: e24dd038 sub sp, sp, #56 ; 0x38 <== NOT EXECUTED
Heap_Block *const last_block = heap->last_block;
Heap_Block *block = first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
if ( !_System_state_Is_up( _System_state_Get() ) ) {
3000c674: e59f35b0 ldr r3, [pc, #1456] ; 3000cc2c <_Heap_Walk+0x5c4> <== NOT EXECUTED
Heap_Control *heap,
int source,
bool dump
)
{
uintptr_t const page_size = heap->page_size;
3000c678: e58dc024 str ip, [sp, #36] ; 0x24 <== NOT EXECUTED
uintptr_t const min_block_size = heap->min_block_size;
3000c67c: e590c014 ldr ip, [r0, #20] <== NOT EXECUTED
Heap_Block *const first_block = heap->first_block;
Heap_Block *const last_block = heap->last_block;
Heap_Block *block = first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
3000c680: e31200ff tst r2, #255 ; 0xff <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
3000c684: e5933000 ldr r3, [r3] <== NOT EXECUTED
uintptr_t const min_block_size = heap->min_block_size;
Heap_Block *const first_block = heap->first_block;
Heap_Block *const last_block = heap->last_block;
Heap_Block *block = first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
3000c688: e59f25a0 ldr r2, [pc, #1440] ; 3000cc30 <_Heap_Walk+0x5c8> <== NOT EXECUTED
3000c68c: e59f95a0 ldr r9, [pc, #1440] ; 3000cc34 <_Heap_Walk+0x5cc> <== NOT EXECUTED
int source,
bool dump
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
3000c690: e58dc028 str ip, [sp, #40] ; 0x28 <== NOT EXECUTED
Heap_Block *const first_block = heap->first_block;
Heap_Block *const last_block = heap->last_block;
3000c694: e590c024 ldr ip, [r0, #36] ; 0x24 <== NOT EXECUTED
Heap_Block *block = first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
3000c698: 11a09002 movne r9, r2 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
3000c69c: e3530003 cmp r3, #3 <== NOT EXECUTED
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
3000c6a0: e1a04000 mov r4, r0 <== NOT EXECUTED
3000c6a4: e1a0a001 mov sl, r1 <== NOT EXECUTED
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
Heap_Block *const first_block = heap->first_block;
3000c6a8: e5908020 ldr r8, [r0, #32] <== NOT EXECUTED
Heap_Block *const last_block = heap->last_block;
3000c6ac: e58dc02c str ip, [sp, #44] ; 0x2c <== NOT EXECUTED
Heap_Block *block = first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
if ( !_System_state_Is_up( _System_state_Get() ) ) {
3000c6b0: 0a000002 beq 3000c6c0 <_Heap_Walk+0x58> <== NOT EXECUTED
}
block = next_block;
} while ( block != first_block );
return true;
3000c6b4: e3a00001 mov r0, #1 <== NOT EXECUTED
}
3000c6b8: e28dd038 add sp, sp, #56 ; 0x38 <== NOT EXECUTED
3000c6bc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
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)(
3000c6c0: e59dc028 ldr ip, [sp, #40] ; 0x28 <== NOT EXECUTED
3000c6c4: e5900018 ldr r0, [r0, #24] <== NOT EXECUTED
3000c6c8: e594101c ldr r1, [r4, #28] <== NOT EXECUTED
3000c6cc: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED
3000c6d0: e594300c ldr r3, [r4, #12] <== NOT EXECUTED
3000c6d4: e58dc000 str ip, [sp] <== NOT EXECUTED
3000c6d8: e59dc02c ldr ip, [sp, #44] ; 0x2c <== NOT EXECUTED
3000c6dc: e98d0103 stmib sp, {r0, r1, r8} <== NOT EXECUTED
3000c6e0: e58dc010 str ip, [sp, #16] <== NOT EXECUTED
3000c6e4: e58d2014 str r2, [sp, #20] <== NOT EXECUTED
3000c6e8: e58d3018 str r3, [sp, #24] <== NOT EXECUTED
3000c6ec: e1a0000a mov r0, sl <== NOT EXECUTED
3000c6f0: e3a01000 mov r1, #0 <== NOT EXECUTED
3000c6f4: e59f253c ldr r2, [pc, #1340] ; 3000cc38 <_Heap_Walk+0x5d0> <== NOT EXECUTED
3000c6f8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED
3000c6fc: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c700: e12fff19 bx r9 <== NOT EXECUTED
heap->area_begin, heap->area_end,
first_block, last_block,
first_free_block, last_free_block
);
if ( page_size == 0 ) {
3000c704: e59dc024 ldr ip, [sp, #36] ; 0x24 <== NOT EXECUTED
3000c708: e35c0000 cmp ip, #0 <== NOT EXECUTED
3000c70c: 0a000026 beq 3000c7ac <_Heap_Walk+0x144> <== NOT EXECUTED
(*printer)( source, true, "page size is zero\n" );
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
3000c710: e59dc024 ldr ip, [sp, #36] ; 0x24 <== NOT EXECUTED
3000c714: e21c5007 ands r5, ip, #7 <== NOT EXECUTED
3000c718: 1a00002a bne 3000c7c8 <_Heap_Walk+0x160> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
3000c71c: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED
3000c720: e59d1024 ldr r1, [sp, #36] ; 0x24 <== NOT EXECUTED
3000c724: ebffe256 bl 30005084 <__umodsi3> <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
3000c728: e2506000 subs r6, r0, #0 <== NOT EXECUTED
3000c72c: 1a00002d bne 3000c7e8 <_Heap_Walk+0x180> <== NOT EXECUTED
3000c730: e2880008 add r0, r8, #8 <== NOT EXECUTED
3000c734: e59d1024 ldr r1, [sp, #36] ; 0x24 <== NOT EXECUTED
3000c738: ebffe251 bl 30005084 <__umodsi3> <== NOT EXECUTED
);
return false;
}
if (
3000c73c: e2507000 subs r7, r0, #0 <== NOT EXECUTED
3000c740: 1a000030 bne 3000c808 <_Heap_Walk+0x1a0> <== NOT EXECUTED
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;
3000c744: e598b004 ldr fp, [r8, #4] <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
3000c748: e21b5001 ands r5, fp, #1 <== NOT EXECUTED
3000c74c: 0a000035 beq 3000c828 <_Heap_Walk+0x1c0> <== NOT EXECUTED
- 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;
3000c750: e59dc02c ldr ip, [sp, #44] ; 0x2c <== NOT EXECUTED
3000c754: e59c3004 ldr r3, [ip, #4] <== NOT EXECUTED
3000c758: e3c33001 bic r3, r3, #1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
3000c75c: e08c3003 add r3, ip, r3 <== NOT EXECUTED
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;
3000c760: e5935004 ldr r5, [r3, #4] <== NOT EXECUTED
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
3000c764: e2155001 ands r5, r5, #1 <== NOT EXECUTED
3000c768: 0a000008 beq 3000c790 <_Heap_Walk+0x128> <== NOT EXECUTED
);
return false;
}
if (
3000c76c: e1580003 cmp r8, r3 <== NOT EXECUTED
3000c770: 0a000033 beq 3000c844 <_Heap_Walk+0x1dc> <== NOT EXECUTED
_Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
) {
(*printer)(
3000c774: e1a0000a mov r0, sl <== NOT EXECUTED
3000c778: e3a01001 mov r1, #1 <== NOT EXECUTED
3000c77c: e59f24b8 ldr r2, [pc, #1208] ; 3000cc3c <_Heap_Walk+0x5d4> <== NOT EXECUTED
3000c780: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c784: e12fff19 bx r9 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
3000c788: e1a00007 mov r0, r7 <== NOT EXECUTED
3000c78c: eaffffc9 b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
return false;
}
if ( _Heap_Is_free( last_block ) ) {
(*printer)(
3000c790: e1a0000a mov r0, sl <== NOT EXECUTED
3000c794: e3a01001 mov r1, #1 <== NOT EXECUTED
3000c798: e59f24a0 ldr r2, [pc, #1184] ; 3000cc40 <_Heap_Walk+0x5d8> <== NOT EXECUTED
3000c79c: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c7a0: e12fff19 bx r9 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
3000c7a4: e1a00005 mov r0, r5 <== NOT EXECUTED
3000c7a8: eaffffc2 b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
first_block, last_block,
first_free_block, last_free_block
);
if ( page_size == 0 ) {
(*printer)( source, true, "page size is zero\n" );
3000c7ac: e1a0000a mov r0, sl <== NOT EXECUTED
3000c7b0: e3a01001 mov r1, #1 <== NOT EXECUTED
3000c7b4: e59f2488 ldr r2, [pc, #1160] ; 3000cc44 <_Heap_Walk+0x5dc> <== NOT EXECUTED
3000c7b8: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c7bc: e12fff19 bx r9 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
3000c7c0: e59d0024 ldr r0, [sp, #36] ; 0x24 <== NOT EXECUTED
3000c7c4: eaffffbb b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
(*printer)(
3000c7c8: e1a0000a mov r0, sl <== NOT EXECUTED
3000c7cc: e3a01001 mov r1, #1 <== NOT EXECUTED
3000c7d0: e59f2470 ldr r2, [pc, #1136] ; 3000cc48 <_Heap_Walk+0x5e0> <== NOT EXECUTED
3000c7d4: e1a0300c mov r3, ip <== NOT EXECUTED
3000c7d8: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c7dc: e12fff19 bx r9 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
3000c7e0: e3a00000 mov r0, #0 <== NOT EXECUTED
3000c7e4: eaffffb3 b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
(*printer)(
3000c7e8: e1a0000a mov r0, sl <== NOT EXECUTED
3000c7ec: e3a01001 mov r1, #1 <== NOT EXECUTED
3000c7f0: e59f2454 ldr r2, [pc, #1108] ; 3000cc4c <_Heap_Walk+0x5e4> <== NOT EXECUTED
3000c7f4: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED
3000c7f8: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c7fc: e12fff19 bx r9 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
3000c800: e1a00005 mov r0, r5 <== NOT EXECUTED
3000c804: eaffffab b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
}
if (
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
3000c808: e1a0000a mov r0, sl <== NOT EXECUTED
3000c80c: e3a01001 mov r1, #1 <== NOT EXECUTED
3000c810: e59f2438 ldr r2, [pc, #1080] ; 3000cc50 <_Heap_Walk+0x5e8> <== NOT EXECUTED
3000c814: e1a03008 mov r3, r8 <== NOT EXECUTED
3000c818: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c81c: e12fff19 bx r9 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
3000c820: e1a00006 mov r0, r6 <== NOT EXECUTED
3000c824: eaffffa3 b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
(*printer)(
3000c828: e1a0000a mov r0, sl <== NOT EXECUTED
3000c82c: e3a01001 mov r1, #1 <== NOT EXECUTED
3000c830: e59f241c ldr r2, [pc, #1052] ; 3000cc54 <_Heap_Walk+0x5ec> <== NOT EXECUTED
3000c834: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c838: e12fff19 bx r9 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
3000c83c: e1a00005 mov r0, r5 <== NOT EXECUTED
3000c840: eaffff9c b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
3000c844: e5945008 ldr r5, [r4, #8] <== NOT EXECUTED
int source,
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
3000c848: e5947010 ldr r7, [r4, #16] <== NOT EXECUTED
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 ) {
3000c84c: e1540005 cmp r4, r5 <== NOT EXECUTED
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
3000c850: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED
3000c854: 0a00000c beq 3000c88c <_Heap_Walk+0x224> <== NOT EXECUTED
&& (uintptr_t) block <= (uintptr_t) heap->last_block;
3000c858: e1530005 cmp r3, r5 <== NOT EXECUTED
3000c85c: 9a0000a9 bls 3000cb08 <_Heap_Walk+0x4a0> <== NOT EXECUTED
if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {
(*printer)(
3000c860: e1a0000a mov r0, sl <== NOT EXECUTED
3000c864: e3a01001 mov r1, #1 <== NOT EXECUTED
3000c868: e59f23e8 ldr r2, [pc, #1000] ; 3000cc58 <_Heap_Walk+0x5f0> <== NOT EXECUTED
3000c86c: e1a03005 mov r3, r5 <== NOT EXECUTED
3000c870: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c874: e12fff19 bx r9 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
3000c878: e3a00000 mov r0, #0 <== NOT EXECUTED
3000c87c: eaffff8d b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
3000c880: e1a03008 mov r3, r8 <== NOT EXECUTED
3000c884: e59db034 ldr fp, [sp, #52] ; 0x34 <== NOT EXECUTED
3000c888: e59d8030 ldr r8, [sp, #48] ; 0x30 <== NOT EXECUTED
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
3000c88c: e1a06008 mov r6, r8 <== NOT EXECUTED
- 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;
3000c890: e3cb7001 bic r7, fp, #1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
3000c894: e0875006 add r5, r7, r6 <== NOT EXECUTED
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;
3000c898: e1530005 cmp r3, r5 <== NOT EXECUTED
3000c89c: 9a000008 bls 3000c8c4 <_Heap_Walk+0x25c> <== NOT EXECUTED
Heap_Block *const next_block = _Heap_Block_at( block, block_size );
uintptr_t const next_block_begin = (uintptr_t) next_block;
bool const is_not_last_block = block != last_block;
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
(*printer)(
3000c8a0: e1a0000a mov r0, sl <== NOT EXECUTED
3000c8a4: e58d5000 str r5, [sp] <== NOT EXECUTED
3000c8a8: e3a01001 mov r1, #1 <== NOT EXECUTED
3000c8ac: e59f23a8 ldr r2, [pc, #936] ; 3000cc5c <_Heap_Walk+0x5f4> <== NOT EXECUTED
3000c8b0: e1a03006 mov r3, r6 <== NOT EXECUTED
3000c8b4: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c8b8: e12fff19 bx r9 <== NOT EXECUTED
"block 0x%08x: next block 0x%08x not in heap\n",
block,
next_block
);
return false;
3000c8bc: e3a00000 mov r0, #0 <== NOT EXECUTED
3000c8c0: eaffff7c b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
3000c8c4: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED
3000c8c8: e1530005 cmp r3, r5 <== NOT EXECUTED
3000c8cc: 3afffff3 bcc 3000c8a0 <_Heap_Walk+0x238> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
3000c8d0: e1a00007 mov r0, r7 <== NOT EXECUTED
3000c8d4: e59d1024 ldr r1, [sp, #36] ; 0x24 <== NOT EXECUTED
3000c8d8: ebffe1e9 bl 30005084 <__umodsi3> <== NOT EXECUTED
uintptr_t const block_begin = (uintptr_t) block;
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;
bool const is_not_last_block = block != last_block;
3000c8dc: e59dc02c ldr ip, [sp, #44] ; 0x2c <== NOT EXECUTED
3000c8e0: e056300c subs r3, r6, ip <== NOT EXECUTED
3000c8e4: 13a03001 movne r3, #1 <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
3000c8e8: e3500000 cmp r0, #0 <== NOT EXECUTED
3000c8ec: 0a000001 beq 3000c8f8 <_Heap_Walk+0x290> <== NOT EXECUTED
3000c8f0: e3530000 cmp r3, #0 <== NOT EXECUTED
3000c8f4: 1a000068 bne 3000ca9c <_Heap_Walk+0x434> <== NOT EXECUTED
);
return false;
}
if ( block_size < min_block_size && is_not_last_block ) {
3000c8f8: e59dc028 ldr ip, [sp, #40] ; 0x28 <== NOT EXECUTED
3000c8fc: e15c0007 cmp ip, r7 <== NOT EXECUTED
3000c900: 9a000001 bls 3000c90c <_Heap_Walk+0x2a4> <== NOT EXECUTED
3000c904: e3530000 cmp r3, #0 <== NOT EXECUTED
3000c908: 1a00006c bne 3000cac0 <_Heap_Walk+0x458> <== NOT EXECUTED
);
return false;
}
if ( next_block_begin <= block_begin && is_not_last_block ) {
3000c90c: e1560005 cmp r6, r5 <== NOT EXECUTED
3000c910: 3a000001 bcc 3000c91c <_Heap_Walk+0x2b4> <== NOT EXECUTED
3000c914: e3530000 cmp r3, #0 <== NOT EXECUTED
3000c918: 1a000071 bne 3000cae4 <_Heap_Walk+0x47c> <== NOT EXECUTED
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;
3000c91c: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED
3000c920: e20bb001 and fp, fp, #1 <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
3000c924: e3130001 tst r3, #1 <== NOT EXECUTED
3000c928: 0a000017 beq 3000c98c <_Heap_Walk+0x324> <== NOT EXECUTED
if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
return false;
}
} else if (prev_used) {
3000c92c: e35b0000 cmp fp, #0 <== NOT EXECUTED
(*printer)(
3000c930: e58d7000 str r7, [sp] <== NOT EXECUTED
if ( !_Heap_Is_prev_used( next_block ) ) {
if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
return false;
}
} else if (prev_used) {
3000c934: 0a00000b beq 3000c968 <_Heap_Walk+0x300> <== NOT EXECUTED
(*printer)(
3000c938: e1a0000a mov r0, sl <== NOT EXECUTED
3000c93c: e3a01000 mov r1, #0 <== NOT EXECUTED
3000c940: e59f2318 ldr r2, [pc, #792] ; 3000cc60 <_Heap_Walk+0x5f8> <== NOT EXECUTED
3000c944: e1a03006 mov r3, r6 <== NOT EXECUTED
3000c948: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c94c: e12fff19 bx r9 <== NOT EXECUTED
block->prev_size
);
}
block = next_block;
} while ( block != first_block );
3000c950: e1580005 cmp r8, r5 <== NOT EXECUTED
3000c954: 0affff56 beq 3000c6b4 <_Heap_Walk+0x4c> <== NOT EXECUTED
3000c958: e595b004 ldr fp, [r5, #4] <== NOT EXECUTED
3000c95c: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED
3000c960: e1a06005 mov r6, r5 <== NOT EXECUTED
3000c964: eaffffc9 b 3000c890 <_Heap_Walk+0x228> <== NOT EXECUTED
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
3000c968: e5963000 ldr r3, [r6] <== NOT EXECUTED
3000c96c: e1a0000a mov r0, sl <== NOT EXECUTED
3000c970: e58d3004 str r3, [sp, #4] <== NOT EXECUTED
3000c974: e1a0100b mov r1, fp <== NOT EXECUTED
3000c978: e59f22e4 ldr r2, [pc, #740] ; 3000cc64 <_Heap_Walk+0x5fc> <== NOT EXECUTED
3000c97c: e1a03006 mov r3, r6 <== NOT EXECUTED
3000c980: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c984: e12fff19 bx r9 <== NOT EXECUTED
3000c988: eafffff0 b 3000c950 <_Heap_Walk+0x2e8> <== NOT EXECUTED
false,
"block 0x%08x: size %u, prev 0x%08x%s, next 0x%08x%s\n",
block,
block_size,
block->prev,
block->prev == first_free_block ?
3000c98c: e596200c ldr r2, [r6, #12] <== NOT EXECUTED
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)(
3000c990: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED
return _Heap_Free_list_head(heap)->next;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap )
{
return _Heap_Free_list_tail(heap)->prev;
3000c994: e594100c ldr r1, [r4, #12] <== NOT EXECUTED
3000c998: e1530002 cmp r3, r2 <== NOT EXECUTED
3000c99c: 059f02c4 ldreq r0, [pc, #708] ; 3000cc68 <_Heap_Walk+0x600><== NOT EXECUTED
3000c9a0: 0a000003 beq 3000c9b4 <_Heap_Walk+0x34c> <== NOT EXECUTED
block,
block_size,
block->prev,
block->prev == first_free_block ?
" (= first free)"
: (block->prev == free_list_head ? " (= head)" : ""),
3000c9a4: e59f32c0 ldr r3, [pc, #704] ; 3000cc6c <_Heap_Walk+0x604> <== NOT EXECUTED
3000c9a8: e1540002 cmp r4, r2 <== NOT EXECUTED
3000c9ac: e59f02bc ldr r0, [pc, #700] ; 3000cc70 <_Heap_Walk+0x608> <== NOT EXECUTED
3000c9b0: 11a00003 movne r0, r3 <== NOT EXECUTED
block->next,
block->next == last_free_block ?
3000c9b4: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED
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)(
3000c9b8: e1510003 cmp r1, r3 <== NOT EXECUTED
3000c9bc: 059f12b0 ldreq r1, [pc, #688] ; 3000cc74 <_Heap_Walk+0x60c><== NOT EXECUTED
3000c9c0: 0a000003 beq 3000c9d4 <_Heap_Walk+0x36c> <== NOT EXECUTED
" (= first free)"
: (block->prev == free_list_head ? " (= head)" : ""),
block->next,
block->next == last_free_block ?
" (= last free)"
: (block->next == free_list_tail ? " (= tail)" : "")
3000c9c4: e59fc2ac ldr ip, [pc, #684] ; 3000cc78 <_Heap_Walk+0x610> <== NOT EXECUTED
3000c9c8: e1540003 cmp r4, r3 <== NOT EXECUTED
3000c9cc: e59f1298 ldr r1, [pc, #664] ; 3000cc6c <_Heap_Walk+0x604> <== NOT EXECUTED
3000c9d0: 01a0100c moveq r1, ip <== NOT EXECUTED
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)(
3000c9d4: e58d2004 str r2, [sp, #4] <== NOT EXECUTED
3000c9d8: e58d0008 str r0, [sp, #8] <== NOT EXECUTED
3000c9dc: e58d300c str r3, [sp, #12] <== NOT EXECUTED
3000c9e0: e58d1010 str r1, [sp, #16] <== NOT EXECUTED
3000c9e4: e1a03006 mov r3, r6 <== NOT EXECUTED
3000c9e8: e58d7000 str r7, [sp] <== NOT EXECUTED
3000c9ec: e1a0000a mov r0, sl <== NOT EXECUTED
3000c9f0: e3a01000 mov r1, #0 <== NOT EXECUTED
3000c9f4: e59f2280 ldr r2, [pc, #640] ; 3000cc7c <_Heap_Walk+0x614> <== NOT EXECUTED
3000c9f8: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c9fc: e12fff19 bx r9 <== NOT EXECUTED
block->next == last_free_block ?
" (= last free)"
: (block->next == free_list_tail ? " (= tail)" : "")
);
if ( block_size != next_block->prev_size ) {
3000ca00: e5953000 ldr r3, [r5] <== NOT EXECUTED
3000ca04: e1570003 cmp r7, r3 <== NOT EXECUTED
3000ca08: 1a000011 bne 3000ca54 <_Heap_Walk+0x3ec> <== NOT EXECUTED
);
return false;
}
if ( !prev_used ) {
3000ca0c: e35b0000 cmp fp, #0 <== NOT EXECUTED
3000ca10: 0a000019 beq 3000ca7c <_Heap_Walk+0x414> <== NOT EXECUTED
return &heap->free_list;
}
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{
return _Heap_Free_list_head(heap)->next;
3000ca14: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED
)
{
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 ) {
3000ca18: e1540003 cmp r4, r3 <== NOT EXECUTED
3000ca1c: 0a000004 beq 3000ca34 <_Heap_Walk+0x3cc> <== NOT EXECUTED
if ( free_block == block ) {
3000ca20: e1560003 cmp r6, r3 <== NOT EXECUTED
3000ca24: 0affffc9 beq 3000c950 <_Heap_Walk+0x2e8> <== NOT EXECUTED
return true;
}
free_block = free_block->next;
3000ca28: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED
)
{
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 ) {
3000ca2c: e1540003 cmp r4, r3 <== NOT EXECUTED
3000ca30: 1afffffa bne 3000ca20 <_Heap_Walk+0x3b8> <== NOT EXECUTED
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
3000ca34: e1a0000a mov r0, sl <== NOT EXECUTED
3000ca38: e3a01001 mov r1, #1 <== NOT EXECUTED
3000ca3c: e59f223c ldr r2, [pc, #572] ; 3000cc80 <_Heap_Walk+0x618> <== NOT EXECUTED
3000ca40: e1a03006 mov r3, r6 <== NOT EXECUTED
3000ca44: e1a0e00f mov lr, pc <== NOT EXECUTED
3000ca48: e12fff19 bx r9 <== NOT EXECUTED
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
return false;
3000ca4c: e3a00000 mov r0, #0 <== NOT EXECUTED
3000ca50: eaffff18 b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
" (= last free)"
: (block->next == free_list_tail ? " (= tail)" : "")
);
if ( block_size != next_block->prev_size ) {
(*printer)(
3000ca54: e98d0028 stmib sp, {r3, r5} <== NOT EXECUTED
3000ca58: e1a0000a mov r0, sl <== NOT EXECUTED
3000ca5c: e58d7000 str r7, [sp] <== NOT EXECUTED
3000ca60: e3a01001 mov r1, #1 <== NOT EXECUTED
3000ca64: e59f2218 ldr r2, [pc, #536] ; 3000cc84 <_Heap_Walk+0x61c> <== NOT EXECUTED
3000ca68: e1a03006 mov r3, r6 <== NOT EXECUTED
3000ca6c: e1a0e00f mov lr, pc <== NOT EXECUTED
3000ca70: e12fff19 bx r9 <== NOT EXECUTED
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
return false;
3000ca74: e3a00000 mov r0, #0 <== NOT EXECUTED
3000ca78: eaffff0e b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
return false;
}
if ( !prev_used ) {
(*printer)(
3000ca7c: e1a0000a mov r0, sl <== NOT EXECUTED
3000ca80: e3a01001 mov r1, #1 <== NOT EXECUTED
3000ca84: e59f21fc ldr r2, [pc, #508] ; 3000cc88 <_Heap_Walk+0x620> <== NOT EXECUTED
3000ca88: e1a03006 mov r3, r6 <== NOT EXECUTED
3000ca8c: e1a0e00f mov lr, pc <== NOT EXECUTED
3000ca90: e12fff19 bx r9 <== NOT EXECUTED
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
return false;
3000ca94: e1a0000b mov r0, fp <== NOT EXECUTED
3000ca98: eaffff06 b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
(*printer)(
3000ca9c: e1a0000a mov r0, sl <== NOT EXECUTED
3000caa0: e58d7000 str r7, [sp] <== NOT EXECUTED
3000caa4: e3a01001 mov r1, #1 <== NOT EXECUTED
3000caa8: e59f21dc ldr r2, [pc, #476] ; 3000cc8c <_Heap_Walk+0x624> <== NOT EXECUTED
3000caac: e1a03006 mov r3, r6 <== NOT EXECUTED
3000cab0: e1a0e00f mov lr, pc <== NOT EXECUTED
3000cab4: e12fff19 bx r9 <== NOT EXECUTED
"block 0x%08x: block size %u not page aligned\n",
block,
block_size
);
return false;
3000cab8: e3a00000 mov r0, #0 <== NOT EXECUTED
3000cabc: eafffefd b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
}
if ( block_size < min_block_size && is_not_last_block ) {
(*printer)(
3000cac0: e1a0000a mov r0, sl <== NOT EXECUTED
3000cac4: e88d1080 stm sp, {r7, ip} <== NOT EXECUTED
3000cac8: e3a01001 mov r1, #1 <== NOT EXECUTED
3000cacc: e59f21bc ldr r2, [pc, #444] ; 3000cc90 <_Heap_Walk+0x628> <== NOT EXECUTED
3000cad0: e1a03006 mov r3, r6 <== NOT EXECUTED
3000cad4: e1a0e00f mov lr, pc <== NOT EXECUTED
3000cad8: e12fff19 bx r9 <== NOT EXECUTED
block,
block_size,
min_block_size
);
return false;
3000cadc: e3a00000 mov r0, #0 <== NOT EXECUTED
3000cae0: eafffef4 b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
}
if ( next_block_begin <= block_begin && is_not_last_block ) {
(*printer)(
3000cae4: e1a0000a mov r0, sl <== NOT EXECUTED
3000cae8: e58d5000 str r5, [sp] <== NOT EXECUTED
3000caec: e3a01001 mov r1, #1 <== NOT EXECUTED
3000caf0: e59f219c ldr r2, [pc, #412] ; 3000cc94 <_Heap_Walk+0x62c> <== NOT EXECUTED
3000caf4: e1a03006 mov r3, r6 <== NOT EXECUTED
3000caf8: e1a0e00f mov lr, pc <== NOT EXECUTED
3000cafc: e12fff19 bx r9 <== NOT EXECUTED
"block 0x%08x: next block 0x%08x is not a successor\n",
block,
next_block
);
return false;
3000cb00: e3a00000 mov r0, #0 <== NOT EXECUTED
3000cb04: eafffeeb b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
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;
3000cb08: e594c024 ldr ip, [r4, #36] ; 0x24 <== NOT EXECUTED
3000cb0c: e15c0005 cmp ip, r5 <== NOT EXECUTED
3000cb10: 3affff52 bcc 3000c860 <_Heap_Walk+0x1f8> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
3000cb14: e2850008 add r0, r5, #8 <== NOT EXECUTED
3000cb18: e1a01007 mov r1, r7 <== NOT EXECUTED
3000cb1c: e58d3020 str r3, [sp, #32] <== NOT EXECUTED
3000cb20: e58dc01c str ip, [sp, #28] <== NOT EXECUTED
3000cb24: ebffe156 bl 30005084 <__umodsi3> <== NOT EXECUTED
);
return false;
}
if (
3000cb28: e3500000 cmp r0, #0 <== NOT EXECUTED
3000cb2c: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED
3000cb30: e59dc01c ldr ip, [sp, #28] <== NOT EXECUTED
3000cb34: 1a000034 bne 3000cc0c <_Heap_Walk+0x5a4> <== NOT EXECUTED
- 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;
3000cb38: e5952004 ldr r2, [r5, #4] <== NOT EXECUTED
3000cb3c: e3c22001 bic r2, r2, #1 <== NOT EXECUTED
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;
3000cb40: e0852002 add r2, r5, r2 <== NOT EXECUTED
3000cb44: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
3000cb48: e3120001 tst r2, #1 <== NOT EXECUTED
3000cb4c: 1a000026 bne 3000cbec <_Heap_Walk+0x584> <== NOT EXECUTED
3000cb50: e58d8030 str r8, [sp, #48] ; 0x30 <== NOT EXECUTED
3000cb54: e58db034 str fp, [sp, #52] ; 0x34 <== NOT EXECUTED
3000cb58: e1a01004 mov r1, r4 <== NOT EXECUTED
3000cb5c: e1a06005 mov r6, r5 <== NOT EXECUTED
3000cb60: e1a08003 mov r8, r3 <== NOT EXECUTED
3000cb64: e1a0b00c mov fp, ip <== NOT EXECUTED
3000cb68: ea000013 b 3000cbbc <_Heap_Walk+0x554> <== NOT EXECUTED
return false;
}
prev_block = free_block;
free_block = free_block->next;
3000cb6c: e5955008 ldr r5, [r5, #8] <== NOT EXECUTED
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 ) {
3000cb70: e1540005 cmp r4, r5 <== NOT EXECUTED
3000cb74: 0affff41 beq 3000c880 <_Heap_Walk+0x218> <== NOT EXECUTED
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;
3000cb78: e1550008 cmp r5, r8 <== NOT EXECUTED
3000cb7c: 3affff37 bcc 3000c860 <_Heap_Walk+0x1f8> <== NOT EXECUTED
3000cb80: e155000b cmp r5, fp <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
3000cb84: e2850008 add r0, r5, #8 <== NOT EXECUTED
3000cb88: e1a01007 mov r1, r7 <== NOT EXECUTED
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;
3000cb8c: 8affff33 bhi 3000c860 <_Heap_Walk+0x1f8> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
3000cb90: ebffe13b bl 30005084 <__umodsi3> <== NOT EXECUTED
);
return false;
}
if (
3000cb94: e3500000 cmp r0, #0 <== NOT EXECUTED
3000cb98: 1a00001b bne 3000cc0c <_Heap_Walk+0x5a4> <== NOT EXECUTED
- 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;
3000cb9c: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
3000cba0: e1a01006 mov r1, r6 <== NOT EXECUTED
3000cba4: e3c33001 bic r3, r3, #1 <== NOT EXECUTED
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;
3000cba8: e0833005 add r3, r3, r5 <== NOT EXECUTED
3000cbac: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
3000cbb0: e1a06005 mov r6, r5 <== NOT EXECUTED
3000cbb4: e3130001 tst r3, #1 <== NOT EXECUTED
3000cbb8: 1a00000b bne 3000cbec <_Heap_Walk+0x584> <== NOT EXECUTED
);
return false;
}
if ( free_block->prev != prev_block ) {
3000cbbc: e595200c ldr r2, [r5, #12] <== NOT EXECUTED
3000cbc0: e1520001 cmp r2, r1 <== NOT EXECUTED
3000cbc4: 0affffe8 beq 3000cb6c <_Heap_Walk+0x504> <== NOT EXECUTED
(*printer)(
3000cbc8: e58d2000 str r2, [sp] <== NOT EXECUTED
3000cbcc: e1a0000a mov r0, sl <== NOT EXECUTED
3000cbd0: e3a01001 mov r1, #1 <== NOT EXECUTED
3000cbd4: e59f20bc ldr r2, [pc, #188] ; 3000cc98 <_Heap_Walk+0x630> <== NOT EXECUTED
3000cbd8: e1a03005 mov r3, r5 <== NOT EXECUTED
3000cbdc: e1a0e00f mov lr, pc <== NOT EXECUTED
3000cbe0: e12fff19 bx r9 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
3000cbe4: e3a00000 mov r0, #0 <== NOT EXECUTED
3000cbe8: eafffeb2 b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
return false;
}
if ( _Heap_Is_used( free_block ) ) {
(*printer)(
3000cbec: e1a0000a mov r0, sl <== NOT EXECUTED
3000cbf0: e3a01001 mov r1, #1 <== NOT EXECUTED
3000cbf4: e59f20a0 ldr r2, [pc, #160] ; 3000cc9c <_Heap_Walk+0x634> <== NOT EXECUTED
3000cbf8: e1a03005 mov r3, r5 <== NOT EXECUTED
3000cbfc: e1a0e00f mov lr, pc <== NOT EXECUTED
3000cc00: e12fff19 bx r9 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
3000cc04: e3a00000 mov r0, #0 <== NOT EXECUTED
3000cc08: eafffeaa b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
}
if (
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
3000cc0c: e1a0000a mov r0, sl <== NOT EXECUTED
3000cc10: e3a01001 mov r1, #1 <== NOT EXECUTED
3000cc14: e59f2084 ldr r2, [pc, #132] ; 3000cca0 <_Heap_Walk+0x638> <== NOT EXECUTED
3000cc18: e1a03005 mov r3, r5 <== NOT EXECUTED
3000cc1c: e1a0e00f mov lr, pc <== NOT EXECUTED
3000cc20: e12fff19 bx r9 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
3000cc24: e3a00000 mov r0, #0 <== NOT EXECUTED
3000cc28: eafffea2 b 3000c6b8 <_Heap_Walk+0x50> <== NOT EXECUTED
3000c61c <_Heap_Walk_print>:
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
3000c61c: e92d000c push {r2, r3} <== NOT EXECUTED
3000c620: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
va_list ap;
if ( error ) {
3000c624: e31100ff tst r1, #255 ; 0xff <== NOT EXECUTED
{
/* Do nothing */
}
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
3000c628: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
3000c62c: e1a01000 mov r1, r0 <== NOT EXECUTED
va_list ap;
if ( error ) {
printk( "FAIL[%d]: ", source );
3000c630: 159f0028 ldrne r0, [pc, #40] ; 3000c660 <_Heap_Walk_print+0x44><== NOT EXECUTED
} else {
printk( "PASS[%d]: ", source );
3000c634: 059f0028 ldreq r0, [pc, #40] ; 3000c664 <_Heap_Walk_print+0x48><== NOT EXECUTED
3000c638: ebffed39 bl 30007b24 <printk> <== NOT EXECUTED
}
va_start( ap, fmt );
3000c63c: e28d300c add r3, sp, #12 <== NOT EXECUTED
vprintk( fmt, ap );
3000c640: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED
3000c644: e1a01003 mov r1, r3 <== NOT EXECUTED
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
3000c648: e58d3000 str r3, [sp] <== NOT EXECUTED
vprintk( fmt, ap );
3000c64c: ebfff787 bl 3000a470 <vprintk> <== NOT EXECUTED
va_end( ap );
}
3000c650: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000c654: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED
3000c658: e28dd008 add sp, sp, #8 <== NOT EXECUTED
3000c65c: e12fff1e bx lr <== NOT EXECUTED
3000c610 <_Heap_Walk_print_nothing>:
int source,
bool error,
const char *fmt,
...
)
{
3000c610: e92d000c push {r2, r3} <== NOT EXECUTED
/* Do nothing */
}
3000c614: e28dd008 add sp, sp, #8 <== NOT EXECUTED
3000c618: e12fff1e bx lr <== NOT EXECUTED
3000bc78 <_Internal_error_Occurred>:
void _Internal_error_Occurred(
Internal_errors_Source the_source,
bool is_internal,
Internal_errors_t the_error
)
{
3000bc78: e52de004 push {lr} ; (str lr, [sp, #-4]!)
3000bc7c: e24dd00c sub sp, sp, #12
3000bc80: e1a04000 mov r4, r0
3000bc84: e20160ff and r6, r1, #255 ; 0xff
Internal_errors_t error
)
{
User_extensions_Fatal_context ctx = { source, is_internal, error };
_User_extensions_Iterate( &ctx, _User_extensions_Fatal_visitor );
3000bc88: e1a0000d mov r0, sp
3000bc8c: e59f1040 ldr r1, [pc, #64] ; 3000bcd4 <_Internal_error_Occurred+0x5c>
3000bc90: e1a05002 mov r5, r2
Internal_errors_Source source,
bool is_internal,
Internal_errors_t error
)
{
User_extensions_Fatal_context ctx = { source, is_internal, error };
3000bc94: e58d2008 str r2, [sp, #8]
3000bc98: e58d4000 str r4, [sp]
3000bc9c: e5cd6004 strb r6, [sp, #4]
_User_extensions_Iterate( &ctx, _User_extensions_Fatal_visitor );
3000bca0: eb0007c1 bl 3000dbac <_User_extensions_Iterate>
_User_extensions_Fatal( the_source, is_internal, the_error );
_Internal_errors_What_happened.the_source = the_source;
3000bca4: e59f302c ldr r3, [pc, #44] ; 3000bcd8 <_Internal_error_Occurred+0x60><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _System_state_Set (
System_state_Codes state
)
{
_System_state_Current = state;
3000bca8: e3a02005 mov r2, #5 <== NOT EXECUTED
3000bcac: e5834000 str r4, [r3] <== NOT EXECUTED
_Internal_errors_What_happened.is_internal = is_internal;
3000bcb0: e5c36004 strb r6, [r3, #4] <== NOT EXECUTED
_Internal_errors_What_happened.the_error = the_error;
3000bcb4: e5835008 str r5, [r3, #8] <== NOT EXECUTED
3000bcb8: e59f301c ldr r3, [pc, #28] ; 3000bcdc <_Internal_error_Occurred+0x64><== NOT EXECUTED
3000bcbc: e5832000 str r2, [r3] <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000bcc0: e10f2000 mrs r2, CPSR <== NOT EXECUTED
3000bcc4: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED
3000bcc8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_System_state_Set( SYSTEM_STATE_FAILED );
_CPU_Fatal_halt( the_error );
3000bccc: e1a00005 mov r0, r5 <== NOT EXECUTED
3000bcd0: eafffffe b 3000bcd0 <_Internal_error_Occurred+0x58> <== NOT EXECUTED
3000bd94 <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
3000bd94: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
3000bd98: e5904034 ldr r4, [r0, #52] ; 0x34
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
3000bd9c: e24dd014 sub sp, sp, #20
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
3000bda0: e3540000 cmp r4, #0
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
3000bda4: e1a05000 mov r5, r0
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
minimum_index = _Objects_Get_index( information->minimum_id );
3000bda8: e1d070b8 ldrh r7, [r0, #8]
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
3000bdac: e1d081b0 ldrh r8, [r0, #16]
3000bdb0: 0a0000a0 beq 3000c038 <_Objects_Extend_information+0x2a4>
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
3000bdb4: e1d0a1b4 ldrh sl, [r0, #20]
3000bdb8: e1a00008 mov r0, r8
3000bdbc: e1a0100a mov r1, sl
3000bdc0: eb003b18 bl 3001aa28 <__aeabi_uidiv>
3000bdc4: e1a0b800 lsl fp, r0, #16
for ( ; block < block_count; block++ ) {
3000bdc8: e1b0b82b lsrs fp, fp, #16
3000bdcc: 0a0000a1 beq 3000c058 <_Objects_Extend_information+0x2c4>
if ( information->object_blocks[ block ] == NULL ) {
3000bdd0: e5949000 ldr r9, [r4]
3000bdd4: e1a0200a mov r2, sl
3000bdd8: e3590000 cmp r9, #0
3000bddc: 11a03004 movne r3, r4
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
minimum_index = _Objects_Get_index( information->minimum_id );
3000bde0: 11a06007 movne r6, r7
index_base = minimum_index;
block = 0;
3000bde4: 13a04000 movne r4, #0
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
minimum_index = _Objects_Get_index( information->minimum_id );
3000bde8: 01a06007 moveq r6, r7
index_base = minimum_index;
block = 0;
3000bdec: 01a04009 moveq r4, r9
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
if ( information->object_blocks[ block ] == NULL ) {
3000bdf0: 1a000003 bne 3000be04 <_Objects_Extend_information+0x70>
3000bdf4: ea000007 b 3000be18 <_Objects_Extend_information+0x84> <== NOT EXECUTED
3000bdf8: e5b39004 ldr r9, [r3, #4]!
3000bdfc: e3590000 cmp r9, #0
3000be00: 0a000004 beq 3000be18 <_Objects_Extend_information+0x84>
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
3000be04: e2844001 add r4, r4, #1
3000be08: e15b0004 cmp fp, r4
if ( information->object_blocks[ block ] == NULL ) {
do_extend = false;
break;
} else
index_base += information->allocation_size;
3000be0c: e086600a add r6, r6, sl
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
3000be10: 8afffff8 bhi 3000bdf8 <_Objects_Extend_information+0x64>
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
3000be14: e3a09001 mov r9, #1
} else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
3000be18: e0888002 add r8, r8, r2
/*
* 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 ) {
3000be1c: e3580801 cmp r8, #65536 ; 0x10000
3000be20: 2a000063 bcs 3000bfb4 <_Objects_Extend_information+0x220>
/*
* 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 ) {
3000be24: e5d53012 ldrb r3, [r5, #18]
/*
* 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;
3000be28: e5950018 ldr r0, [r5, #24]
if ( information->auto_extend ) {
3000be2c: e3530000 cmp r3, #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;
3000be30: e0000092 mul r0, r2, r0
if ( information->auto_extend ) {
3000be34: 1a000060 bne 3000bfbc <_Objects_Extend_information+0x228>
new_object_block = _Workspace_Allocate( block_size );
if ( !new_object_block )
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
3000be38: eb0008b6 bl 3000e118 <_Workspace_Allocate_or_fatal_error>
3000be3c: e58d0004 str r0, [sp, #4]
}
/*
* Do we need to grow the tables?
*/
if ( do_extend ) {
3000be40: e3590000 cmp r9, #0
3000be44: 0a000039 beq 3000bf30 <_Objects_Extend_information+0x19c>
*/
/*
* Up the block count and maximum
*/
block_count++;
3000be48: e28b9001 add r9, fp, #1
/*
* Allocate the tables and break it up.
*/
block_size = block_count *
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
3000be4c: e0890089 add r0, r9, r9, lsl #1
((maximum + minimum_index) * sizeof(Objects_Control *));
if ( information->auto_extend ) {
3000be50: e5d53012 ldrb r3, [r5, #18]
/*
* 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 *));
3000be54: e0880000 add r0, r8, r0
/*
* Allocate the tables and break it up.
*/
block_size = block_count *
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
3000be58: e0800007 add r0, r0, r7
((maximum + minimum_index) * sizeof(Objects_Control *));
if ( information->auto_extend ) {
3000be5c: e3530000 cmp r3, #0
block_count++;
/*
* Allocate the tables and break it up.
*/
block_size = block_count *
3000be60: e1a00100 lsl r0, r0, #2
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
((maximum + minimum_index) * sizeof(Objects_Control *));
if ( information->auto_extend ) {
3000be64: 0a000059 beq 3000bfd0 <_Objects_Extend_information+0x23c>
object_blocks = _Workspace_Allocate( block_size );
3000be68: eb0008a0 bl 3000e0f0 <_Workspace_Allocate>
if ( !object_blocks ) {
3000be6c: e250a000 subs sl, r0, #0
3000be70: 0a000075 beq 3000c04c <_Objects_Extend_information+0x2b8>
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
3000be74: e1d521b0 ldrh r2, [r5, #16]
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
3000be78: e08a3109 add r3, sl, r9, lsl #2
3000be7c: e1570002 cmp r7, r2
3000be80: e08a9189 add r9, sl, r9, lsl #3
3000be84: 3a000058 bcc 3000bfec <_Objects_Extend_information+0x258>
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
3000be88: e3570000 cmp r7, #0
3000be8c: 13a02000 movne r2, #0
3000be90: 11a01009 movne r1, r9
local_table[ index ] = NULL;
3000be94: 11a00002 movne r0, r2
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
3000be98: 0a000003 beq 3000beac <_Objects_Extend_information+0x118>
3000be9c: e2822001 add r2, r2, #1
3000bea0: e1570002 cmp r7, r2
local_table[ index ] = NULL;
3000bea4: e4810004 str r0, [r1], #4
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
3000bea8: 8afffffb bhi 3000be9c <_Objects_Extend_information+0x108>
3000beac: e1a0b10b lsl fp, fp, #2
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
3000beb0: e1d501b4 ldrh r0, [r5, #20]
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
3000beb4: e3a0c000 mov ip, #0
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
3000beb8: e0860000 add r0, r6, r0
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
3000bebc: e1560000 cmp r6, r0
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
3000bec0: e78ac00b str ip, [sl, fp]
inactive_per_block[block_count] = 0;
3000bec4: e783c00b str ip, [r3, fp]
for ( index=index_base ;
3000bec8: 2a000005 bcs 3000bee4 <_Objects_Extend_information+0x150>
3000becc: e0891106 add r1, r9, r6, lsl #2
* information - object information table
*
* Output parameters: NONE
*/
void _Objects_Extend_information(
3000bed0: e1a02006 mov r2, r6
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
index++ ) {
3000bed4: e2822001 add r2, r2, #1
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
3000bed8: e1500002 cmp r0, r2
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
3000bedc: e481c004 str ip, [r1], #4
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
3000bee0: 8afffffb bhi 3000bed4 <_Objects_Extend_information+0x140>
3000bee4: e10f2000 mrs r2, CPSR
3000bee8: e3821080 orr r1, r2, #128 ; 0x80
3000beec: e129f001 msr CPSR_fc, r1
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
3000bef0: e5951000 ldr r1, [r5]
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(
3000bef4: e1d500b4 ldrh r0, [r5, #4]
3000bef8: e1a01c01 lsl r1, r1, #24
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;
3000befc: e1a08808 lsl r8, r8, #16
3000bf00: e3811801 orr r1, r1, #65536 ; 0x10000
3000bf04: e1a08828 lsr r8, r8, #16
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
3000bf08: e1811d80 orr r1, r1, r0, lsl #27
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
3000bf0c: e1811008 orr r1, r1, r8
local_table[ index ] = NULL;
}
_ISR_Disable( level );
old_tables = information->object_blocks;
3000bf10: e5950034 ldr r0, [r5, #52] ; 0x34
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
3000bf14: e5853030 str r3, [r5, #48] ; 0x30
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
3000bf18: e585a034 str sl, [r5, #52] ; 0x34
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
3000bf1c: e585901c str r9, [r5, #28]
information->maximum = (Objects_Maximum) maximum;
3000bf20: e1c581b0 strh r8, [r5, #16]
information->maximum_id = _Objects_Build_id(
3000bf24: e585100c str r1, [r5, #12]
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000bf28: e129f002 msr CPSR_fc, r2
information->maximum
);
_ISR_Enable( level );
_Workspace_Free( old_tables );
3000bf2c: eb000875 bl 3000e108 <_Workspace_Free>
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
3000bf30: e5953034 ldr r3, [r5, #52] ; 0x34
3000bf34: e59d2004 ldr r2, [sp, #4]
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
3000bf38: e28d0008 add r0, sp, #8
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
3000bf3c: e7832104 str r2, [r3, r4, lsl #2]
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
3000bf40: e5953034 ldr r3, [r5, #52] ; 0x34
3000bf44: e1d521b4 ldrh r2, [r5, #20]
3000bf48: e7931104 ldr r1, [r3, r4, lsl #2]
3000bf4c: e5953018 ldr r3, [r5, #24]
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
3000bf50: e1a04104 lsl r4, r4, #2
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
3000bf54: ebfffcf6 bl 3000b334 <_Chain_Initialize>
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
3000bf58: e2857020 add r7, r5, #32
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
3000bf5c: ea000008 b 3000bf84 <_Objects_Extend_information+0x1f0>
3000bf60: e5952000 ldr r2, [r5]
the_object->id = _Objects_Build_id(
3000bf64: e1d5c0b4 ldrh ip, [r5, #4]
3000bf68: e1a02c02 lsl r2, r2, #24
3000bf6c: e3822801 orr r2, r2, #65536 ; 0x10000
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
3000bf70: e1822d8c orr r2, r2, ip, lsl #27
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
3000bf74: e1822006 orr r2, r2, r6
3000bf78: e5832008 str r2, [r3, #8]
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
3000bf7c: ebfffcd4 bl 3000b2d4 <_Chain_Append>
index++;
3000bf80: e2866001 add r6, r6, #1
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
3000bf84: e28d0008 add r0, sp, #8
3000bf88: ebfffcdc bl 3000b300 <_Chain_Get>
3000bf8c: e2503000 subs r3, r0, #0
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
3000bf90: e1a01003 mov r1, r3
3000bf94: e1a00007 mov r0, r7
/*
* Move from the local chain, initialise, then append to the inactive chain
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
3000bf98: 1afffff0 bne 3000bf60 <_Objects_Extend_information+0x1cc>
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
information->inactive =
(Objects_Maximum)(information->inactive + information->allocation_size);
3000bf9c: e1d522bc ldrh r2, [r5, #44] ; 0x2c
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
3000bfa0: e1d531b4 ldrh r3, [r5, #20]
3000bfa4: e5951030 ldr r1, [r5, #48] ; 0x30
information->inactive =
(Objects_Maximum)(information->inactive + information->allocation_size);
3000bfa8: e0832002 add r2, r3, r2
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
3000bfac: e7813004 str r3, [r1, r4]
information->inactive =
3000bfb0: e1c522bc strh r2, [r5, #44] ; 0x2c
(Objects_Maximum)(information->inactive + information->allocation_size);
}
3000bfb4: e28dd014 add sp, sp, #20
3000bfb8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
* 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 );
3000bfbc: eb00084b bl 3000e0f0 <_Workspace_Allocate>
if ( !new_object_block )
3000bfc0: e3500000 cmp r0, #0
3000bfc4: e58d0004 str r0, [sp, #4]
3000bfc8: 1affff9c bne 3000be40 <_Objects_Extend_information+0xac>
3000bfcc: eafffff8 b 3000bfb4 <_Objects_Extend_information+0x220>
if ( !object_blocks ) {
_Workspace_Free( new_object_block );
return;
}
} else {
object_blocks = _Workspace_Allocate_or_fatal_error( block_size );
3000bfd0: eb000850 bl 3000e118 <_Workspace_Allocate_or_fatal_error>
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
3000bfd4: e1d521b0 ldrh r2, [r5, #16]
if ( !object_blocks ) {
_Workspace_Free( new_object_block );
return;
}
} else {
object_blocks = _Workspace_Allocate_or_fatal_error( block_size );
3000bfd8: e1a0a000 mov sl, r0
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
3000bfdc: e1570002 cmp r7, r2
3000bfe0: e08a3109 add r3, sl, r9, lsl #2
3000bfe4: e08a9189 add r9, sl, r9, lsl #3
3000bfe8: 2affffa6 bcs 3000be88 <_Objects_Extend_information+0xf4>
/*
* 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,
3000bfec: e1a0b10b lsl fp, fp, #2
3000bff0: e5951034 ldr r1, [r5, #52] ; 0x34
3000bff4: e1a0200b mov r2, fp
3000bff8: e1a0000a mov r0, sl
3000bffc: e58d3000 str r3, [sp]
3000c000: eb0018d1 bl 3001234c <memcpy>
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
3000c004: e59d3000 ldr r3, [sp]
3000c008: e5951030 ldr r1, [r5, #48] ; 0x30
3000c00c: e1a00003 mov r0, r3
3000c010: e1a0200b mov r2, fp
3000c014: eb0018cc bl 3001234c <memcpy>
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
information->local_table,
(information->maximum + minimum_index) * sizeof(Objects_Control *) );
3000c018: e1d521b0 ldrh r2, [r5, #16]
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
3000c01c: e1a00009 mov r0, r9
information->local_table,
(information->maximum + minimum_index) * sizeof(Objects_Control *) );
3000c020: e0872002 add r2, r7, r2
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
3000c024: e595101c ldr r1, [r5, #28]
3000c028: e1a02102 lsl r2, r2, #2
3000c02c: eb0018c6 bl 3001234c <memcpy>
3000c030: e59d3000 ldr r3, [sp]
3000c034: eaffff9d b 3000beb0 <_Objects_Extend_information+0x11c>
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
3000c038: e1d021b4 ldrh r2, [r0, #20]
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
minimum_index = _Objects_Get_index( information->minimum_id );
3000c03c: e1a06007 mov r6, r7
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
3000c040: e3a09001 mov r9, #1
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
block_count = 0;
3000c044: e1a0b004 mov fp, r4
3000c048: eaffff72 b 3000be18 <_Objects_Extend_information+0x84>
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
((maximum + minimum_index) * sizeof(Objects_Control *));
if ( information->auto_extend ) {
object_blocks = _Workspace_Allocate( block_size );
if ( !object_blocks ) {
_Workspace_Free( new_object_block );
3000c04c: e59d0004 ldr r0, [sp, #4]
3000c050: eb00082c bl 3000e108 <_Workspace_Free>
return;
3000c054: eaffffd6 b 3000bfb4 <_Objects_Extend_information+0x220>
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
3000c058: e1a0200a mov r2, sl <== NOT EXECUTED
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
minimum_index = _Objects_Get_index( information->minimum_id );
3000c05c: e1a06007 mov r6, r7 <== NOT EXECUTED
/*
* Search for a free block of indexes. If we do NOT need to allocate or
* extend the block table, then we will change do_extend.
*/
do_extend = true;
3000c060: e3a09001 mov r9, #1 <== NOT EXECUTED
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
3000c064: e1a0400b mov r4, fp <== NOT EXECUTED
3000c068: eaffff6a b 3000be18 <_Objects_Extend_information+0x84> <== NOT EXECUTED
3000c1c8 <_Objects_Get>:
* always NULL.
*
* If the Id is valid but the object has not been created yet, then
* the local_table entry will be NULL.
*/
index = id - information->minimum_id + 1;
3000c1c8: e590c008 ldr ip, [r0, #8]
Objects_Control *_Objects_Get(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
3000c1cc: e52de004 push {lr} ; (str lr, [sp, #-4]!)
/*
* If the index is less than maximum, then it is OK to use it to
* index into the local_table array.
*/
if ( index <= information->maximum ) {
3000c1d0: e1d031b0 ldrh r3, [r0, #16]
* always NULL.
*
* If the Id is valid but the object has not been created yet, then
* the local_table entry will be NULL.
*/
index = id - information->minimum_id + 1;
3000c1d4: e26cc001 rsb ip, ip, #1
3000c1d8: e08c1001 add r1, ip, r1
/*
* If the index is less than maximum, then it is OK to use it to
* index into the local_table array.
*/
if ( index <= information->maximum ) {
3000c1dc: e1510003 cmp r1, r3
/*
* Object Id is not within this API and Class on this node. So
* it may be global in a multiprocessing system. But it is clearly
* invalid on a single processor system.
*/
*location = OBJECTS_ERROR;
3000c1e0: 83a03001 movhi r3, #1
Objects_Control *_Objects_Get(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
3000c1e4: e24dd008 sub sp, sp, #8
/*
* Object Id is not within this API and Class on this node. So
* it may be global in a multiprocessing system. But it is clearly
* invalid on a single processor system.
*/
*location = OBJECTS_ERROR;
3000c1e8: 85823000 strhi r3, [r2]
#if defined(RTEMS_MULTIPROCESSING)
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
#else
return NULL;
3000c1ec: 83a00000 movhi r0, #0
/*
* If the index is less than maximum, then it is OK to use it to
* index into the local_table array.
*/
if ( index <= information->maximum ) {
3000c1f0: 8a000009 bhi 3000c21c <_Objects_Get+0x54>
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000c1f4: e59f3048 ldr r3, [pc, #72] ; 3000c244 <_Objects_Get+0x7c>
3000c1f8: e593c000 ldr ip, [r3]
++level;
3000c1fc: e28cc001 add ip, ip, #1
_Thread_Dispatch_disable_level = level;
3000c200: e583c000 str ip, [r3]
_Thread_Disable_dispatch();
if ( (the_object = information->local_table[ index ]) != NULL ) {
3000c204: e590301c ldr r3, [r0, #28]
3000c208: e7930101 ldr r0, [r3, r1, lsl #2]
3000c20c: e3500000 cmp r0, #0
*location = OBJECTS_LOCAL;
3000c210: 13a03000 movne r3, #0
3000c214: 15823000 strne r3, [r2]
* If the index is less than maximum, then it is OK to use it to
* index into the local_table array.
*/
if ( index <= information->maximum ) {
_Thread_Disable_dispatch();
if ( (the_object = information->local_table[ index ]) != NULL ) {
3000c218: 0a000001 beq 3000c224 <_Objects_Get+0x5c>
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
#else
return NULL;
#endif
}
3000c21c: e28dd008 add sp, sp, #8
3000c220: e8bd8000 pop {pc}
/*
* Valid Id for this API, Class and Node but the object has not
* been allocated yet.
*/
_Thread_Enable_dispatch();
3000c224: e58d0004 str r0, [sp, #4] <== NOT EXECUTED
3000c228: e58d2000 str r2, [sp] <== NOT EXECUTED
3000c22c: eb0003a4 bl 3000d0c4 <_Thread_Enable_dispatch> <== NOT EXECUTED
*location = OBJECTS_ERROR;
3000c230: e59d2000 ldr r2, [sp] <== NOT EXECUTED
3000c234: e3a03001 mov r3, #1 <== NOT EXECUTED
3000c238: e5823000 str r3, [r2] <== NOT EXECUTED
return NULL;
3000c23c: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED
3000c240: eafffff5 b 3000c21c <_Objects_Get+0x54> <== NOT EXECUTED
3000c0f4 <_Objects_Get_information>:
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint16_t the_class
)
{
3000c0f4: e1a01801 lsl r1, r1, #16
3000c0f8: e92d4030 push {r4, r5, lr}
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
3000c0fc: e1b04821 lsrs r4, r1, #16
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint16_t the_class
)
{
3000c100: e1a05000 mov r5, r0
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
return NULL;
3000c104: 01a00004 moveq r0, r4
)
{
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
3000c108: 08bd8030 popeq {r4, r5, pc}
/*
* 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 );
3000c10c: eb00107a bl 300102fc <_Objects_API_maximum_class>
if ( the_class_api_maximum == 0 )
3000c110: e3500000 cmp r0, #0
3000c114: 08bd8030 popeq {r4, r5, pc}
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
3000c118: e1500004 cmp r0, r4
3000c11c: 3a00000a bcc 3000c14c <_Objects_Get_information+0x58>
return NULL;
if ( !_Objects_Information_table[ the_api ] )
3000c120: e59f302c ldr r3, [pc, #44] ; 3000c154 <_Objects_Get_information+0x60>
3000c124: e7930105 ldr r0, [r3, r5, lsl #2]
3000c128: e3500000 cmp r0, #0
3000c12c: 08bd8030 popeq {r4, r5, pc}
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
3000c130: e7900104 ldr r0, [r0, r4, lsl #2]
if ( !info )
3000c134: e3500000 cmp r0, #0
3000c138: 08bd8030 popeq {r4, r5, pc}
* 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 )
3000c13c: e1d031b0 ldrh r3, [r0, #16]
return NULL;
3000c140: e3530000 cmp r3, #0
3000c144: 03a00000 moveq r0, #0
3000c148: e8bd8030 pop {r4, r5, pc}
the_class_api_maximum = _Objects_API_maximum_class( the_api );
if ( the_class_api_maximum == 0 )
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
return NULL;
3000c14c: e3a00000 mov r0, #0 <== NOT EXECUTED
if ( info->maximum == 0 )
return NULL;
#endif
return info;
}
3000c150: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
3000c158 <_Objects_Get_isr_disable>:
{
Objects_Control *the_object;
uint32_t index;
ISR_Level level;
index = id - information->minimum_id + 1;
3000c158: e590c008 ldr ip, [r0, #8]
Objects_Information *information,
Objects_Id id,
Objects_Locations *location,
ISR_Level *level_p
)
{
3000c15c: e52d4004 push {r4} ; (str r4, [sp, #-4]!)
Objects_Control *the_object;
uint32_t index;
ISR_Level level;
index = id - information->minimum_id + 1;
3000c160: e26cc001 rsb ip, ip, #1
3000c164: e08cc001 add ip, ip, r1
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000c168: e10f4000 mrs r4, CPSR
3000c16c: e3841080 orr r1, r4, #128 ; 0x80
3000c170: e129f001 msr CPSR_fc, r1
_ISR_Disable( level );
if ( information->maximum >= index ) {
3000c174: e1d011b0 ldrh r1, [r0, #16]
3000c178: e15c0001 cmp ip, r1
3000c17c: 8a000008 bhi 3000c1a4 <_Objects_Get_isr_disable+0x4c>
if ( (the_object = information->local_table[ index ]) != NULL ) {
3000c180: e590101c ldr r1, [r0, #28]
3000c184: e791010c ldr r0, [r1, ip, lsl #2]
3000c188: e3500000 cmp r0, #0
*location = OBJECTS_LOCAL;
3000c18c: 13a01000 movne r1, #0
3000c190: 15821000 strne r1, [r2]
*level_p = level;
3000c194: 15834000 strne r4, [r3]
index = id - information->minimum_id + 1;
_ISR_Disable( level );
if ( information->maximum >= index ) {
if ( (the_object = information->local_table[ index ]) != NULL ) {
3000c198: 0a000006 beq 3000c1b8 <_Objects_Get_isr_disable+0x60>
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
#else
return NULL;
#endif
}
3000c19c: e8bd0010 pop {r4}
3000c1a0: e12fff1e bx lr
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000c1a4: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Enable( level );
*location = OBJECTS_ERROR;
return NULL;
}
_ISR_Enable( level );
*location = OBJECTS_ERROR;
3000c1a8: e3a03001 mov r3, #1 <== NOT EXECUTED
3000c1ac: e5823000 str r3, [r2] <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
#else
return NULL;
3000c1b0: e3a00000 mov r0, #0 <== NOT EXECUTED
3000c1b4: eafffff8 b 3000c19c <_Objects_Get_isr_disable+0x44> <== NOT EXECUTED
3000c1b8: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
*location = OBJECTS_LOCAL;
*level_p = level;
return the_object;
}
_ISR_Enable( level );
*location = OBJECTS_ERROR;
3000c1bc: e3a03001 mov r3, #1 <== NOT EXECUTED
3000c1c0: e5823000 str r3, [r2] <== NOT EXECUTED
return NULL;
3000c1c4: eafffff4 b 3000c19c <_Objects_Get_isr_disable+0x44> <== NOT EXECUTED
30018cf0 <_Objects_Get_name_as_string>:
char *_Objects_Get_name_as_string(
Objects_Id id,
size_t length,
char *name
)
{
30018cf0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
char lname[5];
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
30018cf4: e2515000 subs r5, r1, #0 <== NOT EXECUTED
char *_Objects_Get_name_as_string(
Objects_Id id,
size_t length,
char *name
)
{
30018cf8: e1a04002 mov r4, r2 <== NOT EXECUTED
30018cfc: e24dd00c sub sp, sp, #12 <== NOT EXECUTED
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
return NULL;
30018d00: 01a04005 moveq r4, r5 <== NOT EXECUTED
char lname[5];
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
30018d04: 0a000034 beq 30018ddc <_Objects_Get_name_as_string+0xec> <== NOT EXECUTED
return NULL;
if ( name == NULL )
30018d08: e3540000 cmp r4, #0 <== NOT EXECUTED
30018d0c: 0a000032 beq 30018ddc <_Objects_Get_name_as_string+0xec> <== NOT EXECUTED
return NULL;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
30018d10: e3500000 cmp r0, #0 <== NOT EXECUTED
30018d14: 059f30d4 ldreq r3, [pc, #212] ; 30018df0 <_Objects_Get_name_as_string+0x100><== NOT EXECUTED
30018d18: 11a06000 movne r6, r0 <== NOT EXECUTED
30018d1c: 05933008 ldreq r3, [r3, #8] <== NOT EXECUTED
30018d20: 05936008 ldreq r6, [r3, #8] <== NOT EXECUTED
information = _Objects_Get_information_id( tmpId );
30018d24: e1a00006 mov r0, r6 <== NOT EXECUTED
30018d28: ebffe392 bl 30011b78 <_Objects_Get_information_id> <== NOT EXECUTED
if ( !information )
30018d2c: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return NULL;
30018d30: 01a04003 moveq r4, r3 <== NOT EXECUTED
return NULL;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
information = _Objects_Get_information_id( tmpId );
if ( !information )
30018d34: 0a000028 beq 30018ddc <_Objects_Get_name_as_string+0xec> <== NOT EXECUTED
return NULL;
the_object = _Objects_Get( information, tmpId, &location );
30018d38: e1a01006 mov r1, r6 <== NOT EXECUTED
30018d3c: e28d2008 add r2, sp, #8 <== NOT EXECUTED
30018d40: ebffe3c6 bl 30011c60 <_Objects_Get> <== NOT EXECUTED
switch ( location ) {
30018d44: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED
30018d48: e3530000 cmp r3, #0 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
/* not supported */
#endif
case OBJECTS_ERROR:
return NULL;
30018d4c: 13a04000 movne r4, #0 <== NOT EXECUTED
information = _Objects_Get_information_id( tmpId );
if ( !information )
return NULL;
the_object = _Objects_Get( information, tmpId, &location );
switch ( location ) {
30018d50: 1a000021 bne 30018ddc <_Objects_Get_name_as_string+0xec> <== NOT EXECUTED
if ( information->is_string ) {
s = the_object->name.name_p;
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
30018d54: e590100c ldr r1, [r0, #12] <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
30018d58: e3550001 cmp r5, #1 <== NOT EXECUTED
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
30018d5c: e1a02c21 lsr r2, r1, #24 <== NOT EXECUTED
lname[ 1 ] = (u32_name >> 16) & 0xff;
30018d60: e1a0c821 lsr ip, r1, #16 <== NOT EXECUTED
lname[ 2 ] = (u32_name >> 8) & 0xff;
30018d64: e1a00421 lsr r0, r1, #8 <== NOT EXECUTED
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
30018d68: e5cd2000 strb r2, [sp] <== NOT EXECUTED
lname[ 1 ] = (u32_name >> 16) & 0xff;
30018d6c: e5cdc001 strb ip, [sp, #1] <== NOT EXECUTED
lname[ 2 ] = (u32_name >> 8) & 0xff;
30018d70: e5cd0002 strb r0, [sp, #2] <== NOT EXECUTED
lname[ 3 ] = (u32_name >> 0) & 0xff;
30018d74: e5cd1003 strb r1, [sp, #3] <== NOT EXECUTED
lname[ 4 ] = '\0';
30018d78: e5cd3004 strb r3, [sp, #4] <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
30018d7c: 0a000019 beq 30018de8 <_Objects_Get_name_as_string+0xf8> <== NOT EXECUTED
30018d80: e3520000 cmp r2, #0 <== NOT EXECUTED
30018d84: 0a000017 beq 30018de8 <_Objects_Get_name_as_string+0xf8> <== NOT EXECUTED
* This method objects the name of an object and returns its name
* in the form of a C string. It attempts to be careful about
* overflowing the user's string and about returning unprintable characters.
*/
char *_Objects_Get_name_as_string(
30018d88: e24d0002 sub r0, sp, #2 <== NOT EXECUTED
30018d8c: e59fc060 ldr ip, [pc, #96] ; 30018df4 <_Objects_Get_name_as_string+0x104><== NOT EXECUTED
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';
s = lname;
30018d90: e1a0100d mov r1, sp <== NOT EXECUTED
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
30018d94: e1a03004 mov r3, r4 <== NOT EXECUTED
* This method objects the name of an object and returns its name
* in the form of a C string. It attempts to be careful about
* overflowing the user's string and about returning unprintable characters.
*/
char *_Objects_Get_name_as_string(
30018d98: e0805005 add r5, r0, r5 <== NOT EXECUTED
30018d9c: ea000002 b 30018dac <_Objects_Get_name_as_string+0xbc> <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
30018da0: e5f12001 ldrb r2, [r1, #1]! <== NOT EXECUTED
30018da4: e3520000 cmp r2, #0 <== NOT EXECUTED
30018da8: 0a000008 beq 30018dd0 <_Objects_Get_name_as_string+0xe0> <== NOT EXECUTED
*d = (isprint((unsigned char)*s)) ? *s : '*';
30018dac: e59c0000 ldr r0, [ip] <== NOT EXECUTED
30018db0: e0800002 add r0, r0, r2 <== NOT EXECUTED
30018db4: e5d00001 ldrb r0, [r0, #1] <== NOT EXECUTED
30018db8: e3100097 tst r0, #151 ; 0x97 <== NOT EXECUTED
30018dbc: 03a0202a moveq r2, #42 ; 0x2a <== NOT EXECUTED
30018dc0: e4c32001 strb r2, [r3], #1 <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
30018dc4: e1510005 cmp r1, r5 <== NOT EXECUTED
30018dc8: e1a00003 mov r0, r3 <== NOT EXECUTED
30018dcc: 1afffff3 bne 30018da0 <_Objects_Get_name_as_string+0xb0> <== NOT EXECUTED
*d = (isprint((unsigned char)*s)) ? *s : '*';
}
}
*d = '\0';
30018dd0: e3a03000 mov r3, #0 <== NOT EXECUTED
30018dd4: e5c03000 strb r3, [r0] <== NOT EXECUTED
_Thread_Enable_dispatch();
30018dd8: ebffe782 bl 30012be8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return name;
}
return NULL; /* unreachable path */
}
30018ddc: e1a00004 mov r0, r4 <== NOT EXECUTED
30018de0: e28dd00c add sp, sp, #12 <== NOT EXECUTED
30018de4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
30018de8: e1a00004 mov r0, r4 <== NOT EXECUTED
30018dec: eafffff7 b 30018dd0 <_Objects_Get_name_as_string+0xe0> <== NOT EXECUTED
3001b1e8 <_Objects_Get_next>:
Objects_Information *information,
Objects_Id id,
Objects_Locations *location_p,
Objects_Id *next_id_p
)
{
3001b1e8: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
Objects_Control *object;
Objects_Id next_id;
if ( !information )
3001b1ec: e2505000 subs r5, r0, #0 <== NOT EXECUTED
Objects_Information *information,
Objects_Id id,
Objects_Locations *location_p,
Objects_Id *next_id_p
)
{
3001b1f0: e1a04002 mov r4, r2 <== NOT EXECUTED
3001b1f4: e1a08003 mov r8, r3 <== NOT EXECUTED
Objects_Control *object;
Objects_Id next_id;
if ( !information )
return NULL;
3001b1f8: 01a00005 moveq r0, r5 <== NOT EXECUTED
)
{
Objects_Control *object;
Objects_Id next_id;
if ( !information )
3001b1fc: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
return NULL;
if ( !location_p )
3001b200: e3520000 cmp r2, #0 <== NOT EXECUTED
return NULL;
3001b204: 01a00002 moveq r0, r2 <== NOT EXECUTED
Objects_Id next_id;
if ( !information )
return NULL;
if ( !location_p )
3001b208: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
return NULL;
if ( !next_id_p )
3001b20c: e3530000 cmp r3, #0 <== NOT EXECUTED
3001b210: 0a000016 beq 3001b270 <_Objects_Get_next+0x88> <== NOT EXECUTED
return NULL;
if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX)
3001b214: e1b03801 lsls r3, r1, #16 <== NOT EXECUTED
next_id = information->minimum_id;
3001b218: 05956008 ldreq r6, [r5, #8] <== NOT EXECUTED
else
next_id = id;
3001b21c: 11a06001 movne r6, r1 <== NOT EXECUTED
do {
/* walked off end of list? */
if (_Objects_Get_index(next_id) > information->maximum)
3001b220: e1d5c1b0 ldrh ip, [r5, #16] <== NOT EXECUTED
3001b224: e1a07806 lsl r7, r6, #16 <== NOT EXECUTED
3001b228: e15c0827 cmp ip, r7, lsr #16 <== NOT EXECUTED
*location_p = OBJECTS_ERROR;
goto final;
}
/* try to grab one */
object = _Objects_Get(information, next_id, location_p);
3001b22c: e1a01006 mov r1, r6 <== NOT EXECUTED
3001b230: e1a00005 mov r0, r5 <== NOT EXECUTED
3001b234: e1a02004 mov r2, r4 <== NOT EXECUTED
else
next_id = id;
do {
/* walked off end of list? */
if (_Objects_Get_index(next_id) > information->maximum)
3001b238: 3a000006 bcc 3001b258 <_Objects_Get_next+0x70> <== NOT EXECUTED
*location_p = OBJECTS_ERROR;
goto final;
}
/* try to grab one */
object = _Objects_Get(information, next_id, location_p);
3001b23c: ebffda87 bl 30011c60 <_Objects_Get> <== NOT EXECUTED
next_id++;
} while (*location_p != OBJECTS_LOCAL);
3001b240: e5943000 ldr r3, [r4] <== NOT EXECUTED
}
/* try to grab one */
object = _Objects_Get(information, next_id, location_p);
next_id++;
3001b244: e2866001 add r6, r6, #1 <== NOT EXECUTED
} while (*location_p != OBJECTS_LOCAL);
3001b248: e3530000 cmp r3, #0 <== NOT EXECUTED
3001b24c: 1afffff3 bne 3001b220 <_Objects_Get_next+0x38> <== NOT EXECUTED
*next_id_p = next_id;
3001b250: e5886000 str r6, [r8] <== NOT EXECUTED
return object;
3001b254: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
do {
/* walked off end of list? */
if (_Objects_Get_index(next_id) > information->maximum)
{
*location_p = OBJECTS_ERROR;
3001b258: e3a03001 mov r3, #1 <== NOT EXECUTED
3001b25c: e5843000 str r3, [r4] <== NOT EXECUTED
*next_id_p = next_id;
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
3001b260: e3e03000 mvn r3, #0 <== NOT EXECUTED
return 0;
3001b264: e3a00000 mov r0, #0 <== NOT EXECUTED
*next_id_p = next_id;
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
3001b268: e5883000 str r3, [r8] <== NOT EXECUTED
return 0;
3001b26c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
if ( !location_p )
return NULL;
if ( !next_id_p )
return NULL;
3001b270: e1a00003 mov r0, r3 <== NOT EXECUTED
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
return 0;
}
3001b274: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
30011ce0 <_Objects_Id_to_name>:
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
30011ce0: e3500000 cmp r0, #0
30011ce4: 059f3078 ldreq r3, [pc, #120] ; 30011d64 <_Objects_Id_to_name+0x84>
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
30011ce8: e92d4010 push {r4, lr}
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
30011cec: 05933008 ldreq r3, [r3, #8]
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
30011cf0: e1a04001 mov r4, r1
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
30011cf4: 05931008 ldreq r1, [r3, #8]
30011cf8: 11a01000 movne r1, r0
30011cfc: e1a03c21 lsr r3, r1, #24
30011d00: e2033007 and r3, r3, #7
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
30011d04: e2432001 sub r2, r3, #1
30011d08: e3520002 cmp r2, #2
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
30011d0c: e24dd004 sub sp, sp, #4
30011d10: 8a000010 bhi 30011d58 <_Objects_Id_to_name+0x78>
the_api = _Objects_Get_API( tmpId );
if ( !_Objects_Is_api_valid( the_api ) )
return OBJECTS_INVALID_ID;
if ( !_Objects_Information_table[ the_api ] )
30011d14: e59f204c ldr r2, [pc, #76] ; 30011d68 <_Objects_Id_to_name+0x88>
30011d18: e7923103 ldr r3, [r2, r3, lsl #2]
30011d1c: e3530000 cmp r3, #0
30011d20: 0a00000c beq 30011d58 <_Objects_Id_to_name+0x78>
*/
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(
Objects_Id id
)
{
return (uint32_t)
30011d24: e1a02da1 lsr r2, r1, #27
return OBJECTS_INVALID_ID;
the_class = _Objects_Get_class( tmpId );
information = _Objects_Information_table[ the_api ][ the_class ];
30011d28: e7930102 ldr r0, [r3, r2, lsl #2]
if ( !information )
30011d2c: e3500000 cmp r0, #0
30011d30: 0a000008 beq 30011d58 <_Objects_Id_to_name+0x78>
#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 );
30011d34: e1a0200d mov r2, sp
30011d38: ebffffc8 bl 30011c60 <_Objects_Get>
if ( !the_object )
30011d3c: e3500000 cmp r0, #0
30011d40: 0a000004 beq 30011d58 <_Objects_Id_to_name+0x78>
return OBJECTS_INVALID_ID;
*name = the_object->name;
30011d44: e590300c ldr r3, [r0, #12]
30011d48: e5843000 str r3, [r4]
_Thread_Enable_dispatch();
30011d4c: eb0003a5 bl 30012be8 <_Thread_Enable_dispatch>
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
30011d50: e3a00000 mov r0, #0
30011d54: ea000000 b 30011d5c <_Objects_Id_to_name+0x7c>
the_api = _Objects_Get_API( tmpId );
if ( !_Objects_Is_api_valid( the_api ) )
return OBJECTS_INVALID_ID;
if ( !_Objects_Information_table[ the_api ] )
return OBJECTS_INVALID_ID;
30011d58: e3a00003 mov r0, #3 <== NOT EXECUTED
return OBJECTS_INVALID_ID;
*name = the_object->name;
_Thread_Enable_dispatch();
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
}
30011d5c: e28dd004 add sp, sp, #4
30011d60: e8bd8010 pop {r4, pc}
3000c31c <_Objects_Name_to_id_u32>:
Objects_Name name_for_mp;
#endif
/* ASSERT: information->is_string == false */
if ( !id )
3000c31c: e3530000 cmp r3, #0
Objects_Information *information,
uint32_t name,
uint32_t node,
Objects_Id *id
)
{
3000c320: e92d0030 push {r4, r5}
#endif
/* ASSERT: information->is_string == false */
if ( !id )
return OBJECTS_INVALID_ADDRESS;
3000c324: 03a00002 moveq r0, #2
Objects_Name name_for_mp;
#endif
/* ASSERT: information->is_string == false */
if ( !id )
3000c328: 0a000013 beq 3000c37c <_Objects_Name_to_id_u32+0x60>
return OBJECTS_INVALID_ADDRESS;
if ( name == 0 )
3000c32c: e3510000 cmp r1, #0
3000c330: 0a000010 beq 3000c378 <_Objects_Name_to_id_u32+0x5c>
return OBJECTS_INVALID_NAME;
search_local_node = false;
if ( information->maximum != 0 &&
3000c334: e1d051b0 ldrh r5, [r0, #16]
3000c338: e3550000 cmp r5, #0
3000c33c: 0a00000d beq 3000c378 <_Objects_Name_to_id_u32+0x5c>
3000c340: e3720106 cmn r2, #-2147483647 ; 0x80000001
3000c344: 13520000 cmpne r2, #0
3000c348: 1a00000d bne 3000c384 <_Objects_Name_to_id_u32+0x68>
_Objects_Is_local_node( node )
))
search_local_node = true;
if ( search_local_node ) {
for ( index = 1; index <= information->maximum; index++ ) {
3000c34c: e590c01c ldr ip, [r0, #28]
3000c350: e3a02001 mov r2, #1
the_object = information->local_table[ index ];
3000c354: e5bc0004 ldr r0, [ip, #4]!
_Objects_Is_local_node( node )
))
search_local_node = true;
if ( search_local_node ) {
for ( index = 1; index <= information->maximum; index++ ) {
3000c358: e2822001 add r2, r2, #1
the_object = information->local_table[ index ];
if ( !the_object )
3000c35c: e3500000 cmp r0, #0
3000c360: 0a000002 beq 3000c370 <_Objects_Name_to_id_u32+0x54>
continue;
if ( name == the_object->name.name_u32 ) {
3000c364: e590400c ldr r4, [r0, #12]
3000c368: e1540001 cmp r4, r1
3000c36c: 0a000007 beq 3000c390 <_Objects_Name_to_id_u32+0x74>
_Objects_Is_local_node( node )
))
search_local_node = true;
if ( search_local_node ) {
for ( index = 1; index <= information->maximum; index++ ) {
3000c370: e1550002 cmp r5, r2
3000c374: 2afffff6 bcs 3000c354 <_Objects_Name_to_id_u32+0x38>
return OBJECTS_INVALID_NAME;
name_for_mp.name_u32 = name;
return _Objects_MP_Global_name_search( information, name_for_mp, node, id );
#else
return OBJECTS_INVALID_NAME;
3000c378: e3a00001 mov r0, #1
#endif
}
3000c37c: e8bd0030 pop {r4, r5}
3000c380: e12fff1e bx lr
search_local_node = false;
if ( information->maximum != 0 &&
(node == OBJECTS_SEARCH_ALL_NODES ||
node == OBJECTS_SEARCH_LOCAL_NODE ||
3000c384: e3520001 cmp r2, #1 <== NOT EXECUTED
3000c388: 1afffffa bne 3000c378 <_Objects_Name_to_id_u32+0x5c> <== NOT EXECUTED
3000c38c: eaffffee b 3000c34c <_Objects_Name_to_id_u32+0x30> <== NOT EXECUTED
the_object = information->local_table[ index ];
if ( !the_object )
continue;
if ( name == the_object->name.name_u32 ) {
*id = the_object->id;
3000c390: e5902008 ldr r2, [r0, #8]
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
3000c394: e3a00000 mov r0, #0
the_object = information->local_table[ index ];
if ( !the_object )
continue;
if ( name == the_object->name.name_u32 ) {
*id = the_object->id;
3000c398: e5832000 str r2, [r3]
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
3000c39c: eafffff6 b 3000c37c <_Objects_Name_to_id_u32+0x60>
3000e2cc <_Objects_Set_name>:
{
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
3000e2cc: e1d033b8 ldrh r3, [r0, #56] ; 0x38 <== NOT EXECUTED
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
3000e2d0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
3000e2d4: e1a00002 mov r0, r2 <== NOT EXECUTED
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
3000e2d8: e1a05001 mov r5, r1 <== NOT EXECUTED
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
3000e2dc: e1a01003 mov r1, r3 <== NOT EXECUTED
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
3000e2e0: e1a04002 mov r4, r2 <== NOT EXECUTED
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
3000e2e4: eb001be5 bl 30015280 <strnlen> <== NOT EXECUTED
d[length] = '\0';
the_object->name.name_p = d;
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
3000e2e8: e5d42000 ldrb r2, [r4] <== NOT EXECUTED
3000e2ec: e3500001 cmp r0, #1 <== NOT EXECUTED
3000e2f0: e1a02c02 lsl r2, r2, #24 <== NOT EXECUTED
3000e2f4: 9a00000c bls 3000e32c <_Objects_Set_name+0x60> <== NOT EXECUTED
3000e2f8: e5d43001 ldrb r3, [r4, #1] <== NOT EXECUTED
3000e2fc: e3500002 cmp r0, #2 <== NOT EXECUTED
3000e300: e1822803 orr r2, r2, r3, lsl #16 <== NOT EXECUTED
3000e304: 0a000009 beq 3000e330 <_Objects_Set_name+0x64> <== NOT EXECUTED
3000e308: e5d43002 ldrb r3, [r4, #2] <== NOT EXECUTED
3000e30c: e3500003 cmp r0, #3 <== NOT EXECUTED
3000e310: e1822403 orr r2, r2, r3, lsl #8 <== NOT EXECUTED
3000e314: 15d43003 ldrbne r3, [r4, #3] <== NOT EXECUTED
3000e318: 03a03020 moveq r3, #32 <== NOT EXECUTED
3000e31c: e1823003 orr r3, r2, r3 <== NOT EXECUTED
3000e320: e585300c str r3, [r5, #12] <== NOT EXECUTED
);
}
return true;
}
3000e324: e3a00001 mov r0, #1 <== NOT EXECUTED
3000e328: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
d[length] = '\0';
the_object->name.name_p = d;
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
3000e32c: e3822602 orr r2, r2, #2097152 ; 0x200000 <== NOT EXECUTED
3000e330: e3822a02 orr r2, r2, #8192 ; 0x2000 <== NOT EXECUTED
3000e334: e3a03020 mov r3, #32 <== NOT EXECUTED
3000e338: e1823003 orr r3, r2, r3 <== NOT EXECUTED
3000e33c: e585300c str r3, [r5, #12] <== NOT EXECUTED
);
}
return true;
}
3000e340: e3a00001 mov r0, #1 <== NOT EXECUTED
3000e344: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
3000c3a0 <_Objects_Shrink_information>:
#include <rtems/score/isr.h>
void _Objects_Shrink_information(
Objects_Information *information
)
{
3000c3a0: e92d40f0 push {r4, r5, r6, r7, lr}
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
3000c3a4: e1d040b8 ldrh r4, [r0, #8]
block_count = (information->maximum - index_base) /
3000c3a8: e1d051b4 ldrh r5, [r0, #20]
#include <rtems/score/isr.h>
void _Objects_Shrink_information(
Objects_Information *information
)
{
3000c3ac: e1a06000 mov r6, r0
/*
* 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) /
3000c3b0: e1d001b0 ldrh r0, [r0, #16]
3000c3b4: e1a01005 mov r1, r5
3000c3b8: e0640000 rsb r0, r4, r0
3000c3bc: eb003999 bl 3001aa28 <__aeabi_uidiv>
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
3000c3c0: e3500000 cmp r0, #0
3000c3c4: 08bd80f0 popeq {r4, r5, r6, r7, pc}
if ( information->inactive_per_block[ block ] ==
3000c3c8: e5962030 ldr r2, [r6, #48] ; 0x30
3000c3cc: e5923000 ldr r3, [r2]
3000c3d0: e1550003 cmp r5, 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++ ) {
3000c3d4: 13a03000 movne r3, #0
if ( information->inactive_per_block[ block ] ==
3000c3d8: 1a000005 bne 3000c3f4 <_Objects_Shrink_information+0x54>
3000c3dc: ea000008 b 3000c404 <_Objects_Shrink_information+0x64> <== NOT EXECUTED
3000c3e0: e5b21004 ldr r1, [r2, #4]!
information->inactive -= information->allocation_size;
return;
}
index_base += information->allocation_size;
3000c3e4: e0844005 add r4, r4, r5
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 ] ==
3000c3e8: e1550001 cmp r5, r1
3000c3ec: e1a07103 lsl r7, r3, #2
3000c3f0: 0a000004 beq 3000c408 <_Objects_Shrink_information+0x68>
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
3000c3f4: e2833001 add r3, r3, #1
3000c3f8: e1530000 cmp r3, r0
3000c3fc: 1afffff7 bne 3000c3e0 <_Objects_Shrink_information+0x40>
3000c400: e8bd80f0 pop {r4, r5, r6, r7, pc}
if ( information->inactive_per_block[ block ] ==
3000c404: e3a07000 mov r7, #0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return _Chain_Head( the_chain )->next;
3000c408: e5960020 ldr r0, [r6, #32]
3000c40c: ea000002 b 3000c41c <_Objects_Shrink_information+0x7c>
if ((index >= index_base) &&
(index < (index_base + information->allocation_size))) {
_Chain_Extract( &extract_me->Node );
}
}
while ( the_object );
3000c410: e3550000 cmp r5, #0
3000c414: 0a00000b beq 3000c448 <_Objects_Shrink_information+0xa8>
index = _Objects_Get_index( the_object->id );
/*
* Get the next node before the node is extracted
*/
extract_me = the_object;
the_object = (Objects_Control *) the_object->Node.next;
3000c418: e1a00005 mov r0, r5
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) _Chain_First( &information->Inactive );
do {
index = _Objects_Get_index( the_object->id );
3000c41c: e1d030b8 ldrh r3, [r0, #8]
/*
* Get the next node before the node is extracted
*/
extract_me = the_object;
the_object = (Objects_Control *) the_object->Node.next;
3000c420: e5905000 ldr r5, [r0]
if ((index >= index_base) &&
3000c424: e1530004 cmp r3, r4
3000c428: 3afffff8 bcc 3000c410 <_Objects_Shrink_information+0x70>
(index < (index_base + information->allocation_size))) {
3000c42c: e1d621b4 ldrh r2, [r6, #20]
3000c430: e0842002 add r2, r4, r2
/*
* Get the next node before the node is extracted
*/
extract_me = the_object;
the_object = (Objects_Control *) the_object->Node.next;
if ((index >= index_base) &&
3000c434: e1530002 cmp r3, r2
3000c438: 2afffff4 bcs 3000c410 <_Objects_Shrink_information+0x70>
(index < (index_base + information->allocation_size))) {
_Chain_Extract( &extract_me->Node );
3000c43c: eb000de5 bl 3000fbd8 <_Chain_Extract>
}
}
while ( the_object );
3000c440: e3550000 cmp r5, #0
3000c444: 1afffff3 bne 3000c418 <_Objects_Shrink_information+0x78>
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
3000c448: e5963034 ldr r3, [r6, #52] ; 0x34
3000c44c: e7930007 ldr r0, [r3, r7]
3000c450: eb00072c bl 3000e108 <_Workspace_Free>
information->object_blocks[ block ] = NULL;
3000c454: e5963034 ldr r3, [r6, #52] ; 0x34
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
3000c458: e1d612bc ldrh r1, [r6, #44] ; 0x2c
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
3000c45c: e7835007 str r5, [r3, r7]
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
3000c460: e1d631b4 ldrh r3, [r6, #20]
* 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;
3000c464: e5962030 ldr r2, [r6, #48] ; 0x30
information->inactive -= information->allocation_size;
3000c468: e0633001 rsb r3, r3, 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;
3000c46c: e7825007 str r5, [r2, r7]
information->inactive -= information->allocation_size;
3000c470: e1c632bc strh r3, [r6, #44] ; 0x2c
return;
3000c474: e8bd80f0 pop {r4, r5, r6, r7, pc}
3000c490 <_Protected_heap_Extend>:
bool _Protected_heap_Extend(
Heap_Control *the_heap,
void *starting_address,
uintptr_t size
)
{
3000c490: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
uintptr_t amount_extended;
_RTEMS_Lock_allocator();
3000c494: e59f403c ldr r4, [pc, #60] ; 3000c4d8 <_Protected_heap_Extend+0x48><== NOT EXECUTED
bool _Protected_heap_Extend(
Heap_Control *the_heap,
void *starting_address,
uintptr_t size
)
{
3000c498: e1a05000 mov r5, r0 <== NOT EXECUTED
3000c49c: e1a07001 mov r7, r1 <== NOT EXECUTED
3000c4a0: e1a06002 mov r6, r2 <== NOT EXECUTED
uintptr_t amount_extended;
_RTEMS_Lock_allocator();
3000c4a4: e5940000 ldr r0, [r4] <== NOT EXECUTED
3000c4a8: ebfffb75 bl 3000b284 <_API_Mutex_Lock> <== NOT EXECUTED
amount_extended = _Heap_Extend( the_heap, starting_address, size, 0 );
3000c4ac: e1a01007 mov r1, r7 <== NOT EXECUTED
3000c4b0: e1a02006 mov r2, r6 <== NOT EXECUTED
3000c4b4: e3a03000 mov r3, #0 <== NOT EXECUTED
3000c4b8: e1a00005 mov r0, r5 <== NOT EXECUTED
3000c4bc: eb000ec8 bl 3000ffe4 <_Heap_Extend> <== NOT EXECUTED
3000c4c0: e1a05000 mov r5, r0 <== NOT EXECUTED
_RTEMS_Unlock_allocator();
3000c4c4: e5940000 ldr r0, [r4] <== NOT EXECUTED
3000c4c8: ebfffb89 bl 3000b2f4 <_API_Mutex_Unlock> <== NOT EXECUTED
return amount_extended != 0;
}
3000c4cc: e2950000 adds r0, r5, #0 <== NOT EXECUTED
3000c4d0: 13a00001 movne r0, #1 <== NOT EXECUTED
3000c4d4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
300118dc <_Protected_heap_Get_information>:
bool _Protected_heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
300118dc: e92d4070 push {r4, r5, r6, lr}
if ( !the_heap )
300118e0: e2505000 subs r5, r0, #0
bool _Protected_heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
300118e4: e1a06001 mov r6, r1
if ( !the_heap )
return false;
300118e8: 01a00005 moveq r0, r5
bool _Protected_heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
if ( !the_heap )
300118ec: 08bd8070 popeq {r4, r5, r6, pc}
return false;
if ( !the_info )
300118f0: e3510000 cmp r1, #0
300118f4: 0a000009 beq 30011920 <_Protected_heap_Get_information+0x44>
return false;
_RTEMS_Lock_allocator();
300118f8: e59f4028 ldr r4, [pc, #40] ; 30011928 <_Protected_heap_Get_information+0x4c>
300118fc: e5940000 ldr r0, [r4]
30011900: ebfff7a7 bl 3000f7a4 <_API_Mutex_Lock>
_Heap_Get_information( the_heap, the_info );
30011904: e1a00005 mov r0, r5
30011908: e1a01006 mov r1, r6
3001190c: eb000f29 bl 300155b8 <_Heap_Get_information>
_RTEMS_Unlock_allocator();
30011910: e5940000 ldr r0, [r4]
30011914: ebfff7be bl 3000f814 <_API_Mutex_Unlock>
return true;
30011918: e3a00001 mov r0, #1
3001191c: e8bd8070 pop {r4, r5, r6, pc}
{
if ( !the_heap )
return false;
if ( !the_info )
return false;
30011920: e1a00001 mov r0, r1 <== NOT EXECUTED
_RTEMS_Lock_allocator();
_Heap_Get_information( the_heap, the_info );
_RTEMS_Unlock_allocator();
return true;
}
30011924: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
30011990 <_Protected_heap_Walk>:
* This routine returns true if thread dispatch indicates
* that we are in a critical section.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Dispatch_in_critical_section(void)
{
if ( _Thread_Dispatch_disable_level == 0 )
30011990: e59f3054 ldr r3, [pc, #84] ; 300119ec <_Protected_heap_Walk+0x5c><== NOT EXECUTED
bool _Protected_heap_Walk(
Heap_Control *the_heap,
int source,
bool do_dump
)
{
30011994: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
30011998: e5933000 ldr r3, [r3] <== NOT EXECUTED
3001199c: e1a07000 mov r7, r0 <== NOT EXECUTED
300119a0: e3530000 cmp r3, #0 <== NOT EXECUTED
300119a4: e1a06001 mov r6, r1 <== NOT EXECUTED
300119a8: e20250ff and r5, r2, #255 ; 0xff <== NOT EXECUTED
300119ac: 1a00000b bne 300119e0 <_Protected_heap_Walk+0x50> <== NOT EXECUTED
* a critical section, it should be safe to walk it unlocked.
*
* NOTE: Dispatching is also disabled during initialization.
*/
if ( _Thread_Dispatch_in_critical_section() == false ) {
_RTEMS_Lock_allocator();
300119b0: e59f4038 ldr r4, [pc, #56] ; 300119f0 <_Protected_heap_Walk+0x60><== NOT EXECUTED
300119b4: e5940000 ldr r0, [r4] <== NOT EXECUTED
300119b8: ebfff779 bl 3000f7a4 <_API_Mutex_Lock> <== NOT EXECUTED
status = _Heap_Walk( the_heap, source, do_dump );
300119bc: e1a02005 mov r2, r5 <== NOT EXECUTED
300119c0: e1a01006 mov r1, r6 <== NOT EXECUTED
300119c4: e1a00007 mov r0, r7 <== NOT EXECUTED
300119c8: ebfffbe0 bl 30010950 <_Heap_Walk> <== NOT EXECUTED
300119cc: e1a05000 mov r5, r0 <== NOT EXECUTED
_RTEMS_Unlock_allocator();
300119d0: e5940000 ldr r0, [r4] <== NOT EXECUTED
300119d4: ebfff78e bl 3000f814 <_API_Mutex_Unlock> <== NOT EXECUTED
} else {
status = _Heap_Walk( the_heap, source, do_dump );
}
return status;
}
300119d8: e1a00005 mov r0, r5 <== NOT EXECUTED
300119dc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
if ( _Thread_Dispatch_in_critical_section() == false ) {
_RTEMS_Lock_allocator();
status = _Heap_Walk( the_heap, source, do_dump );
_RTEMS_Unlock_allocator();
} else {
status = _Heap_Walk( the_heap, source, do_dump );
300119e0: e1a02005 mov r2, r5 <== NOT EXECUTED
}
return status;
}
300119e4: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED
if ( _Thread_Dispatch_in_critical_section() == false ) {
_RTEMS_Lock_allocator();
status = _Heap_Walk( the_heap, source, do_dump );
_RTEMS_Unlock_allocator();
} else {
status = _Heap_Walk( the_heap, source, do_dump );
300119e8: eafffbd8 b 30010950 <_Heap_Walk> <== NOT EXECUTED
3000d17c <_RBTree_Extract_validate_unprotected>:
)
{
RBTree_Node *parent, *sibling;
RBTree_Direction dir;
parent = the_node->parent;
3000d17c: e5903000 ldr r3, [r0]
* of the extract operation.
*/
static void _RBTree_Extract_validate_unprotected(
RBTree_Node *the_node
)
{
3000d180: e92d07f0 push {r4, r5, r6, r7, r8, r9, sl}
RBTree_Node *parent, *sibling;
RBTree_Direction dir;
parent = the_node->parent;
if(!parent->parent) return;
3000d184: e5932000 ldr r2, [r3]
3000d188: e3520000 cmp r2, #0
3000d18c: 0a00002f beq 3000d250 <_RBTree_Extract_validate_unprotected+0xd4>
{
if(!the_node) return NULL;
if(!(the_node->parent)) return NULL;
if(!(the_node->parent->parent)) return NULL;
if(the_node == the_node->parent->child[RBT_LEFT])
3000d190: e5932004 ldr r2, [r3, #4]
* Now the_node has a black sibling and red parent. After rotation,
* update sibling pointer.
*/
if (_RBTree_Is_red(sibling)) {
parent->color = RBT_RED;
sibling->color = RBT_BLACK;
3000d194: e3a06000 mov r6, #0
3000d198: e1500002 cmp r0, r2
return the_node->parent->child[RBT_RIGHT];
3000d19c: 05932008 ldreq r2, [r3, #8]
*/
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(
RBTree_Direction the_dir
)
{
return (RBTree_Direction) !((int) the_dir);
3000d1a0: e3a05001 mov r5, #1
3000d1a4: ea000022 b 3000d234 <_RBTree_Extract_validate_unprotected+0xb8>
if(!parent->parent) return;
sibling = _RBTree_Sibling(the_node);
/* continue to correct tree as long as the_node is black and not the root */
while (!_RBTree_Is_red(the_node) && parent->parent) {
3000d1a8: e5931000 ldr r1, [r3]
3000d1ac: e3510000 cmp r1, #0
3000d1b0: 0a000022 beq 3000d240 <_RBTree_Extract_validate_unprotected+0xc4>
*/
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(
const RBTree_Node *the_node
)
{
return (the_node && the_node->color == RBT_RED);
3000d1b4: e3520000 cmp r2, #0
3000d1b8: 0a000002 beq 3000d1c8 <_RBTree_Extract_validate_unprotected+0x4c>
3000d1bc: e592c00c ldr ip, [r2, #12]
3000d1c0: e35c0001 cmp ip, #1
3000d1c4: 0a000023 beq 3000d258 <_RBTree_Extract_validate_unprotected+0xdc>
_RBTree_Rotate(parent, dir);
sibling = parent->child[_RBTree_Opposite_direction(dir)];
}
/* sibling is black, see if both of its children are also black. */
if (!_RBTree_Is_red(sibling->child[RBT_RIGHT]) &&
3000d1c8: e5921008 ldr r1, [r2, #8]
3000d1cc: e3510000 cmp r1, #0
3000d1d0: 0a000002 beq 3000d1e0 <_RBTree_Extract_validate_unprotected+0x64>
3000d1d4: e591c00c ldr ip, [r1, #12]
3000d1d8: e35c0001 cmp ip, #1
3000d1dc: 0a000042 beq 3000d2ec <_RBTree_Extract_validate_unprotected+0x170>
!_RBTree_Is_red(sibling->child[RBT_LEFT])) {
3000d1e0: e592c004 ldr ip, [r2, #4]
3000d1e4: e35c0000 cmp ip, #0
3000d1e8: 0a000002 beq 3000d1f8 <_RBTree_Extract_validate_unprotected+0x7c>
3000d1ec: e59cc00c ldr ip, [ip, #12]
3000d1f0: e35c0001 cmp ip, #1
3000d1f4: 0a00003c beq 3000d2ec <_RBTree_Extract_validate_unprotected+0x170>
sibling->color = RBT_RED;
3000d1f8: e582500c str r5, [r2, #12]
3000d1fc: e593200c ldr r2, [r3, #12]
3000d200: e3520001 cmp r2, #1
3000d204: 0a000033 beq 3000d2d8 <_RBTree_Extract_validate_unprotected+0x15c>
if (_RBTree_Is_red(parent)) {
parent->color = RBT_BLACK;
break;
}
the_node = parent; /* done if parent is red */
parent = the_node->parent;
3000d208: e5931000 ldr r1, [r3]
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling(
const RBTree_Node *the_node
)
{
if(!the_node) return NULL;
if(!(the_node->parent)) return NULL;
3000d20c: e3510000 cmp r1, #0
3000d210: 0a000033 beq 3000d2e4 <_RBTree_Extract_validate_unprotected+0x168>
if(!(the_node->parent->parent)) return NULL;
3000d214: e5912000 ldr r2, [r1]
3000d218: e3520000 cmp r2, #0
3000d21c: 0a000002 beq 3000d22c <_RBTree_Extract_validate_unprotected+0xb0>
if(the_node == the_node->parent->child[RBT_LEFT])
3000d220: e5912004 ldr r2, [r1, #4]
3000d224: e1530002 cmp r3, r2
return the_node->parent->child[RBT_RIGHT];
3000d228: 05912008 ldreq r2, [r1, #8]
c->child[dir] = the_node;
the_node->parent->child[the_node != the_node->parent->child[0]] = c;
c->parent = the_node->parent;
the_node->parent = c;
3000d22c: e1a00003 mov r0, r3
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling(
const RBTree_Node *the_node
)
{
if(!the_node) return NULL;
if(!(the_node->parent)) return NULL;
3000d230: e1a03001 mov r3, r1
*/
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(
const RBTree_Node *the_node
)
{
return (the_node && the_node->color == RBT_RED);
3000d234: e590100c ldr r1, [r0, #12]
3000d238: e3510001 cmp r1, #1
3000d23c: 1affffd9 bne 3000d1a8 <_RBTree_Extract_validate_unprotected+0x2c>
sibling->child[_RBTree_Opposite_direction(dir)]->color = RBT_BLACK;
_RBTree_Rotate(parent, dir);
break; /* done */
}
} /* while */
if(!the_node->parent->parent) the_node->color = RBT_BLACK;
3000d240: e5903000 ldr r3, [r0]
3000d244: e5933000 ldr r3, [r3]
3000d248: e3530000 cmp r3, #0
3000d24c: 0580300c streq r3, [r0, #12]
}
3000d250: e8bd07f0 pop {r4, r5, r6, r7, r8, r9, sl}
3000d254: e12fff1e bx lr
* update sibling pointer.
*/
if (_RBTree_Is_red(sibling)) {
parent->color = RBT_RED;
sibling->color = RBT_BLACK;
dir = the_node != parent->child[0];
3000d258: e5934004 ldr r4, [r3, #4]
* then rotate parent left, making the sibling be the_node's grandparent.
* Now the_node has a black sibling and red parent. After rotation,
* update sibling pointer.
*/
if (_RBTree_Is_red(sibling)) {
parent->color = RBT_RED;
3000d25c: e583c00c str ip, [r3, #12]
sibling->color = RBT_BLACK;
dir = the_node != parent->child[0];
3000d260: e054a000 subs sl, r4, r0
3000d264: 13a0a001 movne sl, #1
* This function maintains the properties of the red-black tree.
*
* @note It does NOT disable interrupts to ensure the atomicity
* of the extract operation.
*/
static void _RBTree_Extract_validate_unprotected(
3000d268: e22a7001 eor r7, sl, #1
RBTree_Direction dir
)
{
RBTree_Node *c;
if (the_node == NULL) return;
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
3000d26c: e2878001 add r8, r7, #1
3000d270: e7939108 ldr r9, [r3, r8, lsl #2]
* Now the_node has a black sibling and red parent. After rotation,
* update sibling pointer.
*/
if (_RBTree_Is_red(sibling)) {
parent->color = RBT_RED;
sibling->color = RBT_BLACK;
3000d274: e582600c str r6, [r2, #12]
3000d278: e3590000 cmp r9, #0
3000d27c: 01a02009 moveq r2, r9
3000d280: 0affffd0 beq 3000d1c8 <_RBTree_Extract_validate_unprotected+0x4c>
*/
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(
RBTree_Direction the_dir
)
{
return (RBTree_Direction) !((int) the_dir);
3000d284: e3570000 cmp r7, #0
{
RBTree_Node *c;
if (the_node == NULL) return;
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
c = the_node->child[_RBTree_Opposite_direction(dir)];
3000d288: 15934008 ldrne r4, [r3, #8]
the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];
3000d28c: e28a2001 add r2, sl, #1
3000d290: e794a102 ldr sl, [r4, r2, lsl #2]
*/
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(
RBTree_Direction the_dir
)
{
return (RBTree_Direction) !((int) the_dir);
3000d294: 01a0c007 moveq ip, r7
RBTree_Node *c;
if (the_node == NULL) return;
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
c = the_node->child[_RBTree_Opposite_direction(dir)];
the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];
3000d298: e28cc001 add ip, ip, #1
3000d29c: e783a10c str sl, [r3, ip, lsl #2]
if (c->child[dir])
3000d2a0: e794c102 ldr ip, [r4, r2, lsl #2]
c->child[dir]->parent = the_node;
c->child[dir] = the_node;
3000d2a4: e7843102 str r3, [r4, r2, lsl #2]
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
c = the_node->child[_RBTree_Opposite_direction(dir)];
the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];
if (c->child[dir])
3000d2a8: e35c0000 cmp ip, #0
c->child[dir]->parent = the_node;
3000d2ac: 158c3000 strne r3, [ip]
3000d2b0: 15931000 ldrne r1, [r3]
c->child[dir] = the_node;
the_node->parent->child[the_node != the_node->parent->child[0]] = c;
3000d2b4: e5912004 ldr r2, [r1, #4]
c->parent = the_node->parent;
3000d2b8: e5841000 str r1, [r4]
if (c->child[dir])
c->child[dir]->parent = the_node;
c->child[dir] = the_node;
the_node->parent->child[the_node != the_node->parent->child[0]] = c;
3000d2bc: e1530002 cmp r3, r2
3000d2c0: 13a02008 movne r2, #8
3000d2c4: 03a02004 moveq r2, #4
3000d2c8: e7824001 str r4, [r2, r1]
c->parent = the_node->parent;
the_node->parent = c;
3000d2cc: e5834000 str r4, [r3]
3000d2d0: e7932108 ldr r2, [r3, r8, lsl #2]
3000d2d4: eaffffbb b 3000d1c8 <_RBTree_Extract_validate_unprotected+0x4c>
/* sibling is black, see if both of its children are also black. */
if (!_RBTree_Is_red(sibling->child[RBT_RIGHT]) &&
!_RBTree_Is_red(sibling->child[RBT_LEFT])) {
sibling->color = RBT_RED;
if (_RBTree_Is_red(parent)) {
parent->color = RBT_BLACK;
3000d2d8: e3a02000 mov r2, #0
3000d2dc: e583200c str r2, [r3, #12]
break;
3000d2e0: eaffffd6 b 3000d240 <_RBTree_Extract_validate_unprotected+0xc4>
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling(
const RBTree_Node *the_node
)
{
if(!the_node) return NULL;
if(!(the_node->parent)) return NULL;
3000d2e4: e1a02001 mov r2, r1 <== NOT EXECUTED
3000d2e8: eaffffcf b 3000d22c <_RBTree_Extract_validate_unprotected+0xb0><== NOT EXECUTED
* cases, either the_node is to the left or the right of the parent.
* In both cases, first check if one of sibling's children is black,
* and if so rotate in the proper direction and update sibling pointer.
* Then switch the sibling and parent colors, and rotate through parent.
*/
dir = the_node != parent->child[0];
3000d2ec: e5936004 ldr r6, [r3, #4]
3000d2f0: e0566000 subs r6, r6, r0
3000d2f4: 13a06001 movne r6, #1
* This function maintains the properties of the red-black tree.
*
* @note It does NOT disable interrupts to ensure the atomicity
* of the extract operation.
*/
static void _RBTree_Extract_validate_unprotected(
3000d2f8: e2265001 eor r5, r6, #1
* In both cases, first check if one of sibling's children is black,
* and if so rotate in the proper direction and update sibling pointer.
* Then switch the sibling and parent colors, and rotate through parent.
*/
dir = the_node != parent->child[0];
if (!_RBTree_Is_red(sibling->child[_RBTree_Opposite_direction(dir)])) {
3000d2fc: e285c001 add ip, r5, #1
3000d300: e792410c ldr r4, [r2, ip, lsl #2]
*/
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(
const RBTree_Node *the_node
)
{
return (the_node && the_node->color == RBT_RED);
3000d304: e3540000 cmp r4, #0
3000d308: 0a000003 beq 3000d31c <_RBTree_Extract_validate_unprotected+0x1a0>
3000d30c: e594700c ldr r7, [r4, #12]
3000d310: e3570001 cmp r7, #1
3000d314: 0793710c ldreq r7, [r3, ip, lsl #2]
3000d318: 0a00001f beq 3000d39c <_RBTree_Extract_validate_unprotected+0x220>
* This function maintains the properties of the red-black tree.
*
* @note It does NOT disable interrupts to ensure the atomicity
* of the extract operation.
*/
static void _RBTree_Extract_validate_unprotected(
3000d31c: e2254001 eor r4, r5, #1
RBTree_Direction dir
)
{
RBTree_Node *c;
if (the_node == NULL) return;
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
3000d320: e2848001 add r8, r4, #1
3000d324: e792a108 ldr sl, [r2, r8, lsl #2]
* Then switch the sibling and parent colors, and rotate through parent.
*/
dir = the_node != parent->child[0];
if (!_RBTree_Is_red(sibling->child[_RBTree_Opposite_direction(dir)])) {
sibling->color = RBT_RED;
sibling->child[dir]->color = RBT_BLACK;
3000d328: e2867001 add r7, r6, #1
3000d32c: e7928107 ldr r8, [r2, r7, lsl #2]
3000d330: e35a0000 cmp sl, #0
* and if so rotate in the proper direction and update sibling pointer.
* Then switch the sibling and parent colors, and rotate through parent.
*/
dir = the_node != parent->child[0];
if (!_RBTree_Is_red(sibling->child[_RBTree_Opposite_direction(dir)])) {
sibling->color = RBT_RED;
3000d334: e3a07001 mov r7, #1
sibling->child[dir]->color = RBT_BLACK;
3000d338: e3a0a000 mov sl, #0
* and if so rotate in the proper direction and update sibling pointer.
* Then switch the sibling and parent colors, and rotate through parent.
*/
dir = the_node != parent->child[0];
if (!_RBTree_Is_red(sibling->child[_RBTree_Opposite_direction(dir)])) {
sibling->color = RBT_RED;
3000d33c: e582700c str r7, [r2, #12]
sibling->child[dir]->color = RBT_BLACK;
3000d340: e588a00c str sl, [r8, #12]
3000d344: 0a000011 beq 3000d390 <_RBTree_Extract_validate_unprotected+0x214>
*/
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(
RBTree_Direction the_dir
)
{
return (RBTree_Direction) !((int) the_dir);
3000d348: e3540000 cmp r4, #0
{
RBTree_Node *c;
if (the_node == NULL) return;
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
c = the_node->child[_RBTree_Opposite_direction(dir)];
3000d34c: 05921004 ldreq r1, [r2, #4]
*/
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(
RBTree_Direction the_dir
)
{
return (RBTree_Direction) !((int) the_dir);
3000d350: 11a04007 movne r4, r7
RBTree_Node *c;
if (the_node == NULL) return;
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
c = the_node->child[_RBTree_Opposite_direction(dir)];
the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];
3000d354: e791810c ldr r8, [r1, ip, lsl #2]
3000d358: e2844001 add r4, r4, #1
3000d35c: e7828104 str r8, [r2, r4, lsl #2]
if (c->child[dir])
3000d360: e791410c ldr r4, [r1, ip, lsl #2]
c->child[dir]->parent = the_node;
c->child[dir] = the_node;
3000d364: e781210c str r2, [r1, ip, lsl #2]
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
c = the_node->child[_RBTree_Opposite_direction(dir)];
the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];
if (c->child[dir])
3000d368: e3540000 cmp r4, #0
c->child[dir]->parent = the_node;
3000d36c: 15842000 strne r2, [r4]
c->child[dir] = the_node;
the_node->parent->child[the_node != the_node->parent->child[0]] = c;
3000d370: e5924000 ldr r4, [r2]
3000d374: e5947004 ldr r7, [r4, #4]
c->parent = the_node->parent;
3000d378: e5814000 str r4, [r1]
if (c->child[dir])
c->child[dir]->parent = the_node;
c->child[dir] = the_node;
the_node->parent->child[the_node != the_node->parent->child[0]] = c;
3000d37c: e1520007 cmp r2, r7
3000d380: 13a07008 movne r7, #8
3000d384: 03a07004 moveq r7, #4
3000d388: e7871004 str r1, [r7, r4]
c->parent = the_node->parent;
the_node->parent = c;
3000d38c: e5821000 str r1, [r2]
_RBTree_Rotate(sibling, _RBTree_Opposite_direction(dir));
sibling = parent->child[_RBTree_Opposite_direction(dir)];
3000d390: e793210c ldr r2, [r3, ip, lsl #2]
3000d394: e792410c ldr r4, [r2, ip, lsl #2]
3000d398: e1a07002 mov r7, r2
}
sibling->color = parent->color;
3000d39c: e593c00c ldr ip, [r3, #12]
parent->color = RBT_BLACK;
3000d3a0: e3a01000 mov r1, #0
RBTree_Direction dir
)
{
RBTree_Node *c;
if (the_node == NULL) return;
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
3000d3a4: e1570001 cmp r7, r1
sibling->color = RBT_RED;
sibling->child[dir]->color = RBT_BLACK;
_RBTree_Rotate(sibling, _RBTree_Opposite_direction(dir));
sibling = parent->child[_RBTree_Opposite_direction(dir)];
}
sibling->color = parent->color;
3000d3a8: e582c00c str ip, [r2, #12]
parent->color = RBT_BLACK;
3000d3ac: e583100c str r1, [r3, #12]
sibling->child[_RBTree_Opposite_direction(dir)]->color = RBT_BLACK;
3000d3b0: e584100c str r1, [r4, #12]
3000d3b4: 0affffa1 beq 3000d240 <_RBTree_Extract_validate_unprotected+0xc4>
*/
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(
RBTree_Direction the_dir
)
{
return (RBTree_Direction) !((int) the_dir);
3000d3b8: e1550001 cmp r5, r1
{
RBTree_Node *c;
if (the_node == NULL) return;
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
c = the_node->child[_RBTree_Opposite_direction(dir)];
3000d3bc: 05932004 ldreq r2, [r3, #4]
3000d3c0: 15932008 ldrne r2, [r3, #8]
the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];
3000d3c4: e2866001 add r6, r6, #1
3000d3c8: e7921106 ldr r1, [r2, r6, lsl #2]
*/
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(
RBTree_Direction the_dir
)
{
return (RBTree_Direction) !((int) the_dir);
3000d3cc: 13a05001 movne r5, #1
RBTree_Node *c;
if (the_node == NULL) return;
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
c = the_node->child[_RBTree_Opposite_direction(dir)];
the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];
3000d3d0: e2855001 add r5, r5, #1
3000d3d4: e7831105 str r1, [r3, r5, lsl #2]
if (c->child[dir])
3000d3d8: e7921106 ldr r1, [r2, r6, lsl #2]
c->child[dir]->parent = the_node;
c->child[dir] = the_node;
3000d3dc: e7823106 str r3, [r2, r6, lsl #2]
if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
c = the_node->child[_RBTree_Opposite_direction(dir)];
the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];
if (c->child[dir])
3000d3e0: e3510000 cmp r1, #0
c->child[dir]->parent = the_node;
3000d3e4: 15813000 strne r3, [r1]
c->child[dir] = the_node;
the_node->parent->child[the_node != the_node->parent->child[0]] = c;
3000d3e8: e5931000 ldr r1, [r3]
3000d3ec: e591c004 ldr ip, [r1, #4]
c->parent = the_node->parent;
3000d3f0: e5821000 str r1, [r2]
if (c->child[dir])
c->child[dir]->parent = the_node;
c->child[dir] = the_node;
the_node->parent->child[the_node != the_node->parent->child[0]] = c;
3000d3f4: e153000c cmp r3, ip
3000d3f8: 13a0c008 movne ip, #8
3000d3fc: 03a0c004 moveq ip, #4
3000d400: e78c2001 str r2, [ip, r1]
c->parent = the_node->parent;
the_node->parent = c;
3000d404: e5832000 str r2, [r3]
3000d408: eaffff8c b 3000d240 <_RBTree_Extract_validate_unprotected+0xc4>
3000d82c <_RBTree_Iterate_unprotected>:
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_First(
const RBTree_Control *the_rbtree,
RBTree_Direction dir
)
{
return the_rbtree->first[dir];
3000d82c: e3510000 cmp r1, #0 <== NOT EXECUTED
const RBTree_Control *rbtree,
RBTree_Direction dir,
RBTree_Visitor visitor,
void *visitor_arg
)
{
3000d830: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(
RBTree_Direction the_dir
)
{
return (RBTree_Direction) !((int) the_dir);
3000d834: e1a05001 mov r5, r1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_First(
const RBTree_Control *the_rbtree,
RBTree_Direction dir
)
{
return the_rbtree->first[dir];
3000d838: 13a01002 movne r1, #2 <== NOT EXECUTED
3000d83c: 03a01003 moveq r1, #3 <== NOT EXECUTED
3000d840: e7904101 ldr r4, [r0, r1, lsl #2] <== NOT EXECUTED
3000d844: e1a06002 mov r6, r2 <== NOT EXECUTED
RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );
const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );
bool stop = false;
while ( !stop && current != NULL ) {
3000d848: e3540000 cmp r4, #0 <== NOT EXECUTED
const RBTree_Control *rbtree,
RBTree_Direction dir,
RBTree_Visitor visitor,
void *visitor_arg
)
{
3000d84c: e1a07003 mov r7, r3 <== NOT EXECUTED
RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );
const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );
bool stop = false;
while ( !stop && current != NULL ) {
3000d850: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
stop = (*visitor)( current, dir, visitor_arg );
3000d854: e1a00004 mov r0, r4 <== NOT EXECUTED
3000d858: e1a02007 mov r2, r7 <== NOT EXECUTED
3000d85c: e1a01005 mov r1, r5 <== NOT EXECUTED
3000d860: e1a0e00f mov lr, pc <== NOT EXECUTED
3000d864: e12fff16 bx r6 <== NOT EXECUTED
current = _RBTree_Next_unprotected( current, dir );
3000d868: e1a01005 mov r1, r5 <== NOT EXECUTED
RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );
const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );
bool stop = false;
while ( !stop && current != NULL ) {
stop = (*visitor)( current, dir, visitor_arg );
3000d86c: e1a08000 mov r8, r0 <== NOT EXECUTED
current = _RBTree_Next_unprotected( current, dir );
3000d870: e1a00004 mov r0, r4 <== NOT EXECUTED
3000d874: eb000005 bl 3000d890 <_RBTree_Next_unprotected> <== NOT EXECUTED
{
RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );
const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );
bool stop = false;
while ( !stop && current != NULL ) {
3000d878: e3580000 cmp r8, #0 <== NOT EXECUTED
stop = (*visitor)( current, dir, visitor_arg );
current = _RBTree_Next_unprotected( current, dir );
3000d87c: e1a04000 mov r4, r0 <== NOT EXECUTED
{
RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );
const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );
bool stop = false;
while ( !stop && current != NULL ) {
3000d880: 18bd81f0 popne {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
3000d884: e3500000 cmp r0, #0 <== NOT EXECUTED
3000d888: 1afffff1 bne 3000d854 <_RBTree_Iterate_unprotected+0x28> <== NOT EXECUTED
3000d88c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
3000d890 <_RBTree_Next_unprotected>:
const RBTree_Node *node,
RBTree_Direction dir
)
{
RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );
RBTree_Node *current = node->child [dir];
3000d890: e2812001 add r2, r1, #1
3000d894: e7903102 ldr r3, [r0, r2, lsl #2]
*/
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(
RBTree_Direction the_dir
)
{
return (RBTree_Direction) !((int) the_dir);
3000d898: e2711001 rsbs r1, r1, #1
3000d89c: 33a01000 movcc r1, #0
RBTree_Node *next = NULL;
if ( current != NULL ) {
3000d8a0: e3530000 cmp r3, #0
3000d8a4: 12811001 addne r1, r1, #1
3000d8a8: 1a000001 bne 3000d8b4 <_RBTree_Next_unprotected+0x24>
3000d8ac: ea000005 b 3000d8c8 <_RBTree_Next_unprotected+0x38>
next = current;
while ( (current = current->child [opp_dir]) != NULL ) {
3000d8b0: e1a03002 mov r3, r2 <== NOT EXECUTED
3000d8b4: e7932101 ldr r2, [r3, r1, lsl #2]
3000d8b8: e3520000 cmp r2, #0
3000d8bc: 1afffffb bne 3000d8b0 <_RBTree_Next_unprotected+0x20>
next = current;
}
} else {
RBTree_Node *parent = node->parent;
if ( parent->parent && node == parent->child [opp_dir] ) {
3000d8c0: e1a00003 mov r0, r3
3000d8c4: e12fff1e bx lr
next = current;
while ( (current = current->child [opp_dir]) != NULL ) {
next = current;
}
} else {
RBTree_Node *parent = node->parent;
3000d8c8: e5903000 ldr r3, [r0]
if ( parent->parent && node == parent->child [opp_dir] ) {
3000d8cc: e593c000 ldr ip, [r3]
3000d8d0: e35c0000 cmp ip, #0
3000d8d4: 0a00000d beq 3000d910 <_RBTree_Next_unprotected+0x80>
3000d8d8: e2811001 add r1, r1, #1
3000d8dc: e7931101 ldr r1, [r3, r1, lsl #2]
3000d8e0: e1510000 cmp r1, r0
3000d8e4: 1a000002 bne 3000d8f4 <_RBTree_Next_unprotected+0x64>
3000d8e8: eafffff4 b 3000d8c0 <_RBTree_Next_unprotected+0x30>
next = parent;
} else {
while ( parent->parent && node == parent->child [dir] ) {
3000d8ec: e1a0300c mov r3, ip
3000d8f0: e59cc000 ldr ip, [ip]
3000d8f4: e35c0000 cmp ip, #0
3000d8f8: 0a000004 beq 3000d910 <_RBTree_Next_unprotected+0x80>
3000d8fc: e7931102 ldr r1, [r3, r2, lsl #2]
3000d900: e1510000 cmp r1, r0
3000d904: e1a00003 mov r0, r3
3000d908: 0afffff7 beq 3000d8ec <_RBTree_Next_unprotected+0x5c>
}
}
}
return next;
}
3000d90c: e12fff1e bx lr
RBTree_Direction dir
)
{
RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );
RBTree_Node *current = node->child [dir];
RBTree_Node *next = NULL;
3000d910: e3a00000 mov r0, #0
3000d914: e12fff1e bx lr
3000f9b0 <_RTEMS_tasks_Delete_extension>:
static void _RTEMS_tasks_Delete_extension(
Thread_Control *executing,
Thread_Control *deleted
)
{
3000f9b0: e92d4030 push {r4, r5, lr}
3000f9b4: e1a05001 mov r5, r1
/*
* Free per task variable memory
*/
tvp = deleted->task_variables;
3000f9b8: e59110f8 ldr r1, [r1, #248] ; 0xf8
deleted->task_variables = NULL;
3000f9bc: e3a03000 mov r3, #0
while (tvp) {
3000f9c0: e3510000 cmp r1, #0
/*
* Free per task variable memory
*/
tvp = deleted->task_variables;
deleted->task_variables = NULL;
3000f9c4: e58530f8 str r3, [r5, #248] ; 0xf8
while (tvp) {
3000f9c8: 1a000001 bne 3000f9d4 <_RTEMS_tasks_Delete_extension+0x24>
3000f9cc: ea000005 b 3000f9e8 <_RTEMS_tasks_Delete_extension+0x38>
next = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp );
tvp = next;
3000f9d0: e1a01004 mov r1, r4 <== NOT EXECUTED
*/
tvp = deleted->task_variables;
deleted->task_variables = NULL;
while (tvp) {
next = (rtems_task_variable_t *)tvp->next;
3000f9d4: e5914000 ldr r4, [r1] <== NOT EXECUTED
_RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp );
3000f9d8: e1a00005 mov r0, r5 <== NOT EXECUTED
3000f9dc: eb00003f bl 3000fae0 <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED
* Free per task variable memory
*/
tvp = deleted->task_variables;
deleted->task_variables = NULL;
while (tvp) {
3000f9e0: e3540000 cmp r4, #0 <== NOT EXECUTED
3000f9e4: 1afffff9 bne 3000f9d0 <_RTEMS_tasks_Delete_extension+0x20> <== NOT EXECUTED
/*
* Free API specific memory
*/
(void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] );
3000f9e8: e59500ec ldr r0, [r5, #236] ; 0xec
3000f9ec: ebfff9c5 bl 3000e108 <_Workspace_Free>
deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL;
3000f9f0: e3a03000 mov r3, #0
3000f9f4: e58530ec str r3, [r5, #236] ; 0xec
}
3000f9f8: e8bd8030 pop {r4, r5, pc}
3000f930 <_RTEMS_tasks_Switch_extension>:
/*
* Per Task Variables
*/
tvp = executing->task_variables;
3000f930: e59030f8 ldr r3, [r0, #248] ; 0xf8
while (tvp) {
3000f934: e3530000 cmp r3, #0
3000f938: 0a000007 beq 3000f95c <_RTEMS_tasks_Switch_extension+0x2c>
tvp->tval = *tvp->ptr;
3000f93c: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED
*tvp->ptr = tvp->gval;
3000f940: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED
* Per Task Variables
*/
tvp = executing->task_variables;
while (tvp) {
tvp->tval = *tvp->ptr;
3000f944: e592c000 ldr ip, [r2] <== NOT EXECUTED
3000f948: e583c00c str ip, [r3, #12] <== NOT EXECUTED
*tvp->ptr = tvp->gval;
3000f94c: e5820000 str r0, [r2] <== NOT EXECUTED
tvp = (rtems_task_variable_t *)tvp->next;
3000f950: e5933000 ldr r3, [r3] <== NOT EXECUTED
/*
* Per Task Variables
*/
tvp = executing->task_variables;
while (tvp) {
3000f954: e3530000 cmp r3, #0 <== NOT EXECUTED
3000f958: 1afffff7 bne 3000f93c <_RTEMS_tasks_Switch_extension+0xc> <== NOT EXECUTED
tvp->tval = *tvp->ptr;
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
3000f95c: e59130f8 ldr r3, [r1, #248] ; 0xf8
while (tvp) {
3000f960: e3530000 cmp r3, #0
3000f964: 012fff1e bxeq lr
tvp->gval = *tvp->ptr;
3000f968: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED
*tvp->ptr = tvp->tval;
3000f96c: e593100c ldr r1, [r3, #12] <== NOT EXECUTED
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
while (tvp) {
tvp->gval = *tvp->ptr;
3000f970: e5920000 ldr r0, [r2] <== NOT EXECUTED
3000f974: e5830008 str r0, [r3, #8] <== NOT EXECUTED
*tvp->ptr = tvp->tval;
3000f978: e5821000 str r1, [r2] <== NOT EXECUTED
tvp = (rtems_task_variable_t *)tvp->next;
3000f97c: e5933000 ldr r3, [r3] <== NOT EXECUTED
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
while (tvp) {
3000f980: e3530000 cmp r3, #0 <== NOT EXECUTED
3000f984: 1afffff7 bne 3000f968 <_RTEMS_tasks_Switch_extension+0x38> <== NOT EXECUTED
3000f988: e12fff1e bx lr <== NOT EXECUTED
300366e8 <_Rate_monotonic_Timeout>:
void _Rate_monotonic_Timeout(
Objects_Id id,
void *ignored
)
{
300366e8: e92d4010 push {r4, lr} <== NOT EXECUTED
300366ec: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
300366f0: e1a01000 mov r1, r0 <== NOT EXECUTED
300366f4: e1a0200d mov r2, sp <== NOT EXECUTED
300366f8: e59f0094 ldr r0, [pc, #148] ; 30036794 <_Rate_monotonic_Timeout+0xac><== NOT EXECUTED
300366fc: ebff58c0 bl 3000ca04 <_Objects_Get> <== NOT EXECUTED
/*
* 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 ) {
30036700: e59d3000 ldr r3, [sp] <== NOT EXECUTED
30036704: e1a04000 mov r4, r0 <== NOT EXECUTED
30036708: e3530000 cmp r3, #0 <== NOT EXECUTED
3003670c: 1a000010 bne 30036754 <_Rate_monotonic_Timeout+0x6c> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_thread = the_period->owner;
30036710: e5900040 ldr r0, [r0, #64] ; 0x40 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_period (
States_Control the_states
)
{
return (the_states & STATES_WAITING_FOR_PERIOD);
30036714: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
30036718: e3130901 tst r3, #16384 ; 0x4000 <== NOT EXECUTED
3003671c: 0a000003 beq 30036730 <_Rate_monotonic_Timeout+0x48> <== NOT EXECUTED
30036720: e5902020 ldr r2, [r0, #32] <== NOT EXECUTED
30036724: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED
30036728: e1520003 cmp r2, r3 <== NOT EXECUTED
3003672c: 0a000014 beq 30036784 <_Rate_monotonic_Timeout+0x9c> <== NOT EXECUTED
_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 ) {
30036730: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED
30036734: e3530001 cmp r3, #1 <== NOT EXECUTED
_Rate_monotonic_Initiate_statistics( the_period );
_Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
} else
the_period->state = RATE_MONOTONIC_EXPIRED;
30036738: 13a03004 movne r3, #4 <== NOT EXECUTED
3003673c: 15843038 strne r3, [r4, #56] ; 0x38 <== NOT EXECUTED
_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 ) {
30036740: 0a000005 beq 3003675c <_Rate_monotonic_Timeout+0x74> <== NOT EXECUTED
*
* This routine decrements the thread dispatch level.
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
30036744: e59f304c ldr r3, [pc, #76] ; 30036798 <_Rate_monotonic_Timeout+0xb0><== NOT EXECUTED
30036748: e5932000 ldr r2, [r3] <== NOT EXECUTED
--level;
3003674c: e2422001 sub r2, r2, #1 <== NOT EXECUTED
_Thread_Dispatch_disable_level = level;
30036750: e5832000 str r2, [r3] <== NOT EXECUTED
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
30036754: e28dd004 add sp, sp, #4 <== NOT EXECUTED
30036758: e8bd8010 pop {r4, pc} <== NOT EXECUTED
_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;
3003675c: e3a03003 mov r3, #3 <== NOT EXECUTED
_Rate_monotonic_Initiate_statistics( the_period );
30036760: e1a00004 mov r0, r4 <== NOT EXECUTED
_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;
30036764: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED
_Rate_monotonic_Initiate_statistics( the_period );
30036768: ebffff49 bl 30036494 <_Rate_monotonic_Initiate_statistics> <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
3003676c: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
30036770: e59f0024 ldr r0, [pc, #36] ; 3003679c <_Rate_monotonic_Timeout+0xb4><== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
30036774: e584301c str r3, [r4, #28] <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
30036778: e2841010 add r1, r4, #16 <== NOT EXECUTED
3003677c: ebff5f3e bl 3000e47c <_Watchdog_Insert> <== NOT EXECUTED
30036780: eaffffef b 30036744 <_Rate_monotonic_Timeout+0x5c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
30036784: e59f1014 ldr r1, [pc, #20] ; 300367a0 <_Rate_monotonic_Timeout+0xb8><== NOT EXECUTED
30036788: ebff5b46 bl 3000d4a8 <_Thread_Clear_state> <== NOT EXECUTED
the_thread = the_period->owner;
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
the_thread->Wait.id == the_period->Object.id ) {
_Thread_Unblock( the_thread );
_Rate_monotonic_Initiate_statistics( the_period );
3003678c: e1a00004 mov r0, r4 <== NOT EXECUTED
30036790: eafffff4 b 30036768 <_Rate_monotonic_Timeout+0x80> <== NOT EXECUTED
3000dd9c <_Scheduler_CBS_Attach_thread>:
int _Scheduler_CBS_Attach_thread (
Scheduler_CBS_Server_id server_id,
rtems_id task_id
)
{
3000dd9c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
Scheduler_CBS_Per_thread *sched_info;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000dda0: e59f3098 ldr r3, [pc, #152] ; 3000de40 <_Scheduler_CBS_Attach_thread+0xa4><== NOT EXECUTED
int _Scheduler_CBS_Attach_thread (
Scheduler_CBS_Server_id server_id,
rtems_id task_id
)
{
3000dda4: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
Scheduler_CBS_Per_thread *sched_info;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000dda8: e5933000 ldr r3, [r3] <== NOT EXECUTED
int _Scheduler_CBS_Attach_thread (
Scheduler_CBS_Server_id server_id,
rtems_id task_id
)
{
3000ddac: e1a04000 mov r4, r0 <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
Scheduler_CBS_Per_thread *sched_info;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000ddb0: e1530000 cmp r3, r0 <== NOT EXECUTED
int _Scheduler_CBS_Attach_thread (
Scheduler_CBS_Server_id server_id,
rtems_id task_id
)
{
3000ddb4: e1a05001 mov r5, r1 <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
Scheduler_CBS_Per_thread *sched_info;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000ddb8: 9a00001c bls 3000de30 <_Scheduler_CBS_Attach_thread+0x94> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
the_thread = _Thread_Get(task_id, &location);
3000ddbc: e1a00001 mov r0, r1 <== NOT EXECUTED
3000ddc0: e1a0100d mov r1, sp <== NOT EXECUTED
3000ddc4: eb0003f8 bl 3000edac <_Thread_Get> <== NOT EXECUTED
/* The routine _Thread_Get may disable dispatch and not enable again. */
if ( the_thread )
3000ddc8: e2506000 subs r6, r0, #0 <== NOT EXECUTED
3000ddcc: 0a000017 beq 3000de30 <_Scheduler_CBS_Attach_thread+0x94> <== NOT EXECUTED
_Thread_Enable_dispatch();
3000ddd0: eb0003ed bl 3000ed8c <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( !the_thread )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
3000ddd4: e5962088 ldr r2, [r6, #136] ; 0x88 <== NOT EXECUTED
/* Thread is already attached to a server. */
if ( sched_info->cbs_server )
3000ddd8: e5920018 ldr r0, [r2, #24] <== NOT EXECUTED
3000dddc: e3500000 cmp r0, #0 <== NOT EXECUTED
3000dde0: 1a000014 bne 3000de38 <_Scheduler_CBS_Attach_thread+0x9c> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_FULL;
/* Server is not valid. */
if ( !_Scheduler_CBS_Server_list[server_id] )
3000dde4: e59f3058 ldr r3, [pc, #88] ; 3000de44 <_Scheduler_CBS_Attach_thread+0xa8><== NOT EXECUTED
3000dde8: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000ddec: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED
3000ddf0: e3530000 cmp r3, #0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
3000ddf4: 03e00018 mvneq r0, #24 <== NOT EXECUTED
/* Thread is already attached to a server. */
if ( sched_info->cbs_server )
return SCHEDULER_CBS_ERROR_FULL;
/* Server is not valid. */
if ( !_Scheduler_CBS_Server_list[server_id] )
3000ddf8: 0a00000a beq 3000de28 <_Scheduler_CBS_Attach_thread+0x8c> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
/* Server is already attached to a thread. */
if ( _Scheduler_CBS_Server_list[server_id]->task_id != -1 )
3000ddfc: e5931000 ldr r1, [r3] <== NOT EXECUTED
3000de00: e3710001 cmn r1, #1 <== NOT EXECUTED
3000de04: 1a00000b bne 3000de38 <_Scheduler_CBS_Attach_thread+0x9c> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_FULL;
_Scheduler_CBS_Server_list[server_id]->task_id = task_id;
3000de08: e5835000 str r5, [r3] <== NOT EXECUTED
sched_info->cbs_server = (void *) _Scheduler_CBS_Server_list[server_id];
3000de0c: e5823018 str r3, [r2, #24] <== NOT EXECUTED
the_thread->budget_callout = _Scheduler_CBS_Budget_callout;
3000de10: e59f3030 ldr r3, [pc, #48] ; 3000de48 <_Scheduler_CBS_Attach_thread+0xac><== NOT EXECUTED
3000de14: e586307c str r3, [r6, #124] ; 0x7c <== NOT EXECUTED
the_thread->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;
3000de18: e3a03002 mov r3, #2 <== NOT EXECUTED
3000de1c: e5863078 str r3, [r6, #120] ; 0x78 <== NOT EXECUTED
the_thread->is_preemptible = true;
3000de20: e3a03001 mov r3, #1 <== NOT EXECUTED
3000de24: e5c63070 strb r3, [r6, #112] ; 0x70 <== NOT EXECUTED
return SCHEDULER_CBS_OK;
}
3000de28: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000de2c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
the_thread = _Thread_Get(task_id, &location);
/* The routine _Thread_Get may disable dispatch and not enable again. */
if ( the_thread )
_Thread_Enable_dispatch();
if ( !the_thread )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
3000de30: e3e00011 mvn r0, #17 <== NOT EXECUTED
3000de34: eafffffb b 3000de28 <_Scheduler_CBS_Attach_thread+0x8c> <== NOT EXECUTED
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
/* Server is already attached to a thread. */
if ( _Scheduler_CBS_Server_list[server_id]->task_id != -1 )
return SCHEDULER_CBS_ERROR_FULL;
3000de38: e3e00019 mvn r0, #25 <== NOT EXECUTED
3000de3c: eafffff9 b 3000de28 <_Scheduler_CBS_Attach_thread+0x8c> <== NOT EXECUTED
3000e2d4 <_Scheduler_CBS_Budget_callout>:
Scheduler_CBS_Server **_Scheduler_CBS_Server_list;
void _Scheduler_CBS_Budget_callout(
Thread_Control *the_thread
)
{
3000e2d4: e92d4010 push {r4, lr} <== NOT EXECUTED
Priority_Control new_priority;
Scheduler_CBS_Per_thread *sched_info;
Scheduler_CBS_Server_id server_id;
/* Put violating task to background until the end of period. */
new_priority = the_thread->Start.initial_priority;
3000e2d8: e59010ac ldr r1, [r0, #172] ; 0xac <== NOT EXECUTED
if ( the_thread->real_priority != new_priority )
3000e2dc: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
Scheduler_CBS_Server **_Scheduler_CBS_Server_list;
void _Scheduler_CBS_Budget_callout(
Thread_Control *the_thread
)
{
3000e2e0: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
Scheduler_CBS_Per_thread *sched_info;
Scheduler_CBS_Server_id server_id;
/* Put violating task to background until the end of period. */
new_priority = the_thread->Start.initial_priority;
if ( the_thread->real_priority != new_priority )
3000e2e4: e1530001 cmp r3, r1 <== NOT EXECUTED
the_thread->real_priority = new_priority;
if ( the_thread->current_priority != new_priority )
3000e2e8: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED
Scheduler_CBS_Server_id server_id;
/* Put violating task to background until the end of period. */
new_priority = the_thread->Start.initial_priority;
if ( the_thread->real_priority != new_priority )
the_thread->real_priority = new_priority;
3000e2ec: 15801018 strne r1, [r0, #24] <== NOT EXECUTED
if ( the_thread->current_priority != new_priority )
3000e2f0: e1530001 cmp r3, r1 <== NOT EXECUTED
Scheduler_CBS_Server **_Scheduler_CBS_Server_list;
void _Scheduler_CBS_Budget_callout(
Thread_Control *the_thread
)
{
3000e2f4: e1a04000 mov r4, r0 <== NOT EXECUTED
/* Put violating task to background until the end of period. */
new_priority = the_thread->Start.initial_priority;
if ( the_thread->real_priority != new_priority )
the_thread->real_priority = new_priority;
if ( the_thread->current_priority != new_priority )
_Thread_Change_priority(the_thread, new_priority, true);
3000e2f8: 13a02001 movne r2, #1 <== NOT EXECUTED
3000e2fc: 1b00016f blne 3000e8c0 <_Thread_Change_priority> <== NOT EXECUTED
/* Invoke callback function if any. */
sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
3000e300: e5944088 ldr r4, [r4, #136] ; 0x88 <== NOT EXECUTED
if ( sched_info->cbs_server->cbs_budget_overrun ) {
3000e304: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED
3000e308: e593200c ldr r2, [r3, #12] <== NOT EXECUTED
3000e30c: e3520000 cmp r2, #0 <== NOT EXECUTED
3000e310: 0a000006 beq 3000e330 <_Scheduler_CBS_Budget_callout+0x5c> <== NOT EXECUTED
_Scheduler_CBS_Get_server_id(
3000e314: e5930000 ldr r0, [r3] <== NOT EXECUTED
3000e318: e1a0100d mov r1, sp <== NOT EXECUTED
3000e31c: ebffffd3 bl 3000e270 <_Scheduler_CBS_Get_server_id> <== NOT EXECUTED
sched_info->cbs_server->task_id,
&server_id
);
sched_info->cbs_server->cbs_budget_overrun( server_id );
3000e320: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED
3000e324: e59d0000 ldr r0, [sp] <== NOT EXECUTED
3000e328: e1a0e00f mov lr, pc <== NOT EXECUTED
3000e32c: e593f00c ldr pc, [r3, #12] <== NOT EXECUTED
}
}
3000e330: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000e334: e8bd8010 pop {r4, pc} <== NOT EXECUTED
3000de4c <_Scheduler_CBS_Cleanup>:
#include <rtems/config.h>
#include <rtems/score/scheduler.h>
#include <rtems/score/schedulercbs.h>
int _Scheduler_CBS_Cleanup (void)
{
3000de4c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
unsigned int i;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
3000de50: e59f5058 ldr r5, [pc, #88] ; 3000deb0 <_Scheduler_CBS_Cleanup+0x64><== NOT EXECUTED
3000de54: e5953000 ldr r3, [r5] <== NOT EXECUTED
3000de58: e3530000 cmp r3, #0 <== NOT EXECUTED
3000de5c: 0a000010 beq 3000dea4 <_Scheduler_CBS_Cleanup+0x58> <== NOT EXECUTED
3000de60: e59f604c ldr r6, [pc, #76] ; 3000deb4 <_Scheduler_CBS_Cleanup+0x68><== NOT EXECUTED
3000de64: e3a04000 mov r4, #0 <== NOT EXECUTED
3000de68: e5962000 ldr r2, [r6] <== NOT EXECUTED
if ( _Scheduler_CBS_Server_list[ i ] )
3000de6c: e7923104 ldr r3, [r2, r4, lsl #2] <== NOT EXECUTED
_Scheduler_CBS_Destroy_server( i );
3000de70: e1a00004 mov r0, r4 <== NOT EXECUTED
int _Scheduler_CBS_Cleanup (void)
{
unsigned int i;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
if ( _Scheduler_CBS_Server_list[ i ] )
3000de74: e3530000 cmp r3, #0 <== NOT EXECUTED
int _Scheduler_CBS_Cleanup (void)
{
unsigned int i;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
3000de78: e2844001 add r4, r4, #1 <== NOT EXECUTED
if ( _Scheduler_CBS_Server_list[ i ] )
3000de7c: 0a000001 beq 3000de88 <_Scheduler_CBS_Cleanup+0x3c> <== NOT EXECUTED
_Scheduler_CBS_Destroy_server( i );
3000de80: eb000043 bl 3000df94 <_Scheduler_CBS_Destroy_server> <== NOT EXECUTED
3000de84: e5962000 ldr r2, [r6] <== NOT EXECUTED
int _Scheduler_CBS_Cleanup (void)
{
unsigned int i;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
3000de88: e5953000 ldr r3, [r5] <== NOT EXECUTED
3000de8c: e1530004 cmp r3, r4 <== NOT EXECUTED
3000de90: 8afffff5 bhi 3000de6c <_Scheduler_CBS_Cleanup+0x20> <== NOT EXECUTED
if ( _Scheduler_CBS_Server_list[ i ] )
_Scheduler_CBS_Destroy_server( i );
}
_Workspace_Free( _Scheduler_CBS_Server_list );
3000de94: e1a00002 mov r0, r2 <== NOT EXECUTED
3000de98: eb0007cc bl 3000fdd0 <_Workspace_Free> <== NOT EXECUTED
return SCHEDULER_CBS_OK;
}
3000de9c: e3a00000 mov r0, #0 <== NOT EXECUTED
3000dea0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
int _Scheduler_CBS_Cleanup (void)
{
unsigned int i;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
3000dea4: e59f3008 ldr r3, [pc, #8] ; 3000deb4 <_Scheduler_CBS_Cleanup+0x68><== NOT EXECUTED
3000dea8: e5932000 ldr r2, [r3] <== NOT EXECUTED
3000deac: eafffff8 b 3000de94 <_Scheduler_CBS_Cleanup+0x48> <== NOT EXECUTED
3000deb8 <_Scheduler_CBS_Create_server>:
)
{
unsigned int i;
Scheduler_CBS_Server *the_server;
if ( params->budget <= 0 ||
3000deb8: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED
int _Scheduler_CBS_Create_server (
Scheduler_CBS_Parameters *params,
Scheduler_CBS_Budget_overrun budget_overrun_callback,
rtems_id *server_id
)
{
3000debc: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
unsigned int i;
Scheduler_CBS_Server *the_server;
if ( params->budget <= 0 ||
3000dec0: e3530000 cmp r3, #0 <== NOT EXECUTED
int _Scheduler_CBS_Create_server (
Scheduler_CBS_Parameters *params,
Scheduler_CBS_Budget_overrun budget_overrun_callback,
rtems_id *server_id
)
{
3000dec4: e1a04000 mov r4, r0 <== NOT EXECUTED
3000dec8: e1a05001 mov r5, r1 <== NOT EXECUTED
3000decc: e1a07002 mov r7, r2 <== NOT EXECUTED
unsigned int i;
Scheduler_CBS_Server *the_server;
if ( params->budget <= 0 ||
3000ded0: da000029 ble 3000df7c <_Scheduler_CBS_Create_server+0xc4> <== NOT EXECUTED
3000ded4: e5903000 ldr r3, [r0] <== NOT EXECUTED
3000ded8: e3530000 cmp r3, #0 <== NOT EXECUTED
3000dedc: da000026 ble 3000df7c <_Scheduler_CBS_Create_server+0xc4> <== NOT EXECUTED
params->deadline <= 0 ||
params->budget >= SCHEDULER_EDF_PRIO_MSB ||
params->deadline >= SCHEDULER_EDF_PRIO_MSB )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
3000dee0: e59f30a4 ldr r3, [pc, #164] ; 3000df8c <_Scheduler_CBS_Create_server+0xd4><== NOT EXECUTED
3000dee4: e5930000 ldr r0, [r3] <== NOT EXECUTED
3000dee8: e3500000 cmp r0, #0 <== NOT EXECUTED
3000deec: 0a00000d beq 3000df28 <_Scheduler_CBS_Create_server+0x70> <== NOT EXECUTED
if ( !_Scheduler_CBS_Server_list[i] )
3000def0: e59f8098 ldr r8, [pc, #152] ; 3000df90 <_Scheduler_CBS_Create_server+0xd8><== NOT EXECUTED
3000def4: e5986000 ldr r6, [r8] <== NOT EXECUTED
3000def8: e596a000 ldr sl, [r6] <== NOT EXECUTED
3000defc: e35a0000 cmp sl, #0 <== NOT EXECUTED
3000df00: 11a02006 movne r2, r6 <== NOT EXECUTED
3000df04: 13a03000 movne r3, #0 <== NOT EXECUTED
3000df08: 1a000003 bne 3000df1c <_Scheduler_CBS_Create_server+0x64> <== NOT EXECUTED
3000df0c: ea000018 b 3000df74 <_Scheduler_CBS_Create_server+0xbc> <== NOT EXECUTED
3000df10: e5b21004 ldr r1, [r2, #4]! <== NOT EXECUTED
3000df14: e3510000 cmp r1, #0 <== NOT EXECUTED
3000df18: 0a000004 beq 3000df30 <_Scheduler_CBS_Create_server+0x78> <== NOT EXECUTED
params->deadline <= 0 ||
params->budget >= SCHEDULER_EDF_PRIO_MSB ||
params->deadline >= SCHEDULER_EDF_PRIO_MSB )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
3000df1c: e2833001 add r3, r3, #1 <== NOT EXECUTED
3000df20: e1530000 cmp r3, r0 <== NOT EXECUTED
3000df24: 1afffff9 bne 3000df10 <_Scheduler_CBS_Create_server+0x58> <== NOT EXECUTED
if ( !_Scheduler_CBS_Server_list[i] )
break;
}
if ( i == _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_FULL;
3000df28: e3e00019 mvn r0, #25 <== NOT EXECUTED
3000df2c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
params->deadline <= 0 ||
params->budget >= SCHEDULER_EDF_PRIO_MSB ||
params->deadline >= SCHEDULER_EDF_PRIO_MSB )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
3000df30: e1a0a103 lsl sl, r3, #2 <== NOT EXECUTED
}
if ( i == _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_FULL;
*server_id = i;
3000df34: e5873000 str r3, [r7] <== NOT EXECUTED
_Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)
_Workspace_Allocate( sizeof(Scheduler_CBS_Server) );
3000df38: e3a00010 mov r0, #16 <== NOT EXECUTED
3000df3c: eb00079d bl 3000fdb8 <_Workspace_Allocate> <== NOT EXECUTED
if ( i == _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_FULL;
*server_id = i;
_Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)
3000df40: e786000a str r0, [r6, sl] <== NOT EXECUTED
_Workspace_Allocate( sizeof(Scheduler_CBS_Server) );
the_server = _Scheduler_CBS_Server_list[*server_id];
3000df44: e5972000 ldr r2, [r7] <== NOT EXECUTED
3000df48: e5983000 ldr r3, [r8] <== NOT EXECUTED
3000df4c: e7933102 ldr r3, [r3, r2, lsl #2] <== NOT EXECUTED
if ( !the_server )
3000df50: e3530000 cmp r3, #0 <== NOT EXECUTED
3000df54: 0a00000a beq 3000df84 <_Scheduler_CBS_Create_server+0xcc> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NO_MEMORY;
the_server->parameters = *params;
the_server->task_id = -1;
3000df58: e3e02000 mvn r2, #0 <== NOT EXECUTED
_Workspace_Allocate( sizeof(Scheduler_CBS_Server) );
the_server = _Scheduler_CBS_Server_list[*server_id];
if ( !the_server )
return SCHEDULER_CBS_ERROR_NO_MEMORY;
the_server->parameters = *params;
3000df5c: e89400c0 ldm r4, {r6, r7} <== NOT EXECUTED
the_server->task_id = -1;
the_server->cbs_budget_overrun = budget_overrun_callback;
return SCHEDULER_CBS_OK;
3000df60: e3a00000 mov r0, #0 <== NOT EXECUTED
_Workspace_Allocate( sizeof(Scheduler_CBS_Server) );
the_server = _Scheduler_CBS_Server_list[*server_id];
if ( !the_server )
return SCHEDULER_CBS_ERROR_NO_MEMORY;
the_server->parameters = *params;
3000df64: e98300c0 stmib r3, {r6, r7} <== NOT EXECUTED
the_server->task_id = -1;
3000df68: e5832000 str r2, [r3] <== NOT EXECUTED
the_server->cbs_budget_overrun = budget_overrun_callback;
3000df6c: e583500c str r5, [r3, #12] <== NOT EXECUTED
return SCHEDULER_CBS_OK;
3000df70: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
params->budget >= SCHEDULER_EDF_PRIO_MSB ||
params->deadline >= SCHEDULER_EDF_PRIO_MSB )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
if ( !_Scheduler_CBS_Server_list[i] )
3000df74: e1a0300a mov r3, sl <== NOT EXECUTED
3000df78: eaffffed b 3000df34 <_Scheduler_CBS_Create_server+0x7c> <== NOT EXECUTED
if ( params->budget <= 0 ||
params->deadline <= 0 ||
params->budget >= SCHEDULER_EDF_PRIO_MSB ||
params->deadline >= SCHEDULER_EDF_PRIO_MSB )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
3000df7c: e3e00011 mvn r0, #17 <== NOT EXECUTED
3000df80: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
*server_id = i;
_Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)
_Workspace_Allocate( sizeof(Scheduler_CBS_Server) );
the_server = _Scheduler_CBS_Server_list[*server_id];
if ( !the_server )
return SCHEDULER_CBS_ERROR_NO_MEMORY;
3000df84: e3e00010 mvn r0, #16 <== NOT EXECUTED
the_server->parameters = *params;
the_server->task_id = -1;
the_server->cbs_budget_overrun = budget_overrun_callback;
return SCHEDULER_CBS_OK;
}
3000df88: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
3000df94 <_Scheduler_CBS_Destroy_server>:
)
{
int ret = SCHEDULER_CBS_OK;
rtems_id tid;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000df94: e59f3068 ldr r3, [pc, #104] ; 3000e004 <_Scheduler_CBS_Destroy_server+0x70><== NOT EXECUTED
#include <rtems/score/schedulercbs.h>
int _Scheduler_CBS_Destroy_server (
Scheduler_CBS_Server_id server_id
)
{
3000df98: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
int ret = SCHEDULER_CBS_OK;
rtems_id tid;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000df9c: e5933000 ldr r3, [r3] <== NOT EXECUTED
#include <rtems/score/schedulercbs.h>
int _Scheduler_CBS_Destroy_server (
Scheduler_CBS_Server_id server_id
)
{
3000dfa0: e1a04000 mov r4, r0 <== NOT EXECUTED
int ret = SCHEDULER_CBS_OK;
rtems_id tid;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000dfa4: e1530000 cmp r3, r0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
3000dfa8: 93e06011 mvnls r6, #17 <== NOT EXECUTED
)
{
int ret = SCHEDULER_CBS_OK;
rtems_id tid;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000dfac: 9a000012 bls 3000dffc <_Scheduler_CBS_Destroy_server+0x68> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
3000dfb0: e59f5050 ldr r5, [pc, #80] ; 3000e008 <_Scheduler_CBS_Destroy_server+0x74><== NOT EXECUTED
3000dfb4: e5953000 ldr r3, [r5] <== NOT EXECUTED
3000dfb8: e7933100 ldr r3, [r3, r0, lsl #2] <== NOT EXECUTED
3000dfbc: e3530000 cmp r3, #0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
3000dfc0: 03e06018 mvneq r6, #24 <== NOT EXECUTED
rtems_id tid;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
3000dfc4: 0a00000c beq 3000dffc <_Scheduler_CBS_Destroy_server+0x68> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
if ( (tid = _Scheduler_CBS_Server_list[server_id]->task_id) != -1 )
3000dfc8: e5931000 ldr r1, [r3] <== NOT EXECUTED
3000dfcc: e3710001 cmn r1, #1 <== NOT EXECUTED
int _Scheduler_CBS_Destroy_server (
Scheduler_CBS_Server_id server_id
)
{
int ret = SCHEDULER_CBS_OK;
3000dfd0: 03a06000 moveq r6, #0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
if ( (tid = _Scheduler_CBS_Server_list[server_id]->task_id) != -1 )
3000dfd4: 0a000003 beq 3000dfe8 <_Scheduler_CBS_Destroy_server+0x54> <== NOT EXECUTED
ret = _Scheduler_CBS_Detach_thread ( server_id, tid );
3000dfd8: eb00000b bl 3000e00c <_Scheduler_CBS_Detach_thread> <== NOT EXECUTED
3000dfdc: e5953000 ldr r3, [r5] <== NOT EXECUTED
3000dfe0: e1a06000 mov r6, r0 <== NOT EXECUTED
3000dfe4: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED
_Workspace_Free( _Scheduler_CBS_Server_list[server_id] );
3000dfe8: e1a00003 mov r0, r3 <== NOT EXECUTED
3000dfec: eb000777 bl 3000fdd0 <_Workspace_Free> <== NOT EXECUTED
_Scheduler_CBS_Server_list[server_id] = NULL;
3000dff0: e5953000 ldr r3, [r5] <== NOT EXECUTED
3000dff4: e3a02000 mov r2, #0 <== NOT EXECUTED
3000dff8: e7832104 str r2, [r3, r4, lsl #2] <== NOT EXECUTED
return ret;
}
3000dffc: e1a00006 mov r0, r6 <== NOT EXECUTED
3000e000: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
3000e00c <_Scheduler_CBS_Detach_thread>:
int _Scheduler_CBS_Detach_thread (
Scheduler_CBS_Server_id server_id,
rtems_id task_id
)
{
3000e00c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
3000e010: e1a05001 mov r5, r1 <== NOT EXECUTED
3000e014: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
3000e018: e1a04000 mov r4, r0 <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
Scheduler_CBS_Per_thread *sched_info;
the_thread = _Thread_Get(task_id, &location);
3000e01c: e1a0100d mov r1, sp <== NOT EXECUTED
3000e020: e1a00005 mov r0, r5 <== NOT EXECUTED
3000e024: eb000360 bl 3000edac <_Thread_Get> <== NOT EXECUTED
/* The routine _Thread_Get may disable dispatch and not enable again. */
if ( the_thread ) {
3000e028: e2506000 subs r6, r0, #0 <== NOT EXECUTED
_Thread_Enable_dispatch();
3000e02c: 1b000356 blne 3000ed8c <_Thread_Enable_dispatch> <== NOT EXECUTED
}
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e030: e59f3074 ldr r3, [pc, #116] ; 3000e0ac <_Scheduler_CBS_Detach_thread+0xa0><== NOT EXECUTED
3000e034: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000e038: e1530004 cmp r3, r4 <== NOT EXECUTED
3000e03c: 9a000018 bls 3000e0a4 <_Scheduler_CBS_Detach_thread+0x98> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !the_thread )
3000e040: e3560000 cmp r6, #0 <== NOT EXECUTED
3000e044: 0a000016 beq 3000e0a4 <_Scheduler_CBS_Detach_thread+0x98> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
/* Server is not valid. */
if ( !_Scheduler_CBS_Server_list[server_id] )
3000e048: e59f3060 ldr r3, [pc, #96] ; 3000e0b0 <_Scheduler_CBS_Detach_thread+0xa4><== NOT EXECUTED
3000e04c: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000e050: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED
3000e054: e3530000 cmp r3, #0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
3000e058: 03e00018 mvneq r0, #24 <== NOT EXECUTED
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !the_thread )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
/* Server is not valid. */
if ( !_Scheduler_CBS_Server_list[server_id] )
3000e05c: 0a00000e beq 3000e09c <_Scheduler_CBS_Detach_thread+0x90> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
/* Thread and server are not attached. */
if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )
3000e060: e5932000 ldr r2, [r3] <== NOT EXECUTED
3000e064: e1520005 cmp r2, r5 <== NOT EXECUTED
3000e068: 1a00000d bne 3000e0a4 <_Scheduler_CBS_Detach_thread+0x98> <== NOT EXECUTED
_Scheduler_CBS_Server_list[server_id]->task_id = -1;
sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
sched_info->cbs_server = NULL;
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
3000e06c: e59640a0 ldr r4, [r6, #160] ; 0xa0 <== NOT EXECUTED
the_thread->budget_callout = the_thread->Start.budget_callout;
3000e070: e596c0a4 ldr ip, [r6, #164] ; 0xa4 <== NOT EXECUTED
the_thread->is_preemptible = the_thread->Start.is_preemptible;
3000e074: e5d6109c ldrb r1, [r6, #156] ; 0x9c <== NOT EXECUTED
if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
_Scheduler_CBS_Server_list[server_id]->task_id = -1;
sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
sched_info->cbs_server = NULL;
3000e078: e5965088 ldr r5, [r6, #136] ; 0x88 <== NOT EXECUTED
3000e07c: e3a02000 mov r2, #0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
/* Thread and server are not attached. */
if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
_Scheduler_CBS_Server_list[server_id]->task_id = -1;
3000e080: e3e00000 mvn r0, #0 <== NOT EXECUTED
3000e084: e5830000 str r0, [r3] <== NOT EXECUTED
sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
sched_info->cbs_server = NULL;
3000e088: e5852018 str r2, [r5, #24] <== NOT EXECUTED
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
the_thread->budget_callout = the_thread->Start.budget_callout;
the_thread->is_preemptible = the_thread->Start.is_preemptible;
return SCHEDULER_CBS_OK;
3000e08c: e1a00002 mov r0, r2 <== NOT EXECUTED
_Scheduler_CBS_Server_list[server_id]->task_id = -1;
sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
sched_info->cbs_server = NULL;
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
3000e090: e5864078 str r4, [r6, #120] ; 0x78 <== NOT EXECUTED
the_thread->budget_callout = the_thread->Start.budget_callout;
3000e094: e586c07c str ip, [r6, #124] ; 0x7c <== NOT EXECUTED
the_thread->is_preemptible = the_thread->Start.is_preemptible;
3000e098: e5c61070 strb r1, [r6, #112] ; 0x70 <== NOT EXECUTED
return SCHEDULER_CBS_OK;
}
3000e09c: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000e0a0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
/* Server is not valid. */
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
/* Thread and server are not attached. */
if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
3000e0a4: e3e00011 mvn r0, #17 <== NOT EXECUTED
3000e0a8: eafffffb b 3000e09c <_Scheduler_CBS_Detach_thread+0x90> <== NOT EXECUTED
3000e0b4 <_Scheduler_CBS_Get_approved_budget>:
int _Scheduler_CBS_Get_approved_budget (
Scheduler_CBS_Server_id server_id,
time_t *approved_budget
)
{
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e0b4: e59f3030 ldr r3, [pc, #48] ; 3000e0ec <_Scheduler_CBS_Get_approved_budget+0x38><== NOT EXECUTED
3000e0b8: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000e0bc: e1530000 cmp r3, r0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
3000e0c0: 93e00011 mvnls r0, #17 <== NOT EXECUTED
int _Scheduler_CBS_Get_approved_budget (
Scheduler_CBS_Server_id server_id,
time_t *approved_budget
)
{
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e0c4: 912fff1e bxls lr <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
3000e0c8: e59f3020 ldr r3, [pc, #32] ; 3000e0f0 <_Scheduler_CBS_Get_approved_budget+0x3c><== NOT EXECUTED
3000e0cc: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000e0d0: e7933100 ldr r3, [r3, r0, lsl #2] <== NOT EXECUTED
3000e0d4: e3530000 cmp r3, #0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
*approved_budget = _Scheduler_CBS_Server_list[server_id]->parameters.budget;
3000e0d8: 15933008 ldrne r3, [r3, #8] <== NOT EXECUTED
return SCHEDULER_CBS_OK;
3000e0dc: 13a00000 movne r0, #0 <== NOT EXECUTED
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
*approved_budget = _Scheduler_CBS_Server_list[server_id]->parameters.budget;
3000e0e0: 15813000 strne r3, [r1] <== NOT EXECUTED
)
{
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
3000e0e4: 03e00018 mvneq r0, #24 <== NOT EXECUTED
*approved_budget = _Scheduler_CBS_Server_list[server_id]->parameters.budget;
return SCHEDULER_CBS_OK;
}
3000e0e8: e12fff1e bx lr <== NOT EXECUTED
3000e0f4 <_Scheduler_CBS_Get_execution_time>:
int _Scheduler_CBS_Get_execution_time (
Scheduler_CBS_Server_id server_id,
time_t *exec_time,
time_t *abs_time
)
{
3000e0f4: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e0f8: e59f3094 ldr r3, [pc, #148] ; 3000e194 <_Scheduler_CBS_Get_execution_time+0xa0><== NOT EXECUTED
int _Scheduler_CBS_Get_execution_time (
Scheduler_CBS_Server_id server_id,
time_t *exec_time,
time_t *abs_time
)
{
3000e0fc: e1a04000 mov r4, r0 <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e100: e5933000 ldr r3, [r3] <== NOT EXECUTED
int _Scheduler_CBS_Get_execution_time (
Scheduler_CBS_Server_id server_id,
time_t *exec_time,
time_t *abs_time
)
{
3000e104: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e108: e1530000 cmp r3, r0 <== NOT EXECUTED
int _Scheduler_CBS_Get_execution_time (
Scheduler_CBS_Server_id server_id,
time_t *exec_time,
time_t *abs_time
)
{
3000e10c: e1a06001 mov r6, r1 <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
3000e110: 93e00011 mvnls r0, #17 <== NOT EXECUTED
)
{
Objects_Locations location;
Thread_Control *the_thread;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e114: 9a000016 bls 3000e174 <_Scheduler_CBS_Get_execution_time+0x80><== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
3000e118: e59f5078 ldr r5, [pc, #120] ; 3000e198 <_Scheduler_CBS_Get_execution_time+0xa4><== NOT EXECUTED
3000e11c: e5953000 ldr r3, [r5] <== NOT EXECUTED
3000e120: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED
3000e124: e3530000 cmp r3, #0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
3000e128: 03e00018 mvneq r0, #24 <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
3000e12c: 0a000010 beq 3000e174 <_Scheduler_CBS_Get_execution_time+0x80><== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
if ( _Scheduler_CBS_Server_list[server_id]->task_id == -1 ) {
3000e130: e5930000 ldr r0, [r3] <== NOT EXECUTED
3000e134: e3700001 cmn r0, #1 <== NOT EXECUTED
*exec_time = 0;
3000e138: 03a00000 moveq r0, #0 <== NOT EXECUTED
3000e13c: 05810000 streq r0, [r1] <== NOT EXECUTED
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
if ( _Scheduler_CBS_Server_list[server_id]->task_id == -1 ) {
3000e140: 0a00000b beq 3000e174 <_Scheduler_CBS_Get_execution_time+0x80><== NOT EXECUTED
*exec_time = 0;
return SCHEDULER_CBS_OK;
}
the_thread = _Thread_Get(
3000e144: e1a0100d mov r1, sp <== NOT EXECUTED
3000e148: eb000317 bl 3000edac <_Thread_Get> <== NOT EXECUTED
_Scheduler_CBS_Server_list[server_id]->task_id,
&location
);
/* The routine _Thread_Get may disable dispatch and not enable again. */
if ( the_thread ) {
3000e14c: e2507000 subs r7, r0, #0 <== NOT EXECUTED
3000e150: 0a000009 beq 3000e17c <_Scheduler_CBS_Get_execution_time+0x88><== NOT EXECUTED
_Thread_Enable_dispatch();
3000e154: eb00030c bl 3000ed8c <_Thread_Enable_dispatch> <== NOT EXECUTED
*exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget -
3000e158: e5952000 ldr r2, [r5] <== NOT EXECUTED
3000e15c: e5973074 ldr r3, [r7, #116] ; 0x74 <== NOT EXECUTED
3000e160: e7922104 ldr r2, [r2, r4, lsl #2] <== NOT EXECUTED
the_thread->cpu_time_budget;
}
else {
*exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget;
}
return SCHEDULER_CBS_OK;
3000e164: e3a00000 mov r0, #0 <== NOT EXECUTED
&location
);
/* The routine _Thread_Get may disable dispatch and not enable again. */
if ( the_thread ) {
_Thread_Enable_dispatch();
*exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget -
3000e168: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED
3000e16c: e0633002 rsb r3, r3, r2 <== NOT EXECUTED
3000e170: e5863000 str r3, [r6] <== NOT EXECUTED
}
else {
*exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget;
}
return SCHEDULER_CBS_OK;
}
3000e174: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000e178: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
_Thread_Enable_dispatch();
*exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget -
the_thread->cpu_time_budget;
}
else {
*exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget;
3000e17c: e5953000 ldr r3, [r5] <== NOT EXECUTED
}
return SCHEDULER_CBS_OK;
3000e180: e1a00007 mov r0, r7 <== NOT EXECUTED
_Thread_Enable_dispatch();
*exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget -
the_thread->cpu_time_budget;
}
else {
*exec_time = _Scheduler_CBS_Server_list[server_id]->parameters.budget;
3000e184: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED
3000e188: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED
3000e18c: e5863000 str r3, [r6] <== NOT EXECUTED
3000e190: eafffff7 b 3000e174 <_Scheduler_CBS_Get_execution_time+0x80><== NOT EXECUTED
3000e19c <_Scheduler_CBS_Get_parameters>:
int _Scheduler_CBS_Get_parameters (
Scheduler_CBS_Server_id server_id,
Scheduler_CBS_Parameters *params
)
{
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e19c: e59f3038 ldr r3, [pc, #56] ; 3000e1dc <_Scheduler_CBS_Get_parameters+0x40><== NOT EXECUTED
3000e1a0: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000e1a4: e1530000 cmp r3, r0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
3000e1a8: 93e00011 mvnls r0, #17 <== NOT EXECUTED
int _Scheduler_CBS_Get_parameters (
Scheduler_CBS_Server_id server_id,
Scheduler_CBS_Parameters *params
)
{
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e1ac: 912fff1e bxls lr <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
3000e1b0: e59f3028 ldr r3, [pc, #40] ; 3000e1e0 <_Scheduler_CBS_Get_parameters+0x44><== NOT EXECUTED
3000e1b4: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000e1b8: e7933100 ldr r3, [r3, r0, lsl #2] <== NOT EXECUTED
3000e1bc: e3530000 cmp r3, #0 <== NOT EXECUTED
3000e1c0: 0a000003 beq 3000e1d4 <_Scheduler_CBS_Get_parameters+0x38> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
*params = _Scheduler_CBS_Server_list[server_id]->parameters;
3000e1c4: e993000c ldmib r3, {r2, r3} <== NOT EXECUTED
return SCHEDULER_CBS_OK;
3000e1c8: e3a00000 mov r0, #0 <== NOT EXECUTED
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
*params = _Scheduler_CBS_Server_list[server_id]->parameters;
3000e1cc: e881000c stm r1, {r2, r3} <== NOT EXECUTED
return SCHEDULER_CBS_OK;
3000e1d0: e12fff1e bx lr <== NOT EXECUTED
)
{
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
3000e1d4: e3e00018 mvn r0, #24 <== NOT EXECUTED
*params = _Scheduler_CBS_Server_list[server_id]->parameters;
return SCHEDULER_CBS_OK;
}
3000e1d8: e12fff1e bx lr <== NOT EXECUTED
3000e1e4 <_Scheduler_CBS_Get_remaining_budget>:
int _Scheduler_CBS_Get_remaining_budget (
Scheduler_CBS_Server_id server_id,
time_t *remaining_budget
)
{
3000e1e4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e1e8: e59f3078 ldr r3, [pc, #120] ; 3000e268 <_Scheduler_CBS_Get_remaining_budget+0x84><== NOT EXECUTED
int _Scheduler_CBS_Get_remaining_budget (
Scheduler_CBS_Server_id server_id,
time_t *remaining_budget
)
{
3000e1ec: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e1f0: e5933000 ldr r3, [r3] <== NOT EXECUTED
int _Scheduler_CBS_Get_remaining_budget (
Scheduler_CBS_Server_id server_id,
time_t *remaining_budget
)
{
3000e1f4: e1a04001 mov r4, r1 <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e1f8: e1530000 cmp r3, r0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
3000e1fc: 93e00011 mvnls r0, #17 <== NOT EXECUTED
)
{
Objects_Locations location;
Thread_Control *the_thread;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e200: 9a000012 bls 3000e250 <_Scheduler_CBS_Get_remaining_budget+0x6c><== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
3000e204: e59f3060 ldr r3, [pc, #96] ; 3000e26c <_Scheduler_CBS_Get_remaining_budget+0x88><== NOT EXECUTED
3000e208: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000e20c: e7933100 ldr r3, [r3, r0, lsl #2] <== NOT EXECUTED
3000e210: e3530000 cmp r3, #0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
3000e214: 03e00018 mvneq r0, #24 <== NOT EXECUTED
Objects_Locations location;
Thread_Control *the_thread;
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
3000e218: 0a00000c beq 3000e250 <_Scheduler_CBS_Get_remaining_budget+0x6c><== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
if ( _Scheduler_CBS_Server_list[server_id]->task_id == -1 ) {
3000e21c: e5930000 ldr r0, [r3] <== NOT EXECUTED
3000e220: e3700001 cmn r0, #1 <== NOT EXECUTED
3000e224: 0a00000b beq 3000e258 <_Scheduler_CBS_Get_remaining_budget+0x74><== NOT EXECUTED
*remaining_budget = _Scheduler_CBS_Server_list[server_id]->parameters.budget;
return SCHEDULER_CBS_OK;
}
the_thread = _Thread_Get(
3000e228: e1a0100d mov r1, sp <== NOT EXECUTED
3000e22c: eb0002de bl 3000edac <_Thread_Get> <== NOT EXECUTED
_Scheduler_CBS_Server_list[server_id]->task_id,
&location
);
/* The routine _Thread_Get may disable dispatch and not enable again. */
if ( the_thread ) {
3000e230: e2505000 subs r5, r0, #0 <== NOT EXECUTED
_Thread_Enable_dispatch();
*remaining_budget = the_thread->cpu_time_budget;
}
else {
*remaining_budget = 0;
3000e234: 05845000 streq r5, [r4] <== NOT EXECUTED
}
return SCHEDULER_CBS_OK;
3000e238: 01a00005 moveq r0, r5 <== NOT EXECUTED
the_thread = _Thread_Get(
_Scheduler_CBS_Server_list[server_id]->task_id,
&location
);
/* The routine _Thread_Get may disable dispatch and not enable again. */
if ( the_thread ) {
3000e23c: 0a000003 beq 3000e250 <_Scheduler_CBS_Get_remaining_budget+0x6c><== NOT EXECUTED
_Thread_Enable_dispatch();
3000e240: eb0002d1 bl 3000ed8c <_Thread_Enable_dispatch> <== NOT EXECUTED
*remaining_budget = the_thread->cpu_time_budget;
3000e244: e5953074 ldr r3, [r5, #116] ; 0x74 <== NOT EXECUTED
}
else {
*remaining_budget = 0;
}
return SCHEDULER_CBS_OK;
3000e248: e3a00000 mov r0, #0 <== NOT EXECUTED
&location
);
/* The routine _Thread_Get may disable dispatch and not enable again. */
if ( the_thread ) {
_Thread_Enable_dispatch();
*remaining_budget = the_thread->cpu_time_budget;
3000e24c: e5843000 str r3, [r4] <== NOT EXECUTED
else {
*remaining_budget = 0;
}
return SCHEDULER_CBS_OK;
}
3000e250: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000e254: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
if ( _Scheduler_CBS_Server_list[server_id]->task_id == -1 ) {
*remaining_budget = _Scheduler_CBS_Server_list[server_id]->parameters.budget;
3000e258: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED
return SCHEDULER_CBS_OK;
3000e25c: e3a00000 mov r0, #0 <== NOT EXECUTED
if ( server_id >= _Scheduler_CBS_Maximum_servers )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
return SCHEDULER_CBS_ERROR_NOSERVER;
if ( _Scheduler_CBS_Server_list[server_id]->task_id == -1 ) {
*remaining_budget = _Scheduler_CBS_Server_list[server_id]->parameters.budget;
3000e260: e5813000 str r3, [r1] <== NOT EXECUTED
return SCHEDULER_CBS_OK;
3000e264: eafffff9 b 3000e250 <_Scheduler_CBS_Get_remaining_budget+0x6c><== NOT EXECUTED
3000e270 <_Scheduler_CBS_Get_server_id>:
rtems_id task_id,
Scheduler_CBS_Server_id *server_id
)
{
unsigned int i;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
3000e270: e59f3054 ldr r3, [pc, #84] ; 3000e2cc <_Scheduler_CBS_Get_server_id+0x5c><== NOT EXECUTED
int _Scheduler_CBS_Get_server_id (
rtems_id task_id,
Scheduler_CBS_Server_id *server_id
)
{
3000e274: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED
unsigned int i;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
3000e278: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000e27c: e3530000 cmp r3, #0 <== NOT EXECUTED
3000e280: 0a00000b beq 3000e2b4 <_Scheduler_CBS_Get_server_id+0x44> <== NOT EXECUTED
3000e284: e59fc044 ldr ip, [pc, #68] ; 3000e2d0 <_Scheduler_CBS_Get_server_id+0x60><== NOT EXECUTED
3000e288: e3a02000 mov r2, #0 <== NOT EXECUTED
3000e28c: e59c4000 ldr r4, [ip] <== NOT EXECUTED
if ( _Scheduler_CBS_Server_list[i] &&
3000e290: e494c004 ldr ip, [r4], #4 <== NOT EXECUTED
3000e294: e35c0000 cmp ip, #0 <== NOT EXECUTED
3000e298: 0a000002 beq 3000e2a8 <_Scheduler_CBS_Get_server_id+0x38> <== NOT EXECUTED
3000e29c: e59cc000 ldr ip, [ip] <== NOT EXECUTED
3000e2a0: e15c0000 cmp ip, r0 <== NOT EXECUTED
3000e2a4: 0a000005 beq 3000e2c0 <_Scheduler_CBS_Get_server_id+0x50> <== NOT EXECUTED
rtems_id task_id,
Scheduler_CBS_Server_id *server_id
)
{
unsigned int i;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
3000e2a8: e2822001 add r2, r2, #1 <== NOT EXECUTED
3000e2ac: e1520003 cmp r2, r3 <== NOT EXECUTED
3000e2b0: 1afffff6 bne 3000e290 <_Scheduler_CBS_Get_server_id+0x20> <== NOT EXECUTED
_Scheduler_CBS_Server_list[i]->task_id == task_id ) {
*server_id = i;
return SCHEDULER_CBS_OK;
}
}
return SCHEDULER_CBS_ERROR_NOSERVER;
3000e2b4: e3e00018 mvn r0, #24 <== NOT EXECUTED
}
3000e2b8: e8bd0010 pop {r4} <== NOT EXECUTED
3000e2bc: e12fff1e bx lr <== NOT EXECUTED
{
unsigned int i;
for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
if ( _Scheduler_CBS_Server_list[i] &&
_Scheduler_CBS_Server_list[i]->task_id == task_id ) {
*server_id = i;
3000e2c0: e5812000 str r2, [r1] <== NOT EXECUTED
return SCHEDULER_CBS_OK;
3000e2c4: e3a00000 mov r0, #0 <== NOT EXECUTED
3000e2c8: eafffffa b 3000e2b8 <_Scheduler_CBS_Get_server_id+0x48> <== NOT EXECUTED
3000e338 <_Scheduler_CBS_Initialize>:
int _Scheduler_CBS_Initialize(void)
{
3000e338: e92d4010 push {r4, lr} <== NOT EXECUTED
unsigned int i;
_Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
3000e33c: e59f4054 ldr r4, [pc, #84] ; 3000e398 <_Scheduler_CBS_Initialize+0x60><== NOT EXECUTED
3000e340: e5940000 ldr r0, [r4] <== NOT EXECUTED
3000e344: e1a00100 lsl r0, r0, #2 <== NOT EXECUTED
3000e348: eb00069a bl 3000fdb8 <_Workspace_Allocate> <== NOT EXECUTED
3000e34c: e59f1048 ldr r1, [pc, #72] ; 3000e39c <_Scheduler_CBS_Initialize+0x64><== NOT EXECUTED
_Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
if ( !_Scheduler_CBS_Server_list )
3000e350: e3500000 cmp r0, #0 <== NOT EXECUTED
}
int _Scheduler_CBS_Initialize(void)
{
unsigned int i;
_Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
3000e354: e5810000 str r0, [r1] <== NOT EXECUTED
_Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
if ( !_Scheduler_CBS_Server_list )
return SCHEDULER_CBS_ERROR_NO_MEMORY;
3000e358: 03e00010 mvneq r0, #16 <== NOT EXECUTED
int _Scheduler_CBS_Initialize(void)
{
unsigned int i;
_Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
_Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
if ( !_Scheduler_CBS_Server_list )
3000e35c: 08bd8010 popeq {r4, pc} <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NO_MEMORY;
for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) {
3000e360: e5942000 ldr r2, [r4] <== NOT EXECUTED
3000e364: e3520000 cmp r2, #0 <== NOT EXECUTED
_Scheduler_CBS_Server_list[i] = NULL;
}
return SCHEDULER_CBS_OK;
3000e368: 01a00002 moveq r0, r2 <== NOT EXECUTED
unsigned int i;
_Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
_Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
if ( !_Scheduler_CBS_Server_list )
return SCHEDULER_CBS_ERROR_NO_MEMORY;
for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) {
3000e36c: 08bd8010 popeq {r4, pc} <== NOT EXECUTED
3000e370: e3a03000 mov r3, #0 <== NOT EXECUTED
_Scheduler_CBS_Server_list[i] = NULL;
3000e374: e1a0c003 mov ip, r3 <== NOT EXECUTED
3000e378: ea000000 b 3000e380 <_Scheduler_CBS_Initialize+0x48> <== NOT EXECUTED
unsigned int i;
_Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
_Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
if ( !_Scheduler_CBS_Server_list )
return SCHEDULER_CBS_ERROR_NO_MEMORY;
for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) {
3000e37c: e5910000 ldr r0, [r1] <== NOT EXECUTED
_Scheduler_CBS_Server_list[i] = NULL;
3000e380: e780c103 str ip, [r0, r3, lsl #2] <== NOT EXECUTED
unsigned int i;
_Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
_Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
if ( !_Scheduler_CBS_Server_list )
return SCHEDULER_CBS_ERROR_NO_MEMORY;
for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) {
3000e384: e2833001 add r3, r3, #1 <== NOT EXECUTED
3000e388: e1530002 cmp r3, r2 <== NOT EXECUTED
3000e38c: 1afffffa bne 3000e37c <_Scheduler_CBS_Initialize+0x44> <== NOT EXECUTED
_Scheduler_CBS_Server_list[i] = NULL;
}
return SCHEDULER_CBS_OK;
3000e390: e3a00000 mov r0, #0 <== NOT EXECUTED
}
3000e394: e8bd8010 pop {r4, pc} <== NOT EXECUTED
3000cf5c <_Scheduler_CBS_Release_job>:
{
Priority_Control new_priority;
Scheduler_CBS_Per_thread *sched_info =
(Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
Scheduler_CBS_Server *serv_info =
(Scheduler_CBS_Server *) sched_info->cbs_server;
3000cf5c: e5903088 ldr r3, [r0, #136] ; 0x88 <== NOT EXECUTED
if (deadline) {
3000cf60: e3510000 cmp r1, #0 <== NOT EXECUTED
)
{
Priority_Control new_priority;
Scheduler_CBS_Per_thread *sched_info =
(Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
Scheduler_CBS_Server *serv_info =
3000cf64: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED
(Scheduler_CBS_Server *) sched_info->cbs_server;
if (deadline) {
3000cf68: 0a00000b beq 3000cf9c <_Scheduler_CBS_Release_job+0x40> <== NOT EXECUTED
/* Initializing or shifting deadline. */
if (serv_info)
3000cf6c: e3530000 cmp r3, #0 <== NOT EXECUTED
3000cf70: 0a00000d beq 3000cfac <_Scheduler_CBS_Release_job+0x50> <== NOT EXECUTED
new_priority = (_Watchdog_Ticks_since_boot + serv_info->parameters.deadline)
3000cf74: e59f1044 ldr r1, [pc, #68] ; 3000cfc0 <_Scheduler_CBS_Release_job+0x64><== NOT EXECUTED
3000cf78: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED
3000cf7c: e5911000 ldr r1, [r1] <== NOT EXECUTED
3000cf80: e0811002 add r1, r1, r2 <== NOT EXECUTED
3000cf84: e3c11102 bic r1, r1, #-2147483648 ; 0x80000000 <== NOT EXECUTED
new_priority = the_thread->Start.initial_priority;
}
/* Budget replenishment for the next job. */
if (serv_info)
the_thread->cpu_time_budget = serv_info->parameters.budget;
3000cf88: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED
3000cf8c: e5803074 str r3, [r0, #116] ; 0x74 <== NOT EXECUTED
the_thread->real_priority = new_priority;
_Thread_Change_priority(the_thread, new_priority, true);
3000cf90: e3a02001 mov r2, #1 <== NOT EXECUTED
/* Budget replenishment for the next job. */
if (serv_info)
the_thread->cpu_time_budget = serv_info->parameters.budget;
the_thread->real_priority = new_priority;
3000cf94: e5801018 str r1, [r0, #24] <== NOT EXECUTED
_Thread_Change_priority(the_thread, new_priority, true);
3000cf98: ea00011e b 3000d418 <_Thread_Change_priority> <== NOT EXECUTED
/* Switch back to background priority. */
new_priority = the_thread->Start.initial_priority;
}
/* Budget replenishment for the next job. */
if (serv_info)
3000cf9c: e3530000 cmp r3, #0 <== NOT EXECUTED
new_priority = (_Watchdog_Ticks_since_boot + deadline)
& ~SCHEDULER_EDF_PRIO_MSB;
}
else {
/* Switch back to background priority. */
new_priority = the_thread->Start.initial_priority;
3000cfa0: e59010ac ldr r1, [r0, #172] ; 0xac <== NOT EXECUTED
}
/* Budget replenishment for the next job. */
if (serv_info)
3000cfa4: 1afffff7 bne 3000cf88 <_Scheduler_CBS_Release_job+0x2c> <== NOT EXECUTED
3000cfa8: eafffff8 b 3000cf90 <_Scheduler_CBS_Release_job+0x34> <== NOT EXECUTED
/* Initializing or shifting deadline. */
if (serv_info)
new_priority = (_Watchdog_Ticks_since_boot + serv_info->parameters.deadline)
& ~SCHEDULER_EDF_PRIO_MSB;
else
new_priority = (_Watchdog_Ticks_since_boot + deadline)
3000cfac: e59f300c ldr r3, [pc, #12] ; 3000cfc0 <_Scheduler_CBS_Release_job+0x64><== NOT EXECUTED
3000cfb0: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000cfb4: e0811003 add r1, r1, r3 <== NOT EXECUTED
3000cfb8: e3c11102 bic r1, r1, #-2147483648 ; 0x80000000 <== NOT EXECUTED
3000cfbc: eafffff3 b 3000cf90 <_Scheduler_CBS_Release_job+0x34> <== NOT EXECUTED
3000e408 <_Scheduler_CBS_Set_parameters>:
int _Scheduler_CBS_Set_parameters (
Scheduler_CBS_Server_id server_id,
Scheduler_CBS_Parameters *params
)
{
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e408: e59f3054 ldr r3, [pc, #84] ; 3000e464 <_Scheduler_CBS_Set_parameters+0x5c><== NOT EXECUTED
int _Scheduler_CBS_Set_parameters (
Scheduler_CBS_Server_id server_id,
Scheduler_CBS_Parameters *params
)
{
3000e40c: e92d0030 push {r4, r5} <== NOT EXECUTED
if ( server_id >= _Scheduler_CBS_Maximum_servers )
3000e410: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000e414: e1530000 cmp r3, r0 <== NOT EXECUTED
3000e418: 9a00000f bls 3000e45c <_Scheduler_CBS_Set_parameters+0x54> <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( params->budget <= 0 ||
3000e41c: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED
3000e420: e3530000 cmp r3, #0 <== NOT EXECUTED
3000e424: da00000c ble 3000e45c <_Scheduler_CBS_Set_parameters+0x54> <== NOT EXECUTED
3000e428: e5913000 ldr r3, [r1] <== NOT EXECUTED
3000e42c: e3530000 cmp r3, #0 <== NOT EXECUTED
3000e430: da000009 ble 3000e45c <_Scheduler_CBS_Set_parameters+0x54> <== NOT EXECUTED
params->deadline <= 0 ||
params->budget >= SCHEDULER_EDF_PRIO_MSB ||
params->deadline >= SCHEDULER_EDF_PRIO_MSB )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
if ( !_Scheduler_CBS_Server_list[server_id] )
3000e434: e59f302c ldr r3, [pc, #44] ; 3000e468 <_Scheduler_CBS_Set_parameters+0x60><== NOT EXECUTED
3000e438: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000e43c: e7933100 ldr r3, [r3, r0, lsl #2] <== NOT EXECUTED
3000e440: e3530000 cmp r3, #0 <== NOT EXECUTED
return SCHEDULER_CBS_ERROR_NOSERVER;
3000e444: 03e00018 mvneq r0, #24 <== NOT EXECUTED
_Scheduler_CBS_Server_list[server_id]->parameters = *params;
3000e448: 18910030 ldmne r1, {r4, r5} <== NOT EXECUTED
3000e44c: 19830030 stmibne r3, {r4, r5} <== NOT EXECUTED
return SCHEDULER_CBS_OK;
3000e450: 13a00000 movne r0, #0 <== NOT EXECUTED
}
3000e454: e8bd0030 pop {r4, r5} <== NOT EXECUTED
3000e458: e12fff1e bx lr <== NOT EXECUTED
if ( params->budget <= 0 ||
params->deadline <= 0 ||
params->budget >= SCHEDULER_EDF_PRIO_MSB ||
params->deadline >= SCHEDULER_EDF_PRIO_MSB )
return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;
3000e45c: e3e00011 mvn r0, #17 <== NOT EXECUTED
3000e460: eafffffb b 3000e454 <_Scheduler_CBS_Set_parameters+0x4c> <== NOT EXECUTED
3000cfc4 <_Scheduler_CBS_Unblock>:
#include <rtems/score/schedulercbs.h>
void _Scheduler_CBS_Unblock(
Thread_Control *the_thread
)
{
3000cfc4: e92d4030 push {r4, r5, lr}
3000cfc8: e1a04000 mov r4, r0
Scheduler_CBS_Per_thread *sched_info;
Scheduler_CBS_Server *serv_info;
Priority_Control new_priority;
_Scheduler_EDF_Enqueue(the_thread);
3000cfcc: eb000042 bl 3000d0dc <_Scheduler_EDF_Enqueue>
/* TODO: flash critical section? */
sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
serv_info = (Scheduler_CBS_Server *) sched_info->cbs_server;
3000cfd0: e5943088 ldr r3, [r4, #136] ; 0x88
3000cfd4: e5933018 ldr r3, [r3, #24]
* Late unblock rule for deadline-driven tasks. The remaining time to
* deadline must be sufficient to serve the remaining computation time
* without increased utilization of this task. It might cause a deadline
* miss of another task.
*/
if (serv_info) {
3000cfd8: e3530000 cmp r3, #0
3000cfdc: 0a00000a beq 3000d00c <_Scheduler_CBS_Unblock+0x48>
time_t deadline = serv_info->parameters.deadline;
time_t budget = serv_info->parameters.budget;
time_t deadline_left = the_thread->cpu_time_budget;
time_t budget_left = the_thread->real_priority -
3000cfe0: e59f10a4 ldr r1, [pc, #164] ; 3000d08c <_Scheduler_CBS_Unblock+0xc8><== NOT EXECUTED
3000cfe4: e5942018 ldr r2, [r4, #24] <== NOT EXECUTED
3000cfe8: e5911000 ldr r1, [r1] <== NOT EXECUTED
_Watchdog_Ticks_since_boot;
if ( deadline*budget_left > budget*deadline_left ) {
3000cfec: e593c004 ldr ip, [r3, #4] <== NOT EXECUTED
3000cff0: e5940074 ldr r0, [r4, #116] ; 0x74 <== NOT EXECUTED
3000cff4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED
*/
if (serv_info) {
time_t deadline = serv_info->parameters.deadline;
time_t budget = serv_info->parameters.budget;
time_t deadline_left = the_thread->cpu_time_budget;
time_t budget_left = the_thread->real_priority -
3000cff8: e0611002 rsb r1, r1, r2 <== NOT EXECUTED
_Watchdog_Ticks_since_boot;
if ( deadline*budget_left > budget*deadline_left ) {
3000cffc: e001019c mul r1, ip, r1 <== NOT EXECUTED
3000d000: e0030390 mul r3, r0, r3 <== NOT EXECUTED
3000d004: e1510003 cmp r1, r3 <== NOT EXECUTED
3000d008: ca000010 bgt 3000d050 <_Scheduler_CBS_Unblock+0x8c> <== NOT EXECUTED
/* Put late unblocked task to background until the end of period. */
new_priority = the_thread->Start.initial_priority;
if ( the_thread->real_priority != new_priority )
the_thread->real_priority = new_priority;
if ( the_thread->current_priority != new_priority )
_Thread_Change_priority(the_thread, new_priority, true);
3000d00c: e5940014 ldr r0, [r4, #20]
* 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 ( _Scheduler_Is_priority_higher_than( the_thread->current_priority,
3000d010: e59f5078 ldr r5, [pc, #120] ; 3000d090 <_Scheduler_CBS_Unblock+0xcc>
3000d014: e595300c ldr r3, [r5, #12]
3000d018: e5931014 ldr r1, [r3, #20]
3000d01c: e59f3070 ldr r3, [pc, #112] ; 3000d094 <_Scheduler_CBS_Unblock+0xd0>
3000d020: e1a0e00f mov lr, pc
3000d024: e593f030 ldr pc, [r3, #48] ; 0x30
3000d028: e3500000 cmp r0, #0
3000d02c: d8bd8030 pople {r4, r5, pc}
_Thread_Heir->current_priority)) {
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
3000d030: e5953008 ldr r3, [r5, #8]
* 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 ( _Scheduler_Is_priority_higher_than( the_thread->current_priority,
_Thread_Heir->current_priority)) {
_Thread_Heir = the_thread;
3000d034: e585400c str r4, [r5, #12]
if ( _Thread_Executing->is_preemptible ||
3000d038: e5d33070 ldrb r3, [r3, #112] ; 0x70
3000d03c: e3530000 cmp r3, #0
3000d040: 0a00000c beq 3000d078 <_Scheduler_CBS_Unblock+0xb4>
the_thread->current_priority == 0 )
_Thread_Dispatch_necessary = true;
3000d044: e3a03001 mov r3, #1
3000d048: e5c53004 strb r3, [r5, #4]
3000d04c: e8bd8030 pop {r4, r5, pc}
time_t budget_left = the_thread->real_priority -
_Watchdog_Ticks_since_boot;
if ( deadline*budget_left > budget*deadline_left ) {
/* Put late unblocked task to background until the end of period. */
new_priority = the_thread->Start.initial_priority;
3000d050: e59410ac ldr r1, [r4, #172] ; 0xac <== NOT EXECUTED
if ( the_thread->real_priority != new_priority )
the_thread->real_priority = new_priority;
if ( the_thread->current_priority != new_priority )
3000d054: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED
_Watchdog_Ticks_since_boot;
if ( deadline*budget_left > budget*deadline_left ) {
/* Put late unblocked task to background until the end of period. */
new_priority = the_thread->Start.initial_priority;
if ( the_thread->real_priority != new_priority )
3000d058: e1520001 cmp r2, r1 <== NOT EXECUTED
the_thread->real_priority = new_priority;
3000d05c: 15841018 strne r1, [r4, #24] <== NOT EXECUTED
if ( the_thread->current_priority != new_priority )
3000d060: e1500001 cmp r0, r1 <== NOT EXECUTED
3000d064: 0affffe9 beq 3000d010 <_Scheduler_CBS_Unblock+0x4c> <== NOT EXECUTED
_Thread_Change_priority(the_thread, new_priority, true);
3000d068: e1a00004 mov r0, r4 <== NOT EXECUTED
3000d06c: e3a02001 mov r2, #1 <== NOT EXECUTED
3000d070: eb0000e8 bl 3000d418 <_Thread_Change_priority> <== NOT EXECUTED
3000d074: eaffffe4 b 3000d00c <_Scheduler_CBS_Unblock+0x48> <== NOT EXECUTED
* a pseudo-ISR system task, we need to do a context switch.
*/
if ( _Scheduler_Is_priority_higher_than( the_thread->current_priority,
_Thread_Heir->current_priority)) {
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
3000d078: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED
3000d07c: e3530000 cmp r3, #0 <== NOT EXECUTED
the_thread->current_priority == 0 )
_Thread_Dispatch_necessary = true;
3000d080: 03a03001 moveq r3, #1 <== NOT EXECUTED
3000d084: 05c53004 strbeq r3, [r5, #4] <== NOT EXECUTED
3000d088: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
3000d098 <_Scheduler_EDF_Block>:
#include <rtems/score/thread.h>
void _Scheduler_EDF_Block(
Thread_Control *the_thread
)
{
3000d098: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_heir (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Heir );
3000d09c: e59f5030 ldr r5, [pc, #48] ; 3000d0d4 <_Scheduler_EDF_Block+0x3c><== NOT EXECUTED
3000d0a0: e1a04000 mov r4, r0 <== NOT EXECUTED
_Scheduler_EDF_Extract( the_thread );
3000d0a4: eb000015 bl 3000d100 <_Scheduler_EDF_Extract> <== NOT EXECUTED
/* TODO: flash critical section? */
if ( _Thread_Is_heir( the_thread ) )
3000d0a8: e595300c ldr r3, [r5, #12] <== NOT EXECUTED
3000d0ac: e1540003 cmp r4, r3 <== NOT EXECUTED
3000d0b0: 0a000005 beq 3000d0cc <_Scheduler_EDF_Block+0x34> <== NOT EXECUTED
_Scheduler_EDF_Schedule();
if ( _Thread_Is_executing( the_thread ) )
3000d0b4: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED
3000d0b8: e1540003 cmp r4, r3 <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
3000d0bc: 059f3010 ldreq r3, [pc, #16] ; 3000d0d4 <_Scheduler_EDF_Block+0x3c><== NOT EXECUTED
3000d0c0: 03a02001 moveq r2, #1 <== NOT EXECUTED
3000d0c4: 05c32004 strbeq r2, [r3, #4] <== NOT EXECUTED
3000d0c8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
_Scheduler_EDF_Extract( the_thread );
/* TODO: flash critical section? */
if ( _Thread_Is_heir( the_thread ) )
_Scheduler_EDF_Schedule();
3000d0cc: eb00003b bl 3000d1c0 <_Scheduler_EDF_Schedule> <== NOT EXECUTED
3000d0d0: eafffff7 b 3000d0b4 <_Scheduler_EDF_Block+0x1c> <== NOT EXECUTED
3000d0d8 <_Scheduler_EDF_Enqueue_first>:
void _Scheduler_EDF_Enqueue_first(
Thread_Control *the_thread
)
{
_Scheduler_EDF_Enqueue(the_thread);
3000d0d8: eaffffff b 3000d0dc <_Scheduler_EDF_Enqueue> <== NOT EXECUTED
3000d100 <_Scheduler_EDF_Extract>:
#include <rtems/score/scheduleredf.h>
void _Scheduler_EDF_Extract(
Thread_Control *the_thread
)
{
3000d100: e92d4010 push {r4, lr} <== NOT EXECUTED
Scheduler_EDF_Per_thread *sched_info =
3000d104: e5904088 ldr r4, [r0, #136] ; 0x88 <== NOT EXECUTED
(Scheduler_EDF_Per_thread*) the_thread->scheduler_info;
RBTree_Node *node = &(sched_info->Node);
_RBTree_Extract( &_Scheduler_EDF_Ready_queue, node );
3000d108: e59f0010 ldr r0, [pc, #16] ; 3000d120 <_Scheduler_EDF_Extract+0x20><== NOT EXECUTED
3000d10c: e2841004 add r1, r4, #4 <== NOT EXECUTED
3000d110: eb000fb9 bl 30010ffc <_RBTree_Extract> <== NOT EXECUTED
sched_info->queue_state = SCHEDULER_EDF_QUEUE_STATE_NOT_PRESENTLY;
3000d114: e3a03000 mov r3, #0 <== NOT EXECUTED
3000d118: e5843014 str r3, [r4, #20] <== NOT EXECUTED
}
3000d11c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
3000d124 <_Scheduler_EDF_Free>:
void _Scheduler_EDF_Free(
Thread_Control *the_thread
)
{
_Workspace_Free( the_thread->scheduler_info );
3000d124: e5900088 ldr r0, [r0, #136] ; 0x88 <== NOT EXECUTED
3000d128: ea00062c b 3000e9e0 <_Workspace_Free> <== NOT EXECUTED
3000d078 <_Scheduler_EDF_Release_job>:
uint32_t deadline
)
{
Priority_Control new_priority;
if (deadline) {
3000d078: e3510000 cmp r1, #0 <== NOT EXECUTED
/* Initializing or shifting deadline. */
new_priority = (_Watchdog_Ticks_since_boot + deadline)
3000d07c: 159f3018 ldrne r3, [pc, #24] ; 3000d09c <_Scheduler_EDF_Release_job+0x24><== NOT EXECUTED
& ~SCHEDULER_EDF_PRIO_MSB;
}
else {
/* Switch back to background priority. */
new_priority = the_thread->Start.initial_priority;
3000d080: 059010ac ldreq r1, [r0, #172] ; 0xac <== NOT EXECUTED
{
Priority_Control new_priority;
if (deadline) {
/* Initializing or shifting deadline. */
new_priority = (_Watchdog_Ticks_since_boot + deadline)
3000d084: 15933000 ldrne r3, [r3] <== NOT EXECUTED
/* Switch back to background priority. */
new_priority = the_thread->Start.initial_priority;
}
the_thread->real_priority = new_priority;
_Thread_Change_priority(the_thread, new_priority, true);
3000d088: e3a02001 mov r2, #1 <== NOT EXECUTED
{
Priority_Control new_priority;
if (deadline) {
/* Initializing or shifting deadline. */
new_priority = (_Watchdog_Ticks_since_boot + deadline)
3000d08c: 10811003 addne r1, r1, r3 <== NOT EXECUTED
3000d090: 13c11102 bicne r1, r1, #-2147483648 ; 0x80000000 <== NOT EXECUTED
else {
/* Switch back to background priority. */
new_priority = the_thread->Start.initial_priority;
}
the_thread->real_priority = new_priority;
3000d094: e5801018 str r1, [r0, #24] <== NOT EXECUTED
_Thread_Change_priority(the_thread, new_priority, true);
3000d098: ea0000b1 b 3000d364 <_Thread_Change_priority> <== NOT EXECUTED
3000d1c0 <_Scheduler_EDF_Schedule>:
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_First(
const RBTree_Control *the_rbtree,
RBTree_Direction dir
)
{
return the_rbtree->first[dir];
3000d1c0: e59f3010 ldr r3, [pc, #16] ; 3000d1d8 <_Scheduler_EDF_Schedule+0x18><== NOT EXECUTED
{
RBTree_Node *first = _RBTree_First(&_Scheduler_EDF_Ready_queue, RBT_LEFT);
Scheduler_EDF_Per_thread *sched_info =
_RBTree_Container_of(first, Scheduler_EDF_Per_thread, Node);
_Thread_Heir = (Thread_Control *) sched_info->thread;
3000d1c4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED
3000d1c8: e5132004 ldr r2, [r3, #-4] <== NOT EXECUTED
3000d1cc: e59f3008 ldr r3, [pc, #8] ; 3000d1dc <_Scheduler_EDF_Schedule+0x1c><== NOT EXECUTED
3000d1d0: e583200c str r2, [r3, #12] <== NOT EXECUTED
}
3000d1d4: e12fff1e bx lr <== NOT EXECUTED
3000d0c0 <_Scheduler_EDF_Unblock>:
#include <rtems/score/scheduleredf.h>
void _Scheduler_EDF_Unblock(
Thread_Control *the_thread
)
{
3000d0c0: e92d4030 push {r4, r5, lr}
* 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 ( _Scheduler_Is_priority_lower_than(
3000d0c4: e59f4058 ldr r4, [pc, #88] ; 3000d124 <_Scheduler_EDF_Unblock+0x64>
#include <rtems/score/scheduleredf.h>
void _Scheduler_EDF_Unblock(
Thread_Control *the_thread
)
{
3000d0c8: e1a05000 mov r5, r0
_Scheduler_EDF_Enqueue(the_thread);
3000d0cc: ebffffb0 bl 3000cf94 <_Scheduler_EDF_Enqueue>
* 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 ( _Scheduler_Is_priority_lower_than(
3000d0d0: e594300c ldr r3, [r4, #12]
3000d0d4: e5951014 ldr r1, [r5, #20]
3000d0d8: e5930014 ldr r0, [r3, #20]
3000d0dc: e59f3044 ldr r3, [pc, #68] ; 3000d128 <_Scheduler_EDF_Unblock+0x68>
3000d0e0: e1a0e00f mov lr, pc
3000d0e4: e593f030 ldr pc, [r3, #48] ; 0x30
3000d0e8: e3500000 cmp r0, #0
3000d0ec: a8bd8030 popge {r4, r5, pc}
_Thread_Heir->current_priority,
the_thread->current_priority )) {
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
3000d0f0: e5943008 ldr r3, [r4, #8]
* a pseudo-ISR system task, we need to do a context switch.
*/
if ( _Scheduler_Is_priority_lower_than(
_Thread_Heir->current_priority,
the_thread->current_priority )) {
_Thread_Heir = the_thread;
3000d0f4: e584500c str r5, [r4, #12]
if ( _Thread_Executing->is_preemptible ||
3000d0f8: e5d33070 ldrb r3, [r3, #112] ; 0x70
3000d0fc: e3530000 cmp r3, #0
3000d100: 0a000002 beq 3000d110 <_Scheduler_EDF_Unblock+0x50>
the_thread->current_priority == 0 )
_Thread_Dispatch_necessary = true;
3000d104: e3a03001 mov r3, #1
3000d108: e5c43004 strb r3, [r4, #4]
3000d10c: e8bd8030 pop {r4, r5, pc}
*/
if ( _Scheduler_Is_priority_lower_than(
_Thread_Heir->current_priority,
the_thread->current_priority )) {
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
3000d110: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED
3000d114: e3530000 cmp r3, #0 <== NOT EXECUTED
the_thread->current_priority == 0 )
_Thread_Dispatch_necessary = true;
3000d118: 03a03001 moveq r3, #1 <== NOT EXECUTED
3000d11c: 05c43004 strbeq r3, [r4, #4] <== NOT EXECUTED
3000d120: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
3000d210 <_Scheduler_EDF_Yield>:
#include <rtems/score/scheduler.h>
#include <rtems/score/scheduleredf.h>
#include <rtems/score/thread.h>
void _Scheduler_EDF_Yield(void)
{
3000d210: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
ISR_Level level;
Thread_Control *executing = _Thread_Executing;
3000d214: e59f5050 ldr r5, [pc, #80] ; 3000d26c <_Scheduler_EDF_Yield+0x5c><== NOT EXECUTED
Scheduler_EDF_Per_thread *executing_info =
(Scheduler_EDF_Per_thread *) executing->scheduler_info;
3000d218: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED
RBTree_Node *executing_node = &(executing_info->Node);
3000d21c: e5936088 ldr r6, [r3, #136] ; 0x88 <== NOT EXECUTED
3000d220: e2866004 add r6, r6, #4 <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000d224: e10f4000 mrs r4, CPSR <== NOT EXECUTED
3000d228: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED
3000d22c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
/*
* The RBTree has more than one node, enqueue behind the tasks
* with the same priority in case there are such ones.
*/
_RBTree_Extract( &_Scheduler_EDF_Ready_queue, executing_node );
3000d230: e59f7038 ldr r7, [pc, #56] ; 3000d270 <_Scheduler_EDF_Yield+0x60><== NOT EXECUTED
3000d234: e1a01006 mov r1, r6 <== NOT EXECUTED
3000d238: e1a00007 mov r0, r7 <== NOT EXECUTED
3000d23c: eb000f6e bl 30010ffc <_RBTree_Extract> <== NOT EXECUTED
_RBTree_Insert( &_Scheduler_EDF_Ready_queue, executing_node );
3000d240: e1a00007 mov r0, r7 <== NOT EXECUTED
3000d244: e1a01006 mov r1, r6 <== NOT EXECUTED
3000d248: eb00100d bl 30011284 <_RBTree_Insert> <== NOT EXECUTED
static inline void arm_interrupt_flash( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000d24c: e10f3000 mrs r3, CPSR <== NOT EXECUTED
3000d250: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
3000d254: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Flash( level );
_Scheduler_EDF_Schedule();
3000d258: ebffffd8 bl 3000d1c0 <_Scheduler_EDF_Schedule> <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
3000d25c: e3a03001 mov r3, #1 <== NOT EXECUTED
3000d260: e5c53004 strb r3, [r5, #4] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000d264: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Enable( level );
}
3000d268: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
3000c950 <_Scheduler_priority_Tick>:
void _Scheduler_priority_Tick( void )
{
Thread_Control *executing;
executing = _Thread_Executing;
3000c950: e59f3084 ldr r3, [pc, #132] ; 3000c9dc <_Scheduler_priority_Tick+0x8c>
#include <rtems/system.h>
#include <rtems/score/schedulerpriority.h>
void _Scheduler_priority_Tick( void )
{
3000c954: e92d4010 push {r4, lr}
Thread_Control *executing;
executing = _Thread_Executing;
3000c958: e5934008 ldr r4, [r3, #8]
/*
* If the thread is not preemptible or is not ready, then
* just return.
*/
if ( !executing->is_preemptible )
3000c95c: e5d43070 ldrb r3, [r4, #112] ; 0x70
3000c960: e3530000 cmp r3, #0
3000c964: 08bd8010 popeq {r4, pc}
return;
if ( !_States_Is_ready( executing->current_state ) )
3000c968: e5943010 ldr r3, [r4, #16]
3000c96c: e3530000 cmp r3, #0
3000c970: 18bd8010 popne {r4, pc}
/*
* The cpu budget algorithm determines what happens next.
*/
switch ( executing->budget_algorithm ) {
3000c974: e5943078 ldr r3, [r4, #120] ; 0x78
3000c978: e3530001 cmp r3, #1
3000c97c: 0a00000a beq 3000c9ac <_Scheduler_priority_Tick+0x5c>
3000c980: e3530002 cmp r3, #2
3000c984: 18bd8010 popne {r4, pc}
}
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
if ( --executing->cpu_time_budget == 0 )
3000c988: e5943074 ldr r3, [r4, #116] ; 0x74 <== NOT EXECUTED
3000c98c: e2433001 sub r3, r3, #1 <== NOT EXECUTED
3000c990: e3530000 cmp r3, #0 <== NOT EXECUTED
3000c994: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED
3000c998: 18bd8010 popne {r4, pc} <== NOT EXECUTED
(*executing->budget_callout)( executing );
3000c99c: e1a00004 mov r0, r4 <== NOT EXECUTED
3000c9a0: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c9a4: e594f07c ldr pc, [r4, #124] ; 0x7c <== NOT EXECUTED
3000c9a8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
#if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)
case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
#endif
if ( (int)(--executing->cpu_time_budget) <= 0 ) {
3000c9ac: e5943074 ldr r3, [r4, #116] ; 0x74 <== NOT EXECUTED
3000c9b0: e2433001 sub r3, r3, #1 <== NOT EXECUTED
3000c9b4: e3530000 cmp r3, #0 <== NOT EXECUTED
3000c9b8: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED
3000c9bc: c8bd8010 popgt {r4, pc} <== NOT EXECUTED
* always operates on the scheduler that 'owns' the currently executing
* thread.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void )
{
_Scheduler.Operations.yield();
3000c9c0: e59f3018 ldr r3, [pc, #24] ; 3000c9e0 <_Scheduler_priority_Tick+0x90><== NOT EXECUTED
3000c9c4: e1a0e00f mov lr, pc <== NOT EXECUTED
3000c9c8: e593f00c ldr pc, [r3, #12] <== NOT EXECUTED
* executing thread's timeslice is reset. Otherwise, the
* currently executing thread is placed at the rear of the
* FIFO for this priority and a new heir is selected.
*/
_Scheduler_Yield();
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
3000c9cc: e59f3010 ldr r3, [pc, #16] ; 3000c9e4 <_Scheduler_priority_Tick+0x94><== NOT EXECUTED
3000c9d0: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000c9d4: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED
3000c9d8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
3000cfa4 <_Scheduler_simple_Block>:
#include <rtems/score/schedulersimple.h>
void _Scheduler_simple_Block(
Thread_Control *the_thread
)
{
3000cfa4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_heir (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Heir );
3000cfa8: e59f5030 ldr r5, [pc, #48] ; 3000cfe0 <_Scheduler_simple_Block+0x3c><== NOT EXECUTED
3000cfac: e1a04000 mov r4, r0 <== NOT EXECUTED
_Scheduler_simple_Extract(the_thread);
3000cfb0: eb00000d bl 3000cfec <_Scheduler_simple_Extract> <== NOT EXECUTED
if ( _Thread_Is_heir( the_thread ) )
3000cfb4: e595300c ldr r3, [r5, #12] <== NOT EXECUTED
3000cfb8: e1540003 cmp r4, r3 <== NOT EXECUTED
3000cfbc: 0a000005 beq 3000cfd8 <_Scheduler_simple_Block+0x34> <== NOT EXECUTED
_Scheduler_simple_Schedule();
if ( _Thread_Is_executing( the_thread ) )
3000cfc0: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED
3000cfc4: e1540003 cmp r4, r3 <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
3000cfc8: 059f3010 ldreq r3, [pc, #16] ; 3000cfe0 <_Scheduler_simple_Block+0x3c><== NOT EXECUTED
3000cfcc: 03a02001 moveq r2, #1 <== NOT EXECUTED
3000cfd0: 05c32004 strbeq r2, [r3, #4] <== NOT EXECUTED
3000cfd4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
)
{
_Scheduler_simple_Extract(the_thread);
if ( _Thread_Is_heir( the_thread ) )
_Scheduler_simple_Schedule();
3000cfd8: eb000045 bl 3000d0f4 <_Scheduler_simple_Schedule> <== NOT EXECUTED
3000cfdc: eafffff7 b 3000cfc0 <_Scheduler_simple_Block+0x1c> <== NOT EXECUTED
3000cfe8 <_Scheduler_simple_Enqueue>:
void _Scheduler_simple_Enqueue(
Thread_Control *the_thread
)
{
_Scheduler_simple_Ready_queue_enqueue( the_thread );
3000cfe8: ea000022 b 3000d078 <_Scheduler_simple_Ready_queue_enqueue><== NOT EXECUTED
3000cfe4 <_Scheduler_simple_Enqueue_first>:
void _Scheduler_simple_Enqueue_first(
Thread_Control *the_thread
)
{
_Scheduler_simple_Ready_queue_enqueue_first( the_thread );
3000cfe4: ea000014 b 3000d03c <_Scheduler_simple_Ready_queue_enqueue_first><== NOT EXECUTED
3000cfec <_Scheduler_simple_Extract>:
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
3000cfec: e890000c ldm r0, {r2, r3} <== NOT EXECUTED
next->previous = previous;
3000cff0: e5823004 str r3, [r2, #4] <== NOT EXECUTED
previous->next = next;
3000cff4: e5832000 str r2, [r3] <== NOT EXECUTED
void _Scheduler_simple_Extract(
Thread_Control *the_thread
)
{
_Chain_Extract_unprotected( &the_thread->Object.Node );
}
3000cff8: e12fff1e bx lr <== NOT EXECUTED
3000d008 <_Scheduler_simple_Free>:
void _Scheduler_simple_Free(
Thread_Control *the_thread
)
{
}
3000d008: e12fff1e bx lr <== NOT EXECUTED
3000d078 <_Scheduler_simple_Ready_queue_enqueue>:
{
Chain_Control *ready;
Chain_Node *the_node;
Thread_Control *current;
ready = (Chain_Control *)_Scheduler.information;
3000d078: e59f3070 ldr r3, [pc, #112] ; 3000d0f0 <_Scheduler_simple_Ready_queue_enqueue+0x78>
#include <rtems/score/schedulersimple.h>
void _Scheduler_simple_Ready_queue_enqueue(
Thread_Control *the_thread
)
{
3000d07c: e52d4004 push {r4} ; (str r4, [sp, #-4]!)
Chain_Control *ready;
Chain_Node *the_node;
Thread_Control *current;
ready = (Chain_Control *)_Scheduler.information;
3000d080: e5933000 ldr r3, [r3]
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return _Chain_Head( the_chain )->next;
3000d084: e1a0c003 mov ip, r3
3000d088: e49c2004 ldr r2, [ip], #4
the_node = _Chain_First( ready );
current = (Thread_Control *)ready;
for ( ; !_Chain_Is_tail( ready, the_node ) ; the_node = the_node->next ) {
3000d08c: e152000c cmp r2, ip
3000d090: 01a02003 moveq r2, r3
3000d094: 0a00000b beq 3000d0c8 <_Scheduler_simple_Ready_queue_enqueue+0x50>
current = (Thread_Control *) the_node;
/* break when AT END OR PAST our priority */
if ( the_thread->current_priority < current->current_priority ) {
3000d098: e5904014 ldr r4, [r0, #20]
3000d09c: e5923014 ldr r3, [r2, #20]
3000d0a0: e1540003 cmp r4, r3
3000d0a4: 2a000004 bcs 3000d0bc <_Scheduler_simple_Ready_queue_enqueue+0x44>
3000d0a8: ea00000d b 3000d0e4 <_Scheduler_simple_Ready_queue_enqueue+0x6c>
3000d0ac: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED
3000d0b0: e1a02003 mov r2, r3 <== NOT EXECUTED
3000d0b4: e1510004 cmp r1, r4 <== NOT EXECUTED
3000d0b8: 8a00000a bhi 3000d0e8 <_Scheduler_simple_Ready_queue_enqueue+0x70><== NOT EXECUTED
ready = (Chain_Control *)_Scheduler.information;
the_node = _Chain_First( ready );
current = (Thread_Control *)ready;
for ( ; !_Chain_Is_tail( ready, the_node ) ; the_node = the_node->next ) {
3000d0bc: e5923000 ldr r3, [r2] <== NOT EXECUTED
3000d0c0: e153000c cmp r3, ip <== NOT EXECUTED
3000d0c4: 1afffff8 bne 3000d0ac <_Scheduler_simple_Ready_queue_enqueue+0x34><== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
3000d0c8: e5923000 ldr r3, [r2]
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
3000d0cc: e5802004 str r2, [r0, #4]
before_node = after_node->next;
after_node->next = the_node;
3000d0d0: e5820000 str r0, [r2]
the_node->next = before_node;
before_node->previous = the_node;
3000d0d4: e5830004 str r0, [r3, #4]
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
3000d0d8: e5803000 str r3, [r0]
}
}
/* enqueue */
_Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node );
}
3000d0dc: e8bd0010 pop {r4}
3000d0e0: e12fff1e bx lr
for ( ; !_Chain_Is_tail( ready, the_node ) ; the_node = the_node->next ) {
current = (Thread_Control *) the_node;
/* break when AT END OR PAST our priority */
if ( the_thread->current_priority < current->current_priority ) {
3000d0e4: e1a03002 mov r3, r2
current = (Thread_Control *)current->Object.Node.previous;
3000d0e8: e5932004 ldr r2, [r3, #4]
break;
3000d0ec: eafffff5 b 3000d0c8 <_Scheduler_simple_Ready_queue_enqueue+0x50>
3000d03c <_Scheduler_simple_Ready_queue_enqueue_first>:
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return _Chain_Head( the_chain )->next;
3000d03c: e59f3030 ldr r3, [pc, #48] ; 3000d074 <_Scheduler_simple_Ready_queue_enqueue_first+0x38><== NOT EXECUTED
*/
for ( the_node = _Chain_First(ready) ; ; the_node = the_node->next ) {
current = (Thread_Control *) the_node;
/* break when AT HEAD OF (or PAST) our priority */
if ( the_thread->current_priority <= current->current_priority ) {
3000d040: e5901014 ldr r1, [r0, #20] <== NOT EXECUTED
3000d044: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000d048: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000d04c: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED
3000d050: e1520001 cmp r2, r1 <== NOT EXECUTED
3000d054: 3afffffb bcc 3000d048 <_Scheduler_simple_Ready_queue_enqueue_first+0xc><== NOT EXECUTED
current = (Thread_Control *)current->Object.Node.previous;
3000d058: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
3000d05c: e5932000 ldr r2, [r3] <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
3000d060: e5803004 str r3, [r0, #4] <== NOT EXECUTED
before_node = after_node->next;
after_node->next = the_node;
3000d064: e5830000 str r0, [r3] <== NOT EXECUTED
the_node->next = before_node;
before_node->previous = the_node;
3000d068: e5820004 str r0, [r2, #4] <== NOT EXECUTED
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
3000d06c: e5802000 str r2, [r0] <== NOT EXECUTED
}
}
/* enqueue */
_Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node );
}
3000d070: e12fff1e bx lr <== NOT EXECUTED
3000d0f4 <_Scheduler_simple_Schedule>:
#include <rtems/score/schedulersimple.h>
void _Scheduler_simple_Schedule(void)
{
_Thread_Heir = (Thread_Control *) _Chain_First(
(Chain_Control *) _Scheduler.information
3000d0f4: e59f3010 ldr r3, [pc, #16] ; 3000d10c <_Scheduler_simple_Schedule+0x18><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return _Chain_Head( the_chain )->next;
3000d0f8: e5933000 ldr r3, [r3] <== NOT EXECUTED
#include <rtems/score/thread.h>
#include <rtems/score/schedulersimple.h>
void _Scheduler_simple_Schedule(void)
{
_Thread_Heir = (Thread_Control *) _Chain_First(
3000d0fc: e5932000 ldr r2, [r3] <== NOT EXECUTED
3000d100: e59f3008 ldr r3, [pc, #8] ; 3000d110 <_Scheduler_simple_Schedule+0x1c><== NOT EXECUTED
3000d104: e583200c str r2, [r3, #12] <== NOT EXECUTED
(Chain_Control *) _Scheduler.information
);
}
3000d108: e12fff1e bx lr <== NOT EXECUTED
3000d114 <_Scheduler_simple_Unblock>:
#include <rtems/score/thread.h>
void _Scheduler_simple_Unblock(
Thread_Control *the_thread
)
{
3000d114: e92d4010 push {r4, lr}
3000d118: e1a04000 mov r4, r0
_Scheduler_simple_Ready_queue_enqueue(the_thread);
3000d11c: ebffffd5 bl 3000d078 <_Scheduler_simple_Ready_queue_enqueue>
* 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 ) {
3000d120: e59f3040 ldr r3, [pc, #64] ; 3000d168 <_Scheduler_simple_Unblock+0x54>
3000d124: e5942014 ldr r2, [r4, #20]
3000d128: e593100c ldr r1, [r3, #12]
3000d12c: e5911014 ldr r1, [r1, #20]
3000d130: e1520001 cmp r2, r1
3000d134: 28bd8010 popcs {r4, pc}
_Thread_Heir = the_thread;
if ( _Thread_Executing->is_preemptible ||
3000d138: e5931008 ldr r1, [r3, #8]
* 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;
3000d13c: e583400c str r4, [r3, #12]
if ( _Thread_Executing->is_preemptible ||
3000d140: e5d11070 ldrb r1, [r1, #112] ; 0x70
3000d144: e3510000 cmp r1, #0
3000d148: 0a000002 beq 3000d158 <_Scheduler_simple_Unblock+0x44>
the_thread->current_priority == 0 )
_Thread_Dispatch_necessary = true;
3000d14c: e3a02001 mov r2, #1
3000d150: e5c32004 strb r2, [r3, #4]
3000d154: e8bd8010 pop {r4, pc}
* 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 ||
3000d158: e3520000 cmp r2, #0 <== NOT EXECUTED
the_thread->current_priority == 0 )
_Thread_Dispatch_necessary = true;
3000d15c: 03a02001 moveq r2, #1 <== NOT EXECUTED
3000d160: 05c32004 strbeq r2, [r3, #4] <== NOT EXECUTED
3000d164: e8bd8010 pop {r4, pc} <== NOT EXECUTED
3000d16c <_Scheduler_simple_Yield>:
#include <rtems/score/scheduler.h>
#include <rtems/score/thread.h>
#include <rtems/score/schedulersimple.h>
void _Scheduler_simple_Yield( void )
{
3000d16c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
ISR_Level level;
Thread_Control *executing;
executing = _Thread_Executing;
3000d170: e59f5048 ldr r5, [pc, #72] ; 3000d1c0 <_Scheduler_simple_Yield+0x54><== NOT EXECUTED
3000d174: e5954008 ldr r4, [r5, #8] <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000d178: e10f6000 mrs r6, CPSR <== NOT EXECUTED
3000d17c: e3863080 orr r3, r6, #128 ; 0x80 <== NOT EXECUTED
3000d180: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
3000d184: e894000c ldm r4, {r2, r3} <== NOT EXECUTED
{
/* extract */
_Chain_Extract_unprotected( &the_thread->Object.Node );
/* enqueue */
_Scheduler_simple_Ready_queue_enqueue( the_thread );
3000d188: e1a00004 mov r0, r4 <== NOT EXECUTED
next->previous = previous;
3000d18c: e5823004 str r3, [r2, #4] <== NOT EXECUTED
previous->next = next;
3000d190: e5832000 str r2, [r3] <== NOT EXECUTED
3000d194: ebffffb7 bl 3000d078 <_Scheduler_simple_Ready_queue_enqueue><== NOT EXECUTED
static inline void arm_interrupt_flash( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000d198: e10f3000 mrs r3, CPSR <== NOT EXECUTED
3000d19c: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
3000d1a0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_Scheduler_simple_Ready_queue_requeue(&_Scheduler, executing);
_ISR_Flash( level );
_Scheduler_simple_Schedule();
3000d1a4: ebffffd2 bl 3000d0f4 <_Scheduler_simple_Schedule> <== NOT EXECUTED
if ( !_Thread_Is_heir( executing ) )
3000d1a8: e595300c ldr r3, [r5, #12] <== NOT EXECUTED
3000d1ac: e1540003 cmp r4, r3 <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
3000d1b0: 13a03001 movne r3, #1 <== NOT EXECUTED
3000d1b4: 15c53004 strbne r3, [r5, #4] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000d1b8: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
_ISR_Enable( level );
}
3000d1bc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
30029c30 <_TOD_Get_uptime_as_timespec>:
#include <rtems/score/tod.h>
void _TOD_Get_uptime_as_timespec(
struct timespec *uptime
)
{
30029c30: e92d40d0 push {r4, r6, r7, lr} <== NOT EXECUTED
30029c34: e24dd008 sub sp, sp, #8 <== NOT EXECUTED
30029c38: e1a04000 mov r4, r0 <== NOT EXECUTED
30029c3c: e59f1040 ldr r1, [pc, #64] ; 30029c84 <_TOD_Get_uptime_as_timespec+0x54><== NOT EXECUTED
30029c40: e1a0000d mov r0, sp <== NOT EXECUTED
30029c44: ebff88d3 bl 3000bf98 <_TOD_Get_with_nanoseconds> <== NOT EXECUTED
Timestamp_Control uptime_ts;
/* assume time checked for NULL by caller */
_TOD_Get_uptime( &uptime_ts );
_Timestamp_To_timespec( &uptime_ts, uptime );
30029c48: e89d00c0 ldm sp, {r6, r7} <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30029c4c: e59f2034 ldr r2, [pc, #52] ; 30029c88 <_TOD_Get_uptime_as_timespec+0x58><== NOT EXECUTED
30029c50: e3a03000 mov r3, #0 <== NOT EXECUTED
30029c54: e1a00006 mov r0, r6 <== NOT EXECUTED
30029c58: e1a01007 mov r1, r7 <== NOT EXECUTED
30029c5c: eb00a80c bl 30053c94 <__divdi3> <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
30029c60: e59f2020 ldr r2, [pc, #32] ; 30029c88 <_TOD_Get_uptime_as_timespec+0x58><== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30029c64: e5840000 str r0, [r4] <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
30029c68: e3a03000 mov r3, #0 <== NOT EXECUTED
30029c6c: e1a00006 mov r0, r6 <== NOT EXECUTED
30029c70: e1a01007 mov r1, r7 <== NOT EXECUTED
30029c74: eb00a941 bl 30054180 <__moddi3> <== NOT EXECUTED
30029c78: e5840004 str r0, [r4, #4] <== NOT EXECUTED
}
30029c7c: e28dd008 add sp, sp, #8 <== NOT EXECUTED
30029c80: e8bd80d0 pop {r4, r6, r7, pc} <== NOT EXECUTED
3000b7d8 <_TOD_Tickle_ticks>:
void _TOD_Tickle_ticks( void )
{
Timestamp_Control tick;
uint32_t nanoseconds_per_tick;
nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick();
3000b7d8: e59f2080 ldr r2, [pc, #128] ; 3000b860 <_TOD_Tickle_ticks+0x88>
static inline void _Timestamp64_implementation_Add_to(
Timestamp64_Control *_time,
const Timestamp64_Control *_add
)
{
*_time += *_add;
3000b7dc: e59f3080 ldr r3, [pc, #128] ; 3000b864 <_TOD_Tickle_ticks+0x8c>
3000b7e0: e5922010 ldr r2, [r2, #16]
#include <rtems/score/tod.h>
#include <rtems/score/watchdog.h>
#include <rtems/config.h>
void _TOD_Tickle_ticks( void )
{
3000b7e4: e92d03f0 push {r4, r5, r6, r7, r8, r9}
3000b7e8: e2837008 add r7, r3, #8
3000b7ec: e89700c0 ldm r7, {r6, r7}
3000b7f0: e8930300 ldm r3, {r8, r9}
uint32_t nanoseconds_per_tick;
nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick();
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, nanoseconds_per_tick );
3000b7f4: e1a00002 mov r0, r2
3000b7f8: e3a01000 mov r1, #0
3000b7fc: e0966000 adds r6, r6, r0
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
3000b800: e59fc060 ldr ip, [pc, #96] ; 3000b868 <_TOD_Tickle_ticks+0x90>
3000b804: e0a77001 adc r7, r7, r1
/* we do not care how much the uptime changed */
/* Update the current TOD */
_Timestamp_Add_to( &_TOD.now, &tick );
_TOD.seconds_trigger += nanoseconds_per_tick;
3000b808: e5935010 ldr r5, [r3, #16]
3000b80c: e0988000 adds r8, r8, r0
3000b810: e0a99001 adc r9, r9, r1
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, nanoseconds_per_tick );
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
3000b814: e59c4000 ldr r4, [ip]
/* Update the current TOD */
_Timestamp_Add_to( &_TOD.now, &tick );
_TOD.seconds_trigger += nanoseconds_per_tick;
if ( _TOD.seconds_trigger >= 1000000000UL ) {
3000b818: e59f104c ldr r1, [pc, #76] ; 3000b86c <_TOD_Tickle_ticks+0x94>
/* we do not care how much the uptime changed */
/* Update the current TOD */
_Timestamp_Add_to( &_TOD.now, &tick );
_TOD.seconds_trigger += nanoseconds_per_tick;
3000b81c: e0822005 add r2, r2, r5
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, nanoseconds_per_tick );
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
3000b820: e2844001 add r4, r4, #1
/* Update the current TOD */
_Timestamp_Add_to( &_TOD.now, &tick );
_TOD.seconds_trigger += nanoseconds_per_tick;
if ( _TOD.seconds_trigger >= 1000000000UL ) {
3000b824: e1520001 cmp r2, r1
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, nanoseconds_per_tick );
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
3000b828: e58c4000 str r4, [ip]
3000b82c: e5836008 str r6, [r3, #8]
3000b830: e583700c str r7, [r3, #12]
3000b834: e8830300 stm r3, {r8, r9}
/* we do not care how much the uptime changed */
/* Update the current TOD */
_Timestamp_Add_to( &_TOD.now, &tick );
_TOD.seconds_trigger += nanoseconds_per_tick;
3000b838: e5832010 str r2, [r3, #16]
if ( _TOD.seconds_trigger >= 1000000000UL ) {
3000b83c: 8a000001 bhi 3000b848 <_TOD_Tickle_ticks+0x70>
_TOD.seconds_trigger -= 1000000000UL;
_Watchdog_Tickle_seconds();
}
}
3000b840: e8bd03f0 pop {r4, r5, r6, r7, r8, r9}
3000b844: e12fff1e bx lr
/* Update the current TOD */
_Timestamp_Add_to( &_TOD.now, &tick );
_TOD.seconds_trigger += nanoseconds_per_tick;
if ( _TOD.seconds_trigger >= 1000000000UL ) {
_TOD.seconds_trigger -= 1000000000UL;
3000b848: e59f1020 ldr r1, [pc, #32] ; 3000b870 <_TOD_Tickle_ticks+0x98><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void )
{
_Watchdog_Tickle( &_Watchdog_Seconds_chain );
3000b84c: e59f0020 ldr r0, [pc, #32] ; 3000b874 <_TOD_Tickle_ticks+0x9c><== NOT EXECUTED
3000b850: e0821001 add r1, r2, r1 <== NOT EXECUTED
3000b854: e5831010 str r1, [r3, #16] <== NOT EXECUTED
_Watchdog_Tickle_seconds();
}
}
3000b858: e8bd03f0 pop {r4, r5, r6, r7, r8, r9} <== NOT EXECUTED
3000b85c: ea0009b0 b 3000df24 <_Watchdog_Tickle> <== NOT EXECUTED
3000b4fc <_TOD_Validate>:
};
bool _TOD_Validate(
const rtems_time_of_day *the_tod
)
{
3000b4fc: e92d4010 push {r4, lr}
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) ||
3000b500: e2504000 subs r4, r0, #0
(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) )
return false;
3000b504: 01a00004 moveq r0, r4
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) ||
3000b508: 08bd8010 popeq {r4, pc}
)
{
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
3000b50c: e59f3098 ldr r3, [pc, #152] ; 3000b5ac <_TOD_Validate+0xb0>
3000b510: e59f0098 ldr r0, [pc, #152] ; 3000b5b0 <_TOD_Validate+0xb4>
3000b514: e593100c ldr r1, [r3, #12]
3000b518: eb004547 bl 3001ca3c <__aeabi_uidiv>
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
3000b51c: e5943018 ldr r3, [r4, #24]
3000b520: e1500003 cmp r0, r3
3000b524: 9a00001c bls 3000b59c <_TOD_Validate+0xa0>
(the_tod->ticks >= ticks_per_second) ||
3000b528: e5943014 ldr r3, [r4, #20]
3000b52c: e353003b cmp r3, #59 ; 0x3b
3000b530: 8a000019 bhi 3000b59c <_TOD_Validate+0xa0>
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
3000b534: e5943010 ldr r3, [r4, #16]
3000b538: e353003b cmp r3, #59 ; 0x3b
3000b53c: 8a000016 bhi 3000b59c <_TOD_Validate+0xa0>
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
3000b540: e594300c ldr r3, [r4, #12]
3000b544: e3530017 cmp r3, #23
3000b548: 8a000013 bhi 3000b59c <_TOD_Validate+0xa0>
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
(the_tod->month == 0) ||
3000b54c: e5940004 ldr r0, [r4, #4]
rtems_configuration_get_microseconds_per_tick();
if ((!the_tod) ||
(the_tod->ticks >= ticks_per_second) ||
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
3000b550: e3500000 cmp r0, #0
3000b554: 08bd8010 popeq {r4, pc}
(the_tod->month == 0) ||
3000b558: e350000c cmp r0, #12
3000b55c: 8a00000e bhi 3000b59c <_TOD_Validate+0xa0>
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
3000b560: e5943000 ldr r3, [r4]
(the_tod->ticks >= ticks_per_second) ||
(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) ||
3000b564: e59f2048 ldr r2, [pc, #72] ; 3000b5b4 <_TOD_Validate+0xb8>
3000b568: e1530002 cmp r3, r2
3000b56c: 9a00000a bls 3000b59c <_TOD_Validate+0xa0>
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
3000b570: e5944008 ldr r4, [r4, #8]
(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) ||
3000b574: e3540000 cmp r4, #0
3000b578: 0a000009 beq 3000b5a4 <_TOD_Validate+0xa8>
(the_tod->day == 0) )
return false;
if ( (the_tod->year % 4) == 0 )
3000b57c: e3130003 tst r3, #3
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
else
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
3000b580: e59f3030 ldr r3, [pc, #48] ; 3000b5b8 <_TOD_Validate+0xbc>
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
return false;
if ( (the_tod->year % 4) == 0 )
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
3000b584: 0280000d addeq r0, r0, #13
else
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
3000b588: e7930100 ldr r0, [r3, r0, lsl #2]
const uint32_t _TOD_Days_per_month[ 2 ][ 13 ] = {
{ 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 },
{ 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
};
bool _TOD_Validate(
3000b58c: e1500004 cmp r0, r4
3000b590: 33a00000 movcc r0, #0
3000b594: 23a00001 movcs r0, #1
3000b598: e8bd8010 pop {r4, pc}
(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) )
return false;
3000b59c: e3a00000 mov r0, #0 <== NOT EXECUTED
3000b5a0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
3000b5a4: e1a00004 mov r0, r4 <== NOT EXECUTED
if ( the_tod->day > days_in_month )
return false;
return true;
}
3000b5a8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
3000cbf8 <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
3000cbf8: e92d40f0 push {r4, r5, r6, r7, lr}
3000cbfc: e1a04000 mov r4, r0
3000cc00: e1a07001 mov r7, r1
3000cc04: e20260ff and r6, r2, #255 ; 0xff
States_Control state, original_state;
/*
* Save original state
*/
original_state = the_thread->current_state;
3000cc08: e5905010 ldr r5, [r0, #16]
/*
* 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 );
3000cc0c: eb00035c bl 3000d984 <_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 )
3000cc10: e5943014 ldr r3, [r4, #20]
3000cc14: e1530007 cmp r3, r7
_Thread_Set_priority( the_thread, new_priority );
3000cc18: 11a00004 movne r0, r4
3000cc1c: 11a01007 movne r1, r7
3000cc20: 1b00033e blne 3000d920 <_Thread_Set_priority>
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000cc24: e10f7000 mrs r7, CPSR
3000cc28: e3873080 orr r3, r7, #128 ; 0x80
3000cc2c: e129f003 msr CPSR_fc, r3
/*
* 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;
3000cc30: e5943010 ldr r3, [r4, #16]
if ( state != STATES_TRANSIENT ) {
3000cc34: e3530004 cmp r3, #4
3000cc38: 0a00000b beq 3000cc6c <_Thread_Change_priority+0x74>
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
3000cc3c: e3150004 tst r5, #4 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
3000cc40: 03c32004 biceq r2, r3, #4 <== NOT EXECUTED
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
3000cc44: 05842010 streq r2, [r4, #16] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000cc48: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
States_Control the_states
)
{
return (the_states & STATES_WAITING_ON_THREAD_QUEUE);
3000cc4c: e59f2090 ldr r2, [pc, #144] ; 3000cce4 <_Thread_Change_priority+0xec><== NOT EXECUTED
3000cc50: e0032002 and r2, r3, r2 <== NOT EXECUTED
_ISR_Enable( level );
if ( _States_Is_waiting_on_thread_queue( state ) ) {
3000cc54: e3520000 cmp r2, #0 <== NOT EXECUTED
3000cc58: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
3000cc5c: e5940044 ldr r0, [r4, #68] ; 0x44 <== NOT EXECUTED
3000cc60: e1a01004 mov r1, r4 <== NOT EXECUTED
if ( !_Thread_Is_executing_also_the_heir() &&
_Thread_Executing->is_preemptible )
_Thread_Dispatch_necessary = true;
_ISR_Enable( level );
}
3000cc64: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED
/* 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 );
_ISR_Enable( level );
if ( _States_Is_waiting_on_thread_queue( state ) ) {
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
3000cc68: ea000300 b 3000d870 <_Thread_queue_Requeue> <== NOT EXECUTED
}
return;
}
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) ) {
3000cc6c: e2155004 ands r5, r5, #4
3000cc70: 159f5070 ldrne r5, [pc, #112] ; 3000cce8 <_Thread_Change_priority+0xf0>
3000cc74: 0a00000f beq 3000ccb8 <_Thread_Change_priority+0xc0>
static inline void arm_interrupt_flash( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000cc78: e10f3000 mrs r3, CPSR
3000cc7c: e129f007 msr CPSR_fc, r7
3000cc80: e129f003 msr CPSR_fc, r3
* This kernel routine implements the scheduling decision logic for
* the scheduler. It does NOT dispatch.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Schedule( void )
{
_Scheduler.Operations.schedule();
3000cc84: e1a0e00f mov lr, pc
3000cc88: e595f008 ldr pc, [r5, #8]
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
3000cc8c: e59f3058 ldr r3, [pc, #88] ; 3000ccec <_Thread_Change_priority+0xf4>
3000cc90: e5932008 ldr r2, [r3, #8]
* We altered the set of thread priorities. So let's figure out
* who is the heir and if we need to switch to them.
*/
_Scheduler_Schedule();
if ( !_Thread_Is_executing_also_the_heir() &&
3000cc94: e593100c ldr r1, [r3, #12]
3000cc98: e1520001 cmp r2, r1
3000cc9c: 0a000003 beq 3000ccb0 <_Thread_Change_priority+0xb8>
3000cca0: e5d22070 ldrb r2, [r2, #112] ; 0x70
3000cca4: e3520000 cmp r2, #0
_Thread_Executing->is_preemptible )
_Thread_Dispatch_necessary = true;
3000cca8: 13a02001 movne r2, #1
3000ccac: 15c32004 strbne r2, [r3, #4]
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000ccb0: e129f007 msr CPSR_fc, r7
3000ccb4: e8bd80f0 pop {r4, r5, r6, r7, pc}
* 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 );
if ( prepend_it )
3000ccb8: e3560000 cmp r6, #0
* 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 );
3000ccbc: e5845010 str r5, [r4, #16]
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(
Thread_Control *the_thread
)
{
_Scheduler.Operations.enqueue_first( the_thread );
3000ccc0: e1a00004 mov r0, r4
3000ccc4: e59f501c ldr r5, [pc, #28] ; 3000cce8 <_Thread_Change_priority+0xf0>
if ( prepend_it )
3000ccc8: 0a000002 beq 3000ccd8 <_Thread_Change_priority+0xe0>
3000cccc: e1a0e00f mov lr, pc
3000ccd0: e595f028 ldr pc, [r5, #40] ; 0x28
3000ccd4: eaffffe7 b 3000cc78 <_Thread_Change_priority+0x80>
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(
Thread_Control *the_thread
)
{
_Scheduler.Operations.enqueue( the_thread );
3000ccd8: e1a0e00f mov lr, pc
3000ccdc: e595f024 ldr pc, [r5, #36] ; 0x24
3000cce0: eaffffe4 b 3000cc78 <_Thread_Change_priority+0x80>
3000cd3c <_Thread_Close>:
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id(
Objects_Information *information,
Objects_Control *the_object
)
{
_Objects_Set_local_object(
3000cd3c: e1d120b8 ldrh r2, [r1, #8]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
3000cd40: e590301c ldr r3, [r0, #28]
void _Thread_Close(
Objects_Information *information,
Thread_Control *the_thread
)
{
3000cd44: e92d4070 push {r4, r5, r6, lr}
3000cd48: e1a04001 mov r4, r1
3000cd4c: e3a01000 mov r1, #0
3000cd50: e7831102 str r1, [r3, r2, lsl #2]
3000cd54: e1a06000 mov r6, r0
*
* This routine decrements the thread dispatch level.
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000cd58: e59f5090 ldr r5, [pc, #144] ; 3000cdf0 <_Thread_Close+0xb4>
return ctx.ok;
}
static inline void _User_extensions_Thread_delete( Thread_Control *deleted )
{
_User_extensions_Iterate(
3000cd5c: e1a00004 mov r0, r4
3000cd60: e5953000 ldr r3, [r5]
3000cd64: e59f1088 ldr r1, [pc, #136] ; 3000cdf4 <_Thread_Close+0xb8>
--level;
3000cd68: e2433001 sub r3, r3, #1
_Thread_Dispatch_disable_level = level;
3000cd6c: e5853000 str r3, [r5]
3000cd70: eb00038d bl 3000dbac <_User_extensions_Iterate>
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000cd74: e5953000 ldr r3, [r5]
++level;
3000cd78: e2833001 add r3, r3, #1
_Thread_Dispatch_disable_level = level;
3000cd7c: e5853000 str r3, [r5]
/*
* 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 );
3000cd80: e1a01004 mov r1, r4
3000cd84: e1a00006 mov r0, r6
3000cd88: ebfffbfc bl 3000bd80 <_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 );
3000cd8c: e1a00004 mov r0, r4
3000cd90: e3a01001 mov r1, #1
3000cd94: eb0002e8 bl 3000d93c <_Thread_Set_state>
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
3000cd98: e1a00004 mov r0, r4
3000cd9c: eb000285 bl 3000d7b8 <_Thread_queue_Extract_with_proxy>
3000cda0: e3500000 cmp r0, #0
3000cda4: 1a000002 bne 3000cdb4 <_Thread_Close+0x78>
if ( _Watchdog_Is_active( &the_thread->Timer ) )
3000cda8: e5943050 ldr r3, [r4, #80] ; 0x50
3000cdac: e3530002 cmp r3, #2
3000cdb0: 0a00000b beq 3000cde4 <_Thread_Close+0xa8>
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Free(
Thread_Control *the_thread
)
{
return _Scheduler.Operations.free( the_thread );
3000cdb4: e59f303c ldr r3, [pc, #60] ; 3000cdf8 <_Thread_Close+0xbc>
3000cdb8: e1a00004 mov r0, r4
3000cdbc: e1a0e00f mov lr, pc
3000cdc0: e593f01c ldr pc, [r3, #28]
/*
* 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;
3000cdc4: e3a05000 mov r5, #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 );
3000cdc8: e1a00004 mov r0, r4
3000cdcc: eb00030b bl 3000da00 <_Thread_Stack_Free>
the_thread->Start.stack = NULL;
3000cdd0: e58450b8 str r5, [r4, #184] ; 0xb8
_Workspace_Free( the_thread->extensions );
3000cdd4: e59400f4 ldr r0, [r4, #244] ; 0xf4
3000cdd8: eb0004ca bl 3000e108 <_Workspace_Free>
the_thread->extensions = NULL;
3000cddc: e58450f4 str r5, [r4, #244] ; 0xf4
}
3000cde0: e8bd8070 pop {r4, r5, r6, pc}
*/
_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 );
3000cde4: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED
3000cde8: eb000422 bl 3000de78 <_Watchdog_Remove> <== NOT EXECUTED
3000cdec: eafffff0 b 3000cdb4 <_Thread_Close+0x78> <== NOT EXECUTED
3000ced0 <_Thread_Delay_ended>:
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
3000ced0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
3000ced4: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
3000ced8: e1a0100d mov r1, sp <== NOT EXECUTED
3000cedc: eb000080 bl 3000d0e4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
3000cee0: e59d3000 ldr r3, [sp] <== NOT EXECUTED
3000cee4: e3530000 cmp r3, #0 <== NOT EXECUTED
3000cee8: 1a000005 bne 3000cf04 <_Thread_Delay_ended+0x34> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_Clear_state(
3000ceec: e59f1018 ldr r1, [pc, #24] ; 3000cf0c <_Thread_Delay_ended+0x3c><== NOT EXECUTED
3000cef0: ebffff7e bl 3000ccf0 <_Thread_Clear_state> <== NOT EXECUTED
*
* This routine decrements the thread dispatch level.
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000cef4: e59f3014 ldr r3, [pc, #20] ; 3000cf10 <_Thread_Delay_ended+0x40><== NOT EXECUTED
3000cef8: e5932000 ldr r2, [r3] <== NOT EXECUTED
--level;
3000cefc: e2422001 sub r2, r2, #1 <== NOT EXECUTED
_Thread_Dispatch_disable_level = level;
3000cf00: e5832000 str r2, [r3] <== NOT EXECUTED
| STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Thread_Unnest_dispatch();
break;
}
}
3000cf04: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000cf08: e8bd8000 pop {pc} <== NOT EXECUTED
3000cf14 <_Thread_Dispatch>:
#if defined(RTEMS_SMP)
#include <rtems/score/smp.h>
#endif
void _Thread_Dispatch( void )
{
3000cf14: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
#endif
/*
* Now determine if we need to perform a dispatch on the current CPU.
*/
executing = _Thread_Executing;
3000cf18: e59f7188 ldr r7, [pc, #392] ; 3000d0a8 <_Thread_Dispatch+0x194>
#if defined(RTEMS_SMP)
#include <rtems/score/smp.h>
#endif
void _Thread_Dispatch( void )
{
3000cf1c: e24dd018 sub sp, sp, #24
#endif
/*
* Now determine if we need to perform a dispatch on the current CPU.
*/
executing = _Thread_Executing;
3000cf20: e5975008 ldr r5, [r7, #8]
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000cf24: e10f3000 mrs r3, CPSR
3000cf28: e3832080 orr r2, r3, #128 ; 0x80
3000cf2c: e129f002 msr CPSR_fc, r2
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
3000cf30: e5d72004 ldrb r2, [r7, #4]
3000cf34: e3520000 cmp r2, #0
3000cf38: 059f916c ldreq r9, [pc, #364] ; 3000d0ac <_Thread_Dispatch+0x198>
3000cf3c: 0a00004a beq 3000d06c <_Thread_Dispatch+0x158>
heir = _Thread_Heir;
3000cf40: e597400c ldr r4, [r7, #12]
* This routine sets thread dispatch level to the
* value passed in.
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_set_disable_level(uint32_t value)
{
_Thread_Dispatch_disable_level = value;
3000cf44: e59f9160 ldr r9, [pc, #352] ; 3000d0ac <_Thread_Dispatch+0x198>
3000cf48: e3a02001 mov r2, #1
#ifndef RTEMS_SMP
_Thread_Dispatch_set_disable_level( 1 );
#endif
_Thread_Dispatch_necessary = false;
3000cf4c: e3a01000 mov r1, #0
/*
* When the heir and executing are the same, then we are being
* requested to do the post switch dispatching. This is normally
* done to dispatch signals.
*/
if ( heir == executing )
3000cf50: e1550004 cmp r5, r4
3000cf54: e5892000 str r2, [r9]
heir = _Thread_Heir;
#ifndef RTEMS_SMP
_Thread_Dispatch_set_disable_level( 1 );
#endif
_Thread_Dispatch_necessary = false;
_Thread_Executing = heir;
3000cf58: e5874008 str r4, [r7, #8]
while ( _Thread_Dispatch_necessary == true ) {
heir = _Thread_Heir;
#ifndef RTEMS_SMP
_Thread_Dispatch_set_disable_level( 1 );
#endif
_Thread_Dispatch_necessary = false;
3000cf5c: e5c71004 strb r1, [r7, #4]
/*
* When the heir and executing are the same, then we are being
* requested to do the post switch dispatching. This is normally
* done to dispatch signals.
*/
if ( heir == executing )
3000cf60: 0a000041 beq 3000d06c <_Thread_Dispatch+0x158>
3000cf64: e59f0144 ldr r0, [pc, #324] ; 3000d0b0 <_Thread_Dispatch+0x19c>
if ( executing->fp_context != NULL )
_Context_Restore_fp( &executing->fp_context );
#endif
#endif
executing = _Thread_Executing;
3000cf68: e1a08007 mov r8, r7
3000cf6c: e2806004 add r6, r0, #4
*/
#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 )
3000cf70: e5942078 ldr r2, [r4, #120] ; 0x78
3000cf74: e3520001 cmp r2, #1
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
3000cf78: 059fa134 ldreq sl, [pc, #308] ; 3000d0b4 <_Thread_Dispatch+0x1a0>
3000cf7c: 059a2000 ldreq r2, [sl]
3000cf80: 05842074 streq r2, [r4, #116] ; 0x74
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000cf84: e129f003 msr CPSR_fc, r3
*/
static inline void _TOD_Get_uptime(
Timestamp_Control *time
)
{
_TOD_Get_with_nanoseconds( time, &_TOD.uptime );
3000cf88: e59f1128 ldr r1, [pc, #296] ; 3000d0b8 <_Thread_Dispatch+0x1a4>
3000cf8c: e28d0010 add r0, sp, #16
3000cf90: ebfff9f1 bl 3000b75c <_TOD_Get_with_nanoseconds>
3000cf94: e2851080 add r1, r5, #128 ; 0x80
3000cf98: e8910003 ldm r1, {r0, r1}
const Timestamp64_Control *_start,
const Timestamp64_Control *_end,
Timestamp64_Control *_result
)
{
*_result = *_end - *_start;
3000cf9c: e28db010 add fp, sp, #16
3000cfa0: e89b0c00 ldm fp, {sl, fp}
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
3000cfa4: e59f2110 ldr r2, [pc, #272] ; 3000d0bc <_Thread_Dispatch+0x1a8>
static inline void _Timestamp64_implementation_Add_to(
Timestamp64_Control *_time,
const Timestamp64_Control *_add
)
{
*_time += *_add;
3000cfa8: e88d0003 stm sp, {r0, r1}
3000cfac: e5921000 ldr r1, [r2]
const Timestamp64_Control *_start,
const Timestamp64_Control *_end,
Timestamp64_Control *_result
)
{
*_result = *_end - *_start;
3000cfb0: e2873014 add r3, r7, #20
3000cfb4: e893000c ldm r3, {r2, r3}
3000cfb8: e05aa002 subs sl, sl, r2
3000cfbc: e0cbb003 sbc fp, fp, r3
static inline void _Timestamp64_implementation_Add_to(
Timestamp64_Control *_time,
const Timestamp64_Control *_add
)
{
*_time += *_add;
3000cfc0: e89d000c ldm sp, {r2, r3}
3000cfc4: e092200a adds r2, r2, sl
3000cfc8: e0a3300b adc r3, r3, fp
3000cfcc: e3510000 cmp r1, #0
3000cfd0: e5852080 str r2, [r5, #128] ; 0x80
3000cfd4: e5853084 str r3, [r5, #132] ; 0x84
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
_Thread_Time_of_last_context_switch = uptime;
3000cfd8: e28db010 add fp, sp, #16
3000cfdc: e89b0c00 ldm fp, {sl, fp}
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
executing->libc_reent = *_Thread_libc_reent;
3000cfe0: 15913000 ldrne r3, [r1]
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
_Thread_Time_of_last_context_switch = uptime;
3000cfe4: e587a014 str sl, [r7, #20]
3000cfe8: e587b018 str fp, [r7, #24]
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
executing->libc_reent = *_Thread_libc_reent;
3000cfec: 158530e8 strne r3, [r5, #232] ; 0xe8
*_Thread_libc_reent = heir->libc_reent;
3000cff0: 159430e8 ldrne r3, [r4, #232] ; 0xe8
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3000cff4: e59fb0b4 ldr fp, [pc, #180] ; 3000d0b0 <_Thread_Dispatch+0x19c>
3000cff8: 15813000 strne r3, [r1]
3000cffc: e59ba000 ldr sl, [fp]
{
const Chain_Control *chain = &_User_extensions_Switches_list;
const Chain_Node *tail = _Chain_Immutable_tail( chain );
const Chain_Node *node = _Chain_Immutable_first( chain );
while ( node != tail ) {
3000d000: e15a0006 cmp sl, r6
3000d004: 0a000006 beq 3000d024 <_Thread_Dispatch+0x110>
const User_extensions_Switch_control *extension =
(const User_extensions_Switch_control *) node;
(*extension->thread_switch)( executing, heir );
3000d008: e1a00005 mov r0, r5
3000d00c: e1a01004 mov r1, r4
3000d010: e1a0e00f mov lr, pc
3000d014: e59af008 ldr pc, [sl, #8]
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_next(
const Chain_Node *the_node
)
{
return the_node->next;
3000d018: e59aa000 ldr sl, [sl]
{
const Chain_Control *chain = &_User_extensions_Switches_list;
const Chain_Node *tail = _Chain_Immutable_tail( chain );
const Chain_Node *node = _Chain_Immutable_first( chain );
while ( node != tail ) {
3000d01c: e15a0006 cmp sl, r6
3000d020: 1afffff8 bne 3000d008 <_Thread_Dispatch+0xf4>
if ( executing->fp_context != NULL )
_Context_Save_fp( &executing->fp_context );
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
3000d024: e28500bc add r0, r5, #188 ; 0xbc
3000d028: e28410bc add r1, r4, #188 ; 0xbc
3000d02c: eb000515 bl 3000e488 <_CPU_Context_switch>
if ( executing->fp_context != NULL )
_Context_Restore_fp( &executing->fp_context );
#endif
#endif
executing = _Thread_Executing;
3000d030: e5975008 ldr r5, [r7, #8]
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000d034: e10f3000 mrs r3, CPSR
3000d038: e3832080 orr r2, r3, #128 ; 0x80
3000d03c: e129f002 msr CPSR_fc, r2
/*
* Now determine if we need to perform a dispatch on the current CPU.
*/
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
3000d040: e5d72004 ldrb r2, [r7, #4]
3000d044: e3520000 cmp r2, #0
3000d048: 0a000007 beq 3000d06c <_Thread_Dispatch+0x158>
heir = _Thread_Heir;
3000d04c: e598400c ldr r4, [r8, #12] <== NOT EXECUTED
3000d050: e3a01001 mov r1, #1 <== NOT EXECUTED
#ifndef RTEMS_SMP
_Thread_Dispatch_set_disable_level( 1 );
#endif
_Thread_Dispatch_necessary = false;
3000d054: e3a02000 mov r2, #0 <== NOT EXECUTED
/*
* When the heir and executing are the same, then we are being
* requested to do the post switch dispatching. This is normally
* done to dispatch signals.
*/
if ( heir == executing )
3000d058: e1540005 cmp r4, r5 <== NOT EXECUTED
3000d05c: e5891000 str r1, [r9] <== NOT EXECUTED
heir = _Thread_Heir;
#ifndef RTEMS_SMP
_Thread_Dispatch_set_disable_level( 1 );
#endif
_Thread_Dispatch_necessary = false;
_Thread_Executing = heir;
3000d060: e5884008 str r4, [r8, #8] <== NOT EXECUTED
while ( _Thread_Dispatch_necessary == true ) {
heir = _Thread_Heir;
#ifndef RTEMS_SMP
_Thread_Dispatch_set_disable_level( 1 );
#endif
_Thread_Dispatch_necessary = false;
3000d064: e5c82004 strb r2, [r8, #4] <== NOT EXECUTED
/*
* When the heir and executing are the same, then we are being
* requested to do the post switch dispatching. This is normally
* done to dispatch signals.
*/
if ( heir == executing )
3000d068: 1affffc0 bne 3000cf70 <_Thread_Dispatch+0x5c> <== NOT EXECUTED
3000d06c: e3a02000 mov r2, #0
3000d070: e5892000 str r2, [r9]
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000d074: e129f003 msr CPSR_fc, r3
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3000d078: e59f6040 ldr r6, [pc, #64] ; 3000d0c0 <_Thread_Dispatch+0x1ac>
3000d07c: e4964004 ldr r4, [r6], #4
{
const Chain_Control *chain = &_API_extensions_Post_switch_list;
const Chain_Node *tail = _Chain_Immutable_tail( chain );
const Chain_Node *node = _Chain_Immutable_first( chain );
while ( node != tail ) {
3000d080: e1540006 cmp r4, r6
3000d084: 0a000005 beq 3000d0a0 <_Thread_Dispatch+0x18c>
const API_extensions_Post_switch_control *post_switch =
(const API_extensions_Post_switch_control *) node;
(*post_switch->hook)( executing );
3000d088: e1a00005 mov r0, r5
3000d08c: e1a0e00f mov lr, pc
3000d090: e594f008 ldr pc, [r4, #8]
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_next(
const Chain_Node *the_node
)
{
return the_node->next;
3000d094: e5944000 ldr r4, [r4]
{
const Chain_Control *chain = &_API_extensions_Post_switch_list;
const Chain_Node *tail = _Chain_Immutable_tail( chain );
const Chain_Node *node = _Chain_Immutable_first( chain );
while ( node != tail ) {
3000d098: e1540006 cmp r4, r6
3000d09c: 1afffff9 bne 3000d088 <_Thread_Dispatch+0x174>
#ifdef RTEMS_SMP
_Thread_Unnest_dispatch();
#endif
_API_extensions_Run_post_switch( executing );
}
3000d0a0: e28dd018 add sp, sp, #24
3000d0a4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
3000d0e4 <_Thread_Get>:
uint32_t the_class;
Objects_Information **api_information;
Objects_Information *information;
Thread_Control *tp = (Thread_Control *) 0;
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {
3000d0e4: e2503000 subs r3, r0, #0
Thread_Control *_Thread_Get (
Objects_Id id,
Objects_Locations *location
)
{
3000d0e8: e1a02001 mov r2, r1
uint32_t the_class;
Objects_Information **api_information;
Objects_Information *information;
Thread_Control *tp = (Thread_Control *) 0;
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {
3000d0ec: 0a000014 beq 3000d144 <_Thread_Get+0x60>
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
3000d0f0: e1a01c23 lsr r1, r3, #24
3000d0f4: e2011007 and r1, r1, #7
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
3000d0f8: e2410001 sub r0, r1, #1
3000d0fc: e3500002 cmp r0, #2
3000d100: 8a00000b bhi 3000d134 <_Thread_Get+0x50>
*/
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(
Objects_Id id
)
{
return (uint32_t)
3000d104: e1a0cda3 lsr ip, r3, #27
*location = OBJECTS_ERROR;
goto done;
}
the_class = _Objects_Get_class( id );
if ( the_class != 1 ) { /* threads are always first class :) */
3000d108: e35c0001 cmp ip, #1
3000d10c: 1a000008 bne 3000d134 <_Thread_Get+0x50>
*location = OBJECTS_ERROR;
goto done;
}
api_information = _Objects_Information_table[ the_api ];
3000d110: e59f0054 ldr r0, [pc, #84] ; 3000d16c <_Thread_Get+0x88>
3000d114: e7900101 ldr r0, [r0, r1, lsl #2]
* There is no way for this to happen if POSIX is enabled. But there
* is actually a test case in sp43 for this which trips it whether or
* not POSIX is enabled. So in the interest of safety, this is left
* on in all configurations.
*/
if ( !api_information ) {
3000d118: e3500000 cmp r0, #0
3000d11c: 0a000010 beq 3000d164 <_Thread_Get+0x80>
*location = OBJECTS_ERROR;
goto done;
}
information = api_information[ the_class ];
3000d120: e5900004 ldr r0, [r0, #4]
if ( !information ) {
3000d124: e3500000 cmp r0, #0
3000d128: 0a00000d beq 3000d164 <_Thread_Get+0x80>
*location = OBJECTS_ERROR;
goto done;
}
tp = (Thread_Control *) _Objects_Get( information, id, location );
3000d12c: e1a01003 mov r1, r3
3000d130: eafffc24 b 3000c1c8 <_Objects_Get>
goto done;
}
the_class = _Objects_Get_class( id );
if ( the_class != 1 ) { /* threads are always first class :) */
*location = OBJECTS_ERROR;
3000d134: e3a03001 mov r3, #1
3000d138: e5823000 str r3, [r2]
{
uint32_t the_api;
uint32_t the_class;
Objects_Information **api_information;
Objects_Information *information;
Thread_Control *tp = (Thread_Control *) 0;
3000d13c: e3a00000 mov r0, #0
}
the_class = _Objects_Get_class( id );
if ( the_class != 1 ) { /* threads are always first class :) */
*location = OBJECTS_ERROR;
goto done;
3000d140: e12fff1e bx lr
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000d144: e59f1024 ldr r1, [pc, #36] ; 3000d170 <_Thread_Get+0x8c>
3000d148: e5910000 ldr r0, [r1]
++level;
3000d14c: e2800001 add r0, r0, #1
_Thread_Dispatch_disable_level = level;
3000d150: e5810000 str r0, [r1]
Objects_Information *information;
Thread_Control *tp = (Thread_Control *) 0;
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ) {
_Thread_Disable_dispatch();
*location = OBJECTS_LOCAL;
3000d154: e5823000 str r3, [r2]
tp = _Thread_Executing;
3000d158: e59f3014 ldr r3, [pc, #20] ; 3000d174 <_Thread_Get+0x90>
3000d15c: e5930008 ldr r0, [r3, #8]
goto done;
3000d160: e12fff1e bx lr
goto done;
}
information = api_information[ the_class ];
if ( !information ) {
*location = OBJECTS_ERROR;
3000d164: e582c000 str ip, [r2] <== NOT EXECUTED
goto done;
3000d168: e12fff1e bx lr <== NOT EXECUTED
30010eb4 <_Thread_Reset>:
void _Thread_Reset(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
30010eb4: e92d4030 push {r4, r5, lr}
the_thread->resource_count = 0;
the_thread->is_preemptible = the_thread->Start.is_preemptible;
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
30010eb8: e590c0a0 ldr ip, [r0, #160] ; 0xa0
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
the_thread->resource_count = 0;
the_thread->is_preemptible = the_thread->Start.is_preemptible;
30010ebc: e5d0e09c ldrb lr, [r0, #156] ; 0x9c
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
the_thread->budget_callout = the_thread->Start.budget_callout;
30010ec0: e59030a4 ldr r3, [r0, #164] ; 0xa4
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
the_thread->resource_count = 0;
30010ec4: e3a05000 mov r5, #0
30010ec8: e580501c str r5, [r0, #28]
the_thread->is_preemptible = the_thread->Start.is_preemptible;
30010ecc: e5c0e070 strb lr, [r0, #112] ; 0x70
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
30010ed0: e580c078 str ip, [r0, #120] ; 0x78
the_thread->budget_callout = the_thread->Start.budget_callout;
30010ed4: e580307c str r3, [r0, #124] ; 0x7c
the_thread->Start.pointer_argument = pointer_argument;
30010ed8: e5801094 str r1, [r0, #148] ; 0x94
the_thread->Start.numeric_argument = numeric_argument;
30010edc: e5802098 str r2, [r0, #152] ; 0x98
void _Thread_Reset(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
30010ee0: e1a04000 mov r4, r0
the_thread->budget_callout = the_thread->Start.budget_callout;
the_thread->Start.pointer_argument = pointer_argument;
the_thread->Start.numeric_argument = numeric_argument;
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
30010ee4: ebfff450 bl 3000e02c <_Thread_queue_Extract_with_proxy>
30010ee8: e1500005 cmp r0, r5
30010eec: 1a000002 bne 30010efc <_Thread_Reset+0x48>
if ( _Watchdog_Is_active( &the_thread->Timer ) )
30010ef0: e5943050 ldr r3, [r4, #80] ; 0x50
30010ef4: e3530002 cmp r3, #2
30010ef8: 0a000007 beq 30010f1c <_Thread_Reset+0x68>
(void) _Watchdog_Remove( &the_thread->Timer );
}
if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
30010efc: e59410ac ldr r1, [r4, #172] ; 0xac
30010f00: e5943014 ldr r3, [r4, #20]
30010f04: e1530001 cmp r3, r1
30010f08: 08bd8030 popeq {r4, r5, pc}
the_thread->real_priority = the_thread->Start.initial_priority;
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
30010f0c: e1a00004 mov r0, r4
if ( _Watchdog_Is_active( &the_thread->Timer ) )
(void) _Watchdog_Remove( &the_thread->Timer );
}
if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
the_thread->real_priority = the_thread->Start.initial_priority;
30010f10: e5841018 str r1, [r4, #24]
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
}
}
30010f14: e8bd4030 pop {r4, r5, lr}
(void) _Watchdog_Remove( &the_thread->Timer );
}
if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
the_thread->real_priority = the_thread->Start.initial_priority;
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
30010f18: eafff4bb b 3000e20c <_Thread_Set_priority>
the_thread->Start.numeric_argument = numeric_argument;
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
if ( _Watchdog_Is_active( &the_thread->Timer ) )
(void) _Watchdog_Remove( &the_thread->Timer );
30010f1c: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED
30010f20: ebfff60f bl 3000e764 <_Watchdog_Remove> <== NOT EXECUTED
30010f24: eafffff4 b 30010efc <_Thread_Reset+0x48> <== NOT EXECUTED
3000da5c <_Thread_Start>:
*/
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (
States_Control the_states
)
{
return (the_states & STATES_DORMANT);
3000da5c: e590c010 ldr ip, [r0, #16]
Thread_Start_types the_prototype,
void *entry_point,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
3000da60: e92d4010 push {r4, lr}
if ( _States_Is_dormant( the_thread->current_state ) ) {
3000da64: e21cc001 ands ip, ip, #1
Thread_Start_types the_prototype,
void *entry_point,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
3000da68: e1a04000 mov r4, r0
if ( _States_Is_dormant( the_thread->current_state ) ) {
3000da6c: 1a000001 bne 3000da78 <_Thread_Start+0x1c>
_User_extensions_Thread_start( the_thread );
return true;
}
return false;
3000da70: e1a0000c mov r0, ip <== NOT EXECUTED
}
3000da74: e8bd8010 pop {r4, pc} <== NOT EXECUTED
if ( _States_Is_dormant( the_thread->current_state ) ) {
the_thread->Start.entry_point = (Thread_Entry) entry_point;
the_thread->Start.prototype = the_prototype;
the_thread->Start.pointer_argument = pointer_argument;
3000da78: e5803094 str r3, [r0, #148] ; 0x94
the_thread->Start.numeric_argument = numeric_argument;
3000da7c: e59d3008 ldr r3, [sp, #8]
Thread_Entry_numeric_type numeric_argument
)
{
if ( _States_Is_dormant( the_thread->current_state ) ) {
the_thread->Start.entry_point = (Thread_Entry) entry_point;
3000da80: e580208c str r2, [r0, #140] ; 0x8c
the_thread->Start.prototype = the_prototype;
3000da84: e5801090 str r1, [r0, #144] ; 0x90
the_thread->Start.pointer_argument = pointer_argument;
the_thread->Start.numeric_argument = numeric_argument;
3000da88: e5803098 str r3, [r0, #152] ; 0x98
_Thread_Load_environment( the_thread );
3000da8c: eb000a21 bl 30010318 <_Thread_Load_environment>
_Thread_Ready( the_thread );
3000da90: e1a00004 mov r0, r4
3000da94: eb000abf bl 30010598 <_Thread_Ready>
);
}
static inline void _User_extensions_Thread_start( Thread_Control *started )
{
_User_extensions_Iterate(
3000da98: e1a00004 mov r0, r4
3000da9c: e59f1008 ldr r1, [pc, #8] ; 3000daac <_Thread_Start+0x50>
3000daa0: eb000041 bl 3000dbac <_User_extensions_Iterate>
_User_extensions_Thread_start( the_thread );
return true;
3000daa4: e3a00001 mov r0, #1
3000daa8: e8bd8010 pop {r4, pc}
3000cba0 <_Thread_blocking_operation_Cancel>:
Thread_blocking_operation_States sync_state __attribute__((unused)),
#endif
Thread_Control *the_thread,
ISR_Level level
)
{
3000cba0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
/*
* If the sync state is timed out, this is very likely not needed.
* But better safe than sorry when it comes to critical sections.
*/
if ( _Watchdog_Is_active( &the_thread->Timer ) ) {
3000cba4: e5913050 ldr r3, [r1, #80] ; 0x50 <== NOT EXECUTED
Thread_blocking_operation_States sync_state __attribute__((unused)),
#endif
Thread_Control *the_thread,
ISR_Level level
)
{
3000cba8: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
/*
* If the sync state is timed out, this is very likely not needed.
* But better safe than sorry when it comes to critical sections.
*/
if ( _Watchdog_Is_active( &the_thread->Timer ) ) {
3000cbac: e3530002 cmp r3, #2 <== NOT EXECUTED
#endif
/*
* The thread is not waiting on anything after this completes.
*/
the_thread->Wait.queue = NULL;
3000cbb0: e3a03000 mov r3, #0 <== NOT EXECUTED
3000cbb4: e5813044 str r3, [r1, #68] ; 0x44 <== NOT EXECUTED
/*
* If the sync state is timed out, this is very likely not needed.
* But better safe than sorry when it comes to critical sections.
*/
if ( _Watchdog_Is_active( &the_thread->Timer ) ) {
3000cbb8: 0a000005 beq 3000cbd4 <_Thread_blocking_operation_Cancel+0x34><== NOT EXECUTED
3000cbbc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
3000cbc0: e1a00001 mov r0, r1 <== NOT EXECUTED
3000cbc4: e59f1028 ldr r1, [pc, #40] ; 3000cbf4 <_Thread_blocking_operation_Cancel+0x54><== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
3000cbc8: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000cbcc: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED
3000cbd0: ea000046 b 3000ccf0 <_Thread_Clear_state> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
3000cbd4: e3a03003 mov r3, #3 <== NOT EXECUTED
3000cbd8: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED
3000cbdc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
* But better safe than sorry when it comes to critical sections.
*/
if ( _Watchdog_Is_active( &the_thread->Timer ) ) {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
3000cbe0: e2810048 add r0, r1, #72 ; 0x48 <== NOT EXECUTED
3000cbe4: e58d1000 str r1, [sp] <== NOT EXECUTED
3000cbe8: eb0004a2 bl 3000de78 <_Watchdog_Remove> <== NOT EXECUTED
3000cbec: e59d1000 ldr r1, [sp] <== NOT EXECUTED
3000cbf0: eafffff2 b 3000cbc0 <_Thread_blocking_operation_Cancel+0x20><== NOT EXECUTED
30010368 <_Thread_queue_Dequeue_fifo>:
#include <rtems/score/tqdata.h>
Thread_Control *_Thread_queue_Dequeue_fifo(
Thread_queue_Control *the_thread_queue
)
{
30010368: e92d4010 push {r4, lr}
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3001036c: e10f2000 mrs r2, CPSR
30010370: e3823080 orr r3, r2, #128 ; 0x80
30010374: e129f003 msr CPSR_fc, r3
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
30010378: e1a03000 mov r3, r0
3001037c: e4934004 ldr r4, [r3], #4
ISR_Level level;
Thread_Control *the_thread;
_ISR_Disable( level );
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) {
30010380: e1540003 cmp r4, r3
30010384: 0a000017 beq 300103e8 <_Thread_queue_Dequeue_fifo+0x80>
the_thread = (Thread_Control *)
_Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo );
the_thread->Wait.queue = NULL;
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
30010388: e5941050 ldr r1, [r4, #80] ; 0x50
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
3001038c: e5943000 ldr r3, [r4]
30010390: e3510002 cmp r1, #2
head->next = new_first;
30010394: e5803000 str r3, [r0]
new_first->previous = head;
30010398: e5830004 str r0, [r3, #4]
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) {
the_thread = (Thread_Control *)
_Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo );
the_thread->Wait.queue = NULL;
3001039c: e3a03000 mov r3, #0
300103a0: e5843044 str r3, [r4, #68] ; 0x44
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
300103a4: 0a000005 beq 300103c0 <_Thread_queue_Dequeue_fifo+0x58>
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
300103a8: e129f002 msr CPSR_fc, r2
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
300103ac: e59f1040 ldr r1, [pc, #64] ; 300103f4 <_Thread_queue_Dequeue_fifo+0x8c>
300103b0: e1a00004 mov r0, r4
300103b4: ebfff24d bl 3000ccf0 <_Thread_Clear_state>
return the_thread;
}
_ISR_Enable( level );
return NULL;
}
300103b8: e1a00004 mov r0, r4
300103bc: e8bd8010 pop {r4, pc}
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
300103c0: e3a03003 mov r3, #3 <== NOT EXECUTED
300103c4: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED
300103c8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_ISR_Enable( level );
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
300103cc: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED
300103d0: ebfff6a8 bl 3000de78 <_Watchdog_Remove> <== NOT EXECUTED
300103d4: e1a00004 mov r0, r4 <== NOT EXECUTED
300103d8: e59f1014 ldr r1, [pc, #20] ; 300103f4 <_Thread_queue_Dequeue_fifo+0x8c><== NOT EXECUTED
300103dc: ebfff243 bl 3000ccf0 <_Thread_Clear_state> <== NOT EXECUTED
return the_thread;
}
_ISR_Enable( level );
return NULL;
}
300103e0: e1a00004 mov r0, r4 <== NOT EXECUTED
300103e4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
300103e8: e129f002 msr CPSR_fc, r2
return the_thread;
}
_ISR_Enable( level );
return NULL;
300103ec: e3a04000 mov r4, #0
300103f0: eafffff0 b 300103b8 <_Thread_queue_Dequeue_fifo+0x50>
3000d468 <_Thread_queue_Dequeue_priority>:
#include <rtems/score/tqdata.h>
Thread_Control *_Thread_queue_Dequeue_priority(
Thread_queue_Control *the_thread_queue
)
{
3000d468: e92d4010 push {r4, lr}
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000d46c: e10fc000 mrs ip, CPSR
3000d470: e38c3080 orr r3, ip, #128 ; 0x80
3000d474: e129f003 msr CPSR_fc, r3
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
for( index=0 ;
3000d478: e3a03000 mov r3, #0
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) {
3000d47c: e0832083 add r2, r3, r3, lsl #1
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3000d480: e7904102 ldr r4, [r0, r2, lsl #2]
3000d484: e0801102 add r1, r0, r2, lsl #2
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
3000d488: e2812004 add r2, r1, #4
3000d48c: e1540002 cmp r4, r2
Chain_Node *previous_node;
_ISR_Disable( level );
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
3000d490: e2833001 add r3, r3, #1
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) {
3000d494: 1a000005 bne 3000d4b0 <_Thread_queue_Dequeue_priority+0x48>
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
for( index=0 ;
3000d498: e3530004 cmp r3, #4
3000d49c: 1afffff6 bne 3000d47c <_Thread_queue_Dequeue_priority+0x14>
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000d4a0: e129f00c msr CPSR_fc, ip
/*
* We did not find a thread to unblock.
*/
_ISR_Enable( level );
return NULL;
3000d4a4: e3a04000 mov r4, #0
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
return( the_thread );
}
3000d4a8: e1a00004 mov r0, r4
3000d4ac: e8bd8010 pop {r4, pc}
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return _Chain_Head( the_chain )->next;
3000d4b0: e5943038 ldr r3, [r4, #56] ; 0x38
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
3000d4b4: e284203c add r2, r4, #60 ; 0x3c
new_first_node = _Chain_First( &the_thread->Wait.Block2n );
new_first_thread = (Thread_Control *) new_first_node;
next_node = the_thread->Object.Node.next;
previous_node = the_thread->Object.Node.previous;
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
3000d4b8: e1530002 cmp r3, r2
*/
_ISR_Enable( level );
return NULL;
dequeue:
the_thread->Wait.queue = NULL;
3000d4bc: e3a02000 mov r2, #0
3000d4c0: e5842044 str r2, [r4, #68] ; 0x44
new_first_node = _Chain_First( &the_thread->Wait.Block2n );
new_first_thread = (Thread_Control *) new_first_node;
next_node = the_thread->Object.Node.next;
previous_node = the_thread->Object.Node.previous;
3000d4c4: e5941004 ldr r1, [r4, #4]
dequeue:
the_thread->Wait.queue = NULL;
new_first_node = _Chain_First( &the_thread->Wait.Block2n );
new_first_thread = (Thread_Control *) new_first_node;
next_node = the_thread->Object.Node.next;
3000d4c8: e5942000 ldr r2, [r4]
previous_node = the_thread->Object.Node.previous;
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
3000d4cc: 0a000020 beq 3000d554 <_Thread_queue_Dequeue_priority+0xec>
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return _Chain_Tail( the_chain )->previous;
3000d4d0: e5940040 ldr r0, [r4, #64] ; 0x40 <== NOT EXECUTED
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
3000d4d4: e593e000 ldr lr, [r3] <== NOT EXECUTED
previous_node->next = new_first_node;
next_node->previous = new_first_node;
3000d4d8: e5823004 str r3, [r2, #4] <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
previous_node->next = new_first_node;
3000d4dc: e5813000 str r3, [r1] <== NOT EXECUTED
next_node->previous = new_first_node;
new_first_node->next = next_node;
new_first_node->previous = previous_node;
3000d4e0: e5831004 str r1, [r3, #4] <== NOT EXECUTED
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
previous_node->next = new_first_node;
next_node->previous = new_first_node;
new_first_node->next = next_node;
3000d4e4: e5832000 str r2, [r3] <== NOT EXECUTED
new_first_node->previous = previous_node;
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
3000d4e8: e5941038 ldr r1, [r4, #56] ; 0x38 <== NOT EXECUTED
3000d4ec: e5942040 ldr r2, [r4, #64] ; 0x40 <== NOT EXECUTED
3000d4f0: e1510002 cmp r1, r2 <== NOT EXECUTED
3000d4f4: 0a000005 beq 3000d510 <_Thread_queue_Dequeue_priority+0xa8><== NOT EXECUTED
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
3000d4f8: e2831038 add r1, r3, #56 ; 0x38 <== NOT EXECUTED
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
3000d4fc: e283203c add r2, r3, #60 ; 0x3c <== NOT EXECUTED
new_second_node->previous = head;
3000d500: e58e1004 str r1, [lr, #4] <== NOT EXECUTED
head->next = new_second_node;
3000d504: e583e038 str lr, [r3, #56] ; 0x38 <== NOT EXECUTED
tail->previous = last_node;
3000d508: e5830040 str r0, [r3, #64] ; 0x40 <== NOT EXECUTED
last_node->next = tail;
3000d50c: e5802000 str r2, [r0] <== NOT EXECUTED
} else {
previous_node->next = next_node;
next_node->previous = previous_node;
}
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
3000d510: e5943050 ldr r3, [r4, #80] ; 0x50
3000d514: e3530002 cmp r3, #2
3000d518: 0a000004 beq 3000d530 <_Thread_queue_Dequeue_priority+0xc8>
3000d51c: e129f00c msr CPSR_fc, ip
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
3000d520: e59f1038 ldr r1, [pc, #56] ; 3000d560 <_Thread_queue_Dequeue_priority+0xf8>
3000d524: e1a00004 mov r0, r4
3000d528: ebfffdf0 bl 3000ccf0 <_Thread_Clear_state>
3000d52c: eaffffdd b 3000d4a8 <_Thread_queue_Dequeue_priority+0x40>
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
3000d530: e3a03003 mov r3, #3 <== NOT EXECUTED
3000d534: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED
3000d538: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
_ISR_Enable( level );
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
3000d53c: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED
3000d540: eb00024c bl 3000de78 <_Watchdog_Remove> <== NOT EXECUTED
3000d544: e1a00004 mov r0, r4 <== NOT EXECUTED
3000d548: e59f1010 ldr r1, [pc, #16] ; 3000d560 <_Thread_queue_Dequeue_priority+0xf8><== NOT EXECUTED
3000d54c: ebfffde7 bl 3000ccf0 <_Thread_Clear_state> <== NOT EXECUTED
3000d550: eaffffd4 b 3000d4a8 <_Thread_queue_Dequeue_priority+0x40> <== NOT EXECUTED
head->next = new_second_node;
tail->previous = last_node;
last_node->next = tail;
}
} else {
previous_node->next = next_node;
3000d554: e5812000 str r2, [r1]
next_node->previous = previous_node;
3000d558: e5821004 str r1, [r2, #4]
3000d55c: eaffffeb b 3000d510 <_Thread_queue_Dequeue_priority+0xa8>
3000d610 <_Thread_queue_Enqueue_priority>:
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
3000d610: e5913014 ldr r3, [r1, #20]
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
3000d614: e92d07f0 push {r4, r5, r6, r7, r8, r9, sl}
RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number (
Priority_Control the_priority
)
{
return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);
3000d618: e1a0c323 lsr ip, r3, #6
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
3000d61c: e281503c add r5, r1, #60 ; 0x3c
_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 ];
3000d620: e08cc08c add ip, ip, ip, lsl #1
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
3000d624: e3130020 tst r3, #32
3000d628: e2814038 add r4, r1, #56 ; 0x38
head->next = tail;
3000d62c: e5815038 str r5, [r1, #56] ; 0x38
_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 ];
3000d630: e080c10c add ip, r0, ip, lsl #2
head->previous = NULL;
3000d634: e3a05000 mov r5, #0
3000d638: e581503c str r5, [r1, #60] ; 0x3c
tail->previous = head;
3000d63c: e5814040 str r4, [r1, #64] ; 0x40
block_state = the_thread_queue->state;
3000d640: e5906038 ldr r6, [r0, #56] ; 0x38
3000d644: 028c9004 addeq r9, ip, #4
3000d648: 159f9164 ldrne r9, [pc, #356] ; 3000d7b4 <_Thread_queue_Enqueue_priority+0x1a4>
if ( _Thread_queue_Is_reverse_search( priority ) )
3000d64c: 1a00001b bne 3000d6c0 <_Thread_queue_Enqueue_priority+0xb0>
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000d650: e10fa000 mrs sl, CPSR
3000d654: e38a4080 orr r4, sl, #128 ; 0x80
3000d658: e129f004 msr CPSR_fc, r4
3000d65c: e1a0800a mov r8, sl
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return _Chain_Head( the_chain )->next;
3000d660: e59c4000 ldr r4, [ip]
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) _Chain_First( header );
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
3000d664: e1540009 cmp r4, r9
3000d668: 1a000009 bne 3000d694 <_Thread_queue_Enqueue_priority+0x84>
3000d66c: ea00004e b 3000d7ac <_Thread_queue_Enqueue_priority+0x19c>
static inline void arm_interrupt_flash( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000d670: e10f7000 mrs r7, CPSR
3000d674: e129f00a msr CPSR_fc, sl
3000d678: e129f007 msr CPSR_fc, r7
RTEMS_INLINE_ROUTINE bool _States_Are_set (
States_Control the_states,
States_Control mask
)
{
return ( (the_states & mask) != STATES_READY);
3000d67c: e5947010 ldr r7, [r4, #16]
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) ) {
3000d680: e1160007 tst r6, r7
3000d684: 0a000031 beq 3000d750 <_Thread_queue_Enqueue_priority+0x140>
_ISR_Enable( level );
goto restart_forward_search;
}
search_thread =
3000d688: e5944000 ldr r4, [r4]
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) _Chain_First( header );
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
3000d68c: e1540009 cmp r4, r9
3000d690: 0a000002 beq 3000d6a0 <_Thread_queue_Enqueue_priority+0x90>
search_priority = search_thread->current_priority;
3000d694: e5945014 ldr r5, [r4, #20]
if ( priority <= search_priority )
3000d698: e1530005 cmp r3, r5
3000d69c: 8afffff3 bhi 3000d670 <_Thread_queue_Enqueue_priority+0x60>
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
3000d6a0: e590c030 ldr ip, [r0, #48] ; 0x30
3000d6a4: e35c0001 cmp ip, #1
3000d6a8: 0a00002a beq 3000d758 <_Thread_queue_Enqueue_priority+0x148>
* 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;
3000d6ac: e5828000 str r8, [r2] <== NOT EXECUTED
return the_thread_queue->sync_state;
}
3000d6b0: e1a0000c mov r0, ip
3000d6b4: e8bd07f0 pop {r4, r5, r6, r7, r8, r9, sl}
3000d6b8: e12fff1e bx lr
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000d6bc: e129f00a msr CPSR_fc, sl <== NOT EXECUTED
the_thread->Wait.queue = the_thread_queue;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
3000d6c0: e5d95000 ldrb r5, [r9]
3000d6c4: e2855001 add r5, r5, #1
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000d6c8: e10fa000 mrs sl, CPSR
3000d6cc: e38a4080 orr r4, sl, #128 ; 0x80
3000d6d0: e129f004 msr CPSR_fc, r4
3000d6d4: e1a0800a mov r8, sl
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return _Chain_Tail( the_chain )->previous;
3000d6d8: e59c4008 ldr r4, [ip, #8]
_ISR_Disable( level );
search_thread = (Thread_Control *) _Chain_Last( header );
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
3000d6dc: e154000c cmp r4, ip
3000d6e0: 1a000009 bne 3000d70c <_Thread_queue_Enqueue_priority+0xfc>
3000d6e4: ea00000b b 3000d718 <_Thread_queue_Enqueue_priority+0x108>
static inline void arm_interrupt_flash( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000d6e8: e10f7000 mrs r7, CPSR <== NOT EXECUTED
3000d6ec: e129f00a msr CPSR_fc, sl <== NOT EXECUTED
3000d6f0: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
3000d6f4: e5947010 ldr r7, [r4, #16] <== NOT EXECUTED
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) ) {
3000d6f8: e1160007 tst r6, r7 <== NOT EXECUTED
3000d6fc: 0affffee beq 3000d6bc <_Thread_queue_Enqueue_priority+0xac><== NOT EXECUTED
_ISR_Enable( level );
goto restart_reverse_search;
}
search_thread = (Thread_Control *)
3000d700: e5944004 ldr r4, [r4, #4] <== NOT EXECUTED
restart_reverse_search:
search_priority = PRIORITY_MAXIMUM + 1;
_ISR_Disable( level );
search_thread = (Thread_Control *) _Chain_Last( header );
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
3000d704: e154000c cmp r4, ip <== NOT EXECUTED
3000d708: 0a000002 beq 3000d718 <_Thread_queue_Enqueue_priority+0x108><== NOT EXECUTED
search_priority = search_thread->current_priority;
3000d70c: e5945014 ldr r5, [r4, #20]
if ( priority >= search_priority )
3000d710: e1530005 cmp r3, r5
3000d714: 3afffff3 bcc 3000d6e8 <_Thread_queue_Enqueue_priority+0xd8>
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
3000d718: e590c030 ldr ip, [r0, #48] ; 0x30
3000d71c: e35c0001 cmp ip, #1
3000d720: 1affffe1 bne 3000d6ac <_Thread_queue_Enqueue_priority+0x9c>
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
if ( priority == search_priority )
3000d724: e1530005 cmp r3, r5
if ( the_thread_queue->sync_state !=
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
3000d728: e3a03000 mov r3, #0
3000d72c: e5803030 str r3, [r0, #48] ; 0x30
if ( priority == search_priority )
3000d730: 0a000014 beq 3000d788 <_Thread_queue_Enqueue_priority+0x178>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
3000d734: e5943000 ldr r3, [r4]
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
3000d738: e8810018 stm r1, {r3, r4}
the_node->previous = search_node;
search_node->next = the_node;
next_node->previous = the_node;
3000d73c: e5831004 str r1, [r3, #4]
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;
3000d740: e5841000 str r1, [r4]
next_node->previous = the_node;
the_thread->Wait.queue = the_thread_queue;
3000d744: e5810044 str r0, [r1, #68] ; 0x44
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000d748: e129f00a msr CPSR_fc, sl
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
3000d74c: eaffffd7 b 3000d6b0 <_Thread_queue_Enqueue_priority+0xa0>
3000d750: e129f00a msr CPSR_fc, sl <== NOT EXECUTED
3000d754: eaffffbd b 3000d650 <_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 )
3000d758: e1530005 cmp r3, r5
if ( the_thread_queue->sync_state !=
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
3000d75c: e3a03000 mov r3, #0
3000d760: e5803030 str r3, [r0, #48] ; 0x30
if ( priority == search_priority )
3000d764: 0a000007 beq 3000d788 <_Thread_queue_Enqueue_priority+0x178>
goto equal_priority;
search_node = (Chain_Node *) search_thread;
previous_node = search_node->previous;
3000d768: e5943004 ldr r3, [r4, #4]
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
3000d76c: e5814000 str r4, [r1]
the_node->previous = previous_node;
3000d770: e5813004 str r3, [r1, #4]
previous_node->next = the_node;
3000d774: e5831000 str r1, [r3]
search_node->previous = the_node;
3000d778: e5841004 str r1, [r4, #4]
the_thread->Wait.queue = the_thread_queue;
3000d77c: e5810044 str r0, [r1, #68] ; 0x44
3000d780: e129f00a msr CPSR_fc, sl
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
3000d784: eaffffc9 b 3000d6b0 <_Thread_queue_Enqueue_priority+0xa0>
_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;
3000d788: e5943040 ldr r3, [r4, #64] ; 0x40 <== NOT EXECUTED
the_thread->Wait.queue = the_thread_queue;
_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 );
3000d78c: e284203c add r2, r4, #60 ; 0x3c <== NOT EXECUTED
previous_node = search_node->previous;
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
the_node->previous = previous_node;
3000d790: e881000c stm r1, {r2, r3} <== NOT EXECUTED
previous_node->next = the_node;
3000d794: e5831000 str r1, [r3] <== NOT EXECUTED
search_node->previous = the_node;
3000d798: e5841040 str r1, [r4, #64] ; 0x40 <== NOT EXECUTED
the_thread->Wait.queue = the_thread_queue;
3000d79c: e5810044 str r0, [r1, #68] ; 0x44 <== NOT EXECUTED
3000d7a0: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
3000d7a4: e3a0c001 mov ip, #1 <== NOT EXECUTED
3000d7a8: eaffffc0 b 3000d6b0 <_Thread_queue_Enqueue_priority+0xa0> <== NOT EXECUTED
if ( _Thread_queue_Is_reverse_search( priority ) )
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
3000d7ac: e3e05000 mvn r5, #0
3000d7b0: eaffffba b 3000d6a0 <_Thread_queue_Enqueue_priority+0x90>
30011970 <_Thread_queue_Extract_fifo>:
void _Thread_queue_Extract_fifo(
Thread_queue_Control *the_thread_queue __attribute__((unused)),
Thread_Control *the_thread
)
{
30011970: e52de004 push {lr} ; (str lr, [sp, #-4]!)
30011974: e24dd004 sub sp, sp, #4
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
30011978: e10f0000 mrs r0, CPSR
3001197c: e3803080 orr r3, r0, #128 ; 0x80
30011980: e129f003 msr CPSR_fc, r3
30011984: e59f3070 ldr r3, [pc, #112] ; 300119fc <_Thread_queue_Extract_fifo+0x8c>
30011988: e5912010 ldr r2, [r1, #16]
3001198c: e0023003 and r3, r2, r3
ISR_Level level;
_ISR_Disable( level );
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
30011990: e3530000 cmp r3, #0
30011994: 0a00000d beq 300119d0 <_Thread_queue_Extract_fifo+0x60>
_Chain_Extract_unprotected( &the_thread->Object.Node );
the_thread->Wait.queue = NULL;
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
30011998: e591c050 ldr ip, [r1, #80] ; 0x50
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
3001199c: e891000c ldm r1, {r2, r3}
300119a0: e35c0002 cmp ip, #2
next->previous = previous;
300119a4: e5823004 str r3, [r2, #4]
previous->next = next;
300119a8: e5832000 str r2, [r3]
return;
}
_Chain_Extract_unprotected( &the_thread->Object.Node );
the_thread->Wait.queue = NULL;
300119ac: e3a03000 mov r3, #0
300119b0: e5813044 str r3, [r1, #68] ; 0x44
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
300119b4: 0a000008 beq 300119dc <_Thread_queue_Extract_fifo+0x6c>
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
300119b8: e129f000 msr CPSR_fc, r0
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
300119bc: e1a00001 mov r0, r1
300119c0: e59f1038 ldr r1, [pc, #56] ; 30011a00 <_Thread_queue_Extract_fifo+0x90>
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
300119c4: e28dd004 add sp, sp, #4
300119c8: e49de004 pop {lr} ; (ldr lr, [sp], #4)
300119cc: eaffecc7 b 3000ccf0 <_Thread_Clear_state>
300119d0: e129f000 msr CPSR_fc, r0
300119d4: e28dd004 add sp, sp, #4
300119d8: e8bd8000 pop {pc}
300119dc: e3a03003 mov r3, #3 <== NOT EXECUTED
300119e0: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED
300119e4: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
_ISR_Enable( level );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
300119e8: e2810048 add r0, r1, #72 ; 0x48 <== NOT EXECUTED
300119ec: e58d1000 str r1, [sp] <== NOT EXECUTED
300119f0: ebfff120 bl 3000de78 <_Watchdog_Remove> <== NOT EXECUTED
300119f4: e59d1000 ldr r1, [sp] <== NOT EXECUTED
300119f8: eaffffef b 300119bc <_Thread_queue_Extract_fifo+0x4c> <== NOT EXECUTED
30010468 <_Thread_queue_Extract_priority_helper>:
void _Thread_queue_Extract_priority_helper(
Thread_queue_Control *the_thread_queue __attribute__((unused)),
Thread_Control *the_thread,
bool requeuing
)
{
30010468: e92d4070 push {r4, r5, r6, lr}
3001046c: e20220ff and r2, r2, #255 ; 0xff
30010470: e24dd004 sub sp, sp, #4
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
30010474: e10fc000 mrs ip, CPSR
30010478: e38c3080 orr r3, ip, #128 ; 0x80
3001047c: e129f003 msr CPSR_fc, r3
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
States_Control the_states
)
{
return (the_states & STATES_WAITING_ON_THREAD_QUEUE);
30010480: e59f30bc ldr r3, [pc, #188] ; 30010544 <_Thread_queue_Extract_priority_helper+0xdc>
30010484: e5910010 ldr r0, [r1, #16]
30010488: e0003003 and r3, r0, r3
Chain_Node *new_second_node;
Chain_Node *last_node;
the_node = (Chain_Node *) the_thread;
_ISR_Disable( level );
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
3001048c: e3530000 cmp r3, #0
30010490: 0a000020 beq 30010518 <_Thread_queue_Extract_priority_helper+0xb0>
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
30010494: e5913038 ldr r3, [r1, #56] ; 0x38 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
30010498: e281003c add r0, r1, #60 ; 0x3c <== NOT EXECUTED
*/
next_node = the_node->next;
previous_node = the_node->previous;
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
3001049c: e1530000 cmp r3, r0 <== NOT EXECUTED
/*
* The thread was actually waiting on a thread queue so let's remove it.
*/
next_node = the_node->next;
previous_node = the_node->previous;
300104a0: e8910011 ldm r1, {r0, r4} <== NOT EXECUTED
head->next = new_second_node;
tail->previous = last_node;
last_node->next = tail;
}
} else {
previous_node->next = next_node;
300104a4: 05840000 streq r0, [r4] <== NOT EXECUTED
next_node->previous = previous_node;
300104a8: 05804004 streq r4, [r0, #4] <== NOT EXECUTED
*/
next_node = the_node->next;
previous_node = the_node->previous;
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
300104ac: 0a00000e beq 300104ec <_Thread_queue_Extract_priority_helper+0x84><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(
Chain_Control *the_chain
)
{
return _Chain_Tail( the_chain )->previous;
300104b0: e5915040 ldr r5, [r1, #64] ; 0x40 <== NOT EXECUTED
new_first_node = _Chain_First( &the_thread->Wait.Block2n );
new_first_thread = (Thread_Control *) new_first_node;
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
300104b4: e5936000 ldr r6, [r3] <== NOT EXECUTED
previous_node->next = new_first_node;
next_node->previous = new_first_node;
300104b8: e5803004 str r3, [r0, #4] <== NOT EXECUTED
new_first_node = _Chain_First( &the_thread->Wait.Block2n );
new_first_thread = (Thread_Control *) new_first_node;
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
previous_node->next = new_first_node;
300104bc: e5843000 str r3, [r4] <== NOT EXECUTED
next_node->previous = new_first_node;
new_first_node->next = next_node;
300104c0: e8830011 stm r3, {r0, r4} <== NOT EXECUTED
new_first_node->previous = previous_node;
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
300104c4: e5914038 ldr r4, [r1, #56] ; 0x38 <== NOT EXECUTED
300104c8: e5910040 ldr r0, [r1, #64] ; 0x40 <== NOT EXECUTED
300104cc: e1540000 cmp r4, r0 <== NOT EXECUTED
300104d0: 0a000005 beq 300104ec <_Thread_queue_Extract_priority_helper+0x84><== NOT EXECUTED
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
300104d4: e2834038 add r4, r3, #56 ; 0x38 <== NOT EXECUTED
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
300104d8: e283003c add r0, r3, #60 ; 0x3c <== NOT EXECUTED
new_second_node->previous = head;
300104dc: e5864004 str r4, [r6, #4] <== NOT EXECUTED
head->next = new_second_node;
300104e0: e5836038 str r6, [r3, #56] ; 0x38 <== NOT EXECUTED
tail->previous = last_node;
300104e4: e5835040 str r5, [r3, #64] ; 0x40 <== NOT EXECUTED
last_node->next = tail;
300104e8: e5850000 str r0, [r5] <== NOT EXECUTED
/*
* If we are not supposed to touch timers or the thread's state, return.
*/
if ( requeuing ) {
300104ec: e3520000 cmp r2, #0 <== NOT EXECUTED
300104f0: 1a000008 bne 30010518 <_Thread_queue_Extract_priority_helper+0xb0><== NOT EXECUTED
_ISR_Enable( level );
return;
}
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
300104f4: e5913050 ldr r3, [r1, #80] ; 0x50 <== NOT EXECUTED
300104f8: e3530002 cmp r3, #2 <== NOT EXECUTED
300104fc: 0a000008 beq 30010524 <_Thread_queue_Extract_priority_helper+0xbc><== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
30010500: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
30010504: e1a00001 mov r0, r1 <== NOT EXECUTED
30010508: e59f1038 ldr r1, [pc, #56] ; 30010548 <_Thread_queue_Extract_priority_helper+0xe0><== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
3001050c: e28dd004 add sp, sp, #4 <== NOT EXECUTED
30010510: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED
30010514: eafff1f5 b 3000ccf0 <_Thread_Clear_state> <== NOT EXECUTED
30010518: e129f00c msr CPSR_fc, ip
3001051c: e28dd004 add sp, sp, #4
30010520: e8bd8070 pop {r4, r5, r6, pc}
30010524: e3a03003 mov r3, #3 <== NOT EXECUTED
30010528: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED
3001052c: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
_ISR_Enable( level );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
30010530: e2810048 add r0, r1, #72 ; 0x48 <== NOT EXECUTED
30010534: e58d1000 str r1, [sp] <== NOT EXECUTED
30010538: ebfff64e bl 3000de78 <_Watchdog_Remove> <== NOT EXECUTED
3001053c: e59d1000 ldr r1, [sp] <== NOT EXECUTED
30010540: eaffffef b 30010504 <_Thread_queue_Extract_priority_helper+0x9c><== NOT EXECUTED
30021914 <_Thread_queue_First_priority>:
Thread_queue_Control *the_thread_queue
)
{
uint32_t index;
for( index=0 ;
30021914: e3a03000 mov r3, #0 <== NOT EXECUTED
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) )
30021918: e0832083 add r2, r3, r3, lsl #1 <== NOT EXECUTED
3002191c: e0801102 add r1, r0, r2, lsl #2 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
30021920: e7902102 ldr r2, [r0, r2, lsl #2] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
30021924: e2811004 add r1, r1, #4 <== NOT EXECUTED
30021928: e1520001 cmp r2, r1 <== NOT EXECUTED
{
uint32_t index;
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
3002192c: e2833001 add r3, r3, #1 <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) )
30021930: 1a000002 bne 30021940 <_Thread_queue_First_priority+0x2c> <== NOT EXECUTED
Thread_queue_Control *the_thread_queue
)
{
uint32_t index;
for( index=0 ;
30021934: e3530004 cmp r3, #4 <== NOT EXECUTED
30021938: 1afffff6 bne 30021918 <_Thread_queue_First_priority+0x4> <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) )
return (Thread_Control *) _Chain_First(
&the_thread_queue->Queues.Priority[ index ]
);
}
return NULL;
3002193c: e3a02000 mov r2, #0 <== NOT EXECUTED
}
30021940: e1a00002 mov r0, r2 <== NOT EXECUTED
30021944: e12fff1e bx lr <== NOT EXECUTED
3001054c <_Thread_queue_Process_timeout>:
#include <rtems/score/tqdata.h>
void _Thread_queue_Process_timeout(
Thread_Control *the_thread
)
{
3001054c: e1a01000 mov r1, r0 <== NOT EXECUTED
Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;
30010550: e5900044 ldr r0, [r0, #68] ; 0x44 <== NOT EXECUTED
* If it is not satisfied, then it is "nothing happened" and
* this is the "timeout" transition. After a request is satisfied,
* a timeout is not allowed to occur.
*/
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
30010554: e5903030 ldr r3, [r0, #48] ; 0x30 <== NOT EXECUTED
30010558: e3530000 cmp r3, #0 <== NOT EXECUTED
3001055c: 0a000003 beq 30010570 <_Thread_queue_Process_timeout+0x24> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
30010560: e59f202c ldr r2, [pc, #44] ; 30010594 <_Thread_queue_Process_timeout+0x48><== NOT EXECUTED
30010564: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED
30010568: e1510002 cmp r1, r2 <== NOT EXECUTED
3001056c: 0a000002 beq 3001057c <_Thread_queue_Process_timeout+0x30> <== NOT EXECUTED
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
}
} else {
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
30010570: e590303c ldr r3, [r0, #60] ; 0x3c <== NOT EXECUTED
30010574: e5813034 str r3, [r1, #52] ; 0x34 <== NOT EXECUTED
_Thread_queue_Extract( the_thread->Wait.queue, the_thread );
30010578: eaffffb4 b 30010450 <_Thread_queue_Extract> <== NOT EXECUTED
* a timeout is not allowed to occur.
*/
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SYNCHRONIZED &&
_Thread_Is_executing( the_thread ) ) {
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
3001057c: e3530003 cmp r3, #3 <== NOT EXECUTED
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
30010580: 1590303c ldrne r3, [r0, #60] ; 0x3c <== NOT EXECUTED
30010584: 15813034 strne r3, [r1, #52] ; 0x34 <== NOT EXECUTED
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
30010588: 13a03002 movne r3, #2 <== NOT EXECUTED
3001058c: 15803030 strne r3, [r0, #48] ; 0x30 <== NOT EXECUTED
30010590: e12fff1e bx lr <== NOT EXECUTED
3000d870 <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
3000d870: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
/*
* Just in case the thread really wasn't blocked on a thread queue
* when we get here.
*/
if ( !the_thread_queue )
3000d874: e2504000 subs r4, r0, #0 <== NOT EXECUTED
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
3000d878: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
3000d87c: e1a05001 mov r5, r1 <== NOT EXECUTED
/*
* Just in case the thread really wasn't blocked on a thread queue
* when we get here.
*/
if ( !the_thread_queue )
3000d880: 0a000002 beq 3000d890 <_Thread_queue_Requeue+0x20> <== NOT EXECUTED
/*
* 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 ) {
3000d884: e5943034 ldr r3, [r4, #52] ; 0x34 <== NOT EXECUTED
3000d888: e3530001 cmp r3, #1 <== NOT EXECUTED
3000d88c: 0a000001 beq 3000d898 <_Thread_queue_Requeue+0x28> <== NOT EXECUTED
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
}
_ISR_Enable( level );
}
}
3000d890: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000d894: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000d898: e10f6000 mrs r6, CPSR <== NOT EXECUTED
3000d89c: e3862080 orr r2, r6, #128 ; 0x80 <== NOT EXECUTED
3000d8a0: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
3000d8a4: e59f2034 ldr r2, [pc, #52] ; 3000d8e0 <_Thread_queue_Requeue+0x70><== NOT EXECUTED
3000d8a8: e591c010 ldr ip, [r1, #16] <== NOT EXECUTED
3000d8ac: e00c2002 and r2, ip, r2 <== NOT EXECUTED
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 ) ) {
3000d8b0: e3520000 cmp r2, #0 <== NOT EXECUTED
3000d8b4: 1a000001 bne 3000d8c0 <_Thread_queue_Requeue+0x50> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000d8b8: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
3000d8bc: eafffff3 b 3000d890 <_Thread_queue_Requeue+0x20> <== NOT EXECUTED
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
3000d8c0: e1a02003 mov r2, r3 <== NOT EXECUTED
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;
3000d8c4: e5843030 str r3, [r4, #48] ; 0x30 <== NOT EXECUTED
3000d8c8: eb000ae6 bl 30010468 <_Thread_queue_Extract_priority_helper><== NOT EXECUTED
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
3000d8cc: e1a00004 mov r0, r4 <== NOT EXECUTED
3000d8d0: e1a01005 mov r1, r5 <== NOT EXECUTED
3000d8d4: e1a0200d mov r2, sp <== NOT EXECUTED
3000d8d8: ebffff4c bl 3000d610 <_Thread_queue_Enqueue_priority> <== NOT EXECUTED
3000d8dc: eafffff5 b 3000d8b8 <_Thread_queue_Requeue+0x48> <== NOT EXECUTED
3000d8e4 <_Thread_queue_Timeout>:
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
3000d8e4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
3000d8e8: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
3000d8ec: e1a0100d mov r1, sp <== NOT EXECUTED
3000d8f0: ebfffdfb bl 3000d0e4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
3000d8f4: e59d3000 ldr r3, [sp] <== NOT EXECUTED
3000d8f8: e3530000 cmp r3, #0 <== NOT EXECUTED
3000d8fc: 1a000004 bne 3000d914 <_Thread_queue_Timeout+0x30> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
3000d900: eb000b11 bl 3001054c <_Thread_queue_Process_timeout> <== NOT EXECUTED
*
* This routine decrements the thread dispatch level.
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_decrement_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000d904: e59f3010 ldr r3, [pc, #16] ; 3000d91c <_Thread_queue_Timeout+0x38><== NOT EXECUTED
3000d908: e5932000 ldr r2, [r3] <== NOT EXECUTED
--level;
3000d90c: e2422001 sub r2, r2, #1 <== NOT EXECUTED
_Thread_Dispatch_disable_level = level;
3000d910: e5832000 str r2, [r3] <== NOT EXECUTED
_Thread_Unnest_dispatch();
break;
}
}
3000d914: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000d918: e8bd8000 pop {pc} <== NOT EXECUTED
3001afac <_Timer_server_Body>:
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
3001afac: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
3001afb0: e24dd024 sub sp, sp, #36 ; 0x24 <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
3001afb4: e28d6018 add r6, sp, #24 <== NOT EXECUTED
3001afb8: e28d1010 add r1, sp, #16 <== NOT EXECUTED
3001afbc: e2862004 add r2, r6, #4 <== NOT EXECUTED
3001afc0: e58d100c str r1, [sp, #12] <== NOT EXECUTED
3001afc4: e58d2018 str r2, [sp, #24] <== NOT EXECUTED
head->previous = NULL;
tail->previous = head;
3001afc8: e28d100c add r1, sp, #12 <== NOT EXECUTED
3001afcc: e28d201c add r2, sp, #28 <== NOT EXECUTED
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
3001afd0: e3a03000 mov r3, #0 <== NOT EXECUTED
3001afd4: e2807068 add r7, r0, #104 ; 0x68 <== NOT EXECUTED
tail->previous = head;
3001afd8: e58d1014 str r1, [sp, #20] <== NOT EXECUTED
3001afdc: e2805030 add r5, r0, #48 ; 0x30 <== NOT EXECUTED
3001afe0: e58d2000 str r2, [sp] <== NOT EXECUTED
3001afe4: e2801008 add r1, r0, #8 <== NOT EXECUTED
3001afe8: e2802040 add r2, r0, #64 ; 0x40 <== NOT EXECUTED
3001afec: e59f81c4 ldr r8, [pc, #452] ; 3001b1b8 <_Timer_server_Body+0x20c><== NOT EXECUTED
3001aff0: e59f91c4 ldr r9, [pc, #452] ; 3001b1bc <_Timer_server_Body+0x210><== NOT EXECUTED
* 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;
3001aff4: e1a0a007 mov sl, r7 <== NOT EXECUTED
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
3001aff8: e1a04000 mov r4, r0 <== NOT EXECUTED
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
3001affc: e58d3010 str r3, [sp, #16] <== NOT EXECUTED
3001b000: e58d301c str r3, [sp, #28] <== NOT EXECUTED
tail->previous = head;
3001b004: e58d6020 str r6, [sp, #32] <== NOT EXECUTED
3001b008: e28db010 add fp, sp, #16 <== NOT EXECUTED
3001b00c: e58d1004 str r1, [sp, #4] <== NOT EXECUTED
3001b010: e58d2008 str r2, [sp, #8] <== NOT EXECUTED
* 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;
3001b014: e1a07005 mov r7, r5 <== NOT EXECUTED
{
/*
* 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;
3001b018: e28d300c add r3, sp, #12 <== NOT EXECUTED
3001b01c: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
3001b020: e5983000 ldr r3, [r8] <== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
3001b024: e594103c ldr r1, [r4, #60] ; 0x3c <== NOT EXECUTED
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
3001b028: e1a00007 mov r0, r7 <== NOT EXECUTED
3001b02c: e0611003 rsb r1, r1, r3 <== NOT EXECUTED
3001b030: e1a02006 mov r2, r6 <== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
3001b034: e584303c str r3, [r4, #60] ; 0x3c <== NOT EXECUTED
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
3001b038: eb001140 bl 3001f540 <_Watchdog_Adjust_to_chain> <== NOT EXECUTED
3001b03c: e8990003 ldm r9, {r0, r1} <== NOT EXECUTED
3001b040: e59f2178 ldr r2, [pc, #376] ; 3001b1c0 <_Timer_server_Body+0x214><== NOT EXECUTED
3001b044: e3a03000 mov r3, #0 <== NOT EXECUTED
3001b048: eb004d46 bl 3002e568 <__divdi3> <== NOT EXECUTED
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
3001b04c: e5942074 ldr r2, [r4, #116] ; 0x74 <== NOT EXECUTED
3001b050: e1a05000 mov r5, r0 <== 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 ) {
3001b054: e1500002 cmp r0, r2 <== NOT EXECUTED
3001b058: 8a000022 bhi 3001b0e8 <_Timer_server_Body+0x13c> <== NOT EXECUTED
* TOD has been set forward.
*/
delta = snapshot - last_snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
} else if ( snapshot < last_snapshot ) {
3001b05c: 3a000018 bcc 3001b0c4 <_Timer_server_Body+0x118> <== NOT EXECUTED
*/
delta = last_snapshot - snapshot;
_Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta );
}
watchdogs->last_snapshot = snapshot;
3001b060: e5845074 str r5, [r4, #116] ; 0x74 <== NOT EXECUTED
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
3001b064: e5940078 ldr r0, [r4, #120] ; 0x78 <== NOT EXECUTED
3001b068: eb0002d2 bl 3001bbb8 <_Chain_Get> <== NOT EXECUTED
if ( timer == NULL ) {
3001b06c: e2501000 subs r1, r0, #0 <== NOT EXECUTED
3001b070: 0a00000b beq 3001b0a4 <_Timer_server_Body+0xf8> <== NOT EXECUTED
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
3001b074: e5913038 ldr r3, [r1, #56] ; 0x38 <== NOT EXECUTED
3001b078: e3530001 cmp r3, #1 <== NOT EXECUTED
3001b07c: 0a000015 beq 3001b0d8 <_Timer_server_Body+0x12c> <== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
3001b080: e3530003 cmp r3, #3 <== NOT EXECUTED
3001b084: 1afffff6 bne 3001b064 <_Timer_server_Body+0xb8> <== NOT EXECUTED
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
3001b088: e2811010 add r1, r1, #16 <== NOT EXECUTED
3001b08c: e1a0000a mov r0, sl <== NOT EXECUTED
3001b090: eb001153 bl 3001f5e4 <_Watchdog_Insert> <== NOT EXECUTED
}
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{
while ( true ) {
Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
3001b094: e5940078 ldr r0, [r4, #120] ; 0x78 <== NOT EXECUTED
3001b098: eb0002c6 bl 3001bbb8 <_Chain_Get> <== NOT EXECUTED
if ( timer == NULL ) {
3001b09c: e2501000 subs r1, r0, #0 <== NOT EXECUTED
3001b0a0: 1afffff3 bne 3001b074 <_Timer_server_Body+0xc8> <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3001b0a4: e10f2000 mrs r2, CPSR <== NOT EXECUTED
3001b0a8: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED
3001b0ac: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
* body loop.
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
if ( _Chain_Is_empty( insert_chain ) ) {
3001b0b0: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED
3001b0b4: e153000b cmp r3, fp <== NOT EXECUTED
3001b0b8: 0a00000f beq 3001b0fc <_Timer_server_Body+0x150> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3001b0bc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
3001b0c0: eaffffd6 b 3001b020 <_Timer_server_Body+0x74> <== NOT EXECUTED
/*
* 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 );
3001b0c4: e1a0000a mov r0, sl <== NOT EXECUTED
3001b0c8: e3a01001 mov r1, #1 <== NOT EXECUTED
3001b0cc: e0652002 rsb r2, r5, r2 <== NOT EXECUTED
3001b0d0: eb0010ec bl 3001f488 <_Watchdog_Adjust> <== NOT EXECUTED
3001b0d4: eaffffe1 b 3001b060 <_Timer_server_Body+0xb4> <== NOT EXECUTED
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
3001b0d8: e1a00007 mov r0, r7 <== NOT EXECUTED
3001b0dc: e2811010 add r1, r1, #16 <== NOT EXECUTED
3001b0e0: eb00113f bl 3001f5e4 <_Watchdog_Insert> <== NOT EXECUTED
3001b0e4: eaffffde b 3001b064 <_Timer_server_Body+0xb8> <== 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 );
3001b0e8: e0621005 rsb r1, r2, r5 <== NOT EXECUTED
3001b0ec: e1a0000a mov r0, sl <== NOT EXECUTED
3001b0f0: e1a02006 mov r2, r6 <== NOT EXECUTED
3001b0f4: eb001111 bl 3001f540 <_Watchdog_Adjust_to_chain> <== NOT EXECUTED
3001b0f8: eaffffd8 b 3001b060 <_Timer_server_Body+0xb4> <== NOT EXECUTED
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
if ( _Chain_Is_empty( insert_chain ) ) {
ts->insert_chain = NULL;
3001b0fc: e5841078 str r1, [r4, #120] ; 0x78 <== NOT EXECUTED
3001b100: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_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 ) ) {
3001b104: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED
3001b108: e59d1000 ldr r1, [sp] <== NOT EXECUTED
3001b10c: e1530001 cmp r3, r1 <== NOT EXECUTED
3001b110: 1a00000a bne 3001b140 <_Timer_server_Body+0x194> <== NOT EXECUTED
3001b114: ea000012 b 3001b164 <_Timer_server_Body+0x1b8> <== NOT EXECUTED
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
3001b118: e5932000 ldr r2, [r3] <== NOT EXECUTED
head->next = new_first;
new_first->previous = head;
3001b11c: e5826004 str r6, [r2, #4] <== NOT EXECUTED
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
head->next = new_first;
3001b120: e58d2018 str r2, [sp, #24] <== NOT EXECUTED
* 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;
3001b124: e3a02000 mov r2, #0 <== NOT EXECUTED
3001b128: e5832008 str r2, [r3, #8] <== NOT EXECUTED
3001b12c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
/*
* 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 );
3001b130: e5930020 ldr r0, [r3, #32] <== NOT EXECUTED
3001b134: e5931024 ldr r1, [r3, #36] ; 0x24 <== NOT EXECUTED
3001b138: e1a0e00f mov lr, pc <== NOT EXECUTED
3001b13c: e593f01c ldr pc, [r3, #28] <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3001b140: e10f1000 mrs r1, CPSR <== NOT EXECUTED
3001b144: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED
3001b148: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3001b14c: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
3001b150: e59d2000 ldr r2, [sp] <== NOT EXECUTED
3001b154: e1530002 cmp r3, r2 <== NOT EXECUTED
3001b158: 1affffee bne 3001b118 <_Timer_server_Body+0x16c> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3001b15c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
3001b160: eaffffac b 3001b018 <_Timer_server_Body+0x6c> <== NOT EXECUTED
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3001b164: e59f1058 ldr r1, [pc, #88] ; 3001b1c4 <_Timer_server_Body+0x218><== NOT EXECUTED
}
} else {
ts->active = false;
3001b168: e3a03000 mov r3, #0 <== NOT EXECUTED
3001b16c: e5c4307c strb r3, [r4, #124] ; 0x7c <== NOT EXECUTED
3001b170: e5913000 ldr r3, [r1] <== NOT EXECUTED
++level;
3001b174: e2833001 add r3, r3, #1 <== NOT EXECUTED
_Thread_Dispatch_disable_level = level;
3001b178: e5813000 str r3, [r1] <== NOT EXECUTED
/*
* Block until there is something to do.
*/
_Thread_Disable_dispatch();
_Thread_Set_state( ts->thread, STATES_DELAYING );
3001b17c: e3a01008 mov r1, #8 <== NOT EXECUTED
3001b180: e5940000 ldr r0, [r4] <== NOT EXECUTED
3001b184: eb000fdd bl 3001f100 <_Thread_Set_state> <== NOT EXECUTED
_Timer_server_Reset_interval_system_watchdog( ts );
3001b188: e1a00004 mov r0, r4 <== NOT EXECUTED
3001b18c: ebffff5a bl 3001aefc <_Timer_server_Reset_interval_system_watchdog><== NOT EXECUTED
_Timer_server_Reset_tod_system_watchdog( ts );
3001b190: e1a00004 mov r0, r4 <== NOT EXECUTED
3001b194: ebffff6e bl 3001af54 <_Timer_server_Reset_tod_system_watchdog><== NOT EXECUTED
_Thread_Enable_dispatch();
3001b198: eb000d9c bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
ts->active = true;
3001b19c: e3a03001 mov r3, #1 <== NOT EXECUTED
3001b1a0: e5c4307c strb r3, [r4, #124] ; 0x7c <== NOT EXECUTED
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
3001b1a4: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED
3001b1a8: eb00117a bl 3001f798 <_Watchdog_Remove> <== NOT EXECUTED
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
3001b1ac: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED
3001b1b0: eb001178 bl 3001f798 <_Watchdog_Remove> <== NOT EXECUTED
3001b1b4: eaffff97 b 3001b018 <_Timer_server_Body+0x6c> <== NOT EXECUTED
3001aefc <_Timer_server_Reset_interval_system_watchdog>:
}
static void _Timer_server_Reset_interval_system_watchdog(
Timer_server_Control *ts
)
{
3001aefc: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
3001af00: e2805008 add r5, r0, #8 <== NOT EXECUTED
}
static void _Timer_server_Reset_interval_system_watchdog(
Timer_server_Control *ts
)
{
3001af04: e1a04000 mov r4, r0 <== NOT EXECUTED
static void _Timer_server_Stop_interval_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );
3001af08: e1a00005 mov r0, r5 <== NOT EXECUTED
3001af0c: eb001221 bl 3001f798 <_Watchdog_Remove> <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3001af10: e10f1000 mrs r1, CPSR <== NOT EXECUTED
3001af14: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED
3001af18: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3001af1c: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
3001af20: e2842034 add r2, r4, #52 ; 0x34 <== NOT EXECUTED
ISR_Level level;
_Timer_server_Stop_interval_system_watchdog( ts );
_ISR_Disable( level );
if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {
3001af24: e1530002 cmp r3, r2 <== NOT EXECUTED
3001af28: 0a000006 beq 3001af48 <_Timer_server_Reset_interval_system_watchdog+0x4c><== NOT EXECUTED
Watchdog_Interval delta_interval =
3001af2c: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3001af30: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
3001af34: e59f0014 ldr r0, [pc, #20] ; 3001af50 <_Timer_server_Reset_interval_system_watchdog+0x54><== NOT EXECUTED
3001af38: e1a01005 mov r1, r5 <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
3001af3c: e5843014 str r3, [r4, #20] <== NOT EXECUTED
delta_interval
);
} else {
_ISR_Enable( level );
}
}
3001af40: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
3001af44: ea0011a6 b 3001f5e4 <_Watchdog_Insert> <== NOT EXECUTED
3001af48: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
3001af4c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
3001af54 <_Timer_server_Reset_tod_system_watchdog>:
}
static void _Timer_server_Reset_tod_system_watchdog(
Timer_server_Control *ts
)
{
3001af54: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
3001af58: e2805040 add r5, r0, #64 ; 0x40 <== NOT EXECUTED
}
static void _Timer_server_Reset_tod_system_watchdog(
Timer_server_Control *ts
)
{
3001af5c: e1a04000 mov r4, r0 <== NOT EXECUTED
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
3001af60: e1a00005 mov r0, r5 <== NOT EXECUTED
3001af64: eb00120b bl 3001f798 <_Watchdog_Remove> <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3001af68: e10f1000 mrs r1, CPSR <== NOT EXECUTED
3001af6c: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED
3001af70: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3001af74: e5943068 ldr r3, [r4, #104] ; 0x68 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
3001af78: e284206c add r2, r4, #108 ; 0x6c <== NOT EXECUTED
ISR_Level level;
_Timer_server_Stop_tod_system_watchdog( ts );
_ISR_Disable( level );
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
3001af7c: e1530002 cmp r3, r2 <== NOT EXECUTED
3001af80: 0a000006 beq 3001afa0 <_Timer_server_Reset_tod_system_watchdog+0x4c><== NOT EXECUTED
Watchdog_Interval delta_interval =
3001af84: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3001af88: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
3001af8c: e59f0014 ldr r0, [pc, #20] ; 3001afa8 <_Timer_server_Reset_tod_system_watchdog+0x54><== NOT EXECUTED
3001af90: e1a01005 mov r1, r5 <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
3001af94: e584304c str r3, [r4, #76] ; 0x4c <== NOT EXECUTED
delta_interval
);
} else {
_ISR_Enable( level );
}
}
3001af98: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
3001af9c: ea001190 b 3001f5e4 <_Watchdog_Insert> <== NOT EXECUTED
3001afa0: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
3001afa4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
3001b1c8 <_Timer_server_Schedule_operation_method>:
static void _Timer_server_Schedule_operation_method(
Timer_server_Control *ts,
Timer_Control *timer
)
{
3001b1c8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
if ( ts->insert_chain == NULL ) {
3001b1cc: e5905078 ldr r5, [r0, #120] ; 0x78 <== NOT EXECUTED
static void _Timer_server_Schedule_operation_method(
Timer_server_Control *ts,
Timer_Control *timer
)
{
3001b1d0: e1a04000 mov r4, r0 <== NOT EXECUTED
if ( ts->insert_chain == NULL ) {
3001b1d4: e3550000 cmp r5, #0 <== NOT EXECUTED
static void _Timer_server_Schedule_operation_method(
Timer_server_Control *ts,
Timer_Control *timer
)
{
3001b1d8: e1a06001 mov r6, r1 <== NOT EXECUTED
if ( ts->insert_chain == NULL ) {
3001b1dc: 0a000002 beq 3001b1ec <_Timer_server_Schedule_operation_method+0x24><== NOT EXECUTED
* server is not preemptible, so we must be in interrupt context here. No
* thread dispatch will happen until the timer server finishes its
* critical section. We have to use the protected chain methods because
* we may be interrupted by a higher priority interrupt.
*/
_Chain_Append( ts->insert_chain, &timer->Object.Node );
3001b1e0: e5900078 ldr r0, [r0, #120] ; 0x78 <== NOT EXECUTED
}
}
3001b1e4: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED
* server is not preemptible, so we must be in interrupt context here. No
* thread dispatch will happen until the timer server finishes its
* critical section. We have to use the protected chain methods because
* we may be interrupted by a higher priority interrupt.
*/
_Chain_Append( ts->insert_chain, &timer->Object.Node );
3001b1e8: ea000267 b 3001bb8c <_Chain_Append> <== NOT EXECUTED
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3001b1ec: e59f3110 ldr r3, [pc, #272] ; 3001b304 <_Timer_server_Schedule_operation_method+0x13c><== NOT EXECUTED
3001b1f0: e5932000 ldr r2, [r3] <== NOT EXECUTED
++level;
3001b1f4: e2822001 add r2, r2, #1 <== NOT EXECUTED
_Thread_Dispatch_disable_level = level;
3001b1f8: e5832000 str r2, [r3] <== NOT EXECUTED
* being inserted. This could result in an integer overflow.
*/
_Thread_Disable_dispatch();
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
3001b1fc: e5913038 ldr r3, [r1, #56] ; 0x38 <== NOT EXECUTED
3001b200: e3530001 cmp r3, #1 <== NOT EXECUTED
3001b204: 0a000024 beq 3001b29c <_Timer_server_Schedule_operation_method+0xd4><== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
if ( !ts->active ) {
_Timer_server_Reset_interval_system_watchdog( ts );
}
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
3001b208: e3530003 cmp r3, #3 <== NOT EXECUTED
3001b20c: 0a000001 beq 3001b218 <_Timer_server_Schedule_operation_method+0x50><== NOT EXECUTED
* critical section. We have to use the protected chain methods because
* we may be interrupted by a higher priority interrupt.
*/
_Chain_Append( ts->insert_chain, &timer->Object.Node );
}
}
3001b210: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED
if ( !ts->active ) {
_Timer_server_Reset_tod_system_watchdog( ts );
}
}
_Thread_Enable_dispatch();
3001b214: ea000d7d b 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3001b218: e10f7000 mrs r7, CPSR <== NOT EXECUTED
3001b21c: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED
3001b220: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
3001b224: e59f10dc ldr r1, [pc, #220] ; 3001b308 <_Timer_server_Schedule_operation_method+0x140><== NOT EXECUTED
3001b228: e59f20dc ldr r2, [pc, #220] ; 3001b30c <_Timer_server_Schedule_operation_method+0x144><== NOT EXECUTED
3001b22c: e3a03000 mov r3, #0 <== NOT EXECUTED
3001b230: e8910003 ldm r1, {r0, r1} <== NOT EXECUTED
3001b234: eb004ccb bl 3002e568 <__divdi3> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3001b238: e5943068 ldr r3, [r4, #104] ; 0x68 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
3001b23c: e284206c add r2, r4, #108 ; 0x6c <== NOT EXECUTED
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
last_snapshot = ts->TOD_watchdogs.last_snapshot;
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
3001b240: e1530002 cmp r3, r2 <== NOT EXECUTED
* We have to advance the last known seconds value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
last_snapshot = ts->TOD_watchdogs.last_snapshot;
3001b244: e5942074 ldr r2, [r4, #116] ; 0x74 <== NOT EXECUTED
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
3001b248: 0a000008 beq 3001b270 <_Timer_server_Schedule_operation_method+0xa8><== NOT EXECUTED
first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );
delta_interval = first_watchdog->delta_interval;
3001b24c: e5931010 ldr r1, [r3, #16] <== NOT EXECUTED
if ( snapshot > last_snapshot ) {
3001b250: e1500002 cmp r0, r2 <== NOT EXECUTED
}
} else {
/*
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
3001b254: 90812002 addls r2, r1, r2 <== NOT EXECUTED
delta_interval += delta;
3001b258: 90605002 rsbls r5, r0, r2 <== NOT EXECUTED
snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
last_snapshot = ts->TOD_watchdogs.last_snapshot;
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );
delta_interval = first_watchdog->delta_interval;
if ( snapshot > last_snapshot ) {
3001b25c: 9a000002 bls 3001b26c <_Timer_server_Schedule_operation_method+0xa4><== NOT EXECUTED
/*
* We advanced in time.
*/
delta = snapshot - last_snapshot;
3001b260: e0622000 rsb r2, r2, r0 <== NOT EXECUTED
if (delta_interval > delta) {
3001b264: e1510002 cmp r1, r2 <== NOT EXECUTED
delta_interval -= delta;
3001b268: 80625001 rsbhi r5, r2, r1 <== NOT EXECUTED
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
delta_interval += delta;
}
first_watchdog->delta_interval = delta_interval;
3001b26c: e5835010 str r5, [r3, #16] <== NOT EXECUTED
}
ts->TOD_watchdogs.last_snapshot = snapshot;
3001b270: e5840074 str r0, [r4, #116] ; 0x74 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3001b274: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
_ISR_Enable( level );
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
3001b278: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED
3001b27c: e2861010 add r1, r6, #16 <== NOT EXECUTED
3001b280: eb0010d7 bl 3001f5e4 <_Watchdog_Insert> <== NOT EXECUTED
if ( !ts->active ) {
3001b284: e5d4307c ldrb r3, [r4, #124] ; 0x7c <== NOT EXECUTED
3001b288: e3530000 cmp r3, #0 <== NOT EXECUTED
3001b28c: 1affffdf bne 3001b210 <_Timer_server_Schedule_operation_method+0x48><== NOT EXECUTED
_Timer_server_Reset_tod_system_watchdog( ts );
3001b290: e1a00004 mov r0, r4 <== NOT EXECUTED
3001b294: ebffff2e bl 3001af54 <_Timer_server_Reset_tod_system_watchdog><== NOT EXECUTED
3001b298: eaffffdc b 3001b210 <_Timer_server_Schedule_operation_method+0x48><== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3001b29c: e10fc000 mrs ip, CPSR <== NOT EXECUTED
3001b2a0: e38c3080 orr r3, ip, #128 ; 0x80 <== NOT EXECUTED
3001b2a4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3001b2a8: e5903030 ldr r3, [r0, #48] ; 0x30 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
3001b2ac: e2802034 add r2, r0, #52 ; 0x34 <== NOT EXECUTED
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
snapshot = _Watchdog_Ticks_since_boot;
last_snapshot = ts->Interval_watchdogs.last_snapshot;
if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {
3001b2b0: e1530002 cmp r3, r2 <== NOT EXECUTED
/*
* We have to advance the last known ticks value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
snapshot = _Watchdog_Ticks_since_boot;
3001b2b4: e59f2054 ldr r2, [pc, #84] ; 3001b310 <_Timer_server_Schedule_operation_method+0x148><== NOT EXECUTED
3001b2b8: e5922000 ldr r2, [r2] <== NOT EXECUTED
last_snapshot = ts->Interval_watchdogs.last_snapshot;
3001b2bc: e590103c ldr r1, [r0, #60] ; 0x3c <== NOT EXECUTED
if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {
3001b2c0: 0a000004 beq 3001b2d8 <_Timer_server_Schedule_operation_method+0x110><== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
delta = snapshot - last_snapshot;
delta_interval = first_watchdog->delta_interval;
3001b2c4: e5930010 ldr r0, [r3, #16] <== NOT EXECUTED
first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
/*
* We assume adequate unsigned arithmetic here.
*/
delta = snapshot - last_snapshot;
3001b2c8: e0611002 rsb r1, r1, r2 <== NOT EXECUTED
delta_interval = first_watchdog->delta_interval;
if (delta_interval > delta) {
3001b2cc: e1510000 cmp r1, r0 <== NOT EXECUTED
delta_interval -= delta;
3001b2d0: 30615000 rsbcc r5, r1, r0 <== NOT EXECUTED
} else {
delta_interval = 0;
}
first_watchdog->delta_interval = delta_interval;
3001b2d4: e5835010 str r5, [r3, #16] <== NOT EXECUTED
}
ts->Interval_watchdogs.last_snapshot = snapshot;
3001b2d8: e584203c str r2, [r4, #60] ; 0x3c <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3001b2dc: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
_ISR_Enable( level );
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
3001b2e0: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED
3001b2e4: e2861010 add r1, r6, #16 <== NOT EXECUTED
3001b2e8: eb0010bd bl 3001f5e4 <_Watchdog_Insert> <== NOT EXECUTED
if ( !ts->active ) {
3001b2ec: e5d4307c ldrb r3, [r4, #124] ; 0x7c <== NOT EXECUTED
3001b2f0: e3530000 cmp r3, #0 <== NOT EXECUTED
3001b2f4: 1affffc5 bne 3001b210 <_Timer_server_Schedule_operation_method+0x48><== NOT EXECUTED
_Timer_server_Reset_interval_system_watchdog( ts );
3001b2f8: e1a00004 mov r0, r4 <== NOT EXECUTED
3001b2fc: ebfffefe bl 3001aefc <_Timer_server_Reset_interval_system_watchdog><== NOT EXECUTED
3001b300: eaffffc2 b 3001b210 <_Timer_server_Schedule_operation_method+0x48><== NOT EXECUTED
3000e15c <_Timespec_Add_to>:
uint32_t _Timespec_Add_to(
struct timespec *time,
const struct timespec *add
)
{
3000e15c: e1a03000 mov r3, r0 <== NOT EXECUTED
3000e160: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
3000e164: e5904004 ldr r4, [r0, #4] <== NOT EXECUTED
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
3000e168: e59fc044 ldr ip, [pc, #68] ; 3000e1b4 <_Timespec_Add_to+0x58><== NOT EXECUTED
uint32_t _Timespec_Add_to(
struct timespec *time,
const struct timespec *add
)
{
uint32_t seconds = add->tv_sec;
3000e16c: e8910005 ldm r1, {r0, r2} <== NOT EXECUTED
/* Add the basics */
time->tv_sec += add->tv_sec;
3000e170: e5931000 ldr r1, [r3] <== NOT EXECUTED
time->tv_nsec += add->tv_nsec;
3000e174: e0844002 add r4, r4, r2 <== NOT EXECUTED
)
{
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
3000e178: e0811000 add r1, r1, r0 <== NOT EXECUTED
time->tv_nsec += add->tv_nsec;
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
3000e17c: e154000c cmp r4, ip <== NOT EXECUTED
3000e180: e1a02004 mov r2, r4 <== NOT EXECUTED
{
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
3000e184: e8830012 stm r3, {r1, r4} <== NOT EXECUTED
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
3000e188: 9a000007 bls 3000e1ac <_Timespec_Add_to+0x50> <== NOT EXECUTED
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
3000e18c: e2822331 add r2, r2, #-1006632960 ; 0xc4000000 <== NOT EXECUTED
3000e190: e2822865 add r2, r2, #6619136 ; 0x650000 <== NOT EXECUTED
3000e194: e2822c36 add r2, r2, #13824 ; 0x3600 <== NOT EXECUTED
/* 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 ) {
3000e198: e152000c cmp r2, ip <== NOT EXECUTED
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
time->tv_sec++;
3000e19c: e2811001 add r1, r1, #1 <== NOT EXECUTED
seconds++;
3000e1a0: e2800001 add r0, r0, #1 <== NOT EXECUTED
/* 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 ) {
3000e1a4: 8afffff8 bhi 3000e18c <_Timespec_Add_to+0x30> <== NOT EXECUTED
3000e1a8: e8830006 stm r3, {r1, r2} <== NOT EXECUTED
time->tv_sec++;
seconds++;
}
return seconds;
}
3000e1ac: e8bd0010 pop {r4} <== NOT EXECUTED
3000e1b0: e12fff1e bx lr <== NOT EXECUTED
3000d874 <_Timespec_Divide>:
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
3000d874: e92d43f0 push {r4, r5, r6, r7, r8, r9, lr}
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
left += lhs->tv_nsec;
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
right += rhs->tv_nsec;
3000d878: e5916004 ldr r6, [r1, #4]
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
left += lhs->tv_nsec;
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
3000d87c: e591c000 ldr ip, [r1]
right += rhs->tv_nsec;
3000d880: e59f108c ldr r1, [pc, #140] ; 3000d914 <_Timespec_Divide+0xa0>
3000d884: e1a04006 mov r4, r6
3000d888: e1a05fc6 asr r5, r6, #31
3000d88c: e0e54c91 smlal r4, r5, r1, ip
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
3000d890: e1a07003 mov r7, r3
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
left += lhs->tv_nsec;
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
right += rhs->tv_nsec;
if ( right == 0 ) {
3000d894: e194c005 orrs ip, r4, r5
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
3000d898: e5903000 ldr r3, [r0]
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
3000d89c: e1a06002 mov r6, r2
left += lhs->tv_nsec;
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
right += rhs->tv_nsec;
if ( right == 0 ) {
*ival_percentage = 0;
3000d8a0: 03a03000 moveq r3, #0
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
left += lhs->tv_nsec;
3000d8a4: e5902004 ldr r2, [r0, #4]
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
right += rhs->tv_nsec;
if ( right == 0 ) {
*ival_percentage = 0;
3000d8a8: 05863000 streq r3, [r6]
*fval_percentage = 0;
3000d8ac: 05873000 streq r3, [r7]
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
left += lhs->tv_nsec;
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
right += rhs->tv_nsec;
if ( right == 0 ) {
3000d8b0: 08bd83f0 popeq {r4, r5, r6, r7, r8, r9, pc}
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
left += lhs->tv_nsec;
3000d8b4: e1a08002 mov r8, r2 <== NOT EXECUTED
3000d8b8: e1a09fc2 asr r9, r2, #31 <== NOT EXECUTED
3000d8bc: e0e98391 smlal r8, r9, r1, r3 <== NOT EXECUTED
* Put it back in the timespec result.
*
* TODO: Rounding on the last digit of the fval.
*/
answer = (left * 100000) / right;
3000d8c0: e59f1050 ldr r1, [pc, #80] ; 3000d918 <_Timespec_Divide+0xa4><== NOT EXECUTED
3000d8c4: e1a02004 mov r2, r4 <== NOT EXECUTED
3000d8c8: e1a03005 mov r3, r5 <== NOT EXECUTED
3000d8cc: e0854198 umull r4, r5, r8, r1 <== NOT EXECUTED
3000d8d0: e0255991 mla r5, r1, r9, r5 <== NOT EXECUTED
3000d8d4: e1a00004 mov r0, r4 <== NOT EXECUTED
3000d8d8: e1a01005 mov r1, r5 <== NOT EXECUTED
3000d8dc: eb00394b bl 3001be10 <__udivdi3> <== NOT EXECUTED
*ival_percentage = answer / 1000;
3000d8e0: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED
3000d8e4: e3a03000 mov r3, #0 <== NOT EXECUTED
* Put it back in the timespec result.
*
* TODO: Rounding on the last digit of the fval.
*/
answer = (left * 100000) / right;
3000d8e8: e1a04000 mov r4, r0 <== NOT EXECUTED
3000d8ec: e1a05001 mov r5, r1 <== NOT EXECUTED
*ival_percentage = answer / 1000;
3000d8f0: eb003946 bl 3001be10 <__udivdi3> <== NOT EXECUTED
*fval_percentage = answer % 1000;
3000d8f4: e1a01005 mov r1, r5 <== NOT EXECUTED
* TODO: Rounding on the last digit of the fval.
*/
answer = (left * 100000) / right;
*ival_percentage = answer / 1000;
3000d8f8: e5860000 str r0, [r6] <== NOT EXECUTED
*fval_percentage = answer % 1000;
3000d8fc: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED
3000d900: e3a03000 mov r3, #0 <== NOT EXECUTED
3000d904: e1a00004 mov r0, r4 <== NOT EXECUTED
3000d908: eb003a64 bl 3001c2a0 <__umoddi3> <== NOT EXECUTED
3000d90c: e5870000 str r0, [r7] <== NOT EXECUTED
3000d910: e8bd83f0 pop {r4, r5, r6, r7, r8, r9, pc} <== NOT EXECUTED
3002a034 <_Timespec_Divide_by_integer>:
void _Timespec_Divide_by_integer(
const struct timespec *time,
uint32_t iterations,
struct timespec *result
)
{
3002a034: e92d43f0 push {r4, r5, r6, r7, r8, r9, lr} <== NOT EXECUTED
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
t = time->tv_sec;
3002a038: e8900009 ldm r0, {r0, r3} <== NOT EXECUTED
void _Timespec_Divide_by_integer(
const struct timespec *time,
uint32_t iterations,
struct timespec *result
)
{
3002a03c: e1a04002 mov r4, r2 <== NOT EXECUTED
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
t = time->tv_sec;
t *= TOD_NANOSECONDS_PER_SECOND;
t += time->tv_nsec;
3002a040: e1a06003 mov r6, r3 <== NOT EXECUTED
/*
* Divide to get nanoseconds per iteration
*/
t /= iterations;
3002a044: e1a02001 mov r2, r1 <== NOT EXECUTED
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
t = time->tv_sec;
t *= TOD_NANOSECONDS_PER_SECOND;
t += time->tv_nsec;
3002a048: e1a07fc3 asr r7, r3, #31 <== NOT EXECUTED
/*
* Divide to get nanoseconds per iteration
*/
t /= iterations;
3002a04c: e59f104c ldr r1, [pc, #76] ; 3002a0a0 <_Timespec_Divide_by_integer+0x6c><== NOT EXECUTED
3002a050: e1a08006 mov r8, r6 <== NOT EXECUTED
3002a054: e1a09007 mov r9, r7 <== NOT EXECUTED
3002a058: e0e98091 smlal r8, r9, r1, r0 <== NOT EXECUTED
3002a05c: e3a03000 mov r3, #0 <== NOT EXECUTED
3002a060: e1a00008 mov r0, r8 <== NOT EXECUTED
3002a064: e1a01009 mov r1, r9 <== NOT EXECUTED
3002a068: eb00a952 bl 300545b8 <__udivdi3> <== NOT EXECUTED
/*
* Put it back in the timespec result
*/
result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND;
3002a06c: e59f202c ldr r2, [pc, #44] ; 3002a0a0 <_Timespec_Divide_by_integer+0x6c><== NOT EXECUTED
3002a070: e3a03000 mov r3, #0 <== NOT EXECUTED
/*
* Divide to get nanoseconds per iteration
*/
t /= iterations;
3002a074: e1a05000 mov r5, r0 <== NOT EXECUTED
3002a078: e1a06001 mov r6, r1 <== NOT EXECUTED
/*
* Put it back in the timespec result
*/
result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND;
3002a07c: eb00a94d bl 300545b8 <__udivdi3> <== NOT EXECUTED
result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND;
3002a080: e59f2018 ldr r2, [pc, #24] ; 3002a0a0 <_Timespec_Divide_by_integer+0x6c><== NOT EXECUTED
/*
* Put it back in the timespec result
*/
result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND;
3002a084: e5840000 str r0, [r4] <== NOT EXECUTED
result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND;
3002a088: e3a03000 mov r3, #0 <== NOT EXECUTED
3002a08c: e1a01006 mov r1, r6 <== NOT EXECUTED
3002a090: e1a00005 mov r0, r5 <== NOT EXECUTED
3002a094: eb00aa6b bl 30054a48 <__umoddi3> <== NOT EXECUTED
3002a098: e5840004 str r0, [r4, #4] <== NOT EXECUTED
}
3002a09c: e8bd83f0 pop {r4, r5, r6, r7, r8, r9, pc} <== NOT EXECUTED
3002c16c <_Timespec_From_ticks>:
struct timespec *time
)
{
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
3002c16c: e59f3034 ldr r3, [pc, #52] ; 3002c1a8 <_Timespec_From_ticks+0x3c><== NOT EXECUTED
time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND;
3002c170: e59f2034 ldr r2, [pc, #52] ; 3002c1ac <_Timespec_From_ticks+0x40><== NOT EXECUTED
struct timespec *time
)
{
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
3002c174: e593300c ldr r3, [r3, #12] <== NOT EXECUTED
3002c178: e0000093 mul r0, r3, r0 <== NOT EXECUTED
time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND;
3002c17c: e0823290 umull r3, r2, r0, r2 <== NOT EXECUTED
3002c180: e1a02922 lsr r2, r2, #18 <== NOT EXECUTED
time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) *
3002c184: e0623282 rsb r3, r2, r2, lsl #5 <== NOT EXECUTED
3002c188: e0633303 rsb r3, r3, r3, lsl #6 <== NOT EXECUTED
3002c18c: e0823183 add r3, r2, r3, lsl #3 <== NOT EXECUTED
3002c190: e0403303 sub r3, r0, r3, lsl #6 <== NOT EXECUTED
3002c194: e0630283 rsb r0, r3, r3, lsl #5 <== NOT EXECUTED
3002c198: e0833100 add r3, r3, r0, lsl #2 <== NOT EXECUTED
3002c19c: e1a03183 lsl r3, r3, #3 <== NOT EXECUTED
3002c1a0: e881000c stm r1, {r2, r3} <== NOT EXECUTED
TOD_NANOSECONDS_PER_MICROSECOND;
}
3002c1a4: e12fff1e bx lr <== NOT EXECUTED
3002c1b0 <_Timespec_Is_valid>:
bool _Timespec_Is_valid(
const struct timespec *time
)
{
if ( !time )
3002c1b0: e3500000 cmp r0, #0 <== NOT EXECUTED
3002c1b4: 012fff1e bxeq lr <== NOT EXECUTED
return false;
if ( time->tv_sec < 0 )
3002c1b8: e5903000 ldr r3, [r0] <== NOT EXECUTED
3002c1bc: e3530000 cmp r3, #0 <== NOT EXECUTED
return false;
3002c1c0: b3a00000 movlt r0, #0 <== NOT EXECUTED
)
{
if ( !time )
return false;
if ( time->tv_sec < 0 )
3002c1c4: b12fff1e bxlt lr <== NOT EXECUTED
return false;
if ( time->tv_nsec < 0 )
3002c1c8: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED
3002c1cc: e3530000 cmp r3, #0 <== NOT EXECUTED
3002c1d0: ba000004 blt 3002c1e8 <_Timespec_Is_valid+0x38> <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Is_valid(
3002c1d4: e59f0014 ldr r0, [pc, #20] ; 3002c1f0 <_Timespec_Is_valid+0x40><== NOT EXECUTED
3002c1d8: e1530000 cmp r3, r0 <== NOT EXECUTED
3002c1dc: 83a00000 movhi r0, #0 <== NOT EXECUTED
3002c1e0: 93a00001 movls r0, #1 <== NOT EXECUTED
3002c1e4: e12fff1e bx lr <== NOT EXECUTED
if ( time->tv_sec < 0 )
return false;
if ( time->tv_nsec < 0 )
return false;
3002c1e8: e3a00000 mov r0, #0 <== NOT EXECUTED
if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND )
return false;
return true;
}
3002c1ec: e12fff1e bx lr <== NOT EXECUTED
3000d91c <_Timespec_Less_than>:
bool _Timespec_Less_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec < rhs->tv_sec )
3000d91c: e5902000 ldr r2, [r0]
3000d920: e5913000 ldr r3, [r1]
3000d924: e1520003 cmp r2, r3
return true;
3000d928: b3a00001 movlt r0, #1
bool _Timespec_Less_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec < rhs->tv_sec )
3000d92c: b12fff1e bxlt lr
return true;
if ( lhs->tv_sec > rhs->tv_sec )
3000d930: ca000005 bgt 3000d94c <_Timespec_Less_than+0x30>
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Less_than(
3000d934: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED
3000d938: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED
3000d93c: e1500003 cmp r0, r3 <== NOT EXECUTED
3000d940: a3a00000 movge r0, #0 <== NOT EXECUTED
3000d944: b3a00001 movlt r0, #1 <== NOT EXECUTED
3000d948: e12fff1e bx lr <== NOT EXECUTED
{
if ( lhs->tv_sec < rhs->tv_sec )
return true;
if ( lhs->tv_sec > rhs->tv_sec )
return false;
3000d94c: e3a00000 mov r0, #0
/* ASSERT: lhs->tv_sec == rhs->tv_sec */
if ( lhs->tv_nsec < rhs->tv_nsec )
return true;
return false;
}
3000d950: e12fff1e bx lr
3000e908 <_Timespec_Subtract>:
const struct timespec *end,
struct timespec *result
)
{
if (end->tv_nsec < start->tv_nsec) {
3000e908: e591c004 ldr ip, [r1, #4] <== NOT EXECUTED
3000e90c: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED
void _Timespec_Subtract(
const struct timespec *start,
const struct timespec *end,
struct timespec *result
)
{
3000e910: e52d4004 push {r4} ; (str r4, [sp, #-4]!) <== NOT EXECUTED
if (end->tv_nsec < start->tv_nsec) {
3000e914: e15c0003 cmp ip, r3 <== NOT EXECUTED
result->tv_sec = end->tv_sec - start->tv_sec - 1;
3000e918: e5914000 ldr r4, [r1] <== NOT EXECUTED
const struct timespec *end,
struct timespec *result
)
{
if (end->tv_nsec < start->tv_nsec) {
3000e91c: ba000005 blt 3000e938 <_Timespec_Subtract+0x30> <== NOT EXECUTED
result->tv_sec = end->tv_sec - start->tv_sec - 1;
result->tv_nsec =
(TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
} else {
result->tv_sec = end->tv_sec - start->tv_sec;
3000e920: e5901000 ldr r1, [r0] <== NOT EXECUTED
result->tv_nsec = end->tv_nsec - start->tv_nsec;
3000e924: e063300c rsb r3, r3, ip <== NOT EXECUTED
if (end->tv_nsec < start->tv_nsec) {
result->tv_sec = end->tv_sec - start->tv_sec - 1;
result->tv_nsec =
(TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
} else {
result->tv_sec = end->tv_sec - start->tv_sec;
3000e928: e0611004 rsb r1, r1, r4 <== NOT EXECUTED
result->tv_nsec = end->tv_nsec - start->tv_nsec;
3000e92c: e882000a stm r2, {r1, r3} <== NOT EXECUTED
}
}
3000e930: e8bd0010 pop {r4} <== NOT EXECUTED
3000e934: e12fff1e bx lr <== NOT EXECUTED
struct timespec *result
)
{
if (end->tv_nsec < start->tv_nsec) {
result->tv_sec = end->tv_sec - start->tv_sec - 1;
3000e938: e5900000 ldr r0, [r0] <== NOT EXECUTED
result->tv_nsec =
(TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
3000e93c: e59f1014 ldr r1, [pc, #20] ; 3000e958 <_Timespec_Subtract+0x50><== NOT EXECUTED
struct timespec *result
)
{
if (end->tv_nsec < start->tv_nsec) {
result->tv_sec = end->tv_sec - start->tv_sec - 1;
3000e940: e0600004 rsb r0, r0, r4 <== NOT EXECUTED
result->tv_nsec =
(TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
3000e944: e08c1001 add r1, ip, r1 <== NOT EXECUTED
struct timespec *result
)
{
if (end->tv_nsec < start->tv_nsec) {
result->tv_sec = end->tv_sec - start->tv_sec - 1;
3000e948: e2400001 sub r0, r0, #1 <== NOT EXECUTED
result->tv_nsec =
(TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
3000e94c: e0633001 rsb r3, r3, r1 <== NOT EXECUTED
)
{
if (end->tv_nsec < start->tv_nsec) {
result->tv_sec = end->tv_sec - start->tv_sec - 1;
result->tv_nsec =
3000e950: e8820009 stm r2, {r0, r3} <== NOT EXECUTED
3000e954: eafffff5 b 3000e930 <_Timespec_Subtract+0x28> <== NOT EXECUTED
3002c1f4 <_Timespec_To_ticks>:
*/
uint32_t _Timespec_To_ticks(
const struct timespec *time
)
{
3002c1f4: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
uint32_t ticks;
uint32_t nanoseconds_per_tick;
if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
3002c1f8: e5907000 ldr r7, [r0] <== NOT EXECUTED
*/
uint32_t _Timespec_To_ticks(
const struct timespec *time
)
{
3002c1fc: e1a05000 mov r5, r0 <== NOT EXECUTED
uint32_t ticks;
uint32_t nanoseconds_per_tick;
if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
3002c200: e3570000 cmp r7, #0 <== NOT EXECUTED
3002c204: 1a000002 bne 3002c214 <_Timespec_To_ticks+0x20> <== NOT EXECUTED
3002c208: e5904004 ldr r4, [r0, #4] <== NOT EXECUTED
3002c20c: e3540000 cmp r4, #0 <== NOT EXECUTED
3002c210: 0a00000d beq 3002c24c <_Timespec_To_ticks+0x58> <== NOT EXECUTED
/**
* We should ensure the ticks not be truncated by integer division. We
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
ticks = time->tv_sec * TOD_TICKS_PER_SECOND;
3002c214: eb000033 bl 3002c2e8 <TOD_TICKS_PER_SECOND_method> <== NOT EXECUTED
nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick();
3002c218: e59f3034 ldr r3, [pc, #52] ; 3002c254 <_Timespec_To_ticks+0x60><== NOT EXECUTED
ticks += time->tv_nsec / nanoseconds_per_tick;
3002c21c: e5955004 ldr r5, [r5, #4] <== NOT EXECUTED
* We should ensure the ticks not be truncated by integer division. We
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
ticks = time->tv_sec * TOD_TICKS_PER_SECOND;
nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick();
3002c220: e5936010 ldr r6, [r3, #16] <== NOT EXECUTED
/**
* We should ensure the ticks not be truncated by integer division. We
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
ticks = time->tv_sec * TOD_TICKS_PER_SECOND;
3002c224: e0040097 mul r4, r7, r0 <== NOT EXECUTED
nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick();
ticks += time->tv_nsec / nanoseconds_per_tick;
3002c228: e1a01006 mov r1, r6 <== NOT EXECUTED
3002c22c: e1a00005 mov r0, r5 <== NOT EXECUTED
3002c230: ebff62fe bl 30004e30 <__aeabi_uidiv> <== NOT EXECUTED
if ( (time->tv_nsec % nanoseconds_per_tick) != 0 )
3002c234: e1a01006 mov r1, r6 <== NOT EXECUTED
* need to have it be greater than or equal to the requested time. It
* should not be shorter.
*/
ticks = time->tv_sec * TOD_TICKS_PER_SECOND;
nanoseconds_per_tick = rtems_configuration_get_nanoseconds_per_tick();
ticks += time->tv_nsec / nanoseconds_per_tick;
3002c238: e0844000 add r4, r4, r0 <== NOT EXECUTED
if ( (time->tv_nsec % nanoseconds_per_tick) != 0 )
3002c23c: e1a00005 mov r0, r5 <== NOT EXECUTED
3002c240: ebfff706 bl 30029e60 <__umodsi3> <== NOT EXECUTED
3002c244: e3500000 cmp r0, #0 <== NOT EXECUTED
ticks += 1;
3002c248: 12844001 addne r4, r4, #1 <== NOT EXECUTED
return ticks;
}
3002c24c: e1a00004 mov r0, r4 <== NOT EXECUTED
3002c250: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
3000f200 <_Timestamp64_Divide>:
const Timestamp64_Control *_lhs,
const Timestamp64_Control *_rhs,
uint32_t *_ival_percentage,
uint32_t *_fval_percentage
)
{
3000f200: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
Timestamp64_Control answer;
if ( *_rhs == 0 ) {
3000f204: e89100c0 ldm r1, {r6, r7} <== NOT EXECUTED
3000f208: e1961007 orrs r1, r6, r7 <== NOT EXECUTED
const Timestamp64_Control *_lhs,
const Timestamp64_Control *_rhs,
uint32_t *_ival_percentage,
uint32_t *_fval_percentage
)
{
3000f20c: e1a05003 mov r5, r3 <== NOT EXECUTED
Timestamp64_Control answer;
if ( *_rhs == 0 ) {
*_ival_percentage = 0;
3000f210: 03a03000 moveq r3, #0 <== NOT EXECUTED
3000f214: 05823000 streq r3, [r2] <== NOT EXECUTED
const Timestamp64_Control *_lhs,
const Timestamp64_Control *_rhs,
uint32_t *_ival_percentage,
uint32_t *_fval_percentage
)
{
3000f218: e1a04002 mov r4, r2 <== NOT EXECUTED
Timestamp64_Control answer;
if ( *_rhs == 0 ) {
*_ival_percentage = 0;
*_fval_percentage = 0;
3000f21c: 05853000 streq r3, [r5] <== NOT EXECUTED
uint32_t *_fval_percentage
)
{
Timestamp64_Control answer;
if ( *_rhs == 0 ) {
3000f220: 08bd80f0 popeq {r4, r5, r6, r7, pc} <== NOT EXECUTED
* This looks odd but gives the results the proper precision.
*
* TODO: Rounding on the last digit of the fval.
*/
answer = (*_lhs * 100000) / *_rhs;
3000f224: e590c000 ldr ip, [r0] <== NOT EXECUTED
3000f228: e59f3048 ldr r3, [pc, #72] ; 3000f278 <_Timestamp64_Divide+0x78><== NOT EXECUTED
3000f22c: e5902004 ldr r2, [r0, #4] <== NOT EXECUTED
3000f230: e081039c umull r0, r1, ip, r3 <== NOT EXECUTED
3000f234: e0211293 mla r1, r3, r2, r1 <== NOT EXECUTED
3000f238: e1a02006 mov r2, r6 <== NOT EXECUTED
3000f23c: e1a03007 mov r3, r7 <== NOT EXECUTED
3000f240: eb003905 bl 3001d65c <__divdi3> <== NOT EXECUTED
*_ival_percentage = answer / 1000;
3000f244: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED
3000f248: e3a03000 mov r3, #0 <== NOT EXECUTED
* This looks odd but gives the results the proper precision.
*
* TODO: Rounding on the last digit of the fval.
*/
answer = (*_lhs * 100000) / *_rhs;
3000f24c: e1a06000 mov r6, r0 <== NOT EXECUTED
3000f250: e1a07001 mov r7, r1 <== NOT EXECUTED
*_ival_percentage = answer / 1000;
3000f254: eb003900 bl 3001d65c <__divdi3> <== NOT EXECUTED
*_fval_percentage = answer % 1000;
3000f258: e1a01007 mov r1, r7 <== NOT EXECUTED
* TODO: Rounding on the last digit of the fval.
*/
answer = (*_lhs * 100000) / *_rhs;
*_ival_percentage = answer / 1000;
3000f25c: e5840000 str r0, [r4] <== NOT EXECUTED
*_fval_percentage = answer % 1000;
3000f260: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED
3000f264: e3a03000 mov r3, #0 <== NOT EXECUTED
3000f268: e1a00006 mov r0, r6 <== NOT EXECUTED
3000f26c: eb003a35 bl 3001db48 <__moddi3> <== NOT EXECUTED
3000f270: e5850000 str r0, [r5] <== NOT EXECUTED
3000f274: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
30013824 <_User_extensions_Remove_set>:
#include <rtems/score/userextimpl.h>
void _User_extensions_Remove_set (
User_extensions_Control *the_extension
)
{
30013824: e92d4010 push {r4, lr}
30013828: e1a04000 mov r4, r0
_Chain_Extract( &the_extension->Node );
3001382c: eb0012dc bl 300183a4 <_Chain_Extract>
/*
* If a switch handler is present, remove it.
*/
if ( the_extension->Callouts.thread_switch != NULL )
30013830: e5943024 ldr r3, [r4, #36] ; 0x24
30013834: e3530000 cmp r3, #0
30013838: 08bd8010 popeq {r4, pc}
_Chain_Extract( &the_extension->Switch.Node );
3001383c: e2840008 add r0, r4, #8 <== NOT EXECUTED
}
30013840: e8bd4010 pop {r4, lr} <== NOT EXECUTED
/*
* If a switch handler is present, remove it.
*/
if ( the_extension->Callouts.thread_switch != NULL )
_Chain_Extract( &the_extension->Switch.Node );
30013844: ea0012d6 b 300183a4 <_Chain_Extract> <== NOT EXECUTED
3000db64 <_User_extensions_Thread_exitted_visitor>:
Thread_Control *executing,
void *arg,
const User_extensions_Table *callouts
)
{
User_extensions_thread_exitted_extension callout = callouts->thread_exitted;
3000db64: e5923018 ldr r3, [r2, #24]
void _User_extensions_Thread_exitted_visitor(
Thread_Control *executing,
void *arg,
const User_extensions_Table *callouts
)
{
3000db68: e52de004 push {lr} ; (str lr, [sp, #-4]!)
User_extensions_thread_exitted_extension callout = callouts->thread_exitted;
if ( callout != NULL ) {
3000db6c: e3530000 cmp r3, #0
3000db70: 049df004 popeq {pc} ; (ldreq pc, [sp], #4)
(*callout)( executing );
3000db74: e1a0e00f mov lr, pc <== NOT EXECUTED
3000db78: e12fff13 bx r3 <== NOT EXECUTED
3000db7c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
3000f4cc <_Watchdog_Adjust>:
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
3000f4cc: e92d41f0 push {r4, r5, r6, r7, r8, lr}
3000f4d0: e1a04000 mov r4, r0
3000f4d4: e1a05002 mov r5, r2
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000f4d8: e10f2000 mrs r2, CPSR
3000f4dc: e3823080 orr r3, r2, #128 ; 0x80
3000f4e0: e129f003 msr CPSR_fc, r3
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3000f4e4: e1a07000 mov r7, r0
3000f4e8: e4973004 ldr r3, [r7], #4
* hence the compiler must not assume *header to remain
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
3000f4ec: e1530007 cmp r3, r7
3000f4f0: 0a000017 beq 3000f554 <_Watchdog_Adjust+0x88>
switch ( direction ) {
3000f4f4: e3510000 cmp r1, #0 <== NOT EXECUTED
3000f4f8: 1a000017 bne 3000f55c <_Watchdog_Adjust+0x90> <== NOT EXECUTED
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
3000f4fc: e3550000 cmp r5, #0 <== NOT EXECUTED
3000f500: 0a000013 beq 3000f554 <_Watchdog_Adjust+0x88> <== NOT EXECUTED
if ( units < _Watchdog_First( header )->delta_interval ) {
3000f504: e5936010 ldr r6, [r3, #16] <== NOT EXECUTED
3000f508: e1550006 cmp r5, r6 <== NOT EXECUTED
_Watchdog_First( header )->delta_interval -= units;
break;
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
3000f50c: 23a08001 movcs r8, #1 <== NOT EXECUTED
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
3000f510: 2a000005 bcs 3000f52c <_Watchdog_Adjust+0x60> <== NOT EXECUTED
3000f514: ea000017 b 3000f578 <_Watchdog_Adjust+0xac> <== NOT EXECUTED
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
3000f518: e0555006 subs r5, r5, r6 <== NOT EXECUTED
3000f51c: 0a00000c beq 3000f554 <_Watchdog_Adjust+0x88> <== NOT EXECUTED
if ( units < _Watchdog_First( header )->delta_interval ) {
3000f520: e5936010 ldr r6, [r3, #16] <== NOT EXECUTED
3000f524: e1560005 cmp r6, r5 <== NOT EXECUTED
3000f528: 8a000012 bhi 3000f578 <_Watchdog_Adjust+0xac> <== NOT EXECUTED
_Watchdog_First( header )->delta_interval -= units;
break;
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
3000f52c: e5838010 str r8, [r3, #16] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000f530: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_ISR_Enable( level );
_Watchdog_Tickle( header );
3000f534: e1a00004 mov r0, r4 <== NOT EXECUTED
3000f538: eb0000a9 bl 3000f7e4 <_Watchdog_Tickle> <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000f53c: e10f2000 mrs r2, CPSR <== NOT EXECUTED
3000f540: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED
3000f544: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
3000f548: e5943000 ldr r3, [r4] <== NOT EXECUTED
_ISR_Disable( level );
if ( _Chain_Is_empty( header ) )
3000f54c: e1570003 cmp r7, r3 <== NOT EXECUTED
3000f550: 1afffff0 bne 3000f518 <_Watchdog_Adjust+0x4c> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000f554: e129f002 msr CPSR_fc, r2
}
}
_ISR_Enable( level );
}
3000f558: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
switch ( direction ) {
3000f55c: e3510001 cmp r1, #1 <== NOT EXECUTED
3000f560: 1afffffb bne 3000f554 <_Watchdog_Adjust+0x88> <== NOT EXECUTED
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
3000f564: e5931010 ldr r1, [r3, #16] <== NOT EXECUTED
3000f568: e0815005 add r5, r1, r5 <== NOT EXECUTED
3000f56c: e5835010 str r5, [r3, #16] <== NOT EXECUTED
3000f570: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
}
}
_ISR_Enable( level );
}
3000f574: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
_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;
3000f578: e0655006 rsb r5, r5, r6 <== NOT EXECUTED
3000f57c: e5835010 str r5, [r3, #16] <== NOT EXECUTED
break;
3000f580: eafffff3 b 3000f554 <_Watchdog_Adjust+0x88> <== NOT EXECUTED
3001f540 <_Watchdog_Adjust_to_chain>:
Chain_Control *header,
Watchdog_Interval units_arg,
Chain_Control *to_fire
)
{
3001f540: e92d05f0 push {r4, r5, r6, r7, r8, sl} <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3001f544: e10f7000 mrs r7, CPSR <== NOT EXECUTED
3001f548: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED
3001f54c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
Watchdog_Interval units = units_arg;
ISR_Level level;
Watchdog_Control *first;
_ISR_Disable( level );
3001f550: e1a06000 mov r6, r0 <== NOT EXECUTED
3001f554: e4963004 ldr r3, [r6], #4 <== NOT EXECUTED
/*
* 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;
3001f558: e3a0a000 mov sl, #0 <== NOT EXECUTED
3001f55c: e2828004 add r8, r2, #4 <== NOT EXECUTED
Watchdog_Control *first;
_ISR_Disable( level );
while ( 1 ) {
if ( _Chain_Is_empty( header ) ) {
3001f560: e1560003 cmp r6, r3 <== NOT EXECUTED
3001f564: 0a000018 beq 3001f5cc <_Watchdog_Adjust_to_chain+0x8c> <== NOT EXECUTED
/*
* If it is longer than "units" until the first element on the chain
* fires, then bump it and quit.
*/
if ( units < first->delta_interval ) {
3001f568: e593c010 ldr ip, [r3, #16] <== NOT EXECUTED
3001f56c: e151000c cmp r1, ip <== NOT EXECUTED
3001f570: 3a000018 bcc 3001f5d8 <_Watchdog_Adjust_to_chain+0x98> <== NOT EXECUTED
/*
* 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;
3001f574: e06c1001 rsb r1, ip, r1 <== NOT EXECUTED
first->delta_interval = 0;
3001f578: e583a010 str sl, [r3, #16] <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
3001f57c: e5935000 ldr r5, [r3] <== NOT EXECUTED
previous = the_node->previous;
3001f580: e5934004 ldr r4, [r3, #4] <== NOT EXECUTED
next->previous = previous;
3001f584: e5854004 str r4, [r5, #4] <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
3001f588: e592c008 ldr ip, [r2, #8] <== NOT EXECUTED
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
previous->next = next;
3001f58c: e5845000 str r5, [r4] <== NOT EXECUTED
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
3001f590: e5838000 str r8, [r3] <== NOT EXECUTED
tail->previous = the_node;
old_last->next = the_node;
3001f594: e58c3000 str r3, [ip] <== NOT EXECUTED
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
3001f598: e5823008 str r3, [r2, #8] <== NOT EXECUTED
old_last->next = the_node;
the_node->previous = old_last;
3001f59c: e583c004 str ip, [r3, #4] <== NOT EXECUTED
static inline void arm_interrupt_flash( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3001f5a0: e10f3000 mrs r3, CPSR <== NOT EXECUTED
3001f5a4: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
3001f5a8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3001f5ac: e5903000 ldr r3, [r0] <== NOT EXECUTED
_Chain_Extract_unprotected( &first->Node );
_Chain_Append_unprotected( to_fire, &first->Node );
_ISR_Flash( level );
if ( _Chain_Is_empty( header ) )
3001f5b0: e1560003 cmp r6, r3 <== NOT EXECUTED
3001f5b4: 0affffe9 beq 3001f560 <_Watchdog_Adjust_to_chain+0x20> <== NOT EXECUTED
break;
first = _Watchdog_First( header );
if ( first->delta_interval != 0 )
3001f5b8: e593c010 ldr ip, [r3, #16] <== NOT EXECUTED
3001f5bc: e35c0000 cmp ip, #0 <== NOT EXECUTED
3001f5c0: 0affffed beq 3001f57c <_Watchdog_Adjust_to_chain+0x3c> <== NOT EXECUTED
Watchdog_Control *first;
_ISR_Disable( level );
while ( 1 ) {
if ( _Chain_Is_empty( header ) ) {
3001f5c4: e1560003 cmp r6, r3 <== NOT EXECUTED
3001f5c8: 1affffe6 bne 3001f568 <_Watchdog_Adjust_to_chain+0x28> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3001f5cc: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
break;
}
}
_ISR_Enable( level );
}
3001f5d0: e8bd05f0 pop {r4, r5, r6, r7, r8, sl} <== NOT EXECUTED
3001f5d4: e12fff1e bx lr <== NOT EXECUTED
/*
* 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;
3001f5d8: e061100c rsb r1, r1, ip <== NOT EXECUTED
3001f5dc: e5831010 str r1, [r3, #16] <== NOT EXECUTED
break;
3001f5e0: eafffff9 b 3001f5cc <_Watchdog_Adjust_to_chain+0x8c> <== NOT EXECUTED
3000dcc4 <_Watchdog_Insert>:
Watchdog_Control *after;
uint32_t insert_isr_nest_level;
Watchdog_Interval delta_interval;
insert_isr_nest_level = _ISR_Nest_level;
3000dcc4: e59f3138 ldr r3, [pc, #312] ; 3000de04 <_Watchdog_Insert+0x140>
void _Watchdog_Insert(
Chain_Control *header,
Watchdog_Control *the_watchdog
)
{
3000dcc8: e92d01f0 push {r4, r5, r6, r7, r8}
Watchdog_Control *after;
uint32_t insert_isr_nest_level;
Watchdog_Interval delta_interval;
insert_isr_nest_level = _ISR_Nest_level;
3000dccc: e5933000 ldr r3, [r3]
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000dcd0: e10f5000 mrs r5, CPSR
3000dcd4: e3852080 orr r2, r5, #128 ; 0x80
3000dcd8: e129f002 msr CPSR_fc, r2
/*
* 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 ) {
3000dcdc: e5912008 ldr r2, [r1, #8]
3000dce0: e3520000 cmp r2, #0
3000dce4: 1a00003e bne 3000dde4 <_Watchdog_Insert+0x120>
_ISR_Enable( level );
return;
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
_Watchdog_Sync_count++;
3000dce8: e59f7118 ldr r7, [pc, #280] ; 3000de08 <_Watchdog_Insert+0x144>
if ( the_watchdog->state != WATCHDOG_INACTIVE ) {
_ISR_Enable( level );
return;
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
3000dcec: e3a0c001 mov ip, #1
_Watchdog_Sync_count++;
3000dcf0: e5972000 ldr r2, [r7]
3000dcf4: e59f6110 ldr r6, [pc, #272] ; 3000de0c <_Watchdog_Insert+0x148>
3000dcf8: e2822001 add r2, r2, #1
if ( the_watchdog->state != WATCHDOG_INACTIVE ) {
_ISR_Enable( level );
return;
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
3000dcfc: e581c008 str ip, [r1, #8]
_Watchdog_Sync_count++;
3000dd00: e5872000 str r2, [r7]
restart:
delta_interval = the_watchdog->initial;
3000dd04: e591200c ldr r2, [r1, #12]
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return _Chain_Head( the_chain )->next;
3000dd08: e590c000 ldr ip, [r0]
for ( after = _Watchdog_First( header ) ;
;
after = _Watchdog_Next( after ) ) {
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
3000dd0c: e3520000 cmp r2, #0
3000dd10: 0a000023 beq 3000dda4 <_Watchdog_Insert+0xe0>
3000dd14: e59c4000 ldr r4, [ip]
3000dd18: e3540000 cmp r4, #0
3000dd1c: 0a000020 beq 3000dda4 <_Watchdog_Insert+0xe0>
break;
if ( delta_interval < after->delta_interval ) {
3000dd20: e59c4010 ldr r4, [ip, #16]
3000dd24: e1520004 cmp r2, r4
3000dd28: 3a000030 bcc 3000ddf0 <_Watchdog_Insert+0x12c>
static inline void arm_interrupt_flash( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000dd2c: e10f8000 mrs r8, CPSR
3000dd30: e129f005 msr CPSR_fc, r5
3000dd34: e129f008 msr CPSR_fc, r8
delta_interval -= after->delta_interval;
_ISR_Flash( level );
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
3000dd38: e5918008 ldr r8, [r1, #8]
3000dd3c: e3580001 cmp r8, #1
3000dd40: 1a000023 bne 3000ddd4 <_Watchdog_Insert+0x110>
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
3000dd44: e5968000 ldr r8, [r6]
3000dd48: e1530008 cmp r3, r8
if ( delta_interval < after->delta_interval ) {
after->delta_interval -= delta_interval;
break;
}
delta_interval -= after->delta_interval;
3000dd4c: 20642002 rsbcs r2, r4, r2
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
3000dd50: 2a000010 bcs 3000dd98 <_Watchdog_Insert+0xd4>
3000dd54: ea000028 b 3000ddfc <_Watchdog_Insert+0x138> <== NOT EXECUTED
for ( after = _Watchdog_First( header ) ;
;
after = _Watchdog_Next( after ) ) {
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
3000dd58: e59c4000 ldr r4, [ip] <== NOT EXECUTED
3000dd5c: e3540000 cmp r4, #0 <== NOT EXECUTED
3000dd60: 0a00000f beq 3000dda4 <_Watchdog_Insert+0xe0> <== NOT EXECUTED
break;
if ( delta_interval < after->delta_interval ) {
3000dd64: e59c4010 ldr r4, [ip, #16] <== NOT EXECUTED
3000dd68: e1540002 cmp r4, r2 <== NOT EXECUTED
3000dd6c: 8a00001f bhi 3000ddf0 <_Watchdog_Insert+0x12c> <== NOT EXECUTED
after->delta_interval -= delta_interval;
break;
}
delta_interval -= after->delta_interval;
3000dd70: e0642002 rsb r2, r4, r2 <== NOT EXECUTED
3000dd74: e10f4000 mrs r4, CPSR <== NOT EXECUTED
3000dd78: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
3000dd7c: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Flash( level );
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
3000dd80: e5914008 ldr r4, [r1, #8] <== NOT EXECUTED
3000dd84: e3540001 cmp r4, #1 <== NOT EXECUTED
3000dd88: 1a000011 bne 3000ddd4 <_Watchdog_Insert+0x110> <== NOT EXECUTED
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
3000dd8c: e5964000 ldr r4, [r6] <== NOT EXECUTED
3000dd90: e1530004 cmp r3, r4 <== NOT EXECUTED
3000dd94: 3a000018 bcc 3000ddfc <_Watchdog_Insert+0x138> <== NOT EXECUTED
for ( after = _Watchdog_First( header ) ;
;
after = _Watchdog_Next( after ) ) {
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
3000dd98: e3520000 cmp r2, #0
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_Next(
Watchdog_Control *the_watchdog
)
{
return ( (Watchdog_Control *) the_watchdog->Node.next );
3000dd9c: e59cc000 ldr ip, [ip]
3000dda0: 1affffec bne 3000dd58 <_Watchdog_Insert+0x94>
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
3000dda4: e59c0004 ldr r0, [ip, #4]
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
3000dda8: e59f4060 ldr r4, [pc, #96] ; 3000de10 <_Watchdog_Insert+0x14c>
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
3000ddac: e590c000 ldr ip, [r0]
3000ddb0: e5944000 ldr r4, [r4]
RTEMS_INLINE_ROUTINE void _Watchdog_Activate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_ACTIVE;
3000ddb4: e3a08002 mov r8, #2
3000ddb8: e5818008 str r8, [r1, #8]
}
}
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
3000ddbc: e5812010 str r2, [r1, #16]
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
3000ddc0: e5810004 str r0, [r1, #4]
before_node = after_node->next;
after_node->next = the_node;
3000ddc4: e5801000 str r1, [r0]
the_node->next = before_node;
before_node->previous = the_node;
3000ddc8: e58c1004 str r1, [ip, #4]
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
3000ddcc: e581c000 str ip, [r1]
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
3000ddd0: e5814014 str r4, [r1, #20]
exit_insert:
_Watchdog_Sync_level = insert_isr_nest_level;
3000ddd4: e5863000 str r3, [r6]
_Watchdog_Sync_count--;
3000ddd8: e5973000 ldr r3, [r7]
3000dddc: e2433001 sub r3, r3, #1
3000dde0: e5873000 str r3, [r7]
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000dde4: e129f005 msr CPSR_fc, r5
_ISR_Enable( level );
}
3000dde8: e8bd01f0 pop {r4, r5, r6, r7, r8}
3000ddec: e12fff1e bx lr
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
break;
if ( delta_interval < after->delta_interval ) {
after->delta_interval -= delta_interval;
3000ddf0: e0624004 rsb r4, r2, r4 <== NOT EXECUTED
3000ddf4: e58c4010 str r4, [ip, #16] <== NOT EXECUTED
break;
3000ddf8: eaffffe9 b 3000dda4 <_Watchdog_Insert+0xe0> <== NOT EXECUTED
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;
3000ddfc: e5863000 str r3, [r6] <== NOT EXECUTED
goto restart;
3000de00: eaffffbf b 3000dd04 <_Watchdog_Insert+0x40> <== NOT EXECUTED
3000efc4 <_Watchdog_Report>:
void _Watchdog_Report(
const char *name,
Watchdog_Control *watch
)
{
3000efc4: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
printk(
3000efc8: e2507000 subs r7, r0, #0 <== NOT EXECUTED
3000efcc: 059f7044 ldreq r7, [pc, #68] ; 3000f018 <_Watchdog_Report+0x54><== NOT EXECUTED
3000efd0: e591600c ldr r6, [r1, #12] <== NOT EXECUTED
3000efd4: e591501c ldr r5, [r1, #28] <== NOT EXECUTED
3000efd8: e5914020 ldr r4, [r1, #32] <== NOT EXECUTED
3000efdc: e591e024 ldr lr, [r1, #36] ; 0x24 <== NOT EXECUTED
3000efe0: e5913010 ldr r3, [r1, #16] <== NOT EXECUTED
void _Watchdog_Report(
const char *name,
Watchdog_Control *watch
)
{
3000efe4: e24dd014 sub sp, sp, #20 <== NOT EXECUTED
3000efe8: e1a0c001 mov ip, r1 <== NOT EXECUTED
printk(
3000efec: 01a02007 moveq r2, r7 <== NOT EXECUTED
3000eff0: 159f2024 ldrne r2, [pc, #36] ; 3000f01c <_Watchdog_Report+0x58><== NOT EXECUTED
3000eff4: e59f0024 ldr r0, [pc, #36] ; 3000f020 <_Watchdog_Report+0x5c><== NOT EXECUTED
3000eff8: e1a01007 mov r1, r7 <== NOT EXECUTED
3000effc: e88d1040 stm sp, {r6, ip} <== NOT EXECUTED
3000f000: e58d5008 str r5, [sp, #8] <== NOT EXECUTED
3000f004: e58d400c str r4, [sp, #12] <== NOT EXECUTED
3000f008: e58de010 str lr, [sp, #16] <== NOT EXECUTED
3000f00c: ebffe384 bl 30007e24 <printk> <== NOT EXECUTED
watch,
watch->routine,
watch->id,
watch->user_data
);
}
3000f010: e28dd014 add sp, sp, #20 <== NOT EXECUTED
3000f014: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
3000ef4c <_Watchdog_Report_chain>:
void _Watchdog_Report_chain(
const char *name,
Chain_Control *header
)
{
3000ef4c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
3000ef50: e1a02001 mov r2, r1 <== NOT EXECUTED
3000ef54: e1a05000 mov r5, r0 <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000ef58: e10f6000 mrs r6, CPSR <== NOT EXECUTED
3000ef5c: e3863080 orr r3, r6, #128 ; 0x80 <== NOT EXECUTED
3000ef60: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
3000ef64: e59f004c ldr r0, [pc, #76] ; 3000efb8 <_Watchdog_Report_chain+0x6c><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3000ef68: e1a04001 mov r4, r1 <== NOT EXECUTED
3000ef6c: e1a01005 mov r1, r5 <== NOT EXECUTED
3000ef70: ebffe3ab bl 30007e24 <printk> <== NOT EXECUTED
3000ef74: e4947004 ldr r7, [r4], #4 <== NOT EXECUTED
if ( !_Chain_Is_empty( header ) ) {
3000ef78: e1570004 cmp r7, r4 <== NOT EXECUTED
3000ef7c: 0a00000a beq 3000efac <_Watchdog_Report_chain+0x60> <== NOT EXECUTED
node != _Chain_Tail(header) ;
node = node->next )
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
3000ef80: e1a01007 mov r1, r7 <== NOT EXECUTED
3000ef84: e3a00000 mov r0, #0 <== NOT EXECUTED
3000ef88: eb00000d bl 3000efc4 <_Watchdog_Report> <== NOT EXECUTED
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
for ( node = _Chain_First( header ) ;
node != _Chain_Tail(header) ;
node = node->next )
3000ef8c: e5977000 ldr r7, [r7] <== NOT EXECUTED
Chain_Node *node;
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
for ( node = _Chain_First( header ) ;
3000ef90: e1570004 cmp r7, r4 <== NOT EXECUTED
3000ef94: 1afffff9 bne 3000ef80 <_Watchdog_Report_chain+0x34> <== NOT EXECUTED
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
3000ef98: e59f001c ldr r0, [pc, #28] ; 3000efbc <_Watchdog_Report_chain+0x70><== NOT EXECUTED
3000ef9c: e1a01005 mov r1, r5 <== NOT EXECUTED
3000efa0: ebffe39f bl 30007e24 <printk> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000efa4: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
} else {
printk( "Chain is empty\n" );
}
_ISR_Enable( level );
}
3000efa8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
} else {
printk( "Chain is empty\n" );
3000efac: e59f000c ldr r0, [pc, #12] ; 3000efc0 <_Watchdog_Report_chain+0x74><== NOT EXECUTED
3000efb0: ebffe39b bl 30007e24 <printk> <== NOT EXECUTED
3000efb4: eafffffa b 3000efa4 <_Watchdog_Report_chain+0x58> <== NOT EXECUTED
3000df24 <_Watchdog_Tickle>:
#include <rtems/score/watchdog.h>
void _Watchdog_Tickle(
Chain_Control *header
)
{
3000df24: e92d40f0 push {r4, r5, r6, r7, lr}
3000df28: e1a06000 mov r6, r0
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000df2c: e10f7000 mrs r7, CPSR
3000df30: e3873080 orr r3, r7, #128 ; 0x80
3000df34: e129f003 msr CPSR_fc, r3
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3000df38: e1a05000 mov r5, r0
3000df3c: e4954004 ldr r4, [r5], #4
* volatile data - till, 2003/7
*/
_ISR_Disable( level );
if ( _Chain_Is_empty( header ) )
3000df40: e1540005 cmp r4, r5
3000df44: 0a000006 beq 3000df64 <_Watchdog_Tickle+0x40>
* to be inserted has already had its delta_interval adjusted to 0, and
* so is added to the head of the chain with a delta_interval of 0.
*
* Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)
*/
if (the_watchdog->delta_interval != 0) {
3000df48: e5943010 ldr r3, [r4, #16]
3000df4c: e3530000 cmp r3, #0
3000df50: 0a000012 beq 3000dfa0 <_Watchdog_Tickle+0x7c>
the_watchdog->delta_interval--;
3000df54: e2433001 sub r3, r3, #1
if ( the_watchdog->delta_interval != 0 )
3000df58: e3530000 cmp r3, #0
* so is added to the head of the chain with a delta_interval of 0.
*
* Steven Johnson - 12/2005 (gcc-3.2.3 -O3 on powerpc)
*/
if (the_watchdog->delta_interval != 0) {
the_watchdog->delta_interval--;
3000df5c: e5843010 str r3, [r4, #16]
if ( the_watchdog->delta_interval != 0 )
3000df60: 0a00000e beq 3000dfa0 <_Watchdog_Tickle+0x7c>
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000df64: e129f007 msr CPSR_fc, r7
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
leave:
_ISR_Enable(level);
}
3000df68: e8bd80f0 pop {r4, r5, r6, r7, pc}
_ISR_Enable( level );
switch( watchdog_state ) {
case WATCHDOG_ACTIVE:
(*the_watchdog->routine)(
3000df6c: e5940020 ldr r0, [r4, #32] <== NOT EXECUTED
3000df70: e5941024 ldr r1, [r4, #36] ; 0x24 <== NOT EXECUTED
3000df74: e1a0e00f mov lr, pc <== NOT EXECUTED
3000df78: e594f01c ldr pc, [r4, #28] <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000df7c: e10f7000 mrs r7, CPSR <== NOT EXECUTED
3000df80: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED
3000df84: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return _Chain_Head( the_chain )->next;
3000df88: e5964000 ldr r4, [r6] <== NOT EXECUTED
_ISR_Disable( level );
the_watchdog = _Watchdog_First( header );
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
3000df8c: e1550004 cmp r5, r4 <== NOT EXECUTED
3000df90: 0afffff3 beq 3000df64 <_Watchdog_Tickle+0x40> <== NOT EXECUTED
}
_ISR_Disable( level );
the_watchdog = _Watchdog_First( header );
} while ( !_Chain_Is_empty( header ) &&
3000df94: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED
3000df98: e3530000 cmp r3, #0 <== NOT EXECUTED
3000df9c: 1afffff0 bne 3000df64 <_Watchdog_Tickle+0x40> <== NOT EXECUTED
if ( the_watchdog->delta_interval != 0 )
goto leave;
}
do {
watchdog_state = _Watchdog_Remove( the_watchdog );
3000dfa0: e1a00004 mov r0, r4 <== NOT EXECUTED
3000dfa4: ebffffb3 bl 3000de78 <_Watchdog_Remove> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000dfa8: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
_ISR_Enable( level );
switch( watchdog_state ) {
3000dfac: e3500002 cmp r0, #2 <== NOT EXECUTED
3000dfb0: 1afffff1 bne 3000df7c <_Watchdog_Tickle+0x58> <== NOT EXECUTED
3000dfb4: eaffffec b 3000df6c <_Watchdog_Tickle+0x48> <== NOT EXECUTED
3000e118 <_Workspace_Allocate_or_fatal_error>:
3000e118: e3a02000 mov r2, #0
}
void *_Workspace_Allocate_or_fatal_error(
size_t size
)
{
3000e11c: e1a01000 mov r1, r0
3000e120: e52de004 push {lr} ; (str lr, [sp, #-4]!)
3000e124: e59f0018 ldr r0, [pc, #24] ; 3000e144 <_Workspace_Allocate_or_fatal_error+0x2c>
3000e128: e1a03002 mov r3, r2
3000e12c: eb0006fd bl 3000fd28 <_Heap_Allocate_aligned_with_boundary>
__builtin_return_address( 1 ),
memory
);
#endif
if ( memory == NULL )
3000e130: e3500000 cmp r0, #0
3000e134: 149df004 popne {pc} ; (ldrne pc, [sp], #4)
_Internal_error_Occurred(
3000e138: e3a01001 mov r1, #1 <== NOT EXECUTED
3000e13c: e3a02003 mov r2, #3 <== NOT EXECUTED
3000e140: ebfff6cc bl 3000bc78 <_Internal_error_Occurred> <== NOT EXECUTED
3000dfb8 <_Workspace_Handler_initialization>:
void _Workspace_Handler_initialization(
Heap_Area *areas,
size_t area_count,
Heap_Initialization_or_extend_handler extend
)
{
3000dfb8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
uintptr_t remaining = rtems_configuration_get_work_space_size();
3000dfbc: e59f3120 ldr r3, [pc, #288] ; 3000e0e4 <_Workspace_Handler_initialization+0x12c>
void _Workspace_Handler_initialization(
Heap_Area *areas,
size_t area_count,
Heap_Initialization_or_extend_handler extend
)
{
3000dfc0: e24dd004 sub sp, sp, #4
Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
uintptr_t remaining = rtems_configuration_get_work_space_size();
3000dfc4: e5d3c032 ldrb ip, [r3, #50] ; 0x32
void _Workspace_Handler_initialization(
Heap_Area *areas,
size_t area_count,
Heap_Initialization_or_extend_handler extend
)
{
3000dfc8: e58d2000 str r2, [sp]
Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
uintptr_t remaining = rtems_configuration_get_work_space_size();
3000dfcc: e35c0000 cmp ip, #0
3000dfd0: 05937004 ldreq r7, [r3, #4]
3000dfd4: e5932000 ldr r2, [r3]
3000dfd8: 13a07000 movne r7, #0
bool unified = rtems_configuration_get_unified_work_area();
uintptr_t page_size = CPU_HEAP_ALIGNMENT;
uintptr_t overhead = _Heap_Area_overhead( page_size );
size_t i;
for (i = 0; i < area_count; ++i) {
3000dfdc: e3510000 cmp r1, #0
void _Workspace_Handler_initialization(
Heap_Area *areas,
size_t area_count,
Heap_Initialization_or_extend_handler extend
)
{
3000dfe0: e1a08001 mov r8, r1
Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
uintptr_t remaining = rtems_configuration_get_work_space_size();
3000dfe4: e0877002 add r7, r7, r2
bool do_zero = rtems_configuration_get_do_zero_of_workspace();
3000dfe8: e5d3a030 ldrb sl, [r3, #48] ; 0x30
bool unified = rtems_configuration_get_unified_work_area();
3000dfec: e5d3b031 ldrb fp, [r3, #49] ; 0x31
uintptr_t page_size = CPU_HEAP_ALIGNMENT;
uintptr_t overhead = _Heap_Area_overhead( page_size );
size_t i;
for (i = 0; i < area_count; ++i) {
3000dff0: 0a000033 beq 3000e0c4 <_Workspace_Handler_initialization+0x10c>
Heap_Area *areas,
size_t area_count,
Heap_Initialization_or_extend_handler extend
)
{
Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
3000dff4: e59f90ec ldr r9, [pc, #236] ; 3000e0e8 <_Workspace_Handler_initialization+0x130>
bool unified = rtems_configuration_get_unified_work_area();
uintptr_t page_size = CPU_HEAP_ALIGNMENT;
uintptr_t overhead = _Heap_Area_overhead( page_size );
size_t i;
for (i = 0; i < area_count; ++i) {
3000dff8: e1a04000 mov r4, r0
3000dffc: e3a06000 mov r6, #0
3000e000: ea00001d b 3000e07c <_Workspace_Handler_initialization+0xc4>
if ( do_zero ) {
memset( area->begin, 0, area->size );
}
if ( area->size > overhead ) {
3000e004: e5945004 ldr r5, [r4, #4]
3000e008: e3550016 cmp r5, #22
3000e00c: 9a000016 bls 3000e06c <_Workspace_Handler_initialization+0xb4>
uintptr_t space_available;
uintptr_t size;
if ( unified ) {
3000e010: e35b0000 cmp fp, #0
3000e014: 1a000004 bne 3000e02c <_Workspace_Handler_initialization+0x74>
size = area->size;
} else {
if ( remaining > 0 ) {
3000e018: e3570000 cmp r7, #0
3000e01c: 0a00001d beq 3000e098 <_Workspace_Handler_initialization+0xe0>
size = remaining < area->size - overhead ?
3000e020: e2453016 sub r3, r5, #22
remaining + overhead : area->size;
3000e024: e1530007 cmp r3, r7
3000e028: 82875016 addhi r5, r7, #22
} else {
size = 0;
}
}
space_available = (*init_or_extend)(
3000e02c: e1a02005 mov r2, r5
3000e030: e3a03008 mov r3, #8
3000e034: e59f00b0 ldr r0, [pc, #176] ; 3000e0ec <_Workspace_Handler_initialization+0x134>
3000e038: e5941000 ldr r1, [r4]
3000e03c: e1a0e00f mov lr, pc
3000e040: e12fff19 bx r9
area->begin,
size,
page_size
);
area->begin = (char *) area->begin + size;
3000e044: e5943000 ldr r3, [r4]
area->size -= size;
3000e048: e5942004 ldr r2, [r4, #4]
area->begin,
size,
page_size
);
area->begin = (char *) area->begin + size;
3000e04c: e0833005 add r3, r3, r5
area->size -= size;
3000e050: e0655002 rsb r5, r5, r2
if ( space_available < remaining ) {
3000e054: e1500007 cmp r0, r7
size,
page_size
);
area->begin = (char *) area->begin + size;
area->size -= size;
3000e058: e8840028 stm r4, {r3, r5}
remaining -= space_available;
} else {
remaining = 0;
}
init_or_extend = extend;
3000e05c: 359d9000 ldrcc r9, [sp]
3000e060: 259d9000 ldrcs r9, [sp]
area->begin = (char *) area->begin + size;
area->size -= size;
if ( space_available < remaining ) {
remaining -= space_available;
3000e064: 30607007 rsbcc r7, r0, r7
} else {
remaining = 0;
3000e068: 23a07000 movcs r7, #0
bool unified = rtems_configuration_get_unified_work_area();
uintptr_t page_size = CPU_HEAP_ALIGNMENT;
uintptr_t overhead = _Heap_Area_overhead( page_size );
size_t i;
for (i = 0; i < area_count; ++i) {
3000e06c: e2866001 add r6, r6, #1
3000e070: e1560008 cmp r6, r8
3000e074: e2844008 add r4, r4, #8
3000e078: 0a000011 beq 3000e0c4 <_Workspace_Handler_initialization+0x10c>
Heap_Area *area = &areas [i];
if ( do_zero ) {
3000e07c: e35a0000 cmp sl, #0
3000e080: 0affffdf beq 3000e004 <_Workspace_Handler_initialization+0x4c>
memset( area->begin, 0, area->size );
3000e084: e5940000 ldr r0, [r4]
3000e088: e3a01000 mov r1, #0
3000e08c: e5942004 ldr r2, [r4, #4]
3000e090: eb0010e3 bl 30012424 <memset>
3000e094: eaffffda b 3000e004 <_Workspace_Handler_initialization+0x4c>
} else {
size = 0;
}
}
space_available = (*init_or_extend)(
3000e098: e5941000 ldr r1, [r4] <== NOT EXECUTED
3000e09c: e59f0048 ldr r0, [pc, #72] ; 3000e0ec <_Workspace_Handler_initialization+0x134><== NOT EXECUTED
3000e0a0: e1a02007 mov r2, r7 <== NOT EXECUTED
3000e0a4: e3a03008 mov r3, #8 <== NOT EXECUTED
bool unified = rtems_configuration_get_unified_work_area();
uintptr_t page_size = CPU_HEAP_ALIGNMENT;
uintptr_t overhead = _Heap_Area_overhead( page_size );
size_t i;
for (i = 0; i < area_count; ++i) {
3000e0a8: e2866001 add r6, r6, #1 <== NOT EXECUTED
} else {
size = 0;
}
}
space_available = (*init_or_extend)(
3000e0ac: e1a0e00f mov lr, pc <== NOT EXECUTED
3000e0b0: e12fff19 bx r9 <== NOT EXECUTED
bool unified = rtems_configuration_get_unified_work_area();
uintptr_t page_size = CPU_HEAP_ALIGNMENT;
uintptr_t overhead = _Heap_Area_overhead( page_size );
size_t i;
for (i = 0; i < area_count; ++i) {
3000e0b4: e1560008 cmp r6, r8 <== NOT EXECUTED
remaining -= space_available;
} else {
remaining = 0;
}
init_or_extend = extend;
3000e0b8: e59d9000 ldr r9, [sp] <== NOT EXECUTED
bool unified = rtems_configuration_get_unified_work_area();
uintptr_t page_size = CPU_HEAP_ALIGNMENT;
uintptr_t overhead = _Heap_Area_overhead( page_size );
size_t i;
for (i = 0; i < area_count; ++i) {
3000e0bc: e2844008 add r4, r4, #8 <== NOT EXECUTED
3000e0c0: 1affffed bne 3000e07c <_Workspace_Handler_initialization+0xc4><== NOT EXECUTED
init_or_extend = extend;
}
}
if ( remaining > 0 ) {
3000e0c4: e3570000 cmp r7, #0
3000e0c8: 1a000001 bne 3000e0d4 <_Workspace_Handler_initialization+0x11c>
INTERNAL_ERROR_CORE,
true,
INTERNAL_ERROR_TOO_LITTLE_WORKSPACE
);
}
}
3000e0cc: e28dd004 add sp, sp, #4
3000e0d0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
init_or_extend = extend;
}
}
if ( remaining > 0 ) {
_Internal_error_Occurred(
3000e0d4: e3a00000 mov r0, #0 <== NOT EXECUTED
3000e0d8: e3a01001 mov r1, #1 <== NOT EXECUTED
3000e0dc: e3a02002 mov r2, #2 <== NOT EXECUTED
3000e0e0: ebfff6e4 bl 3000bc78 <_Internal_error_Occurred> <== NOT EXECUTED
3000b884 <check_and_merge.part.1>:
rtems_rbheap_chunk *a,
rtems_rbheap_chunk *b
)
{
if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) {
if (b->begin < a->begin) {
3000b884: e592c018 ldr ip, [r2, #24] <== NOT EXECUTED
return rtems_rbheap_chunk_of_node(
_RBTree_Next_unprotected(&chunk->tree_node, dir)
);
}
static void check_and_merge(
3000b888: e92d0070 push {r4, r5, r6} <== NOT EXECUTED
rtems_rbheap_chunk *a,
rtems_rbheap_chunk *b
)
{
if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) {
if (b->begin < a->begin) {
3000b88c: e5934018 ldr r4, [r3, #24] <== NOT EXECUTED
3000b890: e154000c cmp r4, ip <== NOT EXECUTED
3000b894: 31a0c002 movcc ip, r2 <== NOT EXECUTED
3000b898: 31a02003 movcc r2, r3 <== NOT EXECUTED
3000b89c: 31a0300c movcc r3, ip <== NOT EXECUTED
a = b;
b = t;
}
a->size += b->size;
3000b8a0: e592601c ldr r6, [r2, #28] <== NOT EXECUTED
3000b8a4: e593501c ldr r5, [r3, #28] <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
3000b8a8: e593c000 ldr ip, [r3] <== NOT EXECUTED
previous = the_node->previous;
3000b8ac: e5934004 ldr r4, [r3, #4] <== NOT EXECUTED
3000b8b0: e0865005 add r5, r6, r5 <== NOT EXECUTED
3000b8b4: e582501c str r5, [r2, #28] <== NOT EXECUTED
next->previous = previous;
previous->next = next;
3000b8b8: e584c000 str ip, [r4] <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
3000b8bc: e5902000 ldr r2, [r0] <== NOT EXECUTED
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
next->previous = previous;
3000b8c0: e58c4004 str r4, [ip, #4] <== NOT EXECUTED
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
3000b8c4: e5803000 str r3, [r0] <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
3000b8c8: e5830004 str r0, [r3, #4] <== NOT EXECUTED
rtems_chain_extract_unprotected(&b->chain_node);
add_to_chain(free_chain, b);
_RBTree_Extract_unprotected(chunk_tree, &b->tree_node);
3000b8cc: e1a00001 mov r0, r1 <== NOT EXECUTED
3000b8d0: e2831008 add r1, r3, #8 <== NOT EXECUTED
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
3000b8d4: e5832000 str r2, [r3] <== NOT EXECUTED
before_node->previous = the_node;
3000b8d8: e5823004 str r3, [r2, #4] <== NOT EXECUTED
}
}
3000b8dc: e8bd0070 pop {r4, r5, r6} <== NOT EXECUTED
}
a->size += b->size;
rtems_chain_extract_unprotected(&b->chain_node);
add_to_chain(free_chain, b);
_RBTree_Extract_unprotected(chunk_tree, &b->tree_node);
3000b8e0: ea0006c9 b 3000d40c <_RBTree_Extract_unprotected> <== NOT EXECUTED
3000b874 <chunk_compare>:
static int chunk_compare(const rtems_rbtree_node *a, const rtems_rbtree_node *b)
{
const rtems_rbheap_chunk *left = rtems_rbheap_chunk_of_node(a);
const rtems_rbheap_chunk *right = rtems_rbheap_chunk_of_node(b);
return (int) (left->begin - right->begin);
3000b874: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED
3000b878: e5910010 ldr r0, [r1, #16] <== NOT EXECUTED
}
3000b87c: e0600003 rsb r0, r0, r3 <== NOT EXECUTED
3000b880: e12fff1e bx lr <== NOT EXECUTED
30011f1c <rtems_barrier_create>:
rtems_name name,
rtems_attribute attribute_set,
uint32_t maximum_waiters,
rtems_id *id
)
{
30011f1c: e92d41f0 push {r4, r5, r6, r7, r8, lr}
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
30011f20: e2505000 subs r5, r0, #0
rtems_name name,
rtems_attribute attribute_set,
uint32_t maximum_waiters,
rtems_id *id
)
{
30011f24: e24dd008 sub sp, sp, #8
30011f28: e1a04001 mov r4, r1
30011f2c: e1a06003 mov r6, r3
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
30011f30: 03a00003 moveq r0, #3
)
{
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
30011f34: 1a000001 bne 30011f40 <rtems_barrier_create+0x24>
*id = the_barrier->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
30011f38: e28dd008 add sp, sp, #8
30011f3c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
30011f40: e3530000 cmp r3, #0
return RTEMS_INVALID_ADDRESS;
30011f44: 03a00009 moveq r0, #9
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
30011f48: 0afffffa beq 30011f38 <rtems_barrier_create+0x1c>
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
30011f4c: e3110010 tst r1, #16
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
return RTEMS_INVALID_NUMBER;
} else
the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;
30011f50: 03a03001 moveq r3, #1
30011f54: 058d3000 streq r3, [sp]
if ( !id )
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
30011f58: 1a000016 bne 30011fb8 <rtems_barrier_create+0x9c>
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
30011f5c: e59f3078 ldr r3, [pc, #120] ; 30011fdc <rtems_barrier_create+0xc0>
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;
30011f60: e58d2004 str r2, [sp, #4]
30011f64: e5932000 ldr r2, [r3]
++level;
30011f68: e2822001 add r2, r2, #1
_Thread_Dispatch_disable_level = level;
30011f6c: e5832000 str r2, [r3]
* 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 );
30011f70: e59f8068 ldr r8, [pc, #104] ; 30011fe0 <rtems_barrier_create+0xc4>
30011f74: e1a00008 mov r0, r8
30011f78: ebffedb3 bl 3000d64c <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
30011f7c: e2507000 subs r7, r0, #0
30011f80: 0a000012 beq 30011fd0 <rtems_barrier_create+0xb4>
return RTEMS_TOO_MANY;
}
the_barrier->attribute_set = attribute_set;
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
30011f84: e2870014 add r0, r7, #20
30011f88: e1a0100d mov r1, sp
if ( !the_barrier ) {
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_barrier->attribute_set = attribute_set;
30011f8c: e5874010 str r4, [r7, #16]
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
30011f90: eb000216 bl 300127f0 <_CORE_barrier_Initialize>
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
30011f94: e5973008 ldr r3, [r7, #8]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
30011f98: e598201c ldr r2, [r8, #28]
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
30011f9c: e1a01803 lsl r1, r3, #16
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
30011fa0: e7827721 str r7, [r2, r1, lsr #14]
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
30011fa4: e587500c str r5, [r7, #12]
&_Barrier_Information,
&the_barrier->Object,
(Objects_Name) name
);
*id = the_barrier->Object.id;
30011fa8: e5863000 str r3, [r6]
_Thread_Enable_dispatch();
30011fac: ebfff279 bl 3000e998 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
30011fb0: e3a00000 mov r0, #0
30011fb4: eaffffdf b 30011f38 <rtems_barrier_create+0x1c>
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
30011fb8: e3520000 cmp r2, #0 <== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
30011fbc: e3a03000 mov r3, #0 <== NOT EXECUTED
30011fc0: e58d3000 str r3, [sp] <== NOT EXECUTED
if ( maximum_waiters == 0 )
return RTEMS_INVALID_NUMBER;
30011fc4: 03a0000a moveq r0, #10 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
30011fc8: 0affffda beq 30011f38 <rtems_barrier_create+0x1c> <== NOT EXECUTED
30011fcc: eaffffe2 b 30011f5c <rtems_barrier_create+0x40> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
_Thread_Enable_dispatch();
30011fd0: ebfff270 bl 3000e998 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
30011fd4: e3a00005 mov r0, #5 <== NOT EXECUTED
30011fd8: eaffffd6 b 30011f38 <rtems_barrier_create+0x1c> <== NOT EXECUTED
3000c170 <rtems_build_id>:
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
3000c170: e1a00c00 lsl r0, r0, #24 <== NOT EXECUTED
3000c174: e1800d81 orr r0, r0, r1, lsl #27 <== NOT EXECUTED
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
3000c178: e1800003 orr r0, r0, r3 <== NOT EXECUTED
uint32_t node,
uint32_t index
)
{
return _Objects_Build_id( api, class, node, index );
}
3000c17c: e1800802 orr r0, r0, r2, lsl #16 <== NOT EXECUTED
3000c180: e12fff1e bx lr <== NOT EXECUTED
3000c184 <rtems_build_name>:
char C1,
char C2,
char C3,
char C4
)
{
3000c184: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED
3000c188: e1a02402 lsl r2, r2, #8 <== NOT EXECUTED
return _Objects_Build_name( C1, C2, C3, C4 );
3000c18c: e20118ff and r1, r1, #16711680 ; 0xff0000 <== NOT EXECUTED
3000c190: e1811c00 orr r1, r1, r0, lsl #24 <== NOT EXECUTED
3000c194: e2022cff and r2, r2, #65280 ; 0xff00 <== NOT EXECUTED
char C1,
char C2,
char C3,
char C4
)
{
3000c198: e20330ff and r3, r3, #255 ; 0xff <== NOT EXECUTED
return _Objects_Build_name( C1, C2, C3, C4 );
3000c19c: e1811002 orr r1, r1, r2 <== NOT EXECUTED
}
3000c1a0: e1810003 orr r0, r1, r3 <== NOT EXECUTED
3000c1a4: e12fff1e bx lr <== NOT EXECUTED
3000b588 <rtems_chain_append_with_notification>:
rtems_chain_control *chain,
rtems_chain_node *node,
rtems_id task,
rtems_event_set events
)
{
3000b588: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
3000b58c: e1a04002 mov r4, r2 <== NOT EXECUTED
3000b590: e1a05003 mov r5, r3 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool rtems_chain_append_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node *node
)
{
return _Chain_Append_with_empty_check( chain, node );
3000b594: eb000151 bl 3000bae0 <_Chain_Append_with_empty_check> <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool was_empty = rtems_chain_append_with_empty_check( chain, node );
if ( was_empty ) {
3000b598: e3500000 cmp r0, #0 <== NOT EXECUTED
3000b59c: 08bd8030 popeq {r4, r5, pc} <== NOT EXECUTED
sc = rtems_event_send( task, events );
3000b5a0: e1a00004 mov r0, r4 <== NOT EXECUTED
3000b5a4: e1a01005 mov r1, r5 <== NOT EXECUTED
}
return sc;
}
3000b5a8: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool was_empty = rtems_chain_append_with_empty_check( chain, node );
if ( was_empty ) {
sc = rtems_event_send( task, events );
3000b5ac: eafffd77 b 3000ab90 <rtems_event_send> <== NOT EXECUTED
3000b5b0 <rtems_chain_get_with_notification>:
rtems_chain_control *chain,
rtems_id task,
rtems_event_set events,
rtems_chain_node **node
)
{
3000b5b0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
3000b5b4: e1a04001 mov r4, r1 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool rtems_chain_get_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node **node
)
{
return _Chain_Get_with_empty_check( chain, node );
3000b5b8: e1a01003 mov r1, r3 <== NOT EXECUTED
3000b5bc: e1a05002 mov r5, r2 <== NOT EXECUTED
3000b5c0: eb000162 bl 3000bb50 <_Chain_Get_with_empty_check> <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool is_empty = rtems_chain_get_with_empty_check( chain, node );
if ( is_empty ) {
3000b5c4: e3500000 cmp r0, #0 <== NOT EXECUTED
3000b5c8: 08bd8030 popeq {r4, r5, pc} <== NOT EXECUTED
sc = rtems_event_send( task, events );
3000b5cc: e1a00004 mov r0, r4 <== NOT EXECUTED
3000b5d0: e1a01005 mov r1, r5 <== NOT EXECUTED
}
return sc;
}
3000b5d4: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool is_empty = rtems_chain_get_with_empty_check( chain, node );
if ( is_empty ) {
sc = rtems_event_send( task, events );
3000b5d8: eafffd6c b 3000ab90 <rtems_event_send> <== NOT EXECUTED
3000b5dc <rtems_chain_get_with_wait>:
rtems_chain_control *chain,
rtems_event_set events,
rtems_interval timeout,
rtems_chain_node **node_ptr
)
{
3000b5dc: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
3000b5e0: e1a07000 mov r7, r0 <== NOT EXECUTED
3000b5e4: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
3000b5e8: e1a06001 mov r6, r1 <== NOT EXECUTED
3000b5ec: e1a05002 mov r5, r2 <== NOT EXECUTED
3000b5f0: e1a08003 mov r8, r3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
3000b5f4: e1a00007 mov r0, r7 <== NOT EXECUTED
3000b5f8: eb000169 bl 3000bba4 <_Chain_Get> <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_chain_node *node = NULL;
while (
sc == RTEMS_SUCCESSFUL
&& (node = rtems_chain_get( chain )) == NULL
3000b5fc: e2504000 subs r4, r0, #0 <== NOT EXECUTED
) {
rtems_event_set out;
sc = rtems_event_receive(
3000b600: e1a02005 mov r2, r5 <== NOT EXECUTED
3000b604: e1a0300d mov r3, sp <== NOT EXECUTED
3000b608: e1a01004 mov r1, r4 <== NOT EXECUTED
3000b60c: e1a00006 mov r0, r6 <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_chain_node *node = NULL;
while (
sc == RTEMS_SUCCESSFUL
&& (node = rtems_chain_get( chain )) == NULL
3000b610: 1a000005 bne 3000b62c <rtems_chain_get_with_wait+0x50> <== NOT EXECUTED
) {
rtems_event_set out;
sc = rtems_event_receive(
3000b614: ebfffcfa bl 3000aa04 <rtems_event_receive> <== NOT EXECUTED
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_chain_node *node = NULL;
while (
3000b618: e3500000 cmp r0, #0 <== NOT EXECUTED
3000b61c: 0afffff4 beq 3000b5f4 <rtems_chain_get_with_wait+0x18> <== NOT EXECUTED
timeout,
&out
);
}
*node_ptr = node;
3000b620: e5884000 str r4, [r8] <== NOT EXECUTED
return sc;
}
3000b624: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000b628: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_chain_node *node = NULL;
while (
sc == RTEMS_SUCCESSFUL
&& (node = rtems_chain_get( chain )) == NULL
3000b62c: e3a00000 mov r0, #0 <== NOT EXECUTED
3000b630: eafffffa b 3000b620 <rtems_chain_get_with_wait+0x44> <== NOT EXECUTED
3000b634 <rtems_chain_prepend_with_notification>:
rtems_chain_control *chain,
rtems_chain_node *node,
rtems_id task,
rtems_event_set events
)
{
3000b634: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
3000b638: e1a04002 mov r4, r2 <== NOT EXECUTED
3000b63c: e1a05003 mov r5, r3 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool rtems_chain_prepend_with_empty_check(
rtems_chain_control *chain,
rtems_chain_node *node
)
{
return _Chain_Prepend_with_empty_check( chain, node );
3000b640: eb000187 bl 3000bc64 <_Chain_Prepend_with_empty_check> <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool was_empty = rtems_chain_prepend_with_empty_check( chain, node );
if (was_empty) {
3000b644: e3500000 cmp r0, #0 <== NOT EXECUTED
3000b648: 08bd8030 popeq {r4, r5, pc} <== NOT EXECUTED
sc = rtems_event_send( task, events );
3000b64c: e1a00004 mov r0, r4 <== NOT EXECUTED
3000b650: e1a01005 mov r1, r5 <== NOT EXECUTED
}
return sc;
}
3000b654: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
bool was_empty = rtems_chain_prepend_with_empty_check( chain, node );
if (was_empty) {
sc = rtems_event_send( task, events );
3000b658: eafffd4c b 3000ab90 <rtems_event_send> <== NOT EXECUTED
3000b238 <rtems_clock_get>:
rtems_status_code rtems_clock_get(
rtems_clock_get_options option,
void *time_buffer
)
{
3000b238: e92d4010 push {r4, lr} <== NOT EXECUTED
if ( !time_buffer )
3000b23c: e2514000 subs r4, r1, #0 <== NOT EXECUTED
3000b240: 0a00000c beq 3000b278 <rtems_clock_get+0x40> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( option == RTEMS_CLOCK_GET_TOD )
3000b244: e3500000 cmp r0, #0 <== NOT EXECUTED
3000b248: 0a00000d beq 3000b284 <rtems_clock_get+0x4c> <== NOT EXECUTED
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH )
3000b24c: e3500001 cmp r0, #1 <== NOT EXECUTED
3000b250: 0a00000e beq 3000b290 <rtems_clock_get+0x58> <== NOT EXECUTED
return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer);
if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) {
3000b254: e3500002 cmp r0, #2 <== NOT EXECUTED
3000b258: 0a00000f beq 3000b29c <rtems_clock_get+0x64> <== NOT EXECUTED
*interval = rtems_clock_get_ticks_since_boot();
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) {
3000b25c: e3500003 cmp r0, #3 <== NOT EXECUTED
3000b260: 0a000011 beq 3000b2ac <rtems_clock_get+0x74> <== NOT EXECUTED
*interval = rtems_clock_get_ticks_per_second();
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
3000b264: e3500004 cmp r0, #4 <== NOT EXECUTED
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
3000b268: 13a0300a movne r3, #10 <== NOT EXECUTED
*interval = rtems_clock_get_ticks_per_second();
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
3000b26c: 0a000012 beq 3000b2bc <rtems_clock_get+0x84> <== NOT EXECUTED
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
}
3000b270: e1a00003 mov r0, r3 <== NOT EXECUTED
3000b274: e8bd8010 pop {r4, pc} <== NOT EXECUTED
rtems_clock_get_options option,
void *time_buffer
)
{
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
3000b278: e3a03009 mov r3, #9 <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
}
3000b27c: e1a00003 mov r0, r3 <== NOT EXECUTED
3000b280: e8bd8010 pop {r4, pc} <== NOT EXECUTED
{
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
if ( option == RTEMS_CLOCK_GET_TOD )
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
3000b284: e1a00004 mov r0, r4 <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
}
3000b288: e8bd4010 pop {r4, lr} <== NOT EXECUTED
{
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
if ( option == RTEMS_CLOCK_GET_TOD )
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
3000b28c: ea00002e b 3000b34c <rtems_clock_get_tod> <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH )
return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer);
3000b290: e1a00004 mov r0, r4 <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
}
3000b294: e8bd4010 pop {r4, lr} <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_TOD )
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH )
return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer);
3000b298: ea00000a b 3000b2c8 <rtems_clock_get_seconds_since_epoch> <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) {
rtems_interval *interval = (rtems_interval *)time_buffer;
*interval = rtems_clock_get_ticks_since_boot();
3000b29c: eb000026 bl 3000b33c <rtems_clock_get_ticks_since_boot> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3000b2a0: e3a03000 mov r3, #0 <== NOT EXECUTED
return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer);
if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) {
rtems_interval *interval = (rtems_interval *)time_buffer;
*interval = rtems_clock_get_ticks_since_boot();
3000b2a4: e5840000 str r0, [r4] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3000b2a8: eafffff0 b 3000b270 <rtems_clock_get+0x38> <== NOT EXECUTED
}
if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) {
rtems_interval *interval = (rtems_interval *)time_buffer;
*interval = rtems_clock_get_ticks_per_second();
3000b2ac: eb00001a bl 3000b31c <rtems_clock_get_ticks_per_second> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3000b2b0: e3a03000 mov r3, #0 <== NOT EXECUTED
}
if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) {
rtems_interval *interval = (rtems_interval *)time_buffer;
*interval = rtems_clock_get_ticks_per_second();
3000b2b4: e5840000 str r0, [r4] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3000b2b8: eaffffec b 3000b270 <rtems_clock_get+0x38> <== NOT EXECUTED
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
3000b2bc: e1a00004 mov r0, r4 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
3000b2c0: e8bd4010 pop {r4, lr} <== NOT EXECUTED
*interval = rtems_clock_get_ticks_per_second();
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
3000b2c4: ea00005a b 3000b434 <rtems_clock_get_tod_timeval> <== NOT EXECUTED
3000b1d8 <rtems_clock_get_seconds_since_epoch>:
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_seconds_since_epoch(
rtems_interval *the_interval
)
{
3000b1d8: e92d4010 push {r4, lr}
if ( !the_interval )
3000b1dc: e2504000 subs r4, r0, #0
return RTEMS_INVALID_ADDRESS;
3000b1e0: 03a03009 moveq r3, #9
rtems_status_code rtems_clock_get_seconds_since_epoch(
rtems_interval *the_interval
)
{
if ( !the_interval )
3000b1e4: 0a000004 beq 3000b1fc <rtems_clock_get_seconds_since_epoch+0x24>
return RTEMS_INVALID_ADDRESS;
if ( !_TOD.is_set )
3000b1e8: e59f3034 ldr r3, [pc, #52] ; 3000b224 <rtems_clock_get_seconds_since_epoch+0x4c>
3000b1ec: e5d32014 ldrb r2, [r3, #20]
3000b1f0: e3520000 cmp r2, #0
return RTEMS_NOT_DEFINED;
3000b1f4: 03a0300b moveq r3, #11
)
{
if ( !the_interval )
return RTEMS_INVALID_ADDRESS;
if ( !_TOD.is_set )
3000b1f8: 1a000001 bne 3000b204 <rtems_clock_get_seconds_since_epoch+0x2c>
return RTEMS_NOT_DEFINED;
*the_interval = _TOD_Seconds_since_epoch();
return RTEMS_SUCCESSFUL;
}
3000b1fc: e1a00003 mov r0, r3 <== NOT EXECUTED
3000b200: e8bd8010 pop {r4, pc} <== NOT EXECUTED
static inline uint32_t _Timestamp64_implementation_Get_seconds(
const Timestamp64_Control *_time
)
{
return (uint32_t) (*_time / 1000000000L);
3000b204: e8930003 ldm r3, {r0, r1}
3000b208: e59f2018 ldr r2, [pc, #24] ; 3000b228 <rtems_clock_get_seconds_since_epoch+0x50>
3000b20c: e3a03000 mov r3, #0
3000b210: eb004911 bl 3001d65c <__divdi3>
if ( !_TOD.is_set )
return RTEMS_NOT_DEFINED;
*the_interval = _TOD_Seconds_since_epoch();
return RTEMS_SUCCESSFUL;
3000b214: e3a03000 mov r3, #0
3000b218: e5840000 str r0, [r4]
}
3000b21c: e1a00003 mov r0, r3
3000b220: e8bd8010 pop {r4, pc}
3000a1e4 <rtems_clock_get_ticks_per_second>:
#include <rtems/score/tod.h>
#include <rtems/score/watchdog.h>
rtems_interval rtems_clock_get_ticks_per_second(void)
{
return TOD_MICROSECONDS_PER_SECOND /
3000a1e4: e59f3010 ldr r3, [pc, #16] ; 3000a1fc <rtems_clock_get_ticks_per_second+0x18><== NOT EXECUTED
#include <rtems/score/thread.h>
#include <rtems/score/tod.h>
#include <rtems/score/watchdog.h>
rtems_interval rtems_clock_get_ticks_per_second(void)
{
3000a1e8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
return TOD_MICROSECONDS_PER_SECOND /
3000a1ec: e593100c ldr r1, [r3, #12] <== NOT EXECUTED
3000a1f0: e59f0008 ldr r0, [pc, #8] ; 3000a200 <rtems_clock_get_ticks_per_second+0x1c><== NOT EXECUTED
3000a1f4: eb00420b bl 3001aa28 <__aeabi_uidiv> <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick();
}
3000a1f8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
3000a204 <rtems_clock_get_ticks_since_boot>:
#include <rtems/score/tod.h>
#include <rtems/score/watchdog.h>
rtems_interval rtems_clock_get_ticks_since_boot(void)
{
return _Watchdog_Ticks_since_boot;
3000a204: e59f3004 ldr r3, [pc, #4] ; 3000a210 <rtems_clock_get_ticks_since_boot+0xc><== NOT EXECUTED
3000a208: e5930000 ldr r0, [r3] <== NOT EXECUTED
}
3000a20c: e12fff1e bx lr <== NOT EXECUTED
300185fc <rtems_clock_get_tod_timeval>:
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_tod_timeval(
struct timeval *time
)
{
300185fc: e92d40d0 push {r4, r6, r7, lr} <== NOT EXECUTED
if ( !time )
30018600: e2504000 subs r4, r0, #0 <== NOT EXECUTED
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_tod_timeval(
struct timeval *time
)
{
30018604: e24dd008 sub sp, sp, #8 <== NOT EXECUTED
if ( !time )
return RTEMS_INVALID_ADDRESS;
30018608: 03a03009 moveq r3, #9 <== NOT EXECUTED
rtems_status_code rtems_clock_get_tod_timeval(
struct timeval *time
)
{
if ( !time )
3001860c: 0a000004 beq 30018624 <rtems_clock_get_tod_timeval+0x28> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD.is_set )
30018610: e59f1068 ldr r1, [pc, #104] ; 30018680 <rtems_clock_get_tod_timeval+0x84><== NOT EXECUTED
30018614: e5d13014 ldrb r3, [r1, #20] <== NOT EXECUTED
30018618: e3530000 cmp r3, #0 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
3001861c: 03a0300b moveq r3, #11 <== NOT EXECUTED
)
{
if ( !time )
return RTEMS_INVALID_ADDRESS;
if ( !_TOD.is_set )
30018620: 1a000002 bne 30018630 <rtems_clock_get_tod_timeval+0x34> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
_TOD_Get_timeval( time );
return RTEMS_SUCCESSFUL;
}
30018624: e1a00003 mov r0, r3 <== NOT EXECUTED
30018628: e28dd008 add sp, sp, #8 <== NOT EXECUTED
3001862c: e8bd80d0 pop {r4, r6, r7, pc} <== NOT EXECUTED
)
{
Timestamp_Control snapshot_as_timestamp;
Timestamp_Control *snapshot_as_timestamp_ptr;
snapshot_as_timestamp_ptr =
30018630: e1a0000d mov r0, sp <== NOT EXECUTED
30018634: ebffd4e5 bl 3000d9d0 <_TOD_Get_with_nanoseconds> <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timeval(
const Timestamp64_Control *_timestamp,
struct timeval *_timeval
)
{
_timeval->tv_sec = (time_t) (*_timestamp / 1000000000U);
30018638: e59f2044 ldr r2, [pc, #68] ; 30018684 <rtems_clock_get_tod_timeval+0x88><== NOT EXECUTED
3001863c: e89000c0 ldm r0, {r6, r7} <== NOT EXECUTED
30018640: e3a03000 mov r3, #0 <== NOT EXECUTED
30018644: e1a00006 mov r0, r6 <== NOT EXECUTED
30018648: e1a01007 mov r1, r7 <== NOT EXECUTED
3001864c: ebffb4b0 bl 30005914 <__divdi3> <== NOT EXECUTED
_timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U);
30018650: e59f202c ldr r2, [pc, #44] ; 30018684 <rtems_clock_get_tod_timeval+0x88><== NOT EXECUTED
30018654: e3a03000 mov r3, #0 <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timeval(
const Timestamp64_Control *_timestamp,
struct timeval *_timeval
)
{
_timeval->tv_sec = (time_t) (*_timestamp / 1000000000U);
30018658: e5840000 str r0, [r4] <== NOT EXECUTED
_timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U);
3001865c: e1a01007 mov r1, r7 <== NOT EXECUTED
30018660: e1a00006 mov r0, r6 <== NOT EXECUTED
30018664: eb004e18 bl 3002becc <__moddi3> <== NOT EXECUTED
30018668: e3a03000 mov r3, #0 <== NOT EXECUTED
3001866c: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED
30018670: ebffb4a7 bl 30005914 <__divdi3> <== NOT EXECUTED
if ( !_TOD.is_set )
return RTEMS_NOT_DEFINED;
_TOD_Get_timeval( time );
return RTEMS_SUCCESSFUL;
30018674: e3a03000 mov r3, #0 <== NOT EXECUTED
30018678: e5840004 str r0, [r4, #4] <== NOT EXECUTED
3001867c: eaffffe8 b 30018624 <rtems_clock_get_tod_timeval+0x28> <== NOT EXECUTED
300292ac <rtems_clock_get_uptime>:
*/
rtems_status_code rtems_clock_get_uptime(
struct timespec *uptime
)
{
if ( !uptime )
300292ac: e3500000 cmp r0, #0 <== NOT EXECUTED
* error code - if unsuccessful
*/
rtems_status_code rtems_clock_get_uptime(
struct timespec *uptime
)
{
300292b0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( !uptime )
300292b4: 0a000002 beq 300292c4 <rtems_clock_get_uptime+0x18> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_TOD_Get_uptime_as_timespec( uptime );
300292b8: eb00025c bl 30029c30 <_TOD_Get_uptime_as_timespec> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
300292bc: e3a00000 mov r0, #0 <== NOT EXECUTED
300292c0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
rtems_status_code rtems_clock_get_uptime(
struct timespec *uptime
)
{
if ( !uptime )
return RTEMS_INVALID_ADDRESS;
300292c4: e3a00009 mov r0, #9 <== NOT EXECUTED
_TOD_Get_uptime_as_timespec( uptime );
return RTEMS_SUCCESSFUL;
}
300292c8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
30017988 <rtems_clock_get_uptime_seconds>:
#endif
#include <rtems/rtems/clock.h>
time_t rtems_clock_get_uptime_seconds( void )
{
30017988: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3001798c: e10f3000 mrs r3, CPSR <== NOT EXECUTED
30017990: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED
30017994: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
Timestamp_Control snapshot_as_timestamp;
struct timespec snapshot_as_timespec;
ISR_Level level;
_ISR_Disable( level );
snapshot_as_timestamp = _TOD.uptime;
30017998: e59f2018 ldr r2, [pc, #24] ; 300179b8 <rtems_clock_get_uptime_seconds+0x30><== NOT EXECUTED
3001799c: e2821008 add r1, r2, #8 <== NOT EXECUTED
300179a0: e8910003 ldm r1, {r0, r1} <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
300179a4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300179a8: e59f200c ldr r2, [pc, #12] ; 300179bc <rtems_clock_get_uptime_seconds+0x34><== NOT EXECUTED
300179ac: e3a03000 mov r3, #0 <== NOT EXECUTED
300179b0: eb005aec bl 3002e568 <__divdi3> <== NOT EXECUTED
_ISR_Enable( level );
_Timestamp_To_timespec( &snapshot_as_timestamp, &snapshot_as_timespec );
return snapshot_as_timespec.tv_sec;
}
300179b4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
300179c0 <rtems_clock_get_uptime_timeval>:
#endif
#include <rtems/rtems/clock.h>
void rtems_clock_get_uptime_timeval( struct timeval *uptime )
{
300179c0: e92d40d0 push {r4, r6, r7, lr} <== NOT EXECUTED
300179c4: e24dd008 sub sp, sp, #8 <== NOT EXECUTED
300179c8: e1a04000 mov r4, r0 <== NOT EXECUTED
*/
static inline void _TOD_Get_uptime(
Timestamp_Control *time
)
{
_TOD_Get_with_nanoseconds( time, &_TOD.uptime );
300179cc: e59f104c ldr r1, [pc, #76] ; 30017a20 <rtems_clock_get_uptime_timeval+0x60><== NOT EXECUTED
300179d0: e1a0000d mov r0, sp <== NOT EXECUTED
300179d4: eb001269 bl 3001c380 <_TOD_Get_with_nanoseconds> <== NOT EXECUTED
Timestamp_Control snapshot_as_timestamp;
_TOD_Get_uptime( &snapshot_as_timestamp );
_Timestamp_To_timeval( &snapshot_as_timestamp, uptime );
300179d8: e89d00c0 ldm sp, {r6, r7} <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timeval(
const Timestamp64_Control *_timestamp,
struct timeval *_timeval
)
{
_timeval->tv_sec = (time_t) (*_timestamp / 1000000000U);
300179dc: e59f2040 ldr r2, [pc, #64] ; 30017a24 <rtems_clock_get_uptime_timeval+0x64><== NOT EXECUTED
300179e0: e3a03000 mov r3, #0 <== NOT EXECUTED
300179e4: e1a00006 mov r0, r6 <== NOT EXECUTED
300179e8: e1a01007 mov r1, r7 <== NOT EXECUTED
300179ec: eb005add bl 3002e568 <__divdi3> <== NOT EXECUTED
_timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U);
300179f0: e59f202c ldr r2, [pc, #44] ; 30017a24 <rtems_clock_get_uptime_timeval+0x64><== NOT EXECUTED
300179f4: e3a03000 mov r3, #0 <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timeval(
const Timestamp64_Control *_timestamp,
struct timeval *_timeval
)
{
_timeval->tv_sec = (time_t) (*_timestamp / 1000000000U);
300179f8: e5840000 str r0, [r4] <== NOT EXECUTED
_timeval->tv_usec = (suseconds_t) ((*_timestamp % 1000000000U) / 1000U);
300179fc: e1a01007 mov r1, r7 <== NOT EXECUTED
30017a00: e1a00006 mov r0, r6 <== NOT EXECUTED
30017a04: eb005c12 bl 3002ea54 <__moddi3> <== NOT EXECUTED
30017a08: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED
30017a0c: e3a03000 mov r3, #0 <== NOT EXECUTED
30017a10: eb005ad4 bl 3002e568 <__divdi3> <== NOT EXECUTED
30017a14: e5840004 str r0, [r4, #4] <== NOT EXECUTED
}
30017a18: e28dd008 add sp, sp, #8 <== NOT EXECUTED
30017a1c: e8bd80d0 pop {r4, r6, r7, pc} <== NOT EXECUTED
3000a230 <rtems_clock_tick>:
#include <rtems/score/thread.h>
#include <rtems/score/tod.h>
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_tick( void )
{
3000a230: e52de004 push {lr} ; (str lr, [sp, #-4]!)
_TOD_Tickle_ticks();
3000a234: eb000567 bl 3000b7d8 <_TOD_Tickle_ticks>
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void )
{
_Watchdog_Tickle( &_Watchdog_Ticks_chain );
3000a238: e59f0034 ldr r0, [pc, #52] ; 3000a274 <rtems_clock_tick+0x44>
3000a23c: eb000f38 bl 3000df24 <_Watchdog_Tickle>
* scheduler which support standard RTEMS features, this includes
* time-slicing management.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Tick( void )
{
_Scheduler.Operations.tick();
3000a240: e59f3030 ldr r3, [pc, #48] ; 3000a278 <rtems_clock_tick+0x48>
3000a244: e1a0e00f mov lr, pc
3000a248: e593f038 ldr pc, [r3, #56] ; 0x38
* otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void )
{
return ( _Thread_Dispatch_necessary );
3000a24c: e59f3028 ldr r3, [pc, #40] ; 3000a27c <rtems_clock_tick+0x4c>
3000a250: e5d33004 ldrb r3, [r3, #4]
_Watchdog_Tickle_ticks();
_Scheduler_Tick();
if ( _Thread_Is_context_switch_necessary() &&
3000a254: e3530000 cmp r3, #0
3000a258: 0a000003 beq 3000a26c <rtems_clock_tick+0x3c>
* This routine returns true if thread dispatch indicates
* that we are in a critical section.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Dispatch_in_critical_section(void)
{
if ( _Thread_Dispatch_disable_level == 0 )
3000a25c: e59f301c ldr r3, [pc, #28] ; 3000a280 <rtems_clock_tick+0x50><== NOT EXECUTED
3000a260: e5933000 ldr r3, [r3] <== NOT EXECUTED
3000a264: e3530000 cmp r3, #0 <== NOT EXECUTED
_Thread_Is_dispatching_enabled() )
_Thread_Dispatch();
3000a268: 0b000b29 bleq 3000cf14 <_Thread_Dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
3000a26c: e3a00000 mov r0, #0
3000a270: e49df004 pop {pc} ; (ldr pc, [sp], #4)
30014120 <rtems_event_system_receive>:
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
30014120: e92d4070 push {r4, r5, r6, lr}
rtems_status_code sc;
if ( event_out != NULL ) {
30014124: e2535000 subs r5, r3, #0
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
30014128: e1a0c000 mov ip, r0
3001412c: e24dd010 sub sp, sp, #16
} else {
*event_out = event->pending_events;
sc = RTEMS_SUCCESSFUL;
}
} else {
sc = RTEMS_INVALID_ADDRESS;
30014130: 03a00009 moveq r0, #9
rtems_event_set *event_out
)
{
rtems_status_code sc;
if ( event_out != NULL ) {
30014134: 0a000007 beq 30014158 <rtems_event_system_receive+0x38>
Thread_Control *executing = _Thread_Executing;
30014138: e59f4058 ldr r4, [pc, #88] ; 30014198 <rtems_event_system_receive+0x78>
RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
Event_Control *event = &api->System_event;
if ( !_Event_sets_Is_empty( event_in ) ) {
3001413c: e35c0000 cmp ip, #0
)
{
rtems_status_code sc;
if ( event_out != NULL ) {
Thread_Control *executing = _Thread_Executing;
30014140: e5944008 ldr r4, [r4, #8]
RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
30014144: e59460ec ldr r6, [r4, #236] ; 0xec
Event_Control *event = &api->System_event;
if ( !_Event_sets_Is_empty( event_in ) ) {
30014148: 1a000004 bne 30014160 <rtems_event_system_receive+0x40>
);
_Thread_Enable_dispatch();
sc = executing->Wait.return_code;
} else {
*event_out = event->pending_events;
3001414c: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED
sc = RTEMS_SUCCESSFUL;
30014150: e1a0000c mov r0, ip <== NOT EXECUTED
);
_Thread_Enable_dispatch();
sc = executing->Wait.return_code;
} else {
*event_out = event->pending_events;
30014154: e5853000 str r3, [r5] <== NOT EXECUTED
} else {
sc = RTEMS_INVALID_ADDRESS;
}
return sc;
}
30014158: e28dd010 add sp, sp, #16
3001415c: e8bd8070 pop {r4, r5, r6, pc}
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
30014160: e59fc034 ldr ip, [pc, #52] ; 3001419c <rtems_event_system_receive+0x7c>
30014164: e59ce000 ldr lr, [ip]
++level;
30014168: e28ee001 add lr, lr, #1
_Thread_Dispatch_disable_level = level;
3001416c: e58ce000 str lr, [ip]
RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
Event_Control *event = &api->System_event;
if ( !_Event_sets_Is_empty( event_in ) ) {
_Thread_Disable_dispatch();
_Event_Seize(
30014170: e59fc028 ldr ip, [pc, #40] ; 300141a0 <rtems_event_system_receive+0x80>
rtems_status_code sc;
if ( event_out != NULL ) {
Thread_Control *executing = _Thread_Executing;
RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
Event_Control *event = &api->System_event;
30014174: e2866004 add r6, r6, #4
if ( !_Event_sets_Is_empty( event_in ) ) {
_Thread_Disable_dispatch();
_Event_Seize(
30014178: e58dc008 str ip, [sp, #8]
3001417c: e3a0c701 mov ip, #262144 ; 0x40000
30014180: e58dc00c str ip, [sp, #12]
30014184: e88d0050 stm sp, {r4, r6}
30014188: ebffde36 bl 3000ba68 <_Event_Seize>
executing,
event,
&_System_event_Sync_state,
STATES_WAITING_FOR_SYSTEM_EVENT
);
_Thread_Enable_dispatch();
3001418c: ebffe9e6 bl 3000e92c <_Thread_Enable_dispatch>
sc = executing->Wait.return_code;
30014190: e5940034 ldr r0, [r4, #52] ; 0x34
30014194: eaffffef b 30014158 <rtems_event_system_receive+0x38>
30010918 <rtems_extension_create>:
rtems_status_code rtems_extension_create(
rtems_name name,
const rtems_extensions_table *extension_table,
rtems_id *id
)
{
30010918: e92d40f0 push {r4, r5, r6, r7, lr}
Extension_Control *the_extension;
if ( !id )
3001091c: e2525000 subs r5, r2, #0
rtems_status_code rtems_extension_create(
rtems_name name,
const rtems_extensions_table *extension_table,
rtems_id *id
)
{
30010920: e1a04000 mov r4, r0
30010924: e24dd004 sub sp, sp, #4
Extension_Control *the_extension;
if ( !id )
return RTEMS_INVALID_ADDRESS;
30010928: 03a00009 moveq r0, #9
rtems_id *id
)
{
Extension_Control *the_extension;
if ( !id )
3001092c: 0a000002 beq 3001093c <rtems_extension_create+0x24>
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
30010930: e3540000 cmp r4, #0
return RTEMS_INVALID_NAME;
30010934: 03a00003 moveq r0, #3
Extension_Control *the_extension;
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
30010938: 1a000001 bne 30010944 <rtems_extension_create+0x2c>
);
*id = the_extension->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
3001093c: e28dd004 add sp, sp, #4
30010940: e8bd80f0 pop {r4, r5, r6, r7, pc}
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
30010944: e59f3074 ldr r3, [pc, #116] ; 300109c0 <rtems_extension_create+0xa8>
30010948: e5932000 ldr r2, [r3]
++level;
3001094c: e2822001 add r2, r2, #1
_Thread_Dispatch_disable_level = level;
30010950: e5832000 str r2, [r3]
#ifndef __EXTENSION_MANAGER_inl
#define __EXTENSION_MANAGER_inl
RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void )
{
return (Extension_Control *) _Objects_Allocate( &_Extension_Information );
30010954: e59f7068 ldr r7, [pc, #104] ; 300109c4 <rtems_extension_create+0xac>
30010958: e58d1000 str r1, [sp]
3001095c: e1a00007 mov r0, r7
30010960: eb000389 bl 3001178c <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_extension = _Extension_Allocate();
if ( !the_extension ) {
30010964: e2506000 subs r6, r0, #0
30010968: e59d1000 ldr r1, [sp]
3001096c: 0a000010 beq 300109b4 <rtems_extension_create+0x9c>
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(
User_extensions_Control *extension,
const User_extensions_Table *extension_table
)
{
extension->Callouts = *extension_table;
30010970: e286c024 add ip, r6, #36 ; 0x24
30010974: e1a0e001 mov lr, r1
30010978: e8be000f ldm lr!, {r0, r1, r2, r3}
3001097c: e8ac000f stmia ip!, {r0, r1, r2, r3}
30010980: e89e000f ldm lr, {r0, r1, r2, r3}
30010984: e88c000f stm ip, {r0, r1, r2, r3}
_User_extensions_Add_set( extension );
30010988: e2860010 add r0, r6, #16
3001098c: eb000b10 bl 300135d4 <_User_extensions_Add_set>
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
30010990: e5963008 ldr r3, [r6, #8]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
30010994: e597201c ldr r2, [r7, #28]
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
30010998: e1a01803 lsl r1, r3, #16
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
3001099c: e7826721 str r6, [r2, r1, lsr #14]
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
300109a0: e586400c str r4, [r6, #12]
&_Extension_Information,
&the_extension->Object,
(Objects_Name) name
);
*id = the_extension->Object.id;
300109a4: e5853000 str r3, [r5]
_Thread_Enable_dispatch();
300109a8: eb00088e bl 30012be8 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
300109ac: e3a00000 mov r0, #0
300109b0: eaffffe1 b 3001093c <rtems_extension_create+0x24>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_extension = _Extension_Allocate();
if ( !the_extension ) {
_Thread_Enable_dispatch();
300109b4: eb00088b bl 30012be8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
300109b8: e3a00005 mov r0, #5 <== NOT EXECUTED
300109bc: eaffffde b 3001093c <rtems_extension_create+0x24> <== NOT EXECUTED
3000d004 <rtems_extension_ident>:
rtems_status_code rtems_extension_ident(
rtems_name name,
rtems_id *id
)
{
3000d004: e1a02000 mov r2, r0 <== NOT EXECUTED
3000d008: e1a03001 mov r3, r1 <== NOT EXECUTED
3000d00c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
3000d010: e1a01002 mov r1, r2 <== NOT EXECUTED
3000d014: e59f0010 ldr r0, [pc, #16] ; 3000d02c <rtems_extension_ident+0x28><== NOT EXECUTED
3000d018: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED
3000d01c: eb0004e7 bl 3000e3c0 <_Objects_Name_to_id_u32> <== NOT EXECUTED
name,
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
3000d020: e59f3008 ldr r3, [pc, #8] ; 3000d030 <rtems_extension_ident+0x2c><== NOT EXECUTED
}
3000d024: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
3000d028: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
3000cdec <rtems_get_version_string>:
#include <rtems/system.h>
const char *rtems_get_version_string(void)
{
return _RTEMS_version;
}
3000cdec: e59f0000 ldr r0, [pc] ; 3000cdf4 <rtems_get_version_string+0x8><== NOT EXECUTED
3000cdf0: e12fff1e bx lr <== NOT EXECUTED
3000b270 <rtems_interrupt_disable>:
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000b270: e10f0000 mrs r0, CPSR <== NOT EXECUTED
3000b274: e3803080 orr r3, r0, #128 ; 0x80 <== NOT EXECUTED
3000b278: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
rtems_interrupt_level previous_level;
_ISR_Disable( previous_level );
return previous_level;
}
3000b27c: e12fff1e bx lr <== NOT EXECUTED
3000b280 <rtems_interrupt_enable>:
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000b280: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
void rtems_interrupt_enable(
rtems_interrupt_level previous_level
)
{
_ISR_Enable( previous_level );
}
3000b284: e12fff1e bx lr <== NOT EXECUTED
3000b288 <rtems_interrupt_flash>:
static inline void arm_interrupt_flash( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000b288: e10f3000 mrs r3, CPSR <== NOT EXECUTED
3000b28c: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
3000b290: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
void rtems_interrupt_flash(
rtems_interrupt_level previous_level
)
{
_ISR_Flash( previous_level );
}
3000b294: e12fff1e bx lr <== NOT EXECUTED
3000b298 <rtems_interrupt_is_in_progress>:
#undef rtems_interrupt_is_in_progress
bool rtems_interrupt_is_in_progress( void )
{
return _ISR_Is_in_progress();
3000b298: e59f300c ldr r3, [pc, #12] ; 3000b2ac <rtems_interrupt_is_in_progress+0x14><== NOT EXECUTED
3000b29c: e5930000 ldr r0, [r3] <== NOT EXECUTED
}
3000b2a0: e2900000 adds r0, r0, #0 <== NOT EXECUTED
3000b2a4: 13a00001 movne r0, #1 <== NOT EXECUTED
3000b2a8: e12fff1e bx lr <== NOT EXECUTED
3000b2b0 <rtems_interrupt_level_body>:
Modes_Control rtems_interrupt_level_body(
uint32_t level
)
{
return RTEMS_INTERRUPT_LEVEL(level);
}
3000b2b0: e2000080 and r0, r0, #128 ; 0x80 <== NOT EXECUTED
3000b2b4: e12fff1e bx lr <== NOT EXECUTED
3001173c <rtems_io_close>:
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
3001173c: e59fc044 ldr ip, [pc, #68] ; 30011788 <rtems_io_close+0x4c>
rtems_status_code rtems_io_close(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
30011740: e1a03000 mov r3, r0
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
30011744: e59cc000 ldr ip, [ip]
rtems_status_code rtems_io_close(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
30011748: e52de004 push {lr} ; (str lr, [sp, #-4]!)
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
3001174c: e15c0000 cmp ip, r0
return RTEMS_INVALID_NUMBER;
30011750: 93a0000a movls r0, #10
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
30011754: 949df004 popls {pc} ; (ldrls pc, [sp], #4)
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].close_entry;
30011758: e59fc02c ldr ip, [pc, #44] ; 3001178c <rtems_io_close+0x50>
3001175c: e0833083 add r3, r3, r3, lsl #1
30011760: e59cc000 ldr ip, [ip]
30011764: e08c3183 add r3, ip, r3, lsl #3
30011768: e5933008 ldr r3, [r3, #8]
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
3001176c: e3530000 cmp r3, #0
30011770: 0a000002 beq 30011780 <rtems_io_close+0x44>
30011774: e1a0e00f mov lr, pc
30011778: e12fff13 bx r3
3001177c: e49df004 pop {pc} ; (ldr pc, [sp], #4)
30011780: e1a00003 mov r0, r3 <== NOT EXECUTED
}
30011784: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
30011790 <rtems_io_control>:
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
30011790: e59fc044 ldr ip, [pc, #68] ; 300117dc <rtems_io_control+0x4c>
rtems_status_code rtems_io_control(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
30011794: e1a03000 mov r3, r0
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
30011798: e59cc000 ldr ip, [ip]
rtems_status_code rtems_io_control(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
3001179c: e52de004 push {lr} ; (str lr, [sp, #-4]!)
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
300117a0: e15c0000 cmp ip, r0
return RTEMS_INVALID_NUMBER;
300117a4: 93a0000a movls r0, #10
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
300117a8: 949df004 popls {pc} ; (ldrls pc, [sp], #4)
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].control_entry;
300117ac: e59fc02c ldr ip, [pc, #44] ; 300117e0 <rtems_io_control+0x50>
300117b0: e0833083 add r3, r3, r3, lsl #1
300117b4: e59cc000 ldr ip, [ip]
300117b8: e08c3183 add r3, ip, r3, lsl #3
300117bc: e5933014 ldr r3, [r3, #20]
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
300117c0: e3530000 cmp r3, #0
300117c4: 0a000002 beq 300117d4 <rtems_io_control+0x44>
300117c8: e1a0e00f mov lr, pc
300117cc: e12fff13 bx r3
300117d0: e49df004 pop {pc} ; (ldr pc, [sp], #4)
300117d4: e1a00003 mov r0, r3 <== NOT EXECUTED
}
300117d8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
300117e4 <rtems_io_open>:
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
300117e4: e59fc044 ldr ip, [pc, #68] ; 30011830 <rtems_io_open+0x4c>
rtems_status_code rtems_io_open(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
300117e8: e1a03000 mov r3, r0
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
300117ec: e59cc000 ldr ip, [ip]
rtems_status_code rtems_io_open(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
300117f0: e52de004 push {lr} ; (str lr, [sp, #-4]!)
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
300117f4: e15c0000 cmp ip, r0
return RTEMS_INVALID_NUMBER;
300117f8: 93a0000a movls r0, #10
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
300117fc: 949df004 popls {pc} ; (ldrls pc, [sp], #4)
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].open_entry;
30011800: e59fc02c ldr ip, [pc, #44] ; 30011834 <rtems_io_open+0x50>
30011804: e0833083 add r3, r3, r3, lsl #1
30011808: e59cc000 ldr ip, [ip]
3001180c: e08c3183 add r3, ip, r3, lsl #3
30011810: e5933004 ldr r3, [r3, #4]
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
30011814: e3530000 cmp r3, #0
30011818: 0a000002 beq 30011828 <rtems_io_open+0x44>
3001181c: e1a0e00f mov lr, pc
30011820: e12fff13 bx r3
30011824: e49df004 pop {pc} ; (ldr pc, [sp], #4)
30011828: e1a00003 mov r0, r3 <== NOT EXECUTED
}
3001182c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
30011838 <rtems_io_read>:
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
30011838: e59fc044 ldr ip, [pc, #68] ; 30011884 <rtems_io_read+0x4c>
rtems_status_code rtems_io_read(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
3001183c: e1a03000 mov r3, r0
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
30011840: e59cc000 ldr ip, [ip]
rtems_status_code rtems_io_read(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
30011844: e52de004 push {lr} ; (str lr, [sp, #-4]!)
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
30011848: e15c0000 cmp ip, r0
return RTEMS_INVALID_NUMBER;
3001184c: 93a0000a movls r0, #10
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
30011850: 949df004 popls {pc} ; (ldrls pc, [sp], #4)
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].read_entry;
30011854: e59fc02c ldr ip, [pc, #44] ; 30011888 <rtems_io_read+0x50>
30011858: e0833083 add r3, r3, r3, lsl #1
3001185c: e59cc000 ldr ip, [ip]
30011860: e08c3183 add r3, ip, r3, lsl #3
30011864: e593300c ldr r3, [r3, #12]
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
30011868: e3530000 cmp r3, #0
3001186c: 0a000002 beq 3001187c <rtems_io_read+0x44>
30011870: e1a0e00f mov lr, pc
30011874: e12fff13 bx r3
30011878: e49df004 pop {pc} ; (ldr pc, [sp], #4)
3001187c: e1a00003 mov r0, r3 <== NOT EXECUTED
}
30011880: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
3000c7e4 <rtems_io_register_driver>:
rtems_device_major_number *registered_major
)
{
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
3000c7e4: e59fc154 ldr ip, [pc, #340] ; 3000c940 <rtems_io_register_driver+0x15c>
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;
3000c7e8: e59f3154 ldr r3, [pc, #340] ; 3000c944 <rtems_io_register_driver+0x160>
if ( rtems_interrupt_is_in_progress() )
3000c7ec: e59cc000 ldr ip, [ip]
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
)
{
3000c7f0: e92d4030 push {r4, r5, lr}
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
3000c7f4: e35c0000 cmp ip, #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
)
{
3000c7f8: e1a04000 mov r4, r0
rtems_device_major_number major_limit = _IO_Number_of_drivers;
3000c7fc: e5930000 ldr r0, [r3]
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
3000c800: 13a00012 movne r0, #18
rtems_device_major_number *registered_major
)
{
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
3000c804: 18bd8030 popne {r4, r5, pc}
return RTEMS_CALLED_FROM_ISR;
if ( registered_major == NULL )
3000c808: e3520000 cmp r2, #0
3000c80c: 0a00000c beq 3000c844 <rtems_io_register_driver+0x60>
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
if ( driver_table == NULL )
3000c810: e3510000 cmp r1, #0
if ( registered_major == NULL )
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
3000c814: e5820000 str r0, [r2]
if ( driver_table == NULL )
3000c818: 0a000009 beq 3000c844 <rtems_io_register_driver+0x60>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
3000c81c: e591c000 ldr ip, [r1]
3000c820: e35c0000 cmp ip, #0
3000c824: 0a000003 beq 3000c838 <rtems_io_register_driver+0x54>
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
if ( major >= major_limit )
3000c828: e1500004 cmp r0, r4
3000c82c: 8a000006 bhi 3000c84c <rtems_io_register_driver+0x68>
return RTEMS_INVALID_NUMBER;
3000c830: e3a0000a mov r0, #10 <== NOT EXECUTED
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
3000c834: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
3000c838: e591c004 ldr ip, [r1, #4]
3000c83c: e35c0000 cmp ip, #0
3000c840: 1afffff8 bne 3000c828 <rtems_io_register_driver+0x44>
if ( driver_table == NULL )
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
3000c844: e3a00009 mov r0, #9 <== NOT EXECUTED
3000c848: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000c84c: e59f00f4 ldr r0, [pc, #244] ; 3000c948 <rtems_io_register_driver+0x164>
3000c850: e590c000 ldr ip, [r0]
++level;
3000c854: e28cc001 add ip, ip, #1
_Thread_Dispatch_disable_level = level;
3000c858: e580c000 str ip, [r0]
if ( major >= major_limit )
return RTEMS_INVALID_NUMBER;
_Thread_Disable_dispatch();
if ( major == 0 ) {
3000c85c: e3540000 cmp r4, #0
3000c860: 1a000021 bne 3000c8ec <rtems_io_register_driver+0x108>
static rtems_status_code rtems_io_obtain_major_number(
rtems_device_major_number *major
)
{
rtems_device_major_number n = _IO_Number_of_drivers;
3000c864: e593c000 ldr ip, [r3]
rtems_device_major_number m = 0;
/* major is error checked by caller */
for ( m = 0; m < n; ++m ) {
3000c868: e35c0000 cmp ip, #0
3000c86c: 0a00002a beq 3000c91c <rtems_io_register_driver+0x138>
3000c870: e59fe0d4 ldr lr, [pc, #212] ; 3000c94c <rtems_io_register_driver+0x168>
3000c874: e59e3000 ldr r3, [lr]
3000c878: ea000003 b 3000c88c <rtems_io_register_driver+0xa8>
3000c87c: e2844001 add r4, r4, #1
3000c880: e154000c cmp r4, ip
3000c884: e2833018 add r3, r3, #24
3000c888: 0a000023 beq 3000c91c <rtems_io_register_driver+0x138>
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
3000c88c: e5930000 ldr r0, [r3]
3000c890: e3500000 cmp r0, #0
3000c894: 1afffff8 bne 3000c87c <rtems_io_register_driver+0x98>
3000c898: e5930004 ldr r0, [r3, #4]
3000c89c: e3500000 cmp r0, #0
3000c8a0: 1afffff5 bne 3000c87c <rtems_io_register_driver+0x98>
}
/* Assigns invalid value in case of failure */
*major = m;
if ( m != n )
3000c8a4: e15c0004 cmp ip, r4
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
3000c8a8: e5824000 str r4, [r2]
3000c8ac: 11a03084 lslne r3, r4, #1
if ( m != n )
3000c8b0: 0a00001a beq 3000c920 <rtems_io_register_driver+0x13c>
}
*registered_major = major;
}
_IO_Driver_address_table [major] = *driver_table;
3000c8b4: e59e2000 ldr r2, [lr]
3000c8b8: e0833004 add r3, r3, r4
3000c8bc: e082c183 add ip, r2, r3, lsl #3
3000c8c0: e1a0e001 mov lr, r1
3000c8c4: e8be000f ldm lr!, {r0, r1, r2, r3}
3000c8c8: e8ac000f stmia ip!, {r0, r1, r2, r3}
3000c8cc: e89e0003 ldm lr, {r0, r1}
3000c8d0: e88c0003 stm ip, {r0, r1}
_Thread_Enable_dispatch();
3000c8d4: eb000814 bl 3000e92c <_Thread_Enable_dispatch>
return rtems_io_initialize( major, 0, NULL );
3000c8d8: e3a01000 mov r1, #0
3000c8dc: e1a00004 mov r0, r4
3000c8e0: e1a02001 mov r2, r1
}
3000c8e4: e8bd4030 pop {r4, r5, lr}
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
3000c8e8: ea001f2a b 30014598 <rtems_io_initialize>
_Thread_Enable_dispatch();
return sc;
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
3000c8ec: e59fe058 ldr lr, [pc, #88] ; 3000c94c <rtems_io_register_driver+0x168><== NOT EXECUTED
3000c8f0: e1a03084 lsl r3, r4, #1 <== NOT EXECUTED
3000c8f4: e59ec000 ldr ip, [lr] <== NOT EXECUTED
3000c8f8: e0830004 add r0, r3, r4 <== NOT EXECUTED
3000c8fc: e1a00180 lsl r0, r0, #3 <== NOT EXECUTED
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
3000c900: e79c5000 ldr r5, [ip, r0] <== NOT EXECUTED
_Thread_Enable_dispatch();
return sc;
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
3000c904: e08c0000 add r0, ip, r0 <== NOT EXECUTED
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
3000c908: e3550000 cmp r5, #0 <== NOT EXECUTED
3000c90c: 0a000006 beq 3000c92c <rtems_io_register_driver+0x148> <== NOT EXECUTED
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();
3000c910: eb000805 bl 3000e92c <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
3000c914: e3a0000c mov r0, #12 <== NOT EXECUTED
3000c918: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
3000c91c: e5824000 str r4, [r2] <== NOT EXECUTED
if ( major == 0 ) {
rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
if ( sc != RTEMS_SUCCESSFUL ) {
_Thread_Enable_dispatch();
3000c920: eb000801 bl 3000e92c <_Thread_Enable_dispatch> <== NOT EXECUTED
*major = m;
if ( m != n )
return RTEMS_SUCCESSFUL;
return RTEMS_TOO_MANY;
3000c924: e3a00005 mov r0, #5 <== NOT EXECUTED
if ( major == 0 ) {
rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
if ( sc != RTEMS_SUCCESSFUL ) {
_Thread_Enable_dispatch();
return sc;
3000c928: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
static inline bool rtems_io_is_empty_table(
const rtems_driver_address_table *table
)
{
return table->initialization_entry == NULL && table->open_entry == NULL;
3000c92c: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED
3000c930: e3500000 cmp r0, #0 <== NOT EXECUTED
3000c934: 1afffff5 bne 3000c910 <rtems_io_register_driver+0x12c> <== NOT EXECUTED
if ( !rtems_io_is_empty_table( table ) ) {
_Thread_Enable_dispatch();
return RTEMS_RESOURCE_IN_USE;
}
*registered_major = major;
3000c938: e5824000 str r4, [r2] <== NOT EXECUTED
3000c93c: eaffffdc b 3000c8b4 <rtems_io_register_driver+0xd0> <== NOT EXECUTED
3000c950 <rtems_io_unregister_driver>:
rtems_status_code rtems_io_unregister_driver(
rtems_device_major_number major
)
{
if ( rtems_interrupt_is_in_progress() )
3000c950: e59f3060 ldr r3, [pc, #96] ; 3000c9b8 <rtems_io_unregister_driver+0x68>
#include <string.h>
rtems_status_code rtems_io_unregister_driver(
rtems_device_major_number major
)
{
3000c954: e92d4010 push {r4, lr}
if ( rtems_interrupt_is_in_progress() )
3000c958: e5934000 ldr r4, [r3]
3000c95c: e3540000 cmp r4, #0
return RTEMS_CALLED_FROM_ISR;
3000c960: 13a00012 movne r0, #18
rtems_status_code rtems_io_unregister_driver(
rtems_device_major_number major
)
{
if ( rtems_interrupt_is_in_progress() )
3000c964: 18bd8010 popne {r4, pc}
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
3000c968: e59f304c ldr r3, [pc, #76] ; 3000c9bc <rtems_io_unregister_driver+0x6c>
3000c96c: e5933000 ldr r3, [r3]
3000c970: e1530000 cmp r3, r0
3000c974: 8a000001 bhi 3000c980 <rtems_io_unregister_driver+0x30>
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
return RTEMS_UNSATISFIED;
3000c978: e3a0000d mov r0, #13 <== NOT EXECUTED
}
3000c97c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000c980: e59f3038 ldr r3, [pc, #56] ; 3000c9c0 <rtems_io_unregister_driver+0x70>
3000c984: e5932000 ldr r2, [r3]
++level;
3000c988: e2822001 add r2, r2, #1
_Thread_Dispatch_disable_level = level;
3000c98c: e5832000 str r2, [r3]
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
_Thread_Disable_dispatch();
memset(
3000c990: e59f302c ldr r3, [pc, #44] ; 3000c9c4 <rtems_io_unregister_driver+0x74>
&_IO_Driver_address_table[major],
3000c994: e0800080 add r0, r0, r0, lsl #1
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
_Thread_Disable_dispatch();
memset(
3000c998: e5933000 ldr r3, [r3]
3000c99c: e1a01004 mov r1, r4
3000c9a0: e3a02018 mov r2, #24
3000c9a4: e0830180 add r0, r3, r0, lsl #3
3000c9a8: eb0028e0 bl 30016d30 <memset>
&_IO_Driver_address_table[major],
0,
sizeof( rtems_driver_address_table )
);
_Thread_Enable_dispatch();
3000c9ac: eb0007de bl 3000e92c <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000c9b0: e1a00004 mov r0, r4
3000c9b4: e8bd8010 pop {r4, pc}
3001188c <rtems_io_write>:
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
3001188c: e59fc044 ldr ip, [pc, #68] ; 300118d8 <rtems_io_write+0x4c>
rtems_status_code rtems_io_write(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
30011890: e1a03000 mov r3, r0
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
30011894: e59cc000 ldr ip, [ip]
rtems_status_code rtems_io_write(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
30011898: e52de004 push {lr} ; (str lr, [sp, #-4]!)
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
3001189c: e15c0000 cmp ip, r0
return RTEMS_INVALID_NUMBER;
300118a0: 93a0000a movls r0, #10
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
300118a4: 949df004 popls {pc} ; (ldrls pc, [sp], #4)
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].write_entry;
300118a8: e59fc02c ldr ip, [pc, #44] ; 300118dc <rtems_io_write+0x50>
300118ac: e0833083 add r3, r3, r3, lsl #1
300118b0: e59cc000 ldr ip, [ip]
300118b4: e08c3183 add r3, ip, r3, lsl #3
300118b8: e5933010 ldr r3, [r3, #16]
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
300118bc: e3530000 cmp r3, #0
300118c0: 0a000002 beq 300118d0 <rtems_io_write+0x44>
300118c4: e1a0e00f mov lr, pc
300118c8: e12fff13 bx r3
300118cc: e49df004 pop {pc} ; (ldr pc, [sp], #4)
300118d0: e1a00003 mov r0, r3 <== NOT EXECUTED
}
300118d4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
3000d34c <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)
{
3000d34c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
uint32_t i;
uint32_t api_index;
Thread_Control *the_thread;
Objects_Information *information;
if ( !routine )
3000d350: e2506000 subs r6, r0, #0 <== NOT EXECUTED
3000d354: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
3000d358: e59f705c ldr r7, [pc, #92] ; 3000d3bc <rtems_iterate_over_all_threads+0x70><== NOT EXECUTED
#endif
#include <rtems/system.h>
#include <rtems/score/thread.h>
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
3000d35c: e287800c add r8, r7, #12 <== NOT EXECUTED
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
#if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)
if ( !_Objects_Information_table[ api_index ] )
3000d360: e5b73004 ldr r3, [r7, #4]! <== NOT EXECUTED
3000d364: e3530000 cmp r3, #0 <== NOT EXECUTED
3000d368: 0a000010 beq 3000d3b0 <rtems_iterate_over_all_threads+0x64><== NOT EXECUTED
continue;
#endif
information = _Objects_Information_table[ api_index ][ 1 ];
3000d36c: e5935004 ldr r5, [r3, #4] <== NOT EXECUTED
if ( !information )
3000d370: e3550000 cmp r5, #0 <== NOT EXECUTED
3000d374: 0a00000d beq 3000d3b0 <rtems_iterate_over_all_threads+0x64><== NOT EXECUTED
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
3000d378: e1d521b0 ldrh r2, [r5, #16] <== NOT EXECUTED
3000d37c: e3520000 cmp r2, #0 <== NOT EXECUTED
3000d380: 0a00000a beq 3000d3b0 <rtems_iterate_over_all_threads+0x64><== NOT EXECUTED
3000d384: e3a04001 mov r4, #1 <== NOT EXECUTED
the_thread = (Thread_Control *)information->local_table[ i ];
3000d388: e595301c ldr r3, [r5, #28] <== NOT EXECUTED
3000d38c: e7930104 ldr r0, [r3, r4, lsl #2] <== NOT EXECUTED
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
3000d390: e2844001 add r4, r4, #1 <== NOT EXECUTED
the_thread = (Thread_Control *)information->local_table[ i ];
if ( !the_thread )
3000d394: e3500000 cmp r0, #0 <== NOT EXECUTED
3000d398: 0a000002 beq 3000d3a8 <rtems_iterate_over_all_threads+0x5c><== NOT EXECUTED
continue;
(*routine)(the_thread);
3000d39c: e1a0e00f mov lr, pc <== NOT EXECUTED
3000d3a0: e12fff16 bx r6 <== NOT EXECUTED
3000d3a4: e1d521b0 ldrh r2, [r5, #16] <== NOT EXECUTED
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
3000d3a8: e1520004 cmp r2, r4 <== NOT EXECUTED
3000d3ac: 2afffff5 bcs 3000d388 <rtems_iterate_over_all_threads+0x3c><== NOT EXECUTED
Objects_Information *information;
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
3000d3b0: e1570008 cmp r7, r8 <== NOT EXECUTED
3000d3b4: 1affffe9 bne 3000d360 <rtems_iterate_over_all_threads+0x14><== NOT EXECUTED
3000d3b8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
30018258 <rtems_message_queue_broadcast>:
rtems_id id,
const void *buffer,
size_t size,
uint32_t *count
)
{
30018258: e92d40f0 push {r4, r5, r6, r7, lr}
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status core_status;
if ( !buffer )
3001825c: e2516000 subs r6, r1, #0
rtems_id id,
const void *buffer,
size_t size,
uint32_t *count
)
{
30018260: e24dd00c sub sp, sp, #12
30018264: e1a05000 mov r5, r0
30018268: e1a07002 mov r7, r2
3001826c: e1a04003 mov r4, r3
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status core_status;
if ( !buffer )
30018270: 0a000015 beq 300182cc <rtems_message_queue_broadcast+0x74>
return RTEMS_INVALID_ADDRESS;
if ( !count )
30018274: e3530000 cmp r3, #0
30018278: 0a000013 beq 300182cc <rtems_message_queue_broadcast+0x74>
RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
3001827c: e59f0054 ldr r0, [pc, #84] ; 300182d8 <rtems_message_queue_broadcast+0x80>
30018280: e1a01005 mov r1, r5
30018284: e28d2008 add r2, sp, #8
30018288: eb0015a1 bl 3001d914 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
3001828c: e59dc008 ldr ip, [sp, #8]
30018290: e35c0000 cmp ip, #0
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
30018294: 13a00004 movne r0, #4
if ( !count )
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
30018298: 1a00000c bne 300182d0 <rtems_message_queue_broadcast+0x78>
case OBJECTS_LOCAL:
core_status = _CORE_message_queue_Broadcast(
3001829c: e1a01006 mov r1, r6
300182a0: e1a02007 mov r2, r7
300182a4: e1a03005 mov r3, r5
300182a8: e2800014 add r0, r0, #20
300182ac: e58dc000 str ip, [sp]
300182b0: e58d4004 str r4, [sp, #4]
300182b4: eb000e65 bl 3001bc50 <_CORE_message_queue_Broadcast>
300182b8: e1a04000 mov r4, r0
NULL,
#endif
count
);
_Thread_Enable_dispatch();
300182bc: eb001953 bl 3001e810 <_Thread_Enable_dispatch>
return
300182c0: e1a00004 mov r0, r4
300182c4: eb0000d6 bl 30018624 <_Message_queue_Translate_core_message_queue_return_code>
300182c8: ea000000 b 300182d0 <rtems_message_queue_broadcast+0x78>
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
if ( !count )
return RTEMS_INVALID_ADDRESS;
300182cc: e3a00009 mov r0, #9 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
300182d0: e28dd00c add sp, sp, #12
300182d4: e8bd80f0 pop {r4, r5, r6, r7, pc}
30012738 <rtems_message_queue_create>:
uint32_t count,
size_t max_message_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
30012738: e92d41f0 push {r4, r5, r6, r7, r8, lr}
#if defined(RTEMS_MULTIPROCESSING)
bool is_global;
size_t max_packet_payload_size;
#endif
if ( !rtems_is_name_valid( name ) )
3001273c: e2507000 subs r7, r0, #0
uint32_t count,
size_t max_message_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
30012740: e24dd008 sub sp, sp, #8
30012744: e1a05001 mov r5, r1
30012748: e1a06002 mov r6, r2
3001274c: e59d4020 ldr r4, [sp, #32]
bool is_global;
size_t max_packet_payload_size;
#endif
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
30012750: 03a00003 moveq r0, #3
#if defined(RTEMS_MULTIPROCESSING)
bool is_global;
size_t max_packet_payload_size;
#endif
if ( !rtems_is_name_valid( name ) )
30012754: 1a000001 bne 30012760 <rtems_message_queue_create+0x28>
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
30012758: e28dd008 add sp, sp, #8
3001275c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
#endif
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
30012760: e3540000 cmp r4, #0
return RTEMS_INVALID_ADDRESS;
30012764: 03a00009 moveq r0, #9
#endif
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
30012768: 0afffffa beq 30012758 <rtems_message_queue_create+0x20>
if ( (is_global = _Attributes_Is_global( attribute_set ) ) &&
!_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
#endif
if ( count == 0 )
3001276c: e3510000 cmp r1, #0
return RTEMS_INVALID_NUMBER;
30012770: 03a0000a moveq r0, #10
if ( (is_global = _Attributes_Is_global( attribute_set ) ) &&
!_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
#endif
if ( count == 0 )
30012774: 0afffff7 beq 30012758 <rtems_message_queue_create+0x20>
return RTEMS_INVALID_NUMBER;
if ( max_message_size == 0 )
30012778: e3520000 cmp r2, #0
return RTEMS_INVALID_SIZE;
3001277c: 03a00008 moveq r0, #8
#endif
if ( count == 0 )
return RTEMS_INVALID_NUMBER;
if ( max_message_size == 0 )
30012780: 0afffff4 beq 30012758 <rtems_message_queue_create+0x20>
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
30012784: e59f2098 ldr r2, [pc, #152] ; 30012824 <rtems_message_queue_create+0xec>
30012788: e5921000 ldr r1, [r2]
++level;
3001278c: e2811001 add r1, r1, #1
_Thread_Dispatch_disable_level = level;
30012790: e5821000 str r1, [r2]
#endif
#endif
_Thread_Disable_dispatch(); /* protects object pointer */
the_message_queue = _Message_queue_Allocate();
30012794: e58d3000 str r3, [sp]
30012798: eb0016be bl 30018298 <_Message_queue_Allocate>
if ( !the_message_queue ) {
3001279c: e2508000 subs r8, r0, #0
300127a0: e59d3000 ldr r3, [sp]
300127a4: 0a00001b beq 30012818 <rtems_message_queue_create+0xe0>
#endif
the_message_queue->attribute_set = attribute_set;
if (_Attributes_Is_priority( attribute_set ) )
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY;
300127a8: e3130004 tst r3, #4
300127ac: 03a02000 moveq r2, #0
300127b0: 13a02001 movne r2, #1
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_message_queue->attribute_set = attribute_set;
300127b4: e28d1008 add r1, sp, #8
300127b8: e5212004 str r2, [r1, #-4]!
300127bc: e5883010 str r3, [r8, #16]
if (_Attributes_Is_priority( attribute_set ) )
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY;
else
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO;
if ( ! _CORE_message_queue_Initialize(
300127c0: e2880014 add r0, r8, #20
300127c4: e1a02005 mov r2, r5
300127c8: e1a03006 mov r3, r6
300127cc: eb0004d3 bl 30013b20 <_CORE_message_queue_Initialize>
300127d0: e3500000 cmp r0, #0
300127d4: 1a000005 bne 300127f0 <rtems_message_queue_create+0xb8>
*/
RTEMS_INLINE_ROUTINE void _Message_queue_Free (
Message_queue_Control *the_message_queue
)
{
_Objects_Free( &_Message_queue_Information, &the_message_queue->Object );
300127d8: e59f0048 ldr r0, [pc, #72] ; 30012828 <rtems_message_queue_create+0xf0><== NOT EXECUTED
300127dc: e1a01008 mov r1, r8 <== NOT EXECUTED
300127e0: eb000895 bl 30014a3c <_Objects_Free> <== NOT EXECUTED
_Objects_MP_Close(
&_Message_queue_Information, the_message_queue->Object.id);
#endif
_Message_queue_Free( the_message_queue );
_Thread_Enable_dispatch();
300127e4: eb000caa bl 30015a94 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_UNSATISFIED;
300127e8: e3a0000d mov r0, #13 <== NOT EXECUTED
300127ec: eaffffd9 b 30012758 <rtems_message_queue_create+0x20> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
300127f0: e59f2030 ldr r2, [pc, #48] ; 30012828 <rtems_message_queue_create+0xf0>
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
300127f4: e5983008 ldr r3, [r8, #8]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
300127f8: e592201c ldr r2, [r2, #28]
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
300127fc: e1a01803 lsl r1, r3, #16
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
30012800: e7828721 str r8, [r2, r1, lsr #14]
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
30012804: e588700c str r7, [r8, #12]
&_Message_queue_Information,
&the_message_queue->Object,
(Objects_Name) name
);
*id = the_message_queue->Object.id;
30012808: e5843000 str r3, [r4]
name,
0
);
#endif
_Thread_Enable_dispatch();
3001280c: eb000ca0 bl 30015a94 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
30012810: e3a00000 mov r0, #0
30012814: eaffffcf b 30012758 <rtems_message_queue_create+0x20>
_Thread_Disable_dispatch(); /* protects object pointer */
the_message_queue = _Message_queue_Allocate();
if ( !the_message_queue ) {
_Thread_Enable_dispatch();
30012818: eb000c9d bl 30015a94 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
3001281c: e3a00005 mov r0, #5 <== NOT EXECUTED
30012820: eaffffcc b 30012758 <rtems_message_queue_create+0x20> <== NOT EXECUTED
3001848c <rtems_message_queue_get_number_pending>:
rtems_status_code rtems_message_queue_get_number_pending(
rtems_id id,
uint32_t *count
)
{
3001848c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
30018490: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_message_queue_get_number_pending(
rtems_id id,
uint32_t *count
)
{
30018494: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
30018498: e1a01000 mov r1, r0 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
return RTEMS_INVALID_ADDRESS;
3001849c: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
300184a0: 0a00000a beq 300184d0 <rtems_message_queue_get_number_pending+0x44><== NOT EXECUTED
300184a4: e59f002c ldr r0, [pc, #44] ; 300184d8 <rtems_message_queue_get_number_pending+0x4c><== NOT EXECUTED
300184a8: e1a0200d mov r2, sp <== NOT EXECUTED
300184ac: eb001518 bl 3001d914 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
300184b0: e59d5000 ldr r5, [sp] <== NOT EXECUTED
300184b4: e3550000 cmp r5, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
300184b8: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !count )
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
300184bc: 1a000003 bne 300184d0 <rtems_message_queue_get_number_pending+0x44><== NOT EXECUTED
case OBJECTS_LOCAL:
*count = the_message_queue->message_queue.number_of_pending_messages;
300184c0: e590305c ldr r3, [r0, #92] ; 0x5c <== NOT EXECUTED
300184c4: e5843000 str r3, [r4] <== NOT EXECUTED
_Thread_Enable_dispatch();
300184c8: eb0018d0 bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
300184cc: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
300184d0: e28dd004 add sp, sp, #4 <== NOT EXECUTED
300184d4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
30012860 <rtems_message_queue_receive>:
void *buffer,
size_t *size,
rtems_option option_set,
rtems_interval timeout
)
{
30012860: e92d4070 push {r4, r5, r6, lr}
register Message_queue_Control *the_message_queue;
Objects_Locations location;
bool wait;
if ( !buffer )
30012864: e2515000 subs r5, r1, #0
void *buffer,
size_t *size,
rtems_option option_set,
rtems_interval timeout
)
{
30012868: e24dd00c sub sp, sp, #12
3001286c: e1a01000 mov r1, r0
30012870: e1a04002 mov r4, r2
30012874: e1a06003 mov r6, r3
register Message_queue_Control *the_message_queue;
Objects_Locations location;
bool wait;
if ( !buffer )
30012878: 0a000018 beq 300128e0 <rtems_message_queue_receive+0x80>
return RTEMS_INVALID_ADDRESS;
if ( !size )
3001287c: e3520000 cmp r2, #0
30012880: 0a000016 beq 300128e0 <rtems_message_queue_receive+0x80>
RTEMS_INLINE_ROUTINE Message_queue_Control *_Message_queue_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
30012884: e59f0060 ldr r0, [pc, #96] ; 300128ec <rtems_message_queue_receive+0x8c>
30012888: e28d2008 add r2, sp, #8
3001288c: eb0008c1 bl 30014b98 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
30012890: e59d3008 ldr r3, [sp, #8]
30012894: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
30012898: 13a00004 movne r0, #4
if ( !size )
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
3001289c: 1a000010 bne 300128e4 <rtems_message_queue_receive+0x84>
if ( _Options_Is_no_wait( option_set ) )
wait = false;
else
wait = true;
_CORE_message_queue_Seize(
300128a0: e59dc01c ldr ip, [sp, #28]
*/
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (
rtems_option option_set
)
{
return (option_set & RTEMS_NO_WAIT) ? true : false;
300128a4: e2066001 and r6, r6, #1
300128a8: e5901008 ldr r1, [r0, #8]
300128ac: e1a03004 mov r3, r4
300128b0: e2800014 add r0, r0, #20
300128b4: e1a02005 mov r2, r5
300128b8: e2266001 eor r6, r6, #1
300128bc: e58dc004 str ip, [sp, #4]
300128c0: e58d6000 str r6, [sp]
300128c4: eb0004c6 bl 30013be4 <_CORE_message_queue_Seize>
buffer,
size,
wait,
timeout
);
_Thread_Enable_dispatch();
300128c8: eb000c71 bl 30015a94 <_Thread_Enable_dispatch>
return _Message_queue_Translate_core_message_queue_return_code(
_Thread_Executing->Wait.return_code
300128cc: e59f301c ldr r3, [pc, #28] ; 300128f0 <rtems_message_queue_receive+0x90>
300128d0: e5933008 ldr r3, [r3, #8]
size,
wait,
timeout
);
_Thread_Enable_dispatch();
return _Message_queue_Translate_core_message_queue_return_code(
300128d4: e5930034 ldr r0, [r3, #52] ; 0x34
300128d8: eb000025 bl 30012974 <_Message_queue_Translate_core_message_queue_return_code>
300128dc: ea000000 b 300128e4 <rtems_message_queue_receive+0x84>
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
if ( !size )
return RTEMS_INVALID_ADDRESS;
300128e0: e3a00009 mov r0, #9 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
300128e4: e28dd00c add sp, sp, #12
300128e8: e8bd8070 pop {r4, r5, r6, pc}
3000c1a8 <rtems_object_api_maximum_class>:
int rtems_object_api_maximum_class(
int api
)
{
return _Objects_API_maximum_class(api);
3000c1a8: ea000674 b 3000db80 <_Objects_API_maximum_class> <== NOT EXECUTED
3000c1ac <rtems_object_api_minimum_class>:
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
3000c1ac: e2400001 sub r0, r0, #1 <== NOT EXECUTED
int api
)
{
if ( _Objects_Is_api_valid( api ) )
return 1;
return -1;
3000c1b0: e3500003 cmp r0, #3 <== NOT EXECUTED
}
3000c1b4: 33a00001 movcc r0, #1 <== NOT EXECUTED
3000c1b8: 23e00000 mvncs r0, #0 <== NOT EXECUTED
3000c1bc: e12fff1e bx lr <== NOT EXECUTED
3000c1c0 <rtems_object_get_api_class_name>:
)
{
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
3000c1c0: e3500001 cmp r0, #1 <== NOT EXECUTED
const char *rtems_object_get_api_class_name(
int the_api,
int the_class
)
{
3000c1c4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
3000c1c8: 0a000004 beq 3000c1e0 <rtems_object_get_api_class_name+0x20><== NOT EXECUTED
api_assoc = rtems_object_api_internal_assoc;
else if ( the_api == OBJECTS_CLASSIC_API )
3000c1cc: e3500002 cmp r0, #2 <== NOT EXECUTED
api_assoc = rtems_object_api_classic_assoc;
3000c1d0: 059f0024 ldreq r0, [pc, #36] ; 3000c1fc <rtems_object_get_api_class_name+0x3c><== NOT EXECUTED
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
api_assoc = rtems_object_api_internal_assoc;
else if ( the_api == OBJECTS_CLASSIC_API )
3000c1d4: 0a000002 beq 3000c1e4 <rtems_object_get_api_class_name+0x24><== NOT EXECUTED
#ifdef RTEMS_POSIX_API
else if ( the_api == OBJECTS_POSIX_API )
api_assoc = rtems_object_api_posix_assoc;
#endif
else
return "BAD API";
3000c1d8: e59f0020 ldr r0, [pc, #32] ; 3000c200 <rtems_object_get_api_class_name+0x40><== NOT EXECUTED
3000c1dc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
{
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
api_assoc = rtems_object_api_internal_assoc;
3000c1e0: e59f001c ldr r0, [pc, #28] ; 3000c204 <rtems_object_get_api_class_name+0x44><== NOT EXECUTED
else if ( the_api == OBJECTS_POSIX_API )
api_assoc = rtems_object_api_posix_assoc;
#endif
else
return "BAD API";
class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );
3000c1e4: eb0012ce bl 30010d24 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if ( class_assoc )
3000c1e8: e3500000 cmp r0, #0 <== NOT EXECUTED
return class_assoc->name;
3000c1ec: 15900000 ldrne r0, [r0] <== NOT EXECUTED
api_assoc = rtems_object_api_posix_assoc;
#endif
else
return "BAD API";
class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );
if ( class_assoc )
3000c1f0: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED
return class_assoc->name;
return "BAD CLASS";
3000c1f4: e59f000c ldr r0, [pc, #12] ; 3000c208 <rtems_object_get_api_class_name+0x48><== NOT EXECUTED
}
3000c1f8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
3000c20c <rtems_object_get_api_name>:
};
const char *rtems_object_get_api_name(
int api
)
{
3000c20c: e1a01000 mov r1, r0 <== NOT EXECUTED
3000c210: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
const rtems_assoc_t *api_assoc;
api_assoc = rtems_assoc_ptr_by_local( rtems_objects_api_assoc, api );
3000c214: e59f0010 ldr r0, [pc, #16] ; 3000c22c <rtems_object_get_api_name+0x20><== NOT EXECUTED
3000c218: eb0012c1 bl 30010d24 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if ( api_assoc )
3000c21c: e3500000 cmp r0, #0 <== NOT EXECUTED
return api_assoc->name;
3000c220: 15900000 ldrne r0, [r0] <== NOT EXECUTED
return "BAD CLASS";
3000c224: 059f0004 ldreq r0, [pc, #4] ; 3000c230 <rtems_object_get_api_name+0x24><== NOT EXECUTED
}
3000c228: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
3000c26c <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
)
{
3000c26c: e92d4010 push {r4, lr} <== NOT EXECUTED
int i;
/*
* Validate parameters and look up information structure.
*/
if ( !info )
3000c270: e2524000 subs r4, r2, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
3000c274: 03a00009 moveq r0, #9 <== NOT EXECUTED
int i;
/*
* Validate parameters and look up information structure.
*/
if ( !info )
3000c278: 08bd8010 popeq {r4, pc} <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
obj_info = _Objects_Get_information( the_api, the_class );
3000c27c: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED
3000c280: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED
3000c284: eb000721 bl 3000df10 <_Objects_Get_information> <== NOT EXECUTED
if ( !obj_info )
3000c288: e3500000 cmp r0, #0 <== NOT EXECUTED
3000c28c: 0a000018 beq 3000c2f4 <rtems_object_get_class_information+0x88><== NOT EXECUTED
* 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;
3000c290: e1d011b0 ldrh r1, [r0, #16] <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
3000c294: e590c008 ldr ip, [r0, #8] <== NOT EXECUTED
info->maximum_id = obj_info->maximum_id;
3000c298: e590200c ldr r2, [r0, #12] <== NOT EXECUTED
info->auto_extend = obj_info->auto_extend;
3000c29c: e5d03012 ldrb r3, [r0, #18] <== NOT EXECUTED
info->maximum = obj_info->maximum;
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
3000c2a0: e3510000 cmp r1, #0 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
3000c2a4: e584c000 str ip, [r4] <== NOT EXECUTED
info->maximum_id = obj_info->maximum_id;
3000c2a8: e5842004 str r2, [r4, #4] <== NOT EXECUTED
info->auto_extend = obj_info->auto_extend;
3000c2ac: e5c4300c strb r3, [r4, #12] <== NOT EXECUTED
info->maximum = obj_info->maximum;
3000c2b0: e5841008 str r1, [r4, #8] <== NOT EXECUTED
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
3000c2b4: 01a0c001 moveq ip, r1 <== NOT EXECUTED
3000c2b8: 0a00000a beq 3000c2e8 <rtems_object_get_class_information+0x7c><== NOT EXECUTED
3000c2bc: e3a02001 mov r2, #1 <== NOT EXECUTED
3000c2c0: e590001c ldr r0, [r0, #28] <== NOT EXECUTED
3000c2c4: e1a03002 mov r3, r2 <== NOT EXECUTED
3000c2c8: e3a0c000 mov ip, #0 <== NOT EXECUTED
if ( !obj_info->local_table[i] )
3000c2cc: e7902102 ldr r2, [r0, r2, lsl #2] <== NOT EXECUTED
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++ )
3000c2d0: e2833001 add r3, r3, #1 <== NOT EXECUTED
if ( !obj_info->local_table[i] )
3000c2d4: e3520000 cmp r2, #0 <== NOT EXECUTED
unallocated++;
3000c2d8: 028cc001 addeq ip, ip, #1 <== NOT EXECUTED
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++ )
3000c2dc: e1510003 cmp r1, r3 <== NOT EXECUTED
3000c2e0: e1a02003 mov r2, r3 <== NOT EXECUTED
3000c2e4: 2afffff8 bcs 3000c2cc <rtems_object_get_class_information+0x60><== NOT EXECUTED
if ( !obj_info->local_table[i] )
unallocated++;
info->unallocated = unallocated;
3000c2e8: e584c010 str ip, [r4, #16] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3000c2ec: e3a00000 mov r0, #0 <== NOT EXECUTED
3000c2f0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
if ( !info )
return RTEMS_INVALID_ADDRESS;
obj_info = _Objects_Get_information( the_api, the_class );
if ( !obj_info )
return RTEMS_INVALID_NUMBER;
3000c2f4: e3a0000a mov r0, #10 <== NOT EXECUTED
unallocated++;
info->unallocated = unallocated;
return RTEMS_SUCCESSFUL;
}
3000c2f8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
30018048 <rtems_object_get_name>:
Objects_Id id,
size_t length,
char *name
)
{
return _Objects_Get_name_as_string( id, length, name );
30018048: ea000328 b 30018cf0 <_Objects_Get_name_as_string> <== NOT EXECUTED
3000c300 <rtems_object_id_api_maximum>:
#undef rtems_object_id_api_maximum
int rtems_object_id_api_maximum(void)
{
return OBJECTS_APIS_LAST;
}
3000c300: e3a00003 mov r0, #3 <== NOT EXECUTED
3000c304: e12fff1e bx lr <== NOT EXECUTED
3000c308 <rtems_object_id_api_minimum>:
#undef rtems_object_id_api_minimum
int rtems_object_id_api_minimum(void)
{
return OBJECTS_INTERNAL_API;
}
3000c308: e3a00001 mov r0, #1 <== NOT EXECUTED
3000c30c: e12fff1e bx lr <== NOT EXECUTED
3000c310 <rtems_object_id_get_api>:
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
3000c310: e1a00c20 lsr r0, r0, #24 <== NOT EXECUTED
int rtems_object_id_get_api(
rtems_id id
)
{
return _Objects_Get_API( id );
}
3000c314: e2000007 and r0, r0, #7 <== NOT EXECUTED
3000c318: e12fff1e bx lr <== NOT EXECUTED
3000c31c <rtems_object_id_get_class>:
int rtems_object_id_get_class(
rtems_id id
)
{
return _Objects_Get_class( id );
}
3000c31c: e1a00da0 lsr r0, r0, #27 <== NOT EXECUTED
3000c320: e12fff1e bx lr <== NOT EXECUTED
3000c324 <rtems_object_id_get_index>:
#undef rtems_object_id_get_index
int rtems_object_id_get_index(
rtems_id id
)
{
return _Objects_Get_index( id );
3000c324: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED
}
3000c328: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED
3000c32c: e12fff1e bx lr <== NOT EXECUTED
3000c330 <rtems_object_id_get_node>:
* be a single processor system.
*/
#if defined(RTEMS_USE_16_BIT_OBJECT)
return 1;
#else
return (id >> OBJECTS_NODE_START_BIT) & OBJECTS_NODE_VALID_BITS;
3000c330: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED
int rtems_object_id_get_node(
rtems_id id
)
{
return _Objects_Get_node( id );
}
3000c334: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED
3000c338: e12fff1e bx lr <== NOT EXECUTED
3000c33c <rtems_object_set_name>:
*/
rtems_status_code rtems_object_set_name(
rtems_id id,
const char *name
)
{
3000c33c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
Objects_Information *information;
Objects_Locations location;
Objects_Control *the_object;
Objects_Id tmpId;
if ( !name )
3000c340: e2514000 subs r4, r1, #0 <== NOT EXECUTED
*/
rtems_status_code rtems_object_set_name(
rtems_id id,
const char *name
)
{
3000c344: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
Objects_Locations location;
Objects_Control *the_object;
Objects_Id tmpId;
if ( !name )
return RTEMS_INVALID_ADDRESS;
3000c348: 03a00009 moveq r0, #9 <== NOT EXECUTED
Objects_Information *information;
Objects_Locations location;
Objects_Control *the_object;
Objects_Id tmpId;
if ( !name )
3000c34c: 0a00000f beq 3000c390 <rtems_object_set_name+0x54> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
3000c350: e3500000 cmp r0, #0 <== NOT EXECUTED
3000c354: 059f3058 ldreq r3, [pc, #88] ; 3000c3b4 <rtems_object_set_name+0x78><== NOT EXECUTED
3000c358: 11a05000 movne r5, r0 <== NOT EXECUTED
3000c35c: 05933008 ldreq r3, [r3, #8] <== NOT EXECUTED
3000c360: 05935008 ldreq r5, [r3, #8] <== NOT EXECUTED
information = _Objects_Get_information_id( tmpId );
3000c364: e1a00005 mov r0, r5 <== NOT EXECUTED
3000c368: eb0006e3 bl 3000defc <_Objects_Get_information_id> <== NOT EXECUTED
if ( !information )
3000c36c: e2506000 subs r6, r0, #0 <== NOT EXECUTED
3000c370: 0a000005 beq 3000c38c <rtems_object_set_name+0x50> <== NOT EXECUTED
return RTEMS_INVALID_ID;
the_object = _Objects_Get( information, tmpId, &location );
3000c374: e1a01005 mov r1, r5 <== NOT EXECUTED
3000c378: e1a0200d mov r2, sp <== NOT EXECUTED
3000c37c: eb00075a bl 3000e0ec <_Objects_Get> <== NOT EXECUTED
switch ( location ) {
3000c380: e59d5000 ldr r5, [sp] <== NOT EXECUTED
3000c384: e3550000 cmp r5, #0 <== NOT EXECUTED
3000c388: 0a000002 beq 3000c398 <rtems_object_set_name+0x5c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3000c38c: e3a00004 mov r0, #4 <== NOT EXECUTED
}
3000c390: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3000c394: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
the_object = _Objects_Get( information, tmpId, &location );
switch ( location ) {
case OBJECTS_LOCAL:
_Objects_Set_name( information, the_object, name );
3000c398: e1a01000 mov r1, r0 <== NOT EXECUTED
3000c39c: e1a02004 mov r2, r4 <== NOT EXECUTED
3000c3a0: e1a00006 mov r0, r6 <== NOT EXECUTED
3000c3a4: eb0007c8 bl 3000e2cc <_Objects_Set_name> <== NOT EXECUTED
_Thread_Enable_dispatch();
3000c3a8: eb000b2f bl 3000f06c <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3000c3ac: e1a00005 mov r0, r5 <== NOT EXECUTED
3000c3b0: eafffff6 b 3000c390 <rtems_object_set_name+0x54> <== NOT EXECUTED
300186b4 <rtems_partition_create>:
uint32_t length,
uint32_t buffer_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
300186b4: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr}
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
300186b8: e2506000 subs r6, r0, #0
uint32_t length,
uint32_t buffer_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
300186bc: e24dd008 sub sp, sp, #8
300186c0: e1a04001 mov r4, r1
300186c4: e59d502c ldr r5, [sp, #44] ; 0x2c
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
300186c8: 03a00003 moveq r0, #3
rtems_id *id
)
{
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
300186cc: 1a000001 bne 300186d8 <rtems_partition_create+0x24>
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
300186d0: e28dd008 add sp, sp, #8
300186d4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc}
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !starting_address )
300186d8: e3510000 cmp r1, #0
300186dc: 0a000006 beq 300186fc <rtems_partition_create+0x48>
return RTEMS_INVALID_ADDRESS;
if ( !id )
300186e0: e3550000 cmp r5, #0
300186e4: 0a000004 beq 300186fc <rtems_partition_create+0x48>
return RTEMS_INVALID_ADDRESS;
if ( length == 0 || buffer_size == 0 || length < buffer_size ||
300186e8: e3520000 cmp r2, #0
300186ec: 13530000 cmpne r3, #0
300186f0: 1a000003 bne 30018704 <rtems_partition_create+0x50>
!_Partition_Is_buffer_size_aligned( buffer_size ) )
return RTEMS_INVALID_SIZE;
300186f4: e3a00008 mov r0, #8 <== NOT EXECUTED
300186f8: eafffff4 b 300186d0 <rtems_partition_create+0x1c> <== NOT EXECUTED
if ( !_Addresses_Is_aligned( starting_address ) )
return RTEMS_INVALID_ADDRESS;
300186fc: e3a00009 mov r0, #9 <== NOT EXECUTED
30018700: eafffff2 b 300186d0 <rtems_partition_create+0x1c> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( length == 0 || buffer_size == 0 || length < buffer_size ||
30018704: e1520003 cmp r2, r3
30018708: 3afffff9 bcc 300186f4 <rtems_partition_create+0x40>
3001870c: e3130003 tst r3, #3
30018710: 1afffff7 bne 300186f4 <rtems_partition_create+0x40>
!_Partition_Is_buffer_size_aligned( buffer_size ) )
return RTEMS_INVALID_SIZE;
if ( !_Addresses_Is_aligned( starting_address ) )
30018714: e2118007 ands r8, r1, #7
30018718: 1afffff7 bne 300186fc <rtems_partition_create+0x48>
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3001871c: e59f109c ldr r1, [pc, #156] ; 300187c0 <rtems_partition_create+0x10c>
30018720: e5910000 ldr r0, [r1]
++level;
30018724: e2800001 add r0, r0, #1
_Thread_Dispatch_disable_level = level;
30018728: e5810000 str r0, [r1]
* 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 );
3001872c: e59fa090 ldr sl, [pc, #144] ; 300187c4 <rtems_partition_create+0x110>
30018730: e58d2004 str r2, [sp, #4]
30018734: e1a0000a mov r0, sl
30018738: e58d3000 str r3, [sp]
3001873c: eb001331 bl 3001d408 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
30018740: e2507000 subs r7, r0, #0
30018744: e59d2004 ldr r2, [sp, #4]
30018748: e59d3000 ldr r3, [sp]
3001874c: 0a000018 beq 300187b4 <rtems_partition_create+0x100>
#endif
the_partition->starting_address = starting_address;
the_partition->length = length;
the_partition->buffer_size = buffer_size;
the_partition->attribute_set = attribute_set;
30018750: e59d1028 ldr r1, [sp, #40] ; 0x28
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
the_partition->length = length;
30018754: e5872014 str r2, [r7, #20]
the_partition->buffer_size = buffer_size;
30018758: e5873018 str r3, [r7, #24]
the_partition->attribute_set = attribute_set;
3001875c: e587101c str r1, [r7, #28]
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
30018760: e5874010 str r4, [r7, #16]
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,
30018764: e1a01003 mov r1, r3
the_partition->starting_address = starting_address;
the_partition->length = length;
the_partition->buffer_size = buffer_size;
the_partition->attribute_set = attribute_set;
the_partition->number_of_used_blocks = 0;
30018768: e5878020 str r8, [r7, #32]
_Chain_Initialize( &the_partition->Memory, starting_address,
3001876c: e1a00002 mov r0, r2
30018770: e58d3000 str r3, [sp]
30018774: eb005473 bl 3002d948 <__aeabi_uidiv>
30018778: e2879024 add r9, r7, #36 ; 0x24
3001877c: e1a02000 mov r2, r0
30018780: e1a01004 mov r1, r4
30018784: e1a00009 mov r0, r9
30018788: e59d3000 ldr r3, [sp]
3001878c: eb000d16 bl 3001bbec <_Chain_Initialize>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
30018790: e59a201c ldr r2, [sl, #28]
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
30018794: e5973008 ldr r3, [r7, #8]
30018798: e1d710b8 ldrh r1, [r7, #8]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
3001879c: e7827101 str r7, [r2, r1, lsl #2]
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
300187a0: e587600c str r6, [r7, #12]
&_Partition_Information,
&the_partition->Object,
(Objects_Name) name
);
*id = the_partition->Object.id;
300187a4: e5853000 str r3, [r5]
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
300187a8: eb001818 bl 3001e810 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
300187ac: e1a00008 mov r0, r8
300187b0: eaffffc6 b 300186d0 <rtems_partition_create+0x1c>
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
_Thread_Enable_dispatch();
300187b4: eb001815 bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
300187b8: e3a00005 mov r0, #5 <== NOT EXECUTED
300187bc: eaffffc3 b 300186d0 <rtems_partition_create+0x1c> <== NOT EXECUTED
300187c8 <rtems_partition_delete>:
#include <rtems/score/sysstate.h>
rtems_status_code rtems_partition_delete(
rtems_id id
)
{
300187c8: e92d4030 push {r4, r5, lr}
300187cc: e24dd004 sub sp, sp, #4
300187d0: e1a01000 mov r1, r0
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
300187d4: e1a0200d mov r2, sp
300187d8: e59f0054 ldr r0, [pc, #84] ; 30018834 <rtems_partition_delete+0x6c>
300187dc: eb00144c bl 3001d914 <_Objects_Get>
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
300187e0: e59d3000 ldr r3, [sp]
300187e4: e1a04000 mov r4, r0
300187e8: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
300187ec: 13a00004 movne r0, #4
{
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
300187f0: 1a000004 bne 30018808 <rtems_partition_delete+0x40>
case OBJECTS_LOCAL:
if ( the_partition->number_of_used_blocks == 0 ) {
300187f4: e5945020 ldr r5, [r4, #32]
300187f8: e3550000 cmp r5, #0
300187fc: 0a000003 beq 30018810 <rtems_partition_delete+0x48>
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
30018800: eb001802 bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
30018804: e3a0000c mov r0, #12 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
30018808: e28dd004 add sp, sp, #4
3001880c: e8bd8030 pop {r4, r5, pc}
the_partition = _Partition_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( the_partition->number_of_used_blocks == 0 ) {
_Objects_Close( &_Partition_Information, &the_partition->Object );
30018810: e59f001c ldr r0, [pc, #28] ; 30018834 <rtems_partition_delete+0x6c>
30018814: e1a01004 mov r1, r4
30018818: eb00131d bl 3001d494 <_Objects_Close>
*/
RTEMS_INLINE_ROUTINE void _Partition_Free (
Partition_Control *the_partition
)
{
_Objects_Free( &_Partition_Information, &the_partition->Object );
3001881c: e59f0010 ldr r0, [pc, #16] ; 30018834 <rtems_partition_delete+0x6c>
30018820: e1a01004 mov r1, r4
30018824: eb0013d5 bl 3001d780 <_Objects_Free>
0 /* Not used */
);
}
#endif
_Thread_Enable_dispatch();
30018828: eb0017f8 bl 3001e810 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3001882c: e1a00005 mov r0, r5
30018830: eafffff4 b 30018808 <rtems_partition_delete+0x40>
300188e4 <rtems_partition_return_buffer>:
rtems_status_code rtems_partition_return_buffer(
rtems_id id,
void *buffer
)
{
300188e4: e92d4070 push {r4, r5, r6, lr}
300188e8: e1a03000 mov r3, r0
300188ec: e24dd004 sub sp, sp, #4
300188f0: e1a04001 mov r4, r1
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
300188f4: e59f008c ldr r0, [pc, #140] ; 30018988 <rtems_partition_return_buffer+0xa4>
300188f8: e1a01003 mov r1, r3
300188fc: e1a0200d mov r2, sp
30018900: eb001403 bl 3001d914 <_Objects_Get>
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
30018904: e59d3000 ldr r3, [sp]
30018908: e1a05000 mov r5, r0
3001890c: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
30018910: 13a00004 movne r0, #4
{
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
30018914: 1a000016 bne 30018974 <rtems_partition_return_buffer+0x90>
)
{
void *starting;
void *ending;
starting = the_partition->starting_address;
30018918: e5950010 ldr r0, [r5, #16]
3001891c: e5953014 ldr r3, [r5, #20]
30018920: e0803003 add r3, r0, r3
const void *address,
const void *base,
const void *limit
)
{
return (address >= base && address <= limit);
30018924: e1540003 cmp r4, r3
30018928: 83a03000 movhi r3, #0
3001892c: 93a03001 movls r3, #1
30018930: e1540000 cmp r4, r0
30018934: 33a03000 movcc r3, #0
ending = _Addresses_Add_offset( starting, the_partition->length );
return (
_Addresses_Is_in_range( the_buffer, starting, ending ) &&
30018938: e3530000 cmp r3, #0
3001893c: 0a00000e beq 3001897c <rtems_partition_return_buffer+0x98>
offset = (uint32_t) _Addresses_Subtract(
the_buffer,
the_partition->starting_address
);
return ((offset % the_partition->buffer_size) == 0);
30018940: e0600004 rsb r0, r0, r4
30018944: e5951018 ldr r1, [r5, #24]
30018948: eb005444 bl 3002da60 <__umodsi3>
starting = the_partition->starting_address;
ending = _Addresses_Add_offset( starting, the_partition->length );
return (
_Addresses_Is_in_range( the_buffer, starting, ending ) &&
3001894c: e2506000 subs r6, r0, #0
30018950: 1a000009 bne 3001897c <rtems_partition_return_buffer+0x98>
RTEMS_INLINE_ROUTINE void _Partition_Free_buffer (
Partition_Control *the_partition,
Chain_Node *the_buffer
)
{
_Chain_Append( &the_partition->Memory, the_buffer );
30018954: e2850024 add r0, r5, #36 ; 0x24
30018958: e1a01004 mov r1, r4
3001895c: eb000c8a bl 3001bb8c <_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;
30018960: e5953020 ldr r3, [r5, #32]
30018964: e2433001 sub r3, r3, #1
30018968: e5853020 str r3, [r5, #32]
_Thread_Enable_dispatch();
3001896c: eb0017a7 bl 3001e810 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
30018970: e1a00006 mov r0, r6
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
30018974: e28dd004 add sp, sp, #4
30018978: e8bd8070 pop {r4, r5, r6, pc}
_Partition_Free_buffer( the_partition, buffer );
the_partition->number_of_used_blocks -= 1;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
3001897c: eb0017a3 bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
30018980: e3a00009 mov r0, #9 <== NOT EXECUTED
30018984: eafffffa b 30018974 <rtems_partition_return_buffer+0x90> <== NOT EXECUTED
30017ca0 <rtems_port_create>:
void *internal_start,
void *external_start,
uint32_t length,
rtems_id *id
)
{
30017ca0: e92d40f0 push {r4, r5, r6, r7, lr}
register Dual_ported_memory_Control *the_port;
if ( !rtems_is_name_valid( name ) )
30017ca4: e2504000 subs r4, r0, #0
void *internal_start,
void *external_start,
uint32_t length,
rtems_id *id
)
{
30017ca8: e24dd00c sub sp, sp, #12
30017cac: e59d5020 ldr r5, [sp, #32]
register Dual_ported_memory_Control *the_port;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
30017cb0: 03a00003 moveq r0, #3
rtems_id *id
)
{
register Dual_ported_memory_Control *the_port;
if ( !rtems_is_name_valid( name ) )
30017cb4: 1a000001 bne 30017cc0 <rtems_port_create+0x20>
);
*id = the_port->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
30017cb8: e28dd00c add sp, sp, #12
30017cbc: e8bd80f0 pop {r4, r5, r6, r7, pc}
register Dual_ported_memory_Control *the_port;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
30017cc0: e3550000 cmp r5, #0
30017cc4: 0a000002 beq 30017cd4 <rtems_port_create+0x34>
#include <rtems/rtems/dpmem.h>
#include <rtems/score/object.h>
#include <rtems/score/thread.h>
#include <rtems/rtems/dpmem.h>
rtems_status_code rtems_port_create(
30017cc8: e1826001 orr r6, r2, r1
return RTEMS_INVALID_NAME;
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( !_Addresses_Is_aligned( internal_start ) ||
30017ccc: e2166007 ands r6, r6, #7
30017cd0: 0a000001 beq 30017cdc <rtems_port_create+0x3c>
!_Addresses_Is_aligned( external_start ) )
return RTEMS_INVALID_ADDRESS;
30017cd4: e3a00009 mov r0, #9 <== NOT EXECUTED
30017cd8: eafffff6 b 30017cb8 <rtems_port_create+0x18> <== NOT EXECUTED
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
30017cdc: e59f0074 ldr r0, [pc, #116] ; 30017d58 <rtems_port_create+0xb8>
30017ce0: e590c000 ldr ip, [r0]
++level;
30017ce4: e28cc001 add ip, ip, #1
_Thread_Dispatch_disable_level = level;
30017ce8: e580c000 str ip, [r0]
* of free port control blocks.
*/
RTEMS_INLINE_ROUTINE Dual_ported_memory_Control
*_Dual_ported_memory_Allocate ( void )
{
return (Dual_ported_memory_Control *)
30017cec: e59f7068 ldr r7, [pc, #104] ; 30017d5c <rtems_port_create+0xbc>
30017cf0: e58d1008 str r1, [sp, #8]
30017cf4: e1a00007 mov r0, r7
30017cf8: e58d2004 str r2, [sp, #4]
30017cfc: e58d3000 str r3, [sp]
30017d00: eb0015c0 bl 3001d408 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_port = _Dual_ported_memory_Allocate();
if ( !the_port ) {
30017d04: e3500000 cmp r0, #0
30017d08: e59d1008 ldr r1, [sp, #8]
30017d0c: e59d2004 ldr r2, [sp, #4]
30017d10: e59d3000 ldr r3, [sp]
30017d14: 0a00000c beq 30017d4c <rtems_port_create+0xac>
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
30017d18: e590c008 ldr ip, [r0, #8]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
30017d1c: e597e01c ldr lr, [r7, #28]
return RTEMS_TOO_MANY;
}
the_port->internal_base = internal_start;
the_port->external_base = external_start;
the_port->length = length - 1;
30017d20: e2433001 sub r3, r3, #1
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
30017d24: e1a0780c lsl r7, ip, #16
if ( !the_port ) {
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_port->internal_base = internal_start;
30017d28: e5801010 str r1, [r0, #16]
the_port->external_base = external_start;
30017d2c: e5802014 str r2, [r0, #20]
the_port->length = length - 1;
30017d30: e5803018 str r3, [r0, #24]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
30017d34: e78e0727 str r0, [lr, r7, lsr #14]
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
30017d38: e580400c str r4, [r0, #12]
&_Dual_ported_memory_Information,
&the_port->Object,
(Objects_Name) name
);
*id = the_port->Object.id;
30017d3c: e585c000 str ip, [r5]
_Thread_Enable_dispatch();
30017d40: eb001ab2 bl 3001e810 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
30017d44: e1a00006 mov r0, r6
30017d48: eaffffda b 30017cb8 <rtems_port_create+0x18>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_port = _Dual_ported_memory_Allocate();
if ( !the_port ) {
_Thread_Enable_dispatch();
30017d4c: eb001aaf bl 3001e810 <_Thread_Enable_dispatch>
return RTEMS_TOO_MANY;
30017d50: e3a00005 mov r0, #5
30017d54: eaffffd7 b 30017cb8 <rtems_port_create+0x18>
3001898c <rtems_rate_monotonic_cancel>:
#include <rtems/score/thread.h>
rtems_status_code rtems_rate_monotonic_cancel(
rtems_id id
)
{
3001898c: e92d4030 push {r4, r5, lr}
30018990: e24dd004 sub sp, sp, #4
30018994: e1a01000 mov r1, r0
RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Rate_monotonic_Control *)
30018998: e1a0200d mov r2, sp
3001899c: e59f0064 ldr r0, [pc, #100] ; 30018a08 <rtems_rate_monotonic_cancel+0x7c>
300189a0: eb0013db bl 3001d914 <_Objects_Get>
Rate_monotonic_Control *the_period;
Objects_Locations location;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
300189a4: e59d4000 ldr r4, [sp]
300189a8: e1a05000 mov r5, r0
300189ac: e3540000 cmp r4, #0
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
300189b0: 13a00004 movne r0, #4
{
Rate_monotonic_Control *the_period;
Objects_Locations location;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
300189b4: 1a000006 bne 300189d4 <rtems_rate_monotonic_cancel+0x48>
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
300189b8: e59f304c ldr r3, [pc, #76] ; 30018a0c <rtems_rate_monotonic_cancel+0x80>
300189bc: e5952040 ldr r2, [r5, #64] ; 0x40
300189c0: e5933008 ldr r3, [r3, #8]
300189c4: e1520003 cmp r2, r3
300189c8: 0a000003 beq 300189dc <rtems_rate_monotonic_cancel+0x50>
_Thread_Enable_dispatch();
300189cc: eb00178f bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_OWNER_OF_RESOURCE;
300189d0: e3a00017 mov r0, #23 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
300189d4: e28dd004 add sp, sp, #4
300189d8: e8bd8030 pop {r4, r5, pc}
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
_Thread_Enable_dispatch();
return RTEMS_NOT_OWNER_OF_RESOURCE;
}
(void) _Watchdog_Remove( &the_period->Timer );
300189dc: e2850010 add r0, r5, #16
300189e0: eb001b6c bl 3001f798 <_Watchdog_Remove>
RTEMS_INLINE_ROUTINE void _Scheduler_Release_job(
Thread_Control *the_thread,
uint32_t length
)
{
_Scheduler.Operations.release_job(the_thread, length);
300189e4: e5950040 ldr r0, [r5, #64] ; 0x40
300189e8: e1a01004 mov r1, r4
300189ec: e59f301c ldr r3, [pc, #28] ; 30018a10 <rtems_rate_monotonic_cancel+0x84>
the_period->state = RATE_MONOTONIC_INACTIVE;
300189f0: e5854038 str r4, [r5, #56] ; 0x38
300189f4: e1a0e00f mov lr, pc
300189f8: e593f034 ldr pc, [r3, #52] ; 0x34
_Scheduler_Release_job(the_period->owner, 0);
_Thread_Enable_dispatch();
300189fc: eb001783 bl 3001e810 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
30018a00: e1a00004 mov r0, r4
30018a04: eafffff2 b 300189d4 <rtems_rate_monotonic_cancel+0x48>
3000b19c <rtems_rate_monotonic_create>:
rtems_status_code rtems_rate_monotonic_create(
rtems_name name,
rtems_id *id
)
{
3000b19c: e92d41f0 push {r4, r5, r6, r7, r8, lr}
Rate_monotonic_Control *the_period;
if ( !rtems_is_name_valid( name ) )
3000b1a0: e2506000 subs r6, r0, #0
rtems_status_code rtems_rate_monotonic_create(
rtems_name name,
rtems_id *id
)
{
3000b1a4: e1a05001 mov r5, r1
Rate_monotonic_Control *the_period;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
3000b1a8: 03a00003 moveq r0, #3
rtems_id *id
)
{
Rate_monotonic_Control *the_period;
if ( !rtems_is_name_valid( name ) )
3000b1ac: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc}
return RTEMS_INVALID_NAME;
if ( !id )
3000b1b0: e3510000 cmp r1, #0
3000b1b4: 0a000024 beq 3000b24c <rtems_rate_monotonic_create+0xb0>
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000b1b8: e59f30a0 ldr r3, [pc, #160] ; 3000b260 <rtems_rate_monotonic_create+0xc4>
3000b1bc: e5932000 ldr r2, [r3]
++level;
3000b1c0: e2822001 add r2, r2, #1
_Thread_Dispatch_disable_level = level;
3000b1c4: e5832000 str r2, [r3]
* This function allocates a period control block from
* the inactive chain of free period control blocks.
*/
RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void )
{
return (Rate_monotonic_Control *)
3000b1c8: e59f8094 ldr r8, [pc, #148] ; 3000b264 <rtems_rate_monotonic_create+0xc8>
3000b1cc: e1a00008 mov r0, r8
3000b1d0: eb00082a bl 3000d280 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_period = _Rate_monotonic_Allocate();
if ( !the_period ) {
3000b1d4: e2504000 subs r4, r0, #0
3000b1d8: 0a00001d beq 3000b254 <rtems_rate_monotonic_create+0xb8>
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_period->owner = _Thread_Executing;
3000b1dc: e59f3084 ldr r3, [pc, #132] ; 3000b268 <rtems_rate_monotonic_create+0xcc>
the_period->state = RATE_MONOTONIC_INACTIVE;
3000b1e0: e3a07000 mov r7, #0
if ( !the_period ) {
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_period->owner = _Thread_Executing;
3000b1e4: e5933008 ldr r3, [r3, #8]
the_period->state = RATE_MONOTONIC_INACTIVE;
_Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL );
_Rate_monotonic_Reset_statistics( the_period );
3000b1e8: e1a01007 mov r1, r7
3000b1ec: e3a02038 mov r2, #56 ; 0x38
if ( !the_period ) {
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_period->owner = _Thread_Executing;
3000b1f0: e5843040 str r3, [r4, #64] ; 0x40
the_period->state = RATE_MONOTONIC_INACTIVE;
3000b1f4: e5847038 str r7, [r4, #56] ; 0x38
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
3000b1f8: e5847018 str r7, [r4, #24]
the_watchdog->routine = routine;
3000b1fc: e584702c str r7, [r4, #44] ; 0x2c
the_watchdog->id = id;
3000b200: e5847030 str r7, [r4, #48] ; 0x30
the_watchdog->user_data = user_data;
3000b204: e5847034 str r7, [r4, #52] ; 0x34
_Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL );
_Rate_monotonic_Reset_statistics( the_period );
3000b208: e2840054 add r0, r4, #84 ; 0x54
3000b20c: eb0022ff bl 30013e10 <memset>
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
3000b210: e5943008 ldr r3, [r4, #8]
Timestamp64_Control *_time,
Timestamp64_Control _seconds,
Timestamp64_Control _nanoseconds
)
{
*_time = _seconds * 1000000000L + _nanoseconds;
3000b214: e59f0050 ldr r0, [pc, #80] ; 3000b26c <rtems_rate_monotonic_create+0xd0>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
3000b218: e598201c ldr r2, [r8, #28]
3000b21c: e59f104c ldr r1, [pc, #76] ; 3000b270 <rtems_rate_monotonic_create+0xd4>
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
3000b220: e1a0c803 lsl ip, r3, #16
3000b224: e584005c str r0, [r4, #92] ; 0x5c
3000b228: e5841060 str r1, [r4, #96] ; 0x60
3000b22c: e5840074 str r0, [r4, #116] ; 0x74
3000b230: e5841078 str r1, [r4, #120] ; 0x78
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
3000b234: e782472c str r4, [r2, ip, lsr #14]
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
3000b238: e584600c str r6, [r4, #12]
&_Rate_monotonic_Information,
&the_period->Object,
(Objects_Name) name
);
*id = the_period->Object.id;
3000b23c: e5853000 str r3, [r5]
_Thread_Enable_dispatch();
3000b240: eb000d44 bl 3000e758 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000b244: e1a00007 mov r0, r7
3000b248: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
return RTEMS_INVALID_ADDRESS;
3000b24c: e3a00009 mov r0, #9 <== NOT EXECUTED
);
*id = the_period->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
3000b250: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */
the_period = _Rate_monotonic_Allocate();
if ( !the_period ) {
_Thread_Enable_dispatch();
3000b254: eb000d3f bl 3000e758 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
3000b258: e3a00005 mov r0, #5 <== NOT EXECUTED
3000b25c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
30036050 <rtems_rate_monotonic_get_statistics>:
rtems_status_code rtems_rate_monotonic_get_statistics(
rtems_id id,
rtems_rate_monotonic_period_statistics *statistics
)
{
30036050: e92d4370 push {r4, r5, r6, r8, r9, lr} <== NOT EXECUTED
Objects_Locations location;
Rate_monotonic_Control *the_period;
rtems_rate_monotonic_period_statistics *dst;
Rate_monotonic_Statistics *src;
if ( !statistics )
30036054: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_rate_monotonic_get_statistics(
rtems_id id,
rtems_rate_monotonic_period_statistics *statistics
)
{
30036058: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
3003605c: e1a01000 mov r1, r0 <== NOT EXECUTED
Rate_monotonic_Control *the_period;
rtems_rate_monotonic_period_statistics *dst;
Rate_monotonic_Statistics *src;
if ( !statistics )
return RTEMS_INVALID_ADDRESS;
30036060: 03a00009 moveq r0, #9 <== NOT EXECUTED
Objects_Locations location;
Rate_monotonic_Control *the_period;
rtems_rate_monotonic_period_statistics *dst;
Rate_monotonic_Statistics *src;
if ( !statistics )
30036064: 0a000060 beq 300361ec <rtems_rate_monotonic_get_statistics+0x19c><== NOT EXECUTED
30036068: e59f0184 ldr r0, [pc, #388] ; 300361f4 <rtems_rate_monotonic_get_statistics+0x1a4><== NOT EXECUTED
3003606c: e1a0200d mov r2, sp <== NOT EXECUTED
30036070: ebff5a63 bl 3000ca04 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
30036074: e59d6000 ldr r6, [sp] <== NOT EXECUTED
30036078: e1a05000 mov r5, r0 <== NOT EXECUTED
3003607c: e3560000 cmp r6, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
30036080: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !statistics )
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
30036084: 1a000058 bne 300361ec <rtems_rate_monotonic_get_statistics+0x19c><== NOT EXECUTED
case OBJECTS_LOCAL:
dst = statistics;
src = &the_period->Statistics;
dst->count = src->count;
30036088: e5950054 ldr r0, [r5, #84] ; 0x54 <== NOT EXECUTED
dst->missed_count = src->missed_count;
3003608c: e5951058 ldr r1, [r5, #88] ; 0x58 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
30036090: e285905c add r9, r5, #92 ; 0x5c <== NOT EXECUTED
30036094: e8990300 ldm r9, {r8, r9} <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30036098: e59f2158 ldr r2, [pc, #344] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
case OBJECTS_LOCAL:
dst = statistics;
src = &the_period->Statistics;
dst->count = src->count;
dst->missed_count = src->missed_count;
3003609c: e8840003 stm r4, {r0, r1} <== NOT EXECUTED
300360a0: e3a03000 mov r3, #0 <== NOT EXECUTED
300360a4: e1a00008 mov r0, r8 <== NOT EXECUTED
300360a8: e1a01009 mov r1, r9 <== NOT EXECUTED
300360ac: eb0076f8 bl 30053c94 <__divdi3> <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300360b0: e59f2140 ldr r2, [pc, #320] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
300360b4: e3a03000 mov r3, #0 <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300360b8: e5840008 str r0, [r4, #8] <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300360bc: e1a01009 mov r1, r9 <== NOT EXECUTED
300360c0: e1a00008 mov r0, r8 <== NOT EXECUTED
300360c4: eb00782d bl 30054180 <__moddi3> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
300360c8: e2859064 add r9, r5, #100 ; 0x64 <== NOT EXECUTED
300360cc: e8990300 ldm r9, {r8, r9} <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300360d0: e59f2120 ldr r2, [pc, #288] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
300360d4: e3a03000 mov r3, #0 <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300360d8: e584000c str r0, [r4, #12] <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300360dc: e1a01009 mov r1, r9 <== NOT EXECUTED
300360e0: e1a00008 mov r0, r8 <== NOT EXECUTED
300360e4: eb0076ea bl 30053c94 <__divdi3> <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300360e8: e59f2108 ldr r2, [pc, #264] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
300360ec: e3a03000 mov r3, #0 <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300360f0: e5840010 str r0, [r4, #16] <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300360f4: e1a01009 mov r1, r9 <== NOT EXECUTED
300360f8: e1a00008 mov r0, r8 <== NOT EXECUTED
300360fc: eb00781f bl 30054180 <__moddi3> <== NOT EXECUTED
30036100: e285906c add r9, r5, #108 ; 0x6c <== NOT EXECUTED
30036104: e8990300 ldm r9, {r8, r9} <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30036108: e59f20e8 ldr r2, [pc, #232] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
3003610c: e3a03000 mov r3, #0 <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
30036110: e5840014 str r0, [r4, #20] <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30036114: e1a01009 mov r1, r9 <== NOT EXECUTED
30036118: e1a00008 mov r0, r8 <== NOT EXECUTED
3003611c: eb0076dc bl 30053c94 <__divdi3> <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
30036120: e59f20d0 ldr r2, [pc, #208] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
30036124: e3a03000 mov r3, #0 <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30036128: e5840018 str r0, [r4, #24] <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
3003612c: e1a01009 mov r1, r9 <== NOT EXECUTED
30036130: e1a00008 mov r0, r8 <== NOT EXECUTED
30036134: eb007811 bl 30054180 <__moddi3> <== NOT EXECUTED
30036138: e2859074 add r9, r5, #116 ; 0x74 <== NOT EXECUTED
3003613c: e8990300 ldm r9, {r8, r9} <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30036140: e59f20b0 ldr r2, [pc, #176] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
30036144: e3a03000 mov r3, #0 <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
30036148: e584001c str r0, [r4, #28] <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
3003614c: e1a01009 mov r1, r9 <== NOT EXECUTED
30036150: e1a00008 mov r0, r8 <== NOT EXECUTED
30036154: eb0076ce bl 30053c94 <__divdi3> <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
30036158: e59f2098 ldr r2, [pc, #152] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
3003615c: e3a03000 mov r3, #0 <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30036160: e5840020 str r0, [r4, #32] <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
30036164: e1a01009 mov r1, r9 <== NOT EXECUTED
30036168: e1a00008 mov r0, r8 <== NOT EXECUTED
3003616c: eb007803 bl 30054180 <__moddi3> <== NOT EXECUTED
30036170: e285907c add r9, r5, #124 ; 0x7c <== NOT EXECUTED
30036174: e8990300 ldm r9, {r8, r9} <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30036178: e59f2078 ldr r2, [pc, #120] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
3003617c: e3a03000 mov r3, #0 <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
30036180: e5840024 str r0, [r4, #36] ; 0x24 <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30036184: e1a01009 mov r1, r9 <== NOT EXECUTED
30036188: e1a00008 mov r0, r8 <== NOT EXECUTED
3003618c: eb0076c0 bl 30053c94 <__divdi3> <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
30036190: e59f2060 ldr r2, [pc, #96] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
30036194: e3a03000 mov r3, #0 <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30036198: e5840028 str r0, [r4, #40] ; 0x28 <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
3003619c: e1a01009 mov r1, r9 <== NOT EXECUTED
300361a0: e1a00008 mov r0, r8 <== NOT EXECUTED
300361a4: eb0077f5 bl 30054180 <__moddi3> <== NOT EXECUTED
300361a8: e2859084 add r9, r5, #132 ; 0x84 <== NOT EXECUTED
300361ac: e8990300 ldm r9, {r8, r9} <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300361b0: e59f2040 ldr r2, [pc, #64] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
300361b4: e3a03000 mov r3, #0 <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300361b8: e584002c str r0, [r4, #44] ; 0x2c <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300361bc: e1a01009 mov r1, r9 <== NOT EXECUTED
300361c0: e1a00008 mov r0, r8 <== NOT EXECUTED
300361c4: eb0076b2 bl 30053c94 <__divdi3> <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300361c8: e59f2028 ldr r2, [pc, #40] ; 300361f8 <rtems_rate_monotonic_get_statistics+0x1a8><== NOT EXECUTED
300361cc: e3a03000 mov r3, #0 <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300361d0: e5840030 str r0, [r4, #48] ; 0x30 <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300361d4: e1a01009 mov r1, r9 <== NOT EXECUTED
300361d8: e1a00008 mov r0, r8 <== NOT EXECUTED
300361dc: eb0077e7 bl 30054180 <__moddi3> <== NOT EXECUTED
300361e0: e5840034 str r0, [r4, #52] ; 0x34 <== NOT EXECUTED
dst->min_wall_time = src->min_wall_time;
dst->max_wall_time = src->max_wall_time;
dst->total_wall_time = src->total_wall_time;
#endif
_Thread_Enable_dispatch();
300361e4: ebff5da4 bl 3000d87c <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
300361e8: e1a00006 mov r0, r6 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
300361ec: e28dd004 add sp, sp, #4 <== NOT EXECUTED
300361f0: e8bd8370 pop {r4, r5, r6, r8, r9, pc} <== NOT EXECUTED
300361fc <rtems_rate_monotonic_get_status>:
rtems_status_code rtems_rate_monotonic_get_status(
rtems_id id,
rtems_rate_monotonic_period_status *status
)
{
300361fc: e92d40d0 push {r4, r6, r7, lr} <== NOT EXECUTED
Objects_Locations location;
Rate_monotonic_Period_time_t since_last_period;
Rate_monotonic_Control *the_period;
bool valid_status;
if ( !status )
30036200: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_rate_monotonic_get_status(
rtems_id id,
rtems_rate_monotonic_period_status *status
)
{
30036204: e24dd014 sub sp, sp, #20 <== NOT EXECUTED
30036208: e1a01000 mov r1, r0 <== NOT EXECUTED
Rate_monotonic_Period_time_t since_last_period;
Rate_monotonic_Control *the_period;
bool valid_status;
if ( !status )
return RTEMS_INVALID_ADDRESS;
3003620c: 03a00009 moveq r0, #9 <== NOT EXECUTED
Objects_Locations location;
Rate_monotonic_Period_time_t since_last_period;
Rate_monotonic_Control *the_period;
bool valid_status;
if ( !status )
30036210: 0a000013 beq 30036264 <rtems_rate_monotonic_get_status+0x68><== NOT EXECUTED
30036214: e28d2010 add r2, sp, #16 <== NOT EXECUTED
30036218: e59f00dc ldr r0, [pc, #220] ; 300362fc <rtems_rate_monotonic_get_status+0x100><== NOT EXECUTED
3003621c: ebff59f8 bl 3000ca04 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
30036220: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED
30036224: e1a02000 mov r2, r0 <== NOT EXECUTED
30036228: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3003622c: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !status )
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
30036230: 1a00000b bne 30036264 <rtems_rate_monotonic_get_status+0x68><== NOT EXECUTED
case OBJECTS_LOCAL:
status->owner = the_period->owner->Object.id;
30036234: e5921040 ldr r1, [r2, #64] ; 0x40 <== NOT EXECUTED
status->state = the_period->state;
30036238: e5923038 ldr r3, [r2, #56] ; 0x38 <== NOT EXECUTED
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
status->owner = the_period->owner->Object.id;
3003623c: e5912008 ldr r2, [r1, #8] <== NOT EXECUTED
status->state = the_period->state;
/*
* If the period is inactive, there is no information.
*/
if ( status->state == RATE_MONOTONIC_INACTIVE ) {
30036240: e3530000 cmp r3, #0 <== NOT EXECUTED
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
status->owner = the_period->owner->Object.id;
status->state = the_period->state;
30036244: e884000c stm r4, {r2, r3} <== NOT EXECUTED
/*
* If the period is inactive, there is no information.
*/
if ( status->state == RATE_MONOTONIC_INACTIVE ) {
30036248: 1a000007 bne 3003626c <rtems_rate_monotonic_get_status+0x70><== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timespec_Set_to_zero( &status->since_last_period );
3003624c: e5843008 str r3, [r4, #8] <== NOT EXECUTED
30036250: e584300c str r3, [r4, #12] <== NOT EXECUTED
_Timespec_Set_to_zero( &status->executed_since_last_period );
30036254: e5843010 str r3, [r4, #16] <== NOT EXECUTED
30036258: e5843014 str r3, [r4, #20] <== NOT EXECUTED
status->since_last_period = since_last_period;
status->executed_since_last_period = executed;
#endif
}
_Thread_Enable_dispatch();
3003625c: ebff5d86 bl 3000d87c <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
30036260: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
30036264: e28dd014 add sp, sp, #20 <== NOT EXECUTED
30036268: e8bd80d0 pop {r4, r6, r7, pc} <== NOT EXECUTED
} else {
/*
* Grab the current status.
*/
valid_status =
3003626c: e28d1008 add r1, sp, #8 <== NOT EXECUTED
30036270: e1a0200d mov r2, sp <== NOT EXECUTED
30036274: eb000022 bl 30036304 <_Rate_monotonic_Get_status> <== NOT EXECUTED
_Rate_monotonic_Get_status(
the_period, &since_last_period, &executed
);
if (!valid_status) {
30036278: e3500000 cmp r0, #0 <== NOT EXECUTED
3003627c: 0a00001b beq 300362f0 <rtems_rate_monotonic_get_status+0xf4><== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_NOT_DEFINED;
}
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_To_timespec(
30036280: e28d7008 add r7, sp, #8 <== NOT EXECUTED
30036284: e89700c0 ldm r7, {r6, r7} <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
30036288: e59f2070 ldr r2, [pc, #112] ; 30036300 <rtems_rate_monotonic_get_status+0x104><== NOT EXECUTED
3003628c: e3a03000 mov r3, #0 <== NOT EXECUTED
30036290: e1a00006 mov r0, r6 <== NOT EXECUTED
30036294: e1a01007 mov r1, r7 <== NOT EXECUTED
30036298: eb00767d bl 30053c94 <__divdi3> <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
3003629c: e59f205c ldr r2, [pc, #92] ; 30036300 <rtems_rate_monotonic_get_status+0x104><== NOT EXECUTED
300362a0: e3a03000 mov r3, #0 <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300362a4: e5840008 str r0, [r4, #8] <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300362a8: e1a01007 mov r1, r7 <== NOT EXECUTED
300362ac: e1a00006 mov r0, r6 <== NOT EXECUTED
300362b0: eb0077b2 bl 30054180 <__moddi3> <== NOT EXECUTED
&since_last_period, &status->since_last_period
);
_Timestamp_To_timespec(
300362b4: e89d00c0 ldm sp, {r6, r7} <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300362b8: e59f2040 ldr r2, [pc, #64] ; 30036300 <rtems_rate_monotonic_get_status+0x104><== NOT EXECUTED
300362bc: e3a03000 mov r3, #0 <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300362c0: e584000c str r0, [r4, #12] <== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300362c4: e1a01007 mov r1, r7 <== NOT EXECUTED
300362c8: e1a00006 mov r0, r6 <== NOT EXECUTED
300362cc: eb007670 bl 30053c94 <__divdi3> <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300362d0: e59f2028 ldr r2, [pc, #40] ; 30036300 <rtems_rate_monotonic_get_status+0x104><== NOT EXECUTED
static inline void _Timestamp64_implementation_To_timespec(
const Timestamp64_Control *_timestamp,
struct timespec *_timespec
)
{
_timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);
300362d4: e5840010 str r0, [r4, #16] <== NOT EXECUTED
_timespec->tv_nsec = (long) (*_timestamp % 1000000000L);
300362d8: e3a03000 mov r3, #0 <== NOT EXECUTED
300362dc: e1a00006 mov r0, r6 <== NOT EXECUTED
300362e0: e1a01007 mov r1, r7 <== NOT EXECUTED
300362e4: eb0077a5 bl 30054180 <__moddi3> <== NOT EXECUTED
300362e8: e5840014 str r0, [r4, #20] <== NOT EXECUTED
300362ec: eaffffda b 3003625c <rtems_rate_monotonic_get_status+0x60> <== NOT EXECUTED
valid_status =
_Rate_monotonic_Get_status(
the_period, &since_last_period, &executed
);
if (!valid_status) {
_Thread_Enable_dispatch();
300362f0: ebff5d61 bl 3000d87c <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
300362f4: e3a0000b mov r0, #11 <== NOT EXECUTED
300362f8: eaffffd9 b 30036264 <rtems_rate_monotonic_get_status+0x68> <== NOT EXECUTED
30036528 <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
30036528: e92d41f0 push {r4, r5, r6, r7, r8, lr}
3003652c: e1a04000 mov r4, r0
30036530: e24dd008 sub sp, sp, #8
30036534: e1a05001 mov r5, r1
30036538: e59f0190 ldr r0, [pc, #400] ; 300366d0 <rtems_rate_monotonic_period+0x1a8>
3003653c: e1a01004 mov r1, r4
30036540: e28d2004 add r2, sp, #4
30036544: ebff592e bl 3000ca04 <_Objects_Get>
rtems_rate_monotonic_period_states local_state;
ISR_Level level;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
30036548: e59d3004 ldr r3, [sp, #4]
3003654c: e1a06000 mov r6, r0
30036550: e3530000 cmp r3, #0
30036554: 1a000007 bne 30036578 <rtems_rate_monotonic_period+0x50>
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
30036558: e59f7174 ldr r7, [pc, #372] ; 300366d4 <rtems_rate_monotonic_period+0x1ac>
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
3003655c: e5902040 ldr r2, [r0, #64] ; 0x40
30036560: e5973008 ldr r3, [r7, #8]
30036564: e1520003 cmp r2, r3
30036568: 0a000005 beq 30036584 <rtems_rate_monotonic_period+0x5c>
_Thread_Enable_dispatch();
3003656c: ebff5cc2 bl 3000d87c <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_OWNER_OF_RESOURCE;
30036570: e3a00017 mov r0, #23 <== NOT EXECUTED
30036574: ea000000 b 3003657c <rtems_rate_monotonic_period+0x54> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
30036578: e3a00004 mov r0, #4 <== NOT EXECUTED
}
3003657c: e28dd008 add sp, sp, #8
30036580: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
if ( !_Thread_Is_executing( the_period->owner ) ) {
_Thread_Enable_dispatch();
return RTEMS_NOT_OWNER_OF_RESOURCE;
}
if ( length == RTEMS_PERIOD_STATUS ) {
30036584: e3550000 cmp r5, #0
30036588: 0a00001c beq 30036600 <rtems_rate_monotonic_period+0xd8>
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3003658c: e10f8000 mrs r8, CPSR
30036590: e3883080 orr r3, r8, #128 ; 0x80
30036594: e129f003 msr CPSR_fc, r3
_Thread_Enable_dispatch();
return( return_value );
}
_ISR_Disable( level );
if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {
30036598: e5903038 ldr r3, [r0, #56] ; 0x38
3003659c: e3530000 cmp r3, #0
300365a0: 0a00001c beq 30036618 <rtems_rate_monotonic_period+0xf0>
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {
300365a4: e3530002 cmp r3, #2
300365a8: 0a00002d beq 30036664 <rtems_rate_monotonic_period+0x13c>
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {
300365ac: e3530004 cmp r3, #4 <== NOT EXECUTED
300365b0: 1afffff0 bne 30036578 <rtems_rate_monotonic_period+0x50> <== NOT EXECUTED
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
300365b4: ebffff7d bl 300363b0 <_Rate_monotonic_Update_statistics> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
300365b8: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED
_ISR_Enable( level );
the_period->state = RATE_MONOTONIC_ACTIVE;
300365bc: e3a03002 mov r3, #2 <== NOT EXECUTED
300365c0: e59f0110 ldr r0, [pc, #272] ; 300366d8 <rtems_rate_monotonic_period+0x1b0><== NOT EXECUTED
300365c4: e2861010 add r1, r6, #16 <== NOT EXECUTED
300365c8: e5863038 str r3, [r6, #56] ; 0x38 <== NOT EXECUTED
the_period->next_length = length;
300365cc: e586503c str r5, [r6, #60] ; 0x3c <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
300365d0: e586501c str r5, [r6, #28] <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
300365d4: ebff5fa8 bl 3000e47c <_Watchdog_Insert> <== NOT EXECUTED
300365d8: e5960040 ldr r0, [r6, #64] ; 0x40 <== NOT EXECUTED
300365dc: e596103c ldr r1, [r6, #60] ; 0x3c <== NOT EXECUTED
300365e0: e59f30f4 ldr r3, [pc, #244] ; 300366dc <rtems_rate_monotonic_period+0x1b4><== NOT EXECUTED
300365e4: e1a0e00f mov lr, pc <== NOT EXECUTED
300365e8: e593f034 ldr pc, [r3, #52] ; 0x34 <== NOT EXECUTED
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Scheduler_Release_job(the_period->owner, the_period->next_length);
_Thread_Enable_dispatch();
return RTEMS_TIMEOUT;
300365ec: e3a00006 mov r0, #6 <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_ACTIVE;
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Scheduler_Release_job(the_period->owner, the_period->next_length);
_Thread_Enable_dispatch();
300365f0: e58d0000 str r0, [sp]
300365f4: ebff5ca0 bl 3000d87c <_Thread_Enable_dispatch>
return RTEMS_TIMEOUT;
300365f8: e59d0000 ldr r0, [sp]
300365fc: eaffffde b 3003657c <rtems_rate_monotonic_period+0x54>
_Thread_Enable_dispatch();
return RTEMS_NOT_OWNER_OF_RESOURCE;
}
if ( length == RTEMS_PERIOD_STATUS ) {
switch ( the_period->state ) {
30036600: e5903038 ldr r3, [r0, #56] ; 0x38
30036604: e3530004 cmp r3, #4
30036608: 959f20d0 ldrls r2, [pc, #208] ; 300366e0 <rtems_rate_monotonic_period+0x1b8>
3003660c: 81a00005 movhi r0, r5
30036610: 97920103 ldrls r0, [r2, r3, lsl #2]
30036614: eafffff5 b 300365f0 <rtems_rate_monotonic_period+0xc8>
30036618: e129f008 msr CPSR_fc, r8
_ISR_Disable( level );
if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {
_ISR_Enable( level );
the_period->next_length = length;
3003661c: e586503c str r5, [r6, #60] ; 0x3c
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
30036620: ebffff9b bl 30036494 <_Rate_monotonic_Initiate_statistics>
the_period->state = RATE_MONOTONIC_ACTIVE;
30036624: e3a03002 mov r3, #2
30036628: e5863038 str r3, [r6, #56] ; 0x38
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
3003662c: e59f30b0 ldr r3, [pc, #176] ; 300366e4 <rtems_rate_monotonic_period+0x1bc>
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
30036630: e3a07000 mov r7, #0
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
30036634: e59f009c ldr r0, [pc, #156] ; 300366d8 <rtems_rate_monotonic_period+0x1b0>
30036638: e2861010 add r1, r6, #16
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
3003663c: e586302c str r3, [r6, #44] ; 0x2c
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
30036640: e5867018 str r7, [r6, #24]
the_watchdog->routine = routine;
the_watchdog->id = id;
30036644: e5864030 str r4, [r6, #48] ; 0x30
the_watchdog->user_data = user_data;
30036648: e5867034 str r7, [r6, #52] ; 0x34
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
3003664c: e586501c str r5, [r6, #28]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
30036650: ebff5f89 bl 3000e47c <_Watchdog_Insert>
id,
NULL
);
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
30036654: e58d7000 str r7, [sp]
30036658: ebff5c87 bl 3000d87c <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3003665c: e59d0000 ldr r0, [sp]
30036660: eaffffc5 b 3003657c <rtems_rate_monotonic_period+0x54>
if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
30036664: ebffff51 bl 300363b0 <_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;
30036668: e3a03001 mov r3, #1
3003666c: e5863038 str r3, [r6, #56] ; 0x38
the_period->next_length = length;
30036670: e586503c str r5, [r6, #60] ; 0x3c
30036674: e129f008 msr CPSR_fc, r8
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
30036678: e5973008 ldr r3, [r7, #8]
3003667c: e5962008 ldr r2, [r6, #8]
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
30036680: e1a00003 mov r0, r3
the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;
the_period->next_length = length;
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
30036684: e5832020 str r2, [r3, #32]
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
30036688: e3a01901 mov r1, #16384 ; 0x4000
3003668c: ebff5e98 bl 3000e0f4 <_Thread_Set_state>
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
30036690: e10f2000 mrs r2, CPSR
30036694: e3823080 orr r3, r2, #128 ; 0x80
30036698: e129f003 msr CPSR_fc, r3
* 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;
3003669c: e3a01002 mov r1, #2
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
local_state = the_period->state;
300366a0: e5963038 ldr r3, [r6, #56] ; 0x38
the_period->state = RATE_MONOTONIC_ACTIVE;
300366a4: e5861038 str r1, [r6, #56] ; 0x38
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
300366a8: e129f002 msr CPSR_fc, r2
/*
* 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 )
300366ac: e3530003 cmp r3, #3
300366b0: 0a000002 beq 300366c0 <rtems_rate_monotonic_period+0x198>
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
_Thread_Enable_dispatch();
300366b4: ebff5c70 bl 3000d87c <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
300366b8: e3a00000 mov r0, #0 <== NOT EXECUTED
300366bc: eaffffae b 3003657c <rtems_rate_monotonic_period+0x54> <== NOT EXECUTED
/*
* 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 );
300366c0: e5970008 ldr r0, [r7, #8] <== NOT EXECUTED
300366c4: e3a01901 mov r1, #16384 ; 0x4000 <== NOT EXECUTED
300366c8: ebff5b76 bl 3000d4a8 <_Thread_Clear_state> <== NOT EXECUTED
300366cc: eafffff8 b 300366b4 <rtems_rate_monotonic_period+0x18c> <== NOT EXECUTED
300296f0 <rtems_rate_monotonic_report_statistics>:
}
}
void rtems_rate_monotonic_report_statistics( void )
{
rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin );
300296f0: e59f1004 ldr r1, [pc, #4] ; 300296fc <rtems_rate_monotonic_report_statistics+0xc><== NOT EXECUTED
300296f4: e3a00000 mov r0, #0 <== NOT EXECUTED
300296f8: eaffff75 b 300294d4 <rtems_rate_monotonic_report_statistics_with_plugin><== NOT EXECUTED
300294d4 <rtems_rate_monotonic_report_statistics_with_plugin>:
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
300294d4: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
rtems_id id;
rtems_rate_monotonic_period_statistics the_stats;
rtems_rate_monotonic_period_status the_status;
char name[5];
if ( !print )
300294d8: e2515000 subs r5, r1, #0 <== NOT EXECUTED
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
300294dc: e24dd070 sub sp, sp, #112 ; 0x70 <== NOT EXECUTED
300294e0: e1a07000 mov r7, r0 <== NOT EXECUTED
rtems_id id;
rtems_rate_monotonic_period_statistics the_stats;
rtems_rate_monotonic_period_status the_status;
char name[5];
if ( !print )
300294e4: 0a000040 beq 300295ec <rtems_rate_monotonic_report_statistics_with_plugin+0x118><== NOT EXECUTED
return;
(*print)( context, "Period information by period\n" );
300294e8: e59f11d4 ldr r1, [pc, #468] ; 300296c4 <rtems_rate_monotonic_report_statistics_with_plugin+0x1f0><== NOT EXECUTED
300294ec: e1a0e00f mov lr, pc <== NOT EXECUTED
300294f0: e12fff15 bx r5 <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)( context, "--- CPU times are in seconds ---\n" );
300294f4: e59f11cc ldr r1, [pc, #460] ; 300296c8 <rtems_rate_monotonic_report_statistics_with_plugin+0x1f4><== NOT EXECUTED
300294f8: e1a00007 mov r0, r7 <== NOT EXECUTED
300294fc: e1a0e00f mov lr, pc <== NOT EXECUTED
30029500: e12fff15 bx r5 <== NOT EXECUTED
(*print)( context, "--- Wall times are in seconds ---\n" );
30029504: e59f11c0 ldr r1, [pc, #448] ; 300296cc <rtems_rate_monotonic_report_statistics_with_plugin+0x1f8><== NOT EXECUTED
30029508: e1a00007 mov r0, r7 <== NOT EXECUTED
3002950c: e1a0e00f mov lr, pc <== NOT EXECUTED
30029510: e12fff15 bx r5 <== NOT EXECUTED
/*
* 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 ;
30029514: e59f61b4 ldr r6, [pc, #436] ; 300296d0 <rtems_rate_monotonic_report_statistics_with_plugin+0x1fc><== NOT EXECUTED
Be sure to test the various cases.
(*print)( context,"\
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");
*/
(*print)( context, " ID OWNER COUNT MISSED "
30029518: e59f11b4 ldr r1, [pc, #436] ; 300296d4 <rtems_rate_monotonic_report_statistics_with_plugin+0x200><== NOT EXECUTED
3002951c: e1a00007 mov r0, r7 <== NOT EXECUTED
30029520: e1a0e00f mov lr, pc <== NOT EXECUTED
30029524: e12fff15 bx r5 <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
" "
#endif
" WALL TIME\n"
);
(*print)( context, " "
30029528: e1a00007 mov r0, r7 <== NOT EXECUTED
3002952c: e59f11a4 ldr r1, [pc, #420] ; 300296d8 <rtems_rate_monotonic_report_statistics_with_plugin+0x204><== NOT EXECUTED
30029530: e1a0e00f mov lr, pc <== NOT EXECUTED
30029534: e12fff15 bx r5 <== NOT EXECUTED
/*
* 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 ;
30029538: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED
3002953c: e596300c ldr r3, [r6, #12] <== NOT EXECUTED
30029540: e1540003 cmp r4, r3 <== NOT EXECUTED
30029544: 8a000028 bhi 300295ec <rtems_rate_monotonic_report_statistics_with_plugin+0x118><== NOT EXECUTED
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,
30029548: e59f818c ldr r8, [pc, #396] ; 300296dc <rtems_rate_monotonic_report_statistics_with_plugin+0x208><== NOT EXECUTED
3002954c: ea000003 b 30029560 <rtems_rate_monotonic_report_statistics_with_plugin+0x8c><== NOT EXECUTED
/*
* 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 ;
30029550: e596300c ldr r3, [r6, #12] <== NOT EXECUTED
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
30029554: e2844001 add r4, r4, #1 <== NOT EXECUTED
/*
* 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 ;
30029558: e1530004 cmp r3, r4 <== NOT EXECUTED
3002955c: 3a000022 bcc 300295ec <rtems_rate_monotonic_report_statistics_with_plugin+0x118><== NOT EXECUTED
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
30029560: e1a00004 mov r0, r4 <== NOT EXECUTED
30029564: e28d1010 add r1, sp, #16 <== NOT EXECUTED
30029568: eb0032b8 bl 30036050 <rtems_rate_monotonic_get_statistics> <== NOT EXECUTED
if ( status != RTEMS_SUCCESSFUL )
3002956c: e3500000 cmp r0, #0 <== NOT EXECUTED
30029570: 1afffff6 bne 30029550 <rtems_rate_monotonic_report_statistics_with_plugin+0x7c><== NOT EXECUTED
#if defined(RTEMS_DEBUG)
status = rtems_rate_monotonic_get_status( id, &the_status );
if ( status != RTEMS_SUCCESSFUL )
continue;
#else
(void) rtems_rate_monotonic_get_status( id, &the_status );
30029574: e28d1048 add r1, sp, #72 ; 0x48 <== NOT EXECUTED
30029578: e1a00004 mov r0, r4 <== NOT EXECUTED
3002957c: eb00331e bl 300361fc <rtems_rate_monotonic_get_status> <== NOT EXECUTED
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
30029580: e28d2068 add r2, sp, #104 ; 0x68 <== NOT EXECUTED
30029584: e3a01005 mov r1, #5 <== NOT EXECUTED
30029588: e59d0048 ldr r0, [sp, #72] ; 0x48 <== NOT EXECUTED
3002958c: ebffa42d bl 30012648 <rtems_object_get_name> <== NOT EXECUTED
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
30029590: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED
30029594: e1a02004 mov r2, r4 <== NOT EXECUTED
30029598: e58d0000 str r0, [sp] <== NOT EXECUTED
3002959c: e59d0014 ldr r0, [sp, #20] <== NOT EXECUTED
300295a0: e28d3068 add r3, sp, #104 ; 0x68 <== NOT EXECUTED
300295a4: e59f1134 ldr r1, [pc, #308] ; 300296e0 <rtems_rate_monotonic_report_statistics_with_plugin+0x20c><== NOT EXECUTED
300295a8: e58d0004 str r0, [sp, #4] <== NOT EXECUTED
300295ac: e1a00007 mov r0, r7 <== NOT EXECUTED
300295b0: e1a0e00f mov lr, pc <== NOT EXECUTED
300295b4: e12fff15 bx r5 <== NOT EXECUTED
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
300295b8: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED
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 );
300295bc: e28d0028 add r0, sp, #40 ; 0x28 <== NOT EXECUTED
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
300295c0: e3530000 cmp r3, #0 <== NOT EXECUTED
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 );
300295c4: e28d2060 add r2, sp, #96 ; 0x60 <== NOT EXECUTED
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
(*print)( context, "\n" );
300295c8: e59f1114 ldr r1, [pc, #276] ; 300296e4 <rtems_rate_monotonic_report_statistics_with_plugin+0x210><== NOT EXECUTED
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
300295cc: 1a000008 bne 300295f4 <rtems_rate_monotonic_report_statistics_with_plugin+0x120><== NOT EXECUTED
(*print)( context, "\n" );
300295d0: e1a00007 mov r0, r7 <== NOT EXECUTED
300295d4: e1a0e00f mov lr, pc <== NOT EXECUTED
300295d8: e12fff15 bx r5 <== NOT EXECUTED
/*
* 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 ;
300295dc: e596300c ldr r3, [r6, #12] <== NOT EXECUTED
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
300295e0: e2844001 add r4, r4, #1 <== NOT EXECUTED
/*
* 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 ;
300295e4: e1530004 cmp r3, r4 <== NOT EXECUTED
300295e8: 2affffdc bcs 30029560 <rtems_rate_monotonic_report_statistics_with_plugin+0x8c><== NOT EXECUTED
the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
);
#endif
}
}
}
300295ec: e28dd070 add sp, sp, #112 ; 0x70 <== NOT EXECUTED
300295f0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
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 );
300295f4: e1a01003 mov r1, r3 <== NOT EXECUTED
300295f8: eb00028d bl 3002a034 <_Timespec_Divide_by_integer> <== NOT EXECUTED
(*print)( context,
300295fc: e59de024 ldr lr, [sp, #36] ; 0x24 <== NOT EXECUTED
30029600: e59d1064 ldr r1, [sp, #100] ; 0x64 <== NOT EXECUTED
30029604: e0cc0e98 smull r0, ip, r8, lr <== NOT EXECUTED
30029608: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED
3002960c: e0c03198 smull r3, r0, r8, r1 <== NOT EXECUTED
30029610: e1a0efce asr lr, lr, #31 <== NOT EXECUTED
30029614: e0c3a298 smull sl, r3, r8, r2 <== NOT EXECUTED
30029618: e06ec34c rsb ip, lr, ip, asr #6 <== NOT EXECUTED
3002961c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED
30029620: e59de020 ldr lr, [sp, #32] <== NOT EXECUTED
30029624: e59dc060 ldr ip, [sp, #96] ; 0x60 <== NOT EXECUTED
30029628: e1a01fc1 asr r1, r1, #31 <== NOT EXECUTED
3002962c: e0610340 rsb r0, r1, r0, asr #6 <== NOT EXECUTED
30029630: e1a02fc2 asr r2, r2, #31 <== NOT EXECUTED
30029634: e58dc008 str ip, [sp, #8] <== NOT EXECUTED
30029638: e0623343 rsb r3, r2, r3, asr #6 <== NOT EXECUTED
3002963c: e58de000 str lr, [sp] <== NOT EXECUTED
30029640: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED
30029644: e58d000c str r0, [sp, #12] <== NOT EXECUTED
30029648: e59f1098 ldr r1, [pc, #152] ; 300296e8 <rtems_rate_monotonic_report_statistics_with_plugin+0x214><== NOT EXECUTED
3002964c: e1a00007 mov r0, r7 <== NOT EXECUTED
30029650: e1a0e00f mov lr, pc <== NOT EXECUTED
30029654: e12fff15 bx r5 <== NOT EXECUTED
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);
30029658: e28d0040 add r0, sp, #64 ; 0x40 <== NOT EXECUTED
3002965c: e59d1010 ldr r1, [sp, #16] <== NOT EXECUTED
30029660: e28d2060 add r2, sp, #96 ; 0x60 <== NOT EXECUTED
30029664: eb000272 bl 3002a034 <_Timespec_Divide_by_integer> <== NOT EXECUTED
(*print)( context,
30029668: e59d2064 ldr r2, [sp, #100] ; 0x64 <== NOT EXECUTED
3002966c: e59d103c ldr r1, [sp, #60] ; 0x3c <== NOT EXECUTED
30029670: e0c0a298 smull sl, r0, r8, r2 <== NOT EXECUTED
30029674: e0cec198 smull ip, lr, r8, r1 <== NOT EXECUTED
30029678: e59d3034 ldr r3, [sp, #52] ; 0x34 <== NOT EXECUTED
3002967c: e1a02fc2 asr r2, r2, #31 <== NOT EXECUTED
30029680: e0cca398 smull sl, ip, r8, r3 <== NOT EXECUTED
30029684: e0622340 rsb r2, r2, r0, asr #6 <== NOT EXECUTED
30029688: e1a01fc1 asr r1, r1, #31 <== NOT EXECUTED
3002968c: e59d0038 ldr r0, [sp, #56] ; 0x38 <== NOT EXECUTED
30029690: e061134e rsb r1, r1, lr, asr #6 <== NOT EXECUTED
30029694: e88d0003 stm sp, {r0, r1} <== NOT EXECUTED
30029698: e59d1060 ldr r1, [sp, #96] ; 0x60 <== NOT EXECUTED
3002969c: e1a03fc3 asr r3, r3, #31 <== NOT EXECUTED
300296a0: e58d1008 str r1, [sp, #8] <== NOT EXECUTED
300296a4: e58d200c str r2, [sp, #12] <== NOT EXECUTED
300296a8: e1a00007 mov r0, r7 <== NOT EXECUTED
300296ac: e59f1038 ldr r1, [pc, #56] ; 300296ec <rtems_rate_monotonic_report_statistics_with_plugin+0x218><== NOT EXECUTED
300296b0: e59d2030 ldr r2, [sp, #48] ; 0x30 <== NOT EXECUTED
300296b4: e063334c rsb r3, r3, ip, asr #6 <== NOT EXECUTED
300296b8: e1a0e00f mov lr, pc <== NOT EXECUTED
300296bc: e12fff15 bx r5 <== NOT EXECUTED
300296c0: eaffffa2 b 30029550 <rtems_rate_monotonic_report_statistics_with_plugin+0x7c><== NOT EXECUTED
30029700 <rtems_rate_monotonic_reset_all_statistics>:
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
30029700: e59f3040 ldr r3, [pc, #64] ; 30029748 <rtems_rate_monotonic_reset_all_statistics+0x48><== NOT EXECUTED
/*
* rtems_rate_monotonic_reset_all_statistics
*/
void rtems_rate_monotonic_reset_all_statistics( void )
{
30029704: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
30029708: e5932000 ldr r2, [r3] <== NOT EXECUTED
++level;
3002970c: e2822001 add r2, r2, #1 <== NOT EXECUTED
_Thread_Dispatch_disable_level = level;
30029710: e5832000 str r2, [r3] <== NOT EXECUTED
/*
* 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 ;
30029714: e59f5030 ldr r5, [pc, #48] ; 3002974c <rtems_rate_monotonic_reset_all_statistics+0x4c><== NOT EXECUTED
30029718: e5954008 ldr r4, [r5, #8] <== NOT EXECUTED
3002971c: e595300c ldr r3, [r5, #12] <== NOT EXECUTED
30029720: e1540003 cmp r4, r3 <== NOT EXECUTED
30029724: 8a000005 bhi 30029740 <rtems_rate_monotonic_reset_all_statistics+0x40><== NOT EXECUTED
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
(void) rtems_rate_monotonic_reset_statistics( id );
30029728: e1a00004 mov r0, r4 <== NOT EXECUTED
3002972c: eb000007 bl 30029750 <rtems_rate_monotonic_reset_statistics><== NOT EXECUTED
/*
* 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 ;
30029730: e595300c ldr r3, [r5, #12] <== NOT EXECUTED
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
30029734: e2844001 add r4, r4, #1 <== NOT EXECUTED
/*
* 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 ;
30029738: e1530004 cmp r3, r4 <== NOT EXECUTED
3002973c: 2afffff9 bcs 30029728 <rtems_rate_monotonic_reset_all_statistics+0x28><== NOT EXECUTED
/*
* Done so exit thread dispatching disabled critical section.
*/
_Thread_Enable_dispatch();
}
30029740: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
}
/*
* Done so exit thread dispatching disabled critical section.
*/
_Thread_Enable_dispatch();
30029744: eaff904c b 3000d87c <_Thread_Enable_dispatch> <== NOT EXECUTED
30029750 <rtems_rate_monotonic_reset_statistics>:
*/
rtems_status_code rtems_rate_monotonic_reset_statistics(
rtems_id id
)
{
30029750: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
30029754: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
30029758: e1a01000 mov r1, r0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Rate_monotonic_Control *)
3002975c: e1a0200d mov r2, sp <== NOT EXECUTED
30029760: e59f004c ldr r0, [pc, #76] ; 300297b4 <rtems_rate_monotonic_reset_statistics+0x64><== NOT EXECUTED
30029764: ebff8ca6 bl 3000ca04 <_Objects_Get> <== NOT EXECUTED
Objects_Locations location;
Rate_monotonic_Control *the_period;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
30029768: e59d4000 ldr r4, [sp] <== NOT EXECUTED
3002976c: e1a05000 mov r5, r0 <== NOT EXECUTED
30029770: e3540000 cmp r4, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
30029774: 13a00004 movne r0, #4 <== NOT EXECUTED
{
Objects_Locations location;
Rate_monotonic_Control *the_period;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
30029778: 1a00000b bne 300297ac <rtems_rate_monotonic_reset_statistics+0x5c><== NOT EXECUTED
case OBJECTS_LOCAL:
_Rate_monotonic_Reset_statistics( the_period );
3002977c: e1a01004 mov r1, r4 <== NOT EXECUTED
30029780: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED
30029784: e2850054 add r0, r5, #84 ; 0x54 <== NOT EXECUTED
30029788: eb004ef5 bl 3003d364 <memset> <== NOT EXECUTED
3002978c: e59f2024 ldr r2, [pc, #36] ; 300297b8 <rtems_rate_monotonic_reset_statistics+0x68><== NOT EXECUTED
30029790: e59f3024 ldr r3, [pc, #36] ; 300297bc <rtems_rate_monotonic_reset_statistics+0x6c><== NOT EXECUTED
30029794: e585205c str r2, [r5, #92] ; 0x5c <== NOT EXECUTED
30029798: e5853060 str r3, [r5, #96] ; 0x60 <== NOT EXECUTED
3002979c: e5852074 str r2, [r5, #116] ; 0x74 <== NOT EXECUTED
300297a0: e5853078 str r3, [r5, #120] ; 0x78 <== NOT EXECUTED
_Thread_Enable_dispatch();
300297a4: ebff9034 bl 3000d87c <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
300297a8: e1a00004 mov r0, r4 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
300297ac: e28dd004 add sp, sp, #4 <== NOT EXECUTED
300297b0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
3000ba28 <rtems_rbheap_allocate>:
return big_enough;
}
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{
3000ba28: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
void *ptr = NULL;
rtems_chain_control *free_chain = &control->free_chunk_chain;
rtems_rbtree_control *chunk_tree = &control->chunk_tree;
uintptr_t alignment = control->alignment;
3000ba2c: e5906030 ldr r6, [r0, #48] ; 0x30 <== NOT EXECUTED
return big_enough;
}
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{
3000ba30: e1a05001 mov r5, r1 <== NOT EXECUTED
3000ba34: e1a04000 mov r4, r0 <== NOT EXECUTED
#include <stdlib.h>
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)
{
uintptr_t excess = value % alignment;
3000ba38: e1a00001 mov r0, r1 <== NOT EXECUTED
3000ba3c: e1a01006 mov r1, r6 <== NOT EXECUTED
3000ba40: eb004121 bl 3001becc <__umodsi3> <== NOT EXECUTED
if (excess > 0) {
3000ba44: e3500000 cmp r0, #0 <== NOT EXECUTED
3000ba48: 01a06005 moveq r6, r5 <== NOT EXECUTED
3000ba4c: 03a03001 moveq r3, #1 <== NOT EXECUTED
3000ba50: 0a000004 beq 3000ba68 <rtems_rbheap_allocate+0x40> <== NOT EXECUTED
value += alignment - excess;
3000ba54: e0856006 add r6, r5, r6 <== NOT EXECUTED
3000ba58: e0606006 rsb r6, r0, r6 <== NOT EXECUTED
3000ba5c: e1550006 cmp r5, r6 <== NOT EXECUTED
3000ba60: 83a03000 movhi r3, #0 <== NOT EXECUTED
3000ba64: 93a03001 movls r3, #1 <== NOT EXECUTED
rtems_chain_control *free_chain = &control->free_chunk_chain;
rtems_rbtree_control *chunk_tree = &control->chunk_tree;
uintptr_t alignment = control->alignment;
uintptr_t aligned_size = align_up(alignment, size);
if (size > 0 && size <= aligned_size) {
3000ba68: e3550000 cmp r5, #0 <== NOT EXECUTED
3000ba6c: 03a05000 moveq r5, #0 <== NOT EXECUTED
3000ba70: 12035001 andne r5, r3, #1 <== NOT EXECUTED
3000ba74: e3550000 cmp r5, #0 <== NOT EXECUTED
return big_enough;
}
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{
void *ptr = NULL;
3000ba78: 01a00005 moveq r0, r5 <== NOT EXECUTED
rtems_chain_control *free_chain = &control->free_chunk_chain;
rtems_rbtree_control *chunk_tree = &control->chunk_tree;
uintptr_t alignment = control->alignment;
uintptr_t aligned_size = align_up(alignment, size);
if (size > 0 && size <= aligned_size) {
3000ba7c: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(
Chain_Control *the_chain
)
{
return _Chain_Head( the_chain )->next;
3000ba80: e1a02004 mov r2, r4 <== NOT EXECUTED
3000ba84: e4927004 ldr r7, [r2], #4 <== NOT EXECUTED
{
rtems_chain_node *current = rtems_chain_first(free_chain);
const rtems_chain_node *tail = rtems_chain_tail(free_chain);
rtems_rbheap_chunk *big_enough = NULL;
while (current != tail && big_enough == NULL) {
3000ba88: e1570002 cmp r7, r2 <== NOT EXECUTED
return big_enough;
}
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{
void *ptr = NULL;
3000ba8c: 03a00000 moveq r0, #0 <== NOT EXECUTED
{
rtems_chain_node *current = rtems_chain_first(free_chain);
const rtems_chain_node *tail = rtems_chain_tail(free_chain);
rtems_rbheap_chunk *big_enough = NULL;
while (current != tail && big_enough == NULL) {
3000ba90: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
rtems_rbheap_chunk *free_chunk = (rtems_rbheap_chunk *) current;
if (free_chunk->size >= size) {
3000ba94: e597801c ldr r8, [r7, #28] <== NOT EXECUTED
3000ba98: e1560008 cmp r6, r8 <== NOT EXECUTED
3000ba9c: 8a00001a bhi 3000bb0c <rtems_rbheap_allocate+0xe4> <== NOT EXECUTED
uintptr_t aligned_size = align_up(alignment, size);
if (size > 0 && size <= aligned_size) {
rtems_rbheap_chunk *free_chunk = search_free_chunk(free_chain, aligned_size);
if (free_chunk != NULL) {
3000baa0: e3570000 cmp r7, #0 <== NOT EXECUTED
return big_enough;
}
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{
void *ptr = NULL;
3000baa4: 01a00007 moveq r0, r7 <== NOT EXECUTED
uintptr_t aligned_size = align_up(alignment, size);
if (size > 0 && size <= aligned_size) {
rtems_rbheap_chunk *free_chunk = search_free_chunk(free_chain, aligned_size);
if (free_chunk != NULL) {
3000baa8: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
uintptr_t free_size = free_chunk->size;
if (free_size > aligned_size) {
3000baac: e1580006 cmp r8, r6 <== NOT EXECUTED
3000bab0: 9a00001c bls 3000bb28 <rtems_rbheap_allocate+0x100> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3000bab4: e1a0a004 mov sl, r4 <== NOT EXECUTED
3000bab8: e5ba500c ldr r5, [sl, #12]! <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
3000babc: e2843010 add r3, r4, #16 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
3000bac0: e1550003 cmp r5, r3 <== NOT EXECUTED
3000bac4: 0a00001f beq 3000bb48 <rtems_rbheap_allocate+0x120> <== NOT EXECUTED
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
3000bac8: e5953000 ldr r3, [r5] <== NOT EXECUTED
head->next = new_first;
3000bacc: e584300c str r3, [r4, #12] <== NOT EXECUTED
new_first->previous = head;
3000bad0: e583a004 str sl, [r3, #4] <== NOT EXECUTED
if (new_chunk != NULL) {
uintptr_t new_free_size = free_size - aligned_size;
free_chunk->size = new_free_size;
new_chunk->begin = free_chunk->begin + new_free_size;
3000bad4: e5972018 ldr r2, [r7, #24] <== NOT EXECUTED
if (free_size > aligned_size) {
rtems_rbheap_chunk *new_chunk = get_chunk(control);
if (new_chunk != NULL) {
uintptr_t new_free_size = free_size - aligned_size;
3000bad8: e0668008 rsb r8, r6, r8 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
3000badc: e3a03000 mov r3, #0 <== NOT EXECUTED
free_chunk->size = new_free_size;
new_chunk->begin = free_chunk->begin + new_free_size;
3000bae0: e0882002 add r2, r8, r2 <== NOT EXECUTED
3000bae4: e1a01005 mov r1, r5 <== NOT EXECUTED
rtems_rbheap_chunk *new_chunk = get_chunk(control);
if (new_chunk != NULL) {
uintptr_t new_free_size = free_size - aligned_size;
free_chunk->size = new_free_size;
3000bae8: e587801c str r8, [r7, #28] <== NOT EXECUTED
new_chunk->begin = free_chunk->begin + new_free_size;
3000baec: e5852018 str r2, [r5, #24] <== NOT EXECUTED
new_chunk->size = aligned_size;
3000baf0: e585601c str r6, [r5, #28] <== NOT EXECUTED
3000baf4: e5853004 str r3, [r5, #4] <== NOT EXECUTED
3000baf8: e4813008 str r3, [r1], #8 <== NOT EXECUTED
static void insert_into_tree(
rtems_rbtree_control *tree,
rtems_rbheap_chunk *chunk
)
{
_RBTree_Insert_unprotected(tree, &chunk->tree_node);
3000bafc: e2840018 add r0, r4, #24 <== NOT EXECUTED
3000bb00: eb0006a7 bl 3000d5a4 <_RBTree_Insert_unprotected> <== NOT EXECUTED
free_chunk->size = new_free_size;
new_chunk->begin = free_chunk->begin + new_free_size;
new_chunk->size = aligned_size;
rtems_chain_set_off_chain(&new_chunk->chain_node);
insert_into_tree(chunk_tree, new_chunk);
ptr = (void *) new_chunk->begin;
3000bb04: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED
3000bb08: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Next(
Chain_Node *the_node
)
{
return the_node->next;
3000bb0c: e5977000 ldr r7, [r7] <== NOT EXECUTED
{
rtems_chain_node *current = rtems_chain_first(free_chain);
const rtems_chain_node *tail = rtems_chain_tail(free_chain);
rtems_rbheap_chunk *big_enough = NULL;
while (current != tail && big_enough == NULL) {
3000bb10: e0523007 subs r3, r2, r7 <== NOT EXECUTED
3000bb14: 13a03001 movne r3, #1 <== NOT EXECUTED
3000bb18: e3530000 cmp r3, #0 <== NOT EXECUTED
3000bb1c: 1affffdc bne 3000ba94 <rtems_rbheap_allocate+0x6c> <== NOT EXECUTED
return big_enough;
}
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{
void *ptr = NULL;
3000bb20: e1a00003 mov r0, r3 <== NOT EXECUTED
3000bb24: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
3000bb28: e3a03000 mov r3, #0 <== NOT EXECUTED
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
3000bb2c: e8970006 ldm r7, {r1, r2} <== NOT EXECUTED
ptr = (void *) new_chunk->begin;
}
} else {
rtems_chain_extract_unprotected(&free_chunk->chain_node);
rtems_chain_set_off_chain(&free_chunk->chain_node);
ptr = (void *) free_chunk->begin;
3000bb30: e5970018 ldr r0, [r7, #24] <== NOT EXECUTED
next->previous = previous;
3000bb34: e5812004 str r2, [r1, #4] <== NOT EXECUTED
previous->next = next;
3000bb38: e5821000 str r1, [r2] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(
Chain_Node *node
)
{
node->next = node->previous = NULL;
3000bb3c: e5873004 str r3, [r7, #4] <== NOT EXECUTED
3000bb40: e5873000 str r3, [r7] <== NOT EXECUTED
3000bb44: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
{
rtems_chain_control *chain = &control->spare_descriptor_chain;
rtems_chain_node *chunk = rtems_chain_get_unprotected(chain);
if (chunk == NULL) {
(*control->extend_descriptors)(control);
3000bb48: e1a00004 mov r0, r4 <== NOT EXECUTED
3000bb4c: e1a0e00f mov lr, pc <== NOT EXECUTED
3000bb50: e594f034 ldr pc, [r4, #52] ; 0x34 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3000bb54: e594300c ldr r3, [r4, #12] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
3000bb58: e1550003 cmp r5, r3 <== NOT EXECUTED
3000bb5c: 0a000004 beq 3000bb74 <rtems_rbheap_allocate+0x14c> <== NOT EXECUTED
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
3000bb60: e5932000 ldr r2, [r3] <== NOT EXECUTED
head->next = new_first;
new_first->previous = head;
3000bb64: e1a05003 mov r5, r3 <== NOT EXECUTED
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
head->next = new_first;
3000bb68: e584200c str r2, [r4, #12] <== NOT EXECUTED
new_first->previous = head;
3000bb6c: e582a004 str sl, [r2, #4] <== NOT EXECUTED
3000bb70: eaffffd7 b 3000bad4 <rtems_rbheap_allocate+0xac> <== NOT EXECUTED
return big_enough;
}
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{
void *ptr = NULL;
3000bb74: e3a00000 mov r0, #0 <== NOT EXECUTED
}
}
}
return ptr;
}
3000bb78: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
3000bcfc <rtems_rbheap_extend_descriptors_never>:
}
void rtems_rbheap_extend_descriptors_never(rtems_rbheap_control *control)
{
/* Do nothing */
}
3000bcfc: e12fff1e bx lr <== NOT EXECUTED
3000bd00 <rtems_rbheap_extend_descriptors_with_malloc>:
void rtems_rbheap_extend_descriptors_with_malloc(rtems_rbheap_control *control)
{
3000bd00: e92d4010 push {r4, lr} <== NOT EXECUTED
3000bd04: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));
3000bd08: e3a00020 mov r0, #32 <== NOT EXECUTED
3000bd0c: ebffed6a bl 300072bc <malloc> <== NOT EXECUTED
if (chunk != NULL) {
3000bd10: e3500000 cmp r0, #0 <== NOT EXECUTED
3000bd14: 08bd8010 popeq {r4, pc} <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
3000bd18: e594300c ldr r3, [r4, #12] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert_unprotected(_Chain_Head(the_chain), the_node);
3000bd1c: e284200c add r2, r4, #12 <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
3000bd20: e5802004 str r2, [r0, #4] <== NOT EXECUTED
before_node = after_node->next;
after_node->next = the_node;
3000bd24: e584000c str r0, [r4, #12] <== NOT EXECUTED
the_node->next = before_node;
before_node->previous = the_node;
3000bd28: e5830004 str r0, [r3, #4] <== NOT EXECUTED
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
3000bd2c: e5803000 str r3, [r0] <== NOT EXECUTED
3000bd30: e8bd8010 pop {r4, pc} <== NOT EXECUTED
3000bb7c <rtems_rbheap_free>:
_RBTree_Extract_unprotected(chunk_tree, &b->tree_node);
}
}
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{
3000bb7c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (ptr != NULL) {
3000bb80: e3510000 cmp r1, #0 <== NOT EXECUTED
_RBTree_Extract_unprotected(chunk_tree, &b->tree_node);
}
}
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{
3000bb84: e1a04000 mov r4, r0 <== NOT EXECUTED
3000bb88: e24dd020 sub sp, sp, #32 <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
3000bb8c: 01a00001 moveq r0, r1 <== NOT EXECUTED
if (ptr != NULL) {
3000bb90: 0a000022 beq 3000bc20 <rtems_rbheap_free+0xa4> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Find_unprotected(
RBTree_Control *the_rbtree,
RBTree_Node *the_node
)
{
RBTree_Node* iter_node = the_rbtree->root;
3000bb94: e594501c ldr r5, [r4, #28] <== NOT EXECUTED
#define NULL_PAGE rtems_rbheap_chunk_of_node(NULL)
static rtems_rbheap_chunk *find(rtems_rbtree_control *chunk_tree, uintptr_t key)
{
rtems_rbheap_chunk chunk = { .begin = key };
3000bb98: e3a06000 mov r6, #0 <== NOT EXECUTED
RBTree_Node* found = NULL;
int compare_result;
while (iter_node) {
3000bb9c: e1550006 cmp r5, r6 <== NOT EXECUTED
3000bba0: e58d6000 str r6, [sp] <== NOT EXECUTED
3000bba4: e58d6004 str r6, [sp, #4] <== NOT EXECUTED
3000bba8: e58d6008 str r6, [sp, #8] <== NOT EXECUTED
3000bbac: e58d600c str r6, [sp, #12] <== NOT EXECUTED
3000bbb0: e58d6010 str r6, [sp, #16] <== NOT EXECUTED
3000bbb4: e58d6014 str r6, [sp, #20] <== NOT EXECUTED
3000bbb8: e58d601c str r6, [sp, #28] <== NOT EXECUTED
3000bbbc: e58d1018 str r1, [sp, #24] <== NOT EXECUTED
3000bbc0: 0a00001c beq 3000bc38 <rtems_rbheap_free+0xbc> <== NOT EXECUTED
compare_result = the_rbtree->compare_function(the_node, iter_node);
3000bbc4: e1a01005 mov r1, r5 <== NOT EXECUTED
3000bbc8: e28d0008 add r0, sp, #8 <== NOT EXECUTED
3000bbcc: e1a0e00f mov lr, pc <== NOT EXECUTED
3000bbd0: e594f028 ldr pc, [r4, #40] ; 0x28 <== NOT EXECUTED
if ( _RBTree_Is_equal( compare_result ) ) {
3000bbd4: e3500000 cmp r0, #0 <== NOT EXECUTED
3000bbd8: 1a000003 bne 3000bbec <rtems_rbheap_free+0x70> <== NOT EXECUTED
found = iter_node;
if ( the_rbtree->is_unique )
3000bbdc: e5d4302c ldrb r3, [r4, #44] ; 0x2c <== NOT EXECUTED
3000bbe0: e1a06005 mov r6, r5 <== NOT EXECUTED
3000bbe4: e3530000 cmp r3, #0 <== NOT EXECUTED
3000bbe8: 1a00000e bne 3000bc28 <rtems_rbheap_free+0xac> <== NOT EXECUTED
break;
}
RBTree_Direction dir =
(RBTree_Direction) _RBTree_Is_greater( compare_result );
iter_node = iter_node->child[dir];
3000bbec: e3500000 cmp r0, #0 <== NOT EXECUTED
3000bbf0: c3a00008 movgt r0, #8 <== NOT EXECUTED
3000bbf4: d3a00004 movle r0, #4 <== NOT EXECUTED
3000bbf8: e7905005 ldr r5, [r0, r5] <== NOT EXECUTED
)
{
RBTree_Node* iter_node = the_rbtree->root;
RBTree_Node* found = NULL;
int compare_result;
while (iter_node) {
3000bbfc: e3550000 cmp r5, #0 <== NOT EXECUTED
3000bc00: 1affffef bne 3000bbc4 <rtems_rbheap_free+0x48> <== NOT EXECUTED
return rtems_rbheap_chunk_of_node(
3000bc04: e2465008 sub r5, r6, #8 <== NOT EXECUTED
if (ptr != NULL) {
rtems_chain_control *free_chain = &control->free_chunk_chain;
rtems_rbtree_control *chunk_tree = &control->chunk_tree;
rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr);
if (chunk != NULL_PAGE) {
3000bc08: e3750008 cmn r5, #8 <== NOT EXECUTED
3000bc0c: 0a000009 beq 3000bc38 <rtems_rbheap_free+0xbc> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(
const Chain_Node *node
)
{
return (node->next == NULL) && (node->previous == NULL);
3000bc10: e5163008 ldr r3, [r6, #-8] <== NOT EXECUTED
3000bc14: e3530000 cmp r3, #0 <== NOT EXECUTED
3000bc18: 0a000008 beq 3000bc40 <rtems_rbheap_free+0xc4> <== NOT EXECUTED
check_and_merge(free_chain, chunk_tree, chunk, succ);
add_to_chain(free_chain, chunk);
check_and_merge(free_chain, chunk_tree, chunk, pred);
} else {
sc = RTEMS_INCORRECT_STATE;
3000bc1c: e3a0000e mov r0, #14 <== NOT EXECUTED
sc = RTEMS_INVALID_ID;
}
}
return sc;
}
3000bc20: e28dd020 add sp, sp, #32 <== NOT EXECUTED
3000bc24: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
compare_result = the_rbtree->compare_function(the_node, iter_node);
if ( _RBTree_Is_equal( compare_result ) ) {
found = iter_node;
if ( the_rbtree->is_unique )
3000bc28: e1a06005 mov r6, r5 <== NOT EXECUTED
static rtems_rbheap_chunk *find(rtems_rbtree_control *chunk_tree, uintptr_t key)
{
rtems_rbheap_chunk chunk = { .begin = key };
return rtems_rbheap_chunk_of_node(
3000bc2c: e2465008 sub r5, r6, #8 <== NOT EXECUTED
if (ptr != NULL) {
rtems_chain_control *free_chain = &control->free_chunk_chain;
rtems_rbtree_control *chunk_tree = &control->chunk_tree;
rtems_rbheap_chunk *chunk = find(chunk_tree, (uintptr_t) ptr);
if (chunk != NULL_PAGE) {
3000bc30: e3750008 cmn r5, #8 <== NOT EXECUTED
3000bc34: 1afffff5 bne 3000bc10 <rtems_rbheap_free+0x94> <== NOT EXECUTED
check_and_merge(free_chain, chunk_tree, chunk, pred);
} else {
sc = RTEMS_INCORRECT_STATE;
}
} else {
sc = RTEMS_INVALID_ID;
3000bc38: e3a00004 mov r0, #4 <== NOT EXECUTED
3000bc3c: eafffff7 b 3000bc20 <rtems_rbheap_free+0xa4> <== NOT EXECUTED
3000bc40: e5951004 ldr r1, [r5, #4] <== NOT EXECUTED
3000bc44: e3510000 cmp r1, #0 <== NOT EXECUTED
3000bc48: 1afffff3 bne 3000bc1c <rtems_rbheap_free+0xa0> <== NOT EXECUTED
static rtems_rbheap_chunk *get_next(
const rtems_rbheap_chunk *chunk,
RBTree_Direction dir
)
{
return rtems_rbheap_chunk_of_node(
3000bc4c: e1a00006 mov r0, r6 <== NOT EXECUTED
3000bc50: eb00070e bl 3000d890 <_RBTree_Next_unprotected> <== NOT EXECUTED
3000bc54: e3a01001 mov r1, #1 <== NOT EXECUTED
3000bc58: e1a08000 mov r8, r0 <== NOT EXECUTED
3000bc5c: e1a00006 mov r0, r6 <== NOT EXECUTED
3000bc60: eb00070a bl 3000d890 <_RBTree_Next_unprotected> <== NOT EXECUTED
3000bc64: e2403008 sub r3, r0, #8 <== NOT EXECUTED
rtems_rbtree_control *chunk_tree,
rtems_rbheap_chunk *a,
rtems_rbheap_chunk *b
)
{
if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) {
3000bc68: e3730008 cmn r3, #8 <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (ptr != NULL) {
rtems_chain_control *free_chain = &control->free_chunk_chain;
rtems_rbtree_control *chunk_tree = &control->chunk_tree;
3000bc6c: e2847018 add r7, r4, #24 <== NOT EXECUTED
static rtems_rbheap_chunk *get_next(
const rtems_rbheap_chunk *chunk,
RBTree_Direction dir
)
{
return rtems_rbheap_chunk_of_node(
3000bc70: e2486008 sub r6, r8, #8 <== NOT EXECUTED
rtems_rbtree_control *chunk_tree,
rtems_rbheap_chunk *a,
rtems_rbheap_chunk *b
)
{
if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) {
3000bc74: 0a000006 beq 3000bc94 <rtems_rbheap_free+0x118> <== NOT EXECUTED
3000bc78: e5102008 ldr r2, [r0, #-8] <== NOT EXECUTED
3000bc7c: e3520000 cmp r2, #0 <== NOT EXECUTED
3000bc80: 0a000019 beq 3000bcec <rtems_rbheap_free+0x170> <== NOT EXECUTED
} else {
sc = RTEMS_INVALID_ID;
}
}
return sc;
3000bc84: e1a00004 mov r0, r4 <== NOT EXECUTED
3000bc88: e1a01007 mov r1, r7 <== NOT EXECUTED
3000bc8c: e1a02005 mov r2, r5 <== NOT EXECUTED
3000bc90: ebfffefb bl 3000b884 <check_and_merge.part.1> <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
3000bc94: e5943000 ldr r3, [r4] <== NOT EXECUTED
rtems_rbtree_control *chunk_tree,
rtems_rbheap_chunk *a,
rtems_rbheap_chunk *b
)
{
if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) {
3000bc98: e3760008 cmn r6, #8 <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
3000bc9c: e5854004 str r4, [r5, #4] <== NOT EXECUTED
before_node = after_node->next;
after_node->next = the_node;
3000bca0: e5845000 str r5, [r4] <== NOT EXECUTED
the_node->next = before_node;
before_node->previous = the_node;
3000bca4: e5835004 str r5, [r3, #4] <== NOT EXECUTED
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
the_node->next = before_node;
3000bca8: e5853000 str r3, [r5] <== NOT EXECUTED
}
}
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
3000bcac: 03a00000 moveq r0, #0 <== NOT EXECUTED
rtems_rbtree_control *chunk_tree,
rtems_rbheap_chunk *a,
rtems_rbheap_chunk *b
)
{
if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) {
3000bcb0: 0affffda beq 3000bc20 <rtems_rbheap_free+0xa4> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(
const Chain_Node *node
)
{
return (node->next == NULL) && (node->previous == NULL);
3000bcb4: e5183008 ldr r3, [r8, #-8] <== NOT EXECUTED
3000bcb8: e3530000 cmp r3, #0 <== NOT EXECUTED
3000bcbc: 0a000006 beq 3000bcdc <rtems_rbheap_free+0x160> <== NOT EXECUTED
} else {
sc = RTEMS_INVALID_ID;
}
}
return sc;
3000bcc0: e1a00004 mov r0, r4 <== NOT EXECUTED
3000bcc4: e1a01007 mov r1, r7 <== NOT EXECUTED
3000bcc8: e1a02005 mov r2, r5 <== NOT EXECUTED
3000bccc: e1a03006 mov r3, r6 <== NOT EXECUTED
3000bcd0: ebfffeeb bl 3000b884 <check_and_merge.part.1> <== NOT EXECUTED
}
}
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
3000bcd4: e3a00000 mov r0, #0 <== NOT EXECUTED
3000bcd8: eaffffd0 b 3000bc20 <rtems_rbheap_free+0xa4> <== NOT EXECUTED
3000bcdc: e5960004 ldr r0, [r6, #4] <== NOT EXECUTED
3000bce0: e3500000 cmp r0, #0 <== NOT EXECUTED
3000bce4: 1afffff5 bne 3000bcc0 <rtems_rbheap_free+0x144> <== NOT EXECUTED
3000bce8: eaffffcc b 3000bc20 <rtems_rbheap_free+0xa4> <== NOT EXECUTED
3000bcec: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED
3000bcf0: e3520000 cmp r2, #0 <== NOT EXECUTED
3000bcf4: 1affffe2 bne 3000bc84 <rtems_rbheap_free+0x108> <== NOT EXECUTED
3000bcf8: eaffffe5 b 3000bc94 <rtems_rbheap_free+0x118> <== NOT EXECUTED
3000b8e4 <rtems_rbheap_initialize>:
uintptr_t area_size,
uintptr_t alignment,
rtems_rbheap_extend_descriptors extend_descriptors,
void *handler_arg
)
{
3000b8e4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (alignment > 0) {
3000b8e8: e2536000 subs r6, r3, #0 <== NOT EXECUTED
uintptr_t area_size,
uintptr_t alignment,
rtems_rbheap_extend_descriptors extend_descriptors,
void *handler_arg
)
{
3000b8ec: e1a05000 mov r5, r0 <== NOT EXECUTED
3000b8f0: e1a04001 mov r4, r1 <== NOT EXECUTED
3000b8f4: e59d7024 ldr r7, [sp, #36] ; 0x24 <== NOT EXECUTED
}
} else {
sc = RTEMS_INVALID_ADDRESS;
}
} else {
sc = RTEMS_INVALID_NUMBER;
3000b8f8: 03a0000a moveq r0, #10 <== NOT EXECUTED
void *handler_arg
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (alignment > 0) {
3000b8fc: 08bd8ff0 popeq {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
#include <stdlib.h>
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)
{
uintptr_t excess = value % alignment;
3000b900: e1a00001 mov r0, r1 <== NOT EXECUTED
3000b904: e1a01006 mov r1, r6 <== NOT EXECUTED
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (alignment > 0) {
uintptr_t begin = (uintptr_t) area_begin;
uintptr_t end = begin + area_size;
3000b908: e0848002 add r8, r4, r2 <== NOT EXECUTED
#include <stdlib.h>
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)
{
uintptr_t excess = value % alignment;
3000b90c: eb00416e bl 3001becc <__umodsi3> <== NOT EXECUTED
if (excess > 0) {
3000b910: e3500000 cmp r0, #0 <== NOT EXECUTED
3000b914: 01a0a004 moveq sl, r4 <== NOT EXECUTED
3000b918: 03a03001 moveq r3, #1 <== NOT EXECUTED
3000b91c: 1a000006 bne 3000b93c <rtems_rbheap_initialize+0x58> <== NOT EXECUTED
uintptr_t begin = (uintptr_t) area_begin;
uintptr_t end = begin + area_size;
uintptr_t aligned_begin = align_up(alignment, begin);
uintptr_t aligned_end = align_down(alignment, end);
if (begin < end && begin <= aligned_begin && aligned_begin < aligned_end) {
3000b920: e1540008 cmp r4, r8 <== NOT EXECUTED
3000b924: 23a04000 movcs r4, #0 <== NOT EXECUTED
3000b928: 32034001 andcc r4, r3, #1 <== NOT EXECUTED
3000b92c: e3540000 cmp r4, #0 <== NOT EXECUTED
3000b930: 1a00000b bne 3000b964 <rtems_rbheap_initialize+0x80> <== NOT EXECUTED
insert_into_tree(chunk_tree, first);
} else {
sc = RTEMS_NO_MEMORY;
}
} else {
sc = RTEMS_INVALID_ADDRESS;
3000b934: e3a00009 mov r0, #9 <== NOT EXECUTED
3000b938: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)
{
uintptr_t excess = value % alignment;
if (excess > 0) {
value += alignment - excess;
3000b93c: e084a006 add sl, r4, r6 <== NOT EXECUTED
3000b940: e060a00a rsb sl, r0, sl <== NOT EXECUTED
3000b944: e154000a cmp r4, sl <== NOT EXECUTED
3000b948: 83a03000 movhi r3, #0 <== NOT EXECUTED
3000b94c: 93a03001 movls r3, #1 <== NOT EXECUTED
uintptr_t begin = (uintptr_t) area_begin;
uintptr_t end = begin + area_size;
uintptr_t aligned_begin = align_up(alignment, begin);
uintptr_t aligned_end = align_down(alignment, end);
if (begin < end && begin <= aligned_begin && aligned_begin < aligned_end) {
3000b950: e1540008 cmp r4, r8 <== NOT EXECUTED
3000b954: 23a04000 movcs r4, #0 <== NOT EXECUTED
3000b958: 32034001 andcc r4, r3, #1 <== NOT EXECUTED
3000b95c: e3540000 cmp r4, #0 <== NOT EXECUTED
3000b960: 0afffff3 beq 3000b934 <rtems_rbheap_initialize+0x50> <== NOT EXECUTED
return value;
}
static uintptr_t align_down(uintptr_t alignment, uintptr_t value)
{
uintptr_t excess = value % alignment;
3000b964: e1a00008 mov r0, r8 <== NOT EXECUTED
3000b968: e1a01006 mov r1, r6 <== NOT EXECUTED
3000b96c: eb004156 bl 3001becc <__umodsi3> <== NOT EXECUTED
return value - excess;
3000b970: e0608008 rsb r8, r0, r8 <== NOT EXECUTED
uintptr_t begin = (uintptr_t) area_begin;
uintptr_t end = begin + area_size;
uintptr_t aligned_begin = align_up(alignment, begin);
uintptr_t aligned_end = align_down(alignment, end);
if (begin < end && begin <= aligned_begin && aligned_begin < aligned_end) {
3000b974: e15a0008 cmp sl, r8 <== NOT EXECUTED
3000b978: 2affffed bcs 3000b934 <rtems_rbheap_initialize+0x50> <== NOT EXECUTED
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
3000b97c: e3a04000 mov r4, #0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
3000b980: e2859010 add r9, r5, #16 <== NOT EXECUTED
3000b984: e2853004 add r3, r5, #4 <== NOT EXECUTED
head->next = tail;
3000b988: e8850238 stm r5, {r3, r4, r5, r9} <== NOT EXECUTED
{
the_rbtree->permanent_null = NULL;
the_rbtree->root = NULL;
the_rbtree->first[0] = NULL;
the_rbtree->first[1] = NULL;
the_rbtree->compare_function = compare_function;
3000b98c: e59f3090 ldr r3, [pc, #144] ; 3000ba24 <rtems_rbheap_initialize+0x140><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
3000b990: e285b00c add fp, r5, #12 <== NOT EXECUTED
3000b994: e5853028 str r3, [r5, #40] ; 0x28 <== NOT EXECUTED
the_rbtree->is_unique = is_unique;
3000b998: e3a03001 mov r3, #1 <== NOT EXECUTED
3000b99c: e5c5302c strb r3, [r5, #44] ; 0x2c <== NOT EXECUTED
rtems_chain_initialize_empty(free_chain);
rtems_chain_initialize_empty(&control->spare_descriptor_chain);
rtems_rbtree_initialize_empty(chunk_tree, chunk_compare, true);
control->alignment = alignment;
control->handler_arg = handler_arg;
3000b9a0: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
3000b9a4: e5854010 str r4, [r5, #16] <== NOT EXECUTED
tail->previous = head;
3000b9a8: e585b014 str fp, [r5, #20] <== NOT EXECUTED
RBTree_Control *the_rbtree,
RBTree_Compare_function compare_function,
bool is_unique
)
{
the_rbtree->permanent_null = NULL;
3000b9ac: e5854018 str r4, [r5, #24] <== NOT EXECUTED
the_rbtree->root = NULL;
3000b9b0: e585401c str r4, [r5, #28] <== NOT EXECUTED
the_rbtree->first[0] = NULL;
3000b9b4: e5854020 str r4, [r5, #32] <== NOT EXECUTED
the_rbtree->first[1] = NULL;
3000b9b8: e5854024 str r4, [r5, #36] ; 0x24 <== NOT EXECUTED
rtems_rbheap_chunk *first = NULL;
rtems_chain_initialize_empty(free_chain);
rtems_chain_initialize_empty(&control->spare_descriptor_chain);
rtems_rbtree_initialize_empty(chunk_tree, chunk_compare, true);
control->alignment = alignment;
3000b9bc: e5856030 str r6, [r5, #48] ; 0x30 <== NOT EXECUTED
control->handler_arg = handler_arg;
3000b9c0: e5853038 str r3, [r5, #56] ; 0x38 <== NOT EXECUTED
control->extend_descriptors = extend_descriptors;
3000b9c4: e5857034 str r7, [r5, #52] ; 0x34 <== NOT EXECUTED
{
rtems_chain_control *chain = &control->spare_descriptor_chain;
rtems_chain_node *chunk = rtems_chain_get_unprotected(chain);
if (chunk == NULL) {
(*control->extend_descriptors)(control);
3000b9c8: e1a00005 mov r0, r5 <== NOT EXECUTED
3000b9cc: e1a0e00f mov lr, pc <== NOT EXECUTED
3000b9d0: e12fff17 bx r7 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_head( the_chain )->next;
3000b9d4: e595100c ldr r1, [r5, #12] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
3000b9d8: e1590001 cmp r9, r1 <== NOT EXECUTED
3000b9dc: 0a00000e beq 3000ba1c <rtems_rbheap_initialize+0x138> <== NOT EXECUTED
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
3000b9e0: e5912000 ldr r2, [r1] <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
3000b9e4: e5953000 ldr r3, [r5] <== NOT EXECUTED
after_node->next = the_node;
3000b9e8: e1a00005 mov r0, r5 <== NOT EXECUTED
control->extend_descriptors = extend_descriptors;
first = get_chunk(control);
if (first != NULL) {
first->begin = aligned_begin;
first->size = aligned_end - aligned_begin;
3000b9ec: e06a8008 rsb r8, sl, r8 <== NOT EXECUTED
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
head->next = new_first;
3000b9f0: e585200c str r2, [r5, #12] <== NOT EXECUTED
new_first->previous = head;
3000b9f4: e582b004 str fp, [r2, #4] <== NOT EXECUTED
control->handler_arg = handler_arg;
control->extend_descriptors = extend_descriptors;
first = get_chunk(control);
if (first != NULL) {
first->begin = aligned_begin;
3000b9f8: e581a018 str sl, [r1, #24] <== NOT EXECUTED
first->size = aligned_end - aligned_begin;
3000b9fc: e581801c str r8, [r1, #28] <== NOT EXECUTED
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
after_node->next = the_node;
3000ba00: e4801018 str r1, [r0], #24 <== NOT EXECUTED
the_node->next = before_node;
3000ba04: e8810028 stm r1, {r3, r5} <== NOT EXECUTED
before_node->previous = the_node;
3000ba08: e5831004 str r1, [r3, #4] <== NOT EXECUTED
static void insert_into_tree(
rtems_rbtree_control *tree,
rtems_rbheap_chunk *chunk
)
{
_RBTree_Insert_unprotected(tree, &chunk->tree_node);
3000ba0c: e2811008 add r1, r1, #8 <== NOT EXECUTED
3000ba10: eb0006e3 bl 3000d5a4 <_RBTree_Insert_unprotected> <== NOT EXECUTED
uintptr_t alignment,
rtems_rbheap_extend_descriptors extend_descriptors,
void *handler_arg
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
3000ba14: e1a00004 mov r0, r4 <== NOT EXECUTED
3000ba18: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
first->begin = aligned_begin;
first->size = aligned_end - aligned_begin;
add_to_chain(free_chain, first);
insert_into_tree(chunk_tree, first);
} else {
sc = RTEMS_NO_MEMORY;
3000ba1c: e3a0001a mov r0, #26 <== NOT EXECUTED
} else {
sc = RTEMS_INVALID_NUMBER;
}
return sc;
}
3000ba20: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
300192ec <rtems_region_create>:
uintptr_t length,
uintptr_t page_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
300192ec: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
rtems_status_code return_status;
Region_Control *the_region;
if ( !rtems_is_name_valid( name ) )
300192f0: e2508000 subs r8, r0, #0
uintptr_t length,
uintptr_t page_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
300192f4: e24dd004 sub sp, sp, #4
300192f8: e1a04001 mov r4, r1
300192fc: e1a06002 mov r6, r2
30019300: e1a05003 mov r5, r3
30019304: e59d7028 ldr r7, [sp, #40] ; 0x28
rtems_status_code return_status;
Region_Control *the_region;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
30019308: 03a04003 moveq r4, #3
)
{
rtems_status_code return_status;
Region_Control *the_region;
if ( !rtems_is_name_valid( name ) )
3001930c: 1a000002 bne 3001931c <rtems_region_create+0x30>
}
}
_RTEMS_Unlock_allocator();
return return_status;
}
30019310: e1a00004 mov r0, r4
30019314: e28dd004 add sp, sp, #4
30019318: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
Region_Control *the_region;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !starting_address )
3001931c: e3540000 cmp r4, #0
30019320: 0a00001a beq 30019390 <rtems_region_create+0xa4>
return RTEMS_INVALID_ADDRESS;
if ( !id )
30019324: e59d202c ldr r2, [sp, #44] ; 0x2c
30019328: e3520000 cmp r2, #0
3001932c: 0a000017 beq 30019390 <rtems_region_create+0xa4>
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator(); /* to prevent deletion */
30019330: e59f90c0 ldr r9, [pc, #192] ; 300193f8 <rtems_region_create+0x10c>
* This function allocates a region control block from
* the inactive chain of free region control blocks.
*/
RTEMS_INLINE_ROUTINE Region_Control *_Region_Allocate( void )
{
return (Region_Control *) _Objects_Allocate( &_Region_Information );
30019334: e59fb0c0 ldr fp, [pc, #192] ; 300193fc <rtems_region_create+0x110>
30019338: e5990000 ldr r0, [r9]
3001933c: eb0009ea bl 3001baec <_API_Mutex_Lock>
30019340: e1a0000b mov r0, fp
30019344: eb00102f bl 3001d408 <_Objects_Allocate>
the_region = _Region_Allocate();
if ( !the_region )
30019348: e250a000 subs sl, r0, #0
return_status = RTEMS_TOO_MANY;
3001934c: 03a04005 moveq r4, #5
_RTEMS_Lock_allocator(); /* to prevent deletion */
the_region = _Region_Allocate();
if ( !the_region )
30019350: 0a00000b beq 30019384 <rtems_region_create+0x98>
return_status = RTEMS_TOO_MANY;
else {
the_region->maximum_segment_size = _Heap_Initialize(
30019354: e28a0068 add r0, sl, #104 ; 0x68
30019358: e1a01004 mov r1, r4
3001935c: e1a02006 mov r2, r6
30019360: e1a03005 mov r3, r5
30019364: eb000eff bl 3001cf68 <_Heap_Initialize>
&the_region->Memory, starting_address, length, page_size
);
if ( !the_region->maximum_segment_size ) {
30019368: e3500000 cmp r0, #0
if ( !the_region )
return_status = RTEMS_TOO_MANY;
else {
the_region->maximum_segment_size = _Heap_Initialize(
3001936c: e58a005c str r0, [sl, #92] ; 0x5c
&the_region->Memory, starting_address, length, page_size
);
if ( !the_region->maximum_segment_size ) {
30019370: 1a000008 bne 30019398 <rtems_region_create+0xac>
*/
RTEMS_INLINE_ROUTINE void _Region_Free (
Region_Control *the_region
)
{
_Objects_Free( &_Region_Information, &the_region->Object );
30019374: e1a0000b mov r0, fp <== NOT EXECUTED
30019378: e1a0100a mov r1, sl <== NOT EXECUTED
3001937c: eb0010ff bl 3001d780 <_Objects_Free> <== NOT EXECUTED
_Region_Free( the_region );
return_status = RTEMS_INVALID_SIZE;
30019380: e3a04008 mov r4, #8 <== NOT EXECUTED
*id = the_region->Object.id;
return_status = RTEMS_SUCCESSFUL;
}
}
_RTEMS_Unlock_allocator();
30019384: e5990000 ldr r0, [r9]
30019388: eb0009f3 bl 3001bb5c <_API_Mutex_Unlock>
return return_status;
3001938c: eaffffdf b 30019310 <rtems_region_create+0x24>
if ( !starting_address )
return RTEMS_INVALID_ADDRESS;
if ( !id )
return RTEMS_INVALID_ADDRESS;
30019390: e3a04009 mov r4, #9 <== NOT EXECUTED
30019394: eaffffdd b 30019310 <rtems_region_create+0x24> <== NOT EXECUTED
the_region->starting_address = starting_address;
the_region->length = length;
the_region->page_size = page_size;
the_region->attribute_set = attribute_set;
the_region->number_of_used_blocks = 0;
30019398: e3a0c000 mov ip, #0
_Thread_queue_Initialize(
3001939c: e3170004 tst r7, #4
return_status = RTEMS_INVALID_SIZE;
}
else {
the_region->starting_address = starting_address;
300193a0: e58a4050 str r4, [sl, #80] ; 0x50
the_region->length = length;
the_region->page_size = page_size;
the_region->attribute_set = attribute_set;
the_region->number_of_used_blocks = 0;
300193a4: e58ac064 str ip, [sl, #100] ; 0x64
}
else {
the_region->starting_address = starting_address;
the_region->length = length;
300193a8: e58a6054 str r6, [sl, #84] ; 0x54
the_region->page_size = page_size;
300193ac: e58a5058 str r5, [sl, #88] ; 0x58
the_region->attribute_set = attribute_set;
300193b0: e58a7060 str r7, [sl, #96] ; 0x60
the_region->number_of_used_blocks = 0;
_Thread_queue_Initialize(
300193b4: 03a01000 moveq r1, #0
300193b8: 13a01001 movne r1, #1
300193bc: e3a02040 mov r2, #64 ; 0x40
300193c0: e3a03006 mov r3, #6
300193c4: e28a0010 add r0, sl, #16
300193c8: e58dc000 str ip, [sp]
300193cc: eb0016e2 bl 3001ef5c <_Thread_queue_Initialize>
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
300193d0: e59a3008 ldr r3, [sl, #8]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
300193d4: e59b201c ldr r2, [fp, #28]
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
300193d8: e1a01803 lsl r1, r3, #16
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
300193dc: e782a721 str sl, [r2, r1, lsr #14]
&the_region->Object,
(Objects_Name) name
);
*id = the_region->Object.id;
return_status = RTEMS_SUCCESSFUL;
300193e0: e59dc000 ldr ip, [sp]
&_Region_Information,
&the_region->Object,
(Objects_Name) name
);
*id = the_region->Object.id;
300193e4: e59d202c ldr r2, [sp, #44] ; 0x2c
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
300193e8: e58a800c str r8, [sl, #12]
return_status = RTEMS_SUCCESSFUL;
300193ec: e1a0400c mov r4, ip
&_Region_Information,
&the_region->Object,
(Objects_Name) name
);
*id = the_region->Object.id;
300193f0: e5823000 str r3, [r2]
300193f4: eaffffe2 b 30019384 <rtems_region_create+0x98>
30019484 <rtems_region_extend>:
rtems_status_code rtems_region_extend(
rtems_id id,
void *starting_address,
uintptr_t length
)
{
30019484: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
uintptr_t amount_extended;
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
if ( !starting_address )
30019488: e2518000 subs r8, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_region_extend(
rtems_id id,
void *starting_address,
uintptr_t length
)
{
3001948c: e1a05000 mov r5, r0 <== NOT EXECUTED
30019490: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
30019494: e1a07002 mov r7, r2 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
if ( !starting_address )
return RTEMS_INVALID_ADDRESS;
30019498: 03a05009 moveq r5, #9 <== NOT EXECUTED
uintptr_t amount_extended;
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
if ( !starting_address )
3001949c: 0a00001b beq 30019510 <rtems_region_extend+0x8c> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator(); /* to prevent deletion */
300194a0: e59f4074 ldr r4, [pc, #116] ; 3001951c <rtems_region_extend+0x98><== NOT EXECUTED
300194a4: e5940000 ldr r0, [r4] <== NOT EXECUTED
300194a8: eb00098f bl 3001baec <_API_Mutex_Lock> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Region_Control *_Region_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Region_Control *)
300194ac: e1a01005 mov r1, r5 <== NOT EXECUTED
300194b0: e59f0068 ldr r0, [pc, #104] ; 30019520 <rtems_region_extend+0x9c><== NOT EXECUTED
300194b4: e1a0200d mov r2, sp <== NOT EXECUTED
300194b8: eb001107 bl 3001d8dc <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
300194bc: e59d5000 ldr r5, [sp] <== NOT EXECUTED
300194c0: e1a06000 mov r6, r0 <== NOT EXECUTED
300194c4: e3550000 cmp r5, #0 <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
300194c8: 13a05004 movne r5, #4 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator(); /* to prevent deletion */
the_region = _Region_Get( id, &location );
switch ( location ) {
300194cc: 1a00000d bne 30019508 <rtems_region_extend+0x84> <== NOT EXECUTED
case OBJECTS_LOCAL:
amount_extended = _Heap_Extend(
300194d0: e1a03005 mov r3, r5 <== NOT EXECUTED
300194d4: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED
300194d8: e1a01008 mov r1, r8 <== NOT EXECUTED
300194dc: e1a02007 mov r2, r7 <== NOT EXECUTED
300194e0: eb000cd8 bl 3001c848 <_Heap_Extend> <== NOT EXECUTED
starting_address,
length,
0
);
if ( amount_extended > 0 ) {
300194e4: e3500000 cmp r0, #0 <== NOT EXECUTED
the_region->length += amount_extended;
the_region->maximum_segment_size += amount_extended;
return_status = RTEMS_SUCCESSFUL;
} else {
return_status = RTEMS_INVALID_ADDRESS;
300194e8: 03a05009 moveq r5, #9 <== NOT EXECUTED
starting_address,
length,
0
);
if ( amount_extended > 0 ) {
300194ec: 0a000005 beq 30019508 <rtems_region_extend+0x84> <== NOT EXECUTED
the_region->length += amount_extended;
300194f0: e5963054 ldr r3, [r6, #84] ; 0x54 <== NOT EXECUTED
the_region->maximum_segment_size += amount_extended;
300194f4: e596205c ldr r2, [r6, #92] ; 0x5c <== NOT EXECUTED
length,
0
);
if ( amount_extended > 0 ) {
the_region->length += amount_extended;
300194f8: e0833000 add r3, r3, r0 <== NOT EXECUTED
the_region->maximum_segment_size += amount_extended;
300194fc: e0820000 add r0, r2, r0 <== NOT EXECUTED
length,
0
);
if ( amount_extended > 0 ) {
the_region->length += amount_extended;
30019500: e5863054 str r3, [r6, #84] ; 0x54 <== NOT EXECUTED
the_region->maximum_segment_size += amount_extended;
30019504: e586005c str r0, [r6, #92] ; 0x5c <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
30019508: e5940000 ldr r0, [r4] <== NOT EXECUTED
3001950c: eb000992 bl 3001bb5c <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
}
30019510: e1a00005 mov r0, r5 <== NOT EXECUTED
30019514: e28dd004 add sp, sp, #4 <== NOT EXECUTED
30019518: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
30019524 <rtems_region_get_free_information>:
rtems_status_code rtems_region_get_free_information(
rtems_id id,
Heap_Information_block *the_info
)
{
30019524: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
30019528: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_region_get_free_information(
rtems_id id,
Heap_Information_block *the_info
)
{
3001952c: e1a06000 mov r6, r0 <== NOT EXECUTED
30019530: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
30019534: 03a06009 moveq r6, #9 <== NOT EXECUTED
{
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
30019538: 0a00000c beq 30019570 <rtems_region_get_free_information+0x4c><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
3001953c: e59f5054 ldr r5, [pc, #84] ; 30019598 <rtems_region_get_free_information+0x74><== NOT EXECUTED
30019540: e5950000 ldr r0, [r5] <== NOT EXECUTED
30019544: eb000968 bl 3001baec <_API_Mutex_Lock> <== NOT EXECUTED
30019548: e1a01006 mov r1, r6 <== NOT EXECUTED
3001954c: e59f0048 ldr r0, [pc, #72] ; 3001959c <rtems_region_get_free_information+0x78><== NOT EXECUTED
30019550: e1a0200d mov r2, sp <== NOT EXECUTED
30019554: eb0010e0 bl 3001d8dc <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
30019558: e59d6000 ldr r6, [sp] <== NOT EXECUTED
3001955c: e3560000 cmp r6, #0 <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
30019560: 13a06004 movne r6, #4 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
30019564: 0a000004 beq 3001957c <rtems_region_get_free_information+0x58><== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
30019568: e5950000 ldr r0, [r5] <== NOT EXECUTED
3001956c: eb00097a bl 3001bb5c <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
}
30019570: e1a00006 mov r0, r6 <== NOT EXECUTED
30019574: e28dd004 add sp, sp, #4 <== NOT EXECUTED
30019578: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
the_info->Used.number = 0;
3001957c: e584600c str r6, [r4, #12] <== NOT EXECUTED
the_info->Used.total = 0;
30019580: e5846014 str r6, [r4, #20] <== NOT EXECUTED
the_info->Used.largest = 0;
30019584: e5846010 str r6, [r4, #16] <== NOT EXECUTED
_Heap_Get_free_information( &the_region->Memory, &the_info->Free );
30019588: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED
3001958c: e1a01004 mov r1, r4 <== NOT EXECUTED
30019590: eb000dc5 bl 3001ccac <_Heap_Get_free_information> <== NOT EXECUTED
return_status = RTEMS_SUCCESSFUL;
break;
30019594: eafffff3 b 30019568 <rtems_region_get_free_information+0x44><== NOT EXECUTED
300195a0 <rtems_region_get_information>:
rtems_status_code rtems_region_get_information(
rtems_id id,
Heap_Information_block *the_info
)
{
300195a0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
300195a4: e2515000 subs r5, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_region_get_information(
rtems_id id,
Heap_Information_block *the_info
)
{
300195a8: e1a06000 mov r6, r0 <== NOT EXECUTED
300195ac: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
300195b0: 03a06009 moveq r6, #9 <== NOT EXECUTED
{
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
300195b4: 0a00000c beq 300195ec <rtems_region_get_information+0x4c> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
300195b8: e59f4048 ldr r4, [pc, #72] ; 30019608 <rtems_region_get_information+0x68><== NOT EXECUTED
300195bc: e5940000 ldr r0, [r4] <== NOT EXECUTED
300195c0: eb000949 bl 3001baec <_API_Mutex_Lock> <== NOT EXECUTED
300195c4: e1a01006 mov r1, r6 <== NOT EXECUTED
300195c8: e59f003c ldr r0, [pc, #60] ; 3001960c <rtems_region_get_information+0x6c><== NOT EXECUTED
300195cc: e1a0200d mov r2, sp <== NOT EXECUTED
300195d0: eb0010c1 bl 3001d8dc <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
300195d4: e59d6000 ldr r6, [sp] <== NOT EXECUTED
300195d8: e3560000 cmp r6, #0 <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
300195dc: 13a06004 movne r6, #4 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
300195e0: 0a000004 beq 300195f8 <rtems_region_get_information+0x58> <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
300195e4: e5940000 ldr r0, [r4] <== NOT EXECUTED
300195e8: eb00095b bl 3001bb5c <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
}
300195ec: e1a00006 mov r0, r6 <== NOT EXECUTED
300195f0: e28dd004 add sp, sp, #4 <== NOT EXECUTED
300195f4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
_Heap_Get_information( &the_region->Memory, the_info );
300195f8: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED
300195fc: e1a01005 mov r1, r5 <== NOT EXECUTED
30019600: eb000dd0 bl 3001cd48 <_Heap_Get_information> <== NOT EXECUTED
return_status = RTEMS_SUCCESSFUL;
break;
30019604: eafffff6 b 300195e4 <rtems_region_get_information+0x44> <== NOT EXECUTED
30019754 <rtems_region_get_segment_size>:
rtems_status_code rtems_region_get_segment_size(
rtems_id id,
void *segment,
uintptr_t *size
)
{
30019754: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
register Region_Control *the_region;
if ( !segment )
30019758: e2516000 subs r6, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_region_get_segment_size(
rtems_id id,
void *segment,
uintptr_t *size
)
{
3001975c: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
30019760: e1a07000 mov r7, r0 <== NOT EXECUTED
30019764: e1a04002 mov r4, r2 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
register Region_Control *the_region;
if ( !segment )
30019768: 0a000011 beq 300197b4 <rtems_region_get_segment_size+0x60> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !size )
3001976c: e3520000 cmp r2, #0 <== NOT EXECUTED
30019770: 0a00000f beq 300197b4 <rtems_region_get_segment_size+0x60> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
30019774: e59f5068 ldr r5, [pc, #104] ; 300197e4 <rtems_region_get_segment_size+0x90><== NOT EXECUTED
30019778: e5950000 ldr r0, [r5] <== NOT EXECUTED
3001977c: eb0008da bl 3001baec <_API_Mutex_Lock> <== NOT EXECUTED
30019780: e59f0060 ldr r0, [pc, #96] ; 300197e8 <rtems_region_get_segment_size+0x94><== NOT EXECUTED
30019784: e1a01007 mov r1, r7 <== NOT EXECUTED
30019788: e1a0200d mov r2, sp <== NOT EXECUTED
3001978c: eb001052 bl 3001d8dc <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
30019790: e59d3000 ldr r3, [sp] <== NOT EXECUTED
30019794: e3530000 cmp r3, #0 <== NOT EXECUTED
30019798: 0a000009 beq 300197c4 <rtems_region_get_segment_size+0x70> <== NOT EXECUTED
void *segment,
uintptr_t *size
)
{
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
3001979c: e3530001 cmp r3, #1 <== NOT EXECUTED
300197a0: 03a04004 moveq r4, #4 <== NOT EXECUTED
300197a4: 13a04000 movne r4, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
300197a8: e5950000 ldr r0, [r5] <== NOT EXECUTED
300197ac: eb0008ea bl 3001bb5c <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
300197b0: ea000000 b 300197b8 <rtems_region_get_segment_size+0x64> <== NOT EXECUTED
if ( !segment )
return RTEMS_INVALID_ADDRESS;
if ( !size )
return RTEMS_INVALID_ADDRESS;
300197b4: e3a04009 mov r4, #9 <== NOT EXECUTED
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
300197b8: e1a00004 mov r0, r4 <== NOT EXECUTED
300197bc: e28dd004 add sp, sp, #4 <== NOT EXECUTED
300197c0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) )
300197c4: e1a02004 mov r2, r4 <== NOT EXECUTED
300197c8: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED
300197cc: e1a01006 mov r1, r6 <== NOT EXECUTED
300197d0: eb000ecc bl 3001d308 <_Heap_Size_of_alloc_area> <== NOT EXECUTED
void *segment,
uintptr_t *size
)
{
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
300197d4: e3500000 cmp r0, #0 <== NOT EXECUTED
300197d8: 03a04009 moveq r4, #9 <== NOT EXECUTED
300197dc: 13a04000 movne r4, #0 <== NOT EXECUTED
300197e0: eafffff0 b 300197a8 <rtems_region_get_segment_size+0x54> <== NOT EXECUTED
3001981c <rtems_region_resize_segment>:
rtems_id id,
void *segment,
uintptr_t size,
uintptr_t *old_size
)
{
3001981c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
uintptr_t osize;
rtems_status_code return_status;
Heap_Resize_status status;
register Region_Control *the_region;
if ( !old_size )
30019820: e2535000 subs r5, r3, #0 <== NOT EXECUTED
rtems_id id,
void *segment,
uintptr_t size,
uintptr_t *old_size
)
{
30019824: e1a06000 mov r6, r0 <== NOT EXECUTED
30019828: e24dd010 sub sp, sp, #16 <== NOT EXECUTED
3001982c: e1a08001 mov r8, r1 <== NOT EXECUTED
30019830: e1a07002 mov r7, r2 <== NOT EXECUTED
rtems_status_code return_status;
Heap_Resize_status status;
register Region_Control *the_region;
if ( !old_size )
return RTEMS_INVALID_ADDRESS;
30019834: 03a00009 moveq r0, #9 <== NOT EXECUTED
uintptr_t osize;
rtems_status_code return_status;
Heap_Resize_status status;
register Region_Control *the_region;
if ( !old_size )
30019838: 0a000018 beq 300198a0 <rtems_region_resize_segment+0x84> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
3001983c: e59f408c ldr r4, [pc, #140] ; 300198d0 <rtems_region_resize_segment+0xb4><== NOT EXECUTED
30019840: e5940000 ldr r0, [r4] <== NOT EXECUTED
30019844: eb0008a8 bl 3001baec <_API_Mutex_Lock> <== NOT EXECUTED
30019848: e1a01006 mov r1, r6 <== NOT EXECUTED
3001984c: e59f0080 ldr r0, [pc, #128] ; 300198d4 <rtems_region_resize_segment+0xb8><== NOT EXECUTED
30019850: e28d2008 add r2, sp, #8 <== NOT EXECUTED
30019854: eb001020 bl 3001d8dc <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
30019858: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED
3001985c: e1a06000 mov r6, r0 <== NOT EXECUTED
30019860: e3530000 cmp r3, #0 <== NOT EXECUTED
30019864: 1a00000f bne 300198a8 <rtems_region_resize_segment+0x8c> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Region_Debug_Walk( the_region, 7 );
status = _Heap_Resize_block(
30019868: e1a02007 mov r2, r7 <== NOT EXECUTED
3001986c: e28d300c add r3, sp, #12 <== NOT EXECUTED
30019870: e28dc004 add ip, sp, #4 <== NOT EXECUTED
30019874: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED
30019878: e1a01008 mov r1, r8 <== NOT EXECUTED
3001987c: e58dc000 str ip, [sp] <== NOT EXECUTED
30019880: eb000e52 bl 3001d1d0 <_Heap_Resize_block> <== NOT EXECUTED
segment,
(uint32_t) size,
&osize,
&avail_size
);
*old_size = (uint32_t) osize;
30019884: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED
_Region_Debug_Walk( the_region, 8 );
if ( status == HEAP_RESIZE_SUCCESSFUL )
30019888: e2507000 subs r7, r0, #0 <== NOT EXECUTED
segment,
(uint32_t) size,
&osize,
&avail_size
);
*old_size = (uint32_t) osize;
3001988c: e5853000 str r3, [r5] <== NOT EXECUTED
_Region_Debug_Walk( the_region, 8 );
if ( status == HEAP_RESIZE_SUCCESSFUL )
30019890: 1a000008 bne 300198b8 <rtems_region_resize_segment+0x9c> <== NOT EXECUTED
_Region_Process_queue( the_region ); /* unlocks allocator */
30019894: e1a00006 mov r0, r6 <== NOT EXECUTED
30019898: eb001e43 bl 300211ac <_Region_Process_queue> <== NOT EXECUTED
else
_RTEMS_Unlock_allocator();
if (status == HEAP_RESIZE_SUCCESSFUL)
return RTEMS_SUCCESSFUL;
3001989c: e1a00007 mov r0, r7 <== NOT EXECUTED
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
300198a0: e28dd010 add sp, sp, #16 <== NOT EXECUTED
300198a4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
300198a8: e5940000 ldr r0, [r4] <== NOT EXECUTED
300198ac: eb0008aa bl 3001bb5c <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
300198b0: e3a00004 mov r0, #4 <== NOT EXECUTED
300198b4: eafffff9 b 300198a0 <rtems_region_resize_segment+0x84> <== NOT EXECUTED
_Region_Debug_Walk( the_region, 8 );
if ( status == HEAP_RESIZE_SUCCESSFUL )
_Region_Process_queue( the_region ); /* unlocks allocator */
else
_RTEMS_Unlock_allocator();
300198b8: e5940000 ldr r0, [r4] <== NOT EXECUTED
300198bc: eb0008a6 bl 3001bb5c <_API_Mutex_Unlock> <== NOT EXECUTED
if (status == HEAP_RESIZE_SUCCESSFUL)
return RTEMS_SUCCESSFUL;
if (status == HEAP_RESIZE_UNSATISFIED)
return RTEMS_UNSATISFIED;
300198c0: e3570001 cmp r7, #1 <== NOT EXECUTED
300198c4: 13a00009 movne r0, #9 <== NOT EXECUTED
300198c8: 03a0000d moveq r0, #13 <== NOT EXECUTED
300198cc: eafffff3 b 300198a0 <rtems_region_resize_segment+0x84> <== NOT EXECUTED
300198d8 <rtems_region_return_segment>:
rtems_status_code rtems_region_return_segment(
rtems_id id,
void *segment
)
{
300198d8: e92d40f0 push {r4, r5, r6, r7, lr}
uint32_t size;
#endif
int status;
register Region_Control *the_region;
_RTEMS_Lock_allocator();
300198dc: e59f4078 ldr r4, [pc, #120] ; 3001995c <rtems_region_return_segment+0x84>
rtems_status_code rtems_region_return_segment(
rtems_id id,
void *segment
)
{
300198e0: e24dd004 sub sp, sp, #4
300198e4: e1a06000 mov r6, r0
uint32_t size;
#endif
int status;
register Region_Control *the_region;
_RTEMS_Lock_allocator();
300198e8: e5940000 ldr r0, [r4]
rtems_status_code rtems_region_return_segment(
rtems_id id,
void *segment
)
{
300198ec: e1a05001 mov r5, r1
uint32_t size;
#endif
int status;
register Region_Control *the_region;
_RTEMS_Lock_allocator();
300198f0: eb00087d bl 3001baec <_API_Mutex_Lock>
300198f4: e1a01006 mov r1, r6
300198f8: e59f0060 ldr r0, [pc, #96] ; 30019960 <rtems_region_return_segment+0x88>
300198fc: e1a0200d mov r2, sp
30019900: eb000ff5 bl 3001d8dc <_Objects_Get_no_protection>
the_region = _Region_Get( id, &location );
switch ( location ) {
30019904: e59d6000 ldr r6, [sp]
30019908: e1a07000 mov r7, r0
3001990c: e3560000 cmp r6, #0
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
30019910: 13a06004 movne r6, #4
register Region_Control *the_region;
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
30019914: 1a000005 bne 30019930 <rtems_region_return_segment+0x58>
RTEMS_INLINE_ROUTINE bool _Region_Free_segment (
Region_Control *the_region,
void *the_segment
)
{
return _Heap_Free( &the_region->Memory, the_segment );
30019918: e2800068 add r0, r0, #104 ; 0x68
3001991c: e1a01005 mov r1, r5
30019920: eb000c6f bl 3001cae4 <_Heap_Free>
#endif
status = _Region_Free_segment( the_region, segment );
_Region_Debug_Walk( the_region, 4 );
if ( !status )
30019924: e3500000 cmp r0, #0
return_status = RTEMS_INVALID_ADDRESS;
30019928: 03a06009 moveq r6, #9
#endif
status = _Region_Free_segment( the_region, segment );
_Region_Debug_Walk( the_region, 4 );
if ( !status )
3001992c: 1a000004 bne 30019944 <rtems_region_return_segment+0x6c>
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
30019930: e5940000 ldr r0, [r4] <== NOT EXECUTED
30019934: eb000888 bl 3001bb5c <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
}
30019938: e1a00006 mov r0, r6
3001993c: e28dd004 add sp, sp, #4
30019940: e8bd80f0 pop {r4, r5, r6, r7, pc}
_Region_Debug_Walk( the_region, 4 );
if ( !status )
return_status = RTEMS_INVALID_ADDRESS;
else {
the_region->number_of_used_blocks -= 1;
30019944: e5973064 ldr r3, [r7, #100] ; 0x64
_Region_Process_queue(the_region); /* unlocks allocator */
30019948: e1a00007 mov r0, r7
_Region_Debug_Walk( the_region, 4 );
if ( !status )
return_status = RTEMS_INVALID_ADDRESS;
else {
the_region->number_of_used_blocks -= 1;
3001994c: e2433001 sub r3, r3, #1
30019950: e5873064 str r3, [r7, #100] ; 0x64
_Region_Process_queue(the_region); /* unlocks allocator */
30019954: eb001e14 bl 300211ac <_Region_Process_queue>
return RTEMS_SUCCESSFUL;
30019958: eafffff6 b 30019938 <rtems_region_return_segment+0x60>
3000a614 <rtems_semaphore_create>:
uint32_t count,
rtems_attribute attribute_set,
rtems_task_priority priority_ceiling,
rtems_id *id
)
{
3000a614: e92d41f0 push {r4, r5, r6, r7, r8, lr}
register Semaphore_Control *the_semaphore;
CORE_mutex_Attributes the_mutex_attr;
CORE_semaphore_Attributes the_semaphore_attr;
CORE_mutex_Status mutex_status;
if ( !rtems_is_name_valid( name ) )
3000a618: e2505000 subs r5, r0, #0
uint32_t count,
rtems_attribute attribute_set,
rtems_task_priority priority_ceiling,
rtems_id *id
)
{
3000a61c: e24dd020 sub sp, sp, #32
3000a620: e1a04001 mov r4, r1
3000a624: e59d6038 ldr r6, [sp, #56] ; 0x38
CORE_mutex_Attributes the_mutex_attr;
CORE_semaphore_Attributes the_semaphore_attr;
CORE_mutex_Status mutex_status;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
3000a628: 03a00003 moveq r0, #3
register Semaphore_Control *the_semaphore;
CORE_mutex_Attributes the_mutex_attr;
CORE_semaphore_Attributes the_semaphore_attr;
CORE_mutex_Status mutex_status;
if ( !rtems_is_name_valid( name ) )
3000a62c: 1a000001 bne 3000a638 <rtems_semaphore_create+0x24>
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
3000a630: e28dd020 add sp, sp, #32
3000a634: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
CORE_mutex_Status mutex_status;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
3000a638: e3560000 cmp r6, #0
return RTEMS_INVALID_ADDRESS;
3000a63c: 03a00009 moveq r0, #9
CORE_mutex_Status mutex_status;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
3000a640: 0afffffa beq 3000a630 <rtems_semaphore_create+0x1c>
return RTEMS_NOT_DEFINED;
} else
#endif
if ( _Attributes_Is_inherit_priority( attribute_set ) ||
3000a644: e21210c0 ands r1, r2, #192 ; 0xc0
3000a648: 1a000029 bne 3000a6f4 <rtems_semaphore_create+0xe0>
if ( _Attributes_Is_inherit_priority( attribute_set ) &&
_Attributes_Is_priority_ceiling( attribute_set ) )
return RTEMS_NOT_DEFINED;
if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
3000a64c: e2128030 ands r8, r2, #48 ; 0x30
3000a650: 0a000002 beq 3000a660 <rtems_semaphore_create+0x4c>
3000a654: e3540001 cmp r4, #1
return RTEMS_INVALID_NUMBER;
3000a658: 83a0000a movhi r0, #10
if ( _Attributes_Is_inherit_priority( attribute_set ) &&
_Attributes_Is_priority_ceiling( attribute_set ) )
return RTEMS_NOT_DEFINED;
if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
3000a65c: 8afffff3 bhi 3000a630 <rtems_semaphore_create+0x1c>
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000a660: e59f1164 ldr r1, [pc, #356] ; 3000a7cc <rtems_semaphore_create+0x1b8>
3000a664: e5910000 ldr r0, [r1]
++level;
3000a668: e2800001 add r0, r0, #1
_Thread_Dispatch_disable_level = level;
3000a66c: e5810000 str r0, [r1]
* This function allocates a semaphore control block from
* the inactive chain of free semaphore control blocks.
*/
RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Allocate( void )
{
return (Semaphore_Control *) _Objects_Allocate( &_Semaphore_Information );
3000a670: e59f0158 ldr r0, [pc, #344] ; 3000a7d0 <rtems_semaphore_create+0x1bc>
3000a674: e58d2004 str r2, [sp, #4]
3000a678: e58d3000 str r3, [sp]
3000a67c: eb00059c bl 3000bcf4 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */
the_semaphore = _Semaphore_Allocate();
if ( !the_semaphore ) {
3000a680: e2507000 subs r7, r0, #0
3000a684: e59d2004 ldr r2, [sp, #4]
3000a688: e59d3000 ldr r3, [sp]
3000a68c: 0a00003b beq 3000a780 <rtems_semaphore_create+0x16c>
the_semaphore->attribute_set = attribute_set;
/*
* Initialize it as a counting semaphore.
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
3000a690: e3580000 cmp r8, #0
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_semaphore->attribute_set = attribute_set;
3000a694: e5872010 str r2, [r7, #16]
/*
* Initialize it as a counting semaphore.
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
3000a698: 1a000020 bne 3000a720 <rtems_semaphore_create+0x10c>
* This effectively disables limit checking.
*/
the_semaphore_attr.maximum_count = 0xFFFFFFFF;
if ( _Attributes_Is_priority( attribute_set ) )
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
3000a69c: e3120004 tst r2, #4
3000a6a0: 03a03000 moveq r3, #0
3000a6a4: 13a03001 movne r3, #1
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
/*
* This effectively disables limit checking.
*/
the_semaphore_attr.maximum_count = 0xFFFFFFFF;
3000a6a8: e3e0c000 mvn ip, #0
* The following are just to make Purify happy.
*/
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;
_CORE_semaphore_Initialize(
3000a6ac: e2870014 add r0, r7, #20
3000a6b0: e28d1018 add r1, sp, #24
3000a6b4: e1a02004 mov r2, r4
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
/*
* This effectively disables limit checking.
*/
the_semaphore_attr.maximum_count = 0xFFFFFFFF;
3000a6b8: e58dc018 str ip, [sp, #24]
3000a6bc: e58d301c str r3, [sp, #28]
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
/*
* The following are just to make Purify happy.
*/
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
3000a6c0: e58d8008 str r8, [sp, #8]
the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;
3000a6c4: e58d8014 str r8, [sp, #20]
_CORE_semaphore_Initialize(
3000a6c8: eb000404 bl 3000b6e0 <_CORE_semaphore_Initialize>
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
3000a6cc: e59f20fc ldr r2, [pc, #252] ; 3000a7d0 <rtems_semaphore_create+0x1bc>
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
3000a6d0: e5973008 ldr r3, [r7, #8]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
3000a6d4: e592201c ldr r2, [r2, #28]
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
3000a6d8: e1a01803 lsl r1, r3, #16
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
3000a6dc: e7827721 str r7, [r2, r1, lsr #14]
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
3000a6e0: e587500c str r5, [r7, #12]
&_Semaphore_Information,
&the_semaphore->Object,
(Objects_Name) name
);
*id = the_semaphore->Object.id;
3000a6e4: e5863000 str r3, [r6]
the_semaphore->Object.id,
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
3000a6e8: eb000a75 bl 3000d0c4 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000a6ec: e3a00000 mov r0, #0
3000a6f0: eaffffce b 3000a630 <rtems_semaphore_create+0x1c>
*/
RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore(
rtems_attribute attribute_set
)
{
return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE);
3000a6f4: e2028030 and r8, r2, #48 ; 0x30
#endif
if ( _Attributes_Is_inherit_priority( attribute_set ) ||
_Attributes_Is_priority_ceiling( attribute_set ) ) {
if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&
3000a6f8: e3580010 cmp r8, #16
3000a6fc: 0a000001 beq 3000a708 <rtems_semaphore_create+0xf4>
}
if ( _Attributes_Is_inherit_priority( attribute_set ) &&
_Attributes_Is_priority_ceiling( attribute_set ) )
return RTEMS_NOT_DEFINED;
3000a700: e3a0000b mov r0, #11 <== NOT EXECUTED
3000a704: eaffffc9 b 3000a630 <rtems_semaphore_create+0x1c> <== NOT EXECUTED
#endif
if ( _Attributes_Is_inherit_priority( attribute_set ) ||
_Attributes_Is_priority_ceiling( attribute_set ) ) {
if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&
3000a708: e3120004 tst r2, #4
3000a70c: 0afffffb beq 3000a700 <rtems_semaphore_create+0xec>
_Attributes_Is_priority( attribute_set ) ) )
return RTEMS_NOT_DEFINED;
}
if ( _Attributes_Is_inherit_priority( attribute_set ) &&
3000a710: e35100c0 cmp r1, #192 ; 0xc0
3000a714: 1affffce bne 3000a654 <rtems_semaphore_create+0x40>
_Attributes_Is_priority_ceiling( attribute_set ) )
return RTEMS_NOT_DEFINED;
3000a718: e3a0000b mov r0, #11 <== NOT EXECUTED
3000a71c: eaffffc3 b 3000a630 <rtems_semaphore_create+0x1c> <== NOT EXECUTED
/*
* It is either simple binary semaphore or a more powerful mutex
* style binary semaphore. This is the mutex style.
*/
if ( _Attributes_Is_priority( attribute_set ) )
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;
3000a720: e3120004 tst r2, #4
3000a724: 03a01000 moveq r1, #0
3000a728: 13a01001 movne r1, #1
else
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
3000a72c: e3580010 cmp r8, #16
/*
* It is either simple binary semaphore or a more powerful mutex
* style binary semaphore. This is the mutex style.
*/
if ( _Attributes_Is_priority( attribute_set ) )
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;
3000a730: e58d1010 str r1, [sp, #16]
else
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
3000a734: 0a000014 beq 3000a78c <rtems_semaphore_create+0x178>
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
the_mutex_attr.only_owner_release = true;
}
}
} else /* must be simple binary semaphore */ {
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS;
3000a738: e3a03001 mov r3, #1
3000a73c: e58d3008 str r3, [sp, #8]
the_mutex_attr.only_owner_release = false;
3000a740: e3a03000 mov r3, #0
3000a744: e5cd300c strb r3, [sp, #12]
}
mutex_status = _CORE_mutex_Initialize(
3000a748: e2443001 sub r3, r4, #1
3000a74c: e2732000 rsbs r2, r3, #0
3000a750: e0a22003 adc r2, r2, r3
3000a754: e2870014 add r0, r7, #20
3000a758: e28d1008 add r1, sp, #8
3000a75c: eb00030e bl 3000b39c <_CORE_mutex_Initialize>
&the_semaphore->Core_control.mutex,
&the_mutex_attr,
(count == 1) ? CORE_MUTEX_UNLOCKED : CORE_MUTEX_LOCKED
);
if ( mutex_status == CORE_MUTEX_STATUS_CEILING_VIOLATED ) {
3000a760: e3500005 cmp r0, #5
3000a764: 1affffd8 bne 3000a6cc <rtems_semaphore_create+0xb8>
*/
RTEMS_INLINE_ROUTINE void _Semaphore_Free (
Semaphore_Control *the_semaphore
)
{
_Objects_Free( &_Semaphore_Information, &the_semaphore->Object );
3000a768: e59f0060 ldr r0, [pc, #96] ; 3000a7d0 <rtems_semaphore_create+0x1bc>
3000a76c: e1a01007 mov r1, r7
3000a770: eb00063d bl 3000c06c <_Objects_Free>
_Semaphore_Free( the_semaphore );
_Thread_Enable_dispatch();
3000a774: eb000a52 bl 3000d0c4 <_Thread_Enable_dispatch>
return RTEMS_INVALID_PRIORITY;
3000a778: e3a00013 mov r0, #19
3000a77c: eaffffab b 3000a630 <rtems_semaphore_create+0x1c>
_Thread_Disable_dispatch(); /* prevents deletion */
the_semaphore = _Semaphore_Allocate();
if ( !the_semaphore ) {
_Thread_Enable_dispatch();
3000a780: eb000a4f bl 3000d0c4 <_Thread_Enable_dispatch>
return RTEMS_TOO_MANY;
3000a784: e3a00005 mov r0, #5
3000a788: eaffffa8 b 3000a630 <rtems_semaphore_create+0x1c>
else
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
the_mutex_attr.priority_ceiling = priority_ceiling;
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
3000a78c: e3a00000 mov r0, #0
the_mutex_attr.only_owner_release = false;
if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
3000a790: e3510001 cmp r1, #1
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;
else
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
the_mutex_attr.priority_ceiling = priority_ceiling;
3000a794: e58d3014 str r3, [sp, #20]
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
3000a798: e58d0008 str r0, [sp, #8]
the_mutex_attr.only_owner_release = false;
3000a79c: e5cd000c strb r0, [sp, #12]
if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
3000a7a0: 1affffe8 bne 3000a748 <rtems_semaphore_create+0x134>
if ( _Attributes_Is_inherit_priority( attribute_set ) ) {
3000a7a4: e3120040 tst r2, #64 ; 0x40
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
3000a7a8: 13a03002 movne r3, #2
3000a7ac: 158d3010 strne r3, [sp, #16]
the_mutex_attr.only_owner_release = true;
3000a7b0: 15cd100c strbne r1, [sp, #12]
the_mutex_attr.priority_ceiling = priority_ceiling;
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
the_mutex_attr.only_owner_release = false;
if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
if ( _Attributes_Is_inherit_priority( attribute_set ) ) {
3000a7b4: 1affffe3 bne 3000a748 <rtems_semaphore_create+0x134>
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
the_mutex_attr.only_owner_release = true;
} else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) {
3000a7b8: e3120080 tst r2, #128 ; 0x80
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
3000a7bc: 13a03003 movne r3, #3
3000a7c0: 158d3010 strne r3, [sp, #16]
the_mutex_attr.only_owner_release = true;
3000a7c4: 15cd100c strbne r1, [sp, #12]
3000a7c8: eaffffde b 3000a748 <rtems_semaphore_create+0x134>
3000a7d4 <rtems_semaphore_delete>:
#endif
rtems_status_code rtems_semaphore_delete(
rtems_id id
)
{
3000a7d4: e92d4010 push {r4, lr}
3000a7d8: e24dd004 sub sp, sp, #4
3000a7dc: e1a01000 mov r1, r0
RTEMS_INLINE_ROUTINE Semaphore_Control *_Semaphore_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Semaphore_Control *)
3000a7e0: e1a0200d mov r2, sp
3000a7e4: e59f0088 ldr r0, [pc, #136] ; 3000a874 <rtems_semaphore_delete+0xa0>
3000a7e8: eb000676 bl 3000c1c8 <_Objects_Get>
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
3000a7ec: e59d3000 ldr r3, [sp]
3000a7f0: e1a04000 mov r4, r0
3000a7f4: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3000a7f8: 13a00004 movne r0, #4
{
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
3000a7fc: 1a000009 bne 3000a828 <rtems_semaphore_delete+0x54>
*/
RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(
rtems_attribute attribute_set
)
{
return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE);
3000a800: e5941010 ldr r1, [r4, #16]
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
3000a804: e2111030 ands r1, r1, #48 ; 0x30
3000a808: 0a000008 beq 3000a830 <rtems_semaphore_delete+0x5c>
if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) &&
3000a80c: e5943064 ldr r3, [r4, #100] ; 0x64
3000a810: e3530000 cmp r3, #0
3000a814: 1a000011 bne 3000a860 <rtems_semaphore_delete+0x8c>
3000a818: e3510020 cmp r1, #32
3000a81c: 0a00000f beq 3000a860 <rtems_semaphore_delete+0x8c>
!_Attributes_Is_simple_binary_semaphore(
the_semaphore->attribute_set ) ) {
_Thread_Enable_dispatch();
3000a820: eb000a27 bl 3000d0c4 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
3000a824: e3a0000c mov r0, #12 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3000a828: e28dd004 add sp, sp, #4
3000a82c: e8bd8010 pop {r4, pc}
&the_semaphore->Core_control.mutex,
SEMAPHORE_MP_OBJECT_WAS_DELETED,
CORE_MUTEX_WAS_DELETED
);
} else {
_CORE_semaphore_Flush(
3000a830: e2840014 add r0, r4, #20
3000a834: e3a02002 mov r2, #2
3000a838: eb0003a7 bl 3000b6dc <_CORE_semaphore_Flush>
SEMAPHORE_MP_OBJECT_WAS_DELETED,
CORE_SEMAPHORE_WAS_DELETED
);
}
_Objects_Close( &_Semaphore_Information, &the_semaphore->Object );
3000a83c: e59f0030 ldr r0, [pc, #48] ; 3000a874 <rtems_semaphore_delete+0xa0>
3000a840: e1a01004 mov r1, r4
3000a844: eb00054d bl 3000bd80 <_Objects_Close>
*/
RTEMS_INLINE_ROUTINE void _Semaphore_Free (
Semaphore_Control *the_semaphore
)
{
_Objects_Free( &_Semaphore_Information, &the_semaphore->Object );
3000a848: e59f0024 ldr r0, [pc, #36] ; 3000a874 <rtems_semaphore_delete+0xa0>
3000a84c: e1a01004 mov r1, r4
3000a850: eb000605 bl 3000c06c <_Objects_Free>
0, /* Not used */
0 /* Not used */
);
}
#endif
_Thread_Enable_dispatch();
3000a854: eb000a1a bl 3000d0c4 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000a858: e3a00000 mov r0, #0
3000a85c: eafffff1 b 3000a828 <rtems_semaphore_delete+0x54>
!_Attributes_Is_simple_binary_semaphore(
the_semaphore->attribute_set ) ) {
_Thread_Enable_dispatch();
return RTEMS_RESOURCE_IN_USE;
}
_CORE_mutex_Flush(
3000a860: e2840014 add r0, r4, #20
3000a864: e3a01000 mov r1, #0
3000a868: e3a02003 mov r2, #3
3000a86c: eb0002c9 bl 3000b398 <_CORE_mutex_Flush>
3000a870: eafffff1 b 3000a83c <rtems_semaphore_delete+0x68>
30014074 <rtems_semaphore_flush>:
#endif
rtems_status_code rtems_semaphore_flush(
rtems_id id
)
{
30014074: e52de004 push {lr} ; (str lr, [sp, #-4]!)
30014078: e24dd004 sub sp, sp, #4
3001407c: e1a01000 mov r1, r0
30014080: e1a0200d mov r2, sp
30014084: e59f0048 ldr r0, [pc, #72] ; 300140d4 <rtems_semaphore_flush+0x60>
30014088: ebffe689 bl 3000dab4 <_Objects_Get>
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
3001408c: e59d3000 ldr r3, [sp]
30014090: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
30014094: 13a00004 movne r0, #4
{
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
30014098: 1a000007 bne 300140bc <rtems_semaphore_flush+0x48>
3001409c: e5901010 ldr r1, [r0, #16]
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
_CORE_mutex_Flush(
300140a0: e2800014 add r0, r0, #20
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
300140a4: e2111030 ands r1, r1, #48 ; 0x30
300140a8: 1a000005 bne 300140c4 <rtems_semaphore_flush+0x50>
&the_semaphore->Core_control.mutex,
SEND_OBJECT_WAS_DELETED,
CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT
);
} else {
_CORE_semaphore_Flush(
300140ac: e3a02001 mov r2, #1 <== NOT EXECUTED
300140b0: ebffe3c4 bl 3000cfc8 <_CORE_semaphore_Flush> <== NOT EXECUTED
&the_semaphore->Core_control.semaphore,
SEND_OBJECT_WAS_DELETED,
CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT
);
}
_Thread_Enable_dispatch();
300140b4: ebffea1c bl 3000e92c <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
300140b8: e3a00000 mov r0, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
300140bc: e28dd004 add sp, sp, #4
300140c0: e8bd8000 pop {pc}
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
_CORE_mutex_Flush(
300140c4: e1a01003 mov r1, r3
300140c8: e3a02001 mov r2, #1
300140cc: ebffe2ec bl 3000cc84 <_CORE_mutex_Flush>
300140d0: eafffff7 b 300140b4 <rtems_semaphore_flush+0x40>
3000a878 <rtems_semaphore_obtain>:
rtems_status_code rtems_semaphore_obtain(
rtems_id id,
rtems_option option_set,
rtems_interval timeout
)
{
3000a878: e92d40f0 push {r4, r5, r6, r7, lr}
3000a87c: e1a04000 mov r4, r0
3000a880: e24dd00c sub sp, sp, #12
Objects_Id id,
Objects_Locations *location,
ISR_Level *level
)
{
return (Semaphore_Control *)
3000a884: e28d3008 add r3, sp, #8
3000a888: e1a05001 mov r5, r1
3000a88c: e1a06002 mov r6, r2
3000a890: e59f00f4 ldr r0, [pc, #244] ; 3000a98c <rtems_semaphore_obtain+0x114>
3000a894: e1a01004 mov r1, r4
3000a898: e28d2004 add r2, sp, #4
3000a89c: eb00062d bl 3000c158 <_Objects_Get_isr_disable>
register Semaphore_Control *the_semaphore;
Objects_Locations location;
ISR_Level level;
the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level );
switch ( location ) {
3000a8a0: e59d3004 ldr r3, [sp, #4]
3000a8a4: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3000a8a8: 13a00004 movne r0, #4
register Semaphore_Control *the_semaphore;
Objects_Locations location;
ISR_Level level;
the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level );
switch ( location ) {
3000a8ac: 1a00000f bne 3000a8f0 <rtems_semaphore_obtain+0x78>
3000a8b0: e5903010 ldr r3, [r0, #16]
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
3000a8b4: e2133030 ands r3, r3, #48 ; 0x30
3000a8b8: 1a00000e bne 3000a8f8 <rtems_semaphore_obtain+0x80>
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
3000a8bc: e59f70cc ldr r7, [pc, #204] ; 3000a990 <rtems_semaphore_obtain+0x118>
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
if ( the_semaphore->count != 0 ) {
3000a8c0: e590105c ldr r1, [r0, #92] ; 0x5c
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
3000a8c4: e5972008 ldr r2, [r7, #8]
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
if ( the_semaphore->count != 0 ) {
3000a8c8: e3510000 cmp r1, #0
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
3000a8cc: e5823034 str r3, [r2, #52] ; 0x34
if ( the_semaphore->count != 0 ) {
3000a8d0: 0a000015 beq 3000a92c <rtems_semaphore_obtain+0xb4>
the_semaphore->count -= 1;
3000a8d4: e2411001 sub r1, r1, #1
3000a8d8: e580105c str r1, [r0, #92] ; 0x5c
3000a8dc: e59d3008 ldr r3, [sp, #8]
3000a8e0: e129f003 msr CPSR_fc, r3
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
&level
);
return _Semaphore_Translate_core_semaphore_return_code(
_Thread_Executing->Wait.return_code );
3000a8e4: e5973008 ldr r3, [r7, #8]
id,
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
&level
);
return _Semaphore_Translate_core_semaphore_return_code(
3000a8e8: e5930034 ldr r0, [r3, #52] ; 0x34
3000a8ec: eb00004e bl 3000aa2c <_Semaphore_Translate_core_semaphore_return_code>
break;
}
return RTEMS_INVALID_ID;
}
3000a8f0: e28dd00c add sp, sp, #12
3000a8f4: e8bd80f0 pop {r4, r5, r6, r7, pc}
the_semaphore = _Semaphore_Get_interrupt_disable( id, &location, &level );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
_CORE_mutex_Seize(
3000a8f8: e59dc008 ldr ip, [sp, #8]
*/
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (
rtems_option option_set
)
{
return (option_set & RTEMS_NO_WAIT) ? true : false;
3000a8fc: e2052001 and r2, r5, #1
3000a900: e1a03006 mov r3, r6
3000a904: e2800014 add r0, r0, #20
3000a908: e1a01004 mov r1, r4
3000a90c: e2222001 eor r2, r2, #1
3000a910: e58dc000 str ip, [sp]
3000a914: eb0002f0 bl 3000b4dc <_CORE_mutex_Seize>
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
level
);
return _Semaphore_Translate_core_mutex_return_code(
_Thread_Executing->Wait.return_code );
3000a918: e59f3070 ldr r3, [pc, #112] ; 3000a990 <rtems_semaphore_obtain+0x118>
3000a91c: e5933008 ldr r3, [r3, #8]
id,
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
level
);
return _Semaphore_Translate_core_mutex_return_code(
3000a920: e5930034 ldr r0, [r3, #52] ; 0x34
3000a924: eb00003c bl 3000aa1c <_Semaphore_Translate_core_mutex_return_code>
3000a928: eafffff0 b 3000a8f0 <rtems_semaphore_obtain+0x78>
_ISR_Enable( *level_p );
return;
}
if ( !wait ) {
3000a92c: e3150001 tst r5, #1
3000a930: 0a000004 beq 3000a948 <rtems_semaphore_obtain+0xd0>
3000a934: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED
3000a938: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( *level_p );
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT;
3000a93c: e3a03001 mov r3, #1 <== NOT EXECUTED
3000a940: e5823034 str r3, [r2, #52] ; 0x34 <== NOT EXECUTED
3000a944: eaffffe6 b 3000a8e4 <rtems_semaphore_obtain+0x6c> <== NOT EXECUTED
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000a948: e59f3044 ldr r3, [pc, #68] ; 3000a994 <rtems_semaphore_obtain+0x11c>
3000a94c: e5931000 ldr r1, [r3]
++level;
3000a950: e2811001 add r1, r1, #1
_Thread_Dispatch_disable_level = level;
3000a954: e5831000 str r1, [r3]
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;
3000a958: e3a01001 mov r1, #1
return;
}
_Thread_Disable_dispatch();
_Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue );
executing->Wait.queue = &the_semaphore->Wait_queue;
3000a95c: e2803014 add r3, r0, #20
3000a960: e5801044 str r1, [r0, #68] ; 0x44
3000a964: e5823044 str r3, [r2, #68] ; 0x44
executing->Wait.id = id;
3000a968: e5824020 str r4, [r2, #32]
3000a96c: e59d2008 ldr r2, [sp, #8]
3000a970: e129f002 msr CPSR_fc, r2
_ISR_Enable( *level_p );
_Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
3000a974: e59f201c ldr r2, [pc, #28] ; 3000a998 <rtems_semaphore_obtain+0x120>
3000a978: e1a00003 mov r0, r3
3000a97c: e1a01006 mov r1, r6
3000a980: eb000af7 bl 3000d564 <_Thread_queue_Enqueue_with_handler>
_Thread_Enable_dispatch();
3000a984: eb0009ce bl 3000d0c4 <_Thread_Enable_dispatch>
3000a988: eaffffd5 b 3000a8e4 <rtems_semaphore_obtain+0x6c>
30019e28 <rtems_signal_send>:
rtems_status_code rtems_signal_send(
rtems_id id,
rtems_signal_set signal_set
)
{
30019e28: e92d4010 push {r4, lr}
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
30019e2c: e2514000 subs r4, r1, #0
rtems_status_code rtems_signal_send(
rtems_id id,
rtems_signal_set signal_set
)
{
30019e30: e24dd004 sub sp, sp, #4
Objects_Locations location;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
return RTEMS_INVALID_NUMBER;
30019e34: 03a0000a moveq r0, #10
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
30019e38: 1a000001 bne 30019e44 <rtems_signal_send+0x1c>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
30019e3c: e28dd004 add sp, sp, #4
30019e40: e8bd8010 pop {r4, pc}
ASR_Information *asr;
if ( !signal_set )
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
30019e44: e1a0100d mov r1, sp
30019e48: eb001278 bl 3001e830 <_Thread_Get>
switch ( location ) {
30019e4c: e59d3000 ldr r3, [sp]
30019e50: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
30019e54: 13a00004 movne r0, #4
if ( !signal_set )
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
30019e58: 1afffff7 bne 30019e3c <rtems_signal_send+0x14>
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
30019e5c: e59030ec ldr r3, [r0, #236] ; 0xec
asr = &api->Signal;
if ( ! _ASR_Is_null_handler( asr->handler ) ) {
30019e60: e593200c ldr r2, [r3, #12]
30019e64: e3520000 cmp r2, #0
30019e68: 0a000014 beq 30019ec0 <rtems_signal_send+0x98>
if ( asr->is_enabled ) {
30019e6c: e5d32008 ldrb r2, [r3, #8]
30019e70: e3520000 cmp r2, #0
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
30019e74: e10f2000 mrs r2, CPSR
30019e78: e3821080 orr r1, r2, #128 ; 0x80
30019e7c: e129f001 msr CPSR_fc, r1
30019e80: 0a000011 beq 30019ecc <rtems_signal_send+0xa4>
)
{
ISR_Level _level;
_ISR_Disable( _level );
*signal_set |= signals;
30019e84: e5931014 ldr r1, [r3, #20]
30019e88: e1814004 orr r4, r1, r4
30019e8c: e5834014 str r4, [r3, #20]
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
30019e90: e129f002 msr CPSR_fc, r2
_ASR_Post_signals( signal_set, &asr->signals_posted );
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
30019e94: e59f3044 ldr r3, [pc, #68] ; 30019ee0 <rtems_signal_send+0xb8>
30019e98: e5932000 ldr r2, [r3]
30019e9c: e3520000 cmp r2, #0
30019ea0: 0a000003 beq 30019eb4 <rtems_signal_send+0x8c>
30019ea4: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED
30019ea8: e1500002 cmp r0, r2 <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
30019eac: 03a02001 moveq r2, #1 <== NOT EXECUTED
30019eb0: 05c32004 strbeq r2, [r3, #4] <== NOT EXECUTED
} else {
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
_Thread_Enable_dispatch();
30019eb4: eb001255 bl 3001e810 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
30019eb8: e3a00000 mov r0, #0
30019ebc: eaffffde b 30019e3c <rtems_signal_send+0x14>
}
_Thread_Enable_dispatch();
30019ec0: eb001252 bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
30019ec4: e3a0000b mov r0, #11 <== NOT EXECUTED
30019ec8: eaffffdb b 30019e3c <rtems_signal_send+0x14> <== NOT EXECUTED
30019ecc: e5931018 ldr r1, [r3, #24] <== NOT EXECUTED
30019ed0: e1814004 orr r4, r1, r4 <== NOT EXECUTED
30019ed4: e5834018 str r4, [r3, #24] <== NOT EXECUTED
30019ed8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
30019edc: eafffff4 b 30019eb4 <rtems_signal_send+0x8c> <== NOT EXECUTED
3000aa98 <rtems_task_create>:
size_t stack_size,
rtems_mode initial_modes,
rtems_attribute attribute_set,
rtems_id *id
)
{
3000aa98: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
3000aa9c: e24dd01c sub sp, sp, #28
3000aaa0: e59d9044 ldr r9, [sp, #68] ; 0x44
3000aaa4: e1a04000 mov r4, r0
Priority_Control core_priority;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !id )
3000aaa8: e3590000 cmp r9, #0
size_t stack_size,
rtems_mode initial_modes,
rtems_attribute attribute_set,
rtems_id *id
)
{
3000aaac: e1a05001 mov r5, r1
3000aab0: e1a0a002 mov sl, r2
3000aab4: e1a08003 mov r8, r3
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !id )
return RTEMS_INVALID_ADDRESS;
3000aab8: 03a00009 moveq r0, #9
Priority_Control core_priority;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !id )
3000aabc: 0a000002 beq 3000aacc <rtems_task_create+0x34>
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
3000aac0: e3540000 cmp r4, #0
return RTEMS_INVALID_NAME;
3000aac4: 03a00003 moveq r0, #3
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
3000aac8: 1a000001 bne 3000aad4 <rtems_task_create+0x3c>
}
#endif
_RTEMS_Unlock_allocator();
return RTEMS_SUCCESSFUL;
}
3000aacc: e28dd01c add sp, sp, #28
3000aad0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
/*
* Validate the RTEMS API priority and convert it to the core priority range.
*/
if ( !_Attributes_Is_system_task( the_attribute_set ) ) {
3000aad4: e59d3040 ldr r3, [sp, #64] ; 0x40
3000aad8: e3130902 tst r3, #32768 ; 0x8000
3000aadc: 1a000005 bne 3000aaf8 <rtems_task_create+0x60>
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
3000aae0: e3510000 cmp r1, #0
3000aae4: 0a00002a beq 3000ab94 <rtems_task_create+0xfc>
( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );
3000aae8: e59f30e4 ldr r3, [pc, #228] ; 3000abd4 <rtems_task_create+0x13c>
3000aaec: e5d33000 ldrb r3, [r3]
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
3000aaf0: e1510003 cmp r1, r3
3000aaf4: 8a000026 bhi 3000ab94 <rtems_task_create+0xfc>
*/
/*
* Lock the allocator mutex for protection
*/
_RTEMS_Lock_allocator();
3000aaf8: e59f20d8 ldr r2, [pc, #216] ; 3000abd8 <rtems_task_create+0x140>
3000aafc: e5920000 ldr r0, [r2]
3000ab00: eb0001cb bl 3000b234 <_API_Mutex_Lock>
* This function allocates a task control block from
* the inactive chain of free task control blocks.
*/
RTEMS_INLINE_ROUTINE Thread_Control *_RTEMS_tasks_Allocate( void )
{
return (Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information );
3000ab04: e59f00d0 ldr r0, [pc, #208] ; 3000abdc <rtems_task_create+0x144>
3000ab08: eb000479 bl 3000bcf4 <_Objects_Allocate>
* the event of an error.
*/
the_thread = _RTEMS_tasks_Allocate();
if ( !the_thread ) {
3000ab0c: e2506000 subs r6, r0, #0
3000ab10: 0a00002a beq 3000abc0 <rtems_task_create+0x128>
/*
* Initialize the core thread for this task.
*/
status = _Thread_Initialize(
3000ab14: e3180c01 tst r8, #256 ; 0x100
3000ab18: e3a0b000 mov fp, #0
3000ab1c: 13a07000 movne r7, #0
3000ab20: 03a07001 moveq r7, #1
3000ab24: e3180c02 tst r8, #512 ; 0x200
3000ab28: 03a0e000 moveq lr, #0
3000ab2c: 13a0e001 movne lr, #1
*/
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level (
Modes_Control mode_set
)
{
return ( mode_set & RTEMS_INTERRUPT_MASK );
3000ab30: e208c080 and ip, r8, #128 ; 0x80
3000ab34: e59f00a0 ldr r0, [pc, #160] ; 3000abdc <rtems_task_create+0x144>
3000ab38: e1a01006 mov r1, r6
3000ab3c: e1a0200b mov r2, fp
3000ab40: e1a0300a mov r3, sl
3000ab44: e58db000 str fp, [sp]
3000ab48: e98d40a0 stmib sp, {r5, r7, lr}
3000ab4c: e58db010 str fp, [sp, #16]
3000ab50: e58dc014 str ip, [sp, #20]
3000ab54: e58d4018 str r4, [sp, #24]
3000ab58: eb000986 bl 3000d178 <_Thread_Initialize>
NULL, /* no budget algorithm callout */
_Modes_Get_interrupt_level(initial_modes),
(Objects_Name) name
);
if ( !status ) {
3000ab5c: e150000b cmp r0, fp
3000ab60: 0a00000d beq 3000ab9c <rtems_task_create+0x104>
}
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true;
3000ab64: e59620ec ldr r2, [r6, #236] ; 0xec
#include <rtems/score/wkspace.h>
#include <rtems/score/apiext.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/apimutex.h>
rtems_status_code rtems_task_create(
3000ab68: e3180b01 tst r8, #1024 ; 0x400
3000ab6c: 13a01000 movne r1, #0
3000ab70: 03a01001 moveq r1, #1
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true;
*id = the_thread->Object.id;
3000ab74: e5963008 ldr r3, [r6, #8]
#include <rtems/score/wkspace.h>
#include <rtems/score/apiext.h>
#include <rtems/score/sysstate.h>
#include <rtems/score/apimutex.h>
rtems_status_code rtems_task_create(
3000ab78: e5c21008 strb r1, [r2, #8]
);
}
#endif
_RTEMS_Unlock_allocator();
3000ab7c: e59f2054 ldr r2, [pc, #84] ; 3000abd8 <rtems_task_create+0x140>
3000ab80: e5920000 ldr r0, [r2]
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
asr->is_enabled = _Modes_Is_asr_disabled(initial_modes) ? false : true;
*id = the_thread->Object.id;
3000ab84: e5893000 str r3, [r9]
);
}
#endif
_RTEMS_Unlock_allocator();
3000ab88: eb0001c5 bl 3000b2a4 <_API_Mutex_Unlock>
return RTEMS_SUCCESSFUL;
3000ab8c: e1a0000b mov r0, fp
3000ab90: eaffffcd b 3000aacc <rtems_task_create+0x34>
* Validate the RTEMS API priority and convert it to the core priority range.
*/
if ( !_Attributes_Is_system_task( the_attribute_set ) ) {
if ( !_RTEMS_tasks_Priority_is_valid( initial_priority ) )
return RTEMS_INVALID_PRIORITY;
3000ab94: e3a00013 mov r0, #19 <== NOT EXECUTED
3000ab98: eaffffcb b 3000aacc <rtems_task_create+0x34> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free (
Thread_Control *the_task
)
{
_Objects_Free(
3000ab9c: e5960008 ldr r0, [r6, #8]
3000aba0: eb00054e bl 3000c0e0 <_Objects_Get_information_id>
3000aba4: e1a01006 mov r1, r6
3000aba8: eb00052f bl 3000c06c <_Objects_Free>
#if defined(RTEMS_MULTIPROCESSING)
if ( is_global )
_Objects_MP_Free_global_object( the_global_object );
#endif
_RTEMS_tasks_Free( the_thread );
_RTEMS_Unlock_allocator();
3000abac: e59f2024 ldr r2, [pc, #36] ; 3000abd8 <rtems_task_create+0x140>
3000abb0: e5920000 ldr r0, [r2]
3000abb4: eb0001ba bl 3000b2a4 <_API_Mutex_Unlock>
return RTEMS_UNSATISFIED;
3000abb8: e3a0000d mov r0, #13
3000abbc: eaffffc2 b 3000aacc <rtems_task_create+0x34>
*/
the_thread = _RTEMS_tasks_Allocate();
if ( !the_thread ) {
_RTEMS_Unlock_allocator();
3000abc0: e59f3010 ldr r3, [pc, #16] ; 3000abd8 <rtems_task_create+0x140>
3000abc4: e5930000 ldr r0, [r3]
3000abc8: eb0001b5 bl 3000b2a4 <_API_Mutex_Unlock>
return RTEMS_TOO_MANY;
3000abcc: e3a00005 mov r0, #5
3000abd0: eaffffbd b 3000aacc <rtems_task_create+0x34>
3000abe0 <rtems_task_delete>:
#include <rtems/score/apimutex.h>
rtems_status_code rtems_task_delete(
rtems_id id
)
{
3000abe0: e92d4070 push {r4, r5, r6, lr}
register Thread_Control *the_thread;
Objects_Locations location;
Objects_Information *the_information;
_RTEMS_Lock_allocator();
3000abe4: e59f4070 ldr r4, [pc, #112] ; 3000ac5c <rtems_task_delete+0x7c>
#include <rtems/score/apimutex.h>
rtems_status_code rtems_task_delete(
rtems_id id
)
{
3000abe8: e24dd004 sub sp, sp, #4
3000abec: e1a05000 mov r5, r0
register Thread_Control *the_thread;
Objects_Locations location;
Objects_Information *the_information;
_RTEMS_Lock_allocator();
3000abf0: e5940000 ldr r0, [r4]
3000abf4: eb00018e bl 3000b234 <_API_Mutex_Lock>
the_thread = _Thread_Get( id, &location );
3000abf8: e1a00005 mov r0, r5
3000abfc: e1a0100d mov r1, sp
3000ac00: eb000937 bl 3000d0e4 <_Thread_Get>
switch ( location ) {
3000ac04: e59d5000 ldr r5, [sp]
Objects_Locations location;
Objects_Information *the_information;
_RTEMS_Lock_allocator();
the_thread = _Thread_Get( id, &location );
3000ac08: e1a06000 mov r6, r0
switch ( location ) {
3000ac0c: e3550000 cmp r5, #0
3000ac10: 1a00000d bne 3000ac4c <rtems_task_delete+0x6c>
case OBJECTS_LOCAL:
the_information = _Objects_Get_information_id( the_thread->Object.id );
3000ac14: e5900008 ldr r0, [r0, #8]
3000ac18: eb000530 bl 3000c0e0 <_Objects_Get_information_id>
0 /* Not used */
);
}
#endif
_Thread_Close( the_information, the_thread );
3000ac1c: e1a01006 mov r1, r6
3000ac20: eb000845 bl 3000cd3c <_Thread_Close>
3000ac24: e5960008 ldr r0, [r6, #8]
3000ac28: eb00052c bl 3000c0e0 <_Objects_Get_information_id>
3000ac2c: e1a01006 mov r1, r6
3000ac30: eb00050d bl 3000c06c <_Objects_Free>
_RTEMS_tasks_Free( the_thread );
_RTEMS_Unlock_allocator();
3000ac34: e5940000 ldr r0, [r4]
3000ac38: eb000199 bl 3000b2a4 <_API_Mutex_Unlock>
_Thread_Enable_dispatch();
3000ac3c: eb000920 bl 3000d0c4 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000ac40: e1a00005 mov r0, r5
break;
}
_RTEMS_Unlock_allocator();
return RTEMS_INVALID_ID;
}
3000ac44: e28dd004 add sp, sp, #4
3000ac48: e8bd8070 pop {r4, r5, r6, pc}
case OBJECTS_ERROR:
break;
}
_RTEMS_Unlock_allocator();
3000ac4c: e5940000 ldr r0, [r4] <== NOT EXECUTED
3000ac50: eb000193 bl 3000b2a4 <_API_Mutex_Unlock> <== NOT EXECUTED
return RTEMS_INVALID_ID;
3000ac54: e3a00004 mov r0, #4 <== NOT EXECUTED
3000ac58: eafffff9 b 3000ac44 <rtems_task_delete+0x64> <== NOT EXECUTED
3000c968 <rtems_task_get_note>:
rtems_status_code rtems_task_get_note(
rtems_id id,
uint32_t notepad,
uint32_t *note
)
{
3000c968: e92d4030 push {r4, r5, lr}
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
3000c96c: e59f30a8 ldr r3, [pc, #168] ; 3000ca1c <rtems_task_get_note+0xb4>
rtems_status_code rtems_task_get_note(
rtems_id id,
uint32_t notepad,
uint32_t *note
)
{
3000c970: e1a0c000 mov ip, r0
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
3000c974: e5d33004 ldrb r3, [r3, #4]
rtems_status_code rtems_task_get_note(
rtems_id id,
uint32_t notepad,
uint32_t *note
)
{
3000c978: e24dd008 sub sp, sp, #8
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
3000c97c: e3530000 cmp r3, #0
rtems_status_code rtems_task_get_note(
rtems_id id,
uint32_t notepad,
uint32_t *note
)
{
3000c980: e1a04001 mov r4, r1
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
return RTEMS_NOT_CONFIGURED;
3000c984: 03a00016 moveq r0, #22
{
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
3000c988: 1a000001 bne 3000c994 <rtems_task_get_note+0x2c>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3000c98c: e28dd008 add sp, sp, #8
3000c990: e8bd8030 pop {r4, r5, pc}
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
return RTEMS_NOT_CONFIGURED;
if ( !note )
3000c994: e3520000 cmp r2, #0
return RTEMS_INVALID_ADDRESS;
3000c998: 03a00009 moveq r0, #9
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
return RTEMS_NOT_CONFIGURED;
if ( !note )
3000c99c: 0afffffa beq 3000c98c <rtems_task_get_note+0x24>
/*
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
3000c9a0: e351000f cmp r1, #15
return RTEMS_INVALID_NUMBER;
3000c9a4: 83a0000a movhi r0, #10
/*
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
3000c9a8: 8afffff7 bhi 3000c98c <rtems_task_get_note+0x24>
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
3000c9ac: e59f306c ldr r3, [pc, #108] ; 3000ca20 <rtems_task_get_note+0xb8>
3000c9b0: e35c0000 cmp ip, #0
3000c9b4: e5933008 ldr r3, [r3, #8]
3000c9b8: 0a000011 beq 3000ca04 <rtems_task_get_note+0x9c>
3000c9bc: e5931008 ldr r1, [r3, #8]
3000c9c0: e15c0001 cmp ip, r1
3000c9c4: 0a00000e beq 3000ca04 <rtems_task_get_note+0x9c>
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
*note = api->Notepads[ notepad ];
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
3000c9c8: e28d1004 add r1, sp, #4
3000c9cc: e58d2000 str r2, [sp]
3000c9d0: eb0009ec bl 3000f188 <_Thread_Get>
switch ( location ) {
3000c9d4: e59d5004 ldr r5, [sp, #4]
3000c9d8: e59d2000 ldr r2, [sp]
3000c9dc: e3550000 cmp r5, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3000c9e0: 13a00004 movne r0, #4
*note = api->Notepads[ notepad ];
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
switch ( location ) {
3000c9e4: 1affffe8 bne 3000c98c <rtems_task_get_note+0x24>
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
*note = api->Notepads[ notepad ];
3000c9e8: e59030ec ldr r3, [r0, #236] ; 0xec
3000c9ec: e2844008 add r4, r4, #8
3000c9f0: e7933104 ldr r3, [r3, r4, lsl #2]
3000c9f4: e5823000 str r3, [r2]
_Thread_Enable_dispatch();
3000c9f8: eb0009da bl 3000f168 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000c9fc: e1a00005 mov r0, r5
3000ca00: eaffffe1 b 3000c98c <rtems_task_get_note+0x24>
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
*note = api->Notepads[ notepad ];
3000ca04: e59330ec ldr r3, [r3, #236] ; 0xec <== NOT EXECUTED
3000ca08: e2844008 add r4, r4, #8 <== NOT EXECUTED
3000ca0c: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3000ca10: e3a00000 mov r0, #0 <== NOT EXECUTED
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
*note = api->Notepads[ notepad ];
3000ca14: e5823000 str r3, [r2] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3000ca18: eaffffdb b 3000c98c <rtems_task_get_note+0x24> <== NOT EXECUTED
3000ac60 <rtems_task_ident>:
rtems_id *id
)
{
Objects_Name_or_id_lookup_errors status;
if ( !id )
3000ac60: e2523000 subs r3, r2, #0
rtems_status_code rtems_task_ident(
rtems_name name,
uint32_t node,
rtems_id *id
)
{
3000ac64: e52de004 push {lr} ; (str lr, [sp, #-4]!)
3000ac68: e1a0c000 mov ip, r0
3000ac6c: e1a02001 mov r2, r1
Objects_Name_or_id_lookup_errors status;
if ( !id )
3000ac70: 0a00000c beq 3000aca8 <rtems_task_ident+0x48>
return RTEMS_INVALID_ADDRESS;
if ( name == OBJECTS_ID_OF_SELF ) {
3000ac74: e3500000 cmp r0, #0
3000ac78: 1a000004 bne 3000ac90 <rtems_task_ident+0x30>
*id = _Thread_Executing->Object.id;
3000ac7c: e59f202c ldr r2, [pc, #44] ; 3000acb0 <rtems_task_ident+0x50>
3000ac80: e5922008 ldr r2, [r2, #8]
3000ac84: e5922008 ldr r2, [r2, #8]
3000ac88: e5832000 str r2, [r3]
return RTEMS_SUCCESSFUL;
3000ac8c: e49df004 pop {pc} ; (ldr pc, [sp], #4)
}
status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id );
3000ac90: e59f001c ldr r0, [pc, #28] ; 3000acb4 <rtems_task_ident+0x54>
3000ac94: e1a0100c mov r1, ip
3000ac98: eb00059f bl 3000c31c <_Objects_Name_to_id_u32>
return _Status_Object_name_errors_to_status[ status ];
3000ac9c: e59f3014 ldr r3, [pc, #20] ; 3000acb8 <rtems_task_ident+0x58>
3000aca0: e7930100 ldr r0, [r3, r0, lsl #2]
3000aca4: e49df004 pop {pc} ; (ldr pc, [sp], #4)
)
{
Objects_Name_or_id_lookup_errors status;
if ( !id )
return RTEMS_INVALID_ADDRESS;
3000aca8: e3a00009 mov r0, #9 <== NOT EXECUTED
}
status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id );
return _Status_Object_name_errors_to_status[ status ];
}
3000acac: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
3001a2b0 <rtems_task_is_suspended>:
*/
rtems_status_code rtems_task_is_suspended(
rtems_id id
)
{
3001a2b0: e92d4010 push {r4, lr} <== NOT EXECUTED
3001a2b4: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
3001a2b8: e1a0100d mov r1, sp <== NOT EXECUTED
3001a2bc: eb00115b bl 3001e830 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
3001a2c0: e59d3000 ldr r3, [sp] <== NOT EXECUTED
3001a2c4: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3001a2c8: 13a00004 movne r0, #4 <== NOT EXECUTED
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
3001a2cc: 1a000004 bne 3001a2e4 <rtems_task_is_suspended+0x34> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_suspended (
States_Control the_states
)
{
return (the_states & STATES_SUSPENDED);
3001a2d0: e5904010 ldr r4, [r0, #16] <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
3001a2d4: e2144002 ands r4, r4, #2 <== NOT EXECUTED
3001a2d8: 0a000003 beq 3001a2ec <rtems_task_is_suspended+0x3c> <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
3001a2dc: eb00114b bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_ALREADY_SUSPENDED;
3001a2e0: e3a0000f mov r0, #15 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3001a2e4: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3001a2e8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
_Thread_Enable_dispatch();
3001a2ec: eb001147 bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3001a2f0: e1a00004 mov r0, r4 <== NOT EXECUTED
3001a2f4: eafffffa b 3001a2e4 <rtems_task_is_suspended+0x34> <== NOT EXECUTED
300141a4 <rtems_task_mode>:
rtems_status_code rtems_task_mode(
rtems_mode mode_set,
rtems_mode mask,
rtems_mode *previous_mode_set
)
{
300141a4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
ASR_Information *asr;
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
300141a8: e2525000 subs r5, r2, #0
rtems_status_code rtems_task_mode(
rtems_mode mode_set,
rtems_mode mask,
rtems_mode *previous_mode_set
)
{
300141ac: e1a04000 mov r4, r0
300141b0: e1a06001 mov r6, r1
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
300141b4: 03a00009 moveq r0, #9
ASR_Information *asr;
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
300141b8: 08bd8ff0 popeq {r4, r5, r6, r7, r8, r9, sl, fp, pc}
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
300141bc: e59f9148 ldr r9, [pc, #328] ; 3001430c <rtems_task_mode+0x168>
300141c0: e5997008 ldr r7, [r9, #8]
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
300141c4: e5d7a070 ldrb sl, [r7, #112] ; 0x70
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
300141c8: e59780ec ldr r8, [r7, #236] ; 0xec
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
300141cc: e5973078 ldr r3, [r7, #120] ; 0x78
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
300141d0: e35a0000 cmp sl, #0
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;
300141d4: e5d8b008 ldrb fp, [r8, #8]
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
300141d8: 03a0ac01 moveq sl, #256 ; 0x100
300141dc: 13a0a000 movne sl, #0
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
300141e0: e3530000 cmp r3, #0
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
300141e4: 138aac02 orrne sl, sl, #512 ; 0x200
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
300141e8: e35b0000 cmp fp, #0
300141ec: 03a0bb01 moveq fp, #1024 ; 0x400
300141f0: 13a0b000 movne fp, #0
old_mode |= _ISR_Get_level();
300141f4: ebffeed3 bl 3000fd48 <_CPU_ISR_Get_level>
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;
300141f8: e18bb000 orr fp, fp, r0
old_mode |= _ISR_Get_level();
300141fc: e18ba00a orr sl, fp, sl
*previous_mode_set = old_mode;
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
30014200: e3160c01 tst r6, #256 ; 0x100
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
old_mode |= _ISR_Get_level();
*previous_mode_set = old_mode;
30014204: e585a000 str sl, [r5]
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
30014208: 0a000003 beq 3001421c <rtems_task_mode+0x78>
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
3001420c: e3140c01 tst r4, #256 ; 0x100
30014210: 13a03000 movne r3, #0
30014214: 03a03001 moveq r3, #1
30014218: e5c73070 strb r3, [r7, #112] ; 0x70
if ( mask & RTEMS_TIMESLICE_MASK ) {
3001421c: e3160c02 tst r6, #512 ; 0x200
30014220: 1a000028 bne 300142c8 <rtems_task_mode+0x124>
}
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
30014224: e3160080 tst r6, #128 ; 0x80
30014228: 1a00002f bne 300142ec <rtems_task_mode+0x148>
* This is specific to the RTEMS API
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
3001422c: e2166b01 ands r6, r6, #1024 ; 0x400
30014230: 0a000012 beq 30014280 <rtems_task_mode+0xdc>
#include <rtems/score/tod.h>
#include <rtems/score/wkspace.h>
#include <rtems/score/apiext.h>
#include <rtems/score/sysstate.h>
rtems_status_code rtems_task_mode(
30014234: e3140b01 tst r4, #1024 ; 0x400
is_asr_enabled = false;
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 ) {
30014238: e5d82008 ldrb r2, [r8, #8]
#include <rtems/score/tod.h>
#include <rtems/score/wkspace.h>
#include <rtems/score/apiext.h>
#include <rtems/score/sysstate.h>
rtems_status_code rtems_task_mode(
3001423c: 13a03000 movne r3, #0
30014240: 03a03001 moveq r3, #1
is_asr_enabled = false;
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 ) {
30014244: e1520003 cmp r2, r3
/*
* This is specific to the RTEMS API
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
30014248: 03a06000 moveq r6, #0
if ( mask & RTEMS_ASR_MASK ) {
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
if ( is_asr_enabled != asr->is_enabled ) {
3001424c: 0a00000b beq 30014280 <rtems_task_mode+0xdc>
asr->is_enabled = is_asr_enabled;
30014250: e5c83008 strb r3, [r8, #8]
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
30014254: e10f3000 mrs r3, CPSR
30014258: e3832080 orr r2, r3, #128 ; 0x80
3001425c: e129f002 msr CPSR_fc, r2
{
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
_signals = information->signals_pending;
30014260: e5981018 ldr r1, [r8, #24]
information->signals_pending = information->signals_posted;
30014264: e5982014 ldr r2, [r8, #20]
information->signals_posted = _signals;
30014268: e5881014 str r1, [r8, #20]
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
_signals = information->signals_pending;
information->signals_pending = information->signals_posted;
3001426c: e5882018 str r2, [r8, #24]
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
30014270: e129f003 msr CPSR_fc, r3
_ASR_Swap_signals( asr );
if ( _ASR_Are_signals_pending( asr ) ) {
30014274: e5986014 ldr r6, [r8, #20]
30014278: e3560000 cmp r6, #0
/*
* This is specific to the RTEMS API
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
3001427c: 13a06001 movne r6, #1
needs_asr_dispatching = true;
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) ) {
30014280: e59f3088 ldr r3, [pc, #136] ; 30014310 <rtems_task_mode+0x16c>
30014284: e5933000 ldr r3, [r3]
30014288: e3530003 cmp r3, #3
if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
_Thread_Dispatch();
}
return RTEMS_SUCCESSFUL;
3001428c: 13a00000 movne r0, #0
needs_asr_dispatching = true;
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) ) {
30014290: 18bd8ff0 popne {r4, r5, r6, r7, r8, r9, sl, fp, pc}
{
Thread_Control *executing;
executing = _Thread_Executing;
if ( are_signals_pending ||
30014294: e3560000 cmp r6, #0
bool are_signals_pending
)
{
Thread_Control *executing;
executing = _Thread_Executing;
30014298: e5993008 ldr r3, [r9, #8]
if ( are_signals_pending ||
3001429c: 1a000015 bne 300142f8 <rtems_task_mode+0x154>
300142a0: e59f2064 ldr r2, [pc, #100] ; 3001430c <rtems_task_mode+0x168>
300142a4: e592200c ldr r2, [r2, #12]
300142a8: e1530002 cmp r3, r2
if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
_Thread_Dispatch();
}
return RTEMS_SUCCESSFUL;
300142ac: 01a00006 moveq r0, r6
300142b0: 08bd8ff0 popeq {r4, r5, r6, r7, r8, r9, sl, fp, pc}
(!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
300142b4: e5d33070 ldrb r3, [r3, #112] ; 0x70
300142b8: e3530000 cmp r3, #0
300142bc: 1a00000d bne 300142f8 <rtems_task_mode+0x154>
300142c0: e1a00006 mov r0, r6 <== NOT EXECUTED
}
300142c4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
*/
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) ) {
300142c8: e2143c02 ands r3, r4, #512 ; 0x200
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
300142cc: 159f3040 ldrne r3, [pc, #64] ; 30014314 <rtems_task_mode+0x170>
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;
300142d0: 13a02001 movne r2, #1
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
300142d4: 15933000 ldrne r3, [r3]
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;
300142d8: 15872078 strne r2, [r7, #120] ; 0x78
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
300142dc: 15873074 strne r3, [r7, #116] ; 0x74
} else
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
300142e0: 05873078 streq r3, [r7, #120] ; 0x78
}
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
300142e4: e3160080 tst r6, #128 ; 0x80
300142e8: 0affffcf beq 3001422c <rtems_task_mode+0x88>
*/
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (
Modes_Control mode_set
)
{
_ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );
300142ec: e2040080 and r0, r4, #128 ; 0x80
300142f0: ebffee8f bl 3000fd34 <_CPU_ISR_Set_level>
300142f4: eaffffcc b 3001422c <rtems_task_mode+0x88>
_Thread_Dispatch_necessary = true;
300142f8: e3a03001 mov r3, #1
300142fc: e5c93004 strb r3, [r9, #4]
}
}
if ( _System_state_Is_up( _System_state_Get() ) ) {
if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
_Thread_Dispatch();
30014300: ebffe91d bl 3000e77c <_Thread_Dispatch>
}
return RTEMS_SUCCESSFUL;
30014304: e3a00000 mov r0, #0
30014308: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
3000b55c <rtems_task_restart>:
rtems_status_code rtems_task_restart(
rtems_id id,
uint32_t argument
)
{
3000b55c: e92d4030 push {r4, r5, lr}
3000b560: e24dd004 sub sp, sp, #4
3000b564: e1a05001 mov r5, r1
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
3000b568: e1a0100d mov r1, sp
3000b56c: eb0008f9 bl 3000d958 <_Thread_Get>
switch ( location ) {
3000b570: e59d4000 ldr r4, [sp]
3000b574: e3540000 cmp r4, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3000b578: 13a00004 movne r0, #4
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
3000b57c: 1a000006 bne 3000b59c <rtems_task_restart+0x40>
case OBJECTS_LOCAL:
if ( _Thread_Restart( the_thread, NULL, argument ) ) {
3000b580: e1a01004 mov r1, r4
3000b584: e1a02005 mov r2, r5
3000b588: eb000b01 bl 3000e194 <_Thread_Restart>
3000b58c: e3500000 cmp r0, #0
3000b590: 1a000003 bne 3000b5a4 <rtems_task_restart+0x48>
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
3000b594: eb0008e7 bl 3000d938 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
3000b598: e3a0000e mov r0, #14 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3000b59c: e28dd004 add sp, sp, #4
3000b5a0: e8bd8030 pop {r4, r5, pc}
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( _Thread_Restart( the_thread, NULL, argument ) ) {
_Thread_Enable_dispatch();
3000b5a4: eb0008e3 bl 3000d938 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000b5a8: e1a00004 mov r0, r4
3000b5ac: eafffffa b 3000b59c <rtems_task_restart+0x40>
3000e2b8 <rtems_task_resume>:
#include <rtems/score/sysstate.h>
rtems_status_code rtems_task_resume(
rtems_id id
)
{
3000e2b8: e92d4010 push {r4, lr}
3000e2bc: e24dd004 sub sp, sp, #4
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
3000e2c0: e1a0100d mov r1, sp
3000e2c4: eb0008ee bl 30010684 <_Thread_Get>
switch ( location ) {
3000e2c8: e59d4000 ldr r4, [sp]
)
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
3000e2cc: e1a03000 mov r3, r0
switch ( location ) {
3000e2d0: e3540000 cmp r4, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3000e2d4: 13a00004 movne r0, #4
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
3000e2d8: 1a000004 bne 3000e2f0 <rtems_task_resume+0x38>
*/
RTEMS_INLINE_ROUTINE bool _States_Is_suspended (
States_Control the_states
)
{
return (the_states & STATES_SUSPENDED);
3000e2dc: e5933010 ldr r3, [r3, #16]
case OBJECTS_LOCAL:
if ( _States_Is_suspended( the_thread->current_state ) ) {
3000e2e0: e3130002 tst r3, #2
3000e2e4: 1a000003 bne 3000e2f8 <rtems_task_resume+0x40>
_Thread_Resume( the_thread );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
3000e2e8: eb0008dd bl 30010664 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
3000e2ec: e3a0000e mov r0, #14 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3000e2f0: e28dd004 add sp, sp, #4
3000e2f4: e8bd8010 pop {r4, pc}
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( _States_Is_suspended( the_thread->current_state ) ) {
_Thread_Resume( the_thread );
3000e2f8: e3a01002 mov r1, #2
3000e2fc: eb0007e3 bl 30010290 <_Thread_Clear_state>
_Thread_Enable_dispatch();
3000e300: eb0008d7 bl 30010664 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000e304: e1a00004 mov r0, r4
3000e308: eafffff8 b 3000e2f0 <rtems_task_resume+0x38>
3000cb20 <rtems_task_set_note>:
rtems_status_code rtems_task_set_note(
rtems_id id,
uint32_t notepad,
uint32_t note
)
{
3000cb20: e92d4030 push {r4, r5, lr}
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
3000cb24: e59f3094 ldr r3, [pc, #148] ; 3000cbc0 <rtems_task_set_note+0xa0>
rtems_status_code rtems_task_set_note(
rtems_id id,
uint32_t notepad,
uint32_t note
)
{
3000cb28: e1a0c000 mov ip, r0
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
3000cb2c: e5d33004 ldrb r3, [r3, #4]
rtems_status_code rtems_task_set_note(
rtems_id id,
uint32_t notepad,
uint32_t note
)
{
3000cb30: e24dd008 sub sp, sp, #8
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
3000cb34: e3530000 cmp r3, #0
rtems_status_code rtems_task_set_note(
rtems_id id,
uint32_t notepad,
uint32_t note
)
{
3000cb38: e1a04001 mov r4, r1
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
return RTEMS_NOT_CONFIGURED;
3000cb3c: 03a00016 moveq r0, #22
{
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
3000cb40: 1a000001 bne 3000cb4c <rtems_task_set_note+0x2c>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3000cb44: e28dd008 add sp, sp, #8
3000cb48: e8bd8030 pop {r4, r5, pc}
/*
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
3000cb4c: e351000f cmp r1, #15
return RTEMS_INVALID_NUMBER;
3000cb50: 83a0000a movhi r0, #10
/*
* NOTE: There is no check for < RTEMS_NOTEPAD_FIRST because that would
* be checking an unsigned number for being negative.
*/
if ( notepad > RTEMS_NOTEPAD_LAST )
3000cb54: 8afffffa bhi 3000cb44 <rtems_task_set_note+0x24>
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
3000cb58: e59f3064 ldr r3, [pc, #100] ; 3000cbc4 <rtems_task_set_note+0xa4>
3000cb5c: e35c0000 cmp ip, #0
3000cb60: e5933008 ldr r3, [r3, #8]
3000cb64: 0a000010 beq 3000cbac <rtems_task_set_note+0x8c>
3000cb68: e5931008 ldr r1, [r3, #8]
3000cb6c: e15c0001 cmp ip, r1
3000cb70: 0a00000d beq 3000cbac <rtems_task_set_note+0x8c>
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
api->Notepads[ notepad ] = note;
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
3000cb74: e28d1004 add r1, sp, #4
3000cb78: e58d2000 str r2, [sp]
3000cb7c: eb000981 bl 3000f188 <_Thread_Get>
switch ( location ) {
3000cb80: e59d5004 ldr r5, [sp, #4]
3000cb84: e59d2000 ldr r2, [sp]
3000cb88: e3550000 cmp r5, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3000cb8c: 13a00004 movne r0, #4
api->Notepads[ notepad ] = note;
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
switch ( location ) {
3000cb90: 1affffeb bne 3000cb44 <rtems_task_set_note+0x24>
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
api->Notepads[ notepad ] = note;
3000cb94: e59030ec ldr r3, [r0, #236] ; 0xec
3000cb98: e2844008 add r4, r4, #8
3000cb9c: e7832104 str r2, [r3, r4, lsl #2]
_Thread_Enable_dispatch();
3000cba0: eb000970 bl 3000f168 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000cba4: e1a00005 mov r0, r5
3000cba8: eaffffe5 b 3000cb44 <rtems_task_set_note+0x24>
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
api->Notepads[ notepad ] = note;
3000cbac: e59330ec ldr r3, [r3, #236] ; 0xec <== NOT EXECUTED
3000cbb0: e2844008 add r4, r4, #8 <== NOT EXECUTED
3000cbb4: e7832104 str r2, [r3, r4, lsl #2] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3000cbb8: e3a00000 mov r0, #0 <== NOT EXECUTED
3000cbbc: eaffffe0 b 3000cb44 <rtems_task_set_note+0x24> <== NOT EXECUTED
3000f080 <rtems_task_set_priority>:
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
3000f080: e92d4030 push {r4, r5, lr}
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
3000f084: e2514000 subs r4, r1, #0
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
3000f088: e24dd004 sub sp, sp, #4
3000f08c: e1a05002 mov r5, r2
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
3000f090: 0a000004 beq 3000f0a8 <rtems_task_set_priority+0x28>
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );
3000f094: e59f3078 ldr r3, [pc, #120] ; 3000f114 <rtems_task_set_priority+0x94>
3000f098: e5d33000 ldrb r3, [r3]
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
3000f09c: e1540003 cmp r4, r3
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
3000f0a0: 83a00013 movhi r0, #19
3000f0a4: 8a000018 bhi 3000f10c <rtems_task_set_priority+0x8c>
if ( !old_priority )
3000f0a8: e3550000 cmp r5, #0
return RTEMS_INVALID_ADDRESS;
3000f0ac: 03a00009 moveq r0, #9
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
3000f0b0: 0a000015 beq 3000f10c <rtems_task_set_priority+0x8c>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
3000f0b4: e1a0100d mov r1, sp
3000f0b8: eb00094a bl 300115e8 <_Thread_Get>
switch ( location ) {
3000f0bc: e59d3000 ldr r3, [sp]
3000f0c0: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3000f0c4: 13a00004 movne r0, #4
if ( !old_priority )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
3000f0c8: 1a00000f bne 3000f10c <rtems_task_set_priority+0x8c>
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
*old_priority = the_thread->current_priority;
3000f0cc: e5903014 ldr r3, [r0, #20]
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
3000f0d0: e3540000 cmp r4, #0
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
*old_priority = the_thread->current_priority;
3000f0d4: e5853000 str r3, [r5]
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
3000f0d8: 0a000009 beq 3000f104 <rtems_task_set_priority+0x84>
the_thread->real_priority = new_priority;
if ( the_thread->resource_count == 0 ||
3000f0dc: e590301c ldr r3, [r0, #28]
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;
3000f0e0: e5804018 str r4, [r0, #24]
if ( the_thread->resource_count == 0 ||
3000f0e4: e3530000 cmp r3, #0
3000f0e8: 0a000002 beq 3000f0f8 <rtems_task_set_priority+0x78>
3000f0ec: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED
3000f0f0: e1540003 cmp r4, r3 <== NOT EXECUTED
3000f0f4: 2a000002 bcs 3000f104 <rtems_task_set_priority+0x84> <== NOT EXECUTED
the_thread->current_priority > new_priority )
_Thread_Change_priority( the_thread, new_priority, false );
3000f0f8: e1a01004 mov r1, r4
3000f0fc: e3a02000 mov r2, #0
3000f100: eb0007fd bl 300110fc <_Thread_Change_priority>
}
_Thread_Enable_dispatch();
3000f104: eb00092f bl 300115c8 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000f108: e3a00000 mov r0, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3000f10c: e28dd004 add sp, sp, #4
3000f110: e8bd8030 pop {r4, r5, pc}
3000ad50 <rtems_task_start>:
rtems_status_code rtems_task_start(
rtems_id id,
rtems_task_entry entry_point,
rtems_task_argument argument
)
{
3000ad50: e92d4070 push {r4, r5, r6, lr}
register Thread_Control *the_thread;
Objects_Locations location;
if ( entry_point == NULL )
3000ad54: e2516000 subs r6, r1, #0
rtems_status_code rtems_task_start(
rtems_id id,
rtems_task_entry entry_point,
rtems_task_argument argument
)
{
3000ad58: e24dd008 sub sp, sp, #8
3000ad5c: e1a05002 mov r5, r2
register Thread_Control *the_thread;
Objects_Locations location;
if ( entry_point == NULL )
return RTEMS_INVALID_ADDRESS;
3000ad60: 03a00009 moveq r0, #9
)
{
register Thread_Control *the_thread;
Objects_Locations location;
if ( entry_point == NULL )
3000ad64: 0a00000e beq 3000ada4 <rtems_task_start+0x54>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
3000ad68: e28d1004 add r1, sp, #4
3000ad6c: eb0008dc bl 3000d0e4 <_Thread_Get>
switch ( location ) {
3000ad70: e59d4004 ldr r4, [sp, #4]
3000ad74: e3540000 cmp r4, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3000ad78: 13a00004 movne r0, #4
if ( entry_point == NULL )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
3000ad7c: 1a000008 bne 3000ada4 <rtems_task_start+0x54>
case OBJECTS_LOCAL:
if ( _Thread_Start(
3000ad80: e1a01004 mov r1, r4
3000ad84: e1a02006 mov r2, r6
3000ad88: e1a03004 mov r3, r4
3000ad8c: e58d5000 str r5, [sp]
3000ad90: eb000b31 bl 3000da5c <_Thread_Start>
3000ad94: e3500000 cmp r0, #0
3000ad98: 1a000003 bne 3000adac <rtems_task_start+0x5c>
the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
3000ad9c: eb0008c8 bl 3000d0c4 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
3000ada0: e3a0000e mov r0, #14 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3000ada4: e28dd008 add sp, sp, #8
3000ada8: e8bd8070 pop {r4, r5, r6, pc}
switch ( location ) {
case OBJECTS_LOCAL:
if ( _Thread_Start(
the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
_Thread_Enable_dispatch();
3000adac: eb0008c4 bl 3000d0c4 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000adb0: e1a00004 mov r0, r4
3000adb4: eafffffa b 3000ada4 <rtems_task_start+0x54>
3000e578 <rtems_task_suspend>:
#include <rtems/score/sysstate.h>
rtems_status_code rtems_task_suspend(
rtems_id id
)
{
3000e578: e92d4010 push {r4, lr}
3000e57c: e24dd004 sub sp, sp, #4
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
3000e580: e1a0100d mov r1, sp
3000e584: eb0008ba bl 30010874 <_Thread_Get>
switch ( location ) {
3000e588: e59d3000 ldr r3, [sp]
)
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
3000e58c: e1a02000 mov r2, r0
switch ( location ) {
3000e590: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3000e594: 13a00004 movne r0, #4
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
3000e598: 1a000004 bne 3000e5b0 <rtems_task_suspend+0x38>
*/
RTEMS_INLINE_ROUTINE bool _States_Is_suspended (
States_Control the_states
)
{
return (the_states & STATES_SUSPENDED);
3000e59c: e5924010 ldr r4, [r2, #16]
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
3000e5a0: e2144002 ands r4, r4, #2
3000e5a4: 0a000003 beq 3000e5b8 <rtems_task_suspend+0x40>
_Thread_Suspend( the_thread );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
3000e5a8: eb0008a9 bl 30010854 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_ALREADY_SUSPENDED;
3000e5ac: e3a0000f mov r0, #15 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3000e5b0: e28dd004 add sp, sp, #4
3000e5b4: e8bd8010 pop {r4, pc}
the_thread = _Thread_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
_Thread_Suspend( the_thread );
3000e5b8: e3a01002 mov r1, #2
3000e5bc: eb000ac2 bl 300110cc <_Thread_Set_state>
_Thread_Enable_dispatch();
3000e5c0: eb0008a3 bl 30010854 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000e5c4: e1a00004 mov r0, r4
3000e5c8: eafffff8 b 3000e5b0 <rtems_task_suspend+0x38>
3000962c <rtems_task_variable_add>:
rtems_status_code rtems_task_variable_add(
rtems_id tid,
void **ptr,
void (*dtor)(void *)
)
{
3000962c: e92d4070 push {r4, r5, r6, lr}
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *new;
if ( !ptr )
30009630: e2514000 subs r4, r1, #0
rtems_status_code rtems_task_variable_add(
rtems_id tid,
void **ptr,
void (*dtor)(void *)
)
{
30009634: e24dd004 sub sp, sp, #4
30009638: e1a05002 mov r5, r2
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *new;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
3000963c: 03a00009 moveq r0, #9
{
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *new;
if ( !ptr )
30009640: 0a000013 beq 30009694 <rtems_task_variable_add+0x68>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
30009644: e1a0100d mov r1, sp
30009648: eb00080c bl 3000b680 <_Thread_Get>
switch (location) {
3000964c: e59d3000 ldr r3, [sp]
rtems_task_variable_t *tvp, *new;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
30009650: e1a06000 mov r6, r0
switch (location) {
30009654: e3530000 cmp r3, #0
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
30009658: 13a00004 movne r0, #4
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
switch (location) {
3000965c: 1a00000c bne 30009694 <rtems_task_variable_add+0x68>
case OBJECTS_LOCAL:
/*
* Figure out if the variable is already in this task's list.
*/
tvp = the_thread->task_variables;
30009660: e59630f8 ldr r3, [r6, #248] ; 0xf8
while (tvp) {
30009664: e3530000 cmp r3, #0
30009668: 1a000003 bne 3000967c <rtems_task_variable_add+0x50>
3000966c: ea00000a b 3000969c <rtems_task_variable_add+0x70>
if (tvp->ptr == ptr) {
tvp->dtor = dtor;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
30009670: e5933000 ldr r3, [r3] <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Figure out if the variable is already in this task's list.
*/
tvp = the_thread->task_variables;
while (tvp) {
30009674: e3530000 cmp r3, #0 <== NOT EXECUTED
30009678: 0a000007 beq 3000969c <rtems_task_variable_add+0x70> <== NOT EXECUTED
if (tvp->ptr == ptr) {
3000967c: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED
30009680: e1520004 cmp r2, r4 <== NOT EXECUTED
30009684: 1afffff9 bne 30009670 <rtems_task_variable_add+0x44> <== NOT EXECUTED
tvp->dtor = dtor;
30009688: e5835010 str r5, [r3, #16] <== NOT EXECUTED
_Thread_Enable_dispatch();
3000968c: eb0007f3 bl 3000b660 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
30009690: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
30009694: e28dd004 add sp, sp, #4
30009698: e8bd8070 pop {r4, r5, r6, pc}
}
/*
* Now allocate memory for this task variable.
*/
new = (rtems_task_variable_t *)
3000969c: e3a00014 mov r0, #20
300096a0: eb000be3 bl 3000c634 <_Workspace_Allocate>
_Workspace_Allocate(sizeof(rtems_task_variable_t));
if (new == NULL) {
300096a4: e3500000 cmp r0, #0
300096a8: 0a000009 beq 300096d4 <rtems_task_variable_add+0xa8>
_Thread_Enable_dispatch();
return RTEMS_NO_MEMORY;
}
new->gval = *ptr;
300096ac: e5942000 ldr r2, [r4]
new->ptr = ptr;
new->dtor = dtor;
new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
300096b0: e59630f8 ldr r3, [r6, #248] ; 0xf8
_Workspace_Allocate(sizeof(rtems_task_variable_t));
if (new == NULL) {
_Thread_Enable_dispatch();
return RTEMS_NO_MEMORY;
}
new->gval = *ptr;
300096b4: e5802008 str r2, [r0, #8]
new->ptr = ptr;
300096b8: e5804004 str r4, [r0, #4]
new->dtor = dtor;
300096bc: e5805010 str r5, [r0, #16]
new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
300096c0: e5803000 str r3, [r0]
the_thread->task_variables = new;
300096c4: e58600f8 str r0, [r6, #248] ; 0xf8
_Thread_Enable_dispatch();
300096c8: eb0007e4 bl 3000b660 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
300096cc: e3a00000 mov r0, #0
300096d0: eaffffef b 30009694 <rtems_task_variable_add+0x68>
* Now allocate memory for this task variable.
*/
new = (rtems_task_variable_t *)
_Workspace_Allocate(sizeof(rtems_task_variable_t));
if (new == NULL) {
_Thread_Enable_dispatch();
300096d4: eb0007e1 bl 3000b660 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NO_MEMORY;
300096d8: e3a0001a mov r0, #26 <== NOT EXECUTED
300096dc: eaffffec b 30009694 <rtems_task_variable_add+0x68> <== NOT EXECUTED
300096e0 <rtems_task_variable_delete>:
rtems_status_code rtems_task_variable_delete(
rtems_id tid,
void **ptr
)
{
300096e0: e92d4010 push {r4, lr}
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
300096e4: e2514000 subs r4, r1, #0
rtems_status_code rtems_task_variable_delete(
rtems_id tid,
void **ptr
)
{
300096e8: e24dd004 sub sp, sp, #4
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
300096ec: 03a00009 moveq r0, #9
{
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
300096f0: 0a000015 beq 3000974c <rtems_task_variable_delete+0x6c>
return RTEMS_INVALID_ADDRESS;
prev = NULL;
the_thread = _Thread_Get (tid, &location);
300096f4: e1a0100d mov r1, sp
300096f8: eb0007e0 bl 3000b680 <_Thread_Get>
switch (location) {
300096fc: e59d3000 ldr r3, [sp]
30009700: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
30009704: 13a00004 movne r0, #4
return RTEMS_INVALID_ADDRESS;
prev = NULL;
the_thread = _Thread_Get (tid, &location);
switch (location) {
30009708: 1a00000f bne 3000974c <rtems_task_variable_delete+0x6c>
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
3000970c: e59030f8 ldr r3, [r0, #248] ; 0xf8
while (tvp) {
30009710: e3530000 cmp r3, #0
30009714: 0a00000a beq 30009744 <rtems_task_variable_delete+0x64>
if (tvp->ptr == ptr) {
30009718: e5932004 ldr r2, [r3, #4]
3000971c: e1520004 cmp r2, r4
30009720: 1a000004 bne 30009738 <rtems_task_variable_delete+0x58>
30009724: ea000010 b 3000976c <rtems_task_variable_delete+0x8c>
30009728: e5912004 ldr r2, [r1, #4] <== NOT EXECUTED
3000972c: e1520004 cmp r2, r4 <== NOT EXECUTED
30009730: 0a000007 beq 30009754 <rtems_task_variable_delete+0x74> <== NOT EXECUTED
30009734: e1a03001 mov r3, r1 <== NOT EXECUTED
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
30009738: e5931000 ldr r1, [r3] <== NOT EXECUTED
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
3000973c: e3510000 cmp r1, #0 <== NOT EXECUTED
30009740: 1afffff8 bne 30009728 <rtems_task_variable_delete+0x48> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
30009744: eb0007c5 bl 3000b660 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
30009748: e3a00009 mov r0, #9 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3000974c: e28dd004 add sp, sp, #4
30009750: e8bd8010 pop {r4, pc}
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
if (tvp->ptr == ptr) {
if (prev)
prev->next = tvp->next;
30009754: e5912000 ldr r2, [r1] <== NOT EXECUTED
30009758: e5832000 str r2, [r3] <== NOT EXECUTED
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
3000975c: eb000028 bl 30009804 <_RTEMS_Tasks_Invoke_task_variable_dtor>
_Thread_Enable_dispatch();
30009760: eb0007be bl 3000b660 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
30009764: e3a00000 mov r0, #0
30009768: eafffff7 b 3000974c <rtems_task_variable_delete+0x6c>
while (tvp) {
if (tvp->ptr == ptr) {
if (prev)
prev->next = tvp->next;
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
3000976c: e5932000 ldr r2, [r3]
30009770: e1a01003 mov r1, r3
30009774: e58020f8 str r2, [r0, #248] ; 0xf8
30009778: eafffff7 b 3000975c <rtems_task_variable_delete+0x7c>
3000977c <rtems_task_variable_get>:
rtems_status_code rtems_task_variable_get(
rtems_id tid,
void **ptr,
void **result
)
{
3000977c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp;
if ( !ptr )
30009780: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_task_variable_get(
rtems_id tid,
void **ptr,
void **result
)
{
30009784: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
30009788: e1a05002 mov r5, r2 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp;
if ( !ptr )
3000978c: 0a000016 beq 300097ec <rtems_task_variable_get+0x70> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !result )
30009790: e3520000 cmp r2, #0 <== NOT EXECUTED
30009794: 0a000014 beq 300097ec <rtems_task_variable_get+0x70> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
30009798: e1a0100d mov r1, sp <== NOT EXECUTED
3000979c: eb0007b7 bl 3000b680 <_Thread_Get> <== NOT EXECUTED
switch (location) {
300097a0: e59d3000 ldr r3, [sp] <== NOT EXECUTED
300097a4: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
300097a8: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !result )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
switch (location) {
300097ac: 1a00000f bne 300097f0 <rtems_task_variable_get+0x74> <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Figure out if the variable is in this task's list.
*/
tvp = the_thread->task_variables;
300097b0: e59030f8 ldr r3, [r0, #248] ; 0xf8 <== NOT EXECUTED
while (tvp) {
300097b4: e3530000 cmp r3, #0 <== NOT EXECUTED
300097b8: 1a000003 bne 300097cc <rtems_task_variable_get+0x50> <== NOT EXECUTED
300097bc: ea00000d b 300097f8 <rtems_task_variable_get+0x7c> <== NOT EXECUTED
*/
*result = tvp->tval;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
300097c0: e5933000 ldr r3, [r3] <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Figure out if the variable is in this task's list.
*/
tvp = the_thread->task_variables;
while (tvp) {
300097c4: e3530000 cmp r3, #0 <== NOT EXECUTED
300097c8: 0a00000a beq 300097f8 <rtems_task_variable_get+0x7c> <== NOT EXECUTED
if (tvp->ptr == ptr) {
300097cc: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED
300097d0: e1520004 cmp r2, r4 <== NOT EXECUTED
300097d4: 1afffff9 bne 300097c0 <rtems_task_variable_get+0x44> <== NOT EXECUTED
/*
* Should this return the current (i.e not the
* saved) value if `tid' is the current task?
*/
*result = tvp->tval;
300097d8: e593300c ldr r3, [r3, #12] <== NOT EXECUTED
300097dc: e5853000 str r3, [r5] <== NOT EXECUTED
_Thread_Enable_dispatch();
300097e0: eb00079e bl 3000b660 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
300097e4: e3a00000 mov r0, #0 <== NOT EXECUTED
300097e8: ea000000 b 300097f0 <rtems_task_variable_get+0x74> <== NOT EXECUTED
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
if ( !result )
return RTEMS_INVALID_ADDRESS;
300097ec: e3a00009 mov r0, #9 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
300097f0: e28dd004 add sp, sp, #4 <== NOT EXECUTED
300097f4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
300097f8: eb000798 bl 3000b660 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
300097fc: e3a00009 mov r0, #9 <== NOT EXECUTED
30009800: eafffffa b 300097f0 <rtems_task_variable_get+0x74> <== NOT EXECUTED
3000adb8 <rtems_task_wake_after>:
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000adb8: e59f307c ldr r3, [pc, #124] ; 3000ae3c <rtems_task_wake_after+0x84>
#include <rtems/score/sysstate.h>
rtems_status_code rtems_task_wake_after(
rtems_interval ticks
)
{
3000adbc: e92d4030 push {r4, r5, lr}
3000adc0: e5932000 ldr r2, [r3]
3000adc4: e1a04000 mov r4, r0
++level;
3000adc8: e2822001 add r2, r2, #1
_Thread_Dispatch_disable_level = level;
3000adcc: e5832000 str r2, [r3]
_Thread_Disable_dispatch();
if ( ticks == 0 ) {
3000add0: e3500000 cmp r0, #0
3000add4: 0a000012 beq 3000ae24 <rtems_task_wake_after+0x6c>
_Scheduler_Yield();
} else {
_Thread_Set_state( _Thread_Executing, STATES_DELAYING );
3000add8: e59f5060 ldr r5, [pc, #96] ; 3000ae40 <rtems_task_wake_after+0x88><== NOT EXECUTED
3000addc: e3a01008 mov r1, #8 <== NOT EXECUTED
3000ade0: e5950008 ldr r0, [r5, #8] <== NOT EXECUTED
3000ade4: eb000ad4 bl 3000d93c <_Thread_Set_state> <== NOT EXECUTED
_Watchdog_Initialize(
&_Thread_Executing->Timer,
3000ade8: e5951008 ldr r1, [r5, #8] <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
3000adec: e59f0050 ldr r0, [pc, #80] ; 3000ae44 <rtems_task_wake_after+0x8c><== NOT EXECUTED
_Thread_Disable_dispatch();
if ( ticks == 0 ) {
_Scheduler_Yield();
} else {
_Thread_Set_state( _Thread_Executing, STATES_DELAYING );
_Watchdog_Initialize(
3000adf0: e5912008 ldr r2, [r1, #8] <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
3000adf4: e3a03000 mov r3, #0 <== NOT EXECUTED
3000adf8: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
3000adfc: e5812068 str r2, [r1, #104] ; 0x68 <== NOT EXECUTED
the_watchdog->user_data = user_data;
3000ae00: e581306c str r3, [r1, #108] ; 0x6c <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
3000ae04: e5810064 str r0, [r1, #100] ; 0x64 <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
3000ae08: e5814054 str r4, [r1, #84] ; 0x54 <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
3000ae0c: e59f0034 ldr r0, [pc, #52] ; 3000ae48 <rtems_task_wake_after+0x90><== NOT EXECUTED
3000ae10: e2811048 add r1, r1, #72 ; 0x48 <== NOT EXECUTED
3000ae14: eb000baa bl 3000dcc4 <_Watchdog_Insert> <== NOT EXECUTED
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );
}
_Thread_Enable_dispatch();
3000ae18: eb0008a9 bl 3000d0c4 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
3000ae1c: e3a00000 mov r0, #0 <== NOT EXECUTED
3000ae20: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
* always operates on the scheduler that 'owns' the currently executing
* thread.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void )
{
_Scheduler.Operations.yield();
3000ae24: e59f3020 ldr r3, [pc, #32] ; 3000ae4c <rtems_task_wake_after+0x94>
3000ae28: e1a0e00f mov lr, pc
3000ae2c: e593f00c ldr pc, [r3, #12]
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );
}
_Thread_Enable_dispatch();
3000ae30: eb0008a3 bl 3000d0c4 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
}
3000ae34: e3a00000 mov r0, #0
3000ae38: e8bd8030 pop {r4, r5, pc}
3000bb24 <rtems_task_wake_when>:
#include <rtems/score/sysstate.h>
rtems_status_code rtems_task_wake_when(
rtems_time_of_day *time_buffer
)
{
3000bb24: e92d40f0 push {r4, r5, r6, r7, lr}
Watchdog_Interval seconds;
if ( !_TOD.is_set )
3000bb28: e59f40cc ldr r4, [pc, #204] ; 3000bbfc <rtems_task_wake_when+0xd8>
#include <rtems/score/sysstate.h>
rtems_status_code rtems_task_wake_when(
rtems_time_of_day *time_buffer
)
{
3000bb2c: e1a06000 mov r6, r0
Watchdog_Interval seconds;
if ( !_TOD.is_set )
3000bb30: e5d43014 ldrb r3, [r4, #20]
3000bb34: e3530000 cmp r3, #0
return RTEMS_NOT_DEFINED;
3000bb38: 03a0000b moveq r0, #11
rtems_time_of_day *time_buffer
)
{
Watchdog_Interval seconds;
if ( !_TOD.is_set )
3000bb3c: 08bd80f0 popeq {r4, r5, r6, r7, pc}
return RTEMS_NOT_DEFINED;
if ( !time_buffer )
3000bb40: e3560000 cmp r6, #0
return RTEMS_INVALID_ADDRESS;
3000bb44: 03a00009 moveq r0, #9
Watchdog_Interval seconds;
if ( !_TOD.is_set )
return RTEMS_NOT_DEFINED;
if ( !time_buffer )
3000bb48: 08bd80f0 popeq {r4, r5, r6, r7, pc}
return RTEMS_INVALID_ADDRESS;
time_buffer->ticks = 0;
3000bb4c: e3a05000 mov r5, #0
3000bb50: e5865018 str r5, [r6, #24]
if ( !_TOD_Validate( time_buffer ) )
3000bb54: ebfffcd3 bl 3000aea8 <_TOD_Validate>
3000bb58: e1500005 cmp r0, r5
return RTEMS_INVALID_CLOCK;
3000bb5c: 03a00014 moveq r0, #20
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
time_buffer->ticks = 0;
if ( !_TOD_Validate( time_buffer ) )
3000bb60: 08bd80f0 popeq {r4, r5, r6, r7, pc}
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( time_buffer );
3000bb64: e1a00006 mov r0, r6
3000bb68: ebfffc9f bl 3000adec <_TOD_To_seconds>
static inline uint32_t _Timestamp64_implementation_Get_seconds(
const Timestamp64_Control *_time
)
{
return (uint32_t) (*_time / 1000000000L);
3000bb6c: e59f208c ldr r2, [pc, #140] ; 3000bc00 <rtems_task_wake_when+0xdc>
3000bb70: e1a06000 mov r6, r0
3000bb74: e3a03000 mov r3, #0
3000bb78: e8940003 ldm r4, {r0, r1}
3000bb7c: eb004461 bl 3001cd08 <__divdi3>
if ( seconds <= _TOD_Seconds_since_epoch() )
3000bb80: e1560000 cmp r6, r0
3000bb84: 8a000001 bhi 3000bb90 <rtems_task_wake_when+0x6c>
return RTEMS_INVALID_CLOCK;
3000bb88: e3a00014 mov r0, #20 <== NOT EXECUTED
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
3000bb8c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000bb90: e59f306c ldr r3, [pc, #108] ; 3000bc04 <rtems_task_wake_when+0xe0>
3000bb94: e5932000 ldr r2, [r3]
++level;
3000bb98: e2822001 add r2, r2, #1
_Thread_Dispatch_disable_level = level;
3000bb9c: e5832000 str r2, [r3]
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
_Thread_Disable_dispatch();
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME );
3000bba0: e59f7060 ldr r7, [pc, #96] ; 3000bc08 <rtems_task_wake_when+0xe4>
3000bba4: e3a01010 mov r1, #16
3000bba8: e5970008 ldr r0, [r7, #8]
3000bbac: eb000b00 bl 3000e7b4 <_Thread_Set_state>
3000bbb0: e8940003 ldm r4, {r0, r1}
_Watchdog_Initialize(
&_Thread_Executing->Timer,
3000bbb4: e5974008 ldr r4, [r7, #8]
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
3000bbb8: e59fe04c ldr lr, [pc, #76] ; 3000bc0c <rtems_task_wake_when+0xe8>
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
_Thread_Disable_dispatch();
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME );
_Watchdog_Initialize(
3000bbbc: e594c008 ldr ip, [r4, #8]
3000bbc0: e59f2038 ldr r2, [pc, #56] ; 3000bc00 <rtems_task_wake_when+0xdc>
3000bbc4: e3a03000 mov r3, #0
3000bbc8: e584e064 str lr, [r4, #100] ; 0x64
the_watchdog->id = id;
3000bbcc: e584c068 str ip, [r4, #104] ; 0x68
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
3000bbd0: e5845050 str r5, [r4, #80] ; 0x50
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
3000bbd4: e584506c str r5, [r4, #108] ; 0x6c
3000bbd8: eb00444a bl 3001cd08 <__divdi3>
&_Thread_Executing->Timer,
_Thread_Delay_ended,
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_seconds(
3000bbdc: e0606006 rsb r6, r0, r6
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
3000bbe0: e2841048 add r1, r4, #72 ; 0x48
3000bbe4: e59f0024 ldr r0, [pc, #36] ; 3000bc10 <rtems_task_wake_when+0xec>
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
3000bbe8: e5846054 str r6, [r4, #84] ; 0x54
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
3000bbec: eb000c00 bl 3000ebf4 <_Watchdog_Insert>
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
3000bbf0: eb0008d1 bl 3000df3c <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000bbf4: e1a00005 mov r0, r5 <== NOT EXECUTED
3000bbf8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
3000add8 <rtems_timer_create>:
rtems_status_code rtems_timer_create(
rtems_name name,
rtems_id *id
)
{
3000add8: e92d4030 push {r4, r5, lr}
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
3000addc: e2504000 subs r4, r0, #0
rtems_status_code rtems_timer_create(
rtems_name name,
rtems_id *id
)
{
3000ade0: e24dd004 sub sp, sp, #4
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
3000ade4: 03a00003 moveq r0, #3
rtems_id *id
)
{
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
3000ade8: 1a000001 bne 3000adf4 <rtems_timer_create+0x1c>
);
*id = the_timer->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
3000adec: e28dd004 add sp, sp, #4
3000adf0: e8bd8030 pop {r4, r5, pc}
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
3000adf4: e3510000 cmp r1, #0
return RTEMS_INVALID_ADDRESS;
3000adf8: 03a00009 moveq r0, #9
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
3000adfc: 0afffffa beq 3000adec <rtems_timer_create+0x14>
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000ae00: e59f3070 ldr r3, [pc, #112] ; 3000ae78 <rtems_timer_create+0xa0>
3000ae04: e5932000 ldr r2, [r3]
++level;
3000ae08: e2822001 add r2, r2, #1
_Thread_Dispatch_disable_level = level;
3000ae0c: e5832000 str r2, [r3]
* This function allocates a timer control block from
* the inactive chain of free timer control blocks.
*/
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Allocate( void )
{
return (Timer_Control *) _Objects_Allocate( &_Timer_Information );
3000ae10: e59f5064 ldr r5, [pc, #100] ; 3000ae7c <rtems_timer_create+0xa4>
3000ae14: e58d1000 str r1, [sp]
3000ae18: e1a00005 mov r0, r5
3000ae1c: eb0003f2 bl 3000bdec <_Objects_Allocate>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_timer = _Timer_Allocate();
if ( !the_timer ) {
3000ae20: e3500000 cmp r0, #0
3000ae24: e59d1000 ldr r1, [sp]
3000ae28: 0a00000f beq 3000ae6c <rtems_timer_create+0x94>
Objects_Name name
)
{
_Objects_Set_local_object(
information,
_Objects_Get_index( the_object->id ),
3000ae2c: e5903008 ldr r3, [r0, #8]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
3000ae30: e595201c ldr r2, [r5, #28]
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
3000ae34: e1a0c803 lsl ip, r3, #16
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
3000ae38: e3a05000 mov r5, #0
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_timer->the_class = TIMER_DORMANT;
3000ae3c: e3a0e004 mov lr, #4
3000ae40: e580e038 str lr, [r0, #56] ; 0x38
3000ae44: e5805018 str r5, [r0, #24]
the_watchdog->routine = routine;
3000ae48: e580502c str r5, [r0, #44] ; 0x2c
the_watchdog->id = id;
3000ae4c: e5805030 str r5, [r0, #48] ; 0x30
the_watchdog->user_data = user_data;
3000ae50: e5805034 str r5, [r0, #52] ; 0x34
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
3000ae54: e782072c str r0, [r2, ip, lsr #14]
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
3000ae58: e580400c str r4, [r0, #12]
&_Timer_Information,
&the_timer->Object,
(Objects_Name) name
);
*id = the_timer->Object.id;
3000ae5c: e5813000 str r3, [r1]
_Thread_Enable_dispatch();
3000ae60: eb0008b4 bl 3000d138 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000ae64: e1a00005 mov r0, r5
3000ae68: eaffffdf b 3000adec <rtems_timer_create+0x14>
_Thread_Disable_dispatch(); /* to prevent deletion */
the_timer = _Timer_Allocate();
if ( !the_timer ) {
_Thread_Enable_dispatch();
3000ae6c: eb0008b1 bl 3000d138 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
3000ae70: e3a00005 mov r0, #5 <== NOT EXECUTED
3000ae74: eaffffdc b 3000adec <rtems_timer_create+0x14> <== NOT EXECUTED
3000ae80 <rtems_timer_fire_after>:
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3000ae80: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
3000ae84: e2516000 subs r6, r1, #0
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3000ae88: e1a05000 mov r5, r0
3000ae8c: e24dd004 sub sp, sp, #4
3000ae90: e1a04002 mov r4, r2
3000ae94: e1a07003 mov r7, r3
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
3000ae98: 03a0000a moveq r0, #10
{
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
3000ae9c: 1a000001 bne 3000aea8 <rtems_timer_fire_after+0x28>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3000aea0: e28dd004 add sp, sp, #4
3000aea4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
ISR_Level level;
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
if ( !routine )
3000aea8: e3520000 cmp r2, #0
return RTEMS_INVALID_ADDRESS;
3000aeac: 03a00009 moveq r0, #9
ISR_Level level;
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
if ( !routine )
3000aeb0: 0afffffa beq 3000aea0 <rtems_timer_fire_after+0x20>
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
3000aeb4: e59f0084 ldr r0, [pc, #132] ; 3000af40 <rtems_timer_fire_after+0xc0>
3000aeb8: e1a01005 mov r1, r5
3000aebc: e1a0200d mov r2, sp
3000aec0: eb0004fe bl 3000c2c0 <_Objects_Get>
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3000aec4: e59d3000 ldr r3, [sp]
3000aec8: e1a08000 mov r8, r0
3000aecc: e3530000 cmp r3, #0
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3000aed0: 13a00004 movne r0, #4
if ( !routine )
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3000aed4: 1afffff1 bne 3000aea0 <rtems_timer_fire_after+0x20>
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
3000aed8: e288a010 add sl, r8, #16
3000aedc: e1a0000a mov r0, sl
3000aee0: eb000c01 bl 3000deec <_Watchdog_Remove>
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3000aee4: e10f2000 mrs r2, CPSR
3000aee8: e3823080 orr r3, r2, #128 ; 0x80
3000aeec: e129f003 msr CPSR_fc, r3
/*
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {
3000aef0: e5983018 ldr r3, [r8, #24]
3000aef4: e3530000 cmp r3, #0
3000aef8: 1a00000c bne 3000af30 <rtems_timer_fire_after+0xb0>
/*
* OK. Now we now the timer was not rescheduled by an interrupt
* so we can atomically initialize it as in use.
*/
the_timer->the_class = TIMER_INTERVAL;
3000aefc: e5883038 str r3, [r8, #56] ; 0x38
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
3000af00: e5883018 str r3, [r8, #24]
the_watchdog->routine = routine;
3000af04: e588402c str r4, [r8, #44] ; 0x2c
the_watchdog->id = id;
3000af08: e5885030 str r5, [r8, #48] ; 0x30
the_watchdog->user_data = user_data;
3000af0c: e5887034 str r7, [r8, #52] ; 0x34
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3000af10: e129f002 msr CPSR_fc, r2
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
3000af14: e59f0028 ldr r0, [pc, #40] ; 3000af44 <rtems_timer_fire_after+0xc4>
3000af18: e1a0100a mov r1, sl
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
3000af1c: e588601c str r6, [r8, #28]
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
3000af20: eb000b84 bl 3000dd38 <_Watchdog_Insert>
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
_ISR_Enable( level );
_Watchdog_Insert_ticks( &the_timer->Ticker, ticks );
_Thread_Enable_dispatch();
3000af24: eb000883 bl 3000d138 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3000af28: e3a00000 mov r0, #0
3000af2c: eaffffdb b 3000aea0 <rtems_timer_fire_after+0x20>
3000af30: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {
_ISR_Enable( level );
_Thread_Enable_dispatch();
3000af34: eb00087f bl 3000d138 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3000af38: e3a00000 mov r0, #0 <== NOT EXECUTED
3000af3c: eaffffd7 b 3000aea0 <rtems_timer_fire_after+0x20> <== NOT EXECUTED
3001aab4 <rtems_timer_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001aab4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD.is_set )
3001aab8: e59f40ec ldr r4, [pc, #236] ; 3001abac <rtems_timer_fire_when+0xf8>
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001aabc: e1a06000 mov r6, r0
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD.is_set )
3001aac0: e5d4c014 ldrb ip, [r4, #20]
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001aac4: e24dd008 sub sp, sp, #8
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD.is_set )
3001aac8: e35c0000 cmp ip, #0
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001aacc: e1a05002 mov r5, r2
3001aad0: e1a07003 mov r7, r3
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD.is_set )
return RTEMS_NOT_DEFINED;
3001aad4: 03a0000b moveq r0, #11
{
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD.is_set )
3001aad8: 1a000001 bne 3001aae4 <rtems_timer_fire_when+0x30>
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3001aadc: e28dd008 add sp, sp, #8
3001aae0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
rtems_interval seconds;
if ( !_TOD.is_set )
return RTEMS_NOT_DEFINED;
if ( !_TOD_Validate( wall_time ) )
3001aae4: e1a00001 mov r0, r1
3001aae8: e58d1000 str r1, [sp]
3001aaec: ebfff43b bl 30017be0 <_TOD_Validate>
3001aaf0: e3500000 cmp r0, #0
3001aaf4: e59d1000 ldr r1, [sp]
3001aaf8: 1a000001 bne 3001ab04 <rtems_timer_fire_when+0x50>
if ( !routine )
return RTEMS_INVALID_ADDRESS;
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
3001aafc: e3a00014 mov r0, #20 <== NOT EXECUTED
3001ab00: eafffff5 b 3001aadc <rtems_timer_fire_when+0x28> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
if ( !routine )
3001ab04: e3550000 cmp r5, #0
return RTEMS_INVALID_ADDRESS;
3001ab08: 03a00009 moveq r0, #9
return RTEMS_NOT_DEFINED;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
if ( !routine )
3001ab0c: 0afffff2 beq 3001aadc <rtems_timer_fire_when+0x28>
return RTEMS_INVALID_ADDRESS;
seconds = _TOD_To_seconds( wall_time );
3001ab10: e1a00001 mov r0, r1
3001ab14: ebfff402 bl 30017b24 <_TOD_To_seconds>
3001ab18: e59f2090 ldr r2, [pc, #144] ; 3001abb0 <rtems_timer_fire_when+0xfc>
3001ab1c: e1a08000 mov r8, r0
3001ab20: e3a03000 mov r3, #0
3001ab24: e8940003 ldm r4, {r0, r1}
3001ab28: eb004e8e bl 3002e568 <__divdi3>
if ( seconds <= _TOD_Seconds_since_epoch() )
3001ab2c: e1580000 cmp r8, r0
3001ab30: 9afffff1 bls 3001aafc <rtems_timer_fire_when+0x48>
3001ab34: e59f0078 ldr r0, [pc, #120] ; 3001abb4 <rtems_timer_fire_when+0x100>
3001ab38: e1a01006 mov r1, r6
3001ab3c: e28d2004 add r2, sp, #4
3001ab40: eb000b73 bl 3001d914 <_Objects_Get>
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3001ab44: e59d9004 ldr r9, [sp, #4]
3001ab48: e1a0a000 mov sl, r0
3001ab4c: e3590000 cmp r9, #0
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3001ab50: 13a00004 movne r0, #4
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3001ab54: 1affffe0 bne 3001aadc <rtems_timer_fire_when+0x28>
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
3001ab58: e28ab010 add fp, sl, #16
3001ab5c: e1a0000b mov r0, fp
3001ab60: eb00130c bl 3001f798 <_Watchdog_Remove>
3001ab64: e8940003 ldm r4, {r0, r1}
the_timer->the_class = TIMER_TIME_OF_DAY;
3001ab68: e3a0c002 mov ip, #2
3001ab6c: e59f203c ldr r2, [pc, #60] ; 3001abb0 <rtems_timer_fire_when+0xfc>
3001ab70: e3a03000 mov r3, #0
3001ab74: e58ac038 str ip, [sl, #56] ; 0x38
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
3001ab78: e58a9018 str r9, [sl, #24]
the_watchdog->routine = routine;
3001ab7c: e58a502c str r5, [sl, #44] ; 0x2c
the_watchdog->id = id;
3001ab80: e58a6030 str r6, [sl, #48] ; 0x30
the_watchdog->user_data = user_data;
3001ab84: e58a7034 str r7, [sl, #52] ; 0x34
3001ab88: eb004e76 bl 3002e568 <__divdi3>
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
_Watchdog_Insert_seconds(
3001ab8c: e0608008 rsb r8, r0, r8
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
3001ab90: e1a0100b mov r1, fp
3001ab94: e59f001c ldr r0, [pc, #28] ; 3001abb8 <rtems_timer_fire_when+0x104>
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
3001ab98: e58a801c str r8, [sl, #28]
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
3001ab9c: eb001290 bl 3001f5e4 <_Watchdog_Insert>
&the_timer->Ticker,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
3001aba0: eb000f1a bl 3001e810 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
3001aba4: e1a00009 mov r0, r9
3001aba8: eaffffcb b 3001aadc <rtems_timer_fire_when+0x28>
3001abbc <rtems_timer_get_information>:
rtems_status_code rtems_timer_get_information(
rtems_id id,
rtems_timer_information *the_info
)
{
3001abbc: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
if ( !the_info )
3001abc0: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_timer_get_information(
rtems_id id,
rtems_timer_information *the_info
)
{
3001abc4: e24dd004 sub sp, sp, #4 <== NOT EXECUTED
3001abc8: e1a01000 mov r1, r0 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
3001abcc: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
Timer_Control *the_timer;
Objects_Locations location;
if ( !the_info )
3001abd0: 0a00000e beq 3001ac10 <rtems_timer_get_information+0x54> <== NOT EXECUTED
3001abd4: e59f003c ldr r0, [pc, #60] ; 3001ac18 <rtems_timer_get_information+0x5c><== NOT EXECUTED
3001abd8: e1a0200d mov r2, sp <== NOT EXECUTED
3001abdc: eb000b4c bl 3001d914 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3001abe0: e59d5000 ldr r5, [sp] <== NOT EXECUTED
3001abe4: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3001abe8: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3001abec: 1a000007 bne 3001ac10 <rtems_timer_get_information+0x54> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_info->the_class = the_timer->the_class;
3001abf0: e590c038 ldr ip, [r0, #56] ; 0x38 <== NOT EXECUTED
the_info->initial = the_timer->Ticker.initial;
3001abf4: e590101c ldr r1, [r0, #28] <== NOT EXECUTED
the_info->start_time = the_timer->Ticker.start_time;
3001abf8: e5902024 ldr r2, [r0, #36] ; 0x24 <== NOT EXECUTED
the_info->stop_time = the_timer->Ticker.stop_time;
3001abfc: e5903028 ldr r3, [r0, #40] ; 0x28 <== NOT EXECUTED
the_timer = _Timer_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
the_info->the_class = the_timer->the_class;
3001ac00: e584c000 str ip, [r4] <== NOT EXECUTED
the_info->initial = the_timer->Ticker.initial;
the_info->start_time = the_timer->Ticker.start_time;
the_info->stop_time = the_timer->Ticker.stop_time;
3001ac04: e984000e stmib r4, {r1, r2, r3} <== NOT EXECUTED
_Thread_Enable_dispatch();
3001ac08: eb000f00 bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3001ac0c: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3001ac10: e28dd004 add sp, sp, #4 <== NOT EXECUTED
3001ac14: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
3001b314 <rtems_timer_initiate_server>:
rtems_status_code rtems_timer_initiate_server(
uint32_t priority,
uint32_t stack_size,
rtems_attribute attribute_set
)
{
3001b314: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
3001b318: e3500000 cmp r0, #0 <== NOT EXECUTED
3001b31c: e24dd010 sub sp, sp, #16 <== NOT EXECUTED
3001b320: e1a04001 mov r4, r1 <== NOT EXECUTED
3001b324: e1a08002 mov r8, r2 <== NOT EXECUTED
3001b328: 0a000051 beq 3001b474 <rtems_timer_initiate_server+0x160> <== NOT EXECUTED
( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );
3001b32c: e59f3150 ldr r3, [pc, #336] ; 3001b484 <rtems_timer_initiate_server+0x170><== NOT EXECUTED
3001b330: e5d33000 ldrb r3, [r3] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
3001b334: e1500003 cmp r0, r3 <== NOT EXECUTED
3001b338: 8a00004a bhi 3001b468 <rtems_timer_initiate_server+0x154> <== NOT EXECUTED
3001b33c: e1a07000 mov r7, r0 <== NOT EXECUTED
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3001b340: e59f3140 ldr r3, [pc, #320] ; 3001b488 <rtems_timer_initiate_server+0x174><== NOT EXECUTED
3001b344: e5932000 ldr r2, [r3] <== NOT EXECUTED
++level;
3001b348: e2822001 add r2, r2, #1 <== NOT EXECUTED
_Thread_Dispatch_disable_level = level;
3001b34c: e5832000 str r2, [r3] <== NOT EXECUTED
/*
* Just to make sure this is only called once.
*/
_Thread_Disable_dispatch();
tmpInitialized = initialized;
3001b350: e59f5134 ldr r5, [pc, #308] ; 3001b48c <rtems_timer_initiate_server+0x178><== NOT EXECUTED
initialized = true;
3001b354: e3a03001 mov r3, #1 <== NOT EXECUTED
/*
* Just to make sure this is only called once.
*/
_Thread_Disable_dispatch();
tmpInitialized = initialized;
3001b358: e5d56000 ldrb r6, [r5] <== NOT EXECUTED
initialized = true;
3001b35c: e5c53000 strb r3, [r5] <== NOT EXECUTED
_Thread_Enable_dispatch();
3001b360: eb000d2a bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( tmpInitialized )
3001b364: e3560000 cmp r6, #0 <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
3001b368: 13a0400e movne r4, #14 <== NOT EXECUTED
_Thread_Disable_dispatch();
tmpInitialized = initialized;
initialized = true;
_Thread_Enable_dispatch();
if ( tmpInitialized )
3001b36c: 1a000041 bne 3001b478 <rtems_timer_initiate_server+0x164> <== NOT EXECUTED
* other library rules. For example, if using a TSR written in Ada the
* Server should run at the same priority as the priority Ada task.
* Otherwise, the priority ceiling for the mutex used to protect the
* GNAT run-time is violated.
*/
status = rtems_task_create(
3001b370: e388c902 orr ip, r8, #32768 ; 0x8000 <== NOT EXECUTED
3001b374: e1a02004 mov r2, r4 <== NOT EXECUTED
3001b378: e58dc000 str ip, [sp] <== NOT EXECUTED
3001b37c: e59f010c ldr r0, [pc, #268] ; 3001b490 <rtems_timer_initiate_server+0x17c><== NOT EXECUTED
3001b380: e28dc00c add ip, sp, #12 <== NOT EXECUTED
3001b384: e1a01007 mov r1, r7 <== NOT EXECUTED
3001b388: e3a03c01 mov r3, #256 ; 0x100 <== NOT EXECUTED
3001b38c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED
3001b390: ebfffae9 bl 30019f3c <rtems_task_create> <== NOT EXECUTED
/* user may want floating point but we need */
/* system task specified for 0 priority */
attribute_set | RTEMS_SYSTEM_TASK,
&id /* get the id back */
);
if (status) {
3001b394: e2504000 subs r4, r0, #0 <== NOT EXECUTED
initialized = false;
3001b398: 15c56000 strbne r6, [r5] <== NOT EXECUTED
/* user may want floating point but we need */
/* system task specified for 0 priority */
attribute_set | RTEMS_SYSTEM_TASK,
&id /* get the id back */
);
if (status) {
3001b39c: 1a000035 bne 3001b478 <rtems_timer_initiate_server+0x164> <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return NULL;
#endif
return information->local_table[ index ];
3001b3a0: e59f30ec ldr r3, [pc, #236] ; 3001b494 <rtems_timer_initiate_server+0x180><== NOT EXECUTED
* We work with the TCB pointer, not the ID, so we need to convert
* to a TCB pointer from here out.
*/
ts->thread = (Thread_Control *)_Objects_Get_local_object(
&_RTEMS_tasks_Information,
_Objects_Get_index(id)
3001b3a4: e59d800c ldr r8, [sp, #12] <== NOT EXECUTED
3001b3a8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED
3001b3ac: e1a02808 lsl r2, r8, #16 <== NOT EXECUTED
3001b3b0: e793b722 ldr fp, [r3, r2, lsr #14] <== NOT EXECUTED
* Initialize the pointer to the timer schedule method so applications that
* do not use the Timer Server do not have to pull it in.
*/
ts->schedule_operation = _Timer_server_Schedule_operation_method;
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
3001b3b4: e59f30dc ldr r3, [pc, #220] ; 3001b498 <rtems_timer_initiate_server+0x184><== NOT EXECUTED
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
tail->previous = head;
3001b3b8: e285c06c add ip, r5, #108 ; 0x6c <== NOT EXECUTED
3001b3bc: e5933000 ldr r3, [r3] <== NOT EXECUTED
3001b3c0: e585c074 str ip, [r5, #116] ; 0x74 <== NOT EXECUTED
/*
* Initialize the pointer to the timer schedule method so applications that
* do not use the Timer Server do not have to pull it in.
*/
ts->schedule_operation = _Timer_server_Schedule_operation_method;
3001b3c4: e59fc0d0 ldr ip, [pc, #208] ; 3001b49c <rtems_timer_initiate_server+0x188><== NOT EXECUTED
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
3001b3c8: e58d3008 str r3, [sp, #8] <== NOT EXECUTED
3001b3cc: e59f10cc ldr r1, [pc, #204] ; 3001b4a0 <rtems_timer_initiate_server+0x18c><== NOT EXECUTED
/*
* We work with the TCB pointer, not the ID, so we need to convert
* to a TCB pointer from here out.
*/
ts->thread = (Thread_Control *)_Objects_Get_local_object(
3001b3d0: e1a0a005 mov sl, r5 <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
3001b3d4: e59f90c8 ldr r9, [pc, #200] ; 3001b4a4 <rtems_timer_initiate_server+0x190><== NOT EXECUTED
/*
* Initialize the pointer to the timer schedule method so applications that
* do not use the Timer Server do not have to pull it in.
*/
ts->schedule_operation = _Timer_server_Schedule_operation_method;
3001b3d8: e585c008 str ip, [r5, #8] <== NOT EXECUTED
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
3001b3dc: e59dc008 ldr ip, [sp, #8] <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
3001b3e0: e285e070 add lr, r5, #112 ; 0x70 <== NOT EXECUTED
/*
* We work with the TCB pointer, not the ID, so we need to convert
* to a TCB pointer from here out.
*/
ts->thread = (Thread_Control *)_Objects_Get_local_object(
3001b3e4: e5aab004 str fp, [sl, #4]! <== NOT EXECUTED
3001b3e8: e59f20b8 ldr r2, [pc, #184] ; 3001b4a8 <rtems_timer_initiate_server+0x194><== NOT EXECUTED
3001b3ec: e3a03000 mov r3, #0 <== NOT EXECUTED
3001b3f0: e8910003 ldm r1, {r0, r1} <== NOT EXECUTED
3001b3f4: e2857038 add r7, r5, #56 ; 0x38 <== NOT EXECUTED
head->previous = NULL;
tail->previous = head;
3001b3f8: e2856034 add r6, r5, #52 ; 0x34 <== NOT EXECUTED
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
3001b3fc: e5854038 str r4, [r5, #56] ; 0x38 <== NOT EXECUTED
3001b400: e5854070 str r4, [r5, #112] ; 0x70 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
3001b404: e5854014 str r4, [r5, #20] <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
3001b408: e5854030 str r4, [r5, #48] ; 0x30 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
3001b40c: e585404c str r4, [r5, #76] ; 0x4c <== NOT EXECUTED
the_watchdog->routine = routine;
the_watchdog->id = id;
the_watchdog->user_data = user_data;
3001b410: e5854068 str r4, [r5, #104] ; 0x68 <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
3001b414: e585e06c str lr, [r5, #108] ; 0x6c <== NOT EXECUTED
* Initialize the pointer to the timer schedule method so applications that
* do not use the Timer Server do not have to pull it in.
*/
ts->schedule_operation = _Timer_server_Schedule_operation_method;
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
3001b418: e585c040 str ip, [r5, #64] ; 0x40 <== NOT EXECUTED
3001b41c: e5857034 str r7, [r5, #52] ; 0x34 <== NOT EXECUTED
head->previous = NULL;
tail->previous = head;
3001b420: e585603c str r6, [r5, #60] ; 0x3c <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
3001b424: e5859028 str r9, [r5, #40] ; 0x28 <== NOT EXECUTED
the_watchdog->id = id;
3001b428: e585802c str r8, [r5, #44] ; 0x2c <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
3001b42c: e5859060 str r9, [r5, #96] ; 0x60 <== NOT EXECUTED
the_watchdog->id = id;
3001b430: e5858064 str r8, [r5, #100] ; 0x64 <== NOT EXECUTED
3001b434: eb004c4b bl 3002e568 <__divdi3> <== NOT EXECUTED
3001b438: e1a03000 mov r3, r0 <== NOT EXECUTED
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
3001b43c: e5853078 str r3, [r5, #120] ; 0x78 <== NOT EXECUTED
ts->active = false;
/*
* The default timer server is now available.
*/
_Timer_server = ts;
3001b440: e59f3064 ldr r3, [pc, #100] ; 3001b4ac <rtems_timer_initiate_server+0x198><== NOT EXECUTED
ts->schedule_operation = _Timer_server_Schedule_operation_method;
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ts->insert_chain = NULL;
3001b444: e585407c str r4, [r5, #124] ; 0x7c <== NOT EXECUTED
_Timer_server = ts;
/*
* Start the timer server
*/
status = rtems_task_start(
3001b448: e1a00008 mov r0, r8 <== NOT EXECUTED
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
ts->insert_chain = NULL;
ts->active = false;
3001b44c: e5c54080 strb r4, [r5, #128] ; 0x80 <== NOT EXECUTED
_Timer_server = ts;
/*
* Start the timer server
*/
status = rtems_task_start(
3001b450: e59f1058 ldr r1, [pc, #88] ; 3001b4b0 <rtems_timer_initiate_server+0x19c><== NOT EXECUTED
3001b454: e1a0200a mov r2, sl <== NOT EXECUTED
ts->active = false;
/*
* The default timer server is now available.
*/
_Timer_server = ts;
3001b458: e583a000 str sl, [r3] <== NOT EXECUTED
/*
* Start the timer server
*/
status = rtems_task_start(
3001b45c: ebfffc7c bl 3001a654 <rtems_task_start> <== NOT EXECUTED
3001b460: e1a04000 mov r4, r0 <== NOT EXECUTED
if (status) {
initialized = false;
}
#endif
return status;
3001b464: ea000003 b 3001b478 <rtems_timer_initiate_server+0x164> <== NOT EXECUTED
* structured so we check it is invalid before looking for
* a specific invalid value as the default.
*/
_priority = priority;
if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) {
if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY )
3001b468: e3700001 cmn r0, #1 <== NOT EXECUTED
return RTEMS_INVALID_PRIORITY;
_priority = 0;
3001b46c: 03a07000 moveq r7, #0 <== NOT EXECUTED
* structured so we check it is invalid before looking for
* a specific invalid value as the default.
*/
_priority = priority;
if ( !_RTEMS_tasks_Priority_is_valid( priority ) ) {
if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY )
3001b470: 0affffb2 beq 3001b340 <rtems_timer_initiate_server+0x2c> <== NOT EXECUTED
return RTEMS_INVALID_PRIORITY;
3001b474: e3a04013 mov r4, #19 <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
3001b478: e1a00004 mov r0, r4 <== NOT EXECUTED
3001b47c: e28dd010 add sp, sp, #16 <== NOT EXECUTED
3001b480: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
3001ac4c <rtems_timer_reset>:
*/
rtems_status_code rtems_timer_reset(
rtems_id id
)
{
3001ac4c: e92d4070 push {r4, r5, r6, lr}
3001ac50: e24dd004 sub sp, sp, #4
3001ac54: e1a01000 mov r1, r0
3001ac58: e1a0200d mov r2, sp
3001ac5c: e59f0088 ldr r0, [pc, #136] ; 3001acec <rtems_timer_reset+0xa0>
3001ac60: eb000b2b bl 3001d914 <_Objects_Get>
Timer_Control *the_timer;
Objects_Locations location;
rtems_status_code status = RTEMS_SUCCESSFUL;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3001ac64: e59d4000 ldr r4, [sp]
3001ac68: e1a06000 mov r6, r0
3001ac6c: e3540000 cmp r4, #0
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3001ac70: 13a05004 movne r5, #4
Timer_Control *the_timer;
Objects_Locations location;
rtems_status_code status = RTEMS_SUCCESSFUL;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3001ac74: 1a000006 bne 3001ac94 <rtems_timer_reset+0x48>
case OBJECTS_LOCAL:
if ( the_timer->the_class == TIMER_INTERVAL ) {
3001ac78: e5905038 ldr r5, [r0, #56] ; 0x38
3001ac7c: e3550000 cmp r5, #0
3001ac80: 0a000006 beq 3001aca0 <rtems_timer_reset+0x54>
_Watchdog_Remove( &the_timer->Ticker );
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
} else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) {
3001ac84: e3550001 cmp r5, #1 <== NOT EXECUTED
/*
* Must be dormant or time of day timer (e.g. TIMER_DORMANT,
* TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We
* can only reset active interval timers.
*/
status = RTEMS_NOT_DEFINED;
3001ac88: 13a0500b movne r5, #11 <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_timer->the_class == TIMER_INTERVAL ) {
_Watchdog_Remove( &the_timer->Ticker );
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
} else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) {
3001ac8c: 0a00000b beq 3001acc0 <rtems_timer_reset+0x74> <== NOT EXECUTED
* TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We
* can only reset active interval timers.
*/
status = RTEMS_NOT_DEFINED;
}
_Thread_Enable_dispatch();
3001ac90: eb000ede bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3001ac94: e1a00005 mov r0, r5
3001ac98: e28dd004 add sp, sp, #4
3001ac9c: e8bd8070 pop {r4, r5, r6, pc}
the_timer = _Timer_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( the_timer->the_class == TIMER_INTERVAL ) {
_Watchdog_Remove( &the_timer->Ticker );
3001aca0: e2806010 add r6, r0, #16
3001aca4: e1a00006 mov r0, r6
3001aca8: eb0012ba bl 3001f798 <_Watchdog_Remove>
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
3001acac: e59f003c ldr r0, [pc, #60] ; 3001acf0 <rtems_timer_reset+0xa4>
3001acb0: e1a01006 mov r1, r6
3001acb4: eb00124a bl 3001f5e4 <_Watchdog_Insert>
* TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We
* can only reset active interval timers.
*/
status = RTEMS_NOT_DEFINED;
}
_Thread_Enable_dispatch();
3001acb8: eb000ed4 bl 3001e810 <_Thread_Enable_dispatch>
3001acbc: eafffff4 b 3001ac94 <rtems_timer_reset+0x48>
case OBJECTS_LOCAL:
if ( the_timer->the_class == TIMER_INTERVAL ) {
_Watchdog_Remove( &the_timer->Ticker );
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
} else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) {
Timer_server_Control *timer_server = _Timer_server;
3001acc0: e59f302c ldr r3, [pc, #44] ; 3001acf4 <rtems_timer_reset+0xa8><== NOT EXECUTED
if ( !timer_server ) {
_Thread_Enable_dispatch();
return RTEMS_INCORRECT_STATE;
}
#endif
_Watchdog_Remove( &the_timer->Ticker );
3001acc4: e2800010 add r0, r0, #16 <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_timer->the_class == TIMER_INTERVAL ) {
_Watchdog_Remove( &the_timer->Ticker );
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
} else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) {
Timer_server_Control *timer_server = _Timer_server;
3001acc8: e5935000 ldr r5, [r3] <== NOT EXECUTED
if ( !timer_server ) {
_Thread_Enable_dispatch();
return RTEMS_INCORRECT_STATE;
}
#endif
_Watchdog_Remove( &the_timer->Ticker );
3001accc: eb0012b1 bl 3001f798 <_Watchdog_Remove> <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
3001acd0: e1a00005 mov r0, r5 <== NOT EXECUTED
3001acd4: e1a01006 mov r1, r6 <== NOT EXECUTED
3001acd8: e1a0e00f mov lr, pc <== NOT EXECUTED
3001acdc: e595f004 ldr pc, [r5, #4] <== NOT EXECUTED
rtems_id id
)
{
Timer_Control *the_timer;
Objects_Locations location;
rtems_status_code status = RTEMS_SUCCESSFUL;
3001ace0: e1a05004 mov r5, r4 <== NOT EXECUTED
* TIMER_TIME_OF_DAY, or TIMER_TIME_OF_DAY_ON_TASK). We
* can only reset active interval timers.
*/
status = RTEMS_NOT_DEFINED;
}
_Thread_Enable_dispatch();
3001ace4: eb000ec9 bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
3001ace8: eaffffe9 b 3001ac94 <rtems_timer_reset+0x48> <== NOT EXECUTED
3001acf8 <rtems_timer_server_fire_after>:
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001acf8: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
3001acfc: e1a07000 mov r7, r0 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
Timer_server_Control *timer_server = _Timer_server;
3001ad00: e59f00d0 ldr r0, [pc, #208] ; 3001add8 <rtems_timer_server_fire_after+0xe0><== NOT EXECUTED
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001ad04: e24dd008 sub sp, sp, #8 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
Timer_server_Control *timer_server = _Timer_server;
3001ad08: e5904000 ldr r4, [r0] <== NOT EXECUTED
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001ad0c: e1a06001 mov r6, r1 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
3001ad10: e3540000 cmp r4, #0 <== NOT EXECUTED
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001ad14: e1a05002 mov r5, r2 <== NOT EXECUTED
Objects_Locations location;
ISR_Level level;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
return RTEMS_INCORRECT_STATE;
3001ad18: 03a0000e moveq r0, #14 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
3001ad1c: 0a000005 beq 3001ad38 <rtems_timer_server_fire_after+0x40> <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !routine )
3001ad20: e3520000 cmp r2, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
3001ad24: 03a00009 moveq r0, #9 <== NOT EXECUTED
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
return RTEMS_INCORRECT_STATE;
if ( !routine )
3001ad28: 0a000002 beq 3001ad38 <rtems_timer_server_fire_after+0x40> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( ticks == 0 )
3001ad2c: e3510000 cmp r1, #0 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
3001ad30: 03a0000a moveq r0, #10 <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !routine )
return RTEMS_INVALID_ADDRESS;
if ( ticks == 0 )
3001ad34: 1a000001 bne 3001ad40 <rtems_timer_server_fire_after+0x48> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3001ad38: e28dd008 add sp, sp, #8 <== NOT EXECUTED
3001ad3c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
3001ad40: e28d2004 add r2, sp, #4 <== NOT EXECUTED
3001ad44: e59f0090 ldr r0, [pc, #144] ; 3001addc <rtems_timer_server_fire_after+0xe4><== NOT EXECUTED
3001ad48: e1a01007 mov r1, r7 <== NOT EXECUTED
3001ad4c: e58d3000 str r3, [sp] <== NOT EXECUTED
3001ad50: eb000aef bl 3001d914 <_Objects_Get> <== NOT EXECUTED
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3001ad54: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED
3001ad58: e1a08000 mov r8, r0 <== NOT EXECUTED
3001ad5c: e3520000 cmp r2, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3001ad60: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3001ad64: 1afffff3 bne 3001ad38 <rtems_timer_server_fire_after+0x40> <== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
3001ad68: e2880010 add r0, r8, #16 <== NOT EXECUTED
3001ad6c: eb001289 bl 3001f798 <_Watchdog_Remove> <== NOT EXECUTED
uint32_t level;
#if defined(ARM_MULTILIB_ARCH_V4)
uint32_t arm_switch_reg;
__asm__ volatile (
3001ad70: e10f1000 mrs r1, CPSR <== NOT EXECUTED
3001ad74: e3812080 orr r2, r1, #128 ; 0x80 <== NOT EXECUTED
3001ad78: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
/*
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {
3001ad7c: e5982018 ldr r2, [r8, #24] <== NOT EXECUTED
3001ad80: e59d3000 ldr r3, [sp] <== NOT EXECUTED
3001ad84: e3520000 cmp r2, #0 <== NOT EXECUTED
3001ad88: 1a00000e bne 3001adc8 <rtems_timer_server_fire_after+0xd0> <== NOT EXECUTED
/*
* OK. Now we now the timer was not rescheduled by an interrupt
* so we can atomically initialize it as in use.
*/
the_timer->the_class = TIMER_INTERVAL_ON_TASK;
3001ad8c: e3a00001 mov r0, #1 <== NOT EXECUTED
3001ad90: e5880038 str r0, [r8, #56] ; 0x38 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
3001ad94: e5882018 str r2, [r8, #24] <== NOT EXECUTED
the_watchdog->routine = routine;
3001ad98: e588502c str r5, [r8, #44] ; 0x2c <== NOT EXECUTED
the_watchdog->id = id;
3001ad9c: e5887030 str r7, [r8, #48] ; 0x30 <== NOT EXECUTED
the_watchdog->user_data = user_data;
3001ada0: e5883034 str r3, [r8, #52] ; 0x34 <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = ticks;
3001ada4: e588601c str r6, [r8, #28] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
#if defined(ARM_MULTILIB_ARCH_V4)
ARM_SWITCH_REGISTERS;
__asm__ volatile (
3001ada8: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
_ISR_Enable( level );
(*timer_server->schedule_operation)( timer_server, the_timer );
3001adac: e1a00004 mov r0, r4 <== NOT EXECUTED
3001adb0: e1a01008 mov r1, r8 <== NOT EXECUTED
3001adb4: e1a0e00f mov lr, pc <== NOT EXECUTED
3001adb8: e594f004 ldr pc, [r4, #4] <== NOT EXECUTED
_Thread_Enable_dispatch();
3001adbc: eb000e93 bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3001adc0: e3a00000 mov r0, #0 <== NOT EXECUTED
3001adc4: eaffffdb b 3001ad38 <rtems_timer_server_fire_after+0x40> <== NOT EXECUTED
3001adc8: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
* higher priority interrupt. If so, abandon this insert.
*/
if ( the_timer->Ticker.state != WATCHDOG_INACTIVE ) {
_ISR_Enable( level );
_Thread_Enable_dispatch();
3001adcc: eb000e8f bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3001add0: e3a00000 mov r0, #0 <== NOT EXECUTED
3001add4: eaffffd7 b 3001ad38 <rtems_timer_server_fire_after+0x40> <== NOT EXECUTED
3001ade0 <rtems_timer_server_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001ade0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
3001ade4: e1a07000 mov r7, r0 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
3001ade8: e59f00fc ldr r0, [pc, #252] ; 3001aeec <rtems_timer_server_fire_when+0x10c><== NOT EXECUTED
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001adec: e24dd008 sub sp, sp, #8 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
3001adf0: e5904000 ldr r4, [r0] <== NOT EXECUTED
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001adf4: e1a06002 mov r6, r2 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
3001adf8: e3540000 cmp r4, #0 <== NOT EXECUTED
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
3001adfc: e1a08003 mov r8, r3 <== NOT EXECUTED
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
return RTEMS_INCORRECT_STATE;
3001ae00: 03a0000e moveq r0, #14 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
3001ae04: 0a000004 beq 3001ae1c <rtems_timer_server_fire_when+0x3c> <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !_TOD.is_set )
3001ae08: e59f50e0 ldr r5, [pc, #224] ; 3001aef0 <rtems_timer_server_fire_when+0x110><== NOT EXECUTED
3001ae0c: e5d53014 ldrb r3, [r5, #20] <== NOT EXECUTED
3001ae10: e3530000 cmp r3, #0 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
3001ae14: 03a0000b moveq r0, #11 <== NOT EXECUTED
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
return RTEMS_INCORRECT_STATE;
if ( !_TOD.is_set )
3001ae18: 1a000001 bne 3001ae24 <rtems_timer_server_fire_when+0x44> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
3001ae1c: e28dd008 add sp, sp, #8 <== NOT EXECUTED
3001ae20: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !_TOD.is_set )
return RTEMS_NOT_DEFINED;
if ( !routine )
3001ae24: e3520000 cmp r2, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
3001ae28: 03a00009 moveq r0, #9 <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !_TOD.is_set )
return RTEMS_NOT_DEFINED;
if ( !routine )
3001ae2c: 0afffffa beq 3001ae1c <rtems_timer_server_fire_when+0x3c> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
3001ae30: e1a00001 mov r0, r1 <== NOT EXECUTED
3001ae34: e58d1000 str r1, [sp] <== NOT EXECUTED
3001ae38: ebfff368 bl 30017be0 <_TOD_Validate> <== NOT EXECUTED
3001ae3c: e3500000 cmp r0, #0 <== NOT EXECUTED
3001ae40: e59d1000 ldr r1, [sp] <== NOT EXECUTED
3001ae44: 1a000001 bne 3001ae50 <rtems_timer_server_fire_when+0x70> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
3001ae48: e3a00014 mov r0, #20 <== NOT EXECUTED
3001ae4c: eafffff2 b 3001ae1c <rtems_timer_server_fire_when+0x3c> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
3001ae50: e1a00001 mov r0, r1 <== NOT EXECUTED
3001ae54: ebfff332 bl 30017b24 <_TOD_To_seconds> <== NOT EXECUTED
3001ae58: e59f2094 ldr r2, [pc, #148] ; 3001aef4 <rtems_timer_server_fire_when+0x114><== NOT EXECUTED
3001ae5c: e1a0a000 mov sl, r0 <== NOT EXECUTED
3001ae60: e3a03000 mov r3, #0 <== NOT EXECUTED
3001ae64: e8950003 ldm r5, {r0, r1} <== NOT EXECUTED
3001ae68: eb004dbe bl 3002e568 <__divdi3> <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
3001ae6c: e15a0000 cmp sl, r0 <== NOT EXECUTED
3001ae70: 9afffff4 bls 3001ae48 <rtems_timer_server_fire_when+0x68> <== NOT EXECUTED
3001ae74: e59f007c ldr r0, [pc, #124] ; 3001aef8 <rtems_timer_server_fire_when+0x118><== NOT EXECUTED
3001ae78: e1a01007 mov r1, r7 <== NOT EXECUTED
3001ae7c: e28d2004 add r2, sp, #4 <== NOT EXECUTED
3001ae80: eb000aa3 bl 3001d914 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3001ae84: e59db004 ldr fp, [sp, #4] <== NOT EXECUTED
3001ae88: e1a09000 mov r9, r0 <== NOT EXECUTED
3001ae8c: e35b0000 cmp fp, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
3001ae90: 13a00004 movne r0, #4 <== NOT EXECUTED
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
3001ae94: 1affffe0 bne 3001ae1c <rtems_timer_server_fire_when+0x3c> <== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
3001ae98: e2890010 add r0, r9, #16 <== NOT EXECUTED
3001ae9c: eb00123d bl 3001f798 <_Watchdog_Remove> <== NOT EXECUTED
3001aea0: e8950003 ldm r5, {r0, r1} <== NOT EXECUTED
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
3001aea4: e3a0c003 mov ip, #3 <== NOT EXECUTED
3001aea8: e59f2044 ldr r2, [pc, #68] ; 3001aef4 <rtems_timer_server_fire_when+0x114><== NOT EXECUTED
3001aeac: e3a03000 mov r3, #0 <== NOT EXECUTED
3001aeb0: e589c038 str ip, [r9, #56] ; 0x38 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
3001aeb4: e589b018 str fp, [r9, #24] <== NOT EXECUTED
the_watchdog->routine = routine;
3001aeb8: e589602c str r6, [r9, #44] ; 0x2c <== NOT EXECUTED
the_watchdog->id = id;
3001aebc: e5897030 str r7, [r9, #48] ; 0x30 <== NOT EXECUTED
the_watchdog->user_data = user_data;
3001aec0: e5898034 str r8, [r9, #52] ; 0x34 <== NOT EXECUTED
3001aec4: eb004da7 bl 3002e568 <__divdi3> <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
3001aec8: e060a00a rsb sl, r0, sl <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
3001aecc: e1a01009 mov r1, r9 <== NOT EXECUTED
3001aed0: e1a00004 mov r0, r4 <== NOT EXECUTED
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();
3001aed4: e589a01c str sl, [r9, #28] <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
3001aed8: e1a0e00f mov lr, pc <== NOT EXECUTED
3001aedc: e594f004 ldr pc, [r4, #4] <== NOT EXECUTED
_Thread_Enable_dispatch();
3001aee0: eb000e4a bl 3001e810 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
3001aee4: e1a0000b mov r0, fp <== NOT EXECUTED
3001aee8: eaffffcb b 3001ae1c <rtems_timer_server_fire_when+0x3c> <== NOT EXECUTED
3000b2b0 <rtems_workspace_greedy_allocate>:
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000b2b0: e59f3030 ldr r3, [pc, #48] ; 3000b2e8 <rtems_workspace_greedy_allocate+0x38><== NOT EXECUTED
void *rtems_workspace_greedy_allocate(
const uintptr_t *block_sizes,
size_t block_count
)
{
3000b2b4: e1a0c000 mov ip, r0 <== NOT EXECUTED
3000b2b8: e5930000 ldr r0, [r3] <== NOT EXECUTED
3000b2bc: e92d4010 push {r4, lr} <== NOT EXECUTED
++level;
3000b2c0: e2800001 add r0, r0, #1 <== NOT EXECUTED
_Thread_Dispatch_disable_level = level;
3000b2c4: e5830000 str r0, [r3] <== NOT EXECUTED
3000b2c8: e1a02001 mov r2, r1 <== NOT EXECUTED
void *opaque;
_Thread_Disable_dispatch();
opaque = _Heap_Greedy_allocate( &_Workspace_Area, block_sizes, block_count );
3000b2cc: e59f0018 ldr r0, [pc, #24] ; 3000b2ec <rtems_workspace_greedy_allocate+0x3c><== NOT EXECUTED
3000b2d0: e1a0100c mov r1, ip <== NOT EXECUTED
3000b2d4: eb0002a2 bl 3000bd64 <_Heap_Greedy_allocate> <== NOT EXECUTED
3000b2d8: e1a04000 mov r4, r0 <== NOT EXECUTED
_Thread_Enable_dispatch();
3000b2dc: eb0008d5 bl 3000d638 <_Thread_Enable_dispatch> <== NOT EXECUTED
return opaque;
}
3000b2e0: e1a00004 mov r0, r4 <== NOT EXECUTED
3000b2e4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
3000b2f0 <rtems_workspace_greedy_free>:
*
* This rountine increments the thread dispatch level
*/
RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
{
uint32_t level = _Thread_Dispatch_disable_level;
3000b2f0: e59f3020 ldr r3, [pc, #32] ; 3000b318 <rtems_workspace_greedy_free+0x28><== NOT EXECUTED
void rtems_workspace_greedy_free( void *opaque )
{
3000b2f4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
3000b2f8: e5932000 ldr r2, [r3] <== NOT EXECUTED
3000b2fc: e1a01000 mov r1, r0 <== NOT EXECUTED
++level;
3000b300: e2822001 add r2, r2, #1 <== NOT EXECUTED
_Thread_Dispatch_disable_level = level;
3000b304: e5832000 str r2, [r3] <== NOT EXECUTED
_Thread_Disable_dispatch();
_Heap_Greedy_free( &_Workspace_Area, opaque );
3000b308: e59f000c ldr r0, [pc, #12] ; 3000b31c <rtems_workspace_greedy_free+0x2c><== NOT EXECUTED
3000b30c: eb0002cc bl 3000be44 <_Heap_Greedy_free> <== NOT EXECUTED
_Thread_Enable_dispatch();
}
3000b310: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED
void rtems_workspace_greedy_free( void *opaque )
{
_Thread_Disable_dispatch();
_Heap_Greedy_free( &_Workspace_Area, opaque );
_Thread_Enable_dispatch();
3000b314: ea0008c7 b 3000d638 <_Thread_Enable_dispatch> <== NOT EXECUTED