a0006978 <CPU_usage_Per_thread_handler>: static void CPU_usage_Per_thread_handler( Thread_Control *the_thread ) { #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _Timestamp_Set_to_zero( &the_thread->cpu_time_used );
a0006978: e3a03000 mov r3, #0 <== NOT EXECUTED a000697c: e5803084 str r3, [r0, #132] ; 0x84 <== NOT EXECUTED a0006980: e5803088 str r3, [r0, #136] ; 0x88 <== NOT EXECUTED
#else
the_thread->cpu_time_used = 0;
#endif
}
a0006984: e12fff1e bx lr <== NOT EXECUTED
a00058c8 <Dump_Line>:
static inline void Dump_Line(
const unsigned char *buffer,
int length
)
{
a00058c8: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a00058cc: e24dd078 sub sp, sp, #120 ; 0x78 <== NOT EXECUTED
int i;
char line_buffer[120];
line_buffer[0] = '\0';
a00058d0: e3a04000 mov r4, #0 <== NOT EXECUTED a00058d4: e28d7078 add r7, sp, #120 ; 0x78 <== NOT EXECUTED
static inline void Dump_Line(
const unsigned char *buffer,
int length
)
{
a00058d8: e1a05000 mov r5, r0 <== NOT EXECUTED a00058dc: e1a06001 mov r6, r1 <== NOT EXECUTED
int i;
char line_buffer[120];
line_buffer[0] = '\0';
a00058e0: e5674078 strb r4, [r7, #-120]! ; 0x78 <== NOT EXECUTED
for( i=0 ; i<length ; i++ )
a00058e4: ea000005 b a0005900 <Dump_Line+0x38> <== NOT EXECUTED
sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );
a00058e8: e7d53004 ldrb r3, [r5, r4] <== NOT EXECUTED a00058ec: e1a0000d mov r0, sp <== NOT EXECUTED a00058f0: e59f10bc ldr r1, [pc, #188] ; a00059b4 <Dump_Line+0xec> <== NOT EXECUTED a00058f4: e1a0200d mov r2, sp <== NOT EXECUTED a00058f8: eb0030b9 bl a0011be4 <sprintf> <== NOT EXECUTED
int i;
char line_buffer[120];
line_buffer[0] = '\0';
for( i=0 ; i<length ; i++ )
a00058fc: e2844001 add r4, r4, #1 <== NOT EXECUTED a0005900: e1540006 cmp r4, r6 <== NOT EXECUTED a0005904: bafffff7 blt a00058e8 <Dump_Line+0x20> <== NOT EXECUTED a0005908: ea000003 b a000591c <Dump_Line+0x54> <== NOT EXECUTED
sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );
for( ; i<16 ; i++ )
strcat( line_buffer, " " );
a000590c: e1a0000d mov r0, sp <== NOT EXECUTED a0005910: e59f10a0 ldr r1, [pc, #160] ; a00059b8 <Dump_Line+0xf0> <== NOT EXECUTED a0005914: eb00310d bl a0011d50 <strcat> <== NOT EXECUTED
line_buffer[0] = '\0';
for( i=0 ; i<length ; i++ )
sprintf( line_buffer, "%s%02x ", line_buffer, buffer[ i ] );
for( ; i<16 ; i++ )
a0005918: e2844001 add r4, r4, #1 <== NOT EXECUTED a000591c: e354000f cmp r4, #15 <== NOT EXECUTED a0005920: dafffff9 ble a000590c <Dump_Line+0x44> <== NOT EXECUTED
strcat( line_buffer, " " );
strcat( line_buffer, "|" );
a0005924: e1a0000d mov r0, sp <== NOT EXECUTED a0005928: e59f108c ldr r1, [pc, #140] ; a00059bc <Dump_Line+0xf4> <== NOT EXECUTED a000592c: eb003107 bl a0011d50 <strcat> <== NOT EXECUTED
for( i=0 ; i<length ; i++ )
a0005930: e3a04000 mov r4, #0 <== NOT EXECUTED
sprintf( line_buffer, "%s%c", line_buffer,
isprint( buffer[ i ] ) ? buffer[ i ] : '.' );
a0005934: e59f7084 ldr r7, [pc, #132] ; a00059c0 <Dump_Line+0xf8> <== NOT EXECUTED
for( ; i<16 ; i++ )
strcat( line_buffer, " " );
strcat( line_buffer, "|" );
for( i=0 ; i<length ; i++ )
sprintf( line_buffer, "%s%c", line_buffer,
a0005938: e1a0800d mov r8, sp <== NOT EXECUTED
for( ; i<16 ; i++ )
strcat( line_buffer, " " );
strcat( line_buffer, "|" );
for( i=0 ; i<length ; i++ )
a000593c: ea00000a b a000596c <Dump_Line+0xa4> <== NOT EXECUTED
sprintf( line_buffer, "%s%c", line_buffer,
isprint( buffer[ i ] ) ? buffer[ i ] : '.' );
a0005940: e7d53004 ldrb r3, [r5, r4] <== NOT EXECUTED a0005944: e5972000 ldr r2, [r7] <== NOT EXECUTED
for( ; i<16 ; i++ )
strcat( line_buffer, " " );
strcat( line_buffer, "|" );
for( i=0 ; i<length ; i++ )
sprintf( line_buffer, "%s%c", line_buffer,
a0005948: e1a0000d mov r0, sp <== NOT EXECUTED a000594c: e59f1070 ldr r1, [pc, #112] ; a00059c4 <Dump_Line+0xfc> <== NOT EXECUTED
isprint( buffer[ i ] ) ? buffer[ i ] : '.' );
a0005950: e0822003 add r2, r2, r3 <== NOT EXECUTED a0005954: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED
for( ; i<16 ; i++ )
strcat( line_buffer, " " );
strcat( line_buffer, "|" );
for( i=0 ; i<length ; i++ )
a0005958: e2844001 add r4, r4, #1 <== NOT EXECUTED
sprintf( line_buffer, "%s%c", line_buffer,
a000595c: e3120097 tst r2, #151 ; 0x97 <== NOT EXECUTED a0005960: 03a0302e moveq r3, #46 ; 0x2e <== NOT EXECUTED a0005964: e1a0200d mov r2, sp <== NOT EXECUTED a0005968: eb00309d bl a0011be4 <sprintf> <== NOT EXECUTED
for( ; i<16 ; i++ )
strcat( line_buffer, " " );
strcat( line_buffer, "|" );
for( i=0 ; i<length ; i++ )
a000596c: e1540006 cmp r4, r6 <== NOT EXECUTED a0005970: bafffff2 blt a0005940 <Dump_Line+0x78> <== NOT EXECUTED a0005974: ea000004 b a000598c <Dump_Line+0xc4> <== NOT EXECUTED
sprintf( line_buffer, "%s%c", line_buffer,
isprint( buffer[ i ] ) ? buffer[ i ] : '.' );
for( ; i<16 ; i++ )
strcat( line_buffer, " " );
a0005978: e1a0000d mov r0, sp <== NOT EXECUTED a000597c: e59f1044 ldr r1, [pc, #68] ; a00059c8 <Dump_Line+0x100> <== NOT EXECUTED a0005980: eb0030f2 bl a0011d50 <strcat> <== NOT EXECUTED
strcat( line_buffer, "|" );
for( i=0 ; i<length ; i++ )
sprintf( line_buffer, "%s%c", line_buffer,
isprint( buffer[ i ] ) ? buffer[ i ] : '.' );
for( ; i<16 ; i++ )
a0005984: e2844001 add r4, r4, #1 <== NOT EXECUTED a0005988: ea000000 b a0005990 <Dump_Line+0xc8> <== NOT EXECUTED a000598c: e1a0500d mov r5, sp <== NOT EXECUTED a0005990: e354000f cmp r4, #15 <== NOT EXECUTED a0005994: dafffff7 ble a0005978 <Dump_Line+0xb0> <== NOT EXECUTED
strcat( line_buffer, " " );
strcat( line_buffer, "|\n" );
a0005998: e1a0000d mov r0, sp <== NOT EXECUTED a000599c: e59f1028 ldr r1, [pc, #40] ; a00059cc <Dump_Line+0x104> <== NOT EXECUTED a00059a0: eb0030ea bl a0011d50 <strcat> <== NOT EXECUTED
printk( line_buffer );
a00059a4: e1a0000d mov r0, sp <== NOT EXECUTED a00059a8: eb0005c1 bl a00070b4 <printk> <== NOT EXECUTED
}
a00059ac: e28dd078 add sp, sp, #120 ; 0x78 <== NOT EXECUTED
a00059b0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000cf7c <IMFS_Set_handlers>:
{
IMFS_jnode_t *node = loc->node_access;
IMFS_fs_info_t *fs_info;
fs_info = loc->mt_entry->fs_info;
switch( node->type ) {
a000cf7c: e5902000 ldr r2, [r0]
)
{
IMFS_jnode_t *node = loc->node_access;
IMFS_fs_info_t *fs_info;
fs_info = loc->mt_entry->fs_info;
a000cf80: e5903010 ldr r3, [r0, #16]
switch( node->type ) {
a000cf84: e592204c ldr r2, [r2, #76] ; 0x4c
)
{
IMFS_jnode_t *node = loc->node_access;
IMFS_fs_info_t *fs_info;
fs_info = loc->mt_entry->fs_info;
a000cf88: e5933034 ldr r3, [r3, #52] ; 0x34
switch( node->type ) {
a000cf8c: e2422001 sub r2, r2, #1 a000cf90: e3520006 cmp r2, #6 a000cf94: 979ff102 ldrls pc, [pc, r2, lsl #2]
a000cf98: ea000010 b a000cfe0 <IMFS_Set_handlers+0x64> <== NOT EXECUTED a000cf9c: a000cfb8 .word 0xa000cfb8 <== NOT EXECUTED a000cfa0: a000cfc0 .word 0xa000cfc0 <== NOT EXECUTED a000cfa4: a000cfc8 .word 0xa000cfc8 <== NOT EXECUTED a000cfa8: a000cfc8 .word 0xa000cfc8 <== NOT EXECUTED a000cfac: a000cfd0 .word 0xa000cfd0 <== NOT EXECUTED a000cfb0: a000cfd0 .word 0xa000cfd0 <== NOT EXECUTED a000cfb4: a000cfd8 .word 0xa000cfd8 <== NOT EXECUTED
case IMFS_DIRECTORY:
loc->handlers = fs_info->directory_handlers;
a000cfb8: e593300c ldr r3, [r3, #12] a000cfbc: ea000006 b a000cfdc <IMFS_Set_handlers+0x60>
break;
case IMFS_DEVICE:
loc->handlers = &IMFS_device_handlers;
a000cfc0: e59f3020 ldr r3, [pc, #32] ; a000cfe8 <IMFS_Set_handlers+0x6c><== NOT EXECUTED a000cfc4: ea000004 b a000cfdc <IMFS_Set_handlers+0x60> <== NOT EXECUTED
break;
case IMFS_SYM_LINK:
case IMFS_HARD_LINK:
loc->handlers = &IMFS_link_handlers;
a000cfc8: e59f301c ldr r3, [pc, #28] ; a000cfec <IMFS_Set_handlers+0x70><== NOT EXECUTED a000cfcc: ea000002 b a000cfdc <IMFS_Set_handlers+0x60> <== NOT EXECUTED
break;
case IMFS_LINEAR_FILE:
loc->handlers = fs_info->memfile_handlers;
break;
case IMFS_MEMORY_FILE:
loc->handlers = fs_info->memfile_handlers;
a000cfd0: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000cfd4: ea000000 b a000cfdc <IMFS_Set_handlers+0x60> <== NOT EXECUTED
break;
case IMFS_FIFO:
loc->handlers = fs_info->fifo_handlers;
a000cfd8: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED
a000cfdc: e5803008 str r3, [r0, #8]
break;
}
return 0;
}
a000cfe0: e3a00000 mov r0, #0 a000cfe4: e12fff1e bx lr
a000d8cc <IMFS_check_node_remove>:
void IMFS_check_node_remove( IMFS_jnode_t *jnode )
{
a000d8cc: e92d4010 push {r4, lr} <== NOT EXECUTED
a000d8d0: e1a04000 mov r4, r0 <== NOT EXECUTED
if ( !rtems_libio_is_file_open( jnode ) && jnode->st_nlink < 1 ) {
a000d8d4: eb000132 bl a000dda4 <rtems_libio_is_file_open> <== NOT EXECUTED a000d8d8: e3500000 cmp r0, #0 <== NOT EXECUTED a000d8dc: 1a000014 bne a000d934 <IMFS_check_node_remove+0x68> <== NOT EXECUTED a000d8e0: e1d423b4 ldrh r2, [r4, #52] ; 0x34 <== NOT EXECUTED a000d8e4: e3520000 cmp r2, #0 <== NOT EXECUTED a000d8e8: 1a000011 bne a000d934 <IMFS_check_node_remove+0x68> <== NOT EXECUTED
if ( rtems_filesystem_current.node_access == jnode )
a000d8ec: e59f3044 ldr r3, [pc, #68] ; a000d938 <IMFS_check_node_remove+0x6c><== NOT EXECUTED a000d8f0: e5933000 ldr r3, [r3] <== NOT EXECUTED a000d8f4: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED a000d8f8: e1510004 cmp r1, r4 <== NOT EXECUTED
rtems_filesystem_current.node_access = NULL;
a000d8fc: 05832004 streq r2, [r3, #4] <== NOT EXECUTED
switch ( jnode->type ) {
a000d900: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a000d904: e3530004 cmp r3, #4 <== NOT EXECUTED a000d908: 0a000004 beq a000d920 <IMFS_check_node_remove+0x54> <== NOT EXECUTED a000d90c: e3530005 cmp r3, #5 <== NOT EXECUTED a000d910: 1a000004 bne a000d928 <IMFS_check_node_remove+0x5c> <== NOT EXECUTED
case IMFS_MEMORY_FILE:
IMFS_memfile_remove( jnode );
a000d914: e1a00004 mov r0, r4 <== NOT EXECUTED a000d918: eb0008c7 bl a000fc3c <IMFS_memfile_remove> <== NOT EXECUTED
break;
a000d91c: ea000001 b a000d928 <IMFS_check_node_remove+0x5c> <== NOT EXECUTED
case IMFS_SYM_LINK:
free( jnode->info.sym_link.name );
a000d920: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a000d924: ebffe211 bl a0006170 <free> <== NOT EXECUTED
break;
default:
break;
}
free( jnode );
a000d928: e1a00004 mov r0, r4 <== NOT EXECUTED
} }
a000d92c: e8bd4010 pop {r4, lr} <== NOT EXECUTED
break;
default:
break;
}
free( jnode );
a000d930: eaffe20e b a0006170 <free> <== NOT EXECUTED
a000d934: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000cd18 <IMFS_chown>:
int IMFS_chown(
rtems_filesystem_location_info_t *pathloc, /* IN */
uid_t owner, /* IN */
gid_t group /* IN */
)
{
a000cd18: e92d40f3 push {r0, r1, r4, r5, r6, r7, lr} <== NOT EXECUTED
a000cd1c: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED
a000cd20: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED
IMFS_jnode_t *jnode;
#if defined(RTEMS_POSIX_API)
uid_t st_uid;
#endif
jnode = (IMFS_jnode_t *) pathloc->node_access;
a000cd24: e5904000 ldr r4, [r0] <== NOT EXECUTED
int IMFS_chown(
rtems_filesystem_location_info_t *pathloc, /* IN */
uid_t owner, /* IN */
gid_t group /* IN */
)
{
a000cd28: e1a06821 lsr r6, r1, #16 <== NOT EXECUTED a000cd2c: e1a07822 lsr r7, r2, #16 <== NOT EXECUTED
/*
* Verify I am the owner of the node or the super user.
*/
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
a000cd30: eb000399 bl a000db9c <geteuid> <== NOT EXECUTED
if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )
a000cd34: e1d453bc ldrh r5, [r4, #60] ; 0x3c <== NOT EXECUTED a000cd38: e3500000 cmp r0, #0 <== NOT EXECUTED a000cd3c: 11550000 cmpne r5, r0 <== NOT EXECUTED a000cd40: 03a05000 moveq r5, #0 <== NOT EXECUTED a000cd44: 13a05001 movne r5, #1 <== NOT EXECUTED a000cd48: 0a000004 beq a000cd60 <IMFS_chown+0x48> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EPERM );
a000cd4c: eb0010c6 bl a001106c <__errno> <== NOT EXECUTED a000cd50: e3a03001 mov r3, #1 <== NOT EXECUTED a000cd54: e5803000 str r3, [r0] <== NOT EXECUTED a000cd58: e3e00000 mvn r0, #0 <== NOT EXECUTED a000cd5c: ea000007 b a000cd80 <IMFS_chown+0x68> <== NOT EXECUTED
#endif
jnode->st_uid = owner;
a000cd60: e1c463bc strh r6, [r4, #60] ; 0x3c <== NOT EXECUTED
jnode->st_gid = group;
a000cd64: e1c473be strh r7, [r4, #62] ; 0x3e <== NOT EXECUTED
IMFS_update_ctime( jnode );
a000cd68: e1a0000d mov r0, sp <== NOT EXECUTED a000cd6c: e1a01005 mov r1, r5 <== NOT EXECUTED a000cd70: ebffe533 bl a0006244 <gettimeofday> <== NOT EXECUTED a000cd74: e59d3000 ldr r3, [sp] <== NOT EXECUTED
return 0;
a000cd78: e1a00005 mov r0, r5 <== NOT EXECUTED
#endif
jnode->st_uid = owner;
jnode->st_gid = group;
IMFS_update_ctime( jnode );
a000cd7c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED
return 0;
}
a000cd80: e8bd80fc pop {r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000cdfc <IMFS_create_node>:
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
a000cdfc: e92d41f0 push {r4, r5, r6, r7, r8, lr}
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
a000ce00: e2508000 subs r8, r0, #0
IMFS_jnode_types_t type,
const char *name,
mode_t mode,
const IMFS_types_union *info
)
{
a000ce04: e1a04001 mov r4, r1 a000ce08: e59d5018 ldr r5, [sp, #24] a000ce0c: e1a01002 mov r1, r2
IMFS_fs_info_t *fs_info;
/*
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
a000ce10: 0a000045 beq a000cf2c <IMFS_create_node+0x130>
return NULL;
parent = parent_loc->node_access;
fs_info = parent_loc->mt_entry->fs_info;
a000ce14: e5982010 ldr r2, [r8, #16]
/*
* Reject creation of FIFOs if support is disabled.
*/
if ( type == IMFS_FIFO &&
a000ce18: e3540007 cmp r4, #7
* MUST have a parent node to call this routine.
*/
if ( parent_loc == NULL )
return NULL;
parent = parent_loc->node_access;
a000ce1c: e5987000 ldr r7, [r8]
fs_info = parent_loc->mt_entry->fs_info;
a000ce20: e5926034 ldr r6, [r2, #52] ; 0x34
/*
* Reject creation of FIFOs if support is disabled.
*/
if ( type == IMFS_FIFO &&
a000ce24: 1a000004 bne a000ce3c <IMFS_create_node+0x40>
a000ce28: e5960010 ldr r0, [r6, #16] <== NOT EXECUTED a000ce2c: e59f2100 ldr r2, [pc, #256] ; a000cf34 <IMFS_create_node+0x138><== NOT EXECUTED a000ce30: e1500002 cmp r0, r2 <== NOT EXECUTED
fs_info->fifo_handlers == &rtems_filesystem_handlers_default )
return NULL;
a000ce34: 03a08000 moveq r8, #0 <== NOT EXECUTED
fs_info = parent_loc->mt_entry->fs_info;
/*
* Reject creation of FIFOs if support is disabled.
*/
if ( type == IMFS_FIFO &&
a000ce38: 0a00003b beq a000cf2c <IMFS_create_node+0x130> <== NOT EXECUTED
return NULL;
/*
* Allocate filesystem node and fill in basic information
*/
node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask );
a000ce3c: e59f20f4 ldr r2, [pc, #244] ; a000cf38 <IMFS_create_node+0x13c> a000ce40: e1a00004 mov r0, r4 a000ce44: e5922000 ldr r2, [r2] a000ce48: e592202c ldr r2, [r2, #44] ; 0x2c a000ce4c: e1c32002 bic r2, r3, r2 a000ce50: ebffffcb bl a000cd84 <IMFS_allocate_node>
if ( !node )
a000ce54: e2508000 subs r8, r0, #0
a000ce58: 0a000033 beq a000cf2c <IMFS_create_node+0x130>
return NULL;
/*
* Set the type specific information
*/
if ( type == IMFS_DIRECTORY ) {
a000ce5c: e3540001 cmp r4, #1
a000ce60: 1a000005 bne a000ce7c <IMFS_create_node+0x80>
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 );
a000ce64: e2883054 add r3, r8, #84 ; 0x54
head->next = tail;
a000ce68: e5883050 str r3, [r8, #80] ; 0x50
head->previous = NULL;
a000ce6c: e3a03000 mov r3, #0 a000ce70: e5883054 str r3, [r8, #84] ; 0x54
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
a000ce74: e2883050 add r3, r8, #80 ; 0x50 a000ce78: ea000012 b a000cec8 <IMFS_create_node+0xcc>
rtems_chain_initialize_empty(&node->info.directory.Entries);
} else if ( type == IMFS_HARD_LINK ) {
a000ce7c: e3540003 cmp r4, #3
a000ce80: 0a000001 beq a000ce8c <IMFS_create_node+0x90>
node->info.hard_link.link_node = info->hard_link.link_node;
} else if ( type == IMFS_SYM_LINK ) {
a000ce84: e3540004 cmp r4, #4
a000ce88: 1a000001 bne a000ce94 <IMFS_create_node+0x98>
node->info.sym_link.name = info->sym_link.name;
a000ce8c: e5953000 ldr r3, [r5] <== NOT EXECUTED a000ce90: ea00001c b a000cf08 <IMFS_create_node+0x10c> <== NOT EXECUTED
} else if ( type == IMFS_DEVICE ) {
a000ce94: e3540002 cmp r4, #2
node->info.device.major = info->device.major;
a000ce98: 05953000 ldreq r3, [r5] a000ce9c: 05883050 streq r3, [r8, #80] ; 0x50
node->info.device.minor = info->device.minor;
a000cea0: 05953004 ldreq r3, [r5, #4] a000cea4: 05883054 streq r3, [r8, #84] ; 0x54
a000cea8: 0a000017 beq a000cf0c <IMFS_create_node+0x110>
} else if ( type == IMFS_LINEAR_FILE ) {
a000ceac: e3540006 cmp r4, #6 <== NOT EXECUTED a000ceb0: 1a000006 bne a000ced0 <IMFS_create_node+0xd4> <== NOT EXECUTED
node->info.linearfile.size = 0;
a000ceb4: e3a03000 mov r3, #0 <== NOT EXECUTED a000ceb8: e3a04000 mov r4, #0 <== NOT EXECUTED a000cebc: e5883050 str r3, [r8, #80] ; 0x50 <== NOT EXECUTED a000cec0: e5884054 str r4, [r8, #84] ; 0x54 <== NOT EXECUTED
node->info.linearfile.direct = 0;
a000cec4: e3a03000 mov r3, #0 <== NOT EXECUTED
a000cec8: e5883058 str r3, [r8, #88] ; 0x58 a000cecc: ea00000e b a000cf0c <IMFS_create_node+0x110>
} else if ( type == IMFS_MEMORY_FILE ) {
a000ced0: e3540005 cmp r4, #5 <== NOT EXECUTED a000ced4: 1a000008 bne a000cefc <IMFS_create_node+0x100> <== NOT EXECUTED
node->info.file.size = 0;
a000ced8: e3a03000 mov r3, #0 <== NOT EXECUTED a000cedc: e3a04000 mov r4, #0 <== NOT EXECUTED a000cee0: e5883050 str r3, [r8, #80] ; 0x50 <== NOT EXECUTED a000cee4: e5884054 str r4, [r8, #84] ; 0x54 <== NOT EXECUTED
node->info.file.indirect = 0;
a000cee8: e3a03000 mov r3, #0 <== NOT EXECUTED a000ceec: e5883058 str r3, [r8, #88] ; 0x58 <== NOT EXECUTED
node->info.file.doubly_indirect = 0;
a000cef0: e588305c str r3, [r8, #92] ; 0x5c <== NOT EXECUTED
node->info.file.triply_indirect = 0;
a000cef4: e5883060 str r3, [r8, #96] ; 0x60 <== NOT EXECUTED a000cef8: ea000003 b a000cf0c <IMFS_create_node+0x110> <== NOT EXECUTED
} else if ( type == IMFS_FIFO ) {
a000cefc: e3540007 cmp r4, #7 <== NOT EXECUTED a000cf00: 1a000001 bne a000cf0c <IMFS_create_node+0x110> <== NOT EXECUTED
node->info.fifo.pipe = NULL;
a000cf04: e3a03000 mov r3, #0 <== NOT EXECUTED a000cf08: e5883050 str r3, [r8, #80] ; 0x50 <== NOT EXECUTED
/*
* This node MUST have a parent, so put it in that directory list.
*/
node->Parent = parent;
node->st_ino = ++fs_info->ino_count;
a000cf0c: e5963004 ldr r3, [r6, #4]
}
/*
* This node MUST have a parent, so put it in that directory list.
*/
node->Parent = parent;
a000cf10: e5887008 str r7, [r8, #8] a000cf14: e2870050 add r0, r7, #80 ; 0x50
node->st_ino = ++fs_info->ino_count;
a000cf18: e2833001 add r3, r3, #1 a000cf1c: e5863004 str r3, [r6, #4] a000cf20: e1a01008 mov r1, r8 a000cf24: e5883038 str r3, [r8, #56] ; 0x38 a000cf28: ebfff37a bl a0009d18 <_Chain_Append>
rtems_chain_append( &parent->info.directory.Entries, &node->Node );
return node;
}
a000cf2c: e1a00008 mov r0, r8
a000cf30: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
a000d888 <IMFS_create_orphan>:
#include "imfs.h"
void IMFS_create_orphan( IMFS_jnode_t *jnode )
{
if ( jnode->Parent != NULL ) {
a000d888: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED
#include <rtems/libio_.h>
#include "imfs.h"
void IMFS_create_orphan( IMFS_jnode_t *jnode )
{
a000d88c: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED
if ( jnode->Parent != NULL ) {
a000d890: e3530000 cmp r3, #0 <== NOT EXECUTED
#include <rtems/libio_.h>
#include "imfs.h"
void IMFS_create_orphan( IMFS_jnode_t *jnode )
{
a000d894: e1a04000 mov r4, r0 <== NOT EXECUTED
if ( jnode->Parent != NULL ) {
a000d898: 0a000002 beq a000d8a8 <IMFS_create_orphan+0x20> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
a000d89c: ebfff128 bl a0009d44 <_Chain_Extract> <== NOT EXECUTED
rtems_chain_extract( &jnode->Node );
jnode->Parent = NULL;
a000d8a0: e3a03000 mov r3, #0 <== NOT EXECUTED a000d8a4: e5843008 str r3, [r4, #8] <== NOT EXECUTED
}
--jnode->st_nlink;
a000d8a8: e1d433b4 ldrh r3, [r4, #52] ; 0x34 <== NOT EXECUTED
IMFS_update_ctime( jnode );
a000d8ac: e1a0000d mov r0, sp <== NOT EXECUTED a000d8b0: e3a01000 mov r1, #0 <== NOT EXECUTED
if ( jnode->Parent != NULL ) {
rtems_chain_extract( &jnode->Node );
jnode->Parent = NULL;
}
--jnode->st_nlink;
a000d8b4: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000d8b8: e1c433b4 strh r3, [r4, #52] ; 0x34 <== NOT EXECUTED
IMFS_update_ctime( jnode );
a000d8bc: ebffe260 bl a0006244 <gettimeofday> <== NOT EXECUTED a000d8c0: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000d8c4: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED
}
a000d8c8: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED
a0008664 <IMFS_dump>:
* NOTE: Assuming the "/" directory is bad.
* Not checking that the starting directory is in an IMFS is bad.
*/
void IMFS_dump( void )
{
a0008664: e92d4010 push {r4, lr} <== NOT EXECUTED
fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" );
a0008668: e59f4044 ldr r4, [pc, #68] ; a00086b4 <IMFS_dump+0x50> <== NOT EXECUTED a000866c: e59f0044 ldr r0, [pc, #68] ; a00086b8 <IMFS_dump+0x54> <== NOT EXECUTED a0008670: e5943000 ldr r3, [r4] <== NOT EXECUTED a0008674: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0008678: eb00345d bl a00157f4 <fputs> <== NOT EXECUTED
fprintf(stdout, "/\n" );
a000867c: e5943000 ldr r3, [r4] <== NOT EXECUTED a0008680: e59f0034 ldr r0, [pc, #52] ; a00086bc <IMFS_dump+0x58> <== NOT EXECUTED a0008684: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0008688: eb003459 bl a00157f4 <fputs> <== NOT EXECUTED
IMFS_dump_directory( rtems_filesystem_root.node_access, 0 );
a000868c: e59f302c ldr r3, [pc, #44] ; a00086c0 <IMFS_dump+0x5c> <== NOT EXECUTED a0008690: e3a01000 mov r1, #0 <== NOT EXECUTED a0008694: e5933000 ldr r3, [r3] <== NOT EXECUTED a0008698: e5930018 ldr r0, [r3, #24] <== NOT EXECUTED a000869c: ebffffd2 bl a00085ec <IMFS_dump_directory> <== NOT EXECUTED
fprintf(stdout, "*************** End of Dump ***************\n" );
a00086a0: e5943000 ldr r3, [r4] <== NOT EXECUTED a00086a4: e59f0018 ldr r0, [pc, #24] ; a00086c4 <IMFS_dump+0x60> <== NOT EXECUTED a00086a8: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED
}
a00086ac: e8bd4010 pop {r4, lr} <== NOT EXECUTED
void IMFS_dump( void )
{
fprintf(stdout, "*************** Dump of Entire IMFS ***************\n" );
fprintf(stdout, "/\n" );
IMFS_dump_directory( rtems_filesystem_root.node_access, 0 );
fprintf(stdout, "*************** End of Dump ***************\n" );
a00086b0: ea00344f b a00157f4 <fputs> <== NOT EXECUTED
a00085ec <IMFS_dump_directory>:
*/
void IMFS_dump_directory(
IMFS_jnode_t *the_directory,
int level
)
{
a00085ec: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
a00085f0: e1a06001 mov r6, r1 <== NOT EXECUTED
*
*/
int IMFS_memfile_maximum_size( void )
{
return IMFS_MEMFILE_MAXIMUM_SIZE;
}
a00085f4: e5904050 ldr r4, [r0, #80] ; 0x50 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(
Chain_Control *the_chain,
const Chain_Node *the_node
)
{
return (the_node == _Chain_Tail(the_chain));
a00085f8: e280a054 add sl, r0, #84 ; 0x54 <== NOT EXECUTED
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
for ( i=0 ; i<=level ; i++ )
fprintf(stdout, "...." );
a00085fc: e59f8058 ldr r8, [pc, #88] ; a000865c <IMFS_dump_directory+0x70><== NOT EXECUTED
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
a0008600: e2817001 add r7, r1, #1 <== NOT EXECUTED
IMFS_assert( level >= 0 );
IMFS_assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = rtems_chain_first( the_chain );
a0008604: ea000011 b a0008650 <IMFS_dump_directory+0x64> <== NOT EXECUTED
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
for ( i=0 ; i<=level ; i++ )
a0008608: e3a05000 mov r5, #0 <== NOT EXECUTED a000860c: ea000004 b a0008624 <IMFS_dump_directory+0x38> <== NOT EXECUTED
fprintf(stdout, "...." );
a0008610: e5983000 ldr r3, [r8] <== NOT EXECUTED a0008614: e59f0044 ldr r0, [pc, #68] ; a0008660 <IMFS_dump_directory+0x74><== NOT EXECUTED
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
for ( i=0 ; i<=level ; i++ )
a0008618: e2855001 add r5, r5, #1 <== NOT EXECUTED
fprintf(stdout, "...." );
a000861c: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0008620: eb003473 bl a00157f4 <fputs> <== NOT EXECUTED
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
for ( i=0 ; i<=level ; i++ )
a0008624: e1550006 cmp r5, r6 <== NOT EXECUTED a0008628: dafffff8 ble a0008610 <IMFS_dump_directory+0x24> <== NOT EXECUTED
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
a000862c: e1a00004 mov r0, r4 <== NOT EXECUTED a0008630: ebffffaa bl a00084e0 <IMFS_print_jnode> <== NOT EXECUTED
if ( the_jnode->type == IMFS_DIRECTORY )
a0008634: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a0008638: e3530001 cmp r3, #1 <== NOT EXECUTED a000863c: 1a000002 bne a000864c <IMFS_dump_directory+0x60> <== NOT EXECUTED
IMFS_dump_directory( the_jnode, level + 1 );
a0008640: e1a00004 mov r0, r4 <== NOT EXECUTED a0008644: e1a01007 mov r1, r7 <== NOT EXECUTED a0008648: ebffffe7 bl a00085ec <IMFS_dump_directory> <== NOT EXECUTED
the_chain = &the_directory->info.directory.Entries;
for ( the_node = rtems_chain_first( the_chain );
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
a000864c: e5944000 ldr r4, [r4] <== NOT EXECUTED
IMFS_assert( level >= 0 );
IMFS_assert( the_directory->type == IMFS_DIRECTORY );
the_chain = &the_directory->info.directory.Entries;
for ( the_node = rtems_chain_first( the_chain );
a0008650: e154000a cmp r4, sl <== NOT EXECUTED a0008654: 1affffeb bne a0008608 <IMFS_dump_directory+0x1c> <== NOT EXECUTED
fprintf(stdout, "...." );
IMFS_print_jnode( the_jnode );
if ( the_jnode->type == IMFS_DIRECTORY )
IMFS_dump_directory( the_jnode, level + 1 );
}
}
a0008658: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a000d0a4 <IMFS_eval_path>:
const char *pathname, /* IN */
size_t pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
a000d0a4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
char token[ IMFS_NAME_MAX + 1 ];
rtems_filesystem_location_info_t newloc;
IMFS_jnode_t *node;
int result;
if ( !rtems_libio_is_valid_perms( flags ) ) {
a000d0a8: e3d27007 bics r7, r2, #7
const char *pathname, /* IN */
size_t pathnamelen, /* IN */
int flags, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
a000d0ac: e24dd040 sub sp, sp, #64 ; 0x40 a000d0b0: e58d0000 str r0, [sp] a000d0b4: e1a06001 mov r6, r1 a000d0b8: e1a08002 mov r8, r2 a000d0bc: e1a04003 mov r4, r3
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
a000d0c0: 05935000 ldreq r5, [r3]
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
int i = 0;
int len;
IMFS_token_types type = IMFS_CURRENT_DIR;
a000d0c4: 03a09001 moveq r9, #1
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
a000d0c8: 028da004 addeq sl, sp, #4
char token[ IMFS_NAME_MAX + 1 ];
rtems_filesystem_location_info_t newloc;
IMFS_jnode_t *node;
int result;
if ( !rtems_libio_is_valid_perms( flags ) ) {
a000d0cc: 0a000057 beq a000d230 <IMFS_eval_path+0x18c>
rtems_set_errno_and_return_minus_one( EIO );
a000d0d0: eb000fe5 bl a001106c <__errno> <== NOT EXECUTED a000d0d4: e3a03005 mov r3, #5 <== NOT EXECUTED a000d0d8: ea00007e b a000d2d8 <IMFS_eval_path+0x234> <== NOT EXECUTED
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
a000d0dc: e59d2000 ldr r2, [sp] a000d0e0: e28d303c add r3, sp, #60 ; 0x3c a000d0e4: e1a01006 mov r1, r6 a000d0e8: e0820007 add r0, r2, r7 a000d0ec: e1a0200a mov r2, sl a000d0f0: eb0001ae bl a000d7b0 <IMFS_get_token>
pathnamelen -= len;
i += len;
if ( !pathloc->node_access )
a000d0f4: e5943000 ldr r3, [r4]
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
a000d0f8: e1a09000 mov r9, r0
pathnamelen -= len;
a000d0fc: e59db03c ldr fp, [sp, #60] ; 0x3c
i += len;
if ( !pathloc->node_access )
a000d100: e3530000 cmp r3, #0
a000d104: 0a000041 beq a000d210 <IMFS_eval_path+0x16c>
rtems_set_errno_and_return_minus_one( ENOENT );
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
a000d108: e3500000 cmp r0, #0
a000d10c: 0a000006 beq a000d12c <IMFS_eval_path+0x88>
if ( node->type == IMFS_DIRECTORY )
a000d110: e595104c ldr r1, [r5, #76] ; 0x4c a000d114: e3510001 cmp r1, #1
a000d118: 1a000003 bne a000d12c <IMFS_eval_path+0x88>
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
a000d11c: e1a00004 mov r0, r4 a000d120: ebffffb2 bl a000cff0 <IMFS_evaluate_permission> a000d124: e3500000 cmp r0, #0
a000d128: 0a000068 beq a000d2d0 <IMFS_eval_path+0x22c>
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
switch( type ) {
a000d12c: e3590003 cmp r9, #3
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
type = IMFS_get_token( &pathname[i], pathnamelen, token, &len );
pathnamelen -= len;
a000d130: e06b6006 rsb r6, fp, r6
i += len;
a000d134: e087700b add r7, r7, fp
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
a000d138: e5945000 ldr r5, [r4]
switch( type ) {
a000d13c: 0a000014 beq a000d194 <IMFS_eval_path+0xf0>
a000d140: e3590004 cmp r9, #4
a000d144: 0a000036 beq a000d224 <IMFS_eval_path+0x180>
a000d148: e3590002 cmp r9, #2
a000d14c: 1a000037 bne a000d230 <IMFS_eval_path+0x18c>
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
a000d150: e59fc194 ldr ip, [pc, #404] ; a000d2ec <IMFS_eval_path+0x248><== NOT EXECUTED a000d154: e59c3000 ldr r3, [ip] <== NOT EXECUTED a000d158: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a000d15c: e1550003 cmp r5, r3 <== NOT EXECUTED a000d160: 0a000032 beq a000d230 <IMFS_eval_path+0x18c> <== NOT EXECUTED
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
pathloc->mt_entry->mt_fs_root.node_access) {
a000d164: e594e010 ldr lr, [r4, #16] <== NOT EXECUTED
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access ==
a000d168: e59e301c ldr r3, [lr, #28] <== NOT EXECUTED a000d16c: e1550003 cmp r5, r3 <== NOT EXECUTED
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break; /* Throw out the .. in this case */
} else {
newloc = pathloc->mt_entry->mt_point_node;
a000d170: 028dc028 addeq ip, sp, #40 ; 0x28 <== NOT EXECUTED a000d174: 028ee008 addeq lr, lr, #8 <== NOT EXECUTED a000d178: 0a000037 beq a000d25c <IMFS_eval_path+0x1b8> <== NOT EXECUTED
pathnamelen+len,
flags,pathloc);
}
} else {
if ( !node->Parent )
a000d17c: e5955008 ldr r5, [r5, #8] <== NOT EXECUTED a000d180: e3550000 cmp r5, #0 <== NOT EXECUTED a000d184: 1a000024 bne a000d21c <IMFS_eval_path+0x178> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOENT );
a000d188: eb000fb7 bl a001106c <__errno> <== NOT EXECUTED a000d18c: e5809000 str r9, [r0] <== NOT EXECUTED a000d190: ea000051 b a000d2dc <IMFS_eval_path+0x238> <== NOT EXECUTED
case IMFS_NAME:
/*
* If we are at a link follow it.
*/
if ( node->type == IMFS_HARD_LINK ) {
a000d194: e595304c ldr r3, [r5, #76] ; 0x4c a000d198: e3530003 cmp r3, #3
a000d19c: 1a000004 bne a000d1b4 <IMFS_eval_path+0x110>
IMFS_evaluate_hard_link( pathloc, 0 );
a000d1a0: e1a00004 mov r0, r4 <== NOT EXECUTED a000d1a4: e3a01000 mov r1, #0 <== NOT EXECUTED a000d1a8: ebffffaa bl a000d058 <IMFS_evaluate_hard_link> <== NOT EXECUTED
node = pathloc->node_access;
a000d1ac: e5945000 ldr r5, [r4] <== NOT EXECUTED a000d1b0: ea000008 b a000d1d8 <IMFS_eval_path+0x134> <== NOT EXECUTED
* It would be a design error if we evaluated the link and
* was broken.
*/
IMFS_assert( node );
} else if ( node->type == IMFS_SYM_LINK ) {
a000d1b4: e3530004 cmp r3, #4
a000d1b8: 1a000006 bne a000d1d8 <IMFS_eval_path+0x134>
result = IMFS_evaluate_sym_link( pathloc, 0 );
a000d1bc: e1a00004 mov r0, r4 <== NOT EXECUTED a000d1c0: e3a01000 mov r1, #0 <== NOT EXECUTED a000d1c4: eb000049 bl a000d2f0 <IMFS_evaluate_sym_link> <== NOT EXECUTED
/*
* In contrast to a hard link, it is possible to have a broken
* symbolic link.
*/
node = pathloc->node_access;
if ( result == -1 )
a000d1c8: e3700001 cmn r0, #1 <== NOT EXECUTED
* was broken.
*/
IMFS_assert( node );
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_sym_link( pathloc, 0 );
a000d1cc: e1a0b000 mov fp, r0 <== NOT EXECUTED
/*
* In contrast to a hard link, it is possible to have a broken
* symbolic link.
*/
node = pathloc->node_access;
a000d1d0: e5945000 ldr r5, [r4] <== NOT EXECUTED
if ( result == -1 )
a000d1d4: 0a000041 beq a000d2e0 <IMFS_eval_path+0x23c> <== NOT EXECUTED
}
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
a000d1d8: e595304c ldr r3, [r5, #76] ; 0x4c a000d1dc: e3530001 cmp r3, #1
a000d1e0: 0a000002 beq a000d1f0 <IMFS_eval_path+0x14c>
rtems_set_errno_and_return_minus_one( ENOTDIR );
a000d1e4: eb000fa0 bl a001106c <__errno> <== NOT EXECUTED a000d1e8: e3a03014 mov r3, #20 <== NOT EXECUTED a000d1ec: ea000039 b a000d2d8 <IMFS_eval_path+0x234> <== NOT EXECUTED
/*
* If we are at a node that is a mount point. Set loc to the
* new fs root node and let them finish evaluating the path.
*/
if ( node->info.directory.mt_fs != NULL ) {
a000d1f0: e595e05c ldr lr, [r5, #92] ; 0x5c a000d1f4: e35e0000 cmp lr, #0
a000d1f8: 1a000015 bne a000d254 <IMFS_eval_path+0x1b0>
}
/*
* Otherwise find the token name in the present location.
*/
node = IMFS_find_match_in_dir( node, token );
a000d1fc: e1a00005 mov r0, r5 a000d200: e1a0100a mov r1, sl a000d204: eb000149 bl a000d730 <IMFS_find_match_in_dir>
if ( !node )
a000d208: e2505000 subs r5, r0, #0
a000d20c: 1a000002 bne a000d21c <IMFS_eval_path+0x178>
rtems_set_errno_and_return_minus_one( ENOENT );
a000d210: eb000f95 bl a001106c <__errno> a000d214: e3a03002 mov r3, #2 a000d218: ea00002e b a000d2d8 <IMFS_eval_path+0x234>
/*
* Set the node access to the point we have found.
*/
pathloc->node_access = node;
a000d21c: e5845000 str r5, [r4] a000d220: ea000002 b a000d230 <IMFS_eval_path+0x18c>
case IMFS_NO_MORE_PATH:
case IMFS_CURRENT_DIR:
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
a000d224: eb000f90 bl a001106c <__errno> <== NOT EXECUTED a000d228: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED a000d22c: ea000029 b a000d2d8 <IMFS_eval_path+0x234> <== NOT EXECUTED
/*
* Evaluate all tokens until we are done or an error occurs.
*/
while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) {
a000d230: e3590004 cmp r9, #4 a000d234: 13590000 cmpne r9, #0
a000d238: 1affffa7 bne a000d0dc <IMFS_eval_path+0x38>
* new fs root node and let let the mounted filesystem set the handlers.
*
* NOTE: The behavior of stat() on a mount point appears to be questionable.
*/
if ( node->type == IMFS_DIRECTORY ) {
a000d23c: e595304c ldr r3, [r5, #76] ; 0x4c a000d240: e3530001 cmp r3, #1
a000d244: 1a000019 bne a000d2b0 <IMFS_eval_path+0x20c>
if ( node->info.directory.mt_fs != NULL ) {
a000d248: e595e05c ldr lr, [r5, #92] ; 0x5c a000d24c: e35e0000 cmp lr, #0
a000d250: 0a000016 beq a000d2b0 <IMFS_eval_path+0x20c>
newloc = node->info.directory.mt_fs->mt_fs_root;
a000d254: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED
a000d258: e28ee01c add lr, lr, #28 <== NOT EXECUTED
a000d25c: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a000d260: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000d264: e59ee000 ldr lr, [lr] <== NOT EXECUTED
a000d268: e58ce000 str lr, [ip] <== NOT EXECUTED
*pathloc = newloc;
a000d26c: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED
a000d270: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000d274: e1a0c004 mov ip, r4 <== NOT EXECUTED
a000d278: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
a000d27c: e59d103c ldr r1, [sp, #60] ; 0x3c <== NOT EXECUTED
*/
if ( node->type == IMFS_DIRECTORY ) {
if ( node->info.directory.mt_fs != NULL ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
*pathloc = newloc;
a000d280: e58ce000 str lr, [ip] <== NOT EXECUTED
return (*pathloc->ops->evalpath_h)( &pathname[i-len],
a000d284: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000d288: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000d28c: e0610007 rsb r0, r1, r7 <== NOT EXECUTED a000d290: e593c000 ldr ip, [r3] <== NOT EXECUTED a000d294: e0820000 add r0, r2, r0 <== NOT EXECUTED a000d298: e0861001 add r1, r6, r1 <== NOT EXECUTED a000d29c: e1a02008 mov r2, r8 <== NOT EXECUTED a000d2a0: e1a03004 mov r3, r4 <== NOT EXECUTED a000d2a4: e12fff3c blx ip <== NOT EXECUTED a000d2a8: e1a0b000 mov fp, r0 <== NOT EXECUTED a000d2ac: ea00000b b a000d2e0 <IMFS_eval_path+0x23c> <== NOT EXECUTED
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
a000d2b0: e1a00004 mov r0, r4 a000d2b4: ebffff30 bl a000cf7c <IMFS_Set_handlers>
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
a000d2b8: e1a01008 mov r1, r8
flags, pathloc );
} else {
result = IMFS_Set_handlers( pathloc );
}
} else {
result = IMFS_Set_handlers( pathloc );
a000d2bc: e1a0b000 mov fp, r0
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( pathloc, flags ) )
a000d2c0: e1a00004 mov r0, r4 a000d2c4: ebffff49 bl a000cff0 <IMFS_evaluate_permission> a000d2c8: e3500000 cmp r0, #0
a000d2cc: 1a000003 bne a000d2e0 <IMFS_eval_path+0x23c>
rtems_set_errno_and_return_minus_one( EACCES );
a000d2d0: eb000f65 bl a001106c <__errno> <== NOT EXECUTED a000d2d4: e3a0300d mov r3, #13 <== NOT EXECUTED
a000d2d8: e5803000 str r3, [r0] a000d2dc: e3e0b000 mvn fp, #0
return result;
}
a000d2e0: e1a0000b mov r0, fp
a000d2e4: e28dd040 add sp, sp, #64 ; 0x40
a000d2e8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
a000d42c <IMFS_evaluate_for_make>:
int IMFS_evaluate_for_make(
const char *path, /* IN */
rtems_filesystem_location_info_t *pathloc, /* IN/OUT */
const char **name /* OUT */
)
{
a000d42c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
a000d430: e24dd03c sub sp, sp, #60 ; 0x3c
a000d434: e1a07000 mov r7, r0
a000d438: e1a04001 mov r4, r1
a000d43c: e1a0a002 mov sl, r2
/*
* This was filled in by the caller and is valid in the
* mount table.
*/
node = pathloc->node_access;
a000d440: e5916000 ldr r6, [r1]
/*
* Get the path length.
*/
pathlen = strlen( path );
a000d444: eb0012f2 bl a0012014 <strlen>
const char *path, /* IN */
rtems_filesystem_location_info_t *pathloc, /* IN/OUT */
const char **name /* OUT */
)
{
int i = 0;
a000d448: e3a05000 mov r5, #0
node = pathloc->node_access;
/*
* Get the path length.
*/
pathlen = strlen( path );
a000d44c: e1a08000 mov r8, r0
* Evaluate all tokens until we are done or an error occurs.
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
a000d450: e1a01008 mov r1, r8 a000d454: e28d3038 add r3, sp, #56 ; 0x38 a000d458: e0870005 add r0, r7, r5 a000d45c: e1a0200d mov r2, sp a000d460: eb0000d2 bl a000d7b0 <IMFS_get_token>
pathlen -= len;
i += len;
if ( !pathloc->node_access )
a000d464: e5943000 ldr r3, [r4]
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
pathlen -= len;
a000d468: e59db038 ldr fp, [sp, #56] ; 0x38
* Evaluate all tokens until we are done or an error occurs.
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
a000d46c: e1a09000 mov r9, r0
pathlen -= len;
i += len;
if ( !pathloc->node_access )
a000d470: e3530000 cmp r3, #0
*/
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
pathlen -= len;
a000d474: e06b8008 rsb r8, fp, r8
i += len;
if ( !pathloc->node_access )
a000d478: 0a000060 beq a000d600 <IMFS_evaluate_for_make+0x1d4>
/*
* I cannot move out of this directory without execute permission.
*/
if ( type != IMFS_NO_MORE_PATH )
a000d47c: e3500000 cmp r0, #0
a000d480: 0a000006 beq a000d4a0 <IMFS_evaluate_for_make+0x74>
if ( node->type == IMFS_DIRECTORY )
a000d484: e596104c ldr r1, [r6, #76] ; 0x4c a000d488: e3510001 cmp r1, #1
a000d48c: 1a000003 bne a000d4a0 <IMFS_evaluate_for_make+0x74>
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
a000d490: e1a00004 mov r0, r4 a000d494: ebfffed5 bl a000cff0 <IMFS_evaluate_permission> a000d498: e3500000 cmp r0, #0
a000d49c: 0a00006c beq a000d654 <IMFS_evaluate_for_make+0x228>
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
a000d4a0: e5943000 ldr r3, [r4]
while( !done ) {
type = IMFS_get_token( &path[i], pathlen, token, &len );
pathlen -= len;
i += len;
a000d4a4: e085500b add r5, r5, fp
if ( type != IMFS_NO_MORE_PATH )
if ( node->type == IMFS_DIRECTORY )
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) )
rtems_set_errno_and_return_minus_one( EACCES );
node = pathloc->node_access;
a000d4a8: e1a06003 mov r6, r3
switch( type ) {
a000d4ac: e3590004 cmp r9, #4 a000d4b0: 979ff109 ldrls pc, [pc, r9, lsl #2]
a000d4b4: eaffffe5 b a000d450 <IMFS_evaluate_for_make+0x24> <== NOT EXECUTED a000d4b8: a000d5c4 .word 0xa000d5c4 <== NOT EXECUTED a000d4bc: a000d450 .word 0xa000d450 <== NOT EXECUTED a000d4c0: a000d4cc .word 0xa000d4cc <== NOT EXECUTED a000d4c4: a000d508 .word 0xa000d508 <== NOT EXECUTED a000d4c8: a000d5d0 .word 0xa000d5d0 <== NOT EXECUTED
case IMFS_UP_DIR:
/*
* Am I at the root of all filesystems? (chroot'ed?)
*/
if ( pathloc->node_access == rtems_filesystem_root.node_access )
a000d4cc: e59f119c ldr r1, [pc, #412] ; a000d670 <IMFS_evaluate_for_make+0x244><== NOT EXECUTED a000d4d0: e5912000 ldr r2, [r1] <== NOT EXECUTED a000d4d4: e5922018 ldr r2, [r2, #24] <== NOT EXECUTED a000d4d8: e1530002 cmp r3, r2 <== NOT EXECUTED a000d4dc: 0affffdb beq a000d450 <IMFS_evaluate_for_make+0x24> <== NOT EXECUTED
/*
* Am I at the root of this mounted filesystem?
*/
if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){
a000d4e0: e594e010 ldr lr, [r4, #16] <== NOT EXECUTED a000d4e4: e59e201c ldr r2, [lr, #28] <== NOT EXECUTED a000d4e8: e1530002 cmp r3, r2 <== NOT EXECUTED
if ( pathloc->node_access == rtems_filesystem_root.node_access ) {
break;
} else {
newloc = pathloc->mt_entry->mt_point_node;
a000d4ec: 028dc024 addeq ip, sp, #36 ; 0x24 <== NOT EXECUTED a000d4f0: 028ee008 addeq lr, lr, #8 <== NOT EXECUTED a000d4f4: 0a000019 beq a000d560 <IMFS_evaluate_for_make+0x134> <== NOT EXECUTED
*pathloc = newloc;
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
}
} else {
if ( !node->Parent )
a000d4f8: e5936008 ldr r6, [r3, #8] <== NOT EXECUTED a000d4fc: e3560000 cmp r6, #0 <== NOT EXECUTED a000d500: 1a00002d bne a000d5bc <IMFS_evaluate_for_make+0x190> <== NOT EXECUTED a000d504: ea00003d b a000d600 <IMFS_evaluate_for_make+0x1d4> <== NOT EXECUTED
pathloc->node_access = node;
break;
case IMFS_NAME:
if ( node->type == IMFS_HARD_LINK ) {
a000d508: e593304c ldr r3, [r3, #76] ; 0x4c a000d50c: e3530003 cmp r3, #3
a000d510: 0a000001 beq a000d51c <IMFS_evaluate_for_make+0xf0>
result = IMFS_evaluate_link( pathloc, 0 );
if ( result == -1 )
return -1;
} else if ( node->type == IMFS_SYM_LINK ) {
a000d514: e3530004 cmp r3, #4
a000d518: 1a000005 bne a000d534 <IMFS_evaluate_for_make+0x108>
result = IMFS_evaluate_link( pathloc, 0 );
a000d51c: e1a00004 mov r0, r4 <== NOT EXECUTED a000d520: e3a01000 mov r1, #0 <== NOT EXECUTED a000d524: ebffff93 bl a000d378 <IMFS_evaluate_link> <== NOT EXECUTED
if ( result == -1 )
a000d528: e3700001 cmn r0, #1 <== NOT EXECUTED
if ( result == -1 )
return -1;
} else if ( node->type == IMFS_SYM_LINK ) {
result = IMFS_evaluate_link( pathloc, 0 );
a000d52c: e1a06000 mov r6, r0 <== NOT EXECUTED
if ( result == -1 )
a000d530: 0a00004b beq a000d664 <IMFS_evaluate_for_make+0x238> <== NOT EXECUTED
return -1;
}
node = pathloc->node_access;
a000d534: e5940000 ldr r0, [r4]
if ( !node )
a000d538: e3500000 cmp r0, #0
a000d53c: 0a00003c beq a000d634 <IMFS_evaluate_for_make+0x208>
/*
* Only a directory can be decended into.
*/
if ( node->type != IMFS_DIRECTORY )
a000d540: e590304c ldr r3, [r0, #76] ; 0x4c a000d544: e3530001 cmp r3, #1
a000d548: 1a000039 bne a000d634 <IMFS_evaluate_for_make+0x208>
/*
* If we are at a node that is a mount point. Set loc to the
* new fs root node and let them finish evaluating the path.
*/
if ( node->info.directory.mt_fs != NULL ) {
a000d54c: e590e05c ldr lr, [r0, #92] ; 0x5c a000d550: e35e0000 cmp lr, #0
a000d554: 0a000014 beq a000d5ac <IMFS_evaluate_for_make+0x180>
newloc = node->info.directory.mt_fs->mt_fs_root;
a000d558: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED
a000d55c: e28ee01c add lr, lr, #28 <== NOT EXECUTED
a000d560: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a000d564: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000d568: e59ee000 ldr lr, [lr] <== NOT EXECUTED
a000d56c: e58ce000 str lr, [ip] <== NOT EXECUTED
*pathloc = newloc;
a000d570: e28dc024 add ip, sp, #36 ; 0x24 <== NOT EXECUTED
a000d574: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000d578: e1a0c004 mov ip, r4 <== NOT EXECUTED
a000d57c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
a000d580: e59d2038 ldr r2, [sp, #56] ; 0x38 <== NOT EXECUTED
* new fs root node and let them finish evaluating the path.
*/
if ( node->info.directory.mt_fs != NULL ) {
newloc = node->info.directory.mt_fs->mt_fs_root;
*pathloc = newloc;
a000d584: e58ce000 str lr, [ip] <== NOT EXECUTED
return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name );
a000d588: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000d58c: e0625005 rsb r5, r2, r5 <== NOT EXECUTED a000d590: e0870005 add r0, r7, r5 <== NOT EXECUTED a000d594: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000d598: e1a01004 mov r1, r4 <== NOT EXECUTED a000d59c: e1a0200a mov r2, sl <== NOT EXECUTED a000d5a0: e12fff33 blx r3 <== NOT EXECUTED a000d5a4: e1a06000 mov r6, r0 <== NOT EXECUTED a000d5a8: ea00002d b a000d664 <IMFS_evaluate_for_make+0x238> <== NOT EXECUTED
/*
* Otherwise find the token name in the present location.
*/
node = IMFS_find_match_in_dir( node, token );
a000d5ac: e1a0100d mov r1, sp a000d5b0: eb00005e bl a000d730 <IMFS_find_match_in_dir>
/*
* If there is no node we have found the name of the node we
* wish to create.
*/
if ( ! node )
a000d5b4: e2506000 subs r6, r0, #0
a000d5b8: 0a000007 beq a000d5dc <IMFS_evaluate_for_make+0x1b0>
done = true;
else
pathloc->node_access = node;
a000d5bc: e5846000 str r6, [r4] a000d5c0: eaffffa2 b a000d450 <IMFS_evaluate_for_make+0x24>
break;
case IMFS_NO_MORE_PATH:
rtems_set_errno_and_return_minus_one( EEXIST );
a000d5c4: eb000ea8 bl a001106c <__errno> a000d5c8: e3a03011 mov r3, #17 a000d5cc: ea000022 b a000d65c <IMFS_evaluate_for_make+0x230>
break;
case IMFS_INVALID_TOKEN:
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
a000d5d0: eb000ea5 bl a001106c <__errno> <== NOT EXECUTED a000d5d4: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED a000d5d8: ea00001f b a000d65c <IMFS_evaluate_for_make+0x230> <== NOT EXECUTED
case IMFS_CURRENT_DIR:
break;
}
}
*name = &path[ i - len ];
a000d5dc: e59d3038 ldr r3, [sp, #56] ; 0x38 a000d5e0: e0633005 rsb r3, r3, r5 a000d5e4: e0873003 add r3, r7, r3 a000d5e8: e58a3000 str r3, [sl]
* pathloc is returned with a pointer to the parent of the new node.
* name is returned with a pointer to the first character in the
* new node name. The parent node is verified to be a directory.
*/
int IMFS_evaluate_for_make(
a000d5ec: e0875005 add r5, r7, r5
/*
* We have evaluated the path as far as we can.
* Verify there is not any invalid stuff at the end of the name.
*/
for( ; path[i] != '\0'; i++) {
a000d5f0: ea000005 b a000d60c <IMFS_evaluate_for_make+0x1e0>
if ( !IMFS_is_separator( path[ i ] ) )
a000d5f4: ebffe676 bl a0006fd4 <rtems_filesystem_is_separator> <== NOT EXECUTED a000d5f8: e3500000 cmp r0, #0 <== NOT EXECUTED a000d5fc: 1a000002 bne a000d60c <IMFS_evaluate_for_make+0x1e0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOENT );
a000d600: eb000e99 bl a001106c <__errno> <== NOT EXECUTED a000d604: e3a03002 mov r3, #2 <== NOT EXECUTED a000d608: ea000013 b a000d65c <IMFS_evaluate_for_make+0x230> <== NOT EXECUTED
/*
* We have evaluated the path as far as we can.
* Verify there is not any invalid stuff at the end of the name.
*/
for( ; path[i] != '\0'; i++) {
a000d60c: e4d50001 ldrb r0, [r5], #1 a000d610: e3500000 cmp r0, #0
a000d614: 1afffff6 bne a000d5f4 <IMFS_evaluate_for_make+0x1c8>
/*
* Verify we can execute and write to this directory.
*/
result = IMFS_Set_handlers( pathloc );
a000d618: e1a00004 mov r0, r4 a000d61c: ebfffe56 bl a000cf7c <IMFS_Set_handlers>
/*
* The returned node must be a directory
*/
node = pathloc->node_access;
if ( node->type != IMFS_DIRECTORY )
a000d620: e5943000 ldr r3, [r4]
/*
* Verify we can execute and write to this directory.
*/
result = IMFS_Set_handlers( pathloc );
a000d624: e1a06000 mov r6, r0
/*
* The returned node must be a directory
*/
node = pathloc->node_access;
if ( node->type != IMFS_DIRECTORY )
a000d628: e593304c ldr r3, [r3, #76] ; 0x4c a000d62c: e3530001 cmp r3, #1
a000d630: 0a000002 beq a000d640 <IMFS_evaluate_for_make+0x214>
rtems_set_errno_and_return_minus_one( ENOTDIR );
a000d634: eb000e8c bl a001106c <__errno> <== NOT EXECUTED a000d638: e3a03014 mov r3, #20 <== NOT EXECUTED a000d63c: ea000006 b a000d65c <IMFS_evaluate_for_make+0x230> <== NOT EXECUTED
/*
* We must have Write and execute permission on the returned node.
*/
if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) )
a000d640: e1a00004 mov r0, r4 a000d644: e3a01003 mov r1, #3 a000d648: ebfffe68 bl a000cff0 <IMFS_evaluate_permission> a000d64c: e3500000 cmp r0, #0
a000d650: 1a000003 bne a000d664 <IMFS_evaluate_for_make+0x238>
rtems_set_errno_and_return_minus_one( EACCES );
a000d654: eb000e84 bl a001106c <__errno> <== NOT EXECUTED a000d658: e3a0300d mov r3, #13 <== NOT EXECUTED
a000d65c: e5803000 str r3, [r0] a000d660: e3e06000 mvn r6, #0
return result;
}
a000d664: e1a00006 mov r0, r6
a000d668: e28dd03c add sp, sp, #60 ; 0x3c
a000d66c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
a000d058 <IMFS_evaluate_hard_link>:
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
a000d058: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
IMFS_assert( jnode->type == IMFS_HARD_LINK );
/*
* Set the hard link value and the handlers.
*/
node->node_access = jnode->info.hard_link.link_node;
a000d05c: e5903000 ldr r3, [r0] <== NOT EXECUTED
int IMFS_evaluate_hard_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
a000d060: e1a04000 mov r4, r0 <== NOT EXECUTED a000d064: e1a05001 mov r5, r1 <== NOT EXECUTED
IMFS_assert( jnode->type == IMFS_HARD_LINK );
/*
* Set the hard link value and the handlers.
*/
node->node_access = jnode->info.hard_link.link_node;
a000d068: e5933050 ldr r3, [r3, #80] ; 0x50 <== NOT EXECUTED a000d06c: e5803000 str r3, [r0] <== NOT EXECUTED
IMFS_Set_handlers( node );
a000d070: ebffffc1 bl a000cf7c <IMFS_Set_handlers> <== NOT EXECUTED
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
a000d074: e1a00004 mov r0, r4 <== NOT EXECUTED a000d078: e1a01005 mov r1, r5 <== NOT EXECUTED a000d07c: ebffffdb bl a000cff0 <IMFS_evaluate_permission> <== NOT EXECUTED a000d080: e3500000 cmp r0, #0 <== NOT EXECUTED a000d084: 1a000004 bne a000d09c <IMFS_evaluate_hard_link+0x44> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EACCES );
a000d088: eb000ff7 bl a001106c <__errno> <== NOT EXECUTED
a000d08c: e3a0300d mov r3, #13 <== NOT EXECUTED
a000d090: e5803000 str r3, [r0] <== NOT EXECUTED
a000d094: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000d098: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
return result;
a000d09c: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a000d0a0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000d378 <IMFS_evaluate_link>:
*/
int IMFS_evaluate_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
a000d378: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
/*
* Increment and check the link counter.
*/
rtems_filesystem_link_counts ++;
a000d37c: e59f70a4 ldr r7, [pc, #164] ; a000d428 <IMFS_evaluate_link+0xb0><== NOT EXECUTED
*/
int IMFS_evaluate_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
a000d380: e1a04000 mov r4, r0 <== NOT EXECUTED a000d384: e1a05001 mov r5, r1 <== NOT EXECUTED
/*
* Increment and check the link counter.
*/
rtems_filesystem_link_counts ++;
a000d388: e5973000 ldr r3, [r7] <== NOT EXECUTED
{
IMFS_jnode_t *jnode;
int result = 0;
do {
jnode = node->node_access;
a000d38c: e5946000 ldr r6, [r4] <== NOT EXECUTED
/*
* Increment and check the link counter.
*/
rtems_filesystem_link_counts ++;
a000d390: e1d323b0 ldrh r2, [r3, #48] ; 0x30 <== NOT EXECUTED a000d394: e2822001 add r2, r2, #1 <== NOT EXECUTED a000d398: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED a000d39c: e1a02822 lsr r2, r2, #16 <== NOT EXECUTED
if ( rtems_filesystem_link_counts > MAXSYMLINK ) {
a000d3a0: e3520005 cmp r2, #5 <== NOT EXECUTED
/*
* Increment and check the link counter.
*/
rtems_filesystem_link_counts ++;
a000d3a4: e1c323b0 strh r2, [r3, #48] ; 0x30 <== NOT EXECUTED
if ( rtems_filesystem_link_counts > MAXSYMLINK ) {
a000d3a8: 9a000006 bls a000d3c8 <IMFS_evaluate_link+0x50> <== NOT EXECUTED
rtems_filesystem_link_counts = 0;
a000d3ac: e3a02000 mov r2, #0 <== NOT EXECUTED a000d3b0: e1c323b0 strh r2, [r3, #48] ; 0x30 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ELOOP );
a000d3b4: eb000f2c bl a001106c <__errno> <== NOT EXECUTED
a000d3b8: e3a0305c mov r3, #92 ; 0x5c <== NOT EXECUTED
a000d3bc: e5803000 str r3, [r0] <== NOT EXECUTED
a000d3c0: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000d3c4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
/*
* Follow the Link node.
*/
if ( jnode->type == IMFS_HARD_LINK )
a000d3c8: e596304c ldr r3, [r6, #76] ; 0x4c <== NOT EXECUTED a000d3cc: e3530003 cmp r3, #3 <== NOT EXECUTED a000d3d0: 1a000003 bne a000d3e4 <IMFS_evaluate_link+0x6c> <== NOT EXECUTED
result = IMFS_evaluate_hard_link( node, flags );
a000d3d4: e1a00004 mov r0, r4 <== NOT EXECUTED a000d3d8: e1a01005 mov r1, r5 <== NOT EXECUTED a000d3dc: ebffff1d bl a000d058 <IMFS_evaluate_hard_link> <== NOT EXECUTED a000d3e0: ea000004 b a000d3f8 <IMFS_evaluate_link+0x80> <== NOT EXECUTED
else if (jnode->type == IMFS_SYM_LINK )
a000d3e4: e3530004 cmp r3, #4 <== NOT EXECUTED a000d3e8: 1a000004 bne a000d400 <IMFS_evaluate_link+0x88> <== NOT EXECUTED
result = IMFS_evaluate_sym_link( node, flags );
a000d3ec: e1a00004 mov r0, r4 <== NOT EXECUTED a000d3f0: e1a01005 mov r1, r5 <== NOT EXECUTED a000d3f4: ebffffbd bl a000d2f0 <IMFS_evaluate_sym_link> <== NOT EXECUTED
} while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) ||
( jnode->type == IMFS_HARD_LINK ) ) );
a000d3f8: e3500000 cmp r0, #0 <== NOT EXECUTED a000d3fc: 1a000004 bne a000d414 <IMFS_evaluate_link+0x9c> <== NOT EXECUTED
result = IMFS_evaluate_hard_link( node, flags );
else if (jnode->type == IMFS_SYM_LINK )
result = IMFS_evaluate_sym_link( node, flags );
} while ( ( result == 0 ) && ( ( jnode->type == IMFS_SYM_LINK ) ||
a000d400: e596304c ldr r3, [r6, #76] ; 0x4c <== NOT EXECUTED a000d404: e2433003 sub r3, r3, #3 <== NOT EXECUTED a000d408: e3530001 cmp r3, #1 <== NOT EXECUTED a000d40c: 9affffdd bls a000d388 <IMFS_evaluate_link+0x10> <== NOT EXECUTED a000d410: e3a00000 mov r0, #0 <== NOT EXECUTED
/*
* Clear link counter.
*/
rtems_filesystem_link_counts = 0;
a000d414: e59f300c ldr r3, [pc, #12] ; a000d428 <IMFS_evaluate_link+0xb0><== NOT EXECUTED a000d418: e3a02000 mov r2, #0 <== NOT EXECUTED a000d41c: e5933000 ldr r3, [r3] <== NOT EXECUTED a000d420: e1c323b0 strh r2, [r3, #48] ; 0x30 <== NOT EXECUTED
return result;
}
a000d424: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000cff0 <IMFS_evaluate_permission>:
uid_t st_uid;
gid_t st_gid;
IMFS_jnode_t *jnode;
int flags_to_test;
if ( !rtems_libio_is_valid_perms( flags ) )
a000cff0: e3d13007 bics r3, r1, #7
*/
int IMFS_evaluate_permission(
rtems_filesystem_location_info_t *node,
int flags
)
{
a000cff4: e92d4070 push {r4, r5, r6, lr}
a000cff8: e1a04001 mov r4, r1
uid_t st_uid;
gid_t st_gid;
IMFS_jnode_t *jnode;
int flags_to_test;
if ( !rtems_libio_is_valid_perms( flags ) )
a000cffc: 0a000004 beq a000d014 <IMFS_evaluate_permission+0x24>
rtems_set_errno_and_return_minus_one( EPERM );
a000d000: eb001019 bl a001106c <__errno> <== NOT EXECUTED
a000d004: e3a03001 mov r3, #1 <== NOT EXECUTED
a000d008: e5803000 str r3, [r0] <== NOT EXECUTED
a000d00c: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000d010: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
jnode = node->node_access;
a000d014: e5905000 ldr r5, [r0]
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
a000d018: eb0002df bl a000db9c <geteuid> a000d01c: e1a06000 mov r6, r0
st_gid = getegid();
a000d020: eb0002d8 bl a000db88 <getegid>
* Check if I am owner or a group member or someone else.
*/
flags_to_test = flags;
if ( st_uid == jnode->st_uid )
a000d024: e1d533bc ldrh r3, [r5, #60] ; 0x3c a000d028: e1530006 cmp r3, r6
flags_to_test <<= 6;
a000d02c: 01a04304 lsleq r4, r4, #6
* Check if I am owner or a group member or someone else.
*/
flags_to_test = flags;
if ( st_uid == jnode->st_uid )
a000d030: 0a000002 beq a000d040 <IMFS_evaluate_permission+0x50>
flags_to_test <<= 6;
else if ( st_gid == jnode->st_gid )
a000d034: e1d533be ldrh r3, [r5, #62] ; 0x3e <== NOT EXECUTED a000d038: e1530000 cmp r3, r0 <== NOT EXECUTED
flags_to_test <<= 3;
a000d03c: 01a04184 lsleq r4, r4, #3 <== NOT EXECUTED
/*
* If all of the flags are set we have permission
* to do this.
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
a000d040: e5950030 ldr r0, [r5, #48] ; 0x30 a000d044: e0040000 and r0, r4, r0
gid_t st_gid;
IMFS_jnode_t *jnode;
int flags_to_test;
if ( !rtems_libio_is_valid_perms( flags ) )
rtems_set_errno_and_return_minus_one( EPERM );
a000d048: e1500004 cmp r0, r4 a000d04c: 13a00000 movne r0, #0 a000d050: 03a00001 moveq r0, #1
*/
if ( ( flags_to_test & jnode->st_mode) == flags_to_test )
return 1;
return 0;
}
a000d054: e8bd8070 pop {r4, r5, r6, pc}
a000d2f0 <IMFS_evaluate_sym_link>:
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
a000d2f0: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
IMFS_jnode_t *jnode = node->node_access;
a000d2f4: e5906000 ldr r6, [r0] <== NOT EXECUTED
int IMFS_evaluate_sym_link(
rtems_filesystem_location_info_t *node, /* IN/OUT */
int flags /* IN */
)
{
a000d2f8: e1a04000 mov r4, r0 <== NOT EXECUTED a000d2fc: e1a05001 mov r5, r1 <== NOT EXECUTED
/*
* Move the node_access to either the symbolic links parent or
* root depending on the symbolic links path.
*/
node->node_access = jnode->Parent;
a000d300: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED
rtems_filesystem_get_sym_start_loc(
a000d304: e1a0100d mov r1, sp <== NOT EXECUTED a000d308: e1a02004 mov r2, r4 <== NOT EXECUTED
/*
* Move the node_access to either the symbolic links parent or
* root depending on the symbolic links path.
*/
node->node_access = jnode->Parent;
a000d30c: e5803000 str r3, [r0] <== NOT EXECUTED
rtems_filesystem_get_sym_start_loc(
a000d310: e5960050 ldr r0, [r6, #80] ; 0x50 <== NOT EXECUTED a000d314: eb00034d bl a000e050 <rtems_filesystem_get_sym_start_loc> <== NOT EXECUTED
);
/*
* Use eval path to evaluate the path of the symbolic link.
*/
result = IMFS_eval_path(
a000d318: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000d31c: e5966050 ldr r6, [r6, #80] ; 0x50 <== NOT EXECUTED a000d320: e0866003 add r6, r6, r3 <== NOT EXECUTED a000d324: e1a00006 mov r0, r6 <== NOT EXECUTED a000d328: eb001339 bl a0012014 <strlen> <== NOT EXECUTED a000d32c: e1a02005 mov r2, r5 <== NOT EXECUTED a000d330: e1a01000 mov r1, r0 <== NOT EXECUTED a000d334: e1a03004 mov r3, r4 <== NOT EXECUTED a000d338: e1a00006 mov r0, r6 <== NOT EXECUTED a000d33c: ebffff58 bl a000d0a4 <IMFS_eval_path> <== NOT EXECUTED a000d340: e1a06000 mov r6, r0 <== NOT EXECUTED
strlen( &jnode->info.sym_link.name[i] ),
flags,
node
);
IMFS_Set_handlers( node );
a000d344: e1a00004 mov r0, r4 <== NOT EXECUTED a000d348: ebffff0b bl a000cf7c <IMFS_Set_handlers> <== NOT EXECUTED
/*
* Verify we have the correct permissions for this node.
*/
if ( !IMFS_evaluate_permission( node, flags ) )
a000d34c: e1a00004 mov r0, r4 <== NOT EXECUTED a000d350: e1a01005 mov r1, r5 <== NOT EXECUTED a000d354: ebffff25 bl a000cff0 <IMFS_evaluate_permission> <== NOT EXECUTED a000d358: e3500000 cmp r0, #0 <== NOT EXECUTED a000d35c: 1a000003 bne a000d370 <IMFS_evaluate_sym_link+0x80> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EACCES );
a000d360: eb000f41 bl a001106c <__errno> <== NOT EXECUTED a000d364: e3a0300d mov r3, #13 <== NOT EXECUTED a000d368: e5803000 str r3, [r0] <== NOT EXECUTED a000d36c: e3e06000 mvn r6, #0 <== NOT EXECUTED
return result;
}
a000d370: e1a00006 mov r0, r6 <== NOT EXECUTED
a000d374: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a00106d4 <IMFS_fchmod>:
int IMFS_fchmod(
rtems_filesystem_location_info_t *loc,
mode_t mode
)
{
a00106d4: e92d4073 push {r0, r1, r4, r5, r6, lr} <== NOT EXECUTED
IMFS_jnode_t *jnode;
#if defined(RTEMS_POSIX_API)
uid_t st_uid;
#endif
jnode = loc->node_access;
a00106d8: e5904000 ldr r4, [r0] <== NOT EXECUTED
int IMFS_fchmod(
rtems_filesystem_location_info_t *loc,
mode_t mode
)
{
a00106dc: e1a06001 mov r6, r1 <== NOT EXECUTED
/*
* Verify I am the owner of the node or the super user.
*/
#if defined(RTEMS_POSIX_API)
st_uid = geteuid();
a00106e0: ebfff52d bl a000db9c <geteuid> <== NOT EXECUTED
if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )
a00106e4: e1d453bc ldrh r5, [r4, #60] ; 0x3c <== NOT EXECUTED a00106e8: e3500000 cmp r0, #0 <== NOT EXECUTED a00106ec: 11550000 cmpne r5, r0 <== NOT EXECUTED a00106f0: 03a05000 moveq r5, #0 <== NOT EXECUTED a00106f4: 13a05001 movne r5, #1 <== NOT EXECUTED a00106f8: 0a000004 beq a0010710 <IMFS_fchmod+0x3c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EPERM );
a00106fc: eb00025a bl a001106c <__errno> <== NOT EXECUTED a0010700: e3a03001 mov r3, #1 <== NOT EXECUTED a0010704: e5803000 str r3, [r0] <== NOT EXECUTED a0010708: e3e00000 mvn r0, #0 <== NOT EXECUTED a001070c: ea00000b b a0010740 <IMFS_fchmod+0x6c> <== NOT EXECUTED
/*
* Change only the RWX permissions on the jnode to mode.
*/
jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
a0010710: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED
jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
a0010714: e1a06a06 lsl r6, r6, #20 <== NOT EXECUTED
IMFS_update_ctime( jnode );
a0010718: e1a0000d mov r0, sp <== NOT EXECUTED
/*
* Change only the RWX permissions on the jnode to mode.
*/
jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
a001071c: e3c33eff bic r3, r3, #4080 ; 0xff0 <== NOT EXECUTED a0010720: e3c3300f bic r3, r3, #15 <== NOT EXECUTED
jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
a0010724: e1833a26 orr r3, r3, r6, lsr #20 <== NOT EXECUTED a0010728: e5843030 str r3, [r4, #48] ; 0x30 <== NOT EXECUTED
IMFS_update_ctime( jnode );
a001072c: e1a01005 mov r1, r5 <== NOT EXECUTED a0010730: ebffd6c3 bl a0006244 <gettimeofday> <== NOT EXECUTED a0010734: e59d3000 ldr r3, [sp] <== NOT EXECUTED
return 0;
a0010738: e1a00005 mov r0, r5 <== NOT EXECUTED
*/
jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
IMFS_update_ctime( jnode );
a001073c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED
return 0;
}
a0010740: e8bd807c pop {r2, r3, r4, r5, r6, pc} <== NOT EXECUTED
a0010744 <IMFS_fdatasync>:
int IMFS_fdatasync(
rtems_libio_t *iop
)
{
return 0;
}
a0010744: e3a00000 mov r0, #0 <== NOT EXECUTED a0010748: e12fff1e bx lr <== NOT EXECUTED
a0006e28 <IMFS_fifo_close>:
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
a0006e28: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
int err = 0; IMFS_jnode_t *jnode = iop->pathinfo.node_access;
a0006e2c: e5905018 ldr r5, [r0, #24] <== NOT EXECUTED
}
int IMFS_fifo_close(
rtems_libio_t *iop
)
{
a0006e30: e1a04000 mov r4, r0 <== NOT EXECUTED
int err = 0;
IMFS_jnode_t *jnode = iop->pathinfo.node_access;
pipe_release(&JNODE2PIPE(jnode), iop);
a0006e34: e1a01004 mov r1, r4 <== NOT EXECUTED a0006e38: e2850050 add r0, r5, #80 ; 0x50 <== NOT EXECUTED a0006e3c: eb0022d5 bl a000f998 <pipe_release> <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_OPEN;
a0006e40: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED
IMFS_check_node_remove(jnode);
a0006e44: e1a00005 mov r0, r5 <== NOT EXECUTED
int err = 0;
IMFS_jnode_t *jnode = iop->pathinfo.node_access;
pipe_release(&JNODE2PIPE(jnode), iop);
iop->flags &= ~LIBIO_FLAGS_OPEN;
a0006e48: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED a0006e4c: e5843014 str r3, [r4, #20] <== NOT EXECUTED
IMFS_check_node_remove(jnode);
a0006e50: eb00016e bl a0007410 <IMFS_check_node_remove> <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
}
a0006e54: e3a00000 mov r0, #0 <== NOT EXECUTED
a0006e58: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0006d04 <IMFS_fifo_ioctl>:
void *buffer
)
{
int err;
if (command == FIONBIO) {
a0006d04: e59fc06c ldr ip, [pc, #108] ; a0006d78 <IMFS_fifo_ioctl+0x74><== NOT EXECUTED
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
a0006d08: e92d4010 push {r4, lr} <== NOT EXECUTED
int err;
if (command == FIONBIO) {
a0006d0c: e151000c cmp r1, ip <== NOT EXECUTED
int IMFS_fifo_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
a0006d10: e1a03000 mov r3, r0 <== NOT EXECUTED
int err;
if (command == FIONBIO) {
a0006d14: 1a00000a bne a0006d44 <IMFS_fifo_ioctl+0x40> <== NOT EXECUTED
if (buffer == NULL)
a0006d18: e3520000 cmp r2, #0 <== NOT EXECUTED a0006d1c: 0a00000e beq a0006d5c <IMFS_fifo_ioctl+0x58> <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
a0006d20: e5924000 ldr r4, [r2] <== NOT EXECUTED a0006d24: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED a0006d28: e3540000 cmp r4, #0 <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_NO_DELAY;
a0006d2c: 13822001 orrne r2, r2, #1 <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
a0006d30: 03c22001 biceq r2, r2, #1 <== NOT EXECUTED
if (command == FIONBIO) {
if (buffer == NULL)
err = -EFAULT;
else {
if (*(int *)buffer)
iop->flags |= LIBIO_FLAGS_NO_DELAY;
a0006d34: 15832014 strne r2, [r3, #20] <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
return 0;
a0006d38: 13a04000 movne r4, #0 <== NOT EXECUTED
err = -EFAULT;
else {
if (*(int *)buffer)
iop->flags |= LIBIO_FLAGS_NO_DELAY;
else
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
a0006d3c: 05832014 streq r2, [r3, #20] <== NOT EXECUTED a0006d40: ea00000a b a0006d70 <IMFS_fifo_ioctl+0x6c> <== NOT EXECUTED
return 0;
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
a0006d44: e5930018 ldr r0, [r3, #24] <== NOT EXECUTED a0006d48: e5900050 ldr r0, [r0, #80] ; 0x50 <== NOT EXECUTED a0006d4c: eb002509 bl a0010178 <pipe_ioctl> <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
a0006d50: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0006d54: aa000005 bge a0006d70 <IMFS_fifo_ioctl+0x6c> <== NOT EXECUTED a0006d58: ea000000 b a0006d60 <IMFS_fifo_ioctl+0x5c> <== NOT EXECUTED
{
int err;
if (command == FIONBIO) {
if (buffer == NULL)
err = -EFAULT;
a0006d5c: e3e0400d mvn r4, #13 <== NOT EXECUTED
}
}
else
err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop);
IMFS_FIFO_RETURN(err);
a0006d60: eb00313f bl a0013264 <__errno> <== NOT EXECUTED a0006d64: e2644000 rsb r4, r4, #0 <== NOT EXECUTED a0006d68: e5804000 str r4, [r0] <== NOT EXECUTED a0006d6c: e3e04000 mvn r4, #0 <== NOT EXECUTED
}
a0006d70: e1a00004 mov r0, r4 <== NOT EXECUTED
a0006d74: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0006cb4 <IMFS_fifo_lseek>:
rtems_off64_t IMFS_fifo_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
a0006cb4: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
a0006cb8: e590c018 ldr ip, [r0, #24] <== NOT EXECUTED a0006cbc: e58d0000 str r0, [sp] <== NOT EXECUTED a0006cc0: e59c0050 ldr r0, [ip, #80] ; 0x50 <== NOT EXECUTED a0006cc4: eb002546 bl a00101e4 <pipe_lseek> <== NOT EXECUTED a0006cc8: e1a02000 mov r2, r0 <== NOT EXECUTED a0006ccc: e1a03fc2 asr r3, r2, #31 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
a0006cd0: e3530000 cmp r3, #0 <== NOT EXECUTED
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop);
a0006cd4: e1a04000 mov r4, r0 <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
a0006cd8: a1a04003 movge r4, r3 <== NOT EXECUTED a0006cdc: a1a03002 movge r3, r2 <== NOT EXECUTED a0006ce0: aa000004 bge a0006cf8 <IMFS_fifo_lseek+0x44> <== NOT EXECUTED a0006ce4: eb00315e bl a0013264 <__errno> <== NOT EXECUTED a0006ce8: e2644000 rsb r4, r4, #0 <== NOT EXECUTED a0006cec: e5804000 str r4, [r0] <== NOT EXECUTED a0006cf0: e3e03000 mvn r3, #0 <== NOT EXECUTED a0006cf4: e3e04000 mvn r4, #0 <== NOT EXECUTED
}
a0006cf8: e1a00003 mov r0, r3 <== NOT EXECUTED
a0006cfc: e1a01004 mov r1, r4 <== NOT EXECUTED
a0006d00: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a0006e5c <IMFS_fifo_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
a0006e5c: e1a01000 mov r1, r0 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->pathinfo.node_access;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
a0006e60: e5900018 ldr r0, [r0, #24] <== NOT EXECUTED
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
a0006e64: e92d4010 push {r4, lr} <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->pathinfo.node_access;
int err = fifo_open(&JNODE2PIPE(jnode), iop);
a0006e68: e2800050 add r0, r0, #80 ; 0x50 <== NOT EXECUTED a0006e6c: eb0022f5 bl a000fa48 <fifo_open> <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
a0006e70: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0006e74: aa000003 bge a0006e88 <IMFS_fifo_open+0x2c> <== NOT EXECUTED a0006e78: eb0030f9 bl a0013264 <__errno> <== NOT EXECUTED a0006e7c: e2644000 rsb r4, r4, #0 <== NOT EXECUTED a0006e80: e5804000 str r4, [r0] <== NOT EXECUTED a0006e84: e3e04000 mvn r4, #0 <== NOT EXECUTED
}
a0006e88: e1a00004 mov r0, r4 <== NOT EXECUTED
a0006e8c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0006dd4 <IMFS_fifo_read>:
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
a0006dd4: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->pathinfo.node_access;
a0006dd8: e5904018 ldr r4, [r0, #24] <== NOT EXECUTED
ssize_t IMFS_fifo_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
a0006ddc: e1a03000 mov r3, r0 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->pathinfo.node_access;
int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop);
a0006de0: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a0006de4: eb002416 bl a000fe44 <pipe_read> <== NOT EXECUTED
if (err > 0)
a0006de8: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0006dec: da000005 ble a0006e08 <IMFS_fifo_read+0x34> <== NOT EXECUTED
IMFS_update_atime(jnode);
a0006df0: e1a0000d mov r0, sp <== NOT EXECUTED a0006df4: e3a01000 mov r1, #0 <== NOT EXECUTED a0006df8: eb0003e0 bl a0007d80 <gettimeofday> <== NOT EXECUTED a0006dfc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0006e00: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED a0006e04: ea000005 b a0006e20 <IMFS_fifo_read+0x4c> <== NOT EXECUTED
IMFS_FIFO_RETURN(err);
a0006e08: 0a000004 beq a0006e20 <IMFS_fifo_read+0x4c> <== NOT EXECUTED a0006e0c: eb003114 bl a0013264 <__errno> <== NOT EXECUTED a0006e10: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a0006e14: e5805000 str r5, [r0] <== NOT EXECUTED a0006e18: e3e00000 mvn r0, #0 <== NOT EXECUTED a0006e1c: ea000000 b a0006e24 <IMFS_fifo_read+0x50> <== NOT EXECUTED a0006e20: e1a00005 mov r0, r5 <== NOT EXECUTED
}
a0006e24: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED
a0006d7c <IMFS_fifo_write>:
ssize_t IMFS_fifo_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
a0006d7c: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->pathinfo.node_access;
a0006d80: e5904018 ldr r4, [r0, #24] <== NOT EXECUTED
ssize_t IMFS_fifo_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
a0006d84: e1a03000 mov r3, r0 <== NOT EXECUTED
IMFS_jnode_t *jnode = iop->pathinfo.node_access;
int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);
a0006d88: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a0006d8c: eb00248c bl a000ffc4 <pipe_write> <== NOT EXECUTED
if (err > 0) {
a0006d90: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0006d94: da000006 ble a0006db4 <IMFS_fifo_write+0x38> <== NOT EXECUTED
IMFS_mtime_ctime_update(jnode);
a0006d98: e1a0000d mov r0, sp <== NOT EXECUTED a0006d9c: e3a01000 mov r1, #0 <== NOT EXECUTED a0006da0: eb0003f6 bl a0007d80 <gettimeofday> <== NOT EXECUTED a0006da4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0006da8: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED a0006dac: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED a0006db0: ea000005 b a0006dcc <IMFS_fifo_write+0x50> <== NOT EXECUTED
}
IMFS_FIFO_RETURN(err);
a0006db4: 0a000004 beq a0006dcc <IMFS_fifo_write+0x50> <== NOT EXECUTED a0006db8: eb003129 bl a0013264 <__errno> <== NOT EXECUTED a0006dbc: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a0006dc0: e5805000 str r5, [r0] <== NOT EXECUTED a0006dc4: e3e00000 mvn r0, #0 <== NOT EXECUTED a0006dc8: ea000000 b a0006dd0 <IMFS_fifo_write+0x54> <== NOT EXECUTED a0006dcc: e1a00005 mov r0, r5 <== NOT EXECUTED
}
a0006dd0: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED
a000d730 <IMFS_find_match_in_dir>:
IMFS_jnode_t *IMFS_find_match_in_dir(
IMFS_jnode_t *directory,
char *name
)
{
a000d730: e92d4070 push {r4, r5, r6, lr}
a000d734: e1a04000 mov r4, r0
a000d738: e1a06001 mov r6, r1
/*
* Check for "." and ".."
*/
if ( !strcmp( name, dotname ) )
a000d73c: e1a00001 mov r0, r1 a000d740: e59f1060 ldr r1, [pc, #96] ; a000d7a8 <IMFS_find_match_in_dir+0x78> a000d744: eb001156 bl a0011ca4 <strcmp> a000d748: e3500000 cmp r0, #0
a000d74c: 0a000013 beq a000d7a0 <IMFS_find_match_in_dir+0x70>
return directory;
if ( !strcmp( name, dotdotname ) )
a000d750: e1a00006 mov r0, r6 a000d754: e59f1050 ldr r1, [pc, #80] ; a000d7ac <IMFS_find_match_in_dir+0x7c> a000d758: eb001151 bl a0011ca4 <strcmp> a000d75c: e3500000 cmp r0, #0
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
a000d760: 15945050 ldrne r5, [r4, #80] ; 0x50
if ( !strcmp( name, dotname ) )
return directory;
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
a000d764: 05944008 ldreq r4, [r4, #8]
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(
Chain_Control *the_chain,
const Chain_Node *the_node
)
{
return (the_node == _Chain_Tail(the_chain));
a000d768: 12844054 addne r4, r4, #84 ; 0x54
*/
if ( !strcmp( name, dotname ) )
return directory;
if ( !strcmp( name, dotdotname ) )
a000d76c: 0a00000b beq a000d7a0 <IMFS_find_match_in_dir+0x70>
a000d770: ea000005 b a000d78c <IMFS_find_match_in_dir+0x5c>
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
if ( !strcmp( name, the_jnode->name ) )
a000d774: e1a00006 mov r0, r6 a000d778: e285100c add r1, r5, #12 a000d77c: eb001148 bl a0011ca4 <strcmp> a000d780: e3500000 cmp r0, #0
a000d784: 0a000004 beq a000d79c <IMFS_find_match_in_dir+0x6c>
the_chain = &directory->info.directory.Entries;
for ( the_node = rtems_chain_first( the_chain );
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
a000d788: e5955000 ldr r5, [r5] <== NOT EXECUTED
if ( !strcmp( name, dotdotname ) )
return directory->Parent;
the_chain = &directory->info.directory.Entries;
for ( the_node = rtems_chain_first( the_chain );
a000d78c: e1550004 cmp r5, r4
a000d790: 1afffff7 bne a000d774 <IMFS_find_match_in_dir+0x44>
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
a000d794: e3a04000 mov r4, #0 a000d798: ea000000 b a000d7a0 <IMFS_find_match_in_dir+0x70>
for ( the_node = rtems_chain_first( the_chain );
!rtems_chain_is_tail( the_chain, the_node );
the_node = the_node->next ) {
the_jnode = (IMFS_jnode_t *) the_node;
a000d79c: e1a04005 mov r4, r5
if ( !strcmp( name, the_jnode->name ) )
return the_jnode;
}
return 0;
}
a000d7a0: e1a00004 mov r0, r4
a000d7a4: e8bd8070 pop {r4, r5, r6, pc}
a000d674 <IMFS_fsunmount>:
((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
int IMFS_fsunmount(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
a000d674: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
/*
* Traverse tree that starts at the mt_fs_root and deallocate memory
* associated memory space
*/
jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access;
a000d678: e1a0c000 mov ip, r0 <== NOT EXECUTED a000d67c: e5bc401c ldr r4, [ip, #28]! <== NOT EXECUTED
((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
int IMFS_fsunmount(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
a000d680: e24dd014 sub sp, sp, #20 <== NOT EXECUTED
* Traverse tree that starts at the mt_fs_root and deallocate memory
* associated memory space
*/
jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access;
loc = temp_mt_entry->mt_fs_root;
a000d684: e1a0e00d mov lr, sp <== NOT EXECUTED
((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
int IMFS_fsunmount(
rtems_filesystem_mount_table_entry_t *temp_mt_entry
)
{
a000d688: e1a05000 mov r5, r0 <== NOT EXECUTED
* Traverse tree that starts at the mt_fs_root and deallocate memory
* associated memory space
*/
jnode = (IMFS_jnode_t *)temp_mt_entry->mt_fs_root.node_access;
loc = temp_mt_entry->mt_fs_root;
a000d68c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000d690: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a000d694: e59c3000 ldr r3, [ip] <== NOT EXECUTED
a000d698: e58e3000 str r3, [lr] <== NOT EXECUTED
/*
* Set this to null to indicate that it is being unmounted.
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
a000d69c: e3a03000 mov r3, #0 <== NOT EXECUTED a000d6a0: e585301c str r3, [r5, #28] <== NOT EXECUTED
do {
next = jnode->Parent;
loc.node_access = (void *)jnode;
IMFS_Set_handlers( &loc );
a000d6a4: e1a0500d mov r5, sp <== NOT EXECUTED a000d6a8: e1a0000d mov r0, sp <== NOT EXECUTED
*/
temp_mt_entry->mt_fs_root.node_access = NULL;
do {
next = jnode->Parent;
a000d6ac: e5946008 ldr r6, [r4, #8] <== NOT EXECUTED
loc.node_access = (void *)jnode;
a000d6b0: e58d4000 str r4, [sp] <== NOT EXECUTED
IMFS_Set_handlers( &loc );
a000d6b4: ebfffe30 bl a000cf7c <IMFS_Set_handlers> <== NOT EXECUTED
if ( jnode->type != IMFS_DIRECTORY ) {
a000d6b8: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a000d6bc: e3530001 cmp r3, #1 <== NOT EXECUTED a000d6c0: 1a000003 bne a000d6d4 <IMFS_fsunmount+0x60> <== NOT EXECUTED
result = IMFS_unlink( NULL, &loc );
if (result != 0)
return -1;
jnode = next;
} else if ( jnode_has_no_children( jnode ) ) {
a000d6c4: e5942050 ldr r2, [r4, #80] ; 0x50 <== 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 );
a000d6c8: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED a000d6cc: e1520003 cmp r2, r3 <== NOT EXECUTED a000d6d0: 1a000005 bne a000d6ec <IMFS_fsunmount+0x78> <== NOT EXECUTED
result = IMFS_unlink( NULL, &loc );
a000d6d4: e3a00000 mov r0, #0 <== NOT EXECUTED a000d6d8: e1a0100d mov r1, sp <== NOT EXECUTED a000d6dc: ebffe174 bl a0005cb4 <IMFS_unlink> <== NOT EXECUTED
if (result != 0)
a000d6e0: e3500000 cmp r0, #0 <== NOT EXECUTED a000d6e4: 1a00000c bne a000d71c <IMFS_fsunmount+0xa8> <== NOT EXECUTED
return -1;
jnode = next;
a000d6e8: e1a04006 mov r4, r6 <== NOT EXECUTED
}
if ( jnode != NULL ) {
a000d6ec: e3540000 cmp r4, #0 <== NOT EXECUTED a000d6f0: 0a00000b beq a000d724 <IMFS_fsunmount+0xb0> <== NOT EXECUTED
if ( jnode->type == IMFS_DIRECTORY ) {
a000d6f4: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a000d6f8: e3530001 cmp r3, #1 <== NOT EXECUTED a000d6fc: 1affffe9 bne a000d6a8 <IMFS_fsunmount+0x34> <== NOT EXECUTED
}
}
} while (jnode != NULL);
return 0;
}
a000d700: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000d704: e2842054 add r2, r4, #84 ; 0x54 <== NOT EXECUTED
return -1;
jnode = next;
}
if ( jnode != NULL ) {
if ( jnode->type == IMFS_DIRECTORY ) {
if ( jnode_has_children( jnode ) )
a000d708: e1530002 cmp r3, r2 <== NOT EXECUTED a000d70c: 0affffe5 beq a000d6a8 <IMFS_fsunmount+0x34> <== NOT EXECUTED
jnode = jnode_get_first_child( jnode );
}
}
} while (jnode != NULL);
a000d710: e2534000 subs r4, r3, #0 <== NOT EXECUTED a000d714: 1affffe3 bne a000d6a8 <IMFS_fsunmount+0x34> <== NOT EXECUTED a000d718: ea000001 b a000d724 <IMFS_fsunmount+0xb0> <== NOT EXECUTED
return -1;
jnode = next;
} else if ( jnode_has_no_children( jnode ) ) {
result = IMFS_unlink( NULL, &loc );
if (result != 0)
return -1;
a000d71c: e3e00000 mvn r0, #0 <== NOT EXECUTED a000d720: ea000000 b a000d728 <IMFS_fsunmount+0xb4> <== NOT EXECUTED
jnode = jnode_get_first_child( jnode );
}
}
} while (jnode != NULL);
return 0;
a000d724: e1a00004 mov r0, r4 <== NOT EXECUTED
}
a000d728: e28dd014 add sp, sp, #20 <== NOT EXECUTED
a000d72c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000d7b0 <IMFS_get_token>:
const char *path,
int pathlen,
char *token,
int *token_len
)
{
a000d7b0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
a000d7b4: e1a05001 mov r5, r1
a000d7b8: e1a04002 mov r4, r2
a000d7bc: e1a0a003 mov sl, r3
register char c;
/*
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
a000d7c0: e5d07000 ldrb r7, [r0] a000d7c4: e1a08000 mov r8, r0
int pathlen,
char *token,
int *token_len
)
{
register int i = 0;
a000d7c8: e3a06000 mov r6, #0
/*
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
a000d7cc: ea000004 b a000d7e4 <IMFS_get_token+0x34>
token[i] = c;
if ( i == IMFS_NAME_MAX )
a000d7d0: e3560020 cmp r6, #32
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
token[i] = c;
a000d7d4: e7c47006 strb r7, [r4, r6]
if ( i == IMFS_NAME_MAX )
a000d7d8: 0a000025 beq a000d874 <IMFS_get_token+0xc4>
return IMFS_INVALID_TOKEN;
if ( !IMFS_is_valid_name_char(c) )
type = IMFS_INVALID_TOKEN;
c = path [++i];
a000d7dc: e5f87001 ldrb r7, [r8, #1]! a000d7e0: e2866001 add r6, r6, #1
/*
* Copy a name into token. (Remember NULL is a token.)
*/
c = path[i];
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
a000d7e4: e1a00007 mov r0, r7 a000d7e8: ebffe5f9 bl a0006fd4 <rtems_filesystem_is_separator> a000d7ec: e3500000 cmp r0, #0
a000d7f0: 1a000001 bne a000d7fc <IMFS_get_token+0x4c>
a000d7f4: e1560005 cmp r6, r5
a000d7f8: bafffff4 blt a000d7d0 <IMFS_get_token+0x20>
/*
* Copy a seperator into token.
*/
if ( i == 0 ) {
a000d7fc: e3560000 cmp r6, #0
a000d800: 1a000005 bne a000d81c <IMFS_get_token+0x6c>
token[i] = c;
if ( (token[i] != '\0') && pathlen ) {
a000d804: e3570000 cmp r7, #0 a000d808: 13550000 cmpne r5, #0
i++;
type = IMFS_CURRENT_DIR;
a000d80c: 13a06001 movne r6, #1
/*
* Copy a seperator into token.
*/
if ( i == 0 ) {
token[i] = c;
a000d810: e5c47000 strb r7, [r4]
if ( (token[i] != '\0') && pathlen ) {
i++;
a000d814: e1a00006 mov r0, r6 a000d818: ea000005 b a000d834 <IMFS_get_token+0x84>
type = IMFS_CURRENT_DIR;
} else {
type = IMFS_NO_MORE_PATH;
}
} else if (token[ i-1 ] != '\0') {
a000d81c: e0843006 add r3, r4, r6 a000d820: e5533001 ldrb r3, [r3, #-1]
char *token,
int *token_len
)
{
register int i = 0;
IMFS_token_types type = IMFS_NAME;
a000d824: e3a00003 mov r0, #3
i++;
type = IMFS_CURRENT_DIR;
} else {
type = IMFS_NO_MORE_PATH;
}
} else if (token[ i-1 ] != '\0') {
a000d828: e3530000 cmp r3, #0
token[i] = '\0';
a000d82c: 13a03000 movne r3, #0 a000d830: 17c43006 strbne r3, [r4, r6]
/*
* If we copied something that was not a seperator see if
* it was a special name.
*/
if ( type == IMFS_NAME ) {
a000d834: e3500003 cmp r0, #3
/*
* Set token_len to the number of characters copied.
*/
*token_len = i;
a000d838: e58a6000 str r6, [sl]
/*
* If we copied something that was not a seperator see if
* it was a special name.
*/
if ( type == IMFS_NAME ) {
a000d83c: 1a00000e bne a000d87c <IMFS_get_token+0xcc>
if ( strcmp( token, "..") == 0 )
a000d840: e1a00004 mov r0, r4 a000d844: e59f1034 ldr r1, [pc, #52] ; a000d880 <IMFS_get_token+0xd0> a000d848: eb001115 bl a0011ca4 <strcmp> a000d84c: e3500000 cmp r0, #0
type = IMFS_UP_DIR;
a000d850: 03a00002 moveq r0, #2
* If we copied something that was not a seperator see if
* it was a special name.
*/
if ( type == IMFS_NAME ) {
if ( strcmp( token, "..") == 0 )
a000d854: 0a000008 beq a000d87c <IMFS_get_token+0xcc>
type = IMFS_UP_DIR;
else if ( strcmp( token, "." ) == 0 )
a000d858: e1a00004 mov r0, r4 a000d85c: e59f1020 ldr r1, [pc, #32] ; a000d884 <IMFS_get_token+0xd4> a000d860: eb00110f bl a0011ca4 <strcmp>
type = IMFS_CURRENT_DIR;
a000d864: e3500000 cmp r0, #0
a000d868: 13a00003 movne r0, #3
a000d86c: 03a00001 moveq r0, #1
a000d870: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
while ( (!IMFS_is_separator(c)) && (i < pathlen) && (i <= IMFS_NAME_MAX) ) {
token[i] = c;
if ( i == IMFS_NAME_MAX )
return IMFS_INVALID_TOKEN;
a000d874: e3a00004 mov r0, #4 <== NOT EXECUTED
a000d878: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
else if ( strcmp( token, "." ) == 0 )
type = IMFS_CURRENT_DIR;
}
return type;
}
a000d87c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
a00058f8 <IMFS_initialize_support>:
const rtems_filesystem_operations_table *op_table,
const rtems_filesystem_file_handlers_r *memfile_handlers,
const rtems_filesystem_file_handlers_r *directory_handlers,
const rtems_filesystem_file_handlers_r *fifo_handlers
)
{
a00058f8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
a00058fc: e1a07003 mov r7, r3
IMFS_jnode_t *jnode;
/*
* determine/check value for imfs_memfile_bytes_per_block
*/
IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,
a0005900: e59f30d0 ldr r3, [pc, #208] ; a00059d8 <IMFS_initialize_support+0xe0>
const rtems_filesystem_operations_table *op_table,
const rtems_filesystem_file_handlers_r *memfile_handlers,
const rtems_filesystem_file_handlers_r *directory_handlers,
const rtems_filesystem_file_handlers_r *fifo_handlers
)
{
a0005904: e1a0a001 mov sl, r1 a0005908: e1a08002 mov r8, r2
IMFS_jnode_t *jnode;
/*
* determine/check value for imfs_memfile_bytes_per_block
*/
IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,
a000590c: e5933000 ldr r3, [r3]
const rtems_filesystem_operations_table *op_table,
const rtems_filesystem_file_handlers_r *memfile_handlers,
const rtems_filesystem_file_handlers_r *directory_handlers,
const rtems_filesystem_file_handlers_r *fifo_handlers
)
{
a0005910: e1a04000 mov r4, r0
IMFS_jnode_t *jnode;
/*
* determine/check value for imfs_memfile_bytes_per_block
*/
IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block,
a0005914: e3a01006 mov r1, #6
int bit_mask;
/*
* check, whether requested bytes per block is valid
*/
for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
a0005918: e3a02010 mov r2, #16
if (bit_mask == requested_bytes_per_block) {
a000591c: e1520003 cmp r2, r3
a0005920: 0a000004 beq a0005938 <IMFS_initialize_support+0x40>
is_valid = true;
break;
}
if(bit_mask > requested_bytes_per_block)
a0005924: ca000002 bgt a0005934 <IMFS_initialize_support+0x3c>
int bit_mask;
/*
* check, whether requested bytes per block is valid
*/
for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
a0005928: e2511001 subs r1, r1, #1 a000592c: e1a02082 lsl r2, r2, #1
a0005930: 1afffff9 bne a000591c <IMFS_initialize_support+0x24>
if(bit_mask > requested_bytes_per_block)
break;
}
*dest_bytes_per_block = ((is_valid)
? requested_bytes_per_block
: default_bytes_per_block);
a0005934: e3a03080 mov r3, #128 ; 0x80
break;
}
if(bit_mask > requested_bytes_per_block)
break;
}
*dest_bytes_per_block = ((is_valid)
a0005938: e59f609c ldr r6, [pc, #156] ; a00059dc <IMFS_initialize_support+0xe4> a000593c: e5863000 str r3, [r6]
/* * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node();
a0005940: eb001d7d bl a000cf3c <IMFS_create_root_node>
temp_mt_entry->mt_fs_root.handlers = directory_handlers; temp_mt_entry->mt_fs_root.ops = op_table; temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
a0005944: e59fe094 ldr lr, [pc, #148] ; a00059e0 <IMFS_initialize_support+0xe8> a0005948: e284c038 add ip, r4, #56 ; 0x38
/* * Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node();
a000594c: e584001c str r0, [r4, #28] a0005950: e1a05000 mov r5, r0
temp_mt_entry->mt_fs_root.handlers = directory_handlers; temp_mt_entry->mt_fs_root.ops = op_table; temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
a0005954: e8be000f ldm lr!, {r0, r1, r2, r3}
a0005958: e8ac000f stmia ip!, {r0, r1, r2, r3}
a000595c: e8be000f ldm lr!, {r0, r1, r2, r3}
a0005960: e8ac000f stmia ip!, {r0, r1, r2, r3}
a0005964: e89e000f ldm lr, {r0, r1, r2, r3}
* Create the root node * * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); temp_mt_entry->mt_fs_root.handlers = directory_handlers;
a0005968: e5847024 str r7, [r4, #36] ; 0x24
temp_mt_entry->mt_fs_root.ops = op_table; temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
a000596c: e88c000f stm ip, {r0, r1, r2, r3}
* * NOTE: UNIX root is 755 and owned by root/root (0/0). */ temp_mt_entry->mt_fs_root.node_access = IMFS_create_root_node(); temp_mt_entry->mt_fs_root.handlers = directory_handlers; temp_mt_entry->mt_fs_root.ops = op_table;
a0005970: e584a028 str sl, [r4, #40] ; 0x28
temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS;
/*
* Create custom file system data.
*/
fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
a0005974: e3a00001 mov r0, #1 a0005978: e3a01014 mov r1, #20 a000597c: eb000196 bl a0005fdc <calloc>
if ( !fs_info ) {
a0005980: e3500000 cmp r0, #0
a0005984: 1a000006 bne a00059a4 <IMFS_initialize_support+0xac>
free(temp_mt_entry->mt_fs_root.node_access);
a0005988: e1a00005 mov r0, r5 <== NOT EXECUTED a000598c: eb0001f7 bl a0006170 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
a0005990: eb002db5 bl a001106c <__errno> <== NOT EXECUTED
a0005994: e3a0300c mov r3, #12 <== NOT EXECUTED
a0005998: e5803000 str r3, [r0] <== NOT EXECUTED
a000599c: e3e00000 mvn r0, #0 <== NOT EXECUTED
a00059a0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
a00059a4: e5963004 ldr r3, [r6, #4]
fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; fs_info->fifo_handlers = fifo_handlers;
a00059a8: e59d201c ldr r2, [sp, #28]
fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) );
if ( !fs_info ) {
free(temp_mt_entry->mt_fs_root.node_access);
rtems_set_errno_and_return_minus_one(ENOMEM);
}
temp_mt_entry->fs_info = fs_info;
a00059ac: e5840034 str r0, [r4, #52] ; 0x34
/*
* Set st_ino for the root to 1.
*/
fs_info->instance = imfs_instance++;
a00059b0: e5803000 str r3, [r0] a00059b4: e2833001 add r3, r3, #1 a00059b8: e5863004 str r3, [r6, #4]
fs_info->ino_count = 1;
a00059bc: e3a03001 mov r3, #1
a00059c0: e9800108 stmib r0, {r3, r8}
fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers;
a00059c4: e580700c str r7, [r0, #12]
fs_info->fifo_handlers = fifo_handlers;
a00059c8: e5802010 str r2, [r0, #16]
jnode = temp_mt_entry->mt_fs_root.node_access;
jnode->st_ino = fs_info->ino_count;
a00059cc: e5853038 str r3, [r5, #56] ; 0x38
return 0;
a00059d0: e3a00000 mov r0, #0
}
a00059d4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
a00059e4 <IMFS_link>:
int IMFS_link(
rtems_filesystem_location_info_t *to_loc, /* IN */
rtems_filesystem_location_info_t *parent_loc, /* IN */
const char *token /* IN */
)
{
a00059e4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
int i;
/*
* Verify this node can be linked to.
*/
info.hard_link.link_node = to_loc->node_access;
a00059e8: e5903000 ldr r3, [r0] <== NOT EXECUTED
int IMFS_link(
rtems_filesystem_location_info_t *to_loc, /* IN */
rtems_filesystem_location_info_t *parent_loc, /* IN */
const char *token /* IN */
)
{
a00059ec: e24dd048 sub sp, sp, #72 ; 0x48 <== NOT EXECUTED a00059f0: e1a05001 mov r5, r1 <== NOT EXECUTED
int i;
/*
* Verify this node can be linked to.
*/
info.hard_link.link_node = to_loc->node_access;
a00059f4: e58d3028 str r3, [sp, #40] ; 0x28 <== NOT EXECUTED
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
a00059f8: e1d333b4 ldrh r3, [r3, #52] ; 0x34 <== NOT EXECUTED
int IMFS_link(
rtems_filesystem_location_info_t *to_loc, /* IN */
rtems_filesystem_location_info_t *parent_loc, /* IN */
const char *token /* IN */
)
{
a00059fc: e1a06002 mov r6, r2 <== NOT EXECUTED
/*
* Verify this node can be linked to.
*/
info.hard_link.link_node = to_loc->node_access;
if ( info.hard_link.link_node->st_nlink >= LINK_MAX )
a0005a00: e3530007 cmp r3, #7 <== NOT EXECUTED a0005a04: 9a000002 bls a0005a14 <IMFS_link+0x30> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EMLINK );
a0005a08: eb002d97 bl a001106c <__errno> <== NOT EXECUTED a0005a0c: e3a0301f mov r3, #31 <== NOT EXECUTED a0005a10: ea000012 b a0005a60 <IMFS_link+0x7c> <== NOT EXECUTED
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( token, strlen( token ), new_name, &i );
a0005a14: e1a00002 mov r0, r2 <== NOT EXECUTED a0005a18: eb00317d bl a0012014 <strlen> <== NOT EXECUTED a0005a1c: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0005a20: e1a01000 mov r1, r0 <== NOT EXECUTED a0005a24: e1a02004 mov r2, r4 <== NOT EXECUTED a0005a28: e28d3044 add r3, sp, #68 ; 0x44 <== NOT EXECUTED a0005a2c: e1a00006 mov r0, r6 <== NOT EXECUTED a0005a30: eb001f5e bl a000d7b0 <IMFS_get_token> <== NOT EXECUTED
new_node = IMFS_create_node(
parent_loc,
IMFS_HARD_LINK,
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
a0005a34: e28d3028 add r3, sp, #40 ; 0x28 <== NOT EXECUTED
* was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node(
a0005a38: e58d3000 str r3, [sp] <== NOT EXECUTED a0005a3c: e1a00005 mov r0, r5 <== NOT EXECUTED a0005a40: e3a01003 mov r1, #3 <== NOT EXECUTED a0005a44: e1a02004 mov r2, r4 <== NOT EXECUTED a0005a48: e59f3050 ldr r3, [pc, #80] ; a0005aa0 <IMFS_link+0xbc> <== NOT EXECUTED a0005a4c: eb001cea bl a000cdfc <IMFS_create_node> <== NOT EXECUTED
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if ( !new_node )
a0005a50: e3500000 cmp r0, #0 <== NOT EXECUTED a0005a54: 1a000004 bne a0005a6c <IMFS_link+0x88> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
a0005a58: eb002d83 bl a001106c <__errno> <== NOT EXECUTED a0005a5c: e3a0300c mov r3, #12 <== NOT EXECUTED a0005a60: e5803000 str r3, [r0] <== NOT EXECUTED a0005a64: e3e00000 mvn r0, #0 <== NOT EXECUTED a0005a68: ea00000a b a0005a98 <IMFS_link+0xb4> <== NOT EXECUTED
/*
* Increment the link count of the node being pointed to.
*/
info.hard_link.link_node->st_nlink++;
a0005a6c: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED
IMFS_update_ctime( info.hard_link.link_node );
a0005a70: e28d003c add r0, sp, #60 ; 0x3c <== NOT EXECUTED a0005a74: e3a01000 mov r1, #0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
/*
* Increment the link count of the node being pointed to.
*/
info.hard_link.link_node->st_nlink++;
a0005a78: e1d323b4 ldrh r2, [r3, #52] ; 0x34 <== NOT EXECUTED a0005a7c: e2822001 add r2, r2, #1 <== NOT EXECUTED a0005a80: e1c323b4 strh r2, [r3, #52] ; 0x34 <== NOT EXECUTED
IMFS_update_ctime( info.hard_link.link_node );
a0005a84: eb0001ee bl a0006244 <gettimeofday> <== NOT EXECUTED a0005a88: e59d203c ldr r2, [sp, #60] ; 0x3c <== NOT EXECUTED a0005a8c: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED
return 0;
a0005a90: e3a00000 mov r0, #0 <== NOT EXECUTED
/*
* Increment the link count of the node being pointed to.
*/
info.hard_link.link_node->st_nlink++;
IMFS_update_ctime( info.hard_link.link_node );
a0005a94: e5832048 str r2, [r3, #72] ; 0x48 <== NOT EXECUTED
return 0;
}
a0005a98: e28dd048 add sp, sp, #72 ; 0x48 <== NOT EXECUTED
a0005a9c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000fb88 <IMFS_memfile_addblock>:
*/
MEMFILE_STATIC int IMFS_memfile_addblock(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
a000fb88: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );
/*
* Obtain the pointer for the specified block number
*/
block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
a000fb8c: e3a02001 mov r2, #1 <== NOT EXECUTED a000fb90: ebffff00 bl a000f798 <IMFS_memfile_get_block_pointer> <== NOT EXECUTED
if ( *block_entry_ptr )
a000fb94: e5904000 ldr r4, [r0] <== NOT EXECUTED
IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );
/*
* Obtain the pointer for the specified block number
*/
block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
a000fb98: e1a05000 mov r5, r0 <== NOT EXECUTED
if ( *block_entry_ptr )
a000fb9c: e3540000 cmp r4, #0 <== NOT EXECUTED a000fba0: 1a000005 bne a000fbbc <IMFS_memfile_addblock+0x34> <== NOT EXECUTED
return 0;
/*
* There is no memory for this block number so allocate it.
*/
memory = memfile_alloc_block();
a000fba4: ebfffeee bl a000f764 <memfile_alloc_block> <== NOT EXECUTED
if ( !memory )
a000fba8: e3500000 cmp r0, #0 <== NOT EXECUTED a000fbac: 0a000004 beq a000fbc4 <IMFS_memfile_addblock+0x3c> <== NOT EXECUTED
return 1;
*block_entry_ptr = memory;
a000fbb0: e5850000 str r0, [r5] <== NOT EXECUTED
return 0;
a000fbb4: e1a00004 mov r0, r4 <== NOT EXECUTED
a000fbb8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
/*
* Obtain the pointer for the specified block number
*/
block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
if ( *block_entry_ptr )
return 0;
a000fbbc: e3a00000 mov r0, #0 <== NOT EXECUTED
a000fbc0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
/*
* There is no memory for this block number so allocate it.
*/
memory = memfile_alloc_block();
if ( !memory )
return 1;
a000fbc4: e3a00001 mov r0, #1 <== NOT EXECUTED
*block_entry_ptr = memory;
return 0;
}
a000fbc8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000fd7c <IMFS_memfile_extend>:
IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );
/*
* Verify new file size is supported
*/
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
a000fd7c: e59f3110 ldr r3, [pc, #272] ; a000fe94 <IMFS_memfile_extend+0x118><== NOT EXECUTED
*/
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
a000fd80: e92d4df1 push {r0, r4, r5, r6, r7, r8, sl, fp, lr} <== NOT EXECUTED
IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );
/*
* Verify new file size is supported
*/
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
a000fd84: e593b000 ldr fp, [r3] <== NOT EXECUTED
*/
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
a000fd88: e1a05002 mov r5, r2 <== NOT EXECUTED a000fd8c: e1a04000 mov r4, r0 <== NOT EXECUTED
IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );
/*
* Verify new file size is supported
*/
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
a000fd90: e1a0312b lsr r3, fp, #2 <== NOT EXECUTED a000fd94: e2832001 add r2, r3, #1 <== NOT EXECUTED a000fd98: e0020293 mul r2, r3, r2 <== NOT EXECUTED
*/
MEMFILE_STATIC int IMFS_memfile_extend(
IMFS_jnode_t *the_jnode,
off_t new_length
)
{
a000fd9c: e1a06001 mov r6, r1 <== NOT EXECUTED
IMFS_assert( the_jnode->type == IMFS_MEMORY_FILE );
/*
* Verify new file size is supported
*/
if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )
a000fda0: e2822001 add r2, r2, #1 <== NOT EXECUTED a000fda4: e0030392 mul r3, r2, r3 <== NOT EXECUTED a000fda8: e3a02000 mov r2, #0 <== NOT EXECUTED a000fdac: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000fdb0: e1520005 cmp r2, r5 <== NOT EXECUTED a000fdb4: e003039b mul r3, fp, r3 <== NOT EXECUTED a000fdb8: ca000005 bgt a000fdd4 <IMFS_memfile_extend+0x58> <== NOT EXECUTED a000fdbc: 1a000001 bne a000fdc8 <IMFS_memfile_extend+0x4c> <== NOT EXECUTED a000fdc0: e1530001 cmp r3, r1 <== NOT EXECUTED a000fdc4: 8a000002 bhi a000fdd4 <IMFS_memfile_extend+0x58> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000fdc8: eb0004a7 bl a001106c <__errno> <== NOT EXECUTED a000fdcc: e3a03016 mov r3, #22 <== NOT EXECUTED a000fdd0: ea000025 b a000fe6c <IMFS_memfile_extend+0xf0> <== NOT EXECUTED
/*
* Verify new file size is actually larger than current size
*/
if ( new_length <= the_jnode->info.file.size )
a000fdd4: e5948054 ldr r8, [r4, #84] ; 0x54 <== NOT EXECUTED a000fdd8: e5947050 ldr r7, [r4, #80] ; 0x50 <== NOT EXECUTED a000fddc: e1550008 cmp r5, r8 <== NOT EXECUTED a000fde0: ca000002 bgt a000fdf0 <IMFS_memfile_extend+0x74> <== NOT EXECUTED a000fde4: 1a000028 bne a000fe8c <IMFS_memfile_extend+0x110> <== NOT EXECUTED a000fde8: e1560007 cmp r6, r7 <== NOT EXECUTED a000fdec: 9a000026 bls a000fe8c <IMFS_memfile_extend+0x110> <== NOT EXECUTED
return 0;
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
a000fdf0: e1a0cfcb asr ip, fp, #31 <== NOT EXECUTED a000fdf4: e1a0300c mov r3, ip <== NOT EXECUTED a000fdf8: e1a0200b mov r2, fp <== NOT EXECUTED a000fdfc: e1a00006 mov r0, r6 <== NOT EXECUTED a000fe00: e1a01005 mov r1, r5 <== NOT EXECUTED a000fe04: e58dc000 str ip, [sp] <== NOT EXECUTED a000fe08: eb001326 bl a0014aa8 <__divdi3> <== NOT EXECUTED
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
a000fe0c: e59dc000 ldr ip, [sp] <== NOT EXECUTED a000fe10: e1a01008 mov r1, r8 <== NOT EXECUTED
return 0;
/*
* Calculate the number of range of blocks to allocate
*/
new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;
a000fe14: e1a0a000 mov sl, r0 <== NOT EXECUTED
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
a000fe18: e1a0200b mov r2, fp <== NOT EXECUTED a000fe1c: e1a00007 mov r0, r7 <== NOT EXECUTED a000fe20: e1a0300c mov r3, ip <== NOT EXECUTED a000fe24: eb00131f bl a0014aa8 <__divdi3> <== NOT EXECUTED a000fe28: e1a08000 mov r8, r0 <== NOT EXECUTED
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
a000fe2c: e1a07000 mov r7, r0 <== NOT EXECUTED a000fe30: ea000011 b a000fe7c <IMFS_memfile_extend+0x100> <== NOT EXECUTED
if ( IMFS_memfile_addblock( the_jnode, block ) ) {
a000fe34: e1a00004 mov r0, r4 <== NOT EXECUTED a000fe38: e1a01007 mov r1, r7 <== NOT EXECUTED a000fe3c: ebffff51 bl a000fb88 <IMFS_memfile_addblock> <== NOT EXECUTED a000fe40: e3500000 cmp r0, #0 <== NOT EXECUTED a000fe44: 0a00000b beq a000fe78 <IMFS_memfile_extend+0xfc> <== NOT EXECUTED a000fe48: ea000003 b a000fe5c <IMFS_memfile_extend+0xe0> <== NOT EXECUTED
for ( ; block>=old_blocks ; block-- ) {
IMFS_memfile_remove_block( the_jnode, block );
a000fe4c: e1a01007 mov r1, r7 <== NOT EXECUTED a000fe50: e1a00004 mov r0, r4 <== NOT EXECUTED a000fe54: ebffffbe bl a000fd54 <IMFS_memfile_remove_block> <== NOT EXECUTED
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
if ( IMFS_memfile_addblock( the_jnode, block ) ) {
for ( ; block>=old_blocks ; block-- ) {
a000fe58: e2477001 sub r7, r7, #1 <== NOT EXECUTED a000fe5c: e1570008 cmp r7, r8 <== NOT EXECUTED a000fe60: 2afffff9 bcs a000fe4c <IMFS_memfile_extend+0xd0> <== NOT EXECUTED
IMFS_memfile_remove_block( the_jnode, block );
}
rtems_set_errno_and_return_minus_one( ENOSPC );
a000fe64: eb000480 bl a001106c <__errno> <== NOT EXECUTED a000fe68: e3a0301c mov r3, #28 <== NOT EXECUTED a000fe6c: e5803000 str r3, [r0] <== NOT EXECUTED a000fe70: e3e00000 mvn r0, #0 <== NOT EXECUTED a000fe74: ea000005 b a000fe90 <IMFS_memfile_extend+0x114> <== NOT EXECUTED
old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
/*
* Now allocate each of those blocks.
*/
for ( block=old_blocks ; block<=new_blocks ; block++ ) {
a000fe78: e2877001 add r7, r7, #1 <== NOT EXECUTED a000fe7c: e157000a cmp r7, sl <== NOT EXECUTED a000fe80: 9affffeb bls a000fe34 <IMFS_memfile_extend+0xb8> <== NOT EXECUTED
}
/*
* Set the new length of the file.
*/
the_jnode->info.file.size = new_length;
a000fe84: e5846050 str r6, [r4, #80] ; 0x50 <== NOT EXECUTED a000fe88: e5845054 str r5, [r4, #84] ; 0x54 <== NOT EXECUTED
/*
* Verify new file size is actually larger than current size
*/
if ( new_length <= the_jnode->info.file.size )
return 0;
a000fe8c: e3a00000 mov r0, #0 <== NOT EXECUTED
/* * Set the new length of the file. */ the_jnode->info.file.size = new_length; return 0; }
a000fe90: e8bd8df8 pop {r3, r4, r5, r6, r7, r8, sl, fp, pc} <== NOT EXECUTED
a000f798 <IMFS_memfile_get_block_pointer>:
my_block = block;
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
a000f798: e59f31e4 ldr r3, [pc, #484] ; a000f984 <IMFS_memfile_get_block_pointer+0x1ec><== NOT EXECUTED
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
a000f79c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
my_block = block;
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
a000f7a0: e5935000 ldr r5, [r3] <== NOT EXECUTED
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
a000f7a4: e1a04000 mov r4, r0 <== NOT EXECUTED a000f7a8: e1a06001 mov r6, r1 <== NOT EXECUTED
my_block = block;
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
a000f7ac: e1a05125 lsr r5, r5, #2 <== NOT EXECUTED a000f7b0: e2453001 sub r3, r5, #1 <== NOT EXECUTED a000f7b4: e1510003 cmp r1, r3 <== NOT EXECUTED
#endif
IMFS_jnode_t *the_jnode,
unsigned int block,
int malloc_it
)
{
a000f7b8: e1a08002 mov r8, r2 <== NOT EXECUTED
my_block = block;
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
a000f7bc: 8a00000e bhi a000f7fc <IMFS_memfile_get_block_pointer+0x64><== NOT EXECUTED
p = info->indirect;
if ( malloc_it ) {
a000f7c0: e3520000 cmp r2, #0 <== NOT EXECUTED
/*
* Is the block number in the simple indirect portion?
*/
if ( my_block <= LAST_INDIRECT ) {
p = info->indirect;
a000f7c4: e5900058 ldr r0, [r0, #88] ; 0x58 <== NOT EXECUTED
if ( malloc_it ) {
a000f7c8: 0a000007 beq a000f7ec <IMFS_memfile_get_block_pointer+0x54><== NOT EXECUTED
if ( !p ) {
a000f7cc: e3500000 cmp r0, #0 <== NOT EXECUTED a000f7d0: 1a000003 bne a000f7e4 <IMFS_memfile_get_block_pointer+0x4c><== NOT EXECUTED
p = memfile_alloc_block();
a000f7d4: ebffffe2 bl a000f764 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
a000f7d8: e3500000 cmp r0, #0 <== NOT EXECUTED a000f7dc: 0a000067 beq a000f980 <IMFS_memfile_get_block_pointer+0x1e8><== NOT EXECUTED
return 0;
info->indirect = p;
a000f7e0: e5840058 str r0, [r4, #88] ; 0x58 <== NOT EXECUTED
}
return &info->indirect[ my_block ];
a000f7e4: e5940058 ldr r0, [r4, #88] ; 0x58 <== NOT EXECUTED a000f7e8: ea000001 b a000f7f4 <IMFS_memfile_get_block_pointer+0x5c> <== NOT EXECUTED
}
if ( !p )
a000f7ec: e3500000 cmp r0, #0 <== NOT EXECUTED a000f7f0: 0a000062 beq a000f980 <IMFS_memfile_get_block_pointer+0x1e8><== NOT EXECUTED
return 0;
return &info->indirect[ my_block ];
a000f7f4: e0800106 add r0, r0, r6, lsl #2 <== NOT EXECUTED
a000f7f8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
/*
* Is the block number in the doubly indirect portion?
*/
if ( my_block <= LAST_DOUBLY_INDIRECT ) {
a000f7fc: e2853001 add r3, r5, #1 <== NOT EXECUTED a000f800: e0030395 mul r3, r5, r3 <== NOT EXECUTED a000f804: e2432001 sub r2, r3, #1 <== NOT EXECUTED a000f808: e1510002 cmp r1, r2 <== NOT EXECUTED a000f80c: 8a000021 bhi a000f898 <IMFS_memfile_get_block_pointer+0x100><== NOT EXECUTED
my_block -= FIRST_DOUBLY_INDIRECT;
a000f810: e0656001 rsb r6, r5, r1 <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
a000f814: e1a00006 mov r0, r6 <== NOT EXECUTED a000f818: e1a01005 mov r1, r5 <== NOT EXECUTED a000f81c: eb00146d bl a00149d8 <__umodsi3> <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
a000f820: e1a01005 mov r1, r5 <== NOT EXECUTED
*/
if ( my_block <= LAST_DOUBLY_INDIRECT ) {
my_block -= FIRST_DOUBLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
a000f824: e1a07000 mov r7, r0 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
a000f828: e1a00006 mov r0, r6 <== NOT EXECUTED a000f82c: eb0013d1 bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED
p = info->doubly_indirect;
if ( malloc_it ) {
a000f830: e3580000 cmp r8, #0 <== NOT EXECUTED
if ( my_block <= LAST_DOUBLY_INDIRECT ) {
my_block -= FIRST_DOUBLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
a000f834: e1a05000 mov r5, r0 <== NOT EXECUTED
p = info->doubly_indirect;
a000f838: e594005c ldr r0, [r4, #92] ; 0x5c <== NOT EXECUTED
if ( malloc_it ) {
a000f83c: 0a00000e beq a000f87c <IMFS_memfile_get_block_pointer+0xe4><== NOT EXECUTED
if ( !p ) {
a000f840: e3500000 cmp r0, #0 <== NOT EXECUTED a000f844: 1a000003 bne a000f858 <IMFS_memfile_get_block_pointer+0xc0><== NOT EXECUTED
p = memfile_alloc_block();
a000f848: ebffffc5 bl a000f764 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
a000f84c: e3500000 cmp r0, #0 <== NOT EXECUTED a000f850: 0a00004a beq a000f980 <IMFS_memfile_get_block_pointer+0x1e8><== NOT EXECUTED
return 0;
info->doubly_indirect = p;
a000f854: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED
}
p1 = (block_p *)p[ doubly ];
a000f858: e0804105 add r4, r0, r5, lsl #2 <== NOT EXECUTED a000f85c: e7900105 ldr r0, [r0, r5, lsl #2] <== NOT EXECUTED
if ( !p1 ) {
a000f860: e3500000 cmp r0, #0 <== NOT EXECUTED a000f864: 1a000009 bne a000f890 <IMFS_memfile_get_block_pointer+0xf8><== NOT EXECUTED
p1 = memfile_alloc_block();
a000f868: ebffffbd bl a000f764 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
a000f86c: e3500000 cmp r0, #0 <== NOT EXECUTED
return 0;
p[ doubly ] = (block_p) p1;
a000f870: 15840000 strne r0, [r4] <== NOT EXECUTED
}
p1 = (block_p *)p[ doubly ];
if ( !p1 ) {
p1 = memfile_alloc_block();
if ( !p1 )
a000f874: 1a000005 bne a000f890 <IMFS_memfile_get_block_pointer+0xf8><== NOT EXECUTED a000f878: ea000040 b a000f980 <IMFS_memfile_get_block_pointer+0x1e8> <== NOT EXECUTED
}
return (block_p *)&p1[ singly ];
}
if ( !p )
a000f87c: e3500000 cmp r0, #0 <== NOT EXECUTED a000f880: 0a00003e beq a000f980 <IMFS_memfile_get_block_pointer+0x1e8><== NOT EXECUTED
return 0;
p = (block_p *)p[ doubly ];
a000f884: e7900105 ldr r0, [r0, r5, lsl #2] <== NOT EXECUTED
if ( !p )
a000f888: e3500000 cmp r0, #0 <== NOT EXECUTED a000f88c: 0a00003b beq a000f980 <IMFS_memfile_get_block_pointer+0x1e8><== NOT EXECUTED
return 0;
return (block_p *)&p[ singly ];
a000f890: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED
a000f894: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
}
/*
* Is the block number in the triply indirect portion?
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
a000f898: e2832001 add r2, r3, #1 <== NOT EXECUTED a000f89c: e0020295 mul r2, r5, r2 <== NOT EXECUTED a000f8a0: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000f8a4: e1510002 cmp r1, r2 <== NOT EXECUTED a000f8a8: 8a000033 bhi a000f97c <IMFS_memfile_get_block_pointer+0x1e4><== NOT EXECUTED
my_block -= FIRST_TRIPLY_INDIRECT;
a000f8ac: e0636001 rsb r6, r3, r1 <== NOT EXECUTED
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
a000f8b0: e1a00006 mov r0, r6 <== NOT EXECUTED a000f8b4: e1a01005 mov r1, r5 <== NOT EXECUTED a000f8b8: eb001446 bl a00149d8 <__umodsi3> <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
a000f8bc: e1a01005 mov r1, r5 <== NOT EXECUTED
* Is the block number in the triply indirect portion?
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
a000f8c0: e1a0a000 mov sl, r0 <== NOT EXECUTED
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
a000f8c4: e1a00006 mov r0, r6 <== NOT EXECUTED a000f8c8: eb0013aa bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
a000f8cc: e1a01005 mov r1, r5 <== NOT EXECUTED
*/
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
a000f8d0: e1a06000 mov r6, r0 <== NOT EXECUTED
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
a000f8d4: eb0013a7 bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
a000f8d8: e1a01005 mov r1, r5 <== NOT EXECUTED
if ( my_block <= LAST_TRIPLY_INDIRECT ) {
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
a000f8dc: e1a07000 mov r7, r0 <== NOT EXECUTED
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
a000f8e0: e1a00006 mov r0, r6 <== NOT EXECUTED a000f8e4: eb00143b bl a00149d8 <__umodsi3> <== NOT EXECUTED
p = info->triply_indirect;
if ( malloc_it ) {
a000f8e8: e3580000 cmp r8, #0 <== NOT EXECUTED
my_block -= FIRST_TRIPLY_INDIRECT;
singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;
doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;
triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;
doubly %= IMFS_MEMFILE_BLOCK_SLOTS;
a000f8ec: e1a05000 mov r5, r0 <== NOT EXECUTED
p = info->triply_indirect;
a000f8f0: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED
if ( malloc_it ) {
a000f8f4: 0a000016 beq a000f954 <IMFS_memfile_get_block_pointer+0x1bc><== NOT EXECUTED
if ( !p ) {
a000f8f8: e3500000 cmp r0, #0 <== NOT EXECUTED a000f8fc: 1a000003 bne a000f910 <IMFS_memfile_get_block_pointer+0x178><== NOT EXECUTED
p = memfile_alloc_block();
a000f900: ebffff97 bl a000f764 <memfile_alloc_block> <== NOT EXECUTED
if ( !p )
a000f904: e3500000 cmp r0, #0 <== NOT EXECUTED a000f908: 0a00001c beq a000f980 <IMFS_memfile_get_block_pointer+0x1e8><== NOT EXECUTED
return 0;
info->triply_indirect = p;
a000f90c: e5840060 str r0, [r4, #96] ; 0x60 <== NOT EXECUTED
}
p1 = (block_p *) p[ triply ];
a000f910: e0804107 add r4, r0, r7, lsl #2 <== NOT EXECUTED a000f914: e7900107 ldr r0, [r0, r7, lsl #2] <== NOT EXECUTED
if ( !p1 ) {
a000f918: e3500000 cmp r0, #0 <== NOT EXECUTED a000f91c: 1a000003 bne a000f930 <IMFS_memfile_get_block_pointer+0x198><== NOT EXECUTED
p1 = memfile_alloc_block();
a000f920: ebffff8f bl a000f764 <memfile_alloc_block> <== NOT EXECUTED
if ( !p1 )
a000f924: e3500000 cmp r0, #0 <== NOT EXECUTED a000f928: 0a000014 beq a000f980 <IMFS_memfile_get_block_pointer+0x1e8><== NOT EXECUTED
return 0;
p[ triply ] = (block_p) p1;
a000f92c: e5840000 str r0, [r4] <== NOT EXECUTED
}
p2 = (block_p *)p1[ doubly ];
a000f930: e0804105 add r4, r0, r5, lsl #2 <== NOT EXECUTED a000f934: e7900105 ldr r0, [r0, r5, lsl #2] <== NOT EXECUTED
if ( !p2 ) {
a000f938: e3500000 cmp r0, #0 <== NOT EXECUTED a000f93c: 1a00000c bne a000f974 <IMFS_memfile_get_block_pointer+0x1dc><== NOT EXECUTED
p2 = memfile_alloc_block();
a000f940: ebffff87 bl a000f764 <memfile_alloc_block> <== NOT EXECUTED
if ( !p2 )
a000f944: e3500000 cmp r0, #0 <== NOT EXECUTED
return 0;
p1[ doubly ] = (block_p) p2;
a000f948: 15840000 strne r0, [r4] <== NOT EXECUTED
}
p2 = (block_p *)p1[ doubly ];
if ( !p2 ) {
p2 = memfile_alloc_block();
if ( !p2 )
a000f94c: 1a000008 bne a000f974 <IMFS_memfile_get_block_pointer+0x1dc><== NOT EXECUTED a000f950: ea00000a b a000f980 <IMFS_memfile_get_block_pointer+0x1e8> <== NOT EXECUTED
p1[ doubly ] = (block_p) p2;
}
return (block_p *)&p2[ singly ];
}
if ( !p )
a000f954: e3500000 cmp r0, #0 <== NOT EXECUTED a000f958: 0a000008 beq a000f980 <IMFS_memfile_get_block_pointer+0x1e8><== NOT EXECUTED
return 0;
p1 = (block_p *) p[ triply ];
a000f95c: e7900107 ldr r0, [r0, r7, lsl #2] <== NOT EXECUTED
if ( !p1 )
a000f960: e3500000 cmp r0, #0 <== NOT EXECUTED a000f964: 0a000005 beq a000f980 <IMFS_memfile_get_block_pointer+0x1e8><== NOT EXECUTED
return 0;
p2 = (block_p *)p1[ doubly ];
a000f968: e7900105 ldr r0, [r0, r5, lsl #2] <== NOT EXECUTED
if ( !p2 )
a000f96c: e3500000 cmp r0, #0 <== NOT EXECUTED a000f970: 0a000002 beq a000f980 <IMFS_memfile_get_block_pointer+0x1e8><== NOT EXECUTED
return 0;
return (block_p *)&p2[ singly ];
a000f974: e080010a add r0, r0, sl, lsl #2 <== NOT EXECUTED
a000f978: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
}
/*
* This means the requested block number is out of range.
*/
return 0;
a000f97c: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a000f980: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a00086c8 <IMFS_memfile_maximum_size>:
* using the IMFS memory file type.
*
*/
int IMFS_memfile_maximum_size( void )
{
return IMFS_MEMFILE_MAXIMUM_SIZE;
a00086c8: e59f3020 ldr r3, [pc, #32] ; a00086f0 <IMFS_memfile_maximum_size+0x28><== NOT EXECUTED a00086cc: e5932000 ldr r2, [r3] <== NOT EXECUTED a00086d0: e1a03122 lsr r3, r2, #2 <== NOT EXECUTED a00086d4: e2830001 add r0, r3, #1 <== NOT EXECUTED a00086d8: e0000093 mul r0, r3, r0 <== NOT EXECUTED a00086dc: e2800001 add r0, r0, #1 <== NOT EXECUTED a00086e0: e0030390 mul r3, r0, r3 <== NOT EXECUTED a00086e4: e2430001 sub r0, r3, #1 <== NOT EXECUTED
}
a00086e8: e0000092 mul r0, r2, r0 <== NOT EXECUTED a00086ec: e12fff1e bx lr <== NOT EXECUTED
a000f988 <IMFS_memfile_read>:
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
a000f988: e92d4fff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}<== NOT EXECUTED
a000f98c: e1a07003 mov r7, r3 <== NOT EXECUTED
* Linear files (as created from a tar file are easier to handle
* than block files).
*/
my_length = length;
if (the_jnode->type == IMFS_LINEAR_FILE) {
a000f990: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
a000f994: e1a04000 mov r4, r0 <== NOT EXECUTED a000f998: e1a08001 mov r8, r1 <== NOT EXECUTED
* Linear files (as created from a tar file are easier to handle
* than block files).
*/
my_length = length;
if (the_jnode->type == IMFS_LINEAR_FILE) {
a000f99c: e3530006 cmp r3, #6 <== NOT EXECUTED
IMFS_jnode_t *the_jnode,
off_t start,
unsigned char *destination,
unsigned int length
)
{
a000f9a0: e1a09002 mov r9, r2 <== NOT EXECUTED a000f9a4: e59d6034 ldr r6, [sp, #52] ; 0x34 <== NOT EXECUTED
* Linear files (as created from a tar file are easier to handle
* than block files).
*/
my_length = length;
if (the_jnode->type == IMFS_LINEAR_FILE) {
a000f9a8: 1a000012 bne a000f9f8 <IMFS_memfile_read+0x70> <== NOT EXECUTED
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
if (my_length > (the_jnode->info.linearfile.size - start))
a000f9ac: e280b050 add fp, r0, #80 ; 0x50 <== NOT EXECUTED
a000f9b0: e89b0c00 ldm fp, {sl, fp} <== NOT EXECUTED
a000f9b4: e1a0200a mov r2, sl <== NOT EXECUTED
a000f9b8: e1a0300b mov r3, fp <== NOT EXECUTED
my_length = length;
if (the_jnode->type == IMFS_LINEAR_FILE) {
unsigned char *file_ptr;
file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;
a000f9bc: e5901058 ldr r1, [r0, #88] ; 0x58 <== NOT EXECUTED
if (my_length > (the_jnode->info.linearfile.size - start))
a000f9c0: e0522008 subs r2, r2, r8 <== NOT EXECUTED a000f9c4: e0c33009 sbc r3, r3, r9 <== NOT EXECUTED a000f9c8: e3a00000 mov r0, #0 <== NOT EXECUTED a000f9cc: e1500003 cmp r0, r3 <== NOT EXECUTED a000f9d0: ca000002 bgt a000f9e0 <IMFS_memfile_read+0x58> <== NOT EXECUTED a000f9d4: 1a000002 bne a000f9e4 <IMFS_memfile_read+0x5c> <== NOT EXECUTED a000f9d8: e1560002 cmp r6, r2 <== NOT EXECUTED a000f9dc: 9a000000 bls a000f9e4 <IMFS_memfile_read+0x5c> <== NOT EXECUTED
my_length = the_jnode->info.linearfile.size - start;
a000f9e0: e068600a rsb r6, r8, sl <== NOT EXECUTED
memcpy(dest, &file_ptr[start], my_length);
a000f9e4: e1a00007 mov r0, r7 <== NOT EXECUTED a000f9e8: e0811008 add r1, r1, r8 <== NOT EXECUTED a000f9ec: e1a02006 mov r2, r6 <== NOT EXECUTED a000f9f0: eb0007cb bl a0011924 <memcpy> <== NOT EXECUTED a000f9f4: ea000050 b a000fb3c <IMFS_memfile_read+0x1b4> <== NOT EXECUTED
/*
* If the last byte we are supposed to read is past the end of this
* in memory file, then shorten the length to read.
*/
last_byte = start + length;
a000f9f8: e1a03001 mov r3, r1 <== NOT EXECUTED
if ( last_byte > the_jnode->info.file.size )
a000f9fc: e5901054 ldr r1, [r0, #84] ; 0x54 <== NOT EXECUTED a000fa00: e5905050 ldr r5, [r0, #80] ; 0x50 <== NOT EXECUTED a000fa04: e3a00000 mov r0, #0 <== NOT EXECUTED a000fa08: e1500001 cmp r0, r1 <== NOT EXECUTED
/*
* If the last byte we are supposed to read is past the end of this
* in memory file, then shorten the length to read.
*/
last_byte = start + length;
a000fa0c: e0862008 add r2, r6, r8 <== NOT EXECUTED
if ( last_byte > the_jnode->info.file.size )
a000fa10: ca000002 bgt a000fa20 <IMFS_memfile_read+0x98> <== NOT EXECUTED a000fa14: 1a000003 bne a000fa28 <IMFS_memfile_read+0xa0> <== NOT EXECUTED a000fa18: e1520005 cmp r2, r5 <== NOT EXECUTED a000fa1c: 9a000001 bls a000fa28 <IMFS_memfile_read+0xa0> <== NOT EXECUTED
my_length = the_jnode->info.file.size - start;
a000fa20: e0635005 rsb r5, r3, r5 <== NOT EXECUTED a000fa24: ea000000 b a000fa2c <IMFS_memfile_read+0xa4> <== NOT EXECUTED
/*
* Linear files (as created from a tar file are easier to handle
* than block files).
*/
my_length = length;
a000fa28: e1a05006 mov r5, r6 <== NOT EXECUTED
*/
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
a000fa2c: e59f3128 ldr r3, [pc, #296] ; a000fb5c <IMFS_memfile_read+0x1d4><== NOT EXECUTED
a000fa30: e1a00008 mov r0, r8 <== NOT EXECUTED
a000fa34: e1a01009 mov r1, r9 <== NOT EXECUTED
a000fa38: e593b000 ldr fp, [r3] <== NOT EXECUTED
a000fa3c: e1a0200b mov r2, fp <== NOT EXECUTED
a000fa40: e1a03fc2 asr r3, r2, #31 <== NOT EXECUTED
a000fa44: e88d000c stm sp, {r2, r3} <== NOT EXECUTED
a000fa48: eb001543 bl a0014f5c <__moddi3> <== NOT EXECUTED
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
a000fa4c: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED
*/
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
a000fa50: e1a06000 mov r6, r0 <== NOT EXECUTED
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
a000fa54: e1a01009 mov r1, r9 <== NOT EXECUTED a000fa58: e1a00008 mov r0, r8 <== NOT EXECUTED a000fa5c: eb001411 bl a0014aa8 <__divdi3> <== NOT EXECUTED
if ( start_offset ) {
a000fa60: e3560000 cmp r6, #0 <== NOT EXECUTED
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
a000fa64: e1a08000 mov r8, r0 <== NOT EXECUTED
if ( start_offset ) {
a000fa68: 0a000012 beq a000fab8 <IMFS_memfile_read+0x130> <== NOT EXECUTED
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
a000fa6c: e1a00004 mov r0, r4 <== NOT EXECUTED a000fa70: e1a01008 mov r1, r8 <== NOT EXECUTED a000fa74: e3a02000 mov r2, #0 <== NOT EXECUTED a000fa78: ebffff46 bl a000f798 <IMFS_memfile_get_block_pointer> <== NOT EXECUTED
if ( !block_ptr )
a000fa7c: e3500000 cmp r0, #0 <== NOT EXECUTED
return copied;
a000fa80: 01a06000 moveq r6, r0 <== NOT EXECUTED
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
if ( !block_ptr )
a000fa84: 0a000031 beq a000fb50 <IMFS_memfile_read+0x1c8> <== NOT EXECUTED
return copied;
memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );
a000fa88: e5901000 ldr r1, [r0] <== NOT EXECUTED
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
a000fa8c: e066a00b rsb sl, r6, fp <== NOT EXECUTED a000fa90: e155000a cmp r5, sl <== NOT EXECUTED a000fa94: 31a0a005 movcc sl, r5 <== NOT EXECUTED
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
if ( !block_ptr )
return copied;
memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );
a000fa98: e1a00007 mov r0, r7 <== NOT EXECUTED a000fa9c: e0811006 add r1, r1, r6 <== NOT EXECUTED a000faa0: e1a0200a mov r2, sl <== NOT EXECUTED a000faa4: eb00079e bl a0011924 <memcpy> <== NOT EXECUTED
dest += to_copy;
a000faa8: e087700a add r7, r7, sl <== NOT EXECUTED
block++;
a000faac: e2888001 add r8, r8, #1 <== NOT EXECUTED
my_length -= to_copy;
a000fab0: e06a5005 rsb r5, sl, r5 <== NOT EXECUTED
copied += to_copy;
a000fab4: e1a0600a mov r6, sl <== NOT EXECUTED
}
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
a000fab8: e59f909c ldr r9, [pc, #156] ; a000fb5c <IMFS_memfile_read+0x1d4><== NOT EXECUTED a000fabc: e599a000 ldr sl, [r9] <== NOT EXECUTED
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
a000fac0: ea00000d b a000fafc <IMFS_memfile_read+0x174> <== NOT EXECUTED
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
a000fac4: e1a00004 mov r0, r4 <== NOT EXECUTED a000fac8: e1a01008 mov r1, r8 <== NOT EXECUTED a000facc: e3a02000 mov r2, #0 <== NOT EXECUTED a000fad0: ebffff30 bl a000f798 <IMFS_memfile_get_block_pointer> <== NOT EXECUTED
if ( !block_ptr )
a000fad4: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000fad8: 0a00001c beq a000fb50 <IMFS_memfile_read+0x1c8> <== NOT EXECUTED
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], to_copy );
a000fadc: e1a00007 mov r0, r7 <== NOT EXECUTED a000fae0: e5931000 ldr r1, [r3] <== NOT EXECUTED a000fae4: e1a0200a mov r2, sl <== NOT EXECUTED a000fae8: eb00078d bl a0011924 <memcpy> <== NOT EXECUTED
dest += to_copy;
a000faec: e087700a add r7, r7, sl <== NOT EXECUTED
block++;
a000faf0: e2888001 add r8, r8, #1 <== NOT EXECUTED
my_length -= to_copy;
a000faf4: e06a5005 rsb r5, sl, r5 <== NOT EXECUTED
copied += to_copy;
a000faf8: e086600a add r6, r6, sl <== NOT EXECUTED
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
a000fafc: e5993000 ldr r3, [r9] <== NOT EXECUTED a000fb00: e1550003 cmp r5, r3 <== NOT EXECUTED a000fb04: 2affffee bcs a000fac4 <IMFS_memfile_read+0x13c> <== NOT EXECUTED
/*
* Phase 3: possibly the first part of one block
*/
IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
if ( my_length ) {
a000fb08: e3550000 cmp r5, #0 <== NOT EXECUTED a000fb0c: 0a00000a beq a000fb3c <IMFS_memfile_read+0x1b4> <== NOT EXECUTED
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
a000fb10: e1a00004 mov r0, r4 <== NOT EXECUTED a000fb14: e1a01008 mov r1, r8 <== NOT EXECUTED a000fb18: e3a02000 mov r2, #0 <== NOT EXECUTED a000fb1c: ebffff1d bl a000f798 <IMFS_memfile_get_block_pointer> <== NOT EXECUTED
if ( !block_ptr )
a000fb20: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000fb24: 0a000009 beq a000fb50 <IMFS_memfile_read+0x1c8> <== NOT EXECUTED
return copied;
memcpy( dest, &(*block_ptr)[ 0 ], my_length );
a000fb28: e1a00007 mov r0, r7 <== NOT EXECUTED a000fb2c: e5931000 ldr r1, [r3] <== NOT EXECUTED a000fb30: e1a02005 mov r2, r5 <== NOT EXECUTED a000fb34: eb00077a bl a0011924 <memcpy> <== NOT EXECUTED
copied += my_length;
a000fb38: e0856006 add r6, r5, r6 <== NOT EXECUTED
}
IMFS_update_atime( the_jnode );
a000fb3c: e28d0008 add r0, sp, #8 <== NOT EXECUTED a000fb40: e3a01000 mov r1, #0 <== NOT EXECUTED a000fb44: ebffd9be bl a0006244 <gettimeofday> <== NOT EXECUTED a000fb48: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a000fb4c: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED
return copied;
}
a000fb50: e1a00006 mov r0, r6 <== NOT EXECUTED
a000fb54: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a000fb58: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a000fc3c <IMFS_memfile_remove>:
* is better to stick to simple, easy to understand algorithms.
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
a000fc3c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED
/*
* Eventually this could be set smarter at each call to
* memfile_free_blocks_in_table to greatly speed this up.
*/
to_free = IMFS_MEMFILE_BLOCK_SLOTS;
a000fc40: e59f3108 ldr r3, [pc, #264] ; a000fd50 <IMFS_memfile_remove+0x114><== NOT EXECUTED
* is better to stick to simple, easy to understand algorithms.
*/
int IMFS_memfile_remove(
IMFS_jnode_t *the_jnode
)
{
a000fc44: e1a04000 mov r4, r0 <== NOT EXECUTED
/*
* Eventually this could be set smarter at each call to
* memfile_free_blocks_in_table to greatly speed this up.
*/
to_free = IMFS_MEMFILE_BLOCK_SLOTS;
a000fc48: e5935000 ldr r5, [r3] <== NOT EXECUTED
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
if ( info->indirect ) {
a000fc4c: e5903058 ldr r3, [r0, #88] ; 0x58 <== NOT EXECUTED
/*
* Eventually this could be set smarter at each call to
* memfile_free_blocks_in_table to greatly speed this up.
*/
to_free = IMFS_MEMFILE_BLOCK_SLOTS;
a000fc50: e1a05125 lsr r5, r5, #2 <== NOT EXECUTED
* + doubly indirect
* + triply indirect
*/
info = &the_jnode->info.file;
if ( info->indirect ) {
a000fc54: e3530000 cmp r3, #0 <== NOT EXECUTED a000fc58: 0a000002 beq a000fc68 <IMFS_memfile_remove+0x2c> <== NOT EXECUTED
memfile_free_blocks_in_table( &info->indirect, to_free );
a000fc5c: e2800058 add r0, r0, #88 ; 0x58 <== NOT EXECUTED a000fc60: e1a01005 mov r1, r5 <== NOT EXECUTED a000fc64: ebffffe0 bl a000fbec <memfile_free_blocks_in_table> <== NOT EXECUTED
}
if ( info->doubly_indirect ) {
a000fc68: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a000fc6c: e3530000 cmp r3, #0 <== NOT EXECUTED a000fc70: 13a06000 movne r6, #0 <== NOT EXECUTED
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
a000fc74: 159f70d4 ldrne r7, [pc, #212] ; a000fd50 <IMFS_memfile_remove+0x114><== NOT EXECUTED
if ( info->indirect ) {
memfile_free_blocks_in_table( &info->indirect, to_free );
}
if ( info->doubly_indirect ) {
a000fc78: 1a000009 bne a000fca4 <IMFS_memfile_remove+0x68> <== NOT EXECUTED a000fc7c: ea00000e b a000fcbc <IMFS_memfile_remove+0x80> <== NOT EXECUTED
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
if ( info->doubly_indirect[i] ) {
a000fc80: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a000fc84: e1a00106 lsl r0, r6, #2 <== NOT EXECUTED a000fc88: e7932106 ldr r2, [r3, r6, lsl #2] <== NOT EXECUTED a000fc8c: e3520000 cmp r2, #0 <== NOT EXECUTED a000fc90: 0a000002 beq a000fca0 <IMFS_memfile_remove+0x64> <== NOT EXECUTED
memfile_free_blocks_in_table(
a000fc94: e0830000 add r0, r3, r0 <== NOT EXECUTED a000fc98: e1a01005 mov r1, r5 <== NOT EXECUTED a000fc9c: ebffffd2 bl a000fbec <memfile_free_blocks_in_table> <== NOT EXECUTED
if ( info->indirect ) {
memfile_free_blocks_in_table( &info->indirect, to_free );
}
if ( info->doubly_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
a000fca0: e2866001 add r6, r6, #1 <== NOT EXECUTED a000fca4: e5973000 ldr r3, [r7] <== NOT EXECUTED a000fca8: e1560123 cmp r6, r3, lsr #2 <== NOT EXECUTED a000fcac: 3afffff3 bcc a000fc80 <IMFS_memfile_remove+0x44> <== NOT EXECUTED
if ( info->doubly_indirect[i] ) {
memfile_free_blocks_in_table(
(block_p **)&info->doubly_indirect[i], to_free );
}
}
memfile_free_blocks_in_table( &info->doubly_indirect, to_free );
a000fcb0: e284005c add r0, r4, #92 ; 0x5c <== NOT EXECUTED a000fcb4: e1a01005 mov r1, r5 <== NOT EXECUTED a000fcb8: ebffffcb bl a000fbec <memfile_free_blocks_in_table> <== NOT EXECUTED
}
if ( info->triply_indirect ) {
a000fcbc: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED a000fcc0: e3530000 cmp r3, #0 <== NOT EXECUTED a000fcc4: 13a06000 movne r6, #0 <== NOT EXECUTED
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
a000fcc8: 159fa080 ldrne sl, [pc, #128] ; a000fd50 <IMFS_memfile_remove+0x114><== NOT EXECUTED
}
memfile_free_blocks_in_table( &info->doubly_indirect, to_free );
}
if ( info->triply_indirect ) {
a000fccc: 1a000017 bne a000fd30 <IMFS_memfile_remove+0xf4> <== NOT EXECUTED a000fcd0: ea00001c b a000fd48 <IMFS_memfile_remove+0x10c> <== NOT EXECUTED
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
a000fcd4: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED
}
memfile_free_blocks_in_table( &info->doubly_indirect, to_free );
}
if ( info->triply_indirect ) {
a000fcd8: e1a09106 lsl r9, r6, #2 <== NOT EXECUTED
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
a000fcdc: e7938106 ldr r8, [r3, r6, lsl #2] <== NOT EXECUTED
if ( !p ) /* ensure we have a valid pointer */
a000fce0: e3580000 cmp r8, #0 <== NOT EXECUTED a000fce4: 0a000014 beq a000fd3c <IMFS_memfile_remove+0x100> <== NOT EXECUTED
* a significant difference in the performance of this routine. * * Regardless until the IMFS implementation is proven, it * is better to stick to simple, easy to understand algorithms. */ int IMFS_memfile_remove(
a000fce8: e2488004 sub r8, r8, #4 <== NOT EXECUTED a000fcec: e3a07000 mov r7, #0 <== NOT EXECUTED a000fcf0: ea000006 b a000fd10 <IMFS_memfile_remove+0xd4> <== NOT EXECUTED
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
if ( !p ) /* ensure we have a valid pointer */
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
if ( p[j] ) {
a000fcf4: e5b83004 ldr r3, [r8, #4]! <== NOT EXECUTED a000fcf8: e3530000 cmp r3, #0 <== NOT EXECUTED a000fcfc: 0a000002 beq a000fd0c <IMFS_memfile_remove+0xd0> <== NOT EXECUTED
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
a000fd00: e1a00008 mov r0, r8 <== NOT EXECUTED a000fd04: e1a01005 mov r1, r5 <== NOT EXECUTED a000fd08: ebffffb7 bl a000fbec <memfile_free_blocks_in_table> <== NOT EXECUTED
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
p = (block_p *) info->triply_indirect[i];
if ( !p ) /* ensure we have a valid pointer */
break;
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
a000fd0c: e2877001 add r7, r7, #1 <== NOT EXECUTED a000fd10: e59a3000 ldr r3, [sl] <== NOT EXECUTED a000fd14: e1570123 cmp r7, r3, lsr #2 <== NOT EXECUTED a000fd18: 3afffff5 bcc a000fcf4 <IMFS_memfile_remove+0xb8> <== NOT EXECUTED
if ( p[j] ) {
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
}
}
memfile_free_blocks_in_table(
a000fd1c: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED a000fd20: e1a01005 mov r1, r5 <== NOT EXECUTED
memfile_free_blocks_in_table( &info->doubly_indirect, to_free );
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
a000fd24: e2866001 add r6, r6, #1 <== NOT EXECUTED
for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {
if ( p[j] ) {
memfile_free_blocks_in_table( (block_p **)&p[j], to_free);
}
}
memfile_free_blocks_in_table(
a000fd28: e0800009 add r0, r0, r9 <== NOT EXECUTED a000fd2c: ebffffae bl a000fbec <memfile_free_blocks_in_table> <== NOT EXECUTED
memfile_free_blocks_in_table( &info->doubly_indirect, to_free );
}
if ( info->triply_indirect ) {
for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {
a000fd30: e59a3000 ldr r3, [sl] <== NOT EXECUTED a000fd34: e1560123 cmp r6, r3, lsr #2 <== NOT EXECUTED a000fd38: 3affffe5 bcc a000fcd4 <IMFS_memfile_remove+0x98> <== NOT EXECUTED
}
}
memfile_free_blocks_in_table(
(block_p **)&info->triply_indirect[i], to_free );
}
memfile_free_blocks_in_table(
a000fd3c: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED a000fd40: e1a01005 mov r1, r5 <== NOT EXECUTED a000fd44: ebffffa8 bl a000fbec <memfile_free_blocks_in_table> <== NOT EXECUTED
(block_p **)&info->triply_indirect, to_free );
}
return 0;
}
a000fd48: e3a00000 mov r0, #0 <== NOT EXECUTED
a000fd4c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
a000fd54 <IMFS_memfile_remove_block>:
*/
MEMFILE_STATIC int IMFS_memfile_remove_block(
IMFS_jnode_t *the_jnode,
unsigned int block
)
{
a000fd54: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
block_p *block_ptr;
block_p ptr;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
a000fd58: e3a02000 mov r2, #0 <== NOT EXECUTED a000fd5c: ebfffe8d bl a000f798 <IMFS_memfile_get_block_pointer> <== NOT EXECUTED
IMFS_assert( block_ptr );
ptr = *block_ptr;
*block_ptr = 0;
a000fd60: e3a02000 mov r2, #0 <== NOT EXECUTED
)
{
block_p *block_ptr;
block_p ptr;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
a000fd64: e1a03000 mov r3, r0 <== NOT EXECUTED
IMFS_assert( block_ptr );
ptr = *block_ptr;
a000fd68: e5900000 ldr r0, [r0] <== NOT EXECUTED
*block_ptr = 0;
a000fd6c: e5832000 str r2, [r3] <== NOT EXECUTED
memfile_free_block( ptr );
a000fd70: ebffff95 bl a000fbcc <memfile_free_block> <== NOT EXECUTED
return 1;
}
a000fd74: e3a00001 mov r0, #1 <== NOT EXECUTED
a000fd78: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000fe98 <IMFS_memfile_write>:
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
a000fe98: e92d4ff7 push {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr}<== NOT EXECUTED
a000fe9c: e1a06003 mov r6, r3 <== NOT EXECUTED
* If the last byte we are supposed to write is past the end of this
* in memory file, then extend the length.
*/
last_byte = start + my_length;
if ( last_byte > the_jnode->info.file.size ) {
a000fea0: e5903054 ldr r3, [r0, #84] ; 0x54 <== NOT EXECUTED
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
a000fea4: e59d8030 ldr r8, [sp, #48] ; 0x30 <== NOT EXECUTED a000fea8: e1a07001 mov r7, r1 <== NOT EXECUTED
* If the last byte we are supposed to write is past the end of this
* in memory file, then extend the length.
*/
last_byte = start + my_length;
if ( last_byte > the_jnode->info.file.size ) {
a000feac: e3530000 cmp r3, #0 <== NOT EXECUTED
IMFS_jnode_t *the_jnode,
off_t start,
const unsigned char *source,
unsigned int length
)
{
a000feb0: e1a04000 mov r4, r0 <== NOT EXECUTED a000feb4: e1a0a002 mov sl, r2 <== NOT EXECUTED
/*
* If the last byte we are supposed to write is past the end of this
* in memory file, then extend the length.
*/
last_byte = start + my_length;
a000feb8: e0881001 add r1, r8, r1 <== NOT EXECUTED
if ( last_byte > the_jnode->info.file.size ) {
a000febc: ba000003 blt a000fed0 <IMFS_memfile_write+0x38> <== NOT EXECUTED a000fec0: 1a00000c bne a000fef8 <IMFS_memfile_write+0x60> <== NOT EXECUTED a000fec4: e5903050 ldr r3, [r0, #80] ; 0x50 <== NOT EXECUTED a000fec8: e1530001 cmp r3, r1 <== NOT EXECUTED a000fecc: 2a000009 bcs a000fef8 <IMFS_memfile_write+0x60> <== NOT EXECUTED
status = IMFS_memfile_extend( the_jnode, last_byte );
a000fed0: e1a00004 mov r0, r4 <== NOT EXECUTED a000fed4: e3a02000 mov r2, #0 <== NOT EXECUTED a000fed8: ebffffa7 bl a000fd7c <IMFS_memfile_extend> <== NOT EXECUTED
if ( status )
a000fedc: e3500000 cmp r0, #0 <== NOT EXECUTED a000fee0: 0a000004 beq a000fef8 <IMFS_memfile_write+0x60> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
a000fee4: eb000460 bl a001106c <__errno> <== NOT EXECUTED a000fee8: e3a0301c mov r3, #28 <== NOT EXECUTED a000feec: e5803000 str r3, [r0] <== NOT EXECUTED a000fef0: e3e05000 mvn r5, #0 <== NOT EXECUTED a000fef4: ea00004d b a0010030 <IMFS_memfile_write+0x198> <== NOT EXECUTED
*/
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
a000fef8: e59f3138 ldr r3, [pc, #312] ; a0010038 <IMFS_memfile_write+0x1a0><== NOT EXECUTED a000fefc: e1a00007 mov r0, r7 <== NOT EXECUTED a000ff00: e1a0100a mov r1, sl <== NOT EXECUTED a000ff04: e5939000 ldr r9, [r3] <== NOT EXECUTED a000ff08: e1a0b009 mov fp, r9 <== NOT EXECUTED a000ff0c: e1a0cfcb asr ip, fp, #31 <== NOT EXECUTED a000ff10: e1a0300c mov r3, ip <== NOT EXECUTED a000ff14: e1a0200b mov r2, fp <== NOT EXECUTED a000ff18: e58dc000 str ip, [sp] <== NOT EXECUTED a000ff1c: eb00140e bl a0014f5c <__moddi3> <== NOT EXECUTED
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
a000ff20: e59dc000 ldr ip, [sp] <== NOT EXECUTED
*/
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
a000ff24: e1a05000 mov r5, r0 <== NOT EXECUTED
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
a000ff28: e1a0100a mov r1, sl <== NOT EXECUTED a000ff2c: e1a00007 mov r0, r7 <== NOT EXECUTED a000ff30: e1a0200b mov r2, fp <== NOT EXECUTED a000ff34: e1a0300c mov r3, ip <== NOT EXECUTED a000ff38: eb0012da bl a0014aa8 <__divdi3> <== NOT EXECUTED
if ( start_offset ) {
a000ff3c: e3550000 cmp r5, #0 <== NOT EXECUTED
/*
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
a000ff40: e1a07000 mov r7, r0 <== NOT EXECUTED
if ( start_offset ) {
a000ff44: 0a000012 beq a000ff94 <IMFS_memfile_write+0xfc> <== NOT EXECUTED
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
a000ff48: e1a00004 mov r0, r4 <== NOT EXECUTED a000ff4c: e1a01007 mov r1, r7 <== NOT EXECUTED a000ff50: e3a02000 mov r2, #0 <== NOT EXECUTED a000ff54: ebfffe0f bl a000f798 <IMFS_memfile_get_block_pointer> <== NOT EXECUTED
if ( !block_ptr )
a000ff58: e3500000 cmp r0, #0 <== NOT EXECUTED
return copied;
a000ff5c: 01a05000 moveq r5, r0 <== NOT EXECUTED
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
if ( to_copy > my_length )
to_copy = my_length;
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
if ( !block_ptr )
a000ff60: 0a000032 beq a0010030 <IMFS_memfile_write+0x198> <== NOT EXECUTED
block,
to_copy,
src
);
#endif
memcpy( &(*block_ptr)[ start_offset ], src, to_copy );
a000ff64: e5900000 ldr r0, [r0] <== NOT EXECUTED
* Phase 1: possibly the last part of one block
*/
start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;
block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;
if ( start_offset ) {
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;
a000ff68: e065a009 rsb sl, r5, r9 <== NOT EXECUTED a000ff6c: e15a0008 cmp sl, r8 <== NOT EXECUTED a000ff70: 21a0a008 movcs sl, r8 <== NOT EXECUTED
block,
to_copy,
src
);
#endif
memcpy( &(*block_ptr)[ start_offset ], src, to_copy );
a000ff74: e0800005 add r0, r0, r5 <== NOT EXECUTED a000ff78: e1a01006 mov r1, r6 <== NOT EXECUTED a000ff7c: e1a0200a mov r2, sl <== NOT EXECUTED a000ff80: eb000667 bl a0011924 <memcpy> <== NOT EXECUTED
src += to_copy;
a000ff84: e086600a add r6, r6, sl <== NOT EXECUTED
block++;
a000ff88: e2877001 add r7, r7, #1 <== NOT EXECUTED
my_length -= to_copy;
a000ff8c: e06a8008 rsb r8, sl, r8 <== NOT EXECUTED
copied += to_copy;
a000ff90: e1a0500a mov r5, sl <== NOT EXECUTED
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
a000ff94: e59f909c ldr r9, [pc, #156] ; a0010038 <IMFS_memfile_write+0x1a0><== NOT EXECUTED a000ff98: e599a000 ldr sl, [r9] <== NOT EXECUTED
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
a000ff9c: ea00000d b a000ffd8 <IMFS_memfile_write+0x140> <== NOT EXECUTED
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
a000ffa0: e1a00004 mov r0, r4 <== NOT EXECUTED a000ffa4: e1a01007 mov r1, r7 <== NOT EXECUTED a000ffa8: e3a02000 mov r2, #0 <== NOT EXECUTED a000ffac: ebfffdf9 bl a000f798 <IMFS_memfile_get_block_pointer> <== NOT EXECUTED
if ( !block_ptr )
a000ffb0: e3500000 cmp r0, #0 <== NOT EXECUTED a000ffb4: 0a00001d beq a0010030 <IMFS_memfile_write+0x198> <== NOT EXECUTED
return copied;
#if 0
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ 0 ], src, to_copy );
a000ffb8: e1a01006 mov r1, r6 <== NOT EXECUTED a000ffbc: e5900000 ldr r0, [r0] <== NOT EXECUTED a000ffc0: e1a0200a mov r2, sl <== NOT EXECUTED a000ffc4: eb000656 bl a0011924 <memcpy> <== NOT EXECUTED
src += to_copy;
a000ffc8: e086600a add r6, r6, sl <== NOT EXECUTED
block++;
a000ffcc: e2877001 add r7, r7, #1 <== NOT EXECUTED
my_length -= to_copy;
a000ffd0: e06a8008 rsb r8, sl, r8 <== NOT EXECUTED
* IMFS_memfile_write * * This routine writes the specified data buffer into the in memory * file pointed to by the_jnode. The file is extended as needed. */ MEMFILE_STATIC ssize_t IMFS_memfile_write(
a000ffd4: e085500a add r5, r5, sl <== NOT EXECUTED
/*
* Phase 2: all of zero of more blocks
*/
to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;
while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {
a000ffd8: e5993000 ldr r3, [r9] <== NOT EXECUTED a000ffdc: e1580003 cmp r8, r3 <== NOT EXECUTED a000ffe0: 2affffee bcs a000ffa0 <IMFS_memfile_write+0x108> <== NOT EXECUTED
* Phase 3: possibly the first part of one block
*/
IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );
to_copy = my_length;
if ( my_length ) {
a000ffe4: e3580000 cmp r8, #0 <== NOT EXECUTED a000ffe8: 0a00000a beq a0010018 <IMFS_memfile_write+0x180> <== NOT EXECUTED
block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
a000ffec: e1a00004 mov r0, r4 <== NOT EXECUTED a000fff0: e1a01007 mov r1, r7 <== NOT EXECUTED a000fff4: e3a02000 mov r2, #0 <== NOT EXECUTED a000fff8: ebfffde6 bl a000f798 <IMFS_memfile_get_block_pointer> <== NOT EXECUTED
if ( !block_ptr )
a000fffc: e3500000 cmp r0, #0 <== NOT EXECUTED a0010000: 0a00000a beq a0010030 <IMFS_memfile_write+0x198> <== NOT EXECUTED
return copied;
#if 0
fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
#endif
memcpy( &(*block_ptr)[ 0 ], src, my_length );
a0010004: e5900000 ldr r0, [r0] <== NOT EXECUTED a0010008: e1a01006 mov r1, r6 <== NOT EXECUTED a001000c: e1a02008 mov r2, r8 <== NOT EXECUTED a0010010: eb000643 bl a0011924 <memcpy> <== NOT EXECUTED
my_length = 0;
copied += to_copy;
a0010014: e0855008 add r5, r5, r8 <== NOT EXECUTED
}
IMFS_mtime_ctime_update( the_jnode );
a0010018: e28d0004 add r0, sp, #4 <== NOT EXECUTED a001001c: e3a01000 mov r1, #0 <== NOT EXECUTED a0010020: ebffd887 bl a0006244 <gettimeofday> <== NOT EXECUTED a0010024: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0010028: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED a001002c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED
return copied;
}
a0010030: e1a00005 mov r0, r5 <== NOT EXECUTED
a0010034: e8bd8ffe pop {r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}<== NOT EXECUTED
a0005aa4 <IMFS_mknod>:
const char *token, /* IN */
mode_t mode, /* IN */
dev_t dev, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
a0005aa4: e92d40f0 push {r4, r5, r6, r7, lr}
a0005aa8: e24dd040 sub sp, sp, #64 ; 0x40
a0005aac: e1a04001 mov r4, r1
a0005ab0: e1a07000 mov r7, r0
a0005ab4: e1a06002 mov r6, r2
a0005ab8: e1a05003 mov r5, r3
IMFS_jnode_t *new_node;
int result;
char new_name[ IMFS_NAME_MAX + 1 ];
IMFS_types_union info;
IMFS_get_token( token, strlen( token ), new_name, &result );
a0005abc: eb003154 bl a0012014 <strlen> a0005ac0: e28d2004 add r2, sp, #4 a0005ac4: e1a01000 mov r1, r0 a0005ac8: e28d303c add r3, sp, #60 ; 0x3c a0005acc: e1a00007 mov r0, r7 a0005ad0: eb001f36 bl a000d7b0 <IMFS_get_token>
/*
* Figure out what type of IMFS node this is.
*/
if ( S_ISDIR(mode) )
a0005ad4: e2041a0f and r1, r4, #61440 ; 0xf000 a0005ad8: e3510901 cmp r1, #16384 ; 0x4000
type = IMFS_DIRECTORY;
a0005adc: 03a01001 moveq r1, #1
IMFS_get_token( token, strlen( token ), new_name, &result );
/*
* Figure out what type of IMFS node this is.
*/
if ( S_ISDIR(mode) )
a0005ae0: 0a00000b beq a0005b14 <IMFS_mknod+0x70>
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
a0005ae4: e3510902 cmp r1, #32768 ; 0x8000
type = IMFS_MEMORY_FILE;
a0005ae8: 03a01005 moveq r1, #5
/*
* Figure out what type of IMFS node this is.
*/
if ( S_ISDIR(mode) )
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
a0005aec: 0a000008 beq a0005b14 <IMFS_mknod+0x70>
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
a0005af0: e3510a06 cmp r1, #24576 ; 0x6000 a0005af4: 13510a02 cmpne r1, #8192 ; 0x2000
type = IMFS_DEVICE;
rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor );
a0005af8: 058d6028 streq r6, [sp, #40] ; 0x28 a0005afc: 058d502c streq r5, [sp, #44] ; 0x2c
if ( S_ISDIR(mode) )
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
type = IMFS_DEVICE;
a0005b00: 03a01002 moveq r1, #2
*/
if ( S_ISDIR(mode) )
type = IMFS_DIRECTORY;
else if ( S_ISREG(mode) )
type = IMFS_MEMORY_FILE;
else if ( S_ISBLK(mode) || S_ISCHR(mode) ) {
a0005b04: 0a000002 beq a0005b14 <IMFS_mknod+0x70>
mode_t mode, /* IN */
dev_t dev, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN/OUT */
)
{
IMFS_token_types type = 0;
a0005b08: e3510a01 cmp r1, #4096 ; 0x1000 <== NOT EXECUTED a0005b0c: 03a01007 moveq r1, #7 <== NOT EXECUTED a0005b10: 13a01000 movne r1, #0 <== NOT EXECUTED
* was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node( pathloc, type, new_name, mode, &info );
a0005b14: e28d3028 add r3, sp, #40 ; 0x28 a0005b18: e58d3000 str r3, [sp] a0005b1c: e59d0054 ldr r0, [sp, #84] ; 0x54 a0005b20: e28d2004 add r2, sp, #4 a0005b24: e1a03004 mov r3, r4 a0005b28: eb001cb3 bl a000cdfc <IMFS_create_node>
if ( !new_node )
a0005b2c: e3500000 cmp r0, #0
rtems_set_errno_and_return_minus_one( ENOMEM );
return 0;
a0005b30: 13a00000 movne r0, #0
* added a new IMFS_create_root_node() so this path no longer
* existed. The result was simpler code which should not have
* this path.
*/
new_node = IMFS_create_node( pathloc, type, new_name, mode, &info );
if ( !new_node )
a0005b34: 1a000003 bne a0005b48 <IMFS_mknod+0xa4>
rtems_set_errno_and_return_minus_one( ENOMEM );
a0005b38: eb002d4b bl a001106c <__errno> <== NOT EXECUTED a0005b3c: e3a0300c mov r3, #12 <== NOT EXECUTED a0005b40: e5803000 str r3, [r0] <== NOT EXECUTED a0005b44: e3e00000 mvn r0, #0 <== NOT EXECUTED
return 0;
}
a0005b48: e28dd040 add sp, sp, #64 ; 0x40
a0005b4c: e8bd80f0 pop {r4, r5, r6, r7, pc}
a0005b50 <IMFS_mount>:
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
a0005b50: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED
#include <rtems/seterr.h>
int IMFS_mount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
a0005b54: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
a0005b58: e593204c ldr r2, [r3, #76] ; 0x4c <== NOT EXECUTED a0005b5c: e3520001 cmp r2, #1 <== NOT EXECUTED a0005b60: 0a000004 beq a0005b78 <IMFS_mount+0x28> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTDIR );
a0005b64: eb002d40 bl a001106c <__errno> <== NOT EXECUTED
a0005b68: e3a03014 mov r3, #20 <== NOT EXECUTED
a0005b6c: e5803000 str r3, [r0] <== NOT EXECUTED
a0005b70: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0005b74: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
/*
* Set mt_fs pointer to point to the mount table entry for
* the mounted file system.
*/
node->info.directory.mt_fs = mt_entry;
a0005b78: e583005c str r0, [r3, #92] ; 0x5c <== NOT EXECUTED
return 0;
a0005b7c: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a0005b80: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0005b84 <IMFS_node_type>:
)
{
IMFS_jnode_t *node;
node = pathloc->node_access;
return node->type;
a0005b84: e5903000 ldr r3, [r0] <== NOT EXECUTED
}
a0005b88: e593004c ldr r0, [r3, #76] ; 0x4c <== NOT EXECUTED a0005b8c: e12fff1e bx lr <== NOT EXECUTED
a00084e0 <IMFS_print_jnode>:
* This routine prints the contents of the specified jnode.
*/
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
a00084e0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
IMFS_assert( the_jnode );
fprintf(stdout, "%s", the_jnode->name );
a00084e4: e59f50e0 ldr r5, [pc, #224] ; a00085cc <IMFS_print_jnode+0xec><== NOT EXECUTED
* This routine prints the contents of the specified jnode.
*/
void IMFS_print_jnode(
IMFS_jnode_t *the_jnode
)
{
a00084e8: e1a04000 mov r4, r0 <== NOT EXECUTED
IMFS_assert( the_jnode );
fprintf(stdout, "%s", the_jnode->name );
a00084ec: e280000c add r0, r0, #12 <== NOT EXECUTED a00084f0: e5953000 ldr r3, [r5] <== NOT EXECUTED a00084f4: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a00084f8: eb0034bd bl a00157f4 <fputs> <== NOT EXECUTED
switch( the_jnode->type ) {
a00084fc: e594204c ldr r2, [r4, #76] ; 0x4c <== NOT EXECUTED a0008500: e2423001 sub r3, r2, #1 <== NOT EXECUTED a0008504: e3530006 cmp r3, #6 <== NOT EXECUTED a0008508: 979ff103 ldrls pc, [pc, r3, lsl #2] <== NOT EXECUTED a000850c: ea000026 b a00085ac <IMFS_print_jnode+0xcc> <== NOT EXECUTED a0008510: a000852c .word 0xa000852c <== NOT EXECUTED a0008514: a0008540 .word 0xa0008540 <== NOT EXECUTED a0008518: a000858c .word 0xa000858c <== NOT EXECUTED a000851c: a000858c .word 0xa000858c <== NOT EXECUTED a0008520: a0008574 .word 0xa0008574 <== NOT EXECUTED a0008524: a0008558 .word 0xa0008558 <== NOT EXECUTED a0008528: a0008598 .word 0xa0008598 <== NOT EXECUTED
case IMFS_DIRECTORY:
fprintf(stdout, "/" );
a000852c: e5953000 ldr r3, [r5] <== NOT EXECUTED a0008530: e3a0002f mov r0, #47 ; 0x2f <== NOT EXECUTED a0008534: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0008538: eb003478 bl a0015720 <fputc> <== NOT EXECUTED
break;
a000853c: ea00001f b a00085c0 <IMFS_print_jnode+0xe0> <== NOT EXECUTED
case IMFS_DEVICE:
fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",
a0008540: e5953000 ldr r3, [r5] <== NOT EXECUTED a0008544: e59f1084 ldr r1, [pc, #132] ; a00085d0 <IMFS_print_jnode+0xf0><== NOT EXECUTED a0008548: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a000854c: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0008550: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED a0008554: ea000004 b a000856c <IMFS_print_jnode+0x8c> <== NOT EXECUTED
the_jnode->info.device.major, the_jnode->info.device.minor );
break;
case IMFS_LINEAR_FILE:
fprintf(stdout, " (file %" PRId32 " %p)",
a0008558: e5953000 ldr r3, [r5] <== NOT EXECUTED a000855c: e59f1070 ldr r1, [pc, #112] ; a00085d4 <IMFS_print_jnode+0xf4><== NOT EXECUTED a0008560: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0008564: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0008568: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED a000856c: eb00344b bl a00156a0 <fprintf> <== NOT EXECUTED
(uint32_t)the_jnode->info.linearfile.size,
the_jnode->info.linearfile.direct
);
break;
a0008570: ea000012 b a00085c0 <IMFS_print_jnode+0xe0> <== NOT EXECUTED
the_jnode->info.file.indirect,
the_jnode->info.file.doubly_indirect,
the_jnode->info.file.triply_indirect
);
#else
fprintf(stdout, " (file %" PRId32 ")",
a0008574: e5953000 ldr r3, [r5] <== NOT EXECUTED a0008578: e59f1058 ldr r1, [pc, #88] ; a00085d8 <IMFS_print_jnode+0xf8><== NOT EXECUTED a000857c: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0008580: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0008584: eb003445 bl a00156a0 <fprintf> <== NOT EXECUTED
(uint32_t)the_jnode->info.file.size );
#endif
break;
a0008588: ea00000c b a00085c0 <IMFS_print_jnode+0xe0> <== NOT EXECUTED
case IMFS_HARD_LINK:
fprintf(stdout, " links not printed\n" );
return;
case IMFS_SYM_LINK:
fprintf(stdout, " links not printed\n" );
a000858c: e5953000 ldr r3, [r5] <== NOT EXECUTED a0008590: e59f0044 ldr r0, [pc, #68] ; a00085dc <IMFS_print_jnode+0xfc><== NOT EXECUTED a0008594: ea000001 b a00085a0 <IMFS_print_jnode+0xc0> <== NOT EXECUTED
return;
case IMFS_FIFO:
fprintf(stdout, " FIFO not printed\n" );
a0008598: e5953000 ldr r3, [r5] <== NOT EXECUTED a000859c: e59f003c ldr r0, [pc, #60] ; a00085e0 <IMFS_print_jnode+0x100><== NOT EXECUTED a00085a0: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
return;
}
puts("");
}
a00085a4: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
case IMFS_SYM_LINK:
fprintf(stdout, " links not printed\n" );
return;
case IMFS_FIFO:
fprintf(stdout, " FIFO not printed\n" );
a00085a8: ea003491 b a00157f4 <fputs> <== NOT EXECUTED
return;
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
a00085ac: e5953000 ldr r3, [r5] <== NOT EXECUTED a00085b0: e59f102c ldr r1, [pc, #44] ; a00085e4 <IMFS_print_jnode+0x104><== NOT EXECUTED a00085b4: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED
return;
}
puts("");
}
a00085b8: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
case IMFS_FIFO:
fprintf(stdout, " FIFO not printed\n" );
return;
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
a00085bc: ea003437 b a00156a0 <fprintf> <== NOT EXECUTED
return;
}
puts("");
a00085c0: e59f0020 ldr r0, [pc, #32] ; a00085e8 <IMFS_print_jnode+0x108><== NOT EXECUTED
}
a00085c4: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
default:
fprintf(stdout, " bad type %d\n", the_jnode->type );
return;
}
puts("");
a00085c8: ea003b63 b a001735c <puts> <== NOT EXECUTED
a0005b90 <IMFS_readlink>:
)
{
IMFS_jnode_t *node;
ssize_t i;
node = loc->node_access;
a0005b90: e590c000 ldr ip, [r0] <== NOT EXECUTED
IMFS_assert( node->type == IMFS_SYM_LINK );
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
a0005b94: e3a00000 mov r0, #0 <== NOT EXECUTED a0005b98: ea000001 b a0005ba4 <IMFS_readlink+0x14> <== NOT EXECUTED
buf[i] = node->info.sym_link.name[i];
a0005b9c: e7c13000 strb r3, [r1, r0] <== NOT EXECUTED
node = loc->node_access;
IMFS_assert( node->type == IMFS_SYM_LINK );
for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
a0005ba0: e2800001 add r0, r0, #1 <== NOT EXECUTED a0005ba4: e1500002 cmp r0, r2 <== NOT EXECUTED a0005ba8: 212fff1e bxcs lr <== NOT EXECUTED a0005bac: e59c3050 ldr r3, [ip, #80] ; 0x50 <== NOT EXECUTED a0005bb0: e7d33000 ldrb r3, [r3, r0] <== NOT EXECUTED a0005bb4: e3530000 cmp r3, #0 <== NOT EXECUTED a0005bb8: 1afffff7 bne a0005b9c <IMFS_readlink+0xc> <== NOT EXECUTED
buf[i] = node->info.sym_link.name[i];
return i;
}
a0005bbc: e12fff1e bx lr <== NOT EXECUTED
a0005bc0 <IMFS_rename>:
rtems_filesystem_location_info_t *old_parent_loc, /* IN */
rtems_filesystem_location_info_t *old_loc, /* IN */
rtems_filesystem_location_info_t *new_parent_loc, /* IN */
const char *new_name /* IN */
)
{
a0005bc0: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
IMFS_jnode_t *new_parent;
the_jnode = old_loc->node_access;
a0005bc4: e5914000 ldr r4, [r1] <== NOT EXECUTED
rtems_filesystem_location_info_t *old_parent_loc, /* IN */
rtems_filesystem_location_info_t *old_loc, /* IN */
rtems_filesystem_location_info_t *new_parent_loc, /* IN */
const char *new_name /* IN */
)
{
a0005bc8: e1a05002 mov r5, r2 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
IMFS_jnode_t *new_parent;
the_jnode = old_loc->node_access;
strncpy( the_jnode->name, new_name, IMFS_NAME_MAX );
a0005bcc: e1a01003 mov r1, r3 <== NOT EXECUTED a0005bd0: e284000c add r0, r4, #12 <== NOT EXECUTED a0005bd4: e3a02020 mov r2, #32 <== NOT EXECUTED a0005bd8: eb003125 bl a0012074 <strncpy> <== NOT EXECUTED
if ( the_jnode->Parent != NULL )
a0005bdc: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0005be0: e3530000 cmp r3, #0 <== NOT EXECUTED a0005be4: 0a000001 beq a0005bf0 <IMFS_rename+0x30> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
a0005be8: e1a00004 mov r0, r4 <== NOT EXECUTED a0005bec: eb001054 bl a0009d44 <_Chain_Extract> <== NOT EXECUTED
rtems_chain_extract( (rtems_chain_node *) the_jnode );
new_parent = new_parent_loc->node_access;
a0005bf0: e5950000 ldr r0, [r5] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
a0005bf4: e1a01004 mov r1, r4 <== NOT EXECUTED
the_jnode->Parent = new_parent;
a0005bf8: e5840008 str r0, [r4, #8] <== NOT EXECUTED a0005bfc: e2800050 add r0, r0, #80 ; 0x50 <== NOT EXECUTED a0005c00: eb001044 bl a0009d18 <_Chain_Append> <== NOT EXECUTED
rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
/*
* Update the time.
*/
IMFS_update_ctime( the_jnode );
a0005c04: e1a0000d mov r0, sp <== NOT EXECUTED a0005c08: e3a01000 mov r1, #0 <== NOT EXECUTED a0005c0c: eb00018c bl a0006244 <gettimeofday> <== NOT EXECUTED a0005c10: e59d3000 ldr r3, [sp] <== NOT EXECUTED
return 0;
}
a0005c14: e3a00000 mov r0, #0 <== NOT EXECUTED
rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node );
/*
* Update the time.
*/
IMFS_update_ctime( the_jnode );
a0005c18: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED
return 0;
}
a0005c1c: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED
a000d93c <IMFS_rmnod>:
int IMFS_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
a000d93c: e92d4010 push {r4, lr} <== NOT EXECUTED
IMFS_jnode_t *jnode = (IMFS_jnode_t *) pathloc->node_access;
a000d940: e5914000 ldr r4, [r1] <== NOT EXECUTED
IMFS_create_orphan( jnode );
a000d944: e1a00004 mov r0, r4 <== NOT EXECUTED a000d948: ebffffce bl a000d888 <IMFS_create_orphan> <== NOT EXECUTED
IMFS_check_node_remove( jnode );
a000d94c: e1a00004 mov r0, r4 <== NOT EXECUTED a000d950: ebffffdd bl a000d8cc <IMFS_check_node_remove> <== NOT EXECUTED
return 0;
}
a000d954: e3a00000 mov r0, #0 <== NOT EXECUTED
a000d958: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000d95c <IMFS_stat>:
{
IMFS_fs_info_t *fs_info;
IMFS_jnode_t *the_jnode;
IMFS_device_t *io;
the_jnode = loc->node_access;
a000d95c: e5903000 ldr r3, [r0] <== NOT EXECUTED
int IMFS_stat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
a000d960: e92d4800 push {fp, lr} <== NOT EXECUTED
IMFS_device_t *io;
the_jnode = loc->node_access;
switch ( the_jnode->type ) {
a000d964: e593204c ldr r2, [r3, #76] ; 0x4c <== NOT EXECUTED a000d968: e2422002 sub r2, r2, #2 <== NOT EXECUTED a000d96c: e3520005 cmp r2, #5 <== NOT EXECUTED a000d970: 979ff102 ldrls pc, [pc, r2, lsl #2] <== NOT EXECUTED a000d974: ea000012 b a000d9c4 <IMFS_stat+0x68> <== NOT EXECUTED a000d978: a000d990 .word 0xa000d990 <== NOT EXECUTED a000d97c: a000d9c4 .word 0xa000d9c4 <== NOT EXECUTED a000d980: a000d9b0 .word 0xa000d9b0 <== NOT EXECUTED a000d984: a000d9a4 .word 0xa000d9a4 <== NOT EXECUTED a000d988: a000d9a4 .word 0xa000d9a4 <== NOT EXECUTED a000d98c: a000d9b0 .word 0xa000d9b0 <== NOT EXECUTED
case IMFS_DEVICE:
io = &the_jnode->info.device;
buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor );
a000d990: e5932054 ldr r2, [r3, #84] ; 0x54 <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
a000d994: e593c050 ldr ip, [r3, #80] ; 0x50 <== NOT EXECUTED a000d998: e581201c str r2, [r1, #28] <== NOT EXECUTED a000d99c: e581c018 str ip, [r1, #24] <== NOT EXECUTED
break;
a000d9a0: ea00000c b a000d9d8 <IMFS_stat+0x7c> <== NOT EXECUTED
case IMFS_LINEAR_FILE:
case IMFS_MEMORY_FILE:
buf->st_size = the_jnode->info.file.size;
a000d9a4: e283c050 add ip, r3, #80 ; 0x50 <== NOT EXECUTED
a000d9a8: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED
a000d9ac: ea000001 b a000d9b8 <IMFS_stat+0x5c> <== NOT EXECUTED
case IMFS_SYM_LINK:
buf->st_size = 0;
break;
case IMFS_FIFO:
buf->st_size = 0;
a000d9b0: e3a0b000 mov fp, #0 <== NOT EXECUTED a000d9b4: e3a0c000 mov ip, #0 <== NOT EXECUTED a000d9b8: e581b020 str fp, [r1, #32] <== NOT EXECUTED a000d9bc: e581c024 str ip, [r1, #36] ; 0x24 <== NOT EXECUTED
break;
a000d9c0: ea000004 b a000d9d8 <IMFS_stat+0x7c> <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
a000d9c4: eb000da8 bl a001106c <__errno> <== NOT EXECUTED
a000d9c8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED
a000d9cc: e5803000 str r3, [r0] <== NOT EXECUTED
a000d9d0: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000d9d4: e8bd8800 pop {fp, pc} <== NOT EXECUTED
/*
* The device number of the IMFS is the major number and the minor is the
* instance.
*/
fs_info = loc->mt_entry->fs_info;
a000d9d8: e5902010 ldr r2, [r0, #16] <== NOT EXECUTED a000d9dc: e59f0054 ldr r0, [pc, #84] ; a000da38 <IMFS_stat+0xdc> <== NOT EXECUTED
buf->st_dev =
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
a000d9e0: e5922034 ldr r2, [r2, #52] ; 0x34 <== NOT EXECUTED a000d9e4: e5922000 ldr r2, [r2] <== NOT EXECUTED
/* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev =
a000d9e8: e5810000 str r0, [r1] <== NOT EXECUTED
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
buf->st_ctime = the_jnode->stat_ctime;
return 0;
a000d9ec: e3a00000 mov r0, #0 <== NOT EXECUTED
/* * The device number of the IMFS is the major number and the minor is the * instance. */ fs_info = loc->mt_entry->fs_info; buf->st_dev =
a000d9f0: e5812004 str r2, [r1, #4] <== NOT EXECUTED
rtems_filesystem_make_dev_t( IMFS_DEVICE_MAJOR_NUMBER, fs_info->instance );
buf->st_mode = the_jnode->st_mode;
a000d9f4: e5932030 ldr r2, [r3, #48] ; 0x30 <== NOT EXECUTED a000d9f8: e581200c str r2, [r1, #12] <== NOT EXECUTED
buf->st_nlink = the_jnode->st_nlink;
a000d9fc: e1d323b4 ldrh r2, [r3, #52] ; 0x34 <== NOT EXECUTED a000da00: e1c121b0 strh r2, [r1, #16] <== NOT EXECUTED
buf->st_ino = the_jnode->st_ino;
a000da04: e5932038 ldr r2, [r3, #56] ; 0x38 <== NOT EXECUTED a000da08: e5812008 str r2, [r1, #8] <== NOT EXECUTED
buf->st_uid = the_jnode->st_uid;
a000da0c: e1d323bc ldrh r2, [r3, #60] ; 0x3c <== NOT EXECUTED a000da10: e1c121b2 strh r2, [r1, #18] <== NOT EXECUTED
buf->st_gid = the_jnode->st_gid;
a000da14: e1d323be ldrh r2, [r3, #62] ; 0x3e <== NOT EXECUTED a000da18: e1c121b4 strh r2, [r1, #20] <== NOT EXECUTED
buf->st_atime = the_jnode->stat_atime;
a000da1c: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED a000da20: e5812028 str r2, [r1, #40] ; 0x28 <== NOT EXECUTED
buf->st_mtime = the_jnode->stat_mtime;
a000da24: e5932044 ldr r2, [r3, #68] ; 0x44 <== NOT EXECUTED
buf->st_ctime = the_jnode->stat_ctime;
a000da28: e5933048 ldr r3, [r3, #72] ; 0x48 <== NOT EXECUTED
buf->st_ino = the_jnode->st_ino;
buf->st_uid = the_jnode->st_uid;
buf->st_gid = the_jnode->st_gid;
buf->st_atime = the_jnode->stat_atime;
buf->st_mtime = the_jnode->stat_mtime;
a000da2c: e5812030 str r2, [r1, #48] ; 0x30 <== NOT EXECUTED
buf->st_ctime = the_jnode->stat_ctime;
a000da30: e5813038 str r3, [r1, #56] ; 0x38 <== NOT EXECUTED
return 0;
}
a000da34: e8bd8800 pop {fp, pc} <== NOT EXECUTED
a0005c20 <IMFS_symlink>:
int IMFS_symlink(
rtems_filesystem_location_info_t *parent_loc,
const char *link_name,
const char *node_name
)
{
a0005c20: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a0005c24: e1a05000 mov r5, r0 <== NOT EXECUTED
a0005c28: e24dd040 sub sp, sp, #64 ; 0x40 <== NOT EXECUTED
int i;
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( node_name, strlen( node_name ), new_name, &i );
a0005c2c: e1a00002 mov r0, r2 <== NOT EXECUTED
int IMFS_symlink(
rtems_filesystem_location_info_t *parent_loc,
const char *link_name,
const char *node_name
)
{
a0005c30: e1a06001 mov r6, r1 <== NOT EXECUTED a0005c34: e1a07002 mov r7, r2 <== NOT EXECUTED
int i;
/*
* Remove any separators at the end of the string.
*/
IMFS_get_token( node_name, strlen( node_name ), new_name, &i );
a0005c38: eb0030f5 bl a0012014 <strlen> <== NOT EXECUTED a0005c3c: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0005c40: e1a01000 mov r1, r0 <== NOT EXECUTED a0005c44: e1a02004 mov r2, r4 <== NOT EXECUTED a0005c48: e28d303c add r3, sp, #60 ; 0x3c <== NOT EXECUTED a0005c4c: e1a00007 mov r0, r7 <== NOT EXECUTED a0005c50: eb001ed6 bl a000d7b0 <IMFS_get_token> <== NOT EXECUTED
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
a0005c54: e1a00006 mov r0, r6 <== NOT EXECUTED a0005c58: eb0030d9 bl a0011fc4 <strdup> <== NOT EXECUTED
if (info.sym_link.name == NULL) {
a0005c5c: e3500000 cmp r0, #0 <== NOT EXECUTED
IMFS_get_token( node_name, strlen( node_name ), new_name, &i );
/*
* Duplicate link name
*/
info.sym_link.name = strdup(link_name);
a0005c60: e58d0028 str r0, [sp, #40] ; 0x28 <== NOT EXECUTED
if (info.sym_link.name == NULL) {
a0005c64: 0a00000b beq a0005c98 <IMFS_symlink+0x78> <== NOT EXECUTED
new_node = IMFS_create_node(
parent_loc,
IMFS_SYM_LINK,
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
a0005c68: e28d3028 add r3, sp, #40 ; 0x28 <== NOT EXECUTED
* was ONLY passed a NULL when we created the root node. We * added a new IMFS_create_root_node() so this path no longer * existed. The result was simpler code which should not have * this path. */ new_node = IMFS_create_node(
a0005c6c: e58d3000 str r3, [sp] <== NOT EXECUTED a0005c70: e1a00005 mov r0, r5 <== NOT EXECUTED a0005c74: e3a01004 mov r1, #4 <== NOT EXECUTED a0005c78: e1a02004 mov r2, r4 <== NOT EXECUTED a0005c7c: e59f302c ldr r3, [pc, #44] ; a0005cb0 <IMFS_symlink+0x90> <== NOT EXECUTED a0005c80: eb001c5d bl a000cdfc <IMFS_create_node> <== NOT EXECUTED
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if (new_node == NULL) {
a0005c84: e3500000 cmp r0, #0 <== NOT EXECUTED
free(info.sym_link.name);
rtems_set_errno_and_return_minus_one(ENOMEM);
}
return 0;
a0005c88: 13a00000 movne r0, #0 <== NOT EXECUTED
new_name,
( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )),
&info
);
if (new_node == NULL) {
a0005c8c: 1a000005 bne a0005ca8 <IMFS_symlink+0x88> <== NOT EXECUTED
free(info.sym_link.name);
a0005c90: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED a0005c94: eb000135 bl a0006170 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(ENOMEM);
a0005c98: eb002cf3 bl a001106c <__errno> <== NOT EXECUTED a0005c9c: e3a0300c mov r3, #12 <== NOT EXECUTED a0005ca0: e5803000 str r3, [r0] <== NOT EXECUTED a0005ca4: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
return 0;
}
a0005ca8: e28dd040 add sp, sp, #64 ; 0x40 <== NOT EXECUTED
a0005cac: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0005cb4 <IMFS_unlink>:
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
a0005cb4: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
IMFS_jnode_t *node;
rtems_filesystem_location_info_t the_link;
int result = 0;
node = loc->node_access;
a0005cb8: e5915000 ldr r5, [r1] <== NOT EXECUTED
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
a0005cbc: e24dd01c sub sp, sp, #28 <== NOT EXECUTED a0005cc0: e1a06000 mov r6, r0 <== NOT EXECUTED
/*
* If this is the last last pointer to the node
* free the node.
*/
if ( node->type == IMFS_HARD_LINK ) {
a0005cc4: e595304c ldr r3, [r5, #76] ; 0x4c <== NOT EXECUTED
int IMFS_unlink(
rtems_filesystem_location_info_t *parentloc, /* IN */
rtems_filesystem_location_info_t *loc /* IN */
)
{
a0005cc8: e1a04001 mov r4, r1 <== NOT EXECUTED
/*
* If this is the last last pointer to the node
* free the node.
*/
if ( node->type == IMFS_HARD_LINK ) {
a0005ccc: e3530003 cmp r3, #3 <== NOT EXECUTED a0005cd0: 1a000024 bne a0005d68 <IMFS_unlink+0xb4> <== NOT EXECUTED
if ( !node->info.hard_link.link_node )
a0005cd4: e595e050 ldr lr, [r5, #80] ; 0x50 <== NOT EXECUTED a0005cd8: e35e0000 cmp lr, #0 <== NOT EXECUTED a0005cdc: 1a000003 bne a0005cf0 <IMFS_unlink+0x3c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0005ce0: eb002ce1 bl a001106c <__errno> <== NOT EXECUTED a0005ce4: e3a03016 mov r3, #22 <== NOT EXECUTED a0005ce8: e5803000 str r3, [r0] <== NOT EXECUTED a0005cec: ea000023 b a0005d80 <IMFS_unlink+0xcc> <== NOT EXECUTED
the_link = *loc;
a0005cf0: e1a0c00d mov ip, sp <== NOT EXECUTED
a0005cf4: e1a07001 mov r7, r1 <== NOT EXECUTED
a0005cf8: e8b7000f ldm r7!, {r0, r1, r2, r3} <== NOT EXECUTED
a0005cfc: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0005d00: e5973000 ldr r3, [r7] <== NOT EXECUTED
the_link.node_access = node->info.hard_link.link_node;
a0005d04: e28d701c add r7, sp, #28 <== NOT EXECUTED a0005d08: e527e01c str lr, [r7, #-28]! <== NOT EXECUTED
IMFS_Set_handlers( &the_link );
a0005d0c: e1a0000d mov r0, sp <== NOT EXECUTED
if ( node->type == IMFS_HARD_LINK ) {
if ( !node->info.hard_link.link_node )
rtems_set_errno_and_return_minus_one( EINVAL );
the_link = *loc;
a0005d10: e58c3000 str r3, [ip] <== NOT EXECUTED
the_link.node_access = node->info.hard_link.link_node;
IMFS_Set_handlers( &the_link );
a0005d14: eb001c98 bl a000cf7c <IMFS_Set_handlers> <== NOT EXECUTED
/*
* If removing the last hard link to a node, then we need
* to remove the node that is a link and the node itself.
*/
if ( node->info.hard_link.link_node->st_nlink == 1)
a0005d18: e5953050 ldr r3, [r5, #80] ; 0x50 <== NOT EXECUTED a0005d1c: e1d323b4 ldrh r2, [r3, #52] ; 0x34 <== NOT EXECUTED a0005d20: e3520001 cmp r2, #1 <== NOT EXECUTED a0005d24: 1a000007 bne a0005d48 <IMFS_unlink+0x94> <== NOT EXECUTED
{
result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
a0005d28: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0005d2c: e1a00006 mov r0, r6 <== NOT EXECUTED a0005d30: e1a0100d mov r1, sp <== NOT EXECUTED a0005d34: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a0005d38: e12fff33 blx r3 <== NOT EXECUTED
if ( result != 0 )
a0005d3c: e3500000 cmp r0, #0 <== NOT EXECUTED a0005d40: 0a000008 beq a0005d68 <IMFS_unlink+0xb4> <== NOT EXECUTED a0005d44: ea00000d b a0005d80 <IMFS_unlink+0xcc> <== NOT EXECUTED
return -1;
}
else
{
node->info.hard_link.link_node->st_nlink --;
a0005d48: e2422001 sub r2, r2, #1 <== NOT EXECUTED a0005d4c: e1c323b4 strh r2, [r3, #52] ; 0x34 <== NOT EXECUTED
IMFS_update_ctime( node->info.hard_link.link_node );
a0005d50: e28d0014 add r0, sp, #20 <== NOT EXECUTED a0005d54: e3a01000 mov r1, #0 <== NOT EXECUTED a0005d58: eb000139 bl a0006244 <gettimeofday> <== NOT EXECUTED a0005d5c: e5953050 ldr r3, [r5, #80] ; 0x50 <== NOT EXECUTED a0005d60: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED a0005d64: e5832048 str r2, [r3, #72] ; 0x48 <== NOT EXECUTED
/*
* Now actually free the node we were asked to free.
*/
result = (*loc->handlers->rmnod_h)( parentloc, loc );
a0005d68: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0005d6c: e1a00006 mov r0, r6 <== NOT EXECUTED a0005d70: e1a01004 mov r1, r4 <== NOT EXECUTED a0005d74: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a0005d78: e12fff33 blx r3 <== NOT EXECUTED
return result;
a0005d7c: ea000000 b a0005d84 <IMFS_unlink+0xd0> <== NOT EXECUTED
if ( node->info.hard_link.link_node->st_nlink == 1)
{
result = (*the_link.handlers->rmnod_h)( parentloc, &the_link );
if ( result != 0 )
return -1;
a0005d80: e3e00000 mvn r0, #0 <== NOT EXECUTED
*/
result = (*loc->handlers->rmnod_h)( parentloc, loc );
return result;
}
a0005d84: e28dd01c add sp, sp, #28 <== NOT EXECUTED
a0005d88: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0005d8c <IMFS_unmount>:
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
IMFS_jnode_t *node;
node = mt_entry->mt_point_node.node_access;
a0005d8c: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED
#include <rtems/seterr.h>
int IMFS_unmount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
a0005d90: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
/*
* Is the node that we are mounting onto a directory node ?
*/
if ( node->type != IMFS_DIRECTORY )
a0005d94: e593204c ldr r2, [r3, #76] ; 0x4c <== NOT EXECUTED a0005d98: e3520001 cmp r2, #1 <== NOT EXECUTED a0005d9c: 0a000002 beq a0005dac <IMFS_unmount+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTDIR );
a0005da0: eb002cb1 bl a001106c <__errno> <== NOT EXECUTED a0005da4: e3a03014 mov r3, #20 <== NOT EXECUTED a0005da8: ea000004 b a0005dc0 <IMFS_unmount+0x34> <== NOT EXECUTED
/*
* Did the node indicate that there was a directory mounted here?
*/
if ( node->info.directory.mt_fs == NULL )
a0005dac: e593205c ldr r2, [r3, #92] ; 0x5c <== NOT EXECUTED a0005db0: e3520000 cmp r2, #0 <== NOT EXECUTED a0005db4: 1a000004 bne a0005dcc <IMFS_unmount+0x40> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */
a0005db8: eb002cab bl a001106c <__errno> <== NOT EXECUTED
a0005dbc: e3a03016 mov r3, #22 <== NOT EXECUTED
a0005dc0: e5803000 str r3, [r0] <== NOT EXECUTED
a0005dc4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0005dc8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
/*
* Set the mt_fs pointer to indicate that there is no longer
* a file system mounted to this point.
*/
node->info.directory.mt_fs = NULL;
a0005dcc: e3a00000 mov r0, #0 <== NOT EXECUTED a0005dd0: e583005c str r0, [r3, #92] ; 0x5c <== NOT EXECUTED
return 0;
}
a0005dd4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0005dd8 <IMFS_utime>:
int IMFS_utime(
rtems_filesystem_location_info_t *pathloc, /* IN */
time_t actime, /* IN */
time_t modtime /* IN */
)
{
a0005dd8: e92d4010 push {r4, lr} <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
a0005ddc: e5904000 ldr r4, [r0] <== NOT EXECUTED
the_jnode->stat_atime = actime;
the_jnode->stat_mtime = modtime;
the_jnode->stat_ctime = time( NULL );
a0005de0: e3a00000 mov r0, #0 <== NOT EXECUTED
{
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
the_jnode->stat_atime = actime;
a0005de4: e5841040 str r1, [r4, #64] ; 0x40 <== NOT EXECUTED
the_jnode->stat_mtime = modtime;
a0005de8: e5842044 str r2, [r4, #68] ; 0x44 <== NOT EXECUTED
the_jnode->stat_ctime = time( NULL );
a0005dec: eb0030db bl a0012160 <time> <== NOT EXECUTED a0005df0: e5840048 str r0, [r4, #72] ; 0x48 <== NOT EXECUTED
return 0;
}
a0005df4: e3a00000 mov r0, #0 <== NOT EXECUTED
a0005df8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a00063f8 <RTEMS_Malloc_Initialize>:
)
{
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
a00063f8: e59f30d0 ldr r3, [pc, #208] ; a00064d0 <RTEMS_Malloc_Initialize+0xd8>
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
a00063fc: e92d4070 push {r4, r5, r6, lr}
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
a0006400: e5933000 ldr r3, [r3]
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
a0006404: e1a04000 mov r4, r0 a0006408: e1a05001 mov r5, r1
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
a000640c: e3530000 cmp r3, #0
void RTEMS_Malloc_Initialize(
void *heap_begin,
uintptr_t heap_size,
size_t sbrk_amount
)
{
a0006410: e1a06002 mov r6, r2
/*
* If configured, initialize the statistics support
*/
if ( rtems_malloc_statistics_helpers != NULL ) {
a0006414: 0a000001 beq a0006420 <RTEMS_Malloc_Initialize+0x28>
(*rtems_malloc_statistics_helpers->initialize)();
a0006418: e5933000 ldr r3, [r3] a000641c: e12fff33 blx r3
}
/*
* Initialize the garbage collection list to start with nothing on it.
*/
malloc_deferred_frees_initialize();
a0006420: ebffffe0 bl a00063a8 <malloc_deferred_frees_initialize>
/*
* Initialize the optional sbrk support for extending the heap
*/
if ( rtems_malloc_sbrk_helpers != NULL ) {
a0006424: e59f30a8 ldr r3, [pc, #168] ; a00064d4 <RTEMS_Malloc_Initialize+0xdc> a0006428: e5933000 ldr r3, [r3] a000642c: e3530000 cmp r3, #0
a0006430: 0a000005 beq a000644c <RTEMS_Malloc_Initialize+0x54>
heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
a0006434: e1a00004 mov r0, r4 <== NOT EXECUTED a0006438: e5933000 ldr r3, [r3] <== NOT EXECUTED a000643c: e1a01006 mov r1, r6 <== NOT EXECUTED a0006440: e12fff33 blx r3 <== NOT EXECUTED
heap_begin,
sbrk_amount
);
heap_size = (uintptr_t) sbrk_amount;
a0006444: e1a05006 mov r5, r6 <== NOT EXECUTED
/*
* Initialize the optional sbrk support for extending the heap
*/
if ( rtems_malloc_sbrk_helpers != NULL ) {
heap_begin = (*rtems_malloc_sbrk_helpers->initialize)(
a0006448: e1a04000 mov r4, r0 <== NOT EXECUTED
* of the time under UNIX because zero'ing memory when it is first
* given to a process eliminates the chance of a process seeing data
* left over from another process. This would be a security violation.
*/
if (
a000644c: e59f3084 ldr r3, [pc, #132] ; a00064d8 <RTEMS_Malloc_Initialize+0xe0> a0006450: e5d31000 ldrb r1, [r3] a0006454: e3510000 cmp r1, #0
a0006458: 1a000006 bne a0006478 <RTEMS_Malloc_Initialize+0x80>
!rtems_unified_work_area
&& rtems_configuration_get_do_zero_of_workspace()
a000645c: e59f3078 ldr r3, [pc, #120] ; a00064dc <RTEMS_Malloc_Initialize+0xe4> a0006460: e5d33028 ldrb r3, [r3, #40] ; 0x28 a0006464: e3530000 cmp r3, #0
a0006468: 0a000002 beq a0006478 <RTEMS_Malloc_Initialize+0x80>
) {
memset( heap_begin, 0, heap_size );
a000646c: e1a00004 mov r0, r4 a0006470: e1a02005 mov r2, r5 a0006474: eb002d61 bl a0011a00 <memset>
* Unfortunately we cannot use assert if this fails because if this
* has failed we do not have a heap and if we do not have a heap
* STDIO cannot work because there will be no buffers.
*/
if ( !rtems_unified_work_area ) {
a0006478: e59f3058 ldr r3, [pc, #88] ; a00064d8 <RTEMS_Malloc_Initialize+0xe0> a000647c: e5d33000 ldrb r3, [r3] a0006480: e3530000 cmp r3, #0
a0006484: 1a000009 bne a00064b0 <RTEMS_Malloc_Initialize+0xb8>
void *area_begin,
uintptr_t area_size,
uintptr_t page_size
)
{
return _Heap_Initialize( heap, area_begin, area_size, page_size );
a0006488: e59f3050 ldr r3, [pc, #80] ; a00064e0 <RTEMS_Malloc_Initialize+0xe8> a000648c: e1a01004 mov r1, r4 a0006490: e1a02005 mov r2, r5 a0006494: e5930000 ldr r0, [r3] a0006498: e3a03008 mov r3, #8 a000649c: eb000fcb bl a000a3d0 <_Heap_Initialize>
RTEMS_Malloc_Heap,
heap_begin,
heap_size,
CPU_HEAP_ALIGNMENT
);
if ( status == 0 ) {
a00064a0: e3500000 cmp r0, #0
a00064a4: 1a000001 bne a00064b0 <RTEMS_Malloc_Initialize+0xb8>
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
a00064a8: e280001a add r0, r0, #26 <== NOT EXECUTED a00064ac: eb000d5a bl a0009a1c <rtems_fatal_error_occurred> <== NOT EXECUTED
}
}
MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) );
a00064b0: e59f3028 ldr r3, [pc, #40] ; a00064e0 <RTEMS_Malloc_Initialize+0xe8> a00064b4: e59f4028 ldr r4, [pc, #40] ; a00064e4 <RTEMS_Malloc_Initialize+0xec> a00064b8: e5930000 ldr r0, [r3] a00064bc: e5945000 ldr r5, [r4] a00064c0: eb00125b bl a000ae34 <_Protected_heap_Get_size> a00064c4: e0800005 add r0, r0, r5 a00064c8: e5840000 str r0, [r4]
}
a00064cc: e8bd8070 pop {r4, r5, r6, pc}
a000609c <Stack_check_Dump_threads_usage>:
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
Thread_Control *the_thread
)
{
a000609c: e92d4fff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}<== NOT EXECUTED
{
stack = &the_thread->Start.Initial_stack;
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
}
low = Stack_check_usable_stack_start(stack);
a00060a0: e59030bc ldr r3, [r0, #188] ; 0xbc <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
a00060a4: e59070b8 ldr r7, [r0, #184] ; 0xb8 <== NOT EXECUTED
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
Thread_Control *the_thread
)
{
a00060a8: e1a05000 mov r5, r0 <== NOT EXECUTED
{
stack = &the_thread->Start.Initial_stack;
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
}
low = Stack_check_usable_stack_start(stack);
a00060ac: e2832010 add r2, r3, #16 <== NOT EXECUTED
size = Stack_check_usable_stack_size(stack);
a00060b0: e2477010 sub r7, r7, #16 <== NOT EXECUTED
* start at lower memory and find first word that does not
* match pattern
*/
base += PATTERN_SIZE_WORDS;
for (ebase = base + length; base < ebase; base++)
a00060b4: e3c71003 bic r1, r7, #3 <== NOT EXECUTED
current = 0;
} else
#endif
{
stack = &the_thread->Start.Initial_stack;
current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
a00060b8: e590b0e8 ldr fp, [r0, #232] ; 0xe8 <== NOT EXECUTED
/*
* start at lower memory and find first word that does not
* match pattern
*/
base += PATTERN_SIZE_WORDS;
a00060bc: e2820010 add r0, r2, #16 <== NOT EXECUTED
for (ebase = base + length; base < ebase; base++)
a00060c0: e0800001 add r0, r0, r1 <== NOT EXECUTED
* Try to print out how much stack was actually used by the task.
*/
static void *print_context;
static rtems_printk_plugin_t print_handler;
void Stack_check_Dump_threads_usage(
a00060c4: e2833020 add r3, r3, #32 <== NOT EXECUTED
* match pattern
*/
base += PATTERN_SIZE_WORDS;
for (ebase = base + length; base < ebase; base++)
if (*base != U32_PATTERN)
a00060c8: e59f10bc ldr r1, [pc, #188] ; a000618c <Stack_check_Dump_threads_usage+0xf0><== NOT EXECUTED a00060cc: ea000002 b a00060dc <Stack_check_Dump_threads_usage+0x40> <== NOT EXECUTED a00060d0: e493c004 ldr ip, [r3], #4 <== NOT EXECUTED a00060d4: e15c0001 cmp ip, r1 <== NOT EXECUTED a00060d8: 1a000004 bne a00060f0 <Stack_check_Dump_threads_usage+0x54><== NOT EXECUTED
* start at lower memory and find first word that does not
* match pattern
*/
base += PATTERN_SIZE_WORDS;
for (ebase = base + length; base < ebase; base++)
a00060dc: e1530000 cmp r3, r0 <== NOT EXECUTED
if (*base != U32_PATTERN)
a00060e0: e1a06003 mov r6, r3 <== NOT EXECUTED
* start at lower memory and find first word that does not
* match pattern
*/
base += PATTERN_SIZE_WORDS;
for (ebase = base + length; base < ebase; base++)
a00060e4: 3afffff9 bcc a00060d0 <Stack_check_Dump_threads_usage+0x34><== NOT EXECUTED
high_water_mark = Stack_check_find_high_water_mark(low, size);
if ( high_water_mark )
used = Stack_check_Calculate_used( low, size, high_water_mark );
else
used = 0;
a00060e8: e3a06000 mov r6, #0 <== NOT EXECUTED a00060ec: ea000002 b a00060fc <Stack_check_Dump_threads_usage+0x60> <== NOT EXECUTED
low = Stack_check_usable_stack_start(stack);
size = Stack_check_usable_stack_size(stack);
high_water_mark = Stack_check_find_high_water_mark(low, size);
if ( high_water_mark )
a00060f0: e3560000 cmp r6, #0 <== NOT EXECUTED
used = Stack_check_Calculate_used( low, size, high_water_mark );
a00060f4: 10822007 addne r2, r2, r7 <== NOT EXECUTED a00060f8: 10666002 rsbne r6, r6, r2 <== NOT EXECUTED
#if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)
if ( the_thread )
#endif
{
(*print_handler)(
a00060fc: e5958008 ldr r8, [r5, #8] <== NOT EXECUTED
a0006100: e59f4088 ldr r4, [pc, #136] ; a0006190 <Stack_check_Dump_threads_usage+0xf4><== NOT EXECUTED
a0006104: e3a01005 mov r1, #5 <== NOT EXECUTED
a0006108: e28d2008 add r2, sp, #8 <== NOT EXECUTED
a000610c: e1a00008 mov r0, r8 <== NOT EXECUTED
a0006110: e8940600 ldm r4, {r9, sl} <== NOT EXECUTED
a0006114: eb001666 bl a000bab4 <rtems_object_get_name> <== NOT EXECUTED
a0006118: e59f1074 ldr r1, [pc, #116] ; a0006194 <Stack_check_Dump_threads_usage+0xf8><== NOT EXECUTED
a000611c: e1a03000 mov r3, r0 <== NOT EXECUTED
a0006120: e1a02008 mov r2, r8 <== NOT EXECUTED
a0006124: e1a0000a mov r0, sl <== NOT EXECUTED
a0006128: e12fff39 blx r9 <== NOT EXECUTED
(*print_handler)(
print_context,
" %010p - %010p %010p %8" PRId32 " ",
stack->area,
stack->area + stack->size - 1,
a000612c: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED a0006130: e59520bc ldr r2, [r5, #188] ; 0xbc <== NOT EXECUTED
else {
(*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 );
}
#endif
(*print_handler)(
a0006134: e58db000 str fp, [sp] <== NOT EXECUTED
print_context,
" %010p - %010p %010p %8" PRId32 " ",
stack->area,
stack->area + stack->size - 1,
a0006138: e2433001 sub r3, r3, #1 <== NOT EXECUTED
else {
(*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 );
}
#endif
(*print_handler)(
a000613c: e0823003 add r3, r2, r3 <== NOT EXECUTED a0006140: e58d7004 str r7, [sp, #4] <== NOT EXECUTED a0006144: e594c000 ldr ip, [r4] <== NOT EXECUTED a0006148: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED a000614c: e59f1044 ldr r1, [pc, #68] ; a0006198 <Stack_check_Dump_threads_usage+0xfc><== NOT EXECUTED a0006150: e12fff3c blx ip <== NOT EXECUTED
stack->area + stack->size - 1,
current,
size
);
if (Stack_check_Initialized == 0) {
a0006154: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0006158: e3530000 cmp r3, #0 <== NOT EXECUTED a000615c: 1a000004 bne a0006174 <Stack_check_Dump_threads_usage+0xd8><== NOT EXECUTED
(*print_handler)( print_context, "Unavailable\n" );
a0006160: e5943000 ldr r3, [r4] <== NOT EXECUTED a0006164: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED a0006168: e59f102c ldr r1, [pc, #44] ; a000619c <Stack_check_Dump_threads_usage+0x100><== NOT EXECUTED a000616c: e12fff33 blx r3 <== NOT EXECUTED a0006170: ea000004 b a0006188 <Stack_check_Dump_threads_usage+0xec> <== NOT EXECUTED
} else {
(*print_handler)( print_context, "%8" PRId32 "\n", used );
a0006174: e5943000 ldr r3, [r4] <== NOT EXECUTED a0006178: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED a000617c: e59f101c ldr r1, [pc, #28] ; a00061a0 <Stack_check_Dump_threads_usage+0x104><== NOT EXECUTED a0006180: e1a02006 mov r2, r6 <== NOT EXECUTED a0006184: e12fff33 blx r3 <== NOT EXECUTED
}
}
a0006188: e8bd8fff pop {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}<== NOT EXECUTED
a000624c <Stack_check_report_blown_task>:
Thread_Control *running,
bool pattern_ok
) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
{
a000624c: e92d40ff push {r0, r1, r2, r3, r4, r5, r6, r7, lr} <== NOT EXECUTED
a0006250: e1a06000 mov r6, r0 <== NOT EXECUTED
Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern(stack);
a0006254: e59040bc ldr r4, [r0, #188] ; 0xbc <== NOT EXECUTED
char name[32];
printk("BLOWN STACK!!!\n");
a0006258: e59f007c ldr r0, [pc, #124] ; a00062dc <Stack_check_report_blown_task+0x90><== NOT EXECUTED
Thread_Control *running,
bool pattern_ok
) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;
void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
{
a000625c: e20150ff and r5, r1, #255 ; 0xff <== NOT EXECUTED
Stack_Control *stack = &running->Start.Initial_stack;
void *pattern_area = Stack_check_Get_pattern(stack);
char name[32];
printk("BLOWN STACK!!!\n");
a0006260: eb000705 bl a0007e7c <printk> <== NOT EXECUTED
printk("task control block: 0x%08" PRIxPTR "\n", running);
a0006264: e59f0074 ldr r0, [pc, #116] ; a00062e0 <Stack_check_report_blown_task+0x94><== NOT EXECUTED a0006268: e1a01006 mov r1, r6 <== NOT EXECUTED a000626c: eb000702 bl a0007e7c <printk> <== NOT EXECUTED
printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);
a0006270: e59f006c ldr r0, [pc, #108] ; a00062e4 <Stack_check_report_blown_task+0x98><== NOT EXECUTED a0006274: e5961008 ldr r1, [r6, #8] <== NOT EXECUTED a0006278: eb0006ff bl a0007e7c <printk> <== NOT EXECUTED
printk(
a000627c: e59f0064 ldr r0, [pc, #100] ; a00062e8 <Stack_check_report_blown_task+0x9c><== NOT EXECUTED a0006280: e596100c ldr r1, [r6, #12] <== NOT EXECUTED a0006284: eb0006fc bl a0007e7c <printk> <== NOT EXECUTED
"task name: 0x%08" PRIx32 "\n",
running->Object.name.name_u32
);
printk(
a0006288: e1a0200d mov r2, sp <== NOT EXECUTED a000628c: e3a01020 mov r1, #32 <== NOT EXECUTED a0006290: e5960008 ldr r0, [r6, #8] <== NOT EXECUTED a0006294: eb001606 bl a000bab4 <rtems_object_get_name> <== NOT EXECUTED a0006298: e1a01000 mov r1, r0 <== NOT EXECUTED a000629c: e59f0048 ldr r0, [pc, #72] ; a00062ec <Stack_check_report_blown_task+0xa0><== NOT EXECUTED a00062a0: eb0006f5 bl a0007e7c <printk> <== NOT EXECUTED
);
printk(
"task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
(unsigned long) stack->size,
stack->area,
((char *) stack->area + stack->size)
a00062a4: e59620bc ldr r2, [r6, #188] ; 0xbc <== NOT EXECUTED a00062a8: e59610b8 ldr r1, [r6, #184] ; 0xb8 <== NOT EXECUTED
);
printk(
"task name string: %s\n",
rtems_object_get_name(running->Object.id, sizeof(name), name)
);
printk(
a00062ac: e59f003c ldr r0, [pc, #60] ; a00062f0 <Stack_check_report_blown_task+0xa4><== NOT EXECUTED a00062b0: e0823001 add r3, r2, r1 <== NOT EXECUTED a00062b4: eb0006f0 bl a0007e7c <printk> <== NOT EXECUTED
"task stack area (%lu Bytes): 0x%08" PRIxPTR " .. 0x%08" PRIxPTR "\n",
(unsigned long) stack->size,
stack->area,
((char *) stack->area + stack->size)
);
if (!pattern_ok) {
a00062b8: e3550000 cmp r5, #0 <== NOT EXECUTED a00062bc: 1a000004 bne a00062d4 <Stack_check_report_blown_task+0x88> <== NOT EXECUTED
printk(
a00062c0: e59f002c ldr r0, [pc, #44] ; a00062f4 <Stack_check_report_blown_task+0xa8><== NOT EXECUTED a00062c4: e3a01010 mov r1, #16 <== NOT EXECUTED a00062c8: e2842008 add r2, r4, #8 <== NOT EXECUTED a00062cc: e2843018 add r3, r4, #24 <== NOT EXECUTED a00062d0: eb0006e9 bl a0007e7c <printk> <== NOT EXECUTED
rtems_configuration_get_user_multiprocessing_table()->node
);
}
#endif
rtems_fatal_error_occurred(0x81);
a00062d4: e3a00081 mov r0, #129 ; 0x81 <== NOT EXECUTED a00062d8: eb0017eb bl a000c28c <rtems_fatal_error_occurred> <== NOT EXECUTED
a000f2b4 <TOD_MICROSECONDS_TO_TICKS>:
uint32_t TOD_MICROSECONDS_TO_TICKS(
uint32_t microseconds
)
{
return (microseconds / rtems_configuration_get_microseconds_per_tick());
a000f2b4: e59f300c ldr r3, [pc, #12] ; a000f2c8 <TOD_MICROSECONDS_TO_TICKS+0x14><== NOT EXECUTED
#include <rtems/score/tod.h>
uint32_t TOD_MICROSECONDS_TO_TICKS(
uint32_t microseconds
)
{
a000f2b8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
return (microseconds / rtems_configuration_get_microseconds_per_tick());
a000f2bc: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a000f2c0: eb005013 bl a0023314 <__aeabi_uidiv> <== NOT EXECUTED
}
a000f2c4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000ae9c <TOD_MILLISECONDS_TO_TICKS>:
uint32_t TOD_MILLISECONDS_TO_TICKS(
uint32_t milliseconds
)
{
return (milliseconds / rtems_configuration_get_milliseconds_per_tick());
a000ae9c: e59f3020 ldr r3, [pc, #32] ; a000aec4 <TOD_MILLISECONDS_TO_TICKS+0x28><== NOT EXECUTED
#include <rtems/score/tod.h>
uint32_t TOD_MILLISECONDS_TO_TICKS(
uint32_t milliseconds
)
{
a000aea0: e92d4010 push {r4, lr} <== NOT EXECUTED
return (milliseconds / rtems_configuration_get_milliseconds_per_tick());
a000aea4: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED
#include <rtems/score/tod.h>
uint32_t TOD_MILLISECONDS_TO_TICKS(
uint32_t milliseconds
)
{
a000aea8: e1a04000 mov r4, r0 <== NOT EXECUTED
return (milliseconds / rtems_configuration_get_milliseconds_per_tick());
a000aeac: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a000aeb0: eb004236 bl a001b790 <__aeabi_uidiv> <== NOT EXECUTED a000aeb4: e1a01000 mov r1, r0 <== NOT EXECUTED a000aeb8: e1a00004 mov r0, r4 <== NOT EXECUTED a000aebc: eb004233 bl a001b790 <__aeabi_uidiv> <== NOT EXECUTED
}
a000aec0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0010e94 <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 /
a0010e94: e59f3010 ldr r3, [pc, #16] ; a0010eac <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)
{
a0010e98: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
return (TOD_MICROSECONDS_PER_SECOND /
a0010e9c: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a0010ea0: e59f0008 ldr r0, [pc, #8] ; a0010eb0 <TOD_TICKS_PER_SECOND_method+0x1c><== NOT EXECUTED a0010ea4: eb000e33 bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick());
}
a0010ea8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0012f28 <_Barrier_Translate_core_barrier_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_barrier_status > CORE_BARRIER_STATUS_LAST )
return RTEMS_INTERNAL_ERROR;
#endif
return _Barrier_Translate_core_barrier_return_code_[the_barrier_status];
}
a0012f28: e59f3004 ldr r3, [pc, #4] ; a0012f34 <_Barrier_Translate_core_barrier_return_code+0xc><== NOT EXECUTED a0012f2c: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0012f30: e12fff1e bx lr <== NOT EXECUTED
a000c500 <_CORE_RWLock_Initialize>:
CORE_RWLock_Control *the_rwlock,
CORE_RWLock_Attributes *the_rwlock_attributes
)
{
the_rwlock->Attributes = *the_rwlock_attributes;
a000c500: e5912000 ldr r2, [r1] <== NOT EXECUTED
the_rwlock->number_of_waiting_threads = 0;
*/
the_rwlock->number_of_readers = 0;
the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;
_Thread_queue_Initialize(
a000c504: e3a03003 mov r3, #3 <== NOT EXECUTED
the_rwlock->Attributes = *the_rwlock_attributes;
/*
the_rwlock->number_of_waiting_threads = 0;
*/
the_rwlock->number_of_readers = 0;
a000c508: e3a01000 mov r1, #0 <== NOT EXECUTED
CORE_RWLock_Control *the_rwlock,
CORE_RWLock_Attributes *the_rwlock_attributes
)
{
the_rwlock->Attributes = *the_rwlock_attributes;
a000c50c: e5802040 str r2, [r0, #64] ; 0x40 <== NOT EXECUTED
the_rwlock->number_of_waiting_threads = 0;
*/
the_rwlock->number_of_readers = 0;
the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;
_Thread_queue_Initialize(
a000c510: e3a02802 mov r2, #131072 ; 0x20000 <== NOT EXECUTED
the_rwlock->Attributes = *the_rwlock_attributes;
/*
the_rwlock->number_of_waiting_threads = 0;
*/
the_rwlock->number_of_readers = 0;
a000c514: e5801048 str r1, [r0, #72] ; 0x48 <== NOT EXECUTED
the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;
a000c518: e5801044 str r1, [r0, #68] ; 0x44 <== NOT EXECUTED
_Thread_queue_Initialize(
a000c51c: ea000860 b a000e6a4 <_Thread_queue_Initialize> <== NOT EXECUTED
a000c520 <_CORE_RWLock_Obtain_for_reading>:
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
)
{
a000c520: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
a000c524: e1a08003 mov r8, r3 <== NOT EXECUTED
ISR_Level level; Thread_Control *executing = _Thread_Executing;
a000c528: e59f30b8 ldr r3, [pc, #184] ; a000c5e8 <_CORE_RWLock_Obtain_for_reading+0xc8><== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
)
{
a000c52c: e1a04000 mov r4, r0 <== NOT EXECUTED a000c530: e1a05001 mov r5, r1 <== NOT EXECUTED
ISR_Level level; Thread_Control *executing = _Thread_Executing;
a000c534: e5936004 ldr r6, [r3, #4] <== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
)
{
a000c538: e202a0ff and sl, r2, #255 ; 0xff <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000c53c: e10f7000 mrs r7, CPSR <== NOT EXECUTED a000c540: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a000c544: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
switch ( the_rwlock->current_state ) {
a000c548: e590c044 ldr ip, [r0, #68] ; 0x44 <== NOT EXECUTED a000c54c: e35c0000 cmp ip, #0 <== NOT EXECUTED a000c550: 0a000002 beq a000c560 <_CORE_RWLock_Obtain_for_reading+0x40><== NOT EXECUTED a000c554: e35c0001 cmp ip, #1 <== NOT EXECUTED a000c558: 1a000010 bne a000c5a0 <_CORE_RWLock_Obtain_for_reading+0x80><== NOT EXECUTED a000c55c: ea000005 b a000c578 <_CORE_RWLock_Obtain_for_reading+0x58> <== NOT EXECUTED
case CORE_RWLOCK_UNLOCKED:
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
a000c560: e3a03001 mov r3, #1 <== NOT EXECUTED a000c564: e5803044 str r3, [r0, #68] ; 0x44 <== NOT EXECUTED
the_rwlock->number_of_readers += 1;
a000c568: e5903048 ldr r3, [r0, #72] ; 0x48 <== NOT EXECUTED a000c56c: e2833001 add r3, r3, #1 <== NOT EXECUTED a000c570: e5803048 str r3, [r0, #72] ; 0x48 <== NOT EXECUTED
_ISR_Enable( level );
a000c574: ea000005 b a000c590 <_CORE_RWLock_Obtain_for_reading+0x70> <== NOT EXECUTED
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
return;
case CORE_RWLOCK_LOCKED_FOR_READING: {
Thread_Control *waiter;
waiter = _Thread_queue_First( &the_rwlock->Wait_queue );
a000c578: eb000823 bl a000e60c <_Thread_queue_First> <== NOT EXECUTED
if ( !waiter ) {
a000c57c: e3500000 cmp r0, #0 <== NOT EXECUTED a000c580: 1a000006 bne a000c5a0 <_CORE_RWLock_Obtain_for_reading+0x80><== NOT EXECUTED
the_rwlock->number_of_readers += 1;
a000c584: e5943048 ldr r3, [r4, #72] ; 0x48 <== NOT EXECUTED a000c588: e2833001 add r3, r3, #1 <== NOT EXECUTED a000c58c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000c590: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
_ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
a000c594: e3a03000 mov r3, #0 <== NOT EXECUTED a000c598: e5863034 str r3, [r6, #52] ; 0x34 <== NOT EXECUTED
return;
a000c59c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
/*
* If the thread is not willing to wait, then return immediately.
*/
if ( !wait ) {
a000c5a0: e35a0000 cmp sl, #0 <== NOT EXECUTED a000c5a4: 1a000002 bne a000c5b4 <_CORE_RWLock_Obtain_for_reading+0x94><== NOT EXECUTED a000c5a8: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
_ISR_Enable( level );
executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;
a000c5ac: e3a03002 mov r3, #2 <== NOT EXECUTED a000c5b0: eafffff8 b a000c598 <_CORE_RWLock_Obtain_for_reading+0x78> <== NOT EXECUTED a000c5b4: e3a03001 mov r3, #1 <== NOT EXECUTED a000c5b8: e5843030 str r3, [r4, #48] ; 0x30 <== NOT EXECUTED
*/
_Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );
executing->Wait.queue = &the_rwlock->Wait_queue;
executing->Wait.id = id;
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
a000c5bc: e3a03000 mov r3, #0 <== NOT EXECUTED
/*
* We need to wait to enter this critical section
*/
_Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );
executing->Wait.queue = &the_rwlock->Wait_queue;
a000c5c0: e5864044 str r4, [r6, #68] ; 0x44 <== NOT EXECUTED
executing->Wait.id = id;
a000c5c4: e5865020 str r5, [r6, #32] <== NOT EXECUTED
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
a000c5c8: e5863030 str r3, [r6, #48] ; 0x30 <== NOT EXECUTED
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
a000c5cc: e5863034 str r3, [r6, #52] ; 0x34 <== NOT EXECUTED a000c5d0: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
_ISR_Enable( level );
_Thread_queue_Enqueue_with_handler(
a000c5d4: e59f2010 ldr r2, [pc, #16] ; a000c5ec <_CORE_RWLock_Obtain_for_reading+0xcc><== NOT EXECUTED a000c5d8: e1a00004 mov r0, r4 <== NOT EXECUTED a000c5dc: e1a01008 mov r1, r8 <== NOT EXECUTED
timeout,
_CORE_RWLock_Timeout
);
/* return to API level so it can dispatch and we block */
}
a000c5e0: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
executing->Wait.id = id;
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_READ;
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
_ISR_Enable( level );
_Thread_queue_Enqueue_with_handler(
a000c5e4: ea000732 b a000e2b4 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
a000c5f0 <_CORE_RWLock_Obtain_for_writing>:
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
)
{
ISR_Level level;
Thread_Control *executing = _Thread_Executing;
a000c5f0: e59fc07c ldr ip, [pc, #124] ; a000c674 <_CORE_RWLock_Obtain_for_writing+0x84><== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
)
{
a000c5f4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
ISR_Level level; Thread_Control *executing = _Thread_Executing;
a000c5f8: e59cc004 ldr ip, [ip, #4] <== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_RWLock_API_mp_support_callout api_rwlock_mp_support
)
{
a000c5fc: e20220ff and r2, r2, #255 ; 0xff <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000c600: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000c604: e3845080 orr r5, r4, #128 ; 0x80 <== NOT EXECUTED a000c608: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
switch ( the_rwlock->current_state ) {
a000c60c: e5905044 ldr r5, [r0, #68] ; 0x44 <== NOT EXECUTED a000c610: e3550000 cmp r5, #0 <== NOT EXECUTED a000c614: 1a000004 bne a000c62c <_CORE_RWLock_Obtain_for_writing+0x3c><== NOT EXECUTED
case CORE_RWLOCK_UNLOCKED:
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING;
a000c618: e3a03002 mov r3, #2 <== NOT EXECUTED a000c61c: e5803044 str r3, [r0, #68] ; 0x44 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000c620: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Enable( level ); executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
a000c624: e3a03000 mov r3, #0 <== NOT EXECUTED a000c628: ea000003 b a000c63c <_CORE_RWLock_Obtain_for_writing+0x4c> <== NOT EXECUTED
/*
* If the thread is not willing to wait, then return immediately.
*/
if ( !wait ) {
a000c62c: e3520000 cmp r2, #0 <== NOT EXECUTED a000c630: 1a000003 bne a000c644 <_CORE_RWLock_Obtain_for_writing+0x54><== NOT EXECUTED a000c634: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Enable( level );
executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;
a000c638: e3a03002 mov r3, #2 <== NOT EXECUTED
a000c63c: e58c3034 str r3, [ip, #52] ; 0x34 <== NOT EXECUTED
a000c640: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000c644: e3a02001 mov r2, #1 <== NOT EXECUTED
a000c648: e5802030 str r2, [r0, #48] ; 0x30 <== NOT EXECUTED
*/
_Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );
executing->Wait.queue = &the_rwlock->Wait_queue;
executing->Wait.id = id;
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE;
a000c64c: e58c2030 str r2, [ip, #48] ; 0x30 <== NOT EXECUTED
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
a000c650: e3a02000 mov r2, #0 <== NOT EXECUTED
/*
* We need to wait to enter this critical section
*/
_Thread_queue_Enter_critical_section( &the_rwlock->Wait_queue );
executing->Wait.queue = &the_rwlock->Wait_queue;
a000c654: e58c0044 str r0, [ip, #68] ; 0x44 <== NOT EXECUTED
executing->Wait.id = id;
a000c658: e58c1020 str r1, [ip, #32] <== NOT EXECUTED
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE;
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
a000c65c: e58c2034 str r2, [ip, #52] ; 0x34 <== NOT EXECUTED a000c660: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Enable( level );
_Thread_queue_Enqueue_with_handler(
a000c664: e59f200c ldr r2, [pc, #12] ; a000c678 <_CORE_RWLock_Obtain_for_writing+0x88><== NOT EXECUTED a000c668: e1a01003 mov r1, r3 <== NOT EXECUTED
_CORE_RWLock_Timeout
);
/* return to API level so it can dispatch and we block */
}
a000c66c: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
executing->Wait.id = id;
executing->Wait.option = CORE_RWLOCK_THREAD_WAITING_FOR_WRITE;
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
_ISR_Enable( level );
_Thread_queue_Enqueue_with_handler(
a000c670: ea00070f b a000e2b4 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
a000c67c <_CORE_RWLock_Release>:
CORE_RWLock_Status _CORE_RWLock_Release(
CORE_RWLock_Control *the_rwlock
)
{
ISR_Level level;
Thread_Control *executing = _Thread_Executing;
a000c67c: e59f30d8 ldr r3, [pc, #216] ; a000c75c <_CORE_RWLock_Release+0xe0><== NOT EXECUTED
*/
CORE_RWLock_Status _CORE_RWLock_Release(
CORE_RWLock_Control *the_rwlock
)
{
a000c680: e92d4010 push {r4, lr} <== NOT EXECUTED
ISR_Level level; Thread_Control *executing = _Thread_Executing;
a000c684: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED
*/
CORE_RWLock_Status _CORE_RWLock_Release(
CORE_RWLock_Control *the_rwlock
)
{
a000c688: e1a04000 mov r4, r0 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000c68c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000c690: e3831080 orr r1, r3, #128 ; 0x80 <== NOT EXECUTED a000c694: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
* If locked for reading and no waiters, then OK to read.
* If any thread is waiting, then we wait.
*/
_ISR_Disable( level );
if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){
a000c698: e5901044 ldr r1, [r0, #68] ; 0x44 <== NOT EXECUTED a000c69c: e3510000 cmp r1, #0 <== NOT EXECUTED a000c6a0: 1a000003 bne a000c6b4 <_CORE_RWLock_Release+0x38> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000c6a4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;
a000c6a8: e3a03002 mov r3, #2 <== NOT EXECUTED a000c6ac: e5823034 str r3, [r2, #52] ; 0x34 <== NOT EXECUTED
return CORE_RWLOCK_SUCCESSFUL;
a000c6b0: ea000027 b a000c754 <_CORE_RWLock_Release+0xd8> <== NOT EXECUTED
}
if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
a000c6b4: e3510001 cmp r1, #1 <== NOT EXECUTED a000c6b8: 1a000006 bne a000c6d8 <_CORE_RWLock_Release+0x5c> <== NOT EXECUTED
the_rwlock->number_of_readers -= 1;
a000c6bc: e5901048 ldr r1, [r0, #72] ; 0x48 <== NOT EXECUTED a000c6c0: e2411001 sub r1, r1, #1 <== NOT EXECUTED
if ( the_rwlock->number_of_readers != 0 ) {
a000c6c4: e3510000 cmp r1, #0 <== NOT EXECUTED
_ISR_Enable( level );
executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;
return CORE_RWLOCK_SUCCESSFUL;
}
if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
the_rwlock->number_of_readers -= 1;
a000c6c8: e5801048 str r1, [r0, #72] ; 0x48 <== NOT EXECUTED
if ( the_rwlock->number_of_readers != 0 ) {
a000c6cc: 0a000001 beq a000c6d8 <_CORE_RWLock_Release+0x5c> <== NOT EXECUTED a000c6d0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
/* must be unlocked again */
_ISR_Enable( level );
return CORE_RWLOCK_SUCCESSFUL;
a000c6d4: ea00001e b a000c754 <_CORE_RWLock_Release+0xd8> <== NOT EXECUTED
}
}
/* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */
executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;
a000c6d8: e3a01000 mov r1, #0 <== NOT EXECUTED a000c6dc: e5821034 str r1, [r2, #52] ; 0x34 <== NOT EXECUTED
/*
* Implicitly transition to "unlocked" and find another thread interested
* in obtaining this rwlock.
*/
the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;
a000c6e0: e5841044 str r1, [r4, #68] ; 0x44 <== NOT EXECUTED a000c6e4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );
a000c6e8: e1a00004 mov r0, r4 <== NOT EXECUTED a000c6ec: eb000696 bl a000e14c <_Thread_queue_Dequeue> <== NOT EXECUTED
if ( next ) {
a000c6f0: e3500000 cmp r0, #0 <== NOT EXECUTED a000c6f4: 0a000016 beq a000c754 <_CORE_RWLock_Release+0xd8> <== NOT EXECUTED
if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
a000c6f8: e5903030 ldr r3, [r0, #48] ; 0x30 <== NOT EXECUTED a000c6fc: e3530001 cmp r3, #1 <== NOT EXECUTED
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING;
a000c700: 02833001 addeq r3, r3, #1 <== NOT EXECUTED a000c704: 05843044 streq r3, [r4, #68] ; 0x44 <== NOT EXECUTED
_ISR_Enable( level );
next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );
if ( next ) {
if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
a000c708: 0a000011 beq a000c754 <_CORE_RWLock_Release+0xd8> <== NOT EXECUTED
}
/*
* Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING
*/
the_rwlock->number_of_readers += 1;
a000c70c: e5943048 ldr r3, [r4, #72] ; 0x48 <== NOT EXECUTED a000c710: e2833001 add r3, r3, #1 <== NOT EXECUTED a000c714: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED
the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;
a000c718: e3a03001 mov r3, #1 <== NOT EXECUTED a000c71c: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED
/*
* Now see if more readers can be let go.
*/
while ( 1 ) {
next = _Thread_queue_First( &the_rwlock->Wait_queue );
a000c720: e1a00004 mov r0, r4 <== NOT EXECUTED a000c724: eb0007b8 bl a000e60c <_Thread_queue_First> <== NOT EXECUTED
if ( !next ||
a000c728: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000c72c: 0a000008 beq a000c754 <_CORE_RWLock_Release+0xd8> <== NOT EXECUTED a000c730: e5913030 ldr r3, [r1, #48] ; 0x30 <== NOT EXECUTED a000c734: e3530001 cmp r3, #1 <== NOT EXECUTED a000c738: 0a000005 beq a000c754 <_CORE_RWLock_Release+0xd8> <== NOT EXECUTED
next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
return CORE_RWLOCK_SUCCESSFUL;
the_rwlock->number_of_readers += 1;
a000c73c: e5943048 ldr r3, [r4, #72] ; 0x48 <== NOT EXECUTED
_Thread_queue_Extract( &the_rwlock->Wait_queue, next );
a000c740: e1a00004 mov r0, r4 <== NOT EXECUTED
while ( 1 ) {
next = _Thread_queue_First( &the_rwlock->Wait_queue );
if ( !next ||
next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
return CORE_RWLOCK_SUCCESSFUL;
the_rwlock->number_of_readers += 1;
a000c744: e2833001 add r3, r3, #1 <== NOT EXECUTED a000c748: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED
_Thread_queue_Extract( &the_rwlock->Wait_queue, next );
a000c74c: eb000766 bl a000e4ec <_Thread_queue_Extract> <== NOT EXECUTED
}
a000c750: eafffff2 b a000c720 <_CORE_RWLock_Release+0xa4> <== NOT EXECUTED
}
/* indentation is to match _ISR_Disable at top */
return CORE_RWLOCK_SUCCESSFUL;
}
a000c754: e3a00000 mov r0, #0 <== NOT EXECUTED
a000c758: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000c760 <_CORE_RWLock_Timeout>:
void _CORE_RWLock_Timeout(
Objects_Id id,
void *ignored
)
{
a000c760: e92d4001 push {r0, lr} <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
a000c764: e1a0100d mov r1, sp <== NOT EXECUTED a000c768: eb0005b5 bl a000de44 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000c76c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000c770: e3530000 cmp r3, #0 <== NOT EXECUTED a000c774: 1a000004 bne a000c78c <_CORE_RWLock_Timeout+0x2c> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
a000c778: eb0007e3 bl a000e70c <_Thread_queue_Process_timeout> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
a000c77c: e59f300c ldr r3, [pc, #12] ; a000c790 <_CORE_RWLock_Timeout+0x30><== NOT EXECUTED a000c780: e5932000 ldr r2, [r3] <== NOT EXECUTED a000c784: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000c788: e5832000 str r2, [r3] <== NOT EXECUTED
_Thread_Unnest_dispatch();
break;
}
}
a000c78c: e8bd8008 pop {r3, pc} <== NOT EXECUTED
a000b048 <_CORE_barrier_Initialize>:
CORE_barrier_Control *the_barrier,
CORE_barrier_Attributes *the_barrier_attributes
)
{
the_barrier->Attributes = *the_barrier_attributes;
a000b048: e8910006 ldm r1, {r1, r2} <== NOT EXECUTED
the_barrier->number_of_waiting_threads = 0;
_Thread_queue_Initialize(
a000b04c: e3a03003 mov r3, #3 <== NOT EXECUTED
CORE_barrier_Control *the_barrier,
CORE_barrier_Attributes *the_barrier_attributes
)
{
the_barrier->Attributes = *the_barrier_attributes;
a000b050: e5801040 str r1, [r0, #64] ; 0x40 <== NOT EXECUTED a000b054: e5802044 str r2, [r0, #68] ; 0x44 <== NOT EXECUTED
the_barrier->number_of_waiting_threads = 0;
a000b058: e3a01000 mov r1, #0 <== NOT EXECUTED
_Thread_queue_Initialize(
a000b05c: e3a02801 mov r2, #65536 ; 0x10000 <== NOT EXECUTED
CORE_barrier_Attributes *the_barrier_attributes
)
{
the_barrier->Attributes = *the_barrier_attributes;
the_barrier->number_of_waiting_threads = 0;
a000b060: e5801048 str r1, [r0, #72] ; 0x48 <== NOT EXECUTED
_Thread_queue_Initialize(
a000b064: ea000848 b a000d18c <_Thread_queue_Initialize> <== NOT EXECUTED
a00101ac <_CORE_barrier_Release>:
#else
Objects_Id id __attribute__((unused)),
CORE_barrier_API_mp_support_callout api_barrier_mp_support __attribute__((unused))
#endif
)
{
a00101ac: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a00101b0: e1a05000 mov r5, r0 <== NOT EXECUTED
Thread_Control *the_thread;
uint32_t count;
count = 0;
a00101b4: e3a04000 mov r4, #0 <== NOT EXECUTED
while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) {
a00101b8: ea000000 b a00101c0 <_CORE_barrier_Release+0x14> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_barrier_mp_support) ( the_thread, id );
#endif
count++;
a00101bc: e2844001 add r4, r4, #1 <== NOT EXECUTED
{
Thread_Control *the_thread;
uint32_t count;
count = 0;
while ( (the_thread = _Thread_queue_Dequeue(&the_barrier->Wait_queue)) ) {
a00101c0: e1a00005 mov r0, r5 <== NOT EXECUTED a00101c4: ebfff2f2 bl a000cd94 <_Thread_queue_Dequeue> <== NOT EXECUTED a00101c8: e3500000 cmp r0, #0 <== NOT EXECUTED a00101cc: 1afffffa bne a00101bc <_CORE_barrier_Release+0x10> <== NOT EXECUTED
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_barrier_mp_support) ( the_thread, id );
#endif
count++;
}
the_barrier->number_of_waiting_threads = 0;
a00101d0: e5850048 str r0, [r5, #72] ; 0x48 <== NOT EXECUTED
return count; }
a00101d4: e1a00004 mov r0, r4 <== NOT EXECUTED
a00101d8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000b068 <_CORE_barrier_Wait>:
)
{
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
a000b068: e59fc078 ldr ip, [pc, #120] ; a000b0e8 <_CORE_barrier_Wait+0x80><== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_barrier_API_mp_support_callout api_barrier_mp_support
)
{
a000b06c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
a000b070: e59cc004 ldr ip, [ip, #4] <== NOT EXECUTED
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
a000b074: e3a04000 mov r4, #0 <== NOT EXECUTED
Objects_Id id,
bool wait,
Watchdog_Interval timeout,
CORE_barrier_API_mp_support_callout api_barrier_mp_support
)
{
a000b078: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
a000b07c: e58c4034 str r4, [ip, #52] ; 0x34 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000b080: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000b084: e3845080 orr r5, r4, #128 ; 0x80 <== NOT EXECUTED a000b088: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
_ISR_Disable( level ); the_barrier->number_of_waiting_threads++;
a000b08c: e5905048 ldr r5, [r0, #72] ; 0x48 <== NOT EXECUTED
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
a000b090: e5906040 ldr r6, [r0, #64] ; 0x40 <== NOT EXECUTED
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
_ISR_Disable( level );
the_barrier->number_of_waiting_threads++;
a000b094: e2855001 add r5, r5, #1 <== NOT EXECUTED
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
a000b098: e3560000 cmp r6, #0 <== NOT EXECUTED
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_BARRIER_STATUS_SUCCESSFUL;
_ISR_Disable( level );
the_barrier->number_of_waiting_threads++;
a000b09c: e5805048 str r5, [r0, #72] ; 0x48 <== NOT EXECUTED
if ( _CORE_barrier_Is_automatic( &the_barrier->Attributes ) ) {
a000b0a0: 1a000007 bne a000b0c4 <_CORE_barrier_Wait+0x5c> <== NOT EXECUTED
if ( the_barrier->number_of_waiting_threads ==
a000b0a4: e5906044 ldr r6, [r0, #68] ; 0x44 <== NOT EXECUTED a000b0a8: e1550006 cmp r5, r6 <== NOT EXECUTED a000b0ac: 1a000004 bne a000b0c4 <_CORE_barrier_Wait+0x5c> <== NOT EXECUTED
the_barrier->Attributes.maximum_count) {
executing->Wait.return_code = CORE_BARRIER_STATUS_AUTOMATICALLY_RELEASED;
a000b0b0: e3a03001 mov r3, #1 <== NOT EXECUTED a000b0b4: e58c3034 str r3, [ip, #52] ; 0x34 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000b0b8: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
executing->Wait.queue = &the_barrier->Wait_queue;
executing->Wait.id = id;
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
}
a000b0bc: e8bd4070 pop {r4, r5, r6, lr} <== 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 );
a000b0c0: ea001439 b a00101ac <_CORE_barrier_Release> <== 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;
a000b0c4: e3a02001 mov r2, #1 <== NOT EXECUTED a000b0c8: e5802030 str r2, [r0, #48] ; 0x30 <== NOT EXECUTED
return;
}
}
_Thread_queue_Enter_critical_section( &the_barrier->Wait_queue );
executing->Wait.queue = &the_barrier->Wait_queue;
a000b0cc: e58c0044 str r0, [ip, #68] ; 0x44 <== NOT EXECUTED
executing->Wait.id = id;
a000b0d0: e58c1020 str r1, [ip, #32] <== NOT EXECUTED a000b0d4: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_barrier->Wait_queue, timeout );
a000b0d8: e59f200c ldr r2, [pc, #12] ; a000b0ec <_CORE_barrier_Wait+0x84><== NOT EXECUTED a000b0dc: e1a01003 mov r1, r3 <== NOT EXECUTED
}
a000b0e0: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED
_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 );
a000b0e4: ea000784 b a000cefc <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
a001919c <_CORE_message_queue_Broadcast>:
{
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
a001919c: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED
Objects_Id id __attribute__((unused)),
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)),
#endif
uint32_t *count
)
{
a00191a0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
a00191a4: e1520003 cmp r2, r3 <== NOT EXECUTED
Objects_Id id __attribute__((unused)),
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)),
#endif
uint32_t *count
)
{
a00191a8: e1a06000 mov r6, r0 <== NOT EXECUTED a00191ac: e1a0a001 mov sl, r1 <== NOT EXECUTED a00191b0: e1a07002 mov r7, r2 <== NOT EXECUTED a00191b4: e59d8020 ldr r8, [sp, #32] <== NOT EXECUTED
Thread_Control *the_thread;
uint32_t number_broadcasted;
Thread_Wait_information *waitp;
if ( size > the_message_queue->maximum_message_size ) {
a00191b8: 8a000013 bhi a001920c <_CORE_message_queue_Broadcast+0x70> <== NOT EXECUTED
* 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 ) {
a00191bc: e5905048 ldr r5, [r0, #72] ; 0x48 <== NOT EXECUTED a00191c0: e3550000 cmp r5, #0 <== NOT EXECUTED a00191c4: 0a000009 beq a00191f0 <_CORE_message_queue_Broadcast+0x54> <== NOT EXECUTED
*count = 0;
a00191c8: e3a00000 mov r0, #0 <== NOT EXECUTED a00191cc: e5880000 str r0, [r8] <== NOT EXECUTED
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
a00191d0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
a00191d4: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a00191d8: e1a0100a mov r1, sl <== NOT EXECUTED a00191dc: e1a02007 mov r2, r7 <== NOT EXECUTED a00191e0: eb002211 bl a0021a2c <memcpy> <== NOT EXECUTED
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
a00191e4: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED
*/
number_broadcasted = 0;
while ((the_thread =
_Thread_queue_Dequeue(&the_message_queue->Wait_queue))) {
waitp = &the_thread->Wait;
number_broadcasted += 1;
a00191e8: e2855001 add r5, r5, #1 <== NOT EXECUTED
buffer,
waitp->return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
a00191ec: e5837000 str r7, [r3] <== NOT EXECUTED
/* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread =
a00191f0: e1a00006 mov r0, r6 <== NOT EXECUTED a00191f4: eb000ae6 bl a001bd94 <_Thread_queue_Dequeue> <== NOT EXECUTED a00191f8: e2504000 subs r4, r0, #0 <== NOT EXECUTED a00191fc: 1afffff4 bne a00191d4 <_CORE_message_queue_Broadcast+0x38> <== NOT EXECUTED
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
(*api_message_queue_mp_support) ( the_thread, id );
#endif
}
*count = number_broadcasted;
a0019200: e5885000 str r5, [r8] <== NOT EXECUTED
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
a0019204: e1a00004 mov r0, r4 <== NOT EXECUTED
a0019208: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
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;
a001920c: e3a00001 mov r0, #1 <== NOT EXECUTED
#endif
}
*count = number_broadcasted;
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
}
a0019210: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a000ffa8 <_CORE_message_queue_Close>:
void _CORE_message_queue_Close(
CORE_message_queue_Control *the_message_queue,
Thread_queue_Flush_callout remote_extract_callout,
uint32_t status
)
{
a000ffa8: e92d4010 push {r4, lr} <== NOT EXECUTED
a000ffac: e1a04000 mov r4, r0 <== NOT EXECUTED
/*
* This will flush blocked threads whether they were blocked on
* a send or receive.
*/
_Thread_queue_Flush(
a000ffb0: ebfff261 bl a000c93c <_Thread_queue_Flush> <== NOT EXECUTED
* This removes all messages from the pending message queue. Since
* we just flushed all waiting threads, we don't have to worry about
* the flush satisfying any blocked senders as a side-effect.
*/
if ( the_message_queue->number_of_pending_messages != 0 )
a000ffb4: e5943048 ldr r3, [r4, #72] ; 0x48 <== NOT EXECUTED a000ffb8: e3530000 cmp r3, #0 <== NOT EXECUTED a000ffbc: 0a000001 beq a000ffc8 <_CORE_message_queue_Close+0x20> <== NOT EXECUTED
(void) _CORE_message_queue_Flush_support( the_message_queue );
a000ffc0: e1a00004 mov r0, r4 <== NOT EXECUTED a000ffc4: eb000002 bl a000ffd4 <_CORE_message_queue_Flush_support> <== NOT EXECUTED
(void) _Workspace_Free( the_message_queue->message_buffers );
a000ffc8: e594005c ldr r0, [r4, #92] ; 0x5c <== NOT EXECUTED
}
a000ffcc: e8bd4010 pop {r4, lr} <== NOT EXECUTED
*/
if ( the_message_queue->number_of_pending_messages != 0 )
(void) _CORE_message_queue_Flush_support( the_message_queue );
(void) _Workspace_Free( the_message_queue->message_buffers );
a000ffd0: eafff4c9 b a000d2fc <_Workspace_Free> <== NOT EXECUTED
a0019240 <_CORE_message_queue_Flush>:
uint32_t _CORE_message_queue_Flush(
CORE_message_queue_Control *the_message_queue
)
{
if ( the_message_queue->number_of_pending_messages != 0 )
a0019240: e5903048 ldr r3, [r0, #72] ; 0x48 <== NOT EXECUTED a0019244: e3530000 cmp r3, #0 <== NOT EXECUTED a0019248: 0a000000 beq a0019250 <_CORE_message_queue_Flush+0x10> <== NOT EXECUTED
return _CORE_message_queue_Flush_support( the_message_queue );
a001924c: ea000001 b a0019258 <_CORE_message_queue_Flush_support> <== NOT EXECUTED
else
return 0;
}
a0019250: e1a00003 mov r0, r3 <== NOT EXECUTED a0019254: e12fff1e bx lr <== NOT EXECUTED
a000ffd4 <_CORE_message_queue_Flush_support>:
*/
uint32_t _CORE_message_queue_Flush_support(
CORE_message_queue_Control *the_message_queue
)
{
a000ffd4: e92d4010 push {r4, lr} <== NOT EXECUTED
a000ffd8: e1a03000 mov r3, r0 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000ffdc: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000ffe0: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED a000ffe4: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
count = the_message_queue->number_of_pending_messages;
the_message_queue->number_of_pending_messages = 0;
_ISR_Enable( level );
return count;
}
a000ffe8: e5931050 ldr r1, [r3, #80] ; 0x50 <== NOT EXECUTED
* fixed execution time that only deals with pending messages.
*/
_ISR_Disable( level );
inactive_head = _Chain_Head( &the_message_queue->Inactive_messages );
inactive_first = inactive_head->next;;
a000ffec: e5900068 ldr r0, [r0, #104] ; 0x68 <== NOT EXECUTED
count = the_message_queue->number_of_pending_messages;
the_message_queue->number_of_pending_messages = 0;
_ISR_Enable( level );
return count;
}
a000fff0: e593c058 ldr ip, [r3, #88] ; 0x58 <== NOT EXECUTED
inactive_head = _Chain_Head( &the_message_queue->Inactive_messages );
inactive_first = inactive_head->next;;
message_queue_first = _Chain_First( &the_message_queue->Pending_messages );
message_queue_last = _Chain_Last( &the_message_queue->Pending_messages );
inactive_head->next = message_queue_first;
a000fff4: e1a02003 mov r2, r3 <== NOT EXECUTED a000fff8: e5a21068 str r1, [r2, #104]! ; 0x68 <== NOT EXECUTED
message_queue_last->next = inactive_first;
inactive_first->previous = message_queue_last;
a000fffc: e580c004 str ip, [r0, #4] <== NOT EXECUTED
message_queue_first->previous = inactive_head;
a0010000: e5812004 str r2, [r1, #4] <== 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 );
a0010004: e2832054 add r2, r3, #84 ; 0x54 <== NOT EXECUTED
inactive_first = inactive_head->next;;
message_queue_first = _Chain_First( &the_message_queue->Pending_messages );
message_queue_last = _Chain_Last( &the_message_queue->Pending_messages );
inactive_head->next = message_queue_first;
message_queue_last->next = inactive_first;
a0010008: e58c0000 str r0, [ip] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
a001000c: e2831050 add r1, r3, #80 ; 0x50 <== NOT EXECUTED
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
a0010010: e5832050 str r2, [r3, #80] ; 0x50 <== NOT EXECUTED
head->previous = NULL;
a0010014: e3a02000 mov r2, #0 <== NOT EXECUTED
inactive_first->previous = message_queue_last;
message_queue_first->previous = inactive_head;
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
count = the_message_queue->number_of_pending_messages;
a0010018: e5930048 ldr r0, [r3, #72] ; 0x48 <== NOT EXECUTED a001001c: e5832054 str r2, [r3, #84] ; 0x54 <== NOT EXECUTED
tail->previous = head;
a0010020: e5831058 str r1, [r3, #88] ; 0x58 <== NOT EXECUTED
the_message_queue->number_of_pending_messages = 0;
a0010024: e5832048 str r2, [r3, #72] ; 0x48 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0010028: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Enable( level ); return count; }
a001002c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a00121ac <_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
)
{
a00121ac: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
/*
* Round size up to multiple of a pointer for chain init and
* check for overflow on adding overhead to each message.
*/
allocated_message_size = maximum_message_size;
if (allocated_message_size & (sizeof(uint32_t) - 1)) {
a00121b0: e3130003 tst r3, #3 <== NOT EXECUTED
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
)
{
a00121b4: e1a04000 mov r4, r0 <== NOT EXECUTED
size_t message_buffering_required;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
the_message_queue->number_of_pending_messages = 0;
a00121b8: e3a00000 mov r0, #0 <== NOT EXECUTED
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
)
{
a00121bc: e1a06002 mov r6, r2 <== NOT EXECUTED
size_t message_buffering_required;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
a00121c0: e5842044 str r2, [r4, #68] ; 0x44 <== NOT EXECUTED
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
)
{
a00121c4: e1a05001 mov r5, r1 <== NOT EXECUTED
size_t message_buffering_required;
size_t allocated_message_size;
the_message_queue->maximum_pending_messages = maximum_pending_messages;
the_message_queue->number_of_pending_messages = 0;
a00121c8: e5840048 str r0, [r4, #72] ; 0x48 <== NOT EXECUTED
the_message_queue->maximum_message_size = maximum_message_size;
a00121cc: e584304c str r3, [r4, #76] ; 0x4c <== NOT EXECUTED
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Notify_Handler the_handler,
void *the_argument
)
{
the_message_queue->notify_handler = the_handler;
a00121d0: e5840060 str r0, [r4, #96] ; 0x60 <== NOT EXECUTED
the_message_queue->notify_argument = the_argument;
a00121d4: e5840064 str r0, [r4, #100] ; 0x64 <== NOT EXECUTED
/*
* Round size up to multiple of a pointer for chain init and
* check for overflow on adding overhead to each message.
*/
allocated_message_size = maximum_message_size;
if (allocated_message_size & (sizeof(uint32_t) - 1)) {
a00121d8: 01a02003 moveq r2, r3 <== NOT EXECUTED a00121dc: 0a000003 beq a00121f0 <_CORE_message_queue_Initialize+0x44><== NOT EXECUTED
allocated_message_size += sizeof(uint32_t);
a00121e0: e2832004 add r2, r3, #4 <== NOT EXECUTED
allocated_message_size &= ~(sizeof(uint32_t) - 1);
a00121e4: e3c22003 bic r2, r2, #3 <== NOT EXECUTED
}
if (allocated_message_size < maximum_message_size)
a00121e8: e1520003 cmp r2, r3 <== NOT EXECUTED a00121ec: 3a00001e bcc a001226c <_CORE_message_queue_Initialize+0xc0><== NOT EXECUTED
/*
* Calculate how much total memory is required for message buffering and
* check for overflow on the multiplication.
*/
message_buffering_required = (size_t) maximum_pending_messages *
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
a00121f0: e2827014 add r7, r2, #20 <== NOT EXECUTED
/*
* Calculate how much total memory is required for message buffering and
* check for overflow on the multiplication.
*/
message_buffering_required = (size_t) maximum_pending_messages *
a00121f4: e0000796 mul r0, r6, r7 <== NOT EXECUTED
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
a00121f8: e1500002 cmp r0, r2 <== NOT EXECUTED a00121fc: 3a000018 bcc a0012264 <_CORE_message_queue_Initialize+0xb8><== NOT EXECUTED
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
_Workspace_Allocate( message_buffering_required );
a0012200: eb000b83 bl a0015014 <_Workspace_Allocate> <== NOT EXECUTED
if (the_message_queue->message_buffers == 0)
a0012204: e3500000 cmp r0, #0 <== NOT EXECUTED
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
_Workspace_Allocate( message_buffering_required );
a0012208: e1a01000 mov r1, r0 <== NOT EXECUTED
return false;
/*
* Attempt to allocate the message memory
*/
the_message_queue->message_buffers = (CORE_message_queue_Buffer *)
a001220c: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED
_Workspace_Allocate( message_buffering_required );
if (the_message_queue->message_buffers == 0)
a0012210: 0a000015 beq a001226c <_CORE_message_queue_Initialize+0xc0><== NOT EXECUTED
/*
* Initialize the pool of inactive messages, pending messages,
* and set of waiting threads.
*/
_Chain_Initialize (
a0012214: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED a0012218: e1a02006 mov r2, r6 <== NOT EXECUTED a001221c: e1a03007 mov r3, r7 <== NOT EXECUTED a0012220: eb0014fe bl a0017620 <_Chain_Initialize> <== 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 );
a0012224: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED
head->next = tail;
a0012228: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED
head->previous = NULL;
a001222c: e3a03000 mov r3, #0 <== NOT EXECUTED a0012230: e5843054 str r3, [r4, #84] ; 0x54 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
a0012234: e2843050 add r3, r4, #80 ; 0x50 <== NOT EXECUTED
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
tail->previous = head;
a0012238: e5843058 str r3, [r4, #88] ; 0x58 <== NOT EXECUTED
allocated_message_size + sizeof( CORE_message_queue_Buffer_control )
);
_Chain_Initialize_empty( &the_message_queue->Pending_messages );
_Thread_queue_Initialize(
a001223c: e5951000 ldr r1, [r5] <== NOT EXECUTED a0012240: e1a00004 mov r0, r4 <== NOT EXECUTED a0012244: e3a02080 mov r2, #128 ; 0x80 <== NOT EXECUTED a0012248: e3510001 cmp r1, #1 <== NOT EXECUTED a001224c: 13a01000 movne r1, #0 <== NOT EXECUTED a0012250: 03a01001 moveq r1, #1 <== NOT EXECUTED a0012254: e3a03006 mov r3, #6 <== NOT EXECUTED a0012258: eb00090d bl a0014694 <_Thread_queue_Initialize> <== NOT EXECUTED
THREAD_QUEUE_DISCIPLINE_PRIORITY : THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
a001225c: e3a00001 mov r0, #1 <== NOT EXECUTED
a0012260: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
*/
message_buffering_required = (size_t) maximum_pending_messages *
(allocated_message_size + sizeof(CORE_message_queue_Buffer_control));
if (message_buffering_required < allocated_message_size)
return false;
a0012264: e3a00000 mov r0, #0 <== NOT EXECUTED
a0012268: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
STATES_WAITING_FOR_MESSAGE,
CORE_MESSAGE_QUEUE_STATUS_TIMEOUT
);
return true;
}
a001226c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0017670 <_CORE_message_queue_Insert_message>:
_CORE_message_queue_Append_unprotected(the_message_queue, the_message);
else
_CORE_message_queue_Prepend_unprotected(the_message_queue, the_message);
_ISR_Enable( level );
#else
if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) {
a0017670: e3720106 cmn r2, #-2147483647 ; 0x80000001 <== NOT EXECUTED
void _CORE_message_queue_Insert_message(
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Buffer_control *the_message,
CORE_message_queue_Submit_types submit_type
)
{
a0017674: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a0017678: e1a04000 mov r4, r0 <== NOT EXECUTED
a001767c: e1a05001 mov r5, r1 <== NOT EXECUTED
a0017680: e5812008 str r2, [r1, #8] <== NOT EXECUTED
_CORE_message_queue_Append_unprotected(the_message_queue, the_message);
else
_CORE_message_queue_Prepend_unprotected(the_message_queue, the_message);
_ISR_Enable( level );
#else
if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) {
a0017684: 1a00000c bne a00176bc <_CORE_message_queue_Insert_message+0x4c><== NOT EXECUTED
_ISR_Disable( level );
a0017688: ebfffff4 bl a0017660 <arm_interrupt_disable> <== NOT EXECUTED
SET_NOTIFY();
a001768c: e5942048 ldr r2, [r4, #72] ; 0x48 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
a0017690: e2841054 add r1, r4, #84 ; 0x54 <== NOT EXECUTED
*
* INTERRUPT LATENCY:
* insert
*/
void _CORE_message_queue_Insert_message(
a0017694: e2723001 rsbs r3, r2, #1 <== NOT EXECUTED a0017698: 33a03000 movcc r3, #0 <== NOT EXECUTED
_ISR_Enable( level );
#else
if ( submit_type == CORE_MESSAGE_QUEUE_SEND_REQUEST ) {
_ISR_Disable( level );
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
a001769c: e2822001 add r2, r2, #1 <== NOT EXECUTED a00176a0: e5842048 str r2, [r4, #72] ; 0x48 <== NOT EXECUTED
Chain_Node *old_last = tail->previous;
a00176a4: e5942058 ldr r2, [r4, #88] ; 0x58 <== NOT EXECUTED
the_node->next = tail;
a00176a8: e5851000 str r1, [r5] <== NOT EXECUTED
tail->previous = the_node;
a00176ac: e5845058 str r5, [r4, #88] ; 0x58 <== NOT EXECUTED
old_last->next = the_node;
a00176b0: e5825000 str r5, [r2] <== NOT EXECUTED
the_node->previous = old_last;
a00176b4: e5852004 str r2, [r5, #4] <== NOT EXECUTED
_CORE_message_queue_Append_unprotected(the_message_queue, the_message);
_ISR_Enable( level );
a00176b8: ea000022 b a0017748 <_CORE_message_queue_Insert_message+0xd8><== NOT EXECUTED
} else if ( submit_type == CORE_MESSAGE_QUEUE_URGENT_REQUEST ) {
a00176bc: e3520102 cmp r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED
* the message is actually in the queue at this point.
*/
if ( notify && the_message_queue->notify_handler )
(*the_message_queue->notify_handler)(the_message_queue->notify_argument);
#endif
}
a00176c0: 15906050 ldrne r6, [r0, #80] ; 0x50 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(
Chain_Control *the_chain,
const Chain_Node *the_node
)
{
return (the_node == _Chain_Tail(the_chain));
a00176c4: 12803054 addne r3, r0, #84 ; 0x54 <== NOT EXECUTED
_ISR_Disable( level );
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
_CORE_message_queue_Append_unprotected(the_message_queue, the_message);
_ISR_Enable( level );
} else if ( submit_type == CORE_MESSAGE_QUEUE_URGENT_REQUEST ) {
a00176c8: 1a000010 bne a0017710 <_CORE_message_queue_Insert_message+0xa0><== NOT EXECUTED
_ISR_Disable( level );
a00176cc: ebffffe3 bl a0017660 <arm_interrupt_disable> <== NOT EXECUTED
SET_NOTIFY();
a00176d0: e5942048 ldr r2, [r4, #72] ; 0x48 <== NOT EXECUTED
*
* INTERRUPT LATENCY:
* insert
*/
void _CORE_message_queue_Insert_message(
a00176d4: e2723001 rsbs r3, r2, #1 <== NOT EXECUTED a00176d8: 33a03000 movcc r3, #0 <== NOT EXECUTED
_CORE_message_queue_Append_unprotected(the_message_queue, the_message);
_ISR_Enable( level );
} else if ( submit_type == CORE_MESSAGE_QUEUE_URGENT_REQUEST ) {
_ISR_Disable( level );
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
a00176dc: e2822001 add r2, r2, #1 <== NOT EXECUTED a00176e0: e5842048 str r2, [r4, #72] ; 0x48 <== 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);
a00176e4: e2842050 add r2, r4, #80 ; 0x50 <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
a00176e8: e5852004 str r2, [r5, #4] <== NOT EXECUTED
before_node = after_node->next;
a00176ec: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED
after_node->next = the_node;
a00176f0: e5845050 str r5, [r4, #80] ; 0x50 <== NOT EXECUTED
the_node->next = before_node; before_node->previous = the_node;
a00176f4: e5825004 str r5, [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;
a00176f8: e5852000 str r2, [r5] <== NOT EXECUTED
_CORE_message_queue_Prepend_unprotected(the_message_queue, the_message);
_ISR_Enable( level );
a00176fc: ea000011 b a0017748 <_CORE_message_queue_Insert_message+0xd8><== NOT EXECUTED
this_message = (CORE_message_queue_Buffer_control *) the_node;
this_priority = _CORE_message_queue_Get_message_priority(this_message);
if ( this_priority <= the_priority ) {
a0017700: e5961008 ldr r1, [r6, #8] <== NOT EXECUTED a0017704: e1510002 cmp r1, r2 <== NOT EXECUTED a0017708: ca000002 bgt a0017718 <_CORE_message_queue_Insert_message+0xa8><== NOT EXECUTED
the_node = the_node->next;
a001770c: e5966000 ldr r6, [r6] <== NOT EXECUTED
int the_priority;
the_priority = _CORE_message_queue_Get_message_priority(the_message);
the_header = &the_message_queue->Pending_messages;
the_node = _Chain_First( the_header );
while ( !_Chain_Is_tail( the_header, the_node ) ) {
a0017710: e1560003 cmp r6, r3 <== NOT EXECUTED a0017714: 1afffff9 bne a0017700 <_CORE_message_queue_Insert_message+0x90><== NOT EXECUTED
the_node = the_node->next;
continue;
}
break;
}
_ISR_Disable( level );
a0017718: ebffffd0 bl a0017660 <arm_interrupt_disable> <== NOT EXECUTED
SET_NOTIFY();
a001771c: e5942048 ldr r2, [r4, #72] ; 0x48 <== NOT EXECUTED
*
* INTERRUPT LATENCY:
* insert
*/
void _CORE_message_queue_Insert_message(
a0017720: e2723001 rsbs r3, r2, #1 <== NOT EXECUTED a0017724: 33a03000 movcc r3, #0 <== NOT EXECUTED
}
break;
}
_ISR_Disable( level );
SET_NOTIFY();
the_message_queue->number_of_pending_messages++;
a0017728: e2822001 add r2, r2, #1 <== NOT EXECUTED a001772c: e5842048 str r2, [r4, #72] ; 0x48 <== NOT EXECUTED
_Chain_Insert_unprotected( the_node->previous, &the_message->Node );
a0017730: e5962004 ldr r2, [r6, #4] <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
a0017734: e5921000 ldr r1, [r2] <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
a0017738: e5852004 str r2, [r5, #4] <== NOT EXECUTED
before_node = after_node->next; after_node->next = the_node;
a001773c: e5825000 str r5, [r2] <== NOT EXECUTED
the_node->next = before_node; before_node->previous = the_node;
a0017740: e5815004 str r5, [r1, #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;
a0017744: e5851000 str r1, [r5] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0017748: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
/*
* According to POSIX, does this happen before or after the message
* is actually enqueued. It is logical to think afterwards, because
* the message is actually in the queue at this point.
*/
if ( notify && the_message_queue->notify_handler )
a001774c: e3530000 cmp r3, #0 <== NOT EXECUTED a0017750: 0a000004 beq a0017768 <_CORE_message_queue_Insert_message+0xf8><== NOT EXECUTED a0017754: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED a0017758: e3530000 cmp r3, #0 <== NOT EXECUTED a001775c: 0a000001 beq a0017768 <_CORE_message_queue_Insert_message+0xf8><== NOT EXECUTED
(*the_message_queue->notify_handler)(the_message_queue->notify_argument);
a0017760: e5940064 ldr r0, [r4, #100] ; 0x64 <== NOT EXECUTED
a0017764: e12fff33 blx r3 <== NOT EXECUTED
a0017768: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0012270 <_CORE_message_queue_Seize>:
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
a0012270: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
a0012274: e1a04000 mov r4, r0 <== NOT EXECUTED
ISR_Level level;
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
a0012278: e59f0118 ldr r0, [pc, #280] ; a0012398 <_CORE_message_queue_Seize+0x128><== NOT EXECUTED
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
a001227c: e3a05000 mov r5, #0 <== NOT EXECUTED
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
a0012280: e59dc020 ldr ip, [sp, #32] <== NOT EXECUTED
ISR_Level level;
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
a0012284: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED
void *buffer,
size_t *size_p,
bool wait,
Watchdog_Interval timeout
)
{
a0012288: e5dda01c ldrb sl, [sp, #28] <== NOT EXECUTED
ISR_Level level;
CORE_message_queue_Buffer_control *the_message;
Thread_Control *executing;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
a001228c: e5805034 str r5, [r0, #52] ; 0x34 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0012290: e10f6000 mrs r6, CPSR <== NOT EXECUTED a0012294: e3865080 orr r5, r6, #128 ; 0x80 <== NOT EXECUTED a0012298: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
a001229c: e5945050 ldr r5, [r4, #80] ; 0x50 <== 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 );
a00122a0: e2847054 add r7, r4, #84 ; 0x54 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
a00122a4: e1550007 cmp r5, r7 <== NOT EXECUTED a00122a8: 0a000028 beq a0012350 <_CORE_message_queue_Seize+0xe0> <== 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;
a00122ac: e5958000 ldr r8, [r5] <== NOT EXECUTED
head->next = new_first;
a00122b0: e1a07004 mov r7, r4 <== NOT EXECUTED
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
_ISR_Disable( level );
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
if ( the_message != NULL ) {
a00122b4: e3550000 cmp r5, #0 <== NOT EXECUTED a00122b8: e5a78050 str r8, [r7, #80]! ; 0x50 <== NOT EXECUTED
new_first->previous = head;
a00122bc: e5887004 str r7, [r8, #4] <== NOT EXECUTED a00122c0: 0a000022 beq a0012350 <_CORE_message_queue_Seize+0xe0> <== NOT EXECUTED
the_message_queue->number_of_pending_messages -= 1;
a00122c4: e5941048 ldr r1, [r4, #72] ; 0x48 <== NOT EXECUTED a00122c8: e2411001 sub r1, r1, #1 <== NOT EXECUTED a00122cc: e5841048 str r1, [r4, #72] ; 0x48 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a00122d0: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
_ISR_Enable( level );
*size_p = the_message->Contents.size;
a00122d4: e595100c ldr r1, [r5, #12] <== NOT EXECUTED
_Thread_Executing->Wait.count =
a00122d8: e5950008 ldr r0, [r5, #8] <== NOT EXECUTED
_CORE_message_queue_Get_message_priority( the_message );
_CORE_message_queue_Copy_buffer(
the_message->Contents.buffer,
a00122dc: e2856010 add r6, r5, #16 <== NOT EXECUTED
the_message = _CORE_message_queue_Get_pending_message( the_message_queue );
if ( the_message != NULL ) {
the_message_queue->number_of_pending_messages -= 1;
_ISR_Enable( level );
*size_p = the_message->Contents.size;
a00122e0: e5831000 str r1, [r3] <== NOT EXECUTED
_Thread_Executing->Wait.count =
a00122e4: e59f10ac ldr r1, [pc, #172] ; a0012398 <_CORE_message_queue_Seize+0x128><== NOT EXECUTED a00122e8: e5911004 ldr r1, [r1, #4] <== NOT EXECUTED a00122ec: e5810024 str r0, [r1, #36] ; 0x24 <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
a00122f0: e1a00002 mov r0, r2 <== NOT EXECUTED a00122f4: e1a01006 mov r1, r6 <== NOT EXECUTED a00122f8: e5932000 ldr r2, [r3] <== NOT EXECUTED a00122fc: eb001fc0 bl a001a204 <memcpy> <== NOT EXECUTED
* is not, then we can go ahead and free the buffer.
*
* NOTE: If we note that the queue was not full before this receive,
* then we can avoid this dequeue.
*/
the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
a0012300: e1a00004 mov r0, r4 <== NOT EXECUTED a0012304: eb0007e4 bl a001429c <_Thread_queue_Dequeue> <== NOT EXECUTED
if ( !the_thread ) {
a0012308: e2503000 subs r3, r0, #0 <== NOT EXECUTED a001230c: 1a000003 bne a0012320 <_CORE_message_queue_Seize+0xb0> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _CORE_message_queue_Free_message_buffer (
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Buffer_control *the_message
)
{
_Chain_Append( &the_message_queue->Inactive_messages, &the_message->Node );
a0012310: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED a0012314: e1a01005 mov r1, r5 <== NOT EXECUTED
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
a0012318: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
a001231c: eaffff78 b a0012104 <_Chain_Append> <== NOT EXECUTED
CORE_message_queue_Buffer_control *the_message,
int priority
)
{
#if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
the_message->priority = priority;
a0012320: e5932024 ldr r2, [r3, #36] ; 0x24 <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
a0012324: e593102c ldr r1, [r3, #44] ; 0x2c <== NOT EXECUTED a0012328: e1a00006 mov r0, r6 <== NOT EXECUTED
CORE_message_queue_Buffer_control *the_message,
int priority
)
{
#if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
the_message->priority = priority;
a001232c: e5852008 str r2, [r5, #8] <== NOT EXECUTED
*/
_CORE_message_queue_Set_message_priority(
the_message,
the_thread->Wait.count
);
the_message->Contents.size = (size_t) the_thread->Wait.option;
a0012330: e5932030 ldr r2, [r3, #48] ; 0x30 <== NOT EXECUTED a0012334: e585200c str r2, [r5, #12] <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
a0012338: eb001fb1 bl a001a204 <memcpy> <== NOT EXECUTED
the_thread->Wait.return_argument_second.immutable_object,
the_message->Contents.buffer,
the_message->Contents.size
);
_CORE_message_queue_Insert_message(
a001233c: e5952008 ldr r2, [r5, #8] <== NOT EXECUTED a0012340: e1a00004 mov r0, r4 <== NOT EXECUTED a0012344: e1a01005 mov r1, r5 <== NOT EXECUTED
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
a0012348: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
the_thread->Wait.return_argument_second.immutable_object,
the_message->Contents.buffer,
the_message->Contents.size
);
_CORE_message_queue_Insert_message(
a001234c: ea0014c7 b a0017670 <_CORE_message_queue_Insert_message> <== NOT EXECUTED
return;
}
#endif
}
if ( !wait ) {
a0012350: e35a0000 cmp sl, #0 <== NOT EXECUTED a0012354: 1a000003 bne a0012368 <_CORE_message_queue_Seize+0xf8> <== NOT EXECUTED a0012358: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
_ISR_Enable( level );
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
a001235c: e3a03004 mov r3, #4 <== NOT EXECUTED a0012360: e5803034 str r3, [r0, #52] ; 0x34 <== NOT EXECUTED
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
a0012364: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== 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;
a0012368: e3a05001 mov r5, #1 <== NOT EXECUTED a001236c: e5845030 str r5, [r4, #48] ; 0x30 <== NOT EXECUTED
executing->Wait.return_code = CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_NOWAIT;
return;
}
_Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
executing->Wait.queue = &the_message_queue->Wait_queue;
a0012370: e5804044 str r4, [r0, #68] ; 0x44 <== NOT EXECUTED
executing->Wait.id = id;
a0012374: e5801020 str r1, [r0, #32] <== NOT EXECUTED
executing->Wait.return_argument_second.mutable_object = buffer;
a0012378: e580202c str r2, [r0, #44] ; 0x2c <== NOT EXECUTED
executing->Wait.return_argument = size_p;
a001237c: e5803028 str r3, [r0, #40] ; 0x28 <== NOT EXECUTED a0012380: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
a0012384: e59f2010 ldr r2, [pc, #16] ; a001239c <_CORE_message_queue_Seize+0x12c><== NOT EXECUTED a0012388: e1a00004 mov r0, r4 <== NOT EXECUTED a001238c: e1a0100c mov r1, ip <== NOT EXECUTED
}
a0012390: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
executing->Wait.return_argument_second.mutable_object = buffer;
executing->Wait.return_argument = size_p;
/* Wait.count will be filled in with the message priority */
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
a0012394: ea00081a b a0014404 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
a00123a0 <_CORE_message_queue_Submit>:
#endif
CORE_message_queue_Submit_types submit_type,
bool wait,
Watchdog_Interval timeout
)
{
a00123a0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
a00123a4: e1a09003 mov r9, r3 <== NOT EXECUTED
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
a00123a8: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED
#endif
CORE_message_queue_Submit_types submit_type,
bool wait,
Watchdog_Interval timeout
)
{
a00123ac: e1a04000 mov r4, r0 <== NOT EXECUTED a00123b0: e1a08001 mov r8, r1 <== NOT EXECUTED
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
a00123b4: e1520003 cmp r2, r3 <== NOT EXECUTED
#endif
CORE_message_queue_Submit_types submit_type,
bool wait,
Watchdog_Interval timeout
)
{
a00123b8: e1a05002 mov r5, r2 <== NOT EXECUTED a00123bc: e59d6028 ldr r6, [sp, #40] ; 0x28 <== NOT EXECUTED a00123c0: e5ddb02c ldrb fp, [sp, #44] ; 0x2c <== NOT EXECUTED
CORE_message_queue_Buffer_control *the_message;
Thread_Control *the_thread;
if ( size > the_message_queue->maximum_message_size ) {
a00123c4: 8a000039 bhi a00124b0 <_CORE_message_queue_Submit+0x110> <== NOT EXECUTED
}
/*
* Is there a thread currently waiting on this message queue?
*/
if ( the_message_queue->number_of_pending_messages == 0 ) {
a00123c8: e590a048 ldr sl, [r0, #72] ; 0x48 <== NOT EXECUTED a00123cc: e35a0000 cmp sl, #0 <== NOT EXECUTED a00123d0: 1a00000b bne a0012404 <_CORE_message_queue_Submit+0x64> <== NOT EXECUTED
the_thread = _Thread_queue_Dequeue( &the_message_queue->Wait_queue );
a00123d4: eb0007b0 bl a001429c <_Thread_queue_Dequeue> <== NOT EXECUTED
if ( the_thread ) {
a00123d8: e2507000 subs r7, r0, #0 <== NOT EXECUTED a00123dc: 0a000008 beq a0012404 <_CORE_message_queue_Submit+0x64> <== NOT EXECUTED a00123e0: e597002c ldr r0, [r7, #44] ; 0x2c <== NOT EXECUTED a00123e4: e1a01008 mov r1, r8 <== NOT EXECUTED a00123e8: e1a02005 mov r2, r5 <== NOT EXECUTED a00123ec: eb001f84 bl a001a204 <memcpy> <== NOT EXECUTED
_CORE_message_queue_Copy_buffer(
buffer,
the_thread->Wait.return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
a00123f0: e5973028 ldr r3, [r7, #40] ; 0x28 <== NOT EXECUTED
#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;
a00123f4: e1a0000a mov r0, sl <== NOT EXECUTED
_CORE_message_queue_Copy_buffer(
buffer,
the_thread->Wait.return_argument_second.mutable_object,
size
);
*(size_t *) the_thread->Wait.return_argument = size;
a00123f8: e5835000 str r5, [r3] <== NOT EXECUTED
the_thread->Wait.count = (uint32_t) submit_type;
a00123fc: e5876024 str r6, [r7, #36] ; 0x24 <== NOT EXECUTED
#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;
a0012400: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
/*
* No one waiting on the message queue at this time, so attempt to
* queue the message up for a future receive.
*/
if ( the_message_queue->number_of_pending_messages <
a0012404: e5942048 ldr r2, [r4, #72] ; 0x48 <== NOT EXECUTED a0012408: e5943044 ldr r3, [r4, #68] ; 0x44 <== NOT EXECUTED a001240c: e1520003 cmp r2, r3 <== NOT EXECUTED a0012410: 2a00000e bcs a0012450 <_CORE_message_queue_Submit+0xb0> <== NOT EXECUTED
_CORE_message_queue_Allocate_message_buffer (
CORE_message_queue_Control *the_message_queue
)
{
return (CORE_message_queue_Buffer_control *)
_Chain_Get( &the_message_queue->Inactive_messages );
a0012414: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED a0012418: ebffff4c bl a0012150 <_Chain_Get> <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
a001241c: e1a01008 mov r1, r8 <== NOT EXECUTED
_CORE_message_queue_Allocate_message_buffer (
CORE_message_queue_Control *the_message_queue
)
{
return (CORE_message_queue_Buffer_control *)
_Chain_Get( &the_message_queue->Inactive_messages );
a0012420: e1a07000 mov r7, r0 <== NOT EXECUTED
const void *source,
void *destination,
size_t size
)
{
memcpy(destination, source, size);
a0012424: e1a02005 mov r2, r5 <== NOT EXECUTED a0012428: e2800010 add r0, r0, #16 <== NOT EXECUTED a001242c: eb001f74 bl a001a204 <memcpy> <== NOT EXECUTED
size
);
the_message->Contents.size = size;
_CORE_message_queue_Set_message_priority( the_message, submit_type );
_CORE_message_queue_Insert_message(
a0012430: e1a00004 mov r0, r4 <== NOT EXECUTED
_CORE_message_queue_Copy_buffer(
buffer,
the_message->Contents.buffer,
size
);
the_message->Contents.size = size;
a0012434: e587500c str r5, [r7, #12] <== NOT EXECUTED
CORE_message_queue_Buffer_control *the_message,
int priority
)
{
#if defined(RTEMS_SCORE_COREMSG_ENABLE_MESSAGE_PRIORITY)
the_message->priority = priority;
a0012438: e5876008 str r6, [r7, #8] <== NOT EXECUTED
_CORE_message_queue_Set_message_priority( the_message, submit_type );
_CORE_message_queue_Insert_message(
a001243c: e1a01007 mov r1, r7 <== NOT EXECUTED a0012440: e1a02006 mov r2, r6 <== NOT EXECUTED a0012444: eb001489 bl a0017670 <_CORE_message_queue_Insert_message> <== NOT EXECUTED
the_message_queue,
the_message,
submit_type
);
return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL;
a0012448: e3a00000 mov r0, #0 <== NOT EXECUTED
a001244c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
/*
* No message buffers were available so we may need to return an
* overflow error or block the sender until the message is placed
* on the queue.
*/
if ( !wait ) {
a0012450: e35b0000 cmp fp, #0 <== NOT EXECUTED a0012454: 0a000017 beq a00124b8 <_CORE_message_queue_Submit+0x118> <== NOT EXECUTED
/*
* Do NOT block on a send if the caller is in an ISR. It is
* deadly to block in an ISR.
*/
if ( _ISR_Is_in_progress() ) {
a0012458: e59f3068 ldr r3, [pc, #104] ; a00124c8 <_CORE_message_queue_Submit+0x128><== NOT EXECUTED a001245c: e5932000 ldr r2, [r3] <== NOT EXECUTED a0012460: e3520000 cmp r2, #0 <== NOT EXECUTED a0012464: 1a000015 bne a00124c0 <_CORE_message_queue_Submit+0x120> <== NOT EXECUTED
* Thus the unusual choice to open a new scope and declare
* it as a variable. Doing this emphasizes how dangerous it
* would be to use this variable prior to here.
*/
{
Thread_Control *executing = _Thread_Executing;
a0012468: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a001246c: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0012470: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a0012474: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a0012478: e3a01001 mov r1, #1 <== NOT EXECUTED a001247c: e5841030 str r1, [r4, #48] ; 0x30 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
_Thread_queue_Enter_critical_section( &the_message_queue->Wait_queue );
executing->Wait.queue = &the_message_queue->Wait_queue;
a0012480: e5834044 str r4, [r3, #68] ; 0x44 <== NOT EXECUTED
executing->Wait.id = id;
a0012484: e5839020 str r9, [r3, #32] <== NOT EXECUTED
executing->Wait.return_argument_second.immutable_object = buffer;
a0012488: e583802c str r8, [r3, #44] ; 0x2c <== NOT EXECUTED
executing->Wait.option = (uint32_t) size;
a001248c: e5835030 str r5, [r3, #48] ; 0x30 <== NOT EXECUTED
executing->Wait.count = submit_type;
a0012490: e5836024 str r6, [r3, #36] ; 0x24 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0012494: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_ISR_Enable( level );
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
a0012498: e59f202c ldr r2, [pc, #44] ; a00124cc <_CORE_message_queue_Submit+0x12c><== NOT EXECUTED a001249c: e1a00004 mov r0, r4 <== NOT EXECUTED a00124a0: e59d1030 ldr r1, [sp, #48] ; 0x30 <== NOT EXECUTED a00124a4: eb0007d6 bl a0014404 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
}
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
a00124a8: e3a00007 mov r0, #7 <== NOT EXECUTED
a00124ac: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
{
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;
a00124b0: e3a00001 mov r0, #1 <== NOT EXECUTED
a00124b4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
* No message buffers were available so we may need to return an
* overflow error or block the sender until the message is placed
* on the queue.
*/
if ( !wait ) {
return CORE_MESSAGE_QUEUE_STATUS_TOO_MANY;
a00124b8: e3a00002 mov r0, #2 <== NOT EXECUTED
a00124bc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
/*
* Do NOT block on a send if the caller is in an ISR. It is
* deadly to block in an ISR.
*/
if ( _ISR_Is_in_progress() ) {
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED;
a00124c0: e3a00003 mov r0, #3 <== NOT EXECUTED
_Thread_queue_Enqueue( &the_message_queue->Wait_queue, timeout );
}
return CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT;
#endif
}
a00124c4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a0009d9c <_CORE_mutex_Initialize>:
CORE_mutex_Status _CORE_mutex_Initialize(
CORE_mutex_Control *the_mutex,
CORE_mutex_Attributes *the_mutex_attributes,
uint32_t initial_lock
)
{
a0009d9c: e92d4070 push {r4, r5, r6, lr}
/* 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;
a0009da0: e2805040 add r5, r0, #64 ; 0x40
CORE_mutex_Status _CORE_mutex_Initialize(
CORE_mutex_Control *the_mutex,
CORE_mutex_Attributes *the_mutex_attributes,
uint32_t initial_lock
)
{
a0009da4: e1a0c000 mov ip, r0 a0009da8: e1a06002 mov r6, r2 a0009dac: e1a04001 mov r4, 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;
a0009db0: e891000f ldm r1, {r0, r1, r2, r3}
a0009db4: e885000f stm r5, {r0, r1, r2, r3}
the_mutex->lock = initial_lock; the_mutex->blocked_count = 0;
a0009db8: e3a03000 mov r3, #0
if ( initial_lock == CORE_MUTEX_LOCKED ) {
a0009dbc: e1560003 cmp r6, r3
rtems_assert( initial_lock == CORE_MUTEX_LOCKED ||
initial_lock == CORE_MUTEX_UNLOCKED );
*/
the_mutex->Attributes = *the_mutex_attributes;
the_mutex->lock = initial_lock;
a0009dc0: e58c6050 str r6, [ip, #80] ; 0x50
the_mutex->blocked_count = 0;
a0009dc4: e58c3058 str r3, [ip, #88] ; 0x58
#endif
_Thread_Executing->resource_count++;
}
} else {
the_mutex->nest_count = 0;
a0009dc8: 158c3054 strne r3, [ip, #84] ; 0x54
the_mutex->holder = NULL;
a0009dcc: 158c305c strne r3, [ip, #92] ; 0x5c
the_mutex->holder_id = 0;
a0009dd0: 158c3060 strne r3, [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 ) {
a0009dd4: 1a000012 bne a0009e24 <_CORE_mutex_Initialize+0x88>
the_mutex->nest_count = 1;
a0009dd8: e2833001 add r3, r3, #1 <== NOT EXECUTED a0009ddc: e58c3054 str r3, [ip, #84] ; 0x54 <== NOT EXECUTED
the_mutex->holder = _Thread_Executing;
a0009de0: e59f3068 ldr r3, [pc, #104] ; a0009e50 <_CORE_mutex_Initialize+0xb4><== NOT EXECUTED a0009de4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
the_mutex->holder_id = _Thread_Executing->Object.id;
a0009de8: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED
the_mutex->lock = initial_lock;
the_mutex->blocked_count = 0;
if ( initial_lock == CORE_MUTEX_LOCKED ) {
the_mutex->nest_count = 1;
the_mutex->holder = _Thread_Executing;
a0009dec: e58c305c str r3, [ip, #92] ; 0x5c <== NOT EXECUTED
the_mutex->holder_id = _Thread_Executing->Object.id;
a0009df0: e58c2060 str r2, [ip, #96] ; 0x60 <== NOT EXECUTED
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
a0009df4: e59c2048 ldr r2, [ip, #72] ; 0x48 <== NOT EXECUTED
if ( initial_lock == CORE_MUTEX_LOCKED ) {
the_mutex->nest_count = 1;
the_mutex->holder = _Thread_Executing;
the_mutex->holder_id = _Thread_Executing->Object.id;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
a0009df8: e3520002 cmp r2, #2 <== NOT EXECUTED a0009dfc: 0a000001 beq a0009e08 <_CORE_mutex_Initialize+0x6c> <== NOT EXECUTED a0009e00: e3520003 cmp r2, #3 <== NOT EXECUTED a0009e04: 1a000006 bne a0009e24 <_CORE_mutex_Initialize+0x88> <== NOT EXECUTED
_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
if ( _Thread_Executing->current_priority <
a0009e08: e59c204c ldr r2, [ip, #76] ; 0x4c <== NOT EXECUTED a0009e0c: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a0009e10: e1510002 cmp r1, r2 <== NOT EXECUTED
_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++;
a0009e14: 2593201c ldrcs r2, [r3, #28] <== NOT EXECUTED a0009e18: 22822001 addcs r2, r2, #1 <== NOT EXECUTED a0009e1c: 2583201c strcs r2, [r3, #28] <== NOT EXECUTED
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 <
a0009e20: 3a000008 bcc a0009e48 <_CORE_mutex_Initialize+0xac> <== NOT EXECUTED
the_mutex->nest_count = 0;
the_mutex->holder = NULL;
the_mutex->holder_id = 0;
}
_Thread_queue_Initialize(
a0009e24: e5941008 ldr r1, [r4, #8] a0009e28: e1a0000c mov r0, ip a0009e2c: e3a02b01 mov r2, #1024 ; 0x400 a0009e30: e2511000 subs r1, r1, #0 a0009e34: 13a01001 movne r1, #1 a0009e38: e3a03005 mov r3, #5 a0009e3c: eb000820 bl a000bec4 <_Thread_queue_Initialize>
THREAD_QUEUE_DISCIPLINE_FIFO : THREAD_QUEUE_DISCIPLINE_PRIORITY,
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
a0009e40: e3a00000 mov r0, #0
a0009e44: e8bd8070 pop {r4, r5, r6, pc}
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
if ( _Thread_Executing->current_priority <
the_mutex->Attributes.priority_ceiling )
return CORE_MUTEX_STATUS_CEILING_VIOLATED;
a0009e48: e3a00006 mov r0, #6 <== NOT EXECUTED
STATES_WAITING_FOR_MUTEX,
CORE_MUTEX_TIMEOUT
);
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
a0009e4c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0009ebc <_CORE_mutex_Seize>:
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
a0009ebc: e92d40f0 push {r4, r5, r6, r7, lr}
a0009ec0: e1a07003 mov r7, r3
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
a0009ec4: e59f30b0 ldr r3, [pc, #176] ; a0009f7c <_CORE_mutex_Seize+0xc0>
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
a0009ec8: e1a04000 mov r4, r0 a0009ecc: e1a05001 mov r5, r1
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
a0009ed0: e5933000 ldr r3, [r3]
Objects_Id _id,
bool _wait,
Watchdog_Interval _timeout,
ISR_Level _level
)
{
a0009ed4: e20260ff and r6, r2, #255 ; 0xff
_CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level );
a0009ed8: e3530000 cmp r3, #0
a0009edc: 0a000009 beq a0009f08 <_CORE_mutex_Seize+0x4c>
a0009ee0: e3560000 cmp r6, #0
a0009ee4: 0a000007 beq a0009f08 <_CORE_mutex_Seize+0x4c>
a0009ee8: e59f3090 ldr r3, [pc, #144] ; a0009f80 <_CORE_mutex_Seize+0xc4> a0009eec: e5933000 ldr r3, [r3] a0009ef0: e3530001 cmp r3, #1
a0009ef4: 9a000003 bls a0009f08 <_CORE_mutex_Seize+0x4c>
a0009ef8: e3a00000 mov r0, #0 <== NOT EXECUTED a0009efc: e1a01000 mov r1, r0 <== NOT EXECUTED a0009f00: e3a02012 mov r2, #18 <== NOT EXECUTED a0009f04: eb0001c4 bl a000a61c <_Internal_error_Occurred> <== NOT EXECUTED
a0009f08: e1a00004 mov r0, r4 a0009f0c: e28d1014 add r1, sp, #20 a0009f10: eb0013db bl a000ee84 <_CORE_mutex_Seize_interrupt_trylock> a0009f14: e3500000 cmp r0, #0
a0009f18: 0a000016 beq a0009f78 <_CORE_mutex_Seize+0xbc>
a0009f1c: e3560000 cmp r6, #0 <== NOT EXECUTED
a0009f20: e59f305c ldr r3, [pc, #92] ; a0009f84 <_CORE_mutex_Seize+0xc8><== NOT EXECUTED
a0009f24: 1a000005 bne a0009f40 <_CORE_mutex_Seize+0x84> <== NOT EXECUTED
a0009f28: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED
a0009f2c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
a0009f30: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
a0009f34: e3a02001 mov r2, #1 <== NOT EXECUTED
a0009f38: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED
a0009f3c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0009f40: e5933004 ldr r3, [r3, #4] <== 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;
a0009f44: e3a02001 mov r2, #1 <== NOT EXECUTED a0009f48: e5842030 str r2, [r4, #48] ; 0x30 <== NOT EXECUTED a0009f4c: e5834044 str r4, [r3, #68] ; 0x44 <== NOT EXECUTED a0009f50: e5835020 str r5, [r3, #32] <== NOT EXECUTED a0009f54: e59f3020 ldr r3, [pc, #32] ; a0009f7c <_CORE_mutex_Seize+0xc0><== NOT EXECUTED a0009f58: e5932000 ldr r2, [r3] <== NOT EXECUTED a0009f5c: e2822001 add r2, r2, #1 <== NOT EXECUTED a0009f60: e5832000 str r2, [r3] <== NOT EXECUTED a0009f64: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED a0009f68: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0009f6c: e1a00004 mov r0, r4 <== NOT EXECUTED a0009f70: e1a01007 mov r1, r7 <== NOT EXECUTED a0009f74: ebffffb6 bl a0009e54 <_CORE_mutex_Seize_interrupt_blocking><== NOT EXECUTED
a0009f78: e8bd80f0 pop {r4, r5, r6, r7, pc}
a0009e54 <_CORE_mutex_Seize_interrupt_blocking>:
)
{
Thread_Control *executing;
executing = _Thread_Executing;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) {
a0009e54: e5902048 ldr r2, [r0, #72] ; 0x48 <== NOT EXECUTED
Watchdog_Interval timeout
)
{
Thread_Control *executing;
executing = _Thread_Executing;
a0009e58: e59f3054 ldr r3, [pc, #84] ; a0009eb4 <_CORE_mutex_Seize_interrupt_blocking+0x60><== NOT EXECUTED
void _CORE_mutex_Seize_interrupt_blocking(
CORE_mutex_Control *the_mutex,
Watchdog_Interval timeout
)
{
a0009e5c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
Thread_Control *executing;
executing = _Thread_Executing;
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) {
a0009e60: e3520002 cmp r2, #2 <== NOT EXECUTED
void _CORE_mutex_Seize_interrupt_blocking(
CORE_mutex_Control *the_mutex,
Watchdog_Interval timeout
)
{
a0009e64: e1a04000 mov r4, r0 <== NOT EXECUTED a0009e68: e1a05001 mov r5, r1 <== NOT EXECUTED
Thread_Control *executing;
executing = _Thread_Executing;
a0009e6c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ) {
a0009e70: 1a000006 bne a0009e90 <_CORE_mutex_Seize_interrupt_blocking+0x3c><== NOT EXECUTED
if ( the_mutex->holder->current_priority > executing->current_priority ) {
a0009e74: e590005c ldr r0, [r0, #92] ; 0x5c <== NOT EXECUTED a0009e78: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a0009e7c: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a0009e80: e1530001 cmp r3, r1 <== NOT EXECUTED a0009e84: 9a000001 bls a0009e90 <_CORE_mutex_Seize_interrupt_blocking+0x3c><== NOT EXECUTED
_Thread_Change_priority(
a0009e88: e3a02000 mov r2, #0 <== NOT EXECUTED a0009e8c: eb000540 bl a000b394 <_Thread_Change_priority> <== NOT EXECUTED
false
);
}
}
the_mutex->blocked_count++;
a0009e90: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED
_Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout );
a0009e94: e1a00004 mov r0, r4 <== NOT EXECUTED a0009e98: e1a01005 mov r1, r5 <== NOT EXECUTED
false
);
}
}
the_mutex->blocked_count++;
a0009e9c: e2833001 add r3, r3, #1 <== NOT EXECUTED a0009ea0: e5843058 str r3, [r4, #88] ; 0x58 <== NOT EXECUTED
_Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout );
a0009ea4: e59f200c ldr r2, [pc, #12] ; a0009eb8 <_CORE_mutex_Seize_interrupt_blocking+0x64><== NOT EXECUTED a0009ea8: eb000761 bl a000bc34 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
_Thread_Enable_dispatch();
}
a0009eac: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
}
the_mutex->blocked_count++;
_Thread_queue_Enqueue( &the_mutex->Wait_queue, timeout );
_Thread_Enable_dispatch();
a0009eb0: ea00063a b a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
a000ee84 <_CORE_mutex_Seize_interrupt_trylock>:
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
a000ee84: e59f212c ldr r2, [pc, #300] ; a000efb8 <_CORE_mutex_Seize_interrupt_trylock+0x134>
#if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__)
int _CORE_mutex_Seize_interrupt_trylock(
CORE_mutex_Control *the_mutex,
ISR_Level *level_p
)
{
a000ee88: e1a03000 mov r3, r0
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
a000ee8c: e593c050 ldr ip, [r3, #80] ; 0x50
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
a000ee90: e5922004 ldr r2, [r2, #4]
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
a000ee94: e3a00000 mov r0, #0
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
a000ee98: e15c0000 cmp ip, r0
a000ee9c: e92d4010 push {r4, lr}
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL;
a000eea0: e5820034 str r0, [r2, #52] ; 0x34
if ( !_CORE_mutex_Is_locked( the_mutex ) ) {
a000eea4: 0a00002c beq a000ef5c <_CORE_mutex_Seize_interrupt_trylock+0xd8>
the_mutex->lock = CORE_MUTEX_LOCKED;
a000eea8: e5830050 str r0, [r3, #80] ; 0x50
the_mutex->holder = executing;
the_mutex->holder_id = executing->Object.id;
a000eeac: e5920008 ldr r0, [r2, #8]
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;
a000eeb0: e583205c str r2, [r3, #92] ; 0x5c
the_mutex->holder_id = executing->Object.id;
a000eeb4: e5830060 str r0, [r3, #96] ; 0x60
the_mutex->nest_count = 1;
a000eeb8: e3a00001 mov r0, #1 a000eebc: e5830054 str r0, [r3, #84] ; 0x54
return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); }
a000eec0: e5930048 ldr r0, [r3, #72] ; 0x48
if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) ||
a000eec4: e3500002 cmp r0, #2
a000eec8: 0a000001 beq a000eed4 <_CORE_mutex_Seize_interrupt_trylock+0x50>
a000eecc: e3500003 cmp r0, #3 <== NOT EXECUTED a000eed0: 1a000004 bne a000eee8 <_CORE_mutex_Seize_interrupt_trylock+0x64><== NOT EXECUTED
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
a000eed4: e592c01c ldr ip, [r2, #28]
}
if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
a000eed8: e3500003 cmp r0, #3
_Chain_Prepend_unprotected( &executing->lock_mutex,
&the_mutex->queue.lock_queue );
the_mutex->queue.priority_before = executing->current_priority;
#endif
executing->resource_count++;
a000eedc: e28c4001 add r4, ip, #1 a000eee0: e582401c str r4, [r2, #28]
}
if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) {
a000eee4: 0a000000 beq a000eeec <_CORE_mutex_Seize_interrupt_trylock+0x68>
_ISR_Enable( *level_p );
a000eee8: ea00002a b a000ef98 <_CORE_mutex_Seize_interrupt_trylock+0x114>
*/
{
Priority_Control ceiling;
Priority_Control current;
ceiling = the_mutex->Attributes.priority_ceiling;
a000eeec: e593004c ldr r0, [r3, #76] ; 0x4c <== NOT EXECUTED
current = executing->current_priority;
a000eef0: e5924014 ldr r4, [r2, #20] <== NOT EXECUTED
if ( current == ceiling ) {
a000eef4: e1540000 cmp r4, r0 <== NOT EXECUTED a000eef8: 1a000000 bne a000ef00 <_CORE_mutex_Seize_interrupt_trylock+0x7c><== NOT EXECUTED
_ISR_Enable( *level_p );
a000eefc: ea000025 b a000ef98 <_CORE_mutex_Seize_interrupt_trylock+0x114><== NOT EXECUTED
return 0;
}
if ( current > ceiling ) {
a000ef00: 9a00000b bls a000ef34 <_CORE_mutex_Seize_interrupt_trylock+0xb0><== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000ef04: e59f20b0 ldr r2, [pc, #176] ; a000efbc <_CORE_mutex_Seize_interrupt_trylock+0x138><== NOT EXECUTED a000ef08: e5920000 ldr r0, [r2] <== NOT EXECUTED a000ef0c: e2800001 add r0, r0, #1 <== NOT EXECUTED a000ef10: e5820000 str r0, [r2] <== NOT EXECUTED a000ef14: e5912000 ldr r2, [r1] <== NOT EXECUTED a000ef18: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_Thread_Disable_dispatch();
_ISR_Enable( *level_p );
_Thread_Change_priority(
a000ef1c: e3a02000 mov r2, #0 <== NOT EXECUTED a000ef20: e593005c ldr r0, [r3, #92] ; 0x5c <== NOT EXECUTED a000ef24: e593104c ldr r1, [r3, #76] ; 0x4c <== NOT EXECUTED a000ef28: ebfff119 bl a000b394 <_Thread_Change_priority> <== NOT EXECUTED
the_mutex->holder,
the_mutex->Attributes.priority_ceiling,
false
);
_Thread_Enable_dispatch();
a000ef2c: ebfff21b bl a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED a000ef30: ea00001a b a000efa0 <_CORE_mutex_Seize_interrupt_trylock+0x11c><== NOT EXECUTED
return 0;
}
/* if ( current < ceiling ) */ {
executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED;
a000ef34: e3a00006 mov r0, #6 <== NOT EXECUTED a000ef38: e5820034 str r0, [r2, #52] ; 0x34 <== NOT EXECUTED
the_mutex->lock = CORE_MUTEX_UNLOCKED;
a000ef3c: e3a00001 mov r0, #1 <== NOT EXECUTED a000ef40: e5830050 str r0, [r3, #80] ; 0x50 <== NOT EXECUTED
the_mutex->nest_count = 0; /* undo locking above */
a000ef44: e3a00000 mov r0, #0 <== NOT EXECUTED a000ef48: e5830054 str r0, [r3, #84] ; 0x54 <== NOT EXECUTED
executing->resource_count--; /* undo locking above */
a000ef4c: e582c01c str ip, [r2, #28] <== NOT EXECUTED
a000ef50: e5913000 ldr r3, [r1] <== NOT EXECUTED
a000ef54: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
a000ef58: e8bd8010 pop {r4, pc} <== NOT EXECUTED
/*
* 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 ) ) {
a000ef5c: e593005c ldr r0, [r3, #92] ; 0x5c <== NOT EXECUTED a000ef60: e1500002 cmp r0, r2 <== NOT EXECUTED a000ef64: 1a00000f bne a000efa8 <_CORE_mutex_Seize_interrupt_trylock+0x124><== NOT EXECUTED
switch ( the_mutex->Attributes.lock_nesting_behavior ) {
a000ef68: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED a000ef6c: e3520000 cmp r2, #0 <== NOT EXECUTED a000ef70: 0a000002 beq a000ef80 <_CORE_mutex_Seize_interrupt_trylock+0xfc><== NOT EXECUTED a000ef74: e3520001 cmp r2, #1 <== NOT EXECUTED a000ef78: 1a00000c bne a000efb0 <_CORE_mutex_Seize_interrupt_trylock+0x12c><== NOT EXECUTED a000ef7c: ea000003 b a000ef90 <_CORE_mutex_Seize_interrupt_trylock+0x10c><== NOT EXECUTED
case CORE_MUTEX_NESTING_ACQUIRES:
the_mutex->nest_count++;
a000ef80: e5932054 ldr r2, [r3, #84] ; 0x54 <== NOT EXECUTED a000ef84: e2822001 add r2, r2, #1 <== NOT EXECUTED a000ef88: e5832054 str r2, [r3, #84] ; 0x54 <== NOT EXECUTED
_ISR_Enable( *level_p );
a000ef8c: ea000001 b a000ef98 <_CORE_mutex_Seize_interrupt_trylock+0x114><== NOT EXECUTED
return 0;
#if defined(RTEMS_POSIX_API)
case CORE_MUTEX_NESTING_IS_ERROR:
executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED;
a000ef90: e3a03002 mov r3, #2 <== NOT EXECUTED a000ef94: e5803034 str r3, [r0, #52] ; 0x34 <== NOT EXECUTED
a000ef98: e5913000 ldr r3, [r1] a000ef9c: e129f003 msr CPSR_fc, r3
_ISR_Enable( *level_p );
return 0;
a000efa0: e3a00000 mov r0, #0
a000efa4: e8bd8010 pop {r4, pc}
/*
* The mutex is not available and the caller must deal with the possibility
* of blocking.
*/
return 1;
a000efa8: e3a00001 mov r0, #1 <== NOT EXECUTED
a000efac: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000efb0: e3a00001 mov r0, #1 <== NOT EXECUTED
a000efb4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0009f88 <_CORE_mutex_Surrender>:
#else
Objects_Id id __attribute__((unused)),
CORE_mutex_API_mp_support_callout api_mutex_mp_support __attribute__((unused))
#endif
)
{
a0009f88: e92d4030 push {r4, r5, lr}
a0009f8c: e1a04000 mov r4, r0
* 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 ) {
a0009f90: e5d43044 ldrb r3, [r4, #68] ; 0x44
)
{
Thread_Control *the_thread;
Thread_Control *holder;
holder = the_mutex->holder;
a0009f94: e590005c ldr r0, [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 ) {
a0009f98: e3530000 cmp r3, #0
a0009f9c: 0a000004 beq a0009fb4 <_CORE_mutex_Surrender+0x2c>
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
a0009fa0: e59f30f4 ldr r3, [pc, #244] ; a000a09c <_CORE_mutex_Surrender+0x114>
if ( !_Thread_Is_executing( holder ) )
a0009fa4: e5933004 ldr r3, [r3, #4] a0009fa8: e1500003 cmp r0, r3
return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE;
a0009fac: 13a05003 movne r5, #3
* 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 ) )
a0009fb0: 1a000037 bne a000a094 <_CORE_mutex_Surrender+0x10c>
return CORE_MUTEX_STATUS_NOT_OWNER_OF_RESOURCE;
}
/* XXX already unlocked -- not right status */
if ( !the_mutex->nest_count )
a0009fb4: e5945054 ldr r5, [r4, #84] ; 0x54 a0009fb8: e3550000 cmp r5, #0
a0009fbc: 0a000034 beq a000a094 <_CORE_mutex_Surrender+0x10c>
return CORE_MUTEX_STATUS_SUCCESSFUL;
the_mutex->nest_count--;
a0009fc0: e2455001 sub r5, r5, #1
if ( the_mutex->nest_count != 0 ) {
a0009fc4: e3550000 cmp r5, #0
/* XXX already unlocked -- not right status */
if ( !the_mutex->nest_count )
return CORE_MUTEX_STATUS_SUCCESSFUL;
the_mutex->nest_count--;
a0009fc8: e5845054 str r5, [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;
a0009fcc: 13a05000 movne r5, #0
if ( !the_mutex->nest_count )
return CORE_MUTEX_STATUS_SUCCESSFUL;
the_mutex->nest_count--;
if ( the_mutex->nest_count != 0 ) {
a0009fd0: 1a00002f bne a000a094 <_CORE_mutex_Surrender+0x10c>
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
a0009fd4: 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 ) ||
a0009fd8: e3530002 cmp r3, #2
a0009fdc: 0a000001 beq a0009fe8 <_CORE_mutex_Surrender+0x60>
a0009fe0: e3530003 cmp r3, #3 <== NOT EXECUTED a0009fe4: 1a00000a bne a000a014 <_CORE_mutex_Surrender+0x8c> <== NOT EXECUTED
_CORE_mutex_Pop_priority( the_mutex, holder );
if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL )
return pop_status;
holder->resource_count--;
a0009fe8: e590301c ldr r3, [r0, #28] a0009fec: 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 &&
a0009ff0: e3530000 cmp r3, #0
_CORE_mutex_Pop_priority( the_mutex, holder );
if ( pop_status != CORE_MUTEX_STATUS_SUCCESSFUL )
return pop_status;
holder->resource_count--;
a0009ff4: e580301c str r3, [r0, #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 &&
a0009ff8: 1a000005 bne a000a014 <_CORE_mutex_Surrender+0x8c>
holder->real_priority != holder->current_priority ) {
a0009ffc: e5901018 ldr r1, [r0, #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 &&
a000a000: e5903014 ldr r3, [r0, #20] a000a004: e1510003 cmp r1, r3
a000a008: 0a000001 beq a000a014 <_CORE_mutex_Surrender+0x8c>
holder->real_priority != holder->current_priority ) {
_Thread_Change_priority( holder, holder->real_priority, true );
a000a00c: e3a02001 mov r2, #1 <== NOT EXECUTED a000a010: eb0004df bl a000b394 <_Thread_Change_priority> <== NOT EXECUTED
}
}
the_mutex->holder = NULL;
a000a014: e3a05000 mov r5, #0 a000a018: e584505c str r5, [r4, #92] ; 0x5c
the_mutex->holder_id = 0;
a000a01c: 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 ) ) ) {
a000a020: e1a00004 mov r0, r4 a000a024: eb0006a8 bl a000bacc <_Thread_queue_Dequeue> a000a028: e2503000 subs r3, r0, #0
}
break;
}
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
a000a02c: 03a02001 moveq r2, #1 a000a030: 05842050 streq r2, [r4, #80] ; 0x50
return CORE_MUTEX_STATUS_SUCCESSFUL;
a000a034: 01a05003 moveq r5, 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 ) ) ) {
a000a038: 0a000015 beq a000a094 <_CORE_mutex_Surrender+0x10c>
} else
#endif
{
the_mutex->holder = the_thread;
the_mutex->holder_id = the_thread->Object.id;
a000a03c: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED
} else
#endif
{
the_mutex->holder = the_thread;
a000a040: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED
the_mutex->holder_id = the_thread->Object.id;
a000a044: e5842060 str r2, [r4, #96] ; 0x60 <== NOT EXECUTED
the_mutex->nest_count = 1;
a000a048: e3a02001 mov r2, #1 <== NOT EXECUTED a000a04c: e5842054 str r2, [r4, #84] ; 0x54 <== NOT EXECUTED
switch ( the_mutex->Attributes.discipline ) {
a000a050: e5942048 ldr r2, [r4, #72] ; 0x48 <== NOT EXECUTED a000a054: e3520002 cmp r2, #2 <== NOT EXECUTED
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++;
a000a058: 0593201c ldreq r2, [r3, #28] <== NOT EXECUTED a000a05c: 02822001 addeq r2, r2, #1 <== NOT EXECUTED a000a060: 0583201c streq r2, [r3, #28] <== 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 ) {
a000a064: 0a00000a beq a000a094 <_CORE_mutex_Surrender+0x10c> <== NOT EXECUTED a000a068: e3520003 cmp r2, #3 <== NOT EXECUTED a000a06c: 1a000008 bne a000a094 <_CORE_mutex_Surrender+0x10c> <== 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++;
a000a070: e593201c ldr r2, [r3, #28] <== NOT EXECUTED
if (the_mutex->Attributes.priority_ceiling <
a000a074: e594104c ldr r1, [r4, #76] ; 0x4c <== 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++;
a000a078: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a07c: e583201c str r2, [r3, #28] <== NOT EXECUTED
if (the_mutex->Attributes.priority_ceiling <
a000a080: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED a000a084: e1510003 cmp r1, r3 <== NOT EXECUTED a000a088: 2a000001 bcs a000a094 <_CORE_mutex_Surrender+0x10c> <== NOT EXECUTED
the_thread->current_priority){
_Thread_Change_priority(
a000a08c: e1a02005 mov r2, r5 <== NOT EXECUTED a000a090: eb0004bf bl a000b394 <_Thread_Change_priority> <== NOT EXECUTED
}
} else
the_mutex->lock = CORE_MUTEX_UNLOCKED;
return CORE_MUTEX_STATUS_SUCCESSFUL;
}
a000a094: e1a00005 mov r0, r5
a000a098: e8bd8030 pop {r4, r5, pc}
a0012dbc <_CORE_semaphore_Seize>:
)
{
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
a0012dbc: e59fc074 ldr ip, [pc, #116] ; a0012e38 <_CORE_semaphore_Seize+0x7c><== NOT EXECUTED
CORE_semaphore_Control *the_semaphore,
Objects_Id id,
bool wait,
Watchdog_Interval timeout
)
{
a0012dc0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
a0012dc4: e59cc004 ldr ip, [ip, #4] <== NOT EXECUTED
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
a0012dc8: e3a04000 mov r4, #0 <== NOT EXECUTED
CORE_semaphore_Control *the_semaphore,
Objects_Id id,
bool wait,
Watchdog_Interval timeout
)
{
a0012dcc: e20220ff and r2, r2, #255 ; 0xff <== NOT EXECUTED
Thread_Control *executing;
ISR_Level level;
executing = _Thread_Executing;
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
a0012dd0: e58c4034 str r4, [ip, #52] ; 0x34 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0012dd4: e10f4000 mrs r4, CPSR <== NOT EXECUTED a0012dd8: e3845080 orr r5, r4, #128 ; 0x80 <== NOT EXECUTED a0012ddc: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
_ISR_Disable( level );
if ( the_semaphore->count != 0 ) {
a0012de0: e5905048 ldr r5, [r0, #72] ; 0x48 <== NOT EXECUTED a0012de4: e3550000 cmp r5, #0 <== NOT EXECUTED a0012de8: 0a000003 beq a0012dfc <_CORE_semaphore_Seize+0x40> <== NOT EXECUTED
the_semaphore->count -= 1;
a0012dec: e2455001 sub r5, r5, #1 <== NOT EXECUTED a0012df0: e5805048 str r5, [r0, #72] ; 0x48 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0012df4: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
a0012df8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
/*
* If the semaphore was not available and the caller was not willing
* to block, then return immediately with a status indicating that
* the semaphore was not available and the caller never blocked.
*/
if ( !wait ) {
a0012dfc: e3520000 cmp r2, #0 <== NOT EXECUTED a0012e00: 1a000003 bne a0012e14 <_CORE_semaphore_Seize+0x58> <== NOT EXECUTED a0012e04: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Enable( level );
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT;
a0012e08: e3a03001 mov r3, #1 <== NOT EXECUTED
a0012e0c: e58c3034 str r3, [ip, #52] ; 0x34 <== NOT EXECUTED
a0012e10: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0012e14: e3a02001 mov r2, #1 <== NOT EXECUTED
a0012e18: e5802030 str r2, [r0, #48] ; 0x30 <== NOT EXECUTED
/* * If the semaphore is not available and the caller is willing to * block, then we now block the caller with optional timeout. */ _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue;
a0012e1c: e58c0044 str r0, [ip, #68] ; 0x44 <== NOT EXECUTED
executing->Wait.id = id;
a0012e20: e58c1020 str r1, [ip, #32] <== NOT EXECUTED a0012e24: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Enable( level ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
a0012e28: e59f200c ldr r2, [pc, #12] ; a0012e3c <_CORE_semaphore_Seize+0x80><== NOT EXECUTED a0012e2c: e1a01003 mov r1, r3 <== NOT EXECUTED
}
a0012e30: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
*/ _Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue ); executing->Wait.queue = &the_semaphore->Wait_queue; executing->Wait.id = id; _ISR_Enable( level ); _Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
a0012e34: eafff18e b a000f474 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
a000a0d8 <_CORE_semaphore_Surrender>:
CORE_semaphore_Status _CORE_semaphore_Surrender(
CORE_semaphore_Control *the_semaphore,
Objects_Id id,
CORE_semaphore_API_mp_support_callout api_semaphore_mp_support
)
{
a000a0d8: e92d4010 push {r4, lr} <== NOT EXECUTED
a000a0dc: e1a04000 mov r4, r0 <== NOT EXECUTED
ISR_Level level;
CORE_semaphore_Status status;
status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
a000a0e0: eb000679 bl a000bacc <_Thread_queue_Dequeue> <== NOT EXECUTED a000a0e4: e3500000 cmp r0, #0 <== NOT EXECUTED a000a0e8: 1a00000a bne a000a118 <_CORE_semaphore_Surrender+0x40> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000a0ec: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000a0f0: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000a0f4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
(*api_semaphore_mp_support) ( the_thread, id );
#endif
} else {
_ISR_Disable( level );
if ( the_semaphore->count < the_semaphore->Attributes.maximum_count )
a000a0f8: e5943048 ldr r3, [r4, #72] ; 0x48 <== NOT EXECUTED a000a0fc: e5941040 ldr r1, [r4, #64] ; 0x40 <== NOT EXECUTED a000a100: e1530001 cmp r3, r1 <== NOT EXECUTED
the_semaphore->count += 1;
a000a104: 32833001 addcc r3, r3, #1 <== NOT EXECUTED a000a108: 35843048 strcc r3, [r4, #72] ; 0x48 <== NOT EXECUTED
else
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
a000a10c: 23a00004 movcs r0, #4 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000a110: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
a000a114: e8bd8010 pop {r4, pc} <== NOT EXECUTED
{
Thread_Control *the_thread;
ISR_Level level;
CORE_semaphore_Status status;
status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
a000a118: e3a00000 mov r0, #0 <== NOT EXECUTED
status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;
_ISR_Enable( level );
}
return status;
}
a000a11c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000ac0c <_CORE_spinlock_Initialize>:
CORE_spinlock_Control *the_spinlock,
CORE_spinlock_Attributes *the_spinlock_attributes
)
{
the_spinlock->Attributes = *the_spinlock_attributes;
a000ac0c: e5913000 ldr r3, [r1] <== NOT EXECUTED a000ac10: e5803000 str r3, [r0] <== NOT EXECUTED
the_spinlock->lock = 0;
a000ac14: e3a03000 mov r3, #0 <== NOT EXECUTED a000ac18: e5803004 str r3, [r0, #4] <== NOT EXECUTED
the_spinlock->users = 0;
a000ac1c: e5803008 str r3, [r0, #8] <== NOT EXECUTED
the_spinlock->holder = 0;
a000ac20: e580300c str r3, [r0, #12] <== NOT EXECUTED
}
a000ac24: e12fff1e bx lr <== NOT EXECUTED
a000ac28 <_CORE_spinlock_Release>:
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000ac28: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000ac2c: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a000ac30: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_ISR_Disable( level );
/*
* It must locked before it can be unlocked.
*/
if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) {
a000ac34: e5902004 ldr r2, [r0, #4] <== NOT EXECUTED a000ac38: e3520000 cmp r2, #0 <== NOT EXECUTED a000ac3c: 1a000002 bne a000ac4c <_CORE_spinlock_Release+0x24> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000ac40: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
return CORE_SPINLOCK_NOT_LOCKED;
a000ac44: e3a00006 mov r0, #6 <== NOT EXECUTED a000ac48: e12fff1e bx lr <== NOT EXECUTED
}
/*
* It must locked by the current thread before it can be unlocked.
*/
if ( the_spinlock->holder != _Thread_Executing->Object.id ) {
a000ac4c: e59f2040 ldr r2, [pc, #64] ; a000ac94 <_CORE_spinlock_Release+0x6c><== NOT EXECUTED a000ac50: e590100c ldr r1, [r0, #12] <== NOT EXECUTED a000ac54: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED a000ac58: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a000ac5c: e1510002 cmp r1, r2 <== NOT EXECUTED a000ac60: 0a000002 beq a000ac70 <_CORE_spinlock_Release+0x48> <== NOT EXECUTED a000ac64: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
return CORE_SPINLOCK_NOT_HOLDER;
a000ac68: e3a00002 mov r0, #2 <== NOT EXECUTED a000ac6c: e12fff1e bx lr <== NOT EXECUTED
}
/*
* Let it be unlocked.
*/
the_spinlock->users -= 1;
a000ac70: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED a000ac74: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000ac78: e5802008 str r2, [r0, #8] <== NOT EXECUTED
the_spinlock->lock = CORE_SPINLOCK_UNLOCKED;
a000ac7c: e3a02000 mov r2, #0 <== NOT EXECUTED a000ac80: e5802004 str r2, [r0, #4] <== NOT EXECUTED
the_spinlock->holder = 0;
a000ac84: e580200c str r2, [r0, #12] <== NOT EXECUTED a000ac88: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
return CORE_SPINLOCK_SUCCESSFUL;
a000ac8c: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a000ac90: e12fff1e bx lr <== NOT EXECUTED
a000ac98 <_CORE_spinlock_Wait>:
CORE_spinlock_Status _CORE_spinlock_Wait(
CORE_spinlock_Control *the_spinlock,
bool wait,
Watchdog_Interval timeout
)
{
a000ac98: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a000ac9c: e1a04000 mov r4, r0 <== NOT EXECUTED
a000aca0: e20160ff and r6, r1, #255 ; 0xff <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000aca4: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000aca8: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a000acac: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
Watchdog_Interval limit = _Watchdog_Ticks_since_boot + timeout;
#endif
_ISR_Disable( level );
if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) &&
a000acb0: e5902004 ldr r2, [r0, #4] <== NOT EXECUTED a000acb4: e3520001 cmp r2, #1 <== NOT EXECUTED a000acb8: 1a000008 bne a000ace0 <_CORE_spinlock_Wait+0x48> <== NOT EXECUTED
(the_spinlock->holder == _Thread_Executing->Object.id) ) {
a000acbc: e59f20a0 ldr r2, [pc, #160] ; a000ad64 <_CORE_spinlock_Wait+0xcc><== NOT EXECUTED a000acc0: e590100c ldr r1, [r0, #12] <== NOT EXECUTED a000acc4: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
Watchdog_Interval limit = _Watchdog_Ticks_since_boot + timeout;
#endif
_ISR_Disable( level );
if ( (the_spinlock->lock == CORE_SPINLOCK_LOCKED) &&
a000acc8: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a000accc: e1510002 cmp r1, r2 <== NOT EXECUTED a000acd0: 1a000002 bne a000ace0 <_CORE_spinlock_Wait+0x48> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000acd4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
(the_spinlock->holder == _Thread_Executing->Object.id) ) {
_ISR_Enable( level );
return CORE_SPINLOCK_HOLDER_RELOCKING;
a000acd8: e3a00001 mov r0, #1 <== NOT EXECUTED
a000acdc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
}
the_spinlock->users += 1;
a000ace0: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000ace4: e59f507c ldr r5, [pc, #124] ; a000ad68 <_CORE_spinlock_Wait+0xd0><== NOT EXECUTED a000ace8: e2822001 add r2, r2, #1 <== NOT EXECUTED a000acec: e5842008 str r2, [r4, #8] <== NOT EXECUTED
for ( ;; ) {
if ( the_spinlock->lock == CORE_SPINLOCK_UNLOCKED ) {
a000acf0: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a000acf4: e3520000 cmp r2, #0 <== NOT EXECUTED a000acf8: 1a000008 bne a000ad20 <_CORE_spinlock_Wait+0x88> <== NOT EXECUTED
the_spinlock->lock = CORE_SPINLOCK_LOCKED;
a000acfc: e2822001 add r2, r2, #1 <== NOT EXECUTED a000ad00: e5842004 str r2, [r4, #4] <== NOT EXECUTED
the_spinlock->holder = _Thread_Executing->Object.id;
a000ad04: e59f2058 ldr r2, [pc, #88] ; a000ad64 <_CORE_spinlock_Wait+0xcc><== NOT EXECUTED a000ad08: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED a000ad0c: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a000ad10: e584200c str r2, [r4, #12] <== NOT EXECUTED a000ad14: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
return CORE_SPINLOCK_SUCCESSFUL;
a000ad18: e3a00000 mov r0, #0 <== NOT EXECUTED
a000ad1c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
}
/*
* Spinlock is unavailable. If not willing to wait, return.
*/
if ( !wait ) {
a000ad20: e3560000 cmp r6, #0 <== NOT EXECUTED a000ad24: 1a000005 bne a000ad40 <_CORE_spinlock_Wait+0xa8> <== NOT EXECUTED
the_spinlock->users -= 1;
a000ad28: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED a000ad2c: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000ad30: e5842008 str r2, [r4, #8] <== NOT EXECUTED a000ad34: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
return CORE_SPINLOCK_UNAVAILABLE;
a000ad38: e3a00005 mov r0, #5 <== NOT EXECUTED
a000ad3c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000ad40: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
*/
_ISR_Enable( level );
/* An ISR could occur here */
_Thread_Enable_dispatch();
a000ad44: eb000584 bl a000c35c <_Thread_Enable_dispatch> <== NOT EXECUTED a000ad48: e5953000 ldr r3, [r5] <== NOT EXECUTED a000ad4c: e2833001 add r3, r3, #1 <== NOT EXECUTED a000ad50: e5853000 str r3, [r5] <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000ad54: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000ad58: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a000ad5c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
/* Reenter the critical sections so we can attempt the lock again. */
_Thread_Disable_dispatch();
_ISR_Disable( level );
}
a000ad60: eaffffe2 b a000acf0 <_CORE_spinlock_Wait+0x58> <== NOT EXECUTED
a000a69c <_Chain_Append_with_empty_check>:
bool _Chain_Append_with_empty_check(
Chain_Control *chain,
Chain_Node *node
)
{
a000a69c: e92d4010 push {r4, lr} <== NOT EXECUTED
a000a6a0: e1a03000 mov r3, r0 <== NOT EXECUTED
a000a6a4: e10f4000 mrs r4, CPSR <== NOT EXECUTED
a000a6a8: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED
a000a6ac: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
a000a6b0: e5932008 ldr r2, [r3, #8] <== 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 );
a000a6b4: e280c004 add ip, r0, #4 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
a000a6b8: e5900000 ldr r0, [r0] <== NOT EXECUTED
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
a000a6bc: e5831008 str r1, [r3, #8] <== NOT EXECUTED
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
a000a6c0: e581c000 str ip, [r1] <== NOT EXECUTED
tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last;
a000a6c4: e5812004 str r2, [r1, #4] <== 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;
a000a6c8: e5821000 str r1, [r2] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
a000a6cc: e150000c cmp r0, ip <== NOT EXECUTED a000a6d0: 13a00000 movne r0, #0 <== NOT EXECUTED a000a6d4: 03a00001 moveq r0, #1 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000a6d8: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Disable( level );
was_empty = _Chain_Append_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
return was_empty;
}
a000a6dc: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0009d44 <_Chain_Extract>:
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0009d44: e10f1000 mrs r1, CPSR <== NOT EXECUTED a0009d48: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED a0009d4c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
a0009d50: e890000c ldm r0, {r2, r3} <== NOT EXECUTED
previous = the_node->previous; next->previous = previous;
a0009d54: e5823004 str r3, [r2, #4] <== NOT EXECUTED
previous->next = next;
a0009d58: e5832000 str r2, [r3] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0009d5c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
_Chain_Extract_unprotected( node );
_ISR_Enable( level );
}
a0009d60: e12fff1e bx lr <== NOT EXECUTED
a000a72c <_Chain_Get_with_empty_check>:
bool _Chain_Get_with_empty_check(
Chain_Control *chain,
Chain_Node **node
)
{
a000a72c: e92d4010 push {r4, lr} <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000a730: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000a734: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED a000a738: 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;
a000a73c: e5902000 ldr r2, [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 );
a000a740: e280c004 add ip, r0, #4 <== NOT EXECUTED
Chain_Node *old_first = head->next;
if ( old_first != tail ) {
a000a744: e152000c cmp r2, ip <== NOT EXECUTED
*the_node = old_first;
is_empty_now = new_first == tail;
} else
*the_node = NULL;
a000a748: 03a03000 moveq r3, #0 <== NOT EXECUTED a000a74c: 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;
a000a750: 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 ) {
a000a754: 0a000006 beq a000a774 <_Chain_Get_with_empty_check+0x48> <== NOT EXECUTED
Chain_Node *new_first = old_first->next;
a000a758: e5923000 ldr r3, [r2] <== NOT EXECUTED
head->next = new_first;
a000a75c: e5803000 str r3, [r0] <== NOT EXECUTED
new_first->previous = head;
a000a760: e5830004 str r0, [r3, #4] <== NOT EXECUTED
*the_node = old_first;
a000a764: e5812000 str r2, [r1] <== NOT EXECUTED
is_empty_now = new_first == tail;
a000a768: e153000c cmp r3, ip <== NOT EXECUTED a000a76c: 13a00000 movne r0, #0 <== NOT EXECUTED a000a770: 03a00001 moveq r0, #1 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000a774: 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;
}
a000a778: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a00129e8 <_Chain_Insert>:
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a00129e8: e10f2000 mrs r2, CPSR <== NOT EXECUTED a00129ec: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a00129f0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
a00129f4: e5903000 ldr r3, [r0] <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
a00129f8: e5810004 str r0, [r1, #4] <== NOT EXECUTED
before_node = after_node->next; after_node->next = the_node;
a00129fc: e5801000 str r1, [r0] <== NOT EXECUTED
the_node->next = before_node; before_node->previous = the_node;
a0012a00: 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;
a0012a04: e5813000 str r3, [r1] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0012a08: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
_Chain_Insert_unprotected( after_node, node );
_ISR_Enable( level );
}
a0012a0c: e12fff1e bx lr <== NOT EXECUTED
a000a7d8 <_Chain_Prepend_with_empty_check>:
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000a7d8: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000a7dc: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000a7e0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Disable( level );
was_empty = _Chain_Prepend_with_empty_check_unprotected( chain, node );
_ISR_Enable( level );
return was_empty;
}
a000a7e4: e5903000 ldr r3, [r0] <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
a000a7e8: e5810004 str r0, [r1, #4] <== NOT EXECUTED
before_node = after_node->next; after_node->next = the_node;
a000a7ec: e4801004 str r1, [r0], #4 <== NOT EXECUTED
the_node->next = before_node; before_node->previous = the_node;
a000a7f0: 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;
a000a7f4: e5813000 str r3, [r1] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000a7f8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a000a7fc: e1530000 cmp r3, r0 <== NOT EXECUTED a000a800: 13a00000 movne r0, #0 <== NOT EXECUTED a000a804: 03a00001 moveq r0, #1 <== NOT EXECUTED a000a808: e12fff1e bx lr <== NOT EXECUTED
a0008e58 <_Event_Seize>:
rtems_event_set pending_events;
ISR_Level level;
RTEMS_API_Control *api;
Thread_blocking_operation_States sync_state;
executing = _Thread_Executing;
a0008e58: e59fc0f8 ldr ip, [pc, #248] ; a0008f58 <_Event_Seize+0x100><== NOT EXECUTED
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
a0008e5c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
rtems_event_set pending_events;
ISR_Level level;
RTEMS_API_Control *api;
Thread_blocking_operation_States sync_state;
executing = _Thread_Executing;
a0008e60: e59c4004 ldr r4, [ip, #4] <== NOT EXECUTED
executing->Wait.return_code = RTEMS_SUCCESSFUL;
a0008e64: e3a0c000 mov ip, #0 <== NOT EXECUTED a0008e68: e584c034 str ip, [r4, #52] ; 0x34 <== NOT EXECUTED
api = executing->API_Extensions[ THREAD_API_RTEMS ];
a0008e6c: e59470f8 ldr r7, [r4, #248] ; 0xf8 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0008e70: e10f5000 mrs r5, CPSR <== NOT EXECUTED a0008e74: e385c080 orr ip, r5, #128 ; 0x80 <== NOT EXECUTED a0008e78: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
_ISR_Disable( level );
pending_events = api->pending_events;
a0008e7c: e5976000 ldr r6, [r7] <== NOT EXECUTED
seized_events = _Event_sets_Get( pending_events, event_in );
if ( !_Event_sets_Is_empty( seized_events ) &&
a0008e80: e010c006 ands ip, r0, r6 <== NOT EXECUTED a0008e84: 0a000007 beq a0008ea8 <_Event_Seize+0x50> <== NOT EXECUTED a0008e88: e15c0000 cmp ip, r0 <== NOT EXECUTED a0008e8c: 0a000001 beq a0008e98 <_Event_Seize+0x40> <== NOT EXECUTED
(seized_events == event_in || _Options_Is_any( option_set )) ) {
a0008e90: e3110002 tst r1, #2 <== NOT EXECUTED a0008e94: 0a000003 beq a0008ea8 <_Event_Seize+0x50> <== NOT EXECUTED
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) );
a0008e98: e1c6600c bic r6, r6, ip <== NOT EXECUTED
api->pending_events =
a0008e9c: e5876000 str r6, [r7] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0008ea0: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a0008ea4: ea000004 b a0008ebc <_Event_Seize+0x64> <== NOT EXECUTED
_ISR_Enable( level );
*event_out = seized_events;
return;
}
if ( _Options_Is_no_wait( option_set ) ) {
a0008ea8: e3110001 tst r1, #1 <== NOT EXECUTED a0008eac: 0a000004 beq a0008ec4 <_Event_Seize+0x6c> <== NOT EXECUTED a0008eb0: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
_ISR_Enable( level );
executing->Wait.return_code = RTEMS_UNSATISFIED;
a0008eb4: e3a0200d mov r2, #13 <== NOT EXECUTED a0008eb8: e5842034 str r2, [r4, #52] ; 0x34 <== NOT EXECUTED
*event_out = seized_events;
a0008ebc: e583c000 str ip, [r3] <== NOT EXECUTED
return;
a0008ec0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
* NOTE: Since interrupts are disabled, this isn't that much of an * issue but better safe than sorry. */ executing->Wait.option = (uint32_t) option_set; executing->Wait.count = (uint32_t) event_in; executing->Wait.return_argument = event_out;
a0008ec4: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
a0008ec8: e59f308c ldr r3, [pc, #140] ; a0008f5c <_Event_Seize+0x104><== NOT EXECUTED
* set properly when we are marked as in the event critical section. * * NOTE: Since interrupts are disabled, this isn't that much of an * issue but better safe than sorry. */ executing->Wait.option = (uint32_t) option_set;
a0008ecc: e5841030 str r1, [r4, #48] ; 0x30 <== NOT EXECUTED
executing->Wait.count = (uint32_t) event_in;
executing->Wait.return_argument = event_out;
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
a0008ed0: e3a01001 mov r1, #1 <== NOT EXECUTED
* * NOTE: Since interrupts are disabled, this isn't that much of an * issue but better safe than sorry. */ executing->Wait.option = (uint32_t) option_set; executing->Wait.count = (uint32_t) event_in;
a0008ed4: e5840024 str r0, [r4, #36] ; 0x24 <== NOT EXECUTED
executing->Wait.return_argument = event_out;
_Event_Sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
a0008ed8: e5831000 str r1, [r3] <== NOT EXECUTED a0008edc: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
_ISR_Enable( level );
if ( ticks ) {
a0008ee0: e3520000 cmp r2, #0 <== NOT EXECUTED a0008ee4: 0a00000a beq a0008f14 <_Event_Seize+0xbc> <== NOT EXECUTED
_Watchdog_Initialize(
a0008ee8: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a0008eec: e59f006c ldr r0, [pc, #108] ; a0008f60 <_Event_Seize+0x108><== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a0008ef0: e3a03000 mov r3, #0 <== NOT EXECUTED
the_watchdog->routine = routine; the_watchdog->id = id;
a0008ef4: e5841068 str r1, [r4, #104] ; 0x68 <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a0008ef8: e5840064 str r0, [r4, #100] ; 0x64 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a0008efc: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED
the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data;
a0008f00: e584306c str r3, [r4, #108] ; 0x6c <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a0008f04: e5842054 str r2, [r4, #84] ; 0x54 <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a0008f08: e59f0054 ldr r0, [pc, #84] ; a0008f64 <_Event_Seize+0x10c> <== NOT EXECUTED a0008f0c: e2841048 add r1, r4, #72 ; 0x48 <== NOT EXECUTED a0008f10: eb000d8d bl a000c54c <_Watchdog_Insert> <== NOT EXECUTED
NULL
);
_Watchdog_Insert_ticks( &executing->Timer, ticks );
}
_Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );
a0008f14: e1a00004 mov r0, r4 <== NOT EXECUTED a0008f18: e3a01c01 mov r1, #256 ; 0x100 <== NOT EXECUTED a0008f1c: eb000c2e bl a000bfdc <_Thread_Set_state> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0008f20: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0008f24: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a0008f28: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Disable( level );
sync_state = _Event_Sync_state;
a0008f2c: e59f3028 ldr r3, [pc, #40] ; a0008f5c <_Event_Seize+0x104> <== NOT EXECUTED
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
a0008f30: e3a01000 mov r1, #0 <== NOT EXECUTED
_Thread_Set_state( executing, STATES_WAITING_FOR_EVENT );
_ISR_Disable( level );
sync_state = _Event_Sync_state;
a0008f34: e5930000 ldr r0, [r3] <== NOT EXECUTED
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
a0008f38: e5831000 str r1, [r3] <== NOT EXECUTED
if ( sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) {
a0008f3c: e3500001 cmp r0, #1 <== NOT EXECUTED a0008f40: 1a000001 bne a0008f4c <_Event_Seize+0xf4> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0008f44: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
a0008f48: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
* An interrupt completed the thread's blocking request. * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level );
a0008f4c: e1a01004 mov r1, r4 <== NOT EXECUTED
}
a0008f50: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED
* An interrupt completed the thread's blocking request. * The blocking thread was satisfied by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ _Thread_blocking_operation_Cancel( sync_state, executing, level );
a0008f54: ea0008fb b a000b348 <_Thread_blocking_operation_Cancel> <== NOT EXECUTED
a0008fb8 <_Event_Surrender>:
*/
void _Event_Surrender(
Thread_Control *the_thread
)
{
a0008fb8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
rtems_event_set event_condition;
rtems_event_set seized_events;
rtems_option option_set;
RTEMS_API_Control *api;
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
a0008fbc: e590c0f8 ldr ip, [r0, #248] ; 0xf8 <== NOT EXECUTED
option_set = (rtems_option) the_thread->Wait.option;
a0008fc0: e5905030 ldr r5, [r0, #48] ; 0x30 <== NOT EXECUTED
*/
void _Event_Surrender(
Thread_Control *the_thread
)
{
a0008fc4: e1a04000 mov r4, r0 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0008fc8: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0008fcc: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0008fd0: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
option_set = (rtems_option) the_thread->Wait.option;
_ISR_Disable( level );
pending_events = api->pending_events;
a0008fd4: e59c1000 ldr r1, [ip] <== NOT EXECUTED
event_condition = (rtems_event_set) the_thread->Wait.count;
a0008fd8: e5900024 ldr r0, [r0, #36] ; 0x24 <== NOT EXECUTED
seized_events = _Event_sets_Get( pending_events, event_condition );
/*
* No events were seized in this operation
*/
if ( _Event_sets_Is_empty( seized_events ) ) {
a0008fdc: e0102001 ands r2, r0, r1 <== NOT EXECUTED a0008fe0: 1a000000 bne a0008fe8 <_Event_Surrender+0x30> <== NOT EXECUTED
_ISR_Enable( level );
a0008fe4: ea000039 b a00090d0 <_Event_Surrender+0x118> <== 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() &&
a0008fe8: e59f60e8 ldr r6, [pc, #232] ; a00090d8 <_Event_Surrender+0x120><== NOT EXECUTED a0008fec: e5967000 ldr r7, [r6] <== NOT EXECUTED a0008ff0: e3570000 cmp r7, #0 <== NOT EXECUTED a0008ff4: 0a000017 beq a0009058 <_Event_Surrender+0xa0> <== NOT EXECUTED a0008ff8: e5966004 ldr r6, [r6, #4] <== NOT EXECUTED a0008ffc: e1540006 cmp r4, r6 <== NOT EXECUTED a0009000: 1a000014 bne a0009058 <_Event_Surrender+0xa0> <== NOT EXECUTED
_Thread_Is_executing( the_thread ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
a0009004: e59f60d0 ldr r6, [pc, #208] ; a00090dc <_Event_Surrender+0x124><== NOT EXECUTED a0009008: e5967000 ldr r7, [r6] <== 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 ) &&
a000900c: e3570002 cmp r7, #2 <== NOT EXECUTED a0009010: 0a000002 beq a0009020 <_Event_Surrender+0x68> <== NOT EXECUTED
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
a0009014: e5966000 ldr r6, [r6] <== 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 ) &&
((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||
a0009018: e3560001 cmp r6, #1 <== NOT EXECUTED a000901c: 1a00000d bne a0009058 <_Event_Surrender+0xa0> <== NOT EXECUTED
(_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
a0009020: e1520000 cmp r2, r0 <== NOT EXECUTED a0009024: 0a000001 beq a0009030 <_Event_Surrender+0x78> <== NOT EXECUTED a0009028: e3150002 tst r5, #2 <== NOT EXECUTED a000902c: 0a000008 beq a0009054 <_Event_Surrender+0x9c> <== NOT EXECUTED
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) );
a0009030: e1c11002 bic r1, r1, r2 <== NOT EXECUTED
api->pending_events = _Event_sets_Clear( pending_events,seized_events );
a0009034: e58c1000 str r1, [ip] <== NOT EXECUTED
the_thread->Wait.count = 0;
a0009038: e3a01000 mov r1, #0 <== NOT EXECUTED a000903c: e5841024 str r1, [r4, #36] ; 0x24 <== NOT EXECUTED
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
a0009040: e5941028 ldr r1, [r4, #40] ; 0x28 <== NOT EXECUTED a0009044: e5812000 str r2, [r1] <== NOT EXECUTED
_Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;
a0009048: e59f208c ldr r2, [pc, #140] ; a00090dc <_Event_Surrender+0x124><== NOT EXECUTED a000904c: e3a01003 mov r1, #3 <== NOT EXECUTED a0009050: e5821000 str r1, [r2] <== NOT EXECUTED
}
_ISR_Enable( level );
a0009054: ea00001d b a00090d0 <_Event_Surrender+0x118> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_for_event (
States_Control the_states
)
{
return (the_states & STATES_WAITING_FOR_EVENT);
a0009058: e5946010 ldr r6, [r4, #16] <== NOT EXECUTED
}
/*
* Otherwise, this is a normal send to another thread
*/
if ( _States_Is_waiting_for_event( the_thread->current_state ) ) {
a000905c: e3160c01 tst r6, #256 ; 0x100 <== NOT EXECUTED a0009060: 0a00001a beq a00090d0 <_Event_Surrender+0x118> <== NOT EXECUTED
if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
a0009064: e1520000 cmp r2, r0 <== NOT EXECUTED a0009068: 0a000001 beq a0009074 <_Event_Surrender+0xbc> <== NOT EXECUTED a000906c: e3150002 tst r5, #2 <== NOT EXECUTED a0009070: 0a000016 beq a00090d0 <_Event_Surrender+0x118> <== NOT EXECUTED a0009074: e1c11002 bic r1, r1, r2 <== NOT EXECUTED
api->pending_events = _Event_sets_Clear( pending_events, seized_events );
a0009078: e58c1000 str r1, [ip] <== NOT EXECUTED
the_thread->Wait.count = 0;
a000907c: e3a01000 mov r1, #0 <== NOT EXECUTED a0009080: e5841024 str r1, [r4, #36] ; 0x24 <== NOT EXECUTED
*(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
a0009084: e5941028 ldr r1, [r4, #40] ; 0x28 <== NOT EXECUTED a0009088: e5812000 str r2, [r1] <== NOT EXECUTED
static inline void arm_interrupt_flash( uint32_t level )
{
uint32_t arm_switch_reg;
__asm__ volatile (
a000908c: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0009090: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0009094: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_ISR_Flash( level );
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
a0009098: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a000909c: e3520002 cmp r2, #2 <== NOT EXECUTED a00090a0: 0a000001 beq a00090ac <_Event_Surrender+0xf4> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a00090a4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a00090a8: ea000004 b a00090c0 <_Event_Surrender+0x108> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
a00090ac: e3a02003 mov r2, #3 <== NOT EXECUTED a00090b0: e5842050 str r2, [r4, #80] ; 0x50 <== NOT EXECUTED a00090b4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
a00090b8: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a00090bc: eb000d7a bl a000c6ac <_Watchdog_Remove> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
a00090c0: e59f1018 ldr r1, [pc, #24] ; a00090e0 <_Event_Surrender+0x128><== NOT EXECUTED a00090c4: e1a00004 mov r0, r4 <== NOT EXECUTED
}
return;
}
}
_ISR_Enable( level );
}
a00090c8: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED
a00090cc: ea0008ec b a000b484 <_Thread_Clear_state> <== NOT EXECUTED
a00090d0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
a00090d4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a00090e4 <_Event_Timeout>:
void _Event_Timeout(
Objects_Id id,
void *ignored
)
{
a00090e4: e92d4001 push {r0, lr} <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
ISR_Level level;
the_thread = _Thread_Get( id, &location );
a00090e8: e1a0100d mov r1, sp <== NOT EXECUTED a00090ec: eb0009b4 bl a000b7c4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a00090f0: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00090f4: e3530000 cmp r3, #0 <== NOT EXECUTED a00090f8: 1a000015 bne a0009154 <_Event_Timeout+0x70> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a00090fc: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0009100: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a0009104: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
_ISR_Enable( level );
return;
}
#endif
the_thread->Wait.count = 0;
a0009108: e5803024 str r3, [r0, #36] ; 0x24 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
a000910c: e59f3044 ldr r3, [pc, #68] ; a0009158 <_Event_Timeout+0x74><== NOT EXECUTED
if ( _Thread_Is_executing( the_thread ) ) {
a0009110: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0009114: e1500003 cmp r0, r3 <== NOT EXECUTED a0009118: 1a000004 bne a0009130 <_Event_Timeout+0x4c> <== NOT EXECUTED
if ( _Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
a000911c: e59f3038 ldr r3, [pc, #56] ; a000915c <_Event_Timeout+0x78><== NOT EXECUTED a0009120: e5931000 ldr r1, [r3] <== NOT EXECUTED a0009124: e3510001 cmp r1, #1 <== NOT EXECUTED
_Event_Sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
a0009128: 02811001 addeq r1, r1, #1 <== NOT EXECUTED a000912c: 05831000 streq r1, [r3] <== NOT EXECUTED
}
the_thread->Wait.return_code = RTEMS_TIMEOUT;
a0009130: e3a03006 mov r3, #6 <== NOT EXECUTED a0009134: e5803034 str r3, [r0, #52] ; 0x34 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0009138: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
a000913c: e59f101c ldr r1, [pc, #28] ; a0009160 <_Event_Timeout+0x7c><== NOT EXECUTED a0009140: eb0008cf bl a000b484 <_Thread_Clear_state> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
a0009144: e59f3018 ldr r3, [pc, #24] ; a0009164 <_Event_Timeout+0x80><== NOT EXECUTED a0009148: e5932000 ldr r2, [r3] <== NOT EXECUTED a000914c: e2422001 sub r2, r2, #1 <== NOT EXECUTED a0009150: e5832000 str r2, [r3] <== NOT EXECUTED
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
a0009154: e8bd8008 pop {r3, pc} <== NOT EXECUTED
a000f01c <_Heap_Allocate_aligned_with_boundary>:
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
a000f01c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
a000f020: 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;
a000f024: e5902010 ldr r2, [r0, #16]
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
a000f028: e24dd01c sub sp, sp, #28 a000f02c: e1a0b003 mov fp, r3
Heap_Block *block = NULL;
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
bool search_again = false;
if ( block_size_floor < alloc_size ) {
a000f030: e2913004 adds r3, r1, #4
Heap_Control *heap,
uintptr_t alloc_size,
uintptr_t alignment,
uintptr_t boundary
)
{
a000f034: e1a05000 mov r5, r0 a000f038: e1a06001 mov r6, r1
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;
a000f03c: e58d2000 str r2, [sp]
Heap_Block *block = NULL;
uintptr_t alloc_begin = 0;
uint32_t search_count = 0;
bool search_again = false;
if ( block_size_floor < alloc_size ) {
a000f040: e58d300c str r3, [sp, #12]
a000f044: 2a00006a bcs a000f1f4 <_Heap_Allocate_aligned_with_boundary+0x1d8>
/* Integer overflow occured */
return NULL;
}
if ( boundary != 0 ) {
a000f048: e35b0000 cmp fp, #0
a000f04c: 0a000003 beq a000f060 <_Heap_Allocate_aligned_with_boundary+0x44>
if ( boundary < alloc_size ) {
a000f050: e15b0001 cmp fp, r1 <== NOT EXECUTED a000f054: 3a000066 bcc a000f1f4 <_Heap_Allocate_aligned_with_boundary+0x1d8><== NOT EXECUTED
return NULL;
}
if ( alignment == 0 ) {
alignment = page_size;
a000f058: e3580000 cmp r8, #0 <== NOT EXECUTED a000f05c: 01a08002 moveq r8, r2 <== NOT EXECUTED
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
a000f060: e59d2000 ldr r2, [sp]
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
a000f064: e2663004 rsb r3, r6, #4
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
}
return (void *) alloc_begin;
}
a000f068: e595a008 ldr sl, [r5, #8]
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
a000f06c: e2822007 add r2, r2, #7
do {
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
block = _Heap_Free_list_first( heap );
while ( block != free_list_tail ) {
a000f070: e3a07000 mov r7, #0
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
a000f074: e58d2014 str r2, [sp, #20]
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
a000f078: e58d3018 str r3, [sp, #24]
do {
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
block = _Heap_Free_list_first( heap );
while ( block != free_list_tail ) {
a000f07c: ea000048 b a000f1a4 <_Heap_Allocate_aligned_with_boundary+0x188>
/*
* 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 ) {
a000f080: e59a4004 ldr r4, [sl, #4] a000f084: e59d200c ldr r2, [sp, #12] a000f088: e1540002 cmp r4, r2
a000f08c: 9a00003f bls a000f190 <_Heap_Allocate_aligned_with_boundary+0x174>
a000f090: e28a3008 add r3, sl, #8
if ( alignment == 0 ) {
a000f094: e3580000 cmp r8, #0 a000f098: e58d3008 str r3, [sp, #8]
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
a000f09c: 01a04003 moveq r4, r3
a000f0a0: 0a00003b beq a000f194 <_Heap_Allocate_aligned_with_boundary+0x178>
uintptr_t alignment,
uintptr_t boundary
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
a000f0a4: e5952014 ldr r2, [r5, #20] <== NOT EXECUTED
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;
a000f0a8: e59d3014 ldr r3, [sp, #20] <== 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;
a000f0ac: e3c44001 bic r4, r4, #1 <== NOT EXECUTED
uintptr_t alignment,
uintptr_t boundary
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
a000f0b0: e58d2004 str r2, [sp, #4] <== NOT EXECUTED
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;
a000f0b4: e0629003 rsb r9, r2, r3 <== NOT EXECUTED
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
uintptr_t alloc_begin = alloc_end - alloc_size;
a000f0b8: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
uintptr_t const block_begin = (uintptr_t) block;
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const block_end = block_begin + block_size;
a000f0bc: e08a4004 add r4, sl, r4 <== NOT EXECUTED
uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
uintptr_t const alloc_begin_ceiling = block_end - min_block_size
a000f0c0: e0899004 add r9, r9, r4 <== NOT EXECUTED
+ HEAP_BLOCK_HEADER_SIZE + page_size - 1;
uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;
uintptr_t alloc_begin = alloc_end - alloc_size;
a000f0c4: e0824004 add r4, r2, r4 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
a000f0c8: e1a00004 mov r0, r4 <== NOT EXECUTED a000f0cc: e1a01008 mov r1, r8 <== NOT EXECUTED a000f0d0: eb001640 bl a00149d8 <__umodsi3> <== NOT EXECUTED a000f0d4: e0604004 rsb r4, r0, r4 <== NOT EXECUTED
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 ) {
a000f0d8: e1540009 cmp r4, r9 <== NOT EXECUTED a000f0dc: 9a000003 bls a000f0f0 <_Heap_Allocate_aligned_with_boundary+0xd4><== NOT EXECUTED a000f0e0: e1a00009 mov r0, r9 <== NOT EXECUTED a000f0e4: e1a01008 mov r1, r8 <== NOT EXECUTED a000f0e8: eb00163a bl a00149d8 <__umodsi3> <== NOT EXECUTED a000f0ec: e0604009 rsb r4, r0, r9 <== NOT EXECUTED
}
alloc_end = alloc_begin + alloc_size;
/* Ensure boundary constaint */
if ( boundary != 0 ) {
a000f0f0: e35b0000 cmp fp, #0 <== NOT EXECUTED a000f0f4: 0a000014 beq a000f14c <_Heap_Allocate_aligned_with_boundary+0x130><== NOT EXECUTED
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
a000f0f8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED
/* 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;
a000f0fc: e0849006 add r9, r4, r6 <== NOT EXECUTED
/* Ensure boundary constaint */
if ( boundary != 0 ) {
uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;
a000f100: e0833006 add r3, r3, r6 <== NOT EXECUTED a000f104: e58d3010 str r3, [sp, #16] <== NOT EXECUTED a000f108: ea000008 b a000f130 <_Heap_Allocate_aligned_with_boundary+0x114><== 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 ) {
a000f10c: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED a000f110: e1500002 cmp r0, r2 <== NOT EXECUTED a000f114: 3a00001d bcc a000f190 <_Heap_Allocate_aligned_with_boundary+0x174><== NOT EXECUTED
return 0;
}
alloc_begin = boundary_line - alloc_size;
a000f118: e0664000 rsb r4, r6, r0 <== NOT EXECUTED a000f11c: e1a00004 mov r0, r4 <== NOT EXECUTED a000f120: e1a01008 mov r1, r8 <== NOT EXECUTED a000f124: eb00162b bl a00149d8 <__umodsi3> <== NOT EXECUTED a000f128: e0604004 rsb r4, r0, r4 <== NOT EXECUTED
alloc_begin = _Heap_Align_down( alloc_begin, alignment );
alloc_end = alloc_begin + alloc_size;
a000f12c: e0849006 add r9, r4, r6 <== NOT EXECUTED a000f130: e1a00009 mov r0, r9 <== NOT EXECUTED a000f134: e1a0100b mov r1, fp <== NOT EXECUTED a000f138: eb001626 bl a00149d8 <__umodsi3> <== NOT EXECUTED a000f13c: 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 ) {
a000f140: e1500009 cmp r0, r9 <== NOT EXECUTED a000f144: 31540000 cmpcc r4, r0 <== NOT EXECUTED a000f148: 3affffef bcc a000f10c <_Heap_Allocate_aligned_with_boundary+0xf0><== 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 ) {
a000f14c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a000f150: e1540003 cmp r4, r3 <== NOT EXECUTED a000f154: 3a00000d bcc a000f190 <_Heap_Allocate_aligned_with_boundary+0x174><== NOT EXECUTED a000f158: e1a00004 mov r0, r4 <== NOT EXECUTED a000f15c: e59d1000 ldr r1, [sp] <== NOT EXECUTED a000f160: eb00161c bl a00149d8 <__umodsi3> <== NOT EXECUTED a000f164: e3e09007 mvn r9, #7 <== NOT EXECUTED a000f168: e06a9009 rsb r9, sl, r9 <== NOT EXECUTED
if ( free_size >= min_block_size || free_size == 0 ) {
return alloc_begin;
}
}
return 0;
a000f16c: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
a000f170: e0899004 add r9, r9, r4 <== NOT EXECUTED
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 ) {
a000f174: e0603009 rsb r3, r0, r9 <== NOT EXECUTED
return alloc_begin;
}
}
return 0;
a000f178: e1590000 cmp r9, r0 <== NOT EXECUTED a000f17c: 11530002 cmpne r3, r2 <== NOT EXECUTED a000f180: 33a09000 movcc r9, #0 <== NOT EXECUTED a000f184: 23a09001 movcs r9, #1 <== NOT EXECUTED a000f188: 31a04009 movcc r4, r9 <== NOT EXECUTED a000f18c: ea000000 b a000f194 <_Heap_Allocate_aligned_with_boundary+0x178><== NOT EXECUTED a000f190: e3a04000 mov r4, #0 <== NOT EXECUTED
}
/* Statistics */
++search_count;
if ( alloc_begin != 0 ) {
a000f194: e3540000 cmp r4, #0
);
}
}
/* Statistics */
++search_count;
a000f198: e2877001 add r7, r7, #1
if ( alloc_begin != 0 ) {
a000f19c: 1a000004 bne a000f1b4 <_Heap_Allocate_aligned_with_boundary+0x198>
break;
}
block = block->next;
a000f1a0: e59aa008 ldr sl, [sl, #8] <== NOT EXECUTED
do {
Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
block = _Heap_Free_list_first( heap );
while ( block != free_list_tail ) {
a000f1a4: e15a0005 cmp sl, r5
a000f1a8: 1affffb4 bne a000f080 <_Heap_Allocate_aligned_with_boundary+0x64>
a000f1ac: e3a04000 mov r4, #0 <== NOT EXECUTED a000f1b0: ea00000a b a000f1e0 <_Heap_Allocate_aligned_with_boundary+0x1c4><== NOT EXECUTED
search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
} while ( search_again );
if ( alloc_begin != 0 ) {
/* Statistics */
++stats->allocs;
a000f1b4: e5953048 ldr r3, [r5, #72] ; 0x48
stats->searches += search_count;
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
a000f1b8: e1a00005 mov r0, r5 a000f1bc: e1a0100a mov r1, sl
search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
} while ( search_again );
if ( alloc_begin != 0 ) {
/* Statistics */
++stats->allocs;
a000f1c0: e2833001 add r3, r3, #1 a000f1c4: e5853048 str r3, [r5, #72] ; 0x48
stats->searches += search_count;
a000f1c8: e595304c ldr r3, [r5, #76] ; 0x4c
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
a000f1cc: e1a02004 mov r2, r4
} while ( search_again );
if ( alloc_begin != 0 ) {
/* Statistics */
++stats->allocs;
stats->searches += search_count;
a000f1d0: e0833007 add r3, r3, r7 a000f1d4: e585304c str r3, [r5, #76] ; 0x4c
block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
a000f1d8: e1a03006 mov r3, r6 a000f1dc: ebffecc3 bl a000a4f0 <_Heap_Block_allocate>
boundary
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
a000f1e0: e5953044 ldr r3, [r5, #68] ; 0x44
stats->max_search = search_count;
}
return (void *) alloc_begin;
a000f1e4: e1a00004 mov r0, r4
boundary
);
}
/* Statistics */
if ( stats->max_search < search_count ) {
a000f1e8: e1530007 cmp r3, r7
stats->max_search = search_count;
a000f1ec: 35857044 strcc r7, [r5, #68] ; 0x44
}
return (void *) alloc_begin;
a000f1f0: ea000000 b a000f1f8 <_Heap_Allocate_aligned_with_boundary+0x1dc>
return NULL;
}
if ( boundary != 0 ) {
if ( boundary < alloc_size ) {
return NULL;
a000f1f4: e3a00000 mov r0, #0 <== NOT EXECUTED
if ( stats->max_search < search_count ) {
stats->max_search = search_count;
}
return (void *) alloc_begin;
}
a000f1f8: e28dd01c add sp, sp, #28
a000f1fc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
a000a4f0 <_Heap_Block_allocate>:
Heap_Control *heap,
Heap_Block *block,
uintptr_t alloc_begin,
uintptr_t alloc_size
)
{
a000a4f0: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr}
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
a000a4f4: e591a004 ldr sl, [r1, #4]
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(
const Heap_Block *block
)
{
return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;
a000a4f8: e2426008 sub r6, r2, #8
Heap_Control *heap,
Heap_Block *block,
uintptr_t alloc_begin,
uintptr_t alloc_size
)
{
a000a4fc: e1a04001 mov r4, r1 a000a500: e1a07003 mov r7, r3
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;
a000a504: e0613006 rsb r3, r1, r6
- 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;
a000a508: e3ca1001 bic r1, sl, #1
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
a000a50c: e0849001 add r9, r4, r1
Heap_Control *heap,
Heap_Block *block,
uintptr_t alloc_begin,
uintptr_t alloc_size
)
{
a000a510: e1a05000 mov r5, r0
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;
a000a514: e5990004 ldr r0, [r9, #4]
Heap_Block *free_list_anchor = NULL;
_HAssert( alloc_area_begin <= alloc_begin );
if ( _Heap_Is_free( block ) ) {
a000a518: e3100001 tst r0, #1
/* Statistics */
--stats->free_blocks;
++stats->used_blocks;
stats->free_size -= _Heap_Block_size( block );
} else {
free_list_anchor = _Heap_Free_list_head( heap );
a000a51c: 11a08005 movne r8, r5
Heap_Block *free_list_anchor = NULL;
_HAssert( alloc_area_begin <= alloc_begin );
if ( _Heap_Is_free( block ) ) {
a000a520: 1a00000c bne a000a558 <_Heap_Block_allocate+0x68>
return _Heap_Free_list_tail(heap)->prev;
}
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block )
{
Heap_Block *next = block->next;
a000a524: e5940008 ldr r0, [r4, #8]
free_list_anchor = block->prev;
a000a528: e594800c ldr r8, [r4, #12]
Heap_Block *prev = block->prev;
prev->next = next;
a000a52c: e5880008 str r0, [r8, #8]
next->prev = prev;
a000a530: e580800c str r8, [r0, #12]
_Heap_Free_list_remove( block );
/* Statistics */
--stats->free_blocks;
a000a534: e5950038 ldr r0, [r5, #56] ; 0x38 a000a538: e2400001 sub r0, r0, #1 a000a53c: e5850038 str r0, [r5, #56] ; 0x38
++stats->used_blocks;
a000a540: e5950040 ldr r0, [r5, #64] ; 0x40 a000a544: e2800001 add r0, r0, #1 a000a548: e5850040 str r0, [r5, #64] ; 0x40
stats->free_size -= _Heap_Block_size( block );
a000a54c: e5950030 ldr r0, [r5, #48] ; 0x30 a000a550: e0611000 rsb r1, r1, r0 a000a554: e5851030 str r1, [r5, #48] ; 0x30
} else {
free_list_anchor = _Heap_Free_list_head( heap );
}
if ( alloc_area_offset < heap->page_size ) {
a000a558: e5951010 ldr r1, [r5, #16] a000a55c: e1530001 cmp r3, r1
a000a560: 2a000005 bcs a000a57c <_Heap_Block_allocate+0x8c>
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
_Heap_Block_split( heap, block, free_list_anchor, alloc_size );
a000a564: e1a00005 mov r0, r5 a000a568: e1a01004 mov r1, r4 a000a56c: e1a02008 mov r2, r8 a000a570: e0833007 add r3, r3, r7 a000a574: ebffff2e bl a000a234 <_Heap_Block_split> a000a578: ea000021 b a000a604 <_Heap_Block_allocate+0x114>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
a000a57c: e1a00002 mov r0, r2 <== NOT EXECUTED a000a580: eb002914 bl a00149d8 <__umodsi3> <== NOT EXECUTED
_HAssert( block_size >= heap->min_block_size );
_HAssert( new_block_size >= heap->min_block_size );
/* Statistics */
stats->free_size += block_size;
a000a584: e5952030 ldr r2, [r5, #48] ; 0x30 <== NOT EXECUTED
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
a000a588: e0606006 rsb r6, r0, r6 <== NOT EXECUTED
_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;
a000a58c: e0643006 rsb r3, r4, r6 <== NOT EXECUTED
_HAssert( block_size >= heap->min_block_size );
_HAssert( new_block_size >= heap->min_block_size );
/* Statistics */
stats->free_size += block_size;
a000a590: e0822003 add r2, r2, r3 <== NOT EXECUTED
if ( _Heap_Is_prev_used( block ) ) {
a000a594: e31a0001 tst sl, #1 <== NOT EXECUTED
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;
a000a598: e0669009 rsb r9, r6, r9 <== NOT EXECUTED
_HAssert( block_size >= heap->min_block_size );
_HAssert( new_block_size >= heap->min_block_size );
/* Statistics */
stats->free_size += block_size;
a000a59c: e5852030 str r2, [r5, #48] ; 0x30 <== NOT EXECUTED
if ( _Heap_Is_prev_used( block ) ) {
a000a5a0: 0a000009 beq a000a5cc <_Heap_Block_allocate+0xdc> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
a000a5a4: e5982008 ldr r2, [r8, #8] <== NOT EXECUTED
new_block->next = next;
new_block->prev = block_before;
a000a5a8: e584800c str r8, [r4, #12] <== NOT EXECUTED
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
new_block->next = next;
a000a5ac: e5842008 str r2, [r4, #8] <== NOT EXECUTED
new_block->prev = block_before; block_before->next = new_block; next->prev = new_block;
a000a5b0: e582400c str r4, [r2, #12] <== NOT EXECUTED
_Heap_Free_list_insert_after( free_list_anchor, block );
free_list_anchor = block;
/* Statistics */
++stats->free_blocks;
a000a5b4: e5952038 ldr r2, [r5, #56] ; 0x38 <== NOT EXECUTED
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
block_before->next = new_block;
a000a5b8: e5884008 str r4, [r8, #8] <== NOT EXECUTED a000a5bc: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a5c0: e5852038 str r2, [r5, #56] ; 0x38 <== NOT EXECUTED a000a5c4: e1a02004 mov r2, r4 <== NOT EXECUTED a000a5c8: ea000005 b a000a5e4 <_Heap_Block_allocate+0xf4> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Prev_block(
const Heap_Block *block
)
{
return (Heap_Block *) ((uintptr_t) block - block->prev_size);
a000a5cc: e5942000 ldr r2, [r4] <== NOT EXECUTED a000a5d0: e0624004 rsb r4, r2, r4 <== 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;
a000a5d4: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a000a5d8: e3c22001 bic r2, r2, #1 <== 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;
a000a5dc: e0833002 add r3, r3, r2 <== NOT EXECUTED a000a5e0: e1a02008 mov r2, r8 <== NOT EXECUTED
}
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
a000a5e4: e3831001 orr r1, r3, #1 <== NOT EXECUTED a000a5e8: e5841004 str r1, [r4, #4] <== NOT EXECUTED
new_block->prev_size = block_size;
a000a5ec: e8860208 stm r6, {r3, r9} <== NOT EXECUTED
new_block->size_and_flag = new_block_size;
_Heap_Block_split( heap, new_block, free_list_anchor, alloc_size );
a000a5f0: e1a00005 mov r0, r5 <== NOT EXECUTED a000a5f4: e1a01006 mov r1, r6 <== NOT EXECUTED a000a5f8: e1a03007 mov r3, r7 <== NOT EXECUTED a000a5fc: ebffff0c bl a000a234 <_Heap_Block_split> <== NOT EXECUTED a000a600: e1a04006 mov r4, r6 <== NOT EXECUTED
alloc_size
);
}
/* Statistics */
if ( stats->min_free_size > stats->free_size ) {
a000a604: e5953030 ldr r3, [r5, #48] ; 0x30 a000a608: e5952034 ldr r2, [r5, #52] ; 0x34
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
a000a60c: e1a00004 mov r0, r4
alloc_size
);
}
/* Statistics */
if ( stats->min_free_size > stats->free_size ) {
a000a610: e1520003 cmp r2, r3
stats->min_free_size = stats->free_size;
a000a614: 85853034 strhi r3, [r5, #52] ; 0x34
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
a000a618: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc}
a000a234 <_Heap_Block_split>:
Heap_Control *heap,
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
a000a234: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, 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;
a000a238: e5908014 ldr r8, [r0, #20]
uintptr_t alloc_size
)
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const page_size = heap->page_size;
a000a23c: e590a010 ldr sl, [r0, #16]
Heap_Control *heap,
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
a000a240: e1a05001 mov r5, r1
Heap_Statistics *const stats = &heap->stats;
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
uintptr_t const min_alloc_size = min_block_size - HEAP_BLOCK_HEADER_SIZE;
a000a244: e248b008 sub fp, r8, #8
return heap->stats.size;
}
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Max( uintptr_t a, uintptr_t b )
{
return a > b ? a : b;
a000a248: e153000b cmp r3, fp a000a24c: 21a0b003 movcs fp, r3
uintptr_t const block_size = _Heap_Block_size( block );
uintptr_t const used_size =
a000a250: e28bb008 add fp, fp, #8
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
a000a254: e5919004 ldr r9, [r1, #4]
Heap_Control *heap,
Heap_Block *block,
Heap_Block *free_list_anchor,
uintptr_t alloc_size
)
{
a000a258: e1a04000 mov r4, r0
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
a000a25c: e1a0100a mov r1, sl a000a260: e1a0000b mov r0, fp a000a264: e1a06002 mov r6, r2 a000a268: eb0029da bl a00149d8 <__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;
a000a26c: e3c97001 bic r7, r9, #1
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
if ( remainder != 0 ) {
a000a270: e3500000 cmp r0, #0
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;
a000a274: e2872004 add r2, r7, #4
return value - remainder + alignment;
a000a278: 108ba00a addne sl, fp, sl
} else {
return value;
a000a27c: 01a0a00b moveq sl, fp
uintptr_t const free_size_limit = min_block_size + HEAP_ALLOC_BONUS;
a000a280: e2888004 add r8, r8, #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;
a000a284: e06bb002 rsb fp, fp, r2
)
{
uintptr_t remainder = value % alignment;
if ( remainder != 0 ) {
return value - remainder + alignment;
a000a288: 1060a00a rsbne sl, r0, sl
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
a000a28c: e0853007 add r3, r5, r7
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 ) {
a000a290: e15b0008 cmp fp, r8
next_block->prev_size = free_block_size;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
_Heap_Protection_block_initialize( heap, free_block );
} else {
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
a000a294: 35932004 ldrcc r2, [r3, #4] a000a298: 33822001 orrcc r2, r2, #1
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 ) {
a000a29c: 3a000023 bcc a000a330 <_Heap_Block_split+0xfc>
_HAssert( used_block_size + free_block_size == block_size );
_Heap_Block_set_size( block, used_block_size );
/* Statistics */
stats->free_size += free_block_size;
a000a2a0: e5941030 ldr r1, [r4, #48] ; 0x30
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;
a000a2a4: e2099001 and r9, r9, #1
_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;
a000a2a8: e06a7007 rsb r7, sl, r7
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
a000a2ac: e08a2005 add r2, sl, r5
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
block->size_and_flag = size | flag;
a000a2b0: e18aa009 orr sl, sl, r9 a000a2b4: e585a004 str sl, [r5, #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;
a000a2b8: e0811007 add r1, r1, r7 a000a2bc: e5841030 str r1, [r4, #48] ; 0x30
- 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;
a000a2c0: e5931004 ldr r1, [r3, #4] a000a2c4: e3c11001 bic r1, r1, #1
}
_Heap_Protection_block_initialize( heap, block );
return block;
}
a000a2c8: e0830001 add r0, r3, 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;
a000a2cc: e5900004 ldr r0, [r0, #4]
_Heap_Block_set_size( block, used_block_size );
/* Statistics */
stats->free_size += free_block_size;
if ( _Heap_Is_used( next_block ) ) {
a000a2d0: e3100001 tst r0, #1
a000a2d4: 0a000008 beq a000a2fc <_Heap_Block_split+0xc8>
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
a000a2d8: e5961008 ldr r1, [r6, #8]
new_block->next = next;
new_block->prev = block_before;
a000a2dc: e582600c str r6, [r2, #12]
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
new_block->next = next;
a000a2e0: e5821008 str r1, [r2, #8]
new_block->prev = block_before; block_before->next = new_block; next->prev = new_block;
a000a2e4: e581200c str r2, [r1, #12]
_Heap_Free_list_insert_after( free_list_anchor, free_block );
/* Statistics */
++stats->free_blocks;
a000a2e8: e5941038 ldr r1, [r4, #56] ; 0x38
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
block_before->next = new_block;
a000a2ec: e5862008 str r2, [r6, #8] a000a2f0: e2811001 add r1, r1, #1 a000a2f4: e5841038 str r1, [r4, #56] ; 0x38 a000a2f8: ea000007 b a000a31c <_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;
a000a2fc: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED
Heap_Block *prev = old_block->prev;
a000a300: e593300c ldr r3, [r3, #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;
a000a304: e0877001 add r7, r7, r1 <== NOT EXECUTED
new_block->next = next;
a000a308: e5820008 str r0, [r2, #8] <== NOT EXECUTED
new_block->prev = prev;
a000a30c: e582300c str r3, [r2, #12] <== NOT EXECUTED
next->prev = new_block;
prev->next = new_block;
a000a310: e5832008 str r2, [r3, #8] <== NOT EXECUTED
Heap_Block *prev = old_block->prev;
new_block->next = next;
new_block->prev = prev;
next->prev = new_block;
a000a314: e580200c str r2, [r0, #12] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
a000a318: e0873002 add r3, r7, r2 <== NOT EXECUTED
next_block = _Heap_Block_at( free_block, free_block_size );
}
free_block->size_and_flag = free_block_size | HEAP_PREV_BLOCK_USED;
a000a31c: e3871001 orr r1, r7, #1 a000a320: e5821004 str r1, [r2, #4]
next_block->prev_size = free_block_size;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
a000a324: e5932004 ldr r2, [r3, #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;
a000a328: e5837000 str r7, [r3]
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
a000a32c: e3c22001 bic r2, r2, #1
_Heap_Protection_block_initialize( heap, free_block );
} else {
next_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
a000a330: e5832004 str r2, [r3, #4]
a000a334: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
a000f538 <_Heap_Extend>:
Heap_Control *heap,
void *extend_area_begin_ptr,
uintptr_t extend_area_size,
uintptr_t *extended_size_ptr
)
{
a000f538: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
a000f53c: e1a05001 mov r5, r1 <== NOT EXECUTED
Heap_Statistics *const stats = &heap->stats; Heap_Block *const first_block = heap->first_block;
a000f540: e5901020 ldr r1, [r0, #32] <== NOT EXECUTED
Heap_Control *heap,
void *extend_area_begin_ptr,
uintptr_t extend_area_size,
uintptr_t *extended_size_ptr
)
{
a000f544: e24dd028 sub sp, sp, #40 ; 0x28 <== NOT EXECUTED a000f548: e58d3018 str r3, [sp, #24] <== NOT EXECUTED
Heap_Statistics *const stats = &heap->stats; Heap_Block *const first_block = heap->first_block;
a000f54c: e58d1010 str r1, [sp, #16] <== 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;
a000f550: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED
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;
a000f554: e5901030 ldr r1, [r0, #48] ; 0x30 <== 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;
a000f558: e3a08000 mov r8, #0 <== 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 ) {
a000f55c: e0956002 adds r6, r5, r2 <== NOT EXECUTED
Heap_Control *heap,
void *extend_area_begin_ptr,
uintptr_t extend_area_size,
uintptr_t *extended_size_ptr
)
{
a000f560: e1a04000 mov r4, r0 <== 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;
a000f564: e58d3014 str r3, [sp, #20] <== 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;
a000f568: e58d8024 str r8, [sp, #36] ; 0x24 <== 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;
a000f56c: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED
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; Heap_Block *extend_last_block = NULL;
a000f570: e58d8020 str r8, [sp, #32] <== NOT EXECUTED
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;
a000f574: e58d101c str r1, [sp, #28] <== 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 false;
a000f578: 21a00008 movcs r0, r8 <== 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 ) {
a000f57c: 2a00009e bcs a000f7fc <_Heap_Extend+0x2c4> <== NOT EXECUTED
return false;
}
extend_area_ok = _Heap_Get_first_and_last_block(
a000f580: e28d1024 add r1, sp, #36 ; 0x24 <== NOT EXECUTED a000f584: e58d1000 str r1, [sp] <== NOT EXECUTED a000f588: e28d1020 add r1, sp, #32 <== NOT EXECUTED a000f58c: e58d1004 str r1, [sp, #4] <== NOT EXECUTED a000f590: e1a00005 mov r0, r5 <== NOT EXECUTED a000f594: e1a01002 mov r1, r2 <== NOT EXECUTED a000f598: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED a000f59c: ebffec3d bl a000a698 <_Heap_Get_first_and_last_block> <== NOT EXECUTED
page_size,
min_block_size,
&extend_first_block,
&extend_last_block
);
if (!extend_area_ok ) {
a000f5a0: e3500000 cmp r0, #0 <== NOT EXECUTED a000f5a4: 0a000094 beq a000f7fc <_Heap_Extend+0x2c4> <== NOT EXECUTED a000f5a8: e59da010 ldr sl, [sp, #16] <== NOT EXECUTED a000f5ac: e1a07008 mov r7, r8 <== NOT EXECUTED a000f5b0: e1a09008 mov r9, r8 <== NOT EXECUTED
return false;
}
do {
uintptr_t const sub_area_begin = (start_block != first_block) ?
(uintptr_t) start_block : heap->area_begin;
a000f5b4: e5941018 ldr r1, [r4, #24] <== NOT EXECUTED a000f5b8: e1a03008 mov r3, r8 <== NOT EXECUTED a000f5bc: e1a0c004 mov ip, r4 <== NOT EXECUTED a000f5c0: ea000000 b a000f5c8 <_Heap_Extend+0x90> <== NOT EXECUTED a000f5c4: e1a0100a mov r1, sl <== NOT EXECUTED
uintptr_t const sub_area_end = start_block->prev_size;
a000f5c8: e59a4000 ldr r4, [sl] <== NOT EXECUTED
Heap_Block *const end_block =
_Heap_Block_of_alloc_area( sub_area_end, page_size );
if (
a000f5cc: e1560001 cmp r6, r1 <== NOT EXECUTED a000f5d0: 93a00000 movls r0, #0 <== NOT EXECUTED a000f5d4: 83a00001 movhi r0, #1 <== NOT EXECUTED a000f5d8: e1550004 cmp r5, r4 <== NOT EXECUTED a000f5dc: 23a00000 movcs r0, #0 <== NOT EXECUTED a000f5e0: e3500000 cmp r0, #0 <== NOT EXECUTED a000f5e4: 1a000083 bne a000f7f8 <_Heap_Extend+0x2c0> <== NOT EXECUTED
sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
) {
return false;
}
if ( extend_area_end == sub_area_begin ) {
a000f5e8: e1560001 cmp r6, r1 <== NOT EXECUTED a000f5ec: 01a0300a moveq r3, sl <== NOT EXECUTED a000f5f0: 0a000001 beq a000f5fc <_Heap_Extend+0xc4> <== NOT EXECUTED
merge_below_block = start_block;
} else if ( extend_area_end < sub_area_end ) {
a000f5f4: e1560004 cmp r6, r4 <== NOT EXECUTED a000f5f8: 31a0900a movcc r9, sl <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
a000f5fc: e1a00004 mov r0, r4 <== NOT EXECUTED a000f600: e59d1014 ldr r1, [sp, #20] <== NOT EXECUTED a000f604: e58d300c str r3, [sp, #12] <== NOT EXECUTED a000f608: e58dc008 str ip, [sp, #8] <== NOT EXECUTED a000f60c: eb001647 bl a0014f30 <__umodsi3> <== NOT EXECUTED a000f610: e244b008 sub fp, r4, #8 <== NOT EXECUTED
link_below_block = start_block;
}
if ( sub_area_end == extend_area_begin ) {
a000f614: e1540005 cmp r4, r5 <== NOT EXECUTED
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
a000f618: e060000b rsb r0, r0, fp <== NOT EXECUTED a000f61c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a000f620: e59dc008 ldr ip, [sp, #8] <== 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 )
a000f624: 01a07000 moveq r7, r0 <== NOT EXECUTED
start_block->prev_size = extend_area_end;
a000f628: 058a6000 streq r6, [sl] <== 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 ) {
a000f62c: 0a000000 beq a000f634 <_Heap_Extend+0xfc> <== NOT EXECUTED a000f630: 31a08000 movcc r8, r0 <== 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;
a000f634: e590a004 ldr sl, [r0, #4] <== 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 );
a000f638: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED a000f63c: e3caa001 bic sl, sl, #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);
a000f640: e080a00a add sl, r0, sl <== NOT EXECUTED a000f644: e15a0002 cmp sl, r2 <== NOT EXECUTED a000f648: 1affffdd bne a000f5c4 <_Heap_Extend+0x8c> <== NOT EXECUTED a000f64c: e1a02009 mov r2, r9 <== NOT EXECUTED a000f650: e1a09003 mov r9, r3 <== NOT EXECUTED
if ( extend_area_begin < heap->area_begin ) {
a000f654: e59c3018 ldr r3, [ip, #24] <== NOT EXECUTED a000f658: e1a0400c mov r4, ip <== NOT EXECUTED a000f65c: e1550003 cmp r5, r3 <== NOT EXECUTED
heap->area_begin = extend_area_begin;
a000f660: 358c5018 strcc r5, [ip, #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 ) {
a000f664: 3a000002 bcc a000f674 <_Heap_Extend+0x13c> <== NOT EXECUTED
heap->area_begin = extend_area_begin;
} else if ( heap->area_end < extend_area_end ) {
a000f668: e59c301c ldr r3, [ip, #28] <== NOT EXECUTED a000f66c: e1530006 cmp r3, r6 <== NOT EXECUTED
heap->area_end = extend_area_end;
a000f670: 358c601c strcc r6, [ip, #28] <== NOT EXECUTED
}
extend_first_block_size =
(uintptr_t) extend_last_block - (uintptr_t) extend_first_block;
a000f674: e59d1024 ldr r1, [sp, #36] ; 0x24 <== NOT EXECUTED a000f678: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED
extend_first_block->prev_size = extend_area_end;
a000f67c: e5816000 str r6, [r1] <== 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 =
a000f680: e0610003 rsb r0, r1, r3 <== 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;
a000f684: e380c001 orr ip, r0, #1 <== NOT EXECUTED
_Heap_Protection_block_initialize( heap, extend_first_block );
extend_last_block->prev_size = extend_first_block_size;
a000f688: e5830000 str r0, [r3] <== NOT EXECUTED
extend_last_block->size_and_flag = 0;
a000f68c: e3a00000 mov r0, #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 =
a000f690: e581c004 str ip, [r1, #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;
a000f694: e5830004 str r0, [r3, #4] <== NOT EXECUTED
_Heap_Protection_block_initialize( heap, extend_last_block );
if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
a000f698: e5940020 ldr r0, [r4, #32] <== NOT EXECUTED a000f69c: e1500001 cmp r0, r1 <== NOT EXECUTED
heap->first_block = extend_first_block;
a000f6a0: 85841020 strhi r1, [r4, #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 ) {
a000f6a4: 8a000002 bhi a000f6b4 <_Heap_Extend+0x17c> <== NOT EXECUTED
heap->first_block = extend_first_block;
} else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
a000f6a8: e5941024 ldr r1, [r4, #36] ; 0x24 <== NOT EXECUTED a000f6ac: e1510003 cmp r1, r3 <== NOT EXECUTED
heap->last_block = extend_last_block;
a000f6b0: 35843024 strcc r3, [r4, #36] ; 0x24 <== NOT EXECUTED
}
if ( merge_below_block != NULL ) {
a000f6b4: e3590000 cmp r9, #0 <== NOT EXECUTED a000f6b8: 0a000010 beq a000f700 <_Heap_Extend+0x1c8> <== NOT EXECUTED
Heap_Control *heap,
uintptr_t extend_area_begin,
Heap_Block *first_block
)
{
uintptr_t const page_size = heap->page_size;
a000f6bc: e594a010 ldr sl, [r4, #16] <== NOT EXECUTED
uintptr_t const new_first_block_alloc_begin =
_Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
a000f6c0: e2855008 add r5, r5, #8 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
a000f6c4: e1a00005 mov r0, r5 <== NOT EXECUTED a000f6c8: e1a0100a mov r1, sl <== NOT EXECUTED a000f6cc: eb001617 bl a0014f30 <__umodsi3> <== NOT EXECUTED
if ( remainder != 0 ) {
a000f6d0: e3500000 cmp r0, #0 <== NOT EXECUTED
return value - remainder + alignment;
a000f6d4: 1085500a addne r5, r5, sl <== 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;
a000f6d8: e5993000 ldr r3, [r9] <== NOT EXECUTED a000f6dc: 10605005 rsbne r5, r0, r5 <== 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 =
a000f6e0: e2451008 sub r1, r5, #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;
a000f6e4: e5053008 str r3, [r5, #-8] <== 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 =
a000f6e8: e0613009 rsb r3, r1, r9 <== 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;
a000f6ec: e3833001 orr r3, r3, #1 <== NOT EXECUTED a000f6f0: e5053004 str r3, [r5, #-4] <== NOT EXECUTED
_Heap_Free_block( heap, new_first_block );
a000f6f4: e1a00004 mov r0, r4 <== NOT EXECUTED a000f6f8: ebffff86 bl a000f518 <_Heap_Free_block> <== NOT EXECUTED a000f6fc: ea000004 b a000f714 <_Heap_Extend+0x1dc> <== 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 ) {
a000f700: e3520000 cmp r2, #0 <== NOT EXECUTED
_Heap_Link_below(
a000f704: 159d3020 ldrne r3, [sp, #32] <== 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;
a000f708: 10632002 rsbne r2, r3, r2 <== NOT EXECUTED a000f70c: 13822001 orrne r2, r2, #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 =
a000f710: 15832004 strne r2, [r3, #4] <== NOT EXECUTED
link_below_block,
extend_last_block
);
}
if ( merge_above_block != NULL ) {
a000f714: e3570000 cmp r7, #0 <== NOT EXECUTED a000f718: 0a000012 beq a000f768 <_Heap_Extend+0x230> <== 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,
a000f71c: 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(
a000f720: e0676006 rsb r6, r7, r6 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
a000f724: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a000f728: e1a00006 mov r0, r6 <== NOT EXECUTED a000f72c: eb0015ff bl a0014f30 <__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)
a000f730: e5972004 ldr r2, [r7, #4] <== NOT EXECUTED a000f734: e0606006 rsb r6, r0, r6 <== 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 =
a000f738: e0863007 add r3, r6, r7 <== NOT EXECUTED
(last_block->size_and_flag - last_block_new_size)
a000f73c: e0662002 rsb r2, r6, r2 <== NOT EXECUTED
| HEAP_PREV_BLOCK_USED;
a000f740: e3822001 orr r2, r2, #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 =
a000f744: e5832004 str r2, [r3, #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;
a000f748: e5973004 ldr r3, [r7, #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 );
a000f74c: e1a00004 mov r0, r4 <== NOT EXECUTED a000f750: e1a01007 mov r1, r7 <== NOT EXECUTED a000f754: e2033001 and r3, r3, #1 <== NOT EXECUTED
block->size_and_flag = size | flag;
a000f758: e1866003 orr r6, r6, r3 <== NOT EXECUTED a000f75c: e5876004 str r6, [r7, #4] <== NOT EXECUTED a000f760: ebffff6c bl a000f518 <_Heap_Free_block> <== NOT EXECUTED a000f764: ea00000b b a000f798 <_Heap_Extend+0x260> <== NOT EXECUTED
);
}
if ( merge_above_block != NULL ) {
_Heap_Merge_above( heap, merge_above_block, extend_area_end );
} else if ( link_above_block != NULL ) {
a000f768: e3580000 cmp r8, #0 <== NOT EXECUTED a000f76c: 0a000009 beq a000f798 <_Heap_Extend+0x260> <== 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;
a000f770: e5982004 ldr r2, [r8, #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 );
a000f774: e59d1024 ldr r1, [sp, #36] ; 0x24 <== 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(
a000f778: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED a000f77c: e2022001 and r2, r2, #1 <== 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 );
a000f780: e0681001 rsb r1, r8, r1 <== NOT EXECUTED
block->size_and_flag = size | flag;
a000f784: e1812002 orr r2, r1, r2 <== NOT EXECUTED a000f788: e5882004 str r2, [r8, #4] <== NOT EXECUTED
last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;
a000f78c: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000f790: e3822001 orr r2, r2, #1 <== NOT EXECUTED a000f794: e5832004 str r2, [r3, #4] <== NOT EXECUTED
extend_first_block,
extend_last_block
);
}
if ( merge_below_block == NULL && merge_above_block == NULL ) {
a000f798: e3570000 cmp r7, #0 <== NOT EXECUTED a000f79c: 03590000 cmpeq r9, #0 <== NOT EXECUTED a000f7a0: 1a000002 bne a000f7b0 <_Heap_Extend+0x278> <== NOT EXECUTED
_Heap_Free_block( heap, extend_first_block );
a000f7a4: e1a00004 mov r0, r4 <== NOT EXECUTED a000f7a8: e59d1024 ldr r1, [sp, #36] ; 0x24 <== NOT EXECUTED a000f7ac: ebffff59 bl a000f518 <_Heap_Free_block> <== 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
a000f7b0: e5943024 ldr r3, [r4, #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(
a000f7b4: e5941020 ldr r1, [r4, #32] <== NOT EXECUTED
stats->size += extended_size;
if ( extended_size_ptr != NULL )
*extended_size_ptr = extended_size;
return true;
a000f7b8: e3a00001 mov r0, #1 <== 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;
a000f7bc: e5932004 ldr r2, [r3, #4] <== 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(
a000f7c0: e0631001 rsb r1, r3, r1 <== 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;
a000f7c4: e2022001 and r2, r2, #1 <== NOT EXECUTED
block->size_and_flag = size | flag;
a000f7c8: e1812002 orr r2, r1, r2 <== NOT EXECUTED a000f7cc: e5832004 str r2, [r3, #4] <== NOT EXECUTED
_Heap_Free_block( heap, extend_first_block );
}
_Heap_Set_last_block_size( heap );
extended_size = stats->free_size - free_size;
a000f7d0: e59d101c ldr r1, [sp, #28] <== NOT EXECUTED a000f7d4: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED
/* Statistics */
stats->size += extended_size;
a000f7d8: e594202c ldr r2, [r4, #44] ; 0x2c <== NOT EXECUTED
_Heap_Free_block( heap, extend_first_block );
}
_Heap_Set_last_block_size( heap );
extended_size = stats->free_size - free_size;
a000f7dc: e0613003 rsb r3, r1, r3 <== NOT EXECUTED
/* Statistics */
stats->size += extended_size;
a000f7e0: e0822003 add r2, r2, r3 <== NOT EXECUTED a000f7e4: e584202c str r2, [r4, #44] ; 0x2c <== NOT EXECUTED
if ( extended_size_ptr != NULL )
a000f7e8: e59d2018 ldr r2, [sp, #24] <== NOT EXECUTED a000f7ec: e3520000 cmp r2, #0 <== NOT EXECUTED
*extended_size_ptr = extended_size;
a000f7f0: 15823000 strne r3, [r2] <== NOT EXECUTED a000f7f4: ea000000 b a000f7fc <_Heap_Extend+0x2c4> <== 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 false;
a000f7f8: e3a00000 mov r0, #0 <== NOT EXECUTED
if ( extended_size_ptr != NULL )
*extended_size_ptr = extended_size;
return true;
}
a000f7fc: e28dd028 add sp, sp, #40 ; 0x28 <== NOT EXECUTED
a000f800: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a000f200 <_Heap_Free>:
return do_free;
}
#endif
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
{
a000f200: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr}
a000f204: 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 ) {
a000f208: e2510000 subs r0, r1, #0
a000f20c: 0a000075 beq a000f3e8 <_Heap_Free+0x1e8>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
a000f210: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a000f214: e2405008 sub r5, r0, #8 <== NOT EXECUTED a000f218: eb0015ee bl a00149d8 <__umodsi3> <== 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
a000f21c: e5947020 ldr r7, [r4, #32] <== NOT EXECUTED
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
a000f220: e0605005 rsb r5, r0, r5 <== 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;
a000f224: e1550007 cmp r5, r7 <== NOT EXECUTED a000f228: 33a00000 movcc r0, #0 <== NOT EXECUTED a000f22c: 3a000003 bcc a000f240 <_Heap_Free+0x40> <== NOT EXECUTED a000f230: e5940024 ldr r0, [r4, #36] ; 0x24 <== NOT EXECUTED a000f234: e1500005 cmp r0, r5 <== NOT EXECUTED a000f238: 33a00000 movcc r0, #0 <== NOT EXECUTED a000f23c: 23a00001 movcs r0, #1 <== NOT EXECUTED
}
alloc_begin = (uintptr_t) alloc_begin_ptr;
block = _Heap_Block_of_alloc_area( alloc_begin, heap->page_size );
if ( !_Heap_Is_block_in_heap( heap, block ) ) {
a000f240: e21000ff ands r0, r0, #255 ; 0xff <== NOT EXECUTED a000f244: 0a000068 beq a000f3ec <_Heap_Free+0x1ec> <== NOT EXECUTED
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
a000f248: e5956004 ldr r6, [r5, #4] <== 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;
a000f24c: e3c62001 bic r2, r6, #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);
a000f250: e0853002 add r3, r5, r2 <== 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;
a000f254: e1530007 cmp r3, r7 <== NOT EXECUTED a000f258: 33a00000 movcc r0, #0 <== NOT EXECUTED a000f25c: 3a000003 bcc a000f270 <_Heap_Free+0x70> <== NOT EXECUTED a000f260: e5940024 ldr r0, [r4, #36] ; 0x24 <== NOT EXECUTED a000f264: e1500003 cmp r0, r3 <== NOT EXECUTED a000f268: 33a00000 movcc r0, #0 <== NOT EXECUTED a000f26c: 23a00001 movcs r0, #1 <== NOT EXECUTED
_Heap_Protection_block_check( heap, block );
block_size = _Heap_Block_size( block );
next_block = _Heap_Block_at( block, block_size );
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
a000f270: e21000ff ands r0, r0, #255 ; 0xff <== NOT EXECUTED a000f274: 0a00005c beq a000f3ec <_Heap_Free+0x1ec> <== NOT EXECUTED
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
a000f278: e593c004 ldr ip, [r3, #4] <== NOT EXECUTED
return false;
}
_Heap_Protection_block_check( heap, next_block );
if ( !_Heap_Is_prev_used( next_block ) ) {
a000f27c: e21c0001 ands r0, ip, #1 <== NOT EXECUTED a000f280: 0a000059 beq a000f3ec <_Heap_Free+0x1ec> <== NOT EXECUTED
if ( !_Heap_Protection_determine_block_free( heap, block ) ) {
return true;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
a000f284: e594a024 ldr sl, [r4, #36] ; 0x24 <== 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;
a000f288: e3ccc001 bic ip, ip, #1 <== NOT EXECUTED
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
a000f28c: e153000a cmp r3, sl <== NOT EXECUTED a000f290: 03a08000 moveq r8, #0 <== NOT EXECUTED a000f294: 0a000004 beq a000f2ac <_Heap_Free+0xac> <== NOT EXECUTED
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
a000f298: e083100c add r1, r3, ip <== 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;
a000f29c: e5911004 ldr r1, [r1, #4] <== NOT EXECUTED
return do_free;
}
#endif
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )
a000f2a0: e3110001 tst r1, #1 <== NOT EXECUTED a000f2a4: 13a08000 movne r8, #0 <== NOT EXECUTED a000f2a8: 03a08001 moveq r8, #1 <== NOT EXECUTED
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 ) ) {
a000f2ac: e2160001 ands r0, r6, #1 <== NOT EXECUTED
if ( !_Heap_Protection_determine_block_free( heap, block ) ) {
return true;
}
next_block_size = _Heap_Block_size( next_block );
next_is_free = next_block != heap->last_block
a000f2b0: e20880ff and r8, r8, #255 ; 0xff <== NOT EXECUTED
&& !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
if ( !_Heap_Is_prev_used( block ) ) {
a000f2b4: 1a000022 bne a000f344 <_Heap_Free+0x144> <== NOT EXECUTED
uintptr_t const prev_size = block->prev_size;
a000f2b8: e5956000 ldr r6, [r5] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
a000f2bc: e0661005 rsb r1, r6, r5 <== 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;
a000f2c0: e1510007 cmp r1, r7 <== NOT EXECUTED a000f2c4: 3a000002 bcc a000f2d4 <_Heap_Free+0xd4> <== NOT EXECUTED a000f2c8: e15a0001 cmp sl, r1 <== NOT EXECUTED a000f2cc: 33a00000 movcc r0, #0 <== NOT EXECUTED a000f2d0: 23a00001 movcs r0, #1 <== NOT EXECUTED
Heap_Block * const prev_block = _Heap_Block_at( block, -prev_size );
if ( !_Heap_Is_block_in_heap( heap, prev_block ) ) {
a000f2d4: e21000ff ands r0, r0, #255 ; 0xff <== NOT EXECUTED a000f2d8: 0a000043 beq a000f3ec <_Heap_Free+0x1ec> <== 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;
a000f2dc: e5910004 ldr r0, [r1, #4] <== NOT EXECUTED
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) ) {
a000f2e0: e2100001 ands r0, r0, #1 <== NOT EXECUTED a000f2e4: 0a000040 beq a000f3ec <_Heap_Free+0x1ec> <== NOT EXECUTED
_HAssert( false );
return( false );
}
if ( next_is_free ) { /* coalesce both */
a000f2e8: e3580000 cmp r8, #0 <== NOT EXECUTED a000f2ec: 0a00000c beq a000f324 <_Heap_Free+0x124> <== 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;
a000f2f0: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED
Heap_Block *prev = block->prev;
a000f2f4: e593300c ldr r3, [r3, #12] <== NOT EXECUTED
uintptr_t const size = block_size + prev_size + next_block_size;
a000f2f8: e082c00c add ip, r2, ip <== NOT EXECUTED a000f2fc: e08c6006 add r6, ip, r6 <== NOT EXECUTED
prev->next = next;
a000f300: e5830008 str r0, [r3, #8] <== NOT EXECUTED
next->prev = prev;
a000f304: e580300c str r3, [r0, #12] <== NOT EXECUTED
_Heap_Free_list_remove( next_block );
stats->free_blocks -= 1;
a000f308: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a000f30c: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000f310: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
a000f314: e3863001 orr r3, r6, #1 <== NOT EXECUTED a000f318: e5813004 str r3, [r1, #4] <== NOT EXECUTED
next_block = _Heap_Block_at( prev_block, size );
_HAssert(!_Heap_Is_prev_used( next_block));
next_block->prev_size = size;
a000f31c: e7816006 str r6, [r1, r6] <== NOT EXECUTED a000f320: ea000025 b a000f3bc <_Heap_Free+0x1bc> <== NOT EXECUTED
} else { /* coalesce prev */
uintptr_t const size = block_size + prev_size;
a000f324: e0826006 add r6, r2, r6 <== NOT EXECUTED
prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
a000f328: e3860001 orr r0, r6, #1 <== NOT EXECUTED a000f32c: e5810004 str r0, [r1, #4] <== NOT EXECUTED
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
a000f330: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED
next_block->prev_size = size;
a000f334: e7856002 str r6, [r5, r2] <== NOT EXECUTED
_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;
a000f338: e3c11001 bic r1, r1, #1 <== NOT EXECUTED a000f33c: e5831004 str r1, [r3, #4] <== NOT EXECUTED a000f340: ea00001d b a000f3bc <_Heap_Free+0x1bc> <== NOT EXECUTED
next_block->prev_size = size;
}
} else if ( next_is_free ) { /* coalesce next */
a000f344: e3580000 cmp r8, #0 <== NOT EXECUTED a000f348: 0a00000a beq a000f378 <_Heap_Free+0x178> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Free_list_replace(
Heap_Block *old_block,
Heap_Block *new_block
)
{
Heap_Block *next = old_block->next;
a000f34c: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED
Heap_Block *prev = old_block->prev;
a000f350: e593300c ldr r3, [r3, #12] <== NOT EXECUTED
uintptr_t const size = block_size + next_block_size;
a000f354: e08c1002 add r1, ip, r2 <== NOT EXECUTED
new_block->next = next;
a000f358: e5850008 str r0, [r5, #8] <== NOT EXECUTED
new_block->prev = prev;
a000f35c: e585300c str r3, [r5, #12] <== NOT EXECUTED
next->prev = new_block;
prev->next = new_block;
a000f360: e5835008 str r5, [r3, #8] <== NOT EXECUTED
_Heap_Free_list_replace( next_block, block );
block->size_and_flag = size | HEAP_PREV_BLOCK_USED;
a000f364: e3813001 orr r3, r1, #1 <== NOT EXECUTED
Heap_Block *prev = old_block->prev;
new_block->next = next;
new_block->prev = prev;
next->prev = new_block;
a000f368: e580500c str r5, [r0, #12] <== NOT EXECUTED a000f36c: e5853004 str r3, [r5, #4] <== NOT EXECUTED
next_block = _Heap_Block_at( block, size );
next_block->prev_size = size;
a000f370: e7851001 str r1, [r5, r1] <== NOT EXECUTED a000f374: ea000010 b a000f3bc <_Heap_Free+0x1bc> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(
Heap_Block *block_before,
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
a000f378: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED
new_block->next = next;
new_block->prev = block_before;
a000f37c: e585400c str r4, [r5, #12] <== NOT EXECUTED
/* 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;
next_block->prev_size = block_size;
a000f380: e7852002 str r2, [r5, r2] <== NOT EXECUTED
Heap_Block *new_block
)
{
Heap_Block *next = block_before->next;
new_block->next = next;
a000f384: e5851008 str r1, [r5, #8] <== NOT EXECUTED
new_block->prev = block_before; block_before->next = new_block; next->prev = new_block;
a000f388: e581500c str r5, [r1, #12] <== NOT EXECUTED
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;
a000f38c: e3821001 orr r1, r2, #1 <== NOT EXECUTED a000f390: e5851004 str r1, [r5, #4] <== NOT EXECUTED
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
a000f394: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED
{
Heap_Block *next = block_before->next;
new_block->next = next;
new_block->prev = block_before;
block_before->next = new_block;
a000f398: e5845008 str r5, [r4, #8] <== NOT EXECUTED a000f39c: e3c11001 bic r1, r1, #1 <== NOT EXECUTED a000f3a0: e5831004 str r1, [r3, #4] <== NOT EXECUTED
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
a000f3a4: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED
if ( stats->max_free_blocks < stats->free_blocks ) {
a000f3a8: e594103c ldr r1, [r4, #60] ; 0x3c <== NOT EXECUTED
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
a000f3ac: e2833001 add r3, r3, #1 <== NOT EXECUTED
if ( stats->max_free_blocks < stats->free_blocks ) {
a000f3b0: e1510003 cmp r1, r3 <== NOT EXECUTED
block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;
next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;
next_block->prev_size = block_size;
/* Statistics */
++stats->free_blocks;
a000f3b4: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED
if ( stats->max_free_blocks < stats->free_blocks ) {
stats->max_free_blocks = stats->free_blocks;
a000f3b8: 3584303c strcc r3, [r4, #60] ; 0x3c <== NOT EXECUTED
}
}
/* Statistics */
--stats->used_blocks;
a000f3bc: e5943040 ldr r3, [r4, #64] ; 0x40 <== NOT EXECUTED
++stats->frees;
stats->free_size += block_size;
return( true );
a000f3c0: e3a00001 mov r0, #1 <== NOT EXECUTED
stats->max_free_blocks = stats->free_blocks;
}
}
/* Statistics */
--stats->used_blocks;
a000f3c4: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000f3c8: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED
++stats->frees;
a000f3cc: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000f3d0: e2833001 add r3, r3, #1 <== NOT EXECUTED a000f3d4: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED
stats->free_size += block_size;
a000f3d8: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a000f3dc: e0832002 add r2, r3, r2 <== NOT EXECUTED a000f3e0: e5842030 str r2, [r4, #48] ; 0x30 <== NOT EXECUTED
return( true );
a000f3e4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
* 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;
a000f3e8: e3a00001 mov r0, #1
--stats->used_blocks;
++stats->frees;
stats->free_size += block_size;
return( true );
}
a000f3ec: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc}
a000f518 <_Heap_Free_block>:
static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block )
{
Heap_Statistics *const stats = &heap->stats;
/* Statistics */
++stats->used_blocks;
a000f518: e5902040 ldr r2, [r0, #64] ; 0x40 <== NOT EXECUTED
--stats->frees;
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block ));
a000f51c: e2811008 add r1, r1, #8 <== NOT EXECUTED
static void _Heap_Free_block( Heap_Control *heap, Heap_Block *block )
{
Heap_Statistics *const stats = &heap->stats;
/* Statistics */
++stats->used_blocks;
a000f520: e2822001 add r2, r2, #1 <== NOT EXECUTED a000f524: e5802040 str r2, [r0, #64] ; 0x40 <== NOT EXECUTED
--stats->frees;
a000f528: e5902050 ldr r2, [r0, #80] ; 0x50 <== NOT EXECUTED a000f52c: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000f530: e5802050 str r2, [r0, #80] ; 0x50 <== NOT EXECUTED
_Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( block ));
a000f534: ea0000b2 b a000f804 <_Heap_Free> <== NOT EXECUTED
a000a338 <_Heap_Get_first_and_last_block>:
uintptr_t page_size,
uintptr_t min_block_size,
Heap_Block **first_block_ptr,
Heap_Block **last_block_ptr
)
{
a000a338: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr}
uintptr_t const heap_area_end = heap_area_begin + heap_area_size;
uintptr_t const alloc_area_begin =
_Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
a000a33c: e2807008 add r7, r0, #8
uintptr_t page_size,
uintptr_t min_block_size,
Heap_Block **first_block_ptr,
Heap_Block **last_block_ptr
)
{
a000a340: e1a04000 mov r4, r0
uintptr_t const heap_area_end = heap_area_begin + heap_area_size;
a000a344: e081a000 add sl, r1, r0
uintptr_t page_size,
uintptr_t min_block_size,
Heap_Block **first_block_ptr,
Heap_Block **last_block_ptr
)
{
a000a348: e1a05001 mov r5, r1
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
a000a34c: e1a00007 mov r0, r7 a000a350: e1a01002 mov r1, r2 a000a354: e1a06002 mov r6, r2 a000a358: e1a09003 mov r9, r3 a000a35c: eb00299d bl a00149d8 <__umodsi3>
if ( remainder != 0 ) {
a000a360: e3500000 cmp r0, #0
return value - remainder + alignment;
a000a364: 10867007 addne r7, r6, r7 a000a368: 10607007 rsbne r7, r0, r7
uintptr_t const alloc_area_begin =
_Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
uintptr_t const first_block_begin =
alloc_area_begin - HEAP_BLOCK_HEADER_SIZE;
uintptr_t const overhead =
HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin);
a000a36c: e2478008 sub r8, r7, #8
uintptr_t const heap_area_end = heap_area_begin + heap_area_size;
uintptr_t const alloc_area_begin =
_Heap_Align_up( heap_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
uintptr_t const first_block_begin =
alloc_area_begin - HEAP_BLOCK_HEADER_SIZE;
uintptr_t const overhead =
a000a370: e0647007 rsb r7, r4, r7
_Heap_Align_down( heap_area_size - overhead, page_size );
Heap_Block *const first_block = (Heap_Block *) first_block_begin;
Heap_Block *const last_block =
_Heap_Block_at( first_block, first_block_size );
if (
a000a374: e15a0004 cmp sl, r4 a000a378: 21550007 cmpcs r5, r7 a000a37c: 83a04000 movhi r4, #0 a000a380: 93a04001 movls r4, #1
a000a384: 9a00000d bls a000a3c0 <_Heap_Get_first_and_last_block+0x88>
uintptr_t const first_block_begin =
alloc_area_begin - HEAP_BLOCK_HEADER_SIZE;
uintptr_t const overhead =
HEAP_BLOCK_HEADER_SIZE + (first_block_begin - heap_area_begin);
uintptr_t const first_block_size =
_Heap_Align_down( heap_area_size - overhead, page_size );
a000a388: e0675005 rsb r5, r7, r5
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
a000a38c: e1a00005 mov r0, r5 a000a390: e1a01006 mov r1, r6 a000a394: eb00298f bl a00149d8 <__umodsi3> a000a398: e0605005 rsb r5, r0, r5
_Heap_Block_at( first_block, first_block_size );
if (
heap_area_end < heap_area_begin
|| heap_area_size <= overhead
|| first_block_size < min_block_size
a000a39c: e1550009 cmp r5, r9
a000a3a0: 3a000008 bcc a000a3c8 <_Heap_Get_first_and_last_block+0x90>
) {
/* Invalid area or area too small */
return false;
}
*first_block_ptr = first_block;
a000a3a4: e59d3020 ldr r3, [sp, #32]
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
a000a3a8: e0855008 add r5, r5, r8
*last_block_ptr = last_block;
return true;
a000a3ac: e3a00001 mov r0, #1
) {
/* Invalid area or area too small */
return false;
}
*first_block_ptr = first_block;
a000a3b0: e5838000 str r8, [r3]
*last_block_ptr = last_block;
a000a3b4: e59d3024 ldr r3, [sp, #36] ; 0x24 a000a3b8: e5835000 str r5, [r3]
return true;
a000a3bc: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc}
heap_area_end < heap_area_begin
|| heap_area_size <= overhead
|| first_block_size < min_block_size
) {
/* Invalid area or area too small */
return false;
a000a3c0: e3a00000 mov r0, #0 <== NOT EXECUTED
a000a3c4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
a000a3c8: e1a00004 mov r0, r4 <== NOT EXECUTED
*first_block_ptr = first_block;
*last_block_ptr = last_block;
return true;
}
a000a3cc: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
a00145d8 <_Heap_Get_free_information>:
)
{
Heap_Block *the_block;
Heap_Block *const tail = _Heap_Free_list_tail(the_heap);
info->number = 0;
a00145d8: e3a03000 mov r3, #0 <== NOT EXECUTED a00145dc: e5813000 str r3, [r1] <== NOT EXECUTED
info->largest = 0;
a00145e0: e5813004 str r3, [r1, #4] <== NOT EXECUTED
info->total = 0;
a00145e4: e5813008 str r3, [r1, #8] <== NOT EXECUTED
info->number++;
info->total += the_size;
if ( info->largest < the_size )
info->largest = the_size;
}
}
a00145e8: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED
info->number = 0;
info->largest = 0;
info->total = 0;
for(the_block = _Heap_Free_list_first(the_heap);
a00145ec: ea00000a b a001461c <_Heap_Get_free_information+0x44> <== NOT EXECUTED
uint32_t const the_size = _Heap_Block_size(the_block);
/* As we always coalesce free blocks, prev block must have been used. */
_HAssert(_Heap_Is_prev_used(the_block));
info->number++;
a00145f0: e591c000 ldr ip, [r1] <== 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;
a00145f4: e993000c ldmib r3, {r2, r3} <== NOT EXECUTED
a00145f8: e28cc001 add ip, ip, #1 <== NOT EXECUTED
a00145fc: e581c000 str ip, [r1] <== NOT EXECUTED
info->total += the_size;
a0014600: e591c008 ldr ip, [r1, #8] <== NOT EXECUTED a0014604: e3c22001 bic r2, r2, #1 <== NOT EXECUTED a0014608: e08cc002 add ip, ip, r2 <== NOT EXECUTED a001460c: e581c008 str ip, [r1, #8] <== NOT EXECUTED
if ( info->largest < the_size )
a0014610: e591c004 ldr ip, [r1, #4] <== NOT EXECUTED a0014614: e15c0002 cmp ip, r2 <== NOT EXECUTED
info->largest = the_size;
a0014618: 35812004 strcc r2, [r1, #4] <== NOT EXECUTED
info->number = 0;
info->largest = 0;
info->total = 0;
for(the_block = _Heap_Free_list_first(the_heap);
a001461c: e1530000 cmp r3, r0 <== NOT EXECUTED a0014620: 1afffff2 bne a00145f0 <_Heap_Get_free_information+0x18> <== NOT EXECUTED
info->number++;
info->total += the_size;
if ( info->largest < the_size )
info->largest = the_size;
}
}
a0014624: e12fff1e bx lr <== NOT EXECUTED
a000fdc8 <_Heap_Get_information>:
void _Heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
a000fdc8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
Heap_Block *the_block = the_heap->first_block;
Heap_Block *const end = the_heap->last_block;
memset(the_info, 0, sizeof(*the_info));
a000fdcc: e3a02018 mov r2, #24 <== NOT EXECUTED
void _Heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
a000fdd0: e1a05001 mov r5, r1 <== NOT EXECUTED
Heap_Block *the_block = the_heap->first_block;
a000fdd4: e5904020 ldr r4, [r0, #32] <== NOT EXECUTED
Heap_Block *const end = the_heap->last_block;
a000fdd8: e5906024 ldr r6, [r0, #36] ; 0x24 <== NOT EXECUTED
memset(the_info, 0, sizeof(*the_info));
a000fddc: e1a00001 mov r0, r1 <== NOT EXECUTED a000fde0: e3a01000 mov r1, #0 <== NOT EXECUTED a000fde4: eb000902 bl a00121f4 <memset> <== NOT EXECUTED
while ( the_block != end ) {
a000fde8: ea00000f b a000fe2c <_Heap_Get_information+0x64> <== 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;
a000fdec: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a000fdf0: e3c22001 bic r2, r2, #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);
a000fdf4: e0844002 add r4, r4, r2 <== 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;
a000fdf8: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED
uintptr_t const the_size = _Heap_Block_size(the_block);
Heap_Block *const next_block = _Heap_Block_at(the_block, the_size);
Heap_Information *info;
if ( _Heap_Is_prev_used(next_block) )
a000fdfc: e3130001 tst r3, #1 <== NOT EXECUTED
info = &the_info->Used;
a000fe00: 1285300c addne r3, r5, #12 <== NOT EXECUTED
else
info = &the_info->Free;
a000fe04: 01a03005 moveq r3, r5 <== NOT EXECUTED
info->number++;
a000fe08: e5931000 ldr r1, [r3] <== NOT EXECUTED a000fe0c: e2811001 add r1, r1, #1 <== NOT EXECUTED a000fe10: e5831000 str r1, [r3] <== NOT EXECUTED
info->total += the_size;
a000fe14: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000fe18: e0811002 add r1, r1, r2 <== NOT EXECUTED a000fe1c: e5831008 str r1, [r3, #8] <== NOT EXECUTED
if ( info->largest < the_size )
a000fe20: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED a000fe24: e1510002 cmp r1, r2 <== NOT EXECUTED
info->largest = the_size;
a000fe28: 35832004 strcc r2, [r3, #4] <== NOT EXECUTED
Heap_Block *the_block = the_heap->first_block;
Heap_Block *const end = the_heap->last_block;
memset(the_info, 0, sizeof(*the_info));
while ( the_block != end ) {
a000fe2c: e1540006 cmp r4, r6 <== NOT EXECUTED a000fe30: 1affffed bne a000fdec <_Heap_Get_information+0x24> <== NOT EXECUTED
if ( info->largest < the_size )
info->largest = the_size;
the_block = next_block;
}
}
a000fe34: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000a3d0 <_Heap_Initialize>:
Heap_Control *heap,
void *heap_area_begin_ptr,
uintptr_t heap_area_size,
uintptr_t page_size
)
{
a000a3d0: e92d41ff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, lr}
a000a3d4: e1a08002 mov r8, r2
uintptr_t min_block_size = 0;
bool area_ok = false;
Heap_Block *first_block = NULL;
Heap_Block *last_block = NULL;
if ( page_size == 0 ) {
a000a3d8: e2535000 subs r5, r3, #0
uintptr_t first_block_begin = 0; uintptr_t first_block_size = 0; uintptr_t last_block_begin = 0; uintptr_t min_block_size = 0; bool area_ok = false; Heap_Block *first_block = NULL;
a000a3dc: e3a02000 mov r2, #0
Heap_Control *heap,
void *heap_area_begin_ptr,
uintptr_t heap_area_size,
uintptr_t page_size
)
{
a000a3e0: e1a04000 mov r4, r0 a000a3e4: e1a06001 mov r6, r1
uintptr_t first_block_begin = 0; uintptr_t first_block_size = 0; uintptr_t last_block_begin = 0; uintptr_t min_block_size = 0; bool area_ok = false; Heap_Block *first_block = NULL;
a000a3e8: e58d200c str r2, [sp, #12]
Heap_Block *last_block = NULL;
a000a3ec: e58d2008 str r2, [sp, #8]
if ( page_size == 0 ) {
page_size = CPU_ALIGNMENT;
a000a3f0: 03a05008 moveq r5, #8
uintptr_t min_block_size = 0;
bool area_ok = false;
Heap_Block *first_block = NULL;
Heap_Block *last_block = NULL;
if ( page_size == 0 ) {
a000a3f4: 0a000004 beq a000a40c <_Heap_Initialize+0x3c>
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
if ( remainder != 0 ) {
a000a3f8: e2153007 ands r3, r5, #7
return value - remainder + alignment;
a000a3fc: 12855008 addne r5, r5, #8 a000a400: 10635005 rsbne r5, r3, r5
page_size = CPU_ALIGNMENT;
} else {
page_size = _Heap_Align_up( page_size, CPU_ALIGNMENT );
if ( page_size < CPU_ALIGNMENT ) {
a000a404: e3550007 cmp r5, #7
a000a408: 9a000034 bls a000a4e0 <_Heap_Initialize+0x110>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(
uintptr_t value,
uintptr_t alignment
)
{
uintptr_t remainder = value % alignment;
a000a40c: e1a01005 mov r1, r5 a000a410: e3a00010 mov r0, #16 a000a414: eb00296f bl a00149d8 <__umodsi3>
if ( remainder != 0 ) {
a000a418: e3500000 cmp r0, #0
return value - remainder + alignment;
a000a41c: 12857010 addne r7, r5, #16
return 0;
}
}
min_block_size = _Heap_Align_up( sizeof( Heap_Block ), page_size );
area_ok = _Heap_Get_first_and_last_block(
a000a420: e28d300c add r3, sp, #12 a000a424: 10607007 rsbne r7, r0, r7
} else {
return value;
a000a428: 03a07010 moveq r7, #16 a000a42c: e58d3000 str r3, [sp] a000a430: e28d3008 add r3, sp, #8 a000a434: e58d3004 str r3, [sp, #4] a000a438: e1a00006 mov r0, r6 a000a43c: e1a01008 mov r1, r8 a000a440: e1a02005 mov r2, r5 a000a444: e1a03007 mov r3, r7 a000a448: ebffffba bl a000a338 <_Heap_Get_first_and_last_block>
page_size,
min_block_size,
&first_block,
&last_block
);
if ( !area_ok ) {
a000a44c: e3500000 cmp r0, #0
a000a450: 0a000023 beq a000a4e4 <_Heap_Initialize+0x114>
return 0;
}
memset(heap, 0, sizeof(*heap));
a000a454: e3a01000 mov r1, #0 a000a458: e3a02058 mov r2, #88 ; 0x58 a000a45c: e1a00004 mov r0, r4 a000a460: eb001d66 bl a0011a00 <memset>
heap->Protection.block_initialize = _Heap_Protection_block_initialize_default;
heap->Protection.block_check = _Heap_Protection_block_check_default;
heap->Protection.block_error = _Heap_Protection_block_error_default;
#endif
first_block_begin = (uintptr_t) first_block;
a000a464: e59d300c ldr r3, [sp, #12]
last_block_begin = (uintptr_t) last_block;
a000a468: e59d2008 ldr r2, [sp, #8]
uintptr_t page_size
)
{
Heap_Statistics *const stats = &heap->stats;
uintptr_t const heap_area_begin = (uintptr_t) heap_area_begin_ptr;
uintptr_t const heap_area_end = heap_area_begin + heap_area_size;
a000a46c: e0888006 add r8, r8, r6
first_block_begin = (uintptr_t) first_block;
last_block_begin = (uintptr_t) last_block;
first_block_size = last_block_begin - first_block_begin;
/* First block */
first_block->prev_size = heap_area_end;
a000a470: e5838000 str r8, [r3]
heap->Protection.block_error = _Heap_Protection_block_error_default;
#endif
first_block_begin = (uintptr_t) first_block;
last_block_begin = (uintptr_t) last_block;
first_block_size = last_block_begin - first_block_begin;
a000a474: e0630002 rsb r0, r3, r2
/* First block */
first_block->prev_size = heap_area_end;
first_block->size_and_flag = first_block_size | HEAP_PREV_BLOCK_USED;
a000a478: e3801001 orr r1, r0, #1
a000a47c: e9830012 stmib r3, {r1, r4}
first_block->next = _Heap_Free_list_tail( heap ); first_block->prev = _Heap_Free_list_head( heap );
a000a480: e583400c str r4, [r3, #12]
heap->min_block_size = min_block_size; heap->area_begin = heap_area_begin; heap->area_end = heap_area_end; heap->first_block = first_block; heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block;
a000a484: e5843008 str r3, [r4, #8]
/* Heap control */ heap->page_size = page_size; heap->min_block_size = min_block_size; heap->area_begin = heap_area_begin; heap->area_end = heap_area_end; heap->first_block = first_block;
a000a488: e5843020 str r3, [r4, #32]
heap->last_block = last_block; _Heap_Free_list_head( heap )->next = first_block; _Heap_Free_list_tail( heap )->prev = first_block;
a000a48c: e584300c str r3, [r4, #12]
* 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(
a000a490: e0623003 rsb r3, r2, r3
heap->page_size = page_size; heap->min_block_size = min_block_size; heap->area_begin = heap_area_begin; heap->area_end = heap_area_end; heap->first_block = first_block; heap->last_block = last_block;
a000a494: e5842024 str r2, [r4, #36] ; 0x24
first_block->next = _Heap_Free_list_tail( heap );
first_block->prev = _Heap_Free_list_head( heap );
_Heap_Protection_block_initialize( heap, first_block );
/* Heap control */
heap->page_size = page_size;
a000a498: e5845010 str r5, [r4, #16]
heap->min_block_size = min_block_size;
a000a49c: e5847014 str r7, [r4, #20]
heap->area_begin = heap_area_begin;
a000a4a0: e5846018 str r6, [r4, #24]
heap->area_end = heap_area_end;
a000a4a4: e584801c str r8, [r4, #28]
uintptr_t size
)
{
uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;
block->size_and_flag = size | flag;
a000a4a8: e5823004 str r3, [r2, #4]
/* Statistics */
stats->size = first_block_size;
stats->free_size = first_block_size;
stats->min_free_size = first_block_size;
stats->free_blocks = 1;
a000a4ac: e3a03001 mov r3, #1
heap->last_block = last_block;
_Heap_Free_list_head( heap )->next = first_block;
_Heap_Free_list_tail( heap )->prev = first_block;
/* Last block */
last_block->prev_size = first_block_size;
a000a4b0: e5820000 str r0, [r2]
/* Statistics */
stats->size = first_block_size;
stats->free_size = first_block_size;
stats->min_free_size = first_block_size;
stats->free_blocks = 1;
a000a4b4: e5843038 str r3, [r4, #56] ; 0x38
stats->max_free_blocks = 1;
a000a4b8: e584303c str r3, [r4, #60] ; 0x3c
stats->instance = instance++;
a000a4bc: e59f3028 ldr r3, [pc, #40] ; a000a4ec <_Heap_Initialize+0x11c>
last_block->size_and_flag = 0;
_Heap_Set_last_block_size( heap );
_Heap_Protection_block_initialize( heap, last_block );
/* Statistics */
stats->size = first_block_size;
a000a4c0: e584002c str r0, [r4, #44] ; 0x2c
stats->free_size = first_block_size;
a000a4c4: e5840030 str r0, [r4, #48] ; 0x30
stats->min_free_size = first_block_size; stats->free_blocks = 1; stats->max_free_blocks = 1; stats->instance = instance++;
a000a4c8: e5932000 ldr r2, [r3]
_Heap_Protection_block_initialize( heap, last_block );
/* Statistics */
stats->size = first_block_size;
stats->free_size = first_block_size;
stats->min_free_size = first_block_size;
a000a4cc: e5840034 str r0, [r4, #52] ; 0x34
stats->free_blocks = 1; stats->max_free_blocks = 1; stats->instance = instance++;
a000a4d0: e5842028 str r2, [r4, #40] ; 0x28 a000a4d4: e2822001 add r2, r2, #1 a000a4d8: e5832000 str r2, [r3]
);
_HAssert(
_Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size )
);
return first_block_size;
a000a4dc: ea000000 b a000a4e4 <_Heap_Initialize+0x114>
} else {
page_size = _Heap_Align_up( page_size, CPU_ALIGNMENT );
if ( page_size < CPU_ALIGNMENT ) {
/* Integer overflow */
return 0;
a000a4e0: e3a00000 mov r0, #0 <== NOT EXECUTED
_HAssert(
_Heap_Is_aligned( _Heap_Alloc_area_of_block( last_block ), page_size )
);
return first_block_size;
}
a000a4e4: e28dd010 add sp, sp, #16
a000a4e8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
a0016490 <_Heap_Resize_block>:
void *alloc_begin_ptr,
uintptr_t new_alloc_size,
uintptr_t *old_size,
uintptr_t *new_size
)
{
a0016490: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
a0016494: e1a04000 mov r4, r0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(
uintptr_t value,
uintptr_t alignment
)
{
return value - (value % alignment);
a0016498: e241a008 sub sl, r1, #8 <== NOT EXECUTED a001649c: e1a00001 mov r0, r1 <== NOT EXECUTED a00164a0: e1a05001 mov r5, r1 <== NOT EXECUTED a00164a4: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a00164a8: e1a08003 mov r8, r3 <== NOT EXECUTED a00164ac: e1a07002 mov r7, r2 <== NOT EXECUTED a00164b0: ebfff948 bl a00149d8 <__umodsi3> <== NOT EXECUTED a00164b4: e59d601c ldr r6, [sp, #28] <== NOT EXECUTED
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;
a00164b8: e3a03000 mov r3, #0 <== NOT EXECUTED a00164bc: e5883000 str r3, [r8] <== NOT EXECUTED
*new_size = 0;
a00164c0: e5863000 str r3, [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;
a00164c4: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED
uintptr_t alloc_begin,
uintptr_t page_size
)
{
return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )
- HEAP_BLOCK_HEADER_SIZE);
a00164c8: e060100a rsb r1, r0, sl <== 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;
a00164cc: e1530001 cmp r3, r1 <== NOT EXECUTED a00164d0: 8a000039 bhi a00165bc <_Heap_Resize_block+0x12c> <== NOT EXECUTED a00164d4: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a00164d8: e1530001 cmp r3, r1 <== NOT EXECUTED a00164dc: 3a000038 bcc a00165c4 <_Heap_Resize_block+0x134> <== 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;
a00164e0: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED
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;
a00164e4: e265c004 rsb ip, r5, #4 <== NOT EXECUTED a00164e8: e3c33001 bic r3, r3, #1 <== NOT EXECUTED
{
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;
a00164ec: e0812003 add r2, r1, r3 <== NOT EXECUTED a00164f0: e5920004 ldr r0, [r2, #4] <== NOT EXECUTED
uintptr_t alloc_size = block_end - alloc_begin + HEAP_ALLOC_BONUS;
a00164f4: e08cc002 add ip, ip, r2 <== NOT EXECUTED a00164f8: e3c00001 bic r0, r0, #1 <== NOT EXECUTED
old_size,
new_size
);
}
return HEAP_RESIZE_FATAL_ERROR;
}
a00164fc: e082a000 add sl, r2, r0 <== 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;
a0016500: e59aa004 ldr sl, [sl, #4] <== NOT EXECUTED
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;
a0016504: e588c000 str ip, [r8] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_free(
const Heap_Block *block
)
{
return !_Heap_Is_used( block );
a0016508: e31a0001 tst sl, #1 <== NOT EXECUTED a001650c: 13a0a000 movne sl, #0 <== NOT EXECUTED a0016510: 03a0a001 moveq sl, #1 <== NOT EXECUTED
if ( next_block_is_free ) {
a0016514: e35a0000 cmp sl, #0 <== NOT EXECUTED
block_size += next_block_size;
alloc_size += next_block_size;
a0016518: 108cc000 addne ip, ip, r0 <== NOT EXECUTED
_HAssert( _Heap_Is_prev_used( next_block ) );
*old_size = alloc_size;
if ( next_block_is_free ) {
block_size += next_block_size;
a001651c: 10833000 addne r3, r3, r0 <== NOT EXECUTED
alloc_size += next_block_size;
}
if ( new_alloc_size > alloc_size ) {
a0016520: e157000c cmp r7, ip <== NOT EXECUTED a0016524: 8a000022 bhi a00165b4 <_Heap_Resize_block+0x124> <== NOT EXECUTED
return HEAP_RESIZE_UNSATISFIED;
}
if ( next_block_is_free ) {
a0016528: e35a0000 cmp sl, #0 <== NOT EXECUTED a001652c: 0a000011 beq a0016578 <_Heap_Resize_block+0xe8> <== 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;
a0016530: e591c004 ldr ip, [r1, #4] <== NOT EXECUTED a0016534: e20cc001 and ip, ip, #1 <== NOT EXECUTED
block->size_and_flag = size | flag;
a0016538: e183c00c orr ip, r3, ip <== NOT EXECUTED a001653c: e581c004 str ip, [r1, #4] <== 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;
a0016540: e592c008 ldr ip, [r2, #8] <== NOT EXECUTED
Heap_Block *prev = block->prev;
a0016544: e592200c ldr r2, [r2, #12] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(
const Heap_Block *block,
uintptr_t offset
)
{
return (Heap_Block *) ((uintptr_t) block + offset);
a0016548: e0833001 add r3, r3, r1 <== 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;
a001654c: e582c008 str ip, [r2, #8] <== NOT EXECUTED
next->prev = prev;
a0016550: e58c200c str r2, [ip, #12] <== NOT EXECUTED
_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;
a0016554: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a0016558: e3822001 orr r2, r2, #1 <== NOT EXECUTED a001655c: e5832004 str r2, [r3, #4] <== NOT EXECUTED
/* Statistics */
--stats->free_blocks;
a0016560: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a0016564: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0016568: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED
stats->free_size -= next_block_size;
a001656c: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a0016570: e0600003 rsb r0, r0, r3 <== NOT EXECUTED a0016574: e5840030 str r0, [r4, #48] ; 0x30 <== NOT EXECUTED
}
block = _Heap_Block_allocate( heap, block, alloc_begin, new_alloc_size );
a0016578: e1a02005 mov r2, r5 <== NOT EXECUTED a001657c: e1a03007 mov r3, r7 <== NOT EXECUTED a0016580: e1a00004 mov r0, r4 <== NOT EXECUTED a0016584: ebffcfd9 bl a000a4f0 <_Heap_Block_allocate> <== 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;
a0016588: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED a001658c: 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);
a0016590: e2833004 add r3, r3, #4 <== NOT EXECUTED
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;
a0016594: e0655003 rsb r5, r5, r3 <== NOT EXECUTED a0016598: e0800005 add r0, r0, r5 <== NOT EXECUTED a001659c: e5860000 str r0, [r6] <== NOT EXECUTED
/* Statistics */
++stats->resizes;
a00165a0: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED
return HEAP_RESIZE_SUCCESSFUL;
a00165a4: e3a00000 mov r0, #0 <== NOT EXECUTED
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;
a00165a8: e2833001 add r3, r3, #1 <== NOT EXECUTED
a00165ac: e5843054 str r3, [r4, #84] ; 0x54 <== NOT EXECUTED
a00165b0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
block_size += next_block_size;
alloc_size += next_block_size;
}
if ( new_alloc_size > alloc_size ) {
return HEAP_RESIZE_UNSATISFIED;
a00165b4: e3a00001 mov r0, #1 <== NOT EXECUTED
*old_size = 0;
*new_size = 0;
if ( _Heap_Is_block_in_heap( heap, block ) ) {
_Heap_Protection_block_check( heap, block );
return _Heap_Resize_block_checked(
a00165b8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
new_alloc_size,
old_size,
new_size
);
}
return HEAP_RESIZE_FATAL_ERROR;
a00165bc: e3a00002 mov r0, #2 <== NOT EXECUTED
a00165c0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a00165c4: e3a00002 mov r0, #2 <== NOT EXECUTED
}
a00165c8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a000b238 <_Heap_Walk>:
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
a000b238: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size;
a000b23c: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
a000b240: e24dd030 sub sp, sp, #48 ; 0x30 <== 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;
a000b244: e59f44c8 ldr r4, [pc, #1224] ; a000b714 <_Heap_Walk+0x4dc> <== NOT EXECUTED
int source,
bool dump
)
{
uintptr_t const page_size = heap->page_size;
uintptr_t const min_block_size = heap->min_block_size;
a000b248: e58d3024 str r3, [sp, #36] ; 0x24 <== NOT EXECUTED
Heap_Block *const first_block = heap->first_block; Heap_Block *const last_block = heap->last_block;
a000b24c: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED
Heap_Block *block = first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
a000b250: e31200ff tst r2, #255 ; 0xff <== NOT EXECUTED
bool dump
)
{
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;
a000b254: e590c020 ldr ip, [r0, #32] <== NOT EXECUTED
Heap_Block *const last_block = heap->last_block;
a000b258: e58d3028 str r3, [sp, #40] ; 0x28 <== NOT EXECUTED
Heap_Block *block = first_block;
Heap_Walk_printer printer = dump ?
_Heap_Walk_print : _Heap_Walk_print_nothing;
a000b25c: e59f34b4 ldr r3, [pc, #1204] ; a000b718 <_Heap_Walk+0x4e0> <== NOT EXECUTED
bool _Heap_Walk(
Heap_Control *heap,
int source,
bool dump
)
{
a000b260: e1a06000 mov r6, r0 <== NOT EXECUTED a000b264: e1a05001 mov r5, r1 <== 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;
a000b268: 11a04003 movne r4, r3 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
a000b26c: e59f34a8 ldr r3, [pc, #1192] ; a000b71c <_Heap_Walk+0x4e4> <== NOT EXECUTED
Heap_Control *heap,
int source,
bool dump
)
{
uintptr_t const page_size = heap->page_size;
a000b270: e5909010 ldr r9, [r0, #16] <== NOT EXECUTED
uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const first_block = heap->first_block;
a000b274: e58dc020 str ip, [sp, #32] <== 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() ) ) {
a000b278: e5933000 ldr r3, [r3] <== NOT EXECUTED a000b27c: e3530003 cmp r3, #3 <== NOT EXECUTED a000b280: 1a000118 bne a000b6e8 <_Heap_Walk+0x4b0> <== 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)(
a000b284: e59dc024 ldr ip, [sp, #36] ; 0x24 <== NOT EXECUTED a000b288: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED a000b28c: e58dc000 str ip, [sp] <== NOT EXECUTED a000b290: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED a000b294: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000b298: e590301c ldr r3, [r0, #28] <== NOT EXECUTED a000b29c: e58d200c str r2, [sp, #12] <== NOT EXECUTED a000b2a0: e59f2478 ldr r2, [pc, #1144] ; a000b720 <_Heap_Walk+0x4e8> <== NOT EXECUTED a000b2a4: e58d3008 str r3, [sp, #8] <== NOT EXECUTED a000b2a8: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED a000b2ac: e58d3010 str r3, [sp, #16] <== NOT EXECUTED a000b2b0: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED a000b2b4: e58d3014 str r3, [sp, #20] <== NOT EXECUTED a000b2b8: e590300c ldr r3, [r0, #12] <== NOT EXECUTED a000b2bc: e1a00001 mov r0, r1 <== NOT EXECUTED a000b2c0: e3a01000 mov r1, #0 <== NOT EXECUTED a000b2c4: e58d3018 str r3, [sp, #24] <== NOT EXECUTED a000b2c8: e1a03009 mov r3, r9 <== NOT EXECUTED a000b2cc: e12fff34 blx r4 <== NOT EXECUTED
heap->area_begin, heap->area_end,
first_block, last_block,
first_free_block, last_free_block
);
if ( page_size == 0 ) {
a000b2d0: e3590000 cmp r9, #0 <== NOT EXECUTED a000b2d4: 1a000005 bne a000b2f0 <_Heap_Walk+0xb8> <== NOT EXECUTED
(*printer)( source, true, "page size is zero\n" );
a000b2d8: e1a00005 mov r0, r5 <== NOT EXECUTED a000b2dc: e3a01001 mov r1, #1 <== NOT EXECUTED a000b2e0: e59f243c ldr r2, [pc, #1084] ; a000b724 <_Heap_Walk+0x4ec> <== NOT EXECUTED a000b2e4: e12fff34 blx r4 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
a000b2e8: e1a08009 mov r8, r9 <== NOT EXECUTED a000b2ec: ea0000fe b a000b6ec <_Heap_Walk+0x4b4> <== NOT EXECUTED
(*printer)( source, true, "page size is zero\n" );
return false;
}
if ( !_Addresses_Is_aligned( (void *) page_size ) ) {
a000b2f0: e2198007 ands r8, r9, #7 <== NOT EXECUTED
(*printer)(
a000b2f4: 11a00005 movne r0, r5 <== NOT EXECUTED a000b2f8: 13a01001 movne r1, #1 <== NOT EXECUTED a000b2fc: 159f2424 ldrne r2, [pc, #1060] ; a000b728 <_Heap_Walk+0x4f0><== NOT EXECUTED a000b300: 11a03009 movne r3, r9 <== NOT EXECUTED a000b304: 1a0000ff bne a000b708 <_Heap_Walk+0x4d0> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
a000b308: e59d0024 ldr r0, [sp, #36] ; 0x24 <== NOT EXECUTED a000b30c: e1a01009 mov r1, r9 <== NOT EXECUTED a000b310: ebffe74a bl a0005040 <__umodsi3> <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {
a000b314: e250b000 subs fp, r0, #0 <== NOT EXECUTED a000b318: 0a000005 beq a000b334 <_Heap_Walk+0xfc> <== NOT EXECUTED
(*printer)(
a000b31c: e1a00005 mov r0, r5 <== NOT EXECUTED a000b320: e3a01001 mov r1, #1 <== NOT EXECUTED a000b324: e59f2400 ldr r2, [pc, #1024] ; a000b72c <_Heap_Walk+0x4f4> <== NOT EXECUTED a000b328: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a000b32c: e12fff34 blx r4 <== NOT EXECUTED a000b330: ea0000ed b a000b6ec <_Heap_Walk+0x4b4> <== NOT EXECUTED a000b334: e59dc020 ldr ip, [sp, #32] <== NOT EXECUTED a000b338: e1a01009 mov r1, r9 <== NOT EXECUTED a000b33c: e28c0008 add r0, ip, #8 <== NOT EXECUTED a000b340: ebffe73e bl a0005040 <__umodsi3> <== NOT EXECUTED
);
return false;
}
if (
a000b344: e250a000 subs sl, r0, #0 <== NOT EXECUTED
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
) {
(*printer)(
a000b348: 11a00005 movne r0, r5 <== NOT EXECUTED a000b34c: 13a01001 movne r1, #1 <== NOT EXECUTED a000b350: 159f23d8 ldrne r2, [pc, #984] ; a000b730 <_Heap_Walk+0x4f8><== NOT EXECUTED a000b354: 159d3020 ldrne r3, [sp, #32] <== NOT EXECUTED a000b358: 1a0000c3 bne a000b66c <_Heap_Walk+0x434> <== 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;
a000b35c: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED a000b360: e5928004 ldr r8, [r2, #4] <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_prev_used( first_block ) ) {
a000b364: e2188001 ands r8, r8, #1 <== NOT EXECUTED
(*printer)(
a000b368: 01a00005 moveq r0, r5 <== NOT EXECUTED a000b36c: 03a01001 moveq r1, #1 <== NOT EXECUTED a000b370: 059f23bc ldreq r2, [pc, #956] ; a000b734 <_Heap_Walk+0x4fc><== NOT EXECUTED a000b374: 0a000009 beq a000b3a0 <_Heap_Walk+0x168> <== 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;
a000b378: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED a000b37c: e5937004 ldr r7, [r3, #4] <== NOT EXECUTED a000b380: e3c77001 bic r7, r7, #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);
a000b384: e0837007 add r7, r3, r7 <== 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;
a000b388: e5978004 ldr r8, [r7, #4] <== NOT EXECUTED
);
return false;
}
if ( _Heap_Is_free( last_block ) ) {
a000b38c: e2188001 ands r8, r8, #1 <== NOT EXECUTED a000b390: 1a000004 bne a000b3a8 <_Heap_Walk+0x170> <== NOT EXECUTED
(*printer)(
a000b394: e59f239c ldr r2, [pc, #924] ; a000b738 <_Heap_Walk+0x500> <== NOT EXECUTED a000b398: e1a00005 mov r0, r5 <== NOT EXECUTED a000b39c: e3a01001 mov r1, #1 <== NOT EXECUTED a000b3a0: e12fff34 blx r4 <== NOT EXECUTED a000b3a4: ea0000d0 b a000b6ec <_Heap_Walk+0x4b4> <== NOT EXECUTED
);
return false;
}
if (
a000b3a8: e59dc020 ldr ip, [sp, #32] <== NOT EXECUTED a000b3ac: e157000c cmp r7, ip <== NOT EXECUTED a000b3b0: 0a000005 beq a000b3cc <_Heap_Walk+0x194> <== NOT EXECUTED
_Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
) {
(*printer)(
a000b3b4: e1a00005 mov r0, r5 <== NOT EXECUTED a000b3b8: e3a01001 mov r1, #1 <== NOT EXECUTED a000b3bc: e59f2378 ldr r2, [pc, #888] ; a000b73c <_Heap_Walk+0x504> <== NOT EXECUTED a000b3c0: e12fff34 blx r4 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
a000b3c4: e1a0800a mov r8, sl <== NOT EXECUTED a000b3c8: ea0000c7 b a000b6ec <_Heap_Walk+0x4b4> <== NOT EXECUTED
int source,
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
a000b3cc: e596b010 ldr fp, [r6, #16] <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
a000b3d0: e5968008 ldr r8, [r6, #8] <== NOT EXECUTED
Heap_Walk_printer printer,
Heap_Control *heap
)
{
uintptr_t const page_size = heap->page_size;
const Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );
a000b3d4: e1a0a006 mov sl, r6 <== NOT EXECUTED a000b3d8: ea000032 b a000b4a8 <_Heap_Walk+0x270> <== 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;
a000b3dc: e5963020 ldr r3, [r6, #32] <== NOT EXECUTED a000b3e0: e1530008 cmp r3, r8 <== NOT EXECUTED a000b3e4: 83a0c000 movhi ip, #0 <== NOT EXECUTED a000b3e8: 8a000003 bhi a000b3fc <_Heap_Walk+0x1c4> <== NOT EXECUTED a000b3ec: e596c024 ldr ip, [r6, #36] ; 0x24 <== NOT EXECUTED a000b3f0: e15c0008 cmp ip, r8 <== NOT EXECUTED a000b3f4: 33a0c000 movcc ip, #0 <== NOT EXECUTED a000b3f8: 23a0c001 movcs ip, #1 <== NOT EXECUTED
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 ) {
if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {
a000b3fc: e21cc0ff ands ip, ip, #255 ; 0xff <== NOT EXECUTED
(*printer)(
a000b400: 01a00005 moveq r0, r5 <== NOT EXECUTED a000b404: 03a01001 moveq r1, #1 <== NOT EXECUTED a000b408: 059f2330 ldreq r2, [pc, #816] ; a000b740 <_Heap_Walk+0x508><== NOT EXECUTED a000b40c: 0a000012 beq a000b45c <_Heap_Walk+0x224> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
a000b410: e2880008 add r0, r8, #8 <== NOT EXECUTED a000b414: e1a0100b mov r1, fp <== NOT EXECUTED a000b418: ebffe708 bl a0005040 <__umodsi3> <== NOT EXECUTED
);
return false;
}
if (
a000b41c: e250c000 subs ip, r0, #0 <== NOT EXECUTED
!_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
) {
(*printer)(
a000b420: 11a00005 movne r0, r5 <== NOT EXECUTED a000b424: 13a01001 movne r1, #1 <== NOT EXECUTED a000b428: 159f2314 ldrne r2, [pc, #788] ; a000b744 <_Heap_Walk+0x50c><== NOT EXECUTED a000b42c: 11a03008 movne r3, r8 <== NOT EXECUTED a000b430: 1a0000b4 bne a000b708 <_Heap_Walk+0x4d0> <== 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;
a000b434: e5983004 ldr r3, [r8, #4] <== NOT EXECUTED a000b438: e3c33001 bic r3, r3, #1 <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
a000b43c: e0883003 add r3, r8, 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;
a000b440: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
);
return false;
}
if ( _Heap_Is_used( free_block ) ) {
a000b444: e2133001 ands r3, r3, #1 <== NOT EXECUTED a000b448: e58d302c str r3, [sp, #44] ; 0x2c <== NOT EXECUTED a000b44c: 0a000008 beq a000b474 <_Heap_Walk+0x23c> <== NOT EXECUTED
(*printer)(
a000b450: e59f22f0 ldr r2, [pc, #752] ; a000b748 <_Heap_Walk+0x510> <== NOT EXECUTED a000b454: e1a00005 mov r0, r5 <== NOT EXECUTED a000b458: e3a01001 mov r1, #1 <== NOT EXECUTED a000b45c: e1a03008 mov r3, r8 <== NOT EXECUTED a000b460: e58dc01c str ip, [sp, #28] <== NOT EXECUTED a000b464: e12fff34 blx r4 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
a000b468: e59dc01c ldr ip, [sp, #28] <== NOT EXECUTED a000b46c: e1a0800c mov r8, ip <== NOT EXECUTED a000b470: ea00009d b a000b6ec <_Heap_Walk+0x4b4> <== NOT EXECUTED
);
return false;
}
if ( free_block->prev != prev_block ) {
a000b474: e598300c ldr r3, [r8, #12] <== NOT EXECUTED a000b478: e153000a cmp r3, sl <== NOT EXECUTED a000b47c: 0a000007 beq a000b4a0 <_Heap_Walk+0x268> <== NOT EXECUTED
(*printer)(
a000b480: e58d3000 str r3, [sp] <== NOT EXECUTED a000b484: e1a00005 mov r0, r5 <== NOT EXECUTED a000b488: e1a03008 mov r3, r8 <== NOT EXECUTED a000b48c: e3a01001 mov r1, #1 <== NOT EXECUTED a000b490: e59f22b4 ldr r2, [pc, #692] ; a000b74c <_Heap_Walk+0x514> <== NOT EXECUTED a000b494: e12fff34 blx r4 <== NOT EXECUTED
if ( !_System_state_Is_up( _System_state_Get() ) ) {
return true;
}
if ( !_Heap_Walk_check_control( source, printer, heap ) ) {
return false;
a000b498: e59d802c ldr r8, [sp, #44] ; 0x2c <== NOT EXECUTED a000b49c: ea000092 b a000b6ec <_Heap_Walk+0x4b4> <== NOT EXECUTED
return false;
}
prev_block = free_block;
free_block = free_block->next;
a000b4a0: e1a0a008 mov sl, r8 <== NOT EXECUTED a000b4a4: e5988008 ldr r8, [r8, #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 ) {
a000b4a8: e1580006 cmp r8, r6 <== NOT EXECUTED a000b4ac: 1affffca bne a000b3dc <_Heap_Walk+0x1a4> <== NOT EXECUTED a000b4b0: ea000000 b a000b4b8 <_Heap_Walk+0x280> <== NOT EXECUTED
block->prev_size
);
}
block = next_block;
} while ( block != first_block );
a000b4b4: e1a07008 mov r7, r8 <== NOT EXECUTED
return true;
}
a000b4b8: e5973004 ldr r3, [r7, #4] <== 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;
a000b4bc: e5962020 ldr r2, [r6, #32] <== 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;
a000b4c0: e3c3a001 bic sl, 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);
a000b4c4: e087800a add r8, r7, sl <== 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;
a000b4c8: e1520008 cmp r2, r8 <== NOT EXECUTED a000b4cc: 83a0b000 movhi fp, #0 <== NOT EXECUTED a000b4d0: 8a000003 bhi a000b4e4 <_Heap_Walk+0x2ac> <== NOT EXECUTED a000b4d4: e596b024 ldr fp, [r6, #36] ; 0x24 <== NOT EXECUTED a000b4d8: e15b0008 cmp fp, r8 <== NOT EXECUTED a000b4dc: 33a0b000 movcc fp, #0 <== NOT EXECUTED a000b4e0: 23a0b001 movcs fp, #1 <== NOT EXECUTED
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;
if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {
a000b4e4: e21bb0ff ands fp, fp, #255 ; 0xff <== NOT EXECUTED a000b4e8: 1a000006 bne a000b508 <_Heap_Walk+0x2d0> <== NOT EXECUTED
(*printer)(
a000b4ec: e58d8000 str r8, [sp] <== NOT EXECUTED a000b4f0: e1a00005 mov r0, r5 <== NOT EXECUTED a000b4f4: e3a01001 mov r1, #1 <== NOT EXECUTED a000b4f8: e59f2250 ldr r2, [pc, #592] ; a000b750 <_Heap_Walk+0x518> <== NOT EXECUTED a000b4fc: e1a03007 mov r3, r7 <== NOT EXECUTED a000b500: e12fff34 blx r4 <== NOT EXECUTED a000b504: ea000059 b a000b670 <_Heap_Walk+0x438> <== 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;
a000b508: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(
uintptr_t value,
uintptr_t alignment
)
{
return (value % alignment) == 0;
a000b50c: e1a0000a mov r0, sl <== NOT EXECUTED a000b510: e1a01009 mov r1, r9 <== NOT EXECUTED a000b514: e057b002 subs fp, r7, r2 <== NOT EXECUTED a000b518: 13a0b001 movne fp, #1 <== NOT EXECUTED a000b51c: e58d301c str r3, [sp, #28] <== NOT EXECUTED a000b520: ebffe6c6 bl a0005040 <__umodsi3> <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
a000b524: e3500000 cmp r0, #0 <== NOT EXECUTED a000b528: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED a000b52c: 0a000005 beq a000b548 <_Heap_Walk+0x310> <== NOT EXECUTED a000b530: e35b0000 cmp fp, #0 <== NOT EXECUTED
(*printer)(
a000b534: 158da000 strne sl, [sp] <== NOT EXECUTED a000b538: 11a00005 movne r0, r5 <== NOT EXECUTED a000b53c: 13a01001 movne r1, #1 <== NOT EXECUTED a000b540: 159f220c ldrne r2, [pc, #524] ; a000b754 <_Heap_Walk+0x51c><== NOT EXECUTED a000b544: 1a000013 bne a000b598 <_Heap_Walk+0x360> <== NOT EXECUTED
);
return false;
}
if ( block_size < min_block_size && is_not_last_block ) {
a000b548: e59dc024 ldr ip, [sp, #36] ; 0x24 <== NOT EXECUTED a000b54c: e15a000c cmp sl, ip <== NOT EXECUTED a000b550: 2a000008 bcs a000b578 <_Heap_Walk+0x340> <== NOT EXECUTED a000b554: e35b0000 cmp fp, #0 <== NOT EXECUTED a000b558: 0a000006 beq a000b578 <_Heap_Walk+0x340> <== NOT EXECUTED
(*printer)(
a000b55c: e88d1400 stm sp, {sl, ip} <== NOT EXECUTED
a000b560: e1a00005 mov r0, r5 <== NOT EXECUTED
a000b564: e3a01001 mov r1, #1 <== NOT EXECUTED
a000b568: e59f21e8 ldr r2, [pc, #488] ; a000b758 <_Heap_Walk+0x520> <== NOT EXECUTED
a000b56c: e1a03007 mov r3, r7 <== NOT EXECUTED
a000b570: e12fff34 blx r4 <== NOT EXECUTED
a000b574: ea000064 b a000b70c <_Heap_Walk+0x4d4> <== NOT EXECUTED
);
return false;
}
if ( next_block_begin <= block_begin && is_not_last_block ) {
a000b578: e1580007 cmp r8, r7 <== NOT EXECUTED a000b57c: 8a000008 bhi a000b5a4 <_Heap_Walk+0x36c> <== NOT EXECUTED a000b580: e35b0000 cmp fp, #0 <== NOT EXECUTED a000b584: 0a000006 beq a000b5a4 <_Heap_Walk+0x36c> <== NOT EXECUTED
(*printer)(
a000b588: e59f21cc ldr r2, [pc, #460] ; a000b75c <_Heap_Walk+0x524> <== NOT EXECUTED a000b58c: e58d8000 str r8, [sp] <== NOT EXECUTED a000b590: e1a00005 mov r0, r5 <== NOT EXECUTED a000b594: e3a01001 mov r1, #1 <== NOT EXECUTED a000b598: e1a03007 mov r3, r7 <== NOT EXECUTED a000b59c: e12fff34 blx r4 <== NOT EXECUTED a000b5a0: ea000059 b a000b70c <_Heap_Walk+0x4d4> <== 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;
a000b5a4: e203b001 and fp, r3, #1 <== NOT EXECUTED a000b5a8: e5983004 ldr r3, [r8, #4] <== NOT EXECUTED
);
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
a000b5ac: e3130001 tst r3, #1 <== NOT EXECUTED a000b5b0: 1a000038 bne a000b698 <_Heap_Walk+0x460> <== 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 ?
a000b5b4: e597200c ldr r2, [r7, #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)(
a000b5b8: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
a000b5bc: e596100c ldr r1, [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)(
a000b5c0: e1520003 cmp r2, r3 <== NOT EXECUTED a000b5c4: 059f0194 ldreq r0, [pc, #404] ; a000b760 <_Heap_Walk+0x528><== NOT EXECUTED a000b5c8: 0a000003 beq a000b5dc <_Heap_Walk+0x3a4> <== NOT EXECUTED
block,
block_size,
block->prev,
block->prev == first_free_block ?
" (= first free)"
: (block->prev == free_list_head ? " (= head)" : ""),
a000b5cc: e59f3190 ldr r3, [pc, #400] ; a000b764 <_Heap_Walk+0x52c> <== NOT EXECUTED a000b5d0: e1520006 cmp r2, r6 <== NOT EXECUTED a000b5d4: e59f018c ldr r0, [pc, #396] ; a000b768 <_Heap_Walk+0x530> <== NOT EXECUTED a000b5d8: 01a00003 moveq r0, r3 <== NOT EXECUTED
block->next,
block->next == last_free_block ?
a000b5dc: e5973008 ldr r3, [r7, #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)(
a000b5e0: e1530001 cmp r3, r1 <== NOT EXECUTED a000b5e4: 059f1180 ldreq r1, [pc, #384] ; a000b76c <_Heap_Walk+0x534><== NOT EXECUTED a000b5e8: 0a000003 beq a000b5fc <_Heap_Walk+0x3c4> <== 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)" : "")
a000b5ec: e59fc17c ldr ip, [pc, #380] ; a000b770 <_Heap_Walk+0x538> <== NOT EXECUTED a000b5f0: e1530006 cmp r3, r6 <== NOT EXECUTED a000b5f4: e59f116c ldr r1, [pc, #364] ; a000b768 <_Heap_Walk+0x530> <== NOT EXECUTED a000b5f8: 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)(
a000b5fc: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a000b600: e58d0008 str r0, [sp, #8] <== NOT EXECUTED a000b604: e58d300c str r3, [sp, #12] <== NOT EXECUTED a000b608: e58d1010 str r1, [sp, #16] <== NOT EXECUTED a000b60c: e1a03007 mov r3, r7 <== NOT EXECUTED a000b610: e58da000 str sl, [sp] <== NOT EXECUTED a000b614: e1a00005 mov r0, r5 <== NOT EXECUTED a000b618: e3a01000 mov r1, #0 <== NOT EXECUTED a000b61c: e59f2150 ldr r2, [pc, #336] ; a000b774 <_Heap_Walk+0x53c> <== NOT EXECUTED a000b620: e12fff34 blx r4 <== NOT EXECUTED
block->next == last_free_block ?
" (= last free)"
: (block->next == free_list_tail ? " (= tail)" : "")
);
if ( block_size != next_block->prev_size ) {
a000b624: e5983000 ldr r3, [r8] <== NOT EXECUTED a000b628: e15a0003 cmp sl, r3 <== NOT EXECUTED a000b62c: 0a000008 beq a000b654 <_Heap_Walk+0x41c> <== NOT EXECUTED
(*printer)(
a000b630: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000b634: e58da000 str sl, [sp] <== NOT EXECUTED a000b638: e58d8008 str r8, [sp, #8] <== NOT EXECUTED a000b63c: e1a00005 mov r0, r5 <== NOT EXECUTED a000b640: e3a01001 mov r1, #1 <== NOT EXECUTED a000b644: e59f212c ldr r2, [pc, #300] ; a000b778 <_Heap_Walk+0x540> <== NOT EXECUTED a000b648: e1a03007 mov r3, r7 <== NOT EXECUTED a000b64c: e12fff34 blx r4 <== NOT EXECUTED a000b650: ea00002d b a000b70c <_Heap_Walk+0x4d4> <== NOT EXECUTED
);
return false;
}
if ( !prev_used ) {
a000b654: e35b0000 cmp fp, #0 <== NOT EXECUTED a000b658: 1a000006 bne a000b678 <_Heap_Walk+0x440> <== NOT EXECUTED
(*printer)(
a000b65c: e59f2118 ldr r2, [pc, #280] ; a000b77c <_Heap_Walk+0x544> <== NOT EXECUTED a000b660: e1a00005 mov r0, r5 <== NOT EXECUTED a000b664: e3a01001 mov r1, #1 <== NOT EXECUTED a000b668: e1a03007 mov r3, r7 <== NOT EXECUTED a000b66c: e12fff34 blx r4 <== NOT EXECUTED
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
return false;
a000b670: e1a0800b mov r8, fp <== NOT EXECUTED a000b674: ea00001c b a000b6ec <_Heap_Walk+0x4b4> <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
a000b678: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED a000b67c: ea000002 b a000b68c <_Heap_Walk+0x454> <== 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 ) {
if ( free_block == block ) {
a000b680: e1530007 cmp r3, r7 <== NOT EXECUTED a000b684: 0a000014 beq a000b6dc <_Heap_Walk+0x4a4> <== NOT EXECUTED
return true;
}
free_block = free_block->next;
a000b688: 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 ) {
a000b68c: e1530006 cmp r3, r6 <== NOT EXECUTED a000b690: 1afffffa bne a000b680 <_Heap_Walk+0x448> <== NOT EXECUTED a000b694: ea000017 b a000b6f8 <_Heap_Walk+0x4c0> <== 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) {
a000b698: e35b0000 cmp fp, #0 <== NOT EXECUTED a000b69c: 0a000006 beq a000b6bc <_Heap_Walk+0x484> <== NOT EXECUTED
(*printer)(
a000b6a0: e58da000 str sl, [sp] <== NOT EXECUTED a000b6a4: e1a00005 mov r0, r5 <== NOT EXECUTED a000b6a8: e3a01000 mov r1, #0 <== NOT EXECUTED a000b6ac: e59f20cc ldr r2, [pc, #204] ; a000b780 <_Heap_Walk+0x548> <== NOT EXECUTED a000b6b0: e1a03007 mov r3, r7 <== NOT EXECUTED a000b6b4: e12fff34 blx r4 <== NOT EXECUTED a000b6b8: ea000007 b a000b6dc <_Heap_Walk+0x4a4> <== NOT EXECUTED
"block 0x%08x: size %u\n",
block,
block_size
);
} else {
(*printer)(
a000b6bc: e58da000 str sl, [sp] <== NOT EXECUTED a000b6c0: e5973000 ldr r3, [r7] <== NOT EXECUTED a000b6c4: e1a00005 mov r0, r5 <== NOT EXECUTED a000b6c8: e1a0100b mov r1, fp <== NOT EXECUTED a000b6cc: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000b6d0: e59f20ac ldr r2, [pc, #172] ; a000b784 <_Heap_Walk+0x54c> <== NOT EXECUTED a000b6d4: e1a03007 mov r3, r7 <== NOT EXECUTED a000b6d8: e12fff34 blx r4 <== NOT EXECUTED
block->prev_size
);
}
block = next_block;
} while ( block != first_block );
a000b6dc: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED a000b6e0: e1580002 cmp r8, r2 <== NOT EXECUTED a000b6e4: 1affff72 bne a000b4b4 <_Heap_Walk+0x27c> <== 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() ) ) {
return true;
a000b6e8: e3a08001 mov r8, #1 <== NOT EXECUTED
block = next_block;
} while ( block != first_block );
return true;
}
a000b6ec: e1a00008 mov r0, r8 <== NOT EXECUTED
a000b6f0: e28dd030 add sp, sp, #48 ; 0x30 <== NOT EXECUTED
a000b6f4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
return false;
}
if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {
(*printer)(
a000b6f8: e59f2088 ldr r2, [pc, #136] ; a000b788 <_Heap_Walk+0x550> <== NOT EXECUTED a000b6fc: e1a00005 mov r0, r5 <== NOT EXECUTED a000b700: e3a01001 mov r1, #1 <== NOT EXECUTED a000b704: e1a03007 mov r3, r7 <== NOT EXECUTED a000b708: e12fff34 blx r4 <== NOT EXECUTED
return false;
}
if ( !_Heap_Is_prev_used( next_block ) ) {
if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
return false;
a000b70c: e3a08000 mov r8, #0 <== NOT EXECUTED a000b710: eafffff5 b a000b6ec <_Heap_Walk+0x4b4> <== NOT EXECUTED
a000b1f4 <_Heap_Walk_print>:
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{
a000b1f4: e92d000c push {r2, r3} <== NOT EXECUTED
a000b1f8: e92d4001 push {r0, lr} <== NOT EXECUTED
a000b1fc: e1a03000 mov r3, r0 <== NOT EXECUTED
va_list ap;
if ( error ) {
a000b200: e31100ff tst r1, #255 ; 0xff <== NOT EXECUTED
printk( "FAIL[%d]: ", source );
a000b204: 159f0024 ldrne r0, [pc, #36] ; a000b230 <_Heap_Walk_print+0x3c><== NOT EXECUTED
} else {
printk( "PASS[%d]: ", source );
a000b208: 059f0024 ldreq r0, [pc, #36] ; a000b234 <_Heap_Walk_print+0x40><== NOT EXECUTED a000b20c: e1a01003 mov r1, r3 <== NOT EXECUTED a000b210: ebfff162 bl a00077a0 <printk> <== NOT EXECUTED
}
va_start( ap, fmt );
a000b214: e28d100c add r1, sp, #12 <== NOT EXECUTED
vprintk( fmt, ap );
a000b218: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED
printk( "FAIL[%d]: ", source );
} else {
printk( "PASS[%d]: ", source );
}
va_start( ap, fmt );
a000b21c: e58d1000 str r1, [sp] <== NOT EXECUTED
vprintk( fmt, ap );
a000b220: ebfff82b bl a00092d4 <vprintk> <== NOT EXECUTED
va_end( ap ); }
a000b224: e8bd4008 pop {r3, lr} <== NOT EXECUTED
a000b228: e28dd008 add sp, sp, #8 <== NOT EXECUTED
a000b22c: e12fff1e bx lr <== NOT EXECUTED
a000b1e8 <_Heap_Walk_print_nothing>:
int source,
bool error,
const char *fmt,
...
)
{
a000b1e8: e92d000c push {r2, r3} <== NOT EXECUTED
/* Do nothing */ }
a000b1ec: e28dd008 add sp, sp, #8 <== NOT EXECUTED a000b1f0: e12fff1e bx lr <== NOT EXECUTED
a00171a4 <_Message_queue_Allocate>:
*/
Message_queue_Control *_Message_queue_Allocate(void)
{
return (Message_queue_Control *)
_Objects_Allocate(&_Message_queue_Information);
a00171a4: e59f0000 ldr r0, [pc, #0] ; a00171ac <_Message_queue_Allocate+0x8><== NOT EXECUTED a00171a8: eaffef00 b a0012db0 <_Objects_Allocate> <== NOT EXECUTED
a00111bc <_Message_queue_Translate_core_message_queue_return_code>:
if ( status > CORE_MESSAGE_QUEUE_STATUS_TIMEOUT )
return RTEMS_INTERNAL_ERROR;
#endif
return _Message_queue_Translate_core_return_code_[status];
}
a00111bc: e59f3004 ldr r3, [pc, #4] ; a00111c8 <_Message_queue_Translate_core_message_queue_return_code+0xc><== NOT EXECUTED a00111c0: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a00111c4: e12fff1e bx lr <== NOT EXECUTED
a000f3f0 <_Objects_API_maximum_class>:
#include <rtems/score/object.h>
unsigned int _Objects_API_maximum_class(
uint32_t api
)
{
a000f3f0: e2400001 sub r0, r0, #1 <== NOT EXECUTED a000f3f4: e3500002 cmp r0, #2 <== NOT EXECUTED a000f3f8: 959f3008 ldrls r3, [pc, #8] ; a000f408 <_Objects_API_maximum_class+0x18><== NOT EXECUTED a000f3fc: 83a00000 movhi r0, #0 <== NOT EXECUTED a000f400: 97930100 ldrls r0, [r3, r0, lsl #2] <== NOT EXECUTED
case OBJECTS_NO_API:
default:
break;
}
return 0;
}
a000f404: e12fff1e bx lr <== NOT EXECUTED
a000a678 <_Objects_Allocate>:
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
a000a678: e92d4070 push {r4, r5, r6, lr}
* If the application is using the optional manager stubs and * still attempts to create the object, the information block * should be all zeroed out because it is in the BSS. So let's * check that code for this manager is even present. */ if ( information->size == 0 )
a000a67c: e5905018 ldr r5, [r0, #24]
*/
Objects_Control *_Objects_Allocate(
Objects_Information *information
)
{
a000a680: e1a04000 mov r4, r0
* If the application is using the optional manager stubs and * still attempts to create the object, the information block * should be all zeroed out because it is in the BSS. So let's * check that code for this manager is even present. */ if ( information->size == 0 )
a000a684: e3550000 cmp r5, #0
a000a688: 0a00001a beq a000a6f8 <_Objects_Allocate+0x80>
/*
* OK. The manager should be initialized and configured to have objects.
* With any luck, it is safe to attempt to allocate an object.
*/
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
a000a68c: e2806020 add r6, r0, #32 a000a690: e1a00006 mov r0, r6 a000a694: ebfffdb2 bl a0009d64 <_Chain_Get>
if ( information->auto_extend ) {
a000a698: e5d43012 ldrb r3, [r4, #18]
/*
* OK. The manager should be initialized and configured to have objects.
* With any luck, it is safe to attempt to allocate an object.
*/
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
a000a69c: e1a05000 mov r5, r0
if ( information->auto_extend ) {
a000a6a0: e3530000 cmp r3, #0
a000a6a4: 0a000013 beq a000a6f8 <_Objects_Allocate+0x80>
/*
* If the list is empty then we are out of objects and need to
* extend information base.
*/
if ( !the_object ) {
a000a6a8: e3500000 cmp r0, #0
a000a6ac: 1a000005 bne a000a6c8 <_Objects_Allocate+0x50>
_Objects_Extend_information( information );
a000a6b0: e1a00004 mov r0, r4 <== NOT EXECUTED a000a6b4: eb000016 bl a000a714 <_Objects_Extend_information> <== NOT EXECUTED
the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
a000a6b8: e1a00006 mov r0, r6 <== NOT EXECUTED a000a6bc: ebfffda8 bl a0009d64 <_Chain_Get> <== NOT EXECUTED
}
if ( the_object ) {
a000a6c0: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000a6c4: 0a00000b beq a000a6f8 <_Objects_Allocate+0x80> <== NOT EXECUTED
uint32_t block;
block = (uint32_t) _Objects_Get_index( the_object->id ) -
a000a6c8: e1d430b8 ldrh r3, [r4, #8] a000a6cc: e1d500b8 ldrh r0, [r5, #8]
_Objects_Get_index( information->minimum_id );
block /= information->allocation_size;
a000a6d0: e1d411b4 ldrh r1, [r4, #20] a000a6d4: e0630000 rsb r0, r3, r0 a000a6d8: eb002826 bl a0014778 <__aeabi_uidiv>
information->inactive_per_block[ block ]--;
a000a6dc: e5943030 ldr r3, [r4, #48] ; 0x30 a000a6e0: e7932100 ldr r2, [r3, r0, lsl #2] a000a6e4: e2422001 sub r2, r2, #1 a000a6e8: e7832100 str r2, [r3, r0, lsl #2]
information->inactive--;
a000a6ec: e1d432bc ldrh r3, [r4, #44] ; 0x2c a000a6f0: e2433001 sub r3, r3, #1 a000a6f4: e1c432bc strh r3, [r4, #44] ; 0x2c
);
}
#endif
return the_object;
}
a000a6f8: e1a00005 mov r0, r5
a000a6fc: e8bd8070 pop {r4, r5, r6, pc}
a000a714 <_Objects_Extend_information>:
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
a000a714: 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 )
a000a718: e5906034 ldr r6, [r0, #52] ; 0x34
/* * 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 );
a000a71c: e1d080b8 ldrh r8, [r0, #8]
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
a000a720: e24dd018 sub sp, sp, #24
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
a000a724: e3560000 cmp r6, #0
*/
void _Objects_Extend_information(
Objects_Information *information
)
{
a000a728: e1a04000 mov r4, 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 );
a000a72c: 01a05008 moveq r5, r8
/*
* 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;
a000a730: 03a0a001 moveq sl, #1
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
block_count = 0;
a000a734: 01a07006 moveq r7, r6
minimum_index = _Objects_Get_index( information->minimum_id );
index_base = minimum_index;
block = 0;
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
a000a738: 0a000013 beq a000a78c <_Objects_Extend_information+0x78>
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
a000a73c: e1d0a1b4 ldrh sl, [r0, #20] <== NOT EXECUTED a000a740: e1d001b0 ldrh r0, [r0, #16] <== 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 );
a000a744: e1a05008 mov r5, r8 <== NOT EXECUTED
/* if ( information->maximum < minimum_index ) */
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
a000a748: e1a0100a mov r1, sl <== NOT EXECUTED a000a74c: eb002809 bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED a000a750: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED a000a754: e1a02006 mov r2, r6 <== NOT EXECUTED a000a758: e1a07820 lsr r7, r0, #16 <== NOT EXECUTED
* extend the block table, then we will change do_extend. */ do_extend = true; minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0;
a000a75c: e3a06000 mov r6, #0 <== NOT EXECUTED
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
a000a760: ea000004 b a000a778 <_Objects_Extend_information+0x64> <== NOT EXECUTED
if ( information->object_blocks[ block ] == NULL ) {
a000a764: e4923004 ldr r3, [r2], #4 <== NOT EXECUTED a000a768: e3530000 cmp r3, #0 <== NOT EXECUTED a000a76c: 0a000005 beq a000a788 <_Objects_Extend_information+0x74> <== NOT EXECUTED a000a770: e085500a add r5, r5, sl <== NOT EXECUTED
if ( information->object_blocks == NULL )
block_count = 0;
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
a000a774: e2866001 add r6, r6, #1 <== NOT EXECUTED a000a778: e1560007 cmp r6, r7 <== NOT EXECUTED a000a77c: 3afffff8 bcc a000a764 <_Objects_Extend_information+0x50> <== 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;
a000a780: e3a0a001 mov sl, #1 <== NOT EXECUTED a000a784: ea000000 b a000a78c <_Objects_Extend_information+0x78> <== NOT EXECUTED
else {
block_count = information->maximum / information->allocation_size;
for ( ; block < block_count; block++ ) {
if ( information->object_blocks[ block ] == NULL ) {
do_extend = false;
a000a788: e1a0a003 mov sl, r3 <== NOT EXECUTED
} else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
a000a78c: e1d431b4 ldrh r3, [r4, #20] a000a790: e1d421b0 ldrh r2, [r4, #16] a000a794: e0832002 add r2, r3, 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 ) {
a000a798: e3520801 cmp r2, #65536 ; 0x10000
} else
index_base += information->allocation_size;
}
}
maximum = (uint32_t) information->maximum + information->allocation_size;
a000a79c: e58d2008 str r2, [sp, #8]
/*
* 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 ) {
a000a7a0: 2a000079 bcs a000a98c <_Objects_Extend_information+0x278>
/*
* 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;
a000a7a4: e5940018 ldr r0, [r4, #24] a000a7a8: e0000093 mul r0, r3, r0
if ( information->auto_extend ) {
a000a7ac: e5d43012 ldrb r3, [r4, #18] a000a7b0: e3530000 cmp r3, #0
a000a7b4: 0a000004 beq a000a7cc <_Objects_Extend_information+0xb8>
new_object_block = _Workspace_Allocate( block_size );
a000a7b8: eb000821 bl a000c844 <_Workspace_Allocate>
if ( !new_object_block )
a000a7bc: e3500000 cmp r0, #0 a000a7c0: e58d0004 str r0, [sp, #4]
a000a7c4: 1a000002 bne a000a7d4 <_Objects_Extend_information+0xc0>
a000a7c8: ea00006f b a000a98c <_Objects_Extend_information+0x278> <== NOT EXECUTED
return;
} else {
new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
a000a7cc: eb000826 bl a000c86c <_Workspace_Allocate_or_fatal_error> a000a7d0: e58d0004 str r0, [sp, #4]
}
/*
* Do we need to grow the tables?
*/
if ( do_extend ) {
a000a7d4: e35a0000 cmp sl, #0
a000a7d8: 0a00004b beq a000a90c <_Objects_Extend_information+0x1f8>
/*
* 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 *));
a000a7dc: e59d1008 ldr r1, [sp, #8]
*/
/*
* Up the block count and maximum
*/
block_count++;
a000a7e0: e287b001 add fp, r7, #1
/*
* Allocate the tables and break it up.
*/
block_size = block_count *
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
a000a7e4: e08b308b add r3, fp, fp, lsl #1
((maximum + minimum_index) * sizeof(Objects_Control *));
a000a7e8: e0810008 add r0, r1, r8
/*
* Allocate the tables and break it up.
*/
block_size = block_count *
(sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
a000a7ec: e0800003 add r0, r0, r3
((maximum + minimum_index) * sizeof(Objects_Control *));
object_blocks = (void**) _Workspace_Allocate( block_size );
a000a7f0: e1a00100 lsl r0, r0, #2 a000a7f4: eb000812 bl a000c844 <_Workspace_Allocate>
if ( !object_blocks ) {
a000a7f8: e2509000 subs r9, r0, #0
a000a7fc: 1a000002 bne a000a80c <_Objects_Extend_information+0xf8>
_Workspace_Free( new_object_block );
a000a800: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED a000a804: eb000814 bl a000c85c <_Workspace_Free> <== NOT EXECUTED
return;
a000a808: ea00005f b a000a98c <_Objects_Extend_information+0x278> <== NOT EXECUTED
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
a000a80c: e1d421b0 ldrh r2, [r4, #16]
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
a000a810: e089310b add r3, r9, fp, lsl #2 a000a814: e089b18b add fp, r9, fp, lsl #3 a000a818: e1520008 cmp r2, r8 a000a81c: 93a02000 movls r2, #0 a000a820: 91a0100b movls r1, fp
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
local_table[ index ] = NULL;
a000a824: 91a00002 movls r0, r2
* Take the block count down. Saves all the (block_count - 1)
* in the copies.
*/
block_count--;
if ( information->maximum > minimum_index ) {
a000a828: 9a000013 bls a000a87c <_Objects_Extend_information+0x168>
/*
* 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,
a000a82c: e1a0a107 lsl sl, r7, #2 <== NOT EXECUTED a000a830: e5941034 ldr r1, [r4, #52] ; 0x34 <== NOT EXECUTED a000a834: e1a0200a mov r2, sl <== NOT EXECUTED a000a838: e58d3000 str r3, [sp] <== NOT EXECUTED a000a83c: eb001c38 bl a0011924 <memcpy> <== NOT EXECUTED
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
a000a840: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a844: e5941030 ldr r1, [r4, #48] ; 0x30 <== NOT EXECUTED a000a848: e1a0200a mov r2, sl <== NOT EXECUTED a000a84c: e1a00003 mov r0, r3 <== NOT EXECUTED a000a850: eb001c33 bl a0011924 <memcpy> <== NOT EXECUTED
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
information->local_table,
(information->maximum + minimum_index) * sizeof(Objects_Control *) );
a000a854: e1d421b0 ldrh r2, [r4, #16] <== NOT EXECUTED
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
a000a858: e1a0000b mov r0, fp <== NOT EXECUTED a000a85c: e594101c ldr r1, [r4, #28] <== NOT EXECUTED
information->local_table,
(information->maximum + minimum_index) * sizeof(Objects_Control *) );
a000a860: e0888002 add r8, r8, r2 <== NOT EXECUTED
information->object_blocks,
block_count * sizeof(void*) );
memcpy( inactive_per_block,
information->inactive_per_block,
block_count * sizeof(uint32_t) );
memcpy( local_table,
a000a864: e1a02108 lsl r2, r8, #2 <== NOT EXECUTED a000a868: eb001c2d bl a0011924 <memcpy> <== NOT EXECUTED a000a86c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a870: ea000003 b a000a884 <_Objects_Extend_information+0x170> <== NOT EXECUTED
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
local_table[ index ] = NULL;
a000a874: e4810004 str r0, [r1], #4
} else {
/*
* Deal with the special case of the 0 to minimum_index
*/
for ( index = 0; index < minimum_index; index++ ) {
a000a878: e2822001 add r2, r2, #1 a000a87c: e1520008 cmp r2, r8
a000a880: 3afffffb bcc a000a874 <_Objects_Extend_information+0x160>
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
a000a884: e1d4c1b4 ldrh ip, [r4, #20]
* information - object information table
*
* Output parameters: NONE
*/
void _Objects_Extend_information(
a000a888: e1a00105 lsl r0, r5, #2
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
a000a88c: e3a02000 mov r2, #0
* information - object information table
*
* Output parameters: NONE
*/
void _Objects_Extend_information(
a000a890: e2400004 sub r0, r0, #4
}
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
a000a894: e7892107 str r2, [r9, r7, lsl #2]
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
a000a898: e085c00c add ip, r5, ip
/*
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
a000a89c: e7832107 str r2, [r3, r7, lsl #2]
for ( index=index_base ;
index < ( information->allocation_size + index_base );
a000a8a0: e080000b add r0, r0, fp
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
a000a8a4: e1a01005 mov r1, r5 a000a8a8: ea000001 b a000a8b4 <_Objects_Extend_information+0x1a0>
index < ( information->allocation_size + index_base );
index++ ) {
local_table[ index ] = NULL;
a000a8ac: e5a02004 str r2, [r0, #4]!
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
index < ( information->allocation_size + index_base );
index++ ) {
a000a8b0: e2811001 add r1, r1, #1
* Initialise the new entries in the table.
*/
object_blocks[block_count] = NULL;
inactive_per_block[block_count] = 0;
for ( index=index_base ;
a000a8b4: e151000c cmp r1, ip
a000a8b8: 3afffffb bcc a000a8ac <_Objects_Extend_information+0x198>
a000a8bc: e10f2000 mrs r2, CPSR a000a8c0: e3821080 orr r1, r2, #128 ; 0x80 a000a8c4: e129f001 msr CPSR_fc, r1
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;
a000a8c8: e59d1008 ldr r1, [sp, #8]
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
a000a8cc: e5843030 str r3, [r4, #48] ; 0x30
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
a000a8d0: e1d4c0b4 ldrh ip, [r4, #4]
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;
a000a8d4: e1a03801 lsl r3, r1, #16
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
a000a8d8: e5941000 ldr r1, [r4] a000a8dc: e1a03823 lsr r3, r3, #16 a000a8e0: e1c431b0 strh r3, [r4, #16] a000a8e4: e1a01c01 lsl r1, r1, #24 a000a8e8: e3811801 orr r1, r1, #65536 ; 0x10000
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
a000a8ec: e1811d8c orr r1, r1, ip, lsl #27
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
a000a8f0: e1813003 orr r3, r1, r3
local_table[ index ] = NULL;
}
_ISR_Disable( level );
old_tables = information->object_blocks;
a000a8f4: e5940034 ldr r0, [r4, #52] ; 0x34
information->object_blocks = object_blocks;
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
a000a8f8: e584b01c str fp, [r4, #28]
_ISR_Disable( level );
old_tables = information->object_blocks;
information->object_blocks = object_blocks;
a000a8fc: e5849034 str r9, [r4, #52] ; 0x34
information->inactive_per_block = inactive_per_block;
information->local_table = local_table;
information->maximum = (Objects_Maximum) maximum;
information->maximum_id = _Objects_Build_id(
a000a900: e584300c str r3, [r4, #12]
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000a904: e129f002 msr CPSR_fc, r2
information->maximum
);
_ISR_Enable( level );
_Workspace_Free( old_tables );
a000a908: eb0007d3 bl a000c85c <_Workspace_Free>
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
a000a90c: e59d2004 ldr r2, [sp, #4] a000a910: e5943034 ldr r3, [r4, #52] ; 0x34 a000a914: e1a07106 lsl r7, r6, #2
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
a000a918: e1a01002 mov r1, r2
}
/*
* Assign the new object block to the object block table.
*/
information->object_blocks[ block ] = new_object_block;
a000a91c: e7832106 str r2, [r3, r6, lsl #2]
/*
* Initialize objects .. add to a local chain first.
*/
_Chain_Initialize(
a000a920: e28d600c add r6, sp, #12 a000a924: e1a00006 mov r0, r6 a000a928: e1d421b4 ldrh r2, [r4, #20] a000a92c: e5943018 ldr r3, [r4, #24] a000a930: eb001143 bl a000ee44 <_Chain_Initialize>
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
a000a934: e2848020 add r8, r4, #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 ) {
a000a938: ea000009 b a000a964 <_Objects_Extend_information+0x250> a000a93c: e5943000 ldr r3, [r4]
the_object->id = _Objects_Build_id(
a000a940: e1d420b4 ldrh r2, [r4, #4]
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
a000a944: e1a00008 mov r0, r8 a000a948: e1a03c03 lsl r3, r3, #24 a000a94c: e3833801 orr r3, r3, #65536 ; 0x10000
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
a000a950: e1833d82 orr r3, r3, r2, lsl #27
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
a000a954: e1833005 orr r3, r3, r5
*/
index = index_base;
while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
the_object->id = _Objects_Build_id(
a000a958: e5813008 str r3, [r1, #8]
information->the_class,
_Objects_Local_node,
index
);
_Chain_Append( &information->Inactive, &the_object->Node );
a000a95c: ebfffced bl a0009d18 <_Chain_Append>
index++;
a000a960: e2855001 add r5, r5, #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 ) {
a000a964: e1a00006 mov r0, r6 a000a968: ebfffcfd bl a0009d64 <_Chain_Get> a000a96c: e2501000 subs r1, r0, #0
a000a970: 1afffff1 bne a000a93c <_Objects_Extend_information+0x228>
_Chain_Append( &information->Inactive, &the_object->Node );
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
a000a974: e1d431b4 ldrh r3, [r4, #20] a000a978: e5942030 ldr r2, [r4, #48] ; 0x30 a000a97c: e7823007 str r3, [r2, r7]
information->inactive =
(Objects_Maximum)(information->inactive + information->allocation_size);
a000a980: e1d422bc ldrh r2, [r4, #44] ; 0x2c a000a984: e0833002 add r3, r3, r2
index++;
}
information->inactive_per_block[ block ] = information->allocation_size;
information->inactive =
a000a988: e1c432bc strh r3, [r4, #44] ; 0x2c
(Objects_Maximum)(information->inactive + information->allocation_size);
}
a000a98c: e28dd018 add sp, sp, #24
a000a990: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
a000a994 <_Objects_Free>:
void _Objects_Free(
Objects_Information *information,
Objects_Control *the_object
)
{
a000a994: e92d4070 push {r4, r5, r6, lr}
a000a998: e1a04000 mov r4, r0
uint32_t allocation_size = information->allocation_size;
a000a99c: e1d051b4 ldrh r5, [r0, #20]
_Chain_Append( &information->Inactive, &the_object->Node );
a000a9a0: e2800020 add r0, r0, #32
void _Objects_Free(
Objects_Information *information,
Objects_Control *the_object
)
{
a000a9a4: e1a06001 mov r6, r1
uint32_t allocation_size = information->allocation_size;
_Chain_Append( &information->Inactive, &the_object->Node );
a000a9a8: ebfffcda bl a0009d18 <_Chain_Append>
if ( information->auto_extend ) {
a000a9ac: e5d43012 ldrb r3, [r4, #18] a000a9b0: e3530000 cmp r3, #0
a000a9b4: 0a000013 beq a000aa08 <_Objects_Free+0x74>
uint32_t block;
block = (uint32_t) (_Objects_Get_index( the_object->id ) -
a000a9b8: e1d430b8 ldrh r3, [r4, #8] <== NOT EXECUTED a000a9bc: e1d600b8 ldrh r0, [r6, #8] <== NOT EXECUTED
_Objects_Get_index( information->minimum_id ));
block /= information->allocation_size;
a000a9c0: e1d411b4 ldrh r1, [r4, #20] <== NOT EXECUTED
/*
* Check if the threshold level has been met of
* 1.5 x allocation_size are free.
*/
if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) {
a000a9c4: e08550a5 add r5, r5, r5, lsr #1 <== NOT EXECUTED
if ( information->auto_extend ) {
uint32_t block;
block = (uint32_t) (_Objects_Get_index( the_object->id ) -
_Objects_Get_index( information->minimum_id ));
block /= information->allocation_size;
a000a9c8: e0630000 rsb r0, r3, r0 <== NOT EXECUTED a000a9cc: eb002769 bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED
information->inactive_per_block[ block ]++;
a000a9d0: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a000a9d4: e7932100 ldr r2, [r3, r0, lsl #2] <== NOT EXECUTED a000a9d8: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a9dc: e7832100 str r2, [r3, r0, lsl #2] <== NOT EXECUTED
information->inactive++;
a000a9e0: e1d432bc ldrh r3, [r4, #44] ; 0x2c <== NOT EXECUTED a000a9e4: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a9e8: e1a03803 lsl r3, r3, #16 <== NOT EXECUTED a000a9ec: e1a03823 lsr r3, r3, #16 <== NOT EXECUTED
/*
* Check if the threshold level has been met of
* 1.5 x allocation_size are free.
*/
if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) {
a000a9f0: e1530005 cmp r3, r5 <== NOT EXECUTED
block = (uint32_t) (_Objects_Get_index( the_object->id ) -
_Objects_Get_index( information->minimum_id ));
block /= information->allocation_size;
information->inactive_per_block[ block ]++;
information->inactive++;
a000a9f4: e1c432bc strh r3, [r4, #44] ; 0x2c <== NOT EXECUTED
/*
* Check if the threshold level has been met of
* 1.5 x allocation_size are free.
*/
if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) {
a000a9f8: 9a000002 bls a000aa08 <_Objects_Free+0x74> <== NOT EXECUTED
_Objects_Shrink_information( information );
a000a9fc: e1a00004 mov r0, r4 <== NOT EXECUTED
}
}
}
a000aa00: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED
* Check if the threshold level has been met of
* 1.5 x allocation_size are free.
*/
if ( information->inactive > ( allocation_size + ( allocation_size >> 1 ) ) ) {
_Objects_Shrink_information( information );
a000aa04: ea0000ba b a000acf4 <_Objects_Shrink_information> <== NOT EXECUTED
a000aa08: e8bd8070 pop {r4, r5, r6, pc}
a000aaf4 <_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;
a000aaf4: e5903008 ldr r3, [r0, #8]
Objects_Control *_Objects_Get(
Objects_Information *information,
Objects_Id id,
Objects_Locations *location
)
{
a000aaf8: e92d4030 push {r4, r5, lr}
a000aafc: e1a04002 mov r4, 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 ) {
a000ab00: e1d021b0 ldrh r2, [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;
a000ab04: e2633001 rsb r3, r3, #1 a000ab08: e0833001 add r3, r3, 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 ) {
a000ab0c: e1530002 cmp r3, r2
/* * 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;
a000ab10: 83a03001 movhi r3, #1 a000ab14: 85843000 strhi r3, [r4]
#if defined(RTEMS_MULTIPROCESSING)
_Objects_MP_Is_remote( information, id, location, &the_object );
return the_object;
#else
return NULL;
a000ab18: 83a05000 movhi r5, #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 ) {
a000ab1c: 8a00000b bhi a000ab50 <_Objects_Get+0x5c>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000ab20: e59f2030 ldr r2, [pc, #48] ; a000ab58 <_Objects_Get+0x64> a000ab24: e5921000 ldr r1, [r2] a000ab28: e2811001 add r1, r1, #1 a000ab2c: e5821000 str r1, [r2]
_Thread_Disable_dispatch();
if ( (the_object = information->local_table[ index ]) != NULL ) {
a000ab30: e590201c ldr r2, [r0, #28] a000ab34: e7925103 ldr r5, [r2, r3, lsl #2] a000ab38: e3550000 cmp r5, #0
*location = OBJECTS_LOCAL;
a000ab3c: 13a03000 movne r3, #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 ) {
_Thread_Disable_dispatch();
if ( (the_object = information->local_table[ index ]) != NULL ) {
a000ab40: 1a000001 bne a000ab4c <_Objects_Get+0x58>
/*
* Valid Id for this API, Class and Node but the object has not
* been allocated yet.
*/
_Thread_Enable_dispatch();
a000ab44: eb000315 bl a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
*location = OBJECTS_ERROR;
a000ab48: e3a03001 mov r3, #1 <== NOT EXECUTED
a000ab4c: e5843000 str r3, [r4]
_Objects_MP_Is_remote( information, id, location, &the_object ); return the_object; #else return NULL; #endif }
a000ab50: e1a00005 mov r0, r5
a000ab54: e8bd8030 pop {r4, r5, pc}
a000aa20 <_Objects_Get_information>:
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint16_t the_class
)
{
a000aa20: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED
a000aa24: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
a000aa28: e1b05821 lsrs r5, r1, #16 <== NOT EXECUTED
Objects_Information *_Objects_Get_information(
Objects_APIs the_api,
uint16_t the_class
)
{
a000aa2c: e1a04000 mov r4, r0 <== NOT EXECUTED
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
a000aa30: 0a000010 beq a000aa78 <_Objects_Get_information+0x58> <== NOT EXECUTED
/*
* 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 );
a000aa34: eb00126d bl a000f3f0 <_Objects_API_maximum_class> <== NOT EXECUTED
if ( the_class_api_maximum == 0 )
a000aa38: e3500000 cmp r0, #0 <== NOT EXECUTED a000aa3c: 0a00000f beq a000aa80 <_Objects_Get_information+0x60> <== NOT EXECUTED
return NULL;
if ( the_class > (uint32_t) the_class_api_maximum )
a000aa40: e1550000 cmp r5, r0 <== NOT EXECUTED
return NULL;
a000aa44: 83a00000 movhi r0, #0 <== NOT EXECUTED
*/
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 )
a000aa48: 8a00000c bhi a000aa80 <_Objects_Get_information+0x60> <== NOT EXECUTED
return NULL;
if ( !_Objects_Information_table[ the_api ] )
a000aa4c: e59f3030 ldr r3, [pc, #48] ; a000aa84 <_Objects_Get_information+0x64><== NOT EXECUTED a000aa50: e7930104 ldr r0, [r3, r4, lsl #2] <== NOT EXECUTED a000aa54: e3500000 cmp r0, #0 <== NOT EXECUTED a000aa58: 0a000008 beq a000aa80 <_Objects_Get_information+0x60> <== NOT EXECUTED
return NULL;
info = _Objects_Information_table[ the_api ][ the_class ];
a000aa5c: e7900105 ldr r0, [r0, r5, lsl #2] <== NOT EXECUTED
if ( !info )
a000aa60: e3500000 cmp r0, #0 <== NOT EXECUTED a000aa64: 0a000005 beq a000aa80 <_Objects_Get_information+0x60> <== NOT EXECUTED
* 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 )
a000aa68: e1d031b0 ldrh r3, [r0, #16] <== NOT EXECUTED
return NULL;
a000aa6c: e3530000 cmp r3, #0 <== NOT EXECUTED
a000aa70: 03a00000 moveq r0, #0 <== NOT EXECUTED
a000aa74: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
{
Objects_Information *info;
int the_class_api_maximum;
if ( !the_class )
return NULL;
a000aa78: e1a00005 mov r0, r5 <== NOT EXECUTED
a000aa7c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
if ( info->maximum == 0 )
return NULL;
#endif
return info;
}
a000aa80: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000aa0c <_Objects_Get_information_id>:
#include <rtems/score/thread.h>
Objects_Information *_Objects_Get_information_id(
Objects_Id id
)
{
a000aa0c: e1a01000 mov r1, r0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
a000aa10: e1a00c20 lsr r0, r0, #24 <== NOT EXECUTED
return _Objects_Get_information(
a000aa14: e2000007 and r0, r0, #7 <== NOT EXECUTED a000aa18: e1a01da1 lsr r1, r1, #27 <== NOT EXECUTED a000aa1c: eaffffff b a000aa20 <_Objects_Get_information> <== NOT EXECUTED
a000aa88 <_Objects_Get_isr_disable>:
{
Objects_Control *the_object;
uint32_t index;
ISR_Level level;
index = id - information->minimum_id + 1;
a000aa88: e590c008 ldr ip, [r0, #8]
Objects_Information *information,
Objects_Id id,
Objects_Locations *location,
ISR_Level *level_p
)
{
a000aa8c: e92d4010 push {r4, lr}
Objects_Control *the_object;
uint32_t index;
ISR_Level level;
index = id - information->minimum_id + 1;
a000aa90: e26cc001 rsb ip, ip, #1 a000aa94: e08c1001 add r1, ip, r1
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000aa98: e10f4000 mrs r4, CPSR a000aa9c: e384c080 orr ip, r4, #128 ; 0x80 a000aaa0: e129f00c msr CPSR_fc, ip
_ISR_Disable( level );
if ( information->maximum >= index ) {
a000aaa4: e1d0c1b0 ldrh ip, [r0, #16] a000aaa8: e15c0001 cmp ip, r1
a000aaac: 3a00000b bcc a000aae0 <_Objects_Get_isr_disable+0x58>
if ( (the_object = information->local_table[ index ]) != NULL ) {
a000aab0: e590001c ldr r0, [r0, #28] a000aab4: e7900101 ldr r0, [r0, r1, lsl #2] a000aab8: e3500000 cmp r0, #0
a000aabc: 0a000003 beq a000aad0 <_Objects_Get_isr_disable+0x48>
*location = OBJECTS_LOCAL;
a000aac0: e3a01000 mov r1, #0 a000aac4: e5821000 str r1, [r2]
*level_p = level;
a000aac8: e5834000 str r4, [r3]
return the_object;
a000aacc: e8bd8010 pop {r4, pc}
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000aad0: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
}
_ISR_Enable( level );
*location = OBJECTS_ERROR;
a000aad4: e3a03001 mov r3, #1 <== NOT EXECUTED a000aad8: e5823000 str r3, [r2] <== NOT EXECUTED
return NULL;
a000aadc: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000aae0: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
} _ISR_Enable( level ); *location = OBJECTS_ERROR;
a000aae4: e3a03001 mov r3, #1 <== NOT EXECUTED a000aae8: 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;
a000aaec: e3a00000 mov r0, #0 <== NOT EXECUTED
#endif }
a000aaf0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000c544 <_Objects_Get_name_as_string>:
char *_Objects_Get_name_as_string(
Objects_Id id,
size_t length,
char *name
)
{
a000c544: e92d40f7 push {r0, r1, r2, r4, r5, r6, r7, lr} <== NOT EXECUTED
char lname[5];
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
a000c548: e2516000 subs r6, r1, #0 <== NOT EXECUTED
char *_Objects_Get_name_as_string(
Objects_Id id,
size_t length,
char *name
)
{
a000c54c: e1a04002 mov r4, r2 <== NOT EXECUTED
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
return NULL;
a000c550: 01a04006 moveq r4, r6 <== NOT EXECUTED
char lname[5];
Objects_Control *the_object;
Objects_Locations location;
Objects_Id tmpId;
if ( length == 0 )
a000c554: 0a000038 beq a000c63c <_Objects_Get_name_as_string+0xf8> <== NOT EXECUTED
return NULL;
if ( name == NULL )
a000c558: e3540000 cmp r4, #0 <== NOT EXECUTED a000c55c: 0a000036 beq a000c63c <_Objects_Get_name_as_string+0xf8> <== NOT EXECUTED
return NULL;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
a000c560: e3500000 cmp r0, #0 <== NOT EXECUTED a000c564: 059f30d8 ldreq r3, [pc, #216] ; a000c644 <_Objects_Get_name_as_string+0x100><== NOT EXECUTED a000c568: 11a07000 movne r7, r0 <== NOT EXECUTED a000c56c: 05933004 ldreq r3, [r3, #4] <== NOT EXECUTED a000c570: 05937008 ldreq r7, [r3, #8] <== NOT EXECUTED
information = _Objects_Get_information_id( tmpId );
a000c574: e1a00007 mov r0, r7 <== NOT EXECUTED a000c578: ebffffb7 bl a000c45c <_Objects_Get_information_id> <== NOT EXECUTED
if ( !information )
a000c57c: e2505000 subs r5, r0, #0 <== NOT EXECUTED
return NULL;
a000c580: 01a04005 moveq r4, r5 <== NOT EXECUTED
return NULL;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
information = _Objects_Get_information_id( tmpId );
if ( !information )
a000c584: 0a00002c beq a000c63c <_Objects_Get_name_as_string+0xf8> <== NOT EXECUTED
return NULL;
the_object = _Objects_Get( information, tmpId, &location );
a000c588: e1a01007 mov r1, r7 <== NOT EXECUTED a000c58c: e28d2008 add r2, sp, #8 <== NOT EXECUTED a000c590: eb00002d bl a000c64c <_Objects_Get> <== NOT EXECUTED
switch ( location ) {
a000c594: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a000c598: e3530000 cmp r3, #0 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE:
/* not supported */
#endif
case OBJECTS_ERROR:
return NULL;
a000c59c: 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 ) {
a000c5a0: 1a000025 bne a000c63c <_Objects_Get_name_as_string+0xf8> <== NOT EXECUTED
return NULL;
case OBJECTS_LOCAL:
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string ) {
a000c5a4: e5d52038 ldrb r2, [r5, #56] ; 0x38 <== NOT EXECUTED a000c5a8: e3520000 cmp r2, #0 <== NOT EXECUTED a000c5ac: 0a000004 beq a000c5c4 <_Objects_Get_name_as_string+0x80> <== NOT EXECUTED
s = the_object->name.name_p;
a000c5b0: e590100c ldr r1, [r0, #12] <== NOT EXECUTED
lname[ 4 ] = '\0';
s = lname;
}
d = name;
if ( s ) {
a000c5b4: e3510000 cmp r1, #0 <== NOT EXECUTED a000c5b8: 01a03004 moveq r3, r4 <== NOT EXECUTED a000c5bc: 1a00000a bne a000c5ec <_Objects_Get_name_as_string+0xa8> <== NOT EXECUTED a000c5c0: ea00001a b a000c630 <_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;
a000c5c4: e590300c ldr r3, [r0, #12] <== 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';
a000c5c8: e5cd2004 strb r2, [sp, #4] <== NOT EXECUTED
} else
#endif
{
uint32_t u32_name = (uint32_t) the_object->name.name_u32;
lname[ 0 ] = (u32_name >> 24) & 0xff;
a000c5cc: e1a01c23 lsr r1, r3, #24 <== NOT EXECUTED a000c5d0: e5cd1000 strb r1, [sp] <== NOT EXECUTED
lname[ 1 ] = (u32_name >> 16) & 0xff;
a000c5d4: e1a01823 lsr r1, r3, #16 <== NOT EXECUTED a000c5d8: e5cd1001 strb r1, [sp, #1] <== NOT EXECUTED
lname[ 2 ] = (u32_name >> 8) & 0xff;
a000c5dc: e1a01423 lsr r1, r3, #8 <== NOT EXECUTED a000c5e0: e5cd1002 strb r1, [sp, #2] <== NOT EXECUTED
lname[ 3 ] = (u32_name >> 0) & 0xff;
a000c5e4: e5cd3003 strb r3, [sp, #3] <== NOT EXECUTED
lname[ 4 ] = '\0';
s = lname;
a000c5e8: e1a0100d mov r1, sp <== NOT EXECUTED
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
*d = (isprint((unsigned char)*s)) ? *s : '*';
a000c5ec: e1a03004 mov r3, r4 <== NOT EXECUTED a000c5f0: e3a02000 mov r2, #0 <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
a000c5f4: e2466001 sub r6, r6, #1 <== NOT EXECUTED
*d = (isprint((unsigned char)*s)) ? *s : '*';
a000c5f8: e59fc048 ldr ip, [pc, #72] ; a000c648 <_Objects_Get_name_as_string+0x104><== NOT EXECUTED a000c5fc: ea000006 b a000c61c <_Objects_Get_name_as_string+0xd8> <== NOT EXECUTED a000c600: e59ce000 ldr lr, [ip] <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
a000c604: e2822001 add r2, r2, #1 <== NOT EXECUTED
*d = (isprint((unsigned char)*s)) ? *s : '*';
a000c608: e08ee000 add lr, lr, r0 <== NOT EXECUTED a000c60c: e5dee001 ldrb lr, [lr, #1] <== NOT EXECUTED a000c610: e31e0097 tst lr, #151 ; 0x97 <== NOT EXECUTED a000c614: 03a0002a moveq r0, #42 ; 0x2a <== NOT EXECUTED a000c618: e4c30001 strb r0, [r3], #1 <== NOT EXECUTED
s = lname;
}
d = name;
if ( s ) {
for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {
a000c61c: e1520006 cmp r2, r6 <== NOT EXECUTED a000c620: 2a000002 bcs a000c630 <_Objects_Get_name_as_string+0xec> <== NOT EXECUTED a000c624: e7d10002 ldrb r0, [r1, r2] <== NOT EXECUTED a000c628: e3500000 cmp r0, #0 <== NOT EXECUTED a000c62c: 1afffff3 bne a000c600 <_Objects_Get_name_as_string+0xbc> <== NOT EXECUTED
*d = (isprint((unsigned char)*s)) ? *s : '*';
}
}
*d = '\0';
a000c630: e3a02000 mov r2, #0 <== NOT EXECUTED a000c634: e5c32000 strb r2, [r3] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c638: eb00030a bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return name;
}
return NULL; /* unreachable path */
}
a000c63c: e1a00004 mov r0, r4 <== NOT EXECUTED
a000c640: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000aca8 <_Objects_Get_next>:
Objects_Information *information,
Objects_Id id,
Objects_Locations *location_p,
Objects_Id *next_id_p
)
{
a000aca8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
Objects_Control *object;
Objects_Id next_id;
if ( !information )
a000acac: e2507000 subs r7, r0, #0 <== NOT EXECUTED
Objects_Information *information,
Objects_Id id,
Objects_Locations *location_p,
Objects_Id *next_id_p
)
{
a000acb0: e1a04002 mov r4, r2 <== NOT EXECUTED a000acb4: e1a06003 mov r6, r3 <== NOT EXECUTED
Objects_Control *object;
Objects_Id next_id;
if ( !information )
a000acb8: 0a00001a beq a000ad28 <_Objects_Get_next+0x80> <== NOT EXECUTED
return NULL;
if ( !location_p )
a000acbc: e3520000 cmp r2, #0 <== NOT EXECUTED a000acc0: 0a00001a beq a000ad30 <_Objects_Get_next+0x88> <== NOT EXECUTED
return NULL;
if ( !next_id_p )
a000acc4: e3530000 cmp r3, #0 <== NOT EXECUTED a000acc8: 0a00001a beq a000ad38 <_Objects_Get_next+0x90> <== NOT EXECUTED
return NULL;
if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX)
a000accc: e1b03801 lsls r3, r1, #16 <== NOT EXECUTED
next_id = information->minimum_id;
a000acd0: 05975008 ldreq r5, [r7, #8] <== NOT EXECUTED
else
next_id = id;
a000acd4: 11a05001 movne r5, r1 <== NOT EXECUTED
do {
/* walked off end of list? */
if (_Objects_Get_index(next_id) > information->maximum)
a000acd8: e1d731b0 ldrh r3, [r7, #16] <== NOT EXECUTED a000acdc: e1a02805 lsl r2, r5, #16 <== NOT EXECUTED a000ace0: e1530822 cmp r3, r2, lsr #16 <== NOT EXECUTED a000ace4: 2a000005 bcs a000ad00 <_Objects_Get_next+0x58> <== NOT EXECUTED
{
*location_p = OBJECTS_ERROR;
a000ace8: e3a03001 mov r3, #1 <== NOT EXECUTED a000acec: e5843000 str r3, [r4] <== NOT EXECUTED
*next_id_p = next_id;
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
a000acf0: e3e03000 mvn r3, #0 <== NOT EXECUTED a000acf4: e5863000 str r3, [r6] <== NOT EXECUTED
return 0;
a000acf8: e3a00000 mov r0, #0 <== NOT EXECUTED
a000acfc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
*location_p = OBJECTS_ERROR;
goto final;
}
/* try to grab one */
object = _Objects_Get(information, next_id, location_p);
a000ad00: e1a01005 mov r1, r5 <== NOT EXECUTED a000ad04: e1a00007 mov r0, r7 <== NOT EXECUTED a000ad08: e1a02004 mov r2, r4 <== NOT EXECUTED a000ad0c: eb00000b bl a000ad40 <_Objects_Get> <== NOT EXECUTED
next_id++;
} while (*location_p != OBJECTS_LOCAL);
a000ad10: e5943000 ldr r3, [r4] <== NOT EXECUTED
}
/* try to grab one */
object = _Objects_Get(information, next_id, location_p);
next_id++;
a000ad14: e2855001 add r5, r5, #1 <== NOT EXECUTED
} while (*location_p != OBJECTS_LOCAL);
a000ad18: e3530000 cmp r3, #0 <== NOT EXECUTED a000ad1c: 1affffed bne a000acd8 <_Objects_Get_next+0x30> <== NOT EXECUTED
*next_id_p = next_id;
a000ad20: e5865000 str r5, [r6] <== NOT EXECUTED
return object;
a000ad24: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
{
Objects_Control *object;
Objects_Id next_id;
if ( !information )
return NULL;
a000ad28: e1a00007 mov r0, r7 <== NOT EXECUTED
a000ad2c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
if ( !location_p )
return NULL;
a000ad30: e1a00002 mov r0, r2 <== NOT EXECUTED
a000ad34: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
if ( !next_id_p )
return NULL;
a000ad38: e1a00003 mov r0, r3 <== NOT EXECUTED
return object;
final:
*next_id_p = OBJECTS_ID_FINAL;
return 0;
}
a000ad3c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a001ad7c <_Objects_Get_no_protection>:
/*
* You can't just extract the index portion or you can get tricked
* by a value between 1 and maximum.
*/
index = id - information->minimum_id + 1;
a001ad7c: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED a001ad80: e2633001 rsb r3, r3, #1 <== NOT EXECUTED a001ad84: e0833001 add r3, r3, r1 <== NOT EXECUTED
if ( information->maximum >= index ) {
a001ad88: e1d011b0 ldrh r1, [r0, #16] <== NOT EXECUTED a001ad8c: e1510003 cmp r1, r3 <== NOT EXECUTED a001ad90: 3a000005 bcc a001adac <_Objects_Get_no_protection+0x30> <== NOT EXECUTED
if ( (the_object = information->local_table[ index ]) != NULL ) {
a001ad94: e590101c ldr r1, [r0, #28] <== NOT EXECUTED a001ad98: e7910103 ldr r0, [r1, r3, lsl #2] <== NOT EXECUTED a001ad9c: e3500000 cmp r0, #0 <== NOT EXECUTED
*location = OBJECTS_LOCAL;
a001ada0: 13a03000 movne r3, #0 <== NOT EXECUTED a001ada4: 15823000 strne r3, [r2] <== NOT EXECUTED
* by a value between 1 and maximum.
*/
index = id - information->minimum_id + 1;
if ( information->maximum >= index ) {
if ( (the_object = information->local_table[ index ]) != NULL ) {
a001ada8: 112fff1e bxne lr <== NOT EXECUTED
/*
* This isn't supported or required yet for Global objects so
* if it isn't local, we don't find it.
*/
*location = OBJECTS_ERROR;
a001adac: e3a03001 mov r3, #1 <== NOT EXECUTED a001adb0: e5823000 str r3, [r2] <== NOT EXECUTED
return NULL;
a001adb4: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a001adb8: e12fff1e bx lr <== NOT EXECUTED
a000c05c <_Objects_Id_to_name>:
*/
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
Objects_Id id,
Objects_Name *name
)
{
a000c05c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a000c060: e1a05001 mov r5, r1 <== NOT EXECUTED
/*
* Caller is trusted for name != NULL.
*/
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
a000c064: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000c068: 059f3078 ldreq r3, [pc, #120] ; a000c0e8 <_Objects_Id_to_name+0x8c><== NOT EXECUTED a000c06c: 05933004 ldreq r3, [r3, #4] <== NOT EXECUTED a000c070: 05931008 ldreq r1, [r3, #8] <== NOT EXECUTED a000c074: e1a03c21 lsr r3, r1, #24 <== NOT EXECUTED a000c078: e2033007 and r3, r3, #7 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
a000c07c: e2432001 sub r2, r3, #1 <== NOT EXECUTED a000c080: e3520002 cmp r2, #2 <== NOT EXECUTED a000c084: 8a000010 bhi a000c0cc <_Objects_Id_to_name+0x70> <== NOT EXECUTED a000c088: ea000011 b a000c0d4 <_Objects_Id_to_name+0x78> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(
Objects_Id id
)
{
return (uint32_t)
a000c08c: e1a02da1 lsr r2, r1, #27 <== NOT EXECUTED
if ( !_Objects_Information_table[ the_api ] )
return OBJECTS_INVALID_ID;
the_class = _Objects_Get_class( tmpId );
information = _Objects_Information_table[ the_api ][ the_class ];
a000c090: e7930102 ldr r0, [r3, r2, lsl #2] <== NOT EXECUTED
if ( !information )
a000c094: e3500000 cmp r0, #0 <== NOT EXECUTED a000c098: 0a00000b beq a000c0cc <_Objects_Id_to_name+0x70> <== NOT EXECUTED
return OBJECTS_INVALID_ID;
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string )
a000c09c: e5d04038 ldrb r4, [r0, #56] ; 0x38 <== NOT EXECUTED a000c0a0: e3540000 cmp r4, #0 <== NOT EXECUTED a000c0a4: 1a000008 bne a000c0cc <_Objects_Id_to_name+0x70> <== NOT EXECUTED
return OBJECTS_INVALID_ID;
#endif
the_object = _Objects_Get( information, tmpId, &ignored_location );
a000c0a8: e1a0200d mov r2, sp <== NOT EXECUTED a000c0ac: ebffffd0 bl a000bff4 <_Objects_Get> <== NOT EXECUTED
if ( !the_object )
a000c0b0: e3500000 cmp r0, #0 <== NOT EXECUTED a000c0b4: 0a000004 beq a000c0cc <_Objects_Id_to_name+0x70> <== NOT EXECUTED
return OBJECTS_INVALID_ID;
*name = the_object->name;
a000c0b8: e590300c ldr r3, [r0, #12] <== NOT EXECUTED a000c0bc: e5853000 str r3, [r5] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c0c0: eb00031b bl a000cd34 <_Thread_Enable_dispatch> <== NOT EXECUTED
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
a000c0c4: e1a00004 mov r0, r4 <== NOT EXECUTED a000c0c8: ea000000 b a000c0d0 <_Objects_Id_to_name+0x74> <== NOT EXECUTED
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;
a000c0cc: e3a00003 mov r0, #3 <== NOT EXECUTED
return OBJECTS_INVALID_ID;
*name = the_object->name;
_Thread_Enable_dispatch();
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
}
a000c0d0: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
the_api = _Objects_Get_API( tmpId );
if ( !_Objects_Is_api_valid( the_api ) )
return OBJECTS_INVALID_ID;
if ( !_Objects_Information_table[ the_api ] )
a000c0d4: e59f2010 ldr r2, [pc, #16] ; a000c0ec <_Objects_Id_to_name+0x90><== NOT EXECUTED a000c0d8: e7923103 ldr r3, [r2, r3, lsl #2] <== NOT EXECUTED a000c0dc: e3530000 cmp r3, #0 <== NOT EXECUTED a000c0e0: 1affffe9 bne a000c08c <_Objects_Id_to_name+0x30> <== NOT EXECUTED a000c0e4: eafffff8 b a000c0cc <_Objects_Id_to_name+0x70> <== NOT EXECUTED
a00167c8 <_Objects_Name_to_id_string>:
Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string(
Objects_Information *information,
const char *name,
Objects_Id *id
)
{
a00167c8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
Objects_Control *the_object;
uint32_t index;
/* ASSERT: information->is_string == true */
if ( !id )
a00167cc: e252a000 subs sl, r2, #0 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors _Objects_Name_to_id_string(
Objects_Information *information,
const char *name,
Objects_Id *id
)
{
a00167d0: e1a06000 mov r6, r0 <== NOT EXECUTED a00167d4: e1a08001 mov r8, r1 <== NOT EXECUTED
Objects_Control *the_object;
uint32_t index;
/* ASSERT: information->is_string == true */
if ( !id )
a00167d8: 0a000019 beq a0016844 <_Objects_Name_to_id_string+0x7c> <== NOT EXECUTED
return OBJECTS_INVALID_ADDRESS;
if ( !name )
a00167dc: e3510000 cmp r1, #0 <== NOT EXECUTED a00167e0: 0a000019 beq a001684c <_Objects_Name_to_id_string+0x84> <== NOT EXECUTED
return OBJECTS_INVALID_NAME;
if ( information->maximum != 0 ) {
a00167e4: e1d071b0 ldrh r7, [r0, #16] <== NOT EXECUTED a00167e8: e3570000 cmp r7, #0 <== NOT EXECUTED a00167ec: 13a04001 movne r4, #1 <== NOT EXECUTED a00167f0: 1a000010 bne a0016838 <_Objects_Name_to_id_string+0x70> <== NOT EXECUTED a00167f4: ea000016 b a0016854 <_Objects_Name_to_id_string+0x8c> <== NOT EXECUTED
for ( index = 1; index <= information->maximum; index++ ) {
the_object = information->local_table[ index ];
a00167f8: e596301c ldr r3, [r6, #28] <== NOT EXECUTED a00167fc: e7935104 ldr r5, [r3, r4, lsl #2] <== NOT EXECUTED
if ( !the_object )
a0016800: e3550000 cmp r5, #0 <== NOT EXECUTED a0016804: 0a00000a beq a0016834 <_Objects_Name_to_id_string+0x6c> <== NOT EXECUTED
continue;
if ( !the_object->name.name_p )
a0016808: e595100c ldr r1, [r5, #12] <== NOT EXECUTED a001680c: e3510000 cmp r1, #0 <== NOT EXECUTED a0016810: 0a000007 beq a0016834 <_Objects_Name_to_id_string+0x6c> <== NOT EXECUTED
continue;
if (!strncmp( name, the_object->name.name_p, information->name_length)) {
a0016814: e1a00008 mov r0, r8 <== NOT EXECUTED a0016818: e1d623ba ldrh r2, [r6, #58] ; 0x3a <== NOT EXECUTED a001681c: eb000f03 bl a001a430 <strncmp> <== NOT EXECUTED a0016820: e3500000 cmp r0, #0 <== NOT EXECUTED a0016824: 1a000002 bne a0016834 <_Objects_Name_to_id_string+0x6c> <== NOT EXECUTED
*id = the_object->id;
a0016828: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a001682c: e58a3000 str r3, [sl] <== NOT EXECUTED
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
a0016830: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
if ( !name )
return OBJECTS_INVALID_NAME;
if ( information->maximum != 0 ) {
for ( index = 1; index <= information->maximum; index++ ) {
a0016834: e2844001 add r4, r4, #1 <== NOT EXECUTED a0016838: e1540007 cmp r4, r7 <== NOT EXECUTED a001683c: 9affffed bls a00167f8 <_Objects_Name_to_id_string+0x30> <== NOT EXECUTED a0016840: ea000001 b a001684c <_Objects_Name_to_id_string+0x84> <== NOT EXECUTED
uint32_t index;
/* ASSERT: information->is_string == true */
if ( !id )
return OBJECTS_INVALID_ADDRESS;
a0016844: e3a00002 mov r0, #2 <== NOT EXECUTED
a0016848: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
if ( !name )
return OBJECTS_INVALID_NAME;
a001684c: e3a00001 mov r0, #1 <== NOT EXECUTED
a0016850: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
}
}
}
return OBJECTS_INVALID_NAME;
a0016854: e3a00001 mov r0, #1 <== NOT EXECUTED
}
a0016858: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a000ac64 <_Objects_Name_to_id_u32>:
Objects_Name name_for_mp;
#endif
/* ASSERT: information->is_string == false */
if ( !id )
a000ac64: e3530000 cmp r3, #0 <== NOT EXECUTED
Objects_Information *information,
uint32_t name,
uint32_t node,
Objects_Id *id
)
{
a000ac68: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
Objects_Name name_for_mp;
#endif
/* ASSERT: information->is_string == false */
if ( !id )
a000ac6c: 0a00001a beq a000acdc <_Objects_Name_to_id_u32+0x78> <== NOT EXECUTED
return OBJECTS_INVALID_ADDRESS;
if ( name == 0 )
a000ac70: e3510000 cmp r1, #0 <== NOT EXECUTED a000ac74: 0a00001a beq a000ace4 <_Objects_Name_to_id_u32+0x80> <== NOT EXECUTED
return OBJECTS_INVALID_NAME;
search_local_node = false;
if ( information->maximum != 0 &&
a000ac78: e1d041b0 ldrh r4, [r0, #16] <== NOT EXECUTED a000ac7c: e3540000 cmp r4, #0 <== NOT EXECUTED a000ac80: 0a000019 beq a000acec <_Objects_Name_to_id_u32+0x88> <== NOT EXECUTED a000ac84: e3720106 cmn r2, #-2147483647 ; 0x80000001 <== NOT EXECUTED a000ac88: 13520000 cmpne r2, #0 <== NOT EXECUTED a000ac8c: 03a02001 moveq r2, #1 <== NOT EXECUTED a000ac90: 0a00000e beq a000acd0 <_Objects_Name_to_id_u32+0x6c> <== NOT EXECUTED
(node == OBJECTS_SEARCH_ALL_NODES ||
node == OBJECTS_SEARCH_LOCAL_NODE ||
a000ac94: e3520001 cmp r2, #1 <== NOT EXECUTED a000ac98: 1a000011 bne a000ace4 <_Objects_Name_to_id_u32+0x80> <== NOT EXECUTED a000ac9c: ea00000b b a000acd0 <_Objects_Name_to_id_u32+0x6c> <== NOT EXECUTED
))
search_local_node = true;
if ( search_local_node ) {
for ( index = 1; index <= information->maximum; index++ ) {
the_object = information->local_table[ index ];
a000aca0: e590c01c ldr ip, [r0, #28] <== NOT EXECUTED a000aca4: e79cc102 ldr ip, [ip, r2, lsl #2] <== NOT EXECUTED
if ( !the_object )
a000aca8: e35c0000 cmp ip, #0 <== NOT EXECUTED a000acac: 0a000006 beq a000accc <_Objects_Name_to_id_u32+0x68> <== NOT EXECUTED
continue;
if ( name == the_object->name.name_u32 ) {
a000acb0: e59c500c ldr r5, [ip, #12] <== NOT EXECUTED a000acb4: e1510005 cmp r1, r5 <== NOT EXECUTED a000acb8: 1a000003 bne a000accc <_Objects_Name_to_id_u32+0x68> <== NOT EXECUTED
*id = the_object->id;
a000acbc: e59c2008 ldr r2, [ip, #8] <== NOT EXECUTED
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
a000acc0: e3a00000 mov r0, #0 <== NOT EXECUTED
the_object = information->local_table[ index ];
if ( !the_object )
continue;
if ( name == the_object->name.name_u32 ) {
*id = the_object->id;
a000acc4: e5832000 str r2, [r3] <== NOT EXECUTED
return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;
a000acc8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
_Objects_Is_local_node( node )
))
search_local_node = true;
if ( search_local_node ) {
for ( index = 1; index <= information->maximum; index++ ) {
a000accc: e2822001 add r2, r2, #1 <== NOT EXECUTED a000acd0: e1520004 cmp r2, r4 <== NOT EXECUTED a000acd4: 9afffff1 bls a000aca0 <_Objects_Name_to_id_u32+0x3c> <== NOT EXECUTED a000acd8: ea000001 b a000ace4 <_Objects_Name_to_id_u32+0x80> <== NOT EXECUTED
#endif
/* ASSERT: information->is_string == false */
if ( !id )
return OBJECTS_INVALID_ADDRESS;
a000acdc: e3a00002 mov r0, #2 <== NOT EXECUTED
a000ace0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
if ( name == 0 )
return OBJECTS_INVALID_NAME;
a000ace4: e3a00001 mov r0, #1 <== NOT EXECUTED
a000ace8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
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;
a000acec: e3a00001 mov r0, #1 <== NOT EXECUTED
#endif }
a000acf0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000ac3c <_Objects_Namespace_remove>:
{
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/*
* If this is a string format name, then free the memory.
*/
if ( information->is_string )
a000ac3c: e5d03038 ldrb r3, [r0, #56] ; 0x38
void _Objects_Namespace_remove(
Objects_Information *information,
Objects_Control *the_object
)
{
a000ac40: e92d4010 push {r4, lr}
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/*
* If this is a string format name, then free the memory.
*/
if ( information->is_string )
a000ac44: e3530000 cmp r3, #0
void _Objects_Namespace_remove(
Objects_Information *information,
Objects_Control *the_object
)
{
a000ac48: e1a04001 mov r4, r1
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/*
* If this is a string format name, then free the memory.
*/
if ( information->is_string )
a000ac4c: 0a000001 beq a000ac58 <_Objects_Namespace_remove+0x1c>
_Workspace_Free( (void *)the_object->name.name_p );
a000ac50: e591000c ldr r0, [r1, #12] <== NOT EXECUTED a000ac54: eb000700 bl a000c85c <_Workspace_Free> <== NOT EXECUTED
/*
* Clear out either format.
*/
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
the_object->name.name_p = NULL;
a000ac58: e3a03000 mov r3, #0
#endif the_object->name.name_u32 = 0;
a000ac5c: e584300c str r3, [r4, #12]
}
a000ac60: e8bd8010 pop {r4, pc}
a000b354 <_Objects_Set_name>:
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
a000b354: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a000b358: e1a05000 mov r5, r0 <== NOT EXECUTED
a000b35c: e1a06001 mov r6, r1 <== NOT EXECUTED
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
a000b360: e1a00002 mov r0, r2 <== NOT EXECUTED a000b364: e1d513ba ldrh r1, [r5, #58] ; 0x3a <== NOT EXECUTED
bool _Objects_Set_name(
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
a000b368: e1a08002 mov r8, r2 <== NOT EXECUTED
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
a000b36c: eb00204b bl a00134a0 <strnlen> <== NOT EXECUTED
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string ) {
a000b370: e5d53038 ldrb r3, [r5, #56] ; 0x38 <== NOT EXECUTED
{
size_t length;
const char *s;
s = name;
length = strnlen( name, information->name_length );
a000b374: e1a04000 mov r4, r0 <== NOT EXECUTED
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
if ( information->is_string ) {
a000b378: e3530000 cmp r3, #0 <== NOT EXECUTED a000b37c: 0a00000e beq a000b3bc <_Objects_Set_name+0x68> <== NOT EXECUTED
char *d;
d = _Workspace_Allocate( length + 1 );
a000b380: e2800001 add r0, r0, #1 <== NOT EXECUTED a000b384: eb0006f5 bl a000cf60 <_Workspace_Allocate> <== NOT EXECUTED
if ( !d )
a000b388: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000b38c: 0a00001d beq a000b408 <_Objects_Set_name+0xb4> <== NOT EXECUTED
return false;
_Workspace_Free( (void *)the_object->name.name_p );
a000b390: e596000c ldr r0, [r6, #12] <== NOT EXECUTED
the_object->name.name_p = NULL;
a000b394: e3a07000 mov r7, #0 <== NOT EXECUTED
d = _Workspace_Allocate( length + 1 );
if ( !d )
return false;
_Workspace_Free( (void *)the_object->name.name_p );
a000b398: eb0006f6 bl a000cf78 <_Workspace_Free> <== NOT EXECUTED
the_object->name.name_p = NULL;
a000b39c: e586700c str r7, [r6, #12] <== NOT EXECUTED
strncpy( d, name, length );
a000b3a0: e1a00005 mov r0, r5 <== NOT EXECUTED a000b3a4: e1a01008 mov r1, r8 <== NOT EXECUTED a000b3a8: e1a02004 mov r2, r4 <== NOT EXECUTED a000b3ac: eb002000 bl a00133b4 <strncpy> <== NOT EXECUTED
d[length] = '\0';
a000b3b0: e7c57004 strb r7, [r5, r4] <== NOT EXECUTED
the_object->name.name_p = d;
a000b3b4: e586500c str r5, [r6, #12] <== NOT EXECUTED a000b3b8: ea000010 b a000b400 <_Objects_Set_name+0xac> <== NOT EXECUTED
} else
#endif
{
the_object->name.name_u32 = _Objects_Build_name(
a000b3bc: e3500001 cmp r0, #1 <== NOT EXECUTED a000b3c0: 85d83001 ldrbhi r3, [r8, #1] <== NOT EXECUTED a000b3c4: e5d82000 ldrb r2, [r8] <== NOT EXECUTED a000b3c8: 93a03602 movls r3, #2097152 ; 0x200000 <== NOT EXECUTED a000b3cc: 81a03803 lslhi r3, r3, #16 <== NOT EXECUTED a000b3d0: e1a02c02 lsl r2, r2, #24 <== NOT EXECUTED a000b3d4: e3500002 cmp r0, #2 <== NOT EXECUTED a000b3d8: e1832002 orr r2, r3, r2 <== NOT EXECUTED a000b3dc: 85d83002 ldrbhi r3, [r8, #2] <== NOT EXECUTED a000b3e0: 93a03a02 movls r3, #8192 ; 0x2000 <== NOT EXECUTED a000b3e4: 81a03403 lslhi r3, r3, #8 <== NOT EXECUTED a000b3e8: e3500003 cmp r0, #3 <== NOT EXECUTED a000b3ec: e1822003 orr r2, r2, r3 <== NOT EXECUTED a000b3f0: 85d83003 ldrbhi r3, [r8, #3] <== NOT EXECUTED a000b3f4: 93a03020 movls r3, #32 <== NOT EXECUTED a000b3f8: e1823003 orr r3, r2, r3 <== NOT EXECUTED a000b3fc: e586300c str r3, [r6, #12] <== NOT EXECUTED
((3 < length) ? s[ 3 ] : ' ')
);
}
return true;
a000b400: e3a00001 mov r0, #1 <== NOT EXECUTED
a000b404: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
if ( information->is_string ) {
char *d;
d = _Workspace_Allocate( length + 1 );
if ( !d )
return false;
a000b408: e1a00005 mov r0, r5 <== NOT EXECUTED
);
}
return true;
}
a000b40c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000acf4 <_Objects_Shrink_information>:
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
a000acf4: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
/*
* Search the list to find block or chunk with all objects inactive.
*/
index_base = _Objects_Get_index( information->minimum_id );
a000acf8: e1d050b8 ldrh r5, [r0, #8] <== NOT EXECUTED
block_count = (information->maximum - index_base) /
a000acfc: e1d061b4 ldrh r6, [r0, #20] <== NOT EXECUTED
*/
void _Objects_Shrink_information(
Objects_Information *information
)
{
a000ad00: e1a04000 mov r4, r0 <== NOT EXECUTED
/*
* 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) /
a000ad04: e1d001b0 ldrh r0, [r0, #16] <== NOT EXECUTED a000ad08: e1a01006 mov r1, r6 <== NOT EXECUTED a000ad0c: e0650000 rsb r0, r5, r0 <== NOT EXECUTED a000ad10: eb002698 bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
a000ad14: e3a03000 mov r3, #0 <== NOT EXECUTED a000ad18: ea000020 b a000ada0 <_Objects_Shrink_information+0xac> <== NOT EXECUTED
if ( information->inactive_per_block[ block ] ==
a000ad1c: e5942030 ldr r2, [r4, #48] ; 0x30 <== NOT EXECUTED
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
a000ad20: e1a07103 lsl r7, r3, #2 <== NOT EXECUTED
if ( information->inactive_per_block[ block ] ==
a000ad24: e7922103 ldr r2, [r2, r3, lsl #2] <== NOT EXECUTED a000ad28: e1520006 cmp r2, r6 <== NOT EXECUTED a000ad2c: 1a000019 bne a000ad98 <_Objects_Shrink_information+0xa4> <== NOT EXECUTED
information->allocation_size ) {
/*
* Assume the Inactive chain is never empty at this point
*/
the_object = (Objects_Control *) _Chain_First( &information->Inactive );
a000ad30: e5940020 ldr r0, [r4, #32] <== NOT EXECUTED a000ad34: ea000000 b a000ad3c <_Objects_Shrink_information+0x48> <== NOT EXECUTED
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;
a000ad38: e1a00006 mov r0, r6 <== NOT EXECUTED
* 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 );
a000ad3c: e1d030b8 ldrh r3, [r0, #8] <== NOT EXECUTED
/*
* Get the next node before the node is extracted
*/
extract_me = the_object;
the_object = (Objects_Control *) the_object->Node.next;
a000ad40: e5906000 ldr r6, [r0] <== NOT EXECUTED
if ((index >= index_base) &&
a000ad44: e1530005 cmp r3, r5 <== NOT EXECUTED a000ad48: 3a000004 bcc a000ad60 <_Objects_Shrink_information+0x6c> <== NOT EXECUTED
(index < (index_base + information->allocation_size))) {
a000ad4c: e1d421b4 ldrh r2, [r4, #20] <== NOT EXECUTED a000ad50: e0852002 add r2, r5, r2 <== NOT EXECUTED
/*
* 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) &&
a000ad54: e1530002 cmp r3, r2 <== NOT EXECUTED a000ad58: 2a000000 bcs a000ad60 <_Objects_Shrink_information+0x6c> <== NOT EXECUTED
(index < (index_base + information->allocation_size))) {
_Chain_Extract( &extract_me->Node );
a000ad5c: ebfffbf8 bl a0009d44 <_Chain_Extract> <== NOT EXECUTED
}
}
while ( the_object );
a000ad60: e3560000 cmp r6, #0 <== NOT EXECUTED a000ad64: 1afffff3 bne a000ad38 <_Objects_Shrink_information+0x44> <== NOT EXECUTED
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
a000ad68: e5943034 ldr r3, [r4, #52] ; 0x34 <== NOT EXECUTED a000ad6c: e7930007 ldr r0, [r3, r7] <== NOT EXECUTED a000ad70: eb0006b9 bl a000c85c <_Workspace_Free> <== NOT EXECUTED
information->object_blocks[ block ] = NULL;
a000ad74: e5943034 ldr r3, [r4, #52] ; 0x34 <== NOT EXECUTED
information->inactive_per_block[ block ] = 0;
information->inactive -= information->allocation_size;
a000ad78: e1d422bc ldrh r2, [r4, #44] ; 0x2c <== NOT EXECUTED
/*
* Free the memory and reset the structures in the object' information
*/
_Workspace_Free( information->object_blocks[ block ] );
information->object_blocks[ block ] = NULL;
a000ad7c: e7836007 str r6, [r3, r7] <== NOT EXECUTED
information->inactive_per_block[ block ] = 0;
a000ad80: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a000ad84: e7836007 str r6, [r3, r7] <== NOT EXECUTED
information->inactive -= information->allocation_size;
a000ad88: e1d431b4 ldrh r3, [r4, #20] <== NOT EXECUTED a000ad8c: e0633002 rsb r3, r3, r2 <== NOT EXECUTED a000ad90: e1c432bc strh r3, [r4, #44] ; 0x2c <== NOT EXECUTED
return;
a000ad94: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
}
index_base += information->allocation_size;
a000ad98: e0855006 add r5, r5, r6 <== NOT EXECUTED
index_base = _Objects_Get_index( information->minimum_id );
block_count = (information->maximum - index_base) /
information->allocation_size;
for ( block = 0; block < block_count; block++ ) {
a000ad9c: e2833001 add r3, r3, #1 <== NOT EXECUTED
a000ada0: e1530000 cmp r3, r0 <== NOT EXECUTED
a000ada4: 3affffdc bcc a000ad1c <_Objects_Shrink_information+0x28> <== NOT EXECUTED
a000ada8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000ba48 <_POSIX_Absolute_timeout_to_ticks>:
*/
POSIX_Absolute_timeout_conversion_results_t _POSIX_Absolute_timeout_to_ticks(
const struct timespec *abstime,
Watchdog_Interval *ticks_out
)
{
a000ba48: e92d40ff push {r0, r1, r2, r3, r4, r5, r6, r7, lr} <== NOT EXECUTED
/*
* Make sure there is always a value returned.
*/
*ticks_out = 0;
a000ba4c: e3a03000 mov r3, #0 <== NOT EXECUTED a000ba50: e5813000 str r3, [r1] <== NOT EXECUTED
*/
POSIX_Absolute_timeout_conversion_results_t _POSIX_Absolute_timeout_to_ticks(
const struct timespec *abstime,
Watchdog_Interval *ticks_out
)
{
a000ba54: e1a07000 mov r7, r0 <== NOT EXECUTED a000ba58: e1a04001 mov r4, r1 <== NOT EXECUTED
*ticks_out = 0;
/*
* Is the absolute time even valid?
*/
if ( !_Timespec_Is_valid(abstime) )
a000ba5c: eb000f32 bl a000f72c <_Timespec_Is_valid> <== NOT EXECUTED a000ba60: e3500000 cmp r0, #0 <== NOT EXECUTED a000ba64: 0a000013 beq a000bab8 <_POSIX_Absolute_timeout_to_ticks+0x70><== NOT EXECUTED
return POSIX_ABSOLUTE_TIMEOUT_INVALID;
/*
* Is the absolute time in the past?
*/
_TOD_Get( ¤t_time );
a000ba68: e28d6008 add r6, sp, #8 <== NOT EXECUTED a000ba6c: e1a00006 mov r0, r6 <== NOT EXECUTED a000ba70: eb0006db bl a000d5e4 <_TOD_Get> <== NOT EXECUTED
if ( _Timespec_Less_than( abstime, ¤t_time ) )
a000ba74: e1a00007 mov r0, r7 <== NOT EXECUTED a000ba78: e1a01006 mov r1, r6 <== NOT EXECUTED a000ba7c: eb000f3b bl a000f770 <_Timespec_Less_than> <== NOT EXECUTED a000ba80: e3500000 cmp r0, #0 <== NOT EXECUTED
return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST;
a000ba84: 13a00001 movne r0, #1 <== NOT EXECUTED
/*
* Is the absolute time in the past?
*/
_TOD_Get( ¤t_time );
if ( _Timespec_Less_than( abstime, ¤t_time ) )
a000ba88: 1a00000a bne a000bab8 <_POSIX_Absolute_timeout_to_ticks+0x70><== NOT EXECUTED
return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST;
/*
* How long until the requested absolute time?
*/
_Timespec_Subtract( ¤t_time, abstime, &difference );
a000ba8c: e1a00006 mov r0, r6 <== NOT EXECUTED a000ba90: e1a01007 mov r1, r7 <== NOT EXECUTED a000ba94: e1a0200d mov r2, sp <== NOT EXECUTED a000ba98: eb000f42 bl a000f7a8 <_Timespec_Subtract> <== NOT EXECUTED
/*
* Internally the SuperCore uses ticks, so convert to them.
*/
*ticks_out = _Timespec_To_ticks( &difference );
a000ba9c: e1a0000d mov r0, sp <== NOT EXECUTED a000baa0: eb000f52 bl a000f7f0 <_Timespec_To_ticks> <== NOT EXECUTED
/*
* If the difference was 0, then the future is now. It is so bright
* we better wear shades.
*/
if ( !*ticks_out )
return POSIX_ABSOLUTE_TIMEOUT_IS_NOW;
a000baa4: e3500000 cmp r0, #0 <== NOT EXECUTED
_Timespec_Subtract( ¤t_time, abstime, &difference );
/*
* Internally the SuperCore uses ticks, so convert to them.
*/
*ticks_out = _Timespec_To_ticks( &difference );
a000baa8: e5840000 str r0, [r4] <== NOT EXECUTED
return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST;
/*
* How long until the requested absolute time?
*/
_Timespec_Subtract( ¤t_time, abstime, &difference );
a000baac: e1a0500d mov r5, sp <== NOT EXECUTED
/*
* If the difference was 0, then the future is now. It is so bright
* we better wear shades.
*/
if ( !*ticks_out )
return POSIX_ABSOLUTE_TIMEOUT_IS_NOW;
a000bab0: 13a00003 movne r0, #3 <== NOT EXECUTED a000bab4: 03a00002 moveq r0, #2 <== NOT EXECUTED
/* * This is the case we were expecting and it took this long to * get here. */ return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE; }
a000bab8: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a000babc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000f680 <_POSIX_Barrier_Translate_core_barrier_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_barrier_status > CORE_BARRIER_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Barrier_Return_codes[the_barrier_status];
}
a000f680: e59f3004 ldr r3, [pc, #4] ; a000f68c <_POSIX_Barrier_Translate_core_barrier_return_code+0xc><== NOT EXECUTED a000f684: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000f688: e12fff1e bx lr <== NOT EXECUTED
a000a224 <_POSIX_Condition_variables_Get>:
POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get (
pthread_cond_t *cond,
Objects_Locations *location
)
{
a000a224: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
int status;
if ( !cond ) {
a000a228: e2505000 subs r5, r0, #0 <== NOT EXECUTED
POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get (
pthread_cond_t *cond,
Objects_Locations *location
)
{
a000a22c: e1a04001 mov r4, r1 <== NOT EXECUTED
int status;
if ( !cond ) {
a000a230: 1a000003 bne a000a244 <_POSIX_Condition_variables_Get+0x20><== NOT EXECUTED
*location = OBJECTS_ERROR;
a000a234: e3a03001 mov r3, #1 <== NOT EXECUTED a000a238: e5813000 str r3, [r1] <== NOT EXECUTED
return (POSIX_Condition_variables_Control *) 0;
a000a23c: e1a00005 mov r0, r5 <== NOT EXECUTED
a000a240: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
}
if ( *cond == PTHREAD_COND_INITIALIZER ) {
a000a244: e5953000 ldr r3, [r5] <== NOT EXECUTED a000a248: e3730001 cmn r3, #1 <== NOT EXECUTED a000a24c: 1a000007 bne a000a270 <_POSIX_Condition_variables_Get+0x4c><== NOT EXECUTED
/*
* Do an "auto-create" here.
*/
status = pthread_cond_init( cond, 0 );
a000a250: e3a01000 mov r1, #0 <== NOT EXECUTED a000a254: eb00000b bl a000a288 <pthread_cond_init> <== NOT EXECUTED
if ( status ) {
a000a258: e3500000 cmp r0, #0 <== NOT EXECUTED a000a25c: 0a000003 beq a000a270 <_POSIX_Condition_variables_Get+0x4c><== NOT EXECUTED
*location = OBJECTS_ERROR;
a000a260: e3a03001 mov r3, #1 <== NOT EXECUTED a000a264: e5843000 str r3, [r4] <== NOT EXECUTED
return (POSIX_Condition_variables_Control *) 0;
a000a268: e3a00000 mov r0, #0 <== NOT EXECUTED
a000a26c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
}
/*
* Now call Objects_Get()
*/
return (POSIX_Condition_variables_Control *)_Objects_Get(
a000a270: e59f000c ldr r0, [pc, #12] ; a000a284 <_POSIX_Condition_variables_Get+0x60><== NOT EXECUTED a000a274: e5951000 ldr r1, [r5] <== NOT EXECUTED a000a278: e1a02004 mov r2, r4 <== NOT EXECUTED
&_POSIX_Condition_variables_Information,
(Objects_Id) *cond,
location
);
}
a000a27c: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
}
/*
* Now call Objects_Get()
*/
return (POSIX_Condition_variables_Control *)_Objects_Get(
a000a280: ea000a60 b a000cc08 <_Objects_Get> <== NOT EXECUTED
a000a354 <_POSIX_Condition_variables_Signal_support>:
int _POSIX_Condition_variables_Signal_support(
pthread_cond_t *cond,
bool is_broadcast
)
{
a000a354: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
a000a358: e20140ff and r4, r1, #255 ; 0xff <== NOT EXECUTED
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
Thread_Control *the_thread;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
a000a35c: e1a0100d mov r1, sp <== NOT EXECUTED a000a360: ebffffaf bl a000a224 <_POSIX_Condition_variables_Get> <== NOT EXECUTED
switch ( location ) {
a000a364: e59d3000 ldr r3, [sp] <== NOT EXECUTED
{
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
Thread_Control *the_thread;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
a000a368: e1a05000 mov r5, r0 <== NOT EXECUTED
switch ( location ) {
a000a36c: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000a370: 13a00016 movne r0, #22 <== NOT EXECUTED
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
Thread_Control *the_thread;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
switch ( location ) {
a000a374: 1a00000a bne a000a3a4 <_POSIX_Condition_variables_Signal_support+0x50><== NOT EXECUTED
case OBJECTS_LOCAL:
do {
the_thread = _Thread_queue_Dequeue( &the_cond->Wait_queue );
a000a378: e2856018 add r6, r5, #24 <== NOT EXECUTED a000a37c: e1a00006 mov r0, r6 <== NOT EXECUTED a000a380: eb000df2 bl a000db50 <_Thread_queue_Dequeue> <== NOT EXECUTED
if ( !the_thread )
a000a384: e3500000 cmp r0, #0 <== NOT EXECUTED
the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;
a000a388: 05850014 streq r0, [r5, #20] <== NOT EXECUTED
} while ( is_broadcast && the_thread );
a000a38c: e3540000 cmp r4, #0 <== NOT EXECUTED a000a390: 0a000001 beq a000a39c <_POSIX_Condition_variables_Signal_support+0x48><== NOT EXECUTED a000a394: e3500000 cmp r0, #0 <== NOT EXECUTED a000a398: 1afffff7 bne a000a37c <_POSIX_Condition_variables_Signal_support+0x28><== NOT EXECUTED
_Thread_Enable_dispatch();
a000a39c: eb000d20 bl a000d824 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000a3a0: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
a000a3a4: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a000a3fc <_POSIX_Condition_variables_Wait_support>:
pthread_cond_t *cond,
pthread_mutex_t *mutex,
Watchdog_Interval timeout,
bool already_timedout
)
{
a000a3fc: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
a000a400: e1a05000 mov r5, r0 <== NOT EXECUTED
a000a404: e1a04001 mov r4, r1 <== NOT EXECUTED
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
int status;
int mutex_status;
if ( !_POSIX_Mutex_Get( mutex, &location ) ) {
a000a408: e1a00001 mov r0, r1 <== NOT EXECUTED a000a40c: e1a0100d mov r1, sp <== NOT EXECUTED
pthread_cond_t *cond,
pthread_mutex_t *mutex,
Watchdog_Interval timeout,
bool already_timedout
)
{
a000a410: e1a07002 mov r7, r2 <== NOT EXECUTED a000a414: e20380ff and r8, r3, #255 ; 0xff <== NOT EXECUTED
register POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
int status;
int mutex_status;
if ( !_POSIX_Mutex_Get( mutex, &location ) ) {
a000a418: eb000056 bl a000a578 <_POSIX_Mutex_Get> <== NOT EXECUTED a000a41c: e3500000 cmp r0, #0 <== NOT EXECUTED a000a420: e1a0600d mov r6, sp <== NOT EXECUTED a000a424: 0a000031 beq a000a4f0 <_POSIX_Condition_variables_Wait_support+0xf4><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
a000a428: e59f30cc ldr r3, [pc, #204] ; a000a4fc <_POSIX_Condition_variables_Wait_support+0x100><== NOT EXECUTED
return EINVAL;
}
_Thread_Unnest_dispatch();
the_cond = _POSIX_Condition_variables_Get( cond, &location );
a000a42c: e1a00005 mov r0, r5 <== NOT EXECUTED a000a430: e1a0100d mov r1, sp <== NOT EXECUTED a000a434: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a438: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000a43c: e5832000 str r2, [r3] <== NOT EXECUTED a000a440: ebffff77 bl a000a224 <_POSIX_Condition_variables_Get> <== NOT EXECUTED
switch ( location ) {
a000a444: e59d3000 ldr r3, [sp] <== NOT EXECUTED
return EINVAL;
}
_Thread_Unnest_dispatch();
the_cond = _POSIX_Condition_variables_Get( cond, &location );
a000a448: e1a0a000 mov sl, r0 <== NOT EXECUTED
switch ( location ) {
a000a44c: e3530000 cmp r3, #0 <== NOT EXECUTED a000a450: 1a000026 bne a000a4f0 <_POSIX_Condition_variables_Wait_support+0xf4><== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) {
a000a454: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a000a458: e3530000 cmp r3, #0 <== NOT EXECUTED a000a45c: 0a000004 beq a000a474 <_POSIX_Condition_variables_Wait_support+0x78><== NOT EXECUTED a000a460: e5942000 ldr r2, [r4] <== NOT EXECUTED a000a464: e1530002 cmp r3, r2 <== NOT EXECUTED a000a468: 0a000001 beq a000a474 <_POSIX_Condition_variables_Wait_support+0x78><== NOT EXECUTED
_Thread_Enable_dispatch();
a000a46c: eb000cec bl a000d824 <_Thread_Enable_dispatch> <== NOT EXECUTED a000a470: ea00001e b a000a4f0 <_POSIX_Condition_variables_Wait_support+0xf4><== NOT EXECUTED
return EINVAL;
}
(void) pthread_mutex_unlock( mutex );
a000a474: e1a00004 mov r0, r4 <== NOT EXECUTED a000a478: eb0000e4 bl a000a810 <pthread_mutex_unlock> <== NOT EXECUTED
_Thread_Enable_dispatch();
return EINVAL;
}
*/
if ( !already_timedout ) {
a000a47c: e3580000 cmp r8, #0 <== NOT EXECUTED a000a480: 1a000013 bne a000a4d4 <_POSIX_Condition_variables_Wait_support+0xd8><== NOT EXECUTED
the_cond->Mutex = *mutex;
a000a484: e5943000 ldr r3, [r4] <== NOT EXECUTED
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
a000a488: e59f6070 ldr r6, [pc, #112] ; a000a500 <_POSIX_Condition_variables_Wait_support+0x104><== NOT EXECUTED
_Thread_Executing->Wait.queue = &the_cond->Wait_queue;
a000a48c: e28a0018 add r0, sl, #24 <== NOT EXECUTED
return EINVAL;
}
*/
if ( !already_timedout ) {
the_cond->Mutex = *mutex;
a000a490: e58a3014 str r3, [sl, #20] <== 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;
a000a494: e3a03001 mov r3, #1 <== NOT EXECUTED a000a498: e58a3048 str r3, [sl, #72] ; 0x48 <== NOT EXECUTED
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
a000a49c: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED
_Thread_Executing->Wait.queue = &the_cond->Wait_queue;
_Thread_Executing->Wait.id = *cond;
_Thread_queue_Enqueue( &the_cond->Wait_queue, timeout );
a000a4a0: e1a01007 mov r1, r7 <== NOT EXECUTED
if ( !already_timedout ) {
the_cond->Mutex = *mutex;
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
a000a4a4: e5838034 str r8, [r3, #52] ; 0x34 <== NOT EXECUTED
_Thread_Executing->Wait.queue = &the_cond->Wait_queue;
_Thread_Executing->Wait.id = *cond;
a000a4a8: e5952000 ldr r2, [r5] <== NOT EXECUTED
if ( !already_timedout ) {
the_cond->Mutex = *mutex;
_Thread_queue_Enter_critical_section( &the_cond->Wait_queue );
_Thread_Executing->Wait.return_code = 0;
_Thread_Executing->Wait.queue = &the_cond->Wait_queue;
a000a4ac: e5830044 str r0, [r3, #68] ; 0x44 <== NOT EXECUTED
_Thread_Executing->Wait.id = *cond;
a000a4b0: e5832020 str r2, [r3, #32] <== NOT EXECUTED
_Thread_queue_Enqueue( &the_cond->Wait_queue, timeout );
a000a4b4: e59f2048 ldr r2, [pc, #72] ; a000a504 <_POSIX_Condition_variables_Wait_support+0x108><== NOT EXECUTED a000a4b8: eb000dfe bl a000dcb8 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a4bc: eb000cd8 bl a000d824 <_Thread_Enable_dispatch> <== NOT EXECUTED
* a POSIX signal, then pthread_cond_wait returns spuriously,
* according to the POSIX standard. It means that pthread_cond_wait
* returns a success status, except for the fact that it was not
* woken up a pthread_cond_signal or a pthread_cond_broadcast.
*/
status = _Thread_Executing->Wait.return_code;
a000a4c0: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED a000a4c4: e5935034 ldr r5, [r3, #52] ; 0x34 <== NOT EXECUTED
if ( status == EINTR )
status = 0;
a000a4c8: e3550004 cmp r5, #4 <== NOT EXECUTED a000a4cc: 03a05000 moveq r5, #0 <== NOT EXECUTED a000a4d0: ea000001 b a000a4dc <_POSIX_Condition_variables_Wait_support+0xe0><== NOT EXECUTED
} else {
_Thread_Enable_dispatch();
a000a4d4: eb000cd2 bl a000d824 <_Thread_Enable_dispatch> <== NOT EXECUTED
status = ETIMEDOUT;
a000a4d8: e3a05074 mov r5, #116 ; 0x74 <== NOT EXECUTED
/*
* When we get here the dispatch disable level is 0.
*/
mutex_status = pthread_mutex_lock( mutex );
a000a4dc: e1a00004 mov r0, r4 <== NOT EXECUTED a000a4e0: eb0000ab bl a000a794 <pthread_mutex_lock> <== NOT EXECUTED
if ( mutex_status )
return EINVAL;
a000a4e4: e3500000 cmp r0, #0 <== NOT EXECUTED a000a4e8: 13a05016 movne r5, #22 <== NOT EXECUTED a000a4ec: ea000000 b a000a4f4 <_POSIX_Condition_variables_Wait_support+0xf8><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000a4f0: e3a05016 mov r5, #22 <== NOT EXECUTED
}
a000a4f4: e1a00005 mov r0, r5 <== NOT EXECUTED
a000a4f8: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a0009574 <_POSIX_Keys_Free_memory>:
#include <rtems/posix/key.h>
void _POSIX_Keys_Free_memory(
POSIX_Keys_Control *the_key
)
{
a0009574: e92d4010 push {r4, lr} <== NOT EXECUTED
a0009578: e1a04000 mov r4, r0 <== NOT EXECUTED
uint32_t the_api;
for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ )
_Workspace_Free( the_key->Values[ the_api ] );
a000957c: e5900018 ldr r0, [r0, #24] <== NOT EXECUTED a0009580: eb001093 bl a000d7d4 <_Workspace_Free> <== NOT EXECUTED a0009584: e594001c ldr r0, [r4, #28] <== NOT EXECUTED a0009588: eb001091 bl a000d7d4 <_Workspace_Free> <== NOT EXECUTED a000958c: e5940020 ldr r0, [r4, #32] <== NOT EXECUTED
}
a0009590: e8bd4010 pop {r4, lr} <== NOT EXECUTED
)
{
uint32_t the_api;
for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ )
_Workspace_Free( the_key->Values[ the_api ] );
a0009594: ea00108e b a000d7d4 <_Workspace_Free> <== NOT EXECUTED
a0010860 <_POSIX_Keys_Run_destructors>:
*/
void _POSIX_Keys_Run_destructors(
Thread_Control *thread
)
{
a0010860: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
Objects_Maximum thread_index = _Objects_Get_index( thread->Object.id );
a0010864: e5907008 ldr r7, [r0, #8] <== NOT EXECUTED
*
* Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.
*/
while ( !done ) {
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
a0010868: e59f607c ldr r6, [pc, #124] ; a00108ec <_POSIX_Keys_Run_destructors+0x8c><== NOT EXECUTED
if ( key != NULL && key->destructor != NULL ) {
void *value = key->Values [ thread_api ][ thread_index ];
if ( value != NULL ) {
key->Values [ thread_api ][ thread_index ] = NULL;
a001086c: e3a05000 mov r5, #0 <== NOT EXECUTED a0010870: e1a08c27 lsr r8, r7, #24 <== NOT EXECUTED
for ( index = 1 ; index <= max ; ++index ) {
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
_POSIX_Keys_Information.local_table [ index ];
if ( key != NULL && key->destructor != NULL ) {
void *value = key->Values [ thread_api ][ thread_index ];
a0010874: e1a07807 lsl r7, r7, #16 <== NOT EXECUTED a0010878: e2088007 and r8, r8, #7 <== NOT EXECUTED a001087c: e1a07727 lsr r7, r7, #14 <== NOT EXECUTED
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
done = true;
for ( index = 1 ; index <= max ; ++index ) {
a0010880: e3a04001 mov r4, #1 <== NOT EXECUTED
*
* Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.
*/
while ( !done ) {
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
a0010884: e1d6a1b0 ldrh sl, [r6, #16] <== NOT EXECUTED
done = true;
a0010888: e1a01004 mov r1, r4 <== NOT EXECUTED
for ( index = 1 ; index <= max ; ++index ) {
a001088c: ea000011 b a00108d8 <_POSIX_Keys_Run_destructors+0x78> <== NOT EXECUTED
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
_POSIX_Keys_Information.local_table [ index ];
a0010890: e596301c ldr r3, [r6, #28] <== NOT EXECUTED
Objects_Maximum max = _POSIX_Keys_Information.maximum;
done = true;
for ( index = 1 ; index <= max ; ++index ) {
POSIX_Keys_Control *key = (POSIX_Keys_Control *)
a0010894: e7932104 ldr r2, [r3, r4, lsl #2] <== NOT EXECUTED
_POSIX_Keys_Information.local_table [ index ];
if ( key != NULL && key->destructor != NULL ) {
a0010898: e3520000 cmp r2, #0 <== NOT EXECUTED a001089c: 0a00000a beq a00108cc <_POSIX_Keys_Run_destructors+0x6c> <== NOT EXECUTED a00108a0: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED a00108a4: e3530000 cmp r3, #0 <== NOT EXECUTED a00108a8: 0a000007 beq a00108cc <_POSIX_Keys_Run_destructors+0x6c> <== NOT EXECUTED
void *value = key->Values [ thread_api ][ thread_index ];
a00108ac: e2880005 add r0, r8, #5 <== NOT EXECUTED a00108b0: e7922100 ldr r2, [r2, r0, lsl #2] <== NOT EXECUTED a00108b4: e7920007 ldr r0, [r2, r7] <== NOT EXECUTED
if ( value != NULL ) {
a00108b8: e3500000 cmp r0, #0 <== NOT EXECUTED a00108bc: 0a000002 beq a00108cc <_POSIX_Keys_Run_destructors+0x6c> <== NOT EXECUTED
key->Values [ thread_api ][ thread_index ] = NULL;
a00108c0: e7825007 str r5, [r2, r7] <== NOT EXECUTED
(*key->destructor)( value );
a00108c4: e12fff33 blx r3 <== NOT EXECUTED
done = false;
a00108c8: e1a01005 mov r1, r5 <== NOT EXECUTED
Objects_Maximum index = 0;
Objects_Maximum max = _POSIX_Keys_Information.maximum;
done = true;
for ( index = 1 ; index <= max ; ++index ) {
a00108cc: e2844001 add r4, r4, #1 <== NOT EXECUTED a00108d0: e1a04804 lsl r4, r4, #16 <== NOT EXECUTED a00108d4: e1a04824 lsr r4, r4, #16 <== NOT EXECUTED a00108d8: e154000a cmp r4, sl <== NOT EXECUTED a00108dc: 9affffeb bls a0010890 <_POSIX_Keys_Run_destructors+0x30> <== NOT EXECUTED
* number of iterations. An infinite loop may happen if destructors set
* thread specific data. This can be considered dubious.
*
* Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.
*/
while ( !done ) {
a00108e0: e3510000 cmp r1, #0 <== NOT EXECUTED a00108e4: 0affffe5 beq a0010880 <_POSIX_Keys_Run_destructors+0x20> <== NOT EXECUTED
done = false;
}
}
}
}
}
a00108e8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a0015060 <_POSIX_Message_queue_Create_support>:
const char *name_arg,
int pshared,
struct mq_attr *attr_ptr,
POSIX_Message_queue_Control **message_queue
)
{
a0015060: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
a0015064: e1a06001 mov r6, r1 <== NOT EXECUTED
CORE_message_queue_Attributes *the_mq_attr;
struct mq_attr attr;
char *name;
size_t n;
n = strnlen( name_arg, NAME_MAX );
a0015068: e3a010ff mov r1, #255 ; 0xff <== NOT EXECUTED
const char *name_arg,
int pshared,
struct mq_attr *attr_ptr,
POSIX_Message_queue_Control **message_queue
)
{
a001506c: e1a04002 mov r4, r2 <== NOT EXECUTED a0015070: e1a0b003 mov fp, r3 <== NOT EXECUTED a0015074: e1a09000 mov r9, r0 <== NOT EXECUTED
CORE_message_queue_Attributes *the_mq_attr;
struct mq_attr attr;
char *name;
size_t n;
n = strnlen( name_arg, NAME_MAX );
a0015078: eb001588 bl a001a6a0 <strnlen> <== NOT EXECUTED a001507c: e59f3128 ldr r3, [pc, #296] ; a00151ac <_POSIX_Message_queue_Create_support+0x14c><== NOT EXECUTED a0015080: e1a07000 mov r7, r0 <== NOT EXECUTED a0015084: e5932000 ldr r2, [r3] <== NOT EXECUTED a0015088: e2822001 add r2, r2, #1 <== NOT EXECUTED a001508c: e5832000 str r2, [r3] <== NOT EXECUTED
* There is no real basis for the default values. They will work
* but were not compared against any existing implementation for
* compatibility. See README.mqueue for an example program we
* think will print out the defaults. Report anything you find with it.
*/
if ( attr_ptr == NULL ) {
a0015090: e3540000 cmp r4, #0 <== NOT EXECUTED a0015094: 0a000009 beq a00150c0 <_POSIX_Message_queue_Create_support+0x60><== NOT EXECUTED
attr.mq_maxmsg = 10;
attr.mq_msgsize = 16;
} else {
if ( attr_ptr->mq_maxmsg <= 0 ){
a0015098: e594a004 ldr sl, [r4, #4] <== NOT EXECUTED a001509c: e35a0000 cmp sl, #0 <== NOT EXECUTED a00150a0: da000002 ble a00150b0 <_POSIX_Message_queue_Create_support+0x50><== NOT EXECUTED
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( attr_ptr->mq_msgsize <= 0 ){
a00150a4: e5948008 ldr r8, [r4, #8] <== NOT EXECUTED a00150a8: e3580000 cmp r8, #0 <== NOT EXECUTED a00150ac: ca000005 bgt a00150c8 <_POSIX_Message_queue_Create_support+0x68><== NOT EXECUTED
_Thread_Enable_dispatch();
a00150b0: ebfff506 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a00150b4: eb000d64 bl a001864c <__errno> <== NOT EXECUTED a00150b8: e3a03016 mov r3, #22 <== NOT EXECUTED a00150bc: ea00002f b a0015180 <_POSIX_Message_queue_Create_support+0x120><== NOT EXECUTED
* compatibility. See README.mqueue for an example program we
* think will print out the defaults. Report anything you find with it.
*/
if ( attr_ptr == NULL ) {
attr.mq_maxmsg = 10;
attr.mq_msgsize = 16;
a00150c0: e3a08010 mov r8, #16 <== NOT EXECUTED
* but were not compared against any existing implementation for
* compatibility. See README.mqueue for an example program we
* think will print out the defaults. Report anything you find with it.
*/
if ( attr_ptr == NULL ) {
attr.mq_maxmsg = 10;
a00150c4: e3a0a00a mov sl, #10 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE
POSIX_Message_queue_Control *_POSIX_Message_queue_Allocate( void )
{
return (POSIX_Message_queue_Control *)
_Objects_Allocate( &_POSIX_Message_queue_Information );
a00150c8: e59f50e0 ldr r5, [pc, #224] ; a00151b0 <_POSIX_Message_queue_Create_support+0x150><== NOT EXECUTED a00150cc: e1a00005 mov r0, r5 <== NOT EXECUTED a00150d0: ebfff0b5 bl a00113ac <_Objects_Allocate> <== NOT EXECUTED
attr = *attr_ptr;
}
the_mq = _POSIX_Message_queue_Allocate();
if ( !the_mq ) {
a00150d4: e2504000 subs r4, r0, #0 <== NOT EXECUTED a00150d8: 1a000003 bne a00150ec <_POSIX_Message_queue_Create_support+0x8c><== NOT EXECUTED
_Thread_Enable_dispatch();
a00150dc: ebfff4fb bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENFILE );
a00150e0: eb000d59 bl a001864c <__errno> <== NOT EXECUTED a00150e4: e3a03017 mov r3, #23 <== NOT EXECUTED a00150e8: ea000024 b a0015180 <_POSIX_Message_queue_Create_support+0x120><== NOT EXECUTED
}
the_mq->process_shared = pshared;
the_mq->named = true;
a00150ec: e3a03001 mov r3, #1 <== NOT EXECUTED
if ( !the_mq ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( ENFILE );
}
the_mq->process_shared = pshared;
a00150f0: e5846010 str r6, [r4, #16] <== NOT EXECUTED
/*
* Make a copy of the user's string for name just in case it was
* dynamically constructed.
*/
name = _Workspace_Allocate(n+1);
a00150f4: e0876003 add r6, r7, r3 <== NOT EXECUTED
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( ENFILE );
}
the_mq->process_shared = pshared;
the_mq->named = true;
a00150f8: e5c43014 strb r3, [r4, #20] <== NOT EXECUTED
the_mq->open_count = 1;
a00150fc: e5843018 str r3, [r4, #24] <== NOT EXECUTED
the_mq->linked = true;
a0015100: e5c43015 strb r3, [r4, #21] <== NOT EXECUTED
/*
* Make a copy of the user's string for name just in case it was
* dynamically constructed.
*/
name = _Workspace_Allocate(n+1);
a0015104: e1a00006 mov r0, r6 <== NOT EXECUTED a0015108: ebfff95c bl a0013680 <_Workspace_Allocate> <== NOT EXECUTED
if (!name) {
a001510c: e2507000 subs r7, r0, #0 <== NOT EXECUTED a0015110: 1a000006 bne a0015130 <_POSIX_Message_queue_Create_support+0xd0><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free (
POSIX_Message_queue_Control *the_mq
)
{
_Objects_Free( &_POSIX_Message_queue_Information, &the_mq->Object );
a0015114: e1a00005 mov r0, r5 <== NOT EXECUTED a0015118: e1a01004 mov r1, r4 <== NOT EXECUTED a001511c: ebfff169 bl a00116c8 <_Objects_Free> <== NOT EXECUTED
_POSIX_Message_queue_Free( the_mq );
_Thread_Enable_dispatch();
a0015120: ebfff4ea bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
a0015124: eb000d48 bl a001864c <__errno> <== NOT EXECUTED a0015128: e3a0300c mov r3, #12 <== NOT EXECUTED a001512c: ea000013 b a0015180 <_POSIX_Message_queue_Create_support+0x120><== NOT EXECUTED
} strncpy( name, name_arg, n+1 );
a0015130: e1a02006 mov r2, r6 <== NOT EXECUTED a0015134: e1a01009 mov r1, r9 <== NOT EXECUTED
* * Joel: Cite POSIX or OpenGroup on above statement so we can determine * if it is a real requirement. */ the_mq_attr = &the_mq->Message_queue.Attributes; the_mq_attr->discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO;
a0015138: e3a06000 mov r6, #0 <== NOT EXECUTED
if (!name) {
_POSIX_Message_queue_Free( the_mq );
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( ENOMEM );
}
strncpy( name, name_arg, n+1 );
a001513c: eb00151c bl a001a5b4 <strncpy> <== NOT EXECUTED
* * Joel: Cite POSIX or OpenGroup on above statement so we can determine * if it is a real requirement. */ the_mq_attr = &the_mq->Message_queue.Attributes; the_mq_attr->discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO;
a0015140: e584605c str r6, [r4, #92] ; 0x5c <== NOT EXECUTED
if ( !_CORE_message_queue_Initialize(
a0015144: e284001c add r0, r4, #28 <== NOT EXECUTED a0015148: e284105c add r1, r4, #92 ; 0x5c <== NOT EXECUTED a001514c: e1a0200a mov r2, sl <== NOT EXECUTED a0015150: e1a03008 mov r3, r8 <== NOT EXECUTED a0015154: eb0003d0 bl a001609c <_CORE_message_queue_Initialize> <== NOT EXECUTED a0015158: e1500006 cmp r0, r6 <== NOT EXECUTED a001515c: 1a00000a bne a001518c <_POSIX_Message_queue_Create_support+0x12c><== NOT EXECUTED a0015160: e1a01004 mov r1, r4 <== NOT EXECUTED a0015164: e1a00005 mov r0, r5 <== NOT EXECUTED a0015168: ebfff156 bl a00116c8 <_Objects_Free> <== NOT EXECUTED
attr.mq_maxmsg,
attr.mq_msgsize
) ) {
_POSIX_Message_queue_Free( the_mq );
_Workspace_Free(name);
a001516c: e1a00007 mov r0, r7 <== NOT EXECUTED a0015170: ebfff948 bl a0013698 <_Workspace_Free> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0015174: ebfff4d5 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
a0015178: eb000d33 bl a001864c <__errno> <== NOT EXECUTED
a001517c: e3a0301c mov r3, #28 <== NOT EXECUTED
a0015180: e5803000 str r3, [r0] <== NOT EXECUTED
a0015184: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0015188: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a001518c: e595301c ldr r3, [r5, #28] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
_Objects_Set_local_object(
a0015190: e1d420b8 ldrh r2, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a0015194: e7834102 str r4, [r3, r2, lsl #2] <== NOT EXECUTED
the_object
);
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/* ASSERT: information->is_string */
the_object->name.name_p = name;
a0015198: e584700c str r7, [r4, #12] <== NOT EXECUTED
&_POSIX_Message_queue_Information,
&the_mq->Object,
name
);
*message_queue = the_mq;
a001519c: e58b4000 str r4, [fp] <== NOT EXECUTED
_Thread_Enable_dispatch();
a00151a0: ebfff4ca bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a00151a4: e1a00006 mov r0, r6 <== NOT EXECUTED
}
a00151a8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a000e5c0 <_POSIX_Message_queue_Delete>:
void _POSIX_Message_queue_Delete(
POSIX_Message_queue_Control *the_mq
)
{
if ( !the_mq->linked && !the_mq->open_count ) {
a000e5c0: e5d03015 ldrb r3, [r0, #21] <== NOT EXECUTED
*/
void _POSIX_Message_queue_Delete(
POSIX_Message_queue_Control *the_mq
)
{
a000e5c4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
if ( !the_mq->linked && !the_mq->open_count ) {
a000e5c8: e3530000 cmp r3, #0 <== NOT EXECUTED
*/
void _POSIX_Message_queue_Delete(
POSIX_Message_queue_Control *the_mq
)
{
a000e5cc: e1a04000 mov r4, r0 <== NOT EXECUTED
if ( !the_mq->linked && !the_mq->open_count ) {
a000e5d0: 1a00000d bne a000e60c <_POSIX_Message_queue_Delete+0x4c> <== NOT EXECUTED a000e5d4: e5905018 ldr r5, [r0, #24] <== NOT EXECUTED a000e5d8: e3550000 cmp r5, #0 <== NOT EXECUTED a000e5dc: 1a00000a bne a000e60c <_POSIX_Message_queue_Delete+0x4c> <== NOT EXECUTED
);
_Workspace_Free( (void *)the_object->name.name_p );
}
#endif
_Objects_Close( &_POSIX_Message_queue_Information, the_object );
a000e5e0: e1a01004 mov r1, r4 <== NOT EXECUTED a000e5e4: e59f0024 ldr r0, [pc, #36] ; a000e610 <_POSIX_Message_queue_Delete+0x50><== NOT EXECUTED a000e5e8: eb000b91 bl a0011434 <_Objects_Close> <== NOT EXECUTED
_CORE_message_queue_Close(
a000e5ec: e284001c add r0, r4, #28 <== NOT EXECUTED a000e5f0: e1a01005 mov r1, r5 <== NOT EXECUTED a000e5f4: e3a02005 mov r2, #5 <== NOT EXECUTED a000e5f8: eb000872 bl a00107c8 <_CORE_message_queue_Close> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free (
POSIX_Message_queue_Control *the_mq
)
{
_Objects_Free( &_POSIX_Message_queue_Information, &the_mq->Object );
a000e5fc: e59f000c ldr r0, [pc, #12] ; a000e610 <_POSIX_Message_queue_Delete+0x50><== NOT EXECUTED a000e600: e1a01004 mov r1, r4 <== NOT EXECUTED
);
_POSIX_Message_queue_Free( the_mq );
}
}
a000e604: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
a000e608: ea000c2e b a00116c8 <_Objects_Free> <== NOT EXECUTED
a000e60c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a00151b4 <_POSIX_Message_queue_Name_to_id>:
*/
int _POSIX_Message_queue_Name_to_id(
const char *name,
Objects_Id *id
)
{
a00151b4: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
Objects_Id the_id;
if ( !name )
a00151b8: e2505000 subs r5, r0, #0 <== NOT EXECUTED
*/
int _POSIX_Message_queue_Name_to_id(
const char *name,
Objects_Id *id
)
{
a00151bc: e1a04001 mov r4, r1 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
Objects_Id the_id;
if ( !name )
a00151c0: 0a000011 beq a001520c <_POSIX_Message_queue_Name_to_id+0x58><== NOT EXECUTED
return EINVAL;
if ( !name[0] )
a00151c4: e5d53000 ldrb r3, [r5] <== NOT EXECUTED a00151c8: e3530000 cmp r3, #0 <== NOT EXECUTED a00151cc: 0a00000e beq a001520c <_POSIX_Message_queue_Name_to_id+0x58><== NOT EXECUTED
return EINVAL;
if ( strnlen( name, NAME_MAX ) >= NAME_MAX )
a00151d0: e3a010ff mov r1, #255 ; 0xff <== NOT EXECUTED a00151d4: eb001531 bl a001a6a0 <strnlen> <== NOT EXECUTED a00151d8: e35000fe cmp r0, #254 ; 0xfe <== NOT EXECUTED
return ENAMETOOLONG;
a00151dc: 83a0005b movhi r0, #91 ; 0x5b <== NOT EXECUTED
return EINVAL;
if ( !name[0] )
return EINVAL;
if ( strnlen( name, NAME_MAX ) >= NAME_MAX )
a00151e0: 8a00000a bhi a0015210 <_POSIX_Message_queue_Name_to_id+0x5c><== NOT EXECUTED
return ENAMETOOLONG;
status = _Objects_Name_to_id_string(
a00151e4: e59f0028 ldr r0, [pc, #40] ; a0015214 <_POSIX_Message_queue_Name_to_id+0x60><== NOT EXECUTED a00151e8: e1a01005 mov r1, r5 <== NOT EXECUTED a00151ec: e1a0200d mov r2, sp <== NOT EXECUTED a00151f0: eb000574 bl a00167c8 <_Objects_Name_to_id_string> <== NOT EXECUTED
&_POSIX_Message_queue_Information,
name,
&the_id
);
*id = the_id;
a00151f4: e59d3000 ldr r3, [sp] <== NOT EXECUTED
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
return 0;
a00151f8: e3500000 cmp r0, #0 <== NOT EXECUTED a00151fc: 13a00002 movne r0, #2 <== NOT EXECUTED
status = _Objects_Name_to_id_string(
&_POSIX_Message_queue_Information,
name,
&the_id
);
*id = the_id;
a0015200: e5843000 str r3, [r4] <== NOT EXECUTED
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
return 0;
a0015204: 03a00000 moveq r0, #0 <== NOT EXECUTED a0015208: ea000000 b a0015210 <_POSIX_Message_queue_Name_to_id+0x5c> <== NOT EXECUTED
if ( !name )
return EINVAL;
if ( !name[0] )
return EINVAL;
a001520c: e3a00016 mov r0, #22 <== NOT EXECUTED
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
return 0;
return ENOENT;
}
a0015210: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000e694 <_POSIX_Message_queue_Notify_handler>:
*/
void _POSIX_Message_queue_Notify_handler(
void *user_data
)
{
a000e694: e92d4010 push {r4, lr} <== NOT EXECUTED
a000e698: e1a04000 mov r4, r0 <== NOT EXECUTED
POSIX_Message_queue_Control *the_mq;
the_mq = user_data;
kill( getpid(), the_mq->notification.sigev_signo );
a000e69c: eb0018d2 bl a00149ec <getpid> <== NOT EXECUTED a000e6a0: e5941094 ldr r1, [r4, #148] ; 0x94 <== NOT EXECUTED a000e6a4: eb001a6b bl a0015058 <kill> <== NOT EXECUTED
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Notify_Handler the_handler,
void *the_argument
)
{
the_message_queue->notify_handler = the_handler;
a000e6a8: e3a03000 mov r3, #0 <== NOT EXECUTED a000e6ac: e584307c str r3, [r4, #124] ; 0x7c <== NOT EXECUTED
the_message_queue->notify_argument = the_argument;
a000e6b0: e5843080 str r3, [r4, #128] ; 0x80 <== NOT EXECUTED
_CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL );
}
a000e6b4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000e8fc <_POSIX_Message_queue_Receive_support>:
size_t msg_len,
unsigned int *msg_prio,
bool wait,
Watchdog_Interval timeout
)
{
a000e8fc: e92d41ff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a000e900: e1a04000 mov r4, r0 <== NOT EXECUTED
a000e904: e1a06001 mov r6, r1 <== NOT EXECUTED
a000e908: e1a07002 mov r7, r2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
mqd_t id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control_fd *) _Objects_Get(
a000e90c: e59f00f0 ldr r0, [pc, #240] ; a000ea04 <_POSIX_Message_queue_Receive_support+0x108><== NOT EXECUTED a000e910: e1a01004 mov r1, r4 <== NOT EXECUTED a000e914: e28d200c add r2, sp, #12 <== NOT EXECUTED a000e918: e1a05003 mov r5, r3 <== NOT EXECUTED a000e91c: e5dd8028 ldrb r8, [sp, #40] ; 0x28 <== NOT EXECUTED a000e920: eb000bc0 bl a0011828 <_Objects_Get> <== NOT EXECUTED
Objects_Locations location;
size_t length_out;
bool do_wait;
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
a000e924: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a000e928: e3530000 cmp r3, #0 <== NOT EXECUTED a000e92c: 1a00002e bne a000e9ec <_POSIX_Message_queue_Receive_support+0xf0><== NOT EXECUTED
case OBJECTS_LOCAL:
if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {
a000e930: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a000e934: e2032003 and r2, r3, #3 <== NOT EXECUTED a000e938: e3520001 cmp r2, #1 <== NOT EXECUTED a000e93c: 1a000001 bne a000e948 <_POSIX_Message_queue_Receive_support+0x4c><== NOT EXECUTED
_Thread_Enable_dispatch();
a000e940: eb000ee2 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED a000e944: ea000028 b a000e9ec <_POSIX_Message_queue_Receive_support+0xf0><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBADF );
}
the_mq = the_mq_fd->Queue;
a000e948: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED
if ( msg_len < the_mq->Message_queue.maximum_message_size ) {
a000e94c: e5902068 ldr r2, [r0, #104] ; 0x68 <== NOT EXECUTED a000e950: e1570002 cmp r7, r2 <== NOT EXECUTED a000e954: 2a000003 bcs a000e968 <_POSIX_Message_queue_Receive_support+0x6c><== NOT EXECUTED
_Thread_Enable_dispatch();
a000e958: eb000edc bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EMSGSIZE );
a000e95c: eb00273a bl a001864c <__errno> <== NOT EXECUTED a000e960: e3a0307a mov r3, #122 ; 0x7a <== NOT EXECUTED a000e964: ea000022 b a000e9f4 <_POSIX_Message_queue_Receive_support+0xf8><== NOT EXECUTED
/*
* Now if something goes wrong, we return a "length" of -1
* to indicate an error.
*/
length_out = -1;
a000e968: e3e02000 mvn r2, #0 <== NOT EXECUTED
/*
* A timed receive with a bad time will do a poll regardless.
*/
if ( wait )
a000e96c: e3580000 cmp r8, #0 <== NOT EXECUTED
/*
* Now if something goes wrong, we return a "length" of -1
* to indicate an error.
*/
length_out = -1;
a000e970: e58d2008 str r2, [sp, #8] <== NOT EXECUTED
/*
* A timed receive with a bad time will do a poll regardless.
*/
if ( wait )
a000e974: 0a000002 beq a000e984 <_POSIX_Message_queue_Receive_support+0x88><== NOT EXECUTED
do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;
a000e978: e3130901 tst r3, #16384 ; 0x4000 <== NOT EXECUTED a000e97c: 13a08000 movne r8, #0 <== NOT EXECUTED a000e980: 03a08001 moveq r8, #1 <== NOT EXECUTED
do_wait = wait;
/*
* Now perform the actual message receive
*/
_CORE_message_queue_Seize(
a000e984: e59d302c ldr r3, [sp, #44] ; 0x2c <== NOT EXECUTED a000e988: e1a01004 mov r1, r4 <== NOT EXECUTED
timeout
);
_Thread_Enable_dispatch();
*msg_prio =
_POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
a000e98c: e59f4074 ldr r4, [pc, #116] ; a000ea08 <_POSIX_Message_queue_Receive_support+0x10c><== NOT EXECUTED
do_wait = wait;
/*
* Now perform the actual message receive
*/
_CORE_message_queue_Seize(
a000e990: e280001c add r0, r0, #28 <== NOT EXECUTED a000e994: e1a02006 mov r2, r6 <== NOT EXECUTED a000e998: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000e99c: e28d3008 add r3, sp, #8 <== NOT EXECUTED a000e9a0: e58d8000 str r8, [sp] <== NOT EXECUTED a000e9a4: eb0007a9 bl a0010850 <_CORE_message_queue_Seize> <== NOT EXECUTED
&length_out,
do_wait,
timeout
);
_Thread_Enable_dispatch();
a000e9a8: eb000ec8 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
*msg_prio =
_POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
a000e9ac: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core(
CORE_message_queue_Submit_types priority
)
{
/* absolute value without a library dependency */
return ((priority >= 0) ? priority : -priority);
a000e9b0: e5932024 ldr r2, [r3, #36] ; 0x24 <== NOT EXECUTED
if ( !_Thread_Executing->Wait.return_code )
a000e9b4: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a000e9b8: e3520000 cmp r2, #0 <== NOT EXECUTED a000e9bc: b2622000 rsblt r2, r2, #0 <== NOT EXECUTED a000e9c0: e3530000 cmp r3, #0 <== NOT EXECUTED
do_wait,
timeout
);
_Thread_Enable_dispatch();
*msg_prio =
a000e9c4: e5852000 str r2, [r5] <== NOT EXECUTED
_POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
if ( !_Thread_Executing->Wait.return_code )
return length_out;
a000e9c8: 059d0008 ldreq r0, [sp, #8] <== NOT EXECUTED
_Thread_Enable_dispatch();
*msg_prio =
_POSIX_Message_queue_Priority_from_core(_Thread_Executing->Wait.count);
if ( !_Thread_Executing->Wait.return_code )
a000e9cc: 0a00000a beq a000e9fc <_POSIX_Message_queue_Receive_support+0x100><== NOT EXECUTED
return length_out;
rtems_set_errno_and_return_minus_one(
a000e9d0: eb00271d bl a001864c <__errno> <== NOT EXECUTED a000e9d4: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a000e9d8: e1a05000 mov r5, r0 <== NOT EXECUTED a000e9dc: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a000e9e0: eb00009b bl a000ec54 <_POSIX_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED a000e9e4: e5850000 str r0, [r5] <== NOT EXECUTED a000e9e8: ea000002 b a000e9f8 <_POSIX_Message_queue_Receive_support+0xfc><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
a000e9ec: eb002716 bl a001864c <__errno> <== NOT EXECUTED a000e9f0: e3a03009 mov r3, #9 <== NOT EXECUTED a000e9f4: e5803000 str r3, [r0] <== NOT EXECUTED a000e9f8: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000e9fc: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a000ea00: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000ea28 <_POSIX_Message_queue_Send_support>:
size_t msg_len,
uint32_t msg_prio,
bool wait,
Watchdog_Interval timeout
)
{
a000ea28: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
/*
* Validate the priority.
* XXX - Do not validate msg_prio is not less than 0.
*/
if ( msg_prio > MQ_PRIO_MAX )
a000ea2c: e3530020 cmp r3, #32 <== NOT EXECUTED
size_t msg_len,
uint32_t msg_prio,
bool wait,
Watchdog_Interval timeout
)
{
a000ea30: e24dd014 sub sp, sp, #20 <== NOT EXECUTED a000ea34: e1a04000 mov r4, r0 <== NOT EXECUTED a000ea38: e1a06001 mov r6, r1 <== NOT EXECUTED a000ea3c: e1a05002 mov r5, r2 <== NOT EXECUTED a000ea40: e1a07003 mov r7, r3 <== NOT EXECUTED a000ea44: e5dd802c ldrb r8, [sp, #44] ; 0x2c <== NOT EXECUTED
/*
* Validate the priority.
* XXX - Do not validate msg_prio is not less than 0.
*/
if ( msg_prio > MQ_PRIO_MAX )
a000ea48: 9a000002 bls a000ea58 <_POSIX_Message_queue_Send_support+0x30><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000ea4c: eb0026fe bl a001864c <__errno> <== NOT EXECUTED a000ea50: e3a03016 mov r3, #22 <== NOT EXECUTED a000ea54: ea00002d b a000eb10 <_POSIX_Message_queue_Send_support+0xe8><== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
mqd_t id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control_fd *) _Objects_Get(
a000ea58: e59f00c0 ldr r0, [pc, #192] ; a000eb20 <_POSIX_Message_queue_Send_support+0xf8><== NOT EXECUTED a000ea5c: e1a01004 mov r1, r4 <== NOT EXECUTED a000ea60: e28d2010 add r2, sp, #16 <== NOT EXECUTED a000ea64: eb000b6f bl a0011828 <_Objects_Get> <== NOT EXECUTED
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
a000ea68: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000ea6c: e3530000 cmp r3, #0 <== NOT EXECUTED a000ea70: 1a000024 bne a000eb08 <_POSIX_Message_queue_Send_support+0xe0><== NOT EXECUTED
case OBJECTS_LOCAL:
if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) {
a000ea74: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a000ea78: e3130003 tst r3, #3 <== NOT EXECUTED a000ea7c: 1a000001 bne a000ea88 <_POSIX_Message_queue_Send_support+0x60><== NOT EXECUTED
_Thread_Enable_dispatch();
a000ea80: eb000e92 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED a000ea84: ea00001f b a000eb08 <_POSIX_Message_queue_Send_support+0xe0><== NOT EXECUTED
the_mq = the_mq_fd->Queue;
/*
* A timed receive with a bad time will do a poll regardless.
*/
if ( wait )
a000ea88: e3580000 cmp r8, #0 <== NOT EXECUTED
if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( EBADF );
}
the_mq = the_mq_fd->Queue;
a000ea8c: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED
/*
* A timed receive with a bad time will do a poll regardless.
*/
if ( wait )
a000ea90: 0a000002 beq a000eaa0 <_POSIX_Message_queue_Send_support+0x78><== NOT EXECUTED
do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;
a000ea94: e3130901 tst r3, #16384 ; 0x4000 <== NOT EXECUTED a000ea98: 13a08000 movne r8, #0 <== NOT EXECUTED a000ea9c: 03a08001 moveq r8, #1 <== NOT EXECUTED
do_wait = wait;
/*
* Now perform the actual message receive
*/
msg_status = _CORE_message_queue_Submit(
a000eaa0: e3a03000 mov r3, #0 <== NOT EXECUTED a000eaa4: e58d3000 str r3, [sp] <== NOT EXECUTED a000eaa8: e59d3030 ldr r3, [sp, #48] ; 0x30 <== NOT EXECUTED a000eaac: e1a01006 mov r1, r6 <== NOT EXECUTED a000eab0: e1a02005 mov r2, r5 <== NOT EXECUTED a000eab4: e58d300c str r3, [sp, #12] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE CORE_message_queue_Submit_types _POSIX_Message_queue_Priority_to_core(
unsigned int priority
)
{
return priority * -1;
a000eab8: e2677000 rsb r7, r7, #0 <== NOT EXECUTED
a000eabc: e1a03004 mov r3, r4 <== NOT EXECUTED
a000eac0: e280001c add r0, r0, #28 <== NOT EXECUTED
a000eac4: e98d0180 stmib sp, {r7, r8} <== NOT EXECUTED
a000eac8: eb0007ac bl a0010980 <_CORE_message_queue_Submit> <== NOT EXECUTED
a000eacc: e1a04000 mov r4, r0 <== NOT EXECUTED
_POSIX_Message_queue_Priority_to_core( msg_prio ),
do_wait,
timeout /* no timeout */
);
_Thread_Enable_dispatch();
a000ead0: eb000e7e bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
* after it wakes up. The returned status is correct for
* non-blocking operations but if we blocked, then we need
* to look at the status in our TCB.
*/
if ( msg_status == CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT )
a000ead4: e3540007 cmp r4, #7 <== NOT EXECUTED
msg_status = _Thread_Executing->Wait.return_code;
a000ead8: 059f3044 ldreq r3, [pc, #68] ; a000eb24 <_POSIX_Message_queue_Send_support+0xfc><== NOT EXECUTED a000eadc: 05933004 ldreq r3, [r3, #4] <== NOT EXECUTED a000eae0: 05934034 ldreq r4, [r3, #52] ; 0x34 <== NOT EXECUTED
if ( !msg_status )
a000eae4: e3540000 cmp r4, #0 <== NOT EXECUTED
return msg_status;
a000eae8: 01a00004 moveq r0, r4 <== NOT EXECUTED
*/
if ( msg_status == CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT )
msg_status = _Thread_Executing->Wait.return_code;
if ( !msg_status )
a000eaec: 0a000009 beq a000eb18 <_POSIX_Message_queue_Send_support+0xf0><== NOT EXECUTED
return msg_status;
rtems_set_errno_and_return_minus_one(
a000eaf0: eb0026d5 bl a001864c <__errno> <== NOT EXECUTED a000eaf4: e1a05000 mov r5, r0 <== NOT EXECUTED a000eaf8: e1a00004 mov r0, r4 <== NOT EXECUTED a000eafc: eb000054 bl a000ec54 <_POSIX_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED a000eb00: e5850000 str r0, [r5] <== NOT EXECUTED a000eb04: ea000002 b a000eb14 <_POSIX_Message_queue_Send_support+0xec><== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
a000eb08: eb0026cf bl a001864c <__errno> <== NOT EXECUTED a000eb0c: e3a03009 mov r3, #9 <== NOT EXECUTED a000eb10: e5803000 str r3, [r0] <== NOT EXECUTED a000eb14: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000eb18: e28dd014 add sp, sp, #20 <== NOT EXECUTED
a000eb1c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000ec54 <_POSIX_Message_queue_Translate_core_message_queue_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_message_queue_status > CORE_MESSAGE_QUEUE_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Message_queue_Return_codes[the_message_queue_status];
}
a000ec54: e59f3004 ldr r3, [pc, #4] ; a000ec60 <_POSIX_Message_queue_Translate_core_message_queue_return_code+0xc><== NOT EXECUTED a000ec58: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000ec5c: e12fff1e bx lr <== NOT EXECUTED
a000b624 <_POSIX_Mutex_Get>:
POSIX_Mutex_Control *_POSIX_Mutex_Get (
pthread_mutex_t *mutex,
Objects_Locations *location
)
{
a000b624: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
___POSIX_Mutex_Get_support_error_check( mutex, location );
a000b628: e2505000 subs r5, r0, #0 <== NOT EXECUTED
POSIX_Mutex_Control *_POSIX_Mutex_Get (
pthread_mutex_t *mutex,
Objects_Locations *location
)
{
a000b62c: e1a04001 mov r4, r1 <== NOT EXECUTED
___POSIX_Mutex_Get_support_error_check( mutex, location );
a000b630: 1a000003 bne a000b644 <_POSIX_Mutex_Get+0x20> <== NOT EXECUTED
a000b634: e3a03001 mov r3, #1 <== NOT EXECUTED
a000b638: e5813000 str r3, [r1] <== NOT EXECUTED
a000b63c: e1a00005 mov r0, r5 <== NOT EXECUTED
a000b640: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
___POSIX_Mutex_Get_support_auto_initialization( mutex, location );
a000b644: e5953000 ldr r3, [r5] <== NOT EXECUTED
a000b648: e3730001 cmn r3, #1 <== NOT EXECUTED
a000b64c: 1a000007 bne a000b670 <_POSIX_Mutex_Get+0x4c> <== NOT EXECUTED
a000b650: e3a01000 mov r1, #0 <== NOT EXECUTED
a000b654: eb000039 bl a000b740 <pthread_mutex_init> <== NOT EXECUTED
a000b658: e3500000 cmp r0, #0 <== NOT EXECUTED
a000b65c: 0a000003 beq a000b670 <_POSIX_Mutex_Get+0x4c> <== NOT EXECUTED
a000b660: e3a03001 mov r3, #1 <== NOT EXECUTED
a000b664: e5843000 str r3, [r4] <== NOT EXECUTED
a000b668: e3a00000 mov r0, #0 <== NOT EXECUTED
a000b66c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
return (POSIX_Mutex_Control *)
_Objects_Get( &_POSIX_Mutex_Information, (Objects_Id) *mutex, location );
a000b670: e59f000c ldr r0, [pc, #12] ; a000b684 <_POSIX_Mutex_Get+0x60><== NOT EXECUTED a000b674: e5951000 ldr r1, [r5] <== NOT EXECUTED a000b678: e1a02004 mov r2, r4 <== NOT EXECUTED
}
a000b67c: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
___POSIX_Mutex_Get_support_error_check( mutex, location );
___POSIX_Mutex_Get_support_auto_initialization( mutex, location );
return (POSIX_Mutex_Control *)
_Objects_Get( &_POSIX_Mutex_Information, (Objects_Id) *mutex, location );
a000b680: ea000a6b b a000e034 <_Objects_Get> <== NOT EXECUTED
a000b688 <_POSIX_Mutex_Get_interrupt_disable>:
POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable (
pthread_mutex_t *mutex,
Objects_Locations *location,
ISR_Level *level
)
{
a000b688: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
___POSIX_Mutex_Get_support_error_check( mutex, location );
a000b68c: e2506000 subs r6, r0, #0 <== NOT EXECUTED
POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable (
pthread_mutex_t *mutex,
Objects_Locations *location,
ISR_Level *level
)
{
a000b690: e1a04001 mov r4, r1 <== NOT EXECUTED a000b694: e1a05002 mov r5, r2 <== NOT EXECUTED
___POSIX_Mutex_Get_support_error_check( mutex, location );
a000b698: 1a000003 bne a000b6ac <_POSIX_Mutex_Get_interrupt_disable+0x24><== NOT EXECUTED
a000b69c: e3a03001 mov r3, #1 <== NOT EXECUTED
a000b6a0: e5813000 str r3, [r1] <== NOT EXECUTED
a000b6a4: e1a00006 mov r0, r6 <== NOT EXECUTED
a000b6a8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
___POSIX_Mutex_Get_support_auto_initialization( mutex, location );
a000b6ac: e5963000 ldr r3, [r6] <== NOT EXECUTED
a000b6b0: e3730001 cmn r3, #1 <== NOT EXECUTED
a000b6b4: 1a000007 bne a000b6d8 <_POSIX_Mutex_Get_interrupt_disable+0x50><== NOT EXECUTED
a000b6b8: e3a01000 mov r1, #0 <== NOT EXECUTED
a000b6bc: eb00001f bl a000b740 <pthread_mutex_init> <== NOT EXECUTED
a000b6c0: e3500000 cmp r0, #0 <== NOT EXECUTED
a000b6c4: 0a000003 beq a000b6d8 <_POSIX_Mutex_Get_interrupt_disable+0x50><== NOT EXECUTED
a000b6c8: e3a03001 mov r3, #1 <== NOT EXECUTED
a000b6cc: e5843000 str r3, [r4] <== NOT EXECUTED
a000b6d0: e3a00000 mov r0, #0 <== NOT EXECUTED
a000b6d4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
return (POSIX_Mutex_Control *) _Objects_Get_isr_disable(
a000b6d8: e59f0010 ldr r0, [pc, #16] ; a000b6f0 <_POSIX_Mutex_Get_interrupt_disable+0x68><== NOT EXECUTED a000b6dc: e5961000 ldr r1, [r6] <== NOT EXECUTED a000b6e0: e1a02004 mov r2, r4 <== NOT EXECUTED a000b6e4: e1a03005 mov r3, r5 <== NOT EXECUTED
&_POSIX_Mutex_Information,
(Objects_Id) *mutex,
location,
level
);
}
a000b6e8: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED
{
___POSIX_Mutex_Get_support_error_check( mutex, location );
___POSIX_Mutex_Get_support_auto_initialization( mutex, location );
return (POSIX_Mutex_Control *) _Objects_Get_isr_disable(
a000b6ec: ea000a35 b a000dfc8 <_Objects_Get_isr_disable> <== NOT EXECUTED
a000b898 <_POSIX_Mutex_Lock_support>:
int _POSIX_Mutex_Lock_support(
pthread_mutex_t *mutex,
bool blocking,
Watchdog_Interval timeout
)
{
a000b898: e92d4037 push {r0, r1, r2, r4, r5, lr} <== NOT EXECUTED
a000b89c: e1a04002 mov r4, r2 <== NOT EXECUTED
a000b8a0: e20150ff and r5, r1, #255 ; 0xff <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
ISR_Level level;
the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level );
a000b8a4: e28d2004 add r2, sp, #4 <== NOT EXECUTED a000b8a8: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000b8ac: ebffff75 bl a000b688 <_POSIX_Mutex_Get_interrupt_disable> <== NOT EXECUTED
switch ( location ) {
a000b8b0: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED
{
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
ISR_Level level;
the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level );
a000b8b4: e1a03000 mov r3, r0 <== NOT EXECUTED
switch ( location ) {
a000b8b8: e3520000 cmp r2, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000b8bc: 13a00016 movne r0, #22 <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
ISR_Level level;
the_mutex = _POSIX_Mutex_Get_interrupt_disable( mutex, &location, &level );
switch ( location ) {
a000b8c0: 1a00000a bne a000b8f0 <_POSIX_Mutex_Lock_support+0x58> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_mutex_Seize(
a000b8c4: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED a000b8c8: e2830014 add r0, r3, #20 <== NOT EXECUTED a000b8cc: e58d2000 str r2, [sp] <== NOT EXECUTED a000b8d0: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000b8d4: e1a02005 mov r2, r5 <== NOT EXECUTED a000b8d8: e1a03004 mov r3, r4 <== NOT EXECUTED a000b8dc: eb0006a7 bl a000d380 <_CORE_mutex_Seize> <== NOT EXECUTED
blocking,
timeout,
level
);
return _POSIX_Mutex_Translate_core_mutex_return_code(
(CORE_mutex_Status) _Thread_Executing->Wait.return_code
a000b8e0: e59f300c ldr r3, [pc, #12] ; a000b8f4 <_POSIX_Mutex_Lock_support+0x5c><== NOT EXECUTED a000b8e4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
the_mutex->Object.id,
blocking,
timeout,
level
);
return _POSIX_Mutex_Translate_core_mutex_return_code(
a000b8e8: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a000b8ec: eb00003e bl a000b9ec <_POSIX_Mutex_Translate_core_mutex_return_code><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
a000b8f0: e8bd803e pop {r1, r2, r3, r4, r5, pc} <== NOT EXECUTED
a000b9ec <_POSIX_Mutex_Translate_core_mutex_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_mutex_status > CORE_MUTEX_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Mutex_Return_codes[the_mutex_status];
}
a000b9ec: e59f3004 ldr r3, [pc, #4] ; a000b9f8 <_POSIX_Mutex_Translate_core_mutex_return_code+0xc><== NOT EXECUTED a000b9f0: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000b9f4: e12fff1e bx lr <== NOT EXECUTED
a000f878 <_POSIX_Priority_Is_valid>:
bool _POSIX_Priority_Is_valid(
int priority
)
{
return ((priority >= POSIX_SCHEDULER_MINIMUM_PRIORITY) &&
a000f878: e3500000 cmp r0, #0 <== NOT EXECUTED a000f87c: da000005 ble a000f898 <_POSIX_Priority_Is_valid+0x20> <== NOT EXECUTED
(priority <= POSIX_SCHEDULER_MAXIMUM_PRIORITY));
a000f880: e59f3018 ldr r3, [pc, #24] ; a000f8a0 <_POSIX_Priority_Is_valid+0x28><== NOT EXECUTED a000f884: e5d33000 ldrb r3, [r3] <== NOT EXECUTED
#endif
#include <rtems/system.h>
#include <rtems/posix/priority.h>
bool _POSIX_Priority_Is_valid(
a000f888: e1530000 cmp r3, r0 <== NOT EXECUTED a000f88c: d3a00000 movle r0, #0 <== NOT EXECUTED a000f890: c3a00001 movgt r0, #1 <== NOT EXECUTED a000f894: e12fff1e bx lr <== NOT EXECUTED
int priority
)
{
return ((priority >= POSIX_SCHEDULER_MINIMUM_PRIORITY) &&
a000f898: e3a00000 mov r0, #0 <== NOT EXECUTED
(priority <= POSIX_SCHEDULER_MAXIMUM_PRIORITY));
}
a000f89c: e12fff1e bx lr <== NOT EXECUTED
a000aad8 <_POSIX_RWLock_Translate_core_RWLock_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_rwlock_status > CORE_RWLOCK_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_RWLock_Return_codes[the_rwlock_status];
}
a000aad8: e59f3004 ldr r3, [pc, #4] ; a000aae4 <_POSIX_RWLock_Translate_core_RWLock_return_code+0xc><== NOT EXECUTED a000aadc: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000aae0: e12fff1e bx lr <== NOT EXECUTED
a001246c <_POSIX_Semaphore_Create_support>:
POSIX_Semaphore_Control *the_semaphore;
CORE_semaphore_Attributes *the_sem_attr;
char *name_p = (char *)name;
/* Sharing semaphores among processes is not currently supported */
if (pshared != 0)
a001246c: e3510000 cmp r1, #0 <== NOT EXECUTED
const char *name,
int pshared,
unsigned int value,
POSIX_Semaphore_Control **the_sem
)
{
a0012470: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a0012474: e1a04000 mov r4, r0 <== NOT EXECUTED
a0012478: e1a08002 mov r8, r2 <== NOT EXECUTED
a001247c: e1a07003 mov r7, r3 <== NOT EXECUTED
POSIX_Semaphore_Control *the_semaphore;
CORE_semaphore_Attributes *the_sem_attr;
char *name_p = (char *)name;
/* Sharing semaphores among processes is not currently supported */
if (pshared != 0)
a0012480: 0a000002 beq a0012490 <_POSIX_Semaphore_Create_support+0x24><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0012484: eb000b57 bl a00151e8 <__errno> <== NOT EXECUTED a0012488: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a001248c: ea000013 b a00124e0 <_POSIX_Semaphore_Create_support+0x74> <== NOT EXECUTED
if ( name ) {
a0012490: e3500000 cmp r0, #0 <== NOT EXECUTED a0012494: 0a000006 beq a00124b4 <_POSIX_Semaphore_Create_support+0x48><== NOT EXECUTED
if ( strnlen( name, NAME_MAX ) >= NAME_MAX )
a0012498: e3a010ff mov r1, #255 ; 0xff <== NOT EXECUTED a001249c: eb00118c bl a0016ad4 <strnlen> <== NOT EXECUTED a00124a0: e35000fe cmp r0, #254 ; 0xfe <== NOT EXECUTED a00124a4: 9a000002 bls a00124b4 <_POSIX_Semaphore_Create_support+0x48><== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENAMETOOLONG );
a00124a8: eb000b4e bl a00151e8 <__errno> <== NOT EXECUTED a00124ac: e3a0305b mov r3, #91 ; 0x5b <== NOT EXECUTED a00124b0: ea00000a b a00124e0 <_POSIX_Semaphore_Create_support+0x74> <== NOT EXECUTED a00124b4: e59f309c ldr r3, [pc, #156] ; a0012558 <_POSIX_Semaphore_Create_support+0xec><== NOT EXECUTED a00124b8: e5932000 ldr r2, [r3] <== NOT EXECUTED a00124bc: e2822001 add r2, r2, #1 <== NOT EXECUTED a00124c0: e5832000 str r2, [r3] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Allocate( void )
{
return (POSIX_Semaphore_Control *)
_Objects_Allocate( &_POSIX_Semaphore_Information );
a00124c4: e59f0090 ldr r0, [pc, #144] ; a001255c <_POSIX_Semaphore_Create_support+0xf0><== NOT EXECUTED a00124c8: ebffee7b bl a000debc <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch();
the_semaphore = _POSIX_Semaphore_Allocate();
if ( !the_semaphore ) {
a00124cc: e2505000 subs r5, r0, #0 <== NOT EXECUTED a00124d0: 1a000005 bne a00124ec <_POSIX_Semaphore_Create_support+0x80><== NOT EXECUTED
_Thread_Enable_dispatch();
a00124d4: ebfff2c1 bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
a00124d8: eb000b42 bl a00151e8 <__errno> <== NOT EXECUTED
a00124dc: e3a0301c mov r3, #28 <== NOT EXECUTED
a00124e0: e5803000 str r3, [r0] <== NOT EXECUTED
a00124e4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a00124e8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
}
the_semaphore->process_shared = pshared;
a00124ec: e3a03000 mov r3, #0 <== NOT EXECUTED
if ( name ) {
a00124f0: e1540003 cmp r4, r3 <== NOT EXECUTED
if ( !the_semaphore ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( ENOSPC );
}
the_semaphore->process_shared = pshared;
a00124f4: e5853010 str r3, [r5, #16] <== NOT EXECUTED
if ( name ) {
the_semaphore->named = true;
a00124f8: 12833001 addne r3, r3, #1 <== NOT EXECUTED a00124fc: 15c53014 strbne r3, [r5, #20] <== NOT EXECUTED
the_semaphore->open_count = 1;
a0012500: 15853018 strne r3, [r5, #24] <== NOT EXECUTED
the_semaphore->linked = true;
a0012504: 15c53015 strbne r3, [r5, #21] <== NOT EXECUTED
* blocking tasks on this semaphore should be. It could somehow * be derived from the current scheduling policy. One * thing is certain, no matter what we decide, it won't be * the same as all other POSIX implementations. :) */ the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
a0012508: e3a06000 mov r6, #0 <== NOT EXECUTED
/*
* This effectively disables limit checking.
*/
the_sem_attr->maximum_count = 0xFFFFFFFF;
a001250c: e3e03000 mvn r3, #0 <== NOT EXECUTED
_CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value );
a0012510: e285001c add r0, r5, #28 <== NOT EXECUTED
if ( name ) {
the_semaphore->named = true;
the_semaphore->open_count = 1;
the_semaphore->linked = true;
} else {
the_semaphore->named = false;
a0012514: 05c54014 strbeq r4, [r5, #20] <== NOT EXECUTED
the_semaphore->open_count = 0;
a0012518: 05854018 streq r4, [r5, #24] <== NOT EXECUTED
the_semaphore->linked = false;
a001251c: 05c54015 strbeq r4, [r5, #21] <== NOT EXECUTED
the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
/*
* This effectively disables limit checking.
*/
the_sem_attr->maximum_count = 0xFFFFFFFF;
a0012520: e585305c str r3, [r5, #92] ; 0x5c <== NOT EXECUTED
_CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value );
a0012524: e285105c add r1, r5, #92 ; 0x5c <== NOT EXECUTED a0012528: e1a02008 mov r2, r8 <== NOT EXECUTED
* blocking tasks on this semaphore should be. It could somehow * be derived from the current scheduling policy. One * thing is certain, no matter what we decide, it won't be * the same as all other POSIX implementations. :) */ the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
a001252c: e5856060 str r6, [r5, #96] ; 0x60 <== NOT EXECUTED
/*
* This effectively disables limit checking.
*/
the_sem_attr->maximum_count = 0xFFFFFFFF;
_CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value );
a0012530: ebffecec bl a000d8e8 <_CORE_semaphore_Initialize> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a0012534: e59f3020 ldr r3, [pc, #32] ; a001255c <_POSIX_Semaphore_Create_support+0xf0><== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
_Objects_Set_local_object(
a0012538: e1d520b8 ldrh r2, [r5, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a001253c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0012540: e7835102 str r5, [r3, r2, lsl #2] <== NOT EXECUTED
the_object
);
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/* ASSERT: information->is_string */
the_object->name.name_p = name;
a0012544: e585400c str r4, [r5, #12] <== NOT EXECUTED
&_POSIX_Semaphore_Information,
&the_semaphore->Object,
name_p
);
*the_sem = the_semaphore;
a0012548: e5875000 str r5, [r7] <== NOT EXECUTED
_Thread_Enable_dispatch();
a001254c: ebfff2a3 bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a0012550: e1a00006 mov r0, r6 <== NOT EXECUTED
}
a0012554: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0012560 <_POSIX_Semaphore_Delete>:
void _POSIX_Semaphore_Delete(
POSIX_Semaphore_Control *the_semaphore
)
{
if ( !the_semaphore->linked && !the_semaphore->open_count ) {
a0012560: e5d03015 ldrb r3, [r0, #21] <== NOT EXECUTED
*/
void _POSIX_Semaphore_Delete(
POSIX_Semaphore_Control *the_semaphore
)
{
a0012564: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
if ( !the_semaphore->linked && !the_semaphore->open_count ) {
a0012568: e3530000 cmp r3, #0 <== NOT EXECUTED
*/
void _POSIX_Semaphore_Delete(
POSIX_Semaphore_Control *the_semaphore
)
{
a001256c: e1a04000 mov r4, r0 <== NOT EXECUTED
if ( !the_semaphore->linked && !the_semaphore->open_count ) {
a0012570: 1a00000d bne a00125ac <_POSIX_Semaphore_Delete+0x4c> <== NOT EXECUTED a0012574: e5905018 ldr r5, [r0, #24] <== NOT EXECUTED a0012578: e3550000 cmp r5, #0 <== NOT EXECUTED a001257c: 1a00000a bne a00125ac <_POSIX_Semaphore_Delete+0x4c> <== NOT EXECUTED
_Objects_Close( &_POSIX_Semaphore_Information, &the_semaphore->Object );
a0012580: e1a01004 mov r1, r4 <== NOT EXECUTED a0012584: e59f0024 ldr r0, [pc, #36] ; a00125b0 <_POSIX_Semaphore_Delete+0x50><== NOT EXECUTED a0012588: ebffee6d bl a000df44 <_Objects_Close> <== NOT EXECUTED
_CORE_semaphore_Flush(
a001258c: e284001c add r0, r4, #28 <== NOT EXECUTED a0012590: e1a01005 mov r1, r5 <== NOT EXECUTED a0012594: e3e02000 mvn r2, #0 <== NOT EXECUTED a0012598: ebffecd1 bl a000d8e4 <_CORE_semaphore_Flush> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Free (
POSIX_Semaphore_Control *the_semaphore
)
{
_Objects_Free( &_POSIX_Semaphore_Information, &the_semaphore->Object );
a001259c: e59f000c ldr r0, [pc, #12] ; a00125b0 <_POSIX_Semaphore_Delete+0x50><== NOT EXECUTED a00125a0: e1a01004 mov r1, r4 <== NOT EXECUTED
-1
);
_POSIX_Semaphore_Free( the_semaphore );
}
}
a00125a4: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
a00125a8: eaffef0a b a000e1d8 <_Objects_Free> <== NOT EXECUTED
a00125ac: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a00125b4 <_POSIX_Semaphore_Name_to_id>:
int _POSIX_Semaphore_Name_to_id(
const char *name,
sem_t *id
)
{
a00125b4: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
a00125b8: e1a04001 mov r4, r1 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
Objects_Id the_id;
if ( !name )
a00125bc: e2501000 subs r1, r0, #0 <== NOT EXECUTED a00125c0: 0a00000b beq a00125f4 <_POSIX_Semaphore_Name_to_id+0x40> <== NOT EXECUTED
return EINVAL;
if ( !name[0] )
a00125c4: e5d13000 ldrb r3, [r1] <== NOT EXECUTED a00125c8: e3530000 cmp r3, #0 <== NOT EXECUTED a00125cc: 0a000008 beq a00125f4 <_POSIX_Semaphore_Name_to_id+0x40> <== NOT EXECUTED
return EINVAL;
status = _Objects_Name_to_id_string(
a00125d0: e59f0024 ldr r0, [pc, #36] ; a00125fc <_POSIX_Semaphore_Name_to_id+0x48><== NOT EXECUTED a00125d4: e1a0200d mov r2, sp <== NOT EXECUTED a00125d8: eb00035b bl a001334c <_Objects_Name_to_id_string> <== NOT EXECUTED
&_POSIX_Semaphore_Information,
name,
&the_id
);
*id = the_id;
a00125dc: e59d3000 ldr r3, [sp] <== NOT EXECUTED
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
return 0;
a00125e0: e3500000 cmp r0, #0 <== NOT EXECUTED a00125e4: 13a00002 movne r0, #2 <== NOT EXECUTED
status = _Objects_Name_to_id_string(
&_POSIX_Semaphore_Information,
name,
&the_id
);
*id = the_id;
a00125e8: e5843000 str r3, [r4] <== NOT EXECUTED
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
return 0;
a00125ec: 03a00000 moveq r0, #0 <== NOT EXECUTED a00125f0: ea000000 b a00125f8 <_POSIX_Semaphore_Name_to_id+0x44> <== NOT EXECUTED
if ( !name )
return EINVAL;
if ( !name[0] )
return EINVAL;
a00125f4: e3a00016 mov r0, #22 <== NOT EXECUTED
if ( status == OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL )
return 0;
return ENOENT;
}
a00125f8: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a0014cf0 <_POSIX_Semaphore_Translate_core_semaphore_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_semaphore_status > CORE_SEMAPHORE_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Semaphore_Return_codes[the_semaphore_status];
}
a0014cf0: e59f3004 ldr r3, [pc, #4] ; a0014cfc <_POSIX_Semaphore_Translate_core_semaphore_return_code+0xc><== NOT EXECUTED a0014cf4: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0014cf8: e12fff1e bx lr <== NOT EXECUTED
a0012640 <_POSIX_Semaphore_Wait_support>:
int _POSIX_Semaphore_Wait_support(
sem_t *sem,
bool blocking,
Watchdog_Interval timeout
)
{
a0012640: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a0012644: e1a03000 mov r3, r0 <== NOT EXECUTED
a0012648: e1a04002 mov r4, r2 <== NOT EXECUTED
a001264c: e20150ff and r5, r1, #255 ; 0xff <== NOT EXECUTED
sem_t *id,
Objects_Locations *location
)
{
return (POSIX_Semaphore_Control *)
_Objects_Get( &_POSIX_Semaphore_Information, (Objects_Id)*id, location );
a0012650: e1a0200d mov r2, sp <== NOT EXECUTED a0012654: e5931000 ldr r1, [r3] <== NOT EXECUTED a0012658: e59f006c ldr r0, [pc, #108] ; a00126cc <_POSIX_Semaphore_Wait_support+0x8c><== NOT EXECUTED a001265c: ebffef35 bl a000e338 <_Objects_Get> <== NOT EXECUTED
POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
a0012660: e59d2000 ldr r2, [sp] <== NOT EXECUTED a0012664: e1a03000 mov r3, r0 <== NOT EXECUTED a0012668: e3520000 cmp r2, #0 <== NOT EXECUTED a001266c: 1a000011 bne a00126b8 <_POSIX_Semaphore_Wait_support+0x78> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_semaphore_Seize(
a0012670: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0012674: e1a03004 mov r3, r4 <== NOT EXECUTED
blocking,
timeout
);
_Thread_Enable_dispatch();
if ( !_Thread_Executing->Wait.return_code )
a0012678: e59f4050 ldr r4, [pc, #80] ; a00126d0 <_POSIX_Semaphore_Wait_support+0x90><== NOT EXECUTED
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
case OBJECTS_LOCAL:
_CORE_semaphore_Seize(
a001267c: e280001c add r0, r0, #28 <== NOT EXECUTED a0012680: e1a02005 mov r2, r5 <== NOT EXECUTED a0012684: eb0001cc bl a0012dbc <_CORE_semaphore_Seize> <== NOT EXECUTED
&the_semaphore->Semaphore,
the_semaphore->Object.id,
blocking,
timeout
);
_Thread_Enable_dispatch();
a0012688: ebfff254 bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( !_Thread_Executing->Wait.return_code )
a001268c: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a0012690: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a0012694: e3500000 cmp r0, #0 <== NOT EXECUTED a0012698: 0a00000a beq a00126c8 <_POSIX_Semaphore_Wait_support+0x88> <== NOT EXECUTED
return 0;
rtems_set_errno_and_return_minus_one(
a001269c: eb000ad1 bl a00151e8 <__errno> <== NOT EXECUTED a00126a0: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a00126a4: e1a05000 mov r5, r0 <== NOT EXECUTED a00126a8: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a00126ac: eb00098f bl a0014cf0 <_POSIX_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED a00126b0: e5850000 str r0, [r5] <== NOT EXECUTED a00126b4: ea000002 b a00126c4 <_POSIX_Semaphore_Wait_support+0x84> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
a00126b8: eb000aca bl a00151e8 <__errno> <== NOT EXECUTED a00126bc: e3a03016 mov r3, #22 <== NOT EXECUTED a00126c0: e5803000 str r3, [r0] <== NOT EXECUTED a00126c4: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a00126c8: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a00097f8 <_POSIX_Spinlock_Translate_core_spinlock_return_code>:
#if defined(RTEMS_DEBUG)
if ( the_spinlock_status > CORE_SPINLOCK_STATUS_LAST )
return EINVAL;
#endif
return _POSIX_Spinlock_Return_codes[the_spinlock_status];
}
a00097f8: e59f3004 ldr r3, [pc, #4] ; a0009804 <_POSIX_Spinlock_Translate_core_spinlock_return_code+0xc><== NOT EXECUTED a00097fc: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a0009800: e12fff1e bx lr <== NOT EXECUTED
a000e468 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch>:
Thread_Control *the_thread
)
{
POSIX_API_Control *thread_support;
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
a000e468: e59030fc ldr r3, [r0, #252] ; 0xfc <== NOT EXECUTED
if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
a000e46c: e59320d8 ldr r2, [r3, #216] ; 0xd8 <== NOT EXECUTED a000e470: e3520000 cmp r2, #0 <== NOT EXECUTED a000e474: 1a00000b bne a000e4a8 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x40><== NOT EXECUTED a000e478: e59320dc ldr r2, [r3, #220] ; 0xdc <== NOT EXECUTED a000e47c: e3520001 cmp r2, #1 <== NOT EXECUTED a000e480: 1a000008 bne a000e4a8 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x40><== NOT EXECUTED
thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
a000e484: e59330e0 ldr r3, [r3, #224] ; 0xe0 <== NOT EXECUTED a000e488: e3530000 cmp r3, #0 <== NOT EXECUTED a000e48c: 0a000005 beq a000e4a8 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x40><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
a000e490: e59f3014 ldr r3, [pc, #20] ; a000e4ac <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x44><== NOT EXECUTED
thread_support->cancelation_requested ) {
_Thread_Unnest_dispatch();
_POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );
a000e494: e3e01000 mvn r1, #0 <== NOT EXECUTED a000e498: e5932000 ldr r2, [r3] <== NOT EXECUTED a000e49c: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000e4a0: e5832000 str r2, [r3] <== NOT EXECUTED a000e4a4: ea000204 b a000ecbc <_POSIX_Thread_Exit> <== NOT EXECUTED
} else
_Thread_Enable_dispatch();
a000e4a8: eafff5ae b a000bb68 <_Thread_Enable_dispatch> <== NOT EXECUTED
a0010b04 <_POSIX_Thread_Exit>:
void _POSIX_Thread_Exit(
Thread_Control *the_thread,
void *value_ptr
)
{
a0010b04: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a0010b08: e1a04000 mov r4, r0 <== NOT EXECUTED
Objects_Information *the_information;
the_information = _Objects_Get_information_id( the_thread->Object.id );
a0010b0c: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED
void _POSIX_Thread_Exit(
Thread_Control *the_thread,
void *value_ptr
)
{
a0010b10: e1a07001 mov r7, r1 <== NOT EXECUTED
Objects_Information *the_information;
the_information = _Objects_Get_information_id( the_thread->Object.id );
a0010b14: ebffe7bc bl a000aa0c <_Objects_Get_information_id> <== NOT EXECUTED
* are ready to be switched out. Otherwise, an ISR could
* occur and preempt us out while we still hold the
* allocator mutex.
*/
_RTEMS_Lock_allocator();
a0010b18: e59f5044 ldr r5, [pc, #68] ; a0010b64 <_POSIX_Thread_Exit+0x60><== NOT EXECUTED
void *value_ptr
)
{
Objects_Information *the_information;
the_information = _Objects_Get_information_id( the_thread->Object.id );
a0010b1c: e1a06000 mov r6, r0 <== NOT EXECUTED
* are ready to be switched out. Otherwise, an ISR could
* occur and preempt us out while we still hold the
* allocator mutex.
*/
_RTEMS_Lock_allocator();
a0010b20: e5950000 ldr r0, [r5] <== NOT EXECUTED a0010b24: ebffe455 bl a0009c80 <_API_Mutex_Lock> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a0010b28: e59f3038 ldr r3, [pc, #56] ; a0010b68 <_POSIX_Thread_Exit+0x64><== NOT EXECUTED a0010b2c: e5932000 ldr r2, [r3] <== NOT EXECUTED a0010b30: e2822001 add r2, r2, #1 <== NOT EXECUTED a0010b34: e5832000 str r2, [r3] <== NOT EXECUTED
_Thread_Disable_dispatch();
the_thread->Wait.return_argument = value_ptr;
_Thread_Close( the_information, the_thread );
a0010b38: e1a00006 mov r0, r6 <== NOT EXECUTED a0010b3c: e1a01004 mov r1, r4 <== NOT EXECUTED
*/
_RTEMS_Lock_allocator();
_Thread_Disable_dispatch();
the_thread->Wait.return_argument = value_ptr;
a0010b40: e5847028 str r7, [r4, #40] ; 0x28 <== NOT EXECUTED
_Thread_Close( the_information, the_thread );
a0010b44: ebffea5f bl a000b4c8 <_Thread_Close> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (
Thread_Control *the_pthread
)
{
_Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object );
a0010b48: e1a01004 mov r1, r4 <== NOT EXECUTED a0010b4c: e59f0018 ldr r0, [pc, #24] ; a0010b6c <_POSIX_Thread_Exit+0x68><== NOT EXECUTED a0010b50: ebffe78f bl a000a994 <_Objects_Free> <== NOT EXECUTED
_POSIX_Threads_Free( the_thread );
_RTEMS_Unlock_allocator();
a0010b54: e5950000 ldr r0, [r5] <== NOT EXECUTED a0010b58: ebffe461 bl a0009ce4 <_API_Mutex_Unlock> <== NOT EXECUTED
_Thread_Enable_dispatch(); }
a0010b5c: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED
_Thread_Close( the_information, the_thread );
_POSIX_Threads_Free( the_thread );
_RTEMS_Unlock_allocator();
_Thread_Enable_dispatch();
a0010b60: eaffeb0e b a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
a000f8a4 <_POSIX_Thread_Translate_sched_param>:
int policy,
struct sched_param *param,
Thread_CPU_budget_algorithms *budget_algorithm,
Thread_CPU_budget_algorithm_callout *budget_callout
)
{
a000f8a4: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a000f8a8: e1a04000 mov r4, r0 <== NOT EXECUTED
if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )
a000f8ac: e5910000 ldr r0, [r1] <== NOT EXECUTED
int policy,
struct sched_param *param,
Thread_CPU_budget_algorithms *budget_algorithm,
Thread_CPU_budget_algorithm_callout *budget_callout
)
{
a000f8b0: e1a05001 mov r5, r1 <== NOT EXECUTED a000f8b4: e1a06002 mov r6, r2 <== NOT EXECUTED a000f8b8: e1a07003 mov r7, r3 <== NOT EXECUTED
if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )
a000f8bc: ebffffed bl a000f878 <_POSIX_Priority_Is_valid> <== NOT EXECUTED a000f8c0: e3500000 cmp r0, #0 <== NOT EXECUTED a000f8c4: 0a00002d beq a000f980 <_POSIX_Thread_Translate_sched_param+0xdc><== NOT EXECUTED
return EINVAL;
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
a000f8c8: e3a00000 mov r0, #0 <== NOT EXECUTED
*budget_callout = NULL;
if ( policy == SCHED_OTHER ) {
a000f8cc: e1540000 cmp r4, r0 <== NOT EXECUTED
)
{
if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )
return EINVAL;
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
a000f8d0: e5860000 str r0, [r6] <== NOT EXECUTED
*budget_callout = NULL;
a000f8d4: e5870000 str r0, [r7] <== NOT EXECUTED
if ( policy == SCHED_OTHER ) {
a000f8d8: 1a000003 bne a000f8ec <_POSIX_Thread_Translate_sched_param+0x48><== NOT EXECUTED
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
a000f8dc: e3a03001 mov r3, #1 <== NOT EXECUTED a000f8e0: e5863000 str r3, [r6] <== NOT EXECUTED
return 0;
a000f8e4: e1a00004 mov r0, r4 <== NOT EXECUTED
a000f8e8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
}
if ( policy == SCHED_FIFO ) {
a000f8ec: e3540001 cmp r4, #1 <== NOT EXECUTED a000f8f0: 0a000025 beq a000f98c <_POSIX_Thread_Translate_sched_param+0xe8><== NOT EXECUTED
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
return 0;
}
if ( policy == SCHED_RR ) {
a000f8f4: e3540002 cmp r4, #2 <== NOT EXECUTED a000f8f8: 1a000001 bne a000f904 <_POSIX_Thread_Translate_sched_param+0x60><== NOT EXECUTED
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
a000f8fc: e5864000 str r4, [r6] <== NOT EXECUTED
return 0;
a000f900: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
}
if ( policy == SCHED_SPORADIC ) {
a000f904: e3540004 cmp r4, #4 <== NOT EXECUTED a000f908: 1a00001c bne a000f980 <_POSIX_Thread_Translate_sched_param+0xdc><== NOT EXECUTED
if ( (param->sched_ss_repl_period.tv_sec == 0) &&
a000f90c: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a000f910: e3530000 cmp r3, #0 <== NOT EXECUTED a000f914: 1a000002 bne a000f924 <_POSIX_Thread_Translate_sched_param+0x80><== NOT EXECUTED a000f918: e595300c ldr r3, [r5, #12] <== NOT EXECUTED a000f91c: e3530000 cmp r3, #0 <== NOT EXECUTED a000f920: 0a000016 beq a000f980 <_POSIX_Thread_Translate_sched_param+0xdc><== NOT EXECUTED
(param->sched_ss_repl_period.tv_nsec == 0) )
return EINVAL;
if ( (param->sched_ss_init_budget.tv_sec == 0) &&
a000f924: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED a000f928: e3530000 cmp r3, #0 <== NOT EXECUTED a000f92c: 1a000002 bne a000f93c <_POSIX_Thread_Translate_sched_param+0x98><== NOT EXECUTED a000f930: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED a000f934: e3530000 cmp r3, #0 <== NOT EXECUTED a000f938: 0a000010 beq a000f980 <_POSIX_Thread_Translate_sched_param+0xdc><== NOT EXECUTED
(param->sched_ss_init_budget.tv_nsec == 0) )
return EINVAL;
if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <
a000f93c: e2850008 add r0, r5, #8 <== NOT EXECUTED a000f940: ebfff6ba bl a000d430 <_Timespec_To_ticks> <== NOT EXECUTED a000f944: e1a04000 mov r4, r0 <== NOT EXECUTED
_Timespec_To_ticks( ¶m->sched_ss_init_budget ) )
a000f948: e2850010 add r0, r5, #16 <== NOT EXECUTED a000f94c: ebfff6b7 bl a000d430 <_Timespec_To_ticks> <== NOT EXECUTED
if ( (param->sched_ss_init_budget.tv_sec == 0) &&
(param->sched_ss_init_budget.tv_nsec == 0) )
return EINVAL;
if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <
a000f950: e1540000 cmp r4, r0 <== NOT EXECUTED a000f954: 3a000009 bcc a000f980 <_POSIX_Thread_Translate_sched_param+0xdc><== NOT EXECUTED
_Timespec_To_ticks( ¶m->sched_ss_init_budget ) )
return EINVAL;
if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )
a000f958: e5950004 ldr r0, [r5, #4] <== NOT EXECUTED a000f95c: ebffffc5 bl a000f878 <_POSIX_Priority_Is_valid> <== NOT EXECUTED a000f960: e3500000 cmp r0, #0 <== NOT EXECUTED a000f964: 0a000007 beq a000f988 <_POSIX_Thread_Translate_sched_param+0xe4><== NOT EXECUTED
return EINVAL;
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;
a000f968: e3a03003 mov r3, #3 <== NOT EXECUTED a000f96c: e5863000 str r3, [r6] <== NOT EXECUTED
*budget_callout = _POSIX_Threads_Sporadic_budget_callout;
a000f970: e59f3018 ldr r3, [pc, #24] ; a000f990 <_POSIX_Thread_Translate_sched_param+0xec><== NOT EXECUTED
return 0;
a000f974: e3a00000 mov r0, #0 <== NOT EXECUTED
if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )
return EINVAL;
*budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;
*budget_callout = _POSIX_Threads_Sporadic_budget_callout;
a000f978: e5873000 str r3, [r7] <== NOT EXECUTED
return 0;
a000f97c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
(param->sched_ss_init_budget.tv_nsec == 0) )
return EINVAL;
if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <
_Timespec_To_ticks( ¶m->sched_ss_init_budget ) )
return EINVAL;
a000f980: e3a00016 mov r0, #22 <== NOT EXECUTED
a000f984: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )
return EINVAL;
a000f988: e3a00016 mov r0, #22 <== NOT EXECUTED
*budget_callout = _POSIX_Threads_Sporadic_budget_callout;
return 0;
}
return EINVAL;
}
a000f98c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000e630 <_POSIX_Threads_Create_extension>:
bool _POSIX_Threads_Create_extension(
Thread_Control *executing __attribute__((unused)),
Thread_Control *created
)
{
a000e630: e92d4030 push {r4, r5, lr}
POSIX_API_Control *api;
POSIX_API_Control *executing_api;
api = _Workspace_Allocate( sizeof( POSIX_API_Control ) );
a000e634: e3a000f0 mov r0, #240 ; 0xf0
bool _POSIX_Threads_Create_extension(
Thread_Control *executing __attribute__((unused)),
Thread_Control *created
)
{
a000e638: e1a05001 mov r5, r1
POSIX_API_Control *api;
POSIX_API_Control *executing_api;
api = _Workspace_Allocate( sizeof( POSIX_API_Control ) );
a000e63c: ebfff880 bl a000c844 <_Workspace_Allocate>
if ( !api )
a000e640: e2504000 subs r4, r0, #0
a000e644: 0a000039 beq a000e730 <_POSIX_Threads_Create_extension+0x100>
return false;
created->API_Extensions[ THREAD_API_POSIX ] = api;
/* XXX check all fields are touched */
api->Attributes = _POSIX_Threads_Default_attributes;
a000e648: e3a01000 mov r1, #0 a000e64c: e3a02040 mov r2, #64 ; 0x40
api = _Workspace_Allocate( sizeof( POSIX_API_Control ) );
if ( !api )
return false;
created->API_Extensions[ THREAD_API_POSIX ] = api;
a000e650: e58540fc str r4, [r5, #252] ; 0xfc
/* XXX check all fields are touched */
api->Attributes = _POSIX_Threads_Default_attributes;
a000e654: eb000ce9 bl a0011a00 <memset>
api->detachstate = _POSIX_Threads_Default_attributes.detachstate; api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; api->schedparam = _POSIX_Threads_Default_attributes.schedparam;
a000e658: e59fe0d8 ldr lr, [pc, #216] ; a000e738 <_POSIX_Threads_Create_extension+0x108>
return false;
created->API_Extensions[ THREAD_API_POSIX ] = api;
/* XXX check all fields are touched */
api->Attributes = _POSIX_Threads_Default_attributes;
a000e65c: e3a03001 mov r3, #1 a000e660: e3a02002 mov r2, #2
api->detachstate = _POSIX_Threads_Default_attributes.detachstate; api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; api->schedparam = _POSIX_Threads_Default_attributes.schedparam;
a000e664: e284c088 add ip, r4, #136 ; 0x88
return false;
created->API_Extensions[ THREAD_API_POSIX ] = api;
/* XXX check all fields are touched */
api->Attributes = _POSIX_Threads_Default_attributes;
a000e668: e5843000 str r3, [r4] a000e66c: e5843010 str r3, [r4, #16] a000e670: e5843014 str r3, [r4, #20] a000e674: e5842018 str r2, [r4, #24] a000e678: e5843038 str r3, [r4, #56] ; 0x38 a000e67c: e584303c str r3, [r4, #60] ; 0x3c
api->detachstate = _POSIX_Threads_Default_attributes.detachstate;
a000e680: e5843040 str r3, [r4, #64] ; 0x40
api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy;
a000e684: e5843084 str r3, [r4, #132] ; 0x84
api->schedparam = _POSIX_Threads_Default_attributes.schedparam;
a000e688: e8be000f ldm lr!, {r0, r1, r2, r3}
a000e68c: e8ac000f stmia ip!, {r0, r1, r2, r3}
a000e690: e89e0007 ldm lr, {r0, r1, r2}
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
Priority_Control priority
)
{
return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
a000e694: e59f30a0 ldr r3, [pc, #160] ; a000e73c <_POSIX_Threads_Create_extension+0x10c>
a000e698: e88c0007 stm ip, {r0, r1, r2}
a000e69c: e5d32000 ldrb r2, [r3]
a000e6a0: e5953014 ldr r3, [r5, #20]
api->signals_blocked = executing_api->signals_blocked;
} else {
api->signals_blocked = 0xffffffff;
}
_Thread_queue_Initialize(
a000e6a4: e3a01000 mov r1, #0 a000e6a8: e2840044 add r0, r4, #68 ; 0x44 a000e6ac: e0633002 rsb r3, r3, r2
/* XXX check all fields are touched */ api->Attributes = _POSIX_Threads_Default_attributes; api->detachstate = _POSIX_Threads_Default_attributes.detachstate; api->schedpolicy = _POSIX_Threads_Default_attributes.schedpolicy; api->schedparam = _POSIX_Threads_Default_attributes.schedparam; api->schedparam.sched_priority =
a000e6b0: e5843088 str r3, [r4, #136] ; 0x88
_POSIX_Priority_From_core( created->current_priority );
/*
* POSIX 1003.1 1996, 18.2.2.2
*/
api->cancelation_requested = 0;
a000e6b4: e3a03000 mov r3, #0
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
a000e6b8: e58430e8 str r3, [r4, #232] ; 0xe8 a000e6bc: e58430e0 str r3, [r4, #224] ; 0xe0
api->cancelability_state = PTHREAD_CANCEL_ENABLE;
a000e6c0: e58430d8 str r3, [r4, #216] ; 0xd8
api->cancelability_type = PTHREAD_CANCEL_DEFERRED;
a000e6c4: e58430dc str r3, [r4, #220] ; 0xdc
*
* The check for class == 1 is debug. Should never really happen.
*/
/* XXX use signal constants */
api->signals_pending = 0;
a000e6c8: e58430d4 str r3, [r4, #212] ; 0xd4 a000e6cc: e5d5300b ldrb r3, [r5, #11]
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 );
a000e6d0: e28420e8 add r2, r4, #232 ; 0xe8
head->next = tail;
a000e6d4: e58420e4 str r2, [r4, #228] ; 0xe4 a000e6d8: e2033007 and r3, r3, #7
if ( _Objects_Get_API( created->Object.id ) == OBJECTS_POSIX_API
a000e6dc: e3530003 cmp r3, #3
#if defined(RTEMS_DEBUG)
&& _Objects_Get_class( created->Object.id ) == 1
#endif
) {
executing_api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a000e6e0: 059f3058 ldreq r3, [pc, #88] ; a000e740 <_POSIX_Threads_Create_extension+0x110>
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
a000e6e4: e28420e4 add r2, r4, #228 ; 0xe4
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
tail->previous = head;
a000e6e8: e58420ec str r2, [r4, #236] ; 0xec a000e6ec: 05933004 ldreq r3, [r3, #4]
api->signals_blocked = executing_api->signals_blocked;
} else {
api->signals_blocked = 0xffffffff;
a000e6f0: 13e03000 mvnne r3, #0
}
_Thread_queue_Initialize(
a000e6f4: e3a02a01 mov r2, #4096 ; 0x1000
#if defined(RTEMS_DEBUG)
&& _Objects_Get_class( created->Object.id ) == 1
#endif
) {
executing_api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
api->signals_blocked = executing_api->signals_blocked;
a000e6f8: 059330fc ldreq r3, [r3, #252] ; 0xfc a000e6fc: 059330d0 ldreq r3, [r3, #208] ; 0xd0
} else {
api->signals_blocked = 0xffffffff;
a000e700: e58430d0 str r3, [r4, #208] ; 0xd0
}
_Thread_queue_Initialize(
a000e704: e1a03001 mov r3, r1 a000e708: ebfff5ed bl a000bec4 <_Thread_queue_Initialize>
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a000e70c: e3a02000 mov r2, #0
THREAD_QUEUE_DISCIPLINE_FIFO,
STATES_WAITING_FOR_JOIN_AT_EXIT,
0
);
_Watchdog_Initialize(
a000e710: e5953008 ldr r3, [r5, #8] a000e714: e58420b0 str r2, [r4, #176] ; 0xb0
the_watchdog->routine = routine;
a000e718: e59f2024 ldr r2, [pc, #36] ; a000e744 <_POSIX_Threads_Create_extension+0x114>
the_watchdog->id = id;
a000e71c: e58430c8 str r3, [r4, #200] ; 0xc8
the_watchdog->user_data = user_data;
a000e720: e58450cc str r5, [r4, #204] ; 0xcc
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a000e724: e58420c4 str r2, [r4, #196] ; 0xc4
_POSIX_Threads_Sporadic_budget_TSR,
created->Object.id,
created
);
return true;
a000e728: e3a00001 mov r0, #1
a000e72c: e8bd8030 pop {r4, r5, pc}
POSIX_API_Control *executing_api;
api = _Workspace_Allocate( sizeof( POSIX_API_Control ) );
if ( !api )
return false;
a000e730: e1a00004 mov r0, r4 <== NOT EXECUTED
created->Object.id,
created
);
return true;
}
a000e734: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000e5c8 <_POSIX_Threads_Delete_extension>:
*/
void _POSIX_Threads_Delete_extension(
Thread_Control *executing __attribute__((unused)),
Thread_Control *deleted
)
{
a000e5c8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
Thread_Control *the_thread;
POSIX_API_Control *api;
void **value_ptr;
api = deleted->API_Extensions[ THREAD_API_POSIX ];
a000e5cc: e59150fc ldr r5, [r1, #252] ; 0xfc <== NOT EXECUTED
*/
void _POSIX_Threads_Delete_extension(
Thread_Control *executing __attribute__((unused)),
Thread_Control *deleted
)
{
a000e5d0: e1a04001 mov r4, r1 <== NOT EXECUTED
api = deleted->API_Extensions[ THREAD_API_POSIX ];
/*
* Run the POSIX cancellation handlers
*/
_POSIX_Threads_cancel_run( deleted );
a000e5d4: e1a00001 mov r0, r1 <== NOT EXECUTED a000e5d8: eb000889 bl a0010804 <_POSIX_Threads_cancel_run> <== NOT EXECUTED
/*
* Run all the key destructors
*/
_POSIX_Keys_Run_destructors( deleted );
a000e5dc: e1a00004 mov r0, r4 <== NOT EXECUTED a000e5e0: eb00089e bl a0010860 <_POSIX_Keys_Run_destructors> <== NOT EXECUTED
/*
* Wakeup all the tasks which joined with this one
*/
value_ptr = (void **) deleted->Wait.return_argument;
while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )
a000e5e4: e2856044 add r6, r5, #68 ; 0x44 <== NOT EXECUTED
_POSIX_Keys_Run_destructors( deleted );
/*
* Wakeup all the tasks which joined with this one
*/
value_ptr = (void **) deleted->Wait.return_argument;
a000e5e8: e5947028 ldr r7, [r4, #40] ; 0x28 <== NOT EXECUTED
while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )
a000e5ec: ea000001 b a000e5f8 <_POSIX_Threads_Delete_extension+0x30> <== NOT EXECUTED
*(void **)the_thread->Wait.return_argument = value_ptr;
a000e5f0: e5903028 ldr r3, [r0, #40] ; 0x28 <== NOT EXECUTED a000e5f4: e5837000 str r7, [r3] <== NOT EXECUTED
/*
* Wakeup all the tasks which joined with this one
*/
value_ptr = (void **) deleted->Wait.return_argument;
while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )
a000e5f8: e1a00006 mov r0, r6 <== NOT EXECUTED a000e5fc: ebfff532 bl a000bacc <_Thread_queue_Dequeue> <== NOT EXECUTED a000e600: e3500000 cmp r0, #0 <== NOT EXECUTED a000e604: 1afffff9 bne a000e5f0 <_POSIX_Threads_Delete_extension+0x28><== NOT EXECUTED
*(void **)the_thread->Wait.return_argument = value_ptr;
if ( api->schedpolicy == SCHED_SPORADIC )
a000e608: e5953084 ldr r3, [r5, #132] ; 0x84 <== NOT EXECUTED a000e60c: e3530004 cmp r3, #4 <== NOT EXECUTED a000e610: 1a000001 bne a000e61c <_POSIX_Threads_Delete_extension+0x54><== NOT EXECUTED
(void) _Watchdog_Remove( &api->Sporadic_timer );
a000e614: e28500a8 add r0, r5, #168 ; 0xa8 <== NOT EXECUTED a000e618: ebfff823 bl a000c6ac <_Watchdog_Remove> <== NOT EXECUTED
deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;
a000e61c: e3a03000 mov r3, #0 <== NOT EXECUTED
_Workspace_Free( api );
a000e620: e1a00005 mov r0, r5 <== NOT EXECUTED
*(void **)the_thread->Wait.return_argument = value_ptr;
if ( api->schedpolicy == SCHED_SPORADIC )
(void) _Watchdog_Remove( &api->Sporadic_timer );
deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;
a000e624: e58430fc str r3, [r4, #252] ; 0xfc <== NOT EXECUTED
_Workspace_Free( api );
}
a000e628: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED
if ( api->schedpolicy == SCHED_SPORADIC )
(void) _Watchdog_Remove( &api->Sporadic_timer );
deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;
_Workspace_Free( api );
a000e62c: eafff88a b a000c85c <_Workspace_Free> <== NOT EXECUTED
a000e5b0 <_POSIX_Threads_Exitted_extension>:
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
a000e5b0: e5d0300b ldrb r3, [r0, #11] a000e5b4: e2033007 and r3, r3, #7
{
/*
* If the executing thread was not created with the POSIX API, then this
* API do not get to define its exit behavior.
*/
if ( _Objects_Get_API( executing->Object.id ) == OBJECTS_POSIX_API )
a000e5b8: e3530003 cmp r3, #3 a000e5bc: 112fff1e bxne lr
pthread_exit( executing->Wait.return_argument );
a000e5c0: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED a000e5c4: ea000969 b a0010b70 <pthread_exit> <== NOT EXECUTED
a000e590 <_POSIX_Threads_Initialize_user_threads>:
* This routine creates and starts all configured user
* initialzation threads.
*/
void _POSIX_Threads_Initialize_user_threads( void )
{
if ( _POSIX_Threads_Initialize_user_threads_p )
a000e590: e59f3014 ldr r3, [pc, #20] ; a000e5ac <_POSIX_Threads_Initialize_user_threads+0x1c>
*
* This routine creates and starts all configured user
* initialzation threads.
*/
void _POSIX_Threads_Initialize_user_threads( void )
{
a000e594: e52de004 push {lr} ; (str lr, [sp, #-4]!)
if ( _POSIX_Threads_Initialize_user_threads_p )
a000e598: e5933000 ldr r3, [r3]
a000e59c: e3530000 cmp r3, #0
a000e5a0: 049df004 popeq {pc} ; (ldreq pc, [sp], #4)
(*_POSIX_Threads_Initialize_user_threads_p)();
a000e5a4: e12fff33 blx r3 <== NOT EXECUTED
a000e5a8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009994 <_POSIX_Threads_Initialize_user_threads_body>:
uint32_t maximum;
posix_initialization_threads_table *user_threads;
pthread_t thread_id;
pthread_attr_t attr;
user_threads = Configuration_POSIX_API.User_initialization_threads_table;
a0009994: e59f3088 ldr r3, [pc, #136] ; a0009a24 <_POSIX_Threads_Initialize_user_threads_body+0x90><== NOT EXECUTED
*
* Output parameters: NONE
*/
void _POSIX_Threads_Initialize_user_threads_body(void)
{
a0009998: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
uint32_t maximum;
posix_initialization_threads_table *user_threads;
pthread_t thread_id;
pthread_attr_t attr;
user_threads = Configuration_POSIX_API.User_initialization_threads_table;
a000999c: e5935034 ldr r5, [r3, #52] ; 0x34 <== NOT EXECUTED
maximum = Configuration_POSIX_API.number_of_initialization_threads;
a00099a0: e5937030 ldr r7, [r3, #48] ; 0x30 <== NOT EXECUTED
*
* Output parameters: NONE
*/
void _POSIX_Threads_Initialize_user_threads_body(void)
{
a00099a4: e24dd044 sub sp, sp, #68 ; 0x44 <== NOT EXECUTED
pthread_attr_t attr;
user_threads = Configuration_POSIX_API.User_initialization_threads_table;
maximum = Configuration_POSIX_API.number_of_initialization_threads;
if ( !user_threads || maximum == 0 )
a00099a8: e3550000 cmp r5, #0 <== NOT EXECUTED a00099ac: 13570000 cmpne r7, #0 <== NOT EXECUTED a00099b0: 13a06000 movne r6, #0 <== NOT EXECUTED a00099b4: 03a06001 moveq r6, #1 <== NOT EXECUTED a00099b8: 0a000017 beq a0009a1c <_POSIX_Threads_Initialize_user_threads_body+0x88><== NOT EXECUTED
for ( index=0 ; index < maximum ; index++ ) {
/*
* There is no way for these calls to fail in this situation.
*/
(void) pthread_attr_init( &attr );
a00099bc: e1a0400d mov r4, sp <== NOT EXECUTED
(void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
(void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
status = pthread_create(
a00099c0: e28d8040 add r8, sp, #64 ; 0x40 <== NOT EXECUTED
for ( index=0 ; index < maximum ; index++ ) {
/*
* There is no way for these calls to fail in this situation.
*/
(void) pthread_attr_init( &attr );
a00099c4: e1a0000d mov r0, sp <== NOT EXECUTED a00099c8: eb0017f1 bl a000f994 <pthread_attr_init> <== NOT EXECUTED
(void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
a00099cc: e3a01002 mov r1, #2 <== NOT EXECUTED a00099d0: e1a0000d mov r0, sp <== NOT EXECUTED a00099d4: eb001800 bl a000f9dc <pthread_attr_setinheritsched> <== NOT EXECUTED
(void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
a00099d8: e5951004 ldr r1, [r5, #4] <== NOT EXECUTED a00099dc: e1a0000d mov r0, sp <== NOT EXECUTED a00099e0: eb00180c bl a000fa18 <pthread_attr_setstacksize> <== NOT EXECUTED
status = pthread_create(
a00099e4: e5952000 ldr r2, [r5] <== NOT EXECUTED a00099e8: e1a00008 mov r0, r8 <== NOT EXECUTED a00099ec: e1a0100d mov r1, sp <== NOT EXECUTED a00099f0: e3a03000 mov r3, #0 <== NOT EXECUTED a00099f4: ebffff2d bl a00096b0 <pthread_create> <== NOT EXECUTED
&thread_id,
&attr,
user_threads[ index ].thread_entry,
NULL
);
if ( status )
a00099f8: e2502000 subs r2, r0, #0 <== NOT EXECUTED a00099fc: 0a000002 beq a0009a0c <_POSIX_Threads_Initialize_user_threads_body+0x78><== NOT EXECUTED
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
a0009a00: e3a00002 mov r0, #2 <== NOT EXECUTED a0009a04: e3a01001 mov r1, #1 <== NOT EXECUTED a0009a08: eb000770 bl a000b7d0 <_Internal_error_Occurred> <== NOT EXECUTED
*
* Setting the attributes explicitly is critical, since we don't want
* to inherit the idle tasks attributes.
*/
for ( index=0 ; index < maximum ; index++ ) {
a0009a0c: e2866001 add r6, r6, #1 <== NOT EXECUTED a0009a10: e1560007 cmp r6, r7 <== NOT EXECUTED a0009a14: e2855008 add r5, r5, #8 <== NOT EXECUTED a0009a18: 3affffe9 bcc a00099c4 <_POSIX_Threads_Initialize_user_threads_body+0x30><== NOT EXECUTED
NULL
);
if ( status )
_Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
}
}
a0009a1c: e28dd044 add sp, sp, #68 ; 0x44 <== NOT EXECUTED
a0009a20: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000e748 <_POSIX_Threads_Sporadic_budget_TSR>:
*/
void _POSIX_Threads_Sporadic_budget_TSR(
Objects_Id id __attribute__((unused)),
void *argument
)
{
a000e748: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
Thread_Control *the_thread;
POSIX_API_Control *api;
the_thread = argument;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
a000e74c: e59140fc ldr r4, [r1, #252] ; 0xfc <== NOT EXECUTED
*/
void _POSIX_Threads_Sporadic_budget_TSR(
Objects_Id id __attribute__((unused)),
void *argument
)
{
a000e750: e1a05001 mov r5, r1 <== NOT EXECUTED
the_thread = argument;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
/* ticks is guaranteed to be at least one */
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
a000e754: e2840098 add r0, r4, #152 ; 0x98 <== NOT EXECUTED a000e758: eb0003cf bl a000f69c <_Timespec_To_ticks> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
a000e75c: e59f3050 ldr r3, [pc, #80] ; a000e7b4 <_POSIX_Threads_Sporadic_budget_TSR+0x6c><== NOT EXECUTED
the_thread->cpu_time_budget = ticks;
a000e760: e5850078 str r0, [r5, #120] ; 0x78 <== NOT EXECUTED a000e764: e5d31000 ldrb r1, [r3] <== NOT EXECUTED a000e768: e5943088 ldr r3, [r4, #136] ; 0x88 <== NOT EXECUTED a000e76c: e0631001 rsb r1, r3, r1 <== NOT EXECUTED
*/
#if 0
printk( "TSR %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
a000e770: e595301c ldr r3, [r5, #28] <== NOT EXECUTED
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
the_thread->cpu_time_budget = ticks;
new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority );
the_thread->real_priority = new_priority;
a000e774: e5851018 str r1, [r5, #24] <== NOT EXECUTED
*/
#if 0
printk( "TSR %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
a000e778: e3530000 cmp r3, #0 <== NOT EXECUTED a000e77c: 1a000005 bne a000e798 <_POSIX_Threads_Sporadic_budget_TSR+0x50><== NOT EXECUTED
/*
* If this would make them less important, then do not change it.
*/
if ( the_thread->current_priority > new_priority ) {
a000e780: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED a000e784: e1530001 cmp r3, r1 <== NOT EXECUTED a000e788: 9a000002 bls a000e798 <_POSIX_Threads_Sporadic_budget_TSR+0x50><== NOT EXECUTED
_Thread_Change_priority( the_thread, new_priority, true );
a000e78c: e1a00005 mov r0, r5 <== NOT EXECUTED a000e790: e3a02001 mov r2, #1 <== NOT EXECUTED a000e794: ebfff2fe bl a000b394 <_Thread_Change_priority> <== NOT EXECUTED
#endif
}
}
/* ticks is guaranteed to be at least one */
ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period );
a000e798: e2840090 add r0, r4, #144 ; 0x90 <== NOT EXECUTED a000e79c: eb0003be bl a000f69c <_Timespec_To_ticks> <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a000e7a0: e58400b4 str r0, [r4, #180] ; 0xb4 <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a000e7a4: e59f000c ldr r0, [pc, #12] ; a000e7b8 <_POSIX_Threads_Sporadic_budget_TSR+0x70><== NOT EXECUTED a000e7a8: e28410a8 add r1, r4, #168 ; 0xa8 <== NOT EXECUTED
_Watchdog_Insert_ticks( &api->Sporadic_timer, ticks );
}
a000e7ac: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
a000e7b0: eafff765 b a000c54c <_Watchdog_Insert> <== NOT EXECUTED
a000e7bc <_POSIX_Threads_Sporadic_budget_callout>:
/*
* This will prevent the thread from consuming its entire "budget"
* while at low priority.
*/
the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
a000e7bc: e3e01000 mvn r1, #0 <== NOT EXECUTED
)
{
POSIX_API_Control *api;
uint32_t new_priority;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
a000e7c0: e59020fc ldr r2, [r0, #252] ; 0xfc <== NOT EXECUTED
/*
* This will prevent the thread from consuming its entire "budget"
* while at low priority.
*/
the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
a000e7c4: e5801078 str r1, [r0, #120] ; 0x78 <== NOT EXECUTED a000e7c8: e59f102c ldr r1, [pc, #44] ; a000e7fc <_POSIX_Threads_Sporadic_budget_callout+0x40><== NOT EXECUTED a000e7cc: e592208c ldr r2, [r2, #140] ; 0x8c <== NOT EXECUTED a000e7d0: e5d11000 ldrb r1, [r1] <== NOT EXECUTED a000e7d4: e0621001 rsb r1, r2, r1 <== NOT EXECUTED
*/
#if 0
printk( "callout %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
a000e7d8: e590201c ldr r2, [r0, #28] <== NOT EXECUTED
* while at low priority.
*/
the_thread->cpu_time_budget = 0xFFFFFFFF; /* XXX should be based on MAX_U32 */
new_priority = _POSIX_Priority_To_core(api->schedparam.sched_ss_low_priority);
the_thread->real_priority = new_priority;
a000e7dc: e5801018 str r1, [r0, #24] <== NOT EXECUTED
*/
#if 0
printk( "callout %d %d %d\n", the_thread->resource_count,
the_thread->current_priority, new_priority );
#endif
if ( the_thread->resource_count == 0 ) {
a000e7e0: e3520000 cmp r2, #0 <== NOT EXECUTED a000e7e4: 112fff1e bxne lr <== NOT EXECUTED
/*
* Make sure we are actually lowering it. If they have lowered it
* to logically lower than sched_ss_low_priority, then we do not want to
* change it.
*/
if ( the_thread->current_priority < new_priority ) {
a000e7e8: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a000e7ec: e1530001 cmp r3, r1 <== NOT EXECUTED a000e7f0: 212fff1e bxcs lr <== NOT EXECUTED
_Thread_Change_priority( the_thread, new_priority, true );
a000e7f4: e2822001 add r2, r2, #1 <== NOT EXECUTED a000e7f8: eafff2e5 b a000b394 <_Thread_Change_priority> <== NOT EXECUTED
a0010804 <_POSIX_Threads_cancel_run>:
#include <rtems/posix/threadsup.h>
void _POSIX_Threads_cancel_run(
Thread_Control *the_thread
)
{
a0010804: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
POSIX_Cancel_Handler_control *handler;
Chain_Control *handler_stack;
POSIX_API_Control *thread_support;
ISR_Level level;
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
a0010808: e59050fc ldr r5, [r0, #252] ; 0xfc <== NOT EXECUTED
handler_stack = &thread_support->Cancellation_Handlers;
thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;
a001080c: e3a03001 mov r3, #1 <== NOT EXECUTED a0010810: e58530d8 str r3, [r5, #216] ; 0xd8 <== 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 );
a0010814: e28560e8 add r6, r5, #232 ; 0xe8 <== NOT EXECUTED
while ( !_Chain_Is_empty( handler_stack ) ) {
a0010818: ea00000c b a0010850 <_POSIX_Threads_cancel_run+0x4c> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a001081c: e10f1000 mrs r1, CPSR <== NOT EXECUTED a0010820: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED a0010824: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Disable( level );
handler = (POSIX_Cancel_Handler_control *)
a0010828: e59540ec ldr r4, [r5, #236] ; 0xec <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
a001082c: e894000c ldm r4, {r2, r3} <== NOT EXECUTED
previous = the_node->previous; next->previous = previous;
a0010830: e5823004 str r3, [r2, #4] <== NOT EXECUTED
previous->next = next;
a0010834: e5832000 str r2, [r3] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0010838: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
_Chain_Tail( handler_stack )->previous;
_Chain_Extract_unprotected( &handler->Node );
_ISR_Enable( level );
(*handler->routine)( handler->arg );
a001083c: e594000c ldr r0, [r4, #12] <== NOT EXECUTED a0010840: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0010844: e12fff33 blx r3 <== NOT EXECUTED
_Workspace_Free( handler );
a0010848: e1a00004 mov r0, r4 <== NOT EXECUTED a001084c: ebfff002 bl a000c85c <_Workspace_Free> <== NOT EXECUTED
handler_stack = &thread_support->Cancellation_Handlers;
thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;
while ( !_Chain_Is_empty( handler_stack ) ) {
a0010850: e59530e4 ldr r3, [r5, #228] ; 0xe4 <== NOT EXECUTED a0010854: e1530006 cmp r3, r6 <== NOT EXECUTED a0010858: 1affffef bne a001081c <_POSIX_Threads_cancel_run+0x18> <== NOT EXECUTED
(*handler->routine)( handler->arg );
_Workspace_Free( handler );
}
}
a001085c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000f4b4 <_POSIX_Timer_Insert_helper>:
Watchdog_Interval ticks,
Objects_Id id,
Watchdog_Service_routine_entry TSR,
void *arg
)
{
a000f4b4: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a000f4b8: e1a04000 mov r4, r0 <== NOT EXECUTED
a000f4bc: e1a05001 mov r5, r1 <== NOT EXECUTED
a000f4c0: e1a07002 mov r7, r2 <== NOT EXECUTED
a000f4c4: e1a08003 mov r8, r3 <== NOT EXECUTED
ISR_Level level;
(void) _Watchdog_Remove( timer );
a000f4c8: ebfff710 bl a000d110 <_Watchdog_Remove> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000f4cc: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000f4d0: e3863080 orr r3, r6, #128 ; 0x80 <== NOT EXECUTED a000f4d4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
/*
* Check to see if the watchdog has just been inserted by a
* higher priority interrupt. If so, abandon this insert.
*/
if ( timer->state != WATCHDOG_INACTIVE ) {
a000f4d8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000f4dc: e3530000 cmp r3, #0 <== NOT EXECUTED a000f4e0: 0a000002 beq a000f4f0 <_POSIX_Timer_Insert_helper+0x3c> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000f4e4: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
_ISR_Enable( level );
return false;
a000f4e8: e3a00000 mov r0, #0 <== NOT EXECUTED
a000f4ec: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a000f4f0: e5843008 str r3, [r4, #8] <== NOT EXECUTED
the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data;
a000f4f4: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a000f4f8: e584801c str r8, [r4, #28] <== NOT EXECUTED
the_watchdog->id = id;
a000f4fc: e5847020 str r7, [r4, #32] <== NOT EXECUTED
the_watchdog->user_data = user_data;
a000f500: e5843024 str r3, [r4, #36] ; 0x24 <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a000f504: e584500c str r5, [r4, #12] <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a000f508: e59f0010 ldr r0, [pc, #16] ; a000f520 <_POSIX_Timer_Insert_helper+0x6c><== NOT EXECUTED a000f50c: e1a01004 mov r1, r4 <== NOT EXECUTED a000f510: ebfff6a6 bl a000cfb0 <_Watchdog_Insert> <== NOT EXECUTED a000f514: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
* so we can atomically initialize it as in use.
*/
_Watchdog_Initialize( timer, TSR, id, arg );
_Watchdog_Insert_ticks( timer, ticks );
_ISR_Enable( level );
return true;
a000f518: e3a00001 mov r0, #1 <== NOT EXECUTED
}
a000f51c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a00095c8 <_POSIX_Timer_TSR>:
bool activated;
ptimer = (POSIX_Timer_Control *)data;
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
a00095c8: e5913068 ldr r3, [r1, #104] ; 0x68 <== NOT EXECUTED
* This is the operation that is run when a timer expires
*/
void _POSIX_Timer_TSR(
Objects_Id timer __attribute__((unused)),
void *data)
{
a00095cc: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
bool activated;
ptimer = (POSIX_Timer_Control *)data;
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
a00095d0: e2833001 add r3, r3, #1 <== NOT EXECUTED a00095d4: e5813068 str r3, [r1, #104] ; 0x68 <== NOT EXECUTED
/* The timer must be reprogrammed */
if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) ||
a00095d8: e5913054 ldr r3, [r1, #84] ; 0x54 <== NOT EXECUTED
* This is the operation that is run when a timer expires
*/
void _POSIX_Timer_TSR(
Objects_Id timer __attribute__((unused)),
void *data)
{
a00095dc: e1a04001 mov r4, r1 <== NOT EXECUTED
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
/* The timer must be reprogrammed */
if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) ||
a00095e0: e3530000 cmp r3, #0 <== NOT EXECUTED a00095e4: 1a000003 bne a00095f8 <_POSIX_Timer_TSR+0x30> <== NOT EXECUTED a00095e8: e5913058 ldr r3, [r1, #88] ; 0x58 <== NOT EXECUTED a00095ec: e3530000 cmp r3, #0 <== NOT EXECUTED
/* The state really did not change but just to be safe */
ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;
} else {
/* Indicates that the timer is stopped */
ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;
a00095f0: 03a03004 moveq r3, #4 <== NOT EXECUTED
/* Increment the number of expirations. */
ptimer->overrun = ptimer->overrun + 1;
/* The timer must be reprogrammed */
if ( ( ptimer->timer_data.it_interval.tv_sec != 0 ) ||
a00095f4: 0a00000a beq a0009624 <_POSIX_Timer_TSR+0x5c> <== NOT EXECUTED
( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) {
activated = _POSIX_Timer_Insert_helper(
a00095f8: e2840010 add r0, r4, #16 <== NOT EXECUTED a00095fc: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED a0009600: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED a0009604: e59f3034 ldr r3, [pc, #52] ; a0009640 <_POSIX_Timer_TSR+0x78><== NOT EXECUTED a0009608: e58d4000 str r4, [sp] <== NOT EXECUTED a000960c: eb0017a8 bl a000f4b4 <_POSIX_Timer_Insert_helper> <== NOT EXECUTED
ptimer->ticks,
ptimer->Object.id,
_POSIX_Timer_TSR,
ptimer
);
if ( !activated )
a0009610: e3500000 cmp r0, #0 <== NOT EXECUTED a0009614: 0a000008 beq a000963c <_POSIX_Timer_TSR+0x74> <== NOT EXECUTED
return;
/* Store the time when the timer was started again */
_TOD_Get( &ptimer->time );
a0009618: e284006c add r0, r4, #108 ; 0x6c <== NOT EXECUTED a000961c: eb000549 bl a000ab48 <_TOD_Get> <== NOT EXECUTED
/* The state really did not change but just to be safe */
ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;
a0009620: e3a03003 mov r3, #3 <== NOT EXECUTED
} else {
/* Indicates that the timer is stopped */
ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;
a0009624: e5c4303c strb r3, [r4, #60] ; 0x3c <== NOT EXECUTED
/*
* The sending of the signal to the process running the handling function
* specified for that signal is simulated
*/
if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) {
a0009628: e5940038 ldr r0, [r4, #56] ; 0x38 <== NOT EXECUTED a000962c: e5941044 ldr r1, [r4, #68] ; 0x44 <== NOT EXECUTED a0009630: eb001691 bl a000f07c <pthread_kill> <== NOT EXECUTED
}
/* After the signal handler returns, the count of expirations of the
* timer must be set to 0.
*/
ptimer->overrun = 0;
a0009634: e3a03000 mov r3, #0 <== NOT EXECUTED a0009638: e5843068 str r3, [r4, #104] ; 0x68 <== NOT EXECUTED
}
a000963c: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000e27c <_POSIX_signals_Abnormal_termination_handler>:
sigset_t _POSIX_signals_Pending;
void _POSIX_signals_Abnormal_termination_handler(
int signo __attribute__((unused)) )
{
a000e27c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
exit( 1 );
a000e280: e3a00001 mov r0, #1 <== NOT EXECUTED a000e284: eb000b7c bl a001107c <exit> <== NOT EXECUTED
a000b1b8 <_POSIX_signals_Alarm_TSR>:
void _POSIX_signals_Alarm_TSR(
Objects_Id id __attribute__((unused)),
void *argument __attribute__((unused))
)
{
a000b1b8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
int status;
status = kill( getpid(), SIGALRM );
a000b1bc: ebfff532 bl a000868c <getpid> <== NOT EXECUTED a000b1c0: e3a0100e mov r1, #14 <== NOT EXECUTED
/* XXX can't print from an ISR, should this be fatal? */ }
a000b1c4: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED
void *argument __attribute__((unused))
)
{
int status;
status = kill( getpid(), SIGALRM );
a000b1c8: ea00004a b a000b2f8 <kill> <== NOT EXECUTED
a00108f0 <_POSIX_signals_Check_signal>:
bool _POSIX_signals_Check_signal(
POSIX_API_Control *api,
int signo,
bool is_global
)
{
a00108f0: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED
a00108f4: e24dd038 sub sp, sp, #56 ; 0x38 <== NOT EXECUTED
a00108f8: e20230ff and r3, r2, #255 ; 0xff <== NOT EXECUTED
siginfo_t siginfo_struct;
sigset_t saved_signals_blocked;
Thread_Wait_information stored_thread_wait_information;
if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,
a00108fc: e28da02c add sl, sp, #44 ; 0x2c <== NOT EXECUTED a0010900: e3a02001 mov r2, #1 <== NOT EXECUTED a0010904: e58d2000 str r2, [sp] <== NOT EXECUTED a0010908: e1a0200a mov r2, sl <== NOT EXECUTED
bool _POSIX_signals_Check_signal(
POSIX_API_Control *api,
int signo,
bool is_global
)
{
a001090c: e1a04000 mov r4, r0 <== NOT EXECUTED a0010910: e1a05001 mov r5, r1 <== NOT EXECUTED
siginfo_t siginfo_struct;
sigset_t saved_signals_blocked;
Thread_Wait_information stored_thread_wait_information;
if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,
a0010914: eb000031 bl a00109e0 <_POSIX_signals_Clear_signals> <== NOT EXECUTED a0010918: e3500000 cmp r0, #0 <== NOT EXECUTED a001091c: 0a00002b beq a00109d0 <_POSIX_signals_Check_signal+0xe0> <== NOT EXECUTED
#endif
/*
* Just to prevent sending a signal which is currently being ignored.
*/
if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN )
a0010920: e3a0800c mov r8, #12 <== NOT EXECUTED a0010924: e59f60ac ldr r6, [pc, #172] ; a00109d8 <_POSIX_signals_Check_signal+0xe8><== NOT EXECUTED a0010928: e0080895 mul r8, r5, r8 <== NOT EXECUTED a001092c: e0863008 add r3, r6, r8 <== NOT EXECUTED a0010930: e593c008 ldr ip, [r3, #8] <== NOT EXECUTED a0010934: e35c0001 cmp ip, #1 <== NOT EXECUTED
return false;
a0010938: 03a00000 moveq r0, #0 <== NOT EXECUTED
#endif
/*
* Just to prevent sending a signal which is currently being ignored.
*/
if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN )
a001093c: 0a000023 beq a00109d0 <_POSIX_signals_Check_signal+0xe0> <== NOT EXECUTED
return false;
/*
* Block the signals requested in sa_mask
*/
saved_signals_blocked = api->signals_blocked;
a0010940: e59490d0 ldr r9, [r4, #208] ; 0xd0 <== NOT EXECUTED
api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;
a0010944: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
/* * We have to save the blocking information of the current wait queue * because the signal handler may subsequently go on and put the thread * on a wait queue, for its own purposes. */ memcpy( &stored_thread_wait_information, &_Thread_Executing->Wait,
a0010948: e28de004 add lr, sp, #4 <== NOT EXECUTED
/*
* Block the signals requested in sa_mask
*/
saved_signals_blocked = api->signals_blocked;
api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;
a001094c: e1833009 orr r3, r3, r9 <== NOT EXECUTED a0010950: e58430d0 str r3, [r4, #208] ; 0xd0 <== NOT EXECUTED
/* * We have to save the blocking information of the current wait queue * because the signal handler may subsequently go on and put the thread * on a wait queue, for its own purposes. */ memcpy( &stored_thread_wait_information, &_Thread_Executing->Wait,
a0010954: e59f3080 ldr r3, [pc, #128] ; a00109dc <_POSIX_signals_Check_signal+0xec><== NOT EXECUTED
a0010958: e5937004 ldr r7, [r3, #4] <== NOT EXECUTED
a001095c: e2877020 add r7, r7, #32 <== NOT EXECUTED
a0010960: e8b7000f ldm r7!, {r0, r1, r2, r3} <== NOT EXECUTED
a0010964: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0010968: e8b7000f ldm r7!, {r0, r1, r2, r3} <== NOT EXECUTED
a001096c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0010970: e8970003 ldm r7, {r0, r1} <== NOT EXECUTED
sizeof( Thread_Wait_information ));
/*
* Here, the signal handler function executes
*/
switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {
a0010974: e7963008 ldr r3, [r6, r8] <== NOT EXECUTED
/* * We have to save the blocking information of the current wait queue * because the signal handler may subsequently go on and put the thread * on a wait queue, for its own purposes. */ memcpy( &stored_thread_wait_information, &_Thread_Executing->Wait,
a0010978: e88e0003 stm lr, {r0, r1} <== NOT EXECUTED
sizeof( Thread_Wait_information ));
/*
* Here, the signal handler function executes
*/
switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {
a001097c: e3530002 cmp r3, #2 <== NOT EXECUTED a0010980: 1a000004 bne a0010998 <_POSIX_signals_Check_signal+0xa8> <== NOT EXECUTED
case SA_SIGINFO:
(*_POSIX_signals_Vectors[ signo ].sa_sigaction)(
a0010984: e1a00005 mov r0, r5 <== NOT EXECUTED a0010988: e1a0100a mov r1, sl <== NOT EXECUTED a001098c: e3a02000 mov r2, #0 <== NOT EXECUTED a0010990: e12fff3c blx ip <== NOT EXECUTED
signo,
&siginfo_struct,
NULL /* context is undefined per 1003.1b-1993, p. 66 */
);
break;
a0010994: ea000001 b a00109a0 <_POSIX_signals_Check_signal+0xb0> <== NOT EXECUTED
default:
(*_POSIX_signals_Vectors[ signo ].sa_handler)( signo );
a0010998: e1a00005 mov r0, r5 <== NOT EXECUTED a001099c: e12fff3c blx ip <== NOT EXECUTED
}
/*
* Restore the blocking information
*/
memcpy( &_Thread_Executing->Wait, &stored_thread_wait_information,
a00109a0: e59f3034 ldr r3, [pc, #52] ; a00109dc <_POSIX_signals_Check_signal+0xec><== NOT EXECUTED
a00109a4: e28d5004 add r5, sp, #4 <== NOT EXECUTED
a00109a8: e593c004 ldr ip, [r3, #4] <== NOT EXECUTED
a00109ac: e8b5000f ldm r5!, {r0, r1, r2, r3} <== NOT EXECUTED
a00109b0: e28cc020 add ip, ip, #32 <== NOT EXECUTED
a00109b4: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a00109b8: e8b5000f ldm r5!, {r0, r1, r2, r3} <== NOT EXECUTED
a00109bc: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a00109c0: e8950003 ldm r5, {r0, r1} <== NOT EXECUTED
a00109c4: e88c0003 stm ip, {r0, r1} <== NOT EXECUTED
sizeof( Thread_Wait_information ));
/*
* Restore the previous set of blocked signals
*/
api->signals_blocked = saved_signals_blocked;
a00109c8: e58490d0 str r9, [r4, #208] ; 0xd0 <== NOT EXECUTED
return true;
a00109cc: e3a00001 mov r0, #1 <== NOT EXECUTED
}
a00109d0: e28dd038 add sp, sp, #56 ; 0x38 <== NOT EXECUTED
a00109d4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
a0010ff0 <_POSIX_signals_Clear_process_signals>:
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0010ff0: e10f1000 mrs r1, CPSR <== NOT EXECUTED a0010ff4: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED a0010ff8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
mask = signo_to_mask( signo );
ISR_Level level;
_ISR_Disable( level );
if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {
a0010ffc: e3a0300c mov r3, #12 <== NOT EXECUTED a0011000: e0030390 mul r3, r0, r3 <== NOT EXECUTED a0011004: e59f2040 ldr r2, [pc, #64] ; a001104c <_POSIX_signals_Clear_process_signals+0x5c><== NOT EXECUTED a0011008: e7922003 ldr r2, [r2, r3] <== NOT EXECUTED a001100c: e3520002 cmp r2, #2 <== NOT EXECUTED a0011010: 1a000005 bne a001102c <_POSIX_signals_Clear_process_signals+0x3c><== NOT EXECUTED
}
if ( clear_signal ) {
_POSIX_signals_Pending &= ~mask;
}
_ISR_Enable( level );
}
a0011014: e59f2034 ldr r2, [pc, #52] ; a0011050 <_POSIX_signals_Clear_process_signals+0x60><== 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 );
a0011018: e283c004 add ip, r3, #4 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {
if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )
a001101c: e7923003 ldr r3, [r2, r3] <== NOT EXECUTED a0011020: e08cc002 add ip, ip, r2 <== NOT EXECUTED a0011024: e153000c cmp r3, ip <== NOT EXECUTED a0011028: 1a000005 bne a0011044 <_POSIX_signals_Clear_process_signals+0x54><== NOT EXECUTED
clear_signal = false;
}
if ( clear_signal ) {
_POSIX_signals_Pending &= ~mask;
a001102c: e59f3020 ldr r3, [pc, #32] ; a0011054 <_POSIX_signals_Clear_process_signals+0x64><== NOT EXECUTED a0011030: e2400001 sub r0, r0, #1 <== NOT EXECUTED a0011034: e3a0c001 mov ip, #1 <== NOT EXECUTED a0011038: e5932000 ldr r2, [r3] <== NOT EXECUTED a001103c: e1c2001c bic r0, r2, ip, lsl r0 <== NOT EXECUTED a0011040: e5830000 str r0, [r3] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0011044: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
}
_ISR_Enable( level );
}
a0011048: e12fff1e bx lr <== NOT EXECUTED
a00109e0 <_POSIX_signals_Clear_signals>:
int signo,
siginfo_t *info,
bool is_global,
bool check_blocked
)
{
a00109e0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a00109e4: e5ddc014 ldrb ip, [sp, #20] <== NOT EXECUTED
a00109e8: e1a04001 mov r4, r1 <== NOT EXECUTED
a00109ec: e1a05002 mov r5, r2 <== NOT EXECUTED
/* set blocked signals based on if checking for them, SIGNAL_ALL_MASK
* insures that no signals are blocked and all are checked.
*/
if ( check_blocked )
a00109f0: e35c0000 cmp ip, #0 <== NOT EXECUTED
static inline sigset_t signo_to_mask(
uint32_t sig
)
{
return 1u << (sig - 1);
a00109f4: e2412001 sub r2, r1, #1 <== NOT EXECUTED a00109f8: e3a01001 mov r1, #1 <== NOT EXECUTED a00109fc: e1a01211 lsl r1, r1, r2 <== NOT EXECUTED
signals_blocked = ~api->signals_blocked;
a0010a00: 159020d0 ldrne r2, [r0, #208] ; 0xd0 <== NOT EXECUTED
int signo,
siginfo_t *info,
bool is_global,
bool check_blocked
)
{
a0010a04: e20330ff and r3, r3, #255 ; 0xff <== NOT EXECUTED
*/
if ( check_blocked )
signals_blocked = ~api->signals_blocked;
else
signals_blocked = SIGNAL_ALL_MASK;
a0010a08: 03e02000 mvneq r2, #0 <== NOT EXECUTED
/* set blocked signals based on if checking for them, SIGNAL_ALL_MASK
* insures that no signals are blocked and all are checked.
*/
if ( check_blocked )
signals_blocked = ~api->signals_blocked;
a0010a0c: 11e02002 mvnne r2, r2 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0010a10: e10f7000 mrs r7, CPSR <== NOT EXECUTED a0010a14: e387c080 orr ip, r7, #128 ; 0x80 <== NOT EXECUTED a0010a18: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
/* XXX is this right for siginfo type signals? */
/* XXX are we sure they can be cleared the same way? */
_ISR_Disable( level );
if ( is_global ) {
a0010a1c: e3530000 cmp r3, #0 <== NOT EXECUTED a0010a20: 0a000029 beq a0010acc <_POSIX_signals_Clear_signals+0xec> <== NOT EXECUTED
if ( mask & (_POSIX_signals_Pending & signals_blocked) ) {
a0010a24: e59f30c8 ldr r3, [pc, #200] ; a0010af4 <_POSIX_signals_Clear_signals+0x114><== NOT EXECUTED a0010a28: e5930000 ldr r0, [r3] <== NOT EXECUTED a0010a2c: e0011000 and r1, r1, r0 <== NOT EXECUTED a0010a30: e0110002 ands r0, r1, r2 <== NOT EXECUTED a0010a34: 0a00002c beq a0010aec <_POSIX_signals_Clear_signals+0x10c> <== NOT EXECUTED
if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {
a0010a38: e3a0300c mov r3, #12 <== NOT EXECUTED a0010a3c: e0030394 mul r3, r4, r3 <== NOT EXECUTED a0010a40: e59f20b0 ldr r2, [pc, #176] ; a0010af8 <_POSIX_signals_Clear_signals+0x118><== NOT EXECUTED a0010a44: e7922003 ldr r2, [r2, r3] <== NOT EXECUTED a0010a48: e3520002 cmp r2, #2 <== NOT EXECUTED a0010a4c: 1a00001b bne a0010ac0 <_POSIX_signals_Clear_signals+0xe0> <== NOT EXECUTED
do_callout = true;
}
}
_ISR_Enable( level );
return do_callout;
}
a0010a50: e59f20a4 ldr r2, [pc, #164] ; a0010afc <_POSIX_signals_Clear_signals+0x11c><== 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 );
a0010a54: e2831004 add r1, r3, #4 <== NOT EXECUTED a0010a58: e7926003 ldr r6, [r2, r3] <== NOT EXECUTED a0010a5c: e0811002 add r1, r1, r2 <== NOT EXECUTED a0010a60: e0820003 add r0, r2, r3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
a0010a64: e1560001 cmp r6, r1 <== 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;
a0010a68: 15961000 ldrne r1, [r6] <== NOT EXECUTED
)
{
if ( !_Chain_Is_empty(the_chain))
return _Chain_Get_first_unprotected(the_chain);
else
return NULL;
a0010a6c: 03a06000 moveq r6, #0 <== 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;
new_first->previous = head;
a0010a70: 15810004 strne r0, [r1, #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;
a0010a74: 17821003 strne r1, [r2, r3] <== NOT EXECUTED
if ( is_global ) {
if ( mask & (_POSIX_signals_Pending & signals_blocked) ) {
if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {
psiginfo = (POSIX_signals_Siginfo_node *)
_Chain_Get_unprotected( &_POSIX_signals_Siginfo[ signo ] );
_POSIX_signals_Clear_process_signals( signo );
a0010a78: e1a00004 mov r0, r4 <== NOT EXECUTED a0010a7c: eb00015b bl a0010ff0 <_POSIX_signals_Clear_process_signals><== NOT EXECUTED
/*
* It may be impossible to get here with an empty chain
* BUT until that is proven we need to be defensive and
* protect against it.
*/
if ( psiginfo ) {
a0010a80: e3560000 cmp r6, #0 <== NOT EXECUTED a0010a84: 0a00000d beq a0010ac0 <_POSIX_signals_Clear_signals+0xe0> <== NOT EXECUTED
*info = psiginfo->Info;
a0010a88: e5962008 ldr r2, [r6, #8] <== NOT EXECUTED a0010a8c: e1a03005 mov r3, r5 <== NOT EXECUTED a0010a90: e4832004 str r2, [r3], #4 <== NOT EXECUTED a0010a94: e596200c ldr r2, [r6, #12] <== NOT EXECUTED a0010a98: e5852004 str r2, [r5, #4] <== NOT EXECUTED a0010a9c: e5962010 ldr r2, [r6, #16] <== NOT EXECUTED a0010aa0: e5832004 str r2, [r3, #4] <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
a0010aa4: e59f3054 ldr r3, [pc, #84] ; a0010b00 <_POSIX_signals_Clear_signals+0x120><== NOT EXECUTED a0010aa8: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED
the_node->next = tail;
a0010aac: e2831004 add r1, r3, #4 <== NOT EXECUTED a0010ab0: e5861000 str r1, [r6] <== NOT EXECUTED
tail->previous = the_node;
a0010ab4: e5836008 str r6, [r3, #8] <== NOT EXECUTED
old_last->next = the_node;
a0010ab8: e5826000 str r6, [r2] <== NOT EXECUTED
the_node->previous = old_last;
a0010abc: e5862004 str r2, [r6, #4] <== NOT EXECUTED
&psiginfo->Node
);
} else
do_callout = false;
}
_POSIX_signals_Clear_process_signals( signo );
a0010ac0: e1a00004 mov r0, r4 <== NOT EXECUTED a0010ac4: eb000149 bl a0010ff0 <_POSIX_signals_Clear_process_signals><== NOT EXECUTED a0010ac8: ea000006 b a0010ae8 <_POSIX_signals_Clear_signals+0x108> <== NOT EXECUTED
do_callout = true;
}
} else {
if ( mask & (api->signals_pending & signals_blocked) ) {
a0010acc: e590c0d4 ldr ip, [r0, #212] ; 0xd4 <== NOT EXECUTED a0010ad0: e001400c and r4, r1, ip <== NOT EXECUTED a0010ad4: e1140002 tst r4, r2 <== NOT EXECUTED
bool do_callout;
POSIX_signals_Siginfo_node *psiginfo;
mask = signo_to_mask( signo );
do_callout = false;
a0010ad8: 01a00003 moveq r0, r3 <== NOT EXECUTED
}
_POSIX_signals_Clear_process_signals( signo );
do_callout = true;
}
} else {
if ( mask & (api->signals_pending & signals_blocked) ) {
a0010adc: 0a000002 beq a0010aec <_POSIX_signals_Clear_signals+0x10c> <== NOT EXECUTED
api->signals_pending &= ~mask;
a0010ae0: e1cc1001 bic r1, ip, r1 <== NOT EXECUTED a0010ae4: e58010d4 str r1, [r0, #212] ; 0xd4 <== NOT EXECUTED
do_callout = true;
a0010ae8: e3a00001 mov r0, #1 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0010aec: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
}
}
_ISR_Enable( level );
return do_callout;
}
a0010af0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000a0f4 <_POSIX_signals_Get_lowest>:
sigset_t set
)
{
int signo;
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
a000a0f4: e3a0301b mov r3, #27 <== NOT EXECUTED
static inline sigset_t signo_to_mask(
uint32_t sig
)
{
return 1u << (sig - 1);
a000a0f8: e3a02001 mov r2, #1 <== NOT EXECUTED
#include <rtems/posix/psignal.h>
#include <rtems/seterr.h>
#include <rtems/posix/time.h>
#include <rtems/score/isr.h>
int _POSIX_signals_Get_lowest(
a000a0fc: e2431001 sub r1, r3, #1 <== NOT EXECUTED
)
{
int signo;
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
if ( set & signo_to_mask( signo ) ) {
a000a100: e0101112 ands r1, r0, r2, lsl r1 <== NOT EXECUTED a000a104: 1a00000a bne a000a134 <_POSIX_signals_Get_lowest+0x40> <== NOT EXECUTED
sigset_t set
)
{
int signo;
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
a000a108: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a10c: e3530020 cmp r3, #32 <== NOT EXECUTED a000a110: 1afffff9 bne a000a0fc <_POSIX_signals_Get_lowest+0x8> <== NOT EXECUTED a000a114: e3a03001 mov r3, #1 <== NOT EXECUTED a000a118: e1a02003 mov r2, r3 <== NOT EXECUTED
#include <rtems/posix/psignal.h>
#include <rtems/seterr.h>
#include <rtems/posix/time.h>
#include <rtems/score/isr.h>
int _POSIX_signals_Get_lowest(
a000a11c: e2431001 sub r1, r3, #1 <== NOT EXECUTED
#if (SIGHUP != 1)
#error "Assumption that SIGHUP==1 violated!!"
#endif
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
if ( set & signo_to_mask( signo ) ) {
a000a120: e0101112 ands r1, r0, r2, lsl r1 <== NOT EXECUTED a000a124: 1a000002 bne a000a134 <_POSIX_signals_Get_lowest+0x40> <== NOT EXECUTED
*/
#if (SIGHUP != 1)
#error "Assumption that SIGHUP==1 violated!!"
#endif
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
a000a128: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a12c: e353001b cmp r3, #27 <== NOT EXECUTED a000a130: 1afffff9 bne a000a11c <_POSIX_signals_Get_lowest+0x28> <== NOT EXECUTED
* a return 0. This routine will NOT be called unless a signal * is pending in the set passed in. */ found_it: return signo; }
a000a134: e1a00003 mov r0, r3 <== NOT EXECUTED a000a138: e12fff1e bx lr <== NOT EXECUTED
a000e288 <_POSIX_signals_Post_switch_extension>:
*/
void _POSIX_signals_Post_switch_extension(
Thread_Control *the_thread
)
{
a000e288: e92d4070 push {r4, r5, r6, lr}
POSIX_API_Control *api;
int signo;
ISR_Level level;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
a000e28c: e59040fc ldr r4, [r0, #252] ; 0xfc
/*
* api may be NULL in case of a thread close in progress
*/
if ( !api )
a000e290: e3540000 cmp r4, #0
a000e294: 0a000025 beq a000e330 <_POSIX_signals_Post_switch_extension+0xa8>
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
if ( !(~api->signals_blocked &
(api->signals_pending | _POSIX_signals_Pending)) ) {
a000e298: e59f6094 ldr r6, [pc, #148] ; a000e334 <_POSIX_signals_Post_switch_extension+0xac>
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000e29c: e10f3000 mrs r3, CPSR a000e2a0: e3832080 orr r2, r3, #128 ; 0x80 a000e2a4: e129f002 msr CPSR_fc, r2 a000e2a8: e5961000 ldr r1, [r6] a000e2ac: e59420d4 ldr r2, [r4, #212] ; 0xd4 a000e2b0: e1812002 orr r2, r1, r2
* The first thing done is to check there are any signals to be
* processed at all. No point in doing this loop otherwise.
*/
while (1) {
_ISR_Disable( level );
if ( !(~api->signals_blocked &
a000e2b4: e59410d0 ldr r1, [r4, #208] ; 0xd0 a000e2b8: e1d21001 bics r1, r2, r1
a000e2bc: 1a000001 bne a000e2c8 <_POSIX_signals_Post_switch_extension+0x40>
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000e2c0: e129f003 msr CPSR_fc, r3
a000e2c4: e8bd8070 pop {r4, r5, r6, pc}
a000e2c8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
break;
}
_ISR_Enable( level );
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
a000e2cc: e3a0501b mov r5, #27 <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, false );
a000e2d0: e1a01005 mov r1, r5 <== NOT EXECUTED a000e2d4: e3a02000 mov r2, #0 <== NOT EXECUTED a000e2d8: e1a00004 mov r0, r4 <== NOT EXECUTED a000e2dc: eb000983 bl a00108f0 <_POSIX_signals_Check_signal> <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, true );
a000e2e0: e1a01005 mov r1, r5 <== NOT EXECUTED a000e2e4: e1a00004 mov r0, r4 <== NOT EXECUTED a000e2e8: e3a02001 mov r2, #1 <== NOT EXECUTED
_ISR_Enable( level );
break;
}
_ISR_Enable( level );
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
a000e2ec: e2855001 add r5, r5, #1 <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
a000e2f0: eb00097e bl a00108f0 <_POSIX_signals_Check_signal> <== NOT EXECUTED
_ISR_Enable( level );
break;
}
_ISR_Enable( level );
for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {
a000e2f4: e3550020 cmp r5, #32 <== NOT EXECUTED a000e2f8: 1afffff4 bne a000e2d0 <_POSIX_signals_Post_switch_extension+0x48><== NOT EXECUTED a000e2fc: e3a05001 mov r5, #1 <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, true );
}
/* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
_POSIX_signals_Check_signal( api, signo, false );
a000e300: e1a01005 mov r1, r5 <== NOT EXECUTED a000e304: e3a02000 mov r2, #0 <== NOT EXECUTED a000e308: e1a00004 mov r0, r4 <== NOT EXECUTED a000e30c: eb000977 bl a00108f0 <_POSIX_signals_Check_signal> <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, true );
a000e310: e1a01005 mov r1, r5 <== NOT EXECUTED a000e314: e1a00004 mov r0, r4 <== NOT EXECUTED a000e318: e3a02001 mov r2, #1 <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
}
/* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
a000e31c: e2855001 add r5, r5, #1 <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
a000e320: eb000972 bl a00108f0 <_POSIX_signals_Check_signal> <== NOT EXECUTED
_POSIX_signals_Check_signal( api, signo, false );
_POSIX_signals_Check_signal( api, signo, true );
}
/* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {
a000e324: e355001b cmp r5, #27 <== NOT EXECUTED
a000e328: 1afffff4 bne a000e300 <_POSIX_signals_Post_switch_extension+0x78><== NOT EXECUTED
a000e32c: eaffffda b a000e29c <_POSIX_signals_Post_switch_extension+0x14><== NOT EXECUTED
a000e330: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0025a30 <_POSIX_signals_Set_process_signals>:
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0025a30: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0025a34: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a0025a38: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
)
{
ISR_Level level;
_ISR_Disable( level );
_POSIX_signals_Pending |= mask;
a0025a3c: e59f3010 ldr r3, [pc, #16] ; a0025a54 <_POSIX_signals_Set_process_signals+0x24><== NOT EXECUTED a0025a40: e5931000 ldr r1, [r3] <== NOT EXECUTED a0025a44: e1800001 orr r0, r0, r1 <== NOT EXECUTED a0025a48: e5830000 str r0, [r3] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0025a4c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_ISR_Enable( level ); }
a0025a50: e12fff1e bx lr <== NOT EXECUTED
a0009264 <_POSIX_signals_Ualarm_TSR>:
void _POSIX_signals_Ualarm_TSR(
Objects_Id id __attribute__((unused)),
void *argument __attribute__((unused))
)
{
a0009264: e92d4010 push {r4, lr} <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Reset(
Watchdog_Control *the_watchdog
)
{
(void) _Watchdog_Remove( the_watchdog );
a0009268: e59f4020 ldr r4, [pc, #32] ; a0009290 <_POSIX_signals_Ualarm_TSR+0x2c><== NOT EXECUTED
/* * Send a SIGALRM but if there is a problem, ignore it. * It's OK, there isn't a way this should fail. */ (void) kill( getpid(), SIGALRM );
a000926c: ebfff47f bl a0006470 <getpid> <== NOT EXECUTED a0009270: e3a0100e mov r1, #14 <== NOT EXECUTED a0009274: ebffff6d bl a0009030 <kill> <== NOT EXECUTED a0009278: e1a00004 mov r0, r4 <== NOT EXECUTED a000927c: eb000ea4 bl a000cd14 <_Watchdog_Remove> <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a0009280: e59f000c ldr r0, [pc, #12] ; a0009294 <_POSIX_signals_Ualarm_TSR+0x30><== NOT EXECUTED a0009284: e1a01004 mov r1, r4 <== NOT EXECUTED
/*
* If the reset interval is non-zero, reschedule ourselves.
*/
_Watchdog_Reset( &_POSIX_signals_Ualarm_timer );
}
a0009288: e8bd4010 pop {r4, lr} <== NOT EXECUTED
a000928c: ea000e48 b a000cbb4 <_Watchdog_Insert> <== NOT EXECUTED
a0025a58 <_POSIX_signals_Unblock_thread>:
bool _POSIX_signals_Unblock_thread(
Thread_Control *the_thread,
int signo,
siginfo_t *info
)
{
a0025a58: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
/*
* Is the thread is specifically waiting for a signal?
*/
if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
a0025a5c: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED a0025a60: e59f5110 ldr r5, [pc, #272] ; a0025b78 <_POSIX_signals_Unblock_thread+0x120><== NOT EXECUTED a0025a64: e59f810c ldr r8, [pc, #268] ; a0025b78 <_POSIX_signals_Unblock_thread+0x120><== NOT EXECUTED a0025a68: e241c001 sub ip, r1, #1 <== NOT EXECUTED a0025a6c: e0035005 and r5, r3, r5 <== NOT EXECUTED a0025a70: e3a06001 mov r6, #1 <== NOT EXECUTED a0025a74: e1550008 cmp r5, r8 <== NOT EXECUTED
bool _POSIX_signals_Unblock_thread(
Thread_Control *the_thread,
int signo,
siginfo_t *info
)
{
a0025a78: e1a04000 mov r4, r0 <== NOT EXECUTED
POSIX_API_Control *api;
sigset_t mask;
siginfo_t *the_info = NULL;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
a0025a7c: e59070fc ldr r7, [r0, #252] ; 0xfc <== NOT EXECUTED a0025a80: e1a0cc16 lsl ip, r6, ip <== NOT EXECUTED
/*
* Is the thread is specifically waiting for a signal?
*/
if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
a0025a84: 1a000019 bne a0025af0 <_POSIX_signals_Unblock_thread+0x98> <== NOT EXECUTED
if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
a0025a88: e5903030 ldr r3, [r0, #48] ; 0x30 <== NOT EXECUTED a0025a8c: e11c0003 tst ip, r3 <== NOT EXECUTED a0025a90: 1a000002 bne a0025aa0 <_POSIX_signals_Unblock_thread+0x48> <== NOT EXECUTED a0025a94: e59750d0 ldr r5, [r7, #208] ; 0xd0 <== NOT EXECUTED a0025a98: e1dc5005 bics r5, ip, r5 <== NOT EXECUTED a0025a9c: 0a000033 beq a0025b70 <_POSIX_signals_Unblock_thread+0x118><== NOT EXECUTED
the_thread->Wait.return_code = EINTR;
a0025aa0: e3a03004 mov r3, #4 <== NOT EXECUTED
the_info = (siginfo_t *) the_thread->Wait.return_argument;
if ( !info ) {
a0025aa4: e3520000 cmp r2, #0 <== NOT EXECUTED
*/
if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
the_thread->Wait.return_code = EINTR;
a0025aa8: e5843034 str r3, [r4, #52] ; 0x34 <== NOT EXECUTED
the_info = (siginfo_t *) the_thread->Wait.return_argument;
a0025aac: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED
if ( !info ) {
the_info->si_signo = signo;
a0025ab0: 05831000 streq r1, [r3] <== NOT EXECUTED
the_info->si_code = SI_USER;
a0025ab4: 03a01001 moveq r1, #1 <== NOT EXECUTED
a0025ab8: 09830006 stmibeq r3, {r1, r2} <== NOT EXECUTED
a0025abc: 0a000007 beq a0025ae0 <_POSIX_signals_Unblock_thread+0x88> <== NOT EXECUTED
the_info->si_value.sival_int = 0;
} else {
*the_info = *info;
a0025ac0: e1a00002 mov r0, r2 <== NOT EXECUTED a0025ac4: e490c004 ldr ip, [r0], #4 <== NOT EXECUTED a0025ac8: e1a01003 mov r1, r3 <== NOT EXECUTED a0025acc: e481c004 str ip, [r1], #4 <== NOT EXECUTED a0025ad0: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED a0025ad4: e5832004 str r2, [r3, #4] <== NOT EXECUTED a0025ad8: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED a0025adc: e5813004 str r3, [r1, #4] <== NOT EXECUTED
}
_Thread_queue_Extract_with_proxy( the_thread );
a0025ae0: e1a00004 mov r0, r4 <== NOT EXECUTED a0025ae4: ebffad08 bl a0010f0c <_Thread_queue_Extract_with_proxy> <== NOT EXECUTED
return true;
a0025ae8: e3a05001 mov r5, #1 <== NOT EXECUTED a0025aec: ea00001f b a0025b70 <_POSIX_signals_Unblock_thread+0x118> <== NOT EXECUTED
}
/*
* Thread is not waiting due to a sigwait.
*/
if ( ~api->signals_blocked & mask ) {
a0025af0: e59750d0 ldr r5, [r7, #208] ; 0xd0 <== NOT EXECUTED a0025af4: e1dc5005 bics r5, ip, r5 <== NOT EXECUTED a0025af8: 0a00001c beq a0025b70 <_POSIX_signals_Unblock_thread+0x118><== NOT EXECUTED
* it is not blocked, THEN
* we need to dispatch at the end of this ISR.
* + Any other combination, do nothing.
*/
if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
a0025afc: e2135201 ands r5, r3, #268435456 ; 0x10000000 <== NOT EXECUTED a0025b00: 0a000010 beq a0025b48 <_POSIX_signals_Unblock_thread+0xf0> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
States_Control the_states
)
{
return (the_states & STATES_WAITING_ON_THREAD_QUEUE);
a0025b04: e59f5070 ldr r5, [pc, #112] ; a0025b7c <_POSIX_signals_Unblock_thread+0x124><== NOT EXECUTED
the_thread->Wait.return_code = EINTR;
a0025b08: e3a02004 mov r2, #4 <== NOT EXECUTED a0025b0c: e5802034 str r2, [r0, #52] ; 0x34 <== NOT EXECUTED a0025b10: e0035005 and r5, r3, r5 <== NOT EXECUTED
/*
* In pthread_cond_wait, a thread will be blocking on a thread
* queue, but is also interruptible by a POSIX signal.
*/
if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
a0025b14: e3550000 cmp r5, #0 <== NOT EXECUTED a0025b18: 0a000002 beq a0025b28 <_POSIX_signals_Unblock_thread+0xd0> <== NOT EXECUTED
_Thread_queue_Extract_with_proxy( the_thread );
a0025b1c: ebffacfa bl a0010f0c <_Thread_queue_Extract_with_proxy> <== NOT EXECUTED
} else if ( the_thread->current_state == STATES_READY ) {
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
_Thread_Dispatch_necessary = true;
}
}
return false;
a0025b20: e3a05000 mov r5, #0 <== NOT EXECUTED a0025b24: ea000011 b a0025b70 <_POSIX_signals_Unblock_thread+0x118> <== NOT EXECUTED
* In pthread_cond_wait, a thread will be blocking on a thread
* queue, but is also interruptible by a POSIX signal.
*/
if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
_Thread_queue_Extract_with_proxy( the_thread );
else if ( _States_Is_delaying(the_thread->current_state) ) {
a0025b28: e2133008 ands r3, r3, #8 <== NOT EXECUTED a0025b2c: 0a00000e beq a0025b6c <_POSIX_signals_Unblock_thread+0x114><== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
a0025b30: e2800048 add r0, r0, #72 ; 0x48 <== NOT EXECUTED a0025b34: ebffaf04 bl a001174c <_Watchdog_Remove> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
a0025b38: e1a00004 mov r0, r4 <== NOT EXECUTED a0025b3c: e59f103c ldr r1, [pc, #60] ; a0025b80 <_POSIX_signals_Unblock_thread+0x128><== NOT EXECUTED a0025b40: ebffaa77 bl a0010524 <_Thread_Clear_state> <== NOT EXECUTED a0025b44: ea000009 b a0025b70 <_POSIX_signals_Unblock_thread+0x118> <== NOT EXECUTED
_Thread_Unblock( the_thread );
}
} else if ( the_thread->current_state == STATES_READY ) {
a0025b48: e3530000 cmp r3, #0 <== NOT EXECUTED a0025b4c: 1a000007 bne a0025b70 <_POSIX_signals_Unblock_thread+0x118><== NOT EXECUTED
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
a0025b50: e59f202c ldr r2, [pc, #44] ; a0025b84 <_POSIX_signals_Unblock_thread+0x12c><== NOT EXECUTED a0025b54: e5925000 ldr r5, [r2] <== NOT EXECUTED a0025b58: e3550000 cmp r5, #0 <== NOT EXECUTED a0025b5c: 0a000003 beq a0025b70 <_POSIX_signals_Unblock_thread+0x118><== NOT EXECUTED a0025b60: e5921004 ldr r1, [r2, #4] <== NOT EXECUTED a0025b64: e1500001 cmp r0, r1 <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
a0025b68: 05c26010 strbeq r6, [r2, #16] <== NOT EXECUTED
}
}
return false;
a0025b6c: e1a05003 mov r5, r3 <== NOT EXECUTED
}
a0025b70: e1a00005 mov r0, r5 <== NOT EXECUTED
a0025b74: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000b0c8 <_Protected_heap_Extend>:
bool _Protected_heap_Extend(
Heap_Control *the_heap,
void *starting_address,
uintptr_t size
)
{
a000b0c8: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
bool extend_ok;
uintptr_t amount_extended;
_RTEMS_Lock_allocator();
a000b0cc: e59f4038 ldr r4, [pc, #56] ; a000b10c <_Protected_heap_Extend+0x44><== NOT EXECUTED
bool _Protected_heap_Extend(
Heap_Control *the_heap,
void *starting_address,
uintptr_t size
)
{
a000b0d0: e1a05000 mov r5, r0 <== NOT EXECUTED a000b0d4: e1a07001 mov r7, r1 <== NOT EXECUTED a000b0d8: e1a06002 mov r6, r2 <== NOT EXECUTED
bool extend_ok;
uintptr_t amount_extended;
_RTEMS_Lock_allocator();
a000b0dc: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b0e0: ebfffbbe bl a0009fe0 <_API_Mutex_Lock> <== NOT EXECUTED
extend_ok = _Heap_Extend(the_heap, starting_address, size, &amount_extended);
a000b0e4: e1a01007 mov r1, r7 <== NOT EXECUTED a000b0e8: e1a02006 mov r2, r6 <== NOT EXECUTED a000b0ec: e1a0300d mov r3, sp <== NOT EXECUTED a000b0f0: e1a00005 mov r0, r5 <== NOT EXECUTED a000b0f4: eb00110f bl a000f538 <_Heap_Extend> <== NOT EXECUTED a000b0f8: e1a05000 mov r5, r0 <== NOT EXECUTED
_RTEMS_Unlock_allocator();
a000b0fc: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b100: ebfffbcf bl a000a044 <_API_Mutex_Unlock> <== NOT EXECUTED
return extend_ok; }
a000b104: e1a00005 mov r0, r5 <== NOT EXECUTED
a000b108: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000adf8 <_Protected_heap_Free>:
bool _Protected_heap_Free(
Heap_Control *the_heap,
void *start_address
)
{
a000adf8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
bool status;
_RTEMS_Lock_allocator();
a000adfc: e59f402c ldr r4, [pc, #44] ; a000ae30 <_Protected_heap_Free+0x38><== NOT EXECUTED
bool _Protected_heap_Free(
Heap_Control *the_heap,
void *start_address
)
{
a000ae00: e1a05000 mov r5, r0 <== NOT EXECUTED a000ae04: e1a06001 mov r6, r1 <== NOT EXECUTED
bool status;
_RTEMS_Lock_allocator();
a000ae08: e5940000 ldr r0, [r4] <== NOT EXECUTED a000ae0c: ebfffb9b bl a0009c80 <_API_Mutex_Lock> <== NOT EXECUTED
status = _Heap_Free( the_heap, start_address );
a000ae10: e1a01006 mov r1, r6 <== NOT EXECUTED a000ae14: e1a00005 mov r0, r5 <== NOT EXECUTED a000ae18: eb0010f8 bl a000f200 <_Heap_Free> <== NOT EXECUTED a000ae1c: e1a05000 mov r5, r0 <== NOT EXECUTED
_RTEMS_Unlock_allocator();
a000ae20: e5940000 ldr r0, [r4] <== NOT EXECUTED a000ae24: ebfffbae bl a0009ce4 <_API_Mutex_Unlock> <== NOT EXECUTED
return status; }
a000ae28: e1a00005 mov r0, r5 <== NOT EXECUTED
a000ae2c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000fe98 <_Protected_heap_Get_free_information>:
bool _Protected_heap_Get_free_information(
Heap_Control *the_heap,
Heap_Information *info
)
{
a000fe98: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
/*
* TBD: _Heap_Get_free_information does not error check or return status.
*/
_RTEMS_Lock_allocator();
a000fe9c: e59f4028 ldr r4, [pc, #40] ; a000fecc <_Protected_heap_Get_free_information+0x34><== NOT EXECUTED
bool _Protected_heap_Get_free_information(
Heap_Control *the_heap,
Heap_Information *info
)
{
a000fea0: e1a05000 mov r5, r0 <== NOT EXECUTED a000fea4: e1a06001 mov r6, r1 <== NOT EXECUTED
/*
* TBD: _Heap_Get_free_information does not error check or return status.
*/
_RTEMS_Lock_allocator();
a000fea8: e5940000 ldr r0, [r4] <== NOT EXECUTED a000feac: ebfff89d bl a000e128 <_API_Mutex_Lock> <== NOT EXECUTED
_Heap_Get_free_information( the_heap, info );
a000feb0: e1a00005 mov r0, r5 <== NOT EXECUTED a000feb4: e1a01006 mov r1, r6 <== NOT EXECUTED a000feb8: eb0011c6 bl a00145d8 <_Heap_Get_free_information> <== NOT EXECUTED
_RTEMS_Unlock_allocator();
a000febc: e5940000 ldr r0, [r4] <== NOT EXECUTED a000fec0: ebfff8b1 bl a000e18c <_API_Mutex_Unlock> <== NOT EXECUTED
return true;
}
a000fec4: e3a00001 mov r0, #1 <== NOT EXECUTED
a000fec8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000b4cc <_Protected_heap_Get_information>:
bool _Protected_heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
a000b4cc: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
if ( !the_heap )
a000b4d0: e2506000 subs r6, r0, #0 <== NOT EXECUTED
bool _Protected_heap_Get_information(
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
a000b4d4: e1a05001 mov r5, r1 <== NOT EXECUTED
if ( !the_heap )
a000b4d8: 0a00000b beq a000b50c <_Protected_heap_Get_information+0x40><== NOT EXECUTED
return false;
if ( !the_info )
a000b4dc: e3510000 cmp r1, #0 <== NOT EXECUTED a000b4e0: 0a00000b beq a000b514 <_Protected_heap_Get_information+0x48><== NOT EXECUTED
return false;
_RTEMS_Lock_allocator();
a000b4e4: e59f4030 ldr r4, [pc, #48] ; a000b51c <_Protected_heap_Get_information+0x50><== NOT EXECUTED a000b4e8: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b4ec: ebfffbad bl a000a3a8 <_API_Mutex_Lock> <== NOT EXECUTED
_Heap_Get_information( the_heap, the_info );
a000b4f0: e1a00006 mov r0, r6 <== NOT EXECUTED a000b4f4: e1a01005 mov r1, r5 <== NOT EXECUTED a000b4f8: eb001232 bl a000fdc8 <_Heap_Get_information> <== NOT EXECUTED
_RTEMS_Unlock_allocator();
a000b4fc: e5940000 ldr r0, [r4] <== NOT EXECUTED a000b500: ebfffbc1 bl a000a40c <_API_Mutex_Unlock> <== NOT EXECUTED
return true;
a000b504: e3a00001 mov r0, #1 <== NOT EXECUTED
a000b508: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
Heap_Control *the_heap,
Heap_Information_block *the_info
)
{
if ( !the_heap )
return false;
a000b50c: e1a00006 mov r0, r6 <== NOT EXECUTED
a000b510: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
if ( !the_info )
return false;
a000b514: e1a00001 mov r0, r1 <== NOT EXECUTED
_RTEMS_Lock_allocator();
_Heap_Get_information( the_heap, the_info );
_RTEMS_Unlock_allocator();
return true;
}
a000b518: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a001643c <_Protected_heap_Resize_block>:
bool _Protected_heap_Resize_block(
Heap_Control *the_heap,
void *starting_address,
uintptr_t size
)
{
a001643c: e92d40f7 push {r0, r1, r2, r4, r5, r6, r7, lr} <== NOT EXECUTED
Heap_Resize_status status;
uintptr_t old_mem_size;
uintptr_t avail_mem_size;
_RTEMS_Lock_allocator();
a0016440: e59f4044 ldr r4, [pc, #68] ; a001648c <_Protected_heap_Resize_block+0x50><== NOT EXECUTED
bool _Protected_heap_Resize_block(
Heap_Control *the_heap,
void *starting_address,
uintptr_t size
)
{
a0016444: e1a05000 mov r5, r0 <== NOT EXECUTED a0016448: e1a07001 mov r7, r1 <== NOT EXECUTED
Heap_Resize_status status;
uintptr_t old_mem_size;
uintptr_t avail_mem_size;
_RTEMS_Lock_allocator();
a001644c: e5940000 ldr r0, [r4] <== NOT EXECUTED
bool _Protected_heap_Resize_block(
Heap_Control *the_heap,
void *starting_address,
uintptr_t size
)
{
a0016450: e1a06002 mov r6, r2 <== NOT EXECUTED
Heap_Resize_status status;
uintptr_t old_mem_size;
uintptr_t avail_mem_size;
_RTEMS_Lock_allocator();
a0016454: ebffce09 bl a0009c80 <_API_Mutex_Lock> <== NOT EXECUTED
status = _Heap_Resize_block(
a0016458: e28d3004 add r3, sp, #4 <== NOT EXECUTED a001645c: e58d3000 str r3, [sp] <== NOT EXECUTED a0016460: e1a01007 mov r1, r7 <== NOT EXECUTED a0016464: e1a02006 mov r2, r6 <== NOT EXECUTED a0016468: e28d3008 add r3, sp, #8 <== NOT EXECUTED a001646c: e1a00005 mov r0, r5 <== NOT EXECUTED a0016470: eb000006 bl a0016490 <_Heap_Resize_block> <== NOT EXECUTED a0016474: e1a05000 mov r5, r0 <== NOT EXECUTED
the_heap, starting_address, size, &old_mem_size, &avail_mem_size );
_RTEMS_Unlock_allocator();
a0016478: e5940000 ldr r0, [r4] <== NOT EXECUTED a001647c: ebffce18 bl a0009ce4 <_API_Mutex_Unlock> <== NOT EXECUTED
return (status == HEAP_RESIZE_SUCCESSFUL); }
a0016480: e2750001 rsbs r0, r5, #1 <== NOT EXECUTED
a0016484: 33a00000 movcc r0, #0 <== NOT EXECUTED
a0016488: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000ff80 <_Protected_heap_Walk>:
* then it is forbidden to lock a mutex. But since we are inside
* a critical section, it should be safe to walk it unlocked.
*
* NOTE: Dispatching is also disabled during initialization.
*/
if ( !_Thread_Dispatch_disable_level ) {
a000ff80: e59f3054 ldr r3, [pc, #84] ; a000ffdc <_Protected_heap_Walk+0x5c><== NOT EXECUTED
bool _Protected_heap_Walk(
Heap_Control *the_heap,
int source,
bool do_dump
)
{
a000ff84: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
* then it is forbidden to lock a mutex. But since we are inside
* a critical section, it should be safe to walk it unlocked.
*
* NOTE: Dispatching is also disabled during initialization.
*/
if ( !_Thread_Dispatch_disable_level ) {
a000ff88: e5933000 ldr r3, [r3] <== NOT EXECUTED
bool _Protected_heap_Walk(
Heap_Control *the_heap,
int source,
bool do_dump
)
{
a000ff8c: e1a06000 mov r6, r0 <== NOT EXECUTED a000ff90: e1a05001 mov r5, r1 <== NOT EXECUTED
* then it is forbidden to lock a mutex. But since we are inside
* a critical section, it should be safe to walk it unlocked.
*
* NOTE: Dispatching is also disabled during initialization.
*/
if ( !_Thread_Dispatch_disable_level ) {
a000ff94: e3530000 cmp r3, #0 <== NOT EXECUTED
bool _Protected_heap_Walk(
Heap_Control *the_heap,
int source,
bool do_dump
)
{
a000ff98: e20270ff and r7, r2, #255 ; 0xff <== NOT EXECUTED
* then it is forbidden to lock a mutex. But since we are inside
* a critical section, it should be safe to walk it unlocked.
*
* NOTE: Dispatching is also disabled during initialization.
*/
if ( !_Thread_Dispatch_disable_level ) {
a000ff9c: 1a00000b bne a000ffd0 <_Protected_heap_Walk+0x50> <== NOT EXECUTED
_RTEMS_Lock_allocator();
a000ffa0: e59f4038 ldr r4, [pc, #56] ; a000ffe0 <_Protected_heap_Walk+0x60><== NOT EXECUTED a000ffa4: e5940000 ldr r0, [r4] <== NOT EXECUTED a000ffa8: ebfff85e bl a000e128 <_API_Mutex_Lock> <== NOT EXECUTED
status = _Heap_Walk( the_heap, source, do_dump );
a000ffac: e1a01005 mov r1, r5 <== NOT EXECUTED a000ffb0: e1a02007 mov r2, r7 <== NOT EXECUTED a000ffb4: e1a00006 mov r0, r6 <== NOT EXECUTED a000ffb8: ebfffc38 bl a000f0a0 <_Heap_Walk> <== NOT EXECUTED a000ffbc: e1a05000 mov r5, r0 <== NOT EXECUTED
_RTEMS_Unlock_allocator();
a000ffc0: e5940000 ldr r0, [r4] <== NOT EXECUTED a000ffc4: ebfff870 bl a000e18c <_API_Mutex_Unlock> <== NOT EXECUTED
} else {
status = _Heap_Walk( the_heap, source, do_dump );
}
return status;
}
a000ffc8: e1a00005 mov r0, r5 <== NOT EXECUTED
a000ffcc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
if ( !_Thread_Dispatch_disable_level ) {
_RTEMS_Lock_allocator();
status = _Heap_Walk( the_heap, source, do_dump );
_RTEMS_Unlock_allocator();
} else {
status = _Heap_Walk( the_heap, source, do_dump );
a000ffd0: e1a02007 mov r2, r7 <== NOT EXECUTED
} return status; }
a000ffd4: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED
if ( !_Thread_Dispatch_disable_level ) {
_RTEMS_Lock_allocator();
status = _Heap_Walk( the_heap, source, do_dump );
_RTEMS_Unlock_allocator();
} else {
status = _Heap_Walk( the_heap, source, do_dump );
a000ffd8: eafffc30 b a000f0a0 <_Heap_Walk> <== NOT EXECUTED
a000ed54 <_RTEMS_Tasks_Invoke_task_variable_dtor>:
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
a000ed54: e59f203c ldr r2, [pc, #60] ; a000ed98 <_RTEMS_Tasks_Invoke_task_variable_dtor+0x44><== NOT EXECUTED
)
{
void (*dtor)(void *);
void *value;
dtor = tvp->dtor;
a000ed58: e5913010 ldr r3, [r1, #16] <== NOT EXECUTED
void _RTEMS_Tasks_Invoke_task_variable_dtor(
Thread_Control *the_thread,
rtems_task_variable_t *tvp
)
{
a000ed5c: e92d4010 push {r4, lr} <== NOT EXECUTED
void (*dtor)(void *);
void *value;
dtor = tvp->dtor;
if (_Thread_Is_executing(the_thread)) {
a000ed60: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED
void _RTEMS_Tasks_Invoke_task_variable_dtor(
Thread_Control *the_thread,
rtems_task_variable_t *tvp
)
{
a000ed64: e1a04001 mov r4, r1 <== NOT EXECUTED
void (*dtor)(void *);
void *value;
dtor = tvp->dtor;
if (_Thread_Is_executing(the_thread)) {
a000ed68: e1520000 cmp r2, r0 <== NOT EXECUTED
value = *tvp->ptr;
a000ed6c: 05912004 ldreq r2, [r1, #4] <== NOT EXECUTED
*tvp->ptr = tvp->gval;
a000ed70: 05911008 ldreq r1, [r1, #8] <== NOT EXECUTED
} else {
value = tvp->tval;
a000ed74: 1594000c ldrne r0, [r4, #12] <== NOT EXECUTED
void (*dtor)(void *);
void *value;
dtor = tvp->dtor;
if (_Thread_Is_executing(the_thread)) {
value = *tvp->ptr;
a000ed78: 05920000 ldreq r0, [r2] <== NOT EXECUTED
*tvp->ptr = tvp->gval;
a000ed7c: 05821000 streq r1, [r2] <== NOT EXECUTED
} else {
value = tvp->tval;
}
if ( dtor )
a000ed80: e3530000 cmp r3, #0 <== NOT EXECUTED a000ed84: 0a000000 beq a000ed8c <_RTEMS_Tasks_Invoke_task_variable_dtor+0x38><== NOT EXECUTED
(*dtor)(value);
a000ed88: e12fff33 blx r3 <== NOT EXECUTED
_Workspace_Free(tvp);
a000ed8c: e1a00004 mov r0, r4 <== NOT EXECUTED
}
a000ed90: e8bd4010 pop {r4, lr} <== NOT EXECUTED
}
if ( dtor )
(*dtor)(value);
_Workspace_Free(tvp);
a000ed94: eafff6b0 b a000c85c <_Workspace_Free> <== NOT EXECUTED
a000ec2c <_RTEMS_tasks_Delete_extension>:
/*
* Free per task variable memory
*/
tvp = deleted->task_variables;
deleted->task_variables = NULL;
a000ec2c: e3a03000 mov r3, #0 <== NOT EXECUTED
void _RTEMS_tasks_Delete_extension(
Thread_Control *executing,
Thread_Control *deleted
)
{
a000ec30: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
/*
* Free per task variable memory
*/
tvp = deleted->task_variables;
a000ec34: e5916104 ldr r6, [r1, #260] ; 0x104 <== NOT EXECUTED
void _RTEMS_tasks_Delete_extension(
Thread_Control *executing,
Thread_Control *deleted
)
{
a000ec38: e1a04001 mov r4, r1 <== NOT EXECUTED
/*
* Free per task variable memory
*/
tvp = deleted->task_variables;
deleted->task_variables = NULL;
a000ec3c: e5813104 str r3, [r1, #260] ; 0x104 <== NOT EXECUTED
while (tvp) {
a000ec40: ea000004 b a000ec58 <_RTEMS_tasks_Delete_extension+0x2c> <== NOT EXECUTED
next = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp );
a000ec44: e1a01006 mov r1, r6 <== NOT EXECUTED a000ec48: e1a00004 mov r0, r4 <== NOT EXECUTED
*/
tvp = deleted->task_variables;
deleted->task_variables = NULL;
while (tvp) {
next = (rtems_task_variable_t *)tvp->next;
a000ec4c: e5965000 ldr r5, [r6] <== NOT EXECUTED
_RTEMS_Tasks_Invoke_task_variable_dtor( deleted, tvp );
a000ec50: eb00003f bl a000ed54 <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED
tvp = next;
a000ec54: e1a06005 mov r6, r5 <== NOT EXECUTED
* Free per task variable memory
*/
tvp = deleted->task_variables;
deleted->task_variables = NULL;
while (tvp) {
a000ec58: e3560000 cmp r6, #0 <== NOT EXECUTED a000ec5c: 1afffff8 bne a000ec44 <_RTEMS_tasks_Delete_extension+0x18> <== NOT EXECUTED
/*
* Free API specific memory
*/
(void) _Workspace_Free( deleted->API_Extensions[ THREAD_API_RTEMS ] );
a000ec60: e59400f8 ldr r0, [r4, #248] ; 0xf8 <== NOT EXECUTED a000ec64: ebfff6fc bl a000c85c <_Workspace_Free> <== NOT EXECUTED
deleted->API_Extensions[ THREAD_API_RTEMS ] = NULL;
a000ec68: e58460f8 str r6, [r4, #248] ; 0xf8 <== NOT EXECUTED
}
a000ec6c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0009784 <_RTEMS_tasks_Initialize_user_tasks_body>:
rtems_initialization_tasks_table *user_tasks;
/*
* Move information into local variables
*/
user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
a0009784: e59f3074 ldr r3, [pc, #116] ; a0009800 <_RTEMS_tasks_Initialize_user_tasks_body+0x7c>
*
* Output parameters: NONE
*/
void _RTEMS_tasks_Initialize_user_tasks_body( void )
{
a0009788: e92d40f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
rtems_initialization_tasks_table *user_tasks;
/*
* Move information into local variables
*/
user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
a000978c: e593402c ldr r4, [r3, #44] ; 0x2c
maximum = Configuration_RTEMS_API.number_of_initialization_tasks;
a0009790: e5937028 ldr r7, [r3, #40] ; 0x28
/*
* Verify that we have a set of user tasks to iterate
*/
if ( !user_tasks )
a0009794: e3540000 cmp r4, #0 a0009798: 13a05000 movne r5, #0
/*
* Now iterate over the initialization tasks and create/start them.
*/
for ( index=0 ; index < maximum ; index++ ) {
return_value = rtems_task_create(
a000979c: 128d6008 addne r6, sp, #8
maximum = Configuration_RTEMS_API.number_of_initialization_tasks;
/*
* Verify that we have a set of user tasks to iterate
*/
if ( !user_tasks )
a00097a0: 1a000013 bne a00097f4 <_RTEMS_tasks_Initialize_user_tasks_body+0x70>
a00097a4: ea000014 b a00097fc <_RTEMS_tasks_Initialize_user_tasks_body+0x78><== NOT EXECUTED
/*
* Now iterate over the initialization tasks and create/start them.
*/
for ( index=0 ; index < maximum ; index++ ) {
return_value = rtems_task_create(
a00097a8: e594300c ldr r3, [r4, #12]
a00097ac: e88d0048 stm sp, {r3, r6}
a00097b0: e8940005 ldm r4, {r0, r2}
a00097b4: e5941008 ldr r1, [r4, #8]
a00097b8: e5943014 ldr r3, [r4, #20]
a00097bc: ebffff68 bl a0009564 <rtems_task_create>
user_tasks[ index ].stack_size,
user_tasks[ index ].mode_set,
user_tasks[ index ].attribute_set,
&id
);
if ( !rtems_is_status_successful( return_value ) )
a00097c0: e2502000 subs r2, r0, #0
a00097c4: 1a000006 bne a00097e4 <_RTEMS_tasks_Initialize_user_tasks_body+0x60>
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
return_value = rtems_task_start(
a00097c8: e5942018 ldr r2, [r4, #24] a00097cc: e5941010 ldr r1, [r4, #16] a00097d0: e59d0008 ldr r0, [sp, #8] a00097d4: eb00000a bl a0009804 <rtems_task_start>
id,
user_tasks[ index ].entry_point,
user_tasks[ index ].argument
);
if ( !rtems_is_status_successful( return_value ) )
a00097d8: e2502000 subs r2, r0, #0
&id
);
if ( !rtems_is_status_successful( return_value ) )
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
return_value = rtems_task_start(
a00097dc: e284401c add r4, r4, #28
id,
user_tasks[ index ].entry_point,
user_tasks[ index ].argument
);
if ( !rtems_is_status_successful( return_value ) )
a00097e0: 0a000002 beq a00097f0 <_RTEMS_tasks_Initialize_user_tasks_body+0x6c>
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
a00097e4: e3a00001 mov r0, #1 <== NOT EXECUTED a00097e8: e1a01000 mov r1, r0 <== NOT EXECUTED a00097ec: eb00038a bl a000a61c <_Internal_error_Occurred> <== NOT EXECUTED
return;
/*
* Now iterate over the initialization tasks and create/start them.
*/
for ( index=0 ; index < maximum ; index++ ) {
a00097f0: e2855001 add r5, r5, #1 a00097f4: e1550007 cmp r5, r7
a00097f8: 3affffea bcc a00097a8 <_RTEMS_tasks_Initialize_user_tasks_body+0x24>
user_tasks[ index ].argument
);
if ( !rtems_is_status_successful( return_value ) )
_Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
}
}
a00097fc: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc}
a000eba8 <_RTEMS_tasks_Post_switch_extension>:
*/
void _RTEMS_tasks_Post_switch_extension(
Thread_Control *executing
)
{
a000eba8: e92d4071 push {r0, r4, r5, r6, lr}
RTEMS_API_Control *api;
ASR_Information *asr;
rtems_signal_set signal_set;
Modes_Control prev_mode;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
a000ebac: e59040f8 ldr r4, [r0, #248] ; 0xf8
if ( !api )
a000ebb0: e3540000 cmp r4, #0
a000ebb4: 0a00001a beq a000ec24 <_RTEMS_tasks_Post_switch_extension+0x7c>
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000ebb8: e10f3000 mrs r3, CPSR a000ebbc: e3832080 orr r2, r3, #128 ; 0x80 a000ebc0: e129f002 msr CPSR_fc, r2
asr = &api->Signal;
_ISR_Disable( level );
signal_set = asr->signals_posted;
asr->signals_posted = 0;
a000ebc4: e3a02000 mov r2, #0
*/
asr = &api->Signal;
_ISR_Disable( level );
signal_set = asr->signals_posted;
a000ebc8: e5946014 ldr r6, [r4, #20]
asr->signals_posted = 0;
a000ebcc: e5842014 str r2, [r4, #20]
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000ebd0: e129f003 msr CPSR_fc, r3
_ISR_Enable( level );
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
a000ebd4: e3560000 cmp r6, #0
a000ebd8: 0a000011 beq a000ec24 <_RTEMS_tasks_Post_switch_extension+0x7c>
return;
asr->nest_level += 1;
a000ebdc: e594301c ldr r3, [r4, #28] <== NOT EXECUTED
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
a000ebe0: e59f1040 ldr r1, [pc, #64] ; a000ec28 <_RTEMS_tasks_Post_switch_extension+0x80><== NOT EXECUTED a000ebe4: e1a0200d mov r2, sp <== NOT EXECUTED
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
return;
asr->nest_level += 1;
a000ebe8: e2833001 add r3, r3, #1 <== NOT EXECUTED a000ebec: e584301c str r3, [r4, #28] <== NOT EXECUTED
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
a000ebf0: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000ebf4: eb0007e2 bl a0010b84 <rtems_task_mode> <== NOT EXECUTED
(*asr->handler)( signal_set );
a000ebf8: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000ebfc: e1a00006 mov r0, r6 <== NOT EXECUTED a000ec00: e12fff33 blx r3 <== NOT EXECUTED
asr->nest_level -= 1;
a000ec04: e594301c ldr r3, [r4, #28] <== NOT EXECUTED
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
a000ec08: e59d0000 ldr r0, [sp] <== NOT EXECUTED a000ec0c: e59f1014 ldr r1, [pc, #20] ; a000ec28 <_RTEMS_tasks_Post_switch_extension+0x80><== NOT EXECUTED
asr->nest_level += 1;
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
(*asr->handler)( signal_set );
asr->nest_level -= 1;
a000ec10: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000ec14: e584301c str r3, [r4, #28] <== NOT EXECUTED
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
a000ec18: e1a0200d mov r2, sp <== NOT EXECUTED
if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */
return;
asr->nest_level += 1;
rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode );
a000ec1c: e1a0500d mov r5, sp <== NOT EXECUTED
(*asr->handler)( signal_set );
asr->nest_level -= 1;
rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );
a000ec20: eb0007d7 bl a0010b84 <rtems_task_mode> <== NOT EXECUTED
}
a000ec24: e8bd8078 pop {r3, r4, r5, r6, pc}
a000eb34 <_RTEMS_tasks_Switch_extension>:
/*
* Per Task Variables
*/
tvp = executing->task_variables;
a000eb34: e5903104 ldr r3, [r0, #260] ; 0x104 <== NOT EXECUTED
while (tvp) {
a000eb38: ea000005 b a000eb54 <_RTEMS_tasks_Switch_extension+0x20> <== NOT EXECUTED
tvp->tval = *tvp->ptr;
a000eb3c: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000eb40: e5920000 ldr r0, [r2] <== NOT EXECUTED a000eb44: e583000c str r0, [r3, #12] <== NOT EXECUTED
*tvp->ptr = tvp->gval;
a000eb48: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED
tvp = (rtems_task_variable_t *)tvp->next;
a000eb4c: e5933000 ldr r3, [r3] <== NOT EXECUTED
*/
tvp = executing->task_variables;
while (tvp) {
tvp->tval = *tvp->ptr;
*tvp->ptr = tvp->gval;
a000eb50: e5820000 str r0, [r2] <== NOT EXECUTED
/*
* Per Task Variables
*/
tvp = executing->task_variables;
while (tvp) {
a000eb54: e3530000 cmp r3, #0 <== NOT EXECUTED a000eb58: 1afffff7 bne a000eb3c <_RTEMS_tasks_Switch_extension+0x8> <== NOT EXECUTED
tvp->tval = *tvp->ptr;
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
a000eb5c: e5913104 ldr r3, [r1, #260] ; 0x104 <== NOT EXECUTED
while (tvp) {
a000eb60: ea000005 b a000eb7c <_RTEMS_tasks_Switch_extension+0x48> <== NOT EXECUTED
tvp->gval = *tvp->ptr;
a000eb64: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000eb68: e5921000 ldr r1, [r2] <== NOT EXECUTED a000eb6c: e5831008 str r1, [r3, #8] <== NOT EXECUTED
*tvp->ptr = tvp->tval;
a000eb70: e593100c ldr r1, [r3, #12] <== NOT EXECUTED
tvp = (rtems_task_variable_t *)tvp->next;
a000eb74: e5933000 ldr r3, [r3] <== NOT EXECUTED
}
tvp = heir->task_variables;
while (tvp) {
tvp->gval = *tvp->ptr;
*tvp->ptr = tvp->tval;
a000eb78: e5821000 str r1, [r2] <== NOT EXECUTED
*tvp->ptr = tvp->gval;
tvp = (rtems_task_variable_t *)tvp->next;
}
tvp = heir->task_variables;
while (tvp) {
a000eb7c: e3530000 cmp r3, #0 <== NOT EXECUTED a000eb80: 1afffff7 bne a000eb64 <_RTEMS_tasks_Switch_extension+0x30> <== NOT EXECUTED
tvp->gval = *tvp->ptr;
*tvp->ptr = tvp->tval;
tvp = (rtems_task_variable_t *)tvp->next;
}
}
a000eb84: e12fff1e bx lr <== NOT EXECUTED
a000a250 <_Rate_monotonic_Get_status>:
bool _Rate_monotonic_Get_status(
Rate_monotonic_Control *the_period,
Rate_monotonic_Period_time_t *wall_since_last_period,
Thread_CPU_usage_t *cpu_since_last_period
)
{
a000a250: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a000a254: e24dd018 sub sp, sp, #24 <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
Timestamp_Control uptime;
#endif
Thread_Control *owning_thread = the_period->owner;
a000a258: e5906040 ldr r6, [r0, #64] ; 0x40 <== NOT EXECUTED
/*
* Determine elapsed wall time since period initiated.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_TOD_Get_uptime( &uptime );
a000a25c: e28d5010 add r5, sp, #16 <== NOT EXECUTED
bool _Rate_monotonic_Get_status(
Rate_monotonic_Control *the_period,
Rate_monotonic_Period_time_t *wall_since_last_period,
Thread_CPU_usage_t *cpu_since_last_period
)
{
a000a260: e1a08001 mov r8, r1 <== NOT EXECUTED a000a264: e1a04000 mov r4, r0 <== NOT EXECUTED
/*
* Determine elapsed wall time since period initiated.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_TOD_Get_uptime( &uptime );
a000a268: e1a00005 mov r0, r5 <== NOT EXECUTED
bool _Rate_monotonic_Get_status(
Rate_monotonic_Control *the_period,
Rate_monotonic_Period_time_t *wall_since_last_period,
Thread_CPU_usage_t *cpu_since_last_period
)
{
a000a26c: e1a07002 mov r7, r2 <== NOT EXECUTED
/*
* Determine elapsed wall time since period initiated.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_TOD_Get_uptime( &uptime );
a000a270: eb00061a bl a000bae0 <_TOD_Get_uptime> <== NOT EXECUTED
_Timestamp_Subtract(
a000a274: e1a02008 mov r2, r8 <== NOT EXECUTED a000a278: e284004c add r0, r4, #76 ; 0x4c <== NOT EXECUTED a000a27c: e1a01005 mov r1, r5 <== NOT EXECUTED a000a280: eb000eea bl a000de30 <_Timespec_Subtract> <== NOT EXECUTED
#endif
/*
* Determine cpu usage since period initiated.
*/
used = owning_thread->cpu_time_used;
a000a284: e2863084 add r3, r6, #132 ; 0x84 <== NOT EXECUTED
a000a288: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a000a28c: e58d2008 str r2, [sp, #8] <== NOT EXECUTED
a000a290: e58d300c str r3, [sp, #12] <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
if (owning_thread == _Thread_Executing) {
a000a294: e59f3064 ldr r3, [pc, #100] ; a000a300 <_Rate_monotonic_Get_status+0xb0><== NOT EXECUTED a000a298: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a29c: e1560003 cmp r6, r3 <== NOT EXECUTED a000a2a0: 1a000013 bne a000a2f4 <_Rate_monotonic_Get_status+0xa4> <== NOT EXECUTED
Thread_CPU_usage_t ran;
/* How much time time since last context switch */
_Timestamp_Subtract(
a000a2a4: e1a01005 mov r1, r5 <== NOT EXECUTED a000a2a8: e1a0200d mov r2, sp <== NOT EXECUTED a000a2ac: e59f0050 ldr r0, [pc, #80] ; a000a304 <_Rate_monotonic_Get_status+0xb4><== NOT EXECUTED
&_Thread_Time_of_last_context_switch, &uptime, &ran
);
/* cpu usage += ran */
_Timestamp_Add_to( &used, &ran );
a000a2b0: e28d5008 add r5, sp, #8 <== NOT EXECUTED
if (owning_thread == _Thread_Executing) {
Thread_CPU_usage_t ran;
/* How much time time since last context switch */
_Timestamp_Subtract(
a000a2b4: eb000edd bl a000de30 <_Timespec_Subtract> <== NOT EXECUTED
/*
* The cpu usage info was reset while executing. Can't
* determine a status.
*/
if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
a000a2b8: e2844044 add r4, r4, #68 ; 0x44 <== NOT EXECUTED
_Timestamp_Subtract(
&_Thread_Time_of_last_context_switch, &uptime, &ran
);
/* cpu usage += ran */
_Timestamp_Add_to( &used, &ran );
a000a2bc: e1a0100d mov r1, sp <== NOT EXECUTED a000a2c0: e1a00005 mov r0, r5 <== NOT EXECUTED a000a2c4: eb000e86 bl a000dce4 <_Timespec_Add_to> <== NOT EXECUTED
/*
* The cpu usage info was reset while executing. Can't
* determine a status.
*/
if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
a000a2c8: e1a00005 mov r0, r5 <== NOT EXECUTED a000a2cc: e1a01004 mov r1, r4 <== NOT EXECUTED a000a2d0: eb000ec8 bl a000ddf8 <_Timespec_Less_than> <== NOT EXECUTED a000a2d4: e3500000 cmp r0, #0 <== NOT EXECUTED
if (owning_thread == _Thread_Executing) {
Thread_CPU_usage_t ran;
/* How much time time since last context switch */
_Timestamp_Subtract(
a000a2d8: e1a0600d mov r6, sp <== NOT EXECUTED
/*
* The cpu usage info was reset while executing. Can't
* determine a status.
*/
if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
return false;
a000a2dc: 13a00000 movne r0, #0 <== NOT EXECUTED
/*
* The cpu usage info was reset while executing. Can't
* determine a status.
*/
if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
a000a2e0: 1a000004 bne a000a2f8 <_Rate_monotonic_Get_status+0xa8> <== NOT EXECUTED
return false;
/* used = current cpu usage - cpu usage at start of period */
_Timestamp_Subtract(
a000a2e4: e1a00004 mov r0, r4 <== NOT EXECUTED a000a2e8: e1a01005 mov r1, r5 <== NOT EXECUTED a000a2ec: e1a02007 mov r2, r7 <== NOT EXECUTED a000a2f0: eb000ece bl a000de30 <_Timespec_Subtract> <== NOT EXECUTED
if (used < the_period->cpu_usage_period_initiated)
return false;
*cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
#endif
return true;
a000a2f4: e3a00001 mov r0, #1 <== NOT EXECUTED
}
a000a2f8: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a000a2fc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000a308 <_Rate_monotonic_Initiate_statistics>:
void _Rate_monotonic_Initiate_statistics(
Rate_monotonic_Control *the_period
)
{
a000a308: e92d407f push {r0, r1, r2, r3, r4, r5, r6, lr} <== NOT EXECUTED
Thread_Control *owning_thread = the_period->owner;
a000a30c: e5905040 ldr r5, [r0, #64] ; 0x40 <== NOT EXECUTED
* If using nanosecond statistics, we need to obtain the uptime.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
Timestamp_Control uptime;
_TOD_Get_uptime( &uptime );
a000a310: e28d6008 add r6, sp, #8 <== NOT EXECUTED
}
void _Rate_monotonic_Initiate_statistics(
Rate_monotonic_Control *the_period
)
{
a000a314: e1a04000 mov r4, r0 <== NOT EXECUTED
* If using nanosecond statistics, we need to obtain the uptime.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
Timestamp_Control uptime;
_TOD_Get_uptime( &uptime );
a000a318: e1a00006 mov r0, r6 <== NOT EXECUTED a000a31c: eb0005ef bl a000bae0 <_TOD_Get_uptime> <== NOT EXECUTED
/*
* Set the starting point and the CPU time used for the statistics.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
the_period->time_period_initiated = uptime;
a000a320: e28d3008 add r3, sp, #8 <== NOT EXECUTED
a000a324: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a000a328: e584204c str r2, [r4, #76] ; 0x4c <== NOT EXECUTED
a000a32c: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED
#else
the_period->time_period_initiated = _Watchdog_Ticks_since_boot;
#endif
the_period->cpu_usage_period_initiated = owning_thread->cpu_time_used;
a000a330: e2853084 add r3, r5, #132 ; 0x84 <== NOT EXECUTED
a000a334: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a000a338: e5842044 str r2, [r4, #68] ; 0x44 <== NOT EXECUTED
a000a33c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED
* routine is invoked from rtems_rate_monotonic_period, the owner will
* be the executing thread. When this routine is invoked from
* _Rate_monotonic_Timeout, it will not.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
if (owning_thread == _Thread_Executing) {
a000a340: e59f302c ldr r3, [pc, #44] ; a000a374 <_Rate_monotonic_Initiate_statistics+0x6c><== NOT EXECUTED a000a344: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a348: e1550003 cmp r5, r3 <== NOT EXECUTED a000a34c: 1a000007 bne a000a370 <_Rate_monotonic_Initiate_statistics+0x68><== NOT EXECUTED
/*
* Adjust the CPU time used to account for the time since last
* context switch.
*/
_Timespec_Subtract(
a000a350: e59f0020 ldr r0, [pc, #32] ; a000a378 <_Rate_monotonic_Initiate_statistics+0x70><== NOT EXECUTED a000a354: e1a01006 mov r1, r6 <== NOT EXECUTED a000a358: e1a0200d mov r2, sp <== NOT EXECUTED a000a35c: eb000eb3 bl a000de30 <_Timespec_Subtract> <== NOT EXECUTED
&_Thread_Time_of_last_context_switch, &uptime, &ran
);
_Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran );
a000a360: e2840044 add r0, r4, #68 ; 0x44 <== NOT EXECUTED a000a364: e1a0100d mov r1, sp <== NOT EXECUTED
/*
* Adjust the CPU time used to account for the time since last
* context switch.
*/
_Timespec_Subtract(
&_Thread_Time_of_last_context_switch, &uptime, &ran
a000a368: e1a0500d mov r5, sp <== NOT EXECUTED
);
_Timespec_Add_to( &the_period->cpu_usage_period_initiated, &ran );
a000a36c: eb000e5c bl a000dce4 <_Timespec_Add_to> <== NOT EXECUTED
}
#endif
}
a000a370: e8bd807f pop {r0, r1, r2, r3, r4, r5, r6, pc} <== NOT EXECUTED
a000a888 <_Rate_monotonic_Timeout>:
void _Rate_monotonic_Timeout(
Objects_Id id,
void *ignored
)
{
a000a888: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
a000a88c: e1a01000 mov r1, r0 <== NOT EXECUTED
a000a890: e1a0200d mov r2, sp <== NOT EXECUTED
a000a894: e59f0088 ldr r0, [pc, #136] ; a000a924 <_Rate_monotonic_Timeout+0x9c><== NOT EXECUTED
a000a898: eb000747 bl a000c5bc <_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 ) {
a000a89c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a8a0: e1a04000 mov r4, r0 <== NOT EXECUTED a000a8a4: e3530000 cmp r3, #0 <== NOT EXECUTED a000a8a8: 1a00001c bne a000a920 <_Rate_monotonic_Timeout+0x98> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_thread = the_period->owner;
a000a8ac: 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);
a000a8b0: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED
if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
a000a8b4: e3130901 tst r3, #16384 ; 0x4000 <== NOT EXECUTED a000a8b8: 0a000006 beq a000a8d8 <_Rate_monotonic_Timeout+0x50> <== NOT EXECUTED a000a8bc: e5902020 ldr r2, [r0, #32] <== NOT EXECUTED a000a8c0: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000a8c4: e1520003 cmp r2, r3 <== NOT EXECUTED a000a8c8: 1a000002 bne a000a8d8 <_Rate_monotonic_Timeout+0x50> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
a000a8cc: e59f1054 ldr r1, [pc, #84] ; a000a928 <_Rate_monotonic_Timeout+0xa0><== NOT EXECUTED a000a8d0: eb00099d bl a000cf4c <_Thread_Clear_state> <== NOT EXECUTED a000a8d4: ea000006 b a000a8f4 <_Rate_monotonic_Timeout+0x6c> <== 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 ) {
a000a8d8: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a000a8dc: 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;
a000a8e0: 13a03004 movne r3, #4 <== NOT EXECUTED a000a8e4: 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 ) {
a000a8e8: 1a000008 bne a000a910 <_Rate_monotonic_Timeout+0x88> <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;
a000a8ec: e2833002 add r3, r3, #2 <== NOT EXECUTED a000a8f0: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED
_Rate_monotonic_Initiate_statistics( the_period );
a000a8f4: e1a00004 mov r0, r4 <== NOT EXECUTED a000a8f8: ebfffe82 bl a000a308 <_Rate_monotonic_Initiate_statistics> <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a000a8fc: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a000a900: e59f0024 ldr r0, [pc, #36] ; a000a92c <_Rate_monotonic_Timeout+0xa4><== NOT EXECUTED a000a904: e2841010 add r1, r4, #16 <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a000a908: e584301c str r3, [r4, #28] <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a000a90c: eb000dfb bl a000e100 <_Watchdog_Insert> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
a000a910: e59f3018 ldr r3, [pc, #24] ; a000a930 <_Rate_monotonic_Timeout+0xa8><== NOT EXECUTED a000a914: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a918: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000a91c: e5832000 str r2, [r3] <== NOT EXECUTED
case OBJECTS_REMOTE: /* impossible */
#endif
case OBJECTS_ERROR:
break;
}
}
a000a920: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000a37c <_Rate_monotonic_Update_statistics>:
void _Rate_monotonic_Update_statistics(
Rate_monotonic_Control *the_period
)
{
a000a37c: e92d403f push {r0, r1, r2, r3, r4, r5, lr} <== NOT EXECUTED
/*
* Update the counts.
*/
stats = &the_period->Statistics;
stats->count++;
a000a380: e5903054 ldr r3, [r0, #84] ; 0x54 <== NOT EXECUTED
/*
* Grab status for time statistics.
*/
valid_status =
_Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
a000a384: e28d5008 add r5, sp, #8 <== NOT EXECUTED
stats->missed_count++;
/*
* Grab status for time statistics.
*/
valid_status =
a000a388: e1a0100d mov r1, sp <== NOT EXECUTED
/*
* Update the counts.
*/
stats = &the_period->Statistics;
stats->count++;
a000a38c: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a390: e5803054 str r3, [r0, #84] ; 0x54 <== NOT EXECUTED
if ( the_period->state == RATE_MONOTONIC_EXPIRED )
a000a394: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED
stats->missed_count++;
/*
* Grab status for time statistics.
*/
valid_status =
a000a398: e1a02005 mov r2, r5 <== NOT EXECUTED
}
void _Rate_monotonic_Update_statistics(
Rate_monotonic_Control *the_period
)
{
a000a39c: e1a04000 mov r4, r0 <== NOT EXECUTED
* Update the counts.
*/
stats = &the_period->Statistics;
stats->count++;
if ( the_period->state == RATE_MONOTONIC_EXPIRED )
a000a3a0: e3530004 cmp r3, #4 <== NOT EXECUTED
stats->missed_count++;
a000a3a4: 05903058 ldreq r3, [r0, #88] ; 0x58 <== NOT EXECUTED a000a3a8: 02833001 addeq r3, r3, #1 <== NOT EXECUTED a000a3ac: 05803058 streq r3, [r0, #88] ; 0x58 <== NOT EXECUTED
/*
* Grab status for time statistics.
*/
valid_status =
a000a3b0: ebffffa6 bl a000a250 <_Rate_monotonic_Get_status> <== NOT EXECUTED
_Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
if (!valid_status)
a000a3b4: e3500000 cmp r0, #0 <== NOT EXECUTED a000a3b8: 0a000024 beq a000a450 <_Rate_monotonic_Update_statistics+0xd4><== NOT EXECUTED
/*
* Update CPU time
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Add_to( &stats->total_cpu_time, &executed );
a000a3bc: e1a01005 mov r1, r5 <== NOT EXECUTED a000a3c0: e284006c add r0, r4, #108 ; 0x6c <== NOT EXECUTED a000a3c4: eb000e46 bl a000dce4 <_Timespec_Add_to> <== NOT EXECUTED
if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )
a000a3c8: e1a00005 mov r0, r5 <== NOT EXECUTED a000a3cc: e284105c add r1, r4, #92 ; 0x5c <== NOT EXECUTED a000a3d0: eb000e88 bl a000ddf8 <_Timespec_Less_than> <== NOT EXECUTED a000a3d4: e3500000 cmp r0, #0 <== NOT EXECUTED
stats->min_cpu_time = executed;
a000a3d8: 128d3008 addne r3, sp, #8 <== NOT EXECUTED
a000a3dc: 1893000c ldmne r3, {r2, r3} <== NOT EXECUTED
a000a3e0: 1584205c strne r2, [r4, #92] ; 0x5c <== NOT EXECUTED
a000a3e4: 15843060 strne r3, [r4, #96] ; 0x60 <== NOT EXECUTED
if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) )
a000a3e8: e28d0008 add r0, sp, #8 <== NOT EXECUTED a000a3ec: e2841064 add r1, r4, #100 ; 0x64 <== NOT EXECUTED a000a3f0: eb000e72 bl a000ddc0 <_Timespec_Greater_than> <== NOT EXECUTED a000a3f4: e3500000 cmp r0, #0 <== NOT EXECUTED
stats->max_cpu_time = executed;
a000a3f8: 128d3008 addne r3, sp, #8 <== NOT EXECUTED
a000a3fc: 1893000c ldmne r3, {r2, r3} <== NOT EXECUTED
a000a400: 15842064 strne r2, [r4, #100] ; 0x64 <== NOT EXECUTED
a000a404: 15843068 strne r3, [r4, #104] ; 0x68 <== NOT EXECUTED
/*
* Update Wall time
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Add_to( &stats->total_wall_time, &since_last_period );
a000a408: e1a0100d mov r1, sp <== NOT EXECUTED a000a40c: e2840084 add r0, r4, #132 ; 0x84 <== NOT EXECUTED a000a410: eb000e33 bl a000dce4 <_Timespec_Add_to> <== NOT EXECUTED
if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
a000a414: e1a0000d mov r0, sp <== NOT EXECUTED a000a418: e2841074 add r1, r4, #116 ; 0x74 <== NOT EXECUTED a000a41c: eb000e75 bl a000ddf8 <_Timespec_Less_than> <== NOT EXECUTED a000a420: e3500000 cmp r0, #0 <== NOT EXECUTED
/*
* Update Wall time
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Add_to( &stats->total_wall_time, &since_last_period );
a000a424: e1a0500d mov r5, sp <== NOT EXECUTED
if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
stats->min_wall_time = since_last_period;
a000a428: 189d000c ldmne sp, {r2, r3} <== NOT EXECUTED
a000a42c: 15842074 strne r2, [r4, #116] ; 0x74 <== NOT EXECUTED
a000a430: 15843078 strne r3, [r4, #120] ; 0x78 <== NOT EXECUTED
if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
a000a434: e1a0000d mov r0, sp <== NOT EXECUTED a000a438: e284107c add r1, r4, #124 ; 0x7c <== NOT EXECUTED a000a43c: eb000e5f bl a000ddc0 <_Timespec_Greater_than> <== NOT EXECUTED a000a440: e3500000 cmp r0, #0 <== NOT EXECUTED
stats->max_wall_time = since_last_period;
a000a444: 189d000c ldmne sp, {r2, r3} <== NOT EXECUTED
a000a448: 1584207c strne r2, [r4, #124] ; 0x7c <== NOT EXECUTED
a000a44c: 15843080 strne r3, [r4, #128] ; 0x80 <== NOT EXECUTED
stats->min_wall_time = since_last_period;
if ( since_last_period > stats->max_wall_time )
stats->max_wall_time = since_last_period;
#endif
}
a000a450: e8bd803f pop {r0, r1, r2, r3, r4, r5, pc} <== NOT EXECUTED
a001f068 <_Region_Process_queue>:
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a001f068: e59f3084 ldr r3, [pc, #132] ; a001f0f4 <_Region_Process_queue+0x8c><== NOT EXECUTED
*/
void _Region_Process_queue(
Region_Control *the_region
)
{
a001f06c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a001f070: e5932000 ldr r2, [r3] <== NOT EXECUTED
a001f074: e1a04000 mov r4, r0 <== NOT EXECUTED
a001f078: e2822001 add r2, r2, #1 <== NOT EXECUTED
a001f07c: e5832000 str r2, [r3] <== NOT EXECUTED
* NOTE: Be sure to disable dispatching before unlocking the mutex * since we do not want to open a window where a context * switch could occur. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator();
a001f080: e59f3070 ldr r3, [pc, #112] ; a001f0f8 <_Region_Process_queue+0x90><== NOT EXECUTED
/*
* NOTE: The following loop is O(n) where n is the number of
* threads whose memory request is satisfied.
*/
for ( ; ; ) {
the_thread = _Thread_queue_First( &the_region->Wait_queue );
a001f084: e2846010 add r6, r4, #16 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void *_Region_Allocate_segment (
Region_Control *the_region,
uintptr_t size
)
{
return _Heap_Allocate( &the_region->Memory, size );
a001f088: e2847068 add r7, r4, #104 ; 0x68 <== NOT EXECUTED
* NOTE: Be sure to disable dispatching before unlocking the mutex * since we do not want to open a window where a context * switch could occur. */ _Thread_Disable_dispatch(); _RTEMS_Unlock_allocator();
a001f08c: e5930000 ldr r0, [r3] <== NOT EXECUTED a001f090: ebffe804 bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED a001f094: e3a08000 mov r8, #0 <== NOT EXECUTED
/*
* NOTE: The following loop is O(n) where n is the number of
* threads whose memory request is satisfied.
*/
for ( ; ; ) {
the_thread = _Thread_queue_First( &the_region->Wait_queue );
a001f098: e1a00006 mov r0, r6 <== NOT EXECUTED a001f09c: eb0001f6 bl a001f87c <_Thread_queue_First> <== NOT EXECUTED
if ( the_thread == NULL )
a001f0a0: e2505000 subs r5, r0, #0 <== NOT EXECUTED a001f0a4: 0a000010 beq a001f0ec <_Region_Process_queue+0x84> <== NOT EXECUTED a001f0a8: e3a02000 mov r2, #0 <== NOT EXECUTED a001f0ac: e1a00007 mov r0, r7 <== NOT EXECUTED a001f0b0: e5951024 ldr r1, [r5, #36] ; 0x24 <== NOT EXECUTED a001f0b4: e1a03002 mov r3, r2 <== NOT EXECUTED a001f0b8: ebffeaaa bl a0019b68 <_Heap_Allocate_aligned_with_boundary><== NOT EXECUTED
the_segment = (void **) _Region_Allocate_segment(
the_region,
the_thread->Wait.count
);
if ( the_segment == NULL )
a001f0bc: e3500000 cmp r0, #0 <== NOT EXECUTED a001f0c0: 0a000009 beq a001f0ec <_Region_Process_queue+0x84> <== NOT EXECUTED
break;
*(void **)the_thread->Wait.return_argument = the_segment;
a001f0c4: e5953028 ldr r3, [r5, #40] ; 0x28 <== NOT EXECUTED
the_region->number_of_used_blocks += 1;
_Thread_queue_Extract( &the_region->Wait_queue, the_thread );
a001f0c8: e1a01005 mov r1, r5 <== NOT EXECUTED
);
if ( the_segment == NULL )
break;
*(void **)the_thread->Wait.return_argument = the_segment;
a001f0cc: e5830000 str r0, [r3] <== NOT EXECUTED
the_region->number_of_used_blocks += 1;
a001f0d0: e5943064 ldr r3, [r4, #100] ; 0x64 <== NOT EXECUTED
_Thread_queue_Extract( &the_region->Wait_queue, the_thread );
a001f0d4: e1a00006 mov r0, r6 <== NOT EXECUTED
if ( the_segment == NULL )
break;
*(void **)the_thread->Wait.return_argument = the_segment;
the_region->number_of_used_blocks += 1;
a001f0d8: e2833001 add r3, r3, #1 <== NOT EXECUTED a001f0dc: e5843064 str r3, [r4, #100] ; 0x64 <== NOT EXECUTED
_Thread_queue_Extract( &the_region->Wait_queue, the_thread );
a001f0e0: eb0001a9 bl a001f78c <_Thread_queue_Extract> <== NOT EXECUTED
the_thread->Wait.return_code = RTEMS_SUCCESSFUL;
a001f0e4: e5858034 str r8, [r5, #52] ; 0x34 <== NOT EXECUTED
}
a001f0e8: eaffffea b a001f098 <_Region_Process_queue+0x30> <== NOT EXECUTED
_Thread_Enable_dispatch(); }
a001f0ec: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
*(void **)the_thread->Wait.return_argument = the_segment;
the_region->number_of_used_blocks += 1;
_Thread_queue_Extract( &the_region->Wait_queue, the_thread );
the_thread->Wait.return_code = RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
a001f0f0: eafff25c b a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
a000ae6c <_Scheduler_priority_Block>:
)
{
Scheduler_priority_Per_thread *sched_info;
Chain_Control *ready;
sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
a000ae6c: e590208c ldr r2, [r0, #140] ; 0x8c <== NOT EXECUTED
ready = sched_info->ready_chain;
a000ae70: e5923000 ldr r3, [r2] <== NOT EXECUTED
if ( _Chain_Has_only_one_node( ready ) ) {
a000ae74: e593c000 ldr ip, [r3] <== NOT EXECUTED a000ae78: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000ae7c: e15c0001 cmp ip, r1 <== NOT EXECUTED a000ae80: 1a000010 bne a000aec8 <_Scheduler_priority_Block+0x5c> <== 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 );
a000ae84: e2831004 add r1, r3, #4 <== NOT EXECUTED
head->next = tail;
a000ae88: e5831000 str r1, [r3] <== NOT EXECUTED
head->previous = NULL;
a000ae8c: e3a01000 mov r1, #0 <== NOT EXECUTED a000ae90: e5831004 str r1, [r3, #4] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor &= the_priority_map->block_minor;
a000ae94: e5921004 ldr r1, [r2, #4] <== NOT EXECUTED
tail->previous = head;
a000ae98: e5833008 str r3, [r3, #8] <== NOT EXECUTED a000ae9c: e1d230be ldrh r3, [r2, #14] <== NOT EXECUTED a000aea0: e1d1c0b0 ldrh ip, [r1] <== NOT EXECUTED a000aea4: e00c3003 and r3, ip, r3 <== NOT EXECUTED
if ( *the_priority_map->minor == 0 )
a000aea8: e3530000 cmp r3, #0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor &= the_priority_map->block_minor;
a000aeac: e1c130b0 strh r3, [r1] <== NOT EXECUTED
if ( *the_priority_map->minor == 0 )
_Priority_Major_bit_map &= the_priority_map->block_major;
a000aeb0: 059f30b4 ldreq r3, [pc, #180] ; a000af6c <_Scheduler_priority_Block+0x100><== NOT EXECUTED a000aeb4: 01d220bc ldrheq r2, [r2, #12] <== NOT EXECUTED a000aeb8: 01d310b0 ldrheq r1, [r3] <== NOT EXECUTED a000aebc: 00012002 andeq r2, r1, r2 <== NOT EXECUTED a000aec0: 01c320b0 strheq r2, [r3] <== NOT EXECUTED a000aec4: ea000002 b a000aed4 <_Scheduler_priority_Block+0x68> <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
a000aec8: e890000c ldm r0, {r2, r3} <== NOT EXECUTED
previous = the_node->previous; next->previous = previous;
a000aecc: e5823004 str r3, [r2, #4] <== NOT EXECUTED
previous->next = next;
a000aed0: e5832000 str r2, [r3] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_heir (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Heir );
a000aed4: e59f3094 ldr r3, [pc, #148] ; a000af70 <_Scheduler_priority_Block+0x104><== NOT EXECUTED
{
_Scheduler_priority_Ready_queue_extract( the_thread );
/* TODO: flash critical section? */
if ( _Thread_Is_heir( the_thread ) )
a000aed8: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000aedc: e1500003 cmp r0, r3 <== NOT EXECUTED a000aee0: 1a00001b bne a000af54 <_Scheduler_priority_Block+0xe8> <== NOT EXECUTED
* @param[in] the_thread - pointer to thread
*/
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)
{
_Thread_Heir = _Scheduler_priority_Ready_queue_first(
(Chain_Control *) _Scheduler.information
a000aee4: e59f3088 ldr r3, [pc, #136] ; a000af74 <_Scheduler_priority_Block+0x108><== NOT EXECUTED
{
Priority_bit_map_Control minor;
Priority_bit_map_Control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
a000aee8: e59f1088 ldr r1, [pc, #136] ; a000af78 <_Scheduler_priority_Block+0x10c><== NOT EXECUTED
*
* @param[in] the_thread - pointer to thread
*/
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)
{
_Thread_Heir = _Scheduler_priority_Ready_queue_first(
a000aeec: e593c000 ldr ip, [r3] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{
Priority_bit_map_Control minor;
Priority_bit_map_Control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
a000aef0: e59f3074 ldr r3, [pc, #116] ; a000af6c <_Scheduler_priority_Block+0x100><== NOT EXECUTED a000aef4: e1d320b0 ldrh r2, [r3] <== NOT EXECUTED a000aef8: e59f307c ldr r3, [pc, #124] ; a000af7c <_Scheduler_priority_Block+0x110><== NOT EXECUTED a000aefc: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED a000af00: e35208ff cmp r2, #16711680 ; 0xff0000 <== NOT EXECUTED a000af04: 97d32822 ldrbls r2, [r3, r2, lsr #16] <== NOT EXECUTED a000af08: 87d32c22 ldrbhi r2, [r3, r2, lsr #24] <== NOT EXECUTED a000af0c: 92822008 addls r2, r2, #8 <== NOT EXECUTED
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
a000af10: e1a03082 lsl r3, r2, #1 <== NOT EXECUTED a000af14: e19110b3 ldrh r1, [r1, r3] <== NOT EXECUTED a000af18: e59f305c ldr r3, [pc, #92] ; a000af7c <_Scheduler_priority_Block+0x110><== NOT EXECUTED a000af1c: e35100ff cmp r1, #255 ; 0xff <== NOT EXECUTED a000af20: 97d33001 ldrbls r3, [r3, r1] <== NOT EXECUTED a000af24: 87d33421 ldrbhi r3, [r3, r1, lsr #8] <== NOT EXECUTED a000af28: 92833008 addls r3, r3, #8 <== NOT EXECUTED
return (_Priority_Bits_index( major ) << 4) +
a000af2c: e0832202 add r2, r3, r2, lsl #4 <== NOT EXECUTED
Chain_Control *the_ready_queue
)
{
Priority_Control index = _Priority_bit_map_Get_highest();
if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )
a000af30: e3a0300c mov r3, #12 <== NOT EXECUTED a000af34: e0020293 mul r2, r3, r2 <== NOT EXECUTED
_Scheduler_priority_Schedule_body();
if ( _Thread_Is_executing( the_thread ) )
_Thread_Dispatch_necessary = true;
}
a000af38: e79c3002 ldr r3, [ip, r2] <== NOT EXECUTED a000af3c: e08c1002 add r1, ip, r2 <== 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 );
a000af40: e2812004 add r2, r1, #4 <== NOT EXECUTED
return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
a000af44: e1530002 cmp r3, r2 <== NOT EXECUTED
*
* @param[in] the_thread - pointer to thread
*/
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)
{
_Thread_Heir = _Scheduler_priority_Ready_queue_first(
a000af48: e59f2020 ldr r2, [pc, #32] ; a000af70 <_Scheduler_priority_Block+0x104><== NOT EXECUTED
)
{
Priority_Control index = _Priority_bit_map_Get_highest();
if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )
return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
a000af4c: 03a03000 moveq r3, #0 <== NOT EXECUTED
*
* @param[in] the_thread - pointer to thread
*/
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)
{
_Thread_Heir = _Scheduler_priority_Ready_queue_first(
a000af50: e5823008 str r3, [r2, #8] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
a000af54: e59f3014 ldr r3, [pc, #20] ; a000af70 <_Scheduler_priority_Block+0x104><== NOT EXECUTED
/* TODO: flash critical section? */
if ( _Thread_Is_heir( the_thread ) )
_Scheduler_priority_Schedule_body();
if ( _Thread_Is_executing( the_thread ) )
a000af58: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000af5c: e1500002 cmp r0, r2 <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
a000af60: 03a02001 moveq r2, #1 <== NOT EXECUTED a000af64: 05c32010 strbeq r2, [r3, #16] <== NOT EXECUTED a000af68: e12fff1e bx lr <== NOT EXECUTED
a000afcc <_Scheduler_priority_Enqueue>:
)
{
Scheduler_priority_Per_thread *sched_info;
Chain_Control *ready;
sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
a000afcc: e590308c ldr r3, [r0, #140] ; 0x8c <== NOT EXECUTED
#include <rtems/score/schedulerpriority.h>
void _Scheduler_priority_Enqueue(
Thread_Control *the_thread
)
{
a000afd0: e92d4010 push {r4, lr} <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
a000afd4: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED a000afd8: e1d3c0ba ldrh ip, [r3, #10] <== NOT EXECUTED
ready = sched_info->ready_chain;
a000afdc: e5932000 ldr r2, [r3] <== NOT EXECUTED a000afe0: e1d140b0 ldrh r4, [r1] <== NOT EXECUTED a000afe4: e184c00c orr ip, r4, ip <== NOT EXECUTED a000afe8: e1c1c0b0 strh ip, [r1] <== NOT EXECUTED
_Priority_Major_bit_map |= the_priority_map->ready_major;
a000afec: e59f1028 ldr r1, [pc, #40] ; a000b01c <_Scheduler_priority_Enqueue+0x50><== NOT EXECUTED a000aff0: e1d330b8 ldrh r3, [r3, #8] <== NOT EXECUTED a000aff4: e1d1c0b0 ldrh ip, [r1] <== NOT EXECUTED a000aff8: e18c3003 orr r3, ip, r3 <== NOT EXECUTED a000affc: e1c130b0 strh r3, [r1] <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
a000b000: e5923008 ldr r3, [r2, #8] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
a000b004: e2821004 add r1, r2, #4 <== NOT EXECUTED
Chain_Node *old_last = tail->previous;
the_node->next = tail;
a000b008: e5801000 str r1, [r0] <== NOT EXECUTED
tail->previous = the_node;
a000b00c: e5820008 str r0, [r2, #8] <== NOT EXECUTED
old_last->next = the_node;
a000b010: e5830000 str r0, [r3] <== NOT EXECUTED
the_node->previous = old_last;
a000b014: e5803004 str r3, [r0, #4] <== NOT EXECUTED
_Scheduler_priority_Ready_queue_enqueue( the_thread ); }
a000b018: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000af80 <_Scheduler_priority_Enqueue_first>:
)
{
Scheduler_priority_Per_thread *sched_info;
Chain_Control *ready;
sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
a000af80: e590308c ldr r3, [r0, #140] ; 0x8c <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
a000af84: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000af88: e1d310ba ldrh r1, [r3, #10] <== NOT EXECUTED a000af8c: e1d2c0b0 ldrh ip, [r2] <== NOT EXECUTED a000af90: e18c1001 orr r1, ip, r1 <== NOT EXECUTED a000af94: e1c210b0 strh r1, [r2] <== NOT EXECUTED
_Priority_Major_bit_map |= the_priority_map->ready_major;
a000af98: e59f2028 ldr r2, [pc, #40] ; a000afc8 <_Scheduler_priority_Enqueue_first+0x48><== NOT EXECUTED a000af9c: e1d310b8 ldrh r1, [r3, #8] <== NOT EXECUTED
ready = sched_info->ready_chain;
_Priority_bit_map_Add( &sched_info->Priority_map );
_Chain_Prepend_unprotected(
a000afa0: e5933000 ldr r3, [r3] <== NOT EXECUTED a000afa4: e1d2c0b0 ldrh ip, [r2] <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
a000afa8: e5803004 str r3, [r0, #4] <== NOT EXECUTED a000afac: e18c1001 orr r1, ip, r1 <== NOT EXECUTED a000afb0: e1c210b0 strh r1, [r2] <== NOT EXECUTED
before_node = after_node->next;
a000afb4: e5932000 ldr r2, [r3] <== NOT EXECUTED
after_node->next = the_node;
a000afb8: e5830000 str r0, [r3] <== NOT EXECUTED
the_node->next = before_node; before_node->previous = the_node;
a000afbc: 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;
a000afc0: e5802000 str r2, [r0] <== NOT EXECUTED
void _Scheduler_priority_Enqueue_first(
Thread_Control *the_thread
)
{
_Scheduler_priority_Ready_queue_enqueue_first( the_thread );
}
a000afc4: e12fff1e bx lr <== NOT EXECUTED
a000b020 <_Scheduler_priority_Extract>:
)
{
Scheduler_priority_Per_thread *sched_info;
Chain_Control *ready;
sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
a000b020: e590208c ldr r2, [r0, #140] ; 0x8c <== NOT EXECUTED
ready = sched_info->ready_chain;
a000b024: e5923000 ldr r3, [r2] <== NOT EXECUTED
if ( _Chain_Has_only_one_node( ready ) ) {
a000b028: e593c000 ldr ip, [r3] <== NOT EXECUTED a000b02c: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000b030: e15c0001 cmp ip, r1 <== NOT EXECUTED a000b034: 1a000010 bne a000b07c <_Scheduler_priority_Extract+0x5c> <== 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 );
a000b038: e2831004 add r1, r3, #4 <== NOT EXECUTED
head->next = tail;
a000b03c: e5831000 str r1, [r3] <== NOT EXECUTED
head->previous = NULL;
a000b040: e3a01000 mov r1, #0 <== NOT EXECUTED a000b044: e5831004 str r1, [r3, #4] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor &= the_priority_map->block_minor;
a000b048: e5921004 ldr r1, [r2, #4] <== NOT EXECUTED
tail->previous = head;
a000b04c: e5833008 str r3, [r3, #8] <== NOT EXECUTED a000b050: e1d230be ldrh r3, [r2, #14] <== NOT EXECUTED a000b054: e1d100b0 ldrh r0, [r1] <== NOT EXECUTED a000b058: e0003003 and r3, r0, r3 <== NOT EXECUTED
if ( *the_priority_map->minor == 0 )
a000b05c: e3530000 cmp r3, #0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor &= the_priority_map->block_minor;
a000b060: e1c130b0 strh r3, [r1] <== NOT EXECUTED
if ( *the_priority_map->minor == 0 )
_Priority_Major_bit_map &= the_priority_map->block_major;
a000b064: 059f3020 ldreq r3, [pc, #32] ; a000b08c <_Scheduler_priority_Extract+0x6c><== NOT EXECUTED a000b068: 01d220bc ldrheq r2, [r2, #12] <== NOT EXECUTED a000b06c: 01d310b0 ldrheq r1, [r3] <== NOT EXECUTED a000b070: 00012002 andeq r2, r1, r2 <== NOT EXECUTED a000b074: 01c320b0 strheq r2, [r3] <== NOT EXECUTED a000b078: e12fff1e bx lr <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
a000b07c: e890000c ldm r0, {r2, r3} <== NOT EXECUTED
previous = the_node->previous; next->previous = previous;
a000b080: e5823004 str r3, [r2, #4] <== NOT EXECUTED
previous->next = next;
a000b084: e5832000 str r2, [r3] <== NOT EXECUTED a000b088: e12fff1e bx lr <== NOT EXECUTED
a000b090 <_Scheduler_priority_Free>:
void _Scheduler_priority_Free (
Thread_Control *the_thread
)
{
_Workspace_Free( the_thread->scheduler_info );
a000b090: e590008c ldr r0, [r0, #140] ; 0x8c <== NOT EXECUTED a000b094: ea0005f0 b a000c85c <_Workspace_Free> <== NOT EXECUTED
a000b120 <_Scheduler_priority_Schedule>:
* @param[in] the_thread - pointer to thread
*/
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)
{
_Thread_Heir = _Scheduler_priority_Ready_queue_first(
(Chain_Control *) _Scheduler.information
a000b120: e59f306c ldr r3, [pc, #108] ; a000b194 <_Scheduler_priority_Schedule+0x74><== NOT EXECUTED
{
Priority_bit_map_Control minor;
Priority_bit_map_Control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
a000b124: e59f106c ldr r1, [pc, #108] ; a000b198 <_Scheduler_priority_Schedule+0x78><== NOT EXECUTED
*
* @param[in] the_thread - pointer to thread
*/
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)
{
_Thread_Heir = _Scheduler_priority_Ready_queue_first(
a000b128: e5930000 ldr r0, [r3] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Priority_Control _Priority_bit_map_Get_highest( void )
{
Priority_bit_map_Control minor;
Priority_bit_map_Control major;
_Bitfield_Find_first_bit( _Priority_Major_bit_map, major );
a000b12c: e59f3068 ldr r3, [pc, #104] ; a000b19c <_Scheduler_priority_Schedule+0x7c><== NOT EXECUTED a000b130: e1d320b0 ldrh r2, [r3] <== NOT EXECUTED a000b134: e59f3064 ldr r3, [pc, #100] ; a000b1a0 <_Scheduler_priority_Schedule+0x80><== NOT EXECUTED a000b138: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED a000b13c: e35208ff cmp r2, #16711680 ; 0xff0000 <== NOT EXECUTED a000b140: 97d32822 ldrbls r2, [r3, r2, lsr #16] <== NOT EXECUTED a000b144: 87d32c22 ldrbhi r2, [r3, r2, lsr #24] <== NOT EXECUTED a000b148: 92822008 addls r2, r2, #8 <== NOT EXECUTED
_Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
a000b14c: e1a03082 lsl r3, r2, #1 <== NOT EXECUTED a000b150: e19110b3 ldrh r1, [r1, r3] <== NOT EXECUTED a000b154: e59f3044 ldr r3, [pc, #68] ; a000b1a0 <_Scheduler_priority_Schedule+0x80><== NOT EXECUTED a000b158: e35100ff cmp r1, #255 ; 0xff <== NOT EXECUTED a000b15c: 97d33001 ldrbls r3, [r3, r1] <== NOT EXECUTED a000b160: 87d33421 ldrbhi r3, [r3, r1, lsr #8] <== NOT EXECUTED a000b164: 92833008 addls r3, r3, #8 <== NOT EXECUTED
return (_Priority_Bits_index( major ) << 4) +
a000b168: e0832202 add r2, r3, r2, lsl #4 <== NOT EXECUTED
Chain_Control *the_ready_queue
)
{
Priority_Control index = _Priority_bit_map_Get_highest();
if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )
a000b16c: e3a0300c mov r3, #12 <== NOT EXECUTED a000b170: e0020293 mul r2, r3, r2 <== NOT EXECUTED
#include <rtems/score/schedulerpriority.h>
void _Scheduler_priority_Schedule(void)
{
_Scheduler_priority_Schedule_body();
}
a000b174: e7903002 ldr r3, [r0, r2] <== NOT EXECUTED a000b178: e0801002 add r1, r0, r2 <== 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 );
a000b17c: e2812004 add r2, r1, #4 <== NOT EXECUTED
return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
a000b180: e1530002 cmp r3, r2 <== NOT EXECUTED
*
* @param[in] the_thread - pointer to thread
*/
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)
{
_Thread_Heir = _Scheduler_priority_Ready_queue_first(
a000b184: e59f2018 ldr r2, [pc, #24] ; a000b1a4 <_Scheduler_priority_Schedule+0x84><== NOT EXECUTED
)
{
Priority_Control index = _Priority_bit_map_Get_highest();
if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )
return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
a000b188: 03a03000 moveq r3, #0 <== NOT EXECUTED
*
* @param[in] the_thread - pointer to thread
*/
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)
{
_Thread_Heir = _Scheduler_priority_Ready_queue_first(
a000b18c: e5823008 str r3, [r2, #8] <== NOT EXECUTED a000b190: e12fff1e bx lr <== NOT EXECUTED
a000b1a8 <_Scheduler_priority_Unblock>:
)
{
Scheduler_priority_Per_thread *sched_info;
Chain_Control *ready;
sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
a000b1a8: e590308c ldr r3, [r0, #140] ; 0x8c
#include <rtems/score/schedulerpriority.h>
void _Scheduler_priority_Unblock (
Thread_Control *the_thread
)
{
a000b1ac: e92d4010 push {r4, lr}
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Add (
Priority_bit_map_Information *the_priority_map
)
{
*the_priority_map->minor |= the_priority_map->ready_minor;
a000b1b0: e5931004 ldr r1, [r3, #4] a000b1b4: e1d3c0ba ldrh ip, [r3, #10]
ready = sched_info->ready_chain;
a000b1b8: e5932000 ldr r2, [r3] a000b1bc: e1d140b0 ldrh r4, [r1] a000b1c0: e184c00c orr ip, r4, ip a000b1c4: e1c1c0b0 strh ip, [r1]
_Priority_Major_bit_map |= the_priority_map->ready_major;
a000b1c8: e59f1064 ldr r1, [pc, #100] ; a000b234 <_Scheduler_priority_Unblock+0x8c> a000b1cc: e1d330b8 ldrh r3, [r3, #8] a000b1d0: e1d1c0b0 ldrh ip, [r1] a000b1d4: e18c3003 orr r3, ip, r3 a000b1d8: e1c130b0 strh r3, [r1]
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
a000b1dc: e5923008 ldr r3, [r2, #8]
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
a000b1e0: e2821004 add r1, r2, #4
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
a000b1e4: e5820008 str r0, [r2, #8]
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
a000b1e8: e880000a stm r0, {r1, r3}
tail->previous = the_node; old_last->next = the_node;
a000b1ec: e5830000 str r0, [r3]
* 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 ) {
a000b1f0: e59f3040 ldr r3, [pc, #64] ; a000b238 <_Scheduler_priority_Unblock+0x90> a000b1f4: e5902014 ldr r2, [r0, #20] a000b1f8: e5931008 ldr r1, [r3, #8] a000b1fc: e5911014 ldr r1, [r1, #20] a000b200: e1520001 cmp r2, r1
a000b204: 2a000009 bcs a000b230 <_Scheduler_priority_Unblock+0x88>
_Thread_Heir = the_thread;
a000b208: e5830008 str r0, [r3, #8]
if ( _Thread_Executing->is_preemptible ||
a000b20c: e5933004 ldr r3, [r3, #4] a000b210: e5d33074 ldrb r3, [r3, #116] ; 0x74 a000b214: e3530000 cmp r3, #0
a000b218: 1a000001 bne a000b224 <_Scheduler_priority_Unblock+0x7c>
a000b21c: e3520000 cmp r2, #0 <== NOT EXECUTED a000b220: 1a000002 bne a000b230 <_Scheduler_priority_Unblock+0x88> <== NOT EXECUTED
the_thread->current_priority == 0 )
_Thread_Dispatch_necessary = true;
a000b224: e59f300c ldr r3, [pc, #12] ; a000b238 <_Scheduler_priority_Unblock+0x90>
a000b228: e3a02001 mov r2, #1
a000b22c: e5c32010 strb r2, [r3, #16]
a000b230: e8bd8010 pop {r4, pc}
a000b2b0 <_Scheduler_priority_Yield>:
Scheduler_priority_Per_thread *sched_info;
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
a000b2b0: e59f108c ldr r1, [pc, #140] ; a000b344 <_Scheduler_priority_Yield+0x94><== NOT EXECUTED
* ready chain
* select heir
*/
void _Scheduler_priority_Yield(void)
{
a000b2b4: e92d4010 push {r4, lr} <== NOT EXECUTED
Scheduler_priority_Per_thread *sched_info;
ISR_Level level;
Thread_Control *executing;
Chain_Control *ready;
executing = _Thread_Executing;
a000b2b8: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED
sched_info = (Scheduler_priority_Per_thread *) executing->scheduler_info; ready = sched_info->ready_chain;
a000b2bc: e593208c ldr r2, [r3, #140] ; 0x8c <== NOT EXECUTED a000b2c0: e5922000 ldr r2, [r2] <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000b2c4: e10f0000 mrs r0, CPSR <== NOT EXECUTED a000b2c8: e380c080 orr ip, r0, #128 ; 0x80 <== NOT EXECUTED a000b2cc: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
_ISR_Disable( level );
if ( !_Chain_Has_only_one_node( ready ) ) {
a000b2d0: e5924000 ldr r4, [r2] <== NOT EXECUTED a000b2d4: e592c008 ldr ip, [r2, #8] <== NOT EXECUTED a000b2d8: e154000c cmp r4, ip <== NOT EXECUTED a000b2dc: 0a000012 beq a000b32c <_Scheduler_priority_Yield+0x7c> <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
a000b2e0: e8931010 ldm r3, {r4, ip} <== NOT EXECUTED
previous = the_node->previous; next->previous = previous;
a000b2e4: e584c004 str ip, [r4, #4] <== NOT EXECUTED
previous->next = next;
a000b2e8: e58c4000 str r4, [ip] <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
a000b2ec: e592c008 ldr ip, [r2, #8] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
a000b2f0: e2824004 add r4, r2, #4 <== NOT EXECUTED
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
a000b2f4: e5823008 str r3, [r2, #8] <== NOT EXECUTED
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
a000b2f8: e8831010 stm r3, {r4, ip} <== NOT EXECUTED
tail->previous = the_node; old_last->next = the_node;
a000b2fc: e58c3000 str r3, [ip] <== NOT EXECUTED
static inline void arm_interrupt_flash( uint32_t level )
{
uint32_t arm_switch_reg;
__asm__ volatile (
a000b300: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000b304: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a000b308: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
_Chain_Extract_unprotected( &executing->Object.Node );
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
a000b30c: e591c008 ldr ip, [r1, #8] <== NOT EXECUTED a000b310: e153000c cmp r3, ip <== NOT EXECUTED
_Thread_Heir = (Thread_Control *) _Chain_First( ready );
a000b314: 05923000 ldreq r3, [r2] <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
a000b318: e3a02001 mov r2, #1 <== NOT EXECUTED
_Chain_Append_unprotected( ready, &executing->Object.Node );
_ISR_Flash( level );
if ( _Thread_Is_heir( executing ) )
_Thread_Heir = (Thread_Control *) _Chain_First( ready );
a000b31c: 05813008 streq r3, [r1, #8] <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
a000b320: e59f301c ldr r3, [pc, #28] ; a000b344 <_Scheduler_priority_Yield+0x94><== NOT EXECUTED a000b324: e5c32010 strb r2, [r3, #16] <== NOT EXECUTED a000b328: ea000003 b a000b33c <_Scheduler_priority_Yield+0x8c> <== NOT EXECUTED
}
else if ( !_Thread_Is_heir( executing ) )
a000b32c: e5912008 ldr r2, [r1, #8] <== NOT EXECUTED a000b330: e1530002 cmp r3, r2 <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
a000b334: 13a03001 movne r3, #1 <== NOT EXECUTED a000b338: 15c13010 strbne r3, [r1, #16] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000b33c: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
_ISR_Enable( level );
}
a000b340: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000b3cc <_Scheduler_simple_Block>:
#include <rtems/score/schedulersimple.h>
void _Scheduler_simple_Block(
Thread_Control *the_thread
)
{
a000b3cc: e92d4010 push {r4, lr} <== NOT EXECUTED
a000b3d0: e1a04000 mov r4, r0 <== NOT EXECUTED
_Scheduler_simple_Extract(the_thread);
a000b3d4: eb00000d bl a000b410 <_Scheduler_simple_Extract> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_heir (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Heir );
a000b3d8: e59f3024 ldr r3, [pc, #36] ; a000b404 <_Scheduler_simple_Block+0x38><== NOT EXECUTED
if ( _Thread_Is_heir( the_thread ) )
a000b3dc: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000b3e0: e1540003 cmp r4, r3 <== NOT EXECUTED a000b3e4: 1a000000 bne a000b3ec <_Scheduler_simple_Block+0x20> <== NOT EXECUTED
_Scheduler_simple_Schedule();
a000b3e8: eb000043 bl a000b4fc <_Scheduler_simple_Schedule> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
a000b3ec: e59f3010 ldr r3, [pc, #16] ; a000b404 <_Scheduler_simple_Block+0x38><== NOT EXECUTED
if ( _Thread_Is_executing( the_thread ) )
a000b3f0: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000b3f4: e1540002 cmp r4, r2 <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
a000b3f8: 03a02001 moveq r2, #1 <== NOT EXECUTED
a000b3fc: 05c32010 strbeq r2, [r3, #16] <== NOT EXECUTED
a000b400: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000b40c <_Scheduler_simple_Enqueue>:
void _Scheduler_simple_Enqueue(
Thread_Control *the_thread
)
{
_Scheduler_simple_Ready_queue_Enqueue( the_thread );
a000b40c: ea000024 b a000b4a4 <_Scheduler_simple_Ready_queue_Enqueue><== NOT EXECUTED
a000b408 <_Scheduler_simple_Enqueue_first>:
void _Scheduler_simple_Enqueue_first(
Thread_Control *the_thread
)
{
_Scheduler_simple_Ready_queue_Enqueue_first( the_thread );
a000b408: ea000014 b a000b460 <_Scheduler_simple_Ready_queue_Enqueue_first><== NOT EXECUTED
a000b410 <_Scheduler_simple_Extract>:
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
a000b410: e890000c ldm r0, {r2, r3} <== NOT EXECUTED
previous = the_node->previous; next->previous = previous;
a000b414: e5823004 str r3, [r2, #4] <== NOT EXECUTED
previous->next = next;
a000b418: e5832000 str r2, [r3] <== NOT EXECUTED
void _Scheduler_simple_Extract(
Thread_Control *the_thread
)
{
_Chain_Extract_unprotected( &the_thread->Object.Node );
}
a000b41c: e12fff1e bx lr <== NOT EXECUTED
a000b42c <_Scheduler_simple_Free>:
*/
void _Scheduler_simple_Free(
Thread_Control *the_thread
)
{
}
a000b42c: e12fff1e bx lr <== NOT EXECUTED
a000b4a4 <_Scheduler_simple_Ready_queue_Enqueue>:
{
Chain_Control *ready;
Chain_Node *the_node;
Thread_Control *current;
ready = (Chain_Control *)_Scheduler.information;
a000b4a4: e59f304c ldr r3, [pc, #76] ; a000b4f8 <_Scheduler_simple_Ready_queue_Enqueue+0x54>
#include <rtems/score/schedulersimple.h>
void _Scheduler_simple_Ready_queue_Enqueue(
Thread_Control *the_thread
)
{
a000b4a8: e92d4010 push {r4, lr}
Chain_Control *ready;
Chain_Node *the_node;
Thread_Control *current;
ready = (Chain_Control *)_Scheduler.information;
a000b4ac: e5933000 ldr r3, [r3]
}
}
/* enqueue */
_Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node );
}
a000b4b0: e5932000 ldr r2, [r3]
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(
Chain_Control *the_chain,
const Chain_Node *the_node
)
{
return (the_node == _Chain_Tail(the_chain));
a000b4b4: e2831004 add r1, r3, #4
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 ) {
a000b4b8: ea000006 b a000b4d8 <_Scheduler_simple_Ready_queue_Enqueue+0x34>
current = (Thread_Control *) the_node;
/* break when AT END OR PAST our priority */
if ( the_thread->current_priority < current->current_priority ) {
a000b4bc: e5904014 ldr r4, [r0, #20] <== NOT EXECUTED a000b4c0: e592c014 ldr ip, [r2, #20] <== 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 ) {
current = (Thread_Control *) the_node;
a000b4c4: e1a03002 mov r3, r2 <== NOT EXECUTED
/* break when AT END OR PAST our priority */
if ( the_thread->current_priority < current->current_priority ) {
a000b4c8: e154000c cmp r4, ip <== NOT EXECUTED
current = (Thread_Control *)current->Object.Node.previous;
a000b4cc: 35923004 ldrcc r3, [r2, #4] <== NOT EXECUTED
break;
a000b4d0: 3a000002 bcc a000b4e0 <_Scheduler_simple_Ready_queue_Enqueue+0x3c><== 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 ) {
a000b4d4: e5922000 ldr r2, [r2] <== NOT EXECUTED
a000b4d8: e1520001 cmp r2, r1
a000b4dc: 1afffff6 bne a000b4bc <_Scheduler_simple_Ready_queue_Enqueue+0x18>
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
a000b4e0: e5932000 ldr r2, [r3]
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
a000b4e4: e5803004 str r3, [r0, #4]
before_node = after_node->next; after_node->next = the_node;
a000b4e8: e5830000 str r0, [r3]
the_node->next = before_node; before_node->previous = the_node;
a000b4ec: e5820004 str r0, [r2, #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;
a000b4f0: e5802000 str r2, [r0]
}
}
/* enqueue */
_Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node );
}
a000b4f4: e8bd8010 pop {r4, pc}
a000b460 <_Scheduler_simple_Ready_queue_Enqueue_first>:
{
Chain_Control *ready;
Chain_Node *the_node;
Thread_Control *current;
ready = (Chain_Control *)_Scheduler.information;
a000b460: e59f3038 ldr r3, [pc, #56] ; a000b4a0 <_Scheduler_simple_Ready_queue_Enqueue_first+0x40><== 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 ) {
a000b464: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED
}
}
/* enqueue */
_Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node );
}
a000b468: e5933000 ldr r3, [r3] <== NOT EXECUTED a000b46c: e5933000 ldr r3, [r3] <== 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 ) {
a000b470: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a000b474: e1520001 cmp r2, r1 <== NOT EXECUTED a000b478: 8a000006 bhi a000b498 <_Scheduler_simple_Ready_queue_Enqueue_first+0x38><== NOT EXECUTED
current = (Thread_Control *)current->Object.Node.previous;
a000b47c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
a000b480: e5932000 ldr r2, [r3] <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
a000b484: e5803004 str r3, [r0, #4] <== NOT EXECUTED
before_node = after_node->next; after_node->next = the_node;
a000b488: e5830000 str r0, [r3] <== NOT EXECUTED
the_node->next = before_node; before_node->previous = the_node;
a000b48c: 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;
a000b490: e5802000 str r2, [r0] <== NOT EXECUTED
}
}
/* enqueue */
_Chain_Insert_unprotected( (Chain_Node *)current, &the_thread->Object.Node );
}
a000b494: e12fff1e bx lr <== NOT EXECUTED
* Do NOT need to check for end of chain because there is always
* at least one task on the ready chain -- the IDLE task. It can
* never block, should never attempt to obtain a semaphore or mutex,
* and thus will always be there.
*/
for ( the_node = _Chain_First(ready) ; ; the_node = the_node->next ) {
a000b498: e5933000 ldr r3, [r3] <== NOT EXECUTED
/* break when AT HEAD OF (or PAST) our priority */
if ( the_thread->current_priority <= current->current_priority ) {
current = (Thread_Control *)current->Object.Node.previous;
break;
}
}
a000b49c: eafffff3 b a000b470 <_Scheduler_simple_Ready_queue_Enqueue_first+0x10><== NOT EXECUTED
a000b4fc <_Scheduler_simple_Schedule>:
#include <rtems/score/schedulersimple.h>
void _Scheduler_simple_Schedule(void)
{
_Thread_Heir = (Thread_Control *) _Chain_First(
(Chain_Control *) _Scheduler.information
a000b4fc: e59f3010 ldr r3, [pc, #16] ; a000b514 <_Scheduler_simple_Schedule+0x18><== NOT EXECUTED
); }
a000b500: 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(
a000b504: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b508: e59f3008 ldr r3, [pc, #8] ; a000b518 <_Scheduler_simple_Schedule+0x1c><== NOT EXECUTED a000b50c: e5832008 str r2, [r3, #8] <== NOT EXECUTED
(Chain_Control *) _Scheduler.information
);
}
a000b510: e12fff1e bx lr <== NOT EXECUTED
a000b51c <_Scheduler_simple_Unblock>:
#include <rtems/score/thread.h>
void _Scheduler_simple_Unblock(
Thread_Control *the_thread
)
{
a000b51c: e92d4010 push {r4, lr}
a000b520: e1a04000 mov r4, r0
_Scheduler_simple_Ready_queue_Enqueue(the_thread);
a000b524: ebffffde bl a000b4a4 <_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 ) {
a000b528: e59f303c ldr r3, [pc, #60] ; a000b56c <_Scheduler_simple_Unblock+0x50> a000b52c: e5942014 ldr r2, [r4, #20] a000b530: e5931008 ldr r1, [r3, #8] a000b534: e5911014 ldr r1, [r1, #20] a000b538: e1520001 cmp r2, r1
a000b53c: 2a000009 bcs a000b568 <_Scheduler_simple_Unblock+0x4c>
_Thread_Heir = the_thread;
a000b540: e5834008 str r4, [r3, #8] <== NOT EXECUTED
if ( _Thread_Executing->is_preemptible ||
a000b544: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000b548: e5d33074 ldrb r3, [r3, #116] ; 0x74 <== NOT EXECUTED a000b54c: e3530000 cmp r3, #0 <== NOT EXECUTED a000b550: 1a000001 bne a000b55c <_Scheduler_simple_Unblock+0x40> <== NOT EXECUTED a000b554: e3520000 cmp r2, #0 <== NOT EXECUTED a000b558: 1a000002 bne a000b568 <_Scheduler_simple_Unblock+0x4c> <== NOT EXECUTED
the_thread->current_priority == 0 )
_Thread_Dispatch_necessary = true;
a000b55c: e59f3008 ldr r3, [pc, #8] ; a000b56c <_Scheduler_simple_Unblock+0x50><== NOT EXECUTED a000b560: e3a02001 mov r2, #1 <== NOT EXECUTED a000b564: e5c32010 strb r2, [r3, #16] <== NOT EXECUTED
a000b568: e8bd8010 pop {r4, pc}
a000b570 <_Scheduler_simple_Yield>:
#include <rtems/score/scheduler.h>
#include <rtems/score/thread.h>
#include <rtems/score/schedulersimple.h>
void _Scheduler_simple_Yield( void )
{
a000b570: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
ISR_Level level;
Thread_Control *executing;
executing = _Thread_Executing;
a000b574: e59f5048 ldr r5, [pc, #72] ; a000b5c4 <_Scheduler_simple_Yield+0x54><== NOT EXECUTED a000b578: e5954004 ldr r4, [r5, #4] <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000b57c: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000b580: e3863080 orr r3, r6, #128 ; 0x80 <== NOT EXECUTED a000b584: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
a000b588: e894000c ldm r4, {r2, r3} <== NOT EXECUTED
{
/* extract */
_Chain_Extract_unprotected( &the_thread->Object.Node );
/* enqueue */
_Scheduler_simple_Ready_queue_Enqueue( the_thread );
a000b58c: e1a00004 mov r0, r4 <== NOT EXECUTED
previous = the_node->previous; next->previous = previous;
a000b590: e5823004 str r3, [r2, #4] <== NOT EXECUTED
previous->next = next;
a000b594: e5832000 str r2, [r3] <== NOT EXECUTED a000b598: ebffffc1 bl a000b4a4 <_Scheduler_simple_Ready_queue_Enqueue><== NOT EXECUTED
static inline void arm_interrupt_flash( uint32_t level )
{
uint32_t arm_switch_reg;
__asm__ volatile (
a000b59c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000b5a0: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED a000b5a4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_Scheduler_simple_Ready_queue_Requeue(&_Scheduler, executing);
_ISR_Flash( level );
_Scheduler_simple_Schedule();
a000b5a8: ebffffd3 bl a000b4fc <_Scheduler_simple_Schedule> <== NOT EXECUTED
if ( !_Thread_Is_heir( executing ) )
a000b5ac: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a000b5b0: e1540003 cmp r4, r3 <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
a000b5b4: 13a03001 movne r3, #1 <== NOT EXECUTED a000b5b8: 15c53010 strbne r3, [r5, #16] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000b5bc: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
_ISR_Enable( level );
}
a000b5c0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0009550 <_Semaphore_Translate_core_semaphore_return_code>:
*/
#if defined(RTEMS_DEBUG)
if ( status > CORE_SEMAPHORE_STATUS_LAST )
return RTEMS_INTERNAL_ERROR;
#endif
return _Semaphore_Translate_core_semaphore_return_code_[status];
a0009550: e59f3008 ldr r3, [pc, #8] ; a0009560 <_Semaphore_Translate_core_semaphore_return_code+0x10><== NOT EXECUTED a0009554: e0833100 add r3, r3, r0, lsl #2 <== NOT EXECUTED
}
a0009558: e593001c ldr r0, [r3, #28] <== NOT EXECUTED a000955c: e12fff1e bx lr <== NOT EXECUTED
a000efc0 <_TOD_Get_uptime>:
*/
void _TOD_Get_uptime(
Timestamp_Control *uptime
)
{
a000efc0: e92d403f push {r0, r1, r2, r3, r4, r5, lr} <== NOT EXECUTED
a000efc4: e1a04000 mov r4, r0 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000efc8: e10f5000 mrs r5, CPSR <== NOT EXECUTED a000efcc: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a000efd0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
/* assume time checked for NULL by caller */
/* _TOD_Uptime is in native timestamp format */
_ISR_Disable( level );
up = _TOD_Uptime;
a000efd4: e59f3038 ldr r3, [pc, #56] ; a000f014 <_TOD_Get_uptime+0x54><== NOT EXECUTED
a000efd8: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a000efdc: e88d000c stm sp, {r2, r3} <== NOT EXECUTED
nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();
a000efe0: e59f3030 ldr r3, [pc, #48] ; a000f018 <_TOD_Get_uptime+0x58><== NOT EXECUTED a000efe4: e5933000 ldr r3, [r3] <== NOT EXECUTED a000efe8: e12fff33 blx r3 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000efec: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
_ISR_Enable( level );
_Timestamp_Set( &offset, 0, nanoseconds );
a000eff0: e3a03000 mov r3, #0 <== NOT EXECUTED a000eff4: e58d000c str r0, [sp, #12] <== NOT EXECUTED
_Timestamp_Add_to( &up, &offset );
a000eff8: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000effc: e1a0000d mov r0, sp <== NOT EXECUTED
_ISR_Disable( level );
up = _TOD_Uptime;
nanoseconds = (*_Watchdog_Nanoseconds_since_tick_handler)();
_ISR_Enable( level );
_Timestamp_Set( &offset, 0, nanoseconds );
a000f000: e58d3008 str r3, [sp, #8] <== NOT EXECUTED
_Timestamp_Add_to( &up, &offset );
a000f004: ebfff484 bl a000c21c <_Timespec_Add_to> <== NOT EXECUTED
*uptime = up;
a000f008: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED
a000f00c: e884000c stm r4, {r2, r3} <== NOT EXECUTED
}
a000f010: e8bd803f pop {r0, r1, r2, r3, r4, r5, pc} <== NOT EXECUTED
a000a53c <_TOD_Get_uptime_as_timespec>:
*/
void _TOD_Get_uptime_as_timespec(
struct timespec *uptime
)
{
a000a53c: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED
a000a540: e1a04000 mov r4, r0 <== NOT EXECUTED
Timestamp_Control uptime_ts;
/* assume time checked for NULL by caller */
_TOD_Get_uptime( &uptime_ts );
a000a544: e1a0000d mov r0, sp <== NOT EXECUTED a000a548: eb0013b6 bl a000f428 <_TOD_Get_uptime> <== NOT EXECUTED
_Timestamp_To_timespec( &uptime_ts, uptime );
a000a54c: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED
a000a550: e884000c stm r4, {r2, r3} <== NOT EXECUTED
}
a000a554: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED
a000bb2c <_TOD_Set>:
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000bb2c: e59f3064 ldr r3, [pc, #100] ; a000bb98 <_TOD_Set+0x6c> <== NOT EXECUTED
*/
void _TOD_Set(
const struct timespec *time
)
{
a000bb30: e92d4010 push {r4, lr} <== NOT EXECUTED
a000bb34: e5932000 ldr r2, [r3] <== NOT EXECUTED
a000bb38: e1a04000 mov r4, r0 <== NOT EXECUTED
a000bb3c: e2822001 add r2, r2, #1 <== NOT EXECUTED
a000bb40: e5832000 str r2, [r3] <== NOT EXECUTED
long seconds;
_Thread_Disable_dispatch();
_TOD_Deactivate();
seconds = _TOD_Seconds_since_epoch();
a000bb44: e59f3050 ldr r3, [pc, #80] ; a000bb9c <_TOD_Set+0x70> <== NOT EXECUTED
if ( time->tv_sec < seconds )
a000bb48: e5902000 ldr r2, [r0] <== NOT EXECUTED
long seconds;
_Thread_Disable_dispatch();
_TOD_Deactivate();
seconds = _TOD_Seconds_since_epoch();
a000bb4c: e5933000 ldr r3, [r3] <== NOT EXECUTED
if ( time->tv_sec < seconds )
a000bb50: e1520003 cmp r2, r3 <== NOT EXECUTED
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
_Watchdog_Adjust( &_Watchdog_Seconds_chain, direction, units );
a000bb54: b0622003 rsblt r2, r2, r3 <== NOT EXECUTED a000bb58: a0632002 rsbge r2, r3, r2 <== NOT EXECUTED a000bb5c: b59f003c ldrlt r0, [pc, #60] ; a000bba0 <_TOD_Set+0x74> <== NOT EXECUTED a000bb60: b3a01001 movlt r1, #1 <== NOT EXECUTED a000bb64: a59f0034 ldrge r0, [pc, #52] ; a000bba0 <_TOD_Set+0x74> <== NOT EXECUTED a000bb68: a3a01000 movge r1, #0 <== NOT EXECUTED a000bb6c: eb00095c bl a000e0e4 <_Watchdog_Adjust> <== NOT EXECUTED
_Watchdog_Adjust_seconds( WATCHDOG_BACKWARD, seconds - time->tv_sec );
else
_Watchdog_Adjust_seconds( WATCHDOG_FORWARD, time->tv_sec - seconds );
/* POSIX format TOD (timespec) */
_Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec );
a000bb70: e5942000 ldr r2, [r4] <== NOT EXECUTED a000bb74: e59f3020 ldr r3, [pc, #32] ; a000bb9c <_TOD_Set+0x70> <== NOT EXECUTED a000bb78: e5832000 str r2, [r3] <== NOT EXECUTED a000bb7c: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a000bb80: e5832004 str r2, [r3, #4] <== NOT EXECUTED
_TOD_Is_set = true;
a000bb84: e59f3018 ldr r3, [pc, #24] ; a000bba4 <_TOD_Set+0x78> <== NOT EXECUTED a000bb88: e3a02001 mov r2, #1 <== NOT EXECUTED a000bb8c: e5c32000 strb r2, [r3] <== NOT EXECUTED
_TOD_Activate();
_Thread_Enable_dispatch();
}
a000bb90: e8bd4010 pop {r4, lr} <== NOT EXECUTED
_Timestamp_Set( &_TOD_Now, time->tv_sec, time->tv_nsec );
_TOD_Is_set = true;
_TOD_Activate();
_Thread_Enable_dispatch();
a000bb94: ea0005b3 b a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
a000a1b8 <_TOD_Tickle_ticks>:
*
* Output parameters: NONE
*/
void _TOD_Tickle_ticks( void )
{
a000a1b8: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
a000a1bc: e3a03000 mov r3, #0 <== NOT EXECUTED a000a1c0: e58d3000 str r3, [sp] <== NOT EXECUTED a000a1c4: e59f3054 ldr r3, [pc, #84] ; a000a220 <_TOD_Tickle_ticks+0x68><== NOT EXECUTED a000a1c8: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
a000a1cc: e1a0100d mov r1, sp <== NOT EXECUTED
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
a000a1d0: e593300c ldr r3, [r3, #12] <== NOT EXECUTED
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
a000a1d4: e59f0048 ldr r0, [pc, #72] ; a000a224 <_TOD_Tickle_ticks+0x6c><== NOT EXECUTED
{
Timestamp_Control tick;
uint32_t seconds;
/* Convert the tick quantum to a timestamp */
_Timestamp_Set( &tick, 0, rtems_configuration_get_nanoseconds_per_tick() );
a000a1d8: e0030392 mul r3, r2, r3 <== NOT EXECUTED a000a1dc: e58d3004 str r3, [sp, #4] <== NOT EXECUTED
/* Update the counter of ticks since boot */
_Watchdog_Ticks_since_boot += 1;
a000a1e0: e59f3040 ldr r3, [pc, #64] ; a000a228 <_TOD_Tickle_ticks+0x70><== NOT EXECUTED a000a1e4: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a1e8: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a1ec: e5832000 str r2, [r3] <== NOT EXECUTED
/* Update the timespec format uptime */
_Timestamp_Add_to( &_TOD_Uptime, &tick );
a000a1f0: eb000809 bl a000c21c <_Timespec_Add_to> <== NOT EXECUTED
/* we do not care how much the uptime changed */
/* Update the timespec format TOD */
seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );
a000a1f4: e59f0030 ldr r0, [pc, #48] ; a000a22c <_TOD_Tickle_ticks+0x74><== NOT EXECUTED a000a1f8: e1a0100d mov r1, sp <== NOT EXECUTED a000a1fc: eb000806 bl a000c21c <_Timespec_Add_to> <== NOT EXECUTED a000a200: e1a04000 mov r4, r0 <== NOT EXECUTED
while ( seconds ) {
a000a204: ea000002 b a000a214 <_TOD_Tickle_ticks+0x5c> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_seconds( void )
{
_Watchdog_Tickle( &_Watchdog_Seconds_chain );
a000a208: e59f0020 ldr r0, [pc, #32] ; a000a230 <_TOD_Tickle_ticks+0x78><== NOT EXECUTED a000a20c: eb00094f bl a000c750 <_Watchdog_Tickle> <== NOT EXECUTED
_Watchdog_Tickle_seconds();
seconds--;
a000a210: e2444001 sub r4, r4, #1 <== NOT EXECUTED
_Timestamp_Add_to( &_TOD_Uptime, &tick );
/* we do not care how much the uptime changed */
/* Update the timespec format TOD */
seconds = _Timestamp_Add_to_at_tick( &_TOD_Now, &tick );
while ( seconds ) {
a000a214: e3540000 cmp r4, #0 <== NOT EXECUTED a000a218: 1afffffa bne a000a208 <_TOD_Tickle_ticks+0x50> <== NOT EXECUTED
_Watchdog_Tickle_seconds();
seconds--;
}
}
a000a21c: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED
a000a32c <_TOD_To_seconds>:
{
uint32_t time;
uint32_t year_mod_4;
time = the_tod->day - 1;
year_mod_4 = the_tod->year & 3;
a000a32c: e8901008 ldm r0, {r3, ip} <== NOT EXECUTED
a000a330: e59f1070 ldr r1, [pc, #112] ; a000a3a8 <_TOD_To_seconds+0x7c><== NOT EXECUTED
*/
uint32_t _TOD_To_seconds(
const rtems_time_of_day *the_tod
)
{
a000a334: e92d4010 push {r4, lr} <== NOT EXECUTED
uint32_t year_mod_4;
time = the_tod->day - 1;
year_mod_4 = the_tod->year & 3;
if ( year_mod_4 == 0 )
a000a338: e2134003 ands r4, r3, #3 <== NOT EXECUTED
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
a000a33c: 0081108c addeq r1, r1, ip, lsl #1 <== NOT EXECUTED
)
{
uint32_t time;
uint32_t year_mod_4;
time = the_tod->day - 1;
a000a340: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED
year_mod_4 = the_tod->year & 3;
if ( year_mod_4 == 0 )
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
else
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
a000a344: 11a0c08c lslne ip, ip, #1 <== NOT EXECUTED a000a348: 119110bc ldrhne r1, [r1, ip] <== NOT EXECUTED
time = the_tod->day - 1;
year_mod_4 = the_tod->year & 3;
if ( year_mod_4 == 0 )
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
a000a34c: 01d111ba ldrheq r1, [r1, #26] <== NOT EXECUTED
)
{
uint32_t time;
uint32_t year_mod_4;
time = the_tod->day - 1;
a000a350: e2422001 sub r2, r2, #1 <== NOT EXECUTED
if ( year_mod_4 == 0 )
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
else
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) *
a000a354: e2433d1f sub r3, r3, #1984 ; 0x7c0 <== NOT EXECUTED
year_mod_4 = the_tod->year & 3;
if ( year_mod_4 == 0 )
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
else
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
a000a358: e0812002 add r2, r1, r2 <== NOT EXECUTED
time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) *
( (TOD_DAYS_PER_YEAR * 4) + 1);
time += _TOD_Days_since_last_leap_year[ year_mod_4 ];
a000a35c: e59f1044 ldr r1, [pc, #68] ; a000a3a8 <_TOD_To_seconds+0x7c><== NOT EXECUTED
if ( year_mod_4 == 0 )
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
else
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) *
a000a360: e2433004 sub r3, r3, #4 <== NOT EXECUTED a000a364: e1a03123 lsr r3, r3, #2 <== NOT EXECUTED
( (TOD_DAYS_PER_YEAR * 4) + 1);
time += _TOD_Days_since_last_leap_year[ year_mod_4 ];
a000a368: e0811084 add r1, r1, r4, lsl #1 <== NOT EXECUTED a000a36c: e1d1c3b4 ldrh ip, [r1, #52] ; 0x34 <== NOT EXECUTED
if ( year_mod_4 == 0 )
time += _TOD_Days_to_date[ 1 ][ the_tod->month ];
else
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) *
a000a370: e59f1034 ldr r1, [pc, #52] ; a000a3ac <_TOD_To_seconds+0x80><== NOT EXECUTED a000a374: e021c193 mla r1, r3, r1, ip <== NOT EXECUTED
time += _TOD_Days_since_last_leap_year[ year_mod_4 ];
time *= TOD_SECONDS_PER_DAY;
time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute)
a000a378: e59f3030 ldr r3, [pc, #48] ; a000a3b0 <_TOD_To_seconds+0x84><== NOT EXECUTED
time += _TOD_Days_to_date[ 0 ][ the_tod->month ];
time += ( (the_tod->year - TOD_BASE_YEAR) / 4 ) *
( (TOD_DAYS_PER_YEAR * 4) + 1);
time += _TOD_Days_since_last_leap_year[ year_mod_4 ];
a000a37c: e0811002 add r1, r1, r2 <== NOT EXECUTED
time *= TOD_SECONDS_PER_DAY;
time += ((the_tod->hour * TOD_MINUTES_PER_HOUR) + the_tod->minute)
a000a380: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED a000a384: e590c00c ldr ip, [r0, #12] <== NOT EXECUTED a000a388: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED a000a38c: e0823003 add r3, r2, r3 <== NOT EXECUTED a000a390: e3a0203c mov r2, #60 ; 0x3c <== NOT EXECUTED a000a394: e0200c92 mla r0, r2, ip, r0 <== NOT EXECUTED
* TOD_SECONDS_PER_MINUTE;
time += the_tod->second;
a000a398: e0233092 mla r3, r2, r0, r3 <== NOT EXECUTED
time += TOD_SECONDS_1970_THROUGH_1988;
return( time );
}
a000a39c: e59f0010 ldr r0, [pc, #16] ; a000a3b4 <_TOD_To_seconds+0x88><== NOT EXECUTED
a000a3a0: e0203091 mla r0, r1, r0, r3 <== NOT EXECUTED
a000a3a4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000a3b8 <_TOD_Validate>:
{
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
a000a3b8: e59f30b4 ldr r3, [pc, #180] ; a000a474 <_TOD_Validate+0xbc><== NOT EXECUTED
*/
bool _TOD_Validate(
const rtems_time_of_day *the_tod
)
{
a000a3bc: e92d4010 push {r4, lr} <== NOT EXECUTED
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) ||
a000a3c0: e2504000 subs r4, r0, #0 <== NOT EXECUTED
{
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick();
a000a3c4: e593100c ldr r1, [r3, #12] <== NOT EXECUTED
if ((!the_tod) ||
a000a3c8: 0a000021 beq a000a454 <_TOD_Validate+0x9c> <== NOT EXECUTED
)
{
uint32_t days_in_month;
uint32_t ticks_per_second;
ticks_per_second = TOD_MICROSECONDS_PER_SECOND /
a000a3cc: e59f00a4 ldr r0, [pc, #164] ; a000a478 <_TOD_Validate+0xc0><== NOT EXECUTED a000a3d0: eb0047e0 bl a001c358 <__aeabi_uidiv> <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick(); if ((!the_tod) ||
a000a3d4: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED a000a3d8: e1530000 cmp r3, r0 <== NOT EXECUTED a000a3dc: 2a000020 bcs a000a464 <_TOD_Validate+0xac> <== NOT EXECUTED
(the_tod->ticks >= ticks_per_second) ||
a000a3e0: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000a3e4: e353003b cmp r3, #59 ; 0x3b <== NOT EXECUTED a000a3e8: 8a00001d bhi a000a464 <_TOD_Validate+0xac> <== NOT EXECUTED
(the_tod->second >= TOD_SECONDS_PER_MINUTE) ||
a000a3ec: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000a3f0: e353003b cmp r3, #59 ; 0x3b <== NOT EXECUTED a000a3f4: 8a00001a bhi a000a464 <_TOD_Validate+0xac> <== NOT EXECUTED
(the_tod->minute >= TOD_MINUTES_PER_HOUR) ||
a000a3f8: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000a3fc: e3530017 cmp r3, #23 <== NOT EXECUTED a000a400: 8a000017 bhi a000a464 <_TOD_Validate+0xac> <== NOT EXECUTED
(the_tod->hour >= TOD_HOURS_PER_DAY) ||
(the_tod->month == 0) ||
a000a404: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED
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) ||
a000a408: e3530000 cmp r3, #0 <== NOT EXECUTED a000a40c: 0a000012 beq a000a45c <_TOD_Validate+0xa4> <== NOT EXECUTED
(the_tod->month == 0) ||
a000a410: e353000c cmp r3, #12 <== NOT EXECUTED a000a414: 8a000012 bhi a000a464 <_TOD_Validate+0xac> <== NOT EXECUTED
(the_tod->month > TOD_MONTHS_PER_YEAR) ||
(the_tod->year < TOD_BASE_YEAR) ||
a000a418: e5942000 ldr r2, [r4] <== NOT EXECUTED
(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) ||
a000a41c: e59f1058 ldr r1, [pc, #88] ; a000a47c <_TOD_Validate+0xc4> <== NOT EXECUTED a000a420: e1520001 cmp r2, r1 <== NOT EXECUTED a000a424: 9a000010 bls a000a46c <_TOD_Validate+0xb4> <== NOT EXECUTED
(the_tod->year < TOD_BASE_YEAR) ||
(the_tod->day == 0) )
a000a428: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED
(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) ||
a000a42c: e3500000 cmp r0, #0 <== NOT EXECUTED a000a430: 0a00000e beq a000a470 <_TOD_Validate+0xb8> <== NOT EXECUTED
(the_tod->day == 0) )
return false;
if ( (the_tod->year % 4) == 0 )
a000a434: e3120003 tst r2, #3 <== NOT EXECUTED a000a438: e59f2040 ldr r2, [pc, #64] ; a000a480 <_TOD_Validate+0xc8> <== NOT EXECUTED
days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];
a000a43c: 0283300d addeq r3, r3, #13 <== NOT EXECUTED
else
days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];
a000a440: e7924103 ldr r4, [r2, r3, lsl #2] <== NOT EXECUTED
* false - if the the_tod is invalid
*
* NOTE: This routine only works for leap-years through 2099.
*/
bool _TOD_Validate(
a000a444: e1500004 cmp r0, r4 <== NOT EXECUTED
a000a448: 83a00000 movhi r0, #0 <== NOT EXECUTED
a000a44c: 93a00001 movls r0, #1 <== NOT EXECUTED
a000a450: e8bd8010 pop {r4, pc} <== NOT EXECUTED
(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;
a000a454: e1a00004 mov r0, r4 <== NOT EXECUTED
a000a458: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000a45c: e1a00003 mov r0, r3 <== NOT EXECUTED
a000a460: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000a464: e3a00000 mov r0, #0 <== NOT EXECUTED
a000a468: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000a46c: e3a00000 mov r0, #0 <== NOT EXECUTED
if ( the_tod->day > days_in_month )
return false;
return true;
}
a000a470: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000b394 <_Thread_Change_priority>:
void _Thread_Change_priority(
Thread_Control *the_thread,
Priority_Control new_priority,
bool prepend_it
)
{
a000b394: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a000b398: e1a04000 mov r4, r0 <== NOT EXECUTED
a000b39c: e1a05001 mov r5, r1 <== NOT EXECUTED
a000b3a0: e20260ff and r6, r2, #255 ; 0xff <== NOT EXECUTED
States_Control state, original_state;
/*
* Save original state
*/
original_state = the_thread->current_state;
a000b3a4: e5907010 ldr r7, [r0, #16] <== NOT EXECUTED
/* * 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 );
a000b3a8: eb00031c bl a000c020 <_Thread_Set_transient> <== NOT EXECUTED
/*
* Do not bother recomputing all the priority related information if
* we are not REALLY changing priority.
*/
if ( the_thread->current_priority != new_priority )
a000b3ac: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000b3b0: e1530005 cmp r3, r5 <== NOT EXECUTED a000b3b4: 0a000002 beq a000b3c4 <_Thread_Change_priority+0x30> <== NOT EXECUTED
_Thread_Set_priority( the_thread, new_priority );
a000b3b8: e1a00004 mov r0, r4 <== NOT EXECUTED a000b3bc: e1a01005 mov r1, r5 <== NOT EXECUTED a000b3c0: eb0002fe bl a000bfc0 <_Thread_Set_priority> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000b3c4: e10f5000 mrs r5, CPSR <== NOT EXECUTED a000b3c8: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a000b3cc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
/*
* 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;
a000b3d0: e5942010 ldr r2, [r4, #16] <== NOT EXECUTED a000b3d4: e2077004 and r7, r7, #4 <== NOT EXECUTED
if ( state != STATES_TRANSIENT ) {
a000b3d8: e3520004 cmp r2, #4 <== NOT EXECUTED a000b3dc: 0a00000b beq a000b410 <_Thread_Change_priority+0x7c> <== NOT EXECUTED
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) )
a000b3e0: e3570000 cmp r7, #0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
a000b3e4: 03c23004 biceq r3, r2, #4 <== NOT EXECUTED
the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
a000b3e8: 05843010 streq r3, [r4, #16] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000b3ec: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
States_Control the_states
)
{
return (the_states & STATES_WAITING_ON_THREAD_QUEUE);
a000b3f0: e59f3080 ldr r3, [pc, #128] ; a000b478 <_Thread_Change_priority+0xe4><== NOT EXECUTED a000b3f4: e0023003 and r3, r2, r3 <== NOT EXECUTED
_ISR_Enable( level );
if ( _States_Is_waiting_on_thread_queue( state ) ) {
a000b3f8: e3530000 cmp r3, #0 <== NOT EXECUTED a000b3fc: 0a00001c beq a000b474 <_Thread_Change_priority+0xe0> <== NOT EXECUTED
_Thread_queue_Requeue( the_thread->Wait.queue, the_thread );
a000b400: e5940044 ldr r0, [r4, #68] ; 0x44 <== NOT EXECUTED a000b404: e1a01004 mov r1, r4 <== NOT EXECUTED
if ( !_Thread_Is_executing_also_the_heir() &&
_Thread_Executing->is_preemptible )
_Thread_Dispatch_necessary = true;
_ISR_Enable( level );
}
a000b408: 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 );
a000b40c: ea0002c6 b a000bf2c <_Thread_queue_Requeue> <== NOT EXECUTED
}
return;
}
/* Only clear the transient state if it wasn't set already */
if ( ! _States_Is_transient( original_state ) ) {
a000b410: e3570000 cmp r7, #0 <== NOT EXECUTED a000b414: 1a000006 bne a000b434 <_Thread_Change_priority+0xa0> <== NOT EXECUTED a000b418: e59f305c ldr r3, [pc, #92] ; a000b47c <_Thread_Change_priority+0xe8><== NOT EXECUTED
* 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 )
a000b41c: e3560000 cmp r6, #0 <== NOT EXECUTED
* 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 );
a000b420: e5847010 str r7, [r4, #16] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(
Thread_Control *the_thread
)
{
_Scheduler.Operations.enqueue_first( the_thread );
a000b424: 15933028 ldrne r3, [r3, #40] ; 0x28 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(
Thread_Control *the_thread
)
{
_Scheduler.Operations.enqueue( the_thread );
a000b428: 05933024 ldreq r3, [r3, #36] ; 0x24 <== NOT EXECUTED a000b42c: e1a00004 mov r0, r4 <== NOT EXECUTED a000b430: e12fff33 blx r3 <== NOT EXECUTED
static inline void arm_interrupt_flash( uint32_t level )
{
uint32_t arm_switch_reg;
__asm__ volatile (
a000b434: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000b438: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a000b43c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
* 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();
a000b440: e59f3034 ldr r3, [pc, #52] ; a000b47c <_Thread_Change_priority+0xe8><== NOT EXECUTED a000b444: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000b448: e12fff33 blx r3 <== NOT EXECUTED
* is also the heir thread, and false otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing_also_the_heir( void )
{
return ( _Thread_Executing == _Thread_Heir );
a000b44c: e59f302c ldr r3, [pc, #44] ; a000b480 <_Thread_Change_priority+0xec><== NOT EXECUTED a000b450: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED
* 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() &&
a000b454: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000b458: e1520001 cmp r2, r1 <== NOT EXECUTED a000b45c: 0a000003 beq a000b470 <_Thread_Change_priority+0xdc> <== NOT EXECUTED a000b460: e5d22074 ldrb r2, [r2, #116] ; 0x74 <== NOT EXECUTED a000b464: e3520000 cmp r2, #0 <== NOT EXECUTED
_Thread_Executing->is_preemptible )
_Thread_Dispatch_necessary = true;
a000b468: 13a02001 movne r2, #1 <== NOT EXECUTED a000b46c: 15c32010 strbne r2, [r3, #16] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000b470: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
a000b474: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000b484 <_Thread_Clear_state>:
*/
void _Thread_Clear_state(
Thread_Control *the_thread,
States_Control state
)
{
a000b484: e92d4010 push {r4, lr} <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000b488: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000b48c: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED a000b490: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
ISR_Level level;
States_Control current_state;
_ISR_Disable( level );
current_state = the_thread->current_state;
a000b494: e5902010 ldr r2, [r0, #16] <== NOT EXECUTED
if ( current_state & state ) {
a000b498: e1110002 tst r1, r2 <== NOT EXECUTED a000b49c: 0a000006 beq a000b4bc <_Thread_Clear_state+0x38> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE States_Control _States_Clear (
States_Control states_to_clear,
States_Control current_state
)
{
return (current_state & ~states_to_clear);
a000b4a0: e1c21001 bic r1, r2, r1 <== NOT EXECUTED
current_state =
the_thread->current_state = _States_Clear( state, current_state );
if ( _States_Is_ready( current_state ) ) {
a000b4a4: e3510000 cmp r1, #0 <== NOT EXECUTED
_ISR_Disable( level );
current_state = the_thread->current_state;
if ( current_state & state ) {
current_state =
the_thread->current_state = _States_Clear( state, current_state );
a000b4a8: e5801010 str r1, [r0, #16] <== NOT EXECUTED
if ( _States_Is_ready( current_state ) ) {
a000b4ac: 1a000002 bne a000b4bc <_Thread_Clear_state+0x38> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Unblock(
Thread_Control *the_thread
)
{
_Scheduler.Operations.unblock( the_thread );
a000b4b0: e59f300c ldr r3, [pc, #12] ; a000b4c4 <_Thread_Clear_state+0x40><== NOT EXECUTED a000b4b4: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED a000b4b8: e12fff33 blx r3 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000b4bc: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_Scheduler_Unblock( the_thread );
}
}
_ISR_Enable( level );
}
a000b4c0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000b4c8 <_Thread_Close>:
RTEMS_INLINE_ROUTINE void _Objects_Invalidate_Id(
Objects_Information *information,
Objects_Control *the_object
)
{
_Objects_Set_local_object(
a000b4c8: e1d120b8 ldrh r2, [r1, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000b4cc: e590301c ldr r3, [r0, #28] <== NOT EXECUTED
void _Thread_Close(
Objects_Information *information,
Thread_Control *the_thread
)
{
a000b4d0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a000b4d4: e1a04001 mov r4, r1 <== NOT EXECUTED
a000b4d8: e3a01000 mov r1, #0 <== NOT EXECUTED
a000b4dc: e7831102 str r1, [r3, r2, lsl #2] <== NOT EXECUTED
a000b4e0: e1a05000 mov r5, r0 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
a000b4e4: e59f6088 ldr r6, [pc, #136] ; a000b574 <_Thread_Close+0xac><== NOT EXECUTED
* disappear and set a transient state on it. So we temporarily
* unnest dispatching.
*/
_Thread_Unnest_dispatch();
_User_extensions_Thread_delete( the_thread );
a000b4e8: e1a00004 mov r0, r4 <== NOT EXECUTED a000b4ec: e5963000 ldr r3, [r6] <== NOT EXECUTED a000b4f0: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000b4f4: e5863000 str r3, [r6] <== NOT EXECUTED a000b4f8: eb0003e0 bl a000c480 <_User_extensions_Thread_delete> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000b4fc: e5963000 ldr r3, [r6] <== NOT EXECUTED a000b500: e2833001 add r3, r3, #1 <== NOT EXECUTED a000b504: e5863000 str r3, [r6] <== NOT EXECUTED
/* * 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 );
a000b508: e1a00005 mov r0, r5 <== NOT EXECUTED a000b50c: e1a01004 mov r1, r4 <== NOT EXECUTED a000b510: ebfffc7a bl a000a700 <_Objects_Close> <== NOT EXECUTED
/*
* 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 );
a000b514: e1a00004 mov r0, r4 <== NOT EXECUTED a000b518: e3a01001 mov r1, #1 <== NOT EXECUTED a000b51c: eb0002ae bl a000bfdc <_Thread_Set_state> <== NOT EXECUTED
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
a000b520: e1a00004 mov r0, r4 <== NOT EXECUTED a000b524: eb000250 bl a000be6c <_Thread_queue_Extract_with_proxy> <== NOT EXECUTED a000b528: e3500000 cmp r0, #0 <== NOT EXECUTED a000b52c: 1a000004 bne a000b544 <_Thread_Close+0x7c> <== NOT EXECUTED
if ( _Watchdog_Is_active( &the_thread->Timer ) )
a000b530: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000b534: e3530002 cmp r3, #2 <== NOT EXECUTED a000b538: 1a000001 bne a000b544 <_Thread_Close+0x7c> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
a000b53c: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000b540: eb000459 bl a000c6ac <_Watchdog_Remove> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Free(
Thread_Control *the_thread
)
{
return _Scheduler.Operations.free( the_thread );
a000b544: e59f302c ldr r3, [pc, #44] ; a000b578 <_Thread_Close+0xb0> <== NOT EXECUTED a000b548: e1a00004 mov r0, r4 <== NOT EXECUTED
/* * 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;
a000b54c: e3a05000 mov r5, #0 <== NOT EXECUTED a000b550: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a000b554: e12fff33 blx r3 <== NOT EXECUTED
/*
* Free the rest of the memory associated with this task
* and set the associated pointers to NULL for safety.
*/
_Thread_Stack_Free( the_thread );
a000b558: e1a00004 mov r0, r4 <== NOT EXECUTED a000b55c: eb0002d5 bl a000c0b8 <_Thread_Stack_Free> <== NOT EXECUTED
the_thread->Start.stack = NULL;
a000b560: e58450c0 str r5, [r4, #192] ; 0xc0 <== NOT EXECUTED
_Workspace_Free( the_thread->extensions );
a000b564: e5940100 ldr r0, [r4, #256] ; 0x100 <== NOT EXECUTED a000b568: eb0004bb bl a000c85c <_Workspace_Free> <== NOT EXECUTED
the_thread->extensions = NULL;
a000b56c: e5845100 str r5, [r4, #256] ; 0x100 <== NOT EXECUTED
}
a000b570: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000b654 <_Thread_Delay_ended>:
void _Thread_Delay_ended(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
a000b654: e92d4001 push {r0, lr} <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
a000b658: e1a0100d mov r1, sp <== NOT EXECUTED a000b65c: eb000058 bl a000b7c4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000b660: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000b664: e3530000 cmp r3, #0 <== NOT EXECUTED a000b668: 1a000005 bne a000b684 <_Thread_Delay_ended+0x30> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_Clear_state(
a000b66c: e59f1014 ldr r1, [pc, #20] ; a000b688 <_Thread_Delay_ended+0x34><== NOT EXECUTED a000b670: ebffff83 bl a000b484 <_Thread_Clear_state> <== NOT EXECUTED a000b674: e59f3010 ldr r3, [pc, #16] ; a000b68c <_Thread_Delay_ended+0x38><== NOT EXECUTED a000b678: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b67c: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000b680: e5832000 str r2, [r3] <== NOT EXECUTED
| STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Thread_Unnest_dispatch();
break;
}
}
a000b684: e8bd8008 pop {r3, pc} <== NOT EXECUTED
a00047f8 <_Thread_Disable_dispatch>:
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a00047f8: e59f300c ldr r3, [pc, #12] ; a000480c <_Thread_Disable_dispatch+0x14><== NOT EXECUTED a00047fc: e5932000 ldr r2, [r3] <== NOT EXECUTED a0004800: e2822001 add r2, r2, #1 <== NOT EXECUTED a0004804: e5832000 str r2, [r3] <== NOT EXECUTED
#if defined(RTEMS_HEAVY_MALLOC_DEBUG)
if ( _Thread_Dispatch_disable_level == 1 ) {
_Heap_Walk( RTEMS_Malloc_Heap,99, false );
}
#endif
}
a0004808: e12fff1e bx lr <== NOT EXECUTED
a000b690 <_Thread_Dispatch>:
* dispatch thread
* no dispatch thread
*/
void _Thread_Dispatch( void )
{
a000b690: e92d4fff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}
Thread_Control *executing;
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
a000b694: e59f60f0 ldr r6, [pc, #240] ; a000b78c <_Thread_Dispatch+0xfc> a000b698: e5965004 ldr r5, [r6, #4]
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000b69c: e10f3000 mrs r3, CPSR a000b6a0: e3832080 orr r2, r3, #128 ; 0x80 a000b6a4: e129f002 msr CPSR_fc, r2
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
a000b6a8: e59f90e0 ldr r9, [pc, #224] ; a000b790 <_Thread_Dispatch+0x100> a000b6ac: e3a0b001 mov fp, #1
#if __RTEMS_ADA__
executing->rtems_ada_self = rtems_ada_self;
rtems_ada_self = heir->rtems_ada_self;
#endif
if ( heir->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE )
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
a000b6b0: e59fa0dc ldr sl, [pc, #220] ; a000b794 <_Thread_Dispatch+0x104>
_ISR_Enable( level );
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
a000b6b4: e28d8008 add r8, sp, #8
_Timestamp_Subtract(
a000b6b8: e1a0700d mov r7, sp
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
a000b6bc: ea000029 b a000b768 <_Thread_Dispatch+0xd8>
heir = _Thread_Heir;
a000b6c0: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED
_Thread_Dispatch_disable_level = 1;
_Thread_Dispatch_necessary = false;
a000b6c4: e3a01000 mov r1, #0 <== NOT EXECUTED
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
a000b6c8: e589b000 str fp, [r9] <== 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 )
a000b6cc: e1540005 cmp r4, r5 <== NOT EXECUTED
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
heir = _Thread_Heir;
_Thread_Dispatch_disable_level = 1;
_Thread_Dispatch_necessary = false;
a000b6d0: e5c61010 strb r1, [r6, #16] <== NOT EXECUTED
_Thread_Executing = heir;
a000b6d4: e5864004 str r4, [r6, #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 )
a000b6d8: 0a000025 beq a000b774 <_Thread_Dispatch+0xe4> <== NOT EXECUTED
*/
#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 )
a000b6dc: e594207c ldr r2, [r4, #124] ; 0x7c <== NOT EXECUTED a000b6e0: e3520001 cmp r2, #1 <== NOT EXECUTED
heir->cpu_time_budget = _Thread_Ticks_per_timeslice;
a000b6e4: 059a2000 ldreq r2, [sl] <== NOT EXECUTED a000b6e8: 05842078 streq r2, [r4, #120] ; 0x78 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000b6ec: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
{
Timestamp_Control uptime, ran;
_TOD_Get_uptime( &uptime );
a000b6f0: e1a00008 mov r0, r8 <== NOT EXECUTED a000b6f4: eb000e31 bl a000efc0 <_TOD_Get_uptime> <== NOT EXECUTED
_Timestamp_Subtract(
a000b6f8: e1a0200d mov r2, sp <== NOT EXECUTED a000b6fc: e1a01008 mov r1, r8 <== NOT EXECUTED a000b700: e59f0090 ldr r0, [pc, #144] ; a000b798 <_Thread_Dispatch+0x108><== NOT EXECUTED a000b704: eb0002dc bl a000c27c <_Timespec_Subtract> <== NOT EXECUTED
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
a000b708: e1a0100d mov r1, sp <== NOT EXECUTED a000b70c: e2850084 add r0, r5, #132 ; 0x84 <== NOT EXECUTED a000b710: eb0002c1 bl a000c21c <_Timespec_Add_to> <== NOT EXECUTED
_Thread_Time_of_last_context_switch = uptime;
a000b714: e28d3008 add r3, sp, #8 <== NOT EXECUTED
a000b718: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a000b71c: e59f1074 ldr r1, [pc, #116] ; a000b798 <_Thread_Dispatch+0x108><== NOT EXECUTED
if ( _Thread_libc_reent ) {
executing->libc_reent = *_Thread_libc_reent;
*_Thread_libc_reent = heir->libc_reent;
}
_User_extensions_Thread_switch( executing, heir );
a000b720: e1a00005 mov r0, r5 <== NOT EXECUTED
&_Thread_Time_of_last_context_switch,
&uptime,
&ran
);
_Timestamp_Add_to( &executing->cpu_time_used, &ran );
_Thread_Time_of_last_context_switch = uptime;
a000b724: e881000c stm r1, {r2, r3} <== NOT EXECUTED
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
a000b728: e59f206c ldr r2, [pc, #108] ; a000b79c <_Thread_Dispatch+0x10c><== NOT EXECUTED
executing->libc_reent = *_Thread_libc_reent;
*_Thread_libc_reent = heir->libc_reent;
}
_User_extensions_Thread_switch( executing, heir );
a000b72c: e1a01004 mov r1, r4 <== NOT EXECUTED
#endif
/*
* Switch libc's task specific data.
*/
if ( _Thread_libc_reent ) {
a000b730: e5923000 ldr r3, [r2] <== NOT EXECUTED a000b734: e3530000 cmp r3, #0 <== NOT EXECUTED
executing->libc_reent = *_Thread_libc_reent;
a000b738: 15932000 ldrne r2, [r3] <== NOT EXECUTED a000b73c: 158520f4 strne r2, [r5, #244] ; 0xf4 <== NOT EXECUTED
*_Thread_libc_reent = heir->libc_reent;
a000b740: 159420f4 ldrne r2, [r4, #244] ; 0xf4 <== NOT EXECUTED a000b744: 15832000 strne r2, [r3] <== NOT EXECUTED
}
_User_extensions_Thread_switch( executing, heir );
a000b748: eb000370 bl a000c510 <_User_extensions_Thread_switch> <== NOT EXECUTED
if ( executing->fp_context != NULL )
_Context_Save_fp( &executing->fp_context );
#endif
#endif
_Context_Switch( &executing->Registers, &heir->Registers );
a000b74c: e28500c4 add r0, r5, #196 ; 0xc4 <== NOT EXECUTED a000b750: e28410c4 add r1, r4, #196 ; 0xc4 <== NOT EXECUTED a000b754: eb000520 bl a000cbdc <_CPU_Context_switch> <== NOT EXECUTED
if ( executing->fp_context != NULL )
_Context_Restore_fp( &executing->fp_context );
#endif
#endif
executing = _Thread_Executing;
a000b758: e5965004 ldr r5, [r6, #4] <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000b75c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000b760: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a000b764: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
Thread_Control *heir;
ISR_Level level;
executing = _Thread_Executing;
_ISR_Disable( level );
while ( _Thread_Dispatch_necessary == true ) {
a000b768: e5d62010 ldrb r2, [r6, #16] a000b76c: e3520000 cmp r2, #0
a000b770: 1affffd2 bne a000b6c0 <_Thread_Dispatch+0x30>
_ISR_Disable( level );
}
post_switch:
_Thread_Dispatch_disable_level = 0;
a000b774: e59f2014 ldr r2, [pc, #20] ; a000b790 <_Thread_Dispatch+0x100> a000b778: e3a01000 mov r1, #0 a000b77c: e5821000 str r1, [r2]
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000b780: e129f003 msr CPSR_fc, r3
_ISR_Enable( level );
_API_extensions_Run_postswitch();
a000b784: ebfff917 bl a0009be8 <_API_extensions_Run_postswitch>
}
a000b788: e8bd8fff pop {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}
a000b7c4 <_Thread_Get>:
*/
Thread_Control *_Thread_Get (
Objects_Id id,
Objects_Locations *location
)
{
a000b7c4: 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 ) ) {
a000b7c8: e2501000 subs r1, r0, #0
a000b7cc: 1a000007 bne a000b7f0 <_Thread_Get+0x2c>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000b7d0: e59f3074 ldr r3, [pc, #116] ; a000b84c <_Thread_Get+0x88> <== NOT EXECUTED a000b7d4: e5930000 ldr r0, [r3] <== NOT EXECUTED a000b7d8: e2800001 add r0, r0, #1 <== NOT EXECUTED a000b7dc: e5830000 str r0, [r3] <== NOT EXECUTED
_Thread_Disable_dispatch();
*location = OBJECTS_LOCAL;
tp = _Thread_Executing;
a000b7e0: e59f3068 ldr r3, [pc, #104] ; a000b850 <_Thread_Get+0x8c> <== NOT EXECUTED
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;
a000b7e4: e5821000 str r1, [r2] <== NOT EXECUTED
tp = _Thread_Executing;
a000b7e8: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED
goto done;
a000b7ec: e12fff1e bx lr <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
a000b7f0: e1a00c21 lsr r0, r1, #24 a000b7f4: e2000007 and r0, r0, #7
*/
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(
uint32_t the_api
)
{
if ( !the_api || the_api > OBJECTS_APIS_LAST )
a000b7f8: e2403001 sub r3, r0, #1 a000b7fc: e3530002 cmp r3, #2
a000b800: 9a00000d bls a000b83c <_Thread_Get+0x78>
goto done;
}
the_class = _Objects_Get_class( id );
if ( the_class != 1 ) { /* threads are always first class :) */
*location = OBJECTS_ERROR;
a000b804: e3a03001 mov r3, #1 <== NOT EXECUTED a000b808: e5823000 str r3, [r2] <== NOT EXECUTED
{
uint32_t the_api;
uint32_t the_class;
Objects_Information **api_information;
Objects_Information *information;
Thread_Control *tp = (Thread_Control *) 0;
a000b80c: e3a00000 mov r0, #0 <== NOT EXECUTED
}
the_class = _Objects_Get_class( id );
if ( the_class != 1 ) { /* threads are always first class :) */
*location = OBJECTS_ERROR;
goto done;
a000b810: e12fff1e bx lr <== NOT EXECUTED
}
api_information = _Objects_Information_table[ the_api ];
a000b814: e59fc038 ldr ip, [pc, #56] ; a000b854 <_Thread_Get+0x90> a000b818: e79c0100 ldr r0, [ip, r0, 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 ) {
a000b81c: e3500000 cmp r0, #0
a000b820: 0a000002 beq a000b830 <_Thread_Get+0x6c>
*location = OBJECTS_ERROR;
goto done;
}
information = api_information[ the_class ];
a000b824: e5900004 ldr r0, [r0, #4]
if ( !information ) {
a000b828: e3500000 cmp r0, #0
a000b82c: 1a000001 bne a000b838 <_Thread_Get+0x74>
*location = OBJECTS_ERROR;
a000b830: e5823000 str r3, [r2] <== NOT EXECUTED
goto done;
a000b834: e12fff1e bx lr <== NOT EXECUTED
}
tp = (Thread_Control *) _Objects_Get( information, id, location );
a000b838: eafffcad b a000aaf4 <_Objects_Get>
*/
RTEMS_INLINE_ROUTINE uint32_t _Objects_Get_class(
Objects_Id id
)
{
return (uint32_t)
a000b83c: e1a03da1 lsr r3, r1, #27
*location = OBJECTS_ERROR;
goto done;
}
the_class = _Objects_Get_class( id );
if ( the_class != 1 ) { /* threads are always first class :) */
a000b840: e3530001 cmp r3, #1
a000b844: 0afffff2 beq a000b814 <_Thread_Get+0x50>
a000b848: eaffffed b a000b804 <_Thread_Get+0x40> <== NOT EXECUTED
a0010eb4 <_Thread_Handler>:
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
a0010eb4: e59f3078 ldr r3, [pc, #120] ; a0010f34 <_Thread_Handler+0x80>
*
* Output parameters: NONE
*/
void _Thread_Handler( void )
{
a0010eb8: e92d4030 push {r4, r5, lr}
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
static char doneConstructors;
char doneCons;
#endif
executing = _Thread_Executing;
a0010ebc: e5934004 ldr r4, [r3, #4]
/*
* have to put level into a register for those cpu's that use
* inline asm here
*/
level = executing->Start.isr_level;
a0010ec0: e59400ac ldr r0, [r4, #172] ; 0xac
_ISR_Set_level(level);
a0010ec4: ebffef55 bl a000cc20 <_CPU_ISR_Set_level>
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
a0010ec8: e59f3068 ldr r3, [pc, #104] ; a0010f38 <_Thread_Handler+0x84>
doneConstructors = 1;
a0010ecc: e3a02001 mov r2, #1
/* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing );
a0010ed0: e1a00004 mov r0, r4
level = executing->Start.isr_level;
_ISR_Set_level(level);
#if defined(EXECUTE_GLOBAL_CONSTRUCTORS)
doneCons = doneConstructors;
a0010ed4: e5d35000 ldrb r5, [r3]
doneConstructors = 1;
a0010ed8: e5c32000 strb r2, [r3]
/* * Take care that 'begin' extensions get to complete before * 'switch' extensions can run. This means must keep dispatch * disabled until all 'begin' extensions complete. */ _User_extensions_Thread_begin( executing );
a0010edc: ebffed21 bl a000c368 <_User_extensions_Thread_begin>
/*
* At this point, the dispatch disable level BETTER be 1.
*/
_Thread_Enable_dispatch();
a0010ee0: ebffea2e bl a000b7a0 <_Thread_Enable_dispatch>
/*
* _init could be a weak symbol and we SHOULD test it but it isn't
* in any configuration I know of and it generates a warning on every
* RTEMS target configuration. --joel (12 May 2007)
*/
if (!doneCons) /* && (volatile void *)_init) */ {
a0010ee4: e3550000 cmp r5, #0
a0010ee8: 1a000000 bne a0010ef0 <_Thread_Handler+0x3c>
INIT_NAME ();
a0010eec: ebffcdb3 bl a00045c0 <bsp_section_text_load_begin>
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
a0010ef0: e5943094 ldr r3, [r4, #148] ; 0x94 a0010ef4: e3530000 cmp r3, #0
executing->Wait.return_argument =
(*(Thread_Entry_numeric) executing->Start.entry_point)(
a0010ef8: 05943090 ldreq r3, [r4, #144] ; 0x90 a0010efc: 0594009c ldreq r0, [r4, #156] ; 0x9c
if (!doneCons) /* && (volatile void *)_init) */ {
INIT_NAME ();
}
#endif
if ( executing->Start.prototype == THREAD_START_NUMERIC ) {
a0010f00: 0a000003 beq a0010f14 <_Thread_Handler+0x60>
(*(Thread_Entry_numeric) executing->Start.entry_point)(
executing->Start.numeric_argument
);
}
#if defined(RTEMS_POSIX_API)
else if ( executing->Start.prototype == THREAD_START_POINTER ) {
a0010f04: e3530001 cmp r3, #1 <== NOT EXECUTED a0010f08: 1a000003 bne a0010f1c <_Thread_Handler+0x68> <== NOT EXECUTED
executing->Wait.return_argument =
(*(Thread_Entry_pointer) executing->Start.entry_point)(
a0010f0c: e5943090 ldr r3, [r4, #144] ; 0x90 <== NOT EXECUTED a0010f10: e5940098 ldr r0, [r4, #152] ; 0x98 <== NOT EXECUTED
a0010f14: e12fff33 blx r3
executing->Start.numeric_argument
);
}
#if defined(RTEMS_POSIX_API)
else if ( executing->Start.prototype == THREAD_START_POINTER ) {
executing->Wait.return_argument =
a0010f18: e5840028 str r0, [r4, #40] ; 0x28
* was placed in return_argument. This assumed that if it returned
* anything (which is not supporting in all APIs), then it would be
* able to fit in a (void *).
*/
_User_extensions_Thread_exitted( executing );
a0010f1c: e1a00004 mov r0, r4 a0010f20: ebffed1f bl a000c3a4 <_User_extensions_Thread_exitted>
_Internal_error_Occurred(
a0010f24: e3a00000 mov r0, #0 a0010f28: e3a01001 mov r1, #1 a0010f2c: e3a02005 mov r2, #5 a0010f30: ebffe5b9 bl a000a61c <_Internal_error_Occurred>
a000ba2c <_Thread_Handler_initialization>:
*
* Output parameters: NONE
*/
void _Thread_Handler_initialization(void)
{
a000ba2c: e92d4007 push {r0, r1, r2, lr}
uint32_t maximum_internal_threads;
#if defined(RTEMS_MULTIPROCESSING)
uint32_t maximum_proxies;
#endif
ticks_per_timeslice = Configuration.ticks_per_timeslice;
a000ba30: e59f2080 ldr r2, [pc, #128] ; a000bab8 <_Thread_Handler_initialization+0x8c>
#endif
/*
* BOTH stacks hooks must be set or both must be NULL.
* Do not allow mixture.
*/
if ( !( (!Configuration.stack_allocate_hook)
a000ba34: e5923020 ldr r3, [r2, #32]
== (!Configuration.stack_free_hook) ) )
a000ba38: e592c024 ldr ip, [r2, #36] ; 0x24
uint32_t maximum_internal_threads;
#if defined(RTEMS_MULTIPROCESSING)
uint32_t maximum_proxies;
#endif
ticks_per_timeslice = Configuration.ticks_per_timeslice;
a000ba3c: e5921010 ldr r1, [r2, #16]
#endif
/*
* BOTH stacks hooks must be set or both must be NULL.
* Do not allow mixture.
*/
if ( !( (!Configuration.stack_allocate_hook)
a000ba40: e2733001 rsbs r3, r3, #1 a000ba44: 33a03000 movcc r3, #0 a000ba48: e35c0000 cmp ip, #0 a000ba4c: 02233001 eoreq r3, r3, #1 a000ba50: e3530000 cmp r3, #0
#if defined(RTEMS_MULTIPROCESSING)
uint32_t maximum_proxies;
#endif
ticks_per_timeslice = Configuration.ticks_per_timeslice;
maximum_extensions = Configuration.maximum_extensions;
a000ba54: e5920008 ldr r0, [r2, #8]
#endif
/*
* BOTH stacks hooks must be set or both must be NULL.
* Do not allow mixture.
*/
if ( !( (!Configuration.stack_allocate_hook)
a000ba58: 0a000003 beq a000ba6c <_Thread_Handler_initialization+0x40>
== (!Configuration.stack_free_hook) ) )
_Internal_error_Occurred(
a000ba5c: e3a00000 mov r0, #0 <== NOT EXECUTED a000ba60: e3a01001 mov r1, #1 <== NOT EXECUTED a000ba64: e3a0200e mov r2, #14 <== NOT EXECUTED a000ba68: ebfffaeb bl a000a61c <_Internal_error_Occurred> <== NOT EXECUTED
INTERNAL_ERROR_CORE,
true,
INTERNAL_ERROR_BAD_STACK_HOOK
);
_Thread_Dispatch_necessary = false;
a000ba6c: e59f2048 ldr r2, [pc, #72] ; a000babc <_Thread_Handler_initialization+0x90> a000ba70: e5c23010 strb r3, [r2, #16]
_Thread_Executing = NULL;
a000ba74: e5823004 str r3, [r2, #4]
_Thread_Heir = NULL;
a000ba78: e5823008 str r3, [r2, #8]
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
_Thread_Allocated_fp = NULL;
#endif
_Thread_Maximum_extensions = maximum_extensions;
a000ba7c: e59f203c ldr r2, [pc, #60] ; a000bac0 <_Thread_Handler_initialization+0x94> a000ba80: e5820000 str r0, [r2]
_Thread_Ticks_per_timeslice = ticks_per_timeslice;
a000ba84: e59f2038 ldr r2, [pc, #56] ; a000bac4 <_Thread_Handler_initialization+0x98>
#if defined(RTEMS_MULTIPROCESSING)
if ( _System_state_Is_multiprocessing )
maximum_internal_threads += 1;
#endif
_Objects_Initialize_information(
a000ba88: e59f0038 ldr r0, [pc, #56] ; a000bac8 <_Thread_Handler_initialization+0x9c>
_Thread_Allocated_fp = NULL;
#endif
_Thread_Maximum_extensions = maximum_extensions;
_Thread_Ticks_per_timeslice = ticks_per_timeslice;
a000ba8c: e5821000 str r1, [r2]
#if defined(RTEMS_MULTIPROCESSING)
if ( _System_state_Is_multiprocessing )
maximum_internal_threads += 1;
#endif
_Objects_Initialize_information(
a000ba90: e3a01001 mov r1, #1 a000ba94: e3a02f42 mov r2, #264 ; 0x108 a000ba98: e58d3004 str r3, [sp, #4] a000ba9c: e3a03008 mov r3, #8 a000baa0: e58d2000 str r2, [sp] a000baa4: e58d3008 str r3, [sp, #8] a000baa8: e1a02001 mov r2, r1 a000baac: e1a03001 mov r3, r1 a000bab0: ebfffc29 bl a000ab5c <_Objects_Initialize_information>
false, /* true if this is a global object class */
NULL /* Proxy extraction support callout */
#endif
);
}
a000bab4: e8bd800e pop {r1, r2, r3, pc}
a000b858 <_Thread_Initialize>:
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
a000b858: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr}
a000b85c: e1a07003 mov r7, r3
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
#else
if ( !stack_area ) {
a000b860: e2529000 subs r9, r2, #0
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
a000b864: e3a03000 mov r3, #0
Thread_CPU_budget_algorithms budget_algorithm,
Thread_CPU_budget_algorithm_callout budget_callout,
uint32_t isr_level,
Objects_Name name
)
{
a000b868: e1a05000 mov r5, r0 a000b86c: e1a04001 mov r4, r1 a000b870: e59d6024 ldr r6, [sp, #36] ; 0x24 a000b874: e59d802c ldr r8, [sp, #44] ; 0x2c a000b878: e5dda028 ldrb sl, [sp, #40] ; 0x28
/*
* Zero out all the allocated memory fields
*/
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
the_thread->API_Extensions[i] = NULL;
a000b87c: e58130f8 str r3, [r1, #248] ; 0xf8 a000b880: e58130fc str r3, [r1, #252] ; 0xfc
extensions_area = NULL;
the_thread->libc_reent = NULL;
a000b884: e58130f4 str r3, [r1, #244] ; 0xf4
stack = the_thread->Start.stack;
the_thread->Start.core_allocated_stack = true;
} else {
stack = stack_area;
actual_stack_size = stack_size;
the_thread->Start.core_allocated_stack = false;
a000b888: 15c130b4 strbne r3, [r1, #180] ; 0xb4 a000b88c: 11a00007 movne r0, r7
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
#else
if ( !stack_area ) {
a000b890: 1a00000c bne a000b8c8 <_Thread_Initialize+0x70>
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
a000b894: e1a00001 mov r0, r1 a000b898: e1a01007 mov r1, r7 a000b89c: eb0001ee bl a000c05c <_Thread_Stack_Allocate>
if ( !actual_stack_size || actual_stack_size < stack_size )
a000b8a0: e2703001 rsbs r3, r0, #1 a000b8a4: 33a03000 movcc r3, #0 a000b8a8: e1500007 cmp r0, r7 a000b8ac: 21a07003 movcs r7, r3 a000b8b0: 33837001 orrcc r7, r3, #1 a000b8b4: e3570000 cmp r7, #0
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
the_thread->Start.core_allocated_stack = true;
a000b8b8: 03a03001 moveq r3, #1
if ( !stack_area ) {
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
stack = the_thread->Start.stack;
a000b8bc: 059490c0 ldreq r9, [r4, #192] ; 0xc0
the_thread->Start.core_allocated_stack = true;
a000b8c0: 05c430b4 strbeq r3, [r4, #180] ; 0xb4
stack = the_thread->Start.stack;
#else
if ( !stack_area ) {
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
if ( !actual_stack_size || actual_stack_size < stack_size )
a000b8c4: 1a000051 bne a000ba10 <_Thread_Initialize+0x1b8>
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a000b8c8: e3a03000 mov r3, #0 a000b8cc: e5843050 str r3, [r4, #80] ; 0x50
the_watchdog->routine = routine;
a000b8d0: e5843064 str r3, [r4, #100] ; 0x64
the_watchdog->id = id;
a000b8d4: e5843068 str r3, [r4, #104] ; 0x68
the_watchdog->user_data = user_data;
a000b8d8: e584306c str r3, [r4, #108] ; 0x6c
#endif
/*
* Allocate the extensions area for this thread
*/
if ( _Thread_Maximum_extensions ) {
a000b8dc: e59f313c ldr r3, [pc, #316] ; a000ba20 <_Thread_Initialize+0x1c8>
Stack_Control *the_stack,
void *starting_address,
size_t size
)
{
the_stack->area = starting_address;
a000b8e0: e58490bc str r9, [r4, #188] ; 0xbc
the_stack->size = size;
a000b8e4: e58400b8 str r0, [r4, #184] ; 0xb8 a000b8e8: e5937000 ldr r7, [r3] a000b8ec: e3570000 cmp r7, #0
a000b8f0: 0a000004 beq a000b908 <_Thread_Initialize+0xb0>
extensions_area = _Workspace_Allocate(
a000b8f4: e2877001 add r7, r7, #1 a000b8f8: e1a00107 lsl r0, r7, #2 a000b8fc: eb0003d0 bl a000c844 <_Workspace_Allocate>
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
a000b900: e2507000 subs r7, r0, #0
a000b904: 0a000032 beq a000b9d4 <_Thread_Initialize+0x17c>
* if they are linked to the thread. An extension user may
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
a000b908: e3570000 cmp r7, #0
(_Thread_Maximum_extensions + 1) * sizeof( void * )
);
if ( !extensions_area )
goto failed;
}
the_thread->extensions = (void **) extensions_area;
a000b90c: e5847100 str r7, [r4, #256] ; 0x100
* if they are linked to the thread. An extension user may
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
a000b910: 0a000009 beq a000b93c <_Thread_Initialize+0xe4>
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
a000b914: e59f3104 ldr r3, [pc, #260] ; a000ba20 <_Thread_Initialize+0x1c8> a000b918: e1a02007 mov r2, r7 a000b91c: e5930000 ldr r0, [r3] a000b920: e3a03000 mov r3, #0
the_thread->extensions[i] = NULL;
a000b924: e1a01003 mov r1, r3 a000b928: ea000001 b a000b934 <_Thread_Initialize+0xdc> a000b92c: e4821004 str r1, [r2], #4
* create the extension long after tasks have been created
* so they cannot rely on the thread create user extension
* call.
*/
if ( the_thread->extensions ) {
for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )
a000b930: e2833001 add r3, r3, #1 a000b934: e1530000 cmp r3, r0
a000b938: 9afffffb bls a000b92c <_Thread_Initialize+0xd4>
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
the_thread->Start.budget_callout = budget_callout;
a000b93c: e59d3030 ldr r3, [sp, #48] ; 0x30
switch ( budget_algorithm ) {
a000b940: e3580002 cmp r8, #2
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
a000b944: e5c4a0a0 strb sl, [r4, #160] ; 0xa0
the_thread->Start.budget_algorithm = budget_algorithm; the_thread->Start.budget_callout = budget_callout;
a000b948: e58430a8 str r3, [r4, #168] ; 0xa8
case THREAD_CPU_BUDGET_ALGORITHM_NONE:
case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)
case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
a000b94c: 059f30d0 ldreq r3, [pc, #208] ; a000ba24 <_Thread_Initialize+0x1cc>
/*
* General initialization
*/
the_thread->Start.is_preemptible = is_preemptible;
the_thread->Start.budget_algorithm = budget_algorithm;
a000b950: e58480a4 str r8, [r4, #164] ; 0xa4
#endif
}
the_thread->Start.isr_level = isr_level;
the_thread->current_state = STATES_DORMANT;
a000b954: e3a0a001 mov sl, #1
case THREAD_CPU_BUDGET_ALGORITHM_NONE:
case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)
case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
a000b958: 05933000 ldreq r3, [r3]
}
the_thread->Start.isr_level = isr_level;
the_thread->current_state = STATES_DORMANT;
the_thread->Wait.queue = NULL;
a000b95c: e3a08000 mov r8, #0
#endif
}
the_thread->Start.isr_level = isr_level;
the_thread->current_state = STATES_DORMANT;
a000b960: e584a010 str sl, [r4, #16]
case THREAD_CPU_BUDGET_ALGORITHM_NONE:
case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)
case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
a000b964: 05843078 streq r3, [r4, #120] ; 0x78
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
a000b968: e59d3034 ldr r3, [sp, #52] ; 0x34
the_thread->current_state = STATES_DORMANT;
the_thread->Wait.queue = NULL;
a000b96c: e5848044 str r8, [r4, #68] ; 0x44
the_thread->resource_count = 0;
a000b970: e584801c str r8, [r4, #28]
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
break;
#endif
}
the_thread->Start.isr_level = isr_level;
a000b974: e58430ac str r3, [r4, #172] ; 0xac
*/
RTEMS_INLINE_ROUTINE void* _Scheduler_Allocate(
Thread_Control *the_thread
)
{
return _Scheduler.Operations.allocate( the_thread );
a000b978: e59f30a8 ldr r3, [pc, #168] ; a000ba28 <_Thread_Initialize+0x1d0>
the_thread->current_state = STATES_DORMANT;
the_thread->Wait.queue = NULL;
the_thread->resource_count = 0;
the_thread->real_priority = priority;
a000b97c: e5846018 str r6, [r4, #24]
the_thread->Start.initial_priority = priority;
a000b980: e58460b0 str r6, [r4, #176] ; 0xb0 a000b984: e5933018 ldr r3, [r3, #24] a000b988: e1a00004 mov r0, r4 a000b98c: e12fff33 blx r3
sched =_Scheduler_Allocate( the_thread ); if ( !sched )
a000b990: e2509000 subs r9, r0, #0
a000b994: 0a00000f beq a000b9d8 <_Thread_Initialize+0x180>
goto failed;
_Thread_Set_priority( the_thread, priority );
a000b998: e1a00004 mov r0, r4 a000b99c: e1a01006 mov r1, r6 a000b9a0: eb000186 bl a000bfc0 <_Thread_Set_priority>
_Workspace_Free( sched );
_Thread_Stack_Free( the_thread );
return false;
}
a000b9a4: e595301c ldr r3, [r5, #28]
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
a000b9a8: e1d420b8 ldrh r2, [r4, #8]
/*
* Initialize the CPU usage statistics
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Set_to_zero( &the_thread->cpu_time_used );
a000b9ac: e5848084 str r8, [r4, #132] ; 0x84 a000b9b0: e5848088 str r8, [r4, #136] ; 0x88
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000b9b4: e7834102 str r4, [r3, r2, lsl #2]
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
a000b9b8: e59d3038 ldr r3, [sp, #56] ; 0x38
* enabled when we get here. We want to be able to run the * user extensions with dispatching enabled. The Allocator * Mutex provides sufficient protection to let the user extensions * run safely. */ extension_status = _User_extensions_Thread_create( the_thread );
a000b9bc: e1a00004 mov r0, r4 a000b9c0: e584300c str r3, [r4, #12] a000b9c4: eb000298 bl a000c42c <_User_extensions_Thread_create>
if ( extension_status )
a000b9c8: e1500008 cmp r0, r8
a000b9cc: 0a000001 beq a000b9d8 <_Thread_Initialize+0x180>
a000b9d0: ea000010 b a000ba18 <_Thread_Initialize+0x1c0>
size_t actual_stack_size = 0;
void *stack = NULL;
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
void *fp_area;
#endif
void *sched = NULL;
a000b9d4: e1a09007 mov r9, r7 <== NOT EXECUTED
extension_status = _User_extensions_Thread_create( the_thread );
if ( extension_status )
return true;
failed:
_Workspace_Free( the_thread->libc_reent );
a000b9d8: e59400f4 ldr r0, [r4, #244] ; 0xf4 <== NOT EXECUTED a000b9dc: eb00039e bl a000c85c <_Workspace_Free> <== NOT EXECUTED
for ( i=0 ; i <= THREAD_API_LAST ; i++ )
_Workspace_Free( the_thread->API_Extensions[i] );
a000b9e0: e59400f8 ldr r0, [r4, #248] ; 0xf8 <== NOT EXECUTED a000b9e4: eb00039c bl a000c85c <_Workspace_Free> <== NOT EXECUTED a000b9e8: e59400fc ldr r0, [r4, #252] ; 0xfc <== NOT EXECUTED a000b9ec: eb00039a bl a000c85c <_Workspace_Free> <== NOT EXECUTED
_Workspace_Free( extensions_area );
a000b9f0: e1a00007 mov r0, r7 <== NOT EXECUTED a000b9f4: eb000398 bl a000c85c <_Workspace_Free> <== NOT EXECUTED
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
_Workspace_Free( fp_area );
#endif
_Workspace_Free( sched );
a000b9f8: e1a00009 mov r0, r9 <== NOT EXECUTED a000b9fc: eb000396 bl a000c85c <_Workspace_Free> <== NOT EXECUTED
_Thread_Stack_Free( the_thread );
a000ba00: e1a00004 mov r0, r4 <== NOT EXECUTED a000ba04: eb0001ab bl a000c0b8 <_Thread_Stack_Free> <== NOT EXECUTED
return false;
a000ba08: e3a00000 mov r0, #0 <== NOT EXECUTED
a000ba0c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
stack = the_thread->Start.stack;
#else
if ( !stack_area ) {
actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
if ( !actual_stack_size || actual_stack_size < stack_size )
return false; /* stack allocation failed */
a000ba10: e1a00009 mov r0, r9 <== NOT EXECUTED
a000ba14: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
* Mutex provides sufficient protection to let the user extensions
* run safely.
*/
extension_status = _User_extensions_Thread_create( the_thread );
if ( extension_status )
return true;
a000ba18: e1a0000a mov r0, sl
_Workspace_Free( sched );
_Thread_Stack_Free( the_thread );
return false;
}
a000ba1c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc}
a0010490 <_Thread_Reset>:
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
the_thread->resource_count = 0;
a0010490: e3a03000 mov r3, #0 <== NOT EXECUTED
void _Thread_Reset(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
a0010494: e92d4010 push {r4, lr} <== NOT EXECUTED
the_thread->resource_count = 0;
a0010498: e580301c str r3, [r0, #28] <== NOT EXECUTED
the_thread->is_preemptible = the_thread->Start.is_preemptible;
a001049c: e5d030a0 ldrb r3, [r0, #160] ; 0xa0 <== NOT EXECUTED
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
the_thread->budget_callout = the_thread->Start.budget_callout;
the_thread->Start.pointer_argument = pointer_argument;
a00104a0: e5801098 str r1, [r0, #152] ; 0x98 <== NOT EXECUTED
the_thread->Start.numeric_argument = numeric_argument;
a00104a4: e580209c str r2, [r0, #156] ; 0x9c <== NOT EXECUTED
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
the_thread->resource_count = 0;
the_thread->is_preemptible = the_thread->Start.is_preemptible;
a00104a8: e5c03074 strb r3, [r0, #116] ; 0x74 <== NOT EXECUTED
the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
a00104ac: e59030a4 ldr r3, [r0, #164] ; 0xa4 <== NOT EXECUTED
void _Thread_Reset(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
a00104b0: e1a04000 mov r4, r0 <== NOT EXECUTED
the_thread->resource_count = 0; the_thread->is_preemptible = the_thread->Start.is_preemptible; the_thread->budget_algorithm = the_thread->Start.budget_algorithm;
a00104b4: e580307c str r3, [r0, #124] ; 0x7c <== NOT EXECUTED
the_thread->budget_callout = the_thread->Start.budget_callout;
a00104b8: e59030a8 ldr r3, [r0, #168] ; 0xa8 <== NOT EXECUTED a00104bc: e5803080 str r3, [r0, #128] ; 0x80 <== NOT EXECUTED
the_thread->Start.pointer_argument = pointer_argument;
the_thread->Start.numeric_argument = numeric_argument;
if ( !_Thread_queue_Extract_with_proxy( the_thread ) ) {
a00104c0: ebfff195 bl a000cb1c <_Thread_queue_Extract_with_proxy> <== NOT EXECUTED a00104c4: e3500000 cmp r0, #0 <== NOT EXECUTED a00104c8: 1a000004 bne a00104e0 <_Thread_Reset+0x50> <== NOT EXECUTED
if ( _Watchdog_Is_active( &the_thread->Timer ) )
a00104cc: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a00104d0: e3530002 cmp r3, #2 <== NOT EXECUTED a00104d4: 1a000001 bne a00104e0 <_Thread_Reset+0x50> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_thread->Timer );
a00104d8: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a00104dc: ebfff3cd bl a000d418 <_Watchdog_Remove> <== NOT EXECUTED
}
if ( the_thread->current_priority != the_thread->Start.initial_priority ) {
a00104e0: e59410b0 ldr r1, [r4, #176] ; 0xb0 <== NOT EXECUTED a00104e4: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a00104e8: e1530001 cmp r3, r1 <== NOT EXECUTED a00104ec: 0a000003 beq a0010500 <_Thread_Reset+0x70> <== NOT EXECUTED
the_thread->real_priority = the_thread->Start.initial_priority;
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
a00104f0: e1a00004 mov r0, r4 <== NOT EXECUTED
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;
a00104f4: e5841018 str r1, [r4, #24] <== NOT EXECUTED
_Thread_Set_priority( the_thread, the_thread->Start.initial_priority );
}
}
a00104f8: e8bd4010 pop {r4, lr} <== NOT EXECUTED
(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 );
a00104fc: eafff1f8 b a000cce4 <_Thread_Set_priority> <== NOT EXECUTED
a0010500: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000cc70 <_Thread_Restart>:
*/
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (
States_Control the_states
)
{
return (the_states & STATES_DORMANT);
a000cc70: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
a000cc74: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
if ( !_States_Is_dormant( the_thread->current_state ) ) {
a000cc78: e3130001 tst r3, #1 <== NOT EXECUTED
bool _Thread_Restart(
Thread_Control *the_thread,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
a000cc7c: e1a04000 mov r4, r0 <== NOT EXECUTED a000cc80: e1a06001 mov r6, r1 <== NOT EXECUTED a000cc84: e1a05002 mov r5, r2 <== NOT EXECUTED
if ( !_States_Is_dormant( the_thread->current_state ) ) {
a000cc88: 1a000010 bne a000ccd0 <_Thread_Restart+0x60> <== NOT EXECUTED
_Thread_Set_transient( the_thread );
a000cc8c: eb00002c bl a000cd44 <_Thread_Set_transient> <== NOT EXECUTED
_Thread_Reset( the_thread, pointer_argument, numeric_argument );
a000cc90: e1a01006 mov r1, r6 <== NOT EXECUTED a000cc94: e1a02005 mov r2, r5 <== NOT EXECUTED a000cc98: e1a00004 mov r0, r4 <== NOT EXECUTED a000cc9c: eb000dfb bl a0010490 <_Thread_Reset> <== NOT EXECUTED
_Thread_Load_environment( the_thread );
a000cca0: e1a00004 mov r0, r4 <== NOT EXECUTED a000cca4: eb000d55 bl a0010200 <_Thread_Load_environment> <== NOT EXECUTED
_Thread_Ready( the_thread );
a000cca8: e1a00004 mov r0, r4 <== NOT EXECUTED a000ccac: eb000deb bl a0010460 <_Thread_Ready> <== NOT EXECUTED
_User_extensions_Thread_restart( the_thread );
a000ccb0: e1a00004 mov r0, r4 <== NOT EXECUTED a000ccb4: eb00014c bl a000d1ec <_User_extensions_Thread_restart> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
a000ccb8: e59f3020 ldr r3, [pc, #32] ; a000cce0 <_Thread_Restart+0x70><== NOT EXECUTED
if ( _Thread_Is_executing ( the_thread ) )
a000ccbc: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000ccc0: e1540003 cmp r4, r3 <== NOT EXECUTED a000ccc4: 1a000003 bne a000ccd8 <_Thread_Restart+0x68> <== NOT EXECUTED
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
if ( _Thread_Executing->fp_context != NULL )
_Context_Restore_fp( &_Thread_Executing->fp_context );
#endif
_CPU_Context_Restart_self( &_Thread_Executing->Registers );
a000ccc8: e28400c4 add r0, r4, #196 ; 0xc4 <== NOT EXECUTED a000cccc: eb000322 bl a000d95c <_CPU_Context_restore> <== NOT EXECUTED
_Thread_Restart_self();
return true;
}
return false;
a000ccd0: e3a00000 mov r0, #0 <== NOT EXECUTED
a000ccd4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
_User_extensions_Thread_restart( the_thread );
if ( _Thread_Is_executing ( the_thread ) )
_Thread_Restart_self();
return true;
a000ccd8: e3a00001 mov r0, #1 <== NOT EXECUTED
}
return false;
}
a000ccdc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000bfdc <_Thread_Set_state>:
*/
void _Thread_Set_state(
Thread_Control *the_thread,
States_Control state
)
{
a000bfdc: e92d4010 push {r4, lr} <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000bfe0: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000bfe4: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED a000bfe8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
if ( !_States_Is_ready( the_thread->current_state ) ) {
a000bfec: e5902010 ldr r2, [r0, #16] <== NOT EXECUTED a000bff0: e3520000 cmp r2, #0 <== NOT EXECUTED a000bff4: 0a000002 beq a000c004 <_Thread_Set_state+0x28> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE States_Control _States_Set (
States_Control states_to_set,
States_Control current_state
)
{
return (current_state | states_to_set);
a000bff8: e1811002 orr r1, r1, r2 <== NOT EXECUTED
the_thread->current_state =
a000bffc: e5801010 str r1, [r0, #16] <== NOT EXECUTED
_States_Set( state, the_thread->current_state );
_ISR_Enable( level );
a000c000: ea000003 b a000c014 <_Thread_Set_state+0x38> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Block(
Thread_Control *the_thread
)
{
_Scheduler.Operations.block( the_thread );
a000c004: e59f3010 ldr r3, [pc, #16] ; a000c01c <_Thread_Set_state+0x40><== NOT EXECUTED
return;
}
the_thread->current_state = state;
a000c008: e5801010 str r1, [r0, #16] <== NOT EXECUTED a000c00c: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a000c010: e12fff33 blx r3 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000c014: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
a000c018: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000c020 <_Thread_Set_transient>:
* only case
*/
void _Thread_Set_transient(
Thread_Control *the_thread
)
{
a000c020: e92d4010 push {r4, lr} <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000c024: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000c028: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED a000c02c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
ISR_Level level;
uint32_t old_state;
_ISR_Disable( level );
old_state = the_thread->current_state;
a000c030: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED a000c034: e3831004 orr r1, r3, #4 <== NOT EXECUTED
the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state );
if ( _States_Is_ready( old_state ) ) {
a000c038: e3530000 cmp r3, #0 <== NOT EXECUTED
uint32_t old_state;
_ISR_Disable( level );
old_state = the_thread->current_state;
the_thread->current_state = _States_Set( STATES_TRANSIENT, old_state );
a000c03c: e5801010 str r1, [r0, #16] <== NOT EXECUTED
if ( _States_Is_ready( old_state ) ) {
a000c040: 1a000002 bne a000c050 <_Thread_Set_transient+0x30> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Extract(
Thread_Control *the_thread
)
{
_Scheduler.Operations.extract( the_thread );
a000c044: e59f300c ldr r3, [pc, #12] ; a000c058 <_Thread_Set_transient+0x38><== NOT EXECUTED a000c048: e593302c ldr r3, [r3, #44] ; 0x2c <== NOT EXECUTED a000c04c: e12fff33 blx r3 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000c050: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_Scheduler_Extract( the_thread );
}
_ISR_Enable( level );
}
a000c054: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000c0b8 <_Thread_Stack_Free>:
{
#if defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
/*
* If the API provided the stack space, then don't free it.
*/
if ( !the_thread->Start.core_allocated_stack )
a000c0b8: e5d030b4 ldrb r3, [r0, #180] ; 0xb4 <== NOT EXECUTED
*/
void _Thread_Stack_Free(
Thread_Control *the_thread
)
{
a000c0bc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
#if defined(RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API)
/*
* If the API provided the stack space, then don't free it.
*/
if ( !the_thread->Start.core_allocated_stack )
a000c0c0: e3530000 cmp r3, #0 <== NOT EXECUTED
a000c0c4: 049df004 popeq {pc} ; (ldreq pc, [sp], #4) <== NOT EXECUTED
* Call ONLY the CPU table stack free hook, or the
* the RTEMS workspace free. This is so the free
* routine properly matches the allocation of the stack.
*/
if ( Configuration.stack_free_hook )
a000c0c8: e59f3020 ldr r3, [pc, #32] ; a000c0f0 <_Thread_Stack_Free+0x38><== NOT EXECUTED a000c0cc: e5933024 ldr r3, [r3, #36] ; 0x24 <== NOT EXECUTED a000c0d0: e3530000 cmp r3, #0 <== NOT EXECUTED a000c0d4: 0a000002 beq a000c0e4 <_Thread_Stack_Free+0x2c> <== NOT EXECUTED
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
a000c0d8: e59000bc ldr r0, [r0, #188] ; 0xbc <== NOT EXECUTED
a000c0dc: e12fff33 blx r3 <== NOT EXECUTED
a000c0e0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
a000c0e4: e59000bc ldr r0, [r0, #188] ; 0xbc <== NOT EXECUTED
}
a000c0e8: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED
*/
if ( Configuration.stack_free_hook )
(*Configuration.stack_free_hook)( the_thread->Start.Initial_stack.area );
else
_Workspace_Free( the_thread->Start.Initial_stack.area );
a000c0ec: ea0001da b a000c85c <_Workspace_Free> <== NOT EXECUTED
a000c12c <_Thread_Start>:
*/
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (
States_Control the_states
)
{
return (the_states & STATES_DORMANT);
a000c12c: e590c010 ldr ip, [r0, #16]
Thread_Start_types the_prototype,
void *entry_point,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
a000c130: e92d4010 push {r4, lr}
if ( _States_Is_dormant( the_thread->current_state ) ) {
a000c134: e21cc001 ands ip, ip, #1
Thread_Start_types the_prototype,
void *entry_point,
void *pointer_argument,
Thread_Entry_numeric_type numeric_argument
)
{
a000c138: e1a04000 mov r4, r0
if ( _States_Is_dormant( the_thread->current_state ) ) {
a000c13c: 0a00000b beq a000c170 <_Thread_Start+0x44>
the_thread->Start.entry_point = (Thread_Entry) entry_point;
the_thread->Start.prototype = the_prototype;
the_thread->Start.pointer_argument = pointer_argument;
a000c140: e5803098 str r3, [r0, #152] ; 0x98
the_thread->Start.numeric_argument = numeric_argument;
a000c144: 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;
a000c148: e5802090 str r2, [r0, #144] ; 0x90
the_thread->Start.prototype = the_prototype;
a000c14c: e5801094 str r1, [r0, #148] ; 0x94
the_thread->Start.pointer_argument = pointer_argument;
the_thread->Start.numeric_argument = numeric_argument;
a000c150: e580309c str r3, [r0, #156] ; 0x9c
_Thread_Load_environment( the_thread );
a000c154: eb000cac bl a000f40c <_Thread_Load_environment>
_Thread_Ready( the_thread );
a000c158: e1a00004 mov r0, r4 a000c15c: eb000d42 bl a000f66c <_Thread_Ready>
_User_extensions_Thread_start( the_thread );
a000c160: e1a00004 mov r0, r4 a000c164: eb0000d7 bl a000c4c8 <_User_extensions_Thread_start>
return true;
a000c168: e3a00001 mov r0, #1
a000c16c: e8bd8010 pop {r4, pc}
}
return false;
a000c170: e1a0000c mov r0, ip <== NOT EXECUTED
}
a000c174: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000c178 <_Thread_Tickle_timeslice>:
void _Thread_Tickle_timeslice( void )
{
Thread_Control *executing;
executing = _Thread_Executing;
a000c178: e59f3090 ldr r3, [pc, #144] ; a000c210 <_Thread_Tickle_timeslice+0x98><== NOT EXECUTED
*
* Output parameters: NONE
*/
void _Thread_Tickle_timeslice( void )
{
a000c17c: e92d4010 push {r4, lr} <== NOT EXECUTED
Thread_Control *executing;
executing = _Thread_Executing;
a000c180: e5934004 ldr r4, [r3, #4] <== NOT EXECUTED
/*
* If the thread is not preemptible or is not ready, then
* just return.
*/
if ( !executing->is_preemptible )
a000c184: e5d43074 ldrb r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000c188: e3530000 cmp r3, #0 <== NOT EXECUTED a000c18c: 0a00001e beq a000c20c <_Thread_Tickle_timeslice+0x94> <== NOT EXECUTED
return;
if ( !_States_Is_ready( executing->current_state ) )
a000c190: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000c194: e3530000 cmp r3, #0 <== NOT EXECUTED a000c198: 1a00001b bne a000c20c <_Thread_Tickle_timeslice+0x94> <== NOT EXECUTED
/*
* The cpu budget algorithm determines what happens next.
*/
switch ( executing->budget_algorithm ) {
a000c19c: e594307c ldr r3, [r4, #124] ; 0x7c <== NOT EXECUTED a000c1a0: e3530001 cmp r3, #1 <== NOT EXECUTED a000c1a4: 3a000018 bcc a000c20c <_Thread_Tickle_timeslice+0x94> <== NOT EXECUTED a000c1a8: e3530002 cmp r3, #2 <== NOT EXECUTED a000c1ac: 9a000002 bls a000c1bc <_Thread_Tickle_timeslice+0x44> <== NOT EXECUTED a000c1b0: e3530003 cmp r3, #3 <== NOT EXECUTED a000c1b4: 1a000014 bne a000c20c <_Thread_Tickle_timeslice+0x94> <== NOT EXECUTED a000c1b8: ea00000b b a000c1ec <_Thread_Tickle_timeslice+0x74> <== 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 ) {
a000c1bc: e5943078 ldr r3, [r4, #120] ; 0x78 <== NOT EXECUTED a000c1c0: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000c1c4: e3530000 cmp r3, #0 <== NOT EXECUTED a000c1c8: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED a000c1cc: ca00000e bgt a000c20c <_Thread_Tickle_timeslice+0x94> <== NOT EXECUTED
* always operates on the scheduler that 'owns' the currently executing
* thread.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void )
{
_Scheduler.Operations.yield();
a000c1d0: e59f303c ldr r3, [pc, #60] ; a000c214 <_Thread_Tickle_timeslice+0x9c><== NOT EXECUTED a000c1d4: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000c1d8: e12fff33 blx r3 <== 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;
a000c1dc: e59f3034 ldr r3, [pc, #52] ; a000c218 <_Thread_Tickle_timeslice+0xa0><== NOT EXECUTED
a000c1e0: e5933000 ldr r3, [r3] <== NOT EXECUTED
a000c1e4: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED
a000c1e8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
}
break;
#if defined(RTEMS_SCORE_THREAD_ENABLE_SCHEDULER_CALLOUT)
case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:
if ( --executing->cpu_time_budget == 0 )
a000c1ec: e5943078 ldr r3, [r4, #120] ; 0x78 <== NOT EXECUTED a000c1f0: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000c1f4: e3530000 cmp r3, #0 <== NOT EXECUTED a000c1f8: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED a000c1fc: 1a000002 bne a000c20c <_Thread_Tickle_timeslice+0x94> <== NOT EXECUTED
(*executing->budget_callout)( executing );
a000c200: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED
a000c204: e1a00004 mov r0, r4 <== NOT EXECUTED
a000c208: e12fff33 blx r3 <== NOT EXECUTED
a000c20c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000b348 <_Thread_blocking_operation_Cancel>:
#endif
/*
* The thread is not waiting on anything after this completes.
*/
the_thread->Wait.queue = NULL;
a000b348: e3a03000 mov r3, #0 <== NOT EXECUTED
Thread_blocking_operation_States sync_state __attribute__((unused)),
#endif
Thread_Control *the_thread,
ISR_Level level
)
{
a000b34c: e92d4010 push {r4, lr} <== NOT EXECUTED
#endif
/*
* The thread is not waiting on anything after this completes.
*/
the_thread->Wait.queue = NULL;
a000b350: 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 ) ) {
a000b354: e5913050 ldr r3, [r1, #80] ; 0x50 <== NOT EXECUTED
Thread_blocking_operation_States sync_state __attribute__((unused)),
#endif
Thread_Control *the_thread,
ISR_Level level
)
{
a000b358: e1a04001 mov r4, r1 <== 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 ) ) {
a000b35c: e3530002 cmp r3, #2 <== NOT EXECUTED a000b360: 1a000005 bne a000b37c <_Thread_blocking_operation_Cancel+0x34><== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
a000b364: e2833001 add r3, r3, #1 <== NOT EXECUTED a000b368: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED a000b36c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
a000b370: e2810048 add r0, r1, #72 ; 0x48 <== NOT EXECUTED a000b374: eb0004cc bl a000c6ac <_Watchdog_Remove> <== NOT EXECUTED a000b378: ea000000 b a000b380 <_Thread_blocking_operation_Cancel+0x38><== NOT EXECUTED a000b37c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
a000b380: e59f1008 ldr r1, [pc, #8] ; a000b390 <_Thread_blocking_operation_Cancel+0x48><== NOT EXECUTED a000b384: e1a00004 mov r0, r4 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
a000b388: e8bd4010 pop {r4, lr} <== NOT EXECUTED
a000b38c: ea00003c b a000b484 <_Thread_Clear_state> <== NOT EXECUTED
a000f458 <_Thread_queue_Dequeue_fifo>:
*/
Thread_Control *_Thread_queue_Dequeue_fifo(
Thread_queue_Control *the_thread_queue
)
{
a000f458: e92d4030 push {r4, r5, lr}
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000f45c: e10f3000 mrs r3, CPSR a000f460: e3832080 orr r2, r3, #128 ; 0x80 a000f464: e129f002 msr CPSR_fc, r2
return the_thread;
}
_ISR_Enable( level );
return NULL;
}
a000f468: e1a02000 mov r2, r0 a000f46c: e4925004 ldr r5, [r2], #4
{
ISR_Level level;
Thread_Control *the_thread;
_ISR_Disable( level );
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) ) {
a000f470: e1550002 cmp r5, r2
a000f474: 0a000013 beq a000f4c8 <_Thread_queue_Dequeue_fifo+0x70>
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *old_first = head->next;
Chain_Node *new_first = old_first->next;
a000f478: e5952000 ldr r2, [r5] <== NOT EXECUTED
the_thread = (Thread_Control *)
a000f47c: e1a04005 mov r4, r5 <== NOT EXECUTED
head->next = new_first;
a000f480: e5802000 str r2, [r0] <== NOT EXECUTED
new_first->previous = head;
a000f484: e5820004 str r0, [r2, #4] <== NOT EXECUTED
_Chain_Get_first_unprotected( &the_thread_queue->Queues.Fifo );
the_thread->Wait.queue = NULL;
a000f488: e3a02000 mov r2, #0 <== NOT EXECUTED a000f48c: e5852044 str r2, [r5, #68] ; 0x44 <== NOT EXECUTED
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
a000f490: e5952050 ldr r2, [r5, #80] ; 0x50 <== NOT EXECUTED a000f494: e3520002 cmp r2, #2 <== NOT EXECUTED a000f498: 0a000001 beq a000f4a4 <_Thread_queue_Dequeue_fifo+0x4c> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000f49c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a000f4a0: ea000004 b a000f4b8 <_Thread_queue_Dequeue_fifo+0x60> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
a000f4a4: e3a02003 mov r2, #3 <== NOT EXECUTED a000f4a8: e5852050 str r2, [r5, #80] ; 0x50 <== NOT EXECUTED a000f4ac: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
a000f4b0: e2850048 add r0, r5, #72 ; 0x48 <== NOT EXECUTED a000f4b4: ebfff47c bl a000c6ac <_Watchdog_Remove> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
a000f4b8: e1a00005 mov r0, r5 <== NOT EXECUTED a000f4bc: e59f1014 ldr r1, [pc, #20] ; a000f4d8 <_Thread_queue_Dequeue_fifo+0x80><== NOT EXECUTED a000f4c0: ebffefef bl a000b484 <_Thread_Clear_state> <== NOT EXECUTED a000f4c4: ea000001 b a000f4d0 <_Thread_queue_Dequeue_fifo+0x78> <== NOT EXECUTED
a000f4c8: e129f003 msr CPSR_fc, r3
return the_thread;
}
_ISR_Enable( level );
return NULL;
a000f4cc: e3a04000 mov r4, #0
}
a000f4d0: e1a00004 mov r0, r4
a000f4d4: e8bd8030 pop {r4, r5, pc}
a000bb30 <_Thread_queue_Dequeue_priority>:
*/
Thread_Control *_Thread_queue_Dequeue_priority(
Thread_queue_Control *the_thread_queue
)
{
a000bb30: e92d4030 push {r4, r5, lr}
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000bb34: e10f1000 mrs r1, CPSR a000bb38: e3813080 orr r3, r1, #128 ; 0x80 a000bb3c: e129f003 msr CPSR_fc, r3
Chain_Node *new_second_node;
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
a000bb40: e3a02000 mov r2, #0
for( index=0 ;
a000bb44: e1a03002 mov r3, r2
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(
const Chain_Control *the_chain
)
{
return _Chain_Immutable_first( the_chain )
== _Chain_Immutable_tail( the_chain );
a000bb48: e3a0c00c mov ip, #12 a000bb4c: e004039c mul r4, ip, r3
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
return( the_thread );
}
a000bb50: e7905002 ldr r5, [r0, r2] a000bb54: e2844004 add r4, r4, #4 a000bb58: e0804004 add r4, r0, r4
_ISR_Disable( level );
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) {
a000bb5c: e1550004 cmp r5, r4
a000bb60: 0a000009 beq a000bb8c <_Thread_queue_Dequeue_priority+0x5c>
*/
_ISR_Enable( level );
return NULL;
dequeue:
the_thread->Wait.queue = NULL;
a000bb64: e3a03000 mov r3, #0 <== NOT EXECUTED a000bb68: e5853044 str r3, [r5, #68] ; 0x44 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
return( the_thread );
}
a000bb6c: e5953038 ldr r3, [r5, #56] ; 0x38 <== NOT EXECUTED a000bb70: e285c03c add ip, r5, #60 ; 0x3c <== NOT EXECUTED
_ISR_Disable( level );
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) ) {
the_thread = (Thread_Control *) _Chain_First(
a000bb74: e1a04005 mov r4, r5 <== NOT EXECUTED
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 ) ) {
a000bb78: e153000c cmp r3, ip <== NOT EXECUTED
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;
a000bb7c: e5952000 ldr r2, [r5] <== NOT EXECUTED
previous_node = the_thread->Object.Node.previous;
a000bb80: e5950004 ldr r0, [r5, #4] <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
a000bb84: 1a000007 bne a000bba8 <_Thread_queue_Dequeue_priority+0x78><== NOT EXECUTED a000bb88: ea000017 b a000bbec <_Thread_queue_Dequeue_priority+0xbc> <== NOT EXECUTED
Chain_Node *previous_node;
_ISR_Disable( level );
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
a000bb8c: e2833001 add r3, r3, #1
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
for( index=0 ;
a000bb90: e3530004 cmp r3, #4
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
a000bb94: e282200c add r2, r2, #12
Chain_Node *last_node;
Chain_Node *next_node;
Chain_Node *previous_node;
_ISR_Disable( level );
for( index=0 ;
a000bb98: 1affffeb bne a000bb4c <_Thread_queue_Dequeue_priority+0x1c>
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000bb9c: e129f001 msr CPSR_fc, r1
/*
* We did not find a thread to unblock.
*/
_ISR_Enable( level );
return NULL;
a000bba0: e3a04000 mov r4, #0 a000bba4: ea00001f b a000bc28 <_Thread_queue_Dequeue_priority+0xf8>
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
return( the_thread );
}
a000bba8: e595c040 ldr ip, [r5, #64] ; 0x40 <== NOT EXECUTED
next_node = the_thread->Object.Node.next;
previous_node = the_thread->Object.Node.previous;
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
last_node = _Chain_Last( &the_thread->Wait.Block2n );
new_second_node = new_first_node->next;
a000bbac: e593e000 ldr lr, [r3] <== NOT EXECUTED
previous_node->next = new_first_node;
next_node->previous = new_first_node;
a000bbb0: 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;
a000bbb4: e5803000 str r3, [r0] <== NOT EXECUTED
next_node->previous = new_first_node;
new_first_node->next = next_node;
new_first_node->previous = previous_node;
a000bbb8: e5830004 str r0, [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;
a000bbbc: e5832000 str r2, [r3] <== NOT EXECUTED
new_first_node->previous = previous_node;
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
a000bbc0: e5950038 ldr r0, [r5, #56] ; 0x38 <== NOT EXECUTED a000bbc4: e5952040 ldr r2, [r5, #64] ; 0x40 <== NOT EXECUTED a000bbc8: e1500002 cmp r0, r2 <== NOT EXECUTED a000bbcc: 0a000008 beq a000bbf4 <_Thread_queue_Dequeue_priority+0xc4><== NOT EXECUTED
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
a000bbd0: e2832038 add r2, r3, #56 ; 0x38 <== NOT EXECUTED
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
new_second_node->previous = head;
head->next = new_second_node;
a000bbd4: e583e038 str lr, [r3, #56] ; 0x38 <== NOT EXECUTED
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
new_second_node->previous = head;
a000bbd8: e58e2004 str r2, [lr, #4] <== NOT EXECUTED
head->next = new_second_node;
tail->previous = last_node;
a000bbdc: e583c040 str ip, [r3, #64] ; 0x40 <== NOT EXECUTED
new_first_node->previous = previous_node;
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
a000bbe0: e283303c add r3, r3, #60 ; 0x3c <== NOT EXECUTED
new_second_node->previous = head;
head->next = new_second_node;
tail->previous = last_node;
last_node->next = tail;
a000bbe4: e58c3000 str r3, [ip] <== NOT EXECUTED a000bbe8: ea000001 b a000bbf4 <_Thread_queue_Dequeue_priority+0xc4> <== NOT EXECUTED
}
} else {
previous_node->next = next_node;
a000bbec: e5802000 str r2, [r0] <== NOT EXECUTED
next_node->previous = previous_node;
a000bbf0: e5820004 str r0, [r2, #4] <== NOT EXECUTED
}
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
a000bbf4: e5953050 ldr r3, [r5, #80] ; 0x50 <== NOT EXECUTED a000bbf8: e3530002 cmp r3, #2 <== NOT EXECUTED a000bbfc: 0a000001 beq a000bc08 <_Thread_queue_Dequeue_priority+0xd8><== NOT EXECUTED a000bc00: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a000bc04: ea000004 b a000bc1c <_Thread_queue_Dequeue_priority+0xec> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_REMOVE_IT;
a000bc08: e3a03003 mov r3, #3 <== NOT EXECUTED a000bc0c: e5853050 str r3, [r5, #80] ; 0x50 <== NOT EXECUTED a000bc10: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
_ISR_Enable( level );
_Thread_Unblock( the_thread );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
a000bc14: e2850048 add r0, r5, #72 ; 0x48 <== NOT EXECUTED a000bc18: eb0002a3 bl a000c6ac <_Watchdog_Remove> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
a000bc1c: e1a00005 mov r0, r5 <== NOT EXECUTED a000bc20: e59f1008 ldr r1, [pc, #8] ; a000bc30 <_Thread_queue_Dequeue_priority+0x100><== NOT EXECUTED a000bc24: ebfffe16 bl a000b484 <_Thread_Clear_state> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
return( the_thread );
}
a000bc28: e1a00004 mov r0, r4
a000bc2c: e8bd8030 pop {r4, r5, pc}
a000f4dc <_Thread_queue_Enqueue_fifo>:
Thread_blocking_operation_States _Thread_queue_Enqueue_fifo (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
a000f4dc: e92d4010 push {r4, lr} <== NOT EXECUTED
a000f4e0: e1a03000 mov r3, r0 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000f4e4: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000f4e8: e38c0080 orr r0, ip, #128 ; 0x80 <== NOT EXECUTED a000f4ec: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
Thread_blocking_operation_States sync_state;
ISR_Level level;
_ISR_Disable( level );
sync_state = the_thread_queue->sync_state;
a000f4f0: e5930030 ldr r0, [r3, #48] ; 0x30 <== NOT EXECUTED
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
a000f4f4: e3a04000 mov r4, #0 <== NOT EXECUTED a000f4f8: e5834030 str r4, [r3, #48] ; 0x30 <== NOT EXECUTED
if (sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED) {
a000f4fc: e3500001 cmp r0, #1 <== NOT EXECUTED a000f500: 1a000008 bne a000f528 <_Thread_queue_Enqueue_fifo+0x4c> <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
a000f504: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
a000f508: e2834004 add r4, r3, #4 <== NOT EXECUTED
Chain_Node *old_last = tail->previous;
the_node->next = tail;
tail->previous = the_node;
a000f50c: e5831008 str r1, [r3, #8] <== NOT EXECUTED
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
the_node->next = tail;
a000f510: e5814000 str r4, [r1] <== NOT EXECUTED
tail->previous = the_node; old_last->next = the_node; the_node->previous = old_last;
a000f514: e5812004 str r2, [r1, #4] <== 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;
a000f518: e5821000 str r1, [r2] <== NOT EXECUTED
_Chain_Append_unprotected(
&the_thread_queue->Queues.Fifo,
&the_thread->Object.Node
);
the_thread->Wait.queue = the_thread_queue;
a000f51c: e5813044 str r3, [r1, #68] ; 0x44 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000f520: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
_ISR_Enable( level );
return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
a000f524: e8bd8010 pop {r4, pc} <== NOT EXECUTED
* 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;
a000f528: e582c000 str ip, [r2] <== NOT EXECUTED
return sync_state; }
a000f52c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000bcd4 <_Thread_queue_Enqueue_priority>:
Priority_Control priority;
States_Control block_state;
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
a000bcd4: e591c014 ldr ip, [r1, #20] <== 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 );
a000bcd8: e281303c add r3, r1, #60 ; 0x3c <== NOT EXECUTED
head->next = tail;
a000bcdc: e5813038 str r3, [r1, #56] ; 0x38 <== NOT EXECUTED
head->previous = NULL;
a000bce0: e3a03000 mov r3, #0 <== NOT EXECUTED a000bce4: e581303c str r3, [r1, #60] ; 0x3c <== NOT EXECUTED
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
block_state = the_thread_queue->state;
if ( _Thread_queue_Is_reverse_search( priority ) )
a000bce8: e31c0020 tst ip, #32 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
a000bcec: e2813038 add r3, r1, #56 ; 0x38 <== NOT EXECUTED
Thread_blocking_operation_States _Thread_queue_Enqueue_priority (
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread,
ISR_Level *level_p
)
{
a000bcf0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
tail->previous = head;
a000bcf4: e5813040 str r3, [r1, #64] ; 0x40 <== NOT EXECUTED
_Chain_Initialize_empty( &the_thread->Wait.Block2n );
priority = the_thread->current_priority;
header_index = _Thread_queue_Header_number( priority );
header = &the_thread_queue->Queues.Priority[ header_index ];
block_state = the_thread_queue->state;
a000bcf8: e5907038 ldr r7, [r0, #56] ; 0x38 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE uint32_t _Thread_queue_Header_number (
Priority_Control the_priority
)
{
return (the_priority / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER);
a000bcfc: e1a0332c lsr r3, ip, #6 <== NOT EXECUTED
if ( _Thread_queue_Is_reverse_search( priority ) )
a000bd00: 1a000026 bne a000bda0 <_Thread_queue_Enqueue_priority+0xcc><== NOT EXECUTED
* * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; }
a000bd04: e3a0600c mov r6, #12 <== NOT EXECUTED a000bd08: e0030396 mul r3, r6, r3 <== NOT EXECUTED a000bd0c: e0808003 add r8, r0, r3 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(
Chain_Control *the_chain,
const Chain_Node *the_node
)
{
return (the_node == _Chain_Tail(the_chain));
a000bd10: e2833004 add r3, r3, #4 <== NOT EXECUTED a000bd14: e0806003 add r6, r0, r3 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000bd18: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000bd1c: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED a000bd20: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
if ( _Thread_queue_Is_reverse_search( priority ) )
goto restart_reverse_search;
restart_forward_search:
search_priority = PRIORITY_MINIMUM - 1;
a000bd24: e3e05000 mvn r5, #0 <== NOT EXECUTED
_ISR_Disable( level ); search_thread = (Thread_Control *) _Chain_First( header );
a000bd28: e5983000 ldr r3, [r8] <== NOT EXECUTED
while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) {
a000bd2c: ea00000b b a000bd60 <_Thread_queue_Enqueue_priority+0x8c> <== NOT EXECUTED
search_priority = search_thread->current_priority;
a000bd30: e5935014 ldr r5, [r3, #20] <== NOT EXECUTED
if ( priority <= search_priority )
a000bd34: e15c0005 cmp ip, r5 <== NOT EXECUTED a000bd38: 9a00000a bls a000bd68 <_Thread_queue_Enqueue_priority+0x94><== NOT EXECUTED
static inline void arm_interrupt_flash( uint32_t level )
{
uint32_t arm_switch_reg;
__asm__ volatile (
a000bd3c: e10fa000 mrs sl, CPSR <== NOT EXECUTED a000bd40: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000bd44: e129f00a msr CPSR_fc, sl <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _States_Are_set (
States_Control the_states,
States_Control mask
)
{
return ( (the_states & mask) != STATES_READY);
a000bd48: e593a010 ldr sl, [r3, #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) ) {
a000bd4c: e117000a tst r7, sl <== NOT EXECUTED a000bd50: 1a000001 bne a000bd5c <_Thread_queue_Enqueue_priority+0x88><== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000bd54: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000bd58: eaffffee b a000bd18 <_Thread_queue_Enqueue_priority+0x44> <== NOT EXECUTED
_ISR_Enable( level );
goto restart_forward_search;
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
a000bd5c: e5933000 ldr r3, [r3] <== NOT EXECUTED
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 ) ) {
a000bd60: e1530006 cmp r3, r6 <== NOT EXECUTED a000bd64: 1afffff1 bne a000bd30 <_Thread_queue_Enqueue_priority+0x5c><== NOT EXECUTED
}
search_thread =
(Thread_Control *)search_thread->Object.Node.next;
}
if ( the_thread_queue->sync_state !=
a000bd68: e5906030 ldr r6, [r0, #48] ; 0x30 <== NOT EXECUTED a000bd6c: e3560001 cmp r6, #1 <== NOT EXECUTED a000bd70: 1a000039 bne a000be5c <_Thread_queue_Enqueue_priority+0x188><== NOT EXECUTED
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
a000bd74: e3a02000 mov r2, #0 <== NOT EXECUTED
if ( priority == search_priority )
a000bd78: e15c0005 cmp ip, r5 <== NOT EXECUTED
if ( the_thread_queue->sync_state !=
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
a000bd7c: e5802030 str r2, [r0, #48] ; 0x30 <== NOT EXECUTED
if ( priority == search_priority )
a000bd80: 0a00002b beq a000be34 <_Thread_queue_Enqueue_priority+0x160><== NOT EXECUTED
goto equal_priority;
search_node = (Chain_Node *) search_thread;
previous_node = search_node->previous;
a000bd84: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
a000bd88: e5813000 str r3, [r1] <== NOT EXECUTED
the_node->previous = previous_node;
a000bd8c: e5812004 str r2, [r1, #4] <== NOT EXECUTED
previous_node->next = the_node;
a000bd90: e5821000 str r1, [r2] <== NOT EXECUTED
search_node->previous = the_node;
a000bd94: e5831004 str r1, [r3, #4] <== NOT EXECUTED
the_thread->Wait.queue = the_thread_queue;
a000bd98: e5810044 str r0, [r1, #68] ; 0x44 <== NOT EXECUTED
_ISR_Enable( level );
a000bd9c: ea00002b b a000be50 <_Thread_queue_Enqueue_priority+0x17c> <== NOT EXECUTED
* * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; }
a000bda0: e3a0600c mov r6, #12 <== 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;
a000bda4: e59f80bc ldr r8, [pc, #188] ; a000be68 <_Thread_queue_Enqueue_priority+0x194><== NOT EXECUTED
* * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; }
a000bda8: e0260693 mla r6, r3, r6, r0 <== 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;
a000bdac: e5d85000 ldrb r5, [r8] <== NOT EXECUTED a000bdb0: e2855001 add r5, r5, #1 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000bdb4: e10f4000 mrs r4, CPSR <== NOT EXECUTED a000bdb8: e3843080 orr r3, r4, #128 ; 0x80 <== NOT EXECUTED a000bdbc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Disable( level );
search_thread = (Thread_Control *) _Chain_Last( header );
a000bdc0: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED
while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) {
a000bdc4: ea00000b b a000bdf8 <_Thread_queue_Enqueue_priority+0x124> <== NOT EXECUTED
search_priority = search_thread->current_priority;
a000bdc8: e5935014 ldr r5, [r3, #20] <== NOT EXECUTED
if ( priority >= search_priority )
a000bdcc: e15c0005 cmp ip, r5 <== NOT EXECUTED a000bdd0: 2a00000a bcs a000be00 <_Thread_queue_Enqueue_priority+0x12c><== NOT EXECUTED
static inline void arm_interrupt_flash( uint32_t level )
{
uint32_t arm_switch_reg;
__asm__ volatile (
a000bdd4: e10fa000 mrs sl, CPSR <== NOT EXECUTED a000bdd8: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000bddc: e129f00a msr CPSR_fc, sl <== NOT EXECUTED a000bde0: e593a010 ldr sl, [r3, #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) ) {
a000bde4: e117000a tst r7, sl <== NOT EXECUTED a000bde8: 1a000001 bne a000bdf4 <_Thread_queue_Enqueue_priority+0x120><== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000bdec: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a000bdf0: eaffffed b a000bdac <_Thread_queue_Enqueue_priority+0xd8> <== NOT EXECUTED
_ISR_Enable( level );
goto restart_reverse_search;
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
a000bdf4: e5933004 ldr r3, [r3, #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 ) ) {
a000bdf8: e1530006 cmp r3, r6 <== NOT EXECUTED a000bdfc: 1afffff1 bne a000bdc8 <_Thread_queue_Enqueue_priority+0xf4><== NOT EXECUTED
}
search_thread = (Thread_Control *)
search_thread->Object.Node.previous;
}
if ( the_thread_queue->sync_state !=
a000be00: e5906030 ldr r6, [r0, #48] ; 0x30 <== NOT EXECUTED a000be04: e3560001 cmp r6, #1 <== NOT EXECUTED a000be08: 1a000013 bne a000be5c <_Thread_queue_Enqueue_priority+0x188><== NOT EXECUTED
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
a000be0c: e3a02000 mov r2, #0 <== NOT EXECUTED
if ( priority == search_priority )
a000be10: e15c0005 cmp ip, r5 <== NOT EXECUTED
if ( the_thread_queue->sync_state !=
THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
goto synchronize;
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED;
a000be14: e5802030 str r2, [r0, #48] ; 0x30 <== NOT EXECUTED
if ( priority == search_priority )
a000be18: 0a000005 beq a000be34 <_Thread_queue_Enqueue_priority+0x160><== NOT EXECUTED
goto equal_priority;
search_node = (Chain_Node *) search_thread;
next_node = search_node->next;
a000be1c: e5932000 ldr r2, [r3] <== NOT EXECUTED
the_node = (Chain_Node *) the_thread;
the_node->next = next_node;
the_node->previous = search_node;
a000be20: e881000c stm r1, {r2, r3} <== NOT EXECUTED
search_node->next = the_node; next_node->previous = the_node;
a000be24: e5821004 str r1, [r2, #4] <== NOT EXECUTED
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;
a000be28: e5831000 str r1, [r3] <== NOT EXECUTED
next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue;
a000be2c: e5810044 str r0, [r1, #68] ; 0x44 <== NOT EXECUTED
_ISR_Enable( level );
a000be30: ea000006 b a000be50 <_Thread_queue_Enqueue_priority+0x17c> <== NOT EXECUTED
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;
a000be34: e5932040 ldr r2, [r3, #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 );
a000be38: e283c03c add ip, r3, #60 ; 0x3c <== NOT EXECUTED
previous_node = search_node->previous;
the_node = (Chain_Node *) the_thread;
the_node->next = search_node;
a000be3c: e581c000 str ip, [r1] <== NOT EXECUTED
the_node->previous = previous_node;
a000be40: e5812004 str r2, [r1, #4] <== NOT EXECUTED
previous_node->next = the_node;
a000be44: e5821000 str r1, [r2] <== NOT EXECUTED
search_node->previous = the_node;
a000be48: e5831040 str r1, [r3, #64] ; 0x40 <== NOT EXECUTED
the_thread->Wait.queue = the_thread_queue;
a000be4c: e5810044 str r0, [r1, #68] ; 0x44 <== NOT EXECUTED a000be50: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
_ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED;
a000be54: e3a00001 mov r0, #1 <== NOT EXECUTED
a000be58: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
* 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;
a000be5c: e5824000 str r4, [r2] <== NOT EXECUTED
return the_thread_queue->sync_state;
a000be60: e5900030 ldr r0, [r0, #48] ; 0x30 <== NOT EXECUTED
}
a000be64: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a000bc34 <_Thread_queue_Enqueue_with_handler>:
Thread_queue_Control *,
Thread_Control *,
ISR_Level *
);
the_thread = _Thread_Executing;
a000bc34: e59f3088 ldr r3, [pc, #136] ; a000bcc4 <_Thread_queue_Enqueue_with_handler+0x90><== NOT EXECUTED
void _Thread_queue_Enqueue_with_handler(
Thread_queue_Control *the_thread_queue,
Watchdog_Interval timeout,
Thread_queue_Timeout_callout handler
)
{
a000bc38: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
Thread_queue_Control *,
Thread_Control *,
ISR_Level *
);
the_thread = _Thread_Executing;
a000bc3c: e5934004 ldr r4, [r3, #4] <== NOT EXECUTED
void _Thread_queue_Enqueue_with_handler(
Thread_queue_Control *the_thread_queue,
Watchdog_Interval timeout,
Thread_queue_Timeout_callout handler
)
{
a000bc40: e1a05000 mov r5, r0 <== NOT EXECUTED a000bc44: e1a06001 mov r6, r1 <== NOT EXECUTED
else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state );
a000bc48: e1a00004 mov r0, r4 <== NOT EXECUTED a000bc4c: e5951038 ldr r1, [r5, #56] ; 0x38 <== NOT EXECUTED
void _Thread_queue_Enqueue_with_handler(
Thread_queue_Control *the_thread_queue,
Watchdog_Interval timeout,
Thread_queue_Timeout_callout handler
)
{
a000bc50: e1a07002 mov r7, r2 <== NOT EXECUTED
else #endif /* * Set the blocking state for this thread queue in the thread. */ _Thread_Set_state( the_thread, the_thread_queue->state );
a000bc54: eb0000e0 bl a000bfdc <_Thread_Set_state> <== NOT EXECUTED
/*
* If the thread wants to timeout, then schedule its timer.
*/
if ( timeout ) {
a000bc58: e3560000 cmp r6, #0 <== NOT EXECUTED a000bc5c: 0a000009 beq a000bc88 <_Thread_queue_Enqueue_with_handler+0x54><== NOT EXECUTED
_Watchdog_Initialize(
a000bc60: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a000bc64: e3a03000 mov r3, #0 <== NOT EXECUTED a000bc68: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED
the_watchdog->routine = routine;
a000bc6c: e5847064 str r7, [r4, #100] ; 0x64 <== NOT EXECUTED
the_watchdog->id = id;
a000bc70: e5842068 str r2, [r4, #104] ; 0x68 <== NOT EXECUTED
the_watchdog->user_data = user_data;
a000bc74: e584306c str r3, [r4, #108] ; 0x6c <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a000bc78: e5846054 str r6, [r4, #84] ; 0x54 <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a000bc7c: e59f0044 ldr r0, [pc, #68] ; a000bcc8 <_Thread_queue_Enqueue_with_handler+0x94><== NOT EXECUTED a000bc80: e2841048 add r1, r4, #72 ; 0x48 <== NOT EXECUTED a000bc84: eb000230 bl a000c54c <_Watchdog_Insert> <== NOT EXECUTED
}
/*
* Now enqueue the thread per the discipline for this thread queue.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
a000bc88: e5951034 ldr r1, [r5, #52] ; 0x34 <== NOT EXECUTED
enqueue_p = _Thread_queue_Enqueue_priority;
a000bc8c: e59f2038 ldr r2, [pc, #56] ; a000bccc <_Thread_queue_Enqueue_with_handler+0x98><== NOT EXECUTED a000bc90: e59f3038 ldr r3, [pc, #56] ; a000bcd0 <_Thread_queue_Enqueue_with_handler+0x9c><== NOT EXECUTED a000bc94: e3510001 cmp r1, #1 <== NOT EXECUTED a000bc98: 01a03002 moveq r3, r2 <== NOT EXECUTED
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
enqueue_p = _Thread_queue_Enqueue_fifo;
sync_state = (*enqueue_p)( the_thread_queue, the_thread, &level );
a000bc9c: e1a00005 mov r0, r5 <== NOT EXECUTED a000bca0: e1a01004 mov r1, r4 <== NOT EXECUTED a000bca4: e1a0200d mov r2, sp <== NOT EXECUTED a000bca8: e12fff33 blx r3 <== NOT EXECUTED
if ( sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
a000bcac: e3500001 cmp r0, #1 <== NOT EXECUTED a000bcb0: 0a000002 beq a000bcc0 <_Thread_queue_Enqueue_with_handler+0x8c><== NOT EXECUTED
_Thread_blocking_operation_Cancel( sync_state, the_thread, level );
a000bcb4: e1a01004 mov r1, r4 <== NOT EXECUTED a000bcb8: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000bcbc: ebfffda1 bl a000b348 <_Thread_blocking_operation_Cancel> <== NOT EXECUTED
}
a000bcc0: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000f530 <_Thread_queue_Extract>:
{
/*
* Can not use indirect function pointer here since Extract priority
* is a macro and the underlying methods do not have the same signature.
*/
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
a000f530: e5903034 ldr r3, [r0, #52] ; 0x34 <== NOT EXECUTED a000f534: e3530001 cmp r3, #1 <== NOT EXECUTED a000f538: 1a000001 bne a000f544 <_Thread_queue_Extract+0x14> <== NOT EXECUTED
_Thread_queue_Extract_priority( the_thread_queue, the_thread );
a000f53c: e3a02000 mov r2, #0 <== NOT EXECUTED a000f540: ea000000 b a000f548 <_Thread_queue_Extract_priority_helper><== NOT EXECUTED
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
_Thread_queue_Extract_fifo( the_thread_queue, the_thread );
a000f544: ea00067c b a0010f3c <_Thread_queue_Extract_fifo> <== NOT EXECUTED
a0010f3c <_Thread_queue_Extract_fifo>:
void _Thread_queue_Extract_fifo(
Thread_queue_Control *the_thread_queue __attribute__((unused)),
Thread_Control *the_thread
)
{
a0010f3c: e92d4010 push {r4, lr} <== NOT EXECUTED
a0010f40: e1a04001 mov r4, r1 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0010f44: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0010f48: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0010f4c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a0010f50: e59f2060 ldr r2, [pc, #96] ; a0010fb8 <_Thread_queue_Extract_fifo+0x7c><== NOT EXECUTED a0010f54: e5911010 ldr r1, [r1, #16] <== NOT EXECUTED a0010f58: e0012002 and r2, r1, r2 <== NOT EXECUTED
ISR_Level level;
_ISR_Disable( level );
if ( !_States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
a0010f5c: e3520000 cmp r2, #0 <== NOT EXECUTED a0010f60: 1a000001 bne a0010f6c <_Thread_queue_Extract_fifo+0x30> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0010f64: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
a0010f68: e8bd8010 pop {r4, pc} <== NOT EXECUTED
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
a0010f6c: e8940006 ldm r4, {r1, r2} <== NOT EXECUTED
next->previous = previous;
a0010f70: e5812004 str r2, [r1, #4] <== NOT EXECUTED
previous->next = next;
a0010f74: e5821000 str r1, [r2] <== NOT EXECUTED
return;
}
_Chain_Extract_unprotected( &the_thread->Object.Node );
the_thread->Wait.queue = NULL;
a0010f78: e3a02000 mov r2, #0 <== NOT EXECUTED a0010f7c: e5842044 str r2, [r4, #68] ; 0x44 <== NOT EXECUTED
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
a0010f80: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0010f84: e3520002 cmp r2, #2 <== NOT EXECUTED a0010f88: 0a000001 beq a0010f94 <_Thread_queue_Extract_fifo+0x58> <== NOT EXECUTED a0010f8c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0010f90: ea000004 b a0010fa8 <_Thread_queue_Extract_fifo+0x6c> <== NOT EXECUTED a0010f94: e3a02003 mov r2, #3 <== NOT EXECUTED a0010f98: e5842050 str r2, [r4, #80] ; 0x50 <== NOT EXECUTED a0010f9c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
a0010fa0: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a0010fa4: ebffedc0 bl a000c6ac <_Watchdog_Remove> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Thread_Unblock (
Thread_Control *the_thread
)
{
_Thread_Clear_state( the_thread, STATES_BLOCKED );
a0010fa8: e59f100c ldr r1, [pc, #12] ; a0010fbc <_Thread_queue_Extract_fifo+0x80><== NOT EXECUTED a0010fac: e1a00004 mov r0, r4 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
a0010fb0: e8bd4010 pop {r4, lr} <== NOT EXECUTED
a0010fb4: eaffe932 b a000b484 <_Thread_Clear_state> <== NOT EXECUTED
a000f548 <_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
)
{
a000f548: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a000f54c: e20220ff and r2, r2, #255 ; 0xff <== NOT EXECUTED
a000f550: e1a04001 mov r4, r1 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000f554: e10f1000 mrs r1, CPSR <== NOT EXECUTED a000f558: e3813080 orr r3, r1, #128 ; 0x80 <== NOT EXECUTED a000f55c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
States_Control the_states
)
{
return (the_states & STATES_WAITING_ON_THREAD_QUEUE);
a000f560: e59f30b0 ldr r3, [pc, #176] ; a000f618 <_Thread_queue_Extract_priority_helper+0xd0><== NOT EXECUTED a000f564: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000f568: e0003003 and r3, r0, r3 <== NOT EXECUTED
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 ) ) {
a000f56c: e3530000 cmp r3, #0 <== NOT EXECUTED a000f570: 1a000000 bne a000f578 <_Thread_queue_Extract_priority_helper+0x30><== NOT EXECUTED
_ISR_Enable( level );
a000f574: ea000017 b a000f5d8 <_Thread_queue_Extract_priority_helper+0x90><== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
a000f578: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED
/*
* The thread was actually waiting on a thread queue so let's remove it.
*/
next_node = the_node->next;
a000f57c: e8941001 ldm r4, {r0, ip} <== 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 );
a000f580: e284503c add r5, r4, #60 ; 0x3c <== NOT EXECUTED
previous_node = the_node->previous;
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
a000f584: e1530005 cmp r3, r5 <== NOT EXECUTED
head->next = new_second_node;
tail->previous = last_node;
last_node->next = tail;
}
} else {
previous_node->next = next_node;
a000f588: 058c0000 streq r0, [ip] <== NOT EXECUTED
next_node->previous = previous_node;
a000f58c: 0580c004 streq ip, [r0, #4] <== NOT EXECUTED
*/
next_node = the_node->next;
previous_node = the_node->previous;
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
a000f590: 0a00000e beq a000f5d0 <_Thread_queue_Extract_priority_helper+0x88><== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
a000f594: e5945040 ldr r5, [r4, #64] ; 0x40 <== NOT EXECUTED
if ( !_Chain_Is_empty( &the_thread->Wait.Block2n ) ) {
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;
a000f598: e5936000 ldr r6, [r3] <== NOT EXECUTED
previous_node->next = new_first_node;
next_node->previous = new_first_node;
a000f59c: 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;
a000f5a0: e58c3000 str r3, [ip] <== NOT EXECUTED
next_node->previous = new_first_node;
new_first_node->next = next_node;
new_first_node->previous = previous_node;
a000f5a4: e8831001 stm r3, {r0, ip} <== NOT EXECUTED
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
a000f5a8: e594c038 ldr ip, [r4, #56] ; 0x38 <== NOT EXECUTED a000f5ac: e5940040 ldr r0, [r4, #64] ; 0x40 <== NOT EXECUTED a000f5b0: e15c0000 cmp ip, r0 <== NOT EXECUTED a000f5b4: 0a000005 beq a000f5d0 <_Thread_queue_Extract_priority_helper+0x88><== NOT EXECUTED
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
a000f5b8: e2830038 add r0, r3, #56 ; 0x38 <== NOT EXECUTED
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
new_second_node->previous = head;
head->next = new_second_node;
a000f5bc: e5836038 str r6, [r3, #56] ; 0x38 <== NOT EXECUTED
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
new_second_node->previous = head;
a000f5c0: e5860004 str r0, [r6, #4] <== NOT EXECUTED
head->next = new_second_node;
tail->previous = last_node;
a000f5c4: e5835040 str r5, [r3, #64] ; 0x40 <== NOT EXECUTED
new_first_node->previous = previous_node;
if ( !_Chain_Has_only_one_node( &the_thread->Wait.Block2n ) ) {
/* > two threads on 2-n */
head = _Chain_Head( &new_first_thread->Wait.Block2n );
tail = _Chain_Tail( &new_first_thread->Wait.Block2n );
a000f5c8: e283303c add r3, r3, #60 ; 0x3c <== NOT EXECUTED
new_second_node->previous = head;
head->next = new_second_node;
tail->previous = last_node;
last_node->next = tail;
a000f5cc: e5853000 str r3, [r5] <== NOT EXECUTED
/*
* If we are not supposed to touch timers or the thread's state, return.
*/
if ( requeuing ) {
a000f5d0: e3520000 cmp r2, #0 <== NOT EXECUTED a000f5d4: 0a000001 beq a000f5e0 <_Thread_queue_Extract_priority_helper+0x98><== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000f5d8: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
a000f5dc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
_ISR_Enable( level );
return;
}
if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {
a000f5e0: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000f5e4: e3530002 cmp r3, #2 <== NOT EXECUTED a000f5e8: 0a000001 beq a000f5f4 <_Thread_queue_Extract_priority_helper+0xac><== NOT EXECUTED a000f5ec: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a000f5f0: ea000004 b a000f608 <_Thread_queue_Extract_priority_helper+0xc0><== NOT EXECUTED a000f5f4: e3a03003 mov r3, #3 <== NOT EXECUTED a000f5f8: e5843050 str r3, [r4, #80] ; 0x50 <== NOT EXECUTED a000f5fc: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
_ISR_Enable( level );
} else {
_Watchdog_Deactivate( &the_thread->Timer );
_ISR_Enable( level );
(void) _Watchdog_Remove( &the_thread->Timer );
a000f600: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000f604: ebfff428 bl a000c6ac <_Watchdog_Remove> <== NOT EXECUTED a000f608: e59f100c ldr r1, [pc, #12] ; a000f61c <_Thread_queue_Extract_priority_helper+0xd4><== NOT EXECUTED a000f60c: e1a00004 mov r0, r4 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
_Thread_MP_Free_proxy( the_thread );
#endif
}
a000f610: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED
a000f614: eaffef9a b a000b484 <_Thread_Clear_state> <== NOT EXECUTED
a000be6c <_Thread_queue_Extract_with_proxy>:
*/
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (
States_Control the_states
)
{
return (the_states & STATES_WAITING_ON_THREAD_QUEUE);
a000be6c: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED
*/
bool _Thread_queue_Extract_with_proxy(
Thread_Control *the_thread
)
{
a000be70: e1a01000 mov r1, r0 <== NOT EXECUTED
a000be74: e59f001c ldr r0, [pc, #28] ; a000be98 <_Thread_queue_Extract_with_proxy+0x2c><== NOT EXECUTED
a000be78: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
a000be7c: e0030000 and r0, r3, r0 <== NOT EXECUTED
States_Control state;
state = the_thread->current_state;
if ( _States_Is_waiting_on_thread_queue( state ) ) {
a000be80: e3500000 cmp r0, #0 <== NOT EXECUTED
a000be84: 049df004 popeq {pc} ; (ldreq pc, [sp], #4) <== NOT EXECUTED
if ( proxy_extract_callout )
(*proxy_extract_callout)( the_thread );
}
#endif
_Thread_queue_Extract( the_thread->Wait.queue, the_thread );
a000be88: e5910044 ldr r0, [r1, #68] ; 0x44 <== NOT EXECUTED a000be8c: eb000da7 bl a000f530 <_Thread_queue_Extract> <== NOT EXECUTED
return true;
a000be90: e3a00001 mov r0, #1 <== NOT EXECUTED
} return false; }
a000be94: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000df20 <_Thread_queue_First>:
Thread_queue_Control *the_thread_queue
)
{
Thread_Control * (*first_p)(Thread_queue_Control *);
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
a000df20: e5901034 ldr r1, [r0, #52] ; 0x34 <== NOT EXECUTED
first_p = _Thread_queue_First_priority;
a000df24: e59f2014 ldr r2, [pc, #20] ; a000df40 <_Thread_queue_First+0x20><== NOT EXECUTED a000df28: e59f3014 ldr r3, [pc, #20] ; a000df44 <_Thread_queue_First+0x24><== NOT EXECUTED a000df2c: e3510001 cmp r1, #1 <== NOT EXECUTED
*/
Thread_Control *_Thread_queue_First(
Thread_queue_Control *the_thread_queue
)
{
a000df30: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
Thread_Control * (*first_p)(Thread_queue_Control *);
if ( the_thread_queue->discipline == THREAD_QUEUE_DISCIPLINE_PRIORITY )
first_p = _Thread_queue_First_priority;
a000df34: 01a03002 moveq r3, r2 <== NOT EXECUTED
else /* must be THREAD_QUEUE_DISCIPLINE_FIFO */
first_p = _Thread_queue_First_fifo;
return (*first_p)( the_thread_queue );
a000df38: e12fff33 blx r3 <== NOT EXECUTED
}
a000df3c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a001181c <_Thread_queue_First_fifo>:
{
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Fifo ) )
return (Thread_Control *) _Chain_First( &the_thread_queue->Queues.Fifo );
return NULL;
}
a001181c: e4903004 ldr r3, [r0], #4 <== NOT EXECUTED a0011820: e1530000 cmp r3, r0 <== NOT EXECUTED a0011824: 11a00003 movne r0, r3 <== NOT EXECUTED a0011828: 03a00000 moveq r0, #0 <== NOT EXECUTED a001182c: e12fff1e bx lr <== NOT EXECUTED
a000df48 <_Thread_queue_First_priority>:
*/
Thread_Control *_Thread_queue_First_priority (
Thread_queue_Control *the_thread_queue
)
{
a000df48: e92d4010 push {r4, lr} <== NOT EXECUTED
a000df4c: e3a02000 mov r2, #0 <== NOT EXECUTED
uint32_t index;
for( index=0 ;
a000df50: e1a03002 mov r3, r2 <== 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 );
a000df54: e3a0c00c mov ip, #12 <== NOT EXECUTED a000df58: e004039c mul r4, ip, r3 <== NOT EXECUTED
return (Thread_Control *) _Chain_First(
&the_thread_queue->Queues.Priority[ index ]
);
}
return NULL;
}
a000df5c: e7901002 ldr r1, [r0, r2] <== NOT EXECUTED a000df60: e2844004 add r4, r4, #4 <== NOT EXECUTED a000df64: e0804004 add r4, r0, r4 <== NOT EXECUTED
uint32_t index;
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
if ( !_Chain_Is_empty( &the_thread_queue->Queues.Priority[ index ] ) )
a000df68: e1510004 cmp r1, r4 <== NOT EXECUTED a000df6c: 0a000001 beq a000df78 <_Thread_queue_First_priority+0x30> <== NOT EXECUTED
return (Thread_Control *) _Chain_First(
a000df70: e1a00001 mov r0, r1 <== NOT EXECUTED
a000df74: e8bd8010 pop {r4, pc} <== NOT EXECUTED
{
uint32_t index;
for( index=0 ;
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
a000df78: e2833001 add r3, r3, #1 <== NOT EXECUTED
Thread_queue_Control *the_thread_queue
)
{
uint32_t index;
for( index=0 ;
a000df7c: e3530004 cmp r3, #4 <== NOT EXECUTED
index < TASK_QUEUE_DATA_NUMBER_OF_PRIORITY_HEADERS ;
index++ ) {
a000df80: e282200c add r2, r2, #12 <== NOT EXECUTED
Thread_queue_Control *the_thread_queue
)
{
uint32_t index;
for( index=0 ;
a000df84: 1afffff3 bne a000df58 <_Thread_queue_First_priority+0x10> <== 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;
a000df88: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a000df8c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000be9c <_Thread_queue_Flush>:
#else
Thread_queue_Flush_callout remote_extract_callout __attribute__((unused)),
#endif
uint32_t status
)
{
a000be9c: e92d4030 push {r4, r5, lr}
a000bea0: e1a04000 mov r4, r0
a000bea4: e1a05002 mov r5, r2
Thread_Control *the_thread;
while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) {
a000bea8: ea000000 b a000beb0 <_Thread_queue_Flush+0x14>
#if defined(RTEMS_MULTIPROCESSING)
if ( !_Objects_Is_local_id( the_thread->Object.id ) )
( *remote_extract_callout )( the_thread );
else
#endif
the_thread->Wait.return_code = status;
a000beac: e5805034 str r5, [r0, #52] ; 0x34 <== NOT EXECUTED
uint32_t status
)
{
Thread_Control *the_thread;
while ( (the_thread = _Thread_queue_Dequeue( the_thread_queue )) ) {
a000beb0: e1a00004 mov r0, r4 a000beb4: ebffff04 bl a000bacc <_Thread_queue_Dequeue> a000beb8: e3500000 cmp r0, #0
a000bebc: 1afffffa bne a000beac <_Thread_queue_Flush+0x10>
( *remote_extract_callout )( the_thread );
else
#endif
the_thread->Wait.return_code = status;
}
}
a000bec0: e8bd8030 pop {r4, r5, pc}
a000f620 <_Thread_queue_Process_timeout>:
#include <rtems/score/tqdata.h>
void _Thread_queue_Process_timeout(
Thread_Control *the_thread
)
{
a000f620: e1a01000 mov r1, r0 <== NOT EXECUTED
Thread_queue_Control *the_thread_queue = the_thread->Wait.queue;
a000f624: 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 &&
a000f628: e5903030 ldr r3, [r0, #48] ; 0x30 <== NOT EXECUTED a000f62c: e3530000 cmp r3, #0 <== NOT EXECUTED a000f630: 0a000009 beq a000f65c <_Thread_queue_Process_timeout+0x3c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
a000f634: e59f202c ldr r2, [pc, #44] ; a000f668 <_Thread_queue_Process_timeout+0x48><== NOT EXECUTED a000f638: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED a000f63c: e1510002 cmp r1, r2 <== NOT EXECUTED a000f640: 1a000005 bne a000f65c <_Thread_queue_Process_timeout+0x3c> <== NOT EXECUTED
_Thread_Is_executing( the_thread ) ) {
if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_SATISFIED ) {
a000f644: e3530003 cmp r3, #3 <== NOT EXECUTED
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
a000f648: 1590303c ldrne r3, [r0, #60] ; 0x3c <== NOT EXECUTED a000f64c: 15813034 strne r3, [r1, #52] ; 0x34 <== NOT EXECUTED
the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;
a000f650: 13a03002 movne r3, #2 <== NOT EXECUTED a000f654: 15803030 strne r3, [r0, #48] ; 0x30 <== NOT EXECUTED a000f658: e12fff1e bx lr <== NOT EXECUTED
}
} else {
the_thread->Wait.return_code = the_thread->Wait.queue->timeout_status;
a000f65c: e590303c ldr r3, [r0, #60] ; 0x3c <== NOT EXECUTED a000f660: e5813034 str r3, [r1, #52] ; 0x34 <== NOT EXECUTED
_Thread_queue_Extract( the_thread->Wait.queue, the_thread );
a000f664: eaffffb1 b a000f530 <_Thread_queue_Extract> <== NOT EXECUTED
a000bf2c <_Thread_queue_Requeue>:
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
a000bf2c: e92d4071 push {r0, 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 )
a000bf30: e2504000 subs r4, r0, #0 <== NOT EXECUTED
void _Thread_queue_Requeue(
Thread_queue_Control *the_thread_queue,
Thread_Control *the_thread
)
{
a000bf34: 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 )
a000bf38: 0a000011 beq a000bf84 <_Thread_queue_Requeue+0x58> <== 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 ) {
a000bf3c: e5942034 ldr r2, [r4, #52] ; 0x34 <== NOT EXECUTED a000bf40: e3520001 cmp r2, #1 <== NOT EXECUTED a000bf44: 1a00000e bne a000bf84 <_Thread_queue_Requeue+0x58> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000bf48: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000bf4c: e3863080 orr r3, r6, #128 ; 0x80 <== NOT EXECUTED a000bf50: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a000bf54: e59f302c ldr r3, [pc, #44] ; a000bf88 <_Thread_queue_Requeue+0x5c><== NOT EXECUTED a000bf58: e591c010 ldr ip, [r1, #16] <== NOT EXECUTED a000bf5c: e00c3003 and r3, ip, r3 <== 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 ) ) {
a000bf60: e3530000 cmp r3, #0 <== NOT EXECUTED a000bf64: 0a000005 beq a000bf80 <_Thread_queue_Requeue+0x54> <== 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;
a000bf68: e5842030 str r2, [r4, #48] ; 0x30 <== NOT EXECUTED
_Thread_queue_Enter_critical_section( tq );
_Thread_queue_Extract_priority_helper( tq, the_thread, true );
a000bf6c: eb000d75 bl a000f548 <_Thread_queue_Extract_priority_helper><== NOT EXECUTED
(void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
a000bf70: e1a00004 mov r0, r4 <== NOT EXECUTED a000bf74: e1a01005 mov r1, r5 <== NOT EXECUTED a000bf78: e1a0200d mov r2, sp <== NOT EXECUTED a000bf7c: ebffff54 bl a000bcd4 <_Thread_queue_Enqueue_priority> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000bf80: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
}
_ISR_Enable( level );
}
}
a000bf84: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a000bf8c <_Thread_queue_Timeout>:
void _Thread_queue_Timeout(
Objects_Id id,
void *ignored __attribute__((unused))
)
{
a000bf8c: e92d4001 push {r0, lr} <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
a000bf90: e1a0100d mov r1, sp <== NOT EXECUTED a000bf94: ebfffe0a bl a000b7c4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000bf98: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000bf9c: e3530000 cmp r3, #0 <== NOT EXECUTED a000bfa0: 1a000004 bne a000bfb8 <_Thread_queue_Timeout+0x2c> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
case OBJECTS_REMOTE: /* impossible */
#endif
break;
case OBJECTS_LOCAL:
_Thread_queue_Process_timeout( the_thread );
a000bfa4: eb000d9d bl a000f620 <_Thread_queue_Process_timeout> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void )
{
RTEMS_COMPILER_MEMORY_BARRIER();
_Thread_Dispatch_disable_level -= 1;
a000bfa8: e59f300c ldr r3, [pc, #12] ; a000bfbc <_Thread_queue_Timeout+0x30><== NOT EXECUTED a000bfac: e5932000 ldr r2, [r3] <== NOT EXECUTED a000bfb0: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000bfb4: e5832000 str r2, [r3] <== NOT EXECUTED
_Thread_Unnest_dispatch();
break;
}
}
a000bfb8: e8bd8008 pop {r3, pc} <== NOT EXECUTED
a00185fc <_Timer_server_Body>:
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
a00185fc: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
a0018600: e24dd01c sub sp, sp, #28 <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
a0018604: e28d9010 add r9, sp, #16 <== NOT EXECUTED a0018608: e28d6004 add r6, sp, #4 <== NOT EXECUTED
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
a001860c: e59fb190 ldr fp, [pc, #400] ; a00187a4 <_Timer_server_Body+0x1a8><== NOT EXECUTED a0018610: e2893004 add r3, r9, #4 <== NOT EXECUTED
head->previous = NULL;
a0018614: e3a02000 mov r2, #0 <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
a0018618: e2868004 add r8, r6, #4 <== NOT EXECUTED
* @a arg points to the corresponding timer server control block.
*/
static rtems_task _Timer_server_Body(
rtems_task_argument arg
)
{
a001861c: e1a04000 mov r4, r0 <== NOT EXECUTED a0018620: e58d3010 str r3, [sp, #16] <== NOT EXECUTED
head->previous = NULL;
a0018624: e58d2014 str r2, [sp, #20] <== NOT EXECUTED
tail->previous = head;
a0018628: e58d9018 str r9, [sp, #24] <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
a001862c: e58d8004 str r8, [sp, #4] <== NOT EXECUTED
head->previous = NULL;
a0018630: e58d2008 str r2, [sp, #8] <== NOT EXECUTED
tail->previous = head;
a0018634: e58d600c str r6, [sp, #12] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(
const Chain_Control *the_chain
)
{
return &the_chain->Tail.Node;
a0018638: e58d3000 str r3, [sp] <== 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;
a001863c: e5849078 str r9, [r4, #120] ; 0x78 <== NOT EXECUTED
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
a0018640: e284a030 add sl, r4, #48 ; 0x30 <== 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 );
a0018644: e2847068 add r7, r4, #104 ; 0x68 <== NOT EXECUTED
static void _Timer_server_Process_interval_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;
a0018648: e59b3000 ldr r3, [fp] <== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
a001864c: e594103c ldr r1, [r4, #60] ; 0x3c <== NOT EXECUTED
watchdogs->last_snapshot = snapshot;
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
a0018650: e1a02006 mov r2, r6 <== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;
watchdogs->last_snapshot = snapshot;
a0018654: e584303c str r3, [r4, #60] ; 0x3c <== NOT EXECUTED
_Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
a0018658: e1a0000a mov r0, sl <== NOT EXECUTED a001865c: e0611003 rsb r1, r1, r3 <== NOT EXECUTED a0018660: eb0010de bl a001c9e0 <_Watchdog_Adjust_to_chain> <== NOT EXECUTED
static void _Timer_server_Process_tod_watchdogs(
Timer_server_Watchdogs *watchdogs,
Chain_Control *fire_chain
)
{
Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
a0018664: e59f213c ldr r2, [pc, #316] ; a00187a8 <_Timer_server_Body+0x1ac><== NOT EXECUTED a0018668: e5925000 ldr r5, [r2] <== NOT EXECUTED
Watchdog_Interval last_snapshot = watchdogs->last_snapshot;
a001866c: e5942074 ldr r2, [r4, #116] ; 0x74 <== 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 ) {
a0018670: e1550002 cmp r5, r2 <== NOT EXECUTED a0018674: 9a000004 bls a001868c <_Timer_server_Body+0x90> <== 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 );
a0018678: e0621005 rsb r1, r2, r5 <== NOT EXECUTED a001867c: e1a00007 mov r0, r7 <== NOT EXECUTED a0018680: e1a02006 mov r2, r6 <== NOT EXECUTED a0018684: eb0010d5 bl a001c9e0 <_Watchdog_Adjust_to_chain> <== NOT EXECUTED a0018688: ea000004 b a00186a0 <_Timer_server_Body+0xa4> <== NOT EXECUTED
} else if ( snapshot < last_snapshot ) {
a001868c: 2a000003 bcs a00186a0 <_Timer_server_Body+0xa4> <== 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 );
a0018690: e1a00007 mov r0, r7 <== NOT EXECUTED a0018694: e3a01001 mov r1, #1 <== NOT EXECUTED a0018698: e0652002 rsb r2, r5, r2 <== NOT EXECUTED a001869c: eb0010a7 bl a001c940 <_Watchdog_Adjust> <== NOT EXECUTED
}
watchdogs->last_snapshot = snapshot;
a00186a0: 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 );
a00186a4: e5940078 ldr r0, [r4, #120] ; 0x78 <== NOT EXECUTED a00186a8: eb00029e bl a0019128 <_Chain_Get> <== NOT EXECUTED
if ( timer == NULL ) {
a00186ac: e2505000 subs r5, r0, #0 <== NOT EXECUTED a00186b0: 0a000009 beq a00186dc <_Timer_server_Body+0xe0> <== NOT EXECUTED
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
a00186b4: e5953038 ldr r3, [r5, #56] ; 0x38 <== NOT EXECUTED a00186b8: e3530001 cmp r3, #1 <== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
a00186bc: 01a0000a moveq r0, sl <== NOT EXECUTED
static void _Timer_server_Insert_timer(
Timer_server_Control *ts,
Timer_Control *timer
)
{
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
a00186c0: 0a000002 beq a00186d0 <_Timer_server_Body+0xd4> <== NOT EXECUTED
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
a00186c4: e3530003 cmp r3, #3 <== NOT EXECUTED a00186c8: 1afffff5 bne a00186a4 <_Timer_server_Body+0xa8> <== NOT EXECUTED
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
a00186cc: e1a00007 mov r0, r7 <== NOT EXECUTED a00186d0: e2851010 add r1, r5, #16 <== NOT EXECUTED a00186d4: eb0010ec bl a001ca8c <_Watchdog_Insert> <== NOT EXECUTED a00186d8: eafffff1 b a00186a4 <_Timer_server_Body+0xa8> <== NOT EXECUTED
* of zero it will be processed in the next iteration of the timer server
* body loop.
*/
_Timer_server_Process_insertions( ts );
_ISR_Disable( level );
a00186dc: ebffff94 bl a0018534 <arm_interrupt_disable> <== NOT EXECUTED
if ( _Chain_Is_empty( insert_chain ) ) {
a00186e0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a00186e4: e59d2000 ldr r2, [sp] <== NOT EXECUTED a00186e8: e1530002 cmp r3, r2 <== NOT EXECUTED a00186ec: 1a000006 bne a001870c <_Timer_server_Body+0x110> <== NOT EXECUTED
ts->insert_chain = NULL;
a00186f0: e5845078 str r5, [r4, #120] ; 0x78 <== NOT EXECUTED a00186f4: e129f000 msr CPSR_fc, r0 <== 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 ) ) {
a00186f8: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a00186fc: e1530008 cmp r3, r8 <== NOT EXECUTED
)
{
if ( !_Chain_Is_empty(the_chain))
return _Chain_Get_first_unprotected(the_chain);
else
return NULL;
a0018700: 13a05000 movne r5, #0 <== NOT EXECUTED a0018704: 1a000002 bne a0018714 <_Timer_server_Body+0x118> <== NOT EXECUTED a0018708: ea000013 b a001875c <_Timer_server_Body+0x160> <== NOT EXECUTED a001870c: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a0018710: eaffffcc b a0018648 <_Timer_server_Body+0x4c> <== NOT EXECUTED
/*
* It is essential that interrupts are disable here since an interrupt
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
a0018714: ebffff86 bl a0018534 <arm_interrupt_disable> <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
a0018718: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(
Chain_Control *the_chain
)
{
if ( !_Chain_Is_empty(the_chain))
a001871c: e1520008 cmp r2, r8 <== NOT EXECUTED a0018720: 0a00000b beq a0018754 <_Timer_server_Body+0x158> <== 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;
a0018724: e5923000 ldr r3, [r2] <== NOT EXECUTED
* It is essential that interrupts are disable here since an interrupt
* service routine may remove a watchdog from the chain.
*/
_ISR_Disable( level );
watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain );
if ( watchdog != NULL ) {
a0018728: e3520000 cmp r2, #0 <== NOT EXECUTED
head->next = new_first;
a001872c: e58d3004 str r3, [sp, #4] <== NOT EXECUTED
new_first->previous = head;
a0018730: e5836004 str r6, [r3, #4] <== NOT EXECUTED a0018734: 0a000006 beq a0018754 <_Timer_server_Body+0x158> <== NOT EXECUTED
watchdog->state = WATCHDOG_INACTIVE;
a0018738: e5825008 str r5, [r2, #8] <== NOT EXECUTED a001873c: e129f000 msr CPSR_fc, r0 <== 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 );
a0018740: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0018744: e5920020 ldr r0, [r2, #32] <== NOT EXECUTED a0018748: e5921024 ldr r1, [r2, #36] ; 0x24 <== NOT EXECUTED a001874c: e12fff33 blx r3 <== NOT EXECUTED
}
a0018750: eaffffef b a0018714 <_Timer_server_Body+0x118> <== NOT EXECUTED a0018754: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a0018758: eaffffb7 b a001863c <_Timer_server_Body+0x40> <== NOT EXECUTED
} else {
ts->active = false;
a001875c: e3a03000 mov r3, #0 <== NOT EXECUTED a0018760: e5c4307c strb r3, [r4, #124] ; 0x7c <== NOT EXECUTED
/*
* Block until there is something to do.
*/
_Thread_Disable_dispatch();
a0018764: ebffff76 bl a0018544 <_Thread_Disable_dispatch> <== NOT EXECUTED
_Thread_Set_state( ts->thread, STATES_DELAYING );
a0018768: e3a01008 mov r1, #8 <== NOT EXECUTED a001876c: e5940000 ldr r0, [r4] <== NOT EXECUTED a0018770: eb000ee8 bl a001c318 <_Thread_Set_state> <== NOT EXECUTED
_Timer_server_Reset_interval_system_watchdog( ts );
a0018774: e1a00004 mov r0, r4 <== NOT EXECUTED a0018778: ebffff77 bl a001855c <_Timer_server_Reset_interval_system_watchdog><== NOT EXECUTED
_Timer_server_Reset_tod_system_watchdog( ts );
a001877c: e1a00004 mov r0, r4 <== NOT EXECUTED a0018780: ebffff89 bl a00185ac <_Timer_server_Reset_tod_system_watchdog><== NOT EXECUTED
_Thread_Enable_dispatch();
a0018784: eb000cb7 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
ts->active = true;
a0018788: e3a03001 mov r3, #1 <== NOT EXECUTED a001878c: 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 );
a0018790: e2840008 add r0, r4, #8 <== NOT EXECUTED a0018794: eb001114 bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
static void _Timer_server_Stop_tod_system_watchdog(
Timer_server_Control *ts
)
{
_Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );
a0018798: e2840040 add r0, r4, #64 ; 0x40 <== NOT EXECUTED a001879c: eb001112 bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED a00187a0: eaffffa5 b a001863c <_Timer_server_Body+0x40> <== NOT EXECUTED
a001855c <_Timer_server_Reset_interval_system_watchdog>:
}
static void _Timer_server_Reset_interval_system_watchdog(
Timer_server_Control *ts
)
{
a001855c: 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 );
a0018560: e2805008 add r5, r0, #8 <== NOT EXECUTED
}
static void _Timer_server_Reset_interval_system_watchdog(
Timer_server_Control *ts
)
{
a0018564: 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 );
a0018568: e1a00005 mov r0, r5 <== NOT EXECUTED a001856c: eb00119e bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
{
ISR_Level level;
_Timer_server_Stop_interval_system_watchdog( ts );
_ISR_Disable( level );
a0018570: ebffffef bl a0018534 <arm_interrupt_disable> <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
a0018574: 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 );
a0018578: 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 ) ) {
a001857c: e1530002 cmp r3, r2 <== NOT EXECUTED a0018580: 0a000006 beq a00185a0 <_Timer_server_Reset_interval_system_watchdog+0x44><== NOT EXECUTED
Watchdog_Interval delta_interval =
a0018584: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0018588: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a001858c: e59f0014 ldr r0, [pc, #20] ; a00185a8 <_Timer_server_Reset_interval_system_watchdog+0x4c><== NOT EXECUTED a0018590: e1a01005 mov r1, r5 <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a0018594: e5843014 str r3, [r4, #20] <== NOT EXECUTED
delta_interval
);
} else {
_ISR_Enable( level );
}
}
a0018598: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a001859c: ea00113a b a001ca8c <_Watchdog_Insert> <== NOT EXECUTED
a00185a0: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
a00185a4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a00185ac <_Timer_server_Reset_tod_system_watchdog>:
}
static void _Timer_server_Reset_tod_system_watchdog(
Timer_server_Control *ts
)
{
a00185ac: 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 );
a00185b0: e2805040 add r5, r0, #64 ; 0x40 <== NOT EXECUTED
}
static void _Timer_server_Reset_tod_system_watchdog(
Timer_server_Control *ts
)
{
a00185b4: 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 );
a00185b8: e1a00005 mov r0, r5 <== NOT EXECUTED a00185bc: eb00118a bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
{
ISR_Level level;
_Timer_server_Stop_tod_system_watchdog( ts );
_ISR_Disable( level );
a00185c0: ebffffdb bl a0018534 <arm_interrupt_disable> <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
a00185c4: e5943068 ldr r3, [r4, #104] ; 0x68 <== NOT EXECUTED a00185c8: 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 ) ) {
a00185cc: e1530002 cmp r3, r2 <== NOT EXECUTED a00185d0: 0a000006 beq a00185f0 <_Timer_server_Reset_tod_system_watchdog+0x44><== NOT EXECUTED
Watchdog_Interval delta_interval =
a00185d4: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a00185d8: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
a00185dc: e59f0014 ldr r0, [pc, #20] ; a00185f8 <_Timer_server_Reset_tod_system_watchdog+0x4c><== NOT EXECUTED a00185e0: e1a01005 mov r1, r5 <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a00185e4: e584304c str r3, [r4, #76] ; 0x4c <== NOT EXECUTED
delta_interval
);
} else {
_ISR_Enable( level );
}
}
a00185e8: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
a00185ec: ea001126 b a001ca8c <_Watchdog_Insert> <== NOT EXECUTED
a00185f0: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
a00185f4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a00187ac <_Timer_server_Schedule_operation_method>:
static void _Timer_server_Schedule_operation_method(
Timer_server_Control *ts,
Timer_Control *timer
)
{
a00187ac: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
if ( ts->insert_chain == NULL ) {
a00187b0: e5906078 ldr r6, [r0, #120] ; 0x78 <== NOT EXECUTED
static void _Timer_server_Schedule_operation_method(
Timer_server_Control *ts,
Timer_Control *timer
)
{
a00187b4: e1a04000 mov r4, r0 <== NOT EXECUTED a00187b8: e1a05001 mov r5, r1 <== NOT EXECUTED
if ( ts->insert_chain == NULL ) {
a00187bc: e3560000 cmp r6, #0 <== NOT EXECUTED a00187c0: 1a00003a bne a00188b0 <_Timer_server_Schedule_operation_method+0x104><== NOT EXECUTED
* is the reference point for the delta chain. Thus if we do not update the
* reference point we have to add DT to the initial delta of the watchdog
* being inserted. This could result in an integer overflow.
*/
_Thread_Disable_dispatch();
a00187c4: ebffff5e bl a0018544 <_Thread_Disable_dispatch> <== NOT EXECUTED
if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {
a00187c8: e5953038 ldr r3, [r5, #56] ; 0x38 <== NOT EXECUTED a00187cc: e3530001 cmp r3, #1 <== NOT EXECUTED a00187d0: 1a000017 bne a0018834 <_Timer_server_Schedule_operation_method+0x88><== NOT EXECUTED
/*
* We have to advance the last known ticks value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
a00187d4: ebffff56 bl a0018534 <arm_interrupt_disable> <== NOT EXECUTED
snapshot = _Watchdog_Ticks_since_boot;
a00187d8: e59f30dc ldr r3, [pc, #220] ; a00188bc <_Timer_server_Schedule_operation_method+0x110><== 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 );
a00187dc: e284c034 add ip, r4, #52 ; 0x34 <== NOT EXECUTED a00187e0: e5932000 ldr r2, [r3] <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
a00187e4: e5943030 ldr r3, [r4, #48] ; 0x30 <== 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;
last_snapshot = ts->Interval_watchdogs.last_snapshot;
a00187e8: e594103c ldr r1, [r4, #60] ; 0x3c <== NOT EXECUTED
if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {
a00187ec: e153000c cmp r3, ip <== NOT EXECUTED a00187f0: 0a000004 beq a0018808 <_Timer_server_Schedule_operation_method+0x5c><== NOT EXECUTED
/*
* We assume adequate unsigned arithmetic here.
*/
delta = snapshot - last_snapshot;
delta_interval = first_watchdog->delta_interval;
a00187f4: e593c010 ldr ip, [r3, #16] <== NOT EXECUTED
first_watchdog = _Watchdog_First( &ts->Interval_watchdogs.Chain );
/*
* We assume adequate unsigned arithmetic here.
*/
delta = snapshot - last_snapshot;
a00187f8: e0611002 rsb r1, r1, r2 <== NOT EXECUTED
delta_interval = first_watchdog->delta_interval;
if (delta_interval > delta) {
a00187fc: e15c0001 cmp ip, r1 <== NOT EXECUTED
delta_interval -= delta;
a0018800: 8061600c rsbhi r6, r1, ip <== NOT EXECUTED
} else {
delta_interval = 0;
}
first_watchdog->delta_interval = delta_interval;
a0018804: e5836010 str r6, [r3, #16] <== NOT EXECUTED
}
ts->Interval_watchdogs.last_snapshot = snapshot;
a0018808: e584203c str r2, [r4, #60] ; 0x3c <== NOT EXECUTED a001880c: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
_ISR_Enable( level );
_Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
a0018810: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED a0018814: e2851010 add r1, r5, #16 <== NOT EXECUTED a0018818: eb00109b bl a001ca8c <_Watchdog_Insert> <== NOT EXECUTED
if ( !ts->active ) {
a001881c: e5d4307c ldrb r3, [r4, #124] ; 0x7c <== NOT EXECUTED a0018820: e3530000 cmp r3, #0 <== NOT EXECUTED a0018824: 1a00001f bne a00188a8 <_Timer_server_Schedule_operation_method+0xfc><== NOT EXECUTED
_Timer_server_Reset_interval_system_watchdog( ts );
a0018828: e1a00004 mov r0, r4 <== NOT EXECUTED a001882c: ebffff4a bl a001855c <_Timer_server_Reset_interval_system_watchdog><== NOT EXECUTED a0018830: ea00001c b a00188a8 <_Timer_server_Schedule_operation_method+0xfc><== NOT EXECUTED
}
} else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {
a0018834: e3530003 cmp r3, #3 <== NOT EXECUTED a0018838: 1a00001a bne a00188a8 <_Timer_server_Schedule_operation_method+0xfc><== NOT EXECUTED
/*
* We have to advance the last known seconds value of the server and update
* the watchdog chain accordingly.
*/
_ISR_Disable( level );
a001883c: ebffff3c bl a0018534 <arm_interrupt_disable> <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
a0018840: e5942068 ldr r2, [r4, #104] ; 0x68 <== 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();
a0018844: e59f3074 ldr r3, [pc, #116] ; a00188c0 <_Timer_server_Schedule_operation_method+0x114><== NOT EXECUTED a0018848: e284c06c add ip, r4, #108 ; 0x6c <== NOT EXECUTED
last_snapshot = ts->TOD_watchdogs.last_snapshot;
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
a001884c: e152000c cmp r2, ip <== 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();
a0018850: e5933000 ldr r3, [r3] <== NOT EXECUTED
last_snapshot = ts->TOD_watchdogs.last_snapshot;
a0018854: e5941074 ldr r1, [r4, #116] ; 0x74 <== NOT EXECUTED
if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {
a0018858: 0a000008 beq a0018880 <_Timer_server_Schedule_operation_method+0xd4><== NOT EXECUTED
first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );
delta_interval = first_watchdog->delta_interval;
a001885c: e592c010 ldr ip, [r2, #16] <== NOT EXECUTED
if ( snapshot > last_snapshot ) {
a0018860: e1530001 cmp r3, r1 <== NOT EXECUTED
}
} else {
/*
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
a0018864: 908c6001 addls r6, ip, r1 <== NOT EXECUTED
delta_interval += delta;
a0018868: 90636006 rsbls r6, r3, r6 <== 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 ) {
a001886c: 9a000002 bls a001887c <_Timer_server_Schedule_operation_method+0xd0><== NOT EXECUTED
/*
* We advanced in time.
*/
delta = snapshot - last_snapshot;
a0018870: e0611003 rsb r1, r1, r3 <== NOT EXECUTED
if (delta_interval > delta) {
a0018874: e15c0001 cmp ip, r1 <== NOT EXECUTED
delta_interval -= delta;
a0018878: 8061600c rsbhi r6, r1, ip <== NOT EXECUTED
* Someone put us in the past.
*/
delta = last_snapshot - snapshot;
delta_interval += delta;
}
first_watchdog->delta_interval = delta_interval;
a001887c: e5826010 str r6, [r2, #16] <== NOT EXECUTED
}
ts->TOD_watchdogs.last_snapshot = snapshot;
a0018880: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED a0018884: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
_ISR_Enable( level );
_Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );
a0018888: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED a001888c: e2851010 add r1, r5, #16 <== NOT EXECUTED a0018890: eb00107d bl a001ca8c <_Watchdog_Insert> <== NOT EXECUTED
if ( !ts->active ) {
a0018894: e5d4307c ldrb r3, [r4, #124] ; 0x7c <== NOT EXECUTED a0018898: e3530000 cmp r3, #0 <== NOT EXECUTED a001889c: 1a000001 bne a00188a8 <_Timer_server_Schedule_operation_method+0xfc><== NOT EXECUTED
_Timer_server_Reset_tod_system_watchdog( ts );
a00188a0: e1a00004 mov r0, r4 <== NOT EXECUTED a00188a4: ebffff40 bl a00185ac <_Timer_server_Reset_tod_system_watchdog><== 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 );
}
}
a00188a8: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED
if ( !ts->active ) {
_Timer_server_Reset_tod_system_watchdog( ts );
}
}
_Thread_Enable_dispatch();
a00188ac: ea000c6d b a001ba68 <_Thread_Enable_dispatch> <== 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 );
a00188b0: e5900078 ldr r0, [r0, #120] ; 0x78 <== NOT EXECUTED
} }
a00188b4: e8bd4070 pop {r4, r5, r6, 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 );
a00188b8: ea000207 b a00190dc <_Chain_Append> <== NOT EXECUTED
a000c21c <_Timespec_Add_to>:
uint32_t _Timespec_Add_to(
struct timespec *time,
const struct timespec *add
)
{
a000c21c: e1a03000 mov r3, r0
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
a000c220: e5932000 ldr r2, [r3]
uint32_t _Timespec_Add_to(
struct timespec *time,
const struct timespec *add
)
{
uint32_t seconds = add->tv_sec;
a000c224: e5910000 ldr r0, [r1]
/* Add the basics */
time->tv_sec += add->tv_sec;
time->tv_nsec += add->tv_nsec;
a000c228: e593c004 ldr ip, [r3, #4]
)
{
uint32_t seconds = add->tv_sec;
/* Add the basics */
time->tv_sec += add->tv_sec;
a000c22c: e0822000 add r2, r2, r0 a000c230: e5832000 str r2, [r3]
time->tv_nsec += add->tv_nsec;
a000c234: e5912004 ldr r2, [r1, #4] a000c238: e08c2002 add r2, ip, r2 a000c23c: e5832004 str r2, [r3, #4]
/* Now adjust it so nanoseconds is in range */
while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
a000c240: e59fc02c ldr ip, [pc, #44] ; a000c274 <_Timespec_Add_to+0x58> a000c244: ea000006 b a000c264 <_Timespec_Add_to+0x48>
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
a000c248: e59f2028 ldr r2, [pc, #40] ; a000c278 <_Timespec_Add_to+0x5c><== NOT EXECUTED
time->tv_sec++;
seconds++;
a000c24c: e2800001 add r0, r0, #1 <== NOT EXECUTED
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 ) {
time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
a000c250: e0812002 add r2, r1, r2 <== NOT EXECUTED a000c254: e5832004 str r2, [r3, #4] <== NOT EXECUTED
time->tv_sec++;
a000c258: e5932000 ldr r2, [r3] <== NOT EXECUTED a000c25c: e2822001 add r2, r2, #1 <== NOT EXECUTED a000c260: e5832000 str r2, [r3] <== 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 ) {
a000c264: e5931004 ldr r1, [r3, #4] a000c268: e151000c cmp r1, ip
a000c26c: 8afffff5 bhi a000c248 <_Timespec_Add_to+0x2c>
time->tv_sec++;
seconds++;
}
return seconds;
}
a000c270: e12fff1e bx lr
a000dd44 <_Timespec_Divide>:
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
a000dd44: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a000dd48: e1a05002 mov r5, r2 <== NOT EXECUTED
* 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;
a000dd4c: e5912004 ldr r2, [r1, #4] <== NOT EXECUTED
* 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;
a000dd50: e5917000 ldr r7, [r1] <== NOT EXECUTED
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
left = lhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
a000dd54: e590c000 ldr ip, [r0] <== NOT EXECUTED
left += lhs->tv_nsec;
a000dd58: e5906004 ldr r6, [r0, #4] <== NOT EXECUTED
right = rhs->tv_sec * (uint64_t)TOD_NANOSECONDS_PER_SECOND;
a000dd5c: e59f0068 ldr r0, [pc, #104] ; a000ddcc <_Timespec_Divide+0x88><== NOT EXECUTED
const struct timespec *lhs,
const struct timespec *rhs,
uint32_t *ival_percentage,
uint32_t *fval_percentage
)
{
a000dd60: e1a04003 mov r4, r3 <== NOT EXECUTED
* 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;
a000dd64: e1a03fc2 asr r3, r2, #31 <== NOT EXECUTED a000dd68: e0e32790 smlal r2, r3, r0, r7 <== NOT EXECUTED
if ( right == 0 ) {
a000dd6c: e1921003 orrs r1, r2, r3 <== NOT EXECUTED a000dd70: 1a000002 bne a000dd80 <_Timespec_Divide+0x3c> <== NOT EXECUTED
*ival_percentage = 0;
a000dd74: e5851000 str r1, [r5] <== NOT EXECUTED
*fval_percentage = 0;
a000dd78: e5841000 str r1, [r4] <== NOT EXECUTED
return;
a000dd7c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
/* * 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;
a000dd80: e1a07fc6 asr r7, r6, #31 <== NOT EXECUTED a000dd84: e0e76c90 smlal r6, r7, r0, ip <== NOT EXECUTED
* Put it back in the timespec result.
*
* TODO: Rounding on the last digit of the fval.
*/
answer = (left * 100000) / right;
a000dd88: e59fc040 ldr ip, [pc, #64] ; a000ddd0 <_Timespec_Divide+0x8c><== NOT EXECUTED a000dd8c: e0810c96 umull r0, r1, r6, ip <== NOT EXECUTED a000dd90: e021179c mla r1, ip, r7, r1 <== NOT EXECUTED a000dd94: eb003f5e bl a001db14 <__udivdi3> <== NOT EXECUTED
*ival_percentage = answer / 1000;
a000dd98: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED a000dd9c: 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;
a000dda0: e1a07000 mov r7, r0 <== NOT EXECUTED a000dda4: e1a06001 mov r6, r1 <== NOT EXECUTED
*ival_percentage = answer / 1000;
a000dda8: eb003f59 bl a001db14 <__udivdi3> <== NOT EXECUTED
*fval_percentage = answer % 1000;
a000ddac: e1a01006 mov r1, r6 <== NOT EXECUTED
* TODO: Rounding on the last digit of the fval.
*/
answer = (left * 100000) / right;
*ival_percentage = answer / 1000;
a000ddb0: e5850000 str r0, [r5] <== NOT EXECUTED
*fval_percentage = answer % 1000;
a000ddb4: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED
a000ddb8: e1a00007 mov r0, r7 <== NOT EXECUTED
a000ddbc: e3a03000 mov r3, #0 <== NOT EXECUTED
a000ddc0: eb004065 bl a001df5c <__umoddi3> <== NOT EXECUTED
a000ddc4: e5840000 str r0, [r4] <== NOT EXECUTED
a000ddc8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000dd44 <_Timespec_Divide_by_integer>:
void _Timespec_Divide_by_integer(
const struct timespec *time,
uint32_t iterations,
struct timespec *result
)
{
a000dd44: e92d4070 push {r4, r5, r6, lr} <== 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;
a000dd48: e59fc06c ldr ip, [pc, #108] ; a000ddbc <_Timespec_Divide_by_integer+0x78><== NOT EXECUTED
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
t = time->tv_sec;
a000dd4c: e590e000 ldr lr, [r0] <== NOT EXECUTED
void _Timespec_Divide_by_integer(
const struct timespec *time,
uint32_t iterations,
struct timespec *result
)
{
a000dd50: e1a03001 mov r3, r1 <== NOT EXECUTED a000dd54: 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;
a000dd58: e0821c9e umull r1, r2, lr, ip <== NOT EXECUTED
/*
* For math simplicity just convert the timespec to nanoseconds
* in a 64-bit integer.
*/
t = time->tv_sec;
a000dd5c: e1a0500e mov r5, lr <== NOT EXECUTED a000dd60: e1a06fc5 asr r6, r5, #31 <== NOT EXECUTED
t *= TOD_NANOSECONDS_PER_SECOND; t += time->tv_nsec;
a000dd64: e5900004 ldr r0, [r0, #4] <== 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;
a000dd68: e022269c mla r2, ip, r6, r2 <== NOT EXECUTED
/*
* Divide to get nanoseconds per iteration
*/
t /= iterations;
a000dd6c: e0915000 adds r5, r1, r0 <== NOT EXECUTED a000dd70: e0a26fc0 adc r6, r2, r0, asr #31 <== NOT EXECUTED a000dd74: e1a01006 mov r1, r6 <== NOT EXECUTED a000dd78: e1a02003 mov r2, r3 <== NOT EXECUTED a000dd7c: e1a00005 mov r0, r5 <== NOT EXECUTED a000dd80: e3a03000 mov r3, #0 <== NOT EXECUTED a000dd84: eb003d9d bl a001d400 <__udivdi3> <== NOT EXECUTED
/*
* Put it back in the timespec result
*/
result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND;
a000dd88: e59f202c ldr r2, [pc, #44] ; a000ddbc <_Timespec_Divide_by_integer+0x78><== NOT EXECUTED a000dd8c: e3a03000 mov r3, #0 <== NOT EXECUTED
/*
* Divide to get nanoseconds per iteration
*/
t /= iterations;
a000dd90: e1a06000 mov r6, r0 <== NOT EXECUTED a000dd94: e1a05001 mov r5, r1 <== NOT EXECUTED
/*
* Put it back in the timespec result
*/
result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND;
a000dd98: eb003d98 bl a001d400 <__udivdi3> <== NOT EXECUTED
result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND;
a000dd9c: e1a01005 mov r1, r5 <== NOT EXECUTED
/*
* Put it back in the timespec result
*/
result->tv_sec = t / TOD_NANOSECONDS_PER_SECOND;
a000dda0: e5840000 str r0, [r4] <== NOT EXECUTED
result->tv_nsec = t % TOD_NANOSECONDS_PER_SECOND;
a000dda4: e59f2010 ldr r2, [pc, #16] ; a000ddbc <_Timespec_Divide_by_integer+0x78><== NOT EXECUTED a000dda8: e1a00006 mov r0, r6 <== NOT EXECUTED a000ddac: e3a03000 mov r3, #0 <== NOT EXECUTED a000ddb0: eb003ea4 bl a001d848 <__umoddi3> <== NOT EXECUTED a000ddb4: e5840004 str r0, [r4, #4] <== NOT EXECUTED
}
a000ddb8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0021a18 <_Timespec_From_ticks>:
struct timespec *time
)
{
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
a0021a18: e59f3038 ldr r3, [pc, #56] ; a0021a58 <_Timespec_From_ticks+0x40><== NOT EXECUTED
void _Timespec_From_ticks(
uint32_t ticks,
struct timespec *time
)
{
a0021a1c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
a0021a20: e593500c ldr r5, [r3, #12] <== NOT EXECUTED
void _Timespec_From_ticks(
uint32_t ticks,
struct timespec *time
)
{
a0021a24: e1a04001 mov r4, r1 <== NOT EXECUTED
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND;
a0021a28: e59f102c ldr r1, [pc, #44] ; a0021a5c <_Timespec_From_ticks+0x44><== NOT EXECUTED
struct timespec *time
)
{
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
a0021a2c: e0050590 mul r5, r0, r5 <== NOT EXECUTED
time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND;
a0021a30: e1a00005 mov r0, r5 <== NOT EXECUTED a0021a34: ebfff689 bl a001f460 <__aeabi_uidiv> <== NOT EXECUTED
time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) *
a0021a38: e59f101c ldr r1, [pc, #28] ; a0021a5c <_Timespec_From_ticks+0x44><== NOT EXECUTED
{
uint32_t usecs;
usecs = ticks * rtems_configuration_get_microseconds_per_tick();
time->tv_sec = usecs / TOD_MICROSECONDS_PER_SECOND;
a0021a3c: e5840000 str r0, [r4] <== NOT EXECUTED
time->tv_nsec = (usecs % TOD_MICROSECONDS_PER_SECOND) *
a0021a40: e1a00005 mov r0, r5 <== NOT EXECUTED a0021a44: ebfff71d bl a001f6c0 <__umodsi3> <== NOT EXECUTED a0021a48: e3a03ffa mov r3, #1000 ; 0x3e8 <== NOT EXECUTED a0021a4c: e0030390 mul r3, r0, r3 <== NOT EXECUTED a0021a50: e5843004 str r3, [r4, #4] <== NOT EXECUTED
TOD_NANOSECONDS_PER_MICROSECOND;
}
a0021a54: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000cc14 <_Timespec_Greater_than>:
bool _Timespec_Greater_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec > rhs->tv_sec )
a000cc14: e5902000 ldr r2, [r0] <== NOT EXECUTED a000cc18: e5913000 ldr r3, [r1] <== NOT EXECUTED a000cc1c: e1520003 cmp r2, r3 <== NOT EXECUTED
return true;
a000cc20: c3a00001 movgt r0, #1 <== NOT EXECUTED
bool _Timespec_Greater_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec > rhs->tv_sec )
a000cc24: c12fff1e bxgt lr <== NOT EXECUTED
return true;
if ( lhs->tv_sec < rhs->tv_sec )
a000cc28: ba000005 blt a000cc44 <_Timespec_Greater_than+0x30> <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Greater_than(
a000cc2c: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED a000cc30: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED a000cc34: e1500003 cmp r0, r3 <== NOT EXECUTED a000cc38: d3a00000 movle r0, #0 <== NOT EXECUTED a000cc3c: c3a00001 movgt r0, #1 <== NOT EXECUTED a000cc40: e12fff1e bx lr <== NOT EXECUTED
{
if ( lhs->tv_sec > rhs->tv_sec )
return true;
if ( lhs->tv_sec < rhs->tv_sec )
return false;
a000cc44: e3a00000 mov r0, #0 <== NOT EXECUTED
/* ASSERT: lhs->tv_sec == rhs->tv_sec */
if ( lhs->tv_nsec > rhs->tv_nsec )
return true;
return false;
}
a000cc48: e12fff1e bx lr <== NOT EXECUTED
a0021a60 <_Timespec_Is_valid>:
bool _Timespec_Is_valid(
const struct timespec *time
)
{
if ( !time )
a0021a60: e3500000 cmp r0, #0 <== NOT EXECUTED a0021a64: 012fff1e bxeq lr <== NOT EXECUTED
return false;
if ( time->tv_sec < 0 )
a0021a68: e5903000 ldr r3, [r0] <== NOT EXECUTED a0021a6c: e3530000 cmp r3, #0 <== NOT EXECUTED
return false;
a0021a70: b3a00000 movlt r0, #0 <== NOT EXECUTED
)
{
if ( !time )
return false;
if ( time->tv_sec < 0 )
a0021a74: b12fff1e bxlt lr <== NOT EXECUTED
return false;
if ( time->tv_nsec < 0 )
a0021a78: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED a0021a7c: e3530000 cmp r3, #0 <== NOT EXECUTED a0021a80: ba000004 blt a0021a98 <_Timespec_Is_valid+0x38> <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Is_valid(
a0021a84: e59f0014 ldr r0, [pc, #20] ; a0021aa0 <_Timespec_Is_valid+0x40><== NOT EXECUTED a0021a88: e1530000 cmp r3, r0 <== NOT EXECUTED a0021a8c: 83a00000 movhi r0, #0 <== NOT EXECUTED a0021a90: 93a00001 movls r0, #1 <== NOT EXECUTED a0021a94: e12fff1e bx lr <== NOT EXECUTED
if ( time->tv_sec < 0 )
return false;
if ( time->tv_nsec < 0 )
return false;
a0021a98: e3a00000 mov r0, #0 <== NOT EXECUTED
if ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND )
return false;
return true;
}
a0021a9c: e12fff1e bx lr <== NOT EXECUTED
a000f770 <_Timespec_Less_than>:
bool _Timespec_Less_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec < rhs->tv_sec )
a000f770: e5902000 ldr r2, [r0] <== NOT EXECUTED a000f774: e5913000 ldr r3, [r1] <== NOT EXECUTED a000f778: e1520003 cmp r2, r3 <== NOT EXECUTED
return true;
a000f77c: b3a00001 movlt r0, #1 <== NOT EXECUTED
bool _Timespec_Less_than(
const struct timespec *lhs,
const struct timespec *rhs
)
{
if ( lhs->tv_sec < rhs->tv_sec )
a000f780: b12fff1e bxlt lr <== NOT EXECUTED
return true;
if ( lhs->tv_sec > rhs->tv_sec )
a000f784: ca000005 bgt a000f7a0 <_Timespec_Less_than+0x30> <== NOT EXECUTED
#include <rtems/system.h>
#include <rtems/score/timespec.h>
#include <rtems/score/tod.h>
bool _Timespec_Less_than(
a000f788: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED a000f78c: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED a000f790: e1500003 cmp r0, r3 <== NOT EXECUTED a000f794: a3a00000 movge r0, #0 <== NOT EXECUTED a000f798: b3a00001 movlt r0, #1 <== NOT EXECUTED a000f79c: e12fff1e bx lr <== NOT EXECUTED
{
if ( lhs->tv_sec < rhs->tv_sec )
return true;
if ( lhs->tv_sec > rhs->tv_sec )
return false;
a000f7a0: e3a00000 mov r0, #0 <== NOT EXECUTED
/* ASSERT: lhs->tv_sec == rhs->tv_sec */
if ( lhs->tv_nsec < rhs->tv_nsec )
return true;
return false;
}
a000f7a4: e12fff1e bx lr <== NOT EXECUTED
a000c27c <_Timespec_Subtract>:
const struct timespec *end,
struct timespec *result
)
{
if (end->tv_nsec < start->tv_nsec) {
a000c27c: e591c004 ldr ip, [r1, #4] <== NOT EXECUTED a000c280: e5903004 ldr r3, [r0, #4] <== NOT EXECUTED
void _Timespec_Subtract(
const struct timespec *start,
const struct timespec *end,
struct timespec *result
)
{
a000c284: e92d4010 push {r4, lr} <== NOT EXECUTED
a000c288: e5914000 ldr r4, [r1] <== NOT EXECUTED
a000c28c: e5901000 ldr r1, [r0] <== NOT EXECUTED
if (end->tv_nsec < start->tv_nsec) {
a000c290: e15c0003 cmp ip, r3 <== NOT EXECUTED
result->tv_sec = end->tv_sec - start->tv_sec - 1;
a000c294: b2444001 sublt r4, r4, #1 <== NOT EXECUTED a000c298: b0611004 rsblt r1, r1, r4 <== NOT EXECUTED a000c29c: b5821000 strlt r1, [r2] <== NOT EXECUTED
result->tv_nsec =
(TOD_NANOSECONDS_PER_SECOND - start->tv_nsec) + end->tv_nsec;
a000c2a0: b59f1018 ldrlt r1, [pc, #24] ; a000c2c0 <_Timespec_Subtract+0x44><== NOT EXECUTED
} else {
result->tv_sec = end->tv_sec - start->tv_sec;
a000c2a4: a0611004 rsbge r1, r1, r4 <== NOT EXECUTED
result->tv_nsec = end->tv_nsec - start->tv_nsec;
a000c2a8: a063300c rsbge 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;
a000c2ac: b08c1001 addlt r1, ip, r1 <== NOT EXECUTED a000c2b0: b0633001 rsblt r3, r3, r1 <== NOT EXECUTED
} else {
result->tv_sec = end->tv_sec - start->tv_sec;
a000c2b4: a5821000 strge r1, [r2] <== NOT EXECUTED
result->tv_nsec = end->tv_nsec - start->tv_nsec;
a000c2b8: e5823004 str r3, [r2, #4] <== NOT EXECUTED
a000c2bc: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000f69c <_Timespec_To_ticks>:
*/
uint32_t _Timespec_To_ticks(
const struct timespec *time
)
{
a000f69c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
uint32_t ticks;
if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
a000f6a0: e5906000 ldr r6, [r0] <== NOT EXECUTED
*/
uint32_t _Timespec_To_ticks(
const struct timespec *time
)
{
a000f6a4: e1a05000 mov r5, r0 <== NOT EXECUTED
uint32_t ticks;
if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
a000f6a8: e3560000 cmp r6, #0 <== NOT EXECUTED a000f6ac: 1a000002 bne a000f6bc <_Timespec_To_ticks+0x20> <== NOT EXECUTED a000f6b0: e5900004 ldr r0, [r0, #4] <== NOT EXECUTED a000f6b4: e3500000 cmp r0, #0 <== NOT EXECUTED a000f6b8: 0a000009 beq a000f6e4 <_Timespec_To_ticks+0x48> <== NOT EXECUTED
return 0;
ticks = time->tv_sec * TOD_TICKS_PER_SECOND;
a000f6bc: eb0005f4 bl a0010e94 <TOD_TICKS_PER_SECOND_method> <== NOT EXECUTED
ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick();
a000f6c0: e59f3020 ldr r3, [pc, #32] ; a000f6e8 <_Timespec_To_ticks+0x4c><== NOT EXECUTED a000f6c4: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED
uint32_t ticks;
if ( (time->tv_sec == 0) && (time->tv_nsec == 0) )
return 0;
ticks = time->tv_sec * TOD_TICKS_PER_SECOND;
a000f6c8: e0040096 mul r4, r6, r0 <== NOT EXECUTED
ticks += time->tv_nsec / rtems_configuration_get_nanoseconds_per_tick();
a000f6cc: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000f6d0: e5950004 ldr r0, [r5, #4] <== NOT EXECUTED a000f6d4: e0010193 mul r1, r3, r1 <== NOT EXECUTED a000f6d8: eb001426 bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED
if (ticks)
a000f6dc: e0940000 adds r0, r4, r0 <== NOT EXECUTED
return ticks;
return 1;
a000f6e0: 03a00001 moveq r0, #1 <== NOT EXECUTED
}
a000f6e4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000da7c <_User_extensions_Remove_set>:
#include <rtems/score/userext.h>
void _User_extensions_Remove_set (
User_extensions_Control *the_extension
)
{
a000da7c: e92d4010 push {r4, lr} <== NOT EXECUTED
a000da80: e1a04000 mov r4, r0 <== NOT EXECUTED
_Chain_Extract( &the_extension->Node );
a000da84: ebfff668 bl a000b42c <_Chain_Extract> <== NOT EXECUTED
/*
* If a switch handler is present, remove it.
*/
if ( the_extension->Callouts.thread_switch != NULL )
a000da88: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a000da8c: e3530000 cmp r3, #0 <== NOT EXECUTED a000da90: 0a000002 beq a000daa0 <_User_extensions_Remove_set+0x24> <== NOT EXECUTED
_Chain_Extract( &the_extension->Switch.Node );
a000da94: e2840008 add r0, r4, #8 <== NOT EXECUTED
}
a000da98: 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 );
a000da9c: eafff662 b a000b42c <_Chain_Extract> <== NOT EXECUTED
a000daa0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000c368 <_User_extensions_Thread_begin>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_begin (
Thread_Control *executing
)
{
a000c368: e92d4070 push {r4, r5, r6, lr}
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
}
}
a000c36c: e59f502c ldr r5, [pc, #44] ; a000c3a0 <_User_extensions_Thread_begin+0x38>
#include <rtems/score/userext.h>
void _User_extensions_Thread_begin (
Thread_Control *executing
)
{
a000c370: e1a06000 mov r6, r0
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.fatal != NULL )
(*the_extension->Callouts.fatal)( the_source, is_internal, the_error );
}
}
a000c374: e4954004 ldr r4, [r5], #4
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_First( &_User_extensions_List );
a000c378: ea000005 b a000c394 <_User_extensions_Thread_begin+0x2c>
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_begin != NULL )
a000c37c: e5943028 ldr r3, [r4, #40] ; 0x28 a000c380: e3530000 cmp r3, #0
a000c384: 0a000001 beq a000c390 <_User_extensions_Thread_begin+0x28>
(*the_extension->Callouts.thread_begin)( executing );
a000c388: e1a00006 mov r0, r6 <== NOT EXECUTED a000c38c: e12fff33 blx r3 <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_First( &_User_extensions_List );
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
a000c390: e5944000 ldr r4, [r4]
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_First( &_User_extensions_List );
a000c394: e1540005 cmp r4, r5
a000c398: 1afffff7 bne a000c37c <_User_extensions_Thread_begin+0x14>
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_begin != NULL )
(*the_extension->Callouts.thread_begin)( executing );
}
}
a000c39c: e8bd8070 pop {r4, r5, r6, pc}
a000c480 <_User_extensions_Thread_delete>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
a000c480: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
(*the_extension->Callouts.thread_delete)(
_Thread_Executing,
the_thread
);
}
}
a000c484: e59f6034 ldr r6, [pc, #52] ; a000c4c0 <_User_extensions_Thread_delete+0x40><== NOT EXECUTED
#include <rtems/score/userext.h>
void _User_extensions_Thread_delete (
Thread_Control *the_thread
)
{
a000c488: e1a07000 mov r7, r0 <== NOT EXECUTED
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_delete != NULL )
(*the_extension->Callouts.thread_delete)(
a000c48c: e59f5030 ldr r5, [pc, #48] ; a000c4c4 <_User_extensions_Thread_delete+0x44><== NOT EXECUTED
_Thread_Executing,
the_thread
);
}
}
a000c490: e5964008 ldr r4, [r6, #8] <== NOT EXECUTED
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
a000c494: ea000006 b a000c4b4 <_User_extensions_Thread_delete+0x34> <== NOT EXECUTED
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_delete != NULL )
a000c498: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a000c49c: e3530000 cmp r3, #0 <== NOT EXECUTED a000c4a0: 0a000002 beq a000c4b0 <_User_extensions_Thread_delete+0x30><== NOT EXECUTED
(*the_extension->Callouts.thread_delete)(
a000c4a4: e5950004 ldr r0, [r5, #4] <== NOT EXECUTED a000c4a8: e1a01007 mov r1, r7 <== NOT EXECUTED a000c4ac: e12fff33 blx r3 <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
!_Chain_Is_head( &_User_extensions_List, the_node ) ;
the_node = the_node->previous ) {
a000c4b0: e5944004 ldr r4, [r4, #4] <== NOT EXECUTED
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_Last( &_User_extensions_List );
a000c4b4: e1540006 cmp r4, r6 <== NOT EXECUTED a000c4b8: 1afffff6 bne a000c498 <_User_extensions_Thread_delete+0x18><== NOT EXECUTED
(*the_extension->Callouts.thread_delete)(
_Thread_Executing,
the_thread
);
}
}
a000c4bc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000d1ec <_User_extensions_Thread_restart>:
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
a000d1ec: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
(*the_extension->Callouts.thread_restart)(
_Thread_Executing,
the_thread
);
}
}
a000d1f0: e59f5034 ldr r5, [pc, #52] ; a000d22c <_User_extensions_Thread_restart+0x40><== NOT EXECUTED
#include <rtems/score/userext.h>
void _User_extensions_Thread_restart (
Thread_Control *the_thread
)
{
a000d1f4: e1a07000 mov r7, r0 <== NOT EXECUTED
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_restart != NULL )
(*the_extension->Callouts.thread_restart)(
a000d1f8: e59f6030 ldr r6, [pc, #48] ; a000d230 <_User_extensions_Thread_restart+0x44><== NOT EXECUTED
_Thread_Executing,
the_thread
);
}
}
a000d1fc: e4954004 ldr r4, [r5], #4 <== NOT EXECUTED
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_First( &_User_extensions_List );
a000d200: ea000006 b a000d220 <_User_extensions_Thread_restart+0x34> <== NOT EXECUTED
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
the_extension = (User_extensions_Control *) the_node;
if ( the_extension->Callouts.thread_restart != NULL )
a000d204: e594301c ldr r3, [r4, #28] <== NOT EXECUTED a000d208: e3530000 cmp r3, #0 <== NOT EXECUTED a000d20c: 0a000002 beq a000d21c <_User_extensions_Thread_restart+0x30><== NOT EXECUTED
(*the_extension->Callouts.thread_restart)(
a000d210: e5960004 ldr r0, [r6, #4] <== NOT EXECUTED a000d214: e1a01007 mov r1, r7 <== NOT EXECUTED a000d218: e12fff33 blx r3 <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_First( &_User_extensions_List );
!_Chain_Is_tail( &_User_extensions_List, the_node ) ;
the_node = the_node->next ) {
a000d21c: e5944000 ldr r4, [r4] <== NOT EXECUTED
)
{
Chain_Node *the_node;
User_extensions_Control *the_extension;
for ( the_node = _Chain_First( &_User_extensions_List );
a000d220: e1540005 cmp r4, r5 <== NOT EXECUTED a000d224: 1afffff6 bne a000d204 <_User_extensions_Thread_restart+0x18><== NOT EXECUTED
(*the_extension->Callouts.thread_restart)(
_Thread_Executing,
the_thread
);
}
}
a000d228: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000c510 <_User_extensions_Thread_switch>:
void _User_extensions_Thread_switch (
Thread_Control *executing,
Thread_Control *heir
)
{
a000c510: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
the_extension_switch = (User_extensions_Switch_control *) the_node;
(*the_extension_switch->thread_switch)( executing, heir );
}
}
a000c514: e59f502c ldr r5, [pc, #44] ; a000c548 <_User_extensions_Thread_switch+0x38><== NOT EXECUTED
void _User_extensions_Thread_switch (
Thread_Control *executing,
Thread_Control *heir
)
{
a000c518: e1a07000 mov r7, r0 <== NOT EXECUTED a000c51c: e1a06001 mov r6, r1 <== NOT EXECUTED
the_extension_switch = (User_extensions_Switch_control *) the_node;
(*the_extension_switch->thread_switch)( executing, heir );
}
}
a000c520: e4954004 ldr r4, [r5], #4 <== NOT EXECUTED
)
{
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _Chain_First( &_User_extensions_Switches_list );
a000c524: ea000004 b a000c53c <_User_extensions_Thread_switch+0x2c> <== NOT EXECUTED
!_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
the_node = the_node->next ) {
the_extension_switch = (User_extensions_Switch_control *) the_node;
(*the_extension_switch->thread_switch)( executing, heir );
a000c528: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000c52c: e1a00007 mov r0, r7 <== NOT EXECUTED a000c530: e1a01006 mov r1, r6 <== NOT EXECUTED a000c534: e12fff33 blx r3 <== NOT EXECUTED
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _Chain_First( &_User_extensions_Switches_list );
!_Chain_Is_tail( &_User_extensions_Switches_list, the_node ) ;
the_node = the_node->next ) {
a000c538: e5944000 ldr r4, [r4] <== NOT EXECUTED
)
{
Chain_Node *the_node;
User_extensions_Switch_control *the_extension_switch;
for ( the_node = _Chain_First( &_User_extensions_Switches_list );
a000c53c: e1540005 cmp r4, r5 <== NOT EXECUTED a000c540: 1afffff8 bne a000c528 <_User_extensions_Thread_switch+0x18><== NOT EXECUTED
the_extension_switch = (User_extensions_Switch_control *) the_node;
(*the_extension_switch->thread_switch)( executing, heir );
}
}
a000c544: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000e0e4 <_Watchdog_Adjust>:
void _Watchdog_Adjust(
Chain_Control *header,
Watchdog_Adjust_directions direction,
Watchdog_Interval units
)
{
a000e0e4: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a000e0e8: e1a04000 mov r4, r0 <== NOT EXECUTED
a000e0ec: e1a05002 mov r5, r2 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000e0f0: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000e0f4: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a000e0f8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
}
}
_ISR_Enable( level );
}
a000e0fc: e1a06000 mov r6, r0 <== NOT EXECUTED a000e100: e4962004 ldr r2, [r6], #4 <== NOT EXECUTED
* hence the compiler must not assume *header to remain
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
a000e104: e1520006 cmp r2, r6 <== NOT EXECUTED a000e108: 0a00001b beq a000e17c <_Watchdog_Adjust+0x98> <== NOT EXECUTED
switch ( direction ) {
a000e10c: e3510000 cmp r1, #0 <== NOT EXECUTED
if ( units < _Watchdog_First( header )->delta_interval ) {
_Watchdog_First( header )->delta_interval -= units;
break;
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
a000e110: 03a08001 moveq r8, #1 <== NOT EXECUTED
* unmodified across that call.
*
* Till Straumann, 7/2003
*/
if ( !_Chain_Is_empty( header ) ) {
switch ( direction ) {
a000e114: 0a000016 beq a000e174 <_Watchdog_Adjust+0x90> <== NOT EXECUTED a000e118: e3510001 cmp r1, #1 <== NOT EXECUTED a000e11c: 1a000016 bne a000e17c <_Watchdog_Adjust+0x98> <== NOT EXECUTED
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
a000e120: e5921010 ldr r1, [r2, #16] <== NOT EXECUTED a000e124: e0815005 add r5, r1, r5 <== NOT EXECUTED a000e128: ea000004 b a000e140 <_Watchdog_Adjust+0x5c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(
Chain_Control *header
)
{
return ( (Watchdog_Control *) _Chain_First( header ) );
a000e12c: e5942000 ldr r2, [r4] <== NOT EXECUTED
break;
case WATCHDOG_FORWARD:
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
a000e130: e5927010 ldr r7, [r2, #16] <== NOT EXECUTED a000e134: e1550007 cmp r5, r7 <== NOT EXECUTED a000e138: 2a000002 bcs a000e148 <_Watchdog_Adjust+0x64> <== NOT EXECUTED
_Watchdog_First( header )->delta_interval -= units;
a000e13c: e0655007 rsb r5, r5, r7 <== NOT EXECUTED a000e140: e5825010 str r5, [r2, #16] <== NOT EXECUTED
break;
a000e144: ea00000c b a000e17c <_Watchdog_Adjust+0x98> <== NOT EXECUTED
} else {
units -= _Watchdog_First( header )->delta_interval;
_Watchdog_First( header )->delta_interval = 1;
a000e148: e5828010 str r8, [r2, #16] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000e14c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
_Watchdog_Tickle( header );
a000e150: e1a00004 mov r0, r4 <== NOT EXECUTED a000e154: eb00008b bl a000e388 <_Watchdog_Tickle> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000e158: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000e15c: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a000e160: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_ISR_Disable( level );
if ( _Chain_Is_empty( header ) )
a000e164: e5942000 ldr r2, [r4] <== NOT EXECUTED a000e168: e1520006 cmp r2, r6 <== NOT EXECUTED a000e16c: 0a000002 beq a000e17c <_Watchdog_Adjust+0x98> <== NOT EXECUTED
while ( units ) {
if ( units < _Watchdog_First( header )->delta_interval ) {
_Watchdog_First( header )->delta_interval -= units;
break;
} else {
units -= _Watchdog_First( header )->delta_interval;
a000e170: e0675005 rsb r5, r7, r5 <== NOT EXECUTED
switch ( direction ) {
case WATCHDOG_BACKWARD:
_Watchdog_First( header )->delta_interval += units;
break;
case WATCHDOG_FORWARD:
while ( units ) {
a000e174: e3550000 cmp r5, #0 <== NOT EXECUTED a000e178: 1affffeb bne a000e12c <_Watchdog_Adjust+0x48> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000e17c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
}
}
_ISR_Enable( level );
}
a000e180: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a001c9e0 <_Watchdog_Adjust_to_chain>:
{
Watchdog_Interval units = units_arg;
ISR_Level level;
Watchdog_Control *first;
if ( units <= 0 ) {
a001c9e0: e3510000 cmp r1, #0 <== NOT EXECUTED
Chain_Control *header,
Watchdog_Interval units_arg,
Chain_Control *to_fire
)
{
a001c9e4: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
Watchdog_Interval units = units_arg;
ISR_Level level;
Watchdog_Control *first;
if ( units <= 0 ) {
a001c9e8: 0a000026 beq a001ca88 <_Watchdog_Adjust_to_chain+0xa8> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a001c9ec: e10f5000 mrs r5, CPSR <== NOT EXECUTED a001c9f0: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a001c9f4: e129f003 msr CPSR_fc, r3 <== 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;
a001c9f8: e3a08000 mov r8, #0 <== 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 );
a001c9fc: e2806004 add r6, r0, #4 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
a001ca00: e2827004 add r7, r2, #4 <== NOT EXECUTED a001ca04: ea000001 b a001ca10 <_Watchdog_Adjust_to_chain+0x30> <== NOT EXECUTED
}
_ISR_Disable( level );
while ( 1 ) {
if ( units <= 0 ) {
a001ca08: e3510000 cmp r1, #0 <== NOT EXECUTED a001ca0c: 0a00001c beq a001ca84 <_Watchdog_Adjust_to_chain+0xa4> <== NOT EXECUTED
break;
}
}
_ISR_Enable( level );
}
a001ca10: e590c000 ldr ip, [r0] <== NOT EXECUTED
while ( 1 ) {
if ( units <= 0 ) {
break;
}
if ( _Chain_Is_empty( header ) ) {
a001ca14: e15c0006 cmp ip, r6 <== NOT EXECUTED a001ca18: 0a000019 beq a001ca84 <_Watchdog_Adjust_to_chain+0xa4> <== 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 ) {
a001ca1c: e59c4010 ldr r4, [ip, #16] <== NOT EXECUTED a001ca20: e1a0300c mov r3, ip <== NOT EXECUTED a001ca24: e1510004 cmp r1, r4 <== NOT EXECUTED
first->delta_interval -= units;
a001ca28: 30611004 rsbcc r1, r1, r4 <== NOT EXECUTED a001ca2c: 358c1010 strcc r1, [ip, #16] <== NOT EXECUTED
break;
a001ca30: 3a000013 bcc a001ca84 <_Watchdog_Adjust_to_chain+0xa4> <== 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;
a001ca34: e0641001 rsb r1, r4, r1 <== NOT EXECUTED
first->delta_interval = 0;
a001ca38: e58c8010 str r8, [ip, #16] <== NOT EXECUTED
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
a001ca3c: e8931010 ldm r3, {r4, ip} <== NOT EXECUTED
next->previous = previous;
a001ca40: e584c004 str ip, [r4, #4] <== NOT EXECUTED
previous->next = next;
a001ca44: e58c4000 str r4, [ip] <== NOT EXECUTED
Chain_Control *the_chain,
Chain_Node *the_node
)
{
Chain_Node *tail = _Chain_Tail( the_chain );
Chain_Node *old_last = tail->previous;
a001ca48: e592c008 ldr ip, [r2, #8] <== NOT EXECUTED
the_node->next = tail;
a001ca4c: e5837000 str r7, [r3] <== NOT EXECUTED
tail->previous = the_node;
a001ca50: e5823008 str r3, [r2, #8] <== NOT EXECUTED
old_last->next = the_node;
a001ca54: e58c3000 str r3, [ip] <== NOT EXECUTED
the_node->previous = old_last;
a001ca58: e583c004 str ip, [r3, #4] <== NOT EXECUTED
static inline void arm_interrupt_flash( uint32_t level )
{
uint32_t arm_switch_reg;
__asm__ volatile (
a001ca5c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a001ca60: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a001ca64: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
break;
}
}
_ISR_Enable( level );
}
a001ca68: 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 ) )
a001ca6c: e1530006 cmp r3, r6 <== NOT EXECUTED a001ca70: 0affffe4 beq a001ca08 <_Watchdog_Adjust_to_chain+0x28> <== NOT EXECUTED
break;
first = _Watchdog_First( header );
if ( first->delta_interval != 0 )
a001ca74: e593c010 ldr ip, [r3, #16] <== NOT EXECUTED a001ca78: e35c0000 cmp ip, #0 <== NOT EXECUTED a001ca7c: 0affffee beq a001ca3c <_Watchdog_Adjust_to_chain+0x5c> <== NOT EXECUTED a001ca80: eaffffe0 b a001ca08 <_Watchdog_Adjust_to_chain+0x28> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a001ca84: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
a001ca88: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000c54c <_Watchdog_Insert>:
Watchdog_Control *after;
uint32_t insert_isr_nest_level;
Watchdog_Interval delta_interval;
insert_isr_nest_level = _ISR_Nest_level;
a000c54c: e59f30f4 ldr r3, [pc, #244] ; a000c648 <_Watchdog_Insert+0xfc><== NOT EXECUTED
void _Watchdog_Insert(
Chain_Control *header,
Watchdog_Control *the_watchdog
)
{
a000c550: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
Watchdog_Control *after;
uint32_t insert_isr_nest_level;
Watchdog_Interval delta_interval;
insert_isr_nest_level = _ISR_Nest_level;
a000c554: e5934000 ldr r4, [r3] <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000c558: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000c55c: e38c3080 orr r3, ip, #128 ; 0x80 <== NOT EXECUTED a000c560: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
/*
* 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 ) {
a000c564: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED a000c568: e3530000 cmp r3, #0 <== NOT EXECUTED a000c56c: 0a000000 beq a000c574 <_Watchdog_Insert+0x28> <== NOT EXECUTED
_ISR_Enable( level );
a000c570: ea000032 b a000c640 <_Watchdog_Insert+0xf4> <== NOT EXECUTED
return;
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
a000c574: e3a03001 mov r3, #1 <== NOT EXECUTED a000c578: e5813008 str r3, [r1, #8] <== NOT EXECUTED
_Watchdog_Sync_count++;
a000c57c: e59f30c8 ldr r3, [pc, #200] ; a000c64c <_Watchdog_Insert+0x100><== NOT EXECUTED
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
a000c580: e59f60c8 ldr r6, [pc, #200] ; a000c650 <_Watchdog_Insert+0x104><== NOT EXECUTED
_ISR_Enable( level );
return;
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
_Watchdog_Sync_count++;
a000c584: e5932000 ldr r2, [r3] <== NOT EXECUTED
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
a000c588: e1a07006 mov r7, r6 <== NOT EXECUTED
_ISR_Enable( level );
return;
}
the_watchdog->state = WATCHDOG_BEING_INSERTED;
_Watchdog_Sync_count++;
a000c58c: e2822001 add r2, r2, #1 <== NOT EXECUTED a000c590: e5832000 str r2, [r3] <== NOT EXECUTED
restart:
delta_interval = the_watchdog->initial;
a000c594: e591200c ldr r2, [r1, #12] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(
Chain_Control *header
)
{
return ( (Watchdog_Control *) _Chain_First( header ) );
a000c598: e5903000 ldr r3, [r0] <== NOT EXECUTED
for ( after = _Watchdog_First( header ) ;
;
after = _Watchdog_Next( after ) ) {
if ( delta_interval == 0 || !_Watchdog_Next( after ) )
a000c59c: e3520000 cmp r2, #0 <== NOT EXECUTED a000c5a0: 0a000014 beq a000c5f8 <_Watchdog_Insert+0xac> <== NOT EXECUTED a000c5a4: e5935000 ldr r5, [r3] <== NOT EXECUTED a000c5a8: e3550000 cmp r5, #0 <== NOT EXECUTED a000c5ac: 0a000011 beq a000c5f8 <_Watchdog_Insert+0xac> <== NOT EXECUTED
break;
if ( delta_interval < after->delta_interval ) {
a000c5b0: e5935010 ldr r5, [r3, #16] <== NOT EXECUTED a000c5b4: e1520005 cmp r2, r5 <== NOT EXECUTED
after->delta_interval -= delta_interval;
a000c5b8: 30625005 rsbcc r5, r2, r5 <== NOT EXECUTED a000c5bc: 35835010 strcc r5, [r3, #16] <== NOT EXECUTED
break;
a000c5c0: 3a00000c bcc a000c5f8 <_Watchdog_Insert+0xac> <== NOT EXECUTED
static inline void arm_interrupt_flash( uint32_t level )
{
uint32_t arm_switch_reg;
__asm__ volatile (
a000c5c4: e10f8000 mrs r8, CPSR <== NOT EXECUTED a000c5c8: e129f00c msr CPSR_fc, ip <== NOT EXECUTED a000c5cc: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED
delta_interval -= after->delta_interval;
_ISR_Flash( level );
if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {
a000c5d0: e5918008 ldr r8, [r1, #8] <== NOT EXECUTED a000c5d4: e3580001 cmp r8, #1 <== NOT EXECUTED a000c5d8: 1a000012 bne a000c628 <_Watchdog_Insert+0xdc> <== NOT EXECUTED
goto exit_insert;
}
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
a000c5dc: e5968000 ldr r8, [r6] <== NOT EXECUTED a000c5e0: e1580004 cmp r8, r4 <== NOT EXECUTED
_Watchdog_Sync_level = insert_isr_nest_level;
a000c5e4: 85874000 strhi r4, [r7] <== NOT EXECUTED
goto restart;
a000c5e8: 8affffe9 bhi a000c594 <_Watchdog_Insert+0x48> <== NOT EXECUTED
if ( delta_interval < after->delta_interval ) {
after->delta_interval -= delta_interval;
break;
}
delta_interval -= after->delta_interval;
a000c5ec: e0652002 rsb r2, r5, r2 <== NOT EXECUTED
exit_insert:
_Watchdog_Sync_level = insert_isr_nest_level;
_Watchdog_Sync_count--;
_ISR_Enable( level );
}
a000c5f0: e5933000 ldr r3, [r3] <== NOT EXECUTED
if ( _Watchdog_Sync_level > insert_isr_nest_level ) {
_Watchdog_Sync_level = insert_isr_nest_level;
goto restart;
}
}
a000c5f4: eaffffe8 b a000c59c <_Watchdog_Insert+0x50> <== NOT EXECUTED
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
a000c5f8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Watchdog_Activate(
Watchdog_Control *the_watchdog
)
{
the_watchdog->state = WATCHDOG_ACTIVE;
a000c5fc: e3a00002 mov r0, #2 <== NOT EXECUTED
}
}
_Watchdog_Activate( the_watchdog );
the_watchdog->delta_interval = delta_interval;
a000c600: e5812010 str r2, [r1, #16] <== NOT EXECUTED a000c604: e5810008 str r0, [r1, #8] <== NOT EXECUTED
)
{
Chain_Node *before_node;
the_node->previous = after_node;
before_node = after_node->next;
a000c608: e5932000 ldr r2, [r3] <== NOT EXECUTED
Chain_Node *the_node
)
{
Chain_Node *before_node;
the_node->previous = after_node;
a000c60c: e5813004 str r3, [r1, #4] <== NOT EXECUTED
before_node = after_node->next; after_node->next = the_node;
a000c610: e5831000 str r1, [r3] <== NOT EXECUTED
_Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
the_watchdog->start_time = _Watchdog_Ticks_since_boot;
a000c614: e59f3038 ldr r3, [pc, #56] ; a000c654 <_Watchdog_Insert+0x108><== NOT EXECUTED
the_node->next = before_node; before_node->previous = the_node;
a000c618: 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;
a000c61c: e5812000 str r2, [r1] <== NOT EXECUTED a000c620: e5933000 ldr r3, [r3] <== NOT EXECUTED a000c624: e5813014 str r3, [r1, #20] <== NOT EXECUTED
exit_insert:
_Watchdog_Sync_level = insert_isr_nest_level;
a000c628: e59f3020 ldr r3, [pc, #32] ; a000c650 <_Watchdog_Insert+0x104><== NOT EXECUTED a000c62c: e5834000 str r4, [r3] <== NOT EXECUTED
_Watchdog_Sync_count--;
a000c630: e59f3014 ldr r3, [pc, #20] ; a000c64c <_Watchdog_Insert+0x100><== NOT EXECUTED a000c634: e5932000 ldr r2, [r3] <== NOT EXECUTED a000c638: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000c63c: e5832000 str r2, [r3] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000c640: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
a000c644: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000c6ac <_Watchdog_Remove>:
*/
Watchdog_States _Watchdog_Remove(
Watchdog_Control *the_watchdog
)
{
a000c6ac: e92d4010 push {r4, lr} <== NOT EXECUTED
a000c6b0: e1a03000 mov r3, r0 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000c6b4: e10fc000 mrs ip, CPSR <== NOT EXECUTED a000c6b8: e38c2080 orr r2, ip, #128 ; 0x80 <== NOT EXECUTED a000c6bc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
ISR_Level level;
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
previous_state = the_watchdog->state;
a000c6c0: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED
switch ( previous_state ) {
a000c6c4: e3500001 cmp r0, #1 <== NOT EXECUTED
/*
* It is not actually on the chain so just change the state and
* the Insert operation we interrupted will be aborted.
*/
the_watchdog->state = WATCHDOG_INACTIVE;
a000c6c8: 03a02000 moveq r2, #0 <== NOT EXECUTED a000c6cc: 05832008 streq r2, [r3, #8] <== NOT EXECUTED
Watchdog_States previous_state;
Watchdog_Control *next_watchdog;
_ISR_Disable( level );
previous_state = the_watchdog->state;
switch ( previous_state ) {
a000c6d0: 0a000015 beq a000c72c <_Watchdog_Remove+0x80> <== NOT EXECUTED a000c6d4: 3a000014 bcc a000c72c <_Watchdog_Remove+0x80> <== NOT EXECUTED a000c6d8: e3500003 cmp r0, #3 <== NOT EXECUTED a000c6dc: 8a000012 bhi a000c72c <_Watchdog_Remove+0x80> <== NOT EXECUTED
break;
case WATCHDOG_ACTIVE:
case WATCHDOG_REMOVE_IT:
the_watchdog->state = WATCHDOG_INACTIVE;
a000c6e0: e3a02000 mov r2, #0 <== NOT EXECUTED a000c6e4: e5832008 str r2, [r3, #8] <== NOT EXECUTED
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
_ISR_Enable( level );
return( previous_state );
}
a000c6e8: e5932000 ldr r2, [r3] <== NOT EXECUTED
case WATCHDOG_REMOVE_IT:
the_watchdog->state = WATCHDOG_INACTIVE;
next_watchdog = _Watchdog_Next( the_watchdog );
if ( _Watchdog_Next(next_watchdog) )
a000c6ec: e5921000 ldr r1, [r2] <== NOT EXECUTED a000c6f0: e3510000 cmp r1, #0 <== NOT EXECUTED
next_watchdog->delta_interval += the_watchdog->delta_interval;
a000c6f4: 15924010 ldrne r4, [r2, #16] <== NOT EXECUTED a000c6f8: 15931010 ldrne r1, [r3, #16] <== NOT EXECUTED a000c6fc: 10841001 addne r1, r4, r1 <== NOT EXECUTED a000c700: 15821010 strne r1, [r2, #16] <== NOT EXECUTED
if ( _Watchdog_Sync_count )
a000c704: e59f1034 ldr r1, [pc, #52] ; a000c740 <_Watchdog_Remove+0x94><== NOT EXECUTED a000c708: e5911000 ldr r1, [r1] <== NOT EXECUTED a000c70c: e3510000 cmp r1, #0 <== NOT EXECUTED
_Watchdog_Sync_level = _ISR_Nest_level;
a000c710: 159f102c ldrne r1, [pc, #44] ; a000c744 <_Watchdog_Remove+0x98><== NOT EXECUTED a000c714: 15914000 ldrne r4, [r1] <== NOT EXECUTED a000c718: 159f1028 ldrne r1, [pc, #40] ; a000c748 <_Watchdog_Remove+0x9c><== NOT EXECUTED a000c71c: 15814000 strne r4, [r1] <== NOT EXECUTED
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
previous = the_node->previous;
a000c720: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED
next->previous = previous;
a000c724: e5821004 str r1, [r2, #4] <== NOT EXECUTED
previous->next = next;
a000c728: e5812000 str r2, [r1] <== NOT EXECUTED
_Chain_Extract_unprotected( &the_watchdog->Node );
break;
}
the_watchdog->stop_time = _Watchdog_Ticks_since_boot;
a000c72c: e59f2018 ldr r2, [pc, #24] ; a000c74c <_Watchdog_Remove+0xa0><== NOT EXECUTED a000c730: e5922000 ldr r2, [r2] <== NOT EXECUTED a000c734: e5832018 str r2, [r3, #24] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000c738: e129f00c msr CPSR_fc, ip <== NOT EXECUTED
_ISR_Enable( level );
return( previous_state );
}
a000c73c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000dbbc <_Watchdog_Report>:
void _Watchdog_Report(
const char *name,
Watchdog_Control *watch
)
{
a000dbbc: e92d401f push {r0, r1, r2, r3, r4, lr} <== NOT EXECUTED
a000dbc0: e1a03001 mov r3, r1 <== NOT EXECUTED
printk(
a000dbc4: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000dbc8: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a000dbcc: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000dbd0: 059f1034 ldreq r1, [pc, #52] ; a000dc0c <_Watchdog_Report+0x50><== NOT EXECUTED a000dbd4: e58d0000 str r0, [sp] <== NOT EXECUTED a000dbd8: e593001c ldr r0, [r3, #28] <== NOT EXECUTED a000dbdc: 01a02001 moveq r2, r1 <== NOT EXECUTED a000dbe0: 159f2028 ldrne r2, [pc, #40] ; a000dc10 <_Watchdog_Report+0x54><== NOT EXECUTED a000dbe4: e58d0008 str r0, [sp, #8] <== NOT EXECUTED a000dbe8: e5930020 ldr r0, [r3, #32] <== NOT EXECUTED a000dbec: e58d000c str r0, [sp, #12] <== NOT EXECUTED a000dbf0: e5930024 ldr r0, [r3, #36] ; 0x24 <== NOT EXECUTED a000dbf4: e58d0010 str r0, [sp, #16] <== NOT EXECUTED a000dbf8: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a000dbfc: e59f0010 ldr r0, [pc, #16] ; a000dc14 <_Watchdog_Report+0x58><== NOT EXECUTED a000dc00: ebffe827 bl a0007ca4 <printk> <== NOT EXECUTED
watch,
watch->routine,
watch->id,
watch->user_data
);
}
a000dc04: e28dd014 add sp, sp, #20 <== NOT EXECUTED
a000dc08: e8bd8000 pop {pc} <== NOT EXECUTED
a000db44 <_Watchdog_Report_chain>:
void _Watchdog_Report_chain(
const char *name,
Chain_Control *header
)
{
a000db44: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a000db48: e1a04000 mov r4, r0 <== NOT EXECUTED
a000db4c: e1a05001 mov r5, r1 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000db50: e10f6000 mrs r6, CPSR <== NOT EXECUTED a000db54: e3863080 orr r3, r6, #128 ; 0x80 <== NOT EXECUTED a000db58: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
a000db5c: e59f004c ldr r0, [pc, #76] ; a000dbb0 <_Watchdog_Report_chain+0x6c><== NOT EXECUTED a000db60: e1a02005 mov r2, r5 <== NOT EXECUTED a000db64: e1a01004 mov r1, r4 <== NOT EXECUTED a000db68: ebffe84d bl a0007ca4 <printk> <== NOT EXECUTED
printk( "== end of %s \n", name );
} else {
printk( "Chain is empty\n" );
}
_ISR_Enable( level );
}
a000db6c: e4957004 ldr r7, [r5], #4 <== NOT EXECUTED
ISR_Level level;
Chain_Node *node;
_ISR_Disable( level );
printk( "Watchdog Chain: %s %p\n", name, header );
if ( !_Chain_Is_empty( header ) ) {
a000db70: e1570005 cmp r7, r5 <== NOT EXECUTED a000db74: 0a000009 beq a000dba0 <_Watchdog_Report_chain+0x5c> <== NOT EXECUTED
node != _Chain_Tail(header) ;
node = node->next )
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
a000db78: e1a01007 mov r1, r7 <== NOT EXECUTED a000db7c: e3a00000 mov r0, #0 <== NOT EXECUTED a000db80: eb00000d bl a000dbbc <_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 )
a000db84: 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 ) ;
a000db88: e1570005 cmp r7, r5 <== NOT EXECUTED a000db8c: 1afffff9 bne a000db78 <_Watchdog_Report_chain+0x34> <== NOT EXECUTED
{
Watchdog_Control *watch = (Watchdog_Control *) node;
_Watchdog_Report( NULL, watch );
}
printk( "== end of %s \n", name );
a000db90: e59f001c ldr r0, [pc, #28] ; a000dbb4 <_Watchdog_Report_chain+0x70><== NOT EXECUTED a000db94: e1a01004 mov r1, r4 <== NOT EXECUTED a000db98: ebffe841 bl a0007ca4 <printk> <== NOT EXECUTED a000db9c: ea000001 b a000dba8 <_Watchdog_Report_chain+0x64> <== NOT EXECUTED
} else {
printk( "Chain is empty\n" );
a000dba0: e59f0010 ldr r0, [pc, #16] ; a000dbb8 <_Watchdog_Report_chain+0x74><== NOT EXECUTED a000dba4: ebffe83e bl a0007ca4 <printk> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000dba8: e129f006 msr CPSR_fc, r6 <== NOT EXECUTED
}
_ISR_Enable( level );
}
a000dbac: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000c750 <_Watchdog_Tickle>:
*/
void _Watchdog_Tickle(
Chain_Control *header
)
{
a000c750: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a000c754: e1a05000 mov r5, r0 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000c758: e10f7000 mrs r7, CPSR <== NOT EXECUTED a000c75c: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a000c760: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
leave:
_ISR_Enable(level);
}
a000c764: e1a04000 mov r4, r0 <== NOT EXECUTED a000c768: e4943004 ldr r3, [r4], #4 <== NOT EXECUTED
* volatile data - till, 2003/7
*/
_ISR_Disable( level );
if ( _Chain_Is_empty( header ) )
a000c76c: e1530004 cmp r3, r4 <== NOT EXECUTED a000c770: 0a000019 beq a000c7dc <_Watchdog_Tickle+0x8c> <== NOT EXECUTED
* 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) {
a000c774: e5932010 ldr r2, [r3, #16] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First(
Chain_Control *header
)
{
return ( (Watchdog_Control *) _Chain_First( header ) );
a000c778: e1a06003 mov r6, r3 <== NOT EXECUTED a000c77c: e3520000 cmp r2, #0 <== NOT EXECUTED a000c780: 0a000003 beq a000c794 <_Watchdog_Tickle+0x44> <== NOT EXECUTED
the_watchdog->delta_interval--;
a000c784: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000c788: e5832010 str r2, [r3, #16] <== NOT EXECUTED
if ( the_watchdog->delta_interval != 0 )
a000c78c: e3520000 cmp r2, #0 <== NOT EXECUTED a000c790: 1a000011 bne a000c7dc <_Watchdog_Tickle+0x8c> <== NOT EXECUTED
goto leave;
}
do {
watchdog_state = _Watchdog_Remove( the_watchdog );
a000c794: e1a00006 mov r0, r6 <== NOT EXECUTED a000c798: ebffffc3 bl a000c6ac <_Watchdog_Remove> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000c79c: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
_ISR_Enable( level );
switch( watchdog_state ) {
a000c7a0: e3500002 cmp r0, #2 <== NOT EXECUTED a000c7a4: 1a000003 bne a000c7b8 <_Watchdog_Tickle+0x68> <== NOT EXECUTED
case WATCHDOG_ACTIVE:
(*the_watchdog->routine)(
a000c7a8: e596301c ldr r3, [r6, #28] <== NOT EXECUTED a000c7ac: e5960020 ldr r0, [r6, #32] <== NOT EXECUTED a000c7b0: e5961024 ldr r1, [r6, #36] ; 0x24 <== NOT EXECUTED a000c7b4: e12fff33 blx r3 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000c7b8: e10f7000 mrs r7, CPSR <== NOT EXECUTED a000c7bc: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a000c7c0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
leave:
_ISR_Enable(level);
}
a000c7c4: e5956000 ldr r6, [r5] <== NOT EXECUTED
_ISR_Disable( level );
the_watchdog = _Watchdog_First( header );
} while ( !_Chain_Is_empty( header ) &&
(the_watchdog->delta_interval == 0) );
a000c7c8: e1560004 cmp r6, r4 <== NOT EXECUTED a000c7cc: 0a000002 beq a000c7dc <_Watchdog_Tickle+0x8c> <== NOT EXECUTED
}
_ISR_Disable( level );
the_watchdog = _Watchdog_First( header );
} while ( !_Chain_Is_empty( header ) &&
a000c7d0: e5963010 ldr r3, [r6, #16] <== NOT EXECUTED a000c7d4: e3530000 cmp r3, #0 <== NOT EXECUTED a000c7d8: eaffffec b a000c790 <_Watchdog_Tickle+0x40> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000c7dc: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
(the_watchdog->delta_interval == 0) );
leave:
_ISR_Enable(level);
}
a000c7e0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000c86c <_Workspace_Allocate_or_fatal_error>:
a000c86c: e3a02000 mov r2, #0
* _Workspace_Allocate_or_fatal_error
*/
void *_Workspace_Allocate_or_fatal_error(
size_t size
)
{
a000c870: e1a01000 mov r1, r0
a000c874: e52de004 push {lr} ; (str lr, [sp, #-4]!)
a000c878: e59f0018 ldr r0, [pc, #24] ; a000c898 <_Workspace_Allocate_or_fatal_error+0x2c>
a000c87c: e1a03002 mov r3, r2
a000c880: eb0009e5 bl a000f01c <_Heap_Allocate_aligned_with_boundary>
__builtin_return_address( 1 ),
memory
);
#endif
if ( memory == NULL )
a000c884: e3500000 cmp r0, #0
a000c888: 149df004 popne {pc} ; (ldrne pc, [sp], #4)
_Internal_error_Occurred(
a000c88c: e3a01001 mov r1, #1 <== NOT EXECUTED a000c890: e3a02003 mov r2, #3 <== NOT EXECUTED a000c894: ebfff760 bl a000a61c <_Internal_error_Occurred> <== NOT EXECUTED
a000c7e4 <_Workspace_Handler_initialization>:
* _Workspace_Handler_initialization
*/
void _Workspace_Handler_initialization(void)
{
uintptr_t memory_available = 0;
void *starting_address = Configuration.work_space_start;
a000c7e4: e59f3050 ldr r3, [pc, #80] ; a000c83c <_Workspace_Handler_initialization+0x58>
/*
* _Workspace_Handler_initialization
*/
void _Workspace_Handler_initialization(void)
{
a000c7e8: e92d4030 push {r4, r5, lr}
uintptr_t memory_available = 0; void *starting_address = Configuration.work_space_start;
a000c7ec: e5935000 ldr r5, [r3]
uintptr_t size = Configuration.work_space_size;
a000c7f0: e5934004 ldr r4, [r3, #4]
if ( Configuration.do_zero_of_workspace )
a000c7f4: e5d33028 ldrb r3, [r3, #40] ; 0x28 a000c7f8: e3530000 cmp r3, #0
a000c7fc: 0a000003 beq a000c810 <_Workspace_Handler_initialization+0x2c> memset( starting_address, 0, size );
a000c800: e1a00005 mov r0, r5 a000c804: e3a01000 mov r1, #0 a000c808: e1a02004 mov r2, r4 a000c80c: eb00147b bl a0011a00 <memset>
memory_available = _Heap_Initialize(
a000c810: e59f0028 ldr r0, [pc, #40] ; a000c840 <_Workspace_Handler_initialization+0x5c> a000c814: e1a01005 mov r1, r5 a000c818: e1a02004 mov r2, r4 a000c81c: e3a03008 mov r3, #8 a000c820: ebfff6ea bl a000a3d0 <_Heap_Initialize>
starting_address,
size,
CPU_HEAP_ALIGNMENT
);
if ( memory_available == 0 )
a000c824: e3500000 cmp r0, #0
a000c828: 1a000002 bne a000c838 <_Workspace_Handler_initialization+0x54>
_Internal_error_Occurred(
a000c82c: e3a01001 mov r1, #1 <== NOT EXECUTED a000c830: e3a02002 mov r2, #2 <== NOT EXECUTED a000c834: ebfff778 bl a000a61c <_Internal_error_Occurred> <== NOT EXECUTED
a000c838: e8bd8030 pop {r4, r5, pc}
a00090ec <__assert_func>:
const char *file,
int line,
const char *func,
const char *failedexpr
)
{
a00090ec: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n",
a00090f0: e3520000 cmp r2, #0 <== NOT EXECUTED
const char *file,
int line,
const char *func,
const char *failedexpr
)
{
a00090f4: e1a0c001 mov ip, r1 <== NOT EXECUTED
printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n",
a00090f8: 059f1028 ldreq r1, [pc, #40] ; a0009128 <__assert_func+0x3c><== NOT EXECUTED a00090fc: 159f1028 ldrne r1, [pc, #40] ; a000912c <__assert_func+0x40><== NOT EXECUTED
const char *file,
int line,
const char *func,
const char *failedexpr
)
{
a0009100: e1a0e000 mov lr, r0 <== NOT EXECUTED
printk("assertion \"%s\" failed: file \"%s\", line %d%s%s\n",
a0009104: 01a02001 moveq r2, r1 <== NOT EXECUTED
a0009108: e88d0006 stm sp, {r1, r2} <== NOT EXECUTED
a000910c: e59f001c ldr r0, [pc, #28] ; a0009130 <__assert_func+0x44> <== NOT EXECUTED
a0009110: e1a01003 mov r1, r3 <== NOT EXECUTED
a0009114: e1a0200e mov r2, lr <== NOT EXECUTED
a0009118: e1a0300c mov r3, ip <== NOT EXECUTED
a000911c: eb000423 bl a000a1b0 <printk> <== NOT EXECUTED
file,
line,
(func) ? ", function: " : "",
(func) ? func : ""
);
rtems_fatal_error_occurred(0);
a0009120: e3a00000 mov r0, #0 <== NOT EXECUTED a0009124: eb000ffe bl a000d124 <rtems_fatal_error_occurred> <== NOT EXECUTED
a001502c <__env_lock>:
a001502c: e12fff1e bx lr <== NOT EXECUTED
a0015030 <__env_unlock>:
a0015030: e12fff1e bx lr <== NOT EXECUTED
a000687c <__getpid>:
#include <unistd.h>
pid_t __getpid(void)
{
return getpid();
a000687c: eaffffff b a0006880 <getpid> <== NOT EXECUTED
a0025460 <_calloc_r>:
struct _reent *ignored __attribute__((unused)),
size_t elements,
size_t size
)
{
return calloc( elements, size );
a0025460: e1a00001 mov r0, r1 <== NOT EXECUTED a0025464: e1a01002 mov r1, r2 <== NOT EXECUTED a0025468: eaff948e b a000a6a8 <calloc> <== NOT EXECUTED
a0007aac <_chown_helper>:
const char *path,
uid_t owner,
gid_t group,
int follow_link
)
{
a0007aac: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a0007ab0: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED
a0007ab4: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED
a0007ab8: e24dd018 sub sp, sp, #24 <== NOT EXECUTED
a0007abc: e1a08003 mov r8, r3 <== NOT EXECUTED
a0007ac0: e1a05822 lsr r5, r2, #16 <== NOT EXECUTED
a0007ac4: e1a07000 mov r7, r0 <== NOT EXECUTED
a0007ac8: e1a06821 lsr r6, r1, #16 <== NOT EXECUTED
rtems_filesystem_location_info_t loc;
int result;
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, follow_link ) )
a0007acc: eb003474 bl a0014ca4 <strlen> <== NOT EXECUTED a0007ad0: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0007ad4: e1a01000 mov r1, r0 <== NOT EXECUTED a0007ad8: e3a02000 mov r2, #0 <== NOT EXECUTED a0007adc: e1a00007 mov r0, r7 <== NOT EXECUTED a0007ae0: e1a03004 mov r3, r4 <== NOT EXECUTED a0007ae4: e58d8000 str r8, [sp] <== NOT EXECUTED a0007ae8: eb000030 bl a0007bb0 <rtems_filesystem_evaluate_path> <== NOT EXECUTED a0007aec: e3500000 cmp r0, #0 <== NOT EXECUTED
return -1;
a0007af0: 13e05000 mvnne r5, #0 <== NOT EXECUTED
)
{
rtems_filesystem_location_info_t loc;
int result;
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, follow_link ) )
a0007af4: 1a000008 bne a0007b1c <_chown_helper+0x70> <== NOT EXECUTED
return -1;
result = (*loc.ops->chown_h)( &loc, owner, group );
a0007af8: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0007afc: e1a02005 mov r2, r5 <== NOT EXECUTED a0007b00: e1a00004 mov r0, r4 <== NOT EXECUTED a0007b04: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a0007b08: e1a01006 mov r1, r6 <== NOT EXECUTED a0007b0c: e12fff33 blx r3 <== NOT EXECUTED a0007b10: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a0007b14: e1a00004 mov r0, r4 <== NOT EXECUTED a0007b18: eb000054 bl a0007c70 <rtems_filesystem_freenode> <== NOT EXECUTED
return result;
}
a0007b1c: e1a00005 mov r0, r5 <== NOT EXECUTED
a0007b20: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a0007b24: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a001785c <_execve>:
int _execve(
const char *path __attribute__((unused)),
char *const argv[] __attribute__((unused)),
char *const envp[] __attribute__((unused))
)
{
a001785c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0017860: ebffe848 bl a0011988 <__errno> <== NOT EXECUTED a0017864: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a0017868: e5803000 str r3, [r0] <== NOT EXECUTED
}
a001786c: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0017870: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0006c38 <_fcntl_r>:
int fd,
int cmd,
int arg
)
{
return fcntl( fd, cmd, arg );
a0006c38: e1a00001 mov r0, r1 <== NOT EXECUTED a0006c3c: e1a01002 mov r1, r2 <== NOT EXECUTED a0006c40: e1a02003 mov r2, r3 <== NOT EXECUTED a0006c44: eaffff8a b a0006a74 <fcntl> <== NOT EXECUTED
a0015ee0 <_free_r>:
void _free_r(
struct _reent *ignored __attribute__((unused)),
void *ptr
)
{
free( ptr );
a0015ee0: e1a00001 mov r0, r1 <== NOT EXECUTED a0015ee4: eaffc0a1 b a0006170 <free> <== NOT EXECUTED
a0015f70 <_fstat_r>:
struct _reent *ptr __attribute__((unused)),
int fd,
struct stat *buf
)
{
return fstat( fd, buf );
a0015f70: e1a00001 mov r0, r1 <== NOT EXECUTED a0015f74: e1a01002 mov r1, r2 <== NOT EXECUTED a0015f78: eaffffda b a0015ee8 <fstat> <== NOT EXECUTED
a0025510 <_getpid_r>:
pid_t _getpid_r(
struct _reent *ptr __attribute__((unused))
)
{
return getpid();
}
a0025510: e3a00001 mov r0, #1 <== NOT EXECUTED a0025514: e12fff1e bx lr <== NOT EXECUTED
a00062a8 <_gettimeofday>:
int _gettimeofday(
struct timeval *tp,
struct timezone *tzp
)
{
return gettimeofday( tp, tzp );
a00062a8: eaffffe5 b a0006244 <gettimeofday> <== NOT EXECUTED
a000629c <_gettimeofday_r>:
struct _reent *ignored_reentrancy_stuff __attribute__((unused)),
struct timeval *tp,
struct timezone *tzp
)
{
return gettimeofday( tp, tzp );
a000629c: e1a00001 mov r0, r1 <== NOT EXECUTED a00062a0: e1a01002 mov r1, r2 <== NOT EXECUTED a00062a4: eaffffe6 b a0006244 <gettimeofday> <== NOT EXECUTED
a0015f7c <_isatty_r>:
int _isatty_r(
struct _reent *ptr __attribute__((unused)),
int fd
)
{
return isatty( fd );
a0015f7c: e1a00001 mov r0, r1 <== NOT EXECUTED a0015f80: ea0001b7 b a0016664 <isatty> <== NOT EXECUTED
a00256f8 <_kill_r>:
struct _reent *ptr,
pid_t pid,
int sig
)
{
return killinfo( pid, sig, NULL );
a00256f8: e1a00001 mov r0, r1 <== NOT EXECUTED a00256fc: e1a01002 mov r1, r2 <== NOT EXECUTED a0025700: e3a02000 mov r2, #0 <== NOT EXECUTED a0025704: ea00002a b a00257b4 <killinfo> <== NOT EXECUTED
a00097f8 <_link_r>:
struct _reent *ptr __attribute__((unused)),
const char *existing,
const char *new
)
{
return link( existing, new );
a00097f8: e1a00001 mov r0, r1 <== NOT EXECUTED a00097fc: e1a01002 mov r1, r2 <== NOT EXECUTED a0009800: eaffffc0 b a0009708 <link> <== NOT EXECUTED
a0016068 <_lseek_r>:
int fd,
off_t offset,
int whence
)
{
return lseek( fd, offset, whence );
a0016068: e1a00001 mov r0, r1 <== NOT EXECUTED a001606c: e1a01002 mov r1, r2 <== NOT EXECUTED a0016070: e1a02003 mov r2, r3 <== NOT EXECUTED a0016074: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0016078: eaffffc1 b a0015f84 <lseek> <== NOT EXECUTED
a0008298 <_lstat_r>:
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
a0008298: e1a00001 mov r0, r1 <== NOT EXECUTED a000829c: e1a01002 mov r1, r2 <== NOT EXECUTED a00082a0: eaffffd9 b a000820c <lstat> <== NOT EXECUTED
a001607c <_malloc_r>:
void *_malloc_r(
struct _reent *ignored __attribute__((unused)),
size_t size
)
{
return malloc( size );
a001607c: e1a00001 mov r0, r1 <== NOT EXECUTED a0016080: eaffc118 b a00064e8 <malloc> <== NOT EXECUTED
a0006f38 <_open_r>:
const char *buf,
int flags,
int mode
)
{
return open( buf, flags, mode );
a0006f38: e1a00001 mov r0, r1 <== NOT EXECUTED a0006f3c: e1a01002 mov r1, r2 <== NOT EXECUTED a0006f40: e1a02003 mov r2, r3 <== NOT EXECUTED a0006f44: eaffff69 b a0006cf0 <open> <== NOT EXECUTED
a00161bc <_read_r>:
int fd,
void *buf,
size_t nbytes
)
{
return read( fd, buf, nbytes );
a00161bc: e1a00001 mov r0, r1 <== NOT EXECUTED a00161c0: e1a01002 mov r1, r2 <== NOT EXECUTED a00161c4: e1a02003 mov r2, r3 <== NOT EXECUTED a00161c8: eaffffd0 b a0016110 <read> <== NOT EXECUTED
a00161cc <_realloc_r>:
struct _reent *ignored __attribute__((unused)),
void *ptr,
size_t size
)
{
return realloc( ptr, size );
a00161cc: e1a00001 mov r0, r1 <== NOT EXECUTED a00161d0: e1a01002 mov r1, r2 <== NOT EXECUTED a00161d4: ea000012 b a0016224 <realloc> <== NOT EXECUTED
a000a5c0 <_rename_r>:
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
a000a5c0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
/*
* Get the parent node of the old path to be renamed. Find the parent path.
*/
old_parent_pathlen = rtems_filesystem_dirname ( old );
a000a5c4: e1a00001 mov r0, r1 <== NOT EXECUTED
int _rename_r(
struct _reent *ptr __attribute__((unused)),
const char *old,
const char *new
)
{
a000a5c8: e24dd048 sub sp, sp, #72 ; 0x48 <== NOT EXECUTED a000a5cc: e1a04001 mov r4, r1 <== NOT EXECUTED a000a5d0: e1a07002 mov r7, r2 <== NOT EXECUTED
/*
* Get the parent node of the old path to be renamed. Find the parent path.
*/
old_parent_pathlen = rtems_filesystem_dirname ( old );
a000a5d4: ebfffa9b bl a0009048 <rtems_filesystem_dirname> <== NOT EXECUTED
if ( old_parent_pathlen == 0 )
a000a5d8: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000a5dc: e28d3018 add r3, sp, #24 <== NOT EXECUTED a000a5e0: 1a000005 bne a000a5fc <_rename_r+0x3c> <== NOT EXECUTED
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
a000a5e4: e1a00004 mov r0, r4 <== NOT EXECUTED a000a5e8: e28d1044 add r1, sp, #68 ; 0x44 <== NOT EXECUTED a000a5ec: e1a02003 mov r2, r3 <== NOT EXECUTED a000a5f0: eb0000e1 bl a000a97c <rtems_filesystem_get_start_loc> <== NOT EXECUTED
rtems_filesystem_location_info_t old_parent_loc; rtems_filesystem_location_info_t new_parent_loc; int i; int result; const char *name; bool free_old_parentloc = false;
a000a5f4: e1a05006 mov r5, r6 <== NOT EXECUTED a000a5f8: ea000008 b a000a620 <_rename_r+0x60> <== NOT EXECUTED
old_parent_pathlen = rtems_filesystem_dirname ( old );
if ( old_parent_pathlen == 0 )
rtems_filesystem_get_start_loc( old, &i, &old_parent_loc );
else {
result = rtems_filesystem_evaluate_path( old, old_parent_pathlen,
a000a5fc: e3a02000 mov r2, #0 <== NOT EXECUTED a000a600: e58d2000 str r2, [sp] <== NOT EXECUTED a000a604: e1a00004 mov r0, r4 <== NOT EXECUTED a000a608: e1a01006 mov r1, r6 <== NOT EXECUTED a000a60c: e2822002 add r2, r2, #2 <== NOT EXECUTED a000a610: ebfffa79 bl a0008ffc <rtems_filesystem_evaluate_path> <== NOT EXECUTED
RTEMS_LIBIO_PERMS_WRITE,
&old_parent_loc,
false );
if ( result != 0 )
a000a614: e3500000 cmp r0, #0 <== NOT EXECUTED a000a618: 1a000057 bne a000a77c <_rename_r+0x1bc> <== NOT EXECUTED
return -1;
free_old_parentloc = true;
a000a61c: e3a05001 mov r5, #1 <== NOT EXECUTED
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
a000a620: e28dc02c add ip, sp, #44 ; 0x2c <== NOT EXECUTED
a000a624: e28de018 add lr, sp, #24 <== NOT EXECUTED
a000a628: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a000a62c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000a630: e59e3000 ldr r3, [lr] <== NOT EXECUTED
name = old + old_parent_pathlen;
a000a634: e0844006 add r4, r4, r6 <== NOT EXECUTED
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
a000a638: e1a00004 mov r0, r4 <== NOT EXECUTED
/*
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
a000a63c: e58c3000 str r3, [ip] <== NOT EXECUTED
name = old + old_parent_pathlen;
a000a640: e58d4040 str r4, [sp, #64] ; 0x40 <== NOT EXECUTED
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
a000a644: eb003655 bl a0017fa0 <strlen> <== NOT EXECUTED a000a648: e1a01000 mov r1, r0 <== NOT EXECUTED a000a64c: e1a00004 mov r0, r4 <== NOT EXECUTED a000a650: ebfffa8a bl a0009080 <rtems_filesystem_prefix_separators> <== NOT EXECUTED a000a654: e0844000 add r4, r4, r0 <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
a000a658: e1a00004 mov r0, r4 <== NOT EXECUTED
* Start from the parent to find the node that should be under it.
*/
old_loc = old_parent_loc;
name = old + old_parent_pathlen;
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
a000a65c: e58d4040 str r4, [sp, #64] ; 0x40 <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
a000a660: eb00364e bl a0017fa0 <strlen> <== NOT EXECUTED a000a664: e28d602c add r6, sp, #44 ; 0x2c <== NOT EXECUTED a000a668: e1a01000 mov r1, r0 <== NOT EXECUTED a000a66c: e3a02000 mov r2, #0 <== NOT EXECUTED a000a670: e1a00004 mov r0, r4 <== NOT EXECUTED a000a674: e1a03006 mov r3, r6 <== NOT EXECUTED a000a678: e58d2000 str r2, [sp] <== NOT EXECUTED a000a67c: ebfffa42 bl a0008f8c <rtems_filesystem_evaluate_relative_path><== NOT EXECUTED
0, &old_loc, false );
if ( result != 0 ) {
a000a680: e3500000 cmp r0, #0 <== NOT EXECUTED a000a684: 0a000003 beq a000a698 <_rename_r+0xd8> <== NOT EXECUTED
if ( free_old_parentloc )
a000a688: e3550000 cmp r5, #0 <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
a000a68c: 128d0018 addne r0, sp, #24 <== NOT EXECUTED
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &old_loc, false );
if ( result != 0 ) {
if ( free_old_parentloc )
a000a690: 0a000039 beq a000a77c <_rename_r+0x1bc> <== NOT EXECUTED a000a694: ea000014 b a000a6ec <_rename_r+0x12c> <== NOT EXECUTED
/*
* Get the parent of the new node we are renaming to.
*/
rtems_filesystem_get_start_loc( new, &i, &new_parent_loc );
a000a698: e28d4004 add r4, sp, #4 <== NOT EXECUTED a000a69c: e1a00007 mov r0, r7 <== NOT EXECUTED a000a6a0: e28d1044 add r1, sp, #68 ; 0x44 <== NOT EXECUTED a000a6a4: e1a02004 mov r2, r4 <== NOT EXECUTED a000a6a8: eb0000b3 bl a000a97c <rtems_filesystem_get_start_loc> <== NOT EXECUTED
result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name );
a000a6ac: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000a6b0: e59d0044 ldr r0, [sp, #68] ; 0x44 <== NOT EXECUTED a000a6b4: e1a01004 mov r1, r4 <== NOT EXECUTED a000a6b8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a6bc: e0870000 add r0, r7, r0 <== NOT EXECUTED a000a6c0: e28d2040 add r2, sp, #64 ; 0x40 <== NOT EXECUTED a000a6c4: e12fff33 blx r3 <== NOT EXECUTED
if ( result != 0 ) {
a000a6c8: e3500000 cmp r0, #0 <== NOT EXECUTED a000a6cc: 0a000008 beq a000a6f4 <_rename_r+0x134> <== NOT EXECUTED
rtems_filesystem_freenode( &new_parent_loc );
a000a6d0: e1a00004 mov r0, r4 <== NOT EXECUTED a000a6d4: ebfffaed bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
if ( free_old_parentloc )
a000a6d8: e3550000 cmp r5, #0 <== NOT EXECUTED a000a6dc: 0a000001 beq a000a6e8 <_rename_r+0x128> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
a000a6e0: e28d0018 add r0, sp, #24 <== NOT EXECUTED a000a6e4: ebfffae9 bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
a000a6e8: e28d002c add r0, sp, #44 ; 0x2c <== NOT EXECUTED a000a6ec: ebfffae7 bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED a000a6f0: ea000021 b a000a77c <_rename_r+0x1bc> <== NOT EXECUTED
/*
* Check to see if the caller is trying to rename across file system
* boundaries.
*/
if ( old_parent_loc.mt_entry != new_parent_loc.mt_entry ) {
a000a6f4: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED a000a6f8: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED a000a6fc: e1520003 cmp r2, r3 <== NOT EXECUTED a000a700: 0a00000b beq a000a734 <_rename_r+0x174> <== NOT EXECUTED
rtems_filesystem_freenode( &new_parent_loc );
a000a704: e1a00004 mov r0, r4 <== NOT EXECUTED a000a708: ebfffae0 bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
if ( free_old_parentloc )
a000a70c: e3550000 cmp r5, #0 <== NOT EXECUTED a000a710: 0a000001 beq a000a71c <_rename_r+0x15c> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
a000a714: e28d0018 add r0, sp, #24 <== NOT EXECUTED a000a718: ebfffadc bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
a000a71c: e28d002c add r0, sp, #44 ; 0x2c <== NOT EXECUTED a000a720: ebfffada bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EXDEV );
a000a724: eb002952 bl a0014c74 <__errno> <== NOT EXECUTED a000a728: e3a03012 mov r3, #18 <== NOT EXECUTED a000a72c: e5803000 str r3, [r0] <== NOT EXECUTED a000a730: ea000011 b a000a77c <_rename_r+0x1bc> <== NOT EXECUTED
}
result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name );
a000a734: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000a738: e28d7018 add r7, sp, #24 <== NOT EXECUTED a000a73c: e1a01006 mov r1, r6 <== NOT EXECUTED a000a740: e593c040 ldr ip, [r3, #64] ; 0x40 <== NOT EXECUTED a000a744: e1a02004 mov r2, r4 <== NOT EXECUTED a000a748: e59d3040 ldr r3, [sp, #64] ; 0x40 <== NOT EXECUTED a000a74c: e1a00007 mov r0, r7 <== NOT EXECUTED a000a750: e12fff3c blx ip <== NOT EXECUTED a000a754: e1a06000 mov r6, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &new_parent_loc );
a000a758: e1a00004 mov r0, r4 <== NOT EXECUTED a000a75c: ebfffacb bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
if ( free_old_parentloc )
a000a760: e3550000 cmp r5, #0 <== NOT EXECUTED a000a764: 0a000001 beq a000a770 <_rename_r+0x1b0> <== NOT EXECUTED
rtems_filesystem_freenode( &old_parent_loc );
a000a768: e1a00007 mov r0, r7 <== NOT EXECUTED a000a76c: ebfffac7 bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_filesystem_freenode( &old_loc );
a000a770: e28d002c add r0, sp, #44 ; 0x2c <== NOT EXECUTED a000a774: ebfffac5 bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
return result;
a000a778: ea000000 b a000a780 <_rename_r+0x1c0> <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &old_loc, false );
if ( result != 0 ) {
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
return -1;
a000a77c: e3e06000 mvn r6, #0 <== NOT EXECUTED
if ( free_old_parentloc )
rtems_filesystem_freenode( &old_parent_loc );
rtems_filesystem_freenode( &old_loc );
return result;
}
a000a780: e1a00006 mov r0, r6 <== NOT EXECUTED
a000a784: e28dd048 add sp, sp, #72 ; 0x48 <== NOT EXECUTED
a000a788: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a00070b8 <_stat_r>:
struct _reent *ptr __attribute__((unused)),
const char *path,
struct stat *buf
)
{
return _STAT_NAME( path, buf );
a00070b8: e1a00001 mov r0, r1 <== NOT EXECUTED a00070bc: e1a01002 mov r1, r2 <== NOT EXECUTED a00070c0: eaffffd8 b a0007028 <stat> <== NOT EXECUTED
a0008d00 <_times>:
#endif
clock_t _times(
struct tms *ptms
)
{
a0008d00: e92d407f push {r0, r1, r2, r3, r4, r5, r6, lr} <== NOT EXECUTED
rtems_interval ticks;
if ( !ptms )
a0008d04: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0008d08: 1a000004 bne a0008d20 <_times+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a0008d0c: eb00218b bl a0011340 <__errno> <== NOT EXECUTED a0008d10: e3a0300e mov r3, #14 <== NOT EXECUTED a0008d14: e5803000 str r3, [r0] <== NOT EXECUTED a0008d18: e3e00000 mvn r0, #0 <== NOT EXECUTED a0008d1c: ea00001a b a0008d8c <_times+0x8c> <== NOT EXECUTED
/*
* This call does not depend on TOD being initialized and can't fail.
*/
ticks = rtems_clock_get_ticks_since_boot();
a0008d20: eb0000e3 bl a00090b4 <rtems_clock_get_ticks_since_boot> <== NOT EXECUTED
{
Timestamp_Control per_tick;
uint32_t ticks;
uint32_t fractional_ticks;
_Timestamp_Set(
a0008d24: e59f3068 ldr r3, [pc, #104] ; a0008d94 <_times+0x94> <== NOT EXECUTED
/*
* This call does not depend on TOD being initialized and can't fail.
*/
ticks = rtems_clock_get_ticks_since_boot();
a0008d28: e1a05000 mov r5, r0 <== NOT EXECUTED
{
Timestamp_Control per_tick;
uint32_t ticks;
uint32_t fractional_ticks;
_Timestamp_Set(
a0008d2c: e59f1064 ldr r1, [pc, #100] ; a0008d98 <_times+0x98> <== NOT EXECUTED a0008d30: e593600c ldr r6, [r3, #12] <== NOT EXECUTED a0008d34: e1a00006 mov r0, r6 <== NOT EXECUTED a0008d38: eb002f18 bl a00149a0 <__aeabi_uidiv> <== NOT EXECUTED a0008d3c: e58d0000 str r0, [sp] <== NOT EXECUTED a0008d40: e3a00ffa mov r0, #1000 ; 0x3e8 <== NOT EXECUTED a0008d44: e59f1050 ldr r1, [pc, #80] ; a0008d9c <_times+0x9c> <== NOT EXECUTED a0008d48: e0000096 mul r0, r6, r0 <== NOT EXECUTED a0008d4c: eb002fab bl a0014c00 <__umodsi3> <== NOT EXECUTED
TOD_MICROSECONDS_PER_SECOND,
(rtems_configuration_get_nanoseconds_per_tick() %
TOD_NANOSECONDS_PER_SECOND)
);
_Timestamp_Divide(
a0008d50: e59f3048 ldr r3, [pc, #72] ; a0008da0 <_times+0xa0> <== NOT EXECUTED
{
Timestamp_Control per_tick;
uint32_t ticks;
uint32_t fractional_ticks;
_Timestamp_Set(
a0008d54: e58d0004 str r0, [sp, #4] <== NOT EXECUTED
TOD_MICROSECONDS_PER_SECOND,
(rtems_configuration_get_nanoseconds_per_tick() %
TOD_NANOSECONDS_PER_SECOND)
);
_Timestamp_Divide(
a0008d58: e1a0100d mov r1, sp <== NOT EXECUTED a0008d5c: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a0008d60: e28d200c add r2, sp, #12 <== NOT EXECUTED a0008d64: e28d3008 add r3, sp, #8 <== NOT EXECUTED a0008d68: e2800084 add r0, r0, #132 ; 0x84 <== NOT EXECUTED a0008d6c: eb000dd3 bl a000c4c0 <_Timespec_Divide> <== NOT EXECUTED
&_Thread_Executing->cpu_time_used,
&per_tick,
&ticks,
&fractional_ticks
);
ptms->tms_utime = ticks;
a0008d70: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED
}
#else
ptms->tms_utime = _Thread_Executing->cpu_time_used;
#endif
ptms->tms_stime = ticks;
a0008d74: e5845004 str r5, [r4, #4] <== NOT EXECUTED
ptms->tms_cutime = 0;
ptms->tms_cstime = 0;
return ticks;
a0008d78: e1a00005 mov r0, r5 <== NOT EXECUTED
&_Thread_Executing->cpu_time_used,
&per_tick,
&ticks,
&fractional_ticks
);
ptms->tms_utime = ticks;
a0008d7c: e5843000 str r3, [r4] <== NOT EXECUTED
}
#else
ptms->tms_utime = _Thread_Executing->cpu_time_used;
#endif
ptms->tms_stime = ticks;
ptms->tms_cutime = 0;
a0008d80: e3a03000 mov r3, #0 <== NOT EXECUTED a0008d84: e5843008 str r3, [r4, #8] <== NOT EXECUTED
ptms->tms_cstime = 0;
a0008d88: e584300c str r3, [r4, #12] <== NOT EXECUTED
return ticks;
}
a0008d8c: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a0008d90: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0008da8 <_times_r>:
clock_t _times_r(
struct _reent *ptr __attribute__((unused)),
struct tms *ptms
)
{
return _times( ptms );
a0008da8: e1a00001 mov r0, r1 <== NOT EXECUTED a0008dac: eaffffd3 b a0008d00 <_times> <== NOT EXECUTED
a0009b7c <_unlink_r>:
int _unlink_r(
struct _reent *ptr __attribute__((unused)),
const char *path
)
{
return unlink( path );
a0009b7c: e1a00001 mov r0, r1 <== NOT EXECUTED a0009b80: eaffffa8 b a0009a28 <unlink> <== NOT EXECUTED
a00161d8 <_write_r>:
int fd,
const void *buf,
size_t nbytes
)
{
return write( fd, buf, nbytes );
a00161d8: e1a00001 mov r0, r1 <== NOT EXECUTED a00161dc: e1a01002 mov r1, r2 <== NOT EXECUTED a00161e0: e1a02003 mov r2, r3 <== NOT EXECUTED a00161e4: ea000058 b a001634c <write> <== NOT EXECUTED
a00080c4 <access>:
int access(
const char *path,
int amode
)
{
a00080c4: e92d4010 push {r4, lr} <== NOT EXECUTED
a00080c8: e24dd048 sub sp, sp, #72 ; 0x48 <== NOT EXECUTED
a00080cc: e1a04001 mov r4, r1 <== NOT EXECUTED
struct stat statbuf;
if ( stat(path, &statbuf) )
a00080d0: e1a0100d mov r1, sp <== NOT EXECUTED a00080d4: eb0005c6 bl a00097f4 <stat> <== NOT EXECUTED a00080d8: e3500000 cmp r0, #0 <== NOT EXECUTED a00080dc: 1a000010 bne a0008124 <access+0x60> <== NOT EXECUTED
return -1;
if ( amode & R_OK ) {
a00080e0: e3140004 tst r4, #4 <== NOT EXECUTED a00080e4: 0a000002 beq a00080f4 <access+0x30> <== NOT EXECUTED
if (!( statbuf.st_mode & S_IREAD ))
a00080e8: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a00080ec: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a00080f0: 0a00000b beq a0008124 <access+0x60> <== NOT EXECUTED
return -1;
}
if ( amode & W_OK ) {
a00080f4: e3140002 tst r4, #2 <== NOT EXECUTED a00080f8: 0a000002 beq a0008108 <access+0x44> <== NOT EXECUTED
if ( !( statbuf.st_mode & S_IWRITE ) )
a00080fc: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a0008100: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED a0008104: 0a000006 beq a0008124 <access+0x60> <== NOT EXECUTED
return -1;
}
if ( amode & X_OK ) {
a0008108: e2140001 ands r0, r4, #1 <== NOT EXECUTED a000810c: 0a000005 beq a0008128 <access+0x64> <== NOT EXECUTED
if ( !( statbuf.st_mode & S_IEXEC ) )
a0008110: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a0008114: e3130040 tst r3, #64 ; 0x40 <== NOT EXECUTED
return -1;
}
return 0;
a0008118: 03e00000 mvneq r0, #0 <== NOT EXECUTED a000811c: 13a00000 movne r0, #0 <== NOT EXECUTED a0008120: ea000000 b a0008128 <access+0x64> <== NOT EXECUTED
return -1;
}
if ( amode & W_OK ) {
if ( !( statbuf.st_mode & S_IWRITE ) )
return -1;
a0008124: e3e00000 mvn r0, #0 <== NOT EXECUTED
if ( !( statbuf.st_mode & S_IEXEC ) )
return -1;
}
return 0;
}
a0008128: e28dd048 add sp, sp, #72 ; 0x48 <== NOT EXECUTED
a000812c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000956c <adjtime>:
int adjtime(
struct timeval *delta,
struct timeval *olddelta
)
{
a000956c: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED
long adjustment;
/*
* Simple validations
*/
if ( !delta )
a0009570: e2505000 subs r5, r0, #0 <== NOT EXECUTED
int adjtime(
struct timeval *delta,
struct timeval *olddelta
)
{
a0009574: e1a04001 mov r4, r1 <== NOT EXECUTED
long adjustment;
/*
* Simple validations
*/
if ( !delta )
a0009578: 0a000003 beq a000958c <adjtime+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )
a000957c: e5952004 ldr r2, [r5, #4] <== NOT EXECUTED a0009580: e59f30f0 ldr r3, [pc, #240] ; a0009678 <adjtime+0x10c> <== NOT EXECUTED a0009584: e1520003 cmp r2, r3 <== NOT EXECUTED a0009588: 9a000004 bls a00095a0 <adjtime+0x34> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000958c: eb0021da bl a0011cfc <__errno> <== NOT EXECUTED a0009590: e3a03016 mov r3, #22 <== NOT EXECUTED a0009594: e5803000 str r3, [r0] <== NOT EXECUTED a0009598: e3e00000 mvn r0, #0 <== NOT EXECUTED a000959c: ea000034 b a0009674 <adjtime+0x108> <== NOT EXECUTED
if ( olddelta ) {
a00095a0: e3510000 cmp r1, #0 <== NOT EXECUTED
olddelta->tv_sec = 0;
a00095a4: 13a03000 movne r3, #0 <== NOT EXECUTED a00095a8: 15813000 strne r3, [r1] <== NOT EXECUTED
olddelta->tv_usec = 0;
a00095ac: 15813004 strne r3, [r1, #4] <== NOT EXECUTED
}
/* convert delta to microseconds */
adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);
adjustment += delta->tv_usec;
a00095b0: e895000c ldm r5, {r2, r3} <== NOT EXECUTED
a00095b4: e59f10c0 ldr r1, [pc, #192] ; a000967c <adjtime+0x110> <== NOT EXECUTED
a00095b8: e0223291 mla r2, r1, r2, r3 <== NOT EXECUTED
/* too small to account for */
if ( adjustment < rtems_configuration_get_microseconds_per_tick() )
a00095bc: e59f30bc ldr r3, [pc, #188] ; a0009680 <adjtime+0x114> <== NOT EXECUTED a00095c0: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a00095c4: e1520003 cmp r2, r3 <== NOT EXECUTED a00095c8: 3a000028 bcc a0009670 <adjtime+0x104> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a00095cc: e59f30b0 ldr r3, [pc, #176] ; a0009684 <adjtime+0x118> <== NOT EXECUTED a00095d0: e5932000 ldr r2, [r3] <== NOT EXECUTED a00095d4: e2822001 add r2, r2, #1 <== NOT EXECUTED a00095d8: e5832000 str r2, [r3] <== NOT EXECUTED
* This prevents context switches while we are adjusting the TOD
*/
_Thread_Disable_dispatch();
_TOD_Get( &ts );
a00095dc: e1a0000d mov r0, sp <== NOT EXECUTED a00095e0: eb0005a7 bl a000ac84 <_TOD_Get> <== NOT EXECUTED
ts.tv_sec += delta->tv_sec;
a00095e4: e5953000 ldr r3, [r5] <== NOT EXECUTED
a00095e8: e89d0006 ldm sp, {r1, r2} <== NOT EXECUTED
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
a00095ec: e3a00ffa mov r0, #1000 ; 0x3e8 <== NOT EXECUTED
_Thread_Disable_dispatch();
_TOD_Get( &ts );
ts.tv_sec += delta->tv_sec;
a00095f0: e0811003 add r1, r1, r3 <== NOT EXECUTED
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
a00095f4: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED a00095f8: e0232390 mla r3, r0, r3, r2 <== NOT EXECUTED
/* if adjustment is too much positive */
while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
a00095fc: e59f0084 ldr r0, [pc, #132] ; a0009688 <adjtime+0x11c> <== NOT EXECUTED a0009600: ea000002 b a0009610 <adjtime+0xa4> <== NOT EXECUTED a0009604: e2833331 add r3, r3, #-1006632960 ; 0xc4000000 <== NOT EXECUTED a0009608: e2833865 add r3, r3, #6619136 ; 0x650000 <== NOT EXECUTED a000960c: e2833c36 add r3, r3, #13824 ; 0x3600 <== NOT EXECUTED a0009610: e1530000 cmp r3, r0 <== NOT EXECUTED a0009614: e1a02001 mov r2, r1 <== NOT EXECUTED a0009618: e2811001 add r1, r1, #1 <== NOT EXECUTED a000961c: 8afffff8 bhi a0009604 <adjtime+0x98> <== NOT EXECUTED
ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec++;
}
/* if adjustment is too much negative */
while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {
a0009620: e59f0064 ldr r0, [pc, #100] ; a000968c <adjtime+0x120> <== NOT EXECUTED a0009624: ea000002 b a0009634 <adjtime+0xc8> <== NOT EXECUTED
ts.tv_sec += delta->tv_sec;
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
/* if adjustment is too much positive */
while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
a0009628: e28335ee add r3, r3, #998244352 ; 0x3b800000 <== NOT EXECUTED a000962c: e283396b add r3, r3, #1753088 ; 0x1ac000 <== NOT EXECUTED a0009630: e2833c0a add r3, r3, #2560 ; 0xa00 <== NOT EXECUTED
ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec++;
}
/* if adjustment is too much negative */
while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {
a0009634: e1530000 cmp r3, r0 <== NOT EXECUTED
ts.tv_sec += delta->tv_sec;
ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;
/* if adjustment is too much positive */
while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {
a0009638: e1a01002 mov r1, r2 <== NOT EXECUTED a000963c: e2422001 sub r2, r2, #1 <== NOT EXECUTED
ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec++;
}
/* if adjustment is too much negative */
while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {
a0009640: 9afffff8 bls a0009628 <adjtime+0xbc> <== NOT EXECUTED a0009644: e28d0008 add r0, sp, #8 <== NOT EXECUTED a0009648: e5201008 str r1, [r0, #-8]! <== NOT EXECUTED
ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec--;
}
_TOD_Set( &ts );
a000964c: e1a0000d mov r0, sp <== NOT EXECUTED
ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec++;
}
/* if adjustment is too much negative */
while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {
a0009650: e58d3004 str r3, [sp, #4] <== NOT EXECUTED
ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;
ts.tv_sec--;
}
_TOD_Set( &ts );
a0009654: eb0005b0 bl a000ad1c <_TOD_Set> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009658: eb000b24 bl a000c2f0 <_Thread_Enable_dispatch> <== NOT EXECUTED
/* set the user's output */
if ( olddelta )
a000965c: e3540000 cmp r4, #0 <== NOT EXECUTED
*olddelta = *delta;
return 0;
a0009660: 01a00004 moveq r0, r4 <== NOT EXECUTED
_TOD_Set( &ts );
_Thread_Enable_dispatch();
/* set the user's output */
if ( olddelta )
a0009664: 0a000002 beq a0009674 <adjtime+0x108> <== NOT EXECUTED
*olddelta = *delta;
a0009668: e895000c ldm r5, {r2, r3} <== NOT EXECUTED
a000966c: e884000c stm r4, {r2, r3} <== NOT EXECUTED
adjustment = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);
adjustment += delta->tv_usec;
/* too small to account for */
if ( adjustment < rtems_configuration_get_microseconds_per_tick() )
return 0;
a0009670: e3a00000 mov r0, #0 <== NOT EXECUTED
/* set the user's output */
if ( olddelta )
*olddelta = *delta;
return 0;
}
a0009674: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED
a0009cbc <aio_cancel>:
* operation(s) cannot be canceled
*/
int aio_cancel(int fildes, struct aiocb *aiocbp)
{
a0009cbc: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
rtems_aio_request_chain *r_chain;
int result;
pthread_mutex_lock (&aio_request_queue.mutex);
a0009cc0: e59f4198 ldr r4, [pc, #408] ; a0009e60 <aio_cancel+0x1a4> <== NOT EXECUTED
* operation(s) cannot be canceled
*/
int aio_cancel(int fildes, struct aiocb *aiocbp)
{
a0009cc4: e1a07000 mov r7, r0 <== NOT EXECUTED a0009cc8: e1a05001 mov r5, r1 <== NOT EXECUTED
rtems_aio_request_chain *r_chain;
int result;
pthread_mutex_lock (&aio_request_queue.mutex);
a0009ccc: e1a00004 mov r0, r4 <== NOT EXECUTED a0009cd0: eb00041f bl a000ad54 <pthread_mutex_lock> <== NOT EXECUTED
if (fcntl (fildes, F_GETFD) < 0) {
a0009cd4: e1a00007 mov r0, r7 <== NOT EXECUTED a0009cd8: e3a01001 mov r1, #1 <== NOT EXECUTED a0009cdc: eb001a57 bl a0010640 <fcntl> <== NOT EXECUTED a0009ce0: e3500000 cmp r0, #0 <== NOT EXECUTED a0009ce4: aa000004 bge a0009cfc <aio_cancel+0x40> <== NOT EXECUTED
pthread_mutex_unlock(&aio_request_queue.mutex);
a0009ce8: e1a00004 mov r0, r4 <== NOT EXECUTED a0009cec: eb000437 bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one (EBADF);
a0009cf0: eb00273a bl a00139e0 <__errno> <== NOT EXECUTED a0009cf4: e3a03009 mov r3, #9 <== NOT EXECUTED a0009cf8: ea00002f b a0009dbc <aio_cancel+0x100> <== NOT EXECUTED
}
/* if aiocbp is NULL remove all request for given file descriptor */
if (aiocbp == NULL) {
a0009cfc: e3550000 cmp r5, #0 <== NOT EXECUTED a0009d00: 1a000026 bne a0009da0 <aio_cancel+0xe4> <== NOT EXECUTED
AIO_printf ("Cancel all requests\n");
r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
a0009d04: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a0009d08: e1a01007 mov r1, r7 <== NOT EXECUTED a0009d0c: e1a02005 mov r2, r5 <== NOT EXECUTED a0009d10: eb0000a5 bl a0009fac <rtems_aio_search_fd> <== NOT EXECUTED
if (r_chain == NULL) {
a0009d14: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0009d18: 1a000017 bne a0009d7c <aio_cancel+0xc0> <== NOT EXECUTED
AIO_printf ("Request chain not on [WQ]\n");
if (!rtems_chain_is_empty (&aio_request_queue.idle_req)) {
a0009d1c: e5942054 ldr r2, [r4, #84] ; 0x54 <== NOT EXECUTED a0009d20: e2843058 add r3, r4, #88 ; 0x58 <== NOT EXECUTED a0009d24: e1520003 cmp r2, r3 <== NOT EXECUTED a0009d28: 0a00003b beq a0009e1c <aio_cancel+0x160> <== NOT EXECUTED
r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req, fildes, 0);
a0009d2c: e2840054 add r0, r4, #84 ; 0x54 <== NOT EXECUTED a0009d30: e1a01007 mov r1, r7 <== NOT EXECUTED a0009d34: e1a02006 mov r2, r6 <== NOT EXECUTED a0009d38: eb00009b bl a0009fac <rtems_aio_search_fd> <== NOT EXECUTED
if (r_chain == NULL) {
a0009d3c: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0009d40: 0a000035 beq a0009e1c <aio_cancel+0x160> <== NOT EXECUTED
AIO_printf ("Request chain on [IQ]\n");
rtems_chain_extract (&r_chain->next_fd);
rtems_aio_remove_fd (r_chain);
pthread_mutex_destroy (&r_chain->mutex);
a0009d44: e285701c add r7, r5, #28 <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
a0009d48: eb000a19 bl a000c5b4 <_Chain_Extract> <== NOT EXECUTED
}
AIO_printf ("Request chain on [IQ]\n");
rtems_chain_extract (&r_chain->next_fd);
rtems_aio_remove_fd (r_chain);
a0009d4c: e1a00005 mov r0, r5 <== NOT EXECUTED a0009d50: eb000175 bl a000a32c <rtems_aio_remove_fd> <== NOT EXECUTED
pthread_mutex_destroy (&r_chain->mutex);
a0009d54: e1a00007 mov r0, r7 <== NOT EXECUTED a0009d58: eb00035a bl a000aac8 <pthread_mutex_destroy> <== NOT EXECUTED
pthread_cond_destroy (&r_chain->mutex);
a0009d5c: e1a00007 mov r0, r7 <== NOT EXECUTED a0009d60: eb000289 bl a000a78c <pthread_cond_destroy> <== NOT EXECUTED
free (r_chain);
a0009d64: e1a00005 mov r0, r5 <== NOT EXECUTED a0009d68: ebfff404 bl a0006d80 <free> <== NOT EXECUTED
pthread_mutex_unlock (&aio_request_queue.mutex);
a0009d6c: e1a00004 mov r0, r4 <== NOT EXECUTED a0009d70: eb000416 bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED
return AIO_CANCELED;
a0009d74: e1a05006 mov r5, r6 <== NOT EXECUTED a0009d78: ea000036 b a0009e58 <aio_cancel+0x19c> <== NOT EXECUTED
return AIO_ALLDONE;
}
AIO_printf ("Request chain on [WQ]\n");
pthread_mutex_lock (&r_chain->mutex);
a0009d7c: e286701c add r7, r6, #28 <== NOT EXECUTED a0009d80: e1a00007 mov r0, r7 <== NOT EXECUTED a0009d84: eb0003f2 bl a000ad54 <pthread_mutex_lock> <== NOT EXECUTED a0009d88: e1a00006 mov r0, r6 <== NOT EXECUTED a0009d8c: eb000a08 bl a000c5b4 <_Chain_Extract> <== NOT EXECUTED
rtems_chain_extract (&r_chain->next_fd);
rtems_aio_remove_fd (r_chain);
a0009d90: e1a00006 mov r0, r6 <== NOT EXECUTED a0009d94: eb000164 bl a000a32c <rtems_aio_remove_fd> <== NOT EXECUTED
pthread_mutex_unlock (&r_chain->mutex);
a0009d98: e1a00007 mov r0, r7 <== NOT EXECUTED a0009d9c: ea00002a b a0009e4c <aio_cancel+0x190> <== NOT EXECUTED
pthread_mutex_unlock (&aio_request_queue.mutex);
return AIO_CANCELED;
} else {
AIO_printf ("Cancel request\n");
if (aiocbp->aio_fildes != fildes) {
a0009da0: e5956000 ldr r6, [r5] <== NOT EXECUTED a0009da4: e1560007 cmp r6, r7 <== NOT EXECUTED a0009da8: 0a000006 beq a0009dc8 <aio_cancel+0x10c> <== NOT EXECUTED
pthread_mutex_unlock (&aio_request_queue.mutex);
a0009dac: e1a00004 mov r0, r4 <== NOT EXECUTED a0009db0: eb000406 bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one (EINVAL);
a0009db4: eb002709 bl a00139e0 <__errno> <== NOT EXECUTED a0009db8: e3a03016 mov r3, #22 <== NOT EXECUTED a0009dbc: e5803000 str r3, [r0] <== NOT EXECUTED a0009dc0: e3e05000 mvn r5, #0 <== NOT EXECUTED a0009dc4: ea000023 b a0009e58 <aio_cancel+0x19c> <== NOT EXECUTED
}
r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
a0009dc8: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a0009dcc: e1a01006 mov r1, r6 <== NOT EXECUTED a0009dd0: e3a02000 mov r2, #0 <== NOT EXECUTED a0009dd4: eb000074 bl a0009fac <rtems_aio_search_fd> <== NOT EXECUTED
if (r_chain == NULL) {
a0009dd8: e2507000 subs r7, r0, #0 <== NOT EXECUTED a0009ddc: 1a000012 bne a0009e2c <aio_cancel+0x170> <== NOT EXECUTED
if (!rtems_chain_is_empty (&aio_request_queue.idle_req)) {
a0009de0: e5942054 ldr r2, [r4, #84] ; 0x54 <== NOT EXECUTED a0009de4: e2843058 add r3, r4, #88 ; 0x58 <== NOT EXECUTED a0009de8: e1520003 cmp r2, r3 <== NOT EXECUTED a0009dec: 0a00000a beq a0009e1c <aio_cancel+0x160> <== NOT EXECUTED
r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req, fildes, 0);
a0009df0: e2840054 add r0, r4, #84 ; 0x54 <== NOT EXECUTED a0009df4: e1a01006 mov r1, r6 <== NOT EXECUTED a0009df8: e1a02007 mov r2, r7 <== NOT EXECUTED a0009dfc: eb00006a bl a0009fac <rtems_aio_search_fd> <== NOT EXECUTED
if (r_chain == NULL) {
a0009e00: e3500000 cmp r0, #0 <== NOT EXECUTED a0009e04: 0affffe8 beq a0009dac <aio_cancel+0xf0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one (EINVAL);
}
AIO_printf ("Request on [IQ]\n");
result = rtems_aio_remove_req (&r_chain->perfd, aiocbp);
a0009e08: e1a01005 mov r1, r5 <== NOT EXECUTED a0009e0c: e2800008 add r0, r0, #8 <== NOT EXECUTED a0009e10: eb000157 bl a000a374 <rtems_aio_remove_req> <== NOT EXECUTED a0009e14: e1a05000 mov r5, r0 <== NOT EXECUTED a0009e18: ea00000c b a0009e50 <aio_cancel+0x194> <== NOT EXECUTED
pthread_mutex_unlock (&aio_request_queue.mutex);
return result;
} else {
pthread_mutex_unlock (&aio_request_queue.mutex);
a0009e1c: e1a00004 mov r0, r4 <== NOT EXECUTED a0009e20: eb0003ea bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED
return AIO_ALLDONE;
a0009e24: e3a05002 mov r5, #2 <== NOT EXECUTED a0009e28: ea00000a b a0009e58 <aio_cancel+0x19c> <== NOT EXECUTED
}
}
AIO_printf ("Request on [WQ]\n");
pthread_mutex_lock (&r_chain->mutex);
a0009e2c: e287801c add r8, r7, #28 <== NOT EXECUTED a0009e30: e1a00008 mov r0, r8 <== NOT EXECUTED a0009e34: eb0003c6 bl a000ad54 <pthread_mutex_lock> <== NOT EXECUTED
result = rtems_aio_remove_req (&r_chain->perfd, aiocbp);
a0009e38: e1a01005 mov r1, r5 <== NOT EXECUTED a0009e3c: e2870008 add r0, r7, #8 <== NOT EXECUTED a0009e40: eb00014b bl a000a374 <rtems_aio_remove_req> <== NOT EXECUTED a0009e44: e1a05000 mov r5, r0 <== NOT EXECUTED
pthread_mutex_unlock (&r_chain->mutex);
a0009e48: e1a00008 mov r0, r8 <== NOT EXECUTED a0009e4c: eb0003df bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED
pthread_mutex_unlock (&aio_request_queue.mutex);
a0009e50: e1a00004 mov r0, r4 <== NOT EXECUTED a0009e54: eb0003dd bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED
return result;
}
return AIO_ALLDONE;
}
a0009e58: e1a00005 mov r0, r5 <== NOT EXECUTED
a0009e5c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0009e64 <aio_error>:
int
aio_error (const struct aiocb *aiocbp)
{
return aiocbp->error_code;
}
a0009e64: e5900030 ldr r0, [r0, #48] ; 0x30 <== NOT EXECUTED a0009e68: e12fff1e bx lr <== NOT EXECUTED
a0009e6c <aio_fsync>:
)
{
rtems_aio_request *req;
int mode;
if (op != O_SYNC)
a0009e6c: e3500a02 cmp r0, #8192 ; 0x2000 <== NOT EXECUTED
int aio_fsync(
int op,
struct aiocb *aiocbp
)
{
a0009e70: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a0009e74: e1a04001 mov r4, r1 <== NOT EXECUTED
rtems_aio_request *req;
int mode;
if (op != O_SYNC)
rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
a0009e78: 13a05016 movne r5, #22 <== NOT EXECUTED
)
{
rtems_aio_request *req;
int mode;
if (op != O_SYNC)
a0009e7c: 1a00000c bne a0009eb4 <aio_fsync+0x48> <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
mode = fcntl (aiocbp->aio_fildes, F_GETFL);
a0009e80: e5910000 ldr r0, [r1] <== NOT EXECUTED a0009e84: e3a01003 mov r1, #3 <== NOT EXECUTED a0009e88: eb0019ec bl a0010640 <fcntl> <== NOT EXECUTED
if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a0009e8c: e2000003 and r0, r0, #3 <== NOT EXECUTED a0009e90: e2400001 sub r0, r0, #1 <== NOT EXECUTED a0009e94: e3500001 cmp r0, #1 <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);
a0009e98: 83a05009 movhi r5, #9 <== NOT EXECUTED
if (op != O_SYNC)
rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
mode = fcntl (aiocbp->aio_fildes, F_GETFL);
if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a0009e9c: 8a000004 bhi a0009eb4 <aio_fsync+0x48> <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);
req = malloc (sizeof (rtems_aio_request));
a0009ea0: e3a00018 mov r0, #24 <== NOT EXECUTED a0009ea4: ebfff52b bl a0007358 <malloc> <== NOT EXECUTED
if (req == NULL)
a0009ea8: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0009eac: 1a000007 bne a0009ed0 <aio_fsync+0x64> <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);
a0009eb0: e3a0500b mov r5, #11 <== NOT EXECUTED a0009eb4: e3e03000 mvn r3, #0 <== NOT EXECUTED a0009eb8: e5845030 str r5, [r4, #48] ; 0x30 <== NOT EXECUTED a0009ebc: e5843034 str r3, [r4, #52] ; 0x34 <== NOT EXECUTED a0009ec0: eb0026c6 bl a00139e0 <__errno> <== NOT EXECUTED a0009ec4: e5805000 str r5, [r0] <== NOT EXECUTED
req->aiocbp = aiocbp;
req->aiocbp->aio_lio_opcode = LIO_SYNC;
return rtems_aio_enqueue (req);
}
a0009ec8: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009ecc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
req = malloc (sizeof (rtems_aio_request));
if (req == NULL)
rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);
req->aiocbp = aiocbp;
a0009ed0: e5834014 str r4, [r3, #20] <== NOT EXECUTED
req->aiocbp->aio_lio_opcode = LIO_SYNC;
a0009ed4: e3a03003 mov r3, #3 <== NOT EXECUTED a0009ed8: e584302c str r3, [r4, #44] ; 0x2c <== NOT EXECUTED
return rtems_aio_enqueue (req);
}
a0009edc: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);
req->aiocbp = aiocbp;
req->aiocbp->aio_lio_opcode = LIO_SYNC;
return rtems_aio_enqueue (req);
a0009ee0: ea00013e b a000a3e0 <rtems_aio_enqueue> <== NOT EXECUTED
a000a5ec <aio_read>:
* 0 - otherwise
*/
int
aio_read (struct aiocb *aiocbp)
{
a000a5ec: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
rtems_aio_request *req;
int mode;
mode = fcntl (aiocbp->aio_fildes, F_GETFL);
a000a5f0: e3a01003 mov r1, #3 <== NOT EXECUTED
* 0 - otherwise
*/
int
aio_read (struct aiocb *aiocbp)
{
a000a5f4: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_aio_request *req;
int mode;
mode = fcntl (aiocbp->aio_fildes, F_GETFL);
a000a5f8: e5900000 ldr r0, [r0] <== NOT EXECUTED a000a5fc: eb00180f bl a0010640 <fcntl> <== NOT EXECUTED
if (!(((mode & O_ACCMODE) == O_RDONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a000a600: e2000003 and r0, r0, #3 <== NOT EXECUTED a000a604: e3500002 cmp r0, #2 <== NOT EXECUTED a000a608: 13500000 cmpne r0, #0 <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);
a000a60c: 13a05009 movne r5, #9 <== NOT EXECUTED
{
rtems_aio_request *req;
int mode;
mode = fcntl (aiocbp->aio_fildes, F_GETFL);
if (!(((mode & O_ACCMODE) == O_RDONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a000a610: 1a00000d bne a000a64c <aio_read+0x60> <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);
if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
a000a614: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000a618: e3530000 cmp r3, #0 <== NOT EXECUTED a000a61c: 1a000007 bne a000a640 <aio_read+0x54> <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
if (aiocbp->aio_offset < 0)
a000a620: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000a624: e3530000 cmp r3, #0 <== NOT EXECUTED a000a628: ba000004 blt a000a640 <aio_read+0x54> <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
req = malloc (sizeof (rtems_aio_request));
a000a62c: e3a00018 mov r0, #24 <== NOT EXECUTED a000a630: ebfff348 bl a0007358 <malloc> <== NOT EXECUTED
if (req == NULL)
a000a634: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000a638: 1a00000a bne a000a668 <aio_read+0x7c> <== NOT EXECUTED a000a63c: ea000001 b a000a648 <aio_read+0x5c> <== NOT EXECUTED
if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
if (aiocbp->aio_offset < 0)
rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
a000a640: e3a05016 mov r5, #22 <== NOT EXECUTED a000a644: ea000000 b a000a64c <aio_read+0x60> <== NOT EXECUTED
req = malloc (sizeof (rtems_aio_request));
if (req == NULL)
rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);
a000a648: e3a0500b mov r5, #11 <== NOT EXECUTED a000a64c: e3e03000 mvn r3, #0 <== NOT EXECUTED a000a650: e5845030 str r5, [r4, #48] ; 0x30 <== NOT EXECUTED a000a654: e5843034 str r3, [r4, #52] ; 0x34 <== NOT EXECUTED a000a658: eb0024e0 bl a00139e0 <__errno> <== NOT EXECUTED a000a65c: e5805000 str r5, [r0] <== NOT EXECUTED
req->aiocbp = aiocbp;
req->aiocbp->aio_lio_opcode = LIO_READ;
return rtems_aio_enqueue (req);
}
a000a660: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000a664: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
req = malloc (sizeof (rtems_aio_request));
if (req == NULL)
rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);
req->aiocbp = aiocbp;
a000a668: e5834014 str r4, [r3, #20] <== NOT EXECUTED
req->aiocbp->aio_lio_opcode = LIO_READ;
a000a66c: e3a03001 mov r3, #1 <== NOT EXECUTED a000a670: e584302c str r3, [r4, #44] ; 0x2c <== NOT EXECUTED
return rtems_aio_enqueue (req);
}
a000a674: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);
req->aiocbp = aiocbp;
req->aiocbp->aio_lio_opcode = LIO_READ;
return rtems_aio_enqueue (req);
a000a678: eaffff58 b a000a3e0 <rtems_aio_enqueue> <== NOT EXECUTED
a000a67c <aio_return>:
ssize_t
aio_return (const struct aiocb *aiocbp)
{
return aiocbp->return_value;
}
a000a67c: e5900034 ldr r0, [r0, #52] ; 0x34 <== NOT EXECUTED a000a680: e12fff1e bx lr <== NOT EXECUTED
a00091c0 <aio_suspend>:
int aio_suspend(
const struct aiocb * const list[] __attribute__((unused)),
int nent __attribute__((unused)),
const struct timespec *timeout __attribute__((unused))
)
{
a00091c0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a00091c4: eb0021ef bl a0011988 <__errno> <== NOT EXECUTED a00091c8: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a00091cc: e5803000 str r3, [r0] <== NOT EXECUTED
}
a00091d0: e3e00000 mvn r0, #0 <== NOT EXECUTED
a00091d4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000a684 <aio_write>:
* 0 - otherwise
*/
int
aio_write (struct aiocb *aiocbp)
{
a000a684: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
rtems_aio_request *req;
int mode;
mode = fcntl (aiocbp->aio_fildes, F_GETFL);
a000a688: e3a01003 mov r1, #3 <== NOT EXECUTED
* 0 - otherwise
*/
int
aio_write (struct aiocb *aiocbp)
{
a000a68c: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_aio_request *req;
int mode;
mode = fcntl (aiocbp->aio_fildes, F_GETFL);
a000a690: e5900000 ldr r0, [r0] <== NOT EXECUTED a000a694: eb0017e9 bl a0010640 <fcntl> <== NOT EXECUTED
if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a000a698: e2000003 and r0, r0, #3 <== NOT EXECUTED a000a69c: e2400001 sub r0, r0, #1 <== NOT EXECUTED a000a6a0: e3500001 cmp r0, #1 <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);
a000a6a4: 83a05009 movhi r5, #9 <== NOT EXECUTED
{
rtems_aio_request *req;
int mode;
mode = fcntl (aiocbp->aio_fildes, F_GETFL);
if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
a000a6a8: 8a00000d bhi a000a6e4 <aio_write+0x60> <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);
if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
a000a6ac: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000a6b0: e3530000 cmp r3, #0 <== NOT EXECUTED a000a6b4: 1a000007 bne a000a6d8 <aio_write+0x54> <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
if (aiocbp->aio_offset < 0)
a000a6b8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000a6bc: e3530000 cmp r3, #0 <== NOT EXECUTED a000a6c0: ba000004 blt a000a6d8 <aio_write+0x54> <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
req = malloc (sizeof (rtems_aio_request));
a000a6c4: e3a00018 mov r0, #24 <== NOT EXECUTED a000a6c8: ebfff322 bl a0007358 <malloc> <== NOT EXECUTED
if (req == NULL)
a000a6cc: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000a6d0: 1a00000a bne a000a700 <aio_write+0x7c> <== NOT EXECUTED a000a6d4: ea000001 b a000a6e0 <aio_write+0x5c> <== NOT EXECUTED
if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
if (aiocbp->aio_offset < 0)
rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);
a000a6d8: e3a05016 mov r5, #22 <== NOT EXECUTED a000a6dc: ea000000 b a000a6e4 <aio_write+0x60> <== NOT EXECUTED
req = malloc (sizeof (rtems_aio_request));
if (req == NULL)
rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);
a000a6e0: e3a0500b mov r5, #11 <== NOT EXECUTED a000a6e4: e3e03000 mvn r3, #0 <== NOT EXECUTED a000a6e8: e5845030 str r5, [r4, #48] ; 0x30 <== NOT EXECUTED a000a6ec: e5843034 str r3, [r4, #52] ; 0x34 <== NOT EXECUTED a000a6f0: eb0024ba bl a00139e0 <__errno> <== NOT EXECUTED a000a6f4: e5805000 str r5, [r0] <== NOT EXECUTED
req->aiocbp = aiocbp;
req->aiocbp->aio_lio_opcode = LIO_WRITE;
return rtems_aio_enqueue (req);
}
a000a6f8: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000a6fc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
req = malloc (sizeof (rtems_aio_request));
if (req == NULL)
rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);
req->aiocbp = aiocbp;
a000a700: e5834014 str r4, [r3, #20] <== NOT EXECUTED
req->aiocbp->aio_lio_opcode = LIO_WRITE;
a000a704: e3a03002 mov r3, #2 <== NOT EXECUTED a000a708: e584302c str r3, [r4, #44] ; 0x2c <== NOT EXECUTED
return rtems_aio_enqueue (req);
}
a000a70c: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);
req->aiocbp = aiocbp;
req->aiocbp->aio_lio_opcode = LIO_WRITE;
return rtems_aio_enqueue (req);
a000a710: eaffff32 b a000a3e0 <rtems_aio_enqueue> <== NOT EXECUTED
a000b1cc <alarm>:
}
unsigned int alarm(
unsigned int seconds
)
{
a000b1cc: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
/*
* Initialize the timer used to implement alarm().
*/
if ( !the_timer->routine ) {
a000b1d0: e59f6080 ldr r6, [pc, #128] ; a000b258 <alarm+0x8c> <== NOT EXECUTED
}
unsigned int alarm(
unsigned int seconds
)
{
a000b1d4: e1a05000 mov r5, r0 <== NOT EXECUTED
/*
* Initialize the timer used to implement alarm().
*/
if ( !the_timer->routine ) {
a000b1d8: e596401c ldr r4, [r6, #28] <== NOT EXECUTED a000b1dc: e3540000 cmp r4, #0 <== NOT EXECUTED a000b1e0: 1a000005 bne a000b1fc <alarm+0x30> <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a000b1e4: e59f3070 ldr r3, [pc, #112] ; a000b25c <alarm+0x90> <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a000b1e8: e5864008 str r4, [r6, #8] <== NOT EXECUTED
the_watchdog->routine = routine; the_watchdog->id = id;
a000b1ec: e5864020 str r4, [r6, #32] <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a000b1f0: e586301c str r3, [r6, #28] <== NOT EXECUTED
the_watchdog->id = id; the_watchdog->user_data = user_data;
a000b1f4: e5864024 str r4, [r6, #36] ; 0x24 <== NOT EXECUTED a000b1f8: ea00000e b a000b238 <alarm+0x6c> <== NOT EXECUTED
_Watchdog_Initialize( the_timer, _POSIX_signals_Alarm_TSR, 0, NULL );
} else {
Watchdog_States state;
state = _Watchdog_Remove( the_timer );
a000b1fc: e1a00006 mov r0, r6 <== NOT EXECUTED a000b200: eb0012dd bl a000fd7c <_Watchdog_Remove> <== NOT EXECUTED
if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
a000b204: e2400002 sub r0, r0, #2 <== NOT EXECUTED a000b208: e3500001 cmp r0, #1 <== NOT EXECUTED
unsigned int alarm(
unsigned int seconds
)
{
unsigned int remaining = 0;
a000b20c: 83a04000 movhi r4, #0 <== NOT EXECUTED
_Watchdog_Initialize( the_timer, _POSIX_signals_Alarm_TSR, 0, NULL );
} else {
Watchdog_States state;
state = _Watchdog_Remove( the_timer );
if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
a000b210: 8a000008 bhi a000b238 <alarm+0x6c> <== NOT EXECUTED
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
remaining = the_timer->initial -
((the_timer->stop_time - the_timer->start_time) / TOD_TICKS_PER_SECOND);
a000b214: e5962018 ldr r2, [r6, #24] <== NOT EXECUTED a000b218: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED
* The stop_time and start_time fields are snapshots of ticks since
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
remaining = the_timer->initial -
a000b21c: e596400c ldr r4, [r6, #12] <== NOT EXECUTED
((the_timer->stop_time - the_timer->start_time) / TOD_TICKS_PER_SECOND);
a000b220: e0636002 rsb r6, r3, r2 <== NOT EXECUTED a000b224: eb000975 bl a000d800 <TOD_TICKS_PER_SECOND_method> <== NOT EXECUTED a000b228: e1a01000 mov r1, r0 <== NOT EXECUTED a000b22c: e1a00006 mov r0, r6 <== NOT EXECUTED a000b230: eb0037be bl a0019130 <__aeabi_uidiv> <== NOT EXECUTED
* The stop_time and start_time fields are snapshots of ticks since
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
remaining = the_timer->initial -
a000b234: e0604004 rsb r4, r0, r4 <== NOT EXECUTED
((the_timer->stop_time - the_timer->start_time) / TOD_TICKS_PER_SECOND);
}
}
if ( seconds )
a000b238: e3550000 cmp r5, #0 <== NOT EXECUTED a000b23c: 0a000003 beq a000b250 <alarm+0x84> <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a000b240: e59f1010 ldr r1, [pc, #16] ; a000b258 <alarm+0x8c> <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
a000b244: e59f0014 ldr r0, [pc, #20] ; a000b260 <alarm+0x94> <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a000b248: e581500c str r5, [r1, #12] <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
a000b24c: eb001272 bl a000fc1c <_Watchdog_Insert> <== NOT EXECUTED
_Watchdog_Insert_seconds( the_timer, seconds );
return remaining;
}
a000b250: e1a00004 mov r0, r4 <== NOT EXECUTED
a000b254: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0004d88 <arm_interrupt_disable>:
ARM_SWITCH_BACK
: [arm_switch_reg] "=&r" (arm_switch_reg), [level] "=&r" (level)
);
return level;
}
a0004d88: e10f0000 mrs r0, CPSR <== NOT EXECUTED a0004d8c: e3803080 orr r3, r0, #128 ; 0x80 <== NOT EXECUTED a0004d90: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0004d94: e12fff1e bx lr <== NOT EXECUTED
a00076c0 <cfgetispeed>:
speed_t cfgetispeed(
const struct termios *tp
)
{
return (tp->c_cflag / (CIBAUD / CBAUD)) & CBAUD;
a00076c0: e1d030ba ldrh r3, [r0, #10] <== NOT EXECUTED
}
a00076c4: e59f0004 ldr r0, [pc, #4] ; a00076d0 <cfgetispeed+0x10> <== NOT EXECUTED a00076c8: e0030000 and r0, r3, r0 <== NOT EXECUTED a00076cc: e12fff1e bx lr <== NOT EXECUTED
a00076d4 <cfgetospeed>:
speed_t cfgetospeed(
const struct termios *tp
)
{
return tp->c_cflag & CBAUD;
a00076d4: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED
}
a00076d8: e59f0004 ldr r0, [pc, #4] ; a00076e4 <cfgetospeed+0x10> <== NOT EXECUTED a00076dc: e0030000 and r0, r3, r0 <== NOT EXECUTED a00076e0: e12fff1e bx lr <== NOT EXECUTED
a00076e8 <cfsetispeed>:
int cfsetispeed(
struct termios *tp,
speed_t speed
)
{
if ( speed & ~CBAUD )
a00076e8: e3c13a01 bic r3, r1, #4096 ; 0x1000 <== NOT EXECUTED a00076ec: e3d3300f bics r3, r3, #15 <== NOT EXECUTED
int cfsetispeed(
struct termios *tp,
speed_t speed
)
{
a00076f0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( speed & ~CBAUD )
a00076f4: 0a000004 beq a000770c <cfsetispeed+0x24> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a00076f8: eb002dfe bl a0012ef8 <__errno> <== NOT EXECUTED
a00076fc: e3a03016 mov r3, #22 <== NOT EXECUTED
a0007700: e5803000 str r3, [r0] <== NOT EXECUTED
a0007704: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0007708: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
tp->c_cflag = (tp->c_cflag & ~CIBAUD) | (speed * (CIBAUD / CBAUD));
a000770c: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED a0007710: e3c22201 bic r2, r2, #268435456 ; 0x10000000 <== NOT EXECUTED a0007714: e3c2280f bic r2, r2, #983040 ; 0xf0000 <== NOT EXECUTED a0007718: e1821801 orr r1, r2, r1, lsl #16 <== NOT EXECUTED a000771c: e5801008 str r1, [r0, #8] <== NOT EXECUTED
return 0;
a0007720: e1a00003 mov r0, r3 <== NOT EXECUTED
}
a0007724: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0007728 <cfsetospeed>:
int cfsetospeed(
struct termios *tp,
speed_t speed
)
{
if ( speed & ~CBAUD )
a0007728: e3c13a01 bic r3, r1, #4096 ; 0x1000 <== NOT EXECUTED a000772c: e3d3300f bics r3, r3, #15 <== NOT EXECUTED
int cfsetospeed(
struct termios *tp,
speed_t speed
)
{
a0007730: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( speed & ~CBAUD )
a0007734: 0a000004 beq a000774c <cfsetospeed+0x24> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0007738: eb002dee bl a0012ef8 <__errno> <== NOT EXECUTED
a000773c: e3a03016 mov r3, #22 <== NOT EXECUTED
a0007740: e5803000 str r3, [r0] <== NOT EXECUTED
a0007744: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0007748: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
tp->c_cflag = (tp->c_cflag & ~CBAUD) | speed;
a000774c: e5902008 ldr r2, [r0, #8] <== NOT EXECUTED a0007750: e3c22a01 bic r2, r2, #4096 ; 0x1000 <== NOT EXECUTED a0007754: e3c2200f bic r2, r2, #15 <== NOT EXECUTED a0007758: e1811002 orr r1, r1, r2 <== NOT EXECUTED a000775c: e5801008 str r1, [r0, #8] <== NOT EXECUTED
return 0;
a0007760: e1a00003 mov r0, r3 <== NOT EXECUTED
}
a0007764: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000e0bc <chdir>:
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
a000e0bc: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
a000e0c0: e2505000 subs r5, r0, #0 <== NOT EXECUTED
#include <rtems/seterr.h>
int chdir(
const char *pathname
)
{
a000e0c4: e24dd018 sub sp, sp, #24 <== NOT EXECUTED
rtems_filesystem_location_info_t loc;
int result;
if ( !pathname )
a000e0c8: 1a000002 bne a000e0d8 <chdir+0x1c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a000e0cc: eb000cdc bl a0011444 <__errno> <== NOT EXECUTED a000e0d0: e3a0300e mov r3, #14 <== NOT EXECUTED a000e0d4: ea000013 b a000e128 <chdir+0x6c> <== NOT EXECUTED
/*
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
a000e0d8: eb001098 bl a0012340 <strlen> <== NOT EXECUTED a000e0dc: e28d4004 add r4, sp, #4 <== NOT EXECUTED a000e0e0: e1a01000 mov r1, r0 <== NOT EXECUTED a000e0e4: e3a02001 mov r2, #1 <== NOT EXECUTED a000e0e8: e1a00005 mov r0, r5 <== NOT EXECUTED a000e0ec: e1a03004 mov r3, r4 <== NOT EXECUTED a000e0f0: e58d2000 str r2, [sp] <== NOT EXECUTED a000e0f4: ebffe08c bl a000632c <rtems_filesystem_evaluate_path> <== NOT EXECUTED
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
if ( result != 0 )
a000e0f8: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000e0fc: 1a000017 bne a000e160 <chdir+0xa4> <== NOT EXECUTED
return -1;
/*
* Verify you can change directory into this node.
*/
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
a000e100: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000e104: e1a00004 mov r0, r4 <== NOT EXECUTED a000e108: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a000e10c: e12fff33 blx r3 <== NOT EXECUTED a000e110: e3500001 cmp r0, #1 <== NOT EXECUTED a000e114: 0a000005 beq a000e130 <chdir+0x74> <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a000e118: e1a00004 mov r0, r4 <== NOT EXECUTED a000e11c: ebffe0b2 bl a00063ec <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTDIR );
a000e120: eb000cc7 bl a0011444 <__errno> <== NOT EXECUTED a000e124: e3a03014 mov r3, #20 <== NOT EXECUTED a000e128: e5803000 str r3, [r0] <== NOT EXECUTED a000e12c: ea00000b b a000e160 <chdir+0xa4> <== NOT EXECUTED
}
rtems_filesystem_freenode( &rtems_filesystem_current );
a000e130: e59f6034 ldr r6, [pc, #52] ; a000e16c <chdir+0xb0> <== NOT EXECUTED a000e134: e5960000 ldr r0, [r6] <== NOT EXECUTED a000e138: e2800004 add r0, r0, #4 <== NOT EXECUTED a000e13c: ebffe0aa bl a00063ec <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_filesystem_current = loc;
a000e140: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a000e144: e596c000 ldr ip, [r6] <== NOT EXECUTED
a000e148: e28cc004 add ip, ip, #4 <== NOT EXECUTED
a000e14c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000e150: e5943000 ldr r3, [r4] <== NOT EXECUTED
return 0;
a000e154: e1a00005 mov r0, r5 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTDIR );
}
rtems_filesystem_freenode( &rtems_filesystem_current );
rtems_filesystem_current = loc;
a000e158: e58c3000 str r3, [ip] <== NOT EXECUTED
return 0;
a000e15c: ea000000 b a000e164 <chdir+0xa8> <== NOT EXECUTED
* Get the node where we wish to go.
*/
result = rtems_filesystem_evaluate_path(
pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true );
if ( result != 0 )
return -1;
a000e160: e3e00000 mvn r0, #0 <== NOT EXECUTED
rtems_filesystem_freenode( &rtems_filesystem_current );
rtems_filesystem_current = loc;
return 0;
}
a000e164: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a000e168: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0007a40 <chmod>:
int chmod(
const char *path,
mode_t mode
)
{
a0007a40: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a0007a44: e24dd018 sub sp, sp, #24 <== NOT EXECUTED
a0007a48: e1a05001 mov r5, r1 <== NOT EXECUTED
a0007a4c: e1a06000 mov r6, r0 <== NOT EXECUTED
int status;
rtems_filesystem_location_info_t loc;
int result;
status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true );
a0007a50: eb003493 bl a0014ca4 <strlen> <== NOT EXECUTED a0007a54: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0007a58: e3a03001 mov r3, #1 <== NOT EXECUTED a0007a5c: e1a01000 mov r1, r0 <== NOT EXECUTED a0007a60: e58d3000 str r3, [sp] <== NOT EXECUTED a0007a64: e1a00006 mov r0, r6 <== NOT EXECUTED a0007a68: e3a02000 mov r2, #0 <== NOT EXECUTED a0007a6c: e1a03004 mov r3, r4 <== NOT EXECUTED a0007a70: eb00004e bl a0007bb0 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
if ( status != 0 )
a0007a74: e3500000 cmp r0, #0 <== NOT EXECUTED
return -1;
a0007a78: 13e05000 mvnne r5, #0 <== NOT EXECUTED
int status;
rtems_filesystem_location_info_t loc;
int result;
status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true );
if ( status != 0 )
a0007a7c: 1a000007 bne a0007aa0 <chmod+0x60> <== NOT EXECUTED
return -1;
result = (*loc.handlers->fchmod_h)( &loc, mode );
a0007a80: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a0007a84: e1a01005 mov r1, r5 <== NOT EXECUTED a0007a88: e1a00004 mov r0, r4 <== NOT EXECUTED a0007a8c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0007a90: e12fff33 blx r3 <== NOT EXECUTED a0007a94: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a0007a98: e1a00004 mov r0, r4 <== NOT EXECUTED a0007a9c: eb000073 bl a0007c70 <rtems_filesystem_freenode> <== NOT EXECUTED
return result;
}
a0007aa0: e1a00005 mov r0, r5 <== NOT EXECUTED
a0007aa4: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a0007aa8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0007b28 <chown>:
int chown(
const char *path,
uid_t owner,
gid_t group
)
{
a0007b28: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a0007b2c: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED
return _chown_helper( path, owner, group, true );
a0007b30: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED a0007b34: e1a02822 lsr r2, r2, #16 <== NOT EXECUTED a0007b38: e3a03001 mov r3, #1 <== NOT EXECUTED a0007b3c: eaffffda b a0007aac <_chown_helper> <== NOT EXECUTED
a0006170 <chroot>:
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
a0006170: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
int result;
rtems_filesystem_location_info_t loc;
/* an automatic call to new private env the first time */
if (rtems_current_user_env == &rtems_global_user_env) {
a0006174: e59f50b4 ldr r5, [pc, #180] ; a0006230 <chroot+0xc0> <== NOT EXECUTED a0006178: e59f30b4 ldr r3, [pc, #180] ; a0006234 <chroot+0xc4> <== NOT EXECUTED
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
a000617c: e24dd018 sub sp, sp, #24 <== NOT EXECUTED
int result;
rtems_filesystem_location_info_t loc;
/* an automatic call to new private env the first time */
if (rtems_current_user_env == &rtems_global_user_env) {
a0006180: e5954000 ldr r4, [r5] <== NOT EXECUTED
#include <rtems/seterr.h>
int chroot(
const char *pathname
)
{
a0006184: e1a06000 mov r6, r0 <== NOT EXECUTED
int result;
rtems_filesystem_location_info_t loc;
/* an automatic call to new private env the first time */
if (rtems_current_user_env == &rtems_global_user_env) {
a0006188: e1540003 cmp r4, r3 <== NOT EXECUTED a000618c: 1a000007 bne a00061b0 <chroot+0x40> <== NOT EXECUTED
rtems_libio_set_private_env(); /* try to set a new private env*/
a0006190: eb0004c7 bl a00074b4 <rtems_libio_set_private_env> <== NOT EXECUTED
if (rtems_current_user_env == &rtems_global_user_env) /* not ok */
a0006194: e5953000 ldr r3, [r5] <== NOT EXECUTED a0006198: e1530004 cmp r3, r4 <== NOT EXECUTED a000619c: 1a000003 bne a00061b0 <chroot+0x40> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
a00061a0: eb002ca7 bl a0011444 <__errno> <== NOT EXECUTED a00061a4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00061a8: e5803000 str r3, [r0] <== NOT EXECUTED a00061ac: ea000008 b a00061d4 <chroot+0x64> <== NOT EXECUTED
}
result = chdir(pathname);
a00061b0: e1a00006 mov r0, r6 <== NOT EXECUTED a00061b4: eb001fc0 bl a000e0bc <chdir> <== NOT EXECUTED
if (result) {
a00061b8: e2502000 subs r2, r0, #0 <== NOT EXECUTED a00061bc: 0a000006 beq a00061dc <chroot+0x6c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( errno );
a00061c0: eb002c9f bl a0011444 <__errno> <== NOT EXECUTED a00061c4: e1a04000 mov r4, r0 <== NOT EXECUTED a00061c8: eb002c9d bl a0011444 <__errno> <== NOT EXECUTED a00061cc: e5903000 ldr r3, [r0] <== NOT EXECUTED a00061d0: e5843000 str r3, [r4] <== NOT EXECUTED a00061d4: e3e00000 mvn r0, #0 <== NOT EXECUTED a00061d8: ea000012 b a0006228 <chroot+0xb8> <== NOT EXECUTED
}
/* clone the new root location */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
a00061dc: e28d4004 add r4, sp, #4 <== NOT EXECUTED a00061e0: e59f0050 ldr r0, [pc, #80] ; a0006238 <chroot+0xc8> <== NOT EXECUTED a00061e4: e3a01001 mov r1, #1 <== NOT EXECUTED a00061e8: e1a03004 mov r3, r4 <== NOT EXECUTED a00061ec: e58d2000 str r2, [sp] <== NOT EXECUTED a00061f0: eb00004d bl a000632c <rtems_filesystem_evaluate_path> <== NOT EXECUTED a00061f4: e2505000 subs r5, r0, #0 <== NOT EXECUTED a00061f8: 1afffff0 bne a00061c0 <chroot+0x50> <== NOT EXECUTED
/* our cwd has changed, though - but there is no easy way of return :-( */
rtems_set_errno_and_return_minus_one( errno );
}
rtems_filesystem_freenode(&rtems_filesystem_root);
a00061fc: e59f602c ldr r6, [pc, #44] ; a0006230 <chroot+0xc0> <== NOT EXECUTED a0006200: e5960000 ldr r0, [r6] <== NOT EXECUTED a0006204: e2800018 add r0, r0, #24 <== NOT EXECUTED a0006208: eb000077 bl a00063ec <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_filesystem_root = loc;
a000620c: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006210: e596c000 ldr ip, [r6] <== NOT EXECUTED
a0006214: e28cc018 add ip, ip, #24 <== NOT EXECUTED
a0006218: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000621c: e5943000 ldr r3, [r4] <== NOT EXECUTED
return 0;
a0006220: e1a00005 mov r0, r5 <== NOT EXECUTED
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
/* our cwd has changed, though - but there is no easy way of return :-( */
rtems_set_errno_and_return_minus_one( errno );
}
rtems_filesystem_freenode(&rtems_filesystem_root);
rtems_filesystem_root = loc;
a0006224: e58c3000 str r3, [ip] <== NOT EXECUTED
return 0;
}
a0006228: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a000622c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a00091d8 <clock_getcpuclockid>:
int clock_getcpuclockid(
pid_t pid,
clockid_t *clock_id
)
{
a00091d8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a00091dc: eb0021e9 bl a0011988 <__errno> <== NOT EXECUTED a00091e0: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a00091e4: e5803000 str r3, [r0] <== NOT EXECUTED
}
a00091e8: e3e00000 mvn r0, #0 <== NOT EXECUTED
a00091ec: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a00091f0 <clock_getenable_attr>:
int clock_getenable_attr(
clockid_t clock_id,
int *attr
)
{
a00091f0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a00091f4: eb0021e3 bl a0011988 <__errno> <== NOT EXECUTED a00091f8: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a00091fc: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0009200: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009204: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009a38 <clock_getres>:
int clock_getres(
clockid_t clock_id,
struct timespec *res
)
{
a0009a38: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
if ( !res )
a0009a3c: e2514000 subs r4, r1, #0 <== NOT EXECUTED a0009a40: 1a000004 bne a0009a58 <clock_getres+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0009a44: eb0021c1 bl a0012150 <__errno> <== NOT EXECUTED
a0009a48: e3a03016 mov r3, #22 <== NOT EXECUTED
a0009a4c: e5803000 str r3, [r0] <== NOT EXECUTED
a0009a50: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009a54: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
switch ( clock_id ) {
a0009a58: e2400001 sub r0, r0, #1 <== NOT EXECUTED a0009a5c: e3500002 cmp r0, #2 <== NOT EXECUTED a0009a60: 8a000009 bhi a0009a8c <clock_getres+0x54> <== NOT EXECUTED
case CLOCK_REALTIME:
case CLOCK_PROCESS_CPUTIME:
case CLOCK_THREAD_CPUTIME:
if ( res ) {
res->tv_sec = rtems_configuration_get_microseconds_per_tick() /
a0009a64: e59f3034 ldr r3, [pc, #52] ; a0009aa0 <clock_getres+0x68> <== NOT EXECUTED a0009a68: e59f1034 ldr r1, [pc, #52] ; a0009aa4 <clock_getres+0x6c> <== NOT EXECUTED a0009a6c: e593500c ldr r5, [r3, #12] <== NOT EXECUTED a0009a70: e1a00005 mov r0, r5 <== NOT EXECUTED a0009a74: eb004c63 bl a001cc08 <__aeabi_uidiv> <== NOT EXECUTED
TOD_MICROSECONDS_PER_SECOND;
res->tv_nsec = rtems_configuration_get_nanoseconds_per_tick();
a0009a78: e3a03ffa mov r3, #1000 ; 0x3e8 <== NOT EXECUTED a0009a7c: e0050593 mul r5, r3, r5 <== NOT EXECUTED
case CLOCK_REALTIME:
case CLOCK_PROCESS_CPUTIME:
case CLOCK_THREAD_CPUTIME:
if ( res ) {
res->tv_sec = rtems_configuration_get_microseconds_per_tick() /
a0009a80: e8840021 stm r4, {r0, r5} <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( EINVAL );
}
return 0;
a0009a84: e3a00000 mov r0, #0 <== NOT EXECUTED
a0009a88: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
res->tv_nsec = rtems_configuration_get_nanoseconds_per_tick();
}
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
a0009a8c: eb0021af bl a0012150 <__errno> <== NOT EXECUTED a0009a90: e3a03016 mov r3, #22 <== NOT EXECUTED a0009a94: e5803000 str r3, [r0] <== NOT EXECUTED a0009a98: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
return 0;
}
a0009a9c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a00093c0 <clock_gettime>:
int clock_gettime(
clockid_t clock_id,
struct timespec *tp
)
{
a00093c0: e1a03000 mov r3, r0 <== NOT EXECUTED
if ( !tp )
a00093c4: e2510000 subs r0, r1, #0 <== NOT EXECUTED
int clock_gettime(
clockid_t clock_id,
struct timespec *tp
)
{
a00093c8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( !tp )
a00093cc: 1a000002 bne a00093dc <clock_gettime+0x1c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a00093d0: eb0023b6 bl a00122b0 <__errno> <== NOT EXECUTED a00093d4: e3a03016 mov r3, #22 <== NOT EXECUTED a00093d8: ea00000e b a0009418 <clock_gettime+0x58> <== NOT EXECUTED
if ( clock_id == CLOCK_REALTIME ) {
a00093dc: e3530001 cmp r3, #1 <== NOT EXECUTED a00093e0: 1a000001 bne a00093ec <clock_gettime+0x2c> <== NOT EXECUTED
_TOD_Get(tp);
a00093e4: eb00074e bl a000b124 <_TOD_Get> <== NOT EXECUTED a00093e8: ea000004 b a0009400 <clock_gettime+0x40> <== NOT EXECUTED
return 0;
}
#ifdef CLOCK_MONOTONIC
if ( clock_id == CLOCK_MONOTONIC ) {
a00093ec: e3530004 cmp r3, #4 <== NOT EXECUTED a00093f0: 0a000001 beq a00093fc <clock_gettime+0x3c> <== NOT EXECUTED
return 0;
}
#endif
#ifdef _POSIX_CPUTIME
if ( clock_id == CLOCK_PROCESS_CPUTIME ) {
a00093f4: e3530002 cmp r3, #2 <== NOT EXECUTED a00093f8: 1a000002 bne a0009408 <clock_gettime+0x48> <== NOT EXECUTED
_TOD_Get_uptime_as_timespec( tp );
a00093fc: eb00075f bl a000b180 <_TOD_Get_uptime_as_timespec> <== NOT EXECUTED
return 0;
a0009400: e3a00000 mov r0, #0 <== NOT EXECUTED
a0009404: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
}
#endif
#ifdef _POSIX_THREAD_CPUTIME
if ( clock_id == CLOCK_THREAD_CPUTIME )
a0009408: e3530003 cmp r3, #3 <== NOT EXECUTED a000940c: 1a000004 bne a0009424 <clock_gettime+0x64> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0009410: eb0023a6 bl a00122b0 <__errno> <== NOT EXECUTED
a0009414: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED
a0009418: e5803000 str r3, [r0] <== NOT EXECUTED
a000941c: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009420: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
#endif
rtems_set_errno_and_return_minus_one( EINVAL );
a0009424: eb0023a1 bl a00122b0 <__errno> <== NOT EXECUTED a0009428: e3a03016 mov r3, #22 <== NOT EXECUTED a000942c: e5803000 str r3, [r0] <== NOT EXECUTED a0009430: e3e00000 mvn r0, #0 <== NOT EXECUTED
return 0;
}
a0009434: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009208 <clock_setenable_attr>:
int clock_setenable_attr(
clockid_t clock_id,
int attr
)
{
a0009208: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a000920c: eb0021dd bl a0011988 <__errno> <== NOT EXECUTED a0009210: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a0009214: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0009218: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000921c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009438 <clock_settime>:
int clock_settime(
clockid_t clock_id,
const struct timespec *tp
)
{
a0009438: e1a03000 mov r3, r0 <== NOT EXECUTED
if ( !tp )
a000943c: e2510000 subs r0, r1, #0 <== NOT EXECUTED
int clock_settime(
clockid_t clock_id,
const struct timespec *tp
)
{
a0009440: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( !tp )
a0009444: 0a000005 beq a0009460 <clock_settime+0x28> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( clock_id == CLOCK_REALTIME ) {
a0009448: e3530001 cmp r3, #1 <== NOT EXECUTED a000944c: 1a00000e bne a000948c <clock_settime+0x54> <== NOT EXECUTED
if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 )
a0009450: e5902000 ldr r2, [r0] <== NOT EXECUTED a0009454: e59f3068 ldr r3, [pc, #104] ; a00094c4 <clock_settime+0x8c><== NOT EXECUTED a0009458: e1520003 cmp r2, r3 <== NOT EXECUTED a000945c: 8a000002 bhi a000946c <clock_settime+0x34> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0009460: eb002392 bl a00122b0 <__errno> <== NOT EXECUTED a0009464: e3a03016 mov r3, #22 <== NOT EXECUTED a0009468: ea00000d b a00094a4 <clock_settime+0x6c> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000946c: e59f3054 ldr r3, [pc, #84] ; a00094c8 <clock_settime+0x90> <== NOT EXECUTED a0009470: e5932000 ldr r2, [r3] <== NOT EXECUTED a0009474: e2822001 add r2, r2, #1 <== NOT EXECUTED a0009478: e5832000 str r2, [r3] <== NOT EXECUTED
_Thread_Disable_dispatch();
_TOD_Set( tp );
a000947c: eb000755 bl a000b1d8 <_TOD_Set> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009480: eb000cc9 bl a000c7ac <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
#endif
else
rtems_set_errno_and_return_minus_one( EINVAL );
return 0;
a0009484: e3a00000 mov r0, #0 <== NOT EXECUTED
a0009488: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
_Thread_Disable_dispatch();
_TOD_Set( tp );
_Thread_Enable_dispatch();
}
#ifdef _POSIX_CPUTIME
else if ( clock_id == CLOCK_PROCESS_CPUTIME )
a000948c: e3530002 cmp r3, #2 <== NOT EXECUTED a0009490: 0a000001 beq a000949c <clock_settime+0x64> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
#endif
#ifdef _POSIX_THREAD_CPUTIME
else if ( clock_id == CLOCK_THREAD_CPUTIME )
a0009494: e3530003 cmp r3, #3 <== NOT EXECUTED a0009498: 1a000004 bne a00094b0 <clock_settime+0x78> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a000949c: eb002383 bl a00122b0 <__errno> <== NOT EXECUTED
a00094a0: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED
a00094a4: e5803000 str r3, [r0] <== NOT EXECUTED
a00094a8: e3e00000 mvn r0, #0 <== NOT EXECUTED
a00094ac: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
#endif
else
rtems_set_errno_and_return_minus_one( EINVAL );
a00094b0: eb00237e bl a00122b0 <__errno> <== NOT EXECUTED a00094b4: e3a03016 mov r3, #22 <== NOT EXECUTED a00094b8: e5803000 str r3, [r0] <== NOT EXECUTED a00094bc: e3e00000 mvn r0, #0 <== NOT EXECUTED
return 0;
}
a00094c0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000da3c <close>:
)
{
rtems_libio_t *iop;
rtems_status_code rc;
rtems_libio_check_fd(fd);
a000da3c: e59f3068 ldr r3, [pc, #104] ; a000daac <close+0x70>
#include <rtems/libio_.h>
int close(
int fd
)
{
a000da40: e92d4030 push {r4, r5, lr}
rtems_libio_t *iop;
rtems_status_code rc;
rtems_libio_check_fd(fd);
a000da44: e5933000 ldr r3, [r3] a000da48: e1500003 cmp r0, r3
a000da4c: 2a000006 bcs a000da6c <close+0x30> iop = rtems_libio_iop(fd);
a000da50: e59f3058 ldr r3, [pc, #88] ; a000dab0 <close+0x74> a000da54: e3a04038 mov r4, #56 ; 0x38 a000da58: e5933000 ldr r3, [r3] a000da5c: e0243490 mla r4, r0, r4, r3
rtems_libio_check_is_open(iop);
a000da60: e5943014 ldr r3, [r4, #20] a000da64: e3130c01 tst r3, #256 ; 0x100
a000da68: 1a000004 bne a000da80 <close+0x44>
a000da6c: eb000d7e bl a001106c <__errno> a000da70: e3a03009 mov r3, #9 a000da74: e5803000 str r3, [r0] a000da78: e3e05000 mvn r5, #0 a000da7c: ea000008 b a000daa4 <close+0x68>
rc = RTEMS_SUCCESSFUL;
rc = (*iop->pathinfo.handlers->close_h)( iop );
a000da80: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a000da84: e1a00004 mov r0, r4 <== NOT EXECUTED a000da88: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000da8c: e12fff33 blx r3 <== NOT EXECUTED a000da90: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &iop->pathinfo );
a000da94: e2840018 add r0, r4, #24 <== NOT EXECUTED a000da98: ebffe1af bl a000615c <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_libio_free( iop );
a000da9c: e1a00004 mov r0, r4 <== NOT EXECUTED a000daa0: eb000093 bl a000dcf4 <rtems_libio_free> <== NOT EXECUTED
return rc;
}
a000daa4: e1a00005 mov r0, r5
a000daa8: e8bd8030 pop {r4, r5, pc}
a00060d8 <ctermid>:
static char *ctermid_name = "/dev/console";
char *ctermid(
char *s
)
{
a00060d8: e92d4010 push {r4, lr} <== NOT EXECUTED
if ( !s )
a00060dc: e2504000 subs r4, r0, #0 <== NOT EXECUTED
return ctermid_name;
a00060e0: 059f4010 ldreq r4, [pc, #16] ; a00060f8 <ctermid+0x20> <== NOT EXECUTED
char *ctermid(
char *s
)
{
if ( !s )
a00060e4: 0a000001 beq a00060f0 <ctermid+0x18> <== NOT EXECUTED
/* * We have no way of knowing the length of the user provided buffer. * It may not be large enough but there is no way to know that. :( * So this is a potential buffer owerrun that we can do nothing about. */ strcpy( s, ctermid_name );
a00060e8: e59f1008 ldr r1, [pc, #8] ; a00060f8 <ctermid+0x20> <== NOT EXECUTED a00060ec: eb0027e5 bl a0010088 <strcpy> <== NOT EXECUTED
return s; }
a00060f0: e1a00004 mov r0, r4 <== NOT EXECUTED
a00060f4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0005b48 <devFS_Show>:
{
int i;
rtems_filesystem_location_info_t *temp_loc;
rtems_device_name_t *device_name_table;
temp_loc = &rtems_filesystem_root;
a0005b48: e59f3064 ldr r3, [pc, #100] ; a0005bb4 <devFS_Show+0x6c> <== NOT EXECUTED
#include <rtems/seterr.h>
#include "devfs.h"
int devFS_Show(void)
{
a0005b4c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
int i;
rtems_filesystem_location_info_t *temp_loc;
rtems_device_name_t *device_name_table;
temp_loc = &rtems_filesystem_root;
a0005b50: e5933000 ldr r3, [r3] <== NOT EXECUTED
device_name_table = (rtems_device_name_t *)temp_loc->node_access;
a0005b54: e5934018 ldr r4, [r3, #24] <== NOT EXECUTED
if (!device_name_table)
a0005b58: e3540000 cmp r4, #0 <== NOT EXECUTED a0005b5c: 13a05000 movne r5, #0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
for (i = 0; i < rtems_device_table_size; i++){
a0005b60: 159f6050 ldrne r6, [pc, #80] ; a0005bb8 <devFS_Show+0x70> <== NOT EXECUTED
rtems_filesystem_location_info_t *temp_loc;
rtems_device_name_t *device_name_table;
temp_loc = &rtems_filesystem_root;
device_name_table = (rtems_device_name_t *)temp_loc->node_access;
if (!device_name_table)
a0005b64: 1a00000d bne a0005ba0 <devFS_Show+0x58> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a0005b68: eb0025a3 bl a000f1fc <__errno> <== NOT EXECUTED
a0005b6c: e3a0300e mov r3, #14 <== NOT EXECUTED
a0005b70: e5803000 str r3, [r0] <== NOT EXECUTED
a0005b74: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0005b78: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
for (i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name){
a0005b7c: e5941000 ldr r1, [r4] <== NOT EXECUTED a0005b80: e3510000 cmp r1, #0 <== NOT EXECUTED a0005b84: 0a000003 beq a0005b98 <devFS_Show+0x50> <== NOT EXECUTED
printk("/%s %d %d\n", device_name_table[i].device_name,
a0005b88: e59f002c ldr r0, [pc, #44] ; a0005bbc <devFS_Show+0x74> <== NOT EXECUTED a0005b8c: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED a0005b90: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a0005b94: eb00047b bl a0006d88 <printk> <== NOT EXECUTED
temp_loc = &rtems_filesystem_root;
device_name_table = (rtems_device_name_t *)temp_loc->node_access;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
for (i = 0; i < rtems_device_table_size; i++){
a0005b98: e2855001 add r5, r5, #1 <== NOT EXECUTED a0005b9c: e2844014 add r4, r4, #20 <== NOT EXECUTED a0005ba0: e5963000 ldr r3, [r6] <== NOT EXECUTED a0005ba4: e1550003 cmp r5, r3 <== NOT EXECUTED a0005ba8: 3afffff3 bcc a0005b7c <devFS_Show+0x34> <== NOT EXECUTED
if (device_name_table[i].device_name){
printk("/%s %d %d\n", device_name_table[i].device_name,
device_name_table[i].major, device_name_table[i].minor);
}
}
return 0;
a0005bac: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a0005bb0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000e1ac <devFS_close>:
#include "devfs.h"
int devFS_close(
rtems_libio_t *iop
)
{
a000e1ac: e92d4007 push {r0, r1, r2, lr} <== NOT EXECUTED
rtems_libio_open_close_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
a000e1b0: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
args.iop = iop;
args.flags = 0;
a000e1b4: e3a02000 mov r2, #0 <== NOT EXECUTED
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
args.iop = iop;
a000e1b8: e88d0005 stm sp, {r0, r2} <== NOT EXECUTED
args.flags = 0; args.mode = 0;
a000e1bc: e58d2008 str r2, [sp, #8] <== NOT EXECUTED
status = rtems_io_close(
a000e1c0: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a000e1c4: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a000e1c8: e1a0200d mov r2, sp <== NOT EXECUTED a000e1cc: eb000529 bl a000f678 <rtems_io_close> <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
return rtems_deviceio_errno(status);
a000e1d0: eb000039 bl a000e2bc <rtems_deviceio_errno> <== NOT EXECUTED
}
a000e1d4: e8bd800e pop {r1, r2, r3, pc} <== NOT EXECUTED
a000e1d8 <devFS_evaluate_path>:
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
a000e1d8: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr}
int i;
rtems_device_name_t *device_name_table;
/* see if 'flags' is valid */
if ( !rtems_libio_is_valid_perms( flags ) )
a000e1dc: e3d27007 bics r7, r2, #7
const char *pathname,
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc
)
{
a000e1e0: e1a09000 mov r9, r0 a000e1e4: e1a04001 mov r4, r1 a000e1e8: e1a05003 mov r5, r3
int i;
rtems_device_name_t *device_name_table;
/* see if 'flags' is valid */
if ( !rtems_libio_is_valid_perms( flags ) )
a000e1ec: 0a000002 beq a000e1fc <devFS_evaluate_path+0x24>
rtems_set_errno_and_return_minus_one( EPERM );
a000e1f0: eb00095c bl a0010768 <__errno> <== NOT EXECUTED a000e1f4: e3a03001 mov r3, #1 <== NOT EXECUTED a000e1f8: ea000005 b a000e214 <devFS_evaluate_path+0x3c> <== NOT EXECUTED
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
a000e1fc: e5936000 ldr r6, [r3]
if (!device_name_table)
a000e200: e3560000 cmp r6, #0
rtems_set_errno_and_return_minus_one( EFAULT );
for (i = 0; i < rtems_device_table_size; i++) {
a000e204: 159fa094 ldrne sl, [pc, #148] ; a000e2a0 <devFS_evaluate_path+0xc8>
if ( !rtems_libio_is_valid_perms( flags ) )
rtems_set_errno_and_return_minus_one( EPERM );
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
a000e208: 1a00001c bne a000e280 <devFS_evaluate_path+0xa8>
rtems_set_errno_and_return_minus_one( EFAULT );
a000e20c: eb000955 bl a0010768 <__errno> <== NOT EXECUTED
a000e210: e3a0300e mov r3, #14 <== NOT EXECUTED
a000e214: e5803000 str r3, [r0] <== NOT EXECUTED
a000e218: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000e21c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
for (i = 0; i < rtems_device_table_size; i++) {
if (!device_name_table[i].device_name)
a000e220: e5968000 ldr r8, [r6] a000e224: e3580000 cmp r8, #0
a000e228: 0a000012 beq a000e278 <devFS_evaluate_path+0xa0>
continue;
if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0)
a000e22c: e1a00009 mov r0, r9 <== NOT EXECUTED a000e230: e1a01008 mov r1, r8 <== NOT EXECUTED a000e234: e1a02004 mov r2, r4 <== NOT EXECUTED a000e238: eb000ea9 bl a0011ce4 <strncmp> <== NOT EXECUTED a000e23c: e3500000 cmp r0, #0 <== NOT EXECUTED a000e240: 1a00000c bne a000e278 <devFS_evaluate_path+0xa0> <== NOT EXECUTED
continue;
if (device_name_table[i].device_name[pathnamelen] != '\0')
a000e244: e7d80004 ldrb r0, [r8, r4] <== NOT EXECUTED a000e248: e3500000 cmp r0, #0 <== NOT EXECUTED a000e24c: 1a000009 bne a000e278 <devFS_evaluate_path+0xa0> <== NOT EXECUTED
continue;
/* find the device, set proper values */
pathloc->node_access = (void *)&device_name_table[i];
pathloc->handlers = &devFS_file_handlers;
a000e250: e59f304c ldr r3, [pc, #76] ; a000e2a4 <devFS_evaluate_path+0xcc><== NOT EXECUTED
if (device_name_table[i].device_name[pathnamelen] != '\0')
continue;
/* find the device, set proper values */
pathloc->node_access = (void *)&device_name_table[i];
a000e254: e5856000 str r6, [r5] <== NOT EXECUTED
pathloc->handlers = &devFS_file_handlers;
a000e258: e5853008 str r3, [r5, #8] <== NOT EXECUTED
pathloc->ops = &devFS_ops;
a000e25c: e59f3044 ldr r3, [pc, #68] ; a000e2a8 <devFS_evaluate_path+0xd0><== NOT EXECUTED a000e260: e585300c str r3, [r5, #12] <== NOT EXECUTED
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
a000e264: e59f3040 ldr r3, [pc, #64] ; a000e2ac <devFS_evaluate_path+0xd4><== NOT EXECUTED a000e268: e5933000 ldr r3, [r3] <== NOT EXECUTED a000e26c: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED a000e270: e5853010 str r3, [r5, #16] <== NOT EXECUTED
return 0;
a000e274: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
/* get the device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
for (i = 0; i < rtems_device_table_size; i++) {
a000e278: e2877001 add r7, r7, #1 a000e27c: e2866014 add r6, r6, #20 a000e280: e59a3000 ldr r3, [sl] a000e284: e1570003 cmp r7, r3
a000e288: 3affffe4 bcc a000e220 <devFS_evaluate_path+0x48>
pathloc->mt_entry = rtems_filesystem_root.mt_entry;
return 0;
}
/* no such file or directory */
rtems_set_errno_and_return_minus_one( ENOENT );
a000e28c: eb000935 bl a0010768 <__errno> a000e290: e3a03002 mov r3, #2 a000e294: e5803000 str r3, [r0] a000e298: e3e00000 mvn r0, #0
}
a000e29c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc}
a00071b4 <devFS_initialize>:
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry,
const void *data
)
{
a00071b4: e92d40f0 push {r4, r5, r6, r7, lr}
rtems_device_name_t *device_name_table;
/* allocate device only filesystem name table */
device_name_table = (rtems_device_name_t *)_Workspace_Allocate(
a00071b8: e59f7058 ldr r7, [pc, #88] ; a0007218 <devFS_initialize+0x64>
int devFS_initialize(
rtems_filesystem_mount_table_entry_t *temp_mt_entry,
const void *data
)
{
a00071bc: e1a04000 mov r4, r0
rtems_device_name_t *device_name_table;
/* allocate device only filesystem name table */
device_name_table = (rtems_device_name_t *)_Workspace_Allocate(
a00071c0: e3a06014 mov r6, #20 a00071c4: e5970000 ldr r0, [r7] a00071c8: e0000096 mul r0, r6, r0 a00071cc: eb001a83 bl a000dbe0 <_Workspace_Allocate>
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* no memory for device filesystem */
if (!device_name_table)
a00071d0: e2505000 subs r5, r0, #0
a00071d4: 1a000004 bne a00071ec <devFS_initialize+0x38>
rtems_set_errno_and_return_minus_one( ENOMEM );
a00071d8: eb002562 bl a0010768 <__errno> <== NOT EXECUTED
a00071dc: e3a0300c mov r3, #12 <== NOT EXECUTED
a00071e0: e5803000 str r3, [r0] <== NOT EXECUTED
a00071e4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a00071e8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
memset(
a00071ec: e5972000 ldr r2, [r7] a00071f0: e3a01000 mov r1, #0 a00071f4: e0020296 mul r2, r6, r2 a00071f8: eb002997 bl a001185c <memset>
device_name_table, 0,
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* set file handlers */
temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers;
a00071fc: e59f3018 ldr r3, [pc, #24] ; a000721c <devFS_initialize+0x68>
temp_mt_entry->mt_fs_root.ops = &devFS_ops;
/* Set the node_access to device name table */
temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table;
a0007200: e584501c str r5, [r4, #28]
return 0;
a0007204: e3a00000 mov r0, #0
device_name_table, 0,
sizeof( rtems_device_name_t ) * ( rtems_device_table_size )
);
/* set file handlers */
temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers;
a0007208: e5843024 str r3, [r4, #36] ; 0x24
temp_mt_entry->mt_fs_root.ops = &devFS_ops;
a000720c: e2833038 add r3, r3, #56 ; 0x38 a0007210: e5843028 str r3, [r4, #40] ; 0x28
/* Set the node_access to device name table */
temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table;
return 0;
}
a0007214: e8bd80f0 pop {r4, r5, r6, r7, pc}
a000735c <devFS_ioctl>:
int devFS_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
a000735c: e92d400f push {r0, r1, r2, r3, lr} <== NOT EXECUTED
rtems_libio_ioctl_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
a0007360: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
args.iop = iop;
a0007364: e88d0007 stm sp, {r0, r1, r2} <== NOT EXECUTED
args.command = command;
args.buffer = buffer;
status = rtems_io_control(
a0007368: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a000736c: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a0007370: e1a0200d mov r2, sp <== NOT EXECUTED a0007374: eb000ef2 bl a000af44 <rtems_io_control> <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
a0007378: e3500000 cmp r0, #0 <== NOT EXECUTED
return rtems_deviceio_errno(status);
return args.ioctl_return;
a000737c: 059d000c ldreq r0, [sp, #12] <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
a0007380: 0a000000 beq a0007388 <devFS_ioctl+0x2c> <== NOT EXECUTED
return rtems_deviceio_errno(status);
a0007384: eb001bcc bl a000e2bc <rtems_deviceio_errno> <== NOT EXECUTED
return args.ioctl_return;
}
a0007388: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a000738c: e8bd8000 pop {pc} <== NOT EXECUTED
a0007220 <devFS_mknod>:
const char *path,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
a0007220: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr}
a0007224: e58d2000 str r2, [sp]
a0007228: e1a09003 mov r9, r3
* condition and do not create the '/dev' and the 'path'
* actually passed in is 'dev', not '/dev'. Just return 0 to
* indicate we are OK.
*/
if ((path[0] == 'd') && (path[1] == 'e') &&
a000722c: e5d03000 ldrb r3, [r0]
const char *path,
mode_t mode,
dev_t dev,
rtems_filesystem_location_info_t *pathloc
)
{
a0007230: e1a04000 mov r4, r0 a0007234: e1a05001 mov r5, r1
* condition and do not create the '/dev' and the 'path'
* actually passed in is 'dev', not '/dev'. Just return 0 to
* indicate we are OK.
*/
if ((path[0] == 'd') && (path[1] == 'e') &&
a0007238: e3530064 cmp r3, #100 ; 0x64
a000723c: 1a000008 bne a0007264 <devFS_mknod+0x44>
a0007240: e5d03001 ldrb r3, [r0, #1] a0007244: e3530065 cmp r3, #101 ; 0x65
a0007248: 1a000005 bne a0007264 <devFS_mknod+0x44>
a000724c: e5d03002 ldrb r3, [r0, #2] a0007250: e3530076 cmp r3, #118 ; 0x76
a0007254: 1a000002 bne a0007264 <devFS_mknod+0x44>
(path[2] == 'v') && (path[3] == '\0'))
a0007258: e5d00003 ldrb r0, [r0, #3] a000725c: e3500000 cmp r0, #0
a0007260: 0a000039 beq a000734c <devFS_mknod+0x12c>
return 0;
/* must be a character device or a block device */
if (!S_ISBLK(mode) && !S_ISCHR(mode))
a0007264: e205aa0f and sl, r5, #61440 ; 0xf000 a0007268: e35a0a02 cmp sl, #8192 ; 0x2000 a000726c: 135a0a06 cmpne sl, #24576 ; 0x6000 a0007270: 03a0a000 moveq sl, #0 a0007274: 13a0a001 movne sl, #1
a0007278: 0a000002 beq a0007288 <devFS_mknod+0x68>
rtems_set_errno_and_return_minus_one( EINVAL );
a000727c: eb002539 bl a0010768 <__errno> <== NOT EXECUTED a0007280: e3a03016 mov r3, #22 <== NOT EXECUTED a0007284: ea000008 b a00072ac <devFS_mknod+0x8c> <== NOT EXECUTED
else
rtems_filesystem_split_dev_t(dev, major, minor);
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
a0007288: e59d3028 ldr r3, [sp, #40] ; 0x28 a000728c: e5936000 ldr r6, [r3]
if (!device_name_table)
a0007290: e3560000 cmp r6, #0 a0007294: 13e07000 mvnne r7, #0 a0007298: 11a0800a movne r8, sl
rtems_set_errno_and_return_minus_one( EFAULT );
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
a000729c: 159fb0ac ldrne fp, [pc, #172] ; a0007350 <devFS_mknod+0x130>
a00072a0: 1a000011 bne a00072ec <devFS_mknod+0xcc>
rtems_filesystem_split_dev_t(dev, major, minor);
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
a00072a4: eb00252f bl a0010768 <__errno> <== NOT EXECUTED a00072a8: e3a0300e mov r3, #14 <== NOT EXECUTED
a00072ac: e5803000 str r3, [r0] a00072b0: e3e00000 mvn r0, #0 a00072b4: ea000024 b a000734c <devFS_mknod+0x12c>
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name == NULL)
a00072b8: e796100a ldr r1, [r6, sl] a00072bc: e3510000 cmp r1, #0
a00072c0: 0a000006 beq a00072e0 <devFS_mknod+0xc0>
slot = i;
else
if (strcmp(path, device_name_table[i].device_name) == 0)
a00072c4: e1a00004 mov r0, r4 a00072c8: eb0029e1 bl a0011a54 <strcmp> a00072cc: e3500000 cmp r0, #0
a00072d0: 1a000003 bne a00072e4 <devFS_mknod+0xc4>
rtems_set_errno_and_return_minus_one( EEXIST );
a00072d4: eb002523 bl a0010768 <__errno> a00072d8: e3a03011 mov r3, #17 a00072dc: eafffff2 b a00072ac <devFS_mknod+0x8c>
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
if (device_name_table[i].device_name == NULL)
slot = i;
a00072e0: e1a07008 mov r7, r8
/* Find an empty slot in device name table */
device_name_table = (rtems_device_name_t *)pathloc->node_access;
if (!device_name_table)
rtems_set_errno_and_return_minus_one( EFAULT );
for (slot = -1, i = 0; i < rtems_device_table_size; i++){
a00072e4: e2888001 add r8, r8, #1 a00072e8: e28aa014 add sl, sl, #20 a00072ec: e59b3000 ldr r3, [fp] a00072f0: e1580003 cmp r8, r3
a00072f4: 3affffef bcc a00072b8 <devFS_mknod+0x98>
else
if (strcmp(path, device_name_table[i].device_name) == 0)
rtems_set_errno_and_return_minus_one( EEXIST );
}
if (slot == -1)
a00072f8: e3770001 cmn r7, #1
a00072fc: 1a000004 bne a0007314 <devFS_mknod+0xf4>
rtems_set_errno_and_return_minus_one( ENOMEM );
a0007300: eb002518 bl a0010768 <__errno> <== NOT EXECUTED a0007304: e3a0300c mov r3, #12 <== NOT EXECUTED a0007308: e5803000 str r3, [r0] <== NOT EXECUTED a000730c: e1a00007 mov r0, r7 <== NOT EXECUTED a0007310: ea00000d b a000734c <devFS_mknod+0x12c> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0007314: e10fa000 mrs sl, CPSR a0007318: e38a3080 orr r3, sl, #128 ; 0x80 a000731c: e129f003 msr CPSR_fc, r3
_ISR_Disable(level);
device_name_table[slot].device_name = (char *)path;
a0007320: e3a03014 mov r3, #20 a0007324: e0070793 mul r7, r3, r7
device_name_table[slot].device_name_length = strlen(path);
a0007328: e1a00004 mov r0, r4
if (slot == -1)
rtems_set_errno_and_return_minus_one( ENOMEM );
_ISR_Disable(level);
device_name_table[slot].device_name = (char *)path;
a000732c: e7864007 str r4, [r6, r7]
device_name_table[slot].device_name_length = strlen(path);
a0007330: eb002a53 bl a0011c84 <strlen>
device_name_table[slot].major = major;
a0007334: e59d3000 ldr r3, [sp]
if (slot == -1)
rtems_set_errno_and_return_minus_one( ENOMEM );
_ISR_Disable(level);
device_name_table[slot].device_name = (char *)path;
a0007338: e0868007 add r8, r6, r7
device_name_table[slot].device_name_length = strlen(path);
a000733c: e9880209 stmib r8, {r0, r3, r9}
device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode;
a0007340: e5885010 str r5, [r8, #16]
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0007344: e129f00a msr CPSR_fc, sl
_ISR_Enable(level);
return 0;
a0007348: e3a00000 mov r0, #0
}
a000734c: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc}
a0007354 <devFS_node_type>:
/*
* There is only one type of node: device
*/
return RTEMS_FILESYSTEM_DEVICE;
}
a0007354: e3a00002 mov r0, #2 <== NOT EXECUTED a0007358: e12fff1e bx lr <== NOT EXECUTED
a0007390 <devFS_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
a0007390: e92d4007 push {r0, r1, r2, lr} <== NOT EXECUTED
rtems_libio_open_close_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
a0007394: e5902018 ldr r2, [r0, #24] <== NOT EXECUTED
args.iop = iop;
args.flags = iop->flags;
a0007398: e5901014 ldr r1, [r0, #20] <== NOT EXECUTED
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
args.iop = iop;
a000739c: e58d0000 str r0, [sp] <== NOT EXECUTED
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
a00073a0: e5920008 ldr r0, [r2, #8] <== NOT EXECUTED
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
args.iop = iop;
args.flags = iop->flags;
a00073a4: e58d1004 str r1, [sp, #4] <== NOT EXECUTED
args.mode = mode;
status = rtems_io_open(
a00073a8: e592100c ldr r1, [r2, #12] <== NOT EXECUTED a00073ac: e1a0200d mov r2, sp <== NOT EXECUTED
np = (rtems_device_name_t *)iop->pathinfo.node_access;
args.iop = iop;
args.flags = iop->flags;
args.mode = mode;
a00073b0: e58d3008 str r3, [sp, #8] <== NOT EXECUTED
status = rtems_io_open(
a00073b4: eb000f2b bl a000b068 <rtems_io_open> <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
return rtems_deviceio_errno(status);
a00073b8: eb001bbf bl a000e2bc <rtems_deviceio_errno> <== NOT EXECUTED
}
a00073bc: e8bd800e pop {r1, r2, r3, pc} <== NOT EXECUTED
a00073c0 <devFS_read>:
ssize_t devFS_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
a00073c0: e92d487f push {r0, r1, r2, r3, r4, r5, r6, fp, lr} <== NOT EXECUTED
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
a00073c4: e280c00c add ip, r0, #12 <== NOT EXECUTED
a00073c8: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED
args.buffer = buffer; args.count = count;
a00073cc: e58d2010 str r2, [sp, #16] <== NOT EXECUTED
args.flags = iop->flags;
a00073d0: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED
{
rtems_libio_rw_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
a00073d4: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
args.iop = iop;
a00073d8: e58d0000 str r0, [sp] <== NOT EXECUTED
args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags;
a00073dc: e58d2014 str r2, [sp, #20] <== NOT EXECUTED
args.bytes_moved = 0;
a00073e0: e3a02000 mov r2, #0 <== NOT EXECUTED
np = (rtems_device_name_t *)iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
a00073e4: e58d100c str r1, [sp, #12] <== NOT EXECUTED
args.count = count; args.flags = iop->flags; args.bytes_moved = 0;
a00073e8: e58d2018 str r2, [sp, #24] <== NOT EXECUTED
status = rtems_io_read(
a00073ec: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a00073f0: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a00073f4: e1a0200d mov r2, sp <== NOT EXECUTED
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
a00073f8: e98d1800 stmib sp, {fp, ip} <== NOT EXECUTED
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read(
a00073fc: eb000f2e bl a000b0bc <rtems_io_read> <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
a0007400: e3500000 cmp r0, #0 <== NOT EXECUTED
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
a0007404: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
a0007408: 0a000000 beq a0007410 <devFS_read+0x50> <== NOT EXECUTED
return rtems_deviceio_errno(status);
a000740c: eb001baa bl a000e2bc <rtems_deviceio_errno> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
a0007410: e28dd01c add sp, sp, #28 <== NOT EXECUTED
a0007414: e8bd8800 pop {fp, pc} <== NOT EXECUTED
a0007418 <devFS_stat>:
struct stat *buf
)
{
rtems_device_name_t *the_dev;
the_dev = (rtems_device_name_t *)loc->node_access;
a0007418: e5903000 ldr r3, [r0] <== NOT EXECUTED
rtems_device_minor_number _minor
)
{
union __rtems_dev_t temp;
temp.__overlay.major = _major;
a000741c: e2830008 add r0, r3, #8 <== NOT EXECUTED
a0007420: e890000d ldm r0, {r0, r2, r3} <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if (!the_dev)
rtems_set_errno_and_return_minus_one( EFAULT );
#endif
buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
a0007424: e5810018 str r0, [r1, #24] <== NOT EXECUTED a0007428: e581201c str r2, [r1, #28] <== NOT EXECUTED
buf->st_mode = the_dev->mode;
a000742c: e581300c str r3, [r1, #12] <== NOT EXECUTED
return 0; }
a0007430: e3a00000 mov r0, #0 <== NOT EXECUTED a0007434: e12fff1e bx lr <== NOT EXECUTED
a0007438 <devFS_write>:
ssize_t devFS_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
a0007438: e92d487f push {r0, r1, r2, r3, r4, r5, r6, fp, lr} <== NOT EXECUTED
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
a000743c: e280c00c add ip, r0, #12 <== NOT EXECUTED
a0007440: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED
args.buffer = (void *) buffer; args.count = count;
a0007444: e58d2010 str r2, [sp, #16] <== NOT EXECUTED
args.flags = iop->flags;
a0007448: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED
{
rtems_libio_rw_args_t args;
rtems_status_code status;
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
a000744c: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
args.iop = iop;
a0007450: e58d0000 str r0, [sp] <== NOT EXECUTED
args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags;
a0007454: e58d2014 str r2, [sp, #20] <== NOT EXECUTED
args.bytes_moved = 0;
a0007458: e3a02000 mov r2, #0 <== NOT EXECUTED
np = (rtems_device_name_t *)iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
a000745c: e58d100c str r1, [sp, #12] <== NOT EXECUTED
args.count = count; args.flags = iop->flags; args.bytes_moved = 0;
a0007460: e58d2018 str r2, [sp, #24] <== NOT EXECUTED
status = rtems_io_write(
a0007464: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0007468: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a000746c: e1a0200d mov r2, sp <== NOT EXECUTED
rtems_device_name_t *np;
np = (rtems_device_name_t *)iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
a0007470: e98d1800 stmib sp, {fp, ip} <== NOT EXECUTED
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
a0007474: eb000f25 bl a000b110 <rtems_io_write> <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
a0007478: e3500000 cmp r0, #0 <== NOT EXECUTED
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
a000747c: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED
np->major,
np->minor,
(void *) &args
);
if ( status )
a0007480: 0a000000 beq a0007488 <devFS_write+0x50> <== NOT EXECUTED
return rtems_deviceio_errno(status);
a0007484: eb001b8c bl a000e2bc <rtems_deviceio_errno> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
a0007488: e28dd01c add sp, sp, #28 <== NOT EXECUTED
a000748c: e8bd8800 pop {fp, pc} <== NOT EXECUTED
a00102d4 <device_close>:
*/
int device_close(
rtems_libio_t *iop
)
{
a00102d4: e92d4037 push {r0, r1, r2, r4, r5, lr} <== NOT EXECUTED
rtems_libio_open_close_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
a00102d8: e5904018 ldr r4, [r0, #24] <== NOT EXECUTED
args.iop = iop;
args.flags = 0;
a00102dc: e3a03000 mov r3, #0 <== NOT EXECUTED
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
args.iop = iop;
a00102e0: e58d0000 str r0, [sp] <== NOT EXECUTED
args.flags = 0;
args.mode = 0;
status = rtems_io_close(
a00102e4: e5941054 ldr r1, [r4, #84] ; 0x54 <== NOT EXECUTED a00102e8: e1a0200d mov r2, sp <== NOT EXECUTED a00102ec: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
args.iop = iop;
args.flags = 0;
a00102f0: e58d3004 str r3, [sp, #4] <== NOT EXECUTED
args.mode = 0;
a00102f4: e58d3008 str r3, [sp, #8] <== NOT EXECUTED
status = rtems_io_close(
a00102f8: eb00027c bl a0010cf0 <rtems_io_close> <== NOT EXECUTED a00102fc: e1a05000 mov r5, r0 <== NOT EXECUTED
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
IMFS_check_node_remove( the_jnode );
a0010300: e1a00004 mov r0, r4 <== NOT EXECUTED a0010304: ebfff570 bl a000d8cc <IMFS_check_node_remove> <== NOT EXECUTED
return rtems_deviceio_errno( status );
a0010308: e1a00005 mov r0, r5 <== NOT EXECUTED a001030c: eb00032b bl a0010fc0 <rtems_deviceio_errno> <== NOT EXECUTED
}
a0010310: e8bd803e pop {r1, r2, r3, r4, r5, pc} <== NOT EXECUTED
a0010404 <device_ftruncate>:
rtems_libio_t *iop,
rtems_off64_t length
)
{
return 0;
}
a0010404: e3a00000 mov r0, #0 <== NOT EXECUTED a0010408: e12fff1e bx lr <== NOT EXECUTED
a00103c4 <device_ioctl>:
int device_ioctl(
rtems_libio_t *iop,
uint32_t command,
void *buffer
)
{
a00103c4: e92d400f push {r0, r1, r2, r3, lr} <== NOT EXECUTED
args.iop = iop;
args.command = command;
args.buffer = buffer;
the_jnode = iop->pathinfo.node_access;
a00103c8: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
{
rtems_libio_ioctl_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
args.iop = iop;
a00103cc: e88d0007 stm sp, {r0, r1, r2} <== NOT EXECUTED
args.command = command;
args.buffer = buffer;
the_jnode = iop->pathinfo.node_access;
status = rtems_io_control(
a00103d0: e5930050 ldr r0, [r3, #80] ; 0x50 <== NOT EXECUTED a00103d4: e5931054 ldr r1, [r3, #84] ; 0x54 <== NOT EXECUTED a00103d8: e1a0200d mov r2, sp <== NOT EXECUTED a00103dc: eb000258 bl a0010d44 <rtems_io_control> <== NOT EXECUTED
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
a00103e0: e3500000 cmp r0, #0 <== NOT EXECUTED
return rtems_deviceio_errno(status);
return args.ioctl_return;
a00103e4: 059d000c ldreq r0, [sp, #12] <== NOT EXECUTED
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
a00103e8: 0a000000 beq a00103f0 <device_ioctl+0x2c> <== NOT EXECUTED
return rtems_deviceio_errno(status);
a00103ec: eb0002f3 bl a0010fc0 <rtems_deviceio_errno> <== NOT EXECUTED
return args.ioctl_return;
}
a00103f0: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a00103f4: e8bd8000 pop {pc} <== NOT EXECUTED
a00103f8 <device_lseek>:
rtems_off64_t offset,
int whence
)
{
return offset;
}
a00103f8: e1a00001 mov r0, r1 <== NOT EXECUTED a00103fc: e1a01002 mov r1, r2 <== NOT EXECUTED a0010400: e12fff1e bx lr <== NOT EXECUTED
a00102a4 <device_open>:
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
a00102a4: e92d4007 push {r0, r1, r2, lr} <== NOT EXECUTED
rtems_libio_open_close_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
a00102a8: e5902018 ldr r2, [r0, #24] <== NOT EXECUTED
args.iop = iop;
args.flags = iop->flags;
a00102ac: e5901014 ldr r1, [r0, #20] <== NOT EXECUTED
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
args.iop = iop;
a00102b0: e58d0000 str r0, [sp] <== NOT EXECUTED
args.flags = iop->flags;
args.mode = mode;
status = rtems_io_open(
a00102b4: e5920050 ldr r0, [r2, #80] ; 0x50 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
args.iop = iop;
args.flags = iop->flags;
a00102b8: e58d1004 str r1, [sp, #4] <== NOT EXECUTED
args.mode = mode;
status = rtems_io_open(
a00102bc: e5921054 ldr r1, [r2, #84] ; 0x54 <== NOT EXECUTED a00102c0: e1a0200d mov r2, sp <== NOT EXECUTED
the_jnode = iop->pathinfo.node_access;
args.iop = iop;
args.flags = iop->flags;
args.mode = mode;
a00102c4: e58d3008 str r3, [sp, #8] <== NOT EXECUTED
status = rtems_io_open(
a00102c8: eb0002b2 bl a0010d98 <rtems_io_open> <== NOT EXECUTED
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
return rtems_deviceio_errno( status );
a00102cc: eb00033b bl a0010fc0 <rtems_deviceio_errno> <== NOT EXECUTED
}
a00102d0: e8bd800e pop {r1, r2, r3, pc} <== NOT EXECUTED
a0010314 <device_read>:
ssize_t device_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
a0010314: e92d487f push {r0, r1, r2, r3, r4, r5, r6, fp, lr} <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
a0010318: e280c00c add ip, r0, #12 <== NOT EXECUTED
a001031c: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED
args.buffer = buffer; args.count = count;
a0010320: e58d2010 str r2, [sp, #16] <== NOT EXECUTED
args.flags = iop->flags;
a0010324: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED
{
rtems_libio_rw_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
a0010328: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
args.iop = iop;
a001032c: e58d0000 str r0, [sp] <== NOT EXECUTED
args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags;
a0010330: e58d2014 str r2, [sp, #20] <== NOT EXECUTED
args.bytes_moved = 0;
a0010334: e3a02000 mov r2, #0 <== NOT EXECUTED
the_jnode = iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
args.buffer = buffer;
a0010338: e58d100c str r1, [sp, #12] <== NOT EXECUTED
args.count = count; args.flags = iop->flags; args.bytes_moved = 0;
a001033c: e58d2018 str r2, [sp, #24] <== NOT EXECUTED
status = rtems_io_read(
a0010340: e5930050 ldr r0, [r3, #80] ; 0x50 <== NOT EXECUTED a0010344: e5931054 ldr r1, [r3, #84] ; 0x54 <== NOT EXECUTED a0010348: e1a0200d mov r2, sp <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
a001034c: e98d1800 stmib sp, {fp, ip} <== NOT EXECUTED
args.buffer = buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_read(
a0010350: eb0002a5 bl a0010dec <rtems_io_read> <== NOT EXECUTED
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
a0010354: e3500000 cmp r0, #0 <== NOT EXECUTED
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
a0010358: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
a001035c: 0a000000 beq a0010364 <device_read+0x50> <== NOT EXECUTED
return rtems_deviceio_errno(status);
a0010360: eb000316 bl a0010fc0 <rtems_deviceio_errno> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
a0010364: e28dd01c add sp, sp, #28 <== NOT EXECUTED
a0010368: e8bd8800 pop {fp, pc} <== NOT EXECUTED
a001036c <device_write>:
ssize_t device_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
a001036c: e92d487f push {r0, r1, r2, r3, r4, r5, r6, fp, lr} <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
a0010370: e280c00c add ip, r0, #12 <== NOT EXECUTED
a0010374: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED
args.buffer = (void *) buffer; args.count = count;
a0010378: e58d2010 str r2, [sp, #16] <== NOT EXECUTED
args.flags = iop->flags;
a001037c: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED
{
rtems_libio_rw_args_t args;
rtems_status_code status;
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
a0010380: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
args.iop = iop;
a0010384: e58d0000 str r0, [sp] <== NOT EXECUTED
args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags;
a0010388: e58d2014 str r2, [sp, #20] <== NOT EXECUTED
args.bytes_moved = 0;
a001038c: e3a02000 mov r2, #0 <== NOT EXECUTED
the_jnode = iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
args.buffer = (void *) buffer;
a0010390: e58d100c str r1, [sp, #12] <== NOT EXECUTED
args.count = count; args.flags = iop->flags; args.bytes_moved = 0;
a0010394: e58d2018 str r2, [sp, #24] <== NOT EXECUTED
status = rtems_io_write(
a0010398: e5930050 ldr r0, [r3, #80] ; 0x50 <== NOT EXECUTED a001039c: e5931054 ldr r1, [r3, #84] ; 0x54 <== NOT EXECUTED a00103a0: e1a0200d mov r2, sp <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
args.iop = iop;
args.offset = iop->offset;
a00103a4: e98d1800 stmib sp, {fp, ip} <== NOT EXECUTED
args.buffer = (void *) buffer;
args.count = count;
args.flags = iop->flags;
args.bytes_moved = 0;
status = rtems_io_write(
a00103a8: eb0002a4 bl a0010e40 <rtems_io_write> <== NOT EXECUTED
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
a00103ac: e3500000 cmp r0, #0 <== NOT EXECUTED
return rtems_deviceio_errno(status);
return (ssize_t) args.bytes_moved;
a00103b0: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED
the_jnode->info.device.major,
the_jnode->info.device.minor,
(void *) &args
);
if ( status )
a00103b4: 0a000000 beq a00103bc <device_write+0x50> <== NOT EXECUTED
return rtems_deviceio_errno(status);
a00103b8: eb000300 bl a0010fc0 <rtems_deviceio_errno> <== NOT EXECUTED
return (ssize_t) args.bytes_moved;
}
a00103bc: e28dd01c add sp, sp, #28 <== NOT EXECUTED
a00103c0: e8bd8800 pop {fp, pc} <== NOT EXECUTED
a0007048 <drainOutput>:
drainOutput (struct rtems_termios_tty *tty)
{
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
a0007048: e59030b4 ldr r3, [r0, #180] ; 0xb4 <== NOT EXECUTED
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
a000704c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
a0007050: e3530000 cmp r3, #0 <== NOT EXECUTED
/*
* Drain output queue
*/
static void
drainOutput (struct rtems_termios_tty *tty)
{
a0007054: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
a0007058: 0a000011 beq a00070a4 <drainOutput+0x5c> <== NOT EXECUTED
rtems_interrupt_disable (level);
a000705c: ebfffff5 bl a0007038 <arm_interrupt_disable> <== NOT EXECUTED
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
tty->rawOutBufState = rob_wait;
a0007060: e3a05002 mov r5, #2 <== NOT EXECUTED
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
rtems_interrupt_disable (level);
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
a0007064: ea000009 b a0007090 <drainOutput+0x48> <== NOT EXECUTED
tty->rawOutBufState = rob_wait;
a0007068: e5845094 str r5, [r4, #148] ; 0x94 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000706c: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain(
a0007070: e3a01000 mov r1, #0 <== NOT EXECUTED a0007074: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED a0007078: e1a02001 mov r2, r1 <== NOT EXECUTED a000707c: eb0008cb bl a00093b0 <rtems_semaphore_obtain> <== NOT EXECUTED
tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
a0007080: e3500000 cmp r0, #0 <== NOT EXECUTED a0007084: 0a000000 beq a000708c <drainOutput+0x44> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
a0007088: eb000a63 bl a0009a1c <rtems_fatal_error_occurred> <== NOT EXECUTED
rtems_interrupt_disable (level);
a000708c: ebffffe9 bl a0007038 <arm_interrupt_disable> <== NOT EXECUTED
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {
rtems_interrupt_disable (level);
while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) {
a0007090: e5942084 ldr r2, [r4, #132] ; 0x84 <== NOT EXECUTED
a0007094: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED
a0007098: e1520003 cmp r2, r3 <== NOT EXECUTED
a000709c: 1afffff1 bne a0007068 <drainOutput+0x20> <== NOT EXECUTED
a00070a0: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
a00070a4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0006938 <dup>:
int dup(
int fildes
)
{
return fcntl( fildes, F_DUPFD, 0 );
a0006938: e3a01000 mov r1, #0 <== NOT EXECUTED a000693c: e1a02001 mov r2, r1 <== NOT EXECUTED a0006940: ea00004b b a0006a74 <fcntl> <== NOT EXECUTED
a00068e8 <dup2>:
int dup2(
int fildes,
int fildes2
)
{
a00068e8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a00068ec: e24dd048 sub sp, sp, #72 ; 0x48 <== NOT EXECUTED
a00068f0: e1a04001 mov r4, r1 <== NOT EXECUTED
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
a00068f4: e1a0100d mov r1, sp <== NOT EXECUTED
int dup2(
int fildes,
int fildes2
)
{
a00068f8: e1a06000 mov r6, r0 <== NOT EXECUTED
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
a00068fc: eb000162 bl a0006e8c <fstat> <== NOT EXECUTED
if ( status == -1 )
a0006900: e3700001 cmn r0, #1 <== NOT EXECUTED
/*
* If fildes is not valid, then fildes2 should not be closed.
*/
status = fstat( fildes, &buf );
a0006904: e1a0500d mov r5, sp <== NOT EXECUTED
if ( status == -1 )
a0006908: 0a000008 beq a0006930 <dup2+0x48> <== NOT EXECUTED
/*
* If fildes2 is not valid, then we should not do anything either.
*/
status = fstat( fildes2, &buf );
a000690c: e1a00004 mov r0, r4 <== NOT EXECUTED a0006910: e1a0100d mov r1, sp <== NOT EXECUTED a0006914: eb00015c bl a0006e8c <fstat> <== NOT EXECUTED
if ( status == -1 )
a0006918: e3700001 cmn r0, #1 <== NOT EXECUTED a000691c: 0a000003 beq a0006930 <dup2+0x48> <== NOT EXECUTED
/*
* This fcntl handles everything else.
*/
return fcntl( fildes, F_DUPFD, fildes2 );
a0006920: e1a00006 mov r0, r6 <== NOT EXECUTED a0006924: e3a01000 mov r1, #0 <== NOT EXECUTED a0006928: e1a02004 mov r2, r4 <== NOT EXECUTED a000692c: eb000050 bl a0006a74 <fcntl> <== NOT EXECUTED
}
a0006930: e28dd048 add sp, sp, #72 ; 0x48 <== NOT EXECUTED
a0006934: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0007c90 <echo>:
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
if ((tty->termios.c_lflag & ECHOCTL) &&
a0007c90: e591303c ldr r3, [r1, #60] ; 0x3c <== NOT EXECUTED
/*
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
a0007c94: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
if ((tty->termios.c_lflag & ECHOCTL) &&
a0007c98: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED
/*
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
a0007c9c: e1a04001 mov r4, r1 <== NOT EXECUTED
if ((tty->termios.c_lflag & ECHOCTL) &&
a0007ca0: 0a000019 beq a0007d0c <echo+0x7c> <== NOT EXECUTED
iscntrl(c) && (c != '\t') && (c != '\n')) {
a0007ca4: e59f306c ldr r3, [pc, #108] ; a0007d18 <echo+0x88> <== NOT EXECUTED a0007ca8: e5933000 ldr r3, [r3] <== NOT EXECUTED a0007cac: e0833000 add r3, r3, r0 <== NOT EXECUTED a0007cb0: e5d33001 ldrb r3, [r3, #1] <== NOT EXECUTED
* Echo a typed character
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
if ((tty->termios.c_lflag & ECHOCTL) &&
a0007cb4: e3130020 tst r3, #32 <== NOT EXECUTED a0007cb8: 03a03000 moveq r3, #0 <== NOT EXECUTED a0007cbc: 13a03001 movne r3, #1 <== NOT EXECUTED
iscntrl(c) && (c != '\t') && (c != '\n')) {
a0007cc0: e3500009 cmp r0, #9 <== NOT EXECUTED a0007cc4: 03a03000 moveq r3, #0 <== NOT EXECUTED a0007cc8: 12033001 andne r3, r3, #1 <== NOT EXECUTED a0007ccc: e3530000 cmp r3, #0 <== NOT EXECUTED a0007cd0: 0a00000d beq a0007d0c <echo+0x7c> <== NOT EXECUTED a0007cd4: e350000a cmp r0, #10 <== NOT EXECUTED a0007cd8: 0a00000b beq a0007d0c <echo+0x7c> <== NOT EXECUTED
char echobuf[2];
echobuf[0] = '^';
echobuf[1] = c ^ 0x40;
a0007cdc: e2200040 eor r0, r0, #64 ; 0x40 <== NOT EXECUTED
{
if ((tty->termios.c_lflag & ECHOCTL) &&
iscntrl(c) && (c != '\t') && (c != '\n')) {
char echobuf[2];
echobuf[0] = '^';
a0007ce0: e3a0305e mov r3, #94 ; 0x5e <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
a0007ce4: e5cd0001 strb r0, [sp, #1] <== NOT EXECUTED
rtems_termios_puts (echobuf, 2, tty);
a0007ce8: e3a01002 mov r1, #2 <== NOT EXECUTED a0007cec: e1a0000d mov r0, sp <== NOT EXECUTED a0007cf0: e1a02004 mov r2, r4 <== NOT EXECUTED
{
if ((tty->termios.c_lflag & ECHOCTL) &&
iscntrl(c) && (c != '\t') && (c != '\n')) {
char echobuf[2];
echobuf[0] = '^';
a0007cf4: e5cd3000 strb r3, [sp] <== NOT EXECUTED
echobuf[1] = c ^ 0x40;
rtems_termios_puts (echobuf, 2, tty);
a0007cf8: ebffff4f bl a0007a3c <rtems_termios_puts> <== NOT EXECUTED
tty->column += 2;
a0007cfc: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a0007d00: e2833002 add r3, r3, #2 <== NOT EXECUTED a0007d04: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED
*/
static void
echo (unsigned char c, struct rtems_termios_tty *tty)
{
if ((tty->termios.c_lflag & ECHOCTL) &&
iscntrl(c) && (c != '\t') && (c != '\n')) {
a0007d08: ea000001 b a0007d14 <echo+0x84> <== NOT EXECUTED
echobuf[0] = '^';
echobuf[1] = c ^ 0x40;
rtems_termios_puts (echobuf, 2, tty);
tty->column += 2;
} else {
oproc (c, tty);
a0007d0c: e1a01004 mov r1, r4 <== NOT EXECUTED a0007d10: ebffff8a bl a0007b40 <oproc> <== NOT EXECUTED
} }
a0007d14: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a00071cc <endgrent>:
void endgrent(void)
{
if (group_fp != NULL)
a00071cc: e59f300c ldr r3, [pc, #12] ; a00071e0 <endgrent+0x14> <== NOT EXECUTED a00071d0: e59301c4 ldr r0, [r3, #452] ; 0x1c4 <== NOT EXECUTED a00071d4: e3500000 cmp r0, #0 <== NOT EXECUTED a00071d8: 012fff1e bxeq lr <== NOT EXECUTED
fclose(group_fp);
a00071dc: ea002bb1 b a00120a8 <fclose> <== NOT EXECUTED
a0007078 <endpwent>:
void endpwent(void)
{
if (passwd_fp != NULL)
a0007078: e59f300c ldr r3, [pc, #12] ; a000708c <endpwent+0x14> <== NOT EXECUTED a000707c: e59300e8 ldr r0, [r3, #232] ; 0xe8 <== NOT EXECUTED a0007080: e3500000 cmp r0, #0 <== NOT EXECUTED a0007084: 012fff1e bxeq lr <== NOT EXECUTED
fclose(passwd_fp);
a0007088: ea002c06 b a00120a8 <fclose> <== NOT EXECUTED
a0007d1c <erase>:
* FIXME: Some of the tests should check for IEXTEN, too.
*/
static void
erase (struct rtems_termios_tty *tty, int lineFlag)
{
if (tty->ccount == 0)
a0007d1c: e5903020 ldr r3, [r0, #32] <== NOT EXECUTED
* FIXME: Needs support for WERASE and ECHOPRT.
* FIXME: Some of the tests should check for IEXTEN, too.
*/
static void
erase (struct rtems_termios_tty *tty, int lineFlag)
{
a0007d20: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
if (tty->ccount == 0)
a0007d24: e3530000 cmp r3, #0 <== NOT EXECUTED
* FIXME: Needs support for WERASE and ECHOPRT.
* FIXME: Some of the tests should check for IEXTEN, too.
*/
static void
erase (struct rtems_termios_tty *tty, int lineFlag)
{
a0007d28: e1a04000 mov r4, r0 <== NOT EXECUTED a0007d2c: e1a07001 mov r7, r1 <== NOT EXECUTED
if (tty->ccount == 0)
a0007d30: 0a000067 beq a0007ed4 <erase+0x1b8> <== NOT EXECUTED
return;
if (lineFlag) {
a0007d34: e3510000 cmp r1, #0 <== NOT EXECUTED a0007d38: 0a000061 beq a0007ec4 <erase+0x1a8> <== NOT EXECUTED
if (!(tty->termios.c_lflag & ECHO)) {
a0007d3c: e590303c ldr r3, [r0, #60] ; 0x3c <== NOT EXECUTED a0007d40: e2132008 ands r2, r3, #8 <== NOT EXECUTED a0007d44: 1a000001 bne a0007d50 <erase+0x34> <== NOT EXECUTED
tty->ccount = 0;
a0007d48: e5802020 str r2, [r0, #32] <== NOT EXECUTED
return;
a0007d4c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
}
if (!(tty->termios.c_lflag & ECHOE)) {
a0007d50: e2133010 ands r3, r3, #16 <== NOT EXECUTED a0007d54: 1a00005a bne a0007ec4 <erase+0x1a8> <== NOT EXECUTED
tty->ccount = 0;
a0007d58: e5803020 str r3, [r0, #32] <== NOT EXECUTED
echo (tty->termios.c_cc[VKILL], tty);
a0007d5c: e1a01004 mov r1, r4 <== NOT EXECUTED a0007d60: e5d00044 ldrb r0, [r0, #68] ; 0x44 <== NOT EXECUTED a0007d64: ebffffc9 bl a0007c90 <echo> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOK)
a0007d68: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a0007d6c: e3130020 tst r3, #32 <== NOT EXECUTED
echo ('\n', tty);
a0007d70: 13a0000a movne r0, #10 <== NOT EXECUTED
return;
}
if (!(tty->termios.c_lflag & ECHOE)) {
tty->ccount = 0;
echo (tty->termios.c_cc[VKILL], tty);
if (tty->termios.c_lflag & ECHOK)
a0007d74: 0a000056 beq a0007ed4 <erase+0x1b8> <== NOT EXECUTED a0007d78: ea00000b b a0007dac <erase+0x90> <== NOT EXECUTED
}
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
if (tty->termios.c_lflag & ECHO) {
a0007d7c: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED
return;
}
}
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
a0007d80: e594001c ldr r0, [r4, #28] <== NOT EXECUTED a0007d84: e2411001 sub r1, r1, #1 <== NOT EXECUTED a0007d88: e5841020 str r1, [r4, #32] <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
a0007d8c: e3130008 tst r3, #8 <== NOT EXECUTED
return;
}
}
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
a0007d90: e7d05001 ldrb r5, [r0, r1] <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
a0007d94: 0a000047 beq a0007eb8 <erase+0x19c> <== NOT EXECUTED
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
a0007d98: e3570000 cmp r7, #0 <== NOT EXECUTED a0007d9c: 1a000005 bne a0007db8 <erase+0x9c> <== NOT EXECUTED a0007da0: e3130010 tst r3, #16 <== NOT EXECUTED a0007da4: 1a000003 bne a0007db8 <erase+0x9c> <== NOT EXECUTED
echo (tty->termios.c_cc[VERASE], tty);
a0007da8: e5d40043 ldrb r0, [r4, #67] ; 0x43 <== NOT EXECUTED a0007dac: e1a01004 mov r1, r4 <== NOT EXECUTED
}
}
if (!lineFlag)
break;
}
}
a0007db0: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
while (tty->ccount) {
unsigned char c = tty->cbuf[--tty->ccount];
if (tty->termios.c_lflag & ECHO) {
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
echo (tty->termios.c_cc[VERASE], tty);
a0007db4: eaffffb5 b a0007c90 <echo> <== NOT EXECUTED
} else if (c == '\t') {
a0007db8: e3550009 cmp r5, #9 <== NOT EXECUTED a0007dbc: 1a00001f bne a0007e40 <erase+0x124> <== NOT EXECUTED
int col = tty->read_start_column;
a0007dc0: e594502c ldr r5, [r4, #44] ; 0x2c <== NOT EXECUTED
*/
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
} else if (iscntrl (c)) {
a0007dc4: e5968000 ldr r8, [r6] <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO) {
if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {
echo (tty->termios.c_cc[VERASE], tty);
} else if (c == '\t') {
int col = tty->read_start_column;
int i = 0;
a0007dc8: e3a02000 mov r2, #0 <== NOT EXECUTED
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
col = (col | 7) + 1;
} else if (iscntrl (c)) {
if (tty->termios.c_lflag & ECHOCTL)
a0007dcc: e2033c02 and r3, r3, #512 ; 0x200 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
a0007dd0: ea00000c b a0007e08 <erase+0xec> <== NOT EXECUTED
c = tty->cbuf[i++];
a0007dd4: e7d0c002 ldrb ip, [r0, r2] <== NOT EXECUTED a0007dd8: e2822001 add r2, r2, #1 <== NOT EXECUTED
if (c == '\t') {
a0007ddc: e35c0009 cmp ip, #9 <== NOT EXECUTED
col = (col | 7) + 1;
a0007de0: 03855007 orreq r5, r5, #7 <== NOT EXECUTED
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
c = tty->cbuf[i++];
if (c == '\t') {
a0007de4: 0a000006 beq a0007e04 <erase+0xe8> <== NOT EXECUTED
col = (col | 7) + 1;
} else if (iscntrl (c)) {
a0007de8: e088c00c add ip, r8, ip <== NOT EXECUTED a0007dec: e5dcc001 ldrb ip, [ip, #1] <== NOT EXECUTED a0007df0: e31c0020 tst ip, #32 <== NOT EXECUTED a0007df4: 0a000002 beq a0007e04 <erase+0xe8> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHOCTL)
a0007df8: e3530000 cmp r3, #0 <== NOT EXECUTED
col += 2;
a0007dfc: 12855002 addne r5, r5, #2 <== NOT EXECUTED a0007e00: ea000000 b a0007e08 <erase+0xec> <== NOT EXECUTED
} else {
col++;
a0007e04: e2855001 add r5, r5, #1 <== NOT EXECUTED
int i = 0;
/*
* Find the character before the tab
*/
while (i != tty->ccount) {
a0007e08: e1520001 cmp r2, r1 <== NOT EXECUTED a0007e0c: 1afffff0 bne a0007dd4 <erase+0xb8> <== NOT EXECUTED a0007e10: ea000006 b a0007e30 <erase+0x114> <== NOT EXECUTED
/*
* Back up over the tab
*/
while (tty->column > col) {
rtems_termios_puts ("\b", 1, tty);
a0007e14: e59f00bc ldr r0, [pc, #188] ; a0007ed8 <erase+0x1bc> <== NOT EXECUTED a0007e18: e3a01001 mov r1, #1 <== NOT EXECUTED a0007e1c: e1a02004 mov r2, r4 <== NOT EXECUTED a0007e20: ebffff05 bl a0007a3c <rtems_termios_puts> <== NOT EXECUTED
tty->column--;
a0007e24: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a0007e28: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0007e2c: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED
}
/*
* Back up over the tab
*/
while (tty->column > col) {
a0007e30: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a0007e34: e1530005 cmp r3, r5 <== NOT EXECUTED a0007e38: cafffff5 bgt a0007e14 <erase+0xf8> <== NOT EXECUTED a0007e3c: ea00001d b a0007eb8 <erase+0x19c> <== NOT EXECUTED
rtems_termios_puts ("\b", 1, tty);
tty->column--;
}
}
else {
if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {
a0007e40: e5962000 ldr r2, [r6] <== NOT EXECUTED a0007e44: e2855001 add r5, r5, #1 <== NOT EXECUTED a0007e48: e7d22005 ldrb r2, [r2, r5] <== NOT EXECUTED a0007e4c: e3120020 tst r2, #32 <== NOT EXECUTED a0007e50: 0a000009 beq a0007e7c <erase+0x160> <== NOT EXECUTED a0007e54: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED a0007e58: 0a000007 beq a0007e7c <erase+0x160> <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
a0007e5c: e59f0078 ldr r0, [pc, #120] ; a0007edc <erase+0x1c0> <== NOT EXECUTED a0007e60: e3a01003 mov r1, #3 <== NOT EXECUTED a0007e64: e1a02004 mov r2, r4 <== NOT EXECUTED a0007e68: ebfffef3 bl a0007a3c <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
a0007e6c: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a0007e70: e3530000 cmp r3, #0 <== NOT EXECUTED
tty->column--;
a0007e74: 12433001 subne r3, r3, #1 <== NOT EXECUTED a0007e78: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED
}
if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {
a0007e7c: e5963000 ldr r3, [r6] <== NOT EXECUTED a0007e80: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED a0007e84: e3130020 tst r3, #32 <== NOT EXECUTED a0007e88: 0a000002 beq a0007e98 <erase+0x17c> <== NOT EXECUTED a0007e8c: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a0007e90: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED a0007e94: 0a000007 beq a0007eb8 <erase+0x19c> <== NOT EXECUTED
rtems_termios_puts ("\b \b", 3, tty);
a0007e98: e59f003c ldr r0, [pc, #60] ; a0007edc <erase+0x1c0> <== NOT EXECUTED a0007e9c: e3a01003 mov r1, #3 <== NOT EXECUTED a0007ea0: e1a02004 mov r2, r4 <== NOT EXECUTED a0007ea4: ebfffee4 bl a0007a3c <rtems_termios_puts> <== NOT EXECUTED
if (tty->column)
a0007ea8: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a0007eac: e3530000 cmp r3, #0 <== NOT EXECUTED
tty->column--;
a0007eb0: 12433001 subne r3, r3, #1 <== NOT EXECUTED a0007eb4: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED
}
}
}
if (!lineFlag)
a0007eb8: e3570000 cmp r7, #0 <== NOT EXECUTED
a0007ebc: 1a000001 bne a0007ec8 <erase+0x1ac> <== NOT EXECUTED
a0007ec0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0007ec4: e59f6014 ldr r6, [pc, #20] ; a0007ee0 <erase+0x1c4> <== NOT EXECUTED
echo ('\n', tty);
return;
}
}
while (tty->ccount) {
a0007ec8: e5941020 ldr r1, [r4, #32] <== NOT EXECUTED
a0007ecc: e3510000 cmp r1, #0 <== NOT EXECUTED
a0007ed0: 1affffa9 bne a0007d7c <erase+0x60> <== NOT EXECUTED
a0007ed4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0006ef4 <fchdir>:
)
{
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
a0006ef4: e59f3124 ldr r3, [pc, #292] ; a0007020 <fchdir+0x12c> <== NOT EXECUTED
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
a0006ef8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
a0006efc: e5933000 ldr r3, [r3] <== NOT EXECUTED
#include <rtems/seterr.h>
int fchdir(
int fd
)
{
a0006f00: e24dd02c sub sp, sp, #44 ; 0x2c <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc, saved;
rtems_libio_check_fd( fd );
a0006f04: e1500003 cmp r0, r3 <== NOT EXECUTED a0006f08: 2a000006 bcs a0006f28 <fchdir+0x34> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a0006f0c: e59f3110 ldr r3, [pc, #272] ; a0007024 <fchdir+0x130> <== NOT EXECUTED a0006f10: e3a04038 mov r4, #56 ; 0x38 <== NOT EXECUTED a0006f14: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006f18: e0243490 mla r4, r0, r4, r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
a0006f1c: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a0006f20: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0006f24: 1a000002 bne a0006f34 <fchdir+0x40> <== NOT EXECUTED a0006f28: eb002c92 bl a0012178 <__errno> <== NOT EXECUTED a0006f2c: e3a03009 mov r3, #9 <== NOT EXECUTED a0006f30: ea00000e b a0006f70 <fchdir+0x7c> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
a0006f34: e3130002 tst r3, #2 <== NOT EXECUTED a0006f38: 1a000002 bne a0006f48 <fchdir+0x54> <== NOT EXECUTED a0006f3c: eb002c8d bl a0012178 <__errno> <== NOT EXECUTED a0006f40: e3a03016 mov r3, #22 <== NOT EXECUTED a0006f44: ea000009 b a0006f70 <fchdir+0x7c> <== NOT EXECUTED
/*
* Verify you can change directory into this node.
*/
if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) !=
a0006f48: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a0006f4c: e2844018 add r4, r4, #24 <== NOT EXECUTED a0006f50: e1a00004 mov r0, r4 <== NOT EXECUTED a0006f54: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a0006f58: e12fff33 blx r3 <== NOT EXECUTED a0006f5c: e3500001 cmp r0, #1 <== NOT EXECUTED a0006f60: e1a06000 mov r6, r0 <== NOT EXECUTED a0006f64: 0a000003 beq a0006f78 <fchdir+0x84> <== NOT EXECUTED
RTEMS_FILESYSTEM_DIRECTORY ) {
rtems_set_errno_and_return_minus_one( ENOTDIR );
a0006f68: eb002c82 bl a0012178 <__errno> <== NOT EXECUTED a0006f6c: e3a03014 mov r3, #20 <== NOT EXECUTED a0006f70: e5803000 str r3, [r0] <== NOT EXECUTED a0006f74: ea00001d b a0006ff0 <fchdir+0xfc> <== NOT EXECUTED
* but note the race condition. Threads who
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
a0006f78: e59f50a8 ldr r5, [pc, #168] ; a0007028 <fchdir+0x134> <== NOT EXECUTED
a0006f7c: e28de004 add lr, sp, #4 <== NOT EXECUTED
a0006f80: e5957000 ldr r7, [r5] <== NOT EXECUTED
a0006f84: e287c004 add ip, r7, #4 <== NOT EXECUTED
a0006f88: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006f8c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006f90: e59c3000 ldr r3, [ip] <== NOT EXECUTED
a0006f94: e58e3000 str r3, [lr] <== NOT EXECUTED
rtems_filesystem_current = iop->pathinfo;
a0006f98: e287e004 add lr, r7, #4 <== NOT EXECUTED
a0006f9c: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006fa0: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006fa4: e5943000 ldr r3, [r4] <== NOT EXECUTED
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
a0006fa8: e28d4018 add r4, sp, #24 <== NOT EXECUTED a0006fac: e3a02000 mov r2, #0 <== NOT EXECUTED
* share their rtems_filesystem_current better
* be synchronized!
*/
saved = rtems_filesystem_current;
rtems_filesystem_current = iop->pathinfo;
a0006fb0: e58c3000 str r3, [ip] <== NOT EXECUTED
/* clone the current node */
if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) {
a0006fb4: e1a01006 mov r1, r6 <== NOT EXECUTED a0006fb8: e59f006c ldr r0, [pc, #108] ; a000702c <fchdir+0x138> <== NOT EXECUTED a0006fbc: e1a03004 mov r3, r4 <== NOT EXECUTED a0006fc0: e58d2000 str r2, [sp] <== NOT EXECUTED a0006fc4: ebffff9a bl a0006e34 <rtems_filesystem_evaluate_path> <== NOT EXECUTED a0006fc8: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0006fcc: e28d0004 add r0, sp, #4 <== NOT EXECUTED a0006fd0: 0a000008 beq a0006ff8 <fchdir+0x104> <== NOT EXECUTED
/* cloning failed; restore original and bail out */
rtems_filesystem_current = saved;
a0006fd4: e595c000 ldr ip, [r5] <== NOT EXECUTED
a0006fd8: e1a04000 mov r4, r0 <== NOT EXECUTED
a0006fdc: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006fe0: e28cc004 add ip, ip, #4 <== NOT EXECUTED
a0006fe4: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006fe8: e5943000 ldr r3, [r4] <== NOT EXECUTED
a0006fec: e58c3000 str r3, [ip] <== NOT EXECUTED
return -1;
a0006ff0: e3e00000 mvn r0, #0 <== NOT EXECUTED a0006ff4: ea000007 b a0007018 <fchdir+0x124> <== NOT EXECUTED
} /* release the old one */ rtems_filesystem_freenode( &saved );
a0006ff8: eb00004a bl a0007128 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_filesystem_current = loc;
a0006ffc: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a0007000: e595c000 ldr ip, [r5] <== NOT EXECUTED
a0007004: e28cc004 add ip, ip, #4 <== NOT EXECUTED
a0007008: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000700c: e5943000 ldr r3, [r4] <== NOT EXECUTED
return 0;
a0007010: e1a00006 mov r0, r6 <== NOT EXECUTED
return -1;
}
/* release the old one */
rtems_filesystem_freenode( &saved );
rtems_filesystem_current = loc;
a0007014: e58c3000 str r3, [ip] <== NOT EXECUTED
return 0;
}
a0007018: e28dd02c add sp, sp, #44 ; 0x2c <== NOT EXECUTED
a000701c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0007030 <fchmod>:
mode_t mode
)
{
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a0007030: e59f3064 ldr r3, [pc, #100] ; a000709c <fchmod+0x6c> <== NOT EXECUTED
int fchmod(
int fd,
mode_t mode
)
{
a0007034: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a0007038: e5933000 ldr r3, [r3] <== NOT EXECUTED a000703c: e1500003 cmp r0, r3 <== NOT EXECUTED a0007040: 2a000006 bcs a0007060 <fchmod+0x30> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a0007044: e59f3054 ldr r3, [pc, #84] ; a00070a0 <fchmod+0x70> <== NOT EXECUTED a0007048: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED a000704c: e5933000 ldr r3, [r3] <== NOT EXECUTED a0007050: e0203092 mla r0, r2, r0, r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
a0007054: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a0007058: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a000705c: 1a000002 bne a000706c <fchmod+0x3c> <== NOT EXECUTED a0007060: eb002c44 bl a0012178 <__errno> <== NOT EXECUTED a0007064: e3a03009 mov r3, #9 <== NOT EXECUTED a0007068: ea000003 b a000707c <fchmod+0x4c> <== NOT EXECUTED
/*
* Now process the fchmod().
*/
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
a000706c: e3130004 tst r3, #4 <== NOT EXECUTED
a0007070: 1a000004 bne a0007088 <fchmod+0x58> <== NOT EXECUTED
a0007074: eb002c3f bl a0012178 <__errno> <== NOT EXECUTED
a0007078: e3a03016 mov r3, #22 <== NOT EXECUTED
a000707c: e5803000 str r3, [r0] <== NOT EXECUTED
a0007080: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0007084: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode );
a0007088: e5903020 ldr r3, [r0, #32] <== NOT EXECUTED a000708c: e2800018 add r0, r0, #24 <== NOT EXECUTED a0007090: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0007094: e12fff33 blx r3 <== NOT EXECUTED
}
a0007098: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a00070a4 <fchown>:
gid_t group
)
{
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a00070a4: e59f3074 ldr r3, [pc, #116] ; a0007120 <fchown+0x7c> <== NOT EXECUTED
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
a00070a8: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a00070ac: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a00070b0: e5933000 ldr r3, [r3] <== NOT EXECUTED
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
a00070b4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a00070b8: e1500003 cmp r0, r3 <== NOT EXECUTED
int fchown(
int fd,
uid_t owner,
gid_t group
)
{
a00070bc: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED a00070c0: e1a02822 lsr r2, r2, #16 <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a00070c4: 2a000006 bcs a00070e4 <fchown+0x40> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a00070c8: e59f3054 ldr r3, [pc, #84] ; a0007124 <fchown+0x80> <== NOT EXECUTED a00070cc: e3a0c038 mov ip, #56 ; 0x38 <== NOT EXECUTED a00070d0: e5933000 ldr r3, [r3] <== NOT EXECUTED a00070d4: e020309c mla r0, ip, r0, r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
a00070d8: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a00070dc: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a00070e0: 1a000002 bne a00070f0 <fchown+0x4c> <== NOT EXECUTED a00070e4: eb002c23 bl a0012178 <__errno> <== NOT EXECUTED a00070e8: e3a03009 mov r3, #9 <== NOT EXECUTED a00070ec: ea000003 b a0007100 <fchown+0x5c> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
a00070f0: e3130004 tst r3, #4 <== NOT EXECUTED
a00070f4: 1a000004 bne a000710c <fchown+0x68> <== NOT EXECUTED
a00070f8: eb002c1e bl a0012178 <__errno> <== NOT EXECUTED
a00070fc: e3a03016 mov r3, #22 <== NOT EXECUTED
a0007100: e5803000 str r3, [r0] <== NOT EXECUTED
a0007104: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0007108: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group );
a000710c: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED a0007110: e2800018 add r0, r0, #24 <== NOT EXECUTED a0007114: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a0007118: e12fff33 blx r3 <== NOT EXECUTED
}
a000711c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0006a74 <fcntl>:
int fcntl(
int fd,
int cmd,
...
)
{
a0006a74: e92d000e push {r1, r2, r3} <== NOT EXECUTED
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
a0006a78: e59f21a8 ldr r2, [pc, #424] ; a0006c28 <fcntl+0x1b4> <== NOT EXECUTED
int fcntl(
int fd,
int cmd,
...
)
{
a0006a7c: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
a0006a80: e5921000 ldr r1, [r2] <== NOT EXECUTED
...
)
{
int ret;
va_list ap;
va_start( ap, cmd );
a0006a84: e28d301c add r3, sp, #28 <== NOT EXECUTED
int fcntl(
int fd,
int cmd,
...
)
{
a0006a88: e59d7018 ldr r7, [sp, #24] <== NOT EXECUTED
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
a0006a8c: e1500001 cmp r0, r1 <== NOT EXECUTED
...
)
{
int ret;
va_list ap;
va_start( ap, cmd );
a0006a90: e58d3000 str r3, [sp] <== NOT EXECUTED
int fd2;
int flags;
int mask;
int ret = 0;
rtems_libio_check_fd( fd );
a0006a94: 2a000006 bcs a0006ab4 <fcntl+0x40> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a0006a98: e59f218c ldr r2, [pc, #396] ; a0006c2c <fcntl+0x1b8> <== NOT EXECUTED a0006a9c: e3a04038 mov r4, #56 ; 0x38 <== NOT EXECUTED a0006aa0: e5922000 ldr r2, [r2] <== NOT EXECUTED a0006aa4: e0242490 mla r4, r0, r4, r2 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
a0006aa8: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED a0006aac: e3100c01 tst r0, #256 ; 0x100 <== NOT EXECUTED a0006ab0: 1a000002 bne a0006ac0 <fcntl+0x4c> <== NOT EXECUTED a0006ab4: eb002d4c bl a0011fec <__errno> <== NOT EXECUTED a0006ab8: e3a03009 mov r3, #9 <== NOT EXECUTED a0006abc: ea000047 b a0006be0 <fcntl+0x16c> <== NOT EXECUTED
/*
* This switch should contain all the cases from POSIX.
*/
switch ( cmd ) {
a0006ac0: e3570009 cmp r7, #9 <== NOT EXECUTED a0006ac4: 979ff107 ldrls pc, [pc, r7, lsl #2] <== NOT EXECUTED a0006ac8: ea000042 b a0006bd8 <fcntl+0x164> <== NOT EXECUTED a0006acc: a0006af4 .word 0xa0006af4 <== NOT EXECUTED a0006ad0: a0006b64 .word 0xa0006b64 <== NOT EXECUTED a0006ad4: a0006b74 .word 0xa0006b74 <== NOT EXECUTED a0006ad8: a0006b94 .word 0xa0006b94 <== NOT EXECUTED a0006adc: a0006ba0 .word 0xa0006ba0 <== NOT EXECUTED a0006ae0: a0006bcc .word 0xa0006bcc <== NOT EXECUTED a0006ae4: a0006bcc .word 0xa0006bcc <== NOT EXECUTED a0006ae8: a0006bcc .word 0xa0006bcc <== NOT EXECUTED a0006aec: a0006bcc .word 0xa0006bcc <== NOT EXECUTED a0006af0: a0006bcc .word 0xa0006bcc <== NOT EXECUTED
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
a0006af4: e5933000 ldr r3, [r3] <== NOT EXECUTED
if ( fd2 )
a0006af8: e3530000 cmp r3, #0 <== NOT EXECUTED a0006afc: 0a000004 beq a0006b14 <fcntl+0xa0> <== NOT EXECUTED
diop = rtems_libio_iop( fd2 );
a0006b00: e1530001 cmp r3, r1 <== NOT EXECUTED a0006b04: 33a06038 movcc r6, #56 ; 0x38 <== NOT EXECUTED a0006b08: 30262693 mlacc r6, r3, r6, r2 <== NOT EXECUTED a0006b0c: 3a000005 bcc a0006b28 <fcntl+0xb4> <== NOT EXECUTED a0006b10: ea000003 b a0006b24 <fcntl+0xb0> <== NOT EXECUTED
else {
/* allocate a file control block */
diop = rtems_libio_allocate();
a0006b14: eb00019c bl a000718c <rtems_libio_allocate> <== NOT EXECUTED
if ( diop == 0 ) {
a0006b18: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0006b1c: 1a000001 bne a0006b28 <fcntl+0xb4> <== NOT EXECUTED a0006b20: ea00003b b a0006c14 <fcntl+0x1a0> <== NOT EXECUTED
switch ( cmd ) {
case F_DUPFD: /* dup */
fd2 = va_arg( ap, int );
if ( fd2 )
diop = rtems_libio_iop( fd2 );
a0006b24: e3a06000 mov r6, #0 <== NOT EXECUTED
ret = -1;
break;
}
}
diop->flags = iop->flags;
a0006b28: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED
diop->pathinfo = iop->pathinfo;
a0006b2c: e286c018 add ip, r6, #24 <== NOT EXECUTED a0006b30: e2845018 add r5, r4, #24 <== NOT EXECUTED
ret = -1;
break;
}
}
diop->flags = iop->flags;
a0006b34: e5863014 str r3, [r6, #20] <== NOT EXECUTED
diop->pathinfo = iop->pathinfo;
a0006b38: e8b5000f ldm r5!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006b3c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006b40: e5953000 ldr r3, [r5] <== NOT EXECUTED
a0006b44: e58c3000 str r3, [ip] <== NOT EXECUTED
ret = (int) (diop - rtems_libio_iops);
a0006b48: e59f30dc ldr r3, [pc, #220] ; a0006c2c <fcntl+0x1b8> <== NOT EXECUTED a0006b4c: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006b50: e0636006 rsb r6, r3, r6 <== NOT EXECUTED a0006b54: e59f30d4 ldr r3, [pc, #212] ; a0006c30 <fcntl+0x1bc> <== NOT EXECUTED a0006b58: e1a061c6 asr r6, r6, #3 <== NOT EXECUTED a0006b5c: e0060693 mul r6, r3, r6 <== NOT EXECUTED a0006b60: ea000020 b a0006be8 <fcntl+0x174> <== NOT EXECUTED
break;
case F_GETFD: /* get f_flags */
ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0);
a0006b64: e3100b02 tst r0, #2048 ; 0x800 <== NOT EXECUTED a0006b68: 03a06000 moveq r6, #0 <== NOT EXECUTED a0006b6c: 13a06001 movne r6, #1 <== NOT EXECUTED a0006b70: ea00001e b a0006bf0 <fcntl+0x17c> <== NOT EXECUTED
* if a new process is exec()'ed. Since RTEMS does not support
* processes, then we can ignore this one except to make
* F_GETFD work.
*/
if ( va_arg( ap, int ) )
a0006b74: e5936000 ldr r6, [r3] <== NOT EXECUTED a0006b78: e3560000 cmp r6, #0 <== NOT EXECUTED
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
a0006b7c: 13800b02 orrne r0, r0, #2048 ; 0x800 <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
a0006b80: 03c00b02 biceq r0, r0, #2048 ; 0x800 <== NOT EXECUTED
* processes, then we can ignore this one except to make
* F_GETFD work.
*/
if ( va_arg( ap, int ) )
iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;
a0006b84: 15840014 strne r0, [r4, #20] <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
a0006b88: 05840014 streq r0, [r4, #20] <== NOT EXECUTED
* if a new process is exec()'ed. Since RTEMS does not support
* processes, then we can ignore this one except to make
* F_GETFD work.
*/
if ( va_arg( ap, int ) )
a0006b8c: 0a000017 beq a0006bf0 <fcntl+0x17c> <== NOT EXECUTED a0006b90: ea00000b b a0006bc4 <fcntl+0x150> <== NOT EXECUTED
else
iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;
break;
case F_GETFL: /* more flags (cloexec) */
ret = rtems_libio_to_fcntl_flags( iop->flags );
a0006b94: eb00016a bl a0007144 <rtems_libio_to_fcntl_flags> <== NOT EXECUTED a0006b98: e1a06000 mov r6, r0 <== NOT EXECUTED a0006b9c: ea000011 b a0006be8 <fcntl+0x174> <== NOT EXECUTED
break;
case F_SETFL:
flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );
a0006ba0: e5930000 ldr r0, [r3] <== NOT EXECUTED a0006ba4: eb000159 bl a0007110 <rtems_libio_fcntl_flags> <== NOT EXECUTED
/*
* XXX If we are turning on append, should we seek to the end?
*/
iop->flags = (iop->flags & ~mask) | (flags & mask);
a0006ba8: e5942014 ldr r2, [r4, #20] <== NOT EXECUTED a0006bac: e59f3080 ldr r3, [pc, #128] ; a0006c34 <fcntl+0x1c0> <== NOT EXECUTED a0006bb0: e3c22c02 bic r2, r2, #512 ; 0x200 <== NOT EXECUTED a0006bb4: e0003003 and r3, r0, r3 <== NOT EXECUTED a0006bb8: e3c22001 bic r2, r2, #1 <== NOT EXECUTED a0006bbc: e1833002 orr r3, r3, r2 <== NOT EXECUTED a0006bc0: e5843014 str r3, [r4, #20] <== NOT EXECUTED
rtems_libio_t *iop; rtems_libio_t *diop; int fd2; int flags; int mask; int ret = 0;
a0006bc4: e3a06000 mov r6, #0 <== NOT EXECUTED a0006bc8: ea000008 b a0006bf0 <fcntl+0x17c> <== NOT EXECUTED
errno = ENOTSUP;
ret = -1;
break;
case F_GETOWN: /* for sockets. */
errno = ENOTSUP;
a0006bcc: eb002d06 bl a0011fec <__errno> <== NOT EXECUTED a0006bd0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0006bd4: ea000001 b a0006be0 <fcntl+0x16c> <== NOT EXECUTED
ret = -1;
break;
default:
errno = EINVAL;
a0006bd8: eb002d03 bl a0011fec <__errno> <== NOT EXECUTED a0006bdc: e3a03016 mov r3, #22 <== NOT EXECUTED a0006be0: e5803000 str r3, [r0] <== NOT EXECUTED a0006be4: ea00000a b a0006c14 <fcntl+0x1a0> <== NOT EXECUTED
/*
* If we got this far successfully, then we give the optional
* filesystem specific handler a chance to process this.
*/
if (ret >= 0) {
a0006be8: e3560000 cmp r6, #0 <== NOT EXECUTED a0006bec: ba000009 blt a0006c18 <fcntl+0x1a4> <== NOT EXECUTED
int err = (*iop->pathinfo.handlers->fcntl_h)( cmd, iop );
a0006bf0: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a0006bf4: e1a01004 mov r1, r4 <== NOT EXECUTED a0006bf8: e1a00007 mov r0, r7 <== NOT EXECUTED a0006bfc: e5933030 ldr r3, [r3, #48] ; 0x30 <== NOT EXECUTED a0006c00: e12fff33 blx r3 <== NOT EXECUTED
if (err) {
a0006c04: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0006c08: 0a000002 beq a0006c18 <fcntl+0x1a4> <== NOT EXECUTED
errno = err;
a0006c0c: eb002cf6 bl a0011fec <__errno> <== NOT EXECUTED a0006c10: e5804000 str r4, [r0] <== NOT EXECUTED
ret = -1;
a0006c14: e3e06000 mvn r6, #0 <== NOT EXECUTED
va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; }
a0006c18: e1a00006 mov r0, r6 <== NOT EXECUTED
a0006c1c: e8bd40f8 pop {r3, r4, r5, r6, r7, lr} <== NOT EXECUTED
a0006c20: e28dd00c add sp, sp, #12 <== NOT EXECUTED
a0006c24: e12fff1e bx lr <== NOT EXECUTED
a0006c48 <fdatasync>:
int fd
)
{
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a0006c48: e59f3060 ldr r3, [pc, #96] ; a0006cb0 <fdatasync+0x68> <== NOT EXECUTED
#include <rtems/seterr.h>
int fdatasync(
int fd
)
{
a0006c4c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a0006c50: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006c54: e1500003 cmp r0, r3 <== NOT EXECUTED a0006c58: 2a000006 bcs a0006c78 <fdatasync+0x30> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a0006c5c: e59f3050 ldr r3, [pc, #80] ; a0006cb4 <fdatasync+0x6c> <== NOT EXECUTED a0006c60: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED a0006c64: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006c68: e0203092 mla r0, r2, r0, r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
a0006c6c: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a0006c70: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0006c74: 1a000002 bne a0006c84 <fdatasync+0x3c> <== NOT EXECUTED a0006c78: eb002cdb bl a0011fec <__errno> <== NOT EXECUTED a0006c7c: e3a03009 mov r3, #9 <== NOT EXECUTED a0006c80: ea000003 b a0006c94 <fdatasync+0x4c> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
a0006c84: e3130004 tst r3, #4 <== NOT EXECUTED
a0006c88: 1a000004 bne a0006ca0 <fdatasync+0x58> <== NOT EXECUTED
a0006c8c: eb002cd6 bl a0011fec <__errno> <== NOT EXECUTED
a0006c90: e3a03016 mov r3, #22 <== NOT EXECUTED
a0006c94: e5803000 str r3, [r0] <== NOT EXECUTED
a0006c98: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0006c9c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
/*
* Now process the fdatasync().
*/
return (*iop->pathinfo.handlers->fdatasync_h)( iop );
a0006ca0: e5903020 ldr r3, [r0, #32] <== NOT EXECUTED a0006ca4: e593302c ldr r3, [r3, #44] ; 0x2c <== NOT EXECUTED a0006ca8: e12fff33 blx r3 <== NOT EXECUTED
}
a0006cac: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000fa48 <fifo_open>:
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
a000fa48: e92d45f7 push {r0, r1, r2, r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
static rtems_status_code pipe_lock(void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (pipe_semaphore == RTEMS_ID_NONE) {
a000fa4c: e59f53d0 ldr r5, [pc, #976] ; a000fe24 <fifo_open+0x3dc> <== NOT EXECUTED
*/
int fifo_open(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
a000fa50: e1a08000 mov r8, r0 <== NOT EXECUTED a000fa54: e1a07001 mov r7, r1 <== NOT EXECUTED
static rtems_status_code pipe_lock(void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
if (pipe_semaphore == RTEMS_ID_NONE) {
a000fa58: e5954000 ldr r4, [r5] <== NOT EXECUTED a000fa5c: e3540000 cmp r4, #0 <== NOT EXECUTED a000fa60: 1a000012 bne a000fab0 <fifo_open+0x68> <== NOT EXECUTED
rtems_status_code rtems_libio_set_private_env(void);
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
static inline void rtems_libio_lock( void )
{
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
a000fa64: e59f33bc ldr r3, [pc, #956] ; a000fe28 <fifo_open+0x3e0> <== NOT EXECUTED a000fa68: e1a01004 mov r1, r4 <== NOT EXECUTED a000fa6c: e1a02004 mov r2, r4 <== NOT EXECUTED a000fa70: e5930000 ldr r0, [r3] <== NOT EXECUTED a000fa74: ebffee5e bl a000b3f4 <rtems_semaphore_obtain> <== NOT EXECUTED
rtems_libio_lock();
if (pipe_semaphore == RTEMS_ID_NONE) {
a000fa78: e5953000 ldr r3, [r5] <== NOT EXECUTED a000fa7c: e3530000 cmp r3, #0 <== NOT EXECUTED a000fa80: 1a000005 bne a000fa9c <fifo_open+0x54> <== NOT EXECUTED
sc = rtems_semaphore_create(
a000fa84: e59f03a0 ldr r0, [pc, #928] ; a000fe2c <fifo_open+0x3e4> <== NOT EXECUTED a000fa88: e3a01001 mov r1, #1 <== NOT EXECUTED a000fa8c: e3a02054 mov r2, #84 ; 0x54 <== NOT EXECUTED a000fa90: e58d5000 str r5, [sp] <== NOT EXECUTED a000fa94: ebffedc4 bl a000b1ac <rtems_semaphore_create> <== NOT EXECUTED a000fa98: e1a04000 mov r4, r0 <== NOT EXECUTED
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
a000fa9c: e59f3384 ldr r3, [pc, #900] ; a000fe28 <fifo_open+0x3e0> <== NOT EXECUTED a000faa0: e5930000 ldr r0, [r3] <== NOT EXECUTED a000faa4: ebffee98 bl a000b50c <rtems_semaphore_release> <== NOT EXECUTED
}
rtems_libio_unlock();
}
if (sc == RTEMS_SUCCESSFUL) {
a000faa8: e3540000 cmp r4, #0 <== NOT EXECUTED a000faac: 1a000006 bne a000facc <fifo_open+0x84> <== NOT EXECUTED
sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a000fab0: e59f336c ldr r3, [pc, #876] ; a000fe24 <fifo_open+0x3dc> <== NOT EXECUTED a000fab4: e3a01000 mov r1, #0 <== NOT EXECUTED a000fab8: e1a02001 mov r2, r1 <== NOT EXECUTED a000fabc: e5930000 ldr r0, [r3] <== NOT EXECUTED a000fac0: ebffee4b bl a000b3f4 <rtems_semaphore_obtain> <== NOT EXECUTED
}
if (sc == RTEMS_SUCCESSFUL) {
a000fac4: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000fac8: 0a000000 beq a000fad0 <fifo_open+0x88> <== NOT EXECUTED
return 0;
} else {
return -ENOMEM;
a000facc: e3e0500b mvn r5, #11 <== NOT EXECUTED
{
pipe_control_t *pipe;
int err = 0;
err = pipe_lock();
if (err)
a000fad0: e2556000 subs r6, r5, #0 <== NOT EXECUTED a000fad4: 1a0000d0 bne a000fe1c <fifo_open+0x3d4> <== NOT EXECUTED
return err;
pipe = *pipep;
a000fad8: e5984000 ldr r4, [r8] <== NOT EXECUTED
if (pipe == NULL) {
a000fadc: e3540000 cmp r4, #0 <== NOT EXECUTED a000fae0: 1a00004d bne a000fc1c <fifo_open+0x1d4> <== NOT EXECUTED
{
static char c = 'a';
pipe_control_t *pipe;
int err = -ENOMEM;
pipe = malloc(sizeof(pipe_control_t));
a000fae4: e3a00034 mov r0, #52 ; 0x34 <== NOT EXECUTED a000fae8: ebffe252 bl a0008438 <malloc> <== NOT EXECUTED
if (pipe == NULL)
a000faec: e250a000 subs sl, r0, #0 <== NOT EXECUTED
{
static char c = 'a';
pipe_control_t *pipe;
int err = -ENOMEM;
pipe = malloc(sizeof(pipe_control_t));
a000faf0: e1a04000 mov r4, r0 <== NOT EXECUTED
if (pipe == NULL)
a000faf4: 0a000046 beq a000fc14 <fifo_open+0x1cc> <== NOT EXECUTED
return err;
memset(pipe, 0, sizeof(pipe_control_t));
a000faf8: e1a01005 mov r1, r5 <== NOT EXECUTED a000fafc: e3a02034 mov r2, #52 ; 0x34 <== NOT EXECUTED a000fb00: eb001253 bl a0014454 <memset> <== NOT EXECUTED
pipe->Size = PIPE_BUF;
a000fb04: e3a00c02 mov r0, #512 ; 0x200 <== NOT EXECUTED a000fb08: e5840004 str r0, [r4, #4] <== NOT EXECUTED
pipe->Buffer = malloc(pipe->Size);
a000fb0c: ebffe249 bl a0008438 <malloc> <== NOT EXECUTED
if (! pipe->Buffer)
a000fb10: e3500000 cmp r0, #0 <== NOT EXECUTED
if (pipe == NULL)
return err;
memset(pipe, 0, sizeof(pipe_control_t));
pipe->Size = PIPE_BUF;
pipe->Buffer = malloc(pipe->Size);
a000fb14: e5840000 str r0, [r4] <== NOT EXECUTED
if (! pipe->Buffer)
a000fb18: 0a00003b beq a000fc0c <fifo_open+0x1c4> <== NOT EXECUTED
goto err_buf;
err = -ENOMEM;
if (rtems_barrier_create(
rtems_build_name ('P', 'I', 'r', c),
a000fb1c: e59f630c ldr r6, [pc, #780] ; a000fe30 <fifo_open+0x3e8> <== NOT EXECUTED
if (! pipe->Buffer)
goto err_buf;
err = -ENOMEM;
if (rtems_barrier_create(
a000fb20: e59f030c ldr r0, [pc, #780] ; a000fe34 <fifo_open+0x3ec> <== NOT EXECUTED a000fb24: e1a01005 mov r1, r5 <== NOT EXECUTED
rtems_build_name ('P', 'I', 'r', c),
a000fb28: e5d63000 ldrb r3, [r6] <== NOT EXECUTED
if (! pipe->Buffer)
goto err_buf;
err = -ENOMEM;
if (rtems_barrier_create(
a000fb2c: e1a02005 mov r2, r5 <== NOT EXECUTED a000fb30: e1830000 orr r0, r3, r0 <== NOT EXECUTED a000fb34: e284302c add r3, r4, #44 ; 0x2c <== NOT EXECUTED a000fb38: eb000629 bl a00113e4 <rtems_barrier_create> <== NOT EXECUTED a000fb3c: e3500000 cmp r0, #0 <== NOT EXECUTED a000fb40: 1a00002f bne a000fc04 <fifo_open+0x1bc> <== NOT EXECUTED
rtems_build_name ('P', 'I', 'r', c),
RTEMS_BARRIER_MANUAL_RELEASE, 0,
&pipe->readBarrier) != RTEMS_SUCCESSFUL)
goto err_rbar;
if (rtems_barrier_create(
rtems_build_name ('P', 'I', 'w', c),
a000fb44: e5d63000 ldrb r3, [r6] <== NOT EXECUTED
if (rtems_barrier_create(
rtems_build_name ('P', 'I', 'r', c),
RTEMS_BARRIER_MANUAL_RELEASE, 0,
&pipe->readBarrier) != RTEMS_SUCCESSFUL)
goto err_rbar;
if (rtems_barrier_create(
a000fb48: e59f02e8 ldr r0, [pc, #744] ; a000fe38 <fifo_open+0x3f0> <== NOT EXECUTED a000fb4c: e1a01005 mov r1, r5 <== NOT EXECUTED a000fb50: e1a02005 mov r2, r5 <== NOT EXECUTED a000fb54: e1830000 orr r0, r3, r0 <== NOT EXECUTED a000fb58: e2843030 add r3, r4, #48 ; 0x30 <== NOT EXECUTED a000fb5c: eb000620 bl a00113e4 <rtems_barrier_create> <== NOT EXECUTED a000fb60: e3500000 cmp r0, #0 <== NOT EXECUTED a000fb64: 1a000024 bne a000fbfc <fifo_open+0x1b4> <== NOT EXECUTED
rtems_build_name ('P', 'I', 'w', c),
RTEMS_BARRIER_MANUAL_RELEASE, 0,
&pipe->writeBarrier) != RTEMS_SUCCESSFUL)
goto err_wbar;
if (rtems_semaphore_create(
rtems_build_name ('P', 'I', 's', c), 1,
a000fb68: e5d63000 ldrb r3, [r6] <== NOT EXECUTED
if (rtems_barrier_create(
rtems_build_name ('P', 'I', 'w', c),
RTEMS_BARRIER_MANUAL_RELEASE, 0,
&pipe->writeBarrier) != RTEMS_SUCCESSFUL)
goto err_wbar;
if (rtems_semaphore_create(
a000fb6c: e59f02c8 ldr r0, [pc, #712] ; a000fe3c <fifo_open+0x3f4> <== NOT EXECUTED a000fb70: e2842028 add r2, r4, #40 ; 0x28 <== NOT EXECUTED a000fb74: e58d2000 str r2, [sp] <== NOT EXECUTED a000fb78: e1830000 orr r0, r3, r0 <== NOT EXECUTED a000fb7c: e3a01001 mov r1, #1 <== NOT EXECUTED a000fb80: e3a02010 mov r2, #16 <== NOT EXECUTED a000fb84: e1a03005 mov r3, r5 <== NOT EXECUTED a000fb88: ebffed87 bl a000b1ac <rtems_semaphore_create> <== NOT EXECUTED a000fb8c: e3500000 cmp r0, #0 <== NOT EXECUTED a000fb90: 1a000017 bne a000fbf4 <fifo_open+0x1ac> <== NOT EXECUTED
/* Set barriers to be interruptible by signals. */
static void pipe_interruptible(pipe_control_t *pipe)
{
Objects_Locations location;
_Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state
a000fb94: e28d5004 add r5, sp, #4 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Barrier_Control *)
_Objects_Get( &_Barrier_Information, id, location );
a000fb98: e594102c ldr r1, [r4, #44] ; 0x2c <== NOT EXECUTED a000fb9c: e1a02005 mov r2, r5 <== NOT EXECUTED a000fba0: e59f0298 ldr r0, [pc, #664] ; a000fe40 <fifo_open+0x3f8> <== NOT EXECUTED a000fba4: ebfff3cb bl a000cad8 <_Objects_Get> <== NOT EXECUTED
|= STATES_INTERRUPTIBLE_BY_SIGNAL;
a000fba8: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED a000fbac: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED a000fbb0: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED
_Thread_Enable_dispatch();
a000fbb4: ebfff6dc bl a000d72c <_Thread_Enable_dispatch> <== NOT EXECUTED a000fbb8: e1a02005 mov r2, r5 <== NOT EXECUTED a000fbbc: e5941030 ldr r1, [r4, #48] ; 0x30 <== NOT EXECUTED a000fbc0: e59f0278 ldr r0, [pc, #632] ; a000fe40 <fifo_open+0x3f8> <== NOT EXECUTED a000fbc4: ebfff3c3 bl a000cad8 <_Objects_Get> <== NOT EXECUTED
_Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state
|= STATES_INTERRUPTIBLE_BY_SIGNAL;
a000fbc8: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED a000fbcc: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED a000fbd0: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED
_Thread_Enable_dispatch();
a000fbd4: ebfff6d4 bl a000d72c <_Thread_Enable_dispatch> <== NOT EXECUTED
#ifdef RTEMS_POSIX_API
pipe_interruptible(pipe);
#endif
*pipep = pipe;
if (c ++ == 'z')
a000fbd8: e5d63000 ldrb r3, [r6] <== NOT EXECUTED a000fbdc: e353007a cmp r3, #122 ; 0x7a <== NOT EXECUTED a000fbe0: e2832001 add r2, r3, #1 <== NOT EXECUTED
c = 'a';
a000fbe4: 03a03061 moveq r3, #97 ; 0x61 <== NOT EXECUTED
#ifdef RTEMS_POSIX_API
pipe_interruptible(pipe);
#endif
*pipep = pipe;
if (c ++ == 'z')
a000fbe8: e5c62000 strb r2, [r6] <== NOT EXECUTED
c = 'a';
a000fbec: 05c63000 strbeq r3, [r6] <== NOT EXECUTED a000fbf0: ea000009 b a000fc1c <fifo_open+0x1d4> <== NOT EXECUTED
return 0;
err_sem:
rtems_barrier_delete(pipe->writeBarrier);
a000fbf4: e59a0030 ldr r0, [sl, #48] ; 0x30 <== NOT EXECUTED a000fbf8: eb000629 bl a00114a4 <rtems_barrier_delete> <== NOT EXECUTED
err_wbar: rtems_barrier_delete(pipe->readBarrier);
a000fbfc: e59a002c ldr r0, [sl, #44] ; 0x2c <== NOT EXECUTED a000fc00: eb000627 bl a00114a4 <rtems_barrier_delete> <== NOT EXECUTED
err_rbar: free(pipe->Buffer);
a000fc04: e59a0000 ldr r0, [sl] <== NOT EXECUTED a000fc08: ebffe01d bl a0007c84 <free> <== NOT EXECUTED
err_buf: free(pipe);
a000fc0c: e1a0000a mov r0, sl <== NOT EXECUTED a000fc10: ebffe01b bl a0007c84 <free> <== NOT EXECUTED
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
err = -EINTR;
a000fc14: e3e0600b mvn r6, #11 <== NOT EXECUTED a000fc18: ea00000e b a000fc58 <fifo_open+0x210> <== NOT EXECUTED
err = pipe_alloc(&pipe);
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
a000fc1c: e3a01000 mov r1, #0 <== NOT EXECUTED a000fc20: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000fc24: e1a02001 mov r2, r1 <== NOT EXECUTED a000fc28: ebffedf1 bl a000b3f4 <rtems_semaphore_obtain> <== NOT EXECUTED
err = -EINTR;
if (*pipep == NULL) {
a000fc2c: e5983000 ldr r3, [r8] <== NOT EXECUTED
if (err)
goto out;
}
if (! PIPE_LOCK(pipe))
err = -EINTR;
a000fc30: e3500000 cmp r0, #0 <== NOT EXECUTED a000fc34: 03a06000 moveq r6, #0 <== NOT EXECUTED a000fc38: 13e06003 mvnne r6, #3 <== NOT EXECUTED
if (*pipep == NULL) {
a000fc3c: e3530000 cmp r3, #0 <== NOT EXECUTED a000fc40: 1a000004 bne a000fc58 <fifo_open+0x210> <== NOT EXECUTED
if (err)
a000fc44: e3560000 cmp r6, #0 <== NOT EXECUTED
pipe_free(pipe);
else
*pipep = pipe;
a000fc48: 05884000 streq r4, [r8] <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
err = -EINTR;
if (*pipep == NULL) {
if (err)
a000fc4c: 0a000001 beq a000fc58 <fifo_open+0x210> <== NOT EXECUTED
pipe_free(pipe);
a000fc50: e1a00004 mov r0, r4 <== NOT EXECUTED a000fc54: ebffff42 bl a000f964 <pipe_free> <== NOT EXECUTED
else
*pipep = pipe;
}
out:
pipe_unlock();
a000fc58: ebffff3d bl a000f954 <pipe_unlock> <== NOT EXECUTED
pipe_control_t *pipe;
unsigned int prevCounter;
int err;
err = pipe_new(pipep);
if (err)
a000fc5c: e3560000 cmp r6, #0 <== NOT EXECUTED a000fc60: 1a00006d bne a000fe1c <fifo_open+0x3d4> <== NOT EXECUTED
return err;
pipe = *pipep;
switch (LIBIO_ACCMODE(iop)) {
a000fc64: e5973014 ldr r3, [r7, #20] <== NOT EXECUTED
int err;
err = pipe_new(pipep);
if (err)
return err;
pipe = *pipep;
a000fc68: e5984000 ldr r4, [r8] <== NOT EXECUTED
switch (LIBIO_ACCMODE(iop)) {
a000fc6c: e2033006 and r3, r3, #6 <== NOT EXECUTED a000fc70: e3530004 cmp r3, #4 <== NOT EXECUTED a000fc74: 0a000025 beq a000fd10 <fifo_open+0x2c8> <== NOT EXECUTED a000fc78: e3530006 cmp r3, #6 <== NOT EXECUTED a000fc7c: 0a000049 beq a000fda8 <fifo_open+0x360> <== NOT EXECUTED a000fc80: e3530002 cmp r3, #2 <== NOT EXECUTED a000fc84: 1a00005d bne a000fe00 <fifo_open+0x3b8> <== NOT EXECUTED
case LIBIO_FLAGS_READ:
pipe->readerCounter ++;
a000fc88: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a000fc8c: e2833001 add r3, r3, #1 <== NOT EXECUTED a000fc90: e5843020 str r3, [r4, #32] <== NOT EXECUTED
if (pipe->Readers ++ == 0)
a000fc94: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000fc98: e2832001 add r2, r3, #1 <== NOT EXECUTED a000fc9c: e3530000 cmp r3, #0 <== NOT EXECUTED a000fca0: e5842010 str r2, [r4, #16] <== NOT EXECUTED a000fca4: 1a000002 bne a000fcb4 <fifo_open+0x26c> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
a000fca8: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000fcac: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000fcb0: eb000623 bl a0011544 <rtems_barrier_release> <== NOT EXECUTED
if (pipe->Writers == 0) {
a000fcb4: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000fcb8: e3530000 cmp r3, #0 <== NOT EXECUTED a000fcbc: 1a00004f bne a000fe00 <fifo_open+0x3b8> <== NOT EXECUTED
/* Not an error */
if (LIBIO_NODELAY(iop))
a000fcc0: e5973014 ldr r3, [r7, #20] <== NOT EXECUTED a000fcc4: e3130001 tst r3, #1 <== NOT EXECUTED a000fcc8: 1a00004c bne a000fe00 <fifo_open+0x3b8> <== NOT EXECUTED
break;
prevCounter = pipe->writerCounter;
a000fccc: e5945024 ldr r5, [r4, #36] ; 0x24 <== NOT EXECUTED
err = -EINTR;
/* Wait until a writer opens the pipe */
do {
PIPE_UNLOCK(pipe);
a000fcd0: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000fcd4: ebffee0c bl a000b50c <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
a000fcd8: e3a01000 mov r1, #0 <== NOT EXECUTED a000fcdc: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000fce0: eb00062d bl a001159c <rtems_barrier_wait> <== NOT EXECUTED a000fce4: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000fce8: 1a000047 bne a000fe0c <fifo_open+0x3c4> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
a000fcec: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000fcf0: e1a02001 mov r2, r1 <== NOT EXECUTED a000fcf4: ebffedbe bl a000b3f4 <rtems_semaphore_obtain> <== NOT EXECUTED a000fcf8: e3500000 cmp r0, #0 <== NOT EXECUTED a000fcfc: 1a000042 bne a000fe0c <fifo_open+0x3c4> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->writerCounter);
a000fd00: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a000fd04: e1550003 cmp r5, r3 <== NOT EXECUTED a000fd08: 0afffff0 beq a000fcd0 <fifo_open+0x288> <== NOT EXECUTED a000fd0c: ea00003b b a000fe00 <fifo_open+0x3b8> <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_WRITE:
pipe->writerCounter ++;
a000fd10: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a000fd14: e2833001 add r3, r3, #1 <== NOT EXECUTED a000fd18: e5843024 str r3, [r4, #36] ; 0x24 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
a000fd1c: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000fd20: e2832001 add r2, r3, #1 <== NOT EXECUTED a000fd24: e3530000 cmp r3, #0 <== NOT EXECUTED a000fd28: e5842014 str r2, [r4, #20] <== NOT EXECUTED a000fd2c: 1a000002 bne a000fd3c <fifo_open+0x2f4> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
a000fd30: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000fd34: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000fd38: eb000601 bl a0011544 <rtems_barrier_release> <== NOT EXECUTED
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
a000fd3c: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000fd40: e3530000 cmp r3, #0 <== NOT EXECUTED a000fd44: 1a00002d bne a000fe00 <fifo_open+0x3b8> <== NOT EXECUTED a000fd48: e5973014 ldr r3, [r7, #20] <== NOT EXECUTED a000fd4c: e3130001 tst r3, #1 <== NOT EXECUTED
err = -ENXIO;
goto out_error;
}
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
a000fd50: 05945020 ldreq r5, [r4, #32] <== NOT EXECUTED
pipe->writerCounter ++;
if (pipe->Writers ++ == 0)
PIPE_WAKEUPREADERS(pipe);
if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {
a000fd54: 0a000003 beq a000fd68 <fifo_open+0x320> <== NOT EXECUTED
PIPE_UNLOCK(pipe);
a000fd58: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000fd5c: ebffedea bl a000b50c <rtems_semaphore_release> <== NOT EXECUTED
err = -ENXIO;
a000fd60: e3e06005 mvn r6, #5 <== NOT EXECUTED
goto out_error;
a000fd64: ea000029 b a000fe10 <fifo_open+0x3c8> <== NOT EXECUTED
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
err = -EINTR;
do {
PIPE_UNLOCK(pipe);
a000fd68: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000fd6c: ebffede6 bl a000b50c <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
a000fd70: e3a01000 mov r1, #0 <== NOT EXECUTED a000fd74: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000fd78: eb000607 bl a001159c <rtems_barrier_wait> <== NOT EXECUTED a000fd7c: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000fd80: 1a000021 bne a000fe0c <fifo_open+0x3c4> <== NOT EXECUTED
goto out_error;
if (! PIPE_LOCK(pipe))
a000fd84: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000fd88: e1a02001 mov r2, r1 <== NOT EXECUTED a000fd8c: ebffed98 bl a000b3f4 <rtems_semaphore_obtain> <== NOT EXECUTED a000fd90: e3500000 cmp r0, #0 <== NOT EXECUTED a000fd94: 1a00001c bne a000fe0c <fifo_open+0x3c4> <== NOT EXECUTED
goto out_error;
} while (prevCounter == pipe->readerCounter);
a000fd98: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a000fd9c: e1550003 cmp r5, r3 <== NOT EXECUTED a000fda0: 0afffff0 beq a000fd68 <fifo_open+0x320> <== NOT EXECUTED a000fda4: ea000015 b a000fe00 <fifo_open+0x3b8> <== NOT EXECUTED
}
break;
case LIBIO_FLAGS_READ_WRITE:
pipe->readerCounter ++;
a000fda8: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a000fdac: e2833001 add r3, r3, #1 <== NOT EXECUTED a000fdb0: e5843020 str r3, [r4, #32] <== NOT EXECUTED
if (pipe->Readers ++ == 0)
a000fdb4: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000fdb8: e2832001 add r2, r3, #1 <== NOT EXECUTED a000fdbc: e3530000 cmp r3, #0 <== NOT EXECUTED a000fdc0: e5842010 str r2, [r4, #16] <== NOT EXECUTED a000fdc4: 1a000002 bne a000fdd4 <fifo_open+0x38c> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
a000fdc8: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000fdcc: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000fdd0: eb0005db bl a0011544 <rtems_barrier_release> <== NOT EXECUTED
pipe->writerCounter ++;
a000fdd4: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a000fdd8: e2833001 add r3, r3, #1 <== NOT EXECUTED a000fddc: e5843024 str r3, [r4, #36] ; 0x24 <== NOT EXECUTED
if (pipe->Writers ++ == 0)
a000fde0: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000fde4: e2832001 add r2, r3, #1 <== NOT EXECUTED a000fde8: e3530000 cmp r3, #0 <== NOT EXECUTED a000fdec: e5842014 str r2, [r4, #20] <== NOT EXECUTED a000fdf0: 1a000002 bne a000fe00 <fifo_open+0x3b8> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
a000fdf4: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000fdf8: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000fdfc: eb0005d0 bl a0011544 <rtems_barrier_release> <== NOT EXECUTED
break;
}
PIPE_UNLOCK(pipe);
a000fe00: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000fe04: ebffedc0 bl a000b50c <rtems_semaphore_release> <== NOT EXECUTED
return 0;
a000fe08: ea000003 b a000fe1c <fifo_open+0x3d4> <== NOT EXECUTED
goto out_error;
}
if (pipe->Readers == 0) {
prevCounter = pipe->readerCounter;
err = -EINTR;
a000fe0c: e3e06003 mvn r6, #3 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
return 0;
out_error:
pipe_release(pipep, iop);
a000fe10: e1a00008 mov r0, r8 <== NOT EXECUTED a000fe14: e1a01007 mov r1, r7 <== NOT EXECUTED a000fe18: ebfffede bl a000f998 <pipe_release> <== NOT EXECUTED
return err; }
a000fe1c: e1a00006 mov r0, r6 <== NOT EXECUTED
a000fe20: e8bd85fe pop {r1, r2, r3, r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a0006230 <flockfile>:
#include <stdio.h>
/* This is a non-functional stub */
void flockfile(FILE* file)
{
}
a0006230: e12fff1e bx lr <== NOT EXECUTED
a0009220 <fork>:
#include <sys/types.h>
#include <errno.h>
#include <rtems/seterr.h>
int fork( void )
{
a0009220: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0009224: eb0021d7 bl a0011988 <__errno> <== NOT EXECUTED a0009228: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a000922c: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0009230: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009234: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0006cb8 <fpathconf>:
{
long return_value;
rtems_libio_t *iop;
rtems_filesystem_limits_and_options_t *the_limits;
rtems_libio_check_fd(fd);
a0006cb8: e59f3104 ldr r3, [pc, #260] ; a0006dc4 <fpathconf+0x10c> <== NOT EXECUTED
long fpathconf(
int fd,
int name
)
{
a0006cbc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
long return_value;
rtems_libio_t *iop;
rtems_filesystem_limits_and_options_t *the_limits;
rtems_libio_check_fd(fd);
a0006cc0: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006cc4: e1500003 cmp r0, r3 <== NOT EXECUTED a0006cc8: 2a000006 bcs a0006ce8 <fpathconf+0x30> <== NOT EXECUTED
iop = rtems_libio_iop(fd);
a0006ccc: e59f30f4 ldr r3, [pc, #244] ; a0006dc8 <fpathconf+0x110> <== NOT EXECUTED a0006cd0: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED a0006cd4: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006cd8: e0203092 mla r0, r2, r0, r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
a0006cdc: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a0006ce0: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0006ce4: 1a000002 bne a0006cf4 <fpathconf+0x3c> <== NOT EXECUTED a0006ce8: eb002cbf bl a0011fec <__errno> <== NOT EXECUTED a0006cec: e3a03009 mov r3, #9 <== NOT EXECUTED a0006cf0: ea000003 b a0006d04 <fpathconf+0x4c> <== NOT EXECUTED
rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ);
a0006cf4: e3130002 tst r3, #2 <== NOT EXECUTED
a0006cf8: 1a000004 bne a0006d10 <fpathconf+0x58> <== NOT EXECUTED
a0006cfc: eb002cba bl a0011fec <__errno> <== NOT EXECUTED
a0006d00: e3a03016 mov r3, #22 <== NOT EXECUTED
a0006d04: e5803000 str r3, [r0] <== NOT EXECUTED
a0006d08: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0006d0c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
/*
* Now process the information request.
*/
the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options;
a0006d10: e5903028 ldr r3, [r0, #40] ; 0x28 <== NOT EXECUTED
switch ( name ) {
a0006d14: e351000b cmp r1, #11 <== NOT EXECUTED a0006d18: 979ff101 ldrls pc, [pc, r1, lsl #2] <== NOT EXECUTED a0006d1c: ea000023 b a0006db0 <fpathconf+0xf8> <== NOT EXECUTED a0006d20: a0006d50 .word 0xa0006d50 <== NOT EXECUTED a0006d24: a0006d58 .word 0xa0006d58 <== NOT EXECUTED a0006d28: a0006d60 .word 0xa0006d60 <== NOT EXECUTED a0006d2c: a0006d68 .word 0xa0006d68 <== NOT EXECUTED a0006d30: a0006d70 .word 0xa0006d70 <== NOT EXECUTED a0006d34: a0006d78 .word 0xa0006d78 <== NOT EXECUTED a0006d38: a0006d80 .word 0xa0006d80 <== NOT EXECUTED a0006d3c: a0006d88 .word 0xa0006d88 <== NOT EXECUTED a0006d40: a0006d90 .word 0xa0006d90 <== NOT EXECUTED a0006d44: a0006d98 .word 0xa0006d98 <== NOT EXECUTED a0006d48: a0006da0 .word 0xa0006da0 <== NOT EXECUTED a0006d4c: a0006da8 .word 0xa0006da8 <== NOT EXECUTED
case _PC_LINK_MAX:
return_value = the_limits->link_max;
a0006d50: e5930038 ldr r0, [r3, #56] ; 0x38 <== NOT EXECUTED
break;
a0006d54: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
case _PC_MAX_CANON:
return_value = the_limits->max_canon;
a0006d58: e593003c ldr r0, [r3, #60] ; 0x3c <== NOT EXECUTED
break;
a0006d5c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
case _PC_MAX_INPUT:
return_value = the_limits->max_input;
a0006d60: e5930040 ldr r0, [r3, #64] ; 0x40 <== NOT EXECUTED
break;
a0006d64: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
case _PC_NAME_MAX:
return_value = the_limits->name_max;
a0006d68: e5930044 ldr r0, [r3, #68] ; 0x44 <== NOT EXECUTED
break;
a0006d6c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
case _PC_PATH_MAX:
return_value = the_limits->path_max;
a0006d70: e5930048 ldr r0, [r3, #72] ; 0x48 <== NOT EXECUTED
break;
a0006d74: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
case _PC_PIPE_BUF:
return_value = the_limits->pipe_buf;
a0006d78: e593004c ldr r0, [r3, #76] ; 0x4c <== NOT EXECUTED
break;
a0006d7c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
case _PC_CHOWN_RESTRICTED:
return_value = the_limits->posix_chown_restrictions;
a0006d80: e5930054 ldr r0, [r3, #84] ; 0x54 <== NOT EXECUTED
break;
a0006d84: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
case _PC_NO_TRUNC:
return_value = the_limits->posix_no_trunc;
a0006d88: e5930058 ldr r0, [r3, #88] ; 0x58 <== NOT EXECUTED
break;
a0006d8c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
case _PC_VDISABLE:
return_value = the_limits->posix_vdisable;
a0006d90: e5930064 ldr r0, [r3, #100] ; 0x64 <== NOT EXECUTED
break;
a0006d94: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
case _PC_ASYNC_IO:
return_value = the_limits->posix_async_io;
a0006d98: e5930050 ldr r0, [r3, #80] ; 0x50 <== NOT EXECUTED
break;
a0006d9c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
case _PC_PRIO_IO:
return_value = the_limits->posix_prio_io;
a0006da0: e593005c ldr r0, [r3, #92] ; 0x5c <== NOT EXECUTED
break;
a0006da4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
case _PC_SYNC_IO:
return_value = the_limits->posix_sync_io;
a0006da8: e5930060 ldr r0, [r3, #96] ; 0x60 <== NOT EXECUTED
break;
a0006dac: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( EINVAL );
a0006db0: eb002c8d bl a0011fec <__errno> <== NOT EXECUTED a0006db4: e3a03016 mov r3, #22 <== NOT EXECUTED a0006db8: e5803000 str r3, [r0] <== NOT EXECUTED a0006dbc: e3e00000 mvn r0, #0 <== NOT EXECUTED
break;
}
return return_value;
}
a0006dc0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0006170 <free>:
void free(
void *ptr
)
{
MSBUMP(free_calls, 1);
a0006170: e59f3090 ldr r3, [pc, #144] ; a0006208 <free+0x98> <== NOT EXECUTED
#include <stdlib.h>
void free(
void *ptr
)
{
a0006174: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
MSBUMP(free_calls, 1);
a0006178: e593200c ldr r2, [r3, #12] <== NOT EXECUTED
if ( !ptr )
a000617c: e2504000 subs r4, r0, #0 <== NOT EXECUTED
void free(
void *ptr
)
{
MSBUMP(free_calls, 1);
a0006180: e2822001 add r2, r2, #1 <== NOT EXECUTED a0006184: e583200c str r2, [r3, #12] <== NOT EXECUTED
if ( !ptr )
a0006188: 0a00001d beq a0006204 <free+0x94> <== NOT EXECUTED
return;
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
a000618c: e59f3078 ldr r3, [pc, #120] ; a000620c <free+0x9c> <== NOT EXECUTED a0006190: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006194: e3530003 cmp r3, #3 <== NOT EXECUTED a0006198: 1a000005 bne a00061b4 <free+0x44> <== NOT EXECUTED
!malloc_is_system_state_OK() ) {
a000619c: eb000074 bl a0006374 <malloc_is_system_state_OK> <== NOT EXECUTED
return;
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
a00061a0: e3500000 cmp r0, #0 <== NOT EXECUTED a00061a4: 1a000002 bne a00061b4 <free+0x44> <== NOT EXECUTED
!malloc_is_system_state_OK() ) {
malloc_deferred_free(ptr);
a00061a8: e1a00004 mov r0, r4 <== NOT EXECUTED
RTEMS_Malloc_Heap->area_begin,
RTEMS_Malloc_Heap->area_end
);
}
}
a00061ac: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
/*
* Do not attempt to free memory if in a critical section or ISR.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
!malloc_is_system_state_OK() ) {
malloc_deferred_free(ptr);
a00061b0: ea00008c b a00063e8 <malloc_deferred_free> <== NOT EXECUTED
}
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
a00061b4: e59f3054 ldr r3, [pc, #84] ; a0006210 <free+0xa0> <== NOT EXECUTED a00061b8: e5933000 ldr r3, [r3] <== NOT EXECUTED a00061bc: e3530000 cmp r3, #0 <== NOT EXECUTED a00061c0: 0a000002 beq a00061d0 <free+0x60> <== NOT EXECUTED
(*rtems_malloc_statistics_helpers->at_free)(ptr);
a00061c4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a00061c8: e1a00004 mov r0, r4 <== NOT EXECUTED a00061cc: e12fff33 blx r3 <== NOT EXECUTED
if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
a00061d0: e59f503c ldr r5, [pc, #60] ; a0006214 <free+0xa4> <== NOT EXECUTED a00061d4: e1a01004 mov r1, r4 <== NOT EXECUTED a00061d8: e5950000 ldr r0, [r5] <== NOT EXECUTED a00061dc: eb001305 bl a000adf8 <_Protected_heap_Free> <== NOT EXECUTED a00061e0: e3500000 cmp r0, #0 <== NOT EXECUTED a00061e4: 1a000006 bne a0006204 <free+0x94> <== NOT EXECUTED
printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
ptr,
RTEMS_Malloc_Heap->area_begin,
a00061e8: e5953000 ldr r3, [r5] <== NOT EXECUTED
*/
if ( rtems_malloc_statistics_helpers )
(*rtems_malloc_statistics_helpers->at_free)(ptr);
if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
a00061ec: e59f0024 ldr r0, [pc, #36] ; a0006218 <free+0xa8> <== NOT EXECUTED a00061f0: e1a01004 mov r1, r4 <== NOT EXECUTED a00061f4: e5932018 ldr r2, [r3, #24] <== NOT EXECUTED a00061f8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED
RTEMS_Malloc_Heap->area_begin,
RTEMS_Malloc_Heap->area_end
);
}
}
a00061fc: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
*/
if ( rtems_malloc_statistics_helpers )
(*rtems_malloc_statistics_helpers->at_free)(ptr);
if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {
printk( "Program heap: free of bad pointer %p -- range %p - %p \n",
a0006200: ea000350 b a0006f48 <printk> <== NOT EXECUTED
a0006204: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000747c <free_user_env>:
static void
free_user_env(void *venv)
{
rtems_user_env_t *env = (rtems_user_env_t*) venv ;
if (env != &rtems_global_user_env
a000747c: e59f302c ldr r3, [pc, #44] ; a00074b0 <free_user_env+0x34> <== NOT EXECUTED
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
a0007480: e92d4010 push {r4, lr} <== NOT EXECUTED
rtems_user_env_t *env = (rtems_user_env_t*) venv ;
if (env != &rtems_global_user_env
a0007484: e1500003 cmp r0, r3 <== NOT EXECUTED
* NOTE: this must be called with
* thread dispatching disabled!
*/
static void
free_user_env(void *venv)
{
a0007488: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_user_env_t *env = (rtems_user_env_t*) venv ;
if (env != &rtems_global_user_env
a000748c: 0a000006 beq a00074ac <free_user_env+0x30> <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
a0007490: e2800004 add r0, r0, #4 <== NOT EXECUTED a0007494: ebfffbd4 bl a00063ec <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_filesystem_freenode( &env->root_directory);
a0007498: e2840018 add r0, r4, #24 <== NOT EXECUTED a000749c: ebfffbd2 bl a00063ec <rtems_filesystem_freenode> <== NOT EXECUTED
free(env);
a00074a0: e1a00004 mov r0, r4 <== NOT EXECUTED
} }
a00074a4: e8bd4010 pop {r4, lr} <== NOT EXECUTED
&& --env->refcnt <= 0
#endif
) {
rtems_filesystem_freenode( &env->current_directory);
rtems_filesystem_freenode( &env->root_directory);
free(env);
a00074a8: eafffbd4 b a0006400 <free> <== NOT EXECUTED
a00074ac: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0015ee8 <fstat>:
int fstat(
int fd,
struct stat *sbuf
)
{
a0015ee8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
rtems_libio_t *iop;
/*
* Check to see if we were passed a valid pointer.
*/
if ( !sbuf )
a0015eec: e2515000 subs r5, r1, #0 <== NOT EXECUTED a0015ef0: 1a000002 bne a0015f00 <fstat+0x18> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a0015ef4: ebffec5c bl a001106c <__errno> <== NOT EXECUTED a0015ef8: e3a0300e mov r3, #14 <== NOT EXECUTED a0015efc: ea00000c b a0015f34 <fstat+0x4c> <== NOT EXECUTED
/*
* Now process the stat() request.
*/
iop = rtems_libio_iop( fd );
a0015f00: e59f3060 ldr r3, [pc, #96] ; a0015f68 <fstat+0x80> <== NOT EXECUTED a0015f04: e5933000 ldr r3, [r3] <== NOT EXECUTED a0015f08: e1500003 cmp r0, r3 <== NOT EXECUTED a0015f0c: 2a000006 bcs a0015f2c <fstat+0x44> <== NOT EXECUTED a0015f10: e59f3054 ldr r3, [pc, #84] ; a0015f6c <fstat+0x84> <== NOT EXECUTED a0015f14: e3a04038 mov r4, #56 ; 0x38 <== NOT EXECUTED a0015f18: e5933000 ldr r3, [r3] <== NOT EXECUTED a0015f1c: e0243490 mla r4, r0, r4, r3 <== NOT EXECUTED
rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop);
a0015f20: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED
a0015f24: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED
a0015f28: 1a000004 bne a0015f40 <fstat+0x58> <== NOT EXECUTED
a0015f2c: ebffec4e bl a001106c <__errno> <== NOT EXECUTED
a0015f30: e3a03009 mov r3, #9 <== NOT EXECUTED
a0015f34: e5803000 str r3, [r0] <== NOT EXECUTED
a0015f38: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0015f3c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( sbuf, 0, sizeof(struct stat) );
a0015f40: e1a00005 mov r0, r5 <== NOT EXECUTED a0015f44: e3a01000 mov r1, #0 <== NOT EXECUTED a0015f48: e3a02048 mov r2, #72 ; 0x48 <== NOT EXECUTED a0015f4c: ebffeeab bl a0011a00 <memset> <== NOT EXECUTED
return (*iop->pathinfo.handlers->fstat_h)( &iop->pathinfo, sbuf );
a0015f50: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a0015f54: e2840018 add r0, r4, #24 <== NOT EXECUTED a0015f58: e1a01005 mov r1, r5 <== NOT EXECUTED a0015f5c: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a0015f60: e12fff33 blx r3 <== NOT EXECUTED
}
a0015f64: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0006f20 <fsync>:
int fd
)
{
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a0006f20: e59f3060 ldr r3, [pc, #96] ; a0006f88 <fsync+0x68> <== NOT EXECUTED
#include <rtems/seterr.h>
int fsync(
int fd
)
{
a0006f24: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a0006f28: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006f2c: e1500003 cmp r0, r3 <== NOT EXECUTED a0006f30: 2a000006 bcs a0006f50 <fsync+0x30> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a0006f34: e59f3050 ldr r3, [pc, #80] ; a0006f8c <fsync+0x6c> <== NOT EXECUTED a0006f38: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED a0006f3c: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006f40: e0203092 mla r0, r2, r0, r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
a0006f44: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a0006f48: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0006f4c: 1a000002 bne a0006f5c <fsync+0x3c> <== NOT EXECUTED a0006f50: eb002c25 bl a0011fec <__errno> <== NOT EXECUTED a0006f54: e3a03009 mov r3, #9 <== NOT EXECUTED a0006f58: ea000003 b a0006f6c <fsync+0x4c> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
a0006f5c: e3130004 tst r3, #4 <== NOT EXECUTED
a0006f60: 1a000004 bne a0006f78 <fsync+0x58> <== NOT EXECUTED
a0006f64: eb002c20 bl a0011fec <__errno> <== NOT EXECUTED
a0006f68: e3a03016 mov r3, #22 <== NOT EXECUTED
a0006f6c: e5803000 str r3, [r0] <== NOT EXECUTED
a0006f70: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0006f74: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
/*
* Now process the fsync().
*/
return (*iop->pathinfo.handlers->fsync_h)( iop );
a0006f78: e5903020 ldr r3, [r0, #32] <== NOT EXECUTED a0006f7c: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED a0006f80: e12fff33 blx r3 <== NOT EXECUTED
}
a0006f84: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000dabc <ftruncate>:
)
{
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
a000dabc: e59f30bc ldr r3, [pc, #188] ; a000db80 <ftruncate+0xc4> <== NOT EXECUTED
int ftruncate(
int fd,
off_t length
)
{
a000dac0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
a000dac4: e5933000 ldr r3, [r3] <== NOT EXECUTED
int ftruncate(
int fd,
off_t length
)
{
a000dac8: e24dd014 sub sp, sp, #20 <== NOT EXECUTED a000dacc: e1a05001 mov r5, r1 <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
a000dad0: e1500003 cmp r0, r3 <== NOT EXECUTED
int ftruncate(
int fd,
off_t length
)
{
a000dad4: e1a06002 mov r6, r2 <== NOT EXECUTED
rtems_libio_t *iop;
rtems_filesystem_location_info_t loc;
rtems_libio_check_fd( fd );
a000dad8: 2a000006 bcs a000daf8 <ftruncate+0x3c> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a000dadc: e59f30a0 ldr r3, [pc, #160] ; a000db84 <ftruncate+0xc8> <== NOT EXECUTED a000dae0: e3a04038 mov r4, #56 ; 0x38 <== NOT EXECUTED a000dae4: e5933000 ldr r3, [r3] <== NOT EXECUTED a000dae8: e0243490 mla r4, r0, r4, r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
a000daec: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000daf0: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a000daf4: 1a000002 bne a000db04 <ftruncate+0x48> <== NOT EXECUTED a000daf8: eb000d5b bl a001106c <__errno> <== NOT EXECUTED a000dafc: e3a03009 mov r3, #9 <== NOT EXECUTED a000db00: ea000013 b a000db54 <ftruncate+0x98> <== NOT EXECUTED
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
a000db04: e1a0c00d mov ip, sp <== NOT EXECUTED
a000db08: e284e018 add lr, r4, #24 <== NOT EXECUTED
a000db0c: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a000db10: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000db14: e59e3000 ldr r3, [lr] <== NOT EXECUTED
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
a000db18: e1a0000d mov r0, sp <== NOT EXECUTED
/*
* Make sure we are not working on a directory
*/
loc = iop->pathinfo;
a000db1c: e58c3000 str r3, [ip] <== NOT EXECUTED
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY )
a000db20: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a000db24: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a000db28: e12fff33 blx r3 <== NOT EXECUTED a000db2c: e3500001 cmp r0, #1 <== NOT EXECUTED a000db30: 1a000002 bne a000db40 <ftruncate+0x84> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EISDIR );
a000db34: eb000d4c bl a001106c <__errno> <== NOT EXECUTED a000db38: e3a03015 mov r3, #21 <== NOT EXECUTED a000db3c: ea000004 b a000db54 <ftruncate+0x98> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
a000db40: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000db44: e3130004 tst r3, #4 <== NOT EXECUTED a000db48: 1a000004 bne a000db60 <ftruncate+0xa4> <== NOT EXECUTED a000db4c: eb000d46 bl a001106c <__errno> <== NOT EXECUTED a000db50: e3a03016 mov r3, #22 <== NOT EXECUTED a000db54: e5803000 str r3, [r0] <== NOT EXECUTED a000db58: e3e00000 mvn r0, #0 <== NOT EXECUTED a000db5c: ea000005 b a000db78 <ftruncate+0xbc> <== NOT EXECUTED
return (*iop->pathinfo.handlers->ftruncate_h)( iop, length );
a000db60: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a000db64: e1a00004 mov r0, r4 <== NOT EXECUTED a000db68: e1a01005 mov r1, r5 <== NOT EXECUTED a000db6c: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED a000db70: e1a02006 mov r2, r6 <== NOT EXECUTED a000db74: e12fff33 blx r3 <== NOT EXECUTED
}
a000db78: e28dd014 add sp, sp, #20 <== NOT EXECUTED
a000db7c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a00062f4 <ftrylockfile>:
#include <rtems/seterr.h>
#include <errno.h>
/* This is a non-functional stub */
int ftrylockfile(FILE* file)
{
a00062f4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTSUP );
a00062f8: eb002b5c bl a0011070 <__errno> <== NOT EXECUTED a00062fc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0006300: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0006304: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0006308: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000630c <funlockfile>:
#include <stdio.h>
/* This is a non-functional stub */
void funlockfile(FILE* file)
{
}
a000630c: e12fff1e bx lr <== NOT EXECUTED
a00179ac <getdents>:
rtems_filesystem_location_info_t loc;
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
a00179ac: e59f308c ldr r3, [pc, #140] ; a0017a40 <getdents+0x94> <== NOT EXECUTED
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
a00179b0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
rtems_filesystem_location_info_t loc;
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
a00179b4: e5933000 ldr r3, [r3] <== NOT EXECUTED
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
a00179b8: e24dd014 sub sp, sp, #20 <== NOT EXECUTED
iop = rtems_libio_iop( dd_fd );
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
a00179bc: e1a0c00d mov ip, sp <== NOT EXECUTED
rtems_filesystem_location_info_t loc;
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
a00179c0: e1500003 cmp r0, r3 <== NOT EXECUTED a00179c4: 359f3078 ldrcc r3, [pc, #120] ; a0017a44 <getdents+0x98> <== NOT EXECUTED a00179c8: 33a04038 movcc r4, #56 ; 0x38 <== NOT EXECUTED a00179cc: 23a04000 movcs r4, #0 <== NOT EXECUTED a00179d0: 35933000 ldrcc r3, [r3] <== NOT EXECUTED
int getdents(
int dd_fd,
char *dd_buf,
int dd_len
)
{
a00179d4: e1a06001 mov r6, r1 <== NOT EXECUTED a00179d8: e1a05002 mov r5, r2 <== NOT EXECUTED
rtems_filesystem_location_info_t loc;
/*
* Get the file control block structure associated with the file descriptor
*/
iop = rtems_libio_iop( dd_fd );
a00179dc: 30243490 mlacc r4, r0, r4, r3 <== NOT EXECUTED
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
a00179e0: e284e018 add lr, r4, #24 <== NOT EXECUTED
a00179e4: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a00179e8: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a00179ec: e59e3000 ldr r3, [lr] <== NOT EXECUTED
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
a00179f0: e1a0000d mov r0, sp <== NOT EXECUTED
iop = rtems_libio_iop( dd_fd );
/*
* Make sure we are working on a directory
*/
loc = iop->pathinfo;
a00179f4: e58c3000 str r3, [ip] <== NOT EXECUTED
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY )
a00179f8: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a00179fc: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a0017a00: e12fff33 blx r3 <== NOT EXECUTED a0017a04: e3500001 cmp r0, #1 <== NOT EXECUTED a0017a08: 0a000004 beq a0017a20 <getdents+0x74> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTDIR );
a0017a0c: ebffe910 bl a0011e54 <__errno> <== NOT EXECUTED a0017a10: e3a03014 mov r3, #20 <== NOT EXECUTED a0017a14: e5803000 str r3, [r0] <== NOT EXECUTED a0017a18: e3e00000 mvn r0, #0 <== NOT EXECUTED a0017a1c: ea000005 b a0017a38 <getdents+0x8c> <== NOT EXECUTED
/*
* Return the number of bytes that were actually transfered as a result
* of the read attempt.
*/
return (*iop->pathinfo.handlers->read_h)( iop, dd_buf, dd_len );
a0017a20: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a0017a24: e1a00004 mov r0, r4 <== NOT EXECUTED a0017a28: e1a01006 mov r1, r6 <== NOT EXECUTED a0017a2c: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a0017a30: e1a02005 mov r2, r5 <== NOT EXECUTED a0017a34: e12fff33 blx r3 <== NOT EXECUTED
}
a0017a38: e28dd014 add sp, sp, #20 <== NOT EXECUTED
a0017a3c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a00067e0 <getgid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
gid_t getgid( void )
{
return _POSIX_types_Gid;
a00067e0: e59f3008 ldr r3, [pc, #8] ; a00067f0 <getgid+0x10> <== NOT EXECUTED a00067e4: e5933000 ldr r3, [r3] <== NOT EXECUTED
}
a00067e8: e1d303b4 ldrh r0, [r3, #52] ; 0x34 <== NOT EXECUTED a00067ec: e12fff1e bx lr <== NOT EXECUTED
a0006d94 <getgr_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
a0006d94: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
a0006d98: e59da01c ldr sl, [sp, #28] <== NOT EXECUTED
a0006d9c: e1a06000 mov r6, r0 <== NOT EXECUTED
a0006da0: e1a07001 mov r7, r1 <== NOT EXECUTED
a0006da4: e1a04002 mov r4, r2 <== NOT EXECUTED
a0006da8: e1a08003 mov r8, r3 <== NOT EXECUTED
FILE *fp;
int match;
init_etc_passwd_group();
a0006dac: ebffffc5 bl a0006cc8 <init_etc_passwd_group> <== NOT EXECUTED
if ((fp = fopen("/etc/group", "r")) == NULL)
a0006db0: e59f00a8 ldr r0, [pc, #168] ; a0006e60 <getgr_r+0xcc> <== NOT EXECUTED a0006db4: e59f10a8 ldr r1, [pc, #168] ; a0006e64 <getgr_r+0xd0> <== NOT EXECUTED a0006db8: eb002e91 bl a0012804 <fopen> <== NOT EXECUTED a0006dbc: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0006dc0: 1a000004 bne a0006dd8 <getgr_r+0x44> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0006dc4: eb002c69 bl a0011f70 <__errno> <== NOT EXECUTED
a0006dc8: e3a03016 mov r3, #22 <== NOT EXECUTED
a0006dcc: e5803000 str r3, [r0] <== NOT EXECUTED
a0006dd0: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0006dd4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
for(;;) {
if (!scangr(fp, grp, buffer, bufsize))
a0006dd8: e1a00005 mov r0, r5 <== NOT EXECUTED a0006ddc: e1a01004 mov r1, r4 <== NOT EXECUTED a0006de0: e1a02008 mov r2, r8 <== NOT EXECUTED a0006de4: e1a0300a mov r3, sl <== NOT EXECUTED a0006de8: ebffff25 bl a0006a84 <scangr> <== NOT EXECUTED a0006dec: e3500000 cmp r0, #0 <== NOT EXECUTED a0006df0: 0a000013 beq a0006e44 <getgr_r+0xb0> <== NOT EXECUTED
goto error_einval;
if (name) {
a0006df4: e3560000 cmp r6, #0 <== NOT EXECUTED a0006df8: 0a000005 beq a0006e14 <getgr_r+0x80> <== NOT EXECUTED
match = (strcmp(grp->gr_name, name) == 0);
a0006dfc: e5940000 ldr r0, [r4] <== NOT EXECUTED a0006e00: e1a01006 mov r1, r6 <== NOT EXECUTED a0006e04: eb0033cf bl a0013d48 <strcmp> <== NOT EXECUTED a0006e08: e2700001 rsbs r0, r0, #1 <== NOT EXECUTED a0006e0c: 33a00000 movcc r0, #0 <== NOT EXECUTED a0006e10: ea000003 b a0006e24 <getgr_r+0x90> <== NOT EXECUTED
} else {
match = (grp->gr_gid == gid);
a0006e14: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED a0006e18: e1500007 cmp r0, r7 <== NOT EXECUTED a0006e1c: 13a00000 movne r0, #0 <== NOT EXECUTED a0006e20: 03a00001 moveq r0, #1 <== NOT EXECUTED
}
if (match) {
a0006e24: e3500000 cmp r0, #0 <== NOT EXECUTED a0006e28: 0affffea beq a0006dd8 <getgr_r+0x44> <== NOT EXECUTED
fclose(fp);
a0006e2c: e1a00005 mov r0, r5 <== NOT EXECUTED a0006e30: eb002c9c bl a00120a8 <fclose> <== NOT EXECUTED
*result = grp;
a0006e34: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED
return 0;
a0006e38: e3a00000 mov r0, #0 <== NOT EXECUTED
match = (grp->gr_gid == gid);
}
if (match) {
fclose(fp);
*result = grp;
a0006e3c: e5834000 str r4, [r3] <== NOT EXECUTED
return 0;
a0006e40: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
}
}
error_einval:
fclose(fp);
a0006e44: e1a00005 mov r0, r5 <== NOT EXECUTED a0006e48: eb002c96 bl a00120a8 <fclose> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0006e4c: eb002c47 bl a0011f70 <__errno> <== NOT EXECUTED a0006e50: e3a03016 mov r3, #22 <== NOT EXECUTED a0006e54: e5803000 str r3, [r0] <== NOT EXECUTED a0006e58: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a0006e5c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a0007158 <getgrent>:
struct group *getgrent(void)
{
a0007158: e92d4010 push {r4, lr} <== NOT EXECUTED
if (group_fp == NULL)
a000715c: e59f4024 ldr r4, [pc, #36] ; a0007188 <getgrent+0x30> <== NOT EXECUTED a0007160: e59401c4 ldr r0, [r4, #452] ; 0x1c4 <== NOT EXECUTED a0007164: e3500000 cmp r0, #0 <== NOT EXECUTED a0007168: 0a000005 beq a0007184 <getgrent+0x2c> <== NOT EXECUTED
return NULL;
if (!scangr(group_fp, &grent, grbuf, sizeof grbuf))
a000716c: e28410ec add r1, r4, #236 ; 0xec <== NOT EXECUTED a0007170: e28420fc add r2, r4, #252 ; 0xfc <== NOT EXECUTED a0007174: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a0007178: ebfffe41 bl a0006a84 <scangr> <== NOT EXECUTED
return NULL;
a000717c: e3500000 cmp r0, #0 <== NOT EXECUTED a0007180: 128400ec addne r0, r4, #236 ; 0xec <== NOT EXECUTED
return &grent; }
a0007184: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0007120 <getgrgid>:
struct group *getgrgid(
gid_t gid
)
{
a0007120: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
a0007124: e59f1028 ldr r1, [pc, #40] ; a0007154 <getgrgid+0x34> <== NOT EXECUTED
}
struct group *getgrgid(
gid_t gid
)
{
a0007128: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
a000712c: e28d3004 add r3, sp, #4 <== NOT EXECUTED a0007130: e58d3000 str r3, [sp] <== NOT EXECUTED a0007134: e2812010 add r2, r1, #16 <== NOT EXECUTED a0007138: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a000713c: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED a0007140: ebffffe9 bl a00070ec <getgrgid_r> <== NOT EXECUTED a0007144: e3500000 cmp r0, #0 <== NOT EXECUTED
return NULL;
return p;
a0007148: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED
)
{
struct group *p;
if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p))
return NULL;
a000714c: 13a00000 movne r0, #0 <== NOT EXECUTED
return p; }
a0007150: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a00070ec <getgrgid_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
a00070ec: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
a00070f0: e58d3000 str r3, [sp] <== NOT EXECUTED a00070f4: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
a00070f8: e1a0e001 mov lr, r1 <== NOT EXECUTED a00070fc: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED a0007100: e1a0c002 mov ip, r2 <== NOT EXECUTED
return getgr_r(NULL, gid, grp, buffer, bufsize, result);
a0007104: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a0007108: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED a000710c: e1a0200e mov r2, lr <== NOT EXECUTED a0007110: e1a0300c mov r3, ip <== NOT EXECUTED a0007114: e3a00000 mov r0, #0 <== NOT EXECUTED a0007118: ebffff1d bl a0006d94 <getgr_r> <== NOT EXECUTED
}
a000711c: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a00070bc <getgrnam>:
struct group *getgrnam(
const char *name
)
{
a00070bc: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
struct group *p;
if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))
a00070c0: e59f1020 ldr r1, [pc, #32] ; a00070e8 <getgrnam+0x2c> <== NOT EXECUTED a00070c4: e28d3004 add r3, sp, #4 <== NOT EXECUTED a00070c8: e58d3000 str r3, [sp] <== NOT EXECUTED a00070cc: e2812010 add r2, r1, #16 <== NOT EXECUTED a00070d0: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a00070d4: ebffffed bl a0007090 <getgrnam_r> <== NOT EXECUTED a00070d8: e3500000 cmp r0, #0 <== NOT EXECUTED
return NULL;
return p;
a00070dc: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED
)
{
struct group *p;
if(getgrnam_r(name, &grent, grbuf, sizeof grbuf, &p))
return NULL;
a00070e0: 13a00000 movne r0, #0 <== NOT EXECUTED
return p; }
a00070e4: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a0007090 <getgrnam_r>:
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
a0007090: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
return getgr_r(name, 0, grp, buffer, bufsize, result);
a0007094: e58d3000 str r3, [sp] <== NOT EXECUTED a0007098: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED
struct group *grp,
char *buffer,
size_t bufsize,
struct group **result
)
{
a000709c: e1a0e001 mov lr, r1 <== NOT EXECUTED a00070a0: e1a0c002 mov ip, r2 <== NOT EXECUTED
return getgr_r(name, 0, grp, buffer, bufsize, result);
a00070a4: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a00070a8: e3a01000 mov r1, #0 <== NOT EXECUTED a00070ac: e1a0200e mov r2, lr <== NOT EXECUTED a00070b0: e1a0300c mov r3, ip <== NOT EXECUTED a00070b4: ebffff36 bl a0006d94 <getgr_r> <== NOT EXECUTED
}
a00070b8: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a00067f4 <getgroups>:
int gidsetsize __attribute__((unused)),
gid_t grouplist[] __attribute__((unused))
)
{
return 0; /* no supplemental group ids */
}
a00067f4: e3a00000 mov r0, #0 <== NOT EXECUTED a00067f8: e12fff1e bx lr <== NOT EXECUTED
a0009154 <getitimer>:
int getitimer(
int which,
struct itimerval *value
)
{
if ( !value )
a0009154: e3510000 cmp r1, #0 <== NOT EXECUTED
int getitimer(
int which,
struct itimerval *value
)
{
a0009158: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( !value )
a000915c: 1a000002 bne a000916c <getitimer+0x18> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a0009160: eb0021b7 bl a0011844 <__errno> <== NOT EXECUTED a0009164: e3a0300e mov r3, #14 <== NOT EXECUTED a0009168: ea000006 b a0009188 <getitimer+0x34> <== NOT EXECUTED
switch ( which ) {
a000916c: e3500002 cmp r0, #2 <== NOT EXECUTED a0009170: 8a000002 bhi a0009180 <getitimer+0x2c> <== NOT EXECUTED
case ITIMER_REAL:
case ITIMER_VIRTUAL:
case ITIMER_PROF:
rtems_set_errno_and_return_minus_one( ENOSYS );
a0009174: eb0021b2 bl a0011844 <__errno> <== NOT EXECUTED a0009178: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a000917c: ea000001 b a0009188 <getitimer+0x34> <== NOT EXECUTED
default:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
a0009180: eb0021af bl a0011844 <__errno> <== NOT EXECUTED a0009184: e3a03016 mov r3, #22 <== NOT EXECUTED a0009188: e5803000 str r3, [r0] <== NOT EXECUTED
}
a000918c: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009190: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000684c <getlogin>:
* 4.2.4 Get User Name, P1003.1b-1993, p. 87
*
* NOTE: P1003.1c/D10, p. 49 adds getlogin_r().
*/
char *getlogin( void )
{
a000684c: e92d4010 push {r4, lr} <== NOT EXECUTED
(void) getlogin_r( _POSIX_types_Getlogin_buffer, LOGIN_NAME_MAX );
a0006850: e59f4018 ldr r4, [pc, #24] ; a0006870 <getlogin+0x24> <== NOT EXECUTED a0006854: e3a01009 mov r1, #9 <== NOT EXECUTED a0006858: e5940000 ldr r0, [r4] <== NOT EXECUTED a000685c: e280003a add r0, r0, #58 ; 0x3a <== NOT EXECUTED a0006860: ebffffe5 bl a00067fc <getlogin_r> <== NOT EXECUTED
return _POSIX_types_Getlogin_buffer;
a0006864: e5940000 ldr r0, [r4] <== NOT EXECUTED
}
a0006868: e280003a add r0, r0, #58 ; 0x3a <== NOT EXECUTED
a000686c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a00067fc <getlogin_r>:
*/
int getlogin_r(
char *name,
size_t namesize
)
{
a00067fc: e92d4010 push {r4, lr} <== NOT EXECUTED
struct passwd *pw;
char *pname;
if ( !name )
a0006800: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0006804: 0a00000b beq a0006838 <getlogin_r+0x3c> <== NOT EXECUTED
return EFAULT;
if ( namesize < LOGIN_NAME_MAX )
a0006808: e3510008 cmp r1, #8 <== NOT EXECUTED a000680c: 9a00000b bls a0006840 <getlogin_r+0x44> <== NOT EXECUTED
return ERANGE;
/* Set the pointer to a default name */
pname = "";
pw = getpwuid(getuid());
a0006810: eb00028d bl a000724c <getuid> <== NOT EXECUTED a0006814: eb0001ec bl a0006fcc <getpwuid> <== NOT EXECUTED
if ( pw )
a0006818: e3500000 cmp r0, #0 <== NOT EXECUTED
pname = pw->pw_name;
a000681c: 15901000 ldrne r1, [r0] <== NOT EXECUTED
if ( namesize < LOGIN_NAME_MAX )
return ERANGE;
/* Set the pointer to a default name */
pname = "";
a0006820: 059f1020 ldreq r1, [pc, #32] ; a0006848 <getlogin_r+0x4c> <== NOT EXECUTED
pw = getpwuid(getuid());
if ( pw )
pname = pw->pw_name;
strncpy( name, pname, LOGIN_NAME_MAX );
a0006824: e1a00004 mov r0, r4 <== NOT EXECUTED a0006828: e3a02009 mov r2, #9 <== NOT EXECUTED a000682c: eb003639 bl a0014118 <strncpy> <== NOT EXECUTED
return 0;
a0006830: e3a00000 mov r0, #0 <== NOT EXECUTED
a0006834: e8bd8010 pop {r4, pc} <== NOT EXECUTED
{
struct passwd *pw;
char *pname;
if ( !name )
return EFAULT;
a0006838: e3a0000e mov r0, #14 <== NOT EXECUTED
a000683c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
if ( namesize < LOGIN_NAME_MAX )
return ERANGE;
a0006840: e3a00022 mov r0, #34 ; 0x22 <== NOT EXECUTED
if ( pw )
pname = pw->pw_name;
strncpy( name, pname, LOGIN_NAME_MAX );
return 0;
}
a0006844: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a00063ec <getpagesize>:
* return a reasonable value.
*/
int getpagesize(void)
{
return PAGE_SIZE;
}
a00063ec: e3a00a01 mov r0, #4096 ; 0x1000 <== NOT EXECUTED a00063f0: e12fff1e bx lr <== NOT EXECUTED
a0006874 <getpgrp>:
* This always succeeds and returns the process group id. For rtems,
* this will always be the local node;
*/
return _Objects_Local_node;
}
a0006874: e3a00001 mov r0, #1 <== NOT EXECUTED a0006878: e12fff1e bx lr <== NOT EXECUTED
a0025508 <getpid>:
*/
pid_t getpid( void )
{
return _Objects_Local_node;
}
a0025508: e3a00001 mov r0, #1 <== NOT EXECUTED a002550c: e12fff1e bx lr <== NOT EXECUTED
a0006890 <getppid>:
*/
pid_t getppid( void )
{
return _POSIX_types_Ppid;
}
a0006890: e59f3004 ldr r3, [pc, #4] ; a000689c <getppid+0xc> <== NOT EXECUTED a0006894: e5930000 ldr r0, [r3] <== NOT EXECUTED a0006898: e12fff1e bx lr <== NOT EXECUTED
a0006e68 <getpw_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
a0006e68: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
a0006e6c: e59da01c ldr sl, [sp, #28] <== NOT EXECUTED
a0006e70: e1a06000 mov r6, r0 <== NOT EXECUTED
a0006e74: e1a07001 mov r7, r1 <== NOT EXECUTED
a0006e78: e1a04002 mov r4, r2 <== NOT EXECUTED
a0006e7c: e1a08003 mov r8, r3 <== NOT EXECUTED
FILE *fp;
int match;
init_etc_passwd_group();
a0006e80: ebffff90 bl a0006cc8 <init_etc_passwd_group> <== NOT EXECUTED
if ((fp = fopen("/etc/passwd", "r")) == NULL)
a0006e84: e59f00a8 ldr r0, [pc, #168] ; a0006f34 <getpw_r+0xcc> <== NOT EXECUTED a0006e88: e59f10a8 ldr r1, [pc, #168] ; a0006f38 <getpw_r+0xd0> <== NOT EXECUTED a0006e8c: eb002e5c bl a0012804 <fopen> <== NOT EXECUTED a0006e90: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0006e94: 1a000004 bne a0006eac <getpw_r+0x44> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0006e98: eb002c34 bl a0011f70 <__errno> <== NOT EXECUTED
a0006e9c: e3a03016 mov r3, #22 <== NOT EXECUTED
a0006ea0: e5803000 str r3, [r0] <== NOT EXECUTED
a0006ea4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0006ea8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
for(;;) {
if (!scanpw(fp, pwd, buffer, bufsize))
a0006eac: e1a00005 mov r0, r5 <== NOT EXECUTED a0006eb0: e1a01004 mov r1, r4 <== NOT EXECUTED a0006eb4: e1a02008 mov r2, r8 <== NOT EXECUTED a0006eb8: e1a0300a mov r3, sl <== NOT EXECUTED a0006ebc: ebffff39 bl a0006ba8 <scanpw> <== NOT EXECUTED a0006ec0: e3500000 cmp r0, #0 <== NOT EXECUTED a0006ec4: 0a000013 beq a0006f18 <getpw_r+0xb0> <== NOT EXECUTED
goto error_einval;
if (name) {
a0006ec8: e3560000 cmp r6, #0 <== NOT EXECUTED a0006ecc: 0a000005 beq a0006ee8 <getpw_r+0x80> <== NOT EXECUTED
match = (strcmp(pwd->pw_name, name) == 0);
a0006ed0: e5940000 ldr r0, [r4] <== NOT EXECUTED a0006ed4: e1a01006 mov r1, r6 <== NOT EXECUTED a0006ed8: eb00339a bl a0013d48 <strcmp> <== NOT EXECUTED a0006edc: e2700001 rsbs r0, r0, #1 <== NOT EXECUTED a0006ee0: 33a00000 movcc r0, #0 <== NOT EXECUTED a0006ee4: ea000003 b a0006ef8 <getpw_r+0x90> <== NOT EXECUTED
} else {
match = (pwd->pw_uid == uid);
a0006ee8: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED a0006eec: e1500007 cmp r0, r7 <== NOT EXECUTED a0006ef0: 13a00000 movne r0, #0 <== NOT EXECUTED a0006ef4: 03a00001 moveq r0, #1 <== NOT EXECUTED
}
if (match) {
a0006ef8: e3500000 cmp r0, #0 <== NOT EXECUTED a0006efc: 0affffea beq a0006eac <getpw_r+0x44> <== NOT EXECUTED
fclose(fp);
a0006f00: e1a00005 mov r0, r5 <== NOT EXECUTED a0006f04: eb002c67 bl a00120a8 <fclose> <== NOT EXECUTED
*result = pwd;
a0006f08: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED
return 0;
a0006f0c: e3a00000 mov r0, #0 <== NOT EXECUTED
match = (pwd->pw_uid == uid);
}
if (match) {
fclose(fp);
*result = pwd;
a0006f10: e5834000 str r4, [r3] <== NOT EXECUTED
return 0;
a0006f14: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
}
}
error_einval:
fclose(fp);
a0006f18: e1a00005 mov r0, r5 <== NOT EXECUTED a0006f1c: eb002c61 bl a00120a8 <fclose> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0006f20: eb002c12 bl a0011f70 <__errno> <== NOT EXECUTED a0006f24: e3a03016 mov r3, #22 <== NOT EXECUTED a0006f28: e5803000 str r3, [r0] <== NOT EXECUTED a0006f2c: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a0006f30: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a0007004 <getpwent>:
struct passwd *getpwent(void)
{
a0007004: e92d4010 push {r4, lr} <== NOT EXECUTED
if (passwd_fp == NULL)
a0007008: e59f4024 ldr r4, [pc, #36] ; a0007034 <getpwent+0x30> <== NOT EXECUTED a000700c: e59400e8 ldr r0, [r4, #232] ; 0xe8 <== NOT EXECUTED a0007010: e3500000 cmp r0, #0 <== NOT EXECUTED a0007014: 0a000005 beq a0007030 <getpwent+0x2c> <== NOT EXECUTED
return NULL;
if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf))
a0007018: e2841004 add r1, r4, #4 <== NOT EXECUTED a000701c: e2842020 add r2, r4, #32 <== NOT EXECUTED a0007020: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a0007024: ebfffedf bl a0006ba8 <scanpw> <== NOT EXECUTED
return NULL;
a0007028: e3500000 cmp r0, #0 <== NOT EXECUTED a000702c: 12840004 addne r0, r4, #4 <== NOT EXECUTED
return &pwent; }
a0007030: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0006f68 <getpwnam>:
struct passwd *getpwnam(
const char *name
)
{
a0006f68: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
struct passwd *p;
if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))
a0006f6c: e59f1020 ldr r1, [pc, #32] ; a0006f94 <getpwnam+0x2c> <== NOT EXECUTED a0006f70: e28d3004 add r3, sp, #4 <== NOT EXECUTED a0006f74: e58d3000 str r3, [sp] <== NOT EXECUTED a0006f78: e281201c add r2, r1, #28 <== NOT EXECUTED a0006f7c: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a0006f80: ebffffed bl a0006f3c <getpwnam_r> <== NOT EXECUTED a0006f84: e3500000 cmp r0, #0 <== NOT EXECUTED
return NULL;
return p;
a0006f88: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED
)
{
struct passwd *p;
if(getpwnam_r(name, &pwent, pwbuf, sizeof pwbuf, &p))
return NULL;
a0006f8c: 13a00000 movne r0, #0 <== NOT EXECUTED
return p; }
a0006f90: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a0006f3c <getpwnam_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
a0006f3c: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
return getpw_r(name, 0, pwd, buffer, bufsize, result);
a0006f40: e58d3000 str r3, [sp] <== NOT EXECUTED a0006f44: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
a0006f48: e1a0e001 mov lr, r1 <== NOT EXECUTED a0006f4c: e1a0c002 mov ip, r2 <== NOT EXECUTED
return getpw_r(name, 0, pwd, buffer, bufsize, result);
a0006f50: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a0006f54: e3a01000 mov r1, #0 <== NOT EXECUTED a0006f58: e1a0200e mov r2, lr <== NOT EXECUTED a0006f5c: e1a0300c mov r3, ip <== NOT EXECUTED a0006f60: ebffffc0 bl a0006e68 <getpw_r> <== NOT EXECUTED
}
a0006f64: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a0006fcc <getpwuid>:
struct passwd *getpwuid(
uid_t uid
)
{
a0006fcc: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
a0006fd0: e59f1028 ldr r1, [pc, #40] ; a0007000 <getpwuid+0x34> <== NOT EXECUTED
}
struct passwd *getpwuid(
uid_t uid
)
{
a0006fd4: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
a0006fd8: e28d3004 add r3, sp, #4 <== NOT EXECUTED a0006fdc: e58d3000 str r3, [sp] <== NOT EXECUTED a0006fe0: e281201c add r2, r1, #28 <== NOT EXECUTED a0006fe4: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a0006fe8: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED a0006fec: ebffffe9 bl a0006f98 <getpwuid_r> <== NOT EXECUTED a0006ff0: e3500000 cmp r0, #0 <== NOT EXECUTED
return NULL;
return p;
a0006ff4: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED
)
{
struct passwd *p;
if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p))
return NULL;
a0006ff8: 13a00000 movne r0, #0 <== NOT EXECUTED
return p; }
a0006ffc: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a0006f98 <getpwuid_r>:
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
a0006f98: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
a0006f9c: e58d3000 str r3, [sp] <== NOT EXECUTED a0006fa0: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED
struct passwd *pwd,
char *buffer,
size_t bufsize,
struct passwd **result
)
{
a0006fa4: e1a0e001 mov lr, r1 <== NOT EXECUTED a0006fa8: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED a0006fac: e1a0c002 mov ip, r2 <== NOT EXECUTED
return getpw_r(NULL, uid, pwd, buffer, bufsize, result);
a0006fb0: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a0006fb4: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED a0006fb8: e1a0200e mov r2, lr <== NOT EXECUTED a0006fbc: e1a0300c mov r3, ip <== NOT EXECUTED a0006fc0: e3a00000 mov r0, #0 <== NOT EXECUTED a0006fc4: ebffffa7 bl a0006e68 <getpw_r> <== NOT EXECUTED
}
a0006fc8: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a00064ec <getrusage>:
#include <rtems.h>
#include <rtems/seterr.h>
int getrusage(int who, struct rusage *usage)
{
a00064ec: e92d4073 push {r0, r1, r4, r5, r6, lr} <== NOT EXECUTED
struct timespec uptime;
struct timeval rtime;
if ( !usage )
a00064f0: e2515000 subs r5, r1, #0 <== NOT EXECUTED
#include <rtems.h>
#include <rtems/seterr.h>
int getrusage(int who, struct rusage *usage)
{
a00064f4: e1a04000 mov r4, r0 <== NOT EXECUTED
struct timespec uptime;
struct timeval rtime;
if ( !usage )
a00064f8: 1a000002 bne a0006508 <getrusage+0x1c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a00064fc: eb002b77 bl a00112e0 <__errno> <== NOT EXECUTED a0006500: e3a0300e mov r3, #14 <== NOT EXECUTED a0006504: ea000015 b a0006560 <getrusage+0x74> <== NOT EXECUTED
* RTEMS only has a single process so there are no children.
* The single process has been running since the system
* was booted and since there is no distinction between system
* and user time, we will just report the uptime.
*/
if (who == RUSAGE_SELF) {
a0006508: e3500000 cmp r0, #0 <== NOT EXECUTED a000650c: 1a00000a bne a000653c <getrusage+0x50> <== NOT EXECUTED
rtems_clock_get_uptime( &uptime );
a0006510: e1a0000d mov r0, sp <== NOT EXECUTED a0006514: eb000ae7 bl a00090b8 <rtems_clock_get_uptime> <== NOT EXECUTED
rtime.tv_sec = uptime.tv_sec;
rtime.tv_usec = uptime.tv_nsec / 1000;
a0006518: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED a000651c: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a0006520: eb00394c bl a0014a58 <__aeabi_idiv> <== NOT EXECUTED
* and user time, we will just report the uptime.
*/
if (who == RUSAGE_SELF) {
rtems_clock_get_uptime( &uptime );
rtime.tv_sec = uptime.tv_sec;
a0006524: e59d6000 ldr r6, [sp] <== NOT EXECUTED
rtime.tv_usec = uptime.tv_nsec / 1000;
a0006528: e5850004 str r0, [r5, #4] <== NOT EXECUTED a000652c: e585000c str r0, [r5, #12] <== NOT EXECUTED a0006530: e5856000 str r6, [r5] <== NOT EXECUTED a0006534: e5856008 str r6, [r5, #8] <== NOT EXECUTED a0006538: ea000004 b a0006550 <getrusage+0x64> <== NOT EXECUTED
usage->ru_stime = rtime;
return 0;
}
if (who == RUSAGE_CHILDREN) {
a000653c: e3700001 cmn r0, #1 <== NOT EXECUTED a0006540: 1a000004 bne a0006558 <getrusage+0x6c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0006544: eb002b65 bl a00112e0 <__errno> <== NOT EXECUTED a0006548: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a000654c: e5803000 str r3, [r0] <== NOT EXECUTED a0006550: e1a00004 mov r0, r4 <== NOT EXECUTED a0006554: ea000003 b a0006568 <getrusage+0x7c> <== NOT EXECUTED
}
rtems_set_errno_and_return_minus_one( EINVAL );
a0006558: eb002b60 bl a00112e0 <__errno> <== NOT EXECUTED a000655c: e3a03016 mov r3, #22 <== NOT EXECUTED a0006560: e5803000 str r3, [r0] <== NOT EXECUTED a0006564: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a0006568: e8bd807c pop {r2, r3, r4, r5, r6, pc} <== NOT EXECUTED
a0006244 <gettimeofday>:
*/
int gettimeofday(
struct timeval *tp,
void * __tz __attribute__((unused))
)
{
a0006244: e92d4033 push {r0, r1, r4, r5, lr}
/* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp )
a0006248: e2504000 subs r4, r0, #0
a000624c: 1a000004 bne a0006264 <gettimeofday+0x20>
rtems_set_errno_and_return_minus_one( EFAULT );
a0006250: eb002b85 bl a001106c <__errno> <== NOT EXECUTED a0006254: e3a0300e mov r3, #14 <== NOT EXECUTED a0006258: e5803000 str r3, [r0] <== NOT EXECUTED a000625c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0006260: ea00000c b a0006298 <gettimeofday+0x54> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0006264: e10f5000 mrs r5, CPSR a0006268: e3853080 orr r3, r5, #128 ; 0x80 a000626c: e129f003 msr CPSR_fc, r3
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
_TOD_Get( &now );
a0006270: e1a0000d mov r0, sp a0006274: eb000fa9 bl a000a120 <_TOD_Get>
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0006278: e129f005 msr CPSR_fc, r5
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
a000627c: e59d3000 ldr r3, [sp]
_ISR_Disable(level);
_TOD_Get( &now );
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
a0006280: e59d0004 ldr r0, [sp, #4] a0006284: e3a01ffa mov r1, #1000 ; 0x3e8
time->tv_sec = now.tv_sec;
a0006288: e5843000 str r3, [r4]
_ISR_Disable(level);
_TOD_Get( &now );
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
a000628c: eb00397f bl a0014890 <__aeabi_idiv>
time->tv_sec = now.tv_sec;
time->tv_usec = useconds;
a0006290: e5840004 str r0, [r4, #4]
* Timezone information ignored by the OS proper. Per email
* with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X
* do it. This puts us in good company.
*/
return 0;
a0006294: e3a00000 mov r0, #0
}
a0006298: e8bd803c pop {r2, r3, r4, r5, pc}
a000724c <getuid>:
* 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs,
* P1003.1b-1993, p. 84
*/
uid_t getuid( void )
{
return _POSIX_types_Uid;
a000724c: e59f3008 ldr r3, [pc, #8] ; a000725c <getuid+0x10> <== NOT EXECUTED a0007250: e5933000 ldr r3, [r3] <== NOT EXECUTED
}
a0007254: e1d303b2 ldrh r0, [r3, #50] ; 0x32 <== NOT EXECUTED a0007258: e12fff1e bx lr <== NOT EXECUTED
a0010548 <imfs_dir_close>:
* and associated memory. At present the imfs_dir_close simply
* returns a successful completion status.
*/
return 0;
}
a0010548: e3a00000 mov r0, #0 <== NOT EXECUTED a001054c: e12fff1e bx lr <== NOT EXECUTED
a00105b8 <imfs_dir_fstat>:
rtems_chain_node *the_node;
rtems_chain_control *the_chain;
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) loc->node_access;
a00105b8: e5903000 ldr r3, [r0] <== NOT EXECUTED
int imfs_dir_fstat(
rtems_filesystem_location_info_t *loc,
struct stat *buf
)
{
a00105bc: e92d4830 push {r4, r5, fp, lr} <== NOT EXECUTED
the_jnode = (IMFS_jnode_t *) loc->node_access;
buf->st_dev = 0ll;
buf->st_ino = the_jnode->st_ino;
a00105c0: e5932038 ldr r2, [r3, #56] ; 0x38 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) loc->node_access;
buf->st_dev = 0ll;
a00105c4: e3a0b000 mov fp, #0 <== NOT EXECUTED a00105c8: e3a0c000 mov ip, #0 <== NOT EXECUTED
buf->st_ino = the_jnode->st_ino;
a00105cc: e5812008 str r2, [r1, #8] <== NOT EXECUTED
buf->st_mode = the_jnode->st_mode;
a00105d0: e5932030 ldr r2, [r3, #48] ; 0x30 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) loc->node_access;
buf->st_dev = 0ll;
a00105d4: e8811800 stm r1, {fp, ip} <== NOT EXECUTED
buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode;
a00105d8: e581200c str r2, [r1, #12] <== NOT EXECUTED
buf->st_nlink = the_jnode->st_nlink;
a00105dc: e1d323b4 ldrh r2, [r3, #52] ; 0x34 <== NOT EXECUTED
/* that are subordinate to this directory node */
for ( the_node = rtems_chain_first( the_chain );
!rtems_chain_is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
buf->st_size = buf->st_size + sizeof( struct dirent );
a00105e0: e3a04e11 mov r4, #272 ; 0x110 <== NOT EXECUTED a00105e4: e3a05000 mov r5, #0 <== NOT EXECUTED
the_jnode = (IMFS_jnode_t *) loc->node_access;
buf->st_dev = 0ll;
buf->st_ino = the_jnode->st_ino;
buf->st_mode = the_jnode->st_mode;
buf->st_nlink = the_jnode->st_nlink;
a00105e8: e1c121b0 strh r2, [r1, #16] <== NOT EXECUTED
buf->st_uid = the_jnode->st_uid;
a00105ec: e1d323bc ldrh r2, [r3, #60] ; 0x3c <== NOT EXECUTED a00105f0: e1c121b2 strh r2, [r1, #18] <== NOT EXECUTED
buf->st_gid = the_jnode->st_gid;
a00105f4: e1d323be ldrh r2, [r3, #62] ; 0x3e <== NOT EXECUTED
buf->st_rdev = 0ll;
a00105f8: e581b018 str fp, [r1, #24] <== NOT EXECUTED a00105fc: e581c01c str ip, [r1, #28] <== NOT EXECUTED
buf->st_dev = 0ll; buf->st_ino = the_jnode->st_ino; buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid;
a0010600: e1c121b4 strh r2, [r1, #20] <== NOT EXECUTED
buf->st_rdev = 0ll; buf->st_blksize = 0;
a0010604: e3a02000 mov r2, #0 <== NOT EXECUTED a0010608: e5812040 str r2, [r1, #64] ; 0x40 <== NOT EXECUTED
buf->st_blocks = 0;
a001060c: e5812044 str r2, [r1, #68] ; 0x44 <== NOT EXECUTED
buf->st_atime = the_jnode->stat_atime;
a0010610: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED a0010614: e5812028 str r2, [r1, #40] ; 0x28 <== NOT EXECUTED
buf->st_mtime = the_jnode->stat_mtime;
a0010618: e5932044 ldr r2, [r3, #68] ; 0x44 <== NOT EXECUTED a001061c: e5812030 str r2, [r1, #48] ; 0x30 <== NOT EXECUTED
buf->st_ctime = the_jnode->stat_ctime;
a0010620: e5932048 ldr r2, [r3, #72] ; 0x48 <== NOT EXECUTED
buf->st_size = 0;
a0010624: e581b020 str fp, [r1, #32] <== NOT EXECUTED a0010628: e581c024 str ip, [r1, #36] ; 0x24 <== NOT EXECUTED
buf->st_rdev = 0ll; buf->st_blksize = 0; buf->st_blocks = 0; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime;
a001062c: e5812038 str r2, [r1, #56] ; 0x38 <== NOT EXECUTED
IMFS_create_orphan( the_jnode );
IMFS_check_node_remove( the_jnode );
return 0;
}
a0010630: e5932050 ldr r2, [r3, #80] ; 0x50 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(
Chain_Control *the_chain,
const Chain_Node *the_node
)
{
return (the_node == _Chain_Tail(the_chain));
a0010634: e2833054 add r3, r3, #84 ; 0x54 <== NOT EXECUTED
the_chain = &the_jnode->info.directory.Entries;
/* Run through the chain and count the number of directory entries */
/* that are subordinate to this directory node */
for ( the_node = rtems_chain_first( the_chain );
a0010638: ea000006 b a0010658 <imfs_dir_fstat+0xa0> <== NOT EXECUTED
!rtems_chain_is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
buf->st_size = buf->st_size + sizeof( struct dirent );
a001063c: e281c020 add ip, r1, #32 <== NOT EXECUTED
a0010640: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED
a0010644: e09bb004 adds fp, fp, r4 <== NOT EXECUTED
a0010648: e0acc005 adc ip, ip, r5 <== NOT EXECUTED
a001064c: e581b020 str fp, [r1, #32] <== NOT EXECUTED
a0010650: e581c024 str ip, [r1, #36] ; 0x24 <== NOT EXECUTED
/* Run through the chain and count the number of directory entries */
/* that are subordinate to this directory node */
for ( the_node = rtems_chain_first( the_chain );
!rtems_chain_is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
a0010654: e5922000 ldr r2, [r2] <== NOT EXECUTED
the_chain = &the_jnode->info.directory.Entries;
/* Run through the chain and count the number of directory entries */
/* that are subordinate to this directory node */
for ( the_node = rtems_chain_first( the_chain );
a0010658: e1520003 cmp r2, r3 <== NOT EXECUTED a001065c: 1afffff6 bne a001063c <imfs_dir_fstat+0x84> <== NOT EXECUTED
buf->st_size = buf->st_size + sizeof( struct dirent );
}
return 0;
}
a0010660: e3a00000 mov r0, #0 <== NOT EXECUTED
a0010664: e8bd8830 pop {r4, r5, fp, pc} <== NOT EXECUTED
a0010550 <imfs_dir_lseek>:
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
switch( whence ) {
a0010550: e3530001 cmp r3, #1 <== NOT EXECUTED
rtems_off64_t imfs_dir_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
a0010554: e92d4810 push {r4, fp, lr} <== NOT EXECUTED
a0010558: e1a04000 mov r4, r0 <== NOT EXECUTED
switch( whence ) {
a001055c: 8a00000d bhi a0010598 <imfs_dir_lseek+0x48> <== NOT EXECUTED
case SEEK_SET: /* absolute move from the start of the file */
case SEEK_CUR: /* relative move */
iop->offset = (iop->offset/sizeof(struct dirent)) *
a0010560: e280100c add r1, r0, #12 <== NOT EXECUTED
a0010564: e8910003 ldm r1, {r0, r1} <== NOT EXECUTED
a0010568: e3a03000 mov r3, #0 <== NOT EXECUTED
a001056c: e3a02e11 mov r2, #272 ; 0x110 <== NOT EXECUTED
a0010570: eb00114c bl a0014aa8 <__divdi3> <== NOT EXECUTED
a0010574: e3a03e11 mov r3, #272 ; 0x110 <== NOT EXECUTED
a0010578: e08cb390 umull fp, ip, r0, r3 <== NOT EXECUTED
a001057c: e020c193 mla r0, r3, r1, ip <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return 0;
a0010580: e3a03000 mov r3, #0 <== NOT EXECUTED
)
{
switch( whence ) {
case SEEK_SET: /* absolute move from the start of the file */
case SEEK_CUR: /* relative move */
iop->offset = (iop->offset/sizeof(struct dirent)) *
a0010584: e1a0c000 mov ip, r0 <== NOT EXECUTED a0010588: e584b00c str fp, [r4, #12] <== NOT EXECUTED a001058c: e584c010 str ip, [r4, #16] <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( EINVAL );
break;
}
return 0;
a0010590: e3a04000 mov r4, #0 <== NOT EXECUTED a0010594: ea000004 b a00105ac <imfs_dir_lseek+0x5c> <== NOT EXECUTED
break;
case SEEK_END: /* Movement past the end of the directory via lseek */
/* is not a permitted operation */
default:
rtems_set_errno_and_return_minus_one( EINVAL );
a0010598: eb0002b3 bl a001106c <__errno> <== NOT EXECUTED a001059c: e3a03016 mov r3, #22 <== NOT EXECUTED a00105a0: e5803000 str r3, [r0] <== NOT EXECUTED a00105a4: e3e04000 mvn r4, #0 <== NOT EXECUTED a00105a8: e3e03000 mvn r3, #0 <== NOT EXECUTED
break;
}
return 0;
}
a00105ac: e1a00003 mov r0, r3 <== NOT EXECUTED
a00105b0: e1a01004 mov r1, r4 <== NOT EXECUTED
a00105b4: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED
a001040c <imfs_dir_open>:
IMFS_jnode_t *the_jnode;
/* Is the node a directory ? */
the_jnode = (IMFS_jnode_t *) iop->pathinfo.node_access;
if ( the_jnode->type != IMFS_DIRECTORY )
a001040c: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
a0010410: e92d4010 push {r4, lr} <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
/* Is the node a directory ? */
the_jnode = (IMFS_jnode_t *) iop->pathinfo.node_access;
if ( the_jnode->type != IMFS_DIRECTORY )
a0010414: e593304c ldr r3, [r3, #76] ; 0x4c <== NOT EXECUTED a0010418: e3530001 cmp r3, #1 <== NOT EXECUTED a001041c: 1a000005 bne a0010438 <imfs_dir_open+0x2c> <== NOT EXECUTED
return -1; /* It wasn't a directory --> return error */
iop->offset = 0;
a0010420: e3a03000 mov r3, #0 <== NOT EXECUTED a0010424: e3a04000 mov r4, #0 <== NOT EXECUTED a0010428: e580300c str r3, [r0, #12] <== NOT EXECUTED a001042c: e5804010 str r4, [r0, #16] <== NOT EXECUTED
return 0;
a0010430: e3a00000 mov r0, #0 <== NOT EXECUTED
a0010434: e8bd8010 pop {r4, pc} <== NOT EXECUTED
/* Is the node a directory ? */
the_jnode = (IMFS_jnode_t *) iop->pathinfo.node_access;
if ( the_jnode->type != IMFS_DIRECTORY )
return -1; /* It wasn't a directory --> return error */
a0010438: e3e00000 mvn r0, #0 <== NOT EXECUTED
iop->offset = 0;
return 0;
}
a001043c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0010440 <imfs_dir_read>:
ssize_t imfs_dir_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
a0010440: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
int current_entry;
int first_entry;
int last_entry;
struct dirent tmp_dirent;
the_jnode = (IMFS_jnode_t *)iop->pathinfo.node_access;
a0010444: e590a018 ldr sl, [r0, #24] <== NOT EXECUTED
ssize_t imfs_dir_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
a0010448: e1a07000 mov r7, r0 <== NOT EXECUTED a001044c: e24ddf49 sub sp, sp, #292 ; 0x124 <== NOT EXECUTED
IMFS_create_orphan( the_jnode );
IMFS_check_node_remove( the_jnode );
return 0;
}
a0010450: e59a6050 ldr r6, [sl, #80] ; 0x50 <== 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 );
a0010454: e28aa054 add sl, sl, #84 ; 0x54 <== NOT EXECUTED
ssize_t imfs_dir_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
a0010458: e1a0b001 mov fp, r1 <== NOT EXECUTED
struct dirent tmp_dirent;
the_jnode = (IMFS_jnode_t *)iop->pathinfo.node_access;
the_chain = &the_jnode->info.directory.Entries;
if ( rtems_chain_is_empty( the_chain ) )
a001045c: e156000a cmp r6, sl <== NOT EXECUTED
return 0;
a0010460: 03a00000 moveq r0, #0 <== NOT EXECUTED
struct dirent tmp_dirent;
the_jnode = (IMFS_jnode_t *)iop->pathinfo.node_access;
the_chain = &the_jnode->info.directory.Entries;
if ( rtems_chain_is_empty( the_chain ) )
a0010464: 0a000035 beq a0010540 <imfs_dir_read+0x100> <== NOT EXECUTED
bytes_transferred = 0;
first_entry = iop->offset;
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
a0010468: e3a01e11 mov r1, #272 ; 0x110 <== NOT EXECUTED a001046c: e1a00002 mov r0, r2 <== NOT EXECUTED a0010470: eb0010c0 bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED
/* Move to the first of the desired directory entries */
the_node = rtems_chain_first( the_chain );
bytes_transferred = 0;
first_entry = iop->offset;
a0010474: e597800c ldr r8, [r7, #12] <== NOT EXECUTED
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
strcpy( tmp_dirent.d_name, the_jnode->name );
a0010478: e28d9014 add r9, sp, #20 <== NOT EXECUTED
bytes_transferred = 0;
first_entry = iop->offset;
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
a001047c: e3a03e11 mov r3, #272 ; 0x110 <== NOT EXECUTED
/* The directory was not empty so try to move to the desired entry in chain*/
for (
current_entry = 0;
a0010480: e3a04000 mov r4, #0 <== NOT EXECUTED
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
strcpy( tmp_dirent.d_name, the_jnode->name );
a0010484: e2891010 add r1, r9, #16 <== NOT EXECUTED
bytes_transferred = 0;
first_entry = iop->offset;
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
a0010488: e0238390 mla r3, r0, r3, r8 <== NOT EXECUTED
return 0;
/* Move to the first of the desired directory entries */
the_node = rtems_chain_first( the_chain );
bytes_transferred = 0;
a001048c: e1a05004 mov r5, r4 <== NOT EXECUTED
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
strcpy( tmp_dirent.d_name, the_jnode->name );
a0010490: e58d1010 str r1, [sp, #16] <== NOT EXECUTED a0010494: e58db000 str fp, [sp] <== NOT EXECUTED
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
/* The directory was not empty so try to move to the desired entry in chain*/
for (
a0010498: ea000025 b a0010534 <imfs_dir_read+0xf4> <== NOT EXECUTED
current_entry = 0;
current_entry < last_entry;
current_entry = current_entry + sizeof(struct dirent) ){
if ( rtems_chain_is_tail( the_chain, the_node ) ){
a001049c: e156000a cmp r6, sl <== NOT EXECUTED a00104a0: 0a000025 beq a001053c <imfs_dir_read+0xfc> <== NOT EXECUTED
/* entry in the read */
return bytes_transferred; /* Indicate that there are no more */
/* entries to return */
}
if( current_entry >= first_entry ) {
a00104a4: e1540008 cmp r4, r8 <== NOT EXECUTED a00104a8: ba00001f blt a001052c <imfs_dir_read+0xec> <== NOT EXECUTED
/* Move the entry to the return buffer */
tmp_dirent.d_off = current_entry;
a00104ac: e1a01004 mov r1, r4 <== NOT EXECUTED a00104b0: e1a02fc1 asr r2, r1, #31 <== NOT EXECUTED a00104b4: e58d1018 str r1, [sp, #24] <== NOT EXECUTED a00104b8: e58d201c str r2, [sp, #28] <== NOT EXECUTED
tmp_dirent.d_reclen = sizeof( struct dirent );
a00104bc: e3a02e11 mov r2, #272 ; 0x110 <== NOT EXECUTED a00104c0: e1cd22b0 strh r2, [sp, #32] <== NOT EXECUTED
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
a00104c4: e5962038 ldr r2, [r6, #56] ; 0x38 <== NOT EXECUTED
tmp_dirent.d_namlen = strlen( the_jnode->name );
a00104c8: e286100c add r1, r6, #12 <== NOT EXECUTED a00104cc: e1a00001 mov r0, r1 <== NOT EXECUTED a00104d0: e58d3008 str r3, [sp, #8] <== NOT EXECUTED
if( current_entry >= first_entry ) {
/* Move the entry to the return buffer */
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
a00104d4: e58d2014 str r2, [sp, #20] <== NOT EXECUTED
tmp_dirent.d_namlen = strlen( the_jnode->name );
a00104d8: e58d100c str r1, [sp, #12] <== NOT EXECUTED a00104dc: eb0006cc bl a0012014 <strlen> <== NOT EXECUTED
strcpy( tmp_dirent.d_name, the_jnode->name );
a00104e0: e59d100c ldr r1, [sp, #12] <== NOT EXECUTED
/* Move the entry to the return buffer */
tmp_dirent.d_off = current_entry;
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
a00104e4: e1cd02b2 strh r0, [sp, #34] ; 0x22 <== NOT EXECUTED
strcpy( tmp_dirent.d_name, the_jnode->name );
a00104e8: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED a00104ec: eb000678 bl a0011ed4 <strcpy> <== NOT EXECUTED
memcpy(
a00104f0: e59db000 ldr fp, [sp] <== NOT EXECUTED a00104f4: e1a01009 mov r1, r9 <== NOT EXECUTED a00104f8: e3a02e11 mov r2, #272 ; 0x110 <== NOT EXECUTED a00104fc: e08b0005 add r0, fp, r5 <== NOT EXECUTED
buffer + bytes_transferred,
(void *)&tmp_dirent,
sizeof( struct dirent )
);
iop->offset = iop->offset + sizeof(struct dirent);
a0010500: e3a0be11 mov fp, #272 ; 0x110 <== NOT EXECUTED
tmp_dirent.d_reclen = sizeof( struct dirent );
the_jnode = (IMFS_jnode_t *) the_node;
tmp_dirent.d_ino = the_jnode->st_ino;
tmp_dirent.d_namlen = strlen( the_jnode->name );
strcpy( tmp_dirent.d_name, the_jnode->name );
memcpy(
a0010504: eb000506 bl a0011924 <memcpy> <== NOT EXECUTED
buffer + bytes_transferred,
(void *)&tmp_dirent,
sizeof( struct dirent )
);
iop->offset = iop->offset + sizeof(struct dirent);
a0010508: e287200c add r2, r7, #12 <== NOT EXECUTED
a001050c: e8920006 ldm r2, {r1, r2} <== NOT EXECUTED
a0010510: e3a0c000 mov ip, #0 <== NOT EXECUTED
a0010514: e091100b adds r1, r1, fp <== NOT EXECUTED
a0010518: e0a2200c adc r2, r2, ip <== NOT EXECUTED
a001051c: e587100c str r1, [r7, #12] <== NOT EXECUTED
a0010520: e5872010 str r2, [r7, #16] <== NOT EXECUTED
bytes_transferred = bytes_transferred + sizeof( struct dirent );
a0010524: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0010528: e2855e11 add r5, r5, #272 ; 0x110 <== NOT EXECUTED
}
the_node = the_node->next;
a001052c: e5966000 ldr r6, [r6] <== NOT EXECUTED
* to the end of the exisiting file, the remaining entries will be placed in
* the buffer and the returned value will be equal to -m actual- times the
* size of a directory entry.
*/
ssize_t imfs_dir_read(
a0010530: e2844e11 add r4, r4, #272 ; 0x110 <== NOT EXECUTED
/* protect against using sizes that are not exact multiples of the */
/* -dirent- size. These could result in unexpected results */
last_entry = first_entry + (count/sizeof(struct dirent)) * sizeof(struct dirent);
/* The directory was not empty so try to move to the desired entry in chain*/
for (
a0010534: e1540003 cmp r4, r3 <== NOT EXECUTED a0010538: baffffd7 blt a001049c <imfs_dir_read+0x5c> <== NOT EXECUTED
current_entry = 0;
current_entry < last_entry;
current_entry = current_entry + sizeof(struct dirent) ){
if ( rtems_chain_is_tail( the_chain, the_node ) ){
a001053c: e1a00005 mov r0, r5 <== NOT EXECUTED
the_node = the_node->next;
}
/* Success */
return bytes_transferred;
}
a0010540: e28ddf49 add sp, sp, #292 ; 0x124 <== NOT EXECUTED
a0010544: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a0010668 <imfs_dir_rmnod>:
int imfs_dir_rmnod(
rtems_filesystem_location_info_t *parent_pathloc, /* IN */
rtems_filesystem_location_info_t *pathloc /* IN */
)
{
a0010668: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = (IMFS_jnode_t *) pathloc->node_access;
a001066c: e5914000 ldr r4, [r1] <== NOT EXECUTED
/*
* You cannot remove a node that still has children
*/
if ( ! rtems_chain_is_empty( &the_jnode->info.directory.Entries ) )
a0010670: e5942050 ldr r2, [r4, #80] ; 0x50 <== 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 );
a0010674: e2843054 add r3, r4, #84 ; 0x54 <== NOT EXECUTED a0010678: e1520003 cmp r2, r3 <== NOT EXECUTED a001067c: 0a000002 beq a001068c <imfs_dir_rmnod+0x24> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTEMPTY );
a0010680: eb000279 bl a001106c <__errno> <== NOT EXECUTED a0010684: e3a0305a mov r3, #90 ; 0x5a <== NOT EXECUTED a0010688: ea000008 b a00106b0 <imfs_dir_rmnod+0x48> <== NOT EXECUTED
/*
* You cannot remove the file system root node.
*/
if ( pathloc->mt_entry->mt_fs_root.node_access == pathloc->node_access )
a001068c: e5913010 ldr r3, [r1, #16] <== NOT EXECUTED a0010690: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0010694: e1530004 cmp r3, r4 <== NOT EXECUTED a0010698: 0a000002 beq a00106a8 <imfs_dir_rmnod+0x40> <== NOT EXECUTED
/*
* You cannot remove a mountpoint.
*/
if ( the_jnode->info.directory.mt_fs != NULL )
a001069c: e594505c ldr r5, [r4, #92] ; 0x5c <== NOT EXECUTED a00106a0: e3550000 cmp r5, #0 <== NOT EXECUTED a00106a4: 0a000004 beq a00106bc <imfs_dir_rmnod+0x54> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBUSY );
a00106a8: eb00026f bl a001106c <__errno> <== NOT EXECUTED
a00106ac: e3a03010 mov r3, #16 <== NOT EXECUTED
a00106b0: e5803000 str r3, [r0] <== NOT EXECUTED
a00106b4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a00106b8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
IMFS_create_orphan( the_jnode );
a00106bc: e1a00004 mov r0, r4 <== NOT EXECUTED a00106c0: ebfff470 bl a000d888 <IMFS_create_orphan> <== NOT EXECUTED
IMFS_check_node_remove( the_jnode );
a00106c4: e1a00004 mov r0, r4 <== NOT EXECUTED a00106c8: ebfff47f bl a000d8cc <IMFS_check_node_remove> <== NOT EXECUTED
return 0;
a00106cc: e1a00005 mov r0, r5 <== NOT EXECUTED
}
a00106d0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0006cc8 <init_etc_passwd_group>:
/*
* Initialize useable but dummy databases
*/
void init_etc_passwd_group(void)
{
a0006cc8: e92d4010 push {r4, lr} <== NOT EXECUTED
FILE *fp;
static char etc_passwd_initted = 0;
if (etc_passwd_initted)
a0006ccc: e59f309c ldr r3, [pc, #156] ; a0006d70 <init_etc_passwd_group+0xa8><== NOT EXECUTED a0006cd0: e5d32000 ldrb r2, [r3] <== NOT EXECUTED a0006cd4: e3520000 cmp r2, #0 <== NOT EXECUTED a0006cd8: 1a000023 bne a0006d6c <init_etc_passwd_group+0xa4> <== NOT EXECUTED
return;
etc_passwd_initted = 1;
a0006cdc: e2822001 add r2, r2, #1 <== NOT EXECUTED a0006ce0: e5c32000 strb r2, [r3] <== NOT EXECUTED
mkdir("/etc", 0777);
a0006ce4: e59f1088 ldr r1, [pc, #136] ; a0006d74 <init_etc_passwd_group+0xac><== NOT EXECUTED a0006ce8: e59f0088 ldr r0, [pc, #136] ; a0006d78 <init_etc_passwd_group+0xb0><== NOT EXECUTED a0006cec: eb000229 bl a0007598 <mkdir> <== NOT EXECUTED
/*
* Initialize /etc/passwd
*/
if ((fp = fopen("/etc/passwd", "r")) != NULL) {
a0006cf0: e59f0084 ldr r0, [pc, #132] ; a0006d7c <init_etc_passwd_group+0xb4><== NOT EXECUTED a0006cf4: e59f1084 ldr r1, [pc, #132] ; a0006d80 <init_etc_passwd_group+0xb8><== NOT EXECUTED a0006cf8: eb002ec1 bl a0012804 <fopen> <== NOT EXECUTED a0006cfc: e3500000 cmp r0, #0 <== NOT EXECUTED a0006d00: 1a000008 bne a0006d28 <init_etc_passwd_group+0x60> <== NOT EXECUTED
fclose(fp);
}
else if ((fp = fopen("/etc/passwd", "w")) != NULL) {
a0006d04: e59f0070 ldr r0, [pc, #112] ; a0006d7c <init_etc_passwd_group+0xb4><== NOT EXECUTED a0006d08: e59f1074 ldr r1, [pc, #116] ; a0006d84 <init_etc_passwd_group+0xbc><== NOT EXECUTED a0006d0c: eb002ebc bl a0012804 <fopen> <== NOT EXECUTED a0006d10: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0006d14: 0a000004 beq a0006d2c <init_etc_passwd_group+0x64> <== NOT EXECUTED
fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"
a0006d18: e59f0068 ldr r0, [pc, #104] ; a0006d88 <init_etc_passwd_group+0xc0><== NOT EXECUTED a0006d1c: e1a01004 mov r1, r4 <== NOT EXECUTED a0006d20: eb002ee0 bl a00128a8 <fputs> <== NOT EXECUTED
"rtems:*:1:1:RTEMS Application::/:/bin/sh\n"
"tty:!:2:2:tty owner::/:/bin/false\n" );
fclose(fp);
a0006d24: e1a00004 mov r0, r4 <== NOT EXECUTED a0006d28: eb002cde bl a00120a8 <fclose> <== NOT EXECUTED
}
/*
* Initialize /etc/group
*/
if ((fp = fopen("/etc/group", "r")) != NULL) {
a0006d2c: e59f0058 ldr r0, [pc, #88] ; a0006d8c <init_etc_passwd_group+0xc4><== NOT EXECUTED a0006d30: e59f1048 ldr r1, [pc, #72] ; a0006d80 <init_etc_passwd_group+0xb8><== NOT EXECUTED a0006d34: eb002eb2 bl a0012804 <fopen> <== NOT EXECUTED a0006d38: e3500000 cmp r0, #0 <== NOT EXECUTED a0006d3c: 1a000008 bne a0006d64 <init_etc_passwd_group+0x9c> <== NOT EXECUTED
fclose(fp);
}
else if ((fp = fopen("/etc/group", "w")) != NULL) {
a0006d40: e59f0044 ldr r0, [pc, #68] ; a0006d8c <init_etc_passwd_group+0xc4><== NOT EXECUTED a0006d44: e59f1038 ldr r1, [pc, #56] ; a0006d84 <init_etc_passwd_group+0xbc><== NOT EXECUTED a0006d48: eb002ead bl a0012804 <fopen> <== NOT EXECUTED a0006d4c: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0006d50: 0a000005 beq a0006d6c <init_etc_passwd_group+0xa4> <== NOT EXECUTED
fprintf( fp, "root:x:0:root\n"
a0006d54: e59f0034 ldr r0, [pc, #52] ; a0006d90 <init_etc_passwd_group+0xc8><== NOT EXECUTED a0006d58: e1a01004 mov r1, r4 <== NOT EXECUTED a0006d5c: eb002ed1 bl a00128a8 <fputs> <== NOT EXECUTED
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
a0006d60: e1a00004 mov r0, r4 <== NOT EXECUTED
} }
a0006d64: e8bd4010 pop {r4, lr} <== NOT EXECUTED
}
else if ((fp = fopen("/etc/group", "w")) != NULL) {
fprintf( fp, "root:x:0:root\n"
"rtems:x:1:rtems\n"
"tty:x:2:tty\n" );
fclose(fp);
a0006d68: ea002cce b a00120a8 <fclose> <== NOT EXECUTED
a0006d6c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000949c <ioctl>:
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
a000949c: e92d000e push {r1, r2, r3} <== NOT EXECUTED
va_list ap;
rtems_status_code rc;
rtems_libio_t *iop;
void *buffer;
rtems_libio_check_fd( fd );
a00094a0: e59f3064 ldr r3, [pc, #100] ; a000950c <ioctl+0x70> <== NOT EXECUTED
int ioctl(
int fd,
ioctl_command_t command,
...
)
{
a00094a4: e92d4001 push {r0, lr} <== NOT EXECUTED
va_list ap;
rtems_status_code rc;
rtems_libio_t *iop;
void *buffer;
rtems_libio_check_fd( fd );
a00094a8: e5933000 ldr r3, [r3] <== NOT EXECUTED a00094ac: e1500003 cmp r0, r3 <== NOT EXECUTED a00094b0: 2a000006 bcs a00094d0 <ioctl+0x34> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a00094b4: e59f3054 ldr r3, [pc, #84] ; a0009510 <ioctl+0x74> <== NOT EXECUTED a00094b8: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED a00094bc: e5933000 ldr r3, [r3] <== NOT EXECUTED a00094c0: e0203092 mla r0, r2, r0, r3 <== NOT EXECUTED
rtems_libio_check_is_open(iop);
a00094c4: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a00094c8: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a00094cc: 1a000004 bne a00094e4 <ioctl+0x48> <== NOT EXECUTED a00094d0: eb002e57 bl a0014e34 <__errno> <== NOT EXECUTED a00094d4: e3a03009 mov r3, #9 <== NOT EXECUTED a00094d8: e5803000 str r3, [r0] <== NOT EXECUTED a00094dc: e3e00000 mvn r0, #0 <== NOT EXECUTED a00094e0: ea000006 b a0009500 <ioctl+0x64> <== NOT EXECUTED
va_start(ap, command);
buffer = va_arg(ap, void *);
a00094e4: e28d3010 add r3, sp, #16 <== NOT EXECUTED a00094e8: e58d3000 str r3, [sp] <== NOT EXECUTED
/*
* Now process the ioctl().
*/
rc = (*iop->pathinfo.handlers->ioctl_h)( iop, command, buffer );
a00094ec: e5903020 ldr r3, [r0, #32] <== NOT EXECUTED a00094f0: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED a00094f4: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED a00094f8: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a00094fc: e12fff33 blx r3 <== NOT EXECUTED
va_end( ap );
return rc;
}
a0009500: e8bd4008 pop {r3, lr} <== NOT EXECUTED
a0009504: e28dd00c add sp, sp, #12 <== NOT EXECUTED
a0009508: e12fff1e bx lr <== NOT EXECUTED
a0007ee4 <iproc>:
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
if (tty->termios.c_iflag & ISTRIP)
a0007ee4: e5913030 ldr r3, [r1, #48] ; 0x30 <== NOT EXECUTED
/*
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
a0007ee8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
a0007eec: e3130020 tst r3, #32 <== NOT EXECUTED
/*
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
a0007ef0: e20050ff and r5, r0, #255 ; 0xff <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
c &= 0x7f;
a0007ef4: 1200507f andne r5, r0, #127 ; 0x7f <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
a0007ef8: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED
/*
* Process a single input character
*/
static int
iproc (unsigned char c, struct rtems_termios_tty *tty)
{
a0007efc: e1a04001 mov r4, r1 <== NOT EXECUTED
if (tty->termios.c_iflag & ISTRIP)
c &= 0x7f;
if (tty->termios.c_iflag & IUCLC)
a0007f00: 0a000007 beq a0007f24 <iproc+0x40> <== NOT EXECUTED
c = tolower (c);
a0007f04: e59f2170 ldr r2, [pc, #368] ; a000807c <iproc+0x198> <== NOT EXECUTED a0007f08: e5922000 ldr r2, [r2] <== NOT EXECUTED a0007f0c: e0822005 add r2, r2, r5 <== NOT EXECUTED a0007f10: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED a0007f14: e2022003 and r2, r2, #3 <== NOT EXECUTED a0007f18: e3520001 cmp r2, #1 <== NOT EXECUTED a0007f1c: 02855020 addeq r5, r5, #32 <== NOT EXECUTED a0007f20: e20550ff and r5, r5, #255 ; 0xff <== NOT EXECUTED
if (c == '\r') {
a0007f24: e355000d cmp r5, #13 <== NOT EXECUTED a0007f28: 1a000005 bne a0007f44 <iproc+0x60> <== NOT EXECUTED
if (tty->termios.c_iflag & IGNCR)
a0007f2c: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED a0007f30: 1a00004b bne a0008064 <iproc+0x180> <== NOT EXECUTED
return 0;
if (tty->termios.c_iflag & ICRNL)
c = '\n';
a0007f34: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0007f38: 03a0500d moveq r5, #13 <== NOT EXECUTED a0007f3c: 13a0500a movne r5, #10 <== NOT EXECUTED a0007f40: ea000007 b a0007f64 <iproc+0x80> <== NOT EXECUTED
} else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
a0007f44: e355000a cmp r5, #10 <== NOT EXECUTED a0007f48: 1a000003 bne a0007f5c <iproc+0x78> <== NOT EXECUTED
c = '\r';
a0007f4c: e3130040 tst r3, #64 ; 0x40 <== NOT EXECUTED a0007f50: 03a0500a moveq r5, #10 <== NOT EXECUTED a0007f54: 13a0500d movne r5, #13 <== NOT EXECUTED a0007f58: ea000001 b a0007f64 <iproc+0x80> <== NOT EXECUTED
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
a0007f5c: e3550000 cmp r5, #0 <== NOT EXECUTED a0007f60: 0a00002e beq a0008020 <iproc+0x13c> <== NOT EXECUTED a0007f64: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a0007f68: e3130002 tst r3, #2 <== NOT EXECUTED a0007f6c: 0a00002b beq a0008020 <iproc+0x13c> <== NOT EXECUTED
if (c == tty->termios.c_cc[VERASE]) {
a0007f70: e5d42043 ldrb r2, [r4, #67] ; 0x43 <== NOT EXECUTED a0007f74: e1520005 cmp r2, r5 <== NOT EXECUTED
erase (tty, 0);
a0007f78: 01a00004 moveq r0, r4 <== NOT EXECUTED a0007f7c: 03a01000 moveq r1, #0 <== NOT EXECUTED
} else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {
c = '\r';
}
if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {
if (c == tty->termios.c_cc[VERASE]) {
a0007f80: 0a000004 beq a0007f98 <iproc+0xb4> <== NOT EXECUTED
erase (tty, 0);
return 0;
}
else if (c == tty->termios.c_cc[VKILL]) {
a0007f84: e5d42044 ldrb r2, [r4, #68] ; 0x44 <== NOT EXECUTED a0007f88: e1520005 cmp r2, r5 <== NOT EXECUTED a0007f8c: 1a000003 bne a0007fa0 <iproc+0xbc> <== NOT EXECUTED
erase (tty, 1);
a0007f90: e1a00004 mov r0, r4 <== NOT EXECUTED a0007f94: e3a01001 mov r1, #1 <== NOT EXECUTED a0007f98: ebffff5f bl a0007d1c <erase> <== NOT EXECUTED a0007f9c: ea000030 b a0008064 <iproc+0x180> <== NOT EXECUTED
return 0;
}
else if (c == tty->termios.c_cc[VEOF]) {
a0007fa0: e5d42045 ldrb r2, [r4, #69] ; 0x45 <== NOT EXECUTED a0007fa4: e1520005 cmp r2, r5 <== NOT EXECUTED a0007fa8: 0a00002f beq a000806c <iproc+0x188> <== NOT EXECUTED
return 1;
} else if (c == '\n') {
a0007fac: e355000a cmp r5, #10 <== NOT EXECUTED a0007fb0: 1a000009 bne a0007fdc <iproc+0xf8> <== NOT EXECUTED
if (tty->termios.c_lflag & (ECHO | ECHONL))
a0007fb4: e3130048 tst r3, #72 ; 0x48 <== NOT EXECUTED a0007fb8: 0a000002 beq a0007fc8 <iproc+0xe4> <== NOT EXECUTED
echo (c, tty);
a0007fbc: e1a00005 mov r0, r5 <== NOT EXECUTED a0007fc0: e1a01004 mov r1, r4 <== NOT EXECUTED a0007fc4: ebffff31 bl a0007c90 <echo> <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
a0007fc8: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a0007fcc: e594201c ldr r2, [r4, #28] <== NOT EXECUTED a0007fd0: e3a0100a mov r1, #10 <== NOT EXECUTED a0007fd4: e7c21003 strb r1, [r2, r3] <== NOT EXECUTED a0007fd8: ea00000d b a0008014 <iproc+0x130> <== NOT EXECUTED
return 1;
} else if ((c == tty->termios.c_cc[VEOL]) ||
a0007fdc: e5d4204c ldrb r2, [r4, #76] ; 0x4c <== NOT EXECUTED a0007fe0: e1520005 cmp r2, r5 <== NOT EXECUTED a0007fe4: 0a000002 beq a0007ff4 <iproc+0x110> <== NOT EXECUTED a0007fe8: e5d42051 ldrb r2, [r4, #81] ; 0x51 <== NOT EXECUTED a0007fec: e1520005 cmp r2, r5 <== NOT EXECUTED a0007ff0: 1a00000a bne a0008020 <iproc+0x13c> <== NOT EXECUTED
(c == tty->termios.c_cc[VEOL2])) {
if (tty->termios.c_lflag & ECHO)
a0007ff4: e3130008 tst r3, #8 <== NOT EXECUTED a0007ff8: 0a000002 beq a0008008 <iproc+0x124> <== NOT EXECUTED
echo (c, tty);
a0007ffc: e1a00005 mov r0, r5 <== NOT EXECUTED a0008000: e1a01004 mov r1, r4 <== NOT EXECUTED a0008004: ebffff21 bl a0007c90 <echo> <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
a0008008: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a000800c: e594201c ldr r2, [r4, #28] <== NOT EXECUTED a0008010: e7c25003 strb r5, [r2, r3] <== NOT EXECUTED a0008014: e2833001 add r3, r3, #1 <== NOT EXECUTED a0008018: e5843020 str r3, [r4, #32] <== NOT EXECUTED a000801c: ea000012 b a000806c <iproc+0x188> <== NOT EXECUTED
}
/*
* FIXME: Should do IMAXBEL handling somehow
*/
if (tty->ccount < (CBUFSIZE-1)) {
a0008020: e59f3058 ldr r3, [pc, #88] ; a0008080 <iproc+0x19c> <== NOT EXECUTED a0008024: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a0008028: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000802c: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0008030: e1520003 cmp r2, r3 <== NOT EXECUTED a0008034: aa00000e bge a0008074 <iproc+0x190> <== NOT EXECUTED
if (tty->termios.c_lflag & ECHO)
a0008038: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a000803c: e3130008 tst r3, #8 <== NOT EXECUTED a0008040: 0a000002 beq a0008050 <iproc+0x16c> <== NOT EXECUTED
echo (c, tty);
a0008044: e1a00005 mov r0, r5 <== NOT EXECUTED a0008048: e1a01004 mov r1, r4 <== NOT EXECUTED a000804c: ebffff0f bl a0007c90 <echo> <== NOT EXECUTED
tty->cbuf[tty->ccount++] = c;
a0008050: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a0008054: e594201c ldr r2, [r4, #28] <== NOT EXECUTED a0008058: e7c25003 strb r5, [r2, r3] <== NOT EXECUTED a000805c: e2833001 add r3, r3, #1 <== NOT EXECUTED a0008060: e5843020 str r3, [r4, #32] <== NOT EXECUTED
if (tty->termios.c_iflag & IUCLC)
c = tolower (c);
if (c == '\r') {
if (tty->termios.c_iflag & IGNCR)
return 0;
a0008064: e3a00000 mov r0, #0 <== NOT EXECUTED
a0008068: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
else if (c == tty->termios.c_cc[VKILL]) {
erase (tty, 1);
return 0;
}
else if (c == tty->termios.c_cc[VEOF]) {
return 1;
a000806c: e3a00001 mov r0, #1 <== NOT EXECUTED
a0008070: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
if (tty->ccount < (CBUFSIZE-1)) {
if (tty->termios.c_lflag & ECHO)
echo (c, tty);
tty->cbuf[tty->ccount++] = c;
}
return 0;
a0008074: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a0008078: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0009ca8 <is_fs_below_mount_point>:
static bool is_fs_below_mount_point(
const rtems_filesystem_mount_table_entry_t *mt_entry,
void *arg
)
{
return arg == mt_entry->mt_point_node.mt_entry;
a0009ca8: e5900018 ldr r0, [r0, #24] <== NOT EXECUTED
}
a0009cac: e1500001 cmp r0, r1 <== NOT EXECUTED a0009cb0: 13a00000 movne r0, #0 <== NOT EXECUTED a0009cb4: 03a00001 moveq r0, #1 <== NOT EXECUTED a0009cb8: e12fff1e bx lr <== NOT EXECUTED
a00066bc <is_node_fs_root>:
static bool is_node_fs_root(
const rtems_filesystem_mount_table_entry_t *mt_entry,
void *arg
)
{
return arg == mt_entry->mt_fs_root.node_access;
a00066bc: e590001c ldr r0, [r0, #28] <== NOT EXECUTED
}
a00066c0: e1500001 cmp r0, r1 <== NOT EXECUTED a00066c4: 13a00000 movne r0, #0 <== NOT EXECUTED a00066c8: 03a00001 moveq r0, #1 <== NOT EXECUTED a00066cc: e12fff1e bx lr <== NOT EXECUTED
a0007260 <issetugid>:
#if defined(RTEMS_NEWLIB) && !defined(HAVE_ISSETUGID)
int issetugid (void)
{
return 0;
}
a0007260: e3a00000 mov r0, #0 <== NOT EXECUTED a0007264: e12fff1e bx lr <== NOT EXECUTED
a0009860 <kill>:
int kill(
pid_t pid,
int sig
)
{
return killinfo( pid, sig, NULL );
a0009860: e3a02000 mov r2, #0 <== NOT EXECUTED a0009864: ea0017fa b a000f854 <killinfo> <== NOT EXECUTED
a00257b4 <killinfo>:
int killinfo(
pid_t pid,
int sig,
const union sigval *value
)
{
a00257b4: e92d47f7 push {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED
a00257b8: e1a05000 mov r5, r0 <== NOT EXECUTED
a00257bc: e1a04001 mov r4, r1 <== NOT EXECUTED
a00257c0: e1a06002 mov r6, r2 <== NOT EXECUTED
POSIX_signals_Siginfo_node *psiginfo;
/*
* Only supported for the "calling process" (i.e. this node).
*/
if ( pid != getpid() )
a00257c4: ebffff4f bl a0025508 <getpid> <== NOT EXECUTED a00257c8: e1550000 cmp r5, r0 <== NOT EXECUTED a00257cc: 0a000002 beq a00257dc <killinfo+0x28> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ESRCH );
a00257d0: ebffc291 bl a001621c <__errno> <== NOT EXECUTED a00257d4: e3a03003 mov r3, #3 <== NOT EXECUTED a00257d8: ea00007c b a00259d0 <killinfo+0x21c> <== NOT EXECUTED
/*
* Validate the signal passed.
*/
if ( !sig )
a00257dc: e3540000 cmp r4, #0 <== NOT EXECUTED a00257e0: 0a000002 beq a00257f0 <killinfo+0x3c> <== NOT EXECUTED
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
a00257e4: e2445001 sub r5, r4, #1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(sig) )
a00257e8: e355001f cmp r5, #31 <== NOT EXECUTED a00257ec: 9a000002 bls a00257fc <killinfo+0x48> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a00257f0: ebffc289 bl a001621c <__errno> <== NOT EXECUTED a00257f4: e3a03016 mov r3, #22 <== NOT EXECUTED a00257f8: ea000074 b a00259d0 <killinfo+0x21c> <== NOT EXECUTED
/*
* If the signal is being ignored, then we are out of here.
*/
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )
a00257fc: e59f320c ldr r3, [pc, #524] ; a0025a10 <killinfo+0x25c> <== NOT EXECUTED a0025800: e3a0200c mov r2, #12 <== NOT EXECUTED a0025804: e0233492 mla r3, r2, r4, r3 <== NOT EXECUTED a0025808: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a002580c: e3530001 cmp r3, #1 <== NOT EXECUTED a0025810: 0a00007c beq a0025a08 <killinfo+0x254> <== NOT EXECUTED
/* * P1003.1c/Draft 10, p. 33 says that certain signals should always * be directed to the executing thread such as those caused by hardware * faults. */ if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )
a0025814: e3540008 cmp r4, #8 <== NOT EXECUTED a0025818: 13540004 cmpne r4, #4 <== NOT EXECUTED a002581c: 0a000001 beq a0025828 <killinfo+0x74> <== NOT EXECUTED a0025820: e354000b cmp r4, #11 <== NOT EXECUTED a0025824: 1a000003 bne a0025838 <killinfo+0x84> <== NOT EXECUTED
return pthread_kill( pthread_self(), sig );
a0025828: eb000107 bl a0025c4c <pthread_self> <== NOT EXECUTED a002582c: e1a01004 mov r1, r4 <== NOT EXECUTED a0025830: eb0000d4 bl a0025b88 <pthread_kill> <== NOT EXECUTED a0025834: ea000074 b a0025a0c <killinfo+0x258> <== NOT EXECUTED
static inline sigset_t signo_to_mask(
uint32_t sig
)
{
return 1u << (sig - 1);
a0025838: e3a03001 mov r3, #1 <== NOT EXECUTED
* Build up a siginfo structure
*/
siginfo = &siginfo_struct;
siginfo->si_signo = sig;
siginfo->si_code = SI_USER;
if ( !value ) {
a002583c: e3560000 cmp r6, #0 <== NOT EXECUTED
/* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER;
a0025840: e58d3004 str r3, [sp, #4] <== NOT EXECUTED
/*
* Build up a siginfo structure
*/
siginfo = &siginfo_struct;
siginfo->si_signo = sig;
a0025844: e58d4000 str r4, [sp] <== NOT EXECUTED a0025848: e1a05513 lsl r5, r3, r5 <== NOT EXECUTED
siginfo->si_code = SI_USER;
if ( !value ) {
siginfo->si_value.sival_int = 0;
} else {
siginfo->si_value = *value;
a002584c: 15963000 ldrne r3, [r6] <== NOT EXECUTED
*/
siginfo = &siginfo_struct;
siginfo->si_signo = sig;
siginfo->si_code = SI_USER;
if ( !value ) {
siginfo->si_value.sival_int = 0;
a0025850: 058d6008 streq r6, [sp, #8] <== NOT EXECUTED
} else {
siginfo->si_value = *value;
a0025854: 158d3008 strne r3, [sp, #8] <== NOT EXECUTED a0025858: e59f31b4 ldr r3, [pc, #436] ; a0025a14 <killinfo+0x260> <== NOT EXECUTED a002585c: e5932000 ldr r2, [r3] <== NOT EXECUTED a0025860: e2822001 add r2, r2, #1 <== NOT EXECUTED a0025864: e5832000 str r2, [r3] <== NOT EXECUTED
/*
* Is the currently executing thread interested? If so then it will
* get it an execute it as soon as the dispatcher executes.
*/
the_thread = _Thread_Executing;
a0025868: e59f31a8 ldr r3, [pc, #424] ; a0025a18 <killinfo+0x264> <== NOT EXECUTED a002586c: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
if ( _POSIX_signals_Is_interested( api, mask ) ) {
a0025870: e59030fc ldr r3, [r0, #252] ; 0xfc <== NOT EXECUTED a0025874: e59330d0 ldr r3, [r3, #208] ; 0xd0 <== NOT EXECUTED a0025878: e1d53003 bics r3, r5, r3 <== NOT EXECUTED
}
DEBUG_STEP("\n");
_Thread_Enable_dispatch();
return 0;
}
a002587c: 059f2198 ldreq r2, [pc, #408] ; a0025a1c <killinfo+0x268> <== NOT EXECUTED a0025880: 04923004 ldreq r3, [r2], #4 <== NOT EXECUTED
* get it an execute it as soon as the dispatcher executes.
*/
the_thread = _Thread_Executing;
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
if ( _POSIX_signals_Is_interested( api, mask ) ) {
a0025884: 0a000009 beq a00258b0 <killinfo+0xfc> <== NOT EXECUTED a0025888: ea00003c b a0025980 <killinfo+0x1cc> <== NOT EXECUTED
#endif
/*
* Is this thread is actually blocked waiting for the signal?
*/
if (the_thread->Wait.option & mask)
a002588c: e593c030 ldr ip, [r3, #48] ; 0x30 <== NOT EXECUTED
for ( the_node = _Chain_First( the_chain );
!_Chain_Is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
the_thread = (Thread_Control *)the_node;
a0025890: e1a00003 mov r0, r3 <== NOT EXECUTED
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
a0025894: e59310fc ldr r1, [r3, #252] ; 0xfc <== NOT EXECUTED
#endif
/*
* Is this thread is actually blocked waiting for the signal?
*/
if (the_thread->Wait.option & mask)
a0025898: e115000c tst r5, ip <== NOT EXECUTED a002589c: 1a000037 bne a0025980 <killinfo+0x1cc> <== NOT EXECUTED
/*
* Is this thread is blocked waiting for another signal but has
* not blocked this one?
*/
if (~api->signals_blocked & mask)
a00258a0: e59110d0 ldr r1, [r1, #208] ; 0xd0 <== NOT EXECUTED a00258a4: e1d51001 bics r1, r5, r1 <== NOT EXECUTED a00258a8: 1a000034 bne a0025980 <killinfo+0x1cc> <== NOT EXECUTED
the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;
for ( the_node = _Chain_First( the_chain );
!_Chain_Is_tail( the_chain, the_node ) ;
the_node = the_node->next ) {
a00258ac: e5933000 ldr r3, [r3] <== NOT EXECUTED
/* XXX violation of visibility -- need to define thread queue support */
the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;
for ( the_node = _Chain_First( the_chain );
a00258b0: e1530002 cmp r3, r2 <== NOT EXECUTED a00258b4: 1afffff4 bne a002588c <killinfo+0xd8> <== NOT EXECUTED
* NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1;
a00258b8: e59f3160 ldr r3, [pc, #352] ; a0025a20 <killinfo+0x26c> <== NOT EXECUTED a00258bc: e59fc160 ldr ip, [pc, #352] ; a0025a24 <killinfo+0x270> <== NOT EXECUTED
* * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL;
a00258c0: e3a00000 mov r0, #0 <== NOT EXECUTED
interested_priority = PRIORITY_MAXIMUM + 1;
a00258c4: e5d32000 ldrb r2, [r3] <== NOT EXECUTED
*/
#define _POSIX_signals_Is_interested( _api, _mask ) \
( ~(_api)->signals_blocked & (_mask) )
int killinfo(
a00258c8: e28ca008 add sl, ip, #8 <== NOT EXECUTED
* NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1;
a00258cc: e2822001 add r2, r2, #1 <== NOT EXECUTED
for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
/*
* This can occur when no one is interested and an API is not configured.
*/
if ( !_Objects_Information_table[ the_api ] )
a00258d0: e5bc3004 ldr r3, [ip, #4]! <== NOT EXECUTED a00258d4: e3530000 cmp r3, #0 <== NOT EXECUTED a00258d8: 0a000024 beq a0025970 <killinfo+0x1bc> <== NOT EXECUTED
continue;
the_info = _Objects_Information_table[ the_api ][ 1 ];
a00258dc: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
#endif
maximum = the_info->maximum;
object_table = the_info->local_table;
for ( index = 1 ; index <= maximum ; index++ ) {
a00258e0: e3a0e001 mov lr, #1 <== NOT EXECUTED
*/
if ( !the_info )
continue;
#endif
maximum = the_info->maximum;
a00258e4: e1d391b0 ldrh r9, [r3, #16] <== NOT EXECUTED a00258e8: e593601c ldr r6, [r3, #28] <== NOT EXECUTED
object_table = the_info->local_table;
for ( index = 1 ; index <= maximum ; index++ ) {
a00258ec: ea00001d b a0025968 <killinfo+0x1b4> <== NOT EXECUTED
the_thread = (Thread_Control *) object_table[ index ];
a00258f0: e5b63004 ldr r3, [r6, #4]! <== NOT EXECUTED
if ( !the_thread )
a00258f4: e3530000 cmp r3, #0 <== NOT EXECUTED a00258f8: 0a000019 beq a0025964 <killinfo+0x1b0> <== NOT EXECUTED
/*
* If this thread is of lower priority than the interested thread,
* go on to the next thread.
*/
if ( the_thread->current_priority > interested_priority )
a00258fc: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a0025900: e1510002 cmp r1, r2 <== NOT EXECUTED a0025904: 8a000016 bhi a0025964 <killinfo+0x1b0> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( !api )
continue;
#endif
if ( !_POSIX_signals_Is_interested( api, mask ) )
a0025908: e59370fc ldr r7, [r3, #252] ; 0xfc <== NOT EXECUTED a002590c: e59770d0 ldr r7, [r7, #208] ; 0xd0 <== NOT EXECUTED a0025910: e1d57007 bics r7, r5, r7 <== NOT EXECUTED a0025914: 0a000012 beq a0025964 <killinfo+0x1b0> <== NOT EXECUTED
*
* NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1
* so we never have to worry about deferencing a NULL
* interested thread.
*/
if ( the_thread->current_priority < interested_priority ) {
a0025918: e1510002 cmp r1, r2 <== NOT EXECUTED a002591c: 3a00000e bcc a002595c <killinfo+0x1a8> <== NOT EXECUTED
* and blocking interruptibutable by signal.
*
* If the interested thread is ready, don't think about changing.
*/
if ( interested && !_States_Is_ready( interested->current_state ) ) {
a0025920: e3500000 cmp r0, #0 <== NOT EXECUTED a0025924: 0a00000e beq a0025964 <killinfo+0x1b0> <== NOT EXECUTED a0025928: e5908010 ldr r8, [r0, #16] <== NOT EXECUTED a002592c: e3580000 cmp r8, #0 <== NOT EXECUTED a0025930: 0a00000b beq a0025964 <killinfo+0x1b0> <== NOT EXECUTED
/* preferred ready over blocked */
DEBUG_STEP("5");
if ( _States_Is_ready( the_thread->current_state ) ) {
a0025934: e5937010 ldr r7, [r3, #16] <== NOT EXECUTED a0025938: e3570000 cmp r7, #0 <== NOT EXECUTED a002593c: 0a000006 beq a002595c <killinfo+0x1a8> <== NOT EXECUTED
continue;
}
DEBUG_STEP("6");
/* prefer blocked/interruptible over blocked/not interruptible */
if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
a0025940: e3180201 tst r8, #268435456 ; 0x10000000 <== NOT EXECUTED a0025944: 1a000006 bne a0025964 <killinfo+0x1b0> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_interruptible_by_signal (
States_Control the_states
)
{
return (the_states & STATES_INTERRUPTIBLE_BY_SIGNAL);
a0025948: e2077201 and r7, r7, #268435456 ; 0x10000000 <== NOT EXECUTED
DEBUG_STEP("7");
if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) {
a002594c: e3570000 cmp r7, #0 <== NOT EXECUTED a0025950: 11a02001 movne r2, r1 <== NOT EXECUTED a0025954: 11a00003 movne r0, r3 <== NOT EXECUTED a0025958: ea000001 b a0025964 <killinfo+0x1b0> <== NOT EXECUTED
*/
if ( interested && !_States_Is_ready( interested->current_state ) ) {
/* preferred ready over blocked */
DEBUG_STEP("5");
if ( _States_Is_ready( the_thread->current_state ) ) {
a002595c: e1a02001 mov r2, r1 <== NOT EXECUTED a0025960: e1a00003 mov r0, r3 <== NOT EXECUTED
#endif
maximum = the_info->maximum;
object_table = the_info->local_table;
for ( index = 1 ; index <= maximum ; index++ ) {
a0025964: e28ee001 add lr, lr, #1 <== NOT EXECUTED a0025968: e15e0009 cmp lr, r9 <== NOT EXECUTED a002596c: 9affffdf bls a00258f0 <killinfo+0x13c> <== NOT EXECUTED
* + rtems internal threads do not receive signals.
*/
interested = NULL;
interested_priority = PRIORITY_MAXIMUM + 1;
for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
a0025970: e15c000a cmp ip, sl <== NOT EXECUTED a0025974: 1affffd5 bne a00258d0 <killinfo+0x11c> <== NOT EXECUTED
}
}
}
}
if ( interested ) {
a0025978: e3500000 cmp r0, #0 <== NOT EXECUTED a002597c: 0a000004 beq a0025994 <killinfo+0x1e0> <== NOT EXECUTED
/*
* Returns true if the signal was synchronously given to a thread
* blocked waiting for the signal.
*/
if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {
a0025980: e1a01004 mov r1, r4 <== NOT EXECUTED a0025984: e1a0200d mov r2, sp <== NOT EXECUTED a0025988: eb000032 bl a0025a58 <_POSIX_signals_Unblock_thread> <== NOT EXECUTED a002598c: e3500000 cmp r0, #0 <== NOT EXECUTED a0025990: 1a00001b bne a0025a04 <killinfo+0x250> <== NOT EXECUTED
/*
* We may have woken up a thread but we definitely need to post the
* signal to the process wide information set.
*/
_POSIX_signals_Set_process_signals( mask );
a0025994: e1a00005 mov r0, r5 <== NOT EXECUTED a0025998: eb000024 bl a0025a30 <_POSIX_signals_Set_process_signals> <== NOT EXECUTED
if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {
a002599c: e3a0300c mov r3, #12 <== NOT EXECUTED a00259a0: e0040493 mul r4, r3, r4 <== NOT EXECUTED a00259a4: e59f3064 ldr r3, [pc, #100] ; a0025a10 <killinfo+0x25c> <== NOT EXECUTED a00259a8: e7933004 ldr r3, [r3, r4] <== NOT EXECUTED a00259ac: e3530002 cmp r3, #2 <== NOT EXECUTED a00259b0: 1a000013 bne a0025a04 <killinfo+0x250> <== NOT EXECUTED
psiginfo = (POSIX_signals_Siginfo_node *)
_Chain_Get( &_POSIX_signals_Inactive_siginfo );
a00259b4: e59f006c ldr r0, [pc, #108] ; a0025a28 <killinfo+0x274> <== NOT EXECUTED a00259b8: ebffa4ff bl a000edbc <_Chain_Get> <== NOT EXECUTED
if ( !psiginfo ) {
a00259bc: e2501000 subs r1, r0, #0 <== NOT EXECUTED a00259c0: 1a000005 bne a00259dc <killinfo+0x228> <== NOT EXECUTED
_Thread_Enable_dispatch();
a00259c4: ebffab9d bl a0010840 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EAGAIN );
a00259c8: ebffc213 bl a001621c <__errno> <== NOT EXECUTED a00259cc: e3a0300b mov r3, #11 <== NOT EXECUTED a00259d0: e5803000 str r3, [r0] <== NOT EXECUTED a00259d4: e3e00000 mvn r0, #0 <== NOT EXECUTED a00259d8: ea00000b b a0025a0c <killinfo+0x258> <== NOT EXECUTED
}
psiginfo->Info = *siginfo;
a00259dc: e59d3000 ldr r3, [sp] <== NOT EXECUTED
_Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node );
a00259e0: e59f0044 ldr r0, [pc, #68] ; a0025a2c <killinfo+0x278> <== NOT EXECUTED
if ( !psiginfo ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( EAGAIN );
}
psiginfo->Info = *siginfo;
a00259e4: e5813008 str r3, [r1, #8] <== NOT EXECUTED a00259e8: e28d3004 add r3, sp, #4 <== NOT EXECUTED a00259ec: e4932004 ldr r2, [r3], #4 <== NOT EXECUTED
_Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node );
a00259f0: e0800004 add r0, r0, r4 <== NOT EXECUTED
if ( !psiginfo ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( EAGAIN );
}
psiginfo->Info = *siginfo;
a00259f4: e5933000 ldr r3, [r3] <== NOT EXECUTED a00259f8: e581200c str r2, [r1, #12] <== NOT EXECUTED a00259fc: e5813010 str r3, [r1, #16] <== NOT EXECUTED
_Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node );
a0025a00: ebffa4da bl a000ed70 <_Chain_Append> <== NOT EXECUTED
}
DEBUG_STEP("\n");
_Thread_Enable_dispatch();
a0025a04: ebffab8d bl a0010840 <_Thread_Enable_dispatch> <== NOT EXECUTED
/*
* If the signal is being ignored, then we are out of here.
*/
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )
return 0;
a0025a08: e3a00000 mov r0, #0 <== NOT EXECUTED
}
DEBUG_STEP("\n");
_Thread_Enable_dispatch();
return 0;
}
a0025a0c: e8bd87fe pop {r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
a0008780 <lchown>:
int lchown(
const char *path,
uid_t owner,
gid_t group
)
{
a0008780: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a0008784: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED
return _chown_helper( path, owner, group, false );
a0008788: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED a000878c: e1a02822 lsr r2, r2, #16 <== NOT EXECUTED a0008790: e3a03000 mov r3, #0 <== NOT EXECUTED a0008794: eaffff05 b a00083b0 <_chown_helper> <== NOT EXECUTED
a0016084 <libc_wrapup>:
/*
* In case RTEMS is already down, don't do this. It could be
* dangerous.
*/
if (!_System_state_Is_up(_System_state_Get()))
a0016084: e59f3060 ldr r3, [pc, #96] ; a00160ec <libc_wrapup+0x68>
extern void _wrapup_reent(struct _reent *);
extern void _reclaim_reent(struct _reent *);
void libc_wrapup(void)
{
a0016088: e92d4030 push {r4, r5, lr}
/*
* In case RTEMS is already down, don't do this. It could be
* dangerous.
*/
if (!_System_state_Is_up(_System_state_Get()))
a001608c: e5933000 ldr r3, [r3] a0016090: e3530003 cmp r3, #3
a0016094: 1a000013 bne a00160e8 <libc_wrapup+0x64>
/*
* This was already done if the user called exit() directly .
_wrapup_reent(0);
*/
if (_REENT != _global_impure_ptr) {
a0016098: e59f3050 ldr r3, [pc, #80] ; a00160f0 <libc_wrapup+0x6c> a001609c: e59f5050 ldr r5, [pc, #80] ; a00160f4 <libc_wrapup+0x70> a00160a0: e5934000 ldr r4, [r3] a00160a4: e5953000 ldr r3, [r5] a00160a8: e1530004 cmp r3, r4
a00160ac: 0a000002 beq a00160bc <libc_wrapup+0x38>
_wrapup_reent(_global_impure_ptr);
a00160b0: e1a00004 mov r0, r4 <== NOT EXECUTED a00160b4: eb0001b4 bl a001678c <_wrapup_reent> <== NOT EXECUTED
/* Don't reclaim this one, just in case we do printfs
* on the way out to ROM.
*/
_reclaim_reent(&libc_global_reent);
#endif
_REENT = _global_impure_ptr;
a00160b8: e5854000 str r4, [r5] <== NOT EXECUTED
*
* Should this be changed to do *all* file streams?
* _fwalk (_REENT, fclose);
*/
fclose (stdin);
a00160bc: e59f4030 ldr r4, [pc, #48] ; a00160f4 <libc_wrapup+0x70> a00160c0: e5943000 ldr r3, [r4] a00160c4: e5930004 ldr r0, [r3, #4] a00160c8: ebffec35 bl a00111a4 <fclose>
fclose (stdout);
a00160cc: e5943000 ldr r3, [r4] a00160d0: e5930008 ldr r0, [r3, #8] a00160d4: ebffec32 bl a00111a4 <fclose>
fclose (stderr);
a00160d8: e5943000 ldr r3, [r4] a00160dc: e593000c ldr r0, [r3, #12]
}
a00160e0: e8bd4030 pop {r4, r5, lr}
* _fwalk (_REENT, fclose);
*/
fclose (stdin);
fclose (stdout);
fclose (stderr);
a00160e4: eaffec2e b a00111a4 <fclose>
a00160e8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0009708 <link>:
int link(
const char *existing,
const char *new
)
{
a0009708: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a000970c: e24dd034 sub sp, sp, #52 ; 0x34 <== NOT EXECUTED
a0009710: e1a06000 mov r6, r0 <== NOT EXECUTED
a0009714: e1a05001 mov r5, r1 <== NOT EXECUTED
/*
* Get the node we are linking to.
*/
result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
a0009718: eb003a20 bl a0017fa0 <strlen> <== NOT EXECUTED a000971c: e28d4018 add r4, sp, #24 <== NOT EXECUTED a0009720: e3a03001 mov r3, #1 <== NOT EXECUTED a0009724: e1a01000 mov r1, r0 <== NOT EXECUTED a0009728: e58d3000 str r3, [sp] <== NOT EXECUTED a000972c: e1a00006 mov r0, r6 <== NOT EXECUTED a0009730: e3a02000 mov r2, #0 <== NOT EXECUTED a0009734: e1a03004 mov r3, r4 <== NOT EXECUTED a0009738: ebfffe2f bl a0008ffc <rtems_filesystem_evaluate_path> <== NOT EXECUTED
0, &existing_loc, true );
if ( result != 0 )
a000973c: e3500000 cmp r0, #0 <== NOT EXECUTED a0009740: 1a000028 bne a00097e8 <link+0xe0> <== NOT EXECUTED
/*
* Get the parent of the node we are creating.
*/
rtems_filesystem_get_start_loc( new, &i, &parent_loc );
a0009744: e28d6004 add r6, sp, #4 <== NOT EXECUTED a0009748: e1a00005 mov r0, r5 <== NOT EXECUTED a000974c: e28d1030 add r1, sp, #48 ; 0x30 <== NOT EXECUTED a0009750: e1a02006 mov r2, r6 <== NOT EXECUTED a0009754: eb000488 bl a000a97c <rtems_filesystem_get_start_loc> <== NOT EXECUTED
result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start );
a0009758: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000975c: e59d0030 ldr r0, [sp, #48] ; 0x30 <== NOT EXECUTED a0009760: e1a01006 mov r1, r6 <== NOT EXECUTED a0009764: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0009768: e0850000 add r0, r5, r0 <== NOT EXECUTED a000976c: e28d202c add r2, sp, #44 ; 0x2c <== NOT EXECUTED a0009770: e12fff33 blx r3 <== NOT EXECUTED
if ( result != 0 ) {
a0009774: e3500000 cmp r0, #0 <== NOT EXECUTED a0009778: 0a000002 beq a0009788 <link+0x80> <== NOT EXECUTED
rtems_filesystem_freenode( &existing_loc );
a000977c: e1a00004 mov r0, r4 <== NOT EXECUTED a0009780: ebfffec2 bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED a0009784: ea000017 b a00097e8 <link+0xe0> <== NOT EXECUTED
/*
* Check to see if the caller is trying to link across file system
* boundaries.
*/
if ( parent_loc.mt_entry != existing_loc.mt_entry ) {
a0009788: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED a000978c: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED a0009790: e1520003 cmp r2, r3 <== NOT EXECUTED a0009794: 0a000007 beq a00097b8 <link+0xb0> <== NOT EXECUTED
rtems_filesystem_freenode( &existing_loc );
a0009798: e1a00004 mov r0, r4 <== NOT EXECUTED a000979c: ebfffebb bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
a00097a0: e1a00006 mov r0, r6 <== NOT EXECUTED a00097a4: ebfffeb9 bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EXDEV );
a00097a8: eb002d31 bl a0014c74 <__errno> <== NOT EXECUTED a00097ac: e3a03012 mov r3, #18 <== NOT EXECUTED a00097b0: e5803000 str r3, [r0] <== NOT EXECUTED a00097b4: ea00000b b a00097e8 <link+0xe0> <== NOT EXECUTED
}
result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start );
a00097b8: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a00097bc: e1a01006 mov r1, r6 <== NOT EXECUTED a00097c0: e59d202c ldr r2, [sp, #44] ; 0x2c <== NOT EXECUTED a00097c4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a00097c8: e1a00004 mov r0, r4 <== NOT EXECUTED a00097cc: e12fff33 blx r3 <== NOT EXECUTED a00097d0: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &existing_loc );
a00097d4: e1a00004 mov r0, r4 <== NOT EXECUTED a00097d8: ebfffeac bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_filesystem_freenode( &parent_loc );
a00097dc: e1a00006 mov r0, r6 <== NOT EXECUTED a00097e0: ebfffeaa bl a0009290 <rtems_filesystem_freenode> <== NOT EXECUTED
return result;
a00097e4: ea000000 b a00097ec <link+0xe4> <== NOT EXECUTED
*/
result = rtems_filesystem_evaluate_path( existing, strlen( existing ),
0, &existing_loc, true );
if ( result != 0 )
return -1;
a00097e8: e3e05000 mvn r5, #0 <== NOT EXECUTED
rtems_filesystem_freenode( &existing_loc );
rtems_filesystem_freenode( &parent_loc );
return result;
}
a00097ec: e1a00005 mov r0, r5 <== NOT EXECUTED
a00097f0: e28dd034 add sp, sp, #52 ; 0x34 <== NOT EXECUTED
a00097f4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0009238 <lio_listio>:
int mode __attribute__((unused)),
struct aiocb * const list[] __attribute__((unused)),
int nent __attribute__((unused)),
struct sigevent *sig __attribute__((unused))
)
{
a0009238: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a000923c: eb0021d1 bl a0011988 <__errno> <== NOT EXECUTED a0009240: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a0009244: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0009248: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000924c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0015f84 <lseek>:
{
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
a0015f84: e59fc0d4 ldr ip, [pc, #212] ; a0016060 <lseek+0xdc> <== NOT EXECUTED
off_t lseek(
int fd,
off_t offset,
int whence
)
{
a0015f88: e92d4870 push {r4, r5, r6, fp, lr} <== NOT EXECUTED
rtems_libio_t *iop;
off_t old_offset;
off_t status;
rtems_libio_check_fd( fd );
a0015f8c: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0015f90: e150000c cmp r0, ip <== NOT EXECUTED a0015f94: 2a000006 bcs a0015fb4 <lseek+0x30> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a0015f98: e59fc0c4 ldr ip, [pc, #196] ; a0016064 <lseek+0xe0> <== NOT EXECUTED a0015f9c: e3a04038 mov r4, #56 ; 0x38 <== NOT EXECUTED a0015fa0: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0015fa4: e024c490 mla r4, r0, r4, ip <== NOT EXECUTED
rtems_libio_check_is_open(iop);
a0015fa8: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED a0015fac: e3100c01 tst r0, #256 ; 0x100 <== NOT EXECUTED a0015fb0: 1a000002 bne a0015fc0 <lseek+0x3c> <== NOT EXECUTED a0015fb4: ebffec2c bl a001106c <__errno> <== NOT EXECUTED a0015fb8: e3a03009 mov r3, #9 <== NOT EXECUTED a0015fbc: ea000015 b a0016018 <lseek+0x94> <== NOT EXECUTED
/*
* Now process the lseek().
*/
old_offset = iop->offset;
switch ( whence ) {
a0015fc0: e3530001 cmp r3, #1 <== NOT EXECUTED
/*
* Now process the lseek().
*/
old_offset = iop->offset;
a0015fc4: e284600c add r6, r4, #12 <== NOT EXECUTED
a0015fc8: e8960060 ldm r6, {r5, r6} <== NOT EXECUTED
switch ( whence ) {
a0015fcc: 0a000006 beq a0015fec <lseek+0x68> <== NOT EXECUTED a0015fd0: e3530002 cmp r3, #2 <== NOT EXECUTED a0015fd4: 0a000007 beq a0015ff8 <lseek+0x74> <== NOT EXECUTED a0015fd8: e3530000 cmp r3, #0 <== NOT EXECUTED a0015fdc: 1a00000b bne a0016010 <lseek+0x8c> <== NOT EXECUTED
case SEEK_SET:
iop->offset = offset;
a0015fe0: e584100c str r1, [r4, #12] <== NOT EXECUTED a0015fe4: e5842010 str r2, [r4, #16] <== NOT EXECUTED
break;
a0015fe8: ea00000e b a0016028 <lseek+0xa4> <== NOT EXECUTED
case SEEK_CUR:
iop->offset += offset;
a0015fec: e091b005 adds fp, r1, r5 <== NOT EXECUTED a0015ff0: e0a2c006 adc ip, r2, r6 <== NOT EXECUTED a0015ff4: ea000002 b a0016004 <lseek+0x80> <== NOT EXECUTED
break;
case SEEK_END:
iop->offset = iop->size + offset;
a0015ff8: e9941800 ldmib r4, {fp, ip} <== NOT EXECUTED
a0015ffc: e09bb001 adds fp, fp, r1 <== NOT EXECUTED
a0016000: e0acc002 adc ip, ip, r2 <== NOT EXECUTED
a0016004: e584b00c str fp, [r4, #12] <== NOT EXECUTED
a0016008: e584c010 str ip, [r4, #16] <== NOT EXECUTED
break;
a001600c: ea000005 b a0016028 <lseek+0xa4> <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( EINVAL );
a0016010: ebffec15 bl a001106c <__errno> <== NOT EXECUTED a0016014: e3a03016 mov r3, #22 <== NOT EXECUTED a0016018: e5803000 str r3, [r0] <== NOT EXECUTED a001601c: e3e02000 mvn r2, #0 <== NOT EXECUTED a0016020: e3e03000 mvn r3, #0 <== NOT EXECUTED a0016024: ea00000a b a0016054 <lseek+0xd0> <== NOT EXECUTED
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->pathinfo.handlers->lseek_h)( iop, offset, whence );
a0016028: e5940020 ldr r0, [r4, #32] <== NOT EXECUTED a001602c: e590c014 ldr ip, [r0, #20] <== NOT EXECUTED a0016030: e1a00004 mov r0, r4 <== NOT EXECUTED a0016034: e12fff3c blx ip <== NOT EXECUTED
if ( status == (off_t) -1 )
a0016038: e3700001 cmn r0, #1 <== NOT EXECUTED
/*
* At this time, handlers assume iop->offset has the desired
* new offset.
*/
status = (*iop->pathinfo.handlers->lseek_h)( iop, offset, whence );
a001603c: e1a02000 mov r2, r0 <== NOT EXECUTED a0016040: e1a03001 mov r3, r1 <== NOT EXECUTED
if ( status == (off_t) -1 )
a0016044: 1a000002 bne a0016054 <lseek+0xd0> <== NOT EXECUTED a0016048: e3710001 cmn r1, #1 <== NOT EXECUTED
iop->offset = old_offset;
a001604c: 0584500c streq r5, [r4, #12] <== NOT EXECUTED a0016050: 05846010 streq r6, [r4, #16] <== NOT EXECUTED
/*
* So if the operation failed, we have to restore iop->offset.
*/
return status;
}
a0016054: e1a00002 mov r0, r2 <== NOT EXECUTED
a0016058: e1a01003 mov r1, r3 <== NOT EXECUTED
a001605c: e8bd8870 pop {r4, r5, r6, fp, pc} <== NOT EXECUTED
a000820c <lstat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
a000820c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
a0008210: e2515000 subs r5, r1, #0 <== NOT EXECUTED
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
a0008214: e24dd018 sub sp, sp, #24 <== NOT EXECUTED a0008218: e1a06000 mov r6, r0 <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
a000821c: 1a000003 bne a0008230 <lstat+0x24> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a0008220: eb002c0f bl a0013264 <__errno> <== NOT EXECUTED a0008224: e3a0300e mov r3, #14 <== NOT EXECUTED a0008228: e5803000 str r3, [r0] <== NOT EXECUTED a000822c: ea000015 b a0008288 <lstat+0x7c> <== NOT EXECUTED
status = rtems_filesystem_evaluate_path( path, strlen( path ),
a0008230: eb00329b bl a0014ca4 <strlen> <== NOT EXECUTED a0008234: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0008238: e1a01000 mov r1, r0 <== NOT EXECUTED a000823c: e3a02000 mov r2, #0 <== NOT EXECUTED a0008240: e1a00006 mov r0, r6 <== NOT EXECUTED a0008244: e1a03004 mov r3, r4 <== NOT EXECUTED a0008248: e58d2000 str r2, [sp] <== NOT EXECUTED a000824c: ebfffe57 bl a0007bb0 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
a0008250: e2501000 subs r1, r0, #0 <== NOT EXECUTED a0008254: 1a00000b bne a0008288 <lstat+0x7c> <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
a0008258: e3a02048 mov r2, #72 ; 0x48 <== NOT EXECUTED a000825c: e1a00005 mov r0, r5 <== NOT EXECUTED a0008260: eb00307b bl a0014454 <memset> <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
a0008264: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a0008268: e1a01005 mov r1, r5 <== NOT EXECUTED a000826c: e1a00004 mov r0, r4 <== NOT EXECUTED a0008270: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a0008274: e12fff33 blx r3 <== NOT EXECUTED a0008278: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a000827c: e1a00004 mov r0, r4 <== NOT EXECUTED a0008280: ebfffe7a bl a0007c70 <rtems_filesystem_freenode> <== NOT EXECUTED
return status;
a0008284: ea000000 b a000828c <lstat+0x80> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
status = rtems_filesystem_evaluate_path( path, strlen( path ),
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
return -1;
a0008288: e3e05000 mvn r5, #0 <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
rtems_filesystem_freenode( &loc );
return status;
}
a000828c: e1a00005 mov r0, r5 <== NOT EXECUTED
a0008290: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a0008294: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a00064e8 <malloc>:
size_t size
)
{
void *return_this;
MSBUMP(malloc_calls, 1);
a00064e8: e59f30d4 ldr r3, [pc, #212] ; a00065c4 <malloc+0xdc>
#include "malloc_p.h"
void *malloc(
size_t size
)
{
a00064ec: e92d4030 push {r4, r5, lr}
void *return_this;
MSBUMP(malloc_calls, 1);
a00064f0: e5932004 ldr r2, [r3, #4]
#include "malloc_p.h"
void *malloc(
size_t size
)
{
a00064f4: e1a04000 mov r4, r0
void *return_this;
MSBUMP(malloc_calls, 1);
a00064f8: e2822001 add r2, r2, #1 a00064fc: e5832004 str r2, [r3, #4]
/*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
a0006500: ebffffaf bl a00063c4 <malloc_deferred_frees_process>
/*
* Validate the parameters
*/
if ( !size )
a0006504: e3540000 cmp r4, #0
return (void *) 0;
a0006508: 01a05004 moveq r5, r4
malloc_deferred_frees_process();
/*
* Validate the parameters
*/
if ( !size )
a000650c: 0a00002a beq a00065bc <malloc+0xd4>
return (void *) 0;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
a0006510: e59f30b0 ldr r3, [pc, #176] ; a00065c8 <malloc+0xe0> a0006514: e5933000 ldr r3, [r3] a0006518: e3530003 cmp r3, #3
a000651c: 1a000002 bne a000652c <malloc+0x44>
!malloc_is_system_state_OK() )
a0006520: ebffff93 bl a0006374 <malloc_is_system_state_OK> <== NOT EXECUTED
return (void *) 0;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
a0006524: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0006528: 0a000023 beq a00065bc <malloc+0xd4> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(
Heap_Control *heap,
uintptr_t size
)
{
return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
a000652c: e59f3098 ldr r3, [pc, #152] ; a00065cc <malloc+0xe4> a0006530: e3a02000 mov r2, #0 a0006534: e1a01004 mov r1, r4 a0006538: e5930000 ldr r0, [r3] a000653c: e1a03002 mov r3, r2 a0006540: eb001219 bl a000adac <_Protected_heap_Allocate_aligned_with_boundary>
* If this fails then return a NULL pointer.
*/
return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
if ( !return_this ) {
a0006544: e2505000 subs r5, r0, #0
a0006548: 1a00000d bne a0006584 <malloc+0x9c>
if (rtems_malloc_sbrk_helpers)
a000654c: e59f307c ldr r3, [pc, #124] ; a00065d0 <malloc+0xe8> <== NOT EXECUTED a0006550: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006554: e3530000 cmp r3, #0 <== NOT EXECUTED a0006558: 0a000004 beq a0006570 <malloc+0x88> <== NOT EXECUTED
return_this = (*rtems_malloc_sbrk_helpers->extend)( size );
a000655c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0006560: e1a00004 mov r0, r4 <== NOT EXECUTED a0006564: e12fff33 blx r3 <== NOT EXECUTED
if ( !return_this ) {
a0006568: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000656c: 1a000004 bne a0006584 <malloc+0x9c> <== NOT EXECUTED
errno = ENOMEM;
a0006570: eb002abd bl a001106c <__errno> <== NOT EXECUTED a0006574: e3a0300c mov r3, #12 <== NOT EXECUTED a0006578: e5803000 str r3, [r0] <== NOT EXECUTED
return (void *) 0;
a000657c: e3a05000 mov r5, #0 <== NOT EXECUTED a0006580: ea00000d b a00065bc <malloc+0xd4> <== NOT EXECUTED
}
/*
* If the user wants us to dirty the allocated memory, then do it.
*/
if ( rtems_malloc_dirty_helper )
a0006584: e59f3048 ldr r3, [pc, #72] ; a00065d4 <malloc+0xec> a0006588: e5933000 ldr r3, [r3] a000658c: e3530000 cmp r3, #0
a0006590: 0a000002 beq a00065a0 <malloc+0xb8>
(*rtems_malloc_dirty_helper)( return_this, size );
a0006594: e1a00005 mov r0, r5 a0006598: e1a01004 mov r1, r4 a000659c: e12fff33 blx r3
/*
* If configured, update the statistics
*/
if ( rtems_malloc_statistics_helpers )
a00065a0: e59f3030 ldr r3, [pc, #48] ; a00065d8 <malloc+0xf0> a00065a4: e5933000 ldr r3, [r3] a00065a8: e3530000 cmp r3, #0
a00065ac: 0a000002 beq a00065bc <malloc+0xd4>
(*rtems_malloc_statistics_helpers->at_malloc)(return_this);
a00065b0: e5933004 ldr r3, [r3, #4] a00065b4: e1a00005 mov r0, r5 a00065b8: e12fff33 blx r3
return return_this;
}
a00065bc: e1a00005 mov r0, r5
a00065c0: e8bd8030 pop {r4, r5, pc}
a00063e8 <malloc_deferred_free>:
void malloc_deferred_free(
void *pointer
)
{
a00063e8: e1a01000 mov r1, r0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_append(
rtems_chain_control *the_chain,
rtems_chain_node *the_node
)
{
_Chain_Append( the_chain, the_node );
a00063ec: e59f0000 ldr r0, [pc, #0] ; a00063f4 <malloc_deferred_free+0xc><== NOT EXECUTED a00063f0: ea000e48 b a0009d18 <_Chain_Append> <== NOT EXECUTED
a00063c4 <malloc_deferred_frees_process>:
void malloc_deferred_frees_process(void)
{
a00063c4: e52de004 push {lr} ; (str lr, [sp, #-4]!)
rtems_chain_node *to_be_freed;
/*
* If some free's have been deferred, then do them now.
*/
while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL)
a00063c8: ea000000 b a00063d0 <malloc_deferred_frees_process+0xc>
free(to_be_freed);
a00063cc: ebffff67 bl a0006170 <free> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
a00063d0: e59f000c ldr r0, [pc, #12] ; a00063e4 <malloc_deferred_frees_process+0x20> a00063d4: eb000e62 bl a0009d64 <_Chain_Get>
rtems_chain_node *to_be_freed;
/*
* If some free's have been deferred, then do them now.
*/
while ((to_be_freed = rtems_chain_get(&RTEMS_Malloc_GC_list)) != NULL)
a00063d8: e3500000 cmp r0, #0
a00063dc: 1afffffa bne a00063cc <malloc_deferred_frees_process+0x8>
free(to_be_freed);
}
a00063e0: e49df004 pop {pc} ; (ldr pc, [sp], #4)
a000a064 <malloc_free_space>:
/*
* Find amount of free heap remaining
*/
size_t malloc_free_space( void )
{
a000a064: e92d4007 push {r0, r1, r2, lr} <== NOT EXECUTED
Heap_Information info;
_Protected_heap_Get_free_information( RTEMS_Malloc_Heap, &info );
a000a068: e59f3010 ldr r3, [pc, #16] ; a000a080 <malloc_free_space+0x1c><== NOT EXECUTED a000a06c: e1a0100d mov r1, sp <== NOT EXECUTED a000a070: e5930000 ldr r0, [r3] <== NOT EXECUTED a000a074: eb001787 bl a000fe98 <_Protected_heap_Get_free_information><== NOT EXECUTED
return (size_t) info.largest; }
a000a078: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED
a000a07c: e8bd800e pop {r1, r2, r3, pc} <== NOT EXECUTED
a00066a4 <malloc_get_heap_pointer>:
#include "malloc_p.h"
Heap_Control *malloc_get_heap_pointer( void )
{
return RTEMS_Malloc_Heap;
}
a00066a4: e59f3004 ldr r3, [pc, #4] ; a00066b0 <malloc_get_heap_pointer+0xc><== NOT EXECUTED a00066a8: e5930000 ldr r0, [r3] <== NOT EXECUTED a00066ac: e12fff1e bx lr <== NOT EXECUTED
a0006430 <malloc_get_statistics>:
#include "malloc_p.h"
int malloc_get_statistics(
rtems_malloc_statistics_t *stats
)
{
a0006430: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
if ( !stats )
a0006434: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0006438: 0a00000e beq a0006478 <malloc_get_statistics+0x48> <== NOT EXECUTED
return -1;
_RTEMS_Lock_allocator();
a000643c: e59f503c ldr r5, [pc, #60] ; a0006480 <malloc_get_statistics+0x50><== NOT EXECUTED a0006440: e5950000 ldr r0, [r5] <== NOT EXECUTED a0006444: eb000e19 bl a0009cb0 <_API_Mutex_Lock> <== NOT EXECUTED
*stats = rtems_malloc_statistics;
a0006448: e59fe034 ldr lr, [pc, #52] ; a0006484 <malloc_get_statistics+0x54><== NOT EXECUTED
a000644c: e1a0c004 mov ip, r4 <== NOT EXECUTED
a0006450: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006454: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006458: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a000645c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006460: e89e0007 ldm lr, {r0, r1, r2} <== NOT EXECUTED
a0006464: e88c0007 stm ip, {r0, r1, r2} <== NOT EXECUTED
_RTEMS_Unlock_allocator();
a0006468: e5950000 ldr r0, [r5] <== NOT EXECUTED a000646c: eb000e28 bl a0009d14 <_API_Mutex_Unlock> <== NOT EXECUTED
return 0;
a0006470: e3a00000 mov r0, #0 <== NOT EXECUTED
a0006474: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
int malloc_get_statistics(
rtems_malloc_statistics_t *stats
)
{
if ( !stats )
return -1;
a0006478: e3e00000 mvn r0, #0 <== NOT EXECUTED
_RTEMS_Lock_allocator(); *stats = rtems_malloc_statistics; _RTEMS_Unlock_allocator(); return 0; }
a000647c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000a084 <malloc_info>:
int malloc_info(
Heap_Information_block *the_info
)
{
if ( !the_info )
a000a084: e2501000 subs r1, r0, #0 <== NOT EXECUTED
*/
int malloc_info(
Heap_Information_block *the_info
)
{
a000a088: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( !the_info )
a000a08c: 0a000004 beq a000a0a4 <malloc_info+0x20> <== NOT EXECUTED
return -1;
_Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info );
a000a090: e59f3014 ldr r3, [pc, #20] ; a000a0ac <malloc_info+0x28> <== NOT EXECUTED a000a094: e5930000 ldr r0, [r3] <== NOT EXECUTED a000a098: eb00178c bl a000fed0 <_Protected_heap_Get_information> <== NOT EXECUTED
return 0;
a000a09c: e3a00000 mov r0, #0 <== NOT EXECUTED
a000a0a0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
int malloc_info(
Heap_Information_block *the_info
)
{
if ( !the_info )
return -1;
a000a0a4: e3e00000 mvn r0, #0 <== NOT EXECUTED
_Protected_heap_Get_information( RTEMS_Malloc_Heap, the_info );
return 0;
}
a000a0a8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0006374 <malloc_is_system_state_OK>:
rtems_chain_control RTEMS_Malloc_GC_list;
bool malloc_is_system_state_OK(void)
{
if ( _Thread_Dispatch_disable_level > 0 )
a0006374: e59f3024 ldr r3, [pc, #36] ; a00063a0 <malloc_is_system_state_OK+0x2c><== NOT EXECUTED a0006378: e5933000 ldr r3, [r3] <== NOT EXECUTED a000637c: e3530000 cmp r3, #0 <== NOT EXECUTED a0006380: 1a000004 bne a0006398 <malloc_is_system_state_OK+0x24> <== NOT EXECUTED
return false;
if ( _ISR_Nest_level > 0 )
a0006384: e59f3018 ldr r3, [pc, #24] ; a00063a4 <malloc_is_system_state_OK+0x30><== NOT EXECUTED
#include "malloc_p.h"
rtems_chain_control RTEMS_Malloc_GC_list;
bool malloc_is_system_state_OK(void)
a0006388: e5930000 ldr r0, [r3] <== NOT EXECUTED a000638c: e2700001 rsbs r0, r0, #1 <== NOT EXECUTED a0006390: 33a00000 movcc r0, #0 <== NOT EXECUTED a0006394: e12fff1e bx lr <== NOT EXECUTED
{
if ( _Thread_Dispatch_disable_level > 0 )
return false;
a0006398: e3a00000 mov r0, #0 <== NOT EXECUTED
if ( _ISR_Nest_level > 0 )
return false;
return true;
}
a000639c: e12fff1e bx lr <== NOT EXECUTED
a000a294 <malloc_report_statistics>:
#ifdef RTEMS_NEWLIB
#include "malloc_p.h"
void malloc_report_statistics(void)
{
malloc_report_statistics_with_plugin( NULL, printk_plugin );
a000a294: e59f1004 ldr r1, [pc, #4] ; a000a2a0 <malloc_report_statistics+0xc><== NOT EXECUTED a000a298: e3a00000 mov r0, #0 <== NOT EXECUTED a000a29c: ea000000 b a000a2a4 <malloc_report_statistics_with_plugin> <== NOT EXECUTED
a000a2a4 <malloc_report_statistics_with_plugin>:
void malloc_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
a000a2a4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
rtems_malloc_statistics_t *s;
uintmax_t allocated;
s = &rtems_malloc_statistics;
allocated = s->lifetime_allocated - s->lifetime_freed;
a000a2a8: e59f40e8 ldr r4, [pc, #232] ; a000a398 <malloc_report_statistics_with_plugin+0xf4><== NOT EXECUTED
void malloc_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
a000a2ac: e1a08000 mov r8, r0 <== NOT EXECUTED
"max:%"PRIu32"k (%"PRIu32"%%)"
" lifetime:%"PRIu32"k freed:%"PRIu32"k\n",
s->space_available / 1024,
allocated / 1024,
/* avoid float! */
(allocated * 100) / s->space_available,
a000a2b0: e3a07064 mov r7, #100 ; 0x64 <== NOT EXECUTED
void malloc_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
a000a2b4: e1a0a001 mov sl, r1 <== NOT EXECUTED
rtems_malloc_statistics_t *s;
uintmax_t allocated;
s = &rtems_malloc_statistics;
allocated = s->lifetime_allocated - s->lifetime_freed;
a000a2b8: e284301c add r3, r4, #28 <== NOT EXECUTED
a000a2bc: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a000a2c0: e2841024 add r1, r4, #36 ; 0x24 <== NOT EXECUTED
a000a2c4: e8910003 ldm r1, {r0, r1} <== NOT EXECUTED
a000a2c8: e0522000 subs r2, r2, r0 <== NOT EXECUTED
a000a2cc: e0c33001 sbc r3, r3, r1 <== NOT EXECUTED
context,
"Malloc statistics\n"
" avail:%"PRIu32"k allocated:%"PRIu32"k (%"PRId32"%%) "
"max:%"PRIu32"k (%"PRIu32"%%)"
" lifetime:%"PRIu32"k freed:%"PRIu32"k\n",
s->space_available / 1024,
a000a2d0: e5946000 ldr r6, [r4] <== NOT EXECUTED
allocated / 1024,
/* avoid float! */
(allocated * 100) / s->space_available,
a000a2d4: e0810792 umull r0, r1, r2, r7 <== NOT EXECUTED
s = &rtems_malloc_statistics;
allocated = s->lifetime_allocated - s->lifetime_freed;
(*print)(
a000a2d8: e1a05522 lsr r5, r2, #10 <== NOT EXECUTED
void malloc_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
a000a2dc: e24dd020 sub sp, sp, #32 <== NOT EXECUTED
s = &rtems_malloc_statistics;
allocated = s->lifetime_allocated - s->lifetime_freed;
(*print)(
a000a2e0: e1a0c526 lsr ip, r6, #10 <== NOT EXECUTED a000a2e4: e1a02006 mov r2, r6 <== NOT EXECUTED a000a2e8: e1855b03 orr r5, r5, r3, lsl #22 <== NOT EXECUTED a000a2ec: e1a0b523 lsr fp, r3, #10 <== NOT EXECUTED
"max:%"PRIu32"k (%"PRIu32"%%)"
" lifetime:%"PRIu32"k freed:%"PRIu32"k\n",
s->space_available / 1024,
allocated / 1024,
/* avoid float! */
(allocated * 100) / s->space_available,
a000a2f0: e0211397 mla r1, r7, r3, r1 <== NOT EXECUTED
s = &rtems_malloc_statistics;
allocated = s->lifetime_allocated - s->lifetime_freed;
(*print)(
a000a2f4: e3a03000 mov r3, #0 <== NOT EXECUTED a000a2f8: e58dc01c str ip, [sp, #28] <== NOT EXECUTED a000a2fc: eb00599c bl a0020974 <__udivdi3> <== NOT EXECUTED
" lifetime:%"PRIu32"k freed:%"PRIu32"k\n",
s->space_available / 1024,
allocated / 1024,
/* avoid float! */
(allocated * 100) / s->space_available,
s->max_depth / 1024,
a000a300: e5949018 ldr r9, [r4, #24] <== NOT EXECUTED
s = &rtems_malloc_statistics;
allocated = s->lifetime_allocated - s->lifetime_freed;
(*print)(
a000a304: e98d0003 stmib sp, {r0, r1} <== NOT EXECUTED
a000a308: e1a03529 lsr r3, r9, #10 <== NOT EXECUTED
a000a30c: e1a01006 mov r1, r6 <== NOT EXECUTED
a000a310: e0000997 mul r0, r7, r9 <== NOT EXECUTED
a000a314: e58d300c str r3, [sp, #12] <== NOT EXECUTED
a000a318: ebfff4a8 bl a00075c0 <__aeabi_uidiv> <== NOT EXECUTED
allocated / 1024,
/* avoid float! */
(allocated * 100) / s->space_available,
s->max_depth / 1024,
(s->max_depth * 100) / s->space_available,
(uint32_t) (s->lifetime_allocated / 1024),
a000a31c: e594101c ldr r1, [r4, #28] <== NOT EXECUTED a000a320: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED
s = &rtems_malloc_statistics;
allocated = s->lifetime_allocated - s->lifetime_freed;
(*print)(
a000a324: e58d0010 str r0, [sp, #16] <== NOT EXECUTED
/* avoid float! */
(allocated * 100) / s->space_available,
s->max_depth / 1024,
(s->max_depth * 100) / s->space_available,
(uint32_t) (s->lifetime_allocated / 1024),
(uint32_t) (s->lifetime_freed / 1024)
a000a328: e5940024 ldr r0, [r4, #36] ; 0x24 <== NOT EXECUTED
allocated / 1024,
/* avoid float! */
(allocated * 100) / s->space_available,
s->max_depth / 1024,
(s->max_depth * 100) / s->space_available,
(uint32_t) (s->lifetime_allocated / 1024),
a000a32c: e1a03521 lsr r3, r1, #10 <== NOT EXECUTED
(uint32_t) (s->lifetime_freed / 1024)
a000a330: e5941028 ldr r1, [r4, #40] ; 0x28 <== NOT EXECUTED
allocated / 1024,
/* avoid float! */
(allocated * 100) / s->space_available,
s->max_depth / 1024,
(s->max_depth * 100) / s->space_available,
(uint32_t) (s->lifetime_allocated / 1024),
a000a334: e1833b02 orr r3, r3, r2, lsl #22 <== NOT EXECUTED
s = &rtems_malloc_statistics;
allocated = s->lifetime_allocated - s->lifetime_freed;
(*print)(
a000a338: e59dc01c ldr ip, [sp, #28] <== NOT EXECUTED a000a33c: e58d3014 str r3, [sp, #20] <== NOT EXECUTED
/* avoid float! */
(allocated * 100) / s->space_available,
s->max_depth / 1024,
(s->max_depth * 100) / s->space_available,
(uint32_t) (s->lifetime_allocated / 1024),
(uint32_t) (s->lifetime_freed / 1024)
a000a340: e1a03520 lsr r3, r0, #10 <== NOT EXECUTED a000a344: e1833b01 orr r3, r3, r1, lsl #22 <== NOT EXECUTED
s = &rtems_malloc_statistics;
allocated = s->lifetime_allocated - s->lifetime_freed;
(*print)(
a000a348: e58d3018 str r3, [sp, #24] <== NOT EXECUTED a000a34c: e1a0200c mov r2, ip <== NOT EXECUTED a000a350: e1a03005 mov r3, r5 <== NOT EXECUTED a000a354: e1a00008 mov r0, r8 <== NOT EXECUTED a000a358: e59f103c ldr r1, [pc, #60] ; a000a39c <malloc_report_statistics_with_plugin+0xf8><== NOT EXECUTED a000a35c: e58db000 str fp, [sp] <== NOT EXECUTED a000a360: e12fff3a blx sl <== NOT EXECUTED
s->max_depth / 1024,
(s->max_depth * 100) / s->space_available,
(uint32_t) (s->lifetime_allocated / 1024),
(uint32_t) (s->lifetime_freed / 1024)
);
(*print)(
a000a364: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000a368: e1a00008 mov r0, r8 <== NOT EXECUTED a000a36c: e59f102c ldr r1, [pc, #44] ; a000a3a0 <malloc_report_statistics_with_plugin+0xfc><== NOT EXECUTED a000a370: e58d3000 str r3, [sp] <== NOT EXECUTED a000a374: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000a378: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a000a37c: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000a380: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000a384: e58d3008 str r3, [sp, #8] <== NOT EXECUTED a000a388: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000a38c: e12fff3a blx sl <== NOT EXECUTED
s->memalign_calls,
s->free_calls,
s->realloc_calls,
s->calloc_calls
);
}
a000a390: e28dd020 add sp, sp, #32 <== NOT EXECUTED
a000a394: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a0006898 <malloc_sbrk_extend_and_allocate>:
* Round to the "requested sbrk amount" so hopefully we won't have
* to grow again for a while. This effectively does sbrk() calls
* in "page" amounts.
*/
sbrk_amount = RTEMS_Malloc_Sbrk_amount;
a0006898: e59f30a0 ldr r3, [pc, #160] ; a0006940 <malloc_sbrk_extend_and_allocate+0xa8><== NOT EXECUTED
}
void *malloc_sbrk_extend_and_allocate(
size_t size
)
{
a000689c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
* Round to the "requested sbrk amount" so hopefully we won't have
* to grow again for a while. This effectively does sbrk() calls
* in "page" amounts.
*/
sbrk_amount = RTEMS_Malloc_Sbrk_amount;
a00068a0: e5934000 ldr r4, [r3] <== NOT EXECUTED
}
void *malloc_sbrk_extend_and_allocate(
size_t size
)
{
a00068a4: e1a05000 mov r5, r0 <== NOT EXECUTED
* in "page" amounts.
*/
sbrk_amount = RTEMS_Malloc_Sbrk_amount;
if ( sbrk_amount == 0 )
a00068a8: e3540000 cmp r4, #0 <== NOT EXECUTED a00068ac: 0a00001f beq a0006930 <malloc_sbrk_extend_and_allocate+0x98><== NOT EXECUTED
return (void *) 0;
the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);
a00068b0: e1a01004 mov r1, r4 <== NOT EXECUTED a00068b4: e0800004 add r0, r0, r4 <== NOT EXECUTED a00068b8: eb003904 bl a0014cd0 <__aeabi_uidiv> <== NOT EXECUTED a00068bc: e0040490 mul r4, r0, r4 <== NOT EXECUTED
starting_address = (void *) sbrk(the_size);
a00068c0: e1a00004 mov r0, r4 <== NOT EXECUTED a00068c4: ebfff881 bl a0004ad0 <sbrk> <== NOT EXECUTED
if ( starting_address == (void*) -1 )
a00068c8: e3700001 cmn r0, #1 <== NOT EXECUTED
if ( sbrk_amount == 0 )
return (void *) 0;
the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);
starting_address = (void *) sbrk(the_size);
a00068cc: e1a01000 mov r1, r0 <== NOT EXECUTED
if ( starting_address == (void*) -1 )
a00068d0: 0a000018 beq a0006938 <malloc_sbrk_extend_and_allocate+0xa0><== NOT EXECUTED
return (void *) 0;
if ( !_Protected_heap_Extend(
a00068d4: e59f6068 ldr r6, [pc, #104] ; a0006944 <malloc_sbrk_extend_and_allocate+0xac><== NOT EXECUTED a00068d8: e1a02004 mov r2, r4 <== NOT EXECUTED a00068dc: e5960000 ldr r0, [r6] <== NOT EXECUTED a00068e0: eb0011f8 bl a000b0c8 <_Protected_heap_Extend> <== NOT EXECUTED a00068e4: e2507000 subs r7, r0, #0 <== NOT EXECUTED a00068e8: 1a000006 bne a0006908 <malloc_sbrk_extend_and_allocate+0x70><== NOT EXECUTED
RTEMS_Malloc_Heap, starting_address, the_size) ) {
sbrk(-the_size);
a00068ec: e2640000 rsb r0, r4, #0 <== NOT EXECUTED a00068f0: ebfff876 bl a0004ad0 <sbrk> <== NOT EXECUTED
errno = ENOMEM;
a00068f4: eb002b5d bl a0011670 <__errno> <== NOT EXECUTED a00068f8: e3a0300c mov r3, #12 <== NOT EXECUTED a00068fc: e5803000 str r3, [r0] <== NOT EXECUTED
return (void *) 0;
a0006900: e1a00007 mov r0, r7 <== NOT EXECUTED
a0006904: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
}
MSBUMP(space_available, the_size);
a0006908: e59f3038 ldr r3, [pc, #56] ; a0006948 <malloc_sbrk_extend_and_allocate+0xb0><== NOT EXECUTED a000690c: e5960000 ldr r0, [r6] <== NOT EXECUTED a0006910: e1a01005 mov r1, r5 <== NOT EXECUTED a0006914: e5932000 ldr r2, [r3] <== NOT EXECUTED a0006918: e0844002 add r4, r4, r2 <== NOT EXECUTED a000691c: e3a02000 mov r2, #0 <== NOT EXECUTED a0006920: e5834000 str r4, [r3] <== NOT EXECUTED a0006924: e1a03002 mov r3, r2 <== NOT EXECUTED
return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
return return_this;
}
a0006928: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED
a000692c: ea0011d2 b a000b07c <_Protected_heap_Allocate_aligned_with_boundary><== NOT EXECUTED
*/
sbrk_amount = RTEMS_Malloc_Sbrk_amount;
if ( sbrk_amount == 0 )
return (void *) 0;
a0006930: e1a00004 mov r0, r4 <== NOT EXECUTED
a0006934: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
the_size = ((size + sbrk_amount) / sbrk_amount * sbrk_amount);
starting_address = (void *) sbrk(the_size);
if ( starting_address == (void*) -1 )
return (void *) 0;
a0006938: e3a00000 mov r0, #0 <== NOT EXECUTED
MSBUMP(space_available, the_size);
return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );
return return_this;
}
a000693c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000694c <malloc_sbrk_initialize>:
)
{
uintptr_t old_address;
uintptr_t uaddress;
RTEMS_Malloc_Sbrk_amount = length;
a000694c: e59f3034 ldr r3, [pc, #52] ; a0006988 <malloc_sbrk_initialize+0x3c><== NOT EXECUTED
* If the starting address is 0 then we are to attempt to
* get length worth of memory using sbrk. Make sure we
* align the address that we get back.
*/
if (!starting_address) {
a0006950: e3500000 cmp r0, #0 <== NOT EXECUTED
void *malloc_sbrk_initialize(
void *starting_address,
size_t length
)
{
a0006954: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
uintptr_t old_address;
uintptr_t uaddress;
RTEMS_Malloc_Sbrk_amount = length;
a0006958: e5831000 str r1, [r3] <== NOT EXECUTED
* If the starting address is 0 then we are to attempt to
* get length worth of memory using sbrk. Make sure we
* align the address that we get back.
*/
if (!starting_address) {
a000695c: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED
uaddress = (uintptr_t)sbrk(length);
a0006960: e1a00001 mov r0, r1 <== NOT EXECUTED a0006964: ebfff859 bl a0004ad0 <sbrk> <== NOT EXECUTED
if (uaddress == (uintptr_t) -1) {
a0006968: e3700001 cmn r0, #1 <== NOT EXECUTED a000696c: 1a000001 bne a0006978 <malloc_sbrk_initialize+0x2c> <== NOT EXECUTED
rtems_fatal_error_occurred( RTEMS_NO_MEMORY );
a0006970: e280001b add r0, r0, #27 <== NOT EXECUTED a0006974: eb000d00 bl a0009d7c <rtems_fatal_error_occurred> <== NOT EXECUTED
/* DOES NOT RETURN!!! */
}
if (uaddress & (CPU_HEAP_ALIGNMENT-1)) {
a0006978: e3100007 tst r0, #7 <== NOT EXECUTED
old_address = uaddress;
uaddress = (uaddress + CPU_HEAP_ALIGNMENT) & ~(CPU_HEAP_ALIGNMENT-1);
a000697c: 12800008 addne r0, r0, #8 <== NOT EXECUTED a0006980: 13c00007 bicne r0, r0, #7 <== NOT EXECUTED
}
starting_address = (void *)uaddress;
}
return starting_address;
}
a0006984: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000698c <malloc_set_heap_pointer>:
void malloc_set_heap_pointer(
Heap_Control *new_heap
)
{
RTEMS_Malloc_Heap = new_heap;
a000698c: e59f3004 ldr r3, [pc, #4] ; a0006998 <malloc_set_heap_pointer+0xc><== NOT EXECUTED a0006990: e5830000 str r0, [r3] <== NOT EXECUTED
}
a0006994: e12fff1e bx lr <== NOT EXECUTED
a000a468 <malloc_walk>:
#include <stdlib.h>
void malloc_walk(size_t source, size_t printf_enabled)
{
_Protected_heap_Walk( RTEMS_Malloc_Heap, (int) source, printf_enabled );
a000a468: e2512000 subs r2, r1, #0 <== NOT EXECUTED a000a46c: 13a02001 movne r2, #1 <== NOT EXECUTED a000a470: e59f100c ldr r1, [pc, #12] ; a000a484 <malloc_walk+0x1c> <== NOT EXECUTED
#include "malloc_p.h"
#include <stdlib.h>
void malloc_walk(size_t source, size_t printf_enabled)
{
a000a474: e1a03000 mov r3, r0 <== NOT EXECUTED
_Protected_heap_Walk( RTEMS_Malloc_Heap, (int) source, printf_enabled );
a000a478: e5910000 ldr r0, [r1] <== NOT EXECUTED a000a47c: e1a01003 mov r1, r3 <== NOT EXECUTED a000a480: ea0016be b a000ff80 <_Protected_heap_Walk> <== NOT EXECUTED
a000f764 <memfile_alloc_block>:
void *memfile_alloc_block(void)
{
void *memory;
memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);
a000f764: e59f3024 ldr r3, [pc, #36] ; a000f790 <memfile_alloc_block+0x2c><== NOT EXECUTED
* Allocate a block for an in-memory file.
*/
int memfile_blocks_allocated = 0;
void *memfile_alloc_block(void)
{
a000f768: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
void *memory;
memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);
a000f76c: e5931000 ldr r1, [r3] <== NOT EXECUTED a000f770: e3a00001 mov r0, #1 <== NOT EXECUTED a000f774: ebffda18 bl a0005fdc <calloc> <== NOT EXECUTED
if ( memory )
a000f778: e3500000 cmp r0, #0 <== NOT EXECUTED
memfile_blocks_allocated++;
a000f77c: 159f3010 ldrne r3, [pc, #16] ; a000f794 <memfile_alloc_block+0x30><== NOT EXECUTED a000f780: 15932000 ldrne r2, [r3] <== NOT EXECUTED a000f784: 12822001 addne r2, r2, #1 <== NOT EXECUTED a000f788: 15832000 strne r2, [r3] <== NOT EXECUTED
return memory;
}
a000f78c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000f72c <memfile_close>:
* nothing to flush or memory to free at this point.
*/
int memfile_close(
rtems_libio_t *iop
)
{
a000f72c: e1a03000 mov r3, r0 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
if (iop->flags & LIBIO_FLAGS_APPEND)
a000f730: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED
* nothing to flush or memory to free at this point.
*/
int memfile_close(
rtems_libio_t *iop
)
{
a000f734: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
if (iop->flags & LIBIO_FLAGS_APPEND)
a000f738: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED
rtems_libio_t *iop
)
{
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
a000f73c: e5900018 ldr r0, [r0, #24] <== NOT EXECUTED
if (iop->flags & LIBIO_FLAGS_APPEND)
iop->offset = the_jnode->info.file.size;
a000f740: 12802050 addne r2, r0, #80 ; 0x50 <== NOT EXECUTED
a000f744: 18920006 ldmne r2, {r1, r2} <== NOT EXECUTED
a000f748: 1583100c strne r1, [r3, #12] <== NOT EXECUTED
a000f74c: 15832010 strne r2, [r3, #16] <== NOT EXECUTED
IMFS_check_node_remove( the_jnode );
a000f750: ebfff85d bl a000d8cc <IMFS_check_node_remove> <== NOT EXECUTED
return 0;
}
a000f754: e3a00000 mov r0, #0 <== NOT EXECUTED
a000f758: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000fbcc <memfile_free_block>:
* Free a block from an in-memory file.
*/
void memfile_free_block(
void *memory
)
{
a000fbcc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
free(memory);
a000fbd0: ebffd966 bl a0006170 <free> <== NOT EXECUTED
memfile_blocks_allocated--;
a000fbd4: e59f300c ldr r3, [pc, #12] ; a000fbe8 <memfile_free_block+0x1c><== NOT EXECUTED a000fbd8: e5932000 ldr r2, [r3] <== NOT EXECUTED a000fbdc: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000fbe0: e5832000 str r2, [r3] <== NOT EXECUTED
}
a000fbe4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000fbec <memfile_free_blocks_in_table>:
*/
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
a000fbec: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
/*
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
a000fbf0: e3a05000 mov r5, #0 <== NOT EXECUTED
*/
void memfile_free_blocks_in_table(
block_p **block_table,
int entries
)
{
a000fbf4: e1a04000 mov r4, r0 <== NOT EXECUTED a000fbf8: e1a08001 mov r8, r1 <== NOT EXECUTED
/*
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
a000fbfc: e5906000 ldr r6, [r0] <== NOT EXECUTED
if ( b[i] ) {
memfile_free_block( b[i] );
b[i] = 0;
a000fc00: e1a07005 mov r7, r5 <== NOT EXECUTED
/*
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
a000fc04: ea000005 b a000fc20 <memfile_free_blocks_in_table+0x34> <== NOT EXECUTED
if ( b[i] ) {
a000fc08: e4960004 ldr r0, [r6], #4 <== NOT EXECUTED a000fc0c: e3500000 cmp r0, #0 <== NOT EXECUTED a000fc10: 0a000001 beq a000fc1c <memfile_free_blocks_in_table+0x30> <== NOT EXECUTED
memfile_free_block( b[i] );
a000fc14: ebffffec bl a000fbcc <memfile_free_block> <== NOT EXECUTED
b[i] = 0;
a000fc18: e5067004 str r7, [r6, #-4] <== NOT EXECUTED
/*
* Now go through all the slots in the table and free the memory.
*/
b = *block_table;
for ( i=0 ; i<entries ; i++ ) {
a000fc1c: e2855001 add r5, r5, #1 <== NOT EXECUTED a000fc20: e1550008 cmp r5, r8 <== NOT EXECUTED a000fc24: bafffff7 blt a000fc08 <memfile_free_blocks_in_table+0x1c> <== NOT EXECUTED
/*
* Now that all the blocks in the block table are free, we can
* free the block table itself.
*/
memfile_free_block( *block_table );
a000fc28: e5940000 ldr r0, [r4] <== NOT EXECUTED a000fc2c: ebffffe6 bl a000fbcc <memfile_free_block> <== NOT EXECUTED
*block_table = 0;
a000fc30: e3a03000 mov r3, #0 <== NOT EXECUTED a000fc34: e5843000 str r3, [r4] <== NOT EXECUTED
}
a000fc38: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0010114 <memfile_ftruncate>:
*/
int memfile_ftruncate(
rtems_libio_t *iop,
rtems_off64_t length
)
{
a0010114: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
a0010118: e5904018 ldr r4, [r0, #24] <== NOT EXECUTED
* POSIX 1003.1b does not specify what happens if you truncate a file
* and the new length is greater than the current size. We treat this
* as an extend operation.
*/
if ( length > the_jnode->info.file.size )
a001011c: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED a0010120: e1530002 cmp r3, r2 <== NOT EXECUTED a0010124: ba000003 blt a0010138 <memfile_ftruncate+0x24> <== NOT EXECUTED a0010128: 1a000005 bne a0010144 <memfile_ftruncate+0x30> <== NOT EXECUTED a001012c: e5943050 ldr r3, [r4, #80] ; 0x50 <== NOT EXECUTED a0010130: e1530001 cmp r3, r1 <== NOT EXECUTED a0010134: 2a000002 bcs a0010144 <memfile_ftruncate+0x30> <== NOT EXECUTED
return IMFS_memfile_extend( the_jnode, length );
a0010138: e1a00004 mov r0, r4 <== NOT EXECUTED a001013c: ebffff0e bl a000fd7c <IMFS_memfile_extend> <== NOT EXECUTED a0010140: ea000008 b a0010168 <memfile_ftruncate+0x54> <== NOT EXECUTED
/* * The in-memory files do not currently reclaim memory until the file is * deleted. So we leave the previously allocated blocks in place for * future use and just set the length. */ the_jnode->info.file.size = length;
a0010144: e5841050 str r1, [r4, #80] ; 0x50 <== NOT EXECUTED a0010148: e5842054 str r2, [r4, #84] ; 0x54 <== NOT EXECUTED
iop->size = the_jnode->info.file.size;
a001014c: e9800006 stmib r0, {r1, r2} <== NOT EXECUTED
IMFS_update_atime( the_jnode );
a0010150: e3a01000 mov r1, #0 <== NOT EXECUTED a0010154: e1a0000d mov r0, sp <== NOT EXECUTED a0010158: ebffd839 bl a0006244 <gettimeofday> <== NOT EXECUTED a001015c: e59d3000 ldr r3, [sp] <== NOT EXECUTED
return 0;
a0010160: e3a00000 mov r0, #0 <== NOT EXECUTED
* future use and just set the length.
*/
the_jnode->info.file.size = length;
iop->size = the_jnode->info.file.size;
IMFS_update_atime( the_jnode );
a0010164: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED
return 0;
}
a0010168: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED
a000f75c <memfile_ioctl>:
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
return 0;
}
a000f75c: e3a00000 mov r0, #0 <== NOT EXECUTED a000f760: e12fff1e bx lr <== NOT EXECUTED
a001016c <memfile_lseek>:
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
a001016c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
a0010170: e5905018 ldr r5, [r0, #24] <== NOT EXECUTED
rtems_off64_t memfile_lseek(
rtems_libio_t *iop,
rtems_off64_t offset,
int whence
)
{
a0010174: e1a04000 mov r4, r0 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
if (the_jnode->type == IMFS_LINEAR_FILE) {
a0010178: e595304c ldr r3, [r5, #76] ; 0x4c <== NOT EXECUTED a001017c: e3530006 cmp r3, #6 <== NOT EXECUTED a0010180: 1a00000b bne a00101b4 <memfile_lseek+0x48> <== NOT EXECUTED
if (iop->offset > the_jnode->info.linearfile.size)
a0010184: e5953054 ldr r3, [r5, #84] ; 0x54 <== NOT EXECUTED a0010188: e5901010 ldr r1, [r0, #16] <== NOT EXECUTED a001018c: e5952050 ldr r2, [r5, #80] ; 0x50 <== NOT EXECUTED a0010190: e1510003 cmp r1, r3 <== NOT EXECUTED a0010194: ca000003 bgt a00101a8 <memfile_lseek+0x3c> <== NOT EXECUTED a0010198: 1a000014 bne a00101f0 <memfile_lseek+0x84> <== NOT EXECUTED a001019c: e590100c ldr r1, [r0, #12] <== NOT EXECUTED a00101a0: e1510002 cmp r1, r2 <== NOT EXECUTED a00101a4: 9a000011 bls a00101f0 <memfile_lseek+0x84> <== NOT EXECUTED
iop->offset = the_jnode->info.linearfile.size;
a00101a8: e584200c str r2, [r4, #12] <== NOT EXECUTED a00101ac: e5843010 str r3, [r4, #16] <== NOT EXECUTED a00101b0: ea00000e b a00101f0 <memfile_lseek+0x84> <== NOT EXECUTED
}
else { /* Must be a block file (IMFS_MEMORY_FILE). */
if (IMFS_memfile_extend( the_jnode, iop->offset ))
a00101b4: e1a00005 mov r0, r5 <== NOT EXECUTED
a00101b8: e284200c add r2, r4, #12 <== NOT EXECUTED
a00101bc: e8920006 ldm r2, {r1, r2} <== NOT EXECUTED
a00101c0: ebfffeed bl a000fd7c <IMFS_memfile_extend> <== NOT EXECUTED
a00101c4: e3500000 cmp r0, #0 <== NOT EXECUTED
a00101c8: 0a000005 beq a00101e4 <memfile_lseek+0x78> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSPC );
a00101cc: eb0003a6 bl a001106c <__errno> <== NOT EXECUTED a00101d0: e3a0301c mov r3, #28 <== NOT EXECUTED a00101d4: e5803000 str r3, [r0] <== NOT EXECUTED a00101d8: e3e04000 mvn r4, #0 <== NOT EXECUTED a00101dc: e3e03000 mvn r3, #0 <== NOT EXECUTED a00101e0: ea000004 b a00101f8 <memfile_lseek+0x8c> <== NOT EXECUTED
iop->size = the_jnode->info.file.size;
a00101e4: e2853050 add r3, r5, #80 ; 0x50 <== NOT EXECUTED
a00101e8: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a00101ec: e984000c stmib r4, {r2, r3} <== NOT EXECUTED
} return iop->offset;
a00101f0: e284400c add r4, r4, #12 <== NOT EXECUTED
a00101f4: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED
}
a00101f8: e1a00003 mov r0, r3 <== NOT EXECUTED
a00101fc: e1a01004 mov r1, r4 <== NOT EXECUTED
a0010200: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0010078 <memfile_open>:
the_jnode = iop->pathinfo.node_access;
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
a0010078: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
a001007c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
the_jnode = iop->pathinfo.node_access;
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
a0010080: e3130f81 tst r3, #516 ; 0x204 <== NOT EXECUTED
rtems_libio_t *iop,
const char *pathname,
uint32_t flag,
uint32_t mode
)
{
a0010084: e1a05000 mov r5, r0 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
a0010088: e5904018 ldr r4, [r0, #24] <== NOT EXECUTED
/*
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
a001008c: 0a000015 beq a00100e8 <memfile_open+0x70> <== NOT EXECUTED
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
a0010090: e594304c ldr r3, [r4, #76] ; 0x4c <== NOT EXECUTED a0010094: e3530006 cmp r3, #6 <== NOT EXECUTED a0010098: 1a000012 bne a00100e8 <memfile_open+0x70> <== NOT EXECUTED
uint32_t count = the_jnode->info.linearfile.size;
a001009c: e594c050 ldr ip, [r4, #80] ; 0x50 <== NOT EXECUTED
const unsigned char *buffer = the_jnode->info.linearfile.direct;
the_jnode->type = IMFS_MEMORY_FILE;
the_jnode->info.file.size = 0;
the_jnode->info.file.indirect = 0;
a00100a0: e3a00000 mov r0, #0 <== NOT EXECUTED
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
uint32_t count = the_jnode->info.linearfile.size;
const unsigned char *buffer = the_jnode->info.linearfile.direct;
the_jnode->type = IMFS_MEMORY_FILE;
a00100a4: e3a02005 mov r2, #5 <== NOT EXECUTED a00100a8: e584204c str r2, [r4, #76] ; 0x4c <== NOT EXECUTED
the_jnode->info.file.size = 0;
a00100ac: e3a01000 mov r1, #0 <== NOT EXECUTED a00100b0: e3a02000 mov r2, #0 <== NOT EXECUTED
the_jnode->info.file.indirect = 0;
the_jnode->info.file.doubly_indirect = 0;
the_jnode->info.file.triply_indirect = 0;
if ((count != 0)
a00100b4: e15c0000 cmp ip, r0 <== NOT EXECUTED
* Perform 'copy on write' for linear files
*/
if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND))
&& (the_jnode->type == IMFS_LINEAR_FILE)) {
uint32_t count = the_jnode->info.linearfile.size;
const unsigned char *buffer = the_jnode->info.linearfile.direct;
a00100b8: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED
the_jnode->type = IMFS_MEMORY_FILE;
the_jnode->info.file.size = 0;
a00100bc: e5841050 str r1, [r4, #80] ; 0x50 <== NOT EXECUTED a00100c0: e5842054 str r2, [r4, #84] ; 0x54 <== NOT EXECUTED
the_jnode->info.file.indirect = 0;
a00100c4: e5840058 str r0, [r4, #88] ; 0x58 <== NOT EXECUTED
the_jnode->info.file.doubly_indirect = 0;
a00100c8: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED
the_jnode->info.file.triply_indirect = 0;
a00100cc: e5840060 str r0, [r4, #96] ; 0x60 <== NOT EXECUTED
if ((count != 0)
a00100d0: 0a000004 beq a00100e8 <memfile_open+0x70> <== NOT EXECUTED
&& (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))
a00100d4: e1a00004 mov r0, r4 <== NOT EXECUTED a00100d8: e58dc000 str ip, [sp] <== NOT EXECUTED a00100dc: ebffff6d bl a000fe98 <IMFS_memfile_write> <== NOT EXECUTED a00100e0: e3700001 cmn r0, #1 <== NOT EXECUTED a00100e4: 0a000009 beq a0010110 <memfile_open+0x98> <== NOT EXECUTED
return -1;
}
if (iop->flags & LIBIO_FLAGS_APPEND)
a00100e8: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED a00100ec: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED
iop->offset = the_jnode->info.file.size;
a00100f0: 12843050 addne r3, r4, #80 ; 0x50 <== NOT EXECUTED
a00100f4: 1893000c ldmne r3, {r2, r3} <== NOT EXECUTED
a00100f8: 1585200c strne r2, [r5, #12] <== NOT EXECUTED
a00100fc: 15853010 strne r3, [r5, #16] <== NOT EXECUTED
iop->size = the_jnode->info.file.size;
a0010100: e2844050 add r4, r4, #80 ; 0x50 <== NOT EXECUTED
a0010104: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED
a0010108: e9850018 stmib r5, {r3, r4} <== NOT EXECUTED
return 0;
a001010c: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a0010110: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000fb60 <memfile_read>:
ssize_t memfile_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
a000fb60: e92d4801 push {r0, fp, lr} <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
return IMFS_memfile_read( the_jnode, iop->offset, buffer, count );
a000fb64: e280c00c add ip, r0, #12 <== NOT EXECUTED
a000fb68: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED
a000fb6c: e58d2000 str r2, [sp] <== NOT EXECUTED
ssize_t memfile_read(
rtems_libio_t *iop,
void *buffer,
size_t count
)
{
a000fb70: e1a03001 mov r3, r1 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
the_jnode = iop->pathinfo.node_access;
return IMFS_memfile_read( the_jnode, iop->offset, buffer, count );
a000fb74: e1a0200c mov r2, ip <== NOT EXECUTED a000fb78: e1a0100b mov r1, fp <== NOT EXECUTED a000fb7c: e5900018 ldr r0, [r0, #24] <== NOT EXECUTED a000fb80: ebffff80 bl a000f988 <IMFS_memfile_read> <== NOT EXECUTED
}
a000fb84: e8bd8808 pop {r3, fp, pc} <== NOT EXECUTED
a001003c <memfile_write>:
ssize_t memfile_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
a001003c: e92d4831 push {r0, r4, r5, fp, lr} <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
ssize_t status;
the_jnode = iop->pathinfo.node_access;
status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count );
a0010040: e280c00c add ip, r0, #12 <== NOT EXECUTED
a0010044: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED
)
{
IMFS_jnode_t *the_jnode;
ssize_t status;
the_jnode = iop->pathinfo.node_access;
a0010048: e5905018 ldr r5, [r0, #24] <== NOT EXECUTED
ssize_t memfile_write(
rtems_libio_t *iop,
const void *buffer,
size_t count
)
{
a001004c: e1a04000 mov r4, r0 <== NOT EXECUTED a0010050: e1a03001 mov r3, r1 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
ssize_t status;
the_jnode = iop->pathinfo.node_access;
status = IMFS_memfile_write( the_jnode, iop->offset, buffer, count );
a0010054: e58d2000 str r2, [sp] <== NOT EXECUTED a0010058: e1a00005 mov r0, r5 <== NOT EXECUTED a001005c: e1a0200c mov r2, ip <== NOT EXECUTED a0010060: e1a0100b mov r1, fp <== NOT EXECUTED a0010064: ebffff8b bl a000fe98 <IMFS_memfile_write> <== NOT EXECUTED
iop->size = the_jnode->info.file.size;
a0010068: e2853050 add r3, r5, #80 ; 0x50 <== NOT EXECUTED
a001006c: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a0010070: e984000c stmib r4, {r2, r3} <== NOT EXECUTED
return status;
}
a0010074: e8bd8838 pop {r3, r4, r5, fp, pc} <== NOT EXECUTED
a0006698 <mkfifo>:
int mkfifo(
const char *path,
mode_t mode
)
{
return mknod( path, mode | S_IFIFO, 0LL );
a0006698: e3811a01 orr r1, r1, #4096 ; 0x1000 <== NOT EXECUTED a000669c: e3a02000 mov r2, #0 <== NOT EXECUTED a00066a0: e3a03000 mov r3, #0 <== NOT EXECUTED a00066a4: eaffffff b a00066a8 <mknod> <== NOT EXECUTED
a00065ec <mknod>:
int mknod(
const char *pathname,
mode_t mode,
dev_t dev
)
{
a00065ec: e92d41f0 push {r4, r5, r6, r7, r8, lr}
a00065f0: e1a08003 mov r8, r3
int result;
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & S_IFMT)
a00065f4: e2013a0f and r3, r1, #61440 ; 0xf000 a00065f8: e3530901 cmp r3, #16384 ; 0x4000
int mknod(
const char *pathname,
mode_t mode,
dev_t dev
)
{
a00065fc: e24dd020 sub sp, sp, #32 a0006600: e1a06000 mov r6, r0 a0006604: e1a05001 mov r5, r1 a0006608: e1a07002 mov r7, r2
int result;
/*
* The file type is field within the mode. Check we have a sane mode set.
*/
switch (mode & S_IFMT)
a000660c: 0a00000c beq a0006644 <mknod+0x58>
a0006610: 8a000003 bhi a0006624 <mknod+0x38>
a0006614: e3530a01 cmp r3, #4096 ; 0x1000
a0006618: 0a000009 beq a0006644 <mknod+0x58>
a000661c: e3530a02 cmp r3, #8192 ; 0x2000 a0006620: ea000002 b a0006630 <mknod+0x44>
a0006624: e3530a06 cmp r3, #24576 ; 0x6000 <== NOT EXECUTED a0006628: 0a000005 beq a0006644 <mknod+0x58> <== NOT EXECUTED a000662c: e3530902 cmp r3, #32768 ; 0x8000 <== NOT EXECUTED
a0006630: 0a000003 beq a0006644 <mknod+0x58>
case S_IFBLK:
case S_IFREG:
case S_IFIFO:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
a0006634: eb002a8c bl a001106c <__errno> <== NOT EXECUTED a0006638: e3a03016 mov r3, #22 <== NOT EXECUTED a000663c: e5803000 str r3, [r0] <== NOT EXECUTED a0006640: ea000019 b a00066ac <mknod+0xc0> <== NOT EXECUTED
}
rtems_filesystem_get_start_loc( pathname, &i, &temp_loc );
a0006644: e28d4004 add r4, sp, #4 a0006648: e1a00006 mov r0, r6 a000664c: e28d101c add r1, sp, #28 a0006650: e1a02004 mov r2, r4 a0006654: eb000244 bl a0006f6c <rtems_filesystem_get_start_loc>
result = (*temp_loc.ops->evalformake_h)(
a0006658: e59d3010 ldr r3, [sp, #16] a000665c: e59d001c ldr r0, [sp, #28] a0006660: e1a01004 mov r1, r4 a0006664: e5933004 ldr r3, [r3, #4] a0006668: e0860000 add r0, r6, r0 a000666c: e28d2018 add r2, sp, #24 a0006670: e12fff33 blx r3
&pathname[i],
&temp_loc,
&name_start
);
if ( result != 0 )
a0006674: e3500000 cmp r0, #0
a0006678: 1a00000b bne a00066ac <mknod+0xc0>
return -1;
result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
a000667c: e59d3010 ldr r3, [sp, #16] a0006680: e58d4000 str r4, [sp] a0006684: e1a01005 mov r1, r5 a0006688: e593c014 ldr ip, [r3, #20] a000668c: e59d0018 ldr r0, [sp, #24] a0006690: e1a02007 mov r2, r7 a0006694: e1a03008 mov r3, r8 a0006698: e12fff3c blx ip a000669c: e1a05000 mov r5, r0
rtems_filesystem_freenode( &temp_loc );
a00066a0: e1a00004 mov r0, r4 a00066a4: ebfffeac bl a000615c <rtems_filesystem_freenode>
return result;
a00066a8: ea000000 b a00066b0 <mknod+0xc4>
&pathname[i],
&temp_loc,
&name_start
);
if ( result != 0 )
return -1;
a00066ac: e3e05000 mvn r5, #0
result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc );
rtems_filesystem_freenode( &temp_loc );
return result;
}
a00066b0: e1a00005 mov r0, r5
a00066b4: e28dd020 add sp, sp, #32
a00066b8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
a000674c <mount>:
const char *target,
const char *filesystemtype,
rtems_filesystem_options_t options,
const void *data
)
{
a000674c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
/*
* Are the file system options valid?
*/
if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
a0006750: e3530001 cmp r3, #1
const char *target,
const char *filesystemtype,
rtems_filesystem_options_t options,
const void *data
)
{
a0006754: e24dd02c sub sp, sp, #44 ; 0x2c a0006758: e1a06000 mov r6, r0 a000675c: e1a0b001 mov fp, r1 a0006760: e1a0a002 mov sl, r2 a0006764: e58d300c str r3, [sp, #12]
/*
* Are the file system options valid?
*/
if ( options != RTEMS_FILESYSTEM_READ_ONLY &&
a0006768: 8a000004 bhi a0006780 <mount+0x34>
rtems_set_errno_and_return_minus_one( EINVAL );
/*
* Get mount handler
*/
mount_h = rtems_filesystem_get_mount_handler( filesystemtype );
a000676c: e1a00002 mov r0, r2 a0006770: eb001de0 bl a000def8 <rtems_filesystem_get_mount_handler>
if ( !mount_h )
a0006774: e3500000 cmp r0, #0 a0006778: e58d0014 str r0, [sp, #20]
a000677c: 1a000002 bne a000678c <mount+0x40>
rtems_set_errno_and_return_minus_one( EINVAL );
a0006780: eb002a39 bl a001106c <__errno> <== NOT EXECUTED a0006784: e3a03016 mov r3, #22 <== NOT EXECUTED a0006788: ea00003b b a000687c <mount+0x130> <== NOT EXECUTED
const char *target_or_null,
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
a000678c: e59f3260 ldr r3, [pc, #608] ; a00069f4 <mount+0x2a8>
{
rtems_filesystem_fsmount_me_t mount_h = NULL;
rtems_filesystem_location_info_t loc;
rtems_filesystem_mount_table_entry_t *mt_entry = NULL;
rtems_filesystem_location_info_t *loc_to_free = NULL;
bool has_target = target != NULL;
a0006790: e25b5000 subs r5, fp, #0 a0006794: 13a05001 movne r5, #1
const char *target_or_null,
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
a0006798: e3550000 cmp r5, #0 a000679c: 11a0300b movne r3, fp
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
a00067a0: e1a0000a mov r0, sl
const char *target_or_null,
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
a00067a4: e58d3004 str r3, [sp, #4]
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
a00067a8: eb002e19 bl a0012014 <strlen>
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
a00067ac: e3560000 cmp r6, #0
const char *filesystemtype,
size_t *target_length_ptr
)
{
const char *target = target_or_null != NULL ? target_or_null : "/";
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
a00067b0: e2809001 add r9, r0, #1
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
a00067b4: 01a07006 moveq r7, r6
a00067b8: 0a000002 beq a00067c8 <mount+0x7c>
a00067bc: e1a00006 mov r0, r6 <== NOT EXECUTED a00067c0: eb002e13 bl a0012014 <strlen> <== NOT EXECUTED a00067c4: e2807001 add r7, r0, #1 <== NOT EXECUTED
size_t target_size = strlen( target ) + 1;
a00067c8: e59d0004 ldr r0, [sp, #4] a00067cc: eb002e10 bl a0012014 <strlen>
size_t size = sizeof( rtems_filesystem_mount_table_entry_t )
+ filesystemtype_size + source_size + target_size;
a00067d0: e2891074 add r1, r9, #116 ; 0x74
{
const char *target = target_or_null != NULL ? target_or_null : "/";
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
size_t target_size = strlen( target ) + 1;
a00067d4: e2803001 add r3, r0, #1
size_t size = sizeof( rtems_filesystem_mount_table_entry_t )
+ filesystemtype_size + source_size + target_size;
a00067d8: e0811007 add r1, r1, r7
{
const char *target = target_or_null != NULL ? target_or_null : "/";
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
size_t target_size = strlen( target ) + 1;
a00067dc: e58d0010 str r0, [sp, #16]
size_t size = sizeof( rtems_filesystem_mount_table_entry_t )
+ filesystemtype_size + source_size + target_size;
rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size );
a00067e0: e0811003 add r1, r1, r3 a00067e4: e3a00001 mov r0, #1
{
const char *target = target_or_null != NULL ? target_or_null : "/";
size_t filesystemtype_size = strlen( filesystemtype ) + 1;
size_t source_size = source_or_null != NULL ?
strlen( source_or_null ) + 1 : 0;
size_t target_size = strlen( target ) + 1;
a00067e8: e58d3008 str r3, [sp, #8]
size_t size = sizeof( rtems_filesystem_mount_table_entry_t )
+ filesystemtype_size + source_size + target_size;
rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size );
a00067ec: ebfffdfa bl a0005fdc <calloc>
if ( mt_entry != NULL ) {
a00067f0: e2504000 subs r4, r0, #0
a00067f4: 0a00001e beq a0006874 <mount+0x128>
char *str = (char *) mt_entry + sizeof( *mt_entry );
a00067f8: e2848074 add r8, r4, #116 ; 0x74
memcpy( str, filesystemtype, filesystemtype_size );
a00067fc: e1a00008 mov r0, r8 a0006800: e1a0100a mov r1, sl a0006804: e1a02009 mov r2, r9 a0006808: eb002c45 bl a0011924 <memcpy>
mt_entry->type = str;
a000680c: e584806c str r8, [r4, #108] ; 0x6c
str += filesystemtype_size;
a0006810: e0888009 add r8, r8, r9
memcpy( str, source_or_null, source_size );
a0006814: e1a00008 mov r0, r8 a0006818: e1a01006 mov r1, r6 a000681c: e1a02007 mov r2, r7 a0006820: eb002c3f bl a0011924 <memcpy>
mt_entry->dev = str;
a0006824: e5848070 str r8, [r4, #112] ; 0x70
str += source_size;
a0006828: e0888007 add r8, r8, r7
memcpy( str, target, target_size );
a000682c: e99d0006 ldmib sp, {r1, r2}
a0006830: e1a00008 mov r0, r8
a0006834: eb002c3a bl a0011924 <memcpy>
);
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
mt_entry->mt_fs_root.mt_entry = mt_entry;
mt_entry->options = options;
a0006838: e59d300c ldr r3, [sp, #12]
mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
a000683c: e59fe1b4 ldr lr, [pc, #436] ; a00069f8 <mount+0x2ac> a0006840: e284c038 add ip, r4, #56 ; 0x38
);
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
mt_entry->mt_fs_root.mt_entry = mt_entry;
mt_entry->options = options;
a0006844: e5843030 str r3, [r4, #48] ; 0x30
mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
a0006848: e8be000f ldm lr!, {r0, r1, r2, r3}
a000684c: e8ac000f stmia ip!, {r0, r1, r2, r3}
a0006850: e8be000f ldm lr!, {r0, r1, r2, r3}
a0006854: e8ac000f stmia ip!, {r0, r1, r2, r3}
a0006858: e89e000f ldm lr, {r0, r1, r2, r3}
/*
* The mount_point should be a directory with read/write/execute
* permissions in the existing tree.
*/
if ( has_target ) {
a000685c: e3550000 cmp r5, #0
memcpy( str, source_or_null, source_size );
mt_entry->dev = str;
str += source_size;
memcpy( str, target, target_size );
mt_entry->target = str;
a0006860: e5848068 str r8, [r4, #104] ; 0x68
&target_length
);
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
mt_entry->mt_fs_root.mt_entry = mt_entry;
a0006864: e584402c str r4, [r4, #44] ; 0x2c
mt_entry->options = options; mt_entry->pathconf_limits_and_options = rtems_filesystem_default_pathconf;
a0006868: e88c000f stm ip, {r0, r1, r2, r3}
/*
* The mount_point should be a directory with read/write/execute
* permissions in the existing tree.
*/
if ( has_target ) {
a000686c: 0a00002e beq a000692c <mount+0x1e0>
a0006870: ea000003 b a0006884 <mount+0x138> <== NOT EXECUTED
target,
filesystemtype,
&target_length
);
if ( !mt_entry )
rtems_set_errno_and_return_minus_one( ENOMEM );
a0006874: eb0029fc bl a001106c <__errno> <== NOT EXECUTED a0006878: e3a0300c mov r3, #12 <== NOT EXECUTED a000687c: e5803000 str r3, [r0] <== NOT EXECUTED a0006880: ea000058 b a00069e8 <mount+0x29c> <== NOT EXECUTED
* The mount_point should be a directory with read/write/execute
* permissions in the existing tree.
*/
if ( has_target ) {
if ( rtems_filesystem_evaluate_path(
a0006884: e3a03001 mov r3, #1 <== NOT EXECUTED a0006888: e28d6018 add r6, sp, #24 <== NOT EXECUTED a000688c: e58d3000 str r3, [sp] <== NOT EXECUTED a0006890: e1a0000b mov r0, fp <== NOT EXECUTED a0006894: e59d1010 ldr r1, [sp, #16] <== NOT EXECUTED a0006898: e3a02007 mov r2, #7 <== NOT EXECUTED a000689c: e1a03006 mov r3, r6 <== NOT EXECUTED a00068a0: ebfffdfd bl a000609c <rtems_filesystem_evaluate_path> <== NOT EXECUTED a00068a4: e3700001 cmn r0, #1 <== NOT EXECUTED a00068a8: 0a000047 beq a00069cc <mount+0x280> <== NOT EXECUTED
/*
* Test to see if it is a directory
*/
if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
a00068ac: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a00068b0: e1a00006 mov r0, r6 <== NOT EXECUTED a00068b4: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a00068b8: e12fff33 blx r3 <== NOT EXECUTED a00068bc: e3500001 cmp r0, #1 <== NOT EXECUTED a00068c0: 0a000002 beq a00068d0 <mount+0x184> <== NOT EXECUTED
errno = ENOTDIR;
a00068c4: eb0029e8 bl a001106c <__errno> <== NOT EXECUTED a00068c8: e3a03014 mov r3, #20 <== NOT EXECUTED a00068cc: ea000006 b a00068ec <mount+0x1a0> <== NOT EXECUTED
/*
* You can only mount one file system onto a single mount point.
*/
if ( rtems_filesystem_mount_iterate( is_node_fs_root, loc.node_access ) ) {
a00068d0: e59f0124 ldr r0, [pc, #292] ; a00069fc <mount+0x2b0> <== NOT EXECUTED a00068d4: e59d1018 ldr r1, [sp, #24] <== NOT EXECUTED a00068d8: ebffff86 bl a00066f8 <rtems_filesystem_mount_iterate> <== NOT EXECUTED a00068dc: e3500000 cmp r0, #0 <== NOT EXECUTED a00068e0: 0a000003 beq a00068f4 <mount+0x1a8> <== NOT EXECUTED
errno = EBUSY;
a00068e4: eb0029e0 bl a001106c <__errno> <== NOT EXECUTED a00068e8: e3a03010 mov r3, #16 <== NOT EXECUTED a00068ec: e5803000 str r3, [r0] <== NOT EXECUTED
goto cleanup_and_bail;
a00068f0: ea000036 b a00069d0 <mount+0x284> <== NOT EXECUTED
* may have been allocated in loc should not be sent to freenode
* until the system is unmounted. It may be needed to correctly
* traverse the tree.
*/
mt_entry->mt_point_node.node_access = loc.node_access;
a00068f4: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED
mt_entry->mt_point_node.handlers = loc.handlers;
mt_entry->mt_point_node.ops = loc.ops;
mt_entry->mt_point_node.mt_entry = loc.mt_entry;
a00068f8: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED
/*
* This link to the parent is only done when we are dealing with system
* below the base file system
*/
if ( loc.ops->mount_h( mt_entry ) ) {
a00068fc: e1a00004 mov r0, r4 <== NOT EXECUTED
* may have been allocated in loc should not be sent to freenode
* until the system is unmounted. It may be needed to correctly
* traverse the tree.
*/
mt_entry->mt_point_node.node_access = loc.node_access;
a0006900: e5843008 str r3, [r4, #8] <== NOT EXECUTED
mt_entry->mt_point_node.handlers = loc.handlers;
a0006904: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED
mt_entry->mt_point_node.ops = loc.ops;
mt_entry->mt_point_node.mt_entry = loc.mt_entry;
a0006908: e5842018 str r2, [r4, #24] <== NOT EXECUTED
* until the system is unmounted. It may be needed to correctly
* traverse the tree.
*/
mt_entry->mt_point_node.node_access = loc.node_access;
mt_entry->mt_point_node.handlers = loc.handlers;
a000690c: e5843010 str r3, [r4, #16] <== NOT EXECUTED
mt_entry->mt_point_node.ops = loc.ops;
a0006910: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0006914: e5843014 str r3, [r4, #20] <== NOT EXECUTED
/*
* This link to the parent is only done when we are dealing with system
* below the base file system
*/
if ( loc.ops->mount_h( mt_entry ) ) {
a0006918: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED a000691c: e12fff33 blx r3 <== NOT EXECUTED a0006920: e3500000 cmp r0, #0 <== NOT EXECUTED a0006924: 0a00000b beq a0006958 <mount+0x20c> <== NOT EXECUTED a0006928: ea000028 b a00069d0 <mount+0x284> <== NOT EXECUTED
stop = (*routine)( mt_entry, routine_arg );
}
rtems_libio_unlock();
return stop;
}
a000692c: e59f30cc ldr r3, [pc, #204] ; a0006a00 <mount+0x2b4>
*/
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(
const Chain_Control *the_chain
)
{
return &the_chain->Tail.Node;
a0006930: e2832004 add r2, r3, #4
}
} else {
/*
* Do we already have a base file system ?
*/
if ( !rtems_chain_is_empty( &mount_chain ) ) {
a0006934: e5933000 ldr r3, [r3] a0006938: e1530002 cmp r3, r2
)
{
rtems_filesystem_fsmount_me_t mount_h = NULL;
rtems_filesystem_location_info_t loc;
rtems_filesystem_mount_table_entry_t *mt_entry = NULL;
rtems_filesystem_location_info_t *loc_to_free = NULL;
a000693c: 01a06005 moveq r6, r5
}
} else {
/*
* Do we already have a base file system ?
*/
if ( !rtems_chain_is_empty( &mount_chain ) ) {
a0006940: 0a000004 beq a0006958 <mount+0x20c>
errno = EINVAL;
a0006944: eb0029c8 bl a001106c <__errno> <== NOT EXECUTED a0006948: e3a03016 mov r3, #22 <== NOT EXECUTED a000694c: e5803000 str r3, [r0] <== NOT EXECUTED
)
{
rtems_filesystem_fsmount_me_t mount_h = NULL;
rtems_filesystem_location_info_t loc;
rtems_filesystem_mount_table_entry_t *mt_entry = NULL;
rtems_filesystem_location_info_t *loc_to_free = NULL;
a0006950: e1a06005 mov r6, r5 <== NOT EXECUTED
/*
* Do we already have a base file system ?
*/
if ( !rtems_chain_is_empty( &mount_chain ) ) {
errno = EINVAL;
goto cleanup_and_bail;
a0006954: ea00001d b a00069d0 <mount+0x284> <== NOT EXECUTED
* mt_point_node.node_access will be left to null to indicate that this
* is the root of the entire file system.
*/
}
if ( (*mount_h)( mt_entry, data ) ) {
a0006958: e1a00004 mov r0, r4 a000695c: e59d1050 ldr r1, [sp, #80] ; 0x50 a0006960: e59d3014 ldr r3, [sp, #20] a0006964: e12fff33 blx r3 a0006968: e2507000 subs r7, r0, #0
a000696c: 0a000004 beq a0006984 <mount+0x238>
/*
* Try to undo the mount operation
*/
loc.ops->unmount_h( mt_entry );
a0006970: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0006974: e1a00004 mov r0, r4 <== NOT EXECUTED a0006978: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED a000697c: e12fff33 blx r3 <== NOT EXECUTED
goto cleanup_and_bail;
a0006980: ea000012 b a00069d0 <mount+0x284> <== NOT EXECUTED
}
/*
* Add the mount table entry to the mount table chain
*/
rtems_libio_lock();
a0006984: ebffff51 bl a00066d0 <rtems_libio_lock> a0006988: e59f0070 ldr r0, [pc, #112] ; a0006a00 <mount+0x2b4> a000698c: e1a01004 mov r1, r4 a0006990: eb000ce0 bl a0009d18 <_Chain_Append>
rtems_chain_append( &mount_chain, &mt_entry->Node ); rtems_libio_unlock();
a0006994: ebffff53 bl a00066e8 <rtems_libio_unlock>
if ( !has_target )
a0006998: e3550000 cmp r5, #0
rtems_filesystem_root = mt_entry->mt_fs_root;
return 0;
a000699c: 11a00007 movne r0, r7
*/
rtems_libio_lock();
rtems_chain_append( &mount_chain, &mt_entry->Node );
rtems_libio_unlock();
if ( !has_target )
a00069a0: 1a000011 bne a00069ec <mount+0x2a0>
rtems_filesystem_root = mt_entry->mt_fs_root;
a00069a4: e59f3058 ldr r3, [pc, #88] ; a0006a04 <mount+0x2b8>
a00069a8: e284401c add r4, r4, #28
a00069ac: e593c000 ldr ip, [r3]
a00069b0: e8b4000f ldm r4!, {r0, r1, r2, r3}
a00069b4: e28cc018 add ip, ip, #24
a00069b8: e8ac000f stmia ip!, {r0, r1, r2, r3}
a00069bc: e5943000 ldr r3, [r4]
return 0;
a00069c0: e1a00005 mov r0, r5
rtems_libio_lock();
rtems_chain_append( &mount_chain, &mt_entry->Node );
rtems_libio_unlock();
if ( !has_target )
rtems_filesystem_root = mt_entry->mt_fs_root;
a00069c4: e58c3000 str r3, [ip] a00069c8: ea000007 b a00069ec <mount+0x2a0>
)
{
rtems_filesystem_fsmount_me_t mount_h = NULL;
rtems_filesystem_location_info_t loc;
rtems_filesystem_mount_table_entry_t *mt_entry = NULL;
rtems_filesystem_location_info_t *loc_to_free = NULL;
a00069cc: e3a06000 mov r6, #0 <== NOT EXECUTED
return 0;
cleanup_and_bail:
free( mt_entry );
a00069d0: e1a00004 mov r0, r4 <== NOT EXECUTED a00069d4: ebfffde5 bl a0006170 <free> <== NOT EXECUTED
if ( loc_to_free )
a00069d8: e3560000 cmp r6, #0 <== NOT EXECUTED a00069dc: 0a000001 beq a00069e8 <mount+0x29c> <== NOT EXECUTED
rtems_filesystem_freenode( loc_to_free );
a00069e0: e1a00006 mov r0, r6 <== NOT EXECUTED a00069e4: ebfffddc bl a000615c <rtems_filesystem_freenode> <== NOT EXECUTED
return -1;
a00069e8: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a00069ec: e28dd02c add sp, sp, #44 ; 0x2c
a00069f0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
a0006bf8 <mount_and_make_target_path>:
const char *target,
const char *filesystemtype,
rtems_filesystem_options_t options,
const void *data
)
{
a0006bf8: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
int rv = -1;
if (target != NULL) {
a0006bfc: e2517000 subs r7, r1, #0 <== NOT EXECUTED
const char *target,
const char *filesystemtype,
rtems_filesystem_options_t options,
const void *data
)
{
a0006c00: e1a04000 mov r4, r0 <== NOT EXECUTED a0006c04: e1a06002 mov r6, r2 <== NOT EXECUTED a0006c08: e1a05003 mov r5, r3 <== NOT EXECUTED a0006c0c: e59d8018 ldr r8, [sp, #24] <== NOT EXECUTED
int rv = -1;
if (target != NULL) {
a0006c10: 0a00000b beq a0006c44 <mount_and_make_target_path+0x4c> <== NOT EXECUTED
rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);
a0006c14: e1a00007 mov r0, r7 <== NOT EXECUTED a0006c18: e59f1038 ldr r1, [pc, #56] ; a0006c58 <mount_and_make_target_path+0x60><== NOT EXECUTED a0006c1c: eb00023a bl a000750c <rtems_mkdir> <== NOT EXECUTED
if (rv == 0) {
a0006c20: e3500000 cmp r0, #0 <== NOT EXECUTED a0006c24: 1a00000a bne a0006c54 <mount_and_make_target_path+0x5c> <== NOT EXECUTED
rv = mount(
a0006c28: e1a00004 mov r0, r4 <== NOT EXECUTED a0006c2c: e1a01007 mov r1, r7 <== NOT EXECUTED a0006c30: e1a02006 mov r2, r6 <== NOT EXECUTED a0006c34: e1a03005 mov r3, r5 <== NOT EXECUTED a0006c38: e58d8018 str r8, [sp, #24] <== NOT EXECUTED
} else {
errno = EINVAL;
}
return rv;
}
a0006c3c: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
int rv = -1;
if (target != NULL) {
rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);
if (rv == 0) {
rv = mount(
a0006c40: ea000029 b a0006cec <mount> <== NOT EXECUTED
options,
data
);
}
} else {
errno = EINVAL;
a0006c44: eb0029cd bl a0011380 <__errno> <== NOT EXECUTED a0006c48: e3a03016 mov r3, #22 <== NOT EXECUTED a0006c4c: e5803000 str r3, [r0] <== NOT EXECUTED
const char *filesystemtype,
rtems_filesystem_options_t options,
const void *data
)
{
int rv = -1;
a0006c50: e3e00000 mvn r0, #0 <== NOT EXECUTED
} else {
errno = EINVAL;
}
return rv;
}
a0006c54: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0009250 <mprotect>:
const void *addr __attribute__((unused)),
size_t len __attribute__((unused)),
int prot __attribute__((unused)) )
{
return 0;
}
a0009250: e3a00000 mov r0, #0 <== NOT EXECUTED a0009254: e12fff1e bx lr <== NOT EXECUTED
a000e54c <mq_close>:
*/
int mq_close(
mqd_t mqdes
)
{
a000e54c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a000e550: e1a01000 mov r1, r0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
mqd_t id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control_fd *) _Objects_Get(
a000e554: e1a0200d mov r2, sp <== NOT EXECUTED a000e558: e59f005c ldr r0, [pc, #92] ; a000e5bc <mq_close+0x70> <== NOT EXECUTED a000e55c: eb000cb1 bl a0011828 <_Objects_Get> <== NOT EXECUTED
POSIX_Message_queue_Control *the_mq;
POSIX_Message_queue_Control_fd *the_mq_fd;
Objects_Locations location;
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
if ( location == OBJECTS_LOCAL ) {
a000e560: e59d5000 ldr r5, [sp] <== NOT EXECUTED a000e564: e1a04000 mov r4, r0 <== NOT EXECUTED a000e568: e3550000 cmp r5, #0 <== NOT EXECUTED a000e56c: 1a00000d bne a000e5a8 <mq_close+0x5c> <== NOT EXECUTED
* First update the actual message queue to reflect this descriptor
* being disassociated. This may result in the queue being really
* deleted.
*/
the_mq = the_mq_fd->Queue;
a000e570: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED
the_mq->open_count -= 1;
a000e574: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED a000e578: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000e57c: e5803018 str r3, [r0, #24] <== NOT EXECUTED
_POSIX_Message_queue_Delete( the_mq );
a000e580: eb00000e bl a000e5c0 <_POSIX_Message_queue_Delete> <== NOT EXECUTED
/*
* Now close this file descriptor.
*/
_Objects_Close(
a000e584: e59f0030 ldr r0, [pc, #48] ; a000e5bc <mq_close+0x70> <== NOT EXECUTED a000e588: e1a01004 mov r1, r4 <== NOT EXECUTED a000e58c: eb000ba8 bl a0011434 <_Objects_Close> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (
POSIX_Message_queue_Control_fd *the_mq_fd
)
{
_Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
a000e590: e59f0024 ldr r0, [pc, #36] ; a000e5bc <mq_close+0x70> <== NOT EXECUTED a000e594: e1a01004 mov r1, r4 <== NOT EXECUTED a000e598: eb000c4a bl a00116c8 <_Objects_Free> <== NOT EXECUTED
&_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
_POSIX_Message_queue_Free_fd( the_mq_fd );
_Thread_Enable_dispatch();
a000e59c: eb000fcb bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000e5a0: e1a00005 mov r0, r5 <== NOT EXECUTED a000e5a4: ea000003 b a000e5b8 <mq_close+0x6c> <== NOT EXECUTED
/*
* OBJECTS_REMOTE:
* OBJECTS_ERROR:
*/
rtems_set_errno_and_return_minus_one( EBADF );
a000e5a8: eb002827 bl a001864c <__errno> <== NOT EXECUTED a000e5ac: e3a03009 mov r3, #9 <== NOT EXECUTED a000e5b0: e5803000 str r3, [r0] <== NOT EXECUTED a000e5b4: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000e5b8: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000e614 <mq_getattr>:
int mq_getattr(
mqd_t mqdes,
struct mq_attr *mqstat
)
{
a000e614: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
POSIX_Message_queue_Control *the_mq;
POSIX_Message_queue_Control_fd *the_mq_fd;
Objects_Locations location;
CORE_message_queue_Attributes *the_mq_attr;
if ( !mqstat )
a000e618: e2514000 subs r4, r1, #0 <== NOT EXECUTED
int mq_getattr(
mqd_t mqdes,
struct mq_attr *mqstat
)
{
a000e61c: e1a03000 mov r3, r0 <== NOT EXECUTED
POSIX_Message_queue_Control *the_mq;
POSIX_Message_queue_Control_fd *the_mq_fd;
Objects_Locations location;
CORE_message_queue_Attributes *the_mq_attr;
if ( !mqstat )
a000e620: 1a000002 bne a000e630 <mq_getattr+0x1c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000e624: eb002808 bl a001864c <__errno> <== NOT EXECUTED a000e628: e3a03016 mov r3, #22 <== NOT EXECUTED a000e62c: ea000014 b a000e684 <mq_getattr+0x70> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
mqd_t id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control_fd *) _Objects_Get(
a000e630: e59f0058 ldr r0, [pc, #88] ; a000e690 <mq_getattr+0x7c> <== NOT EXECUTED a000e634: e1a01003 mov r1, r3 <== NOT EXECUTED a000e638: e1a0200d mov r2, sp <== NOT EXECUTED a000e63c: eb000c79 bl a0011828 <_Objects_Get> <== NOT EXECUTED
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
a000e640: e59d5000 ldr r5, [sp] <== NOT EXECUTED a000e644: e3550000 cmp r5, #0 <== NOT EXECUTED a000e648: 1a00000b bne a000e67c <mq_getattr+0x68> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_mq = the_mq_fd->Queue;
a000e64c: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED
* Return the old values.
*/
the_mq_attr = &the_mq->Message_queue.Attributes;
mqstat->mq_flags = the_mq_fd->oflag;
a000e650: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED a000e654: e5842000 str r2, [r4] <== NOT EXECUTED
mqstat->mq_msgsize = the_mq->Message_queue.maximum_message_size;
a000e658: e5932068 ldr r2, [r3, #104] ; 0x68 <== NOT EXECUTED a000e65c: e5842008 str r2, [r4, #8] <== NOT EXECUTED
mqstat->mq_maxmsg = the_mq->Message_queue.maximum_pending_messages;
a000e660: e5932060 ldr r2, [r3, #96] ; 0x60 <== NOT EXECUTED
mqstat->mq_curmsgs = the_mq->Message_queue.number_of_pending_messages;
a000e664: e5933064 ldr r3, [r3, #100] ; 0x64 <== NOT EXECUTED
the_mq_attr = &the_mq->Message_queue.Attributes;
mqstat->mq_flags = the_mq_fd->oflag;
mqstat->mq_msgsize = the_mq->Message_queue.maximum_message_size;
mqstat->mq_maxmsg = the_mq->Message_queue.maximum_pending_messages;
a000e668: e5842004 str r2, [r4, #4] <== NOT EXECUTED
mqstat->mq_curmsgs = the_mq->Message_queue.number_of_pending_messages;
a000e66c: e584300c str r3, [r4, #12] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000e670: eb000f96 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000e674: e1a00005 mov r0, r5 <== NOT EXECUTED a000e678: ea000003 b a000e68c <mq_getattr+0x78> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
a000e67c: eb0027f2 bl a001864c <__errno> <== NOT EXECUTED a000e680: e3a03009 mov r3, #9 <== NOT EXECUTED a000e684: e5803000 str r3, [r0] <== NOT EXECUTED a000e688: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000e68c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000e6b8 <mq_notify>:
int mq_notify(
mqd_t mqdes,
const struct sigevent *notification
)
{
a000e6b8: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
a000e6bc: e1a03000 mov r3, r0 <== NOT EXECUTED
a000e6c0: e1a04001 mov r4, r1 <== NOT EXECUTED
a000e6c4: e59f008c ldr r0, [pc, #140] ; a000e758 <mq_notify+0xa0> <== NOT EXECUTED
a000e6c8: e1a01003 mov r1, r3 <== NOT EXECUTED
a000e6cc: e1a0200d mov r2, sp <== NOT EXECUTED
a000e6d0: eb000c54 bl a0011828 <_Objects_Get> <== NOT EXECUTED
POSIX_Message_queue_Control *the_mq;
POSIX_Message_queue_Control_fd *the_mq_fd;
Objects_Locations location;
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
a000e6d4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000e6d8: e3530000 cmp r3, #0 <== NOT EXECUTED a000e6dc: 1a000018 bne a000e744 <mq_notify+0x8c> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_mq = the_mq_fd->Queue;
if ( notification ) {
a000e6e0: e3540000 cmp r4, #0 <== NOT EXECUTED
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
case OBJECTS_LOCAL:
the_mq = the_mq_fd->Queue;
a000e6e4: e590c010 ldr ip, [r0, #16] <== NOT EXECUTED
if ( notification ) {
a000e6e8: 0a000010 beq a000e730 <mq_notify+0x78> <== NOT EXECUTED
if ( _CORE_message_queue_Is_notify_enabled( &the_mq->Message_queue ) ) {
a000e6ec: e59c307c ldr r3, [ip, #124] ; 0x7c <== NOT EXECUTED a000e6f0: e3530000 cmp r3, #0 <== NOT EXECUTED a000e6f4: 0a000003 beq a000e708 <mq_notify+0x50> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000e6f8: eb000f74 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBUSY );
a000e6fc: eb0027d2 bl a001864c <__errno> <== NOT EXECUTED a000e700: e3a03010 mov r3, #16 <== NOT EXECUTED a000e704: ea000010 b a000e74c <mq_notify+0x94> <== NOT EXECUTED a000e708: e58c3080 str r3, [ip, #128] ; 0x80 <== NOT EXECUTED
}
_CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL );
the_mq->notification = *notification;
a000e70c: e28ce090 add lr, ip, #144 ; 0x90 <== NOT EXECUTED
a000e710: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a000e714: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a000e718: e5943000 ldr r3, [r4] <== NOT EXECUTED
a000e71c: e58cc080 str ip, [ip, #128] ; 0x80 <== NOT EXECUTED
a000e720: e58e3000 str r3, [lr] <== NOT EXECUTED
CORE_message_queue_Control *the_message_queue,
CORE_message_queue_Notify_Handler the_handler,
void *the_argument
)
{
the_message_queue->notify_handler = the_handler;
a000e724: e59f3030 ldr r3, [pc, #48] ; a000e75c <mq_notify+0xa4> <== NOT EXECUTED a000e728: e58c307c str r3, [ip, #124] ; 0x7c <== NOT EXECUTED a000e72c: ea000001 b a000e738 <mq_notify+0x80> <== NOT EXECUTED a000e730: e58c407c str r4, [ip, #124] ; 0x7c <== NOT EXECUTED
the_message_queue->notify_argument = the_argument;
a000e734: e58c4080 str r4, [ip, #128] ; 0x80 <== NOT EXECUTED
_CORE_message_queue_Set_notify( &the_mq->Message_queue, NULL, NULL );
}
_Thread_Enable_dispatch();
a000e738: eb000f64 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000e73c: e3a00000 mov r0, #0 <== NOT EXECUTED a000e740: ea000003 b a000e754 <mq_notify+0x9c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
a000e744: eb0027c0 bl a001864c <__errno> <== NOT EXECUTED a000e748: e3a03009 mov r3, #9 <== NOT EXECUTED a000e74c: e5803000 str r3, [r0] <== NOT EXECUTED a000e750: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000e754: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000e760 <mq_open>:
int oflag,
...
/* mode_t mode, */
/* struct mq_attr attr */
)
{
a000e760: e92d000e push {r1, r2, r3} <== NOT EXECUTED
a000e764: e92d47ff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr}<== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000e768: e59f3164 ldr r3, [pc, #356] ; a000e8d4 <mq_open+0x174> <== NOT EXECUTED a000e76c: e59d7030 ldr r7, [sp, #48] ; 0x30 <== NOT EXECUTED a000e770: e1a0a000 mov sl, r0 <== NOT EXECUTED a000e774: e5932000 ldr r2, [r3] <== NOT EXECUTED a000e778: e2822001 add r2, r2, #1 <== NOT EXECUTED a000e77c: e5832000 str r2, [r3] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *
_POSIX_Message_queue_Allocate_fd( void )
{
return (POSIX_Message_queue_Control_fd *)
_Objects_Allocate( &_POSIX_Message_queue_Information_fds );
a000e780: e59f5150 ldr r5, [pc, #336] ; a000e8d8 <mq_open+0x178> <== NOT EXECUTED
POSIX_Message_queue_Control_fd *the_mq_fd;
Objects_Locations location;
_Thread_Disable_dispatch();
if ( oflag & O_CREAT ) {
a000e784: e2179c02 ands r9, r7, #512 ; 0x200 <== NOT EXECUTED
va_start(arg, oflag);
mode = (mode_t) va_arg( arg, unsigned int );
attr = (struct mq_attr *) va_arg( arg, struct mq_attr * );
a000e788: 128d303c addne r3, sp, #60 ; 0x3c <== NOT EXECUTED a000e78c: e1a00005 mov r0, r5 <== NOT EXECUTED a000e790: 158d300c strne r3, [sp, #12] <== NOT EXECUTED a000e794: 159d8038 ldrne r8, [sp, #56] ; 0x38 <== NOT EXECUTED
/* struct mq_attr attr */
)
{
va_list arg;
mode_t mode;
struct mq_attr *attr = NULL;
a000e798: 01a08009 moveq r8, r9 <== NOT EXECUTED a000e79c: eb000b02 bl a00113ac <_Objects_Allocate> <== NOT EXECUTED
attr = (struct mq_attr *) va_arg( arg, struct mq_attr * );
va_end(arg);
}
the_mq_fd = _POSIX_Message_queue_Allocate_fd();
if ( !the_mq_fd ) {
a000e7a0: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000e7a4: 1a000003 bne a000e7b8 <mq_open+0x58> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000e7a8: eb000f48 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENFILE );
a000e7ac: eb0027a6 bl a001864c <__errno> <== NOT EXECUTED a000e7b0: e3a03017 mov r3, #23 <== NOT EXECUTED a000e7b4: ea00001a b a000e824 <mq_open+0xc4> <== NOT EXECUTED
} the_mq_fd->oflag = oflag;
a000e7b8: e5847014 str r7, [r4, #20] <== NOT EXECUTED
status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id );
a000e7bc: e1a0000a mov r0, sl <== NOT EXECUTED a000e7c0: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000e7c4: eb001a7a bl a00151b4 <_POSIX_Message_queue_Name_to_id> <== NOT EXECUTED
* If the name to id translation worked, then the message queue exists
* and we can just return a pointer to the id. Otherwise we may
* need to check to see if this is a "message queue does not exist"
* or some other miscellaneous error on the name.
*/
if ( status ) {
a000e7c8: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000e7cc: 0a00000b beq a000e800 <mq_open+0xa0> <== NOT EXECUTED
/*
* Unless provided a valid name that did not already exist
* and we are willing to create then it is an error.
*/
if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {
a000e7d0: e3560002 cmp r6, #2 <== NOT EXECUTED a000e7d4: 1a000001 bne a000e7e0 <mq_open+0x80> <== NOT EXECUTED a000e7d8: e3590000 cmp r9, #0 <== NOT EXECUTED a000e7dc: 1a000021 bne a000e868 <mq_open+0x108> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (
POSIX_Message_queue_Control_fd *the_mq_fd
)
{
_Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
a000e7e0: e59f00f0 ldr r0, [pc, #240] ; a000e8d8 <mq_open+0x178> <== NOT EXECUTED a000e7e4: e1a01004 mov r1, r4 <== NOT EXECUTED a000e7e8: eb000bb6 bl a00116c8 <_Objects_Free> <== NOT EXECUTED
_POSIX_Message_queue_Free_fd( the_mq_fd );
_Thread_Enable_dispatch();
a000e7ec: eb000f37 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one_cast( status, mqd_t );
a000e7f0: eb002795 bl a001864c <__errno> <== NOT EXECUTED a000e7f4: e5806000 str r6, [r0] <== NOT EXECUTED a000e7f8: e3e00000 mvn r0, #0 <== NOT EXECUTED a000e7fc: ea000030 b a000e8c4 <mq_open+0x164> <== NOT EXECUTED
} else { /* name -> ID translation succeeded */
/*
* Check for existence with creation.
*/
if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {
a000e800: e2077c0a and r7, r7, #2560 ; 0xa00 <== NOT EXECUTED a000e804: e3570c0a cmp r7, #2560 ; 0xa00 <== NOT EXECUTED a000e808: 1a000007 bne a000e82c <mq_open+0xcc> <== NOT EXECUTED a000e80c: e1a00005 mov r0, r5 <== NOT EXECUTED a000e810: e1a01004 mov r1, r4 <== NOT EXECUTED a000e814: eb000bab bl a00116c8 <_Objects_Free> <== NOT EXECUTED
_POSIX_Message_queue_Free_fd( the_mq_fd );
_Thread_Enable_dispatch();
a000e818: eb000f2c bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one_cast( EEXIST, mqd_t );
a000e81c: eb00278a bl a001864c <__errno> <== NOT EXECUTED a000e820: e3a03011 mov r3, #17 <== NOT EXECUTED a000e824: e5803000 str r3, [r0] <== NOT EXECUTED a000e828: eafffff2 b a000e7f8 <mq_open+0x98> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control *)
_Objects_Get( &_POSIX_Message_queue_Information, id, location );
a000e82c: e1a0200d mov r2, sp <== NOT EXECUTED a000e830: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED a000e834: e59f00a0 ldr r0, [pc, #160] ; a000e8dc <mq_open+0x17c> <== NOT EXECUTED a000e838: eb000bfa bl a0011828 <_Objects_Get> <== NOT EXECUTED
/*
* In this case we need to do an ID->pointer conversion to
* check the mode.
*/
the_mq = _POSIX_Message_queue_Get( the_mq_id, &location );
the_mq->open_count += 1;
a000e83c: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
_Objects_Set_local_object(
a000e840: e1d420b8 ldrh r2, [r4, #8] <== NOT EXECUTED
/*
* In this case we need to do an ID->pointer conversion to
* check the mode.
*/
the_mq = _POSIX_Message_queue_Get( the_mq_id, &location );
a000e844: e58d0004 str r0, [sp, #4] <== NOT EXECUTED
the_mq->open_count += 1;
a000e848: e2833001 add r3, r3, #1 <== NOT EXECUTED a000e84c: e5803018 str r3, [r0, #24] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000e850: e595301c ldr r3, [r5, #28] <== NOT EXECUTED
the_mq_fd->Queue = the_mq;
a000e854: e5840010 str r0, [r4, #16] <== NOT EXECUTED a000e858: e7834102 str r4, [r3, r2, lsl #2] <== NOT EXECUTED
the_object
);
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/* ASSERT: information->is_string */
the_object->name.name_p = name;
a000e85c: e584600c str r6, [r4, #12] <== NOT EXECUTED
_Objects_Open_string(
&_POSIX_Message_queue_Information_fds,
&the_mq_fd->Object,
NULL
);
_Thread_Enable_dispatch();
a000e860: eb000f1a bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED a000e864: ea000014 b a000e8bc <mq_open+0x15c> <== NOT EXECUTED
/*
* At this point, the message queue does not exist and everything has been
* checked. We should go ahead and create a message queue.
*/
status = _POSIX_Message_queue_Create_support(
a000e868: e1a0000a mov r0, sl <== NOT EXECUTED a000e86c: e3a01001 mov r1, #1 <== NOT EXECUTED a000e870: e1a02008 mov r2, r8 <== NOT EXECUTED a000e874: e28d3004 add r3, sp, #4 <== NOT EXECUTED a000e878: eb0019f8 bl a0015060 <_POSIX_Message_queue_Create_support> <== NOT EXECUTED
);
/*
* errno was set by Create_support, so don't set it again.
*/
if ( status == -1 ) {
a000e87c: e3700001 cmn r0, #1 <== NOT EXECUTED
/*
* At this point, the message queue does not exist and everything has been
* checked. We should go ahead and create a message queue.
*/
status = _POSIX_Message_queue_Create_support(
a000e880: e1a06000 mov r6, r0 <== NOT EXECUTED
);
/*
* errno was set by Create_support, so don't set it again.
*/
if ( status == -1 ) {
a000e884: 1a000005 bne a000e8a0 <mq_open+0x140> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (
POSIX_Message_queue_Control_fd *the_mq_fd
)
{
_Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
a000e888: e1a00005 mov r0, r5 <== NOT EXECUTED a000e88c: e1a01004 mov r1, r4 <== NOT EXECUTED a000e890: eb000b8c bl a00116c8 <_Objects_Free> <== NOT EXECUTED
_POSIX_Message_queue_Free_fd( the_mq_fd );
_Thread_Enable_dispatch();
a000e894: eb000f0d bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return (mqd_t) -1;
a000e898: e1a00006 mov r0, r6 <== NOT EXECUTED a000e89c: ea000008 b a000e8c4 <mq_open+0x164> <== NOT EXECUTED
}
the_mq_fd->Queue = the_mq;
a000e8a0: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
const char *name
)
{
_Objects_Set_local_object(
a000e8a4: e1d420b8 ldrh r2, [r4, #8] <== NOT EXECUTED a000e8a8: e5843010 str r3, [r4, #16] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000e8ac: e595301c ldr r3, [r5, #28] <== NOT EXECUTED a000e8b0: e7834102 str r4, [r3, r2, lsl #2] <== NOT EXECUTED
the_object
);
#if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)
/* ASSERT: information->is_string */
the_object->name.name_p = name;
a000e8b4: e3a03000 mov r3, #0 <== NOT EXECUTED a000e8b8: e584300c str r3, [r4, #12] <== NOT EXECUTED
&_POSIX_Message_queue_Information_fds,
&the_mq_fd->Object,
NULL
);
_Thread_Enable_dispatch();
a000e8bc: eb000f03 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return (mqd_t) the_mq_fd->Object.id;
a000e8c0: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED
}
a000e8c4: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a000e8c8: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED
a000e8cc: e28dd00c add sp, sp, #12 <== NOT EXECUTED
a000e8d0: e12fff1e bx lr <== NOT EXECUTED
a000e8e0 <mq_receive>:
mqd_t mqdes,
char *msg_ptr,
size_t msg_len,
unsigned int *msg_prio
)
{
a000e8e0: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
return _POSIX_Message_queue_Receive_support(
a000e8e4: e3a0c001 mov ip, #1 <== NOT EXECUTED a000e8e8: e58dc000 str ip, [sp] <== NOT EXECUTED a000e8ec: e3a0c000 mov ip, #0 <== NOT EXECUTED a000e8f0: e58dc004 str ip, [sp, #4] <== NOT EXECUTED a000e8f4: eb000000 bl a000e8fc <_POSIX_Message_queue_Receive_support><== NOT EXECUTED
msg_len,
msg_prio,
true,
THREAD_QUEUE_WAIT_FOREVER
);
}
a000e8f8: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a000ea0c <mq_send>:
mqd_t mqdes,
const char *msg_ptr,
size_t msg_len,
unsigned int msg_prio
)
{
a000ea0c: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
return _POSIX_Message_queue_Send_support(
a000ea10: e3a0c001 mov ip, #1 <== NOT EXECUTED a000ea14: e58dc000 str ip, [sp] <== NOT EXECUTED a000ea18: e3a0c000 mov ip, #0 <== NOT EXECUTED a000ea1c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED a000ea20: eb000000 bl a000ea28 <_POSIX_Message_queue_Send_support> <== NOT EXECUTED
msg_len,
msg_prio,
true,
THREAD_QUEUE_WAIT_FOREVER
);
}
a000ea24: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a000eb28 <mq_setattr>:
int mq_setattr(
mqd_t mqdes,
const struct mq_attr *mqstat,
struct mq_attr *omqstat
)
{
a000eb28: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
POSIX_Message_queue_Control_fd *the_mq_fd;
CORE_message_queue_Control *the_core_mq;
Objects_Locations location;
if ( !mqstat )
a000eb2c: e2515000 subs r5, r1, #0 <== NOT EXECUTED
int mq_setattr(
mqd_t mqdes,
const struct mq_attr *mqstat,
struct mq_attr *omqstat
)
{
a000eb30: e1a03000 mov r3, r0 <== NOT EXECUTED a000eb34: e1a04002 mov r4, r2 <== NOT EXECUTED
POSIX_Message_queue_Control_fd *the_mq_fd;
CORE_message_queue_Control *the_core_mq;
Objects_Locations location;
if ( !mqstat )
a000eb38: 1a000002 bne a000eb48 <mq_setattr+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000eb3c: eb0026c2 bl a001864c <__errno> <== NOT EXECUTED a000eb40: e3a03016 mov r3, #22 <== NOT EXECUTED a000eb44: ea000018 b a000ebac <mq_setattr+0x84> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
mqd_t id,
Objects_Locations *location
)
{
return (POSIX_Message_queue_Control_fd *) _Objects_Get(
a000eb48: e1a01003 mov r1, r3 <== NOT EXECUTED a000eb4c: e59f0064 ldr r0, [pc, #100] ; a000ebb8 <mq_setattr+0x90> <== NOT EXECUTED a000eb50: e1a0200d mov r2, sp <== NOT EXECUTED a000eb54: eb000b33 bl a0011828 <_Objects_Get> <== NOT EXECUTED
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
a000eb58: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000eb5c: e3530000 cmp r3, #0 <== NOT EXECUTED a000eb60: 1a00000f bne a000eba4 <mq_setattr+0x7c> <== NOT EXECUTED
/*
* Return the old values.
*/
if ( omqstat ) {
a000eb64: e3540000 cmp r4, #0 <== NOT EXECUTED
the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );
switch ( location ) {
case OBJECTS_LOCAL:
the_core_mq = &the_mq_fd->Queue->Message_queue;
a000eb68: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED
/*
* Return the old values.
*/
if ( omqstat ) {
a000eb6c: 0a000007 beq a000eb90 <mq_setattr+0x68> <== NOT EXECUTED
omqstat->mq_flags = the_mq_fd->oflag;
a000eb70: e5902014 ldr r2, [r0, #20] <== NOT EXECUTED a000eb74: e5842000 str r2, [r4] <== NOT EXECUTED
omqstat->mq_msgsize = the_core_mq->maximum_message_size;
a000eb78: e5932068 ldr r2, [r3, #104] ; 0x68 <== NOT EXECUTED a000eb7c: e5842008 str r2, [r4, #8] <== NOT EXECUTED
omqstat->mq_maxmsg = the_core_mq->maximum_pending_messages;
a000eb80: e5932060 ldr r2, [r3, #96] ; 0x60 <== NOT EXECUTED
omqstat->mq_curmsgs = the_core_mq->number_of_pending_messages;
a000eb84: e5933064 ldr r3, [r3, #100] ; 0x64 <== NOT EXECUTED
*/
if ( omqstat ) {
omqstat->mq_flags = the_mq_fd->oflag;
omqstat->mq_msgsize = the_core_mq->maximum_message_size;
omqstat->mq_maxmsg = the_core_mq->maximum_pending_messages;
a000eb88: e5842004 str r2, [r4, #4] <== NOT EXECUTED
omqstat->mq_curmsgs = the_core_mq->number_of_pending_messages;
a000eb8c: e584300c str r3, [r4, #12] <== NOT EXECUTED
}
the_mq_fd->oflag = mqstat->mq_flags;
a000eb90: e5953000 ldr r3, [r5] <== NOT EXECUTED a000eb94: e5803014 str r3, [r0, #20] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000eb98: eb000e4c bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000eb9c: e3a00000 mov r0, #0 <== NOT EXECUTED a000eba0: ea000003 b a000ebb4 <mq_setattr+0x8c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EBADF );
a000eba4: eb0026a8 bl a001864c <__errno> <== NOT EXECUTED a000eba8: e3a03009 mov r3, #9 <== NOT EXECUTED a000ebac: e5803000 str r3, [r0] <== NOT EXECUTED a000ebb0: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000ebb4: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000ebbc <mq_timedreceive>:
char *msg_ptr,
size_t msg_len,
unsigned int *msg_prio,
const struct timespec *abstime
)
{
a000ebbc: e92d40f7 push {r0, r1, r2, r4, r5, r6, r7, lr} <== NOT EXECUTED
a000ebc0: e1a05000 mov r5, r0 <== NOT EXECUTED
a000ebc4: e1a04001 mov r4, r1 <== NOT EXECUTED
* * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
a000ebc8: e59d0020 ldr r0, [sp, #32] <== NOT EXECUTED a000ebcc: e28d1008 add r1, sp, #8 <== NOT EXECUTED
char *msg_ptr,
size_t msg_len,
unsigned int *msg_prio,
const struct timespec *abstime
)
{
a000ebd0: e1a06003 mov r6, r3 <== NOT EXECUTED a000ebd4: e1a07002 mov r7, r2 <== NOT EXECUTED
* * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
a000ebd8: eb00003d bl a000ecd4 <_POSIX_Absolute_timeout_to_ticks> <== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
return _POSIX_Message_queue_Receive_support(
a000ebdc: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED
a000ebe0: e3500003 cmp r0, #3 <== NOT EXECUTED
a000ebe4: 13a00000 movne r0, #0 <== NOT EXECUTED
a000ebe8: 03a00001 moveq r0, #1 <== NOT EXECUTED
a000ebec: e88d0009 stm sp, {r0, r3} <== NOT EXECUTED
a000ebf0: e1a00005 mov r0, r5 <== NOT EXECUTED
a000ebf4: e1a01004 mov r1, r4 <== NOT EXECUTED
a000ebf8: e1a02007 mov r2, r7 <== NOT EXECUTED
a000ebfc: e1a03006 mov r3, r6 <== NOT EXECUTED
a000ec00: ebffff3d bl a000e8fc <_POSIX_Message_queue_Receive_support><== NOT EXECUTED
msg_len,
msg_prio,
do_wait,
ticks
);
}
a000ec04: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000ec08 <mq_timedsend>:
const char *msg_ptr,
size_t msg_len,
unsigned int msg_prio,
const struct timespec *abstime
)
{
a000ec08: e92d40f7 push {r0, r1, r2, r4, r5, r6, r7, lr} <== NOT EXECUTED
a000ec0c: e1a05000 mov r5, r0 <== NOT EXECUTED
a000ec10: e1a04001 mov r4, r1 <== NOT EXECUTED
* * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
a000ec14: e59d0020 ldr r0, [sp, #32] <== NOT EXECUTED a000ec18: e28d1008 add r1, sp, #8 <== NOT EXECUTED
const char *msg_ptr,
size_t msg_len,
unsigned int msg_prio,
const struct timespec *abstime
)
{
a000ec1c: e1a06003 mov r6, r3 <== NOT EXECUTED a000ec20: e1a07002 mov r7, r2 <== NOT EXECUTED
* * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
a000ec24: eb00002a bl a000ecd4 <_POSIX_Absolute_timeout_to_ticks> <== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
return _POSIX_Message_queue_Send_support(
a000ec28: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED
a000ec2c: e3500003 cmp r0, #3 <== NOT EXECUTED
a000ec30: 13a00000 movne r0, #0 <== NOT EXECUTED
a000ec34: 03a00001 moveq r0, #1 <== NOT EXECUTED
a000ec38: e88d0009 stm sp, {r0, r3} <== NOT EXECUTED
a000ec3c: e1a00005 mov r0, r5 <== NOT EXECUTED
a000ec40: e1a01004 mov r1, r4 <== NOT EXECUTED
a000ec44: e1a02007 mov r2, r7 <== NOT EXECUTED
a000ec48: e1a03006 mov r3, r6 <== NOT EXECUTED
a000ec4c: ebffff75 bl a000ea28 <_POSIX_Message_queue_Send_support> <== NOT EXECUTED
msg_len,
msg_prio,
do_wait,
ticks
);
}
a000ec50: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000ec64 <mq_unlink>:
a000ec64: e59f3060 ldr r3, [pc, #96] ; a000eccc <mq_unlink+0x68> <== NOT EXECUTED
*/
int mq_unlink(
const char *name
)
{
a000ec68: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a000ec6c: e5932000 ldr r2, [r3] <== NOT EXECUTED
a000ec70: e2822001 add r2, r2, #1 <== NOT EXECUTED
a000ec74: e5832000 str r2, [r3] <== NOT EXECUTED
register POSIX_Message_queue_Control *the_mq;
Objects_Id the_mq_id;
_Thread_Disable_dispatch();
status = _POSIX_Message_queue_Name_to_id( name, &the_mq_id );
a000ec78: e1a0100d mov r1, sp <== NOT EXECUTED a000ec7c: eb00194c bl a00151b4 <_POSIX_Message_queue_Name_to_id> <== NOT EXECUTED
if ( status != 0 ) {
a000ec80: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000ec84: 0a000004 beq a000ec9c <mq_unlink+0x38> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000ec88: eb000e10 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( status );
a000ec8c: eb00266e bl a001864c <__errno> <== NOT EXECUTED a000ec90: e5804000 str r4, [r0] <== NOT EXECUTED a000ec94: e3e00000 mvn r0, #0 <== NOT EXECUTED a000ec98: ea00000a b a000ecc8 <mq_unlink+0x64> <== NOT EXECUTED
_POSIX_Message_queue_Namespace_remove( the_mq );
_POSIX_Message_queue_Delete( the_mq );
_Thread_Enable_dispatch();
return 0;
}
a000ec9c: e59f002c ldr r0, [pc, #44] ; a000ecd0 <mq_unlink+0x6c> <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return NULL;
#endif
return information->local_table[ index ];
a000eca0: e1dd20b0 ldrh r2, [sp] <== NOT EXECUTED a000eca4: e590301c ldr r3, [r0, #28] <== NOT EXECUTED
if ( status != 0 ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( status );
}
the_mq = (POSIX_Message_queue_Control *) _Objects_Get_local_object(
a000eca8: e7935102 ldr r5, [r3, r2, lsl #2] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Namespace_remove (
POSIX_Message_queue_Control *the_mq
)
{
_Objects_Namespace_remove(
a000ecac: e1a01005 mov r1, r5 <== NOT EXECUTED
&_POSIX_Message_queue_Information,
_Objects_Get_index( the_mq_id )
);
the_mq->linked = false;
a000ecb0: e5c54015 strb r4, [r5, #21] <== NOT EXECUTED a000ecb4: eb000b2d bl a0011970 <_Objects_Namespace_remove> <== NOT EXECUTED
_POSIX_Message_queue_Namespace_remove( the_mq ); _POSIX_Message_queue_Delete( the_mq );
a000ecb8: e1a00005 mov r0, r5 <== NOT EXECUTED a000ecbc: ebfffe3f bl a000e5c0 <_POSIX_Message_queue_Delete> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000ecc0: eb000e02 bl a00124d0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000ecc4: e1a00004 mov r0, r4 <== NOT EXECUTED
}
a000ecc8: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a00218d8 <nanosleep>:
int nanosleep(
const struct timespec *rqtp,
struct timespec *rmtp
)
{
a00218d8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a00218dc: e1a05000 mov r5, r0 <== NOT EXECUTED
a00218e0: e1a04001 mov r4, r1 <== NOT EXECUTED
* Return EINVAL if the delay interval is negative. * * NOTE: This behavior is beyond the POSIX specification. * FSU and GNU/Linux pthreads shares this behavior. */ if ( !_Timespec_Is_valid( rqtp ) )
a00218e4: eb00005d bl a0021a60 <_Timespec_Is_valid> <== NOT EXECUTED a00218e8: e3500000 cmp r0, #0 <== NOT EXECUTED a00218ec: 1a000002 bne a00218fc <nanosleep+0x24> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a00218f0: ebffc458 bl a0012a58 <__errno> <== NOT EXECUTED a00218f4: e3a03016 mov r3, #22 <== NOT EXECUTED a00218f8: ea00002d b a00219b4 <nanosleep+0xdc> <== NOT EXECUTED
ticks = _Timespec_To_ticks( rqtp );
a00218fc: e1a00005 mov r0, r5 <== NOT EXECUTED a0021900: ebffbc99 bl a0010b6c <_Timespec_To_ticks> <== NOT EXECUTED
* A nanosleep for zero time is implemented as a yield.
* This behavior is also beyond the POSIX specification but is
* consistent with the RTEMS API and yields desirable behavior.
*/
if ( !ticks ) {
a0021904: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0021908: 1a000009 bne a0021934 <nanosleep+0x5c> <== NOT EXECUTED
_Thread_Disable_dispatch();
a002190c: ebffffeb bl a00218c0 <_Thread_Disable_dispatch> <== NOT EXECUTED
* always operates on the scheduler that 'owns' the currently executing
* thread.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void )
{
_Scheduler.Operations.yield();
a0021910: e59f30b4 ldr r3, [pc, #180] ; a00219cc <nanosleep+0xf4> <== NOT EXECUTED a0021914: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a0021918: e12fff33 blx r3 <== NOT EXECUTED
_Scheduler_Yield();
_Thread_Enable_dispatch();
a002191c: ebffaa47 bl a000c240 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( rmtp ) {
a0021920: e3540000 cmp r4, #0 <== NOT EXECUTED
rmtp->tv_sec = 0;
a0021924: 15845000 strne r5, [r4] <== NOT EXECUTED
rmtp->tv_nsec = 0;
a0021928: 15845004 strne r5, [r4, #4] <== NOT EXECUTED
if ( !ticks ) {
_Thread_Disable_dispatch();
_Scheduler_Yield();
_Thread_Enable_dispatch();
if ( rmtp ) {
a002192c: 1a000024 bne a00219c4 <nanosleep+0xec> <== NOT EXECUTED a0021930: ea000022 b a00219c0 <nanosleep+0xe8> <== NOT EXECUTED
/*
* Block for the desired amount of time
*/
_Thread_Disable_dispatch();
_Thread_Set_state(
a0021934: e59f6094 ldr r6, [pc, #148] ; a00219d0 <nanosleep+0xf8> <== NOT EXECUTED
}
/*
* Block for the desired amount of time
*/
_Thread_Disable_dispatch();
a0021938: ebffffe0 bl a00218c0 <_Thread_Disable_dispatch> <== NOT EXECUTED
_Thread_Set_state(
a002193c: e5960004 ldr r0, [r6, #4] <== NOT EXECUTED a0021940: e3a01281 mov r1, #268435464 ; 0x10000008 <== NOT EXECUTED a0021944: ebffac4c bl a000ca7c <_Thread_Set_state> <== NOT EXECUTED
_Thread_Executing,
STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Watchdog_Initialize(
&_Thread_Executing->Timer,
a0021948: e5961004 ldr r1, [r6, #4] <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a002194c: e59f0080 ldr r0, [pc, #128] ; a00219d4 <nanosleep+0xfc> <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a0021950: e3a03000 mov r3, #0 <== NOT EXECUTED
_Thread_Disable_dispatch();
_Thread_Set_state(
_Thread_Executing,
STATES_DELAYING | STATES_INTERRUPTIBLE_BY_SIGNAL
);
_Watchdog_Initialize(
a0021954: e5912008 ldr r2, [r1, #8] <== NOT EXECUTED a0021958: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED
the_watchdog->routine = routine;
a002195c: e5810064 str r0, [r1, #100] ; 0x64 <== NOT EXECUTED
the_watchdog->id = id;
a0021960: e5812068 str r2, [r1, #104] ; 0x68 <== NOT EXECUTED
the_watchdog->user_data = user_data;
a0021964: e581306c str r3, [r1, #108] ; 0x6c <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a0021968: e5815054 str r5, [r1, #84] ; 0x54 <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a002196c: e59f0064 ldr r0, [pc, #100] ; a00219d8 <nanosleep+0x100> <== NOT EXECUTED a0021970: e2811048 add r1, r1, #72 ; 0x48 <== NOT EXECUTED a0021974: ebffad9c bl a000cfec <_Watchdog_Insert> <== NOT EXECUTED
_Thread_Delay_ended,
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );
_Thread_Enable_dispatch();
a0021978: ebffaa30 bl a000c240 <_Thread_Enable_dispatch> <== NOT EXECUTED
/* calculate time remaining */
if ( rmtp ) {
a002197c: e3540000 cmp r4, #0 <== NOT EXECUTED a0021980: 0a00000e beq a00219c0 <nanosleep+0xe8> <== NOT EXECUTED
ticks -=
_Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time;
a0021984: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED
_Timespec_From_ticks( ticks, rmtp );
a0021988: e1a01004 mov r1, r4 <== NOT EXECUTED
/* calculate time remaining */
if ( rmtp ) {
ticks -=
_Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time;
a002198c: e593205c ldr r2, [r3, #92] ; 0x5c <== NOT EXECUTED a0021990: e5933060 ldr r3, [r3, #96] ; 0x60 <== NOT EXECUTED a0021994: e0633002 rsb r3, r3, r2 <== NOT EXECUTED
_Thread_Enable_dispatch();
/* calculate time remaining */
if ( rmtp ) {
ticks -=
a0021998: e0835005 add r5, r3, r5 <== NOT EXECUTED
_Thread_Executing->Timer.stop_time - _Thread_Executing->Timer.start_time;
_Timespec_From_ticks( ticks, rmtp );
a002199c: e1a00005 mov r0, r5 <== NOT EXECUTED a00219a0: eb00001c bl a0021a18 <_Timespec_From_ticks> <== NOT EXECUTED
*/
#if defined(RTEMS_POSIX_API)
/*
* If there is time remaining, then we were interrupted by a signal.
*/
if ( ticks )
a00219a4: e3550000 cmp r5, #0 <== NOT EXECUTED a00219a8: 0a000005 beq a00219c4 <nanosleep+0xec> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINTR );
a00219ac: ebffc429 bl a0012a58 <__errno> <== NOT EXECUTED a00219b0: e3a03004 mov r3, #4 <== NOT EXECUTED a00219b4: e5803000 str r3, [r0] <== NOT EXECUTED a00219b8: e3e05000 mvn r5, #0 <== NOT EXECUTED a00219bc: ea000000 b a00219c4 <nanosleep+0xec> <== NOT EXECUTED
#endif
}
return 0;
a00219c0: e1a05004 mov r5, r4 <== NOT EXECUTED
}
a00219c4: e1a00005 mov r0, r5 <== NOT EXECUTED
a00219c8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0006a60 <newlib_create_hook>:
rtems_tcb *creating_task
)
{
struct _reent *ptr;
if (_Thread_libc_reent == 0)
a0006a60: e59f3194 ldr r3, [pc, #404] ; a0006bfc <newlib_create_hook+0x19c>
*/
bool newlib_create_hook(
rtems_tcb *current_task __attribute__((unused)),
rtems_tcb *creating_task
)
{
a0006a64: e92d40f0 push {r4, r5, r6, r7, lr}
struct _reent *ptr;
if (_Thread_libc_reent == 0)
a0006a68: e5932000 ldr r2, [r3]
*/
bool newlib_create_hook(
rtems_tcb *current_task __attribute__((unused)),
rtems_tcb *creating_task
)
{
a0006a6c: e1a07001 mov r7, r1
ptr = (struct _reent *) calloc(1, sizeof(struct _reent));
#else
/* It is OK to allocate from the workspace because these
* hooks run with thread dispatching disabled.
*/
ptr = (struct _reent *) _Workspace_Allocate(sizeof(struct _reent));
a0006a70: e59f0188 ldr r0, [pc, #392] ; a0006c00 <newlib_create_hook+0x1a0>
rtems_tcb *creating_task
)
{
struct _reent *ptr;
if (_Thread_libc_reent == 0)
a0006a74: e3520000 cmp r2, #0
{
_REENT = _global_impure_ptr;
a0006a78: 059f1184 ldreq r1, [pc, #388] ; a0006c04 <newlib_create_hook+0x1a4> a0006a7c: 059f2184 ldreq r2, [pc, #388] ; a0006c08 <newlib_create_hook+0x1a8> a0006a80: 05911000 ldreq r1, [r1]
RTEMS_INLINE_ROUTINE void _Thread_Set_libc_reent (
struct _reent **libc_reent
)
{
_Thread_libc_reent = libc_reent;
a0006a84: 05832000 streq r2, [r3] a0006a88: 05821000 streq r1, [r2]
ptr = (struct _reent *) calloc(1, sizeof(struct _reent));
#else
/* It is OK to allocate from the workspace because these
* hooks run with thread dispatching disabled.
*/
ptr = (struct _reent *) _Workspace_Allocate(sizeof(struct _reent));
a0006a8c: eb00176c bl a000c844 <_Workspace_Allocate>
#endif
if (ptr) {
a0006a90: e2504000 subs r4, r0, #0
a0006a94: 0a000056 beq a0006bf4 <newlib_create_hook+0x194>
_REENT_INIT_PTR((ptr)); /* GCC extension: structure constants */
a0006a98: e3a05000 mov r5, #0 a0006a9c: e1a06004 mov r6, r4 a0006aa0: e2843fd5 add r3, r4, #852 ; 0x354 a0006aa4: e48652ec str r5, [r6], #748 ; 0x2ec a0006aa8: e5843008 str r3, [r4, #8] a0006aac: e2843fef add r3, r4, #956 ; 0x3bc a0006ab0: e584300c str r3, [r4, #12] a0006ab4: e1a01005 mov r1, r5 a0006ab8: e3a02019 mov r2, #25 a0006abc: e5846004 str r6, [r4, #4] a0006ac0: e5845010 str r5, [r4, #16] a0006ac4: e2840014 add r0, r4, #20 a0006ac8: eb002bcc bl a0011a00 <memset> a0006acc: e59f3138 ldr r3, [pc, #312] ; a0006c0c <newlib_create_hook+0x1ac> a0006ad0: e1a01005 mov r1, r5 a0006ad4: e3a02024 mov r2, #36 ; 0x24 a0006ad8: e5843034 str r3, [r4, #52] ; 0x34 a0006adc: e5845030 str r5, [r4, #48] ; 0x30 a0006ae0: e5845038 str r5, [r4, #56] ; 0x38 a0006ae4: e584503c str r5, [r4, #60] ; 0x3c a0006ae8: e5845040 str r5, [r4, #64] ; 0x40 a0006aec: e5845044 str r5, [r4, #68] ; 0x44 a0006af0: e5845048 str r5, [r4, #72] ; 0x48 a0006af4: e584504c str r5, [r4, #76] ; 0x4c a0006af8: e5845050 str r5, [r4, #80] ; 0x50 a0006afc: e5845054 str r5, [r4, #84] ; 0x54 a0006b00: e5845058 str r5, [r4, #88] ; 0x58 a0006b04: e584505c str r5, [r4, #92] ; 0x5c a0006b08: e5c45060 strb r5, [r4, #96] ; 0x60 a0006b0c: e284007c add r0, r4, #124 ; 0x7c a0006b10: eb002bba bl a0011a00 <memset> a0006b14: e3a02001 mov r2, #1 a0006b18: e3a03000 mov r3, #0 a0006b1c: e58420a4 str r2, [r4, #164] ; 0xa4 a0006b20: e58430a8 str r3, [r4, #168] ; 0xa8 a0006b24: e59f30e4 ldr r3, [pc, #228] ; a0006c10 <newlib_create_hook+0x1b0> a0006b28: e58450a0 str r5, [r4, #160] ; 0xa0 a0006b2c: e58450bc str r5, [r4, #188] ; 0xbc a0006b30: e1c43abc strh r3, [r4, #172] ; 0xac a0006b34: e59f30d8 ldr r3, [pc, #216] ; a0006c14 <newlib_create_hook+0x1b4> a0006b38: e58450c0 str r5, [r4, #192] ; 0xc0 a0006b3c: e58450c4 str r5, [r4, #196] ; 0xc4 a0006b40: e1c43abe strh r3, [r4, #174] ; 0xae a0006b44: e59f30cc ldr r3, [pc, #204] ; a0006c18 <newlib_create_hook+0x1b8> a0006b48: e58450c8 str r5, [r4, #200] ; 0xc8 a0006b4c: e58450cc str r5, [r4, #204] ; 0xcc a0006b50: e1c43bb0 strh r3, [r4, #176] ; 0xb0 a0006b54: e59f30c0 ldr r3, [pc, #192] ; a0006c1c <newlib_create_hook+0x1bc> a0006b58: e58450d0 str r5, [r4, #208] ; 0xd0 a0006b5c: e58450f8 str r5, [r4, #248] ; 0xf8 a0006b60: e1c43bb2 strh r3, [r4, #178] ; 0xb2 a0006b64: e2433d1e sub r3, r3, #1920 ; 0x780 a0006b68: e2433001 sub r3, r3, #1 a0006b6c: e1c43bb4 strh r3, [r4, #180] ; 0xb4 a0006b70: e3a03005 mov r3, #5 a0006b74: e1c43bb6 strh r3, [r4, #182] ; 0xb6 a0006b78: e3a0300b mov r3, #11 a0006b7c: e1c43bb8 strh r3, [r4, #184] ; 0xb8 a0006b80: e58450fc str r5, [r4, #252] ; 0xfc a0006b84: e5845100 str r5, [r4, #256] ; 0x100 a0006b88: e5845104 str r5, [r4, #260] ; 0x104 a0006b8c: e5845108 str r5, [r4, #264] ; 0x108 a0006b90: e584510c str r5, [r4, #268] ; 0x10c a0006b94: e5845110 str r5, [r4, #272] ; 0x110 a0006b98: e5845114 str r5, [r4, #276] ; 0x114 a0006b9c: e5845118 str r5, [r4, #280] ; 0x118 a0006ba0: e584511c str r5, [r4, #284] ; 0x11c a0006ba4: e5c450d4 strb r5, [r4, #212] ; 0xd4 a0006ba8: e5c450dc strb r5, [r4, #220] ; 0xdc a0006bac: e58450f4 str r5, [r4, #244] ; 0xf4 a0006bb0: e5845148 str r5, [r4, #328] ; 0x148 a0006bb4: e584514c str r5, [r4, #332] ; 0x14c a0006bb8: e5845150 str r5, [r4, #336] ; 0x150 a0006bbc: e5845154 str r5, [r4, #340] ; 0x154 a0006bc0: e58452d4 str r5, [r4, #724] ; 0x2d4 a0006bc4: e1a00006 mov r0, r6 a0006bc8: e58451d4 str r5, [r4, #468] ; 0x1d4 a0006bcc: e1a01005 mov r1, r5 a0006bd0: e58452dc str r5, [r4, #732] ; 0x2dc a0006bd4: e58452e0 str r5, [r4, #736] ; 0x2e0 a0006bd8: e58452e4 str r5, [r4, #740] ; 0x2e4 a0006bdc: e58452e8 str r5, [r4, #744] ; 0x2e8 a0006be0: e3a02f4e mov r2, #312 ; 0x138 a0006be4: eb002b85 bl a0011a00 <memset>
creating_task->libc_reent = ptr;
a0006be8: e58740f4 str r4, [r7, #244] ; 0xf4
return TRUE;
a0006bec: e3a00001 mov r0, #1
a0006bf0: e8bd80f0 pop {r4, r5, r6, r7, pc}
}
return FALSE;
a0006bf4: e1a00004 mov r0, r4 <== NOT EXECUTED
}
a0006bf8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0006c20 <newlib_delete_hook>:
/*
* The reentrancy structure was allocated by newlib using malloc()
*/
if (current_task == deleted_task) {
a0006c20: e1500001 cmp r0, r1 <== NOT EXECUTED
ptr = _REENT;
a0006c24: 059f3054 ldreq r3, [pc, #84] ; a0006c80 <newlib_delete_hook+0x60><== NOT EXECUTED
void newlib_delete_hook(
rtems_tcb *current_task,
rtems_tcb *deleted_task
)
{
a0006c28: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
/*
* The reentrancy structure was allocated by newlib using malloc()
*/
if (current_task == deleted_task) {
ptr = _REENT;
a0006c2c: 05934000 ldreq r4, [r3] <== NOT EXECUTED
} else {
ptr = deleted_task->libc_reent;
a0006c30: 159140f4 ldrne r4, [r1, #244] ; 0xf4 <== NOT EXECUTED
void newlib_delete_hook(
rtems_tcb *current_task,
rtems_tcb *deleted_task
)
{
a0006c34: e1a06000 mov r6, r0 <== NOT EXECUTED a0006c38: e1a05001 mov r5, r1 <== NOT EXECUTED
ptr = _REENT;
} else {
ptr = deleted_task->libc_reent;
}
if (ptr && ptr != _global_impure_ptr) {
a0006c3c: e3540000 cmp r4, #0 <== NOT EXECUTED a0006c40: 0a000008 beq a0006c68 <newlib_delete_hook+0x48> <== NOT EXECUTED a0006c44: e59f3038 ldr r3, [pc, #56] ; a0006c84 <newlib_delete_hook+0x64><== NOT EXECUTED a0006c48: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006c4c: e1540003 cmp r4, r3 <== NOT EXECUTED a0006c50: 0a000004 beq a0006c68 <newlib_delete_hook+0x48> <== NOT EXECUTED
_reclaim_reent(ptr);
*/
/*
* Just in case there are some buffers lying around.
*/
_fwalk(ptr, newlib_free_buffers);
a0006c54: e1a00004 mov r0, r4 <== NOT EXECUTED a0006c58: e59f1028 ldr r1, [pc, #40] ; a0006c88 <newlib_delete_hook+0x68><== NOT EXECUTED a0006c5c: eb002aef bl a0011820 <_fwalk> <== NOT EXECUTED
#if REENT_MALLOCED
free(ptr);
#else
_Workspace_Free(ptr);
a0006c60: e1a00004 mov r0, r4 <== NOT EXECUTED a0006c64: eb0016fc bl a000c85c <_Workspace_Free> <== NOT EXECUTED
/*
* Require the switch back to another task to install its own
*/
if ( current_task == deleted_task ) {
a0006c68: e1560005 cmp r6, r5 <== NOT EXECUTED
_REENT = 0;
a0006c6c: 059f200c ldreq r2, [pc, #12] ; a0006c80 <newlib_delete_hook+0x60><== NOT EXECUTED
#else
_Workspace_Free(ptr);
#endif
}
deleted_task->libc_reent = NULL;
a0006c70: e3a03000 mov r3, #0 <== NOT EXECUTED a0006c74: e58530f4 str r3, [r5, #244] ; 0xf4 <== NOT EXECUTED
/*
* Require the switch back to another task to install its own
*/
if ( current_task == deleted_task ) {
_REENT = 0;
a0006c78: 05823000 streq r3, [r2] <== NOT EXECUTED
a0006c7c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0006a0c <newlib_free_buffers>:
*/
int newlib_free_buffers(
FILE *fp
)
{
a0006a0c: e92d4010 push {r4, lr} <== NOT EXECUTED
a0006a10: e1a04000 mov r4, r0 <== NOT EXECUTED
switch ( fileno(fp) ) {
a0006a14: eb002a97 bl a0011478 <fileno> <== NOT EXECUTED a0006a18: e3500002 cmp r0, #2 <== NOT EXECUTED a0006a1c: 8a00000b bhi a0006a50 <newlib_free_buffers+0x44> <== NOT EXECUTED
case 0:
case 1:
case 2:
if (fp->_flags & __SMBF) {
a0006a20: e1d430bc ldrh r3, [r4, #12] <== NOT EXECUTED a0006a24: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED a0006a28: 0a00000a beq a0006a58 <newlib_free_buffers+0x4c> <== NOT EXECUTED
free( fp->_bf._base );
a0006a2c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0006a30: ebfffdce bl a0006170 <free> <== NOT EXECUTED
fp->_flags &= ~__SMBF;
a0006a34: e1d430bc ldrh r3, [r4, #12] <== NOT EXECUTED a0006a38: e3c33080 bic r3, r3, #128 ; 0x80 <== NOT EXECUTED a0006a3c: e1c430bc strh r3, [r4, #12] <== NOT EXECUTED
fp->_bf._base = fp->_p = (unsigned char *) NULL;
a0006a40: e3a03000 mov r3, #0 <== NOT EXECUTED a0006a44: e5843000 str r3, [r4] <== NOT EXECUTED a0006a48: e5843010 str r3, [r4, #16] <== NOT EXECUTED a0006a4c: ea000001 b a0006a58 <newlib_free_buffers+0x4c> <== NOT EXECUTED
}
break;
default:
fclose(fp);
a0006a50: e1a00004 mov r0, r4 <== NOT EXECUTED a0006a54: eb0029d2 bl a00111a4 <fclose> <== NOT EXECUTED
} return 0; }
a0006a58: e3a00000 mov r0, #0 <== NOT EXECUTED
a0006a5c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0005eb8 <null_close>:
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
return NULL_SUCCESSFUL;
}
a0005eb8: e3a00000 mov r0, #0 <== NOT EXECUTED a0005ebc: e12fff1e bx lr <== NOT EXECUTED
a0005edc <null_control>:
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
return NULL_SUCCESSFUL;
}
a0005edc: e3a00000 mov r0, #0 <== NOT EXECUTED a0005ee0: e12fff1e bx lr <== NOT EXECUTED
a0005e5c <null_initialize>:
rtems_device_driver null_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
a0005e5c: e92d4010 push {r4, lr} <== NOT EXECUTED
rtems_device_driver status;
if ( !initialized ) {
a0005e60: e59f303c ldr r3, [pc, #60] ; a0005ea4 <null_initialize+0x48><== NOT EXECUTED
rtems_device_driver null_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
a0005e64: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_device_driver status;
if ( !initialized ) {
a0005e68: e5d32000 ldrb r2, [r3] <== NOT EXECUTED a0005e6c: e3520000 cmp r2, #0 <== NOT EXECUTED a0005e70: 1a000009 bne a0005e9c <null_initialize+0x40> <== NOT EXECUTED
initialized = 1;
a0005e74: e3a01001 mov r1, #1 <== NOT EXECUTED a0005e78: e5c31000 strb r1, [r3] <== NOT EXECUTED
status = rtems_io_register_name(
a0005e7c: e59f0024 ldr r0, [pc, #36] ; a0005ea8 <null_initialize+0x4c><== NOT EXECUTED a0005e80: e1a01004 mov r1, r4 <== NOT EXECUTED a0005e84: eb000056 bl a0005fe4 <rtems_io_register_name> <== NOT EXECUTED
"/dev/null",
major,
(rtems_device_minor_number) 0
);
if (status != RTEMS_SUCCESSFUL)
a0005e88: e3500000 cmp r0, #0 <== NOT EXECUTED
rtems_fatal_error_occurred(status);
NULL_major = major;
a0005e8c: 059f3018 ldreq r3, [pc, #24] ; a0005eac <null_initialize+0x50><== NOT EXECUTED a0005e90: 05834000 streq r4, [r3] <== NOT EXECUTED
"/dev/null",
major,
(rtems_device_minor_number) 0
);
if (status != RTEMS_SUCCESSFUL)
a0005e94: 0a000000 beq a0005e9c <null_initialize+0x40> <== NOT EXECUTED
rtems_fatal_error_occurred(status);
a0005e98: eb000f8b bl a0009ccc <rtems_fatal_error_occurred> <== NOT EXECUTED
NULL_major = major;
}
return RTEMS_SUCCESSFUL;
}
a0005e9c: e3a00000 mov r0, #0 <== NOT EXECUTED
a0005ea0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0005eb0 <null_open>:
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
return NULL_SUCCESSFUL;
}
a0005eb0: e3a00000 mov r0, #0 <== NOT EXECUTED a0005eb4: e12fff1e bx lr <== NOT EXECUTED
a0005ec0 <null_read>:
rtems_device_minor_number minor __attribute__((unused)),
void *pargp __attribute__((unused))
)
{
return NULL_SUCCESSFUL;
}
a0005ec0: e3a00000 mov r0, #0 <== NOT EXECUTED a0005ec4: e12fff1e bx lr <== NOT EXECUTED
a0005ec8 <null_write>:
void *pargp
)
{
rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp;
if ( rw_args )
a0005ec8: e3520000 cmp r2, #0 <== NOT EXECUTED
rw_args->bytes_moved = rw_args->count;
a0005ecc: 15923010 ldrne r3, [r2, #16] <== NOT EXECUTED
return NULL_SUCCESSFUL;
}
a0005ed0: e3a00000 mov r0, #0 <== NOT EXECUTED
)
{
rtems_libio_rw_args_t *rw_args = (rtems_libio_rw_args_t *) pargp;
if ( rw_args )
rw_args->bytes_moved = rw_args->count;
a0005ed4: 15823018 strne r3, [r2, #24] <== NOT EXECUTED
return NULL_SUCCESSFUL;
}
a0005ed8: e12fff1e bx lr <== NOT EXECUTED
a0006cf0 <open>:
int open(
const char *pathname,
int flags,
...
)
{
a0006cf0: e92d000e push {r1, r2, r3}
a0006cf4: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr}
a0006cf8: e24dd01c sub sp, sp, #28
a0006cfc: e59d503c ldr r5, [sp, #60] ; 0x3c
a0006d00: e1a06000 mov r6, r0
if ( ( status & _FWRITE ) == _FWRITE )
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
va_start(ap, flags);
mode = va_arg( ap, int );
a0006d04: e59d9040 ldr r9, [sp, #64] ; 0x40
/*
* Set the Evaluation flags
*/
eval_flags = 0;
status = flags + 1;
a0006d08: e2853001 add r3, r5, #1
if ( ( status & _FREAD ) == _FREAD )
eval_flags |= RTEMS_LIBIO_PERMS_READ;
a0006d0c: e213a001 ands sl, r3, #1 a0006d10: 13a0a004 movne sl, #4
if ( ( status & _FWRITE ) == _FWRITE )
a0006d14: e3130002 tst r3, #2
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
va_start(ap, flags);
mode = va_arg( ap, int );
a0006d18: e28d3044 add r3, sp, #68 ; 0x44
eval_flags = 0;
status = flags + 1;
if ( ( status & _FREAD ) == _FREAD )
eval_flags |= RTEMS_LIBIO_PERMS_READ;
if ( ( status & _FWRITE ) == _FWRITE )
eval_flags |= RTEMS_LIBIO_PERMS_WRITE;
a0006d1c: 138aa002 orrne sl, sl, #2
va_start(ap, flags);
mode = va_arg( ap, int );
a0006d20: e58d3018 str r3, [sp, #24]
* code does not require changes here since network file
* descriptors are obtained using socket(), not open().
*/
/* allocate a file control block */
iop = rtems_libio_allocate();
a0006d24: eb001bca bl a000dc54 <rtems_libio_allocate>
if ( iop == 0 ) {
a0006d28: e2504000 subs r4, r0, #0
a0006d2c: 0a000063 beq a0006ec0 <open+0x1d0>
}
/*
* See if the file exists.
*/
status = rtems_filesystem_evaluate_path(
a0006d30: e1a00006 mov r0, r6 a0006d34: eb002cb6 bl a0012014 <strlen> a0006d38: e28d7004 add r7, sp, #4 a0006d3c: e1a01000 mov r1, r0 a0006d40: e3a08001 mov r8, #1 a0006d44: e1a00006 mov r0, r6 a0006d48: e1a0200a mov r2, sl a0006d4c: e1a03007 mov r3, r7 a0006d50: e58d8000 str r8, [sp] a0006d54: ebfffcd0 bl a000609c <rtems_filesystem_evaluate_path>
pathname, strlen( pathname ), eval_flags, &loc, true );
if ( status == -1 ) {
a0006d58: e3700001 cmn r0, #1
a0006d5c: 1a00001f bne a0006de0 <open+0xf0>
if ( errno != ENOENT ) {
a0006d60: eb0028c1 bl a001106c <__errno> a0006d64: e5903000 ldr r3, [r0] a0006d68: e3530002 cmp r3, #2
a0006d6c: 1a00000a bne a0006d9c <open+0xac>
rc = errno;
goto done;
}
/* If the file does not exist and we are not trying to create it--> error */
if ( !(flags & O_CREAT) ) {
a0006d70: e215ac02 ands sl, r5, #512 ; 0x200
int mode; int rc; rtems_libio_t *iop = 0; int status; rtems_filesystem_location_info_t loc; rtems_filesystem_location_info_t *loc_to_free = NULL;
a0006d74: 01a0700a moveq r7, sl
goto done;
}
/* If the file does not exist and we are not trying to create it--> error */
if ( !(flags & O_CREAT) ) {
rc = ENOENT;
a0006d78: 01a05003 moveq r5, r3
rc = errno;
goto done;
}
/* If the file does not exist and we are not trying to create it--> error */
if ( !(flags & O_CREAT) ) {
a0006d7c: 0a000055 beq a0006ed8 <open+0x1e8>
rc = ENOENT;
goto done;
}
/* Create the node for the new regular file */
rc = mknod( pathname, S_IFREG | mode, 0LL );
a0006d80: e1a00006 mov r0, r6 <== NOT EXECUTED a0006d84: e3891902 orr r1, r9, #32768 ; 0x8000 <== NOT EXECUTED a0006d88: e3a02000 mov r2, #0 <== NOT EXECUTED a0006d8c: e3a03000 mov r3, #0 <== NOT EXECUTED a0006d90: ebfffe15 bl a00065ec <mknod> <== NOT EXECUTED
if ( rc ) {
a0006d94: e250a000 subs sl, r0, #0 <== NOT EXECUTED a0006d98: 0a000003 beq a0006dac <open+0xbc> <== NOT EXECUTED
rc = errno;
a0006d9c: eb0028b2 bl a001106c <__errno> <== NOT EXECUTED
int mode; int rc; rtems_libio_t *iop = 0; int status; rtems_filesystem_location_info_t loc; rtems_filesystem_location_info_t *loc_to_free = NULL;
a0006da0: e3a07000 mov r7, #0 <== NOT EXECUTED
}
/* Create the node for the new regular file */
rc = mknod( pathname, S_IFREG | mode, 0LL );
if ( rc ) {
rc = errno;
a0006da4: e5905000 ldr r5, [r0] <== NOT EXECUTED
goto done;
a0006da8: ea000048 b a0006ed0 <open+0x1e0> <== NOT EXECUTED
/*
* After we do the mknod(), we have to evaluate the path to get the
* "loc" structure needed to actually have the file itself open.
* So we created it, and then we need to have "look it up."
*/
status = rtems_filesystem_evaluate_path(
a0006dac: e1a00006 mov r0, r6 <== NOT EXECUTED a0006db0: eb002c97 bl a0012014 <strlen> <== NOT EXECUTED a0006db4: e1a03007 mov r3, r7 <== NOT EXECUTED a0006db8: e1a01000 mov r1, r0 <== NOT EXECUTED a0006dbc: e1a0200a mov r2, sl <== NOT EXECUTED a0006dc0: e1a00006 mov r0, r6 <== NOT EXECUTED a0006dc4: e58d8000 str r8, [sp] <== NOT EXECUTED a0006dc8: ebfffcb3 bl a000609c <rtems_filesystem_evaluate_path> <== NOT EXECUTED
pathname, strlen( pathname ), 0x0, &loc, true );
if ( status != 0 ) { /* The file did not exist */
a0006dcc: e3500000 cmp r0, #0 <== NOT EXECUTED
int mode; int rc; rtems_libio_t *iop = 0; int status; rtems_filesystem_location_info_t loc; rtems_filesystem_location_info_t *loc_to_free = NULL;
a0006dd0: 11a0700a movne r7, sl <== NOT EXECUTED
* So we created it, and then we need to have "look it up."
*/
status = rtems_filesystem_evaluate_path(
pathname, strlen( pathname ), 0x0, &loc, true );
if ( status != 0 ) { /* The file did not exist */
rc = EACCES;
a0006dd4: 13a0500d movne r5, #13 <== NOT EXECUTED
* "loc" structure needed to actually have the file itself open.
* So we created it, and then we need to have "look it up."
*/
status = rtems_filesystem_evaluate_path(
pathname, strlen( pathname ), 0x0, &loc, true );
if ( status != 0 ) { /* The file did not exist */
a0006dd8: 1a00003e bne a0006ed8 <open+0x1e8> <== NOT EXECUTED a0006ddc: ea000002 b a0006dec <open+0xfc> <== NOT EXECUTED
rc = EACCES;
goto done;
}
} else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {
a0006de0: e2053c0a and r3, r5, #2560 ; 0xa00 <== NOT EXECUTED a0006de4: e3530c0a cmp r3, #2560 ; 0xa00 <== NOT EXECUTED a0006de8: 0a000036 beq a0006ec8 <open+0x1d8> <== NOT EXECUTED
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->flags |= rtems_libio_fcntl_flags( flags );
a0006dec: e1a00005 mov r0, r5 <== NOT EXECUTED a0006df0: e5947014 ldr r7, [r4, #20] <== NOT EXECUTED a0006df4: eb001b77 bl a000dbd8 <rtems_libio_fcntl_flags> <== NOT EXECUTED
iop->pathinfo = loc;
a0006df8: e284c018 add ip, r4, #24 <== NOT EXECUTED
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->flags |= rtems_libio_fcntl_flags( flags );
a0006dfc: e1800007 orr r0, r0, r7 <== NOT EXECUTED
iop->pathinfo = loc;
a0006e00: e28de004 add lr, sp, #4 <== NOT EXECUTED
/*
* Fill in the file control block based on the loc structure
* returned by successful path evaluation.
*/
iop->flags |= rtems_libio_fcntl_flags( flags );
a0006e04: e5840014 str r0, [r4, #20] <== NOT EXECUTED
iop->pathinfo = loc;
a0006e08: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006e0c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006e10: e59e3000 ldr r3, [lr] <== NOT EXECUTED
rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
a0006e14: e1a00004 mov r0, r4 <== NOT EXECUTED a0006e18: e1a01006 mov r1, r6 <== NOT EXECUTED
/* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc;
a0006e1c: e58c3000 str r3, [ip] <== NOT EXECUTED
rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
a0006e20: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a0006e24: e1a02005 mov r2, r5 <== NOT EXECUTED a0006e28: e593c000 ldr ip, [r3] <== NOT EXECUTED a0006e2c: e1a03009 mov r3, r9 <== NOT EXECUTED a0006e30: e12fff3c blx ip <== NOT EXECUTED
if ( rc ) {
a0006e34: e3500000 cmp r0, #0 <== NOT EXECUTED a0006e38: 0a000003 beq a0006e4c <open+0x15c> <== NOT EXECUTED
rc = errno;
a0006e3c: eb00288a bl a001106c <__errno> <== NOT EXECUTED
rc = EEXIST;
loc_to_free = &loc;
goto done;
}
loc_to_free = &loc;
a0006e40: e28d7004 add r7, sp, #4 <== NOT EXECUTED
iop->flags |= rtems_libio_fcntl_flags( flags );
iop->pathinfo = loc;
rc = (*iop->pathinfo.handlers->open_h)( iop, pathname, flags, mode );
if ( rc ) {
rc = errno;
a0006e44: e5905000 ldr r5, [r0] <== NOT EXECUTED
goto done;
a0006e48: ea000020 b a0006ed0 <open+0x1e0> <== NOT EXECUTED
}
/*
* Optionally truncate the file.
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
a0006e4c: e3150b01 tst r5, #1024 ; 0x400 <== NOT EXECUTED a0006e50: 0a00002c beq a0006f08 <open+0x218> <== NOT EXECUTED
rc = ftruncate( iop - rtems_libio_iops, 0 );
a0006e54: e59f30d4 ldr r3, [pc, #212] ; a0006f30 <open+0x240> <== NOT EXECUTED a0006e58: e59f00d4 ldr r0, [pc, #212] ; a0006f34 <open+0x244> <== NOT EXECUTED a0006e5c: e3a01000 mov r1, #0 <== NOT EXECUTED a0006e60: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006e64: e3a02000 mov r2, #0 <== NOT EXECUTED a0006e68: e0633004 rsb r3, r3, r4 <== NOT EXECUTED a0006e6c: e1a031c3 asr r3, r3, #3 <== NOT EXECUTED a0006e70: e0000093 mul r0, r3, r0 <== NOT EXECUTED a0006e74: eb001b10 bl a000dabc <ftruncate> <== NOT EXECUTED
if ( rc ) {
a0006e78: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0006e7c: 0a000021 beq a0006f08 <open+0x218> <== NOT EXECUTED
if(errno) rc = errno;
a0006e80: eb002879 bl a001106c <__errno> <== NOT EXECUTED a0006e84: e5903000 ldr r3, [r0] <== NOT EXECUTED a0006e88: e3530000 cmp r3, #0 <== NOT EXECUTED a0006e8c: 0a000001 beq a0006e98 <open+0x1a8> <== NOT EXECUTED a0006e90: eb002875 bl a001106c <__errno> <== NOT EXECUTED a0006e94: e5905000 ldr r5, [r0] <== NOT EXECUTED
close( iop - rtems_libio_iops );
a0006e98: e59f3090 ldr r3, [pc, #144] ; a0006f30 <open+0x240> <== NOT EXECUTED a0006e9c: e59f0090 ldr r0, [pc, #144] ; a0006f34 <open+0x244> <== NOT EXECUTED a0006ea0: e5933000 ldr r3, [r3] <== NOT EXECUTED a0006ea4: e0634004 rsb r4, r3, r4 <== NOT EXECUTED a0006ea8: e1a041c4 asr r4, r4, #3 <== NOT EXECUTED a0006eac: e0000094 mul r0, r4, r0 <== NOT EXECUTED
/* those are released by close(): */
iop = 0;
loc_to_free = NULL;
a0006eb0: e3a04000 mov r4, #0 <== NOT EXECUTED
*/
if ( (flags & O_TRUNC) == O_TRUNC ) {
rc = ftruncate( iop - rtems_libio_iops, 0 );
if ( rc ) {
if(errno) rc = errno;
close( iop - rtems_libio_iops );
a0006eb4: eb001ae0 bl a000da3c <close> <== NOT EXECUTED
/* those are released by close(): */
iop = 0;
a0006eb8: e1a07004 mov r7, r4 <== NOT EXECUTED a0006ebc: ea000003 b a0006ed0 <open+0x1e0> <== NOT EXECUTED
*/
/* allocate a file control block */
iop = rtems_libio_allocate();
if ( iop == 0 ) {
rc = ENFILE;
a0006ec0: e3a05017 mov r5, #23 <== NOT EXECUTED a0006ec4: ea00000b b a0006ef8 <open+0x208> <== NOT EXECUTED
goto done;
}
} else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) {
/* We were trying to create a file that already exists */
rc = EEXIST;
a0006ec8: e3a05011 mov r5, #17 <== NOT EXECUTED a0006ecc: ea000001 b a0006ed8 <open+0x1e8> <== NOT EXECUTED
* Single exit and clean up path.
*/
done:
va_end(ap);
if ( rc ) {
a0006ed0: e3550000 cmp r5, #0 <== NOT EXECUTED a0006ed4: 0a00000b beq a0006f08 <open+0x218> <== NOT EXECUTED
if ( iop )
a0006ed8: e3540000 cmp r4, #0
a0006edc: 0a000001 beq a0006ee8 <open+0x1f8>
rtems_libio_free( iop );
a0006ee0: e1a00004 mov r0, r4 a0006ee4: eb001b82 bl a000dcf4 <rtems_libio_free>
if ( loc_to_free )
a0006ee8: e3570000 cmp r7, #0
a0006eec: 0a000001 beq a0006ef8 <open+0x208>
rtems_filesystem_freenode( loc_to_free );
a0006ef0: e1a00007 mov r0, r7 <== NOT EXECUTED a0006ef4: ebfffc98 bl a000615c <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( rc );
a0006ef8: eb00285b bl a001106c <__errno> a0006efc: e5805000 str r5, [r0] a0006f00: e3e00000 mvn r0, #0 a0006f04: ea000005 b a0006f20 <open+0x230>
}
return iop - rtems_libio_iops;
a0006f08: e59f3020 ldr r3, [pc, #32] ; a0006f30 <open+0x240> <== NOT EXECUTED a0006f0c: e5930000 ldr r0, [r3] <== NOT EXECUTED a0006f10: e0604004 rsb r4, r0, r4 <== NOT EXECUTED a0006f14: e59f0018 ldr r0, [pc, #24] ; a0006f34 <open+0x244> <== NOT EXECUTED a0006f18: e1a041c4 asr r4, r4, #3 <== NOT EXECUTED a0006f1c: e0000094 mul r0, r4, r0 <== NOT EXECUTED
}
a0006f20: e28dd01c add sp, sp, #28
a0006f24: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr}
a0006f28: e28dd00c add sp, sp, #12
a0006f2c: e12fff1e bx lr
a0006c8c <open_dev_console>:
int stderr_fd;
/*
* Attempt to open /dev/console.
*/
if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {
a0006c8c: e3a01000 mov r1, #0
/*
* This is a replaceable stub which opens the console, if present.
*/
void open_dev_console(void)
{
a0006c90: e52de004 push {lr} ; (str lr, [sp, #-4]!)
int stderr_fd;
/*
* Attempt to open /dev/console.
*/
if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) {
a0006c94: e59f0048 ldr r0, [pc, #72] ; a0006ce4 <open_dev_console+0x58>
a0006c98: e1a02001 mov r2, r1
a0006c9c: eb000013 bl a0006cf0 <open>
a0006ca0: e3700001 cmn r0, #1
a0006ca4: 049df004 popeq {pc} ; (ldreq pc, [sp], #4)
/*
* But if we find /dev/console once, we better find it twice more
* or something is REALLY wrong.
*/
if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1)
a0006ca8: e59f0034 ldr r0, [pc, #52] ; a0006ce4 <open_dev_console+0x58><== NOT EXECUTED a0006cac: e3a01001 mov r1, #1 <== NOT EXECUTED a0006cb0: e3a02000 mov r2, #0 <== NOT EXECUTED a0006cb4: eb00000d bl a0006cf0 <open> <== NOT EXECUTED a0006cb8: e3700001 cmn r0, #1 <== NOT EXECUTED
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
a0006cbc: 059f0024 ldreq r0, [pc, #36] ; a0006ce8 <open_dev_console+0x5c><== NOT EXECUTED
/*
* But if we find /dev/console once, we better find it twice more
* or something is REALLY wrong.
*/
if ((stdout_fd = open("/dev/console", O_WRONLY, 0)) == -1)
a0006cc0: 0a000006 beq a0006ce0 <open_dev_console+0x54> <== NOT EXECUTED
rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */
if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1)
a0006cc4: e59f0018 ldr r0, [pc, #24] ; a0006ce4 <open_dev_console+0x58><== NOT EXECUTED
a0006cc8: e3a01001 mov r1, #1 <== NOT EXECUTED
a0006ccc: e3a02000 mov r2, #0 <== NOT EXECUTED
a0006cd0: eb000006 bl a0006cf0 <open> <== NOT EXECUTED
a0006cd4: e3700001 cmn r0, #1 <== NOT EXECUTED
a0006cd8: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED
rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */
a0006cdc: e59f0008 ldr r0, [pc, #8] ; a0006cec <open_dev_console+0x60><== NOT EXECUTED a0006ce0: eb000b4d bl a0009a1c <rtems_fatal_error_occurred> <== NOT EXECUTED
a0007b40 <oproc>:
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
a0007b40: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
a0007b44: e5cd0000 strb r0, [sp] <== NOT EXECUTED
int i;
if (tty->termios.c_oflag & OPOST) {
a0007b48: e5913034 ldr r3, [r1, #52] ; 0x34 <== NOT EXECUTED
/*
* Handle output processing
*/
static void
oproc (unsigned char c, struct rtems_termios_tty *tty)
{
a0007b4c: e1a04001 mov r4, r1 <== NOT EXECUTED
int i;
if (tty->termios.c_oflag & OPOST) {
a0007b50: e3130001 tst r3, #1 <== NOT EXECUTED a0007b54: 0a000045 beq a0007c70 <oproc+0x130> <== NOT EXECUTED
switch (c) {
a0007b58: e5dd2000 ldrb r2, [sp] <== NOT EXECUTED a0007b5c: e2421008 sub r1, r2, #8 <== NOT EXECUTED a0007b60: e3510005 cmp r1, #5 <== NOT EXECUTED a0007b64: 979ff101 ldrls pc, [pc, r1, lsl #2] <== NOT EXECUTED a0007b68: ea00002c b a0007c20 <oproc+0xe0> <== NOT EXECUTED a0007b6c: a0007c0c .word 0xa0007c0c <== NOT EXECUTED a0007b70: a0007be4 .word 0xa0007be4 <== NOT EXECUTED a0007b74: a0007b84 .word 0xa0007b84 <== NOT EXECUTED a0007b78: a0007c20 .word 0xa0007c20 <== NOT EXECUTED a0007b7c: a0007c20 .word 0xa0007c20 <== NOT EXECUTED a0007b80: a0007bac .word 0xa0007bac <== NOT EXECUTED
case '\n':
if (tty->termios.c_oflag & ONLRET)
a0007b84: e3130020 tst r3, #32 <== NOT EXECUTED
tty->column = 0;
a0007b88: 13a02000 movne r2, #0 <== NOT EXECUTED a0007b8c: 15842028 strne r2, [r4, #40] ; 0x28 <== NOT EXECUTED
if (tty->termios.c_oflag & ONLCR) {
a0007b90: e3130004 tst r3, #4 <== NOT EXECUTED a0007b94: 0a000035 beq a0007c70 <oproc+0x130> <== NOT EXECUTED
rtems_termios_puts ("\r", 1, tty);
a0007b98: e59f00e4 ldr r0, [pc, #228] ; a0007c84 <oproc+0x144> <== NOT EXECUTED a0007b9c: e3a01001 mov r1, #1 <== NOT EXECUTED a0007ba0: e1a02004 mov r2, r4 <== NOT EXECUTED a0007ba4: ebffffa4 bl a0007a3c <rtems_termios_puts> <== NOT EXECUTED a0007ba8: ea00000b b a0007bdc <oproc+0x9c> <== NOT EXECUTED
tty->column = 0;
}
break;
case '\r':
if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
a0007bac: e3130010 tst r3, #16 <== NOT EXECUTED a0007bb0: 0a000002 beq a0007bc0 <oproc+0x80> <== NOT EXECUTED a0007bb4: e5942028 ldr r2, [r4, #40] ; 0x28 <== NOT EXECUTED a0007bb8: e3520000 cmp r2, #0 <== NOT EXECUTED a0007bbc: 0a00002f beq a0007c80 <oproc+0x140> <== NOT EXECUTED
return;
if (tty->termios.c_oflag & OCRNL) {
a0007bc0: e2132008 ands r2, r3, #8 <== NOT EXECUTED
c = '\n';
if (tty->termios.c_oflag & ONLRET)
tty->column = 0;
break;
}
tty->column = 0;
a0007bc4: 05842028 streq r2, [r4, #40] ; 0x28 <== NOT EXECUTED
break;
case '\r':
if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
return;
if (tty->termios.c_oflag & OCRNL) {
a0007bc8: 0a000028 beq a0007c70 <oproc+0x130> <== NOT EXECUTED
c = '\n';
a0007bcc: e3a0200a mov r2, #10 <== NOT EXECUTED
if (tty->termios.c_oflag & ONLRET)
a0007bd0: e3130020 tst r3, #32 <== NOT EXECUTED
case '\r':
if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))
return;
if (tty->termios.c_oflag & OCRNL) {
c = '\n';
a0007bd4: e5cd2000 strb r2, [sp] <== NOT EXECUTED
if (tty->termios.c_oflag & ONLRET)
a0007bd8: 0a000024 beq a0007c70 <oproc+0x130> <== NOT EXECUTED
tty->column = 0;
a0007bdc: e3a03000 mov r3, #0 <== NOT EXECUTED a0007be0: ea000021 b a0007c6c <oproc+0x12c> <== NOT EXECUTED
}
tty->column = 0;
break;
case '\t':
i = 8 - (tty->column & 7);
a0007be4: e5942028 ldr r2, [r4, #40] ; 0x28 <== NOT EXECUTED
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
a0007be8: e2033b06 and r3, r3, #6144 ; 0x1800 <== NOT EXECUTED a0007bec: e3530b06 cmp r3, #6144 ; 0x1800 <== NOT EXECUTED
}
tty->column = 0;
break;
case '\t':
i = 8 - (tty->column & 7);
a0007bf0: e2021007 and r1, r2, #7 <== NOT EXECUTED a0007bf4: e2611008 rsb r1, r1, #8 <== NOT EXECUTED a0007bf8: e0813002 add r3, r1, r2 <== NOT EXECUTED
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
tty->column += i;
a0007bfc: 05843028 streq r3, [r4, #40] ; 0x28 <== NOT EXECUTED
rtems_termios_puts ( " ", i, tty);
a0007c00: 059f0080 ldreq r0, [pc, #128] ; a0007c88 <oproc+0x148> <== NOT EXECUTED
tty->column = 0;
break;
case '\t':
i = 8 - (tty->column & 7);
if ((tty->termios.c_oflag & TABDLY) == XTABS) {
a0007c04: 1a000018 bne a0007c6c <oproc+0x12c> <== NOT EXECUTED a0007c08: ea00001a b a0007c78 <oproc+0x138> <== NOT EXECUTED
}
tty->column += i;
break;
case '\b':
if (tty->column > 0)
a0007c0c: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a0007c10: e3530000 cmp r3, #0 <== NOT EXECUTED
tty->column--;
a0007c14: c2433001 subgt r3, r3, #1 <== NOT EXECUTED
}
tty->column += i;
break;
case '\b':
if (tty->column > 0)
a0007c18: ca000013 bgt a0007c6c <oproc+0x12c> <== NOT EXECUTED a0007c1c: ea000013 b a0007c70 <oproc+0x130> <== NOT EXECUTED
tty->column--;
break;
default:
if (tty->termios.c_oflag & OLCUC)
a0007c20: e3130002 tst r3, #2 <== NOT EXECUTED a0007c24: 0a000007 beq a0007c48 <oproc+0x108> <== NOT EXECUTED
c = toupper(c);
a0007c28: e59f305c ldr r3, [pc, #92] ; a0007c8c <oproc+0x14c> <== NOT EXECUTED a0007c2c: e5933000 ldr r3, [r3] <== NOT EXECUTED a0007c30: e0833002 add r3, r3, r2 <== NOT EXECUTED a0007c34: e5d33001 ldrb r3, [r3, #1] <== NOT EXECUTED a0007c38: e2033003 and r3, r3, #3 <== NOT EXECUTED a0007c3c: e3530002 cmp r3, #2 <== NOT EXECUTED a0007c40: 02422020 subeq r2, r2, #32 <== NOT EXECUTED a0007c44: e5cd2000 strb r2, [sp] <== NOT EXECUTED
if (!iscntrl(c))
a0007c48: e59f203c ldr r2, [pc, #60] ; a0007c8c <oproc+0x14c> <== NOT EXECUTED a0007c4c: e5dd3000 ldrb r3, [sp] <== NOT EXECUTED a0007c50: e5922000 ldr r2, [r2] <== NOT EXECUTED a0007c54: e0823003 add r3, r2, r3 <== NOT EXECUTED a0007c58: e5d33001 ldrb r3, [r3, #1] <== NOT EXECUTED a0007c5c: e3130020 tst r3, #32 <== NOT EXECUTED a0007c60: 1a000002 bne a0007c70 <oproc+0x130> <== NOT EXECUTED
tty->column++;
a0007c64: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a0007c68: e2833001 add r3, r3, #1 <== NOT EXECUTED a0007c6c: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED
break;
}
}
rtems_termios_puts (&c, 1, tty);
a0007c70: e1a0000d mov r0, sp <== NOT EXECUTED a0007c74: e3a01001 mov r1, #1 <== NOT EXECUTED a0007c78: e1a02004 mov r2, r4 <== NOT EXECUTED a0007c7c: ebffff6e bl a0007a3c <rtems_termios_puts> <== NOT EXECUTED
}
a0007c80: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a0008014 <pathconf>:
long pathconf(
const char *path,
int name
)
{
a0008014: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a0008018: e1a05001 mov r5, r1 <== NOT EXECUTED
int status;
int fd;
fd = open( path, O_RDONLY );
a000801c: e3a01000 mov r1, #0 <== NOT EXECUTED a0008020: ebffff65 bl a0007dbc <open> <== NOT EXECUTED
if ( fd == -1 )
a0008024: e3700001 cmn r0, #1 <== NOT EXECUTED
)
{
int status;
int fd;
fd = open( path, O_RDONLY );
a0008028: e1a04000 mov r4, r0 <== NOT EXECUTED
if ( fd == -1 )
a000802c: 0a000006 beq a000804c <pathconf+0x38> <== NOT EXECUTED
return -1;
status = fpathconf( fd, name );
a0008030: e1a01005 mov r1, r5 <== NOT EXECUTED a0008034: ebfffb1f bl a0006cb8 <fpathconf> <== NOT EXECUTED a0008038: e1a05000 mov r5, r0 <== NOT EXECUTED
(void) close( fd );
a000803c: e1a00004 mov r0, r4 <== NOT EXECUTED a0008040: ebfffa08 bl a0006868 <close> <== NOT EXECUTED
return status;
a0008044: e1a00005 mov r0, r5 <== NOT EXECUTED
a0008048: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
}
a000804c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000b300 <pause>:
/*
* 3.4.2 Suspend Process Execution, P1003.1b-1993, p. 81
*/
int pause( void )
{
a000b300: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
sigset_t all_signals;
int status;
(void) sigfillset( &all_signals );
a000b304: e1a0000d mov r0, sp <== NOT EXECUTED a000b308: eb000323 bl a000bf9c <sigfillset> <== NOT EXECUTED
status = sigtimedwait( &all_signals, NULL, NULL );
a000b30c: e3a01000 mov r1, #0 <== NOT EXECUTED a000b310: e1a0000d mov r0, sp <== NOT EXECUTED a000b314: e1a02001 mov r2, r1 <== NOT EXECUTED
int pause( void )
{
sigset_t all_signals;
int status;
(void) sigfillset( &all_signals );
a000b318: e1a0400d mov r4, sp <== NOT EXECUTED
status = sigtimedwait( &all_signals, NULL, NULL );
a000b31c: eb000384 bl a000c134 <sigtimedwait> <== NOT EXECUTED
return status;
}
a000b320: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000834c <pipe>:
int pipe(
int filsdes[2]
)
{
if (filsdes == NULL)
a000834c: e3500000 cmp r0, #0 <== NOT EXECUTED
extern int pipe_create(int filsdes[2]);
int pipe(
int filsdes[2]
)
{
a0008350: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if (filsdes == NULL)
a0008354: 1a000004 bne a000836c <pipe+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a0008358: eb0029ea bl a0012b08 <__errno> <== NOT EXECUTED a000835c: e3a0300e mov r3, #14 <== NOT EXECUTED a0008360: e5803000 str r3, [r0] <== NOT EXECUTED
return pipe_create(filsdes);
}
a0008364: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0008368: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000836c: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED
)
{
if (filsdes == NULL)
rtems_set_errno_and_return_minus_one( EFAULT );
return pipe_create(filsdes);
a0008370: ea001a39 b a000ec5c <pipe_create> <== NOT EXECUTED
a000ec5c <pipe_create>:
* Called by pipe() to create an anonymous pipe.
*/
int pipe_create(
int filsdes[2]
)
{
a000ec5c: e92d407f push {r0, r1, r2, r3, r4, r5, r6, lr} <== NOT EXECUTED
a000ec60: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_libio_t *iop;
int err = 0;
if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)
a000ec64: e59f1100 ldr r1, [pc, #256] ; a000ed6c <pipe_create+0x110> <== NOT EXECUTED a000ec68: e59f0100 ldr r0, [pc, #256] ; a000ed70 <pipe_create+0x114> <== NOT EXECUTED a000ec6c: eb000557 bl a00101d0 <rtems_mkdir> <== NOT EXECUTED a000ec70: e3500000 cmp r0, #0 <== NOT EXECUTED a000ec74: 1a000039 bne a000ed60 <pipe_create+0x104> <== NOT EXECUTED
return -1;
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
a000ec78: e59f30f4 ldr r3, [pc, #244] ; a000ed74 <pipe_create+0x118> <== NOT EXECUTED
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
a000ec7c: e28d000a add r0, sp, #10 <== NOT EXECUTED
if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)
return -1;
/* /tmp/.fifoXXXX */
char fifopath[15];
memcpy(fifopath, "/tmp/.fifo", 10);
a000ec80: e1a0400d mov r4, sp <== NOT EXECUTED a000ec84: e58d3000 str r3, [sp] <== NOT EXECUTED a000ec88: e59f30e8 ldr r3, [pc, #232] ; a000ed78 <pipe_create+0x11c> <== NOT EXECUTED a000ec8c: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000ec90: e59f30e4 ldr r3, [pc, #228] ; a000ed7c <pipe_create+0x120> <== NOT EXECUTED a000ec94: e1cd30b8 strh r3, [sp, #8] <== NOT EXECUTED
sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);
a000ec98: e59f30e0 ldr r3, [pc, #224] ; a000ed80 <pipe_create+0x124> <== NOT EXECUTED a000ec9c: e1d320b0 ldrh r2, [r3] <== NOT EXECUTED a000eca0: e2821001 add r1, r2, #1 <== NOT EXECUTED a000eca4: e1c310b0 strh r1, [r3] <== NOT EXECUTED a000eca8: e59f10d4 ldr r1, [pc, #212] ; a000ed84 <pipe_create+0x128> <== NOT EXECUTED a000ecac: eb001254 bl a0013604 <sprintf> <== NOT EXECUTED
/* Try creating FIFO file until find an available file name */
while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {
a000ecb0: e1a0000d mov r0, sp <== NOT EXECUTED a000ecb4: e3a01d06 mov r1, #384 ; 0x180 <== NOT EXECUTED a000ecb8: eb0004b0 bl a000ff80 <mkfifo> <== NOT EXECUTED a000ecbc: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000ecc0: 0a000001 beq a000eccc <pipe_create+0x70> <== NOT EXECUTED
if (errno != EEXIST){
a000ecc4: eb000f8f bl a0012b08 <__errno> <== NOT EXECUTED a000ecc8: ea000024 b a000ed60 <pipe_create+0x104> <== NOT EXECUTED
return -1;
/* sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); */
}
/* Non-blocking open to avoid waiting for writers */
filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);
a000eccc: e1a0000d mov r0, sp <== NOT EXECUTED a000ecd0: e3a01901 mov r1, #16384 ; 0x4000 <== NOT EXECUTED a000ecd4: ebffe506 bl a00080f4 <open> <== NOT EXECUTED
if (filsdes[0] < 0) {
a000ecd8: e3500000 cmp r0, #0 <== NOT EXECUTED
return -1;
/* sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); */
}
/* Non-blocking open to avoid waiting for writers */
filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);
a000ecdc: e5850000 str r0, [r5] <== NOT EXECUTED
if (filsdes[0] < 0) {
a000ece0: aa000002 bge a000ecf0 <pipe_create+0x94> <== NOT EXECUTED
err = errno;
a000ece4: eb000f87 bl a0012b08 <__errno> <== NOT EXECUTED a000ece8: e5906000 ldr r6, [r0] <== NOT EXECUTED a000ecec: ea000014 b a000ed44 <pipe_create+0xe8> <== NOT EXECUTED
the file node will be deleted after it is closed by all. */
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
a000ecf0: e59f3090 ldr r3, [pc, #144] ; a000ed88 <pipe_create+0x12c> <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
filsdes[1] = open(fifopath, O_WRONLY);
a000ecf4: e3a01001 mov r1, #1 <== NOT EXECUTED
the file node will be deleted after it is closed by all. */
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
a000ecf8: e5933000 ldr r3, [r3] <== NOT EXECUTED a000ecfc: e1500003 cmp r0, r3 <== NOT EXECUTED a000ed00: 359f3084 ldrcc r3, [pc, #132] ; a000ed8c <pipe_create+0x130><== NOT EXECUTED a000ed04: 33a06038 movcc r6, #56 ; 0x38 <== NOT EXECUTED a000ed08: 35933000 ldrcc r3, [r3] <== NOT EXECUTED a000ed0c: 30263690 mlacc r6, r0, r6, r3 <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
filsdes[1] = open(fifopath, O_WRONLY);
a000ed10: e1a0000d mov r0, sp <== NOT EXECUTED
unlink(fifopath);
}
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
a000ed14: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED a000ed18: e3c33001 bic r3, r3, #1 <== NOT EXECUTED a000ed1c: e5863014 str r3, [r6, #20] <== NOT EXECUTED
filsdes[1] = open(fifopath, O_WRONLY);
a000ed20: ebffe4f3 bl a00080f4 <open> <== NOT EXECUTED
if (filsdes[1] < 0) {
a000ed24: e3500000 cmp r0, #0 <== NOT EXECUTED
else {
/* Reset open file to blocking mode */
iop = rtems_libio_iop(filsdes[0]);
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
filsdes[1] = open(fifopath, O_WRONLY);
a000ed28: e5850004 str r0, [r5, #4] <== NOT EXECUTED
int pipe_create(
int filsdes[2]
)
{
rtems_libio_t *iop;
int err = 0;
a000ed2c: a3a06000 movge r6, #0 <== NOT EXECUTED
iop = rtems_libio_iop(filsdes[0]);
iop->flags &= ~LIBIO_FLAGS_NO_DELAY;
filsdes[1] = open(fifopath, O_WRONLY);
if (filsdes[1] < 0) {
a000ed30: aa000003 bge a000ed44 <pipe_create+0xe8> <== NOT EXECUTED
err = errno;
a000ed34: eb000f73 bl a0012b08 <__errno> <== NOT EXECUTED a000ed38: e5906000 ldr r6, [r0] <== NOT EXECUTED
close(filsdes[0]);
a000ed3c: e5950000 ldr r0, [r5] <== NOT EXECUTED a000ed40: ebffe0f0 bl a0007108 <close> <== NOT EXECUTED
}
unlink(fifopath);
a000ed44: e1a0000d mov r0, sp <== NOT EXECUTED a000ed48: ebffec6a bl a0009ef8 <unlink> <== NOT EXECUTED
} if(err != 0)
a000ed4c: e3560000 cmp r6, #0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(err);
return 0;
a000ed50: 01a00006 moveq r0, r6 <== NOT EXECUTED
err = errno;
close(filsdes[0]);
}
unlink(fifopath);
}
if(err != 0)
a000ed54: 0a000002 beq a000ed64 <pipe_create+0x108> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one(err);
a000ed58: eb000f6a bl a0012b08 <__errno> <== NOT EXECUTED a000ed5c: e5806000 str r6, [r0] <== NOT EXECUTED a000ed60: e3e00000 mvn r0, #0 <== NOT EXECUTED
return 0; }
a000ed64: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a000ed68: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000f964 <pipe_free>:
/* Called with pipe_semaphore held. */
static inline void pipe_free(
pipe_control_t *pipe
)
{
a000f964: e92d4010 push {r4, lr} <== NOT EXECUTED
a000f968: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_barrier_delete(pipe->readBarrier);
a000f96c: e590002c ldr r0, [r0, #44] ; 0x2c <== NOT EXECUTED a000f970: eb0006cb bl a00114a4 <rtems_barrier_delete> <== NOT EXECUTED
rtems_barrier_delete(pipe->writeBarrier);
a000f974: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000f978: eb0006c9 bl a00114a4 <rtems_barrier_delete> <== NOT EXECUTED
rtems_semaphore_delete(pipe->Semaphore);
a000f97c: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000f980: ebffee74 bl a000b358 <rtems_semaphore_delete> <== NOT EXECUTED
free(pipe->Buffer);
a000f984: e5940000 ldr r0, [r4] <== NOT EXECUTED a000f988: ebffe0bd bl a0007c84 <free> <== NOT EXECUTED
free(pipe);
a000f98c: e1a00004 mov r0, r4 <== NOT EXECUTED
}
a000f990: e8bd4010 pop {r4, lr} <== NOT EXECUTED
{
rtems_barrier_delete(pipe->readBarrier);
rtems_barrier_delete(pipe->writeBarrier);
rtems_semaphore_delete(pipe->Semaphore);
free(pipe->Buffer);
free(pipe);
a000f994: eaffe0ba b a0007c84 <free> <== NOT EXECUTED
a0010178 <pipe_ioctl>:
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
if (cmd == FIONREAD) {
a0010178: e59f3060 ldr r3, [pc, #96] ; a00101e0 <pipe_ioctl+0x68> <== NOT EXECUTED
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
a001017c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
if (cmd == FIONREAD) {
a0010180: e1510003 cmp r1, r3 <== NOT EXECUTED
pipe_control_t *pipe,
uint32_t cmd,
void *buffer,
rtems_libio_t *iop
)
{
a0010184: e1a04000 mov r4, r0 <== NOT EXECUTED a0010188: e1a05002 mov r5, r2 <== NOT EXECUTED
if (cmd == FIONREAD) {
a001018c: 1a00000d bne a00101c8 <pipe_ioctl+0x50> <== NOT EXECUTED
if (buffer == NULL)
a0010190: e3520000 cmp r2, #0 <== NOT EXECUTED a0010194: 0a00000d beq a00101d0 <pipe_ioctl+0x58> <== NOT EXECUTED
return -EFAULT;
if (! PIPE_LOCK(pipe))
a0010198: e3a01000 mov r1, #0 <== NOT EXECUTED a001019c: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED a00101a0: e1a02001 mov r2, r1 <== NOT EXECUTED a00101a4: ebffec92 bl a000b3f4 <rtems_semaphore_obtain> <== NOT EXECUTED a00101a8: e2506000 subs r6, r0, #0 <== NOT EXECUTED a00101ac: 1a000009 bne a00101d8 <pipe_ioctl+0x60> <== NOT EXECUTED
return -EINTR;
/* Return length of pipe */
*(unsigned int *)buffer = pipe->Length;
a00101b0: e594300c ldr r3, [r4, #12] <== NOT EXECUTED
PIPE_UNLOCK(pipe);
a00101b4: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
/* Return length of pipe */
*(unsigned int *)buffer = pipe->Length;
a00101b8: e5853000 str r3, [r5] <== NOT EXECUTED
PIPE_UNLOCK(pipe);
a00101bc: ebffecd2 bl a000b50c <rtems_semaphore_release> <== NOT EXECUTED
return 0;
a00101c0: e1a00006 mov r0, r6 <== NOT EXECUTED
a00101c4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
}
return -EINVAL;
a00101c8: e3e00015 mvn r0, #21 <== NOT EXECUTED
a00101cc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
rtems_libio_t *iop
)
{
if (cmd == FIONREAD) {
if (buffer == NULL)
return -EFAULT;
a00101d0: e3e0000d mvn r0, #13 <== NOT EXECUTED
a00101d4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
a00101d8: e3e00003 mvn r0, #3 <== NOT EXECUTED
PIPE_UNLOCK(pipe);
return 0;
}
return -EINVAL;
}
a00101dc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a00101e4 <pipe_lseek>:
rtems_libio_t *iop
)
{
/* Seek on pipe is not supported */
return -ESPIPE;
}
a00101e4: e3e0001c mvn r0, #28 <== NOT EXECUTED a00101e8: e12fff1e bx lr <== NOT EXECUTED
a000fe44 <pipe_read>:
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
a000fe44: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
a000fe48: e1a09001 mov r9, r1 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
a000fe4c: e3a01000 mov r1, #0 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
a000fe50: e1a04000 mov r4, r0 <== NOT EXECUTED a000fe54: e1a05002 mov r5, r2 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
a000fe58: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED a000fe5c: e1a02001 mov r2, r1 <== NOT EXECUTED
pipe_control_t *pipe,
void *buffer,
size_t count,
rtems_libio_t *iop
)
{
a000fe60: e1a0a003 mov sl, r3 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
a000fe64: ebffed62 bl a000b3f4 <rtems_semaphore_obtain> <== NOT EXECUTED a000fe68: e2506000 subs r6, r0, #0 <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
pipe->Start = 0;
if (pipe->waitingWriters > 0)
PIPE_WAKEUPWRITERS(pipe);
a000fe6c: 01a0b00d moveq fp, sp <== NOT EXECUTED
rtems_libio_t *iop
)
{
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
a000fe70: 0a000044 beq a000ff88 <pipe_read+0x144> <== NOT EXECUTED a000fe74: ea000050 b a000ffbc <pipe_read+0x178> <== NOT EXECUTED
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
/* Not an error */
if (pipe->Writers == 0)
a000fe78: e5947014 ldr r7, [r4, #20] <== NOT EXECUTED a000fe7c: e3570000 cmp r7, #0 <== NOT EXECUTED a000fe80: 0a000045 beq a000ff9c <pipe_read+0x158> <== NOT EXECUTED
goto out_locked;
if (LIBIO_NODELAY(iop)) {
a000fe84: e59a8014 ldr r8, [sl, #20] <== NOT EXECUTED a000fe88: e2188001 ands r8, r8, #1 <== NOT EXECUTED a000fe8c: 1a000041 bne a000ff98 <pipe_read+0x154> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
a000fe90: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED
PIPE_UNLOCK(pipe);
a000fe94: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until pipe is no more empty or no writer exists */
pipe->waitingReaders ++;
a000fe98: e2833001 add r3, r3, #1 <== NOT EXECUTED a000fe9c: e5843018 str r3, [r4, #24] <== NOT EXECUTED
PIPE_UNLOCK(pipe);
a000fea0: ebffed99 bl a000b50c <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_READWAIT(pipe))
a000fea4: e1a01008 mov r1, r8 <== NOT EXECUTED a000fea8: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000feac: eb0005ba bl a001159c <rtems_barrier_wait> <== NOT EXECUTED a000feb0: e3500000 cmp r0, #0 <== NOT EXECUTED a000feb4: 01a07000 moveq r7, r0 <== NOT EXECUTED a000feb8: 13e07003 mvnne r7, #3 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
a000febc: e1a01008 mov r1, r8 <== NOT EXECUTED a000fec0: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000fec4: e1a02008 mov r2, r8 <== NOT EXECUTED a000fec8: ebffed49 bl a000b3f4 <rtems_semaphore_obtain> <== NOT EXECUTED a000fecc: e3500000 cmp r0, #0 <== NOT EXECUTED a000fed0: 1a000034 bne a000ffa8 <pipe_read+0x164> <== NOT EXECUTED
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
a000fed4: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED
if (ret != 0)
a000fed8: e3570000 cmp r7, #0 <== NOT EXECUTED
if (! PIPE_LOCK(pipe)) {
/* WARN waitingReaders not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingReaders --;
a000fedc: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000fee0: e5843018 str r3, [r4, #24] <== NOT EXECUTED
if (ret != 0)
a000fee4: 1a00002c bne a000ff9c <pipe_read+0x158> <== NOT EXECUTED
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
while (PIPE_EMPTY(pipe)) {
a000fee8: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a000feec: e3530000 cmp r3, #0 <== NOT EXECUTED a000fef0: 0affffe0 beq a000fe78 <pipe_read+0x34> <== NOT EXECUTED
if (ret != 0)
goto out_locked;
}
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
a000fef4: e0667005 rsb r7, r6, r5 <== NOT EXECUTED a000fef8: e1530007 cmp r3, r7 <== NOT EXECUTED a000fefc: 31a07003 movcc r7, r3 <== NOT EXECUTED
chunk1 = pipe->Size - pipe->Start;
a000ff00: e5948004 ldr r8, [r4, #4] <== NOT EXECUTED a000ff04: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000ff08: e5941000 ldr r1, [r4] <== NOT EXECUTED a000ff0c: e0890006 add r0, r9, r6 <== NOT EXECUTED a000ff10: e0638008 rsb r8, r3, r8 <== NOT EXECUTED
if (chunk > chunk1) {
a000ff14: e1570008 cmp r7, r8 <== NOT EXECUTED
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
a000ff18: d0811003 addle r1, r1, r3 <== NOT EXECUTED a000ff1c: d1a02007 movle r2, r7 <== NOT EXECUTED
}
/* Read chunk bytes */
chunk = MIN(count - read, pipe->Length);
chunk1 = pipe->Size - pipe->Start;
if (chunk > chunk1) {
a000ff20: da000006 ble a000ff40 <pipe_read+0xfc> <== NOT EXECUTED
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);
a000ff24: e0811003 add r1, r1, r3 <== NOT EXECUTED a000ff28: e1a02008 mov r2, r8 <== NOT EXECUTED a000ff2c: eb0010cc bl a0014264 <memcpy> <== NOT EXECUTED
memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);
a000ff30: e5941000 ldr r1, [r4] <== NOT EXECUTED a000ff34: e0860008 add r0, r6, r8 <== NOT EXECUTED a000ff38: e0890000 add r0, r9, r0 <== NOT EXECUTED a000ff3c: e0682007 rsb r2, r8, r7 <== NOT EXECUTED
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
a000ff40: eb0010c7 bl a0014264 <memcpy> <== NOT EXECUTED
pipe->Start += chunk;
a000ff44: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED
pipe->Start %= pipe->Size;
a000ff48: e5941004 ldr r1, [r4, #4] <== NOT EXECUTED a000ff4c: e0870000 add r0, r7, r0 <== NOT EXECUTED a000ff50: eb004024 bl a001ffe8 <__umodsi3> <== NOT EXECUTED
pipe->Length -= chunk;
a000ff54: e594300c ldr r3, [r4, #12] <== NOT EXECUTED
}
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
pipe->Start += chunk;
pipe->Start %= pipe->Size;
a000ff58: e5840008 str r0, [r4, #8] <== NOT EXECUTED
pipe->Length -= chunk;
a000ff5c: e0673003 rsb r3, r7, r3 <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
a000ff60: e3530000 cmp r3, #0 <== NOT EXECUTED
pipe->Start = 0;
a000ff64: 05843008 streq r3, [r4, #8] <== NOT EXECUTED
else
memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);
pipe->Start += chunk;
pipe->Start %= pipe->Size;
pipe->Length -= chunk;
a000ff68: e584300c str r3, [r4, #12] <== NOT EXECUTED
/* For buffering optimization */
if (PIPE_EMPTY(pipe))
pipe->Start = 0;
if (pipe->waitingWriters > 0)
a000ff6c: e594301c ldr r3, [r4, #28] <== NOT EXECUTED a000ff70: e3530000 cmp r3, #0 <== NOT EXECUTED a000ff74: 0a000002 beq a000ff84 <pipe_read+0x140> <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
a000ff78: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000ff7c: e1a0100d mov r1, sp <== NOT EXECUTED a000ff80: eb00056f bl a0011544 <rtems_barrier_release> <== NOT EXECUTED
read += chunk;
a000ff84: e0866007 add r6, r6, r7 <== NOT EXECUTED
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
return -EINTR;
while (read < count) {
a000ff88: e1560005 cmp r6, r5 <== NOT EXECUTED a000ff8c: 3affffd5 bcc a000fee8 <pipe_read+0xa4> <== NOT EXECUTED a000ff90: e3a07000 mov r7, #0 <== NOT EXECUTED a000ff94: ea000000 b a000ff9c <pipe_read+0x158> <== NOT EXECUTED
/* Not an error */
if (pipe->Writers == 0)
goto out_locked;
if (LIBIO_NODELAY(iop)) {
ret = -EAGAIN;
a000ff98: e3e0700a mvn r7, #10 <== NOT EXECUTED
PIPE_WAKEUPWRITERS(pipe);
read += chunk;
}
out_locked:
PIPE_UNLOCK(pipe);
a000ff9c: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000ffa0: ebffed59 bl a000b50c <rtems_semaphore_release> <== NOT EXECUTED a000ffa4: ea000000 b a000ffac <pipe_read+0x168> <== NOT EXECUTED
PIPE_UNLOCK(pipe);
if (! PIPE_READWAIT(pipe))
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
/* WARN waitingReaders not restored! */
ret = -EINTR;
a000ffa8: e3e07003 mvn r7, #3 <== NOT EXECUTED
out_locked:
PIPE_UNLOCK(pipe);
out_nolock:
if (read > 0)
a000ffac: e3560000 cmp r6, #0 <== NOT EXECUTED a000ffb0: c1a00006 movgt r0, r6 <== NOT EXECUTED a000ffb4: d1a00007 movle r0, r7 <== NOT EXECUTED a000ffb8: ea000000 b a000ffc0 <pipe_read+0x17c> <== NOT EXECUTED
)
{
int chunk, chunk1, read = 0, ret = 0;
if (! PIPE_LOCK(pipe))
return -EINTR;
a000ffbc: e3e00003 mvn r0, #3 <== NOT EXECUTED
out_nolock:
if (read > 0)
return read;
return ret;
}
a000ffc0: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a000f998 <pipe_release>:
/* WARN pipe not released! */
if (!PIPE_LOCK(pipe))
rtems_fatal_error_occurred(0xdeadbeef);
#endif
mode = LIBIO_ACCMODE(iop);
a000f998: e5913014 ldr r3, [r1, #20] <== NOT EXECUTED
*/
void pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
a000f99c: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
pipe_control_t *pipe = *pipep;
a000f9a0: e5904000 ldr r4, [r0] <== NOT EXECUTED
if (!PIPE_LOCK(pipe))
rtems_fatal_error_occurred(0xdeadbeef);
#endif
mode = LIBIO_ACCMODE(iop);
if (mode & LIBIO_FLAGS_READ)
a000f9a4: e3130002 tst r3, #2 <== NOT EXECUTED
/* WARN pipe not released! */
if (!PIPE_LOCK(pipe))
rtems_fatal_error_occurred(0xdeadbeef);
#endif
mode = LIBIO_ACCMODE(iop);
a000f9a8: e2036006 and r6, r3, #6 <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
pipe->Readers --;
a000f9ac: 15943010 ldrne r3, [r4, #16] <== NOT EXECUTED
*/
void pipe_release(
pipe_control_t **pipep,
rtems_libio_t *iop
)
{
a000f9b0: e1a05000 mov r5, r0 <== NOT EXECUTED
if (mode & LIBIO_FLAGS_READ)
pipe->Readers --;
if (mode & LIBIO_FLAGS_WRITE)
pipe->Writers --;
PIPE_UNLOCK(pipe);
a000f9b4: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED
rtems_fatal_error_occurred(0xdeadbeef);
#endif
mode = LIBIO_ACCMODE(iop);
if (mode & LIBIO_FLAGS_READ)
pipe->Readers --;
a000f9b8: 12433001 subne r3, r3, #1 <== NOT EXECUTED a000f9bc: 15843010 strne r3, [r4, #16] <== NOT EXECUTED
if (mode & LIBIO_FLAGS_WRITE)
a000f9c0: e3160004 tst r6, #4 <== NOT EXECUTED
pipe->Writers --;
a000f9c4: 15943014 ldrne r3, [r4, #20] <== NOT EXECUTED a000f9c8: 12433001 subne r3, r3, #1 <== NOT EXECUTED a000f9cc: 15843014 strne r3, [r4, #20] <== NOT EXECUTED
PIPE_UNLOCK(pipe);
a000f9d0: ebffeecd bl a000b50c <rtems_semaphore_release> <== NOT EXECUTED
if (pipe->Readers == 0 && pipe->Writers == 0) {
a000f9d4: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000f9d8: e3530000 cmp r3, #0 <== NOT EXECUTED a000f9dc: 1a000006 bne a000f9fc <pipe_release+0x64> <== NOT EXECUTED a000f9e0: e5947014 ldr r7, [r4, #20] <== NOT EXECUTED a000f9e4: e3570000 cmp r7, #0 <== NOT EXECUTED a000f9e8: 1a000003 bne a000f9fc <pipe_release+0x64> <== NOT EXECUTED
#if 0
/* To delete an anonymous pipe file when all users closed it */
if (pipe->Anonymous)
delfile = TRUE;
#endif
pipe_free(pipe);
a000f9ec: e1a00004 mov r0, r4 <== NOT EXECUTED a000f9f0: ebffffdb bl a000f964 <pipe_free> <== NOT EXECUTED
*pipep = NULL;
a000f9f4: e5857000 str r7, [r5] <== NOT EXECUTED a000f9f8: ea000010 b a000fa40 <pipe_release+0xa8> <== NOT EXECUTED
} else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
a000f9fc: e2562004 subs r2, r6, #4 <== NOT EXECUTED a000fa00: 13a02001 movne r2, #1 <== NOT EXECUTED a000fa04: e3530000 cmp r3, #0 <== NOT EXECUTED a000fa08: 13a02000 movne r2, #0 <== NOT EXECUTED a000fa0c: e3520000 cmp r2, #0 <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
a000fa10: 15940030 ldrne r0, [r4, #48] ; 0x30 <== NOT EXECUTED
delfile = TRUE;
#endif
pipe_free(pipe);
*pipep = NULL;
}
else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)
a000fa14: 1a000007 bne a000fa38 <pipe_release+0xa0> <== NOT EXECUTED
/* Notify waiting Writers that all their partners left */
PIPE_WAKEUPWRITERS(pipe);
else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)
a000fa18: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000fa1c: e2566002 subs r6, r6, #2 <== NOT EXECUTED a000fa20: 13a06001 movne r6, #1 <== NOT EXECUTED a000fa24: e3530000 cmp r3, #0 <== NOT EXECUTED a000fa28: 13a06000 movne r6, #0 <== NOT EXECUTED a000fa2c: e3560000 cmp r6, #0 <== NOT EXECUTED a000fa30: 0a000002 beq a000fa40 <pipe_release+0xa8> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
a000fa34: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000fa38: e1a0100d mov r1, sp <== NOT EXECUTED a000fa3c: eb0006c0 bl a0011544 <rtems_barrier_release> <== NOT EXECUTED
pipe_unlock();
a000fa40: ebffffc3 bl a000f954 <pipe_unlock> <== NOT EXECUTED
iop->flags &= ~LIBIO_FLAGS_OPEN;
if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))
return;
#endif
}
a000fa44: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000f954 <pipe_unlock>:
static void pipe_unlock(void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
sc = rtems_semaphore_release(pipe_semaphore);
a000f954: e59f3004 ldr r3, [pc, #4] ; a000f960 <pipe_unlock+0xc> <== NOT EXECUTED a000f958: e5930000 ldr r0, [r3] <== NOT EXECUTED a000f95c: eaffeeea b a000b50c <rtems_semaphore_release> <== NOT EXECUTED
a000ffc4 <pipe_write>:
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
a000ffc4: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
a000ffc8: e2527000 subs r7, r2, #0 <== NOT EXECUTED
pipe_control_t *pipe,
const void *buffer,
size_t count,
rtems_libio_t *iop
)
{
a000ffcc: e1a04000 mov r4, r0 <== NOT EXECUTED a000ffd0: e1a0b001 mov fp, r1 <== NOT EXECUTED a000ffd4: e1a08003 mov r8, r3 <== NOT EXECUTED
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
return 0;
a000ffd8: 01a00007 moveq r0, r7 <== NOT EXECUTED
)
{
int chunk, chunk1, written = 0, ret = 0;
/* Write nothing */
if (count == 0)
a000ffdc: 0a000064 beq a0010174 <pipe_write+0x1b0> <== NOT EXECUTED
return 0;
if (! PIPE_LOCK(pipe))
a000ffe0: e3a01000 mov r1, #0 <== NOT EXECUTED a000ffe4: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000ffe8: e1a02001 mov r2, r1 <== NOT EXECUTED a000ffec: ebffed00 bl a000b3f4 <rtems_semaphore_obtain> <== NOT EXECUTED a000fff0: e3500000 cmp r0, #0 <== NOT EXECUTED
return -EINTR;
a000fff4: 13e00003 mvnne r0, #3 <== NOT EXECUTED
/* Write nothing */
if (count == 0)
return 0;
if (! PIPE_LOCK(pipe))
a000fff8: 1a00005d bne a0010174 <pipe_write+0x1b0> <== NOT EXECUTED
return -EINTR;
if (pipe->Readers == 0) {
a000fffc: e5945010 ldr r5, [r4, #16] <== NOT EXECUTED a0010000: e3550000 cmp r5, #0 <== NOT EXECUTED a0010004: 0a00004d beq a0010140 <pipe_write+0x17c> <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
a0010008: e5949004 ldr r9, [r4, #4] <== NOT EXECUTED
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
ret = -EINTR;
a001000c: e1a05000 mov r5, r0 <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
a0010010: e1570009 cmp r7, r9 <== NOT EXECUTED a0010014: 91a09007 movls r9, r7 <== NOT EXECUTED a0010018: 83a09001 movhi r9, #1 <== NOT EXECUTED a001001c: ea000041 b a0010128 <pipe_write+0x164> <== NOT EXECUTED
while (written < count) {
while (PIPE_SPACE(pipe) < chunk) {
if (LIBIO_NODELAY(iop)) {
a0010020: e598a014 ldr sl, [r8, #20] <== NOT EXECUTED a0010024: e21aa001 ands sl, sl, #1 <== NOT EXECUTED a0010028: 1a000042 bne a0010138 <pipe_write+0x174> <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
a001002c: e594301c ldr r3, [r4, #28] <== NOT EXECUTED
PIPE_UNLOCK(pipe);
a0010030: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED
ret = -EAGAIN;
goto out_locked;
}
/* Wait until there is chunk bytes space or no reader exists */
pipe->waitingWriters ++;
a0010034: e2833001 add r3, r3, #1 <== NOT EXECUTED a0010038: e584301c str r3, [r4, #28] <== NOT EXECUTED
PIPE_UNLOCK(pipe);
a001003c: ebffed32 bl a000b50c <rtems_semaphore_release> <== NOT EXECUTED
if (! PIPE_WRITEWAIT(pipe))
a0010040: e1a0100a mov r1, sl <== NOT EXECUTED a0010044: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a0010048: eb000553 bl a001159c <rtems_barrier_wait> <== NOT EXECUTED a001004c: e3500000 cmp r0, #0 <== NOT EXECUTED a0010050: 01a06000 moveq r6, r0 <== NOT EXECUTED a0010054: 13e06003 mvnne r6, #3 <== NOT EXECUTED
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
a0010058: e1a0100a mov r1, sl <== NOT EXECUTED a001005c: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a0010060: e1a0200a mov r2, sl <== NOT EXECUTED a0010064: ebffece2 bl a000b3f4 <rtems_semaphore_obtain> <== NOT EXECUTED a0010068: e3500000 cmp r0, #0 <== NOT EXECUTED a001006c: 1a00003c bne a0010164 <pipe_write+0x1a0> <== NOT EXECUTED
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
a0010070: e594301c ldr r3, [r4, #28] <== NOT EXECUTED
if (ret != 0)
a0010074: e3560000 cmp r6, #0 <== NOT EXECUTED
if (! PIPE_LOCK(pipe)) {
/* WARN waitingWriters not restored! */
ret = -EINTR;
goto out_nolock;
}
pipe->waitingWriters --;
a0010078: e2433001 sub r3, r3, #1 <== NOT EXECUTED a001007c: e584301c str r3, [r4, #28] <== NOT EXECUTED
if (ret != 0)
a0010080: 1a00002f bne a0010144 <pipe_write+0x180> <== NOT EXECUTED
goto out_locked;
if (pipe->Readers == 0) {
a0010084: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a0010088: e3530000 cmp r3, #0 <== NOT EXECUTED a001008c: 0a00002b beq a0010140 <pipe_write+0x17c> <== NOT EXECUTED
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
while (PIPE_SPACE(pipe) < chunk) {
a0010090: e594a004 ldr sl, [r4, #4] <== NOT EXECUTED a0010094: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a0010098: e063200a rsb r2, r3, sl <== NOT EXECUTED a001009c: e1520009 cmp r2, r9 <== NOT EXECUTED a00100a0: 3affffde bcc a0010020 <pipe_write+0x5c> <== NOT EXECUTED
goto out_locked;
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
chunk1 = pipe->Size - PIPE_WSTART(pipe);
a00100a4: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a00100a8: e1a0100a mov r1, sl <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
a00100ac: e0656007 rsb r6, r5, r7 <== NOT EXECUTED
chunk1 = pipe->Size - PIPE_WSTART(pipe);
a00100b0: e0830000 add r0, r3, r0 <== NOT EXECUTED
ret = -EPIPE;
goto out_locked;
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
a00100b4: e1520006 cmp r2, r6 <== NOT EXECUTED a00100b8: 31a06002 movcc r6, r2 <== NOT EXECUTED
chunk1 = pipe->Size - PIPE_WSTART(pipe);
a00100bc: eb003fc9 bl a001ffe8 <__umodsi3> <== NOT EXECUTED a00100c0: e5943000 ldr r3, [r4] <== NOT EXECUTED a00100c4: e060a00a rsb sl, r0, sl <== NOT EXECUTED
if (chunk > chunk1) {
a00100c8: e156000a cmp r6, sl <== NOT EXECUTED a00100cc: e08b1005 add r1, fp, r5 <== NOT EXECUTED
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
a00100d0: d0830000 addle r0, r3, r0 <== NOT EXECUTED a00100d4: d1a02006 movle r2, r6 <== NOT EXECUTED
}
}
chunk = MIN(count - written, PIPE_SPACE(pipe));
chunk1 = pipe->Size - PIPE_WSTART(pipe);
if (chunk > chunk1) {
a00100d8: da000006 ble a00100f8 <pipe_write+0x134> <== NOT EXECUTED
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
a00100dc: e1a0200a mov r2, sl <== NOT EXECUTED a00100e0: e0830000 add r0, r3, r0 <== NOT EXECUTED a00100e4: eb00105e bl a0014264 <memcpy> <== NOT EXECUTED
memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
a00100e8: e5940000 ldr r0, [r4] <== NOT EXECUTED a00100ec: e08a1005 add r1, sl, r5 <== NOT EXECUTED a00100f0: e08b1001 add r1, fp, r1 <== NOT EXECUTED a00100f4: e06a2006 rsb r2, sl, r6 <== NOT EXECUTED
}
else
memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
a00100f8: eb001059 bl a0014264 <memcpy> <== NOT EXECUTED
pipe->Length += chunk;
a00100fc: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a0010100: e0833006 add r3, r3, r6 <== NOT EXECUTED a0010104: e584300c str r3, [r4, #12] <== NOT EXECUTED
if (pipe->waitingReaders > 0)
a0010108: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED a001010c: e3530000 cmp r3, #0 <== NOT EXECUTED a0010110: 0a000002 beq a0010120 <pipe_write+0x15c> <== NOT EXECUTED
PIPE_WAKEUPREADERS(pipe);
a0010114: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a0010118: e1a0100d mov r1, sp <== NOT EXECUTED a001011c: eb000508 bl a0011544 <rtems_barrier_release> <== NOT EXECUTED
written += chunk;
a0010120: e0855006 add r5, r5, r6 <== NOT EXECUTED
/* Write of more than PIPE_BUF bytes can be interleaved */
chunk = 1;
a0010124: e3a09001 mov r9, #1 <== NOT EXECUTED
}
/* Write of PIPE_BUF bytes or less shall not be interleaved */
chunk = count <= pipe->Size ? count : 1;
while (written < count) {
a0010128: e1550007 cmp r5, r7 <== NOT EXECUTED a001012c: 3affffd7 bcc a0010090 <pipe_write+0xcc> <== NOT EXECUTED a0010130: e3a06000 mov r6, #0 <== NOT EXECUTED a0010134: ea000002 b a0010144 <pipe_write+0x180> <== NOT EXECUTED
while (PIPE_SPACE(pipe) < chunk) {
if (LIBIO_NODELAY(iop)) {
ret = -EAGAIN;
a0010138: e3e0600a mvn r6, #10 <== NOT EXECUTED a001013c: ea000000 b a0010144 <pipe_write+0x180> <== NOT EXECUTED
pipe->waitingWriters --;
if (ret != 0)
goto out_locked;
if (pipe->Readers == 0) {
ret = -EPIPE;
a0010140: e3e0601f mvn r6, #31 <== NOT EXECUTED
/* Write of more than PIPE_BUF bytes can be interleaved */
chunk = 1;
}
out_locked:
PIPE_UNLOCK(pipe);
a0010144: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a0010148: ebffecef bl a000b50c <rtems_semaphore_release> <== NOT EXECUTED
out_nolock:
#ifdef RTEMS_POSIX_API
/* Signal SIGPIPE */
if (ret == -EPIPE)
a001014c: e3760020 cmn r6, #32 <== NOT EXECUTED a0010150: 1a000004 bne a0010168 <pipe_write+0x1a4> <== NOT EXECUTED
kill(getpid(), SIGPIPE);
a0010154: eb0001f3 bl a0010928 <getpid> <== NOT EXECUTED a0010158: e3a0100d mov r1, #13 <== NOT EXECUTED a001015c: eb0002a5 bl a0010bf8 <kill> <== NOT EXECUTED a0010160: ea000000 b a0010168 <pipe_write+0x1a4> <== NOT EXECUTED
PIPE_UNLOCK(pipe);
if (! PIPE_WRITEWAIT(pipe))
ret = -EINTR;
if (! PIPE_LOCK(pipe)) {
/* WARN waitingWriters not restored! */
ret = -EINTR;
a0010164: e3e06003 mvn r6, #3 <== NOT EXECUTED
/* Signal SIGPIPE */
if (ret == -EPIPE)
kill(getpid(), SIGPIPE);
#endif
if (written > 0)
a0010168: e3550000 cmp r5, #0 <== NOT EXECUTED a001016c: c1a00005 movgt r0, r5 <== NOT EXECUTED a0010170: d1a00006 movle r0, r6 <== NOT EXECUTED
return written;
return ret;
}
a0010174: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a000ae80 <posix_memalign>:
)
{
/*
* Update call statistics
*/
MSBUMP(memalign_calls, 1);
a000ae80: e59fc040 ldr ip, [pc, #64] ; a000aec8 <posix_memalign+0x48><== NOT EXECUTED
int posix_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
a000ae84: e92d4010 push {r4, lr} <== NOT EXECUTED
/* * Update call statistics */ MSBUMP(memalign_calls, 1);
a000ae88: e59c4008 ldr r4, [ip, #8] <== NOT EXECUTED a000ae8c: e2844001 add r4, r4, #1 <== NOT EXECUTED a000ae90: e58c4008 str r4, [ip, #8] <== NOT EXECUTED
if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
a000ae94: e241c001 sub ip, r1, #1 <== NOT EXECUTED a000ae98: e11c0001 tst ip, r1 <== NOT EXECUTED a000ae9c: 03a0c000 moveq ip, #0 <== NOT EXECUTED a000aea0: 13a0c001 movne ip, #1 <== NOT EXECUTED a000aea4: e3510003 cmp r1, #3 <== NOT EXECUTED a000aea8: 81a0300c movhi r3, ip <== NOT EXECUTED a000aeac: 938c3001 orrls r3, ip, #1 <== NOT EXECUTED a000aeb0: e3530000 cmp r3, #0 <== NOT EXECUTED a000aeb4: 1a000001 bne a000aec0 <posix_memalign+0x40> <== NOT EXECUTED
/* * rtems_memalign does all of the error checking work EXCEPT * for adding restrictionso on the alignment. */ return rtems_memalign( pointer, alignment, size ); }
a000aeb8: e8bd4010 pop {r4, lr} <== NOT EXECUTED
/*
* rtems_memalign does all of the error checking work EXCEPT
* for adding restrictionso on the alignment.
*/
return rtems_memalign( pointer, alignment, size );
a000aebc: ea000078 b a000b0a4 <rtems_memalign> <== NOT EXECUTED
}
a000aec0: e3a00016 mov r0, #22 <== NOT EXECUTED
a000aec4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0008304 <printk_plugin>:
int printk_plugin(
void *ignored __attribute__((unused)),
const char *format,
...
)
{
a0008304: e92d000e push {r1, r2, r3} <== NOT EXECUTED
a0008308: e92d4001 push {r0, lr} <== NOT EXECUTED
va_list arg_pointer;
va_start (arg_pointer, format);
vprintk( format, arg_pointer );
a000830c: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED
...
)
{
va_list arg_pointer;
va_start (arg_pointer, format);
a0008310: e28d100c add r1, sp, #12 <== NOT EXECUTED a0008314: e58d1000 str r1, [sp] <== NOT EXECUTED
vprintk( format, arg_pointer );
a0008318: eb0006c7 bl a0009e3c <vprintk> <== NOT EXECUTED
va_end(arg_pointer); /* clean up when done */
return 0;
}
a000831c: e3a00000 mov r0, #0 <== NOT EXECUTED
a0008320: e8bd4008 pop {r3, lr} <== NOT EXECUTED
a0008324: e28dd00c add sp, sp, #12 <== NOT EXECUTED
a0008328: e12fff1e bx lr <== NOT EXECUTED
a0009258 <pthread_atfork>:
int pthread_atfork(
void (*prepare)(void) __attribute__((unused)),
void (*parent)(void) __attribute__((unused)),
void (*child)(void) __attribute__((unused))
)
{
a0009258: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a000925c: eb0021c9 bl a0011988 <__errno> <== NOT EXECUTED a0009260: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a0009264: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0009268: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000926c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000e408 <pthread_attr_destroy>:
int pthread_attr_destroy(
pthread_attr_t *attr
)
{
if ( !attr || !attr->is_initialized )
a000e408: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000e40c: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_destroy(
pthread_attr_t *attr
)
{
if ( !attr || !attr->is_initialized )
a000e410: 012fff1e bxeq lr <== NOT EXECUTED a000e414: e5932000 ldr r2, [r3] <== NOT EXECUTED a000e418: e3520000 cmp r2, #0 <== NOT EXECUTED
return EINVAL;
attr->is_initialized = false;
a000e41c: 13a00000 movne r0, #0 <== NOT EXECUTED a000e420: 15830000 strne r0, [r3] <== NOT EXECUTED
int pthread_attr_destroy(
pthread_attr_t *attr
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000e424: 03a00016 moveq r0, #22 <== NOT EXECUTED
attr->is_initialized = false;
return 0;
}
a000e428: e12fff1e bx lr <== NOT EXECUTED
a000eb5c <pthread_attr_getcputime>:
int pthread_attr_getcputime(
pthread_attr_t *attr,
int *clock_allowed
)
{
if ( !attr || !attr->is_initialized || !clock_allowed )
a000eb5c: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000eb60: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_getcputime(
pthread_attr_t *attr,
int *clock_allowed
)
{
if ( !attr || !attr->is_initialized || !clock_allowed )
a000eb64: 012fff1e bxeq lr <== NOT EXECUTED a000eb68: e5930000 ldr r0, [r3] <== NOT EXECUTED a000eb6c: e3500000 cmp r0, #0 <== NOT EXECUTED a000eb70: 13510000 cmpne r1, #0 <== NOT EXECUTED
return EINVAL;
*clock_allowed = attr->cputime_clock_allowed;
a000eb74: 15933038 ldrne r3, [r3, #56] ; 0x38 <== NOT EXECUTED
int pthread_attr_getcputime(
pthread_attr_t *attr,
int *clock_allowed
)
{
if ( !attr || !attr->is_initialized || !clock_allowed )
a000eb78: 13a00000 movne r0, #0 <== NOT EXECUTED a000eb7c: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a000eb80: 03a00016 moveq r0, #22 <== NOT EXECUTED
*clock_allowed = attr->cputime_clock_allowed;
a000eb84: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000eb88: e12fff1e bx lr <== NOT EXECUTED
a000e42c <pthread_attr_getdetachstate>:
int pthread_attr_getdetachstate(
const pthread_attr_t *attr,
int *detachstate
)
{
if ( !attr || !attr->is_initialized || !detachstate )
a000e42c: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000e430: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_getdetachstate(
const pthread_attr_t *attr,
int *detachstate
)
{
if ( !attr || !attr->is_initialized || !detachstate )
a000e434: 012fff1e bxeq lr <== NOT EXECUTED a000e438: e5930000 ldr r0, [r3] <== NOT EXECUTED a000e43c: e3500000 cmp r0, #0 <== NOT EXECUTED a000e440: 13510000 cmpne r1, #0 <== NOT EXECUTED
return EINVAL;
*detachstate = attr->detachstate;
a000e444: 1593303c ldrne r3, [r3, #60] ; 0x3c <== NOT EXECUTED
int pthread_attr_getdetachstate(
const pthread_attr_t *attr,
int *detachstate
)
{
if ( !attr || !attr->is_initialized || !detachstate )
a000e448: 13a00000 movne r0, #0 <== NOT EXECUTED a000e44c: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a000e450: 03a00016 moveq r0, #22 <== NOT EXECUTED
*detachstate = attr->detachstate;
a000e454: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000e458: e12fff1e bx lr <== NOT EXECUTED
a000e45c <pthread_attr_getguardsize>:
int pthread_attr_getguardsize(
const pthread_attr_t *attr,
size_t *guardsize
)
{
if ( !attr || !attr->is_initialized || !guardsize )
a000e45c: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000e460: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_getguardsize(
const pthread_attr_t *attr,
size_t *guardsize
)
{
if ( !attr || !attr->is_initialized || !guardsize )
a000e464: 012fff1e bxeq lr <== NOT EXECUTED a000e468: e5930000 ldr r0, [r3] <== NOT EXECUTED a000e46c: e3500000 cmp r0, #0 <== NOT EXECUTED a000e470: 13510000 cmpne r1, #0 <== NOT EXECUTED
return EINVAL;
*guardsize = attr->guardsize;
a000e474: 15933034 ldrne r3, [r3, #52] ; 0x34 <== NOT EXECUTED
int pthread_attr_getguardsize(
const pthread_attr_t *attr,
size_t *guardsize
)
{
if ( !attr || !attr->is_initialized || !guardsize )
a000e478: 13a00000 movne r0, #0 <== NOT EXECUTED a000e47c: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a000e480: 03a00016 moveq r0, #22 <== NOT EXECUTED
*guardsize = attr->guardsize;
a000e484: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000e488: e12fff1e bx lr <== NOT EXECUTED
a000e48c <pthread_attr_getinheritsched>:
int pthread_attr_getinheritsched(
const pthread_attr_t *attr,
int *inheritsched
)
{
if ( !attr || !attr->is_initialized || !inheritsched )
a000e48c: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000e490: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_getinheritsched(
const pthread_attr_t *attr,
int *inheritsched
)
{
if ( !attr || !attr->is_initialized || !inheritsched )
a000e494: 012fff1e bxeq lr <== NOT EXECUTED a000e498: e5930000 ldr r0, [r3] <== NOT EXECUTED a000e49c: e3500000 cmp r0, #0 <== NOT EXECUTED a000e4a0: 13510000 cmpne r1, #0 <== NOT EXECUTED
return EINVAL;
*inheritsched = attr->inheritsched;
a000e4a4: 15933010 ldrne r3, [r3, #16] <== NOT EXECUTED
int pthread_attr_getinheritsched(
const pthread_attr_t *attr,
int *inheritsched
)
{
if ( !attr || !attr->is_initialized || !inheritsched )
a000e4a8: 13a00000 movne r0, #0 <== NOT EXECUTED a000e4ac: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a000e4b0: 03a00016 moveq r0, #22 <== NOT EXECUTED
*inheritsched = attr->inheritsched;
a000e4b4: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000e4b8: e12fff1e bx lr <== NOT EXECUTED
a000e4bc <pthread_attr_getschedparam>:
int pthread_attr_getschedparam(
const pthread_attr_t *attr,
struct sched_param *param
)
{
if ( !attr || !attr->is_initialized || !param )
a000e4bc: e3500000 cmp r0, #0 <== NOT EXECUTED
int pthread_attr_getschedparam(
const pthread_attr_t *attr,
struct sched_param *param
)
{
a000e4c0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a000e4c4: e1a04001 mov r4, r1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !param )
a000e4c8: 0a00000c beq a000e500 <pthread_attr_getschedparam+0x44> <== NOT EXECUTED a000e4cc: e5905000 ldr r5, [r0] <== NOT EXECUTED a000e4d0: e3550000 cmp r5, #0 <== NOT EXECUTED a000e4d4: 13510000 cmpne r1, #0 <== NOT EXECUTED a000e4d8: 13a05000 movne r5, #0 <== NOT EXECUTED a000e4dc: 03a05001 moveq r5, #1 <== NOT EXECUTED a000e4e0: 0a000008 beq a000e508 <pthread_attr_getschedparam+0x4c> <== NOT EXECUTED
return EINVAL;
*param = attr->schedparam;
a000e4e4: e280c018 add ip, r0, #24 <== NOT EXECUTED
a000e4e8: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000e4ec: e8a4000f stmia r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a000e4f0: e89c0007 ldm ip, {r0, r1, r2} <== NOT EXECUTED
a000e4f4: e8840007 stm r4, {r0, r1, r2} <== NOT EXECUTED
return 0;
a000e4f8: e1a00005 mov r0, r5 <== NOT EXECUTED
a000e4fc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
const pthread_attr_t *attr,
struct sched_param *param
)
{
if ( !attr || !attr->is_initialized || !param )
return EINVAL;
a000e500: e3a00016 mov r0, #22 <== NOT EXECUTED
a000e504: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000e508: e3a00016 mov r0, #22 <== NOT EXECUTED
*param = attr->schedparam;
return 0;
}
a000e50c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000e510 <pthread_attr_getschedpolicy>:
int pthread_attr_getschedpolicy(
const pthread_attr_t *attr,
int *policy
)
{
if ( !attr || !attr->is_initialized || !policy )
a000e510: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000e514: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_getschedpolicy(
const pthread_attr_t *attr,
int *policy
)
{
if ( !attr || !attr->is_initialized || !policy )
a000e518: 012fff1e bxeq lr <== NOT EXECUTED a000e51c: e5930000 ldr r0, [r3] <== NOT EXECUTED a000e520: e3500000 cmp r0, #0 <== NOT EXECUTED a000e524: 13510000 cmpne r1, #0 <== NOT EXECUTED
return EINVAL;
*policy = attr->schedpolicy;
a000e528: 15933014 ldrne r3, [r3, #20] <== NOT EXECUTED
int pthread_attr_getschedpolicy(
const pthread_attr_t *attr,
int *policy
)
{
if ( !attr || !attr->is_initialized || !policy )
a000e52c: 13a00000 movne r0, #0 <== NOT EXECUTED a000e530: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a000e534: 03a00016 moveq r0, #22 <== NOT EXECUTED
*policy = attr->schedpolicy;
a000e538: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000e53c: e12fff1e bx lr <== NOT EXECUTED
a000e540 <pthread_attr_getscope>:
int pthread_attr_getscope(
const pthread_attr_t *attr,
int *contentionscope
)
{
if ( !attr || !attr->is_initialized || !contentionscope )
a000e540: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000e544: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_getscope(
const pthread_attr_t *attr,
int *contentionscope
)
{
if ( !attr || !attr->is_initialized || !contentionscope )
a000e548: 012fff1e bxeq lr <== NOT EXECUTED a000e54c: e5930000 ldr r0, [r3] <== NOT EXECUTED a000e550: e3500000 cmp r0, #0 <== NOT EXECUTED a000e554: 13510000 cmpne r1, #0 <== NOT EXECUTED
return EINVAL;
*contentionscope = attr->contentionscope;
a000e558: 1593300c ldrne r3, [r3, #12] <== NOT EXECUTED
int pthread_attr_getscope(
const pthread_attr_t *attr,
int *contentionscope
)
{
if ( !attr || !attr->is_initialized || !contentionscope )
a000e55c: 13a00000 movne r0, #0 <== NOT EXECUTED a000e560: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a000e564: 03a00016 moveq r0, #22 <== NOT EXECUTED
*contentionscope = attr->contentionscope;
a000e568: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000e56c: e12fff1e bx lr <== NOT EXECUTED
a000e5a0 <pthread_attr_getstack>:
const pthread_attr_t *attr,
void **stackaddr,
size_t *stacksize
)
{
if ( !attr || !attr->is_initialized || !stackaddr || !stacksize )
a000e5a0: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000e5a4: 0a00000c beq a000e5dc <pthread_attr_getstack+0x3c> <== NOT EXECUTED a000e5a8: e5930000 ldr r0, [r3] <== NOT EXECUTED a000e5ac: e3500000 cmp r0, #0 <== NOT EXECUTED a000e5b0: 13510000 cmpne r1, #0 <== NOT EXECUTED a000e5b4: 13a00000 movne r0, #0 <== NOT EXECUTED a000e5b8: 03a00001 moveq r0, #1 <== NOT EXECUTED a000e5bc: 0a000006 beq a000e5dc <pthread_attr_getstack+0x3c> <== NOT EXECUTED a000e5c0: e3520000 cmp r2, #0 <== NOT EXECUTED a000e5c4: 0a000006 beq a000e5e4 <pthread_attr_getstack+0x44> <== NOT EXECUTED
return EINVAL;
*stackaddr = attr->stackaddr;
a000e5c8: e593c004 ldr ip, [r3, #4] <== NOT EXECUTED
*stacksize = attr->stacksize;
a000e5cc: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized || !stackaddr || !stacksize )
return EINVAL;
*stackaddr = attr->stackaddr;
a000e5d0: e581c000 str ip, [r1] <== NOT EXECUTED
*stacksize = attr->stacksize;
a000e5d4: e5823000 str r3, [r2] <== NOT EXECUTED
return 0;
a000e5d8: e12fff1e bx lr <== NOT EXECUTED
void **stackaddr,
size_t *stacksize
)
{
if ( !attr || !attr->is_initialized || !stackaddr || !stacksize )
return EINVAL;
a000e5dc: e3a00016 mov r0, #22 <== NOT EXECUTED a000e5e0: e12fff1e bx lr <== NOT EXECUTED a000e5e4: e3a00016 mov r0, #22 <== NOT EXECUTED
*stackaddr = attr->stackaddr;
*stacksize = attr->stacksize;
return 0;
}
a000e5e8: e12fff1e bx lr <== NOT EXECUTED
a000e570 <pthread_attr_getstackaddr>:
int pthread_attr_getstackaddr(
const pthread_attr_t *attr,
void **stackaddr
)
{
if ( !attr || !attr->is_initialized || !stackaddr )
a000e570: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000e574: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_getstackaddr(
const pthread_attr_t *attr,
void **stackaddr
)
{
if ( !attr || !attr->is_initialized || !stackaddr )
a000e578: 012fff1e bxeq lr <== NOT EXECUTED a000e57c: e5930000 ldr r0, [r3] <== NOT EXECUTED a000e580: e3500000 cmp r0, #0 <== NOT EXECUTED a000e584: 13510000 cmpne r1, #0 <== NOT EXECUTED
return EINVAL;
*stackaddr = attr->stackaddr;
a000e588: 15933004 ldrne r3, [r3, #4] <== NOT EXECUTED
int pthread_attr_getstackaddr(
const pthread_attr_t *attr,
void **stackaddr
)
{
if ( !attr || !attr->is_initialized || !stackaddr )
a000e58c: 13a00000 movne r0, #0 <== NOT EXECUTED a000e590: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a000e594: 03a00016 moveq r0, #22 <== NOT EXECUTED
*stackaddr = attr->stackaddr;
a000e598: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000e59c: e12fff1e bx lr <== NOT EXECUTED
a000e5ec <pthread_attr_getstacksize>:
int pthread_attr_getstacksize(
const pthread_attr_t *attr,
size_t *stacksize
)
{
if ( !attr || !attr->is_initialized || !stacksize )
a000e5ec: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000e5f0: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_getstacksize(
const pthread_attr_t *attr,
size_t *stacksize
)
{
if ( !attr || !attr->is_initialized || !stacksize )
a000e5f4: 012fff1e bxeq lr <== NOT EXECUTED a000e5f8: e5930000 ldr r0, [r3] <== NOT EXECUTED a000e5fc: e3500000 cmp r0, #0 <== NOT EXECUTED a000e600: 13510000 cmpne r1, #0 <== NOT EXECUTED
return EINVAL;
*stacksize = attr->stacksize;
a000e604: 15933008 ldrne r3, [r3, #8] <== NOT EXECUTED
int pthread_attr_getstacksize(
const pthread_attr_t *attr,
size_t *stacksize
)
{
if ( !attr || !attr->is_initialized || !stacksize )
a000e608: 13a00000 movne r0, #0 <== NOT EXECUTED a000e60c: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a000e610: 03a00016 moveq r0, #22 <== NOT EXECUTED
*stacksize = attr->stacksize;
a000e614: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000e618: e12fff1e bx lr <== NOT EXECUTED
a000f994 <pthread_attr_init>:
#include <rtems/posix/pthread.h>
int pthread_attr_init(
pthread_attr_t *attr
)
{
a000f994: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
if ( !attr )
a000f998: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000f99c: 0a00000b beq a000f9d0 <pthread_attr_init+0x3c> <== NOT EXECUTED
return EINVAL;
*attr = _POSIX_Threads_Default_attributes;
a000f9a0: e59f4030 ldr r4, [pc, #48] ; a000f9d8 <pthread_attr_init+0x44><== NOT EXECUTED
a000f9a4: e1a0c005 mov ip, r5 <== NOT EXECUTED
a000f9a8: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a000f9ac: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000f9b0: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a000f9b4: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000f9b8: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a000f9bc: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000f9c0: e894000f ldm r4, {r0, r1, r2, r3} <== NOT EXECUTED
a000f9c4: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED
return 0;
a000f9c8: e3a00000 mov r0, #0 <== NOT EXECUTED
a000f9cc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
int pthread_attr_init(
pthread_attr_t *attr
)
{
if ( !attr )
return EINVAL;
a000f9d0: e3a00016 mov r0, #22 <== NOT EXECUTED
*attr = _POSIX_Threads_Default_attributes;
return 0;
}
a000f9d4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000f014 <pthread_attr_setcputime>:
int pthread_attr_setcputime(
pthread_attr_t *attr,
int clock_allowed
)
{
if ( !attr || !attr->is_initialized )
a000f014: e3500000 cmp r0, #0 <== NOT EXECUTED a000f018: 0a000007 beq a000f03c <pthread_attr_setcputime+0x28> <== NOT EXECUTED a000f01c: e5903000 ldr r3, [r0] <== NOT EXECUTED a000f020: e3530000 cmp r3, #0 <== NOT EXECUTED a000f024: 0a000004 beq a000f03c <pthread_attr_setcputime+0x28> <== NOT EXECUTED
return EINVAL;
switch ( clock_allowed ) {
a000f028: e3510001 cmp r1, #1 <== NOT EXECUTED
case CLOCK_ENABLED:
case CLOCK_DISABLED:
attr->cputime_clock_allowed = clock_allowed;
a000f02c: 95801038 strls r1, [r0, #56] ; 0x38 <== NOT EXECUTED
return 0;
a000f030: 93a00000 movls r0, #0 <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( clock_allowed ) {
a000f034: 912fff1e bxls lr <== NOT EXECUTED a000f038: ea000001 b a000f044 <pthread_attr_setcputime+0x30> <== NOT EXECUTED
pthread_attr_t *attr,
int clock_allowed
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000f03c: e3a00016 mov r0, #22 <== NOT EXECUTED a000f040: e12fff1e bx lr <== NOT EXECUTED
case CLOCK_DISABLED:
attr->cputime_clock_allowed = clock_allowed;
return 0;
default:
return EINVAL;
a000f044: e3a00016 mov r0, #22 <== NOT EXECUTED
} }
a000f048: e12fff1e bx lr <== NOT EXECUTED
a000e664 <pthread_attr_setdetachstate>:
int pthread_attr_setdetachstate(
pthread_attr_t *attr,
int detachstate
)
{
if ( !attr || !attr->is_initialized )
a000e664: e3500000 cmp r0, #0 <== NOT EXECUTED a000e668: 0a000007 beq a000e68c <pthread_attr_setdetachstate+0x28> <== NOT EXECUTED a000e66c: e5903000 ldr r3, [r0] <== NOT EXECUTED a000e670: e3530000 cmp r3, #0 <== NOT EXECUTED a000e674: 0a000004 beq a000e68c <pthread_attr_setdetachstate+0x28> <== NOT EXECUTED
return EINVAL;
switch ( detachstate ) {
a000e678: e3510001 cmp r1, #1 <== NOT EXECUTED
case PTHREAD_CREATE_DETACHED:
case PTHREAD_CREATE_JOINABLE:
attr->detachstate = detachstate;
a000e67c: 9580103c strls r1, [r0, #60] ; 0x3c <== NOT EXECUTED
return 0;
a000e680: 93a00000 movls r0, #0 <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( detachstate ) {
a000e684: 912fff1e bxls lr <== NOT EXECUTED a000e688: ea000001 b a000e694 <pthread_attr_setdetachstate+0x30> <== NOT EXECUTED
pthread_attr_t *attr,
int detachstate
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000e68c: e3a00016 mov r0, #22 <== NOT EXECUTED a000e690: e12fff1e bx lr <== NOT EXECUTED
case PTHREAD_CREATE_JOINABLE:
attr->detachstate = detachstate;
return 0;
default:
return EINVAL;
a000e694: e3a00016 mov r0, #22 <== NOT EXECUTED
} }
a000e698: e12fff1e bx lr <== NOT EXECUTED
a000e69c <pthread_attr_setguardsize>:
int pthread_attr_setguardsize(
pthread_attr_t *attr,
size_t guardsize
)
{
if ( !attr || !attr->is_initialized )
a000e69c: e3500000 cmp r0, #0 <== NOT EXECUTED
return EINVAL;
a000e6a0: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_setguardsize(
pthread_attr_t *attr,
size_t guardsize
)
{
if ( !attr || !attr->is_initialized )
a000e6a4: 012fff1e bxeq lr <== NOT EXECUTED a000e6a8: e5903000 ldr r3, [r0] <== NOT EXECUTED a000e6ac: e3530000 cmp r3, #0 <== NOT EXECUTED
return EINVAL;
attr->guardsize = guardsize;
a000e6b0: 15801034 strne r1, [r0, #52] ; 0x34 <== NOT EXECUTED
pthread_attr_t *attr,
size_t guardsize
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000e6b4: 03a00016 moveq r0, #22 <== NOT EXECUTED
attr->guardsize = guardsize;
return 0;
a000e6b8: 13a00000 movne r0, #0 <== NOT EXECUTED
}
a000e6bc: e12fff1e bx lr <== NOT EXECUTED
a000f9dc <pthread_attr_setinheritsched>:
int pthread_attr_setinheritsched(
pthread_attr_t *attr,
int inheritsched
)
{
if ( !attr || !attr->is_initialized )
a000f9dc: e3500000 cmp r0, #0 <== NOT EXECUTED a000f9e0: 0a000008 beq a000fa08 <pthread_attr_setinheritsched+0x2c> <== NOT EXECUTED a000f9e4: e5903000 ldr r3, [r0] <== NOT EXECUTED a000f9e8: e3530000 cmp r3, #0 <== NOT EXECUTED a000f9ec: 0a000005 beq a000fa08 <pthread_attr_setinheritsched+0x2c> <== NOT EXECUTED
return EINVAL;
switch ( inheritsched ) {
a000f9f0: e2413001 sub r3, r1, #1 <== NOT EXECUTED a000f9f4: e3530001 cmp r3, #1 <== NOT EXECUTED
case PTHREAD_INHERIT_SCHED:
case PTHREAD_EXPLICIT_SCHED:
attr->inheritsched = inheritsched;
a000f9f8: 95801010 strls r1, [r0, #16] <== NOT EXECUTED
return 0;
a000f9fc: 93a00000 movls r0, #0 <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( inheritsched ) {
a000fa00: 912fff1e bxls lr <== NOT EXECUTED a000fa04: ea000001 b a000fa10 <pthread_attr_setinheritsched+0x34> <== NOT EXECUTED
pthread_attr_t *attr,
int inheritsched
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000fa08: e3a00016 mov r0, #22 <== NOT EXECUTED a000fa0c: e12fff1e bx lr <== NOT EXECUTED
case PTHREAD_EXPLICIT_SCHED:
attr->inheritsched = inheritsched;
return 0;
default:
return ENOTSUP;
a000fa10: e3a00086 mov r0, #134 ; 0x86 <== NOT EXECUTED
} }
a000fa14: e12fff1e bx lr <== NOT EXECUTED
a000e6fc <pthread_attr_setschedparam>:
int pthread_attr_setschedparam(
pthread_attr_t *attr,
const struct sched_param *param
)
{
if ( !attr || !attr->is_initialized || !param )
a000e6fc: e3500000 cmp r0, #0 <== NOT EXECUTED
int pthread_attr_setschedparam(
pthread_attr_t *attr,
const struct sched_param *param
)
{
a000e700: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
if ( !attr || !attr->is_initialized || !param )
a000e704: 0a00000d beq a000e740 <pthread_attr_setschedparam+0x44> <== NOT EXECUTED a000e708: e5905000 ldr r5, [r0] <== NOT EXECUTED a000e70c: e3550000 cmp r5, #0 <== NOT EXECUTED a000e710: 13510000 cmpne r1, #0 <== NOT EXECUTED a000e714: 13a05000 movne r5, #0 <== NOT EXECUTED a000e718: 03a05001 moveq r5, #1 <== NOT EXECUTED a000e71c: 0a000009 beq a000e748 <pthread_attr_setschedparam+0x4c> <== NOT EXECUTED
return EINVAL;
attr->schedparam = *param;
a000e720: e280c018 add ip, r0, #24 <== NOT EXECUTED
a000e724: e1a04001 mov r4, r1 <== NOT EXECUTED
a000e728: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a000e72c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000e730: e8940007 ldm r4, {r0, r1, r2} <== NOT EXECUTED
a000e734: e88c0007 stm ip, {r0, r1, r2} <== NOT EXECUTED
return 0;
a000e738: e1a00005 mov r0, r5 <== NOT EXECUTED
a000e73c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
pthread_attr_t *attr,
const struct sched_param *param
)
{
if ( !attr || !attr->is_initialized || !param )
return EINVAL;
a000e740: e3a00016 mov r0, #22 <== NOT EXECUTED
a000e744: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000e748: e3a00016 mov r0, #22 <== NOT EXECUTED
attr->schedparam = *param;
return 0;
}
a000e74c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000e750 <pthread_attr_setschedpolicy>:
int pthread_attr_setschedpolicy(
pthread_attr_t *attr,
int policy
)
{
if ( !attr || !attr->is_initialized )
a000e750: e3500000 cmp r0, #0 <== NOT EXECUTED a000e754: 0a00000b beq a000e788 <pthread_attr_setschedpolicy+0x38> <== NOT EXECUTED a000e758: e5903000 ldr r3, [r0] <== NOT EXECUTED a000e75c: e3530000 cmp r3, #0 <== NOT EXECUTED a000e760: 0a000008 beq a000e788 <pthread_attr_setschedpolicy+0x38> <== NOT EXECUTED
return EINVAL;
switch ( policy ) {
a000e764: e3510004 cmp r1, #4 <== NOT EXECUTED a000e768: 8a000008 bhi a000e790 <pthread_attr_setschedpolicy+0x40> <== NOT EXECUTED a000e76c: e3a03001 mov r3, #1 <== NOT EXECUTED a000e770: e1a03113 lsl r3, r3, r1 <== NOT EXECUTED a000e774: e3130017 tst r3, #23 <== NOT EXECUTED
case SCHED_OTHER:
case SCHED_FIFO:
case SCHED_RR:
case SCHED_SPORADIC:
attr->schedpolicy = policy;
a000e778: 15801014 strne r1, [r0, #20] <== NOT EXECUTED
return 0;
a000e77c: 13a00000 movne r0, #0 <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( policy ) {
a000e780: 112fff1e bxne lr <== NOT EXECUTED a000e784: ea000001 b a000e790 <pthread_attr_setschedpolicy+0x40> <== NOT EXECUTED
pthread_attr_t *attr,
int policy
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000e788: e3a00016 mov r0, #22 <== NOT EXECUTED a000e78c: e12fff1e bx lr <== NOT EXECUTED
case SCHED_SPORADIC:
attr->schedpolicy = policy;
return 0;
default:
return ENOTSUP;
a000e790: e3a00086 mov r0, #134 ; 0x86 <== NOT EXECUTED
} }
a000e794: e12fff1e bx lr <== NOT EXECUTED
a000e798 <pthread_attr_setscope>:
int pthread_attr_setscope(
pthread_attr_t *attr,
int contentionscope
)
{
if ( !attr || !attr->is_initialized )
a000e798: e3500000 cmp r0, #0 <== NOT EXECUTED
return EINVAL;
a000e79c: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_setscope(
pthread_attr_t *attr,
int contentionscope
)
{
if ( !attr || !attr->is_initialized )
a000e7a0: 012fff1e bxeq lr <== NOT EXECUTED a000e7a4: e5903000 ldr r3, [r0] <== NOT EXECUTED a000e7a8: e3530000 cmp r3, #0 <== NOT EXECUTED a000e7ac: 0a000007 beq a000e7d0 <pthread_attr_setscope+0x38> <== NOT EXECUTED
return EINVAL;
switch ( contentionscope ) {
a000e7b0: e3510000 cmp r1, #0 <== NOT EXECUTED
case PTHREAD_SCOPE_PROCESS:
attr->contentionscope = contentionscope;
a000e7b4: 0580100c streq r1, [r0, #12] <== NOT EXECUTED
return 0;
a000e7b8: 01a00001 moveq r0, r1 <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( contentionscope ) {
a000e7bc: 012fff1e bxeq lr <== NOT EXECUTED
case PTHREAD_SCOPE_SYSTEM:
return ENOTSUP;
default:
return EINVAL;
a000e7c0: e3510001 cmp r1, #1 <== NOT EXECUTED a000e7c4: 03a00086 moveq r0, #134 ; 0x86 <== NOT EXECUTED a000e7c8: 13a00016 movne r0, #22 <== NOT EXECUTED a000e7cc: e12fff1e bx lr <== NOT EXECUTED
pthread_attr_t *attr,
int contentionscope
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000e7d0: e3a00016 mov r0, #22 <== NOT EXECUTED
return ENOTSUP;
default:
return EINVAL;
}
}
a000e7d4: e12fff1e bx lr <== NOT EXECUTED
a000e7fc <pthread_attr_setstack>:
pthread_attr_t *attr,
void *stackaddr,
size_t stacksize
)
{
if ( !attr || !attr->is_initialized )
a000e7fc: e3500000 cmp r0, #0 <== NOT EXECUTED
return EINVAL;
a000e800: 03a00016 moveq r0, #22 <== NOT EXECUTED
pthread_attr_t *attr,
void *stackaddr,
size_t stacksize
)
{
if ( !attr || !attr->is_initialized )
a000e804: 012fff1e bxeq lr <== NOT EXECUTED a000e808: e5903000 ldr r3, [r0] <== NOT EXECUTED a000e80c: e3530000 cmp r3, #0 <== NOT EXECUTED a000e810: 0a000008 beq a000e838 <pthread_attr_setstack+0x3c> <== NOT EXECUTED
return EINVAL;
if (stacksize < PTHREAD_MINIMUM_STACK_SIZE)
a000e814: e59f3024 ldr r3, [pc, #36] ; a000e840 <pthread_attr_setstack+0x44><== NOT EXECUTED
attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE;
else
attr->stacksize = stacksize;
attr->stackaddr = stackaddr;
a000e818: e5801004 str r1, [r0, #4] <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
if (stacksize < PTHREAD_MINIMUM_STACK_SIZE)
a000e81c: e5933000 ldr r3, [r3] <== NOT EXECUTED a000e820: e1a03083 lsl r3, r3, #1 <== NOT EXECUTED
attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE;
a000e824: e1530002 cmp r3, r2 <== NOT EXECUTED a000e828: 25803008 strcs r3, [r0, #8] <== NOT EXECUTED a000e82c: 35802008 strcc r2, [r0, #8] <== NOT EXECUTED
else
attr->stacksize = stacksize;
attr->stackaddr = stackaddr;
return 0;
a000e830: e3a00000 mov r0, #0 <== NOT EXECUTED a000e834: e12fff1e bx lr <== NOT EXECUTED
void *stackaddr,
size_t stacksize
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000e838: e3a00016 mov r0, #22 <== NOT EXECUTED
else
attr->stacksize = stacksize;
attr->stackaddr = stackaddr;
return 0;
}
a000e83c: e12fff1e bx lr <== NOT EXECUTED
a000e7d8 <pthread_attr_setstackaddr>:
int pthread_attr_setstackaddr(
pthread_attr_t *attr,
void *stackaddr
)
{
if ( !attr || !attr->is_initialized )
a000e7d8: e3500000 cmp r0, #0 <== NOT EXECUTED
return EINVAL;
a000e7dc: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_setstackaddr(
pthread_attr_t *attr,
void *stackaddr
)
{
if ( !attr || !attr->is_initialized )
a000e7e0: 012fff1e bxeq lr <== NOT EXECUTED a000e7e4: e5903000 ldr r3, [r0] <== NOT EXECUTED a000e7e8: e3530000 cmp r3, #0 <== NOT EXECUTED
return EINVAL;
attr->stackaddr = stackaddr;
a000e7ec: 15801004 strne r1, [r0, #4] <== NOT EXECUTED
pthread_attr_t *attr,
void *stackaddr
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000e7f0: 03a00016 moveq r0, #22 <== NOT EXECUTED
attr->stackaddr = stackaddr;
return 0;
a000e7f4: 13a00000 movne r0, #0 <== NOT EXECUTED
}
a000e7f8: e12fff1e bx lr <== NOT EXECUTED
a000fa18 <pthread_attr_setstacksize>:
int pthread_attr_setstacksize(
pthread_attr_t *attr,
size_t stacksize
)
{
if ( !attr || !attr->is_initialized )
a000fa18: e3500000 cmp r0, #0 <== NOT EXECUTED
return EINVAL;
a000fa1c: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_attr_setstacksize(
pthread_attr_t *attr,
size_t stacksize
)
{
if ( !attr || !attr->is_initialized )
a000fa20: 012fff1e bxeq lr <== NOT EXECUTED a000fa24: e5903000 ldr r3, [r0] <== NOT EXECUTED a000fa28: e3530000 cmp r3, #0 <== NOT EXECUTED a000fa2c: 0a000007 beq a000fa50 <pthread_attr_setstacksize+0x38> <== NOT EXECUTED
return EINVAL;
if (stacksize < PTHREAD_MINIMUM_STACK_SIZE)
a000fa30: e59f3020 ldr r3, [pc, #32] ; a000fa58 <pthread_attr_setstacksize+0x40><== NOT EXECUTED a000fa34: e5933000 ldr r3, [r3] <== NOT EXECUTED a000fa38: e1a03083 lsl r3, r3, #1 <== NOT EXECUTED a000fa3c: e1510003 cmp r1, r3 <== NOT EXECUTED
attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE;
a000fa40: 35803008 strcc r3, [r0, #8] <== NOT EXECUTED
else
attr->stacksize = stacksize;
a000fa44: 25801008 strcs r1, [r0, #8] <== NOT EXECUTED
return 0;
a000fa48: e3a00000 mov r0, #0 <== NOT EXECUTED a000fa4c: e12fff1e bx lr <== NOT EXECUTED
pthread_attr_t *attr,
size_t stacksize
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000fa50: e3a00016 mov r0, #22 <== NOT EXECUTED
if (stacksize < PTHREAD_MINIMUM_STACK_SIZE)
attr->stacksize = PTHREAD_MINIMUM_STACK_SIZE;
else
attr->stacksize = stacksize;
return 0;
}
a000fa54: e12fff1e bx lr <== NOT EXECUTED
a00099b4 <pthread_barrier_destroy>:
)
{
POSIX_Barrier_Control *the_barrier = NULL;
Objects_Locations location;
if ( !barrier )
a00099b4: e2503000 subs r3, r0, #0 <== NOT EXECUTED
*/
int pthread_barrier_destroy(
pthread_barrier_t *barrier
)
{
a00099b8: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
POSIX_Barrier_Control *the_barrier = NULL;
Objects_Locations location;
if ( !barrier )
a00099bc: 0a000016 beq a0009a1c <pthread_barrier_destroy+0x68> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get (
pthread_barrier_t *barrier,
Objects_Locations *location
)
{
return (POSIX_Barrier_Control *) _Objects_Get(
a00099c0: e5931000 ldr r1, [r3] <== NOT EXECUTED a00099c4: e59f0058 ldr r0, [pc, #88] ; a0009a24 <pthread_barrier_destroy+0x70><== NOT EXECUTED a00099c8: e1a0200d mov r2, sp <== NOT EXECUTED a00099cc: eb00091e bl a000be4c <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_barrier = _POSIX_Barrier_Get( barrier, &location );
switch ( location ) {
a00099d0: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00099d4: e1a04000 mov r4, r0 <== NOT EXECUTED a00099d8: e3530000 cmp r3, #0 <== NOT EXECUTED a00099dc: 1a00000e bne a0009a1c <pthread_barrier_destroy+0x68> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_barrier->Barrier.number_of_waiting_threads != 0 ) {
a00099e0: e5905058 ldr r5, [r0, #88] ; 0x58 <== NOT EXECUTED a00099e4: e3550000 cmp r5, #0 <== NOT EXECUTED a00099e8: 0a000002 beq a00099f8 <pthread_barrier_destroy+0x44> <== NOT EXECUTED
_Thread_Enable_dispatch();
a00099ec: eb000c1d bl a000ca68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EBUSY;
a00099f0: e3a00010 mov r0, #16 <== NOT EXECUTED a00099f4: ea000009 b a0009a20 <pthread_barrier_destroy+0x6c> <== NOT EXECUTED
}
_Objects_Close( &_POSIX_Barrier_Information, &the_barrier->Object );
a00099f8: e59f0024 ldr r0, [pc, #36] ; a0009a24 <pthread_barrier_destroy+0x70><== NOT EXECUTED a00099fc: e1a01004 mov r1, r4 <== NOT EXECUTED a0009a00: eb000814 bl a000ba58 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _POSIX_Barrier_Free (
POSIX_Barrier_Control *the_barrier
)
{
_Objects_Free( &_POSIX_Barrier_Information, &the_barrier->Object );
a0009a04: e59f0018 ldr r0, [pc, #24] ; a0009a24 <pthread_barrier_destroy+0x70><== NOT EXECUTED a0009a08: e1a01004 mov r1, r4 <== NOT EXECUTED a0009a0c: eb0008b6 bl a000bcec <_Objects_Free> <== NOT EXECUTED
_POSIX_Barrier_Free( the_barrier );
_Thread_Enable_dispatch();
a0009a10: eb000c14 bl a000ca68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a0009a14: e1a00005 mov r0, r5 <== NOT EXECUTED a0009a18: ea000000 b a0009a20 <pthread_barrier_destroy+0x6c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a0009a1c: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a0009a20: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0009a28 <pthread_barrier_init>:
int pthread_barrier_init(
pthread_barrier_t *barrier,
const pthread_barrierattr_t *attr,
unsigned int count
)
{
a0009a28: e92d40ff push {r0, r1, r2, r3, r4, r5, r6, r7, lr} <== NOT EXECUTED
const pthread_barrierattr_t *the_attr;
/*
* Error check parameters
*/
if ( !barrier )
a0009a2c: e2507000 subs r7, r0, #0 <== NOT EXECUTED
int pthread_barrier_init(
pthread_barrier_t *barrier,
const pthread_barrierattr_t *attr,
unsigned int count
)
{
a0009a30: e1a04002 mov r4, r2 <== NOT EXECUTED
const pthread_barrierattr_t *the_attr;
/*
* Error check parameters
*/
if ( !barrier )
a0009a34: 0a000027 beq a0009ad8 <pthread_barrier_init+0xb0> <== NOT EXECUTED
return EINVAL;
if ( count == 0 )
a0009a38: e3520000 cmp r2, #0 <== NOT EXECUTED a0009a3c: 0a000025 beq a0009ad8 <pthread_barrier_init+0xb0> <== NOT EXECUTED
return EINVAL;
/*
* If the user passed in NULL, use the default attributes
*/
if ( attr ) {
a0009a40: e3510000 cmp r1, #0 <== NOT EXECUTED a0009a44: 1a000003 bne a0009a58 <pthread_barrier_init+0x30> <== NOT EXECUTED
the_attr = attr;
} else {
(void) pthread_barrierattr_init( &my_attr );
a0009a48: e1a0000d mov r0, sp <== NOT EXECUTED a0009a4c: ebffffc3 bl a0009960 <pthread_barrierattr_init> <== NOT EXECUTED a0009a50: e1a0500d mov r5, sp <== NOT EXECUTED
the_attr = &my_attr;
a0009a54: e1a0100d mov r1, sp <== NOT EXECUTED
}
/*
* Now start error checking the attributes that we are going to use
*/
if ( !the_attr->is_initialized )
a0009a58: e5913000 ldr r3, [r1] <== NOT EXECUTED a0009a5c: e3530000 cmp r3, #0 <== NOT EXECUTED a0009a60: 0a00001c beq a0009ad8 <pthread_barrier_init+0xb0> <== NOT EXECUTED
return EINVAL;
switch ( the_attr->process_shared ) {
a0009a64: e5915004 ldr r5, [r1, #4] <== NOT EXECUTED a0009a68: e3550000 cmp r5, #0 <== NOT EXECUTED a0009a6c: 1a000019 bne a0009ad8 <pthread_barrier_init+0xb0> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a0009a70: e59f306c ldr r3, [pc, #108] ; a0009ae4 <pthread_barrier_init+0xbc><== NOT EXECUTED
}
/*
* Convert from POSIX attributes to Core Barrier attributes
*/
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
a0009a74: e58d5008 str r5, [sp, #8] <== NOT EXECUTED
the_attributes.maximum_count = count;
a0009a78: e58d400c str r4, [sp, #12] <== NOT EXECUTED a0009a7c: e5932000 ldr r2, [r3] <== NOT EXECUTED a0009a80: e2822001 add r2, r2, #1 <== NOT EXECUTED a0009a84: e5832000 str r2, [r3] <== NOT EXECUTED
* the inactive chain of free barrier control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Allocate( void )
{
return (POSIX_Barrier_Control *)
_Objects_Allocate( &_POSIX_Barrier_Information );
a0009a88: e59f6058 ldr r6, [pc, #88] ; a0009ae8 <pthread_barrier_init+0xc0><== NOT EXECUTED a0009a8c: e1a00006 mov r0, r6 <== NOT EXECUTED a0009a90: eb0007ce bl a000b9d0 <_Objects_Allocate> <== NOT EXECUTED
*/
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _POSIX_Barrier_Allocate();
if ( !the_barrier ) {
a0009a94: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0009a98: 1a000002 bne a0009aa8 <pthread_barrier_init+0x80> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009a9c: eb000bf1 bl a000ca68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EAGAIN;
a0009aa0: e3a0000b mov r0, #11 <== NOT EXECUTED a0009aa4: ea00000c b a0009adc <pthread_barrier_init+0xb4> <== NOT EXECUTED
}
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
a0009aa8: e2840010 add r0, r4, #16 <== NOT EXECUTED a0009aac: e28d1008 add r1, sp, #8 <== NOT EXECUTED a0009ab0: eb000564 bl a000b048 <_CORE_barrier_Initialize> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a0009ab4: e596201c ldr r2, [r6, #28] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
a0009ab8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0009abc: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a0009ac0: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
a0009ac4: e584500c str r5, [r4, #12] <== NOT EXECUTED
);
/*
* Exit the critical section and return the user an operational barrier
*/
*barrier = the_barrier->Object.id;
a0009ac8: e5873000 str r3, [r7] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009acc: eb000be5 bl a000ca68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a0009ad0: e1a00005 mov r0, r5 <== NOT EXECUTED a0009ad4: ea000000 b a0009adc <pthread_barrier_init+0xb4> <== NOT EXECUTED
switch ( the_attr->process_shared ) {
case PTHREAD_PROCESS_PRIVATE: /* only supported values */
break;
case PTHREAD_PROCESS_SHARED:
default:
return EINVAL;
a0009ad8: e3a00016 mov r0, #22 <== NOT EXECUTED
* Exit the critical section and return the user an operational barrier */ *barrier = the_barrier->Object.id; _Thread_Enable_dispatch(); return 0; }
a0009adc: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a0009ae0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0009aec <pthread_barrier_wait>:
)
{
POSIX_Barrier_Control *the_barrier = NULL;
Objects_Locations location;
if ( !barrier )
a0009aec: e2503000 subs r3, r0, #0 <== NOT EXECUTED
*/
int pthread_barrier_wait(
pthread_barrier_t *barrier
)
{
a0009af0: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
POSIX_Barrier_Control *the_barrier = NULL;
Objects_Locations location;
if ( !barrier )
a0009af4: 0a000012 beq a0009b44 <pthread_barrier_wait+0x58> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Get (
pthread_barrier_t *barrier,
Objects_Locations *location
)
{
return (POSIX_Barrier_Control *) _Objects_Get(
a0009af8: e5931000 ldr r1, [r3] <== NOT EXECUTED a0009afc: e28d2004 add r2, sp, #4 <== NOT EXECUTED a0009b00: e59f0044 ldr r0, [pc, #68] ; a0009b4c <pthread_barrier_wait+0x60><== NOT EXECUTED a0009b04: eb0008d0 bl a000be4c <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_barrier = _POSIX_Barrier_Get( barrier, &location );
switch ( location ) {
a0009b08: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0009b0c: e1a02000 mov r2, r0 <== NOT EXECUTED a0009b10: e3530000 cmp r3, #0 <== NOT EXECUTED a0009b14: 1a00000a bne a0009b44 <pthread_barrier_wait+0x58> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_barrier_Wait(
a0009b18: e58d3000 str r3, [sp] <== NOT EXECUTED a0009b1c: e5921008 ldr r1, [r2, #8] <== NOT EXECUTED a0009b20: e2800010 add r0, r0, #16 <== NOT EXECUTED a0009b24: e3a02001 mov r2, #1 <== NOT EXECUTED a0009b28: eb00054e bl a000b068 <_CORE_barrier_Wait> <== NOT EXECUTED
the_barrier->Object.id,
true,
0,
NULL
);
_Thread_Enable_dispatch();
a0009b2c: eb000bcd bl a000ca68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_Barrier_Translate_core_barrier_return_code(
_Thread_Executing->Wait.return_code );
a0009b30: e59f3018 ldr r3, [pc, #24] ; a0009b50 <pthread_barrier_wait+0x64><== NOT EXECUTED a0009b34: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
true,
0,
NULL
);
_Thread_Enable_dispatch();
return _POSIX_Barrier_Translate_core_barrier_return_code(
a0009b38: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a0009b3c: eb0016cf bl a000f680 <_POSIX_Barrier_Translate_core_barrier_return_code><== NOT EXECUTED a0009b40: ea000000 b a0009b48 <pthread_barrier_wait+0x5c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a0009b44: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a0009b48: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a0009914 <pthread_barrierattr_destroy>:
int pthread_barrierattr_destroy(
pthread_barrierattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
a0009914: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a0009918: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_barrierattr_destroy(
pthread_barrierattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
a000991c: 012fff1e bxeq lr <== NOT EXECUTED a0009920: e5932000 ldr r2, [r3] <== NOT EXECUTED a0009924: e3520000 cmp r2, #0 <== NOT EXECUTED
return EINVAL;
attr->is_initialized = false;
a0009928: 13a00000 movne r0, #0 <== NOT EXECUTED a000992c: 15830000 strne r0, [r3] <== NOT EXECUTED
int pthread_barrierattr_destroy(
pthread_barrierattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
return EINVAL;
a0009930: 03a00016 moveq r0, #22 <== NOT EXECUTED
attr->is_initialized = false;
return 0;
}
a0009934: e12fff1e bx lr <== NOT EXECUTED
a0009938 <pthread_barrierattr_getpshared>:
int pthread_barrierattr_getpshared(
const pthread_barrierattr_t *attr,
int *pshared
)
{
if ( !attr )
a0009938: e3500000 cmp r0, #0 <== NOT EXECUTED
return EINVAL;
a000993c: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_barrierattr_getpshared(
const pthread_barrierattr_t *attr,
int *pshared
)
{
if ( !attr )
a0009940: 012fff1e bxeq lr <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
a0009944: e5903000 ldr r3, [r0] <== NOT EXECUTED a0009948: e3530000 cmp r3, #0 <== NOT EXECUTED
return EINVAL;
*pshared = attr->process_shared;
a000994c: 15903004 ldrne r3, [r0, #4] <== NOT EXECUTED
{
if ( !attr )
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
a0009950: 03a00016 moveq r0, #22 <== NOT EXECUTED
*pshared = attr->process_shared;
return 0;
a0009954: 13a00000 movne r0, #0 <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
*pshared = attr->process_shared;
a0009958: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000995c: e12fff1e bx lr <== NOT EXECUTED
a0009960 <pthread_barrierattr_init>:
int pthread_barrierattr_init(
pthread_barrierattr_t *attr
)
{
if ( !attr )
a0009960: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
attr->is_initialized = true;
a0009964: 13a02001 movne r2, #1 <== NOT EXECUTED
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
a0009968: 13a00000 movne r0, #0 <== NOT EXECUTED
)
{
if ( !attr )
return EINVAL;
attr->is_initialized = true;
a000996c: 15832000 strne r2, [r3] <== NOT EXECUTED
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
a0009970: 15830004 strne r0, [r3, #4] <== NOT EXECUTED
int pthread_barrierattr_init(
pthread_barrierattr_t *attr
)
{
if ( !attr )
return EINVAL;
a0009974: 03a00016 moveq r0, #22 <== NOT EXECUTED
attr->is_initialized = true;
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
return 0;
}
a0009978: e12fff1e bx lr <== NOT EXECUTED
a000997c <pthread_barrierattr_setpshared>:
int pthread_barrierattr_setpshared(
pthread_barrierattr_t *attr,
int pshared
)
{
if ( !attr )
a000997c: e3500000 cmp r0, #0 <== NOT EXECUTED a0009980: 0a000007 beq a00099a4 <pthread_barrierattr_setpshared+0x28><== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
a0009984: e5903000 ldr r3, [r0] <== NOT EXECUTED a0009988: e3530000 cmp r3, #0 <== NOT EXECUTED a000998c: 0a000004 beq a00099a4 <pthread_barrierattr_setpshared+0x28><== NOT EXECUTED
return EINVAL;
switch ( pshared ) {
a0009990: e3510001 cmp r1, #1 <== NOT EXECUTED
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
a0009994: 95801004 strls r1, [r0, #4] <== NOT EXECUTED
return 0;
a0009998: 93a00000 movls r0, #0 <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
switch ( pshared ) {
a000999c: 912fff1e bxls lr <== NOT EXECUTED a00099a0: ea000001 b a00099ac <pthread_barrierattr_setpshared+0x30> <== NOT EXECUTED
{
if ( !attr )
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
a00099a4: e3a00016 mov r0, #22 <== NOT EXECUTED a00099a8: e12fff1e bx lr <== NOT EXECUTED
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
return 0;
default:
return EINVAL;
a00099ac: e3a00016 mov r0, #22 <== NOT EXECUTED
} }
a00099b0: e12fff1e bx lr <== NOT EXECUTED
a0008f5c <pthread_cancel>:
/*
* Don't even think about deleting a resource from an ISR.
*/
if ( _ISR_Is_in_progress() )
a0008f5c: e59f3044 ldr r3, [pc, #68] ; a0008fa8 <pthread_cancel+0x4c><== NOT EXECUTED
*/
int pthread_cancel(
pthread_t thread
)
{
a0008f60: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
/*
* Don't even think about deleting a resource from an ISR.
*/
if ( _ISR_Is_in_progress() )
a0008f64: e5933000 ldr r3, [r3] <== NOT EXECUTED a0008f68: e3530000 cmp r3, #0 <== NOT EXECUTED
return EPROTO;
a0008f6c: 13a00047 movne r0, #71 ; 0x47 <== NOT EXECUTED
/*
* Don't even think about deleting a resource from an ISR.
*/
if ( _ISR_Is_in_progress() )
a0008f70: 1a00000b bne a0008fa4 <pthread_cancel+0x48> <== NOT EXECUTED
return EPROTO;
the_thread = _Thread_Get( thread, &location );
a0008f74: e1a0100d mov r1, sp <== NOT EXECUTED a0008f78: eb000b03 bl a000bb8c <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a0008f7c: e59d4000 ldr r4, [sp] <== NOT EXECUTED
*/
if ( _ISR_Is_in_progress() )
return EPROTO;
the_thread = _Thread_Get( thread, &location );
a0008f80: e1a03000 mov r3, r0 <== NOT EXECUTED
switch ( location ) {
a0008f84: e3540000 cmp r4, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a0008f88: 13a00016 movne r0, #22 <== NOT EXECUTED
if ( _ISR_Is_in_progress() )
return EPROTO;
the_thread = _Thread_Get( thread, &location );
switch ( location ) {
a0008f8c: 1a000004 bne a0008fa4 <pthread_cancel+0x48> <== NOT EXECUTED
case OBJECTS_LOCAL:
thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
thread_support->cancelation_requested = 1;
a0008f90: e59330fc ldr r3, [r3, #252] ; 0xfc <== NOT EXECUTED a0008f94: e3a02001 mov r2, #1 <== NOT EXECUTED a0008f98: e58320e0 str r2, [r3, #224] ; 0xe0 <== NOT EXECUTED
/* This enables dispatch implicitly */
_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch( the_thread );
a0008f9c: eb001531 bl a000e468 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch><== NOT EXECUTED
return 0;
a0008fa0: e1a00004 mov r0, r4 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
a0008fa4: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a0008ae0 <pthread_cleanup_pop>:
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a0008ae0: e59f207c ldr r2, [pc, #124] ; a0008b64 <pthread_cleanup_pop+0x84><== NOT EXECUTED
POSIX_Cancel_Handler_control tmp_handler;
Chain_Control *handler_stack;
POSIX_API_Control *thread_support;
ISR_Level level;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a0008ae4: e59f307c ldr r3, [pc, #124] ; a0008b68 <pthread_cleanup_pop+0x88><== NOT EXECUTED
*/
void pthread_cleanup_pop(
int execute
)
{
a0008ae8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a0008aec: e5921000 ldr r1, [r2] <== NOT EXECUTED
POSIX_Cancel_Handler_control tmp_handler;
Chain_Control *handler_stack;
POSIX_API_Control *thread_support;
ISR_Level level;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a0008af0: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
*/
void pthread_cleanup_pop(
int execute
)
{
a0008af4: e1a06000 mov r6, r0 <== NOT EXECUTED a0008af8: e2811001 add r1, r1, #1 <== NOT EXECUTED
POSIX_Cancel_Handler_control tmp_handler;
Chain_Control *handler_stack;
POSIX_API_Control *thread_support;
ISR_Level level;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a0008afc: e59330fc ldr r3, [r3, #252] ; 0xfc <== NOT EXECUTED a0008b00: e5821000 str r1, [r2] <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0008b04: e10f4000 mrs r4, CPSR <== NOT EXECUTED a0008b08: e3842080 orr r2, r4, #128 ; 0x80 <== NOT EXECUTED a0008b0c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
*/
_Thread_Disable_dispatch();
_ISR_Disable( level );
if ( _Chain_Is_empty( handler_stack ) ) {
a0008b10: e59310e4 ldr r1, [r3, #228] ; 0xe4 <== 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 );
a0008b14: e28320e8 add r2, r3, #232 ; 0xe8 <== NOT EXECUTED a0008b18: e1510002 cmp r1, r2 <== NOT EXECUTED a0008b1c: 1a000002 bne a0008b2c <pthread_cleanup_pop+0x4c> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0008b20: eb000a4a bl a000b450 <_Thread_Enable_dispatch> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0008b24: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED
a0008b28: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
_ISR_Enable( level );
return;
}
handler = (POSIX_Cancel_Handler_control *)
a0008b2c: e59300ec ldr r0, [r3, #236] ; 0xec <== NOT EXECUTED
)
{
Chain_Node *next;
Chain_Node *previous;
next = the_node->next;
a0008b30: e890000c ldm r0, {r2, r3} <== NOT EXECUTED
previous = the_node->previous; next->previous = previous;
a0008b34: e5823004 str r3, [r2, #4] <== NOT EXECUTED
previous->next = next;
a0008b38: e5832000 str r2, [r3] <== NOT EXECUTED a0008b3c: e129f004 msr CPSR_fc, r4 <== NOT EXECUTED a0008b40: e5904008 ldr r4, [r0, #8] <== NOT EXECUTED a0008b44: e590500c ldr r5, [r0, #12] <== NOT EXECUTED
_ISR_Enable( level );
tmp_handler = *handler;
_Workspace_Free( handler );
a0008b48: eb000e21 bl a000c3d4 <_Workspace_Free> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0008b4c: eb000a3f bl a000b450 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( execute )
a0008b50: e3560000 cmp r6, #0 <== NOT EXECUTED a0008b54: 0a000001 beq a0008b60 <pthread_cleanup_pop+0x80> <== NOT EXECUTED
(*tmp_handler.routine)( tmp_handler.arg );
a0008b58: e1a00005 mov r0, r5 <== NOT EXECUTED
a0008b5c: e12fff34 blx r4 <== NOT EXECUTED
a0008b60: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0009228 <pthread_cleanup_push>:
void pthread_cleanup_push(
void (*routine)( void * ),
void *arg
)
{
a0009228: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
/* * The POSIX standard does not address what to do when the routine * is NULL. It also does not address what happens when we cannot * allocate memory or anything else bad happens. */ if ( !routine )
a000922c: e2505000 subs r5, r0, #0 <== NOT EXECUTED
void pthread_cleanup_push(
void (*routine)( void * ),
void *arg
)
{
a0009230: e1a04001 mov r4, r1 <== NOT EXECUTED
/* * The POSIX standard does not address what to do when the routine * is NULL. It also does not address what happens when we cannot * allocate memory or anything else bad happens. */ if ( !routine )
a0009234: 0a000011 beq a0009280 <pthread_cleanup_push+0x58> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a0009238: e59f3044 ldr r3, [pc, #68] ; a0009284 <pthread_cleanup_push+0x5c><== NOT EXECUTED a000923c: e5932000 ldr r2, [r3] <== NOT EXECUTED a0009240: e2822001 add r2, r2, #1 <== NOT EXECUTED a0009244: e5832000 str r2, [r3] <== NOT EXECUTED
return;
_Thread_Disable_dispatch();
handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
a0009248: e3a00010 mov r0, #16 <== NOT EXECUTED a000924c: eb001079 bl a000d438 <_Workspace_Allocate> <== NOT EXECUTED
if ( handler ) {
a0009250: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0009254: 0a000007 beq a0009278 <pthread_cleanup_push+0x50> <== NOT EXECUTED
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a0009258: e59f2028 ldr r2, [pc, #40] ; a0009288 <pthread_cleanup_push+0x60><== NOT EXECUTED
handler_stack = &thread_support->Cancellation_Handlers;
handler->routine = routine;
handler->arg = arg;
_Chain_Append( handler_stack, &handler->Node );
a000925c: e1a01003 mov r1, r3 <== NOT EXECUTED
_Thread_Disable_dispatch();
handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
if ( handler ) {
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a0009260: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED
handler_stack = &thread_support->Cancellation_Handlers;
a0009264: e59200fc ldr r0, [r2, #252] ; 0xfc <== NOT EXECUTED
handler->routine = routine;
a0009268: e5835008 str r5, [r3, #8] <== NOT EXECUTED
handler->arg = arg;
a000926c: e583400c str r4, [r3, #12] <== NOT EXECUTED
_Chain_Append( handler_stack, &handler->Node );
a0009270: e28000e4 add r0, r0, #228 ; 0xe4 <== NOT EXECUTED a0009274: eb0005a4 bl a000a90c <_Chain_Append> <== NOT EXECUTED
} _Thread_Enable_dispatch(); }
a0009278: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
handler->routine = routine;
handler->arg = arg;
_Chain_Append( handler_stack, &handler->Node );
}
_Thread_Enable_dispatch();
a000927c: ea000c20 b a000c304 <_Thread_Enable_dispatch> <== NOT EXECUTED
a0009280: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000a1b8 <pthread_cond_broadcast>:
int pthread_cond_broadcast(
pthread_cond_t *cond
)
{
return _POSIX_Condition_variables_Signal_support( cond, true );
a000a1b8: e3a01001 mov r1, #1 <== NOT EXECUTED a000a1bc: ea000064 b a000a354 <_POSIX_Condition_variables_Signal_support><== NOT EXECUTED
a000a1c0 <pthread_cond_destroy>:
*/
int pthread_cond_destroy(
pthread_cond_t *cond
)
{
a000a1c0: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
a000a1c4: e1a0100d mov r1, sp <== NOT EXECUTED a000a1c8: eb000015 bl a000a224 <_POSIX_Condition_variables_Get> <== NOT EXECUTED
switch ( location ) {
a000a1cc: e59d3000 ldr r3, [sp] <== NOT EXECUTED
)
{
POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
a000a1d0: e1a04000 mov r4, r0 <== NOT EXECUTED
switch ( location ) {
a000a1d4: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000a1d8: 13a00016 movne r0, #22 <== NOT EXECUTED
{
POSIX_Condition_variables_Control *the_cond;
Objects_Locations location;
the_cond = _POSIX_Condition_variables_Get( cond, &location );
switch ( location ) {
a000a1dc: 1a00000e bne a000a21c <pthread_cond_destroy+0x5c> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( _Thread_queue_First( &the_cond->Wait_queue ) ) {
a000a1e0: e2840018 add r0, r4, #24 <== NOT EXECUTED a000a1e4: eb000f4d bl a000df20 <_Thread_queue_First> <== NOT EXECUTED a000a1e8: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000a1ec: 0a000002 beq a000a1fc <pthread_cond_destroy+0x3c> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a1f0: eb000d8b bl a000d824 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EBUSY;
a000a1f4: e3a00010 mov r0, #16 <== NOT EXECUTED a000a1f8: ea000007 b a000a21c <pthread_cond_destroy+0x5c> <== NOT EXECUTED
}
_Objects_Close(
a000a1fc: e59f001c ldr r0, [pc, #28] ; a000a220 <pthread_cond_destroy+0x60><== NOT EXECUTED a000a200: e1a01004 mov r1, r4 <== NOT EXECUTED a000a204: eb000982 bl a000c814 <_Objects_Close> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Condition_variables_Free (
POSIX_Condition_variables_Control *the_condition_variable
)
{
_Objects_Free(
a000a208: e59f0010 ldr r0, [pc, #16] ; a000a220 <pthread_cond_destroy+0x60><== NOT EXECUTED a000a20c: e1a01004 mov r1, r4 <== NOT EXECUTED a000a210: eb000a24 bl a000caa8 <_Objects_Free> <== NOT EXECUTED
&_POSIX_Condition_variables_Information,
&the_cond->Object
);
_POSIX_Condition_variables_Free( the_cond );
_Thread_Enable_dispatch();
a000a214: eb000d82 bl a000d824 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000a218: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
a000a21c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000a288 <pthread_cond_init>:
int pthread_cond_init(
pthread_cond_t *cond,
const pthread_condattr_t *attr
)
{
a000a288: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
POSIX_Condition_variables_Control *the_cond;
const pthread_condattr_t *the_attr;
if ( attr ) the_attr = attr;
else the_attr = &_POSIX_Condition_variables_Default_attributes;
a000a28c: e59f50a8 ldr r5, [pc, #168] ; a000a33c <pthread_cond_init+0xb4><== NOT EXECUTED a000a290: e3510000 cmp r1, #0 <== NOT EXECUTED a000a294: 11a05001 movne r5, r1 <== NOT EXECUTED
/*
* Be careful about attributes when global!!!
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
a000a298: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED
int pthread_cond_init(
pthread_cond_t *cond,
const pthread_condattr_t *attr
)
{
a000a29c: e1a07000 mov r7, r0 <== NOT EXECUTED
else the_attr = &_POSIX_Condition_variables_Default_attributes;
/*
* Be careful about attributes when global!!!
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
a000a2a0: e3530001 cmp r3, #1 <== NOT EXECUTED a000a2a4: 0a000020 beq a000a32c <pthread_cond_init+0xa4> <== NOT EXECUTED
return EINVAL;
if ( !the_attr->is_initialized )
a000a2a8: e5953000 ldr r3, [r5] <== NOT EXECUTED a000a2ac: e3530000 cmp r3, #0 <== NOT EXECUTED a000a2b0: 0a00001f beq a000a334 <pthread_cond_init+0xac> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000a2b4: e59f3084 ldr r3, [pc, #132] ; a000a340 <pthread_cond_init+0xb8><== NOT EXECUTED a000a2b8: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a2bc: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a2c0: e5832000 str r2, [r3] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control
*_POSIX_Condition_variables_Allocate( void )
{
return (POSIX_Condition_variables_Control *)
_Objects_Allocate( &_POSIX_Condition_variables_Information );
a000a2c4: e59f6078 ldr r6, [pc, #120] ; a000a344 <pthread_cond_init+0xbc><== NOT EXECUTED a000a2c8: e1a00006 mov r0, r6 <== NOT EXECUTED a000a2cc: eb00092e bl a000c78c <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch();
the_cond = _POSIX_Condition_variables_Allocate();
if ( !the_cond ) {
a000a2d0: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000a2d4: 1a000002 bne a000a2e4 <pthread_cond_init+0x5c> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a2d8: eb000d51 bl a000d824 <_Thread_Enable_dispatch> <== NOT EXECUTED
return ENOMEM;
a000a2dc: e3a0000c mov r0, #12 <== NOT EXECUTED
a000a2e0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
}
the_cond->process_shared = the_attr->process_shared;
a000a2e4: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED
the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;
a000a2e8: e3a05000 mov r5, #0 <== NOT EXECUTED
_Thread_queue_Initialize(
a000a2ec: e2840018 add r0, r4, #24 <== NOT EXECUTED
if ( !the_cond ) {
_Thread_Enable_dispatch();
return ENOMEM;
}
the_cond->process_shared = the_attr->process_shared;
a000a2f0: e5843010 str r3, [r4, #16] <== NOT EXECUTED
the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;
_Thread_queue_Initialize(
a000a2f4: e1a01005 mov r1, r5 <== NOT EXECUTED a000a2f8: e59f2048 ldr r2, [pc, #72] ; a000a348 <pthread_cond_init+0xc0><== NOT EXECUTED a000a2fc: e3a03074 mov r3, #116 ; 0x74 <== NOT EXECUTED
return ENOMEM;
}
the_cond->process_shared = the_attr->process_shared;
the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;
a000a300: e5845014 str r5, [r4, #20] <== NOT EXECUTED
_Thread_queue_Initialize(
a000a304: eb000f2b bl a000dfb8 <_Thread_queue_Initialize> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000a308: e596201c ldr r2, [r6, #28] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
a000a30c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000a310: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000a314: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
a000a318: e584500c str r5, [r4, #12] <== NOT EXECUTED
&_POSIX_Condition_variables_Information,
&the_cond->Object,
0
);
*cond = the_cond->Object.id;
a000a31c: e5873000 str r3, [r7] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a320: eb000d3f bl a000d824 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000a324: e1a00005 mov r0, r5 <== NOT EXECUTED
a000a328: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
/*
* Be careful about attributes when global!!!
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
return EINVAL;
a000a32c: e3a00016 mov r0, #22 <== NOT EXECUTED
a000a330: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
if ( !the_attr->is_initialized )
return EINVAL;
a000a334: e3a00016 mov r0, #22 <== NOT EXECUTED
*cond = the_cond->Object.id;
_Thread_Enable_dispatch();
return 0;
}
a000a338: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000a34c <pthread_cond_signal>:
int pthread_cond_signal(
pthread_cond_t *cond
)
{
return _POSIX_Condition_variables_Signal_support( cond, false );
a000a34c: e3a01000 mov r1, #0 <== NOT EXECUTED a000a350: eaffffff b a000a354 <_POSIX_Condition_variables_Signal_support><== NOT EXECUTED
a000a3a8 <pthread_cond_timedwait>:
int pthread_cond_timedwait(
pthread_cond_t *cond,
pthread_mutex_t *mutex,
const struct timespec *abstime
)
{
a000a3a8: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a000a3ac: e1a05000 mov r5, r0 <== NOT EXECUTED
a000a3b0: e1a04001 mov r4, r1 <== NOT EXECUTED
* is valid or not. If it isn't correct and in the future, * then we do a polling operation and convert the UNSATISFIED * status into the appropriate error. */ already_timedout = false; status = _POSIX_Absolute_timeout_to_ticks(abstime, &ticks);
a000a3b4: e1a00002 mov r0, r2 <== NOT EXECUTED a000a3b8: e1a0100d mov r1, sp <== NOT EXECUTED a000a3bc: eb000123 bl a000a850 <_POSIX_Absolute_timeout_to_ticks> <== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
a000a3c0: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000a3c4: 03a00016 moveq r0, #22 <== NOT EXECUTED
* then we do a polling operation and convert the UNSATISFIED * status into the appropriate error. */ already_timedout = false; status = _POSIX_Absolute_timeout_to_ticks(abstime, &ticks); if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
a000a3c8: 0a000007 beq a000a3ec <pthread_cond_timedwait+0x44> <== NOT EXECUTED
return EINVAL;
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
a000a3cc: e2433001 sub r3, r3, #1 <== NOT EXECUTED
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
already_timedout = true;
return _POSIX_Condition_variables_Wait_support(
a000a3d0: e1a00005 mov r0, r5 <== NOT EXECUTED a000a3d4: e1a01004 mov r1, r4 <== NOT EXECUTED a000a3d8: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000a3dc: e3530001 cmp r3, #1 <== NOT EXECUTED a000a3e0: 83a03000 movhi r3, #0 <== NOT EXECUTED a000a3e4: 93a03001 movls r3, #1 <== NOT EXECUTED a000a3e8: eb000003 bl a000a3fc <_POSIX_Condition_variables_Wait_support><== NOT EXECUTED
cond,
mutex,
ticks,
already_timedout
);
}
a000a3ec: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000a3f0 <pthread_cond_wait>:
int pthread_cond_wait(
pthread_cond_t *cond,
pthread_mutex_t *mutex
)
{
return _POSIX_Condition_variables_Wait_support(
a000a3f0: e3a02000 mov r2, #0 <== NOT EXECUTED a000a3f4: e1a03002 mov r3, r2 <== NOT EXECUTED a000a3f8: eaffffff b a000a3fc <_POSIX_Condition_variables_Wait_support><== NOT EXECUTED
a000a130 <pthread_condattr_destroy>:
int pthread_condattr_destroy(
pthread_condattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
a000a130: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000a134: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_condattr_destroy(
pthread_condattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
a000a138: 012fff1e bxeq lr <== NOT EXECUTED a000a13c: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a140: e3520000 cmp r2, #0 <== NOT EXECUTED
return EINVAL;
attr->is_initialized = false;
a000a144: 13a00000 movne r0, #0 <== NOT EXECUTED a000a148: 15830000 strne r0, [r3] <== NOT EXECUTED
int pthread_condattr_destroy(
pthread_condattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
return EINVAL;
a000a14c: 03a00016 moveq r0, #22 <== NOT EXECUTED
attr->is_initialized = false;
return 0;
}
a000a150: e12fff1e bx lr <== NOT EXECUTED
a000a154 <pthread_condattr_getpshared>:
int pthread_condattr_getpshared(
const pthread_condattr_t *attr,
int *pshared
)
{
if ( !attr )
a000a154: e3500000 cmp r0, #0 <== NOT EXECUTED
return EINVAL;
*pshared = attr->process_shared;
a000a158: 15903004 ldrne r3, [r0, #4] <== NOT EXECUTED
const pthread_condattr_t *attr,
int *pshared
)
{
if ( !attr )
return EINVAL;
a000a15c: 03a00016 moveq r0, #22 <== NOT EXECUTED
*pshared = attr->process_shared;
return 0;
a000a160: 13a00000 movne r0, #0 <== NOT EXECUTED
)
{
if ( !attr )
return EINVAL;
*pshared = attr->process_shared;
a000a164: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000a168: e12fff1e bx lr <== NOT EXECUTED
a000a16c <pthread_condattr_init>:
int pthread_condattr_init(
pthread_condattr_t *attr
)
{
if ( !attr )
a000a16c: e3500000 cmp r0, #0 <== NOT EXECUTED
*/
int pthread_condattr_init(
pthread_condattr_t *attr
)
{
a000a170: e92d4010 push {r4, lr} <== NOT EXECUTED
if ( !attr )
a000a174: 0a000004 beq a000a18c <pthread_condattr_init+0x20> <== NOT EXECUTED
return EINVAL;
*attr = _POSIX_Condition_variables_Default_attributes;
a000a178: e59f3014 ldr r3, [pc, #20] ; a000a194 <pthread_condattr_init+0x28><== NOT EXECUTED
a000a17c: e8930018 ldm r3, {r3, r4} <== NOT EXECUTED
a000a180: e8800018 stm r0, {r3, r4} <== NOT EXECUTED
return 0;
a000a184: e3a00000 mov r0, #0 <== NOT EXECUTED
a000a188: e8bd8010 pop {r4, pc} <== NOT EXECUTED
int pthread_condattr_init(
pthread_condattr_t *attr
)
{
if ( !attr )
return EINVAL;
a000a18c: e3a00016 mov r0, #22 <== NOT EXECUTED
*attr = _POSIX_Condition_variables_Default_attributes;
return 0;
}
a000a190: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000a198 <pthread_condattr_setpshared>:
int pthread_condattr_setpshared(
pthread_condattr_t *attr,
int pshared
)
{
if ( !attr )
a000a198: e3500000 cmp r0, #0 <== NOT EXECUTED
return EINVAL;
a000a19c: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_condattr_setpshared(
pthread_condattr_t *attr,
int pshared
)
{
if ( !attr )
a000a1a0: 012fff1e bxeq lr <== NOT EXECUTED
return EINVAL;
switch ( pshared ) {
a000a1a4: e3510001 cmp r1, #1 <== NOT EXECUTED
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
a000a1a8: 95801004 strls r1, [r0, #4] <== NOT EXECUTED
return 0;
default:
return EINVAL;
a000a1ac: 83a00016 movhi r0, #22 <== NOT EXECUTED
switch ( pshared ) {
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
return 0;
a000a1b0: 93a00000 movls r0, #0 <== NOT EXECUTED
default:
return EINVAL;
}
}
a000a1b4: e12fff1e bx lr <== NOT EXECUTED
a00096b0 <pthread_create>:
pthread_t *thread,
const pthread_attr_t *attr,
void *(*start_routine)( void * ),
void *arg
)
{
a00096b0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
int schedpolicy = SCHED_RR;
struct sched_param schedparam;
Objects_Name name;
int rc;
if ( !start_routine )
a00096b4: e3520000 cmp r2, #0 <== NOT EXECUTED
pthread_t *thread,
const pthread_attr_t *attr,
void *(*start_routine)( void * ),
void *arg
)
{
a00096b8: e24dd04c sub sp, sp, #76 ; 0x4c <== NOT EXECUTED a00096bc: e58d001c str r0, [sp, #28] <== NOT EXECUTED a00096c0: e58d3024 str r3, [sp, #36] ; 0x24 <== NOT EXECUTED
int schedpolicy = SCHED_RR;
struct sched_param schedparam;
Objects_Name name;
int rc;
if ( !start_routine )
a00096c4: e58d2020 str r2, [sp, #32] <== NOT EXECUTED
return EFAULT;
a00096c8: 03a0500e moveq r5, #14 <== NOT EXECUTED
int schedpolicy = SCHED_RR;
struct sched_param schedparam;
Objects_Name name;
int rc;
if ( !start_routine )
a00096cc: 0a000082 beq a00098dc <pthread_create+0x22c> <== NOT EXECUTED
return EFAULT;
the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;
a00096d0: e59f4210 ldr r4, [pc, #528] ; a00098e8 <pthread_create+0x238><== NOT EXECUTED a00096d4: e3510000 cmp r1, #0 <== NOT EXECUTED a00096d8: 11a04001 movne r4, r1 <== NOT EXECUTED
if ( !the_attr->is_initialized )
a00096dc: e5943000 ldr r3, [r4] <== NOT EXECUTED a00096e0: e3530000 cmp r3, #0 <== NOT EXECUTED a00096e4: 0a00007b beq a00098d8 <pthread_create+0x228> <== NOT EXECUTED
* stack space if it is allowed to allocate it itself. * * NOTE: If the user provides the stack we will let it drop below * twice the minimum. */ if ( the_attr->stackaddr && !_Stack_Is_enough(the_attr->stacksize) )
a00096e8: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a00096ec: e3530000 cmp r3, #0 <== NOT EXECUTED a00096f0: 0a000004 beq a0009708 <pthread_create+0x58> <== NOT EXECUTED a00096f4: e59f31f0 ldr r3, [pc, #496] ; a00098ec <pthread_create+0x23c><== NOT EXECUTED a00096f8: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED a00096fc: e5933000 ldr r3, [r3] <== NOT EXECUTED a0009700: e1520003 cmp r2, r3 <== NOT EXECUTED a0009704: 3a000073 bcc a00098d8 <pthread_create+0x228> <== NOT EXECUTED
* If inheritsched is set to PTHREAD_INHERIT_SCHED, then this thread
* inherits scheduling attributes from the creating thread. If it is
* PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
* attributes structure.
*/
switch ( the_attr->inheritsched ) {
a0009708: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000970c: e3530001 cmp r3, #1 <== NOT EXECUTED a0009710: 0a000002 beq a0009720 <pthread_create+0x70> <== NOT EXECUTED a0009714: e3530002 cmp r3, #2 <== NOT EXECUTED a0009718: 1a00006e bne a00098d8 <pthread_create+0x228> <== NOT EXECUTED a000971c: ea000006 b a000973c <pthread_create+0x8c> <== NOT EXECUTED
case PTHREAD_INHERIT_SCHED:
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a0009720: e59f31c8 ldr r3, [pc, #456] ; a00098f0 <pthread_create+0x240><== NOT EXECUTED
schedpolicy = api->schedpolicy;
schedparam = api->schedparam;
a0009724: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED
* PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
* attributes structure.
*/
switch ( the_attr->inheritsched ) {
case PTHREAD_INHERIT_SCHED:
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a0009728: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000972c: e59350fc ldr r5, [r3, #252] ; 0xfc <== NOT EXECUTED
schedpolicy = api->schedpolicy;
a0009730: e595a084 ldr sl, [r5, #132] ; 0x84 <== NOT EXECUTED
schedparam = api->schedparam;
a0009734: e2855088 add r5, r5, #136 ; 0x88 <== NOT EXECUTED a0009738: ea000002 b a0009748 <pthread_create+0x98> <== NOT EXECUTED
break;
case PTHREAD_EXPLICIT_SCHED:
schedpolicy = the_attr->schedpolicy;
a000973c: e594a014 ldr sl, [r4, #20] <== NOT EXECUTED
schedparam = the_attr->schedparam;
a0009740: e28dc028 add ip, sp, #40 ; 0x28 <== NOT EXECUTED
a0009744: e2845018 add r5, r4, #24 <== NOT EXECUTED
a0009748: e8b5000f ldm r5!, {r0, r1, r2, r3} <== NOT EXECUTED
a000974c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
/*
* Check the contentionscope since rtems only supports PROCESS wide
* contention (i.e. no system wide contention).
*/
if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
a0009750: e594300c ldr r3, [r4, #12] <== NOT EXECUTED
schedparam = api->schedparam;
break;
case PTHREAD_EXPLICIT_SCHED:
schedpolicy = the_attr->schedpolicy;
schedparam = the_attr->schedparam;
a0009754: e8950007 ldm r5, {r0, r1, r2} <== NOT EXECUTED
a0009758: e88c0007 stm ip, {r0, r1, r2} <== NOT EXECUTED
/*
* Check the contentionscope since rtems only supports PROCESS wide
* contention (i.e. no system wide contention).
*/
if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
a000975c: e3530000 cmp r3, #0 <== NOT EXECUTED
return ENOTSUP;
a0009760: 13a05086 movne r5, #134 ; 0x86 <== NOT EXECUTED
/*
* Check the contentionscope since rtems only supports PROCESS wide
* contention (i.e. no system wide contention).
*/
if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )
a0009764: 1a00005c bne a00098dc <pthread_create+0x22c> <== NOT EXECUTED
return ENOTSUP;
/*
* Interpret the scheduling parameters.
*/
if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )
a0009768: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED a000976c: eb001841 bl a000f878 <_POSIX_Priority_Is_valid> <== NOT EXECUTED a0009770: e3500000 cmp r0, #0 <== NOT EXECUTED a0009774: 0a000057 beq a00098d8 <pthread_create+0x228> <== NOT EXECUTED
return EINVAL;
core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
a0009778: e28d804c add r8, sp, #76 ; 0x4c <== NOT EXECUTED a000977c: e538b024 ldr fp, [r8, #-36]! ; 0x24 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
a0009780: e59f316c ldr r3, [pc, #364] ; a00098f4 <pthread_create+0x244><== NOT EXECUTED
/*
* Set the core scheduling policy information.
*/
rc = _POSIX_Thread_Translate_sched_param(
a0009784: e1a0000a mov r0, sl <== NOT EXECUTED a0009788: e1a01008 mov r1, r8 <== NOT EXECUTED a000978c: e5d39000 ldrb r9, [r3] <== NOT EXECUTED a0009790: e28d2048 add r2, sp, #72 ; 0x48 <== NOT EXECUTED a0009794: e28d3044 add r3, sp, #68 ; 0x44 <== NOT EXECUTED a0009798: eb001841 bl a000f8a4 <_POSIX_Thread_Translate_sched_param> <== NOT EXECUTED
schedpolicy,
&schedparam,
&budget_algorithm,
&budget_callout
);
if ( rc )
a000979c: e2505000 subs r5, r0, #0 <== NOT EXECUTED a00097a0: 1a00004d bne a00098dc <pthread_create+0x22c> <== NOT EXECUTED
#endif
/*
* Lock the allocator mutex for protection
*/
_RTEMS_Lock_allocator();
a00097a4: e59f614c ldr r6, [pc, #332] ; a00098f8 <pthread_create+0x248><== NOT EXECUTED a00097a8: e5960000 ldr r0, [r6] <== NOT EXECUTED a00097ac: eb0005a0 bl a000ae34 <_API_Mutex_Lock> <== NOT EXECUTED
* _POSIX_Threads_Allocate
*/
RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void )
{
return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information );
a00097b0: e59f0144 ldr r0, [pc, #324] ; a00098fc <pthread_create+0x24c><== NOT EXECUTED a00097b4: eb00081c bl a000b82c <_Objects_Allocate> <== NOT EXECUTED
* Allocate the thread control block.
*
* NOTE: Global threads are not currently supported.
*/
the_thread = _POSIX_Threads_Allocate();
if ( !the_thread ) {
a00097b8: e2507000 subs r7, r0, #0 <== NOT EXECUTED a00097bc: 0a000019 beq a0009828 <pthread_create+0x178> <== NOT EXECUTED
static inline size_t _POSIX_Threads_Ensure_minimum_stack (
size_t size
)
{
if ( size >= PTHREAD_MINIMUM_STACK_SIZE )
a00097c0: e59f3124 ldr r3, [pc, #292] ; a00098ec <pthread_create+0x23c><== NOT EXECUTED
/*
* Initialize the core thread for this task.
*/
name.name_p = NULL; /* posix threads don't have a name by default */
status = _Thread_Initialize(
a00097c4: e59d1048 ldr r1, [sp, #72] ; 0x48 <== NOT EXECUTED a00097c8: e594c008 ldr ip, [r4, #8] <== NOT EXECUTED
static inline size_t _POSIX_Threads_Ensure_minimum_stack (
size_t size
)
{
if ( size >= PTHREAD_MINIMUM_STACK_SIZE )
a00097cc: e5933000 ldr r3, [r3] <== NOT EXECUTED
/*
* Initialize the core thread for this task.
*/
name.name_p = NULL; /* posix threads don't have a name by default */
status = _Thread_Initialize(
a00097d0: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a00097d4: e58d100c str r1, [sp, #12] <== NOT EXECUTED a00097d8: e59d1044 ldr r1, [sp, #68] ; 0x44 <== NOT EXECUTED a00097dc: e06b9009 rsb r9, fp, r9 <== NOT EXECUTED
static inline size_t _POSIX_Threads_Ensure_minimum_stack (
size_t size
)
{
if ( size >= PTHREAD_MINIMUM_STACK_SIZE )
a00097e0: e1a03083 lsl r3, r3, #1 <== NOT EXECUTED
/*
* Initialize the core thread for this task.
*/
name.name_p = NULL; /* posix threads don't have a name by default */
status = _Thread_Initialize(
a00097e4: e58d9004 str r9, [sp, #4] <== NOT EXECUTED a00097e8: e58d1010 str r1, [sp, #16] <== NOT EXECUTED a00097ec: e153000c cmp r3, ip <== NOT EXECUTED a00097f0: 31a0300c movcc r3, ip <== NOT EXECUTED a00097f4: e3a09001 mov r9, #1 <== NOT EXECUTED a00097f8: e59f00fc ldr r0, [pc, #252] ; a00098fc <pthread_create+0x24c><== NOT EXECUTED a00097fc: e1a01007 mov r1, r7 <== NOT EXECUTED a0009800: e58d5000 str r5, [sp] <== NOT EXECUTED a0009804: e58d9008 str r9, [sp, #8] <== NOT EXECUTED a0009808: e58d5014 str r5, [sp, #20] <== NOT EXECUTED a000980c: e58d5018 str r5, [sp, #24] <== NOT EXECUTED a0009810: eb000c59 bl a000c97c <_Thread_Initialize> <== NOT EXECUTED
budget_callout,
0, /* isr level */
name /* posix threads don't have a name */
);
if ( !status ) {
a0009814: e3500000 cmp r0, #0 <== NOT EXECUTED a0009818: 1a000006 bne a0009838 <pthread_create+0x188> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (
Thread_Control *the_pthread
)
{
_Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object );
a000981c: e59f00d8 ldr r0, [pc, #216] ; a00098fc <pthread_create+0x24c><== NOT EXECUTED a0009820: e1a01007 mov r1, r7 <== NOT EXECUTED a0009824: eb0008c7 bl a000bb48 <_Objects_Free> <== NOT EXECUTED
_POSIX_Threads_Free( the_thread );
_RTEMS_Unlock_allocator();
a0009828: e5960000 ldr r0, [r6] <== NOT EXECUTED a000982c: eb000599 bl a000ae98 <_API_Mutex_Unlock> <== NOT EXECUTED
return EAGAIN;
a0009830: e3a0500b mov r5, #11 <== NOT EXECUTED a0009834: ea000028 b a00098dc <pthread_create+0x22c> <== NOT EXECUTED
}
/*
* finish initializing the per API structure
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
a0009838: e59760fc ldr r6, [r7, #252] ; 0xfc <== NOT EXECUTED
api->Attributes = *the_attr;
a000983c: e1a0e004 mov lr, r4 <== NOT EXECUTED
a0009840: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0009844: e1a0c006 mov ip, r6 <== NOT EXECUTED
a0009848: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000984c: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0009850: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0009854: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0009858: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000985c: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED
a0009860: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED
api->detachstate = the_attr->detachstate;
a0009864: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED
api->schedpolicy = schedpolicy; api->schedparam = schedparam;
a0009868: e286c088 add ip, r6, #136 ; 0x88 <== NOT EXECUTED
* finish initializing the per API structure
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
api->Attributes = *the_attr;
api->detachstate = the_attr->detachstate;
a000986c: e5863040 str r3, [r6, #64] ; 0x40 <== NOT EXECUTED
api->schedpolicy = schedpolicy; api->schedparam = schedparam;
a0009870: e8b8000f ldm r8!, {r0, r1, r2, r3} <== NOT EXECUTED
a0009874: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0009878: e8980007 ldm r8, {r0, r1, r2} <== NOT EXECUTED
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
api->Attributes = *the_attr;
api->detachstate = the_attr->detachstate;
api->schedpolicy = schedpolicy;
a000987c: e586a084 str sl, [r6, #132] ; 0x84 <== NOT EXECUTED
api->schedparam = schedparam;
a0009880: e88c0007 stm ip, {r0, r1, r2} <== NOT EXECUTED
/*
* POSIX threads are allocated and started in one operation.
*/
status = _Thread_Start(
a0009884: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0009888: e1a00007 mov r0, r7 <== NOT EXECUTED a000988c: e1a01009 mov r1, r9 <== NOT EXECUTED a0009890: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED a0009894: e58d5000 str r5, [sp] <== NOT EXECUTED a0009898: eb000e6c bl a000d250 <_Thread_Start> <== NOT EXECUTED
_RTEMS_Unlock_allocator();
return EINVAL;
}
#endif
if ( schedpolicy == SCHED_SPORADIC ) {
a000989c: e35a0004 cmp sl, #4 <== NOT EXECUTED a00098a0: 1a000005 bne a00098bc <pthread_create+0x20c> <== NOT EXECUTED
_Watchdog_Insert_ticks(
a00098a4: e2860090 add r0, r6, #144 ; 0x90 <== NOT EXECUTED a00098a8: eb000ee0 bl a000d430 <_Timespec_To_ticks> <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a00098ac: e28610a8 add r1, r6, #168 ; 0xa8 <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a00098b0: e58600b4 str r0, [r6, #180] ; 0xb4 <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a00098b4: e59f0044 ldr r0, [pc, #68] ; a0009900 <pthread_create+0x250><== NOT EXECUTED a00098b8: eb000fa2 bl a000d748 <_Watchdog_Insert> <== NOT EXECUTED
}
/*
* Return the id and indicate we successfully created the thread
*/
*thread = the_thread->Object.id;
a00098bc: e5973008 ldr r3, [r7, #8] <== NOT EXECUTED a00098c0: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED a00098c4: e5823000 str r3, [r2] <== NOT EXECUTED
_RTEMS_Unlock_allocator();
a00098c8: e59f3028 ldr r3, [pc, #40] ; a00098f8 <pthread_create+0x248><== NOT EXECUTED a00098cc: e5930000 ldr r0, [r3] <== NOT EXECUTED a00098d0: eb000570 bl a000ae98 <_API_Mutex_Unlock> <== NOT EXECUTED
return 0;
a00098d4: ea000000 b a00098dc <pthread_create+0x22c> <== NOT EXECUTED
/*
* Interpret the scheduling parameters.
*/
if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )
return EINVAL;
a00098d8: e3a05016 mov r5, #22 <== NOT EXECUTED
*/
*thread = the_thread->Object.id;
_RTEMS_Unlock_allocator();
return 0;
}
a00098dc: e1a00005 mov r0, r5 <== NOT EXECUTED
a00098e0: e28dd04c add sp, sp, #76 ; 0x4c <== NOT EXECUTED
a00098e4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a0009684 <pthread_detach>:
#include <rtems/posix/pthread.h>
int pthread_detach(
pthread_t thread
)
{
a0009684: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
register Thread_Control *the_thread;
POSIX_API_Control *api;
Objects_Locations location;
the_thread = _Thread_Get( thread, &location );
a0009688: e1a0100d mov r1, sp <== NOT EXECUTED a000968c: eb000b86 bl a000c4ac <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a0009690: e59d4000 ldr r4, [sp] <== NOT EXECUTED a0009694: e3540000 cmp r4, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return ESRCH;
a0009698: 13a00003 movne r0, #3 <== NOT EXECUTED
register Thread_Control *the_thread;
POSIX_API_Control *api;
Objects_Locations location;
the_thread = _Thread_Get( thread, &location );
switch ( location ) {
a000969c: 1a000003 bne a00096b0 <pthread_detach+0x2c> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
api->detachstate = PTHREAD_CREATE_DETACHED;
a00096a0: e59030fc ldr r3, [r0, #252] ; 0xfc <== NOT EXECUTED a00096a4: e5834040 str r4, [r3, #64] ; 0x40 <== NOT EXECUTED
_Thread_Enable_dispatch();
a00096a8: eb000b76 bl a000c488 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a00096ac: e1a00004 mov r0, r4 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return ESRCH;
}
a00096b0: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a0009904 <pthread_equal>:
break;
}
return status;
#endif
}
a0009904: e1500001 cmp r0, r1 <== NOT EXECUTED a0009908: 13a00000 movne r0, #0 <== NOT EXECUTED a000990c: 03a00001 moveq r0, #1 <== NOT EXECUTED a0009910: e12fff1e bx lr <== NOT EXECUTED
a0010b70 <pthread_exit>:
void pthread_exit(
void *value_ptr
)
{
_POSIX_Thread_Exit( _Thread_Executing, value_ptr );
a0010b70: e59f3008 ldr r3, [pc, #8] ; a0010b80 <pthread_exit+0x10> <== NOT EXECUTED
}
void pthread_exit(
void *value_ptr
)
{
a0010b74: e1a01000 mov r1, r0 <== NOT EXECUTED
_POSIX_Thread_Exit( _Thread_Executing, value_ptr );
a0010b78: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a0010b7c: eaffffe0 b a0010b04 <_POSIX_Thread_Exit> <== NOT EXECUTED
a0009270 <pthread_getcpuclockid>:
int pthread_getcpuclockid(
pthread_t pid,
clockid_t *clock_id
)
{
a0009270: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0009274: eb0021c3 bl a0011988 <__errno> <== NOT EXECUTED a0009278: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a000927c: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0009280: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009284: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000bdc0 <pthread_getschedparam>:
{
Objects_Locations location;
POSIX_API_Control *api;
register Thread_Control *the_thread;
if ( !policy || !param )
a000bdc0: e3510000 cmp r1, #0 <== NOT EXECUTED a000bdc4: 13520000 cmpne r2, #0 <== NOT EXECUTED
int pthread_getschedparam(
pthread_t thread,
int *policy,
struct sched_param *param
)
{
a000bdc8: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
Objects_Locations location;
POSIX_API_Control *api;
register Thread_Control *the_thread;
if ( !policy || !param )
a000bdcc: e1a04002 mov r4, r2 <== NOT EXECUTED a000bdd0: e1a06001 mov r6, r1 <== NOT EXECUTED
return EINVAL;
a000bdd4: 03a00016 moveq r0, #22 <== NOT EXECUTED
{
Objects_Locations location;
POSIX_API_Control *api;
register Thread_Control *the_thread;
if ( !policy || !param )
a000bdd8: 0a000016 beq a000be38 <pthread_getschedparam+0x78> <== NOT EXECUTED
return EINVAL;
the_thread = _Thread_Get( thread, &location );
a000bddc: e1a0100d mov r1, sp <== NOT EXECUTED a000bde0: eb000ba3 bl a000ec74 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000bde4: e59d5000 ldr r5, [sp] <== NOT EXECUTED
register Thread_Control *the_thread;
if ( !policy || !param )
return EINVAL;
the_thread = _Thread_Get( thread, &location );
a000bde8: e1a0c000 mov ip, r0 <== NOT EXECUTED
switch ( location ) {
a000bdec: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return ESRCH;
a000bdf0: 13a00003 movne r0, #3 <== NOT EXECUTED
if ( !policy || !param )
return EINVAL;
the_thread = _Thread_Get( thread, &location );
switch ( location ) {
a000bdf4: 1a00000f bne a000be38 <pthread_getschedparam+0x78> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
a000bdf8: e59ce0fc ldr lr, [ip, #252] ; 0xfc <== NOT EXECUTED
if ( policy )
*policy = api->schedpolicy;
a000bdfc: e59e3084 ldr r3, [lr, #132] ; 0x84 <== NOT EXECUTED
if ( param ) {
*param = api->schedparam;
a000be00: e28ee088 add lr, lr, #136 ; 0x88 <== NOT EXECUTED
switch ( location ) {
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
if ( policy )
*policy = api->schedpolicy;
a000be04: e5863000 str r3, [r6] <== NOT EXECUTED
if ( param ) {
*param = api->schedparam;
a000be08: e1a06004 mov r6, r4 <== NOT EXECUTED
a000be0c: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a000be10: e8a6000f stmia r6!, {r0, r1, r2, r3} <== NOT EXECUTED
a000be14: e89e0007 ldm lr, {r0, r1, r2} <== NOT EXECUTED
a000be18: e8860007 stm r6, {r0, r1, r2} <== NOT EXECUTED
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
Priority_Control priority
)
{
return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
a000be1c: e59f3018 ldr r3, [pc, #24] ; a000be3c <pthread_getschedparam+0x7c><== NOT EXECUTED a000be20: e5d32000 ldrb r2, [r3] <== NOT EXECUTED a000be24: e59c3014 ldr r3, [ip, #20] <== NOT EXECUTED a000be28: e0633002 rsb r3, r3, r2 <== NOT EXECUTED
param->sched_priority =
a000be2c: e5843000 str r3, [r4] <== NOT EXECUTED
_POSIX_Priority_From_core( the_thread->current_priority );
}
_Thread_Enable_dispatch();
a000be30: eb000b86 bl a000ec50 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000be34: e1a00005 mov r0, r5 <== NOT EXECUTED
break;
}
return ESRCH;
}
a000be38: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a0009598 <pthread_getspecific>:
*/
void *pthread_getspecific(
pthread_key_t key
)
{
a0009598: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
a000959c: e1a01000 mov r1, r0 <== NOT EXECUTED
pthread_key_t id,
Objects_Locations *location
)
{
return (POSIX_Keys_Control *)
_Objects_Get( &_POSIX_Keys_Information, (Objects_Id) id, location );
a00095a0: e1a0200d mov r2, sp <== NOT EXECUTED a00095a4: e59f0040 ldr r0, [pc, #64] ; a00095ec <pthread_getspecific+0x54><== NOT EXECUTED a00095a8: eb000907 bl a000b9cc <_Objects_Get> <== NOT EXECUTED
uint32_t index;
Objects_Locations location;
void *key_data;
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
a00095ac: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00095b0: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return NULL;
a00095b4: 13a04000 movne r4, #0 <== NOT EXECUTED
uint32_t index;
Objects_Locations location;
void *key_data;
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
a00095b8: 1a000009 bne a00095e4 <pthread_getspecific+0x4c> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = _Objects_Get_API( _Thread_Executing->Object.id );
a00095bc: e59f302c ldr r3, [pc, #44] ; a00095f0 <pthread_getspecific+0x58><== NOT EXECUTED a00095c0: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a00095c4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Objects_APIs _Objects_Get_API(
Objects_Id id
)
{
return (Objects_APIs) ((id >> OBJECTS_API_START_BIT) & OBJECTS_API_VALID_BITS);
a00095c8: e1a02c23 lsr r2, r3, #24 <== NOT EXECUTED a00095cc: e2022007 and r2, r2, #7 <== NOT EXECUTED
index = _Objects_Get_index( _Thread_Executing->Object.id );
key_data = (void *) the_key->Values[ api ][ index ];
a00095d0: e2822005 add r2, r2, #5 <== NOT EXECUTED a00095d4: e7902102 ldr r2, [r0, r2, lsl #2] <== NOT EXECUTED
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
case OBJECTS_LOCAL:
api = _Objects_Get_API( _Thread_Executing->Object.id );
index = _Objects_Get_index( _Thread_Executing->Object.id );
a00095d8: e1a03803 lsl r3, r3, #16 <== NOT EXECUTED
key_data = (void *) the_key->Values[ api ][ index ];
a00095dc: e7924723 ldr r4, [r2, r3, lsr #14] <== NOT EXECUTED
_Thread_Enable_dispatch();
a00095e0: eb000c00 bl a000c5e8 <_Thread_Enable_dispatch> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return NULL;
}
a00095e4: e1a00004 mov r0, r4 <== NOT EXECUTED
a00095e8: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000eca0 <pthread_join>:
int pthread_join(
pthread_t thread,
void **value_ptr
)
{
a000eca0: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED
a000eca4: e1a04001 mov r4, r1 <== NOT EXECUTED
register Thread_Control *the_thread;
POSIX_API_Control *api;
Objects_Locations location;
void *return_pointer;
the_thread = _Thread_Get( thread, &location );
a000eca8: e28d1004 add r1, sp, #4 <== NOT EXECUTED a000ecac: eb000ba6 bl a0011b4c <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000ecb0: e59d5004 ldr r5, [sp, #4] <== NOT EXECUTED a000ecb4: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return ESRCH;
a000ecb8: 13a00003 movne r0, #3 <== NOT EXECUTED
POSIX_API_Control *api;
Objects_Locations location;
void *return_pointer;
the_thread = _Thread_Get( thread, &location );
switch ( location ) {
a000ecbc: 1a00001a bne a000ed2c <pthread_join+0x8c> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
a000ecc0: e59030fc ldr r3, [r0, #252] ; 0xfc <== NOT EXECUTED
if ( api->detachstate == PTHREAD_CREATE_DETACHED ) {
a000ecc4: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED a000ecc8: e3520000 cmp r2, #0 <== NOT EXECUTED a000eccc: 1a000002 bne a000ecdc <pthread_join+0x3c> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000ecd0: eb000b94 bl a0011b28 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EINVAL;
a000ecd4: e3a00016 mov r0, #22 <== NOT EXECUTED a000ecd8: ea000013 b a000ed2c <pthread_join+0x8c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (
const Thread_Control *the_thread
)
{
return ( the_thread == _Thread_Executing );
a000ecdc: e59f204c ldr r2, [pc, #76] ; a000ed30 <pthread_join+0x90> <== NOT EXECUTED a000ece0: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED
}
if ( _Thread_Is_executing( the_thread ) ) {
a000ece4: e1500002 cmp r0, r2 <== NOT EXECUTED a000ece8: 1a000002 bne a000ecf8 <pthread_join+0x58> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000ecec: eb000b8d bl a0011b28 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EDEADLK;
a000ecf0: e3a0002d mov r0, #45 ; 0x2d <== NOT EXECUTED a000ecf4: ea00000c b a000ed2c <pthread_join+0x8c> <== NOT EXECUTED
/*
* Put ourself on the threads join list
*/
_Thread_Executing->Wait.return_argument = &return_pointer;
a000ecf8: e582d028 str sp, [r2, #40] ; 0x28 <== 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;
a000ecfc: e3a02001 mov r2, #1 <== NOT EXECUTED
_Thread_queue_Enter_critical_section( &api->Join_List );
_Thread_queue_Enqueue( &api->Join_List, WATCHDOG_NO_TIMEOUT );
a000ed00: e2830044 add r0, r3, #68 ; 0x44 <== NOT EXECUTED a000ed04: e5832074 str r2, [r3, #116] ; 0x74 <== NOT EXECUTED a000ed08: e1a01005 mov r1, r5 <== NOT EXECUTED a000ed0c: e59f2020 ldr r2, [pc, #32] ; a000ed34 <pthread_join+0x94> <== NOT EXECUTED a000ed10: eb000ca9 bl a0011fbc <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000ed14: eb000b83 bl a0011b28 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( value_ptr )
a000ed18: e3540000 cmp r4, #0 <== NOT EXECUTED
*value_ptr = return_pointer;
a000ed1c: 159d3000 ldrne r3, [sp] <== NOT EXECUTED
return 0;
a000ed20: 11a00005 movne r0, r5 <== NOT EXECUTED a000ed24: 01a00004 moveq r0, r4 <== NOT EXECUTED
_Thread_queue_Enqueue( &api->Join_List, WATCHDOG_NO_TIMEOUT );
_Thread_Enable_dispatch();
if ( value_ptr )
*value_ptr = return_pointer;
a000ed28: 15843000 strne r3, [r4] <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return ESRCH;
}
a000ed2c: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED
a0009438 <pthread_key_create>:
a0009438: e59f30d0 ldr r3, [pc, #208] ; a0009510 <pthread_key_create+0xd8><== NOT EXECUTED
int pthread_key_create(
pthread_key_t *key,
void (*destructor)( void * )
)
{
a000943c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED
a0009440: e5932000 ldr r2, [r3] <== NOT EXECUTED
a0009444: e1a0a000 mov sl, r0 <== NOT EXECUTED
a0009448: e1a05001 mov r5, r1 <== NOT EXECUTED
a000944c: e2822001 add r2, r2, #1 <== NOT EXECUTED
a0009450: e5832000 str r2, [r3] <== NOT EXECUTED
* the inactive chain of free keys control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Keys_Control *_POSIX_Keys_Allocate( void )
{
return (POSIX_Keys_Control *) _Objects_Allocate( &_POSIX_Keys_Information );
a0009454: e59f00b8 ldr r0, [pc, #184] ; a0009514 <pthread_key_create+0xdc><== NOT EXECUTED a0009458: eb00083c bl a000b550 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch();
the_key = _POSIX_Keys_Allocate();
if ( !the_key ) {
a000945c: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0009460: 1a000002 bne a0009470 <pthread_key_create+0x38> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009464: eb000c5f bl a000c5e8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EAGAIN;
a0009468: e3a0000b mov r0, #11 <== NOT EXECUTED
a000946c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
}
the_key->destructor = destructor;
a0009470: e59f80a0 ldr r8, [pc, #160] ; a0009518 <pthread_key_create+0xe0><== NOT EXECUTED a0009474: e5845010 str r5, [r4, #16] <== NOT EXECUTED a0009478: e1a06004 mov r6, r4 <== NOT EXECUTED a000947c: e3a05003 mov r5, #3 <== NOT EXECUTED
* APIs are optional.
*
* NOTE: Currently RTEMS Classic API tasks are always enabled.
*/
for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) {
the_key->Values[ the_api ] = NULL;
a0009480: e3a07000 mov r7, #0 <== NOT EXECUTED
INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY
);
#endif
bytes_to_allocate = sizeof( void * ) *
(_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);
a0009484: e5b83004 ldr r3, [r8, #4]! <== NOT EXECUTED
* APIs are optional.
*
* NOTE: Currently RTEMS Classic API tasks are always enabled.
*/
for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) {
the_key->Values[ the_api ] = NULL;
a0009488: e5867018 str r7, [r6, #24] <== NOT EXECUTED
INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY
);
#endif
bytes_to_allocate = sizeof( void * ) *
(_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);
a000948c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0009490: e1d391b0 ldrh r9, [r3, #16] <== NOT EXECUTED a0009494: e2899001 add r9, r9, #1 <== NOT EXECUTED
true,
INTERNAL_ERROR_IMPLEMENTATION_KEY_CREATE_INCONSISTENCY
);
#endif
bytes_to_allocate = sizeof( void * ) *
a0009498: e1a09109 lsl r9, r9, #2 <== NOT EXECUTED
(_Objects_Information_table[ the_api ][ 1 ]->maximum + 1);
table = _Workspace_Allocate( bytes_to_allocate );
a000949c: e1a00009 mov r0, r9 <== NOT EXECUTED a00094a0: eb0010c5 bl a000d7bc <_Workspace_Allocate> <== NOT EXECUTED
if ( !table ) {
a00094a4: e2503000 subs r3, r0, #0 <== NOT EXECUTED a00094a8: 1a000007 bne a00094cc <pthread_key_create+0x94> <== NOT EXECUTED
_POSIX_Keys_Free_memory( the_key );
a00094ac: e1a00004 mov r0, r4 <== NOT EXECUTED a00094b0: eb00002f bl a0009574 <_POSIX_Keys_Free_memory> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (
POSIX_Keys_Control *the_key
)
{
_Objects_Free( &_POSIX_Keys_Information, &the_key->Object );
a00094b4: e59f0058 ldr r0, [pc, #88] ; a0009514 <pthread_key_create+0xdc><== NOT EXECUTED a00094b8: e1a01004 mov r1, r4 <== NOT EXECUTED a00094bc: eb0008ea bl a000b86c <_Objects_Free> <== NOT EXECUTED
_POSIX_Keys_Free( the_key );
_Thread_Enable_dispatch();
a00094c0: eb000c48 bl a000c5e8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return ENOMEM;
a00094c4: e3a0000c mov r0, #12 <== NOT EXECUTED
a00094c8: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
}
the_key->Values[ the_api ] = table;
a00094cc: e5863018 str r3, [r6, #24] <== NOT EXECUTED
memset( table, '\0', bytes_to_allocate );
a00094d0: e1a01007 mov r1, r7 <== NOT EXECUTED a00094d4: e1a02009 mov r2, r9 <== NOT EXECUTED a00094d8: eb0024a9 bl a0012784 <memset> <== NOT EXECUTED
* This is a bit more complex than one might initially expect because
* APIs are optional.
*
* NOTE: Currently RTEMS Classic API tasks are always enabled.
*/
for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) {
a00094dc: e2555001 subs r5, r5, #1 <== NOT EXECUTED
_Thread_Enable_dispatch();
return ENOMEM;
}
the_key->Values[ the_api ] = table;
memset( table, '\0', bytes_to_allocate );
a00094e0: e2866004 add r6, r6, #4 <== NOT EXECUTED
* This is a bit more complex than one might initially expect because
* APIs are optional.
*
* NOTE: Currently RTEMS Classic API tasks are always enabled.
*/
for ( the_api = 1; the_api <= OBJECTS_APIS_LAST; the_api++ ) {
a00094e4: 1affffe6 bne a0009484 <pthread_key_create+0x4c> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a00094e8: e59f2024 ldr r2, [pc, #36] ; a0009514 <pthread_key_create+0xdc><== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
a00094ec: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a00094f0: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a00094f4: e592201c ldr r2, [r2, #28] <== NOT EXECUTED a00094f8: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
a00094fc: e584500c str r5, [r4, #12] <== NOT EXECUTED
the_key->Values[ the_api ] = table;
memset( table, '\0', bytes_to_allocate );
}
_Objects_Open_u32( &_POSIX_Keys_Information, &the_key->Object, 0 );
*key = the_key->Object.id;
a0009500: e58a3000 str r3, [sl] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009504: eb000c37 bl a000c5e8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a0009508: e1a00005 mov r0, r5 <== NOT EXECUTED
}
a000950c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
a000951c <pthread_key_delete>:
* 17.1.3 Thread-Specific Data Key Deletion, P1003.1c/Draft 10, p. 167
*/
int pthread_key_delete(
pthread_key_t key
)
{
a000951c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a0009520: e1a01000 mov r1, r0 <== NOT EXECUTED
pthread_key_t id,
Objects_Locations *location
)
{
return (POSIX_Keys_Control *)
_Objects_Get( &_POSIX_Keys_Information, (Objects_Id) id, location );
a0009524: e1a0200d mov r2, sp <== NOT EXECUTED a0009528: e59f0040 ldr r0, [pc, #64] ; a0009570 <pthread_key_delete+0x54><== NOT EXECUTED a000952c: eb000926 bl a000b9cc <_Objects_Get> <== NOT EXECUTED
POSIX_Keys_Control *the_key;
Objects_Locations location;
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
a0009530: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0009534: e1a04000 mov r4, r0 <== NOT EXECUTED a0009538: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000953c: 13a00016 movne r0, #22 <== NOT EXECUTED
{
POSIX_Keys_Control *the_key;
Objects_Locations location;
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
a0009540: 1a000009 bne a000956c <pthread_key_delete+0x50> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_POSIX_Keys_Information, &the_key->Object );
a0009544: e1a01004 mov r1, r4 <== NOT EXECUTED a0009548: e59f0020 ldr r0, [pc, #32] ; a0009570 <pthread_key_delete+0x54><== NOT EXECUTED a000954c: eb000821 bl a000b5d8 <_Objects_Close> <== NOT EXECUTED
_POSIX_Keys_Free_memory( the_key );
a0009550: e1a00004 mov r0, r4 <== NOT EXECUTED a0009554: eb000006 bl a0009574 <_POSIX_Keys_Free_memory> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _POSIX_Keys_Free (
POSIX_Keys_Control *the_key
)
{
_Objects_Free( &_POSIX_Keys_Information, &the_key->Object );
a0009558: e59f0010 ldr r0, [pc, #16] ; a0009570 <pthread_key_delete+0x54><== NOT EXECUTED a000955c: e1a01004 mov r1, r4 <== NOT EXECUTED a0009560: eb0008c1 bl a000b86c <_Objects_Free> <== NOT EXECUTED
/*
* NOTE: The destructor is not called and it is the responsibility
* of the application to free the memory.
*/
_POSIX_Keys_Free( the_key );
_Thread_Enable_dispatch();
a0009564: eb000c1f bl a000c5e8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a0009568: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
a000956c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0025b88 <pthread_kill>:
int pthread_kill(
pthread_t thread,
int sig
)
{
a0025b88: e92d41f1 push {r0, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
POSIX_API_Control *api;
Thread_Control *the_thread;
Objects_Locations location;
if ( !sig )
a0025b8c: e2517000 subs r7, r1, #0 <== NOT EXECUTED a0025b90: 0a000002 beq a0025ba0 <pthread_kill+0x18> <== NOT EXECUTED
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
a0025b94: e2478001 sub r8, r7, #1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(sig) )
a0025b98: e358001f cmp r8, #31 <== NOT EXECUTED a0025b9c: 9a000002 bls a0025bac <pthread_kill+0x24> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0025ba0: ebffc19d bl a001621c <__errno> <== NOT EXECUTED a0025ba4: e3a03016 mov r3, #22 <== NOT EXECUTED a0025ba8: ea000022 b a0025c38 <pthread_kill+0xb0> <== NOT EXECUTED
the_thread = _Thread_Get( thread, &location );
a0025bac: e1a0100d mov r1, sp <== NOT EXECUTED a0025bb0: ebffab2b bl a0010864 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a0025bb4: e59d6000 ldr r6, [sp] <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(sig) )
rtems_set_errno_and_return_minus_one( EINVAL );
the_thread = _Thread_Get( thread, &location );
a0025bb8: e1a05000 mov r5, r0 <== NOT EXECUTED
switch ( location ) {
a0025bbc: e3560000 cmp r6, #0 <== NOT EXECUTED a0025bc0: 1a00001a bne a0025c30 <pthread_kill+0xa8> <== NOT EXECUTED
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
if ( sig ) {
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {
a0025bc4: e59f2078 ldr r2, [pc, #120] ; a0025c44 <pthread_kill+0xbc> <== NOT EXECUTED a0025bc8: e3a0100c mov r1, #12 <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* If sig == 0 then just validate arguments
*/
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
a0025bcc: e59030fc ldr r3, [r0, #252] ; 0xfc <== NOT EXECUTED
if ( sig ) {
if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {
a0025bd0: e0222791 mla r2, r1, r7, r2 <== NOT EXECUTED a0025bd4: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a0025bd8: e3520001 cmp r2, #1 <== NOT EXECUTED a0025bdc: 1a000002 bne a0025bec <pthread_kill+0x64> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0025be0: ebffab16 bl a0010840 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a0025be4: e1a00006 mov r0, r6 <== NOT EXECUTED a0025be8: ea000014 b a0025c40 <pthread_kill+0xb8> <== NOT EXECUTED
}
/* XXX critical section */
api->signals_pending |= signo_to_mask( sig );
a0025bec: e59320d4 ldr r2, [r3, #212] ; 0xd4 <== NOT EXECUTED
static inline sigset_t signo_to_mask(
uint32_t sig
)
{
return 1u << (sig - 1);
a0025bf0: e3a04001 mov r4, #1 <== NOT EXECUTED
(void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
a0025bf4: e1a01007 mov r1, r7 <== NOT EXECUTED
return 0;
}
/* XXX critical section */
api->signals_pending |= signo_to_mask( sig );
a0025bf8: e1828814 orr r8, r2, r4, lsl r8 <== NOT EXECUTED
(void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
a0025bfc: e1a02006 mov r2, r6 <== NOT EXECUTED
return 0;
}
/* XXX critical section */
api->signals_pending |= signo_to_mask( sig );
a0025c00: e58380d4 str r8, [r3, #212] ; 0xd4 <== NOT EXECUTED
(void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
a0025c04: ebffff93 bl a0025a58 <_POSIX_signals_Unblock_thread> <== NOT EXECUTED
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
a0025c08: e59f3038 ldr r3, [pc, #56] ; a0025c48 <pthread_kill+0xc0> <== NOT EXECUTED a0025c0c: e5932000 ldr r2, [r3] <== NOT EXECUTED a0025c10: e3520000 cmp r2, #0 <== NOT EXECUTED a0025c14: 0a000002 beq a0025c24 <pthread_kill+0x9c> <== NOT EXECUTED a0025c18: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a0025c1c: e1550002 cmp r5, r2 <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
a0025c20: 05c34010 strbeq r4, [r3, #16] <== NOT EXECUTED
}
_Thread_Enable_dispatch();
a0025c24: ebffab05 bl a0010840 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a0025c28: e3a00000 mov r0, #0 <== NOT EXECUTED a0025c2c: ea000003 b a0025c40 <pthread_kill+0xb8> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( ESRCH );
a0025c30: ebffc179 bl a001621c <__errno> <== NOT EXECUTED a0025c34: e3a03003 mov r3, #3 <== NOT EXECUTED a0025c38: e5803000 str r3, [r0] <== NOT EXECUTED a0025c3c: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a0025c40: e8bd81f8 pop {r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000b5b4 <pthread_mutex_destroy>:
*/
int pthread_mutex_destroy(
pthread_mutex_t *mutex
)
{
a000b5b4: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
the_mutex = _POSIX_Mutex_Get( mutex, &location );
a000b5b8: e1a0100d mov r1, sp <== NOT EXECUTED a000b5bc: eb000018 bl a000b624 <_POSIX_Mutex_Get> <== NOT EXECUTED
switch ( location ) {
a000b5c0: e59d5000 ldr r5, [sp] <== NOT EXECUTED
)
{
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
the_mutex = _POSIX_Mutex_Get( mutex, &location );
a000b5c4: e1a04000 mov r4, r0 <== NOT EXECUTED
switch ( location ) {
a000b5c8: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000b5cc: 13a00016 movne r0, #22 <== NOT EXECUTED
{
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
the_mutex = _POSIX_Mutex_Get( mutex, &location );
switch ( location ) {
a000b5d0: 1a000011 bne a000b61c <pthread_mutex_destroy+0x68> <== NOT EXECUTED
/*
* XXX: There is an error for the mutex being locked
* or being in use by a condition variable.
*/
if ( _CORE_mutex_Is_locked( &the_mutex->Mutex ) ) {
a000b5d4: e5943064 ldr r3, [r4, #100] ; 0x64 <== NOT EXECUTED a000b5d8: e3530000 cmp r3, #0 <== NOT EXECUTED a000b5dc: 1a000002 bne a000b5ec <pthread_mutex_destroy+0x38> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000b5e0: eb000d9a bl a000ec50 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EBUSY;
a000b5e4: e3a00010 mov r0, #16 <== NOT EXECUTED a000b5e8: ea00000b b a000b61c <pthread_mutex_destroy+0x68> <== NOT EXECUTED
}
_Objects_Close( &_POSIX_Mutex_Information, &the_mutex->Object );
a000b5ec: e59f002c ldr r0, [pc, #44] ; a000b620 <pthread_mutex_destroy+0x6c><== NOT EXECUTED a000b5f0: e1a01004 mov r1, r4 <== NOT EXECUTED a000b5f4: eb000991 bl a000dc40 <_Objects_Close> <== NOT EXECUTED
_CORE_mutex_Flush( &the_mutex->Mutex, NULL, EINVAL );
a000b5f8: e3a02016 mov r2, #22 <== NOT EXECUTED a000b5fc: e2840014 add r0, r4, #20 <== NOT EXECUTED a000b600: e1a01005 mov r1, r5 <== NOT EXECUTED a000b604: eb000714 bl a000d25c <_CORE_mutex_Flush> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Mutex_Free (
POSIX_Mutex_Control *the_mutex
)
{
_Objects_Free( &_POSIX_Mutex_Information, &the_mutex->Object );
a000b608: e59f0010 ldr r0, [pc, #16] ; a000b620 <pthread_mutex_destroy+0x6c><== NOT EXECUTED a000b60c: e1a01004 mov r1, r4 <== NOT EXECUTED a000b610: eb000a2f bl a000ded4 <_Objects_Free> <== NOT EXECUTED
_POSIX_Mutex_Free( the_mutex );
_Thread_Enable_dispatch();
a000b614: eb000d8d bl a000ec50 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000b618: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
a000b61c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000b6f4 <pthread_mutex_getprioceiling>:
int pthread_mutex_getprioceiling(
pthread_mutex_t *mutex,
int *prioceiling
)
{
a000b6f4: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
if ( !prioceiling )
a000b6f8: e2514000 subs r4, r1, #0 <== NOT EXECUTED a000b6fc: 0a00000c beq a000b734 <pthread_mutex_getprioceiling+0x40> <== NOT EXECUTED
return EINVAL;
the_mutex = _POSIX_Mutex_Get( mutex, &location );
a000b700: e1a0100d mov r1, sp <== NOT EXECUTED a000b704: ebffffc6 bl a000b624 <_POSIX_Mutex_Get> <== NOT EXECUTED
switch ( location ) {
a000b708: e59d5000 ldr r5, [sp] <== NOT EXECUTED a000b70c: e3550000 cmp r5, #0 <== NOT EXECUTED a000b710: 1a000007 bne a000b734 <pthread_mutex_getprioceiling+0x40> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
Priority_Control priority
)
{
return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
a000b714: e59f3020 ldr r3, [pc, #32] ; a000b73c <pthread_mutex_getprioceiling+0x48><== NOT EXECUTED a000b718: e5d32000 ldrb r2, [r3] <== NOT EXECUTED a000b71c: e5903060 ldr r3, [r0, #96] ; 0x60 <== NOT EXECUTED a000b720: e0633002 rsb r3, r3, r2 <== NOT EXECUTED
case OBJECTS_LOCAL:
*prioceiling = _POSIX_Priority_From_core(
a000b724: e5843000 str r3, [r4] <== NOT EXECUTED
the_mutex->Mutex.Attributes.priority_ceiling
);
_Thread_Enable_dispatch();
a000b728: eb000d48 bl a000ec50 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000b72c: e1a00005 mov r0, r5 <== NOT EXECUTED a000b730: ea000000 b a000b738 <pthread_mutex_getprioceiling+0x44> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000b734: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a000b738: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000b740 <pthread_mutex_init>:
CORE_mutex_Attributes *the_mutex_attr;
const pthread_mutexattr_t *the_attr;
CORE_mutex_Disciplines the_discipline;
if ( attr ) the_attr = attr;
else the_attr = &_POSIX_Mutex_Default_attributes;
a000b740: e59f3134 ldr r3, [pc, #308] ; a000b87c <pthread_mutex_init+0x13c><== NOT EXECUTED a000b744: e3510000 cmp r1, #0 <== NOT EXECUTED
int pthread_mutex_init(
pthread_mutex_t *mutex,
const pthread_mutexattr_t *attr
)
{
a000b748: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
CORE_mutex_Attributes *the_mutex_attr;
const pthread_mutexattr_t *the_attr;
CORE_mutex_Disciplines the_discipline;
if ( attr ) the_attr = attr;
else the_attr = &_POSIX_Mutex_Default_attributes;
a000b74c: 11a06001 movne r6, r1 <== NOT EXECUTED a000b750: 01a06003 moveq r6, r3 <== NOT EXECUTED
/* Check for NULL mutex */
if ( !mutex )
a000b754: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000b758: 0a000043 beq a000b86c <pthread_mutex_init+0x12c> <== NOT EXECUTED
}
}
}
#endif
if ( !the_attr->is_initialized )
a000b75c: e5963000 ldr r3, [r6] <== NOT EXECUTED a000b760: e3530000 cmp r3, #0 <== NOT EXECUTED a000b764: 0a000040 beq a000b86c <pthread_mutex_init+0x12c> <== NOT EXECUTED
return EINVAL;
/*
* We only support process private mutexes.
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
a000b768: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED a000b76c: e3530001 cmp r3, #1 <== NOT EXECUTED a000b770: 0a00003b beq a000b864 <pthread_mutex_init+0x124> <== NOT EXECUTED
return ENOSYS;
if ( the_attr->process_shared != PTHREAD_PROCESS_PRIVATE )
a000b774: e3530000 cmp r3, #0 <== NOT EXECUTED a000b778: 1a00003b bne a000b86c <pthread_mutex_init+0x12c> <== NOT EXECUTED
return EINVAL;
/*
* Determine the discipline of the mutex
*/
switch ( the_attr->protocol ) {
a000b77c: e596700c ldr r7, [r6, #12] <== NOT EXECUTED a000b780: e3570001 cmp r7, #1 <== NOT EXECUTED a000b784: 0a000006 beq a000b7a4 <pthread_mutex_init+0x64> <== NOT EXECUTED a000b788: e3570002 cmp r7, #2 <== NOT EXECUTED a000b78c: 0a000002 beq a000b79c <pthread_mutex_init+0x5c> <== NOT EXECUTED a000b790: e3570000 cmp r7, #0 <== NOT EXECUTED a000b794: 1a000034 bne a000b86c <pthread_mutex_init+0x12c> <== NOT EXECUTED a000b798: ea000002 b a000b7a8 <pthread_mutex_init+0x68> <== NOT EXECUTED
break;
case PTHREAD_PRIO_INHERIT:
the_discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
break;
case PTHREAD_PRIO_PROTECT:
the_discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
a000b79c: e3a07003 mov r7, #3 <== NOT EXECUTED
break;
a000b7a0: ea000000 b a000b7a8 <pthread_mutex_init+0x68> <== NOT EXECUTED
switch ( the_attr->protocol ) {
case PTHREAD_PRIO_NONE:
the_discipline = CORE_MUTEX_DISCIPLINES_FIFO;
break;
case PTHREAD_PRIO_INHERIT:
the_discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
a000b7a4: e3a07002 mov r7, #2 <== NOT EXECUTED
}
/*
* Validate the priority ceiling field -- should always be valid.
*/
if ( !_POSIX_Priority_Is_valid( the_attr->prio_ceiling ) )
a000b7a8: e5960008 ldr r0, [r6, #8] <== NOT EXECUTED a000b7ac: eb0000c3 bl a000bac0 <_POSIX_Priority_Is_valid> <== NOT EXECUTED a000b7b0: e3500000 cmp r0, #0 <== NOT EXECUTED a000b7b4: 0a00002c beq a000b86c <pthread_mutex_init+0x12c> <== NOT EXECUTED
#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
/*
* Validate the mutex type and set appropriate SuperCore mutex
* attributes.
*/
switch ( the_attr->type ) {
a000b7b8: e5963010 ldr r3, [r6, #16] <== NOT EXECUTED a000b7bc: e3530003 cmp r3, #3 <== NOT EXECUTED a000b7c0: 8a00002b bhi a000b874 <pthread_mutex_init+0x134> <== NOT EXECUTED a000b7c4: e59f30b4 ldr r3, [pc, #180] ; a000b880 <pthread_mutex_init+0x140><== NOT EXECUTED a000b7c8: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b7cc: e2822001 add r2, r2, #1 <== NOT EXECUTED a000b7d0: e5832000 str r2, [r3] <== NOT EXECUTED
* _POSIX_Mutex_Allocate
*/
RTEMS_INLINE_ROUTINE POSIX_Mutex_Control *_POSIX_Mutex_Allocate( void )
{
return (POSIX_Mutex_Control *) _Objects_Allocate( &_POSIX_Mutex_Information );
a000b7d4: e59f00a8 ldr r0, [pc, #168] ; a000b884 <pthread_mutex_init+0x144><== NOT EXECUTED a000b7d8: eb0008f6 bl a000dbb8 <_Objects_Allocate> <== NOT EXECUTED
*/
_Thread_Disable_dispatch();
the_mutex = _POSIX_Mutex_Allocate();
if ( !the_mutex ) {
a000b7dc: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000b7e0: 1a000002 bne a000b7f0 <pthread_mutex_init+0xb0> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000b7e4: eb000d19 bl a000ec50 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EAGAIN;
a000b7e8: e3a0000b mov r0, #11 <== NOT EXECUTED
a000b7ec: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
}
the_mutex->process_shared = the_attr->process_shared;
a000b7f0: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED
if ( the_attr->recursive )
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
else
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR;
the_mutex_attr->only_owner_release = true;
a000b7f4: e3a02001 mov r2, #1 <== NOT EXECUTED
return EAGAIN;
}
the_mutex->process_shared = the_attr->process_shared;
the_mutex_attr = &the_mutex->Mutex.Attributes;
a000b7f8: e2841054 add r1, r4, #84 ; 0x54 <== NOT EXECUTED
if ( !the_mutex ) {
_Thread_Enable_dispatch();
return EAGAIN;
}
the_mutex->process_shared = the_attr->process_shared;
a000b7fc: e5843010 str r3, [r4, #16] <== NOT EXECUTED
the_mutex_attr = &the_mutex->Mutex.Attributes;
if ( the_attr->recursive )
a000b800: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
else
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR;
the_mutex_attr->only_owner_release = true;
a000b804: e5c42058 strb r2, [r4, #88] ; 0x58 <== NOT EXECUTED
the_mutex->process_shared = the_attr->process_shared;
the_mutex_attr = &the_mutex->Mutex.Attributes;
if ( the_attr->recursive )
a000b808: e3530000 cmp r3, #0 <== NOT EXECUTED
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
a000b80c: 13a03000 movne r3, #0 <== NOT EXECUTED
else
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR;
a000b810: 03a03001 moveq r3, #1 <== NOT EXECUTED a000b814: e5843054 str r3, [r4, #84] ; 0x54 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
a000b818: e59f3068 ldr r3, [pc, #104] ; a000b888 <pthread_mutex_init+0x148><== NOT EXECUTED a000b81c: e5d30000 ldrb r0, [r3] <== NOT EXECUTED a000b820: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED
the_mutex_attr->only_owner_release = true;
the_mutex_attr->priority_ceiling =
_POSIX_Priority_To_core( the_attr->prio_ceiling );
the_mutex_attr->discipline = the_discipline;
a000b824: e584705c str r7, [r4, #92] ; 0x5c <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
a000b828: e3a06000 mov r6, #0 <== NOT EXECUTED a000b82c: e0633000 rsb r3, r3, r0 <== NOT EXECUTED
if ( the_attr->recursive )
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
else
the_mutex_attr->lock_nesting_behavior = CORE_MUTEX_NESTING_IS_ERROR;
the_mutex_attr->only_owner_release = true;
the_mutex_attr->priority_ceiling =
a000b830: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED
the_mutex_attr->discipline = the_discipline;
/*
* Must be initialized to unlocked.
*/
_CORE_mutex_Initialize(
a000b834: e2840014 add r0, r4, #20 <== NOT EXECUTED a000b838: eb000688 bl a000d260 <_CORE_mutex_Initialize> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000b83c: e59f2040 ldr r2, [pc, #64] ; a000b884 <pthread_mutex_init+0x144><== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
a000b840: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000b844: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000b848: e592201c ldr r2, [r2, #28] <== NOT EXECUTED a000b84c: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
a000b850: e584600c str r6, [r4, #12] <== NOT EXECUTED
CORE_MUTEX_UNLOCKED
);
_Objects_Open_u32( &_POSIX_Mutex_Information, &the_mutex->Object, 0 );
*mutex = the_mutex->Object.id;
a000b854: e5853000 str r3, [r5] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000b858: eb000cfc bl a000ec50 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000b85c: e1a00006 mov r0, r6 <== NOT EXECUTED
a000b860: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
/*
* We only support process private mutexes.
*/
if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )
return ENOSYS;
a000b864: e3a00058 mov r0, #88 ; 0x58 <== NOT EXECUTED
a000b868: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
/*
* Validate the priority ceiling field -- should always be valid.
*/
if ( !_POSIX_Priority_Is_valid( the_attr->prio_ceiling ) )
return EINVAL;
a000b86c: e3a00016 mov r0, #22 <== NOT EXECUTED
a000b870: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
case PTHREAD_MUTEX_ERRORCHECK:
case PTHREAD_MUTEX_DEFAULT:
break;
default:
return EINVAL;
a000b874: e3a00016 mov r0, #22 <== NOT EXECUTED
*mutex = the_mutex->Object.id;
_Thread_Enable_dispatch();
return 0;
}
a000b878: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000b88c <pthread_mutex_lock>:
int pthread_mutex_lock(
pthread_mutex_t *mutex
)
{
return _POSIX_Mutex_Lock_support( mutex, true, THREAD_QUEUE_WAIT_FOREVER );
a000b88c: e3a01001 mov r1, #1 <== NOT EXECUTED a000b890: e3a02000 mov r2, #0 <== NOT EXECUTED a000b894: eaffffff b a000b898 <_POSIX_Mutex_Lock_support> <== NOT EXECUTED
a000b8f8 <pthread_mutex_setprioceiling>:
int pthread_mutex_setprioceiling(
pthread_mutex_t *mutex,
int prioceiling,
int *old_ceiling
)
{
a000b8f8: e92d41f1 push {r0, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
Priority_Control the_priority;
if ( !old_ceiling )
a000b8fc: e2528000 subs r8, r2, #0 <== NOT EXECUTED
int pthread_mutex_setprioceiling(
pthread_mutex_t *mutex,
int prioceiling,
int *old_ceiling
)
{
a000b900: e1a04000 mov r4, r0 <== NOT EXECUTED a000b904: e1a05001 mov r5, r1 <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
Priority_Control the_priority;
if ( !old_ceiling )
a000b908: 0a00001b beq a000b97c <pthread_mutex_setprioceiling+0x84> <== NOT EXECUTED
return EINVAL;
if ( !_POSIX_Priority_Is_valid( prioceiling ) )
a000b90c: e1a00001 mov r0, r1 <== NOT EXECUTED a000b910: eb00006a bl a000bac0 <_POSIX_Priority_Is_valid> <== NOT EXECUTED a000b914: e3500000 cmp r0, #0 <== NOT EXECUTED a000b918: 0a000017 beq a000b97c <pthread_mutex_setprioceiling+0x84> <== NOT EXECUTED a000b91c: e59f6060 ldr r6, [pc, #96] ; a000b984 <pthread_mutex_setprioceiling+0x8c><== NOT EXECUTED
/*
* Must acquire the mutex before we can change it's ceiling.
* POSIX says block until we acquire it.
*/
(void) pthread_mutex_lock( mutex );
a000b920: e1a00004 mov r0, r4 <== NOT EXECUTED a000b924: e5d67000 ldrb r7, [r6] <== NOT EXECUTED a000b928: ebffffd7 bl a000b88c <pthread_mutex_lock> <== NOT EXECUTED
* operations. * * NOTE: This makes it easier to get 100% binary coverage since the * bad Id case is handled by the switch. */ the_mutex = _POSIX_Mutex_Get( mutex, &location );
a000b92c: e1a00004 mov r0, r4 <== NOT EXECUTED a000b930: e1a0100d mov r1, sp <== NOT EXECUTED a000b934: ebffff3a bl a000b624 <_POSIX_Mutex_Get> <== NOT EXECUTED
switch ( location ) {
a000b938: e59d4000 ldr r4, [sp] <== NOT EXECUTED
* operations. * * NOTE: This makes it easier to get 100% binary coverage since the * bad Id case is handled by the switch. */ the_mutex = _POSIX_Mutex_Get( mutex, &location );
a000b93c: e1a03000 mov r3, r0 <== NOT EXECUTED
switch ( location ) {
a000b940: e3540000 cmp r4, #0 <== NOT EXECUTED a000b944: 1a00000c bne a000b97c <pthread_mutex_setprioceiling+0x84> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
Priority_Control priority
)
{
return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
a000b948: e5902060 ldr r2, [r0, #96] ; 0x60 <== NOT EXECUTED a000b94c: e5d61000 ldrb r1, [r6] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(
int priority
)
{
return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
a000b950: e0655007 rsb r5, r5, r7 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core(
Priority_Control priority
)
{
return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
a000b954: e0622001 rsb r2, r2, r1 <== NOT EXECUTED
case OBJECTS_LOCAL:
*old_ceiling = _POSIX_Priority_From_core(
a000b958: e5882000 str r2, [r8] <== NOT EXECUTED
);
the_mutex->Mutex.Attributes.priority_ceiling = the_priority;
/*
* We are required to unlock the mutex before we return.
*/
_CORE_mutex_Surrender(
a000b95c: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED
case OBJECTS_LOCAL:
*old_ceiling = _POSIX_Priority_From_core(
the_mutex->Mutex.Attributes.priority_ceiling
);
the_mutex->Mutex.Attributes.priority_ceiling = the_priority;
a000b960: e5805060 str r5, [r0, #96] ; 0x60 <== NOT EXECUTED
/*
* We are required to unlock the mutex before we return.
*/
_CORE_mutex_Surrender(
a000b964: e1a02004 mov r2, r4 <== NOT EXECUTED a000b968: e2800014 add r0, r0, #20 <== NOT EXECUTED a000b96c: eb0006b6 bl a000d44c <_CORE_mutex_Surrender> <== NOT EXECUTED
&the_mutex->Mutex,
the_mutex->Object.id,
NULL
);
_Thread_Enable_dispatch();
a000b970: eb000cb6 bl a000ec50 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000b974: e1a00004 mov r0, r4 <== NOT EXECUTED a000b978: ea000000 b a000b980 <pthread_mutex_setprioceiling+0x88> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000b97c: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a000b980: e8bd81f8 pop {r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000b988 <pthread_mutex_timedlock>:
int pthread_mutex_timedlock(
pthread_mutex_t *mutex,
const struct timespec *abstime
)
{
a000b988: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
a000b98c: e1a06000 mov r6, r0 <== NOT EXECUTED
* * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
a000b990: e1a00001 mov r0, r1 <== NOT EXECUTED a000b994: e1a0100d mov r1, sp <== NOT EXECUTED a000b998: eb00002a bl a000ba48 <_POSIX_Absolute_timeout_to_ticks> <== NOT EXECUTED
int _EXFUN(pthread_mutex_trylock, (pthread_mutex_t *__mutex));
int _EXFUN(pthread_mutex_unlock, (pthread_mutex_t *__mutex));
#if defined(_POSIX_TIMEOUTS)
int _EXFUN(pthread_mutex_timedlock,
a000b99c: e3500003 cmp r0, #3 <== NOT EXECUTED a000b9a0: 13a05000 movne r5, #0 <== NOT EXECUTED a000b9a4: 03a05001 moveq r5, #1 <== NOT EXECUTED a000b9a8: e1a04000 mov r4, r0 <== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks );
a000b9ac: e1a01005 mov r1, r5 <== NOT EXECUTED a000b9b0: e1a00006 mov r0, r6 <== NOT EXECUTED a000b9b4: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000b9b8: ebffffb6 bl a000b898 <_POSIX_Mutex_Lock_support> <== NOT EXECUTED
* This service only gives us the option to block. We used a polling
* attempt to lock if the abstime was not in the future. If we did
* not obtain the mutex, then not look at the status immediately,
* make sure the right reason is returned.
*/
if ( !do_wait && (lock_status == EBUSY) ) {
a000b9bc: e3550000 cmp r5, #0 <== NOT EXECUTED a000b9c0: 1a000008 bne a000b9e8 <pthread_mutex_timedlock+0x60> <== NOT EXECUTED a000b9c4: e3500010 cmp r0, #16 <== NOT EXECUTED a000b9c8: 1a000006 bne a000b9e8 <pthread_mutex_timedlock+0x60> <== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
a000b9cc: e3540000 cmp r4, #0 <== NOT EXECUTED
return EINVAL;
a000b9d0: 03a00016 moveq r0, #22 <== NOT EXECUTED
* attempt to lock if the abstime was not in the future. If we did
* not obtain the mutex, then not look at the status immediately,
* make sure the right reason is returned.
*/
if ( !do_wait && (lock_status == EBUSY) ) {
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
a000b9d4: 0a000003 beq a000b9e8 <pthread_mutex_timedlock+0x60> <== NOT EXECUTED
return EINVAL;
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
a000b9d8: e2444001 sub r4, r4, #1 <== NOT EXECUTED
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
a000b9dc: e3540001 cmp r4, #1 <== NOT EXECUTED a000b9e0: 83a00010 movhi r0, #16 <== NOT EXECUTED a000b9e4: 93a00074 movls r0, #116 ; 0x74 <== NOT EXECUTED
}
return lock_status;
}
a000b9e8: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a000b9fc <pthread_mutex_trylock>:
int pthread_mutex_trylock(
pthread_mutex_t *mutex
)
{
return _POSIX_Mutex_Lock_support( mutex, false, THREAD_QUEUE_WAIT_FOREVER );
a000b9fc: e3a01000 mov r1, #0 <== NOT EXECUTED a000ba00: e1a02001 mov r2, r1 <== NOT EXECUTED a000ba04: eaffffa3 b a000b898 <_POSIX_Mutex_Lock_support> <== NOT EXECUTED
a000ba08 <pthread_mutex_unlock>:
*/
int pthread_mutex_unlock(
pthread_mutex_t *mutex
)
{
a000ba08: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
CORE_mutex_Status status;
the_mutex = _POSIX_Mutex_Get( mutex, &location );
a000ba0c: e1a0100d mov r1, sp <== NOT EXECUTED a000ba10: ebffff03 bl a000b624 <_POSIX_Mutex_Get> <== NOT EXECUTED
switch ( location ) {
a000ba14: e59d2000 ldr r2, [sp] <== NOT EXECUTED
{
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
CORE_mutex_Status status;
the_mutex = _POSIX_Mutex_Get( mutex, &location );
a000ba18: e1a03000 mov r3, r0 <== NOT EXECUTED
switch ( location ) {
a000ba1c: e3520000 cmp r2, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000ba20: 13a00016 movne r0, #22 <== NOT EXECUTED
register POSIX_Mutex_Control *the_mutex;
Objects_Locations location;
CORE_mutex_Status status;
the_mutex = _POSIX_Mutex_Get( mutex, &location );
switch ( location ) {
a000ba24: 1a000006 bne a000ba44 <pthread_mutex_unlock+0x3c> <== NOT EXECUTED
case OBJECTS_LOCAL:
status = _CORE_mutex_Surrender(
a000ba28: e2830014 add r0, r3, #20 <== NOT EXECUTED a000ba2c: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000ba30: eb000685 bl a000d44c <_CORE_mutex_Surrender> <== NOT EXECUTED a000ba34: e1a04000 mov r4, r0 <== NOT EXECUTED
&the_mutex->Mutex,
the_mutex->Object.id,
NULL
);
_Thread_Enable_dispatch();
a000ba38: eb000c84 bl a000ec50 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_Mutex_Translate_core_mutex_return_code( status );
a000ba3c: e1a00004 mov r0, r4 <== NOT EXECUTED a000ba40: ebffffe9 bl a000b9ec <_POSIX_Mutex_Translate_core_mutex_return_code><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
a000ba44: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000b418 <pthread_mutexattr_destroy>:
int pthread_mutexattr_destroy(
pthread_mutexattr_t *attr
)
{
if ( !attr || !attr->is_initialized )
a000b418: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000b41c: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_mutexattr_destroy(
pthread_mutexattr_t *attr
)
{
if ( !attr || !attr->is_initialized )
a000b420: 012fff1e bxeq lr <== NOT EXECUTED a000b424: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b428: e3520000 cmp r2, #0 <== NOT EXECUTED
return EINVAL;
attr->is_initialized = false;
a000b42c: 13a00000 movne r0, #0 <== NOT EXECUTED a000b430: 15830000 strne r0, [r3] <== NOT EXECUTED
int pthread_mutexattr_destroy(
pthread_mutexattr_t *attr
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000b434: 03a00016 moveq r0, #22 <== NOT EXECUTED
attr->is_initialized = false;
return 0;
}
a000b438: e12fff1e bx lr <== NOT EXECUTED
a000b43c <pthread_mutexattr_getprioceiling>:
int pthread_mutexattr_getprioceiling(
const pthread_mutexattr_t *attr,
int *prioceiling
)
{
if ( !attr || !attr->is_initialized || !prioceiling )
a000b43c: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000b440: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_mutexattr_getprioceiling(
const pthread_mutexattr_t *attr,
int *prioceiling
)
{
if ( !attr || !attr->is_initialized || !prioceiling )
a000b444: 012fff1e bxeq lr <== NOT EXECUTED a000b448: e5930000 ldr r0, [r3] <== NOT EXECUTED a000b44c: e3500000 cmp r0, #0 <== NOT EXECUTED a000b450: 13510000 cmpne r1, #0 <== NOT EXECUTED
return EINVAL;
*prioceiling = attr->prio_ceiling;
a000b454: 15933008 ldrne r3, [r3, #8] <== NOT EXECUTED
int pthread_mutexattr_getprioceiling(
const pthread_mutexattr_t *attr,
int *prioceiling
)
{
if ( !attr || !attr->is_initialized || !prioceiling )
a000b458: 13a00000 movne r0, #0 <== NOT EXECUTED a000b45c: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a000b460: 03a00016 moveq r0, #22 <== NOT EXECUTED
*prioceiling = attr->prio_ceiling;
a000b464: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000b468: e12fff1e bx lr <== NOT EXECUTED
a000b46c <pthread_mutexattr_getprotocol>:
int pthread_mutexattr_getprotocol(
const pthread_mutexattr_t *attr,
int *protocol
)
{
if ( !attr || !attr->is_initialized || !protocol )
a000b46c: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000b470: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_mutexattr_getprotocol(
const pthread_mutexattr_t *attr,
int *protocol
)
{
if ( !attr || !attr->is_initialized || !protocol )
a000b474: 012fff1e bxeq lr <== NOT EXECUTED a000b478: e5930000 ldr r0, [r3] <== NOT EXECUTED a000b47c: e3500000 cmp r0, #0 <== NOT EXECUTED a000b480: 13510000 cmpne r1, #0 <== NOT EXECUTED
return EINVAL;
*protocol = attr->protocol;
a000b484: 1593300c ldrne r3, [r3, #12] <== NOT EXECUTED
int pthread_mutexattr_getprotocol(
const pthread_mutexattr_t *attr,
int *protocol
)
{
if ( !attr || !attr->is_initialized || !protocol )
a000b488: 13a00000 movne r0, #0 <== NOT EXECUTED a000b48c: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a000b490: 03a00016 moveq r0, #22 <== NOT EXECUTED
*protocol = attr->protocol;
a000b494: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000b498: e12fff1e bx lr <== NOT EXECUTED
a000b49c <pthread_mutexattr_getpshared>:
int pthread_mutexattr_getpshared(
const pthread_mutexattr_t *attr,
int *pshared
)
{
if ( !attr || !attr->is_initialized || !pshared )
a000b49c: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000b4a0: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_mutexattr_getpshared(
const pthread_mutexattr_t *attr,
int *pshared
)
{
if ( !attr || !attr->is_initialized || !pshared )
a000b4a4: 012fff1e bxeq lr <== NOT EXECUTED a000b4a8: e5930000 ldr r0, [r3] <== NOT EXECUTED a000b4ac: e3500000 cmp r0, #0 <== NOT EXECUTED a000b4b0: 13510000 cmpne r1, #0 <== NOT EXECUTED
return EINVAL;
*pshared = attr->process_shared;
a000b4b4: 15933004 ldrne r3, [r3, #4] <== NOT EXECUTED
int pthread_mutexattr_getpshared(
const pthread_mutexattr_t *attr,
int *pshared
)
{
if ( !attr || !attr->is_initialized || !pshared )
a000b4b8: 13a00000 movne r0, #0 <== NOT EXECUTED a000b4bc: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a000b4c0: 03a00016 moveq r0, #22 <== NOT EXECUTED
*pshared = attr->process_shared;
a000b4c4: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000b4c8: e12fff1e bx lr <== NOT EXECUTED
a0008e18 <pthread_mutexattr_gettype>:
int pthread_mutexattr_gettype(
const pthread_mutexattr_t *attr,
int *type
)
{
if ( !attr )
a0008e18: e3500000 cmp r0, #0 <== NOT EXECUTED a0008e1c: 0a000008 beq a0008e44 <pthread_mutexattr_gettype+0x2c> <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
a0008e20: e5903000 ldr r3, [r0] <== NOT EXECUTED a0008e24: e3530000 cmp r3, #0 <== NOT EXECUTED a0008e28: 0a000005 beq a0008e44 <pthread_mutexattr_gettype+0x2c> <== NOT EXECUTED
return EINVAL;
if ( !type )
a0008e2c: e3510000 cmp r1, #0 <== NOT EXECUTED
return EINVAL;
*type = attr->type;
a0008e30: 15903010 ldrne r3, [r0, #16] <== NOT EXECUTED
return 0;
a0008e34: 13a00000 movne r0, #0 <== NOT EXECUTED
return EINVAL;
if ( !type )
return EINVAL;
*type = attr->type;
a0008e38: 15813000 strne r3, [r1] <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
if ( !type )
a0008e3c: 112fff1e bxne lr <== NOT EXECUTED a0008e40: ea000001 b a0008e4c <pthread_mutexattr_gettype+0x34> <== NOT EXECUTED
{
if ( !attr )
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
a0008e44: e3a00016 mov r0, #22 <== NOT EXECUTED a0008e48: e12fff1e bx lr <== NOT EXECUTED
if ( !type )
return EINVAL;
a0008e4c: e3a00016 mov r0, #22 <== NOT EXECUTED
*type = attr->type;
return 0;
}
a0008e50: e12fff1e bx lr <== NOT EXECUTED
a000b4cc <pthread_mutexattr_init>:
int pthread_mutexattr_init(
pthread_mutexattr_t *attr
)
{
if ( !attr )
a000b4cc: e250c000 subs ip, r0, #0 <== NOT EXECUTED
*/
int pthread_mutexattr_init(
pthread_mutexattr_t *attr
)
{
a000b4d0: e92d4010 push {r4, lr} <== NOT EXECUTED
if ( !attr )
return EINVAL;
*attr = _POSIX_Mutex_Default_attributes;
a000b4d4: 159f401c ldrne r4, [pc, #28] ; a000b4f8 <pthread_mutexattr_init+0x2c><== NOT EXECUTED
int pthread_mutexattr_init(
pthread_mutexattr_t *attr
)
{
if ( !attr )
return EINVAL;
a000b4d8: 03a00016 moveq r0, #22 <== NOT EXECUTED
*attr = _POSIX_Mutex_Default_attributes;
a000b4dc: 18b4000f ldmne r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a000b4e0: 18ac000f stmiane ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000b4e4: 11a0300c movne r3, ip <== NOT EXECUTED
a000b4e8: 18940003 ldmne r4, {r0, r1} <== NOT EXECUTED
a000b4ec: 18830003 stmne r3, {r0, r1} <== NOT EXECUTED
return 0;
a000b4f0: 13a00000 movne r0, #0 <== NOT EXECUTED
}
a000b4f4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000b4fc <pthread_mutexattr_setprioceiling>:
int pthread_mutexattr_setprioceiling(
pthread_mutexattr_t *attr,
int prioceiling
)
{
a000b4fc: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
a000b500: e2504000 subs r4, r0, #0 <== NOT EXECUTED
int pthread_mutexattr_setprioceiling(
pthread_mutexattr_t *attr,
int prioceiling
)
{
a000b504: e1a05001 mov r5, r1 <== NOT EXECUTED
if ( !attr || !attr->is_initialized )
a000b508: 0a000009 beq a000b534 <pthread_mutexattr_setprioceiling+0x38><== NOT EXECUTED a000b50c: e5943000 ldr r3, [r4] <== NOT EXECUTED a000b510: e3530000 cmp r3, #0 <== NOT EXECUTED a000b514: 0a000006 beq a000b534 <pthread_mutexattr_setprioceiling+0x38><== NOT EXECUTED
return EINVAL;
if ( !_POSIX_Priority_Is_valid( prioceiling ) )
a000b518: e1a00001 mov r0, r1 <== NOT EXECUTED a000b51c: eb000167 bl a000bac0 <_POSIX_Priority_Is_valid> <== NOT EXECUTED a000b520: e3500000 cmp r0, #0 <== NOT EXECUTED a000b524: 0a000004 beq a000b53c <pthread_mutexattr_setprioceiling+0x40><== NOT EXECUTED
return EINVAL;
attr->prio_ceiling = prioceiling;
a000b528: e5845008 str r5, [r4, #8] <== NOT EXECUTED
return 0;
a000b52c: e3a00000 mov r0, #0 <== NOT EXECUTED
a000b530: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
pthread_mutexattr_t *attr,
int prioceiling
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000b534: e3a00016 mov r0, #22 <== NOT EXECUTED
a000b538: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
if ( !_POSIX_Priority_Is_valid( prioceiling ) )
return EINVAL;
a000b53c: e3a00016 mov r0, #22 <== NOT EXECUTED
attr->prio_ceiling = prioceiling;
return 0;
}
a000b540: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000b544 <pthread_mutexattr_setprotocol>:
int pthread_mutexattr_setprotocol(
pthread_mutexattr_t *attr,
int protocol
)
{
if ( !attr || !attr->is_initialized )
a000b544: e3500000 cmp r0, #0 <== NOT EXECUTED a000b548: 0a000007 beq a000b56c <pthread_mutexattr_setprotocol+0x28> <== NOT EXECUTED a000b54c: e5903000 ldr r3, [r0] <== NOT EXECUTED a000b550: e3530000 cmp r3, #0 <== NOT EXECUTED a000b554: 0a000004 beq a000b56c <pthread_mutexattr_setprotocol+0x28> <== NOT EXECUTED
return EINVAL;
switch ( protocol ) {
a000b558: e3510002 cmp r1, #2 <== NOT EXECUTED
case PTHREAD_PRIO_NONE:
case PTHREAD_PRIO_INHERIT:
case PTHREAD_PRIO_PROTECT:
attr->protocol = protocol;
a000b55c: 9580100c strls r1, [r0, #12] <== NOT EXECUTED
return 0;
a000b560: 93a00000 movls r0, #0 <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( protocol ) {
a000b564: 912fff1e bxls lr <== NOT EXECUTED a000b568: ea000001 b a000b574 <pthread_mutexattr_setprotocol+0x30> <== NOT EXECUTED
pthread_mutexattr_t *attr,
int protocol
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000b56c: e3a00016 mov r0, #22 <== NOT EXECUTED a000b570: e12fff1e bx lr <== NOT EXECUTED
case PTHREAD_PRIO_PROTECT:
attr->protocol = protocol;
return 0;
default:
return EINVAL;
a000b574: e3a00016 mov r0, #22 <== NOT EXECUTED
} }
a000b578: e12fff1e bx lr <== NOT EXECUTED
a000b57c <pthread_mutexattr_setpshared>:
int pthread_mutexattr_setpshared(
pthread_mutexattr_t *attr,
int pshared
)
{
if ( !attr || !attr->is_initialized )
a000b57c: e3500000 cmp r0, #0 <== NOT EXECUTED a000b580: 0a000007 beq a000b5a4 <pthread_mutexattr_setpshared+0x28> <== NOT EXECUTED a000b584: e5903000 ldr r3, [r0] <== NOT EXECUTED a000b588: e3530000 cmp r3, #0 <== NOT EXECUTED a000b58c: 0a000004 beq a000b5a4 <pthread_mutexattr_setpshared+0x28> <== NOT EXECUTED
return EINVAL;
switch ( pshared ) {
a000b590: e3510001 cmp r1, #1 <== NOT EXECUTED
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
a000b594: 95801004 strls r1, [r0, #4] <== NOT EXECUTED
return 0;
a000b598: 93a00000 movls r0, #0 <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( pshared ) {
a000b59c: 912fff1e bxls lr <== NOT EXECUTED a000b5a0: ea000001 b a000b5ac <pthread_mutexattr_setpshared+0x30> <== NOT EXECUTED
pthread_mutexattr_t *attr,
int pshared
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a000b5a4: e3a00016 mov r0, #22 <== NOT EXECUTED a000b5a8: e12fff1e bx lr <== NOT EXECUTED
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
return 0;
default:
return EINVAL;
a000b5ac: e3a00016 mov r0, #22 <== NOT EXECUTED
} }
a000b5b0: e12fff1e bx lr <== NOT EXECUTED
a0008e84 <pthread_mutexattr_settype>:
int pthread_mutexattr_settype(
pthread_mutexattr_t *attr,
int type
)
{
if ( !attr || !attr->is_initialized )
a0008e84: e3500000 cmp r0, #0 <== NOT EXECUTED a0008e88: 0a000007 beq a0008eac <pthread_mutexattr_settype+0x28> <== NOT EXECUTED a0008e8c: e5903000 ldr r3, [r0] <== NOT EXECUTED a0008e90: e3530000 cmp r3, #0 <== NOT EXECUTED a0008e94: 0a000004 beq a0008eac <pthread_mutexattr_settype+0x28> <== NOT EXECUTED
return EINVAL;
switch ( type ) {
a0008e98: e3510003 cmp r1, #3 <== NOT EXECUTED
case PTHREAD_MUTEX_NORMAL:
case PTHREAD_MUTEX_RECURSIVE:
case PTHREAD_MUTEX_ERRORCHECK:
case PTHREAD_MUTEX_DEFAULT:
attr->type = type;
a0008e9c: 95801010 strls r1, [r0, #16] <== NOT EXECUTED
return 0;
a0008ea0: 93a00000 movls r0, #0 <== NOT EXECUTED
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
switch ( type ) {
a0008ea4: 912fff1e bxls lr <== NOT EXECUTED a0008ea8: ea000001 b a0008eb4 <pthread_mutexattr_settype+0x30> <== NOT EXECUTED
pthread_mutexattr_t *attr,
int type
)
{
if ( !attr || !attr->is_initialized )
return EINVAL;
a0008eac: e3a00016 mov r0, #22 <== NOT EXECUTED a0008eb0: e12fff1e bx lr <== NOT EXECUTED
case PTHREAD_MUTEX_DEFAULT:
attr->type = type;
return 0;
default:
return EINVAL;
a0008eb4: e3a00016 mov r0, #22 <== NOT EXECUTED
} }
a0008eb8: e12fff1e bx lr <== NOT EXECUTED
a0009cf0 <pthread_once>:
int pthread_once(
pthread_once_t *once_control,
void (*init_routine)(void)
)
{
if ( !once_control || !init_routine )
a0009cf0: e3500000 cmp r0, #0 <== NOT EXECUTED a0009cf4: 13510000 cmpne r1, #0 <== NOT EXECUTED
int pthread_once(
pthread_once_t *once_control,
void (*init_routine)(void)
)
{
a0009cf8: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
if ( !once_control || !init_routine )
a0009cfc: e1a04000 mov r4, r0 <== NOT EXECUTED a0009d00: e1a05001 mov r5, r1 <== NOT EXECUTED a0009d04: 13a00000 movne r0, #0 <== NOT EXECUTED a0009d08: 03a00001 moveq r0, #1 <== NOT EXECUTED
return EINVAL;
a0009d0c: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_once(
pthread_once_t *once_control,
void (*init_routine)(void)
)
{
if ( !once_control || !init_routine )
a0009d10: 0a000012 beq a0009d60 <pthread_once+0x70> <== NOT EXECUTED
return EINVAL;
if ( !once_control->init_executed ) {
a0009d14: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a0009d18: e3530000 cmp r3, #0 <== NOT EXECUTED a0009d1c: 1a00000f bne a0009d60 <pthread_once+0x70> <== NOT EXECUTED
rtems_mode saveMode;
rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode);
a0009d20: e3a00c01 mov r0, #256 ; 0x100 <== NOT EXECUTED a0009d24: e1a01000 mov r1, r0 <== NOT EXECUTED a0009d28: e1a0200d mov r2, sp <== NOT EXECUTED a0009d2c: eb0002c6 bl a000a84c <rtems_task_mode> <== NOT EXECUTED
if ( !once_control->init_executed ) {
a0009d30: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a0009d34: e3530000 cmp r3, #0 <== NOT EXECUTED a0009d38: 1a000003 bne a0009d4c <pthread_once+0x5c> <== NOT EXECUTED
once_control->is_initialized = true;
a0009d3c: e2833001 add r3, r3, #1 <== NOT EXECUTED a0009d40: e5843000 str r3, [r4] <== NOT EXECUTED
once_control->init_executed = true;
a0009d44: e5843004 str r3, [r4, #4] <== NOT EXECUTED
(*init_routine)();
a0009d48: e12fff35 blx r5 <== NOT EXECUTED
}
rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);
a0009d4c: e59d0000 ldr r0, [sp] <== NOT EXECUTED a0009d50: e3a01c01 mov r1, #256 ; 0x100 <== NOT EXECUTED a0009d54: e1a0200d mov r2, sp <== NOT EXECUTED a0009d58: eb0002bb bl a000a84c <rtems_task_mode> <== NOT EXECUTED
} return 0;
a0009d5c: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a0009d60: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000a7dc <pthread_rwlock_destroy>:
)
{
POSIX_RWLock_Control *the_rwlock = NULL;
Objects_Locations location;
if ( !rwlock )
a000a7dc: e2503000 subs r3, r0, #0 <== NOT EXECUTED
*/
int pthread_rwlock_destroy(
pthread_rwlock_t *rwlock
)
{
a000a7e0: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock = NULL;
Objects_Locations location;
if ( !rwlock )
a000a7e4: 0a000017 beq a000a848 <pthread_rwlock_destroy+0x6c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get (
pthread_rwlock_t *RWLock,
Objects_Locations *location
)
{
return (POSIX_RWLock_Control *) _Objects_Get(
a000a7e8: e5931000 ldr r1, [r3] <== NOT EXECUTED a000a7ec: e59f005c ldr r0, [pc, #92] ; a000a850 <pthread_rwlock_destroy+0x74><== NOT EXECUTED a000a7f0: e1a0200d mov r2, sp <== NOT EXECUTED a000a7f4: eb000a82 bl a000d204 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
a000a7f8: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a7fc: e1a04000 mov r4, r0 <== NOT EXECUTED a000a800: e3530000 cmp r3, #0 <== NOT EXECUTED a000a804: 1a00000f bne a000a848 <pthread_rwlock_destroy+0x6c> <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* If there is at least one thread waiting, then do not delete it.
*/
if ( _Thread_queue_First( &the_rwlock->RWLock.Wait_queue ) != NULL ) {
a000a808: e2800010 add r0, r0, #16 <== NOT EXECUTED a000a80c: eb000f7e bl a000e60c <_Thread_queue_First> <== NOT EXECUTED a000a810: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000a814: 0a000002 beq a000a824 <pthread_rwlock_destroy+0x48> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a818: eb000d80 bl a000de20 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EBUSY;
a000a81c: e3a00010 mov r0, #16 <== NOT EXECUTED a000a820: ea000009 b a000a84c <pthread_rwlock_destroy+0x70> <== NOT EXECUTED
/*
* POSIX doesn't require behavior when it is locked.
*/
_Objects_Close( &_POSIX_RWLock_Information, &the_rwlock->Object );
a000a824: e59f0024 ldr r0, [pc, #36] ; a000a850 <pthread_rwlock_destroy+0x74><== NOT EXECUTED a000a828: e1a01004 mov r1, r4 <== NOT EXECUTED a000a82c: eb000977 bl a000ce10 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _POSIX_RWLock_Free (
POSIX_RWLock_Control *the_RWLock
)
{
_Objects_Free( &_POSIX_RWLock_Information, &the_RWLock->Object );
a000a830: e59f0018 ldr r0, [pc, #24] ; a000a850 <pthread_rwlock_destroy+0x74><== NOT EXECUTED a000a834: e1a01004 mov r1, r4 <== NOT EXECUTED a000a838: eb000a19 bl a000d0a4 <_Objects_Free> <== NOT EXECUTED
_POSIX_RWLock_Free( the_rwlock );
_Thread_Enable_dispatch();
a000a83c: eb000d77 bl a000de20 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000a840: e1a00005 mov r0, r5 <== NOT EXECUTED a000a844: ea000000 b a000a84c <pthread_rwlock_destroy+0x70> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000a848: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a000a84c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000a854 <pthread_rwlock_init>:
int pthread_rwlock_init(
pthread_rwlock_t *rwlock,
const pthread_rwlockattr_t *attr
)
{
a000a854: e92d40f7 push {r0, r1, r2, r4, r5, r6, r7, lr} <== NOT EXECUTED
const pthread_rwlockattr_t *the_attr;
/*
* Error check parameters
*/
if ( !rwlock )
a000a858: e2507000 subs r7, r0, #0 <== NOT EXECUTED a000a85c: 0a000024 beq a000a8f4 <pthread_rwlock_init+0xa0> <== NOT EXECUTED
return EINVAL;
/*
* If the user passed in NULL, use the default attributes
*/
if ( attr ) {
a000a860: e3510000 cmp r1, #0 <== NOT EXECUTED a000a864: 1a000003 bne a000a878 <pthread_rwlock_init+0x24> <== NOT EXECUTED
the_attr = attr;
} else {
(void) pthread_rwlockattr_init( &default_attr );
a000a868: e1a0000d mov r0, sp <== NOT EXECUTED a000a86c: eb000256 bl a000b1cc <pthread_rwlockattr_init> <== NOT EXECUTED a000a870: e1a0400d mov r4, sp <== NOT EXECUTED
the_attr = &default_attr;
a000a874: e1a0100d mov r1, sp <== NOT EXECUTED
}
/*
* Now start error checking the attributes that we are going to use
*/
if ( !the_attr->is_initialized )
a000a878: e5913000 ldr r3, [r1] <== NOT EXECUTED a000a87c: e3530000 cmp r3, #0 <== NOT EXECUTED a000a880: 0a00001b beq a000a8f4 <pthread_rwlock_init+0xa0> <== NOT EXECUTED
return EINVAL;
switch ( the_attr->process_shared ) {
a000a884: e5915004 ldr r5, [r1, #4] <== NOT EXECUTED a000a888: e3550000 cmp r5, #0 <== NOT EXECUTED a000a88c: 1a000018 bne a000a8f4 <pthread_rwlock_init+0xa0> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000a890: e59f3064 ldr r3, [pc, #100] ; a000a8fc <pthread_rwlock_init+0xa8><== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _CORE_RWLock_Initialize_attributes(
CORE_RWLock_Attributes *the_attributes
)
{
the_attributes->XXX = 0;
a000a894: e58d5008 str r5, [sp, #8] <== NOT EXECUTED a000a898: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a89c: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a8a0: e5832000 str r2, [r3] <== NOT EXECUTED
* the inactive chain of free RWLock control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Allocate( void )
{
return (POSIX_RWLock_Control *)
_Objects_Allocate( &_POSIX_RWLock_Information );
a000a8a4: e59f6054 ldr r6, [pc, #84] ; a000a900 <pthread_rwlock_init+0xac><== NOT EXECUTED a000a8a8: e1a00006 mov r0, r6 <== NOT EXECUTED a000a8ac: eb000935 bl a000cd88 <_Objects_Allocate> <== NOT EXECUTED
*/
_Thread_Disable_dispatch(); /* prevents deletion */
the_rwlock = _POSIX_RWLock_Allocate();
if ( !the_rwlock ) {
a000a8b0: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000a8b4: 1a000002 bne a000a8c4 <pthread_rwlock_init+0x70> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a8b8: eb000d58 bl a000de20 <_Thread_Enable_dispatch> <== NOT EXECUTED
return EAGAIN;
a000a8bc: e3a0000b mov r0, #11 <== NOT EXECUTED a000a8c0: ea00000c b a000a8f8 <pthread_rwlock_init+0xa4> <== NOT EXECUTED
}
_CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes );
a000a8c4: e2840010 add r0, r4, #16 <== NOT EXECUTED a000a8c8: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000a8cc: eb00070b bl a000c500 <_CORE_RWLock_Initialize> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000a8d0: e596201c ldr r2, [r6, #28] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
a000a8d4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000a8d8: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000a8dc: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
a000a8e0: e584500c str r5, [r4, #12] <== NOT EXECUTED
&_POSIX_RWLock_Information,
&the_rwlock->Object,
0
);
*rwlock = the_rwlock->Object.id;
a000a8e4: e5873000 str r3, [r7] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a8e8: eb000d4c bl a000de20 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000a8ec: e1a00005 mov r0, r5 <== NOT EXECUTED a000a8f0: ea000000 b a000a8f8 <pthread_rwlock_init+0xa4> <== NOT EXECUTED
switch ( the_attr->process_shared ) {
case PTHREAD_PROCESS_PRIVATE: /* only supported values */
break;
case PTHREAD_PROCESS_SHARED:
default:
return EINVAL;
a000a8f4: e3a00016 mov r0, #22 <== NOT EXECUTED
*rwlock = the_rwlock->Object.id;
_Thread_Enable_dispatch();
return 0;
}
a000a8f8: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000a904 <pthread_rwlock_rdlock>:
*/
int pthread_rwlock_rdlock(
pthread_rwlock_t *rwlock
)
{
a000a904: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock;
Objects_Locations location;
if ( !rwlock )
a000a908: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000a90c: 0a000011 beq a000a958 <pthread_rwlock_rdlock+0x54> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Get (
pthread_rwlock_t *RWLock,
Objects_Locations *location
)
{
return (POSIX_RWLock_Control *) _Objects_Get(
a000a910: e59f0048 ldr r0, [pc, #72] ; a000a960 <pthread_rwlock_rdlock+0x5c><== NOT EXECUTED a000a914: e5941000 ldr r1, [r4] <== NOT EXECUTED a000a918: e28d2004 add r2, sp, #4 <== NOT EXECUTED a000a91c: eb000a38 bl a000d204 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
a000a920: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a000a924: e3530000 cmp r3, #0 <== NOT EXECUTED a000a928: 1a00000a bne a000a958 <pthread_rwlock_rdlock+0x54> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_reading(
a000a92c: e58d3000 str r3, [sp] <== NOT EXECUTED a000a930: e2800010 add r0, r0, #16 <== NOT EXECUTED a000a934: e5941000 ldr r1, [r4] <== NOT EXECUTED a000a938: e3a02001 mov r2, #1 <== NOT EXECUTED a000a93c: eb0006f7 bl a000c520 <_CORE_RWLock_Obtain_for_reading> <== NOT EXECUTED
true, /* we are willing to wait forever */
0,
NULL
);
_Thread_Enable_dispatch();
a000a940: eb000d36 bl a000de20 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
a000a944: e59f3018 ldr r3, [pc, #24] ; a000a964 <pthread_rwlock_rdlock+0x60><== NOT EXECUTED a000a948: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
0,
NULL
);
_Thread_Enable_dispatch();
return _POSIX_RWLock_Translate_core_RWLock_return_code(
a000a94c: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a000a950: eb000060 bl a000aad8 <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED a000a954: ea000000 b a000a95c <pthread_rwlock_rdlock+0x58> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000a958: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a000a95c: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED
a000a968 <pthread_rwlock_timedrdlock>:
int pthread_rwlock_timedrdlock(
pthread_rwlock_t *rwlock,
const struct timespec *abstime
)
{
a000a968: e92d4077 push {r0, r1, r2, r4, r5, r6, lr} <== NOT EXECUTED
Objects_Locations location;
Watchdog_Interval ticks;
bool do_wait = true;
POSIX_Absolute_timeout_conversion_results_t status;
if ( !rwlock )
a000a96c: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000a970: 0a000026 beq a000aa10 <pthread_rwlock_timedrdlock+0xa8> <== NOT EXECUTED
* * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
a000a974: e1a00001 mov r0, r1 <== NOT EXECUTED a000a978: e28d1004 add r1, sp, #4 <== NOT EXECUTED a000a97c: eb001898 bl a0010be4 <_POSIX_Absolute_timeout_to_ticks> <== NOT EXECUTED a000a980: e5961000 ldr r1, [r6] <== NOT EXECUTED a000a984: e1a04000 mov r4, r0 <== NOT EXECUTED a000a988: e28d2008 add r2, sp, #8 <== NOT EXECUTED a000a98c: e59f0084 ldr r0, [pc, #132] ; a000aa18 <pthread_rwlock_timedrdlock+0xb0><== NOT EXECUTED a000a990: eb000a1b bl a000d204 <_Objects_Get> <== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
a000a994: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a000a998: e3530000 cmp r3, #0 <== NOT EXECUTED a000a99c: 1a00001b bne a000aa10 <pthread_rwlock_timedrdlock+0xa8> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_reading(
a000a9a0: e58d3000 str r3, [sp] <== NOT EXECUTED
int _EXFUN(pthread_rwlock_init, (pthread_rwlock_t *__rwlock, _CONST pthread_rwlockattr_t *__attr)); int _EXFUN(pthread_rwlock_destroy, (pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_rdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_tryrdlock,(pthread_rwlock_t *__rwlock)); int _EXFUN(pthread_rwlock_timedrdlock,
a000a9a4: e3540003 cmp r4, #3 <== NOT EXECUTED a000a9a8: 13a05000 movne r5, #0 <== NOT EXECUTED a000a9ac: 03a05001 moveq r5, #1 <== NOT EXECUTED a000a9b0: e2800010 add r0, r0, #16 <== NOT EXECUTED a000a9b4: e5961000 ldr r1, [r6] <== NOT EXECUTED a000a9b8: e1a02005 mov r2, r5 <== NOT EXECUTED a000a9bc: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a000a9c0: eb0006d6 bl a000c520 <_CORE_RWLock_Obtain_for_reading> <== NOT EXECUTED
do_wait,
ticks,
NULL
);
_Thread_Enable_dispatch();
a000a9c4: eb000d15 bl a000de20 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( !do_wait ) {
a000a9c8: e3550000 cmp r5, #0 <== NOT EXECUTED a000a9cc: 1a00000a bne a000a9fc <pthread_rwlock_timedrdlock+0x94> <== NOT EXECUTED
if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
a000a9d0: e59f3044 ldr r3, [pc, #68] ; a000aa1c <pthread_rwlock_timedrdlock+0xb4><== NOT EXECUTED a000a9d4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a9d8: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a000a9dc: e3530002 cmp r3, #2 <== NOT EXECUTED a000a9e0: 1a000005 bne a000a9fc <pthread_rwlock_timedrdlock+0x94> <== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
a000a9e4: e3540000 cmp r4, #0 <== NOT EXECUTED a000a9e8: 0a000008 beq a000aa10 <pthread_rwlock_timedrdlock+0xa8> <== NOT EXECUTED
return EINVAL; if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
a000a9ec: e2444001 sub r4, r4, #1 <== NOT EXECUTED a000a9f0: e3540001 cmp r4, #1 <== NOT EXECUTED
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW ) return ETIMEDOUT;
a000a9f4: 93a00074 movls r0, #116 ; 0x74 <== NOT EXECUTED
_Thread_Enable_dispatch();
if ( !do_wait ) {
if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
return EINVAL;
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
a000a9f8: 9a000005 bls a000aa14 <pthread_rwlock_timedrdlock+0xac> <== NOT EXECUTED
return ETIMEDOUT;
}
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
a000a9fc: e59f3018 ldr r3, [pc, #24] ; a000aa1c <pthread_rwlock_timedrdlock+0xb4><== NOT EXECUTED a000aa00: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
}
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
a000aa04: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a000aa08: eb000032 bl a000aad8 <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED a000aa0c: ea000000 b a000aa14 <pthread_rwlock_timedrdlock+0xac> <== NOT EXECUTED
_Thread_Enable_dispatch();
if ( !do_wait ) {
if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
return EINVAL;
a000aa10: e3a00016 mov r0, #22 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
a000aa14: e8bd807e pop {r1, r2, r3, r4, r5, r6, pc} <== NOT EXECUTED
a000aa20 <pthread_rwlock_timedwrlock>:
int pthread_rwlock_timedwrlock(
pthread_rwlock_t *rwlock,
const struct timespec *abstime
)
{
a000aa20: e92d4077 push {r0, r1, r2, r4, r5, r6, lr} <== NOT EXECUTED
Objects_Locations location;
Watchdog_Interval ticks;
bool do_wait = true;
POSIX_Absolute_timeout_conversion_results_t status;
if ( !rwlock )
a000aa24: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000aa28: 0a000026 beq a000aac8 <pthread_rwlock_timedwrlock+0xa8> <== NOT EXECUTED
* * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
a000aa2c: e1a00001 mov r0, r1 <== NOT EXECUTED a000aa30: e28d1004 add r1, sp, #4 <== NOT EXECUTED a000aa34: eb00186a bl a0010be4 <_POSIX_Absolute_timeout_to_ticks> <== NOT EXECUTED a000aa38: e5961000 ldr r1, [r6] <== NOT EXECUTED a000aa3c: e1a04000 mov r4, r0 <== NOT EXECUTED a000aa40: e28d2008 add r2, sp, #8 <== NOT EXECUTED a000aa44: e59f0084 ldr r0, [pc, #132] ; a000aad0 <pthread_rwlock_timedwrlock+0xb0><== NOT EXECUTED a000aa48: eb0009ed bl a000d204 <_Objects_Get> <== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
a000aa4c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a000aa50: e3530000 cmp r3, #0 <== NOT EXECUTED a000aa54: 1a00001b bne a000aac8 <pthread_rwlock_timedwrlock+0xa8> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_writing(
a000aa58: e58d3000 str r3, [sp] <== NOT EXECUTED
(pthread_rwlock_t *__rwlock, _CONST struct timespec *__abstime));
int _EXFUN(pthread_rwlock_unlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_wrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_trywrlock,(pthread_rwlock_t *__rwlock));
int _EXFUN(pthread_rwlock_timedwrlock,
a000aa5c: e3540003 cmp r4, #3 <== NOT EXECUTED a000aa60: 13a05000 movne r5, #0 <== NOT EXECUTED a000aa64: 03a05001 moveq r5, #1 <== NOT EXECUTED a000aa68: e2800010 add r0, r0, #16 <== NOT EXECUTED a000aa6c: e5961000 ldr r1, [r6] <== NOT EXECUTED a000aa70: e1a02005 mov r2, r5 <== NOT EXECUTED a000aa74: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a000aa78: eb0006dc bl a000c5f0 <_CORE_RWLock_Obtain_for_writing> <== NOT EXECUTED
do_wait,
ticks,
NULL
);
_Thread_Enable_dispatch();
a000aa7c: eb000ce7 bl a000de20 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( !do_wait &&
a000aa80: e3550000 cmp r5, #0 <== NOT EXECUTED a000aa84: 1a00000a bne a000aab4 <pthread_rwlock_timedwrlock+0x94> <== NOT EXECUTED
(_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
a000aa88: e59f3044 ldr r3, [pc, #68] ; a000aad4 <pthread_rwlock_timedwrlock+0xb4><== NOT EXECUTED a000aa8c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
ticks,
NULL
);
_Thread_Enable_dispatch();
if ( !do_wait &&
a000aa90: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a000aa94: e3530002 cmp r3, #2 <== NOT EXECUTED a000aa98: 1a000005 bne a000aab4 <pthread_rwlock_timedwrlock+0x94> <== NOT EXECUTED
(_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
a000aa9c: e3540000 cmp r4, #0 <== NOT EXECUTED a000aaa0: 0a000008 beq a000aac8 <pthread_rwlock_timedwrlock+0xa8> <== NOT EXECUTED
return EINVAL; if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
a000aaa4: e2444001 sub r4, r4, #1 <== NOT EXECUTED a000aaa8: e3540001 cmp r4, #1 <== NOT EXECUTED
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW ) return ETIMEDOUT;
a000aaac: 93a00074 movls r0, #116 ; 0x74 <== NOT EXECUTED
_Thread_Enable_dispatch();
if ( !do_wait &&
(_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
return EINVAL;
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
a000aab0: 9a000005 bls a000aacc <pthread_rwlock_timedwrlock+0xac> <== NOT EXECUTED
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
a000aab4: e59f3018 ldr r3, [pc, #24] ; a000aad4 <pthread_rwlock_timedwrlock+0xb4><== NOT EXECUTED a000aab8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||
status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
return ETIMEDOUT;
}
return _POSIX_RWLock_Translate_core_RWLock_return_code(
a000aabc: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a000aac0: eb000004 bl a000aad8 <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED a000aac4: ea000000 b a000aacc <pthread_rwlock_timedwrlock+0xac> <== NOT EXECUTED
_Thread_Enable_dispatch();
if ( !do_wait &&
(_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )
return EINVAL;
a000aac8: e3a00016 mov r0, #22 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
a000aacc: e8bd807e pop {r1, r2, r3, r4, r5, r6, pc} <== NOT EXECUTED
a000aae8 <pthread_rwlock_tryrdlock>:
*/
int pthread_rwlock_tryrdlock(
pthread_rwlock_t *rwlock
)
{
a000aae8: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock;
Objects_Locations location;
if ( !rwlock )
a000aaec: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000aaf0: 0a000011 beq a000ab3c <pthread_rwlock_tryrdlock+0x54> <== NOT EXECUTED a000aaf4: e28d2004 add r2, sp, #4 <== NOT EXECUTED a000aaf8: e59f0044 ldr r0, [pc, #68] ; a000ab44 <pthread_rwlock_tryrdlock+0x5c><== NOT EXECUTED a000aafc: e5941000 ldr r1, [r4] <== NOT EXECUTED a000ab00: eb0009bf bl a000d204 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
a000ab04: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED a000ab08: e3520000 cmp r2, #0 <== NOT EXECUTED a000ab0c: 1a00000a bne a000ab3c <pthread_rwlock_tryrdlock+0x54> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_reading(
a000ab10: e58d2000 str r2, [sp] <== NOT EXECUTED a000ab14: e1a03002 mov r3, r2 <== NOT EXECUTED a000ab18: e2800010 add r0, r0, #16 <== NOT EXECUTED a000ab1c: e5941000 ldr r1, [r4] <== NOT EXECUTED a000ab20: eb00067e bl a000c520 <_CORE_RWLock_Obtain_for_reading> <== NOT EXECUTED
0,
NULL
);
_Thread_Enable_dispatch();
a000ab24: eb000cbd bl a000de20 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
a000ab28: e59f3018 ldr r3, [pc, #24] ; a000ab48 <pthread_rwlock_tryrdlock+0x60><== NOT EXECUTED a000ab2c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
NULL
);
_Thread_Enable_dispatch();
return _POSIX_RWLock_Translate_core_RWLock_return_code(
a000ab30: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a000ab34: ebffffe7 bl a000aad8 <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED a000ab38: ea000000 b a000ab40 <pthread_rwlock_tryrdlock+0x58> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000ab3c: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a000ab40: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED
a000ab4c <pthread_rwlock_trywrlock>:
*/
int pthread_rwlock_trywrlock(
pthread_rwlock_t *rwlock
)
{
a000ab4c: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock;
Objects_Locations location;
if ( !rwlock )
a000ab50: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000ab54: 0a000011 beq a000aba0 <pthread_rwlock_trywrlock+0x54> <== NOT EXECUTED a000ab58: e28d2004 add r2, sp, #4 <== NOT EXECUTED a000ab5c: e59f0044 ldr r0, [pc, #68] ; a000aba8 <pthread_rwlock_trywrlock+0x5c><== NOT EXECUTED a000ab60: e5941000 ldr r1, [r4] <== NOT EXECUTED a000ab64: eb0009a6 bl a000d204 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
a000ab68: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED a000ab6c: e3520000 cmp r2, #0 <== NOT EXECUTED a000ab70: 1a00000a bne a000aba0 <pthread_rwlock_trywrlock+0x54> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_writing(
a000ab74: e58d2000 str r2, [sp] <== NOT EXECUTED a000ab78: e1a03002 mov r3, r2 <== NOT EXECUTED a000ab7c: e2800010 add r0, r0, #16 <== NOT EXECUTED a000ab80: e5941000 ldr r1, [r4] <== NOT EXECUTED a000ab84: eb000699 bl a000c5f0 <_CORE_RWLock_Obtain_for_writing> <== NOT EXECUTED
false, /* we are not willing to wait */
0,
NULL
);
_Thread_Enable_dispatch();
a000ab88: eb000ca4 bl a000de20 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
a000ab8c: e59f3018 ldr r3, [pc, #24] ; a000abac <pthread_rwlock_trywrlock+0x60><== NOT EXECUTED a000ab90: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
0,
NULL
);
_Thread_Enable_dispatch();
return _POSIX_RWLock_Translate_core_RWLock_return_code(
a000ab94: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a000ab98: ebffffce bl a000aad8 <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED a000ab9c: ea000000 b a000aba4 <pthread_rwlock_trywrlock+0x58> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000aba0: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a000aba4: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED
a000abb0 <pthread_rwlock_unlock>:
{
POSIX_RWLock_Control *the_rwlock;
Objects_Locations location;
CORE_RWLock_Status status;
if ( !rwlock )
a000abb0: e2503000 subs r3, r0, #0 <== NOT EXECUTED
*/
int pthread_rwlock_unlock(
pthread_rwlock_t *rwlock
)
{
a000abb4: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock;
Objects_Locations location;
CORE_RWLock_Status status;
if ( !rwlock )
a000abb8: 0a00000d beq a000abf4 <pthread_rwlock_unlock+0x44> <== NOT EXECUTED a000abbc: e5931000 ldr r1, [r3] <== NOT EXECUTED a000abc0: e59f0034 ldr r0, [pc, #52] ; a000abfc <pthread_rwlock_unlock+0x4c><== NOT EXECUTED a000abc4: e1a0200d mov r2, sp <== NOT EXECUTED a000abc8: eb00098d bl a000d204 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
a000abcc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000abd0: e3530000 cmp r3, #0 <== NOT EXECUTED a000abd4: 1a000006 bne a000abf4 <pthread_rwlock_unlock+0x44> <== NOT EXECUTED
case OBJECTS_LOCAL:
status = _CORE_RWLock_Release( &the_rwlock->RWLock );
a000abd8: e2800010 add r0, r0, #16 <== NOT EXECUTED a000abdc: eb0006a6 bl a000c67c <_CORE_RWLock_Release> <== NOT EXECUTED a000abe0: e1a04000 mov r4, r0 <== NOT EXECUTED
_Thread_Enable_dispatch();
a000abe4: eb000c8d bl a000de20 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_RWLock_Translate_core_RWLock_return_code( status );
a000abe8: e1a00004 mov r0, r4 <== NOT EXECUTED a000abec: ebffffb9 bl a000aad8 <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED a000abf0: ea000000 b a000abf8 <pthread_rwlock_unlock+0x48> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000abf4: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a000abf8: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000ac00 <pthread_rwlock_wrlock>:
*/
int pthread_rwlock_wrlock(
pthread_rwlock_t *rwlock
)
{
a000ac00: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED
POSIX_RWLock_Control *the_rwlock;
Objects_Locations location;
if ( !rwlock )
a000ac04: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000ac08: 0a000011 beq a000ac54 <pthread_rwlock_wrlock+0x54> <== NOT EXECUTED a000ac0c: e59f0048 ldr r0, [pc, #72] ; a000ac5c <pthread_rwlock_wrlock+0x5c><== NOT EXECUTED a000ac10: e5941000 ldr r1, [r4] <== NOT EXECUTED a000ac14: e28d2004 add r2, sp, #4 <== NOT EXECUTED a000ac18: eb000979 bl a000d204 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_rwlock = _POSIX_RWLock_Get( rwlock, &location );
switch ( location ) {
a000ac1c: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a000ac20: e3530000 cmp r3, #0 <== NOT EXECUTED a000ac24: 1a00000a bne a000ac54 <pthread_rwlock_wrlock+0x54> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_RWLock_Obtain_for_writing(
a000ac28: e58d3000 str r3, [sp] <== NOT EXECUTED a000ac2c: e2800010 add r0, r0, #16 <== NOT EXECUTED a000ac30: e5941000 ldr r1, [r4] <== NOT EXECUTED a000ac34: e3a02001 mov r2, #1 <== NOT EXECUTED a000ac38: eb00066c bl a000c5f0 <_CORE_RWLock_Obtain_for_writing> <== NOT EXECUTED
true, /* do not timeout -- wait forever */
0,
NULL
);
_Thread_Enable_dispatch();
a000ac3c: eb000c77 bl a000de20 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_RWLock_Translate_core_RWLock_return_code(
(CORE_RWLock_Status) _Thread_Executing->Wait.return_code
a000ac40: e59f3018 ldr r3, [pc, #24] ; a000ac60 <pthread_rwlock_wrlock+0x60><== NOT EXECUTED a000ac44: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
0,
NULL
);
_Thread_Enable_dispatch();
return _POSIX_RWLock_Translate_core_RWLock_return_code(
a000ac48: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a000ac4c: ebffffa1 bl a000aad8 <_POSIX_RWLock_Translate_core_RWLock_return_code><== NOT EXECUTED a000ac50: ea000000 b a000ac58 <pthread_rwlock_wrlock+0x58> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a000ac54: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a000ac58: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED
a000b180 <pthread_rwlockattr_destroy>:
int pthread_rwlockattr_destroy(
pthread_rwlockattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
a000b180: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
a000b184: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_rwlockattr_destroy(
pthread_rwlockattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
a000b188: 012fff1e bxeq lr <== NOT EXECUTED a000b18c: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b190: e3520000 cmp r2, #0 <== NOT EXECUTED
return EINVAL;
attr->is_initialized = false;
a000b194: 13a00000 movne r0, #0 <== NOT EXECUTED a000b198: 15830000 strne r0, [r3] <== NOT EXECUTED
int pthread_rwlockattr_destroy(
pthread_rwlockattr_t *attr
)
{
if ( !attr || attr->is_initialized == false )
return EINVAL;
a000b19c: 03a00016 moveq r0, #22 <== NOT EXECUTED
attr->is_initialized = false;
return 0;
}
a000b1a0: e12fff1e bx lr <== NOT EXECUTED
a000b1a4 <pthread_rwlockattr_getpshared>:
int pthread_rwlockattr_getpshared(
const pthread_rwlockattr_t *attr,
int *pshared
)
{
if ( !attr )
a000b1a4: e3500000 cmp r0, #0 <== NOT EXECUTED
return EINVAL;
a000b1a8: 03a00016 moveq r0, #22 <== NOT EXECUTED
int pthread_rwlockattr_getpshared(
const pthread_rwlockattr_t *attr,
int *pshared
)
{
if ( !attr )
a000b1ac: 012fff1e bxeq lr <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
a000b1b0: e5903000 ldr r3, [r0] <== NOT EXECUTED a000b1b4: e3530000 cmp r3, #0 <== NOT EXECUTED
return EINVAL;
*pshared = attr->process_shared;
a000b1b8: 15903004 ldrne r3, [r0, #4] <== NOT EXECUTED
{
if ( !attr )
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
a000b1bc: 03a00016 moveq r0, #22 <== NOT EXECUTED
*pshared = attr->process_shared;
return 0;
a000b1c0: 13a00000 movne r0, #0 <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
*pshared = attr->process_shared;
a000b1c4: 15813000 strne r3, [r1] <== NOT EXECUTED
return 0; }
a000b1c8: e12fff1e bx lr <== NOT EXECUTED
a000b1cc <pthread_rwlockattr_init>:
int pthread_rwlockattr_init(
pthread_rwlockattr_t *attr
)
{
if ( !attr )
a000b1cc: e2503000 subs r3, r0, #0 <== NOT EXECUTED
return EINVAL;
attr->is_initialized = true;
a000b1d0: 13a02001 movne r2, #1 <== NOT EXECUTED
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
a000b1d4: 13a00000 movne r0, #0 <== NOT EXECUTED
)
{
if ( !attr )
return EINVAL;
attr->is_initialized = true;
a000b1d8: 15832000 strne r2, [r3] <== NOT EXECUTED
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
a000b1dc: 15830004 strne r0, [r3, #4] <== NOT EXECUTED
int pthread_rwlockattr_init(
pthread_rwlockattr_t *attr
)
{
if ( !attr )
return EINVAL;
a000b1e0: 03a00016 moveq r0, #22 <== NOT EXECUTED
attr->is_initialized = true;
attr->process_shared = PTHREAD_PROCESS_PRIVATE;
return 0;
}
a000b1e4: e12fff1e bx lr <== NOT EXECUTED
a000b1e8 <pthread_rwlockattr_setpshared>:
int pthread_rwlockattr_setpshared(
pthread_rwlockattr_t *attr,
int pshared
)
{
if ( !attr )
a000b1e8: e3500000 cmp r0, #0 <== NOT EXECUTED a000b1ec: 0a000007 beq a000b210 <pthread_rwlockattr_setpshared+0x28> <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
a000b1f0: e5903000 ldr r3, [r0] <== NOT EXECUTED a000b1f4: e3530000 cmp r3, #0 <== NOT EXECUTED a000b1f8: 0a000004 beq a000b210 <pthread_rwlockattr_setpshared+0x28> <== NOT EXECUTED
return EINVAL;
switch ( pshared ) {
a000b1fc: e3510001 cmp r1, #1 <== NOT EXECUTED
case PTHREAD_PROCESS_SHARED:
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
a000b200: 95801004 strls r1, [r0, #4] <== NOT EXECUTED
return 0;
a000b204: 93a00000 movls r0, #0 <== NOT EXECUTED
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
switch ( pshared ) {
a000b208: 912fff1e bxls lr <== NOT EXECUTED a000b20c: ea000001 b a000b218 <pthread_rwlockattr_setpshared+0x30> <== NOT EXECUTED
{
if ( !attr )
return EINVAL;
if ( !attr->is_initialized )
return EINVAL;
a000b210: e3a00016 mov r0, #22 <== NOT EXECUTED a000b214: e12fff1e bx lr <== NOT EXECUTED
case PTHREAD_PROCESS_PRIVATE:
attr->process_shared = pshared;
return 0;
default:
return EINVAL;
a000b218: e3a00016 mov r0, #22 <== NOT EXECUTED
} }
a000b21c: e12fff1e bx lr <== NOT EXECUTED
a0025c4c <pthread_self>:
#include <rtems/system.h>
#include <rtems/score/thread.h>
pthread_t pthread_self( void )
{
return _Thread_Executing->Object.id;
a0025c4c: e59f3008 ldr r3, [pc, #8] ; a0025c5c <pthread_self+0x10> <== NOT EXECUTED a0025c50: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
}
a0025c54: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0025c58: e12fff1e bx lr <== NOT EXECUTED
a0009054 <pthread_setcancelstate>:
* Don't even think about deleting a resource from an ISR.
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
a0009054: e59f3068 ldr r3, [pc, #104] ; a00090c4 <pthread_setcancelstate+0x70><== NOT EXECUTED
int pthread_setcancelstate(
int state,
int *oldstate
)
{
a0009058: e92d4010 push {r4, lr} <== NOT EXECUTED
* Don't even think about deleting a resource from an ISR.
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
a000905c: e5934000 ldr r4, [r3] <== NOT EXECUTED a0009060: e3540000 cmp r4, #0 <== NOT EXECUTED a0009064: 1a000010 bne a00090ac <pthread_setcancelstate+0x58> <== NOT EXECUTED
return EPROTO;
if ( !oldstate )
a0009068: e3510000 cmp r1, #0 <== NOT EXECUTED a000906c: 0a000010 beq a00090b4 <pthread_setcancelstate+0x60> <== NOT EXECUTED
return EINVAL;
if ( state != PTHREAD_CANCEL_ENABLE && state != PTHREAD_CANCEL_DISABLE )
a0009070: e3500001 cmp r0, #1 <== NOT EXECUTED a0009074: 8a000010 bhi a00090bc <pthread_setcancelstate+0x68> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a0009078: e59fc048 ldr ip, [pc, #72] ; a00090c8 <pthread_setcancelstate+0x74><== NOT EXECUTED
return EINVAL;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a000907c: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a0009080: e59ce000 ldr lr, [ip] <== NOT EXECUTED a0009084: e59220fc ldr r2, [r2, #252] ; 0xfc <== NOT EXECUTED a0009088: e28ee001 add lr, lr, #1 <== NOT EXECUTED a000908c: e58ce000 str lr, [ip] <== NOT EXECUTED
_Thread_Disable_dispatch();
*oldstate = thread_support->cancelability_state;
a0009090: e592c0d8 ldr ip, [r2, #216] ; 0xd8 <== NOT EXECUTED a0009094: e581c000 str ip, [r1] <== NOT EXECUTED
thread_support->cancelability_state = state;
a0009098: e58200d8 str r0, [r2, #216] ; 0xd8 <== NOT EXECUTED
_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing);
a000909c: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a00090a0: eb0014f0 bl a000e468 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch><== NOT EXECUTED
/*
* _Thread_Enable_dispatch is invoked by above call.
*/
return 0;
a00090a4: e1a00004 mov r0, r4 <== NOT EXECUTED
a00090a8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
return EPROTO;
a00090ac: e3a00047 mov r0, #71 ; 0x47 <== NOT EXECUTED
a00090b0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
if ( !oldstate )
return EINVAL;
a00090b4: e3a00016 mov r0, #22 <== NOT EXECUTED
a00090b8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
if ( state != PTHREAD_CANCEL_ENABLE && state != PTHREAD_CANCEL_DISABLE )
return EINVAL;
a00090bc: e3a00016 mov r0, #22 <== NOT EXECUTED
/*
* _Thread_Enable_dispatch is invoked by above call.
*/
return 0;
}
a00090c0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a00090cc <pthread_setcanceltype>:
* Don't even think about deleting a resource from an ISR.
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
a00090cc: e59f3068 ldr r3, [pc, #104] ; a000913c <pthread_setcanceltype+0x70><== NOT EXECUTED
int pthread_setcanceltype(
int type,
int *oldtype
)
{
a00090d0: e92d4010 push {r4, lr} <== NOT EXECUTED
* Don't even think about deleting a resource from an ISR.
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
a00090d4: e5934000 ldr r4, [r3] <== NOT EXECUTED a00090d8: e3540000 cmp r4, #0 <== NOT EXECUTED a00090dc: 1a000010 bne a0009124 <pthread_setcanceltype+0x58> <== NOT EXECUTED
return EPROTO;
if ( !oldtype )
a00090e0: e3510000 cmp r1, #0 <== NOT EXECUTED a00090e4: 0a000010 beq a000912c <pthread_setcanceltype+0x60> <== NOT EXECUTED
return EINVAL;
if ( type != PTHREAD_CANCEL_DEFERRED && type != PTHREAD_CANCEL_ASYNCHRONOUS )
a00090e8: e3500001 cmp r0, #1 <== NOT EXECUTED a00090ec: 8a000010 bhi a0009134 <pthread_setcanceltype+0x68> <== NOT EXECUTED a00090f0: e59fc048 ldr ip, [pc, #72] ; a0009140 <pthread_setcanceltype+0x74><== NOT EXECUTED
return EINVAL;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a00090f4: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a00090f8: e59ce000 ldr lr, [ip] <== NOT EXECUTED a00090fc: e59220fc ldr r2, [r2, #252] ; 0xfc <== NOT EXECUTED a0009100: e28ee001 add lr, lr, #1 <== NOT EXECUTED a0009104: e58ce000 str lr, [ip] <== NOT EXECUTED
_Thread_Disable_dispatch();
*oldtype = thread_support->cancelability_type;
a0009108: e592c0dc ldr ip, [r2, #220] ; 0xdc <== NOT EXECUTED a000910c: e581c000 str ip, [r1] <== NOT EXECUTED
thread_support->cancelability_type = type;
a0009110: e58200dc str r0, [r2, #220] ; 0xdc <== NOT EXECUTED
_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch(_Thread_Executing);
a0009114: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a0009118: eb0014d2 bl a000e468 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch><== NOT EXECUTED
/*
* _Thread_Enable_dispatch is invoked by above call.
*/
return 0;
a000911c: e1a00004 mov r0, r4 <== NOT EXECUTED
a0009120: e8bd8010 pop {r4, pc} <== NOT EXECUTED
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
return EPROTO;
a0009124: e3a00047 mov r0, #71 ; 0x47 <== NOT EXECUTED
a0009128: e8bd8010 pop {r4, pc} <== NOT EXECUTED
if ( !oldtype )
return EINVAL;
a000912c: e3a00016 mov r0, #22 <== NOT EXECUTED
a0009130: e8bd8010 pop {r4, pc} <== NOT EXECUTED
if ( type != PTHREAD_CANCEL_DEFERRED && type != PTHREAD_CANCEL_ASYNCHRONOUS )
return EINVAL;
a0009134: e3a00016 mov r0, #22 <== NOT EXECUTED
/*
* _Thread_Enable_dispatch is invoked by above call.
*/
return 0;
}
a0009138: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000c1b0 <pthread_setschedparam>:
int pthread_setschedparam(
pthread_t thread,
int policy,
struct sched_param *param
)
{
a000c1b0: e92d41f7 push {r0, r1, r2, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
int rc;
/*
* Check all the parameters
*/
if ( !param )
a000c1b4: e2528000 subs r8, r2, #0 <== NOT EXECUTED
int pthread_setschedparam(
pthread_t thread,
int policy,
struct sched_param *param
)
{
a000c1b8: e1a04000 mov r4, r0 <== NOT EXECUTED a000c1bc: e1a06001 mov r6, r1 <== NOT EXECUTED
/*
* Check all the parameters
*/
if ( !param )
return EINVAL;
a000c1c0: 03a07016 moveq r7, #22 <== NOT EXECUTED
int rc;
/*
* Check all the parameters
*/
if ( !param )
a000c1c4: 0a000039 beq a000c2b0 <pthread_setschedparam+0x100> <== NOT EXECUTED
return EINVAL;
rc = _POSIX_Thread_Translate_sched_param(
a000c1c8: e1a00001 mov r0, r1 <== NOT EXECUTED a000c1cc: e28d2008 add r2, sp, #8 <== NOT EXECUTED a000c1d0: e1a01008 mov r1, r8 <== NOT EXECUTED a000c1d4: e28d3004 add r3, sp, #4 <== NOT EXECUTED a000c1d8: eb0016be bl a0011cd8 <_POSIX_Thread_Translate_sched_param> <== NOT EXECUTED
policy,
param,
&budget_algorithm,
&budget_callout
);
if ( rc )
a000c1dc: e2507000 subs r7, r0, #0 <== NOT EXECUTED a000c1e0: 1a000032 bne a000c2b0 <pthread_setschedparam+0x100> <== NOT EXECUTED
return rc;
/*
* Actually change the scheduling policy and parameters
*/
the_thread = _Thread_Get( thread, &location );
a000c1e4: e1a00004 mov r0, r4 <== NOT EXECUTED a000c1e8: e1a0100d mov r1, sp <== NOT EXECUTED a000c1ec: eb000aa0 bl a000ec74 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000c1f0: e59d3000 ldr r3, [sp] <== NOT EXECUTED
return rc;
/*
* Actually change the scheduling policy and parameters
*/
the_thread = _Thread_Get( thread, &location );
a000c1f4: e1a05000 mov r5, r0 <== NOT EXECUTED
switch ( location ) {
a000c1f8: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return ESRCH;
a000c1fc: 13a07003 movne r7, #3 <== NOT EXECUTED
/*
* Actually change the scheduling policy and parameters
*/
the_thread = _Thread_Get( thread, &location );
switch ( location ) {
a000c200: 1a00002a bne a000c2b0 <pthread_setschedparam+0x100> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
a000c204: e59040fc ldr r4, [r0, #252] ; 0xfc <== NOT EXECUTED
if ( api->schedpolicy == SCHED_SPORADIC )
a000c208: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED a000c20c: e3530004 cmp r3, #4 <== NOT EXECUTED a000c210: 1a000001 bne a000c21c <pthread_setschedparam+0x6c> <== NOT EXECUTED
(void) _Watchdog_Remove( &api->Sporadic_timer );
a000c214: e28400a8 add r0, r4, #168 ; 0xa8 <== NOT EXECUTED a000c218: eb000eba bl a000fd08 <_Watchdog_Remove> <== NOT EXECUTED
api->schedpolicy = policy;
a000c21c: e5846084 str r6, [r4, #132] ; 0x84 <== NOT EXECUTED
api->schedparam = *param;
a000c220: e284c088 add ip, r4, #136 ; 0x88 <== NOT EXECUTED
a000c224: e8b8000f ldm r8!, {r0, r1, r2, r3} <== NOT EXECUTED
a000c228: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
the_thread->budget_algorithm = budget_algorithm;
a000c22c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED
if ( api->schedpolicy == SCHED_SPORADIC )
(void) _Watchdog_Remove( &api->Sporadic_timer );
api->schedpolicy = policy;
api->schedparam = *param;
a000c230: e8980007 ldm r8, {r0, r1, r2} <== NOT EXECUTED
a000c234: e88c0007 stm ip, {r0, r1, r2} <== NOT EXECUTED
the_thread->budget_algorithm = budget_algorithm;
a000c238: e585307c str r3, [r5, #124] ; 0x7c <== NOT EXECUTED
the_thread->budget_callout = budget_callout;
a000c23c: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED
switch ( api->schedpolicy ) {
a000c240: e3560000 cmp r6, #0 <== NOT EXECUTED
(void) _Watchdog_Remove( &api->Sporadic_timer );
api->schedpolicy = policy;
api->schedparam = *param;
the_thread->budget_algorithm = budget_algorithm;
the_thread->budget_callout = budget_callout;
a000c244: e5853080 str r3, [r5, #128] ; 0x80 <== NOT EXECUTED
switch ( api->schedpolicy ) {
a000c248: ba000017 blt a000c2ac <pthread_setschedparam+0xfc> <== NOT EXECUTED a000c24c: e3560002 cmp r6, #2 <== NOT EXECUTED a000c250: da000002 ble a000c260 <pthread_setschedparam+0xb0> <== NOT EXECUTED a000c254: e3560004 cmp r6, #4 <== NOT EXECUTED a000c258: 1a000013 bne a000c2ac <pthread_setschedparam+0xfc> <== NOT EXECUTED a000c25c: ea00000b b a000c290 <pthread_setschedparam+0xe0> <== NOT EXECUTED
case SCHED_OTHER:
case SCHED_FIFO:
case SCHED_RR:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
a000c260: e59f3050 ldr r3, [pc, #80] ; a000c2b8 <pthread_setschedparam+0x108><== NOT EXECUTED
the_thread->real_priority =
_POSIX_Priority_To_core( api->schedparam.sched_priority );
_Thread_Change_priority(
a000c264: e1a00005 mov r0, r5 <== NOT EXECUTED a000c268: e3a02001 mov r2, #1 <== NOT EXECUTED
switch ( api->schedpolicy ) {
case SCHED_OTHER:
case SCHED_FIFO:
case SCHED_RR:
the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;
a000c26c: e5933000 ldr r3, [r3] <== NOT EXECUTED a000c270: e5853078 str r3, [r5, #120] ; 0x78 <== NOT EXECUTED a000c274: e59f3040 ldr r3, [pc, #64] ; a000c2bc <pthread_setschedparam+0x10c><== NOT EXECUTED a000c278: e5d31000 ldrb r1, [r3] <== NOT EXECUTED a000c27c: e5943088 ldr r3, [r4, #136] ; 0x88 <== NOT EXECUTED a000c280: e0631001 rsb r1, r3, r1 <== NOT EXECUTED
the_thread->real_priority =
a000c284: e5851018 str r1, [r5, #24] <== NOT EXECUTED
_POSIX_Priority_To_core( api->schedparam.sched_priority );
_Thread_Change_priority(
a000c288: eb00096d bl a000e844 <_Thread_Change_priority> <== NOT EXECUTED
the_thread,
the_thread->real_priority,
true
);
break;
a000c28c: ea000006 b a000c2ac <pthread_setschedparam+0xfc> <== NOT EXECUTED
case SCHED_SPORADIC:
api->ss_high_priority = api->schedparam.sched_priority;
a000c290: e5943088 ldr r3, [r4, #136] ; 0x88 <== NOT EXECUTED
_Watchdog_Remove( &api->Sporadic_timer );
a000c294: e28400a8 add r0, r4, #168 ; 0xa8 <== NOT EXECUTED
true
);
break;
case SCHED_SPORADIC:
api->ss_high_priority = api->schedparam.sched_priority;
a000c298: e58430a4 str r3, [r4, #164] ; 0xa4 <== NOT EXECUTED
_Watchdog_Remove( &api->Sporadic_timer );
a000c29c: eb000e99 bl a000fd08 <_Watchdog_Remove> <== NOT EXECUTED
_POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );
a000c2a0: e3a00000 mov r0, #0 <== NOT EXECUTED a000c2a4: e1a01005 mov r1, r5 <== NOT EXECUTED a000c2a8: ebffff77 bl a000c08c <_POSIX_Threads_Sporadic_budget_TSR> <== NOT EXECUTED
break;
}
_Thread_Enable_dispatch();
a000c2ac: eb000a67 bl a000ec50 <_Thread_Enable_dispatch> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return ESRCH;
}
a000c2b0: e1a00007 mov r0, r7 <== NOT EXECUTED
a000c2b4: e8bd81fe pop {r1, r2, r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a00095f4 <pthread_setspecific>:
int pthread_setspecific(
pthread_key_t key,
const void *value
)
{
a00095f4: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a00095f8: e1a03000 mov r3, r0 <== NOT EXECUTED
a00095fc: e1a04001 mov r4, r1 <== NOT EXECUTED
a0009600: e59f0048 ldr r0, [pc, #72] ; a0009650 <pthread_setspecific+0x5c><== NOT EXECUTED
a0009604: e1a01003 mov r1, r3 <== NOT EXECUTED
a0009608: e1a0200d mov r2, sp <== NOT EXECUTED
a000960c: eb0008ee bl a000b9cc <_Objects_Get> <== NOT EXECUTED
uint32_t api;
uint32_t index;
Objects_Locations location;
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
a0009610: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0009614: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a0009618: 13a00016 movne r0, #22 <== NOT EXECUTED
uint32_t api;
uint32_t index;
Objects_Locations location;
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
a000961c: 1a00000a bne a000964c <pthread_setspecific+0x58> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = _Objects_Get_API( _Thread_Executing->Object.id );
a0009620: e59f302c ldr r3, [pc, #44] ; a0009654 <pthread_setspecific+0x60><== NOT EXECUTED a0009624: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0009628: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000962c: e1a02c23 lsr r2, r3, #24 <== NOT EXECUTED a0009630: e2022007 and r2, r2, #7 <== NOT EXECUTED
index = _Objects_Get_index( _Thread_Executing->Object.id );
the_key->Values[ api ][ index ] = (void *) value;
a0009634: e2822005 add r2, r2, #5 <== NOT EXECUTED a0009638: e7902102 ldr r2, [r0, r2, lsl #2] <== NOT EXECUTED
the_key = _POSIX_Keys_Get( key, &location );
switch ( location ) {
case OBJECTS_LOCAL:
api = _Objects_Get_API( _Thread_Executing->Object.id );
index = _Objects_Get_index( _Thread_Executing->Object.id );
a000963c: e1a03803 lsl r3, r3, #16 <== NOT EXECUTED
the_key->Values[ api ][ index ] = (void *) value;
a0009640: e7824723 str r4, [r2, r3, lsr #14] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009644: eb000be7 bl a000c5e8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a0009648: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return EINVAL;
}
a000964c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000fc40 <pthread_sigmask>:
sigset_t *oset
)
{
POSIX_API_Control *api;
if ( !set && !oset )
a000fc40: e271c001 rsbs ip, r1, #1 <== NOT EXECUTED a000fc44: 33a0c000 movcc ip, #0 <== NOT EXECUTED a000fc48: e3520000 cmp r2, #0 <== NOT EXECUTED a000fc4c: 03510000 cmpeq r1, #0 <== NOT EXECUTED
int pthread_sigmask(
int how,
const sigset_t *set,
sigset_t *oset
)
{
a000fc50: e92d4010 push {r4, lr} <== NOT EXECUTED
POSIX_API_Control *api;
if ( !set && !oset )
a000fc54: 0a00001f beq a000fcd8 <pthread_sigmask+0x98> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a000fc58: e59f30a0 ldr r3, [pc, #160] ; a000fd00 <pthread_sigmask+0xc0><== NOT EXECUTED
if ( oset )
a000fc5c: e3520000 cmp r2, #0 <== NOT EXECUTED
POSIX_API_Control *api;
if ( !set && !oset )
rtems_set_errno_and_return_minus_one( EINVAL );
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a000fc60: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000fc64: e59330fc ldr r3, [r3, #252] ; 0xfc <== NOT EXECUTED
if ( oset )
*oset = api->signals_blocked;
a000fc68: 159340d0 ldrne r4, [r3, #208] ; 0xd0 <== NOT EXECUTED a000fc6c: 15824000 strne r4, [r2] <== NOT EXECUTED
if ( !set )
a000fc70: e35c0000 cmp ip, #0 <== NOT EXECUTED a000fc74: 1a00001f bne a000fcf8 <pthread_sigmask+0xb8> <== NOT EXECUTED
return 0;
switch ( how ) {
a000fc78: e3500001 cmp r0, #1 <== NOT EXECUTED a000fc7c: 0a000005 beq a000fc98 <pthread_sigmask+0x58> <== NOT EXECUTED a000fc80: e3500002 cmp r0, #2 <== NOT EXECUTED a000fc84: 0a000007 beq a000fca8 <pthread_sigmask+0x68> <== NOT EXECUTED a000fc88: e3500000 cmp r0, #0 <== NOT EXECUTED
break;
case SIG_UNBLOCK:
api->signals_blocked &= ~*set;
break;
case SIG_SETMASK:
api->signals_blocked = *set;
a000fc8c: 05912000 ldreq r2, [r1] <== NOT EXECUTED
*oset = api->signals_blocked;
if ( !set )
return 0;
switch ( how ) {
a000fc90: 0a000007 beq a000fcb4 <pthread_sigmask+0x74> <== NOT EXECUTED a000fc94: ea00000f b a000fcd8 <pthread_sigmask+0x98> <== NOT EXECUTED
case SIG_BLOCK:
api->signals_blocked |= *set;
a000fc98: e59300d0 ldr r0, [r3, #208] ; 0xd0 <== NOT EXECUTED a000fc9c: e5912000 ldr r2, [r1] <== NOT EXECUTED a000fca0: e1802002 orr r2, r0, r2 <== NOT EXECUTED a000fca4: ea000002 b a000fcb4 <pthread_sigmask+0x74> <== NOT EXECUTED
break;
case SIG_UNBLOCK:
api->signals_blocked &= ~*set;
a000fca8: e5911000 ldr r1, [r1] <== NOT EXECUTED a000fcac: e59320d0 ldr r2, [r3, #208] ; 0xd0 <== NOT EXECUTED a000fcb0: e1c22001 bic r2, r2, r1 <== NOT EXECUTED
break;
case SIG_SETMASK:
api->signals_blocked = *set;
a000fcb4: e58320d0 str r2, [r3, #208] ; 0xd0 <== NOT EXECUTED
/* XXX are there critical section problems here? */
/* XXX evaluate the new set */
if ( ~api->signals_blocked &
(api->signals_pending | _POSIX_signals_Pending) ) {
a000fcb8: e59f2044 ldr r2, [pc, #68] ; a000fd04 <pthread_sigmask+0xc4><== NOT EXECUTED a000fcbc: e5920000 ldr r0, [r2] <== NOT EXECUTED a000fcc0: e59320d4 ldr r2, [r3, #212] ; 0xd4 <== NOT EXECUTED
/* XXX are there critical section problems here? */
/* XXX evaluate the new set */
if ( ~api->signals_blocked &
a000fcc4: e59330d0 ldr r3, [r3, #208] ; 0xd0 <== NOT EXECUTED
(api->signals_pending | _POSIX_signals_Pending) ) {
a000fcc8: e1800002 orr r0, r0, r2 <== NOT EXECUTED
/* XXX are there critical section problems here? */
/* XXX evaluate the new set */
if ( ~api->signals_blocked &
a000fccc: e1d00003 bics r0, r0, r3 <== NOT EXECUTED a000fcd0: 0a000009 beq a000fcfc <pthread_sigmask+0xbc> <== NOT EXECUTED a000fcd4: ea000004 b a000fcec <pthread_sigmask+0xac> <== NOT EXECUTED
break;
case SIG_SETMASK:
api->signals_blocked = *set;
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
a000fcd8: eb000974 bl a00122b0 <__errno> <== NOT EXECUTED
a000fcdc: e3a03016 mov r3, #22 <== NOT EXECUTED
a000fce0: e5803000 str r3, [r0] <== NOT EXECUTED
a000fce4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000fce8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
/* XXX evaluate the new set */
if ( ~api->signals_blocked &
(api->signals_pending | _POSIX_signals_Pending) ) {
_Thread_Dispatch();
a000fcec: ebfff26a bl a000c69c <_Thread_Dispatch> <== NOT EXECUTED
}
return 0;
a000fcf0: e3a00000 mov r0, #0 <== NOT EXECUTED
a000fcf4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
if ( oset )
*oset = api->signals_blocked;
if ( !set )
return 0;
a000fcf8: e3a00000 mov r0, #0 <== NOT EXECUTED
(api->signals_pending | _POSIX_signals_Pending) ) {
_Thread_Dispatch();
}
return 0;
}
a000fcfc: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a00096a0 <pthread_spin_destroy>:
)
{
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
if ( !spinlock )
a00096a0: e2503000 subs r3, r0, #0 <== NOT EXECUTED
*/
int pthread_spin_destroy(
pthread_spinlock_t *spinlock
)
{
a00096a4: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
if ( !spinlock )
a00096a8: 0a000016 beq a0009708 <pthread_spin_destroy+0x68> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get (
pthread_spinlock_t *spinlock,
Objects_Locations *location
)
{
return (POSIX_Spinlock_Control *) _Objects_Get(
a00096ac: e5931000 ldr r1, [r3] <== NOT EXECUTED a00096b0: e59f0058 ldr r0, [pc, #88] ; a0009710 <pthread_spin_destroy+0x70><== NOT EXECUTED a00096b4: e1a0200d mov r2, sp <== NOT EXECUTED a00096b8: eb000820 bl a000b740 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
a00096bc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00096c0: e1a04000 mov r4, r0 <== NOT EXECUTED a00096c4: e3530000 cmp r3, #0 <== NOT EXECUTED a00096c8: 1a00000e bne a0009708 <pthread_spin_destroy+0x68> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _CORE_spinlock_Is_busy(
CORE_spinlock_Control *the_spinlock
)
{
return (the_spinlock->users != 0);
a00096cc: e5905018 ldr r5, [r0, #24] <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( _CORE_spinlock_Is_busy( &the_spinlock->Spinlock ) ) {
a00096d0: e3550000 cmp r5, #0 <== NOT EXECUTED a00096d4: 0a000002 beq a00096e4 <pthread_spin_destroy+0x44> <== NOT EXECUTED
_Thread_Enable_dispatch();
a00096d8: eb000b1f bl a000c35c <_Thread_Enable_dispatch> <== NOT EXECUTED
return EBUSY;
a00096dc: e3a00010 mov r0, #16 <== NOT EXECUTED a00096e0: ea000009 b a000970c <pthread_spin_destroy+0x6c> <== NOT EXECUTED
}
_Objects_Close( &_POSIX_Spinlock_Information, &the_spinlock->Object );
a00096e4: e59f0024 ldr r0, [pc, #36] ; a0009710 <pthread_spin_destroy+0x70><== NOT EXECUTED a00096e8: e1a01004 mov r1, r4 <== NOT EXECUTED a00096ec: eb000716 bl a000b34c <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _POSIX_Spinlock_Free (
POSIX_Spinlock_Control *the_spinlock
)
{
_Objects_Free( &_POSIX_Spinlock_Information, &the_spinlock->Object );
a00096f0: e59f0018 ldr r0, [pc, #24] ; a0009710 <pthread_spin_destroy+0x70><== NOT EXECUTED a00096f4: e1a01004 mov r1, r4 <== NOT EXECUTED a00096f8: eb0007b8 bl a000b5e0 <_Objects_Free> <== NOT EXECUTED
_POSIX_Spinlock_Free( the_spinlock );
_Thread_Enable_dispatch();
a00096fc: eb000b16 bl a000c35c <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a0009700: e1a00005 mov r0, r5 <== NOT EXECUTED a0009704: ea000000 b a000970c <pthread_spin_destroy+0x6c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a0009708: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a000970c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0009714 <pthread_spin_init>:
int pthread_spin_init(
pthread_spinlock_t *spinlock,
int pshared
)
{
a0009714: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
POSIX_Spinlock_Control *the_spinlock;
CORE_spinlock_Attributes attributes;
if ( !spinlock )
a0009718: e2507000 subs r7, r0, #0 <== NOT EXECUTED
int pthread_spin_init(
pthread_spinlock_t *spinlock,
int pshared
)
{
a000971c: e1a05001 mov r5, r1 <== NOT EXECUTED
POSIX_Spinlock_Control *the_spinlock;
CORE_spinlock_Attributes attributes;
if ( !spinlock )
a0009720: 0a00001b beq a0009794 <pthread_spin_init+0x80> <== NOT EXECUTED
return EINVAL;
switch ( pshared ) {
a0009724: e3510000 cmp r1, #0 <== NOT EXECUTED a0009728: 1a000019 bne a0009794 <pthread_spin_init+0x80> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000972c: e59f3068 ldr r3, [pc, #104] ; a000979c <pthread_spin_init+0x88><== NOT EXECUTED a0009730: e5932000 ldr r2, [r3] <== NOT EXECUTED a0009734: e2822001 add r2, r2, #1 <== NOT EXECUTED a0009738: e5832000 str r2, [r3] <== NOT EXECUTED
* the inactive chain of free spinlock control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Allocate( void )
{
return (POSIX_Spinlock_Control *)
_Objects_Allocate( &_POSIX_Spinlock_Information );
a000973c: e59f605c ldr r6, [pc, #92] ; a00097a0 <pthread_spin_init+0x8c><== NOT EXECUTED a0009740: e1a00006 mov r0, r6 <== NOT EXECUTED a0009744: eb0006de bl a000b2c4 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* prevents deletion */
the_spinlock = _POSIX_Spinlock_Allocate();
if ( !the_spinlock ) {
a0009748: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000974c: 1a000002 bne a000975c <pthread_spin_init+0x48> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009750: eb000b01 bl a000c35c <_Thread_Enable_dispatch> <== NOT EXECUTED
return EAGAIN;
a0009754: e3a0000b mov r0, #11 <== NOT EXECUTED a0009758: ea00000e b a0009798 <pthread_spin_init+0x84> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _CORE_spinlock_Initialize_attributes(
CORE_spinlock_Attributes *the_attributes
)
{
the_attributes->XXX = 0;
a000975c: e28d1004 add r1, sp, #4 <== NOT EXECUTED
}
_CORE_spinlock_Initialize_attributes( &attributes );
_CORE_spinlock_Initialize( &the_spinlock->Spinlock, &attributes );
a0009760: e2840010 add r0, r4, #16 <== NOT EXECUTED a0009764: e5215004 str r5, [r1, #-4]! <== NOT EXECUTED a0009768: e1a0100d mov r1, sp <== NOT EXECUTED a000976c: eb000526 bl a000ac0c <_CORE_spinlock_Initialize> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a0009770: e596201c ldr r2, [r6, #28] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
a0009774: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0009778: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000977c: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
a0009780: e584500c str r5, [r4, #12] <== NOT EXECUTED
_Objects_Open_u32( &_POSIX_Spinlock_Information, &the_spinlock->Object, 0 );
*spinlock = the_spinlock->Object.id;
a0009784: e5873000 str r3, [r7] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009788: eb000af3 bl a000c35c <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000978c: e1a00005 mov r0, r5 <== NOT EXECUTED a0009790: ea000000 b a0009798 <pthread_spin_init+0x84> <== NOT EXECUTED
switch ( pshared ) {
case PTHREAD_PROCESS_PRIVATE: /* only supported values */
break;
case PTHREAD_PROCESS_SHARED:
default:
return EINVAL;
a0009794: e3a00016 mov r0, #22 <== NOT EXECUTED
*spinlock = the_spinlock->Object.id;
_Thread_Enable_dispatch();
return 0;
}
a0009798: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a00097a4 <pthread_spin_lock>:
{
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
CORE_spinlock_Status status;
if ( !spinlock )
a00097a4: e2503000 subs r3, r0, #0 <== NOT EXECUTED
*/
int pthread_spin_lock(
pthread_spinlock_t *spinlock
)
{
a00097a8: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
CORE_spinlock_Status status;
if ( !spinlock )
a00097ac: 0a00000e beq a00097ec <pthread_spin_lock+0x48> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE POSIX_Spinlock_Control *_POSIX_Spinlock_Get (
pthread_spinlock_t *spinlock,
Objects_Locations *location
)
{
return (POSIX_Spinlock_Control *) _Objects_Get(
a00097b0: e1a0200d mov r2, sp <== NOT EXECUTED a00097b4: e59f0038 ldr r0, [pc, #56] ; a00097f4 <pthread_spin_lock+0x50><== NOT EXECUTED a00097b8: e5931000 ldr r1, [r3] <== NOT EXECUTED a00097bc: eb0007df bl a000b740 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
a00097c0: e59d2000 ldr r2, [sp] <== NOT EXECUTED a00097c4: e3520000 cmp r2, #0 <== NOT EXECUTED a00097c8: 1a000007 bne a00097ec <pthread_spin_lock+0x48> <== NOT EXECUTED
case OBJECTS_LOCAL:
status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, true, 0 );
a00097cc: e3a01001 mov r1, #1 <== NOT EXECUTED a00097d0: e2800010 add r0, r0, #16 <== NOT EXECUTED a00097d4: eb00052f bl a000ac98 <_CORE_spinlock_Wait> <== NOT EXECUTED a00097d8: e1a04000 mov r4, r0 <== NOT EXECUTED
_Thread_Enable_dispatch();
a00097dc: eb000ade bl a000c35c <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_Spinlock_Translate_core_spinlock_return_code( status );
a00097e0: e1a00004 mov r0, r4 <== NOT EXECUTED a00097e4: eb000003 bl a00097f8 <_POSIX_Spinlock_Translate_core_spinlock_return_code><== NOT EXECUTED a00097e8: ea000000 b a00097f0 <pthread_spin_lock+0x4c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a00097ec: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a00097f0: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a0009808 <pthread_spin_trylock>:
{
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
CORE_spinlock_Status status;
if ( !spinlock )
a0009808: e2503000 subs r3, r0, #0 <== NOT EXECUTED
*/
int pthread_spin_trylock(
pthread_spinlock_t *spinlock
)
{
a000980c: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
CORE_spinlock_Status status;
if ( !spinlock )
a0009810: 0a00000e beq a0009850 <pthread_spin_trylock+0x48> <== NOT EXECUTED a0009814: e5931000 ldr r1, [r3] <== NOT EXECUTED a0009818: e59f0038 ldr r0, [pc, #56] ; a0009858 <pthread_spin_trylock+0x50><== NOT EXECUTED a000981c: e1a0200d mov r2, sp <== NOT EXECUTED a0009820: eb0007c6 bl a000b740 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
a0009824: e59d1000 ldr r1, [sp] <== NOT EXECUTED a0009828: e3510000 cmp r1, #0 <== NOT EXECUTED a000982c: 1a000007 bne a0009850 <pthread_spin_trylock+0x48> <== NOT EXECUTED
case OBJECTS_LOCAL:
status = _CORE_spinlock_Wait( &the_spinlock->Spinlock, false, 0 );
a0009830: e1a02001 mov r2, r1 <== NOT EXECUTED a0009834: e2800010 add r0, r0, #16 <== NOT EXECUTED a0009838: eb000516 bl a000ac98 <_CORE_spinlock_Wait> <== NOT EXECUTED a000983c: e1a04000 mov r4, r0 <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009840: eb000ac5 bl a000c35c <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_Spinlock_Translate_core_spinlock_return_code( status );
a0009844: e1a00004 mov r0, r4 <== NOT EXECUTED a0009848: ebffffea bl a00097f8 <_POSIX_Spinlock_Translate_core_spinlock_return_code><== NOT EXECUTED a000984c: ea000000 b a0009854 <pthread_spin_trylock+0x4c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a0009850: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a0009854: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000985c <pthread_spin_unlock>:
{
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
CORE_spinlock_Status status;
if ( !spinlock )
a000985c: e2503000 subs r3, r0, #0 <== NOT EXECUTED
*/
int pthread_spin_unlock(
pthread_spinlock_t *spinlock
)
{
a0009860: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
POSIX_Spinlock_Control *the_spinlock = NULL;
Objects_Locations location;
CORE_spinlock_Status status;
if ( !spinlock )
a0009864: 0a00000d beq a00098a0 <pthread_spin_unlock+0x44> <== NOT EXECUTED a0009868: e5931000 ldr r1, [r3] <== NOT EXECUTED a000986c: e59f0034 ldr r0, [pc, #52] ; a00098a8 <pthread_spin_unlock+0x4c><== NOT EXECUTED a0009870: e1a0200d mov r2, sp <== NOT EXECUTED a0009874: eb0007b1 bl a000b740 <_Objects_Get> <== NOT EXECUTED
return EINVAL;
the_spinlock = _POSIX_Spinlock_Get( spinlock, &location );
switch ( location ) {
a0009878: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000987c: e3530000 cmp r3, #0 <== NOT EXECUTED a0009880: 1a000006 bne a00098a0 <pthread_spin_unlock+0x44> <== NOT EXECUTED
case OBJECTS_LOCAL:
status = _CORE_spinlock_Release( &the_spinlock->Spinlock );
a0009884: e2800010 add r0, r0, #16 <== NOT EXECUTED a0009888: eb0004e6 bl a000ac28 <_CORE_spinlock_Release> <== NOT EXECUTED a000988c: e1a04000 mov r4, r0 <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009890: eb000ab1 bl a000c35c <_Thread_Enable_dispatch> <== NOT EXECUTED
return _POSIX_Spinlock_Translate_core_spinlock_return_code( status );
a0009894: e1a00004 mov r0, r4 <== NOT EXECUTED a0009898: ebffffd6 bl a00097f8 <_POSIX_Spinlock_Translate_core_spinlock_return_code><== NOT EXECUTED a000989c: ea000000 b a00098a4 <pthread_spin_unlock+0x48> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return EINVAL;
a00098a0: e3a00016 mov r0, #22 <== NOT EXECUTED
}
a00098a4: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a00099c4 <pthread_testcancel>:
* Don't even think about deleting a resource from an ISR.
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
a00099c4: e59f3060 ldr r3, [pc, #96] ; a0009a2c <pthread_testcancel+0x68><== NOT EXECUTED
*
* 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183
*/
void pthread_testcancel( void )
{
a00099c8: e92d4010 push {r4, lr} <== NOT EXECUTED
* Don't even think about deleting a resource from an ISR.
* Besides this request is supposed to be for _Thread_Executing
* and the ISR context is not a thread.
*/
if ( _ISR_Is_in_progress() )
a00099cc: e5934000 ldr r4, [r3] <== NOT EXECUTED a00099d0: e3540000 cmp r4, #0 <== NOT EXECUTED a00099d4: 1a000013 bne a0009a28 <pthread_testcancel+0x64> <== NOT EXECUTED a00099d8: e59f2050 ldr r2, [pc, #80] ; a0009a30 <pthread_testcancel+0x6c><== NOT EXECUTED
return;
thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a00099dc: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a00099e0: e5921000 ldr r1, [r2] <== NOT EXECUTED a00099e4: e59330fc ldr r3, [r3, #252] ; 0xfc <== NOT EXECUTED a00099e8: e2811001 add r1, r1, #1 <== NOT EXECUTED a00099ec: e5821000 str r1, [r2] <== NOT EXECUTED
_Thread_Disable_dispatch();
if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
a00099f0: e59320d8 ldr r2, [r3, #216] ; 0xd8 <== NOT EXECUTED a00099f4: e3520000 cmp r2, #0 <== NOT EXECUTED a00099f8: 1a000002 bne a0009a08 <pthread_testcancel+0x44> <== NOT EXECUTED
/* Setting Cancelability State, P1003.1c/Draft 10, p. 183 */
int _EXFUN(pthread_setcancelstate, (int __state, int *__oldstate));
int _EXFUN(pthread_setcanceltype, (int __type, int *__oldtype));
void _EXFUN(pthread_testcancel, (void));
a00099fc: e59340e0 ldr r4, [r3, #224] ; 0xe0 <== NOT EXECUTED a0009a00: e2544000 subs r4, r4, #0 <== NOT EXECUTED a0009a04: 13a04001 movne r4, #1 <== NOT EXECUTED
thread_support->cancelation_requested )
cancel = true;
_Thread_Enable_dispatch();
a0009a08: eb000a3d bl a000c304 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( cancel )
a0009a0c: e3540000 cmp r4, #0 <== NOT EXECUTED a0009a10: 0a000004 beq a0009a28 <pthread_testcancel+0x64> <== NOT EXECUTED
_POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );
a0009a14: e59f3010 ldr r3, [pc, #16] ; a0009a2c <pthread_testcancel+0x68><== NOT EXECUTED a0009a18: e3e01000 mvn r1, #0 <== NOT EXECUTED a0009a1c: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED
}
a0009a20: e8bd4010 pop {r4, lr} <== NOT EXECUTED
thread_support->cancelation_requested )
cancel = true;
_Thread_Enable_dispatch();
if ( cancel )
_POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );
a0009a24: ea00169c b a000f49c <_POSIX_Thread_Exit> <== NOT EXECUTED
a0009a28: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0016110 <read>:
ssize_t read(
int fd,
void *buffer,
size_t count
)
{
a0016110: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a0016114: e59f4098 ldr r4, [pc, #152] ; a00161b4 <read+0xa4> <== NOT EXECUTED a0016118: e5944000 ldr r4, [r4] <== NOT EXECUTED a001611c: e1500004 cmp r0, r4 <== NOT EXECUTED a0016120: 2a000006 bcs a0016140 <read+0x30> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a0016124: e59f408c ldr r4, [pc, #140] ; a00161b8 <read+0xa8> <== NOT EXECUTED a0016128: e3a05038 mov r5, #56 ; 0x38 <== NOT EXECUTED a001612c: e5944000 ldr r4, [r4] <== NOT EXECUTED a0016130: e0244095 mla r4, r5, r0, r4 <== NOT EXECUTED
rtems_libio_check_is_open( iop );
a0016134: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED a0016138: e3100c01 tst r0, #256 ; 0x100 <== NOT EXECUTED a001613c: 1a000002 bne a001614c <read+0x3c> <== NOT EXECUTED a0016140: ebffebc9 bl a001106c <__errno> <== NOT EXECUTED a0016144: e3a03009 mov r3, #9 <== NOT EXECUTED a0016148: ea000007 b a001616c <read+0x5c> <== NOT EXECUTED
rtems_libio_check_buffer( buffer );
a001614c: e3510000 cmp r1, #0 <== NOT EXECUTED a0016150: 0a000003 beq a0016164 <read+0x54> <== NOT EXECUTED
rtems_libio_check_count( count );
a0016154: e3520000 cmp r2, #0 <== NOT EXECUTED a0016158: 0a000013 beq a00161ac <read+0x9c> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
a001615c: e3100002 tst r0, #2 <== NOT EXECUTED
a0016160: 1a000004 bne a0016178 <read+0x68> <== NOT EXECUTED
a0016164: ebffebc0 bl a001106c <__errno> <== NOT EXECUTED
a0016168: e3a03016 mov r3, #22 <== NOT EXECUTED
a001616c: e5803000 str r3, [r0] <== NOT EXECUTED
a0016170: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0016174: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
/*
* Now process the read().
*/
rc = (*iop->pathinfo.handlers->read_h)( iop, buffer, count );
a0016178: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a001617c: e1a00004 mov r0, r4 <== NOT EXECUTED a0016180: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a0016184: e12fff33 blx r3 <== NOT EXECUTED
if ( rc > 0 )
a0016188: e3500000 cmp r0, #0 <== NOT EXECUTED a001618c: da000007 ble a00161b0 <read+0xa0> <== NOT EXECUTED
iop->offset += rc;
a0016190: e284300c add r3, r4, #12 <== NOT EXECUTED
a0016194: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a0016198: e0922000 adds r2, r2, r0 <== NOT EXECUTED
a001619c: e0a33fc0 adc r3, r3, r0, asr #31 <== NOT EXECUTED
a00161a0: e584200c str r2, [r4, #12] <== NOT EXECUTED
a00161a4: e5843010 str r3, [r4, #16] <== NOT EXECUTED
a00161a8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
rtems_libio_check_count( count );
a00161ac: e1a00002 mov r0, r2 <== NOT EXECUTED
if ( rc > 0 )
iop->offset += rc;
return rc;
}
a00161b0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a00095ec <readlink>:
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
a00095ec: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
a00095f0: e2516000 subs r6, r1, #0 <== NOT EXECUTED
ssize_t readlink(
const char *pathname,
char *buf,
size_t bufsize
)
{
a00095f4: e24dd018 sub sp, sp, #24 <== NOT EXECUTED a00095f8: e1a07000 mov r7, r0 <== NOT EXECUTED a00095fc: e1a05002 mov r5, r2 <== NOT EXECUTED
rtems_filesystem_location_info_t loc;
int result;
if (!buf)
a0009600: 1a000002 bne a0009610 <readlink+0x24> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a0009604: eb002a7a bl a0013ff4 <__errno> <== NOT EXECUTED a0009608: e3a0300e mov r3, #14 <== NOT EXECUTED a000960c: ea000013 b a0009660 <readlink+0x74> <== NOT EXECUTED
result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
a0009610: eb0031ed bl a0015dcc <strlen> <== NOT EXECUTED a0009614: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0009618: e1a01000 mov r1, r0 <== NOT EXECUTED a000961c: e3a02000 mov r2, #0 <== NOT EXECUTED a0009620: e1a00007 mov r0, r7 <== NOT EXECUTED a0009624: e1a03004 mov r3, r4 <== NOT EXECUTED a0009628: e58d2000 str r2, [sp] <== NOT EXECUTED a000962c: ebfffba0 bl a00084b4 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
0, &loc, false );
if ( result != 0 )
a0009630: e3500000 cmp r0, #0 <== NOT EXECUTED a0009634: 1a000016 bne a0009694 <readlink+0xa8> <== NOT EXECUTED
return -1;
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){
a0009638: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000963c: e1a00004 mov r0, r4 <== NOT EXECUTED a0009640: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a0009644: e12fff33 blx r3 <== NOT EXECUTED a0009648: e3500004 cmp r0, #4 <== NOT EXECUTED a000964c: 0a000005 beq a0009668 <readlink+0x7c> <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a0009650: e1a00004 mov r0, r4 <== NOT EXECUTED a0009654: ebfffbc6 bl a0008574 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0009658: eb002a65 bl a0013ff4 <__errno> <== NOT EXECUTED a000965c: e3a03016 mov r3, #22 <== NOT EXECUTED a0009660: e5803000 str r3, [r0] <== NOT EXECUTED a0009664: ea00000a b a0009694 <readlink+0xa8> <== NOT EXECUTED
}
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
a0009668: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000966c: e1a02005 mov r2, r5 <== NOT EXECUTED a0009670: e1a01006 mov r1, r6 <== NOT EXECUTED a0009674: e593303c ldr r3, [r3, #60] ; 0x3c <== NOT EXECUTED a0009678: e1a00004 mov r0, r4 <== NOT EXECUTED a000967c: e12fff33 blx r3 <== NOT EXECUTED a0009680: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a0009684: e1a00004 mov r0, r4 <== NOT EXECUTED a0009688: ebfffbb9 bl a0008574 <rtems_filesystem_freenode> <== NOT EXECUTED
return result;
a000968c: e1a00005 mov r0, r5 <== NOT EXECUTED a0009690: ea000000 b a0009698 <readlink+0xac> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ),
0, &loc, false );
if ( result != 0 )
return -1;
a0009694: e3e00000 mvn r0, #0 <== NOT EXECUTED
result = (*loc.ops->readlink_h)( &loc, buf, bufsize );
rtems_filesystem_freenode( &loc );
return result;
}
a0009698: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a000969c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0008044 <readv>:
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
a0008044: e59f3134 ldr r3, [pc, #308] ; a0008180 <readv+0x13c> <== NOT EXECUTED
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
a0008048: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
a000804c: e5933000 ldr r3, [r3] <== NOT EXECUTED
ssize_t readv(
int fd,
const struct iovec *iov,
int iovcnt
)
{
a0008050: e1a08002 mov r8, r2 <== NOT EXECUTED
int v;
int bytes;
rtems_libio_t *iop;
bool all_zeros;
rtems_libio_check_fd( fd );
a0008054: e1500003 cmp r0, r3 <== NOT EXECUTED a0008058: 2a000006 bcs a0008078 <readv+0x34> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a000805c: e59f3120 ldr r3, [pc, #288] ; a0008184 <readv+0x140> <== NOT EXECUTED a0008060: e3a06038 mov r6, #56 ; 0x38 <== NOT EXECUTED a0008064: e5933000 ldr r3, [r3] <== NOT EXECUTED a0008068: e0263690 mla r6, r0, r6, r3 <== NOT EXECUTED
rtems_libio_check_is_open( iop );
a000806c: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED a0008070: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0008074: 1a000002 bne a0008084 <readv+0x40> <== NOT EXECUTED a0008078: eb0027df bl a0011ffc <__errno> <== NOT EXECUTED a000807c: e3a03009 mov r3, #9 <== NOT EXECUTED a0008080: ea000017 b a00080e4 <readv+0xa0> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ );
a0008084: e3130002 tst r3, #2 <== NOT EXECUTED a0008088: 0a000013 beq a00080dc <readv+0x98> <== NOT EXECUTED
/*
* Argument validation on IO vector
*/
if ( !iov )
a000808c: e3510000 cmp r1, #0 <== NOT EXECUTED a0008090: 0a000011 beq a00080dc <readv+0x98> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
a0008094: e3520000 cmp r2, #0 <== NOT EXECUTED a0008098: da00000f ble a00080dc <readv+0x98> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
a000809c: e3520b01 cmp r2, #1024 ; 0x400 <== NOT EXECUTED a00080a0: ca00000d bgt a00080dc <readv+0x98> <== NOT EXECUTED a00080a4: e3a03000 mov r3, #0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a00080a8: e1a05001 mov r5, r1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
a00080ac: e1a02001 mov r2, r1 <== NOT EXECUTED a00080b0: e3a07001 mov r7, #1 <== NOT EXECUTED a00080b4: e1a01003 mov r1, r3 <== NOT EXECUTED a00080b8: ea000000 b a00080c0 <readv+0x7c> <== NOT EXECUTED
if ( iov[v].iov_base == 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
old = total;
total += iov[v].iov_len;
a00080bc: e1a0100c mov r1, ip <== NOT EXECUTED
/*
* iov[v].iov_len cannot be less than 0 because size_t is unsigned.
* So we only check for zero.
*/
if ( iov[v].iov_base == 0 )
a00080c0: e5920000 ldr r0, [r2] <== NOT EXECUTED a00080c4: e3500000 cmp r0, #0 <== NOT EXECUTED a00080c8: 0a000003 beq a00080dc <readv+0x98> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
/* check for wrap */
old = total;
total += iov[v].iov_len;
a00080cc: e5920004 ldr r0, [r2, #4] <== NOT EXECUTED a00080d0: e081c000 add ip, r1, r0 <== NOT EXECUTED
if ( total < old )
a00080d4: e15c0001 cmp ip, r1 <== NOT EXECUTED a00080d8: aa000003 bge a00080ec <readv+0xa8> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a00080dc: eb0027c6 bl a0011ffc <__errno> <== NOT EXECUTED a00080e0: e3a03016 mov r3, #22 <== NOT EXECUTED a00080e4: e5803000 str r3, [r0] <== NOT EXECUTED a00080e8: ea000021 b a0008174 <readv+0x130> <== NOT EXECUTED
if ( iov[v].iov_len )
all_zeros = false;
a00080ec: e3500000 cmp r0, #0 <== NOT EXECUTED
* are obvious errors in the iovec. So this extra loop ensures
* that we do not do anything if there is an argument error.
*/
all_zeros = true;
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
a00080f0: e2833001 add r3, r3, #1 <== NOT EXECUTED
total += iov[v].iov_len;
if ( total < old )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
all_zeros = false;
a00080f4: 13a07000 movne r7, #0 <== NOT EXECUTED
* are obvious errors in the iovec. So this extra loop ensures
* that we do not do anything if there is an argument error.
*/
all_zeros = true;
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
a00080f8: e1530008 cmp r3, r8 <== NOT EXECUTED a00080fc: e2822008 add r2, r2, #8 <== NOT EXECUTED a0008100: baffffed blt a00080bc <readv+0x78> <== NOT EXECUTED
/*
* A readv with all zeros logically has no effect. Even though
* OpenGroup didn't address this case as they did with writev(),
* we will handle it the same way for symmetry.
*/
if ( all_zeros == true ) {
a0008104: e3570000 cmp r7, #0 <== NOT EXECUTED
return 0;
a0008108: 13a04000 movne r4, #0 <== NOT EXECUTED
/*
* A readv with all zeros logically has no effect. Even though
* OpenGroup didn't address this case as they did with writev(),
* we will handle it the same way for symmetry.
*/
if ( all_zeros == true ) {
a000810c: 1a000019 bne a0008178 <readv+0x134> <== NOT EXECUTED a0008110: e1a04007 mov r4, r7 <== NOT EXECUTED
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
bytes = (*iop->pathinfo.handlers->read_h)(
a0008114: e5963020 ldr r3, [r6, #32] <== NOT EXECUTED a0008118: e1a00006 mov r0, r6 <== NOT EXECUTED a000811c: e5951000 ldr r1, [r5] <== NOT EXECUTED a0008120: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a0008124: e5952004 ldr r2, [r5, #4] <== NOT EXECUTED a0008128: e12fff33 blx r3 <== NOT EXECUTED
iop,
iov[v].iov_base,
iov[v].iov_len
);
if ( bytes < 0 )
a000812c: e3500000 cmp r0, #0 <== NOT EXECUTED a0008130: ba00000f blt a0008174 <readv+0x130> <== NOT EXECUTED
return -1;
if ( bytes > 0 ) {
a0008134: 0a000006 beq a0008154 <readv+0x110> <== NOT EXECUTED
iop->offset += bytes;
a0008138: e286300c add r3, r6, #12 <== NOT EXECUTED
a000813c: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a0008140: e0922000 adds r2, r2, r0 <== NOT EXECUTED
a0008144: e0a33fc0 adc r3, r3, r0, asr #31 <== NOT EXECUTED
a0008148: e586200c str r2, [r6, #12] <== NOT EXECUTED
a000814c: e5863010 str r3, [r6, #16] <== NOT EXECUTED
total += bytes;
a0008150: e0844000 add r4, r4, r0 <== NOT EXECUTED
}
if (bytes != iov[ v ].iov_len)
a0008154: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED a0008158: e1500003 cmp r0, r3 <== NOT EXECUTED a000815c: 1a000005 bne a0008178 <readv+0x134> <== NOT EXECUTED
}
/*
* Now process the readv().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
a0008160: e2877001 add r7, r7, #1 <== NOT EXECUTED a0008164: e1570008 cmp r7, r8 <== NOT EXECUTED a0008168: e2855008 add r5, r5, #8 <== NOT EXECUTED a000816c: baffffe8 blt a0008114 <readv+0xd0> <== NOT EXECUTED a0008170: ea000000 b a0008178 <readv+0x134> <== NOT EXECUTED
iov[v].iov_base,
iov[v].iov_len
);
if ( bytes < 0 )
return -1;
a0008174: e3e04000 mvn r4, #0 <== NOT EXECUTED
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
a0008178: e1a00004 mov r0, r4 <== NOT EXECUTED
a000817c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0016224 <realloc>:
)
{
uintptr_t old_size;
char *new_area;
MSBUMP(realloc_calls, 1);
a0016224: e59f310c ldr r3, [pc, #268] ; a0016338 <realloc+0x114> <== NOT EXECUTED
void *realloc(
void *ptr,
size_t size
)
{
a0016228: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
uintptr_t old_size;
char *new_area;
MSBUMP(realloc_calls, 1);
a001622c: e5932010 ldr r2, [r3, #16] <== NOT EXECUTED
void *realloc(
void *ptr,
size_t size
)
{
a0016230: e1a04000 mov r4, r0 <== NOT EXECUTED a0016234: e1a05001 mov r5, r1 <== NOT EXECUTED
uintptr_t old_size;
char *new_area;
MSBUMP(realloc_calls, 1);
a0016238: e2822001 add r2, r2, #1 <== NOT EXECUTED a001623c: e5832010 str r2, [r3, #16] <== NOT EXECUTED
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
a0016240: e59f30f4 ldr r3, [pc, #244] ; a001633c <realloc+0x118> <== NOT EXECUTED a0016244: e5933000 ldr r3, [r3] <== NOT EXECUTED a0016248: e3530003 cmp r3, #3 <== NOT EXECUTED a001624c: 1a000009 bne a0016278 <realloc+0x54> <== NOT EXECUTED
if (_Thread_Dispatch_disable_level > 0)
a0016250: e59f30e8 ldr r3, [pc, #232] ; a0016340 <realloc+0x11c> <== NOT EXECUTED a0016254: e5933000 ldr r3, [r3] <== NOT EXECUTED a0016258: e3530000 cmp r3, #0 <== NOT EXECUTED
return (void *) 0;
a001625c: 13a04000 movne r4, #0 <== NOT EXECUTED
/*
* Do not attempt to allocate memory if in a critical section or ISR.
*/
if (_System_state_Is_up(_System_state_Get())) {
if (_Thread_Dispatch_disable_level > 0)
a0016260: 1a000032 bne a0016330 <realloc+0x10c> <== NOT EXECUTED
return (void *) 0;
if (_ISR_Nest_level > 0)
a0016264: e59f20d8 ldr r2, [pc, #216] ; a0016344 <realloc+0x120> <== NOT EXECUTED a0016268: e5922000 ldr r2, [r2] <== NOT EXECUTED a001626c: e3520000 cmp r2, #0 <== NOT EXECUTED
return (void *) 0;
a0016270: 11a04003 movne r4, r3 <== NOT EXECUTED
if (_System_state_Is_up(_System_state_Get())) {
if (_Thread_Dispatch_disable_level > 0)
return (void *) 0;
if (_ISR_Nest_level > 0)
a0016274: 1a00002d bne a0016330 <realloc+0x10c> <== NOT EXECUTED
}
/*
* Continue with realloc().
*/
if ( !ptr )
a0016278: e3540000 cmp r4, #0 <== NOT EXECUTED a001627c: 1a000003 bne a0016290 <realloc+0x6c> <== NOT EXECUTED
return malloc( size );
a0016280: e1a00005 mov r0, r5 <== NOT EXECUTED a0016284: ebffc097 bl a00064e8 <malloc> <== NOT EXECUTED a0016288: e1a04000 mov r4, r0 <== NOT EXECUTED a001628c: ea000027 b a0016330 <realloc+0x10c> <== NOT EXECUTED
if ( !size ) {
a0016290: e3550000 cmp r5, #0 <== NOT EXECUTED a0016294: 1a000003 bne a00162a8 <realloc+0x84> <== NOT EXECUTED
free( ptr );
a0016298: e1a00004 mov r0, r4 <== NOT EXECUTED a001629c: ebffbfb3 bl a0006170 <free> <== NOT EXECUTED
return (void *) 0;
a00162a0: e1a04005 mov r4, r5 <== NOT EXECUTED a00162a4: ea000021 b a0016330 <realloc+0x10c> <== NOT EXECUTED
}
if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
a00162a8: e59f6098 ldr r6, [pc, #152] ; a0016348 <realloc+0x124> <== NOT EXECUTED a00162ac: e1a01004 mov r1, r4 <== NOT EXECUTED a00162b0: e1a0200d mov r2, sp <== NOT EXECUTED a00162b4: e5960000 ldr r0, [r6] <== NOT EXECUTED a00162b8: eb00004e bl a00163f8 <_Protected_heap_Get_block_size> <== NOT EXECUTED a00162bc: e2507000 subs r7, r0, #0 <== NOT EXECUTED a00162c0: 1a000004 bne a00162d8 <realloc+0xb4> <== NOT EXECUTED
errno = EINVAL;
a00162c4: ebffeb68 bl a001106c <__errno> <== NOT EXECUTED a00162c8: e3a03016 mov r3, #22 <== NOT EXECUTED a00162cc: e5803000 str r3, [r0] <== NOT EXECUTED
return (void *) 0;
a00162d0: e1a04007 mov r4, r7 <== NOT EXECUTED a00162d4: ea000015 b a0016330 <realloc+0x10c> <== NOT EXECUTED
}
/*
* Now resize it.
*/
if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
a00162d8: e5960000 ldr r0, [r6] <== NOT EXECUTED a00162dc: e1a01004 mov r1, r4 <== NOT EXECUTED a00162e0: e1a02005 mov r2, r5 <== NOT EXECUTED a00162e4: eb000054 bl a001643c <_Protected_heap_Resize_block> <== NOT EXECUTED a00162e8: e3500000 cmp r0, #0 <== NOT EXECUTED a00162ec: 1a00000f bne a0016330 <realloc+0x10c> <== NOT EXECUTED
* There used to be a free on this error case but it is wrong to
* free the memory per OpenGroup Single UNIX Specification V2
* and the C Standard.
*/
new_area = malloc( size );
a00162f0: e1a00005 mov r0, r5 <== NOT EXECUTED a00162f4: ebffc07b bl a00064e8 <malloc> <== NOT EXECUTED
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
a00162f8: e59f3038 ldr r3, [pc, #56] ; a0016338 <realloc+0x114> <== NOT EXECUTED
if ( !new_area ) {
a00162fc: e2506000 subs r6, r0, #0 <== NOT EXECUTED
* and the C Standard.
*/
new_area = malloc( size );
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
a0016300: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a0016304: e2422001 sub r2, r2, #1 <== NOT EXECUTED a0016308: e5832004 str r2, [r3, #4] <== NOT EXECUTED
if ( !new_area ) {
a001630c: 0a000006 beq a001632c <realloc+0x108> <== NOT EXECUTED
return (void *) 0;
}
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
a0016310: e59d2000 ldr r2, [sp] <== NOT EXECUTED a0016314: e1a01004 mov r1, r4 <== NOT EXECUTED a0016318: e1550002 cmp r5, r2 <== NOT EXECUTED a001631c: 31a02005 movcc r2, r5 <== NOT EXECUTED a0016320: ebffed7f bl a0011924 <memcpy> <== NOT EXECUTED
free( ptr );
a0016324: e1a00004 mov r0, r4 <== NOT EXECUTED a0016328: ebffbf90 bl a0006170 <free> <== NOT EXECUTED
new_area = malloc( size );
MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */
if ( !new_area ) {
return (void *) 0;
a001632c: e1a04006 mov r4, r6 <== NOT EXECUTED
memcpy( new_area, ptr, (size < old_size) ? size : old_size );
free( ptr );
return new_area;
}
a0016330: e1a00004 mov r0, r4 <== NOT EXECUTED
a0016334: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a00073d8 <rmdir>:
#include <rtems/seterr.h>
int rmdir(
const char *pathname
)
{
a00073d8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a00073dc: e24dd030 sub sp, sp, #48 ; 0x30 <== NOT EXECUTED
a00073e0: e1a06000 mov r6, r0 <== NOT EXECUTED
/*
* Get the parent node of the node we wish to remove. Find the parent path.
*/
parentpathlen = rtems_filesystem_dirname ( pathname );
a00073e4: ebfffc5a bl a0006554 <rtems_filesystem_dirname> <== NOT EXECUTED
if ( parentpathlen == 0 )
a00073e8: e2504000 subs r4, r0, #0 <== NOT EXECUTED a00073ec: e28d3018 add r3, sp, #24 <== NOT EXECUTED a00073f0: 1a000005 bne a000740c <rmdir+0x34> <== NOT EXECUTED
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
a00073f4: e1a00006 mov r0, r6 <== NOT EXECUTED a00073f8: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED a00073fc: e1a02003 mov r2, r3 <== NOT EXECUTED a0007400: eb000049 bl a000752c <rtems_filesystem_get_start_loc> <== NOT EXECUTED
const char *name; rtems_filesystem_location_info_t parentloc; rtems_filesystem_location_info_t loc; int i; int result; bool free_parentloc = false;
a0007404: e1a05004 mov r5, r4 <== NOT EXECUTED a0007408: ea000008 b a0007430 <rmdir+0x58> <== NOT EXECUTED
parentpathlen = rtems_filesystem_dirname ( pathname );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( pathname, &i, &parentloc );
else {
result = rtems_filesystem_evaluate_path(pathname, parentpathlen,
a000740c: e3a02000 mov r2, #0 <== NOT EXECUTED a0007410: e58d2000 str r2, [sp] <== NOT EXECUTED a0007414: e1a00006 mov r0, r6 <== NOT EXECUTED a0007418: e1a01004 mov r1, r4 <== NOT EXECUTED a000741c: e2822002 add r2, r2, #2 <== NOT EXECUTED a0007420: ebfffc38 bl a0006508 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
a0007424: e3500000 cmp r0, #0 <== NOT EXECUTED a0007428: 1a00003b bne a000751c <rmdir+0x144> <== NOT EXECUTED
return -1;
free_parentloc = true;
a000742c: e3a05001 mov r5, #1 <== NOT EXECUTED
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
a0007430: e28dc004 add ip, sp, #4 <== NOT EXECUTED
a0007434: e28de018 add lr, sp, #24 <== NOT EXECUTED
a0007438: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a000743c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0007440: e59e3000 ldr r3, [lr] <== NOT EXECUTED
name = pathname + parentpathlen;
a0007444: e0864004 add r4, r6, r4 <== NOT EXECUTED
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
a0007448: e1a00004 mov r0, r4 <== NOT EXECUTED
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
a000744c: e58c3000 str r3, [ip] <== NOT EXECUTED
name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) );
a0007450: eb002cc1 bl a001275c <strlen> <== NOT EXECUTED a0007454: e1a01000 mov r1, r0 <== NOT EXECUTED a0007458: e1a00004 mov r0, r4 <== NOT EXECUTED a000745c: ebfffc4a bl a000658c <rtems_filesystem_prefix_separators> <== NOT EXECUTED a0007460: e0846000 add r6, r4, r0 <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
a0007464: e1a00006 mov r0, r6 <== NOT EXECUTED a0007468: eb002cbb bl a001275c <strlen> <== NOT EXECUTED a000746c: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0007470: e1a01000 mov r1, r0 <== NOT EXECUTED a0007474: e3a02000 mov r2, #0 <== NOT EXECUTED a0007478: e1a00006 mov r0, r6 <== NOT EXECUTED a000747c: e1a03004 mov r3, r4 <== NOT EXECUTED a0007480: e58d2000 str r2, [sp] <== NOT EXECUTED a0007484: ebfffc03 bl a0006498 <rtems_filesystem_evaluate_relative_path><== NOT EXECUTED
0, &loc, false );
if ( result != 0 ) {
a0007488: e3500000 cmp r0, #0 <== NOT EXECUTED a000748c: 0a000004 beq a00074a4 <rmdir+0xcc> <== NOT EXECUTED
if ( free_parentloc )
a0007490: e3550000 cmp r5, #0 <== NOT EXECUTED a0007494: 0a000020 beq a000751c <rmdir+0x144> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
a0007498: e28d0018 add r0, sp, #24 <== NOT EXECUTED a000749c: ebfffc49 bl a00065c8 <rtems_filesystem_freenode> <== NOT EXECUTED a00074a0: ea00001d b a000751c <rmdir+0x144> <== NOT EXECUTED
}
/*
* Verify you can remove this node as a directory.
*/
if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) {
a00074a4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a00074a8: e1a00004 mov r0, r4 <== NOT EXECUTED a00074ac: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a00074b0: e12fff33 blx r3 <== NOT EXECUTED a00074b4: e3500001 cmp r0, #1 <== NOT EXECUTED a00074b8: 0a000009 beq a00074e4 <rmdir+0x10c> <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a00074bc: e1a00004 mov r0, r4 <== NOT EXECUTED a00074c0: ebfffc40 bl a00065c8 <rtems_filesystem_freenode> <== NOT EXECUTED
if ( free_parentloc )
a00074c4: e3550000 cmp r5, #0 <== NOT EXECUTED a00074c8: 0a000001 beq a00074d4 <rmdir+0xfc> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
a00074cc: e28d0018 add r0, sp, #24 <== NOT EXECUTED a00074d0: ebfffc3c bl a00065c8 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOTDIR );
a00074d4: eb0028e1 bl a0011860 <__errno> <== NOT EXECUTED a00074d8: e3a03014 mov r3, #20 <== NOT EXECUTED a00074dc: e5803000 str r3, [r0] <== NOT EXECUTED a00074e0: ea00000d b a000751c <rmdir+0x144> <== NOT EXECUTED
/*
* Use the filesystems rmnod to remove the node.
*/
result = (*loc.handlers->rmnod_h)( &parentloc, &loc );
a00074e4: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a00074e8: e28d6018 add r6, sp, #24 <== NOT EXECUTED a00074ec: e1a01004 mov r1, r4 <== NOT EXECUTED a00074f0: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a00074f4: e1a00006 mov r0, r6 <== NOT EXECUTED a00074f8: e12fff33 blx r3 <== NOT EXECUTED a00074fc: e1a07000 mov r7, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a0007500: e1a00004 mov r0, r4 <== NOT EXECUTED a0007504: ebfffc2f bl a00065c8 <rtems_filesystem_freenode> <== NOT EXECUTED
if ( free_parentloc )
a0007508: e3550000 cmp r5, #0 <== NOT EXECUTED a000750c: 0a000003 beq a0007520 <rmdir+0x148> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
a0007510: e1a00006 mov r0, r6 <== NOT EXECUTED a0007514: ebfffc2b bl a00065c8 <rtems_filesystem_freenode> <== NOT EXECUTED a0007518: ea000000 b a0007520 <rmdir+0x148> <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &loc, false );
if ( result != 0 ) {
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
return -1;
a000751c: e3e07000 mvn r7, #0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
return result;
}
a0007520: e1a00007 mov r0, r7 <== NOT EXECUTED
a0007524: e28dd030 add sp, sp, #48 ; 0x30 <== NOT EXECUTED
a0007528: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000a3e0 <rtems_aio_enqueue>:
* errno - otherwise
*/
int
rtems_aio_enqueue (rtems_aio_request *req)
{
a000a3e0: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED
struct sched_param param;
/* The queue should be initialized */
AIO_assert (aio_request_queue.initialized == AIO_QUEUE_INITIALIZED);
result = pthread_mutex_lock (&aio_request_queue.mutex);
a000a3e4: e59f41f0 ldr r4, [pc, #496] ; a000a5dc <rtems_aio_enqueue+0x1fc><== NOT EXECUTED
* errno - otherwise
*/
int
rtems_aio_enqueue (rtems_aio_request *req)
{
a000a3e8: e24dd024 sub sp, sp, #36 ; 0x24 <== NOT EXECUTED a000a3ec: e1a06000 mov r6, r0 <== NOT EXECUTED
struct sched_param param;
/* The queue should be initialized */
AIO_assert (aio_request_queue.initialized == AIO_QUEUE_INITIALIZED);
result = pthread_mutex_lock (&aio_request_queue.mutex);
a000a3f0: e1a00004 mov r0, r4 <== NOT EXECUTED a000a3f4: eb000256 bl a000ad54 <pthread_mutex_lock> <== NOT EXECUTED
if (result != 0) {
a000a3f8: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000a3fc: 0a000002 beq a000a40c <rtems_aio_enqueue+0x2c> <== NOT EXECUTED
free (req);
a000a400: e1a00006 mov r0, r6 <== NOT EXECUTED a000a404: ebfff25d bl a0006d80 <free> <== NOT EXECUTED
return result;
a000a408: ea000070 b a000a5d0 <rtems_aio_enqueue+0x1f0> <== NOT EXECUTED
}
/* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
we can use aio_reqprio to lower the priority of the request */
pthread_getschedparam (pthread_self(), &policy, ¶m);
a000a40c: eb00045d bl a000b588 <pthread_self> <== NOT EXECUTED a000a410: e28d101c add r1, sp, #28 <== NOT EXECUTED a000a414: e1a0200d mov r2, sp <== NOT EXECUTED a000a418: eb000363 bl a000b1ac <pthread_getschedparam> <== NOT EXECUTED
req->caller_thread = pthread_self ();
a000a41c: eb000459 bl a000b588 <pthread_self> <== NOT EXECUTED
req->priority = param.sched_priority - req->aiocbp->aio_reqprio;
a000a420: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED a000a424: e59d1000 ldr r1, [sp] <== NOT EXECUTED
/* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
we can use aio_reqprio to lower the priority of the request */
pthread_getschedparam (pthread_self(), &policy, ¶m);
req->caller_thread = pthread_self ();
a000a428: e5860010 str r0, [r6, #16] <== NOT EXECUTED
req->priority = param.sched_priority - req->aiocbp->aio_reqprio;
a000a42c: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED a000a430: e0622001 rsb r2, r2, r1 <== NOT EXECUTED a000a434: e586200c str r2, [r6, #12] <== NOT EXECUTED
req->policy = policy;
a000a438: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED a000a43c: e5862008 str r2, [r6, #8] <== NOT EXECUTED
req->aiocbp->error_code = EINPROGRESS;
a000a440: e3a02077 mov r2, #119 ; 0x77 <== NOT EXECUTED a000a444: e5832030 str r2, [r3, #48] ; 0x30 <== NOT EXECUTED
req->aiocbp->return_value = 0;
if ((aio_request_queue.idle_threads == 0) &&
a000a448: e5942068 ldr r2, [r4, #104] ; 0x68 <== NOT EXECUTED
req->caller_thread = pthread_self ();
req->priority = param.sched_priority - req->aiocbp->aio_reqprio;
req->policy = policy;
req->aiocbp->error_code = EINPROGRESS;
req->aiocbp->return_value = 0;
a000a44c: e5835034 str r5, [r3, #52] ; 0x34 <== NOT EXECUTED
if ((aio_request_queue.idle_threads == 0) &&
a000a450: e3520000 cmp r2, #0 <== NOT EXECUTED a000a454: 1a00002e bne a000a514 <rtems_aio_enqueue+0x134> <== NOT EXECUTED a000a458: e5942064 ldr r2, [r4, #100] ; 0x64 <== NOT EXECUTED a000a45c: e3520004 cmp r2, #4 <== NOT EXECUTED a000a460: ca00002b bgt a000a514 <rtems_aio_enqueue+0x134> <== NOT EXECUTED
aio_request_queue.active_threads < AIO_MAX_THREADS)
/* we still have empty places on the active_threads chain */
{
chain = &aio_request_queue.work_req;
r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
a000a464: e5931000 ldr r1, [r3] <== NOT EXECUTED a000a468: e2840048 add r0, r4, #72 ; 0x48 <== NOT EXECUTED a000a46c: e3a02001 mov r2, #1 <== NOT EXECUTED a000a470: ebfffecd bl a0009fac <rtems_aio_search_fd> <== NOT EXECUTED
if (r_chain->new_fd == 1) {
a000a474: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
if ((aio_request_queue.idle_threads == 0) &&
aio_request_queue.active_threads < AIO_MAX_THREADS)
/* we still have empty places on the active_threads chain */
{
chain = &aio_request_queue.work_req;
r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
a000a478: e1a07000 mov r7, r0 <== NOT EXECUTED a000a47c: e2809008 add r9, r0, #8 <== NOT EXECUTED
if (r_chain->new_fd == 1) {
a000a480: e3530001 cmp r3, #1 <== NOT EXECUTED a000a484: e280801c add r8, r0, #28 <== NOT EXECUTED a000a488: e280a020 add sl, r0, #32 <== NOT EXECUTED a000a48c: 1a000017 bne a000a4f0 <rtems_aio_enqueue+0x110> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
a000a490: e1a01006 mov r1, r6 <== NOT EXECUTED a000a494: e1a00009 mov r0, r9 <== NOT EXECUTED a000a498: eb00085a bl a000c608 <_Chain_Insert> <== NOT EXECUTED
rtems_chain_prepend (&r_chain->perfd, &req->next_prio); r_chain->new_fd = 0; pthread_mutex_init (&r_chain->mutex, NULL);
a000a49c: e1a01005 mov r1, r5 <== NOT EXECUTED
chain = &aio_request_queue.work_req;
r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
if (r_chain->new_fd == 1) {
rtems_chain_prepend (&r_chain->perfd, &req->next_prio);
r_chain->new_fd = 0;
a000a4a0: e5875018 str r5, [r7, #24] <== NOT EXECUTED
pthread_mutex_init (&r_chain->mutex, NULL);
a000a4a4: e1a00008 mov r0, r8 <== NOT EXECUTED a000a4a8: eb0001d6 bl a000ac08 <pthread_mutex_init> <== NOT EXECUTED
pthread_cond_init (&r_chain->cond, NULL);
a000a4ac: e1a01005 mov r1, r5 <== NOT EXECUTED a000a4b0: e1a0000a mov r0, sl <== NOT EXECUTED a000a4b4: eb0000e6 bl a000a854 <pthread_cond_init> <== NOT EXECUTED
AIO_printf ("New thread \n");
result = pthread_create (&thid, &aio_request_queue.attr,
a000a4b8: e1a03007 mov r3, r7 <== NOT EXECUTED a000a4bc: e28d0020 add r0, sp, #32 <== NOT EXECUTED a000a4c0: e2841008 add r1, r4, #8 <== NOT EXECUTED a000a4c4: e59f2114 ldr r2, [pc, #276] ; a000a5e0 <rtems_aio_enqueue+0x200><== NOT EXECUTED a000a4c8: eb0002a2 bl a000af58 <pthread_create> <== NOT EXECUTED
rtems_aio_handle, (void *) r_chain);
if (result != 0) {
a000a4cc: e2506000 subs r6, r0, #0 <== NOT EXECUTED
pthread_mutex_unlock (&aio_request_queue.mutex); return result; } ++aio_request_queue.active_threads;
a000a4d0: 05943064 ldreq r3, [r4, #100] ; 0x64 <== NOT EXECUTED a000a4d4: 02833001 addeq r3, r3, #1 <== NOT EXECUTED a000a4d8: 05843064 streq r3, [r4, #100] ; 0x64 <== NOT EXECUTED
pthread_cond_init (&r_chain->cond, NULL);
AIO_printf ("New thread \n");
result = pthread_create (&thid, &aio_request_queue.attr,
rtems_aio_handle, (void *) r_chain);
if (result != 0) {
a000a4dc: 0a000039 beq a000a5c8 <rtems_aio_enqueue+0x1e8> <== NOT EXECUTED
pthread_mutex_unlock (&aio_request_queue.mutex);
a000a4e0: e1a00004 mov r0, r4 <== NOT EXECUTED a000a4e4: eb000239 bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED
return result;
a000a4e8: e1a05006 mov r5, r6 <== NOT EXECUTED a000a4ec: ea000037 b a000a5d0 <rtems_aio_enqueue+0x1f0> <== NOT EXECUTED
}
++aio_request_queue.active_threads;
}
else {
/* put request in the fd chain it belongs to */
pthread_mutex_lock (&r_chain->mutex);
a000a4f0: e1a00008 mov r0, r8 <== NOT EXECUTED a000a4f4: eb000216 bl a000ad54 <pthread_mutex_lock> <== NOT EXECUTED
rtems_aio_insert_prio (&r_chain->perfd, req);
a000a4f8: e1a00009 mov r0, r9 <== NOT EXECUTED a000a4fc: e1a01006 mov r1, r6 <== NOT EXECUTED a000a500: ebffff75 bl a000a2dc <rtems_aio_insert_prio> <== NOT EXECUTED
pthread_cond_signal (&r_chain->cond);
a000a504: e1a0000a mov r0, sl <== NOT EXECUTED a000a508: eb000102 bl a000a918 <pthread_cond_signal> <== NOT EXECUTED
pthread_mutex_unlock (&r_chain->mutex);
a000a50c: e1a00008 mov r0, r8 <== NOT EXECUTED a000a510: ea00000e b a000a550 <rtems_aio_enqueue+0x170> <== NOT EXECUTED
else
{
/* the maximum number of threads has been already created
even though some of them might be idle.
The request belongs to one of the active fd chain */
r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,
a000a514: e59f00c8 ldr r0, [pc, #200] ; a000a5e4 <rtems_aio_enqueue+0x204><== NOT EXECUTED a000a518: e5931000 ldr r1, [r3] <== NOT EXECUTED a000a51c: e3a02000 mov r2, #0 <== NOT EXECUTED a000a520: ebfffea1 bl a0009fac <rtems_aio_search_fd> <== NOT EXECUTED
req->aiocbp->aio_fildes, 0);
if (r_chain != NULL)
a000a524: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000a528: 0a00000a beq a000a558 <rtems_aio_enqueue+0x178> <== NOT EXECUTED
{
pthread_mutex_lock (&r_chain->mutex);
a000a52c: e284701c add r7, r4, #28 <== NOT EXECUTED a000a530: e1a00007 mov r0, r7 <== NOT EXECUTED a000a534: eb000206 bl a000ad54 <pthread_mutex_lock> <== NOT EXECUTED
rtems_aio_insert_prio (&r_chain->perfd, req);
a000a538: e2840008 add r0, r4, #8 <== NOT EXECUTED a000a53c: e1a01006 mov r1, r6 <== NOT EXECUTED a000a540: ebffff65 bl a000a2dc <rtems_aio_insert_prio> <== NOT EXECUTED
pthread_cond_signal (&r_chain->cond);
a000a544: e2840020 add r0, r4, #32 <== NOT EXECUTED a000a548: eb0000f2 bl a000a918 <pthread_cond_signal> <== NOT EXECUTED
pthread_mutex_unlock (&r_chain->mutex);
a000a54c: e1a00007 mov r0, r7 <== NOT EXECUTED a000a550: eb00021e bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED a000a554: ea00001b b a000a5c8 <rtems_aio_enqueue+0x1e8> <== NOT EXECUTED
} else {
/* or to the idle chain */
chain = &aio_request_queue.idle_req;
r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
a000a558: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED a000a55c: e59f0084 ldr r0, [pc, #132] ; a000a5e8 <rtems_aio_enqueue+0x208><== NOT EXECUTED a000a560: e3a02001 mov r2, #1 <== NOT EXECUTED a000a564: e5931000 ldr r1, [r3] <== NOT EXECUTED a000a568: ebfffe8f bl a0009fac <rtems_aio_search_fd> <== NOT EXECUTED
if (r_chain->new_fd == 1) {
a000a56c: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
} else {
/* or to the idle chain */
chain = &aio_request_queue.idle_req;
r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
a000a570: e1a07000 mov r7, r0 <== NOT EXECUTED a000a574: e2800008 add r0, r0, #8 <== NOT EXECUTED
if (r_chain->new_fd == 1) {
a000a578: e3530001 cmp r3, #1 <== NOT EXECUTED a000a57c: 1a000009 bne a000a5a8 <rtems_aio_enqueue+0x1c8> <== NOT EXECUTED a000a580: e1a01006 mov r1, r6 <== NOT EXECUTED a000a584: eb00081f bl a000c608 <_Chain_Insert> <== NOT EXECUTED
/* If this is a new fd chain we signal the idle threads that
might be waiting for requests */
AIO_printf (" New chain on waiting queue \n ");
rtems_chain_prepend (&r_chain->perfd, &req->next_prio);
r_chain->new_fd = 0;
pthread_mutex_init (&r_chain->mutex, NULL);
a000a588: e1a01004 mov r1, r4 <== NOT EXECUTED
if (r_chain->new_fd == 1) {
/* If this is a new fd chain we signal the idle threads that
might be waiting for requests */
AIO_printf (" New chain on waiting queue \n ");
rtems_chain_prepend (&r_chain->perfd, &req->next_prio);
r_chain->new_fd = 0;
a000a58c: e5874018 str r4, [r7, #24] <== NOT EXECUTED
pthread_mutex_init (&r_chain->mutex, NULL);
a000a590: e287001c add r0, r7, #28 <== NOT EXECUTED a000a594: eb00019b bl a000ac08 <pthread_mutex_init> <== NOT EXECUTED
pthread_cond_init (&r_chain->cond, NULL);
a000a598: e2870020 add r0, r7, #32 <== NOT EXECUTED a000a59c: e1a01004 mov r1, r4 <== NOT EXECUTED a000a5a0: eb0000ab bl a000a854 <pthread_cond_init> <== NOT EXECUTED a000a5a4: ea000001 b a000a5b0 <rtems_aio_enqueue+0x1d0> <== NOT EXECUTED
} else /* just insert the request in the existing fd chain */ rtems_aio_insert_prio (&r_chain->perfd, req);
a000a5a8: e1a01006 mov r1, r6 <== NOT EXECUTED a000a5ac: ebffff4a bl a000a2dc <rtems_aio_insert_prio> <== NOT EXECUTED
if (aio_request_queue.idle_threads > 0)
a000a5b0: e59f0024 ldr r0, [pc, #36] ; a000a5dc <rtems_aio_enqueue+0x1fc><== NOT EXECUTED a000a5b4: e5903068 ldr r3, [r0, #104] ; 0x68 <== NOT EXECUTED a000a5b8: e3530000 cmp r3, #0 <== NOT EXECUTED a000a5bc: da000001 ble a000a5c8 <rtems_aio_enqueue+0x1e8> <== NOT EXECUTED
pthread_cond_signal (&aio_request_queue.new_req);
a000a5c0: e2800004 add r0, r0, #4 <== NOT EXECUTED a000a5c4: eb0000d3 bl a000a918 <pthread_cond_signal> <== NOT EXECUTED
}
}
pthread_mutex_unlock (&aio_request_queue.mutex);
a000a5c8: e59f000c ldr r0, [pc, #12] ; a000a5dc <rtems_aio_enqueue+0x1fc><== NOT EXECUTED a000a5cc: eb0001ff bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED
return 0; }
a000a5d0: e1a00005 mov r0, r5 <== NOT EXECUTED
a000a5d4: e28dd024 add sp, sp, #36 ; 0x24 <== NOT EXECUTED
a000a5d8: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
a000a090 <rtems_aio_handle>:
* NULL - if error
*/
static void *
rtems_aio_handle (void *arg)
{
a000a090: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
struct timespec timeout;
AIO_printf ("Chain is empty [WQ], wait for work\n");
pthread_mutex_unlock (&r_chain->mutex);
pthread_mutex_lock (&aio_request_queue.mutex);
a000a094: e59f4238 ldr r4, [pc, #568] ; a000a2d4 <rtems_aio_handle+0x244><== NOT EXECUTED
* NULL - if error
*/
static void *
rtems_aio_handle (void *arg)
{
a000a098: e24dd02c sub sp, sp, #44 ; 0x2c <== NOT EXECUTED a000a09c: e1a05000 mov r5, r0 <== NOT EXECUTED
pthread_mutex_unlock (&r_chain->mutex);
pthread_mutex_lock (&aio_request_queue.mutex);
if (rtems_chain_is_empty (chain))
{
clock_gettime (CLOCK_REALTIME, &timeout);
a000a0a0: e28d7020 add r7, sp, #32 <== NOT EXECUTED
node = rtems_chain_first (chain);
req = (rtems_aio_request *) node;
/* See _POSIX_PRIORITIZE_IO and _POSIX_PRIORITY_SCHEDULING
discussion in rtems_aio_enqueue () */
pthread_getschedparam (pthread_self(), &policy, ¶m);
a000a0a4: e28db004 add fp, sp, #4 <== NOT EXECUTED
/* acquire the mutex of the current fd chain.
we don't need to lock the queue mutex since we can
add requests to idle fd chains or even active ones
if the working request has been extracted from the
chain */
result = pthread_mutex_lock (&r_chain->mutex);
a000a0a8: e285a01c add sl, r5, #28 <== NOT EXECUTED a000a0ac: e1a0000a mov r0, sl <== NOT EXECUTED a000a0b0: eb000327 bl a000ad54 <pthread_mutex_lock> <== NOT EXECUTED
if (result != 0)
a000a0b4: e2509000 subs r9, r0, #0 <== NOT EXECUTED a000a0b8: 1a000082 bne a000a2c8 <rtems_aio_handle+0x238> <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a000a0bc: e5956008 ldr r6, [r5, #8] <== 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 );
a000a0c0: e285300c add r3, r5, #12 <== NOT EXECUTED
/* If the locked chain is not empty, take the first
request extract it, unlock the chain and process
the request, in this way the user can supply more
requests to this fd chain */
if (!rtems_chain_is_empty (chain)) {
a000a0c4: e1560003 cmp r6, r3 <== NOT EXECUTED a000a0c8: 0a000035 beq a000a1a4 <rtems_aio_handle+0x114> <== NOT EXECUTED
node = rtems_chain_first (chain);
req = (rtems_aio_request *) node;
/* See _POSIX_PRIORITIZE_IO and _POSIX_PRIORITY_SCHEDULING
discussion in rtems_aio_enqueue () */
pthread_getschedparam (pthread_self(), &policy, ¶m);
a000a0cc: eb00052d bl a000b588 <pthread_self> <== NOT EXECUTED a000a0d0: e28d1028 add r1, sp, #40 ; 0x28 <== NOT EXECUTED a000a0d4: e1a0200b mov r2, fp <== NOT EXECUTED a000a0d8: eb000433 bl a000b1ac <pthread_getschedparam> <== NOT EXECUTED
param.sched_priority = req->priority;
a000a0dc: e596300c ldr r3, [r6, #12] <== NOT EXECUTED a000a0e0: e58d3004 str r3, [sp, #4] <== NOT EXECUTED
pthread_setschedparam (pthread_self(), req->policy, ¶m);
a000a0e4: eb000527 bl a000b588 <pthread_self> <== NOT EXECUTED a000a0e8: e1a0200b mov r2, fp <== NOT EXECUTED a000a0ec: e5961008 ldr r1, [r6, #8] <== NOT EXECUTED a000a0f0: eb000529 bl a000b59c <pthread_setschedparam> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
a000a0f4: e1a00006 mov r0, r6 <== NOT EXECUTED a000a0f8: eb00092d bl a000c5b4 <_Chain_Extract> <== NOT EXECUTED
rtems_chain_extract (node);
pthread_mutex_unlock (&r_chain->mutex);
a000a0fc: e1a0000a mov r0, sl <== NOT EXECUTED a000a100: eb000332 bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED
switch (req->aiocbp->aio_lio_opcode) {
a000a104: e5962014 ldr r2, [r6, #20] <== NOT EXECUTED a000a108: e592302c ldr r3, [r2, #44] ; 0x2c <== NOT EXECUTED a000a10c: e3530002 cmp r3, #2 <== NOT EXECUTED a000a110: 0a00000b beq a000a144 <rtems_aio_handle+0xb4> <== NOT EXECUTED a000a114: e3530003 cmp r3, #3 <== NOT EXECUTED a000a118: 0a000011 beq a000a164 <rtems_aio_handle+0xd4> <== NOT EXECUTED a000a11c: e3530001 cmp r3, #1 <== NOT EXECUTED a000a120: 1a000013 bne a000a174 <rtems_aio_handle+0xe4> <== NOT EXECUTED
case LIO_READ:
AIO_printf ("read\n");
result = pread (req->aiocbp->aio_fildes,
a000a124: e5921008 ldr r1, [r2, #8] <== NOT EXECUTED a000a128: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED a000a12c: e58d1000 str r1, [sp] <== NOT EXECUTED a000a130: e592100c ldr r1, [r2, #12] <== NOT EXECUTED a000a134: e5920000 ldr r0, [r2] <== NOT EXECUTED a000a138: e5922010 ldr r2, [r2, #16] <== NOT EXECUTED a000a13c: eb00292b bl a00145f0 <pread> <== NOT EXECUTED
(void *) req->aiocbp->aio_buf,
req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
break;
a000a140: ea000009 b a000a16c <rtems_aio_handle+0xdc> <== NOT EXECUTED
case LIO_WRITE:
AIO_printf ("write\n");
result = pwrite (req->aiocbp->aio_fildes,
a000a144: e5921008 ldr r1, [r2, #8] <== NOT EXECUTED a000a148: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED a000a14c: e58d1000 str r1, [sp] <== NOT EXECUTED a000a150: e592100c ldr r1, [r2, #12] <== NOT EXECUTED a000a154: e5920000 ldr r0, [r2] <== NOT EXECUTED a000a158: e5922010 ldr r2, [r2, #16] <== NOT EXECUTED a000a15c: eb00296d bl a0014718 <pwrite> <== NOT EXECUTED
(void *) req->aiocbp->aio_buf,
req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
break;
a000a160: ea000001 b a000a16c <rtems_aio_handle+0xdc> <== NOT EXECUTED
case LIO_SYNC:
AIO_printf ("sync\n");
result = fsync (req->aiocbp->aio_fildes);
a000a164: e5920000 ldr r0, [r2] <== NOT EXECUTED a000a168: eb0019a9 bl a0010814 <fsync> <== NOT EXECUTED
break;
default:
result = -1;
}
if (result == -1) {
a000a16c: e3700001 cmn r0, #1 <== NOT EXECUTED a000a170: 1a000006 bne a000a190 <rtems_aio_handle+0x100> <== NOT EXECUTED
req->aiocbp->return_value = -1;
a000a174: e5966014 ldr r6, [r6, #20] <== NOT EXECUTED a000a178: e3e02000 mvn r2, #0 <== NOT EXECUTED a000a17c: e5862034 str r2, [r6, #52] ; 0x34 <== NOT EXECUTED
req->aiocbp->error_code = errno;
a000a180: eb002616 bl a00139e0 <__errno> <== NOT EXECUTED a000a184: e5903000 ldr r3, [r0] <== NOT EXECUTED a000a188: e5863030 str r3, [r6, #48] ; 0x30 <== NOT EXECUTED a000a18c: eaffffc5 b a000a0a8 <rtems_aio_handle+0x18> <== NOT EXECUTED
} else {
req->aiocbp->return_value = result;
a000a190: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED
req->aiocbp->error_code = 0;
a000a194: e3a02000 mov r2, #0 <== NOT EXECUTED
}
if (result == -1) {
req->aiocbp->return_value = -1;
req->aiocbp->error_code = errno;
} else {
req->aiocbp->return_value = result;
a000a198: e5830034 str r0, [r3, #52] ; 0x34 <== NOT EXECUTED
req->aiocbp->error_code = 0;
a000a19c: e5832030 str r2, [r3, #48] ; 0x30 <== NOT EXECUTED a000a1a0: eaffffc0 b a000a0a8 <rtems_aio_handle+0x18> <== NOT EXECUTED
struct timespec timeout;
AIO_printf ("Chain is empty [WQ], wait for work\n");
pthread_mutex_unlock (&r_chain->mutex);
pthread_mutex_lock (&aio_request_queue.mutex);
a000a1a4: e59f8128 ldr r8, [pc, #296] ; a000a2d4 <rtems_aio_handle+0x244><== NOT EXECUTED
struct timespec timeout;
AIO_printf ("Chain is empty [WQ], wait for work\n");
pthread_mutex_unlock (&r_chain->mutex);
a000a1a8: e1a0000a mov r0, sl <== NOT EXECUTED a000a1ac: eb000307 bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED
pthread_mutex_lock (&aio_request_queue.mutex);
a000a1b0: e1a00008 mov r0, r8 <== NOT EXECUTED a000a1b4: eb0002e6 bl a000ad54 <pthread_mutex_lock> <== NOT EXECUTED
if (rtems_chain_is_empty (chain))
a000a1b8: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a000a1bc: e1530006 cmp r3, r6 <== NOT EXECUTED a000a1c0: 1a00003d bne a000a2bc <rtems_aio_handle+0x22c> <== NOT EXECUTED
{
clock_gettime (CLOCK_REALTIME, &timeout);
a000a1c4: e1a01007 mov r1, r7 <== NOT EXECUTED a000a1c8: e3a00001 mov r0, #1 <== NOT EXECUTED a000a1cc: eb000150 bl a000a714 <clock_gettime> <== NOT EXECUTED
timeout.tv_sec += 3;
a000a1d0: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED
timeout.tv_nsec = 0; result = pthread_cond_timedwait (&r_chain->cond,
a000a1d4: e2856020 add r6, r5, #32 <== NOT EXECUTED a000a1d8: e1a00006 mov r0, r6 <== NOT EXECUTED
pthread_mutex_lock (&aio_request_queue.mutex);
if (rtems_chain_is_empty (chain))
{
clock_gettime (CLOCK_REALTIME, &timeout);
timeout.tv_sec += 3;
a000a1dc: e2833003 add r3, r3, #3 <== NOT EXECUTED
timeout.tv_nsec = 0; result = pthread_cond_timedwait (&r_chain->cond,
a000a1e0: e1a01008 mov r1, r8 <== NOT EXECUTED a000a1e4: e1a02007 mov r2, r7 <== NOT EXECUTED
pthread_mutex_lock (&aio_request_queue.mutex);
if (rtems_chain_is_empty (chain))
{
clock_gettime (CLOCK_REALTIME, &timeout);
timeout.tv_sec += 3;
a000a1e8: e58d3020 str r3, [sp, #32] <== NOT EXECUTED
timeout.tv_nsec = 0;
a000a1ec: e58d9024 str r9, [sp, #36] ; 0x24 <== NOT EXECUTED
result = pthread_cond_timedwait (&r_chain->cond,
a000a1f0: eb0001df bl a000a974 <pthread_cond_timedwait> <== NOT EXECUTED
&aio_request_queue.mutex,
&timeout);
/* If no requests were added to the chain we delete the fd chain from
the queue and start working with idle fd chains */
if (result == ETIMEDOUT) {
a000a1f4: e3500074 cmp r0, #116 ; 0x74 <== NOT EXECUTED a000a1f8: 1a00002f bne a000a2bc <rtems_aio_handle+0x22c> <== NOT EXECUTED a000a1fc: e1a00005 mov r0, r5 <== NOT EXECUTED a000a200: eb0008eb bl a000c5b4 <_Chain_Extract> <== NOT EXECUTED
rtems_chain_extract (&r_chain->next_fd); pthread_mutex_destroy (&r_chain->mutex);
a000a204: e1a0000a mov r0, sl <== NOT EXECUTED a000a208: eb00022e bl a000aac8 <pthread_mutex_destroy> <== NOT EXECUTED
pthread_cond_destroy (&r_chain->cond);
a000a20c: e1a00006 mov r0, r6 <== NOT EXECUTED a000a210: eb00015d bl a000a78c <pthread_cond_destroy> <== NOT EXECUTED
free (r_chain);
a000a214: e1a00005 mov r0, r5 <== NOT EXECUTED a000a218: ebfff2d8 bl a0006d80 <free> <== NOT EXECUTED
/* If the idle chain is empty sleep for 3 seconds and wait for a
signal. The thread now becomes idle. */
if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {
a000a21c: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED a000a220: e59f20b0 ldr r2, [pc, #176] ; a000a2d8 <rtems_aio_handle+0x248><== NOT EXECUTED a000a224: e1530002 cmp r3, r2 <== NOT EXECUTED a000a228: 1a000018 bne a000a290 <rtems_aio_handle+0x200> <== NOT EXECUTED
AIO_printf ("Chain is empty [IQ], wait for work\n");
++aio_request_queue.idle_threads;
a000a22c: e5943068 ldr r3, [r4, #104] ; 0x68 <== NOT EXECUTED
--aio_request_queue.active_threads; clock_gettime (CLOCK_REALTIME, &timeout);
a000a230: e1a01007 mov r1, r7 <== NOT EXECUTED a000a234: e3a00001 mov r0, #1 <== NOT EXECUTED
/* If the idle chain is empty sleep for 3 seconds and wait for a
signal. The thread now becomes idle. */
if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {
AIO_printf ("Chain is empty [IQ], wait for work\n");
++aio_request_queue.idle_threads;
a000a238: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a23c: e5843068 str r3, [r4, #104] ; 0x68 <== NOT EXECUTED
--aio_request_queue.active_threads;
a000a240: e5943064 ldr r3, [r4, #100] ; 0x64 <== NOT EXECUTED a000a244: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000a248: e5843064 str r3, [r4, #100] ; 0x64 <== NOT EXECUTED
clock_gettime (CLOCK_REALTIME, &timeout);
a000a24c: eb000130 bl a000a714 <clock_gettime> <== NOT EXECUTED
timeout.tv_sec += 3;
a000a250: e59d3020 ldr r3, [sp, #32] <== NOT EXECUTED
timeout.tv_nsec = 0;
result = pthread_cond_timedwait (&aio_request_queue.new_req,
a000a254: e2880004 add r0, r8, #4 <== NOT EXECUTED a000a258: e1a01008 mov r1, r8 <== NOT EXECUTED
AIO_printf ("Chain is empty [IQ], wait for work\n");
++aio_request_queue.idle_threads;
--aio_request_queue.active_threads;
clock_gettime (CLOCK_REALTIME, &timeout);
timeout.tv_sec += 3;
a000a25c: e2833003 add r3, r3, #3 <== NOT EXECUTED
timeout.tv_nsec = 0;
result = pthread_cond_timedwait (&aio_request_queue.new_req,
a000a260: e1a02007 mov r2, r7 <== NOT EXECUTED
AIO_printf ("Chain is empty [IQ], wait for work\n");
++aio_request_queue.idle_threads;
--aio_request_queue.active_threads;
clock_gettime (CLOCK_REALTIME, &timeout);
timeout.tv_sec += 3;
a000a264: e58d3020 str r3, [sp, #32] <== NOT EXECUTED
timeout.tv_nsec = 0;
a000a268: e58d9024 str r9, [sp, #36] ; 0x24 <== NOT EXECUTED
result = pthread_cond_timedwait (&aio_request_queue.new_req,
a000a26c: eb0001c0 bl a000a974 <pthread_cond_timedwait> <== NOT EXECUTED
&aio_request_queue.mutex,
&timeout);
/* If no new fd chain was added in the idle requests
then this thread is finished */
if (result == ETIMEDOUT) {
a000a270: e3500074 cmp r0, #116 ; 0x74 <== NOT EXECUTED a000a274: 1a000005 bne a000a290 <rtems_aio_handle+0x200> <== NOT EXECUTED
AIO_printf ("Etimeout\n");
--aio_request_queue.idle_threads;
a000a278: e5983068 ldr r3, [r8, #104] ; 0x68 <== NOT EXECUTED
pthread_mutex_unlock (&aio_request_queue.mutex);
a000a27c: e1a00008 mov r0, r8 <== NOT EXECUTED
/* If no new fd chain was added in the idle requests
then this thread is finished */
if (result == ETIMEDOUT) {
AIO_printf ("Etimeout\n");
--aio_request_queue.idle_threads;
a000a280: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000a284: e5883068 str r3, [r8, #104] ; 0x68 <== NOT EXECUTED
pthread_mutex_unlock (&aio_request_queue.mutex);
a000a288: eb0002d0 bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED
return NULL;
a000a28c: ea00000d b a000a2c8 <rtems_aio_handle+0x238> <== NOT EXECUTED
}
}
/* Otherwise move this chain to the working chain and
start the loop all over again */
AIO_printf ("Work on idle\n");
--aio_request_queue.idle_threads;
a000a290: e5943068 ldr r3, [r4, #104] ; 0x68 <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a000a294: e5945054 ldr r5, [r4, #84] ; 0x54 <== NOT EXECUTED
}
}
/* Otherwise move this chain to the working chain and
start the loop all over again */
AIO_printf ("Work on idle\n");
--aio_request_queue.idle_threads;
a000a298: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000a29c: e5843068 str r3, [r4, #104] ; 0x68 <== NOT EXECUTED
++aio_request_queue.active_threads;
a000a2a0: e5943064 ldr r3, [r4, #100] ; 0x64 <== NOT EXECUTED a000a2a4: e1a00005 mov r0, r5 <== NOT EXECUTED a000a2a8: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a2ac: e5843064 str r3, [r4, #100] ; 0x64 <== NOT EXECUTED a000a2b0: eb0008bf bl a000c5b4 <_Chain_Extract> <== NOT EXECUTED
node = rtems_chain_first (&aio_request_queue.idle_req);
rtems_chain_extract (node);
r_chain = (rtems_aio_request_chain *) node;
rtems_aio_move_to_work (r_chain);
a000a2b4: e1a00005 mov r0, r5 <== NOT EXECUTED a000a2b8: ebffff65 bl a000a054 <rtems_aio_move_to_work> <== NOT EXECUTED
}
}
/* If there was a request added in the initial fd chain then release
the mutex and process it */
pthread_mutex_unlock (&aio_request_queue.mutex);
a000a2bc: e59f0010 ldr r0, [pc, #16] ; a000a2d4 <rtems_aio_handle+0x244><== NOT EXECUTED a000a2c0: eb0002c2 bl a000add0 <pthread_mutex_unlock> <== NOT EXECUTED a000a2c4: eaffff77 b a000a0a8 <rtems_aio_handle+0x18> <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a000a2c8: e3a00000 mov r0, #0 <== NOT EXECUTED
a000a2cc: e28dd02c add sp, sp, #44 ; 0x2c <== NOT EXECUTED
a000a2d0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a0009ee4 <rtems_aio_init>:
* 0 - if initialization succeeded
*/
int
rtems_aio_init (void)
{
a0009ee4: e92d4010 push {r4, lr} <== NOT EXECUTED
int result = 0;
result = pthread_attr_init (&aio_request_queue.attr);
a0009ee8: e59f00ac ldr r0, [pc, #172] ; a0009f9c <rtems_aio_init+0xb8><== NOT EXECUTED a0009eec: eb0003f9 bl a000aed8 <pthread_attr_init> <== NOT EXECUTED
if (result != 0)
a0009ef0: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0009ef4: 1a000026 bne a0009f94 <rtems_aio_init+0xb0> <== NOT EXECUTED
return result;
result =
a0009ef8: e59f009c ldr r0, [pc, #156] ; a0009f9c <rtems_aio_init+0xb8><== NOT EXECUTED a0009efc: e1a01004 mov r1, r4 <== NOT EXECUTED a0009f00: eb000406 bl a000af20 <pthread_attr_setdetachstate> <== NOT EXECUTED
pthread_attr_setdetachstate (&aio_request_queue.attr,
PTHREAD_CREATE_DETACHED);
if (result != 0)
a0009f04: e3500000 cmp r0, #0 <== NOT EXECUTED a0009f08: 0a000001 beq a0009f14 <rtems_aio_init+0x30> <== NOT EXECUTED
pthread_attr_destroy (&aio_request_queue.attr);
a0009f0c: e59f0088 ldr r0, [pc, #136] ; a0009f9c <rtems_aio_init+0xb8><== NOT EXECUTED a0009f10: eb0003e7 bl a000aeb4 <pthread_attr_destroy> <== NOT EXECUTED
result = pthread_mutex_init (&aio_request_queue.mutex, NULL);
a0009f14: e59f0084 ldr r0, [pc, #132] ; a0009fa0 <rtems_aio_init+0xbc><== NOT EXECUTED a0009f18: e3a01000 mov r1, #0 <== NOT EXECUTED a0009f1c: eb000339 bl a000ac08 <pthread_mutex_init> <== NOT EXECUTED
if (result != 0)
a0009f20: e3500000 cmp r0, #0 <== NOT EXECUTED a0009f24: 0a000001 beq a0009f30 <rtems_aio_init+0x4c> <== NOT EXECUTED
pthread_attr_destroy (&aio_request_queue.attr);
a0009f28: e59f006c ldr r0, [pc, #108] ; a0009f9c <rtems_aio_init+0xb8><== NOT EXECUTED a0009f2c: eb0003e0 bl a000aeb4 <pthread_attr_destroy> <== NOT EXECUTED
result = pthread_cond_init (&aio_request_queue.new_req, NULL);
a0009f30: e59f006c ldr r0, [pc, #108] ; a0009fa4 <rtems_aio_init+0xc0><== NOT EXECUTED a0009f34: e3a01000 mov r1, #0 <== NOT EXECUTED a0009f38: eb000245 bl a000a854 <pthread_cond_init> <== NOT EXECUTED
if (result != 0) {
a0009f3c: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0009f40: 0a000003 beq a0009f54 <rtems_aio_init+0x70> <== NOT EXECUTED
pthread_mutex_destroy (&aio_request_queue.mutex);
a0009f44: e59f0054 ldr r0, [pc, #84] ; a0009fa0 <rtems_aio_init+0xbc><== NOT EXECUTED a0009f48: eb0002de bl a000aac8 <pthread_mutex_destroy> <== NOT EXECUTED
pthread_attr_destroy (&aio_request_queue.attr);
a0009f4c: e59f0048 ldr r0, [pc, #72] ; a0009f9c <rtems_aio_init+0xb8><== NOT EXECUTED a0009f50: eb0003d7 bl a000aeb4 <pthread_attr_destroy> <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
a0009f54: e59f3044 ldr r3, [pc, #68] ; a0009fa0 <rtems_aio_init+0xbc><== NOT EXECUTED a0009f58: e283204c add r2, r3, #76 ; 0x4c <== NOT EXECUTED a0009f5c: e5832048 str r2, [r3, #72] ; 0x48 <== NOT EXECUTED
head->previous = NULL;
a0009f60: e3a02000 mov r2, #0 <== NOT EXECUTED
tail->previous = head;
a0009f64: e2831048 add r1, r3, #72 ; 0x48 <== NOT EXECUTED
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
a0009f68: e583204c str r2, [r3, #76] ; 0x4c <== NOT EXECUTED a0009f6c: e5832058 str r2, [r3, #88] ; 0x58 <== NOT EXECUTED
}
rtems_chain_initialize_empty (&aio_request_queue.work_req);
rtems_chain_initialize_empty (&aio_request_queue.idle_req);
aio_request_queue.active_threads = 0;
a0009f70: e5832064 str r2, [r3, #100] ; 0x64 <== NOT EXECUTED
aio_request_queue.idle_threads = 0;
a0009f74: e5832068 str r2, [r3, #104] ; 0x68 <== NOT EXECUTED
aio_request_queue.initialized = AIO_QUEUE_INITIALIZED;
a0009f78: e59f2028 ldr r2, [pc, #40] ; a0009fa8 <rtems_aio_init+0xc4><== NOT EXECUTED
tail->previous = head;
a0009f7c: e5831050 str r1, [r3, #80] ; 0x50 <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
a0009f80: e2831058 add r1, r3, #88 ; 0x58 <== NOT EXECUTED a0009f84: e5831054 str r1, [r3, #84] ; 0x54 <== NOT EXECUTED
head->previous = NULL; tail->previous = head;
a0009f88: e2831054 add r1, r3, #84 ; 0x54 <== NOT EXECUTED a0009f8c: e583105c str r1, [r3, #92] ; 0x5c <== NOT EXECUTED a0009f90: e5832060 str r2, [r3, #96] ; 0x60 <== NOT EXECUTED
return result;
}
a0009f94: e1a00004 mov r0, r4 <== NOT EXECUTED
a0009f98: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000a2dc <rtems_aio_insert_prio>:
a000a2dc: e1a03000 mov r3, r0 <== NOT EXECUTED a000a2e0: e4932004 ldr r2, [r3], #4 <== NOT EXECUTED
* NONE
*/
void
rtems_aio_insert_prio (rtems_chain_control *chain, rtems_aio_request *req)
{
a000a2e4: e1a0c001 mov ip, r1 <== NOT EXECUTED
rtems_chain_node *node;
AIO_printf ("FD exists \n");
node = rtems_chain_first (chain);
if (rtems_chain_is_empty (chain)) {
a000a2e8: e1520003 cmp r2, r3 <== NOT EXECUTED a000a2ec: 0a00000d beq a000a328 <rtems_aio_insert_prio+0x4c> <== NOT EXECUTED
AIO_printf ("First in chain \n");
rtems_chain_prepend (chain, &req->next_prio);
} else {
AIO_printf ("Add by priority \n");
int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;
a000a2f0: e5921014 ldr r1, [r2, #20] <== NOT EXECUTED
while (req->aiocbp->aio_reqprio > prio &&
a000a2f4: e59c0014 ldr r0, [ip, #20] <== NOT EXECUTED
if (rtems_chain_is_empty (chain)) {
AIO_printf ("First in chain \n");
rtems_chain_prepend (chain, &req->next_prio);
} else {
AIO_printf ("Add by priority \n");
int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;
a000a2f8: e5911014 ldr r1, [r1, #20] <== NOT EXECUTED
while (req->aiocbp->aio_reqprio > prio &&
a000a2fc: e5900014 ldr r0, [r0, #20] <== NOT EXECUTED a000a300: ea000002 b a000a310 <rtems_aio_insert_prio+0x34> <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a000a304: e5922000 ldr r2, [r2] <== NOT EXECUTED
int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;
while (req->aiocbp->aio_reqprio > prio &&
!rtems_chain_is_tail (chain, node)) {
node = rtems_chain_next (node);
prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;
a000a308: e5921014 ldr r1, [r2, #20] <== NOT EXECUTED a000a30c: e5911014 ldr r1, [r1, #20] <== NOT EXECUTED
rtems_chain_prepend (chain, &req->next_prio);
} else {
AIO_printf ("Add by priority \n");
int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;
while (req->aiocbp->aio_reqprio > prio &&
a000a310: e1500001 cmp r0, r1 <== NOT EXECUTED a000a314: da000001 ble a000a320 <rtems_aio_insert_prio+0x44> <== NOT EXECUTED a000a318: e1520003 cmp r2, r3 <== NOT EXECUTED a000a31c: 1afffff8 bne a000a304 <rtems_aio_insert_prio+0x28> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_insert(
rtems_chain_node *after_node,
rtems_chain_node *the_node
)
{
_Chain_Insert( after_node, the_node );
a000a320: e5920004 ldr r0, [r2, #4] <== NOT EXECUTED a000a324: e1a0100c mov r1, ip <== NOT EXECUTED a000a328: ea0008b6 b a000c608 <_Chain_Insert> <== NOT EXECUTED
a000a054 <rtems_aio_move_to_work>:
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a000a054: e59f2030 ldr r2, [pc, #48] ; a000a08c <rtems_aio_move_to_work+0x38><== NOT EXECUTED
* NONE
*/
void
rtems_aio_move_to_work (rtems_aio_request_chain *r_chain)
{
a000a058: e1a01000 mov r1, r0 <== NOT EXECUTED
rtems_chain_node *node;
node = rtems_chain_first (&aio_request_queue.work_req);
temp = (rtems_aio_request_chain *) node;
while (temp->fildes < r_chain->fildes &&
a000a05c: e5900014 ldr r0, [r0, #20] <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a000a060: e5923048 ldr r3, [r2, #72] ; 0x48 <== NOT EXECUTED
rtems_chain_node *node;
node = rtems_chain_first (&aio_request_queue.work_req);
temp = (rtems_aio_request_chain *) node;
while (temp->fildes < r_chain->fildes &&
a000a064: e282204c add r2, r2, #76 ; 0x4c <== NOT EXECUTED a000a068: ea000000 b a000a070 <rtems_aio_move_to_work+0x1c> <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a000a06c: e5933000 ldr r3, [r3] <== NOT EXECUTED
rtems_chain_node *node;
node = rtems_chain_first (&aio_request_queue.work_req);
temp = (rtems_aio_request_chain *) node;
while (temp->fildes < r_chain->fildes &&
a000a070: e593c014 ldr ip, [r3, #20] <== NOT EXECUTED a000a074: e15c0000 cmp ip, r0 <== NOT EXECUTED a000a078: aa000001 bge a000a084 <rtems_aio_move_to_work+0x30> <== NOT EXECUTED a000a07c: e1530002 cmp r3, r2 <== NOT EXECUTED a000a080: 1afffff9 bne a000a06c <rtems_aio_move_to_work+0x18> <== NOT EXECUTED a000a084: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a000a088: ea00095e b a000c608 <_Chain_Insert> <== NOT EXECUTED
a000a32c <rtems_aio_remove_fd>:
* Output parameters:
* NONE
*/
void rtems_aio_remove_fd (rtems_aio_request_chain *r_chain)
{
a000a32c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Chain_Is_tail(
Chain_Control *the_chain,
const Chain_Node *the_node
)
{
return (the_node == _Chain_Tail(the_chain));
a000a330: e280700c add r7, r0, #12 <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a000a334: e5904008 ldr r4, [r0, #8] <== NOT EXECUTED
while (!rtems_chain_is_tail (chain, node))
{
rtems_chain_extract (node);
rtems_aio_request *req = (rtems_aio_request *) node;
node = rtems_chain_next (node);
req->aiocbp->error_code = ECANCELED;
a000a338: e3a0608c mov r6, #140 ; 0x8c <== NOT EXECUTED
req->aiocbp->return_value = -1;
a000a33c: e3e05000 mvn r5, #0 <== NOT EXECUTED
rtems_chain_control *chain;
rtems_chain_node *node;
chain = &r_chain->perfd;
node = rtems_chain_first (chain);
while (!rtems_chain_is_tail (chain, node))
a000a340: ea000008 b a000a368 <rtems_aio_remove_fd+0x3c> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
a000a344: e1a00004 mov r0, r4 <== NOT EXECUTED a000a348: eb000899 bl a000c5b4 <_Chain_Extract> <== NOT EXECUTED
{
rtems_chain_extract (node);
rtems_aio_request *req = (rtems_aio_request *) node;
node = rtems_chain_next (node);
req->aiocbp->error_code = ECANCELED;
a000a34c: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a000a350: e5948000 ldr r8, [r4] <== NOT EXECUTED
rtems_chain_extract (node);
rtems_aio_request *req = (rtems_aio_request *) node;
node = rtems_chain_next (node);
req->aiocbp->error_code = ECANCELED;
req->aiocbp->return_value = -1;
free (req);
a000a354: e1a00004 mov r0, r4 <== NOT EXECUTED
while (!rtems_chain_is_tail (chain, node))
{
rtems_chain_extract (node);
rtems_aio_request *req = (rtems_aio_request *) node;
node = rtems_chain_next (node);
req->aiocbp->error_code = ECANCELED;
a000a358: e5836030 str r6, [r3, #48] ; 0x30 <== NOT EXECUTED
req->aiocbp->return_value = -1;
a000a35c: e5835034 str r5, [r3, #52] ; 0x34 <== NOT EXECUTED
free (req);
a000a360: ebfff286 bl a0006d80 <free> <== NOT EXECUTED
while (!rtems_chain_is_tail (chain, node))
{
rtems_chain_extract (node);
rtems_aio_request *req = (rtems_aio_request *) node;
node = rtems_chain_next (node);
a000a364: e1a04008 mov r4, r8 <== NOT EXECUTED
rtems_chain_control *chain;
rtems_chain_node *node;
chain = &r_chain->perfd;
node = rtems_chain_first (chain);
while (!rtems_chain_is_tail (chain, node))
a000a368: e1540007 cmp r4, r7 <== NOT EXECUTED a000a36c: 1afffff4 bne a000a344 <rtems_aio_remove_fd+0x18> <== NOT EXECUTED
node = rtems_chain_next (node);
req->aiocbp->error_code = ECANCELED;
req->aiocbp->return_value = -1;
free (req);
}
}
a000a370: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000a374 <rtems_aio_remove_req>:
* AIO_NOTCANCELED - if request was not canceled
* AIO_CANCELED - if request was canceled
*/
int rtems_aio_remove_req (rtems_chain_control *chain, struct aiocb *aiocbp)
{
a000a374: e92d4010 push {r4, lr} <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a000a378: e1a03000 mov r3, r0 <== NOT EXECUTED a000a37c: e4934004 ldr r4, [r3], #4 <== NOT EXECUTED
* AIO_CANCELED - if request was canceled
*/
int rtems_aio_remove_req (rtems_chain_control *chain, struct aiocb *aiocbp)
{
if (rtems_chain_is_empty (chain))
a000a380: e1540003 cmp r4, r3 <== NOT EXECUTED a000a384: 1a000003 bne a000a398 <rtems_aio_remove_req+0x24> <== NOT EXECUTED a000a388: ea000010 b a000a3d0 <rtems_aio_remove_req+0x5c> <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a000a38c: e5904000 ldr r4, [r0] <== NOT EXECUTED
rtems_chain_node *node = rtems_chain_first (chain);
rtems_aio_request *current;
current = (rtems_aio_request *) node;
while (!rtems_chain_is_tail (chain, node) && current->aiocbp != aiocbp) {
a000a390: e1540003 cmp r4, r3 <== NOT EXECUTED a000a394: 0a00000f beq a000a3d8 <rtems_aio_remove_req+0x64> <== NOT EXECUTED a000a398: e5942014 ldr r2, [r4, #20] <== NOT EXECUTED
node = rtems_chain_next (node);
current = (rtems_aio_request *) node;
a000a39c: e1a00004 mov r0, r4 <== NOT EXECUTED
rtems_chain_node *node = rtems_chain_first (chain);
rtems_aio_request *current;
current = (rtems_aio_request *) node;
while (!rtems_chain_is_tail (chain, node) && current->aiocbp != aiocbp) {
a000a3a0: e1520001 cmp r2, r1 <== NOT EXECUTED a000a3a4: 1afffff8 bne a000a38c <rtems_aio_remove_req+0x18> <== NOT EXECUTED a000a3a8: eb000881 bl a000c5b4 <_Chain_Extract> <== NOT EXECUTED
if (rtems_chain_is_tail (chain, node))
return AIO_NOTCANCELED;
else
{
rtems_chain_extract (node);
current->aiocbp->error_code = ECANCELED;
a000a3ac: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000a3b0: e3a0208c mov r2, #140 ; 0x8c <== NOT EXECUTED
current->aiocbp->return_value = -1;
free (current);
a000a3b4: e1a00004 mov r0, r4 <== NOT EXECUTED
if (rtems_chain_is_tail (chain, node))
return AIO_NOTCANCELED;
else
{
rtems_chain_extract (node);
current->aiocbp->error_code = ECANCELED;
a000a3b8: e5832030 str r2, [r3, #48] ; 0x30 <== NOT EXECUTED
current->aiocbp->return_value = -1;
a000a3bc: e3e02000 mvn r2, #0 <== NOT EXECUTED a000a3c0: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED
free (current);
a000a3c4: ebfff26d bl a0006d80 <free> <== NOT EXECUTED
}
return AIO_CANCELED;
a000a3c8: e3a00000 mov r0, #0 <== NOT EXECUTED
a000a3cc: e8bd8010 pop {r4, pc} <== NOT EXECUTED
*/
int rtems_aio_remove_req (rtems_chain_control *chain, struct aiocb *aiocbp)
{
if (rtems_chain_is_empty (chain))
return AIO_ALLDONE;
a000a3d0: e3a00002 mov r0, #2 <== NOT EXECUTED
a000a3d4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
node = rtems_chain_next (node);
current = (rtems_aio_request *) node;
}
if (rtems_chain_is_tail (chain, node))
return AIO_NOTCANCELED;
a000a3d8: e3a00001 mov r0, #1 <== NOT EXECUTED
current->aiocbp->return_value = -1;
free (current);
}
return AIO_CANCELED;
}
a000a3dc: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0009fac <rtems_aio_search_fd>:
*
*/
rtems_aio_request_chain *
rtems_aio_search_fd (rtems_chain_control *chain, int fildes, int create)
{
a0009fac: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a0009fb0: e1a03000 mov r3, r0 <== NOT EXECUTED
*
*/
rtems_aio_request_chain *
rtems_aio_search_fd (rtems_chain_control *chain, int fildes, int create)
{
a0009fb4: e1a04000 mov r4, r0 <== NOT EXECUTED a0009fb8: e1a05001 mov r5, r1 <== NOT EXECUTED
}
}
AIO_printf ("Thread finished\n");
return NULL;
}
a0009fbc: e4936004 ldr r6, [r3], #4 <== NOT EXECUTED a0009fc0: ea000000 b a0009fc8 <rtems_aio_search_fd+0x1c> <== NOT EXECUTED a0009fc4: e5966000 ldr r6, [r6] <== NOT EXECUTED
rtems_chain_node *node;
node = rtems_chain_first (chain);
r_chain = (rtems_aio_request_chain *) node;
while (r_chain->fildes < fildes && !rtems_chain_is_tail (chain, node)) {
a0009fc8: e5961014 ldr r1, [r6, #20] <== NOT EXECUTED
node = rtems_chain_next (node);
a0009fcc: e1a08006 mov r8, r6 <== NOT EXECUTED
rtems_chain_node *node;
node = rtems_chain_first (chain);
r_chain = (rtems_aio_request_chain *) node;
while (r_chain->fildes < fildes && !rtems_chain_is_tail (chain, node)) {
a0009fd0: e1510005 cmp r1, r5 <== NOT EXECUTED a0009fd4: ba000003 blt a0009fe8 <rtems_aio_search_fd+0x3c> <== NOT EXECUTED
node = rtems_chain_next (node);
r_chain = (rtems_aio_request_chain *) node;
}
if (r_chain->fildes == fildes)
r_chain->new_fd = 0;
a0009fd8: 03a03000 moveq r3, #0 <== NOT EXECUTED a0009fdc: 05863018 streq r3, [r6, #24] <== NOT EXECUTED
while (r_chain->fildes < fildes && !rtems_chain_is_tail (chain, node)) {
node = rtems_chain_next (node);
r_chain = (rtems_aio_request_chain *) node;
}
if (r_chain->fildes == fildes)
a0009fe0: 0a000019 beq a000a04c <rtems_aio_search_fd+0xa0> <== NOT EXECUTED a0009fe4: ea000001 b a0009ff0 <rtems_aio_search_fd+0x44> <== NOT EXECUTED
rtems_chain_node *node;
node = rtems_chain_first (chain);
r_chain = (rtems_aio_request_chain *) node;
while (r_chain->fildes < fildes && !rtems_chain_is_tail (chain, node)) {
a0009fe8: e1560003 cmp r6, r3 <== NOT EXECUTED a0009fec: 1afffff4 bne a0009fc4 <rtems_aio_search_fd+0x18> <== NOT EXECUTED
}
if (r_chain->fildes == fildes)
r_chain->new_fd = 0;
else {
if (create == 0)
a0009ff0: e3520000 cmp r2, #0 <== NOT EXECUTED
r_chain = NULL;
a0009ff4: 01a06002 moveq r6, r2 <== NOT EXECUTED
}
if (r_chain->fildes == fildes)
r_chain->new_fd = 0;
else {
if (create == 0)
a0009ff8: 0a000013 beq a000a04c <rtems_aio_search_fd+0xa0> <== NOT EXECUTED
r_chain = NULL;
else {
r_chain = malloc (sizeof (rtems_aio_request_chain));
a0009ffc: e3a00024 mov r0, #36 ; 0x24 <== NOT EXECUTED a000a000: ebfff4d4 bl a0007358 <malloc> <== 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 );
a000a004: e280300c add r3, r0, #12 <== NOT EXECUTED
head->next = tail;
a000a008: e5803008 str r3, [r0, #8] <== NOT EXECUTED
rtems_chain_initialize_empty (&r_chain->perfd);
if (rtems_chain_is_empty (chain))
a000a00c: e5942000 ldr r2, [r4] <== NOT EXECUTED
head->previous = NULL;
a000a010: e3a03000 mov r3, #0 <== NOT EXECUTED a000a014: e580300c str r3, [r0, #12] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(
Chain_Control *the_chain
)
{
Chain_Node *head = _Chain_Head( the_chain );
a000a018: e2803008 add r3, r0, #8 <== NOT EXECUTED
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
tail->previous = head;
a000a01c: e5803010 str r3, [r0, #16] <== 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 );
a000a020: e2843004 add r3, r4, #4 <== NOT EXECUTED
r_chain->new_fd = 0;
else {
if (create == 0)
r_chain = NULL;
else {
r_chain = malloc (sizeof (rtems_aio_request_chain));
a000a024: e1a07000 mov r7, r0 <== NOT EXECUTED
rtems_chain_initialize_empty (&r_chain->perfd);
if (rtems_chain_is_empty (chain))
a000a028: e1520003 cmp r2, r3 <== NOT EXECUTED
r_chain->new_fd = 0;
else {
if (create == 0)
r_chain = NULL;
else {
r_chain = malloc (sizeof (rtems_aio_request_chain));
a000a02c: e1a06000 mov r6, r0 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void rtems_chain_insert(
rtems_chain_node *after_node,
rtems_chain_node *the_node
)
{
_Chain_Insert( after_node, the_node );
a000a030: e1a01007 mov r1, r7 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Chain_Prepend(
Chain_Control *the_chain,
Chain_Node *the_node
)
{
_Chain_Insert(_Chain_Head(the_chain), the_node);
a000a034: 01a00004 moveq r0, r4 <== NOT EXECUTED a000a038: 15980004 ldrne r0, [r8, #4] <== NOT EXECUTED a000a03c: eb000971 bl a000c608 <_Chain_Insert> <== NOT EXECUTED
if (rtems_chain_is_empty (chain))
rtems_chain_prepend (chain, &r_chain->next_fd);
else
rtems_chain_insert (rtems_chain_previous (node), &r_chain->next_fd);
r_chain->new_fd = 1;
a000a040: e3a03001 mov r3, #1 <== NOT EXECUTED a000a044: e5873018 str r3, [r7, #24] <== NOT EXECUTED
r_chain->fildes = fildes;
a000a048: e5875014 str r5, [r7, #20] <== NOT EXECUTED
}
}
return r_chain;
}
a000a04c: e1a00006 mov r0, r6 <== NOT EXECUTED
a000a050: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0006a6c <rtems_assoc_local_by_name>:
uint32_t rtems_assoc_local_by_name(
const rtems_assoc_t *ap,
const char *name
)
{
a0006a6c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_name(ap, name);
a0006a70: eb00007c bl a0006c68 <rtems_assoc_ptr_by_name> <== NOT EXECUTED
if (nap)
a0006a74: e3500000 cmp r0, #0 <== NOT EXECUTED
return nap->local_value;
a0006a78: 15900004 ldrne r0, [r0, #4] <== NOT EXECUTED
return 0;
}
a0006a7c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0010790 <rtems_assoc_local_by_remote>:
uint32_t rtems_assoc_local_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
a0010790: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_remote(ap, remote_value);
a0010794: eb000002 bl a00107a4 <rtems_assoc_ptr_by_remote> <== NOT EXECUTED
if (nap)
a0010798: e3500000 cmp r0, #0 <== NOT EXECUTED
return nap->local_value;
a001079c: 15900004 ldrne r0, [r0, #4] <== NOT EXECUTED
return 0;
}
a00107a0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a001074c <rtems_assoc_local_by_remote_bitfield>:
uint32_t rtems_assoc_local_by_remote_bitfield(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
a001074c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a0010750: e1a08000 mov r8, r0 <== NOT EXECUTED
a0010754: e1a07001 mov r7, r1 <== NOT EXECUTED
a0010758: e3a06020 mov r6, #32 <== NOT EXECUTED
uint32_t b; uint32_t local_value = 0;
a001075c: e3a05000 mov r5, #0 <== NOT EXECUTED
for (b = 1; b; b <<= 1) {
a0010760: e3a04001 mov r4, #1 <== NOT EXECUTED
if (b & remote_value)
a0010764: e1140007 tst r4, r7 <== NOT EXECUTED a0010768: 0a000003 beq a001077c <rtems_assoc_local_by_remote_bitfield+0x30><== NOT EXECUTED
local_value |= rtems_assoc_local_by_remote(ap, b);
a001076c: e1a00008 mov r0, r8 <== NOT EXECUTED a0010770: e1a01004 mov r1, r4 <== NOT EXECUTED a0010774: eb000005 bl a0010790 <rtems_assoc_local_by_remote> <== NOT EXECUTED a0010778: e1855000 orr r5, r5, r0 <== NOT EXECUTED
)
{
uint32_t b;
uint32_t local_value = 0;
for (b = 1; b; b <<= 1) {
a001077c: e2566001 subs r6, r6, #1 <== NOT EXECUTED a0010780: e1a04084 lsl r4, r4, #1 <== NOT EXECUTED a0010784: 1afffff6 bne a0010764 <rtems_assoc_local_by_remote_bitfield+0x18><== NOT EXECUTED
if (b & remote_value)
local_value |= rtems_assoc_local_by_remote(ap, b);
}
return local_value;
}
a0010788: e1a00005 mov r0, r5 <== NOT EXECUTED
a001078c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0015aa0 <rtems_assoc_name_bad>:
sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value);
#else
static char bad_buffer[40] = "<assocnamebad.c: : BAD NAME>";
#endif
return bad_buffer;
}
a0015aa0: e59f0000 ldr r0, [pc, #0] ; a0015aa8 <rtems_assoc_name_bad+0x8><== NOT EXECUTED a0015aa4: e12fff1e bx lr <== NOT EXECUTED
a0012adc <rtems_assoc_name_by_local>:
const char *rtems_assoc_name_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
a0012adc: e92d4010 push {r4, lr} <== NOT EXECUTED
a0012ae0: e1a04001 mov r4, r1 <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
a0012ae4: eb000006 bl a0012b04 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if (nap)
a0012ae8: e3500000 cmp r0, #0 <== NOT EXECUTED a0012aec: 0a000001 beq a0012af8 <rtems_assoc_name_by_local+0x1c> <== NOT EXECUTED
return nap->name;
return rtems_assoc_name_bad(local_value);
}
a0012af0: e5900000 ldr r0, [r0] <== NOT EXECUTED
a0012af4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
nap = rtems_assoc_ptr_by_local(ap, local_value);
if (nap)
return nap->name;
return rtems_assoc_name_bad(local_value);
a0012af8: e1a00004 mov r0, r4 <== NOT EXECUTED
}
a0012afc: e8bd4010 pop {r4, lr} <== NOT EXECUTED
nap = rtems_assoc_ptr_by_local(ap, local_value);
if (nap)
return nap->name;
return rtems_assoc_name_bad(local_value);
a0012b00: ea000be6 b a0015aa0 <rtems_assoc_name_bad> <== NOT EXECUTED
a0006ad8 <rtems_assoc_name_by_local_bitfield>:
char *buffer
)
{
uint32_t b;
*buffer = 0;
a0006ad8: e3a03000 mov r3, #0 <== NOT EXECUTED
char *rtems_assoc_name_by_local_bitfield(
const rtems_assoc_t *ap,
uint32_t value,
char *buffer
)
{
a0006adc: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
uint32_t b;
*buffer = 0;
a0006ae0: e5c23000 strb r3, [r2] <== NOT EXECUTED
char *rtems_assoc_name_by_local_bitfield(
const rtems_assoc_t *ap,
uint32_t value,
char *buffer
)
{
a0006ae4: e1a05000 mov r5, r0 <== NOT EXECUTED a0006ae8: e1a04001 mov r4, r1 <== NOT EXECUTED a0006aec: e1a06002 mov r6, r2 <== NOT EXECUTED
uint32_t b;
*buffer = 0;
a0006af0: e3a08020 mov r8, #32 <== NOT EXECUTED
for (b = 1; b; b <<= 1) {
a0006af4: e3a07001 mov r7, #1 <== NOT EXECUTED
if (b & value) {
a0006af8: e1170004 tst r7, r4 <== NOT EXECUTED a0006afc: 0a00000b beq a0006b30 <rtems_assoc_name_by_local_bitfield+0x58><== NOT EXECUTED
if (*buffer)
a0006b00: e5d63000 ldrb r3, [r6] <== NOT EXECUTED a0006b04: e3530000 cmp r3, #0 <== NOT EXECUTED a0006b08: 0a000002 beq a0006b18 <rtems_assoc_name_by_local_bitfield+0x40><== NOT EXECUTED
strcat(buffer, " ");
a0006b0c: e1a00006 mov r0, r6 <== NOT EXECUTED a0006b10: e59f102c ldr r1, [pc, #44] ; a0006b44 <rtems_assoc_name_by_local_bitfield+0x6c><== NOT EXECUTED a0006b14: eb002f84 bl a001292c <strcat> <== NOT EXECUTED
strcat(buffer, rtems_assoc_name_by_local(ap, b));
a0006b18: e1a01007 mov r1, r7 <== NOT EXECUTED a0006b1c: e1a00005 mov r0, r5 <== NOT EXECUTED a0006b20: eb000008 bl a0006b48 <rtems_assoc_name_by_local> <== NOT EXECUTED a0006b24: e1a01000 mov r1, r0 <== NOT EXECUTED a0006b28: e1a00006 mov r0, r6 <== NOT EXECUTED a0006b2c: eb002f7e bl a001292c <strcat> <== NOT EXECUTED
{
uint32_t b;
*buffer = 0;
for (b = 1; b; b <<= 1) {
a0006b30: e2588001 subs r8, r8, #1 <== NOT EXECUTED a0006b34: e1a07087 lsl r7, r7, #1 <== NOT EXECUTED a0006b38: 1affffee bne a0006af8 <rtems_assoc_name_by_local_bitfield+0x20><== NOT EXECUTED
strcat(buffer, rtems_assoc_name_by_local(ap, b));
}
}
return buffer;
}
a0006b3c: e1a00006 mov r0, r6 <== NOT EXECUTED
a0006b40: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0006be0 <rtems_assoc_name_by_remote>:
const char *rtems_assoc_name_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
a0006be0: e92d4010 push {r4, lr} <== NOT EXECUTED
a0006be4: e1a04001 mov r4, r1 <== NOT EXECUTED
const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_remote(ap, remote_value);
a0006be8: eb000038 bl a0006cd0 <rtems_assoc_ptr_by_remote> <== NOT EXECUTED
if (nap)
a0006bec: e3500000 cmp r0, #0 <== NOT EXECUTED a0006bf0: 0a000001 beq a0006bfc <rtems_assoc_name_by_remote+0x1c> <== NOT EXECUTED
return nap->name;
return rtems_assoc_name_bad(remote_value);
}
a0006bf4: e5900000 ldr r0, [r0] <== NOT EXECUTED
a0006bf8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
nap = rtems_assoc_ptr_by_remote(ap, remote_value);
if (nap)
return nap->name;
return rtems_assoc_name_bad(remote_value);
a0006bfc: e1a00004 mov r0, r4 <== NOT EXECUTED
}
a0006c00: e8bd4010 pop {r4, lr} <== NOT EXECUTED
nap = rtems_assoc_ptr_by_remote(ap, remote_value);
if (nap)
return nap->name;
return rtems_assoc_name_bad(remote_value);
a0006c04: ea001f04 b a000e81c <rtems_assoc_name_bad> <== NOT EXECUTED
a0006b70 <rtems_assoc_name_by_remote_bitfield>:
char *buffer
)
{
uint32_t b;
*buffer = 0;
a0006b70: e3a03000 mov r3, #0 <== NOT EXECUTED
char *rtems_assoc_name_by_remote_bitfield(
const rtems_assoc_t *ap,
uint32_t value,
char *buffer
)
{
a0006b74: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
uint32_t b;
*buffer = 0;
a0006b78: e5c23000 strb r3, [r2] <== NOT EXECUTED
char *rtems_assoc_name_by_remote_bitfield(
const rtems_assoc_t *ap,
uint32_t value,
char *buffer
)
{
a0006b7c: e1a05000 mov r5, r0 <== NOT EXECUTED a0006b80: e1a04001 mov r4, r1 <== NOT EXECUTED a0006b84: e1a06002 mov r6, r2 <== NOT EXECUTED
uint32_t b;
*buffer = 0;
a0006b88: e3a08020 mov r8, #32 <== NOT EXECUTED
for (b = 1; b; b <<= 1) {
a0006b8c: e3a07001 mov r7, #1 <== NOT EXECUTED
if (b & value) {
a0006b90: e1170004 tst r7, r4 <== NOT EXECUTED a0006b94: 0a00000b beq a0006bc8 <rtems_assoc_name_by_remote_bitfield+0x58><== NOT EXECUTED
if (*buffer)
a0006b98: e5d63000 ldrb r3, [r6] <== NOT EXECUTED a0006b9c: e3530000 cmp r3, #0 <== NOT EXECUTED a0006ba0: 0a000002 beq a0006bb0 <rtems_assoc_name_by_remote_bitfield+0x40><== NOT EXECUTED
strcat(buffer, " ");
a0006ba4: e1a00006 mov r0, r6 <== NOT EXECUTED a0006ba8: e59f102c ldr r1, [pc, #44] ; a0006bdc <rtems_assoc_name_by_remote_bitfield+0x6c><== NOT EXECUTED a0006bac: eb002f5e bl a001292c <strcat> <== NOT EXECUTED
strcat(buffer, rtems_assoc_name_by_remote(ap, b));
a0006bb0: e1a01007 mov r1, r7 <== NOT EXECUTED a0006bb4: e1a00005 mov r0, r5 <== NOT EXECUTED a0006bb8: eb000008 bl a0006be0 <rtems_assoc_name_by_remote> <== NOT EXECUTED a0006bbc: e1a01000 mov r1, r0 <== NOT EXECUTED a0006bc0: e1a00006 mov r0, r6 <== NOT EXECUTED a0006bc4: eb002f58 bl a001292c <strcat> <== NOT EXECUTED
{
uint32_t b;
*buffer = 0;
for (b = 1; b; b <<= 1) {
a0006bc8: e2588001 subs r8, r8, #1 <== NOT EXECUTED a0006bcc: e1a07087 lsl r7, r7, #1 <== NOT EXECUTED a0006bd0: 1affffee bne a0006b90 <rtems_assoc_name_by_remote_bitfield+0x20><== NOT EXECUTED
strcat(buffer, rtems_assoc_name_by_remote(ap, b));
}
}
return buffer;
}
a0006bd4: e1a00006 mov r0, r6 <== NOT EXECUTED
a0006bd8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0012b04 <rtems_assoc_ptr_by_local>:
const rtems_assoc_t *rtems_assoc_ptr_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
a0012b04: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a0012b08: e1a04000 mov r4, r0 <== NOT EXECUTED
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
a0012b0c: e5900000 ldr r0, [r0] <== NOT EXECUTED
const rtems_assoc_t *rtems_assoc_ptr_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
a0012b10: e1a05001 mov r5, r1 <== NOT EXECUTED
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
a0012b14: e3500000 cmp r0, #0 <== NOT EXECUTED a0012b18: 0a00000a beq a0012b48 <rtems_assoc_ptr_by_local+0x44> <== NOT EXECUTED a0012b1c: e59f103c ldr r1, [pc, #60] ; a0012b60 <rtems_assoc_ptr_by_local+0x5c><== NOT EXECUTED a0012b20: eb0011c1 bl a001722c <strcmp> <== NOT EXECUTED a0012b24: e3500000 cmp r0, #0 <== NOT EXECUTED
default_ap = ap++;
a0012b28: 01a00004 moveq r0, r4 <== NOT EXECUTED
const rtems_assoc_t *rtems_assoc_ptr_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
const rtems_assoc_t *default_ap = 0;
a0012b2c: 13a00000 movne r0, #0 <== NOT EXECUTED
if (rtems_assoc_is_default(ap))
a0012b30: 1a000004 bne a0012b48 <rtems_assoc_ptr_by_local+0x44> <== NOT EXECUTED a0012b34: ea000002 b a0012b44 <rtems_assoc_ptr_by_local+0x40> <== NOT EXECUTED
default_ap = ap++;
for ( ; ap->name; ap++)
if (ap->local_value == local_value)
a0012b38: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a0012b3c: e1530005 cmp r3, r5 <== NOT EXECUTED a0012b40: 0a000004 beq a0012b58 <rtems_assoc_ptr_by_local+0x54> <== NOT EXECUTED
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
a0012b44: e284400c add r4, r4, #12 <== NOT EXECUTED a0012b48: e5943000 ldr r3, [r4] <== NOT EXECUTED a0012b4c: e3530000 cmp r3, #0 <== NOT EXECUTED a0012b50: 1afffff8 bne a0012b38 <rtems_assoc_ptr_by_local+0x34> <== NOT EXECUTED
if (ap->local_value == local_value)
return ap;
return default_ap;
a0012b54: e1a04000 mov r4, r0 <== NOT EXECUTED
}
a0012b58: e1a00004 mov r0, r4 <== NOT EXECUTED
a0012b5c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0006c68 <rtems_assoc_ptr_by_name>:
const rtems_assoc_t *rtems_assoc_ptr_by_name(
const rtems_assoc_t *ap,
const char *name
)
{
a0006c68: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a0006c6c: e1a04000 mov r4, r0 <== NOT EXECUTED
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
a0006c70: e5900000 ldr r0, [r0] <== NOT EXECUTED
const rtems_assoc_t *rtems_assoc_ptr_by_name(
const rtems_assoc_t *ap,
const char *name
)
{
a0006c74: e1a06001 mov r6, r1 <== NOT EXECUTED
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
a0006c78: e3500000 cmp r0, #0 <== NOT EXECUTED
const rtems_assoc_t *rtems_assoc_ptr_by_name(
const rtems_assoc_t *ap,
const char *name
)
{
const rtems_assoc_t *default_ap = 0;
a0006c7c: 01a05000 moveq r5, r0 <== NOT EXECUTED
if (rtems_assoc_is_default(ap))
a0006c80: 0a00000b beq a0006cb4 <rtems_assoc_ptr_by_name+0x4c> <== NOT EXECUTED a0006c84: e59f1040 ldr r1, [pc, #64] ; a0006ccc <rtems_assoc_ptr_by_name+0x64><== NOT EXECUTED a0006c88: eb002f52 bl a00129d8 <strcmp> <== NOT EXECUTED a0006c8c: e3500000 cmp r0, #0 <== NOT EXECUTED
default_ap = ap++;
a0006c90: 01a05004 moveq r5, r4 <== NOT EXECUTED
const rtems_assoc_t *rtems_assoc_ptr_by_name(
const rtems_assoc_t *ap,
const char *name
)
{
const rtems_assoc_t *default_ap = 0;
a0006c94: 13a05000 movne r5, #0 <== NOT EXECUTED
if (rtems_assoc_is_default(ap))
a0006c98: 1a000005 bne a0006cb4 <rtems_assoc_ptr_by_name+0x4c> <== NOT EXECUTED a0006c9c: ea000003 b a0006cb0 <rtems_assoc_ptr_by_name+0x48> <== NOT EXECUTED
default_ap = ap++;
for ( ; ap->name; ap++)
if (strcmp(ap->name, name) == 0)
a0006ca0: e1a01006 mov r1, r6 <== NOT EXECUTED a0006ca4: eb002f4b bl a00129d8 <strcmp> <== NOT EXECUTED a0006ca8: e3500000 cmp r0, #0 <== NOT EXECUTED a0006cac: 0a000004 beq a0006cc4 <rtems_assoc_ptr_by_name+0x5c> <== NOT EXECUTED
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
a0006cb0: e284400c add r4, r4, #12 <== NOT EXECUTED a0006cb4: e5940000 ldr r0, [r4] <== NOT EXECUTED a0006cb8: e3500000 cmp r0, #0 <== NOT EXECUTED a0006cbc: 1afffff7 bne a0006ca0 <rtems_assoc_ptr_by_name+0x38> <== NOT EXECUTED
if (strcmp(ap->name, name) == 0)
return ap;
return default_ap;
a0006cc0: e1a04005 mov r4, r5 <== NOT EXECUTED
}
a0006cc4: e1a00004 mov r0, r4 <== NOT EXECUTED
a0006cc8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a00107a4 <rtems_assoc_ptr_by_remote>:
const rtems_assoc_t *rtems_assoc_ptr_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
a00107a4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a00107a8: e1a04000 mov r4, r0 <== NOT EXECUTED
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
a00107ac: e5900000 ldr r0, [r0] <== NOT EXECUTED
const rtems_assoc_t *rtems_assoc_ptr_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
a00107b0: e1a05001 mov r5, r1 <== NOT EXECUTED
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
a00107b4: e3500000 cmp r0, #0 <== NOT EXECUTED a00107b8: 0a00000a beq a00107e8 <rtems_assoc_ptr_by_remote+0x44> <== NOT EXECUTED a00107bc: e59f103c ldr r1, [pc, #60] ; a0010800 <rtems_assoc_ptr_by_remote+0x5c><== NOT EXECUTED a00107c0: eb000537 bl a0011ca4 <strcmp> <== NOT EXECUTED a00107c4: e3500000 cmp r0, #0 <== NOT EXECUTED
default_ap = ap++;
a00107c8: 01a00004 moveq r0, r4 <== NOT EXECUTED
const rtems_assoc_t *rtems_assoc_ptr_by_remote(
const rtems_assoc_t *ap,
uint32_t remote_value
)
{
const rtems_assoc_t *default_ap = 0;
a00107cc: 13a00000 movne r0, #0 <== NOT EXECUTED
if (rtems_assoc_is_default(ap))
a00107d0: 1a000004 bne a00107e8 <rtems_assoc_ptr_by_remote+0x44> <== NOT EXECUTED a00107d4: ea000002 b a00107e4 <rtems_assoc_ptr_by_remote+0x40> <== NOT EXECUTED
default_ap = ap++;
for ( ; ap->name; ap++)
if (ap->remote_value == remote_value)
a00107d8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a00107dc: e1530005 cmp r3, r5 <== NOT EXECUTED a00107e0: 0a000004 beq a00107f8 <rtems_assoc_ptr_by_remote+0x54> <== NOT EXECUTED
const rtems_assoc_t *default_ap = 0;
if (rtems_assoc_is_default(ap))
default_ap = ap++;
for ( ; ap->name; ap++)
a00107e4: e284400c add r4, r4, #12 <== NOT EXECUTED a00107e8: e5943000 ldr r3, [r4] <== NOT EXECUTED a00107ec: e3530000 cmp r3, #0 <== NOT EXECUTED a00107f0: 1afffff8 bne a00107d8 <rtems_assoc_ptr_by_remote+0x34> <== NOT EXECUTED
if (ap->remote_value == remote_value)
return ap;
return default_ap;
a00107f4: e1a04000 mov r4, r0 <== NOT EXECUTED
}
a00107f8: e1a00004 mov r0, r4 <== NOT EXECUTED
a00107fc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0006d74 <rtems_assoc_remote_by_local>:
uint32_t rtems_assoc_remote_by_local(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
a0006d74: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_local(ap, local_value);
a0006d78: ebffffa2 bl a0006c08 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if (nap)
a0006d7c: e3500000 cmp r0, #0 <== NOT EXECUTED
return nap->remote_value;
a0006d80: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED
return 0;
}
a0006d84: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0006d30 <rtems_assoc_remote_by_local_bitfield>:
uint32_t rtems_assoc_remote_by_local_bitfield(
const rtems_assoc_t *ap,
uint32_t local_value
)
{
a0006d30: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a0006d34: e1a08000 mov r8, r0 <== NOT EXECUTED
a0006d38: e1a07001 mov r7, r1 <== NOT EXECUTED
a0006d3c: e3a06020 mov r6, #32 <== NOT EXECUTED
uint32_t b; uint32_t remote_value = 0;
a0006d40: e3a05000 mov r5, #0 <== NOT EXECUTED
for (b = 1; b; b <<= 1)
a0006d44: e3a04001 mov r4, #1 <== NOT EXECUTED
if (b & local_value)
a0006d48: e1140007 tst r4, r7 <== NOT EXECUTED a0006d4c: 0a000003 beq a0006d60 <rtems_assoc_remote_by_local_bitfield+0x30><== NOT EXECUTED
remote_value |= rtems_assoc_remote_by_local(ap, b);
a0006d50: e1a00008 mov r0, r8 <== NOT EXECUTED a0006d54: e1a01004 mov r1, r4 <== NOT EXECUTED a0006d58: eb000005 bl a0006d74 <rtems_assoc_remote_by_local> <== NOT EXECUTED a0006d5c: e1855000 orr r5, r5, r0 <== NOT EXECUTED
)
{
uint32_t b;
uint32_t remote_value = 0;
for (b = 1; b; b <<= 1)
a0006d60: e2566001 subs r6, r6, #1 <== NOT EXECUTED a0006d64: e1a04084 lsl r4, r4, #1 <== NOT EXECUTED a0006d68: 1afffff6 bne a0006d48 <rtems_assoc_remote_by_local_bitfield+0x18><== NOT EXECUTED
if (b & local_value)
remote_value |= rtems_assoc_remote_by_local(ap, b);
return remote_value;
}
a0006d6c: e1a00005 mov r0, r5 <== NOT EXECUTED
a0006d70: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0006d88 <rtems_assoc_remote_by_name>:
uint32_t rtems_assoc_remote_by_name(
const rtems_assoc_t *ap,
const char *name
)
{
a0006d88: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
const rtems_assoc_t *nap;
nap = rtems_assoc_ptr_by_name(ap, name);
a0006d8c: ebffffb5 bl a0006c68 <rtems_assoc_ptr_by_name> <== NOT EXECUTED
if (nap)
a0006d90: e3500000 cmp r0, #0 <== NOT EXECUTED
return nap->remote_value;
a0006d94: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED
return 0;
}
a0006d98: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a00113e4 <rtems_barrier_create>:
rtems_name name,
rtems_attribute attribute_set,
uint32_t maximum_waiters,
rtems_id *id
)
{
a00113e4: e92d41f3 push {r0, r1, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
a00113e8: e2508000 subs r8, r0, #0 <== NOT EXECUTED
rtems_name name,
rtems_attribute attribute_set,
uint32_t maximum_waiters,
rtems_id *id
)
{
a00113ec: e1a04001 mov r4, r1 <== NOT EXECUTED a00113f0: e1a06003 mov r6, r3 <== NOT EXECUTED
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
a00113f4: 03a00003 moveq r0, #3 <== NOT EXECUTED
)
{
Barrier_Control *the_barrier;
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
a00113f8: 0a000026 beq a0011498 <rtems_barrier_create+0xb4> <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !id )
a00113fc: e3530000 cmp r3, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a0011400: 03a00009 moveq r0, #9 <== NOT EXECUTED
CORE_barrier_Attributes the_attributes;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
a0011404: 0a000023 beq a0011498 <rtems_barrier_create+0xb4> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
a0011408: e3110010 tst r1, #16 <== NOT EXECUTED a001140c: 0a000004 beq a0011424 <rtems_barrier_create+0x40> <== NOT EXECUTED
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
a0011410: e3a03000 mov r3, #0 <== NOT EXECUTED
if ( maximum_waiters == 0 )
a0011414: e1520003 cmp r2, r3 <== 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;
a0011418: e58d3000 str r3, [sp] <== NOT EXECUTED
if ( maximum_waiters == 0 )
a001141c: 1a000002 bne a001142c <rtems_barrier_create+0x48> <== NOT EXECUTED a0011420: ea00001b b a0011494 <rtems_barrier_create+0xb0> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
} else
the_attributes.discipline = CORE_BARRIER_MANUAL_RELEASE;
a0011424: e3a03001 mov r3, #1 <== NOT EXECUTED a0011428: e58d3000 str r3, [sp] <== NOT EXECUTED a001142c: e59f3068 ldr r3, [pc, #104] ; a001149c <rtems_barrier_create+0xb8><== NOT EXECUTED
the_attributes.maximum_count = maximum_waiters;
a0011430: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a0011434: e5932000 ldr r2, [r3] <== NOT EXECUTED a0011438: e2822001 add r2, r2, #1 <== NOT EXECUTED a001143c: e5832000 str r2, [r3] <== NOT EXECUTED
* 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 );
a0011440: e59f7058 ldr r7, [pc, #88] ; a00114a0 <rtems_barrier_create+0xbc><== NOT EXECUTED a0011444: e1a00007 mov r0, r7 <== NOT EXECUTED a0011448: ebffec83 bl a000c65c <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* prevents deletion */
the_barrier = _Barrier_Allocate();
if ( !the_barrier ) {
a001144c: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0011450: 1a000002 bne a0011460 <rtems_barrier_create+0x7c> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0011454: ebfff0b4 bl a000d72c <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
a0011458: e3a00005 mov r0, #5 <== NOT EXECUTED a001145c: ea00000d b a0011498 <rtems_barrier_create+0xb4> <== NOT EXECUTED
}
the_barrier->attribute_set = attribute_set;
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
a0011460: e2850014 add r0, r5, #20 <== NOT EXECUTED a0011464: e1a0100d mov r1, sp <== NOT EXECUTED
if ( !the_barrier ) {
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_barrier->attribute_set = attribute_set;
a0011468: e5854010 str r4, [r5, #16] <== NOT EXECUTED
_CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes );
a001146c: eb00021c bl a0011ce4 <_CORE_barrier_Initialize> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a0011470: e597201c ldr r2, [r7, #28] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
a0011474: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a0011478: e1d510b8 ldrh r1, [r5, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a001147c: e7825101 str r5, [r2, r1, lsl #2] <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
a0011480: e585800c str r8, [r5, #12] <== NOT EXECUTED
&_Barrier_Information,
&the_barrier->Object,
(Objects_Name) name
);
*id = the_barrier->Object.id;
a0011484: e5863000 str r3, [r6] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0011488: ebfff0a7 bl a000d72c <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a001148c: e3a00000 mov r0, #0 <== NOT EXECUTED a0011490: ea000000 b a0011498 <rtems_barrier_create+0xb4> <== NOT EXECUTED
/* Initialize core barrier attributes */
if ( _Attributes_Is_barrier_automatic( attribute_set ) ) {
the_attributes.discipline = CORE_BARRIER_AUTOMATIC_RELEASE;
if ( maximum_waiters == 0 )
return RTEMS_INVALID_NUMBER;
a0011494: e3a0000a mov r0, #10 <== NOT EXECUTED
*id = the_barrier->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
a0011498: e8bd81fc pop {r2, r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a00114a4 <rtems_barrier_delete>:
*/
rtems_status_code rtems_barrier_delete(
rtems_id id
)
{
a00114a4: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a00114a8: e1a01000 mov r1, r0 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Barrier_Control *)
_Objects_Get( &_Barrier_Information, id, location );
a00114ac: e1a0200d mov r2, sp <== NOT EXECUTED a00114b0: e59f0048 ldr r0, [pc, #72] ; a0011500 <rtems_barrier_delete+0x5c><== NOT EXECUTED a00114b4: ebffed87 bl a000cad8 <_Objects_Get> <== NOT EXECUTED
Barrier_Control *the_barrier;
Objects_Locations location;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
a00114b8: e59d4000 ldr r4, [sp] <== NOT EXECUTED a00114bc: e1a05000 mov r5, r0 <== NOT EXECUTED a00114c0: e3540000 cmp r4, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00114c4: 13a00004 movne r0, #4 <== NOT EXECUTED
{
Barrier_Control *the_barrier;
Objects_Locations location;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
a00114c8: 1a00000b bne a00114fc <rtems_barrier_delete+0x58> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_barrier_Flush(
a00114cc: e3a02002 mov r2, #2 <== NOT EXECUTED a00114d0: e2850014 add r0, r5, #20 <== NOT EXECUTED a00114d4: e1a01004 mov r1, r4 <== NOT EXECUTED a00114d8: ebfff252 bl a000de28 <_Thread_queue_Flush> <== NOT EXECUTED
&the_barrier->Barrier,
NULL,
CORE_BARRIER_WAS_DELETED
);
_Objects_Close( &_Barrier_Information, &the_barrier->Object );
a00114dc: e59f001c ldr r0, [pc, #28] ; a0011500 <rtems_barrier_delete+0x5c><== NOT EXECUTED a00114e0: e1a01005 mov r1, r5 <== NOT EXECUTED a00114e4: ebffec7e bl a000c6e4 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Barrier_Free (
Barrier_Control *the_barrier
)
{
_Objects_Free( &_Barrier_Information, &the_barrier->Object );
a00114e8: e59f0010 ldr r0, [pc, #16] ; a0011500 <rtems_barrier_delete+0x5c><== NOT EXECUTED a00114ec: e1a01005 mov r1, r5 <== NOT EXECUTED a00114f0: ebffed20 bl a000c978 <_Objects_Free> <== NOT EXECUTED
_Barrier_Free( the_barrier );
_Thread_Enable_dispatch();
a00114f4: ebfff08c bl a000d72c <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a00114f8: e1a00004 mov r0, r4 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a00114fc: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000a140 <rtems_barrier_ident>:
rtems_status_code rtems_barrier_ident(
rtems_name name,
rtems_id *id
)
{
a000a140: e1a02000 mov r2, r0 <== NOT EXECUTED
a000a144: e1a03001 mov r3, r1 <== NOT EXECUTED
a000a148: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
a000a14c: e1a01002 mov r1, r2 <== NOT EXECUTED a000a150: e59f0010 ldr r0, [pc, #16] ; a000a168 <rtems_barrier_ident+0x28><== NOT EXECUTED a000a154: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000a158: eb000821 bl a000c1e4 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
a000a15c: e59f3008 ldr r3, [pc, #8] ; a000a16c <rtems_barrier_ident+0x2c><== NOT EXECUTED
a000a160: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
a000a164: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0011544 <rtems_barrier_release>:
rtems_status_code rtems_barrier_release(
rtems_id id,
uint32_t *released
)
{
a0011544: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
Barrier_Control *the_barrier;
Objects_Locations location;
if ( !released )
a0011548: e2516000 subs r6, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_barrier_release(
rtems_id id,
uint32_t *released
)
{
a001154c: e1a05000 mov r5, r0 <== NOT EXECUTED
Barrier_Control *the_barrier;
Objects_Locations location;
if ( !released )
return RTEMS_INVALID_ADDRESS;
a0011550: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
Barrier_Control *the_barrier;
Objects_Locations location;
if ( !released )
a0011554: 0a00000e beq a0011594 <rtems_barrier_release+0x50> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Barrier_Control *)
_Objects_Get( &_Barrier_Information, id, location );
a0011558: e59f0038 ldr r0, [pc, #56] ; a0011598 <rtems_barrier_release+0x54><== NOT EXECUTED a001155c: e1a01005 mov r1, r5 <== NOT EXECUTED a0011560: e1a0200d mov r2, sp <== NOT EXECUTED a0011564: ebffed5b bl a000cad8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
a0011568: e59d4000 ldr r4, [sp] <== NOT EXECUTED a001156c: e3540000 cmp r4, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0011570: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !released )
return RTEMS_INVALID_ADDRESS;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
a0011574: 1a000006 bne a0011594 <rtems_barrier_release+0x50> <== NOT EXECUTED
case OBJECTS_LOCAL:
*released = _CORE_barrier_Release( &the_barrier->Barrier, id, NULL );
a0011578: e1a01005 mov r1, r5 <== NOT EXECUTED a001157c: e1a02004 mov r2, r4 <== NOT EXECUTED a0011580: e2800014 add r0, r0, #20 <== NOT EXECUTED a0011584: eb0001de bl a0011d04 <_CORE_barrier_Release> <== NOT EXECUTED a0011588: e5860000 str r0, [r6] <== NOT EXECUTED
_Thread_Enable_dispatch();
a001158c: ebfff066 bl a000d72c <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0011590: e1a00004 mov r0, r4 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0011594: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a001159c <rtems_barrier_wait>:
rtems_status_code rtems_barrier_wait(
rtems_id id,
rtems_interval timeout
)
{
a001159c: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED
a00115a0: e1a04000 mov r4, r0 <== NOT EXECUTED
a00115a4: e1a05001 mov r5, r1 <== NOT EXECUTED
a00115a8: e59f0048 ldr r0, [pc, #72] ; a00115f8 <rtems_barrier_wait+0x5c><== NOT EXECUTED
a00115ac: e1a01004 mov r1, r4 <== NOT EXECUTED
a00115b0: e28d2004 add r2, sp, #4 <== NOT EXECUTED
a00115b4: ebffed47 bl a000cad8 <_Objects_Get> <== NOT EXECUTED
Barrier_Control *the_barrier;
Objects_Locations location;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
a00115b8: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a00115bc: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00115c0: 13a00004 movne r0, #4 <== NOT EXECUTED
{
Barrier_Control *the_barrier;
Objects_Locations location;
the_barrier = _Barrier_Get( id, &location );
switch ( location ) {
a00115c4: 1a00000a bne a00115f4 <rtems_barrier_wait+0x58> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_barrier_Wait(
a00115c8: e2800014 add r0, r0, #20 <== NOT EXECUTED a00115cc: e58d3000 str r3, [sp] <== NOT EXECUTED a00115d0: e1a01004 mov r1, r4 <== NOT EXECUTED a00115d4: e1a03005 mov r3, r5 <== NOT EXECUTED a00115d8: e3a02001 mov r2, #1 <== NOT EXECUTED a00115dc: eb0001d4 bl a0011d34 <_CORE_barrier_Wait> <== NOT EXECUTED
id,
true,
timeout,
NULL
);
_Thread_Enable_dispatch();
a00115e0: ebfff051 bl a000d72c <_Thread_Enable_dispatch> <== NOT EXECUTED
return _Barrier_Translate_core_barrier_return_code(
_Thread_Executing->Wait.return_code );
a00115e4: e59f3010 ldr r3, [pc, #16] ; a00115fc <rtems_barrier_wait+0x60><== NOT EXECUTED a00115e8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
true,
timeout,
NULL
);
_Thread_Enable_dispatch();
return _Barrier_Translate_core_barrier_return_code(
a00115ec: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a00115f0: eb00064c bl a0012f28 <_Barrier_Translate_core_barrier_return_code><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a00115f4: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED
a0005c54 <rtems_bsp_cmdline_get>:
extern const char *bsp_boot_cmdline;
const char *rtems_bsp_cmdline_get(void)
{
return bsp_boot_cmdline;
}
a0005c54: e59f3004 ldr r3, [pc, #4] ; a0005c60 <rtems_bsp_cmdline_get+0xc><== NOT EXECUTED a0005c58: e5930000 ldr r0, [r3] <== NOT EXECUTED a0005c5c: e12fff1e bx lr <== NOT EXECUTED
a0005c64 <rtems_bsp_cmdline_get_param>:
size_t length
)
{
const char *p;
if ( !name )
a0005c64: e2503000 subs r3, r0, #0 <== NOT EXECUTED
const char *rtems_bsp_cmdline_get_param(
const char *name,
char *value,
size_t length
)
{
a0005c68: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a0005c6c: e1a04001 mov r4, r1 <== NOT EXECUTED
a0005c70: e1a05002 mov r5, r2 <== NOT EXECUTED
const char *p;
if ( !name )
a0005c74: 0a00001d beq a0005cf0 <rtems_bsp_cmdline_get_param+0x8c> <== NOT EXECUTED
return NULL;
if ( !value )
a0005c78: e3510000 cmp r1, #0 <== NOT EXECUTED a0005c7c: 0a00001c beq a0005cf4 <rtems_bsp_cmdline_get_param+0x90> <== NOT EXECUTED
return NULL;
if ( !length )
a0005c80: e3520000 cmp r2, #0 <== NOT EXECUTED
return NULL;
a0005c84: 01a04002 moveq r4, r2 <== NOT EXECUTED
return NULL;
if ( !value )
return NULL;
if ( !length )
a0005c88: 0a000019 beq a0005cf4 <rtems_bsp_cmdline_get_param+0x90> <== NOT EXECUTED
return NULL;
value[0] = '\0';
a0005c8c: e3a06000 mov r6, #0 <== NOT EXECUTED a0005c90: e5c46000 strb r6, [r4] <== NOT EXECUTED
p = rtems_bsp_cmdline_get_param_raw( name );
a0005c94: eb000018 bl a0005cfc <rtems_bsp_cmdline_get_param_raw> <== NOT EXECUTED
if ( !p )
a0005c98: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0005c9c: 0a000013 beq a0005cf0 <rtems_bsp_cmdline_get_param+0x8c> <== NOT EXECUTED a0005ca0: e1a02006 mov r2, r6 <== NOT EXECUTED
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
a0005ca4: e2455001 sub r5, r5, #1 <== NOT EXECUTED
if ( *p == '\"' ) {
quotes++;
} else if ( ((quotes % 2) == 0) && *p == ' ' )
break;
value[i++] = *p++;
value[i] = '\0';
a0005ca8: e1a00006 mov r0, r6 <== NOT EXECUTED a0005cac: ea000009 b a0005cd8 <rtems_bsp_cmdline_get_param+0x74> <== NOT EXECUTED
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
if ( *p == '\"' ) {
a0005cb0: e3510022 cmp r1, #34 ; 0x22 <== NOT EXECUTED
quotes++;
a0005cb4: 02866001 addeq r6, r6, #1 <== NOT EXECUTED
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
if ( *p == '\"' ) {
a0005cb8: 0a000003 beq a0005ccc <rtems_bsp_cmdline_get_param+0x68> <== NOT EXECUTED
quotes++;
} else if ( ((quotes % 2) == 0) && *p == ' ' )
a0005cbc: e3160001 tst r6, #1 <== NOT EXECUTED a0005cc0: 1a000001 bne a0005ccc <rtems_bsp_cmdline_get_param+0x68> <== NOT EXECUTED a0005cc4: e3510020 cmp r1, #32 <== NOT EXECUTED a0005cc8: 0a000009 beq a0005cf4 <rtems_bsp_cmdline_get_param+0x90> <== NOT EXECUTED
break;
value[i++] = *p++;
a0005ccc: e7c41002 strb r1, [r4, r2] <== NOT EXECUTED a0005cd0: e2822001 add r2, r2, #1 <== NOT EXECUTED
value[i] = '\0';
a0005cd4: e7c40002 strb r0, [r4, r2] <== NOT EXECUTED
int i;
int quotes;
const char *p = start;
quotes=0;
for (i=0 ; *p && i<length-1; ) {
a0005cd8: e7d31002 ldrb r1, [r3, r2] <== NOT EXECUTED a0005cdc: e3510000 cmp r1, #0 <== NOT EXECUTED a0005ce0: 0a000003 beq a0005cf4 <rtems_bsp_cmdline_get_param+0x90> <== NOT EXECUTED a0005ce4: e1520005 cmp r2, r5 <== NOT EXECUTED a0005ce8: 3afffff0 bcc a0005cb0 <rtems_bsp_cmdline_get_param+0x4c> <== NOT EXECUTED a0005cec: ea000000 b a0005cf4 <rtems_bsp_cmdline_get_param+0x90> <== NOT EXECUTED
value[0] = '\0';
p = rtems_bsp_cmdline_get_param_raw( name );
if ( !p )
return NULL;
a0005cf0: e1a04003 mov r4, r3 <== NOT EXECUTED
copy_string( p, value, length );
return value;
}
a0005cf4: e1a00004 mov r0, r4 <== NOT EXECUTED
a0005cf8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0005cfc <rtems_bsp_cmdline_get_param_raw>:
const char *name
)
{
const char *p;
if ( !name )
a0005cfc: e2501000 subs r1, r0, #0 <== NOT EXECUTED a0005d00: 0a000004 beq a0005d18 <rtems_bsp_cmdline_get_param_raw+0x1c><== NOT EXECUTED
return NULL;
if ( !bsp_boot_cmdline )
a0005d04: e59f3014 ldr r3, [pc, #20] ; a0005d20 <rtems_bsp_cmdline_get_param_raw+0x24><== NOT EXECUTED a0005d08: e5930000 ldr r0, [r3] <== NOT EXECUTED a0005d0c: e3500000 cmp r0, #0 <== NOT EXECUTED a0005d10: 012fff1e bxeq lr <== NOT EXECUTED
return NULL;
p = strstr(bsp_boot_cmdline, name);
a0005d14: ea00327f b a0012718 <strstr> <== NOT EXECUTED
)
{
const char *p;
if ( !name )
return NULL;
a0005d18: e1a00001 mov r0, r1 <== NOT EXECUTED
return NULL;
p = strstr(bsp_boot_cmdline, name);
/* printf( "raw: %p (%s)\n", p, p ); */
return p;
}
a0005d1c: e12fff1e bx lr <== NOT EXECUTED
a0005d24 <rtems_bsp_cmdline_get_param_rhs>:
const char *rtems_bsp_cmdline_get_param_rhs(
const char *name,
char *value,
size_t length
)
{
a0005d24: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a0005d28: e1a05000 mov r5, r0 <== NOT EXECUTED
a0005d2c: e1a04001 mov r4, r1 <== NOT EXECUTED
const char *p;
const char *rhs;
char *d;
p = rtems_bsp_cmdline_get_param( name, value, length );
a0005d30: ebffffcb bl a0005c64 <rtems_bsp_cmdline_get_param> <== NOT EXECUTED
if ( !p )
a0005d34: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0005d38: 0a000016 beq a0005d98 <rtems_bsp_cmdline_get_param_rhs+0x74><== NOT EXECUTED
return NULL;
rhs = &p[strlen(name)];
a0005d3c: e1a00005 mov r0, r5 <== NOT EXECUTED a0005d40: eb0030f8 bl a0012128 <strlen> <== NOT EXECUTED
if ( *rhs != '=' )
a0005d44: e7d63000 ldrb r3, [r6, r0] <== NOT EXECUTED
p = rtems_bsp_cmdline_get_param( name, value, length );
if ( !p )
return NULL;
rhs = &p[strlen(name)];
a0005d48: e0862000 add r2, r6, r0 <== NOT EXECUTED
if ( *rhs != '=' )
a0005d4c: e353003d cmp r3, #61 ; 0x3d <== NOT EXECUTED a0005d50: 1a000012 bne a0005da0 <rtems_bsp_cmdline_get_param_rhs+0x7c><== NOT EXECUTED
return NULL;
rhs++;
a0005d54: e2823001 add r3, r2, #1 <== NOT EXECUTED
if ( *rhs == '\"' )
a0005d58: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED a0005d5c: e3520022 cmp r2, #34 ; 0x22 <== NOT EXECUTED
rhs++;
a0005d60: 02833001 addeq r3, r3, #1 <== NOT EXECUTED a0005d64: e1a01003 mov r1, r3 <== NOT EXECUTED
const char *rtems_bsp_cmdline_get_param_rhs(
const char *name,
char *value,
size_t length
)
{
a0005d68: e1a03004 mov r3, r4 <== NOT EXECUTED a0005d6c: ea000000 b a0005d74 <rtems_bsp_cmdline_get_param_rhs+0x50> <== NOT EXECUTED
rhs++;
if ( *rhs == '\"' )
rhs++;
for ( d=value ; *rhs ; )
*d++ = *rhs++;
a0005d70: e4c32001 strb r2, [r3], #1 <== NOT EXECUTED
return NULL;
rhs++;
if ( *rhs == '\"' )
rhs++;
for ( d=value ; *rhs ; )
a0005d74: e4d12001 ldrb r2, [r1], #1 <== NOT EXECUTED a0005d78: e3520000 cmp r2, #0 <== NOT EXECUTED a0005d7c: 1afffffb bne a0005d70 <rtems_bsp_cmdline_get_param_rhs+0x4c><== NOT EXECUTED
*d++ = *rhs++;
if ( *(d-1) == '\"' )
a0005d80: e5531001 ldrb r1, [r3, #-1] <== NOT EXECUTED
d--;
*d = '\0';
return value;
a0005d84: e1a00004 mov r0, r4 <== NOT EXECUTED
rhs++;
if ( *rhs == '\"' )
rhs++;
for ( d=value ; *rhs ; )
*d++ = *rhs++;
if ( *(d-1) == '\"' )
a0005d88: e3510022 cmp r1, #34 ; 0x22 <== NOT EXECUTED a0005d8c: 02433001 subeq r3, r3, #1 <== NOT EXECUTED
d--;
*d = '\0';
a0005d90: e5c32000 strb r2, [r3] <== NOT EXECUTED
return value;
a0005d94: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
const char *rhs;
char *d;
p = rtems_bsp_cmdline_get_param( name, value, length );
if ( !p )
return NULL;
a0005d98: e1a00006 mov r0, r6 <== NOT EXECUTED
a0005d9c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
rhs = &p[strlen(name)];
if ( *rhs != '=' )
return NULL;
a0005da0: e3a00000 mov r0, #0 <== NOT EXECUTED
if ( *(d-1) == '\"' )
d--;
*d = '\0';
return value;
}
a0005da4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000b118 <rtems_build_id>:
uint32_t the_class,
uint32_t node,
uint32_t index
)
{
return (( (Objects_Id) the_api ) << OBJECTS_API_START_BIT) |
a000b118: e1a00c00 lsl r0, r0, #24 <== NOT EXECUTED a000b11c: e1800d81 orr r0, r0, r1, lsl #27 <== NOT EXECUTED
(( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |
a000b120: e1800003 orr r0, r0, r3 <== NOT EXECUTED
uint32_t node,
uint32_t index
)
{
return _Objects_Build_id( api, class, node, index );
}
a000b124: e1800802 orr r0, r0, r2, lsl #16 <== NOT EXECUTED a000b128: e12fff1e bx lr <== NOT EXECUTED
a000b12c <rtems_build_name>:
char C1,
char C2,
char C3,
char C4
)
{
a000b12c: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED
return _Objects_Build_name( C1, C2, C3, C4 );
a000b130: e20118ff and r1, r1, #16711680 ; 0xff0000 <== NOT EXECUTED
char C1,
char C2,
char C3,
char C4
)
{
a000b134: e1a02402 lsl r2, r2, #8 <== NOT EXECUTED
return _Objects_Build_name( C1, C2, C3, C4 );
a000b138: e1810c00 orr r0, r1, r0, lsl #24 <== NOT EXECUTED a000b13c: e2022cff and r2, r2, #65280 ; 0xff00 <== NOT EXECUTED
char C1,
char C2,
char C3,
char C4
)
{
a000b140: e20330ff and r3, r3, #255 ; 0xff <== NOT EXECUTED
return _Objects_Build_name( C1, C2, C3, C4 );
a000b144: e1800002 orr r0, r0, r2 <== NOT EXECUTED
}
a000b148: e1800003 orr r0, r0, r3 <== NOT EXECUTED a000b14c: e12fff1e bx lr <== NOT EXECUTED
a000a19c <rtems_chain_append_with_notification>:
rtems_chain_control *chain,
rtems_chain_node *node,
rtems_id task,
rtems_event_set events
)
{
a000a19c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a000a1a0: e1a04002 mov r4, r2 <== NOT EXECUTED
a000a1a4: 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 );
a000a1a8: eb00013b bl a000a69c <_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 ) {
a000a1ac: e3500000 cmp r0, #0 <== NOT EXECUTED a000a1b0: 0a000003 beq a000a1c4 <rtems_chain_append_with_notification+0x28><== NOT EXECUTED
sc = rtems_event_send( task, events );
a000a1b4: e1a00004 mov r0, r4 <== NOT EXECUTED a000a1b8: e1a01005 mov r1, r5 <== NOT EXECUTED
}
return sc;
}
a000a1bc: 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 );
a000a1c0: eafffda5 b a000985c <rtems_event_send> <== NOT EXECUTED
}
return sc;
}
a000a1c4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000a1c8 <rtems_chain_get_with_notification>:
rtems_chain_control *chain,
rtems_id task,
rtems_event_set events,
rtems_chain_node **node
)
{
a000a1c8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a000a1cc: 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 );
a000a1d0: e1a01003 mov r1, r3 <== NOT EXECUTED a000a1d4: e1a05002 mov r5, r2 <== NOT EXECUTED a000a1d8: eb000153 bl a000a72c <_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 ) {
a000a1dc: e3500000 cmp r0, #0 <== NOT EXECUTED a000a1e0: 0a000003 beq a000a1f4 <rtems_chain_get_with_notification+0x2c><== NOT EXECUTED
sc = rtems_event_send( task, events );
a000a1e4: e1a00004 mov r0, r4 <== NOT EXECUTED a000a1e8: e1a01005 mov r1, r5 <== NOT EXECUTED
}
return sc;
}
a000a1ec: 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 );
a000a1f0: eafffd99 b a000985c <rtems_event_send> <== NOT EXECUTED
}
return sc;
}
a000a1f4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000a1f8 <rtems_chain_get_with_wait>:
rtems_chain_control *chain,
rtems_event_set events,
rtems_interval timeout,
rtems_chain_node **node_ptr
)
{
a000a1f8: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
a000a1fc: e1a07000 mov r7, r0 <== NOT EXECUTED
a000a200: e1a06001 mov r6, r1 <== NOT EXECUTED
a000a204: e1a05002 mov r5, r2 <== NOT EXECUTED
a000a208: e1a0a003 mov sl, r3 <== NOT EXECUTED
while (
sc == RTEMS_SUCCESSFUL
&& (node = rtems_chain_get( chain )) == NULL
) {
rtems_event_set out;
sc = rtems_event_receive(
a000a20c: e1a0800d mov r8, sp <== NOT EXECUTED a000a210: ea000006 b a000a230 <rtems_chain_get_with_wait+0x38> <== NOT EXECUTED a000a214: e1a00006 mov r0, r6 <== NOT EXECUTED a000a218: e1a01004 mov r1, r4 <== NOT EXECUTED a000a21c: e1a02005 mov r2, r5 <== NOT EXECUTED a000a220: e1a0300d mov r3, sp <== NOT EXECUTED a000a224: ebfffd30 bl a00096ec <rtems_event_receive> <== NOT EXECUTED
)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_chain_node *node = NULL;
while (
a000a228: e3500000 cmp r0, #0 <== NOT EXECUTED a000a22c: 1a000004 bne a000a244 <rtems_chain_get_with_wait+0x4c> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(
rtems_chain_control *the_chain
)
{
return _Chain_Get( the_chain );
a000a230: e1a00007 mov r0, r7 <== NOT EXECUTED a000a234: eb000150 bl a000a77c <_Chain_Get> <== NOT EXECUTED
sc == RTEMS_SUCCESSFUL
&& (node = rtems_chain_get( chain )) == NULL
a000a238: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000a23c: 0afffff4 beq a000a214 <rtems_chain_get_with_wait+0x1c> <== NOT EXECUTED a000a240: e3a00000 mov r0, #0 <== NOT EXECUTED
timeout,
&out
);
}
*node_ptr = node;
a000a244: e58a4000 str r4, [sl] <== NOT EXECUTED
return sc;
}
a000a248: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a000a24c <rtems_chain_prepend_with_notification>:
rtems_chain_control *chain,
rtems_chain_node *node,
rtems_id task,
rtems_event_set events
)
{
a000a24c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a000a250: e1a04002 mov r4, r2 <== NOT EXECUTED
a000a254: 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 );
a000a258: eb00015e bl a000a7d8 <_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) {
a000a25c: e3500000 cmp r0, #0 <== NOT EXECUTED a000a260: 0a000003 beq a000a274 <rtems_chain_prepend_with_notification+0x28><== NOT EXECUTED
sc = rtems_event_send( task, events );
a000a264: e1a00004 mov r0, r4 <== NOT EXECUTED a000a268: e1a01005 mov r1, r5 <== NOT EXECUTED
}
return sc;
}
a000a26c: 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 );
a000a270: eafffd79 b a000985c <rtems_event_send> <== NOT EXECUTED
}
return sc;
}
a000a274: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a00152e0 <rtems_clock_get>:
rtems_status_code rtems_clock_get(
rtems_clock_get_options option,
void *time_buffer
)
{
a00152e0: e92d4010 push {r4, lr} <== NOT EXECUTED
if ( !time_buffer )
a00152e4: e2514000 subs r4, r1, #0 <== NOT EXECUTED a00152e8: 0a000018 beq a0015350 <rtems_clock_get+0x70> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( option == RTEMS_CLOCK_GET_TOD )
a00152ec: e3500000 cmp r0, #0 <== NOT EXECUTED a00152f0: 1a000002 bne a0015300 <rtems_clock_get+0x20> <== NOT EXECUTED
return rtems_clock_get_tod( (rtems_time_of_day *)time_buffer );
a00152f4: 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;
}
a00152f8: 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 );
a00152fc: ea000031 b a00153c8 <rtems_clock_get_tod> <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_SECONDS_SINCE_EPOCH )
a0015300: e3500001 cmp r0, #1 <== NOT EXECUTED a0015304: 1a000002 bne a0015314 <rtems_clock_get+0x34> <== NOT EXECUTED
return rtems_clock_get_seconds_since_epoch((rtems_interval *)time_buffer);
a0015308: 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;
}
a001530c: 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);
a0015310: ea000012 b a0015360 <rtems_clock_get_seconds_since_epoch> <== NOT EXECUTED
if ( option == RTEMS_CLOCK_GET_TICKS_SINCE_BOOT ) {
a0015314: e3500002 cmp r0, #2 <== NOT EXECUTED a0015318: 1a000001 bne a0015324 <rtems_clock_get+0x44> <== NOT EXECUTED
rtems_interval *interval = (rtems_interval *)time_buffer;
*interval = rtems_clock_get_ticks_since_boot();
a001531c: eb000025 bl a00153b8 <rtems_clock_get_ticks_since_boot> <== NOT EXECUTED a0015320: ea000002 b a0015330 <rtems_clock_get+0x50> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
if ( option == RTEMS_CLOCK_GET_TICKS_PER_SECOND ) {
a0015324: e3500003 cmp r0, #3 <== NOT EXECUTED a0015328: 1a000003 bne a001533c <rtems_clock_get+0x5c> <== NOT EXECUTED
rtems_interval *interval = (rtems_interval *)time_buffer;
*interval = rtems_clock_get_ticks_per_second();
a001532c: eb000019 bl a0015398 <rtems_clock_get_ticks_per_second> <== NOT EXECUTED a0015330: e5840000 str r0, [r4] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0015334: e3a00000 mov r0, #0 <== NOT EXECUTED
a0015338: e8bd8010 pop {r4, pc} <== NOT EXECUTED
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
a001533c: e3500004 cmp r0, #4 <== NOT EXECUTED a0015340: 1a000004 bne a0015358 <rtems_clock_get+0x78> <== NOT EXECUTED
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
a0015344: e1a00004 mov r0, r4 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
}
a0015348: 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 );
a001534c: ea00004f b a0015490 <rtems_clock_get_tod_timeval> <== NOT EXECUTED
rtems_clock_get_options option,
void *time_buffer
)
{
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
a0015350: e3a00009 mov r0, #9 <== NOT EXECUTED
a0015354: e8bd8010 pop {r4, pc} <== NOT EXECUTED
}
if ( option == RTEMS_CLOCK_GET_TIME_VALUE )
return rtems_clock_get_tod_timeval( (struct timeval *)time_buffer );
return RTEMS_INVALID_NUMBER;
a0015358: e3a0000a mov r0, #10 <== NOT EXECUTED
}
a001535c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000a120 <rtems_clock_get_seconds_since_epoch>:
rtems_status_code rtems_clock_get_seconds_since_epoch(
rtems_interval *the_interval
)
{
if ( !the_interval )
a000a120: e3500000 cmp r0, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a000a124: 03a00009 moveq r0, #9 <== NOT EXECUTED
rtems_status_code rtems_clock_get_seconds_since_epoch(
rtems_interval *the_interval
)
{
if ( !the_interval )
a000a128: 012fff1e bxeq lr <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
a000a12c: e59f301c ldr r3, [pc, #28] ; a000a150 <rtems_clock_get_seconds_since_epoch+0x30><== NOT EXECUTED a000a130: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a000a134: e3530000 cmp r3, #0 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
*the_interval = _TOD_Seconds_since_epoch();
a000a138: 159f3014 ldrne r3, [pc, #20] ; a000a154 <rtems_clock_get_seconds_since_epoch+0x34><== NOT EXECUTED
{
if ( !the_interval )
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
a000a13c: 03a0000b moveq r0, #11 <== NOT EXECUTED
*the_interval = _TOD_Seconds_since_epoch();
a000a140: 15933000 ldrne r3, [r3] <== NOT EXECUTED a000a144: 15803000 strne r3, [r0] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000a148: 13a00000 movne r0, #0 <== NOT EXECUTED
}
a000a14c: e12fff1e bx lr <== NOT EXECUTED
a0008d60 <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 /
a0008d60: e59f3010 ldr r3, [pc, #16] ; a0008d78 <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)
{
a0008d64: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
return TOD_MICROSECONDS_PER_SECOND /
a0008d68: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a0008d6c: e59f0008 ldr r0, [pc, #8] ; a0008d7c <rtems_clock_get_ticks_per_second+0x1c><== NOT EXECUTED a0008d70: eb002e80 bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick();
}
a0008d74: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0008d80 <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;
a0008d80: e59f3004 ldr r3, [pc, #4] ; a0008d8c <rtems_clock_get_ticks_since_boot+0xc><== NOT EXECUTED a0008d84: e5930000 ldr r0, [r3] <== NOT EXECUTED
}
a0008d88: e12fff1e bx lr <== NOT EXECUTED
a000a188 <rtems_clock_get_tod>:
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_tod(
rtems_time_of_day *time_buffer
)
{
a000a188: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
rtems_time_of_day *tmbuf = time_buffer;
struct tm time;
struct timeval now;
if ( !time_buffer )
a000a18c: e2504000 subs r4, r0, #0 <== NOT EXECUTED
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_tod(
rtems_time_of_day *time_buffer
)
{
a000a190: e24dd034 sub sp, sp, #52 ; 0x34 <== NOT EXECUTED
rtems_time_of_day *tmbuf = time_buffer;
struct tm time;
struct timeval now;
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
a000a194: 03a00009 moveq r0, #9 <== NOT EXECUTED
{
rtems_time_of_day *tmbuf = time_buffer;
struct tm time;
struct timeval now;
if ( !time_buffer )
a000a198: 0a000028 beq a000a240 <rtems_clock_get_tod+0xb8> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
a000a19c: e59f30a4 ldr r3, [pc, #164] ; a000a248 <rtems_clock_get_tod+0xc0><== NOT EXECUTED a000a1a0: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a000a1a4: e3530000 cmp r3, #0 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a000a1a8: 03a0000b moveq r0, #11 <== NOT EXECUTED
struct timeval now;
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
a000a1ac: 0a000023 beq a000a240 <rtems_clock_get_tod+0xb8> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000a1b0: e10f5000 mrs r5, CPSR <== NOT EXECUTED a000a1b4: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a000a1b8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
_TOD_Get( &now );
a000a1bc: e28d0024 add r0, sp, #36 ; 0x24 <== NOT EXECUTED a000a1c0: eb00061c bl a000ba38 <_TOD_Get> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000a1c4: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
a000a1c8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED
_ISR_Disable(level);
_TOD_Get( &now );
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
a000a1cc: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED a000a1d0: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED
time->tv_sec = now.tv_sec;
a000a1d4: e58d302c str r3, [sp, #44] ; 0x2c <== NOT EXECUTED
_ISR_Disable(level);
_TOD_Get( &now );
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
a000a1d8: eb0048a4 bl a001c470 <__aeabi_idiv> <== NOT EXECUTED
/* Obtain the current time */
_TOD_Get_timeval( &now );
/* Split it into a closer format */
gmtime_r( &now.tv_sec, &time );
a000a1dc: e1a0100d mov r1, sp <== NOT EXECUTED
time->tv_sec = now.tv_sec;
time->tv_usec = useconds;
a000a1e0: e58d0030 str r0, [sp, #48] ; 0x30 <== NOT EXECUTED a000a1e4: e28d002c add r0, sp, #44 ; 0x2c <== NOT EXECUTED a000a1e8: eb00249f bl a001346c <gmtime_r> <== NOT EXECUTED
/* Now adjust it to the RTEMS format */
tmbuf->year = time.tm_year + 1900;
a000a1ec: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED
tmbuf->month = time.tm_mon + 1; tmbuf->day = time.tm_mday; tmbuf->hour = time.tm_hour; tmbuf->minute = time.tm_min; tmbuf->second = time.tm_sec; tmbuf->ticks = now.tv_usec /
a000a1f0: e59d0030 ldr r0, [sp, #48] ; 0x30 <== NOT EXECUTED
/* Split it into a closer format */
gmtime_r( &now.tv_sec, &time );
/* Now adjust it to the RTEMS format */
tmbuf->year = time.tm_year + 1900;
a000a1f4: e2833e76 add r3, r3, #1888 ; 0x760 <== NOT EXECUTED a000a1f8: e283300c add r3, r3, #12 <== NOT EXECUTED a000a1fc: e5843000 str r3, [r4] <== NOT EXECUTED
tmbuf->month = time.tm_mon + 1;
a000a200: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000a204: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a208: e5843004 str r3, [r4, #4] <== NOT EXECUTED
tmbuf->day = time.tm_mday;
a000a20c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a000a210: e5843008 str r3, [r4, #8] <== NOT EXECUTED
tmbuf->hour = time.tm_hour;
a000a214: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a000a218: e584300c str r3, [r4, #12] <== NOT EXECUTED
tmbuf->minute = time.tm_min;
a000a21c: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a000a220: e5843010 str r3, [r4, #16] <== NOT EXECUTED
tmbuf->second = time.tm_sec;
a000a224: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a228: e5843014 str r3, [r4, #20] <== NOT EXECUTED
tmbuf->ticks = now.tv_usec /
a000a22c: e59f3018 ldr r3, [pc, #24] ; a000a24c <rtems_clock_get_tod+0xc4><== NOT EXECUTED a000a230: e593100c ldr r1, [r3, #12] <== NOT EXECUTED a000a234: eb004847 bl a001c358 <__aeabi_uidiv> <== NOT EXECUTED a000a238: e5840018 str r0, [r4, #24] <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick();
return RTEMS_SUCCESSFUL;
a000a23c: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a000a240: e28dd034 add sp, sp, #52 ; 0x34 <== NOT EXECUTED
a000a244: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0015490 <rtems_clock_get_tod_timeval>:
#include <rtems/score/watchdog.h>
rtems_status_code rtems_clock_get_tod_timeval(
struct timeval *time
)
{
a0015490: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED
if ( !time )
a0015494: e2504000 subs r4, r0, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a0015498: 03a00009 moveq r0, #9 <== NOT EXECUTED
rtems_status_code rtems_clock_get_tod_timeval(
struct timeval *time
)
{
if ( !time )
a001549c: 0a000011 beq a00154e8 <rtems_clock_get_tod_timeval+0x58> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
a00154a0: e59f3044 ldr r3, [pc, #68] ; a00154ec <rtems_clock_get_tod_timeval+0x5c><== NOT EXECUTED a00154a4: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a00154a8: e3530000 cmp r3, #0 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a00154ac: 03a0000b moveq r0, #11 <== NOT EXECUTED
)
{
if ( !time )
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Is_set )
a00154b0: 0a00000c beq a00154e8 <rtems_clock_get_tod_timeval+0x58> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a00154b4: e10f5000 mrs r5, CPSR <== NOT EXECUTED a00154b8: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED a00154bc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
ISR_Level level;
struct timespec now;
suseconds_t useconds;
_ISR_Disable(level);
_TOD_Get( &now );
a00154c0: e1a0000d mov r0, sp <== NOT EXECUTED a00154c4: eb001125 bl a0019960 <_TOD_Get> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a00154c8: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
time->tv_sec = now.tv_sec;
a00154cc: e59d3000 ldr r3, [sp] <== NOT EXECUTED
_ISR_Disable(level);
_TOD_Get( &now );
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
a00154d0: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED a00154d4: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED
time->tv_sec = now.tv_sec;
a00154d8: e5843000 str r3, [r4] <== NOT EXECUTED
_ISR_Disable(level);
_TOD_Get( &now );
_ISR_Enable(level);
useconds = (suseconds_t)now.tv_nsec;
useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND;
a00154dc: eb006532 bl a002e9ac <__aeabi_idiv> <== NOT EXECUTED
time->tv_sec = now.tv_sec;
time->tv_usec = useconds;
a00154e0: e5840004 str r0, [r4, #4] <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
_TOD_Get_timeval( time );
return RTEMS_SUCCESSFUL;
a00154e4: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a00154e8: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED
a0008fc4 <rtems_clock_get_uptime>:
*/
rtems_status_code rtems_clock_get_uptime(
struct timespec *uptime
)
{
if ( !uptime )
a0008fc4: e3500000 cmp r0, #0 <== NOT EXECUTED
* error code - if unsuccessful
*/
rtems_status_code rtems_clock_get_uptime(
struct timespec *uptime
)
{
a0008fc8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( !uptime )
a0008fcc: 0a000002 beq a0008fdc <rtems_clock_get_uptime+0x18> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_TOD_Get_uptime_as_timespec( uptime );
a0008fd0: eb000559 bl a000a53c <_TOD_Get_uptime_as_timespec> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0008fd4: e3a00000 mov r0, #0 <== NOT EXECUTED
a0008fd8: 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;
a0008fdc: e3a00009 mov r0, #9 <== NOT EXECUTED
_TOD_Get_uptime_as_timespec( uptime );
return RTEMS_SUCCESSFUL;
}
a0008fe0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000a26c <rtems_clock_set>:
*/
rtems_status_code rtems_clock_set(
rtems_time_of_day *time_buffer
)
{
a000a26c: e92d4013 push {r0, r1, r4, lr} <== NOT EXECUTED
struct timespec newtime;
if ( !time_buffer )
a000a270: e2504000 subs r4, r0, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a000a274: 03a00009 moveq r0, #9 <== NOT EXECUTED
rtems_time_of_day *time_buffer
)
{
struct timespec newtime;
if ( !time_buffer )
a000a278: 0a000015 beq a000a2d4 <rtems_clock_set+0x68> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( _TOD_Validate( time_buffer ) ) {
a000a27c: eb00004d bl a000a3b8 <_TOD_Validate> <== NOT EXECUTED a000a280: e3500000 cmp r0, #0 <== NOT EXECUTED
_Thread_Disable_dispatch();
_TOD_Set( &newtime );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
return RTEMS_INVALID_CLOCK;
a000a284: 03a00014 moveq r0, #20 <== NOT EXECUTED
struct timespec newtime;
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
if ( _TOD_Validate( time_buffer ) ) {
a000a288: 0a000011 beq a000a2d4 <rtems_clock_set+0x68> <== NOT EXECUTED
newtime.tv_sec = _TOD_To_seconds( time_buffer );
a000a28c: e1a00004 mov r0, r4 <== NOT EXECUTED a000a290: eb000025 bl a000a32c <_TOD_To_seconds> <== NOT EXECUTED
newtime.tv_nsec = time_buffer->ticks *
a000a294: e59f203c ldr r2, [pc, #60] ; a000a2d8 <rtems_clock_set+0x6c><== NOT EXECUTED a000a298: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
if ( _TOD_Validate( time_buffer ) ) {
newtime.tv_sec = _TOD_To_seconds( time_buffer );
a000a29c: e58d0000 str r0, [sp] <== NOT EXECUTED
newtime.tv_nsec = time_buffer->ticks *
a000a2a0: e592200c ldr r2, [r2, #12] <== NOT EXECUTED a000a2a4: e0030392 mul r3, r2, r3 <== NOT EXECUTED a000a2a8: e3a02ffa mov r2, #1000 ; 0x3e8 <== NOT EXECUTED a000a2ac: e0030392 mul r3, r2, r3 <== NOT EXECUTED a000a2b0: e58d3004 str r3, [sp, #4] <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000a2b4: e59f3020 ldr r3, [pc, #32] ; a000a2dc <rtems_clock_set+0x70><== NOT EXECUTED a000a2b8: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a2bc: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a2c0: e5832000 str r2, [r3] <== NOT EXECUTED
rtems_configuration_get_nanoseconds_per_tick();
_Thread_Disable_dispatch();
_TOD_Set( &newtime );
a000a2c4: e1a0000d mov r0, sp <== NOT EXECUTED a000a2c8: eb000617 bl a000bb2c <_TOD_Set> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a2cc: eb000be5 bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000a2d0: e3a00000 mov r0, #0 <== NOT EXECUTED
} return RTEMS_INVALID_CLOCK; }
a000a2d4: e8bd801c pop {r2, r3, r4, pc} <== NOT EXECUTED
a0008d90 <rtems_clock_set_nanoseconds_extension>:
*/
rtems_status_code rtems_clock_set_nanoseconds_extension(
rtems_nanoseconds_extension_routine routine
)
{
if ( !routine )
a0008d90: e3500000 cmp r0, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_Watchdog_Nanoseconds_since_tick_handler = routine;
a0008d94: 159f300c ldrne r3, [pc, #12] ; a0008da8 <rtems_clock_set_nanoseconds_extension+0x18><== NOT EXECUTED
rtems_status_code rtems_clock_set_nanoseconds_extension(
rtems_nanoseconds_extension_routine routine
)
{
if ( !routine )
return RTEMS_INVALID_ADDRESS;
a0008d98: 03a00009 moveq r0, #9 <== NOT EXECUTED
_Watchdog_Nanoseconds_since_tick_handler = routine;
a0008d9c: 15830000 strne r0, [r3] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0008da0: 13a00000 movne r0, #0 <== NOT EXECUTED
}
a0008da4: e12fff1e bx lr <== NOT EXECUTED
a0008dac <rtems_clock_tick>:
*
* NOTE: This routine only works for leap-years through 2099.
*/
rtems_status_code rtems_clock_tick( void )
{
a0008dac: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
_TOD_Tickle_ticks();
a0008db0: eb000500 bl a000a1b8 <_TOD_Tickle_ticks> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Watchdog_Tickle_ticks( void )
{
_Watchdog_Tickle( &_Watchdog_Ticks_chain );
a0008db4: e59f0030 ldr r0, [pc, #48] ; a0008dec <rtems_clock_tick+0x40><== NOT EXECUTED a0008db8: eb000e64 bl a000c750 <_Watchdog_Tickle> <== NOT EXECUTED
_Watchdog_Tickle_ticks();
_Thread_Tickle_timeslice();
a0008dbc: eb000ced bl a000c178 <_Thread_Tickle_timeslice> <== NOT EXECUTED
* otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_context_switch_necessary( void )
{
return ( _Thread_Dispatch_necessary );
a0008dc0: e59f3028 ldr r3, [pc, #40] ; a0008df0 <rtems_clock_tick+0x44><== NOT EXECUTED a0008dc4: e5d33010 ldrb r3, [r3, #16] <== NOT EXECUTED
if ( _Thread_Is_context_switch_necessary() &&
a0008dc8: e3530000 cmp r3, #0 <== NOT EXECUTED a0008dcc: 0a000004 beq a0008de4 <rtems_clock_tick+0x38> <== NOT EXECUTED
* otherwise.
*/
RTEMS_INLINE_ROUTINE bool _Thread_Is_dispatching_enabled( void )
{
return ( _Thread_Dispatch_disable_level == 0 );
a0008dd0: e59f301c ldr r3, [pc, #28] ; a0008df4 <rtems_clock_tick+0x48><== NOT EXECUTED a0008dd4: e5933000 ldr r3, [r3] <== NOT EXECUTED a0008dd8: e3530000 cmp r3, #0 <== NOT EXECUTED a0008ddc: 1a000000 bne a0008de4 <rtems_clock_tick+0x38> <== NOT EXECUTED
_Thread_Is_dispatching_enabled() )
_Thread_Dispatch();
a0008de0: eb000a2a bl a000b690 <_Thread_Dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
a0008de4: e3a00000 mov r0, #0 <== NOT EXECUTED
a0008de8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0006968 <rtems_cpu_usage_report>:
void rtems_cpu_usage_report( void )
{
rtems_cpu_usage_report_with_plugin( NULL, printk_plugin );
a0006968: e59f1004 ldr r1, [pc, #4] ; a0006974 <rtems_cpu_usage_report+0xc><== NOT EXECUTED a000696c: e3a00000 mov r0, #0 <== NOT EXECUTED a0006970: eaffff8e b a00067b0 <rtems_cpu_usage_report_with_plugin> <== NOT EXECUTED
a00067b0 <rtems_cpu_usage_report_with_plugin>:
void rtems_cpu_usage_report_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
a00067b0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
Timestamp_Control uptime, total, ran, uptime_at_last_reset;
#else
uint32_t total_units = 0;
#endif
if ( !print )
a00067b4: e251a000 subs sl, r1, #0 <== NOT EXECUTED
void rtems_cpu_usage_report_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
a00067b8: e24dd050 sub sp, sp, #80 ; 0x50 <== NOT EXECUTED a00067bc: e1a09000 mov r9, r0 <== NOT EXECUTED
Timestamp_Control uptime, total, ran, uptime_at_last_reset;
#else
uint32_t total_units = 0;
#endif
if ( !print )
a00067c0: 0a00005d beq a000693c <rtems_cpu_usage_report_with_plugin+0x18c><== NOT EXECUTED
* When not using nanosecond CPU usage resolution, we have to count
* the number of "ticks" we gave credit for to give the user a rough
* guideline as to what each number means proportionally.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Set_to_zero( &total );
a00067c4: e3a03000 mov r3, #0 <== NOT EXECUTED a00067c8: e58d3038 str r3, [sp, #56] ; 0x38 <== NOT EXECUTED a00067cc: e58d303c str r3, [sp, #60] ; 0x3c <== NOT EXECUTED
uptime_at_last_reset = CPU_usage_Uptime_at_last_reset;
a00067d0: e59f316c ldr r3, [pc, #364] ; a0006944 <rtems_cpu_usage_report_with_plugin+0x194><== NOT EXECUTED
}
}
}
#endif
(*print)(
a00067d4: e59f116c ldr r1, [pc, #364] ; a0006948 <rtems_cpu_usage_report_with_plugin+0x198><== NOT EXECUTED a00067d8: e59f516c ldr r5, [pc, #364] ; a000694c <rtems_cpu_usage_report_with_plugin+0x19c><== NOT EXECUTED
* the number of "ticks" we gave credit for to give the user a rough
* guideline as to what each number means proportionally.
*/
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_Set_to_zero( &total );
uptime_at_last_reset = CPU_usage_Uptime_at_last_reset;
a00067dc: e8930018 ldm r3, {r3, r4} <== NOT EXECUTED
a00067e0: e58d3028 str r3, [sp, #40] ; 0x28 <== NOT EXECUTED
a00067e4: e58d402c str r4, [sp, #44] ; 0x2c <== NOT EXECUTED
}
}
}
#endif
(*print)(
a00067e8: e12fff3a blx sl <== NOT EXECUTED a00067ec: e28d8040 add r8, sp, #64 ; 0x40 <== NOT EXECUTED
#if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)
if ( !_Objects_Information_table[ api_index ] )
continue;
#endif
information = _Objects_Information_table[ api_index ][ 1 ];
a00067f0: e5b53004 ldr r3, [r5, #4]! <== NOT EXECUTED a00067f4: e5936004 ldr r6, [r3, #4] <== NOT EXECUTED
if ( information ) {
a00067f8: e3560000 cmp r6, #0 <== NOT EXECUTED a00067fc: 13a07001 movne r7, #1 <== NOT EXECUTED
_Timestamp_Add_to( &ran, &used );
} else {
_TOD_Get_uptime( &uptime );
}
_Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
_Timestamp_Divide( &ran, &total, &ival, &fval );
a0006800: 128db030 addne fp, sp, #48 ; 0x30 <== NOT EXECUTED
if ( !_Objects_Information_table[ api_index ] )
continue;
#endif
information = _Objects_Information_table[ api_index ][ 1 ];
if ( information ) {
a0006804: 1a00003e bne a0006904 <rtems_cpu_usage_report_with_plugin+0x154><== NOT EXECUTED a0006808: ea000040 b a0006910 <rtems_cpu_usage_report_with_plugin+0x160><== NOT EXECUTED
for ( i=1 ; i <= information->maximum ; i++ ) {
the_thread = (Thread_Control *)information->local_table[ i ];
a000680c: e596301c ldr r3, [r6, #28] <== NOT EXECUTED a0006810: e7934107 ldr r4, [r3, r7, lsl #2] <== NOT EXECUTED
if ( !the_thread )
a0006814: e3540000 cmp r4, #0 <== NOT EXECUTED a0006818: 0a000038 beq a0006900 <rtems_cpu_usage_report_with_plugin+0x150><== NOT EXECUTED
continue;
rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
a000681c: e3a0100d mov r1, #13 <== NOT EXECUTED a0006820: e28d2008 add r2, sp, #8 <== NOT EXECUTED a0006824: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a0006828: eb000ff1 bl a000a7f4 <rtems_object_get_name> <== NOT EXECUTED
(*print)(
a000682c: e5942008 ldr r2, [r4, #8] <== NOT EXECUTED a0006830: e28d3008 add r3, sp, #8 <== NOT EXECUTED a0006834: e1a00009 mov r0, r9 <== NOT EXECUTED a0006838: e59f1110 ldr r1, [pc, #272] ; a0006950 <rtems_cpu_usage_report_with_plugin+0x1a0><== NOT EXECUTED a000683c: e12fff3a blx sl <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
/*
* If this is the currently executing thread, account for time
* since the last context switch.
*/
ran = the_thread->cpu_time_used;
a0006840: e2843084 add r3, r4, #132 ; 0x84 <== NOT EXECUTED
a0006844: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a0006848: e58d2030 str r2, [sp, #48] ; 0x30 <== NOT EXECUTED
a000684c: e58d3034 str r3, [sp, #52] ; 0x34 <== NOT EXECUTED
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
a0006850: e59f20fc ldr r2, [pc, #252] ; a0006954 <rtems_cpu_usage_report_with_plugin+0x1a4><== NOT EXECUTED a0006854: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED a0006858: e5932008 ldr r2, [r3, #8] <== NOT EXECUTED a000685c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0006860: e1520003 cmp r2, r3 <== NOT EXECUTED a0006864: 1a00000e bne a00068a4 <rtems_cpu_usage_report_with_plugin+0xf4><== NOT EXECUTED
Timestamp_Control used;
Timestamp_Control last = _Thread_Time_of_last_context_switch;
a0006868: e59f20e8 ldr r2, [pc, #232] ; a0006958 <rtems_cpu_usage_report_with_plugin+0x1a8><== NOT EXECUTED
_TOD_Get_uptime( &uptime );
a000686c: e1a00008 mov r0, r8 <== NOT EXECUTED
* since the last context switch.
*/
ran = the_thread->cpu_time_used;
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
Timestamp_Control used;
Timestamp_Control last = _Thread_Time_of_last_context_switch;
a0006870: e8920018 ldm r2, {r3, r4} <== NOT EXECUTED
a0006874: e58d3018 str r3, [sp, #24] <== NOT EXECUTED
a0006878: e58d401c str r4, [sp, #28] <== NOT EXECUTED
_TOD_Get_uptime( &uptime );
_Timestamp_Subtract( &last, &uptime, &used );
a000687c: e28d4020 add r4, sp, #32 <== NOT EXECUTED
*/
ran = the_thread->cpu_time_used;
if ( _Thread_Executing->Object.id == the_thread->Object.id ) {
Timestamp_Control used;
Timestamp_Control last = _Thread_Time_of_last_context_switch;
_TOD_Get_uptime( &uptime );
a0006880: eb001483 bl a000ba94 <_TOD_Get_uptime> <== NOT EXECUTED
_Timestamp_Subtract( &last, &uptime, &used );
a0006884: e28d0018 add r0, sp, #24 <== NOT EXECUTED a0006888: e1a01008 mov r1, r8 <== NOT EXECUTED a000688c: e1a02004 mov r2, r4 <== NOT EXECUTED a0006890: eb001d4f bl a000ddd4 <_Timespec_Subtract> <== NOT EXECUTED
_Timestamp_Add_to( &ran, &used );
a0006894: e1a0000b mov r0, fp <== NOT EXECUTED a0006898: e1a01004 mov r1, r4 <== NOT EXECUTED a000689c: eb001d10 bl a000dce4 <_Timespec_Add_to> <== NOT EXECUTED a00068a0: ea000001 b a00068ac <rtems_cpu_usage_report_with_plugin+0xfc><== NOT EXECUTED
} else {
_TOD_Get_uptime( &uptime );
a00068a4: e1a00008 mov r0, r8 <== NOT EXECUTED a00068a8: eb001479 bl a000ba94 <_TOD_Get_uptime> <== NOT EXECUTED
}
_Timestamp_Subtract( &uptime_at_last_reset, &uptime, &total );
a00068ac: e28d0028 add r0, sp, #40 ; 0x28 <== NOT EXECUTED a00068b0: e1a01008 mov r1, r8 <== NOT EXECUTED a00068b4: e28d2038 add r2, sp, #56 ; 0x38 <== NOT EXECUTED a00068b8: eb001d45 bl a000ddd4 <_Timespec_Subtract> <== NOT EXECUTED
_Timestamp_Divide( &ran, &total, &ival, &fval );
a00068bc: e28d204c add r2, sp, #76 ; 0x4c <== NOT EXECUTED a00068c0: e28d3048 add r3, sp, #72 ; 0x48 <== NOT EXECUTED a00068c4: e1a0000b mov r0, fp <== NOT EXECUTED a00068c8: e28d1038 add r1, sp, #56 ; 0x38 <== NOT EXECUTED a00068cc: eb001d1c bl a000dd44 <_Timespec_Divide> <== NOT EXECUTED
/*
* Print the information
*/
(*print)( context,
a00068d0: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a00068d4: e59d0034 ldr r0, [sp, #52] ; 0x34 <== NOT EXECUTED a00068d8: eb00569e bl a001c358 <__aeabi_uidiv> <== NOT EXECUTED a00068dc: e59d204c ldr r2, [sp, #76] ; 0x4c <== NOT EXECUTED a00068e0: e1a03000 mov r3, r0 <== NOT EXECUTED a00068e4: e59f1070 ldr r1, [pc, #112] ; a000695c <rtems_cpu_usage_report_with_plugin+0x1ac><== NOT EXECUTED a00068e8: e58d2000 str r2, [sp] <== NOT EXECUTED a00068ec: e59d2048 ldr r2, [sp, #72] ; 0x48 <== NOT EXECUTED a00068f0: e1a00009 mov r0, r9 <== NOT EXECUTED a00068f4: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a00068f8: e59d2030 ldr r2, [sp, #48] ; 0x30 <== NOT EXECUTED a00068fc: e12fff3a blx sl <== NOT EXECUTED
continue;
#endif
information = _Objects_Information_table[ api_index ][ 1 ];
if ( information ) {
for ( i=1 ; i <= information->maximum ; i++ ) {
a0006900: e2877001 add r7, r7, #1 <== NOT EXECUTED a0006904: e1d631b0 ldrh r3, [r6, #16] <== NOT EXECUTED a0006908: e1570003 cmp r7, r3 <== NOT EXECUTED a000690c: 9affffbe bls a000680c <rtems_cpu_usage_report_with_plugin+0x5c><== NOT EXECUTED
" ID | NAME | TICKS | PERCENT\n"
#endif
"------------+----------------------------------------+---------------+---------\n"
);
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
a0006910: e59f3048 ldr r3, [pc, #72] ; a0006960 <rtems_cpu_usage_report_with_plugin+0x1b0><== NOT EXECUTED a0006914: e1550003 cmp r5, r3 <== NOT EXECUTED a0006918: 1affffb4 bne a00067f0 <rtems_cpu_usage_report_with_plugin+0x40><== NOT EXECUTED
}
}
}
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)(
a000691c: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a0006920: e59d003c ldr r0, [sp, #60] ; 0x3c <== NOT EXECUTED a0006924: eb00568b bl a001c358 <__aeabi_uidiv> <== NOT EXECUTED a0006928: e59f1034 ldr r1, [pc, #52] ; a0006964 <rtems_cpu_usage_report_with_plugin+0x1b4><== NOT EXECUTED a000692c: e1a03000 mov r3, r0 <== NOT EXECUTED a0006930: e59d2038 ldr r2, [sp, #56] ; 0x38 <== NOT EXECUTED a0006934: e1a00009 mov r0, r9 <== NOT EXECUTED a0006938: e12fff3a blx sl <== NOT EXECUTED
"-------------------------------------------------------------------------------\n",
_Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset,
total_units
);
#endif
}
a000693c: e28dd050 add sp, sp, #80 ; 0x50 <== NOT EXECUTED
a0006940: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a0006988 <rtems_cpu_usage_reset>:
/*
* rtems_cpu_usage_reset
*/
void rtems_cpu_usage_reset( void )
{
a0006988: e92d4010 push {r4, lr} <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset );
a000698c: e59f401c ldr r4, [pc, #28] ; a00069b0 <rtems_cpu_usage_reset+0x28><== NOT EXECUTED a0006990: e1a00004 mov r0, r4 <== NOT EXECUTED a0006994: eb00143e bl a000ba94 <_TOD_Get_uptime> <== NOT EXECUTED
_Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset;
a0006998: e8940006 ldm r4, {r1, r2} <== NOT EXECUTED
a000699c: e59f3010 ldr r3, [pc, #16] ; a00069b4 <rtems_cpu_usage_reset+0x2c><== NOT EXECUTED
#else
CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot;
#endif
rtems_iterate_over_all_threads(CPU_usage_Per_thread_handler);
a00069a0: e59f0010 ldr r0, [pc, #16] ; a00069b8 <rtems_cpu_usage_reset+0x30><== NOT EXECUTED
*/
void rtems_cpu_usage_reset( void )
{
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_TOD_Get_uptime( &CPU_usage_Uptime_at_last_reset );
_Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset;
a00069a4: e8830006 stm r3, {r1, r2} <== NOT EXECUTED
#else
CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot;
#endif
rtems_iterate_over_all_threads(CPU_usage_Per_thread_handler);
}
a00069a8: e8bd4010 pop {r4, lr} <== NOT EXECUTED
_Thread_Time_of_last_context_switch = CPU_usage_Uptime_at_last_reset;
#else
CPU_usage_Ticks_at_last_reset = _Watchdog_Ticks_since_boot;
#endif
rtems_iterate_over_all_threads(CPU_usage_Per_thread_handler);
a00069ac: ea0015ad b a000c068 <rtems_iterate_over_all_threads> <== NOT EXECUTED
a000ed9c <rtems_debug_enable>:
*/
void rtems_debug_enable (
rtems_debug_control to_be_enabled
)
{
_Debug_Level |= to_be_enabled;
a000ed9c: e59f300c ldr r3, [pc, #12] ; a000edb0 <rtems_debug_enable+0x14><== NOT EXECUTED a000eda0: e5932000 ldr r2, [r3] <== NOT EXECUTED a000eda4: e1802002 orr r2, r0, r2 <== NOT EXECUTED a000eda8: e5832000 str r2, [r3] <== NOT EXECUTED
}
a000edac: e12fff1e bx lr <== NOT EXECUTED
a000edd4 <rtems_debug_is_enabled>:
*/
bool rtems_debug_is_enabled(
rtems_debug_control level
)
{
return (_Debug_Level & level) ? true : false;
a000edd4: e59f3010 ldr r3, [pc, #16] ; a000edec <rtems_debug_is_enabled+0x18><== NOT EXECUTED a000edd8: e5933000 ldr r3, [r3] <== NOT EXECUTED a000eddc: e1100003 tst r0, r3 <== NOT EXECUTED
}
a000ede0: 03a00000 moveq r0, #0 <== NOT EXECUTED a000ede4: 13a00001 movne r0, #1 <== NOT EXECUTED a000ede8: e12fff1e bx lr <== NOT EXECUTED
a0010fc0 <rtems_deviceio_errno>:
[RTEMS_PROXY_BLOCKING] = EIO
};
int rtems_deviceio_errno(rtems_status_code sc)
{
if (sc == RTEMS_SUCCESSFUL) {
a0010fc0: e3500000 cmp r0, #0 <== NOT EXECUTED
[RTEMS_IO_ERROR] = EIO,
[RTEMS_PROXY_BLOCKING] = EIO
};
int rtems_deviceio_errno(rtems_status_code sc)
{
a0010fc4: e92d4010 push {r4, lr} <== NOT EXECUTED
if (sc == RTEMS_SUCCESSFUL) {
a0010fc8: 0a000006 beq a0010fe8 <rtems_deviceio_errno+0x28> <== NOT EXECUTED
return 0;
} else {
int eno = EINVAL;
if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {
a0010fcc: e350001c cmp r0, #28 <== NOT EXECUTED
eno = status_code_to_errno [sc];
a0010fd0: 959f3014 ldrls r3, [pc, #20] ; a0010fec <rtems_deviceio_errno+0x2c><== NOT EXECUTED
int rtems_deviceio_errno(rtems_status_code sc)
{
if (sc == RTEMS_SUCCESSFUL) {
return 0;
} else {
int eno = EINVAL;
a0010fd4: 83a04016 movhi r4, #22 <== NOT EXECUTED
if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {
eno = status_code_to_errno [sc];
a0010fd8: 97934100 ldrls r4, [r3, r0, lsl #2] <== NOT EXECUTED
}
errno = eno;
a0010fdc: eb000022 bl a001106c <__errno> <== NOT EXECUTED a0010fe0: e5804000 str r4, [r0] <== NOT EXECUTED
return -1;
a0010fe4: e3e00000 mvn r0, #0 <== NOT EXECUTED
} }
a0010fe8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000a870 <rtems_error>:
int rtems_error(
rtems_error_code_t error_flag,
const char *printf_format,
...
)
{
a000a870: e92d000e push {r1, r2, r3} <== NOT EXECUTED
a000a874: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
va_list arglist;
int chars_written;
va_start(arglist, printf_format);
chars_written = rtems_verror(error_flag, printf_format, arglist);
a000a878: e59d100c ldr r1, [sp, #12] <== NOT EXECUTED
int rtems_error(
rtems_error_code_t error_flag,
const char *printf_format,
...
)
{
a000a87c: e1a04000 mov r4, r0 <== NOT EXECUTED
va_list arglist;
int chars_written;
va_start(arglist, printf_format);
a000a880: e28d2010 add r2, sp, #16 <== NOT EXECUTED a000a884: e58d2000 str r2, [sp] <== NOT EXECUTED
chars_written = rtems_verror(error_flag, printf_format, arglist);
a000a888: ebffff9e bl a000a708 <rtems_verror> <== NOT EXECUTED
va_end(arglist);
if (error_flag & RTEMS_ERROR_PANIC) {
a000a88c: e2143202 ands r3, r4, #536870912 ; 0x20000000 <== NOT EXECUTED a000a890: 0a000005 beq a000a8ac <rtems_error+0x3c> <== NOT EXECUTED
rtems_error(0, "fatal error, exiting");
a000a894: e59f1034 ldr r1, [pc, #52] ; a000a8d0 <rtems_error+0x60> <== NOT EXECUTED a000a898: e3a00000 mov r0, #0 <== NOT EXECUTED a000a89c: ebfffff3 bl a000a870 <rtems_error> <== NOT EXECUTED
_exit(errno);
a000a8a0: eb002e5d bl a001621c <__errno> <== NOT EXECUTED a000a8a4: e5900000 ldr r0, [r0] <== NOT EXECUTED a000a8a8: eb0002ac bl a000b360 <_exit> <== NOT EXECUTED
}
if (error_flag & RTEMS_ERROR_ABORT) {
a000a8ac: e3140201 tst r4, #268435456 ; 0x10000000 <== NOT EXECUTED a000a8b0: 0a000003 beq a000a8c4 <rtems_error+0x54> <== NOT EXECUTED
rtems_error(0, "fatal error, aborting");
a000a8b4: e1a00003 mov r0, r3 <== NOT EXECUTED a000a8b8: e59f1014 ldr r1, [pc, #20] ; a000a8d4 <rtems_error+0x64> <== NOT EXECUTED a000a8bc: ebffffeb bl a000a870 <rtems_error> <== NOT EXECUTED
abort();
a000a8c0: eb002e4b bl a00161f4 <abort> <== NOT EXECUTED
}
return chars_written;
}
a000a8c4: e8bd4018 pop {r3, r4, lr} <== NOT EXECUTED
a000a8c8: e28dd00c add sp, sp, #12 <== NOT EXECUTED
a000a8cc: e12fff1e bx lr <== NOT EXECUTED
a0008df8 <rtems_event_receive>:
rtems_event_set event_in,
rtems_option option_set,
rtems_interval ticks,
rtems_event_set *event_out
)
{
a0008df8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
RTEMS_API_Control *api;
if ( !event_out )
a0008dfc: e2535000 subs r5, r3, #0 <== NOT EXECUTED a0008e00: 0a000010 beq a0008e48 <rtems_event_receive+0x50> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
a0008e04: e59f4044 ldr r4, [pc, #68] ; a0008e50 <rtems_event_receive+0x58><== NOT EXECUTED
if ( _Event_sets_Is_empty( event_in ) ) {
a0008e08: e3500000 cmp r0, #0 <== NOT EXECUTED
RTEMS_API_Control *api;
if ( !event_out )
return RTEMS_INVALID_ADDRESS;
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
a0008e0c: e5946004 ldr r6, [r4, #4] <== NOT EXECUTED a0008e10: e59660f8 ldr r6, [r6, #248] ; 0xf8 <== NOT EXECUTED
if ( _Event_sets_Is_empty( event_in ) ) {
a0008e14: 1a000002 bne a0008e24 <rtems_event_receive+0x2c> <== NOT EXECUTED
*event_out = api->pending_events;
a0008e18: e5963000 ldr r3, [r6] <== NOT EXECUTED a0008e1c: e5853000 str r3, [r5] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0008e20: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a0008e24: e59fc028 ldr ip, [pc, #40] ; a0008e54 <rtems_event_receive+0x5c><== NOT EXECUTED a0008e28: e59ce000 ldr lr, [ip] <== NOT EXECUTED a0008e2c: e28ee001 add lr, lr, #1 <== NOT EXECUTED a0008e30: e58ce000 str lr, [ip] <== NOT EXECUTED
}
_Thread_Disable_dispatch();
_Event_Seize( event_in, option_set, ticks, event_out );
a0008e34: eb000007 bl a0008e58 <_Event_Seize> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0008e38: eb000a58 bl a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return( _Thread_Executing->Wait.return_code );
a0008e3c: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED
a0008e40: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED
a0008e44: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
)
{
RTEMS_API_Control *api;
if ( !event_out )
return RTEMS_INVALID_ADDRESS;
a0008e48: e3a00009 mov r0, #9 <== NOT EXECUTED
_Thread_Disable_dispatch();
_Event_Seize( event_in, option_set, ticks, event_out );
_Thread_Enable_dispatch();
return( _Thread_Executing->Wait.return_code );
}
a0008e4c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0008f68 <rtems_event_send>:
rtems_status_code rtems_event_send(
rtems_id id,
rtems_event_set event_in
)
{
a0008f68: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
a0008f6c: e1a04001 mov r4, r1 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
the_thread = _Thread_Get( id, &location );
a0008f70: e1a0100d mov r1, sp <== NOT EXECUTED a0008f74: eb000a12 bl a000b7c4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a0008f78: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0008f7c: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0008f80: 13a00004 movne r0, #4 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
a0008f84: 1a00000a bne a0008fb4 <rtems_event_send+0x4c> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
a0008f88: e59030f8 ldr r3, [r0, #248] ; 0xf8 <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0008f8c: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0008f90: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a0008f94: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
)
{
ISR_Level level;
_ISR_Disable( level );
*the_event_set |= the_new_events;
a0008f98: e5931000 ldr r1, [r3] <== NOT EXECUTED a0008f9c: e1814004 orr r4, r1, r4 <== NOT EXECUTED a0008fa0: e5834000 str r4, [r3] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0008fa4: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_Event_sets_Post( event_in, &api->pending_events );
_Event_Surrender( the_thread );
a0008fa8: eb000002 bl a0008fb8 <_Event_Surrender> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0008fac: eb0009fb bl a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0008fb0: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0008fb4: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000b24c <rtems_extension_create>:
rtems_status_code rtems_extension_create(
rtems_name name,
const rtems_extensions_table *extension_table,
rtems_id *id
)
{
a000b24c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
Extension_Control *the_extension;
if ( !id )
a000b250: e2527000 subs r7, r2, #0 <== NOT EXECUTED
rtems_status_code rtems_extension_create(
rtems_name name,
const rtems_extensions_table *extension_table,
rtems_id *id
)
{
a000b254: e1a05000 mov r5, r0 <== NOT EXECUTED a000b258: e1a08001 mov r8, r1 <== NOT EXECUTED
Extension_Control *the_extension;
if ( !id )
a000b25c: 0a00001e beq a000b2dc <rtems_extension_create+0x90> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
a000b260: e3500000 cmp r0, #0 <== NOT EXECUTED a000b264: 0a00001e beq a000b2e4 <rtems_extension_create+0x98> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000b268: e59f307c ldr r3, [pc, #124] ; a000b2ec <rtems_extension_create+0xa0><== NOT EXECUTED a000b26c: e5932000 ldr r2, [r3] <== NOT EXECUTED a000b270: e2822001 add r2, r2, #1 <== NOT EXECUTED a000b274: e5832000 str r2, [r3] <== NOT EXECUTED
#ifndef __EXTENSION_MANAGER_inl
#define __EXTENSION_MANAGER_inl
RTEMS_INLINE_ROUTINE Extension_Control *_Extension_Allocate( void )
{
return (Extension_Control *) _Objects_Allocate( &_Extension_Information );
a000b278: e59f6070 ldr r6, [pc, #112] ; a000b2f0 <rtems_extension_create+0xa4><== NOT EXECUTED a000b27c: e1a00006 mov r0, r6 <== NOT EXECUTED a000b280: eb000390 bl a000c0c8 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */
the_extension = _Extension_Allocate();
if ( !the_extension ) {
a000b284: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000b288: 1a000002 bne a000b298 <rtems_extension_create+0x4c> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000b28c: eb0007f5 bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
a000b290: e3a00005 mov r0, #5 <== NOT EXECUTED
a000b294: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _User_extensions_Add_set_with_table(
User_extensions_Control *extension,
const User_extensions_Table *extension_table
)
{
extension->Callouts = *extension_table;
a000b298: e284c024 add ip, r4, #36 ; 0x24 <== NOT EXECUTED
a000b29c: e1a0e008 mov lr, r8 <== NOT EXECUTED
a000b2a0: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a000b2a4: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000b2a8: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED
a000b2ac: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED
_User_extensions_Add_set( extension );
a000b2b0: e2840010 add r0, r4, #16 <== NOT EXECUTED a000b2b4: eb000ad8 bl a000de1c <_User_extensions_Add_set> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000b2b8: e596201c ldr r2, [r6, #28] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
a000b2bc: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000b2c0: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000b2c4: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
a000b2c8: e584500c str r5, [r4, #12] <== NOT EXECUTED
&_Extension_Information,
&the_extension->Object,
(Objects_Name) name
);
*id = the_extension->Object.id;
a000b2cc: e5873000 str r3, [r7] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000b2d0: eb0007e4 bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000b2d4: e3a00000 mov r0, #0 <== NOT EXECUTED
a000b2d8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
)
{
Extension_Control *the_extension;
if ( !id )
return RTEMS_INVALID_ADDRESS;
a000b2dc: e3a00009 mov r0, #9 <== NOT EXECUTED
a000b2e0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
a000b2e4: e3a00003 mov r0, #3 <== NOT EXECUTED
);
*id = the_extension->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
a000b2e8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000b06c <rtems_extension_delete>:
#include <rtems/extension.h>
rtems_status_code rtems_extension_delete(
rtems_id id
)
{
a000b06c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a000b070: e1a01000 mov r1, r0 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Extension_Control *)
_Objects_Get( &_Extension_Information, id, location );
a000b074: e1a0200d mov r2, sp <== NOT EXECUTED a000b078: e59f0040 ldr r0, [pc, #64] ; a000b0c0 <rtems_extension_delete+0x54><== NOT EXECUTED a000b07c: eb000475 bl a000c258 <_Objects_Get> <== NOT EXECUTED
Extension_Control *the_extension;
Objects_Locations location;
the_extension = _Extension_Get( id, &location );
switch ( location ) {
a000b080: e59d5000 ldr r5, [sp] <== NOT EXECUTED a000b084: e1a04000 mov r4, r0 <== NOT EXECUTED a000b088: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000b08c: 13a00004 movne r0, #4 <== NOT EXECUTED
{
Extension_Control *the_extension;
Objects_Locations location;
the_extension = _Extension_Get( id, &location );
switch ( location ) {
a000b090: 1a000009 bne a000b0bc <rtems_extension_delete+0x50> <== NOT EXECUTED
case OBJECTS_LOCAL:
_User_extensions_Remove_set( &the_extension->Extension );
a000b094: e2840010 add r0, r4, #16 <== NOT EXECUTED a000b098: eb000a77 bl a000da7c <_User_extensions_Remove_set> <== NOT EXECUTED
_Objects_Close( &_Extension_Information, &the_extension->Object );
a000b09c: e59f001c ldr r0, [pc, #28] ; a000b0c0 <rtems_extension_delete+0x54><== NOT EXECUTED a000b0a0: e1a01004 mov r1, r4 <== NOT EXECUTED a000b0a4: eb00036e bl a000be64 <_Objects_Close> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Extension_Free (
Extension_Control *the_extension
)
{
_Objects_Free( &_Extension_Information, &the_extension->Object );
a000b0a8: e59f0010 ldr r0, [pc, #16] ; a000b0c0 <rtems_extension_delete+0x54><== NOT EXECUTED a000b0ac: e1a01004 mov r1, r4 <== NOT EXECUTED a000b0b0: eb000410 bl a000c0f8 <_Objects_Free> <== NOT EXECUTED
_Extension_Free( the_extension );
_Thread_Enable_dispatch();
a000b0b4: eb00076e bl a000ce74 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000b0b8: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a000b0bc: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000bcbc <rtems_extension_ident>:
rtems_status_code rtems_extension_ident(
rtems_name name,
rtems_id *id
)
{
a000bcbc: e1a02000 mov r2, r0 <== NOT EXECUTED
a000bcc0: e1a03001 mov r3, r1 <== NOT EXECUTED
a000bcc4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
a000bcc8: e1a01002 mov r1, r2 <== NOT EXECUTED a000bccc: e59f0010 ldr r0, [pc, #16] ; a000bce4 <rtems_extension_ident+0x28><== NOT EXECUTED a000bcd0: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000bcd4: eb0004a6 bl a000cf74 <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
a000bcd8: e59f3008 ldr r3, [pc, #8] ; a000bce8 <rtems_extension_ident+0x2c><== NOT EXECUTED
a000bcdc: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
a000bce0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a00060e8 <rtems_filesystem_dirname>:
int rtems_filesystem_dirname(
const char *pathname
)
{
a00060e8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a00060ec: e1a05000 mov r5, r0 <== NOT EXECUTED
int len = strlen( pathname );
a00060f0: eb002fc7 bl a0012014 <strlen> <== NOT EXECUTED a00060f4: e1a04000 mov r4, r0 <== NOT EXECUTED
while ( len ) {
a00060f8: ea000004 b a0006110 <rtems_filesystem_dirname+0x28> <== NOT EXECUTED
len--;
a00060fc: e2444001 sub r4, r4, #1 <== NOT EXECUTED
if ( rtems_filesystem_is_separator( pathname[len] ) )
a0006100: e7d50004 ldrb r0, [r5, r4] <== NOT EXECUTED a0006104: eb0003b2 bl a0006fd4 <rtems_filesystem_is_separator> <== NOT EXECUTED a0006108: e3500000 cmp r0, #0 <== NOT EXECUTED a000610c: 1a000001 bne a0006118 <rtems_filesystem_dirname+0x30> <== NOT EXECUTED
const char *pathname
)
{
int len = strlen( pathname );
while ( len ) {
a0006110: e3540000 cmp r4, #0 <== NOT EXECUTED a0006114: 1afffff8 bne a00060fc <rtems_filesystem_dirname+0x14> <== NOT EXECUTED
if ( rtems_filesystem_is_separator( pathname[len] ) )
break;
}
return len;
}
a0006118: e1a00004 mov r0, r4 <== NOT EXECUTED
a000611c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000602c <rtems_filesystem_evaluate_relative_path>:
if ( !pathloc )
rtems_set_errno_and_return_minus_one( EIO );
#endif
result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
a000602c: e593c00c ldr ip, [r3, #12]
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
a0006030: e92d4030 push {r4, r5, lr}
if ( !pathloc )
rtems_set_errno_and_return_minus_one( EIO );
#endif
result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
a0006034: e59cc000 ldr ip, [ip]
size_t pathnamelen,
int flags,
rtems_filesystem_location_info_t *pathloc,
int follow_link
)
{
a0006038: e1a05002 mov r5, r2 a000603c: e1a04003 mov r4, r3
if ( !pathloc )
rtems_set_errno_and_return_minus_one( EIO );
#endif
result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc );
a0006040: e12fff3c blx ip
/*
* Get the Node type and determine if you need to follow the link or
* not.
*/
if ( (result == 0) && follow_link ) {
a0006044: e59d200c ldr r2, [sp, #12] a0006048: e2703001 rsbs r3, r0, #1 a000604c: 33a03000 movcc r3, #0 a0006050: e3520000 cmp r2, #0 a0006054: 03a03000 moveq r3, #0 a0006058: e3530000 cmp r3, #0
a000605c: 0a00000d beq a0006098 <rtems_filesystem_evaluate_relative_path+0x6c>
type = (*pathloc->ops->node_type_h)( pathloc );
a0006060: e594300c ldr r3, [r4, #12] <== NOT EXECUTED a0006064: e1a00004 mov r0, r4 <== NOT EXECUTED a0006068: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a000606c: e12fff33 blx r3 <== NOT EXECUTED
if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) ||
a0006070: e2400003 sub r0, r0, #3 <== NOT EXECUTED a0006074: e3500001 cmp r0, #1 <== NOT EXECUTED a0006078: 83a00000 movhi r0, #0 <== NOT EXECUTED a000607c: 8a000005 bhi a0006098 <rtems_filesystem_evaluate_relative_path+0x6c><== NOT EXECUTED
* pathloc will be passed up (and eventually released).
* Hence, the (valid) originial node that we submit to
* eval_link_h() should be released by the handler.
*/
result = (*pathloc->ops->eval_link_h)( pathloc, flags );
a0006080: e594300c ldr r3, [r4, #12] <== NOT EXECUTED
a0006084: e1a00004 mov r0, r4 <== NOT EXECUTED
a0006088: e1a01005 mov r1, r5 <== NOT EXECUTED
a000608c: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED
a0006090: e12fff33 blx r3 <== NOT EXECUTED
a0006094: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
}
}
return result;
}
a0006098: e8bd8030 pop {r4, r5, pc}
a0006f6c <rtems_filesystem_get_start_loc>:
#include "rtems/libio_.h"
void rtems_filesystem_get_start_loc(const char *path,
int *index,
rtems_filesystem_location_info_t *loc)
{
a0006f6c: e92d4070 push {r4, r5, r6, lr}
if (rtems_filesystem_is_separator(path[0])) {
a0006f70: e5d00000 ldrb r0, [r0]
#include "rtems/libio_.h"
void rtems_filesystem_get_start_loc(const char *path,
int *index,
rtems_filesystem_location_info_t *loc)
{
a0006f74: e1a05001 mov r5, r1 a0006f78: e1a04002 mov r4, r2
if (rtems_filesystem_is_separator(path[0])) {
a0006f7c: eb000014 bl a0006fd4 <rtems_filesystem_is_separator> a0006f80: e2506000 subs r6, r0, #0 a0006f84: e59f3044 ldr r3, [pc, #68] ; a0006fd0 <rtems_filesystem_get_start_loc+0x64>
a0006f88: 0a000008 beq a0006fb0 <rtems_filesystem_get_start_loc+0x44>
*loc = rtems_filesystem_root;
a0006f8c: e593c000 ldr ip, [r3]
a0006f90: e28cc018 add ip, ip, #24
a0006f94: e8bc000f ldm ip!, {r0, r1, r2, r3}
a0006f98: e8a4000f stmia r4!, {r0, r1, r2, r3}
a0006f9c: e59c2000 ldr r2, [ip]
*index = 1;
a0006fa0: e3a03001 mov r3, #1
void rtems_filesystem_get_start_loc(const char *path,
int *index,
rtems_filesystem_location_info_t *loc)
{
if (rtems_filesystem_is_separator(path[0])) {
*loc = rtems_filesystem_root;
a0006fa4: e5842000 str r2, [r4]
*index = 1;
a0006fa8: e5853000 str r3, [r5]
a0006fac: e8bd8070 pop {r4, r5, r6, pc}
}
else {
*loc = rtems_filesystem_current;
a0006fb0: e593c000 ldr ip, [r3] <== NOT EXECUTED
a0006fb4: e28cc004 add ip, ip, #4 <== NOT EXECUTED
a0006fb8: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006fbc: e8a4000f stmia r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a0006fc0: e59c2000 ldr r2, [ip] <== NOT EXECUTED
a0006fc4: e5842000 str r2, [r4] <== NOT EXECUTED
*index = 0;
a0006fc8: e5856000 str r6, [r5] <== NOT EXECUTED
a0006fcc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000e050 <rtems_filesystem_get_sym_start_loc>:
#include "rtems/libio_.h"
void rtems_filesystem_get_sym_start_loc(const char *path,
int *index,
rtems_filesystem_location_info_t *loc)
{
a000e050: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
if (rtems_filesystem_is_separator(path[0])) {
a000e054: e5d00000 ldrb r0, [r0] <== NOT EXECUTED
#include "rtems/libio_.h"
void rtems_filesystem_get_sym_start_loc(const char *path,
int *index,
rtems_filesystem_location_info_t *loc)
{
a000e058: e1a05001 mov r5, r1 <== NOT EXECUTED a000e05c: e1a04002 mov r4, r2 <== NOT EXECUTED
if (rtems_filesystem_is_separator(path[0])) {
a000e060: ebffe3db bl a0006fd4 <rtems_filesystem_is_separator> <== NOT EXECUTED a000e064: e3500000 cmp r0, #0 <== NOT EXECUTED a000e068: 0a000009 beq a000e094 <rtems_filesystem_get_sym_start_loc+0x44><== NOT EXECUTED
*loc = rtems_filesystem_root;
a000e06c: e59f3028 ldr r3, [pc, #40] ; a000e09c <rtems_filesystem_get_sym_start_loc+0x4c><== NOT EXECUTED
a000e070: e593c000 ldr ip, [r3] <== NOT EXECUTED
a000e074: e28cc018 add ip, ip, #24 <== NOT EXECUTED
a000e078: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000e07c: e8a4000f stmia r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a000e080: e59c2000 ldr r2, [ip] <== NOT EXECUTED
*index = 1;
a000e084: e3a03001 mov r3, #1 <== NOT EXECUTED
void rtems_filesystem_get_sym_start_loc(const char *path,
int *index,
rtems_filesystem_location_info_t *loc)
{
if (rtems_filesystem_is_separator(path[0])) {
*loc = rtems_filesystem_root;
a000e088: e5842000 str r2, [r4] <== NOT EXECUTED
*index = 1;
a000e08c: e5853000 str r3, [r5] <== NOT EXECUTED
a000e090: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
}
else {
*index = 0;
a000e094: e5850000 str r0, [r5] <== NOT EXECUTED
a000e098: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0005ecc <rtems_filesystem_initialize>:
* configuration is a single instantiation of the IMFS or miniIMFS with
* a single "/dev" directory in it.
*/
void rtems_filesystem_initialize( void )
{
a0005ecc: e92d40f0 push {r4, r5, r6, r7, lr}
/*
* Set the default umask to "022".
*/
rtems_filesystem_umask = 022;
a0005ed0: e59f60e0 ldr r6, [pc, #224] ; a0005fb8 <rtems_filesystem_initialize+0xec> a0005ed4: e3a02012 mov r2, #18
* configuration is a single instantiation of the IMFS or miniIMFS with
* a single "/dev" directory in it.
*/
void rtems_filesystem_initialize( void )
{
a0005ed8: e24dd018 sub sp, sp, #24
/*
* Set the default umask to "022".
*/
rtems_filesystem_umask = 022;
a0005edc: e5963000 ldr r3, [r6] a0005ee0: e583202c str r2, [r3, #44] ; 0x2c
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
a0005ee4: e59f30d0 ldr r3, [pc, #208] ; a0005fbc <rtems_filesystem_initialize+0xf0> a0005ee8: e5933000 ldr r3, [r3] a0005eec: e3530000 cmp r3, #0
rtems_fatal_error_occurred( 0xABCD0001 );
a0005ef0: 059f00c8 ldreq r0, [pc, #200] ; a0005fc0 <rtems_filesystem_initialize+0xf4>
rtems_filesystem_umask = 022;
/*
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
a0005ef4: 0a00000a beq a0005f24 <rtems_filesystem_initialize+0x58>
rtems_fatal_error_occurred( 0xABCD0001 );
mt = &rtems_filesystem_mount_table[0];
a0005ef8: e59f30c4 ldr r3, [pc, #196] ; a0005fc4 <rtems_filesystem_initialize+0xf8>
status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
a0005efc: e3a05000 mov r5, #0
* mount the first filesystem.
*/
if ( rtems_filesystem_mount_table_size == 0 )
rtems_fatal_error_occurred( 0xABCD0001 );
mt = &rtems_filesystem_mount_table[0];
a0005f00: e5933000 ldr r3, [r3]
status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
a0005f04: e58d5000 str r5, [sp]
a0005f08: e5930008 ldr r0, [r3, #8]
a0005f0c: e593100c ldr r1, [r3, #12]
a0005f10: e893000c ldm r3, {r2, r3}
a0005f14: eb00020c bl a000674c <mount>
if ( status == -1 )
a0005f18: e3700001 cmn r0, #1
a0005f1c: 1a000001 bne a0005f28 <rtems_filesystem_initialize+0x5c>
rtems_fatal_error_occurred( 0xABCD0002 );
a0005f20: e59f00a0 ldr r0, [pc, #160] ; a0005fc8 <rtems_filesystem_initialize+0xfc><== NOT EXECUTED a0005f24: eb000ebc bl a0009a1c <rtems_fatal_error_occurred> <== NOT EXECUTED
rtems_filesystem_link_counts = 0;
a0005f28: e5963000 ldr r3, [r6]
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
a0005f2c: e28d4004 add r4, sp, #4 a0005f30: e3a01001 mov r1, #1
status = mount( mt->device, mt->mount_point, mt->type, mt->fsoptions, NULL );
if ( status == -1 )
rtems_fatal_error_occurred( 0xABCD0002 );
rtems_filesystem_link_counts = 0;
a0005f34: e1c353b0 strh r5, [r3, #48] ; 0x30
* gonna hit performance.
*
* Till Straumann, 10/25/2002
*/
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
a0005f38: e1a02005 mov r2, r5 a0005f3c: e1a03004 mov r3, r4 a0005f40: e59f0084 ldr r0, [pc, #132] ; a0005fcc <rtems_filesystem_initialize+0x100> a0005f44: e58d5000 str r5, [sp] a0005f48: eb000053 bl a000609c <rtems_filesystem_evaluate_path>
rtems_filesystem_root = loc;
a0005f4c: e596c000 ldr ip, [r6]
a0005f50: e1a07004 mov r7, r4
a0005f54: e8b7000f ldm r7!, {r0, r1, r2, r3}
a0005f58: e28cc018 add ip, ip, #24
a0005f5c: e8ac000f stmia ip!, {r0, r1, r2, r3}
a0005f60: e5973000 ldr r3, [r7]
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
a0005f64: e3a01001 mov r1, #1 a0005f68: e1a02005 mov r2, r5
*
* Till Straumann, 10/25/2002
*/
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
a0005f6c: e58c3000 str r3, [ip]
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
a0005f70: e59f0054 ldr r0, [pc, #84] ; a0005fcc <rtems_filesystem_initialize+0x100> a0005f74: e1a03004 mov r3, r4 a0005f78: e58d5000 str r5, [sp] a0005f7c: eb000046 bl a000609c <rtems_filesystem_evaluate_path>
rtems_filesystem_current = loc;
a0005f80: e8b4000f ldm r4!, {r0, r1, r2, r3}
a0005f84: e596c000 ldr ip, [r6]
a0005f88: e28cc004 add ip, ip, #4
a0005f8c: e8ac000f stmia ip!, {r0, r1, r2, r3}
a0005f90: e5973000 ldr r3, [r7]
*
* NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually
* created that way by the IMFS.
*/
status = mkdir( "/dev", 0777);
a0005f94: e59f0034 ldr r0, [pc, #52] ; a0005fd0 <rtems_filesystem_initialize+0x104> a0005f98: e59f1034 ldr r1, [pc, #52] ; a0005fd4 <rtems_filesystem_initialize+0x108>
/* Clone the root pathloc */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_root = loc;
/* One more clone for the current node */
rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0);
rtems_filesystem_current = loc;
a0005f9c: e58c3000 str r3, [ip]
*
* NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually
* created that way by the IMFS.
*/
status = mkdir( "/dev", 0777);
a0005fa0: eb00018d bl a00065dc <mkdir>
if ( status != 0 )
a0005fa4: e3500000 cmp r0, #0
rtems_fatal_error_occurred( 0xABCD0003 );
a0005fa8: 159f0028 ldrne r0, [pc, #40] ; a0005fd8 <rtems_filesystem_initialize+0x10c>
* NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually
* created that way by the IMFS.
*/
status = mkdir( "/dev", 0777);
if ( status != 0 )
a0005fac: 1affffdc bne a0005f24 <rtems_filesystem_initialize+0x58>
* it will be mounted onto is created. Moreover, if it is going to
* use a device, then it is REALLY unfair to attempt this
* before device drivers are initialized. So we return via a base
* filesystem image and nothing auto-mounted at this point.
*/
}
a0005fb0: e28dd018 add sp, sp, #24
a0005fb4: e8bd80f0 pop {r4, r5, r6, r7, pc}
a000de68 <rtems_filesystem_iterate>:
bool rtems_filesystem_iterate(
rtems_per_filesystem_routine routine,
void *routine_arg
)
{
a000de68: e92d41f0 push {r4, r5, r6, r7, r8, lr}
a000de6c: e1a06000 mov r6, r0
a000de70: e1a07001 mov r7, r1
const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0]; rtems_chain_node *node = NULL; bool stop = false;
a000de74: e3a00000 mov r0, #0
bool rtems_filesystem_iterate(
rtems_per_filesystem_routine routine,
void *routine_arg
)
{
const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
a000de78: e59f4070 ldr r4, [pc, #112] ; a000def0 <rtems_filesystem_iterate+0x88>
rtems_chain_node *node = NULL;
bool stop = false;
while ( table_entry->type && !stop ) {
a000de7c: ea000003 b a000de90 <rtems_filesystem_iterate+0x28>
stop = (*routine)( table_entry, routine_arg );
a000de80: e1a00004 mov r0, r4 a000de84: e1a01007 mov r1, r7 a000de88: e12fff36 blx r6
++table_entry;
a000de8c: e2844008 add r4, r4, #8
{
const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
rtems_chain_node *node = NULL;
bool stop = false;
while ( table_entry->type && !stop ) {
a000de90: e5943000 ldr r3, [r4] a000de94: e3530000 cmp r3, #0
a000de98: 0a000002 beq a000dea8 <rtems_filesystem_iterate+0x40>
a000de9c: e3500000 cmp r0, #0
a000dea0: 0afffff6 beq a000de80 <rtems_filesystem_iterate+0x18>
a000dea4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
stop = (*routine)( table_entry, routine_arg );
++table_entry;
}
if ( !stop ) {
a000dea8: e2508000 subs r8, r0, #0
a000deac: 1a00000e bne a000deec <rtems_filesystem_iterate+0x84>
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
}
a000deb0: e59f503c ldr r5, [pc, #60] ; a000def4 <rtems_filesystem_iterate+0x8c><== NOT EXECUTED
stop = (*routine)( table_entry, routine_arg );
++table_entry;
}
if ( !stop ) {
rtems_libio_lock();
a000deb4: ebffffe1 bl a000de40 <rtems_libio_lock> <== NOT EXECUTED
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
}
a000deb8: e4954004 ldr r4, [r5], #4 <== NOT EXECUTED
++table_entry;
}
if ( !stop ) {
rtems_libio_lock();
for (
a000debc: ea000004 b a000ded4 <rtems_filesystem_iterate+0x6c> <== NOT EXECUTED
!rtems_chain_is_tail( &filesystem_chain, node ) && !stop;
node = rtems_chain_next( node )
) {
const filesystem_node *fsn = (filesystem_node *) node;
stop = (*routine)( &fsn->entry, routine_arg );
a000dec0: e2840008 add r0, r4, #8 <== NOT EXECUTED a000dec4: e1a01007 mov r1, r7 <== NOT EXECUTED a000dec8: e12fff36 blx r6 <== NOT EXECUTED
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
}
a000decc: e5944000 ldr r4, [r4] <== NOT EXECUTED
!rtems_chain_is_tail( &filesystem_chain, node ) && !stop;
node = rtems_chain_next( node )
) {
const filesystem_node *fsn = (filesystem_node *) node;
stop = (*routine)( &fsn->entry, routine_arg );
a000ded0: e1a08000 mov r8, r0 <== NOT EXECUTED
++table_entry;
}
if ( !stop ) {
rtems_libio_lock();
for (
a000ded4: e1540005 cmp r4, r5 <== NOT EXECUTED a000ded8: 0a000001 beq a000dee4 <rtems_filesystem_iterate+0x7c> <== NOT EXECUTED
node = rtems_chain_first( &filesystem_chain );
!rtems_chain_is_tail( &filesystem_chain, node ) && !stop;
a000dedc: e3580000 cmp r8, #0 <== NOT EXECUTED a000dee0: 0afffff6 beq a000dec0 <rtems_filesystem_iterate+0x58> <== NOT EXECUTED
) {
const filesystem_node *fsn = (filesystem_node *) node;
stop = (*routine)( &fsn->entry, routine_arg );
}
rtems_libio_unlock();
a000dee4: ebffffdb bl a000de58 <rtems_libio_unlock> <== NOT EXECUTED a000dee8: e1a00008 mov r0, r8 <== NOT EXECUTED
}
return stop;
}
a000deec: e8bd81f0 pop {r4, r5, r6, r7, r8, pc}
a00066f8 <rtems_filesystem_mount_iterate>:
bool rtems_filesystem_mount_iterate(
rtems_per_filesystem_mount_routine routine,
void *routine_arg
)
{
a00066f8: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
stop = (*routine)( mt_entry, routine_arg );
}
rtems_libio_unlock();
return stop;
}
a00066fc: e59f5044 ldr r5, [pc, #68] ; a0006748 <rtems_filesystem_mount_iterate+0x50><== NOT EXECUTED
bool rtems_filesystem_mount_iterate(
rtems_per_filesystem_mount_routine routine,
void *routine_arg
)
{
a0006700: e1a07000 mov r7, r0 <== NOT EXECUTED a0006704: e1a06001 mov r6, r1 <== NOT EXECUTED
rtems_chain_node *node = NULL; bool stop = false;
a0006708: e3a08000 mov r8, #0 <== NOT EXECUTED
rtems_libio_lock();
a000670c: ebffffef bl a00066d0 <rtems_libio_lock> <== NOT EXECUTED
stop = (*routine)( mt_entry, routine_arg );
}
rtems_libio_unlock();
return stop;
}
a0006710: e4954004 ldr r4, [r5], #4 <== NOT EXECUTED
{
rtems_chain_node *node = NULL;
bool stop = false;
rtems_libio_lock();
for (
a0006714: ea000004 b a000672c <rtems_filesystem_mount_iterate+0x34> <== NOT EXECUTED
node = rtems_chain_next( node )
) {
const rtems_filesystem_mount_table_entry_t *mt_entry =
(rtems_filesystem_mount_table_entry_t *) node;
stop = (*routine)( mt_entry, routine_arg );
a0006718: e1a00004 mov r0, r4 <== NOT EXECUTED a000671c: e1a01006 mov r1, r6 <== NOT EXECUTED a0006720: e12fff37 blx r7 <== NOT EXECUTED
}
rtems_libio_unlock();
return stop;
}
a0006724: e5944000 ldr r4, [r4] <== NOT EXECUTED
node = rtems_chain_next( node )
) {
const rtems_filesystem_mount_table_entry_t *mt_entry =
(rtems_filesystem_mount_table_entry_t *) node;
stop = (*routine)( mt_entry, routine_arg );
a0006728: e1a08000 mov r8, r0 <== NOT EXECUTED
{
rtems_chain_node *node = NULL;
bool stop = false;
rtems_libio_lock();
for (
a000672c: e1540005 cmp r4, r5 <== NOT EXECUTED a0006730: 0a000001 beq a000673c <rtems_filesystem_mount_iterate+0x44><== NOT EXECUTED
node = rtems_chain_first( &mount_chain );
!rtems_chain_is_tail( &mount_chain, node ) && !stop;
a0006734: e3580000 cmp r8, #0 <== NOT EXECUTED a0006738: 0afffff6 beq a0006718 <rtems_filesystem_mount_iterate+0x20><== NOT EXECUTED
const rtems_filesystem_mount_table_entry_t *mt_entry =
(rtems_filesystem_mount_table_entry_t *) node;
stop = (*routine)( mt_entry, routine_arg );
}
rtems_libio_unlock();
a000673c: ebffffe9 bl a00066e8 <rtems_libio_unlock> <== NOT EXECUTED
return stop;
}
a0006740: e1a00008 mov r0, r8 <== NOT EXECUTED
a0006744: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0006120 <rtems_filesystem_prefix_separators>:
int rtems_filesystem_prefix_separators(
const char *pathname,
int pathnamelen
)
{
a0006120: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a0006124: e1a04000 mov r4, r0 <== NOT EXECUTED
a0006128: e1a06001 mov r6, r1 <== NOT EXECUTED
/* * Eat any separators at start of the path. */ int stripped = 0;
a000612c: e3a05000 mov r5, #0 <== NOT EXECUTED
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
a0006130: ea000000 b a0006138 <rtems_filesystem_prefix_separators+0x18><== NOT EXECUTED
{
pathname++;
pathnamelen--;
stripped++;
a0006134: e2855001 add r5, r5, #1 <== NOT EXECUTED
{
/*
* Eat any separators at start of the path.
*/
int stripped = 0;
while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) )
a0006138: e7d40005 ldrb r0, [r4, r5] <== NOT EXECUTED a000613c: e1560005 cmp r6, r5 <== NOT EXECUTED a0006140: 13500000 cmpne r0, #0 <== NOT EXECUTED a0006144: 0a000002 beq a0006154 <rtems_filesystem_prefix_separators+0x34><== NOT EXECUTED a0006148: eb0003a1 bl a0006fd4 <rtems_filesystem_is_separator> <== NOT EXECUTED a000614c: e3500000 cmp r0, #0 <== NOT EXECUTED a0006150: 1afffff7 bne a0006134 <rtems_filesystem_prefix_separators+0x14><== NOT EXECUTED
pathname++;
pathnamelen--;
stripped++;
}
return stripped;
}
a0006154: e1a00005 mov r0, r5 <== NOT EXECUTED
a0006158: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000df24 <rtems_filesystem_register>:
int
rtems_filesystem_register(
const char *type,
rtems_filesystem_fsmount_me_t mount_h
)
{
a000df24: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a000df28: e1a07001 mov r7, r1 <== NOT EXECUTED
a000df2c: e1a05000 mov r5, r0 <== NOT EXECUTED
size_t type_size = strlen(type) + 1;
a000df30: eb001037 bl a0012014 <strlen> <== NOT EXECUTED a000df34: e2808001 add r8, r0, #1 <== NOT EXECUTED
size_t fsn_size = sizeof( filesystem_node ) + type_size; filesystem_node *fsn = malloc( fsn_size );
a000df38: e2800011 add r0, r0, #17 <== NOT EXECUTED a000df3c: ebffe169 bl a00064e8 <malloc> <== NOT EXECUTED
char *type_storage = (char *) fsn + sizeof( *fsn );
if ( fsn == NULL )
a000df40: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000df44: 1a000004 bne a000df5c <rtems_filesystem_register+0x38> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOMEM );
a000df48: eb000c47 bl a001106c <__errno> <== NOT EXECUTED
a000df4c: e3a0300c mov r3, #12 <== NOT EXECUTED
a000df50: e5803000 str r3, [r0] <== NOT EXECUTED
a000df54: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000df58: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
)
{
size_t type_size = strlen(type) + 1;
size_t fsn_size = sizeof( filesystem_node ) + type_size;
filesystem_node *fsn = malloc( fsn_size );
char *type_storage = (char *) fsn + sizeof( *fsn );
a000df5c: e2846010 add r6, r4, #16 <== NOT EXECUTED
if ( fsn == NULL )
rtems_set_errno_and_return_minus_one( ENOMEM );
memcpy(type_storage, type, type_size);
a000df60: e1a01005 mov r1, r5 <== NOT EXECUTED a000df64: e1a02008 mov r2, r8 <== NOT EXECUTED a000df68: e1a00006 mov r0, r6 <== NOT EXECUTED a000df6c: eb000e6c bl a0011924 <memcpy> <== NOT EXECUTED
fsn->entry.type = type_storage;
a000df70: e5846008 str r6, [r4, #8] <== NOT EXECUTED
fsn->entry.mount_h = mount_h;
a000df74: e584700c str r7, [r4, #12] <== NOT EXECUTED
rtems_libio_lock();
a000df78: ebffffb0 bl a000de40 <rtems_libio_lock> <== NOT EXECUTED
if ( rtems_filesystem_get_mount_handler( type ) == NULL ) {
a000df7c: e1a00005 mov r0, r5 <== NOT EXECUTED a000df80: ebffffdc bl a000def8 <rtems_filesystem_get_mount_handler> <== NOT EXECUTED a000df84: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000df88: 1a000005 bne a000dfa4 <rtems_filesystem_register+0x80> <== NOT EXECUTED a000df8c: e59f0030 ldr r0, [pc, #48] ; a000dfc4 <rtems_filesystem_register+0xa0><== NOT EXECUTED a000df90: e1a01004 mov r1, r4 <== NOT EXECUTED a000df94: ebffef5f bl a0009d18 <_Chain_Append> <== NOT EXECUTED
rtems_libio_unlock();
free( fsn );
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_libio_unlock();
a000df98: ebffffae bl a000de58 <rtems_libio_unlock> <== NOT EXECUTED
return 0;
a000df9c: e1a00005 mov r0, r5 <== NOT EXECUTED
a000dfa0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
rtems_libio_lock();
if ( rtems_filesystem_get_mount_handler( type ) == NULL ) {
rtems_chain_append( &filesystem_chain, &fsn->node );
} else {
rtems_libio_unlock();
a000dfa4: ebffffab bl a000de58 <rtems_libio_unlock> <== NOT EXECUTED
free( fsn );
a000dfa8: e1a00004 mov r0, r4 <== NOT EXECUTED a000dfac: ebffe06f bl a0006170 <free> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000dfb0: eb000c2d bl a001106c <__errno> <== NOT EXECUTED a000dfb4: e3a03016 mov r3, #22 <== NOT EXECUTED a000dfb8: e5803000 str r3, [r0] <== NOT EXECUTED a000dfbc: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
rtems_libio_unlock();
return 0;
}
a000dfc0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000dfc8 <rtems_filesystem_unregister>:
int
rtems_filesystem_unregister(
const char *type
)
{
a000dfc8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
rtems_chain_node *node = NULL;
if ( type == NULL ) {
a000dfcc: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000dfd0: 1a000004 bne a000dfe8 <rtems_filesystem_unregister+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000dfd4: eb000c24 bl a001106c <__errno> <== NOT EXECUTED
a000dfd8: e3a03016 mov r3, #22 <== NOT EXECUTED
a000dfdc: e5803000 str r3, [r0] <== NOT EXECUTED
a000dfe0: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000dfe4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
}
a000dfe8: e59f505c ldr r5, [pc, #92] ; a000e04c <rtems_filesystem_unregister+0x84><== NOT EXECUTED
if ( type == NULL ) {
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_libio_lock();
a000dfec: ebffff93 bl a000de40 <rtems_libio_lock> <== NOT EXECUTED
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
}
a000dff0: e4954004 ldr r4, [r5], #4 <== NOT EXECUTED
if ( type == NULL ) {
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_libio_lock();
for (
a000dff4: ea00000c b a000e02c <rtems_filesystem_unregister+0x64> <== NOT EXECUTED
!rtems_chain_is_tail( &filesystem_chain, node );
node = rtems_chain_next( node )
) {
filesystem_node *fsn = (filesystem_node *) node;
if ( strcmp( fsn->entry.type, type ) == 0 ) {
a000dff8: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a000dffc: e1a01006 mov r1, r6 <== NOT EXECUTED a000e000: eb000f27 bl a0011ca4 <strcmp> <== NOT EXECUTED a000e004: e2507000 subs r7, r0, #0 <== NOT EXECUTED a000e008: 1a000006 bne a000e028 <rtems_filesystem_unregister+0x60> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
a000e00c: e1a00004 mov r0, r4 <== NOT EXECUTED a000e010: ebffef4b bl a0009d44 <_Chain_Extract> <== NOT EXECUTED
rtems_chain_extract( node );
free( fsn );
a000e014: e1a00004 mov r0, r4 <== NOT EXECUTED a000e018: ebffe054 bl a0006170 <free> <== NOT EXECUTED
rtems_libio_unlock();
a000e01c: ebffff8d bl a000de58 <rtems_libio_unlock> <== NOT EXECUTED
return 0;
a000e020: e1a00007 mov r0, r7 <== NOT EXECUTED
a000e024: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
}
}
rtems_libio_unlock();
rtems_set_errno_and_return_minus_one( ENOENT );
}
a000e028: e5944000 ldr r4, [r4] <== NOT EXECUTED
if ( type == NULL ) {
rtems_set_errno_and_return_minus_one( EINVAL );
}
rtems_libio_lock();
for (
a000e02c: e1540005 cmp r4, r5 <== NOT EXECUTED a000e030: 1afffff0 bne a000dff8 <rtems_filesystem_unregister+0x30> <== NOT EXECUTED
rtems_libio_unlock();
return 0;
}
}
rtems_libio_unlock();
a000e034: ebffff87 bl a000de58 <rtems_libio_unlock> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOENT );
a000e038: eb000c0b bl a001106c <__errno> <== NOT EXECUTED a000e03c: e3a03002 mov r3, #2 <== NOT EXECUTED a000e040: e5803000 str r3, [r0] <== NOT EXECUTED a000e044: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000e048: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a000bca8 <rtems_get_version_string>:
#include <rtems/system.h>
const char *rtems_get_version_string(void)
{
return _RTEMS_version;
}
a000bca8: e59f0000 ldr r0, [pc, #0] ; a000bcb0 <rtems_get_version_string+0x8><== NOT EXECUTED a000bcac: e12fff1e bx lr <== NOT EXECUTED
a0006d0c <rtems_gxx_getspecific>:
void *rtems_gxx_getspecific(__gthread_key_t key)
{
a0006d0c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a0006d10: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_status_code status; void *p= 0;
a0006d14: e3a05000 mov r5, #0 <== NOT EXECUTED a0006d18: e28d2004 add r2, sp, #4 <== NOT EXECUTED a0006d1c: e5225004 str r5, [r2, #-4]! <== NOT EXECUTED
/* register with RTEMS the buffer that will hold the key values */
status = rtems_task_variable_get( RTEMS_SELF, (void **)key, &p );
a0006d20: e1a00005 mov r0, r5 <== NOT EXECUTED a0006d24: e1a01004 mov r1, r4 <== NOT EXECUTED a0006d28: e1a0200d mov r2, sp <== NOT EXECUTED a0006d2c: eb000e43 bl a000a640 <rtems_task_variable_get> <== NOT EXECUTED
if ( status == RTEMS_SUCCESSFUL ) {
a0006d30: e1500005 cmp r0, r5 <== NOT EXECUTED
/* We do not have to do this, but what the heck ! */
p= key->val;
a0006d34: 05943000 ldreq r3, [r4] <== NOT EXECUTED a0006d38: 058d3000 streq r3, [sp] <== NOT EXECUTED
rtems_status_code status;
void *p= 0;
/* register with RTEMS the buffer that will hold the key values */
status = rtems_task_variable_get( RTEMS_SELF, (void **)key, &p );
if ( status == RTEMS_SUCCESSFUL ) {
a0006d3c: 0a00000a beq a0006d6c <rtems_gxx_getspecific+0x60> <== NOT EXECUTED
p= key->val;
} else {
/* fisrt time, always set to zero, it is unknown the value that the others
* threads are using at the moment of this call
*/
status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
a0006d40: e1a00005 mov r0, r5 <== NOT EXECUTED a0006d44: e1a01004 mov r1, r4 <== NOT EXECUTED a0006d48: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a0006d4c: eb000df3 bl a000a520 <rtems_task_variable_add> <== NOT EXECUTED
if ( status != RTEMS_SUCCESSFUL ) {
a0006d50: e3500000 cmp r0, #0 <== NOT EXECUTED
INTERNAL_ERROR_CORE,
true,
INTERNAL_ERROR_GXX_KEY_ADD_FAILED
);
}
key->val = (void *)0;
a0006d54: 05840000 streq r0, [r4] <== NOT EXECUTED
} else {
/* fisrt time, always set to zero, it is unknown the value that the others
* threads are using at the moment of this call
*/
status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
if ( status != RTEMS_SUCCESSFUL ) {
a0006d58: 0a000003 beq a0006d6c <rtems_gxx_getspecific+0x60> <== NOT EXECUTED
_Internal_error_Occurred(
a0006d5c: e1a00005 mov r0, r5 <== NOT EXECUTED a0006d60: e3a01001 mov r1, #1 <== NOT EXECUTED a0006d64: e3a02015 mov r2, #21 <== NOT EXECUTED a0006d68: eb0011d1 bl a000b4b4 <_Internal_error_Occurred> <== NOT EXECUTED
p,
rtems_task_self()
);
#endif
return p;
}
a0006d6c: e59d0000 ldr r0, [sp] <== NOT EXECUTED
a0006d70: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0006c80 <rtems_gxx_key_create>:
int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
{
a0006c80: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a0006c84: e1a06000 mov r6, r0 <== NOT EXECUTED
* pointer to the buffer that will hold the value of the key itself. * We have to to this, because the others functions on this interface * deal with the value of the key, as used with the POSIX API. */ /* Do not pull your hair, trust me this works. :-) */ __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
a0006c88: e3a00008 mov r0, #8 <== NOT EXECUTED
}
return 0;
}
int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
{
a0006c8c: e1a05001 mov r5, r1 <== NOT EXECUTED
* pointer to the buffer that will hold the value of the key itself. * We have to to this, because the others functions on this interface * deal with the value of the key, as used with the POSIX API. */ /* Do not pull your hair, trust me this works. :-) */ __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) );
a0006c90: eb000100 bl a0007098 <malloc> <== NOT EXECUTED a0006c94: e1a04000 mov r4, r0 <== NOT EXECUTED
*key = new_key;
a0006c98: e5860000 str r0, [r6] <== NOT EXECUTED
"gxx_wrappers: create key=%x, dtor=%x, new_key=%x\n", key, dtor, new_key
);
#endif
/* register with RTEMS the buffer that will hold the key values */
status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
a0006c9c: e1a01004 mov r1, r4 <== NOT EXECUTED
* deal with the value of the key, as used with the POSIX API. */ /* Do not pull your hair, trust me this works. :-) */ __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) ); *key = new_key; new_key->val = NULL;
a0006ca0: e3a00000 mov r0, #0 <== NOT EXECUTED
"gxx_wrappers: create key=%x, dtor=%x, new_key=%x\n", key, dtor, new_key
);
#endif
/* register with RTEMS the buffer that will hold the key values */
status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
a0006ca4: e1a02005 mov r2, r5 <== NOT EXECUTED
* deal with the value of the key, as used with the POSIX API. */ /* Do not pull your hair, trust me this works. :-) */ __gthread_key_t new_key = (__gthread_key_t) malloc( sizeof( *new_key ) ); *key = new_key; new_key->val = NULL;
a0006ca8: e8840021 stm r4, {r0, r5} <== NOT EXECUTED
"gxx_wrappers: create key=%x, dtor=%x, new_key=%x\n", key, dtor, new_key
);
#endif
/* register with RTEMS the buffer that will hold the key values */
status = rtems_task_variable_add( RTEMS_SELF, (void **)new_key, dtor );
a0006cac: eb000e1b bl a000a520 <rtems_task_variable_add> <== NOT EXECUTED
if ( status == RTEMS_SUCCESSFUL )
a0006cb0: e3500000 cmp r0, #0 <== NOT EXECUTED a0006cb4: 0a000002 beq a0006cc4 <rtems_gxx_key_create+0x44> <== NOT EXECUTED
return 0;
free( new_key );
a0006cb8: e1a00004 mov r0, r4 <== NOT EXECUTED a0006cbc: ebffff89 bl a0006ae8 <free> <== NOT EXECUTED
return -1;
a0006cc0: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a0006cc4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0006cd8 <rtems_gxx_key_delete>:
int rtems_gxx_key_delete (__gthread_key_t key)
{
a0006cd8: e92d4010 push {r4, lr} <== NOT EXECUTED
a0006cdc: e1a04000 mov r4, r0 <== NOT EXECUTED
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: delete key=%x\n", key );
#endif
/* register with RTEMS the buffer that will hold the key values */
status = rtems_task_variable_delete( RTEMS_SELF, (void **)key );
a0006ce0: e1a01004 mov r1, r4 <== NOT EXECUTED a0006ce4: e3a00000 mov r0, #0 <== NOT EXECUTED a0006ce8: eb000e36 bl a000a5c8 <rtems_task_variable_delete> <== NOT EXECUTED
if ( status == RTEMS_SUCCESSFUL ) {
a0006cec: e3500000 cmp r0, #0 <== NOT EXECUTED a0006cf0: 1a000003 bne a0006d04 <rtems_gxx_key_delete+0x2c> <== NOT EXECUTED
/* Hmm - hopefully all tasks using this key have gone away... */
if ( key ) free( *(void **)key );
a0006cf4: e3540000 cmp r4, #0 <== NOT EXECUTED a0006cf8: 0a000001 beq a0006d04 <rtems_gxx_key_delete+0x2c> <== NOT EXECUTED a0006cfc: e5940000 ldr r0, [r4] <== NOT EXECUTED a0006d00: ebffff78 bl a0006ae8 <free> <== NOT EXECUTED
return 0;
}
key = NULL;
return 0;
}
a0006d04: e3a00000 mov r0, #0 <== NOT EXECUTED
a0006d08: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0006cc8 <rtems_gxx_key_dtor>:
{
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: dtor key=%x, ptr=%x\n", key, ptr );
#endif
key->val = 0;
a0006cc8: e3a03000 mov r3, #0 <== NOT EXECUTED a0006ccc: e5803000 str r3, [r0] <== NOT EXECUTED
return 0; }
a0006cd0: e1a00003 mov r0, r3 <== NOT EXECUTED a0006cd4: e12fff1e bx lr <== NOT EXECUTED
a0006dfc <rtems_gxx_mutex_destroy>:
int rtems_gxx_mutex_destroy (__gthread_mutex_t *mutex)
{
a0006dfc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: destroy mutex=%X\n", *mutex );
#endif
status = rtems_semaphore_delete(*(rtems_id *)mutex);
a0006e00: e5900000 ldr r0, [r0] <== NOT EXECUTED a0006e04: eb000c2e bl a0009ec4 <rtems_semaphore_delete> <== NOT EXECUTED
if ( status == RTEMS_SUCCESSFUL )
a0006e08: e3500000 cmp r0, #0 <== NOT EXECUTED
return 0;
return -1;
}
a0006e0c: 13e00000 mvnne r0, #0 <== NOT EXECUTED
a0006e10: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0006da0 <rtems_gxx_mutex_init>:
/*
* MUTEX support
*/
void rtems_gxx_mutex_init (__gthread_mutex_t *mutex)
{
a0006da0: e92d4001 push {r0, lr} <== NOT EXECUTED
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: mutex init =%X\n", *mutex );
#endif
status = rtems_semaphore_create(
a0006da4: e3a01001 mov r1, #1 <== NOT EXECUTED a0006da8: e58d0000 str r0, [sp] <== NOT EXECUTED a0006dac: e3a02054 mov r2, #84 ; 0x54 <== NOT EXECUTED a0006db0: e59f0020 ldr r0, [pc, #32] ; a0006dd8 <rtems_gxx_mutex_init+0x38><== NOT EXECUTED a0006db4: e3a03000 mov r3, #0 <== NOT EXECUTED a0006db8: eb000bd6 bl a0009d18 <rtems_semaphore_create> <== NOT EXECUTED
RTEMS_PRIORITY|RTEMS_BINARY_SEMAPHORE|
RTEMS_INHERIT_PRIORITY|RTEMS_NO_PRIORITY_CEILING|RTEMS_LOCAL,
0,
(rtems_id *)mutex
);
if ( status != RTEMS_SUCCESSFUL ) {
a0006dbc: e3500000 cmp r0, #0 <== NOT EXECUTED a0006dc0: 0a000003 beq a0006dd4 <rtems_gxx_mutex_init+0x34> <== NOT EXECUTED
"gxx_wrappers: mutex init failed %s (%d)\n",
rtems_status_text(status),
status
);
#endif
_Internal_error_Occurred(
a0006dc4: e3a00000 mov r0, #0 <== NOT EXECUTED a0006dc8: e3a01001 mov r1, #1 <== NOT EXECUTED a0006dcc: e3a02016 mov r2, #22 <== NOT EXECUTED a0006dd0: eb0011b7 bl a000b4b4 <_Internal_error_Occurred> <== NOT EXECUTED
);
}
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: mutex init complete =%X\n", *mutex );
#endif
}
a0006dd4: e8bd8008 pop {r3, pc} <== NOT EXECUTED
a0006ddc <rtems_gxx_mutex_lock>:
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: lock mutex=%X\n", *mutex );
#endif
status = rtems_semaphore_obtain(
a0006ddc: e3a01000 mov r1, #0 <== NOT EXECUTED
printk( "gxx_wrappers: mutex init complete =%X\n", *mutex );
#endif
}
int rtems_gxx_mutex_lock (__gthread_mutex_t *mutex)
{
a0006de0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: lock mutex=%X\n", *mutex );
#endif
status = rtems_semaphore_obtain(
a0006de4: e1a02001 mov r2, r1 <== NOT EXECUTED a0006de8: e5900000 ldr r0, [r0] <== NOT EXECUTED a0006dec: eb000c5b bl a0009f60 <rtems_semaphore_obtain> <== NOT EXECUTED
*(rtems_id *)mutex,
RTEMS_WAIT,
RTEMS_NO_TIMEOUT
);
if ( status == RTEMS_SUCCESSFUL )
a0006df0: e3500000 cmp r0, #0 <== NOT EXECUTED
return 0;
return -1;
}
a0006df4: 13e00000 mvnne r0, #0 <== NOT EXECUTED
a0006df8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0006e14 <rtems_gxx_mutex_trylock>:
int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex)
{
a0006e14: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: trylock mutex=%X\n", *mutex );
#endif
status = rtems_semaphore_obtain (*(rtems_id *)mutex, RTEMS_NO_WAIT, 0);
a0006e18: e3a01001 mov r1, #1 <== NOT EXECUTED a0006e1c: e3a02000 mov r2, #0 <== NOT EXECUTED a0006e20: e5900000 ldr r0, [r0] <== NOT EXECUTED a0006e24: eb000c4d bl a0009f60 <rtems_semaphore_obtain> <== NOT EXECUTED
if ( status == RTEMS_SUCCESSFUL )
a0006e28: e3500000 cmp r0, #0 <== NOT EXECUTED
return 0;
return -1;
}
a0006e2c: 13e00000 mvnne r0, #0 <== NOT EXECUTED
a0006e30: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0006e34 <rtems_gxx_mutex_unlock>:
int rtems_gxx_mutex_unlock (__gthread_mutex_t *mutex)
{
a0006e34: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: unlock mutex=%X\n", *mutex );
#endif
status = rtems_semaphore_release( *(rtems_id *)mutex );
a0006e38: e5900000 ldr r0, [r0] <== NOT EXECUTED a0006e3c: eb000c8d bl a000a078 <rtems_semaphore_release> <== NOT EXECUTED
if ( status == RTEMS_SUCCESSFUL )
a0006e40: e3500000 cmp r0, #0 <== NOT EXECUTED
return 0;
return -1;
}
a0006e44: 13e00000 mvnne r0, #0 <== NOT EXECUTED
a0006e48: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0006c24 <rtems_gxx_once>:
{
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );
#endif
if ( *(volatile __gthread_once_t *)once == 0 ) {
a0006c24: e5903000 ldr r3, [r0] <== NOT EXECUTED
/* uncomment this if you need to debug this interface */
/*#define DEBUG_GXX_WRAPPERS 1*/
int rtems_gxx_once(__gthread_once_t *once, void (*func) (void))
{
a0006c28: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );
#endif
if ( *(volatile __gthread_once_t *)once == 0 ) {
a0006c2c: e3530000 cmp r3, #0 <== NOT EXECUTED
/* uncomment this if you need to debug this interface */
/*#define DEBUG_GXX_WRAPPERS 1*/
int rtems_gxx_once(__gthread_once_t *once, void (*func) (void))
{
a0006c30: e1a04000 mov r4, r0 <== NOT EXECUTED a0006c34: e1a06001 mov r6, r1 <== NOT EXECUTED
#ifdef DEBUG_GXX_WRAPPERS
printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );
#endif
if ( *(volatile __gthread_once_t *)once == 0 ) {
a0006c38: 1a00000e bne a0006c78 <rtems_gxx_once+0x54> <== NOT EXECUTED
rtems_mode saveMode;
__gthread_once_t o;
rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode);
a0006c3c: e3a00c01 mov r0, #256 ; 0x100 <== NOT EXECUTED a0006c40: e1a01000 mov r1, r0 <== NOT EXECUTED a0006c44: e1a0200d mov r2, sp <== NOT EXECUTED a0006c48: eb000dc1 bl a000a354 <rtems_task_mode> <== NOT EXECUTED
if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {
a0006c4c: e5945000 ldr r5, [r4] <== NOT EXECUTED
*(volatile __gthread_once_t *)once = 1;
}
rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);
a0006c50: e59d0000 ldr r0, [sp] <== NOT EXECUTED a0006c54: e3a01c01 mov r1, #256 ; 0x100 <== NOT EXECUTED
if ( *(volatile __gthread_once_t *)once == 0 ) {
rtems_mode saveMode;
__gthread_once_t o;
rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode);
if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {
a0006c58: e3550000 cmp r5, #0 <== NOT EXECUTED
*(volatile __gthread_once_t *)once = 1;
a0006c5c: 03a03001 moveq r3, #1 <== NOT EXECUTED a0006c60: 05843000 streq r3, [r4] <== NOT EXECUTED
}
rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);
a0006c64: e1a0200d mov r2, sp <== NOT EXECUTED a0006c68: eb000db9 bl a000a354 <rtems_task_mode> <== NOT EXECUTED
if ( o == 0 )
a0006c6c: e3550000 cmp r5, #0 <== NOT EXECUTED a0006c70: 1a000000 bne a0006c78 <rtems_gxx_once+0x54> <== NOT EXECUTED
(*func)();
a0006c74: e12fff36 blx r6 <== NOT EXECUTED
} return 0; }
a0006c78: e3a00000 mov r0, #0 <== NOT EXECUTED
a0006c7c: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a0006e4c <rtems_gxx_recursive_mutex_init>:
void rtems_gxx_recursive_mutex_init(__gthread_recursive_mutex_t *mutex)
{
rtems_gxx_mutex_init(mutex);
a0006e4c: eaffffd3 b a0006da0 <rtems_gxx_mutex_init> <== NOT EXECUTED
a0006e50 <rtems_gxx_recursive_mutex_lock>:
}
int rtems_gxx_recursive_mutex_lock(__gthread_recursive_mutex_t *mutex)
{
return rtems_gxx_mutex_lock(mutex);
a0006e50: eaffffe1 b a0006ddc <rtems_gxx_mutex_lock> <== NOT EXECUTED
a0006e54 <rtems_gxx_recursive_mutex_trylock>:
}
int rtems_gxx_recursive_mutex_trylock(__gthread_recursive_mutex_t *mutex)
{
return rtems_gxx_mutex_trylock(mutex);
a0006e54: eaffffee b a0006e14 <rtems_gxx_mutex_trylock> <== NOT EXECUTED
a0006e58 <rtems_gxx_recursive_mutex_unlock>:
}
int rtems_gxx_recursive_mutex_unlock(__gthread_recursive_mutex_t *mutex)
{
return rtems_gxx_mutex_unlock(mutex);
a0006e58: eafffff5 b a0006e34 <rtems_gxx_mutex_unlock> <== NOT EXECUTED
a0006d74 <rtems_gxx_setspecific>:
int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr)
{
a0006d74: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a0006d78: e1a04000 mov r4, r0 <== NOT EXECUTED
a0006d7c: e1a05001 mov r5, r1 <== NOT EXECUTED
rtems_task_self()
);
#endif
/* register with RTEMS the buffer that will hold the key values */
status = rtems_task_variable_add( RTEMS_SELF, (void **)key, key->dtor );
a0006d80: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a0006d84: e1a01004 mov r1, r4 <== NOT EXECUTED a0006d88: e3a00000 mov r0, #0 <== NOT EXECUTED a0006d8c: eb000de3 bl a000a520 <rtems_task_variable_add> <== NOT EXECUTED
if ( status == RTEMS_SUCCESSFUL ) {
a0006d90: e3500000 cmp r0, #0 <== NOT EXECUTED
/* now let's set the proper value */
key->val = (void *)ptr;
a0006d94: 05845000 streq r5, [r4] <== NOT EXECUTED
return 0;
}
return -1;
a0006d98: 13e00000 mvnne r0, #0 <== NOT EXECUTED
}
a0006d9c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000b04c <rtems_heap_allocate_aligned_with_boundary>:
size_t size,
uintptr_t alignment,
uintptr_t boundary
)
{
if (
a000b04c: e59f3048 ldr r3, [pc, #72] ; a000b09c <rtems_heap_allocate_aligned_with_boundary+0x50><== NOT EXECUTED
void *rtems_heap_allocate_aligned_with_boundary(
size_t size,
uintptr_t alignment,
uintptr_t boundary
)
{
a000b050: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
if (
a000b054: e5933000 ldr r3, [r3] <== NOT EXECUTED
void *rtems_heap_allocate_aligned_with_boundary(
size_t size,
uintptr_t alignment,
uintptr_t boundary
)
{
a000b058: e1a06000 mov r6, r0 <== NOT EXECUTED a000b05c: e1a05001 mov r5, r1 <== NOT EXECUTED
if (
a000b060: e3530003 cmp r3, #3 <== NOT EXECUTED
void *rtems_heap_allocate_aligned_with_boundary(
size_t size,
uintptr_t alignment,
uintptr_t boundary
)
{
a000b064: e1a04002 mov r4, r2 <== NOT EXECUTED
if (
a000b068: 1a000002 bne a000b078 <rtems_heap_allocate_aligned_with_boundary+0x2c><== NOT EXECUTED
_System_state_Is_up( _System_state_Get() )
&& !malloc_is_system_state_OK()
a000b06c: ebfffbdb bl a0009fe0 <malloc_is_system_state_OK> <== NOT EXECUTED a000b070: e3500000 cmp r0, #0 <== NOT EXECUTED a000b074: 0a000007 beq a000b098 <rtems_heap_allocate_aligned_with_boundary+0x4c><== NOT EXECUTED
) {
return NULL;
}
malloc_deferred_frees_process();
a000b078: ebfffbec bl a000a030 <malloc_deferred_frees_process> <== NOT EXECUTED
/* FIXME: Statistics, boundary checks */
return _Protected_heap_Allocate_aligned_with_boundary(
a000b07c: e59f301c ldr r3, [pc, #28] ; a000b0a0 <rtems_heap_allocate_aligned_with_boundary+0x54><== NOT EXECUTED a000b080: e1a01006 mov r1, r6 <== NOT EXECUTED a000b084: e1a02005 mov r2, r5 <== NOT EXECUTED a000b088: e5930000 ldr r0, [r3] <== NOT EXECUTED a000b08c: e1a03004 mov r3, r4 <== NOT EXECUTED
RTEMS_Malloc_Heap,
size,
alignment,
boundary
);
}
a000b090: e8bd4070 pop {r4, r5, r6, lr} <== NOT EXECUTED
malloc_deferred_frees_process();
/* FIXME: Statistics, boundary checks */
return _Protected_heap_Allocate_aligned_with_boundary(
a000b094: ea00133a b a000fd84 <_Protected_heap_Allocate_aligned_with_boundary><== NOT EXECUTED
RTEMS_Malloc_Heap,
size,
alignment,
boundary
);
}
a000b098: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a000a214 <rtems_interrupt_disable>:
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000a214: e10f0000 mrs r0, CPSR <== NOT EXECUTED a000a218: e3803080 orr r3, r0, #128 ; 0x80 <== NOT EXECUTED a000a21c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
rtems_interrupt_level previous_level;
_ISR_Disable( previous_level );
return previous_level;
}
a000a220: e12fff1e bx lr <== NOT EXECUTED
a000a224 <rtems_interrupt_enable>:
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000a224: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
void rtems_interrupt_enable(
rtems_interrupt_level previous_level
)
{
_ISR_Enable( previous_level );
}
a000a228: e12fff1e bx lr <== NOT EXECUTED
a000a22c <rtems_interrupt_flash>:
static inline void arm_interrupt_flash( uint32_t level )
{
uint32_t arm_switch_reg;
__asm__ volatile (
a000a22c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a000a230: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED a000a234: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
void rtems_interrupt_flash(
rtems_interrupt_level previous_level
)
{
_ISR_Flash( previous_level );
}
a000a238: e12fff1e bx lr <== NOT EXECUTED
a000a23c <rtems_interrupt_is_in_progress>:
#undef rtems_interrupt_is_in_progress
bool rtems_interrupt_is_in_progress( void )
{
return _ISR_Is_in_progress();
a000a23c: e59f300c ldr r3, [pc, #12] ; a000a250 <rtems_interrupt_is_in_progress+0x14><== NOT EXECUTED a000a240: e5930000 ldr r0, [r3] <== NOT EXECUTED
}
a000a244: e2500000 subs r0, r0, #0 <== NOT EXECUTED a000a248: 13a00001 movne r0, #1 <== NOT EXECUTED a000a24c: e12fff1e bx lr <== NOT EXECUTED
a0009c38 <rtems_interrupt_level_attribute>:
rtems_attribute rtems_interrupt_level_attribute(
uint32_t level
)
{
return RTEMS_INTERRUPT_LEVEL(level);
}
a0009c38: e2000080 and r0, r0, #128 ; 0x80 <== NOT EXECUTED a0009c3c: e12fff1e bx lr <== NOT EXECUTED
a0010cf0 <rtems_io_close>:
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010cf0: e59fc044 ldr ip, [pc, #68] ; a0010d3c <rtems_io_close+0x4c><== NOT EXECUTED
rtems_status_code rtems_io_close(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a0010cf4: e92d4010 push {r4, lr} <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010cf8: e59cc000 ldr ip, [ip] <== NOT EXECUTED
rtems_status_code rtems_io_close(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a0010cfc: e1a03000 mov r3, r0 <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010d00: e150000c cmp r0, ip <== NOT EXECUTED a0010d04: 2a000008 bcs a0010d2c <rtems_io_close+0x3c> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].close_entry;
a0010d08: e59fc030 ldr ip, [pc, #48] ; a0010d40 <rtems_io_close+0x50><== NOT EXECUTED a0010d0c: e3a04018 mov r4, #24 <== NOT EXECUTED a0010d10: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0010d14: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010d18: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a0010d1c: e3530000 cmp r3, #0 <== NOT EXECUTED
a0010d20: 0a000003 beq a0010d34 <rtems_io_close+0x44> <== NOT EXECUTED
a0010d24: e12fff33 blx r3 <== NOT EXECUTED
a0010d28: e8bd8010 pop {r4, pc} <== NOT EXECUTED
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
a0010d2c: e3a0000a mov r0, #10 <== NOT EXECUTED
a0010d30: e8bd8010 pop {r4, pc} <== NOT EXECUTED
callout = _IO_Driver_address_table[major].close_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a0010d34: e1a00003 mov r0, r3 <== NOT EXECUTED
}
a0010d38: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0010d44 <rtems_io_control>:
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010d44: e59fc044 ldr ip, [pc, #68] ; a0010d90 <rtems_io_control+0x4c><== NOT EXECUTED
rtems_status_code rtems_io_control(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a0010d48: e92d4010 push {r4, lr} <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010d4c: e59cc000 ldr ip, [ip] <== NOT EXECUTED
rtems_status_code rtems_io_control(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a0010d50: e1a03000 mov r3, r0 <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010d54: e150000c cmp r0, ip <== NOT EXECUTED a0010d58: 2a000008 bcs a0010d80 <rtems_io_control+0x3c> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].control_entry;
a0010d5c: e59fc030 ldr ip, [pc, #48] ; a0010d94 <rtems_io_control+0x50><== NOT EXECUTED a0010d60: e3a04018 mov r4, #24 <== NOT EXECUTED a0010d64: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0010d68: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010d6c: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a0010d70: e3530000 cmp r3, #0 <== NOT EXECUTED
a0010d74: 0a000003 beq a0010d88 <rtems_io_control+0x44> <== NOT EXECUTED
a0010d78: e12fff33 blx r3 <== NOT EXECUTED
a0010d7c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
a0010d80: e3a0000a mov r0, #10 <== NOT EXECUTED
a0010d84: e8bd8010 pop {r4, pc} <== NOT EXECUTED
callout = _IO_Driver_address_table[major].control_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a0010d88: e1a00003 mov r0, r3 <== NOT EXECUTED
}
a0010d8c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000edf0 <rtems_io_initialize>:
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a000edf0: e59fc044 ldr ip, [pc, #68] ; a000ee3c <rtems_io_initialize+0x4c>
rtems_status_code rtems_io_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a000edf4: e92d4010 push {r4, lr}
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a000edf8: e59cc000 ldr ip, [ip]
rtems_status_code rtems_io_initialize(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a000edfc: e1a03000 mov r3, r0
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a000ee00: e150000c cmp r0, ip
a000ee04: 2a000008 bcs a000ee2c <rtems_io_initialize+0x3c>
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].initialization_entry;
a000ee08: e59fc030 ldr ip, [pc, #48] ; a000ee40 <rtems_io_initialize+0x50> a000ee0c: e3a04018 mov r4, #24 a000ee10: e0030394 mul r3, r4, r3 a000ee14: e59cc000 ldr ip, [ip] a000ee18: e79c3003 ldr r3, [ip, r3]
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a000ee1c: e3530000 cmp r3, #0
a000ee20: 0a000003 beq a000ee34 <rtems_io_initialize+0x44>
a000ee24: e12fff33 blx r3
a000ee28: e8bd8010 pop {r4, pc}
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
a000ee2c: e3a0000a mov r0, #10 <== NOT EXECUTED
a000ee30: e8bd8010 pop {r4, pc} <== NOT EXECUTED
callout = _IO_Driver_address_table[major].initialization_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a000ee34: e1a00003 mov r0, r3
}
a000ee38: e8bd8010 pop {r4, pc}
a0005e28 <rtems_io_lookup_name>:
rtems_status_code rtems_io_lookup_name(
const char *name,
rtems_driver_name_t *device_info
)
{
a0005e28: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a0005e2c: e24dd018 sub sp, sp, #24 <== NOT EXECUTED
a0005e30: e1a06000 mov r6, r0 <== NOT EXECUTED
a0005e34: e1a05001 mov r5, r1 <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
rtems_filesystem_location_info_t loc;
int result;
rtems_filesystem_node_types_t node_type;
result = rtems_filesystem_evaluate_path(
a0005e38: eb003075 bl a0012014 <strlen> <== NOT EXECUTED a0005e3c: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0005e40: e3a03001 mov r3, #1 <== NOT EXECUTED a0005e44: e1a01000 mov r1, r0 <== NOT EXECUTED a0005e48: e58d3000 str r3, [sp] <== NOT EXECUTED a0005e4c: e3a02000 mov r2, #0 <== NOT EXECUTED a0005e50: e1a03004 mov r3, r4 <== NOT EXECUTED a0005e54: e1a00006 mov r0, r6 <== NOT EXECUTED a0005e58: eb00008f bl a000609c <rtems_filesystem_evaluate_path> <== NOT EXECUTED
name, strlen( name ), 0x00, &loc, true );
the_jnode = loc.node_access;
node_type = (*loc.ops->node_type_h)( &loc );
a0005e5c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED
IMFS_jnode_t *the_jnode;
rtems_filesystem_location_info_t loc;
int result;
rtems_filesystem_node_types_t node_type;
result = rtems_filesystem_evaluate_path(
a0005e60: e1a08000 mov r8, r0 <== NOT EXECUTED
name, strlen( name ), 0x00, &loc, true );
the_jnode = loc.node_access;
node_type = (*loc.ops->node_type_h)( &loc );
a0005e64: e1a00004 mov r0, r4 <== NOT EXECUTED a0005e68: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED
int result;
rtems_filesystem_node_types_t node_type;
result = rtems_filesystem_evaluate_path(
name, strlen( name ), 0x00, &loc, true );
the_jnode = loc.node_access;
a0005e6c: e59d7004 ldr r7, [sp, #4] <== NOT EXECUTED
node_type = (*loc.ops->node_type_h)( &loc );
a0005e70: e12fff33 blx r3 <== NOT EXECUTED
if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) {
a0005e74: e3580000 cmp r8, #0 <== NOT EXECUTED a0005e78: 03500002 cmpeq r0, #2 <== NOT EXECUTED a0005e7c: 03a08000 moveq r8, #0 <== NOT EXECUTED a0005e80: 13a08001 movne r8, #1 <== NOT EXECUTED a0005e84: 0a000003 beq a0005e98 <rtems_io_lookup_name+0x70> <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a0005e88: e1a00004 mov r0, r4 <== NOT EXECUTED a0005e8c: eb0000b2 bl a000615c <rtems_filesystem_freenode> <== NOT EXECUTED
return RTEMS_UNSATISFIED;
a0005e90: e3a0000d mov r0, #13 <== NOT EXECUTED a0005e94: ea00000a b a0005ec4 <rtems_io_lookup_name+0x9c> <== NOT EXECUTED
}
device_info->device_name = (char *) name;
a0005e98: e5856000 str r6, [r5] <== NOT EXECUTED
device_info->device_name_length = strlen( name );
a0005e9c: e1a00006 mov r0, r6 <== NOT EXECUTED a0005ea0: eb00305b bl a0012014 <strlen> <== NOT EXECUTED a0005ea4: e5850004 str r0, [r5, #4] <== NOT EXECUTED
device_info->major = the_jnode->info.device.major;
a0005ea8: e5973050 ldr r3, [r7, #80] ; 0x50 <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
rtems_filesystem_freenode( &loc );
a0005eac: e1a00004 mov r0, r4 <== NOT EXECUTED
return RTEMS_UNSATISFIED;
}
device_info->device_name = (char *) name;
device_info->device_name_length = strlen( name );
device_info->major = the_jnode->info.device.major;
a0005eb0: e5853008 str r3, [r5, #8] <== NOT EXECUTED
device_info->minor = the_jnode->info.device.minor;
a0005eb4: e5973054 ldr r3, [r7, #84] ; 0x54 <== NOT EXECUTED a0005eb8: e585300c str r3, [r5, #12] <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a0005ebc: eb0000a6 bl a000615c <rtems_filesystem_freenode> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0005ec0: e1a00008 mov r0, r8 <== NOT EXECUTED
}
a0005ec4: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a0005ec8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0010d98 <rtems_io_open>:
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010d98: e59fc044 ldr ip, [pc, #68] ; a0010de4 <rtems_io_open+0x4c> <== NOT EXECUTED
rtems_status_code rtems_io_open(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a0010d9c: e92d4010 push {r4, lr} <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010da0: e59cc000 ldr ip, [ip] <== NOT EXECUTED
rtems_status_code rtems_io_open(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a0010da4: e1a03000 mov r3, r0 <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010da8: e150000c cmp r0, ip <== NOT EXECUTED a0010dac: 2a000008 bcs a0010dd4 <rtems_io_open+0x3c> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].open_entry;
a0010db0: e59fc030 ldr ip, [pc, #48] ; a0010de8 <rtems_io_open+0x50> <== NOT EXECUTED a0010db4: e3a04018 mov r4, #24 <== NOT EXECUTED a0010db8: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0010dbc: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010dc0: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a0010dc4: e3530000 cmp r3, #0 <== NOT EXECUTED
a0010dc8: 0a000003 beq a0010ddc <rtems_io_open+0x44> <== NOT EXECUTED
a0010dcc: e12fff33 blx r3 <== NOT EXECUTED
a0010dd0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
a0010dd4: e3a0000a mov r0, #10 <== NOT EXECUTED
a0010dd8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
callout = _IO_Driver_address_table[major].open_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a0010ddc: e1a00003 mov r0, r3 <== NOT EXECUTED
}
a0010de0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0010dec <rtems_io_read>:
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010dec: e59fc044 ldr ip, [pc, #68] ; a0010e38 <rtems_io_read+0x4c> <== NOT EXECUTED
rtems_status_code rtems_io_read(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a0010df0: e92d4010 push {r4, lr} <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010df4: e59cc000 ldr ip, [ip] <== NOT EXECUTED
rtems_status_code rtems_io_read(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a0010df8: e1a03000 mov r3, r0 <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010dfc: e150000c cmp r0, ip <== NOT EXECUTED a0010e00: 2a000008 bcs a0010e28 <rtems_io_read+0x3c> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].read_entry;
a0010e04: e59fc030 ldr ip, [pc, #48] ; a0010e3c <rtems_io_read+0x50> <== NOT EXECUTED a0010e08: e3a04018 mov r4, #24 <== NOT EXECUTED a0010e0c: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0010e10: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010e14: e593300c ldr r3, [r3, #12] <== NOT EXECUTED
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a0010e18: e3530000 cmp r3, #0 <== NOT EXECUTED
a0010e1c: 0a000003 beq a0010e30 <rtems_io_read+0x44> <== NOT EXECUTED
a0010e20: e12fff33 blx r3 <== NOT EXECUTED
a0010e24: e8bd8010 pop {r4, pc} <== NOT EXECUTED
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
a0010e28: e3a0000a mov r0, #10 <== NOT EXECUTED
a0010e2c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
callout = _IO_Driver_address_table[major].read_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a0010e30: e1a00003 mov r0, r3 <== NOT EXECUTED
}
a0010e34: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000ab40 <rtems_io_register_driver>:
rtems_status_code rtems_io_register_driver(
rtems_device_major_number major,
const rtems_driver_address_table *driver_table,
rtems_device_major_number *registered_major
)
{
a000ab40: e92d4010 push {r4, lr} <== NOT EXECUTED
a000ab44: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
a000ab48: e59f015c ldr r0, [pc, #348] ; a000acac <rtems_io_register_driver+0x16c><== NOT EXECUTED
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;
a000ab4c: e59f315c ldr r3, [pc, #348] ; a000acb0 <rtems_io_register_driver+0x170><== NOT EXECUTED
if ( rtems_interrupt_is_in_progress() )
a000ab50: e5900000 ldr r0, [r0] <== NOT EXECUTED
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;
a000ab54: e5933000 ldr r3, [r3] <== NOT EXECUTED
if ( rtems_interrupt_is_in_progress() )
a000ab58: e3500000 cmp r0, #0 <== NOT EXECUTED a000ab5c: 1a000043 bne a000ac70 <rtems_io_register_driver+0x130> <== NOT EXECUTED
return RTEMS_CALLED_FROM_ISR;
if ( registered_major == NULL )
a000ab60: e3520000 cmp r2, #0 <== NOT EXECUTED a000ab64: 0a000043 beq a000ac78 <rtems_io_register_driver+0x138> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
if ( driver_table == NULL )
a000ab68: e3510000 cmp r1, #0 <== NOT EXECUTED
if ( registered_major == NULL )
return RTEMS_INVALID_ADDRESS;
/* Set it to an invalid value */
*registered_major = major_limit;
a000ab6c: e5823000 str r3, [r2] <== NOT EXECUTED
if ( driver_table == NULL )
a000ab70: 0a000040 beq a000ac78 <rtems_io_register_driver+0x138> <== 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;
a000ab74: e5910000 ldr r0, [r1] <== NOT EXECUTED a000ab78: e3500000 cmp r0, #0 <== NOT EXECUTED a000ab7c: 1a000041 bne a000ac88 <rtems_io_register_driver+0x148> <== NOT EXECUTED a000ab80: e5910004 ldr r0, [r1, #4] <== NOT EXECUTED a000ab84: e3500000 cmp r0, #0 <== NOT EXECUTED a000ab88: 1a00003e bne a000ac88 <rtems_io_register_driver+0x148> <== NOT EXECUTED a000ab8c: ea000039 b a000ac78 <rtems_io_register_driver+0x138> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000ab90: e59f311c ldr r3, [pc, #284] ; a000acb4 <rtems_io_register_driver+0x174><== NOT EXECUTED a000ab94: e5930000 ldr r0, [r3] <== NOT EXECUTED a000ab98: e2800001 add r0, r0, #1 <== NOT EXECUTED a000ab9c: e5830000 str r0, [r3] <== NOT EXECUTED
if ( major >= major_limit )
return RTEMS_INVALID_NUMBER;
_Thread_Disable_dispatch();
if ( major == 0 ) {
a000aba0: e3540000 cmp r4, #0 <== NOT EXECUTED a000aba4: e59f010c ldr r0, [pc, #268] ; a000acb8 <rtems_io_register_driver+0x178><== NOT EXECUTED a000aba8: 1a000010 bne a000abf0 <rtems_io_register_driver+0xb0> <== NOT EXECUTED
static rtems_status_code rtems_io_obtain_major_number(
rtems_device_major_number *major
)
{
rtems_device_major_number n = _IO_Number_of_drivers;
a000abac: e59f30fc ldr r3, [pc, #252] ; a000acb0 <rtems_io_register_driver+0x170><== NOT EXECUTED a000abb0: e593c000 ldr ip, [r3] <== NOT EXECUTED a000abb4: e5903000 ldr r3, [r0] <== NOT EXECUTED a000abb8: ea000006 b a000abd8 <rtems_io_register_driver+0x98> <== 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;
a000abbc: e5930000 ldr r0, [r3] <== NOT EXECUTED a000abc0: e3500000 cmp r0, #0 <== NOT EXECUTED a000abc4: 1a000032 bne a000ac94 <rtems_io_register_driver+0x154> <== NOT EXECUTED a000abc8: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a000abcc: e3500000 cmp r0, #0 <== NOT EXECUTED a000abd0: 1a00002f bne a000ac94 <rtems_io_register_driver+0x154> <== NOT EXECUTED a000abd4: ea000001 b a000abe0 <rtems_io_register_driver+0xa0> <== NOT EXECUTED
rtems_device_major_number n = _IO_Number_of_drivers;
rtems_device_major_number m = 0;
/* major is error checked by caller */
for ( m = 0; m < n; ++m ) {
a000abd8: e154000c cmp r4, ip <== NOT EXECUTED a000abdc: 3afffff6 bcc a000abbc <rtems_io_register_driver+0x7c> <== NOT EXECUTED
}
/* Assigns invalid value in case of failure */
*major = m;
if ( m != n )
a000abe0: e154000c cmp r4, ip <== NOT EXECUTED
if ( rtems_io_is_empty_table( table ) )
break;
}
/* Assigns invalid value in case of failure */
*major = m;
a000abe4: e5824000 str r4, [r2] <== NOT EXECUTED
if ( m != n )
a000abe8: 1a000011 bne a000ac34 <rtems_io_register_driver+0xf4> <== NOT EXECUTED a000abec: ea00002b b a000aca0 <rtems_io_register_driver+0x160> <== NOT EXECUTED
_Thread_Enable_dispatch();
return sc;
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
a000abf0: e3a03018 mov r3, #24 <== NOT EXECUTED a000abf4: e0030394 mul r3, r4, r3 <== NOT EXECUTED a000abf8: e5900000 ldr r0, [r0] <== NOT EXECUTED a000abfc: e080c003 add ip, r0, r3 <== 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;
a000ac00: e7903003 ldr r3, [r0, r3] <== NOT EXECUTED a000ac04: e3530000 cmp r3, #0 <== NOT EXECUTED a000ac08: 13a03000 movne r3, #0 <== NOT EXECUTED a000ac0c: 1a000002 bne a000ac1c <rtems_io_register_driver+0xdc> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
return RTEMS_TOO_MANY;
}
rtems_status_code rtems_io_register_driver(
a000ac10: e59c3004 ldr r3, [ip, #4] <== NOT EXECUTED a000ac14: e2733001 rsbs r3, r3, #1 <== NOT EXECUTED a000ac18: 33a03000 movcc r3, #0 <== NOT EXECUTED
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
if ( !rtems_io_is_empty_table( table ) ) {
a000ac1c: e3530000 cmp r3, #0 <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_RESOURCE_IN_USE;
}
*registered_major = major;
a000ac20: 15824000 strne r4, [r2] <== NOT EXECUTED
}
major = *registered_major;
} else {
rtems_driver_address_table *const table = _IO_Driver_address_table + major;
if ( !rtems_io_is_empty_table( table ) ) {
a000ac24: 1a000002 bne a000ac34 <rtems_io_register_driver+0xf4> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000ac28: eb00074c bl a000c960 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
a000ac2c: e3a0000c mov r0, #12 <== NOT EXECUTED
a000ac30: e8bd8010 pop {r4, pc} <== NOT EXECUTED
}
*registered_major = major;
}
_IO_Driver_address_table [major] = *driver_table;
a000ac34: e59f307c ldr r3, [pc, #124] ; a000acb8 <rtems_io_register_driver+0x178><== NOT EXECUTED
a000ac38: e3a0c018 mov ip, #24 <== NOT EXECUTED
a000ac3c: e1a0e001 mov lr, r1 <== NOT EXECUTED
a000ac40: e5933000 ldr r3, [r3] <== NOT EXECUTED
a000ac44: e02c3c94 mla ip, r4, ip, r3 <== NOT EXECUTED
a000ac48: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a000ac4c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000ac50: e89e0003 ldm lr, {r0, r1} <== NOT EXECUTED
a000ac54: e88c0003 stm ip, {r0, r1} <== NOT EXECUTED
_Thread_Enable_dispatch();
a000ac58: eb000740 bl a000c960 <_Thread_Enable_dispatch> <== NOT EXECUTED
return rtems_io_initialize( major, 0, NULL );
a000ac5c: e3a01000 mov r1, #0 <== NOT EXECUTED a000ac60: e1a00004 mov r0, r4 <== NOT EXECUTED a000ac64: e1a02001 mov r2, r1 <== NOT EXECUTED
}
a000ac68: e8bd4010 pop {r4, lr} <== NOT EXECUTED
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
a000ac6c: ea001f48 b a0012994 <rtems_io_initialize> <== NOT EXECUTED
)
{
rtems_device_major_number major_limit = _IO_Number_of_drivers;
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
a000ac70: e3a00012 mov r0, #18 <== NOT EXECUTED
a000ac74: e8bd8010 pop {r4, pc} <== NOT EXECUTED
if ( driver_table == NULL )
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
a000ac78: e3a00009 mov r0, #9 <== NOT EXECUTED
a000ac7c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
if ( major >= major_limit )
return RTEMS_INVALID_NUMBER;
a000ac80: e3a0000a mov r0, #10 <== NOT EXECUTED
_IO_Driver_address_table [major] = *driver_table;
_Thread_Enable_dispatch();
return rtems_io_initialize( major, 0, NULL );
}
a000ac84: e8bd8010 pop {r4, pc} <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( rtems_io_is_empty_table( driver_table ) )
return RTEMS_INVALID_ADDRESS;
if ( major >= major_limit )
a000ac88: e1540003 cmp r4, r3 <== NOT EXECUTED a000ac8c: 3affffbf bcc a000ab90 <rtems_io_register_driver+0x50> <== NOT EXECUTED a000ac90: eafffffa b a000ac80 <rtems_io_register_driver+0x140> <== NOT EXECUTED
rtems_device_major_number n = _IO_Number_of_drivers;
rtems_device_major_number m = 0;
/* major is error checked by caller */
for ( m = 0; m < n; ++m ) {
a000ac94: e2844001 add r4, r4, #1 <== NOT EXECUTED a000ac98: e2833018 add r3, r3, #24 <== NOT EXECUTED a000ac9c: eaffffcd b a000abd8 <rtems_io_register_driver+0x98> <== NOT EXECUTED
if ( major == 0 ) {
rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
if ( sc != RTEMS_SUCCESSFUL ) {
_Thread_Enable_dispatch();
a000aca0: eb00072e bl a000c960 <_Thread_Enable_dispatch> <== NOT EXECUTED
*major = m;
if ( m != n )
return RTEMS_SUCCESSFUL;
return RTEMS_TOO_MANY;
a000aca4: 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;
a000aca8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000acbc <rtems_io_unregister_driver>:
rtems_status_code rtems_io_unregister_driver(
rtems_device_major_number major
)
{
if ( rtems_interrupt_is_in_progress() )
a000acbc: e59f3060 ldr r3, [pc, #96] ; a000ad24 <rtems_io_unregister_driver+0x68><== NOT EXECUTED
*/
rtems_status_code rtems_io_unregister_driver(
rtems_device_major_number major
)
{
a000acc0: e92d4010 push {r4, lr} <== NOT EXECUTED
if ( rtems_interrupt_is_in_progress() )
a000acc4: e5934000 ldr r4, [r3] <== NOT EXECUTED a000acc8: e3540000 cmp r4, #0 <== NOT EXECUTED a000accc: 1a000010 bne a000ad14 <rtems_io_unregister_driver+0x58> <== NOT EXECUTED
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
a000acd0: e59f3050 ldr r3, [pc, #80] ; a000ad28 <rtems_io_unregister_driver+0x6c><== NOT EXECUTED a000acd4: e5933000 ldr r3, [r3] <== NOT EXECUTED a000acd8: e1500003 cmp r0, r3 <== NOT EXECUTED a000acdc: 2a00000e bcs a000ad1c <rtems_io_unregister_driver+0x60> <== NOT EXECUTED a000ace0: e59f3044 ldr r3, [pc, #68] ; a000ad2c <rtems_io_unregister_driver+0x70><== NOT EXECUTED a000ace4: e5932000 ldr r2, [r3] <== NOT EXECUTED a000ace8: e2822001 add r2, r2, #1 <== NOT EXECUTED a000acec: e5832000 str r2, [r3] <== NOT EXECUTED
_Thread_Disable_dispatch();
memset(
a000acf0: e59f3038 ldr r3, [pc, #56] ; a000ad30 <rtems_io_unregister_driver+0x74><== NOT EXECUTED
&_IO_Driver_address_table[major],
a000acf4: e3a02018 mov r2, #24 <== NOT EXECUTED
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
if ( major < _IO_Number_of_drivers ) {
_Thread_Disable_dispatch();
memset(
a000acf8: e1a01004 mov r1, r4 <== NOT EXECUTED a000acfc: e5933000 ldr r3, [r3] <== NOT EXECUTED a000ad00: e0203092 mla r0, r2, r0, r3 <== NOT EXECUTED a000ad04: eb002a45 bl a0015620 <memset> <== NOT EXECUTED
&_IO_Driver_address_table[major],
0,
sizeof( rtems_driver_address_table )
);
_Thread_Enable_dispatch();
a000ad08: eb000714 bl a000c960 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000ad0c: e1a00004 mov r0, r4 <== NOT EXECUTED
a000ad10: e8bd8010 pop {r4, pc} <== NOT EXECUTED
rtems_status_code rtems_io_unregister_driver(
rtems_device_major_number major
)
{
if ( rtems_interrupt_is_in_progress() )
return RTEMS_CALLED_FROM_ISR;
a000ad14: e3a00012 mov r0, #18 <== NOT EXECUTED
a000ad18: e8bd8010 pop {r4, pc} <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
return RTEMS_UNSATISFIED;
a000ad1c: e3a0000d mov r0, #13 <== NOT EXECUTED
}
a000ad20: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0010e40 <rtems_io_write>:
void *argument
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010e40: e59fc044 ldr ip, [pc, #68] ; a0010e8c <rtems_io_write+0x4c><== NOT EXECUTED
rtems_status_code rtems_io_write(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a0010e44: e92d4010 push {r4, lr} <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010e48: e59cc000 ldr ip, [ip] <== NOT EXECUTED
rtems_status_code rtems_io_write(
rtems_device_major_number major,
rtems_device_minor_number minor,
void *argument
)
{
a0010e4c: e1a03000 mov r3, r0 <== NOT EXECUTED
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
a0010e50: e150000c cmp r0, ip <== NOT EXECUTED a0010e54: 2a000008 bcs a0010e7c <rtems_io_write+0x3c> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
callout = _IO_Driver_address_table[major].write_entry;
a0010e58: e59fc030 ldr ip, [pc, #48] ; a0010e90 <rtems_io_write+0x50><== NOT EXECUTED a0010e5c: e3a04018 mov r4, #24 <== NOT EXECUTED a0010e60: e59cc000 ldr ip, [ip] <== NOT EXECUTED a0010e64: e023c394 mla r3, r4, r3, ip <== NOT EXECUTED a0010e68: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a0010e6c: e3530000 cmp r3, #0 <== NOT EXECUTED
a0010e70: 0a000003 beq a0010e84 <rtems_io_write+0x44> <== NOT EXECUTED
a0010e74: e12fff33 blx r3 <== NOT EXECUTED
a0010e78: e8bd8010 pop {r4, pc} <== NOT EXECUTED
)
{
rtems_device_driver_entry callout;
if ( major >= _IO_Number_of_drivers )
return RTEMS_INVALID_NUMBER;
a0010e7c: e3a0000a mov r0, #10 <== NOT EXECUTED
a0010e80: e8bd8010 pop {r4, pc} <== NOT EXECUTED
callout = _IO_Driver_address_table[major].write_entry;
return callout ? callout(major, minor, argument) : RTEMS_SUCCESSFUL;
a0010e84: e1a00003 mov r0, r3 <== NOT EXECUTED
}
a0010e88: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000c068 <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)
{
a000c068: 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 )
a000c06c: e2508000 subs r8, r0, #0 <== NOT EXECUTED a000c070: 0a000012 beq a000c0c0 <rtems_iterate_over_all_threads+0x58><== NOT EXECUTED a000c074: e59f4048 ldr r4, [pc, #72] ; a000c0c4 <rtems_iterate_over_all_threads+0x5c><== NOT EXECUTED
#endif
#include <rtems/system.h>
#include <rtems/score/thread.h>
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
a000c078: e284700c add r7, r4, #12 <== NOT EXECUTED
#if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)
if ( !_Objects_Information_table[ api_index ] )
continue;
#endif
information = _Objects_Information_table[ api_index ][ 1 ];
a000c07c: e5b43004 ldr r3, [r4, #4]! <== NOT EXECUTED a000c080: e5936004 ldr r6, [r3, #4] <== NOT EXECUTED
if ( !information )
a000c084: e3560000 cmp r6, #0 <== NOT EXECUTED a000c088: 13a05001 movne r5, #1 <== NOT EXECUTED a000c08c: 1a000006 bne a000c0ac <rtems_iterate_over_all_threads+0x44><== NOT EXECUTED a000c090: ea000008 b a000c0b8 <rtems_iterate_over_all_threads+0x50> <== NOT EXECUTED
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
the_thread = (Thread_Control *)information->local_table[ i ];
a000c094: e596301c ldr r3, [r6, #28] <== NOT EXECUTED a000c098: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED
if ( !the_thread )
a000c09c: e3500000 cmp r0, #0 <== NOT EXECUTED a000c0a0: 0a000000 beq a000c0a8 <rtems_iterate_over_all_threads+0x40><== NOT EXECUTED
continue;
(*routine)(the_thread);
a000c0a4: e12fff38 blx r8 <== NOT EXECUTED
information = _Objects_Information_table[ api_index ][ 1 ];
if ( !information )
continue;
for ( i=1 ; i <= information->maximum ; i++ ) {
a000c0a8: e2855001 add r5, r5, #1 <== NOT EXECUTED a000c0ac: e1d631b0 ldrh r3, [r6, #16] <== NOT EXECUTED a000c0b0: e1550003 cmp r5, r3 <== NOT EXECUTED a000c0b4: 9afffff6 bls a000c094 <rtems_iterate_over_all_threads+0x2c><== NOT EXECUTED
Objects_Information *information;
if ( !routine )
return;
for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
a000c0b8: e1540007 cmp r4, r7 <== NOT EXECUTED
a000c0bc: 1affffee bne a000c07c <rtems_iterate_over_all_threads+0x14><== NOT EXECUTED
a000c0c0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000dbd8 <rtems_libio_fcntl_flags>:
};
uint32_t rtems_libio_fcntl_flags(
uint32_t fcntl_flags
)
{
a000dbd8: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
* Access mode is a small integer
*/
access_modes = fcntl_flags & O_ACCMODE;
fcntl_flags &= ~O_ACCMODE;
flags = rtems_assoc_local_by_remote( access_modes_assoc, access_modes );
a000dbdc: e59f5024 ldr r5, [pc, #36] ; a000dc08 <rtems_libio_fcntl_flags+0x30><== NOT EXECUTED
};
uint32_t rtems_libio_fcntl_flags(
uint32_t fcntl_flags
)
{
a000dbe0: e1a04000 mov r4, r0 <== NOT EXECUTED
* Access mode is a small integer
*/
access_modes = fcntl_flags & O_ACCMODE;
fcntl_flags &= ~O_ACCMODE;
flags = rtems_assoc_local_by_remote( access_modes_assoc, access_modes );
a000dbe4: e2041003 and r1, r4, #3 <== NOT EXECUTED a000dbe8: e1a00005 mov r0, r5 <== NOT EXECUTED a000dbec: eb000ae7 bl a0010790 <rtems_assoc_local_by_remote> <== NOT EXECUTED
/*
* Everything else is single bits
*/
flags |=
rtems_assoc_local_by_remote_bitfield(status_flags_assoc, fcntl_flags);
a000dbf0: e3c41003 bic r1, r4, #3 <== NOT EXECUTED
* Access mode is a small integer
*/
access_modes = fcntl_flags & O_ACCMODE;
fcntl_flags &= ~O_ACCMODE;
flags = rtems_assoc_local_by_remote( access_modes_assoc, access_modes );
a000dbf4: e1a06000 mov r6, r0 <== NOT EXECUTED
/*
* Everything else is single bits
*/
flags |=
rtems_assoc_local_by_remote_bitfield(status_flags_assoc, fcntl_flags);
a000dbf8: e2850030 add r0, r5, #48 ; 0x30 <== NOT EXECUTED a000dbfc: eb000ad2 bl a001074c <rtems_assoc_local_by_remote_bitfield><== NOT EXECUTED
return flags; }
a000dc00: e1800006 orr r0, r0, r6 <== NOT EXECUTED
a000dc04: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a00062ac <rtems_libio_init>:
{
rtems_status_code rc;
uint32_t i;
rtems_libio_t *iop;
if (rtems_libio_number_iops > 0)
a00062ac: e59f30a8 ldr r3, [pc, #168] ; a000635c <rtems_libio_init+0xb0>
*
* Called by BSP startup code to initialize the libio subsystem.
*/
void rtems_libio_init( void )
{
a00062b0: e92d4011 push {r0, r4, lr}
rtems_status_code rc;
uint32_t i;
rtems_libio_t *iop;
if (rtems_libio_number_iops > 0)
a00062b4: e5934000 ldr r4, [r3] a00062b8: e3540000 cmp r4, #0
a00062bc: 0a000016 beq a000631c <rtems_libio_init+0x70>
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
a00062c0: e1a00004 mov r0, r4 a00062c4: e3a01038 mov r1, #56 ; 0x38 a00062c8: ebffff43 bl a0005fdc <calloc> a00062cc: e59f308c ldr r3, [pc, #140] ; a0006360 <rtems_libio_init+0xb4>
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
a00062d0: e3500000 cmp r0, #0
uint32_t i;
rtems_libio_t *iop;
if (rtems_libio_number_iops > 0)
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
a00062d4: e5830000 str r0, [r3]
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
a00062d8: 0280001a addeq r0, r0, #26
if (rtems_libio_number_iops > 0)
{
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
a00062dc: 0a000017 beq a0006340 <rtems_libio_init+0x94>
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
iop = rtems_libio_iop_freelist = rtems_libio_iops;
a00062e0: e59f307c ldr r3, [pc, #124] ; a0006364 <rtems_libio_init+0xb8>
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
a00062e4: e3a02000 mov r2, #0
rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
iop = rtems_libio_iop_freelist = rtems_libio_iops;
a00062e8: e5830000 str r0, [r3] a00062ec: e1a03000 mov r3, r0
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
a00062f0: ea000000 b a00062f8 <rtems_libio_init+0x4c>
iop->data1 = iop + 1;
a00062f4: e5033004 str r3, [r3, #-4]
sizeof(rtems_libio_t));
if (rtems_libio_iops == NULL)
rtems_fatal_error_occurred(RTEMS_NO_MEMORY);
iop = rtems_libio_iop_freelist = rtems_libio_iops;
for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)
a00062f8: e2822001 add r2, r2, #1 a00062fc: e1520004 cmp r2, r4 a0006300: e2833038 add r3, r3, #56 ; 0x38
a0006304: 3afffffa bcc a00062f4 <rtems_libio_init+0x48>
iop->data1 = iop + 1;
iop->data1 = NULL;
a0006308: e3a03038 mov r3, #56 ; 0x38 a000630c: e0200493 mla r0, r3, r4, r0 a0006310: e3a03000 mov r3, #0 a0006314: e2400038 sub r0, r0, #56 ; 0x38 a0006318: e5803034 str r3, [r0, #52] ; 0x34
/*
* Create the binary semaphore used to provide mutual exclusion
* on the IOP Table.
*/
rc = rtems_semaphore_create(
a000631c: e59f3044 ldr r3, [pc, #68] ; a0006368 <rtems_libio_init+0xbc> a0006320: e59f0044 ldr r0, [pc, #68] ; a000636c <rtems_libio_init+0xc0> a0006324: e3a01001 mov r1, #1 a0006328: e58d3000 str r3, [sp] a000632c: e3a02054 mov r2, #84 ; 0x54 a0006330: e3a03000 mov r3, #0 a0006334: eb000b8b bl a0009168 <rtems_semaphore_create>
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&rtems_libio_semaphore
);
if ( rc != RTEMS_SUCCESSFUL )
a0006338: e3500000 cmp r0, #0
a000633c: 0a000000 beq a0006344 <rtems_libio_init+0x98>
rtems_fatal_error_occurred( rc );
a0006340: eb000db5 bl a0009a1c <rtems_fatal_error_occurred> <== NOT EXECUTED
/*
* Initialize the base file system infrastructure.
*/
if (rtems_fs_init_helper)
a0006344: e59f3024 ldr r3, [pc, #36] ; a0006370 <rtems_libio_init+0xc4> a0006348: e5933000 ldr r3, [r3] a000634c: e3530000 cmp r3, #0
a0006350: 0a000000 beq a0006358 <rtems_libio_init+0xac>
(* rtems_fs_init_helper)();
a0006354: e12fff33 blx r3
}
a0006358: e8bd8018 pop {r3, r4, pc}
a000dda4 <rtems_libio_is_file_open>:
*/
int rtems_libio_is_file_open(
void *node_access
)
{
a000dda4: e92d4010 push {r4, lr} <== NOT EXECUTED
a000dda8: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_libio_t *iop;
int result=0;
uint32_t i;
rtems_libio_lock();
a000ddac: ebffff7f bl a000dbb0 <rtems_libio_lock> <== NOT EXECUTED
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
a000ddb0: e59f2050 ldr r2, [pc, #80] ; a000de08 <rtems_libio_is_file_open+0x64><== NOT EXECUTED a000ddb4: e59f3050 ldr r3, [pc, #80] ; a000de0c <rtems_libio_is_file_open+0x68><== NOT EXECUTED a000ddb8: e5921000 ldr r1, [r2] <== NOT EXECUTED a000ddbc: e5933000 ldr r3, [r3] <== NOT EXECUTED a000ddc0: e3a02000 mov r2, #0 <== NOT EXECUTED a000ddc4: ea000007 b a000dde8 <rtems_libio_is_file_open+0x44> <== NOT EXECUTED
if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
a000ddc8: e5930014 ldr r0, [r3, #20] <== NOT EXECUTED a000ddcc: e3100c01 tst r0, #256 ; 0x100 <== NOT EXECUTED a000ddd0: 0a000002 beq a000dde0 <rtems_libio_is_file_open+0x3c> <== NOT EXECUTED
/*
* Check if this node is under the file system that we
* are trying to dismount.
*/
if ( iop->pathinfo.node_access == node_access ) {
a000ddd4: e5930018 ldr r0, [r3, #24] <== NOT EXECUTED a000ddd8: e1500004 cmp r0, r4 <== NOT EXECUTED a000dddc: 0a000005 beq a000ddf8 <rtems_libio_is_file_open+0x54> <== NOT EXECUTED
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
a000dde0: e2833038 add r3, r3, #56 ; 0x38 <== NOT EXECUTED a000dde4: e2822001 add r2, r2, #1 <== NOT EXECUTED a000dde8: e1520001 cmp r2, r1 <== NOT EXECUTED a000ddec: 3afffff5 bcc a000ddc8 <rtems_libio_is_file_open+0x24> <== NOT EXECUTED
int rtems_libio_is_file_open(
void *node_access
)
{
rtems_libio_t *iop;
int result=0;
a000ddf0: e3a04000 mov r4, #0 <== NOT EXECUTED a000ddf4: ea000000 b a000ddfc <rtems_libio_is_file_open+0x58> <== NOT EXECUTED
* Check if this node is under the file system that we
* are trying to dismount.
*/
if ( iop->pathinfo.node_access == node_access ) {
result = 1;
a000ddf8: e3a04001 mov r4, #1 <== NOT EXECUTED
break;
}
}
}
rtems_libio_unlock();
a000ddfc: ebffff71 bl a000dbc8 <rtems_libio_unlock> <== NOT EXECUTED
return result;
}
a000de00: e1a00004 mov r0, r4 <== NOT EXECUTED
a000de04: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000dd38 <rtems_libio_is_open_files_in_fs>:
*/
int rtems_libio_is_open_files_in_fs(
rtems_filesystem_mount_table_entry_t * fs_mt_entry
)
{
a000dd38: e92d4010 push {r4, lr} <== NOT EXECUTED
a000dd3c: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_libio_t *iop;
int result = 0;
uint32_t i;
rtems_libio_lock();
a000dd40: ebffff9a bl a000dbb0 <rtems_libio_lock> <== NOT EXECUTED
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
a000dd44: e59f2050 ldr r2, [pc, #80] ; a000dd9c <rtems_libio_is_open_files_in_fs+0x64><== NOT EXECUTED a000dd48: e59f3050 ldr r3, [pc, #80] ; a000dda0 <rtems_libio_is_open_files_in_fs+0x68><== NOT EXECUTED a000dd4c: e5921000 ldr r1, [r2] <== NOT EXECUTED a000dd50: e5933000 ldr r3, [r3] <== NOT EXECUTED a000dd54: e3a02000 mov r2, #0 <== NOT EXECUTED a000dd58: ea000007 b a000dd7c <rtems_libio_is_open_files_in_fs+0x44> <== NOT EXECUTED
if ((iop->flags & LIBIO_FLAGS_OPEN) != 0) {
a000dd5c: e5930014 ldr r0, [r3, #20] <== NOT EXECUTED a000dd60: e3100c01 tst r0, #256 ; 0x100 <== NOT EXECUTED a000dd64: 0a000002 beq a000dd74 <rtems_libio_is_open_files_in_fs+0x3c><== NOT EXECUTED
/*
* Check if this node is under the file system that we
* are trying to dismount.
*/
if ( iop->pathinfo.mt_entry == fs_mt_entry ) {
a000dd68: e5930028 ldr r0, [r3, #40] ; 0x28 <== NOT EXECUTED a000dd6c: e1500004 cmp r0, r4 <== NOT EXECUTED a000dd70: 0a000005 beq a000dd8c <rtems_libio_is_open_files_in_fs+0x54><== NOT EXECUTED
/*
* Look for any active file descriptor entry.
*/
for (iop=rtems_libio_iops,i=0; i < rtems_libio_number_iops; iop++, i++){
a000dd74: e2833038 add r3, r3, #56 ; 0x38 <== NOT EXECUTED a000dd78: e2822001 add r2, r2, #1 <== NOT EXECUTED a000dd7c: e1520001 cmp r2, r1 <== NOT EXECUTED a000dd80: 3afffff5 bcc a000dd5c <rtems_libio_is_open_files_in_fs+0x24><== NOT EXECUTED
int rtems_libio_is_open_files_in_fs(
rtems_filesystem_mount_table_entry_t * fs_mt_entry
)
{
rtems_libio_t *iop;
int result = 0;
a000dd84: e3a04000 mov r4, #0 <== NOT EXECUTED a000dd88: ea000000 b a000dd90 <rtems_libio_is_open_files_in_fs+0x58> <== NOT EXECUTED
* Check if this node is under the file system that we
* are trying to dismount.
*/
if ( iop->pathinfo.mt_entry == fs_mt_entry ) {
result = 1;
a000dd8c: e3a04001 mov r4, #1 <== NOT EXECUTED
break;
}
}
}
rtems_libio_unlock();
a000dd90: ebffff8c bl a000dbc8 <rtems_libio_unlock> <== NOT EXECUTED
return result;
}
a000dd94: e1a00004 mov r0, r4 <== NOT EXECUTED
a000dd98: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a00074b4 <rtems_libio_set_private_env>:
}
}
rtems_status_code rtems_libio_set_private_env(void)
{
a00074b4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a00074b8: e24dd02c sub sp, sp, #44 ; 0x2c <== NOT EXECUTED
rtems_status_code sc = RTEMS_SUCCESSFUL; rtems_id task_id = rtems_task_self();
a00074bc: eb000a79 bl a0009ea8 <rtems_task_self> <== NOT EXECUTED
rtems_filesystem_location_info_t root_loc;
rtems_filesystem_location_info_t current_loc;
rtems_user_env_t *new_env = NULL;
int rv = 0;
rv = rtems_filesystem_evaluate_path("/", 1, 0, &root_loc, 0);
a00074c0: e3a02000 mov r2, #0 <== NOT EXECUTED
}
rtems_status_code rtems_libio_set_private_env(void)
{
rtems_status_code sc = RTEMS_SUCCESSFUL;
rtems_id task_id = rtems_task_self();
a00074c4: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_filesystem_location_info_t root_loc;
rtems_filesystem_location_info_t current_loc;
rtems_user_env_t *new_env = NULL;
int rv = 0;
rv = rtems_filesystem_evaluate_path("/", 1, 0, &root_loc, 0);
a00074c8: e3a01001 mov r1, #1 <== NOT EXECUTED a00074cc: e59f00f4 ldr r0, [pc, #244] ; a00075c8 <rtems_libio_set_private_env+0x114><== NOT EXECUTED a00074d0: e28d3018 add r3, sp, #24 <== NOT EXECUTED a00074d4: e58d2000 str r2, [sp] <== NOT EXECUTED a00074d8: ebfffb93 bl a000632c <rtems_filesystem_evaluate_path> <== NOT EXECUTED
if (rv != 0)
a00074dc: e2502000 subs r2, r0, #0 <== NOT EXECUTED a00074e0: 1a000035 bne a00075bc <rtems_libio_set_private_env+0x108> <== NOT EXECUTED
goto error_0;
rv = rtems_filesystem_evaluate_path("/", 1, 0, ¤t_loc, 0);
a00074e4: e59f00dc ldr r0, [pc, #220] ; a00075c8 <rtems_libio_set_private_env+0x114><== NOT EXECUTED a00074e8: e3a01001 mov r1, #1 <== NOT EXECUTED a00074ec: e28d3004 add r3, sp, #4 <== NOT EXECUTED a00074f0: e58d2000 str r2, [sp] <== NOT EXECUTED a00074f4: ebfffb8c bl a000632c <rtems_filesystem_evaluate_path> <== NOT EXECUTED
if (rv != 0)
a00074f8: e3500000 cmp r0, #0 <== NOT EXECUTED a00074fc: 1a00002c bne a00075b4 <rtems_libio_set_private_env+0x100> <== NOT EXECUTED
* Bharath: I'm not sure if the check can be reduced to
* if( rtems_current_user_env->task_id != task_id ) {
*/
if (
rtems_current_user_env == &rtems_global_user_env
a0007500: e59f30c4 ldr r3, [pc, #196] ; a00075cc <rtems_libio_set_private_env+0x118><== NOT EXECUTED
/*
* Bharath: I'm not sure if the check can be reduced to
* if( rtems_current_user_env->task_id != task_id ) {
*/
if (
a0007504: e59f20c4 ldr r2, [pc, #196] ; a00075d0 <rtems_libio_set_private_env+0x11c><== NOT EXECUTED
rtems_current_user_env == &rtems_global_user_env
a0007508: e5933000 ldr r3, [r3] <== NOT EXECUTED
/*
* Bharath: I'm not sure if the check can be reduced to
* if( rtems_current_user_env->task_id != task_id ) {
*/
if (
a000750c: e1530002 cmp r3, r2 <== NOT EXECUTED a0007510: 0a000002 beq a0007520 <rtems_libio_set_private_env+0x6c> <== NOT EXECUTED
rtems_current_user_env == &rtems_global_user_env
|| rtems_current_user_env->task_id != task_id
a0007514: e5933000 ldr r3, [r3] <== NOT EXECUTED a0007518: e1530004 cmp r3, r4 <== NOT EXECUTED a000751c: 0a00000b beq a0007550 <rtems_libio_set_private_env+0x9c> <== NOT EXECUTED
) {
new_env = malloc(sizeof(rtems_user_env_t));
a0007520: e3a00048 mov r0, #72 ; 0x48 <== NOT EXECUTED a0007524: ebfffd33 bl a00069f8 <malloc> <== NOT EXECUTED
if (new_env == NULL)
a0007528: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000752c: 0a00001e beq a00075ac <rtems_libio_set_private_env+0xf8> <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
new_env->refcnt = 1;
#endif
sc = rtems_task_variable_add(
a0007530: e59f6094 ldr r6, [pc, #148] ; a00075cc <rtems_libio_set_private_env+0x118><== NOT EXECUTED a0007534: e3a00000 mov r0, #0 <== NOT EXECUTED a0007538: e59f2094 ldr r2, [pc, #148] ; a00075d4 <rtems_libio_set_private_env+0x120><== NOT EXECUTED a000753c: e1a01006 mov r1, r6 <== NOT EXECUTED a0007540: eb000a75 bl a0009f1c <rtems_task_variable_add> <== NOT EXECUTED
RTEMS_SELF,
(void*)&rtems_current_user_env,
(void(*)(void *))free_user_env
);
if (sc != RTEMS_SUCCESSFUL)
a0007544: e3500000 cmp r0, #0 <== NOT EXECUTED a0007548: 1a000015 bne a00075a4 <rtems_libio_set_private_env+0xf0> <== NOT EXECUTED
goto error_3;
rtems_current_user_env = new_env;
a000754c: e5865000 str r5, [r6] <== NOT EXECUTED
}
/* Inherit the global values */
*rtems_current_user_env = rtems_global_user_env;
a0007550: e59f3074 ldr r3, [pc, #116] ; a00075cc <rtems_libio_set_private_env+0x118><== NOT EXECUTED a0007554: e59f1074 ldr r1, [pc, #116] ; a00075d0 <rtems_libio_set_private_env+0x11c><== NOT EXECUTED a0007558: e3a02048 mov r2, #72 ; 0x48 <== NOT EXECUTED a000755c: e5935000 ldr r5, [r3] <== NOT EXECUTED a0007560: e1a00005 mov r0, r5 <== NOT EXECUTED a0007564: eb0029e4 bl a0011cfc <memcpy> <== NOT EXECUTED
rtems_current_user_env->task_id = task_id;
a0007568: e1a0c005 mov ip, r5 <== NOT EXECUTED a000756c: e48c4018 str r4, [ip], #24 <== NOT EXECUTED
* Clone the pathlocs. In contrast to most other code we must _not_ free the * original locs because what we are trying to do here is forking off clones. * The reason is a pathloc can be allocated by the file system and needs to * be freed when deleting the environment. */ rtems_filesystem_root = root_loc;
a0007570: e28d4018 add r4, sp, #24 <== NOT EXECUTED
a0007574: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a0007578: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000757c: e5943000 ldr r3, [r4] <== NOT EXECUTED
rtems_filesystem_current = current_loc;
a0007580: e28d4004 add r4, sp, #4 <== NOT EXECUTED
* Clone the pathlocs. In contrast to most other code we must _not_ free the * original locs because what we are trying to do here is forking off clones. * The reason is a pathloc can be allocated by the file system and needs to * be freed when deleting the environment. */ rtems_filesystem_root = root_loc;
a0007584: e58c3000 str r3, [ip] <== NOT EXECUTED
rtems_filesystem_current = current_loc;
a0007588: e285c004 add ip, r5, #4 <== NOT EXECUTED
a000758c: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED
a0007590: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0007594: e5943000 ldr r3, [r4] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0007598: e3a00000 mov r0, #0 <== NOT EXECUTED
* original locs because what we are trying to do here is forking off clones. * The reason is a pathloc can be allocated by the file system and needs to * be freed when deleting the environment. */ rtems_filesystem_root = root_loc; rtems_filesystem_current = current_loc;
a000759c: e58c3000 str r3, [ip] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a00075a0: ea000006 b a00075c0 <rtems_libio_set_private_env+0x10c> <== NOT EXECUTED
error_3:
free(new_env);
a00075a4: e1a00005 mov r0, r5 <== NOT EXECUTED a00075a8: ebfffb94 bl a0006400 <free> <== NOT EXECUTED
error_2:
rtems_filesystem_freenode(¤t_loc);
a00075ac: e28d0004 add r0, sp, #4 <== NOT EXECUTED a00075b0: ebfffb8d bl a00063ec <rtems_filesystem_freenode> <== NOT EXECUTED
error_1:
rtems_filesystem_freenode(&root_loc);
a00075b4: e28d0018 add r0, sp, #24 <== NOT EXECUTED a00075b8: ebfffb8b bl a00063ec <rtems_filesystem_freenode> <== NOT EXECUTED
error_0:
return RTEMS_NO_MEMORY;
a00075bc: e3a0001a mov r0, #26 <== NOT EXECUTED
}
a00075c0: e28dd02c add sp, sp, #44 ; 0x2c <== NOT EXECUTED
a00075c4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a00075d8 <rtems_libio_share_private_env>:
* b) mutex access to rtems_filesystem_current, rtems_filesytem_root
* while changing any of those (chdir(), chroot()).
*/
rtems_status_code rtems_libio_share_private_env(rtems_id task_id)
{
a00075d8: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
a00075dc: e1a06000 mov r6, r0 <== NOT EXECUTED
rtems_id current_task_id;
/*
* get current task id
*/
current_task_id = rtems_task_self();
a00075e0: eb000a30 bl a0009ea8 <rtems_task_self> <== NOT EXECUTED
/*
* If this was an attempt to share the task with self,
* if somebody wanted to do it... Lets tell them, its shared
*/
if( task_id == current_task_id )
a00075e4: e1560000 cmp r6, r0 <== NOT EXECUTED
rtems_id current_task_id;
/*
* get current task id
*/
current_task_id = rtems_task_self();
a00075e8: e1a04000 mov r4, r0 <== NOT EXECUTED
* If this was an attempt to share the task with self,
* if somebody wanted to do it... Lets tell them, its shared
*/
if( task_id == current_task_id )
return RTEMS_SUCCESSFUL;
a00075ec: 03a06000 moveq r6, #0 <== NOT EXECUTED
/*
* If this was an attempt to share the task with self,
* if somebody wanted to do it... Lets tell them, its shared
*/
if( task_id == current_task_id )
a00075f0: 0a00000e beq a0007630 <rtems_libio_share_private_env+0x58> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
/*
* Try to get the requested user environment
*/
sc = rtems_task_variable_get(
a00075f4: e59f503c ldr r5, [pc, #60] ; a0007638 <rtems_libio_share_private_env+0x60><== NOT EXECUTED a00075f8: e1a00006 mov r0, r6 <== NOT EXECUTED a00075fc: e1a0200d mov r2, sp <== NOT EXECUTED a0007600: e1a01005 mov r1, r5 <== NOT EXECUTED a0007604: eb000a6e bl a0009fc4 <rtems_task_variable_get> <== NOT EXECUTED
(void*)&shared_user_env );
/*
* If it was not successful, return the error code
*/
if (sc != RTEMS_SUCCESSFUL)
a0007608: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000760c: 1a000007 bne a0007630 <rtems_libio_share_private_env+0x58> <== NOT EXECUTED
* If we have a current environment in place, we need to
* free it, since we will be sharing the variable with the
* shared_user_env
*/
if (rtems_current_user_env->task_id==current_task_id) {
a0007610: e5950000 ldr r0, [r5] <== NOT EXECUTED a0007614: e5903000 ldr r3, [r0] <== NOT EXECUTED a0007618: e1530004 cmp r3, r4 <== NOT EXECUTED a000761c: 1a000000 bne a0007624 <rtems_libio_share_private_env+0x4c> <== NOT EXECUTED
rtems_user_env_t *tmp = rtems_current_user_env;
free_user_env( tmp );
a0007620: ebffff95 bl a000747c <free_user_env> <== NOT EXECUTED
}
/* the current_user_env is the same pointer that remote env */
rtems_current_user_env = shared_user_env;
a0007624: e59d2000 ldr r2, [sp] <== NOT EXECUTED a0007628: e59f3008 ldr r3, [pc, #8] ; a0007638 <rtems_libio_share_private_env+0x60><== NOT EXECUTED a000762c: e5832000 str r2, [r3] <== NOT EXECUTED
#ifdef HAVE_USERENV_REFCNT
rtems_current_user_env->refcnt++;
#endif
return RTEMS_SUCCESSFUL;
}
a0007630: e1a00006 mov r0, r6 <== NOT EXECUTED
a0007634: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a000dc0c <rtems_libio_to_fcntl_flags>:
uint32_t flags
)
{
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
a000dc0c: e2003006 and r3, r0, #6 <== NOT EXECUTED a000dc10: e3530006 cmp r3, #6 <== NOT EXECUTED
fcntl_flags |= O_RDWR;
a000dc14: 03a03002 moveq r3, #2 <== NOT EXECUTED
uint32_t flags
)
{
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
a000dc18: 0a000005 beq a000dc34 <rtems_libio_to_fcntl_flags+0x28> <== NOT EXECUTED
fcntl_flags |= O_RDWR;
} else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {
a000dc1c: e3100002 tst r0, #2 <== NOT EXECUTED
fcntl_flags |= O_RDONLY;
a000dc20: 13a03000 movne r3, #0 <== NOT EXECUTED
{
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
fcntl_flags |= O_RDWR;
} else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {
a000dc24: 1a000002 bne a000dc34 <rtems_libio_to_fcntl_flags+0x28> <== NOT EXECUTED
)
{
uint32_t fcntl_flags = 0;
if ( (flags & LIBIO_FLAGS_READ_WRITE) == LIBIO_FLAGS_READ_WRITE ) {
fcntl_flags |= O_RDWR;
a000dc28: e3100004 tst r0, #4 <== NOT EXECUTED a000dc2c: 03a03000 moveq r3, #0 <== NOT EXECUTED a000dc30: 13a03001 movne r3, #1 <== NOT EXECUTED
fcntl_flags |= O_RDONLY;
} else if ( (flags & LIBIO_FLAGS_WRITE) == LIBIO_FLAGS_WRITE) {
fcntl_flags |= O_WRONLY;
}
if ( (flags & LIBIO_FLAGS_NO_DELAY) == LIBIO_FLAGS_NO_DELAY ) {
a000dc34: e3100001 tst r0, #1 <== NOT EXECUTED
fcntl_flags |= O_NONBLOCK;
a000dc38: 13833901 orrne r3, r3, #16384 ; 0x4000 <== NOT EXECUTED
}
if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {
a000dc3c: e3100c02 tst r0, #512 ; 0x200 <== NOT EXECUTED
fcntl_flags |= O_APPEND;
a000dc40: 13833008 orrne r3, r3, #8 <== NOT EXECUTED
}
if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {
a000dc44: e3100b01 tst r0, #1024 ; 0x400 <== NOT EXECUTED
fcntl_flags |= O_CREAT;
a000dc48: 13833c02 orrne r3, r3, #512 ; 0x200 <== NOT EXECUTED
}
return fcntl_flags;
}
a000dc4c: e1a00003 mov r0, r3 <== NOT EXECUTED a000dc50: e12fff1e bx lr <== NOT EXECUTED
a000a3a4 <rtems_malloc_statistics_at_free>:
* size and thus we skip updating the statistics.
*/
static void rtems_malloc_statistics_at_free(
void *pointer
)
{
a000a3a4: e92d4001 push {r0, lr} <== NOT EXECUTED
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
a000a3a8: e59f3038 ldr r3, [pc, #56] ; a000a3e8 <rtems_malloc_statistics_at_free+0x44><== NOT EXECUTED
* size and thus we skip updating the statistics.
*/
static void rtems_malloc_statistics_at_free(
void *pointer
)
{
a000a3ac: e1a01000 mov r1, r0 <== NOT EXECUTED
uintptr_t size;
if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
a000a3b0: e1a0200d mov r2, sp <== NOT EXECUTED a000a3b4: e5930000 ldr r0, [r3] <== NOT EXECUTED a000a3b8: eb0016a5 bl a000fe54 <_Protected_heap_Get_block_size> <== NOT EXECUTED a000a3bc: e3500000 cmp r0, #0 <== NOT EXECUTED a000a3c0: 0a000007 beq a000a3e4 <rtems_malloc_statistics_at_free+0x40><== NOT EXECUTED
MSBUMP(lifetime_freed, size);
a000a3c4: e59f3020 ldr r3, [pc, #32] ; a000a3ec <rtems_malloc_statistics_at_free+0x48><== NOT EXECUTED
a000a3c8: e59d0000 ldr r0, [sp] <== NOT EXECUTED
a000a3cc: e2832024 add r2, r3, #36 ; 0x24 <== NOT EXECUTED
a000a3d0: e8920006 ldm r2, {r1, r2} <== NOT EXECUTED
a000a3d4: e0911000 adds r1, r1, r0 <== NOT EXECUTED
a000a3d8: e2a22000 adc r2, r2, #0 <== NOT EXECUTED
a000a3dc: e5831024 str r1, [r3, #36] ; 0x24 <== NOT EXECUTED
a000a3e0: e5832028 str r2, [r3, #40] ; 0x28 <== NOT EXECUTED
} }
a000a3e4: e8bd8008 pop {r3, pc} <== NOT EXECUTED
a0011978 <rtems_memalign>:
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
a0011978: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
a001197c: e2504000 subs r4, r0, #0 <== NOT EXECUTED
int rtems_memalign(
void **pointer,
size_t alignment,
size_t size
)
{
a0011980: e1a05001 mov r5, r1 <== NOT EXECUTED a0011984: e1a06002 mov r6, r2 <== NOT EXECUTED
void *return_this;
/*
* Parameter error checks
*/
if ( !pointer )
a0011988: 0a00001b beq a00119fc <rtems_memalign+0x84> <== NOT EXECUTED
return EINVAL;
*pointer = NULL;
a001198c: e3a03000 mov r3, #0 <== NOT EXECUTED a0011990: e5843000 str r3, [r4] <== NOT EXECUTED
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
a0011994: e59f3070 ldr r3, [pc, #112] ; a0011a0c <rtems_memalign+0x94><== NOT EXECUTED a0011998: e5933000 ldr r3, [r3] <== NOT EXECUTED a001199c: e3530003 cmp r3, #3 <== NOT EXECUTED a00119a0: 1a000002 bne a00119b0 <rtems_memalign+0x38> <== NOT EXECUTED
!malloc_is_system_state_OK() )
a00119a4: ebffd613 bl a00071f8 <malloc_is_system_state_OK> <== NOT EXECUTED
*pointer = NULL;
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
a00119a8: e3500000 cmp r0, #0 <== NOT EXECUTED a00119ac: 0a000012 beq a00119fc <rtems_memalign+0x84> <== NOT EXECUTED
return EINVAL;
/*
* If some free's have been deferred, then do them now.
*/
malloc_deferred_frees_process();
a00119b0: ebffd624 bl a0007248 <malloc_deferred_frees_process> <== NOT EXECUTED
Heap_Control *heap,
uintptr_t size,
uintptr_t alignment
)
{
return
a00119b4: e59f3054 ldr r3, [pc, #84] ; a0011a10 <rtems_memalign+0x98><== NOT EXECUTED a00119b8: e1a02005 mov r2, r5 <== NOT EXECUTED a00119bc: e1a01006 mov r1, r6 <== NOT EXECUTED a00119c0: e5930000 ldr r0, [r3] <== NOT EXECUTED a00119c4: e3a03000 mov r3, #0 <== NOT EXECUTED a00119c8: ebffe941 bl a000bed4 <_Protected_heap_Allocate_aligned_with_boundary><== NOT EXECUTED
return_this = _Protected_heap_Allocate_aligned(
RTEMS_Malloc_Heap,
size,
alignment
);
if ( !return_this )
a00119cc: e2505000 subs r5, r0, #0 <== NOT EXECUTED a00119d0: 0a00000b beq a0011a04 <rtems_memalign+0x8c> <== NOT EXECUTED
return ENOMEM;
/*
* If configured, update the more involved statistics
*/
if ( rtems_malloc_statistics_helpers )
a00119d4: e59f3038 ldr r3, [pc, #56] ; a0011a14 <rtems_memalign+0x9c><== NOT EXECUTED a00119d8: e5933000 ldr r3, [r3] <== NOT EXECUTED a00119dc: e3530000 cmp r3, #0 <== NOT EXECUTED a00119e0: 0a000002 beq a00119f0 <rtems_memalign+0x78> <== NOT EXECUTED
(*rtems_malloc_statistics_helpers->at_malloc)(pointer);
a00119e4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a00119e8: e1a00004 mov r0, r4 <== NOT EXECUTED a00119ec: e12fff33 blx r3 <== NOT EXECUTED
*pointer = return_this;
a00119f0: e5845000 str r5, [r4] <== NOT EXECUTED
return 0;
a00119f4: e3a00000 mov r0, #0 <== NOT EXECUTED
a00119f8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
/*
* Do not attempt to allocate memory if not in correct system state.
*/
if ( _System_state_Is_up(_System_state_Get()) &&
!malloc_is_system_state_OK() )
return EINVAL;
a00119fc: e3a00016 mov r0, #22 <== NOT EXECUTED
a0011a00: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
RTEMS_Malloc_Heap,
size,
alignment
);
if ( !return_this )
return ENOMEM;
a0011a04: e3a0000c mov r0, #12 <== NOT EXECUTED
if ( rtems_malloc_statistics_helpers )
(*rtems_malloc_statistics_helpers->at_malloc)(pointer);
*pointer = return_this;
return 0;
}
a0011a08: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0015cb8 <rtems_message_queue_broadcast>:
rtems_id id,
const void *buffer,
size_t size,
uint32_t *count
)
{
a0015cb8: e92d40f7 push {r0, r1, r2, r4, r5, r6, r7, lr} <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status core_status;
if ( !buffer )
a0015cbc: e2517000 subs r7, r1, #0 <== NOT EXECUTED
rtems_id id,
const void *buffer,
size_t size,
uint32_t *count
)
{
a0015cc0: e1a04000 mov r4, r0 <== NOT EXECUTED a0015cc4: e1a05002 mov r5, r2 <== NOT EXECUTED a0015cc8: e1a06003 mov r6, r3 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status core_status;
if ( !buffer )
a0015ccc: 0a000015 beq a0015d28 <rtems_message_queue_broadcast+0x70> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !count )
a0015cd0: e3530000 cmp r3, #0 <== NOT EXECUTED a0015cd4: 0a000013 beq a0015d28 <rtems_message_queue_broadcast+0x70> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
_Objects_Get( &_Message_queue_Information, id, location );
a0015cd8: e59f0050 ldr r0, [pc, #80] ; a0015d30 <rtems_message_queue_broadcast+0x78><== NOT EXECUTED a0015cdc: e1a01004 mov r1, r4 <== NOT EXECUTED a0015ce0: e28d2008 add r2, sp, #8 <== NOT EXECUTED a0015ce4: eb001434 bl a001adbc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a0015ce8: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0015cec: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0015cf0: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !count )
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a0015cf4: 1a00000c bne a0015d2c <rtems_message_queue_broadcast+0x74> <== NOT EXECUTED
case OBJECTS_LOCAL:
core_status = _CORE_message_queue_Broadcast(
a0015cf8: e58d3000 str r3, [sp] <== NOT EXECUTED a0015cfc: e1a01007 mov r1, r7 <== NOT EXECUTED a0015d00: e1a03004 mov r3, r4 <== NOT EXECUTED a0015d04: e1a02005 mov r2, r5 <== NOT EXECUTED a0015d08: e2800014 add r0, r0, #20 <== NOT EXECUTED a0015d0c: e58d6004 str r6, [sp, #4] <== NOT EXECUTED a0015d10: eb000d21 bl a001919c <_CORE_message_queue_Broadcast> <== NOT EXECUTED a0015d14: e1a04000 mov r4, r0 <== NOT EXECUTED
NULL,
#endif
count
);
_Thread_Enable_dispatch();
a0015d18: eb001752 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return
a0015d1c: e1a00004 mov r0, r4 <== NOT EXECUTED a0015d20: eb0000cc bl a0016058 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED a0015d24: ea000000 b a0015d2c <rtems_message_queue_broadcast+0x74> <== NOT EXECUTED
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
if ( !count )
return RTEMS_INVALID_ADDRESS;
a0015d28: e3a00009 mov r0, #9 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0015d2c: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a0010f94 <rtems_message_queue_create>:
uint32_t count,
size_t max_message_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
a0010f94: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
CORE_message_queue_Attributes the_msgq_attributes;
#if defined(RTEMS_MULTIPROCESSING)
bool is_global;
#endif
if ( !rtems_is_name_valid( name ) )
a0010f98: e2507000 subs r7, r0, #0 <== NOT EXECUTED
uint32_t count,
size_t max_message_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
a0010f9c: e1a06001 mov r6, r1 <== NOT EXECUTED a0010fa0: e1a05002 mov r5, r2 <== NOT EXECUTED a0010fa4: e1a0a003 mov sl, r3 <== NOT EXECUTED a0010fa8: e59d8020 ldr r8, [sp, #32] <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
bool is_global;
#endif
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
a0010fac: 03a00003 moveq r0, #3 <== NOT EXECUTED
CORE_message_queue_Attributes the_msgq_attributes;
#if defined(RTEMS_MULTIPROCESSING)
bool is_global;
#endif
if ( !rtems_is_name_valid( name ) )
a0010fb0: 0a00002d beq a001106c <rtems_message_queue_create+0xd8> <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !id )
a0010fb4: e3580000 cmp r8, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a0010fb8: 03a00009 moveq r0, #9 <== NOT EXECUTED
#endif
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
a0010fbc: 0a00002a beq a001106c <rtems_message_queue_create+0xd8> <== NOT EXECUTED
if ( (is_global = _Attributes_Is_global( attribute_set ) ) &&
!_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
#endif
if ( count == 0 )
a0010fc0: e3510000 cmp r1, #0 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
a0010fc4: 03a0000a moveq r0, #10 <== NOT EXECUTED
if ( (is_global = _Attributes_Is_global( attribute_set ) ) &&
!_System_state_Is_multiprocessing )
return RTEMS_MP_NOT_CONFIGURED;
#endif
if ( count == 0 )
a0010fc8: 0a000027 beq a001106c <rtems_message_queue_create+0xd8> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
if ( max_message_size == 0 )
a0010fcc: e3520000 cmp r2, #0 <== NOT EXECUTED
return RTEMS_INVALID_SIZE;
a0010fd0: 03a00008 moveq r0, #8 <== NOT EXECUTED
#endif
if ( count == 0 )
return RTEMS_INVALID_NUMBER;
if ( max_message_size == 0 )
a0010fd4: 0a000024 beq a001106c <rtems_message_queue_create+0xd8> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a0010fd8: e59f3090 ldr r3, [pc, #144] ; a0011070 <rtems_message_queue_create+0xdc><== NOT EXECUTED a0010fdc: e5932000 ldr r2, [r3] <== NOT EXECUTED a0010fe0: e2822001 add r2, r2, #1 <== NOT EXECUTED a0010fe4: e5832000 str r2, [r3] <== NOT EXECUTED
#endif
#endif
_Thread_Disable_dispatch(); /* protects object pointer */
the_message_queue = _Message_queue_Allocate();
a0010fe8: eb00186d bl a00171a4 <_Message_queue_Allocate> <== NOT EXECUTED
if ( !the_message_queue ) {
a0010fec: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0010ff0: 1a000002 bne a0011000 <rtems_message_queue_create+0x6c> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0010ff4: eb000bdd bl a0013f70 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
a0010ff8: e3a00005 mov r0, #5 <== NOT EXECUTED a0010ffc: ea00001a b a001106c <rtems_message_queue_create+0xd8> <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_message_queue->attribute_set = attribute_set;
a0011000: e584a010 str sl, [r4, #16] <== NOT EXECUTED
if (_Attributes_Is_priority( attribute_set ) )
a0011004: e21aa004 ands sl, sl, #4 <== NOT EXECUTED
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_PRIORITY;
a0011008: 13a03001 movne r3, #1 <== NOT EXECUTED a001100c: 158d3000 strne r3, [sp] <== NOT EXECUTED
else
the_msgq_attributes.discipline = CORE_MESSAGE_QUEUE_DISCIPLINES_FIFO;
if ( ! _CORE_message_queue_Initialize(
a0011010: e2840014 add r0, r4, #20 <== NOT EXECUTED a0011014: e1a0100d mov r1, sp <== NOT EXECUTED a0011018: e1a02006 mov r2, r6 <== NOT EXECUTED a001101c: e1a03005 mov r3, r5 <== NOT EXECUTED
the_message_queue->attribute_set = attribute_set;
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;
a0011020: 058da000 streq sl, [sp] <== NOT EXECUTED
if ( ! _CORE_message_queue_Initialize(
a0011024: eb000460 bl a00121ac <_CORE_message_queue_Initialize> <== NOT EXECUTED a0011028: e3500000 cmp r0, #0 <== NOT EXECUTED a001102c: 1a000005 bne a0011048 <rtems_message_queue_create+0xb4> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Message_queue_Free (
Message_queue_Control *the_message_queue
)
{
_Objects_Free( &_Message_queue_Information, &the_message_queue->Object );
a0011030: e59f003c ldr r0, [pc, #60] ; a0011074 <rtems_message_queue_create+0xe0><== NOT EXECUTED a0011034: e1a01004 mov r1, r4 <== NOT EXECUTED a0011038: eb000823 bl a00130cc <_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();
a001103c: eb000bcb bl a0013f70 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_UNSATISFIED;
a0011040: e3a0000d mov r0, #13 <== NOT EXECUTED a0011044: ea000008 b a001106c <rtems_message_queue_create+0xd8> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a0011048: e59f2024 ldr r2, [pc, #36] ; a0011074 <rtems_message_queue_create+0xe0><== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
a001104c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0011050: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a0011054: e592201c ldr r2, [r2, #28] <== NOT EXECUTED a0011058: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
a001105c: e584700c str r7, [r4, #12] <== NOT EXECUTED
&_Message_queue_Information,
&the_message_queue->Object,
(Objects_Name) name
);
*id = the_message_queue->Object.id;
a0011060: e5883000 str r3, [r8] <== NOT EXECUTED
name,
0
);
#endif
_Thread_Enable_dispatch();
a0011064: eb000bc1 bl a0013f70 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0011068: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a001106c: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a000f978 <rtems_message_queue_delete>:
*/
rtems_status_code rtems_message_queue_delete(
rtems_id id
)
{
a000f978: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a000f97c: e1a01000 mov r1, r0 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
_Objects_Get( &_Message_queue_Information, id, location );
a000f980: e1a0200d mov r2, sp <== NOT EXECUTED a000f984: e59f0048 ldr r0, [pc, #72] ; a000f9d4 <rtems_message_queue_delete+0x5c><== NOT EXECUTED a000f988: ebffef25 bl a000b624 <_Objects_Get> <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a000f98c: e59d4000 ldr r4, [sp] <== NOT EXECUTED a000f990: e1a05000 mov r5, r0 <== NOT EXECUTED a000f994: e3540000 cmp r4, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000f998: 13a00004 movne r0, #4 <== NOT EXECUTED
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a000f99c: 1a00000b bne a000f9d0 <rtems_message_queue_delete+0x58> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_Message_queue_Information,
a000f9a0: e59f002c ldr r0, [pc, #44] ; a000f9d4 <rtems_message_queue_delete+0x5c><== NOT EXECUTED a000f9a4: e1a01005 mov r1, r5 <== NOT EXECUTED a000f9a8: ebffee20 bl a000b230 <_Objects_Close> <== NOT EXECUTED
&the_message_queue->Object );
_CORE_message_queue_Close(
a000f9ac: e3a02005 mov r2, #5 <== NOT EXECUTED a000f9b0: e2850014 add r0, r5, #20 <== NOT EXECUTED a000f9b4: e1a01004 mov r1, r4 <== NOT EXECUTED a000f9b8: eb00017a bl a000ffa8 <_CORE_message_queue_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Message_queue_Free (
Message_queue_Control *the_message_queue
)
{
_Objects_Free( &_Message_queue_Information, &the_message_queue->Object );
a000f9bc: e59f0010 ldr r0, [pc, #16] ; a000f9d4 <rtems_message_queue_delete+0x5c><== NOT EXECUTED a000f9c0: e1a01005 mov r1, r5 <== NOT EXECUTED a000f9c4: ebffeebe bl a000b4c4 <_Objects_Free> <== NOT EXECUTED
0, /* Not used */
0
);
}
#endif
_Thread_Enable_dispatch();
a000f9c8: ebfff21c bl a000c240 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000f9cc: e1a00004 mov r0, r4 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a000f9d0: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0015e78 <rtems_message_queue_flush>:
rtems_status_code rtems_message_queue_flush(
rtems_id id,
uint32_t *count
)
{
a0015e78: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
a0015e7c: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_message_queue_flush(
rtems_id id,
uint32_t *count
)
{
a0015e80: e1a03000 mov r3, r0 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
return RTEMS_INVALID_ADDRESS;
a0015e84: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
a0015e88: 0a00000c beq a0015ec0 <rtems_message_queue_flush+0x48> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
_Objects_Get( &_Message_queue_Information, id, location );
a0015e8c: e59f0030 ldr r0, [pc, #48] ; a0015ec4 <rtems_message_queue_flush+0x4c><== NOT EXECUTED a0015e90: e1a01003 mov r1, r3 <== NOT EXECUTED a0015e94: e1a0200d mov r2, sp <== NOT EXECUTED a0015e98: eb0013c7 bl a001adbc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a0015e9c: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0015ea0: e3550000 cmp r5, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0015ea4: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !count )
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a0015ea8: 1a000004 bne a0015ec0 <rtems_message_queue_flush+0x48> <== NOT EXECUTED
case OBJECTS_LOCAL:
*count = _CORE_message_queue_Flush( &the_message_queue->message_queue );
a0015eac: e2800014 add r0, r0, #20 <== NOT EXECUTED a0015eb0: eb000ce2 bl a0019240 <_CORE_message_queue_Flush> <== NOT EXECUTED a0015eb4: e5840000 str r0, [r4] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0015eb8: eb0016ea bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0015ebc: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0015ec0: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0015ec8 <rtems_message_queue_get_number_pending>:
rtems_status_code rtems_message_queue_get_number_pending(
rtems_id id,
uint32_t *count
)
{
a0015ec8: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
a0015ecc: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_message_queue_get_number_pending(
rtems_id id,
uint32_t *count
)
{
a0015ed0: e1a03000 mov r3, r0 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
return RTEMS_INVALID_ADDRESS;
a0015ed4: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
if ( !count )
a0015ed8: 0a00000b beq a0015f0c <rtems_message_queue_get_number_pending+0x44><== NOT EXECUTED a0015edc: e59f002c ldr r0, [pc, #44] ; a0015f10 <rtems_message_queue_get_number_pending+0x48><== NOT EXECUTED a0015ee0: e1a01003 mov r1, r3 <== NOT EXECUTED a0015ee4: e1a0200d mov r2, sp <== NOT EXECUTED a0015ee8: eb0013b3 bl a001adbc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a0015eec: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0015ef0: e3550000 cmp r5, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0015ef4: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !count )
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a0015ef8: 1a000003 bne a0015f0c <rtems_message_queue_get_number_pending+0x44><== NOT EXECUTED
case OBJECTS_LOCAL:
*count = the_message_queue->message_queue.number_of_pending_messages;
a0015efc: e590305c ldr r3, [r0, #92] ; 0x5c <== NOT EXECUTED a0015f00: e5843000 str r3, [r4] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0015f04: eb0016d7 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0015f08: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0015f0c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0011078 <rtems_message_queue_ident>:
rtems_status_code rtems_message_queue_ident(
rtems_name name,
uint32_t node,
rtems_id *id
)
{
a0011078: e1a0c001 mov ip, r1 <== NOT EXECUTED
a001107c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
a0011080: e1a0e000 mov lr, r0 <== NOT EXECUTED
a0011084: e1a03002 mov r3, r2 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
a0011088: e1a0100e mov r1, lr <== NOT EXECUTED a001108c: e1a0200c mov r2, ip <== NOT EXECUTED a0011090: e59f000c ldr r0, [pc, #12] ; a00110a4 <rtems_message_queue_ident+0x2c><== NOT EXECUTED a0011094: eb0008c0 bl a001339c <_Objects_Name_to_id_u32> <== NOT EXECUTED
node,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
a0011098: e59f3008 ldr r3, [pc, #8] ; a00110a8 <rtems_message_queue_ident+0x30><== NOT EXECUTED
a001109c: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
a00110a0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a00110ac <rtems_message_queue_receive>:
void *buffer,
size_t *size,
rtems_option option_set,
rtems_interval timeout
)
{
a00110ac: e92d4077 push {r0, r1, r2, r4, r5, r6, lr} <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
bool wait;
if ( !buffer )
a00110b0: e2515000 subs r5, r1, #0 <== NOT EXECUTED
void *buffer,
size_t *size,
rtems_option option_set,
rtems_interval timeout
)
{
a00110b4: e1a0c000 mov ip, r0 <== NOT EXECUTED a00110b8: e1a04002 mov r4, r2 <== NOT EXECUTED a00110bc: e1a06003 mov r6, r3 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
bool wait;
if ( !buffer )
a00110c0: 0a00001a beq a0011130 <rtems_message_queue_receive+0x84> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !size )
a00110c4: e3520000 cmp r2, #0 <== NOT EXECUTED a00110c8: 0a000018 beq a0011130 <rtems_message_queue_receive+0x84> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Message_queue_Control *)
_Objects_Get( &_Message_queue_Information, id, location );
a00110cc: e28d2008 add r2, sp, #8 <== NOT EXECUTED a00110d0: e59f0060 ldr r0, [pc, #96] ; a0011138 <rtems_message_queue_receive+0x8c><== NOT EXECUTED a00110d4: e1a0100c mov r1, ip <== NOT EXECUTED a00110d8: eb000853 bl a001322c <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a00110dc: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED a00110e0: e1a03000 mov r3, r0 <== NOT EXECUTED a00110e4: e3520000 cmp r2, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00110e8: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !size )
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a00110ec: 1a000010 bne a0011134 <rtems_message_queue_receive+0x88> <== NOT EXECUTED
if ( _Options_Is_no_wait( option_set ) )
wait = false;
else
wait = true;
_CORE_message_queue_Seize(
a00110f0: e59d201c ldr r2, [sp, #28] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (
rtems_option option_set
)
{
return (option_set & RTEMS_NO_WAIT) ? true : false;
a00110f4: e2066001 and r6, r6, #1 <== NOT EXECUTED a00110f8: e2266001 eor r6, r6, #1 <== NOT EXECUTED a00110fc: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a0011100: e58d6000 str r6, [sp] <== NOT EXECUTED a0011104: e2830014 add r0, r3, #20 <== NOT EXECUTED a0011108: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a001110c: e1a02005 mov r2, r5 <== NOT EXECUTED a0011110: e1a03004 mov r3, r4 <== NOT EXECUTED a0011114: eb000455 bl a0012270 <_CORE_message_queue_Seize> <== NOT EXECUTED
buffer,
size,
wait,
timeout
);
_Thread_Enable_dispatch();
a0011118: eb000b94 bl a0013f70 <_Thread_Enable_dispatch> <== NOT EXECUTED
return _Message_queue_Translate_core_message_queue_return_code(
_Thread_Executing->Wait.return_code
a001111c: e59f3018 ldr r3, [pc, #24] ; a001113c <rtems_message_queue_receive+0x90><== NOT EXECUTED a0011120: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
size,
wait,
timeout
);
_Thread_Enable_dispatch();
return _Message_queue_Translate_core_message_queue_return_code(
a0011124: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a0011128: eb000023 bl a00111bc <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED a001112c: ea000000 b a0011134 <rtems_message_queue_receive+0x88> <== NOT EXECUTED
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
if ( !size )
return RTEMS_INVALID_ADDRESS;
a0011130: e3a00009 mov r0, #9 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0011134: e8bd807e pop {r1, r2, r3, r4, r5, r6, pc} <== NOT EXECUTED
a0011140 <rtems_message_queue_send>:
rtems_status_code rtems_message_queue_send(
rtems_id id,
const void *buffer,
size_t size
)
{
a0011140: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
a0011144: e2516000 subs r6, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_message_queue_send(
rtems_id id,
const void *buffer,
size_t size
)
{
a0011148: e1a04000 mov r4, r0 <== NOT EXECUTED a001114c: e24dd014 sub sp, sp, #20 <== NOT EXECUTED a0011150: e1a05002 mov r5, r2 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
a0011154: 03a00009 moveq r0, #9 <== NOT EXECUTED
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
a0011158: 0a000014 beq a00111b0 <rtems_message_queue_send+0x70> <== NOT EXECUTED a001115c: e59f0054 ldr r0, [pc, #84] ; a00111b8 <rtems_message_queue_send+0x78><== NOT EXECUTED a0011160: e1a01004 mov r1, r4 <== NOT EXECUTED a0011164: e28d2010 add r2, sp, #16 <== NOT EXECUTED a0011168: eb00082f bl a001322c <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a001116c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0011170: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0011174: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a0011178: 1a00000c bne a00111b0 <rtems_message_queue_send+0x70> <== NOT EXECUTED
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
bool wait,
Watchdog_Interval timeout
)
{
return _CORE_message_queue_Submit(
a001117c: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED
a0011180: e58d3000 str r3, [sp] <== NOT EXECUTED
a0011184: e98d000c stmib sp, {r2, r3} <== NOT EXECUTED
a0011188: e58d300c str r3, [sp, #12] <== NOT EXECUTED
a001118c: e1a01006 mov r1, r6 <== NOT EXECUTED
a0011190: e1a03004 mov r3, r4 <== NOT EXECUTED
a0011194: e1a02005 mov r2, r5 <== NOT EXECUTED
a0011198: e2800014 add r0, r0, #20 <== NOT EXECUTED
a001119c: eb00047f bl a00123a0 <_CORE_message_queue_Submit> <== NOT EXECUTED
a00111a0: e1a04000 mov r4, r0 <== NOT EXECUTED
MESSAGE_QUEUE_MP_HANDLER,
false, /* sender does not block */
0 /* no timeout */
);
_Thread_Enable_dispatch();
a00111a4: eb000b71 bl a0013f70 <_Thread_Enable_dispatch> <== NOT EXECUTED
/*
* Since this API does not allow for blocking sends, we can directly
* return the returned status.
*/
return _Message_queue_Translate_core_message_queue_return_code(status);
a00111a8: e1a00004 mov r0, r4 <== NOT EXECUTED a00111ac: eb000002 bl a00111bc <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a00111b0: e28dd014 add sp, sp, #20 <== NOT EXECUTED
a00111b4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0016068 <rtems_message_queue_urgent>:
rtems_status_code rtems_message_queue_urgent(
rtems_id id,
const void *buffer,
size_t size
)
{
a0016068: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
a001606c: e2516000 subs r6, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_message_queue_urgent(
rtems_id id,
const void *buffer,
size_t size
)
{
a0016070: e1a04000 mov r4, r0 <== NOT EXECUTED a0016074: e24dd014 sub sp, sp, #20 <== NOT EXECUTED a0016078: e1a05002 mov r5, r2 <== NOT EXECUTED
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
a001607c: 03a00009 moveq r0, #9 <== NOT EXECUTED
{
register Message_queue_Control *the_message_queue;
Objects_Locations location;
CORE_message_queue_Status status;
if ( !buffer )
a0016080: 0a000014 beq a00160d8 <rtems_message_queue_urgent+0x70> <== NOT EXECUTED a0016084: e59f0054 ldr r0, [pc, #84] ; a00160e0 <rtems_message_queue_urgent+0x78><== NOT EXECUTED a0016088: e1a01004 mov r1, r4 <== NOT EXECUTED a001608c: e28d2010 add r2, sp, #16 <== NOT EXECUTED a0016090: eb001349 bl a001adbc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a0016094: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0016098: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a001609c: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
the_message_queue = _Message_queue_Get( id, &location );
switch ( location ) {
a00160a0: 1a00000c bne a00160d8 <rtems_message_queue_urgent+0x70> <== NOT EXECUTED
CORE_message_queue_API_mp_support_callout api_message_queue_mp_support,
bool wait,
Watchdog_Interval timeout
)
{
return _CORE_message_queue_Submit(
a00160a4: e3a02102 mov r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED
a00160a8: e58d3000 str r3, [sp] <== NOT EXECUTED
a00160ac: e98d000c stmib sp, {r2, r3} <== NOT EXECUTED
a00160b0: e58d300c str r3, [sp, #12] <== NOT EXECUTED
a00160b4: e1a01006 mov r1, r6 <== NOT EXECUTED
a00160b8: e1a03004 mov r3, r4 <== NOT EXECUTED
a00160bc: e1a02005 mov r2, r5 <== NOT EXECUTED
a00160c0: e2800014 add r0, r0, #20 <== NOT EXECUTED
a00160c4: eb000cf7 bl a00194a8 <_CORE_message_queue_Submit> <== NOT EXECUTED
a00160c8: e1a04000 mov r4, r0 <== NOT EXECUTED
id,
MESSAGE_QUEUE_MP_HANDLER,
false, /* sender does not block */
0 /* no timeout */
);
_Thread_Enable_dispatch();
a00160cc: eb001665 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
/*
* Since this API does not allow for blocking sends, we can directly
* return the returned status.
*/
return _Message_queue_Translate_core_message_queue_return_code(status);
a00160d0: e1a00004 mov r0, r4 <== NOT EXECUTED a00160d4: ebffffdf bl a0016058 <_Message_queue_Translate_core_message_queue_return_code><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a00160d8: e28dd014 add sp, sp, #20 <== NOT EXECUTED
a00160dc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a00101d0 <rtems_mkdir>:
return (retval);
}
int
rtems_mkdir(const char *path, mode_t mode)
{
a00101d0: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
a00101d4: e24dd048 sub sp, sp, #72 ; 0x48 <== NOT EXECUTED
a00101d8: e1a0b001 mov fp, r1 <== NOT EXECUTED
int success = 0; char *dup_path = strdup(path);
a00101dc: eb000e2b bl a0013a90 <strdup> <== NOT EXECUTED
if (dup_path != NULL) {
a00101e0: e2505000 subs r5, r0, #0 <== NOT EXECUTED
success = build(dup_path, mode);
free(dup_path);
}
return success != 0 ? 0 : -1;
a00101e4: 03e00000 mvneq r0, #0 <== NOT EXECUTED
rtems_mkdir(const char *path, mode_t mode)
{
int success = 0;
char *dup_path = strdup(path);
if (dup_path != NULL) {
a00101e8: 0a000056 beq a0010348 <rtems_mkdir+0x178> <== NOT EXECUTED
char *p;
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
a00101ec: e5d53000 ldrb r3, [r5] <== NOT EXECUTED a00101f0: e3a06000 mov r6, #0 <== NOT EXECUTED
++p;
for (first = 1, last = 0; !last ; ++p) {
if (p[0] == '\0')
last = 1;
else if (p[0] != '/')
a00101f4: e1a09006 mov r9, r6 <== NOT EXECUTED
char *p;
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
a00101f8: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED
++p;
a00101fc: 02857001 addeq r7, r5, #1 <== NOT EXECUTED
char *p;
p = path;
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
a0010200: 11a07005 movne r7, r5 <== NOT EXECUTED a0010204: e3a03001 mov r3, #1 <== NOT EXECUTED
retval = 0;
break;
}
}
if (!last)
*p = '/';
a0010208: e3a0a02f mov sl, #47 ; 0x2f <== NOT EXECUTED
}
if (last)
(void)umask(oumask);
if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
if (errno == EEXIST || errno == EISDIR) {
if (stat(path, &sb) < 0) {
a001020c: e1a0800d mov r8, sp <== NOT EXECUTED
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
++p;
for (first = 1, last = 0; !last ; ++p) {
if (p[0] == '\0')
a0010210: e4d72001 ldrb r2, [r7], #1 <== NOT EXECUTED a0010214: e3520000 cmp r2, #0 <== NOT EXECUTED
last = 1;
a0010218: 03a02001 moveq r2, #1 <== NOT EXECUTED
oumask = 0;
retval = 1;
if (p[0] == '/') /* Skip leading '/'. */
++p;
for (first = 1, last = 0; !last ; ++p) {
if (p[0] == '\0')
a001021c: 0a000002 beq a001022c <rtems_mkdir+0x5c> <== NOT EXECUTED
last = 1;
else if (p[0] != '/')
a0010220: e352002f cmp r2, #47 ; 0x2f <== NOT EXECUTED a0010224: 03a02000 moveq r2, #0 <== NOT EXECUTED a0010228: 1afffff8 bne a0010210 <rtems_mkdir+0x40> <== NOT EXECUTED
continue;
*p = '\0';
if (!last && p[1] == '\0')
a001022c: e3520000 cmp r2, #0 <== NOT EXECUTED
for (first = 1, last = 0; !last ; ++p) {
if (p[0] == '\0')
last = 1;
else if (p[0] != '/')
continue;
*p = '\0';
a0010230: e5479001 strb r9, [r7, #-1] <== NOT EXECUTED
if (!last && p[1] == '\0')
a0010234: 13a04001 movne r4, #1 <== NOT EXECUTED a0010238: 1a000002 bne a0010248 <rtems_mkdir+0x78> <== NOT EXECUTED a001023c: e5d74000 ldrb r4, [r7] <== NOT EXECUTED a0010240: e2744001 rsbs r4, r4, #1 <== NOT EXECUTED a0010244: 33a04000 movcc r4, #0 <== NOT EXECUTED
last = 1;
if (first) {
a0010248: e3530000 cmp r3, #0 <== NOT EXECUTED a001024c: 0a000004 beq a0010264 <rtems_mkdir+0x94> <== NOT EXECUTED
* mkdir [-m mode] dir
*
* We change the user's umask and then restore it,
* instead of doing chmod's.
*/
oumask = umask(0);
a0010250: e3a00000 mov r0, #0 <== NOT EXECUTED a0010254: eb000069 bl a0010400 <umask> <== NOT EXECUTED a0010258: e1a06000 mov r6, r0 <== NOT EXECUTED
numask = oumask & ~(S_IWUSR | S_IXUSR);
(void)umask(numask);
a001025c: e3c000c0 bic r0, r0, #192 ; 0xc0 <== NOT EXECUTED a0010260: eb000066 bl a0010400 <umask> <== NOT EXECUTED
first = 0;
}
if (last)
a0010264: e3540000 cmp r4, #0 <== NOT EXECUTED
(void)umask(oumask);
if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
a0010268: 059f10f0 ldreq r1, [pc, #240] ; a0010360 <rtems_mkdir+0x190><== NOT EXECUTED
oumask = umask(0);
numask = oumask & ~(S_IWUSR | S_IXUSR);
(void)umask(numask);
first = 0;
}
if (last)
a001026c: 0a000002 beq a001027c <rtems_mkdir+0xac> <== NOT EXECUTED
(void)umask(oumask);
a0010270: e1a00006 mov r0, r6 <== NOT EXECUTED a0010274: eb000061 bl a0010400 <umask> <== NOT EXECUTED
if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
a0010278: e1a0100b mov r1, fp <== NOT EXECUTED a001027c: e1a00005 mov r0, r5 <== NOT EXECUTED a0010280: ebffddd6 bl a00079e0 <mkdir> <== NOT EXECUTED a0010284: e3500000 cmp r0, #0 <== NOT EXECUTED a0010288: aa00001f bge a001030c <rtems_mkdir+0x13c> <== NOT EXECUTED
if (errno == EEXIST || errno == EISDIR) {
a001028c: eb000a1d bl a0012b08 <__errno> <== NOT EXECUTED a0010290: e5903000 ldr r3, [r0] <== NOT EXECUTED a0010294: e3530011 cmp r3, #17 <== NOT EXECUTED a0010298: 0a000003 beq a00102ac <rtems_mkdir+0xdc> <== NOT EXECUTED a001029c: eb000a19 bl a0012b08 <__errno> <== NOT EXECUTED a00102a0: e5903000 ldr r3, [r0] <== NOT EXECUTED a00102a4: e3530015 cmp r3, #21 <== NOT EXECUTED a00102a8: 1a00001c bne a0010320 <rtems_mkdir+0x150> <== NOT EXECUTED
if (stat(path, &sb) < 0) {
a00102ac: e1a00005 mov r0, r5 <== NOT EXECUTED a00102b0: e1a0100d mov r1, sp <== NOT EXECUTED a00102b4: eb00002a bl a0010364 <stat> <== NOT EXECUTED a00102b8: e3500000 cmp r0, #0 <== NOT EXECUTED a00102bc: ba000017 blt a0010320 <rtems_mkdir+0x150> <== NOT EXECUTED
retval = 0;
break;
} else if (!S_ISDIR(sb.st_mode)) {
a00102c0: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a00102c4: e2033a0f and r3, r3, #61440 ; 0xf000 <== NOT EXECUTED a00102c8: e3530901 cmp r3, #16384 ; 0x4000 <== NOT EXECUTED a00102cc: 0a00000b beq a0010300 <rtems_mkdir+0x130> <== NOT EXECUTED
if (last)
a00102d0: e3540000 cmp r4, #0 <== NOT EXECUTED a00102d4: 0a000004 beq a00102ec <rtems_mkdir+0x11c> <== NOT EXECUTED
errno = EEXIST;
a00102d8: eb000a0a bl a0012b08 <__errno> <== NOT EXECUTED a00102dc: e3a03011 mov r3, #17 <== NOT EXECUTED a00102e0: e5803000 str r3, [r0] <== NOT EXECUTED
else
errno = ENOTDIR;
retval = 0;
a00102e4: e3a07000 mov r7, #0 <== NOT EXECUTED a00102e8: ea000011 b a0010334 <rtems_mkdir+0x164> <== NOT EXECUTED
break;
} else if (!S_ISDIR(sb.st_mode)) {
if (last)
errno = EEXIST;
else
errno = ENOTDIR;
a00102ec: eb000a05 bl a0012b08 <__errno> <== NOT EXECUTED a00102f0: e3a03014 mov r3, #20 <== NOT EXECUTED a00102f4: e5803000 str r3, [r0] <== NOT EXECUTED
retval = 0;
a00102f8: e1a07004 mov r7, r4 <== NOT EXECUTED a00102fc: ea00000a b a001032c <rtems_mkdir+0x15c> <== NOT EXECUTED
break;
}
if (last)
a0010300: e3540000 cmp r4, #0 <== NOT EXECUTED a0010304: 1a000011 bne a0010350 <rtems_mkdir+0x180> <== NOT EXECUTED a0010308: ea000001 b a0010314 <rtems_mkdir+0x144> <== NOT EXECUTED
} else {
retval = 0;
break;
}
}
if (!last)
a001030c: e3540000 cmp r4, #0 <== NOT EXECUTED a0010310: 1a000010 bne a0010358 <rtems_mkdir+0x188> <== NOT EXECUTED
*p = '/';
a0010314: e547a001 strb sl, [r7, #-1] <== NOT EXECUTED a0010318: e3a03000 mov r3, #0 <== NOT EXECUTED a001031c: eaffffbb b a0010210 <rtems_mkdir+0x40> <== NOT EXECUTED
} if (!first && !last)
a0010320: e3540000 cmp r4, #0 <== NOT EXECUTED
if (last)
(void)umask(oumask);
if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
if (errno == EEXIST || errno == EISDIR) {
if (stat(path, &sb) < 0) {
retval = 0;
a0010324: e3a07000 mov r7, #0 <== NOT EXECUTED
}
}
if (!last)
*p = '/';
}
if (!first && !last)
a0010328: 1a000001 bne a0010334 <rtems_mkdir+0x164> <== NOT EXECUTED
(void)umask(oumask);
a001032c: e1a00006 mov r0, r6 <== NOT EXECUTED a0010330: eb000032 bl a0010400 <umask> <== NOT EXECUTED
int success = 0;
char *dup_path = strdup(path);
if (dup_path != NULL) {
success = build(dup_path, mode);
free(dup_path);
a0010334: e1a00005 mov r0, r5 <== NOT EXECUTED a0010338: ebffdbe3 bl a00072cc <free> <== NOT EXECUTED
}
return success != 0 ? 0 : -1;
a001033c: e3570000 cmp r7, #0 <== NOT EXECUTED a0010340: 13a00000 movne r0, #0 <== NOT EXECUTED a0010344: 03e00000 mvneq r0, #0 <== NOT EXECUTED
}
a0010348: e28dd048 add sp, sp, #72 ; 0x48 <== NOT EXECUTED
a001034c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
errno = ENOTDIR;
retval = 0;
break;
}
if (last)
retval = 2;
a0010350: e3a07002 mov r7, #2 <== NOT EXECUTED a0010354: eafffff6 b a0010334 <rtems_mkdir+0x164> <== NOT EXECUTED
} else {
retval = 0;
break;
}
}
if (!last)
a0010358: e3a07001 mov r7, #1 <== NOT EXECUTED a001035c: eafffff4 b a0010334 <rtems_mkdir+0x164> <== NOT EXECUTED
a00096b8 <rtems_object_api_maximum_class>:
int rtems_object_api_maximum_class(
int api
)
{
return _Objects_API_maximum_class(api);
a00096b8: ea000583 b a000accc <_Objects_API_maximum_class> <== NOT EXECUTED
a00096bc <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 )
a00096bc: e2400001 sub r0, r0, #1 <== NOT EXECUTED
uint32_t api
)
{
if ( _Objects_Is_api_valid( api ) )
return 1;
return -1;
a00096c0: e3500003 cmp r0, #3 <== NOT EXECUTED
}
a00096c4: 33a00001 movcc r0, #1 <== NOT EXECUTED a00096c8: 23e00000 mvncs r0, #0 <== NOT EXECUTED a00096cc: e12fff1e bx lr <== NOT EXECUTED
a00096d0 <rtems_object_get_api_class_name>:
)
{
const rtems_assoc_t *api_assoc;
const rtems_assoc_t *class_assoc;
if ( the_api == OBJECTS_INTERNAL_API )
a00096d0: e3500001 cmp r0, #1 <== NOT EXECUTED
const char *rtems_object_get_api_class_name(
int the_api,
int the_class
)
{
a00096d4: 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 )
a00096d8: 0a000005 beq a00096f4 <rtems_object_get_api_class_name+0x24><== NOT EXECUTED
api_assoc = rtems_object_api_internal_assoc;
else if ( the_api == OBJECTS_CLASSIC_API )
a00096dc: e3500002 cmp r0, #2 <== NOT EXECUTED a00096e0: 0a000005 beq a00096fc <rtems_object_get_api_class_name+0x2c><== NOT EXECUTED
api_assoc = rtems_object_api_classic_assoc;
#ifdef RTEMS_POSIX_API
else if ( the_api == OBJECTS_POSIX_API )
a00096e4: e3500003 cmp r0, #3 <== NOT EXECUTED
api_assoc = rtems_object_api_posix_assoc;
a00096e8: 059f0034 ldreq r0, [pc, #52] ; a0009724 <rtems_object_get_api_class_name+0x54><== NOT EXECUTED
if ( the_api == OBJECTS_INTERNAL_API )
api_assoc = rtems_object_api_internal_assoc;
else if ( the_api == OBJECTS_CLASSIC_API )
api_assoc = rtems_object_api_classic_assoc;
#ifdef RTEMS_POSIX_API
else if ( the_api == OBJECTS_POSIX_API )
a00096ec: 1a000008 bne a0009714 <rtems_object_get_api_class_name+0x44><== NOT EXECUTED a00096f0: ea000002 b a0009700 <rtems_object_get_api_class_name+0x30> <== 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;
a00096f4: e59f002c ldr r0, [pc, #44] ; a0009728 <rtems_object_get_api_class_name+0x58><== NOT EXECUTED a00096f8: ea000000 b a0009700 <rtems_object_get_api_class_name+0x30> <== NOT EXECUTED
else if ( the_api == OBJECTS_CLASSIC_API )
api_assoc = rtems_object_api_classic_assoc;
a00096fc: e59f0028 ldr r0, [pc, #40] ; a000972c <rtems_object_get_api_class_name+0x5c><== 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 );
a0009700: eb00129e bl a000e180 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if ( class_assoc )
a0009704: e3500000 cmp r0, #0 <== NOT EXECUTED
return class_assoc->name;
a0009708: 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 )
a000970c: 149df004 popne {pc} ; (ldrne pc, [sp], #4) <== NOT EXECUTED
a0009710: ea000001 b a000971c <rtems_object_get_api_class_name+0x4c> <== 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";
a0009714: e59f0014 ldr r0, [pc, #20] ; a0009730 <rtems_object_get_api_class_name+0x60><== NOT EXECUTED
a0009718: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
class_assoc = rtems_assoc_ptr_by_local( api_assoc, the_class );
if ( class_assoc )
return class_assoc->name;
return "BAD CLASS";
a000971c: e59f0010 ldr r0, [pc, #16] ; a0009734 <rtems_object_get_api_class_name+0x64><== NOT EXECUTED
}
a0009720: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009738 <rtems_object_get_api_name>:
};
const char *rtems_object_get_api_name(
int api
)
{
a0009738: e1a01000 mov r1, r0 <== NOT EXECUTED
a000973c: 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 );
a0009740: e59f0010 ldr r0, [pc, #16] ; a0009758 <rtems_object_get_api_name+0x20><== NOT EXECUTED a0009744: eb00128d bl a000e180 <rtems_assoc_ptr_by_local> <== NOT EXECUTED
if ( api_assoc )
a0009748: e3500000 cmp r0, #0 <== NOT EXECUTED
return api_assoc->name;
a000974c: 15900000 ldrne r0, [r0] <== NOT EXECUTED
return "BAD CLASS";
a0009750: 059f0004 ldreq r0, [pc, #4] ; a000975c <rtems_object_get_api_name+0x24><== NOT EXECUTED
}
a0009754: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000b228 <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
)
{
a000b228: e92d4010 push {r4, lr} <== NOT EXECUTED
int i;
/*
* Validate parameters and look up information structure.
*/
if ( !info )
a000b22c: e2524000 subs r4, r2, #0 <== NOT EXECUTED a000b230: 0a000019 beq a000b29c <rtems_object_get_class_information+0x74><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
obj_info = _Objects_Get_information( the_api, the_class );
a000b234: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a000b238: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED a000b23c: eb00069f bl a000ccc0 <_Objects_Get_information> <== NOT EXECUTED
if ( !obj_info )
a000b240: e3500000 cmp r0, #0 <== NOT EXECUTED a000b244: 0a000016 beq a000b2a4 <rtems_object_get_class_information+0x7c><== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
a000b248: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED
info->maximum_id = obj_info->maximum_id; info->auto_extend = obj_info->auto_extend; info->maximum = obj_info->maximum;
a000b24c: e1d011b0 ldrh r1, [r0, #16] <== NOT EXECUTED
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
a000b250: e3a02000 mov r2, #0 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
/*
* Return information about this object class to the user.
*/
info->minimum_id = obj_info->minimum_id;
a000b254: e5843000 str r3, [r4] <== NOT EXECUTED
info->maximum_id = obj_info->maximum_id;
a000b258: e590300c ldr r3, [r0, #12] <== NOT EXECUTED a000b25c: e5843004 str r3, [r4, #4] <== NOT EXECUTED
info->auto_extend = obj_info->auto_extend;
a000b260: e5d03012 ldrb r3, [r0, #18] <== NOT EXECUTED
info->maximum = obj_info->maximum;
a000b264: e5841008 str r1, [r4, #8] <== 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;
a000b268: e5c4300c strb r3, [r4, #12] <== NOT EXECUTED
info->maximum = obj_info->maximum;
for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )
a000b26c: e3a03001 mov r3, #1 <== NOT EXECUTED a000b270: ea000004 b a000b288 <rtems_object_get_class_information+0x60><== NOT EXECUTED
if ( !obj_info->local_table[i] )
a000b274: e590c01c ldr ip, [r0, #28] <== NOT EXECUTED a000b278: e79cc103 ldr ip, [ip, r3, 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++ )
a000b27c: e2833001 add r3, r3, #1 <== NOT EXECUTED
if ( !obj_info->local_table[i] )
a000b280: e35c0000 cmp ip, #0 <== NOT EXECUTED
unallocated++;
a000b284: 02822001 addeq r2, r2, #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++ )
a000b288: e1530001 cmp r3, r1 <== NOT EXECUTED a000b28c: 9afffff8 bls a000b274 <rtems_object_get_class_information+0x4c><== NOT EXECUTED
if ( !obj_info->local_table[i] )
unallocated++;
info->unallocated = unallocated;
a000b290: e5842010 str r2, [r4, #16] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000b294: e3a00000 mov r0, #0 <== NOT EXECUTED
a000b298: e8bd8010 pop {r4, pc} <== NOT EXECUTED
/*
* Validate parameters and look up information structure.
*/
if ( !info )
return RTEMS_INVALID_ADDRESS;
a000b29c: e3a00009 mov r0, #9 <== NOT EXECUTED
a000b2a0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
obj_info = _Objects_Get_information( the_api, the_class );
if ( !obj_info )
return RTEMS_INVALID_NUMBER;
a000b2a4: e3a0000a mov r0, #10 <== NOT EXECUTED
unallocated++;
info->unallocated = unallocated;
return RTEMS_SUCCESSFUL;
}
a000b2a8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000a520 <rtems_object_get_classic_name>:
rtems_status_code rtems_object_get_classic_name(
rtems_id id,
rtems_name *name
)
{
a000a520: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
Objects_Name name_u;
if ( !name )
a000a524: e2514000 subs r4, r1, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a000a528: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
Objects_Name_or_id_lookup_errors status;
Objects_Name name_u;
if ( !name )
a000a52c: 0a000005 beq a000a548 <rtems_object_get_classic_name+0x28> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
status = _Objects_Id_to_name( id, &name_u );
a000a530: e1a0100d mov r1, sp <== NOT EXECUTED a000a534: eb0006c8 bl a000c05c <_Objects_Id_to_name> <== NOT EXECUTED
*name = name_u.name_u32;
a000a538: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a53c: e5843000 str r3, [r4] <== NOT EXECUTED
return _Status_Object_name_errors_to_status[ status ];
a000a540: e59f3004 ldr r3, [pc, #4] ; a000a54c <rtems_object_get_classic_name+0x2c><== NOT EXECUTED a000a544: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
}
a000a548: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000a7f4 <rtems_object_get_name>:
Objects_Id id,
size_t length,
char *name
)
{
return _Objects_Get_name_as_string( id, length, name );
a000a7f4: ea000752 b a000c544 <_Objects_Get_name_as_string> <== NOT EXECUTED
a000b2b0 <rtems_object_id_api_maximum>:
#undef rtems_object_id_api_maximum
int rtems_object_id_api_maximum(void)
{
return OBJECTS_APIS_LAST;
}
a000b2b0: e3a00003 mov r0, #3 <== NOT EXECUTED a000b2b4: e12fff1e bx lr <== NOT EXECUTED
a000b2b8 <rtems_object_id_api_minimum>:
#undef rtems_object_id_api_minimum
int rtems_object_id_api_minimum(void)
{
return OBJECTS_INTERNAL_API;
}
a000b2b8: e3a00001 mov r0, #1 <== NOT EXECUTED a000b2bc: e12fff1e bx lr <== NOT EXECUTED
a000b2c0 <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);
a000b2c0: e1a00c20 lsr r0, r0, #24 <== NOT EXECUTED
int rtems_object_id_get_api(
rtems_id id
)
{
return _Objects_Get_API( id );
}
a000b2c4: e2000007 and r0, r0, #7 <== NOT EXECUTED a000b2c8: e12fff1e bx lr <== NOT EXECUTED
a000b2cc <rtems_object_id_get_class>:
int rtems_object_id_get_class(
rtems_id id
)
{
return _Objects_Get_class( id );
}
a000b2cc: e1a00da0 lsr r0, r0, #27 <== NOT EXECUTED a000b2d0: e12fff1e bx lr <== NOT EXECUTED
a000b2d4 <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 );
a000b2d4: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED
}
a000b2d8: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED a000b2dc: e12fff1e bx lr <== NOT EXECUTED
a000b2e0 <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;
a000b2e0: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED
int rtems_object_id_get_node(
rtems_id id
)
{
return _Objects_Get_node( id );
}
a000b2e4: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED a000b2e8: e12fff1e bx lr <== NOT EXECUTED
a0009764 <rtems_object_set_name>:
*/
rtems_status_code rtems_object_set_name(
rtems_id id,
const char *name
)
{
a0009764: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
Objects_Information *information;
Objects_Locations location;
Objects_Control *the_object;
Objects_Id tmpId;
if ( !name )
a0009768: e2515000 subs r5, r1, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a000976c: 03a00009 moveq r0, #9 <== NOT EXECUTED
Objects_Information *information;
Objects_Locations location;
Objects_Control *the_object;
Objects_Id tmpId;
if ( !name )
a0009770: 0a000016 beq a00097d0 <rtems_object_set_name+0x6c> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
a0009774: e3500000 cmp r0, #0 <== NOT EXECUTED a0009778: 059f3054 ldreq r3, [pc, #84] ; a00097d4 <rtems_object_set_name+0x70><== NOT EXECUTED a000977c: 11a04000 movne r4, r0 <== NOT EXECUTED a0009780: 05933004 ldreq r3, [r3, #4] <== NOT EXECUTED a0009784: 05934008 ldreq r4, [r3, #8] <== NOT EXECUTED
information = _Objects_Get_information_id( tmpId );
a0009788: e1a00004 mov r0, r4 <== NOT EXECUTED a000978c: eb000618 bl a000aff4 <_Objects_Get_information_id> <== NOT EXECUTED
if ( !information )
a0009790: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0009794: 0a00000c beq a00097cc <rtems_object_set_name+0x68> <== NOT EXECUTED
return RTEMS_INVALID_ID;
the_object = _Objects_Get( information, tmpId, &location );
a0009798: e1a01004 mov r1, r4 <== NOT EXECUTED a000979c: e1a0200d mov r2, sp <== NOT EXECUTED a00097a0: eb00068f bl a000b1e4 <_Objects_Get> <== NOT EXECUTED
switch ( location ) {
a00097a4: e59d4000 ldr r4, [sp] <== NOT EXECUTED
information = _Objects_Get_information_id( tmpId );
if ( !information )
return RTEMS_INVALID_ID;
the_object = _Objects_Get( information, tmpId, &location );
a00097a8: e1a01000 mov r1, r0 <== NOT EXECUTED
switch ( location ) {
a00097ac: e3540000 cmp r4, #0 <== NOT EXECUTED a00097b0: 1a000005 bne a00097cc <rtems_object_set_name+0x68> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Set_name( information, the_object, name );
a00097b4: e1a02005 mov r2, r5 <== NOT EXECUTED a00097b8: e1a00006 mov r0, r6 <== NOT EXECUTED a00097bc: eb0006e4 bl a000b354 <_Objects_Set_name> <== NOT EXECUTED
_Thread_Enable_dispatch();
a00097c0: eb0009bd bl a000bebc <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a00097c4: e1a00004 mov r0, r4 <== NOT EXECUTED a00097c8: ea000000 b a00097d0 <rtems_object_set_name+0x6c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00097cc: e3a00004 mov r0, #4 <== NOT EXECUTED
}
a00097d0: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a000a8d8 <rtems_panic>:
void rtems_panic(
const char *printf_format,
...
)
{
a000a8d8: e92d000f push {r0, r1, r2, r3} <== NOT EXECUTED
a000a8dc: e92d4001 push {r0, lr} <== NOT EXECUTED
va_list arglist;
va_start(arglist, printf_format);
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
a000a8e0: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED
...
)
{
va_list arglist;
va_start(arglist, printf_format);
a000a8e4: e28d200c add r2, sp, #12 <== NOT EXECUTED
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
a000a8e8: e3a00202 mov r0, #536870912 ; 0x20000000 <== NOT EXECUTED
...
)
{
va_list arglist;
va_start(arglist, printf_format);
a000a8ec: e58d2000 str r2, [sp] <== NOT EXECUTED
(void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);
a000a8f0: ebffff84 bl a000a708 <rtems_verror> <== NOT EXECUTED
va_end(arglist);
rtems_error(0, "fatal error, exiting");
a000a8f4: e59f1010 ldr r1, [pc, #16] ; a000a90c <rtems_panic+0x34> <== NOT EXECUTED a000a8f8: e3a00000 mov r0, #0 <== NOT EXECUTED a000a8fc: ebffffdb bl a000a870 <rtems_error> <== NOT EXECUTED
_exit(errno);
a000a900: eb002e45 bl a001621c <__errno> <== NOT EXECUTED a000a904: e5900000 ldr r0, [r0] <== NOT EXECUTED a000a908: eb000294 bl a000b360 <_exit> <== NOT EXECUTED
a00160e4 <rtems_partition_create>:
uint32_t length,
uint32_t buffer_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
a00160e4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
a00160e8: e2508000 subs r8, r0, #0 <== NOT EXECUTED
uint32_t length,
uint32_t buffer_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
a00160ec: e1a05001 mov r5, r1 <== NOT EXECUTED a00160f0: e1a09002 mov r9, r2 <== NOT EXECUTED a00160f4: e1a0a003 mov sl, r3 <== NOT EXECUTED
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
a00160f8: 0a000032 beq a00161c8 <rtems_partition_create+0xe4> <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !starting_address )
a00160fc: e3510000 cmp r1, #0 <== NOT EXECUTED a0016100: 0a000032 beq a00161d0 <rtems_partition_create+0xec> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !id )
a0016104: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED a0016108: e3520000 cmp r2, #0 <== NOT EXECUTED a001610c: 0a00002f beq a00161d0 <rtems_partition_create+0xec> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( length == 0 || buffer_size == 0 || length < buffer_size ||
a0016110: e3590000 cmp r9, #0 <== NOT EXECUTED a0016114: 13530000 cmpne r3, #0 <== NOT EXECUTED a0016118: 0a00002e beq a00161d8 <rtems_partition_create+0xf4> <== NOT EXECUTED a001611c: e1590003 cmp r9, r3 <== NOT EXECUTED a0016120: 3a00002c bcc a00161d8 <rtems_partition_create+0xf4> <== NOT EXECUTED a0016124: e3130007 tst r3, #7 <== NOT EXECUTED a0016128: 1a00002a bne a00161d8 <rtems_partition_create+0xf4> <== NOT EXECUTED
!_Partition_Is_buffer_size_aligned( buffer_size ) )
return RTEMS_INVALID_SIZE;
if ( !_Addresses_Is_aligned( starting_address ) )
a001612c: e2116007 ands r6, r1, #7 <== NOT EXECUTED a0016130: 1a00002a bne a00161e0 <rtems_partition_create+0xfc> <== NOT EXECUTED a0016134: e59f30ac ldr r3, [pc, #172] ; a00161e8 <rtems_partition_create+0x104><== NOT EXECUTED a0016138: e5932000 ldr r2, [r3] <== NOT EXECUTED a001613c: e2822001 add r2, r2, #1 <== NOT EXECUTED a0016140: e5832000 str r2, [r3] <== NOT EXECUTED
* 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 );
a0016144: e59f70a0 ldr r7, [pc, #160] ; a00161ec <rtems_partition_create+0x108><== NOT EXECUTED a0016148: e1a00007 mov r0, r7 <== NOT EXECUTED a001614c: eb0011eb bl a001a900 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* prevents deletion */
the_partition = _Partition_Allocate();
if ( !the_partition ) {
a0016150: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0016154: 1a000002 bne a0016164 <rtems_partition_create+0x80> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0016158: eb001642 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
a001615c: e3a00005 mov r0, #5 <== NOT EXECUTED
a0016160: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
#endif
the_partition->starting_address = starting_address;
the_partition->length = length;
the_partition->buffer_size = buffer_size;
the_partition->attribute_set = attribute_set;
a0016164: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED
the_partition->number_of_used_blocks = 0;
_Chain_Initialize( &the_partition->Memory, starting_address,
a0016168: e1a0100a mov r1, sl <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
a001616c: e5845010 str r5, [r4, #16] <== NOT EXECUTED
the_partition->length = length; the_partition->buffer_size = buffer_size; the_partition->attribute_set = attribute_set;
a0016170: e584301c str r3, [r4, #28] <== NOT EXECUTED
return RTEMS_TOO_MANY;
}
#endif
the_partition->starting_address = starting_address;
the_partition->length = length;
a0016174: e5849014 str r9, [r4, #20] <== NOT EXECUTED
the_partition->buffer_size = buffer_size;
a0016178: e584a018 str sl, [r4, #24] <== NOT EXECUTED
the_partition->attribute_set = attribute_set; the_partition->number_of_used_blocks = 0;
a001617c: e5846020 str r6, [r4, #32] <== NOT EXECUTED
_Chain_Initialize( &the_partition->Memory, starting_address,
a0016180: e1a00009 mov r0, r9 <== NOT EXECUTED a0016184: eb0061c2 bl a002e894 <__aeabi_uidiv> <== NOT EXECUTED a0016188: e284b024 add fp, r4, #36 ; 0x24 <== NOT EXECUTED a001618c: e1a02000 mov r2, r0 <== NOT EXECUTED a0016190: e1a01005 mov r1, r5 <== NOT EXECUTED a0016194: e1a0000b mov r0, fp <== NOT EXECUTED a0016198: e1a0300a mov r3, sl <== NOT EXECUTED a001619c: eb000bee bl a001915c <_Chain_Initialize> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a00161a0: e597201c ldr r2, [r7, #28] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
a00161a4: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED a00161a8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a00161ac: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED
&_Partition_Information,
&the_partition->Object,
(Objects_Name) name
);
*id = the_partition->Object.id;
a00161b0: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
a00161b4: e584800c str r8, [r4, #12] <== NOT EXECUTED a00161b8: e5823000 str r3, [r2] <== NOT EXECUTED
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
a00161bc: eb001629 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a00161c0: e1a00006 mov r0, r6 <== NOT EXECUTED
a00161c4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
)
{
register Partition_Control *the_partition;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
a00161c8: e3a00003 mov r0, #3 <== NOT EXECUTED
a00161cc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
if ( !starting_address )
return RTEMS_INVALID_ADDRESS;
if ( !id )
return RTEMS_INVALID_ADDRESS;
a00161d0: e3a00009 mov r0, #9 <== NOT EXECUTED
a00161d4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
if ( length == 0 || buffer_size == 0 || length < buffer_size ||
!_Partition_Is_buffer_size_aligned( buffer_size ) )
return RTEMS_INVALID_SIZE;
a00161d8: e3a00008 mov r0, #8 <== NOT EXECUTED
a00161dc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
if ( !_Addresses_Is_aligned( starting_address ) )
return RTEMS_INVALID_ADDRESS;
a00161e0: e3a00009 mov r0, #9 <== NOT EXECUTED
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
a00161e4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a00161f0 <rtems_partition_delete>:
*/
rtems_status_code rtems_partition_delete(
rtems_id id
)
{
a00161f0: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a00161f4: e1a01000 mov r1, r0 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
_Objects_Get( &_Partition_Information, id, location );
a00161f8: e1a0200d mov r2, sp <== NOT EXECUTED a00161fc: e59f0050 ldr r0, [pc, #80] ; a0016254 <rtems_partition_delete+0x64><== NOT EXECUTED a0016200: eb0012ed bl a001adbc <_Objects_Get> <== NOT EXECUTED
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
a0016204: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0016208: e1a04000 mov r4, r0 <== NOT EXECUTED a001620c: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0016210: 13a00004 movne r0, #4 <== NOT EXECUTED
{
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
a0016214: 1a00000d bne a0016250 <rtems_partition_delete+0x60> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_partition->number_of_used_blocks == 0 ) {
a0016218: e5945020 ldr r5, [r4, #32] <== NOT EXECUTED a001621c: e3550000 cmp r5, #0 <== NOT EXECUTED a0016220: 1a000008 bne a0016248 <rtems_partition_delete+0x58> <== NOT EXECUTED
_Objects_Close( &_Partition_Information, &the_partition->Object );
a0016224: e59f0028 ldr r0, [pc, #40] ; a0016254 <rtems_partition_delete+0x64><== NOT EXECUTED a0016228: e1a01004 mov r1, r4 <== NOT EXECUTED a001622c: eb0011d5 bl a001a988 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Partition_Free (
Partition_Control *the_partition
)
{
_Objects_Free( &_Partition_Information, &the_partition->Object );
a0016230: e59f001c ldr r0, [pc, #28] ; a0016254 <rtems_partition_delete+0x64><== NOT EXECUTED a0016234: e1a01004 mov r1, r4 <== NOT EXECUTED a0016238: eb001277 bl a001ac1c <_Objects_Free> <== NOT EXECUTED
0 /* Not used */
);
}
#endif
_Thread_Enable_dispatch();
a001623c: eb001609 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0016240: e1a00005 mov r0, r5 <== NOT EXECUTED a0016244: ea000001 b a0016250 <rtems_partition_delete+0x60> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
a0016248: eb001606 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
a001624c: e3a0000c mov r0, #12 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0016250: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0016258 <rtems_partition_get_buffer>:
rtems_status_code rtems_partition_get_buffer(
rtems_id id,
void **buffer
)
{
a0016258: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
register Partition_Control *the_partition;
Objects_Locations location;
void *the_buffer;
if ( !buffer )
a001625c: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_partition_get_buffer(
rtems_id id,
void **buffer
)
{
a0016260: e1a03000 mov r3, r0 <== NOT EXECUTED
register Partition_Control *the_partition;
Objects_Locations location;
void *the_buffer;
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
a0016264: 03a00009 moveq r0, #9 <== NOT EXECUTED
{
register Partition_Control *the_partition;
Objects_Locations location;
void *the_buffer;
if ( !buffer )
a0016268: 0a000015 beq a00162c4 <rtems_partition_get_buffer+0x6c> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
_Objects_Get( &_Partition_Information, id, location );
a001626c: e59f0054 ldr r0, [pc, #84] ; a00162c8 <rtems_partition_get_buffer+0x70><== NOT EXECUTED a0016270: e1a01003 mov r1, r3 <== NOT EXECUTED a0016274: e1a0200d mov r2, sp <== NOT EXECUTED a0016278: eb0012cf bl a001adbc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
a001627c: e59d6000 ldr r6, [sp] <== NOT EXECUTED a0016280: e1a05000 mov r5, r0 <== NOT EXECUTED a0016284: e3560000 cmp r6, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0016288: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !buffer )
return RTEMS_INVALID_ADDRESS;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
a001628c: 1a00000c bne a00162c4 <rtems_partition_get_buffer+0x6c> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void *_Partition_Allocate_buffer (
Partition_Control *the_partition
)
{
return _Chain_Get( &the_partition->Memory );
a0016290: e2850024 add r0, r5, #36 ; 0x24 <== NOT EXECUTED a0016294: eb000ba3 bl a0019128 <_Chain_Get> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_buffer = _Partition_Allocate_buffer( the_partition );
if ( the_buffer ) {
a0016298: e2507000 subs r7, r0, #0 <== NOT EXECUTED a001629c: 0a000006 beq a00162bc <rtems_partition_get_buffer+0x64> <== NOT EXECUTED
the_partition->number_of_used_blocks += 1;
a00162a0: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED a00162a4: e2833001 add r3, r3, #1 <== NOT EXECUTED a00162a8: e5853020 str r3, [r5, #32] <== NOT EXECUTED
_Thread_Enable_dispatch();
a00162ac: eb0015ed bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
*buffer = the_buffer;
a00162b0: e5847000 str r7, [r4] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a00162b4: e1a00006 mov r0, r6 <== NOT EXECUTED a00162b8: ea000001 b a00162c4 <rtems_partition_get_buffer+0x6c> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
a00162bc: eb0015e9 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_UNSATISFIED;
a00162c0: e3a0000d mov r0, #13 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a00162c4: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a00162cc <rtems_partition_ident>:
rtems_status_code rtems_partition_ident(
rtems_name name,
uint32_t node,
rtems_id *id
)
{
a00162cc: e1a0c001 mov ip, r1 <== NOT EXECUTED
a00162d0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
a00162d4: e1a0e000 mov lr, r0 <== NOT EXECUTED
a00162d8: e1a03002 mov r3, r2 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32( &_Partition_Information, name, node, id );
a00162dc: e1a0100e mov r1, lr <== NOT EXECUTED a00162e0: e1a0200c mov r2, ip <== NOT EXECUTED a00162e4: e59f000c ldr r0, [pc, #12] ; a00162f8 <rtems_partition_ident+0x2c><== NOT EXECUTED a00162e8: eb00130f bl a001af2c <_Objects_Name_to_id_u32> <== NOT EXECUTED
return _Status_Object_name_errors_to_status[ status ];
}
a00162ec: e59f3008 ldr r3, [pc, #8] ; a00162fc <rtems_partition_ident+0x30><== NOT EXECUTED
a00162f0: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
a00162f4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0016300 <rtems_partition_return_buffer>:
rtems_status_code rtems_partition_return_buffer(
rtems_id id,
void *buffer
)
{
a0016300: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
a0016304: e1a03000 mov r3, r0 <== NOT EXECUTED
a0016308: e1a04001 mov r4, r1 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Partition_Control *)
_Objects_Get( &_Partition_Information, id, location );
a001630c: e59f0088 ldr r0, [pc, #136] ; a001639c <rtems_partition_return_buffer+0x9c><== NOT EXECUTED a0016310: e1a01003 mov r1, r3 <== NOT EXECUTED a0016314: e1a0200d mov r2, sp <== NOT EXECUTED a0016318: eb0012a7 bl a001adbc <_Objects_Get> <== NOT EXECUTED
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
a001631c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0016320: e1a05000 mov r5, r0 <== NOT EXECUTED a0016324: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0016328: 13a00004 movne r0, #4 <== NOT EXECUTED
{
register Partition_Control *the_partition;
Objects_Locations location;
the_partition = _Partition_Get( id, &location );
switch ( location ) {
a001632c: 1a000016 bne a001638c <rtems_partition_return_buffer+0x8c> <== NOT EXECUTED
)
{
void *starting;
void *ending;
starting = the_partition->starting_address;
a0016330: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED a0016334: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED a0016338: e0803003 add r3, r0, r3 <== NOT EXECUTED
const void *address,
const void *base,
const void *limit
)
{
return (address >= base && address <= limit);
a001633c: e1540003 cmp r4, r3 <== NOT EXECUTED a0016340: 83a03000 movhi r3, #0 <== NOT EXECUTED a0016344: 93a03001 movls r3, #1 <== NOT EXECUTED a0016348: e1540000 cmp r4, r0 <== NOT EXECUTED a001634c: 33a03000 movcc r3, #0 <== NOT EXECUTED
ending = _Addresses_Add_offset( starting, the_partition->length );
return (
_Addresses_Is_in_range( the_buffer, starting, ending ) &&
a0016350: e3530000 cmp r3, #0 <== NOT EXECUTED a0016354: 0a00000d beq a0016390 <rtems_partition_return_buffer+0x90> <== NOT EXECUTED
offset = (uint32_t) _Addresses_Subtract(
the_buffer,
the_partition->starting_address
);
return ((offset % the_partition->buffer_size) == 0);
a0016358: e0600004 rsb r0, r0, r4 <== NOT EXECUTED a001635c: e5951018 ldr r1, [r5, #24] <== NOT EXECUTED a0016360: eb0061e3 bl a002eaf4 <__umodsi3> <== NOT EXECUTED
starting = the_partition->starting_address;
ending = _Addresses_Add_offset( starting, the_partition->length );
return (
_Addresses_Is_in_range( the_buffer, starting, ending ) &&
a0016364: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0016368: 1a000008 bne a0016390 <rtems_partition_return_buffer+0x90> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _Partition_Free_buffer (
Partition_Control *the_partition,
Chain_Node *the_buffer
)
{
_Chain_Append( &the_partition->Memory, the_buffer );
a001636c: e2850024 add r0, r5, #36 ; 0x24 <== NOT EXECUTED a0016370: e1a01004 mov r1, r4 <== NOT EXECUTED a0016374: eb000b58 bl a00190dc <_Chain_Append> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) {
_Partition_Free_buffer( the_partition, buffer );
the_partition->number_of_used_blocks -= 1;
a0016378: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED a001637c: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0016380: e5853020 str r3, [r5, #32] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0016384: eb0015b7 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0016388: e1a00006 mov r0, r6 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a001638c: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
_Partition_Free_buffer( the_partition, buffer );
the_partition->number_of_used_blocks -= 1;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
_Thread_Enable_dispatch();
a0016390: eb0015b4 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a0016394: e3a00009 mov r0, #9 <== NOT EXECUTED a0016398: eafffffb b a001638c <rtems_partition_return_buffer+0x8c> <== NOT EXECUTED
a0015744 <rtems_port_create>:
void *internal_start,
void *external_start,
uint32_t length,
rtems_id *id
)
{
a0015744: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
if ( !rtems_is_name_valid( name ) )
a0015748: e250a000 subs sl, r0, #0 <== NOT EXECUTED
void *internal_start,
void *external_start,
uint32_t length,
rtems_id *id
)
{
a001574c: e1a04001 mov r4, r1 <== NOT EXECUTED a0015750: e1a05002 mov r5, r2 <== NOT EXECUTED a0015754: e1a09003 mov r9, r3 <== NOT EXECUTED a0015758: e59d6020 ldr r6, [sp, #32] <== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
if ( !rtems_is_name_valid( name ) )
a001575c: 0a00001d beq a00157d8 <rtems_port_create+0x94> <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !id )
a0015760: e3560000 cmp r6, #0 <== NOT EXECUTED a0015764: 0a00001d beq a00157e0 <rtems_port_create+0x9c> <== NOT EXECUTED
* id - port id
* RTEMS_SUCCESSFUL - if successful
* error code - if unsuccessful
*/
rtems_status_code rtems_port_create(
a0015768: e1828001 orr r8, r2, r1 <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( !_Addresses_Is_aligned( internal_start ) ||
a001576c: e2188007 ands r8, r8, #7 <== NOT EXECUTED a0015770: 1a00001c bne a00157e8 <rtems_port_create+0xa4> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a0015774: e59f3074 ldr r3, [pc, #116] ; a00157f0 <rtems_port_create+0xac><== NOT EXECUTED a0015778: e5932000 ldr r2, [r3] <== NOT EXECUTED a001577c: e2822001 add r2, r2, #1 <== NOT EXECUTED a0015780: e5832000 str r2, [r3] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE Dual_ported_memory_Control
*_Dual_ported_memory_Allocate ( void )
{
return (Dual_ported_memory_Control *)
_Objects_Allocate( &_Dual_ported_memory_Information );
a0015784: e59f7068 ldr r7, [pc, #104] ; a00157f4 <rtems_port_create+0xb0><== NOT EXECUTED a0015788: e1a00007 mov r0, r7 <== NOT EXECUTED a001578c: eb00145b bl a001a900 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */
the_port = _Dual_ported_memory_Allocate();
if ( !the_port ) {
a0015790: e3500000 cmp r0, #0 <== NOT EXECUTED a0015794: 1a000002 bne a00157a4 <rtems_port_create+0x60> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0015798: eb0018b2 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
a001579c: e3a00005 mov r0, #5 <== NOT EXECUTED
a00157a0: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
a00157a4: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED a00157a8: e1d010b8 ldrh r1, [r0, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a00157ac: e597201c ldr r2, [r7, #28] <== NOT EXECUTED
}
the_port->internal_base = internal_start;
the_port->external_base = external_start;
the_port->length = length - 1;
a00157b0: e2499001 sub r9, r9, #1 <== NOT EXECUTED
if ( !the_port ) {
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_port->internal_base = internal_start;
a00157b4: e5804010 str r4, [r0, #16] <== NOT EXECUTED
the_port->external_base = external_start;
a00157b8: e5805014 str r5, [r0, #20] <== NOT EXECUTED
the_port->length = length - 1;
a00157bc: e5809018 str r9, [r0, #24] <== NOT EXECUTED a00157c0: e7820101 str r0, [r2, r1, lsl #2] <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
a00157c4: e580a00c str sl, [r0, #12] <== NOT EXECUTED
&_Dual_ported_memory_Information,
&the_port->Object,
(Objects_Name) name
);
*id = the_port->Object.id;
a00157c8: e5863000 str r3, [r6] <== NOT EXECUTED
_Thread_Enable_dispatch();
a00157cc: eb0018a5 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a00157d0: e1a00008 mov r0, r8 <== NOT EXECUTED
a00157d4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
)
{
register Dual_ported_memory_Control *the_port;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
a00157d8: e3a00003 mov r0, #3 <== NOT EXECUTED
a00157dc: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
a00157e0: e3a00009 mov r0, #9 <== NOT EXECUTED
a00157e4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
if ( !_Addresses_Is_aligned( internal_start ) ||
!_Addresses_Is_aligned( external_start ) )
return RTEMS_INVALID_ADDRESS;
a00157e8: e3a00009 mov r0, #9 <== NOT EXECUTED
);
*id = the_port->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
a00157ec: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
a00157f8 <rtems_port_delete>:
*/
rtems_status_code rtems_port_delete(
rtems_id id
)
{
a00157f8: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a00157fc: e1a01000 mov r1, r0 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Dual_ported_memory_Control *)
_Objects_Get( &_Dual_ported_memory_Information, id, location );
a0015800: e1a0200d mov r2, sp <== NOT EXECUTED a0015804: e59f0038 ldr r0, [pc, #56] ; a0015844 <rtems_port_delete+0x4c><== NOT EXECUTED a0015808: eb00156b bl a001adbc <_Objects_Get> <== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
a001580c: e59d4000 ldr r4, [sp] <== NOT EXECUTED a0015810: e1a05000 mov r5, r0 <== NOT EXECUTED a0015814: e3540000 cmp r4, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0015818: 13a00004 movne r0, #4 <== NOT EXECUTED
{
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
a001581c: 1a000007 bne a0015840 <rtems_port_delete+0x48> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_Dual_ported_memory_Information, &the_port->Object );
a0015820: e59f001c ldr r0, [pc, #28] ; a0015844 <rtems_port_delete+0x4c><== NOT EXECUTED a0015824: e1a01005 mov r1, r5 <== NOT EXECUTED a0015828: eb001456 bl a001a988 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Dual_ported_memory_Free (
Dual_ported_memory_Control *the_port
)
{
_Objects_Free( &_Dual_ported_memory_Information, &the_port->Object );
a001582c: e59f0010 ldr r0, [pc, #16] ; a0015844 <rtems_port_delete+0x4c><== NOT EXECUTED a0015830: e1a01005 mov r1, r5 <== NOT EXECUTED a0015834: eb0014f8 bl a001ac1c <_Objects_Free> <== NOT EXECUTED
_Dual_ported_memory_Free( the_port );
_Thread_Enable_dispatch();
a0015838: eb00188a bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a001583c: e1a00004 mov r0, r4 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0015840: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0015848 <rtems_port_external_to_internal>:
rtems_status_code rtems_port_external_to_internal(
rtems_id id,
void *external,
void **internal
)
{
a0015848: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !internal )
a001584c: e2524000 subs r4, r2, #0 <== NOT EXECUTED
rtems_status_code rtems_port_external_to_internal(
rtems_id id,
void *external,
void **internal
)
{
a0015850: e1a03000 mov r3, r0 <== NOT EXECUTED a0015854: e1a05001 mov r5, r1 <== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !internal )
return RTEMS_INVALID_ADDRESS;
a0015858: 03a00009 moveq r0, #9 <== NOT EXECUTED
{
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !internal )
a001585c: 0a000011 beq a00158a8 <rtems_port_external_to_internal+0x60><== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Dual_ported_memory_Control *)
_Objects_Get( &_Dual_ported_memory_Information, id, location );
a0015860: e1a01003 mov r1, r3 <== NOT EXECUTED a0015864: e59f0040 ldr r0, [pc, #64] ; a00158ac <rtems_port_external_to_internal+0x64><== NOT EXECUTED a0015868: e1a0200d mov r2, sp <== NOT EXECUTED a001586c: eb001552 bl a001adbc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
a0015870: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0015874: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0015878: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !internal )
return RTEMS_INVALID_ADDRESS;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
a001587c: 1a000009 bne a00158a8 <rtems_port_external_to_internal+0x60><== NOT EXECUTED
RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract (
const void *left,
const void *right
)
{
return (int32_t) ((const char *) left - (const char *) right);
a0015880: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED
case OBJECTS_LOCAL:
ending = _Addresses_Subtract( external, the_port->external_base );
if ( ending > the_port->length )
a0015884: e5902018 ldr r2, [r0, #24] <== NOT EXECUTED a0015888: e0633005 rsb r3, r3, r5 <== NOT EXECUTED a001588c: e1530002 cmp r3, r2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
a0015890: 95902010 ldrls r2, [r0, #16] <== NOT EXECUTED
*internal = external;
a0015894: 85845000 strhi r5, [r4] <== NOT EXECUTED a0015898: 90823003 addls r3, r2, r3 <== NOT EXECUTED
else
*internal = _Addresses_Add_offset( the_port->internal_base,
a001589c: 95843000 strls r3, [r4] <== NOT EXECUTED
ending );
_Thread_Enable_dispatch();
a00158a0: eb001870 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a00158a4: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a00158a8: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a00158b0 <rtems_port_ident>:
rtems_status_code rtems_port_ident(
rtems_name name,
rtems_id *id
)
{
a00158b0: e1a02000 mov r2, r0 <== NOT EXECUTED
a00158b4: e1a03001 mov r3, r1 <== NOT EXECUTED
a00158b8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
a00158bc: e1a01002 mov r1, r2 <== NOT EXECUTED a00158c0: e59f0010 ldr r0, [pc, #16] ; a00158d8 <rtems_port_ident+0x28><== NOT EXECUTED a00158c4: e3a02000 mov r2, #0 <== NOT EXECUTED a00158c8: eb001597 bl a001af2c <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_ALL_NODES,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
a00158cc: e59f3008 ldr r3, [pc, #8] ; a00158dc <rtems_port_ident+0x2c><== NOT EXECUTED
a00158d0: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
a00158d4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a00158e0 <rtems_port_internal_to_external>:
rtems_status_code rtems_port_internal_to_external(
rtems_id id,
void *internal,
void **external
)
{
a00158e0: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !external )
a00158e4: e2524000 subs r4, r2, #0 <== NOT EXECUTED
rtems_status_code rtems_port_internal_to_external(
rtems_id id,
void *internal,
void **external
)
{
a00158e8: e1a03000 mov r3, r0 <== NOT EXECUTED a00158ec: e1a05001 mov r5, r1 <== NOT EXECUTED
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !external )
return RTEMS_INVALID_ADDRESS;
a00158f0: 03a00009 moveq r0, #9 <== NOT EXECUTED
{
register Dual_ported_memory_Control *the_port;
Objects_Locations location;
uint32_t ending;
if ( !external )
a00158f4: 0a000011 beq a0015940 <rtems_port_internal_to_external+0x60><== NOT EXECUTED a00158f8: e1a01003 mov r1, r3 <== NOT EXECUTED a00158fc: e59f0040 ldr r0, [pc, #64] ; a0015944 <rtems_port_internal_to_external+0x64><== NOT EXECUTED a0015900: e1a0200d mov r2, sp <== NOT EXECUTED a0015904: eb00152c bl a001adbc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
a0015908: e59d3000 ldr r3, [sp] <== NOT EXECUTED a001590c: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0015910: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !external )
return RTEMS_INVALID_ADDRESS;
the_port = _Dual_ported_memory_Get( id, &location );
switch ( location ) {
a0015914: 1a000009 bne a0015940 <rtems_port_internal_to_external+0x60><== NOT EXECUTED
RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract (
const void *left,
const void *right
)
{
return (int32_t) ((const char *) left - (const char *) right);
a0015918: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED
case OBJECTS_LOCAL:
ending = _Addresses_Subtract( internal, the_port->internal_base );
if ( ending > the_port->length )
a001591c: e5902018 ldr r2, [r0, #24] <== NOT EXECUTED a0015920: e0633005 rsb r3, r3, r5 <== NOT EXECUTED a0015924: e1530002 cmp r3, r2 <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
const void *base,
uintptr_t offset
)
{
return (void *)((uintptr_t)base + offset);
a0015928: 95902014 ldrls r2, [r0, #20] <== NOT EXECUTED
*external = internal;
a001592c: 85845000 strhi r5, [r4] <== NOT EXECUTED a0015930: 90823003 addls r3, r2, r3 <== NOT EXECUTED
else
*external = _Addresses_Add_offset( the_port->external_base,
a0015934: 95843000 strls r3, [r4] <== NOT EXECUTED
ending );
_Thread_Enable_dispatch();
a0015938: eb00184a bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a001593c: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0015940: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a00059d0 <rtems_print_buffer>:
)
{
int i, mod, max;
if ( !length ) return;
a00059d0: e3510000 cmp r1, #0 <== NOT EXECUTED
void rtems_print_buffer(
const unsigned char *buffer,
int length
)
{
a00059d4: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a00059d8: e1a07000 mov r7, r0 <== NOT EXECUTED
int i, mod, max;
if ( !length ) return;
a00059dc: 0a000013 beq a0005a30 <rtems_print_buffer+0x60> <== NOT EXECUTED
mod = length % 16;
a00059e0: e211413e ands r4, r1, #-2147483633 ; 0x8000000f <== NOT EXECUTED a00059e4: 42444001 submi r4, r4, #1 <== NOT EXECUTED a00059e8: 41e04e04 mvnmi r4, r4, lsl #28 <== NOT EXECUTED
max = length - mod;
for ( i=0 ; i<max ; i+=16 )
a00059ec: e3a05000 mov r5, #0 <== NOT EXECUTED
int i, mod, max;
if ( !length ) return;
mod = length % 16;
a00059f0: 41e04e24 mvnmi r4, r4, lsr #28 <== NOT EXECUTED a00059f4: 42844001 addmi r4, r4, #1 <== NOT EXECUTED
max = length - mod;
a00059f8: e0646001 rsb r6, r4, r1 <== NOT EXECUTED
for ( i=0 ; i<max ; i+=16 )
a00059fc: ea000003 b a0005a10 <rtems_print_buffer+0x40> <== NOT EXECUTED
Dump_Line( &buffer[ i ], 16 );
a0005a00: e0870005 add r0, r7, r5 <== NOT EXECUTED a0005a04: e3a01010 mov r1, #16 <== NOT EXECUTED a0005a08: ebffffae bl a00058c8 <Dump_Line> <== NOT EXECUTED
mod = length % 16;
max = length - mod;
for ( i=0 ; i<max ; i+=16 )
a0005a0c: e2855010 add r5, r5, #16 <== NOT EXECUTED a0005a10: e1550006 cmp r5, r6 <== NOT EXECUTED a0005a14: bafffff9 blt a0005a00 <rtems_print_buffer+0x30> <== NOT EXECUTED
Dump_Line( &buffer[ i ], 16 );
if ( mod )
a0005a18: e3540000 cmp r4, #0 <== NOT EXECUTED a0005a1c: 0a000003 beq a0005a30 <rtems_print_buffer+0x60> <== NOT EXECUTED
Dump_Line( &buffer[ max ], mod );
a0005a20: e0870006 add r0, r7, r6 <== NOT EXECUTED a0005a24: e1a01004 mov r1, r4 <== NOT EXECUTED
}
a0005a28: e8bd40f0 pop {r4, r5, r6, r7, lr} <== NOT EXECUTED
for ( i=0 ; i<max ; i+=16 )
Dump_Line( &buffer[ i ], 16 );
if ( mod )
Dump_Line( &buffer[ max ], mod );
a0005a2c: eaffffa5 b a00058c8 <Dump_Line> <== NOT EXECUTED
a0005a30: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a00163a0 <rtems_rate_monotonic_cancel>:
*/
rtems_status_code rtems_rate_monotonic_cancel(
rtems_id id
)
{
a00163a0: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a00163a4: e1a01000 mov r1, r0 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Rate_monotonic_Control *)
_Objects_Get( &_Rate_monotonic_Information, id, location );
a00163a8: e1a0200d mov r2, sp <== NOT EXECUTED a00163ac: e59f004c ldr r0, [pc, #76] ; a0016400 <rtems_rate_monotonic_cancel+0x60><== NOT EXECUTED a00163b0: eb001281 bl a001adbc <_Objects_Get> <== NOT EXECUTED
Rate_monotonic_Control *the_period;
Objects_Locations location;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
a00163b4: e59d4000 ldr r4, [sp] <== NOT EXECUTED a00163b8: e1a05000 mov r5, r0 <== NOT EXECUTED a00163bc: e3540000 cmp r4, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00163c0: 13a00004 movne r0, #4 <== NOT EXECUTED
{
Rate_monotonic_Control *the_period;
Objects_Locations location;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
a00163c4: 1a00000c bne a00163fc <rtems_rate_monotonic_cancel+0x5c> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
a00163c8: e59f3034 ldr r3, [pc, #52] ; a0016404 <rtems_rate_monotonic_cancel+0x64><== NOT EXECUTED a00163cc: e5952040 ldr r2, [r5, #64] ; 0x40 <== NOT EXECUTED a00163d0: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a00163d4: e1520003 cmp r2, r3 <== NOT EXECUTED a00163d8: 0a000002 beq a00163e8 <rtems_rate_monotonic_cancel+0x48> <== NOT EXECUTED
_Thread_Enable_dispatch();
a00163dc: eb0015a1 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_OWNER_OF_RESOURCE;
a00163e0: e3a00017 mov r0, #23 <== NOT EXECUTED a00163e4: ea000004 b a00163fc <rtems_rate_monotonic_cancel+0x5c> <== NOT EXECUTED
}
(void) _Watchdog_Remove( &the_period->Timer );
a00163e8: e2850010 add r0, r5, #16 <== NOT EXECUTED a00163ec: eb0019fe bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_INACTIVE;
a00163f0: e5854038 str r4, [r5, #56] ; 0x38 <== NOT EXECUTED
_Thread_Enable_dispatch();
a00163f4: eb00159b bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a00163f8: e1a00004 mov r0, r4 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a00163fc: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000a150 <rtems_rate_monotonic_create>:
rtems_status_code rtems_rate_monotonic_create(
rtems_name name,
rtems_id *id
)
{
a000a150: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
Rate_monotonic_Control *the_period;
if ( !rtems_is_name_valid( name ) )
a000a154: e2508000 subs r8, r0, #0 <== NOT EXECUTED
rtems_status_code rtems_rate_monotonic_create(
rtems_name name,
rtems_id *id
)
{
a000a158: e1a06001 mov r6, r1 <== NOT EXECUTED
Rate_monotonic_Control *the_period;
if ( !rtems_is_name_valid( name ) )
a000a15c: 0a000028 beq a000a204 <rtems_rate_monotonic_create+0xb4> <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !id )
a000a160: e3510000 cmp r1, #0 <== NOT EXECUTED a000a164: 0a000028 beq a000a20c <rtems_rate_monotonic_create+0xbc> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000a168: e59f30a4 ldr r3, [pc, #164] ; a000a214 <rtems_rate_monotonic_create+0xc4><== NOT EXECUTED a000a16c: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a170: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a174: e5832000 str r2, [r3] <== NOT EXECUTED
* the inactive chain of free period control blocks.
*/
RTEMS_INLINE_ROUTINE Rate_monotonic_Control *_Rate_monotonic_Allocate( void )
{
return (Rate_monotonic_Control *)
_Objects_Allocate( &_Rate_monotonic_Information );
a000a178: e59f7098 ldr r7, [pc, #152] ; a000a218 <rtems_rate_monotonic_create+0xc8><== NOT EXECUTED a000a17c: e1a00007 mov r0, r7 <== NOT EXECUTED a000a180: eb0007ac bl a000c038 <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */
the_period = _Rate_monotonic_Allocate();
if ( !the_period ) {
a000a184: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000a188: 1a000002 bne a000a198 <rtems_rate_monotonic_create+0x48> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a18c: eb000c35 bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
a000a190: e3a00005 mov r0, #5 <== NOT EXECUTED
a000a194: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
}
the_period->owner = _Thread_Executing;
a000a198: e59f307c ldr r3, [pc, #124] ; a000a21c <rtems_rate_monotonic_create+0xcc><== NOT EXECUTED
the_period->state = RATE_MONOTONIC_INACTIVE;
a000a19c: e3a05000 mov r5, #0 <== NOT EXECUTED
_Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL );
_Rate_monotonic_Reset_statistics( the_period );
a000a1a0: e1a01005 mov r1, r5 <== NOT EXECUTED
if ( !the_period ) {
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_period->owner = _Thread_Executing;
a000a1a4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_INACTIVE;
_Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL );
_Rate_monotonic_Reset_statistics( the_period );
a000a1a8: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_period->owner = _Thread_Executing;
the_period->state = RATE_MONOTONIC_INACTIVE;
a000a1ac: e5845038 str r5, [r4, #56] ; 0x38 <== NOT EXECUTED
if ( !the_period ) {
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
the_period->owner = _Thread_Executing;
a000a1b0: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a000a1b4: e5845018 str r5, [r4, #24] <== NOT EXECUTED
the_watchdog->routine = routine;
a000a1b8: e584502c str r5, [r4, #44] ; 0x2c <== NOT EXECUTED
the_watchdog->id = id;
a000a1bc: e5845030 str r5, [r4, #48] ; 0x30 <== NOT EXECUTED
the_watchdog->user_data = user_data;
a000a1c0: e5845034 str r5, [r4, #52] ; 0x34 <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_INACTIVE;
_Watchdog_Initialize( &the_period->Timer, NULL, 0, NULL );
_Rate_monotonic_Reset_statistics( the_period );
a000a1c4: e2840054 add r0, r4, #84 ; 0x54 <== NOT EXECUTED a000a1c8: eb002531 bl a0013694 <memset> <== NOT EXECUTED a000a1cc: e3e03102 mvn r3, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000a1d0: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED a000a1d4: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED a000a1d8: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000a1dc: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000a1e0: e597201c ldr r2, [r7, #28] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
a000a1e4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000a1e8: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a000a1ec: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
a000a1f0: e584800c str r8, [r4, #12] <== NOT EXECUTED
&_Rate_monotonic_Information,
&the_period->Object,
(Objects_Name) name
);
*id = the_period->Object.id;
a000a1f4: e5863000 str r3, [r6] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a1f8: eb000c1a bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000a1fc: e1a00005 mov r0, r5 <== NOT EXECUTED
a000a200: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
)
{
Rate_monotonic_Control *the_period;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
a000a204: e3a00003 mov r0, #3 <== NOT EXECUTED
a000a208: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
a000a20c: e3a00009 mov r0, #9 <== NOT EXECUTED
);
*id = the_period->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
a000a210: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a00164d8 <rtems_rate_monotonic_delete>:
*/
rtems_status_code rtems_rate_monotonic_delete(
rtems_id id
)
{
a00164d8: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a00164dc: e1a01000 mov r1, r0 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Rate_monotonic_Control *)
_Objects_Get( &_Rate_monotonic_Information, id, location );
a00164e0: e1a0200d mov r2, sp <== NOT EXECUTED a00164e4: e59f0044 ldr r0, [pc, #68] ; a0016530 <rtems_rate_monotonic_delete+0x58><== NOT EXECUTED a00164e8: eb001233 bl a001adbc <_Objects_Get> <== NOT EXECUTED
Rate_monotonic_Control *the_period;
Objects_Locations location;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
a00164ec: e59d5000 ldr r5, [sp] <== NOT EXECUTED a00164f0: e1a04000 mov r4, r0 <== NOT EXECUTED a00164f4: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00164f8: 13a00004 movne r0, #4 <== NOT EXECUTED
{
Rate_monotonic_Control *the_period;
Objects_Locations location;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
a00164fc: 1a00000a bne a001652c <rtems_rate_monotonic_delete+0x54> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_Rate_monotonic_Information, &the_period->Object );
a0016500: e1a01004 mov r1, r4 <== NOT EXECUTED a0016504: e59f0024 ldr r0, [pc, #36] ; a0016530 <rtems_rate_monotonic_delete+0x58><== NOT EXECUTED a0016508: eb00111e bl a001a988 <_Objects_Close> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_period->Timer );
a001650c: e2840010 add r0, r4, #16 <== NOT EXECUTED a0016510: eb0019b5 bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Rate_monotonic_Free (
Rate_monotonic_Control *the_period
)
{
_Objects_Free( &_Rate_monotonic_Information, &the_period->Object );
a0016514: e59f0014 ldr r0, [pc, #20] ; a0016530 <rtems_rate_monotonic_delete+0x58><== NOT EXECUTED a0016518: e1a01004 mov r1, r4 <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_INACTIVE;
a001651c: e5845038 str r5, [r4, #56] ; 0x38 <== NOT EXECUTED a0016520: eb0011bd bl a001ac1c <_Objects_Free> <== NOT EXECUTED
_Rate_monotonic_Free( the_period );
_Thread_Enable_dispatch();
a0016524: eb00154f bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0016528: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a001652c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0010678 <rtems_rate_monotonic_get_statistics>:
rtems_status_code rtems_rate_monotonic_get_statistics(
rtems_id id,
rtems_rate_monotonic_period_statistics *statistics
)
{
a0010678: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
Objects_Locations location;
Rate_monotonic_Control *the_period;
rtems_rate_monotonic_period_statistics *dst;
Rate_monotonic_Statistics *src;
if ( !statistics )
a001067c: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_rate_monotonic_get_statistics(
rtems_id id,
rtems_rate_monotonic_period_statistics *statistics
)
{
a0010680: e1a03000 mov r3, r0 <== NOT EXECUTED
Rate_monotonic_Control *the_period;
rtems_rate_monotonic_period_statistics *dst;
Rate_monotonic_Statistics *src;
if ( !statistics )
return RTEMS_INVALID_ADDRESS;
a0010684: 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 )
a0010688: 0a000025 beq a0010724 <rtems_rate_monotonic_get_statistics+0xac><== NOT EXECUTED a001068c: e59f0094 ldr r0, [pc, #148] ; a0010728 <rtems_rate_monotonic_get_statistics+0xb0><== NOT EXECUTED a0010690: e1a01003 mov r1, r3 <== NOT EXECUTED a0010694: e1a0200d mov r2, sp <== NOT EXECUTED a0010698: ebffefc7 bl a000c5bc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
a001069c: e59d5000 ldr r5, [sp] <== NOT EXECUTED a00106a0: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00106a4: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !statistics )
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
a00106a8: 1a00001d bne a0010724 <rtems_rate_monotonic_get_statistics+0xac><== NOT EXECUTED
case OBJECTS_LOCAL:
dst = statistics;
src = &the_period->Statistics;
dst->count = src->count;
a00106ac: e5903054 ldr r3, [r0, #84] ; 0x54 <== NOT EXECUTED a00106b0: e5843000 str r3, [r4] <== NOT EXECUTED
dst->missed_count = src->missed_count;
a00106b4: e5903058 ldr r3, [r0, #88] ; 0x58 <== NOT EXECUTED a00106b8: e5843004 str r3, [r4, #4] <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_To_timespec( &src->min_cpu_time, &dst->min_cpu_time );
a00106bc: e280305c add r3, r0, #92 ; 0x5c <== NOT EXECUTED
a00106c0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a00106c4: e5842008 str r2, [r4, #8] <== NOT EXECUTED
a00106c8: e584300c str r3, [r4, #12] <== NOT EXECUTED
_Timestamp_To_timespec( &src->max_cpu_time, &dst->max_cpu_time );
a00106cc: e2803064 add r3, r0, #100 ; 0x64 <== NOT EXECUTED
a00106d0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a00106d4: e5842010 str r2, [r4, #16] <== NOT EXECUTED
a00106d8: e5843014 str r3, [r4, #20] <== NOT EXECUTED
_Timestamp_To_timespec( &src->total_cpu_time, &dst->total_cpu_time );
a00106dc: e280306c add r3, r0, #108 ; 0x6c <== NOT EXECUTED
a00106e0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a00106e4: e5842018 str r2, [r4, #24] <== NOT EXECUTED
a00106e8: e584301c str r3, [r4, #28] <== NOT EXECUTED
_Timestamp_To_timespec( &src->min_wall_time, &dst->min_wall_time );
a00106ec: e2803074 add r3, r0, #116 ; 0x74 <== NOT EXECUTED
a00106f0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a00106f4: e5842020 str r2, [r4, #32] <== NOT EXECUTED
a00106f8: e5843024 str r3, [r4, #36] ; 0x24 <== NOT EXECUTED
_Timestamp_To_timespec( &src->max_wall_time, &dst->max_wall_time );
a00106fc: e280307c add r3, r0, #124 ; 0x7c <== NOT EXECUTED
a0010700: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a0010704: e5842028 str r2, [r4, #40] ; 0x28 <== NOT EXECUTED
a0010708: e584302c str r3, [r4, #44] ; 0x2c <== NOT EXECUTED
_Timestamp_To_timespec( &src->total_wall_time, &dst->total_wall_time );
a001070c: e2803084 add r3, r0, #132 ; 0x84 <== NOT EXECUTED
a0010710: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a0010714: e5842030 str r2, [r4, #48] ; 0x30 <== NOT EXECUTED
a0010718: e5843034 str r3, [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();
a001071c: ebfff2d1 bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0010720: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0010724: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a001072c <rtems_rate_monotonic_get_status>:
rtems_status_code rtems_rate_monotonic_get_status(
rtems_id id,
rtems_rate_monotonic_period_status *status
)
{
a001072c: e92d4010 push {r4, lr} <== NOT EXECUTED
Objects_Locations location;
Rate_monotonic_Period_time_t since_last_period;
Rate_monotonic_Control *the_period;
bool valid_status;
if ( !status )
a0010730: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_rate_monotonic_get_status(
rtems_id id,
rtems_rate_monotonic_period_status *status
)
{
a0010734: e1a03000 mov r3, r0 <== NOT EXECUTED a0010738: e24dd014 sub sp, sp, #20 <== NOT EXECUTED
Rate_monotonic_Period_time_t since_last_period;
Rate_monotonic_Control *the_period;
bool valid_status;
if ( !status )
return RTEMS_INVALID_ADDRESS;
a001073c: 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 )
a0010740: 0a000023 beq a00107d4 <rtems_rate_monotonic_get_status+0xa8><== NOT EXECUTED a0010744: e1a01003 mov r1, r3 <== NOT EXECUTED a0010748: e28d2010 add r2, sp, #16 <== NOT EXECUTED a001074c: e59f0088 ldr r0, [pc, #136] ; a00107dc <rtems_rate_monotonic_get_status+0xb0><== NOT EXECUTED a0010750: ebffef99 bl a000c5bc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
a0010754: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED a0010758: e1a03000 mov r3, r0 <== NOT EXECUTED a001075c: e3520000 cmp r2, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0010760: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !status )
return RTEMS_INVALID_ADDRESS;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
a0010764: 1a00001a bne a00107d4 <rtems_rate_monotonic_get_status+0xa8><== NOT EXECUTED
case OBJECTS_LOCAL:
status->owner = the_period->owner->Object.id;
a0010768: e5932040 ldr r2, [r3, #64] ; 0x40 <== NOT EXECUTED
status->state = the_period->state;
a001076c: e5933038 ldr r3, [r3, #56] ; 0x38 <== NOT EXECUTED
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
status->owner = the_period->owner->Object.id;
a0010770: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED
status->state = the_period->state;
/*
* If the period is inactive, there is no information.
*/
if ( status->state == RATE_MONOTONIC_INACTIVE ) {
a0010774: 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;
a0010778: e884000c stm r4, {r2, r3} <== NOT EXECUTED
/*
* If the period is inactive, there is no information.
*/
if ( status->state == RATE_MONOTONIC_INACTIVE ) {
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timespec_Set_to_zero( &status->since_last_period );
a001077c: 05843008 streq r3, [r4, #8] <== NOT EXECUTED a0010780: 0584300c streq r3, [r4, #12] <== NOT EXECUTED
_Timespec_Set_to_zero( &status->executed_since_last_period );
a0010784: 05843010 streq r3, [r4, #16] <== NOT EXECUTED a0010788: 05843014 streq r3, [r4, #20] <== NOT EXECUTED a001078c: 0a00000e beq a00107cc <rtems_rate_monotonic_get_status+0xa0><== NOT EXECUTED
} else {
/*
* Grab the current status.
*/
valid_status =
a0010790: e1a0100d mov r1, sp <== NOT EXECUTED a0010794: e28d2008 add r2, sp, #8 <== NOT EXECUTED a0010798: ebffe6ac bl a000a250 <_Rate_monotonic_Get_status> <== NOT EXECUTED
_Rate_monotonic_Get_status(
the_period, &since_last_period, &executed
);
if (!valid_status) {
a001079c: e3500000 cmp r0, #0 <== NOT EXECUTED a00107a0: 1a000002 bne a00107b0 <rtems_rate_monotonic_get_status+0x84><== NOT EXECUTED
_Thread_Enable_dispatch();
a00107a4: ebfff2af bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a00107a8: e3a0000b mov r0, #11 <== NOT EXECUTED a00107ac: ea000008 b a00107d4 <rtems_rate_monotonic_get_status+0xa8> <== NOT EXECUTED
}
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
_Timestamp_To_timespec(
a00107b0: e89d000c ldm sp, {r2, r3} <== NOT EXECUTED
a00107b4: e5842008 str r2, [r4, #8] <== NOT EXECUTED
a00107b8: e584300c str r3, [r4, #12] <== NOT EXECUTED
&since_last_period, &status->since_last_period
);
_Timestamp_To_timespec(
a00107bc: e28d3008 add r3, sp, #8 <== NOT EXECUTED
a00107c0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a00107c4: e5842010 str r2, [r4, #16] <== NOT EXECUTED
a00107c8: e5843014 str r3, [r4, #20] <== NOT EXECUTED
status->since_last_period = since_last_period;
status->executed_since_last_period = executed;
#endif
}
_Thread_Enable_dispatch();
a00107cc: ebfff2a5 bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a00107d0: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a00107d4: e28dd014 add sp, sp, #20 <== NOT EXECUTED
a00107d8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000a220 <rtems_rate_monotonic_ident>:
rtems_status_code rtems_rate_monotonic_ident(
rtems_name name,
rtems_id *id
)
{
a000a220: e1a02000 mov r2, r0 <== NOT EXECUTED
a000a224: e1a03001 mov r3, r1 <== NOT EXECUTED
a000a228: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
a000a22c: e1a01002 mov r1, r2 <== NOT EXECUTED a000a230: e59f0010 ldr r0, [pc, #16] ; a000a248 <rtems_rate_monotonic_ident+0x28><== NOT EXECUTED a000a234: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000a238: eb00093b bl a000c72c <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
a000a23c: e59f3008 ldr r3, [pc, #8] ; a000a24c <rtems_rate_monotonic_ident+0x2c><== NOT EXECUTED
a000a240: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
a000a244: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000a454 <rtems_rate_monotonic_period>:
rtems_status_code rtems_rate_monotonic_period(
rtems_id id,
rtems_interval length
)
{
a000a454: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
a000a458: e1a05000 mov r5, r0 <== NOT EXECUTED
a000a45c: e1a04001 mov r4, r1 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Rate_monotonic_Control *)
_Objects_Get( &_Rate_monotonic_Information, id, location );
a000a460: e59f0170 ldr r0, [pc, #368] ; a000a5d8 <rtems_rate_monotonic_period+0x184><== NOT EXECUTED a000a464: e1a01005 mov r1, r5 <== NOT EXECUTED a000a468: e1a0200d mov r2, sp <== NOT EXECUTED a000a46c: eb000852 bl a000c5bc <_Objects_Get> <== NOT EXECUTED
rtems_rate_monotonic_period_states local_state;
ISR_Level level;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
a000a470: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a474: e1a06000 mov r6, r0 <== NOT EXECUTED a000a478: e3530000 cmp r3, #0 <== NOT EXECUTED a000a47c: 1a000052 bne a000a5cc <rtems_rate_monotonic_period+0x178> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_Thread_Is_executing( the_period->owner ) ) {
a000a480: e59f3154 ldr r3, [pc, #340] ; a000a5dc <rtems_rate_monotonic_period+0x188><== NOT EXECUTED a000a484: e5902040 ldr r2, [r0, #64] ; 0x40 <== NOT EXECUTED a000a488: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a48c: e1520003 cmp r2, r3 <== NOT EXECUTED a000a490: 0a000002 beq a000a4a0 <rtems_rate_monotonic_period+0x4c> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a494: eb000b73 bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_OWNER_OF_RESOURCE;
a000a498: e3a04017 mov r4, #23 <== NOT EXECUTED a000a49c: ea00004b b a000a5d0 <rtems_rate_monotonic_period+0x17c> <== NOT EXECUTED
}
if ( length == RTEMS_PERIOD_STATUS ) {
a000a4a0: e3540000 cmp r4, #0 <== NOT EXECUTED a000a4a4: 1a000005 bne a000a4c0 <rtems_rate_monotonic_period+0x6c> <== NOT EXECUTED
switch ( the_period->state ) {
a000a4a8: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a000a4ac: e3530004 cmp r3, #4 <== NOT EXECUTED a000a4b0: 959f2128 ldrls r2, [pc, #296] ; a000a5e0 <rtems_rate_monotonic_period+0x18c><== NOT EXECUTED a000a4b4: 97924103 ldrls r4, [r2, r3, lsl #2] <== NOT EXECUTED
case RATE_MONOTONIC_ACTIVE:
default: /* unreached -- only to remove warnings */
return_value = RTEMS_SUCCESSFUL;
break;
}
_Thread_Enable_dispatch();
a000a4b8: eb000b6a bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return( return_value );
a000a4bc: ea000043 b a000a5d0 <rtems_rate_monotonic_period+0x17c> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000a4c0: e10f7000 mrs r7, CPSR <== NOT EXECUTED a000a4c4: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a000a4c8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
}
_ISR_Disable( level );
if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {
a000a4cc: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a000a4d0: e3530000 cmp r3, #0 <== NOT EXECUTED a000a4d4: 1a000011 bne a000a520 <rtems_rate_monotonic_period+0xcc> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000a4d8: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
_ISR_Enable( level );
/*
* Baseline statistics information for the beginning of a period.
*/
_Rate_monotonic_Initiate_statistics( the_period );
a000a4dc: ebffff89 bl a000a308 <_Rate_monotonic_Initiate_statistics> <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_ACTIVE;
a000a4e0: e3a03002 mov r3, #2 <== NOT EXECUTED a000a4e4: e5863038 str r3, [r6, #56] ; 0x38 <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a000a4e8: e59f30f4 ldr r3, [pc, #244] ; a000a5e4 <rtems_rate_monotonic_period+0x190><== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a000a4ec: e3a07000 mov r7, #0 <== NOT EXECUTED
_Rate_monotonic_Timeout,
id,
NULL
);
the_period->next_length = length;
a000a4f0: e586403c str r4, [r6, #60] ; 0x3c <== NOT EXECUTED
the_watchdog->routine = routine;
a000a4f4: e586302c str r3, [r6, #44] ; 0x2c <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a000a4f8: e586401c str r4, [r6, #28] <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a000a4fc: e59f00e4 ldr r0, [pc, #228] ; a000a5e8 <rtems_rate_monotonic_period+0x194><== NOT EXECUTED a000a500: e2861010 add r1, r6, #16 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a000a504: e5867018 str r7, [r6, #24] <== NOT EXECUTED
the_watchdog->routine = routine; the_watchdog->id = id;
a000a508: e5865030 str r5, [r6, #48] ; 0x30 <== NOT EXECUTED
the_watchdog->user_data = user_data;
a000a50c: e5867034 str r7, [r6, #52] ; 0x34 <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a000a510: eb000efa bl a000e100 <_Watchdog_Insert> <== NOT EXECUTED
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
a000a514: e1a04007 mov r4, r7 <== NOT EXECUTED
);
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
a000a518: eb000b52 bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000a51c: ea00002b b a000a5d0 <rtems_rate_monotonic_period+0x17c> <== NOT EXECUTED
}
if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {
a000a520: e3530002 cmp r3, #2 <== NOT EXECUTED a000a524: 1a00001a bne a000a594 <rtems_rate_monotonic_period+0x140> <== NOT EXECUTED
/*
* Update statistics from the concluding period.
*/
_Rate_monotonic_Update_statistics( the_period );
a000a528: ebffff93 bl a000a37c <_Rate_monotonic_Update_statistics> <== NOT EXECUTED
/*
* 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;
a000a52c: e3a03001 mov r3, #1 <== NOT EXECUTED a000a530: e5863038 str r3, [r6, #56] ; 0x38 <== NOT EXECUTED
the_period->next_length = length;
a000a534: e586403c str r4, [r6, #60] ; 0x3c <== NOT EXECUTED a000a538: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
a000a53c: e59f3098 ldr r3, [pc, #152] ; a000a5dc <rtems_rate_monotonic_period+0x188><== NOT EXECUTED
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
a000a540: e3a01901 mov r1, #16384 ; 0x4000 <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;
the_period->next_length = length;
_ISR_Enable( level );
_Thread_Executing->Wait.id = the_period->Object.id;
a000a544: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a000a548: e5963008 ldr r3, [r6, #8] <== NOT EXECUTED a000a54c: e5803020 str r3, [r0, #32] <== NOT EXECUTED
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
a000a550: eb000d53 bl a000daa4 <_Thread_Set_state> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000a554: e10f2000 mrs r2, CPSR <== NOT EXECUTED a000a558: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a000a55c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
* 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;
a000a560: e3a01002 mov r1, #2 <== NOT EXECUTED
/*
* Did the watchdog timer expire while we were actually blocking
* on it?
*/
_ISR_Disable( level );
local_state = the_period->state;
a000a564: e5963038 ldr r3, [r6, #56] ; 0x38 <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_ACTIVE;
a000a568: e5861038 str r1, [r6, #56] ; 0x38 <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000a56c: e129f002 msr CPSR_fc, r2 <== 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 )
a000a570: e3530003 cmp r3, #3 <== NOT EXECUTED a000a574: 1a000003 bne a000a588 <rtems_rate_monotonic_period+0x134> <== NOT EXECUTED
_Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
a000a578: e59f305c ldr r3, [pc, #92] ; a000a5dc <rtems_rate_monotonic_period+0x188><== NOT EXECUTED a000a57c: e3a01901 mov r1, #16384 ; 0x4000 <== NOT EXECUTED a000a580: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a000a584: eb000a70 bl a000cf4c <_Thread_Clear_state> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a588: eb000b36 bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000a58c: e3a04000 mov r4, #0 <== NOT EXECUTED a000a590: ea00000e b a000a5d0 <rtems_rate_monotonic_period+0x17c> <== NOT EXECUTED
}
if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {
a000a594: e3530004 cmp r3, #4 <== NOT EXECUTED a000a598: 1a00000b bne a000a5cc <rtems_rate_monotonic_period+0x178> <== NOT EXECUTED
/*
* Update statistics from the concluding period
*/
_Rate_monotonic_Update_statistics( the_period );
a000a59c: ebffff76 bl a000a37c <_Rate_monotonic_Update_statistics> <== NOT EXECUTED a000a5a0: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
_ISR_Enable( level );
the_period->state = RATE_MONOTONIC_ACTIVE;
a000a5a4: e3a03002 mov r3, #2 <== NOT EXECUTED a000a5a8: e5863038 str r3, [r6, #56] ; 0x38 <== NOT EXECUTED
the_period->next_length = length;
a000a5ac: e586403c str r4, [r6, #60] ; 0x3c <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a000a5b0: e586401c str r4, [r6, #28] <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a000a5b4: e59f002c ldr r0, [pc, #44] ; a000a5e8 <rtems_rate_monotonic_period+0x194><== NOT EXECUTED a000a5b8: e2861010 add r1, r6, #16 <== NOT EXECUTED a000a5bc: eb000ecf bl a000e100 <_Watchdog_Insert> <== NOT EXECUTED
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
return RTEMS_TIMEOUT;
a000a5c0: e3a04006 mov r4, #6 <== NOT EXECUTED
the_period->state = RATE_MONOTONIC_ACTIVE;
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
_Thread_Enable_dispatch();
a000a5c4: eb000b27 bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TIMEOUT;
a000a5c8: ea000000 b a000a5d0 <rtems_rate_monotonic_period+0x17c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000a5cc: e3a04004 mov r4, #4 <== NOT EXECUTED
}
a000a5d0: e1a00004 mov r0, r4 <== NOT EXECUTED
a000a5d4: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000a7d4 <rtems_rate_monotonic_report_statistics>:
void rtems_rate_monotonic_report_statistics( void )
{
rtems_rate_monotonic_report_statistics_with_plugin( NULL, printk_plugin );
a000a7d4: e59f1004 ldr r1, [pc, #4] ; a000a7e0 <rtems_rate_monotonic_report_statistics+0xc><== NOT EXECUTED a000a7d8: e3a00000 mov r0, #0 <== NOT EXECUTED a000a7dc: eaffff82 b a000a5ec <rtems_rate_monotonic_report_statistics_with_plugin><== NOT EXECUTED
a000a5ec <rtems_rate_monotonic_report_statistics_with_plugin>:
*/
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
a000a5ec: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, 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 )
a000a5f0: e2514000 subs r4, r1, #0 <== NOT EXECUTED
*/
void rtems_rate_monotonic_report_statistics_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
a000a5f4: e24dd078 sub sp, sp, #120 ; 0x78 <== NOT EXECUTED a000a5f8: e1a05000 mov r5, 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 )
a000a5fc: 0a000068 beq a000a7a4 <rtems_rate_monotonic_report_statistics_with_plugin+0x1b8><== NOT EXECUTED
return;
(*print)( context, "Period information by period\n" );
a000a600: e59f11a4 ldr r1, [pc, #420] ; a000a7ac <rtems_rate_monotonic_report_statistics_with_plugin+0x1c0><== NOT EXECUTED a000a604: e12fff34 blx r4 <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
(*print)( context, "--- CPU times are in seconds ---\n" );
a000a608: e59f11a0 ldr r1, [pc, #416] ; a000a7b0 <rtems_rate_monotonic_report_statistics_with_plugin+0x1c4><== NOT EXECUTED a000a60c: e1a00005 mov r0, r5 <== NOT EXECUTED a000a610: e12fff34 blx r4 <== NOT EXECUTED
(*print)( context, "--- Wall times are in seconds ---\n" );
a000a614: e59f1198 ldr r1, [pc, #408] ; a000a7b4 <rtems_rate_monotonic_report_statistics_with_plugin+0x1c8><== NOT EXECUTED a000a618: e1a00005 mov r0, r5 <== NOT EXECUTED a000a61c: e12fff34 blx r4 <== NOT EXECUTED
Be sure to test the various cases. (*print)( context,"\ 1234567890123456789012345678901234567890123456789012345678901234567890123456789\ \n"); */ (*print)( context, " ID OWNER COUNT MISSED "
a000a620: e59f1190 ldr r1, [pc, #400] ; a000a7b8 <rtems_rate_monotonic_report_statistics_with_plugin+0x1cc><== NOT EXECUTED a000a624: e1a00005 mov r0, r5 <== NOT EXECUTED a000a628: e12fff34 blx r4 <== NOT EXECUTED
* is a period that is inactive, we just get an error back. No big deal.
*/
for ( id=_Rate_monotonic_Information.minimum_id ;
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
a000a62c: e28d7018 add r7, sp, #24 <== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
" "
#endif
" WALL TIME\n"
);
(*print)( context, " "
a000a630: e1a00005 mov r0, r5 <== NOT EXECUTED a000a634: e59f1180 ldr r1, [pc, #384] ; a000a7bc <rtems_rate_monotonic_report_statistics_with_plugin+0x1d0><== 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 ;
a000a638: e59f8180 ldr r8, [pc, #384] ; a000a7c0 <rtems_rate_monotonic_report_statistics_with_plugin+0x1d4><== NOT EXECUTED
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
" "
#endif
" WALL TIME\n"
);
(*print)( context, " "
a000a63c: e12fff34 blx r4 <== NOT EXECUTED
{
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
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;
a000a640: e2873018 add r3, r7, #24 <== NOT EXECUTED a000a644: e58d3010 str r3, [sp, #16] <== NOT EXECUTED
{
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
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;
a000a648: e2873030 add r3, r7, #48 ; 0x30 <== 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 ;
a000a64c: e5986008 ldr r6, [r8, #8] <== NOT EXECUTED
continue;
#else
(void) rtems_rate_monotonic_get_status( id, &the_status );
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
a000a650: e28da070 add sl, sp, #112 ; 0x70 <== 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 );
a000a654: e28d9068 add r9, sp, #104 ; 0x68 <== NOT EXECUTED
{
#ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
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;
a000a658: e58d3014 str r3, [sp, #20] <== 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 ;
a000a65c: ea00004d b a000a798 <rtems_rate_monotonic_report_statistics_with_plugin+0x1ac><== NOT EXECUTED
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
status = rtems_rate_monotonic_get_statistics( id, &the_stats );
a000a660: e1a00006 mov r0, r6 <== NOT EXECUTED a000a664: e1a01007 mov r1, r7 <== NOT EXECUTED a000a668: eb001802 bl a0010678 <rtems_rate_monotonic_get_statistics> <== NOT EXECUTED
if ( status != RTEMS_SUCCESSFUL )
a000a66c: e3500000 cmp r0, #0 <== NOT EXECUTED a000a670: 1a000047 bne a000a794 <rtems_rate_monotonic_report_statistics_with_plugin+0x1a8><== 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 );
a000a674: e28d1050 add r1, sp, #80 ; 0x50 <== NOT EXECUTED a000a678: e1a00006 mov r0, r6 <== NOT EXECUTED a000a67c: eb00182a bl a001072c <rtems_rate_monotonic_get_status> <== NOT EXECUTED
#endif
rtems_object_get_name( the_status.owner, sizeof(name), name );
a000a680: e3a01005 mov r1, #5 <== NOT EXECUTED a000a684: e1a0200a mov r2, sl <== NOT EXECUTED a000a688: e59d0050 ldr r0, [sp, #80] ; 0x50 <== NOT EXECUTED a000a68c: eb0000a8 bl a000a934 <rtems_object_get_name> <== NOT EXECUTED
/*
* Print part of report line that is not dependent on granularity
*/
(*print)( context,
a000a690: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED a000a694: e59f1128 ldr r1, [pc, #296] ; a000a7c4 <rtems_rate_monotonic_report_statistics_with_plugin+0x1d8><== NOT EXECUTED a000a698: e1a00005 mov r0, r5 <== NOT EXECUTED a000a69c: e58d3000 str r3, [sp] <== NOT EXECUTED a000a6a0: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED a000a6a4: e1a02006 mov r2, r6 <== NOT EXECUTED a000a6a8: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000a6ac: e1a0300a mov r3, sl <== NOT EXECUTED a000a6b0: e12fff34 blx r4 <== NOT EXECUTED
);
/*
* If the count is zero, don't print statistics
*/
if (the_stats.count == 0) {
a000a6b4: e59d1018 ldr r1, [sp, #24] <== NOT EXECUTED a000a6b8: e3510000 cmp r1, #0 <== NOT EXECUTED a000a6bc: 1a000003 bne a000a6d0 <rtems_rate_monotonic_report_statistics_with_plugin+0xe4><== NOT EXECUTED
(*print)( context, "\n" );
a000a6c0: e1a00005 mov r0, r5 <== NOT EXECUTED a000a6c4: e59f10fc ldr r1, [pc, #252] ; a000a7c8 <rtems_rate_monotonic_report_statistics_with_plugin+0x1dc><== NOT EXECUTED a000a6c8: e12fff34 blx r4 <== NOT EXECUTED
continue;
a000a6cc: ea000030 b a000a794 <rtems_rate_monotonic_report_statistics_with_plugin+0x1a8><== 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 );
a000a6d0: e1a02009 mov r2, r9 <== NOT EXECUTED a000a6d4: e59d0010 ldr r0, [sp, #16] <== NOT EXECUTED a000a6d8: eb000d99 bl a000dd44 <_Timespec_Divide_by_integer> <== NOT EXECUTED
(*print)( context,
a000a6dc: e59d0024 ldr r0, [sp, #36] ; 0x24 <== NOT EXECUTED a000a6e0: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a6e4: eb0045d5 bl a001be40 <__aeabi_idiv> <== NOT EXECUTED a000a6e8: e59d3028 ldr r3, [sp, #40] ; 0x28 <== NOT EXECUTED a000a6ec: e1a0b000 mov fp, r0 <== NOT EXECUTED a000a6f0: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a6f4: e59d002c ldr r0, [sp, #44] ; 0x2c <== NOT EXECUTED a000a6f8: e58d3000 str r3, [sp] <== NOT EXECUTED a000a6fc: eb0045cf bl a001be40 <__aeabi_idiv> <== NOT EXECUTED a000a700: e59d3068 ldr r3, [sp, #104] ; 0x68 <== NOT EXECUTED a000a704: e58d0004 str r0, [sp, #4] <== NOT EXECUTED a000a708: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a70c: e59d006c ldr r0, [sp, #108] ; 0x6c <== NOT EXECUTED a000a710: e58d3008 str r3, [sp, #8] <== NOT EXECUTED a000a714: eb0045c9 bl a001be40 <__aeabi_idiv> <== NOT EXECUTED a000a718: e1a0300b mov r3, fp <== NOT EXECUTED a000a71c: e58d000c str r0, [sp, #12] <== NOT EXECUTED a000a720: e59f10a4 ldr r1, [pc, #164] ; a000a7cc <rtems_rate_monotonic_report_statistics_with_plugin+0x1e0><== NOT EXECUTED a000a724: e59d2020 ldr r2, [sp, #32] <== NOT EXECUTED a000a728: e1a00005 mov r0, r5 <== NOT EXECUTED a000a72c: e12fff34 blx r4 <== 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);
a000a730: e1a02009 mov r2, r9 <== NOT EXECUTED a000a734: e59d0014 ldr r0, [sp, #20] <== NOT EXECUTED a000a738: e59d1018 ldr r1, [sp, #24] <== NOT EXECUTED a000a73c: eb000d80 bl a000dd44 <_Timespec_Divide_by_integer> <== NOT EXECUTED
(*print)( context,
a000a740: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a744: e59d003c ldr r0, [sp, #60] ; 0x3c <== NOT EXECUTED a000a748: eb0045bc bl a001be40 <__aeabi_idiv> <== NOT EXECUTED a000a74c: e59d3040 ldr r3, [sp, #64] ; 0x40 <== NOT EXECUTED a000a750: e1a0b000 mov fp, r0 <== NOT EXECUTED a000a754: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a758: e59d0044 ldr r0, [sp, #68] ; 0x44 <== NOT EXECUTED a000a75c: e58d3000 str r3, [sp] <== NOT EXECUTED a000a760: eb0045b6 bl a001be40 <__aeabi_idiv> <== NOT EXECUTED a000a764: e59d3068 ldr r3, [sp, #104] ; 0x68 <== NOT EXECUTED a000a768: e58d0004 str r0, [sp, #4] <== NOT EXECUTED a000a76c: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED a000a770: e59d006c ldr r0, [sp, #108] ; 0x6c <== NOT EXECUTED a000a774: e58d3008 str r3, [sp, #8] <== NOT EXECUTED a000a778: eb0045b0 bl a001be40 <__aeabi_idiv> <== NOT EXECUTED a000a77c: e59f104c ldr r1, [pc, #76] ; a000a7d0 <rtems_rate_monotonic_report_statistics_with_plugin+0x1e4><== NOT EXECUTED a000a780: e58d000c str r0, [sp, #12] <== NOT EXECUTED a000a784: e59d2038 ldr r2, [sp, #56] ; 0x38 <== NOT EXECUTED a000a788: e1a00005 mov r0, r5 <== NOT EXECUTED a000a78c: e1a0300b mov r3, fp <== NOT EXECUTED a000a790: e12fff34 blx r4 <== 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 ;
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
a000a794: e2866001 add r6, r6, #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 ;
a000a798: e598300c ldr r3, [r8, #12] <== NOT EXECUTED a000a79c: e1560003 cmp r6, r3 <== NOT EXECUTED a000a7a0: 9affffae bls a000a660 <rtems_rate_monotonic_report_statistics_with_plugin+0x74><== NOT EXECUTED
the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
);
#endif
}
}
}
a000a7a4: e28dd078 add sp, sp, #120 ; 0x78 <== NOT EXECUTED
a000a7a8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a000a7e4 <rtems_rate_monotonic_reset_all_statistics>:
a000a7e4: e59f3038 ldr r3, [pc, #56] ; a000a824 <rtems_rate_monotonic_reset_all_statistics+0x40><== NOT EXECUTED
/*
* rtems_rate_monotonic_reset_all_statistics
*/
void rtems_rate_monotonic_reset_all_statistics( void )
{
a000a7e8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a000a7ec: e5932000 ldr r2, [r3] <== NOT EXECUTED
a000a7f0: e2822001 add r2, r2, #1 <== NOT EXECUTED
a000a7f4: 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 ;
a000a7f8: e59f5028 ldr r5, [pc, #40] ; a000a828 <rtems_rate_monotonic_reset_all_statistics+0x44><== NOT EXECUTED a000a7fc: e5954008 ldr r4, [r5, #8] <== NOT EXECUTED a000a800: ea000002 b a000a810 <rtems_rate_monotonic_reset_all_statistics+0x2c><== NOT EXECUTED
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
(void) rtems_rate_monotonic_reset_statistics( id );
a000a804: e1a00004 mov r0, r4 <== NOT EXECUTED a000a808: eb000007 bl a000a82c <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 ;
id <= _Rate_monotonic_Information.maximum_id ;
id++ ) {
a000a80c: 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 ;
a000a810: e595300c ldr r3, [r5, #12] <== NOT EXECUTED a000a814: e1540003 cmp r4, r3 <== NOT EXECUTED a000a818: 9afffff9 bls a000a804 <rtems_rate_monotonic_reset_all_statistics+0x20><== NOT EXECUTED
/*
* Done so exit thread dispatching disabled critical section.
*/
_Thread_Enable_dispatch();
}
a000a81c: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
}
/*
* Done so exit thread dispatching disabled critical section.
*/
_Thread_Enable_dispatch();
a000a820: ea000a90 b a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
a000a82c <rtems_rate_monotonic_reset_statistics>:
*/
rtems_status_code rtems_rate_monotonic_reset_statistics(
rtems_id id
)
{
a000a82c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a000a830: e1a01000 mov r1, r0 <== NOT EXECUTED
a000a834: e1a0200d mov r2, sp <== NOT EXECUTED
a000a838: e59f0044 ldr r0, [pc, #68] ; a000a884 <rtems_rate_monotonic_reset_statistics+0x58><== NOT EXECUTED
a000a83c: eb00075e bl a000c5bc <_Objects_Get> <== NOT EXECUTED
Objects_Locations location;
Rate_monotonic_Control *the_period;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
a000a840: e59d5000 ldr r5, [sp] <== NOT EXECUTED a000a844: e1a04000 mov r4, r0 <== NOT EXECUTED a000a848: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000a84c: 13a00004 movne r0, #4 <== NOT EXECUTED
{
Objects_Locations location;
Rate_monotonic_Control *the_period;
the_period = _Rate_monotonic_Get( id, &location );
switch ( location ) {
a000a850: 1a00000a bne a000a880 <rtems_rate_monotonic_reset_statistics+0x54><== NOT EXECUTED
case OBJECTS_LOCAL:
_Rate_monotonic_Reset_statistics( the_period );
a000a854: e1a01005 mov r1, r5 <== NOT EXECUTED a000a858: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED a000a85c: e2840054 add r0, r4, #84 ; 0x54 <== NOT EXECUTED a000a860: eb00238b bl a0013694 <memset> <== NOT EXECUTED a000a864: e3e03102 mvn r3, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000a868: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED a000a86c: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED a000a870: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED a000a874: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a878: eb000a7a bl a000d268 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000a87c: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a000a880: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0016b14 <rtems_region_create>:
uintptr_t length,
uintptr_t page_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
a0016b14: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
rtems_status_code return_status;
Region_Control *the_region;
if ( !rtems_is_name_valid( name ) )
a0016b18: e2509000 subs r9, r0, #0 <== NOT EXECUTED
uintptr_t length,
uintptr_t page_size,
rtems_attribute attribute_set,
rtems_id *id
)
{
a0016b1c: e1a06001 mov r6, r1 <== NOT EXECUTED a0016b20: e1a07002 mov r7, r2 <== NOT EXECUTED a0016b24: e1a08003 mov r8, r3 <== NOT EXECUTED a0016b28: e59da024 ldr sl, [sp, #36] ; 0x24 <== NOT EXECUTED a0016b2c: e59db028 ldr fp, [sp, #40] ; 0x28 <== NOT EXECUTED
rtems_status_code return_status;
Region_Control *the_region;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
a0016b30: 03a06003 moveq r6, #3 <== NOT EXECUTED
)
{
rtems_status_code return_status;
Region_Control *the_region;
if ( !rtems_is_name_valid( name ) )
a0016b34: 0a000031 beq a0016c00 <rtems_region_create+0xec> <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !starting_address )
a0016b38: e3560000 cmp r6, #0 <== NOT EXECUTED a0016b3c: 0a00002e beq a0016bfc <rtems_region_create+0xe8> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !id )
a0016b40: e35b0000 cmp fp, #0 <== NOT EXECUTED a0016b44: 0a00002c beq a0016bfc <rtems_region_create+0xe8> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator(); /* to prevent deletion */
a0016b48: e59f30b8 ldr r3, [pc, #184] ; a0016c08 <rtems_region_create+0xf4><== NOT EXECUTED
* 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 );
a0016b4c: e59f50b8 ldr r5, [pc, #184] ; a0016c0c <rtems_region_create+0xf8><== NOT EXECUTED a0016b50: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016b54: eb00093a bl a0019044 <_API_Mutex_Lock> <== NOT EXECUTED a0016b58: e1a00005 mov r0, r5 <== NOT EXECUTED a0016b5c: eb000f67 bl a001a900 <_Objects_Allocate> <== NOT EXECUTED
the_region = _Region_Allocate();
if ( !the_region )
a0016b60: e2504000 subs r4, r0, #0 <== NOT EXECUTED
return_status = RTEMS_TOO_MANY;
a0016b64: 03a06005 moveq r6, #5 <== NOT EXECUTED
_RTEMS_Lock_allocator(); /* to prevent deletion */
the_region = _Region_Allocate();
if ( !the_region )
a0016b68: 0a00001f beq a0016bec <rtems_region_create+0xd8> <== NOT EXECUTED
return_status = RTEMS_TOO_MANY;
else {
the_region->maximum_segment_size = _Heap_Initialize(
a0016b6c: e2840068 add r0, r4, #104 ; 0x68 <== NOT EXECUTED a0016b70: e1a01006 mov r1, r6 <== NOT EXECUTED a0016b74: e1a02007 mov r2, r7 <== NOT EXECUTED a0016b78: e1a03008 mov r3, r8 <== NOT EXECUTED a0016b7c: eb000e40 bl a001a484 <_Heap_Initialize> <== NOT EXECUTED
&the_region->Memory, starting_address, length, page_size
);
if ( !the_region->maximum_segment_size ) {
a0016b80: e3500000 cmp r0, #0 <== NOT EXECUTED
if ( !the_region )
return_status = RTEMS_TOO_MANY;
else {
the_region->maximum_segment_size = _Heap_Initialize(
a0016b84: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED
&the_region->Memory, starting_address, length, page_size
);
if ( !the_region->maximum_segment_size ) {
a0016b88: 1a000004 bne a0016ba0 <rtems_region_create+0x8c> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Region_Free (
Region_Control *the_region
)
{
_Objects_Free( &_Region_Information, &the_region->Object );
a0016b8c: e1a00005 mov r0, r5 <== NOT EXECUTED a0016b90: e1a01004 mov r1, r4 <== NOT EXECUTED a0016b94: eb001020 bl a001ac1c <_Objects_Free> <== NOT EXECUTED
_Region_Free( the_region );
return_status = RTEMS_INVALID_SIZE;
a0016b98: e3a06008 mov r6, #8 <== NOT EXECUTED a0016b9c: ea000012 b a0016bec <rtems_region_create+0xd8> <== NOT EXECUTED
}
else {
the_region->starting_address = starting_address;
a0016ba0: e5846050 str r6, [r4, #80] ; 0x50 <== NOT EXECUTED
the_region->length = length;
the_region->page_size = page_size;
the_region->attribute_set = attribute_set;
the_region->number_of_used_blocks = 0;
_Thread_queue_Initialize(
a0016ba4: e31a0004 tst sl, #4 <== 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;
a0016ba8: e3a06000 mov r6, #0 <== NOT EXECUTED
_Thread_queue_Initialize(
a0016bac: 03a01000 moveq r1, #0 <== NOT EXECUTED a0016bb0: 13a01001 movne r1, #1 <== NOT EXECUTED a0016bb4: e3a02040 mov r2, #64 ; 0x40 <== NOT EXECUTED a0016bb8: e3a03006 mov r3, #6 <== NOT EXECUTED
}
else {
the_region->starting_address = starting_address;
the_region->length = length;
a0016bbc: e5847054 str r7, [r4, #84] ; 0x54 <== NOT EXECUTED
the_region->page_size = page_size;
a0016bc0: e5848058 str r8, [r4, #88] ; 0x58 <== NOT EXECUTED
the_region->attribute_set = attribute_set;
a0016bc4: e584a060 str sl, [r4, #96] ; 0x60 <== NOT EXECUTED
the_region->number_of_used_blocks = 0;
a0016bc8: e5846064 str r6, [r4, #100] ; 0x64 <== NOT EXECUTED
_Thread_queue_Initialize(
a0016bcc: e2840010 add r0, r4, #16 <== NOT EXECUTED a0016bd0: eb00156d bl a001c18c <_Thread_queue_Initialize> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a0016bd4: e595201c ldr r2, [r5, #28] <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
a0016bd8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0016bdc: e1d410b8 ldrh r1, [r4, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a0016be0: e7824101 str r4, [r2, r1, lsl #2] <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
a0016be4: e584900c str r9, [r4, #12] <== NOT EXECUTED
&_Region_Information,
&the_region->Object,
(Objects_Name) name
);
*id = the_region->Object.id;
a0016be8: e58b3000 str r3, [fp] <== NOT EXECUTED
return_status = RTEMS_SUCCESSFUL;
}
}
_RTEMS_Unlock_allocator();
a0016bec: e59f3014 ldr r3, [pc, #20] ; a0016c08 <rtems_region_create+0xf4><== NOT EXECUTED a0016bf0: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016bf4: eb00092b bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
a0016bf8: ea000000 b a0016c00 <rtems_region_create+0xec> <== NOT EXECUTED
if ( !starting_address )
return RTEMS_INVALID_ADDRESS;
if ( !id )
return RTEMS_INVALID_ADDRESS;
a0016bfc: e3a06009 mov r6, #9 <== NOT EXECUTED
}
}
_RTEMS_Unlock_allocator();
return return_status;
}
a0016c00: e1a00006 mov r0, r6 <== NOT EXECUTED
a0016c04: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a0016c10 <rtems_region_delete>:
*/
rtems_status_code rtems_region_delete(
rtems_id id
)
{
a0016c10: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
_RTEMS_Lock_allocator();
a0016c14: e59f3068 ldr r3, [pc, #104] ; a0016c84 <rtems_region_delete+0x74><== NOT EXECUTED
*/
rtems_status_code rtems_region_delete(
rtems_id id
)
{
a0016c18: e1a04000 mov r4, r0 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
_RTEMS_Lock_allocator();
a0016c1c: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016c20: eb000907 bl a0019044 <_API_Mutex_Lock> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Region_Control *)
_Objects_Get_no_protection( &_Region_Information, id, location );
a0016c24: e1a01004 mov r1, r4 <== NOT EXECUTED a0016c28: e59f0058 ldr r0, [pc, #88] ; a0016c88 <rtems_region_delete+0x78><== NOT EXECUTED a0016c2c: e1a0200d mov r2, sp <== NOT EXECUTED a0016c30: eb001051 bl a001ad7c <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
a0016c34: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0016c38: e1a04000 mov r4, r0 <== NOT EXECUTED a0016c3c: e3530000 cmp r3, #0 <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
a0016c40: 13a05004 movne r5, #4 <== NOT EXECUTED
Region_Control *the_region;
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
a0016c44: 1a000009 bne a0016c70 <rtems_region_delete+0x60> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Region_Debug_Walk( the_region, 5 );
if ( the_region->number_of_used_blocks != 0 )
a0016c48: e5905064 ldr r5, [r0, #100] ; 0x64 <== NOT EXECUTED a0016c4c: e3550000 cmp r5, #0 <== NOT EXECUTED
return_status = RTEMS_RESOURCE_IN_USE;
a0016c50: 13a0500c movne r5, #12 <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
_Region_Debug_Walk( the_region, 5 );
if ( the_region->number_of_used_blocks != 0 )
a0016c54: 1a000005 bne a0016c70 <rtems_region_delete+0x60> <== NOT EXECUTED
return_status = RTEMS_RESOURCE_IN_USE;
else {
_Objects_Close( &_Region_Information, &the_region->Object );
a0016c58: e59f0028 ldr r0, [pc, #40] ; a0016c88 <rtems_region_delete+0x78><== NOT EXECUTED a0016c5c: e1a01004 mov r1, r4 <== NOT EXECUTED a0016c60: eb000f48 bl a001a988 <_Objects_Close> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Region_Free (
Region_Control *the_region
)
{
_Objects_Free( &_Region_Information, &the_region->Object );
a0016c64: e59f001c ldr r0, [pc, #28] ; a0016c88 <rtems_region_delete+0x78><== NOT EXECUTED a0016c68: e1a01004 mov r1, r4 <== NOT EXECUTED a0016c6c: eb000fea bl a001ac1c <_Objects_Free> <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
a0016c70: e59f300c ldr r3, [pc, #12] ; a0016c84 <rtems_region_delete+0x74><== NOT EXECUTED a0016c74: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016c78: eb00090a bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status; }
a0016c7c: e1a00005 mov r0, r5 <== NOT EXECUTED
a0016c80: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0016c8c <rtems_region_extend>:
rtems_status_code rtems_region_extend(
rtems_id id,
void *starting_address,
uintptr_t length
)
{
a0016c8c: e92d40f3 push {r0, r1, r4, r5, r6, r7, lr} <== NOT EXECUTED
bool extend_ok;
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
if ( !starting_address )
a0016c90: e2517000 subs r7, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_region_extend(
rtems_id id,
void *starting_address,
uintptr_t length
)
{
a0016c94: e1a04000 mov r4, r0 <== NOT EXECUTED a0016c98: e1a06002 mov r6, r2 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
if ( !starting_address )
return RTEMS_INVALID_ADDRESS;
a0016c9c: 03a05009 moveq r5, #9 <== NOT EXECUTED
bool extend_ok;
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
if ( !starting_address )
a0016ca0: 0a00001d beq a0016d1c <rtems_region_extend+0x90> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator(); /* to prevent deletion */
a0016ca4: e59f3078 ldr r3, [pc, #120] ; a0016d24 <rtems_region_extend+0x98><== NOT EXECUTED a0016ca8: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016cac: eb0008e4 bl a0019044 <_API_Mutex_Lock> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Region_Control *)
_Objects_Get_no_protection( &_Region_Information, id, location );
a0016cb0: e1a01004 mov r1, r4 <== NOT EXECUTED a0016cb4: e59f006c ldr r0, [pc, #108] ; a0016d28 <rtems_region_extend+0x9c><== NOT EXECUTED a0016cb8: e1a0200d mov r2, sp <== NOT EXECUTED a0016cbc: eb00102e bl a001ad7c <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
a0016cc0: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0016cc4: e1a04000 mov r4, r0 <== NOT EXECUTED a0016cc8: e3550000 cmp r5, #0 <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
a0016ccc: 13a05004 movne r5, #4 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator(); /* to prevent deletion */
the_region = _Region_Get( id, &location );
switch ( location ) {
a0016cd0: 1a00000e bne a0016d10 <rtems_region_extend+0x84> <== NOT EXECUTED
case OBJECTS_LOCAL:
extend_ok = _Heap_Extend(
a0016cd4: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0016cd8: e1a01007 mov r1, r7 <== NOT EXECUTED a0016cdc: e1a02006 mov r2, r6 <== NOT EXECUTED a0016ce0: e28d3004 add r3, sp, #4 <== NOT EXECUTED a0016ce4: eb000c20 bl a0019d6c <_Heap_Extend> <== NOT EXECUTED
starting_address,
length,
&amount_extended
);
if ( extend_ok ) {
a0016ce8: 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;
a0016cec: 03a05009 moveq r5, #9 <== NOT EXECUTED
starting_address,
length,
&amount_extended
);
if ( extend_ok ) {
a0016cf0: 0a000006 beq a0016d10 <rtems_region_extend+0x84> <== NOT EXECUTED
the_region->length += amount_extended;
a0016cf4: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0016cf8: e5942054 ldr r2, [r4, #84] ; 0x54 <== NOT EXECUTED a0016cfc: e0822003 add r2, r2, r3 <== NOT EXECUTED a0016d00: e5842054 str r2, [r4, #84] ; 0x54 <== NOT EXECUTED
the_region->maximum_segment_size += amount_extended;
a0016d04: e594205c ldr r2, [r4, #92] ; 0x5c <== NOT EXECUTED a0016d08: e0823003 add r3, r2, r3 <== NOT EXECUTED a0016d0c: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
a0016d10: e59f300c ldr r3, [pc, #12] ; a0016d24 <rtems_region_extend+0x98><== NOT EXECUTED a0016d14: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016d18: eb0008e2 bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status; }
a0016d1c: e1a00005 mov r0, r5 <== NOT EXECUTED
a0016d20: e8bd80fc pop {r2, r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a0016d2c <rtems_region_get_free_information>:
rtems_status_code rtems_region_get_free_information(
rtems_id id,
Heap_Information_block *the_info
)
{
a0016d2c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
a0016d30: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_region_get_free_information(
rtems_id id,
Heap_Information_block *the_info
)
{
a0016d34: e1a05000 mov r5, r0 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
a0016d38: 03a05009 moveq r5, #9 <== NOT EXECUTED
{
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
a0016d3c: 0a000013 beq a0016d90 <rtems_region_get_free_information+0x64><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
a0016d40: e59f3050 ldr r3, [pc, #80] ; a0016d98 <rtems_region_get_free_information+0x6c><== NOT EXECUTED a0016d44: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016d48: eb0008bd bl a0019044 <_API_Mutex_Lock> <== NOT EXECUTED a0016d4c: e1a01005 mov r1, r5 <== NOT EXECUTED a0016d50: e59f0044 ldr r0, [pc, #68] ; a0016d9c <rtems_region_get_free_information+0x70><== NOT EXECUTED a0016d54: e1a0200d mov r2, sp <== NOT EXECUTED a0016d58: eb001007 bl a001ad7c <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
a0016d5c: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0016d60: e3550000 cmp r5, #0 <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
a0016d64: 13a05004 movne r5, #4 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
a0016d68: 1a000005 bne a0016d84 <rtems_region_get_free_information+0x58><== NOT EXECUTED
case OBJECTS_LOCAL:
the_info->Used.number = 0;
a0016d6c: e584500c str r5, [r4, #12] <== NOT EXECUTED
the_info->Used.total = 0;
a0016d70: e5845014 str r5, [r4, #20] <== NOT EXECUTED
the_info->Used.largest = 0;
a0016d74: e5845010 str r5, [r4, #16] <== NOT EXECUTED
_Heap_Get_free_information( &the_region->Memory, &the_info->Free );
a0016d78: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0016d7c: e1a01004 mov r1, r4 <== NOT EXECUTED a0016d80: eb000d28 bl a001a228 <_Heap_Get_free_information> <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
a0016d84: e59f300c ldr r3, [pc, #12] ; a0016d98 <rtems_region_get_free_information+0x6c><== NOT EXECUTED a0016d88: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016d8c: eb0008c5 bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status; }
a0016d90: e1a00005 mov r0, r5 <== NOT EXECUTED
a0016d94: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0016da0 <rtems_region_get_information>:
rtems_status_code rtems_region_get_information(
rtems_id id,
Heap_Information_block *the_info
)
{
a0016da0: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
a0016da4: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_region_get_information(
rtems_id id,
Heap_Information_block *the_info
)
{
a0016da8: e1a05000 mov r5, r0 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
a0016dac: 03a05009 moveq r5, #9 <== NOT EXECUTED
{
Objects_Locations location;
rtems_status_code return_status;
register Region_Control *the_region;
if ( !the_info )
a0016db0: 0a000010 beq a0016df8 <rtems_region_get_information+0x58> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
a0016db4: e59f3044 ldr r3, [pc, #68] ; a0016e00 <rtems_region_get_information+0x60><== NOT EXECUTED a0016db8: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016dbc: eb0008a0 bl a0019044 <_API_Mutex_Lock> <== NOT EXECUTED a0016dc0: e1a01005 mov r1, r5 <== NOT EXECUTED a0016dc4: e59f0038 ldr r0, [pc, #56] ; a0016e04 <rtems_region_get_information+0x64><== NOT EXECUTED a0016dc8: e1a0200d mov r2, sp <== NOT EXECUTED a0016dcc: eb000fea bl a001ad7c <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
a0016dd0: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0016dd4: e3550000 cmp r5, #0 <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
a0016dd8: 13a05004 movne r5, #4 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
a0016ddc: 1a000002 bne a0016dec <rtems_region_get_information+0x4c> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Heap_Get_information( &the_region->Memory, the_info );
a0016de0: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0016de4: e1a01004 mov r1, r4 <== NOT EXECUTED a0016de8: eb000d22 bl a001a278 <_Heap_Get_information> <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
a0016dec: e59f300c ldr r3, [pc, #12] ; a0016e00 <rtems_region_get_information+0x60><== NOT EXECUTED a0016df0: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016df4: eb0008ab bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status; }
a0016df8: e1a00005 mov r0, r5 <== NOT EXECUTED
a0016dfc: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0016e08 <rtems_region_get_segment>:
uintptr_t size,
rtems_option option_set,
rtems_interval timeout,
void **segment
)
{
a0016e08: e92d4ff3 push {r0, r1, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
a0016e0c: e59d802c ldr r8, [sp, #44] ; 0x2c <== NOT EXECUTED
a0016e10: e1a09000 mov r9, r0 <== NOT EXECUTED
a0016e14: e1a06001 mov r6, r1 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
void *the_segment;
if ( !segment )
a0016e18: e3580000 cmp r8, #0 <== NOT EXECUTED
uintptr_t size,
rtems_option option_set,
rtems_interval timeout,
void **segment
)
{
a0016e1c: e1a0b002 mov fp, r2 <== NOT EXECUTED a0016e20: e58d3000 str r3, [sp] <== NOT EXECUTED
rtems_status_code return_status;
Region_Control *the_region;
void *the_segment;
if ( !segment )
return RTEMS_INVALID_ADDRESS;
a0016e24: 03a07009 moveq r7, #9 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status;
Region_Control *the_region;
void *the_segment;
if ( !segment )
a0016e28: 0a00003a beq a0016f18 <rtems_region_get_segment+0x110> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
*segment = NULL;
a0016e2c: e3a03000 mov r3, #0 <== NOT EXECUTED
if ( size == 0 )
a0016e30: e1510003 cmp r1, r3 <== NOT EXECUTED
void *the_segment;
if ( !segment )
return RTEMS_INVALID_ADDRESS;
*segment = NULL;
a0016e34: e5883000 str r3, [r8] <== NOT EXECUTED
if ( size == 0 )
return RTEMS_INVALID_SIZE;
a0016e38: 03a07008 moveq r7, #8 <== NOT EXECUTED
if ( !segment )
return RTEMS_INVALID_ADDRESS;
*segment = NULL;
if ( size == 0 )
a0016e3c: 0a000035 beq a0016f18 <rtems_region_get_segment+0x110> <== NOT EXECUTED
return RTEMS_INVALID_SIZE;
_RTEMS_Lock_allocator();
a0016e40: e59fa0d8 ldr sl, [pc, #216] ; a0016f20 <rtems_region_get_segment+0x118><== NOT EXECUTED a0016e44: e59a0000 ldr r0, [sl] <== NOT EXECUTED a0016e48: eb00087d bl a0019044 <_API_Mutex_Lock> <== NOT EXECUTED
executing = _Thread_Executing;
a0016e4c: e59f30d0 ldr r3, [pc, #208] ; a0016f24 <rtems_region_get_segment+0x11c><== NOT EXECUTED a0016e50: e59f00d0 ldr r0, [pc, #208] ; a0016f28 <rtems_region_get_segment+0x120><== NOT EXECUTED a0016e54: e1a01009 mov r1, r9 <== NOT EXECUTED a0016e58: e28d2004 add r2, sp, #4 <== NOT EXECUTED a0016e5c: e5935004 ldr r5, [r3, #4] <== NOT EXECUTED a0016e60: eb000fc5 bl a001ad7c <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
a0016e64: e59d7004 ldr r7, [sp, #4] <== NOT EXECUTED a0016e68: e1a04000 mov r4, r0 <== NOT EXECUTED a0016e6c: e3570000 cmp r7, #0 <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
a0016e70: 13a07004 movne r7, #4 <== NOT EXECUTED
_RTEMS_Lock_allocator();
executing = _Thread_Executing;
the_region = _Region_Get( id, &location );
switch ( location ) {
a0016e74: 1a000024 bne a0016f0c <rtems_region_get_segment+0x104> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( size > the_region->maximum_segment_size )
a0016e78: e590305c ldr r3, [r0, #92] ; 0x5c <== NOT EXECUTED a0016e7c: e1560003 cmp r6, r3 <== NOT EXECUTED
return_status = RTEMS_INVALID_SIZE;
a0016e80: 83a07008 movhi r7, #8 <== NOT EXECUTED
executing = _Thread_Executing;
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( size > the_region->maximum_segment_size )
a0016e84: 8a000020 bhi a0016f0c <rtems_region_get_segment+0x104> <== NOT EXECUTED
* @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 );
a0016e88: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0016e8c: e1a01006 mov r1, r6 <== NOT EXECUTED a0016e90: e1a02007 mov r2, r7 <== NOT EXECUTED a0016e94: e1a03007 mov r3, r7 <== NOT EXECUTED a0016e98: eb000b32 bl a0019b68 <_Heap_Allocate_aligned_with_boundary><== NOT EXECUTED
the_segment = _Region_Allocate_segment( the_region, size );
_Region_Debug_Walk( the_region, 2 );
if ( the_segment ) {
a0016e9c: e3500000 cmp r0, #0 <== NOT EXECUTED
the_region->number_of_used_blocks += 1;
a0016ea0: 15943064 ldrne r3, [r4, #100] ; 0x64 <== NOT EXECUTED a0016ea4: 12833001 addne r3, r3, #1 <== NOT EXECUTED a0016ea8: 15843064 strne r3, [r4, #100] ; 0x64 <== NOT EXECUTED
*segment = the_segment;
a0016eac: 15880000 strne r0, [r8] <== NOT EXECUTED a0016eb0: 1a000015 bne a0016f0c <rtems_region_get_segment+0x104> <== NOT EXECUTED
return_status = RTEMS_SUCCESSFUL;
} else if ( _Options_Is_no_wait( option_set ) ) {
a0016eb4: e31b0001 tst fp, #1 <== NOT EXECUTED
return_status = RTEMS_UNSATISFIED;
a0016eb8: 13a0700d movne r7, #13 <== NOT EXECUTED
if ( the_segment ) {
the_region->number_of_used_blocks += 1;
*segment = the_segment;
return_status = RTEMS_SUCCESSFUL;
} else if ( _Options_Is_no_wait( option_set ) ) {
a0016ebc: 1a000012 bne a0016f0c <rtems_region_get_segment+0x104> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a0016ec0: e59f3064 ldr r3, [pc, #100] ; a0016f2c <rtems_region_get_segment+0x124><== NOT EXECUTED a0016ec4: e5932000 ldr r2, [r3] <== NOT EXECUTED a0016ec8: e2822001 add r2, r2, #1 <== NOT EXECUTED a0016ecc: e5832000 str r2, [r3] <== NOT EXECUTED
* Switch from using the memory allocation mutex to using a
* dispatching disabled critical section. We have to do this
* because this thread is going to block.
*/
_Thread_Disable_dispatch();
_RTEMS_Unlock_allocator();
a0016ed0: e59a0000 ldr r0, [sl] <== NOT EXECUTED a0016ed4: eb000873 bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED
executing->Wait.queue = &the_region->Wait_queue;
a0016ed8: e2840010 add r0, r4, #16 <== 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;
a0016edc: e3a03001 mov r3, #1 <== NOT EXECUTED a0016ee0: e5850044 str r0, [r5, #68] ; 0x44 <== NOT EXECUTED
executing->Wait.id = id;
a0016ee4: e5859020 str r9, [r5, #32] <== NOT EXECUTED
executing->Wait.count = size;
a0016ee8: e5856024 str r6, [r5, #36] ; 0x24 <== NOT EXECUTED
executing->Wait.return_argument = segment;
a0016eec: e5858028 str r8, [r5, #40] ; 0x28 <== NOT EXECUTED
_Thread_queue_Enter_critical_section( &the_region->Wait_queue );
_Thread_queue_Enqueue( &the_region->Wait_queue, timeout );
a0016ef0: e59d1000 ldr r1, [sp] <== NOT EXECUTED a0016ef4: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED a0016ef8: e59f2030 ldr r2, [pc, #48] ; a0016f30 <rtems_region_get_segment+0x128><== NOT EXECUTED a0016efc: eb0013fe bl a001befc <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0016f00: eb0012d8 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return (rtems_status_code) executing->Wait.return_code;
a0016f04: e5957034 ldr r7, [r5, #52] ; 0x34 <== NOT EXECUTED a0016f08: ea000002 b a0016f18 <rtems_region_get_segment+0x110> <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
a0016f0c: e59f300c ldr r3, [pc, #12] ; a0016f20 <rtems_region_get_segment+0x118><== NOT EXECUTED a0016f10: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016f14: eb000863 bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status; }
a0016f18: e1a00007 mov r0, r7 <== NOT EXECUTED
a0016f1c: e8bd8ffc pop {r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a0016f34 <rtems_region_get_segment_size>:
rtems_status_code rtems_region_get_segment_size(
rtems_id id,
void *segment,
uintptr_t *size
)
{
a0016f34: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
register Region_Control *the_region;
if ( !segment )
a0016f38: e2515000 subs r5, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_region_get_segment_size(
rtems_id id,
void *segment,
uintptr_t *size
)
{
a0016f3c: e1a06000 mov r6, r0 <== NOT EXECUTED a0016f40: e1a04002 mov r4, r2 <== NOT EXECUTED
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
register Region_Control *the_region;
if ( !segment )
a0016f44: 0a000019 beq a0016fb0 <rtems_region_get_segment_size+0x7c> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !size )
a0016f48: e3520000 cmp r2, #0 <== NOT EXECUTED a0016f4c: 0a000017 beq a0016fb0 <rtems_region_get_segment_size+0x7c> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
a0016f50: e59f3064 ldr r3, [pc, #100] ; a0016fbc <rtems_region_get_segment_size+0x88><== NOT EXECUTED a0016f54: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016f58: eb000839 bl a0019044 <_API_Mutex_Lock> <== NOT EXECUTED a0016f5c: e59f005c ldr r0, [pc, #92] ; a0016fc0 <rtems_region_get_segment_size+0x8c><== NOT EXECUTED a0016f60: e1a01006 mov r1, r6 <== NOT EXECUTED a0016f64: e1a0200d mov r2, sp <== NOT EXECUTED a0016f68: eb000f83 bl a001ad7c <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
a0016f6c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0016f70: e3530000 cmp r3, #0 <== NOT EXECUTED a0016f74: 0a000002 beq a0016f84 <rtems_region_get_segment_size+0x50> <== NOT EXECUTED
void *segment,
uintptr_t *size
)
{
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
a0016f78: e3530001 cmp r3, #1 <== NOT EXECUTED a0016f7c: 03a04004 moveq r4, #4 <== NOT EXECUTED a0016f80: ea000005 b a0016f9c <rtems_region_get_segment_size+0x68> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
case OBJECTS_LOCAL:
if ( !_Heap_Size_of_alloc_area( &the_region->Memory, segment, size ) )
a0016f84: e1a02004 mov r2, r4 <== NOT EXECUTED a0016f88: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0016f8c: e1a01005 mov r1, r5 <== NOT EXECUTED a0016f90: eb000e1d bl a001a80c <_Heap_Size_of_alloc_area> <== NOT EXECUTED
void *segment,
uintptr_t *size
)
{
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
a0016f94: e3500000 cmp r0, #0 <== NOT EXECUTED a0016f98: 03a04009 moveq r4, #9 <== NOT EXECUTED
case OBJECTS_ERROR:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
a0016f9c: e59f3018 ldr r3, [pc, #24] ; a0016fbc <rtems_region_get_segment_size+0x88><== NOT EXECUTED
void *segment,
uintptr_t *size
)
{
Objects_Locations location;
rtems_status_code return_status = RTEMS_SUCCESSFUL;
a0016fa0: 13a04000 movne r4, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
a0016fa4: e5930000 ldr r0, [r3] <== NOT EXECUTED a0016fa8: eb00083e bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
a0016fac: ea000000 b a0016fb4 <rtems_region_get_segment_size+0x80> <== NOT EXECUTED
if ( !segment )
return RTEMS_INVALID_ADDRESS;
if ( !size )
return RTEMS_INVALID_ADDRESS;
a0016fb0: e3a04009 mov r4, #9 <== NOT EXECUTED
break;
}
_RTEMS_Unlock_allocator();
return return_status;
}
a0016fb4: e1a00004 mov r0, r4 <== NOT EXECUTED
a0016fb8: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a0016fc4 <rtems_region_ident>:
rtems_status_code rtems_region_ident(
rtems_name name,
rtems_id *id
)
{
a0016fc4: e1a02000 mov r2, r0 <== NOT EXECUTED
a0016fc8: e1a03001 mov r3, r1 <== NOT EXECUTED
a0016fcc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
a0016fd0: e1a01002 mov r1, r2 <== NOT EXECUTED a0016fd4: e59f0010 ldr r0, [pc, #16] ; a0016fec <rtems_region_ident+0x28><== NOT EXECUTED a0016fd8: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a0016fdc: eb000fd2 bl a001af2c <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
a0016fe0: e59f3008 ldr r3, [pc, #8] ; a0016ff0 <rtems_region_ident+0x2c><== NOT EXECUTED
a0016fe4: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
a0016fe8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0016ff4 <rtems_region_resize_segment>:
rtems_id id,
void *segment,
uintptr_t size,
uintptr_t *old_size
)
{
a0016ff4: e92d41ff push {r0, r1, r2, r3, 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 )
a0016ff8: e2538000 subs r8, r3, #0 <== NOT EXECUTED
rtems_id id,
void *segment,
uintptr_t size,
uintptr_t *old_size
)
{
a0016ffc: e1a05000 mov r5, r0 <== NOT EXECUTED a0017000: e1a07001 mov r7, r1 <== NOT EXECUTED a0017004: e1a06002 mov r6, r2 <== NOT EXECUTED
rtems_status_code return_status;
Heap_Resize_status status;
register Region_Control *the_region;
if ( !old_size )
return RTEMS_INVALID_ADDRESS;
a0017008: 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 )
a001700c: 0a000022 beq a001709c <rtems_region_resize_segment+0xa8> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
_RTEMS_Lock_allocator();
a0017010: e59f408c ldr r4, [pc, #140] ; a00170a4 <rtems_region_resize_segment+0xb0><== NOT EXECUTED a0017014: e5940000 ldr r0, [r4] <== NOT EXECUTED a0017018: eb000809 bl a0019044 <_API_Mutex_Lock> <== NOT EXECUTED a001701c: e1a01005 mov r1, r5 <== NOT EXECUTED a0017020: e59f0080 ldr r0, [pc, #128] ; a00170a8 <rtems_region_resize_segment+0xb4><== NOT EXECUTED a0017024: e28d2008 add r2, sp, #8 <== NOT EXECUTED a0017028: eb000f53 bl a001ad7c <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
a001702c: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0017030: e1a05000 mov r5, r0 <== NOT EXECUTED a0017034: e3530000 cmp r3, #0 <== NOT EXECUTED a0017038: 1a000014 bne a0017090 <rtems_region_resize_segment+0x9c> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Region_Debug_Walk( the_region, 7 );
status = _Heap_Resize_block(
a001703c: e28d300c add r3, sp, #12 <== NOT EXECUTED a0017040: e58d3000 str r3, [sp] <== NOT EXECUTED a0017044: e1a02006 mov r2, r6 <== NOT EXECUTED a0017048: e28d3004 add r3, sp, #4 <== NOT EXECUTED a001704c: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a0017050: e1a01007 mov r1, r7 <== NOT EXECUTED a0017054: eb000d9d bl a001a6d0 <_Heap_Resize_block> <== NOT EXECUTED
segment,
(uint32_t) size,
&osize,
&avail_size
);
*old_size = (uint32_t) osize;
a0017058: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED
_Region_Debug_Walk( the_region, 8 );
if ( status == HEAP_RESIZE_SUCCESSFUL )
a001705c: e2506000 subs r6, r0, #0 <== NOT EXECUTED
segment,
(uint32_t) size,
&osize,
&avail_size
);
*old_size = (uint32_t) osize;
a0017060: e5883000 str r3, [r8] <== NOT EXECUTED
_Region_Debug_Walk( the_region, 8 );
if ( status == HEAP_RESIZE_SUCCESSFUL )
a0017064: 1a000003 bne a0017078 <rtems_region_resize_segment+0x84> <== NOT EXECUTED
_Region_Process_queue( the_region ); /* unlocks allocator */
a0017068: e1a00005 mov r0, r5 <== NOT EXECUTED a001706c: eb001ffd bl a001f068 <_Region_Process_queue> <== NOT EXECUTED
else
_RTEMS_Unlock_allocator();
if (status == HEAP_RESIZE_SUCCESSFUL)
return RTEMS_SUCCESSFUL;
a0017070: e1a00006 mov r0, r6 <== NOT EXECUTED a0017074: ea000008 b a001709c <rtems_region_resize_segment+0xa8> <== NOT EXECUTED
_Region_Debug_Walk( the_region, 8 );
if ( status == HEAP_RESIZE_SUCCESSFUL )
_Region_Process_queue( the_region ); /* unlocks allocator */
else
_RTEMS_Unlock_allocator();
a0017078: e5940000 ldr r0, [r4] <== NOT EXECUTED a001707c: eb000809 bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED
if (status == HEAP_RESIZE_SUCCESSFUL)
return RTEMS_SUCCESSFUL;
if (status == HEAP_RESIZE_UNSATISFIED)
return RTEMS_UNSATISFIED;
a0017080: e3560001 cmp r6, #1 <== NOT EXECUTED a0017084: 13a00009 movne r0, #9 <== NOT EXECUTED a0017088: 03a0000d moveq r0, #13 <== NOT EXECUTED a001708c: ea000002 b a001709c <rtems_region_resize_segment+0xa8> <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
a0017090: e5940000 ldr r0, [r4] <== NOT EXECUTED a0017094: eb000803 bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status;
a0017098: e3a00004 mov r0, #4 <== NOT EXECUTED
}
a001709c: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a00170a0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a00170ac <rtems_region_return_segment>:
rtems_status_code rtems_region_return_segment(
rtems_id id,
void *segment
)
{
a00170ac: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
uint32_t size;
#endif
int status;
register Region_Control *the_region;
_RTEMS_Lock_allocator();
a00170b0: e59f3074 ldr r3, [pc, #116] ; a001712c <rtems_region_return_segment+0x80><== NOT EXECUTED
rtems_status_code rtems_region_return_segment(
rtems_id id,
void *segment
)
{
a00170b4: e1a05000 mov r5, r0 <== NOT EXECUTED a00170b8: e1a04001 mov r4, r1 <== NOT EXECUTED
uint32_t size;
#endif
int status;
register Region_Control *the_region;
_RTEMS_Lock_allocator();
a00170bc: e5930000 ldr r0, [r3] <== NOT EXECUTED a00170c0: eb0007df bl a0019044 <_API_Mutex_Lock> <== NOT EXECUTED a00170c4: e1a01005 mov r1, r5 <== NOT EXECUTED a00170c8: e59f0060 ldr r0, [pc, #96] ; a0017130 <rtems_region_return_segment+0x84><== NOT EXECUTED a00170cc: e1a0200d mov r2, sp <== NOT EXECUTED a00170d0: eb000f29 bl a001ad7c <_Objects_Get_no_protection> <== NOT EXECUTED
the_region = _Region_Get( id, &location );
switch ( location ) {
a00170d4: e59d6000 ldr r6, [sp] <== NOT EXECUTED a00170d8: e1a05000 mov r5, r0 <== NOT EXECUTED a00170dc: e3560000 cmp r6, #0 <== NOT EXECUTED
break;
#endif
case OBJECTS_ERROR:
default:
return_status = RTEMS_INVALID_ID;
a00170e0: 13a06004 movne r6, #4 <== NOT EXECUTED
register Region_Control *the_region;
_RTEMS_Lock_allocator();
the_region = _Region_Get( id, &location );
switch ( location ) {
a00170e4: 1a00000b bne a0017118 <rtems_region_return_segment+0x6c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE bool _Region_Free_segment (
Region_Control *the_region,
void *the_segment
)
{
return _Heap_Free( &the_region->Memory, the_segment );
a00170e8: e2800068 add r0, r0, #104 ; 0x68 <== NOT EXECUTED a00170ec: e1a01004 mov r1, r4 <== NOT EXECUTED a00170f0: eb000bd0 bl a001a038 <_Heap_Free> <== NOT EXECUTED
#endif
status = _Region_Free_segment( the_region, segment );
_Region_Debug_Walk( the_region, 4 );
if ( !status )
a00170f4: e3500000 cmp r0, #0 <== NOT EXECUTED
return_status = RTEMS_INVALID_ADDRESS;
a00170f8: 03a06009 moveq r6, #9 <== NOT EXECUTED
#endif
status = _Region_Free_segment( the_region, segment );
_Region_Debug_Walk( the_region, 4 );
if ( !status )
a00170fc: 0a000005 beq a0017118 <rtems_region_return_segment+0x6c> <== NOT EXECUTED
return_status = RTEMS_INVALID_ADDRESS;
else {
the_region->number_of_used_blocks -= 1;
a0017100: e5953064 ldr r3, [r5, #100] ; 0x64 <== NOT EXECUTED
_Region_Process_queue(the_region); /* unlocks allocator */
a0017104: e1a00005 mov r0, r5 <== NOT EXECUTED
_Region_Debug_Walk( the_region, 4 );
if ( !status )
return_status = RTEMS_INVALID_ADDRESS;
else {
the_region->number_of_used_blocks -= 1;
a0017108: e2433001 sub r3, r3, #1 <== NOT EXECUTED a001710c: e5853064 str r3, [r5, #100] ; 0x64 <== NOT EXECUTED
_Region_Process_queue(the_region); /* unlocks allocator */
a0017110: eb001fd4 bl a001f068 <_Region_Process_queue> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0017114: ea000002 b a0017124 <rtems_region_return_segment+0x78> <== NOT EXECUTED
default:
return_status = RTEMS_INVALID_ID;
break;
}
_RTEMS_Unlock_allocator();
a0017118: e59f300c ldr r3, [pc, #12] ; a001712c <rtems_region_return_segment+0x80><== NOT EXECUTED a001711c: e5930000 ldr r0, [r3] <== NOT EXECUTED a0017120: eb0007e0 bl a00190a8 <_API_Mutex_Unlock> <== NOT EXECUTED
return return_status; }
a0017124: e1a00006 mov r0, r6 <== NOT EXECUTED
a0017128: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a0009168 <rtems_semaphore_create>:
uint32_t count,
rtems_attribute attribute_set,
rtems_task_priority priority_ceiling,
rtems_id *id
)
{
a0009168: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, 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 ) )
a000916c: e2507000 subs r7, r0, #0
uint32_t count,
rtems_attribute attribute_set,
rtems_task_priority priority_ceiling,
rtems_id *id
)
{
a0009170: e24dd018 sub sp, sp, #24 a0009174: e1a04001 mov r4, r1 a0009178: e1a08002 mov r8, r2 a000917c: e1a09003 mov r9, r3 a0009180: 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;
a0009184: 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 ) )
a0009188: 0a00005d beq a0009304 <rtems_semaphore_create+0x19c>
return RTEMS_INVALID_NAME;
if ( !id )
a000918c: e3560000 cmp r6, #0
return RTEMS_INVALID_ADDRESS;
a0009190: 03a00009 moveq r0, #9
CORE_mutex_Status mutex_status;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
if ( !id )
a0009194: 0a00005a beq a0009304 <rtems_semaphore_create+0x19c>
return RTEMS_NOT_DEFINED;
} else
#endif
if ( _Attributes_Is_inherit_priority( attribute_set ) ||
a0009198: e21230c0 ands r3, r2, #192 ; 0xc0
a000919c: 0a000006 beq a00091bc <rtems_semaphore_create+0x54>
*/
RTEMS_INLINE_ROUTINE bool _Attributes_Is_binary_semaphore(
rtems_attribute attribute_set
)
{
return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_BINARY_SEMAPHORE);
a00091a0: e2022030 and r2, r2, #48 ; 0x30
_Attributes_Is_priority_ceiling( attribute_set ) ) {
if ( ! (_Attributes_Is_binary_semaphore( attribute_set ) &&
a00091a4: e3520010 cmp r2, #16
a00091a8: 1a000054 bne a0009300 <rtems_semaphore_create+0x198>
a00091ac: e3180004 tst r8, #4
a00091b0: 0a000052 beq a0009300 <rtems_semaphore_create+0x198>
_Attributes_Is_priority( attribute_set ) ) )
return RTEMS_NOT_DEFINED;
}
if ( _Attributes_Is_inherit_priority( attribute_set ) &&
a00091b4: e35300c0 cmp r3, #192 ; 0xc0
a00091b8: 0a000050 beq a0009300 <rtems_semaphore_create+0x198>
_Attributes_Is_priority_ceiling( attribute_set ) )
return RTEMS_NOT_DEFINED;
if ( !_Attributes_Is_counting_semaphore( attribute_set ) && ( count > 1 ) )
a00091bc: e218a030 ands sl, r8, #48 ; 0x30
a00091c0: 0a000002 beq a00091d0 <rtems_semaphore_create+0x68>
a00091c4: e3540001 cmp r4, #1
return RTEMS_INVALID_NUMBER;
a00091c8: 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 ) )
a00091cc: 8a00004c bhi a0009304 <rtems_semaphore_create+0x19c>
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a00091d0: e59f3134 ldr r3, [pc, #308] ; a000930c <rtems_semaphore_create+0x1a4> a00091d4: e5932000 ldr r2, [r3] a00091d8: e2822001 add r2, r2, #1 a00091dc: e5832000 str r2, [r3]
* 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 );
a00091e0: e59f0128 ldr r0, [pc, #296] ; a0009310 <rtems_semaphore_create+0x1a8> a00091e4: eb000523 bl a000a678 <_Objects_Allocate>
_Thread_Disable_dispatch(); /* prevents deletion */
the_semaphore = _Semaphore_Allocate();
if ( !the_semaphore ) {
a00091e8: e2505000 subs r5, r0, #0
a00091ec: 1a000002 bne a00091fc <rtems_semaphore_create+0x94>
_Thread_Enable_dispatch();
a00091f0: eb00096a bl a000b7a0 <_Thread_Enable_dispatch>
return RTEMS_TOO_MANY;
a00091f4: e3a00005 mov r0, #5 a00091f8: ea000041 b a0009304 <rtems_semaphore_create+0x19c>
the_semaphore->attribute_set = attribute_set;
/*
* Initialize it as a counting semaphore.
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
a00091fc: e35a0000 cmp sl, #0
_Thread_Enable_dispatch();
return RTEMS_TOO_MANY;
}
#endif
the_semaphore->attribute_set = attribute_set;
a0009200: e5858010 str r8, [r5, #16] a0009204: e2083004 and r3, r8, #4
/*
* Initialize it as a counting semaphore.
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
a0009208: 1a00000d bne a0009244 <rtems_semaphore_create+0xdc>
/*
* This effectively disables limit checking.
*/
the_semaphore_attr.maximum_count = 0xFFFFFFFF;
if ( _Attributes_Is_priority( attribute_set ) )
a000920c: e3530000 cmp r3, #0
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
a0009210: 13a03001 movne r3, #1
*/
if ( _Attributes_Is_counting_semaphore( attribute_set ) ) {
/*
* This effectively disables limit checking.
*/
the_semaphore_attr.maximum_count = 0xFFFFFFFF;
a0009214: e3e02000 mvn r2, #0 a0009218: e58d2010 str r2, [sp, #16]
if ( _Attributes_Is_priority( attribute_set ) )
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
a000921c: 158d3014 strne r3, [sp, #20]
* 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(
a0009220: e2850014 add r0, r5, #20
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;
a0009224: e3a03000 mov r3, #0
the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;
_CORE_semaphore_Initialize(
a0009228: e28d1010 add r1, sp, #16 a000922c: e1a02004 mov r2, r4
the_semaphore_attr.maximum_count = 0xFFFFFFFF;
if ( _Attributes_Is_priority( attribute_set ) )
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_PRIORITY;
else
the_semaphore_attr.discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;
a0009230: 058da014 streq sl, [sp, #20]
/*
* The following are just to make Purify happy.
*/
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
a0009234: e58d3000 str r3, [sp]
the_mutex_attr.priority_ceiling = PRIORITY_MINIMUM;
a0009238: e58d300c str r3, [sp, #12]
_CORE_semaphore_Initialize(
a000923c: eb000398 bl a000a0a4 <_CORE_semaphore_Initialize> a0009240: ea000024 b a00092d8 <rtems_semaphore_create+0x170>
} else {
/*
* 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 ) )
a0009244: e3530000 cmp r3, #0
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;
a0009248: 13a03001 movne r3, #1
else
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
a000924c: e35a0010 cmp sl, #16
* style binary semaphore. This is the mutex style.
*/
if ( _Attributes_Is_priority( attribute_set ) )
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;
else
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
a0009250: e58d3008 str r3, [sp, #8]
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;
a0009254: 13a03002 movne r3, #2 a0009258: 158d3000 strne r3, [sp]
the_mutex_attr.only_owner_release = false;
a000925c: 13a03000 movne r3, #0
if ( _Attributes_Is_priority( attribute_set ) )
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY;
else
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_FIFO;
if ( _Attributes_Is_binary_semaphore( attribute_set ) ) {
a0009260: 1a00000d bne a000929c <rtems_semaphore_create+0x134>
the_mutex_attr.priority_ceiling = priority_ceiling;
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_ACQUIRES;
a0009264: e3a03000 mov r3, #0 a0009268: e58d3000 str r3, [sp]
the_mutex_attr.only_owner_release = false;
a000926c: e5cd3004 strb r3, [sp, #4]
if ( the_mutex_attr.discipline == CORE_MUTEX_DISCIPLINES_PRIORITY ) {
a0009270: e59d3008 ldr r3, [sp, #8]
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;
a0009274: e58d900c str r9, [sp, #12]
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 ) {
a0009278: e3530001 cmp r3, #1
a000927c: 1a000007 bne a00092a0 <rtems_semaphore_create+0x138>
if ( _Attributes_Is_inherit_priority( attribute_set ) ) {
a0009280: e3180040 tst r8, #64 ; 0x40
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
a0009284: 13a02002 movne r2, #2
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 ) ) {
a0009288: 1a000002 bne a0009298 <rtems_semaphore_create+0x130>
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT;
the_mutex_attr.only_owner_release = true;
} else if ( _Attributes_Is_priority_ceiling( attribute_set ) ) {
a000928c: e3180080 tst r8, #128 ; 0x80 <== NOT EXECUTED a0009290: 0a000002 beq a00092a0 <rtems_semaphore_create+0x138> <== NOT EXECUTED
the_mutex_attr.discipline = CORE_MUTEX_DISCIPLINES_PRIORITY_CEILING;
a0009294: e3a02003 mov r2, #3 <== NOT EXECUTED
a0009298: e58d2008 str r2, [sp, #8]
the_mutex_attr.only_owner_release = true;
}
}
} else /* must be simple binary semaphore */ {
the_mutex_attr.lock_nesting_behavior = CORE_MUTEX_NESTING_BLOCKS;
the_mutex_attr.only_owner_release = false;
a000929c: e5cd3004 strb r3, [sp, #4]
}
mutex_status = _CORE_mutex_Initialize(
a00092a0: e3540001 cmp r4, #1 a00092a4: 13a02000 movne r2, #0 a00092a8: 03a02001 moveq r2, #1 a00092ac: e2850014 add r0, r5, #20 a00092b0: e1a0100d mov r1, sp a00092b4: eb0002b8 bl a0009d9c <_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 ) {
a00092b8: e3500006 cmp r0, #6
a00092bc: 1a000005 bne a00092d8 <rtems_semaphore_create+0x170>
*/
RTEMS_INLINE_ROUTINE void _Semaphore_Free (
Semaphore_Control *the_semaphore
)
{
_Objects_Free( &_Semaphore_Information, &the_semaphore->Object );
a00092c0: e59f0048 ldr r0, [pc, #72] ; a0009310 <rtems_semaphore_create+0x1a8><== NOT EXECUTED a00092c4: e1a01005 mov r1, r5 <== NOT EXECUTED a00092c8: eb0005b1 bl a000a994 <_Objects_Free> <== NOT EXECUTED
_Semaphore_Free( the_semaphore );
_Thread_Enable_dispatch();
a00092cc: eb000933 bl a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INVALID_PRIORITY;
a00092d0: e3a00013 mov r0, #19 <== NOT EXECUTED a00092d4: ea00000a b a0009304 <rtems_semaphore_create+0x19c> <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a00092d8: e59f2030 ldr r2, [pc, #48] ; a0009310 <rtems_semaphore_create+0x1a8>
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
a00092dc: e5953008 ldr r3, [r5, #8] a00092e0: e1d510b8 ldrh r1, [r5, #8]
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a00092e4: e592201c ldr r2, [r2, #28] a00092e8: e7825101 str r5, [r2, r1, lsl #2]
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
a00092ec: e585700c str r7, [r5, #12]
&_Semaphore_Information,
&the_semaphore->Object,
(Objects_Name) name
);
*id = the_semaphore->Object.id;
a00092f0: e5863000 str r3, [r6]
the_semaphore->Object.id,
name,
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
a00092f4: eb000929 bl a000b7a0 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
a00092f8: e3a00000 mov r0, #0 a00092fc: ea000000 b a0009304 <rtems_semaphore_create+0x19c>
}
if ( _Attributes_Is_inherit_priority( attribute_set ) &&
_Attributes_Is_priority_ceiling( attribute_set ) )
return RTEMS_NOT_DEFINED;
a0009300: e3a0000b mov r0, #11 <== NOT EXECUTED
0 /* Not used */
);
#endif
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
a0009304: e28dd018 add sp, sp, #24
a0009308: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc}
a0009314 <rtems_semaphore_delete>:
#endif
rtems_status_code rtems_semaphore_delete(
rtems_id id
)
{
a0009314: e92d4011 push {r0, r4, lr}
a0009318: e1a01000 mov r1, r0
Objects_Id id,
Objects_Locations *location
)
{
return (Semaphore_Control *)
_Objects_Get( &_Semaphore_Information, id, location );
a000931c: e1a0200d mov r2, sp a0009320: e59f0084 ldr r0, [pc, #132] ; a00093ac <rtems_semaphore_delete+0x98> a0009324: eb0005f2 bl a000aaf4 <_Objects_Get>
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
a0009328: e59d3000 ldr r3, [sp] a000932c: e1a04000 mov r4, r0 a0009330: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0009334: 13a00004 movne r0, #4
{
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
a0009338: 1a00001a bne a00093a8 <rtems_semaphore_delete+0x94>
*/
RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(
rtems_attribute attribute_set
)
{
return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE);
a000933c: e5941010 ldr r1, [r4, #16]
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
a0009340: e2111030 ands r1, r1, #48 ; 0x30
a0009344: 0a00000c beq a000937c <rtems_semaphore_delete+0x68>
if ( _CORE_mutex_Is_locked( &the_semaphore->Core_control.mutex ) &&
a0009348: e5943064 ldr r3, [r4, #100] ; 0x64 a000934c: e3530000 cmp r3, #0
a0009350: 1a000004 bne a0009368 <rtems_semaphore_delete+0x54>
a0009354: e3510020 cmp r1, #32 <== NOT EXECUTED a0009358: 0a000002 beq a0009368 <rtems_semaphore_delete+0x54> <== NOT EXECUTED
!_Attributes_Is_simple_binary_semaphore(
the_semaphore->attribute_set ) ) {
_Thread_Enable_dispatch();
a000935c: eb00090f bl a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_RESOURCE_IN_USE;
a0009360: e3a0000c mov r0, #12 <== NOT EXECUTED a0009364: ea00000f b a00093a8 <rtems_semaphore_delete+0x94> <== NOT EXECUTED
}
_CORE_mutex_Flush(
a0009368: e2840014 add r0, r4, #20 a000936c: e3a01000 mov r1, #0 a0009370: e3a02004 mov r2, #4 a0009374: eb000287 bl a0009d98 <_CORE_mutex_Flush> a0009378: ea000002 b a0009388 <rtems_semaphore_delete+0x74>
&the_semaphore->Core_control.mutex,
SEMAPHORE_MP_OBJECT_WAS_DELETED,
CORE_MUTEX_WAS_DELETED
);
} else {
_CORE_semaphore_Flush(
a000937c: e2840014 add r0, r4, #20 a0009380: e3a02002 mov r2, #2 a0009384: eb000345 bl a000a0a0 <_CORE_semaphore_Flush>
SEMAPHORE_MP_OBJECT_WAS_DELETED,
CORE_SEMAPHORE_WAS_DELETED
);
}
_Objects_Close( &_Semaphore_Information, &the_semaphore->Object );
a0009388: e59f001c ldr r0, [pc, #28] ; a00093ac <rtems_semaphore_delete+0x98> a000938c: e1a01004 mov r1, r4 a0009390: eb0004da bl a000a700 <_Objects_Close>
*/
RTEMS_INLINE_ROUTINE void _Semaphore_Free (
Semaphore_Control *the_semaphore
)
{
_Objects_Free( &_Semaphore_Information, &the_semaphore->Object );
a0009394: e59f0010 ldr r0, [pc, #16] ; a00093ac <rtems_semaphore_delete+0x98> a0009398: e1a01004 mov r1, r4 a000939c: eb00057c bl a000a994 <_Objects_Free>
0, /* Not used */
0 /* Not used */
);
}
#endif
_Thread_Enable_dispatch();
a00093a0: eb0008fe bl a000b7a0 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
a00093a4: e3a00000 mov r0, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a00093a8: e8bd8018 pop {r3, r4, pc}
a00124a8 <rtems_semaphore_flush>:
#endif
rtems_status_code rtems_semaphore_flush(
rtems_id id
)
{
a00124a8: e92d4001 push {r0, lr} <== NOT EXECUTED
a00124ac: e1a01000 mov r1, r0 <== NOT EXECUTED
a00124b0: e1a0200d mov r2, sp <== NOT EXECUTED
a00124b4: e59f0044 ldr r0, [pc, #68] ; a0012500 <rtems_semaphore_flush+0x58><== NOT EXECUTED
a00124b8: ebffe5fb bl a000bcac <_Objects_Get> <== NOT EXECUTED
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
a00124bc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00124c0: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00124c4: 13a00004 movne r0, #4 <== NOT EXECUTED
{
register Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
a00124c8: 1a00000b bne a00124fc <rtems_semaphore_flush+0x54> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _Attributes_Is_counting_semaphore(
rtems_attribute attribute_set
)
{
return ((attribute_set & RTEMS_SEMAPHORE_CLASS) == RTEMS_COUNTING_SEMAPHORE);
a00124cc: e5901010 ldr r1, [r0, #16] <== NOT EXECUTED a00124d0: e2800014 add r0, r0, #20 <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
a00124d4: e2111030 ands r1, r1, #48 ; 0x30 <== NOT EXECUTED a00124d8: 0a000003 beq a00124ec <rtems_semaphore_flush+0x44> <== NOT EXECUTED
_CORE_mutex_Flush(
a00124dc: e1a01003 mov r1, r3 <== NOT EXECUTED a00124e0: e3a02001 mov r2, #1 <== NOT EXECUTED a00124e4: ebffe2b8 bl a000afcc <_CORE_mutex_Flush> <== NOT EXECUTED a00124e8: ea000001 b a00124f4 <rtems_semaphore_flush+0x4c> <== NOT EXECUTED
&the_semaphore->Core_control.mutex,
SEND_OBJECT_WAS_DELETED,
CORE_MUTEX_STATUS_UNSATISFIED_NOWAIT
);
} else {
_CORE_semaphore_Flush(
a00124ec: e3a02001 mov r2, #1 <== NOT EXECUTED a00124f0: ebffe377 bl a000b2d4 <_CORE_semaphore_Flush> <== NOT EXECUTED
&the_semaphore->Core_control.semaphore,
SEND_OBJECT_WAS_DELETED,
CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT
);
}
_Thread_Enable_dispatch();
a00124f4: ebffe919 bl a000c960 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a00124f8: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a00124fc: e8bd8008 pop {r3, pc} <== NOT EXECUTED
a00173d8 <rtems_semaphore_ident>:
rtems_status_code rtems_semaphore_ident(
rtems_name name,
uint32_t node,
rtems_id *id
)
{
a00173d8: e1a0c001 mov ip, r1 <== NOT EXECUTED
a00173dc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
a00173e0: e1a0e000 mov lr, r0 <== NOT EXECUTED
a00173e4: e1a03002 mov r3, r2 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32( &_Semaphore_Information, name, node, id );
a00173e8: e1a0100e mov r1, lr <== NOT EXECUTED a00173ec: e1a0200c mov r2, ip <== NOT EXECUTED a00173f0: e59f000c ldr r0, [pc, #12] ; a0017404 <rtems_semaphore_ident+0x2c><== NOT EXECUTED a00173f4: eb000ecc bl a001af2c <_Objects_Name_to_id_u32> <== NOT EXECUTED
return _Status_Object_name_errors_to_status[ status ];
}
a00173f8: e59f3008 ldr r3, [pc, #8] ; a0017408 <rtems_semaphore_ident+0x30><== NOT EXECUTED
a00173fc: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
a0017400: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a00093b0 <rtems_semaphore_obtain>:
rtems_status_code rtems_semaphore_obtain(
rtems_id id,
rtems_option option_set,
rtems_interval timeout
)
{
a00093b0: e92d40f7 push {r0, r1, r2, r4, r5, r6, r7, lr}
a00093b4: e1a04000 mov r4, r0
Objects_Locations *location,
ISR_Level *level
)
{
return (Semaphore_Control *)
_Objects_Get_isr_disable( &_Semaphore_Information, id, location, level );
a00093b8: e28d3004 add r3, sp, #4 a00093bc: e1a06001 mov r6, r1 a00093c0: e1a05002 mov r5, r2 a00093c4: e59f00ec ldr r0, [pc, #236] ; a00094b8 <rtems_semaphore_obtain+0x108> a00093c8: e1a01004 mov r1, r4 a00093cc: e28d2008 add r2, sp, #8 a00093d0: eb0005ac bl a000aa88 <_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 ) {
a00093d4: e59d3008 ldr r3, [sp, #8] a00093d8: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00093dc: 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 ) {
a00093e0: 1a000033 bne a00094b4 <rtems_semaphore_obtain+0x104>
a00093e4: e5903010 ldr r3, [r0, #16] a00093e8: e59f70cc ldr r7, [pc, #204] ; a00094bc <rtems_semaphore_obtain+0x10c>
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
a00093ec: e2132030 ands r2, r3, #48 ; 0x30
a00093f0: 0a00000b beq a0009424 <rtems_semaphore_obtain+0x74>
_CORE_mutex_Seize(
a00093f4: e59d3004 ldr r3, [sp, #4]
*/
RTEMS_INLINE_ROUTINE bool _Options_Is_no_wait (
rtems_option option_set
)
{
return (option_set & RTEMS_NO_WAIT) ? true : false;
a00093f8: e2062001 and r2, r6, #1 a00093fc: e2800014 add r0, r0, #20 a0009400: e58d3000 str r3, [sp] a0009404: e1a01004 mov r1, r4 a0009408: e1a03005 mov r3, r5 a000940c: e2222001 eor r2, r2, #1 a0009410: eb0002a9 bl a0009ebc <_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 );
a0009414: e5973004 ldr r3, [r7, #4]
id,
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
level
);
return _Semaphore_Translate_core_mutex_return_code(
a0009418: e5930034 ldr r0, [r3, #52] ; 0x34 a000941c: eb000047 bl a0009540 <_Semaphore_Translate_core_mutex_return_code> a0009420: ea000023 b a00094b4 <rtems_semaphore_obtain+0x104>
{
Thread_Control *executing;
/* disabled when you get here */
executing = _Thread_Executing;
a0009424: e5973004 ldr r3, [r7, #4] <== NOT EXECUTED
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_SUCCESSFUL;
a0009428: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED
if ( the_semaphore->count != 0 ) {
a000942c: e590205c ldr r2, [r0, #92] ; 0x5c <== NOT EXECUTED a0009430: e3520000 cmp r2, #0 <== NOT EXECUTED a0009434: 0a000004 beq a000944c <rtems_semaphore_obtain+0x9c> <== NOT EXECUTED
the_semaphore->count -= 1;
a0009438: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000943c: e580205c str r2, [r0, #92] ; 0x5c <== NOT EXECUTED a0009440: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0009444: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0009448: ea000015 b a00094a4 <rtems_semaphore_obtain+0xf4> <== NOT EXECUTED
_ISR_Enable( *level_p );
return;
}
if ( !wait ) {
a000944c: e3160001 tst r6, #1 <== NOT EXECUTED a0009450: 0a000004 beq a0009468 <rtems_semaphore_obtain+0xb8> <== NOT EXECUTED a0009454: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED a0009458: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_ISR_Enable( *level_p );
executing->Wait.return_code = CORE_SEMAPHORE_STATUS_UNSATISFIED_NOWAIT;
a000945c: e3a02001 mov r2, #1 <== NOT EXECUTED a0009460: e5832034 str r2, [r3, #52] ; 0x34 <== NOT EXECUTED a0009464: ea00000e b a00094a4 <rtems_semaphore_obtain+0xf4> <== NOT EXECUTED a0009468: e59f2050 ldr r2, [pc, #80] ; a00094c0 <rtems_semaphore_obtain+0x110><== NOT EXECUTED a000946c: e5921000 ldr r1, [r2] <== NOT EXECUTED a0009470: e2811001 add r1, r1, #1 <== NOT EXECUTED a0009474: e5821000 str r1, [r2] <== 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;
a0009478: e3a02001 mov r2, #1 <== NOT EXECUTED a000947c: e5802044 str r2, [r0, #68] ; 0x44 <== NOT EXECUTED
return;
}
_Thread_Disable_dispatch();
_Thread_queue_Enter_critical_section( &the_semaphore->Wait_queue );
executing->Wait.queue = &the_semaphore->Wait_queue;
a0009480: e2800014 add r0, r0, #20 <== NOT EXECUTED a0009484: e5830044 str r0, [r3, #68] ; 0x44 <== NOT EXECUTED
executing->Wait.id = id;
a0009488: e5834020 str r4, [r3, #32] <== NOT EXECUTED a000948c: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0009490: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( *level_p );
_Thread_queue_Enqueue( &the_semaphore->Wait_queue, timeout );
a0009494: e59f2028 ldr r2, [pc, #40] ; a00094c4 <rtems_semaphore_obtain+0x114><== NOT EXECUTED a0009498: e1a01005 mov r1, r5 <== NOT EXECUTED a000949c: eb0009e4 bl a000bc34 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
_Thread_Enable_dispatch();
a00094a0: eb0008be bl a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
&level
);
return _Semaphore_Translate_core_semaphore_return_code(
_Thread_Executing->Wait.return_code );
a00094a4: e59f3010 ldr r3, [pc, #16] ; a00094bc <rtems_semaphore_obtain+0x10c><== NOT EXECUTED a00094a8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
id,
((_Options_Is_no_wait( option_set )) ? false : true),
timeout,
&level
);
return _Semaphore_Translate_core_semaphore_return_code(
a00094ac: e5930034 ldr r0, [r3, #52] ; 0x34 <== NOT EXECUTED a00094b0: eb000026 bl a0009550 <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED
break;
}
return RTEMS_INVALID_ID;
}
a00094b4: e8bd80fe pop {r1, r2, r3, r4, r5, r6, r7, pc}
a00094c8 <rtems_semaphore_release>:
#endif
rtems_status_code rtems_semaphore_release(
rtems_id id
)
{
a00094c8: e92d4011 push {r0, r4, lr}
a00094cc: e1a04000 mov r4, r0
Objects_Id id,
Objects_Locations *location
)
{
return (Semaphore_Control *)
_Objects_Get( &_Semaphore_Information, id, location );
a00094d0: e1a01004 mov r1, r4 a00094d4: e59f0060 ldr r0, [pc, #96] ; a000953c <rtems_semaphore_release+0x74> a00094d8: e1a0200d mov r2, sp a00094dc: eb000584 bl a000aaf4 <_Objects_Get>
Objects_Locations location;
CORE_mutex_Status mutex_status;
CORE_semaphore_Status semaphore_status;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
a00094e0: e59d3000 ldr r3, [sp] a00094e4: e3530000 cmp r3, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00094e8: 13a00004 movne r0, #4
Objects_Locations location;
CORE_mutex_Status mutex_status;
CORE_semaphore_Status semaphore_status;
the_semaphore = _Semaphore_Get( id, &location );
switch ( location ) {
a00094ec: 1a000011 bne a0009538 <rtems_semaphore_release+0x70>
a00094f0: e5902010 ldr r2, [r0, #16] a00094f4: e2800014 add r0, r0, #20
case OBJECTS_LOCAL:
if ( !_Attributes_Is_counting_semaphore(the_semaphore->attribute_set) ) {
a00094f8: e2122030 ands r2, r2, #48 ; 0x30
a00094fc: 0a000007 beq a0009520 <rtems_semaphore_release+0x58>
mutex_status = _CORE_mutex_Surrender(
a0009500: e1a01004 mov r1, r4 a0009504: e1a02003 mov r2, r3 a0009508: eb00029e bl a0009f88 <_CORE_mutex_Surrender> a000950c: e1a04000 mov r4, r0
&the_semaphore->Core_control.mutex,
id,
MUTEX_MP_SUPPORT
);
_Thread_Enable_dispatch();
a0009510: eb0008a2 bl a000b7a0 <_Thread_Enable_dispatch>
return _Semaphore_Translate_core_mutex_return_code( mutex_status );
a0009514: e1a00004 mov r0, r4 a0009518: eb000008 bl a0009540 <_Semaphore_Translate_core_mutex_return_code> a000951c: ea000005 b a0009538 <rtems_semaphore_release+0x70>
} else {
semaphore_status = _CORE_semaphore_Surrender(
a0009520: e1a01004 mov r1, r4 <== NOT EXECUTED a0009524: eb0002eb bl a000a0d8 <_CORE_semaphore_Surrender> <== NOT EXECUTED a0009528: e1a04000 mov r4, r0 <== NOT EXECUTED
&the_semaphore->Core_control.semaphore,
id,
MUTEX_MP_SUPPORT
);
_Thread_Enable_dispatch();
a000952c: eb00089b bl a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return
a0009530: e1a00004 mov r0, r4 <== NOT EXECUTED a0009534: eb000005 bl a0009550 <_Semaphore_Translate_core_semaphore_return_code><== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0009538: e8bd8018 pop {r3, r4, pc}
a00161e8 <rtems_shutdown_executive>:
void rtems_shutdown_executive(
uint32_t result
)
{
if ( _System_state_Is_up( _System_state_Get() ) ) {
a00161e8: e59f302c ldr r3, [pc, #44] ; a001621c <rtems_shutdown_executive+0x34>
*/
void rtems_shutdown_executive(
uint32_t result
)
{
a00161ec: e52de004 push {lr} ; (str lr, [sp, #-4]!)
if ( _System_state_Is_up( _System_state_Get() ) ) {
a00161f0: e5932000 ldr r2, [r3] a00161f4: e3520003 cmp r2, #3
a00161f8: 1a000003 bne a001620c <rtems_shutdown_executive+0x24>
a00161fc: e2822001 add r2, r2, #1 a0016200: e5832000 str r2, [r3]
* if we were running within the same context, it would work. * * And we will not return to this thread, so there is no point of * saving the context. */ _Context_Restart_self( &_Thread_BSP_context );
a0016204: e59f0014 ldr r0, [pc, #20] ; a0016220 <rtems_shutdown_executive+0x38> a0016208: ebffda78 bl a000cbf0 <_CPU_Context_restore>
_System_state_Set( SYSTEM_STATE_SHUTDOWN );
_Thread_Stop_multitasking();
}
_Internal_error_Occurred(
a001620c: e3a00000 mov r0, #0 <== NOT EXECUTED a0016210: e3a01001 mov r1, #1 <== NOT EXECUTED a0016214: e3a02014 mov r2, #20 <== NOT EXECUTED a0016218: ebffd0ff bl a000a61c <_Internal_error_Occurred> <== NOT EXECUTED
a000a734 <rtems_signal_catch>:
a000a734: e59f2048 ldr r2, [pc, #72] ; a000a784 <rtems_signal_catch+0x50><== NOT EXECUTED
Thread_Control *executing;
RTEMS_API_Control *api;
ASR_Information *asr;
/* XXX normalize mode */
executing = _Thread_Executing;
a000a738: e59f3048 ldr r3, [pc, #72] ; a000a788 <rtems_signal_catch+0x54><== NOT EXECUTED
rtems_status_code rtems_signal_catch(
rtems_asr_entry asr_handler,
rtems_mode mode_set
)
{
a000a73c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
a000a740: e592c000 ldr ip, [r2] <== NOT EXECUTED
RTEMS_API_Control *api;
ASR_Information *asr;
/* XXX normalize mode */
executing = _Thread_Executing;
api = (RTEMS_API_Control*)executing->API_Extensions[ THREAD_API_RTEMS ];
a000a744: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a748: e28cc001 add ip, ip, #1 <== NOT EXECUTED a000a74c: e59330f8 ldr r3, [r3, #248] ; 0xf8 <== NOT EXECUTED a000a750: e582c000 str ip, [r2] <== NOT EXECUTED
asr = &api->Signal;
_Thread_Disable_dispatch(); /* cannot reschedule while */
/* the thread is inconsistent */
if ( !_ASR_Is_null_handler( asr_handler ) ) {
a000a754: e3500000 cmp r0, #0 <== NOT EXECUTED
asr->mode_set = mode_set;
asr->handler = asr_handler;
a000a758: 1583000c strne r0, [r3, #12] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _ASR_Initialize (
ASR_Information *information
)
{
information->is_enabled = false;
a000a75c: 05c30008 strbeq r0, [r3, #8] <== NOT EXECUTED
information->handler = NULL;
a000a760: 0583000c streq r0, [r3, #12] <== NOT EXECUTED
information->mode_set = RTEMS_DEFAULT_MODES;
a000a764: 05830010 streq r0, [r3, #16] <== NOT EXECUTED
information->signals_posted = 0;
a000a768: 05830014 streq r0, [r3, #20] <== NOT EXECUTED
information->signals_pending = 0;
a000a76c: 05830018 streq r0, [r3, #24] <== NOT EXECUTED
information->nest_level = 0;
a000a770: 0583001c streq r0, [r3, #28] <== NOT EXECUTED
_Thread_Disable_dispatch(); /* cannot reschedule while */
/* the thread is inconsistent */
if ( !_ASR_Is_null_handler( asr_handler ) ) {
asr->mode_set = mode_set;
a000a774: 15831010 strne r1, [r3, #16] <== NOT EXECUTED
asr->handler = asr_handler;
}
else
_ASR_Initialize( asr );
_Thread_Enable_dispatch();
a000a778: eb000944 bl a000cc90 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL; }
a000a77c: e3a00000 mov r0, #0 <== NOT EXECUTED
a000a780: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a00175c0 <rtems_signal_send>:
rtems_status_code rtems_signal_send(
rtems_id id,
rtems_signal_set signal_set
)
{
a00175c0: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
a00175c4: e2514000 subs r4, r1, #0 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
a00175c8: 03a0000a moveq r0, #10 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !signal_set )
a00175cc: 0a000028 beq a0017674 <rtems_signal_send+0xb4> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
a00175d0: e1a0100d mov r1, sp <== NOT EXECUTED a00175d4: eb00112c bl a001ba8c <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a00175d8: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00175dc: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00175e0: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !signal_set )
return RTEMS_INVALID_NUMBER;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
a00175e4: 1a000022 bne a0017674 <rtems_signal_send+0xb4> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
a00175e8: e59030f8 ldr r3, [r0, #248] ; 0xf8 <== NOT EXECUTED
asr = &api->Signal;
if ( ! _ASR_Is_null_handler( asr->handler ) ) {
a00175ec: e593200c ldr r2, [r3, #12] <== NOT EXECUTED a00175f0: e3520000 cmp r2, #0 <== NOT EXECUTED a00175f4: 0a00001c beq a001766c <rtems_signal_send+0xac> <== NOT EXECUTED
if ( asr->is_enabled ) {
a00175f8: e5d32008 ldrb r2, [r3, #8] <== NOT EXECUTED a00175fc: e3520000 cmp r2, #0 <== NOT EXECUTED a0017600: 0a00000f beq a0017644 <rtems_signal_send+0x84> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0017604: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0017608: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a001760c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED
)
{
ISR_Level _level;
_ISR_Disable( _level );
*signal_set |= signals;
a0017610: e5931014 ldr r1, [r3, #20] <== NOT EXECUTED a0017614: e1814004 orr r4, r1, r4 <== NOT EXECUTED a0017618: e5834014 str r4, [r3, #20] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a001761c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
_ASR_Post_signals( signal_set, &asr->signals_posted );
if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
a0017620: e59f3050 ldr r3, [pc, #80] ; a0017678 <rtems_signal_send+0xb8><== NOT EXECUTED a0017624: e5932000 ldr r2, [r3] <== NOT EXECUTED a0017628: e3520000 cmp r2, #0 <== NOT EXECUTED a001762c: 0a00000b beq a0017660 <rtems_signal_send+0xa0> <== NOT EXECUTED a0017630: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a0017634: e1500002 cmp r0, r2 <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
a0017638: 03a02001 moveq r2, #1 <== NOT EXECUTED a001763c: 05c32010 strbeq r2, [r3, #16] <== NOT EXECUTED a0017640: ea000006 b a0017660 <rtems_signal_send+0xa0> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0017644: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0017648: e3821080 orr r1, r2, #128 ; 0x80 <== NOT EXECUTED a001764c: e129f001 msr CPSR_fc, r1 <== NOT EXECUTED a0017650: e5931018 ldr r1, [r3, #24] <== NOT EXECUTED a0017654: e1814004 orr r4, r1, r4 <== NOT EXECUTED a0017658: e5834018 str r4, [r3, #24] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a001765c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
} else {
_ASR_Post_signals( signal_set, &asr->signals_pending );
}
_Thread_Enable_dispatch();
a0017660: eb001100 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0017664: e3a00000 mov r0, #0 <== NOT EXECUTED a0017668: ea000001 b a0017674 <rtems_signal_send+0xb4> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
a001766c: eb0010fd bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a0017670: e3a0000b mov r0, #11 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0017674: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a0006228 <rtems_stack_checker_begin_extension>:
Thread_Control *the_thread
)
{
Stack_check_Control *the_pattern;
if ( the_thread->Object.id == 0 ) /* skip system tasks */
a0006228: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED a000622c: e3530000 cmp r3, #0 <== NOT EXECUTED
return;
the_pattern = Stack_check_Get_pattern_area(&the_thread->Start.Initial_stack);
*the_pattern = Stack_check_Pattern;
a0006230: 1590c0bc ldrne ip, [r0, #188] ; 0xbc <== NOT EXECUTED
a0006234: 159f300c ldrne r3, [pc, #12] ; a0006248 <rtems_stack_checker_begin_extension+0x20><== NOT EXECUTED
a0006238: 128cc008 addne ip, ip, #8 <== NOT EXECUTED
a000623c: 1893000f ldmne r3, {r0, r1, r2, r3} <== NOT EXECUTED
a0006240: 188c000f stmne ip, {r0, r1, r2, r3} <== NOT EXECUTED
a0006244: e12fff1e bx lr <== NOT EXECUTED
a0006360 <rtems_stack_checker_is_blown>:
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
a0006360: e59f307c ldr r3, [pc, #124] ; a00063e4 <rtems_stack_checker_is_blown+0x84><== NOT EXECUTED
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
a0006364: e92d4810 push {r4, fp, lr} <== NOT EXECUTED
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
a0006368: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
{
a000636c: e28db008 add fp, sp, #8 <== NOT EXECUTED
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
a0006370: e59300bc ldr r0, [r3, #188] ; 0xbc <== NOT EXECUTED a0006374: e15b0000 cmp fp, r0 <== NOT EXECUTED
return false;
a0006378: 33a04000 movcc r4, #0 <== NOT EXECUTED
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
a000637c: 3a000004 bcc a0006394 <rtems_stack_checker_is_blown+0x34> <== NOT EXECUTED
return false;
}
if ( sp > (the_stack->area + the_stack->size) ) {
a0006380: e59340b8 ldr r4, [r3, #184] ; 0xb8 <== NOT EXECUTED a0006384: e0804004 add r4, r0, r4 <== NOT EXECUTED
}
/*
* Check if blown
*/
bool rtems_stack_checker_is_blown( void )
a0006388: e15b0004 cmp fp, r4 <== NOT EXECUTED a000638c: 83a04000 movhi r4, #0 <== NOT EXECUTED a0006390: 93a04001 movls r4, #1 <== NOT EXECUTED
/*
* The stack checker must be initialized before the pattern is there
* to check.
*/
if ( Stack_check_Initialized ) {
a0006394: e59f304c ldr r3, [pc, #76] ; a00063e8 <rtems_stack_checker_is_blown+0x88><== NOT EXECUTED a0006398: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a000639c: e3530000 cmp r3, #0 <== NOT EXECUTED
*/
bool rtems_stack_checker_is_blown( void )
{
Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack;
bool sp_ok;
bool pattern_ok = true;
a00063a0: 03a01001 moveq r1, #1 <== NOT EXECUTED
/*
* The stack checker must be initialized before the pattern is there
* to check.
*/
if ( Stack_check_Initialized ) {
a00063a4: 0a000005 beq a00063c0 <rtems_stack_checker_is_blown+0x60> <== NOT EXECUTED
pattern_ok = (!memcmp(
a00063a8: e59f103c ldr r1, [pc, #60] ; a00063ec <rtems_stack_checker_is_blown+0x8c><== NOT EXECUTED a00063ac: e2800008 add r0, r0, #8 <== NOT EXECUTED a00063b0: e3a02010 mov r2, #16 <== NOT EXECUTED a00063b4: eb0037b7 bl a0014298 <memcmp> <== NOT EXECUTED a00063b8: e2701001 rsbs r1, r0, #1 <== NOT EXECUTED a00063bc: 33a01000 movcc r1, #0 <== NOT EXECUTED
/*
* Let's report as much as we can.
*/
if ( !sp_ok || !pattern_ok ) {
a00063c0: e3540000 cmp r4, #0 <== NOT EXECUTED a00063c4: 0a000001 beq a00063d0 <rtems_stack_checker_is_blown+0x70> <== NOT EXECUTED a00063c8: e3510000 cmp r1, #0 <== NOT EXECUTED a00063cc: 1a000002 bne a00063dc <rtems_stack_checker_is_blown+0x7c> <== NOT EXECUTED
Stack_check_report_blown_task( _Thread_Executing, pattern_ok );
a00063d0: e59f300c ldr r3, [pc, #12] ; a00063e4 <rtems_stack_checker_is_blown+0x84><== NOT EXECUTED a00063d4: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a00063d8: ebffff9b bl a000624c <Stack_check_report_blown_task> <== NOT EXECUTED
/*
* The Stack Pointer and the Pattern Area are OK so return false.
*/
return false;
}
a00063dc: e3a00000 mov r0, #0 <== NOT EXECUTED
a00063e0: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED
a0006448 <rtems_stack_checker_report_usage>:
}
void rtems_stack_checker_report_usage( void )
{
rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin );
a0006448: e59f1004 ldr r1, [pc, #4] ; a0006454 <rtems_stack_checker_report_usage+0xc><== NOT EXECUTED a000644c: e3a00000 mov r0, #0 <== NOT EXECUTED a0006450: eaffffe6 b a00063f0 <rtems_stack_checker_report_usage_with_plugin><== NOT EXECUTED
a00063f0 <rtems_stack_checker_report_usage_with_plugin>:
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
a00063f0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
if ( !print )
a00063f4: e2515000 subs r5, r1, #0 <== NOT EXECUTED
void rtems_stack_checker_report_usage_with_plugin(
void *context,
rtems_printk_plugin_t print
)
{
a00063f8: e1a06000 mov r6, r0 <== NOT EXECUTED
if ( !print )
a00063fc: 0a00000c beq a0006434 <rtems_stack_checker_report_usage_with_plugin+0x44><== NOT EXECUTED
return;
print_context = context;
a0006400: e59f4030 ldr r4, [pc, #48] ; a0006438 <rtems_stack_checker_report_usage_with_plugin+0x48><== NOT EXECUTED
print_handler = print;
(*print)( context, "Stack usage by thread\n");
a0006404: e59f1030 ldr r1, [pc, #48] ; a000643c <rtems_stack_checker_report_usage_with_plugin+0x4c><== NOT EXECUTED
)
{
if ( !print )
return;
print_context = context;
a0006408: e5840004 str r0, [r4, #4] <== NOT EXECUTED
print_handler = print;
a000640c: e5845000 str r5, [r4] <== NOT EXECUTED
(*print)( context, "Stack usage by thread\n");
a0006410: e12fff35 blx r5 <== NOT EXECUTED
(*print)( context,
a0006414: e59f1024 ldr r1, [pc, #36] ; a0006440 <rtems_stack_checker_report_usage_with_plugin+0x50><== NOT EXECUTED a0006418: e1a00006 mov r0, r6 <== NOT EXECUTED a000641c: e12fff35 blx r5 <== NOT EXECUTED
" ID NAME LOW HIGH CURRENT AVAILABLE USED\n"
);
/* iterate over all threads and dump the usage */
rtems_iterate_over_all_threads( Stack_check_Dump_threads_usage );
a0006420: e59f001c ldr r0, [pc, #28] ; a0006444 <rtems_stack_checker_report_usage_with_plugin+0x54><== NOT EXECUTED a0006424: eb001ac0 bl a000cf2c <rtems_iterate_over_all_threads> <== NOT EXECUTED
#if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)
/* dump interrupt stack info if any */
Stack_check_Dump_threads_usage((Thread_Control *) -1);
#endif
print_context = NULL;
a0006428: e3a03000 mov r3, #0 <== NOT EXECUTED a000642c: e5843004 str r3, [r4, #4] <== NOT EXECUTED
print_handler = NULL;
a0006430: e5843000 str r3, [r4] <== NOT EXECUTED
a0006434: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a00062f8 <rtems_stack_checker_switch_extension>:
*/
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
a00062f8: e92d4830 push {r4, r5, fp, lr} <== NOT EXECUTED
Stack_Control *the_stack = &running->Start.Initial_stack;
void *pattern;
bool sp_ok;
bool pattern_ok = true;
pattern = Stack_check_Get_pattern_area(the_stack);
a00062fc: e59030bc ldr r3, [r0, #188] ; 0xbc <== NOT EXECUTED
*/
void rtems_stack_checker_switch_extension(
Thread_Control *running __attribute__((unused)),
Thread_Control *heir __attribute__((unused))
)
{
a0006300: e28db00c add fp, sp, #12 <== NOT EXECUTED a0006304: e1a04000 mov r4, r0 <== NOT EXECUTED
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
a0006308: e15b0003 cmp fp, r3 <== NOT EXECUTED
Stack_Control *the_stack = &running->Start.Initial_stack;
void *pattern;
bool sp_ok;
bool pattern_ok = true;
pattern = Stack_check_Get_pattern_area(the_stack);
a000630c: e2830008 add r0, r3, #8 <== NOT EXECUTED
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
return false;
a0006310: 33a05000 movcc r5, #0 <== NOT EXECUTED
)
{
#if defined(__GNUC__)
void *sp = __builtin_frame_address(0);
if ( sp < the_stack->area ) {
a0006314: 3a000004 bcc a000632c <rtems_stack_checker_switch_extension+0x34><== NOT EXECUTED
return false;
}
if ( sp > (the_stack->area + the_stack->size) ) {
a0006318: e59450b8 ldr r5, [r4, #184] ; 0xb8 <== NOT EXECUTED a000631c: e0835005 add r5, r3, r5 <== NOT EXECUTED
}
/*
* rtems_stack_checker_switch_extension
*/
void rtems_stack_checker_switch_extension(
a0006320: e15b0005 cmp fp, r5 <== NOT EXECUTED a0006324: 83a05000 movhi r5, #0 <== NOT EXECUTED a0006328: 93a05001 movls r5, #1 <== NOT EXECUTED
/*
* Check for an out of bounds stack pointer or an overwrite
*/
sp_ok = Stack_check_Frame_pointer_in_range( the_stack );
pattern_ok = (!memcmp( pattern,
a000632c: e59f1028 ldr r1, [pc, #40] ; a000635c <rtems_stack_checker_switch_extension+0x64><== NOT EXECUTED a0006330: e3a02010 mov r2, #16 <== NOT EXECUTED a0006334: eb0037d7 bl a0014298 <memcmp> <== NOT EXECUTED a0006338: e2701001 rsbs r1, r0, #1 <== NOT EXECUTED a000633c: 33a01000 movcc r1, #0 <== NOT EXECUTED
(void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
if ( !sp_ok || !pattern_ok ) {
a0006340: e3550000 cmp r5, #0 <== NOT EXECUTED a0006344: 0a000001 beq a0006350 <rtems_stack_checker_switch_extension+0x58><== NOT EXECUTED a0006348: e3510000 cmp r1, #0 <== NOT EXECUTED a000634c: 1a000001 bne a0006358 <rtems_stack_checker_switch_extension+0x60><== NOT EXECUTED
Stack_check_report_blown_task( running, pattern_ok );
a0006350: e1a00004 mov r0, r4 <== NOT EXECUTED
a0006354: ebffffbc bl a000624c <Stack_check_report_blown_task> <== NOT EXECUTED
a0006358: e8bd8830 pop {r4, r5, fp, pc} <== NOT EXECUTED
a000a6f8 <rtems_status_text>:
const char *rtems_status_text(
rtems_status_code status
)
{
a000a6f8: e1a01000 mov r1, r0 <== NOT EXECUTED
return rtems_assoc_name_by_local(rtems_status_assoc, status);
a000a6fc: e59f0000 ldr r0, [pc, #0] ; a000a704 <rtems_status_text+0xc><== NOT EXECUTED a000a700: ea0020f5 b a0012adc <rtems_assoc_name_by_local> <== NOT EXECUTED
a000f3fc <rtems_string_to_double>:
rtems_status_code rtems_string_to_double (
const char *s,
double *n,
char **endptr
)
{
a000f3fc: e92d41f1 push {r0, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
double result;
char *end;
if ( !n )
a000f400: e2516000 subs r6, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_string_to_double (
const char *s,
double *n,
char **endptr
)
{
a000f404: e1a07000 mov r7, r0 <== NOT EXECUTED a000f408: e1a08002 mov r8, r2 <== NOT EXECUTED
double result;
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
a000f40c: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
double result;
char *end;
if ( !n )
a000f410: 0a00002e beq a000f4d0 <rtems_string_to_double+0xd4> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
a000f414: eb000b75 bl a00121f0 <__errno> <== NOT EXECUTED a000f418: e3a03000 mov r3, #0 <== NOT EXECUTED a000f41c: e5803000 str r3, [r0] <== NOT EXECUTED
*n = 0;
a000f420: e3a04000 mov r4, #0 <== NOT EXECUTED
a000f424: e3a03000 mov r3, #0 <== NOT EXECUTED
a000f428: e8860018 stm r6, {r3, r4} <== NOT EXECUTED
result = strtod( s, &end );
a000f42c: e1a00007 mov r0, r7 <== NOT EXECUTED a000f430: e1a0100d mov r1, sp <== NOT EXECUTED a000f434: eb0016e4 bl a0014fcc <strtod> <== NOT EXECUTED
if ( endptr )
a000f438: e3580000 cmp r8, #0 <== NOT EXECUTED
*endptr = end;
a000f43c: 159d3000 ldrne r3, [sp] <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtod( s, &end );
a000f440: e1a04000 mov r4, r0 <== NOT EXECUTED a000f444: e1a05001 mov r5, r1 <== NOT EXECUTED
if ( endptr )
*endptr = end;
a000f448: 15883000 strne r3, [r8] <== NOT EXECUTED
if ( end == s )
a000f44c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000f450: e1530007 cmp r3, r7 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a000f454: 03a0000b moveq r0, #11 <== NOT EXECUTED
result = strtod( s, &end );
if ( endptr )
*endptr = end;
if ( end == s )
a000f458: 0a00001c beq a000f4d0 <rtems_string_to_double+0xd4> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f45c: eb000b63 bl a00121f0 <__errno> <== NOT EXECUTED a000f460: e5903000 ldr r3, [r0] <== NOT EXECUTED a000f464: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000f468: 1a000014 bne a000f4c0 <rtems_string_to_double+0xc4> <== NOT EXECUTED a000f46c: e1a00004 mov r0, r4 <== NOT EXECUTED a000f470: e1a01005 mov r1, r5 <== NOT EXECUTED a000f474: e3a02000 mov r2, #0 <== NOT EXECUTED a000f478: e3a03000 mov r3, #0 <== NOT EXECUTED a000f47c: ebffdfab bl a0007330 <__cmpdf2> <== NOT EXECUTED a000f480: e3500000 cmp r0, #0 <== NOT EXECUTED a000f484: 0a000010 beq a000f4cc <rtems_string_to_double+0xd0> <== NOT EXECUTED
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
a000f488: e1a00004 mov r0, r4 <== NOT EXECUTED a000f48c: e1a01005 mov r1, r5 <== NOT EXECUTED a000f490: e3e02000 mvn r2, #0 <== NOT EXECUTED a000f494: e59f3038 ldr r3, [pc, #56] ; a000f4d4 <rtems_string_to_double+0xd8><== NOT EXECUTED a000f498: ebffdfa0 bl a0007320 <__gedf2> <== NOT EXECUTED a000f49c: e3500000 cmp r0, #0 <== NOT EXECUTED a000f4a0: ca000009 bgt a000f4cc <rtems_string_to_double+0xd0> <== NOT EXECUTED a000f4a4: e1a00004 mov r0, r4 <== NOT EXECUTED a000f4a8: e1a01005 mov r1, r5 <== NOT EXECUTED a000f4ac: e3e02000 mvn r2, #0 <== NOT EXECUTED a000f4b0: e3e03601 mvn r3, #1048576 ; 0x100000 <== NOT EXECUTED a000f4b4: ebffdf9b bl a0007328 <__ledf2> <== NOT EXECUTED a000f4b8: e3500000 cmp r0, #0 <== NOT EXECUTED a000f4bc: ba000002 blt a000f4cc <rtems_string_to_double+0xd0> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
*n = result;
a000f4c0: e8860030 stm r6, {r4, r5} <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000f4c4: e3a00000 mov r0, #0 <== NOT EXECUTED a000f4c8: ea000000 b a000f4d0 <rtems_string_to_double+0xd4> <== NOT EXECUTED
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
(( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
return RTEMS_INVALID_NUMBER;
a000f4cc: e3a0000a mov r0, #10 <== NOT EXECUTED
*n = result;
return RTEMS_SUCCESSFUL;
}
a000f4d0: e8bd81f8 pop {r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000f4d8 <rtems_string_to_float>:
rtems_status_code rtems_string_to_float (
const char *s,
float *n,
char **endptr
)
{
a000f4d8: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
float result;
char *end;
if ( !n )
a000f4dc: e2516000 subs r6, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_string_to_float (
const char *s,
float *n,
char **endptr
)
{
a000f4e0: e1a04000 mov r4, r0 <== NOT EXECUTED a000f4e4: e1a07002 mov r7, r2 <== NOT EXECUTED
float result;
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
a000f4e8: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
float result;
char *end;
if ( !n )
a000f4ec: 0a000026 beq a000f58c <rtems_string_to_float+0xb4> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
a000f4f0: eb000b3e bl a00121f0 <__errno> <== NOT EXECUTED a000f4f4: e3a03000 mov r3, #0 <== NOT EXECUTED a000f4f8: e5803000 str r3, [r0] <== NOT EXECUTED
*n = 0;
a000f4fc: e3a03000 mov r3, #0 <== NOT EXECUTED a000f500: e5863000 str r3, [r6] <== NOT EXECUTED
result = strtof( s, &end );
a000f504: e1a00004 mov r0, r4 <== NOT EXECUTED a000f508: e1a0100d mov r1, sp <== NOT EXECUTED a000f50c: eb0016b5 bl a0014fe8 <strtof> <== NOT EXECUTED
if ( endptr )
a000f510: e3570000 cmp r7, #0 <== NOT EXECUTED
*endptr = end;
a000f514: 159d3000 ldrne r3, [sp] <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtof( s, &end );
a000f518: e1a05000 mov r5, r0 <== NOT EXECUTED
if ( endptr )
*endptr = end;
a000f51c: 15873000 strne r3, [r7] <== NOT EXECUTED
if ( end == s )
a000f520: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000f524: e1530004 cmp r3, r4 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a000f528: 03a0000b moveq r0, #11 <== NOT EXECUTED
result = strtof( s, &end );
if ( endptr )
*endptr = end;
if ( end == s )
a000f52c: 0a000016 beq a000f58c <rtems_string_to_float+0xb4> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f530: eb000b2e bl a00121f0 <__errno> <== NOT EXECUTED a000f534: e5903000 ldr r3, [r0] <== NOT EXECUTED a000f538: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000f53c: 1a00000e bne a000f57c <rtems_string_to_float+0xa4> <== NOT EXECUTED a000f540: e1a00005 mov r0, r5 <== NOT EXECUTED a000f544: e3a01000 mov r1, #0 <== NOT EXECUTED a000f548: ebffdfc3 bl a000745c <__cmpsf2> <== NOT EXECUTED a000f54c: e3500000 cmp r0, #0 <== NOT EXECUTED a000f550: 0a00000c beq a000f588 <rtems_string_to_float+0xb0> <== NOT EXECUTED
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
a000f554: e1a00005 mov r0, r5 <== NOT EXECUTED a000f558: e59f1030 ldr r1, [pc, #48] ; a000f590 <rtems_string_to_float+0xb8><== NOT EXECUTED a000f55c: ebffdfba bl a000744c <__gesf2> <== NOT EXECUTED a000f560: e3500000 cmp r0, #0 <== NOT EXECUTED a000f564: ca000007 bgt a000f588 <rtems_string_to_float+0xb0> <== NOT EXECUTED a000f568: e1a00005 mov r0, r5 <== NOT EXECUTED a000f56c: e3e01502 mvn r1, #8388608 ; 0x800000 <== NOT EXECUTED a000f570: ebffdfb7 bl a0007454 <__lesf2> <== NOT EXECUTED a000f574: e3500000 cmp r0, #0 <== NOT EXECUTED a000f578: ba000002 blt a000f588 <rtems_string_to_float+0xb0> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
*n = result;
a000f57c: e5865000 str r5, [r6] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000f580: e3a00000 mov r0, #0 <== NOT EXECUTED a000f584: ea000000 b a000f58c <rtems_string_to_float+0xb4> <== NOT EXECUTED
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
(( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
return RTEMS_INVALID_NUMBER;
a000f588: e3a0000a mov r0, #10 <== NOT EXECUTED
*n = result;
return RTEMS_SUCCESSFUL;
}
a000f58c: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000f594 <rtems_string_to_int>:
const char *s,
int *n,
char **endptr,
int base
)
{
a000f594: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
long result;
char *end;
if ( !n )
a000f598: e2516000 subs r6, r1, #0 <== NOT EXECUTED
const char *s,
int *n,
char **endptr,
int base
)
{
a000f59c: e1a04000 mov r4, r0 <== NOT EXECUTED a000f5a0: e1a05002 mov r5, r2 <== NOT EXECUTED a000f5a4: e1a07003 mov r7, r3 <== NOT EXECUTED
long result;
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
a000f5a8: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
long result;
char *end;
if ( !n )
a000f5ac: 0a00001c beq a000f624 <rtems_string_to_int+0x90> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
a000f5b0: eb000b0e bl a00121f0 <__errno> <== NOT EXECUTED a000f5b4: e3a03000 mov r3, #0 <== NOT EXECUTED a000f5b8: e5803000 str r3, [r0] <== NOT EXECUTED
*n = 0;
result = strtol( s, &end, base );
a000f5bc: e1a02007 mov r2, r7 <== NOT EXECUTED
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
a000f5c0: e5863000 str r3, [r6] <== NOT EXECUTED
result = strtol( s, &end, base );
a000f5c4: e1a00004 mov r0, r4 <== NOT EXECUTED a000f5c8: e1a0100d mov r1, sp <== NOT EXECUTED a000f5cc: eb001707 bl a00151f0 <strtol> <== NOT EXECUTED
if ( endptr )
a000f5d0: e3550000 cmp r5, #0 <== NOT EXECUTED
*endptr = end;
a000f5d4: 159d3000 ldrne r3, [sp] <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtol( s, &end, base );
a000f5d8: e1a07000 mov r7, r0 <== NOT EXECUTED
if ( endptr )
*endptr = end;
a000f5dc: 15853000 strne r3, [r5] <== NOT EXECUTED
if ( end == s )
a000f5e0: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000f5e4: e1530004 cmp r3, r4 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a000f5e8: 03a0000b moveq r0, #11 <== NOT EXECUTED
result = strtol( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
a000f5ec: 0a00000c beq a000f624 <rtems_string_to_int+0x90> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f5f0: eb000afe bl a00121f0 <__errno> <== NOT EXECUTED a000f5f4: e5903000 ldr r3, [r0] <== NOT EXECUTED a000f5f8: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000f5fc: 1a000004 bne a000f614 <rtems_string_to_int+0x80> <== NOT EXECUTED a000f600: e3770106 cmn r7, #-2147483647 ; 0x80000001 <== NOT EXECUTED a000f604: 13570000 cmpne r7, #0 <== NOT EXECUTED a000f608: 0a000004 beq a000f620 <rtems_string_to_int+0x8c> <== NOT EXECUTED
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
a000f60c: e3570102 cmp r7, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000f610: 0a000002 beq a000f620 <rtems_string_to_int+0x8c> <== NOT EXECUTED
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
a000f614: e5867000 str r7, [r6] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000f618: e3a00000 mov r0, #0 <== NOT EXECUTED a000f61c: ea000000 b a000f624 <rtems_string_to_int+0x90> <== NOT EXECUTED
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
a000f620: e3a0000a mov r0, #10 <== NOT EXECUTED
#endif
*n = result;
return RTEMS_SUCCESSFUL;
}
a000f624: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000f6f0 <rtems_string_to_long>:
const char *s,
long *n,
char **endptr,
int base
)
{
a000f6f0: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
long result;
char *end;
if ( !n )
a000f6f4: e2516000 subs r6, r1, #0 <== NOT EXECUTED
const char *s,
long *n,
char **endptr,
int base
)
{
a000f6f8: e1a04000 mov r4, r0 <== NOT EXECUTED a000f6fc: e1a05002 mov r5, r2 <== NOT EXECUTED a000f700: e1a07003 mov r7, r3 <== NOT EXECUTED
long result;
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
a000f704: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
long result;
char *end;
if ( !n )
a000f708: 0a00001c beq a000f780 <rtems_string_to_long+0x90> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
a000f70c: eb000ab7 bl a00121f0 <__errno> <== NOT EXECUTED a000f710: e3a03000 mov r3, #0 <== NOT EXECUTED a000f714: e5803000 str r3, [r0] <== NOT EXECUTED
*n = 0;
result = strtol( s, &end, base );
a000f718: e1a02007 mov r2, r7 <== NOT EXECUTED
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
a000f71c: e5863000 str r3, [r6] <== NOT EXECUTED
result = strtol( s, &end, base );
a000f720: e1a00004 mov r0, r4 <== NOT EXECUTED a000f724: e1a0100d mov r1, sp <== NOT EXECUTED a000f728: eb0016b0 bl a00151f0 <strtol> <== NOT EXECUTED
if ( endptr )
a000f72c: e3550000 cmp r5, #0 <== NOT EXECUTED
*endptr = end;
a000f730: 159d3000 ldrne r3, [sp] <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtol( s, &end, base );
a000f734: e1a07000 mov r7, r0 <== NOT EXECUTED
if ( endptr )
*endptr = end;
a000f738: 15853000 strne r3, [r5] <== NOT EXECUTED
if ( end == s )
a000f73c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000f740: e1530004 cmp r3, r4 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a000f744: 03a0000b moveq r0, #11 <== NOT EXECUTED
result = strtol( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
a000f748: 0a00000c beq a000f780 <rtems_string_to_long+0x90> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f74c: eb000aa7 bl a00121f0 <__errno> <== NOT EXECUTED a000f750: e5903000 ldr r3, [r0] <== NOT EXECUTED a000f754: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000f758: 1a000004 bne a000f770 <rtems_string_to_long+0x80> <== NOT EXECUTED a000f75c: e3770106 cmn r7, #-2147483647 ; 0x80000001 <== NOT EXECUTED a000f760: 13570000 cmpne r7, #0 <== NOT EXECUTED a000f764: 0a000004 beq a000f77c <rtems_string_to_long+0x8c> <== NOT EXECUTED
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
a000f768: e3570102 cmp r7, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000f76c: 0a000002 beq a000f77c <rtems_string_to_long+0x8c> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
*n = result;
a000f770: e5867000 str r7, [r6] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000f774: e3a00000 mov r0, #0 <== NOT EXECUTED a000f778: ea000000 b a000f780 <rtems_string_to_long+0x90> <== NOT EXECUTED
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
(( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
return RTEMS_INVALID_NUMBER;
a000f77c: e3a0000a mov r0, #10 <== NOT EXECUTED
*n = result;
return RTEMS_SUCCESSFUL;
}
a000f780: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000f628 <rtems_string_to_long_long>:
const char *s,
long long *n,
char **endptr,
int base
)
{
a000f628: e92d41f1 push {r0, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
long long result;
char *end;
if ( !n )
a000f62c: e2516000 subs r6, r1, #0 <== NOT EXECUTED
const char *s,
long long *n,
char **endptr,
int base
)
{
a000f630: e1a04000 mov r4, r0 <== NOT EXECUTED a000f634: e1a05002 mov r5, r2 <== NOT EXECUTED a000f638: e1a07003 mov r7, r3 <== NOT EXECUTED
long long result;
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
a000f63c: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
long long result;
char *end;
if ( !n )
a000f640: 0a000029 beq a000f6ec <rtems_string_to_long_long+0xc4> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
a000f644: eb000ae9 bl a00121f0 <__errno> <== NOT EXECUTED a000f648: e3a03000 mov r3, #0 <== NOT EXECUTED a000f64c: e5803000 str r3, [r0] <== NOT EXECUTED
*n = 0;
a000f650: e3a02000 mov r2, #0 <== NOT EXECUTED
a000f654: e3a03000 mov r3, #0 <== NOT EXECUTED
a000f658: e886000c stm r6, {r2, r3} <== NOT EXECUTED
result = strtoll( s, &end, base );
a000f65c: e1a00004 mov r0, r4 <== NOT EXECUTED a000f660: e1a02007 mov r2, r7 <== NOT EXECUTED a000f664: e1a0100d mov r1, sp <== NOT EXECUTED a000f668: eb0016eb bl a001521c <strtoll> <== NOT EXECUTED
if ( endptr )
a000f66c: e3550000 cmp r5, #0 <== NOT EXECUTED
*endptr = end;
a000f670: 159d3000 ldrne r3, [sp] <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtoll( s, &end, base );
a000f674: e1a07000 mov r7, r0 <== NOT EXECUTED a000f678: e1a08001 mov r8, r1 <== NOT EXECUTED
if ( endptr )
*endptr = end;
a000f67c: 15853000 strne r3, [r5] <== NOT EXECUTED
if ( end == s )
a000f680: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000f684: e1530004 cmp r3, r4 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a000f688: 03a0000b moveq r0, #11 <== NOT EXECUTED
result = strtoll( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
a000f68c: 0a000016 beq a000f6ec <rtems_string_to_long_long+0xc4> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f690: eb000ad6 bl a00121f0 <__errno> <== NOT EXECUTED a000f694: e5903000 ldr r3, [r0] <== NOT EXECUTED a000f698: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000f69c: 1a00000e bne a000f6dc <rtems_string_to_long_long+0xb4> <== NOT EXECUTED
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
a000f6a0: e3e03000 mvn r3, #0 <== NOT EXECUTED a000f6a4: e3e04102 mvn r4, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000f6a8: e0233007 eor r3, r3, r7 <== NOT EXECUTED a000f6ac: e0244008 eor r4, r4, r8 <== NOT EXECUTED a000f6b0: e1932004 orrs r2, r3, r4 <== NOT EXECUTED a000f6b4: 13a03000 movne r3, #0 <== NOT EXECUTED a000f6b8: 03a03001 moveq r3, #1 <== NOT EXECUTED a000f6bc: e1972008 orrs r2, r7, r8 <== NOT EXECUTED
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f6c0: 03833001 orreq r3, r3, #1 <== NOT EXECUTED a000f6c4: e3530000 cmp r3, #0 <== NOT EXECUTED a000f6c8: 1a000006 bne a000f6e8 <rtems_string_to_long_long+0xc0> <== NOT EXECUTED
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
a000f6cc: e3570000 cmp r7, #0 <== NOT EXECUTED a000f6d0: 1a000001 bne a000f6dc <rtems_string_to_long_long+0xb4> <== NOT EXECUTED a000f6d4: e3580102 cmp r8, #-2147483648 ; 0x80000000 <== NOT EXECUTED a000f6d8: 0a000002 beq a000f6e8 <rtems_string_to_long_long+0xc0> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
*n = result;
a000f6dc: e8860180 stm r6, {r7, r8} <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000f6e0: e3a00000 mov r0, #0 <== NOT EXECUTED a000f6e4: ea000000 b a000f6ec <rtems_string_to_long_long+0xc4> <== NOT EXECUTED
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
(( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
return RTEMS_INVALID_NUMBER;
a000f6e8: e3a0000a mov r0, #10 <== NOT EXECUTED
*n = result;
return RTEMS_SUCCESSFUL;
}
a000f6ec: e8bd81f8 pop {r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a000f784 <rtems_string_to_pointer>:
const char *s,
void **n,
char **endptr
)
{
return STRTOFUNC( s, n, endptr );
a000f784: e3a03000 mov r3, #0 <== NOT EXECUTED a000f788: ea000072 b a000f958 <rtems_string_to_unsigned_long> <== NOT EXECUTED
a000f78c <rtems_string_to_unsigned_char>:
const char *s,
unsigned char *n,
char **endptr,
int base
)
{
a000f78c: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
unsigned long result;
char *end;
if ( !n )
a000f790: e2516000 subs r6, r1, #0 <== NOT EXECUTED
const char *s,
unsigned char *n,
char **endptr,
int base
)
{
a000f794: e1a04000 mov r4, r0 <== NOT EXECUTED a000f798: e1a05002 mov r5, r2 <== NOT EXECUTED a000f79c: e1a07003 mov r7, r3 <== NOT EXECUTED
unsigned long result;
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
a000f7a0: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
unsigned long result;
char *end;
if ( !n )
a000f7a4: 0a00001e beq a000f824 <rtems_string_to_unsigned_char+0x98> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
a000f7a8: eb000a90 bl a00121f0 <__errno> <== NOT EXECUTED a000f7ac: e3a03000 mov r3, #0 <== NOT EXECUTED a000f7b0: e5803000 str r3, [r0] <== NOT EXECUTED
*n = 0;
result = strtoul( s, &end, base );
a000f7b4: e1a02007 mov r2, r7 <== NOT EXECUTED
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
a000f7b8: e5c63000 strb r3, [r6] <== NOT EXECUTED
result = strtoul( s, &end, base );
a000f7bc: e1a00004 mov r0, r4 <== NOT EXECUTED a000f7c0: e1a0100d mov r1, sp <== NOT EXECUTED a000f7c4: eb0017b8 bl a00156ac <strtoul> <== NOT EXECUTED
if ( endptr )
a000f7c8: e3550000 cmp r5, #0 <== NOT EXECUTED
*endptr = end;
a000f7cc: 159d3000 ldrne r3, [sp] <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtoul( s, &end, base );
a000f7d0: e1a07000 mov r7, r0 <== NOT EXECUTED
if ( endptr )
*endptr = end;
a000f7d4: 15853000 strne r3, [r5] <== NOT EXECUTED
if ( end == s )
a000f7d8: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000f7dc: e1530004 cmp r3, r4 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a000f7e0: 03a0000b moveq r0, #11 <== NOT EXECUTED
result = strtoul( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
a000f7e4: 0a00000e beq a000f824 <rtems_string_to_unsigned_char+0x98> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f7e8: eb000a80 bl a00121f0 <__errno> <== NOT EXECUTED a000f7ec: e5903000 ldr r3, [r0] <== NOT EXECUTED a000f7f0: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000f7f4: 1a000002 bne a000f804 <rtems_string_to_unsigned_char+0x78> <== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_MAX )))
a000f7f8: e2473001 sub r3, r7, #1 <== NOT EXECUTED
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f7fc: e3730003 cmn r3, #3 <== NOT EXECUTED a000f800: 8a000006 bhi a000f820 <rtems_string_to_unsigned_char+0x94> <== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
#if (UCHAR_MAX < ULONG_MAX)
if ( result > UCHAR_MAX ) {
a000f804: e35700ff cmp r7, #255 ; 0xff <== NOT EXECUTED
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
a000f808: 95c67000 strbls r7, [r6] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000f80c: 93a00000 movls r0, #0 <== NOT EXECUTED
if ( ( errno == ERANGE ) &&
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
#if (UCHAR_MAX < ULONG_MAX)
if ( result > UCHAR_MAX ) {
a000f810: 9a000003 bls a000f824 <rtems_string_to_unsigned_char+0x98> <== NOT EXECUTED
errno = ERANGE;
a000f814: eb000a75 bl a00121f0 <__errno> <== NOT EXECUTED a000f818: e3a03022 mov r3, #34 ; 0x22 <== NOT EXECUTED a000f81c: e5803000 str r3, [r0] <== NOT EXECUTED
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
a000f820: e3a0000a mov r0, #10 <== NOT EXECUTED
#endif
*n = result;
return RTEMS_SUCCESSFUL;
}
a000f824: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000f828 <rtems_string_to_unsigned_int>:
const char *s,
unsigned int *n,
char **endptr,
int base
)
{
a000f828: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
unsigned long result;
char *end;
if ( !n )
a000f82c: e2516000 subs r6, r1, #0 <== NOT EXECUTED
const char *s,
unsigned int *n,
char **endptr,
int base
)
{
a000f830: e1a04000 mov r4, r0 <== NOT EXECUTED a000f834: e1a05002 mov r5, r2 <== NOT EXECUTED a000f838: e1a07003 mov r7, r3 <== NOT EXECUTED
unsigned long result;
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
a000f83c: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
unsigned long result;
char *end;
if ( !n )
a000f840: 0a000019 beq a000f8ac <rtems_string_to_unsigned_int+0x84> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
a000f844: eb000a69 bl a00121f0 <__errno> <== NOT EXECUTED a000f848: e3a03000 mov r3, #0 <== NOT EXECUTED a000f84c: e5803000 str r3, [r0] <== NOT EXECUTED
*n = 0;
result = strtoul( s, &end, base );
a000f850: e1a02007 mov r2, r7 <== NOT EXECUTED
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
a000f854: e5863000 str r3, [r6] <== NOT EXECUTED
result = strtoul( s, &end, base );
a000f858: e1a00004 mov r0, r4 <== NOT EXECUTED a000f85c: e1a0100d mov r1, sp <== NOT EXECUTED a000f860: eb001791 bl a00156ac <strtoul> <== NOT EXECUTED
if ( endptr )
a000f864: e3550000 cmp r5, #0 <== NOT EXECUTED
*endptr = end;
a000f868: 159d3000 ldrne r3, [sp] <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtoul( s, &end, base );
a000f86c: e1a07000 mov r7, r0 <== NOT EXECUTED
if ( endptr )
*endptr = end;
a000f870: 15853000 strne r3, [r5] <== NOT EXECUTED
if ( end == s )
a000f874: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000f878: e1530004 cmp r3, r4 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a000f87c: 03a0000b moveq r0, #11 <== NOT EXECUTED
result = strtoul( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
a000f880: 0a000009 beq a000f8ac <rtems_string_to_unsigned_int+0x84> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f884: eb000a59 bl a00121f0 <__errno> <== NOT EXECUTED a000f888: e5903000 ldr r3, [r0] <== NOT EXECUTED a000f88c: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000f890: 1a000003 bne a000f8a4 <rtems_string_to_unsigned_int+0x7c> <== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_MAX )))
a000f894: e2473001 sub r3, r7, #1 <== NOT EXECUTED
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f898: e3730003 cmn r3, #3 <== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
a000f89c: 83a0000a movhi r0, #10 <== NOT EXECUTED
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f8a0: 8a000001 bhi a000f8ac <rtems_string_to_unsigned_int+0x84> <== NOT EXECUTED
errno = ERANGE;
return RTEMS_INVALID_NUMBER;
}
#endif
*n = result;
a000f8a4: e5867000 str r7, [r6] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000f8a8: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a000f8ac: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000f958 <rtems_string_to_unsigned_long>:
const char *s,
unsigned long *n,
char **endptr,
int base
)
{
a000f958: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
unsigned long result;
char *end;
if ( !n )
a000f95c: e2516000 subs r6, r1, #0 <== NOT EXECUTED
const char *s,
unsigned long *n,
char **endptr,
int base
)
{
a000f960: e1a04000 mov r4, r0 <== NOT EXECUTED a000f964: e1a05002 mov r5, r2 <== NOT EXECUTED a000f968: e1a07003 mov r7, r3 <== NOT EXECUTED
unsigned long result;
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
a000f96c: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
unsigned long result;
char *end;
if ( !n )
a000f970: 0a000019 beq a000f9dc <rtems_string_to_unsigned_long+0x84> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
a000f974: eb000a1d bl a00121f0 <__errno> <== NOT EXECUTED a000f978: e3a03000 mov r3, #0 <== NOT EXECUTED a000f97c: e5803000 str r3, [r0] <== NOT EXECUTED
*n = 0;
result = strtoul( s, &end, base );
a000f980: e1a02007 mov r2, r7 <== NOT EXECUTED
if ( !n )
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
a000f984: e5863000 str r3, [r6] <== NOT EXECUTED
result = strtoul( s, &end, base );
a000f988: e1a00004 mov r0, r4 <== NOT EXECUTED a000f98c: e1a0100d mov r1, sp <== NOT EXECUTED a000f990: eb001745 bl a00156ac <strtoul> <== NOT EXECUTED
if ( endptr )
a000f994: e3550000 cmp r5, #0 <== NOT EXECUTED
*endptr = end;
a000f998: 159d3000 ldrne r3, [sp] <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtoul( s, &end, base );
a000f99c: e1a07000 mov r7, r0 <== NOT EXECUTED
if ( endptr )
*endptr = end;
a000f9a0: 15853000 strne r3, [r5] <== NOT EXECUTED
if ( end == s )
a000f9a4: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000f9a8: e1530004 cmp r3, r4 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a000f9ac: 03a0000b moveq r0, #11 <== NOT EXECUTED
result = strtoul( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
a000f9b0: 0a000009 beq a000f9dc <rtems_string_to_unsigned_long+0x84> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f9b4: eb000a0d bl a00121f0 <__errno> <== NOT EXECUTED a000f9b8: e5903000 ldr r3, [r0] <== NOT EXECUTED a000f9bc: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000f9c0: 1a000003 bne a000f9d4 <rtems_string_to_unsigned_long+0x7c> <== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_MAX )))
a000f9c4: e2473001 sub r3, r7, #1 <== NOT EXECUTED
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f9c8: e3730003 cmn r3, #3 <== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
a000f9cc: 83a0000a movhi r0, #10 <== NOT EXECUTED
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f9d0: 8a000001 bhi a000f9dc <rtems_string_to_unsigned_long+0x84> <== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
a000f9d4: e5867000 str r7, [r6] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000f9d8: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a000f9dc: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000f8b0 <rtems_string_to_unsigned_long_long>:
const char *s,
unsigned long long *n,
char **endptr,
int base
)
{
a000f8b0: e92d41f1 push {r0, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
unsigned long long result;
char *end;
if ( !n )
a000f8b4: e2516000 subs r6, r1, #0 <== NOT EXECUTED
const char *s,
unsigned long long *n,
char **endptr,
int base
)
{
a000f8b8: e1a04000 mov r4, r0 <== NOT EXECUTED a000f8bc: e1a05002 mov r5, r2 <== NOT EXECUTED a000f8c0: e1a07003 mov r7, r3 <== NOT EXECUTED
unsigned long long result;
char *end;
if ( !n )
return RTEMS_INVALID_ADDRESS;
a000f8c4: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
unsigned long long result;
char *end;
if ( !n )
a000f8c8: 0a000021 beq a000f954 <rtems_string_to_unsigned_long_long+0xa4><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
a000f8cc: eb000a47 bl a00121f0 <__errno> <== NOT EXECUTED a000f8d0: e3a03000 mov r3, #0 <== NOT EXECUTED a000f8d4: e5803000 str r3, [r0] <== NOT EXECUTED
*n = 0;
a000f8d8: e3a02000 mov r2, #0 <== NOT EXECUTED
a000f8dc: e3a03000 mov r3, #0 <== NOT EXECUTED
a000f8e0: e886000c stm r6, {r2, r3} <== NOT EXECUTED
result = strtoull( s, &end, base );
a000f8e4: e1a00004 mov r0, r4 <== NOT EXECUTED a000f8e8: e1a02007 mov r2, r7 <== NOT EXECUTED a000f8ec: e1a0100d mov r1, sp <== NOT EXECUTED a000f8f0: eb001778 bl a00156d8 <strtoull> <== NOT EXECUTED
if ( endptr )
a000f8f4: e3550000 cmp r5, #0 <== NOT EXECUTED
*endptr = end;
a000f8f8: 159d3000 ldrne r3, [sp] <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
errno = 0;
*n = 0;
result = strtoull( s, &end, base );
a000f8fc: e1a07000 mov r7, r0 <== NOT EXECUTED a000f900: e1a08001 mov r8, r1 <== NOT EXECUTED
if ( endptr )
*endptr = end;
a000f904: 15853000 strne r3, [r5] <== NOT EXECUTED
if ( end == s )
a000f908: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000f90c: e1530004 cmp r3, r4 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a000f910: 03a0000b moveq r0, #11 <== NOT EXECUTED
result = strtoull( s, &end, base );
if ( endptr )
*endptr = end;
if ( end == s )
a000f914: 0a00000e beq a000f954 <rtems_string_to_unsigned_long_long+0xa4><== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f918: eb000a34 bl a00121f0 <__errno> <== NOT EXECUTED a000f91c: e5903000 ldr r3, [r0] <== NOT EXECUTED a000f920: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000f924: 1a000008 bne a000f94c <rtems_string_to_unsigned_long_long+0x9c><== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
a000f928: e3e03000 mvn r3, #0 <== NOT EXECUTED a000f92c: e0933007 adds r3, r3, r7 <== NOT EXECUTED a000f930: e3e04000 mvn r4, #0 <== NOT EXECUTED a000f934: e0a44008 adc r4, r4, r8 <== NOT EXECUTED
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f938: e3740001 cmn r4, #1 <== NOT EXECUTED a000f93c: 1a000002 bne a000f94c <rtems_string_to_unsigned_long_long+0x9c><== NOT EXECUTED a000f940: e3730003 cmn r3, #3 <== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
return RTEMS_INVALID_NUMBER;
a000f944: 83a0000a movhi r0, #10 <== NOT EXECUTED
*endptr = end;
if ( end == s )
return RTEMS_NOT_DEFINED;
if ( ( errno == ERANGE ) &&
a000f948: 8a000001 bhi a000f954 <rtems_string_to_unsigned_long_long+0xa4><== NOT EXECUTED
(( result == 0 ) || ( result == ULONG_LONG_MAX )))
return RTEMS_INVALID_NUMBER;
*n = result;
a000f94c: e8860180 stm r6, {r7, r8} <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000f950: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a000f954: e8bd81f8 pop {r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0005ca8 <rtems_tarfs_load>:
int rtems_tarfs_load(
char *mountpoint,
uint8_t *tar_image,
size_t tar_size
)
{
a0005ca8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
a0005cac: e24ddf6b sub sp, sp, #428 ; 0x1ac <== NOT EXECUTED
a0005cb0: e58d1010 str r1, [sp, #16] <== NOT EXECUTED
a0005cb4: e58d2018 str r2, [sp, #24] <== NOT EXECUTED
a0005cb8: e58d000c str r0, [sp, #12] <== NOT EXECUTED
int offset;
unsigned long nblocks;
IMFS_jnode_t *node;
int status;
status = rtems_filesystem_evaluate_path(
a0005cbc: eb003f8c bl a0015af4 <strlen> <== NOT EXECUTED a0005cc0: e3a02000 mov r2, #0 <== NOT EXECUTED a0005cc4: e1a01000 mov r1, r0 <== NOT EXECUTED a0005cc8: e28d3f65 add r3, sp, #404 ; 0x194 <== NOT EXECUTED a0005ccc: e59d000c ldr r0, [sp, #12] <== NOT EXECUTED a0005cd0: e58d2000 str r2, [sp] <== NOT EXECUTED a0005cd4: eb00029e bl a0006754 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
strlen(mountpoint),
0,
&root_loc,
0
);
if (status != 0)
a0005cd8: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0005cdc: 1a00006d bne a0005e98 <rtems_tarfs_load+0x1f0> <== NOT EXECUTED
return -1;
if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)
a0005ce0: e59d31a0 ldr r3, [sp, #416] ; 0x1a0 <== NOT EXECUTED a0005ce4: e59f21c4 ldr r2, [pc, #452] ; a0005eb0 <rtems_tarfs_load+0x208><== NOT EXECUTED a0005ce8: e1530002 cmp r3, r2 <== NOT EXECUTED a0005cec: 0a000005 beq a0005d08 <rtems_tarfs_load+0x60> <== NOT EXECUTED a0005cf0: e59f21bc ldr r2, [pc, #444] ; a0005eb4 <rtems_tarfs_load+0x20c><== NOT EXECUTED a0005cf4: e1530002 cmp r3, r2 <== NOT EXECUTED a0005cf8: 1a000066 bne a0005e98 <rtems_tarfs_load+0x1f0> <== NOT EXECUTED a0005cfc: ea000001 b a0005d08 <rtems_tarfs_load+0x60> <== NOT EXECUTED a0005d00: e1a08004 mov r8, r4 <== NOT EXECUTED a0005d04: ea000006 b a0005d24 <rtems_tarfs_load+0x7c> <== NOT EXECUTED
* should not have this path.
*/
else if (linkflag == REGTYPE) {
const char *name;
loc = root_loc;
a0005d08: e28d2f65 add r2, sp, #404 ; 0x194 <== NOT EXECUTED
0
);
if (status != 0)
return -1;
if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)
a0005d0c: e1a08004 mov r8, r4 <== NOT EXECUTED
hdr_ptr = (char *) &tar_image[offset];
offset += 512;
if (strncmp(&hdr_ptr[257], "ustar", 5))
break;
strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);
a0005d10: e28d7f47 add r7, sp, #284 ; 0x11c <== NOT EXECUTED
* should not have this path.
*/
else if (linkflag == REGTYPE) {
const char *name;
loc = root_loc;
a0005d14: e28d9d06 add r9, sp, #384 ; 0x180 <== NOT EXECUTED a0005d18: e58d2004 str r2, [sp, #4] <== NOT EXECUTED
* - For directories, just create directories as usual. IMFS
* will take care of the rest.
* - For files, create a file node with special tarfs properties.
*/
if (linkflag == DIRTYPE) {
strcpy(full_filename, mountpoint);
a0005d1c: e28d501c add r5, sp, #28 <== NOT EXECUTED a0005d20: e1a0a004 mov sl, r4 <== NOT EXECUTED
/*
* Create an IMFS node structure pointing to tar image memory.
*/
offset = 0;
while (1) {
if (offset + 512 > tar_size)
a0005d24: e59d3018 ldr r3, [sp, #24] <== NOT EXECUTED a0005d28: e2884c02 add r4, r8, #512 ; 0x200 <== NOT EXECUTED a0005d2c: e1540003 cmp r4, r3 <== NOT EXECUTED a0005d30: 8a00005a bhi a0005ea0 <rtems_tarfs_load+0x1f8> <== NOT EXECUTED
break;
/*
* Read a header.
*/
hdr_ptr = (char *) &tar_image[offset];
a0005d34: e59de010 ldr lr, [sp, #16] <== NOT EXECUTED
offset += 512;
if (strncmp(&hdr_ptr[257], "ustar", 5))
a0005d38: e59f1178 ldr r1, [pc, #376] ; a0005eb8 <rtems_tarfs_load+0x210><== NOT EXECUTED a0005d3c: e3a02005 mov r2, #5 <== NOT EXECUTED
break;
/*
* Read a header.
*/
hdr_ptr = (char *) &tar_image[offset];
a0005d40: e08e8008 add r8, lr, r8 <== NOT EXECUTED
offset += 512;
if (strncmp(&hdr_ptr[257], "ustar", 5))
a0005d44: e2880c01 add r0, r8, #256 ; 0x100 <== NOT EXECUTED a0005d48: e2800001 add r0, r0, #1 <== NOT EXECUTED a0005d4c: eb003f80 bl a0015b54 <strncmp> <== NOT EXECUTED a0005d50: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0005d54: 1a000051 bne a0005ea0 <rtems_tarfs_load+0x1f8> <== NOT EXECUTED
break;
strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);
a0005d58: e3a02063 mov r2, #99 ; 0x63 <== NOT EXECUTED a0005d5c: e1a01008 mov r1, r8 <== NOT EXECUTED a0005d60: e1a00007 mov r0, r7 <== NOT EXECUTED a0005d64: eb003fdb bl a0015cd8 <strncpy> <== NOT EXECUTED
filename[MAX_NAME_FIELD_SIZE] = '\0';
a0005d68: e5cd617f strb r6, [sp, #383] ; 0x17f <== NOT EXECUTED
linkflag = hdr_ptr[156];
file_mode = _rtems_octal2ulong(&hdr_ptr[100], 8);
a0005d6c: e3a01008 mov r1, #8 <== NOT EXECUTED a0005d70: e2880064 add r0, r8, #100 ; 0x64 <== NOT EXECUTED
break;
strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);
filename[MAX_NAME_FIELD_SIZE] = '\0';
linkflag = hdr_ptr[156];
a0005d74: e5d8609c ldrb r6, [r8, #156] ; 0x9c <== NOT EXECUTED
file_mode = _rtems_octal2ulong(&hdr_ptr[100], 8);
a0005d78: eb001ddb bl a000d4ec <_rtems_octal2ulong> <== NOT EXECUTED
file_size = _rtems_octal2ulong(&hdr_ptr[124], 12);
a0005d7c: e3a0100c mov r1, #12 <== NOT EXECUTED
strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);
filename[MAX_NAME_FIELD_SIZE] = '\0';
linkflag = hdr_ptr[156];
file_mode = _rtems_octal2ulong(&hdr_ptr[100], 8);
a0005d80: e58d0014 str r0, [sp, #20] <== NOT EXECUTED
file_size = _rtems_octal2ulong(&hdr_ptr[124], 12);
a0005d84: e288007c add r0, r8, #124 ; 0x7c <== NOT EXECUTED a0005d88: eb001dd7 bl a000d4ec <_rtems_octal2ulong> <== NOT EXECUTED
hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);
a0005d8c: e3a01008 mov r1, #8 <== NOT EXECUTED
strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);
filename[MAX_NAME_FIELD_SIZE] = '\0';
linkflag = hdr_ptr[156];
file_mode = _rtems_octal2ulong(&hdr_ptr[100], 8);
file_size = _rtems_octal2ulong(&hdr_ptr[124], 12);
a0005d90: e1a0b000 mov fp, r0 <== NOT EXECUTED
hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);
a0005d94: e2880094 add r0, r8, #148 ; 0x94 <== NOT EXECUTED a0005d98: eb001dd3 bl a000d4ec <_rtems_octal2ulong> <== NOT EXECUTED a0005d9c: e1a03000 mov r3, r0 <== NOT EXECUTED
if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)
a0005da0: e1a00008 mov r0, r8 <== NOT EXECUTED a0005da4: e58d3008 str r3, [sp, #8] <== NOT EXECUTED a0005da8: eb001ddd bl a000d524 <_rtems_tar_header_checksum> <== NOT EXECUTED a0005dac: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0005db0: e1500003 cmp r0, r3 <== NOT EXECUTED a0005db4: 1a000039 bne a0005ea0 <rtems_tarfs_load+0x1f8> <== NOT EXECUTED
* Generate an IMFS node depending on the file type.
* - For directories, just create directories as usual. IMFS
* will take care of the rest.
* - For files, create a file node with special tarfs properties.
*/
if (linkflag == DIRTYPE) {
a0005db8: e3560035 cmp r6, #53 ; 0x35 <== NOT EXECUTED a0005dbc: 1a000013 bne a0005e10 <rtems_tarfs_load+0x168> <== NOT EXECUTED
strcpy(full_filename, mountpoint);
a0005dc0: e59d100c ldr r1, [sp, #12] <== NOT EXECUTED a0005dc4: e1a00005 mov r0, r5 <== NOT EXECUTED a0005dc8: eb003d85 bl a00153e4 <strcpy> <== NOT EXECUTED
if (full_filename[strlen(full_filename)-1] != '/')
a0005dcc: e1a00005 mov r0, r5 <== NOT EXECUTED a0005dd0: eb003f47 bl a0015af4 <strlen> <== NOT EXECUTED a0005dd4: e28d2f6b add r2, sp, #428 ; 0x1ac <== NOT EXECUTED a0005dd8: e0820000 add r0, r2, r0 <== NOT EXECUTED a0005ddc: e5503191 ldrb r3, [r0, #-401] ; 0x191 <== NOT EXECUTED a0005de0: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED a0005de4: 0a000002 beq a0005df4 <rtems_tarfs_load+0x14c> <== NOT EXECUTED
strcat(full_filename, "/");
a0005de8: e1a00005 mov r0, r5 <== NOT EXECUTED a0005dec: e59f10c8 ldr r1, [pc, #200] ; a0005ebc <rtems_tarfs_load+0x214><== NOT EXECUTED a0005df0: eb003cc4 bl a0015108 <strcat> <== NOT EXECUTED
strcat(full_filename, filename);
a0005df4: e1a01007 mov r1, r7 <== NOT EXECUTED a0005df8: e1a00005 mov r0, r5 <== NOT EXECUTED a0005dfc: eb003cc1 bl a0015108 <strcat> <== NOT EXECUTED
mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);
a0005e00: e1a00005 mov r0, r5 <== NOT EXECUTED a0005e04: e59f10b4 ldr r1, [pc, #180] ; a0005ec0 <rtems_tarfs_load+0x218><== NOT EXECUTED a0005e08: eb000477 bl a0006fec <mkdir> <== NOT EXECUTED a0005e0c: eaffffbb b a0005d00 <rtems_tarfs_load+0x58> <== NOT EXECUTED
* IMFS_create_node was ONLY passed a NULL when we created the
* root node. We added a new IMFS_create_root_node() so this
* path no longer existed. The result was simpler code which
* should not have this path.
*/
else if (linkflag == REGTYPE) {
a0005e10: e3560030 cmp r6, #48 ; 0x30 <== NOT EXECUTED a0005e14: 1affffb9 bne a0005d00 <rtems_tarfs_load+0x58> <== NOT EXECUTED
const char *name;
loc = root_loc;
a0005e18: e59dc004 ldr ip, [sp, #4] <== NOT EXECUTED
a0005e1c: e1a0e009 mov lr, r9 <== NOT EXECUTED
a0005e20: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0005e24: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0005e28: e59c2000 ldr r2, [ip] <== NOT EXECUTED
if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {
a0005e2c: e1a00007 mov r0, r7 <== NOT EXECUTED a0005e30: e1a01009 mov r1, r9 <== NOT EXECUTED
* should not have this path.
*/
else if (linkflag == REGTYPE) {
const char *name;
loc = root_loc;
a0005e34: e58e2000 str r2, [lr] <== NOT EXECUTED
if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {
a0005e38: e28d2f6a add r2, sp, #424 ; 0x1a8 <== NOT EXECUTED a0005e3c: eb00209e bl a000e0bc <IMFS_evaluate_for_make> <== NOT EXECUTED a0005e40: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0005e44: 1a00000d bne a0005e80 <rtems_tarfs_load+0x1d8> <== NOT EXECUTED
node = IMFS_create_node(
&loc,
IMFS_LINEAR_FILE, (char *)name,
(file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,
a0005e48: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED
else if (linkflag == REGTYPE) {
const char *name;
loc = root_loc;
if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {
node = IMFS_create_node(
a0005e4c: e1a00009 mov r0, r9 <== NOT EXECUTED a0005e50: e3a01006 mov r1, #6 <== NOT EXECUTED
&loc,
IMFS_LINEAR_FILE, (char *)name,
(file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,
a0005e54: e1a03b82 lsl r3, r2, #23 <== NOT EXECUTED
else if (linkflag == REGTYPE) {
const char *name;
loc = root_loc;
if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {
node = IMFS_create_node(
a0005e58: e59d21a8 ldr r2, [sp, #424] ; 0x1a8 <== NOT EXECUTED
&loc,
IMFS_LINEAR_FILE, (char *)name,
(file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,
a0005e5c: e1a03ba3 lsr r3, r3, #23 <== NOT EXECUTED
else if (linkflag == REGTYPE) {
const char *name;
loc = root_loc;
if (IMFS_evaluate_for_make(filename, &loc, &name) == 0) {
node = IMFS_create_node(
a0005e60: e3833902 orr r3, r3, #32768 ; 0x8000 <== NOT EXECUTED a0005e64: e58d6000 str r6, [sp] <== NOT EXECUTED a0005e68: eb001f07 bl a000da8c <IMFS_create_node> <== NOT EXECUTED
IMFS_LINEAR_FILE, (char *)name,
(file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,
NULL
);
node->info.linearfile.size = file_size;
node->info.linearfile.direct = &tar_image[offset];
a0005e6c: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED
&loc,
IMFS_LINEAR_FILE, (char *)name,
(file_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) | S_IFREG,
NULL
);
node->info.linearfile.size = file_size;
a0005e70: e580b050 str fp, [r0, #80] ; 0x50 <== NOT EXECUTED a0005e74: e5806054 str r6, [r0, #84] ; 0x54 <== NOT EXECUTED
node->info.linearfile.direct = &tar_image[offset];
a0005e78: e0823004 add r3, r2, r4 <== NOT EXECUTED a0005e7c: e5803058 str r3, [r0, #88] ; 0x58 <== NOT EXECUTED
}
nblocks = (((file_size) + 511) & ~511) / 512;
a0005e80: e28bbf7f add fp, fp, #508 ; 0x1fc <== NOT EXECUTED a0005e84: e28bb003 add fp, fp, #3 <== NOT EXECUTED
offset += 512 * nblocks;
a0005e88: e3cbbf7f bic fp, fp, #508 ; 0x1fc <== NOT EXECUTED a0005e8c: e3cbb003 bic fp, fp, #3 <== NOT EXECUTED a0005e90: e08b4004 add r4, fp, r4 <== NOT EXECUTED a0005e94: eaffff99 b a0005d00 <rtems_tarfs_load+0x58> <== NOT EXECUTED
);
if (status != 0)
return -1;
if (root_loc.ops != &IMFS_ops && root_loc.ops != &fifoIMFS_ops)
return -1;
a0005e98: e3e04000 mvn r4, #0 <== NOT EXECUTED a0005e9c: ea000000 b a0005ea4 <rtems_tarfs_load+0x1fc> <== NOT EXECUTED a0005ea0: e1a0400a mov r4, sl <== NOT EXECUTED
nblocks = (((file_size) + 511) & ~511) / 512;
offset += 512 * nblocks;
}
}
return status;
}
a0005ea4: e1a00004 mov r0, r4 <== NOT EXECUTED
a0005ea8: e28ddf6b add sp, sp, #428 ; 0x1ac <== NOT EXECUTED
a0005eac: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a0009564 <rtems_task_create>:
size_t stack_size,
rtems_mode initial_modes,
rtems_attribute attribute_set,
rtems_id *id
)
{
a0009564: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr}
a0009568: e24dd01c sub sp, sp, #28
a000956c: e59db044 ldr fp, [sp, #68] ; 0x44
a0009570: e1a08000 mov r8, r0
a0009574: e1a0a001 mov sl, r1
Priority_Control core_priority;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !id )
a0009578: e35b0000 cmp fp, #0
size_t stack_size,
rtems_mode initial_modes,
rtems_attribute attribute_set,
rtems_id *id
)
{
a000957c: e1a09002 mov r9, r2 a0009580: e1a07003 mov r7, r3
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !id )
return RTEMS_INVALID_ADDRESS;
a0009584: 03a00009 moveq r0, #9
Priority_Control core_priority;
RTEMS_API_Control *api;
ASR_Information *asr;
if ( !id )
a0009588: 0a000042 beq a0009698 <rtems_task_create+0x134>
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
a000958c: e3580000 cmp r8, #0
return RTEMS_INVALID_NAME;
a0009590: 03a00003 moveq r0, #3
if ( !id )
return RTEMS_INVALID_ADDRESS;
if ( !rtems_is_name_valid( name ) )
a0009594: 0a00003f beq a0009698 <rtems_task_create+0x134>
/*
* Validate the RTEMS API priority and convert it to the core priority range.
*/
if ( !_Attributes_Is_system_task( the_attribute_set ) ) {
a0009598: e59d3040 ldr r3, [sp, #64] ; 0x40 a000959c: e3130902 tst r3, #32768 ; 0x8000
a00095a0: 1a00000a bne a00095d0 <rtems_task_create+0x6c>
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
a00095a4: e3510000 cmp r1, #0 a00095a8: 01a03001 moveq r3, r1
a00095ac: 0a000004 beq a00095c4 <rtems_task_create+0x60>
( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );
a00095b0: e59f30e8 ldr r3, [pc, #232] ; a00096a0 <rtems_task_create+0x13c> a00095b4: e5d33000 ldrb r3, [r3]
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
a00095b8: e1510003 cmp r1, r3 a00095bc: 83a03000 movhi r3, #0 a00095c0: 93a03001 movls r3, #1
if ( !_RTEMS_tasks_Priority_is_valid( initial_priority ) )
a00095c4: e31300ff tst r3, #255 ; 0xff
return RTEMS_INVALID_PRIORITY;
a00095c8: 03a00013 moveq r0, #19
/*
* 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 ) )
a00095cc: 0a000031 beq a0009698 <rtems_task_create+0x134>
*/
/*
* Lock the allocator mutex for protection
*/
_RTEMS_Lock_allocator();
a00095d0: e59f60cc ldr r6, [pc, #204] ; a00096a4 <rtems_task_create+0x140> a00095d4: e5960000 ldr r0, [r6] a00095d8: eb0001a8 bl a0009c80 <_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 );
a00095dc: e59f00c4 ldr r0, [pc, #196] ; a00096a8 <rtems_task_create+0x144> a00095e0: eb000424 bl a000a678 <_Objects_Allocate>
* the event of an error.
*/
the_thread = _RTEMS_tasks_Allocate();
if ( !the_thread ) {
a00095e4: e2504000 subs r4, r0, #0
a00095e8: 1a000003 bne a00095fc <rtems_task_create+0x98>
_RTEMS_Unlock_allocator();
a00095ec: e5960000 ldr r0, [r6] <== NOT EXECUTED a00095f0: eb0001bb bl a0009ce4 <_API_Mutex_Unlock> <== NOT EXECUTED
return RTEMS_TOO_MANY;
a00095f4: e3a00005 mov r0, #5 <== NOT EXECUTED a00095f8: ea000026 b a0009698 <rtems_task_create+0x134> <== NOT EXECUTED
/*
* Initialize the core thread for this task.
*/
status = _Thread_Initialize(
a00095fc: e3170c01 tst r7, #256 ; 0x100 a0009600: 13a03000 movne r3, #0 a0009604: 03a03001 moveq r3, #1 a0009608: e3170c02 tst r7, #512 ; 0x200 a000960c: e58d3008 str r3, [sp, #8] a0009610: 03a03000 moveq r3, #0 a0009614: 13a03001 movne r3, #1
*/
RTEMS_INLINE_ROUTINE bool _Attributes_Is_floating_point(
rtems_attribute attribute_set
)
{
return ( attribute_set & RTEMS_FLOATING_POINT ) ? true : false;
a0009618: e3a05000 mov r5, #0 a000961c: e58d300c str r3, [sp, #12]
*/
RTEMS_INLINE_ROUTINE ISR_Level _Modes_Get_interrupt_level (
Modes_Control mode_set
)
{
return ( mode_set & RTEMS_INTERRUPT_MASK );
a0009620: e2073080 and r3, r7, #128 ; 0x80
a0009624: e58d3014 str r3, [sp, #20]
a0009628: e59f0078 ldr r0, [pc, #120] ; a00096a8 <rtems_task_create+0x144>
a000962c: e1a01004 mov r1, r4
a0009630: e1a02005 mov r2, r5
a0009634: e1a03009 mov r3, r9
a0009638: e88d0420 stm sp, {r5, sl}
a000963c: e58d5010 str r5, [sp, #16]
a0009640: e58d8018 str r8, [sp, #24]
a0009644: eb000883 bl a000b858 <_Thread_Initialize>
NULL, /* no budget algorithm callout */
_Modes_Get_interrupt_level(initial_modes),
(Objects_Name) name
);
if ( !status ) {
a0009648: e1500005 cmp r0, r5
a000964c: 1a000007 bne a0009670 <rtems_task_create+0x10c>
*/
RTEMS_INLINE_ROUTINE void _RTEMS_tasks_Free (
Thread_Control *the_task
)
{
_Objects_Free(
a0009650: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a0009654: eb0004ec bl a000aa0c <_Objects_Get_information_id> <== NOT EXECUTED a0009658: e1a01004 mov r1, r4 <== NOT EXECUTED a000965c: eb0004cc bl a000a994 <_Objects_Free> <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if ( is_global )
_Objects_MP_Free_global_object( the_global_object );
#endif
_RTEMS_tasks_Free( the_thread );
_RTEMS_Unlock_allocator();
a0009660: e5960000 ldr r0, [r6] <== NOT EXECUTED a0009664: eb00019e bl a0009ce4 <_API_Mutex_Unlock> <== NOT EXECUTED
return RTEMS_UNSATISFIED;
a0009668: e3a0000d mov r0, #13 <== NOT EXECUTED a000966c: ea000009 b a0009698 <rtems_task_create+0x134> <== NOT EXECUTED
}
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
a0009670: e59430f8 ldr r3, [r4, #248] ; 0xf8
* id - thread id
* RTEMS_SUCCESSFUL - if successful
* error code - if unsuccessful
*/
rtems_status_code rtems_task_create(
a0009674: e3170b01 tst r7, #1024 ; 0x400 a0009678: 13a02000 movne r2, #0 a000967c: 03a02001 moveq r2, #1 a0009680: e5c32008 strb r2, [r3, #8]
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;
a0009684: e5943008 ldr r3, [r4, #8]
);
}
#endif
_RTEMS_Unlock_allocator();
a0009688: e5960000 ldr r0, [r6]
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;
a000968c: e58b3000 str r3, [fp]
);
}
#endif
_RTEMS_Unlock_allocator();
a0009690: eb000193 bl a0009ce4 <_API_Mutex_Unlock>
return RTEMS_SUCCESSFUL;
a0009694: e1a00005 mov r0, r5
}
a0009698: e28dd01c add sp, sp, #28
a000969c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc}
a00096ac <rtems_task_delete>:
*/
rtems_status_code rtems_task_delete(
rtems_id id
)
{
a00096ac: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
Objects_Information *the_information;
_RTEMS_Lock_allocator();
a00096b0: e59f5068 ldr r5, [pc, #104] ; a0009720 <rtems_task_delete+0x74><== NOT EXECUTED
*/
rtems_status_code rtems_task_delete(
rtems_id id
)
{
a00096b4: e1a04000 mov r4, r0 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
Objects_Information *the_information;
_RTEMS_Lock_allocator();
a00096b8: e5950000 ldr r0, [r5] <== NOT EXECUTED a00096bc: eb00016f bl a0009c80 <_API_Mutex_Lock> <== NOT EXECUTED
the_thread = _Thread_Get( id, &location );
a00096c0: e1a00004 mov r0, r4 <== NOT EXECUTED a00096c4: e1a0100d mov r1, sp <== NOT EXECUTED a00096c8: eb00083d bl a000b7c4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a00096cc: e59d6000 ldr r6, [sp] <== NOT EXECUTED
Objects_Locations location;
Objects_Information *the_information;
_RTEMS_Lock_allocator();
the_thread = _Thread_Get( id, &location );
a00096d0: e1a04000 mov r4, r0 <== NOT EXECUTED
switch ( location ) {
a00096d4: e3560000 cmp r6, #0 <== NOT EXECUTED a00096d8: 1a00000c bne a0009710 <rtems_task_delete+0x64> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_information = _Objects_Get_information_id( the_thread->Object.id );
a00096dc: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED a00096e0: eb0004c9 bl a000aa0c <_Objects_Get_information_id> <== NOT EXECUTED
0 /* Not used */
);
}
#endif
_Thread_Close( the_information, the_thread );
a00096e4: e1a01004 mov r1, r4 <== NOT EXECUTED a00096e8: eb000776 bl a000b4c8 <_Thread_Close> <== NOT EXECUTED a00096ec: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a00096f0: eb0004c5 bl a000aa0c <_Objects_Get_information_id> <== NOT EXECUTED a00096f4: e1a01004 mov r1, r4 <== NOT EXECUTED a00096f8: eb0004a5 bl a000a994 <_Objects_Free> <== NOT EXECUTED
_RTEMS_tasks_Free( the_thread );
_RTEMS_Unlock_allocator();
a00096fc: e5950000 ldr r0, [r5] <== NOT EXECUTED a0009700: eb000177 bl a0009ce4 <_API_Mutex_Unlock> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009704: eb000825 bl a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0009708: e1a00006 mov r0, r6 <== NOT EXECUTED a000970c: ea000002 b a000971c <rtems_task_delete+0x70> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
_RTEMS_Unlock_allocator();
a0009710: e5950000 ldr r0, [r5] <== NOT EXECUTED a0009714: eb000172 bl a0009ce4 <_API_Mutex_Unlock> <== NOT EXECUTED
return RTEMS_INVALID_ID;
a0009718: e3a00004 mov r0, #4 <== NOT EXECUTED
}
a000971c: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a000b698 <rtems_task_get_note>:
rtems_status_code rtems_task_get_note(
rtems_id id,
uint32_t notepad,
uint32_t *note
)
{
a000b698: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
a000b69c: e1a05002 mov r5, r2 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
a000b6a0: e59f209c ldr r2, [pc, #156] ; a000b744 <rtems_task_get_note+0xac><== NOT EXECUTED
rtems_status_code rtems_task_get_note(
rtems_id id,
uint32_t notepad,
uint32_t *note
)
{
a000b6a4: e1a03000 mov r3, r0 <== NOT EXECUTED a000b6a8: e1a04001 mov r4, r1 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
a000b6ac: e5d22004 ldrb r2, [r2, #4] <== NOT EXECUTED a000b6b0: e3520000 cmp r2, #0 <== NOT EXECUTED
return RTEMS_NOT_CONFIGURED;
a000b6b4: 03a00016 moveq r0, #22 <== NOT EXECUTED
{
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
a000b6b8: 0a000020 beq a000b740 <rtems_task_get_note+0xa8> <== NOT EXECUTED
return RTEMS_NOT_CONFIGURED;
if ( !note )
a000b6bc: e3550000 cmp r5, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a000b6c0: 03a00009 moveq r0, #9 <== NOT EXECUTED
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
return RTEMS_NOT_CONFIGURED;
if ( !note )
a000b6c4: 0a00001d beq a000b740 <rtems_task_get_note+0xa8> <== NOT EXECUTED
/*
* 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 )
a000b6c8: e351000f cmp r1, #15 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
a000b6cc: 83a0000a movhi r0, #10 <== NOT EXECUTED
/*
* 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 )
a000b6d0: 8a00001a bhi a000b740 <rtems_task_get_note+0xa8> <== NOT EXECUTED
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
a000b6d4: e3530000 cmp r3, #0 <== NOT EXECUTED a000b6d8: 0a000004 beq a000b6f0 <rtems_task_get_note+0x58> <== NOT EXECUTED
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
a000b6dc: e59f2064 ldr r2, [pc, #100] ; a000b748 <rtems_task_get_note+0xb0><== NOT EXECUTED a000b6e0: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
a000b6e4: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a000b6e8: e1530002 cmp r3, r2 <== NOT EXECUTED a000b6ec: 1a000007 bne a000b710 <rtems_task_get_note+0x78> <== NOT EXECUTED
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
a000b6f0: e59f3050 ldr r3, [pc, #80] ; a000b748 <rtems_task_get_note+0xb0><== NOT EXECUTED
*note = api->Notepads[ notepad ];
a000b6f4: e2844008 add r4, r4, #8 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000b6f8: e3a00000 mov r0, #0 <== NOT EXECUTED
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
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 ];
a000b6fc: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
*note = api->Notepads[ notepad ];
a000b700: e59330f8 ldr r3, [r3, #248] ; 0xf8 <== NOT EXECUTED a000b704: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED a000b708: e5853000 str r3, [r5] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000b70c: ea00000b b a000b740 <rtems_task_get_note+0xa8> <== NOT EXECUTED
}
the_thread = _Thread_Get( id, &location );
a000b710: e1a0100d mov r1, sp <== NOT EXECUTED a000b714: eb0008ee bl a000dad4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000b718: e59d6000 ldr r6, [sp] <== NOT EXECUTED a000b71c: e3560000 cmp r6, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000b720: 13a00004 movne r0, #4 <== NOT EXECUTED
*note = api->Notepads[ notepad ];
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
switch ( location ) {
a000b724: 1a000005 bne a000b740 <rtems_task_get_note+0xa8> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
*note = api->Notepads[ notepad ];
a000b728: e59030f8 ldr r3, [r0, #248] ; 0xf8 <== NOT EXECUTED a000b72c: e2844008 add r4, r4, #8 <== NOT EXECUTED a000b730: e7933104 ldr r3, [r3, r4, lsl #2] <== NOT EXECUTED a000b734: e5853000 str r3, [r5] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000b738: eb0008dc bl a000dab0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000b73c: e1a00006 mov r0, r6 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a000b740: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a0009724 <rtems_task_ident>:
rtems_id *id
)
{
Objects_Name_or_id_lookup_errors status;
if ( !id )
a0009724: e2523000 subs r3, r2, #0 <== NOT EXECUTED
rtems_status_code rtems_task_ident(
rtems_name name,
uint32_t node,
rtems_id *id
)
{
a0009728: e92d4010 push {r4, lr} <== NOT EXECUTED
a000972c: e1a0c000 mov ip, r0 <== NOT EXECUTED
a0009730: e1a04001 mov r4, r1 <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
if ( !id )
a0009734: 0a00000d beq a0009770 <rtems_task_ident+0x4c> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( name == OBJECTS_ID_OF_SELF ) {
a0009738: e3500000 cmp r0, #0 <== NOT EXECUTED a000973c: 1a000004 bne a0009754 <rtems_task_ident+0x30> <== NOT EXECUTED
*id = _Thread_Executing->Object.id;
a0009740: e59f2030 ldr r2, [pc, #48] ; a0009778 <rtems_task_ident+0x54><== NOT EXECUTED a0009744: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED a0009748: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a000974c: e5832000 str r2, [r3] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0009750: e8bd8010 pop {r4, pc} <== NOT EXECUTED
}
status = _Objects_Name_to_id_u32( &_RTEMS_tasks_Information, name, node, id );
a0009754: e59f0020 ldr r0, [pc, #32] ; a000977c <rtems_task_ident+0x58><== NOT EXECUTED a0009758: e1a0100c mov r1, ip <== NOT EXECUTED a000975c: e1a02004 mov r2, r4 <== NOT EXECUTED a0009760: eb00053f bl a000ac64 <_Objects_Name_to_id_u32> <== NOT EXECUTED
return _Status_Object_name_errors_to_status[ status ];
a0009764: e59f3014 ldr r3, [pc, #20] ; a0009780 <rtems_task_ident+0x5c><== NOT EXECUTED
a0009768: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
a000976c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
)
{
Objects_Name_or_id_lookup_errors status;
if ( !id )
return RTEMS_INVALID_ADDRESS;
a0009770: 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 ];
}
a0009774: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a00179d0 <rtems_task_is_suspended>:
*/
rtems_status_code rtems_task_is_suspended(
rtems_id id
)
{
a00179d0: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
a00179d4: e1a0100d mov r1, sp <== NOT EXECUTED a00179d8: eb00102b bl a001ba8c <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a00179dc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00179e0: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00179e4: 13a00004 movne r0, #4 <== NOT EXECUTED
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
a00179e8: 1a000007 bne a0017a0c <rtems_task_is_suspended+0x3c> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_suspended (
States_Control the_states
)
{
return (the_states & STATES_SUSPENDED);
a00179ec: e5904010 ldr r4, [r0, #16] <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
a00179f0: e2144002 ands r4, r4, #2 <== NOT EXECUTED a00179f4: 1a000002 bne a0017a04 <rtems_task_is_suspended+0x34> <== NOT EXECUTED
_Thread_Enable_dispatch();
a00179f8: eb00101a bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a00179fc: e1a00004 mov r0, r4 <== NOT EXECUTED a0017a00: ea000001 b a0017a0c <rtems_task_is_suspended+0x3c> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
a0017a04: eb001017 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_ALREADY_SUSPENDED;
a0017a08: e3a0000f mov r0, #15 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0017a0c: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a0010b84 <rtems_task_mode>:
rtems_status_code rtems_task_mode(
rtems_mode mode_set,
rtems_mode mask,
rtems_mode *previous_mode_set
)
{
a0010b84: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED
ASR_Information *asr;
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
a0010b88: e252a000 subs sl, r2, #0 <== NOT EXECUTED
rtems_status_code rtems_task_mode(
rtems_mode mode_set,
rtems_mode mask,
rtems_mode *previous_mode_set
)
{
a0010b8c: e1a04000 mov r4, r0 <== NOT EXECUTED a0010b90: e1a05001 mov r5, r1 <== NOT EXECUTED
ASR_Information *asr;
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
a0010b94: 0a00004f beq a0010cd8 <rtems_task_mode+0x154> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
executing = _Thread_Executing;
a0010b98: e59f3144 ldr r3, [pc, #324] ; a0010ce4 <rtems_task_mode+0x160><== NOT EXECUTED a0010b9c: e5937004 ldr r7, [r3, #4] <== NOT EXECUTED
api = executing->API_Extensions[ THREAD_API_RTEMS ];
a0010ba0: e59760f8 ldr r6, [r7, #248] ; 0xf8 <== NOT EXECUTED
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
a0010ba4: e5d78074 ldrb r8, [r7, #116] ; 0x74 <== NOT EXECUTED
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
a0010ba8: e597307c ldr r3, [r7, #124] ; 0x7c <== NOT EXECUTED
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
a0010bac: e5d69008 ldrb r9, [r6, #8] <== NOT EXECUTED
executing = _Thread_Executing;
api = executing->API_Extensions[ THREAD_API_RTEMS ];
asr = &api->Signal;
old_mode = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
a0010bb0: e3580000 cmp r8, #0 <== NOT EXECUTED a0010bb4: 03a08c01 moveq r8, #256 ; 0x100 <== NOT EXECUTED a0010bb8: 13a08000 movne r8, #0 <== NOT EXECUTED
if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
a0010bbc: e3530000 cmp r3, #0 <== NOT EXECUTED
old_mode |= RTEMS_NO_TIMESLICE;
else
old_mode |= RTEMS_TIMESLICE;
a0010bc0: 13888c02 orrne r8, r8, #512 ; 0x200 <== NOT EXECUTED
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
a0010bc4: e3590000 cmp r9, #0 <== NOT EXECUTED a0010bc8: 03a09b01 moveq r9, #1024 ; 0x400 <== NOT EXECUTED a0010bcc: 13a09000 movne r9, #0 <== NOT EXECUTED
old_mode |= _ISR_Get_level();
a0010bd0: ebfff017 bl a000cc34 <_CPU_ISR_Get_level> <== NOT EXECUTED
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;
a0010bd4: e1899000 orr r9, r9, r0 <== NOT EXECUTED
old_mode |= _ISR_Get_level();
a0010bd8: e1898008 orr r8, r9, r8 <== NOT EXECUTED
*previous_mode_set = old_mode;
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
a0010bdc: e3150c01 tst r5, #256 ; 0x100 <== NOT EXECUTED
old_mode |= RTEMS_TIMESLICE;
old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;
old_mode |= _ISR_Get_level();
*previous_mode_set = old_mode;
a0010be0: e58a8000 str r8, [sl] <== NOT EXECUTED
/*
* These are generic thread scheduling characteristics.
*/
if ( mask & RTEMS_PREEMPT_MASK )
a0010be4: 0a000003 beq a0010bf8 <rtems_task_mode+0x74> <== NOT EXECUTED
executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
a0010be8: e3140c01 tst r4, #256 ; 0x100 <== NOT EXECUTED a0010bec: 13a03000 movne r3, #0 <== NOT EXECUTED a0010bf0: 03a03001 moveq r3, #1 <== NOT EXECUTED a0010bf4: e5c73074 strb r3, [r7, #116] ; 0x74 <== NOT EXECUTED
if ( mask & RTEMS_TIMESLICE_MASK ) {
a0010bf8: e3150c02 tst r5, #512 ; 0x200 <== NOT EXECUTED a0010bfc: 0a000006 beq a0010c1c <rtems_task_mode+0x98> <== NOT EXECUTED
if ( _Modes_Is_timeslice(mode_set) ) {
a0010c00: e2143c02 ands r3, r4, #512 ; 0x200 <== NOT EXECUTED
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
a0010c04: 13a03001 movne r3, #1 <== NOT EXECUTED a0010c08: 1587307c strne r3, [r7, #124] ; 0x7c <== NOT EXECUTED
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
a0010c0c: 159f30d4 ldrne r3, [pc, #212] ; a0010ce8 <rtems_task_mode+0x164><== NOT EXECUTED
} else
executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;
a0010c10: 0587307c streq r3, [r7, #124] ; 0x7c <== NOT EXECUTED
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;
executing->cpu_time_budget = _Thread_Ticks_per_timeslice;
a0010c14: 15933000 ldrne r3, [r3] <== NOT EXECUTED a0010c18: 15873078 strne r3, [r7, #120] ; 0x78 <== NOT EXECUTED
}
/*
* Set the new interrupt level
*/
if ( mask & RTEMS_INTERRUPT_MASK )
a0010c1c: e3150080 tst r5, #128 ; 0x80 <== NOT EXECUTED a0010c20: 0a000001 beq a0010c2c <rtems_task_mode+0xa8> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (
Modes_Control mode_set
)
{
_ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );
a0010c24: e2040080 and r0, r4, #128 ; 0x80 <== NOT EXECUTED a0010c28: ebffeffc bl a000cc20 <_CPU_ISR_Set_level> <== NOT EXECUTED
* This is specific to the RTEMS API
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
if ( mask & RTEMS_ASR_MASK ) {
a0010c2c: e2150b01 ands r0, r5, #1024 ; 0x400 <== NOT EXECUTED a0010c30: 0a000013 beq a0010c84 <rtems_task_mode+0x100> <== NOT EXECUTED
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
if ( is_asr_enabled != asr->is_enabled ) {
a0010c34: e5d62008 ldrb r2, [r6, #8] <== NOT EXECUTED
* Output:
* *previous_mode_set - previous mode set
* always return RTEMS_SUCCESSFUL;
*/
rtems_status_code rtems_task_mode(
a0010c38: e3140b01 tst r4, #1024 ; 0x400 <== NOT EXECUTED a0010c3c: 13a03000 movne r3, #0 <== NOT EXECUTED a0010c40: 03a03001 moveq r3, #1 <== NOT EXECUTED
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 ) {
a0010c44: e1520003 cmp r2, r3 <== NOT EXECUTED
/*
* This is specific to the RTEMS API
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
a0010c48: 03a00000 moveq r0, #0 <== NOT EXECUTED
if ( mask & RTEMS_ASR_MASK ) {
is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
if ( is_asr_enabled != asr->is_enabled ) {
a0010c4c: 0a00000c beq a0010c84 <rtems_task_mode+0x100> <== NOT EXECUTED
asr->is_enabled = is_asr_enabled;
a0010c50: e5c63008 strb r3, [r6, #8] <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0010c54: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0010c58: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0010c5c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
{
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
_signals = information->signals_pending;
a0010c60: e5962018 ldr r2, [r6, #24] <== NOT EXECUTED
information->signals_pending = information->signals_posted;
a0010c64: e5961014 ldr r1, [r6, #20] <== NOT EXECUTED
information->signals_posted = _signals;
a0010c68: e5862014 str r2, [r6, #20] <== NOT EXECUTED
rtems_signal_set _signals;
ISR_Level _level;
_ISR_Disable( _level );
_signals = information->signals_pending;
information->signals_pending = information->signals_posted;
a0010c6c: e5861018 str r1, [r6, #24] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0010c70: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ASR_Swap_signals( asr );
if ( _ASR_Are_signals_pending( asr ) ) {
a0010c74: e5960014 ldr r0, [r6, #20] <== NOT EXECUTED
/*
* This is specific to the RTEMS API
*/
is_asr_enabled = false;
needs_asr_dispatching = false;
a0010c78: e3500000 cmp r0, #0 <== NOT EXECUTED a0010c7c: 13a00001 movne r0, #1 <== NOT EXECUTED a0010c80: 03a00000 moveq r0, #0 <== NOT EXECUTED
needs_asr_dispatching = true;
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) ) {
a0010c84: e59f3060 ldr r3, [pc, #96] ; a0010cec <rtems_task_mode+0x168><== NOT EXECUTED a0010c88: e5933000 ldr r3, [r3] <== NOT EXECUTED a0010c8c: e3530003 cmp r3, #3 <== NOT EXECUTED
if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
_Thread_Dispatch();
}
return RTEMS_SUCCESSFUL;
a0010c90: 13a00000 movne r0, #0 <== NOT EXECUTED
needs_asr_dispatching = true;
}
}
}
if ( _System_state_Is_up( _System_state_Get() ) ) {
a0010c94: 1a000011 bne a0010ce0 <rtems_task_mode+0x15c> <== NOT EXECUTED
bool are_signals_pending
)
{
Thread_Control *executing;
executing = _Thread_Executing;
a0010c98: e59f2044 ldr r2, [pc, #68] ; a0010ce4 <rtems_task_mode+0x160><== NOT EXECUTED
if ( are_signals_pending ||
a0010c9c: e3500000 cmp r0, #0 <== NOT EXECUTED
bool are_signals_pending
)
{
Thread_Control *executing;
executing = _Thread_Executing;
a0010ca0: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED
if ( are_signals_pending ||
a0010ca4: 1a000005 bne a0010cc0 <rtems_task_mode+0x13c> <== NOT EXECUTED a0010ca8: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a0010cac: e1530002 cmp r3, r2 <== NOT EXECUTED a0010cb0: 0a00000a beq a0010ce0 <rtems_task_mode+0x15c> <== NOT EXECUTED
(!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
a0010cb4: e5d33074 ldrb r3, [r3, #116] ; 0x74 <== NOT EXECUTED a0010cb8: e3530000 cmp r3, #0 <== NOT EXECUTED a0010cbc: 0a000007 beq a0010ce0 <rtems_task_mode+0x15c> <== NOT EXECUTED
_Thread_Dispatch_necessary = true;
a0010cc0: e59f301c ldr r3, [pc, #28] ; a0010ce4 <rtems_task_mode+0x160><== NOT EXECUTED a0010cc4: e3a02001 mov r2, #1 <== NOT EXECUTED a0010cc8: e5c32010 strb r2, [r3, #16] <== NOT EXECUTED
if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
_Thread_Dispatch();
a0010ccc: ebffea6f bl a000b690 <_Thread_Dispatch> <== NOT EXECUTED
}
return RTEMS_SUCCESSFUL;
a0010cd0: e3a00000 mov r0, #0 <== NOT EXECUTED
a0010cd4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
bool is_asr_enabled = false;
bool needs_asr_dispatching = false;
rtems_mode old_mode;
if ( !previous_mode_set )
return RTEMS_INVALID_ADDRESS;
a0010cd8: e3a00009 mov r0, #9 <== NOT EXECUTED
a0010cdc: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
_Thread_Dispatch();
}
return RTEMS_SUCCESSFUL;
}
a0010ce0: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
a000a42c <rtems_task_restart>:
rtems_status_code rtems_task_restart(
rtems_id id,
uint32_t argument
)
{
a000a42c: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a000a430: e1a05001 mov r5, r1 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
a000a434: e1a0100d mov r1, sp <== NOT EXECUTED a000a438: eb00080d bl a000c474 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000a43c: e59d4000 ldr r4, [sp] <== NOT EXECUTED a000a440: e3540000 cmp r4, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000a444: 13a00004 movne r0, #4 <== NOT EXECUTED
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
a000a448: 1a000009 bne a000a474 <rtems_task_restart+0x48> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( _Thread_Restart( the_thread, NULL, argument ) ) {
a000a44c: e1a01004 mov r1, r4 <== NOT EXECUTED a000a450: e1a02005 mov r2, r5 <== NOT EXECUTED a000a454: eb000a05 bl a000cc70 <_Thread_Restart> <== NOT EXECUTED a000a458: e3500000 cmp r0, #0 <== NOT EXECUTED a000a45c: 0a000002 beq a000a46c <rtems_task_restart+0x40> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a460: eb0007fa bl a000c450 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000a464: e1a00004 mov r0, r4 <== NOT EXECUTED a000a468: ea000001 b a000a474 <rtems_task_restart+0x48> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
a000a46c: eb0007f7 bl a000c450 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
a000a470: e3a0000e mov r0, #14 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a000a474: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000c8e4 <rtems_task_resume>:
*/
rtems_status_code rtems_task_resume(
rtems_id id
)
{
a000c8e4: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
a000c8e8: e1a0100d mov r1, sp <== NOT EXECUTED a000c8ec: eb000804 bl a000e904 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000c8f0: e59d4000 ldr r4, [sp] <== NOT EXECUTED
)
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
a000c8f4: e1a03000 mov r3, r0 <== NOT EXECUTED
switch ( location ) {
a000c8f8: e3540000 cmp r4, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000c8fc: 13a00004 movne r0, #4 <== NOT EXECUTED
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
a000c900: 1a000009 bne a000c92c <rtems_task_resume+0x48> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_suspended (
States_Control the_states
)
{
return (the_states & STATES_SUSPENDED);
a000c904: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( _States_Is_suspended( the_thread->current_state ) ) {
a000c908: e3130002 tst r3, #2 <== NOT EXECUTED a000c90c: 0a000004 beq a000c924 <rtems_task_resume+0x40> <== NOT EXECUTED
_Thread_Resume( the_thread );
a000c910: e3a01002 mov r1, #2 <== NOT EXECUTED a000c914: eb00072a bl a000e5c4 <_Thread_Clear_state> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c918: eb0007f0 bl a000e8e0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000c91c: e1a00004 mov r0, r4 <== NOT EXECUTED a000c920: ea000001 b a000c92c <rtems_task_resume+0x48> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
a000c924: eb0007ed bl a000e8e0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
a000c928: e3a0000e mov r0, #14 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a000c92c: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a00126b4 <rtems_task_self>:
#include <rtems/system.h>
#include <rtems/rtems/tasks.h>
rtems_id rtems_task_self(void)
{
return _Thread_Executing->Object.id;
a00126b4: e59f3008 ldr r3, [pc, #8] ; a00126c4 <rtems_task_self+0x10><== NOT EXECUTED a00126b8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
}
a00126bc: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a00126c0: e12fff1e bx lr <== NOT EXECUTED
a000b82c <rtems_task_set_note>:
rtems_status_code rtems_task_set_note(
rtems_id id,
uint32_t notepad,
uint32_t note
)
{
a000b82c: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
a000b830: e1a05002 mov r5, r2 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
a000b834: e59f2088 ldr r2, [pc, #136] ; a000b8c4 <rtems_task_set_note+0x98><== NOT EXECUTED
rtems_status_code rtems_task_set_note(
rtems_id id,
uint32_t notepad,
uint32_t note
)
{
a000b838: e1a03000 mov r3, r0 <== NOT EXECUTED a000b83c: e1a04001 mov r4, r1 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
a000b840: e5d22004 ldrb r2, [r2, #4] <== NOT EXECUTED a000b844: e3520000 cmp r2, #0 <== NOT EXECUTED
return RTEMS_NOT_CONFIGURED;
a000b848: 03a00016 moveq r0, #22 <== NOT EXECUTED
{
register Thread_Control *the_thread;
Objects_Locations location;
RTEMS_API_Control *api;
if ( !rtems_configuration_get_notepads_enabled() )
a000b84c: 0a00001b beq a000b8c0 <rtems_task_set_note+0x94> <== NOT EXECUTED
/*
* 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 )
a000b850: e351000f cmp r1, #15 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
a000b854: 83a0000a movhi r0, #10 <== NOT EXECUTED
/*
* 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 )
a000b858: 8a000018 bhi a000b8c0 <rtems_task_set_note+0x94> <== NOT EXECUTED
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
a000b85c: e3530000 cmp r3, #0 <== NOT EXECUTED a000b860: 0a000004 beq a000b878 <rtems_task_set_note+0x4c> <== NOT EXECUTED
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
a000b864: e59f205c ldr r2, [pc, #92] ; a000b8c8 <rtems_task_set_note+0x9c><== NOT EXECUTED a000b868: e5922004 ldr r2, [r2, #4] <== NOT EXECUTED
/*
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
if ( _Objects_Are_ids_equal( id, OBJECTS_ID_OF_SELF ) ||
a000b86c: e5922008 ldr r2, [r2, #8] <== NOT EXECUTED a000b870: e1530002 cmp r3, r2 <== NOT EXECUTED a000b874: 1a000006 bne a000b894 <rtems_task_set_note+0x68> <== NOT EXECUTED
_Objects_Are_ids_equal( id, _Thread_Executing->Object.id ) ) {
api = _Thread_Executing->API_Extensions[ THREAD_API_RTEMS ];
a000b878: e59f3048 ldr r3, [pc, #72] ; a000b8c8 <rtems_task_set_note+0x9c><== NOT EXECUTED
api->Notepads[ notepad ] = note;
a000b87c: e2844008 add r4, r4, #8 <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000b880: e3a00000 mov r0, #0 <== NOT EXECUTED
* Optimize the most likely case to avoid the Thread_Dispatch.
*/
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 ];
a000b884: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
api->Notepads[ notepad ] = note;
a000b888: e59330f8 ldr r3, [r3, #248] ; 0xf8 <== NOT EXECUTED a000b88c: e7835104 str r5, [r3, r4, lsl #2] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000b890: ea00000a b a000b8c0 <rtems_task_set_note+0x94> <== NOT EXECUTED
}
the_thread = _Thread_Get( id, &location );
a000b894: e1a0100d mov r1, sp <== NOT EXECUTED a000b898: eb00088d bl a000dad4 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000b89c: e59d6000 ldr r6, [sp] <== NOT EXECUTED a000b8a0: e3560000 cmp r6, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000b8a4: 13a00004 movne r0, #4 <== NOT EXECUTED
api->Notepads[ notepad ] = note;
return RTEMS_SUCCESSFUL;
}
the_thread = _Thread_Get( id, &location );
switch ( location ) {
a000b8a8: 1a000004 bne a000b8c0 <rtems_task_set_note+0x94> <== NOT EXECUTED
case OBJECTS_LOCAL:
api = the_thread->API_Extensions[ THREAD_API_RTEMS ];
api->Notepads[ notepad ] = note;
a000b8ac: e59030f8 ldr r3, [r0, #248] ; 0xf8 <== NOT EXECUTED a000b8b0: e2844008 add r4, r4, #8 <== NOT EXECUTED a000b8b4: e7835104 str r5, [r3, r4, lsl #2] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000b8b8: eb00087c bl a000dab0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000b8bc: e1a00006 mov r0, r6 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a000b8c0: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a000d994 <rtems_task_set_priority>:
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
a000d994: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
a000d998: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_task_set_priority(
rtems_id id,
rtems_task_priority new_priority,
rtems_task_priority *old_priority
)
{
a000d99c: e1a05002 mov r5, r2 <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
a000d9a0: 0a000004 beq a000d9b8 <rtems_task_set_priority+0x24> <== NOT EXECUTED
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 ) );
a000d9a4: e59f3074 ldr r3, [pc, #116] ; a000da20 <rtems_task_set_priority+0x8c><== NOT EXECUTED a000d9a8: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a000d9ac: e1540003 cmp r4, r3 <== NOT EXECUTED
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
a000d9b0: 83a00013 movhi r0, #19 <== NOT EXECUTED
)
{
register Thread_Control *the_thread;
Objects_Locations location;
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
a000d9b4: 8a000018 bhi a000da1c <rtems_task_set_priority+0x88> <== NOT EXECUTED
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
a000d9b8: e3550000 cmp r5, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a000d9bc: 03a00009 moveq r0, #9 <== NOT EXECUTED
if ( new_priority != RTEMS_CURRENT_PRIORITY &&
!_RTEMS_tasks_Priority_is_valid( new_priority ) )
return RTEMS_INVALID_PRIORITY;
if ( !old_priority )
a000d9c0: 0a000015 beq a000da1c <rtems_task_set_priority+0x88> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
a000d9c4: e1a0100d mov r1, sp <== NOT EXECUTED a000d9c8: eb000883 bl a000fbdc <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000d9cc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000d9d0: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000d9d4: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !old_priority )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
a000d9d8: 1a00000f bne a000da1c <rtems_task_set_priority+0x88> <== NOT EXECUTED
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
*old_priority = the_thread->current_priority;
a000d9dc: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
a000d9e0: e3540000 cmp r4, #0 <== NOT EXECUTED
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;
a000d9e4: e5853000 str r3, [r5] <== NOT EXECUTED
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
a000d9e8: 0a000009 beq a000da14 <rtems_task_set_priority+0x80> <== NOT EXECUTED
the_thread->real_priority = new_priority;
if ( the_thread->resource_count == 0 ||
a000d9ec: e590301c ldr r3, [r0, #28] <== NOT EXECUTED
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;
a000d9f0: e5804018 str r4, [r0, #24] <== NOT EXECUTED
if ( the_thread->resource_count == 0 ||
a000d9f4: e3530000 cmp r3, #0 <== NOT EXECUTED a000d9f8: 0a000002 beq a000da08 <rtems_task_set_priority+0x74> <== NOT EXECUTED a000d9fc: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a000da00: e1530004 cmp r3, r4 <== NOT EXECUTED a000da04: 9a000002 bls a000da14 <rtems_task_set_priority+0x80> <== NOT EXECUTED
the_thread->current_priority > new_priority )
_Thread_Change_priority( the_thread, new_priority, false );
a000da08: e1a01004 mov r1, r4 <== NOT EXECUTED a000da0c: e3a02000 mov r2, #0 <== NOT EXECUTED a000da10: eb000765 bl a000f7ac <_Thread_Change_priority> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
a000da14: eb000867 bl a000fbb8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000da18: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a000da1c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0009804 <rtems_task_start>:
rtems_status_code rtems_task_start(
rtems_id id,
rtems_task_entry entry_point,
rtems_task_argument argument
)
{
a0009804: e92d4073 push {r0, r1, r4, r5, r6, lr}
register Thread_Control *the_thread;
Objects_Locations location;
if ( entry_point == NULL )
a0009808: e2515000 subs r5, r1, #0
rtems_status_code rtems_task_start(
rtems_id id,
rtems_task_entry entry_point,
rtems_task_argument argument
)
{
a000980c: e1a06002 mov r6, r2
register Thread_Control *the_thread;
Objects_Locations location;
if ( entry_point == NULL )
return RTEMS_INVALID_ADDRESS;
a0009810: 03a00009 moveq r0, #9
)
{
register Thread_Control *the_thread;
Objects_Locations location;
if ( entry_point == NULL )
a0009814: 0a000011 beq a0009860 <rtems_task_start+0x5c>
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
a0009818: e28d1004 add r1, sp, #4 a000981c: eb0007e8 bl a000b7c4 <_Thread_Get>
switch ( location ) {
a0009820: e59d4004 ldr r4, [sp, #4] a0009824: e3540000 cmp r4, #0
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0009828: 13a00004 movne r0, #4
if ( entry_point == NULL )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
a000982c: 1a00000b bne a0009860 <rtems_task_start+0x5c>
case OBJECTS_LOCAL:
if ( _Thread_Start(
a0009830: e1a01004 mov r1, r4 a0009834: e1a02005 mov r2, r5 a0009838: e1a03004 mov r3, r4 a000983c: e58d6000 str r6, [sp] a0009840: eb000a39 bl a000c12c <_Thread_Start> a0009844: e3500000 cmp r0, #0
a0009848: 0a000002 beq a0009858 <rtems_task_start+0x54>
the_thread, THREAD_START_NUMERIC, entry_point, NULL, argument ) ) {
_Thread_Enable_dispatch();
a000984c: eb0007d3 bl a000b7a0 <_Thread_Enable_dispatch>
return RTEMS_SUCCESSFUL;
a0009850: e1a00004 mov r0, r4 a0009854: ea000001 b a0009860 <rtems_task_start+0x5c>
}
_Thread_Enable_dispatch();
a0009858: eb0007d0 bl a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
a000985c: e3a0000e mov r0, #14 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0009860: e8bd807c pop {r2, r3, r4, r5, r6, pc}
a000cb48 <rtems_task_suspend>:
*/
rtems_status_code rtems_task_suspend(
rtems_id id
)
{
a000cb48: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
a000cb4c: e1a0100d mov r1, sp <== NOT EXECUTED a000cb50: eb0007d4 bl a000eaa8 <_Thread_Get> <== NOT EXECUTED
switch ( location ) {
a000cb54: e59d2000 ldr r2, [sp] <== NOT EXECUTED
)
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
a000cb58: e1a03000 mov r3, r0 <== NOT EXECUTED
switch ( location ) {
a000cb5c: e3520000 cmp r2, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000cb60: 13a00004 movne r0, #4 <== NOT EXECUTED
{
register Thread_Control *the_thread;
Objects_Locations location;
the_thread = _Thread_Get( id, &location );
switch ( location ) {
a000cb64: 1a000009 bne a000cb90 <rtems_task_suspend+0x48> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _States_Is_suspended (
States_Control the_states
)
{
return (the_states & STATES_SUSPENDED);
a000cb68: e5934010 ldr r4, [r3, #16] <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_States_Is_suspended( the_thread->current_state ) ) {
a000cb6c: e2144002 ands r4, r4, #2 <== NOT EXECUTED a000cb70: 1a000004 bne a000cb88 <rtems_task_suspend+0x40> <== NOT EXECUTED
_Thread_Suspend( the_thread );
a000cb74: e3a01002 mov r1, #2 <== NOT EXECUTED a000cb78: eb0009d0 bl a000f2c0 <_Thread_Set_state> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000cb7c: eb0007c0 bl a000ea84 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000cb80: e1a00004 mov r0, r4 <== NOT EXECUTED a000cb84: ea000001 b a000cb90 <rtems_task_suspend+0x48> <== NOT EXECUTED
}
_Thread_Enable_dispatch();
a000cb88: eb0007bd bl a000ea84 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_ALREADY_SUSPENDED;
a000cb8c: e3a0000f mov r0, #15 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a000cb90: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000a520 <rtems_task_variable_add>:
rtems_status_code rtems_task_variable_add(
rtems_id tid,
void **ptr,
void (*dtor)(void *)
)
{
a000a520: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *new;
if ( !ptr )
a000a524: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_task_variable_add(
rtems_id tid,
void **ptr,
void (*dtor)(void *)
)
{
a000a528: e1a05002 mov r5, r2 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *new;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
a000a52c: 03a00009 moveq r0, #9 <== NOT EXECUTED
{
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *new;
if ( !ptr )
a000a530: 0a000023 beq a000a5c4 <rtems_task_variable_add+0xa4> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
a000a534: e1a0100d mov r1, sp <== NOT EXECUTED a000a538: eb000823 bl a000c5cc <_Thread_Get> <== NOT EXECUTED
switch (location) {
a000a53c: e59d3000 ldr r3, [sp] <== NOT EXECUTED
rtems_task_variable_t *tvp, *new;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
a000a540: e1a07000 mov r7, r0 <== NOT EXECUTED
switch (location) {
a000a544: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Figure out if the variable is already in this task's list.
*/
tvp = the_thread->task_variables;
a000a548: 05906104 ldreq r6, [r0, #260] ; 0x104 <== NOT EXECUTED
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
switch (location) {
a000a54c: 0a000008 beq a000a574 <rtems_task_variable_add+0x54> <== NOT EXECUTED a000a550: ea00001a b a000a5c0 <rtems_task_variable_add+0xa0> <== NOT EXECUTED
/*
* Figure out if the variable is already in this task's list.
*/
tvp = the_thread->task_variables;
while (tvp) {
if (tvp->ptr == ptr) {
a000a554: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED a000a558: e1530004 cmp r3, r4 <== NOT EXECUTED a000a55c: 1a000003 bne a000a570 <rtems_task_variable_add+0x50> <== NOT EXECUTED
tvp->dtor = dtor;
a000a560: e5865010 str r5, [r6, #16] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a564: eb00080f bl a000c5a8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000a568: e3a00000 mov r0, #0 <== NOT EXECUTED a000a56c: ea000014 b a000a5c4 <rtems_task_variable_add+0xa4> <== NOT EXECUTED
}
tvp = (rtems_task_variable_t *)tvp->next;
a000a570: e5966000 ldr r6, [r6] <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Figure out if the variable is already in this task's list.
*/
tvp = the_thread->task_variables;
while (tvp) {
a000a574: e3560000 cmp r6, #0 <== NOT EXECUTED a000a578: 1afffff5 bne a000a554 <rtems_task_variable_add+0x34> <== NOT EXECUTED
/*
* Now allocate memory for this task variable.
*/
new = (rtems_task_variable_t *)
_Workspace_Allocate(sizeof(rtems_task_variable_t));
a000a57c: e3a00014 mov r0, #20 <== NOT EXECUTED a000a580: eb000c31 bl a000d64c <_Workspace_Allocate> <== NOT EXECUTED
if (new == NULL) {
a000a584: e3500000 cmp r0, #0 <== NOT EXECUTED a000a588: 1a000002 bne a000a598 <rtems_task_variable_add+0x78> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a58c: eb000805 bl a000c5a8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_NO_MEMORY;
a000a590: e3a0001a mov r0, #26 <== NOT EXECUTED a000a594: ea00000a b a000a5c4 <rtems_task_variable_add+0xa4> <== NOT EXECUTED
}
new->gval = *ptr;
a000a598: e5943000 ldr r3, [r4] <== NOT EXECUTED
new->ptr = ptr;
a000a59c: e5804004 str r4, [r0, #4] <== NOT EXECUTED
new->dtor = dtor;
a000a5a0: e5805010 str r5, [r0, #16] <== NOT EXECUTED
_Workspace_Allocate(sizeof(rtems_task_variable_t));
if (new == NULL) {
_Thread_Enable_dispatch();
return RTEMS_NO_MEMORY;
}
new->gval = *ptr;
a000a5a4: e5803008 str r3, [r0, #8] <== NOT EXECUTED
new->ptr = ptr;
new->dtor = dtor;
new->next = (struct rtems_task_variable_tt *)the_thread->task_variables;
a000a5a8: e5973104 ldr r3, [r7, #260] ; 0x104 <== NOT EXECUTED a000a5ac: e5803000 str r3, [r0] <== NOT EXECUTED
the_thread->task_variables = new;
a000a5b0: e5870104 str r0, [r7, #260] ; 0x104 <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a5b4: eb0007fb bl a000c5a8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000a5b8: e1a00006 mov r0, r6 <== NOT EXECUTED a000a5bc: ea000000 b a000a5c4 <rtems_task_variable_add+0xa4> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000a5c0: e3a00004 mov r0, #4 <== NOT EXECUTED
}
a000a5c4: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED
a000a5c8 <rtems_task_variable_delete>:
rtems_status_code rtems_task_variable_delete(
rtems_id tid,
void **ptr
)
{
a000a5c8: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
a000a5cc: e2514000 subs r4, r1, #0 <== NOT EXECUTED a000a5d0: 0a000016 beq a000a630 <rtems_task_variable_delete+0x68> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
prev = NULL;
the_thread = _Thread_Get (tid, &location);
a000a5d4: e1a0100d mov r1, sp <== NOT EXECUTED a000a5d8: eb0007fb bl a000c5cc <_Thread_Get> <== NOT EXECUTED
switch (location) {
a000a5dc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a5e0: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
a000a5e4: 05901104 ldreq r1, [r0, #260] ; 0x104 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
prev = NULL;
the_thread = _Thread_Get (tid, &location);
switch (location) {
a000a5e8: 0a00000d beq a000a624 <rtems_task_variable_delete+0x5c> <== NOT EXECUTED a000a5ec: ea000011 b a000a638 <rtems_task_variable_delete+0x70> <== NOT EXECUTED
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
if (tvp->ptr == ptr) {
a000a5f0: e5912004 ldr r2, [r1, #4] <== NOT EXECUTED a000a5f4: e1520004 cmp r2, r4 <== NOT EXECUTED a000a5f8: 1a000007 bne a000a61c <rtems_task_variable_delete+0x54> <== NOT EXECUTED a000a5fc: e5912000 ldr r2, [r1] <== NOT EXECUTED
if (prev)
a000a600: e3530000 cmp r3, #0 <== NOT EXECUTED
prev->next = tvp->next;
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
a000a604: 05802104 streq r2, [r0, #260] ; 0x104 <== NOT EXECUTED
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
if (tvp->ptr == ptr) {
if (prev)
prev->next = tvp->next;
a000a608: 15832000 strne r2, [r3] <== NOT EXECUTED
else
the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
_RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );
a000a60c: eb000028 bl a000a6b4 <_RTEMS_Tasks_Invoke_task_variable_dtor><== NOT EXECUTED
_Thread_Enable_dispatch();
a000a610: eb0007e4 bl a000c5a8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000a614: e3a00000 mov r0, #0 <== NOT EXECUTED a000a618: ea000007 b a000a63c <rtems_task_variable_delete+0x74> <== NOT EXECUTED
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
a000a61c: e1a03001 mov r3, r1 <== NOT EXECUTED a000a620: e5911000 ldr r1, [r1] <== NOT EXECUTED
the_thread = _Thread_Get (tid, &location);
switch (location) {
case OBJECTS_LOCAL:
tvp = the_thread->task_variables;
while (tvp) {
a000a624: e3510000 cmp r1, #0 <== NOT EXECUTED a000a628: 1afffff0 bne a000a5f0 <rtems_task_variable_delete+0x28> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
prev = tvp;
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
a000a62c: eb0007dd bl a000c5a8 <_Thread_Enable_dispatch> <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp, *prev;
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
a000a630: e3a00009 mov r0, #9 <== NOT EXECUTED a000a634: ea000000 b a000a63c <rtems_task_variable_delete+0x74> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000a638: e3a00004 mov r0, #4 <== NOT EXECUTED
}
a000a63c: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000a640 <rtems_task_variable_get>:
rtems_status_code rtems_task_variable_get(
rtems_id tid,
void **ptr,
void **result
)
{
a000a640: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp;
if ( !ptr )
a000a644: e2515000 subs r5, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_task_variable_get(
rtems_id tid,
void **ptr,
void **result
)
{
a000a648: e1a04002 mov r4, r2 <== NOT EXECUTED
Thread_Control *the_thread;
Objects_Locations location;
rtems_task_variable_t *tvp;
if ( !ptr )
a000a64c: 0a000014 beq a000a6a4 <rtems_task_variable_get+0x64> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !result )
a000a650: e3520000 cmp r2, #0 <== NOT EXECUTED a000a654: 0a000012 beq a000a6a4 <rtems_task_variable_get+0x64> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
a000a658: e1a0100d mov r1, sp <== NOT EXECUTED a000a65c: eb0007da bl a000c5cc <_Thread_Get> <== NOT EXECUTED
switch (location) {
a000a660: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a664: e3530000 cmp r3, #0 <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Figure out if the variable is in this task's list.
*/
tvp = the_thread->task_variables;
a000a668: 05903104 ldreq r3, [r0, #260] ; 0x104 <== NOT EXECUTED
if ( !result )
return RTEMS_INVALID_ADDRESS;
the_thread = _Thread_Get (tid, &location);
switch (location) {
a000a66c: 0a000009 beq a000a698 <rtems_task_variable_get+0x58> <== NOT EXECUTED a000a670: ea00000d b a000a6ac <rtems_task_variable_get+0x6c> <== NOT EXECUTED
/*
* Figure out if the variable is in this task's list.
*/
tvp = the_thread->task_variables;
while (tvp) {
if (tvp->ptr == ptr) {
a000a674: e5932004 ldr r2, [r3, #4] <== NOT EXECUTED a000a678: e1520005 cmp r2, r5 <== NOT EXECUTED a000a67c: 1a000004 bne a000a694 <rtems_task_variable_get+0x54> <== NOT EXECUTED
/*
* Should this return the current (i.e not the
* saved) value if `tid' is the current task?
*/
*result = tvp->tval;
a000a680: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000a684: e5843000 str r3, [r4] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a688: eb0007c6 bl a000c5a8 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000a68c: e3a00000 mov r0, #0 <== NOT EXECUTED a000a690: ea000006 b a000a6b0 <rtems_task_variable_get+0x70> <== NOT EXECUTED
}
tvp = (rtems_task_variable_t *)tvp->next;
a000a694: 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) {
a000a698: e3530000 cmp r3, #0 <== NOT EXECUTED a000a69c: 1afffff4 bne a000a674 <rtems_task_variable_get+0x34> <== NOT EXECUTED
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
tvp = (rtems_task_variable_t *)tvp->next;
}
_Thread_Enable_dispatch();
a000a6a0: eb0007c0 bl a000c5a8 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( !ptr )
return RTEMS_INVALID_ADDRESS;
if ( !result )
return RTEMS_INVALID_ADDRESS;
a000a6a4: e3a00009 mov r0, #9 <== NOT EXECUTED a000a6a8: ea000000 b a000a6b0 <rtems_task_variable_get+0x70> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a000a6ac: e3a00004 mov r0, #4 <== NOT EXECUTED
}
a000a6b0: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0009864 <rtems_task_wake_after>:
a0009864: e59f3074 ldr r3, [pc, #116] ; a00098e0 <rtems_task_wake_after+0x7c><== NOT EXECUTED
*/
rtems_status_code rtems_task_wake_after(
rtems_interval ticks
)
{
a0009868: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a000986c: e5932000 ldr r2, [r3] <== NOT EXECUTED
a0009870: e1a04000 mov r4, r0 <== NOT EXECUTED
a0009874: e2822001 add r2, r2, #1 <== NOT EXECUTED
a0009878: e5832000 str r2, [r3] <== NOT EXECUTED
_Thread_Disable_dispatch();
if ( ticks == 0 ) {
a000987c: e3500000 cmp r0, #0 <== NOT EXECUTED a0009880: 1a000003 bne a0009894 <rtems_task_wake_after+0x30> <== NOT EXECUTED
* always operates on the scheduler that 'owns' the currently executing
* thread.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void )
{
_Scheduler.Operations.yield();
a0009884: e59f3058 ldr r3, [pc, #88] ; a00098e4 <rtems_task_wake_after+0x80><== NOT EXECUTED a0009888: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000988c: e12fff33 blx r3 <== NOT EXECUTED a0009890: ea00000f b a00098d4 <rtems_task_wake_after+0x70> <== NOT EXECUTED
_Scheduler_Yield();
} else {
_Thread_Set_state( _Thread_Executing, STATES_DELAYING );
a0009894: e59f504c ldr r5, [pc, #76] ; a00098e8 <rtems_task_wake_after+0x84><== NOT EXECUTED a0009898: e3a01008 mov r1, #8 <== NOT EXECUTED a000989c: e5950004 ldr r0, [r5, #4] <== NOT EXECUTED a00098a0: eb0009cd bl a000bfdc <_Thread_Set_state> <== NOT EXECUTED
_Watchdog_Initialize(
&_Thread_Executing->Timer,
a00098a4: e5951004 ldr r1, [r5, #4] <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a00098a8: e59f003c ldr r0, [pc, #60] ; a00098ec <rtems_task_wake_after+0x88><== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a00098ac: e3a03000 mov r3, #0 <== NOT EXECUTED
_Thread_Disable_dispatch();
if ( ticks == 0 ) {
_Scheduler_Yield();
} else {
_Thread_Set_state( _Thread_Executing, STATES_DELAYING );
_Watchdog_Initialize(
a00098b0: e5912008 ldr r2, [r1, #8] <== NOT EXECUTED
the_watchdog->routine = routine;
a00098b4: e5810064 str r0, [r1, #100] ; 0x64 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a00098b8: e5813050 str r3, [r1, #80] ; 0x50 <== NOT EXECUTED
the_watchdog->routine = routine; the_watchdog->id = id;
a00098bc: e5812068 str r2, [r1, #104] ; 0x68 <== NOT EXECUTED
the_watchdog->user_data = user_data;
a00098c0: e581306c str r3, [r1, #108] ; 0x6c <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a00098c4: e5814054 str r4, [r1, #84] ; 0x54 <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a00098c8: e59f0020 ldr r0, [pc, #32] ; a00098f0 <rtems_task_wake_after+0x8c><== NOT EXECUTED a00098cc: e2811048 add r1, r1, #72 ; 0x48 <== NOT EXECUTED a00098d0: eb000b1d bl a000c54c <_Watchdog_Insert> <== NOT EXECUTED
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_ticks( &_Thread_Executing->Timer, ticks );
}
_Thread_Enable_dispatch();
a00098d4: eb0007b1 bl a000b7a0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL; }
a00098d8: e3a00000 mov r0, #0 <== NOT EXECUTED
a00098dc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000aaa4 <rtems_task_wake_when>:
rtems_time_of_day *time_buffer
)
{
Watchdog_Interval seconds;
if ( !_TOD_Is_set )
a000aaa4: e59f30c8 ldr r3, [pc, #200] ; a000ab74 <rtems_task_wake_when+0xd0><== NOT EXECUTED
*/
rtems_status_code rtems_task_wake_when(
rtems_time_of_day *time_buffer
)
{
a000aaa8: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
Watchdog_Interval seconds;
if ( !_TOD_Is_set )
a000aaac: e5d33000 ldrb r3, [r3] <== NOT EXECUTED
*/
rtems_status_code rtems_task_wake_when(
rtems_time_of_day *time_buffer
)
{
a000aab0: e1a05000 mov r5, r0 <== NOT EXECUTED
Watchdog_Interval seconds;
if ( !_TOD_Is_set )
a000aab4: e3530000 cmp r3, #0 <== NOT EXECUTED a000aab8: 0a000025 beq a000ab54 <rtems_task_wake_when+0xb0> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( !time_buffer )
a000aabc: e3500000 cmp r0, #0 <== NOT EXECUTED a000aac0: 0a000025 beq a000ab5c <rtems_task_wake_when+0xb8> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
time_buffer->ticks = 0;
a000aac4: e3a04000 mov r4, #0 <== NOT EXECUTED a000aac8: e5804018 str r4, [r0, #24] <== NOT EXECUTED
if ( !_TOD_Validate( time_buffer ) )
a000aacc: ebfffd1a bl a0009f3c <_TOD_Validate> <== NOT EXECUTED a000aad0: e1500004 cmp r0, r4 <== NOT EXECUTED a000aad4: 0a000022 beq a000ab64 <rtems_task_wake_when+0xc0> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( time_buffer );
a000aad8: e1a00005 mov r0, r5 <== NOT EXECUTED a000aadc: ebfffcf3 bl a0009eb0 <_TOD_To_seconds> <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
a000aae0: e59f6090 ldr r6, [pc, #144] ; a000ab78 <rtems_task_wake_when+0xd4><== NOT EXECUTED
time_buffer->ticks = 0;
if ( !_TOD_Validate( time_buffer ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( time_buffer );
a000aae4: e1a05000 mov r5, r0 <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
a000aae8: e5963000 ldr r3, [r6] <== NOT EXECUTED a000aaec: e1500003 cmp r0, r3 <== NOT EXECUTED a000aaf0: 9a00001d bls a000ab6c <rtems_task_wake_when+0xc8> <== NOT EXECUTED a000aaf4: e59f3080 ldr r3, [pc, #128] ; a000ab7c <rtems_task_wake_when+0xd8><== NOT EXECUTED a000aaf8: e5932000 ldr r2, [r3] <== NOT EXECUTED a000aafc: e2822001 add r2, r2, #1 <== NOT EXECUTED a000ab00: e5832000 str r2, [r3] <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
_Thread_Disable_dispatch();
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME );
a000ab04: e59f7074 ldr r7, [pc, #116] ; a000ab80 <rtems_task_wake_when+0xdc><== NOT EXECUTED a000ab08: e3a01010 mov r1, #16 <== NOT EXECUTED a000ab0c: e5970004 ldr r0, [r7, #4] <== NOT EXECUTED a000ab10: eb0009e1 bl a000d29c <_Thread_Set_state> <== NOT EXECUTED
_Watchdog_Initialize(
&_Thread_Executing->Timer,
a000ab14: e5971004 ldr r1, [r7, #4] <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a000ab18: e59f2064 ldr r2, [pc, #100] ; a000ab84 <rtems_task_wake_when+0xe0><== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
a000ab1c: e59f0064 ldr r0, [pc, #100] ; a000ab88 <rtems_task_wake_when+0xe4><== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
_Thread_Disable_dispatch();
_Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_TIME );
_Watchdog_Initialize(
a000ab20: e5913008 ldr r3, [r1, #8] <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a000ab24: e5812064 str r2, [r1, #100] ; 0x64 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a000ab28: e5814050 str r4, [r1, #80] ; 0x50 <== NOT EXECUTED
the_watchdog->routine = routine; the_watchdog->id = id;
a000ab2c: e5813068 str r3, [r1, #104] ; 0x68 <== NOT EXECUTED
&_Thread_Executing->Timer,
_Thread_Delay_ended,
_Thread_Executing->Object.id,
NULL
);
_Watchdog_Insert_seconds(
a000ab30: e5963000 ldr r3, [r6] <== NOT EXECUTED
the_watchdog->user_data = user_data;
a000ab34: e581406c str r4, [r1, #108] ; 0x6c <== NOT EXECUTED a000ab38: e0635005 rsb r5, r3, r5 <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a000ab3c: e5815054 str r5, [r1, #84] ; 0x54 <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
a000ab40: e2811048 add r1, r1, #72 ; 0x48 <== NOT EXECUTED a000ab44: eb000b58 bl a000d8ac <_Watchdog_Insert> <== NOT EXECUTED
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
a000ab48: eb0007c4 bl a000ca60 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a000ab4c: e1a00004 mov r0, r4 <== NOT EXECUTED
a000ab50: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
)
{
Watchdog_Interval seconds;
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
a000ab54: e3a0000b mov r0, #11 <== NOT EXECUTED
a000ab58: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
if ( !time_buffer )
return RTEMS_INVALID_ADDRESS;
a000ab5c: e3a00009 mov r0, #9 <== NOT EXECUTED
a000ab60: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
time_buffer->ticks = 0;
if ( !_TOD_Validate( time_buffer ) )
return RTEMS_INVALID_CLOCK;
a000ab64: e3a00014 mov r0, #20 <== NOT EXECUTED
a000ab68: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
seconds = _TOD_To_seconds( time_buffer );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
a000ab6c: e3a00014 mov r0, #20 <== NOT EXECUTED
&_Thread_Executing->Timer,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
a000ab70: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0008d40 <rtems_termios_baud_to_index>:
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
a0008d40: e3500009 cmp r0, #9 <== NOT EXECUTED a0008d44: 012fff1e bxeq lr <== NOT EXECUTED a0008d48: ca000016 bgt a0008da8 <rtems_termios_baud_to_index+0x68> <== NOT EXECUTED a0008d4c: e3500004 cmp r0, #4 <== NOT EXECUTED a0008d50: 012fff1e bxeq lr <== NOT EXECUTED a0008d54: ca00000a bgt a0008d84 <rtems_termios_baud_to_index+0x44> <== NOT EXECUTED a0008d58: e3500001 cmp r0, #1 <== NOT EXECUTED a0008d5c: 012fff1e bxeq lr <== NOT EXECUTED a0008d60: ca000002 bgt a0008d70 <rtems_termios_baud_to_index+0x30> <== NOT EXECUTED a0008d64: e3500000 cmp r0, #0 <== NOT EXECUTED a0008d68: 012fff1e bxeq lr <== NOT EXECUTED a0008d6c: ea000030 b a0008e34 <rtems_termios_baud_to_index+0xf4> <== NOT EXECUTED a0008d70: e3500002 cmp r0, #2 <== NOT EXECUTED a0008d74: 012fff1e bxeq lr <== NOT EXECUTED a0008d78: e3500003 cmp r0, #3 <== NOT EXECUTED a0008d7c: 1a00002c bne a0008e34 <rtems_termios_baud_to_index+0xf4> <== NOT EXECUTED a0008d80: e12fff1e bx lr <== NOT EXECUTED a0008d84: e3500006 cmp r0, #6 <== NOT EXECUTED a0008d88: 012fff1e bxeq lr <== NOT EXECUTED
case B0: baud_index = 0; break;
case B50: baud_index = 1; break;
case B75: baud_index = 2; break;
case B110: baud_index = 3; break;
case B134: baud_index = 4; break;
case B150: baud_index = 5; break;
a0008d8c: b3a00005 movlt r0, #5 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
a0008d90: b12fff1e bxlt lr <== NOT EXECUTED a0008d94: e3500007 cmp r0, #7 <== NOT EXECUTED a0008d98: 012fff1e bxeq lr <== NOT EXECUTED a0008d9c: e3500008 cmp r0, #8 <== NOT EXECUTED a0008da0: 1a000023 bne a0008e34 <rtems_termios_baud_to_index+0xf4> <== NOT EXECUTED a0008da4: e12fff1e bx lr <== NOT EXECUTED a0008da8: e350000e cmp r0, #14 <== NOT EXECUTED a0008dac: 012fff1e bxeq lr <== NOT EXECUTED a0008db0: ca000008 bgt a0008dd8 <rtems_termios_baud_to_index+0x98> <== NOT EXECUTED a0008db4: e350000b cmp r0, #11 <== NOT EXECUTED a0008db8: 012fff1e bxeq lr <== NOT EXECUTED
case B150: baud_index = 5; break;
case B200: baud_index = 6; break;
case B300: baud_index = 7; break;
case B600: baud_index = 8; break;
case B1200: baud_index = 9; break;
case B1800: baud_index = 10; break;
a0008dbc: b3a0000a movlt r0, #10 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
a0008dc0: b12fff1e bxlt lr <== NOT EXECUTED a0008dc4: e350000c cmp r0, #12 <== NOT EXECUTED a0008dc8: 012fff1e bxeq lr <== NOT EXECUTED a0008dcc: e350000d cmp r0, #13 <== NOT EXECUTED a0008dd0: 1a000017 bne a0008e34 <rtems_termios_baud_to_index+0xf4> <== NOT EXECUTED a0008dd4: e12fff1e bx lr <== NOT EXECUTED a0008dd8: e59f305c ldr r3, [pc, #92] ; a0008e3c <rtems_termios_baud_to_index+0xfc><== NOT EXECUTED a0008ddc: e1500003 cmp r0, r3 <== NOT EXECUTED
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
case B115200: baud_index = 17; break;
a0008de0: 03a00011 moveq r0, #17 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
a0008de4: 012fff1e bxeq lr <== NOT EXECUTED a0008de8: ca000005 bgt a0008e04 <rtems_termios_baud_to_index+0xc4> <== NOT EXECUTED a0008dec: e350000f cmp r0, #15 <== NOT EXECUTED a0008df0: 012fff1e bxeq lr <== NOT EXECUTED a0008df4: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0008df8: e1500003 cmp r0, r3 <== NOT EXECUTED a0008dfc: 1a00000c bne a0008e34 <rtems_termios_baud_to_index+0xf4> <== NOT EXECUTED a0008e00: ea000007 b a0008e24 <rtems_termios_baud_to_index+0xe4> <== NOT EXECUTED a0008e04: e59f3034 ldr r3, [pc, #52] ; a0008e40 <rtems_termios_baud_to_index+0x100><== NOT EXECUTED a0008e08: e1500003 cmp r0, r3 <== NOT EXECUTED
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
case B115200: baud_index = 17; break;
case B230400: baud_index = 18; break;
a0008e0c: 03a00012 moveq r0, #18 <== NOT EXECUTED
rtems_termios_baud_t termios_baud
)
{
int baud_index;
switch (termios_baud) {
a0008e10: 012fff1e bxeq lr <== NOT EXECUTED a0008e14: e2833001 add r3, r3, #1 <== NOT EXECUTED a0008e18: e1500003 cmp r0, r3 <== NOT EXECUTED a0008e1c: 1a000004 bne a0008e34 <rtems_termios_baud_to_index+0xf4> <== NOT EXECUTED a0008e20: ea000001 b a0008e2c <rtems_termios_baud_to_index+0xec> <== NOT EXECUTED
case B2400: baud_index = 11; break;
case B4800: baud_index = 12; break;
case B9600: baud_index = 13; break;
case B19200: baud_index = 14; break;
case B38400: baud_index = 15; break;
case B57600: baud_index = 16; break;
a0008e24: e3a00010 mov r0, #16 <== NOT EXECUTED a0008e28: e12fff1e bx lr <== NOT EXECUTED
case B115200: baud_index = 17; break;
case B230400: baud_index = 18; break;
case B460800: baud_index = 19; break;
a0008e2c: e3a00013 mov r0, #19 <== NOT EXECUTED a0008e30: e12fff1e bx lr <== NOT EXECUTED
default: baud_index = -1; break;
a0008e34: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
return baud_index;
}
a0008e38: e12fff1e bx lr <== NOT EXECUTED
a0008e44 <rtems_termios_baud_to_number>:
extern rtems_assoc_t termios_assoc_table[];
int32_t rtems_termios_baud_to_number(
int termios_baud
)
{
a0008e44: e92d4010 push {r4, lr} <== NOT EXECUTED
a0008e48: e1a04000 mov r4, r0 <== NOT EXECUTED
int baud;
baud = rtems_assoc_local_by_remote( termios_assoc_table, termios_baud );
a0008e4c: e1a01004 mov r1, r4 <== NOT EXECUTED a0008e50: e59f001c ldr r0, [pc, #28] ; a0008e74 <rtems_termios_baud_to_number+0x30><== NOT EXECUTED a0008e54: eb001b03 bl a000fa68 <rtems_assoc_local_by_remote> <== NOT EXECUTED
if ( baud == 0 && termios_baud != 0 )
a0008e58: e2703001 rsbs r3, r0, #1 <== NOT EXECUTED a0008e5c: 33a03000 movcc r3, #0 <== NOT EXECUTED a0008e60: e3540000 cmp r4, #0 <== NOT EXECUTED a0008e64: 03a03000 moveq r3, #0 <== NOT EXECUTED a0008e68: e3530000 cmp r3, #0 <== NOT EXECUTED
return -1;
return baud;
}
a0008e6c: 13e00000 mvnne r0, #0 <== NOT EXECUTED
a0008e70: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0007698 <rtems_termios_bufsize>:
int cbufsize,
int raw_input,
int raw_output
)
{
rtems_termios_cbufsize = cbufsize;
a0007698: e59f300c ldr r3, [pc, #12] ; a00076ac <rtems_termios_bufsize+0x14><== NOT EXECUTED a000769c: e5830008 str r0, [r3, #8] <== NOT EXECUTED
rtems_termios_raw_input_size = raw_input;
a00076a0: e8830006 stm r3, {r1, r2} <== NOT EXECUTED
rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; }
a00076a4: e3a00000 mov r0, #0 <== NOT EXECUTED a00076a8: e12fff1e bx lr <== NOT EXECUTED
a00074fc <rtems_termios_close>:
rtems_status_code
rtems_termios_close (void *arg)
{
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
a00074fc: e5903000 ldr r3, [r0] <== NOT EXECUTED
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
a0007500: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
a0007504: e5934034 ldr r4, [r3, #52] ; 0x34 <== NOT EXECUTED
rtems_status_code sc;
sc = rtems_semaphore_obtain(
a0007508: e59f3178 ldr r3, [pc, #376] ; a0007688 <rtems_termios_close+0x18c><== NOT EXECUTED a000750c: e3a01000 mov r1, #0 <== NOT EXECUTED
}
}
rtems_status_code
rtems_termios_close (void *arg)
{
a0007510: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_libio_open_close_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
rtems_status_code sc;
sc = rtems_semaphore_obtain(
a0007514: e1a02001 mov r2, r1 <== NOT EXECUTED a0007518: e5930000 ldr r0, [r3] <== NOT EXECUTED a000751c: eb0007a3 bl a00093b0 <rtems_semaphore_obtain> <== NOT EXECUTED
rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
a0007520: e3500000 cmp r0, #0 <== NOT EXECUTED a0007524: 1a000023 bne a00075b8 <rtems_termios_close+0xbc> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
if (--tty->refcount == 0) {
a0007528: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000752c: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0007530: e3530000 cmp r3, #0 <== NOT EXECUTED a0007534: e5843008 str r3, [r4, #8] <== NOT EXECUTED a0007538: 1a00004d bne a0007674 <rtems_termios_close+0x178> <== NOT EXECUTED
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
a000753c: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED a0007540: e59f3144 ldr r3, [pc, #324] ; a000768c <rtems_termios_close+0x190><== NOT EXECUTED a0007544: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED a0007548: e5931004 ldr r1, [r3, #4] <== NOT EXECUTED a000754c: e3510000 cmp r1, #0 <== NOT EXECUTED a0007550: 0a000002 beq a0007560 <rtems_termios_close+0x64> <== NOT EXECUTED
/*
* call discipline-specific close
*/
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
a0007554: e1a00004 mov r0, r4 <== NOT EXECUTED a0007558: e12fff31 blx r1 <== NOT EXECUTED a000755c: ea000008 b a0007584 <rtems_termios_close+0x88> <== NOT EXECUTED
} else {
/*
* default: just flush output buffer
*/
sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a0007560: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED a0007564: e1a02001 mov r2, r1 <== NOT EXECUTED a0007568: eb000790 bl a00093b0 <rtems_semaphore_obtain> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
a000756c: e3500000 cmp r0, #0 <== NOT EXECUTED a0007570: 1a000010 bne a00075b8 <rtems_termios_close+0xbc> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
drainOutput (tty);
a0007574: e1a00004 mov r0, r4 <== NOT EXECUTED a0007578: ebfffeb2 bl a0007048 <drainOutput> <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
a000757c: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED a0007580: eb0007d0 bl a00094c8 <rtems_semaphore_release> <== NOT EXECUTED
}
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
a0007584: e59430b4 ldr r3, [r4, #180] ; 0xb4 <== NOT EXECUTED a0007588: e3530002 cmp r3, #2 <== NOT EXECUTED a000758c: 1a00000a bne a00075bc <rtems_termios_close+0xc0> <== NOT EXECUTED
/*
* send "terminate" to I/O tasks
*/
sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
a0007590: e59400c4 ldr r0, [r4, #196] ; 0xc4 <== NOT EXECUTED a0007594: e3a01001 mov r1, #1 <== NOT EXECUTED a0007598: eb000672 bl a0008f68 <rtems_event_send> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
a000759c: e3500000 cmp r0, #0 <== NOT EXECUTED a00075a0: 1a000004 bne a00075b8 <rtems_termios_close+0xbc> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
a00075a4: e59400c8 ldr r0, [r4, #200] ; 0xc8 <== NOT EXECUTED a00075a8: e3a01001 mov r1, #1 <== NOT EXECUTED a00075ac: eb00066d bl a0008f68 <rtems_event_send> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
a00075b0: e3500000 cmp r0, #0 <== NOT EXECUTED a00075b4: 0a000000 beq a00075bc <rtems_termios_close+0xc0> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
a00075b8: eb000917 bl a0009a1c <rtems_fatal_error_occurred> <== NOT EXECUTED
}
if (tty->device.lastClose)
a00075bc: e594309c ldr r3, [r4, #156] ; 0x9c <== NOT EXECUTED a00075c0: e3530000 cmp r3, #0 <== NOT EXECUTED a00075c4: 0a000003 beq a00075d8 <rtems_termios_close+0xdc> <== NOT EXECUTED
(*tty->device.lastClose)(tty->major, tty->minor, arg);
a00075c8: e594000c ldr r0, [r4, #12] <== NOT EXECUTED a00075cc: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a00075d0: e1a02005 mov r2, r5 <== NOT EXECUTED a00075d4: e12fff33 blx r3 <== NOT EXECUTED
if (tty->forw == NULL) {
a00075d8: e894000c ldm r4, {r2, r3} <== NOT EXECUTED
a00075dc: e3520000 cmp r2, #0 <== NOT EXECUTED
rtems_termios_ttyTail = tty->back;
if ( rtems_termios_ttyTail != NULL ) {
rtems_termios_ttyTail->forw = NULL;
}
} else {
tty->forw->back = tty->back;
a00075e0: 15823004 strne r3, [r2, #4] <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
}
if (tty->device.lastClose)
(*tty->device.lastClose)(tty->major, tty->minor, arg);
if (tty->forw == NULL) {
a00075e4: 1a000003 bne a00075f8 <rtems_termios_close+0xfc> <== NOT EXECUTED
rtems_termios_ttyTail = tty->back;
a00075e8: e59f10a0 ldr r1, [pc, #160] ; a0007690 <rtems_termios_close+0x194><== NOT EXECUTED
if ( rtems_termios_ttyTail != NULL ) {
a00075ec: e3530000 cmp r3, #0 <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if (tty->device.lastClose)
(*tty->device.lastClose)(tty->major, tty->minor, arg);
if (tty->forw == NULL) {
rtems_termios_ttyTail = tty->back;
a00075f0: e5813000 str r3, [r1] <== NOT EXECUTED
if ( rtems_termios_ttyTail != NULL ) {
rtems_termios_ttyTail->forw = NULL;
a00075f4: 15832000 strne r2, [r3] <== NOT EXECUTED
}
} else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
a00075f8: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a00075fc: e5943000 ldr r3, [r4] <== NOT EXECUTED a0007600: e3520000 cmp r2, #0 <== NOT EXECUTED
rtems_termios_ttyHead = tty->forw;
if ( rtems_termios_ttyHead != NULL ) {
rtems_termios_ttyHead->back = NULL;
}
} else {
tty->back->forw = tty->forw;
a0007604: 15823000 strne r3, [r2] <== NOT EXECUTED
}
} else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
a0007608: 1a000003 bne a000761c <rtems_termios_close+0x120> <== NOT EXECUTED
rtems_termios_ttyHead = tty->forw;
a000760c: e59f1080 ldr r1, [pc, #128] ; a0007694 <rtems_termios_close+0x198><== NOT EXECUTED
if ( rtems_termios_ttyHead != NULL ) {
a0007610: e3530000 cmp r3, #0 <== NOT EXECUTED
rtems_termios_ttyHead->back = NULL;
a0007614: 15832004 strne r2, [r3, #4] <== NOT EXECUTED
} else {
tty->forw->back = tty->back;
}
if (tty->back == NULL) {
rtems_termios_ttyHead = tty->forw;
a0007618: e5813000 str r3, [r1] <== NOT EXECUTED
}
} else {
tty->back->forw = tty->forw;
}
rtems_semaphore_delete (tty->isem);
a000761c: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED a0007620: eb00073b bl a0009314 <rtems_semaphore_delete> <== NOT EXECUTED
rtems_semaphore_delete (tty->osem);
a0007624: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED a0007628: eb000739 bl a0009314 <rtems_semaphore_delete> <== NOT EXECUTED
rtems_semaphore_delete (tty->rawOutBuf.Semaphore);
a000762c: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED a0007630: eb000737 bl a0009314 <rtems_semaphore_delete> <== NOT EXECUTED
if ((tty->device.pollRead == NULL) ||
a0007634: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED a0007638: e3530000 cmp r3, #0 <== NOT EXECUTED a000763c: 0a000002 beq a000764c <rtems_termios_close+0x150> <== NOT EXECUTED a0007640: e59430b4 ldr r3, [r4, #180] ; 0xb4 <== NOT EXECUTED a0007644: e3530002 cmp r3, #2 <== NOT EXECUTED a0007648: 1a000001 bne a0007654 <rtems_termios_close+0x158> <== NOT EXECUTED
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))
rtems_semaphore_delete (tty->rawInBuf.Semaphore);
a000764c: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED a0007650: eb00072f bl a0009314 <rtems_semaphore_delete> <== NOT EXECUTED
free (tty->rawInBuf.theBuf);
a0007654: e5940058 ldr r0, [r4, #88] ; 0x58 <== NOT EXECUTED a0007658: ebfffac4 bl a0006170 <free> <== NOT EXECUTED
free (tty->rawOutBuf.theBuf);
a000765c: e594007c ldr r0, [r4, #124] ; 0x7c <== NOT EXECUTED a0007660: ebfffac2 bl a0006170 <free> <== NOT EXECUTED
free (tty->cbuf);
a0007664: e594001c ldr r0, [r4, #28] <== NOT EXECUTED a0007668: ebfffac0 bl a0006170 <free> <== NOT EXECUTED
free (tty);
a000766c: e1a00004 mov r0, r4 <== NOT EXECUTED a0007670: ebfffabe bl a0006170 <free> <== NOT EXECUTED
} rtems_semaphore_release (rtems_termios_ttyMutex);
a0007674: e59f300c ldr r3, [pc, #12] ; a0007688 <rtems_termios_close+0x18c><== NOT EXECUTED a0007678: e5930000 ldr r0, [r3] <== NOT EXECUTED a000767c: eb000791 bl a00094c8 <rtems_semaphore_release> <== NOT EXECUTED
return RTEMS_SUCCESSFUL; }
a0007680: e3a00000 mov r0, #0 <== NOT EXECUTED
a0007684: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0008a10 <rtems_termios_dequeue_characters>:
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
a0008a10: e5902090 ldr r2, [r0, #144] ; 0x90 <== NOT EXECUTED
* for each transmitted character.
* It returns number of characters left to transmit
*/
int
rtems_termios_dequeue_characters (void *ttyp, int len)
{
a0008a14: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
a0008a18: e0822001 add r2, r2, r1 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
a0008a1c: e59010b4 ldr r1, [r0, #180] ; 0xb4 <== NOT EXECUTED
rtems_status_code sc;
/*
* sum up character count already sent
*/
tty->t_dqlen += len;
a0008a20: e5802090 str r2, [r0, #144] ; 0x90 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
a0008a24: e3510002 cmp r1, #2 <== NOT EXECUTED a0008a28: 1a000004 bne a0008a40 <rtems_termios_dequeue_characters+0x30><== NOT EXECUTED
/*
* send wake up to transmitter task
*/
sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);
a0008a2c: e59000c8 ldr r0, [r0, #200] ; 0xc8 <== NOT EXECUTED a0008a30: eb00014c bl a0008f68 <rtems_event_send> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
a0008a34: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0008a38: 0a00000c beq a0008a70 <rtems_termios_dequeue_characters+0x60><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
a0008a3c: eb0003f6 bl a0009a1c <rtems_fatal_error_occurred> <== NOT EXECUTED
return 0; /* nothing to output in IRQ... */
}
if (tty->t_line == PPPDISC ) {
a0008a40: e59030cc ldr r3, [r0, #204] ; 0xcc <== NOT EXECUTED a0008a44: e3530005 cmp r3, #5 <== NOT EXECUTED a0008a48: 1a000006 bne a0008a68 <rtems_termios_dequeue_characters+0x58><== NOT EXECUTED
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
a0008a4c: e59f3024 ldr r3, [pc, #36] ; a0008a78 <rtems_termios_dequeue_characters+0x68><== NOT EXECUTED a0008a50: e59330b4 ldr r3, [r3, #180] ; 0xb4 <== NOT EXECUTED a0008a54: e3530000 cmp r3, #0 <== NOT EXECUTED a0008a58: 0a000004 beq a0008a70 <rtems_termios_dequeue_characters+0x60><== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
a0008a5c: e12fff33 blx r3 <== NOT EXECUTED
}
return 0; /* nothing to output in IRQ... */
a0008a60: e3a03000 mov r3, #0 <== NOT EXECUTED a0008a64: ea000001 b a0008a70 <rtems_termios_dequeue_characters+0x60><== NOT EXECUTED
}
return rtems_termios_refill_transmitter(tty);
}
a0008a68: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
}
return 0; /* nothing to output in IRQ... */
}
return rtems_termios_refill_transmitter(tty);
a0008a6c: eaffff5a b a00087dc <rtems_termios_refill_transmitter> <== NOT EXECUTED
}
a0008a70: e1a00003 mov r0, r3 <== NOT EXECUTED
a0008a74: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a00084dc <rtems_termios_enqueue_raw_characters>:
* device receive interrupt handler.
* Returns the number of characters dropped because of overflow.
*/
int
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
{
a00084dc: e92d4ff3 push {r0, r1, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
char c;
int dropped = 0;
bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
a00084e0: e59030cc ldr r3, [r0, #204] ; 0xcc <== NOT EXECUTED a00084e4: e59f7280 ldr r7, [pc, #640] ; a000876c <rtems_termios_enqueue_raw_characters+0x290><== NOT EXECUTED
* device receive interrupt handler.
* Returns the number of characters dropped because of overflow.
*/
int
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
{
a00084e8: e1a04000 mov r4, r0 <== NOT EXECUTED a00084ec: e1a06001 mov r6, r1 <== NOT EXECUTED
char c;
int dropped = 0;
bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
a00084f0: e0873283 add r3, r7, r3, lsl #5 <== NOT EXECUTED a00084f4: e5939010 ldr r9, [r3, #16] <== NOT EXECUTED a00084f8: e3590000 cmp r9, #0 <== NOT EXECUTED a00084fc: 11a05002 movne r5, r2 <== NOT EXECUTED a0008500: 1a00000d bne a000853c <rtems_termios_enqueue_raw_characters+0x60><== NOT EXECUTED
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
a0008504: e2803030 add r3, r0, #48 ; 0x30 <== NOT EXECUTED a0008508: e58d3000 str r3, [sp] <== NOT EXECUTED
if ((tty->flow_ctrl & FL_OSTOP) ||
(tty->rawOutBufState == rob_idle)) {
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
(*tty->device.write)(tty->minor,
a000850c: e280304a add r3, r0, #74 ; 0x4a <== NOT EXECUTED
char c;
int dropped = 0;
bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
a0008510: e1a0a002 mov sl, r2 <== NOT EXECUTED a0008514: e1a05009 mov r5, r9 <== NOT EXECUTED
if ((tty->flow_ctrl & FL_OSTOP) ||
(tty->rawOutBufState == rob_idle)) {
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
(*tty->device.write)(tty->minor,
a0008518: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a000851c: ea000089 b a0008748 <rtems_termios_enqueue_raw_characters+0x26c><== NOT EXECUTED
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
while (len--) {
c = *buf++;
rtems_termios_linesw[tty->t_line].l_rint(c,tty);
a0008520: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED a0008524: e4d60001 ldrb r0, [r6], #1 <== NOT EXECUTED a0008528: e1a01004 mov r1, r4 <== NOT EXECUTED a000852c: e0873283 add r3, r7, r3, lsl #5 <== NOT EXECUTED a0008530: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a0008534: e12fff33 blx r3 <== NOT EXECUTED a0008538: e2455001 sub r5, r5, #1 <== NOT EXECUTED
int dropped = 0;
bool flow_rcv = false; /* true, if flow control char received */
rtems_interrupt_level level;
if (rtems_termios_linesw[tty->t_line].l_rint != NULL) {
while (len--) {
a000853c: e3550000 cmp r5, #0 <== NOT EXECUTED a0008540: 1afffff6 bne a0008520 <rtems_termios_enqueue_raw_characters+0x44><== NOT EXECUTED
}
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
a0008544: e59430e4 ldr r3, [r4, #228] ; 0xe4 <== NOT EXECUTED a0008548: e3530000 cmp r3, #0 <== NOT EXECUTED a000854c: 1a000084 bne a0008764 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED a0008550: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED a0008554: e3530000 cmp r3, #0 <== NOT EXECUTED a0008558: 0a000081 beq a0008764 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
a000855c: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED a0008560: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED a0008564: e12fff33 blx r3 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
a0008568: e3a03001 mov r3, #1 <== NOT EXECUTED a000856c: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED a0008570: ea00007b b a0008764 <rtems_termios_enqueue_raw_characters+0x288><== NOT EXECUTED
while (len--) {
c = *buf++;
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
a0008574: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
}
return 0;
}
while (len--) {
c = *buf++;
a0008578: e4d68001 ldrb r8, [r6], #1 <== NOT EXECUTED
/* FIXME: implement IXANY: any character restarts output */
/* if incoming XON/XOFF controls outgoing stream: */
if (tty->flow_ctrl & FL_MDXON) {
a000857c: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED a0008580: 0a00000f beq a00085c4 <rtems_termios_enqueue_raw_characters+0xe8><== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
a0008584: e5d4204a ldrb r2, [r4, #74] ; 0x4a <== NOT EXECUTED a0008588: e5d43049 ldrb r3, [r4, #73] ; 0x49 <== NOT EXECUTED a000858c: e1520008 cmp r2, r8 <== NOT EXECUTED a0008590: 1a000007 bne a00085b4 <rtems_termios_enqueue_raw_characters+0xd8><== NOT EXECUTED
if (c == tty->termios.c_cc[VSTART]) {
a0008594: e1530002 cmp r3, r2 <== NOT EXECUTED
/* received VSTOP and VSTART==VSTOP? */
/* then toggle "stop output" status */
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
a0008598: 059430b8 ldreq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
}
else {
/* VSTOP received (other code than VSTART) */
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
a000859c: 159430b8 ldrne r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
/* if received char is V_STOP and V_START (both are equal value) */
if (c == tty->termios.c_cc[VSTOP]) {
if (c == tty->termios.c_cc[VSTART]) {
/* received VSTOP and VSTART==VSTOP? */
/* then toggle "stop output" status */
tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;
a00085a0: 02233010 eoreq r3, r3, #16 <== NOT EXECUTED
}
else {
/* VSTOP received (other code than VSTART) */
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
a00085a4: 13833010 orrne r3, r3, #16 <== NOT EXECUTED a00085a8: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
* device receive interrupt handler.
* Returns the number of characters dropped because of overflow.
*/
int
rtems_termios_enqueue_raw_characters (void *ttyp, char *buf, int len)
{
a00085ac: e3a09001 mov r9, #1 <== NOT EXECUTED a00085b0: ea000005 b a00085cc <rtems_termios_enqueue_raw_characters+0xf0><== NOT EXECUTED
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
}
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
a00085b4: e1530008 cmp r3, r8 <== NOT EXECUTED
/* VSTART received */
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
a00085b8: 059430b8 ldreq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00085bc: 03c33010 biceq r3, r3, #16 <== NOT EXECUTED
/* stop output */
tty->flow_ctrl |= FL_ORCVXOF;
}
flow_rcv = true;
}
else if (c == tty->termios.c_cc[VSTART]) {
a00085c0: 0afffff8 beq a00085a8 <rtems_termios_enqueue_raw_characters+0xcc><== NOT EXECUTED
/* restart output */
tty->flow_ctrl &= ~FL_ORCVXOF;
flow_rcv = true;
}
}
if (flow_rcv) {
a00085c4: e3590000 cmp r9, #0 <== NOT EXECUTED a00085c8: 0a000014 beq a0008620 <rtems_termios_enqueue_raw_characters+0x144><== NOT EXECUTED
/* restart output according to FL_ORCVXOF flag */
if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {
a00085cc: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00085d0: e2033030 and r3, r3, #48 ; 0x30 <== NOT EXECUTED a00085d4: e3530020 cmp r3, #32 <== NOT EXECUTED a00085d8: 1a000059 bne a0008744 <rtems_termios_enqueue_raw_characters+0x268><== NOT EXECUTED
/* disable interrupts */
rtems_interrupt_disable(level);
a00085dc: ebfffa95 bl a0007038 <arm_interrupt_disable> <== NOT EXECUTED a00085e0: e1a07000 mov r7, r0 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
a00085e4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00085e8: e3c33020 bic r3, r3, #32 <== NOT EXECUTED a00085ec: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
a00085f0: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED a00085f4: e3530000 cmp r3, #0 <== NOT EXECUTED a00085f8: 0a000006 beq a0008618 <rtems_termios_enqueue_raw_characters+0x13c><== NOT EXECUTED
/* if chars available, call write function... */
(*tty->device.write)(
tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
a00085fc: e5942084 ldr r2, [r4, #132] ; 0x84 <== NOT EXECUTED
rtems_interrupt_disable(level);
tty->flow_ctrl &= ~FL_OSTOP;
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
/* if chars available, call write function... */
(*tty->device.write)(
a0008600: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED a0008604: e59430a4 ldr r3, [r4, #164] ; 0xa4 <== NOT EXECUTED a0008608: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000860c: e0811002 add r1, r1, r2 <== NOT EXECUTED a0008610: e3a02001 mov r2, #1 <== NOT EXECUTED a0008614: e12fff33 blx r3 <== NOT EXECUTED a0008618: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED a000861c: ea000048 b a0008744 <rtems_termios_enqueue_raw_characters+0x268><== NOT EXECUTED
}
/* reenable interrupts */
rtems_interrupt_enable(level);
}
} else {
newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
a0008620: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED a0008624: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED a0008628: e2800001 add r0, r0, #1 <== NOT EXECUTED a000862c: eb0030e9 bl a00149d8 <__umodsi3> <== NOT EXECUTED a0008630: e1a07000 mov r7, r0 <== NOT EXECUTED
/* if chars_in_buffer > highwater */
rtems_interrupt_disable(level);
a0008634: ebfffa7f bl a0007038 <arm_interrupt_disable> <== NOT EXECUTED a0008638: e1a0b000 mov fp, r0 <== NOT EXECUTED
if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
a000863c: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a0008640: e5940064 ldr r0, [r4, #100] ; 0x64 <== NOT EXECUTED
% tty->rawInBuf.Size) > tty->highwater) &&
a0008644: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED
}
} else {
newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
/* if chars_in_buffer > highwater */
rtems_interrupt_disable(level);
if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
a0008648: e0630000 rsb r0, r3, r0 <== NOT EXECUTED
% tty->rawInBuf.Size) > tty->highwater) &&
a000864c: e0800007 add r0, r0, r7 <== NOT EXECUTED a0008650: eb0030e0 bl a00149d8 <__umodsi3> <== NOT EXECUTED
}
} else {
newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
/* if chars_in_buffer > highwater */
rtems_interrupt_disable(level);
if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
a0008654: e59430c0 ldr r3, [r4, #192] ; 0xc0 <== NOT EXECUTED a0008658: e1500003 cmp r0, r3 <== NOT EXECUTED a000865c: 9a000025 bls a00086f8 <rtems_termios_enqueue_raw_characters+0x21c><== NOT EXECUTED
% tty->rawInBuf.Size) > tty->highwater) &&
!(tty->flow_ctrl & FL_IREQXOF)) {
a0008660: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
} else {
newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;
/* if chars_in_buffer > highwater */
rtems_interrupt_disable(level);
if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)
% tty->rawInBuf.Size) > tty->highwater) &&
a0008664: e3130001 tst r3, #1 <== NOT EXECUTED a0008668: 1a000022 bne a00086f8 <rtems_termios_enqueue_raw_characters+0x21c><== NOT EXECUTED
!(tty->flow_ctrl & FL_IREQXOF)) {
/* incoming data stream should be stopped */
tty->flow_ctrl |= FL_IREQXOF;
a000866c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0008670: e3833001 orr r3, r3, #1 <== NOT EXECUTED a0008674: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))
a0008678: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED a000867c: e59f30ec ldr r3, [pc, #236] ; a0008770 <rtems_termios_enqueue_raw_characters+0x294><== NOT EXECUTED a0008680: e0023003 and r3, r2, r3 <== NOT EXECUTED a0008684: e3530b01 cmp r3, #1024 ; 0x400 <== NOT EXECUTED a0008688: 1a00000e bne a00086c8 <rtems_termios_enqueue_raw_characters+0x1ec><== NOT EXECUTED
== (FL_MDXOF ) ) {
if ((tty->flow_ctrl & FL_OSTOP) ||
a000868c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0008690: e3130020 tst r3, #32 <== NOT EXECUTED a0008694: 1a000002 bne a00086a4 <rtems_termios_enqueue_raw_characters+0x1c8><== NOT EXECUTED a0008698: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED a000869c: e3530000 cmp r3, #0 <== NOT EXECUTED a00086a0: 1a000014 bne a00086f8 <rtems_termios_enqueue_raw_characters+0x21c><== NOT EXECUTED
(tty->rawOutBufState == rob_idle)) {
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
a00086a4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
a00086a8: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a00086ac: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED
== (FL_MDXOF ) ) {
if ((tty->flow_ctrl & FL_OSTOP) ||
(tty->rawOutBufState == rob_idle)) {
/* if tx is stopped due to XOFF or out of data */
/* call write function here */
tty->flow_ctrl |= FL_ISNTXOF;
a00086b0: e3833002 orr r3, r3, #2 <== NOT EXECUTED a00086b4: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
a00086b8: e3a02001 mov r2, #1 <== NOT EXECUTED a00086bc: e59430a4 ldr r3, [r4, #164] ; 0xa4 <== NOT EXECUTED a00086c0: e12fff33 blx r3 <== NOT EXECUTED a00086c4: ea00000b b a00086f8 <rtems_termios_enqueue_raw_characters+0x21c><== NOT EXECUTED
(void *)&(tty->termios.c_cc[VSTOP]), 1);
}
} else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
a00086c8: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00086cc: e2033f41 and r3, r3, #260 ; 0x104 <== NOT EXECUTED a00086d0: e3530c01 cmp r3, #256 ; 0x100 <== NOT EXECUTED a00086d4: 1a000007 bne a00086f8 <rtems_termios_enqueue_raw_characters+0x21c><== NOT EXECUTED
tty->flow_ctrl |= FL_IRTSOFF;
a00086d8: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00086dc: e3833004 orr r3, r3, #4 <== NOT EXECUTED a00086e0: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
/* deactivate RTS line */
if (tty->device.stopRemoteTx != NULL) {
a00086e4: e59430ac ldr r3, [r4, #172] ; 0xac <== NOT EXECUTED a00086e8: e3530000 cmp r3, #0 <== NOT EXECUTED a00086ec: 0a000001 beq a00086f8 <rtems_termios_enqueue_raw_characters+0x21c><== NOT EXECUTED
tty->device.stopRemoteTx(tty->minor);
a00086f0: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a00086f4: e12fff33 blx r3 <== NOT EXECUTED a00086f8: e129f00b msr CPSR_fc, fp <== NOT EXECUTED
}
/* reenable interrupts */
rtems_interrupt_enable(level);
if (newTail == tty->rawInBuf.Head) {
a00086fc: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a0008700: e1570003 cmp r7, r3 <== NOT EXECUTED
dropped++;
a0008704: 02855001 addeq r5, r5, #1 <== NOT EXECUTED
}
/* reenable interrupts */
rtems_interrupt_enable(level);
if (newTail == tty->rawInBuf.Head) {
a0008708: 0a00000d beq a0008744 <rtems_termios_enqueue_raw_characters+0x268><== NOT EXECUTED
dropped++;
} else {
tty->rawInBuf.theBuf[newTail] = c;
a000870c: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED a0008710: e7c38007 strb r8, [r3, r7] <== NOT EXECUTED
tty->rawInBuf.Tail = newTail;
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
a0008714: e59430e4 ldr r3, [r4, #228] ; 0xe4 <== NOT EXECUTED
if (newTail == tty->rawInBuf.Head) {
dropped++;
} else {
tty->rawInBuf.theBuf[newTail] = c;
tty->rawInBuf.Tail = newTail;
a0008718: e5847060 str r7, [r4, #96] ; 0x60 <== NOT EXECUTED
/*
* check to see if rcv wakeup callback was set
*/
if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
a000871c: e3530000 cmp r3, #0 <== NOT EXECUTED a0008720: 1a000007 bne a0008744 <rtems_termios_enqueue_raw_characters+0x268><== NOT EXECUTED a0008724: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED a0008728: e3530000 cmp r3, #0 <== NOT EXECUTED a000872c: 0a000004 beq a0008744 <rtems_termios_enqueue_raw_characters+0x268><== NOT EXECUTED
(*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);
a0008730: e59d0000 ldr r0, [sp] <== NOT EXECUTED a0008734: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED a0008738: e12fff33 blx r3 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
a000873c: e3a03001 mov r3, #1 <== NOT EXECUTED a0008740: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED a0008744: e24aa001 sub sl, sl, #1 <== NOT EXECUTED
tty->tty_rcvwakeup = 1;
}
return 0;
}
while (len--) {
a0008748: e35a0000 cmp sl, #0 <== NOT EXECUTED a000874c: 1affff88 bne a0008574 <rtems_termios_enqueue_raw_characters+0x98><== NOT EXECUTED
}
}
}
}
tty->rawInBufDropped += dropped;
a0008750: e5943078 ldr r3, [r4, #120] ; 0x78 <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
a0008754: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED
}
}
}
}
tty->rawInBufDropped += dropped;
a0008758: e0833005 add r3, r3, r5 <== NOT EXECUTED a000875c: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED
rtems_semaphore_release (tty->rawInBuf.Semaphore);
a0008760: eb000358 bl a00094c8 <rtems_semaphore_release> <== NOT EXECUTED
return dropped; }
a0008764: e1a00005 mov r0, r5 <== NOT EXECUTED
a0008768: e8bd8ffc pop {r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a00076b0 <rtems_termios_ioctl>:
rtems_status_code
rtems_termios_ioctl (void *arg)
{
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
a00076b0: e5903000 ldr r3, [r0] <== NOT EXECUTED
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
a00076b4: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
a00076b8: e5934034 ldr r4, [r3, #52] ; 0x34 <== NOT EXECUTED
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
rtems_status_code sc;
args->ioctl_return = 0;
a00076bc: e3a01000 mov r1, #0 <== NOT EXECUTED
rtems_status_code
rtems_termios_ioctl (void *arg)
{
rtems_libio_ioctl_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
a00076c0: e5907008 ldr r7, [r0, #8] <== NOT EXECUTED
rtems_status_code sc;
args->ioctl_return = 0;
a00076c4: e580100c str r1, [r0, #12] <== NOT EXECUTED
}
}
rtems_status_code
rtems_termios_ioctl (void *arg)
{
a00076c8: e1a05000 mov r5, r0 <== NOT EXECUTED
struct rtems_termios_tty *tty = args->iop->data1;
struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer;
rtems_status_code sc;
args->ioctl_return = 0;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a00076cc: e1a02001 mov r2, r1 <== NOT EXECUTED a00076d0: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED a00076d4: eb000735 bl a00093b0 <rtems_semaphore_obtain> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL) {
a00076d8: e2506000 subs r6, r0, #0 <== NOT EXECUTED a00076dc: 1a0000d0 bne a0007a24 <rtems_termios_ioctl+0x374> <== NOT EXECUTED
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
a00076e0: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED a00076e4: e3530004 cmp r3, #4 <== NOT EXECUTED a00076e8: 0a0000a6 beq a0007988 <rtems_termios_ioctl+0x2d8> <== NOT EXECUTED a00076ec: 8a000005 bhi a0007708 <rtems_termios_ioctl+0x58> <== NOT EXECUTED a00076f0: e3530002 cmp r3, #2 <== NOT EXECUTED a00076f4: 0a000028 beq a000779c <rtems_termios_ioctl+0xec> <== NOT EXECUTED a00076f8: 8a00009b bhi a000796c <rtems_termios_ioctl+0x2bc> <== NOT EXECUTED a00076fc: e3530001 cmp r3, #1 <== NOT EXECUTED a0007700: 1a000010 bne a0007748 <rtems_termios_ioctl+0x98> <== NOT EXECUTED a0007704: ea00001a b a0007774 <rtems_termios_ioctl+0xc4> <== NOT EXECUTED a0007708: e59f2320 ldr r2, [pc, #800] ; a0007a30 <rtems_termios_ioctl+0x380><== NOT EXECUTED a000770c: e1530002 cmp r3, r2 <== NOT EXECUTED a0007710: 0a0000b6 beq a00079f0 <rtems_termios_ioctl+0x340> <== NOT EXECUTED a0007714: 8a000002 bhi a0007724 <rtems_termios_ioctl+0x74> <== NOT EXECUTED a0007718: e3530005 cmp r3, #5 <== NOT EXECUTED a000771c: 1a000009 bne a0007748 <rtems_termios_ioctl+0x98> <== NOT EXECUTED a0007720: ea000094 b a0007978 <rtems_termios_ioctl+0x2c8> <== NOT EXECUTED a0007724: e59f2308 ldr r2, [pc, #776] ; a0007a34 <rtems_termios_ioctl+0x384><== NOT EXECUTED a0007728: e1530002 cmp r3, r2 <== NOT EXECUTED
if (rtems_termios_linesw[tty->t_line].l_open != NULL) {
sc = rtems_termios_linesw[tty->t_line].l_open(tty);
}
break;
case TIOCGETD:
*(int*)(args->buffer)=tty->t_line;
a000772c: 05953008 ldreq r3, [r5, #8] <== NOT EXECUTED a0007730: 059420cc ldreq r2, [r4, #204] ; 0xcc <== NOT EXECUTED a0007734: 05832000 streq r2, [r3] <== NOT EXECUTED
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL) {
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
a0007738: 0a0000b7 beq a0007a1c <rtems_termios_ioctl+0x36c> <== NOT EXECUTED a000773c: e2822105 add r2, r2, #1073741825 ; 0x40000001 <== NOT EXECUTED a0007740: e1530002 cmp r3, r2 <== NOT EXECUTED a0007744: 0a000093 beq a0007998 <rtems_termios_ioctl+0x2e8> <== NOT EXECUTED
default:
if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {
a0007748: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED a000774c: e59f32e4 ldr r3, [pc, #740] ; a0007a38 <rtems_termios_ioctl+0x388><== NOT EXECUTED a0007750: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED a0007754: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a0007758: e3530000 cmp r3, #0 <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);
}
else {
sc = RTEMS_INVALID_NUMBER;
a000775c: 03a0600a moveq r6, #10 <== NOT EXECUTED
args->ioctl_return = sc;
return sc;
}
switch (args->command) {
default:
if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {
a0007760: 0a0000ad beq a0007a1c <rtems_termios_ioctl+0x36c> <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);
a0007764: e1a00004 mov r0, r4 <== NOT EXECUTED a0007768: e1a01005 mov r1, r5 <== NOT EXECUTED a000776c: e12fff33 blx r3 <== NOT EXECUTED a0007770: ea00009c b a00079e8 <rtems_termios_ioctl+0x338> <== NOT EXECUTED
sc = RTEMS_INVALID_NUMBER;
}
break;
case RTEMS_IO_GET_ATTRIBUTES:
*(struct termios *)args->buffer = tty->termios;
a0007774: e5957008 ldr r7, [r5, #8] <== NOT EXECUTED
a0007778: e284c030 add ip, r4, #48 ; 0x30 <== NOT EXECUTED
a000777c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0007780: e1a0e007 mov lr, r7 <== NOT EXECUTED
a0007784: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0007788: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000778c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0007790: e59c3000 ldr r3, [ip] <== NOT EXECUTED
a0007794: e58e3000 str r3, [lr] <== NOT EXECUTED
break;
a0007798: ea00009f b a0007a1c <rtems_termios_ioctl+0x36c> <== NOT EXECUTED
case RTEMS_IO_SET_ATTRIBUTES:
tty->termios = *(struct termios *)args->buffer;
a000779c: e595e008 ldr lr, [r5, #8] <== NOT EXECUTED
a00077a0: e284c030 add ip, r4, #48 ; 0x30 <== NOT EXECUTED
a00077a4: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a00077a8: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a00077ac: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a00077b0: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a00077b4: e59e3000 ldr r3, [lr] <== NOT EXECUTED
a00077b8: e58c3000 str r3, [ip] <== NOT EXECUTED
/*
* check for flow control options to be switched off
*/
/* check for outgoing XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXON) &&
a00077bc: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00077c0: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED a00077c4: 0a000018 beq a000782c <rtems_termios_ioctl+0x17c> <== NOT EXECUTED
!(tty->termios.c_iflag & IXON)) {
a00077c8: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED
/*
* check for flow control options to be switched off
*/
/* check for outgoing XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXON) &&
a00077cc: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED a00077d0: 1a000015 bne a000782c <rtems_termios_ioctl+0x17c> <== NOT EXECUTED
!(tty->termios.c_iflag & IXON)) {
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);
a00077d4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00077d8: e3c33e21 bic r3, r3, #528 ; 0x210 <== NOT EXECUTED a00077dc: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
/* has output been stopped due to received XOFF? */
if (tty->flow_ctrl & FL_OSTOP) {
a00077e0: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00077e4: e3130020 tst r3, #32 <== NOT EXECUTED a00077e8: 0a00000f beq a000782c <rtems_termios_ioctl+0x17c> <== NOT EXECUTED
/* disable interrupts */
rtems_interrupt_disable(level);
a00077ec: ebfffe11 bl a0007038 <arm_interrupt_disable> <== NOT EXECUTED a00077f0: e1a07000 mov r7, r0 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_OSTOP;
a00077f4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00077f8: e3c33020 bic r3, r3, #32 <== NOT EXECUTED a00077fc: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
a0007800: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED a0007804: e3530000 cmp r3, #0 <== NOT EXECUTED a0007808: 0a000006 beq a0007828 <rtems_termios_ioctl+0x178> <== NOT EXECUTED
/* if chars available, call write function... */
(*tty->device.write)(
tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
a000780c: e5942084 ldr r2, [r4, #132] ; 0x84 <== NOT EXECUTED
rtems_interrupt_disable(level);
tty->flow_ctrl &= ~FL_OSTOP;
/* check for chars in output buffer (or rob_state?) */
if (tty->rawOutBufState != rob_idle) {
/* if chars available, call write function... */
(*tty->device.write)(
a0007810: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED a0007814: e59430a4 ldr r3, [r4, #164] ; 0xa4 <== NOT EXECUTED a0007818: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000781c: e0811002 add r1, r1, r2 <== NOT EXECUTED a0007820: e3a02001 mov r2, #1 <== NOT EXECUTED a0007824: e12fff33 blx r3 <== NOT EXECUTED a0007828: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
/* reenable interrupts */
rtems_interrupt_enable(level);
}
}
/* check for incoming XON/XOFF flow control switched off */
if (( tty->flow_ctrl & FL_MDXOF) && !(tty->termios.c_iflag & IXOFF)) {
a000782c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0007830: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED a0007834: 0a000008 beq a000785c <rtems_termios_ioctl+0x1ac> <== NOT EXECUTED a0007838: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a000783c: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED a0007840: 1a000005 bne a000785c <rtems_termios_ioctl+0x1ac> <== NOT EXECUTED
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDXOF);
a0007844: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0007848: e3c33b01 bic r3, r3, #1024 ; 0x400 <== NOT EXECUTED a000784c: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
/* FIXME: what happens, if we had sent XOFF but not yet XON? */
tty->flow_ctrl &= ~(FL_ISNTXOF);
a0007850: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0007854: e3c33002 bic r3, r3, #2 <== NOT EXECUTED a0007858: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
}
/* check for incoming RTS/CTS flow control switched off */
if (( tty->flow_ctrl & FL_MDRTS) && !(tty->termios.c_cflag & CRTSCTS)) {
a000785c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0007860: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0007864: 0a000010 beq a00078ac <rtems_termios_ioctl+0x1fc> <== NOT EXECUTED a0007868: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a000786c: e3530000 cmp r3, #0 <== NOT EXECUTED a0007870: ba00000d blt a00078ac <rtems_termios_ioctl+0x1fc> <== NOT EXECUTED
/* clear related flags in flow_ctrl */
tty->flow_ctrl &= ~(FL_MDRTS);
a0007874: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0007878: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED a000787c: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
/* restart remote Tx, if it was stopped */
if ((tty->flow_ctrl & FL_IRTSOFF) && (tty->device.startRemoteTx != NULL)) {
a0007880: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0007884: e3130004 tst r3, #4 <== NOT EXECUTED a0007888: 0a000004 beq a00078a0 <rtems_termios_ioctl+0x1f0> <== NOT EXECUTED a000788c: e59430b0 ldr r3, [r4, #176] ; 0xb0 <== NOT EXECUTED a0007890: e3530000 cmp r3, #0 <== NOT EXECUTED a0007894: 0a000001 beq a00078a0 <rtems_termios_ioctl+0x1f0> <== NOT EXECUTED
tty->device.startRemoteTx(tty->minor);
a0007898: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000789c: e12fff33 blx r3 <== NOT EXECUTED
}
tty->flow_ctrl &= ~(FL_IRTSOFF);
a00078a0: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00078a4: e3c33004 bic r3, r3, #4 <== NOT EXECUTED a00078a8: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
/*
* check for flow control options to be switched on
*/
/* check for incoming RTS/CTS flow control switched on */
if (tty->termios.c_cflag & CRTSCTS) {
a00078ac: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED
tty->termios = *(struct termios *)args->buffer;
/* check for and process change in flow control options */
termios_set_flowctrl(tty);
if (tty->termios.c_lflag & ICANON) {
a00078b0: e594703c ldr r7, [r4, #60] ; 0x3c <== NOT EXECUTED
/*
* check for flow control options to be switched on
*/
/* check for incoming RTS/CTS flow control switched on */
if (tty->termios.c_cflag & CRTSCTS) {
a00078b4: e3530000 cmp r3, #0 <== NOT EXECUTED
tty->flow_ctrl |= FL_MDRTS;
a00078b8: b59430b8 ldrlt r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00078bc: b3833c01 orrlt r3, r3, #256 ; 0x100 <== NOT EXECUTED a00078c0: b58430b8 strlt r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
}
/* check for incoming XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXOFF) {
a00078c4: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a00078c8: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED
tty->flow_ctrl |= FL_MDXOF;
a00078cc: 159420b8 ldrne r2, [r4, #184] ; 0xb8 <== NOT EXECUTED a00078d0: 13822b01 orrne r2, r2, #1024 ; 0x400 <== NOT EXECUTED a00078d4: 158420b8 strne r2, [r4, #184] ; 0xb8 <== NOT EXECUTED
}
/* check for outgoing XON/XOF flow control switched on */
if (tty->termios.c_iflag & IXON) {
a00078d8: e3130b01 tst r3, #1024 ; 0x400 <== NOT EXECUTED
tty->flow_ctrl |= FL_MDXON;
a00078dc: 159430b8 ldrne r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00078e0: 13833c02 orrne r3, r3, #512 ; 0x200 <== NOT EXECUTED a00078e4: 158430b8 strne r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
tty->termios = *(struct termios *)args->buffer;
/* check for and process change in flow control options */
termios_set_flowctrl(tty);
if (tty->termios.c_lflag & ICANON) {
a00078e8: e2177002 ands r7, r7, #2 <== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
a00078ec: 13a03000 movne r3, #0 <== NOT EXECUTED
tty->termios = *(struct termios *)args->buffer;
/* check for and process change in flow control options */
termios_set_flowctrl(tty);
if (tty->termios.c_lflag & ICANON) {
a00078f0: 1a000013 bne a0007944 <rtems_termios_ioctl+0x294> <== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
} else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
a00078f4: e5d48046 ldrb r8, [r4, #70] ; 0x46 <== NOT EXECUTED
rtems_clock_get_ticks_per_second() / 10;
a00078f8: eb000518 bl a0008d60 <rtems_clock_get_ticks_per_second> <== NOT EXECUTED a00078fc: e3a0100a mov r1, #10 <== NOT EXECUTED a0007900: e0000098 mul r0, r8, r0 <== NOT EXECUTED a0007904: eb00339b bl a0014778 <__aeabi_uidiv> <== NOT EXECUTED
if (tty->termios.c_cc[VTIME]) {
a0007908: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED
if (tty->termios.c_lflag & ICANON) {
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
} else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
a000790c: e5840054 str r0, [r4, #84] ; 0x54 <== NOT EXECUTED a0007910: e5d42047 ldrb r2, [r4, #71] ; 0x47 <== NOT EXECUTED
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
a0007914: e3530000 cmp r3, #0 <== NOT EXECUTED a0007918: 0a000005 beq a0007934 <rtems_termios_ioctl+0x284> <== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
if (tty->termios.c_cc[VMIN])
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
a000791c: e3520000 cmp r2, #0 <== NOT EXECUTED
} else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
a0007920: e5840070 str r0, [r4, #112] ; 0x70 <== NOT EXECUTED
if (tty->termios.c_cc[VMIN])
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
a0007924: 13a00000 movne r0, #0 <== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
} else {
tty->vtimeTicks = tty->termios.c_cc[VTIME] *
rtems_clock_get_ticks_per_second() / 10;
if (tty->termios.c_cc[VTIME]) {
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
a0007928: e584706c str r7, [r4, #108] ; 0x6c <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;
if (tty->termios.c_cc[VMIN])
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
a000792c: e5840074 str r0, [r4, #116] ; 0x74 <== NOT EXECUTED a0007930: ea000006 b a0007950 <rtems_termios_ioctl+0x2a0> <== NOT EXECUTED
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
} else {
if (tty->termios.c_cc[VMIN]) {
a0007934: e3520000 cmp r2, #0 <== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
} else {
tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;
a0007938: 03a03001 moveq r3, #1 <== NOT EXECUTED a000793c: 0584306c streq r3, [r4, #108] ; 0x6c <== NOT EXECUTED
if (tty->termios.c_cc[VMIN])
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
else
tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;
} else {
if (tty->termios.c_cc[VMIN]) {
a0007940: 0a000002 beq a0007950 <rtems_termios_ioctl+0x2a0> <== NOT EXECUTED
tty->rawInBufSemaphoreOptions = RTEMS_WAIT;
a0007944: e584306c str r3, [r4, #108] ; 0x6c <== NOT EXECUTED
tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;
a0007948: e5843070 str r3, [r4, #112] ; 0x70 <== NOT EXECUTED
tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;
a000794c: e5843074 str r3, [r4, #116] ; 0x74 <== NOT EXECUTED
} else {
tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;
}
}
}
if (tty->device.setAttributes)
a0007950: e59430a8 ldr r3, [r4, #168] ; 0xa8 <== NOT EXECUTED a0007954: e3530000 cmp r3, #0 <== NOT EXECUTED a0007958: 0a00002f beq a0007a1c <rtems_termios_ioctl+0x36c> <== NOT EXECUTED
(*tty->device.setAttributes)(tty->minor, &tty->termios);
a000795c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0007960: e2841030 add r1, r4, #48 ; 0x30 <== NOT EXECUTED a0007964: e12fff33 blx r3 <== NOT EXECUTED a0007968: ea00002b b a0007a1c <rtems_termios_ioctl+0x36c> <== NOT EXECUTED
break;
case RTEMS_IO_TCDRAIN:
drainOutput (tty);
a000796c: e1a00004 mov r0, r4 <== NOT EXECUTED a0007970: ebfffdb4 bl a0007048 <drainOutput> <== NOT EXECUTED
break;
a0007974: ea000028 b a0007a1c <rtems_termios_ioctl+0x36c> <== NOT EXECUTED
case RTEMS_IO_SNDWAKEUP:
tty->tty_snd = *wakeup;
a0007978: e897000c ldm r7, {r2, r3} <== NOT EXECUTED
a000797c: e58420d4 str r2, [r4, #212] ; 0xd4 <== NOT EXECUTED
a0007980: e58430d8 str r3, [r4, #216] ; 0xd8 <== NOT EXECUTED
break;
a0007984: ea000024 b a0007a1c <rtems_termios_ioctl+0x36c> <== NOT EXECUTED
case RTEMS_IO_RCVWAKEUP:
tty->tty_rcv = *wakeup;
a0007988: e897000c ldm r7, {r2, r3} <== NOT EXECUTED
a000798c: e58420dc str r2, [r4, #220] ; 0xdc <== NOT EXECUTED
a0007990: e58430e0 str r3, [r4, #224] ; 0xe0 <== NOT EXECUTED
break;
a0007994: ea000020 b a0007a1c <rtems_termios_ioctl+0x36c> <== NOT EXECUTED
#if 1 /* FIXME */
case TIOCSETD:
/*
* close old line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
a0007998: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED a000799c: e59f3094 ldr r3, [pc, #148] ; a0007a38 <rtems_termios_ioctl+0x388><== NOT EXECUTED a00079a0: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED a00079a4: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a00079a8: e3530000 cmp r3, #0 <== NOT EXECUTED a00079ac: 0a000002 beq a00079bc <rtems_termios_ioctl+0x30c> <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
a00079b0: e1a00004 mov r0, r4 <== NOT EXECUTED a00079b4: e12fff33 blx r3 <== NOT EXECUTED a00079b8: e1a06000 mov r6, r0 <== NOT EXECUTED
}
tty->t_line=*(int*)(args->buffer);
a00079bc: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
a00079c0: e3a02000 mov r2, #0 <== NOT EXECUTED
* close old line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
}
tty->t_line=*(int*)(args->buffer);
a00079c4: e5933000 ldr r3, [r3] <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
a00079c8: e58420d0 str r2, [r4, #208] ; 0xd0 <== NOT EXECUTED
/*
* open new line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_open != NULL) {
a00079cc: e59f2064 ldr r2, [pc, #100] ; a0007a38 <rtems_termios_ioctl+0x388><== NOT EXECUTED
* close old line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_close != NULL) {
sc = rtems_termios_linesw[tty->t_line].l_close(tty);
}
tty->t_line=*(int*)(args->buffer);
a00079d0: e58430cc str r3, [r4, #204] ; 0xcc <== NOT EXECUTED
tty->t_sc = NULL; /* ensure that no more valid data */
/*
* open new line discipline
*/
if (rtems_termios_linesw[tty->t_line].l_open != NULL) {
a00079d4: e7923283 ldr r3, [r2, r3, lsl #5] <== NOT EXECUTED a00079d8: e3530000 cmp r3, #0 <== NOT EXECUTED a00079dc: 0a00000e beq a0007a1c <rtems_termios_ioctl+0x36c> <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_open(tty);
a00079e0: e1a00004 mov r0, r4 <== NOT EXECUTED a00079e4: e12fff33 blx r3 <== NOT EXECUTED a00079e8: e1a06000 mov r6, r0 <== NOT EXECUTED a00079ec: ea00000a b a0007a1c <rtems_termios_ioctl+0x36c> <== NOT EXECUTED
case TIOCGETD:
*(int*)(args->buffer)=tty->t_line;
break;
#endif
case FIONREAD: {
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
a00079f0: e5942060 ldr r2, [r4, #96] ; 0x60 <== NOT EXECUTED a00079f4: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED
if ( rawnc < 0 )
rawnc += tty->rawInBuf.Size;
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
a00079f8: e5940020 ldr r0, [r4, #32] <== NOT EXECUTED a00079fc: e5941024 ldr r1, [r4, #36] ; 0x24 <== NOT EXECUTED
*(int*)(args->buffer)=tty->t_line;
break;
#endif
case FIONREAD: {
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
if ( rawnc < 0 )
a0007a00: e0523003 subs r3, r2, r3 <== NOT EXECUTED
rawnc += tty->rawInBuf.Size;
a0007a04: 45942064 ldrmi r2, [r4, #100] ; 0x64 <== NOT EXECUTED
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
a0007a08: e0611000 rsb r1, r1, r0 <== NOT EXECUTED
break;
#endif
case FIONREAD: {
int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;
if ( rawnc < 0 )
rawnc += tty->rawInBuf.Size;
a0007a0c: 40833002 addmi r3, r3, r2 <== NOT EXECUTED
/* Half guess that this is the right operation */
*(int *)args->buffer = tty->ccount - tty->cindex + rawnc;
a0007a10: e5952008 ldr r2, [r5, #8] <== NOT EXECUTED a0007a14: e0813003 add r3, r1, r3 <== NOT EXECUTED a0007a18: e5823000 str r3, [r2] <== NOT EXECUTED
}
break;
}
rtems_semaphore_release (tty->osem);
a0007a1c: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED a0007a20: eb0006a8 bl a00094c8 <rtems_semaphore_release> <== NOT EXECUTED
args->ioctl_return = sc;
a0007a24: e585600c str r6, [r5, #12] <== NOT EXECUTED
return sc; }
a0007a28: e1a00006 mov r0, r6 <== NOT EXECUTED
a0007a2c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0008eb8 <rtems_termios_number_to_baud>:
extern rtems_assoc_t termios_assoc_table[];
int rtems_termios_number_to_baud(
int32_t baud
)
{
a0008eb8: e92d4010 push {r4, lr} <== NOT EXECUTED
a0008ebc: e1a04000 mov r4, r0 <== NOT EXECUTED
int termios_baud;
termios_baud = rtems_assoc_remote_by_local( termios_assoc_table, baud );
a0008ec0: e1a01004 mov r1, r4 <== NOT EXECUTED a0008ec4: e59f001c ldr r0, [pc, #28] ; a0008ee8 <rtems_termios_number_to_baud+0x30><== NOT EXECUTED a0008ec8: eb001b25 bl a000fb64 <rtems_assoc_remote_by_local> <== NOT EXECUTED
if ( termios_baud == 0 && baud != 0 )
a0008ecc: e2703001 rsbs r3, r0, #1 <== NOT EXECUTED a0008ed0: 33a03000 movcc r3, #0 <== NOT EXECUTED a0008ed4: e3540000 cmp r4, #0 <== NOT EXECUTED a0008ed8: 03a03000 moveq r3, #0 <== NOT EXECUTED a0008edc: e3530000 cmp r3, #0 <== NOT EXECUTED
return -1;
return termios_baud;
}
a0008ee0: 13e00000 mvnne r0, #0 <== NOT EXECUTED
a0008ee4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a00070a8 <rtems_termios_open>:
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
a00070a8: e92d4fff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, lr}<== NOT EXECUTED
a00070ac: e58d300c str r3, [sp, #12] <== NOT EXECUTED
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain(
a00070b0: e59f3404 ldr r3, [pc, #1028] ; a00074bc <rtems_termios_open+0x414><== NOT EXECUTED
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
a00070b4: e1a0a001 mov sl, r1 <== NOT EXECUTED
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain(
a00070b8: e3a01000 mov r1, #0 <== NOT EXECUTED
rtems_device_major_number major,
rtems_device_minor_number minor,
void *arg,
const rtems_termios_callbacks *callbacks
)
{
a00070bc: e1a09000 mov r9, r0 <== NOT EXECUTED a00070c0: e1a08002 mov r8, r2 <== NOT EXECUTED
struct rtems_termios_tty *tty;
/*
* See if the device has already been opened
*/
sc = rtems_semaphore_obtain(
a00070c4: e5930000 ldr r0, [r3] <== NOT EXECUTED a00070c8: e1a02001 mov r2, r1 <== NOT EXECUTED a00070cc: eb0008b7 bl a00093b0 <rtems_semaphore_obtain> <== NOT EXECUTED
rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
a00070d0: e2506000 subs r6, r0, #0 <== NOT EXECUTED a00070d4: 1a0000ee bne a0007494 <rtems_termios_open+0x3ec> <== NOT EXECUTED
return sc;
for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {
a00070d8: e59f33e0 ldr r3, [pc, #992] ; a00074c0 <rtems_termios_open+0x418><== NOT EXECUTED a00070dc: e5937000 ldr r7, [r3] <== NOT EXECUTED a00070e0: e1a05007 mov r5, r7 <== NOT EXECUTED a00070e4: ea000006 b a0007104 <rtems_termios_open+0x5c> <== NOT EXECUTED
if ((tty->major == major) && (tty->minor == minor))
a00070e8: e595300c ldr r3, [r5, #12] <== NOT EXECUTED a00070ec: e1530009 cmp r3, r9 <== NOT EXECUTED a00070f0: 1a000002 bne a0007100 <rtems_termios_open+0x58> <== NOT EXECUTED a00070f4: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED a00070f8: e153000a cmp r3, sl <== NOT EXECUTED a00070fc: 0a0000c3 beq a0007410 <rtems_termios_open+0x368> <== NOT EXECUTED
sc = rtems_semaphore_obtain(
rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
return sc;
for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) {
a0007100: e5955000 ldr r5, [r5] <== NOT EXECUTED a0007104: e3550000 cmp r5, #0 <== NOT EXECUTED a0007108: 1afffff6 bne a00070e8 <rtems_termios_open+0x40> <== NOT EXECUTED a000710c: ea0000e3 b a00074a0 <rtems_termios_open+0x3f8> <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
a0007110: e59f23ac ldr r2, [pc, #940] ; a00074c4 <rtems_termios_open+0x41c><== NOT EXECUTED a0007114: e5923000 ldr r3, [r2] <== NOT EXECUTED a0007118: e5853064 str r3, [r5, #100] ; 0x64 <== NOT EXECUTED
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
a000711c: e5950064 ldr r0, [r5, #100] ; 0x64 <== NOT EXECUTED a0007120: e58d2008 str r2, [sp, #8] <== NOT EXECUTED a0007124: ebfffcef bl a00064e8 <malloc> <== NOT EXECUTED
if (tty->rawInBuf.theBuf == NULL) {
a0007128: e3500000 cmp r0, #0 <== NOT EXECUTED
}
/*
* allocate raw input buffer
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
a000712c: e1a0b000 mov fp, r0 <== NOT EXECUTED a0007130: e5850058 str r0, [r5, #88] ; 0x58 <== NOT EXECUTED
if (tty->rawInBuf.theBuf == NULL) {
a0007134: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED a0007138: 1a000006 bne a0007158 <rtems_termios_open+0xb0> <== NOT EXECUTED
free(tty);
a000713c: e1a00005 mov r0, r5 <== NOT EXECUTED a0007140: ebfffc0a bl a0006170 <free> <== NOT EXECUTED
rtems_semaphore_release (rtems_termios_ttyMutex);
a0007144: e59f3370 ldr r3, [pc, #880] ; a00074bc <rtems_termios_open+0x414><== NOT EXECUTED
return RTEMS_NO_MEMORY;
a0007148: e3a0601a mov r6, #26 <== NOT EXECUTED
*/
tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;
tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);
if (tty->rawInBuf.theBuf == NULL) {
free(tty);
rtems_semaphore_release (rtems_termios_ttyMutex);
a000714c: e5930000 ldr r0, [r3] <== NOT EXECUTED a0007150: eb0008dc bl a00094c8 <rtems_semaphore_release> <== NOT EXECUTED
return RTEMS_NO_MEMORY;
a0007154: ea0000ce b a0007494 <rtems_termios_open+0x3ec> <== NOT EXECUTED
}
/*
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
a0007158: e5923004 ldr r3, [r2, #4] <== NOT EXECUTED a000715c: e5853088 str r3, [r5, #136] ; 0x88 <== NOT EXECUTED
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
a0007160: e5950088 ldr r0, [r5, #136] ; 0x88 <== NOT EXECUTED a0007164: e58d2008 str r2, [sp, #8] <== NOT EXECUTED a0007168: ebfffcde bl a00064e8 <malloc> <== NOT EXECUTED
if (tty->rawOutBuf.theBuf == NULL) {
a000716c: e3500000 cmp r0, #0 <== NOT EXECUTED
}
/*
* allocate raw output buffer
*/
tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;
tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);
a0007170: e1a03000 mov r3, r0 <== NOT EXECUTED a0007174: e585007c str r0, [r5, #124] ; 0x7c <== NOT EXECUTED
if (tty->rawOutBuf.theBuf == NULL) {
a0007178: e59d2008 ldr r2, [sp, #8] <== NOT EXECUTED a000717c: 0a000008 beq a00071a4 <rtems_termios_open+0xfc> <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
a0007180: e5920008 ldr r0, [r2, #8] <== NOT EXECUTED a0007184: e58d3008 str r3, [sp, #8] <== NOT EXECUTED a0007188: ebfffcd6 bl a00064e8 <malloc> <== NOT EXECUTED
if (tty->cbuf == NULL) {
a000718c: e3500000 cmp r0, #0 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* allocate cooked buffer
*/
tty->cbuf = malloc (CBUFSIZE);
a0007190: e585001c str r0, [r5, #28] <== NOT EXECUTED
if (tty->cbuf == NULL) {
a0007194: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0007198: 1a000004 bne a00071b0 <rtems_termios_open+0x108> <== NOT EXECUTED
free((void *)(tty->rawOutBuf.theBuf));
a000719c: e1a00003 mov r0, r3 <== NOT EXECUTED a00071a0: ebfffbf2 bl a0006170 <free> <== NOT EXECUTED
free((void *)(tty->rawInBuf.theBuf));
a00071a4: e1a0000b mov r0, fp <== NOT EXECUTED a00071a8: ebfffbf0 bl a0006170 <free> <== NOT EXECUTED a00071ac: eaffffe2 b a000713c <rtems_termios_open+0x94> <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* Initialize wakeup callbacks
*/
tty->tty_snd.sw_pfn = NULL;
a00071b0: e3a03000 mov r3, #0 <== NOT EXECUTED
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
tty->back = NULL;
a00071b4: e5853004 str r3, [r5, #4] <== NOT EXECUTED
if (rtems_termios_ttyHead != NULL)
a00071b8: e1570003 cmp r7, r3 <== NOT EXECUTED
return RTEMS_NO_MEMORY;
}
/*
* Initialize wakeup callbacks
*/
tty->tty_snd.sw_pfn = NULL;
a00071bc: e58530d4 str r3, [r5, #212] ; 0xd4 <== NOT EXECUTED
tty->tty_snd.sw_arg = NULL;
a00071c0: e58530d8 str r3, [r5, #216] ; 0xd8 <== NOT EXECUTED
tty->tty_rcv.sw_pfn = NULL;
a00071c4: e58530dc str r3, [r5, #220] ; 0xdc <== NOT EXECUTED
tty->tty_rcv.sw_arg = NULL;
a00071c8: e58530e0 str r3, [r5, #224] ; 0xe0 <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
a00071cc: e58530e4 str r3, [r5, #228] ; 0xe4 <== NOT EXECUTED
*/
tty->forw = rtems_termios_ttyHead;
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
a00071d0: e59f32e8 ldr r3, [pc, #744] ; a00074c0 <rtems_termios_open+0x418><== NOT EXECUTED
* link tty
*/
tty->forw = rtems_termios_ttyHead;
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
rtems_termios_ttyHead->back = tty;
a00071d4: 15875004 strne r5, [r7, #4] <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
/*
* link tty
*/
tty->forw = rtems_termios_ttyHead;
a00071d8: e5857000 str r7, [r5] <== NOT EXECUTED
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
a00071dc: e5834000 str r4, [r3] <== NOT EXECUTED
if (rtems_termios_ttyTail == NULL)
a00071e0: e59f32e0 ldr r3, [pc, #736] ; a00074c8 <rtems_termios_open+0x420><== NOT EXECUTED
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
rtems_build_name ('T', 'R', 'i', c),
a00071e4: e59f72d8 ldr r7, [pc, #728] ; a00074c4 <rtems_termios_open+0x41c><== NOT EXECUTED
tty->major = major;
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
a00071e8: e59f02dc ldr r0, [pc, #732] ; a00074cc <rtems_termios_open+0x424><== NOT EXECUTED
tty->forw = rtems_termios_ttyHead;
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
a00071ec: e5932000 ldr r2, [r3] <== NOT EXECUTED
rtems_termios_ttyTail = tty;
tty->minor = minor;
a00071f0: e584a010 str sl, [r4, #16] <== NOT EXECUTED
tty->major = major;
a00071f4: e584900c str r9, [r4, #12] <== NOT EXECUTED
tty->forw = rtems_termios_ttyHead;
tty->back = NULL;
if (rtems_termios_ttyHead != NULL)
rtems_termios_ttyHead->back = tty;
rtems_termios_ttyHead = tty;
if (rtems_termios_ttyTail == NULL)
a00071f8: e3520000 cmp r2, #0 <== NOT EXECUTED
rtems_termios_ttyTail = tty;
a00071fc: 05834000 streq r4, [r3] <== NOT EXECUTED
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
rtems_build_name ('T', 'R', 'i', c),
a0007200: e5d7300c ldrb r3, [r7, #12] <== NOT EXECUTED
tty->major = major;
/*
* Set up mutex semaphores
*/
sc = rtems_semaphore_create (
a0007204: e2842014 add r2, r4, #20 <== NOT EXECUTED a0007208: e58d2000 str r2, [sp] <== NOT EXECUTED a000720c: e1830000 orr r0, r3, r0 <== NOT EXECUTED a0007210: e3a01001 mov r1, #1 <== NOT EXECUTED a0007214: e3a03000 mov r3, #0 <== NOT EXECUTED a0007218: e3a02054 mov r2, #84 ; 0x54 <== NOT EXECUTED a000721c: eb0007d1 bl a0009168 <rtems_semaphore_create> <== NOT EXECUTED
rtems_build_name ('T', 'R', 'i', c),
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&tty->isem);
if (sc != RTEMS_SUCCESSFUL)
a0007220: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0007224: 1a000096 bne a0007484 <rtems_termios_open+0x3dc> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
rtems_build_name ('T', 'R', 'o', c),
a0007228: e5d7200c ldrb r2, [r7, #12] <== NOT EXECUTED
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&tty->isem);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
a000722c: e59f029c ldr r0, [pc, #668] ; a00074d0 <rtems_termios_open+0x428><== NOT EXECUTED a0007230: e2841018 add r1, r4, #24 <== NOT EXECUTED a0007234: e58d1000 str r1, [sp] <== NOT EXECUTED a0007238: e1820000 orr r0, r2, r0 <== NOT EXECUTED a000723c: e3a01001 mov r1, #1 <== NOT EXECUTED a0007240: e3a02054 mov r2, #84 ; 0x54 <== NOT EXECUTED a0007244: eb0007c7 bl a0009168 <rtems_semaphore_create> <== NOT EXECUTED
rtems_build_name ('T', 'R', 'o', c),
1,
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&tty->osem);
if (sc != RTEMS_SUCCESSFUL)
a0007248: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000724c: 1a00008c bne a0007484 <rtems_termios_open+0x3dc> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
rtems_build_name ('T', 'R', 'x', c),
a0007250: e5d7300c ldrb r3, [r7, #12] <== NOT EXECUTED
RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&tty->osem);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
sc = rtems_semaphore_create (
a0007254: e59f0278 ldr r0, [pc, #632] ; a00074d4 <rtems_termios_open+0x42c><== NOT EXECUTED a0007258: e284208c add r2, r4, #140 ; 0x8c <== NOT EXECUTED a000725c: e58d2000 str r2, [sp] <== NOT EXECUTED a0007260: e1830000 orr r0, r3, r0 <== NOT EXECUTED a0007264: e3a02020 mov r2, #32 <== NOT EXECUTED a0007268: e1a03001 mov r3, r1 <== NOT EXECUTED a000726c: eb0007bd bl a0009168 <rtems_semaphore_create> <== NOT EXECUTED
rtems_build_name ('T', 'R', 'x', c),
0,
RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO,
RTEMS_NO_PRIORITY,
&tty->rawOutBuf.Semaphore);
if (sc != RTEMS_SUCCESSFUL)
a0007270: e250b000 subs fp, r0, #0 <== NOT EXECUTED a0007274: 1a000082 bne a0007484 <rtems_termios_open+0x3dc> <== NOT EXECUTED
tty->rawOutBufState = rob_idle;
/*
* Set callbacks
*/
tty->device = *callbacks;
a0007278: e59de00c ldr lr, [sp, #12] <== NOT EXECUTED a000727c: e284c098 add ip, r4, #152 ; 0x98 <== NOT EXECUTED
RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO,
RTEMS_NO_PRIORITY,
&tty->rawOutBuf.Semaphore);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
tty->rawOutBufState = rob_idle;
a0007280: e584b094 str fp, [r4, #148] ; 0x94 <== NOT EXECUTED
/*
* Set callbacks
*/
tty->device = *callbacks;
a0007284: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0007288: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a000728c: e89e000f ldm lr, {r0, r1, r2, r3} <== NOT EXECUTED
a0007290: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
a0007294: e59430b4 ldr r3, [r4, #180] ; 0xb4 <== NOT EXECUTED a0007298: e3530002 cmp r3, #2 <== NOT EXECUTED a000729c: 1a000017 bne a0007300 <rtems_termios_open+0x258> <== NOT EXECUTED
sc = rtems_task_create (
rtems_build_name ('T', 'x', 'T', c),
a00072a0: e5d7300c ldrb r3, [r7, #12] <== NOT EXECUTED
/*
* Create I/O tasks
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
sc = rtems_task_create (
a00072a4: e59f022c ldr r0, [pc, #556] ; a00074d8 <rtems_termios_open+0x430><== NOT EXECUTED a00072a8: e28420c8 add r2, r4, #200 ; 0xc8 <== NOT EXECUTED a00072ac: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a00072b0: e1830000 orr r0, r3, r0 <== NOT EXECUTED a00072b4: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED a00072b8: e3a0100a mov r1, #10 <== NOT EXECUTED a00072bc: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED a00072c0: e58db000 str fp, [sp] <== NOT EXECUTED a00072c4: eb0008a6 bl a0009564 <rtems_task_create> <== NOT EXECUTED
TERMIOS_TXTASK_STACKSIZE,
RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |
RTEMS_NO_ASR,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
&tty->txTaskId);
if (sc != RTEMS_SUCCESSFUL)
a00072c8: e2502000 subs r2, r0, #0 <== NOT EXECUTED a00072cc: 1a00006c bne a0007484 <rtems_termios_open+0x3dc> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_create (
rtems_build_name ('R', 'x', 'T', c),
a00072d0: e5d7300c ldrb r3, [r7, #12] <== NOT EXECUTED
RTEMS_NO_ASR,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
&tty->txTaskId);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
sc = rtems_task_create (
a00072d4: e59f0200 ldr r0, [pc, #512] ; a00074dc <rtems_termios_open+0x434><== NOT EXECUTED a00072d8: e58d2000 str r2, [sp] <== NOT EXECUTED a00072dc: e28420c4 add r2, r4, #196 ; 0xc4 <== NOT EXECUTED a00072e0: e58d2004 str r2, [sp, #4] <== NOT EXECUTED a00072e4: e1830000 orr r0, r3, r0 <== NOT EXECUTED a00072e8: e3a01009 mov r1, #9 <== NOT EXECUTED a00072ec: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED a00072f0: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED a00072f4: eb00089a bl a0009564 <rtems_task_create> <== NOT EXECUTED
TERMIOS_RXTASK_STACKSIZE,
RTEMS_NO_PREEMPT | RTEMS_NO_TIMESLICE |
RTEMS_NO_ASR,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
&tty->rxTaskId);
if (sc != RTEMS_SUCCESSFUL)
a00072f8: e3500000 cmp r0, #0 <== NOT EXECUTED a00072fc: 1a000060 bne a0007484 <rtems_termios_open+0x3dc> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
a0007300: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED a0007304: e3530000 cmp r3, #0 <== NOT EXECUTED a0007308: 0a000002 beq a0007318 <rtems_termios_open+0x270> <== NOT EXECUTED a000730c: e59430b4 ldr r3, [r4, #180] ; 0xb4 <== NOT EXECUTED a0007310: e3530002 cmp r3, #2 <== NOT EXECUTED a0007314: 1a00000b bne a0007348 <rtems_termios_open+0x2a0> <== NOT EXECUTED
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
sc = rtems_semaphore_create (
rtems_build_name ('T', 'R', 'r', c),
a0007318: e59f31a4 ldr r3, [pc, #420] ; a00074c4 <rtems_termios_open+0x41c><== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
sc = rtems_semaphore_create (
a000731c: e59f01bc ldr r0, [pc, #444] ; a00074e0 <rtems_termios_open+0x438><== NOT EXECUTED a0007320: e2842068 add r2, r4, #104 ; 0x68 <== NOT EXECUTED
rtems_build_name ('T', 'R', 'r', c),
a0007324: e5d3300c ldrb r3, [r3, #12] <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
}
if ((tty->device.pollRead == NULL) ||
(tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){
sc = rtems_semaphore_create (
a0007328: e3a01000 mov r1, #0 <== NOT EXECUTED a000732c: e58d2000 str r2, [sp] <== NOT EXECUTED a0007330: e1830000 orr r0, r3, r0 <== NOT EXECUTED a0007334: e3a02024 mov r2, #36 ; 0x24 <== NOT EXECUTED a0007338: e1a03001 mov r3, r1 <== NOT EXECUTED a000733c: eb000789 bl a0009168 <rtems_semaphore_create> <== NOT EXECUTED
rtems_build_name ('T', 'R', 'r', c),
0,
RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_PRIORITY,
RTEMS_NO_PRIORITY,
&tty->rawInBuf.Semaphore);
if (sc != RTEMS_SUCCESSFUL)
a0007340: e3500000 cmp r0, #0 <== NOT EXECUTED a0007344: 1a00004e bne a0007484 <rtems_termios_open+0x3dc> <== NOT EXECUTED
}
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
a0007348: e59f3194 ldr r3, [pc, #404] ; a00074e4 <rtems_termios_open+0x43c><== NOT EXECUTED
tty->termios.c_cc[VERASE] = '\177';
tty->termios.c_cc[VKILL] = '\025';
tty->termios.c_cc[VEOF] = '\004';
tty->termios.c_cc[VEOL] = '\000';
tty->termios.c_cc[VEOL2] = '\000';
tty->termios.c_cc[VSTART] = '\021';
a000734c: e3a02011 mov r2, #17 <== NOT EXECUTED a0007350: e5c42049 strb r2, [r4, #73] ; 0x49 <== NOT EXECUTED
}
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
a0007354: e5843030 str r3, [r4, #48] ; 0x30 <== NOT EXECUTED
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
a0007358: e59f3188 ldr r3, [pc, #392] ; a00074e8 <rtems_termios_open+0x440><== NOT EXECUTED
tty->termios.c_cc[VKILL] = '\025';
tty->termios.c_cc[VEOF] = '\004';
tty->termios.c_cc[VEOL] = '\000';
tty->termios.c_cc[VEOL2] = '\000';
tty->termios.c_cc[VSTART] = '\021';
tty->termios.c_cc[VSTOP] = '\023';
a000735c: e2822002 add r2, r2, #2 <== NOT EXECUTED a0007360: e5c4204a strb r2, [r4, #74] ; 0x4a <== NOT EXECUTED
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
a0007364: e5843034 str r3, [r4, #52] ; 0x34 <== NOT EXECUTED
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
a0007368: e59f317c ldr r3, [pc, #380] ; a00074ec <rtems_termios_open+0x444><== NOT EXECUTED
tty->termios.c_cc[VEOF] = '\004';
tty->termios.c_cc[VEOL] = '\000';
tty->termios.c_cc[VEOL2] = '\000';
tty->termios.c_cc[VSTART] = '\021';
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
a000736c: e2822007 add r2, r2, #7 <== NOT EXECUTED a0007370: e5c4204b strb r2, [r4, #75] ; 0x4b <== NOT EXECUTED
/*
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
a0007374: e5843038 str r3, [r4, #56] ; 0x38 <== NOT EXECUTED
tty->termios.c_lflag =
a0007378: e59f3170 ldr r3, [pc, #368] ; a00074f0 <rtems_termios_open+0x448><== NOT EXECUTED
tty->termios.c_cc[VEOL] = '\000';
tty->termios.c_cc[VEOL2] = '\000';
tty->termios.c_cc[VSTART] = '\021';
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
tty->termios.c_cc[VREPRINT] = '\022';
a000737c: e3a02012 mov r2, #18 <== NOT EXECUTED a0007380: e5c4204d strb r2, [r4, #77] ; 0x4d <== NOT EXECUTED
* Set default parameters
*/
tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;
tty->termios.c_oflag = OPOST | ONLCR | XTABS;
tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;
tty->termios.c_lflag =
a0007384: e584303c str r3, [r4, #60] ; 0x3c <== NOT EXECUTED
ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;
tty->termios.c_cc[VINTR] = '\003';
a0007388: e3a03003 mov r3, #3 <== NOT EXECUTED a000738c: e5c43041 strb r3, [r4, #65] ; 0x41 <== NOT EXECUTED
tty->termios.c_cc[VQUIT] = '\034';
a0007390: e2833019 add r3, r3, #25 <== NOT EXECUTED a0007394: e5c43042 strb r3, [r4, #66] ; 0x42 <== NOT EXECUTED
tty->termios.c_cc[VERASE] = '\177';
a0007398: e2833063 add r3, r3, #99 ; 0x63 <== NOT EXECUTED a000739c: e5c43043 strb r3, [r4, #67] ; 0x43 <== NOT EXECUTED
tty->termios.c_cc[VKILL] = '\025';
a00073a0: e3a03015 mov r3, #21 <== NOT EXECUTED a00073a4: e5c43044 strb r3, [r4, #68] ; 0x44 <== NOT EXECUTED
tty->termios.c_cc[VEOF] = '\004';
a00073a8: e3a03004 mov r3, #4 <== NOT EXECUTED a00073ac: e5c43045 strb r3, [r4, #69] ; 0x45 <== NOT EXECUTED
tty->termios.c_cc[VEOL] = '\000';
a00073b0: e3a03000 mov r3, #0 <== NOT EXECUTED
tty->termios.c_cc[VDISCARD] = '\017';
tty->termios.c_cc[VWERASE] = '\027';
tty->termios.c_cc[VLNEXT] = '\026';
/* start with no flow control, clear flow control flags */
tty->flow_ctrl = 0;
a00073b4: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
tty->termios.c_cc[VINTR] = '\003';
tty->termios.c_cc[VQUIT] = '\034';
tty->termios.c_cc[VERASE] = '\177';
tty->termios.c_cc[VKILL] = '\025';
tty->termios.c_cc[VEOF] = '\004';
tty->termios.c_cc[VEOL] = '\000';
a00073b8: e5c4304c strb r3, [r4, #76] ; 0x4c <== NOT EXECUTED
tty->termios.c_cc[VEOL2] = '\000';
a00073bc: e5c43051 strb r3, [r4, #81] ; 0x51 <== NOT EXECUTED
/* start with no flow control, clear flow control flags */
tty->flow_ctrl = 0;
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
a00073c0: e5943064 ldr r3, [r4, #100] ; 0x64 <== NOT EXECUTED
tty->termios.c_cc[VEOL2] = '\000';
tty->termios.c_cc[VSTART] = '\021';
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
tty->termios.c_cc[VREPRINT] = '\022';
tty->termios.c_cc[VDISCARD] = '\017';
a00073c4: e3a0200f mov r2, #15 <== NOT EXECUTED a00073c8: e5c4204e strb r2, [r4, #78] ; 0x4e <== NOT EXECUTED
/* start with no flow control, clear flow control flags */
tty->flow_ctrl = 0;
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
a00073cc: e1a030a3 lsr r3, r3, #1 <== NOT EXECUTED a00073d0: e58430bc str r3, [r4, #188] ; 0xbc <== NOT EXECUTED
tty->highwater = tty->rawInBuf.Size * 3/4;
a00073d4: e5943064 ldr r3, [r4, #100] ; 0x64 <== NOT EXECUTED
tty->termios.c_cc[VSTART] = '\021';
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
tty->termios.c_cc[VREPRINT] = '\022';
tty->termios.c_cc[VDISCARD] = '\017';
tty->termios.c_cc[VWERASE] = '\027';
a00073d8: e2822008 add r2, r2, #8 <== NOT EXECUTED a00073dc: e5c4204f strb r2, [r4, #79] ; 0x4f <== NOT EXECUTED
tty->flow_ctrl = 0;
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
a00073e0: e0833083 add r3, r3, r3, lsl #1 <== NOT EXECUTED
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
tty->termios.c_cc[VREPRINT] = '\022';
tty->termios.c_cc[VDISCARD] = '\017';
tty->termios.c_cc[VWERASE] = '\027';
tty->termios.c_cc[VLNEXT] = '\026';
a00073e4: e3a02016 mov r2, #22 <== NOT EXECUTED
tty->flow_ctrl = 0;
/*
* set low/highwater mark for XON/XOFF support
*/
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
a00073e8: e1a03123 lsr r3, r3, #2 <== NOT EXECUTED a00073ec: e58430c0 str r3, [r4, #192] ; 0xc0 <== NOT EXECUTED
/*
* Bump name characer
*/
if (c++ == 'z')
a00073f0: e59f30cc ldr r3, [pc, #204] ; a00074c4 <rtems_termios_open+0x41c><== NOT EXECUTED
tty->termios.c_cc[VSTOP] = '\023';
tty->termios.c_cc[VSUSP] = '\032';
tty->termios.c_cc[VREPRINT] = '\022';
tty->termios.c_cc[VDISCARD] = '\017';
tty->termios.c_cc[VWERASE] = '\027';
tty->termios.c_cc[VLNEXT] = '\026';
a00073f4: e5c42050 strb r2, [r4, #80] ; 0x50 <== NOT EXECUTED
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
a00073f8: e5d3200c ldrb r2, [r3, #12] <== NOT EXECUTED a00073fc: e352007a cmp r2, #122 ; 0x7a <== NOT EXECUTED a0007400: e2821001 add r1, r2, #1 <== NOT EXECUTED
c = 'a';
a0007404: 03a02061 moveq r2, #97 ; 0x61 <== NOT EXECUTED
tty->lowwater = tty->rawInBuf.Size * 1/2;
tty->highwater = tty->rawInBuf.Size * 3/4;
/*
* Bump name characer
*/
if (c++ == 'z')
a0007408: e5c3100c strb r1, [r3, #12] <== NOT EXECUTED
c = 'a';
a000740c: 05c3200c strbeq r2, [r3, #12] <== NOT EXECUTED
}
args->iop->data1 = tty;
a0007410: e5983000 ldr r3, [r8] <== NOT EXECUTED a0007414: e5835034 str r5, [r3, #52] ; 0x34 <== NOT EXECUTED
if (!tty->refcount++) {
a0007418: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a000741c: e2832001 add r2, r3, #1 <== NOT EXECUTED a0007420: e3530000 cmp r3, #0 <== NOT EXECUTED a0007424: e5852008 str r2, [r5, #8] <== NOT EXECUTED a0007428: 1a000016 bne a0007488 <rtems_termios_open+0x3e0> <== NOT EXECUTED
if (tty->device.firstOpen)
a000742c: e5953098 ldr r3, [r5, #152] ; 0x98 <== NOT EXECUTED a0007430: e3530000 cmp r3, #0 <== NOT EXECUTED a0007434: 0a000003 beq a0007448 <rtems_termios_open+0x3a0> <== NOT EXECUTED
(*tty->device.firstOpen)(major, minor, arg);
a0007438: e1a00009 mov r0, r9 <== NOT EXECUTED a000743c: e1a0100a mov r1, sl <== NOT EXECUTED a0007440: e1a02008 mov r2, r8 <== NOT EXECUTED a0007444: e12fff33 blx r3 <== NOT EXECUTED
/*
* start I/O tasks, if needed
*/
if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {
a0007448: e59530b4 ldr r3, [r5, #180] ; 0xb4 <== NOT EXECUTED a000744c: e3530002 cmp r3, #2 <== NOT EXECUTED a0007450: 1a00000c bne a0007488 <rtems_termios_open+0x3e0> <== NOT EXECUTED
sc = rtems_task_start(
a0007454: e59500c4 ldr r0, [r5, #196] ; 0xc4 <== NOT EXECUTED a0007458: e59f1094 ldr r1, [pc, #148] ; a00074f4 <rtems_termios_open+0x44c><== NOT EXECUTED a000745c: e1a02005 mov r2, r5 <== NOT EXECUTED a0007460: eb0008e7 bl a0009804 <rtems_task_start> <== NOT EXECUTED
tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
a0007464: e3500000 cmp r0, #0 <== NOT EXECUTED a0007468: 1a000005 bne a0007484 <rtems_termios_open+0x3dc> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
sc = rtems_task_start(
a000746c: e59500c8 ldr r0, [r5, #200] ; 0xc8 <== NOT EXECUTED a0007470: e59f1080 ldr r1, [pc, #128] ; a00074f8 <rtems_termios_open+0x450><== NOT EXECUTED a0007474: e1a02005 mov r2, r5 <== NOT EXECUTED a0007478: eb0008e1 bl a0009804 <rtems_task_start> <== NOT EXECUTED
tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
if (sc != RTEMS_SUCCESSFUL)
a000747c: e3500000 cmp r0, #0 <== NOT EXECUTED a0007480: 0a000000 beq a0007488 <rtems_termios_open+0x3e0> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
a0007484: eb000964 bl a0009a1c <rtems_fatal_error_occurred> <== NOT EXECUTED
}
}
rtems_semaphore_release (rtems_termios_ttyMutex);
a0007488: e59f302c ldr r3, [pc, #44] ; a00074bc <rtems_termios_open+0x414><== NOT EXECUTED a000748c: e5930000 ldr r0, [r3] <== NOT EXECUTED a0007490: eb00080c bl a00094c8 <rtems_semaphore_release> <== NOT EXECUTED
return RTEMS_SUCCESSFUL; }
a0007494: e1a00006 mov r0, r6 <== NOT EXECUTED
a0007498: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a000749c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
a00074a0: e3a00001 mov r0, #1 <== NOT EXECUTED a00074a4: e3a010e8 mov r1, #232 ; 0xe8 <== NOT EXECUTED a00074a8: ebfffacb bl a0005fdc <calloc> <== NOT EXECUTED
if (tty == NULL) {
a00074ac: e2504000 subs r4, r0, #0 <== NOT EXECUTED
static char c = 'a';
/*
* Create a new device
*/
tty = calloc (1, sizeof (struct rtems_termios_tty));
a00074b0: e1a05000 mov r5, r0 <== NOT EXECUTED
if (tty == NULL) {
a00074b4: 1affff15 bne a0007110 <rtems_termios_open+0x68> <== NOT EXECUTED a00074b8: eaffff21 b a0007144 <rtems_termios_open+0x9c> <== NOT EXECUTED
a0007a3c <rtems_termios_puts>:
* Send characters to device-specific code
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
a0007a3c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED
a0007a40: e1a04002 mov r4, r2 <== NOT EXECUTED
const unsigned char *buf = _buf;
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
a0007a44: e59220b4 ldr r2, [r2, #180] ; 0xb4 <== NOT EXECUTED
* Send characters to device-specific code
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
a0007a48: e1a03000 mov r3, r0 <== NOT EXECUTED a0007a4c: e1a06001 mov r6, r1 <== NOT EXECUTED
const unsigned char *buf = _buf;
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
a0007a50: e3520000 cmp r2, #0 <== NOT EXECUTED
*/
void
rtems_termios_puts (
const void *_buf, int len, struct rtems_termios_tty *tty)
{
const unsigned char *buf = _buf;
a0007a54: e1a08000 mov r8, r0 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
a0007a58: 15945080 ldrne r5, [r4, #128] ; 0x80 <== NOT EXECUTED
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
rtems_interrupt_disable (level);
while (newHead == tty->rawOutBuf.Tail) {
tty->rawOutBufState = rob_wait;
a0007a5c: 13a0a002 movne sl, #2 <== NOT EXECUTED
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
} else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
}
tty->rawOutBufState = rob_busy;
a0007a60: 13a09001 movne r9, #1 <== NOT EXECUTED
const unsigned char *buf = _buf;
unsigned int newHead;
rtems_interrupt_level level;
rtems_status_code sc;
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
a0007a64: 1a000032 bne a0007b34 <rtems_termios_puts+0xf8> <== NOT EXECUTED
(*tty->device.write)(tty->minor, (void *)buf, len);
a0007a68: e594c0a4 ldr ip, [r4, #164] ; 0xa4 <== NOT EXECUTED a0007a6c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0007a70: e1a01003 mov r1, r3 <== NOT EXECUTED a0007a74: e1a02006 mov r2, r6 <== NOT EXECUTED a0007a78: e12fff3c blx ip <== NOT EXECUTED
return;
a0007a7c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
* len -= ncopy
*
* To minimize latency, the memcpy should be done
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
a0007a80: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED a0007a84: e2850001 add r0, r5, #1 <== NOT EXECUTED a0007a88: eb0033d2 bl a00149d8 <__umodsi3> <== NOT EXECUTED a0007a8c: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_interrupt_disable (level);
a0007a90: ebfffd68 bl a0007038 <arm_interrupt_disable> <== NOT EXECUTED a0007a94: e1a07000 mov r7, r0 <== NOT EXECUTED
while (newHead == tty->rawOutBuf.Tail) {
a0007a98: ea00000a b a0007ac8 <rtems_termios_puts+0x8c> <== NOT EXECUTED
tty->rawOutBufState = rob_wait;
a0007a9c: e584a094 str sl, [r4, #148] ; 0x94 <== NOT EXECUTED a0007aa0: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
rtems_interrupt_enable (level);
sc = rtems_semaphore_obtain(
a0007aa4: e3a01000 mov r1, #0 <== NOT EXECUTED a0007aa8: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED a0007aac: e1a02001 mov r2, r1 <== NOT EXECUTED a0007ab0: eb00063e bl a00093b0 <rtems_semaphore_obtain> <== NOT EXECUTED
tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
a0007ab4: e3500000 cmp r0, #0 <== NOT EXECUTED a0007ab8: 0a000000 beq a0007ac0 <rtems_termios_puts+0x84> <== NOT EXECUTED
rtems_fatal_error_occurred (sc);
a0007abc: eb0007d6 bl a0009a1c <rtems_fatal_error_occurred> <== NOT EXECUTED
rtems_interrupt_disable (level);
a0007ac0: ebfffd5c bl a0007038 <arm_interrupt_disable> <== NOT EXECUTED a0007ac4: e1a07000 mov r7, r0 <== NOT EXECUTED
* To minimize latency, the memcpy should be done
* with interrupts enabled.
*/
newHead = (newHead + 1) % tty->rawOutBuf.Size;
rtems_interrupt_disable (level);
while (newHead == tty->rawOutBuf.Tail) {
a0007ac8: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED a0007acc: e1550003 cmp r5, r3 <== NOT EXECUTED a0007ad0: 0afffff1 beq a0007a9c <rtems_termios_puts+0x60> <== NOT EXECUTED
tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
a0007ad4: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED a0007ad8: e4d81001 ldrb r1, [r8], #1 <== NOT EXECUTED a0007adc: e594207c ldr r2, [r4, #124] ; 0x7c <== NOT EXECUTED a0007ae0: e7c21003 strb r1, [r2, r3] <== NOT EXECUTED
tty->rawOutBuf.Head = newHead;
if (tty->rawOutBufState == rob_idle) {
a0007ae4: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
rtems_fatal_error_occurred (sc);
rtems_interrupt_disable (level);
}
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
tty->rawOutBuf.Head = newHead;
a0007ae8: e5845080 str r5, [r4, #128] ; 0x80 <== NOT EXECUTED
if (tty->rawOutBufState == rob_idle) {
a0007aec: e3530000 cmp r3, #0 <== NOT EXECUTED a0007af0: 1a00000d bne a0007b2c <rtems_termios_puts+0xf0> <== NOT EXECUTED
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
a0007af4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0007af8: e3130010 tst r3, #16 <== NOT EXECUTED
(*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
} else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
a0007afc: 159430b8 ldrne r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0007b00: 13833020 orrne r3, r3, #32 <== NOT EXECUTED a0007b04: 158430b8 strne r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
}
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
tty->rawOutBuf.Head = newHead;
if (tty->rawOutBufState == rob_idle) {
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
a0007b08: 1a000006 bne a0007b28 <rtems_termios_puts+0xec> <== NOT EXECUTED
(*tty->device.write)(tty->minor,
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
a0007b0c: e5942084 ldr r2, [r4, #132] ; 0x84 <== NOT EXECUTED
tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++;
tty->rawOutBuf.Head = newHead;
if (tty->rawOutBufState == rob_idle) {
/* check, whether XOFF has been received */
if (!(tty->flow_ctrl & FL_ORCVXOF)) {
(*tty->device.write)(tty->minor,
a0007b10: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED a0007b14: e59430a4 ldr r3, [r4, #164] ; 0xa4 <== NOT EXECUTED a0007b18: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0007b1c: e0811002 add r1, r1, r2 <== NOT EXECUTED a0007b20: e3a02001 mov r2, #1 <== NOT EXECUTED a0007b24: e12fff33 blx r3 <== NOT EXECUTED
(char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1);
} else {
/* remember that output has been stopped due to flow ctrl*/
tty->flow_ctrl |= FL_OSTOP;
}
tty->rawOutBufState = rob_busy;
a0007b28: e5849094 str r9, [r4, #148] ; 0x94 <== NOT EXECUTED a0007b2c: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
}
rtems_interrupt_enable (level);
len--;
a0007b30: e2466001 sub r6, r6, #1 <== NOT EXECUTED
if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {
(*tty->device.write)(tty->minor, (void *)buf, len);
return;
}
newHead = tty->rawOutBuf.Head;
while (len) {
a0007b34: e3560000 cmp r6, #0 <== NOT EXECUTED
a0007b38: 1affffd0 bne a0007a80 <rtems_termios_puts+0x44> <== NOT EXECUTED
a0007b3c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED
a0008194 <rtems_termios_read>:
rtems_status_code
rtems_termios_read (void *arg)
{
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
a0008194: e5903000 ldr r3, [r0] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
a0008198: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
a000819c: e5934034 ldr r4, [r3, #52] ; 0x34 <== NOT EXECUTED
uint32_t count = args->count;
char *buffer = args->buffer;
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a00081a0: e3a01000 mov r1, #0 <== NOT EXECUTED
rtems_status_code
rtems_termios_read (void *arg)
{
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
uint32_t count = args->count;
a00081a4: e5908010 ldr r8, [r0, #16] <== NOT EXECUTED
char *buffer = args->buffer;
a00081a8: e590b00c ldr fp, [r0, #12] <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
}
rtems_status_code
rtems_termios_read (void *arg)
{
a00081ac: e1a05000 mov r5, r0 <== NOT EXECUTED
struct rtems_termios_tty *tty = args->iop->data1;
uint32_t count = args->count;
char *buffer = args->buffer;
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a00081b0: e1a02001 mov r2, r1 <== NOT EXECUTED a00081b4: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED a00081b8: eb00047c bl a00093b0 <rtems_semaphore_obtain> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
a00081bc: e2507000 subs r7, r0, #0 <== NOT EXECUTED a00081c0: 1a0000bd bne a00084bc <rtems_termios_read+0x328> <== NOT EXECUTED
return sc;
if (rtems_termios_linesw[tty->t_line].l_read != NULL) {
a00081c4: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED a00081c8: e59f32f4 ldr r3, [pc, #756] ; a00084c4 <rtems_termios_read+0x330><== NOT EXECUTED a00081cc: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED a00081d0: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a00081d4: e3530000 cmp r3, #0 <== NOT EXECUTED a00081d8: 0a000004 beq a00081f0 <rtems_termios_read+0x5c> <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);
a00081dc: e1a00004 mov r0, r4 <== NOT EXECUTED a00081e0: e1a01005 mov r1, r5 <== NOT EXECUTED a00081e4: e12fff33 blx r3 <== NOT EXECUTED a00081e8: e1a07000 mov r7, r0 <== NOT EXECUTED a00081ec: ea0000ae b a00084ac <rtems_termios_read+0x318> <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
a00081f0: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED a00081f4: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a00081f8: e1520003 cmp r2, r3 <== NOT EXECUTED a00081fc: 1a0000a1 bne a0008488 <rtems_termios_read+0x2f4> <== NOT EXECUTED
tty->cindex = tty->ccount = 0;
tty->read_start_column = tty->column;
a0008200: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED
rtems_semaphore_release (tty->isem);
return sc;
}
if (tty->cindex == tty->ccount) {
tty->cindex = tty->ccount = 0;
a0008204: e5847020 str r7, [r4, #32] <== NOT EXECUTED a0008208: e5847024 str r7, [r4, #36] ; 0x24 <== NOT EXECUTED
tty->read_start_column = tty->column;
a000820c: e584302c str r3, [r4, #44] ; 0x2c <== NOT EXECUTED
if (tty->device.pollRead != NULL &&
a0008210: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED a0008214: e3530000 cmp r3, #0 <== NOT EXECUTED a0008218: 0a00003b beq a000830c <rtems_termios_read+0x178> <== NOT EXECUTED a000821c: e59430b4 ldr r3, [r4, #180] ; 0xb4 <== NOT EXECUTED a0008220: e3530000 cmp r3, #0 <== NOT EXECUTED a0008224: 1a000038 bne a000830c <rtems_termios_read+0x178> <== NOT EXECUTED
static rtems_status_code
fillBufferPoll (struct rtems_termios_tty *tty)
{
int n;
if (tty->termios.c_lflag & ICANON) {
a0008228: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a000822c: e3130002 tst r3, #2 <== NOT EXECUTED a0008230: 0a00000d beq a000826c <rtems_termios_read+0xd8> <== NOT EXECUTED
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
a0008234: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED a0008238: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000823c: e12fff33 blx r3 <== NOT EXECUTED
if (n < 0) {
a0008240: e3500000 cmp r0, #0 <== NOT EXECUTED a0008244: aa000002 bge a0008254 <rtems_termios_read+0xc0> <== NOT EXECUTED
rtems_task_wake_after (1);
a0008248: e3a00001 mov r0, #1 <== NOT EXECUTED a000824c: eb000584 bl a0009864 <rtems_task_wake_after> <== NOT EXECUTED a0008250: eafffff7 b a0008234 <rtems_termios_read+0xa0> <== NOT EXECUTED
} else {
if (siproc (n, tty))
a0008254: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED a0008258: e1a01004 mov r1, r4 <== NOT EXECUTED a000825c: ebffff88 bl a0008084 <siproc> <== NOT EXECUTED a0008260: e3500000 cmp r0, #0 <== NOT EXECUTED a0008264: 0afffff2 beq a0008234 <rtems_termios_read+0xa0> <== NOT EXECUTED a0008268: ea000086 b a0008488 <rtems_termios_read+0x2f4> <== NOT EXECUTED
}
}
} else {
rtems_interval then, now;
then = rtems_clock_get_ticks_since_boot();
a000826c: eb0002c3 bl a0008d80 <rtems_clock_get_ticks_since_boot> <== NOT EXECUTED a0008270: e1a06000 mov r6, r0 <== NOT EXECUTED
for (;;) {
n = (*tty->device.pollRead)(tty->minor);
a0008274: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED a0008278: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000827c: e12fff33 blx r3 <== NOT EXECUTED
if (n < 0) {
a0008280: e3500000 cmp r0, #0 <== NOT EXECUTED a0008284: aa000013 bge a00082d8 <rtems_termios_read+0x144> <== NOT EXECUTED
if (tty->termios.c_cc[VMIN]) {
a0008288: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED a000828c: e3530000 cmp r3, #0 <== NOT EXECUTED a0008290: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED a0008294: 0a000005 beq a00082b0 <rtems_termios_read+0x11c> <== NOT EXECUTED
if (tty->termios.c_cc[VTIME] && tty->ccount) {
a0008298: e3530000 cmp r3, #0 <== NOT EXECUTED a000829c: 0a00000a beq a00082cc <rtems_termios_read+0x138> <== NOT EXECUTED a00082a0: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a00082a4: e3530000 cmp r3, #0 <== NOT EXECUTED a00082a8: 0a000007 beq a00082cc <rtems_termios_read+0x138> <== NOT EXECUTED a00082ac: ea000001 b a00082b8 <rtems_termios_read+0x124> <== NOT EXECUTED
if ((now - then) > tty->vtimeTicks) {
break;
}
}
} else {
if (!tty->termios.c_cc[VTIME])
a00082b0: e3530000 cmp r3, #0 <== NOT EXECUTED a00082b4: 0a000073 beq a0008488 <rtems_termios_read+0x2f4> <== NOT EXECUTED
break;
now = rtems_clock_get_ticks_since_boot();
a00082b8: eb0002b0 bl a0008d80 <rtems_clock_get_ticks_since_boot> <== NOT EXECUTED
if ((now - then) > tty->vtimeTicks) {
a00082bc: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED a00082c0: e0660000 rsb r0, r6, r0 <== NOT EXECUTED a00082c4: e1500003 cmp r0, r3 <== NOT EXECUTED a00082c8: 8a00006e bhi a0008488 <rtems_termios_read+0x2f4> <== NOT EXECUTED
break;
}
}
rtems_task_wake_after (1);
a00082cc: e3a00001 mov r0, #1 <== NOT EXECUTED a00082d0: eb000563 bl a0009864 <rtems_task_wake_after> <== NOT EXECUTED a00082d4: eaffffe6 b a0008274 <rtems_termios_read+0xe0> <== NOT EXECUTED
} else {
siproc (n, tty);
a00082d8: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED a00082dc: e1a01004 mov r1, r4 <== NOT EXECUTED a00082e0: ebffff67 bl a0008084 <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
a00082e4: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED a00082e8: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a00082ec: e1520003 cmp r2, r3 <== NOT EXECUTED a00082f0: aa000064 bge a0008488 <rtems_termios_read+0x2f4> <== NOT EXECUTED
break;
if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])
a00082f4: e3530000 cmp r3, #0 <== NOT EXECUTED a00082f8: 0affffdd beq a0008274 <rtems_termios_read+0xe0> <== NOT EXECUTED a00082fc: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED a0008300: e3530000 cmp r3, #0 <== NOT EXECUTED a0008304: 0affffda beq a0008274 <rtems_termios_read+0xe0> <== NOT EXECUTED a0008308: eaffffd7 b a000826c <rtems_termios_read+0xd8> <== NOT EXECUTED
if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP))) {
/* XON should be sent now... */
(*tty->device.write)(
a000830c: e2842049 add r2, r4, #73 ; 0x49 <== NOT EXECUTED
* Fill the input buffer from the raw input queue
*/
static rtems_status_code
fillBufferQueue (struct rtems_termios_tty *tty)
{
rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;
a0008310: e594a074 ldr sl, [r4, #116] ; 0x74 <== NOT EXECUTED
rtems_status_code sc; int wait = (int)1;
a0008314: e3a06001 mov r6, #1 <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
(tty->ccount < (CBUFSIZE-1))) {
a0008318: e59f91a8 ldr r9, [pc, #424] ; a00084c8 <rtems_termios_read+0x334><== NOT EXECUTED
if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
|| (tty->flow_ctrl & FL_OSTOP))) {
/* XON should be sent now... */
(*tty->device.write)(
a000831c: e58d2000 str r2, [sp] <== NOT EXECUTED a0008320: ea000040 b a0008428 <rtems_termios_read+0x294> <== NOT EXECUTED
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
(tty->ccount < (CBUFSIZE-1))) {
unsigned char c;
unsigned int newHead;
newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;
a0008324: e594005c ldr r0, [r4, #92] ; 0x5c <== NOT EXECUTED a0008328: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED a000832c: e2800001 add r0, r0, #1 <== NOT EXECUTED a0008330: eb0031a8 bl a00149d8 <__umodsi3> <== NOT EXECUTED
c = tty->rawInBuf.theBuf[newHead];
a0008334: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED a0008338: e7d3a000 ldrb sl, [r3, r0] <== NOT EXECUTED
tty->rawInBuf.Head = newHead;
a000833c: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
a0008340: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED a0008344: e5942064 ldr r2, [r4, #100] ; 0x64 <== NOT EXECUTED
% tty->rawInBuf.Size)
a0008348: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED
unsigned int newHead;
newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;
c = tty->rawInBuf.theBuf[newHead];
tty->rawInBuf.Head = newHead;
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
a000834c: e0823003 add r3, r2, r3 <== NOT EXECUTED
% tty->rawInBuf.Size)
a0008350: e0600003 rsb r0, r0, r3 <== NOT EXECUTED a0008354: eb00319f bl a00149d8 <__umodsi3> <== NOT EXECUTED
unsigned int newHead;
newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;
c = tty->rawInBuf.theBuf[newHead];
tty->rawInBuf.Head = newHead;
if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)
a0008358: e59430bc ldr r3, [r4, #188] ; 0xbc <== NOT EXECUTED a000835c: e1500003 cmp r0, r3 <== NOT EXECUTED a0008360: 2a00001f bcs a00083e4 <rtems_termios_read+0x250> <== NOT EXECUTED
% tty->rawInBuf.Size)
< tty->lowwater) {
tty->flow_ctrl &= ~FL_IREQXOF;
a0008364: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0008368: e3c33001 bic r3, r3, #1 <== NOT EXECUTED a000836c: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
/* if tx stopped and XON should be sent... */
if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))
a0008370: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED a0008374: e59f3150 ldr r3, [pc, #336] ; a00084cc <rtems_termios_read+0x338><== NOT EXECUTED a0008378: e0023003 and r3, r2, r3 <== NOT EXECUTED a000837c: e59f2148 ldr r2, [pc, #328] ; a00084cc <rtems_termios_read+0x338><== NOT EXECUTED a0008380: e1530002 cmp r3, r2 <== NOT EXECUTED a0008384: 1a00000b bne a00083b8 <rtems_termios_read+0x224> <== NOT EXECUTED
== (FL_MDXON | FL_ISNTXOF))
&& ((tty->rawOutBufState == rob_idle)
a0008388: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED a000838c: e3530000 cmp r3, #0 <== NOT EXECUTED a0008390: 0a000002 beq a00083a0 <rtems_termios_read+0x20c> <== NOT EXECUTED
|| (tty->flow_ctrl & FL_OSTOP))) {
a0008394: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0008398: e3130020 tst r3, #32 <== NOT EXECUTED a000839c: 0a000005 beq a00083b8 <rtems_termios_read+0x224> <== NOT EXECUTED
/* XON should be sent now... */
(*tty->device.write)(
a00083a0: e59430a4 ldr r3, [r4, #164] ; 0xa4 <== NOT EXECUTED a00083a4: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a00083a8: e59d1000 ldr r1, [sp] <== NOT EXECUTED a00083ac: e3a02001 mov r2, #1 <== NOT EXECUTED a00083b0: e12fff33 blx r3 <== NOT EXECUTED a00083b4: ea00000a b a00083e4 <rtems_termios_read+0x250> <== NOT EXECUTED
tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
} else if (tty->flow_ctrl & FL_MDRTS) {
a00083b8: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00083bc: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a00083c0: 0a000007 beq a00083e4 <rtems_termios_read+0x250> <== NOT EXECUTED
tty->flow_ctrl &= ~FL_IRTSOFF;
a00083c4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00083c8: e3c33004 bic r3, r3, #4 <== NOT EXECUTED a00083cc: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
/* activate RTS line */
if (tty->device.startRemoteTx != NULL) {
a00083d0: e59430b0 ldr r3, [r4, #176] ; 0xb0 <== NOT EXECUTED a00083d4: e3530000 cmp r3, #0 <== NOT EXECUTED a00083d8: 0a000001 beq a00083e4 <rtems_termios_read+0x250> <== NOT EXECUTED
tty->device.startRemoteTx(tty->minor);
a00083dc: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a00083e0: e12fff33 blx r3 <== NOT EXECUTED
}
}
}
/* continue processing new character */
if (tty->termios.c_lflag & ICANON) {
a00083e4: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a00083e8: e3130002 tst r3, #2 <== NOT EXECUTED a00083ec: 0a000005 beq a0008408 <rtems_termios_read+0x274> <== NOT EXECUTED
if (siproc (c, tty))
a00083f0: e1a0000a mov r0, sl <== NOT EXECUTED a00083f4: e1a01004 mov r1, r4 <== NOT EXECUTED a00083f8: ebffff21 bl a0008084 <siproc> <== NOT EXECUTED
wait = 0;
a00083fc: e3500000 cmp r0, #0 <== NOT EXECUTED a0008400: 13a06000 movne r6, #0 <== NOT EXECUTED a0008404: ea000006 b a0008424 <rtems_termios_read+0x290> <== NOT EXECUTED
} else {
siproc (c, tty);
a0008408: e1a0000a mov r0, sl <== NOT EXECUTED a000840c: e1a01004 mov r1, r4 <== NOT EXECUTED a0008410: ebffff1b bl a0008084 <siproc> <== NOT EXECUTED
if (tty->ccount >= tty->termios.c_cc[VMIN])
a0008414: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED a0008418: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED
wait = 0;
a000841c: e1520003 cmp r2, r3 <== NOT EXECUTED a0008420: a3a06000 movge r6, #0 <== NOT EXECUTED
}
timeout = tty->rawInBufSemaphoreTimeout;
a0008424: e594a070 ldr sl, [r4, #112] ; 0x70 <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
a0008428: e594205c ldr r2, [r4, #92] ; 0x5c <== NOT EXECUTED a000842c: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED a0008430: e1520003 cmp r2, r3 <== NOT EXECUTED a0008434: 0a000004 beq a000844c <rtems_termios_read+0x2b8> <== NOT EXECUTED
(tty->ccount < (CBUFSIZE-1))) {
a0008438: e5993008 ldr r3, [r9, #8] <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
a000843c: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED
(tty->ccount < (CBUFSIZE-1))) {
a0008440: e2433001 sub r3, r3, #1 <== NOT EXECUTED
while ( wait ) {
/*
* Process characters read from raw queue
*/
while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&
a0008444: e1520003 cmp r2, r3 <== NOT EXECUTED a0008448: baffffb5 blt a0008324 <rtems_termios_read+0x190> <== NOT EXECUTED
}
/*
* Wait for characters
*/
if ( wait ) {
a000844c: e3560000 cmp r6, #0 <== NOT EXECUTED a0008450: 0a00000c beq a0008488 <rtems_termios_read+0x2f4> <== NOT EXECUTED
sc = rtems_semaphore_obtain(
a0008454: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED a0008458: e594106c ldr r1, [r4, #108] ; 0x6c <== NOT EXECUTED a000845c: e1a0200a mov r2, sl <== NOT EXECUTED a0008460: eb0003d2 bl a00093b0 <rtems_semaphore_obtain> <== NOT EXECUTED
tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
if (sc != RTEMS_SUCCESSFUL)
a0008464: e3500000 cmp r0, #0 <== NOT EXECUTED a0008468: 0affffee beq a0008428 <rtems_termios_read+0x294> <== NOT EXECUTED a000846c: ea000005 b a0008488 <rtems_termios_read+0x2f4> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
*buffer++ = tty->cbuf[tty->cindex++];
a0008470: e594201c ldr r2, [r4, #28] <== NOT EXECUTED
count--;
a0008474: e2488001 sub r8, r8, #1 <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
*buffer++ = tty->cbuf[tty->cindex++];
a0008478: e7d22003 ldrb r2, [r2, r3] <== NOT EXECUTED a000847c: e2833001 add r3, r3, #1 <== NOT EXECUTED a0008480: e4cb2001 strb r2, [fp], #1 <== NOT EXECUTED a0008484: e5843024 str r3, [r4, #36] ; 0x24 <== NOT EXECUTED
sc = fillBufferQueue (tty);
if (sc != RTEMS_SUCCESSFUL)
tty->cindex = tty->ccount = 0;
}
while (count && (tty->cindex < tty->ccount)) {
a0008488: e3580000 cmp r8, #0 <== NOT EXECUTED a000848c: 0a000003 beq a00084a0 <rtems_termios_read+0x30c> <== NOT EXECUTED a0008490: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a0008494: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a0008498: e1530002 cmp r3, r2 <== NOT EXECUTED a000849c: bafffff3 blt a0008470 <rtems_termios_read+0x2dc> <== NOT EXECUTED
*buffer++ = tty->cbuf[tty->cindex++];
count--;
}
args->bytes_moved = args->count - count;
a00084a0: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED a00084a4: e0688003 rsb r8, r8, r3 <== NOT EXECUTED a00084a8: e5858018 str r8, [r5, #24] <== NOT EXECUTED
tty->tty_rcvwakeup = 0;
a00084ac: e3a03000 mov r3, #0 <== NOT EXECUTED a00084b0: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED
rtems_semaphore_release (tty->isem);
a00084b4: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED a00084b8: eb000402 bl a00094c8 <rtems_semaphore_release> <== NOT EXECUTED
return sc; }
a00084bc: e1a00007 mov r0, r7 <== NOT EXECUTED
a00084c0: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a00087dc <rtems_termios_refill_transmitter>:
int nToSend;
rtems_interrupt_level level;
int len;
/* check for XOF/XON to send */
if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))
a00087dc: e59020b8 ldr r2, [r0, #184] ; 0xb8 <== NOT EXECUTED a00087e0: e59f31b8 ldr r3, [pc, #440] ; a00089a0 <rtems_termios_refill_transmitter+0x1c4><== NOT EXECUTED
* in task-driven mode, this function is called in Tx task context
* in interrupt-driven mode, this function is called in TxIRQ context
*/
int
rtems_termios_refill_transmitter (struct rtems_termios_tty *tty)
{
a00087e4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
int nToSend;
rtems_interrupt_level level;
int len;
/* check for XOF/XON to send */
if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))
a00087e8: e0023003 and r3, r2, r3 <== NOT EXECUTED a00087ec: e59f21b0 ldr r2, [pc, #432] ; a00089a4 <rtems_termios_refill_transmitter+0x1c8><== NOT EXECUTED
* in task-driven mode, this function is called in Tx task context
* in interrupt-driven mode, this function is called in TxIRQ context
*/
int
rtems_termios_refill_transmitter (struct rtems_termios_tty *tty)
{
a00087f0: e1a04000 mov r4, r0 <== NOT EXECUTED
int nToSend;
rtems_interrupt_level level;
int len;
/* check for XOF/XON to send */
if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))
a00087f4: e1530002 cmp r3, r2 <== NOT EXECUTED a00087f8: 1a00000c bne a0008830 <rtems_termios_refill_transmitter+0x54><== NOT EXECUTED
== (FL_MDXOF | FL_IREQXOF)) {
/* XOFF should be sent now... */
(*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
a00087fc: e59030a4 ldr r3, [r0, #164] ; 0xa4 <== NOT EXECUTED a0008800: e284104a add r1, r4, #74 ; 0x4a <== NOT EXECUTED a0008804: e2422b01 sub r2, r2, #1024 ; 0x400 <== NOT EXECUTED a0008808: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED a000880c: e12fff33 blx r3 <== NOT EXECUTED
rtems_interrupt_disable(level);
a0008810: ebfffa08 bl a0007038 <arm_interrupt_disable> <== NOT EXECUTED
tty->t_dqlen--;
a0008814: e5943090 ldr r3, [r4, #144] ; 0x90 <== NOT EXECUTED a0008818: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000881c: e5843090 str r3, [r4, #144] ; 0x90 <== NOT EXECUTED
tty->flow_ctrl |= FL_ISNTXOF;
a0008820: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0008824: e3833002 orr r3, r3, #2 <== NOT EXECUTED a0008828: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
rtems_interrupt_enable(level);
a000882c: ea00000f b a0008870 <rtems_termios_refill_transmitter+0x94><== NOT EXECUTED
nToSend = 1;
} else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) == FL_ISNTXOF) {
a0008830: e59030b8 ldr r3, [r0, #184] ; 0xb8 <== NOT EXECUTED a0008834: e2033003 and r3, r3, #3 <== NOT EXECUTED a0008838: e3530002 cmp r3, #2 <== NOT EXECUTED a000883c: 1a00000e bne a000887c <rtems_termios_refill_transmitter+0xa0><== NOT EXECUTED
* FIXME: this .write call will generate another
* dequeue callback. This will advance the "Tail" in the data
* buffer, although the corresponding data is not yet out!
* Therefore the dequeue "length" should be reduced by 1
*/
(*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
a0008840: e59030a4 ldr r3, [r0, #164] ; 0xa4 <== NOT EXECUTED a0008844: e2841049 add r1, r4, #73 ; 0x49 <== NOT EXECUTED a0008848: e3a02001 mov r2, #1 <== NOT EXECUTED a000884c: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED a0008850: e12fff33 blx r3 <== NOT EXECUTED
rtems_interrupt_disable(level);
a0008854: ebfff9f7 bl a0007038 <arm_interrupt_disable> <== NOT EXECUTED
tty->t_dqlen--;
a0008858: e5943090 ldr r3, [r4, #144] ; 0x90 <== NOT EXECUTED a000885c: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0008860: e5843090 str r3, [r4, #144] ; 0x90 <== NOT EXECUTED
tty->flow_ctrl &= ~FL_ISNTXOF;
a0008864: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0008868: e3c33002 bic r3, r3, #2 <== NOT EXECUTED a000886c: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0008870: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
rtems_interrupt_enable(level);
nToSend = 1;
a0008874: e3a05001 mov r5, #1 <== NOT EXECUTED a0008878: ea000046 b a0008998 <rtems_termios_refill_transmitter+0x1bc><== NOT EXECUTED
} else {
if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {
a000887c: e5902080 ldr r2, [r0, #128] ; 0x80 <== NOT EXECUTED a0008880: e5903084 ldr r3, [r0, #132] ; 0x84 <== NOT EXECUTED a0008884: e1520003 cmp r2, r3 <== NOT EXECUTED a0008888: 1a000005 bne a00088a4 <rtems_termios_refill_transmitter+0xc8><== NOT EXECUTED
/*
* buffer was empty
*/
if (tty->rawOutBufState == rob_wait) {
a000888c: e5903094 ldr r3, [r0, #148] ; 0x94 <== NOT EXECUTED a0008890: e3530002 cmp r3, #2 <== NOT EXECUTED a0008894: 1a00003e bne a0008994 <rtems_termios_refill_transmitter+0x1b8><== NOT EXECUTED
/*
* this should never happen...
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
a0008898: e590008c ldr r0, [r0, #140] ; 0x8c <== NOT EXECUTED a000889c: eb000309 bl a00094c8 <rtems_semaphore_release> <== NOT EXECUTED a00088a0: ea00003b b a0008994 <rtems_termios_refill_transmitter+0x1b8><== NOT EXECUTED
}
return 0;
}
rtems_interrupt_disable(level);
a00088a4: ebfff9e3 bl a0007038 <arm_interrupt_disable> <== NOT EXECUTED
len = tty->t_dqlen;
tty->t_dqlen = 0;
a00088a8: e3a03000 mov r3, #0 <== NOT EXECUTED
}
return 0;
}
rtems_interrupt_disable(level);
len = tty->t_dqlen;
a00088ac: e5942090 ldr r2, [r4, #144] ; 0x90 <== NOT EXECUTED
tty->t_dqlen = 0;
a00088b0: e5843090 str r3, [r4, #144] ; 0x90 <== NOT EXECUTED a00088b4: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
rtems_interrupt_enable(level);
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
a00088b8: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED a00088bc: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED a00088c0: e0820003 add r0, r2, r3 <== NOT EXECUTED a00088c4: eb003043 bl a00149d8 <__umodsi3> <== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
if (tty->rawOutBufState == rob_wait) {
a00088c8: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED
rtems_interrupt_disable(level);
len = tty->t_dqlen;
tty->t_dqlen = 0;
rtems_interrupt_enable(level);
newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;
a00088cc: e1a06000 mov r6, r0 <== NOT EXECUTED
tty->rawOutBuf.Tail = newTail;
a00088d0: e5840084 str r0, [r4, #132] ; 0x84 <== NOT EXECUTED
if (tty->rawOutBufState == rob_wait) {
a00088d4: e3530002 cmp r3, #2 <== NOT EXECUTED a00088d8: 1a000001 bne a00088e4 <rtems_termios_refill_transmitter+0x108><== NOT EXECUTED
/*
* wake up any pending writer task
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
a00088dc: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED a00088e0: eb0002f8 bl a00094c8 <rtems_semaphore_release> <== NOT EXECUTED
}
if (newTail == tty->rawOutBuf.Head) {
a00088e4: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED a00088e8: e1560003 cmp r6, r3 <== NOT EXECUTED a00088ec: 1a000009 bne a0008918 <rtems_termios_refill_transmitter+0x13c><== NOT EXECUTED
nToSend = 0;
/*
* check to see if snd wakeup callback was set
*/
if ( tty->tty_snd.sw_pfn != NULL) {
a00088f0: e59430d4 ldr r3, [r4, #212] ; 0xd4 <== NOT EXECUTED
if (newTail == tty->rawOutBuf.Head) {
/*
* Buffer has become empty
*/
tty->rawOutBufState = rob_idle;
a00088f4: e3a05000 mov r5, #0 <== NOT EXECUTED a00088f8: e5845094 str r5, [r4, #148] ; 0x94 <== NOT EXECUTED
nToSend = 0;
/*
* check to see if snd wakeup callback was set
*/
if ( tty->tty_snd.sw_pfn != NULL) {
a00088fc: e1530005 cmp r3, r5 <== NOT EXECUTED
if (newTail == tty->rawOutBuf.Head) {
/*
* Buffer has become empty
*/
tty->rawOutBufState = rob_idle;
nToSend = 0;
a0008900: 01a05003 moveq r5, r3 <== NOT EXECUTED
/*
* check to see if snd wakeup callback was set
*/
if ( tty->tty_snd.sw_pfn != NULL) {
a0008904: 0a000020 beq a000898c <rtems_termios_refill_transmitter+0x1b0><== NOT EXECUTED
(*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);
a0008908: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED a000890c: e59410d8 ldr r1, [r4, #216] ; 0xd8 <== NOT EXECUTED a0008910: e12fff33 blx r3 <== NOT EXECUTED a0008914: ea00001c b a000898c <rtems_termios_refill_transmitter+0x1b0><== NOT EXECUTED
}
}
/* check, whether output should stop due to received XOFF */
else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))
a0008918: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a000891c: e2033e21 and r3, r3, #528 ; 0x210 <== NOT EXECUTED a0008920: e3530e21 cmp r3, #528 ; 0x210 <== NOT EXECUTED a0008924: 1a000008 bne a000894c <rtems_termios_refill_transmitter+0x170><== NOT EXECUTED
== (FL_MDXON | FL_ORCVXOF)) {
/* Buffer not empty, but output stops due to XOFF */
/* set flag, that output has been stopped */
rtems_interrupt_disable(level);
a0008928: ebfff9c2 bl a0007038 <arm_interrupt_disable> <== NOT EXECUTED
tty->flow_ctrl |= FL_OSTOP;
a000892c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0008930: e3833020 orr r3, r3, #32 <== NOT EXECUTED a0008934: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
tty->rawOutBufState = rob_busy; /*apm*/
a0008938: e3a03001 mov r3, #1 <== NOT EXECUTED a000893c: e5843094 str r3, [r4, #148] ; 0x94 <== NOT EXECUTED a0008940: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED
rtems_interrupt_enable(level);
nToSend = 0;
a0008944: e3a05000 mov r5, #0 <== NOT EXECUTED a0008948: ea00000f b a000898c <rtems_termios_refill_transmitter+0x1b0><== NOT EXECUTED
} else {
/*
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
a000894c: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED
/* for outgoing flow control */
if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {
nToSend = 1;
}
tty->rawOutBufState = rob_busy; /*apm*/
(*tty->device.write)(
a0008950: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED a0008954: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED
nToSend = 0;
} else {
/*
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
a0008958: e1560003 cmp r6, r3 <== NOT EXECUTED
nToSend = tty->rawOutBuf.Size - newTail;
a000895c: 85945088 ldrhi r5, [r4, #136] ; 0x88 <== NOT EXECUTED
else
nToSend = tty->rawOutBuf.Head - newTail;
a0008960: 95945080 ldrls r5, [r4, #128] ; 0x80 <== NOT EXECUTED
/* when flow control XON or XOF, don't send blocks of data */
/* to allow fast reaction on incoming flow ctrl and low latency*/
/* for outgoing flow control */
if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {
a0008964: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED
nToSend = 1;
}
tty->rawOutBufState = rob_busy; /*apm*/
(*tty->device.write)(
a0008968: e0811006 add r1, r1, r6 <== NOT EXECUTED
* Buffer not empty, start tranmitter
*/
if (newTail > tty->rawOutBuf.Head)
nToSend = tty->rawOutBuf.Size - newTail;
else
nToSend = tty->rawOutBuf.Head - newTail;
a000896c: e0665005 rsb r5, r6, r5 <== NOT EXECUTED
/* when flow control XON or XOF, don't send blocks of data */
/* to allow fast reaction on incoming flow ctrl and low latency*/
/* for outgoing flow control */
if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) {
a0008970: e3130c06 tst r3, #1536 ; 0x600 <== NOT EXECUTED
nToSend = 1;
a0008974: 13a05001 movne r5, #1 <== NOT EXECUTED
}
tty->rawOutBufState = rob_busy; /*apm*/
a0008978: e3a03001 mov r3, #1 <== NOT EXECUTED a000897c: e5843094 str r3, [r4, #148] ; 0x94 <== NOT EXECUTED
(*tty->device.write)(
a0008980: e1a02005 mov r2, r5 <== NOT EXECUTED a0008984: e59430a4 ldr r3, [r4, #164] ; 0xa4 <== NOT EXECUTED a0008988: e12fff33 blx r3 <== NOT EXECUTED
tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
a000898c: e5846084 str r6, [r4, #132] ; 0x84 <== NOT EXECUTED a0008990: ea000000 b a0008998 <rtems_termios_refill_transmitter+0x1bc><== NOT EXECUTED
/*
* this should never happen...
*/
rtems_semaphore_release (tty->rawOutBuf.Semaphore);
}
return 0;
a0008994: e3a05000 mov r5, #0 <== NOT EXECUTED
tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);
}
tty->rawOutBuf.Tail = newTail; /*apm*/
}
return nToSend;
}
a0008998: e1a00005 mov r0, r5 <== NOT EXECUTED
a000899c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0008774 <rtems_termios_rxdaemon>:
/*
* this task actually processes any receive events
*/
static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument)
{
a0008774: e92d40f3 push {r0, r1, r4, r5, r6, r7, lr} <== NOT EXECUTED
a0008778: e1a04000 mov r4, r0 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive(
a000877c: e3a05000 mov r5, #0 <== NOT EXECUTED
if (c != EOF) {
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);
a0008780: e28d6007 add r6, sp, #7 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive(
a0008784: e1a0300d mov r3, sp <== NOT EXECUTED a0008788: e3a00003 mov r0, #3 <== NOT EXECUTED a000878c: e3a01002 mov r1, #2 <== NOT EXECUTED a0008790: e3a02000 mov r2, #0 <== NOT EXECUTED a0008794: eb000197 bl a0008df8 <rtems_event_receive> <== NOT EXECUTED
(TERMIOS_RX_PROC_EVENT | TERMIOS_RX_TERMINATE_EVENT),
RTEMS_EVENT_ANY | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&the_event
);
if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) {
a0008798: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000879c: e3130001 tst r3, #1 <== NOT EXECUTED a00087a0: 0a000002 beq a00087b0 <rtems_termios_rxdaemon+0x3c> <== NOT EXECUTED
tty->rxTaskId = 0;
a00087a4: e58450c4 str r5, [r4, #196] ; 0xc4 <== NOT EXECUTED
rtems_task_delete(RTEMS_SELF);
a00087a8: e1a00005 mov r0, r5 <== NOT EXECUTED a00087ac: eb0003be bl a00096ac <rtems_task_delete> <== NOT EXECUTED
}
/*
* do something
*/
c = tty->device.pollRead(tty->minor);
a00087b0: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED a00087b4: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a00087b8: e12fff33 blx r3 <== NOT EXECUTED
if (c != EOF) {
a00087bc: e3700001 cmn r0, #1 <== NOT EXECUTED a00087c0: 0affffef beq a0008784 <rtems_termios_rxdaemon+0x10> <== NOT EXECUTED
/*
* pollRead did call enqueue on its own
*/
c_buf = c;
a00087c4: e5cd0007 strb r0, [sp, #7] <== NOT EXECUTED
rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);
a00087c8: e1a01006 mov r1, r6 <== NOT EXECUTED a00087cc: e1a00004 mov r0, r4 <== NOT EXECUTED a00087d0: e3a02001 mov r2, #1 <== NOT EXECUTED a00087d4: ebffff40 bl a00084dc <rtems_termios_enqueue_raw_characters><== NOT EXECUTED a00087d8: eaffffe9 b a0008784 <rtems_termios_rxdaemon+0x10> <== NOT EXECUTED
a00084d0 <rtems_termios_rxirq_occured>:
void rtems_termios_rxirq_occured(struct rtems_termios_tty *tty)
{
/*
* send event to rx daemon task
*/
rtems_event_send(tty->rxTaskId,TERMIOS_RX_PROC_EVENT);
a00084d0: e59000c4 ldr r0, [r0, #196] ; 0xc4 <== NOT EXECUTED a00084d4: e3a01002 mov r1, #2 <== NOT EXECUTED a00084d8: ea0002a2 b a0008f68 <rtems_event_send> <== NOT EXECUTED
a000a930 <rtems_termios_set_initial_baud>:
int rtems_termios_set_initial_baud(
struct rtems_termios_tty *ttyp,
int32_t baud
)
{
a000a930: e92d4010 push {r4, lr} <== NOT EXECUTED
a000a934: e1a04000 mov r4, r0 <== NOT EXECUTED
int cflags_baud;
cflags_baud = rtems_termios_number_to_baud(baud);
a000a938: e1a00001 mov r0, r1 <== NOT EXECUTED a000a93c: ebfff95d bl a0008eb8 <rtems_termios_number_to_baud> <== NOT EXECUTED
if ( cflags_baud == -1 )
a000a940: e3700001 cmn r0, #1 <== NOT EXECUTED a000a944: 0a000005 beq a000a960 <rtems_termios_set_initial_baud+0x30><== NOT EXECUTED
return -1;
ttyp->termios.c_cflag = (ttyp->termios.c_cflag & ~CBAUD) | cflags_baud;
a000a948: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a000a94c: e3c33a01 bic r3, r3, #4096 ; 0x1000 <== NOT EXECUTED a000a950: e3c3300f bic r3, r3, #15 <== NOT EXECUTED a000a954: e1800003 orr r0, r0, r3 <== NOT EXECUTED a000a958: e5840038 str r0, [r4, #56] ; 0x38 <== NOT EXECUTED
return 0;
a000a95c: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a000a960: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a00089a8 <rtems_termios_txdaemon>:
/*
* this task actually processes any transmit events
*/
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{
a00089a8: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED
}
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
a00089ac: e59f6058 ldr r6, [pc, #88] ; a0008a0c <rtems_termios_txdaemon+0x64><== NOT EXECUTED
/*
* this task actually processes any transmit events
*/
static rtems_task rtems_termios_txdaemon(rtems_task_argument argument)
{
a00089b0: e1a04000 mov r4, r0 <== NOT EXECUTED
while (1) {
/*
* wait for rtems event
*/
rtems_event_receive(
a00089b4: e3a05000 mov r5, #0 <== NOT EXECUTED a00089b8: e1a0300d mov r3, sp <== NOT EXECUTED a00089bc: e3a00003 mov r0, #3 <== NOT EXECUTED a00089c0: e3a01002 mov r1, #2 <== NOT EXECUTED a00089c4: e3a02000 mov r2, #0 <== NOT EXECUTED a00089c8: eb00010a bl a0008df8 <rtems_event_receive> <== NOT EXECUTED
(TERMIOS_TX_START_EVENT | TERMIOS_TX_TERMINATE_EVENT),
RTEMS_EVENT_ANY | RTEMS_WAIT,
RTEMS_NO_TIMEOUT,
&the_event
);
if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) {
a00089cc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00089d0: e3130001 tst r3, #1 <== NOT EXECUTED a00089d4: 0a000002 beq a00089e4 <rtems_termios_txdaemon+0x3c> <== NOT EXECUTED
tty->txTaskId = 0;
a00089d8: e58450c8 str r5, [r4, #200] ; 0xc8 <== NOT EXECUTED
rtems_task_delete(RTEMS_SELF);
a00089dc: e1a00005 mov r0, r5 <== NOT EXECUTED a00089e0: eb000331 bl a00096ac <rtems_task_delete> <== NOT EXECUTED
}
/*
* call any line discipline start function
*/
if (rtems_termios_linesw[tty->t_line].l_start != NULL) {
a00089e4: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED a00089e8: e0863283 add r3, r6, r3, lsl #5 <== NOT EXECUTED a00089ec: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED a00089f0: e3530000 cmp r3, #0 <== NOT EXECUTED a00089f4: 0a000001 beq a0008a00 <rtems_termios_txdaemon+0x58> <== NOT EXECUTED
rtems_termios_linesw[tty->t_line].l_start(tty);
a00089f8: e1a00004 mov r0, r4 <== NOT EXECUTED a00089fc: e12fff33 blx r3 <== NOT EXECUTED
}
/*
* try to push further characters to device
*/
rtems_termios_refill_transmitter(tty);
a0008a00: e1a00004 mov r0, r4 <== NOT EXECUTED a0008a04: ebffff74 bl a00087dc <rtems_termios_refill_transmitter> <== NOT EXECUTED
}
a0008a08: eaffffea b a00089b8 <rtems_termios_txdaemon+0x10> <== NOT EXECUTED
a00080e0 <rtems_termios_write>:
rtems_status_code
rtems_termios_write (void *arg)
{
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
a00080e0: e5903000 ldr r3, [r0] <== NOT EXECUTED
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
a00080e4: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1;
a00080e8: e5935034 ldr r5, [r3, #52] ; 0x34 <== NOT EXECUTED
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a00080ec: e3a01000 mov r1, #0 <== NOT EXECUTED
rtems_termios_puts (&c, 1, tty);
}
rtems_status_code
rtems_termios_write (void *arg)
{
a00080f0: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_libio_rw_args_t *args = arg;
struct rtems_termios_tty *tty = args->iop->data1;
rtems_status_code sc;
sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a00080f4: e1a02001 mov r2, r1 <== NOT EXECUTED a00080f8: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED a00080fc: eb0004ab bl a00093b0 <rtems_semaphore_obtain> <== NOT EXECUTED
if (sc != RTEMS_SUCCESSFUL)
a0008100: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0008104: 1a00001f bne a0008188 <rtems_termios_write+0xa8> <== NOT EXECUTED
return sc;
if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
a0008108: e59520cc ldr r2, [r5, #204] ; 0xcc <== NOT EXECUTED a000810c: e59f307c ldr r3, [pc, #124] ; a0008190 <rtems_termios_write+0xb0><== NOT EXECUTED a0008110: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED a0008114: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a0008118: e3530000 cmp r3, #0 <== NOT EXECUTED a000811c: 0a000004 beq a0008134 <rtems_termios_write+0x54> <== NOT EXECUTED
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
a0008120: e1a00005 mov r0, r5 <== NOT EXECUTED a0008124: e1a01004 mov r1, r4 <== NOT EXECUTED a0008128: e12fff33 blx r3 <== NOT EXECUTED a000812c: e1a06000 mov r6, r0 <== NOT EXECUTED a0008130: ea000012 b a0008180 <rtems_termios_write+0xa0> <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
return sc;
}
if (tty->termios.c_oflag & OPOST) {
a0008134: e5953034 ldr r3, [r5, #52] ; 0x34 <== NOT EXECUTED a0008138: e3130001 tst r3, #1 <== NOT EXECUTED
uint32_t count = args->count;
a000813c: 15947010 ldrne r7, [r4, #16] <== NOT EXECUTED
char *buffer = args->buffer;
a0008140: 1594800c ldrne r8, [r4, #12] <== NOT EXECUTED
if (rtems_termios_linesw[tty->t_line].l_write != NULL) {
sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);
rtems_semaphore_release (tty->osem);
return sc;
}
if (tty->termios.c_oflag & OPOST) {
a0008144: 1a000004 bne a000815c <rtems_termios_write+0x7c> <== NOT EXECUTED a0008148: ea000006 b a0008168 <rtems_termios_write+0x88> <== NOT EXECUTED
uint32_t count = args->count;
char *buffer = args->buffer;
while (count--)
oproc (*buffer++, tty);
a000814c: e4d80001 ldrb r0, [r8], #1 <== NOT EXECUTED a0008150: e1a01005 mov r1, r5 <== NOT EXECUTED a0008154: ebfffe79 bl a0007b40 <oproc> <== NOT EXECUTED a0008158: e2477001 sub r7, r7, #1 <== NOT EXECUTED
return sc;
}
if (tty->termios.c_oflag & OPOST) {
uint32_t count = args->count;
char *buffer = args->buffer;
while (count--)
a000815c: e3570000 cmp r7, #0 <== NOT EXECUTED a0008160: 1afffff9 bne a000814c <rtems_termios_write+0x6c> <== NOT EXECUTED a0008164: ea000003 b a0008178 <rtems_termios_write+0x98> <== NOT EXECUTED
oproc (*buffer++, tty);
args->bytes_moved = args->count;
} else {
rtems_termios_puts (args->buffer, args->count, tty);
a0008168: e594000c ldr r0, [r4, #12] <== NOT EXECUTED a000816c: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a0008170: e1a02005 mov r2, r5 <== NOT EXECUTED a0008174: ebfffe30 bl a0007a3c <rtems_termios_puts> <== NOT EXECUTED
args->bytes_moved = args->count;
a0008178: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000817c: e5843018 str r3, [r4, #24] <== NOT EXECUTED
} rtems_semaphore_release (tty->osem);
a0008180: e5950018 ldr r0, [r5, #24] <== NOT EXECUTED a0008184: eb0004cf bl a00094c8 <rtems_semaphore_release> <== NOT EXECUTED
return sc; }
a0008188: e1a00006 mov r0, r6 <== NOT EXECUTED
a000818c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0017f68 <rtems_timer_cancel>:
*/
rtems_status_code rtems_timer_cancel(
rtems_id id
)
{
a0017f68: e92d4001 push {r0, lr} <== NOT EXECUTED
a0017f6c: e1a01000 mov r1, r0 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
_Objects_Get( &_Timer_Information, id, location );
a0017f70: e1a0200d mov r2, sp <== NOT EXECUTED a0017f74: e59f0030 ldr r0, [pc, #48] ; a0017fac <rtems_timer_cancel+0x44><== NOT EXECUTED a0017f78: eb000b8f bl a001adbc <_Objects_Get> <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a0017f7c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0017f80: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0017f84: 13a00004 movne r0, #4 <== NOT EXECUTED
{
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a0017f88: 1a000006 bne a0017fa8 <rtems_timer_cancel+0x40> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( !_Timer_Is_dormant_class( the_timer->the_class ) )
a0017f8c: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a0017f90: e3530004 cmp r3, #4 <== NOT EXECUTED a0017f94: 0a000001 beq a0017fa0 <rtems_timer_cancel+0x38> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_timer->Ticker );
a0017f98: e2800010 add r0, r0, #16 <== NOT EXECUTED a0017f9c: eb001312 bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0017fa0: eb000eb0 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0017fa4: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0017fa8: e8bd8008 pop {r3, pc} <== NOT EXECUTED
a0009d48 <rtems_timer_create>:
rtems_status_code rtems_timer_create(
rtems_name name,
rtems_id *id
)
{
a0009d48: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
a0009d4c: e2506000 subs r6, r0, #0 <== NOT EXECUTED
rtems_status_code rtems_timer_create(
rtems_name name,
rtems_id *id
)
{
a0009d50: e1a04001 mov r4, r1 <== NOT EXECUTED
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
a0009d54: 0a00001d beq a0009dd0 <rtems_timer_create+0x88> <== NOT EXECUTED
return RTEMS_INVALID_NAME;
if ( !id )
a0009d58: e3510000 cmp r1, #0 <== NOT EXECUTED a0009d5c: 0a00001d beq a0009dd8 <rtems_timer_create+0x90> <== NOT EXECUTED a0009d60: e59f3078 ldr r3, [pc, #120] ; a0009de0 <rtems_timer_create+0x98><== NOT EXECUTED a0009d64: e5932000 ldr r2, [r3] <== NOT EXECUTED a0009d68: e2822001 add r2, r2, #1 <== NOT EXECUTED a0009d6c: e5832000 str r2, [r3] <== NOT EXECUTED
* 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 );
a0009d70: e59f506c ldr r5, [pc, #108] ; a0009de4 <rtems_timer_create+0x9c><== NOT EXECUTED a0009d74: e1a00005 mov r0, r5 <== NOT EXECUTED a0009d78: eb0003b7 bl a000ac5c <_Objects_Allocate> <== NOT EXECUTED
_Thread_Disable_dispatch(); /* to prevent deletion */
the_timer = _Timer_Allocate();
if ( !the_timer ) {
a0009d7c: e3500000 cmp r0, #0 <== NOT EXECUTED a0009d80: 1a000002 bne a0009d90 <rtems_timer_create+0x48> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009d84: eb0007da bl a000bcf4 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_TOO_MANY;
a0009d88: e3a00005 mov r0, #5 <== NOT EXECUTED
a0009d8c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
}
the_timer->the_class = TIMER_DORMANT;
a0009d90: e3a03004 mov r3, #4 <== NOT EXECUTED a0009d94: e5803038 str r3, [r0, #56] ; 0x38 <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
Objects_Name name
)
{
_Objects_Set_local_object(
a0009d98: e1d010b8 ldrh r1, [r0, #8] <== NOT EXECUTED a0009d9c: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a0009da0: e595201c ldr r2, [r5, #28] <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a0009da4: e3a07000 mov r7, #0 <== NOT EXECUTED a0009da8: e5807018 str r7, [r0, #24] <== NOT EXECUTED
the_watchdog->routine = routine;
a0009dac: e580702c str r7, [r0, #44] ; 0x2c <== NOT EXECUTED
the_watchdog->id = id;
a0009db0: e5807030 str r7, [r0, #48] ; 0x30 <== NOT EXECUTED
the_watchdog->user_data = user_data;
a0009db4: e5807034 str r7, [r0, #52] ; 0x34 <== NOT EXECUTED a0009db8: e7820101 str r0, [r2, r1, lsl #2] <== NOT EXECUTED
information,
_Objects_Get_index( the_object->id ),
the_object
);
the_object->name = name;
a0009dbc: e580600c str r6, [r0, #12] <== NOT EXECUTED
&_Timer_Information,
&the_timer->Object,
(Objects_Name) name
);
*id = the_timer->Object.id;
a0009dc0: e5843000 str r3, [r4] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009dc4: eb0007ca bl a000bcf4 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0009dc8: e1a00007 mov r0, r7 <== NOT EXECUTED
a0009dcc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
)
{
Timer_Control *the_timer;
if ( !rtems_is_name_valid( name ) )
return RTEMS_INVALID_NAME;
a0009dd0: e3a00003 mov r0, #3 <== NOT EXECUTED
a0009dd4: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
if ( !id )
return RTEMS_INVALID_ADDRESS;
a0009dd8: e3a00009 mov r0, #9 <== NOT EXECUTED
);
*id = the_timer->Object.id;
_Thread_Enable_dispatch();
return RTEMS_SUCCESSFUL;
}
a0009ddc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0018050 <rtems_timer_delete>:
*/
rtems_status_code rtems_timer_delete(
rtems_id id
)
{
a0018050: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a0018054: e1a01000 mov r1, r0 <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
_Objects_Get( &_Timer_Information, id, location );
a0018058: e1a0200d mov r2, sp <== NOT EXECUTED a001805c: e59f0040 ldr r0, [pc, #64] ; a00180a4 <rtems_timer_delete+0x54><== NOT EXECUTED a0018060: eb000b55 bl a001adbc <_Objects_Get> <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a0018064: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0018068: e1a04000 mov r4, r0 <== NOT EXECUTED a001806c: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0018070: 13a00004 movne r0, #4 <== NOT EXECUTED
{
Timer_Control *the_timer;
Objects_Locations location;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a0018074: 1a000009 bne a00180a0 <rtems_timer_delete+0x50> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_Timer_Information, &the_timer->Object );
a0018078: e1a01004 mov r1, r4 <== NOT EXECUTED a001807c: e59f0020 ldr r0, [pc, #32] ; a00180a4 <rtems_timer_delete+0x54><== NOT EXECUTED a0018080: eb000a40 bl a001a988 <_Objects_Close> <== NOT EXECUTED
(void) _Watchdog_Remove( &the_timer->Ticker );
a0018084: e2840010 add r0, r4, #16 <== NOT EXECUTED a0018088: eb0012d7 bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void _Timer_Free (
Timer_Control *the_timer
)
{
_Objects_Free( &_Timer_Information, &the_timer->Object );
a001808c: e59f0010 ldr r0, [pc, #16] ; a00180a4 <rtems_timer_delete+0x54><== NOT EXECUTED a0018090: e1a01004 mov r1, r4 <== NOT EXECUTED a0018094: eb000ae0 bl a001ac1c <_Objects_Free> <== NOT EXECUTED
_Timer_Free( the_timer );
_Thread_Enable_dispatch();
a0018098: eb000e72 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a001809c: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a00180a0: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a0009de8 <rtems_timer_fire_after>:
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
a0009de8: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
a0009dec: e2516000 subs r6, r1, #0 <== NOT EXECUTED
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
a0009df0: e1a04000 mov r4, r0 <== NOT EXECUTED a0009df4: e1a05002 mov r5, r2 <== NOT EXECUTED a0009df8: e1a07003 mov r7, r3 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
a0009dfc: 03a0000a moveq r0, #10 <== NOT EXECUTED
{
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
if ( ticks == 0 )
a0009e00: 0a000022 beq a0009e90 <rtems_timer_fire_after+0xa8> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
if ( !routine )
a0009e04: e3520000 cmp r2, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a0009e08: 03a00009 moveq r0, #9 <== NOT EXECUTED
ISR_Level level;
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
if ( !routine )
a0009e0c: 0a00001f beq a0009e90 <rtems_timer_fire_after+0xa8> <== NOT EXECUTED
Objects_Id id,
Objects_Locations *location
)
{
return (Timer_Control *)
_Objects_Get( &_Timer_Information, id, location );
a0009e10: e59f007c ldr r0, [pc, #124] ; a0009e94 <rtems_timer_fire_after+0xac><== NOT EXECUTED a0009e14: e1a01004 mov r1, r4 <== NOT EXECUTED a0009e18: e1a0200d mov r2, sp <== NOT EXECUTED a0009e1c: eb0004ad bl a000b0d8 <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a0009e20: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0009e24: e1a08000 mov r8, r0 <== NOT EXECUTED a0009e28: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a0009e2c: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !routine )
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a0009e30: 1a000016 bne a0009e90 <rtems_timer_fire_after+0xa8> <== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
a0009e34: e288a010 add sl, r8, #16 <== NOT EXECUTED a0009e38: e1a0000a mov r0, sl <== NOT EXECUTED a0009e3c: eb000b6f bl a000cc00 <_Watchdog_Remove> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0009e40: e10f2000 mrs r2, CPSR <== NOT EXECUTED a0009e44: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a0009e48: e129f003 msr CPSR_fc, r3 <== 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 ) {
a0009e4c: e5983018 ldr r3, [r8, #24] <== NOT EXECUTED a0009e50: e3530000 cmp r3, #0 <== NOT EXECUTED a0009e54: 0a000001 beq a0009e60 <rtems_timer_fire_after+0x78> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0009e58: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED a0009e5c: ea000009 b a0009e88 <rtems_timer_fire_after+0xa0> <== 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;
a0009e60: e5883038 str r3, [r8, #56] ; 0x38 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a0009e64: e5883018 str r3, [r8, #24] <== NOT EXECUTED
the_watchdog->routine = routine;
a0009e68: e588502c str r5, [r8, #44] ; 0x2c <== NOT EXECUTED
the_watchdog->id = id;
a0009e6c: e5884030 str r4, [r8, #48] ; 0x30 <== NOT EXECUTED
the_watchdog->user_data = user_data;
a0009e70: e5887034 str r7, [r8, #52] ; 0x34 <== NOT EXECUTED a0009e74: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a0009e78: e59f0018 ldr r0, [pc, #24] ; a0009e98 <rtems_timer_fire_after+0xb0><== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a0009e7c: e588601c str r6, [r8, #28] <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a0009e80: e1a0100a mov r1, sl <== NOT EXECUTED a0009e84: eb000b05 bl a000caa0 <_Watchdog_Insert> <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
_ISR_Enable( level );
_Watchdog_Insert_ticks( &the_timer->Ticker, ticks );
_Thread_Enable_dispatch();
a0009e88: eb000799 bl a000bcf4 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0009e8c: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0009e90: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a001815c <rtems_timer_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
a001815c: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
a0018160: e1a08003 mov r8, r3 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD_Is_set )
a0018164: e59f30c4 ldr r3, [pc, #196] ; a0018230 <rtems_timer_fire_when+0xd4><== NOT EXECUTED
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
a0018168: e1a04000 mov r4, r0 <== NOT EXECUTED a001816c: e1a06001 mov r6, r1 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD_Is_set )
a0018170: e5d33000 ldrb r3, [r3] <== NOT EXECUTED
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
a0018174: e1a05002 mov r5, r2 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD_Is_set )
a0018178: e3530000 cmp r3, #0 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a001817c: 03a0000b moveq r0, #11 <== NOT EXECUTED
{
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
if ( !_TOD_Is_set )
a0018180: 0a000029 beq a001822c <rtems_timer_fire_when+0xd0> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( !_TOD_Validate( wall_time ) )
a0018184: e1a00001 mov r0, r1 <== NOT EXECUTED a0018188: ebfff53a bl a0015678 <_TOD_Validate> <== NOT EXECUTED a001818c: e3500000 cmp r0, #0 <== NOT EXECUTED a0018190: 0a000024 beq a0018228 <rtems_timer_fire_when+0xcc> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
if ( !routine )
a0018194: e3550000 cmp r5, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a0018198: 03a00009 moveq r0, #9 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
if ( !routine )
a001819c: 0a000022 beq a001822c <rtems_timer_fire_when+0xd0> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
seconds = _TOD_To_seconds( wall_time );
a00181a0: e1a00006 mov r0, r6 <== NOT EXECUTED a00181a4: ebfff510 bl a00155ec <_TOD_To_seconds> <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
a00181a8: e59f7084 ldr r7, [pc, #132] ; a0018234 <rtems_timer_fire_when+0xd8><== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
if ( !routine )
return RTEMS_INVALID_ADDRESS;
seconds = _TOD_To_seconds( wall_time );
a00181ac: e1a06000 mov r6, r0 <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
a00181b0: e5973000 ldr r3, [r7] <== NOT EXECUTED a00181b4: e1500003 cmp r0, r3 <== NOT EXECUTED a00181b8: 9a00001a bls a0018228 <rtems_timer_fire_when+0xcc> <== NOT EXECUTED a00181bc: e59f0074 ldr r0, [pc, #116] ; a0018238 <rtems_timer_fire_when+0xdc><== NOT EXECUTED a00181c0: e1a01004 mov r1, r4 <== NOT EXECUTED a00181c4: e1a0200d mov r2, sp <== NOT EXECUTED a00181c8: eb000afb bl a001adbc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a00181cc: e59da000 ldr sl, [sp] <== NOT EXECUTED a00181d0: e1a09000 mov r9, r0 <== NOT EXECUTED a00181d4: e35a0000 cmp sl, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00181d8: 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 ) {
a00181dc: 1a000012 bne a001822c <rtems_timer_fire_when+0xd0> <== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
a00181e0: e289b010 add fp, r9, #16 <== NOT EXECUTED a00181e4: e1a0000b mov r0, fp <== NOT EXECUTED a00181e8: eb00127f bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
the_timer->the_class = TIMER_TIME_OF_DAY;
a00181ec: e3a03002 mov r3, #2 <== NOT EXECUTED a00181f0: e5893038 str r3, [r9, #56] ; 0x38 <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
_Watchdog_Insert_seconds(
a00181f4: e5973000 ldr r3, [r7] <== NOT EXECUTED
)
{
the_watchdog->initial = units;
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
a00181f8: e59f003c ldr r0, [pc, #60] ; a001823c <rtems_timer_fire_when+0xe0><== NOT EXECUTED a00181fc: e1a0100b mov r1, fp <== NOT EXECUTED a0018200: e0636006 rsb r6, r3, r6 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a0018204: e589a018 str sl, [r9, #24] <== NOT EXECUTED
the_watchdog->routine = routine;
a0018208: e589502c str r5, [r9, #44] ; 0x2c <== NOT EXECUTED
the_watchdog->id = id;
a001820c: e5894030 str r4, [r9, #48] ; 0x30 <== NOT EXECUTED
the_watchdog->user_data = user_data;
a0018210: e5898034 str r8, [r9, #52] ; 0x34 <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a0018214: e589601c str r6, [r9, #28] <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Seconds_chain, the_watchdog );
a0018218: eb00121b bl a001ca8c <_Watchdog_Insert> <== NOT EXECUTED
&the_timer->Ticker,
seconds - _TOD_Seconds_since_epoch()
);
_Thread_Enable_dispatch();
a001821c: eb000e11 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0018220: e1a0000a mov r0, sl <== NOT EXECUTED a0018224: ea000000 b a001822c <rtems_timer_fire_when+0xd0> <== NOT EXECUTED
if ( !routine )
return RTEMS_INVALID_ADDRESS;
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
a0018228: e3a00014 mov r0, #20 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a001822c: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a0018240 <rtems_timer_get_information>:
rtems_status_code rtems_timer_get_information(
rtems_id id,
rtems_timer_information *the_info
)
{
a0018240: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
if ( !the_info )
a0018244: e2514000 subs r4, r1, #0 <== NOT EXECUTED
rtems_status_code rtems_timer_get_information(
rtems_id id,
rtems_timer_information *the_info
)
{
a0018248: e1a03000 mov r3, r0 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
a001824c: 03a00009 moveq r0, #9 <== NOT EXECUTED
)
{
Timer_Control *the_timer;
Objects_Locations location;
if ( !the_info )
a0018250: 0a000011 beq a001829c <rtems_timer_get_information+0x5c> <== NOT EXECUTED a0018254: e59f0044 ldr r0, [pc, #68] ; a00182a0 <rtems_timer_get_information+0x60><== NOT EXECUTED a0018258: e1a01003 mov r1, r3 <== NOT EXECUTED a001825c: e1a0200d mov r2, sp <== NOT EXECUTED a0018260: eb000ad5 bl a001adbc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a0018264: e59d5000 ldr r5, [sp] <== NOT EXECUTED a0018268: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a001826c: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( !the_info )
return RTEMS_INVALID_ADDRESS;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a0018270: 1a000009 bne a001829c <rtems_timer_get_information+0x5c> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_info->the_class = the_timer->the_class;
a0018274: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED a0018278: e5843000 str r3, [r4] <== NOT EXECUTED
the_info->initial = the_timer->Ticker.initial;
a001827c: e590301c ldr r3, [r0, #28] <== NOT EXECUTED a0018280: e5843004 str r3, [r4, #4] <== NOT EXECUTED
the_info->start_time = the_timer->Ticker.start_time;
a0018284: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED a0018288: e5843008 str r3, [r4, #8] <== NOT EXECUTED
the_info->stop_time = the_timer->Ticker.stop_time;
a001828c: e5903028 ldr r3, [r0, #40] ; 0x28 <== NOT EXECUTED a0018290: e584300c str r3, [r4, #12] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0018294: eb000df3 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0018298: e1a00005 mov r0, r5 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a001829c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a00182a4 <rtems_timer_ident>:
rtems_status_code rtems_timer_ident(
rtems_name name,
rtems_id *id
)
{
a00182a4: e1a02000 mov r2, r0 <== NOT EXECUTED
a00182a8: e1a03001 mov r3, r1 <== NOT EXECUTED
a00182ac: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
Objects_Name_or_id_lookup_errors status;
status = _Objects_Name_to_id_u32(
a00182b0: e1a01002 mov r1, r2 <== NOT EXECUTED a00182b4: e59f0010 ldr r0, [pc, #16] ; a00182cc <rtems_timer_ident+0x28><== NOT EXECUTED a00182b8: e3e02102 mvn r2, #-2147483648 ; 0x80000000 <== NOT EXECUTED a00182bc: eb000b1a bl a001af2c <_Objects_Name_to_id_u32> <== NOT EXECUTED
OBJECTS_SEARCH_LOCAL_NODE,
id
);
return _Status_Object_name_errors_to_status[ status ];
}
a00182c0: e59f3008 ldr r3, [pc, #8] ; a00182d0 <rtems_timer_ident+0x2c><== NOT EXECUTED
a00182c4: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED
a00182c8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a00188c4 <rtems_timer_initiate_server>:
rtems_status_code rtems_timer_initiate_server(
uint32_t priority,
uint32_t stack_size,
rtems_attribute attribute_set
)
{
a00188c4: e92d41f7 push {r0, r1, r2, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
a00188c8: e3500000 cmp r0, #0 <== NOT EXECUTED a00188cc: e1a06001 mov r6, r1 <== NOT EXECUTED a00188d0: e1a08002 mov r8, r2 <== NOT EXECUTED a00188d4: 01a07000 moveq r7, r0 <== NOT EXECUTED a00188d8: 0a000004 beq a00188f0 <rtems_timer_initiate_server+0x2c> <== NOT EXECUTED
( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );
a00188dc: e59f3124 ldr r3, [pc, #292] ; a0018a08 <rtems_timer_initiate_server+0x144><== NOT EXECUTED a00188e0: e5d37000 ldrb r7, [r3] <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (
rtems_task_priority the_priority
)
{
return ( ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
a00188e4: e1500007 cmp r0, r7 <== NOT EXECUTED a00188e8: 83a07000 movhi r7, #0 <== NOT EXECUTED a00188ec: 93a07001 movls r7, #1 <== NOT EXECUTED
* Make sure the requested priority is valid. The if is
* 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 ) ) {
a00188f0: e21770ff ands r7, r7, #255 ; 0xff <== NOT EXECUTED a00188f4: 1a000003 bne a0018908 <rtems_timer_initiate_server+0x44> <== NOT EXECUTED
if ( priority != RTEMS_TIMER_SERVER_DEFAULT_PRIORITY )
a00188f8: e3700001 cmn r0, #1 <== NOT EXECUTED
return RTEMS_INVALID_PRIORITY;
a00188fc: 13a00013 movne r0, #19 <== 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 )
a0018900: 1a00003f bne a0018a04 <rtems_timer_initiate_server+0x140> <== NOT EXECUTED a0018904: ea000000 b a001890c <rtems_timer_initiate_server+0x48> <== NOT EXECUTED
* Make sure the requested priority is valid. The if is
* 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 ) ) {
a0018908: e1a07000 mov r7, r0 <== NOT EXECUTED
/*
* Just to make sure this is only called once.
*/
_Thread_Disable_dispatch();
tmpInitialized = initialized;
a001890c: e59f40f8 ldr r4, [pc, #248] ; a0018a0c <rtems_timer_initiate_server+0x148><== NOT EXECUTED
}
/*
* Just to make sure this is only called once.
*/
_Thread_Disable_dispatch();
a0018910: ebffff0b bl a0018544 <_Thread_Disable_dispatch> <== NOT EXECUTED
tmpInitialized = initialized;
a0018914: e5d45000 ldrb r5, [r4] <== NOT EXECUTED
initialized = true;
a0018918: e3a03001 mov r3, #1 <== NOT EXECUTED a001891c: e5c43000 strb r3, [r4] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0018920: eb000c50 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( tmpInitialized )
a0018924: e3550000 cmp r5, #0 <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
a0018928: 13a0000e movne r0, #14 <== NOT EXECUTED
_Thread_Disable_dispatch();
tmpInitialized = initialized;
initialized = true;
_Thread_Enable_dispatch();
if ( tmpInitialized )
a001892c: 1a000034 bne a0018a04 <rtems_timer_initiate_server+0x140> <== 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(
a0018930: e28d3008 add r3, sp, #8 <== NOT EXECUTED a0018934: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a0018938: e3888902 orr r8, r8, #32768 ; 0x8000 <== NOT EXECUTED a001893c: e59f00cc ldr r0, [pc, #204] ; a0018a10 <rtems_timer_initiate_server+0x14c><== NOT EXECUTED a0018940: e1a01007 mov r1, r7 <== NOT EXECUTED a0018944: e1a02006 mov r2, r6 <== NOT EXECUTED a0018948: e3a03c01 mov r3, #256 ; 0x100 <== NOT EXECUTED a001894c: e58d8000 str r8, [sp] <== NOT EXECUTED a0018950: ebfffb49 bl a001767c <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) {
a0018954: e3500000 cmp r0, #0 <== NOT EXECUTED
initialized = false;
a0018958: 15c45000 strbne r5, [r4] <== 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) {
a001895c: 1a000028 bne a0018a04 <rtems_timer_initiate_server+0x140> <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return NULL;
#endif
return information->local_table[ index ];
a0018960: e59f20ac ldr r2, [pc, #172] ; a0018a14 <rtems_timer_initiate_server+0x150><== NOT EXECUTED a0018964: e1dd10b8 ldrh r1, [sp, #8] <== NOT EXECUTED a0018968: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a001896c: e592201c ldr r2, [r2, #28] <== 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(
a0018970: e7921101 ldr r1, [r2, r1, lsl #2] <== NOT EXECUTED a0018974: e1a02004 mov r2, r4 <== NOT EXECUTED
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
a0018978: e5840038 str r0, [r4, #56] ; 0x38 <== NOT EXECUTED a001897c: e5a21004 str r1, [r2, #4]! <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
a0018980: e2841038 add r1, r4, #56 ; 0x38 <== NOT EXECUTED a0018984: e5841034 str r1, [r4, #52] ; 0x34 <== NOT EXECUTED
head->previous = NULL; tail->previous = head;
a0018988: e2841034 add r1, r4, #52 ; 0x34 <== NOT EXECUTED a001898c: e584103c str r1, [r4, #60] ; 0x3c <== NOT EXECUTED
)
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
a0018990: e2841070 add r1, r4, #112 ; 0x70 <== NOT EXECUTED a0018994: e584106c str r1, [r4, #108] ; 0x6c <== NOT EXECUTED
head->previous = NULL; tail->previous = head;
a0018998: e284106c add r1, r4, #108 ; 0x6c <== NOT EXECUTED a001899c: e5841074 str r1, [r4, #116] ; 0x74 <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a00189a0: e59f1070 ldr r1, [pc, #112] ; a0018a18 <rtems_timer_initiate_server+0x154><== NOT EXECUTED
{
Chain_Node *head = _Chain_Head( the_chain );
Chain_Node *tail = _Chain_Tail( the_chain );
head->next = tail;
head->previous = NULL;
a00189a4: e5840070 str r0, [r4, #112] ; 0x70 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a00189a8: e5840014 str r0, [r4, #20] <== NOT EXECUTED
the_watchdog->routine = routine;
a00189ac: e5841028 str r1, [r4, #40] ; 0x28 <== NOT EXECUTED a00189b0: e5841060 str r1, [r4, #96] ; 0x60 <== 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;
a00189b4: e59f1060 ldr r1, [pc, #96] ; a0018a1c <rtems_timer_initiate_server+0x158><== NOT EXECUTED
the_watchdog->id = id; the_watchdog->user_data = user_data;
a00189b8: e5840030 str r0, [r4, #48] ; 0x30 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a00189bc: e584004c str r0, [r4, #76] ; 0x4c <== NOT EXECUTED a00189c0: e5841008 str r1, [r4, #8] <== NOT EXECUTED
ts->Interval_watchdogs.last_snapshot = _Watchdog_Ticks_since_boot;
a00189c4: e59f1054 ldr r1, [pc, #84] ; a0018a20 <rtems_timer_initiate_server+0x15c><== NOT EXECUTED
the_watchdog->routine = routine; the_watchdog->id = id; the_watchdog->user_data = user_data;
a00189c8: e5840068 str r0, [r4, #104] ; 0x68 <== NOT EXECUTED
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
the_watchdog->id = id;
a00189cc: e584302c str r3, [r4, #44] ; 0x2c <== NOT EXECUTED a00189d0: e5911000 ldr r1, [r1] <== NOT EXECUTED a00189d4: e5843064 str r3, [r4, #100] ; 0x64 <== NOT EXECUTED a00189d8: e5841040 str r1, [r4, #64] ; 0x40 <== NOT EXECUTED
ts->TOD_watchdogs.last_snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
a00189dc: e59f1040 ldr r1, [pc, #64] ; a0018a24 <rtems_timer_initiate_server+0x160><== NOT EXECUTED a00189e0: e5911000 ldr r1, [r1] <== NOT EXECUTED a00189e4: e5841078 str r1, [r4, #120] ; 0x78 <== NOT EXECUTED
ts->active = false;
/*
* The default timer server is now available.
*/
_Timer_server = ts;
a00189e8: e59f1038 ldr r1, [pc, #56] ; a0018a28 <rtems_timer_initiate_server+0x164><== 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;
a00189ec: e584007c str r0, [r4, #124] ; 0x7c <== NOT EXECUTED
ts->active = false;
a00189f0: e5c40080 strb r0, [r4, #128] ; 0x80 <== NOT EXECUTED
/*
* The default timer server is now available.
*/
_Timer_server = ts;
a00189f4: e5812000 str r2, [r1] <== NOT EXECUTED
/*
* Start the timer server
*/
status = rtems_task_start(
a00189f8: e1a00003 mov r0, r3 <== NOT EXECUTED a00189fc: e59f1028 ldr r1, [pc, #40] ; a0018a2c <rtems_timer_initiate_server+0x168><== NOT EXECUTED a0018a00: ebfffccf bl a0017d44 <rtems_task_start> <== NOT EXECUTED
initialized = false;
}
#endif
return status;
}
a0018a04: e8bd81fe pop {r1, r2, r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a00182d4 <rtems_timer_reset>:
*/
rtems_status_code rtems_timer_reset(
rtems_id id
)
{
a00182d4: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED
a00182d8: e1a01000 mov r1, r0 <== NOT EXECUTED
a00182dc: e1a0200d mov r2, sp <== NOT EXECUTED
a00182e0: e59f0078 ldr r0, [pc, #120] ; a0018360 <rtems_timer_reset+0x8c><== NOT EXECUTED
a00182e4: eb000ab4 bl a001adbc <_Objects_Get> <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_status_code status = RTEMS_SUCCESSFUL;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a00182e8: e59d5000 ldr r5, [sp] <== NOT EXECUTED a00182ec: e1a06000 mov r6, r0 <== NOT EXECUTED a00182f0: e3550000 cmp r5, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00182f4: 13a04004 movne r4, #4 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_status_code status = RTEMS_SUCCESSFUL;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a00182f8: 1a000016 bne a0018358 <rtems_timer_reset+0x84> <== NOT EXECUTED
case OBJECTS_LOCAL:
if ( the_timer->the_class == TIMER_INTERVAL ) {
a00182fc: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED a0018300: e3540000 cmp r4, #0 <== NOT EXECUTED a0018304: 1a000006 bne a0018324 <rtems_timer_reset+0x50> <== NOT EXECUTED
_Watchdog_Remove( &the_timer->Ticker );
a0018308: e2806010 add r6, r0, #16 <== NOT EXECUTED a001830c: e1a00006 mov r0, r6 <== NOT EXECUTED a0018310: eb001235 bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, &the_timer->Ticker );
a0018314: e59f0048 ldr r0, [pc, #72] ; a0018364 <rtems_timer_reset+0x90><== NOT EXECUTED a0018318: e1a01006 mov r1, r6 <== NOT EXECUTED a001831c: eb0011da bl a001ca8c <_Watchdog_Insert> <== NOT EXECUTED a0018320: ea00000b b a0018354 <rtems_timer_reset+0x80> <== NOT EXECUTED
} else if ( the_timer->the_class == TIMER_INTERVAL_ON_TASK ) {
a0018324: e3540001 cmp r4, #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;
a0018328: 13a0400b movne r4, #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 ) {
a001832c: 1a000008 bne a0018354 <rtems_timer_reset+0x80> <== NOT EXECUTED
Timer_server_Control *timer_server = _Timer_server;
a0018330: e59f3030 ldr r3, [pc, #48] ; a0018368 <rtems_timer_reset+0x94><== NOT EXECUTED
if ( !timer_server ) {
_Thread_Enable_dispatch();
return RTEMS_INCORRECT_STATE;
}
#endif
_Watchdog_Remove( &the_timer->Ticker );
a0018334: 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;
a0018338: e5934000 ldr r4, [r3] <== NOT EXECUTED
if ( !timer_server ) {
_Thread_Enable_dispatch();
return RTEMS_INCORRECT_STATE;
}
#endif
_Watchdog_Remove( &the_timer->Ticker );
a001833c: eb00122a bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
a0018340: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a0018344: e1a00004 mov r0, r4 <== NOT EXECUTED a0018348: e1a01006 mov r1, r6 <== NOT EXECUTED a001834c: e12fff33 blx r3 <== NOT EXECUTED
rtems_id id
)
{
Timer_Control *the_timer;
Objects_Locations location;
rtems_status_code status = RTEMS_SUCCESSFUL;
a0018350: e1a04005 mov r4, r5 <== 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();
a0018354: eb000dc3 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0018358: e1a00004 mov r0, r4 <== NOT EXECUTED
a001835c: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED
a001836c <rtems_timer_server_fire_after>:
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
a001836c: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
a0018370: e1a08003 mov r8, r3 <== NOT EXECUTED
Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server;
a0018374: e59f30b8 ldr r3, [pc, #184] ; a0018434 <rtems_timer_server_fire_after+0xc8><== NOT EXECUTED
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
a0018378: e1a05000 mov r5, r0 <== NOT EXECUTED a001837c: e1a04001 mov r4, r1 <== NOT EXECUTED
Timer_Control *the_timer; Objects_Locations location; ISR_Level level; Timer_server_Control *timer_server = _Timer_server;
a0018380: e5937000 ldr r7, [r3] <== NOT EXECUTED
rtems_id id,
rtems_interval ticks,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
a0018384: e1a06002 mov r6, r2 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
ISR_Level level;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
a0018388: e3570000 cmp r7, #0 <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
a001838c: 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 )
a0018390: 0a000026 beq a0018430 <rtems_timer_server_fire_after+0xc4> <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !routine )
a0018394: e3520000 cmp r2, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a0018398: 03a00009 moveq r0, #9 <== NOT EXECUTED
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
return RTEMS_INCORRECT_STATE;
if ( !routine )
a001839c: 0a000023 beq a0018430 <rtems_timer_server_fire_after+0xc4> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( ticks == 0 )
a00183a0: e3510000 cmp r1, #0 <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
a00183a4: 03a0000a moveq r0, #10 <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !routine )
return RTEMS_INVALID_ADDRESS;
if ( ticks == 0 )
a00183a8: 0a000020 beq a0018430 <rtems_timer_server_fire_after+0xc4> <== NOT EXECUTED a00183ac: e59f0084 ldr r0, [pc, #132] ; a0018438 <rtems_timer_server_fire_after+0xcc><== NOT EXECUTED a00183b0: e1a01005 mov r1, r5 <== NOT EXECUTED a00183b4: e1a0200d mov r2, sp <== NOT EXECUTED a00183b8: eb000a7f bl a001adbc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_NUMBER;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a00183bc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00183c0: e1a0a000 mov sl, r0 <== NOT EXECUTED a00183c4: e3530000 cmp r3, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00183c8: 13a00004 movne r0, #4 <== NOT EXECUTED
if ( ticks == 0 )
return RTEMS_INVALID_NUMBER;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a00183cc: 1a000017 bne a0018430 <rtems_timer_server_fire_after+0xc4> <== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
a00183d0: e28a0010 add r0, sl, #16 <== NOT EXECUTED a00183d4: eb001204 bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a00183d8: e10f3000 mrs r3, CPSR <== NOT EXECUTED a00183dc: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a00183e0: 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 ) {
a00183e4: e59a2018 ldr r2, [sl, #24] <== NOT EXECUTED a00183e8: e3520000 cmp r2, #0 <== NOT EXECUTED a00183ec: 0a000001 beq a00183f8 <rtems_timer_server_fire_after+0x8c> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a00183f0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a00183f4: ea00000b b a0018428 <rtems_timer_server_fire_after+0xbc> <== 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;
a00183f8: e3a01001 mov r1, #1 <== NOT EXECUTED a00183fc: e58a1038 str r1, [sl, #56] ; 0x38 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a0018400: e58a2018 str r2, [sl, #24] <== NOT EXECUTED
the_watchdog->routine = routine;
a0018404: e58a602c str r6, [sl, #44] ; 0x2c <== NOT EXECUTED
the_watchdog->id = id;
a0018408: e58a5030 str r5, [sl, #48] ; 0x30 <== NOT EXECUTED
the_watchdog->user_data = user_data;
a001840c: e58a8034 str r8, [sl, #52] ; 0x34 <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = ticks;
a0018410: e58a401c str r4, [sl, #28] <== NOT EXECUTED a0018414: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
_ISR_Enable( level );
(*timer_server->schedule_operation)( timer_server, the_timer );
a0018418: e5973004 ldr r3, [r7, #4] <== NOT EXECUTED a001841c: e1a00007 mov r0, r7 <== NOT EXECUTED a0018420: e1a0100a mov r1, sl <== NOT EXECUTED a0018424: e12fff33 blx r3 <== NOT EXECUTED
_Thread_Enable_dispatch();
a0018428: eb000d8e bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a001842c: e3a00000 mov r0, #0 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0018430: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a001843c <rtems_timer_server_fire_when>:
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
a001843c: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
a0018440: e1a0a003 mov sl, r3 <== NOT EXECUTED
Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server;
a0018444: e59f30d8 ldr r3, [pc, #216] ; a0018524 <rtems_timer_server_fire_when+0xe8><== NOT EXECUTED
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
a0018448: e1a04000 mov r4, r0 <== NOT EXECUTED a001844c: e1a07001 mov r7, r1 <== NOT EXECUTED
Timer_Control *the_timer; Objects_Locations location; rtems_interval seconds; Timer_server_Control *timer_server = _Timer_server;
a0018450: e5936000 ldr r6, [r3] <== NOT EXECUTED
rtems_id id,
rtems_time_of_day *wall_time,
rtems_timer_service_routine_entry routine,
void *user_data
)
{
a0018454: e1a05002 mov r5, r2 <== NOT EXECUTED
Timer_Control *the_timer;
Objects_Locations location;
rtems_interval seconds;
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
a0018458: e3560000 cmp r6, #0 <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
a001845c: 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 )
a0018460: 0a00002e beq a0018520 <rtems_timer_server_fire_when+0xe4> <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
a0018464: e59f30bc ldr r3, [pc, #188] ; a0018528 <rtems_timer_server_fire_when+0xec><== NOT EXECUTED a0018468: e5d33000 ldrb r3, [r3] <== NOT EXECUTED a001846c: e3530000 cmp r3, #0 <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
a0018470: 03a0000b moveq r0, #11 <== NOT EXECUTED
Timer_server_Control *timer_server = _Timer_server;
if ( !timer_server )
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
a0018474: 0a000029 beq a0018520 <rtems_timer_server_fire_when+0xe4> <== NOT EXECUTED
return RTEMS_NOT_DEFINED;
if ( !routine )
a0018478: e3520000 cmp r2, #0 <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
a001847c: 03a00009 moveq r0, #9 <== NOT EXECUTED
return RTEMS_INCORRECT_STATE;
if ( !_TOD_Is_set )
return RTEMS_NOT_DEFINED;
if ( !routine )
a0018480: 0a000026 beq a0018520 <rtems_timer_server_fire_when+0xe4> <== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
a0018484: e1a00001 mov r0, r1 <== NOT EXECUTED a0018488: ebfff47a bl a0015678 <_TOD_Validate> <== NOT EXECUTED a001848c: e3500000 cmp r0, #0 <== NOT EXECUTED a0018490: 0a000021 beq a001851c <rtems_timer_server_fire_when+0xe0> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
a0018494: e1a00007 mov r0, r7 <== NOT EXECUTED a0018498: ebfff453 bl a00155ec <_TOD_To_seconds> <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
a001849c: e59f8088 ldr r8, [pc, #136] ; a001852c <rtems_timer_server_fire_when+0xf0><== NOT EXECUTED
return RTEMS_INVALID_ADDRESS;
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
a00184a0: e1a07000 mov r7, r0 <== NOT EXECUTED
if ( seconds <= _TOD_Seconds_since_epoch() )
a00184a4: e5983000 ldr r3, [r8] <== NOT EXECUTED a00184a8: e1500003 cmp r0, r3 <== NOT EXECUTED a00184ac: 9a00001a bls a001851c <rtems_timer_server_fire_when+0xe0> <== NOT EXECUTED a00184b0: e59f0078 ldr r0, [pc, #120] ; a0018530 <rtems_timer_server_fire_when+0xf4><== NOT EXECUTED a00184b4: e1a01004 mov r1, r4 <== NOT EXECUTED a00184b8: e1a0200d mov r2, sp <== NOT EXECUTED a00184bc: eb000a3e bl a001adbc <_Objects_Get> <== NOT EXECUTED
return RTEMS_INVALID_CLOCK;
the_timer = _Timer_Get( id, &location );
switch ( location ) {
a00184c0: e59d9000 ldr r9, [sp] <== NOT EXECUTED a00184c4: e1a0b000 mov fp, r0 <== NOT EXECUTED a00184c8: e3590000 cmp r9, #0 <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
a00184cc: 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 ) {
a00184d0: 1a000012 bne a0018520 <rtems_timer_server_fire_when+0xe4> <== NOT EXECUTED
case OBJECTS_LOCAL:
(void) _Watchdog_Remove( &the_timer->Ticker );
a00184d4: e28b0010 add r0, fp, #16 <== NOT EXECUTED a00184d8: eb0011c3 bl a001cbec <_Watchdog_Remove> <== NOT EXECUTED
the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;
a00184dc: e3a03003 mov r3, #3 <== NOT EXECUTED a00184e0: e58b3038 str r3, [fp, #56] ; 0x38 <== NOT EXECUTED
_Watchdog_Initialize( &the_timer->Ticker, routine, id, user_data );
the_timer->Ticker.initial = seconds - _TOD_Seconds_since_epoch();
a00184e4: e5983000 ldr r3, [r8] <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
a00184e8: e1a00006 mov r0, r6 <== NOT EXECUTED a00184ec: e1a0100b mov r1, fp <== 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();
a00184f0: e0637007 rsb r7, r3, r7 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a00184f4: e58b9018 str r9, [fp, #24] <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
a00184f8: e5963004 ldr r3, [r6, #4] <== NOT EXECUTED
the_watchdog->routine = routine;
a00184fc: e58b502c str r5, [fp, #44] ; 0x2c <== NOT EXECUTED
the_watchdog->id = id;
a0018500: e58b4030 str r4, [fp, #48] ; 0x30 <== NOT EXECUTED
the_watchdog->user_data = user_data;
a0018504: e58ba034 str sl, [fp, #52] ; 0x34 <== 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();
a0018508: e58b701c str r7, [fp, #28] <== NOT EXECUTED
(*timer_server->schedule_operation)( timer_server, the_timer );
a001850c: e12fff33 blx r3 <== NOT EXECUTED
_Thread_Enable_dispatch();
a0018510: eb000d54 bl a001ba68 <_Thread_Enable_dispatch> <== NOT EXECUTED
return RTEMS_SUCCESSFUL;
a0018514: e1a00009 mov r0, r9 <== NOT EXECUTED a0018518: ea000000 b a0018520 <rtems_timer_server_fire_when+0xe4> <== NOT EXECUTED
if ( !_TOD_Validate( wall_time ) )
return RTEMS_INVALID_CLOCK;
seconds = _TOD_To_seconds( wall_time );
if ( seconds <= _TOD_Seconds_since_epoch() )
return RTEMS_INVALID_CLOCK;
a001851c: e3a00014 mov r0, #20 <== NOT EXECUTED
case OBJECTS_ERROR:
break;
}
return RTEMS_INVALID_ID;
}
a0018520: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a000a708 <rtems_verror>:
{
int local_errno = 0;
int chars_written = 0;
rtems_status_code status;
if (error_flag & RTEMS_ERROR_PANIC) {
a000a708: e3100202 tst r0, #536870912 ; 0x20000000 <== NOT EXECUTED
static int rtems_verror(
rtems_error_code_t error_flag,
const char *printf_format,
va_list arglist
)
{
a000a70c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a000a710: e1a05000 mov r5, r0 <== NOT EXECUTED
a000a714: e1a08001 mov r8, r1 <== NOT EXECUTED
a000a718: e1a04002 mov r4, r2 <== NOT EXECUTED
int local_errno = 0;
int chars_written = 0;
rtems_status_code status;
if (error_flag & RTEMS_ERROR_PANIC) {
a000a71c: 0a00000e beq a000a75c <rtems_verror+0x54> <== NOT EXECUTED
if (rtems_panic_in_progress++)
a000a720: e59f212c ldr r2, [pc, #300] ; a000a854 <rtems_verror+0x14c><== NOT EXECUTED a000a724: e5923000 ldr r3, [r2] <== NOT EXECUTED a000a728: e2831001 add r1, r3, #1 <== NOT EXECUTED a000a72c: e3530000 cmp r3, #0 <== NOT EXECUTED a000a730: e5821000 str r1, [r2] <== NOT EXECUTED a000a734: 0a000003 beq a000a748 <rtems_verror+0x40> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000a738: e59f3118 ldr r3, [pc, #280] ; a000a858 <rtems_verror+0x150><== NOT EXECUTED a000a73c: e5932000 ldr r2, [r3] <== NOT EXECUTED a000a740: e2822001 add r2, r2, #1 <== NOT EXECUTED a000a744: e5832000 str r2, [r3] <== NOT EXECUTED
_Thread_Disable_dispatch(); /* disable task switches */
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
a000a748: e59f3104 ldr r3, [pc, #260] ; a000a854 <rtems_verror+0x14c><== NOT EXECUTED a000a74c: e5933000 ldr r3, [r3] <== NOT EXECUTED a000a750: e3530002 cmp r3, #2 <== NOT EXECUTED
return 0;
a000a754: c3a04000 movgt r4, #0 <== NOT EXECUTED
if (error_flag & RTEMS_ERROR_PANIC) {
if (rtems_panic_in_progress++)
_Thread_Disable_dispatch(); /* disable task switches */
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
a000a758: ca00003b bgt a000a84c <rtems_verror+0x144> <== NOT EXECUTED
return 0;
}
(void) fflush(stdout); /* in case stdout/stderr same */
a000a75c: e59f30f8 ldr r3, [pc, #248] ; a000a85c <rtems_verror+0x154><== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
a000a760: e3c56207 bic r6, r5, #1879048192 ; 0x70000000 <== NOT EXECUTED
/* don't aggravate things */
if (rtems_panic_in_progress > 2)
return 0;
}
(void) fflush(stdout); /* in case stdout/stderr same */
a000a764: e5933000 ldr r3, [r3] <== NOT EXECUTED a000a768: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a000a76c: eb002fa1 bl a00165f8 <fflush> <== NOT EXECUTED
status = error_flag & ~RTEMS_ERROR_MASK;
if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */
a000a770: e2155101 ands r5, r5, #1073741824 ; 0x40000000 <== NOT EXECUTED a000a774: 0a000001 beq a000a780 <rtems_verror+0x78> <== NOT EXECUTED
local_errno = errno;
a000a778: eb002ea7 bl a001621c <__errno> <== NOT EXECUTED a000a77c: e5905000 ldr r5, [r0] <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if (_System_state_Is_multiprocessing)
fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
#endif
chars_written += vfprintf(stderr, printf_format, arglist);
a000a780: e59f70d4 ldr r7, [pc, #212] ; a000a85c <rtems_verror+0x154><== NOT EXECUTED a000a784: e1a02004 mov r2, r4 <== NOT EXECUTED a000a788: e1a01008 mov r1, r8 <== NOT EXECUTED a000a78c: e5973000 ldr r3, [r7] <== NOT EXECUTED a000a790: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a000a794: eb004ad4 bl a001d2ec <vfprintf> <== NOT EXECUTED
if (status)
a000a798: e3560000 cmp r6, #0 <== NOT EXECUTED
#if defined(RTEMS_MULTIPROCESSING)
if (_System_state_Is_multiprocessing)
fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node);
#endif
chars_written += vfprintf(stderr, printf_format, arglist);
a000a79c: e1a04000 mov r4, r0 <== NOT EXECUTED
if (status)
a000a7a0: 0a000008 beq a000a7c8 <rtems_verror+0xc0> <== NOT EXECUTED
chars_written +=
fprintf(stderr, " (status: %s)", rtems_status_text(status));
a000a7a4: e5973000 ldr r3, [r7] <== NOT EXECUTED a000a7a8: e1a00006 mov r0, r6 <== NOT EXECUTED a000a7ac: e593700c ldr r7, [r3, #12] <== NOT EXECUTED a000a7b0: ebffffd0 bl a000a6f8 <rtems_status_text> <== NOT EXECUTED a000a7b4: e59f10a4 ldr r1, [pc, #164] ; a000a860 <rtems_verror+0x158><== NOT EXECUTED a000a7b8: e1a02000 mov r2, r0 <== NOT EXECUTED a000a7bc: e1a00007 mov r0, r7 <== NOT EXECUTED a000a7c0: eb003072 bl a0016990 <fprintf> <== NOT EXECUTED
#endif
chars_written += vfprintf(stderr, printf_format, arglist);
if (status)
chars_written +=
a000a7c4: e0844000 add r4, r4, r0 <== NOT EXECUTED
fprintf(stderr, " (status: %s)", rtems_status_text(status));
if (local_errno) {
a000a7c8: e3550000 cmp r5, #0 <== NOT EXECUTED a000a7cc: 0a000015 beq a000a828 <rtems_verror+0x120> <== NOT EXECUTED
if ((local_errno > 0) && *strerror(local_errno))
a000a7d0: da00000d ble a000a80c <rtems_verror+0x104> <== NOT EXECUTED a000a7d4: e1a00005 mov r0, r5 <== NOT EXECUTED a000a7d8: eb00336f bl a001759c <strerror> <== NOT EXECUTED a000a7dc: e5d03000 ldrb r3, [r0] <== NOT EXECUTED a000a7e0: e3530000 cmp r3, #0 <== NOT EXECUTED a000a7e4: 0a000008 beq a000a80c <rtems_verror+0x104> <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
a000a7e8: e59f306c ldr r3, [pc, #108] ; a000a85c <rtems_verror+0x154><== NOT EXECUTED a000a7ec: e1a00005 mov r0, r5 <== NOT EXECUTED a000a7f0: e5933000 ldr r3, [r3] <== NOT EXECUTED a000a7f4: e593600c ldr r6, [r3, #12] <== NOT EXECUTED a000a7f8: eb003367 bl a001759c <strerror> <== NOT EXECUTED a000a7fc: e59f1060 ldr r1, [pc, #96] ; a000a864 <rtems_verror+0x15c> <== NOT EXECUTED a000a800: e1a02000 mov r2, r0 <== NOT EXECUTED a000a804: e1a00006 mov r0, r6 <== NOT EXECUTED a000a808: ea000004 b a000a820 <rtems_verror+0x118> <== NOT EXECUTED
else
chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
a000a80c: e59f3048 ldr r3, [pc, #72] ; a000a85c <rtems_verror+0x154> <== NOT EXECUTED a000a810: e59f1050 ldr r1, [pc, #80] ; a000a868 <rtems_verror+0x160> <== NOT EXECUTED a000a814: e1a02005 mov r2, r5 <== NOT EXECUTED a000a818: e5933000 ldr r3, [r3] <== NOT EXECUTED a000a81c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a000a820: eb00305a bl a0016990 <fprintf> <== NOT EXECUTED a000a824: e0844000 add r4, r4, r0 <== NOT EXECUTED
}
chars_written += fprintf(stderr, "\n");
a000a828: e59f502c ldr r5, [pc, #44] ; a000a85c <rtems_verror+0x154> <== NOT EXECUTED a000a82c: e59f1038 ldr r1, [pc, #56] ; a000a86c <rtems_verror+0x164> <== NOT EXECUTED a000a830: e5953000 ldr r3, [r5] <== NOT EXECUTED a000a834: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a000a838: eb003054 bl a0016990 <fprintf> <== NOT EXECUTED
(void) fflush(stderr);
a000a83c: e5953000 ldr r3, [r5] <== NOT EXECUTED
chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
else
chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
}
chars_written += fprintf(stderr, "\n");
a000a840: e0804004 add r4, r0, r4 <== NOT EXECUTED
(void) fflush(stderr);
a000a844: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a000a848: eb002f6a bl a00165f8 <fflush> <== NOT EXECUTED
return chars_written;
}
a000a84c: e1a00004 mov r0, r4 <== NOT EXECUTED
a000a850: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0009e68 <rtems_workspace_allocate>:
*/
bool rtems_workspace_allocate(
uintptr_t bytes,
void **pointer
)
{
a0009e68: e92d4010 push {r4, lr} <== NOT EXECUTED
void *ptr;
/*
* check the arguments
*/
if ( !pointer )
a0009e6c: e2514000 subs r4, r1, #0 <== NOT EXECUTED
*/
bool rtems_workspace_allocate(
uintptr_t bytes,
void **pointer
)
{
a0009e70: e1a03000 mov r3, r0 <== NOT EXECUTED
void *ptr;
/*
* check the arguments
*/
if ( !pointer )
a0009e74: 0a00000c beq a0009eac <rtems_workspace_allocate+0x44> <== NOT EXECUTED
return false;
if ( !bytes )
a0009e78: e3500000 cmp r0, #0 <== NOT EXECUTED
return false;
a0009e7c: 01a00000 moveq r0, r0 <== NOT EXECUTED
* check the arguments
*/
if ( !pointer )
return false;
if ( !bytes )
a0009e80: 0a00000b beq a0009eb4 <rtems_workspace_allocate+0x4c> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(
Heap_Control *heap,
uintptr_t size
)
{
return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
a0009e84: e3a02000 mov r2, #0 <== NOT EXECUTED a0009e88: e1a01003 mov r1, r3 <== NOT EXECUTED a0009e8c: e59f0024 ldr r0, [pc, #36] ; a0009eb8 <rtems_workspace_allocate+0x50><== NOT EXECUTED a0009e90: e1a03002 mov r3, r2 <== NOT EXECUTED a0009e94: eb00056a bl a000b444 <_Protected_heap_Allocate_aligned_with_boundary><== NOT EXECUTED
/*
* Allocate the memory
*/
ptr = _Protected_heap_Allocate( &_Workspace_Area, (intptr_t) bytes );
if (!ptr)
a0009e98: e3500000 cmp r0, #0 <== NOT EXECUTED a0009e9c: 0a000004 beq a0009eb4 <rtems_workspace_allocate+0x4c> <== NOT EXECUTED
return false;
*pointer = ptr;
a0009ea0: e5840000 str r0, [r4] <== NOT EXECUTED
return true;
a0009ea4: e3a00001 mov r0, #1 <== NOT EXECUTED
a0009ea8: e8bd8010 pop {r4, pc} <== NOT EXECUTED
/*
* check the arguments
*/
if ( !pointer )
return false;
a0009eac: e1a00004 mov r0, r4 <== NOT EXECUTED
a0009eb0: e8bd8010 pop {r4, pc} <== NOT EXECUTED
if (!ptr)
return false;
*pointer = ptr;
return true;
}
a0009eb4: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a0009ebc <rtems_workspace_free>:
* _Workspace_Allocate
*/
bool rtems_workspace_free(
void *pointer
)
{
a0009ebc: e1a01000 mov r1, r0 <== NOT EXECUTED
return _Protected_heap_Free( &_Workspace_Area, pointer );
a0009ec0: e59f0000 ldr r0, [pc, #0] ; a0009ec8 <rtems_workspace_free+0xc><== NOT EXECUTED a0009ec4: ea000571 b a000b490 <_Protected_heap_Free> <== NOT EXECUTED
a0009e54 <rtems_workspace_get_information>:
bool rtems_workspace_get_information(
Heap_Information_block *the_info
)
{
if ( !the_info )
a0009e54: e2501000 subs r1, r0, #0 <== NOT EXECUTED a0009e58: 012fff1e bxeq lr <== NOT EXECUTED
return false;
return _Protected_heap_Get_information( &_Workspace_Area, the_info );
a0009e5c: e59f0000 ldr r0, [pc, #0] ; a0009e64 <rtems_workspace_get_information+0x10><== NOT EXECUTED a0009e60: ea000599 b a000b4cc <_Protected_heap_Get_information> <== NOT EXECUTED
a00068a0 <scanInt>:
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
a00068a0: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
a00068a4: e59fb0dc ldr fp, [pc, #220] ; a0006988 <scanInt+0xe8> <== NOT EXECUTED
limit++;
continue;
}
sign = 1;
}
if (!isdigit(c))
a00068a8: e59f90dc ldr r9, [pc, #220] ; a000698c <scanInt+0xec> <== NOT EXECUTED
scanInt(FILE *fp, int *val)
{
int c;
unsigned int i = 0;
unsigned int limit = INT_MAX;
int sign = 0;
a00068ac: e3a04000 mov r4, #0 <== NOT EXECUTED
/*
* Extract an integer value from the database
*/
static int
scanInt(FILE *fp, int *val)
{
a00068b0: e1a05000 mov r5, r0 <== NOT EXECUTED a00068b4: e58d1000 str r1, [sp] <== NOT EXECUTED
int c; unsigned int i = 0; unsigned int limit = INT_MAX;
a00068b8: e3e08102 mvn r8, #-2147483648 ; 0x80000000 <== NOT EXECUTED
*/
static int
scanInt(FILE *fp, int *val)
{
int c;
unsigned int i = 0;
a00068bc: e1a07004 mov r7, r4 <== NOT EXECUTED
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
if ((i > (limit / 10))
a00068c0: e3a0a00a mov sl, #10 <== NOT EXECUTED
unsigned int limit = INT_MAX;
int sign = 0;
int d;
for (;;) {
c = getc(fp);
a00068c4: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED a00068c8: e2433001 sub r3, r3, #1 <== NOT EXECUTED a00068cc: e3530000 cmp r3, #0 <== NOT EXECUTED a00068d0: e5853004 str r3, [r5, #4] <== NOT EXECUTED a00068d4: a5953000 ldrge r3, [r5] <== NOT EXECUTED a00068d8: a4d36001 ldrbge r6, [r3], #1 <== NOT EXECUTED a00068dc: a5853000 strge r3, [r5] <== NOT EXECUTED a00068e0: aa000003 bge a00068f4 <scanInt+0x54> <== NOT EXECUTED a00068e4: e59b0000 ldr r0, [fp] <== NOT EXECUTED a00068e8: e1a01005 mov r1, r5 <== NOT EXECUTED a00068ec: eb0034bd bl a0013be8 <__srget_r> <== NOT EXECUTED a00068f0: e1a06000 mov r6, r0 <== NOT EXECUTED
if (c == ':')
a00068f4: e356003a cmp r6, #58 ; 0x3a <== NOT EXECUTED a00068f8: 0a000019 beq a0006964 <scanInt+0xc4> <== NOT EXECUTED
break;
if (sign == 0) {
a00068fc: e3540000 cmp r4, #0 <== NOT EXECUTED a0006900: 1a000004 bne a0006918 <scanInt+0x78> <== NOT EXECUTED
if (c == '-') {
a0006904: e356002d cmp r6, #45 ; 0x2d <== NOT EXECUTED
sign = -1;
limit++;
a0006908: 02888001 addeq r8, r8, #1 <== NOT EXECUTED
c = getc(fp);
if (c == ':')
break;
if (sign == 0) {
if (c == '-') {
sign = -1;
a000690c: 03e04000 mvneq r4, #0 <== NOT EXECUTED
for (;;) {
c = getc(fp);
if (c == ':')
break;
if (sign == 0) {
if (c == '-') {
a0006910: 0affffeb beq a00068c4 <scanInt+0x24> <== NOT EXECUTED
sign = -1;
limit++;
continue;
}
sign = 1;
a0006914: e3a04001 mov r4, #1 <== NOT EXECUTED
}
if (!isdigit(c))
a0006918: e5993000 ldr r3, [r9] <== NOT EXECUTED a000691c: e0833006 add r3, r3, r6 <== NOT EXECUTED a0006920: e5d30001 ldrb r0, [r3, #1] <== NOT EXECUTED a0006924: e2100004 ands r0, r0, #4 <== NOT EXECUTED a0006928: 0a000015 beq a0006984 <scanInt+0xe4> <== NOT EXECUTED
return 0;
d = c - '0';
if ((i > (limit / 10))
a000692c: e1a00008 mov r0, r8 <== NOT EXECUTED a0006930: e3a0100a mov r1, #10 <== NOT EXECUTED a0006934: eb003dda bl a00160a4 <__aeabi_uidiv> <== NOT EXECUTED a0006938: e1570000 cmp r7, r0 <== NOT EXECUTED a000693c: 8a00000f bhi a0006980 <scanInt+0xe0> <== NOT EXECUTED
}
sign = 1;
}
if (!isdigit(c))
return 0;
d = c - '0';
a0006940: e2466030 sub r6, r6, #48 ; 0x30 <== NOT EXECUTED
if ((i > (limit / 10))
|| ((i == (limit / 10)) && (d > (limit % 10))))
a0006944: 1a000004 bne a000695c <scanInt+0xbc> <== NOT EXECUTED a0006948: e1a00008 mov r0, r8 <== NOT EXECUTED a000694c: e3a0100a mov r1, #10 <== NOT EXECUTED a0006950: eb003e6b bl a0016304 <__umodsi3> <== NOT EXECUTED a0006954: e1560000 cmp r6, r0 <== NOT EXECUTED a0006958: 8a000008 bhi a0006980 <scanInt+0xe0> <== NOT EXECUTED
return 0;
i = i * 10 + d;
a000695c: e027679a mla r7, sl, r7, r6 <== NOT EXECUTED a0006960: eaffffd7 b a00068c4 <scanInt+0x24> <== NOT EXECUTED
} if (sign == 0)
a0006964: e3540000 cmp r4, #0 <== NOT EXECUTED
return 0;
a0006968: 01a00004 moveq r0, r4 <== NOT EXECUTED
*val = i * sign;
a000696c: 10040497 mulne r4, r7, r4 <== NOT EXECUTED a0006970: 159d3000 ldrne r3, [sp] <== NOT EXECUTED
return 1;
a0006974: 13a00001 movne r0, #1 <== NOT EXECUTED
return 0;
i = i * 10 + d;
}
if (sign == 0)
return 0;
*val = i * sign;
a0006978: 15834000 strne r4, [r3] <== NOT EXECUTED
return 1;
a000697c: ea000000 b a0006984 <scanInt+0xe4> <== NOT EXECUTED
if (!isdigit(c))
return 0;
d = c - '0';
if ((i > (limit / 10))
|| ((i == (limit / 10)) && (d > (limit % 10))))
return 0;
a0006980: e3a00000 mov r0, #0 <== NOT EXECUTED
}
if (sign == 0)
return 0;
*val = i * sign;
return 1;
}
a0006984: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED
a0006990 <scanString>:
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
a0006990: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a0006994: e1a06003 mov r6, r3 <== NOT EXECUTED
int c;
*name = *bufp;
a0006998: e5923000 ldr r3, [r2] <== NOT EXECUTED
for (;;) {
c = getc(fp);
a000699c: e59f80dc ldr r8, [pc, #220] ; a0006a80 <scanString+0xf0> <== NOT EXECUTED
/*
* Extract a string value from the database
*/
static int
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{
a00069a0: e59d7018 ldr r7, [sp, #24] <== NOT EXECUTED a00069a4: e1a04000 mov r4, r0 <== NOT EXECUTED a00069a8: e1a05002 mov r5, r2 <== NOT EXECUTED
int c;
*name = *bufp;
a00069ac: e5813000 str r3, [r1] <== NOT EXECUTED
for (;;) {
c = getc(fp);
a00069b0: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a00069b4: e2433001 sub r3, r3, #1 <== NOT EXECUTED a00069b8: e3530000 cmp r3, #0 <== NOT EXECUTED a00069bc: e5843004 str r3, [r4, #4] <== NOT EXECUTED a00069c0: a5943000 ldrge r3, [r4] <== NOT EXECUTED a00069c4: a4d30001 ldrbge r0, [r3], #1 <== NOT EXECUTED a00069c8: a5843000 strge r3, [r4] <== NOT EXECUTED a00069cc: aa000002 bge a00069dc <scanString+0x4c> <== NOT EXECUTED a00069d0: e5980000 ldr r0, [r8] <== NOT EXECUTED a00069d4: e1a01004 mov r1, r4 <== NOT EXECUTED a00069d8: eb003482 bl a0013be8 <__srget_r> <== NOT EXECUTED
if (c == ':') {
a00069dc: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED a00069e0: 1a000002 bne a00069f0 <scanString+0x60> <== NOT EXECUTED
if (nlFlag)
a00069e4: e3570000 cmp r7, #0 <== NOT EXECUTED a00069e8: 0a000013 beq a0006a3c <scanString+0xac> <== NOT EXECUTED a00069ec: ea00001f b a0006a70 <scanString+0xe0> <== NOT EXECUTED
return 0;
break;
}
if (c == '\n') {
a00069f0: e350000a cmp r0, #10 <== NOT EXECUTED a00069f4: 1a000002 bne a0006a04 <scanString+0x74> <== NOT EXECUTED
if (!nlFlag)
a00069f8: e3570000 cmp r7, #0 <== NOT EXECUTED a00069fc: 1a00000e bne a0006a3c <scanString+0xac> <== NOT EXECUTED a0006a00: ea000018 b a0006a68 <scanString+0xd8> <== NOT EXECUTED
return 0;
break;
}
if (c == EOF)
a0006a04: e3700001 cmn r0, #1 <== NOT EXECUTED a0006a08: 0a000018 beq a0006a70 <scanString+0xe0> <== NOT EXECUTED
return 0;
if (*nleft < 2)
a0006a0c: e5963000 ldr r3, [r6] <== NOT EXECUTED a0006a10: e3530001 cmp r3, #1 <== NOT EXECUTED a0006a14: 9a000017 bls a0006a78 <scanString+0xe8> <== NOT EXECUTED
return 0;
**bufp = c;
a0006a18: e5953000 ldr r3, [r5] <== NOT EXECUTED a0006a1c: e5c30000 strb r0, [r3] <== NOT EXECUTED
++(*bufp);
a0006a20: e5953000 ldr r3, [r5] <== NOT EXECUTED a0006a24: e2833001 add r3, r3, #1 <== NOT EXECUTED a0006a28: e5853000 str r3, [r5] <== NOT EXECUTED
--(*nleft);
a0006a2c: e5963000 ldr r3, [r6] <== NOT EXECUTED a0006a30: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0006a34: e5863000 str r3, [r6] <== NOT EXECUTED
}
a0006a38: eaffffdc b a00069b0 <scanString+0x20> <== NOT EXECUTED
**bufp = '\0';
a0006a3c: e5953000 ldr r3, [r5] <== NOT EXECUTED a0006a40: e3a02000 mov r2, #0 <== NOT EXECUTED
++(*bufp); --(*nleft); return 1;
a0006a44: e3a00001 mov r0, #1 <== NOT EXECUTED
return 0;
**bufp = c;
++(*bufp);
--(*nleft);
}
**bufp = '\0';
a0006a48: e5c32000 strb r2, [r3] <== NOT EXECUTED
++(*bufp);
a0006a4c: e5953000 ldr r3, [r5] <== NOT EXECUTED a0006a50: e2833001 add r3, r3, #1 <== NOT EXECUTED a0006a54: e5853000 str r3, [r5] <== NOT EXECUTED
--(*nleft);
a0006a58: e5963000 ldr r3, [r6] <== NOT EXECUTED a0006a5c: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0006a60: e5863000 str r3, [r6] <== NOT EXECUTED
return 1;
a0006a64: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
return 0;
break;
}
if (c == '\n') {
if (!nlFlag)
return 0;
a0006a68: e1a00007 mov r0, r7 <== NOT EXECUTED
a0006a6c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
break;
}
if (c == EOF)
return 0;
a0006a70: e3a00000 mov r0, #0 <== NOT EXECUTED
a0006a74: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
if (*nleft < 2)
return 0;
a0006a78: e3a00000 mov r0, #0 <== NOT EXECUTED
} **bufp = '\0'; ++(*bufp); --(*nleft); return 1; }
a0006a7c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0006a84 <scangr>:
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
a0006a84: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a0006a88: e24dd014 sub sp, sp, #20 <== NOT EXECUTED
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
a0006a8c: e28d6008 add r6, sp, #8 <== NOT EXECUTED a0006a90: e28d5004 add r5, sp, #4 <== NOT EXECUTED
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
a0006a94: e58d2008 str r2, [sp, #8] <== NOT EXECUTED a0006a98: e58d3004 str r3, [sp, #4] <== NOT EXECUTED
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
a0006a9c: e3a08000 mov r8, #0 <== NOT EXECUTED a0006aa0: e1a02006 mov r2, r6 <== NOT EXECUTED a0006aa4: e1a03005 mov r3, r5 <== NOT EXECUTED
FILE *fp,
struct group *grp,
char *buffer,
size_t bufsize
)
{
a0006aa8: e1a07000 mov r7, r0 <== NOT EXECUTED a0006aac: e1a04001 mov r4, r1 <== NOT EXECUTED
int grgid;
char *grmem, *cp;
int memcount;
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
a0006ab0: e58d8000 str r8, [sp] <== NOT EXECUTED a0006ab4: ebffffb5 bl a0006990 <scanString> <== NOT EXECUTED a0006ab8: e3500000 cmp r0, #0 <== NOT EXECUTED a0006abc: 0a000037 beq a0006ba0 <scangr+0x11c> <== NOT EXECUTED
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
a0006ac0: e1a00007 mov r0, r7 <== NOT EXECUTED a0006ac4: e2841004 add r1, r4, #4 <== NOT EXECUTED a0006ac8: e1a02006 mov r2, r6 <== NOT EXECUTED a0006acc: e1a03005 mov r3, r5 <== NOT EXECUTED a0006ad0: e58d8000 str r8, [sp] <== NOT EXECUTED a0006ad4: ebffffad bl a0006990 <scanString> <== NOT EXECUTED a0006ad8: e3500000 cmp r0, #0 <== NOT EXECUTED a0006adc: 0a00002f beq a0006ba0 <scangr+0x11c> <== NOT EXECUTED
|| !scanInt(fp, &grgid)
a0006ae0: e1a00007 mov r0, r7 <== NOT EXECUTED a0006ae4: e28d1010 add r1, sp, #16 <== NOT EXECUTED a0006ae8: ebffff6c bl a00068a0 <scanInt> <== NOT EXECUTED a0006aec: e3500000 cmp r0, #0 <== NOT EXECUTED a0006af0: 0a00002a beq a0006ba0 <scangr+0x11c> <== NOT EXECUTED
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
a0006af4: e2888001 add r8, r8, #1 <== NOT EXECUTED a0006af8: e1a00007 mov r0, r7 <== NOT EXECUTED a0006afc: e28d100c add r1, sp, #12 <== NOT EXECUTED a0006b00: e1a02006 mov r2, r6 <== NOT EXECUTED a0006b04: e1a03005 mov r3, r5 <== NOT EXECUTED a0006b08: e58d8000 str r8, [sp] <== NOT EXECUTED a0006b0c: ebffff9f bl a0006990 <scanString> <== NOT EXECUTED a0006b10: e3500000 cmp r0, #0 <== NOT EXECUTED a0006b14: 0a000021 beq a0006ba0 <scangr+0x11c> <== NOT EXECUTED
return 0;
grp->gr_gid = grgid;
a0006b18: e1dd31b0 ldrh r3, [sp, #16] <== NOT EXECUTED
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
a0006b1c: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED
if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)
|| !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)
|| !scanInt(fp, &grgid)
|| !scanString(fp, &grmem, &buffer, &bufsize, 1))
return 0;
grp->gr_gid = grgid;
a0006b20: e1c430b8 strh r3, [r4, #8] <== NOT EXECUTED
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
a0006b24: e1a03002 mov r3, r2 <== NOT EXECUTED a0006b28: ea000001 b a0006b34 <scangr+0xb0> <== NOT EXECUTED
if(*cp == ',')
a0006b2c: e350002c cmp r0, #44 ; 0x2c <== NOT EXECUTED
memcount++;
a0006b30: 02888001 addeq r8, r8, #1 <== NOT EXECUTED
grp->gr_gid = grgid;
/*
* Determine number of members
*/
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
a0006b34: e4d30001 ldrb r0, [r3], #1 <== NOT EXECUTED a0006b38: e3500000 cmp r0, #0 <== NOT EXECUTED a0006b3c: 1afffffa bne a0006b2c <scangr+0xa8> <== NOT EXECUTED
}
/*
* Hack to produce (hopefully) a suitably-aligned array of pointers
*/
if (bufsize < (((memcount+1)*sizeof(char *)) + 15))
a0006b40: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0006b44: e1a08108 lsl r8, r8, #2 <== NOT EXECUTED a0006b48: e2888013 add r8, r8, #19 <== NOT EXECUTED a0006b4c: e1530008 cmp r3, r8 <== NOT EXECUTED a0006b50: 3a000012 bcc a0006ba0 <scangr+0x11c> <== NOT EXECUTED
return 0;
grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);
a0006b54: e59d3008 ldr r3, [sp, #8] <== NOT EXECUTED a0006b58: e283300f add r3, r3, #15 <== NOT EXECUTED a0006b5c: e3c3300f bic r3, r3, #15 <== NOT EXECUTED a0006b60: e584300c str r3, [r4, #12] <== NOT EXECUTED
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
a0006b64: e5832000 str r2, [r3] <== NOT EXECUTED a0006b68: e59d200c ldr r2, [sp, #12] <== NOT EXECUTED
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
a0006b6c: e3a03001 mov r3, #1 <== NOT EXECUTED a0006b70: ea000004 b a0006b88 <scangr+0x104> <== NOT EXECUTED
if(*cp == ',') {
a0006b74: e351002c cmp r1, #44 ; 0x2c <== NOT EXECUTED
*cp = '\0';
a0006b78: 05420001 strbeq r0, [r2, #-1] <== NOT EXECUTED
grp->gr_mem[memcount++] = cp + 1;
a0006b7c: 0594100c ldreq r1, [r4, #12] <== NOT EXECUTED a0006b80: 07812103 streq r2, [r1, r3, lsl #2] <== NOT EXECUTED a0006b84: 02833001 addeq r3, r3, #1 <== NOT EXECUTED
/*
* Fill in pointer array
*/
grp->gr_mem[0] = grmem;
for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {
a0006b88: e4d21001 ldrb r1, [r2], #1 <== NOT EXECUTED a0006b8c: e3510000 cmp r1, #0 <== NOT EXECUTED a0006b90: 1afffff7 bne a0006b74 <scangr+0xf0> <== NOT EXECUTED
if(*cp == ',') {
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
a0006b94: e594200c ldr r2, [r4, #12] <== NOT EXECUTED
return 1;
a0006b98: e3a00001 mov r0, #1 <== NOT EXECUTED
if(*cp == ',') {
*cp = '\0';
grp->gr_mem[memcount++] = cp + 1;
}
}
grp->gr_mem[memcount] = NULL;
a0006b9c: e7821103 str r1, [r2, r3, lsl #2] <== NOT EXECUTED
return 1; }
a0006ba0: e28dd014 add sp, sp, #20 <== NOT EXECUTED
a0006ba4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0006ba8 <scanpw>:
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
a0006ba8: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a0006bac: e24dd014 sub sp, sp, #20 <== NOT EXECUTED
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
a0006bb0: e28d7008 add r7, sp, #8 <== NOT EXECUTED a0006bb4: e28d6004 add r6, sp, #4 <== NOT EXECUTED
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
a0006bb8: e58d2008 str r2, [sp, #8] <== NOT EXECUTED a0006bbc: e58d3004 str r3, [sp, #4] <== NOT EXECUTED
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
a0006bc0: e3a08000 mov r8, #0 <== NOT EXECUTED a0006bc4: e1a02007 mov r2, r7 <== NOT EXECUTED a0006bc8: e1a03006 mov r3, r6 <== NOT EXECUTED
FILE *fp,
struct passwd *pwd,
char *buffer,
size_t bufsize
)
{
a0006bcc: e1a05000 mov r5, r0 <== NOT EXECUTED a0006bd0: e1a04001 mov r4, r1 <== NOT EXECUTED
int pwuid, pwgid;
if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)
a0006bd4: e58d8000 str r8, [sp] <== NOT EXECUTED a0006bd8: ebffff6c bl a0006990 <scanString> <== NOT EXECUTED a0006bdc: e3500000 cmp r0, #0 <== NOT EXECUTED a0006be0: 0a000036 beq a0006cc0 <scanpw+0x118> <== NOT EXECUTED
|| !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)
a0006be4: e1a00005 mov r0, r5 <== NOT EXECUTED a0006be8: e2841004 add r1, r4, #4 <== NOT EXECUTED a0006bec: e1a02007 mov r2, r7 <== NOT EXECUTED a0006bf0: e1a03006 mov r3, r6 <== NOT EXECUTED a0006bf4: e58d8000 str r8, [sp] <== NOT EXECUTED a0006bf8: ebffff64 bl a0006990 <scanString> <== NOT EXECUTED a0006bfc: e3500000 cmp r0, #0 <== NOT EXECUTED a0006c00: 0a00002e beq a0006cc0 <scanpw+0x118> <== NOT EXECUTED
|| !scanInt(fp, &pwuid)
a0006c04: e1a00005 mov r0, r5 <== NOT EXECUTED a0006c08: e28d1010 add r1, sp, #16 <== NOT EXECUTED a0006c0c: ebffff23 bl a00068a0 <scanInt> <== NOT EXECUTED a0006c10: e3500000 cmp r0, #0 <== NOT EXECUTED a0006c14: 0a000029 beq a0006cc0 <scanpw+0x118> <== NOT EXECUTED
|| !scanInt(fp, &pwgid)
a0006c18: e1a00005 mov r0, r5 <== NOT EXECUTED a0006c1c: e28d100c add r1, sp, #12 <== NOT EXECUTED a0006c20: ebffff1e bl a00068a0 <scanInt> <== NOT EXECUTED a0006c24: e3500000 cmp r0, #0 <== NOT EXECUTED a0006c28: 0a000024 beq a0006cc0 <scanpw+0x118> <== NOT EXECUTED
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
a0006c2c: e1a00005 mov r0, r5 <== NOT EXECUTED a0006c30: e284100c add r1, r4, #12 <== NOT EXECUTED a0006c34: e1a02007 mov r2, r7 <== NOT EXECUTED a0006c38: e1a03006 mov r3, r6 <== NOT EXECUTED a0006c3c: e58d8000 str r8, [sp] <== NOT EXECUTED a0006c40: ebffff52 bl a0006990 <scanString> <== NOT EXECUTED a0006c44: e3500000 cmp r0, #0 <== NOT EXECUTED a0006c48: 0a00001c beq a0006cc0 <scanpw+0x118> <== NOT EXECUTED
|| !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)
a0006c4c: e1a00005 mov r0, r5 <== NOT EXECUTED a0006c50: e2841010 add r1, r4, #16 <== NOT EXECUTED a0006c54: e1a02007 mov r2, r7 <== NOT EXECUTED a0006c58: e1a03006 mov r3, r6 <== NOT EXECUTED a0006c5c: e58d8000 str r8, [sp] <== NOT EXECUTED a0006c60: ebffff4a bl a0006990 <scanString> <== NOT EXECUTED a0006c64: e3500000 cmp r0, #0 <== NOT EXECUTED a0006c68: 0a000014 beq a0006cc0 <scanpw+0x118> <== NOT EXECUTED
|| !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)
a0006c6c: e1a00005 mov r0, r5 <== NOT EXECUTED a0006c70: e2841014 add r1, r4, #20 <== NOT EXECUTED a0006c74: e1a02007 mov r2, r7 <== NOT EXECUTED a0006c78: e1a03006 mov r3, r6 <== NOT EXECUTED a0006c7c: e58d8000 str r8, [sp] <== NOT EXECUTED a0006c80: ebffff42 bl a0006990 <scanString> <== NOT EXECUTED a0006c84: e3500000 cmp r0, #0 <== NOT EXECUTED a0006c88: 0a00000c beq a0006cc0 <scanpw+0x118> <== NOT EXECUTED
|| !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))
a0006c8c: e1a03006 mov r3, r6 <== NOT EXECUTED a0006c90: e2888001 add r8, r8, #1 <== NOT EXECUTED a0006c94: e1a00005 mov r0, r5 <== NOT EXECUTED a0006c98: e2841018 add r1, r4, #24 <== NOT EXECUTED a0006c9c: e1a02007 mov r2, r7 <== NOT EXECUTED a0006ca0: e58d8000 str r8, [sp] <== NOT EXECUTED a0006ca4: ebffff39 bl a0006990 <scanString> <== NOT EXECUTED a0006ca8: e3500000 cmp r0, #0 <== NOT EXECUTED
return 0;
pwd->pw_uid = pwuid;
a0006cac: 11dd31b0 ldrhne r3, [sp, #16] <== NOT EXECUTED
pwd->pw_gid = pwgid; return 1;
a0006cb0: 11a00008 movne r0, r8 <== NOT EXECUTED
|| !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)
|| !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))
return 0;
pwd->pw_uid = pwuid;
a0006cb4: 11c430b8 strhne r3, [r4, #8] <== NOT EXECUTED
pwd->pw_gid = pwgid;
a0006cb8: 11dd30bc ldrhne r3, [sp, #12] <== NOT EXECUTED a0006cbc: 11c430ba strhne r3, [r4, #10] <== NOT EXECUTED
return 1; }
a0006cc0: e28dd014 add sp, sp, #20 <== NOT EXECUTED
a0006cc4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0009d78 <sched_get_priority_max>:
int sched_get_priority_max(
int policy
)
{
switch ( policy ) {
a0009d78: e3500004 cmp r0, #4 <== NOT EXECUTED
#include <rtems/posix/priority.h>
int sched_get_priority_max(
int policy
)
{
a0009d7c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
switch ( policy ) {
a0009d80: 8a000003 bhi a0009d94 <sched_get_priority_max+0x1c> <== NOT EXECUTED a0009d84: e3a03001 mov r3, #1 <== NOT EXECUTED a0009d88: e1a00013 lsl r0, r3, r0 <== NOT EXECUTED a0009d8c: e3100017 tst r0, #23 <== NOT EXECUTED a0009d90: 1a000004 bne a0009da8 <sched_get_priority_max+0x30> <== NOT EXECUTED
case SCHED_RR:
case SCHED_SPORADIC:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
a0009d94: eb00205b bl a0011f08 <__errno> <== NOT EXECUTED
a0009d98: e3a03016 mov r3, #22 <== NOT EXECUTED
a0009d9c: e5803000 str r3, [r0] <== NOT EXECUTED
a0009da0: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009da4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
}
return POSIX_SCHEDULER_MAXIMUM_PRIORITY;
a0009da8: e59f3008 ldr r3, [pc, #8] ; a0009db8 <sched_get_priority_max+0x40><== NOT EXECUTED a0009dac: e5d30000 ldrb r0, [r3] <== NOT EXECUTED a0009db0: e2400001 sub r0, r0, #1 <== NOT EXECUTED
}
a0009db4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009dbc <sched_get_priority_min>:
int sched_get_priority_min(
int policy
)
{
switch ( policy ) {
a0009dbc: e3500004 cmp r0, #4 <== NOT EXECUTED
#include <rtems/posix/priority.h>
int sched_get_priority_min(
int policy
)
{
a0009dc0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
switch ( policy ) {
a0009dc4: 8a000003 bhi a0009dd8 <sched_get_priority_min+0x1c> <== NOT EXECUTED a0009dc8: e3a03001 mov r3, #1 <== NOT EXECUTED a0009dcc: e1a00013 lsl r0, r3, r0 <== NOT EXECUTED a0009dd0: e3100017 tst r0, #23 <== NOT EXECUTED a0009dd4: 1a000004 bne a0009dec <sched_get_priority_min+0x30> <== NOT EXECUTED
case SCHED_RR:
case SCHED_SPORADIC:
break;
default:
rtems_set_errno_and_return_minus_one( EINVAL );
a0009dd8: eb00204a bl a0011f08 <__errno> <== NOT EXECUTED
a0009ddc: e3a03016 mov r3, #22 <== NOT EXECUTED
a0009de0: e5803000 str r3, [r0] <== NOT EXECUTED
a0009de4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009de8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
}
return POSIX_SCHEDULER_MINIMUM_PRIORITY;
a0009dec: e1a00003 mov r0, r3 <== NOT EXECUTED
}
a0009df0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000931c <sched_getparam>:
int sched_getparam(
pid_t pid __attribute__((unused)),
struct sched_param *param __attribute__((unused))
)
{
a000931c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0009320: eb002198 bl a0011988 <__errno> <== NOT EXECUTED a0009324: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a0009328: e5803000 str r3, [r0] <== NOT EXECUTED
}
a000932c: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009330: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009334 <sched_getscheduler>:
#include <rtems/posix/time.h>
int sched_getscheduler(
pid_t pid __attribute__((unused))
)
{
a0009334: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0009338: eb002192 bl a0011988 <__errno> <== NOT EXECUTED a000933c: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a0009340: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0009344: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009348: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009df4 <sched_rr_get_interval>:
int sched_rr_get_interval(
pid_t pid,
struct timespec *interval
)
{
a0009df4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
/*
* Only supported for the "calling process" (i.e. this node).
*/
if ( pid && pid != getpid() )
a0009df8: e2505000 subs r5, r0, #0 <== NOT EXECUTED
int sched_rr_get_interval(
pid_t pid,
struct timespec *interval
)
{
a0009dfc: e1a04001 mov r4, r1 <== NOT EXECUTED
/*
* Only supported for the "calling process" (i.e. this node).
*/
if ( pid && pid != getpid() )
a0009e00: 0a000005 beq a0009e1c <sched_rr_get_interval+0x28> <== NOT EXECUTED a0009e04: ebfff336 bl a0006ae4 <getpid> <== NOT EXECUTED a0009e08: e1550000 cmp r5, r0 <== NOT EXECUTED a0009e0c: 0a000002 beq a0009e1c <sched_rr_get_interval+0x28> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ESRCH );
a0009e10: eb00203c bl a0011f08 <__errno> <== NOT EXECUTED a0009e14: e3a03003 mov r3, #3 <== NOT EXECUTED a0009e18: ea000003 b a0009e2c <sched_rr_get_interval+0x38> <== NOT EXECUTED
if ( !interval )
a0009e1c: e3540000 cmp r4, #0 <== NOT EXECUTED a0009e20: 1a000004 bne a0009e38 <sched_rr_get_interval+0x44> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0009e24: eb002037 bl a0011f08 <__errno> <== NOT EXECUTED
a0009e28: e3a03016 mov r3, #22 <== NOT EXECUTED
a0009e2c: e5803000 str r3, [r0] <== NOT EXECUTED
a0009e30: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009e34: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
_Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval );
a0009e38: e59f3010 ldr r3, [pc, #16] ; a0009e50 <sched_rr_get_interval+0x5c><== NOT EXECUTED a0009e3c: e1a01004 mov r1, r4 <== NOT EXECUTED a0009e40: e5930000 ldr r0, [r3] <== NOT EXECUTED a0009e44: eb000d55 bl a000d3a0 <_Timespec_From_ticks> <== NOT EXECUTED
return 0;
a0009e48: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a0009e4c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000934c <sched_setparam>:
int sched_setparam(
pid_t pid __attribute__((unused)),
const struct sched_param *param __attribute__((unused))
)
{
a000934c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0009350: eb00218c bl a0011988 <__errno> <== NOT EXECUTED a0009354: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a0009358: e5803000 str r3, [r0] <== NOT EXECUTED
}
a000935c: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009360: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009364 <sched_setscheduler>:
int sched_setscheduler(
pid_t pid __attribute__((unused)),
int policy __attribute__((unused)),
const struct sched_param *param __attribute__((unused))
)
{
a0009364: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0009368: eb002186 bl a0011988 <__errno> <== NOT EXECUTED a000936c: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a0009370: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0009374: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009378: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009e54 <sched_yield>:
a0009e54: e59f3024 ldr r3, [pc, #36] ; a0009e80 <sched_yield+0x2c> <== NOT EXECUTED
#include <rtems/seterr.h>
#include <rtems/posix/priority.h>
#include <rtems/posix/time.h>
int sched_yield( void )
{
a0009e58: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
a0009e5c: e5932000 ldr r2, [r3] <== NOT EXECUTED
a0009e60: e2822001 add r2, r2, #1 <== NOT EXECUTED
a0009e64: e5832000 str r2, [r3] <== NOT EXECUTED
* always operates on the scheduler that 'owns' the currently executing
* thread.
*/
RTEMS_INLINE_ROUTINE void _Scheduler_Yield( void )
{
_Scheduler.Operations.yield();
a0009e68: e59f3014 ldr r3, [pc, #20] ; a0009e84 <sched_yield+0x30> <== NOT EXECUTED a0009e6c: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a0009e70: e12fff33 blx r3 <== NOT EXECUTED
_Thread_Disable_dispatch();
_Scheduler_Yield();
_Thread_Enable_dispatch();
a0009e74: eb000a92 bl a000c8c4 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0; }
a0009e78: e3a00000 mov r0, #0 <== NOT EXECUTED
a0009e7c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000c2b0 <sem_close>:
*/
int sem_close(
sem_t *sem
)
{
a000c2b0: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
a000c2b4: e1a03000 mov r3, r0 <== NOT EXECUTED
sem_t *id,
Objects_Locations *location
)
{
return (POSIX_Semaphore_Control *)
_Objects_Get( &_POSIX_Semaphore_Information, (Objects_Id)*id, location );
a000c2b8: e5931000 ldr r1, [r3] <== NOT EXECUTED a000c2bc: e59f0040 ldr r0, [pc, #64] ; a000c304 <sem_close+0x54> <== NOT EXECUTED a000c2c0: e1a0200d mov r2, sp <== NOT EXECUTED a000c2c4: eb00081b bl a000e338 <_Objects_Get> <== NOT EXECUTED
register POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
a000c2c8: e59d4000 ldr r4, [sp] <== NOT EXECUTED a000c2cc: e3540000 cmp r4, #0 <== NOT EXECUTED a000c2d0: 1a000006 bne a000c2f0 <sem_close+0x40> <== NOT EXECUTED
case OBJECTS_LOCAL:
the_semaphore->open_count -= 1;
a000c2d4: e5902018 ldr r2, [r0, #24] <== NOT EXECUTED a000c2d8: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000c2dc: e5802018 str r2, [r0, #24] <== NOT EXECUTED
_POSIX_Semaphore_Delete( the_semaphore );
a000c2e0: eb00189e bl a0012560 <_POSIX_Semaphore_Delete> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c2e4: eb000b3d bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000c2e8: e1a00004 mov r0, r4 <== NOT EXECUTED a000c2ec: ea000003 b a000c300 <sem_close+0x50> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
a000c2f0: eb0023bc bl a00151e8 <__errno> <== NOT EXECUTED a000c2f4: e3a03016 mov r3, #22 <== NOT EXECUTED a000c2f8: e5803000 str r3, [r0] <== NOT EXECUTED a000c2fc: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000c300: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000c308 <sem_destroy>:
*/
int sem_destroy(
sem_t *sem
)
{
a000c308: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
a000c30c: e1a03000 mov r3, r0 <== NOT EXECUTED
a000c310: e1a0200d mov r2, sp <== NOT EXECUTED
a000c314: e59f0048 ldr r0, [pc, #72] ; a000c364 <sem_destroy+0x5c> <== NOT EXECUTED
a000c318: e5931000 ldr r1, [r3] <== NOT EXECUTED
a000c31c: eb000805 bl a000e338 <_Objects_Get> <== NOT EXECUTED
register POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
a000c320: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000c324: e3520000 cmp r2, #0 <== NOT EXECUTED a000c328: 1a000008 bne a000c350 <sem_destroy+0x48> <== NOT EXECUTED
case OBJECTS_LOCAL:
/*
* Undefined operation on a named semaphore.
*/
if ( the_semaphore->named == true ) {
a000c32c: e5d04014 ldrb r4, [r0, #20] <== NOT EXECUTED a000c330: e3540000 cmp r4, #0 <== NOT EXECUTED a000c334: 0a000001 beq a000c340 <sem_destroy+0x38> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c338: eb000b28 bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED a000c33c: ea000003 b a000c350 <sem_destroy+0x48> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
_POSIX_Semaphore_Delete( the_semaphore );
a000c340: eb001886 bl a0012560 <_POSIX_Semaphore_Delete> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c344: eb000b25 bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000c348: e1a00004 mov r0, r4 <== NOT EXECUTED a000c34c: ea000003 b a000c360 <sem_destroy+0x58> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
a000c350: eb0023a4 bl a00151e8 <__errno> <== NOT EXECUTED a000c354: e3a03016 mov r3, #22 <== NOT EXECUTED a000c358: e5803000 str r3, [r0] <== NOT EXECUTED a000c35c: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000c360: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000c368 <sem_getvalue>:
int sem_getvalue(
sem_t *sem,
int *sval
)
{
a000c368: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a000c36c: e1a03000 mov r3, r0 <== NOT EXECUTED
a000c370: e1a04001 mov r4, r1 <== NOT EXECUTED
a000c374: e59f003c ldr r0, [pc, #60] ; a000c3b8 <sem_getvalue+0x50> <== NOT EXECUTED
a000c378: e5931000 ldr r1, [r3] <== NOT EXECUTED
a000c37c: e1a0200d mov r2, sp <== NOT EXECUTED
a000c380: eb0007ec bl a000e338 <_Objects_Get> <== NOT EXECUTED
register POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
a000c384: e59d5000 ldr r5, [sp] <== NOT EXECUTED a000c388: e3550000 cmp r5, #0 <== NOT EXECUTED a000c38c: 1a000004 bne a000c3a4 <sem_getvalue+0x3c> <== NOT EXECUTED
case OBJECTS_LOCAL:
*sval = _CORE_semaphore_Get_count( &the_semaphore->Semaphore );
a000c390: e5903064 ldr r3, [r0, #100] ; 0x64 <== NOT EXECUTED a000c394: e5843000 str r3, [r4] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c398: eb000b10 bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000c39c: e1a00005 mov r0, r5 <== NOT EXECUTED a000c3a0: ea000003 b a000c3b4 <sem_getvalue+0x4c> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
a000c3a4: eb00238f bl a00151e8 <__errno> <== NOT EXECUTED a000c3a8: e3a03016 mov r3, #22 <== NOT EXECUTED a000c3ac: e5803000 str r3, [r0] <== NOT EXECUTED a000c3b0: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000c3b4: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000c3bc <sem_init>:
int sem_init(
sem_t *sem,
int pshared,
unsigned int value
)
{
a000c3bc: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
int status;
POSIX_Semaphore_Control *the_semaphore;
if ( !sem )
a000c3c0: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000c3c4: 1a000004 bne a000c3dc <sem_init+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000c3c8: eb002386 bl a00151e8 <__errno> <== NOT EXECUTED a000c3cc: e3a03016 mov r3, #22 <== NOT EXECUTED a000c3d0: e5803000 str r3, [r0] <== NOT EXECUTED a000c3d4: e3e00000 mvn r0, #0 <== NOT EXECUTED a000c3d8: ea000006 b a000c3f8 <sem_init+0x3c> <== NOT EXECUTED
status = _POSIX_Semaphore_Create_support(
a000c3dc: e1a0300d mov r3, sp <== NOT EXECUTED a000c3e0: e3a00000 mov r0, #0 <== NOT EXECUTED a000c3e4: eb001820 bl a001246c <_POSIX_Semaphore_Create_support> <== NOT EXECUTED
pshared,
value,
&the_semaphore
);
if ( status != -1 )
a000c3e8: e3700001 cmn r0, #1 <== NOT EXECUTED
*sem = the_semaphore->Object.id;
a000c3ec: 159d3000 ldrne r3, [sp] <== NOT EXECUTED a000c3f0: 15933008 ldrne r3, [r3, #8] <== NOT EXECUTED a000c3f4: 15843000 strne r3, [r4] <== NOT EXECUTED
return status;
}
a000c3f8: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000c3fc <sem_open>:
int oflag,
...
/* mode_t mode, */
/* unsigned int value */
)
{
a000c3fc: e92d000e push {r1, r2, r3} <== NOT EXECUTED
a000c400: e92d41ff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a000c404: e59f30e4 ldr r3, [pc, #228] ; a000c4f0 <sem_open+0xf4> <== NOT EXECUTED a000c408: e59d4028 ldr r4, [sp, #40] ; 0x28 <== NOT EXECUTED a000c40c: e1a06000 mov r6, r0 <== NOT EXECUTED a000c410: e5932000 ldr r2, [r3] <== NOT EXECUTED a000c414: e2822001 add r2, r2, #1 <== NOT EXECUTED a000c418: e5832000 str r2, [r3] <== NOT EXECUTED
POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
_Thread_Disable_dispatch();
if ( oflag & O_CREAT ) {
a000c41c: e2147c02 ands r7, r4, #512 ; 0x200 <== NOT EXECUTED
va_start(arg, oflag);
mode = (mode_t) va_arg( arg, unsigned int );
value = va_arg( arg, unsigned int );
a000c420: 128d3034 addne r3, sp, #52 ; 0x34 <== NOT EXECUTED
va_end(arg);
}
status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );
a000c424: e28d1008 add r1, sp, #8 <== NOT EXECUTED
_Thread_Disable_dispatch();
if ( oflag & O_CREAT ) {
va_start(arg, oflag);
mode = (mode_t) va_arg( arg, unsigned int );
value = va_arg( arg, unsigned int );
a000c428: 158d300c strne r3, [sp, #12] <== NOT EXECUTED a000c42c: 159d5030 ldrne r5, [sp, #48] ; 0x30 <== NOT EXECUTED
/* unsigned int value */
)
{
va_list arg;
mode_t mode;
unsigned int value = 0;
a000c430: 01a05007 moveq r5, r7 <== NOT EXECUTED
mode = (mode_t) va_arg( arg, unsigned int );
value = va_arg( arg, unsigned int );
va_end(arg);
}
status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );
a000c434: eb00185e bl a00125b4 <_POSIX_Semaphore_Name_to_id> <== NOT EXECUTED
* and we can just return a pointer to the id. Otherwise we may
* need to check to see if this is a "semaphore does not exist"
* or some other miscellaneous error on the name.
*/
if ( status ) {
a000c438: e2508000 subs r8, r0, #0 <== NOT EXECUTED a000c43c: 0a000007 beq a000c460 <sem_open+0x64> <== NOT EXECUTED
/*
* Unless provided a valid name that did not already exist
* and we are willing to create then it is an error.
*/
if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {
a000c440: e3580002 cmp r8, #2 <== NOT EXECUTED a000c444: 1a000001 bne a000c450 <sem_open+0x54> <== NOT EXECUTED a000c448: e3570000 cmp r7, #0 <== NOT EXECUTED a000c44c: 1a000017 bne a000c4b0 <sem_open+0xb4> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c450: eb000ae2 bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one_cast( status, sem_t * );
a000c454: eb002363 bl a00151e8 <__errno> <== NOT EXECUTED a000c458: e5808000 str r8, [r0] <== NOT EXECUTED a000c45c: ea000006 b a000c47c <sem_open+0x80> <== NOT EXECUTED
/*
* Check for existence with creation.
*/
if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {
a000c460: e2044c0a and r4, r4, #2560 ; 0xa00 <== NOT EXECUTED a000c464: e3540c0a cmp r4, #2560 ; 0xa00 <== NOT EXECUTED a000c468: 1a000005 bne a000c484 <sem_open+0x88> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c46c: eb000adb bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );
a000c470: eb00235c bl a00151e8 <__errno> <== NOT EXECUTED a000c474: e3a03011 mov r3, #17 <== NOT EXECUTED a000c478: e5803000 str r3, [r0] <== NOT EXECUTED a000c47c: e3e00000 mvn r0, #0 <== NOT EXECUTED a000c480: ea000016 b a000c4e0 <sem_open+0xe4> <== NOT EXECUTED a000c484: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED a000c488: e1a0200d mov r2, sp <== NOT EXECUTED a000c48c: e59f0060 ldr r0, [pc, #96] ; a000c4f4 <sem_open+0xf8> <== NOT EXECUTED a000c490: eb0007a8 bl a000e338 <_Objects_Get> <== NOT EXECUTED
}
the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
the_semaphore->open_count += 1;
a000c494: e5903018 ldr r3, [r0, #24] <== NOT EXECUTED
if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );
}
the_semaphore = _POSIX_Semaphore_Get( &the_semaphore_id, &location );
a000c498: e58d0004 str r0, [sp, #4] <== NOT EXECUTED
the_semaphore->open_count += 1;
a000c49c: e2833001 add r3, r3, #1 <== NOT EXECUTED a000c4a0: e5803018 str r3, [r0, #24] <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c4a4: eb000acd bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c4a8: eb000acc bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
goto return_id;
a000c4ac: ea000009 b a000c4d8 <sem_open+0xdc> <== NOT EXECUTED
/*
* At this point, the semaphore does not exist and everything has been
* checked. We should go ahead and create a semaphore.
*/
status =_POSIX_Semaphore_Create_support(
a000c4b0: e3a01000 mov r1, #0 <== NOT EXECUTED a000c4b4: e1a02005 mov r2, r5 <== NOT EXECUTED a000c4b8: e28d3004 add r3, sp, #4 <== NOT EXECUTED a000c4bc: e1a00006 mov r0, r6 <== NOT EXECUTED a000c4c0: eb0017e9 bl a001246c <_POSIX_Semaphore_Create_support> <== NOT EXECUTED a000c4c4: e1a04000 mov r4, r0 <== NOT EXECUTED
/*
* errno was set by Create_support, so don't set it again.
*/
_Thread_Enable_dispatch();
a000c4c8: eb000ac4 bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
if ( status == -1 )
a000c4cc: e3740001 cmn r4, #1 <== NOT EXECUTED
return SEM_FAILED;
a000c4d0: 01a00004 moveq r0, r4 <== NOT EXECUTED
* errno was set by Create_support, so don't set it again.
*/
_Thread_Enable_dispatch();
if ( status == -1 )
a000c4d4: 0a000001 beq a000c4e0 <sem_open+0xe4> <== NOT EXECUTED
return_id:
#if defined(RTEMS_USE_16_BIT_OBJECT)
the_semaphore->Semaphore_id = the_semaphore->Object.id;
id = &the_semaphore->Semaphore_id;
#else
id = (sem_t *)&the_semaphore->Object.id;
a000c4d8: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED a000c4dc: e2800008 add r0, r0, #8 <== NOT EXECUTED
#endif return id; }
a000c4e0: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a000c4e4: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
a000c4e8: e28dd00c add sp, sp, #12 <== NOT EXECUTED
a000c4ec: e12fff1e bx lr <== NOT EXECUTED
a000c4f8 <sem_post>:
*/
int sem_post(
sem_t *sem
)
{
a000c4f8: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
a000c4fc: e1a03000 mov r3, r0 <== NOT EXECUTED
a000c500: e5931000 ldr r1, [r3] <== NOT EXECUTED
a000c504: e59f0044 ldr r0, [pc, #68] ; a000c550 <sem_post+0x58> <== NOT EXECUTED
a000c508: e1a0200d mov r2, sp <== NOT EXECUTED
a000c50c: eb000789 bl a000e338 <_Objects_Get> <== NOT EXECUTED
register POSIX_Semaphore_Control *the_semaphore;
Objects_Locations location;
the_semaphore = _POSIX_Semaphore_Get( sem, &location );
switch ( location ) {
a000c510: e59d4000 ldr r4, [sp] <== NOT EXECUTED a000c514: e1a03000 mov r3, r0 <== NOT EXECUTED a000c518: e3540000 cmp r4, #0 <== NOT EXECUTED a000c51c: 1a000006 bne a000c53c <sem_post+0x44> <== NOT EXECUTED
case OBJECTS_LOCAL:
_CORE_semaphore_Surrender(
a000c520: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a000c524: e1a02004 mov r2, r4 <== NOT EXECUTED a000c528: e280001c add r0, r0, #28 <== NOT EXECUTED a000c52c: eb0004fa bl a000d91c <_CORE_semaphore_Surrender> <== NOT EXECUTED
NULL /* XXX need to define a routine to handle this case */
#else
NULL
#endif
);
_Thread_Enable_dispatch();
a000c530: eb000aaa bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000c534: e1a00004 mov r0, r4 <== NOT EXECUTED a000c538: ea000003 b a000c54c <sem_post+0x54> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
a000c53c: eb002329 bl a00151e8 <__errno> <== NOT EXECUTED a000c540: e3a03016 mov r3, #22 <== NOT EXECUTED a000c544: e5803000 str r3, [r0] <== NOT EXECUTED a000c548: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000c54c: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000c554 <sem_timedwait>:
int sem_timedwait(
sem_t *sem,
const struct timespec *abstime
)
{
a000c554: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
a000c558: e1a04000 mov r4, r0 <== NOT EXECUTED
* * If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID, * POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW, * then we should not wait. */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );
a000c55c: e1a00001 mov r0, r1 <== NOT EXECUTED a000c560: e1a0100d mov r1, sp <== NOT EXECUTED a000c564: eb001544 bl a0011a7c <_POSIX_Absolute_timeout_to_ticks> <== NOT EXECUTED
if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )
do_wait = false;
lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks );
a000c568: e59d2000 ldr r2, [sp] <== NOT EXECUTED a000c56c: e3500003 cmp r0, #3 <== NOT EXECUTED a000c570: 13a01000 movne r1, #0 <== NOT EXECUTED a000c574: 03a01001 moveq r1, #1 <== NOT EXECUTED a000c578: e1a00004 mov r0, r4 <== NOT EXECUTED a000c57c: eb00182f bl a0012640 <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED
lock_status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )
rtems_set_errno_and_return_minus_one( ETIMEDOUT );
}
return lock_status;
}
a000c580: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000c584 <sem_trywait>:
int sem_trywait(
sem_t *sem
)
{
return _POSIX_Semaphore_Wait_support(sem, false, THREAD_QUEUE_WAIT_FOREVER);
a000c584: e3a01000 mov r1, #0 <== NOT EXECUTED a000c588: e1a02001 mov r2, r1 <== NOT EXECUTED a000c58c: ea00182b b a0012640 <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED
a000c590 <sem_unlink>:
a000c590: e59f3060 ldr r3, [pc, #96] ; a000c5f8 <sem_unlink+0x68> <== NOT EXECUTED
*/
int sem_unlink(
const char *name
)
{
a000c594: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a000c598: e5932000 ldr r2, [r3] <== NOT EXECUTED
a000c59c: e2822001 add r2, r2, #1 <== NOT EXECUTED
a000c5a0: e5832000 str r2, [r3] <== NOT EXECUTED
register POSIX_Semaphore_Control *the_semaphore;
sem_t the_semaphore_id;
_Thread_Disable_dispatch();
status = _POSIX_Semaphore_Name_to_id( name, &the_semaphore_id );
a000c5a4: e1a0100d mov r1, sp <== NOT EXECUTED a000c5a8: eb001801 bl a00125b4 <_POSIX_Semaphore_Name_to_id> <== NOT EXECUTED
if ( status != 0 ) {
a000c5ac: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000c5b0: 0a000004 beq a000c5c8 <sem_unlink+0x38> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c5b4: eb000a89 bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( status );
a000c5b8: eb00230a bl a00151e8 <__errno> <== NOT EXECUTED a000c5bc: e5804000 str r4, [r0] <== NOT EXECUTED a000c5c0: e3e00000 mvn r0, #0 <== NOT EXECUTED a000c5c4: ea00000a b a000c5f4 <sem_unlink+0x64> <== NOT EXECUTED
_POSIX_Semaphore_Namespace_remove( the_semaphore );
_POSIX_Semaphore_Delete( the_semaphore );
_Thread_Enable_dispatch();
return 0;
}
a000c5c8: e59f002c ldr r0, [pc, #44] ; a000c5fc <sem_unlink+0x6c> <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return NULL;
#endif
return information->local_table[ index ];
a000c5cc: e1dd20b0 ldrh r2, [sp] <== NOT EXECUTED a000c5d0: e590301c ldr r3, [r0, #28] <== NOT EXECUTED
if ( status != 0 ) {
_Thread_Enable_dispatch();
rtems_set_errno_and_return_minus_one( status );
}
the_semaphore = (POSIX_Semaphore_Control *) _Objects_Get_local_object(
a000c5d4: e7935102 ldr r5, [r3, r2, lsl #2] <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Namespace_remove (
POSIX_Semaphore_Control *the_semaphore
)
{
_Objects_Namespace_remove(
a000c5d8: e1a01005 mov r1, r5 <== NOT EXECUTED
&_POSIX_Semaphore_Information,
_Objects_Get_index( the_semaphore_id )
);
the_semaphore->linked = false;
a000c5dc: e5c54015 strb r4, [r5, #21] <== NOT EXECUTED a000c5e0: eb0007a6 bl a000e480 <_Objects_Namespace_remove> <== NOT EXECUTED
_POSIX_Semaphore_Namespace_remove( the_semaphore ); _POSIX_Semaphore_Delete( the_semaphore );
a000c5e4: e1a00005 mov r0, r5 <== NOT EXECUTED a000c5e8: eb0017dc bl a0012560 <_POSIX_Semaphore_Delete> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000c5ec: eb000a7b bl a000efe0 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000c5f0: e1a00004 mov r0, r4 <== NOT EXECUTED
}
a000c5f4: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000c600 <sem_wait>:
int sem_wait(
sem_t *sem
)
{
return _POSIX_Semaphore_Wait_support( sem, true, THREAD_QUEUE_WAIT_FOREVER );
a000c600: e3a01001 mov r1, #1 <== NOT EXECUTED a000c604: e3a02000 mov r2, #0 <== NOT EXECUTED a000c608: ea00180c b a0012640 <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED
a0008ecc <seteuid>:
#include <rtems/userenv.h>
int seteuid( uid_t euid )
{
_POSIX_types_Euid = euid;
a0008ecc: e59f300c ldr r3, [pc, #12] ; a0008ee0 <seteuid+0x14> <== NOT EXECUTED a0008ed0: e5933000 ldr r3, [r3] <== NOT EXECUTED a0008ed4: e1c303b6 strh r0, [r3, #54] ; 0x36 <== NOT EXECUTED
return 0; }
a0008ed8: e3a00000 mov r0, #0 <== NOT EXECUTED a0008edc: e12fff1e bx lr <== NOT EXECUTED
a0007f28 <setgid>:
*/
int setgid(
gid_t gid
)
{
_POSIX_types_Gid = gid;
a0007f28: e59f300c ldr r3, [pc, #12] ; a0007f3c <setgid+0x14> <== NOT EXECUTED a0007f2c: e5933000 ldr r3, [r3] <== NOT EXECUTED a0007f30: e1c303b4 strh r0, [r3, #52] ; 0x34 <== NOT EXECUTED
return 0; }
a0007f34: e3a00000 mov r0, #0 <== NOT EXECUTED a0007f38: e12fff1e bx lr <== NOT EXECUTED
a000718c <setgrent>:
void setgrent(void)
{
a000718c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
init_etc_passwd_group();
a0007190: ebfffecc bl a0006cc8 <init_etc_passwd_group> <== NOT EXECUTED
if (group_fp != NULL)
a0007194: e59f3024 ldr r3, [pc, #36] ; a00071c0 <setgrent+0x34> <== NOT EXECUTED a0007198: e59301c4 ldr r0, [r3, #452] ; 0x1c4 <== NOT EXECUTED a000719c: e3500000 cmp r0, #0 <== NOT EXECUTED a00071a0: 0a000000 beq a00071a8 <setgrent+0x1c> <== NOT EXECUTED
fclose(group_fp);
a00071a4: eb002bbf bl a00120a8 <fclose> <== NOT EXECUTED
group_fp = fopen("/etc/group", "r");
a00071a8: e59f0014 ldr r0, [pc, #20] ; a00071c4 <setgrent+0x38> <== NOT EXECUTED a00071ac: e59f1014 ldr r1, [pc, #20] ; a00071c8 <setgrent+0x3c> <== NOT EXECUTED a00071b0: eb002d93 bl a0012804 <fopen> <== NOT EXECUTED a00071b4: e59f3004 ldr r3, [pc, #4] ; a00071c0 <setgrent+0x34> <== NOT EXECUTED a00071b8: e58301c4 str r0, [r3, #452] ; 0x1c4 <== NOT EXECUTED
}
a00071bc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009228 <setitimer>:
int which,
const struct itimerval *value,
struct itimerval *ovalue
)
{
if ( !value )
a0009228: e3510000 cmp r1, #0 <== NOT EXECUTED
int setitimer(
int which,
const struct itimerval *value,
struct itimerval *ovalue
)
{
a000922c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( !value )
a0009230: 0a000001 beq a000923c <setitimer+0x14> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
if ( !ovalue )
a0009234: e3520000 cmp r2, #0 <== NOT EXECUTED a0009238: 1a000002 bne a0009248 <setitimer+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a000923c: eb002180 bl a0011844 <__errno> <== NOT EXECUTED a0009240: e3a0300e mov r3, #14 <== NOT EXECUTED a0009244: ea000006 b a0009264 <setitimer+0x3c> <== NOT EXECUTED
switch ( which ) {
a0009248: e3500002 cmp r0, #2 <== NOT EXECUTED a000924c: 8a000002 bhi a000925c <setitimer+0x34> <== NOT EXECUTED
case ITIMER_REAL:
case ITIMER_VIRTUAL:
case ITIMER_PROF:
rtems_set_errno_and_return_minus_one( ENOSYS );
a0009250: eb00217b bl a0011844 <__errno> <== NOT EXECUTED a0009254: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a0009258: ea000001 b a0009264 <setitimer+0x3c> <== NOT EXECUTED
default:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
a000925c: eb002178 bl a0011844 <__errno> <== NOT EXECUTED a0009260: e3a03016 mov r3, #22 <== NOT EXECUTED a0009264: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0009268: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000926c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0007f40 <setpgid>:
int setpgid(
pid_t pid __attribute__((unused)),
pid_t pgid __attribute__((unused))
)
{
a0007f40: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0007f44: eb002809 bl a0011f70 <__errno> <== NOT EXECUTED a0007f48: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a0007f4c: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0007f50: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0007f54: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0007038 <setpwent>:
void setpwent(void)
{
a0007038: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
init_etc_passwd_group();
a000703c: ebffff21 bl a0006cc8 <init_etc_passwd_group> <== NOT EXECUTED
if (passwd_fp != NULL)
a0007040: e59f3024 ldr r3, [pc, #36] ; a000706c <setpwent+0x34> <== NOT EXECUTED a0007044: e59300e8 ldr r0, [r3, #232] ; 0xe8 <== NOT EXECUTED a0007048: e3500000 cmp r0, #0 <== NOT EXECUTED a000704c: 0a000000 beq a0007054 <setpwent+0x1c> <== NOT EXECUTED
fclose(passwd_fp);
a0007050: eb002c14 bl a00120a8 <fclose> <== NOT EXECUTED
passwd_fp = fopen("/etc/passwd", "r");
a0007054: e59f0014 ldr r0, [pc, #20] ; a0007070 <setpwent+0x38> <== NOT EXECUTED a0007058: e59f1014 ldr r1, [pc, #20] ; a0007074 <setpwent+0x3c> <== NOT EXECUTED a000705c: eb002de8 bl a0012804 <fopen> <== NOT EXECUTED a0007060: e59f3004 ldr r3, [pc, #4] ; a000706c <setpwent+0x34> <== NOT EXECUTED a0007064: e58300e8 str r0, [r3, #232] ; 0xe8 <== NOT EXECUTED
}
a0007068: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0007f58 <setsid>:
*
* 4.3.2 Create Session and Set Process Group ID, P1003.1b-1993, p. 88
*/
pid_t setsid( void )
{
a0007f58: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EPERM );
a0007f5c: eb002803 bl a0011f70 <__errno> <== NOT EXECUTED a0007f60: e3a03001 mov r3, #1 <== NOT EXECUTED a0007f64: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0007f68: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0007f6c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0007f70 <setuid>:
*/
int setuid(
uid_t uid
)
{
_POSIX_types_Uid = uid;
a0007f70: e59f300c ldr r3, [pc, #12] ; a0007f84 <setuid+0x14> <== NOT EXECUTED a0007f74: e5933000 ldr r3, [r3] <== NOT EXECUTED a0007f78: e1c303b2 strh r0, [r3, #50] ; 0x32 <== NOT EXECUTED
return 0; }
a0007f7c: e3a00000 mov r0, #0 <== NOT EXECUTED a0007f80: e12fff1e bx lr <== NOT EXECUTED
a0009c70 <sigaction>:
struct sigaction *oact
)
{
ISR_Level level;
if ( oact )
a0009c70: e3520000 cmp r2, #0 <== NOT EXECUTED
int sigaction(
int sig,
const struct sigaction *act,
struct sigaction *oact
)
{
a0009c74: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a0009c78: e1a04000 mov r4, r0 <== NOT EXECUTED
a0009c7c: e1a05001 mov r5, r1 <== NOT EXECUTED
ISR_Level level;
if ( oact )
a0009c80: 0a00000a beq a0009cb0 <sigaction+0x40> <== NOT EXECUTED
*oact = _POSIX_signals_Vectors[ sig ];
a0009c84: e3a0300c mov r3, #12 <== NOT EXECUTED a0009c88: e0030394 mul r3, r4, r3 <== NOT EXECUTED a0009c8c: e59f00dc ldr r0, [pc, #220] ; a0009d70 <sigaction+0x100> <== NOT EXECUTED a0009c90: e0801003 add r1, r0, r3 <== NOT EXECUTED a0009c94: e7900003 ldr r0, [r0, r3] <== NOT EXECUTED a0009c98: e1a03002 mov r3, r2 <== NOT EXECUTED a0009c9c: e4830004 str r0, [r3], #4 <== NOT EXECUTED a0009ca0: e5910004 ldr r0, [r1, #4] <== NOT EXECUTED a0009ca4: e5820004 str r0, [r2, #4] <== NOT EXECUTED a0009ca8: e5912008 ldr r2, [r1, #8] <== NOT EXECUTED a0009cac: e5832004 str r2, [r3, #4] <== NOT EXECUTED
if ( !sig )
a0009cb0: e3540000 cmp r4, #0 <== NOT EXECUTED a0009cb4: 0a000004 beq a0009ccc <sigaction+0x5c> <== NOT EXECUTED
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
a0009cb8: e2443001 sub r3, r4, #1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(sig) )
a0009cbc: e353001f cmp r3, #31 <== NOT EXECUTED a0009cc0: 8a000001 bhi a0009ccc <sigaction+0x5c> <== NOT EXECUTED
*
* NOTE: Solaris documentation claims to "silently enforce" this which
* contradicts the POSIX specification.
*/
if ( sig == SIGKILL )
a0009cc4: e3540009 cmp r4, #9 <== NOT EXECUTED a0009cc8: 1a000004 bne a0009ce0 <sigaction+0x70> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0009ccc: eb002177 bl a00122b0 <__errno> <== NOT EXECUTED
a0009cd0: e3a03016 mov r3, #22 <== NOT EXECUTED
a0009cd4: e5803000 str r3, [r0] <== NOT EXECUTED
a0009cd8: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009cdc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
/*
* Evaluate the new action structure and set the global signal vector
* appropriately.
*/
if ( act ) {
a0009ce0: e3550000 cmp r5, #0 <== NOT EXECUTED a0009ce4: 0a00001f beq a0009d68 <sigaction+0xf8> <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a0009ce8: e10f7000 mrs r7, CPSR <== NOT EXECUTED a0009cec: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a0009cf0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED
* Unless the user is installing the default signal actions, then
* we can just copy the provided sigaction structure into the vectors.
*/
_ISR_Disable( level );
if ( act->sa_handler == SIG_DFL ) {
a0009cf4: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a0009cf8: e59f6070 ldr r6, [pc, #112] ; a0009d70 <sigaction+0x100> <== NOT EXECUTED a0009cfc: e3530000 cmp r3, #0 <== NOT EXECUTED a0009d00: 1a000009 bne a0009d2c <sigaction+0xbc> <== NOT EXECUTED
_POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
a0009d04: e283300c add r3, r3, #12 <== NOT EXECUTED
a0009d08: e0040493 mul r4, r3, r4 <== NOT EXECUTED
a0009d0c: e59f1060 ldr r1, [pc, #96] ; a0009d74 <sigaction+0x104> <== NOT EXECUTED
a0009d10: e0863004 add r3, r6, r4 <== NOT EXECUTED
a0009d14: e0812004 add r2, r1, r4 <== NOT EXECUTED
a0009d18: e7911004 ldr r1, [r1, r4] <== NOT EXECUTED
a0009d1c: e7861004 str r1, [r6, r4] <== NOT EXECUTED
a0009d20: e9920006 ldmib r2, {r1, r2} <== NOT EXECUTED
a0009d24: e9830006 stmib r3, {r1, r2} <== NOT EXECUTED
a0009d28: ea00000b b a0009d5c <sigaction+0xec> <== NOT EXECUTED
} else {
_POSIX_signals_Clear_process_signals( sig );
a0009d2c: e1a00004 mov r0, r4 <== NOT EXECUTED a0009d30: eb0015fe bl a000f530 <_POSIX_signals_Clear_process_signals><== NOT EXECUTED
_POSIX_signals_Vectors[ sig ] = *act;
a0009d34: e3a0300c mov r3, #12 <== NOT EXECUTED a0009d38: e0040493 mul r4, r3, r4 <== NOT EXECUTED a0009d3c: e1a03005 mov r3, r5 <== NOT EXECUTED a0009d40: e4931004 ldr r1, [r3], #4 <== NOT EXECUTED a0009d44: e0862004 add r2, r6, r4 <== NOT EXECUTED a0009d48: e7861004 str r1, [r6, r4] <== NOT EXECUTED a0009d4c: e5951004 ldr r1, [r5, #4] <== NOT EXECUTED a0009d50: e5821004 str r1, [r2, #4] <== NOT EXECUTED a0009d54: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0009d58: e5823008 str r3, [r2, #8] <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a0009d5c: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
* now (signals not posted when SIG_IGN).
* + If we are now ignoring a signal that was previously pending,
* we clear the pending signal indicator.
*/
return 0;
a0009d60: e3a00000 mov r0, #0 <== NOT EXECUTED
a0009d64: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0009d68: e1a00005 mov r0, r5 <== NOT EXECUTED
}
a0009d6c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0009d78 <sigaddset>:
int sigaddset(
sigset_t *set,
int signo
)
{
if ( !set )
a0009d78: e3500000 cmp r0, #0 <== NOT EXECUTED
int sigaddset(
sigset_t *set,
int signo
)
{
a0009d7c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( !set )
a0009d80: 0a000004 beq a0009d98 <sigaddset+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !signo )
a0009d84: e3510000 cmp r1, #0 <== NOT EXECUTED a0009d88: 0a000002 beq a0009d98 <sigaddset+0x20> <== NOT EXECUTED a0009d8c: e2411001 sub r1, r1, #1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(signo) )
a0009d90: e351001f cmp r1, #31 <== NOT EXECUTED a0009d94: 9a000004 bls a0009dac <sigaddset+0x34> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0009d98: eb002144 bl a00122b0 <__errno> <== NOT EXECUTED
a0009d9c: e3a03016 mov r3, #22 <== NOT EXECUTED
a0009da0: e5803000 str r3, [r0] <== NOT EXECUTED
a0009da4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009da8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
*set |= signo_to_mask(signo);
a0009dac: e5903000 ldr r3, [r0] <== NOT EXECUTED a0009db0: e3a02001 mov r2, #1 <== NOT EXECUTED a0009db4: e1831112 orr r1, r3, r2, lsl r1 <== NOT EXECUTED a0009db8: e5801000 str r1, [r0] <== NOT EXECUTED
return 0;
a0009dbc: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a0009dc0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000bf1c <sigdelset>:
int sigdelset(
sigset_t *set,
int signo
)
{
if ( !set )
a000bf1c: e3500000 cmp r0, #0 <== NOT EXECUTED
int sigdelset(
sigset_t *set,
int signo
)
{
a000bf20: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( !set )
a000bf24: 0a000004 beq a000bf3c <sigdelset+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !signo )
a000bf28: e3510000 cmp r1, #0 <== NOT EXECUTED a000bf2c: 0a00000d beq a000bf68 <sigdelset+0x4c> <== NOT EXECUTED a000bf30: e2411001 sub r1, r1, #1 <== NOT EXECUTED
return 0;
if ( !is_valid_signo(signo) )
a000bf34: e351001f cmp r1, #31 <== NOT EXECUTED a000bf38: 9a000004 bls a000bf50 <sigdelset+0x34> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000bf3c: eb00219e bl a00145bc <__errno> <== NOT EXECUTED
a000bf40: e3a03016 mov r3, #22 <== NOT EXECUTED
a000bf44: e5803000 str r3, [r0] <== NOT EXECUTED
a000bf48: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000bf4c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
*set &= ~signo_to_mask(signo);
a000bf50: e5903000 ldr r3, [r0] <== NOT EXECUTED a000bf54: e3a02001 mov r2, #1 <== NOT EXECUTED a000bf58: e1c31112 bic r1, r3, r2, lsl r1 <== NOT EXECUTED a000bf5c: e5801000 str r1, [r0] <== NOT EXECUTED
return 0;
a000bf60: e3a00000 mov r0, #0 <== NOT EXECUTED
a000bf64: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
{
if ( !set )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !signo )
return 0;
a000bf68: e1a00001 mov r0, r1 <== NOT EXECUTED
if ( !is_valid_signo(signo) )
rtems_set_errno_and_return_minus_one( EINVAL );
*set &= ~signo_to_mask(signo);
return 0;
}
a000bf6c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000e8d8 <sigemptyset>:
int sigemptyset(
sigset_t *set
)
{
if ( !set )
a000e8d8: e2503000 subs r3, r0, #0
#include <rtems/seterr.h>
int sigemptyset(
sigset_t *set
)
{
a000e8dc: e52de004 push {lr} ; (str lr, [sp, #-4]!)
if ( !set )
a000e8e0: 1a000004 bne a000e8f8 <sigemptyset+0x20>
rtems_set_errno_and_return_minus_one( EINVAL );
a000e8e4: eb0009e0 bl a001106c <__errno> <== NOT EXECUTED
a000e8e8: e3a03016 mov r3, #22 <== NOT EXECUTED
a000e8ec: e5803000 str r3, [r0] <== NOT EXECUTED
a000e8f0: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000e8f4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
*set = 0;
a000e8f8: e3a00000 mov r0, #0 a000e8fc: e5830000 str r0, [r3]
return 0; }
a000e900: e49df004 pop {pc} ; (ldr pc, [sp], #4)
a000bf9c <sigfillset>:
int sigfillset(
sigset_t *set
)
{
if ( !set )
a000bf9c: e3500000 cmp r0, #0 <== NOT EXECUTED
#include <rtems/seterr.h>
int sigfillset(
sigset_t *set
)
{
a000bfa0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( !set )
a000bfa4: 1a000004 bne a000bfbc <sigfillset+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000bfa8: eb002183 bl a00145bc <__errno> <== NOT EXECUTED
a000bfac: e3a03016 mov r3, #22 <== NOT EXECUTED
a000bfb0: e5803000 str r3, [r0] <== NOT EXECUTED
a000bfb4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000bfb8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
*set = SIGNAL_ALL_MASK;
a000bfbc: e3e03000 mvn r3, #0 <== NOT EXECUTED a000bfc0: e5803000 str r3, [r0] <== NOT EXECUTED
return 0;
a000bfc4: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a000bfc8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000bfcc <sigismember>:
int sigismember(
const sigset_t *set,
int signo
)
{
if ( !set )
a000bfcc: e3500000 cmp r0, #0 <== NOT EXECUTED
int sigismember(
const sigset_t *set,
int signo
)
{
a000bfd0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( !set )
a000bfd4: 0a000004 beq a000bfec <sigismember+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !signo )
a000bfd8: e3510000 cmp r1, #0 <== NOT EXECUTED a000bfdc: 0a00000d beq a000c018 <sigismember+0x4c> <== NOT EXECUTED a000bfe0: e2411001 sub r1, r1, #1 <== NOT EXECUTED
return 0;
if ( !is_valid_signo(signo) )
a000bfe4: e351001f cmp r1, #31 <== NOT EXECUTED a000bfe8: 9a000004 bls a000c000 <sigismember+0x34> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000bfec: eb002172 bl a00145bc <__errno> <== NOT EXECUTED
a000bff0: e3a03016 mov r3, #22 <== NOT EXECUTED
a000bff4: e5803000 str r3, [r0] <== NOT EXECUTED
a000bff8: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000bffc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
if ( *set & signo_to_mask(signo) )
a000c000: e5903000 ldr r3, [r0] <== NOT EXECUTED
const sigset_t *set,
int signo
)
{
if ( !set )
rtems_set_errno_and_return_minus_one( EINVAL );
a000c004: e3a02001 mov r2, #1 <== NOT EXECUTED
a000c008: e0133112 ands r3, r3, r2, lsl r1 <== NOT EXECUTED
a000c00c: 03a00000 moveq r0, #0 <== NOT EXECUTED
a000c010: 13a00001 movne r0, #1 <== NOT EXECUTED
a000c014: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
if ( !signo )
return 0;
a000c018: e1a00001 mov r0, r1 <== NOT EXECUTED
if ( *set & signo_to_mask(signo) )
return 1;
return 0;
}
a000c01c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009b78 <signal>:
sighandler_t signal(
int signum,
sighandler_t handler
)
{
a0009b78: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a0009b7c: e24dd018 sub sp, sp, #24 <== NOT EXECUTED
struct sigaction s;
struct sigaction old;
s.sa_handler = handler ;
sigemptyset(&s.sa_mask);
a0009b80: e28d500c add r5, sp, #12 <== NOT EXECUTED
sighandler_t signal(
int signum,
sighandler_t handler
)
{
a0009b84: e1a04000 mov r4, r0 <== NOT EXECUTED
struct sigaction s;
struct sigaction old;
s.sa_handler = handler ;
sigemptyset(&s.sa_mask);
a0009b88: e2850004 add r0, r5, #4 <== NOT EXECUTED
)
{
struct sigaction s;
struct sigaction old;
s.sa_handler = handler ;
a0009b8c: e58d1014 str r1, [sp, #20] <== NOT EXECUTED
sigemptyset(&s.sa_mask);
a0009b90: ebffffed bl a0009b4c <sigemptyset> <== NOT EXECUTED
s.sa_flags = SA_RESTART | SA_INTERRUPT | SA_NOMASK; s.sa_restorer= NULL ; #elif defined(signal_like_SVR4) s.sa_flags = SA_RESTART; #else s.sa_flags = 0;
a0009b94: e3a03000 mov r3, #0 <== NOT EXECUTED
#endif
sigaction( signum, &s, &old );
a0009b98: e1a00004 mov r0, r4 <== NOT EXECUTED a0009b9c: e1a01005 mov r1, r5 <== NOT EXECUTED a0009ba0: e1a0200d mov r2, sp <== NOT EXECUTED
s.sa_flags = SA_RESTART | SA_INTERRUPT | SA_NOMASK; s.sa_restorer= NULL ; #elif defined(signal_like_SVR4) s.sa_flags = SA_RESTART; #else s.sa_flags = 0;
a0009ba4: e58d300c str r3, [sp, #12] <== NOT EXECUTED
#endif
sigaction( signum, &s, &old );
a0009ba8: ebffff92 bl a00099f8 <sigaction> <== NOT EXECUTED
return (sighandler_t) old.sa_handler; }
a0009bac: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED
a0009bb0: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a0009bb4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0009df0 <sigpending>:
sigset_t *set
)
{
POSIX_API_Control *api;
if ( !set )
a0009df0: e3500000 cmp r0, #0 <== NOT EXECUTED
#include <rtems/seterr.h>
int sigpending(
sigset_t *set
)
{
a0009df4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
POSIX_API_Control *api;
if ( !set )
a0009df8: 1a000004 bne a0009e10 <sigpending+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0009dfc: eb00212b bl a00122b0 <__errno> <== NOT EXECUTED
a0009e00: e3a03016 mov r3, #22 <== NOT EXECUTED
a0009e04: e5803000 str r3, [r0] <== NOT EXECUTED
a0009e08: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009e0c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a0009e10: e59f3020 ldr r3, [pc, #32] ; a0009e38 <sigpending+0x48> <== NOT EXECUTED
*set = api->signals_pending | _POSIX_signals_Pending;
a0009e14: e59f2020 ldr r2, [pc, #32] ; a0009e3c <sigpending+0x4c> <== NOT EXECUTED
POSIX_API_Control *api;
if ( !set )
rtems_set_errno_and_return_minus_one( EINVAL );
api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
a0009e18: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
*set = api->signals_pending | _POSIX_signals_Pending;
a0009e1c: e5922000 ldr r2, [r2] <== NOT EXECUTED a0009e20: e59330fc ldr r3, [r3, #252] ; 0xfc <== NOT EXECUTED a0009e24: e59330d4 ldr r3, [r3, #212] ; 0xd4 <== NOT EXECUTED a0009e28: e1823003 orr r3, r2, r3 <== NOT EXECUTED a0009e2c: e5803000 str r3, [r0] <== NOT EXECUTED
return 0;
a0009e30: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a0009e34: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0009e40 <sigprocmask>:
/*
* P1003.1c/Draft 10, p. 38 maps sigprocmask to pthread_sigmask.
*/
#if defined(RTEMS_POSIX_API)
return pthread_sigmask( how, set, oset );
a0009e40: ea00177e b a000fc40 <pthread_sigmask> <== NOT EXECUTED
a000c074 <sigqueue>:
int sigqueue(
pid_t pid,
int signo,
const union sigval value
)
{
a000c074: e92d4001 push {r0, lr} <== NOT EXECUTED
a000c078: e28d3004 add r3, sp, #4 <== NOT EXECUTED
a000c07c: e5232004 str r2, [r3, #-4]! <== NOT EXECUTED
return killinfo( pid, signo, &value );
a000c080: e1a0200d mov r2, sp <== NOT EXECUTED a000c084: eb001614 bl a00118dc <killinfo> <== NOT EXECUTED
}
a000c088: e8bd8008 pop {r3, pc} <== NOT EXECUTED
a000c08c <sigsuspend>:
#include <rtems/seterr.h>
int sigsuspend(
const sigset_t *sigmask
)
{
a000c08c: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED
a000c090: e1a05000 mov r5, r0 <== NOT EXECUTED
/* * We use SIG_BLOCK and not SIG_SETMASK because there may be * signals which might be pending, which might get caught here. * We want the signals to be caught inside sigtimedwait. */ status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
a000c094: e28d4004 add r4, sp, #4 <== NOT EXECUTED a000c098: e1a01005 mov r1, r5 <== NOT EXECUTED a000c09c: e1a02004 mov r2, r4 <== NOT EXECUTED a000c0a0: e3a00001 mov r0, #1 <== NOT EXECUTED a000c0a4: ebfffff1 bl a000c070 <sigprocmask> <== NOT EXECUTED
current_unblocked_signals = ~(*sigmask);
a000c0a8: e5953000 ldr r3, [r5] <== NOT EXECUTED a000c0ac: e28d0008 add r0, sp, #8 <== NOT EXECUTED
status = sigtimedwait( ¤t_unblocked_signals, NULL, NULL );
a000c0b0: e3a01000 mov r1, #0 <== NOT EXECUTED
* signals which might be pending, which might get caught here.
* We want the signals to be caught inside sigtimedwait.
*/
status = sigprocmask( SIG_BLOCK, sigmask, &saved_signals_blocked );
current_unblocked_signals = ~(*sigmask);
a000c0b4: e1e03003 mvn r3, r3 <== NOT EXECUTED a000c0b8: e5203008 str r3, [r0, #-8]! <== NOT EXECUTED
status = sigtimedwait( ¤t_unblocked_signals, NULL, NULL );
a000c0bc: e1a02001 mov r2, r1 <== NOT EXECUTED a000c0c0: e1a0000d mov r0, sp <== NOT EXECUTED a000c0c4: eb00001a bl a000c134 <sigtimedwait> <== NOT EXECUTED
(void) sigprocmask( SIG_SETMASK, &saved_signals_blocked, NULL );
a000c0c8: e3a00000 mov r0, #0 <== NOT EXECUTED a000c0cc: e1a01004 mov r1, r4 <== NOT EXECUTED a000c0d0: e1a02000 mov r2, r0 <== NOT EXECUTED a000c0d4: ebffffe5 bl a000c070 <sigprocmask> <== NOT EXECUTED
*/
#if defined(RTEMS_DEBUG)
assert( status != -1 );
#endif
rtems_set_errno_and_return_minus_one( EINTR );
a000c0d8: eb002137 bl a00145bc <__errno> <== NOT EXECUTED a000c0dc: e3a03004 mov r3, #4 <== NOT EXECUTED a000c0e0: e5803000 str r3, [r0] <== NOT EXECUTED
}
a000c0e4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000c0e8: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED
a000a13c <sigtimedwait>:
int sigtimedwait(
const sigset_t *set,
siginfo_t *info,
const struct timespec *timeout
)
{
a000a13c: e92d45ff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED
ISR_Level level;
/*
* Error check parameters before disabling interrupts.
*/
if ( !set )
a000a140: e2506000 subs r6, r0, #0 <== NOT EXECUTED
int sigtimedwait(
const sigset_t *set,
siginfo_t *info,
const struct timespec *timeout
)
{
a000a144: e1a04001 mov r4, r1 <== NOT EXECUTED a000a148: e1a05002 mov r5, r2 <== NOT EXECUTED
ISR_Level level;
/*
* Error check parameters before disabling interrupts.
*/
if ( !set )
a000a14c: 0a000009 beq a000a178 <sigtimedwait+0x3c> <== NOT EXECUTED
/* NOTE: This is very specifically a RELATIVE not ABSOLUTE time
* in the Open Group specification.
*/
interval = 0;
if ( timeout ) {
a000a150: e3520000 cmp r2, #0 <== NOT EXECUTED a000a154: 0a00000a beq a000a184 <sigtimedwait+0x48> <== NOT EXECUTED
if ( !_Timespec_Is_valid( timeout ) )
a000a158: e1a00002 mov r0, r2 <== NOT EXECUTED a000a15c: eb000d7b bl a000d750 <_Timespec_Is_valid> <== NOT EXECUTED a000a160: e3500000 cmp r0, #0 <== NOT EXECUTED a000a164: 0a000003 beq a000a178 <sigtimedwait+0x3c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
interval = _Timespec_To_ticks( timeout );
a000a168: e1a00005 mov r0, r5 <== NOT EXECUTED a000a16c: eb000d9a bl a000d7dc <_Timespec_To_ticks> <== NOT EXECUTED
if ( !interval )
a000a170: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000a174: 1a000003 bne a000a188 <sigtimedwait+0x4c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000a178: eb0021f5 bl a0012954 <__errno> <== NOT EXECUTED a000a17c: e3a03016 mov r3, #22 <== NOT EXECUTED a000a180: ea000057 b a000a2e4 <sigtimedwait+0x1a8> <== NOT EXECUTED
/* NOTE: This is very specifically a RELATIVE not ABSOLUTE time
* in the Open Group specification.
*/
interval = 0;
a000a184: e1a01002 mov r1, r2 <== NOT EXECUTED
* Initialize local variables.
*/
the_info = ( info ) ? info : &signal_information;
the_thread = _Thread_Executing;
a000a188: e59f3168 ldr r3, [pc, #360] ; a000a2f8 <sigtimedwait+0x1bc><== NOT EXECUTED
/*
* Initialize local variables.
*/
the_info = ( info ) ? info : &signal_information;
a000a18c: e3540000 cmp r4, #0 <== NOT EXECUTED a000a190: 028d4004 addeq r4, sp, #4 <== NOT EXECUTED
the_thread = _Thread_Executing;
a000a194: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED
api = the_thread->API_Extensions[ THREAD_API_POSIX ];
a000a198: e59380fc ldr r8, [r3, #252] ; 0xfc <== NOT EXECUTED
static inline uint32_t arm_interrupt_disable( void )
{
uint32_t arm_switch_reg;
uint32_t level;
__asm__ volatile (
a000a19c: e10f7000 mrs r7, CPSR <== NOT EXECUTED a000a1a0: e3872080 orr r2, r7, #128 ; 0x80 <== NOT EXECUTED a000a1a4: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED
*/
/* API signals pending? */
_ISR_Disable( level );
if ( *set & api->signals_pending ) {
a000a1a8: e5962000 ldr r2, [r6] <== NOT EXECUTED a000a1ac: e59800d4 ldr r0, [r8, #212] ; 0xd4 <== NOT EXECUTED a000a1b0: e012a000 ands sl, r2, r0 <== NOT EXECUTED a000a1b4: 0a00000e beq a000a1f4 <sigtimedwait+0xb8> <== NOT EXECUTED
/* XXX real info later */
the_info->si_signo = _POSIX_signals_Get_lowest( api->signals_pending );
a000a1b8: ebffffcd bl a000a0f4 <_POSIX_signals_Get_lowest> <== NOT EXECUTED
_POSIX_signals_Clear_signals(
a000a1bc: e3a03000 mov r3, #0 <== NOT EXECUTED
/* API signals pending? */
_ISR_Disable( level );
if ( *set & api->signals_pending ) {
/* XXX real info later */
the_info->si_signo = _POSIX_signals_Get_lowest( api->signals_pending );
a000a1c0: e5840000 str r0, [r4] <== NOT EXECUTED a000a1c4: e1a01000 mov r1, r0 <== NOT EXECUTED
_POSIX_signals_Clear_signals(
a000a1c8: e1a02004 mov r2, r4 <== NOT EXECUTED a000a1cc: e1a00008 mov r0, r8 <== NOT EXECUTED a000a1d0: e58d3000 str r3, [sp] <== NOT EXECUTED a000a1d4: eb0016ae bl a000fc94 <_POSIX_signals_Clear_signals> <== NOT EXECUTED
static inline void arm_interrupt_enable( uint32_t level )
{
ARM_SWITCH_REGISTERS;
__asm__ volatile (
a000a1d8: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
false,
false
);
_ISR_Enable( level );
the_info->si_code = SI_USER;
a000a1dc: e3a03001 mov r3, #1 <== NOT EXECUTED a000a1e0: e5843004 str r3, [r4, #4] <== NOT EXECUTED
the_info->si_value.sival_int = 0;
a000a1e4: e3a03000 mov r3, #0 <== NOT EXECUTED a000a1e8: e5843008 str r3, [r4, #8] <== NOT EXECUTED
return the_info->si_signo;
a000a1ec: e5945000 ldr r5, [r4] <== NOT EXECUTED a000a1f0: ea00003d b a000a2ec <sigtimedwait+0x1b0> <== NOT EXECUTED
}
/* Process pending signals? */
if ( *set & _POSIX_signals_Pending ) {
a000a1f4: e59f0100 ldr r0, [pc, #256] ; a000a2fc <sigtimedwait+0x1c0><== NOT EXECUTED a000a1f8: e5900000 ldr r0, [r0] <== NOT EXECUTED a000a1fc: e1120000 tst r2, r0 <== NOT EXECUTED a000a200: 0a00000e beq a000a240 <sigtimedwait+0x104> <== NOT EXECUTED
signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );
a000a204: ebffffba bl a000a0f4 <_POSIX_signals_Get_lowest> <== NOT EXECUTED a000a208: e1a05000 mov r5, r0 <== NOT EXECUTED
_POSIX_signals_Clear_signals( api, signo, the_info, true, false );
a000a20c: e1a01005 mov r1, r5 <== NOT EXECUTED a000a210: e1a00008 mov r0, r8 <== NOT EXECUTED a000a214: e1a02004 mov r2, r4 <== NOT EXECUTED a000a218: e3a03001 mov r3, #1 <== NOT EXECUTED a000a21c: e58da000 str sl, [sp] <== NOT EXECUTED a000a220: eb00169b bl a000fc94 <_POSIX_signals_Clear_signals> <== NOT EXECUTED a000a224: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
_ISR_Enable( level );
the_info->si_signo = signo;
the_info->si_code = SI_USER;
a000a228: e3a03001 mov r3, #1 <== NOT EXECUTED a000a22c: e5843004 str r3, [r4, #4] <== NOT EXECUTED
the_info->si_value.sival_int = 0;
a000a230: e3a03000 mov r3, #0 <== NOT EXECUTED
if ( *set & _POSIX_signals_Pending ) {
signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );
_POSIX_signals_Clear_signals( api, signo, the_info, true, false );
_ISR_Enable( level );
the_info->si_signo = signo;
a000a234: e5845000 str r5, [r4] <== NOT EXECUTED
the_info->si_code = SI_USER;
the_info->si_value.sival_int = 0;
a000a238: e5843008 str r3, [r4, #8] <== NOT EXECUTED
return signo;
a000a23c: ea00002a b a000a2ec <sigtimedwait+0x1b0> <== NOT EXECUTED
}
the_info->si_signo = -1;
a000a240: e3e02000 mvn r2, #0 <== NOT EXECUTED a000a244: e5842000 str r2, [r4] <== NOT EXECUTED a000a248: e59f20b0 ldr r2, [pc, #176] ; a000a300 <sigtimedwait+0x1c4><== NOT EXECUTED a000a24c: e5920000 ldr r0, [r2] <== NOT EXECUTED a000a250: e2800001 add r0, r0, #1 <== NOT EXECUTED a000a254: e5820000 str r0, [r2] <== NOT EXECUTED
_Thread_Disable_dispatch();
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
the_thread->Wait.return_code = EINTR;
a000a258: e3a00004 mov r0, #4 <== NOT EXECUTED a000a25c: e5830034 str r0, [r3, #52] ; 0x34 <== NOT EXECUTED
the_thread->Wait.option = *set;
a000a260: e5960000 ldr r0, [r6] <== NOT EXECUTED
}
the_info->si_signo = -1;
_Thread_Disable_dispatch();
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
a000a264: e59f2098 ldr r2, [pc, #152] ; a000a304 <sigtimedwait+0x1c8><== NOT EXECUTED
the_thread->Wait.return_code = EINTR;
the_thread->Wait.option = *set;
the_thread->Wait.return_argument = the_info;
a000a268: e5834028 str r4, [r3, #40] ; 0x28 <== NOT EXECUTED
the_info->si_signo = -1;
_Thread_Disable_dispatch();
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
the_thread->Wait.return_code = EINTR;
the_thread->Wait.option = *set;
a000a26c: e5830030 str r0, [r3, #48] ; 0x30 <== NOT EXECUTED
}
the_info->si_signo = -1;
_Thread_Disable_dispatch();
the_thread->Wait.queue = &_POSIX_signals_Wait_queue;
a000a270: e5832044 str r2, [r3, #68] ; 0x44 <== 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;
a000a274: e3a03001 mov r3, #1 <== NOT EXECUTED a000a278: e5823030 str r3, [r2, #48] ; 0x30 <== NOT EXECUTED a000a27c: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED
the_thread->Wait.return_code = EINTR;
the_thread->Wait.option = *set;
the_thread->Wait.return_argument = the_info;
_Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue );
_ISR_Enable( level );
_Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval );
a000a280: e59f007c ldr r0, [pc, #124] ; a000a304 <sigtimedwait+0x1c8><== NOT EXECUTED a000a284: e59f207c ldr r2, [pc, #124] ; a000a308 <sigtimedwait+0x1cc><== NOT EXECUTED a000a288: eb000b9e bl a000d108 <_Thread_queue_Enqueue_with_handler> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a28c: eb000a78 bl a000cc74 <_Thread_Enable_dispatch> <== NOT EXECUTED
/*
* When the thread is set free by a signal, it is need to eliminate
* the signal.
*/
_POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false );
a000a290: e3a03000 mov r3, #0 <== NOT EXECUTED a000a294: e58d3000 str r3, [sp] <== NOT EXECUTED a000a298: e1a00008 mov r0, r8 <== NOT EXECUTED a000a29c: e5941000 ldr r1, [r4] <== NOT EXECUTED a000a2a0: e1a02004 mov r2, r4 <== NOT EXECUTED a000a2a4: eb00167a bl a000fc94 <_POSIX_signals_Clear_signals> <== NOT EXECUTED
/* Set errno only if return code is not EINTR or
* if EINTR was caused by a signal being caught, which
* was not in our set.
*/
if ( (_Thread_Executing->Wait.return_code != EINTR)
a000a2a8: e59f3048 ldr r3, [pc, #72] ; a000a2f8 <sigtimedwait+0x1bc> <== NOT EXECUTED a000a2ac: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a2b0: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a000a2b4: e3530004 cmp r3, #4 <== NOT EXECUTED a000a2b8: 1a000005 bne a000a2d4 <sigtimedwait+0x198> <== NOT EXECUTED
|| !(*set & signo_to_mask( the_info->si_signo )) ) {
a000a2bc: e5945000 ldr r5, [r4] <== NOT EXECUTED a000a2c0: e5963000 ldr r3, [r6] <== NOT EXECUTED a000a2c4: e3a01001 mov r1, #1 <== NOT EXECUTED a000a2c8: e2452001 sub r2, r5, #1 <== NOT EXECUTED a000a2cc: e0133211 ands r3, r3, r1, lsl r2 <== NOT EXECUTED a000a2d0: 1a000005 bne a000a2ec <sigtimedwait+0x1b0> <== NOT EXECUTED
errno = _Thread_Executing->Wait.return_code;
a000a2d4: eb00219e bl a0012954 <__errno> <== NOT EXECUTED a000a2d8: e59f3018 ldr r3, [pc, #24] ; a000a2f8 <sigtimedwait+0x1bc> <== NOT EXECUTED a000a2dc: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a000a2e0: e5933034 ldr r3, [r3, #52] ; 0x34 <== NOT EXECUTED a000a2e4: e5803000 str r3, [r0] <== NOT EXECUTED
return -1;
a000a2e8: e3e05000 mvn r5, #0 <== NOT EXECUTED
}
return the_info->si_signo;
}
a000a2ec: e1a00005 mov r0, r5 <== NOT EXECUTED
a000a2f0: e28dd010 add sp, sp, #16 <== NOT EXECUTED
a000a2f4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED
a000c30c <sigwait>:
int sigwait(
const sigset_t *set,
int *sig
)
{
a000c30c: e92d4010 push {r4, lr} <== NOT EXECUTED
a000c310: e1a04001 mov r4, r1 <== NOT EXECUTED
int status;
status = sigtimedwait( set, NULL, NULL );
a000c314: e3a01000 mov r1, #0 <== NOT EXECUTED a000c318: e1a02001 mov r2, r1 <== NOT EXECUTED a000c31c: ebffff84 bl a000c134 <sigtimedwait> <== NOT EXECUTED
if ( status != -1 ) {
a000c320: e3700001 cmn r0, #1 <== NOT EXECUTED a000c324: 0a000004 beq a000c33c <sigwait+0x30> <== NOT EXECUTED
if ( sig )
a000c328: e3540000 cmp r4, #0 <== NOT EXECUTED a000c32c: 0a000005 beq a000c348 <sigwait+0x3c> <== NOT EXECUTED
*sig = status;
a000c330: e5840000 str r0, [r4] <== NOT EXECUTED
return 0;
a000c334: e3a00000 mov r0, #0 <== NOT EXECUTED
a000c338: e8bd8010 pop {r4, pc} <== NOT EXECUTED
}
return errno;
a000c33c: eb00209e bl a00145bc <__errno> <== NOT EXECUTED
a000c340: e5900000 ldr r0, [r0] <== NOT EXECUTED
a000c344: e8bd8010 pop {r4, pc} <== NOT EXECUTED
status = sigtimedwait( set, NULL, NULL );
if ( status != -1 ) {
if ( sig )
*sig = status;
return 0;
a000c348: e1a00004 mov r0, r4 <== NOT EXECUTED
}
return errno;
}
a000c34c: e8bd8010 pop {r4, pc} <== NOT EXECUTED
a000c304 <sigwaitinfo>:
int sigwaitinfo(
const sigset_t *set,
siginfo_t *info
)
{
return sigtimedwait( set, info, NULL );
a000c304: e3a02000 mov r2, #0 <== NOT EXECUTED a000c308: eaffff89 b a000c134 <sigtimedwait> <== NOT EXECUTED
a0008084 <siproc>:
int i;
/*
* Obtain output semaphore if character will be echoed
*/
if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
a0008084: e591203c ldr r2, [r1, #60] ; 0x3c <== NOT EXECUTED a0008088: e59f304c ldr r3, [pc, #76] ; a00080dc <siproc+0x58> <== NOT EXECUTED
/*
* Process input character, with semaphore.
*/
static int
siproc (unsigned char c, struct rtems_termios_tty *tty)
{
a000808c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
int i;
/*
* Obtain output semaphore if character will be echoed
*/
if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
a0008090: e0023003 and r3, r2, r3 <== NOT EXECUTED a0008094: e3530000 cmp r3, #0 <== NOT EXECUTED
/*
* Process input character, with semaphore.
*/
static int
siproc (unsigned char c, struct rtems_termios_tty *tty)
{
a0008098: e1a04001 mov r4, r1 <== NOT EXECUTED a000809c: e1a05000 mov r5, r0 <== NOT EXECUTED
int i;
/*
* Obtain output semaphore if character will be echoed
*/
if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
a00080a0: 0a00000b beq a00080d4 <siproc+0x50> <== NOT EXECUTED
rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
a00080a4: e5910018 ldr r0, [r1, #24] <== NOT EXECUTED a00080a8: e3a01000 mov r1, #0 <== NOT EXECUTED a00080ac: e1a02001 mov r2, r1 <== NOT EXECUTED a00080b0: eb0004be bl a00093b0 <rtems_semaphore_obtain> <== NOT EXECUTED
i = iproc (c, tty);
a00080b4: e1a01004 mov r1, r4 <== NOT EXECUTED a00080b8: e1a00005 mov r0, r5 <== NOT EXECUTED a00080bc: ebffff88 bl a0007ee4 <iproc> <== NOT EXECUTED a00080c0: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_semaphore_release (tty->osem);
a00080c4: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED a00080c8: eb0004fe bl a00094c8 <rtems_semaphore_release> <== NOT EXECUTED
}
else {
i = iproc (c, tty);
}
return i;
}
a00080cc: e1a00005 mov r0, r5 <== NOT EXECUTED
a00080d0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a00080d4: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
i = iproc (c, tty);
rtems_semaphore_release (tty->osem);
}
else {
i = iproc (c, tty);
a00080d8: eaffff81 b a0007ee4 <iproc> <== NOT EXECUTED
a0007028 <stat>:
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
a0007028: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
a000702c: e2515000 subs r5, r1, #0 <== NOT EXECUTED
int _STAT_NAME(
const char *path,
struct stat *buf
)
{
a0007030: e24dd018 sub sp, sp, #24 <== NOT EXECUTED a0007034: e1a06000 mov r6, r0 <== NOT EXECUTED
/*
* Check to see if we were passed a valid pointer.
*/
if ( !buf )
a0007038: 1a000003 bne a000704c <stat+0x24> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a000703c: eb002134 bl a000f514 <__errno> <== NOT EXECUTED a0007040: e3a0300e mov r3, #14 <== NOT EXECUTED a0007044: e5803000 str r3, [r0] <== NOT EXECUTED a0007048: ea000016 b a00070a8 <stat+0x80> <== NOT EXECUTED
status = rtems_filesystem_evaluate_path( path, strlen( path ),
a000704c: eb00249f bl a00102d0 <strlen> <== NOT EXECUTED a0007050: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0007054: e3a03001 mov r3, #1 <== NOT EXECUTED a0007058: e1a01000 mov r1, r0 <== NOT EXECUTED a000705c: e58d3000 str r3, [sp] <== NOT EXECUTED a0007060: e1a00006 mov r0, r6 <== NOT EXECUTED a0007064: e3a02000 mov r2, #0 <== NOT EXECUTED a0007068: e1a03004 mov r3, r4 <== NOT EXECUTED a000706c: ebfffc4f bl a00061b0 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
a0007070: e2501000 subs r1, r0, #0 <== NOT EXECUTED a0007074: 1a00000b bne a00070a8 <stat+0x80> <== NOT EXECUTED
/*
* Zero out the stat structure so the various support
* versions of stat don't have to.
*/
memset( buf, 0, sizeof(struct stat) );
a0007078: e3a02048 mov r2, #72 ; 0x48 <== NOT EXECUTED a000707c: e1a00005 mov r0, r5 <== NOT EXECUTED a0007080: eb002388 bl a000fea8 <memset> <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
a0007084: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a0007088: e1a01005 mov r1, r5 <== NOT EXECUTED a000708c: e1a00004 mov r0, r4 <== NOT EXECUTED a0007090: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a0007094: e12fff33 blx r3 <== NOT EXECUTED a0007098: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a000709c: e1a00004 mov r0, r4 <== NOT EXECUTED a00070a0: ebfffc72 bl a0006270 <rtems_filesystem_freenode> <== NOT EXECUTED
return status;
a00070a4: ea000000 b a00070ac <stat+0x84> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
status = rtems_filesystem_evaluate_path( path, strlen( path ),
0, &loc, _STAT_FOLLOW_LINKS );
if ( status != 0 )
return -1;
a00070a8: e3e05000 mvn r5, #0 <== NOT EXECUTED
status = (*loc.handlers->fstat_h)( &loc, buf );
rtems_filesystem_freenode( &loc );
return status;
}
a00070ac: e1a00005 mov r0, r5 <== NOT EXECUTED
a00070b0: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a00070b4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0009890 <statvfs>:
#include <sys/statvfs.h>
int
statvfs (const char *path, struct statvfs *sb)
{
a0009890: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a0009894: e24dd018 sub sp, sp, #24 <== NOT EXECUTED
a0009898: e1a05001 mov r5, r1 <== NOT EXECUTED
a000989c: e1a06000 mov r6, r0 <== NOT EXECUTED
* The root node of the mounted filesytem.
* The node for the directory that the fileystem is mounted on.
* The mount entry that is being refered to.
*/
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
a00098a0: eb003149 bl a0015dcc <strlen> <== NOT EXECUTED a00098a4: e28d4004 add r4, sp, #4 <== NOT EXECUTED a00098a8: e3a03001 mov r3, #1 <== NOT EXECUTED a00098ac: e1a01000 mov r1, r0 <== NOT EXECUTED a00098b0: e58d3000 str r3, [sp] <== NOT EXECUTED a00098b4: e1a00006 mov r0, r6 <== NOT EXECUTED a00098b8: e3a02000 mov r2, #0 <== NOT EXECUTED a00098bc: e1a03004 mov r3, r4 <== NOT EXECUTED a00098c0: ebfffafb bl a00084b4 <rtems_filesystem_evaluate_path> <== NOT EXECUTED a00098c4: e2501000 subs r1, r0, #0 <== NOT EXECUTED
return -1;
a00098c8: 13e05000 mvnne r5, #0 <== NOT EXECUTED
* The root node of the mounted filesytem.
* The node for the directory that the fileystem is mounted on.
* The mount entry that is being refered to.
*/
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
a00098cc: 1a00000b bne a0009900 <statvfs+0x70> <== NOT EXECUTED
return -1;
mt_entry = loc.mt_entry;
a00098d0: e59d6014 ldr r6, [sp, #20] <== NOT EXECUTED
fs_mount_root = &mt_entry->mt_fs_root;
memset (sb, 0, sizeof (struct statvfs));
a00098d4: e1a00005 mov r0, r5 <== NOT EXECUTED a00098d8: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED a00098dc: eb002c32 bl a00149ac <memset> <== NOT EXECUTED
result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb );
a00098e0: e5963028 ldr r3, [r6, #40] ; 0x28 <== NOT EXECUTED a00098e4: e1a01005 mov r1, r5 <== NOT EXECUTED a00098e8: e286001c add r0, r6, #28 <== NOT EXECUTED a00098ec: e5933044 ldr r3, [r3, #68] ; 0x44 <== NOT EXECUTED a00098f0: e12fff33 blx r3 <== NOT EXECUTED a00098f4: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a00098f8: e1a00004 mov r0, r4 <== NOT EXECUTED a00098fc: ebfffb1c bl a0008574 <rtems_filesystem_freenode> <== NOT EXECUTED
return result;
}
a0009900: e1a00005 mov r0, r5 <== NOT EXECUTED
a0009904: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a0009908: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0008fc0 <symlink>:
int symlink(
const char *actualpath,
const char *sympath
)
{
a0008fc0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a0008fc4: e24dd01c sub sp, sp, #28 <== NOT EXECUTED
a0008fc8: e1a05001 mov r5, r1 <== NOT EXECUTED
rtems_filesystem_location_info_t loc;
int i;
const char *name_start;
int result;
rtems_filesystem_get_start_loc( sympath, &i, &loc );
a0008fcc: e1a0200d mov r2, sp <== NOT EXECUTED
int symlink(
const char *actualpath,
const char *sympath
)
{
a0008fd0: e1a06000 mov r6, r0 <== NOT EXECUTED
rtems_filesystem_location_info_t loc;
int i;
const char *name_start;
int result;
rtems_filesystem_get_start_loc( sympath, &i, &loc );
a0008fd4: e1a00001 mov r0, r1 <== NOT EXECUTED a0008fd8: e28d1018 add r1, sp, #24 <== NOT EXECUTED a0008fdc: ebffffc0 bl a0008ee4 <rtems_filesystem_get_start_loc> <== NOT EXECUTED
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
a0008fe0: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a0008fe4: e59d0018 ldr r0, [sp, #24] <== NOT EXECUTED a0008fe8: e1a0100d mov r1, sp <== NOT EXECUTED a0008fec: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0008ff0: e0850000 add r0, r5, r0 <== NOT EXECUTED a0008ff4: e28d2014 add r2, sp, #20 <== NOT EXECUTED a0008ff8: e12fff33 blx r3 <== NOT EXECUTED
if ( result != 0 )
a0008ffc: e3500000 cmp r0, #0 <== NOT EXECUTED
rtems_filesystem_location_info_t loc;
int i;
const char *name_start;
int result;
rtems_filesystem_get_start_loc( sympath, &i, &loc );
a0009000: e1a0400d mov r4, sp <== NOT EXECUTED
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
if ( result != 0 )
return -1;
a0009004: 13e05000 mvnne r5, #0 <== NOT EXECUTED
int result;
rtems_filesystem_get_start_loc( sympath, &i, &loc );
result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start );
if ( result != 0 )
a0009008: 1a000008 bne a0009030 <symlink+0x70> <== NOT EXECUTED
return -1;
result = (*loc.ops->symlink_h)( &loc, actualpath, name_start);
a000900c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a0009010: e1a0000d mov r0, sp <== NOT EXECUTED a0009014: e1a01006 mov r1, r6 <== NOT EXECUTED a0009018: e5933038 ldr r3, [r3, #56] ; 0x38 <== NOT EXECUTED a000901c: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED a0009020: e12fff33 blx r3 <== NOT EXECUTED a0009024: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a0009028: e1a0000d mov r0, sp <== NOT EXECUTED a000902c: ebfffb0f bl a0007c70 <rtems_filesystem_freenode> <== NOT EXECUTED
return result;
}
a0009030: e1a00005 mov r0, r5 <== NOT EXECUTED
a0009034: e28dd01c add sp, sp, #28 <== NOT EXECUTED
a0009038: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a00081f8 <sync>:
{
/*
* Walk the one used initially by RTEMS.
*/
_fwalk(_global_impure_ptr, sync_wrapper);
a00081f8: e59f3018 ldr r3, [pc, #24] ; a0008218 <sync+0x20> <== NOT EXECUTED
* We have to extern it here.
*/
extern struct _reent * const _global_impure_ptr __ATTRIBUTE_IMPURE_PTR__;
void sync(void)
{
a00081fc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
/*
* Walk the one used initially by RTEMS.
*/
_fwalk(_global_impure_ptr, sync_wrapper);
a0008200: e5930000 ldr r0, [r3] <== NOT EXECUTED a0008204: e59f1010 ldr r1, [pc, #16] ; a000821c <sync+0x24> <== NOT EXECUTED a0008208: eb002b5e bl a0012f88 <_fwalk> <== NOT EXECUTED
*/
/*
* Now walk all the per-thread reentrancy structures.
*/
rtems_iterate_over_all_threads(sync_per_thread);
a000820c: e59f000c ldr r0, [pc, #12] ; a0008220 <sync+0x28> <== NOT EXECUTED
}
a0008210: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED
*/
/*
* Now walk all the per-thread reentrancy structures.
*/
rtems_iterate_over_all_threads(sync_per_thread);
a0008214: ea000dbb b a000b908 <rtems_iterate_over_all_threads> <== NOT EXECUTED
a000819c <sync_per_thread>:
/*
* The sync_wrapper() function will operate on the current thread's
* reent structure so we will temporarily use that.
*/
this_reent = t->libc_reent;
a000819c: e59030f4 ldr r3, [r0, #244] ; 0xf4 <== NOT EXECUTED
fdatasync(fn);
}
/* iterate over all FILE *'s for this thread */
static void sync_per_thread(Thread_Control *t)
{
a00081a0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
/*
* The sync_wrapper() function will operate on the current thread's
* reent structure so we will temporarily use that.
*/
this_reent = t->libc_reent;
if ( this_reent ) {
a00081a4: e3530000 cmp r3, #0 <== NOT EXECUTED a00081a8: 0a000008 beq a00081d0 <sync_per_thread+0x34> <== NOT EXECUTED
current_reent = _Thread_Executing->libc_reent;
a00081ac: e59f4020 ldr r4, [pc, #32] ; a00081d4 <sync_per_thread+0x38><== NOT EXECUTED
_Thread_Executing->libc_reent = this_reent;
_fwalk (t->libc_reent, sync_wrapper);
a00081b0: e59f1020 ldr r1, [pc, #32] ; a00081d8 <sync_per_thread+0x3c><== NOT EXECUTED
* The sync_wrapper() function will operate on the current thread's
* reent structure so we will temporarily use that.
*/
this_reent = t->libc_reent;
if ( this_reent ) {
current_reent = _Thread_Executing->libc_reent;
a00081b4: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a00081b8: e59250f4 ldr r5, [r2, #244] ; 0xf4 <== NOT EXECUTED
_Thread_Executing->libc_reent = this_reent;
a00081bc: e58230f4 str r3, [r2, #244] ; 0xf4 <== NOT EXECUTED
_fwalk (t->libc_reent, sync_wrapper);
a00081c0: e59000f4 ldr r0, [r0, #244] ; 0xf4 <== NOT EXECUTED a00081c4: eb002b6f bl a0012f88 <_fwalk> <== NOT EXECUTED
_Thread_Executing->libc_reent = current_reent;
a00081c8: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED
a00081cc: e58350f4 str r5, [r3, #244] ; 0xf4 <== NOT EXECUTED
a00081d0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a00081dc <sync_wrapper>:
/* XXX check standards -- Linux version appears to be void */
void _fwalk(struct _reent *, void *);
static void sync_wrapper(FILE *f)
{
a00081dc: e92d4010 push {r4, lr} <== NOT EXECUTED
int fn = fileno(f);
a00081e0: eb002884 bl a00123f8 <fileno> <== NOT EXECUTED a00081e4: e1a04000 mov r4, r0 <== NOT EXECUTED
/* * We are explicitly NOT checking the return values as it does not * matter if they succeed. We are just making a best faith attempt * at both and trusting that we were passed a good FILE pointer. */ fsync(fn);
a00081e8: ebfffb4c bl a0006f20 <fsync> <== NOT EXECUTED
fdatasync(fn);
a00081ec: e1a00004 mov r0, r4 <== NOT EXECUTED
}
a00081f0: e8bd4010 pop {r4, lr} <== NOT EXECUTED
* We are explicitly NOT checking the return values as it does not * matter if they succeed. We are just making a best faith attempt * at both and trusting that we were passed a good FILE pointer. */ fsync(fn); fdatasync(fn);
a00081f4: eafffa93 b a0006c48 <fdatasync> <== NOT EXECUTED
a0008fa4 <sysconf>:
long sysconf(
int name
)
{
if ( name == _SC_CLK_TCK )
a0008fa4: e3500002 cmp r0, #2 <== NOT EXECUTED
*/
long sysconf(
int name
)
{
a0008fa8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
if ( name == _SC_CLK_TCK )
a0008fac: 1a000004 bne a0008fc4 <sysconf+0x20> <== NOT EXECUTED
return (TOD_MICROSECONDS_PER_SECOND /
a0008fb0: e59f304c ldr r3, [pc, #76] ; a0009004 <sysconf+0x60> <== NOT EXECUTED
a0008fb4: e59f004c ldr r0, [pc, #76] ; a0009008 <sysconf+0x64> <== NOT EXECUTED
a0008fb8: e593100c ldr r1, [r3, #12] <== NOT EXECUTED
a0008fbc: eb003096 bl a001521c <__aeabi_uidiv> <== NOT EXECUTED
a0008fc0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick());
if ( name == _SC_OPEN_MAX )
a0008fc4: e3500004 cmp r0, #4 <== NOT EXECUTED
return rtems_libio_number_iops;
a0008fc8: 059f303c ldreq r3, [pc, #60] ; a000900c <sysconf+0x68> <== NOT EXECUTED a0008fcc: 05930000 ldreq r0, [r3] <== NOT EXECUTED
{
if ( name == _SC_CLK_TCK )
return (TOD_MICROSECONDS_PER_SECOND /
rtems_configuration_get_microseconds_per_tick());
if ( name == _SC_OPEN_MAX )
a0008fd0: 049df004 popeq {pc} ; (ldreq pc, [sp], #4) <== NOT EXECUTED
return rtems_libio_number_iops;
if ( name == _SC_GETPW_R_SIZE_MAX )
a0008fd4: e3500033 cmp r0, #51 ; 0x33 <== NOT EXECUTED
return 1024;
a0008fd8: 03a00b01 moveq r0, #1024 ; 0x400 <== NOT EXECUTED
rtems_configuration_get_microseconds_per_tick());
if ( name == _SC_OPEN_MAX )
return rtems_libio_number_iops;
if ( name == _SC_GETPW_R_SIZE_MAX )
a0008fdc: 049df004 popeq {pc} ; (ldreq pc, [sp], #4) <== NOT EXECUTED
return 1024;
if ( name == _SC_PAGESIZE )
a0008fe0: e3500008 cmp r0, #8 <== NOT EXECUTED a0008fe4: 0a000004 beq a0008ffc <sysconf+0x58> <== NOT EXECUTED
#if defined(__sparc__)
if ( name == 515 ) /* Solaris _SC_STACK_PROT */
return 0;
#endif
rtems_set_errno_and_return_minus_one( EINVAL );
a0008fe8: eb00217d bl a00115e4 <__errno> <== NOT EXECUTED
a0008fec: e3a03016 mov r3, #22 <== NOT EXECUTED
a0008ff0: e5803000 str r3, [r0] <== NOT EXECUTED
a0008ff4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0008ff8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
if ( name == _SC_GETPW_R_SIZE_MAX )
return 1024;
if ( name == _SC_PAGESIZE )
return PAGE_SIZE;
a0008ffc: e3a00a01 mov r0, #4096 ; 0x1000 <== NOT EXECUTED
if ( name == 515 ) /* Solaris _SC_STACK_PROT */
return 0;
#endif
rtems_set_errno_and_return_minus_one( EINVAL );
}
a0009000: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000aa08 <tcdrain>:
int tcdrain(
int fd
)
{
return ioctl( fd, RTEMS_IO_TCDRAIN, 0 );
a000aa08: e3a01003 mov r1, #3 <== NOT EXECUTED a000aa0c: e3a02000 mov r2, #0 <== NOT EXECUTED a000aa10: ea001c0c b a0011a48 <ioctl> <== NOT EXECUTED
a000707c <tcflow>:
int tcflow (
int fd __attribute__((unused)),
int action
)
{
a000707c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
case TCOOFF:
case TCOON:
case TCIOFF:
case TCION:
default:
rtems_set_errno_and_return_minus_one( EINVAL );
a0007080: eb002091 bl a000f2cc <__errno> <== NOT EXECUTED a0007084: e3a03016 mov r3, #22 <== NOT EXECUTED a0007088: e5803000 str r3, [r0] <== NOT EXECUTED
/* fd is not validated */
/* When this is supported, implement it here */
rtems_set_errno_and_return_minus_one( ENOTSUP );
}
a000708c: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0007090: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a0007094 <tcflush>:
int tcflush (
int fd __attribute__((unused)),
int queue
)
{
a0007094: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
switch (queue) {
case TCIFLUSH:
case TCOFLUSH:
case TCIOFLUSH:
default:
rtems_set_errno_and_return_minus_one( EINVAL );
a0007098: eb00208b bl a000f2cc <__errno> <== NOT EXECUTED a000709c: e3a03016 mov r3, #22 <== NOT EXECUTED a00070a0: e5803000 str r3, [r0] <== NOT EXECUTED
/* fd is not validated */
/* When this is supported, implement it here */
rtems_set_errno_and_return_minus_one( ENOTSUP );
return 0;
}
a00070a4: e3e00000 mvn r0, #0 <== NOT EXECUTED
a00070a8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000eef8 <tcgetattr>:
int tcgetattr(
int fd,
struct termios *tp
)
{
a000eef8: e1a02001 mov r2, r1 <== NOT EXECUTED
return ioctl( fd, RTEMS_IO_GET_ATTRIBUTES, tp );
a000eefc: e3a01001 mov r1, #1 <== NOT EXECUTED a000ef00: eaffff30 b a000ebc8 <ioctl> <== NOT EXECUTED
a00070ac <tcgetpgrp>:
#include <sys/types.h>
#include <unistd.h>
pid_t tcgetpgrp(int fd __attribute__((unused)))
{
return getpid();
a00070ac: eafffc98 b a0006314 <getpid> <== NOT EXECUTED
a00070b0 <tcsendbreak>:
int tcsendbreak (
int fd __attribute__((unused)),
int duration __attribute__((unused)) )
{
return 0;
}
a00070b0: e3a00000 mov r0, #0 <== NOT EXECUTED a00070b4: e12fff1e bx lr <== NOT EXECUTED
a000ef04 <tcsetattr>:
int fd,
int opt,
struct termios *tp
)
{
switch (opt) {
a000ef04: e3510000 cmp r1, #0 <== NOT EXECUTED
int tcsetattr(
int fd,
int opt,
struct termios *tp
)
{
a000ef08: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a000ef0c: e1a05000 mov r5, r0 <== NOT EXECUTED
a000ef10: e1a04002 mov r4, r2 <== NOT EXECUTED
switch (opt) {
a000ef14: 0a00000a beq a000ef44 <tcsetattr+0x40> <== NOT EXECUTED a000ef18: e3510001 cmp r1, #1 <== NOT EXECUTED a000ef1c: 0a000003 beq a000ef30 <tcsetattr+0x2c> <== NOT EXECUTED
default:
rtems_set_errno_and_return_minus_one( ENOTSUP );
a000ef20: eb000ecc bl a0012a58 <__errno> <== NOT EXECUTED a000ef24: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a000ef28: e5803000 str r3, [r0] <== NOT EXECUTED a000ef2c: ea000009 b a000ef58 <tcsetattr+0x54> <== NOT EXECUTED
case TCSADRAIN:
if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)
a000ef30: e3a01003 mov r1, #3 <== NOT EXECUTED a000ef34: e3a02000 mov r2, #0 <== NOT EXECUTED a000ef38: ebffff22 bl a000ebc8 <ioctl> <== NOT EXECUTED a000ef3c: e3500000 cmp r0, #0 <== NOT EXECUTED a000ef40: ba000004 blt a000ef58 <tcsetattr+0x54> <== NOT EXECUTED
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
a000ef44: e1a00005 mov r0, r5 <== NOT EXECUTED a000ef48: e3a01002 mov r1, #2 <== NOT EXECUTED a000ef4c: e1a02004 mov r2, r4 <== NOT EXECUTED
} }
a000ef50: e8bd4030 pop {r4, r5, lr} <== NOT EXECUTED
return -1;
/*
* Fall through to....
*/
case TCSANOW:
return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );
a000ef54: eaffff1b b a000ebc8 <ioctl> <== NOT EXECUTED
} }
a000ef58: e3e00000 mvn r0, #0 <== NOT EXECUTED
a000ef5c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a00070b8 <tcsetpgrp>:
int tcsetpgrp(
int fd __attribute__((unused)),
pid_t pid __attribute__((unused)) )
{
return 0;
}
a00070b8: e3a00000 mov r0, #0 <== NOT EXECUTED a00070bc: e12fff1e bx lr <== NOT EXECUTED
a000930c <timer_create>:
timer_t *timerid
)
{
POSIX_Timer_Control *ptimer;
if ( clock_id != CLOCK_REALTIME )
a000930c: e3500001 cmp r0, #1 <== NOT EXECUTED
int timer_create(
clockid_t clock_id,
struct sigevent *evp,
timer_t *timerid
)
{
a0009310: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a0009314: e1a04001 mov r4, r1 <== NOT EXECUTED
a0009318: e1a05002 mov r5, r2 <== NOT EXECUTED
POSIX_Timer_Control *ptimer;
if ( clock_id != CLOCK_REALTIME )
a000931c: 1a00000d bne a0009358 <timer_create+0x4c> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !timerid )
a0009320: e3520000 cmp r2, #0 <== NOT EXECUTED a0009324: 0a00000b beq a0009358 <timer_create+0x4c> <== NOT EXECUTED
/*
* The data of the structure evp are checked in order to verify if they
* are coherent.
*/
if (evp != NULL) {
a0009328: e3510000 cmp r1, #0 <== NOT EXECUTED a000932c: 0a00000c beq a0009364 <timer_create+0x58> <== NOT EXECUTED
/* The structure has data */
if ( ( evp->sigev_notify != SIGEV_NONE ) &&
a0009330: e5913000 ldr r3, [r1] <== NOT EXECUTED a0009334: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0009338: e3530001 cmp r3, #1 <== NOT EXECUTED a000933c: 8a000005 bhi a0009358 <timer_create+0x4c> <== NOT EXECUTED
( evp->sigev_notify != SIGEV_SIGNAL ) ) {
/* The value of the field sigev_notify is not valid */
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( !evp->sigev_signo )
a0009340: e5913004 ldr r3, [r1, #4] <== NOT EXECUTED a0009344: e3530000 cmp r3, #0 <== NOT EXECUTED a0009348: 0a000002 beq a0009358 <timer_create+0x4c> <== NOT EXECUTED
static inline bool is_valid_signo(
int signo
)
{
return ((signo) >= 1 && (signo) <= 32 );
a000934c: e2433001 sub r3, r3, #1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( !is_valid_signo(evp->sigev_signo) )
a0009350: e353001f cmp r3, #31 <== NOT EXECUTED a0009354: 9a000002 bls a0009364 <timer_create+0x58> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a0009358: eb00228b bl a0011d8c <__errno> <== NOT EXECUTED a000935c: e3a03016 mov r3, #22 <== NOT EXECUTED a0009360: ea00000a b a0009390 <timer_create+0x84> <== NOT EXECUTED
rtems_fatal_error_occurred( 99 );
}
}
#endif
_Thread_Dispatch_disable_level += 1;
a0009364: e59f30b8 ldr r3, [pc, #184] ; a0009424 <timer_create+0x118><== NOT EXECUTED a0009368: e5932000 ldr r2, [r3] <== NOT EXECUTED a000936c: e2822001 add r2, r2, #1 <== NOT EXECUTED a0009370: e5832000 str r2, [r3] <== NOT EXECUTED
* the inactive chain of free timer control blocks.
*/
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Allocate( void )
{
return (POSIX_Timer_Control *) _Objects_Allocate( &_POSIX_Timer_Information );
a0009374: e59f00ac ldr r0, [pc, #172] ; a0009428 <timer_create+0x11c><== NOT EXECUTED a0009378: eb000748 bl a000b0a0 <_Objects_Allocate> <== NOT EXECUTED
/*
* Allocate a timer
*/
ptimer = _POSIX_Timer_Allocate();
if ( !ptimer ) {
a000937c: e3500000 cmp r0, #0 <== NOT EXECUTED a0009380: 1a000005 bne a000939c <timer_create+0x90> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009384: eb000b6b bl a000c138 <_Thread_Enable_dispatch> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EAGAIN );
a0009388: eb00227f bl a0011d8c <__errno> <== NOT EXECUTED
a000938c: e3a0300b mov r3, #11 <== NOT EXECUTED
a0009390: e5803000 str r3, [r0] <== NOT EXECUTED
a0009394: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009398: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
}
/* The data of the created timer are stored to use them later */
ptimer->state = POSIX_TIMER_STATE_CREATE_NEW;
a000939c: e3a03002 mov r3, #2 <== NOT EXECUTED a00093a0: e5c0303c strb r3, [r0, #60] ; 0x3c <== NOT EXECUTED
ptimer->thread_id = _Thread_Executing->Object.id;
a00093a4: e59f3080 ldr r3, [pc, #128] ; a000942c <timer_create+0x120><== NOT EXECUTED
if ( evp != NULL ) {
a00093a8: e3540000 cmp r4, #0 <== NOT EXECUTED
}
/* The data of the created timer are stored to use them later */
ptimer->state = POSIX_TIMER_STATE_CREATE_NEW;
ptimer->thread_id = _Thread_Executing->Object.id;
a00093ac: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a00093b0: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a00093b4: e5803038 str r3, [r0, #56] ; 0x38 <== NOT EXECUTED
if ( evp != NULL ) {
a00093b8: 0a000005 beq a00093d4 <timer_create+0xc8> <== NOT EXECUTED
ptimer->inf.sigev_notify = evp->sigev_notify;
a00093bc: e5943000 ldr r3, [r4] <== NOT EXECUTED a00093c0: e5803040 str r3, [r0, #64] ; 0x40 <== NOT EXECUTED
ptimer->inf.sigev_signo = evp->sigev_signo;
a00093c4: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a00093c8: e5803044 str r3, [r0, #68] ; 0x44 <== NOT EXECUTED
ptimer->inf.sigev_value = evp->sigev_value;
a00093cc: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a00093d0: e5803048 str r3, [r0, #72] ; 0x48 <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a00093d4: e59f204c ldr r2, [pc, #76] ; a0009428 <timer_create+0x11c> <== NOT EXECUTED
Objects_Information *information,
Objects_Control *the_object,
uint32_t name
)
{
_Objects_Set_local_object(
a00093d8: e5903008 ldr r3, [r0, #8] <== NOT EXECUTED a00093dc: e1d010b8 ldrh r1, [r0, #8] <== NOT EXECUTED
#if defined(RTEMS_DEBUG)
if ( index > information->maximum )
return;
#endif
information->local_table[ index ] = the_object;
a00093e0: e592201c ldr r2, [r2, #28] <== NOT EXECUTED
}
ptimer->overrun = 0;
a00093e4: e3a04000 mov r4, #0 <== NOT EXECUTED a00093e8: e5804068 str r4, [r0, #104] ; 0x68 <== NOT EXECUTED
ptimer->timer_data.it_value.tv_sec = 0;
a00093ec: e580405c str r4, [r0, #92] ; 0x5c <== NOT EXECUTED
ptimer->timer_data.it_value.tv_nsec = 0;
a00093f0: e5804060 str r4, [r0, #96] ; 0x60 <== NOT EXECUTED
ptimer->timer_data.it_interval.tv_sec = 0;
a00093f4: e5804054 str r4, [r0, #84] ; 0x54 <== NOT EXECUTED
ptimer->timer_data.it_interval.tv_nsec = 0;
a00093f8: e5804058 str r4, [r0, #88] ; 0x58 <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a00093fc: e5804018 str r4, [r0, #24] <== NOT EXECUTED
the_watchdog->routine = routine;
a0009400: e580402c str r4, [r0, #44] ; 0x2c <== NOT EXECUTED
the_watchdog->id = id;
a0009404: e5804030 str r4, [r0, #48] ; 0x30 <== NOT EXECUTED
the_watchdog->user_data = user_data;
a0009408: e5804034 str r4, [r0, #52] ; 0x34 <== NOT EXECUTED a000940c: e7820101 str r0, [r2, r1, lsl #2] <== NOT EXECUTED
_Objects_Get_index( the_object->id ),
the_object
);
/* ASSERT: information->is_string == false */
the_object->name.name_u32 = name;
a0009410: e580400c str r4, [r0, #12] <== NOT EXECUTED
_Watchdog_Initialize( &ptimer->Timer, NULL, 0, NULL );
_Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);
*timerid = ptimer->Object.id;
a0009414: e5853000 str r3, [r5] <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009418: eb000b46 bl a000c138 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000941c: e1a00004 mov r0, r4 <== NOT EXECUTED
}
a0009420: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a00099b4 <timer_delete>:
int timer_delete(
timer_t timerid
)
{
a00099b4: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED
a00099b8: e1a01000 mov r1, r0 <== NOT EXECUTED
timer_t id,
Objects_Locations *location
)
{
return (POSIX_Timer_Control *)
_Objects_Get( &_POSIX_Timer_Information, (Objects_Id) id, location );
a00099bc: e1a0200d mov r2, sp <== NOT EXECUTED a00099c0: e59f0058 ldr r0, [pc, #88] ; a0009a20 <timer_delete+0x6c> <== NOT EXECUTED a00099c4: eb000805 bl a000b9e0 <_Objects_Get> <== NOT EXECUTED
*/
POSIX_Timer_Control *ptimer;
Objects_Locations location;
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
a00099c8: e59d5000 ldr r5, [sp] <== NOT EXECUTED a00099cc: e1a04000 mov r4, r0 <== NOT EXECUTED a00099d0: e3550000 cmp r5, #0 <== NOT EXECUTED a00099d4: 1a00000c bne a0009a0c <timer_delete+0x58> <== NOT EXECUTED
case OBJECTS_LOCAL:
_Objects_Close( &_POSIX_Timer_Information, &ptimer->Object );
a00099d8: e1a01004 mov r1, r4 <== NOT EXECUTED a00099dc: e59f003c ldr r0, [pc, #60] ; a0009a20 <timer_delete+0x6c> <== NOT EXECUTED a00099e0: eb000701 bl a000b5ec <_Objects_Close> <== NOT EXECUTED
ptimer->state = POSIX_TIMER_STATE_FREE;
a00099e4: e3a03001 mov r3, #1 <== NOT EXECUTED a00099e8: e5c4303c strb r3, [r4, #60] ; 0x3c <== NOT EXECUTED
(void) _Watchdog_Remove( &ptimer->Timer );
a00099ec: e2840010 add r0, r4, #16 <== NOT EXECUTED a00099f0: eb000f09 bl a000d61c <_Watchdog_Remove> <== NOT EXECUTED
RTEMS_INLINE_ROUTINE void _POSIX_Timer_Free (
POSIX_Timer_Control *the_timer
)
{
_Objects_Free( &_POSIX_Timer_Information, &the_timer->Object );
a00099f4: e59f0024 ldr r0, [pc, #36] ; a0009a20 <timer_delete+0x6c> <== NOT EXECUTED a00099f8: e1a01004 mov r1, r4 <== NOT EXECUTED a00099fc: eb00079f bl a000b880 <_Objects_Free> <== NOT EXECUTED
_POSIX_Timer_Free( ptimer );
_Thread_Enable_dispatch();
a0009a00: eb000afd bl a000c5fc <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a0009a04: e1a00005 mov r0, r5 <== NOT EXECUTED a0009a08: ea000003 b a0009a1c <timer_delete+0x68> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
a0009a0c: eb002305 bl a0012628 <__errno> <== NOT EXECUTED a0009a10: e3a03016 mov r3, #22 <== NOT EXECUTED a0009a14: e5803000 str r3, [r0] <== NOT EXECUTED a0009a18: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a0009a1c: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED
a000a6a8 <timer_getoverrun>:
* its execution, _POSIX_Timer_TSR will have to set this counter to 0.
*/
int timer_getoverrun(
timer_t timerid
)
{
a000a6a8: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
a000a6ac: e1a01000 mov r1, r0 <== NOT EXECUTED
timer_t id,
Objects_Locations *location
)
{
return (POSIX_Timer_Control *)
_Objects_Get( &_POSIX_Timer_Information, (Objects_Id) id, location );
a000a6b0: e1a0200d mov r2, sp <== NOT EXECUTED a000a6b4: e59f0034 ldr r0, [pc, #52] ; a000a6f0 <timer_getoverrun+0x48><== NOT EXECUTED a000a6b8: eb0007e9 bl a000c664 <_Objects_Get> <== NOT EXECUTED
int overrun;
POSIX_Timer_Control *ptimer;
Objects_Locations location;
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
a000a6bc: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a6c0: e3530000 cmp r3, #0 <== NOT EXECUTED a000a6c4: 1a000003 bne a000a6d8 <timer_getoverrun+0x30> <== NOT EXECUTED
case OBJECTS_LOCAL:
overrun = ptimer->overrun;
a000a6c8: e5904068 ldr r4, [r0, #104] ; 0x68 <== NOT EXECUTED
ptimer->overrun = 0;
a000a6cc: e5803068 str r3, [r0, #104] ; 0x68 <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a6d0: eb000aea bl a000d280 <_Thread_Enable_dispatch> <== NOT EXECUTED
return overrun;
a000a6d4: ea000003 b a000a6e8 <timer_getoverrun+0x40> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
a000a6d8: eb002218 bl a0012f40 <__errno> <== NOT EXECUTED a000a6dc: e3a03016 mov r3, #22 <== NOT EXECUTED a000a6e0: e5803000 str r3, [r0] <== NOT EXECUTED a000a6e4: e3e04000 mvn r4, #0 <== NOT EXECUTED
}
a000a6e8: e1a00004 mov r0, r4 <== NOT EXECUTED
a000a6ec: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a000a6f4 <timer_gettime>:
int timer_gettime(
timer_t timerid,
struct itimerspec *value
)
{
a000a6f4: e92d4077 push {r0, r1, r2, r4, r5, r6, lr} <== NOT EXECUTED
POSIX_Timer_Control *ptimer;
Objects_Locations location;
struct timespec current_time;
Watchdog_Interval left;
if ( !value )
a000a6f8: e2514000 subs r4, r1, #0 <== NOT EXECUTED
int timer_gettime(
timer_t timerid,
struct itimerspec *value
)
{
a000a6fc: e1a05000 mov r5, r0 <== NOT EXECUTED
POSIX_Timer_Control *ptimer;
Objects_Locations location;
struct timespec current_time;
Watchdog_Interval left;
if ( !value )
a000a700: 0a000017 beq a000a764 <timer_gettime+0x70> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
/* Reads the current time */
_TOD_Get( ¤t_time );
a000a704: e1a0000d mov r0, sp <== NOT EXECUTED a000a708: eb000559 bl a000bc74 <_TOD_Get> <== NOT EXECUTED a000a70c: e1a01005 mov r1, r5 <== NOT EXECUTED a000a710: e59f0060 ldr r0, [pc, #96] ; a000a778 <timer_gettime+0x84> <== NOT EXECUTED a000a714: e28d2008 add r2, sp, #8 <== NOT EXECUTED a000a718: eb0007d1 bl a000c664 <_Objects_Get> <== NOT EXECUTED
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
a000a71c: e59d6008 ldr r6, [sp, #8] <== NOT EXECUTED a000a720: e1a05000 mov r5, r0 <== NOT EXECUTED a000a724: e3560000 cmp r6, #0 <== NOT EXECUTED a000a728: 1a00000d bne a000a764 <timer_gettime+0x70> <== NOT EXECUTED
case OBJECTS_LOCAL:
/* Calculates the time left before the timer finishes */
left =
(ptimer->Timer.start_time + ptimer->Timer.initial) - /* expire */
a000a72c: e59f3048 ldr r3, [pc, #72] ; a000a77c <timer_gettime+0x88> <== NOT EXECUTED a000a730: e5952024 ldr r2, [r5, #36] ; 0x24 <== NOT EXECUTED a000a734: e590001c ldr r0, [r0, #28] <== NOT EXECUTED a000a738: e5933000 ldr r3, [r3] <== NOT EXECUTED
_Watchdog_Ticks_since_boot; /* now */
_Timespec_From_ticks( left, &value->it_value );
a000a73c: e2841008 add r1, r4, #8 <== NOT EXECUTED
case OBJECTS_LOCAL:
/* Calculates the time left before the timer finishes */
left =
(ptimer->Timer.start_time + ptimer->Timer.initial) - /* expire */
a000a740: e0800002 add r0, r0, r2 <== NOT EXECUTED
_Watchdog_Ticks_since_boot; /* now */
_Timespec_From_ticks( left, &value->it_value );
a000a744: e0630000 rsb r0, r3, r0 <== NOT EXECUTED a000a748: eb000d83 bl a000dd5c <_Timespec_From_ticks> <== NOT EXECUTED
value->it_interval = ptimer->timer_data.it_interval;
a000a74c: e2853054 add r3, r5, #84 ; 0x54 <== NOT EXECUTED
a000a750: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a000a754: e884000c stm r4, {r2, r3} <== NOT EXECUTED
_Thread_Enable_dispatch();
a000a758: eb000ac8 bl a000d280 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a000a75c: e1a00006 mov r0, r6 <== NOT EXECUTED a000a760: ea000003 b a000a774 <timer_gettime+0x80> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
a000a764: eb0021f5 bl a0012f40 <__errno> <== NOT EXECUTED a000a768: e3a03016 mov r3, #22 <== NOT EXECUTED a000a76c: e5803000 str r3, [r0] <== NOT EXECUTED a000a770: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a000a774: e8bd807e pop {r1, r2, r3, r4, r5, r6, pc} <== NOT EXECUTED
a0009430 <timer_settime>:
timer_t timerid,
int flags,
const struct itimerspec *value,
struct itimerspec *ovalue
)
{
a0009430: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
Objects_Locations location;
bool activated;
uint32_t initial_period;
struct itimerspec normalize;
if ( !value )
a0009434: e2525000 subs r5, r2, #0 <== NOT EXECUTED
timer_t timerid,
int flags,
const struct itimerspec *value,
struct itimerspec *ovalue
)
{
a0009438: e24dd020 sub sp, sp, #32 <== NOT EXECUTED a000943c: e1a08000 mov r8, r0 <== NOT EXECUTED a0009440: e1a07001 mov r7, r1 <== NOT EXECUTED a0009444: e1a04003 mov r4, r3 <== NOT EXECUTED
Objects_Locations location;
bool activated;
uint32_t initial_period;
struct itimerspec normalize;
if ( !value )
a0009448: 0a000056 beq a00095a8 <timer_settime+0x178> <== NOT EXECUTED
/*
* First, it verifies if the structure "value" is correct
* if the number of nanoseconds is not correct return EINVAL
*/
if ( !_Timespec_Is_valid( &(value->it_value) ) ) {
a000944c: e2850008 add r0, r5, #8 <== NOT EXECUTED a0009450: eb000dfd bl a000cc4c <_Timespec_Is_valid> <== NOT EXECUTED a0009454: e3500000 cmp r0, #0 <== NOT EXECUTED a0009458: 0a000052 beq a00095a8 <timer_settime+0x178> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( !_Timespec_Is_valid( &(value->it_interval) ) ) {
a000945c: e1a00005 mov r0, r5 <== NOT EXECUTED a0009460: eb000df9 bl a000cc4c <_Timespec_Is_valid> <== NOT EXECUTED a0009464: e3500000 cmp r0, #0 <== NOT EXECUTED a0009468: 0a00004e beq a00095a8 <timer_settime+0x178> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {
a000946c: e3570000 cmp r7, #0 <== NOT EXECUTED a0009470: 13570004 cmpne r7, #4 <== NOT EXECUTED a0009474: 1a00004b bne a00095a8 <timer_settime+0x178> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
}
normalize = *value;
a0009478: e28d6004 add r6, sp, #4 <== NOT EXECUTED
/* Convert absolute to relative time */
if (flags == TIMER_ABSTIME) {
a000947c: e3570004 cmp r7, #4 <== NOT EXECUTED
if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {
rtems_set_errno_and_return_minus_one( EINVAL );
}
normalize = *value;
a0009480: e895000f ldm r5, {r0, r1, r2, r3} <== NOT EXECUTED
a0009484: e886000f stm r6, {r0, r1, r2, r3} <== NOT EXECUTED
/* Convert absolute to relative time */
if (flags == TIMER_ABSTIME) {
a0009488: 1a00000c bne a00094c0 <timer_settime+0x90> <== NOT EXECUTED
struct timespec now;
_TOD_Get( &now );
a000948c: e28d7014 add r7, sp, #20 <== NOT EXECUTED a0009490: e1a00007 mov r0, r7 <== NOT EXECUTED
/* Check for seconds in the past */
if ( _Timespec_Greater_than( &now, &normalize.it_value ) )
a0009494: e2866008 add r6, r6, #8 <== NOT EXECUTED
normalize = *value;
/* Convert absolute to relative time */
if (flags == TIMER_ABSTIME) {
struct timespec now;
_TOD_Get( &now );
a0009498: eb0005aa bl a000ab48 <_TOD_Get> <== NOT EXECUTED
/* Check for seconds in the past */
if ( _Timespec_Greater_than( &now, &normalize.it_value ) )
a000949c: e1a00007 mov r0, r7 <== NOT EXECUTED a00094a0: e1a01006 mov r1, r6 <== NOT EXECUTED a00094a4: eb000dda bl a000cc14 <_Timespec_Greater_than> <== NOT EXECUTED a00094a8: e3500000 cmp r0, #0 <== NOT EXECUTED a00094ac: 1a00003d bne a00095a8 <timer_settime+0x178> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
_Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value );
a00094b0: e1a00007 mov r0, r7 <== NOT EXECUTED a00094b4: e1a01006 mov r1, r6 <== NOT EXECUTED a00094b8: e1a02006 mov r2, r6 <== NOT EXECUTED a00094bc: eb000df3 bl a000cc90 <_Timespec_Subtract> <== NOT EXECUTED
timer_t id,
Objects_Locations *location
)
{
return (POSIX_Timer_Control *)
_Objects_Get( &_POSIX_Timer_Information, (Objects_Id) id, location );
a00094c0: e59f00f8 ldr r0, [pc, #248] ; a00095c0 <timer_settime+0x190><== NOT EXECUTED a00094c4: e1a01008 mov r1, r8 <== NOT EXECUTED a00094c8: e28d201c add r2, sp, #28 <== NOT EXECUTED a00094cc: eb000812 bl a000b51c <_Objects_Get> <== NOT EXECUTED
* something with the structure of times of the timer: to stop, start
* or start it again
*/
ptimer = _POSIX_Timer_Get( timerid, &location );
switch ( location ) {
a00094d0: e59d301c ldr r3, [sp, #28] <== NOT EXECUTED a00094d4: e1a06000 mov r6, r0 <== NOT EXECUTED a00094d8: e3530000 cmp r3, #0 <== NOT EXECUTED a00094dc: 1a000031 bne a00095a8 <timer_settime+0x178> <== NOT EXECUTED
case OBJECTS_LOCAL:
/* First, it verifies if the timer must be stopped */
if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) {
a00094e0: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a00094e4: e3530000 cmp r3, #0 <== NOT EXECUTED a00094e8: 1a00000f bne a000952c <timer_settime+0xfc> <== NOT EXECUTED a00094ec: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a00094f0: e3530000 cmp r3, #0 <== NOT EXECUTED a00094f4: 1a00000c bne a000952c <timer_settime+0xfc> <== NOT EXECUTED
/* Stop the timer */
(void) _Watchdog_Remove( &ptimer->Timer );
a00094f8: e2800010 add r0, r0, #16 <== NOT EXECUTED a00094fc: eb000f03 bl a000d110 <_Watchdog_Remove> <== NOT EXECUTED
/* The old data of the timer are returned */
if ( ovalue )
a0009500: e3540000 cmp r4, #0 <== NOT EXECUTED
*ovalue = ptimer->timer_data;
a0009504: 12863054 addne r3, r6, #84 ; 0x54 <== NOT EXECUTED
a0009508: 1893000f ldmne r3, {r0, r1, r2, r3} <== NOT EXECUTED
a000950c: 1884000f stmne r4, {r0, r1, r2, r3} <== NOT EXECUTED
/* The new data are set */
ptimer->timer_data = normalize;
a0009510: e286c054 add ip, r6, #84 ; 0x54 <== NOT EXECUTED
a0009514: e28d3004 add r3, sp, #4 <== NOT EXECUTED
a0009518: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED
a000951c: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED
/* Indicates that the timer is created and stopped */
ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;
a0009520: e3a03004 mov r3, #4 <== NOT EXECUTED a0009524: e5c6303c strb r3, [r6, #60] ; 0x3c <== NOT EXECUTED a0009528: ea00001b b a000959c <timer_settime+0x16c> <== NOT EXECUTED
_Thread_Enable_dispatch();
return 0;
}
/* Convert from seconds and nanoseconds to ticks */
ptimer->ticks = _Timespec_To_ticks( &value->it_interval );
a000952c: e1a00005 mov r0, r5 <== NOT EXECUTED a0009530: eb000de8 bl a000ccd8 <_Timespec_To_ticks> <== NOT EXECUTED a0009534: e5860064 str r0, [r6, #100] ; 0x64 <== NOT EXECUTED
initial_period = _Timespec_To_ticks( &normalize.it_value );
a0009538: e28d000c add r0, sp, #12 <== NOT EXECUTED a000953c: eb000de5 bl a000ccd8 <_Timespec_To_ticks> <== NOT EXECUTED
activated = _POSIX_Timer_Insert_helper(
a0009540: e58d6000 str r6, [sp] <== NOT EXECUTED
return 0;
}
/* Convert from seconds and nanoseconds to ticks */
ptimer->ticks = _Timespec_To_ticks( &value->it_interval );
initial_period = _Timespec_To_ticks( &normalize.it_value );
a0009544: e1a01000 mov r1, r0 <== NOT EXECUTED
activated = _POSIX_Timer_Insert_helper(
a0009548: e5962008 ldr r2, [r6, #8] <== NOT EXECUTED a000954c: e2860010 add r0, r6, #16 <== NOT EXECUTED a0009550: e59f306c ldr r3, [pc, #108] ; a00095c4 <timer_settime+0x194><== NOT EXECUTED a0009554: eb0017d6 bl a000f4b4 <_POSIX_Timer_Insert_helper> <== NOT EXECUTED
initial_period,
ptimer->Object.id,
_POSIX_Timer_TSR,
ptimer
);
if ( !activated ) {
a0009558: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000955c: 1a000002 bne a000956c <timer_settime+0x13c> <== NOT EXECUTED
_Thread_Enable_dispatch();
a0009560: eb000af4 bl a000c138 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a0009564: e1a00005 mov r0, r5 <== NOT EXECUTED a0009568: ea000012 b a00095b8 <timer_settime+0x188> <== NOT EXECUTED
/*
* The timer has been started and is running. So we return the
* old ones in "ovalue"
*/
if ( ovalue )
a000956c: e3540000 cmp r4, #0 <== NOT EXECUTED
*ovalue = ptimer->timer_data;
a0009570: 12863054 addne r3, r6, #84 ; 0x54 <== NOT EXECUTED
a0009574: 1893000f ldmne r3, {r0, r1, r2, r3} <== NOT EXECUTED
a0009578: 1884000f stmne r4, {r0, r1, r2, r3} <== NOT EXECUTED
ptimer->timer_data = normalize;
a000957c: e286c054 add ip, r6, #84 ; 0x54 <== NOT EXECUTED
a0009580: e28d3004 add r3, sp, #4 <== NOT EXECUTED
a0009584: e893000f ldm r3, {r0, r1, r2, r3} <== NOT EXECUTED
a0009588: e88c000f stm ip, {r0, r1, r2, r3} <== NOT EXECUTED
/* Indicate that the time is running */
ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;
a000958c: e3a03003 mov r3, #3 <== NOT EXECUTED a0009590: e5c6303c strb r3, [r6, #60] ; 0x3c <== NOT EXECUTED
_TOD_Get( &ptimer->time );
a0009594: e286006c add r0, r6, #108 ; 0x6c <== NOT EXECUTED a0009598: eb00056a bl a000ab48 <_TOD_Get> <== NOT EXECUTED
_Thread_Enable_dispatch();
a000959c: eb000ae5 bl a000c138 <_Thread_Enable_dispatch> <== NOT EXECUTED
return 0;
a00095a0: e3a00000 mov r0, #0 <== NOT EXECUTED a00095a4: ea000003 b a00095b8 <timer_settime+0x188> <== NOT EXECUTED
#endif
case OBJECTS_ERROR:
break;
}
rtems_set_errno_and_return_minus_one( EINVAL );
a00095a8: eb0021f7 bl a0011d8c <__errno> <== NOT EXECUTED a00095ac: e3a03016 mov r3, #22 <== NOT EXECUTED a00095b0: e5803000 str r3, [r0] <== NOT EXECUTED a00095b4: e3e00000 mvn r0, #0 <== NOT EXECUTED
}
a00095b8: e28dd020 add sp, sp, #32 <== NOT EXECUTED
a00095bc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED
a0008da4 <times>:
clock_t times(
struct tms *ptms
)
{
return _times( ptms );
a0008da4: eaffffd5 b a0008d00 <_times> <== NOT EXECUTED
a000c498 <truncate>:
int truncate(
const char *path,
off_t length
)
{
a000c498: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a000c49c: e1a05001 mov r5, r1 <== NOT EXECUTED
int status;
int fd;
fd = open( path, O_WRONLY );
a000c4a0: e3a01001 mov r1, #1 <== NOT EXECUTED
int truncate(
const char *path,
off_t length
)
{
a000c4a4: e1a06002 mov r6, r2 <== NOT EXECUTED
int status;
int fd;
fd = open( path, O_WRONLY );
a000c4a8: ebfff776 bl a000a288 <open> <== NOT EXECUTED
if ( fd == -1 )
a000c4ac: e3700001 cmn r0, #1 <== NOT EXECUTED
)
{
int status;
int fd;
fd = open( path, O_WRONLY );
a000c4b0: e1a04000 mov r4, r0 <== NOT EXECUTED
if ( fd == -1 )
return -1;
a000c4b4: 01a05000 moveq r5, r0 <== NOT EXECUTED
{
int status;
int fd;
fd = open( path, O_WRONLY );
if ( fd == -1 )
a000c4b8: 0a000005 beq a000c4d4 <truncate+0x3c> <== NOT EXECUTED
return -1;
status = ftruncate( fd, length );
a000c4bc: e1a01005 mov r1, r5 <== NOT EXECUTED a000c4c0: e1a02006 mov r2, r6 <== NOT EXECUTED a000c4c4: eb001522 bl a0011954 <ftruncate> <== NOT EXECUTED a000c4c8: e1a05000 mov r5, r0 <== NOT EXECUTED
(void) close( fd );
a000c4cc: e1a00004 mov r0, r4 <== NOT EXECUTED a000c4d0: ebfff28d bl a0008f0c <close> <== NOT EXECUTED
return status;
}
a000c4d4: e1a00005 mov r0, r5 <== NOT EXECUTED
a000c4d8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0009298 <ualarm>:
useconds_t ualarm(
useconds_t useconds,
useconds_t interval
)
{
a0009298: e92d4073 push {r0, r1, r4, r5, r6, lr} <== NOT EXECUTED
/*
* Initialize the timer used to implement alarm().
*/
if ( !the_timer->routine ) {
a000929c: e59f60d0 ldr r6, [pc, #208] ; a0009374 <ualarm+0xdc> <== NOT EXECUTED
useconds_t ualarm(
useconds_t useconds,
useconds_t interval
)
{
a00092a0: e1a05000 mov r5, r0 <== NOT EXECUTED
/*
* Initialize the timer used to implement alarm().
*/
if ( !the_timer->routine ) {
a00092a4: e596401c ldr r4, [r6, #28] <== NOT EXECUTED a00092a8: e3540000 cmp r4, #0 <== NOT EXECUTED a00092ac: 1a000005 bne a00092c8 <ualarm+0x30> <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a00092b0: e59f30c0 ldr r3, [pc, #192] ; a0009378 <ualarm+0xe0> <== NOT EXECUTED
Watchdog_Service_routine_entry routine,
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
a00092b4: e5864008 str r4, [r6, #8] <== NOT EXECUTED
the_watchdog->routine = routine; the_watchdog->id = id;
a00092b8: e5864020 str r4, [r6, #32] <== NOT EXECUTED
Objects_Id id,
void *user_data
)
{
the_watchdog->state = WATCHDOG_INACTIVE;
the_watchdog->routine = routine;
a00092bc: e586301c str r3, [r6, #28] <== NOT EXECUTED
the_watchdog->id = id; the_watchdog->user_data = user_data;
a00092c0: e5864024 str r4, [r6, #36] ; 0x24 <== NOT EXECUTED a00092c4: ea000013 b a0009318 <ualarm+0x80> <== NOT EXECUTED
_Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
} else {
Watchdog_States state;
state = _Watchdog_Remove( the_timer );
a00092c8: e1a00006 mov r0, r6 <== NOT EXECUTED a00092cc: eb000e90 bl a000cd14 <_Watchdog_Remove> <== NOT EXECUTED
if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
a00092d0: e2400002 sub r0, r0, #2 <== NOT EXECUTED a00092d4: e3500001 cmp r0, #1 <== NOT EXECUTED
useconds_t ualarm(
useconds_t useconds,
useconds_t interval
)
{
useconds_t remaining = 0;
a00092d8: 83a04000 movhi r4, #0 <== NOT EXECUTED
_Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
} else {
Watchdog_States state;
state = _Watchdog_Remove( the_timer );
if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
a00092dc: 8a00000d bhi a0009318 <ualarm+0x80> <== NOT EXECUTED
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
a00092e0: e596300c ldr r3, [r6, #12] <== NOT EXECUTED a00092e4: e5960014 ldr r0, [r6, #20] <== NOT EXECUTED
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
a00092e8: e1a0100d mov r1, sp <== NOT EXECUTED
remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;
a00092ec: e59f4088 ldr r4, [pc, #136] ; a000937c <ualarm+0xe4> <== NOT EXECUTED
* boot. Since alarm() is dealing in seconds, we must account for
* this.
*/
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
a00092f0: e0800003 add r0, r0, r3 <== NOT EXECUTED a00092f4: e5963018 ldr r3, [r6, #24] <== NOT EXECUTED
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
a00092f8: e0630000 rsb r0, r3, r0 <== NOT EXECUTED a00092fc: eb000d2a bl a000c7ac <_Timespec_From_ticks> <== NOT EXECUTED
remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;
a0009300: e59d3000 ldr r3, [sp] <== NOT EXECUTED
remaining += tp.tv_nsec / 1000;
a0009304: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED a0009308: e3a01ffa mov r1, #1000 ; 0x3e8 <== NOT EXECUTED
ticks = the_timer->initial;
ticks -= (the_timer->stop_time - the_timer->start_time);
/* remaining is now in ticks */
_Timespec_From_ticks( ticks, &tp );
remaining = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;
a000930c: e0040493 mul r4, r3, r4 <== NOT EXECUTED
remaining += tp.tv_nsec / 1000;
a0009310: eb0034e3 bl a00166a4 <__aeabi_idiv> <== NOT EXECUTED a0009314: e0804004 add r4, r0, r4 <== NOT EXECUTED
/*
* If useconds is non-zero, then the caller wants to schedule
* the alarm repeatedly at that interval. If the interval is
* less than a single clock tick, then fudge it to a clock tick.
*/
if ( useconds ) {
a0009318: e3550000 cmp r5, #0 <== NOT EXECUTED a000931c: 0a000012 beq a000936c <ualarm+0xd4> <== NOT EXECUTED
Watchdog_Interval ticks;
tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;
a0009320: e1a00005 mov r0, r5 <== NOT EXECUTED a0009324: e59f1050 ldr r1, [pc, #80] ; a000937c <ualarm+0xe4> <== NOT EXECUTED a0009328: eb003497 bl a001658c <__aeabi_uidiv> <== NOT EXECUTED
tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;
a000932c: e59f1048 ldr r1, [pc, #72] ; a000937c <ualarm+0xe4> <== NOT EXECUTED
* less than a single clock tick, then fudge it to a clock tick.
*/
if ( useconds ) {
Watchdog_Interval ticks;
tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;
a0009330: e58d0000 str r0, [sp] <== NOT EXECUTED
tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;
a0009334: e1a00005 mov r0, r5 <== NOT EXECUTED a0009338: eb00352b bl a00167ec <__umodsi3> <== NOT EXECUTED a000933c: e3a03ffa mov r3, #1000 ; 0x3e8 <== NOT EXECUTED a0009340: e0030390 mul r3, r0, r3 <== NOT EXECUTED
ticks = _Timespec_To_ticks( &tp );
a0009344: e1a0000d mov r0, sp <== NOT EXECUTED
*/
if ( useconds ) {
Watchdog_Interval ticks;
tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;
tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;
a0009348: e58d3004 str r3, [sp, #4] <== NOT EXECUTED
ticks = _Timespec_To_ticks( &tp );
a000934c: eb000d3a bl a000c83c <_Timespec_To_ticks> <== NOT EXECUTED
if ( ticks == 0 )
ticks = 1;
_Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) );
a0009350: e1a0000d mov r0, sp <== NOT EXECUTED a0009354: eb000d38 bl a000c83c <_Timespec_To_ticks> <== NOT EXECUTED
Watchdog_Control *the_watchdog,
Watchdog_Interval units
)
{
the_watchdog->initial = units;
a0009358: e59f1014 ldr r1, [pc, #20] ; a0009374 <ualarm+0xdc> <== NOT EXECUTED
if ( useconds ) {
Watchdog_Interval ticks;
tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;
tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;
ticks = _Timespec_To_ticks( &tp );
a000935c: e1a0500d mov r5, sp <== NOT EXECUTED a0009360: e581000c str r0, [r1, #12] <== NOT EXECUTED
_Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );
a0009364: e59f0014 ldr r0, [pc, #20] ; a0009380 <ualarm+0xe8> <== NOT EXECUTED a0009368: eb000e11 bl a000cbb4 <_Watchdog_Insert> <== NOT EXECUTED
_Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) );
}
return remaining;
}
a000936c: e1a00004 mov r0, r4 <== NOT EXECUTED
a0009370: e8bd807c pop {r2, r3, r4, r5, r6, pc} <== NOT EXECUTED
a0009ca8 <umask>:
mode_t cmask
)
{
mode_t old_mask;
old_mask = rtems_filesystem_umask;
a0009ca8: e59f3010 ldr r3, [pc, #16] ; a0009cc0 <umask+0x18> <== NOT EXECUTED a0009cac: e5933000 ldr r3, [r3] <== NOT EXECUTED a0009cb0: e593202c ldr r2, [r3, #44] ; 0x2c <== NOT EXECUTED
rtems_filesystem_umask = cmask;
a0009cb4: e583002c str r0, [r3, #44] ; 0x2c <== NOT EXECUTED
return old_mask;
}
a0009cb8: e1a00002 mov r0, r2 <== NOT EXECUTED a0009cbc: e12fff1e bx lr <== NOT EXECUTED
a000932c <uname>:
*/
int uname(
struct utsname *name
)
{
a000932c: e92d4011 push {r0, r4, lr} <== NOT EXECUTED
release = 5.3
version = Generic_101318-12
machine = sun4m
*/
if ( !name )
a0009330: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0009334: 1a000004 bne a000934c <uname+0x20> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EFAULT );
a0009338: eb0022f2 bl a0011f08 <__errno> <== NOT EXECUTED a000933c: e3a0300e mov r3, #14 <== NOT EXECUTED a0009340: e5803000 str r3, [r0] <== NOT EXECUTED a0009344: e3e00000 mvn r0, #0 <== NOT EXECUTED a0009348: ea000017 b a00093ac <uname+0x80> <== NOT EXECUTED
strncpy( name->sysname, "RTEMS", sizeof(name->sysname) );
a000934c: e59f105c ldr r1, [pc, #92] ; a00093b0 <uname+0x84> <== NOT EXECUTED a0009350: e3a02020 mov r2, #32 <== NOT EXECUTED a0009354: eb00270e bl a0012f94 <strncpy> <== NOT EXECUTED
snprintf( name->nodename, sizeof(name->nodename), "Node %" PRId16, _Objects_Local_node );
a0009358: e3a03001 mov r3, #1 <== NOT EXECUTED a000935c: e3a01020 mov r1, #32 <== NOT EXECUTED a0009360: e59f204c ldr r2, [pc, #76] ; a00093b4 <uname+0x88> <== NOT EXECUTED a0009364: e2840020 add r0, r4, #32 <== NOT EXECUTED a0009368: eb0025b0 bl a0012a30 <snprintf> <== NOT EXECUTED
strncpy( name->release, RTEMS_VERSION, sizeof(name->release) );
a000936c: e59f1044 ldr r1, [pc, #68] ; a00093b8 <uname+0x8c> <== NOT EXECUTED a0009370: e3a02020 mov r2, #32 <== NOT EXECUTED a0009374: e2840040 add r0, r4, #64 ; 0x40 <== NOT EXECUTED a0009378: eb002705 bl a0012f94 <strncpy> <== NOT EXECUTED
strncpy( name->version, "", sizeof(name->version) );
a000937c: e59f1038 ldr r1, [pc, #56] ; a00093bc <uname+0x90> <== NOT EXECUTED a0009380: e3a02020 mov r2, #32 <== NOT EXECUTED a0009384: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED a0009388: eb002701 bl a0012f94 <strncpy> <== NOT EXECUTED
snprintf( name->machine, sizeof(name->machine), "%s/%s", CPU_NAME, CPU_MODEL_NAME );
a000938c: e59f302c ldr r3, [pc, #44] ; a00093c0 <uname+0x94> <== NOT EXECUTED a0009390: e2840080 add r0, r4, #128 ; 0x80 <== NOT EXECUTED a0009394: e3a01020 mov r1, #32 <== NOT EXECUTED a0009398: e58d3000 str r3, [sp] <== NOT EXECUTED a000939c: e59f2020 ldr r2, [pc, #32] ; a00093c4 <uname+0x98> <== NOT EXECUTED a00093a0: e59f3020 ldr r3, [pc, #32] ; a00093c8 <uname+0x9c> <== NOT EXECUTED a00093a4: eb0025a1 bl a0012a30 <snprintf> <== NOT EXECUTED
return 0;
a00093a8: e3a00000 mov r0, #0 <== NOT EXECUTED
}
a00093ac: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED
a0009a28 <unlink>:
#include <rtems/seterr.h>
int unlink(
const char *path
)
{
a0009a28: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED
a0009a2c: e24dd030 sub sp, sp, #48 ; 0x30 <== NOT EXECUTED
a0009a30: e1a06000 mov r6, r0 <== NOT EXECUTED
/*
* Get the node to be unlinked. Find the parent path first.
*/
parentpathlen = rtems_filesystem_dirname ( path );
a0009a34: ebfff54c bl a0006f6c <rtems_filesystem_dirname> <== NOT EXECUTED
if ( parentpathlen == 0 )
a0009a38: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0009a3c: e28d3018 add r3, sp, #24 <== NOT EXECUTED a0009a40: 1a000005 bne a0009a5c <unlink+0x34> <== NOT EXECUTED
rtems_filesystem_get_start_loc( path, &i, &parentloc );
a0009a44: e1a00006 mov r0, r6 <== NOT EXECUTED a0009a48: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED a0009a4c: e1a02003 mov r2, r3 <== NOT EXECUTED a0009a50: ebfff930 bl a0007f18 <rtems_filesystem_get_start_loc> <== NOT EXECUTED
const char *name; rtems_filesystem_location_info_t parentloc; rtems_filesystem_location_info_t loc; int i; int result; bool free_parentloc = false;
a0009a54: e1a05004 mov r5, r4 <== NOT EXECUTED a0009a58: ea000008 b a0009a80 <unlink+0x58> <== NOT EXECUTED
parentpathlen = rtems_filesystem_dirname ( path );
if ( parentpathlen == 0 )
rtems_filesystem_get_start_loc( path, &i, &parentloc );
else {
result = rtems_filesystem_evaluate_path( path, parentpathlen,
a0009a5c: e3a02000 mov r2, #0 <== NOT EXECUTED a0009a60: e58d2000 str r2, [sp] <== NOT EXECUTED a0009a64: e1a00006 mov r0, r6 <== NOT EXECUTED a0009a68: e1a01004 mov r1, r4 <== NOT EXECUTED a0009a6c: e2822002 add r2, r2, #2 <== NOT EXECUTED a0009a70: ebfff52a bl a0006f20 <rtems_filesystem_evaluate_path> <== NOT EXECUTED
RTEMS_LIBIO_PERMS_WRITE,
&parentloc,
false );
if ( result != 0 )
a0009a74: e3500000 cmp r0, #0 <== NOT EXECUTED a0009a78: 1a00003b bne a0009b6c <unlink+0x144> <== NOT EXECUTED
return -1;
free_parentloc = true;
a0009a7c: e3a05001 mov r5, #1 <== NOT EXECUTED
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
a0009a80: e28dc004 add ip, sp, #4 <== NOT EXECUTED
a0009a84: e28de018 add lr, sp, #24 <== NOT EXECUTED
a0009a88: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED
a0009a8c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED
a0009a90: e59e3000 ldr r3, [lr] <== NOT EXECUTED
name = path + parentpathlen;
a0009a94: e0864004 add r4, r6, r4 <== NOT EXECUTED
name += rtems_filesystem_prefix_separators( name, strlen( name ) );
a0009a98: e1a00004 mov r0, r4 <== NOT EXECUTED
/*
* Start from the parent to find the node that should be under it.
*/
loc = parentloc;
a0009a9c: e58c3000 str r3, [ip] <== NOT EXECUTED
name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) );
a0009aa0: eb003038 bl a0015b88 <strlen> <== NOT EXECUTED a0009aa4: e1a01000 mov r1, r0 <== NOT EXECUTED a0009aa8: e1a00004 mov r0, r4 <== NOT EXECUTED a0009aac: ebfff53c bl a0006fa4 <rtems_filesystem_prefix_separators> <== NOT EXECUTED a0009ab0: e0846000 add r6, r4, r0 <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
a0009ab4: e1a00006 mov r0, r6 <== NOT EXECUTED a0009ab8: eb003032 bl a0015b88 <strlen> <== NOT EXECUTED a0009abc: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0009ac0: e1a01000 mov r1, r0 <== NOT EXECUTED a0009ac4: e3a02000 mov r2, #0 <== NOT EXECUTED a0009ac8: e1a00006 mov r0, r6 <== NOT EXECUTED a0009acc: e1a03004 mov r3, r4 <== NOT EXECUTED a0009ad0: e58d2000 str r2, [sp] <== NOT EXECUTED a0009ad4: ebfff4f5 bl a0006eb0 <rtems_filesystem_evaluate_relative_path><== NOT EXECUTED
0, &loc, false );
if ( result != 0 ) {
a0009ad8: e3500000 cmp r0, #0 <== NOT EXECUTED a0009adc: 0a000004 beq a0009af4 <unlink+0xcc> <== NOT EXECUTED
if ( free_parentloc )
a0009ae0: e3550000 cmp r5, #0 <== NOT EXECUTED a0009ae4: 0a000020 beq a0009b6c <unlink+0x144> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
a0009ae8: e28d0018 add r0, sp, #24 <== NOT EXECUTED a0009aec: ebfff53b bl a0006fe0 <rtems_filesystem_freenode> <== NOT EXECUTED a0009af0: ea00001d b a0009b6c <unlink+0x144> <== NOT EXECUTED
return -1;
}
if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) {
a0009af4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0009af8: e1a00004 mov r0, r4 <== NOT EXECUTED a0009afc: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a0009b00: e12fff33 blx r3 <== NOT EXECUTED a0009b04: e3500001 cmp r0, #1 <== NOT EXECUTED a0009b08: 1a000009 bne a0009b34 <unlink+0x10c> <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a0009b0c: e1a00004 mov r0, r4 <== NOT EXECUTED a0009b10: ebfff532 bl a0006fe0 <rtems_filesystem_freenode> <== NOT EXECUTED
if ( free_parentloc )
a0009b14: e3550000 cmp r5, #0 <== NOT EXECUTED a0009b18: 0a000001 beq a0009b24 <unlink+0xfc> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
a0009b1c: e28d0018 add r0, sp, #24 <== NOT EXECUTED a0009b20: ebfff52e bl a0006fe0 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EISDIR );
a0009b24: eb002c58 bl a0014c8c <__errno> <== NOT EXECUTED a0009b28: e3a03015 mov r3, #21 <== NOT EXECUTED a0009b2c: e5803000 str r3, [r0] <== NOT EXECUTED a0009b30: ea00000d b a0009b6c <unlink+0x144> <== NOT EXECUTED
}
result = (*loc.ops->unlink_h)( &parentloc, &loc );
a0009b34: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0009b38: e28d6018 add r6, sp, #24 <== NOT EXECUTED a0009b3c: e1a01004 mov r1, r4 <== NOT EXECUTED a0009b40: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a0009b44: e1a00006 mov r0, r6 <== NOT EXECUTED a0009b48: e12fff33 blx r3 <== NOT EXECUTED a0009b4c: e1a07000 mov r7, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a0009b50: e1a00004 mov r0, r4 <== NOT EXECUTED a0009b54: ebfff521 bl a0006fe0 <rtems_filesystem_freenode> <== NOT EXECUTED
if ( free_parentloc )
a0009b58: e3550000 cmp r5, #0 <== NOT EXECUTED a0009b5c: 0a000003 beq a0009b70 <unlink+0x148> <== NOT EXECUTED
rtems_filesystem_freenode( &parentloc );
a0009b60: e1a00006 mov r0, r6 <== NOT EXECUTED a0009b64: ebfff51d bl a0006fe0 <rtems_filesystem_freenode> <== NOT EXECUTED a0009b68: ea000000 b a0009b70 <unlink+0x148> <== NOT EXECUTED
result = rtems_filesystem_evaluate_relative_path( name , strlen( name ),
0, &loc, false );
if ( result != 0 ) {
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
return -1;
a0009b6c: e3e07000 mvn r7, #0 <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
if ( free_parentloc )
rtems_filesystem_freenode( &parentloc );
return result;
}
a0009b70: e1a00007 mov r0, r7 <== NOT EXECUTED
a0009b74: e28dd030 add sp, sp, #48 ; 0x30 <== NOT EXECUTED
a0009b78: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED
a0009cbc <unmount>:
*/
int unmount(
const char *path
)
{
a0009cbc: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED
a0009cc0: e24dd018 sub sp, sp, #24 <== NOT EXECUTED
a0009cc4: e1a05000 mov r5, r0 <== NOT EXECUTED
* The root node of the mounted filesytem.
* The node for the directory that the fileystem is mounted on.
* The mount entry that is being refered to.
*/
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) )
a0009cc8: eb0025d9 bl a0013434 <strlen> <== NOT EXECUTED a0009ccc: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0009cd0: e3a03001 mov r3, #1 <== NOT EXECUTED a0009cd4: e1a01000 mov r1, r0 <== NOT EXECUTED a0009cd8: e58d3000 str r3, [sp] <== NOT EXECUTED a0009cdc: e1a00005 mov r0, r5 <== NOT EXECUTED a0009ce0: e3a02000 mov r2, #0 <== NOT EXECUTED a0009ce4: e1a03004 mov r3, r4 <== NOT EXECUTED a0009ce8: ebfff459 bl a0006e54 <rtems_filesystem_evaluate_path> <== NOT EXECUTED a0009cec: e3500000 cmp r0, #0 <== NOT EXECUTED a0009cf0: 1a000040 bne a0009df8 <unmount+0x13c> <== NOT EXECUTED
return -1;
mt_entry = loc.mt_entry;
a0009cf4: e59d5014 ldr r5, [sp, #20] <== NOT EXECUTED
/*
* Verify this is the root node for the file system to be unmounted.
*/
if ( fs_root_loc->node_access != loc.node_access ){
a0009cf8: e59d3004 ldr r3, [sp, #4] <== NOT EXECUTED a0009cfc: e595201c ldr r2, [r5, #28] <== NOT EXECUTED a0009d00: e1520003 cmp r2, r3 <== NOT EXECUTED a0009d04: 0a000004 beq a0009d1c <unmount+0x60> <== NOT EXECUTED
rtems_filesystem_freenode( &loc );
a0009d08: e1a00004 mov r0, r4 <== NOT EXECUTED a0009d0c: ebfff480 bl a0006f14 <rtems_filesystem_freenode> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EACCES );
a0009d10: eb00204f bl a0011e54 <__errno> <== NOT EXECUTED a0009d14: e3a0300d mov r3, #13 <== NOT EXECUTED a0009d18: ea000011 b a0009d64 <unmount+0xa8> <== NOT EXECUTED
/*
* Free the loc node and just use the nodes from the mt_entry .
*/
rtems_filesystem_freenode( &loc );
a0009d1c: e1a00004 mov r0, r4 <== NOT EXECUTED a0009d20: ebfff47b bl a0006f14 <rtems_filesystem_freenode> <== NOT EXECUTED
* that made the current node thread based instead
* of system based? I thought it was but it doesn't
* look like it in this version.
*/
if ( rtems_filesystem_current.mt_entry == mt_entry )
a0009d24: e59f30d8 ldr r3, [pc, #216] ; a0009e04 <unmount+0x148> <== NOT EXECUTED a0009d28: e5933000 ldr r3, [r3] <== NOT EXECUTED a0009d2c: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED a0009d30: e1530005 cmp r3, r5 <== NOT EXECUTED a0009d34: 0a000008 beq a0009d5c <unmount+0xa0> <== NOT EXECUTED
/*
* Verify there are no file systems below the path specified
*/
if ( rtems_filesystem_mount_iterate( is_fs_below_mount_point,
a0009d38: e59f00c8 ldr r0, [pc, #200] ; a0009e08 <unmount+0x14c> <== NOT EXECUTED a0009d3c: e595102c ldr r1, [r5, #44] ; 0x2c <== NOT EXECUTED a0009d40: ebfff6b1 bl a000780c <rtems_filesystem_mount_iterate> <== NOT EXECUTED a0009d44: e3500000 cmp r0, #0 <== NOT EXECUTED a0009d48: 1a000003 bne a0009d5c <unmount+0xa0> <== NOT EXECUTED
* Run the file descriptor table to determine if there are any file
* descriptors that are currently active and reference nodes in the
* file system that we are trying to unmount
*/
if ( rtems_libio_is_open_files_in_fs( mt_entry ) == 1 )
a0009d4c: e1a00005 mov r0, r5 <== NOT EXECUTED a0009d50: ebfff557 bl a00072b4 <rtems_libio_is_open_files_in_fs> <== NOT EXECUTED a0009d54: e3500001 cmp r0, #1 <== NOT EXECUTED a0009d58: 1a000003 bne a0009d6c <unmount+0xb0> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EBUSY );
a0009d5c: eb00203c bl a0011e54 <__errno> <== NOT EXECUTED a0009d60: e3a03010 mov r3, #16 <== NOT EXECUTED a0009d64: e5803000 str r3, [r0] <== NOT EXECUTED a0009d68: ea000022 b a0009df8 <unmount+0x13c> <== NOT EXECUTED
* Allow the file system being unmounted on to do its cleanup.
* If it fails it will set the errno to the approprate value
* and the fileystem will not be modified.
*/
if (( fs_mount_loc->ops->unmount_h )( mt_entry ) != 0 )
a0009d6c: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED a0009d70: e1a00005 mov r0, r5 <== NOT EXECUTED a0009d74: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED a0009d78: e12fff33 blx r3 <== NOT EXECUTED a0009d7c: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0009d80: 1a00001c bne a0009df8 <unmount+0x13c> <== NOT EXECUTED
* NOTE: Fatal error is called in a case which should never happen
* This was response was questionable but the best we could
* come up with.
*/
if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){
a0009d84: e5953028 ldr r3, [r5, #40] ; 0x28 <== NOT EXECUTED a0009d88: e1a00005 mov r0, r5 <== NOT EXECUTED a0009d8c: e593302c ldr r3, [r3, #44] ; 0x2c <== NOT EXECUTED a0009d90: e12fff33 blx r3 <== NOT EXECUTED a0009d94: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0009d98: 0a000007 beq a0009dbc <unmount+0x100> <== NOT EXECUTED
if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )
a0009d9c: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED a0009da0: e1a00005 mov r0, r5 <== NOT EXECUTED a0009da4: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED a0009da8: e12fff33 blx r3 <== NOT EXECUTED a0009dac: e3500000 cmp r0, #0 <== NOT EXECUTED a0009db0: 0a000010 beq a0009df8 <unmount+0x13c> <== NOT EXECUTED
rtems_fatal_error_occurred( 0 );
a0009db4: e1a00006 mov r0, r6 <== NOT EXECUTED a0009db8: eb0003ca bl a000ace8 <rtems_fatal_error_occurred> <== NOT EXECUTED
rtems_status_code rtems_libio_set_private_env(void);
rtems_status_code rtems_libio_share_private_env(rtems_id task_id) ;
static inline void rtems_libio_lock( void )
{
rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
a0009dbc: e59f6048 ldr r6, [pc, #72] ; a0009e0c <unmount+0x150> <== NOT EXECUTED a0009dc0: e1a01004 mov r1, r4 <== NOT EXECUTED a0009dc4: e1a02004 mov r2, r4 <== NOT EXECUTED a0009dc8: e5960000 ldr r0, [r6] <== NOT EXECUTED a0009dcc: eb000242 bl a000a6dc <rtems_semaphore_obtain> <== NOT EXECUTED
*/
RTEMS_INLINE_ROUTINE void rtems_chain_extract(
rtems_chain_node *the_node
)
{
_Chain_Extract( the_node );
a0009dd0: e1a00005 mov r0, r5 <== NOT EXECUTED a0009dd4: eb00048d bl a000b010 <_Chain_Extract> <== NOT EXECUTED
}
static inline void rtems_libio_unlock( void )
{
rtems_semaphore_release( rtems_libio_semaphore );
a0009dd8: e5960000 ldr r0, [r6] <== NOT EXECUTED a0009ddc: eb000284 bl a000a7f4 <rtems_semaphore_release> <== NOT EXECUTED
/*
* Free the memory node that was allocated in mount
* Free the memory associated with the extracted mount table entry.
*/
rtems_filesystem_freenode( fs_mount_loc );
a0009de0: e2850008 add r0, r5, #8 <== NOT EXECUTED a0009de4: ebfff44a bl a0006f14 <rtems_filesystem_freenode> <== NOT EXECUTED
free( mt_entry );
a0009de8: e1a00005 mov r0, r5 <== NOT EXECUTED a0009dec: ebfff44d bl a0006f28 <free> <== NOT EXECUTED
return 0;
a0009df0: e1a00004 mov r0, r4 <== NOT EXECUTED a0009df4: ea000000 b a0009dfc <unmount+0x140> <== NOT EXECUTED
*/
if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){
if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 )
rtems_fatal_error_occurred( 0 );
return -1;
a0009df8: e3e00000 mvn r0, #0 <== NOT EXECUTED
rtems_filesystem_freenode( fs_mount_loc );
free( mt_entry );
return 0;
}
a0009dfc: e28dd018 add sp, sp, #24 <== NOT EXECUTED
a0009e00: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED
a0009cc4 <utime>:
int utime(
const char *path,
const struct utimbuf *times
)
{
a0009cc4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
a0009cc8: e24dd020 sub sp, sp, #32 <== NOT EXECUTED
a0009ccc: e1a04001 mov r4, r1 <== NOT EXECUTED
a0009cd0: e1a05000 mov r5, r0 <== NOT EXECUTED
rtems_filesystem_location_info_t temp_loc;
int result;
struct utimbuf now;
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
a0009cd4: eb0027d7 bl a0013c38 <strlen> <== NOT EXECUTED a0009cd8: e3a03001 mov r3, #1 <== NOT EXECUTED a0009cdc: e1a01000 mov r1, r0 <== NOT EXECUTED a0009ce0: e58d3000 str r3, [sp] <== NOT EXECUTED a0009ce4: e1a00005 mov r0, r5 <== NOT EXECUTED a0009ce8: e3a02000 mov r2, #0 <== NOT EXECUTED a0009cec: e28d3004 add r3, sp, #4 <== NOT EXECUTED a0009cf0: ebfff32f bl a00069b4 <rtems_filesystem_evaluate_path> <== NOT EXECUTED a0009cf4: e3500000 cmp r0, #0 <== NOT EXECUTED
return -1;
a0009cf8: 13e04000 mvnne r4, #0 <== NOT EXECUTED
{
rtems_filesystem_location_info_t temp_loc;
int result;
struct utimbuf now;
if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) )
a0009cfc: 1a00000e bne a0009d3c <utime+0x78> <== NOT EXECUTED
return -1;
if ( times == NULL ) {
a0009d00: e3540000 cmp r4, #0 <== NOT EXECUTED a0009d04: 1a000003 bne a0009d18 <utime+0x54> <== NOT EXECUTED
now.actime = now.modtime = time( NULL );
a0009d08: eb00281d bl a0013d84 <time> <== NOT EXECUTED a0009d0c: e28d4020 add r4, sp, #32 <== NOT EXECUTED a0009d10: e58d001c str r0, [sp, #28] <== NOT EXECUTED a0009d14: e5240008 str r0, [r4, #-8]! <== NOT EXECUTED
times = &now;
}
result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime );
a0009d18: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED
a0009d1c: e28d5004 add r5, sp, #4 <== NOT EXECUTED
a0009d20: e8940006 ldm r4, {r1, r2} <== NOT EXECUTED
a0009d24: e5933030 ldr r3, [r3, #48] ; 0x30 <== NOT EXECUTED
a0009d28: e1a00005 mov r0, r5 <== NOT EXECUTED
a0009d2c: e12fff33 blx r3 <== NOT EXECUTED
a0009d30: e1a04000 mov r4, r0 <== NOT EXECUTED
rtems_filesystem_freenode( &temp_loc );
a0009d34: e1a00005 mov r0, r5 <== NOT EXECUTED a0009d38: ebfff423 bl a0006dcc <rtems_filesystem_freenode> <== NOT EXECUTED
return result;
}
a0009d3c: e1a00004 mov r0, r4 <== NOT EXECUTED
a0009d40: e28dd020 add sp, sp, #32 <== NOT EXECUTED
a0009d44: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a0009d48 <utimes>:
int utimes(
const char *path,
const struct timeval times[2]
)
{
a0009d48: e92d4003 push {r0, r1, lr} <== NOT EXECUTED
struct utimbuf timeinsecs;
if ( times == NULL )
a0009d4c: e2513000 subs r3, r1, #0 <== NOT EXECUTED
return utime( path, NULL );
timeinsecs.actime = (time_t) times[0].tv_sec;
a0009d50: 15932000 ldrne r2, [r3] <== NOT EXECUTED
timeinsecs.modtime = (time_t) times[1].tv_sec;
a0009d54: 15933008 ldrne r3, [r3, #8] <== NOT EXECUTED
return utime( path, &timeinsecs );
a0009d58: 11a0100d movne r1, sp <== NOT EXECUTED
struct utimbuf timeinsecs;
if ( times == NULL )
return utime( path, NULL );
timeinsecs.actime = (time_t) times[0].tv_sec;
a0009d5c: 158d2000 strne r2, [sp] <== NOT EXECUTED
timeinsecs.modtime = (time_t) times[1].tv_sec;
a0009d60: 158d3004 strne r3, [sp, #4] <== NOT EXECUTED
return utime( path, &timeinsecs );
a0009d64: ebffffd6 bl a0009cc4 <utime> <== NOT EXECUTED
}
a0009d68: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED
a000937c <vfork>:
#include <unistd.h>
pid_t vfork(void)
{
return -1;
}
a000937c: e3e00000 mvn r0, #0 <== NOT EXECUTED a0009380: e12fff1e bx lr <== NOT EXECUTED
a0009384 <wait>:
#include <rtems/seterr.h>
int wait(
int *stat_loc
)
{
a0009384: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a0009388: eb00217e bl a0011988 <__errno> <== NOT EXECUTED a000938c: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a0009390: e5803000 str r3, [r0] <== NOT EXECUTED
}
a0009394: e3e00000 mvn r0, #0 <== NOT EXECUTED
a0009398: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a000939c <waitpid>:
int waitpid(
pid_t pid,
int *stat_loc,
int options
)
{
a000939c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( ENOSYS );
a00093a0: eb002178 bl a0011988 <__errno> <== NOT EXECUTED a00093a4: e3a03058 mov r3, #88 ; 0x58 <== NOT EXECUTED a00093a8: e5803000 str r3, [r0] <== NOT EXECUTED
}
a00093ac: e3e00000 mvn r0, #0 <== NOT EXECUTED
a00093b0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED
a001634c <write>:
ssize_t write(
int fd,
const void *buffer,
size_t count
)
{
a001634c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED
ssize_t rc;
rtems_libio_t *iop;
rtems_libio_check_fd( fd );
a0016350: e59f4098 ldr r4, [pc, #152] ; a00163f0 <write+0xa4> <== NOT EXECUTED a0016354: e5944000 ldr r4, [r4] <== NOT EXECUTED a0016358: e1500004 cmp r0, r4 <== NOT EXECUTED a001635c: 2a000006 bcs a001637c <write+0x30> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a0016360: e59f408c ldr r4, [pc, #140] ; a00163f4 <write+0xa8> <== NOT EXECUTED a0016364: e3a05038 mov r5, #56 ; 0x38 <== NOT EXECUTED a0016368: e5944000 ldr r4, [r4] <== NOT EXECUTED a001636c: e0244095 mla r4, r5, r0, r4 <== NOT EXECUTED
rtems_libio_check_is_open( iop );
a0016370: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED a0016374: e3100c01 tst r0, #256 ; 0x100 <== NOT EXECUTED a0016378: 1a000002 bne a0016388 <write+0x3c> <== NOT EXECUTED a001637c: ebffeb3a bl a001106c <__errno> <== NOT EXECUTED a0016380: e3a03009 mov r3, #9 <== NOT EXECUTED a0016384: ea000007 b a00163a8 <write+0x5c> <== NOT EXECUTED
rtems_libio_check_buffer( buffer );
a0016388: e3510000 cmp r1, #0 <== NOT EXECUTED a001638c: 0a000003 beq a00163a0 <write+0x54> <== NOT EXECUTED
rtems_libio_check_count( count );
a0016390: e3520000 cmp r2, #0 <== NOT EXECUTED a0016394: 0a000013 beq a00163e8 <write+0x9c> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
a0016398: e3100004 tst r0, #4 <== NOT EXECUTED
a001639c: 1a000004 bne a00163b4 <write+0x68> <== NOT EXECUTED
a00163a0: ebffeb31 bl a001106c <__errno> <== NOT EXECUTED
a00163a4: e3a03016 mov r3, #22 <== NOT EXECUTED
a00163a8: e5803000 str r3, [r0] <== NOT EXECUTED
a00163ac: e3e00000 mvn r0, #0 <== NOT EXECUTED
a00163b0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
/*
* Now process the write() request.
*/
rc = (*iop->pathinfo.handlers->write_h)( iop, buffer, count );
a00163b4: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a00163b8: e1a00004 mov r0, r4 <== NOT EXECUTED a00163bc: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a00163c0: e12fff33 blx r3 <== NOT EXECUTED
if ( rc > 0 )
a00163c4: e3500000 cmp r0, #0 <== NOT EXECUTED a00163c8: da000007 ble a00163ec <write+0xa0> <== NOT EXECUTED
iop->offset += rc;
a00163cc: e284300c add r3, r4, #12 <== NOT EXECUTED
a00163d0: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a00163d4: e0922000 adds r2, r2, r0 <== NOT EXECUTED
a00163d8: e0a33fc0 adc r3, r3, r0, asr #31 <== NOT EXECUTED
a00163dc: e584200c str r2, [r4, #12] <== NOT EXECUTED
a00163e0: e5843010 str r3, [r4, #16] <== NOT EXECUTED
a00163e4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
rtems_libio_check_fd( fd );
iop = rtems_libio_iop( fd );
rtems_libio_check_is_open( iop );
rtems_libio_check_buffer( buffer );
rtems_libio_check_count( count );
a00163e8: e1a00002 mov r0, r2 <== NOT EXECUTED
if ( rc > 0 )
iop->offset += rc;
return rc;
}
a00163ec: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED
a000a028 <writev>:
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
a000a028: e59f3150 ldr r3, [pc, #336] ; a000a180 <writev+0x158> <== NOT EXECUTED
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
a000a02c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
a000a030: e5933000 ldr r3, [r3] <== NOT EXECUTED
ssize_t writev(
int fd,
const struct iovec *iov,
int iovcnt
)
{
a000a034: e1a08002 mov r8, r2 <== NOT EXECUTED
int bytes;
rtems_libio_t *iop;
ssize_t old;
bool all_zeros;
rtems_libio_check_fd( fd );
a000a038: e1500003 cmp r0, r3 <== NOT EXECUTED a000a03c: 2a000006 bcs a000a05c <writev+0x34> <== NOT EXECUTED
iop = rtems_libio_iop( fd );
a000a040: e59f313c ldr r3, [pc, #316] ; a000a184 <writev+0x15c> <== NOT EXECUTED a000a044: e3a06038 mov r6, #56 ; 0x38 <== NOT EXECUTED a000a048: e5933000 ldr r3, [r3] <== NOT EXECUTED a000a04c: e0263690 mla r6, r0, r6, r3 <== NOT EXECUTED
rtems_libio_check_is_open( iop );
a000a050: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED a000a054: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a000a058: 1a000002 bne a000a068 <writev+0x40> <== NOT EXECUTED a000a05c: eb001fe6 bl a0011ffc <__errno> <== NOT EXECUTED a000a060: e3a03009 mov r3, #9 <== NOT EXECUTED a000a064: ea00001f b a000a0e8 <writev+0xc0> <== NOT EXECUTED
rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE );
a000a068: e3130004 tst r3, #4 <== NOT EXECUTED a000a06c: 0a00001b beq a000a0e0 <writev+0xb8> <== NOT EXECUTED
/*
* Argument validation on IO vector
*/
if ( !iov )
a000a070: e3510000 cmp r1, #0 <== NOT EXECUTED a000a074: 0a000019 beq a000a0e0 <writev+0xb8> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
a000a078: e3520000 cmp r2, #0 <== NOT EXECUTED a000a07c: da000017 ble a000a0e0 <writev+0xb8> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
a000a080: e3520b01 cmp r2, #1024 ; 0x400 <== NOT EXECUTED a000a084: ca000015 bgt a000a0e0 <writev+0xb8> <== NOT EXECUTED a000a088: e3a03000 mov r3, #0 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000a08c: e1a05001 mov r5, r1 <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt <= 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iovcnt > IOV_MAX )
a000a090: e1a02001 mov r2, r1 <== NOT EXECUTED a000a094: e3a07001 mov r7, #1 <== NOT EXECUTED a000a098: e1a04003 mov r4, r3 <== NOT EXECUTED
all_zeros = false;
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old || total > SSIZE_MAX )
a000a09c: e59f00e4 ldr r0, [pc, #228] ; a000a188 <writev+0x160> <== NOT EXECUTED a000a0a0: ea000000 b a000a0a8 <writev+0x80> <== NOT EXECUTED
if ( iov[v].iov_len )
all_zeros = false;
/* check for wrap */
old = total;
total += iov[v].iov_len;
a000a0a4: e1a04001 mov r4, r1 <== NOT EXECUTED
/*
* iov[v].iov_len cannot be less than 0 because size_t is unsigned.
* So we only check for zero.
*/
if ( iov[v].iov_base == 0 )
a000a0a8: e5921000 ldr r1, [r2] <== NOT EXECUTED a000a0ac: e3510000 cmp r1, #0 <== NOT EXECUTED a000a0b0: 0a00000a beq a000a0e0 <writev+0xb8> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
a000a0b4: e5921004 ldr r1, [r2, #4] <== NOT EXECUTED
all_zeros = false;
a000a0b8: e3510000 cmp r1, #0 <== NOT EXECUTED
/* check for wrap */
old = total;
total += iov[v].iov_len;
a000a0bc: e0841001 add r1, r4, r1 <== NOT EXECUTED
*/
if ( iov[v].iov_base == 0 )
rtems_set_errno_and_return_minus_one( EINVAL );
if ( iov[v].iov_len )
all_zeros = false;
a000a0c0: 13a07000 movne r7, #0 <== NOT EXECUTED
/* check for wrap */
old = total;
total += iov[v].iov_len;
if ( total < old || total > SSIZE_MAX )
a000a0c4: e1510004 cmp r1, r4 <== NOT EXECUTED a000a0c8: a3a04000 movge r4, #0 <== NOT EXECUTED a000a0cc: b3a04001 movlt r4, #1 <== NOT EXECUTED a000a0d0: e1510000 cmp r1, r0 <== NOT EXECUTED a000a0d4: c3844001 orrgt r4, r4, #1 <== NOT EXECUTED a000a0d8: e3540000 cmp r4, #0 <== NOT EXECUTED a000a0dc: 0a000003 beq a000a0f0 <writev+0xc8> <== NOT EXECUTED
rtems_set_errno_and_return_minus_one( EINVAL );
a000a0e0: eb001fc5 bl a0011ffc <__errno> <== NOT EXECUTED a000a0e4: e3a03016 mov r3, #22 <== NOT EXECUTED a000a0e8: e5803000 str r3, [r0] <== NOT EXECUTED a000a0ec: ea000020 b a000a174 <writev+0x14c> <== NOT EXECUTED
* this loop does that check as well and sets "all-zero" appropriately.
* The variable "all_zero" is used as an early exit point before
* entering the write loop.
*/
all_zeros = true;
for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) {
a000a0f0: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a0f4: e1530008 cmp r3, r8 <== NOT EXECUTED a000a0f8: e2822008 add r2, r2, #8 <== NOT EXECUTED a000a0fc: baffffe8 blt a000a0a4 <writev+0x7c> <== NOT EXECUTED
}
/*
* A writev with all zeros is supposed to have no effect per OpenGroup.
*/
if ( all_zeros == true ) {
a000a100: e3570000 cmp r7, #0 <== NOT EXECUTED a000a104: 1a00001b bne a000a178 <writev+0x150> <== NOT EXECUTED a000a108: e1a04007 mov r4, r7 <== NOT EXECUTED
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
/* all zero lengths has no effect */
if ( iov[v].iov_len == 0 )
a000a10c: e5952004 ldr r2, [r5, #4] <== NOT EXECUTED a000a110: e3520000 cmp r2, #0 <== NOT EXECUTED a000a114: 0a000011 beq a000a160 <writev+0x138> <== NOT EXECUTED
continue;
bytes = (*iop->pathinfo.handlers->write_h)(
a000a118: e5963020 ldr r3, [r6, #32] <== NOT EXECUTED a000a11c: e1a00006 mov r0, r6 <== NOT EXECUTED a000a120: e5951000 ldr r1, [r5] <== NOT EXECUTED a000a124: e593300c ldr r3, [r3, #12] <== NOT EXECUTED a000a128: e12fff33 blx r3 <== NOT EXECUTED
iop,
iov[v].iov_base,
iov[v].iov_len
);
if ( bytes < 0 )
a000a12c: e3500000 cmp r0, #0 <== NOT EXECUTED a000a130: ba00000f blt a000a174 <writev+0x14c> <== NOT EXECUTED
return -1;
if ( bytes > 0 ) {
a000a134: 0a000006 beq a000a154 <writev+0x12c> <== NOT EXECUTED
iop->offset += bytes;
a000a138: e286300c add r3, r6, #12 <== NOT EXECUTED
a000a13c: e893000c ldm r3, {r2, r3} <== NOT EXECUTED
a000a140: e0922000 adds r2, r2, r0 <== NOT EXECUTED
a000a144: e0a33fc0 adc r3, r3, r0, asr #31 <== NOT EXECUTED
a000a148: e586200c str r2, [r6, #12] <== NOT EXECUTED
a000a14c: e5863010 str r3, [r6, #16] <== NOT EXECUTED
total += bytes;
a000a150: e0844000 add r4, r4, r0 <== NOT EXECUTED
}
if (bytes != iov[ v ].iov_len)
a000a154: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED a000a158: e1500003 cmp r0, r3 <== NOT EXECUTED a000a15c: 1a000005 bne a000a178 <writev+0x150> <== NOT EXECUTED
}
/*
* Now process the writev().
*/
for ( total=0, v=0 ; v < iovcnt ; v++ ) {
a000a160: e2877001 add r7, r7, #1 <== NOT EXECUTED a000a164: e1570008 cmp r7, r8 <== NOT EXECUTED a000a168: e2855008 add r5, r5, #8 <== NOT EXECUTED a000a16c: baffffe6 blt a000a10c <writev+0xe4> <== NOT EXECUTED a000a170: ea000000 b a000a178 <writev+0x150> <== NOT EXECUTED
iov[v].iov_base,
iov[v].iov_len
);
if ( bytes < 0 )
return -1;
a000a174: e3e04000 mvn r4, #0 <== NOT EXECUTED
if (bytes != iov[ v ].iov_len)
break;
}
return total;
}
a000a178: e1a00004 mov r0, r4 <== NOT EXECUTED
a000a17c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED