300080bc : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 300080bc: e5903000 ldr r3, [r0] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 300080c0: e5902010 ldr r2, [r0, #16] switch( node->type ) { 300080c4: e593304c ldr r3, [r3, #76] ; 0x4c ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 300080c8: e5922034 ldr r2, [r2, #52] ; 0x34 switch( node->type ) { 300080cc: e2433001 sub r3, r3, #1 300080d0: e3530006 cmp r3, #6 300080d4: 979ff103 ldrls pc, [pc, r3, lsl #2] 300080d8: ea000008 b 30008100 <== NOT EXECUTED 300080dc: 30008128 .word 0x30008128 <== NOT EXECUTED 300080e0: 30008138 .word 0x30008138 <== NOT EXECUTED 300080e4: 30008118 .word 0x30008118 <== NOT EXECUTED 300080e8: 30008118 .word 0x30008118 <== NOT EXECUTED 300080ec: 30008108 .word 0x30008108 <== NOT EXECUTED 300080f0: 30008108 .word 0x30008108 <== NOT EXECUTED 300080f4: 300080f8 .word 0x300080f8 <== NOT EXECUTED break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 300080f8: e59f3048 ldr r3, [pc, #72] ; 30008148 300080fc: e5803008 str r3, [r0, #8] break; } return 0; } 30008100: e3a00000 mov r0, #0 30008104: e12fff1e bx lr break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 30008108: e5923004 ldr r3, [r2, #4] 3000810c: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 30008110: e3a00000 mov r0, #0 30008114: e12fff1e bx lr case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 30008118: e59f302c ldr r3, [pc, #44] ; 3000814c 3000811c: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 30008120: e3a00000 mov r0, #0 30008124: e12fff1e bx lr IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 30008128: e5923008 ldr r3, [r2, #8] 3000812c: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 30008130: e3a00000 mov r0, #0 30008134: e12fff1e bx lr switch( node->type ) { case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 30008138: e59f3010 ldr r3, [pc, #16] ; 30008150 3000813c: e5803008 str r3, [r0, #8] loc->handlers = &IMFS_fifo_handlers; break; } return 0; } 30008140: e3a00000 mov r0, #0 30008144: e12fff1e bx lr 30008148: 3001915c .word 0x3001915c 3000814c: 300191ec .word 0x300191ec 30008150: 300191b4 .word 0x300191b4 3000d6bc : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 3000d6bc: e92d40f0 push {r4, r5, r6, r7, lr} 3000d6c0: e1a01801 lsl r1, r1, #16 3000d6c4: e1a02802 lsl r2, r2, #16 3000d6c8: e24dd008 sub sp, sp, #8 IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; 3000d6cc: e5904000 ldr r4, [r0] int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 3000d6d0: e1a07821 lsr r7, r1, #16 3000d6d4: e1a06822 lsr r6, r2, #16 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 3000d6d8: eb0004a3 bl 3000e96c if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 3000d6dc: e1d453bc ldrh r5, [r4, #60] ; 0x3c 3000d6e0: e3500000 cmp r0, #0 3000d6e4: 11550000 cmpne r5, r0 3000d6e8: 03a05000 moveq r5, #0 3000d6ec: 13a05001 movne r5, #1 3000d6f0: 1a000009 bne 3000d71c rtems_set_errno_and_return_minus_one( EPERM ); #endif jnode->st_uid = owner; 3000d6f4: e1c473bc strh r7, [r4, #60] ; 0x3c jnode->st_gid = group; 3000d6f8: e1c463be strh r6, [r4, #62] ; 0x3e IMFS_update_ctime( jnode ); 3000d6fc: e1a0000d mov r0, sp 3000d700: e1a01005 mov r1, r5 3000d704: ebffd5ab bl 30002db8 3000d708: e59d3000 ldr r3, [sp] 3000d70c: e1a00005 mov r0, r5 3000d710: e5843048 str r3, [r4, #72] ; 0x48 return 0; } 3000d714: e28dd008 add sp, sp, #8 3000d718: e8bd80f0 pop {r4, r5, r6, r7, pc} #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); 3000d71c: eb0016e0 bl 300132a4 <__errno> <== NOT EXECUTED 3000d720: e3a03001 mov r3, #1 <== NOT EXECUTED 3000d724: e5803000 str r3, [r0] <== NOT EXECUTED 3000d728: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000d72c: eafffff8 b 3000d714 <== NOT EXECUTED 3000bea0 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 3000bea0: e92d40f0 push {r4, r5, r6, r7, lr} IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) 3000bea4: e2504000 subs r4, r0, #0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 3000bea8: e1a05001 mov r5, r1 3000beac: e59d6014 ldr r6, [sp, #20] IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) 3000beb0: 01a07004 moveq r7, r4 3000beb4: 1a000001 bne 3000bec0 node->st_ino = ++fs_info->ino_count; rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 3000beb8: e1a00007 mov r0, r7 <== NOT EXECUTED 3000bebc: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 3000bec0: e1a01002 mov r1, r2 3000bec4: e59f210c ldr r2, [pc, #268] ; 3000bfd8 3000bec8: e1a00005 mov r0, r5 3000becc: e5922000 ldr r2, [r2] 3000bed0: e592202c ldr r2, [r2, #44] ; 0x2c 3000bed4: e1c32002 bic r2, r3, r2 3000bed8: ebffffc0 bl 3000bde0 if ( !node ) 3000bedc: e2507000 subs r7, r0, #0 3000bee0: 0afffff4 beq 3000beb8 return NULL; /* * Set the type specific information */ switch (type) { 3000bee4: e2455001 sub r5, r5, #1 3000bee8: e3550006 cmp r5, #6 3000beec: 979ff105 ldrls pc, [pc, r5, lsl #2] 3000bef0: ea000033 b 3000bfc4 <== NOT EXECUTED 3000bef4: 3000bfa8 .word 0x3000bfa8 <== NOT EXECUTED 3000bef8: 3000bf94 .word 0x3000bf94 <== NOT EXECUTED 3000befc: 3000bf10 .word 0x3000bf10 <== NOT EXECUTED 3000bf00: 3000bf10 .word 0x3000bf10 <== NOT EXECUTED 3000bf04: 3000bf64 .word 0x3000bf64 <== NOT EXECUTED 3000bf08: 3000bf4c .word 0x3000bf4c <== NOT EXECUTED 3000bf0c: 3000bf88 .word 0x3000bf88 <== NOT EXECUTED case IMFS_HARD_LINK: node->info.hard_link.link_node = info->hard_link.link_node; break; case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; 3000bf10: e5963000 ldr r3, [r6] 3000bf14: e5873050 str r3, [r7, #80] ; 0x50 /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; fs_info = parent_loc->mt_entry->fs_info; 3000bf18: e5943010 ldr r3, [r4, #16] } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 3000bf1c: e5940000 ldr r0, [r4] fs_info = parent_loc->mt_entry->fs_info; 3000bf20: e5932034 ldr r2, [r3, #52] ; 0x34 node->Parent = parent; 3000bf24: e5870008 str r0, [r7, #8] node->st_ino = ++fs_info->ino_count; 3000bf28: e5923000 ldr r3, [r2] RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 3000bf2c: e2800050 add r0, r0, #80 ; 0x50 3000bf30: e2833001 add r3, r3, #1 3000bf34: e5823000 str r3, [r2] 3000bf38: e1a01007 mov r1, r7 3000bf3c: e5873038 str r3, [r7, #56] ; 0x38 3000bf40: ebffe48d bl 3000517c <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 3000bf44: e1a00007 mov r0, r7 3000bf48: e8bd80f0 pop {r4, r5, r6, r7, pc} node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 3000bf4c: e3a03000 mov r3, #0 <== NOT EXECUTED 3000bf50: e3a02000 mov r2, #0 <== NOT EXECUTED 3000bf54: e5872050 str r2, [r7, #80] ; 0x50 <== NOT EXECUTED 3000bf58: e5873054 str r3, [r7, #84] ; 0x54 <== NOT EXECUTED node->info.linearfile.direct = 0; 3000bf5c: e3a03000 mov r3, #0 <== NOT EXECUTED 3000bf60: e5873058 str r3, [r7, #88] ; 0x58 <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; 3000bf64: e3a03000 mov r3, #0 case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; 3000bf68: e3a01000 mov r1, #0 3000bf6c: e3a02000 mov r2, #0 3000bf70: e5871050 str r1, [r7, #80] ; 0x50 3000bf74: e5872054 str r2, [r7, #84] ; 0x54 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; 3000bf78: e5873060 str r3, [r7, #96] ; 0x60 node->info.linearfile.size = 0; node->info.linearfile.direct = 0; case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; 3000bf7c: e5873058 str r3, [r7, #88] ; 0x58 node->info.file.doubly_indirect = 0; 3000bf80: e587305c str r3, [r7, #92] ; 0x5c node->info.file.triply_indirect = 0; break; 3000bf84: eaffffe3 b 3000bf18 case IMFS_FIFO: node->info.fifo.pipe = NULL; 3000bf88: e3a03000 mov r3, #0 3000bf8c: e5873050 str r3, [r7, #80] ; 0x50 break; 3000bf90: eaffffe0 b 3000bf18 node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; 3000bf94: e5962004 ldr r2, [r6, #4] case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; 3000bf98: e5963000 ldr r3, [r6] node->info.device.minor = info->device.minor; 3000bf9c: e5872054 str r2, [r7, #84] ; 0x54 case IMFS_SYM_LINK: node->info.sym_link.name = info->sym_link.name; break; case IMFS_DEVICE: node->info.device.major = info->device.major; 3000bfa0: e5873050 str r3, [r7, #80] ; 0x50 node->info.device.minor = info->device.minor; break; 3000bfa4: eaffffdb b 3000bf18 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 3000bfa8: e2872054 add r2, r7, #84 ; 0x54 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 3000bfac: e2873050 add r3, r7, #80 ; 0x50 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 3000bfb0: e5872050 str r2, [r7, #80] ; 0x50 the_chain->permanent_null = NULL; 3000bfb4: e3a02000 mov r2, #0 3000bfb8: e5872054 str r2, [r7, #84] ; 0x54 the_chain->last = _Chain_Head(the_chain); 3000bfbc: e5873058 str r3, [r7, #88] ; 0x58 3000bfc0: eaffffd4 b 3000bf18 case IMFS_FIFO: node->info.fifo.pipe = NULL; break; default: assert(0); 3000bfc4: e59f0010 ldr r0, [pc, #16] ; 3000bfdc <== NOT EXECUTED 3000bfc8: e3a0105c mov r1, #92 ; 0x5c <== NOT EXECUTED 3000bfcc: e59f200c ldr r2, [pc, #12] ; 3000bfe0 <== NOT EXECUTED 3000bfd0: e59f300c ldr r3, [pc, #12] ; 3000bfe4 <== NOT EXECUTED 3000bfd4: ebfff402 bl 30008fe4 <__assert_func> <== NOT EXECUTED 3000bfd8: 3001a0a0 .word 0x3001a0a0 3000bfdc: 30019bec .word 0x30019bec 3000bfe0: 300194b8 .word 0x300194b8 3000bfe4: 30019960 .word 0x30019960 30003080 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 30003080: e3500000 cmp r0, #0 void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 30003084: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 30003088: e1a05001 mov r5, r1 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 3000308c: 0a000021 beq 30003118 assert( level >= 0 ); 30003090: e3510000 cmp r1, #0 30003094: ba000029 blt 30003140 assert( the_directory->type == IMFS_DIRECTORY ); 30003098: e590304c ldr r3, [r0, #76] ; 0x4c 3000309c: e3530001 cmp r3, #1 300030a0: 1a000021 bne 3000312c the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 300030a4: e5907050 ldr r7, [r0, #80] ; 0x50 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 300030a8: e2808054 add r8, r0, #84 ; 0x54 300030ac: e1570008 cmp r7, r8 300030b0: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} 300030b4: e59f6098 ldr r6, [pc, #152] ; 30003154 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 300030b8: e281a001 add sl, r1, #1 for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; 300030bc: e3a04000 mov r4, #0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 300030c0: e5963000 ldr r3, [r6] !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++ ) 300030c4: e2844001 add r4, r4, #1 fprintf(stdout, "...." ); 300030c8: e5933008 ldr r3, [r3, #8] 300030cc: e59f0084 ldr r0, [pc, #132] ; 30003158 300030d0: e3a01001 mov r1, #1 300030d4: e3a02004 mov r2, #4 300030d8: eb0040c1 bl 300133e4 !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++ ) 300030dc: e1550004 cmp r5, r4 300030e0: aafffff6 bge 300030c0 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 300030e4: e1a00007 mov r0, r7 300030e8: ebffff7a bl 30002ed8 if ( the_jnode->type == IMFS_DIRECTORY ) 300030ec: e597304c ldr r3, [r7, #76] ; 0x4c 300030f0: e3530001 cmp r3, #1 300030f4: 0a000003 beq 30003108 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 300030f8: e5977000 ldr r7, [r7] assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 300030fc: e1570008 cmp r7, r8 30003100: 1affffed bne 300030bc 30003104: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 30003108: e1a00007 mov r0, r7 3000310c: e1a0100a mov r1, sl 30003110: ebffffda bl 30003080 30003114: eafffff7 b 300030f8 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 30003118: e59f003c ldr r0, [pc, #60] ; 3000315c <== NOT EXECUTED 3000311c: e3a01084 mov r1, #132 ; 0x84 <== NOT EXECUTED 30003120: e59f2038 ldr r2, [pc, #56] ; 30003160 <== NOT EXECUTED 30003124: e59f3038 ldr r3, [pc, #56] ; 30003164 <== NOT EXECUTED 30003128: eb0001e4 bl 300038c0 <__assert_func> <== NOT EXECUTED assert( level >= 0 ); assert( the_directory->type == IMFS_DIRECTORY ); 3000312c: e59f0028 ldr r0, [pc, #40] ; 3000315c <== NOT EXECUTED 30003130: e3a01088 mov r1, #136 ; 0x88 <== NOT EXECUTED 30003134: e59f2024 ldr r2, [pc, #36] ; 30003160 <== NOT EXECUTED 30003138: e59f3028 ldr r3, [pc, #40] ; 30003168 <== NOT EXECUTED 3000313c: eb0001df bl 300038c0 <__assert_func> <== NOT EXECUTED IMFS_jnode_t *the_jnode; int i; assert( the_directory ); assert( level >= 0 ); 30003140: e59f0014 ldr r0, [pc, #20] ; 3000315c <== NOT EXECUTED 30003144: e3a01086 mov r1, #134 ; 0x86 <== NOT EXECUTED 30003148: e59f2010 ldr r2, [pc, #16] ; 30003160 <== NOT EXECUTED 3000314c: e59f3018 ldr r3, [pc, #24] ; 3000316c <== NOT EXECUTED 30003150: eb0001da bl 300038c0 <__assert_func> <== NOT EXECUTED 30003154: 30024598 .word 0x30024598 30003158: 30023600 .word 0x30023600 3000315c: 300234fc .word 0x300234fc 30003160: 30021f68 .word 0x30021f68 30003164: 300235bc .word 0x300235bc 30003168: 300235d8 .word 0x300235d8 3000316c: 300235cc .word 0x300235cc 300082f4 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 300082f4: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 300082f8: e5936000 ldr r6, [r3] const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 300082fc: e24dd040 sub sp, sp, #64 ; 0x40 30008300: e1a07003 mov r7, r3 30008304: e1a0a000 mov sl, r0 30008308: e1a04001 mov r4, r1 3000830c: e58d2000 str r2, [sp] /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 30008310: e3a05000 mov r5, #0 30008314: e28d8004 add r8, sp, #4 30008318: e28d903c add r9, sp, #60 ; 0x3c * 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 ); 3000831c: e1a02008 mov r2, r8 30008320: e1a03009 mov r3, r9 30008324: e08a0005 add r0, sl, r5 30008328: e1a01004 mov r1, r4 3000832c: eb000222 bl 30008bbc pathnamelen -= len; i += len; if ( !pathloc->node_access ) 30008330: e5973000 ldr r3, [r7] * 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 ); 30008334: e1a0b000 mov fp, r0 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 30008338: e3530000 cmp r3, #0 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 3000833c: e59d203c ldr r2, [sp, #60] ; 0x3c i += len; if ( !pathloc->node_access ) 30008340: 0a00004e beq 30008480 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 30008344: e3500000 cmp r0, #0 while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; 30008348: e0855002 add r5, r5, r2 */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 3000834c: e0624004 rsb r4, r2, r4 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 30008350: 1a00000f bne 30008394 * 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 ) { 30008354: e593204c ldr r2, [r3, #76] ; 0x4c 30008358: e3520001 cmp r2, #1 3000835c: 0a000054 beq 300084b4 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 30008360: e1a00007 mov r0, r7 30008364: ebffff54 bl 300080bc /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 30008368: e59d1000 ldr r1, [sp] flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 3000836c: e1a0b000 mov fp, r0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 30008370: e1a00007 mov r0, r7 30008374: ebffff76 bl 30008154 30008378: e3500000 cmp r0, #0 3000837c: 1a000036 bne 3000845c rtems_set_errno_and_return_minus_one( EACCES ); 30008380: eb001517 bl 3000d7e4 <__errno> 30008384: e3a0300d mov r3, #13 30008388: e5803000 str r3, [r0] 3000838c: e3e0b000 mvn fp, #0 30008390: ea000031 b 3000845c /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 30008394: e596104c ldr r1, [r6, #76] ; 0x4c 30008398: e3510001 cmp r1, #1 3000839c: 0a000031 beq 30008468 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 300083a0: e35b0003 cmp fp, #3 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; 300083a4: e1a06003 mov r6, r3 switch( type ) { 300083a8: 0a000006 beq 300083c8 300083ac: e35b0004 cmp fp, #4 300083b0: 0a000025 beq 3000844c 300083b4: e35b0002 cmp fp, #2 300083b8: 0a000013 beq 3000840c /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 300083bc: e35b0004 cmp fp, #4 300083c0: 1affffd5 bne 3000831c 300083c4: eaffffe2 b 30008354 <== NOT EXECUTED case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 300083c8: e593304c ldr r3, [r3, #76] ; 0x4c 300083cc: e3530003 cmp r3, #3 300083d0: 0a00002f beq 30008494 node = pathloc->node_access; if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 300083d4: e3530004 cmp r3, #4 300083d8: 0a000053 beq 3000852c /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 300083dc: e3530001 cmp r3, #1 300083e0: 1a00004c bne 30008518 /* * 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 ) { 300083e4: e596e05c ldr lr, [r6, #92] ; 0x5c 300083e8: e35e0000 cmp lr, #0 300083ec: 1a000033 bne 300084c0 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 300083f0: e1a00006 mov r0, r6 300083f4: e1a01008 mov r1, r8 300083f8: eb0001c0 bl 30008b00 if ( !node ) 300083fc: e2506000 subs r6, r0, #0 30008400: 0a00001e beq 30008480 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 30008404: e5876000 str r6, [r7] break; 30008408: eaffffc3 b 3000831c case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 3000840c: e59f1144 ldr r1, [pc, #324] ; 30008558 30008410: e5912000 ldr r2, [r1] 30008414: e5922018 ldr r2, [r2, #24] 30008418: e1520003 cmp r2, r3 3000841c: 0affffbe beq 3000831c /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 30008420: e597e010 ldr lr, [r7, #16] /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 30008424: e59e201c ldr r2, [lr, #28] 30008428: e1520003 cmp r2, r3 3000842c: 0a000047 beq 30008550 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 30008430: e5936008 ldr r6, [r3, #8] 30008434: e3560000 cmp r6, #0 30008438: 1afffff1 bne 30008404 rtems_set_errno_and_return_minus_one( ENOENT ); 3000843c: eb0014e8 bl 3000d7e4 <__errno> 30008440: e580b000 str fp, [r0] 30008444: e3e0b000 mvn fp, #0 30008448: ea000003 b 3000845c case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 3000844c: eb0014e4 bl 3000d7e4 <__errno> 30008450: e3a0305b mov r3, #91 ; 0x5b 30008454: e5803000 str r3, [r0] 30008458: e3e0b000 mvn fp, #0 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 3000845c: e1a0000b mov r0, fp 30008460: e28dd040 add sp, sp, #64 ; 0x40 30008464: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 30008468: e1a00007 mov r0, r7 3000846c: ebffff38 bl 30008154 30008470: e3500000 cmp r0, #0 30008474: 0affffc1 beq 30008380 30008478: e5973000 ldr r3, [r7] 3000847c: eaffffc7 b 300083a0 * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); if ( !node ) rtems_set_errno_and_return_minus_one( ENOENT ); 30008480: eb0014d7 bl 3000d7e4 <__errno> 30008484: e3a03002 mov r3, #2 30008488: e5803000 str r3, [r0] 3000848c: e3e0b000 mvn fp, #0 30008490: eafffff1 b 3000845c * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { IMFS_evaluate_hard_link( pathloc, 0 ); 30008494: e1a00007 mov r0, r7 30008498: e3a01000 mov r1, #0 3000849c: ebffff3f bl 300081a0 node = pathloc->node_access; 300084a0: e5976000 ldr r6, [r7] if ( !node ) 300084a4: e3560000 cmp r6, #0 300084a8: 0a00001a beq 30008518 } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 300084ac: e596304c ldr r3, [r6, #76] ; 0x4c 300084b0: eaffffc9 b 300083dc * * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { 300084b4: e593e05c ldr lr, [r3, #92] ; 0x5c 300084b8: e35e0000 cmp lr, #0 300084bc: 0affffa7 beq 30008360 newloc = node->info.directory.mt_fs->mt_fs_root; 300084c0: e28ee01c add lr, lr, #28 300084c4: e28dc028 add ip, sp, #40 ; 0x28 300084c8: e8be000f ldm lr!, {r0, r1, r2, r3} 300084cc: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; 300084d0: e28d6028 add r6, sp, #40 ; 0x28 300084d4: e8b6000f ldm r6!, {r0, r1, r2, r3} 300084d8: e1a06007 mov r6, r7 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 300084dc: e59ee000 ldr lr, [lr] *pathloc = newloc; 300084e0: e8a6000f stmia r6!, {r0, r1, r2, r3} return (*pathloc->ops->evalpath_h)( &pathname[i-len], 300084e4: e59d103c ldr r1, [sp, #60] ; 0x3c */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 300084e8: e586e000 str lr, [r6] return (*pathloc->ops->evalpath_h)( &pathname[i-len], 300084ec: e0610005 rsb r0, r1, r5 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; 300084f0: e58ce000 str lr, [ip] *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], 300084f4: e08a0000 add r0, sl, r0 300084f8: e0841001 add r1, r4, r1 300084fc: e59d2000 ldr r2, [sp] 30008500: e1a03007 mov r3, r7 30008504: e597c00c ldr ip, [r7, #12] 30008508: e1a0e00f mov lr, pc 3000850c: e59cf000 ldr pc, [ip] 30008510: e1a0b000 mov fp, r0 30008514: eaffffd0 b 3000845c /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 30008518: eb0014b1 bl 3000d7e4 <__errno> 3000851c: e3a03014 mov r3, #20 30008520: e5803000 str r3, [r0] 30008524: e3e0b000 mvn fp, #0 30008528: eaffffcb b 3000845c if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 3000852c: e1a00007 mov r0, r7 30008530: e3a01000 mov r1, #0 30008534: ebffff31 bl 30008200 node = pathloc->node_access; if ( result == -1 ) 30008538: e3700001 cmn r0, #1 if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); 3000853c: e1a0b000 mov fp, r0 node = pathloc->node_access; 30008540: e5976000 ldr r6, [r7] if ( result == -1 ) 30008544: 0affffc4 beq 3000845c } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 30008548: e596304c ldr r3, [r6, #76] ; 0x4c 3000854c: eaffffa2 b 300083dc */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 30008550: e28ee008 add lr, lr, #8 30008554: eaffffda b 300084c4 30008558: 3001a0a0 .word 0x3001a0a0 30008630 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 30008630: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30008634: e24dd040 sub sp, sp, #64 ; 0x40 30008638: e1a06001 mov r6, r1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 3000863c: e5915000 ldr r5, [r1] int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 30008640: e58d2000 str r2, [sp] 30008644: e1a0a000 mov sl, r0 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 30008648: eb001856 bl 3000e7a8 3000864c: e3a07000 mov r7, #0 30008650: e28d8004 add r8, sp, #4 30008654: e1a04000 mov r4, r0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 30008658: e1a01004 mov r1, r4 3000865c: e28d303c add r3, sp, #60 ; 0x3c 30008660: e08a0007 add r0, sl, r7 30008664: e1a02008 mov r2, r8 30008668: eb000153 bl 30008bbc pathlen -= len; i += len; if ( !pathloc->node_access ) 3000866c: e5963000 ldr r3, [r6] */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 30008670: e59db03c ldr fp, [sp, #60] ; 0x3c i += len; if ( !pathloc->node_access ) 30008674: e3530000 cmp r3, #0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 30008678: e1a09000 mov r9, r0 pathlen -= len; 3000867c: e06b4004 rsb r4, fp, r4 i += len; if ( !pathloc->node_access ) 30008680: 0a00003a beq 30008770 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 30008684: e3500000 cmp r0, #0 30008688: 1a000006 bne 300086a8 pathloc->node_access = node; break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 3000868c: eb001454 bl 3000d7e4 <__errno> 30008690: e3a03011 mov r3, #17 30008694: e5803000 str r3, [r0] 30008698: e3e05000 mvn r5, #0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 3000869c: e1a00005 mov r0, r5 300086a0: e28dd040 add sp, sp, #64 ; 0x40 300086a4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) 300086a8: e595104c ldr r1, [r5, #76] ; 0x4c 300086ac: e3510001 cmp r1, #1 300086b0: 0a00004b beq 300087e4 while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; 300086b4: 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; 300086b8: e1a05003 mov r5, r3 switch( type ) { 300086bc: e3590004 cmp r9, #4 300086c0: 979ff109 ldrls pc, [pc, r9, lsl #2] 300086c4: eaffffe3 b 30008658 <== NOT EXECUTED 300086c8: 3000868c .word 0x3000868c <== NOT EXECUTED 300086cc: 30008658 .word 0x30008658 <== NOT EXECUTED 300086d0: 30008740 .word 0x30008740 <== NOT EXECUTED 300086d4: 300086f0 .word 0x300086f0 <== NOT EXECUTED 300086d8: 300086dc .word 0x300086dc <== NOT EXECUTED case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 300086dc: eb001440 bl 3000d7e4 <__errno> 300086e0: e3a0305b mov r3, #91 ; 0x5b 300086e4: e5803000 str r3, [r0] 300086e8: e3e05000 mvn r5, #0 300086ec: eaffffea b 3000869c pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 300086f0: e593304c ldr r3, [r3, #76] ; 0x4c 300086f4: e3530003 cmp r3, #3 300086f8: 0a00006a beq 300088a8 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 300086fc: e3530004 cmp r3, #4 30008700: 0a000068 beq 300088a8 if ( result == -1 ) return -1; } node = pathloc->node_access; if ( !node ) 30008704: e3550000 cmp r5, #0 30008708: 0a00004c beq 30008840 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 3000870c: e595304c ldr r3, [r5, #76] ; 0x4c 30008710: e3530001 cmp r3, #1 30008714: 1a000049 bne 30008840 /* * 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 ) { 30008718: e595e05c ldr lr, [r5, #92] ; 0x5c 3000871c: e35e0000 cmp lr, #0 30008720: 1a00004b bne 30008854 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 30008724: e1a00005 mov r0, r5 30008728: e1a01008 mov r1, r8 3000872c: eb0000f3 bl 30008b00 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 30008730: e2505000 subs r5, r0, #0 30008734: 0a000012 beq 30008784 done = true; else pathloc->node_access = node; 30008738: e5865000 str r5, [r6] 3000873c: eaffffc5 b 30008658 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 30008740: e59f1188 ldr r1, [pc, #392] ; 300088d0 30008744: e5912000 ldr r2, [r1] 30008748: e5922018 ldr r2, [r2, #24] 3000874c: e1520003 cmp r2, r3 30008750: 0affffc0 beq 30008658 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 30008754: e596e010 ldr lr, [r6, #16] 30008758: e59e201c ldr r2, [lr, #28] 3000875c: e1520003 cmp r2, r3 30008760: 0a000058 beq 300088c8 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 30008764: e5935008 ldr r5, [r3, #8] 30008768: e3550000 cmp r5, #0 3000876c: 1afffff1 bne 30008738 * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { if ( !IMFS_is_separator( path[ i ] ) ) rtems_set_errno_and_return_minus_one( ENOENT ); 30008770: eb00141b bl 3000d7e4 <__errno> 30008774: e3a03002 mov r3, #2 30008778: e5803000 str r3, [r0] 3000877c: e3e05000 mvn r5, #0 30008780: eaffffc5 b 3000869c case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 30008784: e59d303c ldr r3, [sp, #60] ; 0x3c 30008788: e59d1000 ldr r1, [sp] 3000878c: e0633007 rsb r3, r3, r7 30008790: e08a3003 add r3, sl, r3 30008794: e5813000 str r3, [r1] /* * 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++) { 30008798: e7da3007 ldrb r3, [sl, r7] 3000879c: e3530000 cmp r3, #0 300087a0: 0a000015 beq 300087fc if ( !IMFS_is_separator( path[ i ] ) ) 300087a4: e353002f cmp r3, #47 ; 0x2f 300087a8: 1353005c cmpne r3, #92 ; 0x5c 300087ac: 1affffef bne 30008770 rtems_set_errno_and_return_minus_one( ENOENT ); 300087b0: e08a7007 add r7, sl, r7 /* * 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++) { 300087b4: e5d73001 ldrb r3, [r7, #1] if ( !IMFS_is_separator( path[ i ] ) ) 300087b8: e2877001 add r7, r7, #1 /* * 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++) { 300087bc: e3530000 cmp r3, #0 300087c0: 0a00000d beq 300087fc if ( !IMFS_is_separator( path[ i ] ) ) 300087c4: e353005c cmp r3, #92 ; 0x5c 300087c8: 1353002f cmpne r3, #47 ; 0x2f 300087cc: 0afffff8 beq 300087b4 rtems_set_errno_and_return_minus_one( ENOENT ); 300087d0: eb001403 bl 3000d7e4 <__errno> 300087d4: e3a03002 mov r3, #2 300087d8: e5803000 str r3, [r0] 300087dc: e3e05000 mvn r5, #0 300087e0: eaffffad b 3000869c * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 300087e4: e1a00006 mov r0, r6 300087e8: ebfffe59 bl 30008154 300087ec: e3500000 cmp r0, #0 300087f0: 0a00000d beq 3000882c 300087f4: e5963000 ldr r3, [r6] 300087f8: eaffffad b 300086b4 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 300087fc: e1a00006 mov r0, r6 30008800: ebfffe2d bl 300080bc /* * The returned node must be a directory */ node = pathloc->node_access; 30008804: e5963000 ldr r3, [r6] /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 30008808: e1a05000 mov r5, r0 /* * The returned node must be a directory */ node = pathloc->node_access; 3000880c: e593304c ldr r3, [r3, #76] ; 0x4c 30008810: e3530001 cmp r3, #1 30008814: 1a000009 bne 30008840 /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) 30008818: e1a00006 mov r0, r6 3000881c: e3a01003 mov r1, #3 30008820: ebfffe4b bl 30008154 30008824: e3500000 cmp r0, #0 30008828: 1affff9b bne 3000869c rtems_set_errno_and_return_minus_one( EACCES ); 3000882c: eb0013ec bl 3000d7e4 <__errno> 30008830: e3a0300d mov r3, #13 30008834: e5803000 str r3, [r0] 30008838: e3e05000 mvn r5, #0 3000883c: eaffff96 b 3000869c /* * The returned node must be a directory */ node = pathloc->node_access; if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 30008840: eb0013e7 bl 3000d7e4 <__errno> 30008844: e3a03014 mov r3, #20 30008848: e5803000 str r3, [r0] 3000884c: e3e05000 mvn r5, #0 30008850: eaffff91 b 3000869c * 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 ) { newloc = node->info.directory.mt_fs->mt_fs_root; 30008854: e28ee01c add lr, lr, #28 30008858: e28dc028 add ip, sp, #40 ; 0x28 3000885c: e8be000f ldm lr!, {r0, r1, r2, r3} 30008860: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; 30008864: e28d4028 add r4, sp, #40 ; 0x28 30008868: e8b4000f ldm r4!, {r0, r1, r2, r3} 3000886c: e1a04006 mov r4, r6 * 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 ) { newloc = node->info.directory.mt_fs->mt_fs_root; 30008870: e59ee000 ldr lr, [lr] *pathloc = newloc; 30008874: e8a4000f stmia r4!, {r0, r1, r2, r3} return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30008878: e59d003c ldr r0, [sp, #60] ; 0x3c * 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; 3000887c: e584e000 str lr, [r4] return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30008880: e0600007 rsb r0, r0, r7 * 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 ) { newloc = node->info.directory.mt_fs->mt_fs_root; 30008884: e58ce000 str lr, [ip] *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30008888: e08a0000 add r0, sl, r0 3000888c: e1a01006 mov r1, r6 30008890: e59d2000 ldr r2, [sp] 30008894: e596300c ldr r3, [r6, #12] 30008898: e1a0e00f mov lr, pc 3000889c: e593f004 ldr pc, [r3, #4] 300088a0: e1a05000 mov r5, r0 300088a4: eaffff7c b 3000869c if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 300088a8: e1a00006 mov r0, r6 300088ac: e3a01000 mov r1, #0 300088b0: ebffff29 bl 3000855c if ( result == -1 ) 300088b4: e3700001 cmn r0, #1 if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 300088b8: e1a05000 mov r5, r0 if ( result == -1 ) 300088bc: 0affff76 beq 3000869c 300088c0: e5965000 ldr r5, [r6] 300088c4: eaffff8e b 30008704 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 300088c8: e28ee008 add lr, lr, #8 300088cc: eaffffe1 b 30008858 300088d0: 3001a0a0 .word 0x3001a0a0 300081a0 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; 300081a0: e5903000 ldr r3, [r0] int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300081a4: e92d4030 push {r4, r5, lr} /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 300081a8: e593204c ldr r2, [r3, #76] ; 0x4c int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300081ac: e1a04000 mov r4, r0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 300081b0: e3520003 cmp r2, #3 int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300081b4: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 300081b8: 1a00000d bne 300081f4 /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 300081bc: e5933050 ldr r3, [r3, #80] ; 0x50 300081c0: e5803000 str r3, [r0] IMFS_Set_handlers( node ); 300081c4: ebffffbc bl 300080bc /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 300081c8: e1a00004 mov r0, r4 300081cc: e1a01005 mov r1, r5 300081d0: ebffffdf bl 30008154 300081d4: e3500000 cmp r0, #0 300081d8: 13a00000 movne r0, #0 300081dc: 18bd8030 popne {r4, r5, pc} rtems_set_errno_and_return_minus_one( EACCES ); 300081e0: eb00157f bl 3000d7e4 <__errno> <== NOT EXECUTED 300081e4: e3a0300d mov r3, #13 <== NOT EXECUTED 300081e8: e5803000 str r3, [r0] <== NOT EXECUTED 300081ec: e3e00000 mvn r0, #0 <== NOT EXECUTED return result; } 300081f0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 300081f4: e59f0000 ldr r0, [pc, #0] ; 300081fc <== NOT EXECUTED 300081f8: ebfff317 bl 30004e5c <== NOT EXECUTED 300081fc: abcd0000 .word 0xabcd0000 30008200 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30008200: e92d40f0 push {r4, r5, r6, r7, lr} IMFS_jnode_t *jnode = node->node_access; 30008204: e590e000 ldr lr, [r0] int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30008208: e1a04000 mov r4, r0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 3000820c: e59e304c ldr r3, [lr, #76] ; 0x4c int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30008210: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30008214: e3530004 cmp r3, #4 30008218: 1a000030 bne 300082e0 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 3000821c: e59e3008 ldr r3, [lr, #8] 30008220: e3530000 cmp r3, #0 30008224: 0a00002b beq 300082d8 /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 30008228: e5803000 str r3, [r0] rtems_filesystem_get_sym_start_loc( 3000822c: e59e2050 ldr r2, [lr, #80] ; 0x50 30008230: e5d23000 ldrb r3, [r2] 30008234: e353002f cmp r3, #47 ; 0x2f 30008238: 1353005c cmpne r3, #92 ; 0x5c 3000823c: 13a06000 movne r6, #0 30008240: 03a06001 moveq r6, #1 30008244: 1a00001b bne 300082b8 30008248: e59f3098 ldr r3, [pc, #152] ; 300082e8 3000824c: e1a07004 mov r7, r4 30008250: e593c000 ldr ip, [r3] 30008254: e3a06001 mov r6, #1 30008258: e28cc018 add ip, ip, #24 3000825c: e8bc000f ldm ip!, {r0, r1, r2, r3} 30008260: e8a7000f stmia r7!, {r0, r1, r2, r3} 30008264: e59c2000 ldr r2, [ip] 30008268: e5872000 str r2, [r7] 3000826c: e59e2050 ldr r2, [lr, #80] ; 0x50 * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 30008270: e0826006 add r6, r2, r6 30008274: e1a00006 mov r0, r6 30008278: eb00194a bl 3000e7a8 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 3000827c: e1a02005 mov r2, r5 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 30008280: e1a01000 mov r1, r0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 30008284: e1a03004 mov r3, r4 30008288: e1a00006 mov r0, r6 3000828c: eb000018 bl 300082f4 30008290: e1a06000 mov r6, r0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 30008294: e1a00004 mov r0, r4 30008298: ebffff87 bl 300080bc /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 3000829c: e1a00004 mov r0, r4 300082a0: e1a01005 mov r1, r5 300082a4: ebffffaa bl 30008154 300082a8: e3500000 cmp r0, #0 300082ac: 0a000004 beq 300082c4 rtems_set_errno_and_return_minus_one( EACCES ); return result; } 300082b0: e1a00006 mov r0, r6 300082b4: e8bd80f0 pop {r4, r5, r6, r7, pc} * root depending on the symbolic links path. */ node->node_access = jnode->Parent; rtems_filesystem_get_sym_start_loc( 300082b8: e3530000 cmp r3, #0 300082bc: 1affffeb bne 30008270 300082c0: eaffffe0 b 30008248 <== NOT EXECUTED /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 300082c4: eb001546 bl 3000d7e4 <__errno> <== NOT EXECUTED 300082c8: e3a0300d mov r3, #13 <== NOT EXECUTED 300082cc: e5803000 str r3, [r0] <== NOT EXECUTED 300082d0: e3e06000 mvn r6, #0 <== NOT EXECUTED 300082d4: eafffff5 b 300082b0 <== NOT EXECUTED if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) rtems_fatal_error_occurred( 0xBAD00000 ); 300082d8: e59f000c ldr r0, [pc, #12] ; 300082ec <== NOT EXECUTED 300082dc: ebfff2de bl 30004e5c <== NOT EXECUTED /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) rtems_fatal_error_occurred (0xABCD0000); 300082e0: e59f0008 ldr r0, [pc, #8] ; 300082f0 <== NOT EXECUTED 300082e4: ebfff2dc bl 30004e5c <== NOT EXECUTED 300082e8: 3001a0a0 .word 0x3001a0a0 300082ec: bad00000 .word 0xbad00000 300082f0: abcd0000 .word 0xabcd0000 3000bfe8 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 3000bfe8: e92d4070 push {r4, r5, r6, lr} 3000bfec: e24dd008 sub sp, sp, #8 IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; 3000bff0: e5904000 ldr r4, [r0] int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 3000bff4: e1a06001 mov r6, r1 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 3000bff8: ebfff4b6 bl 300092d8 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 3000bffc: e1d453bc ldrh r5, [r4, #60] ; 0x3c 3000c000: e3500000 cmp r0, #0 3000c004: 11550000 cmpne r5, r0 3000c008: 03a05000 moveq r5, #0 3000c00c: 13a05001 movne r5, #1 3000c010: 1a00000e bne 3000c050 /* * 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); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 3000c014: e5943030 ldr r3, [r4, #48] ; 0x30 3000c018: e1a06a06 lsl r6, r6, #20 3000c01c: e3c33eff bic r3, r3, #4080 ; 0xff0 3000c020: e3c3300f bic r3, r3, #15 3000c024: e1a06a26 lsr r6, r6, #20 3000c028: e1866003 orr r6, r6, r3 3000c02c: e5846030 str r6, [r4, #48] ; 0x30 IMFS_update_ctime( jnode ); 3000c030: e1a0000d mov r0, sp 3000c034: e1a01005 mov r1, r5 3000c038: ebfff4ab bl 300092ec 3000c03c: e59d3000 ldr r3, [sp] 3000c040: e1a00005 mov r0, r5 3000c044: e5843048 str r3, [r4, #72] ; 0x48 return 0; } 3000c048: e28dd008 add sp, sp, #8 3000c04c: e8bd8070 pop {r4, r5, r6, pc} */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) rtems_set_errno_and_return_minus_one( EPERM ); 3000c050: eb0005e3 bl 3000d7e4 <__errno> <== NOT EXECUTED 3000c054: e3a03001 mov r3, #1 <== NOT EXECUTED 3000c058: e5803000 str r3, [r0] <== NOT EXECUTED 3000c05c: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000c060: eafffff8 b 3000c048 <== NOT EXECUTED 30008a54 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 30008a54: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 30008a58: e5905038 ldr r5, [r0, #56] ; 0x38 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 30008a5c: e1a01000 mov r1, r0 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 30008a60: e1a04000 mov r4, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 30008a64: e2850050 add r0, r5, #80 ; 0x50 <== NOT EXECUTED 30008a68: eb000b8e bl 3000b8a8 <== NOT EXECUTED if (! err) { 30008a6c: e2506000 subs r6, r0, #0 <== NOT EXECUTED 30008a70: 0a000002 beq 30008a80 <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) free(jnode); } IMFS_FIFO_RETURN(err); 30008a74: ba00000e blt 30008ab4 <== NOT EXECUTED } 30008a78: e1a00006 mov r0, r6 <== NOT EXECUTED 30008a7c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 30008a80: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) 30008a84: e1a00005 mov r0, r5 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 30008a88: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED 30008a8c: e5843014 str r3, [r4, #20] <== NOT EXECUTED /* Free jnode if file is already unlinked and no one opens it */ if (! rtems_libio_is_file_open(jnode) && jnode->st_nlink < 1) 30008a90: eb000242 bl 300093a0 <== NOT EXECUTED 30008a94: e3500000 cmp r0, #0 <== NOT EXECUTED 30008a98: 1afffff6 bne 30008a78 <== NOT EXECUTED 30008a9c: e1d533b4 ldrh r3, [r5, #52] ; 0x34 <== NOT EXECUTED 30008aa0: e3530000 cmp r3, #0 <== NOT EXECUTED 30008aa4: 1afffff3 bne 30008a78 <== NOT EXECUTED free(jnode); 30008aa8: e1a00005 mov r0, r5 <== NOT EXECUTED 30008aac: eb00019a bl 3000911c <== NOT EXECUTED 30008ab0: eafffff0 b 30008a78 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 30008ab4: eb00134a bl 3000d7e4 <__errno> <== NOT EXECUTED 30008ab8: e2666000 rsb r6, r6, #0 <== NOT EXECUTED 30008abc: e5806000 str r6, [r0] <== NOT EXECUTED 30008ac0: e3e06000 mvn r6, #0 <== NOT EXECUTED 30008ac4: eaffffeb b 30008a78 <== NOT EXECUTED 3000892c : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 3000892c: e1a03000 mov r3, r0 <== NOT EXECUTED int err; if (command == FIONBIO) { 30008930: e59f0064 ldr r0, [pc, #100] ; 3000899c <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 30008934: e92d4010 push {r4, lr} <== NOT EXECUTED int err; if (command == FIONBIO) { 30008938: e1510000 cmp r1, r0 <== NOT EXECUTED 3000893c: 0a000009 beq 30008968 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 30008940: e5930038 ldr r0, [r3, #56] ; 0x38 <== NOT EXECUTED 30008944: e5900050 ldr r0, [r0, #80] ; 0x50 <== NOT EXECUTED 30008948: eb000aca bl 3000b478 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 3000894c: e3500000 cmp r0, #0 <== NOT EXECUTED 30008950: a8bd8010 popge {r4, pc} <== NOT EXECUTED 30008954: e2604000 rsb r4, r0, #0 <== NOT EXECUTED 30008958: eb0013a1 bl 3000d7e4 <__errno> <== NOT EXECUTED 3000895c: e5804000 str r4, [r0] <== NOT EXECUTED 30008960: e3e00000 mvn r0, #0 <== NOT EXECUTED } 30008964: e8bd8010 pop {r4, pc} <== NOT EXECUTED ) { int err; if (command == FIONBIO) { if (buffer == NULL) 30008968: e3520000 cmp r2, #0 <== NOT EXECUTED 3000896c: 03a0400e moveq r4, #14 <== NOT EXECUTED 30008970: 0afffff8 beq 30008958 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 30008974: e5920000 ldr r0, [r2] <== NOT EXECUTED 30008978: e3500000 cmp r0, #0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 3000897c: 15932014 ldrne r2, [r3, #20] <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 30008980: 05932014 ldreq r2, [r3, #20] <== NOT EXECUTED if (command == FIONBIO) { if (buffer == NULL) err = -EFAULT; else { if (*(int *)buffer) iop->flags |= LIBIO_FLAGS_NO_DELAY; 30008984: 13822001 orrne r2, r2, #1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 30008988: 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; 3000898c: 13a00000 movne r0, #0 <== NOT EXECUTED 30008990: 15832014 strne r2, [r3, #20] <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 30008994: 05832014 streq r2, [r3, #20] <== NOT EXECUTED 30008998: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3000899c: 8004667e .word 0x8004667e 300088d4 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 300088d4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 300088d8: e590c038 ldr ip, [r0, #56] ; 0x38 <== NOT EXECUTED rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 300088dc: e24dd004 sub sp, sp, #4 <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 300088e0: e59cc050 ldr ip, [ip, #80] ; 0x50 <== NOT EXECUTED 300088e4: e58d0000 str r0, [sp] <== NOT EXECUTED 300088e8: e1a0000c mov r0, ip <== NOT EXECUTED 300088ec: eb000ac3 bl 3000b400 <== NOT EXECUTED 300088f0: e1a03000 mov r3, r0 <== NOT EXECUTED 300088f4: e1a04fc3 asr r4, r3, #31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 300088f8: e3540000 cmp r4, #0 <== NOT EXECUTED rtems_libio_t *iop, rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 300088fc: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 30008900: ba000003 blt 30008914 <== NOT EXECUTED } 30008904: e1a01004 mov r1, r4 <== NOT EXECUTED 30008908: e1a00003 mov r0, r3 <== NOT EXECUTED 3000890c: e28dd004 add sp, sp, #4 <== NOT EXECUTED 30008910: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED rtems_off64_t offset, int whence ) { off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); IMFS_FIFO_RETURN(err); 30008914: eb0013b2 bl 3000d7e4 <__errno> <== NOT EXECUTED 30008918: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 3000891c: e5805000 str r5, [r0] <== NOT EXECUTED 30008920: e3e03000 mvn r3, #0 <== NOT EXECUTED 30008924: e3e04000 mvn r4, #0 <== NOT EXECUTED 30008928: eafffff5 b 30008904 <== NOT EXECUTED 300089fc : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 300089fc: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 30008a00: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30008a04: e1a03000 mov r3, r0 <== NOT EXECUTED 30008a08: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 30008a0c: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED 30008a10: eb000ab0 bl 3000b4d8 <== NOT EXECUTED if (err > 0) 30008a14: e2505000 subs r5, r0, #0 <== NOT EXECUTED 30008a18: da000007 ble 30008a3c <== NOT EXECUTED IMFS_update_atime(jnode); 30008a1c: e1a0000d mov r0, sp <== NOT EXECUTED 30008a20: e3a01000 mov r1, #0 <== NOT EXECUTED 30008a24: eb000230 bl 300092ec <== NOT EXECUTED 30008a28: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30008a2c: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED IMFS_FIFO_RETURN(err); } 30008a30: e1a00005 mov r0, r5 <== NOT EXECUTED 30008a34: e28dd008 add sp, sp, #8 <== NOT EXECUTED 30008a38: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) IMFS_update_atime(jnode); IMFS_FIFO_RETURN(err); 30008a3c: 0afffffb beq 30008a30 <== NOT EXECUTED 30008a40: eb001367 bl 3000d7e4 <__errno> <== NOT EXECUTED 30008a44: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 30008a48: e5805000 str r5, [r0] <== NOT EXECUTED 30008a4c: e3e05000 mvn r5, #0 <== NOT EXECUTED 30008a50: eafffff6 b 30008a30 <== NOT EXECUTED 300089a0 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 300089a0: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 300089a4: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 300089a8: e1a03000 mov r3, r0 <== NOT EXECUTED 300089ac: e24dd008 sub sp, sp, #8 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 300089b0: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED 300089b4: eb000b35 bl 3000b690 <== NOT EXECUTED if (err > 0) { 300089b8: e2505000 subs r5, r0, #0 <== NOT EXECUTED 300089bc: da000008 ble 300089e4 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 300089c0: e1a0000d mov r0, sp <== NOT EXECUTED 300089c4: e3a01000 mov r1, #0 <== NOT EXECUTED 300089c8: eb000247 bl 300092ec <== NOT EXECUTED 300089cc: e59d3000 ldr r3, [sp] <== NOT EXECUTED 300089d0: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED 300089d4: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED } IMFS_FIFO_RETURN(err); } 300089d8: e1a00005 mov r0, r5 <== NOT EXECUTED 300089dc: e28dd008 add sp, sp, #8 <== NOT EXECUTED 300089e0: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); if (err > 0) { IMFS_mtime_ctime_update(jnode); } IMFS_FIFO_RETURN(err); 300089e4: 0afffffb beq 300089d8 <== NOT EXECUTED 300089e8: eb00137d bl 3000d7e4 <__errno> <== NOT EXECUTED 300089ec: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 300089f0: e5805000 str r5, [r0] <== NOT EXECUTED 300089f4: e3e05000 mvn r5, #0 <== NOT EXECUTED 300089f8: eafffff6 b 300089d8 <== NOT EXECUTED 30008b00 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 30008b00: e92d4070 push {r4, r5, r6, lr} /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 30008b04: e2505000 subs r5, r0, #0 IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { 30008b08: e1a04001 mov r4, r1 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 30008b0c: 0a000020 beq 30008b94 if ( !name ) 30008b10: e3510000 cmp r1, #0 30008b14: 0a00000c beq 30008b4c /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) 30008b18: e1a00001 mov r0, r1 30008b1c: e59f1084 ldr r1, [pc, #132] ; 30008ba8 30008b20: eb001658 bl 3000e488 30008b24: e3500000 cmp r0, #0 30008b28: 0a000005 beq 30008b44 return directory; if ( !strcmp( name, dotdotname ) ) 30008b2c: e1a00004 mov r0, r4 30008b30: e59f1074 ldr r1, [pc, #116] ; 30008bac 30008b34: eb001653 bl 3000e488 30008b38: e3500000 cmp r0, #0 return directory->Parent; 30008b3c: 05955008 ldreq r5, [r5, #8] */ if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) 30008b40: 1a000004 bne 30008b58 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 30008b44: e1a00005 mov r0, r5 30008b48: e8bd8070 pop {r4, r5, r6, pc} if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 30008b4c: e3a05000 mov r5, #0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } 30008b50: e1a00005 mov r0, r5 30008b54: e8bd8070 pop {r4, r5, r6, pc} if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 30008b58: e5956050 ldr r6, [r5, #80] ; 0x50 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 30008b5c: e2855054 add r5, r5, #84 ; 0x54 30008b60: e1560005 cmp r6, r5 30008b64: 1a000003 bne 30008b78 30008b68: eafffff7 b 30008b4c !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { 30008b6c: e5966000 ldr r6, [r6] if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; 30008b70: e1560005 cmp r6, r5 30008b74: 0afffff4 beq 30008b4c !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 ) ) 30008b78: e1a00004 mov r0, r4 30008b7c: e286100c add r1, r6, #12 30008b80: eb001640 bl 3000e488 30008b84: e3500000 cmp r0, #0 30008b88: 1afffff7 bne 30008b6c 30008b8c: e1a05006 mov r5, r6 30008b90: eaffffeb b 30008b44 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); 30008b94: e59f0014 ldr r0, [pc, #20] ; 30008bb0 <== NOT EXECUTED 30008b98: e3a0102a mov r1, #42 ; 0x2a <== NOT EXECUTED 30008b9c: e59f2010 ldr r2, [pc, #16] ; 30008bb4 <== NOT EXECUTED 30008ba0: e59f3010 ldr r3, [pc, #16] ; 30008bb8 <== NOT EXECUTED 30008ba4: eb00010e bl 30008fe4 <__assert_func> <== NOT EXECUTED 30008ba8: 300191ac .word 0x300191ac 30008bac: 300191b0 .word 0x300191b0 30008bb0: 30019adc .word 0x30019adc 30008bb4: 30019194 .word 0x30019194 30008bb8: 30019b28 .word 0x30019b28 3000e384 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 3000e384: e92d4070 push {r4, r5, r6, lr} /* * 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; 3000e388: e1a0c000 mov ip, r0 3000e38c: e5bc401c ldr r4, [ip, #28]! ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 3000e390: e24dd014 sub sp, sp, #20 * 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; 3000e394: e1a0600d mov r6, sp ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 3000e398: e1a0e000 mov lr, r0 * 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; 3000e39c: e8bc000f ldm ip!, {r0, r1, r2, r3} 3000e3a0: e8a6000f stmia r6!, {r0, r1, r2, r3} 3000e3a4: e59c2000 ldr r2, [ip] /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 3000e3a8: e3a03000 mov r3, #0 * 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; 3000e3ac: e5862000 str r2, [r6] 3000e3b0: e1a0500d mov r5, sp /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 3000e3b4: e58e301c str r3, [lr, #28] do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 3000e3b8: e1a0000d mov r0, sp temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; 3000e3bc: e58d4000 str r4, [sp] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 3000e3c0: e5946008 ldr r6, [r4, #8] loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 3000e3c4: ebfffd5b bl 3000d938 if ( jnode->type != IMFS_DIRECTORY ) { 3000e3c8: e594304c ldr r3, [r4, #76] ; 0x4c */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 3000e3cc: e2842054 add r2, r4, #84 ; 0x54 3000e3d0: e3530001 cmp r3, #1 3000e3d4: 1a000010 bne 3000e41c 3000e3d8: e5943050 ldr r3, [r4, #80] ; 0x50 3000e3dc: e1530002 cmp r3, r2 3000e3e0: 0a00000d beq 3000e41c result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } if ( jnode != NULL ) { 3000e3e4: e3540000 cmp r4, #0 3000e3e8: 0a000008 beq 3000e410 if ( jnode->type == IMFS_DIRECTORY ) { 3000e3ec: e594304c ldr r3, [r4, #76] ; 0x4c 3000e3f0: e3530001 cmp r3, #1 3000e3f4: 1affffef bne 3000e3b8 3000e3f8: e5943050 ldr r3, [r4, #80] ; 0x50 3000e3fc: e2842054 add r2, r4, #84 ; 0x54 3000e400: e1530002 cmp r3, r2 3000e404: 0affffeb beq 3000e3b8 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 3000e408: e2534000 subs r4, r3, #0 3000e40c: 1affffe9 bne 3000e3b8 3000e410: e3a00000 mov r0, #0 return 0; } 3000e414: e28dd014 add sp, sp, #20 3000e418: e8bd8070 pop {r4, r5, r6, pc} result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 3000e41c: e3a00000 mov r0, #0 3000e420: e1a0100d mov r1, sp 3000e424: ebffd09d bl 300026a0 if (result != 0) 3000e428: e3500000 cmp r0, #0 3000e42c: 01a04006 moveq r4, r6 3000e430: 0affffeb beq 3000e3e4 if ( jnode->type == IMFS_DIRECTORY ) { if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 3000e434: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000e438: eafffff5 b 3000e414 <== NOT EXECUTED 30008ca8 : rtems_filesystem_mount_table_entry_t *temp_mt_entry, const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers ) { 30008ca8: e92d40f0 push {r4, r5, r6, r7, lr} 30008cac: 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, 30008cb0: e59f00c8 ldr r0, [pc, #200] ; 30008d80 rtems_filesystem_mount_table_entry_t *temp_mt_entry, const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers ) { 30008cb4: e1a06001 mov r6, r1 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 30008cb8: e5900000 ldr r0, [r0] rtems_filesystem_mount_table_entry_t *temp_mt_entry, const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers ) { 30008cbc: e1a07002 mov r7, r2 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 30008cc0: e3500010 cmp r0, #16 rtems_filesystem_mount_table_entry_t *temp_mt_entry, const rtems_filesystem_operations_table *op_table, const rtems_filesystem_file_handlers_r *memfile_handlers, const rtems_filesystem_file_handlers_r *directory_handlers ) { 30008cc4: e1a05003 mov r5, r3 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 30008cc8: 0a000008 beq 30008cf0 30008ccc: e3a03000 mov r3, #0 30008cd0: e3a02020 mov r2, #32 30008cd4: e1500002 cmp r0, r2 30008cd8: e2833001 add r3, r3, #1 30008cdc: 0a000003 beq 30008cf0 30008ce0: e3530005 cmp r3, #5 30008ce4: e1a02082 lsl r2, r2, #1 30008ce8: 1afffff9 bne 30008cd4 30008cec: e3a00080 mov r0, #128 ; 0x80 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 30008cf0: e59f308c ldr r3, [pc, #140] ; 30008d84 30008cf4: e5830000 str r0, [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(); 30008cf8: eb000c58 bl 3000be60 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; 30008cfc: e59fe084 ldr lr, [pc, #132] ; 30008d88 30008d00: 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(); 30008d04: e584001c str r0, [r4, #28] 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; 30008d08: e8be000f ldm lr!, {r0, r1, r2, r3} 30008d0c: e8ac000f stmia ip!, {r0, r1, r2, r3} 30008d10: e8be000f ldm lr!, {r0, r1, r2, r3} 30008d14: e8ac000f stmia ip!, {r0, r1, r2, r3} 30008d18: e89e000f ldm lr, {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; 30008d1c: e5846028 str r6, [r4, #40] ; 0x28 temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 30008d20: e88c000f stm ip, {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; 30008d24: e5845024 str r5, [r4, #36] ; 0x24 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 ) ); 30008d28: e3a00001 mov r0, #1 30008d2c: e3a0100c mov r1, #12 30008d30: eb0000be bl 30009030 if ( !fs_info ) { 30008d34: e3500000 cmp r0, #0 30008d38: 0a000009 beq 30008d64 fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 30008d3c: e594201c ldr r2, [r4, #28] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 30008d40: e3a03001 mov r3, #1 30008d44: e5803000 str r3, [r0] fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 30008d48: e5805008 str r5, [r0, #8] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 30008d4c: e5807004 str r7, [r0, #4] 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; 30008d50: e5840034 str r0, [r4, #52] ; 0x34 fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; jnode = temp_mt_entry->mt_fs_root.node_access; jnode->st_ino = fs_info->ino_count; 30008d54: e5823038 str r3, [r2, #56] ; 0x38 /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 30008d58: eb0009aa bl 3000b408 30008d5c: e3a00000 mov r0, #0 return 0; } 30008d60: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * Create custom file system data. */ fs_info = calloc( 1, sizeof( IMFS_fs_info_t ) ); if ( !fs_info ) { free(temp_mt_entry->mt_fs_root.node_access); 30008d64: e594001c ldr r0, [r4, #28] <== NOT EXECUTED 30008d68: eb0000eb bl 3000911c <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 30008d6c: eb00129c bl 3000d7e4 <__errno> <== NOT EXECUTED 30008d70: e3a0300c mov r3, #12 <== NOT EXECUTED 30008d74: e5803000 str r3, [r0] <== NOT EXECUTED 30008d78: e3e00000 mvn r0, #0 <== NOT EXECUTED 30008d7c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30008d80: 30019eac .word 0x30019eac 30008d84: 3001a7c0 .word 0x3001a7c0 30008d88: 30019488 .word 0x30019488 30002358 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 30002358: e92d4070 push {r4, r5, r6, lr} int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 3000235c: e5903000 ldr r3, [r0] int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 30002360: e24dd048 sub sp, sp, #72 ; 0x48 int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 30002364: e58d3028 str r3, [sp, #40] ; 0x28 if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 30002368: e1d333b4 ldrh r3, [r3, #52] ; 0x34 int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 3000236c: e1a05001 mov r5, r1 /* * 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 ) 30002370: e3530007 cmp r3, #7 int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 30002374: e1a06002 mov r6, r2 /* * 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 ) 30002378: 8a00001d bhi 300023f4 rtems_set_errno_and_return_minus_one( EMLINK ); /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); 3000237c: e1a00002 mov r0, r2 30002380: eb0047a0 bl 30014208 30002384: e28d4004 add r4, sp, #4 30002388: e1a01000 mov r1, r0 3000238c: e1a02004 mov r2, r4 30002390: e28d3044 add r3, sp, #68 ; 0x44 30002394: e1a00006 mov r0, r6 30002398: eb003056 bl 3000e4f8 * 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( 3000239c: e28dc028 add ip, sp, #40 ; 0x28 300023a0: e1a00005 mov r0, r5 300023a4: e1a02004 mov r2, r4 300023a8: e3a01003 mov r1, #3 300023ac: e59f3068 ldr r3, [pc, #104] ; 3000241c 300023b0: e58dc000 str ip, [sp] 300023b4: eb002d0d bl 3000d7f0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 300023b8: e3500000 cmp r0, #0 300023bc: 0a000011 beq 30002408 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++; 300023c0: e59d3028 ldr r3, [sp, #40] ; 0x28 IMFS_update_ctime( info.hard_link.link_node ); 300023c4: e28d003c add r0, sp, #60 ; 0x3c 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++; 300023c8: e1d323b4 ldrh r2, [r3, #52] ; 0x34 IMFS_update_ctime( info.hard_link.link_node ); 300023cc: e3a01000 mov r1, #0 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++; 300023d0: e2822001 add r2, r2, #1 300023d4: e1c323b4 strh r2, [r3, #52] ; 0x34 IMFS_update_ctime( info.hard_link.link_node ); 300023d8: eb000276 bl 30002db8 300023dc: e59d203c ldr r2, [sp, #60] ; 0x3c 300023e0: e59d3028 ldr r3, [sp, #40] ; 0x28 300023e4: e3a00000 mov r0, #0 300023e8: e5832048 str r2, [r3, #72] ; 0x48 return 0; } 300023ec: e28dd048 add sp, sp, #72 ; 0x48 300023f0: e8bd8070 pop {r4, r5, r6, pc} /* * 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 ) rtems_set_errno_and_return_minus_one( EMLINK ); 300023f4: eb0043aa bl 300132a4 <__errno> 300023f8: e3a0301f mov r3, #31 300023fc: e5803000 str r3, [r0] 30002400: e3e00000 mvn r0, #0 30002404: eafffff8 b 300023ec ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 30002408: eb0043a5 bl 300132a4 <__errno> <== NOT EXECUTED 3000240c: e3a0300c mov r3, #12 <== NOT EXECUTED 30002410: e5803000 str r3, [r0] <== NOT EXECUTED 30002414: e3e00000 mvn r0, #0 <== NOT EXECUTED 30002418: eafffff3 b 300023ec <== NOT EXECUTED 3000241c: 0000a1ff .word 0x0000a1ff 3001134c : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 3001134c: e2503000 subs r3, r0, #0 MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 30011350: e92d4030 push {r4, r5, lr} block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 30011354: 0a00000f beq 30011398 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30011358: e593304c ldr r3, [r3, #76] ; 0x4c 3001135c: e3530005 cmp r3, #5 30011360: 1a000011 bne 300113ac if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 ); 30011364: e3a02001 mov r2, #1 30011368: ebfffe94 bl 30010dc0 if ( *block_entry_ptr ) 3001136c: e5904000 ldr r4, [r0] assert( the_jnode->type == IMFS_MEMORY_FILE ); if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 ); 30011370: e1a05000 mov r5, r0 if ( *block_entry_ptr ) 30011374: e3540000 cmp r4, #0 30011378: 13a00000 movne r0, #0 3001137c: 18bd8030 popne {r4, r5, pc} #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 30011380: ebfffe81 bl 30010d8c if ( !memory ) 30011384: e3500000 cmp r0, #0 return 1; *block_entry_ptr = memory; 30011388: 15850000 strne r0, [r5] fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 3001138c: 03a00001 moveq r0, #1 return 1; *block_entry_ptr = memory; 30011390: 11a00004 movne r0, r4 return 0; } 30011394: e8bd8030 pop {r4, r5, pc} ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 30011398: e59f0020 ldr r0, [pc, #32] ; 300113c0 <== NOT EXECUTED 3001139c: e59f1020 ldr r1, [pc, #32] ; 300113c4 <== NOT EXECUTED 300113a0: e59f2020 ldr r2, [pc, #32] ; 300113c8 <== NOT EXECUTED 300113a4: e59f3020 ldr r3, [pc, #32] ; 300113cc <== NOT EXECUTED 300113a8: ebfff4ed bl 3000e764 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 300113ac: e59f000c ldr r0, [pc, #12] ; 300113c0 <== NOT EXECUTED 300113b0: e59f1018 ldr r1, [pc, #24] ; 300113d0 <== NOT EXECUTED 300113b4: e59f200c ldr r2, [pc, #12] ; 300113c8 <== NOT EXECUTED 300113b8: e59f3014 ldr r3, [pc, #20] ; 300113d4 <== NOT EXECUTED 300113bc: ebfff4e8 bl 3000e764 <__assert_func> <== NOT EXECUTED 300113c0: 3001fefc .word 0x3001fefc 300113c4: 00000169 .word 0x00000169 300113c8: 3001f644 .word 0x3001f644 300113cc: 3001ff44 .word 0x3001ff44 300113d0: 0000016d .word 0x0000016d 300113d4: 3001ff50 .word 0x3001ff50 300113d8 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 300113d8: e92d4df0 push {r4, r5, r6, r7, r8, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 300113dc: e2504000 subs r4, r0, #0 MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 300113e0: e24dd004 sub sp, sp, #4 300113e4: e1a08001 mov r8, r1 300113e8: e1a06002 mov r6, r2 /* * Perform internal consistency checks */ assert( the_jnode ); 300113ec: 0a00004e beq 3001152c if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 300113f0: e594304c ldr r3, [r4, #76] ; 0x4c 300113f4: e3530005 cmp r3, #5 300113f8: 1a000046 bne 30011518 if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 300113fc: e59f313c ldr r3, [pc, #316] ; 30011540 30011400: e593b000 ldr fp, [r3] 30011404: e3a03000 mov r3, #0 30011408: e1530002 cmp r3, r2 3001140c: e1a0312b lsr r3, fp, #2 30011410: e0213393 mla r1, r3, r3, r3 30011414: e0223391 mla r2, r1, r3, r3 30011418: e2423001 sub r3, r2, #1 3001141c: e002039b mul r2, fp, r3 30011420: ca000007 bgt 30011444 30011424: 0a000004 beq 3001143c rtems_set_errno_and_return_minus_one( EINVAL ); 30011428: eb00079d bl 300132a4 <__errno> <== NOT EXECUTED 3001142c: e3a03016 mov r3, #22 <== NOT EXECUTED 30011430: e5803000 str r3, [r0] <== NOT EXECUTED 30011434: e3e00000 mvn r0, #0 <== NOT EXECUTED 30011438: ea00002e b 300114f8 <== NOT EXECUTED assert( the_jnode->type == IMFS_MEMORY_FILE ); if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 3001143c: e1520008 cmp r2, r8 30011440: 9afffff8 bls 30011428 rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 30011444: e5947054 ldr r7, [r4, #84] ; 0x54 30011448: e594a050 ldr sl, [r4, #80] ; 0x50 3001144c: e1560007 cmp r6, r7 30011450: da000026 ble 300114f0 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 30011454: e1a0cfcb asr ip, fp, #31 30011458: e1a0300c mov r3, ip 3001145c: e1a0200b mov r2, fp 30011460: e1a00008 mov r0, r8 30011464: e1a01006 mov r1, r6 30011468: e58dc000 str ip, [sp] 3001146c: eb002ff2 bl 3001d43c <__divdi3> old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 30011470: e59dc000 ldr ip, [sp] /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 30011474: e1a05000 mov r5, r0 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 30011478: e1a01007 mov r1, r7 3001147c: e1a0000a mov r0, sl 30011480: e1a0200b mov r2, fp 30011484: e1a0300c mov r3, ip 30011488: eb002feb bl 3001d43c <__divdi3> /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 3001148c: e1550000 cmp r5, r0 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 30011490: e1a0a000 mov sl, r0 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 30011494: 3a000019 bcc 30011500 30011498: e1a07000 mov r7, r0 3001149c: ea000002 b 300114ac 300114a0: e2877001 add r7, r7, #1 300114a4: e1550007 cmp r5, r7 300114a8: 3a000014 bcc 30011500 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 300114ac: e1a00004 mov r0, r4 300114b0: e1a01007 mov r1, r7 300114b4: ebffffa4 bl 3001134c 300114b8: e3500000 cmp r0, #0 300114bc: 0afffff7 beq 300114a0 300114c0: ea000003 b 300114d4 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); 300114c4: e1a01007 mov r1, r7 <== NOT EXECUTED 300114c8: e1a00004 mov r0, r4 <== 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-- ) { 300114cc: e2477001 sub r7, r7, #1 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); 300114d0: ebfffeed bl 3001108c <== 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-- ) { 300114d4: e15a0007 cmp sl, r7 <== NOT EXECUTED 300114d8: 9afffff9 bls 300114c4 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 300114dc: eb000770 bl 300132a4 <__errno> <== NOT EXECUTED 300114e0: e3a0301c mov r3, #28 <== NOT EXECUTED 300114e4: e5803000 str r3, [r0] <== NOT EXECUTED 300114e8: e3e00000 mvn r0, #0 <== NOT EXECUTED 300114ec: ea000001 b 300114f8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 300114f0: 0a000005 beq 3001150c /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 300114f4: e3a00000 mov r0, #0 return 0; } 300114f8: e28dd004 add sp, sp, #4 300114fc: e8bd8df0 pop {r4, r5, r6, r7, r8, sl, fp, pc} /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 30011500: e5846054 str r6, [r4, #84] ; 0x54 30011504: e5848050 str r8, [r4, #80] ; 0x50 30011508: eafffff9 b 300114f4 rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( new_length <= the_jnode->info.file.size ) 3001150c: e158000a cmp r8, sl 30011510: 8affffcf bhi 30011454 30011514: eafffff6 b 300114f4 assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30011518: e59f0024 ldr r0, [pc, #36] ; 30011544 <== NOT EXECUTED 3001151c: e59f1024 ldr r1, [pc, #36] ; 30011548 <== NOT EXECUTED 30011520: e59f2024 ldr r2, [pc, #36] ; 3001154c <== NOT EXECUTED 30011524: e59f3024 ldr r3, [pc, #36] ; 30011550 <== NOT EXECUTED 30011528: ebfff48d bl 3000e764 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 3001152c: e59f0010 ldr r0, [pc, #16] ; 30011544 <== NOT EXECUTED 30011530: e59f101c ldr r1, [pc, #28] ; 30011554 <== NOT EXECUTED 30011534: e59f2010 ldr r2, [pc, #16] ; 3001154c <== NOT EXECUTED 30011538: e59f3018 ldr r3, [pc, #24] ; 30011558 <== NOT EXECUTED 3001153c: ebfff488 bl 3000e764 <__assert_func> <== NOT EXECUTED 30011540: 30020a94 .word 0x30020a94 30011544: 3001fefc .word 0x3001fefc 30011548: 00000135 .word 0x00000135 3001154c: 3001f65c .word 0x3001f65c 30011550: 3001ff50 .word 0x3001ff50 30011554: 00000131 .word 0x00000131 30011558: 3001ff44 .word 0x3001ff44 30010dc0 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 30010dc0: e92d41f0 push {r4, r5, r6, r7, r8, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 30010dc4: e2504000 subs r4, r0, #0 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 30010dc8: e24dd004 sub sp, sp, #4 /* * Perform internal consistency checks */ assert( the_jnode ); 30010dcc: 0a000078 beq 30010fb4 if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 30010dd0: e594304c ldr r3, [r4, #76] ; 0x4c 30010dd4: e3530005 cmp r3, #5 30010dd8: 1a000070 bne 30010fa0 /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 30010ddc: e59f320c ldr r3, [pc, #524] ; 30010ff0 30010de0: e5935000 ldr r5, [r3] 30010de4: e1a05125 lsr r5, r5, #2 30010de8: e2453001 sub r3, r5, #1 30010dec: e1510003 cmp r1, r3 30010df0: 9a000019 bls 30010e5c /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 30010df4: e0265595 mla r6, r5, r5, r5 <== NOT EXECUTED 30010df8: e2463001 sub r3, r6, #1 <== NOT EXECUTED 30010dfc: e1510003 cmp r1, r3 <== NOT EXECUTED 30010e00: 8a000025 bhi 30010e9c <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 30010e04: e0656001 rsb r6, r5, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30010e08: e1a00006 mov r0, r6 <== NOT EXECUTED 30010e0c: e1a01005 mov r1, r5 <== NOT EXECUTED 30010e10: e58d2000 str r2, [sp] <== NOT EXECUTED 30010e14: eb002ec1 bl 3001c920 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30010e18: e1a01005 mov r1, r5 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30010e1c: e1a07000 mov r7, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30010e20: e1a00006 mov r0, r6 <== NOT EXECUTED 30010e24: eb002e79 bl 3001c810 <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 30010e28: e59d2000 ldr r2, [sp] <== NOT EXECUTED #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30010e2c: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 30010e30: e3520000 cmp r2, #0 <== NOT EXECUTED my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; p = info->doubly_indirect; 30010e34: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED if ( malloc_it ) { 30010e38: 0a000044 beq 30010f50 <== NOT EXECUTED if ( !p ) { 30010e3c: e3530000 cmp r3, #0 <== NOT EXECUTED 30010e40: 0a000049 beq 30010f6c <== NOT EXECUTED if ( !p ) return 0; info->doubly_indirect = p; } p1 = (block_p *)p[ doubly ]; 30010e44: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED 30010e48: e0835105 add r5, r3, r5, lsl #2 <== NOT EXECUTED if ( !p1 ) { 30010e4c: e3500000 cmp r0, #0 <== NOT EXECUTED 30010e50: 0a000034 beq 30010f28 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 30010e54: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED 30010e58: ea000005 b 30010e74 <== NOT EXECUTED fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 30010e5c: e3520000 cmp r2, #0 if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; 30010e60: e5940058 ldr r0, [r4, #88] ; 0x58 if ( malloc_it ) { 30010e64: 0a000035 beq 30010f40 if ( !p ) { 30010e68: e3500000 cmp r0, #0 30010e6c: 0a000002 beq 30010e7c } if ( !p ) return 0; return &info->indirect[ my_block ]; 30010e70: e0800101 add r0, r0, r1, lsl #2 /* * This means the requested block number is out of range. */ return 0; } 30010e74: e28dd004 add sp, sp, #4 30010e78: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} p = info->indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 30010e7c: e58d1000 str r1, [sp] 30010e80: ebffffc1 bl 30010d8c if ( !p ) 30010e84: e3500000 cmp r0, #0 30010e88: e59d1000 ldr r1, [sp] return 0; info->indirect = p; 30010e8c: 15840058 strne r0, [r4, #88] ; 0x58 if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); if ( !p ) 30010e90: 1afffff6 bne 30010e70 p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 30010e94: e3a00000 mov r0, #0 <== NOT EXECUTED 30010e98: eafffff5 b 30010e74 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 30010e9c: e0235596 mla r3, r6, r5, r5 <== NOT EXECUTED 30010ea0: e2433001 sub r3, r3, #1 <== NOT EXECUTED 30010ea4: e1510003 cmp r1, r3 <== NOT EXECUTED 30010ea8: 8afffff9 bhi 30010e94 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 30010eac: e0666001 rsb r6, r6, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30010eb0: e1a00006 mov r0, r6 <== NOT EXECUTED 30010eb4: e1a01005 mov r1, r5 <== NOT EXECUTED 30010eb8: e58d2000 str r2, [sp] <== NOT EXECUTED 30010ebc: eb002e97 bl 3001c920 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30010ec0: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 30010ec4: e1a07000 mov r7, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 30010ec8: e1a00006 mov r0, r6 <== NOT EXECUTED 30010ecc: eb002e4f bl 3001c810 <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 30010ed0: 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; 30010ed4: e1a08000 mov r8, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 30010ed8: eb002e4c bl 3001c810 <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 30010edc: 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; 30010ee0: e1a06000 mov r6, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 30010ee4: e1a00008 mov r0, r8 <== NOT EXECUTED 30010ee8: eb002e8c bl 3001c920 <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 30010eec: e59d2000 ldr r2, [sp] <== 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; 30010ef0: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 30010ef4: e3520000 cmp r2, #0 <== NOT EXECUTED 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; p = info->triply_indirect; 30010ef8: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED if ( malloc_it ) { 30010efc: 0a00001f beq 30010f80 <== NOT EXECUTED if ( !p ) { 30010f00: e3530000 cmp r3, #0 <== NOT EXECUTED 30010f04: 0a000034 beq 30010fdc <== NOT EXECUTED if ( !p ) return 0; info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; 30010f08: e7932106 ldr r2, [r3, r6, lsl #2] <== NOT EXECUTED 30010f0c: e0836106 add r6, r3, r6, lsl #2 <== NOT EXECUTED if ( !p1 ) { 30010f10: e3520000 cmp r2, #0 <== NOT EXECUTED 30010f14: 0a00002b beq 30010fc8 <== NOT EXECUTED if ( !p1 ) return 0; p[ triply ] = (block_p) p1; } p2 = (block_p *)p1[ doubly ]; 30010f18: e7920105 ldr r0, [r2, r5, lsl #2] <== NOT EXECUTED 30010f1c: e0825105 add r5, r2, r5, lsl #2 <== NOT EXECUTED if ( !p2 ) { 30010f20: e3500000 cmp r0, #0 <== NOT EXECUTED 30010f24: 1affffca bne 30010e54 <== NOT EXECUTED p2 = memfile_alloc_block(); 30010f28: ebffff97 bl 30010d8c <== NOT EXECUTED if ( !p2 ) 30010f2c: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 30010f30: 15850000 strne r0, [r5] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); if ( !p2 ) 30010f34: 0affffd6 beq 30010e94 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 30010f38: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED 30010f3c: eaffffcc b 30010e74 <== NOT EXECUTED info->indirect = p; } return &info->indirect[ my_block ]; } if ( !p ) 30010f40: e3500000 cmp r0, #0 30010f44: 1affffc9 bne 30010e70 p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 30010f48: e3a00000 mov r0, #0 <== NOT EXECUTED 30010f4c: eaffffc8 b 30010e74 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 30010f50: e3530000 cmp r3, #0 <== NOT EXECUTED 30010f54: 0affffce beq 30010e94 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 30010f58: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED if ( !p ) 30010f5c: e3500000 cmp r0, #0 <== NOT EXECUTED 30010f60: 0affffcb beq 30010e94 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 30010f64: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED 30010f68: eaffffc1 b 30010e74 <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 30010f6c: ebffff86 bl 30010d8c <== NOT EXECUTED if ( !p ) 30010f70: e2503000 subs r3, r0, #0 <== NOT EXECUTED 30010f74: 0affffc6 beq 30010e94 <== NOT EXECUTED return 0; info->doubly_indirect = p; 30010f78: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED 30010f7c: eaffffb0 b 30010e44 <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 30010f80: e3530000 cmp r3, #0 <== NOT EXECUTED 30010f84: 0affffc2 beq 30010e94 <== NOT EXECUTED #if 0 fprintf(stdout, "(t %d %d %d %d %d) ", block, my_block, triply, doubly, singly ); fflush(stdout); #endif p1 = (block_p *) p[ triply ]; 30010f88: e7933106 ldr r3, [r3, r6, lsl #2] <== NOT EXECUTED if ( !p1 ) 30010f8c: e3530000 cmp r3, #0 <== NOT EXECUTED 30010f90: 0affffbf beq 30010e94 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 30010f94: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED 30010f98: e0800107 add r0, r0, r7, lsl #2 <== NOT EXECUTED 30010f9c: eaffffb4 b 30010e74 <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 30010fa0: e59f004c ldr r0, [pc, #76] ; 30010ff4 <== NOT EXECUTED 30010fa4: e3a01fe3 mov r1, #908 ; 0x38c <== NOT EXECUTED 30010fa8: e59f2048 ldr r2, [pc, #72] ; 30010ff8 <== NOT EXECUTED 30010fac: e59f3048 ldr r3, [pc, #72] ; 30010ffc <== NOT EXECUTED 30010fb0: ebfff5eb bl 3000e764 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30010fb4: e59f0038 ldr r0, [pc, #56] ; 30010ff4 <== NOT EXECUTED 30010fb8: e3a01fe2 mov r1, #904 ; 0x388 <== NOT EXECUTED 30010fbc: e59f2034 ldr r2, [pc, #52] ; 30010ff8 <== NOT EXECUTED 30010fc0: e59f3038 ldr r3, [pc, #56] ; 30011000 <== NOT EXECUTED 30010fc4: ebfff5e6 bl 3000e764 <__assert_func> <== NOT EXECUTED info->triply_indirect = p; } p1 = (block_p *) p[ triply ]; if ( !p1 ) { p1 = memfile_alloc_block(); 30010fc8: ebffff6f bl 30010d8c <== NOT EXECUTED if ( !p1 ) 30010fcc: e2502000 subs r2, r0, #0 <== NOT EXECUTED 30010fd0: 0affffaf beq 30010e94 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 30010fd4: e5862000 str r2, [r6] <== NOT EXECUTED 30010fd8: eaffffce b 30010f18 <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { if ( !p ) { p = memfile_alloc_block(); 30010fdc: ebffff6a bl 30010d8c <== NOT EXECUTED if ( !p ) 30010fe0: e2503000 subs r3, r0, #0 <== NOT EXECUTED 30010fe4: 0affffaa beq 30010e94 <== NOT EXECUTED return 0; info->triply_indirect = p; 30010fe8: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED 30010fec: eaffffc5 b 30010f08 <== NOT EXECUTED 30010ff0: 30020a94 .word 0x30020a94 30010ff4: 3001fefc .word 0x3001fefc 30010ff8: 3001f5d4 .word 0x3001f5d4 30010ffc: 3001ff50 .word 0x3001ff50 30011000: 3001ff44 .word 0x3001ff44 300119ec : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 300119ec: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 300119f0: e2509000 subs r9, r0, #0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 300119f4: e24dd014 sub sp, sp, #20 300119f8: e1a08003 mov r8, r3 300119fc: e1a0a001 mov sl, r1 30011a00: e1a0b002 mov fp, r2 30011a04: e59d5038 ldr r5, [sp, #56] ; 0x38 /* * Perform internal consistency checks */ assert( the_jnode ); 30011a08: 0a000092 beq 30011c58 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 30011a0c: e599304c ldr r3, [r9, #76] ; 0x4c 30011a10: e2432005 sub r2, r3, #5 30011a14: e3520001 cmp r2, #1 30011a18: 8a000089 bhi 30011c44 /* * Error checks on arguments */ assert( dest ); 30011a1c: e3580000 cmp r8, #0 30011a20: 0a000096 beq 30011c80 /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 30011a24: e3550000 cmp r5, #0 30011a28: 0a000076 beq 30011c08 /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 30011a2c: e3530006 cmp r3, #6 30011a30: 0a00005a beq 30011ba0 * 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; if ( last_byte > the_jnode->info.file.size ) 30011a34: e5993054 ldr r3, [r9, #84] ; 0x54 30011a38: e3a02000 mov r2, #0 30011a3c: e1520003 cmp r2, r3 /* * 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; 30011a40: e1a03001 mov r3, r1 if ( last_byte > the_jnode->info.file.size ) 30011a44: e5992050 ldr r2, [r9, #80] ; 0x50 30011a48: e0851001 add r1, r5, r1 30011a4c: ca000051 bgt 30011b98 30011a50: 0a00004e beq 30011b90 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30011a54: e59f6238 ldr r6, [pc, #568] ; 30011c94 30011a58: e1a0000a mov r0, sl 30011a5c: e5964000 ldr r4, [r6] 30011a60: e1a0100b mov r1, fp 30011a64: e1a02004 mov r2, r4 30011a68: e1a03fc2 asr r3, r2, #31 30011a6c: e98d000c stmib sp, {r2, r3} 30011a70: eb002f9b bl 3001d8e4 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30011a74: e99d000c ldmib sp, {r2, r3} /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30011a78: e1a0c000 mov ip, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30011a7c: e1a0100b mov r1, fp 30011a80: e1a0000a mov r0, sl 30011a84: e58dc000 str ip, [sp] 30011a88: eb002e6b bl 3001d43c <__divdi3> if ( start_offset ) { 30011a8c: e59dc000 ldr ip, [sp] /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30011a90: e1a07000 mov r7, r0 if ( start_offset ) { 30011a94: e35c0000 cmp ip, #0 30011a98: 01a0a00c moveq sl, ip 30011a9c: 0a000013 beq 30011af0 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 ); 30011aa0: e1a00009 mov r0, r9 30011aa4: e1a01007 mov r1, r7 30011aa8: e3a02000 mov r2, #0 30011aac: e58dc000 str ip, [sp] 30011ab0: ebfffcc2 bl 30010dc0 assert( block_ptr ); 30011ab4: e3500000 cmp r0, #0 30011ab8: e59dc000 ldr ip, [sp] 30011abc: 0a00006a beq 30011c6c */ 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; 30011ac0: e06ca004 rsb sl, ip, r4 to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 30011ac4: e5901000 ldr r1, [r0] */ 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; 30011ac8: e155000a cmp r5, sl 30011acc: 31a0a005 movcc sl, r5 to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 30011ad0: e1a00008 mov r0, r8 30011ad4: e081100c add r1, r1, ip 30011ad8: e1a0200a mov r2, sl 30011adc: eb0007fe bl 30013adc dest += to_copy; block++; my_length -= to_copy; 30011ae0: e5964000 ldr r4, [r6] block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); dest += to_copy; 30011ae4: e088800a add r8, r8, sl block++; 30011ae8: e2877001 add r7, r7, #1 my_length -= to_copy; 30011aec: e06a5005 rsb r5, sl, r5 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30011af0: e1550004 cmp r5, r4 30011af4: 3a000010 bcc 30011b3c block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30011af8: e1a00009 mov r0, r9 30011afc: e1a01007 mov r1, r7 30011b00: e3a02000 mov r2, #0 30011b04: ebfffcad bl 30010dc0 assert( block_ptr ); 30011b08: e3500000 cmp r0, #0 30011b0c: 0a000042 beq 30011c1c if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 30011b10: e5901000 ldr r1, [r0] 30011b14: e1a02004 mov r2, r4 30011b18: e1a00008 mov r0, r8 30011b1c: eb0007ee bl 30013adc /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30011b20: e5963000 ldr r3, [r6] if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; 30011b24: e0645005 rsb r5, r4, r5 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30011b28: e1530005 cmp r3, r5 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; 30011b2c: e0888004 add r8, r8, r4 block++; 30011b30: e2877001 add r7, r7, #1 my_length -= to_copy; copied += to_copy; 30011b34: e08aa004 add sl, sl, r4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30011b38: 9affffee bls 30011af8 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 30011b3c: e3550000 cmp r5, #0 30011b40: 0a00000a beq 30011b70 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30011b44: e1a01007 mov r1, r7 30011b48: e1a00009 mov r0, r9 30011b4c: e3a02000 mov r2, #0 30011b50: ebfffc9a bl 30010dc0 assert( block_ptr ); 30011b54: e2503000 subs r3, r0, #0 30011b58: 0a000034 beq 30011c30 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 30011b5c: e1a00008 mov r0, r8 30011b60: e5931000 ldr r1, [r3] 30011b64: e1a02005 mov r2, r5 30011b68: eb0007db bl 30013adc copied += my_length; 30011b6c: e08aa005 add sl, sl, r5 } IMFS_update_atime( the_jnode ); 30011b70: e28d000c add r0, sp, #12 30011b74: e3a01000 mov r1, #0 30011b78: ebffc48e bl 30002db8 30011b7c: e59d300c ldr r3, [sp, #12] return copied; 30011b80: e1a0000a mov r0, sl return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); copied += my_length; } IMFS_update_atime( the_jnode ); 30011b84: e5893040 str r3, [r9, #64] ; 0x40 return copied; } 30011b88: e28dd014 add sp, sp, #20 30011b8c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * 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; if ( last_byte > the_jnode->info.file.size ) 30011b90: e1510002 cmp r1, r2 30011b94: 9affffae bls 30011a54 my_length = the_jnode->info.file.size - start; 30011b98: e0635002 rsb r5, r3, r2 30011b9c: eaffffac b 30011a54 if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 30011ba0: e2894050 add r4, r9, #80 ; 0x50 <== NOT EXECUTED 30011ba4: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED 30011ba8: e1a00003 mov r0, r3 <== NOT EXECUTED 30011bac: e1a01004 mov r1, r4 <== NOT EXECUTED 30011bb0: e3a02000 mov r2, #0 <== NOT EXECUTED 30011bb4: e050000a subs r0, r0, sl <== NOT EXECUTED 30011bb8: e0c1100b sbc r1, r1, fp <== NOT EXECUTED 30011bbc: e1520001 cmp r2, r1 <== NOT EXECUTED * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; 30011bc0: e5992058 ldr r2, [r9, #88] ; 0x58 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) 30011bc4: da00000b ble 30011bf8 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 30011bc8: e06a5003 rsb r5, sl, r3 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 30011bcc: e082100a add r1, r2, sl <== NOT EXECUTED 30011bd0: e1a00008 mov r0, r8 <== NOT EXECUTED 30011bd4: e1a02005 mov r2, r5 <== NOT EXECUTED 30011bd8: eb0007bf bl 30013adc <== NOT EXECUTED IMFS_update_atime( the_jnode ); 30011bdc: e28d000c add r0, sp, #12 <== NOT EXECUTED 30011be0: e3a01000 mov r1, #0 <== NOT EXECUTED 30011be4: ebffc473 bl 30002db8 <== NOT EXECUTED 30011be8: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED return my_length; 30011bec: e1a00005 mov r0, r5 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) my_length = the_jnode->info.linearfile.size - start; memcpy(dest, &file_ptr[start], my_length); IMFS_update_atime( the_jnode ); 30011bf0: e5893040 str r3, [r9, #64] ; 0x40 <== NOT EXECUTED return my_length; 30011bf4: eaffffe3 b 30011b88 <== NOT EXECUTED if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 30011bf8: 1afffff3 bne 30011bcc <== NOT EXECUTED 30011bfc: e1550000 cmp r5, r0 <== NOT EXECUTED 30011c00: 9afffff1 bls 30011bcc <== NOT EXECUTED 30011c04: eaffffef b 30011bc8 <== NOT EXECUTED * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 30011c08: eb0005a5 bl 300132a4 <__errno> <== NOT EXECUTED 30011c0c: e3a03016 mov r3, #22 <== NOT EXECUTED 30011c10: e5803000 str r3, [r0] <== NOT EXECUTED 30011c14: e3e00000 mvn r0, #0 <== NOT EXECUTED 30011c18: eaffffda b 30011b88 <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 30011c1c: e59f0074 ldr r0, [pc, #116] ; 30011c98 <== NOT EXECUTED 30011c20: e59f1074 ldr r1, [pc, #116] ; 30011c9c <== NOT EXECUTED 30011c24: e59f2074 ldr r2, [pc, #116] ; 30011ca0 <== NOT EXECUTED 30011c28: e59f3074 ldr r3, [pc, #116] ; 30011ca4 <== NOT EXECUTED 30011c2c: ebfff2cc bl 3000e764 <__assert_func> <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 30011c30: e59f0060 ldr r0, [pc, #96] ; 30011c98 <== NOT EXECUTED 30011c34: e59f106c ldr r1, [pc, #108] ; 30011ca8 <== NOT EXECUTED 30011c38: e59f2060 ldr r2, [pc, #96] ; 30011ca0 <== NOT EXECUTED 30011c3c: e59f3060 ldr r3, [pc, #96] ; 30011ca4 <== NOT EXECUTED 30011c40: ebfff2c7 bl 3000e764 <__assert_func> <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 30011c44: e59f004c ldr r0, [pc, #76] ; 30011c98 <== NOT EXECUTED 30011c48: e59f105c ldr r1, [pc, #92] ; 30011cac <== NOT EXECUTED 30011c4c: e59f204c ldr r2, [pc, #76] ; 30011ca0 <== NOT EXECUTED 30011c50: e59f3058 ldr r3, [pc, #88] ; 30011cb0 <== NOT EXECUTED 30011c54: ebfff2c2 bl 3000e764 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 30011c58: e59f0038 ldr r0, [pc, #56] ; 30011c98 <== NOT EXECUTED 30011c5c: e3a01f93 mov r1, #588 ; 0x24c <== NOT EXECUTED 30011c60: e59f2038 ldr r2, [pc, #56] ; 30011ca0 <== NOT EXECUTED 30011c64: e59f3048 ldr r3, [pc, #72] ; 30011cb4 <== NOT EXECUTED 30011c68: ebfff2bd bl 3000e764 <__assert_func> <== 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 ); assert( block_ptr ); 30011c6c: e59f0024 ldr r0, [pc, #36] ; 30011c98 <== NOT EXECUTED 30011c70: e59f1040 ldr r1, [pc, #64] ; 30011cb8 <== NOT EXECUTED 30011c74: e59f2024 ldr r2, [pc, #36] ; 30011ca0 <== NOT EXECUTED 30011c78: e59f3024 ldr r3, [pc, #36] ; 30011ca4 <== NOT EXECUTED 30011c7c: ebfff2b8 bl 3000e764 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 30011c80: e59f0010 ldr r0, [pc, #16] ; 30011c98 <== NOT EXECUTED 30011c84: e59f1030 ldr r1, [pc, #48] ; 30011cbc <== NOT EXECUTED 30011c88: e59f2010 ldr r2, [pc, #16] ; 30011ca0 <== NOT EXECUTED 30011c8c: e59f302c ldr r3, [pc, #44] ; 30011cc0 <== NOT EXECUTED 30011c90: ebfff2b3 bl 3000e764 <__assert_func> <== NOT EXECUTED 30011c94: 30020a94 .word 0x30020a94 30011c98: 3001fefc .word 0x3001fefc 30011c9c: 000002a7 .word 0x000002a7 30011ca0: 3001f684 .word 0x3001f684 30011ca4: 3001ff80 .word 0x3001ff80 30011ca8: 000002b9 .word 0x000002b9 30011cac: 00000251 .word 0x00000251 30011cb0: 3001ff94 .word 0x3001ff94 30011cb4: 3001ff44 .word 0x3001ff44 30011cb8: 00000296 .word 0x00000296 30011cbc: 0000025a .word 0x0000025a 30011cc0: 3001ffe0 .word 0x3001ffe0 300110dc : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 300110dc: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 300110e0: e250a000 subs sl, r0, #0 300110e4: 0a00004f beq 30011228 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 300110e8: e59a304c ldr r3, [sl, #76] ; 0x4c 300110ec: e3530005 cmp r3, #5 300110f0: 1a000051 bne 3001123c /* * 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; 300110f4: e59f6154 ldr r6, [pc, #340] ; 30011250 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 300110f8: e59a3058 ldr r3, [sl, #88] ; 0x58 /* * 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; 300110fc: e5967000 ldr r7, [r6] * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 30011100: e3530000 cmp r3, #0 /* * 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; 30011104: e1a07127 lsr r7, r7, #2 */ info = &the_jnode->info.file; if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 30011108: 128a0058 addne r0, sl, #88 ; 0x58 3001110c: 11a01007 movne r1, r7 30011110: 1bffffbb blne 30011004 } if ( info->doubly_indirect ) { 30011114: e59a305c ldr r3, [sl, #92] ; 0x5c 30011118: e3530000 cmp r3, #0 3001111c: 0a000014 beq 30011174 for ( i=0 ; i <== NOT EXECUTED 3001112c: e3a02000 mov r2, #0 <== NOT EXECUTED 30011130: e1a04002 mov r4, r2 <== NOT EXECUTED 30011134: ea000000 b 3001113c <== NOT EXECUTED 30011138: e59a305c ldr r3, [sl, #92] ; 0x5c <== NOT EXECUTED if ( info->doubly_indirect[i] ) { 3001113c: e7931102 ldr r1, [r3, r2, lsl #2] <== NOT EXECUTED 30011140: e1a02102 lsl r2, r2, #2 <== NOT EXECUTED 30011144: e3510000 cmp r1, #0 <== NOT EXECUTED memfile_free_blocks_in_table( 30011148: 10830002 addne r0, r3, r2 <== NOT EXECUTED 3001114c: 11a01007 movne r1, r7 <== NOT EXECUTED 30011150: 1bffffab blne 30011004 <== NOT EXECUTED memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i <== 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 ); 30011168: e28a005c add r0, sl, #92 ; 0x5c <== NOT EXECUTED 3001116c: e1a01007 mov r1, r7 <== NOT EXECUTED 30011170: ebffffa3 bl 30011004 <== NOT EXECUTED } if ( info->triply_indirect ) { 30011174: e59a0060 ldr r0, [sl, #96] ; 0x60 30011178: e3500000 cmp r0, #0 3001117c: 0a000027 beq 30011220 for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 3001118c: e5905000 ldr r5, [r0] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 30011190: e3550000 cmp r5, #0 <== NOT EXECUTED 30011194: 13a09000 movne r9, #0 <== NOT EXECUTED 30011198: 11a08009 movne r8, r9 <== NOT EXECUTED 3001119c: 0a00001c beq 30011214 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED 300111a8: e3a00000 mov r0, #0 <== NOT EXECUTED 300111ac: e1a04000 mov r4, r0 <== NOT EXECUTED if ( p[j] ) { 300111b0: e7953100 ldr r3, [r5, r0, lsl #2] <== NOT EXECUTED 300111b4: e1a00100 lsl r0, r0, #2 <== NOT EXECUTED 300111b8: e3530000 cmp r3, #0 <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); 300111bc: 10850000 addne r0, r5, r0 <== NOT EXECUTED 300111c0: 11a01007 movne r1, r7 <== NOT EXECUTED 300111c4: 1bffff8e blne 30011004 <== NOT EXECUTED if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; if ( !p ) /* ensure we have a valid pointer */ break; for ( j=0 ; j <== NOT EXECUTED 300111dc: e59a0060 ldr r0, [sl, #96] ; 0x60 <== NOT EXECUTED if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 300111e0: e0800009 add r0, r0, r9 <== NOT EXECUTED 300111e4: e1a01007 mov r1, r7 <== NOT EXECUTED 300111e8: ebffff85 bl 30011004 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED p = (block_p *) info->triply_indirect[i]; 30011200: e59a0060 ldr r0, [sl, #96] ; 0x60 <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 30011204: e1a09108 lsl r9, r8, #2 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 30011208: e7905108 ldr r5, [r0, r8, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 3001120c: e3550000 cmp r5, #0 <== NOT EXECUTED 30011210: 1affffe2 bne 300111a0 <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 30011214: e28a0060 add r0, sl, #96 ; 0x60 <== NOT EXECUTED 30011218: e1a01007 mov r1, r7 <== NOT EXECUTED 3001121c: ebffff78 bl 30011004 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 30011220: e3a00000 mov r0, #0 30011224: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} /* * Perform internal consistency checks */ assert( the_jnode ); 30011228: e59f0024 ldr r0, [pc, #36] ; 30011254 <== NOT EXECUTED 3001122c: e59f1024 ldr r1, [pc, #36] ; 30011258 <== NOT EXECUTED 30011230: e59f2024 ldr r2, [pc, #36] ; 3001125c <== NOT EXECUTED 30011234: e59f3024 ldr r3, [pc, #36] ; 30011260 <== NOT EXECUTED 30011238: ebfff549 bl 3000e764 <__assert_func> <== NOT EXECUTED if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 3001123c: e59f0010 ldr r0, [pc, #16] ; 30011254 <== NOT EXECUTED 30011240: e59f101c ldr r1, [pc, #28] ; 30011264 <== NOT EXECUTED 30011244: e59f2010 ldr r2, [pc, #16] ; 3001125c <== NOT EXECUTED 30011248: e59f3018 ldr r3, [pc, #24] ; 30011268 <== NOT EXECUTED 3001124c: ebfff544 bl 3000e764 <__assert_func> <== NOT EXECUTED 30011250: 30020a94 .word 0x30020a94 30011254: 3001fefc .word 0x3001fefc 30011258: 000001ee .word 0x000001ee 3001125c: 3001f630 .word 0x3001f630 30011260: 3001ff44 .word 0x3001ff44 30011264: 000001f2 .word 0x000001f2 30011268: 3001ff50 .word 0x3001ff50 3001108c : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 3001108c: 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 ); 30011090: e3a02000 mov r2, #0 <== NOT EXECUTED 30011094: ebffff49 bl 30010dc0 <== NOT EXECUTED assert( block_ptr ); 30011098: e2503000 subs r3, r0, #0 <== NOT EXECUTED 3001109c: 0a000005 beq 300110b8 <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; 300110a0: e3a02000 mov r2, #0 <== NOT EXECUTED block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( block_ptr ) { ptr = *block_ptr; 300110a4: e5930000 ldr r0, [r3] <== NOT EXECUTED *block_ptr = 0; 300110a8: e5832000 str r2, [r3] <== NOT EXECUTED memfile_free_block( ptr ); 300110ac: ebffff2e bl 30010d6c <== NOT EXECUTED } return 1; } 300110b0: e3a00001 mov r0, #1 <== NOT EXECUTED 300110b4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED { block_p *block_ptr; block_p ptr; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 300110b8: e59f000c ldr r0, [pc, #12] ; 300110cc <== NOT EXECUTED 300110bc: e59f100c ldr r1, [pc, #12] ; 300110d0 <== NOT EXECUTED 300110c0: e59f200c ldr r2, [pc, #12] ; 300110d4 <== NOT EXECUTED 300110c4: e59f300c ldr r3, [pc, #12] ; 300110d8 <== NOT EXECUTED 300110c8: ebfff5a5 bl 3000e764 <__assert_func> <== NOT EXECUTED 300110cc: 3001fefc .word 0x3001fefc 300110d0: 00000196 .word 0x00000196 300110d4: 3001f614 .word 0x3001f614 300110d8: 3001ff80 .word 0x3001ff80 30011674 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 30011674: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 30011678: e2509000 subs r9, r0, #0 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 3001167c: e24dd014 sub sp, sp, #20 30011680: e1a06001 mov r6, r1 30011684: e1a07002 mov r7, r2 30011688: e1a08003 mov r8, r3 3001168c: e59da038 ldr sl, [sp, #56] ; 0x38 /* * Perform internal consistency checks */ assert( the_jnode ); 30011690: 0a000081 beq 3001189c if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30011694: e599304c ldr r3, [r9, #76] ; 0x4c 30011698: e3530005 cmp r3, #5 3001169c: 1a000074 bne 30011874 /* * Error check arguments */ assert( source ); 300116a0: e3580000 cmp r8, #0 300116a4: 0a00006d beq 30011860 /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 300116a8: e35a0000 cmp sl, #0 300116ac: 0a000061 beq 30011838 * 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 + length; if ( last_byte > the_jnode->info.file.size ) { 300116b0: e5993054 ldr r3, [r9, #84] ; 0x54 300116b4: e08a1001 add r1, sl, r1 300116b8: e3530000 cmp r3, #0 300116bc: ba000053 blt 30011810 300116c0: 0a00004f beq 30011804 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 300116c4: e59f51f8 ldr r5, [pc, #504] ; 300118c4 300116c8: e1a00006 mov r0, r6 300116cc: e5954000 ldr r4, [r5] 300116d0: e1a01007 mov r1, r7 300116d4: e1a02004 mov r2, r4 300116d8: e1a03fc2 asr r3, r2, #31 300116dc: e98d000c stmib sp, {r2, r3} 300116e0: eb00307f bl 3001d8e4 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 300116e4: e99d000c ldmib sp, {r2, r3} /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 300116e8: e1a0b000 mov fp, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 300116ec: e1a01007 mov r1, r7 300116f0: e1a00006 mov r0, r6 300116f4: eb002f50 bl 3001d43c <__divdi3> if ( start_offset ) { 300116f8: e35b0000 cmp fp, #0 300116fc: 01a0700a moveq r7, sl /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30011700: e1a06000 mov r6, r0 if ( start_offset ) { 30011704: 01a0a00b moveq sl, fp 30011708: 0a000014 beq 30011760 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 ); 3001170c: e1a00009 mov r0, r9 30011710: e1a01006 mov r1, r6 30011714: e3a02000 mov r2, #0 30011718: ebfffda8 bl 30010dc0 assert( block_ptr ); 3001171c: e3500000 cmp r0, #0 30011720: 0a000062 beq 300118b0 */ 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; 30011724: e06b3004 rsb r3, fp, r4 if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); 30011728: e5900000 ldr r0, [r0] */ 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; 3001172c: e153000a cmp r3, sl 30011730: 21a0300a movcs r3, sl if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); 30011734: e1a01008 mov r1, r8 30011738: e1a02003 mov r2, r3 3001173c: e080000b add r0, r0, fp 30011740: e58d3000 str r3, [sp] 30011744: eb0008e4 bl 30013adc src += to_copy; 30011748: e59d3000 ldr r3, [sp] block++; my_length -= to_copy; copied += to_copy; 3001174c: e5954000 ldr r4, [r5] fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); src += to_copy; block++; my_length -= to_copy; 30011750: e063700a rsb r7, r3, sl return copied; #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); src += to_copy; 30011754: e0888003 add r8, r8, r3 block++; 30011758: e2866001 add r6, r6, #1 my_length -= to_copy; copied += to_copy; 3001175c: e1a0a003 mov sl, r3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30011760: e1570004 cmp r7, r4 30011764: 3a000010 bcc 300117ac block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30011768: e1a00009 mov r0, r9 3001176c: e1a01006 mov r1, r6 30011770: e3a02000 mov r2, #0 30011774: ebfffd91 bl 30010dc0 assert( block_ptr ); 30011778: e3500000 cmp r0, #0 3001177c: 0a000032 beq 3001184c if ( !block_ptr ) 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 ); 30011780: e1a01008 mov r1, r8 30011784: e5900000 ldr r0, [r0] 30011788: e1a02004 mov r2, r4 3001178c: eb0008d2 bl 30013adc /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30011790: e5953000 ldr r3, [r5] fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ 0 ], src, to_copy ); src += to_copy; block++; my_length -= to_copy; 30011794: e0647007 rsb r7, r4, r7 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30011798: e1530007 cmp r3, r7 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 ); src += to_copy; 3001179c: e0888004 add r8, r8, r4 block++; 300117a0: e2866001 add r6, r6, #1 * * 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( 300117a4: e08aa004 add sl, sl, r4 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 300117a8: 9affffee bls 30011768 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 300117ac: e3570000 cmp r7, #0 300117b0: 0a00000a beq 300117e0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 300117b4: e1a01006 mov r1, r6 300117b8: e1a00009 mov r0, r9 300117bc: e3a02000 mov r2, #0 300117c0: ebfffd7e bl 30010dc0 assert( block_ptr ); 300117c4: e3500000 cmp r0, #0 300117c8: 0a00002e beq 30011888 if ( !block_ptr ) 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 ); 300117cc: e5900000 ldr r0, [r0] 300117d0: e1a01008 mov r1, r8 300117d4: e1a02007 mov r2, r7 300117d8: eb0008bf bl 30013adc my_length = 0; copied += to_copy; 300117dc: e08aa007 add sl, sl, r7 } IMFS_mtime_ctime_update( the_jnode ); 300117e0: e28d000c add r0, sp, #12 300117e4: e3a01000 mov r1, #0 300117e8: ebffc572 bl 30002db8 300117ec: e59d300c ldr r3, [sp, #12] 300117f0: e5893048 str r3, [r9, #72] ; 0x48 300117f4: e5893044 str r3, [r9, #68] ; 0x44 return copied; } 300117f8: e1a0000a mov r0, sl 300117fc: e28dd014 add sp, sp, #20 30011800: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * 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 + length; if ( last_byte > the_jnode->info.file.size ) { 30011804: e5993050 ldr r3, [r9, #80] ; 0x50 30011808: e1530001 cmp r3, r1 3001180c: 2affffac bcs 300116c4 status = IMFS_memfile_extend( the_jnode, last_byte ); 30011810: e1a00009 mov r0, r9 30011814: e3a02000 mov r2, #0 30011818: ebfffeee bl 300113d8 if ( status ) 3001181c: e3500000 cmp r0, #0 30011820: 0affffa7 beq 300116c4 rtems_set_errno_and_return_minus_one( ENOSPC ); 30011824: eb00069e bl 300132a4 <__errno> <== NOT EXECUTED 30011828: e3a0301c mov r3, #28 <== NOT EXECUTED 3001182c: e5803000 str r3, [r0] <== NOT EXECUTED 30011830: e3e0a000 mvn sl, #0 <== NOT EXECUTED 30011834: eaffffef b 300117f8 <== NOT EXECUTED * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) rtems_set_errno_and_return_minus_one( EINVAL ); 30011838: eb000699 bl 300132a4 <__errno> <== NOT EXECUTED 3001183c: e3a03016 mov r3, #22 <== NOT EXECUTED 30011840: e5803000 str r3, [r0] <== NOT EXECUTED 30011844: e3e0a000 mvn sl, #0 <== NOT EXECUTED 30011848: eaffffea b 300117f8 <== NOT EXECUTED */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 3001184c: e59f0074 ldr r0, [pc, #116] ; 300118c8 <== NOT EXECUTED 30011850: e3a01e33 mov r1, #816 ; 0x330 <== NOT EXECUTED 30011854: e59f2070 ldr r2, [pc, #112] ; 300118cc <== NOT EXECUTED 30011858: e59f3070 ldr r3, [pc, #112] ; 300118d0 <== NOT EXECUTED 3001185c: ebfff3c0 bl 3000e764 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 30011860: e59f0060 ldr r0, [pc, #96] ; 300118c8 <== NOT EXECUTED 30011864: e59f1068 ldr r1, [pc, #104] ; 300118d4 <== NOT EXECUTED 30011868: e59f205c ldr r2, [pc, #92] ; 300118cc <== NOT EXECUTED 3001186c: e59f3064 ldr r3, [pc, #100] ; 300118d8 <== NOT EXECUTED 30011870: ebfff3bb bl 3000e764 <__assert_func> <== NOT EXECUTED assert( the_jnode ); if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30011874: e59f004c ldr r0, [pc, #76] ; 300118c8 <== NOT EXECUTED 30011878: e59f105c ldr r1, [pc, #92] ; 300118dc <== NOT EXECUTED 3001187c: e59f2048 ldr r2, [pc, #72] ; 300118cc <== NOT EXECUTED 30011880: e59f3058 ldr r3, [pc, #88] ; 300118e0 <== NOT EXECUTED 30011884: ebfff3b6 bl 3000e764 <__assert_func> <== NOT EXECUTED assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); 30011888: e59f0038 ldr r0, [pc, #56] ; 300118c8 <== NOT EXECUTED 3001188c: e59f1050 ldr r1, [pc, #80] ; 300118e4 <== NOT EXECUTED 30011890: e59f2034 ldr r2, [pc, #52] ; 300118cc <== NOT EXECUTED 30011894: e59f3034 ldr r3, [pc, #52] ; 300118d0 <== NOT EXECUTED 30011898: ebfff3b1 bl 3000e764 <__assert_func> <== NOT EXECUTED /* * Perform internal consistency checks */ assert( the_jnode ); 3001189c: e59f0024 ldr r0, [pc, #36] ; 300118c8 <== NOT EXECUTED 300118a0: e59f1040 ldr r1, [pc, #64] ; 300118e8 <== NOT EXECUTED 300118a4: e59f2020 ldr r2, [pc, #32] ; 300118cc <== NOT EXECUTED 300118a8: e59f303c ldr r3, [pc, #60] ; 300118ec <== NOT EXECUTED 300118ac: ebfff3ac bl 3000e764 <__assert_func> <== 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 ); assert( block_ptr ); 300118b0: e59f0010 ldr r0, [pc, #16] ; 300118c8 <== NOT EXECUTED 300118b4: e3a01fc7 mov r1, #796 ; 0x31c <== NOT EXECUTED 300118b8: e59f200c ldr r2, [pc, #12] ; 300118cc <== NOT EXECUTED 300118bc: e59f300c ldr r3, [pc, #12] ; 300118d0 <== NOT EXECUTED 300118c0: ebfff3a7 bl 3000e764 <__assert_func> <== NOT EXECUTED 300118c4: 30020a94 .word 0x30020a94 300118c8: 3001fefc .word 0x3001fefc 300118cc: 3001f670 .word 0x3001f670 300118d0: 3001ff80 .word 0x3001ff80 300118d4: 000002ef .word 0x000002ef 300118d8: 3001ff8c .word 0x3001ff8c 300118dc: 000002e7 .word 0x000002e7 300118e0: 3001ff50 .word 0x3001ff50 300118e4: 00000346 .word 0x00000346 300118e8: 000002e3 .word 0x000002e3 300118ec: 3001ff44 .word 0x3001ff44 30008d8c : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 30008d8c: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30008d90: e24dd040 sub sp, sp, #64 ; 0x40 30008d94: e1a04001 mov r4, r1 30008d98: e1a07002 mov r7, r2 30008d9c: e1a06003 mov r6, r3 30008da0: e1a08000 mov r8, r0 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 ); 30008da4: eb00167f bl 3000e7a8 30008da8: e28d5004 add r5, sp, #4 30008dac: e1a01000 mov r1, r0 30008db0: e28d303c add r3, sp, #60 ; 0x3c 30008db4: e1a00008 mov r0, r8 30008db8: e1a02005 mov r2, r5 30008dbc: ebffff7e bl 30008bbc /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 30008dc0: e2043a0f and r3, r4, #61440 ; 0xf000 30008dc4: e3530901 cmp r3, #16384 ; 0x4000 30008dc8: 0a00001b beq 30008e3c type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 30008dcc: e3530902 cmp r3, #32768 ; 0x8000 30008dd0: 03a01005 moveq r1, #5 30008dd4: 0a000005 beq 30008df0 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 30008dd8: e3530a06 cmp r3, #24576 ; 0x6000 30008ddc: 13530a02 cmpne r3, #8192 ; 0x2000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 30008de0: 058d7028 streq r7, [sp, #40] ; 0x28 30008de4: 058d602c streq r6, [sp, #44] ; 0x2c 30008de8: 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) ) { 30008dec: 1a00000a bne 30008e1c * 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( 30008df0: e28dc028 add ip, sp, #40 ; 0x28 30008df4: e59d0058 ldr r0, [sp, #88] ; 0x58 30008df8: e1a02005 mov r2, r5 30008dfc: e1a03004 mov r3, r4 30008e00: e58dc000 str ip, [sp] 30008e04: eb000c25 bl 3000bea0 new_name, mode, &info ); if ( !new_node ) 30008e08: e3500000 cmp r0, #0 30008e0c: 13a00000 movne r0, #0 30008e10: 0a00000b beq 30008e44 rtems_set_errno_and_return_minus_one( ENOMEM ); return 0; } 30008e14: e28dd040 add sp, sp, #64 ; 0x40 30008e18: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 30008e1c: e3530a01 cmp r3, #4096 ; 0x1000 30008e20: 03a01007 moveq r1, #7 30008e24: 0afffff1 beq 30008df0 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 30008e28: eb00126d bl 3000d7e4 <__errno> <== NOT EXECUTED 30008e2c: e3a03016 mov r3, #22 <== NOT EXECUTED 30008e30: e5803000 str r3, [r0] <== NOT EXECUTED 30008e34: e3e00000 mvn r0, #0 <== NOT EXECUTED 30008e38: eafffff5 b 30008e14 <== NOT EXECUTED 30008e3c: e3a01001 mov r1, #1 30008e40: eaffffea b 30008df0 mode, &info ); if ( !new_node ) rtems_set_errno_and_return_minus_one( ENOMEM ); 30008e44: eb001266 bl 3000d7e4 <__errno> <== NOT EXECUTED 30008e48: e3a0300c mov r3, #12 <== NOT EXECUTED 30008e4c: e5803000 str r3, [r0] <== NOT EXECUTED 30008e50: e3e00000 mvn r0, #0 <== NOT EXECUTED 30008e54: eaffffee b 30008e14 <== NOT EXECUTED 300024ec : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 300024ec: e5903008 ldr r3, [r0, #8] #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 300024f0: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 300024f4: e593204c ldr r2, [r3, #76] ; 0x4c 300024f8: e3520001 cmp r2, #1 300024fc: 1a000002 bne 3000250c /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 30002500: e583005c str r0, [r3, #92] ; 0x5c 30002504: e3a00000 mov r0, #0 return 0; } 30002508: e49df004 pop {pc} ; (ldr pc, [sp], #4) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 3000250c: eb004364 bl 300132a4 <__errno> <== NOT EXECUTED 30002510: e3a03014 mov r3, #20 <== NOT EXECUTED 30002514: e5803000 str r3, [r0] <== NOT EXECUTED 30002518: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000251c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30002ed8 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 30002ed8: e92d4030 push {r4, r5, lr} assert( the_jnode ); 30002edc: e2504000 subs r4, r0, #0 30002ee0: 0a000055 beq 3000303c fprintf(stdout, "%s", the_jnode->name ); 30002ee4: e59f5164 ldr r5, [pc, #356] ; 30003050 30002ee8: e284000c add r0, r4, #12 30002eec: e5953000 ldr r3, [r5] 30002ef0: e5931008 ldr r1, [r3, #8] 30002ef4: eb003e25 bl 30012790 switch( the_jnode->type ) { 30002ef8: e594204c ldr r2, [r4, #76] ; 0x4c 30002efc: e2423001 sub r3, r2, #1 30002f00: e3530006 cmp r3, #6 30002f04: 979ff103 ldrls pc, [pc, r3, lsl #2] 30002f08: ea000011 b 30002f54 <== NOT EXECUTED 30002f0c: 30002f78 .word 0x30002f78 <== NOT EXECUTED 30002f10: 30002f94 .word 0x30002f94 <== NOT EXECUTED 30002f14: 30002fb0 .word 0x30002fb0 <== NOT EXECUTED 30002f18: 30002fdc .word 0x30002fdc <== NOT EXECUTED 30002f1c: 30003008 .word 0x30003008 <== NOT EXECUTED 30002f20: 30003020 .word 0x30003020 <== NOT EXECUTED 30002f24: 30002f28 .word 0x30002f28 <== NOT EXECUTED fprintf(stdout, " links not printed\n" ); assert(0); break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 30002f28: e5953000 ldr r3, [r5] <== NOT EXECUTED 30002f2c: e3a01001 mov r1, #1 <== NOT EXECUTED 30002f30: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 30002f34: e3a02012 mov r2, #18 <== NOT EXECUTED 30002f38: e59f0114 ldr r0, [pc, #276] ; 30003054 <== NOT EXECUTED 30002f3c: eb004128 bl 300133e4 <== NOT EXECUTED assert(0); 30002f40: e59f0110 ldr r0, [pc, #272] ; 30003058 <== NOT EXECUTED 30002f44: e3a01067 mov r1, #103 ; 0x67 <== NOT EXECUTED 30002f48: e59f210c ldr r2, [pc, #268] ; 3000305c <== NOT EXECUTED 30002f4c: e59f310c ldr r3, [pc, #268] ; 30003060 <== NOT EXECUTED 30002f50: eb00025a bl 300038c0 <__assert_func> <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 30002f54: e5953000 ldr r3, [r5] <== NOT EXECUTED 30002f58: e59f1104 ldr r1, [pc, #260] ; 30003064 <== NOT EXECUTED 30002f5c: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 30002f60: eb003da9 bl 3001260c <== NOT EXECUTED assert(0); 30002f64: e59f00ec ldr r0, [pc, #236] ; 30003058 <== NOT EXECUTED 30002f68: e3a0106c mov r1, #108 ; 0x6c <== NOT EXECUTED 30002f6c: e59f20e8 ldr r2, [pc, #232] ; 3000305c <== NOT EXECUTED 30002f70: e59f30e8 ldr r3, [pc, #232] ; 30003060 <== NOT EXECUTED 30002f74: eb000251 bl 300038c0 <__assert_func> <== NOT EXECUTED assert( the_jnode ); fprintf(stdout, "%s", the_jnode->name ); switch( the_jnode->type ) { case IMFS_DIRECTORY: fprintf(stdout, "/" ); 30002f78: e5953000 ldr r3, [r5] 30002f7c: e3a0002f mov r0, #47 ; 0x2f 30002f80: e5931008 ldr r1, [r3, #8] 30002f84: eb003dbc bl 3001267c default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 30002f88: e59f00d8 ldr r0, [pc, #216] ; 30003068 } 30002f8c: e8bd4030 pop {r4, r5, lr} default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 30002f90: ea004503 b 300143a4 case IMFS_DIRECTORY: fprintf(stdout, "/" ); break; case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 30002f94: e5952000 ldr r2, [r5] 30002f98: e5943054 ldr r3, [r4, #84] ; 0x54 30002f9c: e5920008 ldr r0, [r2, #8] 30002fa0: e59f10c4 ldr r1, [pc, #196] ; 3000306c 30002fa4: e5942050 ldr r2, [r4, #80] ; 0x50 30002fa8: eb003d97 bl 3001260c the_jnode->info.device.major, the_jnode->info.device.minor ); break; 30002fac: eafffff5 b 30002f88 (uint32_t)the_jnode->info.file.size ); #endif break; case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 30002fb0: e5953000 ldr r3, [r5] <== NOT EXECUTED 30002fb4: e3a01001 mov r1, #1 <== NOT EXECUTED 30002fb8: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 30002fbc: e3a02013 mov r2, #19 <== NOT EXECUTED 30002fc0: e59f00a8 ldr r0, [pc, #168] ; 30003070 <== NOT EXECUTED 30002fc4: eb004106 bl 300133e4 <== NOT EXECUTED assert(0); 30002fc8: e59f0088 ldr r0, [pc, #136] ; 30003058 <== NOT EXECUTED 30002fcc: e3a0105d mov r1, #93 ; 0x5d <== NOT EXECUTED 30002fd0: e59f2084 ldr r2, [pc, #132] ; 3000305c <== NOT EXECUTED 30002fd4: e59f3084 ldr r3, [pc, #132] ; 30003060 <== NOT EXECUTED 30002fd8: eb000238 bl 300038c0 <__assert_func> <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 30002fdc: e5953000 ldr r3, [r5] <== NOT EXECUTED 30002fe0: e3a01001 mov r1, #1 <== NOT EXECUTED 30002fe4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 30002fe8: e3a02013 mov r2, #19 <== NOT EXECUTED 30002fec: e59f007c ldr r0, [pc, #124] ; 30003070 <== NOT EXECUTED 30002ff0: eb0040fb bl 300133e4 <== NOT EXECUTED assert(0); 30002ff4: e59f005c ldr r0, [pc, #92] ; 30003058 <== NOT EXECUTED 30002ff8: e3a01062 mov r1, #98 ; 0x62 <== NOT EXECUTED 30002ffc: e59f2058 ldr r2, [pc, #88] ; 3000305c <== NOT EXECUTED 30003000: e59f3058 ldr r3, [pc, #88] ; 30003060 <== NOT EXECUTED 30003004: eb00022d bl 300038c0 <__assert_func> <== NOT EXECUTED the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 30003008: e5953000 ldr r3, [r5] 3000300c: e5942050 ldr r2, [r4, #80] ; 0x50 30003010: e5930008 ldr r0, [r3, #8] 30003014: e59f1058 ldr r1, [pc, #88] ; 30003074 30003018: eb003d7b bl 3001260c (uint32_t)the_jnode->info.file.size ); #endif break; 3000301c: eaffffd9 b 30002f88 fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 30003020: e5952000 ldr r2, [r5] <== NOT EXECUTED 30003024: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED 30003028: e5920008 ldr r0, [r2, #8] <== NOT EXECUTED 3000302c: e59f1044 ldr r1, [pc, #68] ; 30003078 <== NOT EXECUTED 30003030: e5942050 ldr r2, [r4, #80] ; 0x50 <== NOT EXECUTED 30003034: eb003d74 bl 3001260c <== NOT EXECUTED (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 30003038: eaffffd2 b 30002f88 <== NOT EXECUTED void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { assert( the_jnode ); 3000303c: e59f0014 ldr r0, [pc, #20] ; 30003058 <== NOT EXECUTED 30003040: e3a01038 mov r1, #56 ; 0x38 <== NOT EXECUTED 30003044: e59f2010 ldr r2, [pc, #16] ; 3000305c <== NOT EXECUTED 30003048: e59f302c ldr r3, [pc, #44] ; 3000307c <== NOT EXECUTED 3000304c: eb00021b bl 300038c0 <__assert_func> <== NOT EXECUTED 30003050: 30024598 .word 0x30024598 30003054: 30023598 .word 0x30023598 30003058: 300234fc .word 0x300234fc 3000305c: 30021f54 .word 0x30021f54 30003060: 300234d4 .word 0x300234d4 30003064: 300235ac .word 0x300235ac 30003068: 300234f8 .word 0x300234f8 3000306c: 30023554 .word 0x30023554 30003070: 30023584 .word 0x30023584 30003074: 30023578 .word 0x30023578 30003078: 30023568 .word 0x30023568 3000307c: 30023548 .word 0x30023548 3000252c : ) { IMFS_jnode_t *node; int i; node = loc->node_access; 3000252c: e5903000 ldr r3, [r0] int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 30002530: e92d4010 push {r4, lr} IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) 30002534: e593004c ldr r0, [r3, #76] ; 0x4c 30002538: e3500004 cmp r0, #4 3000253c: 1a000013 bne 30002590 rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 30002540: e3520000 cmp r2, #0 30002544: 0a00000f beq 30002588 30002548: e5930050 ldr r0, [r3, #80] ; 0x50 3000254c: e5d0c000 ldrb ip, [r0] 30002550: e35c0000 cmp ip, #0 int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 30002554: 13a04000 movne r4, #0 30002558: 11a00004 movne r0, r4 for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 3000255c: 0a000009 beq 30002588 30002560: e2800001 add r0, r0, #1 30002564: e1520000 cmp r2, r0 buf[i] = node->info.sym_link.name[i]; 30002568: e7c1c004 strb ip, [r1, r4] node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) 3000256c: e1a04000 mov r4, r0 30002570: 98bd8010 popls {r4, pc} 30002574: e593c050 ldr ip, [r3, #80] ; 0x50 30002578: e7dcc000 ldrb ip, [ip, r0] 3000257c: e35c0000 cmp ip, #0 30002580: 1afffff6 bne 30002560 30002584: e8bd8010 pop {r4, pc} 30002588: e3a00000 mov r0, #0 <== NOT EXECUTED buf[i] = node->info.sym_link.name[i]; return i; } 3000258c: e8bd8010 pop {r4, pc} <== NOT EXECUTED int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) rtems_set_errno_and_return_minus_one( EINVAL ); 30002590: eb004343 bl 300132a4 <__errno> <== NOT EXECUTED 30002594: e3a03016 mov r3, #22 <== NOT EXECUTED 30002598: e5803000 str r3, [r0] <== NOT EXECUTED 3000259c: e3e00000 mvn r0, #0 <== NOT EXECUTED 300025a0: e8bd8010 pop {r4, pc} <== NOT EXECUTED 300025a4 : 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 */ ) { 300025a4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 300025a8: 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 */ ) { 300025ac: e24dd008 sub sp, sp, #8 <== 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 ); 300025b0: e1a01003 mov r1, r3 <== 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 */ ) { 300025b4: 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 ); 300025b8: e284000c add r0, r4, #12 <== NOT EXECUTED 300025bc: e3a02020 mov r2, #32 <== NOT EXECUTED 300025c0: eb004728 bl 30014268 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 300025c4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 300025c8: e3530000 cmp r3, #0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 300025cc: 11a00004 movne r0, r4 <== NOT EXECUTED 300025d0: 1b0012e7 blne 30007174 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 300025d4: e5953000 ldr r3, [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 ); 300025d8: e1a01004 mov r1, r4 <== NOT EXECUTED 300025dc: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED the_jnode->Parent = new_parent; 300025e0: e5843008 str r3, [r4, #8] <== NOT EXECUTED 300025e4: eb0012d7 bl 30007148 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 300025e8: e1a0000d mov r0, sp <== NOT EXECUTED 300025ec: e3a01000 mov r1, #0 <== NOT EXECUTED 300025f0: eb0001f0 bl 30002db8 <== NOT EXECUTED 300025f4: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } 300025f8: 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 ); 300025fc: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } 30002600: e28dd008 add sp, sp, #8 <== NOT EXECUTED 30002604: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30008f1c : ) { IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 30008f1c: e5903000 ldr r3, [r0] int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 30008f20: e92d4800 push {fp, lr} IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 30008f24: e593204c ldr r2, [r3, #76] ; 0x4c 30008f28: e2422002 sub r2, r2, #2 30008f2c: e3520005 cmp r2, #5 30008f30: 979ff102 ldrls pc, [pc, r2, lsl #2] 30008f34: ea000020 b 30008fbc <== NOT EXECUTED 30008f38: 30008fa8 .word 0x30008fa8 <== NOT EXECUTED 30008f3c: 30008fbc .word 0x30008fbc <== NOT EXECUTED 30008f40: 30008f50 .word 0x30008f50 <== NOT EXECUTED 30008f44: 30008fd0 .word 0x30008fd0 <== NOT EXECUTED 30008f48: 30008fd0 .word 0x30008fd0 <== NOT EXECUTED 30008f4c: 30008f50 .word 0x30008f50 <== NOT EXECUTED case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 30008f50: e3a0b000 mov fp, #0 <== NOT EXECUTED 30008f54: e3a0c000 mov ip, #0 <== NOT EXECUTED 30008f58: e581b020 str fp, [r1, #32] <== NOT EXECUTED 30008f5c: e581c024 str ip, [r1, #36] ; 0x24 <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 30008f60: e5932038 ldr r2, [r3, #56] ; 0x38 rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 30008f64: e1d303b4 ldrh r0, [r3, #52] ; 0x34 buf->st_ino = the_jnode->st_ino; 30008f68: e5812008 str r2, [r1, #8] buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; 30008f6c: e5932040 ldr r2, [r3, #64] ; 0x40 rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; 30008f70: e1c101b0 strh r0, [r1, #16] 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; 30008f74: e5812028 str r2, [r1, #40] ; 0x28 buf->st_mtime = the_jnode->stat_mtime; 30008f78: e5932044 ldr r2, [r3, #68] ; 0x44 } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; 30008f7c: e1d3c3bc ldrh ip, [r3, #60] ; 0x3c buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; 30008f80: e5812030 str r2, [r1, #48] ; 0x30 } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; 30008f84: e1c1c1b2 strh ip, [r1, #18] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 30008f88: e5930030 ldr r0, [r3, #48] ; 0x30 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; buf->st_ctime = the_jnode->stat_ctime; 30008f8c: e5932048 ldr r2, [r3, #72] ; 0x48 buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 30008f90: e1d333be ldrh r3, [r3, #62] ; 0x3e default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 30008f94: e581000c str r0, [r1, #12] 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; buf->st_ctime = the_jnode->stat_ctime; 30008f98: e5812038 str r2, [r1, #56] ; 0x38 buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; 30008f9c: e1c131b4 strh r3, [r1, #20] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; 30008fa0: e3a00000 mov r0, #0 return 0; } 30008fa4: e8bd8800 pop {fp, pc} switch ( the_jnode->type ) { case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); 30008fa8: e5930054 ldr r0, [r3, #84] ; 0x54 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 30008fac: e5932050 ldr r2, [r3, #80] ; 0x50 30008fb0: e581001c str r0, [r1, #28] 30008fb4: e5812018 str r2, [r1, #24] break; 30008fb8: eaffffe8 b 30008f60 case IMFS_FIFO: buf->st_size = 0; break; default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 30008fbc: eb001208 bl 3000d7e4 <__errno> <== NOT EXECUTED 30008fc0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30008fc4: e5803000 str r3, [r0] <== NOT EXECUTED 30008fc8: e3e00000 mvn r0, #0 <== NOT EXECUTED 30008fcc: e8bd8800 pop {fp, pc} <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); break; case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 30008fd0: e283c050 add ip, r3, #80 ; 0x50 30008fd4: e89c1800 ldm ip, {fp, ip} 30008fd8: e581b020 str fp, [r1, #32] 30008fdc: e581c024 str ip, [r1, #36] ; 0x24 break; 30008fe0: eaffffde b 30008f60 30002608 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 30002608: e92d40f0 push {r4, r5, r6, r7, lr} 3000260c: e1a06000 mov r6, r0 30002610: e24dd040 sub sp, sp, #64 ; 0x40 int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); 30002614: e1a00002 mov r0, r2 int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 30002618: e1a07002 mov r7, r2 3000261c: e1a05001 mov r5, r1 int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); 30002620: eb0046f8 bl 30014208 30002624: e28d4004 add r4, sp, #4 30002628: e1a01000 mov r1, r0 3000262c: e1a02004 mov r2, r4 30002630: e28d303c add r3, sp, #60 ; 0x3c 30002634: e1a00007 mov r0, r7 30002638: eb002fae bl 3000e4f8 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 3000263c: e1a00005 mov r0, r5 30002640: eb0046dc bl 300141b8 if (info.sym_link.name == NULL) { 30002644: e3500000 cmp r0, #0 IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 30002648: e58d0028 str r0, [sp, #40] ; 0x28 if (info.sym_link.name == NULL) { 3000264c: 0a00000d beq 30002688 * 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( 30002650: e28dc028 add ip, sp, #40 ; 0x28 30002654: e1a00006 mov r0, r6 30002658: e1a02004 mov r2, r4 3000265c: e3a01004 mov r1, #4 30002660: e59f3034 ldr r3, [pc, #52] ; 3000269c 30002664: e58dc000 str ip, [sp] 30002668: eb002c60 bl 3000d7f0 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 3000266c: e3500000 cmp r0, #0 30002670: 13a00000 movne r0, #0 30002674: 0a000001 beq 30002680 free(info.sym_link.name); rtems_set_errno_and_return_minus_one(ENOMEM); } return 0; } 30002678: e28dd040 add sp, sp, #64 ; 0x40 3000267c: e8bd80f0 pop {r4, r5, r6, r7, pc} ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { free(info.sym_link.name); 30002680: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED 30002684: eb0001a2 bl 30002d14 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 30002688: eb004305 bl 300132a4 <__errno> <== NOT EXECUTED 3000268c: e3a0300c mov r3, #12 <== NOT EXECUTED 30002690: e5803000 str r3, [r0] <== NOT EXECUTED 30002694: e3e00000 mvn r0, #0 <== NOT EXECUTED 30002698: eafffff6 b 30002678 <== NOT EXECUTED 3000269c: 0000a1ff .word 0x0000a1ff 300026a0 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 300026a0: e92d41f0 push {r4, r5, r6, r7, r8, lr} IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; 300026a4: e5915000 ldr r5, [r1] int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 300026a8: e24dd01c sub sp, sp, #28 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 300026ac: e595304c ldr r3, [r5, #76] ; 0x4c int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 300026b0: e1a04001 mov r4, r1 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 300026b4: e3530003 cmp r3, #3 int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 300026b8: e1a06000 mov r6, r0 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 300026bc: 0a000006 beq 300026dc /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 300026c0: e1a00006 mov r0, r6 300026c4: e1a01004 mov r1, r4 300026c8: e5943008 ldr r3, [r4, #8] 300026cc: e1a0e00f mov lr, pc 300026d0: e593f034 ldr pc, [r3, #52] ; 0x34 return result; } 300026d4: e28dd01c add sp, sp, #28 300026d8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} * free the node. */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) 300026dc: e595e050 ldr lr, [r5, #80] ; 0x50 300026e0: e35e0000 cmp lr, #0 300026e4: 0a00001f beq 30002768 rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 300026e8: e1a0c00d mov ip, sp 300026ec: e1a07001 mov r7, r1 300026f0: e8b7000f ldm r7!, {r0, r1, r2, r3} 300026f4: e8ac000f stmia ip!, {r0, r1, r2, r3} the_link.node_access = node->info.hard_link.link_node; 300026f8: e28d801c add r8, sp, #28 300026fc: e528e01c str lr, [r8, #-28]! if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 30002700: e5973000 ldr r3, [r7] the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 30002704: e1a0000d mov r0, sp if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); the_link = *loc; 30002708: e58c3000 str r3, [ip] the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 3000270c: eb002c89 bl 3000d938 /* * 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) 30002710: e5953050 ldr r3, [r5, #80] ; 0x50 30002714: e1d323b4 ldrh r2, [r3, #52] ; 0x34 30002718: e3520001 cmp r2, #1 3000271c: 0a000008 beq 30002744 if ( result != 0 ) return -1; } else { node->info.hard_link.link_node->st_nlink --; 30002720: e2422001 sub r2, r2, #1 30002724: e1c323b4 strh r2, [r3, #52] ; 0x34 IMFS_update_ctime( node->info.hard_link.link_node ); 30002728: e28d0014 add r0, sp, #20 3000272c: e3a01000 mov r1, #0 30002730: eb0001a0 bl 30002db8 30002734: e5953050 ldr r3, [r5, #80] ; 0x50 30002738: e59d2014 ldr r2, [sp, #20] 3000273c: e5832048 str r2, [r3, #72] ; 0x48 30002740: eaffffde b 300026c0 * to remove the node that is a link and the node itself. */ if ( node->info.hard_link.link_node->st_nlink == 1) { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 30002744: e1a0100d mov r1, sp 30002748: e1a00006 mov r0, r6 3000274c: e59d3008 ldr r3, [sp, #8] 30002750: e1a0e00f mov lr, pc 30002754: e593f034 ldr pc, [r3, #52] ; 0x34 if ( result != 0 ) 30002758: e3500000 cmp r0, #0 3000275c: 13e00000 mvnne r0, #0 30002760: 0affffd6 beq 300026c0 30002764: eaffffda b 300026d4 */ if ( node->type == IMFS_HARD_LINK ) { if ( !node->info.hard_link.link_node ) rtems_set_errno_and_return_minus_one( EINVAL ); 30002768: eb0042cd bl 300132a4 <__errno> <== NOT EXECUTED 3000276c: e3a03016 mov r3, #22 <== NOT EXECUTED 30002770: e5803000 str r3, [r0] <== NOT EXECUTED 30002774: e3e00000 mvn r0, #0 <== NOT EXECUTED 30002778: eaffffd5 b 300026d4 <== NOT EXECUTED 3000277c : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 3000277c: e5903008 ldr r3, [r0, #8] #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 30002780: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 30002784: e593204c ldr r2, [r3, #76] ; 0x4c 30002788: e3520001 cmp r2, #1 3000278c: 1a000005 bne 300027a8 /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 30002790: e593205c ldr r2, [r3, #92] ; 0x5c 30002794: e3520000 cmp r2, #0 30002798: 0a000007 beq 300027bc /* * 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; 3000279c: e3a00000 mov r0, #0 300027a0: e583005c str r0, [r3, #92] ; 0x5c return 0; } 300027a4: e49df004 pop {pc} ; (ldr pc, [sp], #4) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 300027a8: eb0042bd bl 300132a4 <__errno> <== NOT EXECUTED 300027ac: e3a03014 mov r3, #20 <== NOT EXECUTED 300027b0: e5803000 str r3, [r0] <== NOT EXECUTED 300027b4: e3e00000 mvn r0, #0 <== NOT EXECUTED 300027b8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 300027bc: eb0042b8 bl 300132a4 <__errno> <== NOT EXECUTED 300027c0: e3a03016 mov r3, #22 <== NOT EXECUTED 300027c4: e5803000 str r3, [r0] <== NOT EXECUTED 300027c8: e3e00000 mvn r0, #0 <== NOT EXECUTED 300027cc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 300015fc : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 300015fc: e59f30d0 ldr r3, [pc, #208] ; 300016d4 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 30001600: e92d4070 push {r4, r5, r6, lr} #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 30001604: e5933000 ldr r3, [r3] void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 30001608: e1a05000 mov r5, r0 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 3000160c: e3530000 cmp r3, #0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 30001610: e1a06001 mov r6, r1 30001614: e1a04002 mov r4, r2 /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { (*rtems_malloc_statistics_helpers->initialize)(); 30001618: 11a0e00f movne lr, pc 3000161c: 1593f000 ldrne pc, [r3] } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 30001620: eb002007 bl 30009644 /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 30001624: e59f30ac ldr r3, [pc, #172] ; 300016d8 30001628: e5933000 ldr r3, [r3] 3000162c: e3530000 cmp r3, #0 30001630: 0a000006 beq 30001650 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 30001634: e1a00005 mov r0, r5 <== NOT EXECUTED 30001638: e1a01004 mov r1, r4 <== NOT EXECUTED 3000163c: e1a0e00f mov lr, pc <== NOT EXECUTED 30001640: e593f000 ldr pc, [r3] <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 30001644: e0856006 add r6, r5, r6 <== NOT EXECUTED 30001648: e0606006 rsb r6, r0, r6 <== NOT EXECUTED 3000164c: e1a05000 mov r5, 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 ( 30001650: e59f4084 ldr r4, [pc, #132] ; 300016dc 30001654: e5d41000 ldrb r1, [r4] 30001658: e3510000 cmp r1, #0 3000165c: 1a000018 bne 300016c4 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 30001660: e59f3078 ldr r3, [pc, #120] ; 300016e0 30001664: e5d33028 ldrb r3, [r3, #40] ; 0x28 30001668: e3530000 cmp r3, #0 3000166c: 1a00000e bne 300016ac void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 30001670: e59f406c ldr r4, [pc, #108] ; 300016e4 30001674: e1a01005 mov r1, r5 30001678: e1a02006 mov r2, r6 3000167c: e5940000 ldr r0, [r4] 30001680: e3a03004 mov r3, #4 30001684: eb000fe3 bl 30005618 <_Heap_Initialize> RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 30001688: e3500000 cmp r0, #0 3000168c: 0a00000e beq 300016cc rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 30001690: e59f5050 ldr r5, [pc, #80] ; 300016e8 30001694: e5940000 ldr r0, [r4] 30001698: e5954000 ldr r4, [r5] 3000169c: eb0012ce bl 300061dc <_Protected_heap_Get_size> 300016a0: e0800004 add r0, r0, r4 300016a4: e5850000 str r0, [r5] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 300016a8: e8bd8070 pop {r4, r5, r6, pc} if ( !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() ) { memset( heap_begin, 0, heap_size ); 300016ac: e1a00005 mov r0, r5 300016b0: e1a02006 mov r2, r6 300016b4: eb003294 bl 3000e10c * 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 ) { 300016b8: e5d43000 ldrb r3, [r4] 300016bc: e3530000 cmp r3, #0 300016c0: 0affffea beq 30001670 300016c4: e59f4018 ldr r4, [pc, #24] ; 300016e4 300016c8: eafffff0 b 30001690 heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 300016cc: e280001a add r0, r0, #26 <== NOT EXECUTED 300016d0: eb000de1 bl 30004e5c <== NOT EXECUTED 300016d4: 3001a668 .word 0x3001a668 300016d8: 3001a66c .word 0x3001a66c 300016dc: 3001a665 .word 0x3001a665 300016e0: 30019f5c .word 0x30019f5c 300016e4: 30019eb4 .word 0x30019eb4 300016e8: 3001a854 .word 0x3001a854 30003ad8 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 30003ad8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 30003adc: e250a000 subs sl, r0, #0 <== NOT EXECUTED static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 30003ae0: e24dd010 sub sp, sp, #16 <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 30003ae4: 0a000031 beq 30003bb0 <== NOT EXECUTED return; if ( !print_handler ) 30003ae8: e59f4110 ldr r4, [pc, #272] ; 30003c00 <== NOT EXECUTED 30003aec: e5947004 ldr r7, [r4, #4] <== NOT EXECUTED 30003af0: e3570000 cmp r7, #0 <== NOT EXECUTED 30003af4: 0a00002d beq 30003bb0 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 30003af8: e37a0001 cmn sl, #1 <== NOT EXECUTED 30003afc: 0a000032 beq 30003bcc <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 30003b00: e59a80f4 ldr r8, [sl, #244] ; 0xf4 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 30003b04: e28a50c4 add r5, sl, #196 ; 0xc4 <== NOT EXECUTED current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); 30003b08: e8950240 ldm r5, {r6, r9} <== NOT EXECUTED 30003b0c: e2899010 add r9, r9, #16 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 30003b10: e2466010 sub r6, r6, #16 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 30003b14: e1a00009 mov r0, r9 <== NOT EXECUTED 30003b18: e1a01006 mov r1, r6 <== NOT EXECUTED 30003b1c: ebffffd8 bl 30003a84 <== NOT EXECUTED if ( high_water_mark ) 30003b20: e250b000 subs fp, r0, #0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 30003b24: 10899006 addne r9, r9, r6 <== NOT EXECUTED 30003b28: 106bb009 rsbne fp, fp, r9 <== NOT EXECUTED else used = 0; if ( the_thread ) { 30003b2c: e35a0000 cmp sl, #0 <== NOT EXECUTED 30003b30: 0a00002c beq 30003be8 <== NOT EXECUTED (*print_handler)( 30003b34: e59aa008 ldr sl, [sl, #8] <== NOT EXECUTED 30003b38: e28d2008 add r2, sp, #8 <== NOT EXECUTED 30003b3c: e3a01005 mov r1, #5 <== NOT EXECUTED 30003b40: e1a0000a mov r0, sl <== NOT EXECUTED 30003b44: e5949008 ldr r9, [r4, #8] <== NOT EXECUTED 30003b48: eb001820 bl 30009bd0 <== NOT EXECUTED 30003b4c: e1a0200a mov r2, sl <== NOT EXECUTED 30003b50: e1a03000 mov r3, r0 <== NOT EXECUTED 30003b54: e59f10a8 ldr r1, [pc, #168] ; 30003c04 <== NOT EXECUTED 30003b58: e1a00009 mov r0, r9 <== NOT EXECUTED 30003b5c: e1a0e00f mov lr, pc <== NOT EXECUTED 30003b60: e12fff17 bx r7 <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 30003b64: e5953000 ldr r3, [r5] <== NOT EXECUTED 30003b68: e5952004 ldr r2, [r5, #4] <== NOT EXECUTED 30003b6c: e2433001 sub r3, r3, #1 <== NOT EXECUTED 30003b70: e0823003 add r3, r2, r3 <== NOT EXECUTED 30003b74: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED 30003b78: e58d8000 str r8, [sp] <== NOT EXECUTED 30003b7c: e58d6004 str r6, [sp, #4] <== NOT EXECUTED 30003b80: e59f1080 ldr r1, [pc, #128] ; 30003c08 <== NOT EXECUTED 30003b84: e1a0e00f mov lr, pc <== NOT EXECUTED 30003b88: e594f004 ldr pc, [r4, #4] <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 30003b8c: e5942000 ldr r2, [r4] <== NOT EXECUTED ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); } (*print_handler)( 30003b90: e59f3068 ldr r3, [pc, #104] ; 30003c00 <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 30003b94: e3520000 cmp r2, #0 <== NOT EXECUTED 30003b98: 0a000006 beq 30003bb8 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 30003b9c: e1a0200b mov r2, fp <== NOT EXECUTED 30003ba0: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 30003ba4: e59f1060 ldr r1, [pc, #96] ; 30003c0c <== NOT EXECUTED 30003ba8: e1a0e00f mov lr, pc <== NOT EXECUTED 30003bac: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED } } 30003bb0: e28dd010 add sp, sp, #16 <== NOT EXECUTED 30003bb4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED current, size ); if (Stack_check_Initialized == 0) { (*print_handler)( print_context, "Unavailable\n" ); 30003bb8: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 30003bbc: e59f104c ldr r1, [pc, #76] ; 30003c10 <== NOT EXECUTED 30003bc0: e1a0e00f mov lr, pc <== NOT EXECUTED 30003bc4: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED 30003bc8: eafffff8 b 30003bb0 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { if (Stack_check_Interrupt_stack.area) { 30003bcc: e59f5040 ldr r5, [pc, #64] ; 30003c14 <== NOT EXECUTED 30003bd0: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED 30003bd4: e3530000 cmp r3, #0 <== NOT EXECUTED 30003bd8: 13a08000 movne r8, #0 <== NOT EXECUTED 30003bdc: 11a0a008 movne sl, r8 <== NOT EXECUTED 30003be0: 1affffc8 bne 30003b08 <== NOT EXECUTED 30003be4: eafffff1 b 30003bb0 <== NOT EXECUTED "0x%08" PRIx32 " %4s", the_thread->Object.id, rtems_object_get_name( the_thread->Object.id, sizeof(name), name ) ); } else { (*print_handler)( print_context, "0x%08" PRIx32 " INTR", ~0 ); 30003be8: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED 30003bec: e59f1024 ldr r1, [pc, #36] ; 30003c18 <== NOT EXECUTED 30003bf0: e3e02000 mvn r2, #0 <== NOT EXECUTED 30003bf4: e1a0e00f mov lr, pc <== NOT EXECUTED 30003bf8: e12fff17 bx r7 <== NOT EXECUTED 30003bfc: eaffffd8 b 30003b64 <== NOT EXECUTED 30003c00: 30064060 .word 0x30064060 30003c04: 3005bcac .word 0x3005bcac 30003c08: 3005bccc .word 0x3005bccc 30003c0c: 3005bcfc .word 0x3005bcfc 30003c10: 3005bcec .word 0x3005bcec 30003c14: 30066b4c .word 0x30066b4c 30003c18: 3005bcbc .word 0x3005bcbc 30003a84 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 30003a84: e2803010 add r3, r0, #16 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 30003a88: e3c11003 bic r1, r1, #3 <== NOT EXECUTED 30003a8c: e0831001 add r1, r3, r1 <== NOT EXECUTED 30003a90: e1530001 cmp r3, r1 <== NOT EXECUTED 30003a94: 2a00000a bcs 30003ac4 <== NOT EXECUTED if (*base != U32_PATTERN) 30003a98: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 30003a9c: e59f2030 ldr r2, [pc, #48] ; 30003ad4 <== NOT EXECUTED 30003aa0: e1500002 cmp r0, r2 <== NOT EXECUTED 30003aa4: 0a000003 beq 30003ab8 <== NOT EXECUTED 30003aa8: ea000007 b 30003acc <== NOT EXECUTED 30003aac: e5932000 ldr r2, [r3] <== NOT EXECUTED 30003ab0: e1520000 cmp r2, r0 <== NOT EXECUTED 30003ab4: 1a000004 bne 30003acc <== 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++) 30003ab8: e2833004 add r3, r3, #4 <== NOT EXECUTED 30003abc: e1510003 cmp r1, r3 <== NOT EXECUTED 30003ac0: 8afffff9 bhi 30003aac <== NOT EXECUTED 30003ac4: e3a00000 mov r0, #0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 30003ac8: e12fff1e bx lr <== NOT EXECUTED */ base += PATTERN_SIZE_WORDS; for (ebase = base + length; base < ebase; base++) if (*base != U32_PATTERN) return (void *) base; 30003acc: e1a00003 mov r0, r3 <== NOT EXECUTED 30003ad0: e12fff1e bx lr <== NOT EXECUTED 30003ad4: a5a5a5a5 .word 0xa5a5a5a5 30003c90 : * * NOTE: The system is in a questionable state... we may not get * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) { 30003c90: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 30003c94: e1a06000 mov r6, r0 <== NOT EXECUTED 30003c98: e24dd020 sub sp, sp, #32 <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); char name [32]; printk("BLOWN STACK!!!\n"); 30003c9c: e59f0084 ldr r0, [pc, #132] ; 30003d28 <== NOT EXECUTED * * NOTE: The system is in a questionable state... we may not get * the following message out. */ void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok) { 30003ca0: e20140ff and r4, r1, #255 ; 0xff <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); 30003ca4: e59650c8 ldr r5, [r6, #200] ; 0xc8 <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 30003ca8: eb000b25 bl 30006944 <== NOT EXECUTED printk("task control block: 0x%08" PRIxPTR "\n", running); 30003cac: e59f0078 ldr r0, [pc, #120] ; 30003d2c <== NOT EXECUTED 30003cb0: e1a01006 mov r1, r6 <== NOT EXECUTED 30003cb4: eb000b22 bl 30006944 <== NOT EXECUTED printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 30003cb8: e59f0070 ldr r0, [pc, #112] ; 30003d30 <== NOT EXECUTED 30003cbc: e5961008 ldr r1, [r6, #8] <== NOT EXECUTED 30003cc0: eb000b1f bl 30006944 <== NOT EXECUTED printk( 30003cc4: e59f0068 ldr r0, [pc, #104] ; 30003d34 <== NOT EXECUTED 30003cc8: e596100c ldr r1, [r6, #12] <== NOT EXECUTED 30003ccc: eb000b1c bl 30006944 <== NOT EXECUTED "task name: 0x%08" PRIx32 "\n", running->Object.name.name_u32 ); printk( 30003cd0: e1a0200d mov r2, sp <== NOT EXECUTED 30003cd4: e3a01020 mov r1, #32 <== NOT EXECUTED 30003cd8: e5960008 ldr r0, [r6, #8] <== NOT EXECUTED 30003cdc: eb0017bb bl 30009bd0 <== NOT EXECUTED 30003ce0: e1a01000 mov r1, r0 <== NOT EXECUTED 30003ce4: e59f004c ldr r0, [pc, #76] ; 30003d38 <== NOT EXECUTED 30003ce8: eb000b15 bl 30006944 <== NOT EXECUTED "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 30003cec: e59610c4 ldr r1, [r6, #196] ; 0xc4 <== NOT EXECUTED 30003cf0: e59620c8 ldr r2, [r6, #200] ; 0xc8 <== NOT EXECUTED 30003cf4: e59f0040 ldr r0, [pc, #64] ; 30003d3c <== NOT EXECUTED 30003cf8: e0823001 add r3, r2, r1 <== NOT EXECUTED 30003cfc: eb000b10 bl 30006944 <== 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) { 30003d00: e3540000 cmp r4, #0 <== NOT EXECUTED 30003d04: 0a000001 beq 30003d10 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 30003d08: e3a00081 mov r0, #129 ; 0x81 <== NOT EXECUTED 30003d0c: eb0019d6 bl 3000a46c <== NOT EXECUTED (unsigned long) stack->size, stack->area, ((char *) stack->area + stack->size) ); if (!pattern_ok) { printk( 30003d10: e2853018 add r3, r5, #24 <== NOT EXECUTED 30003d14: e59f0024 ldr r0, [pc, #36] ; 30003d40 <== NOT EXECUTED 30003d18: e3a01010 mov r1, #16 <== NOT EXECUTED 30003d1c: e2852008 add r2, r5, #8 <== NOT EXECUTED 30003d20: eb000b07 bl 30006944 <== NOT EXECUTED 30003d24: eafffff7 b 30003d08 <== NOT EXECUTED 30003d28: 3005bd68 .word 0x3005bd68 30003d2c: 3005bd78 .word 0x3005bd78 30003d30: 3005bd98 .word 0x3005bd98 30003d34: 3005bdac .word 0x3005bdac 30003d38: 3005bdc0 .word 0x3005bdc0 30003d3c: 3005bdd8 .word 0x3005bdd8 30003d40: 3005be0c .word 0x3005be0c 3000439c <_Event_Surrender>: */ void _Event_Surrender( Thread_Control *the_thread ) { 3000439c: e92d40f0 push {r4, r5, r6, r7, lr} 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 ]; 300043a0: e5901104 ldr r1, [r0, #260] ; 0x104 option_set = (rtems_option) the_thread->Wait.option; 300043a4: e5905030 ldr r5, [r0, #48] ; 0x30 */ void _Event_Surrender( Thread_Control *the_thread ) { 300043a8: e1a04000 mov r4, r0 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300043ac: e10f0000 mrs r0, CPSR 300043b0: e3803080 orr r3, r0, #128 ; 0x80 300043b4: e129f003 msr CPSR_fc, r3 api = the_thread->API_Extensions[ THREAD_API_RTEMS ]; option_set = (rtems_option) the_thread->Wait.option; _ISR_Disable( level ); pending_events = api->pending_events; 300043b8: e5912000 ldr r2, [r1] event_condition = (rtems_event_set) the_thread->Wait.count; 300043bc: e5943024 ldr r3, [r4, #36] ; 0x24 seized_events = _Event_sets_Get( pending_events, event_condition ); /* * No events were seized in this operation */ if ( _Event_sets_Is_empty( seized_events ) ) { 300043c0: e013c002 ands ip, r3, r2 300043c4: 0a000021 beq 30004450 <_Event_Surrender+0xb4> /* * 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() && 300043c8: e59f6100 ldr r6, [pc, #256] ; 300044d0 <_Event_Surrender+0x134> 300043cc: e5966000 ldr r6, [r6] 300043d0: e3560000 cmp r6, #0 300043d4: 0a000003 beq 300043e8 <_Event_Surrender+0x4c> 300043d8: e59f60f4 ldr r6, [pc, #244] ; 300044d4 <_Event_Surrender+0x138> 300043dc: e5966000 ldr r6, [r6] 300043e0: e1540006 cmp r4, r6 300043e4: 0a000024 beq 3000447c <_Event_Surrender+0xe0> } /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { 300043e8: e5946010 ldr r6, [r4, #16] 300043ec: e3160c01 tst r6, #256 ; 0x100 300043f0: 0a000014 beq 30004448 <_Event_Surrender+0xac> if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { 300043f4: e153000c cmp r3, ip 300043f8: 0a000001 beq 30004404 <_Event_Surrender+0x68> 300043fc: e3150002 tst r5, #2 30004400: 0a000010 beq 30004448 <_Event_Surrender+0xac> api->pending_events = _Event_sets_Clear( pending_events, seized_events ); the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 30004404: e5943028 ldr r3, [r4, #40] ; 0x28 /* * Otherwise, this is a normal send to another thread */ if ( _States_Is_waiting_for_event( the_thread->current_state ) ) { if ( seized_events == event_condition || _Options_Is_any( option_set ) ) { api->pending_events = _Event_sets_Clear( pending_events, seized_events ); 30004408: e1c2200c bic r2, r2, ip 3000440c: e5812000 str r2, [r1] the_thread->Wait.count = 0; 30004410: e3a02000 mov r2, #0 30004414: e5842024 str r2, [r4, #36] ; 0x24 *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 30004418: e583c000 str ip, [r3] static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( 3000441c: e10f3000 mrs r3, CPSR 30004420: e129f000 msr CPSR_fc, r0 30004424: e129f003 msr CPSR_fc, r3 _ISR_Flash( level ); if ( !_Watchdog_Is_active( &the_thread->Timer ) ) { 30004428: e5943050 ldr r3, [r4, #80] ; 0x50 3000442c: e3530002 cmp r3, #2 30004430: 0a000008 beq 30004458 <_Event_Surrender+0xbc> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30004434: e129f000 msr CPSR_fc, r0 RTEMS_INLINE_ROUTINE void _Thread_Unblock ( Thread_Control *the_thread ) { _Thread_Clear_state( the_thread, STATES_BLOCKED ); 30004438: e59f1098 ldr r1, [pc, #152] ; 300044d8 <_Event_Surrender+0x13c> 3000443c: e1a00004 mov r0, r4 } return; } } _ISR_Enable( level ); } 30004440: e8bd40f0 pop {r4, r5, r6, r7, lr} 30004444: ea0007e4 b 300063dc <_Thread_Clear_state> 30004448: e129f000 msr CPSR_fc, r0 <== NOT EXECUTED 3000444c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30004450: e129f000 msr CPSR_fc, r0 30004454: e8bd80f0 pop {r4, r5, r6, r7, pc} RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate( Watchdog_Control *the_watchdog ) { the_watchdog->state = WATCHDOG_REMOVE_IT; 30004458: e3a03003 mov r3, #3 3000445c: e5843050 str r3, [r4, #80] ; 0x50 30004460: e129f000 msr CPSR_fc, r0 _ISR_Enable( level ); _Thread_Unblock( the_thread ); } else { _Watchdog_Deactivate( &the_thread->Timer ); _ISR_Enable( level ); (void) _Watchdog_Remove( &the_thread->Timer ); 30004464: e2840048 add r0, r4, #72 ; 0x48 30004468: eb000d94 bl 30007ac0 <_Watchdog_Remove> 3000446c: e59f1064 ldr r1, [pc, #100] ; 300044d8 <_Event_Surrender+0x13c> 30004470: e1a00004 mov r0, r4 } return; } } _ISR_Enable( level ); } 30004474: e8bd40f0 pop {r4, r5, r6, r7, lr} 30004478: ea0007d7 b 300063dc <_Thread_Clear_state> * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || 3000447c: e59f6058 ldr r6, [pc, #88] ; 300044dc <_Event_Surrender+0x140> 30004480: e5967000 ldr r7, [r6] /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 30004484: e3570002 cmp r7, #2 30004488: 0a000002 beq 30004498 <_Event_Surrender+0xfc> _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { 3000448c: e5967000 ldr r7, [r6] /* * If we are in an ISR and sending to the current thread, then * we have a critical section issue to deal with. */ if ( _ISR_Is_in_progress() && 30004490: e3570001 cmp r7, #1 30004494: 1affffd3 bne 300043e8 <_Event_Surrender+0x4c> _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { 30004498: e153000c cmp r3, ip 3000449c: 0a000001 beq 300044a8 <_Event_Surrender+0x10c> 300044a0: e3150002 tst r5, #2 300044a4: 0a000007 beq 300044c8 <_Event_Surrender+0x12c> api->pending_events = _Event_sets_Clear( pending_events,seized_events ); 300044a8: e1c2200c bic r2, r2, ip 300044ac: e5812000 str r2, [r1] the_thread->Wait.count = 0; *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 300044b0: e5943028 ldr r3, [r4, #40] ; 0x28 _Event_Sync_state = THREAD_BLOCKING_OPERATION_SATISFIED; 300044b4: e3a02003 mov r2, #3 300044b8: e5862000 str r2, [r6] _Thread_Is_executing( the_thread ) && ((_Event_Sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) || (_Event_Sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) { if ( seized_events == event_condition || _Options_Is_any(option_set) ) { api->pending_events = _Event_sets_Clear( pending_events,seized_events ); the_thread->Wait.count = 0; 300044bc: e3a02000 mov r2, #0 300044c0: e5842024 str r2, [r4, #36] ; 0x24 *(rtems_event_set *)the_thread->Wait.return_argument = seized_events; 300044c4: e583c000 str ip, [r3] 300044c8: e129f000 msr CPSR_fc, r0 300044cc: e8bd80f0 pop {r4, r5, r6, r7, pc} 300044d0: 3001aa3c .word 0x3001aa3c 300044d4: 3001aa60 .word 0x3001aa60 300044d8: 1003fff8 .word 0x1003fff8 300044dc: 3001b230 .word 0x3001b230 3000a8dc <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 3000a8dc: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 3000a8e0: e1a08002 mov r8, r2 Heap_Statistics *const stats = &heap->stats; Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); Heap_Block *block = _Heap_Free_list_first( heap ); uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE - HEAP_BLOCK_SIZE_OFFSET; uintptr_t const page_size = heap->page_size; 3000a8e4: e5902010 ldr r2, [r0, #16] Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 3000a8e8: e24dd01c sub sp, sp, #28 3000a8ec: e1a05001 mov r5, r1 - HEAP_BLOCK_SIZE_OFFSET; uintptr_t const page_size = heap->page_size; uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { 3000a8f0: e2911004 adds r1, r1, #4 Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 3000a8f4: e1a07000 mov r7, r0 - HEAP_BLOCK_SIZE_OFFSET; uintptr_t const page_size = heap->page_size; uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { 3000a8f8: e58d1000 str r1, [sp] Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { 3000a8fc: e1a0b003 mov fp, r3 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 3000a900: e590a008 ldr sl, [r0, #8] Heap_Statistics *const stats = &heap->stats; Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap ); Heap_Block *block = _Heap_Free_list_first( heap ); uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE - HEAP_BLOCK_SIZE_OFFSET; uintptr_t const page_size = heap->page_size; 3000a904: e58d200c str r2, [sp, #12] uintptr_t alloc_begin = 0; uint32_t search_count = 0; if ( block_size_floor < alloc_size ) { 3000a908: 2a000074 bcs 3000aae0 <_Heap_Allocate_aligned_with_boundary+0x204> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { 3000a90c: e3530000 cmp r3, #0 3000a910: 1a000070 bne 3000aad8 <_Heap_Allocate_aligned_with_boundary+0x1fc> if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 3000a914: e157000a cmp r7, sl 3000a918: 03a06000 moveq r6, #0 3000a91c: 0a000072 beq 3000aaec <_Heap_Allocate_aligned_with_boundary+0x210> 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; 3000a920: e59d300c ldr r3, [sp, #12] uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 3000a924: e2651004 rsb r1, r5, #4 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; 3000a928: e2833007 add r3, r3, #7 if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 3000a92c: e3a06000 mov r6, #0 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; 3000a930: e58d3010 str r3, [sp, #16] uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 3000a934: e58d1014 str r1, [sp, #20] 3000a938: ea000004 b 3000a950 <_Heap_Allocate_aligned_with_boundary+0x74> boundary ); } } if ( alloc_begin != 0 ) { 3000a93c: e3540000 cmp r4, #0 3000a940: 1a000057 bne 3000aaa4 <_Heap_Allocate_aligned_with_boundary+0x1c8> break; } block = block->next; 3000a944: e59aa008 ldr sl, [sl, #8] if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 3000a948: e157000a cmp r7, sl 3000a94c: 0a000066 beq 3000aaec <_Heap_Allocate_aligned_with_boundary+0x210> /* * 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 ) { 3000a950: e59a9004 ldr r9, [sl, #4] 3000a954: e59d2000 ldr r2, [sp] while ( block != free_list_tail ) { _HAssert( _Heap_Is_prev_used( block ) ); /* Statistics */ ++search_count; 3000a958: e2866001 add r6, r6, #1 /* * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag * field. Thus the value is about one unit larger than the real block * size. The greater than operator takes this into account. */ if ( block->size_and_flag > block_size_floor ) { 3000a95c: e1520009 cmp r2, r9 3000a960: 2afffff7 bcs 3000a944 <_Heap_Allocate_aligned_with_boundary+0x68> if ( alignment == 0 ) { 3000a964: e3580000 cmp r8, #0 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; 3000a968: 028a4008 addeq r4, sl, #8 3000a96c: 0afffff2 beq 3000a93c <_Heap_Allocate_aligned_with_boundary+0x60> uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 3000a970: e59d1014 ldr r1, [sp, #20] 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; 3000a974: e3c99001 bic r9, r9, #1 3000a978: e08a9009 add r9, sl, r9 uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; 3000a97c: e5973014 ldr r3, [r7, #20] 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; 3000a980: e59d2010 ldr r2, [sp, #16] uintptr_t alloc_end = block_end + HEAP_BLOCK_SIZE_OFFSET; uintptr_t alloc_begin = alloc_end - alloc_size; 3000a984: e0814009 add r4, r1, r9 uintptr_t alignment, uintptr_t boundary ) { uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; 3000a988: e58d3004 str r3, [sp, #4] RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 3000a98c: e1a00004 mov r0, r4 uintptr_t const block_size = _Heap_Block_size( block ); uintptr_t const block_end = block_begin + block_size; uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block ); uintptr_t const alloc_begin_ceiling = block_end - min_block_size + HEAP_BLOCK_HEADER_SIZE + page_size - 1; 3000a990: e0633002 rsb r3, r3, r2 3000a994: e1a01008 mov r1, r8 3000a998: e0839009 add r9, r3, r9 3000a99c: eb003147 bl 30016ec0 <__umodsi3> 3000a9a0: e0604004 rsb r4, r0, r4 RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block( const Heap_Block *block ) { return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE; 3000a9a4: e28a3008 add r3, sl, #8 uintptr_t alloc_begin = alloc_end - alloc_size; alloc_begin = _Heap_Align_down( alloc_begin, alignment ); /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { 3000a9a8: e1590004 cmp r9, r4 3000a9ac: e58d3008 str r3, [sp, #8] 3000a9b0: 2a000003 bcs 3000a9c4 <_Heap_Allocate_aligned_with_boundary+0xe8> RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); 3000a9b4: e1a00009 mov r0, r9 3000a9b8: e1a01008 mov r1, r8 3000a9bc: eb00313f bl 30016ec0 <__umodsi3> 3000a9c0: e0604009 rsb r4, r0, r9 } alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { 3000a9c4: e35b0000 cmp fp, #0 3000a9c8: 0a000025 beq 3000aa64 <_Heap_Allocate_aligned_with_boundary+0x188> /* Ensure that the we have a valid new block at the end */ if ( alloc_begin > alloc_begin_ceiling ) { alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment ); } alloc_end = alloc_begin + alloc_size; 3000a9cc: e0849005 add r9, r4, r5 3000a9d0: e1a00009 mov r0, r9 3000a9d4: e1a0100b mov r1, fp 3000a9d8: eb003138 bl 30016ec0 <__umodsi3> 3000a9dc: e0600009 rsb r0, r0, r9 /* 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 ) { 3000a9e0: e1590000 cmp r9, r0 3000a9e4: 93a03000 movls r3, #0 3000a9e8: 83a03001 movhi r3, #1 3000a9ec: e1540000 cmp r4, r0 3000a9f0: 23a03000 movcs r3, #0 3000a9f4: e3530000 cmp r3, #0 3000a9f8: 0a000019 beq 3000aa64 <_Heap_Allocate_aligned_with_boundary+0x188> alloc_end = alloc_begin + alloc_size; /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; 3000a9fc: e59d1008 ldr r1, [sp, #8] 3000aa00: e0819005 add r9, r1, r5 uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { if ( boundary_line < boundary_floor ) { 3000aa04: e1590000 cmp r9, r0 3000aa08: 958d6018 strls r6, [sp, #24] 3000aa0c: 9a000002 bls 3000aa1c <_Heap_Allocate_aligned_with_boundary+0x140> 3000aa10: eaffffcb b 3000a944 <_Heap_Allocate_aligned_with_boundary+0x68> 3000aa14: e1590000 cmp r9, r0 3000aa18: 8a000035 bhi 3000aaf4 <_Heap_Allocate_aligned_with_boundary+0x218> return 0; } alloc_begin = boundary_line - alloc_size; 3000aa1c: e0654000 rsb r4, r5, r0 3000aa20: e1a01008 mov r1, r8 3000aa24: e1a00004 mov r0, r4 3000aa28: eb003124 bl 30016ec0 <__umodsi3> 3000aa2c: e0604004 rsb r4, r0, r4 alloc_begin = _Heap_Align_down( alloc_begin, alignment ); alloc_end = alloc_begin + alloc_size; 3000aa30: e0846005 add r6, r4, r5 3000aa34: e1a00006 mov r0, r6 3000aa38: e1a0100b mov r1, fp 3000aa3c: eb00311f bl 30016ec0 <__umodsi3> 3000aa40: e0600006 rsb r0, r0, r6 /* Ensure boundary constaint */ if ( boundary != 0 ) { uintptr_t const boundary_floor = alloc_begin_floor + alloc_size; uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary ); while ( alloc_begin < boundary_line && boundary_line < alloc_end ) { 3000aa44: e1560000 cmp r6, r0 3000aa48: 93a03000 movls r3, #0 3000aa4c: 83a03001 movhi r3, #1 3000aa50: e1540000 cmp r4, r0 3000aa54: 23a03000 movcs r3, #0 3000aa58: e3530000 cmp r3, #0 3000aa5c: 1affffec bne 3000aa14 <_Heap_Allocate_aligned_with_boundary+0x138> 3000aa60: e59d6018 ldr r6, [sp, #24] 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 ) { 3000aa64: e59d2008 ldr r2, [sp, #8] 3000aa68: e1520004 cmp r2, r4 3000aa6c: 8affffb4 bhi 3000a944 <_Heap_Allocate_aligned_with_boundary+0x68> 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; 3000aa70: e59d100c ldr r1, [sp, #12] 3000aa74: e1a00004 mov r0, r4 3000aa78: eb003110 bl 30016ec0 <__umodsi3> 3000aa7c: e3e09007 mvn r9, #7 3000aa80: e06a9009 rsb r9, sl, r9 3000aa84: e0899004 add r9, r9, r4 if ( free_size >= min_block_size || free_size == 0 ) { 3000aa88: e59d1004 ldr r1, [sp, #4] 3000aa8c: e0603009 rsb r3, r0, r9 3000aa90: e1590000 cmp r9, r0 3000aa94: 11510003 cmpne r1, r3 3000aa98: 8affffa9 bhi 3000a944 <_Heap_Allocate_aligned_with_boundary+0x68> boundary ); } } if ( alloc_begin != 0 ) { 3000aa9c: e3540000 cmp r4, #0 3000aaa0: 0affffa7 beq 3000a944 <_Heap_Allocate_aligned_with_boundary+0x68> block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 3000aaa4: e597304c ldr r3, [r7, #76] ; 0x4c block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 3000aaa8: e1a0100a mov r1, sl block = block->next; } if ( alloc_begin != 0 ) { /* Statistics */ stats->searches += search_count; 3000aaac: e0833006 add r3, r3, r6 3000aab0: e587304c str r3, [r7, #76] ; 0x4c block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size ); 3000aab4: e1a00007 mov r0, r7 3000aab8: e1a03005 mov r3, r5 3000aabc: e1a02004 mov r2, r4 3000aac0: ebffeb6d bl 3000587c <_Heap_Block_allocate> 3000aac4: e1a00004 mov r0, r4 uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) { Heap_Statistics *const stats = &heap->stats; 3000aac8: e5973044 ldr r3, [r7, #68] ; 0x44 3000aacc: e1530006 cmp r3, r6 ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 3000aad0: 35876044 strcc r6, [r7, #68] ; 0x44 3000aad4: ea000002 b 3000aae4 <_Heap_Allocate_aligned_with_boundary+0x208> /* Integer overflow occured */ return NULL; } if ( boundary != 0 ) { if ( boundary < alloc_size ) { 3000aad8: e1550003 cmp r5, r3 3000aadc: 9a000006 bls 3000aafc <_Heap_Allocate_aligned_with_boundary+0x220> ); } /* Statistics */ if ( stats->max_search < search_count ) { stats->max_search = search_count; 3000aae0: e3a00000 mov r0, #0 } return (void *) alloc_begin; } 3000aae4: e28dd01c add sp, sp, #28 3000aae8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} if ( alignment == 0 ) { alignment = page_size; } } while ( block != free_list_tail ) { 3000aaec: e3a00000 mov r0, #0 3000aaf0: eafffff4 b 3000aac8 <_Heap_Allocate_aligned_with_boundary+0x1ec> 3000aaf4: e59d6018 ldr r6, [sp, #24] <== NOT EXECUTED 3000aaf8: eaffff91 b 3000a944 <_Heap_Allocate_aligned_with_boundary+0x68> <== NOT EXECUTED if ( boundary != 0 ) { if ( boundary < alloc_size ) { return NULL; } if ( alignment == 0 ) { 3000aafc: e3580000 cmp r8, #0 3000ab00: 01a08002 moveq r8, r2 3000ab04: eaffff82 b 3000a914 <_Heap_Allocate_aligned_with_boundary+0x38> 30006604 <_Heap_Walk>: bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 30006604: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} Heap_Block *const last_block = heap->last_block; Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; if ( !_System_state_Is_up( _System_state_Get() ) ) { 30006608: e59f35d0 ldr r3, [pc, #1488] ; 30006be0 <_Heap_Walk+0x5dc> uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const last_block = heap->last_block; Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 3000660c: e31200ff tst r2, #255 ; 0xff if ( !_System_state_Is_up( _System_state_Get() ) ) { 30006610: e5933000 ldr r3, [r3] uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const last_block = heap->last_block; Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 30006614: e59f25c8 ldr r2, [pc, #1480] ; 30006be4 <_Heap_Walk+0x5e0> 30006618: e59fa5c8 ldr sl, [pc, #1480] ; 30006be8 <_Heap_Walk+0x5e4> bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 3000661c: e24dd038 sub sp, sp, #56 ; 0x38 uintptr_t const page_size = heap->page_size; uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const last_block = heap->last_block; Heap_Block *block = heap->first_block; Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; 30006620: 01a0a002 moveq sl, r2 if ( !_System_state_Is_up( _System_state_Get() ) ) { 30006624: e3530003 cmp r3, #3 Heap_Control *heap, int source, bool dump ) { uintptr_t const page_size = heap->page_size; 30006628: e5902010 ldr r2, [r0, #16] uintptr_t const min_block_size = heap->min_block_size; Heap_Block *const last_block = heap->last_block; 3000662c: e5903024 ldr r3, [r0, #36] ; 0x24 bool _Heap_Walk( Heap_Control *heap, int source, bool dump ) { 30006630: e1a04000 mov r4, r0 30006634: e1a08001 mov r8, r1 uintptr_t const page_size = heap->page_size; 30006638: e58d2020 str r2, [sp, #32] uintptr_t const min_block_size = heap->min_block_size; 3000663c: e590b014 ldr fp, [r0, #20] Heap_Block *const last_block = heap->last_block; 30006640: e58d3024 str r3, [sp, #36] ; 0x24 Heap_Block *block = heap->first_block; 30006644: e5905020 ldr r5, [r0, #32] Heap_Walk_printer printer = dump ? _Heap_Walk_print : _Heap_Walk_print_nothing; if ( !_System_state_Is_up( _System_state_Get() ) ) { 30006648: 0a000002 beq 30006658 <_Heap_Walk+0x54> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 3000664c: e3a00001 mov r0, #1 block = next_block; } return true; } 30006650: e28dd038 add sp, sp, #56 ; 0x38 30006654: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 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)( 30006658: e5900018 ldr r0, [r0, #24] 3000665c: e594101c ldr r1, [r4, #28] 30006660: e5942008 ldr r2, [r4, #8] 30006664: e594300c ldr r3, [r4, #12] 30006668: e59dc024 ldr ip, [sp, #36] ; 0x24 3000666c: e98d0003 stmib sp, {r0, r1} 30006670: e58d2014 str r2, [sp, #20] 30006674: e58d3018 str r3, [sp, #24] 30006678: e59f256c ldr r2, [pc, #1388] ; 30006bec <_Heap_Walk+0x5e8> 3000667c: e58db000 str fp, [sp] 30006680: e58d500c str r5, [sp, #12] 30006684: e58dc010 str ip, [sp, #16] 30006688: e1a00008 mov r0, r8 3000668c: e3a01000 mov r1, #0 30006690: e59d3020 ldr r3, [sp, #32] 30006694: e1a0e00f mov lr, pc 30006698: e12fff1a bx sl heap->area_begin, heap->area_end, first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { 3000669c: e59d2020 ldr r2, [sp, #32] 300066a0: e3520000 cmp r2, #0 300066a4: 0a000032 beq 30006774 <_Heap_Walk+0x170> (*printer)( source, true, "page size is zero\n" ); return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { 300066a8: e59d3020 ldr r3, [sp, #32] 300066ac: e2139003 ands r9, r3, #3 300066b0: 1a000036 bne 30006790 <_Heap_Walk+0x18c> ); return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { 300066b4: e1a0000b mov r0, fp 300066b8: e59d1020 ldr r1, [sp, #32] 300066bc: ebffe953 bl 30000c10 <__umodsi3> 300066c0: e2506000 subs r6, r0, #0 300066c4: 1a000038 bne 300067ac <_Heap_Walk+0x1a8> ); return false; } if ( 300066c8: e2850008 add r0, r5, #8 300066cc: e59d1020 ldr r1, [sp, #32] 300066d0: ebffe94e bl 30000c10 <__umodsi3> 300066d4: e2509000 subs r9, r0, #0 300066d8: 1a00003b bne 300067cc <_Heap_Walk+0x1c8> 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; 300066dc: e5957004 ldr r7, [r5, #4] ); return false; } if ( !_Heap_Is_prev_used( first_block ) ) { 300066e0: e2176001 ands r6, r7, #1 300066e4: 0a000040 beq 300067ec <_Heap_Walk+0x1e8> ); return false; } if ( first_block->prev_size != page_size ) { 300066e8: e5953000 ldr r3, [r5] 300066ec: e59dc020 ldr ip, [sp, #32] 300066f0: e15c0003 cmp ip, r3 300066f4: 1a000016 bne 30006754 <_Heap_Walk+0x150> ); return false; } if ( _Heap_Is_free( last_block ) ) { 300066f8: e59d2024 ldr r2, [sp, #36] ; 0x24 300066fc: e5923004 ldr r3, [r2, #4] 30006700: e3c33001 bic r3, r3, #1 30006704: e0823003 add r3, r2, r3 30006708: e5939004 ldr r9, [r3, #4] 3000670c: e2199001 ands r9, r9, #1 30006710: 0a000112 beq 30006b60 <_Heap_Walk+0x55c> return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 30006714: e5949008 ldr r9, [r4, #8] int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 30006718: e5943010 ldr r3, [r4, #16] 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 ) { 3000671c: e1540009 cmp r4, r9 int source, Heap_Walk_printer printer, Heap_Control *heap ) { uintptr_t const page_size = heap->page_size; 30006720: e58d3028 str r3, [sp, #40] ; 0x28 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 ) { 30006724: 0a00006c beq 300068dc <_Heap_Walk+0x2d8> 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; 30006728: e594c020 ldr ip, [r4, #32] 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 3000672c: e15c0009 cmp ip, r9 30006730: 9a000034 bls 30006808 <_Heap_Walk+0x204> if ( !_Heap_Is_block_in_heap( heap, free_block ) ) { (*printer)( 30006734: e1a00008 mov r0, r8 30006738: e1a03009 mov r3, r9 3000673c: e3a01001 mov r1, #1 30006740: e59f24a8 ldr r2, [pc, #1192] ; 30006bf0 <_Heap_Walk+0x5ec> 30006744: e1a0e00f mov lr, pc 30006748: e12fff1a bx sl 3000674c: e3a00000 mov r0, #0 30006750: eaffffbe b 30006650 <_Heap_Walk+0x4c> return false; } if ( first_block->prev_size != page_size ) { (*printer)( 30006754: e1a00008 mov r0, r8 30006758: e58dc000 str ip, [sp] 3000675c: e3a01001 mov r1, #1 30006760: e59f248c ldr r2, [pc, #1164] ; 30006bf4 <_Heap_Walk+0x5f0> 30006764: e1a0e00f mov lr, pc 30006768: e12fff1a bx sl 3000676c: e1a00009 mov r0, r9 30006770: eaffffb6 b 30006650 <_Heap_Walk+0x4c> first_block, last_block, first_free_block, last_free_block ); if ( page_size == 0 ) { (*printer)( source, true, "page size is zero\n" ); 30006774: e1a00008 mov r0, r8 30006778: e3a01001 mov r1, #1 3000677c: e59f2474 ldr r2, [pc, #1140] ; 30006bf8 <_Heap_Walk+0x5f4> 30006780: e1a0e00f mov lr, pc 30006784: e12fff1a bx sl 30006788: e59d0020 ldr r0, [sp, #32] 3000678c: eaffffaf b 30006650 <_Heap_Walk+0x4c> return false; } if ( !_Addresses_Is_aligned( (void *) page_size ) ) { (*printer)( 30006790: e1a00008 mov r0, r8 30006794: e3a01001 mov r1, #1 30006798: e59f245c ldr r2, [pc, #1116] ; 30006bfc <_Heap_Walk+0x5f8> 3000679c: e1a0e00f mov lr, pc 300067a0: e12fff1a bx sl 300067a4: e3a00000 mov r0, #0 300067a8: eaffffa8 b 30006650 <_Heap_Walk+0x4c> return false; } if ( !_Heap_Is_aligned( min_block_size, page_size ) ) { (*printer)( 300067ac: e1a00008 mov r0, r8 300067b0: e1a0300b mov r3, fp 300067b4: e3a01001 mov r1, #1 300067b8: e59f2440 ldr r2, [pc, #1088] ; 30006c00 <_Heap_Walk+0x5fc> 300067bc: e1a0e00f mov lr, pc 300067c0: e12fff1a bx sl 300067c4: e1a00009 mov r0, r9 300067c8: eaffffa0 b 30006650 <_Heap_Walk+0x4c> } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size ) ) { (*printer)( 300067cc: e1a00008 mov r0, r8 300067d0: e1a03005 mov r3, r5 300067d4: e3a01001 mov r1, #1 300067d8: e59f2424 ldr r2, [pc, #1060] ; 30006c04 <_Heap_Walk+0x600> 300067dc: e1a0e00f mov lr, pc 300067e0: e12fff1a bx sl 300067e4: e1a00006 mov r0, r6 300067e8: eaffff98 b 30006650 <_Heap_Walk+0x4c> return false; } if ( !_Heap_Is_prev_used( first_block ) ) { (*printer)( 300067ec: e1a00008 mov r0, r8 300067f0: e3a01001 mov r1, #1 300067f4: e59f240c ldr r2, [pc, #1036] ; 30006c08 <_Heap_Walk+0x604> 300067f8: e1a0e00f mov lr, pc 300067fc: e12fff1a bx sl 30006800: e1a00006 mov r0, r6 30006804: eaffff91 b 30006650 <_Heap_Walk+0x4c> && (uintptr_t) block <= (uintptr_t) heap->last_block; 30006808: e5942024 ldr r2, [r4, #36] ; 0x24 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 3000680c: e1520009 cmp r2, r9 && (uintptr_t) block <= (uintptr_t) heap->last_block; 30006810: e58d202c str r2, [sp, #44] ; 0x2c 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 30006814: 3affffc6 bcc 30006734 <_Heap_Walk+0x130> ); return false; } if ( 30006818: e2890008 add r0, r9, #8 3000681c: e1a01003 mov r1, r3 30006820: e58dc01c str ip, [sp, #28] 30006824: ebffe8f9 bl 30000c10 <__umodsi3> 30006828: e3500000 cmp r0, #0 3000682c: e59dc01c ldr ip, [sp, #28] 30006830: 1a0000d1 bne 30006b7c <_Heap_Walk+0x578> ); return false; } if ( _Heap_Is_used( free_block ) ) { 30006834: e5993004 ldr r3, [r9, #4] 30006838: e3c33001 bic r3, r3, #1 3000683c: e0893003 add r3, r9, r3 30006840: e5933004 ldr r3, [r3, #4] 30006844: e3130001 tst r3, #1 30006848: 1a0000dc bne 30006bc0 <_Heap_Walk+0x5bc> ); return false; } if ( free_block->prev != prev_block ) { 3000684c: e599200c ldr r2, [r9, #12] 30006850: e1540002 cmp r4, r2 30006854: 1a0000d0 bne 30006b9c <_Heap_Walk+0x598> 30006858: e58d7030 str r7, [sp, #48] ; 0x30 3000685c: e58db034 str fp, [sp, #52] ; 0x34 30006860: e59d702c ldr r7, [sp, #44] ; 0x2c 30006864: e59db028 ldr fp, [sp, #40] ; 0x28 30006868: e58d502c str r5, [sp, #44] ; 0x2c 3000686c: e58d6028 str r6, [sp, #40] ; 0x28 30006870: e1a0600c mov r6, ip 30006874: ea000011 b 300068c0 <_Heap_Walk+0x2bc> 30006878: e1590006 cmp r9, r6 3000687c: 3affffac bcc 30006734 <_Heap_Walk+0x130> 30006880: e1570009 cmp r7, r9 ); return false; } if ( 30006884: e2890008 add r0, r9, #8 30006888: e1a0100b mov r1, fp 3000688c: 3affffa8 bcc 30006734 <_Heap_Walk+0x130> 30006890: ebffe8de bl 30000c10 <__umodsi3> 30006894: e3500000 cmp r0, #0 30006898: 1a0000b7 bne 30006b7c <_Heap_Walk+0x578> ); return false; } if ( _Heap_Is_used( free_block ) ) { 3000689c: e5993004 ldr r3, [r9, #4] 300068a0: e3c33001 bic r3, r3, #1 300068a4: e0833009 add r3, r3, r9 300068a8: e5933004 ldr r3, [r3, #4] 300068ac: e3130001 tst r3, #1 300068b0: 1a0000c2 bne 30006bc0 <_Heap_Walk+0x5bc> ); return false; } if ( free_block->prev != prev_block ) { 300068b4: e599200c ldr r2, [r9, #12] 300068b8: e1520005 cmp r2, r5 300068bc: 1a0000b6 bne 30006b9c <_Heap_Walk+0x598> (*printer)( 300068c0: e1a05009 mov r5, r9 return false; } prev_block = free_block; free_block = free_block->next; 300068c4: e5999008 ldr r9, [r9, #8] 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 ) { 300068c8: e1540009 cmp r4, r9 300068cc: 1affffe9 bne 30006878 <_Heap_Walk+0x274> 300068d0: e28d502c add r5, sp, #44 ; 0x2c 300068d4: e89508a0 ldm r5, {r5, r7, fp} 300068d8: e59d6028 ldr r6, [sp, #40] ; 0x28 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 300068dc: e59d3024 ldr r3, [sp, #36] ; 0x24 300068e0: e1530005 cmp r3, r5 "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), 300068e4: 158db028 strne fp, [sp, #40] ; 0x28 if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 300068e8: 0affff57 beq 3000664c <_Heap_Walk+0x48> - 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; 300068ec: e3c77001 bic r7, r7, #1 uintptr_t const block_size = _Heap_Block_size( block ); bool const prev_used = _Heap_Is_prev_used( block ); Heap_Block *const next_block = _Heap_Block_at( block, block_size ); uintptr_t const next_block_begin = (uintptr_t) next_block; if ( prev_used ) { 300068f0: e21610ff ands r1, r6, #255 ; 0xff RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 300068f4: e0876005 add r6, r7, r5 300068f8: 0a000012 beq 30006948 <_Heap_Walk+0x344> (*printer)( 300068fc: e1a03005 mov r3, r5 30006900: e58d7000 str r7, [sp] 30006904: e1a00008 mov r0, r8 30006908: e3a01000 mov r1, #0 3000690c: e59f22f8 ldr r2, [pc, #760] ; 30006c0c <_Heap_Walk+0x608> 30006910: e1a0e00f mov lr, pc 30006914: e12fff1a bx sl 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 30006918: e5943020 ldr r3, [r4, #32] 3000691c: e1530006 cmp r3, r6 30006920: 9a000013 bls 30006974 <_Heap_Walk+0x370> block->prev_size ); } if ( !_Heap_Is_block_in_heap( heap, next_block ) ) { (*printer)( 30006924: e1a00008 mov r0, r8 30006928: e58d6000 str r6, [sp] 3000692c: e1a03005 mov r3, r5 30006930: e3a01001 mov r1, #1 30006934: e59f22d4 ldr r2, [pc, #724] ; 30006c10 <_Heap_Walk+0x60c> 30006938: e1a0e00f mov lr, pc 3000693c: e12fff1a bx sl 30006940: e3a00000 mov r0, #0 "block 0x%08x: next block 0x%08x not in heap\n", block, next_block ); return false; 30006944: eaffff41 b 30006650 <_Heap_Walk+0x4c> "block 0x%08x: size %u\n", block, block_size ); } else { (*printer)( 30006948: e58d7000 str r7, [sp] 3000694c: e5953000 ldr r3, [r5] 30006950: e1a00008 mov r0, r8 30006954: e58d3004 str r3, [sp, #4] 30006958: e59f22b4 ldr r2, [pc, #692] ; 30006c14 <_Heap_Walk+0x610> 3000695c: e1a03005 mov r3, r5 30006960: e1a0e00f mov lr, pc 30006964: e12fff1a bx sl 30006968: e5943020 ldr r3, [r4, #32] 3000696c: e1530006 cmp r3, r6 30006970: 8affffeb bhi 30006924 <_Heap_Walk+0x320> 30006974: e5943024 ldr r3, [r4, #36] ; 0x24 30006978: e1530006 cmp r3, r6 3000697c: 3affffe8 bcc 30006924 <_Heap_Walk+0x320> ); return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { 30006980: e1a00007 mov r0, r7 30006984: e59d1020 ldr r1, [sp, #32] 30006988: ebffe8a0 bl 30000c10 <__umodsi3> 3000698c: e2509000 subs r9, r0, #0 30006990: 1a000055 bne 30006aec <_Heap_Walk+0x4e8> ); return false; } if ( block_size < min_block_size ) { 30006994: e59d3028 ldr r3, [sp, #40] ; 0x28 30006998: e1530007 cmp r3, r7 3000699c: 8a00005b bhi 30006b10 <_Heap_Walk+0x50c> ); return false; } if ( next_block_begin <= block_begin ) { 300069a0: e1550006 cmp r5, r6 300069a4: 2a000064 bcs 30006b3c <_Heap_Walk+0x538> ); return false; } if ( !_Heap_Is_prev_used( next_block ) ) { 300069a8: e5963004 ldr r3, [r6, #4] 300069ac: e3130001 tst r3, #1 300069b0: 1a000036 bne 30006a90 <_Heap_Walk+0x48c> 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; 300069b4: e595b004 ldr fp, [r5, #4] 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)( 300069b8: e595200c ldr r2, [r5, #12] return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 300069bc: e5943008 ldr r3, [r4, #8] - 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; 300069c0: e3cb7001 bic r7, fp, #1 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 300069c4: e1530002 cmp r3, r2 } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_last( Heap_Control *heap ) { return _Heap_Free_list_tail(heap)->prev; 300069c8: e594100c ldr r1, [r4, #12] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); 300069cc: e0859007 add r9, r5, r7 return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next; 300069d0: 059f0240 ldreq r0, [pc, #576] ; 30006c18 <_Heap_Walk+0x614> 300069d4: 0a000003 beq 300069e8 <_Heap_Walk+0x3e4> "block 0x%08x: prev 0x%08x%s, next 0x%08x%s\n", block, block->prev, block->prev == first_free_block ? " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), 300069d8: e59fc23c ldr ip, [pc, #572] ; 30006c1c <_Heap_Walk+0x618> 300069dc: e1520004 cmp r2, r4 300069e0: e59f0238 ldr r0, [pc, #568] ; 30006c20 <_Heap_Walk+0x61c> 300069e4: 11a0000c movne r0, ip 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)( 300069e8: e5953008 ldr r3, [r5, #8] 300069ec: e1510003 cmp r1, r3 300069f0: 059f122c ldreq r1, [pc, #556] ; 30006c24 <_Heap_Walk+0x620> 300069f4: 0a000003 beq 30006a08 <_Heap_Walk+0x404> " (= first)" : (block->prev == free_list_head ? " (= head)" : ""), block->next, block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") 300069f8: e59fc21c ldr ip, [pc, #540] ; 30006c1c <_Heap_Walk+0x618> 300069fc: e1530004 cmp r3, r4 30006a00: e59f1220 ldr r1, [pc, #544] ; 30006c28 <_Heap_Walk+0x624> 30006a04: 11a0100c movne r1, ip 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)( 30006a08: e58d2000 str r2, [sp] 30006a0c: e98d0009 stmib sp, {r0, r3} 30006a10: e58d100c str r1, [sp, #12] 30006a14: e1a03005 mov r3, r5 30006a18: e1a00008 mov r0, r8 30006a1c: e3a01000 mov r1, #0 30006a20: e59f2204 ldr r2, [pc, #516] ; 30006c2c <_Heap_Walk+0x628> 30006a24: e1a0e00f mov lr, pc 30006a28: e12fff1a bx sl block->next == last_free_block ? " (= last)" : (block->next == free_list_tail ? " (= tail)" : "") ); if ( block_size != next_block->prev_size ) { 30006a2c: e5993000 ldr r3, [r9] 30006a30: e1570003 cmp r7, r3 30006a34: 0a00000a beq 30006a64 <_Heap_Walk+0x460> (*printer)( 30006a38: e58d3004 str r3, [sp, #4] 30006a3c: e1a00008 mov r0, r8 30006a40: e58d7000 str r7, [sp] 30006a44: e58d9008 str r9, [sp, #8] 30006a48: e1a03005 mov r3, r5 30006a4c: e3a01001 mov r1, #1 30006a50: e59f21d8 ldr r2, [pc, #472] ; 30006c30 <_Heap_Walk+0x62c> 30006a54: e1a0e00f mov lr, pc 30006a58: e12fff1a bx sl 30006a5c: e3a00000 mov r0, #0 30006a60: eafffefa b 30006650 <_Heap_Walk+0x4c> ); return false; } if ( !prev_used ) { 30006a64: e21b9001 ands r9, fp, #1 30006a68: 0a000017 beq 30006acc <_Heap_Walk+0x4c8> 30006a6c: e5943008 ldr r3, [r4, #8] ) { 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 ) { 30006a70: e1530004 cmp r3, r4 30006a74: 1a000003 bne 30006a88 <_Heap_Walk+0x484> 30006a78: ea00000b b 30006aac <_Heap_Walk+0x4a8> <== NOT EXECUTED if ( free_block == block ) { return true; } free_block = free_block->next; 30006a7c: e5933008 ldr r3, [r3, #8] ) { 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 ) { 30006a80: e1530004 cmp r3, r4 30006a84: 0a000008 beq 30006aac <_Heap_Walk+0x4a8> if ( free_block == block ) { 30006a88: e1530005 cmp r3, r5 30006a8c: 1afffffa bne 30006a7c <_Heap_Walk+0x478> if ( !_Heap_Walk_check_control( source, printer, heap ) ) { return false; } while ( block != last_block ) { 30006a90: e59d2024 ldr r2, [sp, #36] ; 0x24 30006a94: e1520006 cmp r2, r6 30006a98: 0afffeeb beq 3000664c <_Heap_Walk+0x48> 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 ) { 30006a9c: e5967004 ldr r7, [r6, #4] 30006aa0: e1a05006 mov r5, r6 30006aa4: e2076001 and r6, r7, #1 30006aa8: eaffff8f b 300068ec <_Heap_Walk+0x2e8> return false; } if ( !_Heap_Walk_is_in_free_list( heap, block ) ) { (*printer)( 30006aac: e1a00008 mov r0, r8 30006ab0: e1a03005 mov r3, r5 30006ab4: e3a01001 mov r1, #1 30006ab8: e59f2174 ldr r2, [pc, #372] ; 30006c34 <_Heap_Walk+0x630> 30006abc: e1a0e00f mov lr, pc 30006ac0: e12fff1a bx sl 30006ac4: e3a00000 mov r0, #0 30006ac8: eafffee0 b 30006650 <_Heap_Walk+0x4c> return false; } if ( !prev_used ) { (*printer)( 30006acc: e1a00008 mov r0, r8 30006ad0: e1a03005 mov r3, r5 30006ad4: e3a01001 mov r1, #1 30006ad8: e59f2158 ldr r2, [pc, #344] ; 30006c38 <_Heap_Walk+0x634> 30006adc: e1a0e00f mov lr, pc 30006ae0: e12fff1a bx sl 30006ae4: e1a00009 mov r0, r9 30006ae8: eafffed8 b 30006650 <_Heap_Walk+0x4c> return false; } if ( !_Heap_Is_aligned( block_size, page_size ) ) { (*printer)( 30006aec: e1a00008 mov r0, r8 30006af0: e58d7000 str r7, [sp] 30006af4: e1a03005 mov r3, r5 30006af8: e3a01001 mov r1, #1 30006afc: e59f2138 ldr r2, [pc, #312] ; 30006c3c <_Heap_Walk+0x638> 30006b00: e1a0e00f mov lr, pc 30006b04: e12fff1a bx sl 30006b08: e3a00000 mov r0, #0 "block 0x%08x: block size %u not page aligned\n", block, block_size ); return false; 30006b0c: eafffecf b 30006650 <_Heap_Walk+0x4c> } if ( block_size < min_block_size ) { (*printer)( 30006b10: e58d3004 str r3, [sp, #4] 30006b14: e1a00008 mov r0, r8 30006b18: e1a0b003 mov fp, r3 30006b1c: e58d7000 str r7, [sp] 30006b20: e1a03005 mov r3, r5 30006b24: e3a01001 mov r1, #1 30006b28: e59f2110 ldr r2, [pc, #272] ; 30006c40 <_Heap_Walk+0x63c> 30006b2c: e1a0e00f mov lr, pc 30006b30: e12fff1a bx sl 30006b34: e1a00009 mov r0, r9 block, block_size, min_block_size ); return false; 30006b38: eafffec4 b 30006650 <_Heap_Walk+0x4c> } if ( next_block_begin <= block_begin ) { (*printer)( 30006b3c: e1a00008 mov r0, r8 30006b40: e58d6000 str r6, [sp] 30006b44: e1a03005 mov r3, r5 30006b48: e3a01001 mov r1, #1 30006b4c: e59f20f0 ldr r2, [pc, #240] ; 30006c44 <_Heap_Walk+0x640> 30006b50: e1a0e00f mov lr, pc 30006b54: e12fff1a bx sl 30006b58: e1a00009 mov r0, r9 "block 0x%08x: next block 0x%08x is not a successor\n", block, next_block ); return false; 30006b5c: eafffebb b 30006650 <_Heap_Walk+0x4c> return false; } if ( _Heap_Is_free( last_block ) ) { (*printer)( 30006b60: e1a00008 mov r0, r8 30006b64: e3a01001 mov r1, #1 30006b68: e59f20d8 ldr r2, [pc, #216] ; 30006c48 <_Heap_Walk+0x644> 30006b6c: e1a0e00f mov lr, pc 30006b70: e12fff1a bx sl 30006b74: e1a00009 mov r0, r9 30006b78: eafffeb4 b 30006650 <_Heap_Walk+0x4c> } if ( !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size ) ) { (*printer)( 30006b7c: e1a00008 mov r0, r8 30006b80: e1a03009 mov r3, r9 30006b84: e3a01001 mov r1, #1 30006b88: e59f20bc ldr r2, [pc, #188] ; 30006c4c <_Heap_Walk+0x648> 30006b8c: e1a0e00f mov lr, pc 30006b90: e12fff1a bx sl 30006b94: e3a00000 mov r0, #0 30006b98: eafffeac b 30006650 <_Heap_Walk+0x4c> return false; } if ( free_block->prev != prev_block ) { (*printer)( 30006b9c: e58d2000 str r2, [sp] 30006ba0: e1a00008 mov r0, r8 30006ba4: e1a03009 mov r3, r9 30006ba8: e3a01001 mov r1, #1 30006bac: e59f209c ldr r2, [pc, #156] ; 30006c50 <_Heap_Walk+0x64c> 30006bb0: e1a0e00f mov lr, pc 30006bb4: e12fff1a bx sl 30006bb8: e3a00000 mov r0, #0 30006bbc: eafffea3 b 30006650 <_Heap_Walk+0x4c> return false; } if ( _Heap_Is_used( free_block ) ) { (*printer)( 30006bc0: e1a00008 mov r0, r8 30006bc4: e1a03009 mov r3, r9 30006bc8: e3a01001 mov r1, #1 30006bcc: e59f2080 ldr r2, [pc, #128] ; 30006c54 <_Heap_Walk+0x650> 30006bd0: e1a0e00f mov lr, pc 30006bd4: e12fff1a bx sl 30006bd8: e3a00000 mov r0, #0 30006bdc: eafffe9b b 30006650 <_Heap_Walk+0x4c> 30006be0: 3001d2f0 .word 0x3001d2f0 30006be4: 300065f8 .word 0x300065f8 30006be8: 30006c58 .word 0x30006c58 30006bec: 3001ac90 .word 0x3001ac90 30006bf0: 3001ae24 .word 0x3001ae24 30006bf4: 3001ade0 .word 0x3001ade0 30006bf8: 3001ad24 .word 0x3001ad24 30006bfc: 3001ad38 .word 0x3001ad38 30006c00: 3001ad58 .word 0x3001ad58 30006c04: 3001ad7c .word 0x3001ad7c 30006c08: 3001adb0 .word 0x3001adb0 30006c0c: 3001aec4 .word 0x3001aec4 30006c10: 3001af04 .word 0x3001af04 30006c14: 3001aedc .word 0x3001aedc 30006c18: 3001afc4 .word 0x3001afc4 30006c1c: 3001ac54 .word 0x3001ac54 30006c20: 3001afd0 .word 0x3001afd0 30006c24: 3001afdc .word 0x3001afdc 30006c28: 3001afe8 .word 0x3001afe8 30006c2c: 3001aff4 .word 0x3001aff4 30006c30: 3001b020 .word 0x3001b020 30006c34: 3001b08c .word 0x3001b08c 30006c38: 3001b05c .word 0x3001b05c 30006c3c: 3001af34 .word 0x3001af34 30006c40: 3001af64 .word 0x3001af64 30006c44: 3001af90 .word 0x3001af90 30006c48: 3001ae0c .word 0x3001ae0c 30006c4c: 3001ae44 .word 0x3001ae44 30006c50: 3001ae90 .word 0x3001ae90 30006c54: 3001ae74 .word 0x3001ae74 30005aec <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) { 30005aec: 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 ) 30005af0: e5908034 ldr r8, [r0, #52] ; 0x34 */ void _Objects_Extend_information( Objects_Information *information ) { 30005af4: e24dd014 sub sp, sp, #20 minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 30005af8: e3580000 cmp r8, #0 */ void _Objects_Extend_information( Objects_Information *information ) { 30005afc: e1a05000 mov r5, r0 /* * Search for a free block of indexes. The block variable ends up set * to block_count + 1 if the table needs to be extended. */ minimum_index = _Objects_Get_index( information->minimum_id ); 30005b00: e1d070b8 ldrh r7, [r0, #8] index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 30005b04: 0a00009c beq 30005d7c <_Objects_Extend_information+0x290> block_count = 0; else { block_count = information->maximum / information->allocation_size; 30005b08: e1d091b4 ldrh r9, [r0, #20] 30005b0c: e1d0a1b0 ldrh sl, [r0, #16] 30005b10: e1a01009 mov r1, r9 30005b14: e1a0000a mov r0, sl 30005b18: eb0044a4 bl 30016db0 <__aeabi_uidiv> 30005b1c: e1a03800 lsl r3, r0, #16 for ( ; block < block_count; block++ ) { 30005b20: e1b03823 lsrs r3, r3, #16 30005b24: 01a01009 moveq r1, r9 30005b28: 01a06007 moveq r6, r7 30005b2c: 01a04003 moveq r4, r3 30005b30: 0a00000f beq 30005b74 <_Objects_Extend_information+0x88> if ( information->object_blocks[ block ] == NULL ) 30005b34: e5984000 ldr r4, [r8] 30005b38: e3540000 cmp r4, #0 30005b3c: 11a01009 movne r1, r9 30005b40: 11a06007 movne r6, r7 30005b44: 13a04000 movne r4, #0 30005b48: 01a01009 moveq r1, r9 30005b4c: 01a06007 moveq r6, r7 30005b50: 1a000003 bne 30005b64 <_Objects_Extend_information+0x78> 30005b54: ea000006 b 30005b74 <_Objects_Extend_information+0x88> <== NOT EXECUTED 30005b58: e7982104 ldr r2, [r8, r4, lsl #2] 30005b5c: e3520000 cmp r2, #0 30005b60: 0a000003 beq 30005b74 <_Objects_Extend_information+0x88> if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 30005b64: e2844001 add r4, r4, #1 30005b68: e1530004 cmp r3, r4 if ( information->object_blocks[ block ] == NULL ) break; else index_base += information->allocation_size; 30005b6c: e0866009 add r6, r6, r9 if ( information->object_blocks == NULL ) block_count = 0; else { block_count = information->maximum / information->allocation_size; for ( ; block < block_count; block++ ) { 30005b70: 8afffff8 bhi 30005b58 <_Objects_Extend_information+0x6c> else index_base += information->allocation_size; } } maximum = (uint32_t) information->maximum + information->allocation_size; 30005b74: e08aa001 add sl, sl, r1 /* * 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 ) { 30005b78: e35a0801 cmp sl, #65536 ; 0x10000 30005b7c: 2a000064 bcs 30005d14 <_Objects_Extend_information+0x228> /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; if ( information->auto_extend ) { 30005b80: e5d50012 ldrb r0, [r5, #18] /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; 30005b84: e5952018 ldr r2, [r5, #24] if ( information->auto_extend ) { 30005b88: e3500000 cmp r0, #0 /* * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; 30005b8c: e0000192 mul r0, r2, r1 if ( information->auto_extend ) { 30005b90: 1a000061 bne 30005d1c <_Objects_Extend_information+0x230> new_object_block = _Workspace_Allocate( block_size ); if ( !new_object_block ) return; } else { new_object_block = _Workspace_Allocate_or_fatal_error( block_size ); 30005b94: e58d3000 str r3, [sp] 30005b98: eb000819 bl 30007c04 <_Workspace_Allocate_or_fatal_error> 30005b9c: e59d3000 ldr r3, [sp] 30005ba0: e1a09000 mov r9, r0 } /* * If the index_base is the maximum we need to grow the tables. */ if (index_base >= information->maximum ) { 30005ba4: e1d521b0 ldrh r2, [r5, #16] 30005ba8: e1560002 cmp r6, r2 30005bac: 3a000038 bcc 30005c94 <_Objects_Extend_information+0x1a8> */ /* * Up the block count and maximum */ block_count++; 30005bb0: e283c001 add ip, r3, #1 * Allocate the tables and break it up. */ block_size = block_count * (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); 30005bb4: e08c008c add r0, ip, ip, lsl #1 30005bb8: e08a0000 add r0, sl, r0 30005bbc: e0800007 add r0, r0, r7 30005bc0: e1a00100 lsl r0, r0, #2 30005bc4: e88d1008 stm sp, {r3, ip} 30005bc8: eb000819 bl 30007c34 <_Workspace_Allocate> if ( !object_blocks ) { 30005bcc: e250b000 subs fp, r0, #0 30005bd0: e89d1008 ldm sp, {r3, ip} 30005bd4: 0a00006e beq 30005d94 <_Objects_Extend_information+0x2a8> * Take the block count down. Saves all the (block_count - 1) * in the copies. */ block_count--; if ( information->maximum > minimum_index ) { 30005bd8: e1d521b0 ldrh r2, [r5, #16] RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset ( const void *base, uintptr_t offset ) { return (void *)((uintptr_t)base + offset); 30005bdc: e08b818c add r8, fp, ip, lsl #3 30005be0: e1570002 cmp r7, r2 30005be4: e08bc10c add ip, fp, ip, lsl #2 30005be8: 3a000051 bcc 30005d34 <_Objects_Extend_information+0x248> } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 30005bec: e3570000 cmp r7, #0 information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 30005bf0: 13a02000 movne r2, #0 /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { local_table[ index ] = NULL; 30005bf4: 11a01002 movne r1, r2 } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 30005bf8: 0a000003 beq 30005c0c <_Objects_Extend_information+0x120> local_table[ index ] = NULL; 30005bfc: e7881102 str r1, [r8, r2, lsl #2] } else { /* * Deal with the special case of the 0 to minimum_index */ for ( index = 0; index < minimum_index; index++ ) { 30005c00: e2822001 add r2, r2, #1 30005c04: e1570002 cmp r7, r2 30005c08: 8afffffb bhi 30005bfc <_Objects_Extend_information+0x110> 30005c0c: e1a03103 lsl r3, r3, #2 */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 30005c10: e1d511b4 ldrh r1, [r5, #20] } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 30005c14: e3a00000 mov r0, #0 inactive_per_block[block_count] = 0; for ( index=index_base ; index < ( information->allocation_size + index_base ); 30005c18: e0861001 add r1, r6, r1 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 30005c1c: e1560001 cmp r6, r1 /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; 30005c20: e78c0003 str r0, [ip, r3] } /* * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; 30005c24: e78b0003 str r0, [fp, r3] inactive_per_block[block_count] = 0; for ( index=index_base ; 30005c28: 2a000005 bcs 30005c44 <_Objects_Extend_information+0x158> 30005c2c: e0882106 add r2, r8, r6, lsl #2 30005c30: e1a03006 mov r3, r6 index < ( information->allocation_size + index_base ); index++ ) { 30005c34: e2833001 add r3, r3, #1 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 30005c38: e1530001 cmp r3, r1 index < ( information->allocation_size + index_base ); index++ ) { local_table[ index ] = NULL; 30005c3c: e4820004 str r0, [r2], #4 * Initialise the new entries in the table. */ object_blocks[block_count] = NULL; inactive_per_block[block_count] = 0; for ( index=index_base ; 30005c40: 3afffffb bcc 30005c34 <_Objects_Extend_information+0x148> 30005c44: e10f3000 mrs r3, CPSR 30005c48: e3832080 orr r2, r3, #128 ; 0x80 30005c4c: e129f002 msr CPSR_fc, r2 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 30005c50: e5952000 ldr r2, [r5] 30005c54: e1d510b4 ldrh r1, [r5, #4] 30005c58: e1a02c02 lsl r2, r2, #24 old_tables = information->object_blocks; information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; information->local_table = local_table; information->maximum = (Objects_Maximum) maximum; 30005c5c: e1a0a80a lsl sl, sl, #16 information->maximum_id = _Objects_Build_id( 30005c60: e3822801 orr r2, r2, #65536 ; 0x10000 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; 30005c64: e1a0a82a lsr sl, sl, #16 information->maximum_id = _Objects_Build_id( 30005c68: e1822d81 orr r2, r2, r1, lsl #27 30005c6c: e182200a orr r2, r2, sl local_table[ index ] = NULL; } _ISR_Disable( level ); old_tables = information->object_blocks; 30005c70: e5950034 ldr r0, [r5, #52] ; 0x34 information->object_blocks = object_blocks; information->inactive_per_block = inactive_per_block; 30005c74: e585c030 str ip, [r5, #48] ; 0x30 information->local_table = local_table; 30005c78: e585801c str r8, [r5, #28] information->maximum = (Objects_Maximum) maximum; information->maximum_id = _Objects_Build_id( 30005c7c: e585200c str r2, [r5, #12] 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; 30005c80: e1c5a1b0 strh sl, [r5, #16] _ISR_Disable( level ); old_tables = information->object_blocks; information->object_blocks = object_blocks; 30005c84: e585b034 str fp, [r5, #52] ; 0x34 static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30005c88: e129f003 msr CPSR_fc, r3 information->maximum ); _ISR_Enable( level ); if ( old_tables ) 30005c8c: e3500000 cmp r0, #0 _Workspace_Free( old_tables ); 30005c90: 1b0007ed blne 30007c4c <_Workspace_Free> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 30005c94: e5953034 ldr r3, [r5, #52] ; 0x34 /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 30005c98: e28d7008 add r7, sp, #8 } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 30005c9c: e7839104 str r9, [r3, r4, lsl #2] /* * Initialize objects .. add to a local chain first. */ _Chain_Initialize( 30005ca0: e1a01009 mov r1, r9 30005ca4: e1a00007 mov r0, r7 30005ca8: e1d521b4 ldrh r2, [r5, #20] 30005cac: e5953018 ldr r3, [r5, #24] 30005cb0: eb001267 bl 3000a654 <_Chain_Initialize> } /* * Assign the new object block to the object block table. */ information->object_blocks[ block ] = new_object_block; 30005cb4: e1a04104 lsl r4, r4, #2 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 30005cb8: e2858020 add r8, r5, #32 /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 30005cbc: ea000008 b 30005ce4 <_Objects_Extend_information+0x1f8> the_object->id = _Objects_Build_id( 30005cc0: e5952000 ldr r2, [r5] 30005cc4: e1d5c0b4 ldrh ip, [r5, #4] 30005cc8: e1a02c02 lsl r2, r2, #24 30005ccc: e3822801 orr r2, r2, #65536 ; 0x10000 30005cd0: e1822d8c orr r2, r2, ip, lsl #27 30005cd4: e1822006 orr r2, r2, r6 30005cd8: e5832008 str r2, [r3, #8] information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 30005cdc: ebfffd26 bl 3000517c <_Chain_Append> index++; 30005ce0: e2866001 add r6, r6, #1 /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 30005ce4: e1a00007 mov r0, r7 30005ce8: eb00124c bl 3000a620 <_Chain_Get> 30005cec: e2503000 subs r3, r0, #0 information->the_class, _Objects_Local_node, index ); _Chain_Append( &information->Inactive, &the_object->Node ); 30005cf0: e1a01003 mov r1, r3 30005cf4: e1a00008 mov r0, r8 /* * Move from the local chain, initialise, then append to the inactive chain */ index = index_base; while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) { 30005cf8: 1afffff0 bne 30005cc0 <_Objects_Extend_information+0x1d4> _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 30005cfc: e1d531b4 ldrh r3, [r5, #20] information->inactive = 30005d00: e1d522bc ldrh r2, [r5, #44] ; 0x2c _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 30005d04: e5951030 ldr r1, [r5, #48] ; 0x30 information->inactive = 30005d08: e0832002 add r2, r3, r2 _Chain_Append( &information->Inactive, &the_object->Node ); index++; } information->inactive_per_block[ block ] = information->allocation_size; 30005d0c: e7813004 str r3, [r1, r4] information->inactive = 30005d10: e1c522bc strh r2, [r5, #44] ; 0x2c (Objects_Maximum)(information->inactive + information->allocation_size); } 30005d14: e28dd014 add sp, sp, #20 30005d18: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * Allocate the name table, and the objects and if it fails either return or * generate a fatal error depending on auto-extending being active. */ block_size = information->allocation_size * information->size; if ( information->auto_extend ) { new_object_block = _Workspace_Allocate( block_size ); 30005d1c: e58d3000 str r3, [sp] 30005d20: eb0007c3 bl 30007c34 <_Workspace_Allocate> if ( !new_object_block ) 30005d24: e2509000 subs r9, r0, #0 30005d28: e59d3000 ldr r3, [sp] 30005d2c: 1affff9c bne 30005ba4 <_Objects_Extend_information+0xb8> 30005d30: eafffff7 b 30005d14 <_Objects_Extend_information+0x228> /* * 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, 30005d34: e1a03103 lsl r3, r3, #2 30005d38: e1a02003 mov r2, r3 30005d3c: e5951034 ldr r1, [r5, #52] ; 0x34 30005d40: e88d1008 stm sp, {r3, ip} 30005d44: eb0020b4 bl 3000e01c information->object_blocks, block_count * sizeof(void*) ); memcpy( inactive_per_block, 30005d48: e89d1008 ldm sp, {r3, ip} 30005d4c: e1a0000c mov r0, ip 30005d50: e1a02003 mov r2, r3 30005d54: e5951030 ldr r1, [r5, #48] ; 0x30 30005d58: eb0020af bl 3000e01c information->inactive_per_block, block_count * sizeof(uint32_t) ); memcpy( local_table, 30005d5c: e1d521b0 ldrh r2, [r5, #16] 30005d60: e1a00008 mov r0, r8 30005d64: e0872002 add r2, r7, r2 30005d68: e1a02102 lsl r2, r2, #2 30005d6c: e595101c ldr r1, [r5, #28] 30005d70: eb0020a9 bl 3000e01c 30005d74: e89d1008 ldm sp, {r3, ip} 30005d78: eaffffa4 b 30005c10 <_Objects_Extend_information+0x124> minimum_index = _Objects_Get_index( information->minimum_id ); index_base = minimum_index; block = 0; /* if ( information->maximum < minimum_index ) */ if ( information->object_blocks == NULL ) 30005d7c: e1a04008 mov r4, r8 30005d80: e1d0a1b0 ldrh sl, [r0, #16] 30005d84: e1d011b4 ldrh r1, [r0, #20] 30005d88: e1a06007 mov r6, r7 30005d8c: e1a03008 mov r3, r8 30005d90: eaffff77 b 30005b74 <_Objects_Extend_information+0x88> (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) + ((maximum + minimum_index) * sizeof(Objects_Control *)); object_blocks = (void**) _Workspace_Allocate( block_size ); if ( !object_blocks ) { _Workspace_Free( new_object_block ); 30005d94: e1a00009 mov r0, r9 30005d98: eb0007ab bl 30007c4c <_Workspace_Free> return; 30005d9c: eaffffdc b 30005d14 <_Objects_Extend_information+0x228> 30005904 <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { 30005904: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 30005908: e1a04001 mov r4, r1 3000590c: e24dd004 sub sp, sp, #4 30005910: e1a06000 mov r6, r0 register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { 30005914: e1a0100d mov r1, sp 30005918: e1a00004 mov r0, r4 pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { 3000591c: e1a08002 mov r8, r2 30005920: e20370ff and r7, r3, #255 ; 0xff register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { 30005924: eb000075 bl 30005b00 <_POSIX_Mutex_Get> 30005928: e3500000 cmp r0, #0 3000592c: 0a00000a beq 3000595c <_POSIX_Condition_variables_Wait_support+0x58> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 30005930: e59f30dc ldr r3, [pc, #220] ; 30005a14 <_POSIX_Condition_variables_Wait_support+0x110> return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); 30005934: e1a0100d mov r1, sp 30005938: e5932000 ldr r2, [r3] 3000593c: e1a00006 mov r0, r6 30005940: e2422001 sub r2, r2, #1 30005944: e5832000 str r2, [r3] 30005948: ebffff77 bl 3000572c <_POSIX_Condition_variables_Get> switch ( location ) { 3000594c: e59d3000 ldr r3, [sp] return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); 30005950: e1a0a000 mov sl, r0 switch ( location ) { 30005954: e3530000 cmp r3, #0 30005958: 0a000003 beq 3000596c <_POSIX_Condition_variables_Wait_support+0x68> /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); if ( mutex_status ) 3000595c: e3a05016 mov r5, #22 case OBJECTS_ERROR: break; } return EINVAL; } 30005960: e1a00005 mov r0, r5 30005964: e28dd004 add sp, sp, #4 30005968: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} the_cond = _POSIX_Condition_variables_Get( cond, &location ); switch ( location ) { case OBJECTS_LOCAL: if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { 3000596c: e5903014 ldr r3, [r0, #20] 30005970: e3530000 cmp r3, #0 30005974: 0a000005 beq 30005990 <_POSIX_Condition_variables_Wait_support+0x8c> 30005978: e5942000 ldr r2, [r4] 3000597c: e1530002 cmp r3, r2 30005980: 0a000002 beq 30005990 <_POSIX_Condition_variables_Wait_support+0x8c> _Thread_Enable_dispatch(); 30005984: eb000c3b bl 30008a78 <_Thread_Enable_dispatch> 30005988: e3a05016 mov r5, #22 return EINVAL; 3000598c: eafffff3 b 30005960 <_POSIX_Condition_variables_Wait_support+0x5c> } (void) pthread_mutex_unlock( mutex ); 30005990: e1a00004 mov r0, r4 30005994: eb0000e3 bl 30005d28 _Thread_Enable_dispatch(); return EINVAL; } */ if ( !already_timedout ) { 30005998: e3570000 cmp r7, #0 3000599c: 0a000006 beq 300059bc <_POSIX_Condition_variables_Wait_support+0xb8> status = _Thread_Executing->Wait.return_code; if ( status && status != ETIMEDOUT ) return status; } else { _Thread_Enable_dispatch(); 300059a0: eb000c34 bl 30008a78 <_Thread_Enable_dispatch> 300059a4: e3a05074 mov r5, #116 ; 0x74 /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); 300059a8: e1a00004 mov r0, r4 300059ac: eb0000bc bl 30005ca4 if ( mutex_status ) 300059b0: e3500000 cmp r0, #0 300059b4: 0affffe9 beq 30005960 <_POSIX_Condition_variables_Wait_support+0x5c> 300059b8: eaffffe7 b 3000595c <_POSIX_Condition_variables_Wait_support+0x58> if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 300059bc: e59f5054 ldr r5, [pc, #84] ; 30005a18 <_POSIX_Condition_variables_Wait_support+0x114> return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; 300059c0: e5942000 ldr r2, [r4] _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 300059c4: e5953000 ldr r3, [r5] return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; 300059c8: e58a2014 str r2, [sl, #20] _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 300059cc: e5837034 str r7, [r3, #52] ; 0x34 _Thread_Executing->Wait.queue = &the_cond->Wait_queue; _Thread_Executing->Wait.id = *cond; 300059d0: e5961000 ldr r1, [r6] 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; 300059d4: e28a2018 add r2, sl, #24 _Thread_Executing->Wait.id = *cond; 300059d8: e5831020 str r1, [r3, #32] 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; 300059dc: e3a01001 mov r1, #1 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; 300059e0: e5832044 str r2, [r3, #68] ; 0x44 _Thread_Executing->Wait.id = *cond; _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); 300059e4: e1a00002 mov r0, r2 300059e8: e58a1048 str r1, [sl, #72] ; 0x48 300059ec: e59f2028 ldr r2, [pc, #40] ; 30005a1c <_POSIX_Condition_variables_Wait_support+0x118> 300059f0: e1a01008 mov r1, r8 300059f4: eb000d62 bl 30008f84 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 300059f8: eb000c1e bl 30008a78 <_Thread_Enable_dispatch> /* * Switch ourself out because we blocked as a result of the * _Thread_queue_Enqueue. */ status = _Thread_Executing->Wait.return_code; 300059fc: e5953000 ldr r3, [r5] 30005a00: e5935034 ldr r5, [r3, #52] ; 0x34 if ( status && status != ETIMEDOUT ) 30005a04: e3550074 cmp r5, #116 ; 0x74 30005a08: 13550000 cmpne r5, #0 30005a0c: 0affffe5 beq 300059a8 <_POSIX_Condition_variables_Wait_support+0xa4> 30005a10: eaffffd2 b 30005960 <_POSIX_Condition_variables_Wait_support+0x5c> <== NOT EXECUTED 30005a14: 3001d58c .word 0x3001d58c 30005a18: 3001d640 .word 0x3001d640 30005a1c: 3000936c .word 0x3000936c 3000d438 <_POSIX_signals_Clear_process_signals>: static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 3000d438: e10f2000 mrs r2, CPSR 3000d43c: e3823080 orr r3, r2, #128 ; 0x80 3000d440: e129f003 msr CPSR_fc, r3 mask = signo_to_mask( signo ); ISR_Level level; _ISR_Disable( level ); if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { 3000d444: e59f1064 ldr r1, [pc, #100] ; 3000d4b0 <_POSIX_signals_Clear_process_signals+0x78> 3000d448: e0803080 add r3, r0, r0, lsl #1 3000d44c: e7911103 ldr r1, [r1, r3, lsl #2] 3000d450: e1a0c103 lsl ip, r3, #2 3000d454: e3510002 cmp r1, #2 3000d458: 0a00000c beq 3000d490 <_POSIX_signals_Clear_process_signals+0x58> if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; 3000d45c: e59f3050 ldr r3, [pc, #80] ; 3000d4b4 <_POSIX_signals_Clear_process_signals+0x7c> 3000d460: e3a0c001 mov ip, #1 3000d464: e5931000 ldr r1, [r3] 3000d468: e2400001 sub r0, r0, #1 3000d46c: e1c1001c bic r0, r1, ip, lsl r0 if ( !_POSIX_signals_Pending ) 3000d470: e3500000 cmp r0, #0 if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) clear_signal = false; } if ( clear_signal ) { _POSIX_signals_Pending &= ~mask; 3000d474: e5830000 str r0, [r3] if ( !_POSIX_signals_Pending ) _Thread_Do_post_task_switch_extension--; 3000d478: 059f3038 ldreq r3, [pc, #56] ; 3000d4b8 <_POSIX_signals_Clear_process_signals+0x80> 3000d47c: 05931000 ldreq r1, [r3] 3000d480: 02411001 subeq r1, r1, #1 3000d484: 05831000 streq r1, [r3] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 3000d488: e129f002 msr CPSR_fc, r2 } _ISR_Enable( level ); } 3000d48c: e12fff1e bx lr ISR_Level level; _ISR_Disable( level ); if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) { if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) ) 3000d490: e59f1024 ldr r1, [pc, #36] ; 3000d4bc <_POSIX_signals_Clear_process_signals+0x84> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 3000d494: e7913103 ldr r3, [r1, r3, lsl #2] 3000d498: e081100c add r1, r1, ip 3000d49c: e2811004 add r1, r1, #4 3000d4a0: e1530001 cmp r3, r1 3000d4a4: 0affffec beq 3000d45c <_POSIX_signals_Clear_process_signals+0x24> 3000d4a8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED _POSIX_signals_Pending &= ~mask; if ( !_POSIX_signals_Pending ) _Thread_Do_post_task_switch_extension--; } _ISR_Enable( level ); } 3000d4ac: e12fff1e bx lr <== NOT EXECUTED 3000d4b0: 3001aeb8 .word 0x3001aeb8 3000d4b4: 3001b084 .word 0x3001b084 3000d4b8: 3001aa44 .word 0x3001aa44 3000d4bc: 3001b088 .word 0x3001b088 30006d9c <_Thread_queue_Enqueue_priority>: Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 30006d9c: e5913014 ldr r3, [r1, #20] Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 30006da0: e92d05f0 push {r4, r5, r6, r7, r8, sl} _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 ]; 30006da4: e1a0c323 lsr ip, r3, #6 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 30006da8: e281503c add r5, r1, #60 ; 0x3c 30006dac: e08cc08c add ip, ip, ip, lsl #1 block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 30006db0: e3130020 tst r3, #32 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 30006db4: e2814038 add r4, r1, #56 ; 0x38 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 30006db8: e5815038 str r5, [r1, #56] ; 0x38 the_chain->permanent_null = NULL; 30006dbc: e3a05000 mov r5, #0 30006dc0: e581503c str r5, [r1, #60] ; 0x3c the_chain->last = _Chain_Head(the_chain); 30006dc4: e5814040 str r4, [r1, #64] ; 0x40 _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 ]; 30006dc8: e080c10c add ip, r0, ip, lsl #2 block_state = the_thread_queue->state; 30006dcc: e5906038 ldr r6, [r0, #56] ; 0x38 30006dd0: 159fa178 ldrne sl, [pc, #376] ; 30006f50 <_Thread_queue_Enqueue_priority+0x1b4> if ( _Thread_queue_Is_reverse_search( priority ) ) 30006dd4: 1a00001c bne 30006e4c <_Thread_queue_Enqueue_priority+0xb0> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 30006dd8: e28ca004 add sl, ip, #4 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30006ddc: e10f8000 mrs r8, CPSR 30006de0: e3884080 orr r4, r8, #128 ; 0x80 30006de4: e129f004 msr CPSR_fc, r4 goto restart_reverse_search; restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; 30006de8: e59c4000 ldr r4, [ip] while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 30006dec: e154000a cmp r4, sl 30006df0: 1a000009 bne 30006e1c <_Thread_queue_Enqueue_priority+0x80> 30006df4: ea000052 b 30006f44 <_Thread_queue_Enqueue_priority+0x1a8> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( 30006df8: e10f7000 mrs r7, CPSR 30006dfc: e129f008 msr CPSR_fc, r8 30006e00: e129f007 msr CPSR_fc, r7 search_priority = search_thread->current_priority; if ( priority <= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { 30006e04: e5947010 ldr r7, [r4, #16] 30006e08: e1160007 tst r6, r7 30006e0c: 0a000033 beq 30006ee0 <_Thread_queue_Enqueue_priority+0x144> _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; 30006e10: e5944000 ldr r4, [r4] restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 30006e14: e154000a cmp r4, sl 30006e18: 0a000002 beq 30006e28 <_Thread_queue_Enqueue_priority+0x8c> search_priority = search_thread->current_priority; 30006e1c: e5945014 ldr r5, [r4, #20] if ( priority <= search_priority ) 30006e20: e1530005 cmp r3, r5 30006e24: 8afffff3 bhi 30006df8 <_Thread_queue_Enqueue_priority+0x5c> restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 30006e28: e1a06008 mov r6, r8 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 30006e2c: e590c030 ldr ip, [r0, #48] ; 0x30 30006e30: e35c0001 cmp ip, #1 30006e34: 0a00002b beq 30006ee8 <_Thread_queue_Enqueue_priority+0x14c> * 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; 30006e38: e5826000 str r6, [r2] return the_thread_queue->sync_state; 30006e3c: e1a0000c mov r0, ip } 30006e40: e8bd05f0 pop {r4, r5, r6, r7, r8, sl} 30006e44: e12fff1e bx lr static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30006e48: e129f008 msr CPSR_fc, r8 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 30006e4c: e5da5000 ldrb r5, [sl] 30006e50: e2855001 add r5, r5, #1 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30006e54: e10f8000 mrs r8, CPSR 30006e58: e3884080 orr r4, r8, #128 ; 0x80 30006e5c: e129f004 msr CPSR_fc, r4 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 30006e60: e59c4008 ldr r4, [ip, #8] while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 30006e64: e154000c cmp r4, ip 30006e68: 1a000009 bne 30006e94 <_Thread_queue_Enqueue_priority+0xf8> 30006e6c: ea00000b b 30006ea0 <_Thread_queue_Enqueue_priority+0x104> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( 30006e70: e10f7000 mrs r7, CPSR 30006e74: e129f008 msr CPSR_fc, r8 30006e78: e129f007 msr CPSR_fc, r7 search_priority = search_thread->current_priority; if ( priority >= search_priority ) break; #endif _ISR_Flash( level ); if ( !_States_Are_set( search_thread->current_state, block_state) ) { 30006e7c: e5947010 ldr r7, [r4, #16] 30006e80: e1160007 tst r6, r7 30006e84: 0affffef beq 30006e48 <_Thread_queue_Enqueue_priority+0xac> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 30006e88: e5944004 ldr r4, [r4, #4] restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 30006e8c: e154000c cmp r4, ip 30006e90: 0a000002 beq 30006ea0 <_Thread_queue_Enqueue_priority+0x104> search_priority = search_thread->current_priority; 30006e94: e5945014 ldr r5, [r4, #20] if ( priority >= search_priority ) 30006e98: e1530005 cmp r3, r5 30006e9c: 3afffff3 bcc 30006e70 <_Thread_queue_Enqueue_priority+0xd4> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 30006ea0: e590c030 ldr ip, [r0, #48] ; 0x30 restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 30006ea4: e1a06008 mov r6, r8 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 30006ea8: e35c0001 cmp ip, #1 30006eac: 1affffe1 bne 30006e38 <_Thread_queue_Enqueue_priority+0x9c> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 30006eb0: e1530005 cmp r3, r5 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 30006eb4: e3a03000 mov r3, #0 30006eb8: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) 30006ebc: 0a000016 beq 30006f1c <_Thread_queue_Enqueue_priority+0x180> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 30006ec0: e5943000 ldr r3, [r4] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 30006ec4: e8810018 stm r1, {r3, r4} search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 30006ec8: e5810044 str r0, [r1, #68] ; 0x44 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; 30006ecc: e5841000 str r1, [r4] next_node->previous = the_node; 30006ed0: e5831004 str r1, [r3, #4] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30006ed4: e129f008 msr CPSR_fc, r8 30006ed8: e3a00001 mov r0, #1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 30006edc: eaffffd7 b 30006e40 <_Thread_queue_Enqueue_priority+0xa4> 30006ee0: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED 30006ee4: eaffffbc b 30006ddc <_Thread_queue_Enqueue_priority+0x40> <== NOT EXECUTED THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 30006ee8: e1530005 cmp r3, r5 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 30006eec: e3a03000 mov r3, #0 30006ef0: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) 30006ef4: 0a000008 beq 30006f1c <_Thread_queue_Enqueue_priority+0x180> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 30006ef8: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 30006efc: e5814000 str r4, [r1] the_node->previous = previous_node; 30006f00: e5813004 str r3, [r1, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 30006f04: e5810044 str r0, [r1, #68] ; 0x44 previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; previous_node->next = the_node; 30006f08: e5831000 str r1, [r3] search_node->previous = the_node; 30006f0c: e5841004 str r1, [r4, #4] 30006f10: e129f008 msr CPSR_fc, r8 30006f14: e3a00001 mov r0, #1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 30006f18: eaffffc8 b 30006e40 <_Thread_queue_Enqueue_priority+0xa4> 30006f1c: e284403c add r4, r4, #60 ; 0x3c _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; equal_priority: /* add at end of priority group */ search_node = _Chain_Tail( &search_thread->Wait.Block2n ); previous_node = search_node->previous; 30006f20: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 30006f24: e5814000 str r4, [r1] the_node->previous = previous_node; 30006f28: e5813004 str r3, [r1, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 30006f2c: e5810044 str r0, [r1, #68] ; 0x44 previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; previous_node->next = the_node; 30006f30: e5831000 str r1, [r3] search_node->previous = the_node; 30006f34: e5841004 str r1, [r4, #4] 30006f38: e129f006 msr CPSR_fc, r6 30006f3c: e3a00001 mov r0, #1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 30006f40: eaffffbe b 30006e40 <_Thread_queue_Enqueue_priority+0xa4> restart_forward_search: search_priority = PRIORITY_MINIMUM - 1; _ISR_Disable( level ); search_thread = (Thread_Control *) header->first; while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 30006f44: e1a06008 mov r6, r8 30006f48: e3e05000 mvn r5, #0 30006f4c: eaffffb6 b 30006e2c <_Thread_queue_Enqueue_priority+0x90> 30006f50: 30019f58 .word 0x30019f58 30015490 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 30015490: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30015494: e24dd024 sub sp, sp, #36 ; 0x24 30015498: e1a04000 mov r4, r0 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 3001549c: e3a03000 mov r3, #0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 300154a0: e28d0018 add r0, sp, #24 300154a4: e28d700c add r7, sp, #12 300154a8: e280a004 add sl, r0, #4 300154ac: e2872004 add r2, r7, #4 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 300154b0: e58d301c str r3, [sp, #28] the_chain->last = _Chain_Head(the_chain); 300154b4: e58d0020 str r0, [sp, #32] RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 300154b8: e58d3010 str r3, [sp, #16] static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 300154bc: e2840040 add r0, r4, #64 ; 0x40 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 300154c0: e2843008 add r3, r4, #8 300154c4: e59f91ac ldr r9, [pc, #428] ; 30015678 <_Timer_server_Body+0x1e8> 300154c8: e59fb1ac ldr fp, [pc, #428] ; 3001567c <_Timer_server_Body+0x1ec> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 300154cc: e58d2000 str r2, [sp] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 300154d0: e58da018 str sl, [sp, #24] 300154d4: e58d200c str r2, [sp, #12] the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 300154d8: e58d7014 str r7, [sp, #20] */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 300154dc: e2846030 add r6, r4, #48 ; 0x30 /* * 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 ); 300154e0: e2848068 add r8, r4, #104 ; 0x68 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 300154e4: e98d0009 stmib sp, {r0, r3} { /* * Afterwards all timer inserts are directed to this chain and the interval * and TOD chains will be no more modified by other parties. */ ts->insert_chain = insert_chain; 300154e8: e28d2018 add r2, sp, #24 300154ec: e5842078 str r2, [r4, #120] ; 0x78 static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 300154f0: e5993000 ldr r3, [r9] /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 300154f4: e594103c ldr r1, [r4, #60] ; 0x3c watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 300154f8: e1a00006 mov r0, r6 300154fc: e0611003 rsb r1, r1, r3 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; 30015500: e584303c str r3, [r4, #60] ; 0x3c _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 30015504: e1a02007 mov r2, r7 30015508: eb0010f4 bl 300198e0 <_Watchdog_Adjust_to_chain> static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 3001550c: e59b5000 ldr r5, [fp] Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 30015510: e5941074 ldr r1, [r4, #116] ; 0x74 /* * 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 ) { 30015514: e1550001 cmp r5, r1 30015518: 8a000022 bhi 300155a8 <_Timer_server_Body+0x118> * TOD has been set forward. */ delta = snapshot - last_snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); } else if ( snapshot < last_snapshot ) { 3001551c: 3a000018 bcc 30015584 <_Timer_server_Body+0xf4> */ delta = last_snapshot - snapshot; _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); } watchdogs->last_snapshot = snapshot; 30015520: e5845074 str r5, [r4, #116] ; 0x74 } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 30015524: e5940078 ldr r0, [r4, #120] ; 0x78 30015528: eb00025b bl 30015e9c <_Chain_Get> if ( timer == NULL ) { 3001552c: e3500000 cmp r0, #0 30015530: 0a00000b beq 30015564 <_Timer_server_Body+0xd4> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 30015534: e5903038 ldr r3, [r0, #56] ; 0x38 30015538: e3530001 cmp r3, #1 3001553c: 0a000015 beq 30015598 <_Timer_server_Body+0x108> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 30015540: e3530003 cmp r3, #3 30015544: 1afffff6 bne 30015524 <_Timer_server_Body+0x94> _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 30015548: e2801010 add r1, r0, #16 3001554c: e1a00008 mov r0, r8 30015550: eb001111 bl 3001999c <_Watchdog_Insert> } static void _Timer_server_Process_insertions( Timer_server_Control *ts ) { while ( true ) { Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain ); 30015554: e5940078 ldr r0, [r4, #120] ; 0x78 30015558: eb00024f bl 30015e9c <_Chain_Get> if ( timer == NULL ) { 3001555c: e3500000 cmp r0, #0 30015560: 1afffff3 bne 30015534 <_Timer_server_Body+0xa4> static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30015564: e10f2000 mrs r2, CPSR 30015568: e3823080 orr r3, r2, #128 ; 0x80 3001556c: e129f003 msr CPSR_fc, r3 * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { 30015570: e59d3018 ldr r3, [sp, #24] 30015574: e15a0003 cmp sl, r3 30015578: 0a00000f beq 300155bc <_Timer_server_Body+0x12c> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 3001557c: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED 30015580: eaffffda b 300154f0 <_Timer_server_Body+0x60> <== 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 ); 30015584: e0652001 rsb r2, r5, r1 30015588: e1a00008 mov r0, r8 3001558c: e3a01001 mov r1, #1 30015590: eb0010a3 bl 30019824 <_Watchdog_Adjust> 30015594: eaffffe1 b 30015520 <_Timer_server_Body+0x90> Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 30015598: e2801010 add r1, r0, #16 3001559c: e1a00006 mov r0, r6 300155a0: eb0010fd bl 3001999c <_Watchdog_Insert> 300155a4: eaffffde b 30015524 <_Timer_server_Body+0x94> /* * 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 ); 300155a8: e0611005 rsb r1, r1, r5 300155ac: e1a00008 mov r0, r8 300155b0: e1a02007 mov r2, r7 300155b4: eb0010c9 bl 300198e0 <_Watchdog_Adjust_to_chain> 300155b8: eaffffd8 b 30015520 <_Timer_server_Body+0x90> */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { ts->insert_chain = NULL; 300155bc: e5840078 str r0, [r4, #120] ; 0x78 300155c0: e129f002 msr CPSR_fc, r2 _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 ) ) { 300155c4: e59d300c ldr r3, [sp, #12] 300155c8: e59d0000 ldr r0, [sp] 300155cc: e1500003 cmp r0, r3 300155d0: 159d5000 ldrne r5, [sp] 300155d4: 1a00000a bne 30015604 <_Timer_server_Body+0x174> 300155d8: ea000011 b 30015624 <_Timer_server_Body+0x194> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 300155dc: e5932000 ldr r2, [r3] * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { watchdog->state = WATCHDOG_INACTIVE; 300155e0: e3a00000 mov r0, #0 the_chain->first = new_first; 300155e4: e58d200c str r2, [sp, #12] 300155e8: e5830008 str r0, [r3, #8] new_first->previous = _Chain_Head(the_chain); 300155ec: e5827004 str r7, [r2, #4] 300155f0: e129f001 msr CPSR_fc, r1 /* * 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 ); 300155f4: e5930020 ldr r0, [r3, #32] 300155f8: e5931024 ldr r1, [r3, #36] ; 0x24 300155fc: e1a0e00f mov lr, pc 30015600: e593f01c ldr pc, [r3, #28] static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30015604: e10f1000 mrs r1, CPSR 30015608: e3813080 orr r3, r1, #128 ; 0x80 3001560c: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 30015610: e59d300c ldr r3, [sp, #12] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 30015614: e1550003 cmp r5, r3 30015618: 1affffef bne 300155dc <_Timer_server_Body+0x14c> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 3001561c: e129f001 msr CPSR_fc, r1 30015620: eaffffb0 b 300154e8 <_Timer_server_Body+0x58> 30015624: e59f0054 ldr r0, [pc, #84] ; 30015680 <_Timer_server_Body+0x1f0> } } else { ts->active = false; 30015628: e3a02000 mov r2, #0 3001562c: e5c4207c strb r2, [r4, #124] ; 0x7c 30015630: e5903000 ldr r3, [r0] 30015634: e2833001 add r3, r3, #1 30015638: e5803000 str r3, [r0] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 3001563c: e3a01008 mov r1, #8 30015640: e5940000 ldr r0, [r4] 30015644: eb000dfa bl 30018e34 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); 30015648: e1a00004 mov r0, r4 3001564c: ebffff63 bl 300153e0 <_Timer_server_Reset_interval_system_watchdog> _Timer_server_Reset_tod_system_watchdog( ts ); 30015650: e1a00004 mov r0, r4 30015654: ebffff77 bl 30015438 <_Timer_server_Reset_tod_system_watchdog> _Thread_Enable_dispatch(); 30015658: eb000b3c bl 30018350 <_Thread_Enable_dispatch> ts->active = true; 3001565c: e3a02001 mov r2, #1 30015660: e5c4207c strb r2, [r4, #124] ; 0x7c static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 30015664: e59d0008 ldr r0, [sp, #8] 30015668: eb001138 bl 30019b50 <_Watchdog_Remove> static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 3001566c: e59d0004 ldr r0, [sp, #4] 30015670: eb001136 bl 30019b50 <_Watchdog_Remove> 30015674: eaffff9b b 300154e8 <_Timer_server_Body+0x58> 30015678: 3003b784 .word 0x3003b784 3001567c: 3003b6b4 .word 0x3003b6b4 30015680: 3003b62c .word 0x3003b62c 30009854 <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) { 30009854: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30009858: e1a04000 mov r4, r0 3000985c: e1a05002 mov r5, r2 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30009860: e10f3000 mrs r3, CPSR 30009864: e3832080 orr r2, r3, #128 ; 0x80 30009868: e129f002 msr CPSR_fc, r2 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 3000986c: e1a07000 mov r7, r0 30009870: e4972004 ldr r2, [r7], #4 * hence the compiler must not assume *header to remain * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { 30009874: e1520007 cmp r2, r7 30009878: 0a000018 beq 300098e0 <_Watchdog_Adjust+0x8c> switch ( direction ) { 3000987c: e3510000 cmp r1, #0 30009880: 1a000018 bne 300098e8 <_Watchdog_Adjust+0x94> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 30009884: e3550000 cmp r5, #0 30009888: 0a000014 beq 300098e0 <_Watchdog_Adjust+0x8c> if ( units < _Watchdog_First( header )->delta_interval ) { 3000988c: e5926010 ldr r6, [r2, #16] 30009890: e1550006 cmp r5, r6 _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 30009894: 23a08001 movcs r8, #1 case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { 30009898: 2a000005 bcs 300098b4 <_Watchdog_Adjust+0x60> 3000989c: ea000018 b 30009904 <_Watchdog_Adjust+0xb0> <== NOT EXECUTED switch ( direction ) { case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { 300098a0: e0555006 subs r5, r5, r6 300098a4: 0a00000d beq 300098e0 <_Watchdog_Adjust+0x8c> if ( units < _Watchdog_First( header )->delta_interval ) { 300098a8: e5926010 ldr r6, [r2, #16] 300098ac: e1560005 cmp r6, r5 300098b0: 8a000013 bhi 30009904 <_Watchdog_Adjust+0xb0> _Watchdog_First( header )->delta_interval -= units; break; } else { units -= _Watchdog_First( header )->delta_interval; _Watchdog_First( header )->delta_interval = 1; 300098b4: e5828010 str r8, [r2, #16] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 300098b8: e129f003 msr CPSR_fc, r3 _ISR_Enable( level ); _Watchdog_Tickle( header ); 300098bc: e1a00004 mov r0, r4 300098c0: eb0000aa bl 30009b70 <_Watchdog_Tickle> static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300098c4: e10f3000 mrs r3, CPSR 300098c8: e3832080 orr r2, r3, #128 ; 0x80 300098cc: e129f002 msr CPSR_fc, r2 300098d0: e5941000 ldr r1, [r4] _ISR_Disable( level ); if ( _Chain_Is_empty( header ) ) 300098d4: e1570001 cmp r7, r1 RTEMS_INLINE_ROUTINE Watchdog_Control *_Watchdog_First( Chain_Control *header ) { return ( (Watchdog_Control *) header->first ); 300098d8: e1a02001 mov r2, r1 300098dc: 1affffef bne 300098a0 <_Watchdog_Adjust+0x4c> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 300098e0: e129f003 msr CPSR_fc, r3 } } _ISR_Enable( level ); } 300098e4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} * unmodified across that call. * * Till Straumann, 7/2003 */ if ( !_Chain_Is_empty( header ) ) { switch ( direction ) { 300098e8: e3510001 cmp r1, #1 300098ec: 1afffffb bne 300098e0 <_Watchdog_Adjust+0x8c> case WATCHDOG_BACKWARD: _Watchdog_First( header )->delta_interval += units; 300098f0: e5921010 ldr r1, [r2, #16] 300098f4: e0815005 add r5, r1, r5 300098f8: e5825010 str r5, [r2, #16] 300098fc: e129f003 msr CPSR_fc, r3 } } _ISR_Enable( level ); } 30009900: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} _Watchdog_First( header )->delta_interval += units; break; case WATCHDOG_FORWARD: while ( units ) { if ( units < _Watchdog_First( header )->delta_interval ) { _Watchdog_First( header )->delta_interval -= units; 30009904: e0655006 rsb r5, r5, r6 30009908: e5825010 str r5, [r2, #16] break; 3000990c: eafffff3 b 300098e0 <_Watchdog_Adjust+0x8c> 30018748 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 30018748: e24dd004 sub sp, sp, #4 3001874c: e58d0000 str r0, [sp] 30018750: eb0001f3 bl 30018f24 <_fini> * We need to do the exit processing on the global reentrancy structure. * This has already been done on the per task reentrancy structure * associated with this task. */ libc_wrapup(); 30018754: ebffffe1 bl 300186e0 rtems_shutdown_executive(status); 30018758: e59d0000 ldr r0, [sp] 3001875c: eb00003e bl 3001885c 30018760: eafffffe b 30018760 <_exit+0x18> <== NOT EXECUTED 30038888 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 30038888: e1a00001 mov r0, r1 <== NOT EXECUTED 3003888c: e1a01002 mov r1, r2 <== NOT EXECUTED 30038890: e1a02003 mov r2, r3 <== NOT EXECUTED 30038894: eaffff82 b 300386a4 <== NOT EXECUTED 3000c164 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 3000c164: e3a00001 mov r0, #1 <== NOT EXECUTED 3000c168: e12fff1e bx lr <== NOT EXECUTED 30009350 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 30009350: eaffffe5 b 300092ec <== NOT EXECUTED 300266c8 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 300266c8: e1a00001 mov r0, r1 <== NOT EXECUTED 300266cc: e1a01002 mov r1, r2 <== NOT EXECUTED 300266d0: eaffff65 b 3002646c <== NOT EXECUTED 30026914 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 30026914: e1a00001 mov r0, r1 <== NOT EXECUTED 30026918: e1a01002 mov r1, r2 <== NOT EXECUTED 3002691c: eaffffc2 b 3002682c <== NOT EXECUTED 30018840 <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 30018840: e1a00001 mov r0, r1 <== NOT EXECUTED 30018844: e1a01002 mov r1, r2 <== NOT EXECUTED 30018848: ea00000e b 30018888 <== NOT EXECUTED 30058358 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 30058358: e92d45f0 push {r4, r5, r6, r7, r8, sl, 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 ); 3005835c: e1a00001 mov r0, r1 <== NOT EXECUTED int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 30058360: e24dd044 sub sp, sp, #68 ; 0x44 <== NOT EXECUTED 30058364: e1a05001 mov r5, r1 <== NOT EXECUTED 30058368: e1a06002 mov r6, 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 ); 3005836c: ebfeb471 bl 30005538 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 30058370: e2507000 subs r7, r0, #0 <== NOT EXECUTED 30058374: 1a0000ec bne 3005872c <_rename_r+0x3d4> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 30058378: e5d53000 ldrb r3, [r5] <== NOT EXECUTED 3005837c: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED 30058380: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED 30058384: 1a000063 bne 30058518 <_rename_r+0x1c0> <== NOT EXECUTED 30058388: e59f33d0 ldr r3, [pc, #976] ; 30058760 <_rename_r+0x408> <== NOT EXECUTED 3005838c: e28d4018 add r4, sp, #24 <== NOT EXECUTED 30058390: e593c000 ldr ip, [r3] <== NOT EXECUTED 30058394: e1a0a004 mov sl, r4 <== NOT EXECUTED 30058398: e28cc018 add ip, ip, #24 <== NOT EXECUTED 3005839c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 300583a0: e8aa000f stmia sl!, {r0, r1, r2, r3} <== NOT EXECUTED 300583a4: e59c2000 ldr r2, [ip] <== NOT EXECUTED 300583a8: e3a08000 mov r8, #0 <== NOT EXECUTED 300583ac: e58a2000 str r2, [sl] <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 300583b0: e28dc02c add ip, sp, #44 ; 0x2c <== NOT EXECUTED 300583b4: e1a0e004 mov lr, r4 <== NOT EXECUTED 300583b8: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 300583bc: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 300583c0: e59e3000 ldr r3, [lr] <== NOT EXECUTED name = old + old_parent_pathlen; 300583c4: e0855007 add r5, r5, r7 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 300583c8: e58c3000 str r3, [ip] <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 300583cc: e1a00005 mov r0, r5 <== 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; 300583d0: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 300583d4: ebffb3db bl 30045348 <== NOT EXECUTED 300583d8: e1a01000 mov r1, r0 <== NOT EXECUTED 300583dc: e1a00005 mov r0, r5 <== NOT EXECUTED 300583e0: ebfeb440 bl 300054e8 <== NOT EXECUTED 300583e4: e0855000 add r5, r5, r0 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 300583e8: e1a00005 mov r0, r5 <== 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 ) ); 300583ec: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 300583f0: ebffb3d4 bl 30045348 <== NOT EXECUTED 300583f4: e28d702c add r7, sp, #44 ; 0x2c <== NOT EXECUTED 300583f8: e3a0c000 mov ip, #0 <== NOT EXECUTED 300583fc: e1a01000 mov r1, r0 <== NOT EXECUTED 30058400: e1a0200c mov r2, ip <== NOT EXECUTED 30058404: e1a00005 mov r0, r5 <== NOT EXECUTED 30058408: e1a03007 mov r3, r7 <== NOT EXECUTED 3005840c: e58dc000 str ip, [sp] <== NOT EXECUTED 30058410: ebfeb462 bl 300055a0 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 30058414: e2505000 subs r5, r0, #0 <== NOT EXECUTED 30058418: 1a00007b bne 3005860c <_rename_r+0x2b4> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 3005841c: e5d63000 ldrb r3, [r6] <== NOT EXECUTED 30058420: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED 30058424: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED 30058428: 13a0e000 movne lr, #0 <== NOT EXECUTED 3005842c: 03a0e001 moveq lr, #1 <== NOT EXECUTED 30058430: 1a000045 bne 3005854c <_rename_r+0x1f4> <== NOT EXECUTED 30058434: e59f3324 ldr r3, [pc, #804] ; 30058760 <_rename_r+0x408> <== NOT EXECUTED 30058438: e28d5004 add r5, sp, #4 <== NOT EXECUTED 3005843c: e593c000 ldr ip, [r3] <== NOT EXECUTED 30058440: e3a0e001 mov lr, #1 <== NOT EXECUTED 30058444: e28cc018 add ip, ip, #24 <== NOT EXECUTED 30058448: e1a0a005 mov sl, r5 <== NOT EXECUTED 3005844c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30058450: e8aa000f stmia sl!, {r0, r1, r2, r3} <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 30058454: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 30058458: e59c2000 ldr r2, [ip] <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 3005845c: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 30058460: e58a2000 str r2, [sl] <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 30058464: e3530000 cmp r3, #0 <== NOT EXECUTED 30058468: 0a000098 beq 300586d0 <_rename_r+0x378> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); 3005846c: e086000e add r0, r6, lr <== NOT EXECUTED 30058470: e1a01005 mov r1, r5 <== NOT EXECUTED 30058474: e28d2040 add r2, sp, #64 ; 0x40 <== NOT EXECUTED 30058478: e1a0e00f mov lr, pc <== NOT EXECUTED 3005847c: e12fff13 bx r3 <== NOT EXECUTED if ( result != 0 ) { 30058480: e2506000 subs r6, r0, #0 <== NOT EXECUTED 30058484: 1a00006e bne 30058644 <_rename_r+0x2ec> <== 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 ) { 30058488: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED 3005848c: e59d2028 ldr r2, [sp, #40] ; 0x28 <== NOT EXECUTED 30058490: e1520003 cmp r2, r3 <== NOT EXECUTED 30058494: 1a00003d bne 30058590 <_rename_r+0x238> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { 30058498: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 3005849c: e593c040 ldr ip, [r3, #64] ; 0x40 <== NOT EXECUTED 300584a0: e35c0000 cmp ip, #0 <== NOT EXECUTED 300584a4: 0a000084 beq 300586bc <_rename_r+0x364> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 300584a8: e59d3040 ldr r3, [sp, #64] ; 0x40 <== NOT EXECUTED 300584ac: e1a00004 mov r0, r4 <== NOT EXECUTED 300584b0: e1a01007 mov r1, r7 <== NOT EXECUTED 300584b4: e1a02005 mov r2, r5 <== NOT EXECUTED 300584b8: e1a0e00f mov lr, pc <== NOT EXECUTED 300584bc: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 300584c0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 300584c4: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 300584c8: e3530000 cmp r3, #0 <== NOT EXECUTED 300584cc: 0a000004 beq 300584e4 <_rename_r+0x18c> <== NOT EXECUTED 300584d0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300584d4: e3530000 cmp r3, #0 <== NOT EXECUTED 300584d8: 11a00005 movne r0, r5 <== NOT EXECUTED 300584dc: 11a0e00f movne lr, pc <== NOT EXECUTED 300584e0: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 300584e4: e3580000 cmp r8, #0 <== NOT EXECUTED 300584e8: 1a00001e bne 30058568 <_rename_r+0x210> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); rtems_filesystem_freenode( &old_loc ); 300584ec: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 300584f0: e3530000 cmp r3, #0 <== NOT EXECUTED 300584f4: 0a000004 beq 3005850c <_rename_r+0x1b4> <== NOT EXECUTED 300584f8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300584fc: e3530000 cmp r3, #0 <== NOT EXECUTED 30058500: 11a00007 movne r0, r7 <== NOT EXECUTED 30058504: 11a0e00f movne lr, pc <== NOT EXECUTED 30058508: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3005850c: e1a00006 mov r0, r6 <== NOT EXECUTED 30058510: e28dd044 add sp, sp, #68 ; 0x44 <== NOT EXECUTED 30058514: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED */ old_parent_pathlen = rtems_filesystem_dirname ( old ); if ( old_parent_pathlen == 0 ) rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 30058518: e3530000 cmp r3, #0 <== NOT EXECUTED 3005851c: 0affff99 beq 30058388 <_rename_r+0x30> <== NOT EXECUTED 30058520: e59f3238 ldr r3, [pc, #568] ; 30058760 <_rename_r+0x408> <== NOT EXECUTED 30058524: e28d4018 add r4, sp, #24 <== NOT EXECUTED 30058528: e593c000 ldr ip, [r3] <== NOT EXECUTED 3005852c: e1a0e004 mov lr, r4 <== NOT EXECUTED 30058530: e28cc004 add ip, ip, #4 <== NOT EXECUTED 30058534: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30058538: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 3005853c: e59c2000 ldr r2, [ip] <== NOT EXECUTED 30058540: e1a08007 mov r8, r7 <== NOT EXECUTED 30058544: e58e2000 str r2, [lr] <== NOT EXECUTED 30058548: eaffff98 b 300583b0 <_rename_r+0x58> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 3005854c: e3530000 cmp r3, #0 <== NOT EXECUTED 30058550: 0affffb7 beq 30058434 <_rename_r+0xdc> <== NOT EXECUTED 30058554: e59f3204 ldr r3, [pc, #516] ; 30058760 <_rename_r+0x408> <== NOT EXECUTED 30058558: e28d5004 add r5, sp, #4 <== NOT EXECUTED 3005855c: e593c000 ldr ip, [r3] <== NOT EXECUTED 30058560: e28cc004 add ip, ip, #4 <== NOT EXECUTED 30058564: eaffffb7 b 30058448 <_rename_r+0xf0> <== NOT EXECUTED result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); rtems_filesystem_freenode( &new_parent_loc ); if ( free_old_parentloc ) rtems_filesystem_freenode( &old_parent_loc ); 30058568: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 3005856c: e3530000 cmp r3, #0 <== NOT EXECUTED 30058570: 0affffdd beq 300584ec <_rename_r+0x194> <== NOT EXECUTED 30058574: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30058578: e3530000 cmp r3, #0 <== NOT EXECUTED 3005857c: 0affffda beq 300584ec <_rename_r+0x194> <== NOT EXECUTED 30058580: e1a00004 mov r0, r4 <== NOT EXECUTED 30058584: e1a0e00f mov lr, pc <== NOT EXECUTED 30058588: e12fff13 bx r3 <== NOT EXECUTED 3005858c: eaffffd6 b 300584ec <_rename_r+0x194> <== 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 ) { rtems_filesystem_freenode( &new_parent_loc ); 30058590: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30058594: e3530000 cmp r3, #0 <== NOT EXECUTED 30058598: 0a000004 beq 300585b0 <_rename_r+0x258> <== NOT EXECUTED 3005859c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300585a0: e3530000 cmp r3, #0 <== NOT EXECUTED 300585a4: 11a00005 movne r0, r5 <== NOT EXECUTED 300585a8: 11a0e00f movne lr, pc <== NOT EXECUTED 300585ac: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 300585b0: e3580000 cmp r8, #0 <== NOT EXECUTED 300585b4: 0a000007 beq 300585d8 <_rename_r+0x280> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 300585b8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 300585bc: e3530000 cmp r3, #0 <== NOT EXECUTED 300585c0: 0a000004 beq 300585d8 <_rename_r+0x280> <== NOT EXECUTED 300585c4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300585c8: e3530000 cmp r3, #0 <== NOT EXECUTED 300585cc: 11a00004 movne r0, r4 <== NOT EXECUTED 300585d0: 11a0e00f movne lr, pc <== NOT EXECUTED 300585d4: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 300585d8: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 300585dc: e3530000 cmp r3, #0 <== NOT EXECUTED 300585e0: 0a000004 beq 300585f8 <_rename_r+0x2a0> <== NOT EXECUTED 300585e4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300585e8: e3530000 cmp r3, #0 <== NOT EXECUTED 300585ec: 11a00007 movne r0, r7 <== NOT EXECUTED 300585f0: 11a0e00f movne lr, pc <== NOT EXECUTED 300585f4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 300585f8: ebff98c7 bl 3003e91c <__errno> <== NOT EXECUTED 300585fc: e3a03012 mov r3, #18 <== NOT EXECUTED 30058600: e5803000 str r3, [r0] <== NOT EXECUTED 30058604: e3e06000 mvn r6, #0 <== NOT EXECUTED 30058608: eaffffbf b 3005850c <_rename_r+0x1b4> <== 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 ) 3005860c: e3580000 cmp r8, #0 <== NOT EXECUTED 30058610: 0a000007 beq 30058634 <_rename_r+0x2dc> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 30058614: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30058618: e3530000 cmp r3, #0 <== NOT EXECUTED 3005861c: 0a000004 beq 30058634 <_rename_r+0x2dc> <== NOT EXECUTED 30058620: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30058624: e3530000 cmp r3, #0 <== NOT EXECUTED 30058628: 11a00004 movne r0, r4 <== NOT EXECUTED 3005862c: 11a0e00f movne lr, pc <== NOT EXECUTED 30058630: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 30058634: ebff98b8 bl 3003e91c <__errno> <== NOT EXECUTED 30058638: e3e06000 mvn r6, #0 <== NOT EXECUTED 3005863c: e5805000 str r5, [r0] <== NOT EXECUTED 30058640: eaffffb1 b 3005850c <_rename_r+0x1b4> <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*new_parent_loc.ops->evalformake_h)( &new[i], &new_parent_loc, &name ); if ( result != 0 ) { rtems_filesystem_freenode( &new_parent_loc ); 30058644: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30058648: e3530000 cmp r3, #0 <== NOT EXECUTED 3005864c: 0a000004 beq 30058664 <_rename_r+0x30c> <== NOT EXECUTED 30058650: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30058654: e3530000 cmp r3, #0 <== NOT EXECUTED 30058658: 11a00005 movne r0, r5 <== NOT EXECUTED 3005865c: 11a0e00f movne lr, pc <== NOT EXECUTED 30058660: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 30058664: e3580000 cmp r8, #0 <== NOT EXECUTED 30058668: 0a000007 beq 3005868c <_rename_r+0x334> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 3005866c: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30058670: e3530000 cmp r3, #0 <== NOT EXECUTED 30058674: 0a000004 beq 3005868c <_rename_r+0x334> <== NOT EXECUTED 30058678: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3005867c: e3530000 cmp r3, #0 <== NOT EXECUTED 30058680: 11a00004 movne r0, r4 <== NOT EXECUTED 30058684: 11a0e00f movne lr, pc <== NOT EXECUTED 30058688: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 3005868c: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 30058690: e3530000 cmp r3, #0 <== NOT EXECUTED 30058694: 0a000004 beq 300586ac <_rename_r+0x354> <== NOT EXECUTED 30058698: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3005869c: e3530000 cmp r3, #0 <== NOT EXECUTED 300586a0: 11a00007 movne r0, r7 <== NOT EXECUTED 300586a4: 11a0e00f movne lr, pc <== NOT EXECUTED 300586a8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 300586ac: ebff989a bl 3003e91c <__errno> <== NOT EXECUTED 300586b0: e5806000 str r6, [r0] <== NOT EXECUTED 300586b4: e3e06000 mvn r6, #0 <== NOT EXECUTED 300586b8: eaffff93 b 3005850c <_rename_r+0x1b4> <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !new_parent_loc.ops->rename_h ) { rtems_filesystem_freenode( &new_parent_loc ); 300586bc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300586c0: e3530000 cmp r3, #0 <== NOT EXECUTED 300586c4: 11a00005 movne r0, r5 <== NOT EXECUTED 300586c8: 11a0e00f movne lr, pc <== NOT EXECUTED 300586cc: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 300586d0: e3580000 cmp r8, #0 <== NOT EXECUTED 300586d4: 0a000007 beq 300586f8 <_rename_r+0x3a0> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 300586d8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 300586dc: e3530000 cmp r3, #0 <== NOT EXECUTED 300586e0: 0a000004 beq 300586f8 <_rename_r+0x3a0> <== NOT EXECUTED 300586e4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300586e8: e3530000 cmp r3, #0 <== NOT EXECUTED 300586ec: 11a00004 movne r0, r4 <== NOT EXECUTED 300586f0: 11a0e00f movne lr, pc <== NOT EXECUTED 300586f4: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 300586f8: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 300586fc: e3530000 cmp r3, #0 <== NOT EXECUTED 30058700: 0a000004 beq 30058718 <_rename_r+0x3c0> <== NOT EXECUTED 30058704: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30058708: e3530000 cmp r3, #0 <== NOT EXECUTED 3005870c: 11a00007 movne r0, r7 <== NOT EXECUTED 30058710: 11a0e00f movne lr, pc <== NOT EXECUTED 30058714: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30058718: ebff987f bl 3003e91c <__errno> <== NOT EXECUTED 3005871c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30058720: e5803000 str r3, [r0] <== NOT EXECUTED 30058724: e3e06000 mvn r6, #0 <== NOT EXECUTED 30058728: eaffff77 b 3005850c <_rename_r+0x1b4> <== 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, 3005872c: e28d4018 add r4, sp, #24 <== NOT EXECUTED 30058730: e3a0c000 mov ip, #0 <== NOT EXECUTED 30058734: e1a00005 mov r0, r5 <== NOT EXECUTED 30058738: e1a01007 mov r1, r7 <== NOT EXECUTED 3005873c: e3a02002 mov r2, #2 <== NOT EXECUTED 30058740: e1a03004 mov r3, r4 <== NOT EXECUTED 30058744: e58dc000 str ip, [sp] <== NOT EXECUTED 30058748: ebfeb3d0 bl 30005690 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 3005874c: e3500000 cmp r0, #0 <== NOT EXECUTED 30058750: 03a08001 moveq r8, #1 <== NOT EXECUTED 30058754: 0affff15 beq 300583b0 <_rename_r+0x58> <== 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 ); rtems_set_errno_and_return_minus_one( result ); 30058758: e3e06000 mvn r6, #0 <== NOT EXECUTED 3005875c: eaffff6a b 3005850c <_rename_r+0x1b4> <== NOT EXECUTED 30058760: 30062da8 .word 0x30062da8 30006f50 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 30006f50: e1a00001 mov r0, r1 <== NOT EXECUTED 30006f54: e1a01002 mov r1, r2 <== NOT EXECUTED 30006f58: eaffffc2 b 30006e68 <== NOT EXECUTED 3000d168 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 3000d168: e1a00001 mov r0, r1 <== NOT EXECUTED 3000d16c: eaffff5a b 3000cedc <== NOT EXECUTED 300250fc : #include int chdir( const char *pathname ) { 300250fc: e92d4030 push {r4, r5, lr} 30025100: e24dd018 sub sp, sp, #24 30025104: e1a05000 mov r5, r0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 30025108: eb00808e bl 30045348 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 3002510c: e28d4004 add r4, sp, #4 30025110: e3a0c001 mov ip, #1 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 30025114: e1a01000 mov r1, r0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 30025118: e1a0200c mov r2, ip 3002511c: e1a00005 mov r0, r5 30025120: e1a03004 mov r3, r4 30025124: e58dc000 str ip, [sp] 30025128: ebff8158 bl 30005690 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 3002512c: e3500000 cmp r0, #0 30025130: 1a000024 bne 300251c8 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 30025134: e59d2010 ldr r2, [sp, #16] 30025138: e5923010 ldr r3, [r2, #16] 3002513c: e3530000 cmp r3, #0 30025140: 0a000018 beq 300251a8 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 30025144: e1a00004 mov r0, r4 30025148: e1a0e00f mov lr, pc 3002514c: e12fff13 bx r3 30025150: e3500001 cmp r0, #1 30025154: 1a00001d bne 300251d0 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTDIR ); } rtems_filesystem_freenode( &rtems_filesystem_current ); 30025158: e59f50a4 ldr r5, [pc, #164] ; 30025204 3002515c: e595c000 ldr ip, [r5] 30025160: e59c3010 ldr r3, [ip, #16] 30025164: e3530000 cmp r3, #0 30025168: 0a000006 beq 30025188 3002516c: e593301c ldr r3, [r3, #28] 30025170: e3530000 cmp r3, #0 30025174: 0a000003 beq 30025188 30025178: e28c0004 add r0, ip, #4 3002517c: e1a0e00f mov lr, pc 30025180: e12fff13 bx r3 30025184: e595c000 ldr ip, [r5] rtems_filesystem_current = loc; 30025188: e28cc004 add ip, ip, #4 3002518c: e8b4000f ldm r4!, {r0, r1, r2, r3} 30025190: e8ac000f stmia ip!, {r0, r1, r2, r3} 30025194: e5943000 ldr r3, [r4] 30025198: e3a00000 mov r0, #0 3002519c: e58c3000 str r3, [ip] return 0; } 300251a0: e28dd018 add sp, sp, #24 300251a4: e8bd8030 pop {r4, r5, pc} /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 300251a8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 300251ac: e3530000 cmp r3, #0 <== NOT EXECUTED 300251b0: 11a00004 movne r0, r4 <== NOT EXECUTED 300251b4: 11a0e00f movne lr, pc <== NOT EXECUTED 300251b8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300251bc: eb0065d6 bl 3003e91c <__errno> <== NOT EXECUTED 300251c0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300251c4: e5803000 str r3, [r0] <== NOT EXECUTED 300251c8: e3e00000 mvn r0, #0 300251cc: eafffff3 b 300251a0 } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); 300251d0: e59d3010 ldr r3, [sp, #16] 300251d4: e3530000 cmp r3, #0 300251d8: 0a000004 beq 300251f0 300251dc: e593301c ldr r3, [r3, #28] 300251e0: e3530000 cmp r3, #0 300251e4: 11a00004 movne r0, r4 300251e8: 11a0e00f movne lr, pc 300251ec: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( ENOTDIR ); 300251f0: eb0065c9 bl 3003e91c <__errno> 300251f4: e3a03014 mov r3, #20 300251f8: e5803000 str r3, [r0] 300251fc: e3e00000 mvn r0, #0 30025200: eaffffe6 b 300251a0 30025204: 30062da8 .word 0x30062da8 30005348 : int chmod( const char *path, mode_t mode ) { 30005348: e92d4070 push {r4, r5, r6, lr} 3000534c: e24dd018 sub sp, sp, #24 30005350: e1a05001 mov r5, r1 30005354: e1a06000 mov r6, r0 int status; rtems_filesystem_location_info_t loc; int result; status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true ); 30005358: eb00fffa bl 30045348 3000535c: e28d4004 add r4, sp, #4 30005360: e1a01000 mov r1, r0 30005364: e3a0c001 mov ip, #1 30005368: e1a00006 mov r0, r6 3000536c: e3a02000 mov r2, #0 30005370: e1a03004 mov r3, r4 30005374: e58dc000 str ip, [sp] 30005378: eb0000c4 bl 30005690 if ( status != 0 ) 3000537c: e3500000 cmp r0, #0 30005380: 1a000020 bne 30005408 return -1; if ( !loc.handlers ){ 30005384: e59d300c ldr r3, [sp, #12] 30005388: e3530000 cmp r3, #0 3000538c: 0a000012 beq 300053dc rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EBADF ); } if ( !loc.handlers->fchmod_h ){ 30005390: e593301c ldr r3, [r3, #28] 30005394: e3530000 cmp r3, #0 30005398: 0a00001c beq 30005410 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 3000539c: e1a01005 mov r1, r5 300053a0: e1a00004 mov r0, r4 300053a4: e1a0e00f mov lr, pc 300053a8: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 300053ac: e59d3010 ldr r3, [sp, #16] if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->fchmod_h)( &loc, mode ); 300053b0: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 300053b4: e3530000 cmp r3, #0 300053b8: 0a000004 beq 300053d0 300053bc: e593301c ldr r3, [r3, #28] 300053c0: e3530000 cmp r3, #0 300053c4: 11a00004 movne r0, r4 300053c8: 11a0e00f movne lr, pc 300053cc: 112fff13 bxne r3 return result; } 300053d0: e1a00005 mov r0, r5 300053d4: e28dd018 add sp, sp, #24 300053d8: e8bd8070 pop {r4, r5, r6, pc} status = rtems_filesystem_evaluate_path( path, strlen( path ), 0, &loc, true ); if ( status != 0 ) return -1; if ( !loc.handlers ){ rtems_filesystem_freenode( &loc ); 300053dc: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 300053e0: e3530000 cmp r3, #0 <== NOT EXECUTED 300053e4: 0a000004 beq 300053fc <== NOT EXECUTED 300053e8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300053ec: e3530000 cmp r3, #0 <== NOT EXECUTED 300053f0: 11a00004 movne r0, r4 <== NOT EXECUTED 300053f4: 11a0e00f movne lr, pc <== NOT EXECUTED 300053f8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 300053fc: eb00e546 bl 3003e91c <__errno> <== NOT EXECUTED 30005400: e3a03009 mov r3, #9 <== NOT EXECUTED 30005404: e5803000 str r3, [r0] <== NOT EXECUTED 30005408: e3e05000 mvn r5, #0 3000540c: eaffffef b 300053d0 } if ( !loc.handlers->fchmod_h ){ rtems_filesystem_freenode( &loc ); 30005410: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30005414: e3530000 cmp r3, #0 <== NOT EXECUTED 30005418: 0a000004 beq 30005430 <== NOT EXECUTED 3000541c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30005420: e3530000 cmp r3, #0 <== NOT EXECUTED 30005424: 11a00004 movne r0, r4 <== NOT EXECUTED 30005428: 11a0e00f movne lr, pc <== NOT EXECUTED 3000542c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30005430: eb00e539 bl 3003e91c <__errno> <== NOT EXECUTED 30005434: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30005438: e5803000 str r3, [r0] <== NOT EXECUTED 3000543c: e3e05000 mvn r5, #0 <== NOT EXECUTED 30005440: eaffffe2 b 300053d0 <== NOT EXECUTED 30025208 : int chown( const char *path, uid_t owner, gid_t group ) { 30025208: e92d40f0 push {r4, r5, r6, r7, lr} 3002520c: e1a01801 lsl r1, r1, #16 30025210: e24dd018 sub sp, sp, #24 30025214: e1a02802 lsl r2, r2, #16 30025218: e1a06821 lsr r6, r1, #16 3002521c: e1a05822 lsr r5, r2, #16 30025220: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) 30025224: eb008047 bl 30045348 30025228: e28d4004 add r4, sp, #4 3002522c: e1a01000 mov r1, r0 30025230: e3a0c001 mov ip, #1 30025234: e1a00007 mov r0, r7 30025238: e3a02000 mov r2, #0 3002523c: e1a03004 mov r3, r4 30025240: e58dc000 str ip, [sp] 30025244: ebff8111 bl 30005690 30025248: e3500000 cmp r0, #0 3002524c: 1a00001c bne 300252c4 return -1; if ( !loc.ops->chown_h ) { 30025250: e59d2010 ldr r2, [sp, #16] 30025254: e5923018 ldr r3, [r2, #24] 30025258: e3530000 cmp r3, #0 3002525c: 0a000010 beq 300252a4 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 30025260: e1a02005 mov r2, r5 30025264: e1a01006 mov r1, r6 30025268: e1a00004 mov r0, r4 3002526c: e1a0e00f mov lr, pc 30025270: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 30025274: e59d3010 ldr r3, [sp, #16] if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->chown_h)( &loc, owner, group ); 30025278: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 3002527c: e3530000 cmp r3, #0 30025280: 0a000004 beq 30025298 30025284: e593301c ldr r3, [r3, #28] 30025288: e3530000 cmp r3, #0 3002528c: 11a00004 movne r0, r4 30025290: 11a0e00f movne lr, pc 30025294: 112fff13 bxne r3 return result; } 30025298: e1a00005 mov r0, r5 3002529c: e28dd018 add sp, sp, #24 300252a0: e8bd80f0 pop {r4, r5, r6, r7, pc} if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) return -1; if ( !loc.ops->chown_h ) { rtems_filesystem_freenode( &loc ); 300252a4: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 300252a8: e3530000 cmp r3, #0 <== NOT EXECUTED 300252ac: 11a00004 movne r0, r4 <== NOT EXECUTED 300252b0: 11a0e00f movne lr, pc <== NOT EXECUTED 300252b4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300252b8: eb006597 bl 3003e91c <__errno> <== NOT EXECUTED 300252bc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300252c0: e5803000 str r3, [r0] <== NOT EXECUTED 300252c4: e3e05000 mvn r5, #0 300252c8: eafffff2 b 30025298 300252cc : #include int chroot( const char *pathname ) { 300252cc: e92d4070 push {r4, r5, r6, lr} 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) { 300252d0: e59f50d8 ldr r5, [pc, #216] ; 300253b0 300252d4: e59f30d8 ldr r3, [pc, #216] ; 300253b4 300252d8: e5954000 ldr r4, [r5] #include int chroot( const char *pathname ) { 300252dc: e24dd018 sub sp, sp, #24 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) { 300252e0: e1540003 cmp r4, r3 #include int chroot( const char *pathname ) { 300252e4: e1a06000 mov r6, r0 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) { 300252e8: 0a000020 beq 30025370 rtems_libio_set_private_env(); /* try to set a new private env*/ if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = chdir(pathname); 300252ec: e1a00006 mov r0, r6 300252f0: ebffff81 bl 300250fc if (result) { 300252f4: e250c000 subs ip, r0, #0 300252f8: 1a000025 bne 30025394 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 300252fc: e28d4004 add r4, sp, #4 30025300: e1a0200c mov r2, ip 30025304: e59f00ac ldr r0, [pc, #172] ; 300253b8 30025308: e3a01001 mov r1, #1 3002530c: e1a03004 mov r3, r4 30025310: e58dc000 str ip, [sp] 30025314: ebff80dd bl 30005690 30025318: e3500000 cmp r0, #0 3002531c: 1a00001c bne 30025394 /* 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); 30025320: e595c000 ldr ip, [r5] 30025324: e59c3024 ldr r3, [ip, #36] ; 0x24 30025328: e3530000 cmp r3, #0 3002532c: 0a000007 beq 30025350 30025330: e593301c ldr r3, [r3, #28] 30025334: e3530000 cmp r3, #0 30025338: 0a000004 beq 30025350 3002533c: e28c0018 add r0, ip, #24 30025340: e1a0e00f mov lr, pc 30025344: e12fff13 bx r3 30025348: e59f3060 ldr r3, [pc, #96] ; 300253b0 3002534c: e593c000 ldr ip, [r3] rtems_filesystem_root = loc; 30025350: e28cc018 add ip, ip, #24 30025354: e8b4000f ldm r4!, {r0, r1, r2, r3} 30025358: e8ac000f stmia ip!, {r0, r1, r2, r3} 3002535c: e5943000 ldr r3, [r4] 30025360: e3a00000 mov r0, #0 30025364: e58c3000 str r3, [ip] return 0; } 30025368: e28dd018 add sp, sp, #24 3002536c: e8bd8070 pop {r4, r5, r6, pc} 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) { rtems_libio_set_private_env(); /* try to set a new private env*/ 30025370: eb00061b bl 30026be4 if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 30025374: e5953000 ldr r3, [r5] 30025378: e1530004 cmp r3, r4 3002537c: 1affffda bne 300252ec rtems_set_errno_and_return_minus_one( ENOTSUP ); 30025380: eb006565 bl 3003e91c <__errno> <== NOT EXECUTED 30025384: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30025388: e5803000 str r3, [r0] <== NOT EXECUTED 3002538c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30025390: eafffff4 b 30025368 <== NOT EXECUTED } /* clone the new root location */ 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 ); 30025394: eb006560 bl 3003e91c <__errno> <== NOT EXECUTED 30025398: e1a04000 mov r4, r0 <== NOT EXECUTED 3002539c: eb00655e bl 3003e91c <__errno> <== NOT EXECUTED 300253a0: e5903000 ldr r3, [r0] <== NOT EXECUTED 300253a4: e3e00000 mvn r0, #0 <== NOT EXECUTED 300253a8: e5843000 str r3, [r4] <== NOT EXECUTED 300253ac: eaffffed b 30025368 <== NOT EXECUTED 300253b0: 30062da8 .word 0x30062da8 300253b4: 30066bb0 .word 0x30066bb0 300253b8: 3005c5f8 .word 0x3005c5f8 3000842c : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 3000842c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; 30008430: e5936000 ldr r6, [r3] const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 30008434: e1a0b003 mov fp, r3 rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) 30008438: e3560000 cmp r6, #0 const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 3000843c: e1a0a000 mov sl, r0 30008440: e1a07001 mov r7, r1 rtems_set_errno_and_return_minus_one( EIO ); } /* get the device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) 30008444: 0a000025 beq 300084e0 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 30008448: e59f30a4 ldr r3, [pc, #164] ; 300084f4 3000844c: e5938000 ldr r8, [r3] 30008450: e3580000 cmp r8, #0 } /* 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 ); 30008454: 13a09000 movne r9, #0 30008458: 11a04009 movne r4, r9 for (i = 0; i < rtems_device_table_size; i++) { 3000845c: 0a000010 beq 300084a4 if (!device_name_table[i].device_name) 30008460: e0899109 add r9, r9, r9, lsl #2 30008464: e7965109 ldr r5, [r6, r9, lsl #2] continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 30008468: e1a0000a mov r0, sl 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++) { if (!device_name_table[i].device_name) 3000846c: e2551000 subs r1, r5, #0 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 30008470: e1a02007 mov r2, r7 /* 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++) { 30008474: e2844001 add r4, r4, #1 if (!device_name_table[i].device_name) 30008478: e0869109 add r9, r6, r9, lsl #2 3000847c: 0a000005 beq 30008498 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 30008480: eb000fea bl 3000c430 30008484: e3500000 cmp r0, #0 30008488: 1a000002 bne 30008498 continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 3000848c: e7d50007 ldrb r0, [r5, r7] 30008490: e3500000 cmp r0, #0 30008494: 0a000007 beq 300084b8 /* 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++) { 30008498: e1580004 cmp r8, r4 3000849c: e1a09004 mov r9, r4 300084a0: 8affffee bhi 30008460 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 300084a4: eb000c2b bl 3000b558 <__errno> 300084a8: e3a03002 mov r3, #2 300084ac: e5803000 str r3, [r0] 300084b0: e3e00000 mvn r0, #0 } 300084b4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 300084b8: e59f3038 ldr r3, [pc, #56] ; 300084f8 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 300084bc: e58b9000 str r9, [fp] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 300084c0: e5933000 ldr r3, [r3] 300084c4: e5933028 ldr r3, [r3, #40] ; 0x28 300084c8: e58b3010 str r3, [fp, #16] if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; 300084cc: e59f3028 ldr r3, [pc, #40] ; 300084fc 300084d0: e58b3008 str r3, [fp, #8] pathloc->ops = &devFS_ops; 300084d4: e59f3024 ldr r3, [pc, #36] ; 30008500 300084d8: e58b300c str r3, [fp, #12] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 300084dc: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} } /* 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 ); 300084e0: eb000c1c bl 3000b558 <__errno> <== NOT EXECUTED 300084e4: e3a0300e mov r3, #14 <== NOT EXECUTED 300084e8: e5803000 str r3, [r0] <== NOT EXECUTED 300084ec: e3e00000 mvn r0, #0 <== NOT EXECUTED 300084f0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 300084f4: 3000f298 .word 0x3000f298 300084f8: 3000f4f8 .word 0x3000f4f8 300084fc: 3000f464 .word 0x3000f464 30008500: 3000f49c .word 0x3000f49c 30000fa8 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 30000fa8: e92d4070 push {r4, r5, r6, lr} rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( 30000fac: e59f605c ldr r6, [pc, #92] ; 30001010 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 30000fb0: 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( 30000fb4: e5960000 ldr r0, [r6] 30000fb8: e0800100 add r0, r0, r0, lsl #2 30000fbc: e1a00100 lsl r0, r0, #2 30000fc0: eb001be9 bl 30007f6c <_Workspace_Allocate> sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) 30000fc4: e2505000 subs r5, r0, #0 30000fc8: 0a00000b beq 30000ffc rtems_set_errno_and_return_minus_one( ENOMEM ); memset( 30000fcc: e5962000 ldr r2, [r6] 30000fd0: e3a01000 mov r1, #0 30000fd4: e0822102 add r2, r2, r2, lsl #2 30000fd8: e1a02102 lsl r2, r2, #2 30000fdc: eb002b8b bl 3000be10 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; 30000fe0: e59f302c ldr r3, [pc, #44] ; 30001014 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; 30000fe4: e584501c str r5, [r4, #28] sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* set file handlers */ temp_mt_entry->mt_fs_root.handlers = &devFS_file_handlers; temp_mt_entry->mt_fs_root.ops = &devFS_ops; 30000fe8: e2832038 add r2, r3, #56 ; 0x38 30000fec: e5842028 str r2, [r4, #40] ; 0x28 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; 30000ff0: e5843024 str r3, [r4, #36] ; 0x24 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; 30000ff4: e3a00000 mov r0, #0 return 0; } 30000ff8: e8bd8070 pop {r4, r5, r6, pc} sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) rtems_set_errno_and_return_minus_one( ENOMEM ); 30000ffc: eb002955 bl 3000b558 <__errno> <== NOT EXECUTED 30001000: e3a0300c mov r3, #12 <== NOT EXECUTED 30001004: e5803000 str r3, [r0] <== NOT EXECUTED 30001008: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000100c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30001010: 3000f298 .word 0x3000f298 30001014: 3000f464 .word 0x3000f464 30001180 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 30001180: e52de004 push {lr} ; (str lr, [sp, #-4]!) 30001184: e1a03000 mov r3, r0 30001188: e24dd010 sub sp, sp, #16 rtems_libio_ioctl_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 3000118c: e5900038 ldr r0, [r0, #56] ; 0x38 args.iop = iop; args.command = command; 30001190: e98d0006 stmib sp, {r1, r2} args.buffer = buffer; status = rtems_io_control( 30001194: e590100c ldr r1, [r0, #12] 30001198: e1a0200d mov r2, sp 3000119c: e5900008 ldr r0, [r0, #8] rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 300011a0: e58d3000 str r3, [sp] args.command = command; args.buffer = buffer; status = rtems_io_control( 300011a4: eb000fd0 bl 300050ec np->major, np->minor, (void *) &args ); if ( status ) 300011a8: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return args.ioctl_return; 300011ac: 059d000c ldreq r0, [sp, #12] np->major, np->minor, (void *) &args ); if ( status ) 300011b0: 1a000001 bne 300011bc return rtems_deviceio_errno(status); return args.ioctl_return; } 300011b4: e28dd010 add sp, sp, #16 300011b8: e8bd8000 pop {pc} np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 300011bc: eb001cd0 bl 30008504 <== NOT EXECUTED 300011c0: eafffffb b 300011b4 <== NOT EXECUTED 30001018 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 30001018: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 3000101c: e1a04000 mov r4, r0 * 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') && 30001020: e5d00000 ldrb r0, [r0] const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 30001024: 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') && 30001028: e3500064 cmp r0, #100 ; 0x64 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 3000102c: e1a06002 mov r6, r2 30001030: e1a0b003 mov fp, 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') && 30001034: 0a000035 beq 30001110 (path[2] == 'v') && (path[3] == '\0')) return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 30001038: e2053a0f and r3, r5, #61440 ; 0xf000 3000103c: e3530a02 cmp r3, #8192 ; 0x2000 30001040: 13530a06 cmpne r3, #24576 ; 0x6000 30001044: 03a03000 moveq r3, #0 30001048: 13a03001 movne r3, #1 3000104c: 1a000039 bne 30001138 rtems_set_errno_and_return_minus_one( EINVAL ); 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; 30001050: e59d2024 ldr r2, [sp, #36] ; 0x24 30001054: e5928000 ldr r8, [r2] if (!device_name_table) 30001058: e3580000 cmp r8, #0 3000105c: 0a00003f beq 30001160 rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 30001060: e59f210c ldr r2, [pc, #268] ; 30001174 30001064: e592a000 ldr sl, [r2] 30001068: e35a0000 cmp sl, #0 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 ); 3000106c: 13e09000 mvnne r9, #0 30001070: 11a07003 movne r7, r3 for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 30001074: 1a000007 bne 30001098 30001078: ea000033 b 3000114c <== NOT EXECUTED if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 3000107c: eb002c0b bl 3000c0b0 <== NOT EXECUTED 30001080: e3500000 cmp r0, #0 <== NOT EXECUTED 30001084: 0a00001c beq 300010fc <== NOT EXECUTED /* 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++){ 30001088: e2877001 add r7, r7, #1 <== NOT EXECUTED 3000108c: e157000a cmp r7, sl <== NOT EXECUTED 30001090: e1a03007 mov r3, r7 <== NOT EXECUTED 30001094: 2a000009 bcs 300010c0 <== NOT EXECUTED if (device_name_table[i].device_name == NULL) 30001098: e0833103 add r3, r3, r3, lsl #2 3000109c: e7983103 ldr r3, [r8, r3, lsl #2] slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 300010a0: e1a00004 mov r0, r4 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++){ if (device_name_table[i].device_name == NULL) 300010a4: e2531000 subs r1, r3, #0 300010a8: 1afffff3 bne 3000107c slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); 300010ac: e1a09007 mov r9, r7 /* 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++){ 300010b0: e2877001 add r7, r7, #1 300010b4: e157000a cmp r7, sl 300010b8: e1a03007 mov r3, r7 300010bc: 3afffff5 bcc 30001098 else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) 300010c0: e3790001 cmn r9, #1 300010c4: 0a000020 beq 3000114c static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300010c8: e10f7000 mrs r7, CPSR 300010cc: e3873080 orr r3, r7, #128 ; 0x80 300010d0: e129f003 msr CPSR_fc, r3 rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; 300010d4: e0899109 add r9, r9, r9, lsl #2 300010d8: e7884109 str r4, [r8, r9, lsl #2] device_name_table[slot].device_name_length = strlen(path); 300010dc: e1a00004 mov r0, r4 300010e0: eb002cba bl 3000c3d0 if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; 300010e4: e0888109 add r8, r8, r9, lsl #2 device_name_table[slot].device_name_length = strlen(path); device_name_table[slot].major = major; device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; 300010e8: e5885010 str r5, [r8, #16] if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; device_name_table[slot].device_name_length = strlen(path); 300010ec: e9880841 stmib r8, {r0, r6, fp} static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 300010f0: e129f007 msr CPSR_fc, r7 300010f4: e3a00000 mov r0, #0 device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } 300010f8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); 300010fc: eb002915 bl 3000b558 <__errno> <== NOT EXECUTED 30001100: e3a03011 mov r3, #17 <== NOT EXECUTED 30001104: e5803000 str r3, [r0] <== NOT EXECUTED 30001108: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000110c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED * 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') && 30001110: e5d43001 ldrb r3, [r4, #1] 30001114: e3530065 cmp r3, #101 ; 0x65 30001118: 1affffc6 bne 30001038 (path[2] == 'v') && (path[3] == '\0')) 3000111c: e5d43002 ldrb r3, [r4, #2] 30001120: e3530076 cmp r3, #118 ; 0x76 30001124: 1affffc3 bne 30001038 30001128: e5d40003 ldrb r0, [r4, #3] 3000112c: e3500000 cmp r0, #0 30001130: 1affffc0 bne 30001038 30001134: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) rtems_set_errno_and_return_minus_one( EINVAL ); 30001138: eb002906 bl 3000b558 <__errno> <== NOT EXECUTED 3000113c: e3a03016 mov r3, #22 <== NOT EXECUTED 30001140: e5803000 str r3, [r0] <== NOT EXECUTED 30001144: e3e00000 mvn r0, #0 <== NOT EXECUTED 30001148: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); 3000114c: eb002901 bl 3000b558 <__errno> <== NOT EXECUTED 30001150: e3a0300c mov r3, #12 <== NOT EXECUTED 30001154: e5803000 str r3, [r0] <== NOT EXECUTED 30001158: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000115c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 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 ); 30001160: eb0028fc bl 3000b558 <__errno> <== NOT EXECUTED 30001164: e3a0300e mov r3, #14 <== NOT EXECUTED 30001168: e5803000 str r3, [r0] <== NOT EXECUTED 3000116c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30001170: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30001174: 3000f298 .word 0x3000f298 30001204 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30001204: e92d4010 push {r4, lr} <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 30001208: e590c014 ldr ip, [r0, #20] <== NOT EXECUTED ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3000120c: e24dd01c sub sp, sp, #28 <== NOT EXECUTED np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; 30001210: e58d2010 str r2, [sp, #16] <== NOT EXECUTED ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30001214: e1a03000 mov r3, r0 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 30001218: e3a02000 mov r2, #0 <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 3000121c: e5900038 ldr r0, [r0, #56] ; 0x38 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 30001220: e58d2018 str r2, [sp, #24] <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 30001224: e58dc014 str ip, [sp, #20] <== NOT EXECUTED np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 30001228: e58d100c str r1, [sp, #12] <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 3000122c: e1a0200d mov r2, sp <== NOT EXECUTED 30001230: e590100c ldr r1, [r0, #12] <== NOT EXECUTED 30001234: e5900008 ldr r0, [r0, #8] <== NOT EXECUTED rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 30001238: e58d3000 str r3, [sp] <== NOT EXECUTED args.offset = iop->offset; 3000123c: e283400c add r4, r3, #12 <== NOT EXECUTED 30001240: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED 30001244: e98d0018 stmib sp, {r3, r4} <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 30001248: eb001008 bl 30005270 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 3000124c: e3500000 cmp r0, #0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 30001250: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 30001254: 1a000001 bne 30001260 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } 30001258: e28dd01c add sp, sp, #28 <== NOT EXECUTED 3000125c: e8bd8010 pop {r4, pc} <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 30001260: eb001ca7 bl 30008504 <== NOT EXECUTED 30001264: eafffffb b 30001258 <== NOT EXECUTED 30001268 : struct stat *buf ) { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 30001268: e5903000 ldr r3, [r0] int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 3000126c: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) 30001270: e3530000 cmp r3, #0 30001274: 0a000007 beq 30001298 rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); buf->st_mode = the_dev->mode; 30001278: e5930010 ldr r0, [r3, #16] the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 3000127c: e593200c ldr r2, [r3, #12] rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 30001280: e5933008 ldr r3, [r3, #8] buf->st_mode = the_dev->mode; 30001284: e581000c str r0, [r1, #12] the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); 30001288: e5813018 str r3, [r1, #24] 3000128c: e581201c str r2, [r1, #28] buf->st_mode = the_dev->mode; 30001290: e3a00000 mov r0, #0 return 0; } 30001294: e49df004 pop {pc} ; (ldr pc, [sp], #4) { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; if (!the_dev) rtems_set_errno_and_return_minus_one( EFAULT ); 30001298: eb0028ae bl 3000b558 <__errno> <== NOT EXECUTED 3000129c: e3a0300e mov r3, #14 <== NOT EXECUTED 300012a0: e5803000 str r3, [r0] <== NOT EXECUTED 300012a4: e3e00000 mvn r0, #0 <== NOT EXECUTED 300012a8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 300012ac : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 300012ac: e92d4010 push {r4, lr} args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 300012b0: e590c014 ldr ip, [r0, #20] ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 300012b4: e24dd01c sub sp, sp, #28 np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; 300012b8: e58d2010 str r2, [sp, #16] ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 300012bc: e1a03000 mov r3, r0 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 300012c0: e3a02000 mov r2, #0 { rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; 300012c4: e5900038 ldr r0, [r0, #56] ; 0x38 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 300012c8: e58d2018 str r2, [sp, #24] args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 300012cc: e58dc014 str ip, [sp, #20] np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; 300012d0: e58d100c str r1, [sp, #12] args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 300012d4: e1a0200d mov r2, sp 300012d8: e590100c ldr r1, [r0, #12] 300012dc: e5900008 ldr r0, [r0, #8] rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; 300012e0: e58d3000 str r3, [sp] args.offset = iop->offset; 300012e4: e283400c add r4, r3, #12 300012e8: e8940018 ldm r4, {r3, r4} 300012ec: e98d0018 stmib sp, {r3, r4} args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 300012f0: eb000ff2 bl 300052c0 np->major, np->minor, (void *) &args ); if ( status ) 300012f4: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 300012f8: 059d0018 ldreq r0, [sp, #24] np->major, np->minor, (void *) &args ); if ( status ) 300012fc: 1a000001 bne 30001308 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } 30001300: e28dd01c add sp, sp, #28 30001304: e8bd8010 pop {r4, pc} np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 30001308: eb001c7d bl 30008504 <== NOT EXECUTED 3000130c: eafffffb b 30001300 <== NOT EXECUTED 3000b290 : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 3000b290: e52de004 push {lr} ; (str lr, [sp, #-4]!) args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; 3000b294: e5903038 ldr r3, [r0, #56] ; 0x38 int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 3000b298: e24dd010 sub sp, sp, #16 rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; args.buffer = buffer; 3000b29c: e88d0007 stm sp, {r0, r1, r2} the_jnode = iop->file_info; status = rtems_io_control( 3000b2a0: e5931054 ldr r1, [r3, #84] ; 0x54 3000b2a4: e5930050 ldr r0, [r3, #80] ; 0x50 3000b2a8: e1a0200d mov r2, sp 3000b2ac: eb00059e bl 3000c92c the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000b2b0: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return args.ioctl_return; 3000b2b4: 059d000c ldreq r0, [sp, #12] the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000b2b8: 1a000001 bne 3000b2c4 return rtems_deviceio_errno(status); return args.ioctl_return; } 3000b2bc: e28dd010 add sp, sp, #16 3000b2c0: e8bd8000 pop {pc} the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 3000b2c4: eb0006f0 bl 3000ce8c <== NOT EXECUTED 3000b2c8: eafffffb b 3000b2bc <== NOT EXECUTED 3000b32c : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3000b32c: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 3000b330: e280400c add r4, r0, #12 <== NOT EXECUTED 3000b334: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3000b338: e24dd01c sub sp, sp, #28 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 3000b33c: e590c014 ldr ip, [r0, #20] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 3000b340: e98d0018 stmib sp, {r3, r4} <== NOT EXECUTED args.buffer = buffer; args.count = count; 3000b344: e58d2010 str r2, [sp, #16] <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 3000b348: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 3000b34c: e3a02000 mov r2, #0 <== NOT EXECUTED 3000b350: e58d2018 str r2, [sp, #24] <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 3000b354: e58d100c str r1, [sp, #12] <== NOT EXECUTED args.count = count; args.flags = iop->flags; 3000b358: e58dc014 str ip, [sp, #20] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 3000b35c: e58d0000 str r0, [sp] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 3000b360: e5931054 ldr r1, [r3, #84] ; 0x54 <== NOT EXECUTED 3000b364: e5930050 ldr r0, [r3, #80] ; 0x50 <== NOT EXECUTED 3000b368: e1a0200d mov r2, sp <== NOT EXECUTED 3000b36c: eb000596 bl 3000c9cc <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000b370: e3500000 cmp r0, #0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 3000b374: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000b378: 1a000001 bne 3000b384 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } 3000b37c: e28dd01c add sp, sp, #28 <== NOT EXECUTED 3000b380: e8bd8010 pop {r4, pc} <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 3000b384: eb0006c0 bl 3000ce8c <== NOT EXECUTED 3000b388: eafffffb b 3000b37c <== NOT EXECUTED 3000b2cc : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 3000b2cc: e92d4010 push {r4, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 3000b2d0: e280400c add r4, r0, #12 3000b2d4: e8940018 ldm r4, {r3, r4} ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 3000b2d8: e24dd01c sub sp, sp, #28 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; 3000b2dc: e590c014 ldr ip, [r0, #20] IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 3000b2e0: e98d0018 stmib sp, {r3, r4} args.buffer = (void *) buffer; args.count = count; 3000b2e4: e58d2010 str r2, [sp, #16] { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 3000b2e8: e5903038 ldr r3, [r0, #56] ; 0x38 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; 3000b2ec: e3a02000 mov r2, #0 3000b2f0: e58d2018 str r2, [sp, #24] the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; 3000b2f4: e58d100c str r1, [sp, #12] args.count = count; args.flags = iop->flags; 3000b2f8: e58dc014 str ip, [sp, #20] rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 3000b2fc: e58d0000 str r0, [sp] args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( 3000b300: e5931054 ldr r1, [r3, #84] ; 0x54 3000b304: e5930050 ldr r0, [r3, #80] ; 0x50 3000b308: e1a0200d mov r2, sp 3000b30c: eb0005c2 bl 3000ca1c the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000b310: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 3000b314: 059d0018 ldreq r0, [sp, #24] the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000b318: 1a000001 bne 3000b324 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; } 3000b31c: e28dd01c add sp, sp, #28 3000b320: e8bd8010 pop {r4, pc} the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 3000b324: eb0006d8 bl 3000ce8c <== NOT EXECUTED 3000b328: eafffffb b 3000b31c <== NOT EXECUTED 30002e9c : drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002e9c: e59030b4 ldr r3, [r0, #180] ; 0xb4 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 30002ea0: e92d4030 push {r4, r5, lr} rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002ea4: e3530000 cmp r3, #0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 30002ea8: e1a04000 mov r4, r0 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002eac: 08bd8030 popeq {r4, r5, pc} static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30002eb0: e10f3000 mrs r3, CPSR <== NOT EXECUTED 30002eb4: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 30002eb8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 30002ebc: e5901084 ldr r1, [r0, #132] ; 0x84 <== NOT EXECUTED 30002ec0: e5902080 ldr r2, [r0, #128] ; 0x80 <== NOT EXECUTED 30002ec4: e1510002 cmp r1, r2 <== NOT EXECUTED 30002ec8: 0a00000f beq 30002f0c <== NOT EXECUTED tty->rawOutBufState = rob_wait; 30002ecc: e3a05002 mov r5, #2 <== NOT EXECUTED 30002ed0: e5845094 str r5, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002ed4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 30002ed8: e3a01000 mov r1, #0 <== NOT EXECUTED 30002edc: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED 30002ee0: e1a02001 mov r2, r1 <== NOT EXECUTED 30002ee4: eb00063c bl 300047dc <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 30002ee8: e3500000 cmp r0, #0 <== NOT EXECUTED 30002eec: 1a000008 bne 30002f14 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30002ef0: e10f3000 mrs r3, CPSR <== NOT EXECUTED 30002ef4: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 30002ef8: e129f002 msr CPSR_fc, r2 <== 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) { 30002efc: e5941084 ldr r1, [r4, #132] ; 0x84 <== NOT EXECUTED 30002f00: e5942080 ldr r2, [r4, #128] ; 0x80 <== NOT EXECUTED 30002f04: e1510002 cmp r1, r2 <== NOT EXECUTED 30002f08: 1afffff0 bne 30002ed0 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002f0c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 30002f10: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 30002f14: eb0007d0 bl 30004e5c <== NOT EXECUTED 300021b8 : int dup2( int fildes, int fildes2 ) { 300021b8: e92d4070 push {r4, r5, r6, lr} 300021bc: e24dd048 sub sp, sp, #72 ; 0x48 300021c0: e1a05001 mov r5, r1 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 300021c4: e1a0100d mov r1, sp int dup2( int fildes, int fildes2 ) { 300021c8: e1a06000 mov r6, r0 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 300021cc: eb0001be bl 300028cc if ( status == -1 ) 300021d0: e3700001 cmn r0, #1 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 300021d4: e1a0400d mov r4, sp if ( status == -1 ) 300021d8: 1a000002 bne 300021e8 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 300021dc: e3e00000 mvn r0, #0 } 300021e0: e28dd048 add sp, sp, #72 ; 0x48 300021e4: e8bd8070 pop {r4, r5, r6, pc} /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 300021e8: e1a0100d mov r1, sp 300021ec: e1a00005 mov r0, r5 300021f0: eb0001b5 bl 300028cc if ( status == -1 ) 300021f4: e3700001 cmn r0, #1 300021f8: 0afffff7 beq 300021dc /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 300021fc: e1a00006 mov r0, r6 <== NOT EXECUTED 30002200: e1a02005 mov r2, r5 <== NOT EXECUTED 30002204: e3a01000 mov r1, #0 <== NOT EXECUTED 30002208: eb00009e bl 30002488 <== NOT EXECUTED 3000220c: eafffff3 b 300021e0 <== NOT EXECUTED 30002910 : /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 30002910: e92d4010 push {r4, lr} <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 30002914: e591203c ldr r2, [r1, #60] ; 0x3c <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 30002918: e24dd004 sub sp, sp, #4 <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 3000291c: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 30002920: e1a04001 mov r4, r1 <== NOT EXECUTED 30002924: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 30002928: 0a000007 beq 3000294c <== NOT EXECUTED 3000292c: e59f2060 ldr r2, [pc, #96] ; 30002994 <== NOT EXECUTED 30002930: e2503009 subs r3, r0, #9 <== NOT EXECUTED 30002934: 13a03001 movne r3, #1 <== NOT EXECUTED 30002938: e5922000 ldr r2, [r2] <== NOT EXECUTED 3000293c: e0822000 add r2, r2, r0 <== NOT EXECUTED 30002940: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED 30002944: e01332a2 ands r3, r3, r2, lsr #5 <== NOT EXECUTED 30002948: 1a000003 bne 3000295c <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 3000294c: e1a01004 mov r1, r4 <== NOT EXECUTED 30002950: ebffff92 bl 300027a0 <== NOT EXECUTED } } 30002954: e28dd004 add sp, sp, #4 <== NOT EXECUTED 30002958: e8bd8010 pop {r4, pc} <== NOT EXECUTED * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 3000295c: e350000a cmp r0, #10 <== NOT EXECUTED 30002960: 0afffff9 beq 3000294c <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 30002964: e2203040 eor r3, r0, #64 ; 0x40 <== NOT EXECUTED echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; 30002968: e3a0c05e mov ip, #94 ; 0x5e <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 3000296c: e1a0000d mov r0, sp <== NOT EXECUTED 30002970: e3a01002 mov r1, #2 <== NOT EXECUTED 30002974: e1a02004 mov r2, r4 <== NOT EXECUTED { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 30002978: e5cd3001 strb r3, [sp, #1] <== NOT EXECUTED echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { char echobuf[2]; echobuf[0] = '^'; 3000297c: e5cdc000 strb ip, [sp] <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 30002980: ebffff3e bl 30002680 <== NOT EXECUTED tty->column += 2; 30002984: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002988: e2833002 add r3, r3, #2 <== NOT EXECUTED 3000298c: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 30002990: eaffffef b 30002954 <== NOT EXECUTED 30002994: 3001a148 .word 0x3001a148 300259e0 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 300259e0: e59f300c ldr r3, [pc, #12] ; 300259f4 <== NOT EXECUTED 300259e4: e5930000 ldr r0, [r3] <== NOT EXECUTED 300259e8: e3500000 cmp r0, #0 <== NOT EXECUTED 300259ec: 012fff1e bxeq lr <== NOT EXECUTED fclose(group_fp); 300259f0: ea006416 b 3003ea50 <== NOT EXECUTED 300259f4: 30066868 .word 0x30066868 300259f8 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 300259f8: e59f300c ldr r3, [pc, #12] ; 30025a0c <== NOT EXECUTED 300259fc: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED 30025a00: e3500000 cmp r0, #0 <== NOT EXECUTED 30025a04: 012fff1e bxeq lr <== NOT EXECUTED fclose(passwd_fp); 30025a08: ea006410 b 3003ea50 <== NOT EXECUTED 30025a0c: 30066868 .word 0x30066868 30002998 : * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) 30002998: 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) { 3000299c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED if (tty->ccount == 0) 300029a0: 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) { 300029a4: e1a04000 mov r4, r0 <== NOT EXECUTED 300029a8: e1a06001 mov r6, r1 <== NOT EXECUTED if (tty->ccount == 0) 300029ac: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED return; if (lineFlag) { 300029b0: e3510000 cmp r1, #0 <== NOT EXECUTED 300029b4: 0590203c ldreq r2, [r0, #60] ; 0x3c <== NOT EXECUTED 300029b8: 1a000025 bne 30002a54 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 300029bc: e59f71d4 ldr r7, [pc, #468] ; 30002b98 <== NOT EXECUTED 300029c0: ea000007 b 300029e4 <== NOT EXECUTED 300029c4: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED 300029c8: 1a00005a bne 30002b38 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 300029cc: e3560000 cmp r6, #0 <== NOT EXECUTED 300029d0: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 300029d4: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 300029d8: e3530000 cmp r3, #0 <== NOT EXECUTED 300029dc: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 300029e0: e594203c ldr r2, [r4, #60] ; 0x3c <== NOT EXECUTED unsigned char c = tty->cbuf[--tty->ccount]; 300029e4: e2433001 sub r3, r3, #1 <== NOT EXECUTED 300029e8: e594001c ldr r0, [r4, #28] <== NOT EXECUTED 300029ec: e5843020 str r3, [r4, #32] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 300029f0: e3120008 tst r2, #8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 300029f4: e7d05003 ldrb r5, [r0, r3] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 300029f8: 0afffff3 beq 300029cc <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 300029fc: e3560000 cmp r6, #0 <== NOT EXECUTED 30002a00: 1a000001 bne 30002a0c <== NOT EXECUTED 30002a04: e3120010 tst r2, #16 <== NOT EXECUTED 30002a08: 0a000046 beq 30002b28 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); } else if (c == '\t') { 30002a0c: e3550009 cmp r5, #9 <== NOT EXECUTED 30002a10: 0a000020 beq 30002a98 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 30002a14: e5973000 ldr r3, [r7] <== NOT EXECUTED 30002a18: e2855001 add r5, r5, #1 <== NOT EXECUTED 30002a1c: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED 30002a20: e3130020 tst r3, #32 <== NOT EXECUTED 30002a24: 1affffe6 bne 300029c4 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); if (tty->column) tty->column--; } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 30002a28: e59f016c ldr r0, [pc, #364] ; 30002b9c <== NOT EXECUTED 30002a2c: e3a01003 mov r1, #3 <== NOT EXECUTED 30002a30: e1a02004 mov r2, r4 <== NOT EXECUTED 30002a34: ebffff11 bl 30002680 <== NOT EXECUTED if (tty->column) 30002a38: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002a3c: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; 30002a40: 12433001 subne r3, r3, #1 <== NOT EXECUTED 30002a44: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED } } } if (!lineFlag) 30002a48: e3560000 cmp r6, #0 <== NOT EXECUTED 30002a4c: 1affffe0 bne 300029d4 <== NOT EXECUTED 30002a50: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { 30002a54: e590203c ldr r2, [r0, #60] ; 0x3c <== NOT EXECUTED 30002a58: e2121008 ands r1, r2, #8 <== NOT EXECUTED tty->ccount = 0; 30002a5c: 05801020 streq r1, [r0, #32] <== NOT EXECUTED erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) return; if (lineFlag) { if (!(tty->termios.c_lflag & ECHO)) { 30002a60: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 30002a64: e2121010 ands r1, r2, #16 <== NOT EXECUTED 30002a68: 1affffd3 bne 300029bc <== NOT EXECUTED tty->ccount = 0; 30002a6c: e5801020 str r1, [r0, #32] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 30002a70: e5d00044 ldrb r0, [r0, #68] ; 0x44 <== NOT EXECUTED 30002a74: e1a01004 mov r1, r4 <== NOT EXECUTED 30002a78: ebffffa4 bl 30002910 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 30002a7c: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED 30002a80: e3130020 tst r3, #32 <== NOT EXECUTED 30002a84: 08bd85f0 popeq {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED echo ('\n', tty); 30002a88: e1a01004 mov r1, r4 <== NOT EXECUTED 30002a8c: e3a0000a mov r0, #10 <== NOT EXECUTED } } if (!lineFlag) break; } } 30002a90: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); 30002a94: eaffff9d b 30002910 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 30002a98: e3530000 cmp r3, #0 <== 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; 30002a9c: e594502c ldr r5, [r4, #44] ; 0x2c <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 30002aa0: 0a000011 beq 30002aec <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 30002aa4: e5978000 ldr r8, [r7] <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 30002aa8: e202ac02 and sl, r2, #512 ; 0x200 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 30002aac: e3a02000 mov r2, #0 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 30002ab0: e7d01002 ldrb r1, [r0, r2] <== NOT EXECUTED 30002ab4: e2822001 add r2, r2, #1 <== NOT EXECUTED if (c == '\t') { 30002ab8: e3510009 cmp r1, #9 <== NOT EXECUTED col = (col | 7) + 1; 30002abc: 03855007 orreq r5, r5, #7 <== NOT EXECUTED } else if (iscntrl (c)) { 30002ac0: e088c001 add ip, r8, r1 <== NOT EXECUTED * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; 30002ac4: 02855001 addeq r5, r5, #1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { 30002ac8: 0a000005 beq 30002ae4 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 30002acc: e5dc1001 ldrb r1, [ip, #1] <== NOT EXECUTED 30002ad0: e3110020 tst r1, #32 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) col += 2; } else { col++; 30002ad4: 02855001 addeq r5, r5, #1 <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 30002ad8: 0a000001 beq 30002ae4 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 30002adc: e35a0000 cmp sl, #0 <== NOT EXECUTED col += 2; 30002ae0: 12855002 addne r5, r5, #2 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 30002ae4: e1530002 cmp r3, r2 <== NOT EXECUTED 30002ae8: 1afffff0 bne 30002ab0 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 30002aec: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002af0: e1550003 cmp r5, r3 <== NOT EXECUTED 30002af4: aaffffb4 bge 300029cc <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 30002af8: e59f00a0 ldr r0, [pc, #160] ; 30002ba0 <== NOT EXECUTED 30002afc: e3a01001 mov r1, #1 <== NOT EXECUTED 30002b00: e1a02004 mov r2, r4 <== NOT EXECUTED 30002b04: ebfffedd bl 30002680 <== NOT EXECUTED tty->column--; 30002b08: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002b0c: e2433001 sub r3, r3, #1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 30002b10: e1550003 cmp r5, r3 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; 30002b14: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 30002b18: bafffff6 blt 30002af8 <== NOT EXECUTED if (tty->column) tty->column--; } } } if (!lineFlag) 30002b1c: e3560000 cmp r6, #0 <== NOT EXECUTED 30002b20: 1affffab bne 300029d4 <== NOT EXECUTED 30002b24: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== 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); 30002b28: e5d40043 ldrb r0, [r4, #67] ; 0x43 <== NOT EXECUTED 30002b2c: e1a01004 mov r1, r4 <== NOT EXECUTED } } if (!lineFlag) break; } } 30002b30: e8bd45f0 pop {r4, r5, r6, r7, r8, sl, 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); 30002b34: eaffff75 b 30002910 <== NOT EXECUTED tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { rtems_termios_puts ("\b \b", 3, tty); 30002b38: e59f005c ldr r0, [pc, #92] ; 30002b9c <== NOT EXECUTED 30002b3c: e3a01003 mov r1, #3 <== NOT EXECUTED 30002b40: e1a02004 mov r2, r4 <== NOT EXECUTED 30002b44: ebfffecd bl 30002680 <== NOT EXECUTED if (tty->column) 30002b48: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002b4c: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; 30002b50: 12433001 subne r3, r3, #1 <== NOT EXECUTED 30002b54: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 30002b58: e5973000 ldr r3, [r7] <== NOT EXECUTED 30002b5c: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED 30002b60: e3130020 tst r3, #32 <== NOT EXECUTED 30002b64: 0affffaf beq 30002a28 <== NOT EXECUTED 30002b68: e594203c ldr r2, [r4, #60] ; 0x3c <== NOT EXECUTED 30002b6c: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED 30002b70: 0affff95 beq 300029cc <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 30002b74: e59f0020 ldr r0, [pc, #32] ; 30002b9c <== NOT EXECUTED 30002b78: e3a01003 mov r1, #3 <== NOT EXECUTED 30002b7c: e1a02004 mov r2, r4 <== NOT EXECUTED 30002b80: ebfffebe bl 30002680 <== NOT EXECUTED if (tty->column) 30002b84: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002b88: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; 30002b8c: 12433001 subne r3, r3, #1 <== NOT EXECUTED 30002b90: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002b94: eaffffab b 30002a48 <== NOT EXECUTED 30002b98: 3001a148 .word 0x3001a148 30002b9c: 300199a8 .word 0x300199a8 30002ba0: 300199a4 .word 0x300199a4 30038514 : #include int fchdir( int fd ) { 30038514: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 30038518: e59f3174 ldr r3, [pc, #372] ; 30038694 <== NOT EXECUTED #include int fchdir( int fd ) { 3003851c: e24dd02c sub sp, sp, #44 ; 0x2c <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 30038520: e5933000 ldr r3, [r3] <== NOT EXECUTED 30038524: e1500003 cmp r0, r3 <== NOT EXECUTED 30038528: 2a000042 bcs 30038638 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 3003852c: e59f3164 ldr r3, [pc, #356] ; 30038698 <== NOT EXECUTED 30038530: e5934000 ldr r4, [r3] <== NOT EXECUTED 30038534: e0844300 add r4, r4, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 30038538: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 3003853c: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30038540: 0a00003c beq 30038638 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 30038544: e3130002 tst r3, #2 <== NOT EXECUTED 30038548: 0a000047 beq 3003866c <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 3003854c: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED 30038550: e3530000 cmp r3, #0 <== NOT EXECUTED 30038554: 0a000049 beq 30038680 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 30038558: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 3003855c: e3530000 cmp r3, #0 <== NOT EXECUTED 30038560: 0a000046 beq 30038680 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 30038564: e2844018 add r4, r4, #24 <== NOT EXECUTED 30038568: e1a00004 mov r0, r4 <== NOT EXECUTED 3003856c: e1a0e00f mov lr, pc <== NOT EXECUTED 30038570: e12fff13 bx r3 <== NOT EXECUTED 30038574: e3500001 cmp r0, #1 <== NOT EXECUTED 30038578: e1a0e000 mov lr, r0 <== NOT EXECUTED 3003857c: 1a000028 bne 30038624 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 30038580: e59f5114 ldr r5, [pc, #276] ; 3003869c <== NOT EXECUTED 30038584: e28d8004 add r8, sp, #4 <== NOT EXECUTED 30038588: e5957000 ldr r7, [r5] <== NOT EXECUTED 3003858c: e1a0a008 mov sl, r8 <== NOT EXECUTED 30038590: e287c004 add ip, r7, #4 <== NOT EXECUTED 30038594: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30038598: e8aa000f stmia sl!, {r0, r1, r2, r3} <== NOT EXECUTED 3003859c: e59c3000 ldr r3, [ip] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 300385a0: e2877004 add r7, r7, #4 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 300385a4: e58a3000 str r3, [sl] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 300385a8: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED 300385ac: e8a7000f stmia r7!, {r0, r1, r2, r3} <== NOT EXECUTED 300385b0: e5943000 ldr r3, [r4] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 300385b4: e3a06000 mov r6, #0 <== NOT EXECUTED 300385b8: e28d4018 add r4, sp, #24 <== NOT EXECUTED * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; rtems_filesystem_current = iop->pathinfo; 300385bc: e58c3000 str r3, [ip] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 300385c0: e1a0100e mov r1, lr <== NOT EXECUTED 300385c4: e1a02006 mov r2, r6 <== NOT EXECUTED 300385c8: e59f00d0 ldr r0, [pc, #208] ; 300386a0 <== NOT EXECUTED 300385cc: e1a03004 mov r3, r4 <== NOT EXECUTED 300385d0: e58d6000 str r6, [sp] <== NOT EXECUTED 300385d4: ebff342d bl 30005690 <== NOT EXECUTED 300385d8: e1500006 cmp r0, r6 <== NOT EXECUTED 300385dc: 1a00001a bne 3003864c <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 300385e0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 300385e4: e3530000 cmp r3, #0 <== NOT EXECUTED 300385e8: 0a000004 beq 30038600 <== NOT EXECUTED 300385ec: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300385f0: e3530000 cmp r3, #0 <== NOT EXECUTED 300385f4: 11a00008 movne r0, r8 <== NOT EXECUTED 300385f8: 11a0e00f movne lr, pc <== NOT EXECUTED 300385fc: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_current = loc; 30038600: e595c000 ldr ip, [r5] <== NOT EXECUTED 30038604: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED 30038608: e28cc004 add ip, ip, #4 <== NOT EXECUTED 3003860c: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30038610: e5943000 ldr r3, [r4] <== NOT EXECUTED 30038614: e3a00000 mov r0, #0 <== NOT EXECUTED 30038618: e58c3000 str r3, [ip] <== NOT EXECUTED return 0; } 3003861c: e28dd02c add sp, sp, #44 ; 0x2c <== NOT EXECUTED 30038620: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 30038624: eb0018bc bl 3003e91c <__errno> <== NOT EXECUTED 30038628: e3a03014 mov r3, #20 <== NOT EXECUTED 3003862c: e5803000 str r3, [r0] <== NOT EXECUTED 30038630: e3e00000 mvn r0, #0 <== NOT EXECUTED 30038634: eafffff8 b 3003861c <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 30038638: eb0018b7 bl 3003e91c <__errno> <== NOT EXECUTED 3003863c: e3a03009 mov r3, #9 <== NOT EXECUTED 30038640: e5803000 str r3, [r0] <== NOT EXECUTED 30038644: e3e00000 mvn r0, #0 <== NOT EXECUTED 30038648: eafffff3 b 3003861c <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 3003864c: e595c000 ldr ip, [r5] <== NOT EXECUTED 30038650: e8b8000f ldm r8!, {r0, r1, r2, r3} <== NOT EXECUTED 30038654: e28cc004 add ip, ip, #4 <== NOT EXECUTED 30038658: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 3003865c: e59a3000 ldr r3, [sl] <== NOT EXECUTED 30038660: e3e00000 mvn r0, #0 <== NOT EXECUTED 30038664: e58c3000 str r3, [ip] <== NOT EXECUTED return -1; 30038668: eaffffeb b 3003861c <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 3003866c: eb0018aa bl 3003e91c <__errno> <== NOT EXECUTED 30038670: e3a03016 mov r3, #22 <== NOT EXECUTED 30038674: e5803000 str r3, [r0] <== NOT EXECUTED 30038678: e3e00000 mvn r0, #0 <== NOT EXECUTED 3003867c: eaffffe6 b 3003861c <== NOT EXECUTED if ( !iop->pathinfo.ops ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); 30038680: eb0018a5 bl 3003e91c <__errno> <== NOT EXECUTED 30038684: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30038688: e5803000 str r3, [r0] <== NOT EXECUTED 3003868c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30038690: eaffffe1 b 3003861c <== NOT EXECUTED 30038694: 30062a70 .word 0x30062a70 30038698: 30066b54 .word 0x30066b54 3003869c: 30062da8 .word 0x30062da8 300386a0: 3005c5f8 .word 0x3005c5f8 300255d4 : mode_t mode ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300255d4: e59f308c ldr r3, [pc, #140] ; 30025668 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { 300255d8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300255dc: e5933000 ldr r3, [r3] <== NOT EXECUTED 300255e0: e1500003 cmp r0, r3 <== NOT EXECUTED 300255e4: 2a000010 bcs 3002562c <== NOT EXECUTED iop = rtems_libio_iop( fd ); 300255e8: e59f307c ldr r3, [pc, #124] ; 3002566c <== NOT EXECUTED 300255ec: e5933000 ldr r3, [r3] <== NOT EXECUTED 300255f0: e0833300 add r3, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 300255f4: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED 300255f8: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 300255fc: 0a00000a beq 3002562c <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30025600: e3120004 tst r2, #4 <== NOT EXECUTED 30025604: 0a00000d beq 30025640 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 30025608: e593203c ldr r2, [r3, #60] ; 0x3c <== NOT EXECUTED 3002560c: e592201c ldr r2, [r2, #28] <== NOT EXECUTED 30025610: e3520000 cmp r2, #0 <== NOT EXECUTED 30025614: 0a00000e beq 30025654 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 30025618: e2830018 add r0, r3, #24 <== NOT EXECUTED 3002561c: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED 30025620: e1a0e00f mov lr, pc <== NOT EXECUTED 30025624: e593f01c ldr pc, [r3, #28] <== NOT EXECUTED } 30025628: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 3002562c: eb0064ba bl 3003e91c <__errno> <== NOT EXECUTED 30025630: e3a03009 mov r3, #9 <== NOT EXECUTED 30025634: e5803000 str r3, [r0] <== NOT EXECUTED 30025638: e3e00000 mvn r0, #0 <== NOT EXECUTED 3002563c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30025640: eb0064b5 bl 3003e91c <__errno> <== NOT EXECUTED 30025644: e3a03016 mov r3, #22 <== NOT EXECUTED 30025648: e5803000 str r3, [r0] <== NOT EXECUTED 3002564c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30025650: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30025654: eb0064b0 bl 3003e91c <__errno> <== NOT EXECUTED 30025658: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3002565c: e5803000 str r3, [r0] <== NOT EXECUTED 30025660: e3e00000 mvn r0, #0 <== NOT EXECUTED 30025664: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30025668: 30062a70 .word 0x30062a70 3002566c: 30066b54 .word 0x30066b54 30025670 : gid_t group ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30025670: e59f3098 ldr r3, [pc, #152] ; 30025710 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 30025674: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30025678: e5933000 ldr r3, [r3] <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 3002567c: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30025680: e1500003 cmp r0, r3 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 30025684: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 30025688: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 3002568c: e1a02822 lsr r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30025690: 2a00000f bcs 300256d4 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30025694: e59f3078 ldr r3, [pc, #120] ; 30025714 <== NOT EXECUTED 30025698: e5933000 ldr r3, [r3] <== NOT EXECUTED 3002569c: e0830300 add r0, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 300256a0: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED 300256a4: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 300256a8: 0a000009 beq 300256d4 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 300256ac: e3130004 tst r3, #4 <== NOT EXECUTED 300256b0: 0a00000c beq 300256e8 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 300256b4: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED 300256b8: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 300256bc: e3530000 cmp r3, #0 <== NOT EXECUTED 300256c0: 0a00000d beq 300256fc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 300256c4: e2800018 add r0, r0, #24 <== NOT EXECUTED 300256c8: e1a0e00f mov lr, pc <== NOT EXECUTED 300256cc: e12fff13 bx r3 <== NOT EXECUTED } 300256d0: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED { rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 300256d4: eb006490 bl 3003e91c <__errno> <== NOT EXECUTED 300256d8: e3a03009 mov r3, #9 <== NOT EXECUTED 300256dc: e5803000 str r3, [r0] <== NOT EXECUTED 300256e0: e3e00000 mvn r0, #0 <== NOT EXECUTED 300256e4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 300256e8: eb00648b bl 3003e91c <__errno> <== NOT EXECUTED 300256ec: e3a03016 mov r3, #22 <== NOT EXECUTED 300256f0: e5803000 str r3, [r0] <== NOT EXECUTED 300256f4: e3e00000 mvn r0, #0 <== NOT EXECUTED 300256f8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 300256fc: eb006486 bl 3003e91c <__errno> <== NOT EXECUTED 30025700: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30025704: e5803000 str r3, [r0] <== NOT EXECUTED 30025708: e3e00000 mvn r0, #0 <== NOT EXECUTED 3002570c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30025710: 30062a70 .word 0x30062a70 30025714: 30066b54 .word 0x30066b54 300386a4 : int fcntl( int fd, int cmd, ... ) { 300386a4: e92d000e push {r1, r2, r3} 300386a8: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 300386ac: e59f31c8 ldr r3, [pc, #456] ; 3003887c int fcntl( int fd, int cmd, ... ) { 300386b0: e24dd004 sub sp, sp, #4 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 300386b4: e5932000 ldr r2, [r3] ... ) { int ret; va_list ap; va_start( ap, cmd ); 300386b8: e28d3028 add r3, sp, #40 ; 0x28 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 300386bc: e1500002 cmp r0, r2 ... ) { int ret; va_list ap; va_start( ap, cmd ); 300386c0: e58d3000 str r3, [sp] int fcntl( int fd, int cmd, ... ) { 300386c4: e59d4024 ldr r4, [sp, #36] ; 0x24 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 300386c8: 2a00005f bcs 3003884c iop = rtems_libio_iop( fd ); 300386cc: e59f61ac ldr r6, [pc, #428] ; 30038880 300386d0: e5967000 ldr r7, [r6] 300386d4: e0875300 add r5, r7, r0, lsl #6 rtems_libio_check_is_open(iop); 300386d8: e595c014 ldr ip, [r5, #20] 300386dc: e31c0c01 tst ip, #256 ; 0x100 300386e0: 0a000059 beq 3003884c /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 300386e4: e3540009 cmp r4, #9 300386e8: 979ff104 ldrls pc, [pc, r4, lsl #2] 300386ec: ea00002a b 3003879c 300386f0: 300387b0 .word 0x300387b0 <== NOT EXECUTED 300386f4: 30038810 .word 0x30038810 <== NOT EXECUTED 300386f8: 3003881c .word 0x3003881c <== NOT EXECUTED 300386fc: 3003883c .word 0x3003883c <== NOT EXECUTED 30038700: 3003873c .word 0x3003873c <== NOT EXECUTED 30038704: 30038718 .word 0x30038718 <== NOT EXECUTED 30038708: 30038718 .word 0x30038718 <== NOT EXECUTED 3003870c: 30038718 .word 0x30038718 <== NOT EXECUTED 30038710: 30038718 .word 0x30038718 <== NOT EXECUTED 30038714: 30038718 .word 0x30038718 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 30038718: eb00187f bl 3003e91c <__errno> 3003871c: e3a03086 mov r3, #134 ; 0x86 30038720: e5803000 str r3, [r0] 30038724: e3e07000 mvn r7, #0 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 30038728: e1a00007 mov r0, r7 3003872c: e28dd004 add sp, sp, #4 30038730: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr} 30038734: e28dd00c add sp, sp, #12 30038738: e12fff1e bx lr case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 3003873c: e5930000 ldr r0, [r3] 30038740: ebff352a bl 30005bf0 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 30038744: e5953014 ldr r3, [r5, #20] 30038748: e59f2134 ldr r2, [pc, #308] ; 30038884 3003874c: e3c33c02 bic r3, r3, #512 ; 0x200 30038750: e0002002 and r2, r0, r2 30038754: e3c33001 bic r3, r3, #1 30038758: e1823003 orr r3, r2, r3 3003875c: e5853014 str r3, [r5, #20] 30038760: e3a07000 mov r7, #0 * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { if (iop->handlers->fcntl_h) { 30038764: e595303c ldr r3, [r5, #60] ; 0x3c 30038768: e5933030 ldr r3, [r3, #48] ; 0x30 3003876c: e3530000 cmp r3, #0 30038770: 0affffec beq 30038728 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 30038774: e1a00004 mov r0, r4 30038778: e1a01005 mov r1, r5 3003877c: e1a0e00f mov lr, pc 30038780: e12fff13 bx r3 if (err) { 30038784: e2504000 subs r4, r0, #0 30038788: 0affffe6 beq 30038728 errno = err; 3003878c: eb001862 bl 3003e91c <__errno> <== NOT EXECUTED 30038790: e5804000 str r4, [r0] <== NOT EXECUTED 30038794: e3e07000 mvn r7, #0 <== NOT EXECUTED 30038798: eaffffe2 b 30038728 <== NOT EXECUTED errno = ENOTSUP; ret = -1; break; default: errno = EINVAL; 3003879c: eb00185e bl 3003e91c <__errno> 300387a0: e3a03016 mov r3, #22 300387a4: e5803000 str r3, [r0] 300387a8: e3e07000 mvn r7, #0 300387ac: eaffffdd b 30038728 * This switch should contain all the cases from POSIX. */ switch ( cmd ) { case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 300387b0: e5938000 ldr r8, [r3] if ( fd2 ) 300387b4: e3580000 cmp r8, #0 300387b8: 0a000028 beq 30038860 diop = rtems_libio_iop( fd2 ); 300387bc: e1520008 cmp r2, r8 <== NOT EXECUTED 300387c0: 93a09000 movls r9, #0 <== NOT EXECUTED 300387c4: 80878308 addhi r8, r7, r8, lsl #6 <== NOT EXECUTED 300387c8: 91a08009 movls r8, r9 <== NOT EXECUTED 300387cc: 81a09008 movhi r9, r8 <== NOT EXECUTED } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 300387d0: e288a018 add sl, r8, #24 300387d4: e2856018 add r6, r5, #24 300387d8: e8b6000f ldm r6!, {r0, r1, r2, r3} 300387dc: e8aa000f stmia sl!, {r0, r1, r2, r3} ret = -1; break; } } diop->handlers = iop->handlers; 300387e0: e595203c ldr r2, [r5, #60] ; 0x3c diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 300387e4: e5961000 ldr r1, [r6] break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; 300387e8: e5953038 ldr r3, [r5, #56] ; 0x38 diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 300387ec: e0677009 rsb r7, r7, r9 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 300387f0: e58a1000 str r1, [sl] ret = -1; break; } } diop->handlers = iop->handlers; 300387f4: e588203c str r2, [r8, #60] ; 0x3c diop->file_info = iop->file_info; 300387f8: e5883038 str r3, [r8, #56] ; 0x38 diop->flags = iop->flags; 300387fc: e588c014 str ip, [r8, #20] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 30038800: e1a07347 asr r7, r7, #6 /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 30038804: e3570000 cmp r7, #0 30038808: aaffffd5 bge 30038764 3003880c: eaffffc5 b 30038728 <== NOT EXECUTED diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 30038810: e1a0c5ac lsr ip, ip, #11 30038814: e20c7001 and r7, ip, #1 30038818: eaffffd1 b 30038764 * 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 ) ) 3003881c: e5937000 ldr r7, [r3] 30038820: e3570000 cmp r7, #0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 30038824: 138ccb02 orrne ip, ip, #2048 ; 0x800 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 30038828: 03cccb02 biceq ip, ip, #2048 ; 0x800 * 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; 3003882c: 1585c014 strne ip, [r5, #20] 30038830: 13a07000 movne r7, #0 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 30038834: 0585c014 streq ip, [r5, #20] 30038838: eaffffc9 b 30038764 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 3003883c: e1a0000c mov r0, ip 30038840: ebff344a bl 30005970 30038844: e1a07000 mov r7, r0 30038848: eaffffed b 30038804 int mask; int ret = 0; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 3003884c: eb001832 bl 3003e91c <__errno> <== NOT EXECUTED 30038850: e3a03009 mov r3, #9 <== NOT EXECUTED 30038854: e5803000 str r3, [r0] <== NOT EXECUTED 30038858: e3e07000 mvn r7, #0 <== NOT EXECUTED 3003885c: eaffffb1 b 30038728 <== NOT EXECUTED fd2 = va_arg( ap, int ); if ( fd2 ) diop = rtems_libio_iop( fd2 ); else { /* allocate a file control block */ diop = rtems_libio_allocate(); 30038860: ebff34b4 bl 30005b38 if ( diop == 0 ) { 30038864: e2508000 subs r8, r0, #0 30038868: 0affffc9 beq 30038794 3003886c: e5967000 ldr r7, [r6] 30038870: e595c014 ldr ip, [r5, #20] 30038874: e1a09008 mov r9, r8 30038878: eaffffd4 b 300387d0 3003887c: 30062a70 .word 0x30062a70 30038880: 30066b54 .word 0x30066b54 30038884: 00000201 .word 0x00000201 3000b9c0 : */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000b9c0: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 3000b9c4: e59f53fc ldr r5, [pc, #1020] ; 3000bdc8 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000b9c8: e1a07001 mov r7, r1 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 3000b9cc: e3a01000 mov r1, #0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000b9d0: e24dd00c sub sp, sp, #12 3000b9d4: e1a04000 mov r4, r0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 3000b9d8: e1a02001 mov r2, r1 3000b9dc: e5950000 ldr r0, [r5] 3000b9e0: ebffe37d bl 300047dc 3000b9e4: e2509000 subs r9, r0, #0 3000b9e8: 13e0a003 mvnne sl, #3 3000b9ec: 1a00001c bne 3000ba64 RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 3000b9f0: e5946000 ldr r6, [r4] <== NOT EXECUTED if (pipe == NULL) { 3000b9f4: e3560000 cmp r6, #0 <== NOT EXECUTED 3000b9f8: 0a00007d beq 3000bbf4 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 3000b9fc: e3a01000 mov r1, #0 <== NOT EXECUTED 3000ba00: e5960028 ldr r0, [r6, #40] ; 0x28 <== NOT EXECUTED 3000ba04: e1a02001 mov r2, r1 <== NOT EXECUTED 3000ba08: ebffe373 bl 300047dc <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 3000ba0c: e5943000 ldr r3, [r4] <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 3000ba10: e3500000 cmp r0, #0 <== NOT EXECUTED 3000ba14: 01a0a000 moveq sl, r0 <== NOT EXECUTED 3000ba18: 13e0a003 mvnne sl, #3 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 3000ba1c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000ba20: 0a000038 beq 3000bb08 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 3000ba24: e5950000 ldr r0, [r5] <== NOT EXECUTED 3000ba28: ebffe3b3 bl 300048fc <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 3000ba2c: e35a0000 cmp sl, #0 <== NOT EXECUTED 3000ba30: 1a00000b bne 3000ba64 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 3000ba34: e5972014 ldr r2, [r7, #20] <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; 3000ba38: e5945000 ldr r5, [r4] <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { 3000ba3c: e2023006 and r3, r2, #6 <== NOT EXECUTED 3000ba40: e3530004 cmp r3, #4 <== NOT EXECUTED 3000ba44: 0a000009 beq 3000ba70 <== NOT EXECUTED 3000ba48: e3530006 cmp r3, #6 <== NOT EXECUTED 3000ba4c: 0a000054 beq 3000bba4 <== NOT EXECUTED 3000ba50: e3530002 cmp r3, #2 <== NOT EXECUTED 3000ba54: 0a000031 beq 3000bb20 <== NOT EXECUTED if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); 3000ba58: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED 3000ba5c: ebffe3a6 bl 300048fc <== NOT EXECUTED 3000ba60: e3a0a000 mov sl, #0 <== NOT EXECUTED return 0; out_error: pipe_release(pipep, iop); return err; } 3000ba64: e1a0000a mov r0, sl 3000ba68: e28dd00c add sp, sp, #12 3000ba6c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} } while (prevCounter == pipe->writerCounter); } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 3000ba70: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED 3000ba74: e3530000 cmp r3, #0 <== NOT EXECUTED 3000ba78: 1a000002 bne 3000ba88 <== NOT EXECUTED 3000ba7c: e3120001 tst r2, #1 <== NOT EXECUTED 3000ba80: 13e0a005 mvnne sl, #5 <== NOT EXECUTED 3000ba84: 1a00001b bne 3000baf8 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) 3000ba88: e5952014 ldr r2, [r5, #20] <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 3000ba8c: e5951024 ldr r1, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000ba90: e3520000 cmp r2, #0 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 3000ba94: e2811001 add r1, r1, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000ba98: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 3000ba9c: e5851024 str r1, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000baa0: e5852014 str r2, [r5, #20] <== NOT EXECUTED 3000baa4: 0a0000b5 beq 3000bd80 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); if (pipe->Readers == 0) { 3000baa8: e3530000 cmp r3, #0 <== NOT EXECUTED 3000baac: 1affffe9 bne 3000ba58 <== NOT EXECUTED prevCounter = pipe->readerCounter; 3000bab0: e5956020 ldr r6, [r5, #32] <== NOT EXECUTED 3000bab4: ea000006 b 3000bad4 <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) 3000bab8: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED 3000babc: ebffe346 bl 300047dc <== NOT EXECUTED 3000bac0: e3500000 cmp r0, #0 <== NOT EXECUTED 3000bac4: 1a00000a bne 3000baf4 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 3000bac8: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED 3000bacc: e1530006 cmp r3, r6 <== NOT EXECUTED 3000bad0: 1affffe0 bne 3000ba58 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); 3000bad4: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED 3000bad8: ebffe387 bl 300048fc <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 3000badc: e3a01000 mov r1, #0 <== NOT EXECUTED 3000bae0: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED 3000bae4: eb000308 bl 3000c70c <== NOT EXECUTED 3000bae8: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 3000baec: e1a02001 mov r2, r1 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 3000baf0: 0afffff0 beq 3000bab8 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 3000baf4: e3e0a003 mvn sl, #3 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 3000baf8: e1a00004 mov r0, r4 <== NOT EXECUTED 3000bafc: e1a01007 mov r1, r7 <== NOT EXECUTED 3000bb00: ebffff68 bl 3000b8a8 <== NOT EXECUTED return err; 3000bb04: eaffffd6 b 3000ba64 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) 3000bb08: e35a0000 cmp sl, #0 <== NOT EXECUTED 3000bb0c: 1a0000a0 bne 3000bd94 <== NOT EXECUTED pipe_free(pipe); else *pipep = pipe; 3000bb10: e5846000 str r6, [r4] <== NOT EXECUTED } out: rtems_semaphore_release(rtems_pipe_semaphore); 3000bb14: e5950000 ldr r0, [r5] <== NOT EXECUTED 3000bb18: ebffe377 bl 300048fc <== NOT EXECUTED 3000bb1c: eaffffc4 b 3000ba34 <== NOT EXECUTED pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 3000bb20: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 3000bb24: e5952020 ldr r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000bb28: e3530000 cmp r3, #0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 3000bb2c: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000bb30: e2833001 add r3, r3, #1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 3000bb34: e5852020 str r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000bb38: e5853010 str r3, [r5, #16] <== NOT EXECUTED 3000bb3c: 0a00008b beq 3000bd70 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); if (pipe->Writers == 0) { 3000bb40: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED 3000bb44: e3530000 cmp r3, #0 <== NOT EXECUTED 3000bb48: 1affffc2 bne 3000ba58 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 3000bb4c: e5973014 ldr r3, [r7, #20] <== NOT EXECUTED 3000bb50: e3130001 tst r3, #1 <== NOT EXECUTED 3000bb54: 1affffbf bne 3000ba58 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 3000bb58: e5956024 ldr r6, [r5, #36] ; 0x24 <== NOT EXECUTED 3000bb5c: ea000006 b 3000bb7c <== NOT EXECUTED /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) goto out_error; if (! PIPE_LOCK(pipe)) 3000bb60: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED 3000bb64: ebffe31c bl 300047dc <== NOT EXECUTED 3000bb68: e3500000 cmp r0, #0 <== NOT EXECUTED 3000bb6c: 1affffe0 bne 3000baf4 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 3000bb70: e5953024 ldr r3, [r5, #36] ; 0x24 <== NOT EXECUTED 3000bb74: e1530006 cmp r3, r6 <== NOT EXECUTED 3000bb78: 1affffb6 bne 3000ba58 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 3000bb7c: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED 3000bb80: ebffe35d bl 300048fc <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 3000bb84: e3a01000 mov r1, #0 <== NOT EXECUTED 3000bb88: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED 3000bb8c: eb0002de bl 3000c70c <== NOT EXECUTED 3000bb90: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 3000bb94: e1a02001 mov r2, r1 <== NOT EXECUTED prevCounter = pipe->writerCounter; err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) 3000bb98: 0afffff0 beq 3000bb60 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); break; } PIPE_UNLOCK(pipe); return 0; 3000bb9c: e3e0a003 mvn sl, #3 <== NOT EXECUTED 3000bba0: eaffffd4 b 3000baf8 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 3000bba4: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 3000bba8: e5952020 ldr r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000bbac: e3530000 cmp r3, #0 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 3000bbb0: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000bbb4: e2833001 add r3, r3, #1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 3000bbb8: e5852020 str r2, [r5, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000bbbc: e5853010 str r3, [r5, #16] <== NOT EXECUTED 3000bbc0: 0a000066 beq 3000bd60 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; if (pipe->Writers ++ == 0) 3000bbc4: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 3000bbc8: e5952024 ldr r2, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000bbcc: e3530000 cmp r3, #0 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 3000bbd0: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000bbd4: e2833001 add r3, r3, #1 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 3000bbd8: e5852024 str r2, [r5, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000bbdc: e5853014 str r3, [r5, #20] <== NOT EXECUTED 3000bbe0: 1affff9c bne 3000ba58 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 3000bbe4: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED 3000bbe8: e28d1008 add r1, sp, #8 <== NOT EXECUTED 3000bbec: eb0002ad bl 3000c6a8 <== NOT EXECUTED 3000bbf0: eaffff98 b 3000ba58 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 3000bbf4: e3a00034 mov r0, #52 ; 0x34 <== NOT EXECUTED 3000bbf8: ebfff6a5 bl 30009694 <== NOT EXECUTED if (pipe == NULL) 3000bbfc: e3500000 cmp r0, #0 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 3000bc00: e1a08000 mov r8, r0 <== NOT EXECUTED 3000bc04: e1a06000 mov r6, r0 <== NOT EXECUTED if (pipe == NULL) 3000bc08: 03e0a00b mvneq sl, #11 <== NOT EXECUTED 3000bc0c: 0affff84 beq 3000ba24 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 3000bc10: e1a03000 mov r3, r0 <== NOT EXECUTED 3000bc14: e4839004 str r9, [r3], #4 <== NOT EXECUTED 3000bc18: e2833004 add r3, r3, #4 <== NOT EXECUTED 3000bc1c: e4839004 str r9, [r3], #4 <== NOT EXECUTED 3000bc20: e4839004 str r9, [r3], #4 <== NOT EXECUTED 3000bc24: e4839004 str r9, [r3], #4 <== NOT EXECUTED 3000bc28: e4839004 str r9, [r3], #4 <== NOT EXECUTED 3000bc2c: e4839004 str r9, [r3], #4 <== NOT EXECUTED 3000bc30: e4839004 str r9, [r3], #4 <== NOT EXECUTED 3000bc34: e4839004 str r9, [r3], #4 <== NOT EXECUTED 3000bc38: e4839004 str r9, [r3], #4 <== NOT EXECUTED 3000bc3c: e4839004 str r9, [r3], #4 <== NOT EXECUTED pipe->Size = PIPE_BUF; 3000bc40: e3a02c02 mov r2, #512 ; 0x200 <== NOT EXECUTED int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); 3000bc44: e4839004 str r9, [r3], #4 <== NOT EXECUTED 3000bc48: e5839000 str r9, [r3] <== NOT EXECUTED pipe->Size = PIPE_BUF; pipe->Buffer = malloc(pipe->Size); 3000bc4c: e1a00002 mov r0, r2 <== NOT EXECUTED pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; 3000bc50: e5882004 str r2, [r8, #4] <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 3000bc54: ebfff68e bl 30009694 <== NOT EXECUTED if (! pipe->Buffer) 3000bc58: 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); 3000bc5c: e5880000 str r0, [r8] <== NOT EXECUTED if (! pipe->Buffer) 3000bc60: 03e0a00b mvneq sl, #11 <== NOT EXECUTED 3000bc64: 0a00003a beq 3000bd54 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 3000bc68: e59fa15c ldr sl, [pc, #348] ; 3000bdcc <== NOT EXECUTED 3000bc6c: e59f015c ldr r0, [pc, #348] ; 3000bdd0 <== NOT EXECUTED 3000bc70: e5da3000 ldrb r3, [sl] <== NOT EXECUTED 3000bc74: e1a01009 mov r1, r9 <== NOT EXECUTED 3000bc78: e1830000 orr r0, r3, r0 <== NOT EXECUTED 3000bc7c: e1a02009 mov r2, r9 <== NOT EXECUTED 3000bc80: e288302c add r3, r8, #44 ; 0x2c <== NOT EXECUTED 3000bc84: eb00023c bl 3000c57c <== NOT EXECUTED 3000bc88: e2501000 subs r1, r0, #0 <== NOT EXECUTED 3000bc8c: 1a00002d bne 3000bd48 <== 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( 3000bc90: e5da3000 ldrb r3, [sl] <== NOT EXECUTED 3000bc94: e59f0138 ldr r0, [pc, #312] ; 3000bdd4 <== NOT EXECUTED 3000bc98: e1a02001 mov r2, r1 <== NOT EXECUTED 3000bc9c: e1830000 orr r0, r3, r0 <== NOT EXECUTED 3000bca0: e2883030 add r3, r8, #48 ; 0x30 <== NOT EXECUTED 3000bca4: eb000234 bl 3000c57c <== NOT EXECUTED 3000bca8: e2503000 subs r3, r0, #0 <== NOT EXECUTED 3000bcac: 1a000023 bne 3000bd40 <== 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( 3000bcb0: e5da2000 ldrb r2, [sl] <== NOT EXECUTED 3000bcb4: e59f011c ldr r0, [pc, #284] ; 3000bdd8 <== NOT EXECUTED 3000bcb8: e288c028 add ip, r8, #40 ; 0x28 <== NOT EXECUTED 3000bcbc: e1820000 orr r0, r2, r0 <== NOT EXECUTED 3000bcc0: e3a01001 mov r1, #1 <== NOT EXECUTED 3000bcc4: e3a02010 mov r2, #16 <== NOT EXECUTED 3000bcc8: e58dc000 str ip, [sp] <== NOT EXECUTED 3000bccc: ebffe227 bl 30004570 <== NOT EXECUTED 3000bcd0: e3500000 cmp r0, #0 <== NOT EXECUTED 3000bcd4: 1a000017 bne 3000bd38 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 3000bcd8: e28d8004 add r8, sp, #4 <== NOT EXECUTED 3000bcdc: e596102c ldr r1, [r6, #44] ; 0x2c <== NOT EXECUTED 3000bce0: e1a02008 mov r2, r8 <== NOT EXECUTED 3000bce4: e59f00f0 ldr r0, [pc, #240] ; 3000bddc <== NOT EXECUTED 3000bce8: ebffe881 bl 30005ef4 <_Objects_Get> <== 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 3000bcec: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED 3000bcf0: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED 3000bcf4: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 3000bcf8: ebffeab9 bl 300067e4 <_Thread_Enable_dispatch> <== NOT EXECUTED 3000bcfc: e1a02008 mov r2, r8 <== NOT EXECUTED 3000bd00: e5961030 ldr r1, [r6, #48] ; 0x30 <== NOT EXECUTED 3000bd04: e59f00d0 ldr r0, [pc, #208] ; 3000bddc <== NOT EXECUTED 3000bd08: ebffe879 bl 30005ef4 <_Objects_Get> <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 3000bd0c: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED 3000bd10: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED 3000bd14: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 3000bd18: ebffeab1 bl 300067e4 <_Thread_Enable_dispatch> <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 3000bd1c: e5da3000 ldrb r3, [sl] <== NOT EXECUTED 3000bd20: e353007a cmp r3, #122 ; 0x7a <== NOT EXECUTED 3000bd24: e2833001 add r3, r3, #1 <== NOT EXECUTED 3000bd28: e5ca3000 strb r3, [sl] <== NOT EXECUTED c = 'a'; 3000bd2c: 03a03061 moveq r3, #97 ; 0x61 <== NOT EXECUTED 3000bd30: 05ca3000 strbeq r3, [sl] <== NOT EXECUTED 3000bd34: eaffff30 b 3000b9fc <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 3000bd38: e5980030 ldr r0, [r8, #48] ; 0x30 <== NOT EXECUTED 3000bd3c: eb00023f bl 3000c640 <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 3000bd40: e598002c ldr r0, [r8, #44] ; 0x2c <== NOT EXECUTED 3000bd44: eb00023d bl 3000c640 <== NOT EXECUTED err_rbar: free(pipe->Buffer); 3000bd48: e5980000 ldr r0, [r8] <== NOT EXECUTED 3000bd4c: ebfff4f2 bl 3000911c <== NOT EXECUTED 3000bd50: e3e0a003 mvn sl, #3 <== NOT EXECUTED err_buf: free(pipe); 3000bd54: e1a00008 mov r0, r8 <== NOT EXECUTED 3000bd58: ebfff4ef bl 3000911c <== NOT EXECUTED 3000bd5c: eaffff30 b 3000ba24 <== NOT EXECUTED break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 3000bd60: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED 3000bd64: e28d1008 add r1, sp, #8 <== NOT EXECUTED 3000bd68: eb00024e bl 3000c6a8 <== NOT EXECUTED 3000bd6c: eaffff94 b 3000bbc4 <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); 3000bd70: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED 3000bd74: e28d1008 add r1, sp, #8 <== NOT EXECUTED 3000bd78: eb00024a bl 3000c6a8 <== NOT EXECUTED 3000bd7c: eaffff6f b 3000bb40 <== NOT EXECUTED goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) PIPE_WAKEUPREADERS(pipe); 3000bd80: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED 3000bd84: e28d1008 add r1, sp, #8 <== NOT EXECUTED 3000bd88: eb000246 bl 3000c6a8 <== NOT EXECUTED 3000bd8c: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED 3000bd90: eaffff44 b 3000baa8 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 3000bd94: e596002c ldr r0, [r6, #44] ; 0x2c <== NOT EXECUTED 3000bd98: eb000228 bl 3000c640 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 3000bd9c: e5960030 ldr r0, [r6, #48] ; 0x30 <== NOT EXECUTED 3000bda0: eb000226 bl 3000c640 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 3000bda4: e5960028 ldr r0, [r6, #40] ; 0x28 <== NOT EXECUTED 3000bda8: ebffe262 bl 30004738 <== NOT EXECUTED free(pipe->Buffer); 3000bdac: e5960000 ldr r0, [r6] <== NOT EXECUTED 3000bdb0: ebfff4d9 bl 3000911c <== NOT EXECUTED free(pipe); 3000bdb4: e1a00006 mov r0, r6 <== NOT EXECUTED 3000bdb8: ebfff4d7 bl 3000911c <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 3000bdbc: e5950000 ldr r0, [r5] <== NOT EXECUTED 3000bdc0: ebffe2cd bl 300048fc <== NOT EXECUTED 3000bdc4: eaffff26 b 3000ba64 <== NOT EXECUTED 3000bdc8: 3001a7c4 .word 0x3001a7c4 3000bdcc: 3001a134 .word 0x3001a134 3000bdd0: 50497200 .word 0x50497200 3000bdd4: 50497700 .word 0x50497700 3000bdd8: 50497300 .word 0x50497300 3000bddc: 3001b2a4 .word 0x3001b2a4 30008f58 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 30008f58: e59f3044 ldr r3, [pc, #68] ; 30008fa4 <== NOT EXECUTED 30008f5c: e4932004 ldr r2, [r3], #4 <== NOT EXECUTED 30008f60: e1520003 cmp r2, r3 <== NOT EXECUTED 30008f64: 0a00000a beq 30008f94 <== NOT EXECUTED !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = ( rtems_filesystem_mount_table_entry_t * )the_node; if (the_mount_entry->mt_point_node.mt_entry == fs_root_loc->mt_entry ) { 30008f68: e5910010 ldr r0, [r1, #16] <== NOT EXECUTED 30008f6c: e5921018 ldr r1, [r2, #24] <== NOT EXECUTED 30008f70: e1510000 cmp r1, r0 <== NOT EXECUTED 30008f74: 1a000003 bne 30008f88 <== NOT EXECUTED 30008f78: ea000007 b 30008f9c <== NOT EXECUTED 30008f7c: e5921018 ldr r1, [r2, #24] <== NOT EXECUTED 30008f80: e1510000 cmp r1, r0 <== NOT EXECUTED 30008f84: 0a000004 beq 30008f9c <== NOT EXECUTED * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { 30008f88: e5922000 ldr r2, [r2] <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 30008f8c: e1520003 cmp r2, r3 <== NOT EXECUTED 30008f90: 1afffff9 bne 30008f7c <== NOT EXECUTED 30008f94: e3a00000 mov r0, #0 <== NOT EXECUTED return true; } } return false; } 30008f98: e12fff1e bx lr <== NOT EXECUTED /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 30008f9c: e3a00001 mov r0, #1 <== NOT EXECUTED 30008fa0: e12fff1e bx lr <== NOT EXECUTED 30008fa4: 30066b98 .word 0x30066b98 30002710 : { long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); 30002710: e59f3108 ldr r3, [pc, #264] ; 30002820 long fpathconf( int fd, int name ) { 30002714: e52de004 push {lr} ; (str lr, [sp, #-4]!) long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); 30002718: e5933000 ldr r3, [r3] 3000271c: e1500003 cmp r0, r3 30002720: 2a000034 bcs 300027f8 iop = rtems_libio_iop(fd); 30002724: e59f30f8 ldr r3, [pc, #248] ; 30002824 30002728: e5933000 ldr r3, [r3] 3000272c: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); 30002730: e5903014 ldr r3, [r0, #20] 30002734: e3130c01 tst r3, #256 ; 0x100 30002738: 0a00002e beq 300027f8 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 3000273c: e3130002 tst r3, #2 30002740: 0a000031 beq 3000280c /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; 30002744: e5903028 ldr r3, [r0, #40] ; 0x28 switch ( name ) { 30002748: e351000b cmp r1, #11 3000274c: 979ff101 ldrls pc, [pc, r1, lsl #2] 30002750: ea00000d b 3000278c 30002754: 300027a0 .word 0x300027a0 <== NOT EXECUTED 30002758: 300027a8 .word 0x300027a8 <== NOT EXECUTED 3000275c: 300027b0 .word 0x300027b0 <== NOT EXECUTED 30002760: 300027b8 .word 0x300027b8 <== NOT EXECUTED 30002764: 300027c0 .word 0x300027c0 <== NOT EXECUTED 30002768: 300027c8 .word 0x300027c8 <== NOT EXECUTED 3000276c: 300027d0 .word 0x300027d0 <== NOT EXECUTED 30002770: 300027d8 .word 0x300027d8 <== NOT EXECUTED 30002774: 300027e0 .word 0x300027e0 <== NOT EXECUTED 30002778: 300027e8 .word 0x300027e8 <== NOT EXECUTED 3000277c: 300027f0 .word 0x300027f0 <== NOT EXECUTED 30002780: 30002784 .word 0x30002784 <== NOT EXECUTED break; case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; break; case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 30002784: e5930060 ldr r0, [r3, #96] ; 0x60 break; 30002788: e49df004 pop {pc} ; (ldr pc, [sp], #4) default: rtems_set_errno_and_return_minus_one( EINVAL ); 3000278c: eb003674 bl 30010164 <__errno> 30002790: e3a03016 mov r3, #22 30002794: e5803000 str r3, [r0] 30002798: e3e00000 mvn r0, #0 break; } return return_value; } 3000279c: e49df004 pop {pc} ; (ldr pc, [sp], #4) the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; switch ( name ) { case _PC_LINK_MAX: return_value = the_limits->link_max; 300027a0: e5930038 ldr r0, [r3, #56] ; 0x38 break; 300027a4: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_MAX_CANON: return_value = the_limits->max_canon; 300027a8: e593003c ldr r0, [r3, #60] ; 0x3c break; 300027ac: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_MAX_INPUT: return_value = the_limits->max_input; 300027b0: e5930040 ldr r0, [r3, #64] ; 0x40 break; 300027b4: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_NAME_MAX: return_value = the_limits->name_max; 300027b8: e5930044 ldr r0, [r3, #68] ; 0x44 break; 300027bc: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PATH_MAX: return_value = the_limits->path_max; 300027c0: e5930048 ldr r0, [r3, #72] ; 0x48 break; 300027c4: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 300027c8: e593004c ldr r0, [r3, #76] ; 0x4c break; 300027cc: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 300027d0: e5930054 ldr r0, [r3, #84] ; 0x54 break; 300027d4: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 300027d8: e5930058 ldr r0, [r3, #88] ; 0x58 break; 300027dc: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 300027e0: e5930064 ldr r0, [r3, #100] ; 0x64 break; 300027e4: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 300027e8: e5930050 ldr r0, [r3, #80] ; 0x50 break; 300027ec: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 300027f0: e593005c ldr r0, [r3, #92] ; 0x5c break; 300027f4: e49df004 pop {pc} ; (ldr pc, [sp], #4) rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); iop = rtems_libio_iop(fd); rtems_libio_check_is_open(iop); 300027f8: eb003659 bl 30010164 <__errno> 300027fc: e3a03009 mov r3, #9 30002800: e5803000 str r3, [r0] 30002804: e3e00000 mvn r0, #0 30002808: e49df004 pop {pc} ; (ldr pc, [sp], #4) rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 3000280c: eb003654 bl 30010164 <__errno> <== NOT EXECUTED 30002810: e3a03016 mov r3, #22 <== NOT EXECUTED 30002814: e5803000 str r3, [r0] <== NOT EXECUTED 30002818: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000281c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30002820: 3001df10 .word 0x3001df10 30002824: 3001e8b8 .word 0x3001e8b8 3000911c : void free( void *ptr ) { MSBUMP(free_calls, 1); 3000911c: e59f3088 ldr r3, [pc, #136] ; 300091ac 30009120: e92d4030 push {r4, r5, lr} 30009124: e593200c ldr r2, [r3, #12] if ( !ptr ) 30009128: e2504000 subs r4, r0, #0 void free( void *ptr ) { MSBUMP(free_calls, 1); 3000912c: e2822001 add r2, r2, #1 30009130: e583200c str r2, [r3, #12] if ( !ptr ) 30009134: 08bd8030 popeq {r4, r5, pc} /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 30009138: e59f3070 ldr r3, [pc, #112] ; 300091b0 3000913c: e5933000 ldr r3, [r3] 30009140: e3530003 cmp r3, #3 30009144: 0a000012 beq 30009194 #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 30009148: e59f3064 ldr r3, [pc, #100] ; 300091b4 3000914c: e5933000 ldr r3, [r3] 30009150: e3530000 cmp r3, #0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 30009154: 11a00004 movne r0, r4 30009158: 11a0e00f movne lr, pc 3000915c: 1593f008 ldrne pc, [r3, #8] if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 30009160: e59f5050 ldr r5, [pc, #80] ; 300091b8 30009164: e1a01004 mov r1, r4 30009168: e5950000 ldr r0, [r5] 3000916c: eb0006eb bl 3000ad20 <_Protected_heap_Free> 30009170: e3500000 cmp r0, #0 30009174: 18bd8030 popne {r4, r5, pc} printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, 30009178: e5952000 ldr r2, [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", 3000917c: e59f0038 ldr r0, [pc, #56] ; 300091bc <== NOT EXECUTED 30009180: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30009184: e5922018 ldr r2, [r2, #24] <== NOT EXECUTED 30009188: e1a01004 mov r1, r4 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 3000918c: 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", 30009190: eaffe3b6 b 30002070 <== NOT EXECUTED /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && 30009194: eb00011e bl 30009614 30009198: e3500000 cmp r0, #0 3000919c: 1affffe9 bne 30009148 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 300091a0: e1a00004 mov r0, r4 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 300091a4: 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); 300091a8: ea00012c b 30009660 <== NOT EXECUTED 300091ac: 3001a854 .word 0x3001a854 300091b0: 3001ab50 .word 0x3001ab50 300091b4: 3001a668 .word 0x3001a668 300091b8: 30019eb4 .word 0x30019eb4 300091bc: 30019b7c .word 0x30019b7c 30026ad0 : static void free_user_env(void *venv) { rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 30026ad0: e59f3058 ldr r3, [pc, #88] ; 30026b30 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 30026ad4: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 30026ad8: e1500003 cmp r0, r3 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 30026adc: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 30026ae0: 08bd8010 popeq {r4, pc} <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 30026ae4: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED 30026ae8: e3530000 cmp r3, #0 <== NOT EXECUTED 30026aec: 0a000004 beq 30026b04 <== NOT EXECUTED 30026af0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30026af4: e3530000 cmp r3, #0 <== NOT EXECUTED 30026af8: 12800004 addne r0, r0, #4 <== NOT EXECUTED 30026afc: 11a0e00f movne lr, pc <== NOT EXECUTED 30026b00: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 30026b04: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED 30026b08: e3530000 cmp r3, #0 <== NOT EXECUTED 30026b0c: 0a000004 beq 30026b24 <== NOT EXECUTED 30026b10: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30026b14: e3530000 cmp r3, #0 <== NOT EXECUTED 30026b18: 12840018 addne r0, r4, #24 <== NOT EXECUTED 30026b1c: 11a0e00f movne lr, pc <== NOT EXECUTED 30026b20: 112fff13 bxne r3 <== NOT EXECUTED free(env); 30026b24: e1a00004 mov r0, r4 <== NOT EXECUTED } } 30026b28: e8bd4010 pop {r4, lr} <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 30026b2c: eaff7b08 b 30005754 <== NOT EXECUTED 30026b30: 30066bb0 .word 0x30066bb0 300184b4 : int fstat( int fd, struct stat *sbuf ) { 300184b4: e92d4030 push {r4, r5, lr} /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 300184b8: e2515000 subs r5, r1, #0 300184bc: 0a000023 beq 30018550 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 300184c0: e59f309c ldr r3, [pc, #156] ; 30018564 300184c4: e5933000 ldr r3, [r3] 300184c8: e1500003 cmp r0, r3 300184cc: 2a000015 bcs 30018528 300184d0: e59f3090 ldr r3, [pc, #144] ; 30018568 300184d4: e5934000 ldr r4, [r3] 300184d8: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 300184dc: e5943014 ldr r3, [r4, #20] 300184e0: e3130c01 tst r3, #256 ; 0x100 300184e4: 0a00000f beq 30018528 if ( !iop->handlers ) 300184e8: e594303c ldr r3, [r4, #60] ; 0x3c 300184ec: e3530000 cmp r3, #0 300184f0: 0a00000c beq 30018528 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fstat_h ) 300184f4: e5933018 ldr r3, [r3, #24] 300184f8: e3530000 cmp r3, #0 300184fc: 0a00000e beq 3001853c /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 30018500: e3a01000 mov r1, #0 30018504: e3a02048 mov r2, #72 ; 0x48 30018508: e1a00005 mov r0, r5 3001850c: ebffd6fe bl 3000e10c return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 30018510: e2840018 add r0, r4, #24 30018514: e1a01005 mov r1, r5 30018518: e594303c ldr r3, [r4, #60] ; 0x3c 3001851c: e1a0e00f mov lr, pc 30018520: e593f018 ldr pc, [r3, #24] } 30018524: e8bd8030 pop {r4, r5, pc} iop = rtems_libio_iop( fd ); rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 30018528: ebffd4ad bl 3000d7e4 <__errno> 3001852c: e3a03009 mov r3, #9 30018530: e5803000 str r3, [r0] 30018534: e3e00000 mvn r0, #0 30018538: e8bd8030 pop {r4, r5, pc} if ( !iop->handlers->fstat_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 3001853c: ebffd4a8 bl 3000d7e4 <__errno> <== NOT EXECUTED 30018540: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30018544: e5803000 str r3, [r0] <== NOT EXECUTED 30018548: e3e00000 mvn r0, #0 <== NOT EXECUTED 3001854c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) rtems_set_errno_and_return_minus_one( EFAULT ); 30018550: ebffd4a3 bl 3000d7e4 <__errno> 30018554: e3a0300e mov r3, #14 30018558: e5803000 str r3, [r0] 3001855c: e3e00000 mvn r0, #0 30018560: e8bd8030 pop {r4, r5, pc} 30018564: 30019ea8 .word 0x30019ea8 30018568: 3001a848 .word 0x3001a848 300257dc : int fd ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300257dc: e59f308c ldr r3, [pc, #140] ; 30025870 #include int fsync( int fd ) { 300257e0: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300257e4: e5933000 ldr r3, [r3] 300257e8: e1500003 cmp r0, r3 300257ec: 2a000010 bcs 30025834 iop = rtems_libio_iop( fd ); 300257f0: e59f307c ldr r3, [pc, #124] ; 30025874 300257f4: e5933000 ldr r3, [r3] 300257f8: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); 300257fc: e5903014 ldr r3, [r0, #20] 30025800: e3130c01 tst r3, #256 ; 0x100 30025804: 0a00000a beq 30025834 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30025808: e3130004 tst r3, #4 3002580c: 0a00000d beq 30025848 /* * Now process the fsync(). */ if ( !iop->handlers ) 30025810: e590303c ldr r3, [r0, #60] ; 0x3c 30025814: e3530000 cmp r3, #0 30025818: 0a000005 beq 30025834 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) 3002581c: e5933028 ldr r3, [r3, #40] ; 0x28 30025820: e3530000 cmp r3, #0 30025824: 0a00000c beq 3002585c rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->fsync_h)( iop ); 30025828: e1a0e00f mov lr, pc 3002582c: e12fff13 bx r3 } 30025830: e49df004 pop {pc} ; (ldr pc, [sp], #4) /* * Now process the fsync(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 30025834: eb006438 bl 3003e91c <__errno> <== NOT EXECUTED 30025838: e3a03009 mov r3, #9 <== NOT EXECUTED 3002583c: e5803000 str r3, [r0] <== NOT EXECUTED 30025840: e3e00000 mvn r0, #0 <== NOT EXECUTED 30025844: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30025848: eb006433 bl 3003e91c <__errno> 3002584c: e3a03016 mov r3, #22 30025850: e5803000 str r3, [r0] 30025854: e3e00000 mvn r0, #0 30025858: e49df004 pop {pc} ; (ldr pc, [sp], #4) if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->fsync_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 3002585c: eb00642e bl 3003e91c <__errno> 30025860: e3a03086 mov r3, #134 ; 0x86 30025864: e5803000 str r3, [r0] 30025868: e3e00000 mvn r0, #0 3002586c: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30025870: 30062a70 .word 0x30062a70 30025874: 30066b54 .word 0x30066b54 300091c0 : int ftruncate( int fd, off_t length ) { 300091c0: e92d40f0 push {r4, r5, r6, r7, lr} rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 300091c4: e59f30f0 ldr r3, [pc, #240] ; 300092bc int ftruncate( int fd, off_t length ) { 300091c8: e24dd014 sub sp, sp, #20 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 300091cc: e5933000 ldr r3, [r3] int ftruncate( int fd, off_t length ) { 300091d0: e1a05001 mov r5, r1 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 300091d4: e1500003 cmp r0, r3 int ftruncate( int fd, off_t length ) { 300091d8: e1a06002 mov r6, r2 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 300091dc: 2a000022 bcs 3000926c iop = rtems_libio_iop( fd ); 300091e0: e59f30d8 ldr r3, [pc, #216] ; 300092c0 300091e4: e5934000 ldr r4, [r3] 300091e8: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); 300091ec: e5943014 ldr r3, [r4, #20] 300091f0: e3130c01 tst r3, #256 ; 0x100 300091f4: 0a00001c beq 3000926c /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 300091f8: e284c018 add ip, r4, #24 300091fc: e1a0700d mov r7, sp 30009200: e8bc000f ldm ip!, {r0, r1, r2, r3} 30009204: e8a7000f stmia r7!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) 30009208: e59d100c ldr r1, [sp, #12] /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 3000920c: e59c2000 ldr r2, [ip] if ( !loc.ops->node_type_h ) 30009210: e591c010 ldr ip, [r1, #16] /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 30009214: e5872000 str r2, [r7] if ( !loc.ops->node_type_h ) 30009218: e35c0000 cmp ip, #0 3000921c: 0a00001c beq 30009294 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 30009220: e1a0000d mov r0, sp 30009224: e1a0e00f mov lr, pc 30009228: e12fff1c bx ip 3000922c: e3500001 cmp r0, #1 30009230: 0a00001c beq 300092a8 rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30009234: e5943014 ldr r3, [r4, #20] 30009238: e3130004 tst r3, #4 3000923c: 0a00000f beq 30009280 if ( !iop->handlers->ftruncate_h ) 30009240: e594303c ldr r3, [r4, #60] ; 0x3c 30009244: e5933020 ldr r3, [r3, #32] 30009248: e3530000 cmp r3, #0 3000924c: 0a000010 beq 30009294 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->ftruncate_h)( iop, length ); 30009250: e1a00004 mov r0, r4 30009254: e1a01005 mov r1, r5 30009258: e1a02006 mov r2, r6 3000925c: e1a0e00f mov lr, pc 30009260: e12fff13 bx r3 } 30009264: e28dd014 add sp, sp, #20 30009268: e8bd80f0 pop {r4, r5, r6, r7, pc} rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 3000926c: eb00115c bl 3000d7e4 <__errno> <== NOT EXECUTED 30009270: e3a03009 mov r3, #9 <== NOT EXECUTED 30009274: e5803000 str r3, [r0] <== NOT EXECUTED 30009278: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000927c: eafffff8 b 30009264 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30009280: eb001157 bl 3000d7e4 <__errno> <== NOT EXECUTED 30009284: e3a03016 mov r3, #22 <== NOT EXECUTED 30009288: e5803000 str r3, [r0] <== NOT EXECUTED 3000928c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30009290: eafffff3 b 30009264 <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30009294: eb001152 bl 3000d7e4 <__errno> <== NOT EXECUTED 30009298: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000929c: e5803000 str r3, [r0] <== NOT EXECUTED 300092a0: e3e00000 mvn r0, #0 <== NOT EXECUTED 300092a4: eaffffee b 30009264 <== NOT EXECUTED loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( EISDIR ); 300092a8: eb00114d bl 3000d7e4 <__errno> 300092ac: e3a03015 mov r3, #21 300092b0: e5803000 str r3, [r0] 300092b4: e3e00000 mvn r0, #0 300092b8: eaffffe9 b 30009264 300092bc: 30019ea8 .word 0x30019ea8 300092c0: 3001a848 .word 0x3001a848 30058278 : /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 30058278: e59f30b4 ldr r3, [pc, #180] ; 30058334 int getdents( int dd_fd, char *dd_buf, int dd_len ) { 3005827c: e92d40f0 push {r4, r5, r6, r7, lr} /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 30058280: e5933000 ldr r3, [r3] int getdents( int dd_fd, char *dd_buf, int dd_len ) { 30058284: e24dd014 sub sp, sp, #20 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 30058288: e1500003 cmp r0, r3 3005828c: 359f30a4 ldrcc r3, [pc, #164] ; 30058338 30058290: 23a04000 movcs r4, #0 30058294: 35934000 ldrcc r4, [r3] /* * Make sure we are working on a directory */ loc = iop->pathinfo; 30058298: e1a0700d mov r7, sp /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 3005829c: 30844300 addcc r4, r4, r0, lsl #6 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 300582a0: e284c018 add ip, r4, #24 int getdents( int dd_fd, char *dd_buf, int dd_len ) { 300582a4: e1a06001 mov r6, r1 300582a8: e1a05002 mov r5, r2 iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 300582ac: e8bc000f ldm ip!, {r0, r1, r2, r3} 300582b0: e8a7000f stmia r7!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) 300582b4: e59d100c ldr r1, [sp, #12] iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 300582b8: e59c2000 ldr r2, [ip] if ( !loc.ops->node_type_h ) 300582bc: e591c010 ldr ip, [r1, #16] iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 300582c0: e5872000 str r2, [r7] if ( !loc.ops->node_type_h ) 300582c4: e35c0000 cmp ip, #0 300582c8: 0a000014 beq 30058320 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 300582cc: e1a0000d mov r0, sp 300582d0: e1a0e00f mov lr, pc 300582d4: e12fff1c bx ip 300582d8: e3500001 cmp r0, #1 300582dc: 1a00000a bne 3005830c /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 300582e0: e594303c ldr r3, [r4, #60] ; 0x3c 300582e4: e5933008 ldr r3, [r3, #8] 300582e8: e3530000 cmp r3, #0 300582ec: 0a00000b beq 30058320 rtems_set_errno_and_return_minus_one( ENOTSUP ); return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 300582f0: e1a00004 mov r0, r4 300582f4: e1a01006 mov r1, r6 300582f8: e1a02005 mov r2, r5 300582fc: e1a0e00f mov lr, pc 30058300: e12fff13 bx r3 } 30058304: e28dd014 add sp, sp, #20 30058308: e8bd80f0 pop {r4, r5, r6, r7, pc} loc = iop->pathinfo; if ( !loc.ops->node_type_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 3005830c: ebff9982 bl 3003e91c <__errno> 30058310: e3a03014 mov r3, #20 30058314: e5803000 str r3, [r0] 30058318: e3e00000 mvn r0, #0 3005831c: eafffff8 b 30058304 * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30058320: ebff997d bl 3003e91c <__errno> <== NOT EXECUTED 30058324: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30058328: e5803000 str r3, [r0] <== NOT EXECUTED 3005832c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30058330: eafffff3 b 30058304 <== NOT EXECUTED 30058334: 30062a70 .word 0x30062a70 30058338: 30066b54 .word 0x30066b54 300259a4 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 300259a4: e59f3008 ldr r3, [pc, #8] ; 300259b4 <== NOT EXECUTED 300259a8: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Gid; } 300259ac: e1d303b4 ldrh r0, [r3, #52] ; 0x34 <== NOT EXECUTED 300259b0: e12fff1e bx lr <== NOT EXECUTED 300259b4: 30062da8 .word 0x30062da8 30026010 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 30026010: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 30026014: e59d801c ldr r8, [sp, #28] 30026018: e1a05000 mov r5, r0 3002601c: e1a0a001 mov sl, r1 30026020: e1a04002 mov r4, r2 30026024: e1a07003 mov r7, r3 FILE *fp; int match; init_etc_passwd_group(); 30026028: ebffffb2 bl 30025ef8 if ((fp = fopen("/etc/group", "r")) == NULL) { 3002602c: e59f00b0 ldr r0, [pc, #176] ; 300260e4 30026030: e59f10b0 ldr r1, [pc, #176] ; 300260e8 30026034: eb0064a8 bl 3003f2dc 30026038: e2506000 subs r6, r0, #0 3002603c: 1a000006 bne 3002605c 30026040: ea000022 b 300260d0 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 30026044: e5940000 ldr r0, [r4] 30026048: eb007a56 bl 300449a8 3002604c: e2700001 rsbs r0, r0, #1 30026050: 33a00000 movcc r0, #0 } else { match = (grp->gr_gid == gid); } if (match) { 30026054: e3500000 cmp r0, #0 30026058: 1a00000f bne 3002609c if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 3002605c: e1a01004 mov r1, r4 30026060: e1a02007 mov r2, r7 30026064: e1a03008 mov r3, r8 30026068: e1a00006 mov r0, r6 3002606c: ebfffee1 bl 30025bf8 30026070: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 30026074: e1a01005 mov r1, r5 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 30026078: 0a00000d beq 300260b4 errno = EINVAL; fclose(fp); return -1; } if (name) { 3002607c: e3550000 cmp r5, #0 30026080: 1affffef bne 30026044 match = (strcmp(grp->gr_name, name) == 0); } else { match = (grp->gr_gid == gid); 30026084: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED 30026088: e150000a cmp r0, sl <== NOT EXECUTED 3002608c: 13a00000 movne r0, #0 <== NOT EXECUTED 30026090: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { 30026094: e3500000 cmp r0, #0 <== NOT EXECUTED 30026098: 0affffef beq 3002605c <== NOT EXECUTED fclose(fp); 3002609c: e1a00006 mov r0, r6 300260a0: eb00626a bl 3003ea50 *result = grp; 300260a4: e59d3020 ldr r3, [sp, #32] 300260a8: e3a00000 mov r0, #0 300260ac: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } 300260b0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { errno = EINVAL; 300260b4: eb006218 bl 3003e91c <__errno> <== NOT EXECUTED 300260b8: e3a03016 mov r3, #22 <== NOT EXECUTED 300260bc: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 300260c0: e1a00006 mov r0, r6 <== NOT EXECUTED 300260c4: eb006261 bl 3003ea50 <== NOT EXECUTED 300260c8: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 300260cc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; 300260d0: eb006211 bl 3003e91c <__errno> <== NOT EXECUTED 300260d4: e3a03016 mov r3, #22 <== NOT EXECUTED 300260d8: e5803000 str r3, [r0] <== NOT EXECUTED 300260dc: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 300260e0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 300260e4: 3005b800 .word 0x3005b800 300260e8: 30061088 .word 0x30061088 30025d4c : return NULL; return p; } struct group *getgrent(void) { 30025d4c: e92d4010 push {r4, lr} <== NOT EXECUTED if (group_fp == NULL) 30025d50: e59f4030 ldr r4, [pc, #48] ; 30025d88 <== NOT EXECUTED 30025d54: e5940000 ldr r0, [r4] <== NOT EXECUTED 30025d58: e3500000 cmp r0, #0 <== NOT EXECUTED 30025d5c: 1a000001 bne 30025d68 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 30025d60: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &grent; } 30025d64: e8bd8010 pop {r4, pc} <== NOT EXECUTED struct group *getgrent(void) { if (group_fp == NULL) return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 30025d68: e2841008 add r1, r4, #8 <== NOT EXECUTED 30025d6c: e2842018 add r2, r4, #24 <== NOT EXECUTED 30025d70: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 30025d74: ebffff9f bl 30025bf8 <== NOT EXECUTED 30025d78: e3500000 cmp r0, #0 <== NOT EXECUTED 30025d7c: 12840008 addne r0, r4, #8 <== NOT EXECUTED 30025d80: 18bd8010 popne {r4, pc} <== NOT EXECUTED 30025d84: eafffff5 b 30025d60 <== NOT EXECUTED 30025d88: 30066868 .word 0x30066868 30026128 : struct group *getgrgid( gid_t gid ) { 30026128: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 3002612c: e59f1030 ldr r1, [pc, #48] ; 30026164 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { 30026130: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 30026134: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 30026138: e28dc004 add ip, sp, #4 <== NOT EXECUTED 3002613c: e2812010 add r2, r1, #16 <== NOT EXECUTED 30026140: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 30026144: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 30026148: e58dc000 str ip, [sp] <== NOT EXECUTED 3002614c: ebffffe6 bl 300260ec <== NOT EXECUTED 30026150: e3500000 cmp r0, #0 <== NOT EXECUTED 30026154: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; 30026158: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 3002615c: e28dd008 add sp, sp, #8 <== NOT EXECUTED 30026160: e8bd8000 pop {pc} <== NOT EXECUTED 30026164: 30066870 .word 0x30066870 300260ec : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 300260ec: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 300260f0: e1a0c002 mov ip, r2 <== NOT EXECUTED 300260f4: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 300260f8: e1a0e001 mov lr, r1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 300260fc: e58d3000 str r3, [sp] <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 30026100: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 30026104: e1a0300c mov r3, ip <== NOT EXECUTED 30026108: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 3002610c: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 30026110: e1a0200e mov r2, lr <== NOT EXECUTED 30026114: e3a00000 mov r0, #0 <== NOT EXECUTED 30026118: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3002611c: ebffffbb bl 30026010 <== NOT EXECUTED } 30026120: e28dd008 add sp, sp, #8 <== NOT EXECUTED 30026124: e8bd8000 pop {pc} <== NOT EXECUTED 30026208 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 30026208: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 3002620c: e59d801c ldr r8, [sp, #28] 30026210: e1a05000 mov r5, r0 30026214: e1a0a001 mov sl, r1 30026218: e1a04002 mov r4, r2 3002621c: e1a07003 mov r7, r3 FILE *fp; int match; init_etc_passwd_group(); 30026220: ebffff34 bl 30025ef8 if ((fp = fopen("/etc/passwd", "r")) == NULL) { 30026224: e59f00b0 ldr r0, [pc, #176] ; 300262dc 30026228: e59f10b0 ldr r1, [pc, #176] ; 300262e0 3002622c: eb00642a bl 3003f2dc 30026230: e2506000 subs r6, r0, #0 30026234: 1a000006 bne 30026254 30026238: ea000022 b 300262c8 <== NOT EXECUTED errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 3002623c: e5940000 ldr r0, [r4] 30026240: eb0079d8 bl 300449a8 30026244: e2700001 rsbs r0, r0, #1 30026248: 33a00000 movcc r0, #0 } else { match = (pwd->pw_uid == uid); } if (match) { 3002624c: e3500000 cmp r0, #0 30026250: 1a00000f bne 30026294 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 30026254: e1a01004 mov r1, r4 30026258: e1a02007 mov r2, r7 3002625c: e1a03008 mov r3, r8 30026260: e1a00006 mov r0, r6 30026264: ebfffec8 bl 30025d8c 30026268: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 3002626c: e1a01005 mov r1, r5 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 30026270: 0a00000d beq 300262ac errno = EINVAL; fclose(fp); return -1; } if (name) { 30026274: e3550000 cmp r5, #0 30026278: 1affffef bne 3002623c match = (strcmp(pwd->pw_name, name) == 0); } else { match = (pwd->pw_uid == uid); 3002627c: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED 30026280: e150000a cmp r0, sl <== NOT EXECUTED 30026284: 13a00000 movne r0, #0 <== NOT EXECUTED 30026288: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { 3002628c: e3500000 cmp r0, #0 <== NOT EXECUTED 30026290: 0affffef beq 30026254 <== NOT EXECUTED fclose(fp); 30026294: e1a00006 mov r0, r6 30026298: eb0061ec bl 3003ea50 *result = pwd; 3002629c: e59d3020 ldr r3, [sp, #32] 300262a0: e3a00000 mov r0, #0 300262a4: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } 300262a8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { errno = EINVAL; 300262ac: eb00619a bl 3003e91c <__errno> <== NOT EXECUTED 300262b0: e3a03016 mov r3, #22 <== NOT EXECUTED 300262b4: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 300262b8: e1a00006 mov r0, r6 <== NOT EXECUTED 300262bc: eb0061e3 bl 3003ea50 <== NOT EXECUTED 300262c0: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 300262c4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED int match; init_etc_passwd_group(); if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; 300262c8: eb006193 bl 3003e91c <__errno> <== NOT EXECUTED 300262cc: e3a03016 mov r3, #22 <== NOT EXECUTED 300262d0: e5803000 str r3, [r0] <== NOT EXECUTED 300262d4: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 300262d8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 300262dc: 3005b750 .word 0x3005b750 300262e0: 30061088 .word 0x30061088 30025eb8 : return NULL; return p; } struct passwd *getpwent(void) { 30025eb8: e92d4010 push {r4, lr} <== NOT EXECUTED if (passwd_fp == NULL) 30025ebc: e59f4030 ldr r4, [pc, #48] ; 30025ef4 <== NOT EXECUTED 30025ec0: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED 30025ec4: e3500000 cmp r0, #0 <== NOT EXECUTED 30025ec8: 1a000001 bne 30025ed4 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 30025ecc: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &pwent; } 30025ed0: e8bd8010 pop {r4, pc} <== NOT EXECUTED struct passwd *getpwent(void) { if (passwd_fp == NULL) return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 30025ed4: e28410e0 add r1, r4, #224 ; 0xe0 <== NOT EXECUTED 30025ed8: e28420fc add r2, r4, #252 ; 0xfc <== NOT EXECUTED 30025edc: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 30025ee0: ebffffa9 bl 30025d8c <== NOT EXECUTED 30025ee4: e3500000 cmp r0, #0 <== NOT EXECUTED 30025ee8: 128400e0 addne r0, r4, #224 ; 0xe0 <== NOT EXECUTED 30025eec: 18bd8010 popne {r4, pc} <== NOT EXECUTED 30025ef0: eafffff5 b 30025ecc <== NOT EXECUTED 30025ef4: 30066868 .word 0x30066868 30026320 : struct passwd *getpwuid( uid_t uid ) { 30026320: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 30026324: e59f1030 ldr r1, [pc, #48] ; 3002635c <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { 30026328: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 3002632c: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 30026330: e28dc004 add ip, sp, #4 <== NOT EXECUTED 30026334: e281201c add r2, r1, #28 <== NOT EXECUTED 30026338: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3002633c: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 30026340: e58dc000 str ip, [sp] <== NOT EXECUTED 30026344: ebffffe6 bl 300262e4 <== NOT EXECUTED 30026348: e3500000 cmp r0, #0 <== NOT EXECUTED 3002634c: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; 30026350: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 30026354: e28dd008 add sp, sp, #8 <== NOT EXECUTED 30026358: e8bd8000 pop {pc} <== NOT EXECUTED 3002635c: 30066948 .word 0x30066948 300262e4 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 300262e4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 300262e8: e1a0c002 mov ip, r2 <== NOT EXECUTED 300262ec: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 300262f0: e1a0e001 mov lr, r1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 300262f4: e58d3000 str r3, [sp] <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 300262f8: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 300262fc: e1a0300c mov r3, ip <== NOT EXECUTED 30026300: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 30026304: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 30026308: e1a0200e mov r2, lr <== NOT EXECUTED 3002630c: e3a00000 mov r0, #0 <== NOT EXECUTED 30026310: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 30026314: ebffffbb bl 30026208 <== NOT EXECUTED } 30026318: e28dd008 add sp, sp, #8 <== NOT EXECUTED 3002631c: e8bd8000 pop {pc} <== NOT EXECUTED 300092ec : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 300092ec: e92d4030 push {r4, r5, lr} /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 300092f0: e2504000 subs r4, r0, #0 */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 300092f4: e24dd008 sub sp, sp, #8 /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 300092f8: 0a00000e beq 30009338 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300092fc: e10f5000 mrs r5, CPSR 30009300: e3853080 orr r3, r5, #128 ; 0x80 30009304: e129f003 msr CPSR_fc, r3 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); 30009308: e1a0000d mov r0, sp 3000930c: eb000538 bl 3000a7f4 <_TOD_Get> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30009310: e129f005 msr CPSR_fc, r5 useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 30009314: e59f0030 ldr r0, [pc, #48] ; 3000934c _ISR_Disable(level); _TOD_Get( &now ); _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; 30009318: e89d000c ldm sp, {r2, r3} useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; time->tv_usec = useconds; 3000931c: e0c1c390 smull ip, r1, r0, r3 30009320: e1a03fc3 asr r3, r3, #31 30009324: e0633341 rsb r3, r3, r1, asr #6 30009328: e884000c stm r4, {r2, r3} 3000932c: e3a00000 mov r0, #0 * with Eric Norum, this is how GNU/Linux, Solaris, and MacOS X * do it. This puts us in good company. */ return 0; } 30009330: e28dd008 add sp, sp, #8 30009334: e8bd8030 pop {r4, r5, pc} void * __tz __attribute__((unused)) ) { /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { errno = EFAULT; 30009338: eb001129 bl 3000d7e4 <__errno> <== NOT EXECUTED 3000933c: e3a0300e mov r3, #14 <== NOT EXECUTED 30009340: e5803000 str r3, [r0] <== NOT EXECUTED 30009344: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 30009348: eafffff8 b 30009330 <== NOT EXECUTED 3000934c: 10624dd3 .word 0x10624dd3 3000586c : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 3000586c: e59f3008 ldr r3, [pc, #8] ; 3000587c <== NOT EXECUTED 30005870: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Uid; } 30005874: e1d303b2 ldrh r0, [r3, #50] ; 0x32 <== NOT EXECUTED 30005878: e12fff1e bx lr <== NOT EXECUTED 3000587c: 30062da8 .word 0x30062da8 3000531c : int ioctl( int fd, ioctl_command_t command, ... ) { 3000531c: e92d000e push {r1, r2, r3} va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 30005320: e59f3090 ldr r3, [pc, #144] ; 300053b8 int ioctl( int fd, ioctl_command_t command, ... ) { 30005324: e52de004 push {lr} ; (str lr, [sp, #-4]!) va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 30005328: e5933000 ldr r3, [r3] int ioctl( int fd, ioctl_command_t command, ... ) { 3000532c: e24dd004 sub sp, sp, #4 va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 30005330: e1500003 cmp r0, r3 30005334: 2a000015 bcs 30005390 iop = rtems_libio_iop( fd ); 30005338: e59f307c ldr r3, [pc, #124] ; 300053bc 3000533c: e5933000 ldr r3, [r3] 30005340: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); 30005344: e5903014 ldr r3, [r0, #20] 30005348: e3130c01 tst r3, #256 ; 0x100 3000534c: 0a00000f beq 30005390 /* * Now process the ioctl(). */ if ( !iop->handlers ) 30005350: e590303c ldr r3, [r0, #60] ; 0x3c iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); 30005354: e28d2010 add r2, sp, #16 /* * Now process the ioctl(). */ if ( !iop->handlers ) 30005358: e3530000 cmp r3, #0 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); 3000535c: e58d2000 str r2, [sp] 30005360: e59d200c ldr r2, [sp, #12] /* * Now process the ioctl(). */ if ( !iop->handlers ) 30005364: 0a000009 beq 30005390 rtems_set_errno_and_return_minus_one( EBADF ); if ( !iop->handlers->ioctl_h ) 30005368: e5933010 ldr r3, [r3, #16] 3000536c: e3530000 cmp r3, #0 30005370: 0a00000b beq 300053a4 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 30005374: e59d1008 ldr r1, [sp, #8] 30005378: e1a0e00f mov lr, pc 3000537c: e12fff13 bx r3 return rc; } 30005380: e28dd004 add sp, sp, #4 30005384: e49de004 pop {lr} ; (ldr lr, [sp], #4) 30005388: e28dd00c add sp, sp, #12 3000538c: e12fff1e bx lr /* * Now process the ioctl(). */ if ( !iop->handlers ) rtems_set_errno_and_return_minus_one( EBADF ); 30005390: eb0038ba bl 30013680 <__errno> 30005394: e3a03009 mov r3, #9 30005398: e5803000 str r3, [r0] 3000539c: e3e00000 mvn r0, #0 300053a0: eafffff6 b 30005380 if ( !iop->handlers->ioctl_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 300053a4: eb0038b5 bl 30013680 <__errno> <== NOT EXECUTED 300053a8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300053ac: e5803000 str r3, [r0] <== NOT EXECUTED 300053b0: e3e00000 mvn r0, #0 <== NOT EXECUTED 300053b4: eafffff1 b 30005380 <== NOT EXECUTED 300053b8: 30020690 .word 0x30020690 300053bc: 30021100 .word 0x30021100 30002ba4 : * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP) 30002ba4: e5913030 ldr r3, [r1, #48] ; 0x30 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 30002ba8: e92d4030 push {r4, r5, lr} <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 30002bac: e3130020 tst r3, #32 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 30002bb0: e20040ff and r4, r0, #255 ; 0xff <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; 30002bb4: 1200407f andne r4, r0, #127 ; 0x7f <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 30002bb8: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 30002bbc: e1a05001 mov r5, r1 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) 30002bc0: 0a000007 beq 30002be4 <== NOT EXECUTED c = tolower (c); 30002bc4: e59f2198 ldr r2, [pc, #408] ; 30002d64 <== NOT EXECUTED 30002bc8: e5922000 ldr r2, [r2] <== NOT EXECUTED 30002bcc: e0822004 add r2, r2, r4 <== NOT EXECUTED 30002bd0: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED 30002bd4: e2022003 and r2, r2, #3 <== NOT EXECUTED 30002bd8: e3520001 cmp r2, #1 <== NOT EXECUTED 30002bdc: 02844020 addeq r4, r4, #32 <== NOT EXECUTED 30002be0: e20440ff and r4, r4, #255 ; 0xff <== NOT EXECUTED if (c == '\r') { 30002be4: e354000d cmp r4, #13 <== NOT EXECUTED 30002be8: 0a000012 beq 30002c38 <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 30002bec: e354000a cmp r4, #10 <== NOT EXECUTED 30002bf0: 0a000034 beq 30002cc8 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 30002bf4: e3540000 cmp r4, #0 <== NOT EXECUTED 30002bf8: 1a000015 bne 30002c54 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 30002bfc: e59f2164 ldr r2, [pc, #356] ; 30002d68 <== NOT EXECUTED 30002c00: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED 30002c04: e5922000 ldr r2, [r2] <== NOT EXECUTED 30002c08: e2422001 sub r2, r2, #1 <== NOT EXECUTED 30002c0c: e1530002 cmp r3, r2 <== NOT EXECUTED 30002c10: aa00000a bge 30002c40 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 30002c14: e595203c ldr r2, [r5, #60] ; 0x3c <== NOT EXECUTED 30002c18: e3120008 tst r2, #8 <== NOT EXECUTED 30002c1c: 1a00002c bne 30002cd4 <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 30002c20: e595101c ldr r1, [r5, #28] <== NOT EXECUTED 30002c24: e2832001 add r2, r3, #1 <== NOT EXECUTED 30002c28: e7c14003 strb r4, [r1, r3] <== NOT EXECUTED 30002c2c: e3a00000 mov r0, #0 <== NOT EXECUTED 30002c30: e5852020 str r2, [r5, #32] <== NOT EXECUTED 30002c34: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) 30002c38: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED 30002c3c: 0a000001 beq 30002c48 <== NOT EXECUTED * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); tty->cbuf[tty->ccount++] = c; 30002c40: e3a00000 mov r0, #0 <== NOT EXECUTED } return 0; } 30002c44: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) c = tolower (c); if (c == '\r') { if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) 30002c48: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30002c4c: 03a0400d moveq r4, #13 <== NOT EXECUTED 30002c50: 13a0400a movne r4, #10 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 30002c54: e595303c ldr r3, [r5, #60] ; 0x3c <== NOT EXECUTED 30002c58: e3130002 tst r3, #2 <== NOT EXECUTED 30002c5c: 0affffe6 beq 30002bfc <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 30002c60: e5d52043 ldrb r2, [r5, #67] ; 0x43 <== NOT EXECUTED 30002c64: e1520004 cmp r2, r4 <== NOT EXECUTED 30002c68: 0a000038 beq 30002d50 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 30002c6c: e5d52044 ldrb r2, [r5, #68] ; 0x44 <== NOT EXECUTED 30002c70: e1520004 cmp r2, r4 <== NOT EXECUTED 30002c74: 0a000030 beq 30002d3c <== NOT EXECUTED erase (tty, 1); return 0; } else if (c == tty->termios.c_cc[VEOF]) { 30002c78: e5d52045 ldrb r2, [r5, #69] ; 0x45 <== NOT EXECUTED 30002c7c: e1520004 cmp r2, r4 <== NOT EXECUTED 30002c80: 0a000027 beq 30002d24 <== NOT EXECUTED return 1; } else if (c == '\n') { 30002c84: e354000a cmp r4, #10 <== NOT EXECUTED 30002c88: 0a00001b beq 30002cfc <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) echo (c, tty); tty->cbuf[tty->ccount++] = c; return 1; } else if ((c == tty->termios.c_cc[VEOL]) 30002c8c: e5d5204c ldrb r2, [r5, #76] ; 0x4c <== NOT EXECUTED 30002c90: e1520004 cmp r2, r4 <== NOT EXECUTED 30002c94: 0a000002 beq 30002ca4 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 30002c98: e5d52051 ldrb r2, [r5, #81] ; 0x51 <== NOT EXECUTED 30002c9c: e1520004 cmp r2, r4 <== NOT EXECUTED 30002ca0: 1affffd5 bne 30002bfc <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 30002ca4: e3130008 tst r3, #8 <== NOT EXECUTED 30002ca8: 1a00001f bne 30002d2c <== NOT EXECUTED echo (c, tty); tty->cbuf[tty->ccount++] = c; 30002cac: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED 30002cb0: e595101c ldr r1, [r5, #28] <== NOT EXECUTED 30002cb4: e2832001 add r2, r3, #1 <== NOT EXECUTED 30002cb8: e7c14003 strb r4, [r1, r3] <== NOT EXECUTED 30002cbc: e3a00001 mov r0, #1 <== NOT EXECUTED 30002cc0: e5852020 str r2, [r5, #32] <== NOT EXECUTED return 1; 30002cc4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) return 0; if (tty->termios.c_iflag & ICRNL) c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 30002cc8: e3130040 tst r3, #64 ; 0x40 <== NOT EXECUTED 30002ccc: 13a0400d movne r4, #13 <== NOT EXECUTED 30002cd0: eaffffdf b 30002c54 <== NOT EXECUTED /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 30002cd4: e1a00004 mov r0, r4 <== NOT EXECUTED 30002cd8: e1a01005 mov r1, r5 <== NOT EXECUTED 30002cdc: ebffff0b bl 30002910 <== NOT EXECUTED 30002ce0: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 30002ce4: e595101c ldr r1, [r5, #28] <== NOT EXECUTED 30002ce8: e2832001 add r2, r3, #1 <== NOT EXECUTED 30002cec: e7c14003 strb r4, [r1, r3] <== NOT EXECUTED 30002cf0: e3a00000 mov r0, #0 <== NOT EXECUTED 30002cf4: e5852020 str r2, [r5, #32] <== NOT EXECUTED 30002cf8: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } else if (c == tty->termios.c_cc[VEOF]) { return 1; } else if (c == '\n') { if (tty->termios.c_lflag & (ECHO | ECHONL)) 30002cfc: e3130048 tst r3, #72 ; 0x48 <== NOT EXECUTED echo (c, tty); 30002d00: 11a00004 movne r0, r4 <== NOT EXECUTED 30002d04: 11a01005 movne r1, r5 <== NOT EXECUTED 30002d08: 1bffff00 blne 30002910 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 30002d0c: e5953020 ldr r3, [r5, #32] <== NOT EXECUTED 30002d10: e595101c ldr r1, [r5, #28] <== NOT EXECUTED 30002d14: e2832001 add r2, r3, #1 <== NOT EXECUTED 30002d18: e3a0000a mov r0, #10 <== NOT EXECUTED 30002d1c: e7c10003 strb r0, [r1, r3] <== NOT EXECUTED 30002d20: e5852020 str r2, [r5, #32] <== NOT EXECUTED 30002d24: e3a00001 mov r0, #1 <== NOT EXECUTED return 1; 30002d28: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } else if ((c == tty->termios.c_cc[VEOL]) || (c == tty->termios.c_cc[VEOL2])) { if (tty->termios.c_lflag & ECHO) echo (c, tty); 30002d2c: e1a00004 mov r0, r4 <== NOT EXECUTED 30002d30: e1a01005 mov r1, r5 <== NOT EXECUTED 30002d34: ebfffef5 bl 30002910 <== NOT EXECUTED 30002d38: eaffffdb b 30002cac <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { erase (tty, 1); 30002d3c: e1a00005 mov r0, r5 <== NOT EXECUTED 30002d40: e3a01001 mov r1, #1 <== NOT EXECUTED 30002d44: ebffff13 bl 30002998 <== NOT EXECUTED 30002d48: e3a00000 mov r0, #0 <== NOT EXECUTED return 0; 30002d4c: e8bd8030 pop {r4, r5, pc} <== 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]) { erase (tty, 0); 30002d50: e1a00005 mov r0, r5 <== NOT EXECUTED 30002d54: e3a01000 mov r1, #0 <== NOT EXECUTED 30002d58: ebffff0e bl 30002998 <== NOT EXECUTED 30002d5c: e3a00000 mov r0, #0 <== NOT EXECUTED return 0; 30002d60: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30002d64: 3001a148 .word 0x3001a148 30002d68: 3001a08c .word 0x3001a08c 3000d170 : int killinfo( pid_t pid, int sig, const union sigval *value ) { 3000d170: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 3000d174: e24dd00c sub sp, sp, #12 3000d178: e1a04000 mov r4, r0 3000d17c: e1a05001 mov r5, r1 3000d180: e1a08002 mov r8, r2 POSIX_signals_Siginfo_node *psiginfo; /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) 3000d184: ebfffbf4 bl 3000c15c 3000d188: e1500004 cmp r0, r4 3000d18c: 1a000090 bne 3000d3d4 rtems_set_errno_and_return_minus_one( ESRCH ); /* * Validate the signal passed. */ if ( !sig ) 3000d190: e3550000 cmp r5, #0 3000d194: 0a000093 beq 3000d3e8 static inline bool is_valid_signo( int signo ) { return ((signo) >= 1 && (signo) <= 32 ); 3000d198: e2453001 sub r3, r5, #1 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) 3000d19c: e353001f cmp r3, #31 3000d1a0: 8a000090 bhi 3000d3e8 rtems_set_errno_and_return_minus_one( EINVAL ); /* * If the signal is being ignored, then we are out of here. */ if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) 3000d1a4: e59f6268 ldr r6, [pc, #616] ; 3000d414 3000d1a8: e1a07085 lsl r7, r5, #1 3000d1ac: e0872005 add r2, r7, r5 3000d1b0: e0862102 add r2, r6, r2, lsl #2 3000d1b4: e5922008 ldr r2, [r2, #8] 3000d1b8: e3520001 cmp r2, #1 3000d1bc: 0a00006c beq 3000d374 /* * 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 ) ) 3000d1c0: e3550008 cmp r5, #8 3000d1c4: 13550004 cmpne r5, #4 3000d1c8: 0a00006c beq 3000d380 3000d1cc: e355000b cmp r5, #11 3000d1d0: 0a00006a beq 3000d380 static inline sigset_t signo_to_mask( uint32_t sig ) { return 1u << (sig - 1); 3000d1d4: e3a04001 mov r4, #1 * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { 3000d1d8: e3580000 cmp r8, #0 /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; 3000d1dc: e58d4004 str r4, [sp, #4] /* * Build up a siginfo structure */ siginfo = &siginfo_struct; siginfo->si_signo = sig; 3000d1e0: e58d5000 str r5, [sp] 3000d1e4: e1a04314 lsl r4, r4, r3 siginfo->si_code = SI_USER; if ( !value ) { siginfo->si_value.sival_int = 0; } else { siginfo->si_value = *value; 3000d1e8: 15983000 ldrne r3, [r8] */ siginfo = &siginfo_struct; siginfo->si_signo = sig; siginfo->si_code = SI_USER; if ( !value ) { siginfo->si_value.sival_int = 0; 3000d1ec: 058d8008 streq r8, [sp, #8] } else { siginfo->si_value = *value; 3000d1f0: 158d3008 strne r3, [sp, #8] 3000d1f4: e59f321c ldr r3, [pc, #540] ; 3000d418 3000d1f8: e5932000 ldr r2, [r3] 3000d1fc: e2822001 add r2, r2, #1 3000d200: e5832000 str r2, [r3] /* * 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; 3000d204: e59f3210 ldr r3, [pc, #528] ; 3000d41c 3000d208: e5930000 ldr r0, [r3] api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 3000d20c: e5903108 ldr r3, [r0, #264] ; 0x108 3000d210: e59330cc ldr r3, [r3, #204] ; 0xcc 3000d214: e1d43003 bics r3, r4, r3 3000d218: 1a000047 bne 3000d33c /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; 3000d21c: e59fc1fc ldr ip, [pc, #508] ; 3000d420 3000d220: e49c3004 ldr r3, [ip], #4 3000d224: e153000c cmp r3, ip 3000d228: 0a000013 beq 3000d27c #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 3000d22c: e5932030 ldr r2, [r3, #48] ; 0x30 for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; 3000d230: e1a00003 mov r0, r3 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 3000d234: e1140002 tst r4, r2 for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 3000d238: e5932108 ldr r2, [r3, #264] ; 0x108 #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 3000d23c: 1a00003e bne 3000d33c /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) 3000d240: e59220cc ldr r2, [r2, #204] ; 0xcc 3000d244: e1d42002 bics r2, r4, r2 3000d248: 0a000008 beq 3000d270 3000d24c: ea00003a b 3000d33c #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 3000d250: e5932030 ldr r2, [r3, #48] ; 0x30 <== NOT EXECUTED for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 3000d254: e5931108 ldr r1, [r3, #264] ; 0x108 <== NOT EXECUTED #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 3000d258: e1140002 tst r4, r2 <== NOT EXECUTED for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { the_thread = (Thread_Control *)the_node; 3000d25c: e1a00003 mov r0, r3 <== NOT EXECUTED #endif /* * Is this thread is actually blocked waiting for the signal? */ if (the_thread->Wait.option & mask) 3000d260: 1a000035 bne 3000d33c <== NOT EXECUTED /* * Is this thread is blocked waiting for another signal but has * not blocked this one? */ if (~api->signals_blocked & mask) 3000d264: e59120cc ldr r2, [r1, #204] ; 0xcc <== NOT EXECUTED 3000d268: e1d42002 bics r2, r4, r2 <== NOT EXECUTED 3000d26c: 1a000032 bne 3000d33c <== NOT EXECUTED the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; !_Chain_Is_tail( the_chain, the_node ) ; the_node = the_node->next ) { 3000d270: e5933000 ldr r3, [r3] /* XXX violation of visibility -- need to define thread queue support */ the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo; for ( the_node = the_chain->first ; 3000d274: e153000c cmp r3, ip 3000d278: 1afffff4 bne 3000d250 * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; 3000d27c: e59f31a0 ldr r3, [pc, #416] ; 3000d424 3000d280: e59f81a0 ldr r8, [pc, #416] ; 3000d428 3000d284: e5d3c000 ldrb ip, [r3] */ #define _POSIX_signals_Is_interested( _api, _mask ) \ ( ~(_api)->signals_blocked & (_mask) ) int killinfo( 3000d288: e3a0a000 mov sl, #0 * NOTES: * * + rtems internal threads do not receive signals. */ interested = NULL; interested_priority = PRIORITY_MAXIMUM + 1; 3000d28c: e28cc001 add ip, ip, #1 for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) { /* * This can occur when no one is interested and ITRON is not configured. */ if ( !_Objects_Information_table[ the_api ] ) 3000d290: e5983008 ldr r3, [r8, #8] 3000d294: e3530000 cmp r3, #0 3000d298: 0a000020 beq 3000d320 continue; the_info = _Objects_Information_table[ the_api ][ 1 ]; 3000d29c: e5933004 ldr r3, [r3, #4] */ if ( !the_info ) continue; #endif maximum = the_info->maximum; 3000d2a0: e1d301b0 ldrh r0, [r3, #16] object_table = the_info->local_table; 3000d2a4: e593e01c ldr lr, [r3, #28] for ( index = 1 ; index <= maximum ; index++ ) { 3000d2a8: e3500000 cmp r0, #0 3000d2ac: 0a00001b beq 3000d320 3000d2b0: e3a03001 mov r3, #1 the_thread = (Thread_Control *) object_table[ index ]; 3000d2b4: e79e2103 ldr r2, [lr, r3, lsl #2] #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 3000d2b8: e2833001 add r3, r3, #1 the_thread = (Thread_Control *) object_table[ index ]; if ( !the_thread ) 3000d2bc: e3520000 cmp r2, #0 3000d2c0: 0a000014 beq 3000d318 /* * If this thread is of lower priority than the interested thread, * go on to the next thread. */ if ( the_thread->current_priority > interested_priority ) 3000d2c4: e5921014 ldr r1, [r2, #20] 3000d2c8: e151000c cmp r1, ip 3000d2cc: 8a000011 bhi 3000d318 DEBUG_STEP("2"); /* * If this thread is not interested, then go on to the next thread. */ api = the_thread->API_Extensions[ THREAD_API_POSIX ]; 3000d2d0: e5929108 ldr r9, [r2, #264] ; 0x108 3000d2d4: e59990cc ldr r9, [r9, #204] ; 0xcc 3000d2d8: e1d49009 bics r9, r4, r9 3000d2dc: 0a00000d beq 3000d318 * * 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 ) { 3000d2e0: e151000c cmp r1, ip 3000d2e4: 3a000009 bcc 3000d310 * and blocking interruptibutable by signal. * * If the interested thread is ready, don't think about changing. */ if ( !_States_Is_ready( interested->current_state ) ) { 3000d2e8: e59a9010 ldr r9, [sl, #16] 3000d2ec: e3590000 cmp r9, #0 3000d2f0: 0a000008 beq 3000d318 /* preferred ready over blocked */ DEBUG_STEP("5"); if ( _States_Is_ready( the_thread->current_state ) ) { 3000d2f4: e592b010 ldr fp, [r2, #16] 3000d2f8: e35b0000 cmp fp, #0 3000d2fc: 0a000003 beq 3000d310 continue; } DEBUG_STEP("6"); /* prefer blocked/interruptible over blocked/not interruptible */ if ( !_States_Is_interruptible_by_signal(interested->current_state) ) { 3000d300: e3190201 tst r9, #268435456 ; 0x10000000 3000d304: 1a000003 bne 3000d318 DEBUG_STEP("7"); if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) { 3000d308: e31b0201 tst fp, #268435456 ; 0x10000000 3000d30c: 0a000001 beq 3000d318 3000d310: e1a0c001 mov ip, r1 3000d314: e1a0a002 mov sl, r2 #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 3000d318: e1500003 cmp r0, r3 3000d31c: 2affffe4 bcs 3000d2b4 * + 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++) { 3000d320: e59f3104 ldr r3, [pc, #260] ; 3000d42c #endif maximum = the_info->maximum; object_table = the_info->local_table; for ( index = 1 ; index <= maximum ; index++ ) { 3000d324: e2888004 add r8, r8, #4 * + 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++) { 3000d328: e1580003 cmp r8, r3 3000d32c: 1affffd7 bne 3000d290 } } } } if ( interested ) { 3000d330: e35a0000 cmp sl, #0 3000d334: 0a000007 beq 3000d358 3000d338: e1a0000a mov r0, sl * thread needs to do the post context switch extension so it can * evaluate the signals pending. */ process_it: the_thread->do_post_task_switch_extension = true; 3000d33c: e3a03001 mov r3, #1 3000d340: e5c03074 strb r3, [r0, #116] ; 0x74 /* * 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 ) ) { 3000d344: e1a01005 mov r1, r5 3000d348: e1a0200d mov r2, sp 3000d34c: eb00006d bl 3000d508 <_POSIX_signals_Unblock_thread> 3000d350: e3500000 cmp r0, #0 3000d354: 1a00001b bne 3000d3c8 * 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 ); if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { 3000d358: e0875005 add r5, r7, r5 /* * 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 ); 3000d35c: e1a00004 mov r0, r4 3000d360: eb000056 bl 3000d4c0 <_POSIX_signals_Set_process_signals> if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { 3000d364: e7963105 ldr r3, [r6, r5, lsl #2] 3000d368: e3530002 cmp r3, #2 3000d36c: 0a000007 beq 3000d390 _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); 3000d370: ebffe51b bl 300067e4 <_Thread_Enable_dispatch> 3000d374: e3a00000 mov r0, #0 return 0; } 3000d378: e28dd00c add sp, sp, #12 3000d37c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * 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 ) ) return pthread_kill( pthread_self(), sig ); 3000d380: eb0000e8 bl 3000d728 3000d384: e1a01005 mov r1, r5 3000d388: eb0000a8 bl 3000d630 3000d38c: eafffff9 b 3000d378 */ _POSIX_signals_Set_process_signals( mask ); if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) 3000d390: e59f0098 ldr r0, [pc, #152] ; 3000d430 3000d394: ebfff4a1 bl 3000a620 <_Chain_Get> _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { 3000d398: e250c000 subs ip, r0, #0 3000d39c: 0a000016 beq 3000d3fc _Thread_Enable_dispatch(); rtems_set_errno_and_return_minus_one( EAGAIN ); } psiginfo->Info = *siginfo; 3000d3a0: e28c3008 add r3, ip, #8 3000d3a4: e1a0200d mov r2, sp 3000d3a8: e8920007 ldm r2, {r0, r1, r2} 3000d3ac: e8830007 stm r3, {r0, r1, r2} _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 3000d3b0: e59f007c ldr r0, [pc, #124] ; 3000d434 3000d3b4: e1a0100c mov r1, ip 3000d3b8: e0800105 add r0, r0, r5, lsl #2 3000d3bc: ebffdf6e bl 3000517c <_Chain_Append> } DEBUG_STEP("\n"); _Thread_Enable_dispatch(); 3000d3c0: ebffe507 bl 300067e4 <_Thread_Enable_dispatch> 3000d3c4: eaffffea b 3000d374 /* * 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 ) ) { _Thread_Enable_dispatch(); 3000d3c8: ebffe505 bl 300067e4 <_Thread_Enable_dispatch> 3000d3cc: e3a00000 mov r0, #0 return 0; 3000d3d0: eaffffe8 b 3000d378 /* * Only supported for the "calling process" (i.e. this node). */ if ( pid != getpid() ) rtems_set_errno_and_return_minus_one( ESRCH ); 3000d3d4: eb000102 bl 3000d7e4 <__errno> 3000d3d8: e3a03003 mov r3, #3 3000d3dc: e5803000 str r3, [r0] 3000d3e0: e3e00000 mvn r0, #0 3000d3e4: eaffffe3 b 3000d378 */ if ( !sig ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) rtems_set_errno_and_return_minus_one( EINVAL ); 3000d3e8: eb0000fd bl 3000d7e4 <__errno> 3000d3ec: e3a03016 mov r3, #22 3000d3f0: e5803000 str r3, [r0] 3000d3f4: e3e00000 mvn r0, #0 3000d3f8: eaffffde b 3000d378 if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) { psiginfo = (POSIX_signals_Siginfo_node *) _Chain_Get( &_POSIX_signals_Inactive_siginfo ); if ( !psiginfo ) { _Thread_Enable_dispatch(); 3000d3fc: ebffe4f8 bl 300067e4 <_Thread_Enable_dispatch> rtems_set_errno_and_return_minus_one( EAGAIN ); 3000d400: eb0000f7 bl 3000d7e4 <__errno> 3000d404: e3a0300b mov r3, #11 3000d408: e5803000 str r3, [r0] 3000d40c: e3e00000 mvn r0, #0 3000d410: eaffffd8 b 3000d378 3000d414: 3001aeb8 .word 0x3001aeb8 3000d418: 3001a9ac .word 0x3001a9ac 3000d41c: 3001aa60 .word 0x3001aa60 3000d420: 3001b044 .word 0x3001b044 3000d424: 30019f58 .word 0x30019f58 3000d428: 3001a968 .word 0x3001a968 3000d42c: 3001a974 .word 0x3001a974 3000d430: 3001b038 .word 0x3001b038 3000d434: 3001b088 .word 0x3001b088 3002646c : int link( const char *existing, const char *new ) { 3002646c: e92d40f0 push {r4, r5, r6, r7, lr} 30026470: e24dd030 sub sp, sp, #48 ; 0x30 30026474: e1a06001 mov r6, r1 30026478: e1a04000 mov r4, r0 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 3002647c: eb007bb1 bl 30045348 30026480: e28d5018 add r5, sp, #24 30026484: e1a01000 mov r1, r0 30026488: e3a0c001 mov ip, #1 3002648c: e1a00004 mov r0, r4 30026490: e3a02000 mov r2, #0 30026494: e1a03005 mov r3, r5 30026498: e58dc000 str ip, [sp] 3002649c: ebff7c7b bl 30005690 0, &existing_loc, true ); if ( result != 0 ) 300264a0: e3500000 cmp r0, #0 300264a4: 1a00004d bne 300265e0 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 300264a8: e5d63000 ldrb r3, [r6] 300264ac: e353002f cmp r3, #47 ; 0x2f 300264b0: 1353005c cmpne r3, #92 ; 0x5c 300264b4: 13a0e000 movne lr, #0 300264b8: 03a0e001 moveq lr, #1 300264bc: 1a000035 bne 30026598 300264c0: e59f31fc ldr r3, [pc, #508] ; 300266c4 300264c4: e28d4004 add r4, sp, #4 300264c8: e593c000 ldr ip, [r3] 300264cc: e3a0e001 mov lr, #1 300264d0: e28cc018 add ip, ip, #24 300264d4: e1a07004 mov r7, r4 300264d8: e8bc000f ldm ip!, {r0, r1, r2, r3} 300264dc: e8a7000f stmia r7!, {r0, r1, r2, r3} if ( !parent_loc.ops->evalformake_h ) { 300264e0: e59d3010 ldr r3, [sp, #16] /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 300264e4: e59c2000 ldr r2, [ip] if ( !parent_loc.ops->evalformake_h ) { 300264e8: e5933004 ldr r3, [r3, #4] /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 300264ec: e5872000 str r2, [r7] if ( !parent_loc.ops->evalformake_h ) { 300264f0: e3530000 cmp r3, #0 300264f4: 0a00002e beq 300265b4 rtems_filesystem_freenode( &existing_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 300264f8: e086000e add r0, r6, lr 300264fc: e1a01004 mov r1, r4 30026500: e28d202c add r2, sp, #44 ; 0x2c 30026504: e1a0e00f mov lr, pc 30026508: e12fff13 bx r3 if ( result != 0 ) { 3002650c: e2506000 subs r6, r0, #0 30026510: 1a000049 bne 3002663c /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 30026514: e59d3028 ldr r3, [sp, #40] ; 0x28 30026518: e59d2014 ldr r2, [sp, #20] 3002651c: e1520003 cmp r2, r3 30026520: 1a000030 bne 300265e8 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { 30026524: e59d2010 ldr r2, [sp, #16] 30026528: e5923008 ldr r3, [r2, #8] 3002652c: e3530000 cmp r3, #0 30026530: 0a00004d beq 3002666c rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 30026534: e1a00005 mov r0, r5 30026538: e1a01004 mov r1, r4 3002653c: e59d202c ldr r2, [sp, #44] ; 0x2c 30026540: e1a0e00f mov lr, pc 30026544: e12fff13 bx r3 rtems_filesystem_freenode( &existing_loc ); 30026548: e59d3024 ldr r3, [sp, #36] ; 0x24 rtems_filesystem_freenode( &existing_loc ); rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 3002654c: e1a06000 mov r6, r0 rtems_filesystem_freenode( &existing_loc ); 30026550: e3530000 cmp r3, #0 30026554: 0a000004 beq 3002656c 30026558: e593301c ldr r3, [r3, #28] 3002655c: e3530000 cmp r3, #0 30026560: 11a00005 movne r0, r5 30026564: 11a0e00f movne lr, pc 30026568: 112fff13 bxne r3 rtems_filesystem_freenode( &parent_loc ); 3002656c: e59d3010 ldr r3, [sp, #16] 30026570: e3530000 cmp r3, #0 30026574: 0a000004 beq 3002658c 30026578: e593301c ldr r3, [r3, #28] 3002657c: e3530000 cmp r3, #0 30026580: 11a00004 movne r0, r4 30026584: 11a0e00f movne lr, pc 30026588: 112fff13 bxne r3 return result; } 3002658c: e1a00006 mov r0, r6 30026590: e28dd030 add sp, sp, #48 ; 0x30 30026594: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 30026598: e3530000 cmp r3, #0 3002659c: 0affffc7 beq 300264c0 300265a0: e59f311c ldr r3, [pc, #284] ; 300266c4 300265a4: e28d4004 add r4, sp, #4 300265a8: e593c000 ldr ip, [r3] 300265ac: e28cc004 add ip, ip, #4 300265b0: eaffffc7 b 300264d4 if ( !parent_loc.ops->evalformake_h ) { rtems_filesystem_freenode( &existing_loc ); 300265b4: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 300265b8: e3530000 cmp r3, #0 <== NOT EXECUTED 300265bc: 0a000004 beq 300265d4 <== NOT EXECUTED 300265c0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300265c4: e3530000 cmp r3, #0 <== NOT EXECUTED 300265c8: 11a00005 movne r0, r5 <== NOT EXECUTED 300265cc: 11a0e00f movne lr, pc <== NOT EXECUTED 300265d0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300265d4: eb0060d0 bl 3003e91c <__errno> <== NOT EXECUTED 300265d8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300265dc: e5803000 str r3, [r0] <== NOT EXECUTED 300265e0: e3e06000 mvn r6, #0 300265e4: eaffffe8 b 3002658c * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { rtems_filesystem_freenode( &existing_loc ); 300265e8: e59d3024 ldr r3, [sp, #36] ; 0x24 300265ec: e3530000 cmp r3, #0 300265f0: 0a000004 beq 30026608 300265f4: e593301c ldr r3, [r3, #28] 300265f8: e3530000 cmp r3, #0 300265fc: 11a00005 movne r0, r5 30026600: 11a0e00f movne lr, pc 30026604: 112fff13 bxne r3 rtems_filesystem_freenode( &parent_loc ); 30026608: e59d3010 ldr r3, [sp, #16] 3002660c: e3530000 cmp r3, #0 30026610: 0a000004 beq 30026628 30026614: e593301c ldr r3, [r3, #28] 30026618: e3530000 cmp r3, #0 3002661c: 11a00004 movne r0, r4 30026620: 11a0e00f movne lr, pc 30026624: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( EXDEV ); 30026628: eb0060bb bl 3003e91c <__errno> 3002662c: e3a03012 mov r3, #18 30026630: e5803000 str r3, [r0] 30026634: e3e06000 mvn r6, #0 30026638: eaffffd3 b 3002658c rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); if ( result != 0 ) { rtems_filesystem_freenode( &existing_loc ); 3002663c: e59d3024 ldr r3, [sp, #36] ; 0x24 30026640: e3530000 cmp r3, #0 30026644: 0a000004 beq 3002665c 30026648: e593301c ldr r3, [r3, #28] 3002664c: e3530000 cmp r3, #0 30026650: 11a00005 movne r0, r5 30026654: 11a0e00f movne lr, pc 30026658: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( result ); 3002665c: eb0060ae bl 3003e91c <__errno> 30026660: e5806000 str r6, [r0] 30026664: e3e06000 mvn r6, #0 30026668: eaffffc7 b 3002658c rtems_filesystem_freenode( &parent_loc ); rtems_set_errno_and_return_minus_one( EXDEV ); } if ( !parent_loc.ops->link_h ) { rtems_filesystem_freenode( &existing_loc ); 3002666c: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30026670: e3530000 cmp r3, #0 <== NOT EXECUTED 30026674: 0a000006 beq 30026694 <== NOT EXECUTED 30026678: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3002667c: e3530000 cmp r3, #0 <== NOT EXECUTED 30026680: 0a000003 beq 30026694 <== NOT EXECUTED 30026684: e1a00005 mov r0, r5 <== NOT EXECUTED 30026688: e1a0e00f mov lr, pc <== NOT EXECUTED 3002668c: e12fff13 bx r3 <== NOT EXECUTED 30026690: e59d2010 ldr r2, [sp, #16] <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 30026694: e3520000 cmp r2, #0 <== NOT EXECUTED 30026698: 0a000004 beq 300266b0 <== NOT EXECUTED 3002669c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 300266a0: e3530000 cmp r3, #0 <== NOT EXECUTED 300266a4: 11a00004 movne r0, r4 <== NOT EXECUTED 300266a8: 11a0e00f movne lr, pc <== NOT EXECUTED 300266ac: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300266b0: eb006099 bl 3003e91c <__errno> <== NOT EXECUTED 300266b4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300266b8: e5803000 str r3, [r0] <== NOT EXECUTED 300266bc: e3e06000 mvn r6, #0 <== NOT EXECUTED 300266c0: eaffffb1 b 3002658c <== NOT EXECUTED 300266c4: 30062da8 .word 0x30062da8 30018580 : { rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 30018580: e59fc134 ldr ip, [pc, #308] ; 300186bc off_t lseek( int fd, off_t offset, int whence ) { 30018584: e92d41f0 push {r4, r5, r6, r7, r8, lr} rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 30018588: e59cc000 ldr ip, [ip] 3001858c: e150000c cmp r0, ip 30018590: 2a00003d bcs 3001868c iop = rtems_libio_iop( fd ); 30018594: e59fc124 ldr ip, [pc, #292] ; 300186c0 30018598: e59c4000 ldr r4, [ip] 3001859c: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); 300185a0: e5940014 ldr r0, [r4, #20] 300185a4: e3100c01 tst r0, #256 ; 0x100 300185a8: 0a000037 beq 3001868c /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 300185ac: e594c03c ldr ip, [r4, #60] ; 0x3c 300185b0: e59c0014 ldr r0, [ip, #20] 300185b4: e3500000 cmp r0, #0 300185b8: 0a000039 beq 300186a4 /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 300185bc: e3530001 cmp r3, #1 /* * Now process the lseek(). */ old_offset = iop->offset; 300185c0: e284600c add r6, r4, #12 300185c4: e8960060 ldm r6, {r5, r6} switch ( whence ) { 300185c8: 0a000022 beq 30018658 300185cc: e3530002 cmp r3, #2 300185d0: 0a00000d beq 3001860c 300185d4: e3530000 cmp r3, #0 300185d8: 1a000023 bne 3001866c case SEEK_SET: iop->offset = offset; 300185dc: e584100c str r1, [r4, #12] 300185e0: e5842010 str r2, [r4, #16] /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 300185e4: e1a00004 mov r0, r4 300185e8: e1a0e00f mov lr, pc 300185ec: e59cf014 ldr pc, [ip, #20] if ( status == (off_t) -1 ) 300185f0: e3700001 cmn r0, #1 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 300185f4: e1a02000 mov r2, r0 300185f8: e1a03001 mov r3, r1 if ( status == (off_t) -1 ) 300185fc: 0a00000e beq 3001863c /* * So if the operation failed, we have to restore iop->offset. */ return status; } 30018600: e1a01003 mov r1, r3 30018604: e1a00002 mov r0, r2 30018608: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} case SEEK_CUR: iop->offset += offset; break; case SEEK_END: iop->offset = iop->size + offset; 3001860c: e9940180 ldmib r4, {r7, r8} 30018610: e0977001 adds r7, r7, r1 30018614: e0a88002 adc r8, r8, r2 30018618: e584700c str r7, [r4, #12] 3001861c: e5848010 str r8, [r4, #16] /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 30018620: e1a00004 mov r0, r4 30018624: e1a0e00f mov lr, pc 30018628: e59cf014 ldr pc, [ip, #20] if ( status == (off_t) -1 ) 3001862c: e3700001 cmn r0, #1 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 30018630: e1a02000 mov r2, r0 30018634: e1a03001 mov r3, r1 if ( status == (off_t) -1 ) 30018638: 1afffff0 bne 30018600 3001863c: e3710001 cmn r1, #1 30018640: 1affffee bne 30018600 iop->offset = old_offset; 30018644: e584500c str r5, [r4, #12] 30018648: e5846010 str r6, [r4, #16] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 3001864c: e1a01003 mov r1, r3 30018650: e1a00002 mov r0, r2 30018654: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} case SEEK_SET: iop->offset = offset; break; case SEEK_CUR: iop->offset += offset; 30018658: e0917005 adds r7, r1, r5 3001865c: e0a28006 adc r8, r2, r6 30018660: e584700c str r7, [r4, #12] 30018664: e5848010 str r8, [r4, #16] break; 30018668: eaffffdd b 300185e4 case SEEK_END: iop->offset = iop->size + offset; break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 3001866c: ebffd45c bl 3000d7e4 <__errno> 30018670: e3a03016 mov r3, #22 30018674: e5803000 str r3, [r0] 30018678: e3e02000 mvn r2, #0 3001867c: e3e03000 mvn r3, #0 /* * So if the operation failed, we have to restore iop->offset. */ return status; } 30018680: e1a01003 mov r1, r3 30018684: e1a00002 mov r0, r2 30018688: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} off_t old_offset; off_t status; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); 3001868c: ebffd454 bl 3000d7e4 <__errno> 30018690: e3a03009 mov r3, #9 30018694: e5803000 str r3, [r0] 30018698: e3e02000 mvn r2, #0 3001869c: e3e03000 mvn r3, #0 300186a0: eaffffd6 b 30018600 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 300186a4: ebffd44e bl 3000d7e4 <__errno> <== NOT EXECUTED 300186a8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300186ac: e5803000 str r3, [r0] <== NOT EXECUTED 300186b0: e3e02000 mvn r2, #0 <== NOT EXECUTED 300186b4: e3e03000 mvn r3, #0 <== NOT EXECUTED 300186b8: eaffffd0 b 30018600 <== NOT EXECUTED 300186bc: 30019ea8 .word 0x30019ea8 300186c0: 3001a848 .word 0x3001a848 3002682c : int _STAT_NAME( const char *path, struct stat *buf ) { 3002682c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 30026830: e2515000 subs r5, r1, #0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 30026834: e24dd018 sub sp, sp, #24 <== NOT EXECUTED 30026838: e1a06000 mov r6, r0 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 3002683c: 0a00002f beq 30026900 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 30026840: eb007ac0 bl 30045348 <== NOT EXECUTED 30026844: e28d4004 add r4, sp, #4 <== NOT EXECUTED 30026848: e3a0c000 mov ip, #0 <== NOT EXECUTED 3002684c: e1a01000 mov r1, r0 <== NOT EXECUTED 30026850: e1a0200c mov r2, ip <== NOT EXECUTED 30026854: e1a00006 mov r0, r6 <== NOT EXECUTED 30026858: e1a03004 mov r3, r4 <== NOT EXECUTED 3002685c: e58dc000 str ip, [sp] <== NOT EXECUTED 30026860: ebff7b8a bl 30005690 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 30026864: e2501000 subs r1, r0, #0 <== NOT EXECUTED 30026868: 1a000022 bne 300268f8 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 3002686c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 30026870: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 30026874: e3530000 cmp r3, #0 <== NOT EXECUTED 30026878: 0a000013 beq 300268cc <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 3002687c: e3a02048 mov r2, #72 ; 0x48 <== NOT EXECUTED 30026880: e1a00005 mov r0, r5 <== NOT EXECUTED 30026884: eb006cdc bl 30041bfc <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 30026888: e1a01005 mov r1, r5 <== NOT EXECUTED 3002688c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 30026890: e1a00004 mov r0, r4 <== NOT EXECUTED 30026894: e1a0e00f mov lr, pc <== NOT EXECUTED 30026898: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3002689c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 300268a0: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 300268a4: e3530000 cmp r3, #0 <== NOT EXECUTED 300268a8: 0a000004 beq 300268c0 <== NOT EXECUTED 300268ac: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300268b0: e3530000 cmp r3, #0 <== NOT EXECUTED 300268b4: 11a00004 movne r0, r4 <== NOT EXECUTED 300268b8: 11a0e00f movne lr, pc <== NOT EXECUTED 300268bc: 112fff13 bxne r3 <== NOT EXECUTED return status; } 300268c0: e1a00005 mov r0, r5 <== NOT EXECUTED 300268c4: e28dd018 add sp, sp, #24 <== NOT EXECUTED 300268c8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 300268cc: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 300268d0: e3530000 cmp r3, #0 <== NOT EXECUTED 300268d4: 0a000004 beq 300268ec <== NOT EXECUTED 300268d8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300268dc: e3530000 cmp r3, #0 <== NOT EXECUTED 300268e0: 11a00004 movne r0, r4 <== NOT EXECUTED 300268e4: 11a0e00f movne lr, pc <== NOT EXECUTED 300268e8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300268ec: eb00600a bl 3003e91c <__errno> <== NOT EXECUTED 300268f0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300268f4: e5803000 str r3, [r0] <== NOT EXECUTED 300268f8: e3e05000 mvn r5, #0 <== NOT EXECUTED 300268fc: eaffffef b 300268c0 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 30026900: eb006005 bl 3003e91c <__errno> <== NOT EXECUTED 30026904: e3a0300e mov r3, #14 <== NOT EXECUTED 30026908: e5803000 str r3, [r0] <== NOT EXECUTED 3002690c: e3e05000 mvn r5, #0 <== NOT EXECUTED 30026910: eaffffea b 300268c0 <== NOT EXECUTED 30009694 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 30009694: e59f30dc ldr r3, [pc, #220] ; 30009778 30009698: e92d4070 push {r4, r5, r6, lr} 3000969c: e5932004 ldr r2, [r3, #4] 300096a0: e1a04000 mov r4, r0 300096a4: e2822001 add r2, r2, #1 300096a8: e5832004 str r2, [r3, #4] /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 300096ac: ebffffef bl 30009670 /* * Validate the parameters */ if ( !size ) 300096b0: e3540000 cmp r4, #0 300096b4: 0a00001f beq 30009738 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 300096b8: e59f30bc ldr r3, [pc, #188] ; 3000977c 300096bc: e5933000 ldr r3, [r3] 300096c0: e3530003 cmp r3, #3 300096c4: 0a000018 beq 3000972c RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 300096c8: e59f30b0 ldr r3, [pc, #176] ; 30009780 300096cc: e3a02000 mov r2, #0 300096d0: e5930000 ldr r0, [r3] 300096d4: e1a01004 mov r1, r4 300096d8: e1a03002 mov r3, r2 300096dc: eb00057c bl 3000acd4 <_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 ) { 300096e0: e2506000 subs r6, r0, #0 if (rtems_malloc_sbrk_helpers) return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); if ( !return_this ) { errno = ENOMEM; return (void *) 0; 300096e4: 11a05006 movne r5, r6 * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { 300096e8: 0a000015 beq 30009744 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 300096ec: e59f3090 ldr r3, [pc, #144] ; 30009784 300096f0: e5933000 ldr r3, [r3] 300096f4: e3530000 cmp r3, #0 (*rtems_malloc_dirty_helper)( return_this, size ); 300096f8: 11a01004 movne r1, r4 300096fc: 11a00005 movne r0, r5 30009700: 11a0e00f movne lr, pc 30009704: 1593f000 ldrne pc, [r3] /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 30009708: e59f3078 ldr r3, [pc, #120] ; 30009788 3000970c: e5933000 ldr r3, [r3] 30009710: e3530000 cmp r3, #0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 30009714: 11a00005 movne r0, r5 30009718: 11a0e00f movne lr, pc 3000971c: 1593f004 ldrne pc, [r3, #4] 30009720: e1a06005 mov r6, r5 if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 30009724: e1a00006 mov r0, r6 30009728: e8bd8070 pop {r4, r5, r6, pc} return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 3000972c: ebffffb8 bl 30009614 30009730: e3500000 cmp r0, #0 30009734: 1affffe3 bne 300096c8 /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 30009738: e3a06000 mov r6, #0 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 3000973c: e1a00006 mov r0, r6 <== NOT EXECUTED 30009740: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { if (rtems_malloc_sbrk_helpers) 30009744: e59f3040 ldr r3, [pc, #64] ; 3000978c 30009748: e5933000 ldr r3, [r3] 3000974c: e3530000 cmp r3, #0 30009750: 0a000004 beq 30009768 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 30009754: e1a00004 mov r0, r4 <== NOT EXECUTED 30009758: e1a0e00f mov lr, pc <== NOT EXECUTED 3000975c: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( !return_this ) { 30009760: e2505000 subs r5, r0, #0 <== NOT EXECUTED 30009764: 1affffe0 bne 300096ec <== NOT EXECUTED errno = ENOMEM; 30009768: eb00101d bl 3000d7e4 <__errno> 3000976c: e3a0300c mov r3, #12 30009770: e5803000 str r3, [r0] return (void *) 0; 30009774: eaffffea b 30009724 30009778: 3001a854 .word 0x3001a854 3000977c: 3001ab50 .word 0x3001ab50 30009780: 30019eb4 .word 0x30019eb4 30009784: 3001a670 .word 0x3001a670 30009788: 3001a668 .word 0x3001a668 3000978c: 3001a66c .word 0x3001a66c 30009660 : } void malloc_deferred_free( void *pointer ) { 30009660: e1a01000 mov r1, r0 <== NOT EXECUTED 30009664: e59f0000 ldr r0, [pc, #0] ; 3000966c <== NOT EXECUTED 30009668: eaffeec3 b 3000517c <_Chain_Append> <== NOT EXECUTED 3000966c: 3001aeac .word 0x3001aeac 30009670 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 30009670: 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) 30009674: ea000000 b 3000967c free(to_be_freed); 30009678: ebfffea7 bl 3000911c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 3000967c: e59f000c ldr r0, [pc, #12] ; 30009690 30009680: eb0003e6 bl 3000a620 <_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) 30009684: e3500000 cmp r0, #0 30009688: 1afffffa bne 30009678 free(to_be_freed); } 3000968c: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30009690: 3001aeac .word 0x3001aeac 30011004 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 30011004: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} /* * Perform internal consistency checks */ assert( block_table ); 30011008: e2504000 subs r4, r0, #0 void memfile_free_blocks_in_table( block_p **block_table, int entries ) { 3001100c: e1a08001 mov r8, r1 /* * Perform internal consistency checks */ assert( block_table ); 30011010: 0a000014 beq 30011068 * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i 30011020: e3a05000 mov r5, #0 30011024: e1a06005 mov r6, r5 if ( b[i] ) { memfile_free_block( b[i] ); b[i] = 0; 30011028: e1a0a005 mov sl, r5 */ b = *block_table; for ( i=0 ; i memfile_free_block( b[i] ); 30011038: ebffff4b bl 30010d6c b[i] = 0; 3001103c: e787a005 str sl, [r7, r5] * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i 30011050: e5947000 ldr r7, [r4] /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); 30011054: e1a00007 mov r0, r7 30011058: ebffff43 bl 30010d6c *block_table = 0; 3001105c: e3a03000 mov r3, #0 30011060: e5843000 str r3, [r4] } 30011064: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} /* * Perform internal consistency checks */ assert( block_table ); 30011068: e59f000c ldr r0, [pc, #12] ; 3001107c <== NOT EXECUTED 3001106c: e59f100c ldr r1, [pc, #12] ; 30011080 <== NOT EXECUTED 30011070: e59f200c ldr r2, [pc, #12] ; 30011084 <== NOT EXECUTED 30011074: e59f300c ldr r3, [pc, #12] ; 30011088 <== NOT EXECUTED 30011078: ebfff5b9 bl 3000e764 <__assert_func> <== NOT EXECUTED 3001107c: 3001fefc .word 0x3001fefc 30011080: 000001b3 .word 0x000001b3 30011084: 3001f5f4 .word 0x3001f5f4 30011088: 3001ff74 .word 0x3001ff74 3001155c : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 3001155c: e92d4010 push {r4, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 30011560: e5904038 ldr r4, [r0, #56] ; 0x38 int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 30011564: e24dd008 sub sp, sp, #8 * 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 ) 30011568: e5943054 ldr r3, [r4, #84] ; 0x54 3001156c: e1530002 cmp r3, r2 30011570: aa000003 bge 30011584 return IMFS_memfile_extend( the_jnode, length ); 30011574: e1a00004 mov r0, r4 <== NOT EXECUTED 30011578: ebffff96 bl 300113d8 <== NOT EXECUTED iop->size = the_jnode->info.file.size; IMFS_update_atime( the_jnode ); return 0; } 3001157c: e28dd008 add sp, sp, #8 30011580: e8bd8010 pop {r4, pc} * 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 ) 30011584: 0a000009 beq 300115b0 * 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; 30011588: e5841050 str r1, [r4, #80] ; 0x50 3001158c: e5842054 str r2, [r4, #84] ; 0x54 iop->size = the_jnode->info.file.size; 30011590: e9800006 stmib r0, {r1, r2} IMFS_update_atime( the_jnode ); 30011594: e3a01000 mov r1, #0 30011598: e1a0000d mov r0, sp 3001159c: ebffc605 bl 30002db8 300115a0: e59d3000 ldr r3, [sp] 300115a4: e3a00000 mov r0, #0 300115a8: e5843040 str r3, [r4, #64] ; 0x40 return 0; 300115ac: eafffff2 b 3001157c * 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 ) 300115b0: e5943050 ldr r3, [r4, #80] ; 0x50 300115b4: e1530001 cmp r3, r1 300115b8: 2afffff2 bcs 30011588 300115bc: eaffffec b 30011574 <== NOT EXECUTED 300115c0 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 300115c0: e92d4030 push {r4, r5, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 300115c4: e5905038 ldr r5, [r0, #56] ; 0x38 rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 300115c8: e1a04000 mov r4, r0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { 300115cc: e595304c ldr r3, [r5, #76] ; 0x4c 300115d0: e3530006 cmp r3, #6 300115d4: 0a00000d beq 30011610 if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 300115d8: e1a00005 mov r0, r5 300115dc: e284200c add r2, r4, #12 300115e0: e8920006 ldm r2, {r1, r2} 300115e4: ebffff7b bl 300113d8 300115e8: e3500000 cmp r0, #0 300115ec: 1a00001a bne 3001165c rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; 300115f0: e2853050 add r3, r5, #80 ; 0x50 300115f4: e893000c ldm r3, {r2, r3} 300115f8: e984000c stmib r4, {r2, r3} 300115fc: e284300c add r3, r4, #12 30011600: e893000c ldm r3, {r2, r3} } return iop->offset; } 30011604: e1a01003 mov r1, r3 30011608: e1a00002 mov r0, r2 3001160c: e8bd8030 pop {r4, r5, pc} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) 30011610: e5901010 ldr r1, [r0, #16] <== NOT EXECUTED 30011614: e2853050 add r3, r5, #80 ; 0x50 <== NOT EXECUTED 30011618: e893000c ldm r3, {r2, r3} <== NOT EXECUTED 3001161c: e1510003 cmp r1, r3 <== NOT EXECUTED 30011620: e590000c ldr r0, [r0, #12] <== NOT EXECUTED 30011624: ca000007 bgt 30011648 <== NOT EXECUTED 30011628: 0a000004 beq 30011640 <== NOT EXECUTED 3001162c: e1a02000 mov r2, r0 <== NOT EXECUTED 30011630: e1a03001 mov r3, r1 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } 30011634: e1a01003 mov r1, r3 <== NOT EXECUTED 30011638: e1a00002 mov r0, r2 <== NOT EXECUTED 3001163c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { if (iop->offset > the_jnode->info.linearfile.size) 30011640: e1500002 cmp r0, r2 <== NOT EXECUTED 30011644: 9afffff8 bls 3001162c <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 30011648: e584200c str r2, [r4, #12] <== NOT EXECUTED 3001164c: e5843010 str r3, [r4, #16] <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOSPC ); iop->size = the_jnode->info.file.size; } return iop->offset; } 30011650: e1a01003 mov r1, r3 <== NOT EXECUTED 30011654: e1a00002 mov r0, r2 <== NOT EXECUTED 30011658: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if (iop->offset > the_jnode->info.linearfile.size) iop->offset = the_jnode->info.linearfile.size; } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) rtems_set_errno_and_return_minus_one( ENOSPC ); 3001165c: eb000710 bl 300132a4 <__errno> <== NOT EXECUTED 30011660: e3a0301c mov r3, #28 <== NOT EXECUTED 30011664: e5803000 str r3, [r0] <== NOT EXECUTED 30011668: e3e02000 mvn r2, #0 <== NOT EXECUTED 3001166c: e3e03000 mvn r3, #0 <== NOT EXECUTED 30011670: eaffffe3 b 30011604 <== NOT EXECUTED 3001192c : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 3001192c: e92d4830 push {r4, r5, fp, lr} the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 30011930: e5903014 ldr r3, [r0, #20] rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 30011934: e24dd004 sub sp, sp, #4 the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 30011938: e3130f81 tst r3, #516 ; 0x204 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 3001193c: e1a04000 mov r4, r0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 30011940: e5905038 ldr r5, [r0, #56] ; 0x38 /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 30011944: 0a000002 beq 30011954 && (the_jnode->type == IMFS_LINEAR_FILE)) { 30011948: e595204c ldr r2, [r5, #76] ; 0x4c 3001194c: e3520006 cmp r2, #6 30011950: 0a00000b beq 30011984 the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 30011954: e5952050 ldr r2, [r5, #80] ; 0x50 30011958: e5951054 ldr r1, [r5, #84] ; 0x54 && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 3001195c: e3130c02 tst r3, #512 ; 0x200 iop->offset = the_jnode->info.file.size; 30011960: 1584200c strne r2, [r4, #12] 30011964: 15841010 strne r1, [r4, #16] 30011968: 15951054 ldrne r1, [r5, #84] ; 0x54 3001196c: 15952050 ldrne r2, [r5, #80] ; 0x50 iop->size = the_jnode->info.file.size; 30011970: e3a00000 mov r0, #0 30011974: e5841008 str r1, [r4, #8] 30011978: e5842004 str r2, [r4, #4] return 0; } 3001197c: e28dd004 add sp, sp, #4 30011980: e8bd8830 pop {r4, r5, fp, pc} /* * 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; 30011984: e595c050 ldr ip, [r5, #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; 30011988: 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; 3001198c: e3a03005 mov r3, #5 <== NOT EXECUTED the_jnode->info.file.size = 0; 30011990: e3a01000 mov r1, #0 <== NOT EXECUTED 30011994: 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) 30011998: e15c0000 cmp ip, r0 <== 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; 3001199c: e585304c str r3, [r5, #76] ; 0x4c <== NOT EXECUTED the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; 300119a0: e5850060 str r0, [r5, #96] ; 0x60 <== 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; 300119a4: e5953058 ldr r3, [r5, #88] ; 0x58 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; 300119a8: e5851050 str r1, [r5, #80] ; 0x50 <== NOT EXECUTED 300119ac: e5852054 str r2, [r5, #84] ; 0x54 <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; 300119b0: e585005c str r0, [r5, #92] ; 0x5c <== NOT EXECUTED uint32_t count = the_jnode->info.linearfile.size; 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; 300119b4: e5850058 str r0, [r5, #88] ; 0x58 <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 300119b8: 1a000004 bne 300119d0 <== NOT EXECUTED 300119bc: e1a0b001 mov fp, r1 <== NOT EXECUTED 300119c0: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 300119c4: e1a01002 mov r1, r2 <== NOT EXECUTED 300119c8: e1a0200b mov r2, fp <== NOT EXECUTED 300119cc: eaffffe2 b 3001195c <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 300119d0: e1a00005 mov r0, r5 <== NOT EXECUTED 300119d4: e58dc000 str ip, [sp] <== NOT EXECUTED 300119d8: ebffff25 bl 30011674 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 300119dc: e3700001 cmn r0, #1 <== NOT EXECUTED 300119e0: 0affffe5 beq 3001197c <== NOT EXECUTED 300119e4: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 300119e8: eaffffd9 b 30011954 <== NOT EXECUTED 300016fc : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 300016fc: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_filesystem_location_info_t temp_loc; int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) 30001700: e3110a0f tst r1, #61440 ; 0xf000 int mknod( const char *pathname, mode_t mode, dev_t dev ) { 30001704: e24dd01c sub sp, sp, #28 30001708: e1a05001 mov r5, r1 3000170c: e1a0e000 mov lr, r0 30001710: e1a07002 mov r7, r2 30001714: e1a08003 mov r8, r3 rtems_filesystem_location_info_t temp_loc; int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) 30001718: 0a000042 beq 30001828 rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 3000171c: e5d03000 ldrb r3, [r0] 30001720: e353002f cmp r3, #47 ; 0x2f 30001724: 1353005c cmpne r3, #92 ; 0x5c 30001728: 13a06000 movne r6, #0 3000172c: 03a06001 moveq r6, #1 30001730: 1a00002b bne 300017e4 30001734: e59f3100 ldr r3, [pc, #256] ; 3000183c 30001738: e28d4004 add r4, sp, #4 3000173c: e593c000 ldr ip, [r3] 30001740: e3a06001 mov r6, #1 30001744: e28cc018 add ip, ip, #24 30001748: e1a0a004 mov sl, r4 3000174c: e8bc000f ldm ip!, {r0, r1, r2, r3} 30001750: e8aa000f stmia sl!, {r0, r1, r2, r3} if ( !temp_loc.ops->evalformake_h ) { 30001754: e59d3010 ldr r3, [sp, #16] int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 30001758: e59c2000 ldr r2, [ip] if ( !temp_loc.ops->evalformake_h ) { 3000175c: e5933004 ldr r3, [r3, #4] int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 30001760: e58a2000 str r2, [sl] if ( !temp_loc.ops->evalformake_h ) { 30001764: e3530000 cmp r3, #0 30001768: 0a000029 beq 30001814 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->evalformake_h)( 3000176c: e08e0006 add r0, lr, r6 30001770: e1a01004 mov r1, r4 30001774: e28d2018 add r2, sp, #24 30001778: e1a0e00f mov lr, pc 3000177c: e12fff13 bx r3 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 30001780: e3500000 cmp r0, #0 30001784: 1a000025 bne 30001820 return -1; if ( !temp_loc.ops->mknod_h ) { 30001788: e59d3010 ldr r3, [sp, #16] 3000178c: e593c014 ldr ip, [r3, #20] 30001790: e35c0000 cmp ip, #0 30001794: 0a000019 beq 30001800 rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 30001798: e1a01005 mov r1, r5 3000179c: e1a03008 mov r3, r8 300017a0: e58d4000 str r4, [sp] 300017a4: e59d0018 ldr r0, [sp, #24] 300017a8: e1a02007 mov r2, r7 300017ac: e1a0e00f mov lr, pc 300017b0: e12fff1c bx ip rtems_filesystem_freenode( &temp_loc ); 300017b4: e59d3010 ldr r3, [sp, #16] if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 300017b8: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); 300017bc: e3530000 cmp r3, #0 300017c0: 0a000004 beq 300017d8 300017c4: e593301c ldr r3, [r3, #28] 300017c8: e3530000 cmp r3, #0 300017cc: 11a00004 movne r0, r4 300017d0: 11a0e00f movne lr, pc 300017d4: 112fff13 bxne r3 return result; } 300017d8: e1a00005 mov r0, r5 300017dc: e28dd01c add sp, sp, #28 300017e0: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 300017e4: e3530000 cmp r3, #0 300017e8: 0affffd1 beq 30001734 300017ec: e59f3048 ldr r3, [pc, #72] ; 3000183c 300017f0: e28d4004 add r4, sp, #4 300017f4: e593c000 ldr ip, [r3] 300017f8: e28cc004 add ip, ip, #4 300017fc: eaffffd1 b 30001748 ); if ( result != 0 ) return -1; if ( !temp_loc.ops->mknod_h ) { rtems_filesystem_freenode( &temp_loc ); 30001800: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30001804: e3530000 cmp r3, #0 <== NOT EXECUTED 30001808: 11a00004 movne r0, r4 <== NOT EXECUTED 3000180c: 11a0e00f movne lr, pc <== NOT EXECUTED 30001810: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30001814: eb002ff2 bl 3000d7e4 <__errno> <== NOT EXECUTED 30001818: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000181c: e5803000 str r3, [r0] <== NOT EXECUTED 30001820: e3e05000 mvn r5, #0 30001824: eaffffeb b 300017d8 int i; const char *name_start; int result; if ( !(mode & (S_IFREG|S_IFCHR|S_IFBLK|S_IFIFO) ) ) rtems_set_errno_and_return_minus_one( EINVAL ); 30001828: eb002fed bl 3000d7e4 <__errno> <== NOT EXECUTED 3000182c: e3a03016 mov r3, #22 <== NOT EXECUTED 30001830: e5803000 str r3, [r0] <== NOT EXECUTED 30001834: e3e05000 mvn r5, #0 <== NOT EXECUTED 30001838: eaffffe6 b 300017d8 <== NOT EXECUTED 3000183c: 3001a0a0 .word 0x3001a0a0 3000185c : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 3000185c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 30001860: e2516000 subs r6, r1, #0 const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 30001864: e24dd018 sub sp, sp, #24 30001868: e1a07000 mov r7, r0 3000186c: e1a05002 mov r5, r2 30001870: e1a09003 mov r9, r3 30001874: e59da038 ldr sl, [sp, #56] ; 0x38 /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 30001878: 0a000083 beq 30001a8c /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 3000187c: e3520001 cmp r2, #1 30001880: 8a000081 bhi 30001a8c errno = EINVAL; return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 30001884: e5968024 ldr r8, [r6, #36] ; 0x24 30001888: e3580000 cmp r8, #0 3000188c: 0a000089 beq 30001ab8 /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 30001890: e3530000 cmp r3, #0 30001894: 03a0006c moveq r0, #108 ; 0x6c 30001898: 0a000002 beq 300018a8 size += strlen( device ) + 1; 3000189c: e1a00003 mov r0, r3 <== NOT EXECUTED 300018a0: eb0033c0 bl 3000e7a8 <== NOT EXECUTED 300018a4: e280006d add r0, r0, #109 ; 0x6d <== NOT EXECUTED temp_mt_entry = malloc( size ); 300018a8: eb001f79 bl 30009694 if ( !temp_mt_entry ) { 300018ac: e3500000 cmp r0, #0 */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); 300018b0: e1a04000 mov r4, r0 300018b4: e1a08000 mov r8, r0 if ( !temp_mt_entry ) { 300018b8: 0a000089 beq 30001ae4 return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { 300018bc: e3590000 cmp r9, #0 errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 300018c0: e5805030 str r5, [r0, #48] ; 0x30 if ( !temp_mt_entry ) { errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; 300018c4: e584002c str r0, [r4, #44] ; 0x2c if ( device ) { temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); } else temp_mt_entry->dev = 0; 300018c8: 05809068 streq r9, [r0, #104] ; 0x68 return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { 300018cc: 0a000004 beq 300018e4 temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); 300018d0: e280306c add r3, r0, #108 ; 0x6c <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); 300018d4: e1a00003 mov r0, r3 <== NOT EXECUTED 300018d8: e1a01009 mov r1, r9 <== NOT EXECUTED } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = 300018dc: e5843068 str r3, [r4, #104] ; 0x68 <== NOT EXECUTED (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 300018e0: eb003374 bl 3000e6b8 <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 300018e4: e35a0000 cmp sl, #0 300018e8: 0a00004a beq 30001a18 if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 300018ec: e1a0000a mov r0, sl 300018f0: eb0033ac bl 3000e7a8 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 300018f4: e28d5004 add r5, sp, #4 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 300018f8: e1a01000 mov r1, r0 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 300018fc: e3a0c001 mov ip, #1 30001900: e1a0000a mov r0, sl 30001904: e3a02007 mov r2, #7 30001908: e1a03005 mov r3, r5 3000190c: e58dc000 str ip, [sp] 30001910: ebfffed2 bl 30001460 30001914: e3700001 cmn r0, #1 30001918: 0a000069 beq 30001ac4 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 3000191c: e59d3010 ldr r3, [sp, #16] 30001920: e5933010 ldr r3, [r3, #16] 30001924: e3530000 cmp r3, #0 30001928: 0a000069 beq 30001ad4 /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 3000192c: e1a00005 mov r0, r5 30001930: e1a0e00f mov lr, pc 30001934: e12fff13 bx r3 30001938: e3500001 cmp r0, #1 3000193c: 1a000059 bne 30001aa8 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 30001940: e59f11b0 ldr r1, [pc, #432] ; 30001af8 30001944: e4913004 ldr r3, [r1], #4 30001948: e1530001 cmp r3, r1 3000194c: 0a000053 beq 30001aa0 !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = (rtems_filesystem_mount_table_entry_t *) the_node; if ( the_mount_entry->mt_fs_root.node_access == loc->node_access ) 30001950: e59d0004 ldr r0, [sp, #4] 30001954: e593201c ldr r2, [r3, #28] 30001958: e1520000 cmp r2, r0 3000195c: 1a000003 bne 30001970 30001960: ea000022 b 300019f0 <== NOT EXECUTED 30001964: e593201c ldr r2, [r3, #28] 30001968: e1520000 cmp r2, r0 3000196c: 0a00001f beq 300019f0 * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { 30001970: e5933000 ldr r3, [r3] /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 30001974: e1530001 cmp r3, r1 30001978: 1afffff9 bne 30001964 * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; 3000197c: e59d2010 ldr r2, [sp, #16] * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; 30001980: e59d100c ldr r1, [sp, #12] /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 30001984: e5923020 ldr r3, [r2, #32] * until the system is unmounted. It may be needed to correctly * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; 30001988: e5841010 str r1, [r4, #16] temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 3000198c: e59d1014 ldr r1, [sp, #20] /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 30001990: e3530000 cmp r3, #0 * 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. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; 30001994: e5840008 str r0, [r4, #8] temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 30001998: e5841018 str r1, [r4, #24] * traverse the tree. */ temp_mt_entry->mt_point_node.node_access = loc.node_access; temp_mt_entry->mt_point_node.handlers = loc.handlers; temp_mt_entry->mt_point_node.ops = loc.ops; 3000199c: e5842014 str r2, [r4, #20] /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ 300019a0: 0a00004b beq 30001ad4 errno = ENOTSUP; goto cleanup_and_bail; } if ( loc.ops->mount_h( temp_mt_entry ) ) { 300019a4: e1a00004 mov r0, r4 300019a8: e1a0e00f mov lr, pc 300019ac: e12fff13 bx r3 300019b0: e3500000 cmp r0, #0 300019b4: 1a000010 bne 300019fc temp_mt_entry->mt_point_node.handlers = NULL; temp_mt_entry->mt_point_node.ops = NULL; temp_mt_entry->mt_point_node.mt_entry = NULL; } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 300019b8: e1a00004 mov r0, r4 300019bc: e1a0e00f mov lr, pc 300019c0: e596f024 ldr pc, [r6, #36] ; 0x24 300019c4: e2506000 subs r6, r0, #0 300019c8: 1a00001b bne 30001a3c RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); 300019cc: e59f0124 ldr r0, [pc, #292] ; 30001af8 300019d0: e1a01004 mov r1, r4 300019d4: eb000de8 bl 3000517c <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 300019d8: e3570000 cmp r7, #0 300019dc: 01a00007 moveq r0, r7 *mt_entry = temp_mt_entry; 300019e0: 15874000 strne r4, [r7] 300019e4: 11a00006 movne r0, r6 if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); return -1; } 300019e8: e28dd018 add sp, sp, #24 300019ec: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 300019f0: eb002f7b bl 3000d7e4 <__errno> 300019f4: e3a03010 mov r3, #16 300019f8: e5803000 str r3, [r0] return 0; cleanup_and_bail: free( temp_mt_entry ); 300019fc: e1a00004 mov r0, r4 30001a00: eb001dc5 bl 3000911c if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 30001a04: e595300c ldr r3, [r5, #12] 30001a08: e3530000 cmp r3, #0 30001a0c: 1a000016 bne 30001a6c 30001a10: e3e00000 mvn r0, #0 <== NOT EXECUTED 30001a14: eafffff3 b 300019e8 <== NOT EXECUTED * This is a mount of the base file system --> The * mt_point_node.node_access will be set to null to indicate that this * is the root of the entire file system. */ temp_mt_entry->mt_fs_root.node_access = NULL; 30001a18: e584a01c str sl, [r4, #28] temp_mt_entry->mt_fs_root.handlers = NULL; 30001a1c: e584a024 str sl, [r4, #36] ; 0x24 temp_mt_entry->mt_fs_root.ops = NULL; 30001a20: e584a028 str sl, [r4, #40] ; 0x28 temp_mt_entry->mt_point_node.node_access = NULL; 30001a24: e584a008 str sl, [r4, #8] temp_mt_entry->mt_point_node.handlers = NULL; 30001a28: e584a010 str sl, [r4, #16] temp_mt_entry->mt_point_node.ops = NULL; 30001a2c: e584a014 str sl, [r4, #20] temp_mt_entry->mt_point_node.mt_entry = NULL; 30001a30: e584a018 str sl, [r4, #24] 30001a34: e1a0500a mov r5, sl 30001a38: eaffffde b 300019b8 } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 30001a3c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30001a40: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED 30001a44: e3530000 cmp r3, #0 <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 30001a48: 11a00004 movne r0, r4 <== NOT EXECUTED 30001a4c: 11a0e00f movne lr, pc <== NOT EXECUTED 30001a50: 112fff13 bxne r3 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 30001a54: e1a00004 mov r0, r4 <== NOT EXECUTED 30001a58: eb001daf bl 3000911c <== NOT EXECUTED if ( loc_to_free ) 30001a5c: e3550000 cmp r5, #0 <== NOT EXECUTED 30001a60: 1affffe7 bne 30001a04 <== NOT EXECUTED rtems_filesystem_freenode( loc_to_free ); 30001a64: e3e00000 mvn r0, #0 <== NOT EXECUTED 30001a68: eaffffde b 300019e8 <== NOT EXECUTED 30001a6c: e593301c ldr r3, [r3, #28] 30001a70: e3530000 cmp r3, #0 30001a74: 0affffe5 beq 30001a10 30001a78: e1a00005 mov r0, r5 30001a7c: e1a0e00f mov lr, pc 30001a80: e12fff13 bx r3 30001a84: e3e00000 mvn r0, #0 30001a88: eaffffd6 b 300019e8 * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 30001a8c: eb002f54 bl 3000d7e4 <__errno> 30001a90: e3a03016 mov r3, #22 30001a94: e5803000 str r3, [r0] 30001a98: e3e00000 mvn r0, #0 return -1; 30001a9c: eaffffd1 b 300019e8 cleanup_and_bail: free( temp_mt_entry ); if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); 30001aa0: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED 30001aa4: eaffffb4 b 3000197c <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { errno = ENOTDIR; 30001aa8: eb002f4d bl 3000d7e4 <__errno> 30001aac: e3a03014 mov r3, #20 30001ab0: e5803000 str r3, [r0] goto cleanup_and_bail; 30001ab4: eaffffd0 b 300019fc return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { errno = ENOTSUP; 30001ab8: eb002f49 bl 3000d7e4 <__errno> <== NOT EXECUTED 30001abc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001ac0: e5803000 str r3, [r0] <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 30001ac4: e1a00008 mov r0, r8 <== NOT EXECUTED 30001ac8: eb001d93 bl 3000911c <== NOT EXECUTED 30001acc: e3e00000 mvn r0, #0 <== NOT EXECUTED 30001ad0: eaffffc4 b 300019e8 <== 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 ){ errno = ENOTSUP; 30001ad4: eb002f42 bl 3000d7e4 <__errno> <== NOT EXECUTED 30001ad8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001adc: e5803000 str r3, [r0] <== NOT EXECUTED goto cleanup_and_bail; 30001ae0: eaffffc5 b 300019fc <== NOT EXECUTED if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); if ( !temp_mt_entry ) { errno = ENOMEM; 30001ae4: eb002f3e bl 3000d7e4 <__errno> <== NOT EXECUTED 30001ae8: e3a0300c mov r3, #12 <== NOT EXECUTED 30001aec: e5803000 str r3, [r0] <== NOT EXECUTED 30001af0: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 30001af4: eaffffbb b 300019e8 <== NOT EXECUTED 30001af8: 3001a880 .word 0x3001a880 30001b6c : */ int newlib_free_buffers( FILE *fp ) { 30001b6c: e92d4010 push {r4, lr} 30001b70: e1a04000 mov r4, r0 switch ( fileno(fp) ) { 30001b74: eb003019 bl 3000dbe0 30001b78: e3500002 cmp r0, #2 30001b7c: 9a000003 bls 30001b90 fp->_flags &= ~__SMBF; fp->_bf._base = fp->_p = (unsigned char *) NULL; } break; default: fclose(fp); 30001b80: e1a00004 mov r0, r4 <== NOT EXECUTED 30001b84: eb002f63 bl 3000d918 <== NOT EXECUTED } return 0; } 30001b88: e3a00000 mov r0, #0 30001b8c: e8bd8010 pop {r4, pc} { switch ( fileno(fp) ) { case 0: case 1: case 2: if (fp->_flags & __SMBF) { 30001b90: e1d430bc ldrh r3, [r4, #12] 30001b94: e3130080 tst r3, #128 ; 0x80 30001b98: 0afffffa beq 30001b88 free( fp->_bf._base ); 30001b9c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30001ba0: eb001d5d bl 3000911c <== NOT EXECUTED fp->_flags &= ~__SMBF; 30001ba4: e1d420bc ldrh r2, [r4, #12] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001ba8: e3a03000 mov r3, #0 <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 30001bac: e3c22080 bic r2, r2, #128 ; 0x80 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001bb0: e5843010 str r3, [r4, #16] <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 30001bb4: e1c420bc strh r2, [r4, #12] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001bb8: e5843000 str r3, [r4] <== NOT EXECUTED break; default: fclose(fp); } return 0; } 30001bbc: e3a00000 mov r0, #0 <== NOT EXECUTED 30001bc0: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30001eec : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 30001eec: e92d4010 push {r4, lr} rtems_device_driver status; if ( !initialized ) { 30001ef0: e59f3044 ldr r3, [pc, #68] ; 30001f3c rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { 30001ef4: e1a04000 mov r4, r0 rtems_device_driver status; if ( !initialized ) { 30001ef8: e5d32000 ldrb r2, [r3] 30001efc: e3520000 cmp r2, #0 30001f00: 0a000001 beq 30001f0c NULL_major = major; } return RTEMS_SUCCESSFUL; } 30001f04: e3a00000 mov r0, #0 30001f08: e8bd8010 pop {r4, pc} ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 30001f0c: e3a0c001 mov ip, #1 status = rtems_io_register_name( 30001f10: e59f0028 ldr r0, [pc, #40] ; 30001f40 30001f14: e1a01004 mov r1, r4 ) { rtems_device_driver status; if ( !initialized ) { initialized = 1; 30001f18: e5c3c000 strb ip, [r3] status = rtems_io_register_name( 30001f1c: eb000051 bl 30002068 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) 30001f20: e3500000 cmp r0, #0 30001f24: 1a000003 bne 30001f38 rtems_fatal_error_occurred(status); NULL_major = major; 30001f28: e59f3014 ldr r3, [pc, #20] ; 30001f44 } return RTEMS_SUCCESSFUL; } 30001f2c: e3a00000 mov r0, #0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); NULL_major = major; 30001f30: e5834000 str r4, [r3] } return RTEMS_SUCCESSFUL; } 30001f34: e8bd8010 pop {r4, pc} major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(status); 30001f38: eb001027 bl 30005fdc <== NOT EXECUTED 30001f3c: 3001f7c8 .word 0x3001f7c8 30001f40: 3001e09c .word 0x3001e09c 30001f44: 3001f97c .word 0x3001f97c 30001e04 : int open( const char *pathname, int flags, ... ) { 30001e04: e92d000e push {r1, r2, r3} 30001e08: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} 30001e0c: e24dd01c sub sp, sp, #28 30001e10: e59d503c ldr r5, [sp, #60] ; 0x3c 30001e14: e1a06000 mov r6, r0 /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 30001e18: e2853001 add r3, r5, #1 if ( ( status & _FREAD ) == _FREAD ) 30001e1c: e2138001 ands r8, r3, #1 30001e20: 13a08004 movne r8, #4 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 30001e24: e3130002 tst r3, #2 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); mode = va_arg( ap, int ); 30001e28: 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; 30001e2c: 13888002 orrne r8, r8, #2 va_start(ap, flags); mode = va_arg( ap, int ); 30001e30: e58d3018 str r3, [sp, #24] 30001e34: e59da040 ldr sl, [sp, #64] ; 0x40 * 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(); 30001e38: eb001dba bl 30009528 if ( iop == 0 ) { 30001e3c: e2504000 subs r4, r0, #0 30001e40: 03a06017 moveq r6, #23 30001e44: 0a00005d beq 30001fc0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 30001e48: e1a00006 mov r0, r6 30001e4c: eb003255 bl 3000e7a8 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 30001e50: e28d7004 add r7, sp, #4 pathname, strlen( pathname ), eval_flags, &loc, true ); 30001e54: e1a01000 mov r1, r0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 30001e58: e1a02008 mov r2, r8 30001e5c: e1a00006 mov r0, r6 30001e60: e3a08001 mov r8, #1 30001e64: e1a03007 mov r3, r7 30001e68: e58d8000 str r8, [sp] 30001e6c: ebfffd7b bl 30001460 pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 30001e70: e3700001 cmn r0, #1 30001e74: 0a000055 beq 30001fd0 if ( status != 0 ) { /* The file did not exist */ rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 30001e78: e2053c0a and r3, r5, #2560 ; 0xa00 30001e7c: e3530c0a cmp r3, #2560 ; 0xa00 30001e80: 03a06011 moveq r6, #17 30001e84: 0a000040 beq 30001f8c /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 30001e88: e59d300c ldr r3, [sp, #12] iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 30001e8c: e1a00005 mov r0, r5 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 30001e90: e584303c str r3, [r4, #60] ; 0x3c iop->file_info = loc.node_access; 30001e94: e59d3004 ldr r3, [sp, #4] iop->flags |= rtems_libio_fcntl_flags( flags ); 30001e98: e5948014 ldr r8, [r4, #20] * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; 30001e9c: e5843038 str r3, [r4, #56] ; 0x38 iop->flags |= rtems_libio_fcntl_flags( flags ); 30001ea0: eb001dce bl 300095e0 iop->pathinfo = loc; 30001ea4: e284c018 add ip, r4, #24 30001ea8: e1a0e007 mov lr, r7 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 30001eac: e1808008 orr r8, r0, r8 iop->pathinfo = loc; 30001eb0: e8be000f ldm lr!, {r0, r1, r2, r3} 30001eb4: e8ac000f stmia ip!, {r0, r1, r2, r3} if ( !iop->handlers || !iop->handlers->open_h ) { 30001eb8: e594303c ldr r3, [r4, #60] ; 0x3c */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 30001ebc: e59e2000 ldr r2, [lr] if ( !iop->handlers || !iop->handlers->open_h ) { 30001ec0: e3530000 cmp r3, #0 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 30001ec4: e58c2000 str r2, [ip] * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 30001ec8: e5848014 str r8, [r4, #20] iop->pathinfo = loc; if ( !iop->handlers || !iop->handlers->open_h ) { 30001ecc: 0a00002d beq 30001f88 30001ed0: e593c000 ldr ip, [r3] 30001ed4: e35c0000 cmp ip, #0 30001ed8: 0a00002a beq 30001f88 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 30001edc: e1a01006 mov r1, r6 30001ee0: e1a0300a mov r3, sl 30001ee4: e1a00004 mov r0, r4 30001ee8: e1a02005 mov r2, r5 30001eec: e1a0e00f mov lr, pc 30001ef0: e12fff1c bx ip if ( rc ) { 30001ef4: e3500000 cmp r0, #0 30001ef8: 1a000009 bne 30001f24 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 30001efc: e3150b01 tst r5, #1024 ; 0x400 30001f00: 1a00000c bne 30001f38 30001f04: e59f5150 ldr r5, [pc, #336] ; 3000205c if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 30001f08: e5950000 ldr r0, [r5] 30001f0c: e0604004 rsb r4, r0, r4 30001f10: e1a00344 asr r0, r4, #6 } 30001f14: e28dd01c add sp, sp, #28 30001f18: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr} 30001f1c: e28dd00c add sp, sp, #12 30001f20: e12fff1e bx lr goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); if ( rc ) { rc = errno; 30001f24: eb002e2e bl 3000d7e4 <__errno> 30001f28: e5906000 ldr r6, [r0] */ done: va_end(ap); if ( rc ) { 30001f2c: e3560000 cmp r6, #0 30001f30: 0afffff3 beq 30001f04 30001f34: ea000014 b 30001f8c /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); 30001f38: e59f511c ldr r5, [pc, #284] ; 3000205c 30001f3c: e3a01000 mov r1, #0 30001f40: e5950000 ldr r0, [r5] 30001f44: e3a02000 mov r2, #0 30001f48: e0600004 rsb r0, r0, r4 30001f4c: e1a00340 asr r0, r0, #6 30001f50: eb001c9a bl 300091c0 if ( rc ) { 30001f54: e2506000 subs r6, r0, #0 30001f58: 0affffea beq 30001f08 if(errno) rc = errno; 30001f5c: eb002e20 bl 3000d7e4 <__errno> <== NOT EXECUTED 30001f60: e5903000 ldr r3, [r0] <== NOT EXECUTED 30001f64: e3530000 cmp r3, #0 <== NOT EXECUTED 30001f68: 1a000038 bne 30002050 <== NOT EXECUTED close( iop - rtems_libio_iops ); 30001f6c: e5950000 ldr r0, [r5] <== NOT EXECUTED 30001f70: e0600004 rsb r0, r0, r4 <== NOT EXECUTED 30001f74: e1a00340 asr r0, r0, #6 <== NOT EXECUTED 30001f78: e3a04000 mov r4, #0 <== NOT EXECUTED 30001f7c: eb001c3d bl 30009078 <== NOT EXECUTED 30001f80: e1a07004 mov r7, r4 <== NOT EXECUTED 30001f84: eaffffe8 b 30001f2c <== NOT EXECUTED if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 30001f88: e3a06086 mov r6, #134 ; 0x86 <== NOT EXECUTED done: va_end(ap); if ( rc ) { if ( iop ) 30001f8c: e3540000 cmp r4, #0 rtems_libio_free( iop ); 30001f90: 11a00004 movne r0, r4 30001f94: 1b001d4d blne 300094d0 if ( loc_to_free ) 30001f98: e3570000 cmp r7, #0 30001f9c: 0a000007 beq 30001fc0 rtems_filesystem_freenode( loc_to_free ); 30001fa0: e597300c ldr r3, [r7, #12] 30001fa4: e3530000 cmp r3, #0 30001fa8: 0a000004 beq 30001fc0 30001fac: e593301c ldr r3, [r3, #28] 30001fb0: e3530000 cmp r3, #0 30001fb4: 11a00007 movne r0, r7 30001fb8: 11a0e00f movne lr, pc 30001fbc: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( rc ); 30001fc0: eb002e07 bl 3000d7e4 <__errno> 30001fc4: e5806000 str r6, [r0] 30001fc8: e3e00000 mvn r0, #0 30001fcc: eaffffd0 b 30001f14 status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { if ( errno != ENOENT ) { 30001fd0: eb002e03 bl 3000d7e4 <__errno> 30001fd4: e5903000 ldr r3, [r0] 30001fd8: e3530002 cmp r3, #2 30001fdc: 0a000003 beq 30001ff0 } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); if ( rc ) { rc = errno; 30001fe0: eb002dff bl 3000d7e4 <__errno> 30001fe4: e3a07000 mov r7, #0 30001fe8: e5906000 ldr r6, [r0] goto done; 30001fec: eaffffce b 30001f2c rc = errno; goto done; } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { 30001ff0: e2159c02 ands r9, r5, #512 ; 0x200 30001ff4: 01a07009 moveq r7, r9 30001ff8: 01a06003 moveq r6, r3 30001ffc: 0affffe2 beq 30001f8c rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 30002000: e1a00006 mov r0, r6 30002004: e38a1902 orr r1, sl, #32768 ; 0x8000 30002008: e3a02000 mov r2, #0 3000200c: e3a03000 mov r3, #0 30002010: ebfffdb9 bl 300016fc if ( rc ) { 30002014: e2509000 subs r9, r0, #0 30002018: 1afffff0 bne 30001fe0 rc = errno; goto done; } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true ); 3000201c: e1a00006 mov r0, r6 30002020: eb0031e0 bl 3000e7a8 30002024: e1a03007 mov r3, r7 30002028: e1a01000 mov r1, r0 3000202c: e1a02009 mov r2, r9 30002030: e1a00006 mov r0, r6 30002034: e58d8000 str r8, [sp] 30002038: ebfffd08 bl 30001460 if ( status != 0 ) { /* The file did not exist */ 3000203c: e3500000 cmp r0, #0 30002040: 11a07009 movne r7, r9 30002044: 13a0600d movne r6, #13 30002048: 1affffcf bne 30001f8c 3000204c: eaffff8d b 30001e88 */ if ( (flags & O_TRUNC) == O_TRUNC ) { rc = ftruncate( iop - rtems_libio_iops, 0 ); if ( rc ) { if(errno) rc = errno; 30002050: eb002de3 bl 3000d7e4 <__errno> <== NOT EXECUTED 30002054: e5906000 ldr r6, [r0] <== NOT EXECUTED 30002058: eaffffc3 b 30001f6c <== NOT EXECUTED 3000205c: 3001a848 .word 0x3001a848 30001d9c : int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 30001d9c: e3a01000 mov r1, #0 /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 30001da0: 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) { 30001da4: e59f004c ldr r0, [pc, #76] ; 30001df8 30001da8: e1a02001 mov r2, r1 30001dac: eb000014 bl 30001e04 30001db0: e3700001 cmn r0, #1 30001db4: 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) 30001db8: e59f0038 ldr r0, [pc, #56] ; 30001df8 30001dbc: e3a01001 mov r1, #1 30001dc0: e3a02000 mov r2, #0 30001dc4: eb00000e bl 30001e04 30001dc8: e3700001 cmn r0, #1 30001dcc: 0a000007 beq 30001df0 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 30001dd0: e59f0020 ldr r0, [pc, #32] ; 30001df8 30001dd4: e3a01001 mov r1, #1 30001dd8: e3a02000 mov r2, #0 30001ddc: eb000008 bl 30001e04 30001de0: e3700001 cmn r0, #1 30001de4: 149df004 popne {pc} ; (ldrne pc, [sp], #4) rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ 30001de8: e59f000c ldr r0, [pc, #12] ; 30001dfc <== NOT EXECUTED 30001dec: eb000c1a bl 30004e5c <== 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) rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ 30001df0: e59f0008 ldr r0, [pc, #8] ; 30001e00 <== NOT EXECUTED 30001df4: eb000c18 bl 30004e5c <== NOT EXECUTED 30001df8: 30019924 .word 0x30019924 30001dfc: 55544432 .word 0x55544432 30001e00: 55544431 .word 0x55544431 300027a0 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 300027a0: e92d4010 push {r4, lr} int i; if (tty->termios.c_oflag & OPOST) { 300027a4: e5913034 ldr r3, [r1, #52] ; 0x34 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 300027a8: e24dd004 sub sp, sp, #4 int i; if (tty->termios.c_oflag & OPOST) { 300027ac: e3130001 tst r3, #1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 300027b0: e1a04001 mov r4, r1 300027b4: e5cd0000 strb r0, [sp] int i; if (tty->termios.c_oflag & OPOST) { 300027b8: 0a000014 beq 30002810 switch (c) { 300027bc: e5dd1000 ldrb r1, [sp] 300027c0: e2412008 sub r2, r1, #8 300027c4: e3520005 cmp r2, #5 300027c8: 979ff102 ldrls pc, [pc, r2, lsl #2] 300027cc: ea000005 b 300027e8 300027d0: 30002880 .word 0x30002880 <== NOT EXECUTED 300027d4: 3000285c .word 0x3000285c <== NOT EXECUTED 300027d8: 30002894 .word 0x30002894 <== NOT EXECUTED 300027dc: 300027e8 .word 0x300027e8 <== NOT EXECUTED 300027e0: 300027e8 .word 0x300027e8 <== NOT EXECUTED 300027e4: 30002828 .word 0x30002828 <== NOT EXECUTED if (tty->column > 0) tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 300027e8: e3130002 tst r3, #2 300027ec: 1a000034 bne 300028c4 300027f0: e59f310c ldr r3, [pc, #268] ; 30002904 300027f4: e5933000 ldr r3, [r3] c = toupper(c); if (!iscntrl(c)) 300027f8: e0831001 add r1, r3, r1 300027fc: e5d13001 ldrb r3, [r1, #1] 30002800: e3130020 tst r3, #32 tty->column++; 30002804: 05943028 ldreq r3, [r4, #40] ; 0x28 30002808: 02833001 addeq r3, r3, #1 3000280c: 05843028 streq r3, [r4, #40] ; 0x28 break; } } rtems_termios_puts (&c, 1, tty); 30002810: e1a02004 mov r2, r4 30002814: e1a0000d mov r0, sp 30002818: e3a01001 mov r1, #1 3000281c: ebffff97 bl 30002680 } 30002820: e28dd004 add sp, sp, #4 30002824: e8bd8010 pop {r4, pc} tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 30002828: e3130010 tst r3, #16 <== NOT EXECUTED 3000282c: 0a000002 beq 3000283c <== NOT EXECUTED 30002830: e5942028 ldr r2, [r4, #40] ; 0x28 <== NOT EXECUTED 30002834: e3520000 cmp r2, #0 <== NOT EXECUTED 30002838: 0afffff8 beq 30002820 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 3000283c: e2132008 ands r2, r3, #8 <== NOT EXECUTED 30002840: 0a00000c beq 30002878 <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) 30002844: 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'; 30002848: e3a0300a mov r3, #10 <== NOT EXECUTED 3000284c: e5cd3000 strb r3, [sp] <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) tty->column = 0; 30002850: 13a03000 movne r3, #0 <== NOT EXECUTED 30002854: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002858: eaffffec b 30002810 <== NOT EXECUTED } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 3000285c: e5942028 ldr r2, [r4, #40] ; 0x28 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 30002860: e2033b06 and r3, r3, #6144 ; 0x1800 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 30002864: e2021007 and r1, r2, #7 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 30002868: e3530b06 cmp r3, #6144 ; 0x1800 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 3000286c: e2611008 rsb r1, r1, #8 if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 30002870: 10812002 addne r2, r1, r2 tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { 30002874: 0a00001c beq 300028ec tty->column += i; rtems_termios_puts ( " ", i, tty); return; } tty->column += i; 30002878: e5842028 str r2, [r4, #40] ; 0x28 <== NOT EXECUTED break; 3000287c: eaffffe3 b 30002810 <== NOT EXECUTED case '\b': if (tty->column > 0) 30002880: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002884: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; 30002888: c2433001 subgt r3, r3, #1 <== NOT EXECUTED 3000288c: c5843028 strgt r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002890: eaffffde b 30002810 <== NOT EXECUTED int i; if (tty->termios.c_oflag & OPOST) { switch (c) { case '\n': if (tty->termios.c_oflag & ONLRET) 30002894: e3130020 tst r3, #32 tty->column = 0; 30002898: 13a02000 movne r2, #0 3000289c: 15842028 strne r2, [r4, #40] ; 0x28 if (tty->termios.c_oflag & ONLCR) { 300028a0: e3130004 tst r3, #4 300028a4: 0affffd9 beq 30002810 rtems_termios_puts ("\r", 1, tty); 300028a8: e59f0058 ldr r0, [pc, #88] ; 30002908 300028ac: e3a01001 mov r1, #1 300028b0: e1a02004 mov r2, r4 300028b4: ebffff71 bl 30002680 tty->column = 0; 300028b8: e3a03000 mov r3, #0 300028bc: e5843028 str r3, [r4, #40] ; 0x28 300028c0: eaffffd2 b 30002810 tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) c = toupper(c); 300028c4: e59f3038 ldr r3, [pc, #56] ; 30002904 <== NOT EXECUTED 300028c8: e5933000 ldr r3, [r3] <== NOT EXECUTED 300028cc: e0832001 add r2, r3, r1 <== NOT EXECUTED 300028d0: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED 300028d4: e2022003 and r2, r2, #3 <== NOT EXECUTED 300028d8: e3520002 cmp r2, #2 <== NOT EXECUTED 300028dc: 02411020 subeq r1, r1, #32 <== NOT EXECUTED 300028e0: e20110ff and r1, r1, #255 ; 0xff <== NOT EXECUTED 300028e4: e5cd1000 strb r1, [sp] <== NOT EXECUTED 300028e8: eaffffc2 b 300027f8 <== NOT EXECUTED break; case '\t': i = 8 - (tty->column & 7); if ((tty->termios.c_oflag & TABDLY) == XTABS) { tty->column += i; 300028ec: e0812002 add r2, r1, r2 300028f0: e5842028 str r2, [r4, #40] ; 0x28 rtems_termios_puts ( " ", i, tty); 300028f4: e59f0010 ldr r0, [pc, #16] ; 3000290c 300028f8: e1a02004 mov r2, r4 300028fc: ebffff5f bl 30002680 return; 30002900: eaffffc6 b 30002820 30002904: 3001a148 .word 0x3001a148 30002908: 30019a68 .word 0x30019a68 3000290c: 30019998 .word 0x30019998 3000cd00 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 3000cd00: e92d4070 push {r4, r5, r6, lr} 3000cd04: e24dd028 sub sp, sp, #40 ; 0x28 rtems_filesystem_location_info_t loc; rtems_libio_t *iop; int err = 0; /* Create /tmp if not exists */ if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE) 3000cd08: e28d4004 add r4, sp, #4 3000cd0c: e3a0c001 mov ip, #1 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 3000cd10: e1a05000 mov r5, r0 rtems_filesystem_location_info_t loc; rtems_libio_t *iop; int err = 0; /* Create /tmp if not exists */ if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE) 3000cd14: e3a01003 mov r1, #3 3000cd18: e59f0150 ldr r0, [pc, #336] ; 3000ce70 3000cd1c: e3a02007 mov r2, #7 3000cd20: e1a03004 mov r3, r4 3000cd24: e58dc000 str ip, [sp] 3000cd28: ebffd1cc bl 30001460 3000cd2c: e3500000 cmp r0, #0 3000cd30: 1a00003a bne 3000ce20 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) return -1; } else rtems_filesystem_freenode(&loc); 3000cd34: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 3000cd38: e3530000 cmp r3, #0 <== NOT EXECUTED 3000cd3c: 0a000004 beq 3000cd54 <== NOT EXECUTED 3000cd40: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000cd44: e3530000 cmp r3, #0 <== NOT EXECUTED 3000cd48: 11a00004 movne r0, r4 <== NOT EXECUTED 3000cd4c: 11a0e00f movne lr, pc <== NOT EXECUTED 3000cd50: 112fff13 bxne r3 <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 3000cd54: e28d4018 add r4, sp, #24 3000cd58: e59f2114 ldr r2, [pc, #276] ; 3000ce74 3000cd5c: e1a0c004 mov ip, r4 3000cd60: e8920007 ldm r2, {r0, r1, r2} 3000cd64: e8ac0003 stmia ip!, {r0, r1} sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 3000cd68: e59f3108 ldr r3, [pc, #264] ; 3000ce78 else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 3000cd6c: e1a0100c mov r1, ip sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 3000cd70: e1d3c0b0 ldrh ip, [r3] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 3000cd74: e1c120b0 strh r2, [r1] sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 3000cd78: e1a0200c mov r2, ip 3000cd7c: e28cc001 add ip, ip, #1 3000cd80: e59f10f4 ldr r1, [pc, #244] ; 3000ce7c 3000cd84: e1c3c0b0 strh ip, [r3] 3000cd88: e284000a add r0, r4, #10 3000cd8c: eb000548 bl 3000e2b4 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 3000cd90: e1a00004 mov r0, r4 3000cd94: e3a01d06 mov r1, #384 ; 0x180 3000cd98: eb00004b bl 3000cecc 3000cd9c: e2506000 subs r6, r0, #0 3000cda0: 1a00001c bne 3000ce18 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); 3000cda4: e1a00004 mov r0, r4 3000cda8: e3a01901 mov r1, #16384 ; 0x4000 3000cdac: ebffd414 bl 30001e04 if (filsdes[0] < 0) { 3000cdb0: e3500000 cmp r0, #0 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); 3000cdb4: e5850000 str r0, [r5] if (filsdes[0] < 0) { 3000cdb8: ba000022 blt 3000ce48 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]); 3000cdbc: e59f30bc ldr r3, [pc, #188] ; 3000ce80 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); 3000cdc0: 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]); 3000cdc4: e5933000 ldr r3, [r3] <== NOT EXECUTED 3000cdc8: e1500003 cmp r0, r3 <== NOT EXECUTED 3000cdcc: 359f30b0 ldrcc r3, [pc, #176] ; 3000ce84 <== NOT EXECUTED 3000cdd0: 35936000 ldrcc r6, [r3] <== NOT EXECUTED 3000cdd4: 30866300 addcc r6, r6, r0, lsl #6 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 3000cdd8: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 3000cddc: e1a00004 mov r0, r4 <== NOT EXECUTED unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 3000cde0: e3c33001 bic r3, r3, #1 <== NOT EXECUTED 3000cde4: e5863014 str r3, [r6, #20] <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 3000cde8: ebffd405 bl 30001e04 <== NOT EXECUTED if (filsdes[1] < 0) { 3000cdec: 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); 3000cdf0: e5850004 str r0, [r5, #4] <== NOT EXECUTED if (filsdes[1] < 0) { 3000cdf4: a3a06000 movge r6, #0 <== NOT EXECUTED 3000cdf8: ba000017 blt 3000ce5c <== NOT EXECUTED err = errno; close(filsdes[0]); } unlink(fifopath); 3000cdfc: e1a00004 mov r0, r4 <== NOT EXECUTED 3000ce00: eb000035 bl 3000cedc <== NOT EXECUTED } rtems_set_errno_and_return_minus_one(err); 3000ce04: eb000276 bl 3000d7e4 <__errno> 3000ce08: e5806000 str r6, [r0] } 3000ce0c: e3e00000 mvn r0, #0 3000ce10: e28dd028 add sp, sp, #40 ; 0x28 3000ce14: e8bd8070 pop {r4, r5, r6, pc} memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { if (errno != EEXIST){ 3000ce18: eb000271 bl 3000d7e4 <__errno> <== NOT EXECUTED 3000ce1c: eafffffa b 3000ce0c <== NOT EXECUTED rtems_libio_t *iop; int err = 0; /* Create /tmp if not exists */ if (rtems_filesystem_evaluate_path("/tmp", 3, RTEMS_LIBIO_PERMS_RWX, &loc, TRUE) != 0) { if (errno != ENOENT) 3000ce20: eb00026f bl 3000d7e4 <__errno> 3000ce24: e5903000 ldr r3, [r0] 3000ce28: e3530002 cmp r3, #2 3000ce2c: 1afffff6 bne 3000ce0c return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 3000ce30: e59f0038 ldr r0, [pc, #56] ; 3000ce70 3000ce34: e59f104c ldr r1, [pc, #76] ; 3000ce88 3000ce38: ebffd22b bl 300016ec 3000ce3c: e3500000 cmp r0, #0 3000ce40: 0affffc3 beq 3000cd54 3000ce44: eafffff0 b 3000ce0c <== NOT EXECUTED } /* Non-blocking open to avoid waiting for writers */ filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK); if (filsdes[0] < 0) { err = errno; 3000ce48: eb000265 bl 3000d7e4 <__errno> 3000ce4c: e5906000 ldr r6, [r0] /* Delete file at errors, or else if pipe is successfully created the file node will be deleted after it is closed by all. */ unlink(fifopath); 3000ce50: e1a00004 mov r0, r4 3000ce54: eb000020 bl 3000cedc 3000ce58: eaffffe9 b 3000ce04 iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); if (filsdes[1] < 0) { err = errno; 3000ce5c: eb000260 bl 3000d7e4 <__errno> <== NOT EXECUTED 3000ce60: e5906000 ldr r6, [r0] <== NOT EXECUTED close(filsdes[0]); 3000ce64: e5950000 ldr r0, [r5] <== NOT EXECUTED 3000ce68: ebfff082 bl 30009078 <== NOT EXECUTED 3000ce6c: eaffffe2 b 3000cdfc <== NOT EXECUTED 3000ce70: 30019c44 .word 0x30019c44 3000ce74: 30019c4c .word 0x30019c4c 3000ce78: 3001a7ca .word 0x3001a7ca 3000ce7c: 30019c58 .word 0x30019c58 3000ce80: 30019ea8 .word 0x30019ea8 3000ce84: 3001a848 .word 0x3001a848 3000ce88: 000003ff .word 0x000003ff 3000b478 : uint32_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { 3000b478: e59f3054 ldr r3, [pc, #84] ; 3000b4d4 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 3000b47c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED if (cmd == FIONREAD) { 3000b480: e1510003 cmp r1, r3 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 3000b484: e1a05000 mov r5, r0 <== NOT EXECUTED 3000b488: e1a04002 mov r4, r2 <== NOT EXECUTED if (cmd == FIONREAD) { 3000b48c: 13e00015 mvnne r0, #21 <== NOT EXECUTED 3000b490: 18bd8070 popne {r4, r5, r6, pc} <== NOT EXECUTED if (buffer == NULL) 3000b494: e3520000 cmp r2, #0 <== NOT EXECUTED 3000b498: 03e0000d mvneq r0, #13 <== NOT EXECUTED 3000b49c: 08bd8070 popeq {r4, r5, r6, pc} <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 3000b4a0: e3a01000 mov r1, #0 <== NOT EXECUTED 3000b4a4: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED 3000b4a8: e1a02001 mov r2, r1 <== NOT EXECUTED 3000b4ac: ebffe4ca bl 300047dc <== NOT EXECUTED 3000b4b0: e2506000 subs r6, r0, #0 <== NOT EXECUTED 3000b4b4: 13e00003 mvnne r0, #3 <== NOT EXECUTED 3000b4b8: 18bd8070 popne {r4, r5, r6, pc} <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 3000b4bc: e595300c ldr r3, [r5, #12] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000b4c0: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 3000b4c4: e5843000 str r3, [r4] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000b4c8: ebffe50b bl 300048fc <== NOT EXECUTED 3000b4cc: e1a00006 mov r0, r6 <== NOT EXECUTED return 0; } return -EINVAL; } 3000b4d0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3000b4d4: 4004667f .word 0x4004667f 3000b400 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 3000b400: e3e0001c mvn r0, #28 <== NOT EXECUTED 3000b404: e12fff1e bx lr <== NOT EXECUTED 3000b4d8 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 3000b4d8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED 3000b4dc: e1a09001 mov r9, r1 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 3000b4e0: e3a01000 mov r1, #0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 3000b4e4: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 3000b4e8: e1a04000 mov r4, r0 <== NOT EXECUTED 3000b4ec: e1a05002 mov r5, r2 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 3000b4f0: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED 3000b4f4: e1a02001 mov r2, r1 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 3000b4f8: e1a08003 mov r8, r3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 3000b4fc: ebffe4b6 bl 300047dc <== NOT EXECUTED 3000b500: e250a000 subs sl, r0, #0 <== NOT EXECUTED 3000b504: 13e07003 mvnne r7, #3 <== NOT EXECUTED 3000b508: 1a000027 bne 3000b5ac <== NOT EXECUTED return -EINTR; while (read < count) { 3000b50c: e3550000 cmp r5, #0 <== NOT EXECUTED 3000b510: 01a07005 moveq r7, r5 <== NOT EXECUTED 3000b514: 01a06007 moveq r6, r7 <== NOT EXECUTED 3000b518: 0a00001f beq 3000b59c <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; if (ret != 0) 3000b51c: e1a0700a mov r7, sl <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); 3000b520: e28db004 add fp, sp, #4 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 3000b524: e594200c ldr r2, [r4, #12] <== NOT EXECUTED 3000b528: e3520000 cmp r2, #0 <== NOT EXECUTED 3000b52c: 1a000021 bne 3000b5b8 <== NOT EXECUTED /* Not an error */ if (pipe->Writers == 0) 3000b530: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 3000b534: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b538: 0a00003d beq 3000b634 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 3000b53c: e5986014 ldr r6, [r8, #20] <== NOT EXECUTED 3000b540: e2166001 ands r6, r6, #1 <== NOT EXECUTED 3000b544: 1a00003c bne 3000b63c <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; 3000b548: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000b54c: 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 ++; 3000b550: e2833001 add r3, r3, #1 <== NOT EXECUTED 3000b554: e5843018 str r3, [r4, #24] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000b558: ebffe4e7 bl 300048fc <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 3000b55c: e1a01006 mov r1, r6 <== NOT EXECUTED 3000b560: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000b564: eb000468 bl 3000c70c <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000b568: e1a01006 mov r1, r6 <== NOT EXECUTED 3000b56c: e1a02001 mov r2, r1 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) 3000b570: e2506000 subs r6, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000b574: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) 3000b578: 13e06003 mvnne r6, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000b57c: ebffe496 bl 300047dc <== NOT EXECUTED 3000b580: e3500000 cmp r0, #0 <== NOT EXECUTED 3000b584: 1a00002e bne 3000b644 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 3000b588: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED if (ret != 0) 3000b58c: e3560000 cmp r6, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 3000b590: e2433001 sub r3, r3, #1 <== NOT EXECUTED 3000b594: e5843018 str r3, [r4, #24] <== NOT EXECUTED if (ret != 0) 3000b598: 0affffe1 beq 3000b524 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 3000b59c: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000b5a0: ebffe4d5 bl 300048fc <== NOT EXECUTED out_nolock: if (read > 0) 3000b5a4: e3570000 cmp r7, #0 <== NOT EXECUTED 3000b5a8: d1a07006 movle r7, r6 <== NOT EXECUTED return read; return ret; } 3000b5ac: e1a00007 mov r0, r7 <== NOT EXECUTED 3000b5b0: e28dd008 add sp, sp, #8 <== NOT EXECUTED 3000b5b4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; 3000b5b8: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED 3000b5bc: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); 3000b5c0: e06a6005 rsb r6, sl, r5 <== NOT EXECUTED 3000b5c4: e1520006 cmp r2, r6 <== NOT EXECUTED 3000b5c8: 31a06002 movcc r6, r2 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 3000b5cc: e0613003 rsb r3, r1, r3 <== NOT EXECUTED if (chunk > chunk1) { 3000b5d0: e1560003 cmp r6, r3 <== NOT EXECUTED 3000b5d4: ca00001c bgt 3000b64c <== 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); 3000b5d8: e5943000 ldr r3, [r4] <== NOT EXECUTED 3000b5dc: e089000a add r0, r9, sl <== NOT EXECUTED 3000b5e0: e0831001 add r1, r3, r1 <== NOT EXECUTED 3000b5e4: e1a02006 mov r2, r6 <== NOT EXECUTED 3000b5e8: eb000a8b bl 3000e01c <== NOT EXECUTED pipe->Start += chunk; 3000b5ec: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED pipe->Start %= pipe->Size; 3000b5f0: e5941004 ldr r1, [r4, #4] <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; 3000b5f4: e0860000 add r0, r6, r0 <== NOT EXECUTED 3000b5f8: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Start %= pipe->Size; 3000b5fc: eb002e2f bl 30016ec0 <__umodsi3> <== NOT EXECUTED pipe->Length -= chunk; 3000b600: e594300c ldr r3, [r4, #12] <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; 3000b604: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Length -= chunk; 3000b608: e0663003 rsb r3, r6, r3 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 3000b60c: e3530000 cmp r3, #0 <== NOT EXECUTED pipe->Start = 0; 3000b610: 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; 3000b614: e584300c str r3, [r4, #12] <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) 3000b618: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 3000b61c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b620: 1a000016 bne 3000b680 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; 3000b624: e0877006 add r7, r7, r6 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 3000b628: e1570005 cmp r7, r5 <== NOT EXECUTED 3000b62c: e1a0a007 mov sl, r7 <== NOT EXECUTED 3000b630: 3affffbb bcc 3000b524 <== NOT EXECUTED 3000b634: e3a06000 mov r6, #0 <== NOT EXECUTED 3000b638: eaffffd7 b 3000b59c <== NOT EXECUTED while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) goto out_locked; if (LIBIO_NODELAY(iop)) { 3000b63c: e3e0600a mvn r6, #10 <== NOT EXECUTED 3000b640: eaffffd5 b 3000b59c <== NOT EXECUTED /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; PIPE_UNLOCK(pipe); if (! PIPE_READWAIT(pipe)) ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000b644: e3e06003 mvn r6, #3 <== NOT EXECUTED 3000b648: eaffffd5 b 3000b5a4 <== NOT EXECUTED /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; if (chunk > chunk1) { memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 3000b64c: e5940000 ldr r0, [r4] <== NOT EXECUTED 3000b650: e1a02003 mov r2, r3 <== NOT EXECUTED 3000b654: e0801001 add r1, r0, r1 <== NOT EXECUTED 3000b658: e089000a add r0, r9, sl <== NOT EXECUTED 3000b65c: e58d3000 str r3, [sp] <== NOT EXECUTED 3000b660: eb000a6d bl 3000e01c <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 3000b664: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3000b668: e5941000 ldr r1, [r4] <== NOT EXECUTED 3000b66c: e08a0003 add r0, sl, r3 <== NOT EXECUTED 3000b670: e0890000 add r0, r9, r0 <== NOT EXECUTED 3000b674: e0632006 rsb r2, r3, r6 <== NOT EXECUTED 3000b678: eb000a67 bl 3000e01c <== NOT EXECUTED 3000b67c: eaffffda b 3000b5ec <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); 3000b680: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000b684: e1a0100b mov r1, fp <== NOT EXECUTED 3000b688: eb000406 bl 3000c6a8 <== NOT EXECUTED 3000b68c: eaffffe4 b 3000b624 <== NOT EXECUTED 3000b8a8 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000b8a8: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED pipe_control_t *pipe = *pipep; 3000b8ac: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000b8b0: e1a05001 mov r5, r1 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 3000b8b4: e3a01000 mov r1, #0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000b8b8: e24dd004 sub sp, sp, #4 <== NOT EXECUTED 3000b8bc: e1a07000 mov r7, r0 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 3000b8c0: e1a02001 mov r2, r1 <== NOT EXECUTED 3000b8c4: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000b8c8: ebffe3c3 bl 300047dc <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 3000b8cc: e3500000 cmp r0, #0 <== NOT EXECUTED 3000b8d0: 1a000038 bne 3000b9b8 <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 3000b8d4: e5956014 ldr r6, [r5, #20] <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 3000b8d8: e59f50dc ldr r5, [pc, #220] ; 3000b9bc <== NOT EXECUTED /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) 3000b8dc: e3160002 tst r6, #2 <== NOT EXECUTED pipe->Readers --; 3000b8e0: 15943010 ldrne r3, [r4, #16] <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 3000b8e4: e2066006 and r6, r6, #6 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) pipe->Readers --; 3000b8e8: 12433001 subne r3, r3, #1 <== NOT EXECUTED 3000b8ec: 15843010 strne r3, [r4, #16] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 3000b8f0: e3160004 tst r6, #4 <== NOT EXECUTED pipe->Writers --; 3000b8f4: 15943014 ldrne r3, [r4, #20] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 3000b8f8: e3a01000 mov r1, #0 <== NOT EXECUTED mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; 3000b8fc: 12433001 subne r3, r3, #1 <== NOT EXECUTED 3000b900: 15843014 strne r3, [r4, #20] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 3000b904: e5950000 ldr r0, [r5] <== NOT EXECUTED 3000b908: e1a02001 mov r2, r1 <== NOT EXECUTED 3000b90c: ebffe3b2 bl 300047dc <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) 3000b910: e3500000 cmp r0, #0 <== NOT EXECUTED 3000b914: 1a000027 bne 3000b9b8 <== NOT EXECUTED rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); 3000b918: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000b91c: ebffe3f6 bl 300048fc <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 3000b920: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3000b924: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b928: 0a00000d beq 3000b964 <== NOT EXECUTED *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 3000b92c: e5942014 ldr r2, [r4, #20] <== NOT EXECUTED 3000b930: e2723001 rsbs r3, r2, #1 <== NOT EXECUTED 3000b934: 33a03000 movcc r3, #0 <== NOT EXECUTED 3000b938: e3560002 cmp r6, #2 <== NOT EXECUTED 3000b93c: 03a03000 moveq r3, #0 <== NOT EXECUTED 3000b940: e3530000 cmp r3, #0 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 3000b944: 1594002c ldrne r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000b948: 11a0100d movne r1, sp <== NOT EXECUTED 3000b94c: 1b000355 blne 3000c6a8 <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 3000b950: e5950000 ldr r0, [r5] <== NOT EXECUTED 3000b954: ebffe3e8 bl 300048fc <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 3000b958: e3a00000 mov r0, #0 <== NOT EXECUTED 3000b95c: e28dd004 add sp, sp, #4 <== NOT EXECUTED 3000b960: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { 3000b964: e5948014 ldr r8, [r4, #20] <== NOT EXECUTED 3000b968: e3580000 cmp r8, #0 <== NOT EXECUTED 3000b96c: 0a000005 beq 3000b988 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 3000b970: e3560004 cmp r6, #4 <== NOT EXECUTED 3000b974: 0afffff5 beq 3000b950 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 3000b978: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000b97c: e1a0100d mov r1, sp <== NOT EXECUTED 3000b980: eb000348 bl 3000c6a8 <== NOT EXECUTED 3000b984: eafffff1 b 3000b950 <== NOT EXECUTED /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { rtems_barrier_delete(pipe->readBarrier); 3000b988: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000b98c: eb00032b bl 3000c640 <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 3000b990: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000b994: eb000329 bl 3000c640 <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 3000b998: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000b99c: ebffe365 bl 30004738 <== NOT EXECUTED free(pipe->Buffer); 3000b9a0: e5940000 ldr r0, [r4] <== NOT EXECUTED 3000b9a4: ebfff5dc bl 3000911c <== NOT EXECUTED free(pipe); 3000b9a8: e1a00004 mov r0, r4 <== NOT EXECUTED 3000b9ac: ebfff5da bl 3000911c <== NOT EXECUTED /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; 3000b9b0: e5878000 str r8, [r7] <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { 3000b9b4: eaffffe5 b 3000b950 <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); 3000b9b8: ebffe527 bl 30004e5c <== NOT EXECUTED 3000b9bc: 3001a7c4 .word 0x3001a7c4 3000b690 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 3000b690: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 3000b694: e2524000 subs r4, r2, #0 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 3000b698: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 3000b69c: e1a05000 mov r5, r0 <== NOT EXECUTED 3000b6a0: e1a06001 mov r6, r1 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 3000b6a4: 01a07004 moveq r7, r4 <== NOT EXECUTED 3000b6a8: 1a000002 bne 3000b6b8 <== NOT EXECUTED #endif if (written > 0) return written; return ret; } 3000b6ac: e1a00007 mov r0, r7 <== NOT EXECUTED 3000b6b0: e28dd008 add sp, sp, #8 <== NOT EXECUTED 3000b6b4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED /* Write nothing */ if (count == 0) return 0; if (! PIPE_LOCK(pipe)) 3000b6b8: e3a01000 mov r1, #0 <== NOT EXECUTED 3000b6bc: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED 3000b6c0: e1a02001 mov r2, r1 <== NOT EXECUTED 3000b6c4: e58d3000 str r3, [sp] <== NOT EXECUTED 3000b6c8: ebffe443 bl 300047dc <== NOT EXECUTED 3000b6cc: e2509000 subs r9, r0, #0 <== NOT EXECUTED 3000b6d0: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3000b6d4: 13e07003 mvnne r7, #3 <== NOT EXECUTED 3000b6d8: 1afffff3 bne 3000b6ac <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 3000b6dc: e5957010 ldr r7, [r5, #16] <== NOT EXECUTED 3000b6e0: e3570000 cmp r7, #0 <== NOT EXECUTED 3000b6e4: 0a00004f beq 3000b828 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 3000b6e8: e5958004 ldr r8, [r5, #4] <== NOT EXECUTED } pipe->waitingWriters --; if (ret != 0) goto out_locked; if (pipe->Readers == 0) { 3000b6ec: e1a07009 mov r7, r9 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 3000b6f0: e1540008 cmp r4, r8 <== NOT EXECUTED 3000b6f4: 91a0a004 movls sl, r4 <== NOT EXECUTED 3000b6f8: 83a0a001 movhi sl, #1 <== NOT EXECUTED else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); 3000b6fc: e28db004 add fp, sp, #4 <== 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) { 3000b700: e595100c ldr r1, [r5, #12] <== NOT EXECUTED 3000b704: e0612008 rsb r2, r1, r8 <== NOT EXECUTED 3000b708: e152000a cmp r2, sl <== NOT EXECUTED 3000b70c: 2a000021 bcs 3000b798 <== NOT EXECUTED if (LIBIO_NODELAY(iop)) { 3000b710: e5938014 ldr r8, [r3, #20] <== NOT EXECUTED 3000b714: e2188001 ands r8, r8, #1 <== NOT EXECUTED 3000b718: 1a000050 bne 3000b860 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; 3000b71c: e595201c ldr r2, [r5, #28] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000b720: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; 3000b724: e2822001 add r2, r2, #1 <== NOT EXECUTED 3000b728: e585201c str r2, [r5, #28] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000b72c: e58d3000 str r3, [sp] <== NOT EXECUTED 3000b730: ebffe471 bl 300048fc <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 3000b734: e1a01008 mov r1, r8 <== NOT EXECUTED 3000b738: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED 3000b73c: eb0003f2 bl 3000c70c <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000b740: e1a01008 mov r1, r8 <== NOT EXECUTED 3000b744: e1a02001 mov r2, r1 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 3000b748: e2508000 subs r8, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000b74c: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 3000b750: 13e08003 mvnne r8, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000b754: ebffe420 bl 300047dc <== NOT EXECUTED 3000b758: e3500000 cmp r0, #0 <== NOT EXECUTED 3000b75c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3000b760: 1a00003c bne 3000b858 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 3000b764: e595201c ldr r2, [r5, #28] <== NOT EXECUTED if (ret != 0) 3000b768: e3580000 cmp r8, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 3000b76c: e2422001 sub r2, r2, #1 <== NOT EXECUTED 3000b770: e585201c str r2, [r5, #28] <== NOT EXECUTED if (ret != 0) 3000b774: 1a00002c bne 3000b82c <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 3000b778: e5952010 ldr r2, [r5, #16] <== NOT EXECUTED 3000b77c: e3520000 cmp r2, #0 <== NOT EXECUTED 3000b780: 0a000028 beq 3000b828 <== NOT EXECUTED 3000b784: e5958004 ldr r8, [r5, #4] <== 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) { 3000b788: e595100c ldr r1, [r5, #12] <== NOT EXECUTED 3000b78c: e0612008 rsb r2, r1, r8 <== NOT EXECUTED 3000b790: e152000a cmp r2, sl <== NOT EXECUTED 3000b794: 3affffdd bcc 3000b710 <== NOT EXECUTED goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); chunk1 = pipe->Size - PIPE_WSTART(pipe); 3000b798: e5950008 ldr r0, [r5, #8] <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 3000b79c: e069a004 rsb sl, r9, r4 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 3000b7a0: e0810000 add r0, r1, r0 <== NOT EXECUTED 3000b7a4: e1a01008 mov r1, r8 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 3000b7a8: e152000a cmp r2, sl <== NOT EXECUTED 3000b7ac: 31a0a002 movcc sl, r2 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 3000b7b0: e58d3000 str r3, [sp] <== NOT EXECUTED 3000b7b4: eb002dc1 bl 30016ec0 <__umodsi3> <== NOT EXECUTED 3000b7b8: e0608008 rsb r8, r0, r8 <== NOT EXECUTED if (chunk > chunk1) { 3000b7bc: e15a0008 cmp sl, r8 <== NOT EXECUTED 3000b7c0: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3000b7c4: da000027 ble 3000b868 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 3000b7c8: e5952000 ldr r2, [r5] <== NOT EXECUTED 3000b7cc: e0861009 add r1, r6, r9 <== NOT EXECUTED 3000b7d0: e0820000 add r0, r2, r0 <== NOT EXECUTED 3000b7d4: e1a02008 mov r2, r8 <== NOT EXECUTED 3000b7d8: eb000a0f bl 3000e01c <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 3000b7dc: e0881009 add r1, r8, r9 <== NOT EXECUTED 3000b7e0: e0861001 add r1, r6, r1 <== NOT EXECUTED 3000b7e4: e068200a rsb r2, r8, sl <== NOT EXECUTED 3000b7e8: e5950000 ldr r0, [r5] <== NOT EXECUTED 3000b7ec: eb000a0a bl 3000e01c <== NOT EXECUTED 3000b7f0: e59d3000 ldr r3, [sp] <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 3000b7f4: e595200c ldr r2, [r5, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) 3000b7f8: e5951018 ldr r1, [r5, #24] <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 3000b7fc: e082200a add r2, r2, sl <== NOT EXECUTED if (pipe->waitingReaders > 0) 3000b800: e3510000 cmp r1, #0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 3000b804: e585200c str r2, [r5, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) 3000b808: 1a00001e bne 3000b888 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); written += chunk; 3000b80c: e087700a add r7, r7, sl <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 3000b810: e1540007 cmp r4, r7 <== NOT EXECUTED 3000b814: e1a09007 mov r9, r7 <== NOT EXECUTED 3000b818: 9a000020 bls 3000b8a0 <== NOT EXECUTED 3000b81c: e5958004 ldr r8, [r5, #4] <== NOT EXECUTED 3000b820: e3a0a001 mov sl, #1 <== NOT EXECUTED 3000b824: eaffffb5 b 3000b700 <== NOT EXECUTED 3000b828: e3e0801f mvn r8, #31 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 3000b82c: e5950028 ldr r0, [r5, #40] ; 0x28 <== NOT EXECUTED 3000b830: ebffe431 bl 300048fc <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 3000b834: e3780020 cmn r8, #32 <== NOT EXECUTED 3000b838: 0a000002 beq 3000b848 <== NOT EXECUTED kill(getpid(), SIGPIPE); #endif if (written > 0) 3000b83c: e3570000 cmp r7, #0 <== NOT EXECUTED 3000b840: d1a07008 movle r7, r8 <== NOT EXECUTED 3000b844: eaffff98 b 3000b6ac <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); 3000b848: eb000243 bl 3000c15c <== NOT EXECUTED 3000b84c: e3a0100d mov r1, #13 <== NOT EXECUTED 3000b850: eb0002b4 bl 3000c328 <== NOT EXECUTED 3000b854: eafffff8 b 3000b83c <== NOT EXECUTED /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000b858: e3e08003 mvn r8, #3 <== NOT EXECUTED 3000b85c: eafffff6 b 3000b83c <== 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) { if (LIBIO_NODELAY(iop)) { 3000b860: e3e0800a mvn r8, #10 <== NOT EXECUTED 3000b864: eafffff0 b 3000b82c <== NOT EXECUTED if (chunk > chunk1) { 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); 3000b868: e5952000 ldr r2, [r5] <== NOT EXECUTED 3000b86c: e0861009 add r1, r6, r9 <== NOT EXECUTED 3000b870: e0820000 add r0, r2, r0 <== NOT EXECUTED 3000b874: e1a0200a mov r2, sl <== NOT EXECUTED 3000b878: e58d3000 str r3, [sp] <== NOT EXECUTED 3000b87c: eb0009e6 bl 3000e01c <== NOT EXECUTED 3000b880: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3000b884: eaffffda b 3000b7f4 <== NOT EXECUTED pipe->Length += chunk; if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); 3000b888: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED 3000b88c: e1a0100b mov r1, fp <== NOT EXECUTED 3000b890: e58d3000 str r3, [sp] <== NOT EXECUTED 3000b894: eb000383 bl 3000c6a8 <== NOT EXECUTED 3000b898: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3000b89c: eaffffda b 3000b80c <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 3000b8a0: e3a08000 mov r8, #0 <== NOT EXECUTED 3000b8a4: eaffffe0 b 3000b82c <== NOT EXECUTED 30005c94 : int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { 30005c94: e92d4030 push {r4, r5, lr} Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) 30005c98: e2505000 subs r5, r0, #0 int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { 30005c9c: e24dd00c sub sp, sp, #12 Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) 30005ca0: 0a00001d beq 30005d1c * * 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 ); 30005ca4: e1a00001 mov r0, r1 30005ca8: e28d1004 add r1, sp, #4 30005cac: eb0019c4 bl 3000c3c4 <_POSIX_Absolute_timeout_to_ticks> 30005cb0: e5951000 ldr r1, [r5] 30005cb4: e1a04000 mov r4, r0 30005cb8: e28d2008 add r2, sp, #8 30005cbc: e59f0090 ldr r0, [pc, #144] ; 30005d54 30005cc0: eb000a71 bl 3000868c <_Objects_Get> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 30005cc4: e59dc008 ldr ip, [sp, #8] 30005cc8: e35c0000 cmp ip, #0 30005ccc: 1a000012 bne 30005d1c case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_reading( 30005cd0: e5951000 ldr r1, [r5] 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, 30005cd4: e3540003 cmp r4, #3 30005cd8: 13a05000 movne r5, #0 30005cdc: 03a05001 moveq r5, #1 30005ce0: e2800010 add r0, r0, #16 30005ce4: e59d3004 ldr r3, [sp, #4] 30005ce8: e1a02005 mov r2, r5 30005cec: e58dc000 str ip, [sp] 30005cf0: eb000713 bl 30007944 <_CORE_RWLock_Obtain_for_reading> do_wait, ticks, NULL ); _Thread_Enable_dispatch(); 30005cf4: eb000c7e bl 30008ef4 <_Thread_Enable_dispatch> if ( !do_wait ) { 30005cf8: e3550000 cmp r5, #0 30005cfc: 1a00000f bne 30005d40 if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { 30005d00: e59f3050 ldr r3, [pc, #80] ; 30005d58 30005d04: e5933000 ldr r3, [r3] 30005d08: e5930034 ldr r0, [r3, #52] ; 0x34 30005d0c: e3500002 cmp r0, #2 30005d10: 0a000004 beq 30005d28 break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 30005d14: eb000042 bl 30005e24 <_POSIX_RWLock_Translate_core_RWLock_return_code> 30005d18: ea000000 b 30005d20 30005d1c: e3a00016 mov r0, #22 case OBJECTS_ERROR: break; } return EINVAL; } 30005d20: e28dd00c add sp, sp, #12 30005d24: e8bd8030 pop {r4, r5, pc} ); _Thread_Enable_dispatch(); if ( !do_wait ) { if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) { switch (status) { 30005d28: e3540000 cmp r4, #0 30005d2c: 0afffffa beq 30005d1c 30005d30: e3540002 cmp r4, #2 30005d34: 93a00074 movls r0, #116 ; 0x74 30005d38: 9afffff8 bls 30005d20 30005d3c: eafffff4 b 30005d14 <== NOT EXECUTED 30005d40: e59f3010 ldr r3, [pc, #16] ; 30005d58 30005d44: e5933000 ldr r3, [r3] 30005d48: e5930034 ldr r0, [r3, #52] ; 0x34 break; } } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 30005d4c: eb000034 bl 30005e24 <_POSIX_RWLock_Translate_core_RWLock_return_code> 30005d50: eafffff2 b 30005d20 30005d54: 3001de74 .word 0x3001de74 30005d58: 3001dd60 .word 0x3001dd60 30005d5c : int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { 30005d5c: e92d4030 push {r4, r5, lr} Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) 30005d60: e2505000 subs r5, r0, #0 int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) { 30005d64: e24dd00c sub sp, sp, #12 Objects_Locations location; Watchdog_Interval ticks; bool do_wait = true; POSIX_Absolute_timeout_conversion_results_t status; if ( !rwlock ) 30005d68: 0a00001d beq 30005de4 * * 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 ); 30005d6c: e1a00001 mov r0, r1 30005d70: e28d1004 add r1, sp, #4 30005d74: eb001992 bl 3000c3c4 <_POSIX_Absolute_timeout_to_ticks> 30005d78: e5951000 ldr r1, [r5] 30005d7c: e1a04000 mov r4, r0 30005d80: e28d2008 add r2, sp, #8 30005d84: e59f0090 ldr r0, [pc, #144] ; 30005e1c 30005d88: eb000a3f bl 3000868c <_Objects_Get> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; the_rwlock = _POSIX_RWLock_Get( rwlock, &location ); switch ( location ) { 30005d8c: e59dc008 ldr ip, [sp, #8] 30005d90: e35c0000 cmp ip, #0 30005d94: 1a000012 bne 30005de4 case OBJECTS_LOCAL: _CORE_RWLock_Obtain_for_writing( 30005d98: e5951000 ldr r1, [r5] (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, 30005d9c: e3540003 cmp r4, #3 30005da0: 13a05000 movne r5, #0 30005da4: 03a05001 moveq r5, #1 30005da8: e2800010 add r0, r0, #16 30005dac: e59d3004 ldr r3, [sp, #4] 30005db0: e1a02005 mov r2, r5 30005db4: e58dc000 str ip, [sp] 30005db8: eb000718 bl 30007a20 <_CORE_RWLock_Obtain_for_writing> do_wait, ticks, NULL ); _Thread_Enable_dispatch(); 30005dbc: eb000c4c bl 30008ef4 <_Thread_Enable_dispatch> if ( !do_wait && 30005dc0: e3550000 cmp r5, #0 30005dc4: 1a00000f bne 30005e08 (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { 30005dc8: e59f3050 ldr r3, [pc, #80] ; 30005e20 30005dcc: e5933000 ldr r3, [r3] 30005dd0: e5930034 ldr r0, [r3, #52] ; 0x34 ticks, NULL ); _Thread_Enable_dispatch(); if ( !do_wait && 30005dd4: e3500002 cmp r0, #2 30005dd8: 0a000004 beq 30005df0 case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 30005ddc: eb000010 bl 30005e24 <_POSIX_RWLock_Translate_core_RWLock_return_code> 30005de0: ea000000 b 30005de8 30005de4: e3a00016 mov r0, #22 case OBJECTS_ERROR: break; } return EINVAL; } 30005de8: e28dd00c add sp, sp, #12 30005dec: e8bd8030 pop {r4, r5, pc} ); _Thread_Enable_dispatch(); if ( !do_wait && (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) { switch (status) { 30005df0: e3540000 cmp r4, #0 30005df4: 0afffffa beq 30005de4 30005df8: e3540002 cmp r4, #2 30005dfc: 93a00074 movls r0, #116 ; 0x74 30005e00: 9afffff8 bls 30005de8 30005e04: eafffff4 b 30005ddc <== NOT EXECUTED 30005e08: e59f3010 ldr r3, [pc, #16] ; 30005e20 30005e0c: e5933000 ldr r3, [r3] 30005e10: e5930034 ldr r0, [r3, #52] ; 0x34 case POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE: break; } } return _POSIX_RWLock_Translate_core_RWLock_return_code( 30005e14: eb000002 bl 30005e24 <_POSIX_RWLock_Translate_core_RWLock_return_code> 30005e18: eafffff2 b 30005de8 30005e1c: 3001de74 .word 0x3001de74 30005e20: 3001dd60 .word 0x3001dd60 30018764 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30018764: e59f30bc ldr r3, [pc, #188] ; 30018828 ssize_t read( int fd, void *buffer, size_t count ) { 30018768: e92d4810 push {r4, fp, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 3001876c: e5933000 ldr r3, [r3] 30018770: e1500003 cmp r0, r3 30018774: 2a00001c bcs 300187ec iop = rtems_libio_iop( fd ); 30018778: e59f40ac ldr r4, [pc, #172] ; 3001882c 3001877c: e5944000 ldr r4, [r4] 30018780: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); 30018784: e5940014 ldr r0, [r4, #20] 30018788: e3100c01 tst r0, #256 ; 0x100 3001878c: 0a000016 beq 300187ec rtems_libio_check_buffer( buffer ); 30018790: e3510000 cmp r1, #0 30018794: 0a000019 beq 30018800 rtems_libio_check_count( count ); 30018798: e3520000 cmp r2, #0 3001879c: 01a00002 moveq r0, r2 300187a0: 08bd8810 popeq {r4, fp, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 300187a4: e3100002 tst r0, #2 300187a8: 0a000014 beq 30018800 /* * Now process the read(). */ if ( !iop->handlers->read_h ) 300187ac: e594303c ldr r3, [r4, #60] ; 0x3c 300187b0: e5933008 ldr r3, [r3, #8] 300187b4: e3530000 cmp r3, #0 300187b8: 0a000015 beq 30018814 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->read_h)( iop, buffer, count ); 300187bc: e1a00004 mov r0, r4 300187c0: e1a0e00f mov lr, pc 300187c4: e12fff13 bx r3 if ( rc > 0 ) 300187c8: e3500000 cmp r0, #0 300187cc: d8bd8810 pople {r4, fp, pc} iop->offset += rc; 300187d0: e284c00c add ip, r4, #12 300187d4: e89c1800 ldm ip, {fp, ip} 300187d8: e09b2000 adds r2, fp, r0 300187dc: e0ac3fc0 adc r3, ip, r0, asr #31 300187e0: e584200c str r2, [r4, #12] 300187e4: e5843010 str r3, [r4, #16] return rc; } 300187e8: e8bd8810 pop {r4, fp, pc} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 300187ec: ebffd3fc bl 3000d7e4 <__errno> 300187f0: e3a03009 mov r3, #9 300187f4: e5803000 str r3, [r0] 300187f8: e3e00000 mvn r0, #0 300187fc: e8bd8810 pop {r4, fp, pc} rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 30018800: ebffd3f7 bl 3000d7e4 <__errno> <== NOT EXECUTED 30018804: e3a03016 mov r3, #22 <== NOT EXECUTED 30018808: e5803000 str r3, [r0] <== NOT EXECUTED 3001880c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30018810: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30018814: ebffd3f2 bl 3000d7e4 <__errno> <== NOT EXECUTED 30018818: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001881c: e5803000 str r3, [r0] <== NOT EXECUTED 30018820: e3e00000 mvn r0, #0 <== NOT EXECUTED 30018824: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED 30018828: 30019ea8 .word 0x30019ea8 3001882c: 3001a848 .word 0x3001a848 30026d1c : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 30026d1c: e92d40f0 push {r4, r5, r6, r7, lr} rtems_filesystem_location_info_t loc; int result; if (!buf) 30026d20: e2516000 subs r6, r1, #0 ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 30026d24: e24dd018 sub sp, sp, #24 30026d28: e1a05002 mov r5, r2 30026d2c: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if (!buf) 30026d30: 0a000032 beq 30026e00 rtems_set_errno_and_return_minus_one( EFAULT ); result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 30026d34: eb007983 bl 30045348 30026d38: e28d4004 add r4, sp, #4 30026d3c: e3a0c000 mov ip, #0 30026d40: e1a01000 mov r1, r0 30026d44: e1a0200c mov r2, ip 30026d48: e1a00007 mov r0, r7 30026d4c: e1a03004 mov r3, r4 30026d50: e58dc000 str ip, [sp] 30026d54: ebff7a4d bl 30005690 0, &loc, false ); if ( result != 0 ) 30026d58: e3500000 cmp r0, #0 30026d5c: 1a000025 bne 30026df8 return -1; if ( !loc.ops->node_type_h ){ 30026d60: e59d2010 ldr r2, [sp, #16] 30026d64: e5923010 ldr r3, [r2, #16] 30026d68: e3530000 cmp r3, #0 30026d6c: 0a000019 beq 30026dd8 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ 30026d70: e1a00004 mov r0, r4 30026d74: e1a0e00f mov lr, pc 30026d78: e12fff13 bx r3 30026d7c: e3500004 cmp r0, #4 30026d80: 1a000023 bne 30026e14 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( EINVAL ); } if ( !loc.ops->readlink_h ){ 30026d84: e59d2010 ldr r2, [sp, #16] 30026d88: e592303c ldr r3, [r2, #60] ; 0x3c 30026d8c: e3530000 cmp r3, #0 30026d90: 0a00002c beq 30026e48 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 30026d94: e1a02005 mov r2, r5 30026d98: e1a01006 mov r1, r6 30026d9c: e1a00004 mov r0, r4 30026da0: e1a0e00f mov lr, pc 30026da4: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 30026da8: e59d3010 ldr r3, [sp, #16] if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 30026dac: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 30026db0: e3530000 cmp r3, #0 30026db4: 0a000004 beq 30026dcc 30026db8: e593301c ldr r3, [r3, #28] 30026dbc: e3530000 cmp r3, #0 30026dc0: 11a00004 movne r0, r4 30026dc4: 11a0e00f movne lr, pc 30026dc8: 112fff13 bxne r3 return result; } 30026dcc: e1a00005 mov r0, r5 30026dd0: e28dd018 add sp, sp, #24 30026dd4: e8bd80f0 pop {r4, r5, r6, r7, pc} 0, &loc, false ); if ( result != 0 ) return -1; if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 30026dd8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30026ddc: e3530000 cmp r3, #0 <== NOT EXECUTED 30026de0: 11a00004 movne r0, r4 <== NOT EXECUTED 30026de4: 11a0e00f movne lr, pc <== NOT EXECUTED 30026de8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30026dec: eb005eca bl 3003e91c <__errno> <== NOT EXECUTED 30026df0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30026df4: e5803000 str r3, [r0] <== NOT EXECUTED 30026df8: e3e05000 mvn r5, #0 <== NOT EXECUTED 30026dfc: eafffff2 b 30026dcc <== NOT EXECUTED { rtems_filesystem_location_info_t loc; int result; if (!buf) rtems_set_errno_and_return_minus_one( EFAULT ); 30026e00: eb005ec5 bl 3003e91c <__errno> <== NOT EXECUTED 30026e04: e3a0300e mov r3, #14 <== NOT EXECUTED 30026e08: e5803000 str r3, [r0] <== NOT EXECUTED 30026e0c: e3e05000 mvn r5, #0 <== NOT EXECUTED 30026e10: eaffffed b 30026dcc <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ rtems_filesystem_freenode( &loc ); 30026e14: e59d3010 ldr r3, [sp, #16] 30026e18: e3530000 cmp r3, #0 30026e1c: 0a000004 beq 30026e34 30026e20: e593301c ldr r3, [r3, #28] 30026e24: e3530000 cmp r3, #0 30026e28: 11a00004 movne r0, r4 30026e2c: 11a0e00f movne lr, pc 30026e30: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( EINVAL ); 30026e34: eb005eb8 bl 3003e91c <__errno> 30026e38: e3a03016 mov r3, #22 30026e3c: e5803000 str r3, [r0] 30026e40: e3e05000 mvn r5, #0 30026e44: eaffffe0 b 30026dcc } if ( !loc.ops->readlink_h ){ rtems_filesystem_freenode( &loc ); 30026e48: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30026e4c: e3530000 cmp r3, #0 <== NOT EXECUTED 30026e50: 11a00004 movne r0, r4 <== NOT EXECUTED 30026e54: 11a0e00f movne lr, pc <== NOT EXECUTED 30026e58: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30026e5c: eb005eae bl 3003e91c <__errno> <== NOT EXECUTED 30026e60: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30026e64: e5803000 str r3, [r0] <== NOT EXECUTED 30026e68: e3e05000 mvn r5, #0 <== NOT EXECUTED 30026e6c: eaffffd6 b 30026dcc <== NOT EXECUTED 30003680 : int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 30003680: e59f3154 ldr r3, [pc, #340] ; 300037dc ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 30003684: e92d49f0 push {r4, r5, r6, r7, r8, fp, lr} int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 30003688: e5933000 ldr r3, [r3] ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 3000368c: e1a04002 mov r4, r2 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 30003690: e1500003 cmp r0, r3 30003694: 2a000046 bcs 300037b4 iop = rtems_libio_iop( fd ); 30003698: e59f3140 ldr r3, [pc, #320] ; 300037e0 3000369c: e5936000 ldr r6, [r3] 300036a0: e0866300 add r6, r6, r0, lsl #6 rtems_libio_check_is_open( iop ); 300036a4: e5963014 ldr r3, [r6, #20] 300036a8: e3130c01 tst r3, #256 ; 0x100 300036ac: 0a000040 beq 300037b4 rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 300036b0: e3130002 tst r3, #2 300036b4: 0a000038 beq 3000379c /* * Argument validation on IO vector */ if ( !iov ) 300036b8: e3510000 cmp r1, #0 300036bc: 0a000036 beq 3000379c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 300036c0: e3520000 cmp r2, #0 300036c4: da000034 ble 3000379c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 300036c8: e3520b01 cmp r2, #1024 ; 0x400 300036cc: ca000032 bgt 3000379c rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 300036d0: e596303c ldr r3, [r6, #60] ; 0x3c 300036d4: e5933008 ldr r3, [r3, #8] 300036d8: e3530000 cmp r3, #0 300036dc: 0a000039 beq 300037c8 rtems_set_errno_and_return_minus_one( ENOTSUP ); 300036e0: e1a05001 mov r5, r1 300036e4: e3a01000 mov r1, #0 300036e8: e1a02005 mov r2, r5 300036ec: e1a00001 mov r0, r1 300036f0: ea000000 b 300036f8 * 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++ ) { 300036f4: e1a0000e mov r0, lr ssize_t old; if ( !iov[v].iov_base ) 300036f8: e592c000 ldr ip, [r2] * 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++ ) { 300036fc: e2811001 add r1, r1, #1 ssize_t old; if ( !iov[v].iov_base ) 30003700: e35c0000 cmp ip, #0 30003704: 0a000024 beq 3000379c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 30003708: e592c004 ldr ip, [r2, #4] * 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++ ) { 3000370c: e2822008 add r2, r2, #8 ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 30003710: e35c0000 cmp ip, #0 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 30003714: e080e00c add lr, r0, ip ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 30003718: 0a00001f beq 3000379c rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) 3000371c: e150000e cmp r0, lr 30003720: ca00001d bgt 3000379c * 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++ ) { 30003724: e1540001 cmp r4, r1 30003728: cafffff1 bgt 300036f4 3000372c: e3a07000 mov r7, #0 30003730: e1a08007 mov r8, r7 30003734: ea00000f b 30003778 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) return -1; if ( bytes > 0 ) { 30003738: 0a000006 beq 30003758 iop->offset += bytes; 3000373c: e286c00c add ip, r6, #12 <== NOT EXECUTED 30003740: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED 30003744: e09b2000 adds r2, fp, r0 <== NOT EXECUTED 30003748: e0ac3fc0 adc r3, ip, r0, asr #31 <== NOT EXECUTED 3000374c: e586200c str r2, [r6, #12] <== NOT EXECUTED 30003750: e5863010 str r3, [r6, #16] <== NOT EXECUTED total += bytes; 30003754: e0888000 add r8, r8, r0 <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) 30003758: e5953004 ldr r3, [r5, #4] } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 3000375c: e2855008 add r5, r5, #8 if ( bytes > 0 ) { iop->offset += bytes; total += bytes; } if (bytes != iov[ v ].iov_len) 30003760: e1500003 cmp r0, r3 30003764: 1a000010 bne 300037ac } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 30003768: e1540007 cmp r4, r7 <== NOT EXECUTED 3000376c: da00000e ble 300037ac <== NOT EXECUTED 30003770: e596303c ldr r3, [r6, #60] ; 0x3c <== NOT EXECUTED 30003774: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 30003778: e8950006 ldm r5, {r1, r2} 3000377c: e1a00006 mov r0, r6 30003780: e1a0e00f mov lr, pc 30003784: e12fff13 bx r3 if ( bytes < 0 ) 30003788: e3500000 cmp r0, #0 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 3000378c: e2877001 add r7, r7, #1 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) 30003790: aaffffe8 bge 30003738 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 30003794: e3e08000 mvn r8, #0 <== NOT EXECUTED 30003798: ea000003 b 300037ac <== NOT EXECUTED /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) rtems_set_errno_and_return_minus_one( EINVAL ); 3000379c: eb0031ef bl 3000ff60 <__errno> 300037a0: e3a03016 mov r3, #22 300037a4: e5803000 str r3, [r0] 300037a8: e3e08000 mvn r8, #0 if (bytes != iov[ v ].iov_len) break; } return total; } 300037ac: e1a00008 mov r0, r8 300037b0: e8bd89f0 pop {r4, r5, r6, r7, r8, fp, pc} rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 300037b4: eb0031e9 bl 3000ff60 <__errno> <== NOT EXECUTED 300037b8: e3a03009 mov r3, #9 <== NOT EXECUTED 300037bc: e5803000 str r3, [r0] <== NOT EXECUTED 300037c0: e3e08000 mvn r8, #0 <== NOT EXECUTED 300037c4: eafffff8 b 300037ac <== NOT EXECUTED if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 300037c8: eb0031e4 bl 3000ff60 <__errno> <== NOT EXECUTED 300037cc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300037d0: e5803000 str r3, [r0] <== NOT EXECUTED 300037d4: e3e08000 mvn r8, #0 <== NOT EXECUTED 300037d8: eafffff3 b 300037ac <== NOT EXECUTED 300037dc: 3001eb00 .word 0x3001eb00 300037e0: 3001fc74 .word 0x3001fc74 30018888 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 30018888: e92d41f0 push {r4, r5, r6, r7, r8, lr} /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 3001888c: e59f2118 ldr r2, [pc, #280] ; 300189ac { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 30018890: e59f5118 ldr r5, [pc, #280] ; 300189b0 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30018894: e5922000 ldr r2, [r2] { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 30018898: e5953010 ldr r3, [r5, #16] /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 3001889c: e3520003 cmp r2, #3 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 300188a0: e2833001 add r3, r3, #1 300188a4: e24dd004 sub sp, sp, #4 300188a8: e5853010 str r3, [r5, #16] 300188ac: e1a04000 mov r4, r0 300188b0: e1a06001 mov r6, r1 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 300188b4: 0a000020 beq 3001893c } /* * Continue with realloc(). */ if ( !ptr ) 300188b8: e3540000 cmp r4, #0 300188bc: 0a00001a beq 3001892c return malloc( size ); if ( !size ) { 300188c0: e3560000 cmp r6, #0 300188c4: 0a00000f beq 30018908 free( ptr ); return (void *) 0; } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 300188c8: e59f70e4 ldr r7, [pc, #228] ; 300189b4 300188cc: e1a01004 mov r1, r4 300188d0: e5970000 ldr r0, [r7] 300188d4: e1a0200d mov r2, sp 300188d8: eb00006b bl 30018a8c <_Protected_heap_Get_block_size> 300188dc: e2508000 subs r8, r0, #0 300188e0: 0a00000c beq 30018918 #if defined(RTEMS_MALLOC_BOUNDARY_HELPERS) if (rtems_malloc_boundary_helpers) resize += (*rtems_malloc_boundary_helpers->overhead)(); #endif if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, resize ) ) { 300188e4: e5970000 ldr r0, [r7] 300188e8: e1a01004 mov r1, r4 300188ec: e1a02006 mov r2, r6 300188f0: eb000076 bl 30018ad0 <_Protected_heap_Resize_block> 300188f4: e3500000 cmp r0, #0 300188f8: 0a00001b beq 3001896c memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; } 300188fc: e1a00004 mov r0, r4 30018900: e28dd004 add sp, sp, #4 30018904: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} */ if ( !ptr ) return malloc( size ); if ( !size ) { free( ptr ); 30018908: e1a00004 mov r0, r4 <== NOT EXECUTED 3001890c: ebffc202 bl 3000911c <== NOT EXECUTED 30018910: e1a04006 mov r4, r6 <== NOT EXECUTED return (void *) 0; 30018914: eafffff8 b 300188fc <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { errno = EINVAL; 30018918: ebffd3b1 bl 3000d7e4 <__errno> 3001891c: e3a03016 mov r3, #22 30018920: e5803000 str r3, [r0] 30018924: e1a04008 mov r4, r8 return (void *) 0; 30018928: eafffff3 b 300188fc /* * Continue with realloc(). */ if ( !ptr ) return malloc( size ); 3001892c: e1a00006 mov r0, r6 30018930: ebffc357 bl 30009694 30018934: e1a04000 mov r4, r0 30018938: eaffffef b 300188fc /* * 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) 3001893c: e59f3074 ldr r3, [pc, #116] ; 300189b8 30018940: e5933000 ldr r3, [r3] 30018944: e3530000 cmp r3, #0 30018948: 0a000001 beq 30018954 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 3001894c: e3a04000 mov r4, #0 30018950: eaffffe9 b 300188fc if (_System_state_Is_up(_System_state_Get())) { if (_Thread_Dispatch_disable_level > 0) return (void *) 0; if (_ISR_Nest_level > 0) 30018954: e59f3060 ldr r3, [pc, #96] ; 300189bc 30018958: e5933000 ldr r3, [r3] 3001895c: e3530000 cmp r3, #0 30018960: 0affffd4 beq 300188b8 } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); free( ptr ); return new_area; 30018964: e3a04000 mov r4, #0 <== NOT EXECUTED 30018968: eaffffe3 b 300188fc <== 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 ); 3001896c: e1a00006 mov r0, r6 30018970: ebffc347 bl 30009694 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 30018974: e5953004 ldr r3, [r5, #4] if ( !new_area ) { 30018978: e2507000 subs r7, r0, #0 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 3001897c: e2433001 sub r3, r3, #1 30018980: e5853004 str r3, [r5, #4] if ( !new_area ) { 30018984: 0afffff0 beq 3001894c return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 30018988: e59d2000 ldr r2, [sp] 3001898c: e1a01004 mov r1, r4 30018990: e1560002 cmp r6, r2 30018994: 31a02006 movcc r2, r6 30018998: ebffd59f bl 3000e01c free( ptr ); 3001899c: e1a00004 mov r0, r4 300189a0: ebffc1dd bl 3000911c 300189a4: e1a04007 mov r4, r7 return new_area; 300189a8: eaffffd3 b 300188fc 300189ac: 3001ab50 .word 0x3001ab50 300189b0: 3001a854 .word 0x3001a854 300189b4: 30019eb4 .word 0x30019eb4 300189b8: 3001a9ac .word 0x3001a9ac 300189bc: 3001aa3c .word 0x3001aa3c 30006bbc : #include int rmdir( const char *pathname ) { 30006bbc: e92d40f0 push {r4, r5, r6, r7, lr} 30006bc0: e24dd02c sub sp, sp, #44 ; 0x2c 30006bc4: e1a05000 mov r5, r0 /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); 30006bc8: ebfffa5a bl 30005538 if ( parentpathlen == 0 ) 30006bcc: e2507000 subs r7, r0, #0 30006bd0: 1a00007b bne 30006dc4 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 30006bd4: e5d53000 ldrb r3, [r5] 30006bd8: e353002f cmp r3, #47 ; 0x2f 30006bdc: 1353005c cmpne r3, #92 ; 0x5c 30006be0: 1a000049 bne 30006d0c 30006be4: e59f3278 ldr r3, [pc, #632] ; 30006e64 30006be8: e28d4018 add r4, sp, #24 30006bec: e593c000 ldr ip, [r3] 30006bf0: e3a06000 mov r6, #0 30006bf4: e28cc018 add ip, ip, #24 30006bf8: e1a0e004 mov lr, r4 30006bfc: e8bc000f ldm ip!, {r0, r1, r2, r3} 30006c00: e8ae000f stmia lr!, {r0, r1, r2, r3} 30006c04: e59c2000 ldr r2, [ip] 30006c08: e58e2000 str r2, [lr] /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 30006c0c: e28dc004 add ip, sp, #4 30006c10: e1a0e004 mov lr, r4 30006c14: e8be000f ldm lr!, {r0, r1, r2, r3} 30006c18: e8ac000f stmia ip!, {r0, r1, r2, r3} 30006c1c: e59e3000 ldr r3, [lr] name = pathname + parentpathlen; 30006c20: e0855007 add r5, r5, r7 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 30006c24: e58c3000 str r3, [ip] name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 30006c28: e1a00005 mov r0, r5 30006c2c: eb00f9c5 bl 30045348 30006c30: e1a01000 mov r1, r0 30006c34: e1a00005 mov r0, r5 30006c38: ebfffa2a bl 300054e8 30006c3c: e0857000 add r7, r5, r0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 30006c40: e1a00007 mov r0, r7 30006c44: eb00f9bf bl 30045348 30006c48: e28d5004 add r5, sp, #4 30006c4c: e3a0c000 mov ip, #0 30006c50: e1a01000 mov r1, r0 30006c54: e1a0200c mov r2, ip 30006c58: e1a00007 mov r0, r7 30006c5c: e1a03005 mov r3, r5 30006c60: e58dc000 str ip, [sp] 30006c64: ebfffa4d bl 300055a0 0, &loc, false ); if ( result != 0 ) { 30006c68: e3500000 cmp r0, #0 30006c6c: 1a000045 bne 30006d88 /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 30006c70: e59d2010 ldr r2, [sp, #16] 30006c74: e5923010 ldr r3, [r2, #16] 30006c78: e3530000 cmp r3, #0 30006c7c: 0a000074 beq 30006e54 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ 30006c80: e1a00005 mov r0, r5 30006c84: e1a0e00f mov lr, pc 30006c88: e12fff13 bx r3 30006c8c: e3500001 cmp r0, #1 30006c90: 1a000025 bne 30006d2c /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 30006c94: e59d300c ldr r3, [sp, #12] 30006c98: e5933034 ldr r3, [r3, #52] ; 0x34 30006c9c: e3530000 cmp r3, #0 30006ca0: 0a000053 beq 30006df4 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 30006ca4: e1a00004 mov r0, r4 30006ca8: e1a01005 mov r1, r5 30006cac: e1a0e00f mov lr, pc 30006cb0: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 30006cb4: e59d3010 ldr r3, [sp, #16] if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 30006cb8: e1a07000 mov r7, r0 rtems_filesystem_freenode( &loc ); 30006cbc: e3530000 cmp r3, #0 30006cc0: 0a000004 beq 30006cd8 30006cc4: e593301c ldr r3, [r3, #28] 30006cc8: e3530000 cmp r3, #0 30006ccc: 11a00005 movne r0, r5 30006cd0: 11a0e00f movne lr, pc 30006cd4: 112fff13 bxne r3 if ( free_parentloc ) 30006cd8: e3560000 cmp r6, #0 30006cdc: 0a000007 beq 30006d00 rtems_filesystem_freenode( &parentloc ); 30006ce0: e59d3024 ldr r3, [sp, #36] ; 0x24 30006ce4: e3530000 cmp r3, #0 30006ce8: 0a000004 beq 30006d00 30006cec: e593301c ldr r3, [r3, #28] 30006cf0: e3530000 cmp r3, #0 30006cf4: 11a00004 movne r0, r4 30006cf8: 11a0e00f movne lr, pc 30006cfc: 112fff13 bxne r3 return result; } 30006d00: e1a00007 mov r0, r7 30006d04: e28dd02c add sp, sp, #44 ; 0x2c 30006d08: e8bd80f0 pop {r4, r5, r6, r7, pc} */ parentpathlen = rtems_filesystem_dirname ( pathname ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 30006d0c: e3530000 cmp r3, #0 <== NOT EXECUTED 30006d10: 0affffb3 beq 30006be4 <== NOT EXECUTED 30006d14: e59f3148 ldr r3, [pc, #328] ; 30006e64 <== NOT EXECUTED 30006d18: e28d4018 add r4, sp, #24 <== NOT EXECUTED 30006d1c: e593c000 ldr ip, [r3] <== NOT EXECUTED 30006d20: e1a06007 mov r6, r7 <== NOT EXECUTED 30006d24: e28cc004 add ip, ip, #4 <== NOT EXECUTED 30006d28: eaffffb2 b 30006bf8 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ){ rtems_filesystem_freenode( &loc ); 30006d2c: e59d3010 ldr r3, [sp, #16] 30006d30: e3530000 cmp r3, #0 30006d34: 0a000004 beq 30006d4c 30006d38: e593301c ldr r3, [r3, #28] 30006d3c: e3530000 cmp r3, #0 30006d40: 11a00005 movne r0, r5 30006d44: 11a0e00f movne lr, pc 30006d48: 112fff13 bxne r3 if ( free_parentloc ) 30006d4c: e3560000 cmp r6, #0 30006d50: 0a000007 beq 30006d74 rtems_filesystem_freenode( &parentloc ); 30006d54: e59d3024 ldr r3, [sp, #36] ; 0x24 30006d58: e3530000 cmp r3, #0 30006d5c: 0a000004 beq 30006d74 30006d60: e593301c ldr r3, [r3, #28] 30006d64: e3530000 cmp r3, #0 30006d68: 11a00004 movne r0, r4 30006d6c: 11a0e00f movne lr, pc 30006d70: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( ENOTDIR ); 30006d74: eb00dee8 bl 3003e91c <__errno> 30006d78: e3a03014 mov r3, #20 30006d7c: e5803000 str r3, [r0] 30006d80: e3e07000 mvn r7, #0 30006d84: eaffffdd b 30006d00 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) 30006d88: e3560000 cmp r6, #0 30006d8c: 1a000001 bne 30006d98 result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 30006d90: e3e07000 mvn r7, #0 30006d94: eaffffd9 b 30006d00 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 30006d98: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30006d9c: e3530000 cmp r3, #0 <== NOT EXECUTED 30006da0: 0afffffa beq 30006d90 <== NOT EXECUTED 30006da4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30006da8: e3530000 cmp r3, #0 <== NOT EXECUTED 30006dac: 0afffff7 beq 30006d90 <== NOT EXECUTED 30006db0: e1a00004 mov r0, r4 <== NOT EXECUTED 30006db4: e1a0e00f mov lr, pc <== NOT EXECUTED 30006db8: e12fff13 bx r3 <== NOT EXECUTED 30006dbc: e3e07000 mvn r7, #0 <== NOT EXECUTED 30006dc0: eaffffce b 30006d00 <== 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, 30006dc4: e28d4018 add r4, sp, #24 30006dc8: e3a0c000 mov ip, #0 30006dcc: e1a00005 mov r0, r5 30006dd0: e1a01007 mov r1, r7 30006dd4: e3a02002 mov r2, #2 30006dd8: e1a03004 mov r3, r4 30006ddc: e58dc000 str ip, [sp] 30006de0: ebfffa2a bl 30005690 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 30006de4: e3500000 cmp r0, #0 30006de8: 1affffe8 bne 30006d90 30006dec: e3a06001 mov r6, #1 30006df0: eaffff85 b 30006c0c /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ rtems_filesystem_freenode( &loc ); 30006df4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30006df8: e3530000 cmp r3, #0 <== NOT EXECUTED 30006dfc: 0a000005 beq 30006e18 <== NOT EXECUTED 30006e00: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30006e04: e3530000 cmp r3, #0 <== NOT EXECUTED 30006e08: 0a000002 beq 30006e18 <== NOT EXECUTED 30006e0c: e1a00005 mov r0, r5 <== NOT EXECUTED 30006e10: e1a0e00f mov lr, pc <== NOT EXECUTED 30006e14: e12fff13 bx r3 <== NOT EXECUTED if ( free_parentloc ) 30006e18: e3560000 cmp r6, #0 <== NOT EXECUTED 30006e1c: 0a000007 beq 30006e40 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 30006e20: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30006e24: e3530000 cmp r3, #0 <== NOT EXECUTED 30006e28: 0a000004 beq 30006e40 <== NOT EXECUTED 30006e2c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30006e30: e3530000 cmp r3, #0 <== NOT EXECUTED 30006e34: 11a00004 movne r0, r4 <== NOT EXECUTED 30006e38: 11a0e00f movne lr, pc <== NOT EXECUTED 30006e3c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30006e40: eb00deb5 bl 3003e91c <__errno> <== NOT EXECUTED 30006e44: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30006e48: e5803000 str r3, [r0] <== NOT EXECUTED 30006e4c: e3e07000 mvn r7, #0 <== NOT EXECUTED 30006e50: eaffffaa b 30006d00 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ rtems_filesystem_freenode( &loc ); 30006e54: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30006e58: e3530000 cmp r3, #0 <== NOT EXECUTED 30006e5c: 1affffea bne 30006e0c <== NOT EXECUTED 30006e60: eaffffec b 30006e18 <== NOT EXECUTED 30006e64: 30062da8 .word 0x30062da8 30013688 : sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 30013688: e59f0000 ldr r0, [pc, #0] ; 30013690 <== NOT EXECUTED 3001368c: e12fff1e bx lr <== NOT EXECUTED 30013690: 30025614 .word 0x30025614 3000fc18 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000fc18: e92d4010 push {r4, lr} 3000fc1c: e1a04001 mov r4, r1 const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 3000fc20: eb000006 bl 3000fc40 if (nap) 3000fc24: e3500000 cmp r0, #0 3000fc28: 0a000001 beq 3000fc34 return nap->name; return rtems_assoc_name_bad(local_value); } 3000fc2c: e5900000 ldr r0, [r0] 3000fc30: e8bd8010 pop {r4, pc} nap = rtems_assoc_ptr_by_local(ap, local_value); if (nap) return nap->name; return rtems_assoc_name_bad(local_value); 3000fc34: e1a00004 mov r0, r4 <== NOT EXECUTED } 3000fc38: 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); 3000fc3c: ea000e91 b 30013688 <== NOT EXECUTED 3000d74c : const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000d74c: e92d4030 push {r4, r5, lr} 3000d750: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 3000d754: e5900000 ldr r0, [r0] const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000d758: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 3000d75c: e3500000 cmp r0, #0 3000d760: 01a04000 moveq r4, r0 3000d764: 0a000013 beq 3000d7b8 3000d768: e59f105c ldr r1, [pc, #92] ; 3000d7cc 3000d76c: eb000345 bl 3000e488 3000d770: e3500000 cmp r0, #0 3000d774: 13a02000 movne r2, #0 3000d778: 1a00000b bne 3000d7ac default_ap = ap++; for ( ; ap->name; ap++) 3000d77c: e594200c ldr r2, [r4, #12] <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; 3000d780: e284300c add r3, r4, #12 <== NOT EXECUTED for ( ; ap->name; ap++) 3000d784: e3520000 cmp r2, #0 <== NOT EXECUTED 3000d788: 0a00000a beq 3000d7b8 <== NOT EXECUTED 3000d78c: e1a02004 mov r2, r4 <== NOT EXECUTED 3000d790: e1a04003 mov r4, r3 <== NOT EXECUTED if (ap->local_value == local_value) 3000d794: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 3000d798: e1530005 cmp r3, r5 <== NOT EXECUTED 3000d79c: 0a000005 beq 3000d7b8 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 3000d7a0: e5b4300c ldr r3, [r4, #12]! 3000d7a4: e3530000 cmp r3, #0 3000d7a8: 0a000004 beq 3000d7c0 if (ap->local_value == local_value) 3000d7ac: e5943004 ldr r3, [r4, #4] 3000d7b0: e1530005 cmp r3, r5 3000d7b4: 1afffff9 bne 3000d7a0 return ap; return default_ap; } 3000d7b8: e1a00004 mov r0, r4 3000d7bc: e8bd8030 pop {r4, r5, pc} const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 3000d7c0: e1a04002 mov r4, r2 if (ap->local_value == local_value) return ap; return default_ap; } 3000d7c4: e1a00004 mov r0, r4 3000d7c8: e8bd8030 pop {r4, r5, pc} 3000d7cc: 30019c38 .word 0x30019c38 3000c0d8 : const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 3000c0d8: e92d4030 push {r4, r5, lr} 3000c0dc: e1a04000 mov r4, r0 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 3000c0e0: e5900000 ldr r0, [r0] const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) { 3000c0e4: e1a05001 mov r5, r1 const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) 3000c0e8: e3500000 cmp r0, #0 3000c0ec: 01a04000 moveq r4, r0 3000c0f0: 0a000013 beq 3000c144 3000c0f4: e59f105c ldr r1, [pc, #92] ; 3000c158 3000c0f8: eb0008e2 bl 3000e488 3000c0fc: e3500000 cmp r0, #0 3000c100: 13a02000 movne r2, #0 3000c104: 1a00000b bne 3000c138 default_ap = ap++; for ( ; ap->name; ap++) 3000c108: e594200c ldr r2, [r4, #12] <== NOT EXECUTED ) { const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; 3000c10c: e284300c add r3, r4, #12 <== NOT EXECUTED for ( ; ap->name; ap++) 3000c110: e3520000 cmp r2, #0 <== NOT EXECUTED 3000c114: 0a00000a beq 3000c144 <== NOT EXECUTED 3000c118: e1a02004 mov r2, r4 <== NOT EXECUTED 3000c11c: e1a04003 mov r4, r3 <== NOT EXECUTED if (ap->remote_value == remote_value) 3000c120: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 3000c124: e1530005 cmp r3, r5 <== NOT EXECUTED 3000c128: 0a000005 beq 3000c144 <== NOT EXECUTED const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 3000c12c: e5b4300c ldr r3, [r4, #12]! 3000c130: e3530000 cmp r3, #0 3000c134: 0a000004 beq 3000c14c if (ap->remote_value == remote_value) 3000c138: e5943008 ldr r3, [r4, #8] 3000c13c: e1530005 cmp r3, r5 3000c140: 1afffff9 bne 3000c12c return ap; return default_ap; } 3000c144: e1a00004 mov r0, r4 3000c148: e8bd8030 pop {r4, r5, pc} const rtems_assoc_t *default_ap = 0; if (rtems_assoc_is_default(ap)) default_ap = ap++; for ( ; ap->name; ap++) 3000c14c: e1a04002 mov r4, r2 if (ap->remote_value == remote_value) return ap; return default_ap; } 3000c150: e1a00004 mov r0, r4 3000c154: e8bd8030 pop {r4, r5, pc} 3000c158: 30019c38 .word 0x30019c38 3000ceb8 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000ceb8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 3000cebc: eb000222 bl 3000d74c <== NOT EXECUTED if (nap) 3000cec0: e3500000 cmp r0, #0 <== NOT EXECUTED return nap->remote_value; 3000cec4: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED return 0; } 3000cec8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 300016c4 : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 300016c4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 300016c8: e1a05000 mov r5, r0 <== NOT EXECUTED 300016cc: e1a04001 mov r4, r1 <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 300016d0: ebffffc2 bl 300015e0 <== NOT EXECUTED if ( !p ) 300016d4: e2506000 subs r6, r0, #0 <== NOT EXECUTED 300016d8: 1a000002 bne 300016e8 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) d--; *d = '\0'; return value; 300016dc: e3a04000 mov r4, #0 <== NOT EXECUTED } 300016e0: e1a00004 mov r0, r4 <== NOT EXECUTED 300016e4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; 300016e8: e1a00005 mov r0, r5 <== NOT EXECUTED 300016ec: eb00358e bl 3000ed2c <== NOT EXECUTED if ( *rhs != '=' ) 300016f0: e7d63000 ldrb r3, [r6, r0] <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; 300016f4: e0866000 add r6, r6, r0 <== NOT EXECUTED if ( *rhs != '=' ) 300016f8: e353003d cmp r3, #61 ; 0x3d <== NOT EXECUTED 300016fc: 1afffff6 bne 300016dc <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) 30001700: e5d63001 ldrb r3, [r6, #1] <== NOT EXECUTED rhs = &p[strlen(name)]; if ( *rhs != '=' ) return NULL; rhs++; 30001704: e2866001 add r6, r6, #1 <== NOT EXECUTED if ( *rhs == '\"' ) 30001708: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED rhs++; 3000170c: 05f63001 ldrbeq r3, [r6, #1]! <== NOT EXECUTED for ( d=value ; *rhs ; ) 30001710: e3530000 cmp r3, #0 <== NOT EXECUTED 30001714: 01a02004 moveq r2, r4 <== NOT EXECUTED 30001718: 0a000004 beq 30001730 <== NOT EXECUTED 3000171c: e1a02004 mov r2, r4 <== NOT EXECUTED *d++ = *rhs++; 30001720: e4c23001 strb r3, [r2], #1 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 30001724: e5f63001 ldrb r3, [r6, #1]! <== NOT EXECUTED 30001728: e3530000 cmp r3, #0 <== NOT EXECUTED 3000172c: 1afffffb bne 30001720 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) 30001730: e5523001 ldrb r3, [r2, #-1] <== NOT EXECUTED d--; *d = '\0'; return value; } 30001734: e1a00004 mov r0, r4 <== NOT EXECUTED rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) *d++ = *rhs++; if ( *(d-1) == '\"' ) 30001738: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 3000173c: 02422001 subeq r2, r2, #1 <== NOT EXECUTED d--; *d = '\0'; 30001740: e3a03000 mov r3, #0 <== NOT EXECUTED 30001744: e5c23000 strb r3, [r2] <== NOT EXECUTED return value; } 30001748: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3000ce8c : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 3000ce8c: e92d4010 push {r4, lr} <== NOT EXECUTED 3000ce90: e1a01000 mov r1, r0 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 3000ce94: e59f0018 ldr r0, [pc, #24] ; 3000ceb4 <== NOT EXECUTED 3000ce98: eb000006 bl 3000ceb8 <== NOT EXECUTED 3000ce9c: e2504000 subs r4, r0, #0 <== NOT EXECUTED 3000cea0: 0a000001 beq 3000ceac <== NOT EXECUTED { errno = rc; 3000cea4: eb00024e bl 3000d7e4 <__errno> <== NOT EXECUTED 3000cea8: e5804000 str r4, [r0] <== NOT EXECUTED return -1; } return -1; } 3000ceac: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000ceb0: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3000ceb4: 300194cc .word 0x300194cc 30006600 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 30006600: e92d000e push {r1, r2, r3} <== NOT EXECUTED 30006604: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 30006608: e24dd004 sub sp, sp, #4 <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 3000660c: e28d300c add r3, sp, #12 <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 30006610: e1a02003 mov r2, r3 <== NOT EXECUTED 30006614: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED ) { va_list arglist; int chars_written; va_start(arglist, printf_format); 30006618: e58d3000 str r3, [sp] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 3000661c: ebffff81 bl 30006428 <== NOT EXECUTED va_end(arglist); return chars_written; } 30006620: e28dd004 add sp, sp, #4 <== NOT EXECUTED 30006624: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 30006628: e28dd00c add sp, sp, #12 <== NOT EXECUTED 3000662c: e12fff1e bx lr <== NOT EXECUTED 30001308 : } int rtems_filesystem_dirname( const char *pathname ) { 30001308: e92d4010 push {r4, lr} 3000130c: e1a04000 mov r4, r0 int len = strlen( pathname ); 30001310: eb003524 bl 3000e7a8 while ( len ) { 30001314: e3500000 cmp r0, #0 int rtems_filesystem_dirname( const char *pathname ) { int len = strlen( pathname ); 30001318: e1a02000 mov r2, r0 while ( len ) { 3000131c: 08bd8010 popeq {r4, pc} len--; 30001320: e2400001 sub r0, r0, #1 if ( rtems_filesystem_is_separator( pathname[len] ) ) 30001324: e7d43000 ldrb r3, [r4, r0] 30001328: e353002f cmp r3, #47 ; 0x2f 3000132c: 1353005c cmpne r3, #92 ; 0x5c 30001330: 08bd8010 popeq {r4, pc} 30001334: e3530000 cmp r3, #0 30001338: 10844002 addne r4, r4, r2 3000133c: 1a000008 bne 30001364 30001340: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30001344: e5543002 ldrb r3, [r4, #-2] ) { int len = strlen( pathname ); while ( len ) { len--; 30001348: e2400001 sub r0, r0, #1 if ( rtems_filesystem_is_separator( pathname[len] ) ) 3000134c: e353002f cmp r3, #47 ; 0x2f 30001350: 1353005c cmpne r3, #92 ; 0x5c 30001354: 08bd8010 popeq {r4, pc} 30001358: e3530000 cmp r3, #0 3000135c: e2444001 sub r4, r4, #1 30001360: 08bd8010 popeq {r4, pc} const char *pathname ) { int len = strlen( pathname ); while ( len ) { 30001364: e3500000 cmp r0, #0 30001368: 1afffff5 bne 30001344 if ( rtems_filesystem_is_separator( pathname[len] ) ) break; } return len; } 3000136c: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30001460 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 30001460: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Verify Input parameters. */ if ( !pathname ) 30001464: e2505000 subs r5, r0, #0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 30001468: e1a08001 mov r8, r1 3000146c: e1a07002 mov r7, r2 30001470: e1a0c003 mov ip, r3 30001474: e59d9024 ldr r9, [sp, #36] ; 0x24 /* * Verify Input parameters. */ if ( !pathname ) 30001478: 0a000024 beq 30001510 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 3000147c: e3530000 cmp r3, #0 30001480: 0a00001d beq 300014fc /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 30001484: e5d53000 ldrb r3, [r5] 30001488: e353002f cmp r3, #47 ; 0x2f 3000148c: 1353005c cmpne r3, #92 ; 0x5c 30001490: 13a06000 movne r6, #0 30001494: 03a06001 moveq r6, #1 30001498: 1a000010 bne 300014e0 3000149c: e59f307c ldr r3, [pc, #124] ; 30001520 300014a0: e3a06001 mov r6, #1 300014a4: e5934000 ldr r4, [r3] 300014a8: e1a0a006 mov sl, r6 300014ac: e2844018 add r4, r4, #24 300014b0: e1a0b00c mov fp, ip 300014b4: e8b4000f ldm r4!, {r0, r1, r2, r3} 300014b8: e8ab000f stmia fp!, {r0, r1, r2, r3} 300014bc: e5942000 ldr r2, [r4] /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 300014c0: e0850006 add r0, r5, r6 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 300014c4: e58b2000 str r2, [fp] /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 300014c8: e06a1008 rsb r1, sl, r8 300014cc: e1a02007 mov r2, r7 300014d0: e1a0300c mov r3, ip 300014d4: e58d9024 str r9, [sp, #36] ; 0x24 pathnamelen - i, flags, pathloc, follow_link ); } 300014d8: e8bd4ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, lr} rtems_filesystem_get_start_loc( pathname, &i, pathloc ); /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 300014dc: eaffffa3 b 30001370 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 300014e0: e3530000 cmp r3, #0 300014e4: 0affffec beq 3000149c 300014e8: e59f3030 ldr r3, [pc, #48] ; 30001520 300014ec: e1a0a006 mov sl, r6 300014f0: e5934000 ldr r4, [r3] 300014f4: e2844004 add r4, r4, #4 300014f8: eaffffec b 300014b0 if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 300014fc: eb0030b8 bl 3000d7e4 <__errno> <== NOT EXECUTED 30001500: e3a03005 mov r3, #5 <== NOT EXECUTED 30001504: e5803000 str r3, [r0] <== NOT EXECUTED return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 30001508: e3e00000 mvn r0, #0 3000150c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 30001510: eb0030b3 bl 3000d7e4 <__errno> 30001514: e3a0300e mov r3, #14 30001518: e5803000 str r3, [r0] 3000151c: eafffff9 b 30001508 30001520: 3001a0a0 .word 0x3001a0a0 30001370 : /* * Verify Input parameters. */ if ( !pathname ) 30001370: e3500000 cmp r0, #0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 30001374: e92d4030 push {r4, r5, lr} 30001378: e1a05002 mov r5, r2 3000137c: e1a04003 mov r4, r3 /* * Verify Input parameters. */ if ( !pathname ) 30001380: 0a00002c beq 30001438 rtems_set_errno_and_return_minus_one( EFAULT ); if ( !pathloc ) 30001384: e3530000 cmp r3, #0 30001388: 0a00002f beq 3000144c rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ if ( !pathloc->ops->evalpath_h ) 3000138c: e593c00c ldr ip, [r3, #12] 30001390: e59cc000 ldr ip, [ip] 30001394: e35c0000 cmp ip, #0 30001398: 0a000021 beq 30001424 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 3000139c: e1a0e00f mov lr, pc 300013a0: e12fff1c bx ip /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 300013a4: e59d200c ldr r2, [sp, #12] 300013a8: e2703001 rsbs r3, r0, #1 300013ac: 33a03000 movcc r3, #0 300013b0: e3520000 cmp r2, #0 300013b4: 03a03000 moveq r3, #0 300013b8: e3530000 cmp r3, #0 300013bc: 08bd8030 popeq {r4, r5, pc} if ( !pathloc->ops->node_type_h ){ 300013c0: e594200c ldr r2, [r4, #12] 300013c4: e5923010 ldr r3, [r2, #16] 300013c8: e3530000 cmp r3, #0 300013cc: 0a00000f beq 30001410 rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 300013d0: e1a00004 mov r0, r4 300013d4: e1a0e00f mov lr, pc 300013d8: e12fff13 bx r3 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 300013dc: e2400003 sub r0, r0, #3 300013e0: e3500001 cmp r0, #1 300013e4: 83a00000 movhi r0, #0 300013e8: 88bd8030 pophi {r4, r5, pc} ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 300013ec: e594200c ldr r2, [r4, #12] 300013f0: e5923034 ldr r3, [r2, #52] ; 0x34 300013f4: e3530000 cmp r3, #0 300013f8: 0a000004 beq 30001410 * 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 ); 300013fc: e1a00004 mov r0, r4 30001400: e1a01005 mov r1, r5 30001404: e1a0e00f mov lr, pc 30001408: e12fff13 bx r3 } } return result; } 3000140c: e8bd8030 pop {r4, r5, pc} if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ rtems_filesystem_freenode( pathloc ); 30001410: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30001414: e3530000 cmp r3, #0 <== NOT EXECUTED 30001418: 11a00004 movne r0, r4 <== NOT EXECUTED 3000141c: 11a0e00f movne lr, pc <== NOT EXECUTED 30001420: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30001424: eb0030ee bl 3000d7e4 <__errno> <== NOT EXECUTED 30001428: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000142c: e5803000 str r3, [r0] <== NOT EXECUTED 30001430: e3e00000 mvn r0, #0 <== NOT EXECUTED 30001434: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED /* * Verify Input parameters. */ if ( !pathname ) rtems_set_errno_and_return_minus_one( EFAULT ); 30001438: eb0030e9 bl 3000d7e4 <__errno> <== NOT EXECUTED 3000143c: e3a0300e mov r3, #14 <== NOT EXECUTED 30001440: e5803000 str r3, [r0] <== NOT EXECUTED 30001444: e3e00000 mvn r0, #0 <== NOT EXECUTED 30001448: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED if ( !pathloc ) rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 3000144c: eb0030e4 bl 3000d7e4 <__errno> <== NOT EXECUTED 30001450: e3a03005 mov r3, #5 <== NOT EXECUTED 30001454: e5803000 str r3, [r0] <== NOT EXECUTED 30001458: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000145c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30001184 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 30001184: e92d40f0 push {r4, r5, r6, r7, lr} /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 30001188: e59f6104 ldr r6, [pc, #260] ; 30001294 3000118c: e3a02012 mov r2, #18 30001190: e5963000 ldr r3, [r6] * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 30001194: e24dd01c sub sp, sp, #28 /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 30001198: e583202c str r2, [r3, #44] ; 0x2c init_fs_mount_table(); 3000119c: eb0001a7 bl 30001840 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 300011a0: e59f30f0 ldr r3, [pc, #240] ; 30001298 300011a4: e5933000 ldr r3, [r3] 300011a8: e3530000 cmp r3, #0 300011ac: 0a000032 beq 3000127c rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 300011b0: e59f30e4 ldr r3, [pc, #228] ; 3000129c status = mount( 300011b4: e28d0018 add r0, sp, #24 */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 300011b8: e593c000 ldr ip, [r3] status = mount( 300011bc: e89c100e ldm ip, {r1, r2, r3, ip} 300011c0: e58dc000 str ip, [sp] 300011c4: eb0001a4 bl 3000185c &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 300011c8: e3700001 cmn r0, #1 300011cc: 0a00002e beq 3000128c rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 300011d0: e5967000 ldr r7, [r6] * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 300011d4: e59de018 ldr lr, [sp, #24] 300011d8: e287c018 add ip, r7, #24 300011dc: e28ee01c add lr, lr, #28 300011e0: e8be000f ldm lr!, {r0, r1, r2, r3} 300011e4: e8ac000f stmia ip!, {r0, r1, r2, r3} 300011e8: e59e3000 ldr r3, [lr] &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 300011ec: e3a05000 mov r5, #0 * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 300011f0: e28d4004 add r4, sp, #4 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; 300011f4: e58c3000 str r3, [ip] &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; 300011f8: e1c753b0 strh r5, [r7, #48] ; 0x30 * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 300011fc: e1a03004 mov r3, r4 30001200: e3a01001 mov r1, #1 30001204: e1a02005 mov r2, r5 30001208: e59f0090 ldr r0, [pc, #144] ; 300012a0 3000120c: e58d5000 str r5, [sp] 30001210: eb000092 bl 30001460 rtems_filesystem_root = loc; 30001214: e596c000 ldr ip, [r6] 30001218: e1a07004 mov r7, r4 3000121c: e28cc018 add ip, ip, #24 30001220: e8b7000f ldm r7!, {r0, r1, r2, r3} 30001224: e8ac000f stmia ip!, {r0, r1, r2, r3} 30001228: e5973000 ldr r3, [r7] /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 3000122c: e1a02005 mov r2, r5 * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 30001230: e58c3000 str r3, [ip] /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 30001234: e3a01001 mov r1, #1 30001238: e1a03004 mov r3, r4 3000123c: e59f005c ldr r0, [pc, #92] ; 300012a0 30001240: e58d5000 str r5, [sp] 30001244: eb000085 bl 30001460 rtems_filesystem_current = loc; 30001248: e8b4000f ldm r4!, {r0, r1, r2, r3} 3000124c: e596c000 ldr ip, [r6] 30001250: e28cc004 add ip, ip, #4 30001254: e8ac000f stmia ip!, {r0, r1, r2, r3} 30001258: 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); 3000125c: e59f0040 ldr r0, [pc, #64] ; 300012a4 /* 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; 30001260: 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); 30001264: e59f103c ldr r1, [pc, #60] ; 300012a8 30001268: eb00011f bl 300016ec if ( status != 0 ) 3000126c: e1500005 cmp r0, r5 30001270: 1a000003 bne 30001284 * 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. */ } 30001274: e28dd01c add sp, sp, #28 30001278: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); 3000127c: e59f0028 ldr r0, [pc, #40] ; 300012ac <== NOT EXECUTED 30001280: eb000ef5 bl 30004e5c <== NOT EXECUTED * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) rtems_fatal_error_occurred( 0xABCD0003 ); 30001284: e59f0024 ldr r0, [pc, #36] ; 300012b0 <== NOT EXECUTED 30001288: eb000ef3 bl 30004e5c <== NOT EXECUTED status = mount( &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); 3000128c: e59f0020 ldr r0, [pc, #32] ; 300012b4 <== NOT EXECUTED 30001290: eb000ef1 bl 30004e5c <== NOT EXECUTED 30001294: 3001a0a0 .word 0x3001a0a0 30001298: 30018f50 .word 0x30018f50 3000129c: 30019eb0 .word 0x30019eb0 300012a0: 30019988 .word 0x30019988 300012a4: 3001998c .word 0x3001998c 300012a8: 000001ff .word 0x000001ff 300012ac: abcd0001 .word 0xabcd0001 300012b0: abcd0003 .word 0xabcd0003 300012b4: abcd0002 .word 0xabcd0002 30008f40 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 30008f40: e5903000 ldr r3, [r0] <== NOT EXECUTED 30008f44: e5910000 ldr r0, [r1] <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 30008f48: e1530000 cmp r3, r0 <== NOT EXECUTED 30008f4c: 13a00000 movne r0, #0 <== NOT EXECUTED 30008f50: 03a00001 moveq r0, #1 <== NOT EXECUTED 30008f54: e12fff1e bx lr <== NOT EXECUTED 300012b8 : { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 300012b8: e5d02000 ldrb r2, [r0] int rtems_filesystem_prefix_separators( const char *pathname, int pathnamelen ) { 300012bc: e1a03000 mov r3, r0 /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 300012c0: e3510000 cmp r1, #0 300012c4: 13520000 cmpne r2, #0 300012c8: 0a00000c beq 30001300 300012cc: e352002f cmp r2, #47 ; 0x2f 300012d0: 1352005c cmpne r2, #92 ; 0x5c 300012d4: 1a000009 bne 30001300 300012d8: e3a00000 mov r0, #0 { pathname++; pathnamelen--; stripped++; 300012dc: e2800001 add r0, r0, #1 { /* * Eat any separators at start of the path. */ int stripped = 0; while ( *pathname && pathnamelen && rtems_filesystem_is_separator( *pathname ) ) 300012e0: e7d32000 ldrb r2, [r3, r0] 300012e4: e1510000 cmp r1, r0 300012e8: 13520000 cmpne r2, #0 300012ec: 012fff1e bxeq lr 300012f0: e352002f cmp r2, #47 ; 0x2f 300012f4: 1352005c cmpne r2, #92 ; 0x5c 300012f8: 0afffff7 beq 300012dc 300012fc: e12fff1e bx lr 30001300: e3a00000 mov r0, #0 <== NOT EXECUTED pathname++; pathnamelen--; stripped++; } return stripped; } 30001304: e12fff1e bx lr <== NOT EXECUTED 3000103c : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 3000103c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED 30001040: e24dd018 sub sp, sp, #24 <== NOT EXECUTED 30001044: e1a06001 mov r6, r1 <== NOT EXECUTED 30001048: e1a05000 mov r5, r0 <== 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( name, strlen( name ), 0x00, &loc, true ); 3000104c: eb0035d5 bl 3000e7a8 <== NOT EXECUTED 30001050: e28d4004 add r4, sp, #4 <== NOT EXECUTED 30001054: e1a01000 mov r1, r0 <== NOT EXECUTED 30001058: e3a02000 mov r2, #0 <== NOT EXECUTED 3000105c: e1a03004 mov r3, r4 <== NOT EXECUTED 30001060: e3a0c001 mov ip, #1 <== NOT EXECUTED 30001064: e1a00005 mov r0, r5 <== NOT EXECUTED 30001068: e58dc000 str ip, [sp] <== NOT EXECUTED 3000106c: eb0000fb bl 30001460 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 30001070: e59d2010 ldr r2, [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( name, strlen( name ), 0x00, &loc, true ); 30001074: e1a07000 mov r7, r0 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 30001078: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED rtems_filesystem_location_info_t loc; 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; 3000107c: e59d8004 ldr r8, [sp, #4] <== NOT EXECUTED if ( !loc.ops->node_type_h ) { 30001080: e3530000 cmp r3, #0 <== NOT EXECUTED 30001084: 0a000013 beq 300010d8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } node_type = (*loc.ops->node_type_h)( &loc ); 30001088: e1a00004 mov r0, r4 <== NOT EXECUTED 3000108c: e1a0e00f mov lr, pc <== NOT EXECUTED 30001090: e12fff13 bx r3 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 30001094: e3570000 cmp r7, #0 <== NOT EXECUTED 30001098: 03500002 cmpeq r0, #2 <== NOT EXECUTED 3000109c: 03a07000 moveq r7, #0 <== NOT EXECUTED 300010a0: 13a07001 movne r7, #1 <== NOT EXECUTED 300010a4: 0a000015 beq 30001100 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 300010a8: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 300010ac: e3530000 cmp r3, #0 <== NOT EXECUTED 300010b0: 0a000025 beq 3000114c <== NOT EXECUTED 300010b4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300010b8: e3530000 cmp r3, #0 <== NOT EXECUTED 300010bc: 0a000022 beq 3000114c <== NOT EXECUTED 300010c0: e1a00004 mov r0, r4 <== NOT EXECUTED 300010c4: e1a0e00f mov lr, pc <== NOT EXECUTED 300010c8: e12fff13 bx r3 <== NOT EXECUTED 300010cc: e3a0000d mov r0, #13 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); return RTEMS_SUCCESSFUL; } 300010d0: e28dd018 add sp, sp, #24 <== NOT EXECUTED 300010d4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED result = rtems_filesystem_evaluate_path( name, strlen( name ), 0x00, &loc, true ); the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { rtems_filesystem_freenode( &loc ); 300010d8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 300010dc: e3530000 cmp r3, #0 <== NOT EXECUTED 300010e0: 11a00004 movne r0, r4 <== NOT EXECUTED 300010e4: 11a0e00f movne lr, pc <== NOT EXECUTED 300010e8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300010ec: eb0031bc bl 3000d7e4 <__errno> <== NOT EXECUTED 300010f0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300010f4: e5803000 str r3, [r0] <== NOT EXECUTED 300010f8: e3e00000 mvn r0, #0 <== NOT EXECUTED 300010fc: eafffff3 b 300010d0 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { rtems_filesystem_freenode( &loc ); return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 30001100: e5865000 str r5, [r6] <== NOT EXECUTED device_info->device_name_length = strlen( name ); 30001104: e1a00005 mov r0, r5 <== NOT EXECUTED 30001108: eb0035a6 bl 3000e7a8 <== NOT EXECUTED 3000110c: e5860004 str r0, [r6, #4] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 30001110: e5982050 ldr r2, [r8, #80] ; 0x50 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 30001114: e59d3010 ldr r3, [sp, #16] <== 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; 30001118: e5862008 str r2, [r6, #8] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 3000111c: e5982054 ldr r2, [r8, #84] ; 0x54 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30001120: e3530000 cmp r3, #0 <== NOT EXECUTED } device_info->device_name = (char *) name; device_info->device_name_length = strlen( name ); device_info->major = the_jnode->info.device.major; device_info->minor = the_jnode->info.device.minor; 30001124: e586200c str r2, [r6, #12] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30001128: 0a000009 beq 30001154 <== NOT EXECUTED 3000112c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30001130: e3530000 cmp r3, #0 <== NOT EXECUTED 30001134: 0a000006 beq 30001154 <== NOT EXECUTED 30001138: e1a00004 mov r0, r4 <== NOT EXECUTED 3000113c: e1a0e00f mov lr, pc <== NOT EXECUTED 30001140: e12fff13 bx r3 <== NOT EXECUTED 30001144: e1a00007 mov r0, r7 <== NOT EXECUTED 30001148: eaffffe0 b 300010d0 <== NOT EXECUTED 3000114c: e3a0000d mov r0, #13 <== NOT EXECUTED 30001150: eaffffde b 300010d0 <== NOT EXECUTED 30001154: e3a00000 mov r0, #0 <== NOT EXECUTED 30001158: eaffffdc b 300010d0 <== NOT EXECUTED 30006d4c : rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) 30006d4c: e59fc144 ldr ip, [pc, #324] ; 30006e98 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; 30006d50: e59f3144 ldr r3, [pc, #324] ; 30006e9c if ( rtems_interrupt_is_in_progress() ) 30006d54: e59cc000 ldr ip, [ip] rtems_status_code rtems_io_register_driver( rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { 30006d58: e92d4010 push {r4, lr} rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() ) 30006d5c: e35c0000 cmp ip, #0 rtems_status_code rtems_io_register_driver( rtems_device_major_number major, const rtems_driver_address_table *driver_table, rtems_device_major_number *registered_major ) { 30006d60: e1a04000 mov r4, r0 rtems_device_major_number major_limit = _IO_Number_of_drivers; 30006d64: e5930000 ldr r0, [r3] if ( rtems_interrupt_is_in_progress() ) 30006d68: 13a00012 movne r0, #18 30006d6c: 18bd8010 popne {r4, pc} return RTEMS_CALLED_FROM_ISR; if ( registered_major == NULL ) 30006d70: e3520000 cmp r2, #0 30006d74: 0a00003c beq 30006e6c return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; if ( driver_table == NULL ) 30006d78: e3510000 cmp r1, #0 if ( registered_major == NULL ) return RTEMS_INVALID_ADDRESS; /* Set it to an invalid value */ *registered_major = major_limit; 30006d7c: e5820000 str r0, [r2] if ( driver_table == NULL ) 30006d80: 0a000039 beq 30006e6c static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 30006d84: e591c000 ldr ip, [r1] 30006d88: e35c0000 cmp ip, #0 30006d8c: 0a000033 beq 30006e60 return RTEMS_INVALID_ADDRESS; if ( rtems_io_is_empty_table( driver_table ) ) return RTEMS_INVALID_ADDRESS; if ( major >= major_limit ) 30006d90: e1500004 cmp r0, r4 30006d94: 93a0000a movls r0, #10 30006d98: 98bd8010 popls {r4, pc} rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 30006d9c: e59f00fc ldr r0, [pc, #252] ; 30006ea0 30006da0: e590c000 ldr ip, [r0] 30006da4: e28cc001 add ip, ip, #1 30006da8: e580c000 str ip, [r0] return RTEMS_INVALID_NUMBER; _Thread_Disable_dispatch(); if ( major == 0 ) { 30006dac: e3540000 cmp r4, #0 30006db0: 1a000020 bne 30006e38 static rtems_status_code rtems_io_obtain_major_number( rtems_device_major_number *major ) { rtems_device_major_number n = _IO_Number_of_drivers; 30006db4: e593e000 ldr lr, [r3] rtems_device_major_number m = 0; /* major is error checked by caller */ for ( m = 0; m < n; ++m ) { 30006db8: e35e0000 cmp lr, #0 30006dbc: 0a00002c beq 30006e74 30006dc0: e59f30dc ldr r3, [pc, #220] ; 30006ea4 30006dc4: e593c000 ldr ip, [r3] 30006dc8: e1a0300c mov r3, ip 30006dcc: ea000003 b 30006de0 30006dd0: e2844001 add r4, r4, #1 30006dd4: e15e0004 cmp lr, r4 30006dd8: e2833018 add r3, r3, #24 30006ddc: 9a000005 bls 30006df8 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 30006de0: e5930000 ldr r0, [r3] 30006de4: e3500000 cmp r0, #0 30006de8: 1afffff8 bne 30006dd0 30006dec: e5930004 ldr r0, [r3, #4] 30006df0: e3500000 cmp r0, #0 30006df4: 1afffff5 bne 30006dd0 } /* Assigns invalid value in case of failure */ *major = m; if ( m != n ) 30006df8: e15e0004 cmp lr, r4 30006dfc: 10843084 addne r3, r4, r4, lsl #1 if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 30006e00: e5824000 str r4, [r2] if ( m != n ) 30006e04: 108cc183 addne ip, ip, r3, lsl #3 30006e08: 0a00001a beq 30006e78 } *registered_major = major; } _IO_Driver_address_table [major] = *driver_table; 30006e0c: e1a0e001 mov lr, r1 30006e10: e8be000f ldm lr!, {r0, r1, r2, r3} 30006e14: e8ac000f stmia ip!, {r0, r1, r2, r3} 30006e18: e89e0003 ldm lr, {r0, r1} 30006e1c: e88c0003 stm ip, {r0, r1} _Thread_Enable_dispatch(); 30006e20: eb0006bd bl 3000891c <_Thread_Enable_dispatch> return rtems_io_initialize( major, 0, NULL ); 30006e24: e3a01000 mov r1, #0 30006e28: e1a00004 mov r0, r4 30006e2c: e1a02001 mov r2, r1 } 30006e30: e8bd4010 pop {r4, lr} _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 30006e34: ea002429 b 3000fee0 _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; 30006e38: e59f3064 ldr r3, [pc, #100] ; 30006ea4 30006e3c: e084c084 add ip, r4, r4, lsl #1 30006e40: e5933000 ldr r3, [r3] static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 30006e44: e793018c ldr r0, [r3, ip, lsl #3] _Thread_Enable_dispatch(); return sc; } major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; 30006e48: e083c18c add ip, r3, ip, lsl #3 static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 30006e4c: e3500000 cmp r0, #0 30006e50: 0a00000b beq 30006e84 major = *registered_major; } else { rtems_driver_address_table *const table = _IO_Driver_address_table + major; if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); 30006e54: eb0006b0 bl 3000891c <_Thread_Enable_dispatch> 30006e58: e3a0000c mov r0, #12 return RTEMS_RESOURCE_IN_USE; 30006e5c: e8bd8010 pop {r4, pc} static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 30006e60: e591c004 ldr ip, [r1, #4] 30006e64: e35c0000 cmp ip, #0 30006e68: 1affffc8 bne 30006d90 _IO_Driver_address_table [major] = *driver_table; _Thread_Enable_dispatch(); return rtems_io_initialize( major, 0, NULL ); 30006e6c: e3a00009 mov r0, #9 } 30006e70: e8bd8010 pop {r4, pc} if ( rtems_io_is_empty_table( table ) ) break; } /* Assigns invalid value in case of failure */ *major = m; 30006e74: e5824000 str r4, [r2] <== NOT EXECUTED if ( major == 0 ) { rtems_status_code sc = rtems_io_obtain_major_number( registered_major ); if ( sc != RTEMS_SUCCESSFUL ) { _Thread_Enable_dispatch(); 30006e78: eb0006a7 bl 3000891c <_Thread_Enable_dispatch> 30006e7c: e3a00005 mov r0, #5 return sc; 30006e80: e8bd8010 pop {r4, pc} static inline bool rtems_io_is_empty_table( const rtems_driver_address_table *table ) { return table->initialization_entry == NULL && table->open_entry == NULL; 30006e84: e59c3004 ldr r3, [ip, #4] 30006e88: e3530000 cmp r3, #0 30006e8c: 1afffff0 bne 30006e54 if ( !rtems_io_is_empty_table( table ) ) { _Thread_Enable_dispatch(); return RTEMS_RESOURCE_IN_USE; } *registered_major = major; 30006e90: e5824000 str r4, [r2] 30006e94: eaffffdc b 30006e0c 30006e98: 30020ebc .word 0x30020ebc 30006e9c: 30021728 .word 0x30021728 30006ea0: 30020e2c .word 0x30020e2c 30006ea4: 3002172c .word 0x3002172c 30001524 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 30001524: e92d4010 push {r4, lr} rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 30001528: e59f40b4 ldr r4, [pc, #180] ; 300015e4 * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 3000152c: e24dd004 sub sp, sp, #4 rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 30001530: e5940000 ldr r0, [r4] 30001534: e3500000 cmp r0, #0 30001538: 0a000016 beq 30001598 { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 3000153c: e3a01040 mov r1, #64 ; 0x40 30001540: eb001eba bl 30009030 30001544: e59f309c ldr r3, [pc, #156] ; 300015e8 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 30001548: 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, 3000154c: e5830000 str r0, [r3] 30001550: e1a02000 mov r2, r0 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 30001554: 0a000020 beq 300015dc 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++) 30001558: e5941000 ldr r1, [r4] 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; 3000155c: e59f3088 ldr r3, [pc, #136] ; 300015ec for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 30001560: e3510001 cmp r1, #1 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; 30001564: e5830000 str r0, [r3] for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 30001568: 9a000008 bls 30001590 3000156c: e2803040 add r3, r0, #64 ; 0x40 30001570: e3a02001 mov r2, #1 iop->data1 = iop + 1; 30001574: e2822001 add r2, r2, #1 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++) 30001578: e1520001 cmp r2, r1 iop->data1 = iop + 1; 3000157c: e503300c str r3, [r3, #-12] 30001580: e2833040 add r3, r3, #64 ; 0x40 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++) 30001584: 1afffffa bne 30001574 30001588: e2422001 sub r2, r2, #1 3000158c: e0802302 add r2, r0, r2, lsl #6 iop->data1 = iop + 1; iop->data1 = NULL; 30001590: e3a03000 mov r3, #0 30001594: e5823034 str r3, [r2, #52] ; 0x34 /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 30001598: e59fc050 ldr ip, [pc, #80] ; 300015f0 3000159c: e59f0050 ldr r0, [pc, #80] ; 300015f4 300015a0: e3a01001 mov r1, #1 300015a4: e3a02054 mov r2, #84 ; 0x54 300015a8: e3a03000 mov r3, #0 300015ac: e58dc000 str ip, [sp] 300015b0: eb000bee bl 30004570 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 300015b4: e3500000 cmp r0, #0 300015b8: 1a000006 bne 300015d8 /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 300015bc: e59f3034 ldr r3, [pc, #52] ; 300015f8 300015c0: e5933000 ldr r3, [r3] 300015c4: e3530000 cmp r3, #0 (* rtems_fs_init_helper)(); 300015c8: 11a0e00f movne lr, pc 300015cc: 112fff13 bxne r3 } 300015d0: e28dd004 add sp, sp, #4 300015d4: e8bd8010 pop {r4, pc} RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) rtems_fatal_error_occurred( rc ); 300015d8: eb000e1f bl 30004e5c <== NOT EXECUTED 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) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 300015dc: e280001a add r0, r0, #26 <== NOT EXECUTED 300015e0: eb000e1d bl 30004e5c <== NOT EXECUTED 300015e4: 30019ea8 .word 0x30019ea8 300015e8: 3001a848 .word 0x3001a848 300015ec: 3001a84c .word 0x3001a84c 300015f0: 3001a850 .word 0x3001a850 300015f4: 4c42494f .word 0x4c42494f 300015f8: 30019ea4 .word 0x30019ea4 30026be4 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 30026be4: e92d41f0 push {r4, r5, r6, r7, r8, lr} rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); 30026be8: e3a00000 mov r0, #0 rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 30026bec: e24dd01c sub sp, sp, #28 rtems_status_code sc; rtems_id task_id; rtems_filesystem_location_info_t loc; sc=rtems_task_ident(RTEMS_SELF,0,&task_id); 30026bf0: e1a01000 mov r1, r0 30026bf4: e28d2018 add r2, sp, #24 30026bf8: eb0006bd bl 300286f4 if (sc != RTEMS_SUCCESSFUL) return sc; 30026bfc: e2508000 subs r8, r0, #0 30026c00: 1a00002e bne 30026cc0 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 30026c04: e59f60fc ldr r6, [pc, #252] ; 30026d08 30026c08: e59f30fc ldr r3, [pc, #252] ; 30026d0c 30026c0c: e5964000 ldr r4, [r6] 30026c10: e1540003 cmp r4, r3 30026c14: 0a00002c beq 30026ccc return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 30026c18: e59f10ec ldr r1, [pc, #236] ; 30026d0c 30026c1c: e3a02048 mov r2, #72 ; 0x48 30026c20: e1a00004 mov r0, r4 30026c24: eb006b6d bl 300419e0 rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30026c28: e59f30e0 ldr r3, [pc, #224] ; 30026d10 } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ 30026c2c: e1a0c004 mov ip, r4 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30026c30: e593e000 ldr lr, [r3] } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ 30026c34: e59d3018 ldr r3, [sp, #24] /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30026c38: e28ee01c add lr, lr, #28 } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ 30026c3c: e48c3018 str r3, [ip], #24 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30026c40: e8be000f ldm lr!, {r0, r1, r2, r3} 30026c44: e8ac000f stmia ip!, {r0, r1, r2, r3} 30026c48: e59e3000 ldr r3, [lr] * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 30026c4c: e3a05000 mov r5, #0 30026c50: e28d4004 add r4, sp, #4 *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30026c54: e58c3000 str r3, [ip] * code we must _not_ free the original locs because * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 30026c58: e3a01001 mov r1, #1 30026c5c: e1a03004 mov r3, r4 30026c60: e1a02005 mov r2, r5 30026c64: e59f00a8 ldr r0, [pc, #168] ; 30026d14 30026c68: e58d5000 str r5, [sp] 30026c6c: ebff7a87 bl 30005690 rtems_filesystem_root = loc; 30026c70: e596c000 ldr ip, [r6] 30026c74: e1a07004 mov r7, r4 30026c78: e28cc018 add ip, ip, #24 30026c7c: e8b7000f ldm r7!, {r0, r1, r2, r3} 30026c80: e8ac000f stmia ip!, {r0, r1, r2, r3} 30026c84: e5973000 ldr r3, [r7] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 30026c88: e3a01001 mov r1, #1 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 30026c8c: e58c3000 str r3, [ip] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 30026c90: e1a02005 mov r2, r5 30026c94: e1a03004 mov r3, r4 30026c98: e59f0074 ldr r0, [pc, #116] ; 30026d14 30026c9c: e58d5000 str r5, [sp] 30026ca0: ebff7a7a bl 30005690 rtems_filesystem_current = loc; 30026ca4: e8b4000f ldm r4!, {r0, r1, r2, r3} 30026ca8: e596c000 ldr ip, [r6] 30026cac: e1a08005 mov r8, r5 30026cb0: e28cc004 add ip, ip, #4 30026cb4: e8ac000f stmia ip!, {r0, r1, r2, r3} 30026cb8: e5973000 ldr r3, [r7] 30026cbc: e58c3000 str r3, [ip] return RTEMS_SUCCESSFUL; } 30026cc0: e1a00008 mov r0, r8 30026cc4: e28dd01c add sp, sp, #28 30026cc8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} sc=rtems_task_ident(RTEMS_SELF,0,&task_id); if (sc != RTEMS_SUCCESSFUL) return sc; /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 30026ccc: e3a00048 mov r0, #72 ; 0x48 30026cd0: ebff7c39 bl 30005dbc if (!tmp) 30026cd4: e2504000 subs r4, r0, #0 30026cd8: 03a0801a moveq r8, #26 30026cdc: 0afffff7 beq 30026cc0 #ifdef HAVE_USERENV_REFCNT tmp->refcnt = 1; #endif sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env); 30026ce0: e1a00008 mov r0, r8 30026ce4: e1a01006 mov r1, r6 30026ce8: e59f2028 ldr r2, [pc, #40] ; 30026d18 30026cec: eb000785 bl 30028b08 if (sc != RTEMS_SUCCESSFUL) { 30026cf0: e2508000 subs r8, r0, #0 * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 30026cf4: 05864000 streq r4, [r6] #ifdef HAVE_USERENV_REFCNT tmp->refcnt = 1; #endif sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,(void(*)(void *))free_user_env); if (sc != RTEMS_SUCCESSFUL) { 30026cf8: 0affffc6 beq 30026c18 /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 30026cfc: e1a00004 mov r0, r4 <== NOT EXECUTED 30026d00: ebff7a93 bl 30005754 <== NOT EXECUTED return sc; 30026d04: eaffffed b 30026cc0 <== NOT EXECUTED 30026d08: 30062da8 .word 0x30062da8 30026d0c: 30066bb0 .word 0x30066bb0 30026d10: 30066b98 .word 0x30066b98 30026d14: 300627a8 .word 0x300627a8 30026d18: 30026ad0 .word 0x30026ad0 30026b34 : * b) mutex access to rtems_filesystem_current, rtems_filesytem_root * while changing any of those (chdir(), chroot()). */ #ifndef HAVE_USERENV_REFCNT rtems_status_code rtems_libio_share_private_env(rtems_id task_id) { 30026b34: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 30026b38: e1a05000 mov r5, r0 <== NOT EXECUTED 30026b3c: e24dd008 sub sp, sp, #8 <== NOT EXECUTED rtems_status_code sc; rtems_user_env_t * shared_user_env; rtems_id current_task_id; sc=rtems_task_ident(RTEMS_SELF,0,¤t_task_id); 30026b40: e3a00000 mov r0, #0 <== NOT EXECUTED 30026b44: e1a01000 mov r1, r0 <== NOT EXECUTED 30026b48: e1a0200d mov r2, sp <== NOT EXECUTED 30026b4c: eb0006e8 bl 300286f4 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 30026b50: e2503000 subs r3, r0, #0 <== NOT EXECUTED 30026b54: 1a00000d bne 30026b90 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 30026b58: e59f4078 ldr r4, [pc, #120] ; 30026bd8 <== NOT EXECUTED 30026b5c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30026b60: e5946000 ldr r6, [r4] <== NOT EXECUTED 30026b64: e5962000 ldr r2, [r6] <== NOT EXECUTED 30026b68: e1520003 cmp r2, r3 <== NOT EXECUTED 30026b6c: 0a00000a beq 30026b9c <== NOT EXECUTED free_user_env(tmp); }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 30026b70: e1a00005 mov r0, r5 <== NOT EXECUTED 30026b74: e59f105c ldr r1, [pc, #92] ; 30026bd8 <== NOT EXECUTED 30026b78: e28d2004 add r2, sp, #4 <== NOT EXECUTED 30026b7c: eb000834 bl 30028c54 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 30026b80: e2503000 subs r3, r0, #0 <== NOT EXECUTED 30026b84: 0a00000b beq 30026bb8 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 30026b88: e59f204c ldr r2, [pc, #76] ; 30026bdc <== NOT EXECUTED 30026b8c: e5842000 str r2, [r4] <== NOT EXECUTED return sc; } 30026b90: e1a00003 mov r0, r3 <== NOT EXECUTED 30026b94: e28dd008 add sp, sp, #8 <== NOT EXECUTED 30026b98: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_current_user_env->task_id==current_task_id) { /* kill the current user env & task_var*/ rtems_user_env_t *tmp = rtems_current_user_env; sc = rtems_task_variable_delete(RTEMS_SELF,(void*)&rtems_current_user_env); 30026b9c: e1a01004 mov r1, r4 <== NOT EXECUTED 30026ba0: eb000805 bl 30028bbc <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 30026ba4: e2503000 subs r3, r0, #0 <== NOT EXECUTED 30026ba8: 1afffff8 bne 30026b90 <== NOT EXECUTED free_user_env(tmp); 30026bac: e1a00006 mov r0, r6 <== NOT EXECUTED 30026bb0: ebffffc6 bl 30026ad0 <== NOT EXECUTED 30026bb4: eaffffed b 30026b70 <== NOT EXECUTED sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 30026bb8: e59f1018 ldr r1, [pc, #24] ; 30026bd8 <== NOT EXECUTED 30026bbc: e59f201c ldr r2, [pc, #28] ; 30026be0 <== NOT EXECUTED 30026bc0: eb0007d0 bl 30028b08 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 30026bc4: e2503000 subs r3, r0, #0 <== NOT EXECUTED 30026bc8: 1affffee bne 30026b88 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 30026bcc: e59d2004 ldr r2, [sp, #4] <== NOT EXECUTED 30026bd0: e5842000 str r2, [r4] <== NOT EXECUTED /* increase the reference count */ #ifdef HAVE_USERENV_REFCNT rtems_current_user_env->refcnt++; #endif return RTEMS_SUCCESSFUL; 30026bd4: eaffffed b 30026b90 <== NOT EXECUTED 30026bd8: 30062da8 .word 0x30062da8 30026bdc: 30066bb0 .word 0x30066bb0 30026be0: 30026ad0 .word 0x30026ad0 30005eb8 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 30005eb8: e92d4800 push {fp, lr} <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 30005ebc: e59f3040 ldr r3, [pc, #64] ; 30005f04 <== NOT EXECUTED * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 30005ec0: e24dd004 sub sp, sp, #4 <== NOT EXECUTED 30005ec4: e1a01000 mov r1, r0 <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 30005ec8: e1a0200d mov r2, sp <== NOT EXECUTED 30005ecc: e5930000 ldr r0, [r3] <== NOT EXECUTED 30005ed0: eb0016de bl 3000ba50 <_Protected_heap_Get_block_size> <== NOT EXECUTED 30005ed4: e3500000 cmp r0, #0 <== NOT EXECUTED 30005ed8: 0a000007 beq 30005efc <== NOT EXECUTED MSBUMP(lifetime_freed, size); 30005edc: e59f3024 ldr r3, [pc, #36] ; 30005f08 <== NOT EXECUTED 30005ee0: e59d0000 ldr r0, [sp] <== NOT EXECUTED 30005ee4: e283c024 add ip, r3, #36 ; 0x24 <== NOT EXECUTED 30005ee8: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED 30005eec: e09b1000 adds r1, fp, r0 <== NOT EXECUTED 30005ef0: e2ac2000 adc r2, ip, #0 <== NOT EXECUTED 30005ef4: e5831024 str r1, [r3, #36] ; 0x24 <== NOT EXECUTED 30005ef8: e5832028 str r2, [r3, #40] ; 0x28 <== NOT EXECUTED } } 30005efc: e28dd004 add sp, sp, #4 <== NOT EXECUTED 30005f00: e8bd8800 pop {fp, pc} <== NOT EXECUTED 30005f04: 30062a7c .word 0x30062a7c 30005f08: 30066b6c .word 0x30066b6c 30005f0c : } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 30005f0c: e92d4810 push {r4, fp, lr} <== NOT EXECUTED uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 30005f10: e2501000 subs r1, r0, #0 <== NOT EXECUTED } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 30005f14: e24dd004 sub sp, sp, #4 <== NOT EXECUTED uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 30005f18: 0a000013 beq 30005f6c <== NOT EXECUTED return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 30005f1c: e59f3050 ldr r3, [pc, #80] ; 30005f74 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 30005f20: e28d2004 add r2, sp, #4 <== NOT EXECUTED rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 30005f24: e5930000 ldr r0, [r3] <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 30005f28: e3a03000 mov r3, #0 <== NOT EXECUTED 30005f2c: e5223004 str r3, [r2, #-4]! <== NOT EXECUTED rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 30005f30: e1a0200d mov r2, sp <== NOT EXECUTED 30005f34: eb0016c5 bl 3000ba50 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 30005f38: e59f3038 ldr r3, [pc, #56] ; 30005f78 <== NOT EXECUTED 30005f3c: e59d4000 ldr r4, [sp] <== NOT EXECUTED 30005f40: e283c01c add ip, r3, #28 <== NOT EXECUTED 30005f44: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 30005f48: e5930024 ldr r0, [r3, #36] ; 0x24 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 30005f4c: e09b1004 adds r1, fp, r4 <== NOT EXECUTED 30005f50: e2ac2000 adc r2, ip, #0 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) 30005f54: e593c018 ldr ip, [r3, #24] <== NOT EXECUTED _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 30005f58: e0600001 rsb r0, r0, r1 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 30005f5c: e583101c str r1, [r3, #28] <== NOT EXECUTED 30005f60: e5832020 str r2, [r3, #32] <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) 30005f64: e150000c cmp r0, ip <== NOT EXECUTED s->max_depth = current_depth; 30005f68: 85830018 strhi r0, [r3, #24] <== NOT EXECUTED } 30005f6c: e28dd004 add sp, sp, #4 <== NOT EXECUTED 30005f70: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED 30005f74: 30062a7c .word 0x30062a7c 30005f78: 30066b6c .word 0x30066b6c 30005f7c : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 30005f7c: e59f1038 ldr r1, [pc, #56] ; 30005fbc <== NOT EXECUTED 30005f80: e3a02000 mov r2, #0 <== NOT EXECUTED 30005f84: e1a03001 mov r3, r1 <== NOT EXECUTED 30005f88: e4832004 str r2, [r3], #4 <== NOT EXECUTED 30005f8c: e2833004 add r3, r3, #4 <== NOT EXECUTED 30005f90: e4832004 str r2, [r3], #4 <== NOT EXECUTED 30005f94: e4832004 str r2, [r3], #4 <== NOT EXECUTED 30005f98: e4832004 str r2, [r3], #4 <== NOT EXECUTED 30005f9c: e4832004 str r2, [r3], #4 <== NOT EXECUTED 30005fa0: e4832004 str r2, [r3], #4 <== NOT EXECUTED 30005fa4: e4832004 str r2, [r3], #4 <== NOT EXECUTED 30005fa8: e4832004 str r2, [r3], #4 <== NOT EXECUTED 30005fac: e4832004 str r2, [r3], #4 <== NOT EXECUTED 30005fb0: e5832000 str r2, [r3] <== NOT EXECUTED 30005fb4: e5812004 str r2, [r1, #4] <== NOT EXECUTED } 30005fb8: e12fff1e bx lr <== NOT EXECUTED 30005fbc: 30066b6c .word 0x30066b6c 300065cc : void rtems_panic( const char *printf_format, ... ) { 300065cc: e92d000f push {r0, r1, r2, r3} <== NOT EXECUTED 300065d0: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 300065d4: e24dd004 sub sp, sp, #4 <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); 300065d8: e28d300c add r3, sp, #12 <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 300065dc: e1a02003 mov r2, r3 <== NOT EXECUTED 300065e0: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED 300065e4: e3a00202 mov r0, #536870912 ; 0x20000000 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 300065e8: e58d3000 str r3, [sp] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 300065ec: ebffff8d bl 30006428 <== NOT EXECUTED va_end(arglist); } 300065f0: e28dd004 add sp, sp, #4 <== NOT EXECUTED 300065f4: e49de004 pop {lr} ; (ldr lr, [sp], #4) <== NOT EXECUTED 300065f8: e28dd010 add sp, sp, #16 <== NOT EXECUTED 300065fc: e12fff1e bx lr <== NOT EXECUTED 3000b408 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 3000b408: e52de004 push {lr} ; (str lr, [sp, #-4]!) if (!rtems_pipe_configured) 3000b40c: e59f3054 ldr r3, [pc, #84] ; 3000b468 /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 3000b410: e24dd004 sub sp, sp, #4 if (!rtems_pipe_configured) 3000b414: e5d33000 ldrb r3, [r3] 3000b418: e3530000 cmp r3, #0 3000b41c: 0a000003 beq 3000b430 return; if (rtems_pipe_semaphore) 3000b420: e59fc044 ldr ip, [pc, #68] ; 3000b46c <== NOT EXECUTED 3000b424: e59c3000 ldr r3, [ip] <== NOT EXECUTED 3000b428: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b42c: 0a000001 beq 3000b438 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); rtems_pipe_no = now; } 3000b430: e28dd004 add sp, sp, #4 3000b434: e8bd8000 pop {pc} if (rtems_pipe_semaphore) return; rtems_status_code sc; sc = rtems_semaphore_create( 3000b438: e59f0030 ldr r0, [pc, #48] ; 3000b470 <== NOT EXECUTED 3000b43c: e3a01001 mov r1, #1 <== NOT EXECUTED 3000b440: e3a02054 mov r2, #84 ; 0x54 <== NOT EXECUTED 3000b444: e58dc000 str ip, [sp] <== NOT EXECUTED 3000b448: ebffe448 bl 30004570 <== NOT EXECUTED rtems_build_name ('P', 'I', 'P', 'E'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_pipe_semaphore); if (sc != RTEMS_SUCCESSFUL) 3000b44c: e3500000 cmp r0, #0 <== NOT EXECUTED 3000b450: 1a000003 bne 3000b464 <== NOT EXECUTED rtems_fatal_error_occurred (sc); rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 3000b454: ebffe33c bl 3000414c <== NOT EXECUTED rtems_pipe_no = now; 3000b458: e59f3014 ldr r3, [pc, #20] ; 3000b474 <== NOT EXECUTED 3000b45c: e1c300b0 strh r0, [r3] <== NOT EXECUTED 3000b460: eafffff2 b 3000b430 <== NOT EXECUTED sc = rtems_semaphore_create( rtems_build_name ('P', 'I', 'P', 'E'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_pipe_semaphore); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 3000b464: ebffe67c bl 30004e5c <== NOT EXECUTED 3000b468: 3001a664 .word 0x3001a664 3000b46c: 3001a7c4 .word 0x3001a7c4 3000b470: 50495045 .word 0x50495045 3000b474: 3001a7ca .word 0x3001a7ca 30003d44 : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 30003d44: e92d4830 push {r4, r5, fp, lr} Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 30003d48: e59f4078 ldr r4, [pc, #120] ; 30003dc8 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 30003d4c: e28db00c add fp, sp, #12 Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 30003d50: e5943000 ldr r3, [r4] ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 30003d54: e59300c8 ldr r0, [r3, #200] ; 0xc8 30003d58: e15b0000 cmp fp, r0 30003d5c: 33a05000 movcc r5, #0 30003d60: 3a000004 bcc 30003d78 } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 30003d64: e59350c4 ldr r5, [r3, #196] ; 0xc4 30003d68: e0805005 add r5, r0, r5 30003d6c: e15b0005 cmp fp, r5 30003d70: 83a05000 movhi r5, #0 30003d74: 93a05001 movls r5, #1 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 30003d78: e59f304c ldr r3, [pc, #76] ; 30003dcc 30003d7c: e5933000 ldr r3, [r3] 30003d80: e3530000 cmp r3, #0 30003d84: 03a01001 moveq r1, #1 30003d88: 0a000005 beq 30003da4 pattern_ok = (!memcmp( 30003d8c: e59f103c ldr r1, [pc, #60] ; 30003dd0 30003d90: e2800008 add r0, r0, #8 30003d94: e3a02010 mov r2, #16 30003d98: eb00f6e6 bl 30041938 30003d9c: e2701001 rsbs r1, r0, #1 30003da0: 33a01000 movcc r1, #0 } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 30003da4: e3550000 cmp r5, #0 30003da8: 0a000002 beq 30003db8 30003dac: e3510000 cmp r1, #0 30003db0: 13a00000 movne r0, #0 30003db4: 18bd8830 popne {r4, r5, fp, pc} return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 30003db8: e5940000 ldr r0, [r4] <== NOT EXECUTED 30003dbc: ebffffb3 bl 30003c90 <== NOT EXECUTED 30003dc0: e3a00001 mov r0, #1 <== NOT EXECUTED return true; } 30003dc4: e8bd8830 pop {r4, r5, fp, pc} <== NOT EXECUTED 30003dc8: 30066d80 .word 0x30066d80 30003dcc: 30064060 .word 0x30064060 30003dd0: 30066b3c .word 0x30066b3c 30003c80 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 30003c80: e59f1004 ldr r1, [pc, #4] ; 30003c8c <== NOT EXECUTED 30003c84: e3a00000 mov r0, #0 <== NOT EXECUTED 30003c88: eaffffe3 b 30003c1c <== NOT EXECUTED 30003c8c: 30006974 .word 0x30006974 30003c1c : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 30003c1c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED print_context = context; 30003c20: e59f4048 ldr r4, [pc, #72] ; 30003c70 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 30003c24: e1a05001 mov r5, r1 <== NOT EXECUTED 30003c28: e1a06000 mov r6, r0 <== NOT EXECUTED print_context = context; print_handler = print; 30003c2c: e5841004 str r1, [r4, #4] <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { print_context = context; 30003c30: e5840008 str r0, [r4, #8] <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); 30003c34: e59f1038 ldr r1, [pc, #56] ; 30003c74 <== NOT EXECUTED 30003c38: e1a0e00f mov lr, pc <== NOT EXECUTED 30003c3c: e12fff15 bx r5 <== NOT EXECUTED (*print)( context, 30003c40: e59f1030 ldr r1, [pc, #48] ; 30003c78 <== NOT EXECUTED 30003c44: e1a00006 mov r0, r6 <== NOT EXECUTED 30003c48: e1a0e00f mov lr, pc <== NOT EXECUTED 30003c4c: e12fff15 bx 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 ); 30003c50: e59f0024 ldr r0, [pc, #36] ; 30003c7c <== NOT EXECUTED 30003c54: eb001d31 bl 3000b120 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 30003c58: e3e00000 mvn r0, #0 <== NOT EXECUTED 30003c5c: ebffff9d bl 30003ad8 <== NOT EXECUTED print_context = NULL; 30003c60: e3a03000 mov r3, #0 <== NOT EXECUTED print_handler = NULL; 30003c64: e5843004 str r3, [r4, #4] <== NOT EXECUTED rtems_iterate_over_all_threads( Stack_check_Dump_threads_usage ); /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); print_context = NULL; 30003c68: e5843008 str r3, [r4, #8] <== NOT EXECUTED print_handler = NULL; } 30003c6c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30003c70: 30064060 .word 0x30064060 30003c74: 3005bd04 .word 0x3005bd04 30003c78: 3005bd1c .word 0x3005bd1c 30003c7c: 30003ad8 .word 0x30003ad8 30003dd4 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 30003dd4: e92d4810 push {r4, fp, lr} Stack_Control *the_stack = &running->Start.Initial_stack; void *pattern; bool sp_ok; bool pattern_ok = true; pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern; 30003dd8: e59030c8 ldr r3, [r0, #200] ; 0xc8 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 30003ddc: e28db008 add fp, sp, #8 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 30003de0: e15b0003 cmp fp, r3 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 30003de4: e1a04000 mov r4, r0 Stack_Control *the_stack = &running->Start.Initial_stack; void *pattern; bool sp_ok; bool pattern_ok = true; pattern = (void *) Stack_check_Get_pattern_area(the_stack)->pattern; 30003de8: e2830008 add r0, r3, #8 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 30003dec: 3a000003 bcc 30003e00 void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { Stack_Control *the_stack = &running->Start.Initial_stack; 30003df0: e59420c4 ldr r2, [r4, #196] ; 0xc4 30003df4: e0833002 add r3, r3, r2 30003df8: e15b0003 cmp fp, r3 30003dfc: 9a000007 bls 30003e20 /* * 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, 30003e00: e59f1034 ldr r1, [pc, #52] ; 30003e3c <== NOT EXECUTED 30003e04: e3a02010 mov r2, #16 <== NOT EXECUTED 30003e08: eb00f6ca bl 30041938 <== NOT EXECUTED 30003e0c: e2701001 rsbs r1, r0, #1 <== NOT EXECUTED 30003e10: 33a01000 movcc r1, #0 <== NOT EXECUTED (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 30003e14: e1a00004 mov r0, r4 <== NOT EXECUTED } } 30003e18: e8bd4810 pop {r4, fp, lr} <== NOT EXECUTED pattern_ok = (!memcmp( pattern, (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { Stack_check_report_blown_task( running, pattern_ok ); 30003e1c: eaffff9b b 30003c90 <== 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, 30003e20: e59f1014 ldr r1, [pc, #20] ; 30003e3c 30003e24: e3a02010 mov r2, #16 30003e28: eb00f6c2 bl 30041938 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 30003e2c: e3500000 cmp r0, #0 30003e30: 13a01000 movne r1, #0 30003e34: 1afffff6 bne 30003e14 30003e38: e8bd8810 pop {r4, fp, pc} 30003e3c: 30066b3c .word 0x30066b3c 3000b3c4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000b3c4: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000b3c8: e2514000 subs r4, r1, #0 <== NOT EXECUTED #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000b3cc: e1a07000 mov r7, r0 <== NOT EXECUTED 3000b3d0: e24dd004 sub sp, sp, #4 <== NOT EXECUTED 3000b3d4: e1a08002 mov r8, r2 <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000b3d8: 03a00009 moveq r0, #9 <== NOT EXECUTED 3000b3dc: 0a000019 beq 3000b448 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; errno = 0; 3000b3e0: eb000dde bl 3000eb60 <__errno> <== NOT EXECUTED 3000b3e4: e3a03000 mov r3, #0 <== NOT EXECUTED 3000b3e8: e5803000 str r3, [r0] <== NOT EXECUTED *n = 0; 3000b3ec: e3a02000 mov r2, #0 <== NOT EXECUTED 3000b3f0: e3a03000 mov r3, #0 <== NOT EXECUTED 3000b3f4: e884000c stm r4, {r2, r3} <== NOT EXECUTED #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000b3f8: e1a00007 mov r0, r7 <== NOT EXECUTED 3000b3fc: e1a0100d mov r1, sp <== NOT EXECUTED 3000b400: eb00194d bl 3001193c <== NOT EXECUTED #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 3000b404: e3580000 cmp r8, #0 <== NOT EXECUTED *endptr = end; 3000b408: 159d3000 ldrne r3, [sp] <== NOT EXECUTED 3000b40c: 059d3000 ldreq r3, [sp] <== NOT EXECUTED 3000b410: 15883000 strne r3, [r8] <== NOT EXECUTED /* nothing was converted */ if ( end == s ) 3000b414: e1530007 cmp r3, r7 <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000b418: e1a05000 mov r5, r0 <== NOT EXECUTED 3000b41c: e1a06001 mov r6, r1 <== NOT EXECUTED /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s ) 3000b420: 03a0000b moveq r0, #11 <== NOT EXECUTED 3000b424: 0a000007 beq 3000b448 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 3000b428: e1a00005 mov r0, r5 <== NOT EXECUTED 3000b42c: e59f2034 ldr r2, [pc, #52] ; 3000b468 <== NOT EXECUTED 3000b430: e3e03000 mvn r3, #0 <== NOT EXECUTED 3000b434: ebffde9d bl 30002eb0 <__gedf2> <== NOT EXECUTED 3000b438: e3500000 cmp r0, #0 <== NOT EXECUTED 3000b43c: ca000003 bgt 3000b450 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 3000b440: e8840060 stm r4, {r5, r6} <== NOT EXECUTED 3000b444: e3a00000 mov r0, #0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 3000b448: e28dd004 add sp, sp, #4 <== NOT EXECUTED 3000b44c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 3000b450: eb000dc2 bl 3000eb60 <__errno> <== NOT EXECUTED 3000b454: e5903000 ldr r3, [r0] <== NOT EXECUTED 3000b458: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 3000b45c: 03a0000a moveq r0, #10 <== NOT EXECUTED 3000b460: 1afffff6 bne 3000b440 <== NOT EXECUTED 3000b464: eafffff7 b 3000b448 <== NOT EXECUTED 3000b468: 7fefffff .word 0x7fefffff 3000b46c : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000b46c: e92d40f0 push {r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000b470: e2515000 subs r5, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000b474: e1a04000 mov r4, r0 3000b478: e24dd004 sub sp, sp, #4 3000b47c: e1a06002 mov r6, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000b480: 03a00009 moveq r0, #9 3000b484: 0a000016 beq 3000b4e4 return RTEMS_INVALID_ADDRESS; errno = 0; 3000b488: eb000db4 bl 3000eb60 <__errno> 3000b48c: e3a03000 mov r3, #0 3000b490: e5803000 str r3, [r0] *n = 0; 3000b494: e3a03000 mov r3, #0 3000b498: e5853000 str r3, [r5] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000b49c: e1a00004 mov r0, r4 3000b4a0: e1a0100d mov r1, sp 3000b4a4: eb001911 bl 300118f0 #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 3000b4a8: e3560000 cmp r6, #0 *endptr = end; 3000b4ac: 159d3000 ldrne r3, [sp] 3000b4b0: 059d3000 ldreq r3, [sp] 3000b4b4: 15863000 strne r3, [r6] /* nothing was converted */ if ( end == s ) 3000b4b8: e1530004 cmp r3, r4 errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000b4bc: e1a07000 mov r7, r0 /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s ) 3000b4c0: 03a0000b moveq r0, #11 3000b4c4: 0a000006 beq 3000b4e4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 3000b4c8: e1a00007 mov r0, r7 3000b4cc: e59f1030 ldr r1, [pc, #48] ; 3000b504 3000b4d0: ebffdec1 bl 30002fdc <__gesf2> 3000b4d4: e3500000 cmp r0, #0 3000b4d8: ca000003 bgt 3000b4ec /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 3000b4dc: e5857000 str r7, [r5] 3000b4e0: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } 3000b4e4: e28dd004 add sp, sp, #4 3000b4e8: e8bd80f0 pop {r4, r5, r6, r7, pc} return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 3000b4ec: eb000d9b bl 3000eb60 <__errno> <== NOT EXECUTED 3000b4f0: e5903000 ldr r3, [r0] <== NOT EXECUTED 3000b4f4: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 3000b4f8: 03a0000a moveq r0, #10 <== NOT EXECUTED 3000b4fc: 1afffff6 bne 3000b4dc <== NOT EXECUTED 3000b500: eafffff7 b 3000b4e4 <== NOT EXECUTED 3000b504: 7f7fffff .word 0x7f7fffff 3001c8ac : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3001c8ac: e92d40f0 push {r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3001c8b0: e2515000 subs r5, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3001c8b4: e1a04000 mov r4, r0 3001c8b8: e24dd004 sub sp, sp, #4 3001c8bc: e1a06002 mov r6, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3001c8c0: 03a00009 moveq r0, #9 3001c8c4: 0a000013 beq 3001c918 return RTEMS_INVALID_ADDRESS; errno = 0; 3001c8c8: eb008813 bl 3003e91c <__errno> 3001c8cc: e3a03000 mov r3, #0 3001c8d0: e5803000 str r3, [r0] *n = 0; 3001c8d4: e5853000 str r3, [r5] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); 3001c8d8: e1a00004 mov r0, r4 3001c8dc: e1a0100d mov r1, sp 3001c8e0: e3a02010 mov r2, #16 3001c8e4: eb00a7b3 bl 300467b8 #elif defined(STRING_TO_INTEGER) result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) 3001c8e8: e3560000 cmp r6, #0 *endptr = end; 3001c8ec: 159d3000 ldrne r3, [sp] 3001c8f0: 059d3000 ldreq r3, [sp] 3001c8f4: 15863000 strne r3, [r6] /* nothing was converted */ if ( end == s ) 3001c8f8: e1530004 cmp r3, r4 *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); 3001c8fc: e1a07000 mov r7, r0 /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; /* nothing was converted */ if ( end == s ) 3001c900: 03a0000b moveq r0, #11 3001c904: 0a000003 beq 3001c918 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 3001c908: e3770001 cmn r7, #1 3001c90c: 0a000003 beq 3001c920 /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 3001c910: e5857000 str r7, [r5] 3001c914: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } 3001c918: e28dd004 add sp, sp, #4 3001c91c: e8bd80f0 pop {r4, r5, r6, r7, pc} return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 3001c920: eb0087fd bl 3003e91c <__errno> <== NOT EXECUTED 3001c924: e5903000 ldr r3, [r0] <== NOT EXECUTED 3001c928: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 3001c92c: 03a0000a moveq r0, #10 <== NOT EXECUTED 3001c930: 1afffff6 bne 3001c910 <== NOT EXECUTED 3001c934: eafffff7 b 3001c918 <== NOT EXECUTED 300036c4 : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 300036c4: e3500009 cmp r0, #9 300036c8: 012fff1e bxeq lr 300036cc: da000010 ble 30003714 300036d0: e350000e cmp r0, #14 <== NOT EXECUTED 300036d4: 012fff1e bxeq lr <== NOT EXECUTED 300036d8: da000018 ble 30003740 <== NOT EXECUTED 300036dc: e59f30d0 ldr r3, [pc, #208] ; 300037b4 <== NOT EXECUTED 300036e0: e1500003 cmp r0, r3 <== 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; 300036e4: 03a00011 moveq r0, #17 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 300036e8: 012fff1e bxeq lr <== NOT EXECUTED 300036ec: da000026 ble 3000378c <== NOT EXECUTED 300036f0: e59f30c0 ldr r3, [pc, #192] ; 300037b8 <== NOT EXECUTED 300036f4: 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; 300036f8: 03a00012 moveq r0, #18 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 300036fc: 012fff1e bxeq lr <== NOT EXECUTED 30003700: e2833001 add r3, r3, #1 <== NOT EXECUTED 30003704: e1500003 cmp r0, r3 <== NOT EXECUTED 30003708: 1a00001d bne 30003784 <== 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; 3000370c: e3a00013 mov r0, #19 <== NOT EXECUTED case B460800: baud_index = 19; break; 30003710: e12fff1e bx lr <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 30003714: e3500004 cmp r0, #4 30003718: 012fff1e bxeq lr 3000371c: ca000010 bgt 30003764 30003720: e3500001 cmp r0, #1 30003724: 012fff1e bxeq lr 30003728: da00001e ble 300037a8 3000372c: e3500002 cmp r0, #2 <== NOT EXECUTED 30003730: 012fff1e bxeq lr <== NOT EXECUTED 30003734: e3500003 cmp r0, #3 <== NOT EXECUTED 30003738: 1a000011 bne 30003784 <== NOT EXECUTED 3000373c: e12fff1e bx lr <== NOT EXECUTED 30003740: e350000b cmp r0, #11 <== NOT EXECUTED 30003744: 012fff1e bxeq lr <== NOT EXECUTED case B134: baud_index = 4; break; 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; 30003748: b3a0000a movlt r0, #10 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 3000374c: b12fff1e bxlt lr <== NOT EXECUTED 30003750: e350000c cmp r0, #12 <== NOT EXECUTED 30003754: 012fff1e bxeq lr <== NOT EXECUTED 30003758: e350000d cmp r0, #13 <== NOT EXECUTED 3000375c: 1a000008 bne 30003784 <== NOT EXECUTED 30003760: e12fff1e bx lr <== NOT EXECUTED 30003764: e3500006 cmp r0, #6 <== NOT EXECUTED 30003768: 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; 3000376c: b3a00005 movlt r0, #5 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 30003770: b12fff1e bxlt lr <== NOT EXECUTED 30003774: e3500007 cmp r0, #7 <== NOT EXECUTED 30003778: 012fff1e bxeq lr <== NOT EXECUTED 3000377c: e3500008 cmp r0, #8 <== NOT EXECUTED 30003780: 012fff1e bxeq lr <== NOT EXECUTED 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; case B460800: baud_index = 19; break; 30003784: e3e00000 mvn r0, #0 default: baud_index = -1; break; } return baud_index; } 30003788: e12fff1e bx lr rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 3000378c: e350000f cmp r0, #15 <== NOT EXECUTED 30003790: 012fff1e bxeq lr <== NOT EXECUTED 30003794: e2433001 sub r3, r3, #1 <== NOT EXECUTED 30003798: e1500003 cmp r0, r3 <== NOT EXECUTED 3000379c: 1afffff8 bne 30003784 <== NOT EXECUTED case B1800: baud_index = 10; break; 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; 300037a0: e3a00010 mov r0, #16 <== NOT EXECUTED case B57600: baud_index = 16; break; 300037a4: e12fff1e bx lr <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 300037a8: e3500000 cmp r0, #0 300037ac: 012fff1e bxeq lr 300037b0: eafffff3 b 30003784 300037b4: 00001002 .word 0x00001002 300037b8: 00001003 .word 0x00001003 300020e8 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 300020e8: e59f3008 ldr r3, [pc, #8] ; 300020f8 <== NOT EXECUTED 300020ec: e8830007 stm r3, {r0, r1, r2} <== NOT EXECUTED rtems_termios_raw_input_size = raw_input; rtems_termios_raw_output_size = raw_output; return RTEMS_SUCCESSFUL; } 300020f0: e3a00000 mov r0, #0 <== NOT EXECUTED 300020f4: e12fff1e bx lr <== NOT EXECUTED 300020f8: 3001a08c .word 0x3001a08c 30003678 : } } rtems_status_code rtems_termios_close (void *arg) { 30003678: e92d4070 push {r4, r5, r6, lr} rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 3000367c: e59f51b0 ldr r5, [pc, #432] ; 30003834 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30003680: e5903000 ldr r3, [r0] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30003684: e3a01000 mov r1, #0 } } rtems_status_code rtems_termios_close (void *arg) { 30003688: e1a06000 mov r6, r0 rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 3000368c: e1a02001 mov r2, r1 30003690: e5950000 ldr r0, [r5] rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30003694: e5934034 ldr r4, [r3, #52] ; 0x34 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30003698: eb00044f bl 300047dc if (sc != RTEMS_SUCCESSFUL) 3000369c: e3500000 cmp r0, #0 300036a0: 1a00005f bne 30003824 rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 300036a4: e5943008 ldr r3, [r4, #8] 300036a8: e2433001 sub r3, r3, #1 300036ac: e3530000 cmp r3, #0 300036b0: e5843008 str r3, [r4, #8] 300036b4: 1a00002f bne 30003778 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 300036b8: e59420cc ldr r2, [r4, #204] ; 0xcc 300036bc: e59f3174 ldr r3, [pc, #372] ; 30003838 300036c0: e0833282 add r3, r3, r2, lsl #5 300036c4: e5931004 ldr r1, [r3, #4] 300036c8: e3510000 cmp r1, #0 300036cc: 0a000040 beq 300037d4 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 300036d0: e1a00004 mov r0, r4 <== NOT EXECUTED 300036d4: e1a0e00f mov lr, pc <== NOT EXECUTED 300036d8: e12fff11 bx r1 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } drainOutput (tty); } if (tty->device.outputUsesInterrupts 300036dc: e59430b4 ldr r3, [r4, #180] ; 0xb4 <== NOT EXECUTED 300036e0: e3530002 cmp r3, #2 <== NOT EXECUTED 300036e4: 0a000044 beq 300037fc <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) 300036e8: e594309c ldr r3, [r4, #156] ; 0x9c 300036ec: e3530000 cmp r3, #0 (*tty->device.lastClose)(tty->major, tty->minor, arg); 300036f0: 11a02006 movne r2, r6 300036f4: 1594000c ldrne r0, [r4, #12] 300036f8: 15941010 ldrne r1, [r4, #16] 300036fc: 11a0e00f movne lr, pc 30003700: 112fff13 bxne r3 if (tty->forw == NULL) { 30003704: e5943000 ldr r3, [r4] 30003708: e3530000 cmp r3, #0 3000370c: 0a000020 beq 30003794 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 30003710: e5942004 ldr r2, [r4, #4] 30003714: e5832004 str r2, [r3, #4] } if (tty->back == NULL) { 30003718: e5942004 ldr r2, [r4, #4] 3000371c: e3520000 cmp r2, #0 if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 30003720: 15823000 strne r3, [r2] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 30003724: 0a000025 beq 300037c0 } } else { tty->back->forw = tty->forw; } rtems_semaphore_delete (tty->isem); 30003728: e5940014 ldr r0, [r4, #20] 3000372c: eb000401 bl 30004738 rtems_semaphore_delete (tty->osem); 30003730: e5940018 ldr r0, [r4, #24] 30003734: eb0003ff bl 30004738 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 30003738: e594008c ldr r0, [r4, #140] ; 0x8c 3000373c: eb0003fd bl 30004738 if ((tty->device.pollRead == NULL) || 30003740: e59430a0 ldr r3, [r4, #160] ; 0xa0 30003744: e3530000 cmp r3, #0 30003748: 0a00000e beq 30003788 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 3000374c: e59430b4 ldr r3, [r4, #180] ; 0xb4 30003750: e3530002 cmp r3, #2 30003754: 0a00000b beq 30003788 rtems_semaphore_delete (tty->rawInBuf.Semaphore); free (tty->rawInBuf.theBuf); 30003758: e5940058 ldr r0, [r4, #88] ; 0x58 3000375c: eb00166e bl 3000911c free (tty->rawOutBuf.theBuf); 30003760: e594007c ldr r0, [r4, #124] ; 0x7c 30003764: eb00166c bl 3000911c free (tty->cbuf); 30003768: e594001c ldr r0, [r4, #28] 3000376c: eb00166a bl 3000911c free (tty); 30003770: e1a00004 mov r0, r4 30003774: eb001668 bl 3000911c } rtems_semaphore_release (rtems_termios_ttyMutex); 30003778: e5950000 ldr r0, [r5] 3000377c: eb00045e bl 300048fc return RTEMS_SUCCESSFUL; } 30003780: e3a00000 mov r0, #0 30003784: e8bd8070 pop {r4, r5, r6, pc} rtems_semaphore_delete (tty->isem); rtems_semaphore_delete (tty->osem); rtems_semaphore_delete (tty->rawOutBuf.Semaphore); if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) rtems_semaphore_delete (tty->rawInBuf.Semaphore); 30003788: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED 3000378c: eb0003e9 bl 30004738 <== NOT EXECUTED 30003790: eafffff0 b 30003758 <== 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; 30003794: e5942004 ldr r2, [r4, #4] 30003798: e59f109c ldr r1, [pc, #156] ; 3000383c if ( rtems_termios_ttyTail != NULL ) { 3000379c: e3520000 cmp r2, #0 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; 300037a0: e5812000 str r2, [r1] if ( rtems_termios_ttyTail != NULL ) { 300037a4: 0a00001f beq 30003828 rtems_termios_ttyTail->forw = NULL; 300037a8: e5823000 str r3, [r2] <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 300037ac: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED 300037b0: e5943000 ldr r3, [r4] <== NOT EXECUTED 300037b4: e3520000 cmp r2, #0 <== NOT EXECUTED if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 300037b8: 15823000 strne r3, [r2] <== NOT EXECUTED } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 300037bc: 1affffd9 bne 30003728 <== NOT EXECUTED rtems_termios_ttyHead = tty->forw; 300037c0: e59f1078 ldr r1, [pc, #120] ; 30003840 if ( rtems_termios_ttyHead != NULL ) { 300037c4: e3530000 cmp r3, #0 } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 300037c8: e5813000 str r3, [r1] if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; 300037cc: 15832004 strne r2, [r3, #4] 300037d0: eaffffd4 b 30003728 } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 300037d4: e5940018 ldr r0, [r4, #24] 300037d8: e1a02001 mov r2, r1 300037dc: eb0003fe bl 300047dc if (sc != RTEMS_SUCCESSFUL) { 300037e0: e3500000 cmp r0, #0 300037e4: 1a00000e bne 30003824 rtems_fatal_error_occurred (sc); } drainOutput (tty); 300037e8: e1a00004 mov r0, r4 300037ec: ebfffdaa bl 30002e9c } if (tty->device.outputUsesInterrupts 300037f0: e59430b4 ldr r3, [r4, #180] ; 0xb4 300037f4: e3530002 cmp r3, #2 300037f8: 1affffba bne 300036e8 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 300037fc: e59400c4 ldr r0, [r4, #196] ; 0xc4 <== NOT EXECUTED 30003800: e3a01001 mov r1, #1 <== NOT EXECUTED 30003804: eb0002ce bl 30004344 <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 30003808: e3500000 cmp r0, #0 <== NOT EXECUTED 3000380c: 1a000004 bne 30003824 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 30003810: e59400c8 ldr r0, [r4, #200] ; 0xc8 <== NOT EXECUTED 30003814: e3a01001 mov r1, #1 <== NOT EXECUTED 30003818: eb0002c9 bl 30004344 <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 3000381c: e3500000 cmp r0, #0 <== NOT EXECUTED 30003820: 0affffb0 beq 300036e8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 30003824: eb00058c bl 30004e5c <== NOT EXECUTED } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 30003828: e59f3010 ldr r3, [pc, #16] ; 30003840 3000382c: e5832000 str r2, [r3] 30003830: eaffffbc b 30003728 30003834: 3001a88c .word 0x3001a88c 30003838: 3001a6b8 .word 0x3001a6b8 3000383c: 3001a890 .word 0x3001a890 30003840: 3001a894 .word 0x3001a894 30002318 : rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 30002318: e590c090 ldr ip, [r0, #144] ; 0x90 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 3000231c: e59020b4 ldr r2, [r0, #180] ; 0xb4 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 30002320: e08c1001 add r1, ip, r1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30002324: e3520002 cmp r2, #2 <== NOT EXECUTED * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { 30002328: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 3000232c: e5801090 str r1, [r0, #144] ; 0x90 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30002330: 0a00000b beq 30002364 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 30002334: e59030cc ldr r3, [r0, #204] ; 0xcc <== NOT EXECUTED 30002338: e3530005 cmp r3, #5 <== NOT EXECUTED 3000233c: 0a000001 beq 30002348 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 30002340: 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... */ } else { return rtems_termios_refill_transmitter(tty); 30002344: eaffff6f b 30002108 <== NOT EXECUTED } else if (tty->t_line == PPPDISC ) { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 30002348: e59f302c ldr r3, [pc, #44] ; 3000237c <== NOT EXECUTED 3000234c: e59330b4 ldr r3, [r3, #180] ; 0xb4 <== NOT EXECUTED 30002350: e3530000 cmp r3, #0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 30002354: 11a0e00f movne lr, pc <== NOT EXECUTED 30002358: 112fff13 bxne r3 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 3000235c: e3a00000 mov r0, #0 <== NOT EXECUTED 30002360: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 30002364: e59000c8 ldr r0, [r0, #200] ; 0xc8 <== NOT EXECUTED 30002368: e1a01002 mov r1, r2 <== NOT EXECUTED 3000236c: eb0007f4 bl 30004344 <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 30002370: e3500000 cmp r0, #0 <== NOT EXECUTED 30002374: 0afffff8 beq 3000235c <== NOT EXECUTED rtems_fatal_error_occurred (sc); 30002378: eb000ab7 bl 30004e5c <== NOT EXECUTED 3000237c: 3001a6b8 .word 0x3001a6b8 30002380 : * 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) { 30002380: e92d4ff0 push {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) { 30002384: e59030cc ldr r3, [r0, #204] ; 0xcc <== NOT EXECUTED 30002388: e59f82e8 ldr r8, [pc, #744] ; 30002678 <== 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) { 3000238c: e24dd00c sub sp, sp, #12 <== 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) { 30002390: e0883283 add r3, r8, r3, lsl #5 <== NOT EXECUTED 30002394: e5936010 ldr r6, [r3, #16] <== 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) { 30002398: e1a04000 mov r4, r0 <== 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) { 3000239c: e3560000 cmp r6, #0 <== 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) { 300023a0: e1a05001 mov r5, r1 <== NOT EXECUTED 300023a4: e1a07002 mov r7, r2 <== 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) { 300023a8: 0a00001e beq 30002428 <== NOT EXECUTED while (len--) { 300023ac: e3520000 cmp r2, #0 <== NOT EXECUTED 300023b0: 0a00000b beq 300023e4 <== NOT EXECUTED 300023b4: e3a0a000 mov sl, #0 <== NOT EXECUTED 300023b8: ea000002 b 300023c8 <== NOT EXECUTED 300023bc: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED 300023c0: e0883283 add r3, r8, r3, lsl #5 <== NOT EXECUTED 300023c4: e5936010 ldr r6, [r3, #16] <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 300023c8: e7d5000a ldrb r0, [r5, sl] <== NOT EXECUTED 300023cc: e1a01004 mov r1, r4 <== NOT EXECUTED 300023d0: e28aa001 add sl, sl, #1 <== NOT EXECUTED 300023d4: e1a0e00f mov lr, pc <== NOT EXECUTED 300023d8: e12fff16 bx r6 <== 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--) { 300023dc: e157000a cmp r7, sl <== NOT EXECUTED 300023e0: 1afffff5 bne 300023bc <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 300023e4: e59490e4 ldr r9, [r4, #228] ; 0xe4 <== NOT EXECUTED 300023e8: e3590000 cmp r9, #0 <== NOT EXECUTED 300023ec: 1a00000b bne 30002420 <== NOT EXECUTED 300023f0: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED 300023f4: e3530000 cmp r3, #0 <== NOT EXECUTED 300023f8: 0a000008 beq 30002420 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 300023fc: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 30002400: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED 30002404: e1a0e00f mov lr, pc <== NOT EXECUTED 30002408: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 3000240c: e3a03001 mov r3, #1 <== NOT EXECUTED 30002410: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; } 30002414: e1a00009 mov r0, r9 <== NOT EXECUTED 30002418: e28dd00c add sp, sp, #12 <== NOT EXECUTED 3000241c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 30002420: e3a09000 mov r9, #0 <== NOT EXECUTED 30002424: eafffffa b 30002414 <== 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, 30002428: e280304a add r3, r0, #74 ; 0x4a <== NOT EXECUTED 3000242c: e58d3008 str r3, [sp, #8] <== 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); 30002430: e2803030 add r3, r0, #48 ; 0x30 <== NOT EXECUTED 30002434: e58d3004 str r3, [sp, #4] <== NOT EXECUTED 30002438: e1a0b006 mov fp, r6 <== NOT EXECUTED 3000243c: e58d6000 str r6, [sp] <== NOT EXECUTED 30002440: ea000034 b 30002518 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 30002444: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED 30002448: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 3000244c: e2800001 add r0, r0, #1 <== NOT EXECUTED 30002450: eb00529a bl 30016ec0 <__umodsi3> <== NOT EXECUTED 30002454: e1a08000 mov r8, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30002458: e10f9000 mrs r9, CPSR <== NOT EXECUTED 3000245c: e3893080 orr r3, r9, #128 ; 0x80 <== NOT EXECUTED 30002460: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 30002464: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED 30002468: e5940064 ldr r0, [r4, #100] ; 0x64 <== NOT EXECUTED 3000246c: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 30002470: e0630000 rsb r0, r3, r0 <== NOT EXECUTED 30002474: e0800008 add r0, r0, r8 <== NOT EXECUTED 30002478: eb005290 bl 30016ec0 <__umodsi3> <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 3000247c: e59430c0 ldr r3, [r4, #192] ; 0xc0 <== NOT EXECUTED 30002480: e1500003 cmp r0, r3 <== NOT EXECUTED 30002484: 9a00000e bls 300024c4 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 30002488: 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) 3000248c: e3130001 tst r3, #1 <== NOT EXECUTED 30002490: 1a00000b bne 300024c4 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 30002494: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 30002498: e59f31dc ldr r3, [pc, #476] ; 3000267c <== NOT EXECUTED if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 3000249c: e3822001 orr r2, r2, #1 <== NOT EXECUTED 300024a0: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 300024a4: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED 300024a8: e0023003 and r3, r2, r3 <== NOT EXECUTED 300024ac: e3530b01 cmp r3, #1024 ; 0x400 <== NOT EXECUTED 300024b0: 0a000057 beq 30002614 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 300024b4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300024b8: e2033f41 and r3, r3, #260 ; 0x104 <== NOT EXECUTED 300024bc: e3530c01 cmp r3, #256 ; 0x100 <== NOT EXECUTED 300024c0: 0a000062 beq 30002650 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 300024c4: e129f009 msr CPSR_fc, r9 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { 300024c8: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED 300024cc: e1530008 cmp r3, r8 <== NOT EXECUTED 300024d0: 0a00002d beq 3000258c <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 300024d4: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED 300024d8: e7c3a008 strb sl, [r3, r8] <== 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 )) { 300024dc: e59430e4 ldr r3, [r4, #228] ; 0xe4 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; 300024e0: e5848060 str r8, [r4, #96] ; 0x60 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 300024e4: e3530000 cmp r3, #0 <== NOT EXECUTED 300024e8: 1a000008 bne 30002510 <== NOT EXECUTED 300024ec: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED 300024f0: e3530000 cmp r3, #0 <== NOT EXECUTED 300024f4: 0a000005 beq 30002510 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 300024f8: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED 300024fc: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED 30002500: e1a0e00f mov lr, pc <== NOT EXECUTED 30002504: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 30002508: e3a03001 mov r3, #1 <== NOT EXECUTED 3000250c: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED 30002510: e2866001 add r6, r6, #1 <== NOT EXECUTED 30002514: e2477001 sub r7, r7, #1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 30002518: e3570000 cmp r7, #0 <== NOT EXECUTED 3000251c: 0a00002d beq 300025d8 <== NOT EXECUTED c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 30002520: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 30002524: e7d5a006 ldrb sl, [r5, r6] <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 30002528: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED 3000252c: 0a000005 beq 30002548 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 30002530: e5d4304a ldrb r3, [r4, #74] ; 0x4a <== NOT EXECUTED 30002534: e153000a cmp r3, sl <== NOT EXECUTED 30002538: 0a000017 beq 3000259c <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 3000253c: e5d43049 ldrb r3, [r4, #73] ; 0x49 <== NOT EXECUTED 30002540: e153000a cmp r3, sl <== NOT EXECUTED 30002544: 0a00001e beq 300025c4 <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 30002548: e35b0000 cmp fp, #0 <== NOT EXECUTED 3000254c: 0affffbc beq 30002444 <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 30002550: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 30002554: e2033030 and r3, r3, #48 ; 0x30 <== NOT EXECUTED 30002558: e3530020 cmp r3, #32 <== NOT EXECUTED 3000255c: 1affffeb bne 30002510 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30002560: e10f8000 mrs r8, CPSR <== NOT EXECUTED 30002564: e3883080 orr r3, r8, #128 ; 0x80 <== NOT EXECUTED 30002568: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 3000256c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 30002570: e5942094 ldr r2, [r4, #148] ; 0x94 <== NOT EXECUTED if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 30002574: e3c33020 bic r3, r3, #32 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 30002578: e3520000 cmp r2, #0 <== NOT EXECUTED if (flow_rcv) { /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 3000257c: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 30002580: 1a00001b bne 300025f4 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002584: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED 30002588: eaffffe0 b 30002510 <== NOT EXECUTED } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { dropped++; 3000258c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30002590: e2833001 add r3, r3, #1 <== NOT EXECUTED 30002594: e58d3000 str r3, [sp] <== NOT EXECUTED 30002598: eaffffdc b 30002510 <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { /* 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]) { 3000259c: e5d42049 ldrb r2, [r4, #73] ; 0x49 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 300025a0: e3a0b001 mov fp, #1 <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { /* 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]) { 300025a4: e1520003 cmp r2, r3 <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 300025a8: 059430b8 ldreq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 300025ac: 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; 300025b0: 02233010 eoreq r3, r3, #16 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 300025b4: 13833010 orrne r3, r3, #16 <== 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; 300025b8: 058430b8 streq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 300025bc: 158430b8 strne r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300025c0: eaffffe2 b 30002550 <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 300025c4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 300025c8: e3a0b001 mov fp, #1 <== NOT EXECUTED flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 300025cc: e3c33010 bic r3, r3, #16 <== NOT EXECUTED 300025d0: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300025d4: eaffffdd b 30002550 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 300025d8: e5943078 ldr r3, [r4, #120] ; 0x78 <== NOT EXECUTED 300025dc: e59d9000 ldr r9, [sp] <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 300025e0: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 300025e4: e0833009 add r3, r3, r9 <== NOT EXECUTED 300025e8: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 300025ec: eb0008c2 bl 300048fc <== NOT EXECUTED return dropped; 300025f0: eaffff87 b 30002414 <== NOT EXECUTED 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)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); 300025f4: e5943084 ldr r3, [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)(tty->minor, 300025f8: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED 300025fc: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002600: e0811003 add r1, r1, r3 <== NOT EXECUTED 30002604: e3a02001 mov r2, #1 <== NOT EXECUTED 30002608: e1a0e00f mov lr, pc <== NOT EXECUTED 3000260c: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED 30002610: eaffffdb b 30002584 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 30002614: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 30002618: e3130020 tst r3, #32 <== NOT EXECUTED 3000261c: 1a000002 bne 3000262c <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 30002620: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED 30002624: e3530000 cmp r3, #0 <== NOT EXECUTED 30002628: 1affffa5 bne 300024c4 <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; 3000262c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED (*tty->device.write)(tty->minor, 30002630: e5940010 ldr r0, [r4, #16] <== 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; 30002634: e3833002 orr r3, r3, #2 <== NOT EXECUTED 30002638: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED (*tty->device.write)(tty->minor, 3000263c: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED 30002640: e3a02001 mov r2, #1 <== NOT EXECUTED 30002644: e1a0e00f mov lr, pc <== NOT EXECUTED 30002648: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED 3000264c: eaffff9c b 300024c4 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 30002650: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 30002654: e59430ac ldr r3, [r4, #172] ; 0xac <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 30002658: e3822004 orr r2, r2, #4 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 3000265c: e3530000 cmp r3, #0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 30002660: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 30002664: 0affff96 beq 300024c4 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); 30002668: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 3000266c: e1a0e00f mov lr, pc <== NOT EXECUTED 30002670: e12fff13 bx r3 <== NOT EXECUTED 30002674: eaffff92 b 300024c4 <== NOT EXECUTED 30002678: 3001a6b8 .word 0x3001a6b8 3000267c: 00000402 .word 0x00000402 300020a0 : struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 300020a0: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 300020a4: e59fc034 ldr ip, [pc, #52] ; 300020e0 struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { 300020a8: e24dd004 sub sp, sp, #4 rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { 300020ac: e59c3000 ldr r3, [ip] 300020b0: e3530000 cmp r3, #0 300020b4: 0a000001 beq 300020c0 RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } 300020b8: e28dd004 add sp, sp, #4 300020bc: e8bd8000 pop {pc} /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { sc = rtems_semaphore_create ( 300020c0: e59f001c ldr r0, [pc, #28] ; 300020e4 300020c4: e3a01001 mov r1, #1 300020c8: e3a02054 mov r2, #84 ; 0x54 300020cc: e58dc000 str ip, [sp] 300020d0: eb000926 bl 30004570 rtems_build_name ('T', 'R', 'm', 'i'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) 300020d4: e3500000 cmp r0, #0 300020d8: 0afffff6 beq 300020b8 rtems_fatal_error_occurred (sc); 300020dc: eb000b5e bl 30004e5c <== NOT EXECUTED 300020e0: 3001a88c .word 0x3001a88c 300020e4: 54526d69 .word 0x54526d69 300032a8 : rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 300032a8: e5903000 ldr r3, [r0] } } rtems_status_code rtems_termios_ioctl (void *arg) { 300032ac: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 300032b0: e3a01000 mov r1, #0 rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 300032b4: e5935034 ldr r5, [r3, #52] ; 0x34 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 300032b8: e580100c str r1, [r0, #12] } } rtems_status_code rtems_termios_ioctl (void *arg) { 300032bc: e1a04000 mov r4, r0 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); 300032c0: e1a02001 mov r2, r1 300032c4: e5950018 ldr r0, [r5, #24] 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; 300032c8: e5947008 ldr r7, [r4, #8] rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 300032cc: eb000542 bl 300047dc if (sc != RTEMS_SUCCESSFUL) { 300032d0: e2506000 subs r6, r0, #0 300032d4: 1a00000e bne 30003314 args->ioctl_return = sc; return sc; } switch (args->command) { 300032d8: e5943004 ldr r3, [r4, #4] 300032dc: e3530004 cmp r3, #4 300032e0: 0a000006 beq 30003300 300032e4: 8a00000d bhi 30003320 300032e8: e3530002 cmp r3, #2 300032ec: 0a00001e beq 3000336c 300032f0: 9a000085 bls 3000350c if (tty->device.setAttributes) (*tty->device.setAttributes)(tty->minor, &tty->termios); break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 300032f4: e1a00005 mov r0, r5 300032f8: ebfffee7 bl 30002e9c break; 300032fc: ea000002 b 3000330c case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; break; case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 30003300: e897000c ldm r7, {r2, r3} <== NOT EXECUTED 30003304: e58520dc str r2, [r5, #220] ; 0xdc <== NOT EXECUTED 30003308: e58530e0 str r3, [r5, #224] ; 0xe0 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; } break; } rtems_semaphore_release (tty->osem); 3000330c: e5950018 ldr r0, [r5, #24] 30003310: eb000579 bl 300048fc args->ioctl_return = sc; 30003314: e584600c str r6, [r4, #12] return sc; } 30003318: e1a00006 mov r0, r6 3000331c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 30003320: e59f2340 ldr r2, [pc, #832] ; 30003668 <== NOT EXECUTED 30003324: e1530002 cmp r3, r2 <== NOT EXECUTED 30003328: 0a00006b beq 300034dc <== NOT EXECUTED 3000332c: 8a000082 bhi 3000353c <== NOT EXECUTED 30003330: e3530005 cmp r3, #5 <== NOT EXECUTED 30003334: 0a0000a1 beq 300035c0 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 30003338: e59520cc ldr r2, [r5, #204] ; 0xcc <== NOT EXECUTED 3000333c: e59f3328 ldr r3, [pc, #808] ; 3000366c <== NOT EXECUTED 30003340: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 30003344: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 30003348: e3530000 cmp r3, #0 <== NOT EXECUTED 3000334c: 03a0600a moveq r6, #10 <== NOT EXECUTED 30003350: 0affffed beq 3000330c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 30003354: e1a00005 mov r0, r5 <== NOT EXECUTED 30003358: e1a01004 mov r1, r4 <== NOT EXECUTED 3000335c: e1a0e00f mov lr, pc <== NOT EXECUTED 30003360: e12fff13 bx r3 <== NOT EXECUTED 30003364: e1a06000 mov r6, r0 <== NOT EXECUTED 30003368: eaffffe7 b 3000330c <== NOT EXECUTED case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 3000336c: e594e008 ldr lr, [r4, #8] 30003370: e2857030 add r7, r5, #48 ; 0x30 30003374: e1a0c007 mov ip, r7 30003378: e8be000f ldm lr!, {r0, r1, r2, r3} 3000337c: e8ac000f stmia ip!, {r0, r1, r2, r3} 30003380: e8be000f ldm lr!, {r0, r1, r2, r3} 30003384: e8ac000f stmia ip!, {r0, r1, r2, r3} /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 30003388: e59520b8 ldr r2, [r5, #184] ; 0xb8 case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 3000338c: e59e3000 ldr r3, [lr] /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 30003390: e3120c02 tst r2, #512 ; 0x200 case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; break; case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 30003394: e58c3000 str r3, [ip] /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && 30003398: 0a000012 beq 300033e8 3000339c: e5953030 ldr r3, [r5, #48] ; 0x30 300033a0: e3130b01 tst r3, #1024 ; 0x400 300033a4: 1a00000f bne 300033e8 !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 300033a8: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 300033ac: e3c33e21 bic r3, r3, #528 ; 0x210 <== NOT EXECUTED 300033b0: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 300033b4: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 300033b8: e3130020 tst r3, #32 <== NOT EXECUTED 300033bc: 0a000009 beq 300033e8 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300033c0: e10f8000 mrs r8, CPSR <== NOT EXECUTED 300033c4: e3883080 orr r3, r8, #128 ; 0x80 <== NOT EXECUTED 300033c8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 300033cc: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300033d0: e5952094 ldr r2, [r5, #148] ; 0x94 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 300033d4: e3c33020 bic r3, r3, #32 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300033d8: e3520000 cmp r2, #0 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 300033dc: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300033e0: 1a000098 bne 30003648 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 300033e4: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 300033e8: e59530b8 ldr r3, [r5, #184] ; 0xb8 300033ec: e3130b01 tst r3, #1024 ; 0x400 300033f0: 0a000008 beq 30003418 300033f4: e5953030 ldr r3, [r5, #48] ; 0x30 <== NOT EXECUTED 300033f8: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED 300033fc: 1a000005 bne 30003418 <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 30003400: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 30003404: e3c33b01 bic r3, r3, #1024 ; 0x400 <== NOT EXECUTED 30003408: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 3000340c: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 30003410: e3c33002 bic r3, r3, #2 <== NOT EXECUTED 30003414: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 30003418: e59530b8 ldr r3, [r5, #184] ; 0xb8 3000341c: e3130c01 tst r3, #256 ; 0x100 30003420: 05952038 ldreq r2, [r5, #56] ; 0x38 30003424: 0a000012 beq 30003474 30003428: e5952038 ldr r2, [r5, #56] ; 0x38 <== NOT EXECUTED 3000342c: e3520000 cmp r2, #0 <== NOT EXECUTED 30003430: ba000078 blt 30003618 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 30003434: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 30003438: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED 3000343c: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 30003440: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 30003444: e3130004 tst r3, #4 <== NOT EXECUTED 30003448: 0a000006 beq 30003468 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 3000344c: e59530b0 ldr r3, [r5, #176] ; 0xb0 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 30003450: e3530000 cmp r3, #0 <== NOT EXECUTED 30003454: 0a000003 beq 30003468 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 30003458: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 3000345c: e1a0e00f mov lr, pc <== NOT EXECUTED 30003460: e12fff13 bx r3 <== NOT EXECUTED 30003464: e5952038 ldr r2, [r5, #56] ; 0x38 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 30003468: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 3000346c: e3c33004 bic r3, r3, #4 <== NOT EXECUTED 30003470: e58530b8 str r3, [r5, #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) { 30003474: e3520000 cmp r2, #0 30003478: ba000066 blt 30003618 tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 3000347c: e5953030 ldr r3, [r5, #48] ; 0x30 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) { 30003480: e595803c ldr r8, [r5, #60] ; 0x3c /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { tty->flow_ctrl |= FL_MDRTS; } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 30003484: e3130a01 tst r3, #4096 ; 0x1000 tty->flow_ctrl |= FL_MDXOF; 30003488: 159520b8 ldrne r2, [r5, #184] ; 0xb8 3000348c: 13822b01 orrne r2, r2, #1024 ; 0x400 30003490: 158520b8 strne r2, [r5, #184] ; 0xb8 } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 30003494: e3130b01 tst r3, #1024 ; 0x400 tty->flow_ctrl |= FL_MDXON; 30003498: 159530b8 ldrne r3, [r5, #184] ; 0xb8 3000349c: 13833c02 orrne r3, r3, #512 ; 0x200 300034a0: 158530b8 strne r3, [r5, #184] ; 0xb8 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) { 300034a4: e2188002 ands r8, r8, #2 300034a8: 0a000048 beq 300035d0 tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 300034ac: e3a03000 mov r3, #0 tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 300034b0: e5853074 str r3, [r5, #116] ; 0x74 /* check for and process change in flow control options */ termios_set_flowctrl(tty); if (tty->termios.c_lflag & ICANON) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 300034b4: e585306c str r3, [r5, #108] ; 0x6c tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 300034b8: e5853070 str r3, [r5, #112] ; 0x70 else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 300034bc: e59530a8 ldr r3, [r5, #168] ; 0xa8 300034c0: e3530000 cmp r3, #0 300034c4: 0affff90 beq 3000330c (*tty->device.setAttributes)(tty->minor, &tty->termios); 300034c8: e1a01007 mov r1, r7 300034cc: e5950010 ldr r0, [r5, #16] 300034d0: e1a0e00f mov lr, pc 300034d4: e12fff13 bx r3 300034d8: eaffff8b b 3000330c *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 300034dc: e5952060 ldr r2, [r5, #96] ; 0x60 <== NOT EXECUTED 300034e0: e595305c ldr r3, [r5, #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; 300034e4: e5950020 ldr r0, [r5, #32] <== NOT EXECUTED break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) 300034e8: e0523003 subs r3, r2, r3 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 300034ec: 45952064 ldrmi r2, [r5, #100] ; 0x64 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 300034f0: e5941008 ldr r1, [r4, #8] <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; 300034f4: 40833002 addmi r3, r3, r2 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 300034f8: e5952024 ldr r2, [r5, #36] ; 0x24 <== NOT EXECUTED 300034fc: e0622000 rsb r2, r2, r0 <== NOT EXECUTED 30003500: e0823003 add r3, r2, r3 <== NOT EXECUTED 30003504: e5813000 str r3, [r1] <== NOT EXECUTED 30003508: eaffff7f b 3000330c <== 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) { 3000350c: e3530001 cmp r3, #1 30003510: 1affff88 bne 30003338 sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 30003514: e5947008 ldr r7, [r4, #8] 30003518: e285c030 add ip, r5, #48 ; 0x30 3000351c: e1a0e007 mov lr, r7 30003520: e8bc000f ldm ip!, {r0, r1, r2, r3} 30003524: e8ae000f stmia lr!, {r0, r1, r2, r3} 30003528: e8bc000f ldm ip!, {r0, r1, r2, r3} 3000352c: e8ae000f stmia lr!, {r0, r1, r2, r3} 30003530: e59c3000 ldr r3, [ip] 30003534: e58e3000 str r3, [lr] break; 30003538: eaffff73 b 3000330c sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 3000353c: e59f212c ldr r2, [pc, #300] ; 30003670 <== NOT EXECUTED 30003540: e1530002 cmp r3, r2 <== NOT EXECUTED 30003544: 0a000019 beq 300035b0 <== NOT EXECUTED 30003548: e2822105 add r2, r2, #1073741825 ; 0x40000001 <== NOT EXECUTED 3000354c: e1530002 cmp r3, r2 <== NOT EXECUTED 30003550: 1affff78 bne 30003338 <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 30003554: e59f7110 ldr r7, [pc, #272] ; 3000366c <== NOT EXECUTED 30003558: e59530cc ldr r3, [r5, #204] ; 0xcc <== NOT EXECUTED 3000355c: e0873283 add r3, r7, r3, lsl #5 <== NOT EXECUTED 30003560: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 30003564: e3530000 cmp r3, #0 <== NOT EXECUTED 30003568: 0a000003 beq 3000357c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 3000356c: e1a00005 mov r0, r5 <== NOT EXECUTED 30003570: e1a0e00f mov lr, pc <== NOT EXECUTED 30003574: e12fff13 bx r3 <== NOT EXECUTED 30003578: e1a06000 mov r6, r0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 3000357c: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 30003580: e5932000 ldr r2, [r3] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ 30003584: e3a03000 mov r3, #0 <== NOT EXECUTED 30003588: e58530d0 str r3, [r5, #208] ; 0xd0 <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 3000358c: e7973282 ldr r3, [r7, r2, lsl #5] <== 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); 30003590: e58520cc str r2, [r5, #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) { 30003594: e3530000 cmp r3, #0 <== NOT EXECUTED 30003598: 0affff5b beq 3000330c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 3000359c: e1a00005 mov r0, r5 <== NOT EXECUTED 300035a0: e1a0e00f mov lr, pc <== NOT EXECUTED 300035a4: e12fff13 bx r3 <== NOT EXECUTED 300035a8: e1a06000 mov r6, r0 <== NOT EXECUTED 300035ac: eaffff56 b 3000330c <== NOT EXECUTED } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 300035b0: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 300035b4: e59520cc ldr r2, [r5, #204] ; 0xcc <== NOT EXECUTED 300035b8: e5832000 str r2, [r3] <== NOT EXECUTED break; 300035bc: eaffff52 b 3000330c <== NOT EXECUTED case RTEMS_IO_TCDRAIN: drainOutput (tty); break; case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 300035c0: e897000c ldm r7, {r2, r3} <== NOT EXECUTED 300035c4: e58520d4 str r2, [r5, #212] ; 0xd4 <== NOT EXECUTED 300035c8: e58530d8 str r3, [r5, #216] ; 0xd8 <== NOT EXECUTED break; 300035cc: eaffff4e b 3000330c <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; 300035d0: e5d5a046 ldrb sl, [r5, #70] ; 0x46 <== NOT EXECUTED 300035d4: eb0002d4 bl 3000412c <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 300035d8: e000009a mul r0, sl, r0 <== NOT EXECUTED 300035dc: e59f1090 ldr r1, [pc, #144] ; 30003674 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 300035e0: e5d52046 ldrb r2, [r5, #70] ; 0x46 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 300035e4: e083c091 umull ip, r3, r1, r0 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 300035e8: e3520000 cmp r2, #0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 300035ec: e1a031a3 lsr r3, r3, #3 <== NOT EXECUTED 300035f0: e5853054 str r3, [r5, #84] ; 0x54 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 300035f4: 0a00000b beq 30003628 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) 300035f8: e5d52047 ldrb r2, [r5, #71] ; 0x47 <== 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; 300035fc: e585806c str r8, [r5, #108] ; 0x6c <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 30003600: e3520000 cmp r2, #0 <== NOT EXECUTED 30003604: 01a02003 moveq r2, r3 <== NOT EXECUTED 30003608: 13a02000 movne r2, #0 <== NOT EXECUTED 3000360c: e5852074 str r2, [r5, #116] ; 0x74 <== 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; 30003610: e5853070 str r3, [r5, #112] ; 0x70 <== NOT EXECUTED 30003614: eaffffa8 b 300034bc <== 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) { tty->flow_ctrl |= FL_MDRTS; 30003618: e59530b8 ldr r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 3000361c: e3833c01 orr r3, r3, #256 ; 0x100 <== NOT EXECUTED 30003620: e58530b8 str r3, [r5, #184] ; 0xb8 <== NOT EXECUTED 30003624: eaffff94 b 3000347c <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 30003628: e5d53047 ldrb r3, [r5, #71] ; 0x47 <== NOT EXECUTED 3000362c: e3530000 cmp r3, #0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 30003630: 03a03001 moveq r3, #1 <== NOT EXECUTED } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 30003634: 15852074 strne r2, [r5, #116] ; 0x74 <== NOT EXECUTED else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 30003638: 1585206c strne r2, [r5, #108] ; 0x6c <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 3000363c: 15852070 strne r2, [r5, #112] ; 0x70 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 30003640: 0585306c streq r3, [r5, #108] ; 0x6c <== NOT EXECUTED 30003644: eaffff9c b 300034bc <== NOT EXECUTED 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)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 30003648: e5953084 ldr r3, [r5, #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)(tty->minor, 3000364c: e595107c ldr r1, [r5, #124] ; 0x7c <== NOT EXECUTED 30003650: e5950010 ldr r0, [r5, #16] <== NOT EXECUTED 30003654: e0811003 add r1, r1, r3 <== NOT EXECUTED 30003658: e3a02001 mov r2, #1 <== NOT EXECUTED 3000365c: e1a0e00f mov lr, pc <== NOT EXECUTED 30003660: e595f0a4 ldr pc, [r5, #164] ; 0xa4 <== NOT EXECUTED 30003664: eaffff5e b 300033e4 <== NOT EXECUTED 30003668: 4004667f .word 0x4004667f 3000366c: 3001a6b8 .word 0x3001a6b8 30003670: 4004741a .word 0x4004741a 30003674: cccccccd .word 0xcccccccd 30003844 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003844: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 30003848: e59f7460 ldr r7, [pc, #1120] ; 30003cb0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 3000384c: e1a06001 mov r6, r1 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 30003850: e3a01000 mov r1, #0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003854: e24dd010 sub sp, sp, #16 30003858: e1a05000 mov r5, r0 3000385c: e1a08002 mov r8, r2 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 30003860: e5970000 ldr r0, [r7] 30003864: e1a02001 mov r2, r1 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003868: e1a09003 mov r9, r3 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 3000386c: eb0003da bl 300047dc RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 30003870: e250a000 subs sl, r0, #0 30003874: 1a000020 bne 300038fc return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 30003878: e59fb434 ldr fp, [pc, #1076] ; 30003cb4 3000387c: e59b4000 ldr r4, [fp] 30003880: e3540000 cmp r4, #0 30003884: 1a000003 bne 30003898 30003888: ea00002b b 3000393c 3000388c: e5944000 ldr r4, [r4] 30003890: e3540000 cmp r4, #0 30003894: 0a000028 beq 3000393c if ((tty->major == major) && (tty->minor == minor)) 30003898: e594300c ldr r3, [r4, #12] 3000389c: e1530005 cmp r3, r5 300038a0: 1afffff9 bne 3000388c 300038a4: e5943010 ldr r3, [r4, #16] 300038a8: e1530006 cmp r3, r6 300038ac: 1afffff6 bne 3000388c if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; if (!tty->refcount++) { 300038b0: e5943008 ldr r3, [r4, #8] */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 300038b4: e5982000 ldr r2, [r8] if (!tty->refcount++) { 300038b8: e3530000 cmp r3, #0 300038bc: e2833001 add r3, r3, #1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 300038c0: e5824034 str r4, [r2, #52] ; 0x34 if (!tty->refcount++) { 300038c4: e5843008 str r3, [r4, #8] 300038c8: 1a000009 bne 300038f4 if (tty->device.firstOpen) 300038cc: e5943098 ldr r3, [r4, #152] ; 0x98 300038d0: e3530000 cmp r3, #0 (*tty->device.firstOpen)(major, minor, arg); 300038d4: 11a00005 movne r0, r5 300038d8: 11a01006 movne r1, r6 300038dc: 11a02008 movne r2, r8 300038e0: 11a0e00f movne lr, pc 300038e4: 112fff13 bxne r3 /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 300038e8: e59430b4 ldr r3, [r4, #180] ; 0xb4 300038ec: e3530002 cmp r3, #2 300038f0: 0a000004 beq 30003908 (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } } rtems_semaphore_release (rtems_termios_ttyMutex); 300038f4: e5970000 ldr r0, [r7] 300038f8: eb0003ff bl 300048fc return RTEMS_SUCCESSFUL; } 300038fc: e1a0000a mov r0, sl 30003900: e28dd010 add sp, sp, #16 30003904: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} (*tty->device.firstOpen)(major, minor, arg); /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_start(tty->rxTaskId, 30003908: e59400c4 ldr r0, [r4, #196] ; 0xc4 <== NOT EXECUTED 3000390c: e59f13a4 ldr r1, [pc, #932] ; 30003cb8 <== NOT EXECUTED 30003910: e1a02004 mov r2, r4 <== NOT EXECUTED 30003914: eb0004c9 bl 30004c40 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 30003918: e3500000 cmp r0, #0 <== NOT EXECUTED 3000391c: 1a0000c7 bne 30003c40 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 30003920: e1a02004 mov r2, r4 <== NOT EXECUTED 30003924: e59400c8 ldr r0, [r4, #200] ; 0xc8 <== NOT EXECUTED 30003928: e59f138c ldr r1, [pc, #908] ; 30003cbc <== NOT EXECUTED 3000392c: eb0004c3 bl 30004c40 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 30003930: e3500000 cmp r0, #0 <== NOT EXECUTED 30003934: 0affffee beq 300038f4 <== NOT EXECUTED 30003938: ea0000c0 b 30003c40 <== NOT EXECUTED static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 3000393c: e3a00001 mov r0, #1 30003940: e3a010e8 mov r1, #232 ; 0xe8 30003944: eb0015b9 bl 30009030 if (tty == NULL) { 30003948: e3500000 cmp r0, #0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 3000394c: e58d0008 str r0, [sp, #8] 30003950: e1a04000 mov r4, r0 if (tty == NULL) { 30003954: 0a0000a5 beq 30003bf0 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 30003958: e59f1360 ldr r1, [pc, #864] ; 30003cc0 3000395c: e59d2008 ldr r2, [sp, #8] 30003960: e5913004 ldr r3, [r1, #4] 30003964: e5823064 str r3, [r2, #100] ; 0x64 tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 30003968: e5920064 ldr r0, [r2, #100] ; 0x64 3000396c: eb001748 bl 30009694 30003970: e59d3008 ldr r3, [sp, #8] if (tty->rawInBuf.theBuf == NULL) { 30003974: e3500000 cmp r0, #0 } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 30003978: e5830058 str r0, [r3, #88] ; 0x58 if (tty->rawInBuf.theBuf == NULL) { 3000397c: 0a00009f beq 30003c00 return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 30003980: e59fc338 ldr ip, [pc, #824] ; 30003cc0 30003984: e59de008 ldr lr, [sp, #8] 30003988: e59c3008 ldr r3, [ip, #8] 3000398c: e58e3088 str r3, [lr, #136] ; 0x88 tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 30003990: e59e0088 ldr r0, [lr, #136] ; 0x88 30003994: eb00173e bl 30009694 30003998: e59d1008 ldr r1, [sp, #8] if (tty->rawOutBuf.theBuf == NULL) { 3000399c: e3500000 cmp r0, #0 } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 300039a0: e581007c str r0, [r1, #124] ; 0x7c if (tty->rawOutBuf.theBuf == NULL) { free((void *)(tty->rawInBuf.theBuf)); 300039a4: 05910058 ldreq r0, [r1, #88] ; 0x58 /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); if (tty->rawOutBuf.theBuf == NULL) { 300039a8: 0a00008d beq 30003be4 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 300039ac: e59f230c ldr r2, [pc, #780] ; 30003cc0 300039b0: e5920000 ldr r0, [r2] 300039b4: eb001736 bl 30009694 300039b8: e59d3008 ldr r3, [sp, #8] if (tty->cbuf == NULL) { 300039bc: e3500000 cmp r0, #0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 300039c0: e583001c str r0, [r3, #28] if (tty->cbuf == NULL) { 300039c4: 0a000082 beq 30003bd4 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; 300039c8: e59de008 ldr lr, [sp, #8] tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 300039cc: e59b2000 ldr r2, [fp] return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 300039d0: e3a03000 mov r3, #0 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; 300039d4: e58e3004 str r3, [lr, #4] return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 300039d8: e58e30d4 str r3, [lr, #212] ; 0xd4 tty->tty_snd.sw_arg = NULL; 300039dc: e58e30d8 str r3, [lr, #216] ; 0xd8 tty->tty_rcv.sw_pfn = NULL; 300039e0: e58e30dc str r3, [lr, #220] ; 0xdc tty->tty_rcv.sw_arg = NULL; 300039e4: e58e30e0 str r3, [lr, #224] ; 0xe0 tty->tty_rcvwakeup = 0; 300039e8: e58e30e4 str r3, [lr, #228] ; 0xe4 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) 300039ec: e1520003 cmp r2, r3 rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 300039f0: e59f32cc ldr r3, [pc, #716] ; 30003cc4 tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 300039f4: e58e2000 str r2, [lr] tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; 300039f8: 1582e004 strne lr, [r2, #4] rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 300039fc: e5932000 ldr r2, [r3] */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 30003a00: e59d1008 ldr r1, [sp, #8] if (rtems_termios_ttyTail == NULL) 30003a04: e3520000 cmp r2, #0 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003a08: e59f22b0 ldr r2, [pc, #688] ; 30003cc0 30003a0c: e59de008 ldr lr, [sp, #8] tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; 30003a10: 05831000 streq r1, [r3] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003a14: e59f02ac ldr r0, [pc, #684] ; 30003cc8 30003a18: e5d2300c ldrb r3, [r2, #12] 30003a1c: e28ec014 add ip, lr, #20 */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 30003a20: e58b1000 str r1, [fp] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003a24: e1830000 orr r0, r3, r0 30003a28: e58dc000 str ip, [sp] 30003a2c: e3a03000 mov r3, #0 30003a30: e3a01001 mov r1, #1 30003a34: e3a02054 mov r2, #84 ; 0x54 rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; 30003a38: e58e6010 str r6, [lr, #16] tty->major = major; 30003a3c: e58e500c str r5, [lr, #12] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003a40: eb0002ca bl 30004570 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) 30003a44: e2503000 subs r3, r0, #0 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003a48: e59fb270 ldr fp, [pc, #624] ; 30003cc0 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) 30003a4c: 1a00007b bne 30003c40 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 30003a50: e5db200c ldrb r2, [fp, #12] 30003a54: e59d1008 ldr r1, [sp, #8] 30003a58: e59f026c ldr r0, [pc, #620] ; 30003ccc 30003a5c: e281c018 add ip, r1, #24 30003a60: e1820000 orr r0, r2, r0 30003a64: e3a01001 mov r1, #1 30003a68: e3a02054 mov r2, #84 ; 0x54 30003a6c: e58dc000 str ip, [sp] 30003a70: eb0002be bl 30004570 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) 30003a74: e2501000 subs r1, r0, #0 30003a78: 1a000070 bne 30003c40 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 30003a7c: e5db300c ldrb r3, [fp, #12] 30003a80: e59d2008 ldr r2, [sp, #8] 30003a84: e59f0244 ldr r0, [pc, #580] ; 30003cd0 30003a88: e282c08c add ip, r2, #140 ; 0x8c 30003a8c: e1830000 orr r0, r3, r0 30003a90: e3a02020 mov r2, #32 30003a94: e1a03001 mov r3, r1 30003a98: e58dc000 str ip, [sp] 30003a9c: eb0002b3 bl 30004570 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 30003aa0: e2503000 subs r3, r0, #0 30003aa4: e58d300c str r3, [sp, #12] 30003aa8: 1a000064 bne 30003c40 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; 30003aac: e59dc008 ldr ip, [sp, #8] 30003ab0: e28ce098 add lr, ip, #152 ; 0x98 30003ab4: e1a0c009 mov ip, r9 30003ab8: e8bc000f ldm ip!, {r0, r1, r2, r3} 30003abc: e8ae000f stmia lr!, {r0, r1, r2, r3} 30003ac0: e89c000f ldm ip, {r0, r1, r2, r3} 30003ac4: e88e000f stm lr, {r0, r1, r2, r3} /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30003ac8: e59de008 ldr lr, [sp, #8] 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; 30003acc: e59d100c ldr r1, [sp, #12] tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30003ad0: e59e30b4 ldr r3, [lr, #180] ; 0xb4 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; 30003ad4: e58e1094 str r1, [lr, #148] ; 0x94 tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30003ad8: e3530002 cmp r3, #2 30003adc: 0a000058 beq 30003c44 &tty->rxTaskId); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 30003ae0: e59d2008 ldr r2, [sp, #8] 30003ae4: e59230a0 ldr r3, [r2, #160] ; 0xa0 30003ae8: e3530000 cmp r3, #0 30003aec: 0a000046 beq 30003c0c (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 30003af0: e59230b4 ldr r3, [r2, #180] ; 0xb4 30003af4: e3530002 cmp r3, #2 30003af8: 0a000043 beq 30003c0c 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; 30003afc: e59d1008 ldr r1, [sp, #8] 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'; 30003b00: e3a03000 mov r3, #0 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; 30003b04: e58130b8 str r3, [r1, #184] ; 0xb8 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 30003b08: e59fc1b0 ldr ip, [pc, #432] ; 30003cc0 /* 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; 30003b0c: e5910064 ldr r0, [r1, #100] ; 0x64 tty->highwater = tty->rawInBuf.Size * 3/4; 30003b10: e5911064 ldr r1, [r1, #100] ; 0x64 /* * Bump name characer */ if (c++ == 'z') 30003b14: e5dc200c ldrb r2, [ip, #12] 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; 30003b18: e59de008 ldr lr, [sp, #8] 30003b1c: e0811081 add r1, r1, r1, lsl #1 /* * Bump name characer */ if (c++ == 'z') 30003b20: e352007a cmp r2, #122 ; 0x7a 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; 30003b24: e1a01121 lsr r1, r1, #2 /* * Bump name characer */ if (c++ == 'z') 30003b28: e2822001 add r2, r2, #1 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; 30003b2c: e58e10c0 str r1, [lr, #192] ; 0xc0 /* * Bump name characer */ if (c++ == 'z') 30003b30: e5cc200c strb r2, [ip, #12] } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 30003b34: e59f2198 ldr r2, [pc, #408] ; 30003cd4 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'; 30003b38: e5ce304c strb r3, [lr, #76] ; 0x4c } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 30003b3c: e58e2030 str r2, [lr, #48] ; 0x30 tty->termios.c_oflag = OPOST | ONLCR | XTABS; 30003b40: e59f2190 ldr r2, [pc, #400] ; 30003cd8 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'; tty->termios.c_cc[VEOL2] = '\000'; 30003b44: e5ce3051 strb r3, [lr, #81] ; 0x51 /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 30003b48: e58e2034 str r2, [lr, #52] ; 0x34 tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 30003b4c: e59f2188 ldr r2, [pc, #392] ; 30003cdc /* 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; 30003b50: e1a000a0 lsr r0, r0, #1 /* * 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; 30003b54: e58e2038 str r2, [lr, #56] ; 0x38 tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 30003b58: e59f2180 ldr r2, [pc, #384] ; 30003ce0 tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; 30003b5c: 01a0300c moveq r3, ip * 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 = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 30003b60: e58e203c str r2, [lr, #60] ; 0x3c tty->termios.c_cc[VINTR] = '\003'; 30003b64: e3a02003 mov r2, #3 30003b68: e5ce2041 strb r2, [lr, #65] ; 0x41 tty->termios.c_cc[VQUIT] = '\034'; 30003b6c: e3a0201c mov r2, #28 30003b70: e5ce2042 strb r2, [lr, #66] ; 0x42 tty->termios.c_cc[VERASE] = '\177'; 30003b74: e3a0207f mov r2, #127 ; 0x7f 30003b78: e5ce2043 strb r2, [lr, #67] ; 0x43 tty->termios.c_cc[VKILL] = '\025'; 30003b7c: e3a02015 mov r2, #21 30003b80: e5ce2044 strb r2, [lr, #68] ; 0x44 tty->termios.c_cc[VEOF] = '\004'; 30003b84: e3a02004 mov r2, #4 30003b88: e5ce2045 strb r2, [lr, #69] ; 0x45 tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 30003b8c: e3a02011 mov r2, #17 30003b90: e5ce2049 strb r2, [lr, #73] ; 0x49 tty->termios.c_cc[VSTOP] = '\023'; 30003b94: e3a02013 mov r2, #19 30003b98: e5ce204a strb r2, [lr, #74] ; 0x4a tty->termios.c_cc[VSUSP] = '\032'; 30003b9c: e3a0201a mov r2, #26 30003ba0: e5ce204b strb r2, [lr, #75] ; 0x4b tty->termios.c_cc[VREPRINT] = '\022'; 30003ba4: e3a02012 mov r2, #18 30003ba8: e5ce204d strb r2, [lr, #77] ; 0x4d tty->termios.c_cc[VDISCARD] = '\017'; 30003bac: e3a0200f mov r2, #15 30003bb0: e5ce204e strb r2, [lr, #78] ; 0x4e tty->termios.c_cc[VWERASE] = '\027'; 30003bb4: e3a02017 mov r2, #23 30003bb8: e5ce204f strb r2, [lr, #79] ; 0x4f tty->termios.c_cc[VLNEXT] = '\026'; 30003bbc: e3a02016 mov r2, #22 30003bc0: e5ce2050 strb r2, [lr, #80] ; 0x50 tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; 30003bc4: 0282204b addeq r2, r2, #75 ; 0x4b /* 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; 30003bc8: e58e00bc str r0, [lr, #188] ; 0xbc tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') c = 'a'; 30003bcc: 05c3200c strbeq r2, [r3, #12] 30003bd0: eaffff36 b 300038b0 /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); if (tty->cbuf == NULL) { free((void *)(tty->rawOutBuf.theBuf)); 30003bd4: e593007c ldr r0, [r3, #124] ; 0x7c <== NOT EXECUTED 30003bd8: eb00154f bl 3000911c <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 30003bdc: e59dc008 ldr ip, [sp, #8] <== NOT EXECUTED 30003be0: e59c0058 ldr r0, [ip, #88] ; 0x58 <== NOT EXECUTED 30003be4: eb00154c bl 3000911c <== NOT EXECUTED free(tty); 30003be8: e59d0008 ldr r0, [sp, #8] <== NOT EXECUTED 30003bec: eb00154a bl 3000911c <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 30003bf0: e5970000 ldr r0, [r7] <== NOT EXECUTED 30003bf4: eb000340 bl 300048fc <== NOT EXECUTED 30003bf8: e3a0a01a mov sl, #26 <== NOT EXECUTED return RTEMS_NO_MEMORY; 30003bfc: eaffff3e b 300038fc <== NOT EXECUTED * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); if (tty->rawInBuf.theBuf == NULL) { free(tty); 30003c00: e1a00003 mov r0, r3 <== NOT EXECUTED 30003c04: eb001544 bl 3000911c <== NOT EXECUTED 30003c08: eafffff8 b 30003bf0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ sc = rtems_semaphore_create ( 30003c0c: e59fc0ac ldr ip, [pc, #172] ; 30003cc0 <== NOT EXECUTED 30003c10: e59de008 ldr lr, [sp, #8] <== NOT EXECUTED 30003c14: e5dc300c ldrb r3, [ip, #12] <== NOT EXECUTED 30003c18: e59f00c4 ldr r0, [pc, #196] ; 30003ce4 <== NOT EXECUTED 30003c1c: e3a01000 mov r1, #0 <== NOT EXECUTED 30003c20: e1830000 orr r0, r3, r0 <== NOT EXECUTED 30003c24: e28ec068 add ip, lr, #104 ; 0x68 <== NOT EXECUTED 30003c28: e3a02024 mov r2, #36 ; 0x24 <== NOT EXECUTED 30003c2c: e1a03001 mov r3, r1 <== NOT EXECUTED 30003c30: e58dc000 str ip, [sp] <== NOT EXECUTED 30003c34: eb00024d bl 30004570 <== 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) 30003c38: e3500000 cmp r0, #0 <== NOT EXECUTED 30003c3c: 0affffae beq 30003afc <== NOT EXECUTED sc = rtems_task_start(tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 30003c40: eb000485 bl 30004e5c <== NOT EXECUTED /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { sc = rtems_task_create ( 30003c44: e5db300c ldrb r3, [fp, #12] <== NOT EXECUTED 30003c48: e59f0098 ldr r0, [pc, #152] ; 30003ce8 <== NOT EXECUTED 30003c4c: e28ec0c8 add ip, lr, #200 ; 0xc8 <== NOT EXECUTED 30003c50: e59de00c ldr lr, [sp, #12] <== NOT EXECUTED 30003c54: e1830000 orr r0, r3, r0 <== NOT EXECUTED 30003c58: e3a0100a mov r1, #10 <== NOT EXECUTED 30003c5c: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 30003c60: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 30003c64: e58de000 str lr, [sp] <== NOT EXECUTED 30003c68: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 30003c6c: eb00034c bl 300049a4 <== 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) 30003c70: e250e000 subs lr, r0, #0 <== NOT EXECUTED 30003c74: 1afffff1 bne 30003c40 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 30003c78: e5db300c ldrb r3, [fp, #12] <== NOT EXECUTED 30003c7c: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED 30003c80: e59f0064 ldr r0, [pc, #100] ; 30003cec <== NOT EXECUTED 30003c84: e281c0c4 add ip, r1, #196 ; 0xc4 <== NOT EXECUTED 30003c88: e1830000 orr r0, r3, r0 <== NOT EXECUTED 30003c8c: e3a01009 mov r1, #9 <== NOT EXECUTED 30003c90: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 30003c94: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 30003c98: e58de000 str lr, [sp] <== NOT EXECUTED 30003c9c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 30003ca0: eb00033f bl 300049a4 <== 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) 30003ca4: e3500000 cmp r0, #0 <== NOT EXECUTED 30003ca8: 0affff8c beq 30003ae0 <== NOT EXECUTED 30003cac: eaffffe3 b 30003c40 <== NOT EXECUTED 30003cb0: 3001a88c .word 0x3001a88c 30003cb4: 3001a894 .word 0x3001a894 30003cb8: 30003d60 .word 0x30003d60 30003cbc: 30003cf0 .word 0x30003cf0 30003cc0: 3001a08c .word 0x3001a08c 30003cc4: 3001a890 .word 0x3001a890 30003cc8: 54526900 .word 0x54526900 30003ccc: 54526f00 .word 0x54526f00 30003cd0: 54527800 .word 0x54527800 30003cd4: 00002502 .word 0x00002502 30003cd8: 00001805 .word 0x00001805 30003cdc: 000008bd .word 0x000008bd 30003ce0: 0000823b .word 0x0000823b 30003ce4: 54527200 .word 0x54527200 30003ce8: 54785400 .word 0x54785400 30003cec: 52785400 .word 0x52785400 30002680 : const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 30002680: e59230b4 ldr r3, [r2, #180] ; 0xb4 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 30002684: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 30002688: e3530000 cmp r3, #0 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 3000268c: e1a04002 mov r4, r2 30002690: e1a0b000 mov fp, r0 30002694: e1a09001 mov r9, r1 const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 30002698: 0a000039 beq 30002784 (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 3000269c: e3510000 cmp r1, #0 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; 300026a0: e5928080 ldr r8, [r2, #128] ; 0x80 <== NOT EXECUTED while (len) { 300026a4: 08bd8ff0 popeq {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 300026a8: e3a0a000 mov sl, #0 <== NOT EXECUTED * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { tty->rawOutBufState = rob_wait; 300026ac: e3a07002 mov r7, #2 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 300026b0: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED 300026b4: e2880001 add r0, r8, #1 <== NOT EXECUTED 300026b8: eb005200 bl 30016ec0 <__umodsi3> <== NOT EXECUTED 300026bc: e1a08000 mov r8, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300026c0: e10f5000 mrs r5, CPSR <== NOT EXECUTED 300026c4: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED 300026c8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { 300026cc: e5946084 ldr r6, [r4, #132] ; 0x84 <== NOT EXECUTED 300026d0: e1560000 cmp r6, r0 <== NOT EXECUTED 300026d4: 1a00000d bne 30002710 <== NOT EXECUTED tty->rawOutBufState = rob_wait; 300026d8: e5847094 str r7, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 300026dc: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 300026e0: e3a01000 mov r1, #0 <== NOT EXECUTED 300026e4: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED 300026e8: e1a02001 mov r2, r1 <== NOT EXECUTED 300026ec: eb00083a bl 300047dc <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 300026f0: e3500000 cmp r0, #0 <== NOT EXECUTED 300026f4: 1a000028 bne 3000279c <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300026f8: e10f5000 mrs r5, CPSR <== NOT EXECUTED 300026fc: e3853080 orr r3, r5, #128 ; 0x80 <== NOT EXECUTED 30002700: e129f003 msr CPSR_fc, r3 <== 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) { 30002704: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED 30002708: e1530006 cmp r3, r6 <== NOT EXECUTED 3000270c: 0afffff1 beq 300026d8 <== NOT EXECUTED RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); rtems_interrupt_disable (level); } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; 30002710: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED 30002714: e7db100a ldrb r1, [fp, sl] <== NOT EXECUTED 30002718: e594207c ldr r2, [r4, #124] ; 0x7c <== NOT EXECUTED 3000271c: e7c21003 strb r1, [r2, r3] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 30002720: 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; 30002724: e5848080 str r8, [r4, #128] ; 0x80 <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 30002728: e3530000 cmp r3, #0 <== NOT EXECUTED 3000272c: 1a000007 bne 30002750 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 30002730: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 30002734: e3130010 tst r3, #16 <== NOT EXECUTED 30002738: 0a000009 beq 30002764 <== 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; 3000273c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 30002740: e3833020 orr r3, r3, #32 <== NOT EXECUTED 30002744: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } tty->rawOutBufState = rob_busy; 30002748: e3a03001 mov r3, #1 <== NOT EXECUTED 3000274c: e5843094 str r3, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002750: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 30002754: e2599001 subs r9, r9, #1 <== NOT EXECUTED tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; } rtems_interrupt_enable (level); len--; 30002758: e28aa001 add sl, sl, #1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 3000275c: 1affffd3 bne 300026b0 <== NOT EXECUTED 30002760: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 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, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 30002764: e5943084 ldr r3, [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, 30002768: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED 3000276c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002770: e0811003 add r1, r1, r3 <== NOT EXECUTED 30002774: e3a02001 mov r2, #1 <== NOT EXECUTED 30002778: e1a0e00f mov lr, pc <== NOT EXECUTED 3000277c: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED 30002780: eafffff0 b 30002748 <== NOT EXECUTED unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); 30002784: e1a01000 mov r1, r0 30002788: e1a02009 mov r2, r9 3000278c: e5940010 ldr r0, [r4, #16] 30002790: e1a0e00f mov lr, pc 30002794: e594f0a4 ldr pc, [r4, #164] ; 0xa4 return; 30002798: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); 3000279c: eb0009ae bl 30004e5c <== NOT EXECUTED 30002f18 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 30002f18: e92d4ff0 push {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; 30002f1c: e5903000 ldr r3, [r0] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 30002f20: e1a0a000 mov sl, r0 <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002f24: 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); 30002f28: e3a01000 mov r1, #0 <== NOT EXECUTED 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; char *buffer = args->buffer; 30002f2c: e59a300c ldr r3, [sl, #12] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 30002f30: e24dd008 sub sp, sp, #8 <== 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); 30002f34: e1a02001 mov r2, r1 <== NOT EXECUTED 30002f38: e5940014 ldr r0, [r4, #20] <== 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; 30002f3c: e59a7010 ldr r7, [sl, #16] <== NOT EXECUTED char *buffer = args->buffer; 30002f40: e58d3000 str r3, [sp] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002f44: eb000624 bl 300047dc <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 30002f48: e250b000 subs fp, r0, #0 <== NOT EXECUTED 30002f4c: 1a00000e bne 30002f8c <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 30002f50: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED 30002f54: e59f3340 ldr r3, [pc, #832] ; 3000329c <== NOT EXECUTED 30002f58: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 30002f5c: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 30002f60: e3530000 cmp r3, #0 <== NOT EXECUTED 30002f64: 0a00000b beq 30002f98 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 30002f68: e1a0100a mov r1, sl <== NOT EXECUTED 30002f6c: e1a00004 mov r0, r4 <== NOT EXECUTED 30002f70: e1a0e00f mov lr, pc <== NOT EXECUTED 30002f74: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 30002f78: e3a03000 mov r3, #0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 30002f7c: e1a0b000 mov fp, r0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; 30002f80: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED rtems_semaphore_release (tty->isem); 30002f84: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 30002f88: eb00065b bl 300048fc <== NOT EXECUTED } args->bytes_moved = args->count - count; tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } 30002f8c: e1a0000b mov r0, fp <== NOT EXECUTED 30002f90: e28dd008 add sp, sp, #8 <== NOT EXECUTED 30002f94: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { 30002f98: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED 30002f9c: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30002fa0: e1520003 cmp r2, r3 <== NOT EXECUTED 30002fa4: 0a00001a beq 30003014 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 30002fa8: e3570000 cmp r7, #0 <== NOT EXECUTED 30002fac: 0a000010 beq 30002ff4 <== NOT EXECUTED 30002fb0: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED 30002fb4: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 30002fb8: e1530002 cmp r3, r2 <== NOT EXECUTED 30002fbc: aa00000c bge 30002ff4 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 30002fc0: e59d2000 ldr r2, [sp] <== NOT EXECUTED 30002fc4: e0631002 rsb r1, r3, r2 <== NOT EXECUTED 30002fc8: ea000002 b 30002fd8 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 30002fcc: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 30002fd0: e1520003 cmp r2, r3 <== NOT EXECUTED 30002fd4: da000006 ble 30002ff4 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 30002fd8: e594201c ldr r2, [r4, #28] <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 30002fdc: e2577001 subs r7, r7, #1 <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 30002fe0: e7d22003 ldrb r2, [r2, r3] <== NOT EXECUTED 30002fe4: e7c12003 strb r2, [r1, r3] <== NOT EXECUTED 30002fe8: e2833001 add r3, r3, #1 <== NOT EXECUTED 30002fec: e5843024 str r3, [r4, #36] ; 0x24 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 30002ff0: 1afffff5 bne 30002fcc <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 30002ff4: e59a3010 ldr r3, [sl, #16] <== NOT EXECUTED 30002ff8: e0677003 rsb r7, r7, r3 <== NOT EXECUTED 30002ffc: e58a7018 str r7, [sl, #24] <== NOT EXECUTED tty->tty_rcvwakeup = 0; 30003000: e3a03000 mov r3, #0 <== NOT EXECUTED 30003004: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED rtems_semaphore_release (tty->isem); 30003008: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 3000300c: eb00063a bl 300048fc <== NOT EXECUTED return sc; 30003010: eaffffdd b 30002f8c <== NOT EXECUTED } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 30003014: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 30003018: e5942028 ldr r2, [r4, #40] ; 0x28 <== NOT EXECUTED if (tty->device.pollRead != NULL 3000301c: e3530000 cmp r3, #0 <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; 30003020: e584202c str r2, [r4, #44] ; 0x2c <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; 30003024: e584b020 str fp, [r4, #32] <== NOT EXECUTED 30003028: e584b024 str fp, [r4, #36] ; 0x24 <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 3000302c: 0a000002 beq 3000303c <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 30003030: e59420b4 ldr r2, [r4, #180] ; 0xb4 <== NOT EXECUTED 30003034: e3520000 cmp r2, #0 <== NOT EXECUTED 30003038: 0a00005b beq 300031ac <== 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)(tty->minor, 3000303c: 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; 30003040: e5945074 ldr r5, [r4, #116] ; 0x74 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 30003044: e59f6254 ldr r6, [pc, #596] ; 300032a0 <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 30003048: e59f9254 ldr r9, [pc, #596] ; 300032a4 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { /* XON should be sent now... */ (*tty->device.write)(tty->minor, 3000304c: e58d2004 str r2, [sp, #4] <== NOT EXECUTED 30003050: e3a08001 mov r8, #1 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 30003054: e594205c ldr r2, [r4, #92] ; 0x5c <== NOT EXECUTED 30003058: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED 3000305c: e1520003 cmp r2, r3 <== NOT EXECUTED 30003060: 0a000034 beq 30003138 <== NOT EXECUTED 30003064: e5963000 ldr r3, [r6] <== NOT EXECUTED 30003068: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 3000306c: e2433001 sub r3, r3, #1 <== NOT EXECUTED 30003070: e1520003 cmp r2, r3 <== NOT EXECUTED 30003074: aa00002f bge 30003138 <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 30003078: e594005c ldr r0, [r4, #92] ; 0x5c <== NOT EXECUTED 3000307c: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 30003080: e2800001 add r0, r0, #1 <== NOT EXECUTED 30003084: eb004f8d bl 30016ec0 <__umodsi3> <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 30003088: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED 3000308c: e7d35000 ldrb r5, [r3, r0] <== NOT EXECUTED tty->rawInBuf.Head = newHead; 30003090: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 30003094: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED 30003098: e5942064 ldr r2, [r4, #100] ; 0x64 <== NOT EXECUTED 3000309c: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 300030a0: e0823003 add r3, r2, r3 <== NOT EXECUTED 300030a4: e0600003 rsb r0, r0, r3 <== NOT EXECUTED 300030a8: eb004f84 bl 30016ec0 <__umodsi3> <== NOT EXECUTED 300030ac: e59430bc ldr r3, [r4, #188] ; 0xbc <== NOT EXECUTED 300030b0: e1500003 cmp r0, r3 <== NOT EXECUTED 300030b4: 2a000012 bcs 30003104 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 300030b8: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 300030bc: e59f31e0 ldr r3, [pc, #480] ; 300032a4 <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; tty->rawInBuf.Head = newHead; if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 300030c0: e3c22001 bic r2, r2, #1 <== NOT EXECUTED 300030c4: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 300030c8: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED 300030cc: e0023003 and r3, r2, r3 <== NOT EXECUTED 300030d0: e1530009 cmp r3, r9 <== NOT EXECUTED 300030d4: 0a000028 beq 3000317c <== NOT EXECUTED /* XON should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { 300030d8: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300030dc: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 300030e0: 0a000007 beq 30003104 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 300030e4: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 300030e8: e59430b0 ldr r3, [r4, #176] ; 0xb0 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { tty->flow_ctrl &= ~FL_IRTSOFF; 300030ec: e3c22004 bic r2, r2, #4 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 300030f0: e3530000 cmp r3, #0 <== NOT EXECUTED (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { tty->flow_ctrl &= ~FL_IRTSOFF; 300030f4: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { tty->device.startRemoteTx(tty->minor); 300030f8: 15940010 ldrne r0, [r4, #16] <== NOT EXECUTED 300030fc: 11a0e00f movne lr, pc <== NOT EXECUTED 30003100: 112fff13 bxne r3 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 30003104: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED 30003108: e3130002 tst r3, #2 <== NOT EXECUTED 3000310c: 0a000012 beq 3000315c <== NOT EXECUTED if (siproc (c, tty)) 30003110: e1a00005 mov r0, r5 <== NOT EXECUTED 30003114: e1a01004 mov r1, r4 <== NOT EXECUTED 30003118: ebffff13 bl 30002d6c <== NOT EXECUTED 3000311c: e3500000 cmp r0, #0 <== NOT EXECUTED wait = 0; } else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) 30003120: 13a08000 movne r8, #0 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 30003124: e594205c ldr r2, [r4, #92] ; 0x5c <== NOT EXECUTED 30003128: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED else { siproc (c, tty); if (tty->ccount >= tty->termios.c_cc[VMIN]) wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 3000312c: e5945070 ldr r5, [r4, #112] ; 0x70 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 30003130: e1520003 cmp r2, r3 <== NOT EXECUTED 30003134: 1affffca bne 30003064 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 30003138: e3580000 cmp r8, #0 <== NOT EXECUTED 3000313c: 0affff99 beq 30002fa8 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 30003140: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED 30003144: e594106c ldr r1, [r4, #108] ; 0x6c <== NOT EXECUTED 30003148: e1a02005 mov r2, r5 <== NOT EXECUTED 3000314c: eb0005a2 bl 300047dc <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 30003150: e3500000 cmp r0, #0 <== NOT EXECUTED 30003154: 0affffbe beq 30003054 <== NOT EXECUTED 30003158: eaffff92 b 30002fa8 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { if (siproc (c, tty)) wait = 0; } else { siproc (c, tty); 3000315c: e1a00005 mov r0, r5 <== NOT EXECUTED 30003160: e1a01004 mov r1, r4 <== NOT EXECUTED 30003164: ebffff00 bl 30002d6c <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 30003168: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED 3000316c: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 30003170: e1520003 cmp r2, r3 <== NOT EXECUTED 30003174: a3a08000 movge r8, #0 <== NOT EXECUTED 30003178: eaffffe9 b 30003124 <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 3000317c: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED 30003180: e3530000 cmp r3, #0 <== NOT EXECUTED 30003184: 0a000002 beq 30003194 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 30003188: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 3000318c: e3130020 tst r3, #32 <== NOT EXECUTED 30003190: 0affffd0 beq 300030d8 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { /* XON should be sent now... */ (*tty->device.write)(tty->minor, 30003194: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30003198: e59d1004 ldr r1, [sp, #4] <== NOT EXECUTED 3000319c: e3a02001 mov r2, #1 <== NOT EXECUTED 300031a0: e1a0e00f mov lr, pc <== NOT EXECUTED 300031a4: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED 300031a8: eaffffd5 b 30003104 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 300031ac: e594203c ldr r2, [r4, #60] ; 0x3c <== NOT EXECUTED 300031b0: e3120002 tst r2, #2 <== NOT EXECUTED 300031b4: 0a00000b beq 300031e8 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 300031b8: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 300031bc: e1a0e00f mov lr, pc <== NOT EXECUTED 300031c0: e12fff13 bx r3 <== NOT EXECUTED if (n < 0) { 300031c4: e3500000 cmp r0, #0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 300031c8: e1a01004 mov r1, r4 <== NOT EXECUTED 300031cc: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED int n; if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { 300031d0: ba00002d blt 3000328c <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 300031d4: ebfffee4 bl 30002d6c <== NOT EXECUTED 300031d8: e3500000 cmp r0, #0 <== NOT EXECUTED 300031dc: 1affff71 bne 30002fa8 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 300031e0: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED 300031e4: eafffff3 b 300031b8 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 300031e8: eb0003d7 bl 3000414c <== NOT EXECUTED 300031ec: e1a05000 mov r5, r0 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 300031f0: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 300031f4: e1a0e00f mov lr, pc <== NOT EXECUTED 300031f8: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (n < 0) { 300031fc: e3500000 cmp r0, #0 <== NOT EXECUTED 30003200: ba00000c blt 30003238 <== NOT EXECUTED } } rtems_task_wake_after (1); } else { siproc (n, tty); 30003204: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED 30003208: e1a01004 mov r1, r4 <== NOT EXECUTED 3000320c: ebfffed6 bl 30002d6c <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 30003210: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED 30003214: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 30003218: e1520003 cmp r2, r3 <== NOT EXECUTED 3000321c: aaffff61 bge 30002fa8 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 30003220: e3530000 cmp r3, #0 <== NOT EXECUTED 30003224: 0afffff1 beq 300031f0 <== NOT EXECUTED 30003228: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED 3000322c: e3530000 cmp r3, #0 <== NOT EXECUTED 30003230: 0affffee beq 300031f0 <== NOT EXECUTED 30003234: eaffffeb b 300031e8 <== NOT EXECUTED rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { if (tty->termios.c_cc[VMIN]) { 30003238: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED 3000323c: e3530000 cmp r3, #0 <== NOT EXECUTED 30003240: 0a000008 beq 30003268 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 30003244: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED 30003248: e3530000 cmp r3, #0 <== NOT EXECUTED 3000324c: 0a000002 beq 3000325c <== NOT EXECUTED 30003250: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30003254: e3530000 cmp r3, #0 <== NOT EXECUTED 30003258: 1a000005 bne 30003274 <== NOT EXECUTED now = rtems_clock_get_ticks_since_boot(); if ((now - then) > tty->vtimeTicks) { break; } } rtems_task_wake_after (1); 3000325c: e3a00001 mov r0, #1 <== NOT EXECUTED 30003260: eb000690 bl 30004ca8 <== NOT EXECUTED 30003264: eaffffe1 b 300031f0 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 30003268: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED 3000326c: e3530000 cmp r3, #0 <== NOT EXECUTED 30003270: 0affff4c beq 30002fa8 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 30003274: eb0003b4 bl 3000414c <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 30003278: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED 3000327c: e0650000 rsb r0, r5, r0 <== NOT EXECUTED 30003280: e1500003 cmp r0, r3 <== NOT EXECUTED 30003284: 9afffff4 bls 3000325c <== NOT EXECUTED 30003288: eaffff46 b 30002fa8 <== NOT EXECUTED if (tty->termios.c_lflag & ICANON) { for (;;) { n = (*tty->device.pollRead)(tty->minor); if (n < 0) { rtems_task_wake_after (1); 3000328c: e3a00001 mov r0, #1 <== NOT EXECUTED 30003290: eb000684 bl 30004ca8 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 30003294: e59430a0 ldr r3, [r4, #160] ; 0xa0 <== NOT EXECUTED 30003298: eaffffc6 b 300031b8 <== NOT EXECUTED 3000329c: 3001a6b8 .word 0x3001a6b8 300032a0: 3001a08c .word 0x3001a08c 300032a4: 00000202 .word 0x00000202 30002108 : int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 30002108: e59020b8 ldr r2, [r0, #184] ; 0xb8 <== NOT EXECUTED 3000210c: e59f31fc ldr r3, [pc, #508] ; 30002310 <== 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) { 30002110: 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)) 30002114: e0023003 and r3, r2, r3 <== NOT EXECUTED 30002118: e59f21f4 ldr r2, [pc, #500] ; 30002314 <== 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) { 3000211c: 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)) 30002120: e1530002 cmp r3, r2 <== NOT EXECUTED 30002124: 0a000046 beq 30002244 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 30002128: e59030b8 ldr r3, [r0, #184] ; 0xb8 <== NOT EXECUTED 3000212c: e2033003 and r3, r3, #3 <== NOT EXECUTED 30002130: e3530002 cmp r3, #2 <== NOT EXECUTED 30002134: 0a000054 beq 3000228c <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 30002138: e5902080 ldr r2, [r0, #128] ; 0x80 <== NOT EXECUTED 3000213c: e5903084 ldr r3, [r0, #132] ; 0x84 <== NOT EXECUTED 30002140: e1520003 cmp r2, r3 <== NOT EXECUTED 30002144: 0a00002a beq 300021f4 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30002148: e10f3000 mrs r3, CPSR <== NOT EXECUTED 3000214c: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 30002150: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; 30002154: e3a02000 mov r2, #0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; 30002158: e5900090 ldr r0, [r0, #144] ; 0x90 <== NOT EXECUTED tty->t_dqlen = 0; 3000215c: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002160: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 30002164: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED 30002168: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED 3000216c: e0800003 add r0, r0, r3 <== NOT EXECUTED 30002170: eb005352 bl 30016ec0 <__umodsi3> <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 30002174: 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; 30002178: e1a05000 mov r5, r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 3000217c: e3530002 cmp r3, #2 <== NOT EXECUTED len = tty->t_dqlen; tty->t_dqlen = 0; rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; tty->rawOutBuf.Tail = newTail; 30002180: e5840084 str r0, [r4, #132] ; 0x84 <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { 30002184: 0a00002b beq 30002238 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); } if (newTail == tty->rawOutBuf.Head) { 30002188: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED 3000218c: e1530005 cmp r3, r5 <== NOT EXECUTED 30002190: 0a00001d beq 3000220c <== NOT EXECUTED if ( tty->tty_snd.sw_pfn != NULL) { (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 30002194: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 30002198: e2033e21 and r3, r3, #528 ; 0x210 <== NOT EXECUTED 3000219c: e3530e21 cmp r3, #528 ; 0x210 <== NOT EXECUTED 300021a0: 0a00004b beq 300022d4 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 300021a4: 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)(tty->minor, 300021a8: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 300021ac: e1550003 cmp r5, r3 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 300021b0: 85946088 ldrhi r6, [r4, #136] ; 0x88 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 300021b4: 95946080 ldrls r6, [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)) { 300021b8: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; 300021bc: 80656006 rsbhi r6, r5, r6 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 300021c0: 90656006 rsbls r6, r5, r6 <== 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)) { 300021c4: e3130c06 tst r3, #1536 ; 0x600 <== NOT EXECUTED 300021c8: 13a06001 movne r6, #1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 300021cc: e3a03001 mov r3, #1 <== NOT EXECUTED 300021d0: e5843094 str r3, [r4, #148] ; 0x94 <== NOT EXECUTED (*tty->device.write)(tty->minor, 300021d4: e0811005 add r1, r1, r5 <== NOT EXECUTED 300021d8: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 300021dc: e1a02006 mov r2, r6 <== NOT EXECUTED 300021e0: e1a0e00f mov lr, pc <== NOT EXECUTED 300021e4: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 300021e8: e5845084 str r5, [r4, #132] ; 0x84 <== NOT EXECUTED } return nToSend; } 300021ec: e1a00006 mov r0, r6 <== NOT EXECUTED 300021f0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 300021f4: e5903094 ldr r3, [r0, #148] ; 0x94 <== NOT EXECUTED 300021f8: e3530002 cmp r3, #2 <== NOT EXECUTED 300021fc: 0a00003f beq 30002300 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 30002200: e3a06000 mov r6, #0 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 30002204: e1a00006 mov r0, r6 <== NOT EXECUTED 30002208: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 3000220c: e59430d4 ldr r3, [r4, #212] ; 0xd4 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 30002210: e3a06000 mov r6, #0 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 30002214: e1530006 cmp r3, r6 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 30002218: e5846094 str r6, [r4, #148] ; 0x94 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 3000221c: 01a06003 moveq r6, r3 <== NOT EXECUTED 30002220: 0afffff0 beq 300021e8 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 30002224: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 30002228: e59410d8 ldr r1, [r4, #216] ; 0xd8 <== NOT EXECUTED 3000222c: e1a0e00f mov lr, pc <== NOT EXECUTED 30002230: e12fff13 bx r3 <== NOT EXECUTED 30002234: eaffffeb b 300021e8 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 30002238: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED 3000223c: eb0009ae bl 300048fc <== NOT EXECUTED 30002240: eaffffd0 b 30002188 <== NOT EXECUTED /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 30002244: e284104a add r1, r4, #74 ; 0x4a <== NOT EXECUTED 30002248: e3a02001 mov r2, #1 <== NOT EXECUTED 3000224c: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 30002250: e1a0e00f mov lr, pc <== NOT EXECUTED 30002254: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30002258: e10f3000 mrs r3, CPSR <== NOT EXECUTED 3000225c: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 30002260: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 30002264: e5942090 ldr r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 30002268: e59410b8 ldr r1, [r4, #184] ; 0xb8 <== NOT EXECUTED /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 3000226c: e2422001 sub r2, r2, #1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 30002270: e3811002 orr r1, r1, #2 <== NOT EXECUTED 30002274: e58410b8 str r1, [r4, #184] ; 0xb8 <== NOT EXECUTED /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 30002278: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 3000227c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 30002280: e3a06001 mov r6, #1 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 30002284: e1a00006 mov r0, r6 <== NOT EXECUTED 30002288: e8bd8070 pop {r4, r5, r6, pc} <== 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, 3000228c: e2841049 add r1, r4, #73 ; 0x49 <== NOT EXECUTED 30002290: e3a02001 mov r2, #1 <== NOT EXECUTED 30002294: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 30002298: e1a0e00f mov lr, pc <== NOT EXECUTED 3000229c: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300022a0: e10f3000 mrs r3, CPSR <== NOT EXECUTED 300022a4: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 300022a8: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 300022ac: e5942090 ldr r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 300022b0: e59410b8 ldr r1, [r4, #184] ; 0xb8 <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 300022b4: e2422001 sub r2, r2, #1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 300022b8: e3c11002 bic r1, r1, #2 <== NOT EXECUTED 300022bc: e58410b8 str r1, [r4, #184] ; 0xb8 <== NOT EXECUTED */ (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 300022c0: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 300022c4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 300022c8: e3a06001 mov r6, #1 <== NOT EXECUTED nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ } return nToSend; } 300022cc: e1a00006 mov r0, r6 <== NOT EXECUTED 300022d0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300022d4: e10f3000 mrs r3, CPSR <== NOT EXECUTED 300022d8: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 300022dc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; 300022e0: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED 300022e4: e3822020 orr r2, r2, #32 <== NOT EXECUTED 300022e8: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 300022ec: e3a02001 mov r2, #1 <== NOT EXECUTED 300022f0: e5842094 str r2, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 300022f4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 300022f8: e3a06000 mov r6, #0 <== NOT EXECUTED 300022fc: eaffffb9 b 300021e8 <== NOT EXECUTED */ if (tty->rawOutBufState == rob_wait) { /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 30002300: e590008c ldr r0, [r0, #140] ; 0x8c <== NOT EXECUTED 30002304: eb00097c bl 300048fc <== NOT EXECUTED 30002308: e3a06000 mov r6, #0 <== NOT EXECUTED 3000230c: eaffffbc b 30002204 <== NOT EXECUTED 30002310: 00000403 .word 0x00000403 30002314: 00000401 .word 0x00000401 30003d60 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 30003d60: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 30003d64: e24dd008 sub sp, sp, #8 <== NOT EXECUTED 30003d68: e1a04000 mov r4, r0 <== NOT EXECUTED 30003d6c: e28d7007 add r7, sp, #7 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 30003d70: e3a06000 mov r6, #0 <== NOT EXECUTED 30003d74: e1a0300d mov r3, sp <== NOT EXECUTED 30003d78: e3a01002 mov r1, #2 <== NOT EXECUTED 30003d7c: e3a02000 mov r2, #0 <== NOT EXECUTED 30003d80: e3a00003 mov r0, #3 <== NOT EXECUTED 30003d84: eb000110 bl 300041cc <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 30003d88: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30003d8c: e3130001 tst r3, #1 <== NOT EXECUTED 30003d90: 1a000012 bne 30003de0 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 30003d94: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30003d98: e1a0e00f mov lr, pc <== NOT EXECUTED 30003d9c: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (c != EOF) { 30003da0: e3700001 cmn r0, #1 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 30003da4: e1a03000 mov r3, r0 <== NOT EXECUTED if (c != EOF) { 30003da8: 0afffff1 beq 30003d74 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 30003dac: e1a01007 mov r1, r7 <== NOT EXECUTED 30003db0: e3a02001 mov r2, #1 <== NOT EXECUTED 30003db4: e1a00004 mov r0, r4 <== NOT EXECUTED c = tty->device.pollRead(tty->minor); if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; 30003db8: e5cd3007 strb r3, [sp, #7] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 30003dbc: ebfff96f bl 30002380 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 30003dc0: e1a0300d mov r3, sp <== NOT EXECUTED 30003dc4: e3a01002 mov r1, #2 <== NOT EXECUTED 30003dc8: e3a02000 mov r2, #0 <== NOT EXECUTED 30003dcc: e3a00003 mov r0, #3 <== NOT EXECUTED 30003dd0: eb0000fd bl 300041cc <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 30003dd4: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30003dd8: e3130001 tst r3, #1 <== NOT EXECUTED 30003ddc: 0affffec beq 30003d94 <== NOT EXECUTED tty->rxTaskId = 0; 30003de0: e58460c4 str r6, [r4, #196] ; 0xc4 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 30003de4: e1a00006 mov r0, r6 <== NOT EXECUTED 30003de8: eb00033b bl 30004adc <== NOT EXECUTED 30003dec: eaffffe0 b 30003d74 <== NOT EXECUTED 300020fc : 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); 300020fc: e59000c4 ldr r0, [r0, #196] ; 0xc4 <== NOT EXECUTED 30002100: e3a01002 mov r1, #2 <== NOT EXECUTED 30002104: ea00088e b 30004344 <== NOT EXECUTED 30003cf0 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 30003cf0: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED 30003cf4: e59f6060 ldr r6, [pc, #96] ; 30003d5c <== NOT EXECUTED 30003cf8: e24dd004 sub sp, sp, #4 <== NOT EXECUTED 30003cfc: e1a04000 mov r4, r0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 30003d00: e3a07000 mov r7, #0 <== NOT EXECUTED 30003d04: e1a0300d mov r3, sp <== NOT EXECUTED 30003d08: e3a01002 mov r1, #2 <== NOT EXECUTED 30003d0c: e3a02000 mov r2, #0 <== NOT EXECUTED 30003d10: e3a00003 mov r0, #3 <== NOT EXECUTED 30003d14: eb00012c bl 300041cc <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 30003d18: e59d3000 ldr r3, [sp] <== NOT EXECUTED else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { rtems_termios_linesw[tty->t_line].l_start(tty); 30003d1c: e1a00004 mov r0, r4 <== NOT EXECUTED rtems_event_receive((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) { 30003d20: e3130001 tst r3, #1 <== NOT EXECUTED 30003d24: 1a000008 bne 30003d4c <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 30003d28: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED 30003d2c: e0863283 add r3, r6, r3, lsl #5 <== NOT EXECUTED 30003d30: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 30003d34: e3530000 cmp r3, #0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 30003d38: 11a0e00f movne lr, pc <== NOT EXECUTED 30003d3c: 112fff13 bxne r3 <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 30003d40: e1a00004 mov r0, r4 <== NOT EXECUTED 30003d44: ebfff8ef bl 30002108 <== NOT EXECUTED 30003d48: eaffffed b 30003d04 <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { tty->txTaskId = 0; 30003d4c: e58470c8 str r7, [r4, #200] ; 0xc8 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 30003d50: e1a00007 mov r0, r7 <== NOT EXECUTED 30003d54: eb000360 bl 30004adc <== NOT EXECUTED 30003d58: eaffffe9 b 30003d04 <== NOT EXECUTED 30003d5c: 3001a6b8 .word 0x3001a6b8 30002dcc : rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002dcc: e5903000 ldr r3, [r0] rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 30002dd0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002dd4: e5934034 ldr r4, [r3, #52] ; 0x34 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002dd8: e3a01000 mov r1, #0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 30002ddc: e1a05000 mov r5, r0 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); 30002de0: e1a02001 mov r2, r1 30002de4: e5940018 ldr r0, [r4, #24] 30002de8: eb00067b bl 300047dc if (sc != RTEMS_SUCCESSFUL) 30002dec: e2506000 subs r6, r0, #0 30002df0: 1a00000c bne 30002e28 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 30002df4: e59420cc ldr r2, [r4, #204] ; 0xcc 30002df8: e59f3098 ldr r3, [pc, #152] ; 30002e98 30002dfc: e0833282 add r3, r3, r2, lsl #5 30002e00: e593300c ldr r3, [r3, #12] 30002e04: e3530000 cmp r3, #0 30002e08: 0a000008 beq 30002e30 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 30002e0c: e1a01005 mov r1, r5 <== NOT EXECUTED 30002e10: e1a00004 mov r0, r4 <== NOT EXECUTED 30002e14: e1a0e00f mov lr, pc <== NOT EXECUTED 30002e18: e12fff13 bx r3 <== NOT EXECUTED 30002e1c: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 30002e20: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED 30002e24: eb0006b4 bl 300048fc <== NOT EXECUTED rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; } rtems_semaphore_release (tty->osem); return sc; } 30002e28: e1a00006 mov r0, r6 <== NOT EXECUTED 30002e2c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== 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) { 30002e30: e5943034 ldr r3, [r4, #52] ; 0x34 30002e34: e3130001 tst r3, #1 30002e38: 0a000011 beq 30002e84 uint32_t count = args->count; 30002e3c: e5958010 ldr r8, [r5, #16] char *buffer = args->buffer; 30002e40: e595a00c ldr sl, [r5, #12] while (count--) 30002e44: e3580000 cmp r8, #0 30002e48: 01a03006 moveq r3, r6 30002e4c: 0a000007 beq 30002e70 30002e50: e1a07006 mov r7, r6 oproc (*buffer++, tty); 30002e54: e7da0007 ldrb r0, [sl, r7] 30002e58: e1a01004 mov r1, r4 30002e5c: e2877001 add r7, r7, #1 30002e60: ebfffe4e bl 300027a0 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 30002e64: e1580007 cmp r8, r7 30002e68: 1afffff9 bne 30002e54 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); args->bytes_moved = args->count; 30002e6c: e5953010 ldr r3, [r5, #16] 30002e70: e5853018 str r3, [r5, #24] } rtems_semaphore_release (tty->osem); 30002e74: e5940018 ldr r0, [r4, #24] 30002e78: eb00069f bl 300048fc return sc; } 30002e7c: e1a00006 mov r0, r6 30002e80: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} while (count--) oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 30002e84: e595000c ldr r0, [r5, #12] <== NOT EXECUTED 30002e88: e5951010 ldr r1, [r5, #16] <== NOT EXECUTED 30002e8c: e1a02004 mov r2, r4 <== NOT EXECUTED 30002e90: ebfffdfa bl 30002680 <== NOT EXECUTED 30002e94: eafffff4 b 30002e6c <== NOT EXECUTED 30002e98: 3001a6b8 .word 0x3001a6b8 30006428 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 30006428: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 3000642c: e2108202 ands r8, r0, #536870912 ; 0x20000000 <== NOT EXECUTED static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 30006430: e1a04000 mov r4, r0 <== NOT EXECUTED 30006434: e1a09001 mov r9, r1 <== NOT EXECUTED 30006438: e1a07002 mov r7, r2 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 3000643c: 0a00000c beq 30006474 <== NOT EXECUTED { if (rtems_panic_in_progress++) 30006440: e59f2160 ldr r2, [pc, #352] ; 300065a8 <== NOT EXECUTED 30006444: e5923000 ldr r3, [r2] <== NOT EXECUTED 30006448: e3530000 cmp r3, #0 <== NOT EXECUTED 3000644c: e2833001 add r3, r3, #1 <== NOT EXECUTED 30006450: e5823000 str r3, [r2] <== NOT EXECUTED 30006454: 0a000004 beq 3000646c <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 30006458: e59f314c ldr r3, [pc, #332] ; 300065ac <== NOT EXECUTED 3000645c: e5931000 ldr r1, [r3] <== NOT EXECUTED 30006460: e2811001 add r1, r1, #1 <== NOT EXECUTED 30006464: e5831000 str r1, [r3] <== NOT EXECUTED RTEMS_COMPILER_MEMORY_BARRIER(); 30006468: e5923000 ldr r3, [r2] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 3000646c: e3530002 cmp r3, #2 <== NOT EXECUTED 30006470: ca00002e bgt 30006530 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 30006474: e59f5134 ldr r5, [pc, #308] ; 300065b0 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 30006478: e3c4a207 bic sl, r4, #1879048192 ; 0x70000000 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 3000647c: e5953000 ldr r3, [r5] <== NOT EXECUTED 30006480: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 30006484: eb0038e7 bl 30014828 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 30006488: e2146101 ands r6, r4, #1073741824 ; 0x40000000 <== NOT EXECUTED 3000648c: 1a000038 bne 30006574 <== 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); 30006490: e5953000 ldr r3, [r5] <== NOT EXECUTED 30006494: e1a02007 mov r2, r7 <== NOT EXECUTED 30006498: e1a01009 mov r1, r9 <== NOT EXECUTED 3000649c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 300064a0: eb005101 bl 3001a8ac <== NOT EXECUTED if (status) 300064a4: e35a0000 cmp sl, #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); 300064a8: e1a07000 mov r7, r0 <== NOT EXECUTED if (status) 300064ac: 1a000025 bne 30006548 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) 300064b0: e3560000 cmp r6, #0 <== NOT EXECUTED 300064b4: 0a00000b beq 300064e8 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 300064b8: da000004 ble 300064d0 <== NOT EXECUTED 300064bc: e1a00006 mov r0, r6 <== NOT EXECUTED 300064c0: eb003ca9 bl 3001576c <== NOT EXECUTED 300064c4: e5d03000 ldrb r3, [r0] <== NOT EXECUTED 300064c8: e3530000 cmp r3, #0 <== NOT EXECUTED 300064cc: 1a00002b bne 30006580 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 300064d0: e5953000 ldr r3, [r5] <== NOT EXECUTED 300064d4: e59f10d8 ldr r1, [pc, #216] ; 300065b4 <== NOT EXECUTED 300064d8: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 300064dc: e1a02006 mov r2, r6 <== NOT EXECUTED 300064e0: eb00398e bl 30014b20 <== NOT EXECUTED 300064e4: e0877000 add r7, r7, r0 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 300064e8: e5953000 ldr r3, [r5] <== NOT EXECUTED 300064ec: e59f10c4 ldr r1, [pc, #196] ; 300065b8 <== NOT EXECUTED 300064f0: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 300064f4: eb003989 bl 30014b20 <== NOT EXECUTED (void) fflush(stderr); 300064f8: 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"); 300064fc: e1a0a000 mov sl, r0 <== NOT EXECUTED (void) fflush(stderr); 30006500: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 30006504: eb0038c7 bl 30014828 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 30006508: e3140203 tst r4, #805306368 ; 0x30000000 <== 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"); 3000650c: 008a0007 addeq r0, sl, r7 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 30006510: 08bd87f0 popeq {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 30006514: e3580000 cmp r8, #0 <== NOT EXECUTED 30006518: 0a000006 beq 30006538 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 3000651c: e3a00000 mov r0, #0 <== NOT EXECUTED 30006520: e59f1094 ldr r1, [pc, #148] ; 300065bc <== NOT EXECUTED 30006524: eb000035 bl 30006600 <== NOT EXECUTED _exit(local_errno); 30006528: e1a00006 mov r0, r6 <== NOT EXECUTED 3000652c: eb00030f bl 30007170 <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); abort(); 30006530: e3a00000 mov r0, #0 <== NOT EXECUTED } } return chars_written; } 30006534: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED rtems_error(0, "fatal error, exiting"); _exit(local_errno); } else { rtems_error(0, "fatal error, aborting"); 30006538: e59f1080 ldr r1, [pc, #128] ; 300065c0 <== NOT EXECUTED 3000653c: e1a00008 mov r0, r8 <== NOT EXECUTED 30006540: eb00002e bl 30006600 <== NOT EXECUTED abort(); 30006544: eb0037bb bl 30014438 <== NOT EXECUTED #endif chars_written += vfprintf(stderr, printf_format, arglist); if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 30006548: e59f3060 ldr r3, [pc, #96] ; 300065b0 <== NOT EXECUTED 3000654c: e1a0000a mov r0, sl <== NOT EXECUTED 30006550: e5933000 ldr r3, [r3] <== NOT EXECUTED 30006554: e593a00c ldr sl, [r3, #12] <== NOT EXECUTED 30006558: ebffffae bl 30006418 <== NOT EXECUTED 3000655c: e59f1060 ldr r1, [pc, #96] ; 300065c4 <== NOT EXECUTED 30006560: e1a02000 mov r2, r0 <== NOT EXECUTED 30006564: e1a0000a mov r0, sl <== NOT EXECUTED 30006568: eb00396c bl 30014b20 <== NOT EXECUTED 3000656c: e0877000 add r7, r7, r0 <== NOT EXECUTED 30006570: eaffffce b 300064b0 <== NOT EXECUTED (void) fflush(stdout); /* in case stdout/stderr same */ status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ local_errno = errno; 30006574: eb0037b8 bl 3001445c <__errno> <== NOT EXECUTED 30006578: e5906000 ldr r6, [r0] <== NOT EXECUTED 3000657c: eaffffc3 b 30006490 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 30006580: e5953000 ldr r3, [r5] <== NOT EXECUTED 30006584: e1a00006 mov r0, r6 <== NOT EXECUTED 30006588: e593a00c ldr sl, [r3, #12] <== NOT EXECUTED 3000658c: eb003c76 bl 3001576c <== NOT EXECUTED 30006590: e59f1030 ldr r1, [pc, #48] ; 300065c8 <== NOT EXECUTED 30006594: e1a02000 mov r2, r0 <== NOT EXECUTED 30006598: e1a0000a mov r0, sl <== NOT EXECUTED 3000659c: eb00395f bl 30014b20 <== NOT EXECUTED 300065a0: e0877000 add r7, r7, r0 <== NOT EXECUTED if (status) chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); if (local_errno) { if ((local_errno > 0) && *strerror(local_errno)) 300065a4: eaffffcf b 300064e8 <== NOT EXECUTED 300065a8: 30025e44 .word 0x30025e44 300065ac: 30025fcc .word 0x30025fcc 300065b0: 30025650 .word 0x30025650 300065b4: 300243f0 .word 0x300243f0 300065b8: 30023ee0 .word 0x30023ee0 300065bc: 30024404 .word 0x30024404 300065c0: 3002441c .word 0x3002441c 300065c4: 300243d0 .word 0x300243d0 300065c8: 300243e0 .word 0x300243e0 30025a10 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 30025a10: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30025a14: e3a06000 mov r6, #0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 30025a18: e59f90e8 ldr r9, [pc, #232] ; 30025b08 limit++; continue; } sign = 1; } if (!isdigit(c)) 30025a1c: e59f80e8 ldr r8, [pc, #232] ; 30025b0c return 0; d = c - '0'; if ((i > (limit / 10)) 30025a20: e59fa0e8 ldr sl, [pc, #232] ; 30025b10 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 30025a24: e1a04000 mov r4, r0 30025a28: e1a0b001 mov fp, r1 30025a2c: e3e07102 mvn r7, #-2147483648 ; 0x80000000 30025a30: e1a05006 mov r5, r6 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 30025a34: e5943004 ldr r3, [r4, #4] 30025a38: e2433001 sub r3, r3, #1 30025a3c: e3530000 cmp r3, #0 30025a40: e5843004 str r3, [r4, #4] 30025a44: ba00001d blt 30025ac0 30025a48: e5943000 ldr r3, [r4] 30025a4c: e4d30001 ldrb r0, [r3], #1 if (c == ':') 30025a50: e350003a cmp r0, #58 ; 0x3a unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 30025a54: e5843000 str r3, [r4] if (c == ':') 30025a58: 0a00001d beq 30025ad4 break; if (sign == 0) { 30025a5c: e3560000 cmp r6, #0 30025a60: 1a000004 bne 30025a78 if (c == '-') { 30025a64: e350002d cmp r0, #45 ; 0x2d sign = -1; limit++; 30025a68: 02877001 addeq r7, r7, #1 30025a6c: 03e06000 mvneq r6, #0 for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { 30025a70: 0affffef beq 30025a34 sign = -1; limit++; continue; 30025a74: e3a06001 mov r6, #1 } sign = 1; } if (!isdigit(c)) 30025a78: e5983000 ldr r3, [r8] 30025a7c: e0833000 add r3, r3, r0 30025a80: e5d33001 ldrb r3, [r3, #1] 30025a84: e3130004 tst r3, #4 30025a88: 0a00001c beq 30025b00 return 0; d = c - '0'; if ((i > (limit / 10)) 30025a8c: e083279a umull r2, r3, sl, r7 30025a90: e15501a3 cmp r5, r3, lsr #3 30025a94: 8a000019 bhi 30025b00 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 30025a98: e2400030 sub r0, r0, #48 ; 0x30 30025a9c: 11a03105 lslne r3, r5, #2 if ((i > (limit / 10)) 30025aa0: 0a000011 beq 30025aec || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 30025aa4: e0835005 add r5, r3, r5 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 30025aa8: e5943004 ldr r3, [r4, #4] return 0; d = c - '0'; if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 30025aac: e0805085 add r5, r0, r5, lsl #1 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 30025ab0: e2433001 sub r3, r3, #1 30025ab4: e3530000 cmp r3, #0 30025ab8: e5843004 str r3, [r4, #4] 30025abc: aaffffe1 bge 30025a48 30025ac0: e5990000 ldr r0, [r9] <== NOT EXECUTED 30025ac4: e1a01004 mov r1, r4 <== NOT EXECUTED 30025ac8: eb007892 bl 30043d18 <__srget_r> <== NOT EXECUTED if (c == ':') 30025acc: e350003a cmp r0, #58 ; 0x3a <== NOT EXECUTED 30025ad0: 1affffe1 bne 30025a5c <== NOT EXECUTED if ((i > (limit / 10)) || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; } if (sign == 0) 30025ad4: e3560000 cmp r6, #0 30025ad8: 0a000008 beq 30025b00 return 0; *val = i * sign; 30025adc: e0030695 mul r3, r5, r6 30025ae0: e3a00001 mov r0, #1 30025ae4: e58b3000 str r3, [fp] return 1; 30025ae8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 30025aec: e1a03105 lsl r3, r5, #2 <== NOT EXECUTED 30025af0: e0832005 add r2, r3, r5 <== NOT EXECUTED 30025af4: e0472082 sub r2, r7, r2, lsl #1 <== NOT EXECUTED 30025af8: e1500002 cmp r0, r2 <== NOT EXECUTED 30025afc: 9affffe8 bls 30025aa4 <== NOT EXECUTED i = i * 10 + d; } if (sign == 0) return 0; *val = i * sign; return 1; 30025b00: e3a00000 mov r0, #0 <== NOT EXECUTED } 30025b04: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30025b08: 300635c0 .word 0x300635c0 30025b0c: 300635b4 .word 0x300635b4 30025b10: cccccccd .word 0xcccccccd 30025b14 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 30025b14: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30025b18: e1a05002 mov r5, r2 int c; *name = *bufp; 30025b1c: e5922000 ldr r2, [r2] /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 30025b20: e59d7018 ldr r7, [sp, #24] int c; *name = *bufp; for (;;) { c = getc(fp); 30025b24: e59f60c8 ldr r6, [pc, #200] ; 30025bf4 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 30025b28: e5812000 str r2, [r1] /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 30025b2c: e1a04000 mov r4, r0 30025b30: e1a08003 mov r8, r3 30025b34: ea000013 b 30025b88 int c; *name = *bufp; for (;;) { c = getc(fp); 30025b38: e5943000 ldr r3, [r4] 30025b3c: e4d30001 ldrb r0, [r3], #1 if (c == ':') { 30025b40: e350003a cmp r0, #58 ; 0x3a { int c; *name = *bufp; for (;;) { c = getc(fp); 30025b44: e5843000 str r3, [r4] if (c == ':') { 30025b48: 0a000018 beq 30025bb0 if (nlFlag) return 0; break; } if (c == '\n') { 30025b4c: e350000a cmp r0, #10 30025b50: 0a000023 beq 30025be4 if (!nlFlag) return 0; break; } if (c == EOF) 30025b54: e3700001 cmn r0, #1 30025b58: 0a000023 beq 30025bec return 0; if (*nleft < 2) 30025b5c: e5983000 ldr r3, [r8] 30025b60: e3530001 cmp r3, #1 30025b64: 9a000020 bls 30025bec return 0; **bufp = c; 30025b68: e5953000 ldr r3, [r5] 30025b6c: e5c30000 strb r0, [r3] ++(*bufp); 30025b70: e5952000 ldr r2, [r5] --(*nleft); 30025b74: e5983000 ldr r3, [r8] if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 30025b78: e2822001 add r2, r2, #1 --(*nleft); 30025b7c: e2433001 sub r3, r3, #1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 30025b80: e5852000 str r2, [r5] --(*nleft); 30025b84: e5883000 str r3, [r8] { int c; *name = *bufp; for (;;) { c = getc(fp); 30025b88: e5943004 ldr r3, [r4, #4] 30025b8c: e2433001 sub r3, r3, #1 30025b90: e3530000 cmp r3, #0 30025b94: e5843004 str r3, [r4, #4] 30025b98: aaffffe6 bge 30025b38 30025b9c: e5960000 ldr r0, [r6] 30025ba0: e1a01004 mov r1, r4 30025ba4: eb00785b bl 30043d18 <__srget_r> if (c == ':') { 30025ba8: e350003a cmp r0, #58 ; 0x3a 30025bac: 1affffe6 bne 30025b4c if (nlFlag) 30025bb0: e3570000 cmp r7, #0 30025bb4: 1a00000c bne 30025bec return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; 30025bb8: e5953000 ldr r3, [r5] 30025bbc: e3a02000 mov r2, #0 30025bc0: e5c32000 strb r2, [r3] ++(*bufp); 30025bc4: e5952000 ldr r2, [r5] --(*nleft); 30025bc8: e5983000 ldr r3, [r8] **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 30025bcc: e2822001 add r2, r2, #1 --(*nleft); 30025bd0: e2433001 sub r3, r3, #1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 30025bd4: e5852000 str r2, [r5] --(*nleft); 30025bd8: e5883000 str r3, [r8] 30025bdc: e3a00001 mov r0, #1 return 1; 30025be0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} if (nlFlag) return 0; break; } if (c == '\n') { if (!nlFlag) 30025be4: e3570000 cmp r7, #0 30025be8: 1afffff2 bne 30025bb8 --(*nleft); } **bufp = '\0'; ++(*bufp); --(*nleft); return 1; 30025bec: e3a00000 mov r0, #0 <== NOT EXECUTED } 30025bf0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 30025bf4: 300635c0 .word 0x300635c0 30025bf8 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 30025bf8: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30025bfc: e24dd014 sub sp, sp, #20 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 30025c00: e28d5008 add r5, sp, #8 30025c04: e28d4004 add r4, sp, #4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 30025c08: e58d2008 str r2, [sp, #8] 30025c0c: e58d3004 str r3, [sp, #4] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 30025c10: e3a06000 mov r6, #0 30025c14: e1a02005 mov r2, r5 30025c18: e1a03004 mov r3, r4 30025c1c: e58d6000 str r6, [sp] FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 30025c20: e1a07000 mov r7, r0 30025c24: e1a08001 mov r8, r1 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 30025c28: ebffffb9 bl 30025b14 30025c2c: e1500006 cmp r0, r6 30025c30: 1a000002 bne 30025c40 *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; return 1; 30025c34: e3a00000 mov r0, #0 <== NOT EXECUTED } 30025c38: e28dd014 add sp, sp, #20 30025c3c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 30025c40: e1a00007 mov r0, r7 30025c44: e2881004 add r1, r8, #4 30025c48: e1a02005 mov r2, r5 30025c4c: e1a03004 mov r3, r4 30025c50: e58d6000 str r6, [sp] 30025c54: ebffffae bl 30025b14 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 30025c58: e1500006 cmp r0, r6 30025c5c: 0afffff4 beq 30025c34 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 30025c60: e1a00007 mov r0, r7 30025c64: e28d1010 add r1, sp, #16 30025c68: ebffff68 bl 30025a10 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 30025c6c: e1500006 cmp r0, r6 30025c70: 0affffef beq 30025c34 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 30025c74: e1a03004 mov r3, r4 30025c78: e1a00007 mov r0, r7 30025c7c: e1a02005 mov r2, r5 30025c80: e3a04001 mov r4, #1 30025c84: e28d100c add r1, sp, #12 30025c88: e58d4000 str r4, [sp] 30025c8c: ebffffa0 bl 30025b14 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 30025c90: e1500006 cmp r0, r6 30025c94: 0affffe6 beq 30025c34 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; 30025c98: e1dd31b0 ldrh r3, [sp, #16] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30025c9c: e59d100c ldr r1, [sp, #12] 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; 30025ca0: e1c830b8 strh r3, [r8, #8] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30025ca4: e5d13000 ldrb r3, [r1] 30025ca8: e1530006 cmp r3, r6 30025cac: 03a04017 moveq r4, #23 30025cb0: 0a000007 beq 30025cd4 30025cb4: e1a02001 mov r2, r1 if(*cp == ',') 30025cb8: e353002c cmp r3, #44 ; 0x2c grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30025cbc: e5f23001 ldrb r3, [r2, #1]! if(*cp == ',') memcount++; 30025cc0: 02844001 addeq r4, r4, #1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30025cc4: e3530000 cmp r3, #0 30025cc8: 1afffffa bne 30025cb8 30025ccc: e1a04104 lsl r4, r4, #2 30025cd0: e2844013 add r4, r4, #19 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 30025cd4: e59d3004 ldr r3, [sp, #4] 30025cd8: e1530004 cmp r3, r4 30025cdc: 3affffd4 bcc 30025c34 return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 30025ce0: e59d3008 ldr r3, [sp, #8] 30025ce4: e283300f add r3, r3, #15 30025ce8: e3c3300f bic r3, r3, #15 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 30025cec: e5831000 str r1, [r3] for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30025cf0: e59d200c ldr r2, [sp, #12] /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 30025cf4: e588300c str r3, [r8, #12] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30025cf8: e5d23000 ldrb r3, [r2] 30025cfc: e3530000 cmp r3, #0 30025d00: 03a01004 moveq r1, #4 30025d04: 0a00000b beq 30025d38 30025d08: e2822001 add r2, r2, #1 30025d0c: e3a01001 mov r1, #1 if(*cp == ',') { *cp = '\0'; 30025d10: e3a00000 mov r0, #0 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { 30025d14: e353002c cmp r3, #44 ; 0x2c *cp = '\0'; 30025d18: 05420001 strbeq r0, [r2, #-1] grp->gr_mem[memcount++] = cp + 1; 30025d1c: 0598300c ldreq r3, [r8, #12] 30025d20: 07832101 streq r2, [r3, r1, lsl #2] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30025d24: e4d23001 ldrb r3, [r2], #1 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; 30025d28: 02811001 addeq r1, r1, #1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30025d2c: e3530000 cmp r3, #0 30025d30: 1afffff7 bne 30025d14 30025d34: e1a01101 lsl r1, r1, #2 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 30025d38: e598300c ldr r3, [r8, #12] 30025d3c: e3a02000 mov r2, #0 30025d40: e7832001 str r2, [r3, r1] 30025d44: e3a00001 mov r0, #1 return 1; 30025d48: eaffffba b 30025c38 30025d8c : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 30025d8c: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30025d90: e24dd014 sub sp, sp, #20 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30025d94: e28d5008 add r5, sp, #8 30025d98: e28d4004 add r4, sp, #4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 30025d9c: e58d2008 str r2, [sp, #8] 30025da0: e58d3004 str r3, [sp, #4] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30025da4: e3a06000 mov r6, #0 30025da8: e1a02005 mov r2, r5 30025dac: e1a03004 mov r3, r4 30025db0: e58d6000 str r6, [sp] FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 30025db4: e1a07000 mov r7, r0 30025db8: e1a08001 mov r8, r1 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30025dbc: ebffff54 bl 30025b14 30025dc0: e1500006 cmp r0, r6 30025dc4: 1a000002 bne 30025dd4 || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1)) return 0; pwd->pw_uid = pwuid; pwd->pw_gid = pwgid; return 1; 30025dc8: e3a00000 mov r0, #0 <== NOT EXECUTED } 30025dcc: e28dd014 add sp, sp, #20 30025dd0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 30025dd4: e1a00007 mov r0, r7 30025dd8: e2881004 add r1, r8, #4 30025ddc: e1a02005 mov r2, r5 30025de0: e1a03004 mov r3, r4 30025de4: e58d6000 str r6, [sp] 30025de8: ebffff49 bl 30025b14 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30025dec: e1500006 cmp r0, r6 30025df0: 0afffff4 beq 30025dc8 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 30025df4: e1a00007 mov r0, r7 30025df8: e28d1010 add r1, sp, #16 30025dfc: ebffff03 bl 30025a10 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30025e00: e1500006 cmp r0, r6 30025e04: 0affffef beq 30025dc8 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 30025e08: e1a00007 mov r0, r7 30025e0c: e28d100c add r1, sp, #12 30025e10: ebfffefe bl 30025a10 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30025e14: e1500006 cmp r0, r6 30025e18: 0affffea beq 30025dc8 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) 30025e1c: e1a00007 mov r0, r7 30025e20: e288100c add r1, r8, #12 30025e24: e1a02005 mov r2, r5 30025e28: e1a03004 mov r3, r4 30025e2c: e58d6000 str r6, [sp] 30025e30: ebffff37 bl 30025b14 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30025e34: e1500006 cmp r0, r6 30025e38: 0affffe2 beq 30025dc8 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0) 30025e3c: e1a00007 mov r0, r7 30025e40: e2881010 add r1, r8, #16 30025e44: e1a02005 mov r2, r5 30025e48: e1a03004 mov r3, r4 30025e4c: e58d6000 str r6, [sp] 30025e50: ebffff2f bl 30025b14 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30025e54: e1500006 cmp r0, r6 30025e58: 0affffda beq 30025dc8 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0) || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0) 30025e5c: e1a00007 mov r0, r7 30025e60: e2881014 add r1, r8, #20 30025e64: e1a02005 mov r2, r5 30025e68: e1a03004 mov r3, r4 30025e6c: e58d6000 str r6, [sp] 30025e70: ebffff27 bl 30025b14 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30025e74: e1500006 cmp r0, r6 30025e78: 0affffd2 beq 30025dc8 || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !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)) 30025e7c: e1a03004 mov r3, r4 30025e80: e1a00007 mov r0, r7 30025e84: e1a02005 mov r2, r5 30025e88: e3a04001 mov r4, #1 30025e8c: e2881018 add r1, r8, #24 30025e90: e58d4000 str r4, [sp] 30025e94: ebffff1e bl 30025b14 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30025e98: e1500006 cmp r0, r6 30025e9c: 0affffc9 beq 30025dc8 || !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; pwd->pw_gid = pwgid; 30025ea0: e1dd30bc ldrh r3, [sp, #12] 30025ea4: e1a00004 mov r0, r4 30025ea8: e1c830ba strh r3, [r8, #10] || !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; 30025eac: e1dd31b0 ldrh r3, [sp, #16] 30025eb0: e1c830b8 strh r3, [r8, #8] pwd->pw_gid = pwgid; return 1; 30025eb4: eaffffc4 b 30025dcc 30005228 : int sched_get_priority_min( int policy ) { switch ( policy ) { 30005228: e3500004 cmp r0, #4 #include int sched_get_priority_min( int policy ) { 3000522c: e52de004 push {lr} ; (str lr, [sp, #-4]!) switch ( policy ) { 30005230: 9a000004 bls 30005248 case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 30005234: eb00251b bl 3000e6a8 <__errno> 30005238: e3a03016 mov r3, #22 3000523c: e5803000 str r3, [r0] 30005240: e3e00000 mvn r0, #0 } return POSIX_SCHEDULER_MINIMUM_PRIORITY; } 30005244: e49df004 pop {pc} ; (ldr pc, [sp], #4) int sched_get_priority_min( int policy ) { switch ( policy ) { 30005248: e3a03001 mov r3, #1 3000524c: e1a00013 lsl r0, r3, r0 30005250: e3100017 tst r0, #23 30005254: 11a00003 movne r0, r3 30005258: 149df004 popne {pc} ; (ldrne pc, [sp], #4) case SCHED_RR: case SCHED_SPORADIC: break; default: rtems_set_errno_and_return_minus_one( EINVAL ); 3000525c: eb002511 bl 3000e6a8 <__errno> <== NOT EXECUTED 30005260: e3a03016 mov r3, #22 <== NOT EXECUTED 30005264: e5803000 str r3, [r0] <== NOT EXECUTED 30005268: e3e00000 mvn r0, #0 <== NOT EXECUTED } return POSIX_SCHEDULER_MINIMUM_PRIORITY; } 3000526c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30007784 : int sem_timedwait( sem_t *sem, const struct timespec *abstime ) { 30007784: e92d4010 push {r4, lr} 30007788: e24dd004 sub sp, sp, #4 3000778c: e1a04000 mov r4, r0 * * 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 ); 30007790: e1a00001 mov r0, r1 30007794: e1a0100d mov r1, sp 30007798: eb00162e bl 3000d058 <_POSIX_Absolute_timeout_to_ticks> if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) 3000779c: e3500003 cmp r0, #3 300077a0: 0a000005 beq 300077bc do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 300077a4: e1a00004 mov r0, r4 <== NOT EXECUTED 300077a8: e3a01000 mov r1, #0 <== NOT EXECUTED 300077ac: e59d2000 ldr r2, [sp] <== NOT EXECUTED 300077b0: eb0018ea bl 3000db60 <_POSIX_Semaphore_Wait_support> <== NOT EXECUTED break; } } return lock_status; } 300077b4: e28dd004 add sp, sp, #4 300077b8: e8bd8010 pop {r4, pc} */ status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks ); if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE ) do_wait = false; lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 300077bc: e1a00004 mov r0, r4 300077c0: e3a01001 mov r1, #1 300077c4: e59d2000 ldr r2, [sp] 300077c8: eb0018e4 bl 3000db60 <_POSIX_Semaphore_Wait_support> 300077cc: eafffff8 b 300077b4 300259b8 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 300259b8: e59f300c ldr r3, [pc, #12] ; 300259cc <== NOT EXECUTED 300259bc: e5933000 ldr r3, [r3] <== NOT EXECUTED 300259c0: e1c303b4 strh r0, [r3, #52] ; 0x34 <== NOT EXECUTED return 0; } 300259c4: e3a00000 mov r0, #0 <== NOT EXECUTED 300259c8: e12fff1e bx lr <== NOT EXECUTED 300259cc: 30062da8 .word 0x30062da8 30025fd8 : return NULL; return &grent; } void setgrent(void) { 30025fd8: e92d4010 push {r4, lr} <== NOT EXECUTED init_etc_passwd_group(); if (group_fp != NULL) 30025fdc: e59f4020 ldr r4, [pc, #32] ; 30026004 <== NOT EXECUTED return &grent; } void setgrent(void) { init_etc_passwd_group(); 30025fe0: ebffffc4 bl 30025ef8 <== NOT EXECUTED if (group_fp != NULL) 30025fe4: e5940000 ldr r0, [r4] <== NOT EXECUTED 30025fe8: e3500000 cmp r0, #0 <== NOT EXECUTED fclose(group_fp); 30025fec: 1b006297 blne 3003ea50 <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 30025ff0: e59f0010 ldr r0, [pc, #16] ; 30026008 <== NOT EXECUTED 30025ff4: e59f1010 ldr r1, [pc, #16] ; 3002600c <== NOT EXECUTED 30025ff8: eb0064b7 bl 3003f2dc <== NOT EXECUTED 30025ffc: e5840000 str r0, [r4] <== NOT EXECUTED } 30026000: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30026004: 30066868 .word 0x30066868 30026008: 3005b800 .word 0x3005b800 3002600c: 30061088 .word 0x30061088 300261d0 : return NULL; return &pwent; } void setpwent(void) { 300261d0: e92d4010 push {r4, lr} <== NOT EXECUTED init_etc_passwd_group(); if (passwd_fp != NULL) 300261d4: e59f4020 ldr r4, [pc, #32] ; 300261fc <== NOT EXECUTED return &pwent; } void setpwent(void) { init_etc_passwd_group(); 300261d8: ebffff46 bl 30025ef8 <== NOT EXECUTED if (passwd_fp != NULL) 300261dc: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED 300261e0: e3500000 cmp r0, #0 <== NOT EXECUTED fclose(passwd_fp); 300261e4: 1b006219 blne 3003ea50 <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 300261e8: e59f0010 ldr r0, [pc, #16] ; 30026200 <== NOT EXECUTED 300261ec: e59f1010 ldr r1, [pc, #16] ; 30026204 <== NOT EXECUTED 300261f0: eb006439 bl 3003f2dc <== NOT EXECUTED 300261f4: e5840004 str r0, [r4, #4] <== NOT EXECUTED } 300261f8: e8bd8010 pop {r4, pc} <== NOT EXECUTED 300261fc: 30066868 .word 0x30066868 30026200: 3005b750 .word 0x3005b750 30026204: 30061088 .word 0x30061088 30005880 : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 30005880: e59f300c ldr r3, [pc, #12] ; 30005894 <== NOT EXECUTED 30005884: e5933000 ldr r3, [r3] <== NOT EXECUTED 30005888: e1c303b2 strh r0, [r3, #50] ; 0x32 <== NOT EXECUTED return 0; } 3000588c: e3a00000 mov r0, #0 <== NOT EXECUTED 30005890: e12fff1e bx lr <== NOT EXECUTED 30005894: 30062da8 .word 0x30062da8 30002d6c : int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 30002d6c: e591203c ldr r2, [r1, #60] ; 0x3c <== NOT EXECUTED 30002d70: e59f3050 ldr r3, [pc, #80] ; 30002dc8 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 30002d74: 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)) { 30002d78: e0023003 and r3, r2, r3 <== NOT EXECUTED 30002d7c: e3530000 cmp r3, #0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 30002d80: e1a04001 mov r4, r1 <== NOT EXECUTED 30002d84: e20050ff and r5, r0, #255 ; 0xff <== NOT EXECUTED int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 30002d88: 1a000002 bne 30002d98 <== 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); 30002d8c: e1a00005 mov r0, r5 <== NOT EXECUTED } return i; } 30002d90: 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); 30002d94: eaffff82 b 30002ba4 <== NOT EXECUTED /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002d98: e3a01000 mov r1, #0 <== NOT EXECUTED 30002d9c: e1a02001 mov r2, r1 <== NOT EXECUTED 30002da0: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED 30002da4: eb00068c bl 300047dc <== NOT EXECUTED i = iproc (c, tty); 30002da8: e1a01004 mov r1, r4 <== NOT EXECUTED 30002dac: e1a00005 mov r0, r5 <== NOT EXECUTED 30002db0: ebffff7b bl 30002ba4 <== NOT EXECUTED 30002db4: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 30002db8: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED 30002dbc: eb0006ce bl 300048fc <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 30002dc0: e1a00005 mov r0, r5 <== NOT EXECUTED 30002dc4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30002dc8: 00000e78 .word 0x00000e78 30006e68 : int _STAT_NAME( const char *path, struct stat *buf ) { 30006e68: e92d4070 push {r4, r5, r6, lr} /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 30006e6c: e2515000 subs r5, r1, #0 int _STAT_NAME( const char *path, struct stat *buf ) { 30006e70: e24dd018 sub sp, sp, #24 30006e74: e1a06000 mov r6, r0 /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 30006e78: 0a00002f beq 30006f3c rtems_set_errno_and_return_minus_one( EFAULT ); status = rtems_filesystem_evaluate_path( path, strlen( path ), 30006e7c: eb00f931 bl 30045348 30006e80: e28d4004 add r4, sp, #4 30006e84: e1a01000 mov r1, r0 30006e88: e3a0c001 mov ip, #1 30006e8c: e1a00006 mov r0, r6 30006e90: e3a02000 mov r2, #0 30006e94: e1a03004 mov r3, r4 30006e98: e58dc000 str ip, [sp] 30006e9c: ebfff9fb bl 30005690 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 30006ea0: e2501000 subs r1, r0, #0 30006ea4: 1a000022 bne 30006f34 return -1; if ( !loc.handlers->fstat_h ){ 30006ea8: e59d300c ldr r3, [sp, #12] 30006eac: e5933018 ldr r3, [r3, #24] 30006eb0: e3530000 cmp r3, #0 30006eb4: 0a000013 beq 30006f08 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 30006eb8: e3a02048 mov r2, #72 ; 0x48 30006ebc: e1a00005 mov r0, r5 30006ec0: eb00eb4d bl 30041bfc status = (*loc.handlers->fstat_h)( &loc, buf ); 30006ec4: e1a01005 mov r1, r5 30006ec8: e59d300c ldr r3, [sp, #12] 30006ecc: e1a00004 mov r0, r4 30006ed0: e1a0e00f mov lr, pc 30006ed4: e593f018 ldr pc, [r3, #24] rtems_filesystem_freenode( &loc ); 30006ed8: e59d3010 ldr r3, [sp, #16] * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); status = (*loc.handlers->fstat_h)( &loc, buf ); 30006edc: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 30006ee0: e3530000 cmp r3, #0 30006ee4: 0a000004 beq 30006efc 30006ee8: e593301c ldr r3, [r3, #28] 30006eec: e3530000 cmp r3, #0 30006ef0: 11a00004 movne r0, r4 30006ef4: 11a0e00f movne lr, pc 30006ef8: 112fff13 bxne r3 return status; } 30006efc: e1a00005 mov r0, r5 30006f00: e28dd018 add sp, sp, #24 30006f04: e8bd8070 pop {r4, r5, r6, pc} 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) return -1; if ( !loc.handlers->fstat_h ){ rtems_filesystem_freenode( &loc ); 30006f08: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30006f0c: e3530000 cmp r3, #0 <== NOT EXECUTED 30006f10: 0a000004 beq 30006f28 <== NOT EXECUTED 30006f14: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30006f18: e3530000 cmp r3, #0 <== NOT EXECUTED 30006f1c: 11a00004 movne r0, r4 <== NOT EXECUTED 30006f20: 11a0e00f movne lr, pc <== NOT EXECUTED 30006f24: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30006f28: eb00de7b bl 3003e91c <__errno> <== NOT EXECUTED 30006f2c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30006f30: e5803000 str r3, [r0] <== NOT EXECUTED 30006f34: e3e05000 mvn r5, #0 30006f38: eaffffef b 30006efc /* * Check to see if we were passed a valid pointer. */ if ( !buf ) rtems_set_errno_and_return_minus_one( EFAULT ); 30006f3c: eb00de76 bl 3003e91c <__errno> 30006f40: e3a0300e mov r3, #14 30006f44: e5803000 str r3, [r0] 30006f48: e3e05000 mvn r5, #0 30006f4c: eaffffea b 30006efc 30026f08 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 30026f08: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 30026f0c: e24dd018 sub sp, sp, #24 <== NOT EXECUTED 30026f10: e1a04001 mov r4, r1 <== NOT EXECUTED 30026f14: 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 ) ) 30026f18: eb00790a bl 30045348 <== NOT EXECUTED 30026f1c: e28d5004 add r5, sp, #4 <== NOT EXECUTED 30026f20: e1a01000 mov r1, r0 <== NOT EXECUTED 30026f24: e3a0c001 mov ip, #1 <== NOT EXECUTED 30026f28: e1a00006 mov r0, r6 <== NOT EXECUTED 30026f2c: e3a02000 mov r2, #0 <== NOT EXECUTED 30026f30: e1a03005 mov r3, r5 <== NOT EXECUTED 30026f34: e58dc000 str ip, [sp] <== NOT EXECUTED 30026f38: ebff79d4 bl 30005690 <== NOT EXECUTED 30026f3c: e3500000 cmp r0, #0 <== NOT EXECUTED 30026f40: 1a000028 bne 30026fe8 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 30026f44: e59d3014 ldr r3, [sp, #20] <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; 30026f48: e5932028 ldr r2, [r3, #40] ; 0x28 <== NOT EXECUTED 30026f4c: e5922044 ldr r2, [r2, #68] ; 0x44 <== NOT EXECUTED 30026f50: e3520000 cmp r2, #0 <== NOT EXECUTED 30026f54: 0a000020 beq 30026fdc <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); 30026f58: e1a02004 mov r2, r4 <== NOT EXECUTED 30026f5c: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f60: e2822004 add r2, r2, #4 <== NOT EXECUTED 30026f64: e5840004 str r0, [r4, #4] <== NOT EXECUTED 30026f68: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f6c: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f70: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f74: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f78: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f7c: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f80: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f84: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f88: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f8c: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f90: e4820004 str r0, [r2], #4 <== NOT EXECUTED 30026f94: e5820000 str r0, [r2] <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 30026f98: e1a01004 mov r1, r4 <== NOT EXECUTED 30026f9c: e283001c add r0, r3, #28 <== NOT EXECUTED 30026fa0: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED 30026fa4: e1a0e00f mov lr, pc <== NOT EXECUTED 30026fa8: e593f044 ldr pc, [r3, #68] ; 0x44 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30026fac: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); memset (sb, 0, sizeof (struct statvfs)); result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 30026fb0: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30026fb4: e3530000 cmp r3, #0 <== NOT EXECUTED 30026fb8: 0a000004 beq 30026fd0 <== NOT EXECUTED 30026fbc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30026fc0: e3530000 cmp r3, #0 <== NOT EXECUTED 30026fc4: 11a00005 movne r0, r5 <== NOT EXECUTED 30026fc8: 11a0e00f movne lr, pc <== NOT EXECUTED 30026fcc: 112fff13 bxne r3 <== NOT EXECUTED return result; } 30026fd0: e1a00004 mov r0, r4 <== NOT EXECUTED 30026fd4: e28dd018 add sp, sp, #24 <== NOT EXECUTED 30026fd8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED mt_entry = loc.mt_entry; fs_mount_root = &mt_entry->mt_fs_root; if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30026fdc: eb005e4e bl 3003e91c <__errno> <== NOT EXECUTED 30026fe0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30026fe4: e5803000 str r3, [r0] <== NOT EXECUTED 30026fe8: e3e04000 mvn r4, #0 <== NOT EXECUTED 30026fec: eafffff7 b 30026fd0 <== NOT EXECUTED 30026ff0 : int symlink( const char *actualpath, const char *sympath ) { 30026ff0: e92d40f0 push {r4, r5, r6, r7, lr} rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 30026ff4: e5d13000 ldrb r3, [r1] int symlink( const char *actualpath, const char *sympath ) { 30026ff8: e24dd018 sub sp, sp, #24 rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 30026ffc: e353002f cmp r3, #47 ; 0x2f 30027000: 1353005c cmpne r3, #92 ; 0x5c int symlink( const char *actualpath, const char *sympath ) { 30027004: e1a0e001 mov lr, r1 30027008: e1a05000 mov r5, r0 rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 3002700c: 13a06000 movne r6, #0 30027010: 03a06001 moveq r6, #1 30027014: 0a000001 beq 30027020 30027018: e3530000 cmp r3, #0 3002701c: 1a000029 bne 300270c8 30027020: e59f30dc ldr r3, [pc, #220] ; 30027104 30027024: e1a0400d mov r4, sp 30027028: e593c000 ldr ip, [r3] 3002702c: e3a06001 mov r6, #1 30027030: e28cc018 add ip, ip, #24 30027034: e1a07004 mov r7, r4 30027038: e8bc000f ldm ip!, {r0, r1, r2, r3} 3002703c: e8a7000f stmia r7!, {r0, r1, r2, r3} if ( !loc.ops->evalformake_h ) { 30027040: e59d300c ldr r3, [sp, #12] rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 30027044: e59c2000 ldr r2, [ip] if ( !loc.ops->evalformake_h ) { 30027048: e5933004 ldr r3, [r3, #4] rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 3002704c: e5872000 str r2, [r7] if ( !loc.ops->evalformake_h ) { 30027050: e3530000 cmp r3, #0 30027054: 0a000025 beq 300270f0 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 30027058: e08e0006 add r0, lr, r6 3002705c: e1a0100d mov r1, sp 30027060: e28d2014 add r2, sp, #20 30027064: e1a0e00f mov lr, pc 30027068: e12fff13 bx r3 if ( result != 0 ) 3002706c: e3500000 cmp r0, #0 30027070: 1a000021 bne 300270fc return -1; if ( !loc.ops->symlink_h ) { 30027074: e59d200c ldr r2, [sp, #12] 30027078: e5923038 ldr r3, [r2, #56] ; 0x38 3002707c: e3530000 cmp r3, #0 30027080: 0a000015 beq 300270dc rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 30027084: e1a01005 mov r1, r5 30027088: e1a0000d mov r0, sp 3002708c: e59d2014 ldr r2, [sp, #20] 30027090: e1a0e00f mov lr, pc 30027094: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 30027098: e59d300c ldr r3, [sp, #12] if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 3002709c: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 300270a0: e3530000 cmp r3, #0 300270a4: 0a000004 beq 300270bc 300270a8: e593301c ldr r3, [r3, #28] 300270ac: e3530000 cmp r3, #0 300270b0: 11a0000d movne r0, sp 300270b4: 11a0e00f movne lr, pc 300270b8: 112fff13 bxne r3 return result; } 300270bc: e1a00005 mov r0, r5 300270c0: e28dd018 add sp, sp, #24 300270c4: e8bd80f0 pop {r4, r5, r6, r7, pc} rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 300270c8: e59f3034 ldr r3, [pc, #52] ; 30027104 300270cc: e1a0400d mov r4, sp 300270d0: e593c000 ldr ip, [r3] 300270d4: e28cc004 add ip, ip, #4 300270d8: eaffffd5 b 30027034 result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); if ( result != 0 ) return -1; if ( !loc.ops->symlink_h ) { rtems_filesystem_freenode( &loc ); 300270dc: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 300270e0: e3530000 cmp r3, #0 <== NOT EXECUTED 300270e4: 11a0000d movne r0, sp <== NOT EXECUTED 300270e8: 11a0e00f movne lr, pc <== NOT EXECUTED 300270ec: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300270f0: eb005e09 bl 3003e91c <__errno> <== NOT EXECUTED 300270f4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300270f8: e5803000 str r3, [r0] <== NOT EXECUTED 300270fc: e3e05000 mvn r5, #0 30027100: eaffffed b 300270bc 30027104: 30062da8 .word 0x30062da8 30011978 : int fd, int opt, struct termios *tp ) { switch (opt) { 30011978: e3510000 cmp r1, #0 int tcsetattr( int fd, int opt, struct termios *tp ) { 3001197c: e92d4030 push {r4, r5, lr} 30011980: e1a04002 mov r4, r2 30011984: e1a05000 mov r5, r0 switch (opt) { 30011988: 0a00000b beq 300119bc 3001198c: e3510001 cmp r1, #1 <== NOT EXECUTED 30011990: 0a000004 beq 300119a8 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 30011994: eb001552 bl 30016ee4 <__errno> <== NOT EXECUTED 30011998: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001199c: e5803000 str r3, [r0] <== NOT EXECUTED * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); } } 300119a0: e3e00000 mvn r0, #0 <== NOT EXECUTED 300119a4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED switch (opt) { default: rtems_set_errno_and_return_minus_one( ENOTSUP ); case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 300119a8: e3a01003 mov r1, #3 <== NOT EXECUTED 300119ac: e3a02000 mov r2, #0 <== NOT EXECUTED 300119b0: eb000f38 bl 30015698 <== NOT EXECUTED 300119b4: e3500000 cmp r0, #0 <== NOT EXECUTED 300119b8: bafffff8 blt 300119a0 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 300119bc: e1a00005 mov r0, r5 300119c0: e1a02004 mov r2, r4 300119c4: e3a01002 mov r1, #2 } } 300119c8: e8bd4030 pop {r4, r5, lr} return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 300119cc: ea000f31 b 30015698 3000cedc : #include int unlink( const char *path ) { 3000cedc: e92d40f0 push {r4, r5, r6, r7, lr} 3000cee0: e24dd02c sub sp, sp, #44 ; 0x2c 3000cee4: e1a05000 mov r5, r0 /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 3000cee8: ebffd106 bl 30001308 if ( parentpathlen == 0 ) 3000ceec: e2507000 subs r7, r0, #0 3000cef0: 1a000078 bne 3000d0d8 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 3000cef4: e5d53000 ldrb r3, [r5] 3000cef8: e353002f cmp r3, #47 ; 0x2f 3000cefc: 1353005c cmpne r3, #92 ; 0x5c 3000cf00: 1a000049 bne 3000d02c 3000cf04: e59f3258 ldr r3, [pc, #600] ; 3000d164 3000cf08: e28d4018 add r4, sp, #24 3000cf0c: e593c000 ldr ip, [r3] 3000cf10: e3a06000 mov r6, #0 3000cf14: e28cc018 add ip, ip, #24 3000cf18: e1a0e004 mov lr, r4 3000cf1c: e8bc000f ldm ip!, {r0, r1, r2, r3} 3000cf20: e8ae000f stmia lr!, {r0, r1, r2, r3} 3000cf24: e59c2000 ldr r2, [ip] 3000cf28: e58e2000 str r2, [lr] /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 3000cf2c: e28dc004 add ip, sp, #4 3000cf30: e1a0e004 mov lr, r4 3000cf34: e8be000f ldm lr!, {r0, r1, r2, r3} 3000cf38: e8ac000f stmia ip!, {r0, r1, r2, r3} 3000cf3c: e59e3000 ldr r3, [lr] name = path + parentpathlen; 3000cf40: e0855007 add r5, r5, r7 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 3000cf44: e58c3000 str r3, [ip] name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 3000cf48: e1a00005 mov r0, r5 3000cf4c: eb000615 bl 3000e7a8 3000cf50: e1a01000 mov r1, r0 3000cf54: e1a00005 mov r0, r5 3000cf58: ebffd0d6 bl 300012b8 3000cf5c: e0857000 add r7, r5, r0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 3000cf60: e1a00007 mov r0, r7 3000cf64: eb00060f bl 3000e7a8 3000cf68: e28d5004 add r5, sp, #4 3000cf6c: e3a0c000 mov ip, #0 3000cf70: e1a01000 mov r1, r0 3000cf74: e1a0200c mov r2, ip 3000cf78: e1a00007 mov r0, r7 3000cf7c: e1a03005 mov r3, r5 3000cf80: e58dc000 str ip, [sp] 3000cf84: ebffd0f9 bl 30001370 0, &loc, false ); if ( result != 0 ) { 3000cf88: e3500000 cmp r0, #0 3000cf8c: 1a00002e bne 3000d04c if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); return -1; } if ( !loc.ops->node_type_h ) { 3000cf90: e59d2010 ldr r2, [sp, #16] 3000cf94: e5923010 ldr r3, [r2, #16] 3000cf98: e3530000 cmp r3, #0 3000cf9c: 0a000039 beq 3000d088 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { 3000cfa0: e1a00005 mov r0, r5 3000cfa4: e1a0e00f mov lr, pc 3000cfa8: e12fff13 bx r3 3000cfac: e3500001 cmp r0, #1 3000cfb0: 0a000054 beq 3000d108 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { 3000cfb4: e59d2010 ldr r2, [sp, #16] 3000cfb8: e592300c ldr r3, [r2, #12] 3000cfbc: e3530000 cmp r3, #0 3000cfc0: 0a000030 beq 3000d088 if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 3000cfc4: e1a00004 mov r0, r4 3000cfc8: e1a01005 mov r1, r5 3000cfcc: e1a0e00f mov lr, pc 3000cfd0: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 3000cfd4: e59d3010 ldr r3, [sp, #16] if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 3000cfd8: e1a07000 mov r7, r0 rtems_filesystem_freenode( &loc ); 3000cfdc: e3530000 cmp r3, #0 3000cfe0: 0a000004 beq 3000cff8 3000cfe4: e593301c ldr r3, [r3, #28] 3000cfe8: e3530000 cmp r3, #0 3000cfec: 11a00005 movne r0, r5 3000cff0: 11a0e00f movne lr, pc 3000cff4: 112fff13 bxne r3 if ( free_parentloc ) 3000cff8: e3560000 cmp r6, #0 3000cffc: 0a000007 beq 3000d020 rtems_filesystem_freenode( &parentloc ); 3000d000: e59d3024 ldr r3, [sp, #36] ; 0x24 3000d004: e3530000 cmp r3, #0 3000d008: 0a000004 beq 3000d020 3000d00c: e593301c ldr r3, [r3, #28] 3000d010: e3530000 cmp r3, #0 3000d014: 11a00004 movne r0, r4 3000d018: 11a0e00f movne lr, pc 3000d01c: 112fff13 bxne r3 return result; } 3000d020: e1a00007 mov r0, r7 3000d024: e28dd02c add sp, sp, #44 ; 0x2c 3000d028: e8bd80f0 pop {r4, r5, r6, r7, pc} */ parentpathlen = rtems_filesystem_dirname ( path ); if ( parentpathlen == 0 ) rtems_filesystem_get_start_loc( path, &i, &parentloc ); 3000d02c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000d030: 0affffb3 beq 3000cf04 <== NOT EXECUTED 3000d034: e59f3128 ldr r3, [pc, #296] ; 3000d164 <== NOT EXECUTED 3000d038: e28d4018 add r4, sp, #24 <== NOT EXECUTED 3000d03c: e593c000 ldr ip, [r3] <== NOT EXECUTED 3000d040: e1a06007 mov r6, r7 <== NOT EXECUTED 3000d044: e28cc004 add ip, ip, #4 <== NOT EXECUTED 3000d048: eaffffb2 b 3000cf18 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) 3000d04c: e3560000 cmp r6, #0 3000d050: 1a000001 bne 3000d05c result = (*loc.ops->unlink_h)( &parentloc, &loc ); rtems_filesystem_freenode( &loc ); if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 3000d054: e3e07000 mvn r7, #0 <== NOT EXECUTED 3000d058: eafffff0 b 3000d020 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 0, &loc, false ); if ( result != 0 ) { if ( free_parentloc ) rtems_filesystem_freenode( &parentloc ); 3000d05c: e59d3024 ldr r3, [sp, #36] ; 0x24 3000d060: e3530000 cmp r3, #0 3000d064: 0afffffa beq 3000d054 3000d068: e593301c ldr r3, [r3, #28] 3000d06c: e3530000 cmp r3, #0 3000d070: 0afffff7 beq 3000d054 3000d074: e1a00004 mov r0, r4 3000d078: e1a0e00f mov lr, pc 3000d07c: e12fff13 bx r3 3000d080: e3e07000 mvn r7, #0 3000d084: eaffffe5 b 3000d020 rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( EISDIR ); } if ( !loc.ops->unlink_h ) { rtems_filesystem_freenode( &loc ); 3000d088: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3000d08c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000d090: 11a00005 movne r0, r5 <== NOT EXECUTED 3000d094: 11a0e00f movne lr, pc <== NOT EXECUTED 3000d098: 112fff13 bxne r3 <== NOT EXECUTED if ( free_parentloc ) 3000d09c: e3560000 cmp r6, #0 <== NOT EXECUTED 3000d0a0: 0a000007 beq 3000d0c4 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 3000d0a4: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 3000d0a8: e3530000 cmp r3, #0 <== NOT EXECUTED 3000d0ac: 0a000004 beq 3000d0c4 <== NOT EXECUTED 3000d0b0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000d0b4: e3530000 cmp r3, #0 <== NOT EXECUTED 3000d0b8: 11a00004 movne r0, r4 <== NOT EXECUTED 3000d0bc: 11a0e00f movne lr, pc <== NOT EXECUTED 3000d0c0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000d0c4: eb0001c6 bl 3000d7e4 <__errno> <== NOT EXECUTED 3000d0c8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000d0cc: e5803000 str r3, [r0] <== NOT EXECUTED 3000d0d0: e3e07000 mvn r7, #0 <== NOT EXECUTED 3000d0d4: eaffffd1 b 3000d020 <== 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, 3000d0d8: e28d4018 add r4, sp, #24 3000d0dc: e3a0c000 mov ip, #0 3000d0e0: e1a00005 mov r0, r5 3000d0e4: e1a01007 mov r1, r7 3000d0e8: e3a02002 mov r2, #2 3000d0ec: e1a03004 mov r3, r4 3000d0f0: e58dc000 str ip, [sp] 3000d0f4: ebffd0d9 bl 30001460 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 3000d0f8: e3500000 cmp r0, #0 3000d0fc: 1affffd4 bne 3000d054 3000d100: e3a06001 mov r6, #1 3000d104: eaffff88 b 3000cf2c rtems_filesystem_freenode( &parentloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) { rtems_filesystem_freenode( &loc ); 3000d108: e59d3010 ldr r3, [sp, #16] 3000d10c: e3530000 cmp r3, #0 3000d110: 0a000004 beq 3000d128 3000d114: e593301c ldr r3, [r3, #28] 3000d118: e3530000 cmp r3, #0 3000d11c: 11a00005 movne r0, r5 3000d120: 11a0e00f movne lr, pc 3000d124: 112fff13 bxne r3 if ( free_parentloc ) 3000d128: e3560000 cmp r6, #0 3000d12c: 0a000007 beq 3000d150 rtems_filesystem_freenode( &parentloc ); 3000d130: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 3000d134: e3530000 cmp r3, #0 <== NOT EXECUTED 3000d138: 0a000004 beq 3000d150 <== NOT EXECUTED 3000d13c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000d140: e3530000 cmp r3, #0 <== NOT EXECUTED 3000d144: 11a00004 movne r0, r4 <== NOT EXECUTED 3000d148: 11a0e00f movne lr, pc <== NOT EXECUTED 3000d14c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 3000d150: eb0001a3 bl 3000d7e4 <__errno> 3000d154: e3a03015 mov r3, #21 3000d158: e5803000 str r3, [r0] 3000d15c: e3e07000 mvn r7, #0 3000d160: eaffffae b 3000d020 3000d164: 3001a0a0 .word 0x3001a0a0 30008fa8 : */ int unmount( const char *path ) { 30008fa8: e92d4030 push {r4, r5, lr} 30008fac: e24dd018 sub sp, sp, #24 30008fb0: e1a05000 mov r5, r0 * 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 ) ) 30008fb4: eb00f0e3 bl 30045348 30008fb8: e28d4004 add r4, sp, #4 30008fbc: e1a01000 mov r1, r0 30008fc0: e3a0c001 mov ip, #1 30008fc4: e1a00005 mov r0, r5 30008fc8: e3a02000 mov r2, #0 30008fcc: e1a03004 mov r3, r4 30008fd0: e58dc000 str ip, [sp] 30008fd4: ebfff1ad bl 30005690 30008fd8: e3500000 cmp r0, #0 30008fdc: 1a000032 bne 300090ac return -1; mt_entry = loc.mt_entry; 30008fe0: e59d5014 ldr r5, [sp, #20] fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 30008fe4: e59d3004 ldr r3, [sp, #4] 30008fe8: e595201c ldr r2, [r5, #28] 30008fec: e1520003 cmp r2, r3 30008ff0: 1a000049 bne 3000911c /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 30008ff4: e59d3010 ldr r3, [sp, #16] 30008ff8: e3530000 cmp r3, #0 30008ffc: 0a000004 beq 30009014 30009000: e593301c ldr r3, [r3, #28] 30009004: e3530000 cmp r3, #0 30009008: 11a00004 movne r0, r4 3000900c: 11a0e00f movne lr, pc 30009010: 112fff13 bxne r3 if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x0, &loc, true ) ) return -1; mt_entry = loc.mt_entry; fs_mount_loc = &mt_entry->mt_point_node; 30009014: e5953014 ldr r3, [r5, #20] 30009018: e5933028 ldr r3, [r3, #40] ; 0x28 3000901c: e3530000 cmp r3, #0 30009020: 0a000052 beq 30009170 fs_root_loc = &mt_entry->mt_fs_root; 30009024: e5953028 ldr r3, [r5, #40] ; 0x28 30009028: e593302c ldr r3, [r3, #44] ; 0x2c 3000902c: e3530000 cmp r3, #0 30009030: 0a00004e beq 30009170 * 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 ) 30009034: e59f3148 ldr r3, [pc, #328] ; 30009184 30009038: e5933000 ldr r3, [r3] 3000903c: e5933014 ldr r3, [r3, #20] 30009040: e1530005 cmp r3, r5 30009044: 0a00001b beq 300090b8 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 30009048: e59f1138 ldr r1, [pc, #312] ; 30009188 3000904c: e4913004 ldr r3, [r1], #4 30009050: e1530001 cmp r3, r1 30009054: 0a00000a beq 30009084 !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { the_mount_entry = ( rtems_filesystem_mount_table_entry_t * )the_node; if (the_mount_entry->mt_point_node.mt_entry == fs_root_loc->mt_entry ) { 30009058: e595002c ldr r0, [r5, #44] ; 0x2c 3000905c: e5932018 ldr r2, [r3, #24] 30009060: e1520000 cmp r2, r0 30009064: 1a000003 bne 30009078 30009068: ea000012 b 300090b8 <== NOT EXECUTED 3000906c: e5932018 ldr r2, [r3, #24] 30009070: e1500002 cmp r0, r2 30009074: 0a00000f beq 300090b8 * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; !rtems_chain_is_tail( &rtems_filesystem_mount_table_control, the_node ); the_node = the_node->next ) { 30009078: e5933000 ldr r3, [r3] /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 3000907c: e1530001 cmp r3, r1 30009080: 1afffff9 bne 3000906c * 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 ) 30009084: e1a00005 mov r0, r5 30009088: ebfff26e bl 30005a48 3000908c: e3500001 cmp r0, #1 30009090: 0a000008 beq 300090b8 * 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 ) 30009094: e5953014 ldr r3, [r5, #20] 30009098: e1a00005 mov r0, r5 3000909c: e1a0e00f mov lr, pc 300090a0: e593f028 ldr pc, [r3, #40] ; 0x28 300090a4: e2504000 subs r4, r0, #0 300090a8: 0a000007 beq 300090cc */ rtems_filesystem_freenode( fs_mount_loc ); free( mt_entry ); return 0; 300090ac: e3e00000 mvn r0, #0 } 300090b0: e28dd018 add sp, sp, #24 300090b4: e8bd8030 pop {r4, r5, pc} * 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 ) rtems_set_errno_and_return_minus_one( EBUSY ); 300090b8: eb00d617 bl 3003e91c <__errno> 300090bc: e3a03010 mov r3, #16 300090c0: e5803000 str r3, [r0] 300090c4: e3e00000 mvn r0, #0 300090c8: eafffff8 b 300090b0 * 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){ 300090cc: e5953028 ldr r3, [r5, #40] ; 0x28 300090d0: e1a00005 mov r0, r5 300090d4: e1a0e00f mov lr, pc 300090d8: e593f02c ldr pc, [r3, #44] ; 0x2c 300090dc: e3500000 cmp r0, #0 300090e0: 1a00001a bne 30009150 */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 300090e4: e1a00005 mov r0, r5 300090e8: eb0005b2 bl 3000a7b8 <_Chain_Extract> /* * 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 ); 300090ec: e5953014 ldr r3, [r5, #20] 300090f0: e3530000 cmp r3, #0 300090f4: 0a000004 beq 3000910c 300090f8: e593301c ldr r3, [r3, #28] 300090fc: e3530000 cmp r3, #0 30009100: 12850008 addne r0, r5, #8 30009104: 11a0e00f movne lr, pc 30009108: 112fff13 bxne r3 free( mt_entry ); 3000910c: e1a00005 mov r0, r5 30009110: ebfff18f bl 30005754 30009114: e3a00000 mov r0, #0 return 0; 30009118: eaffffe4 b 300090b0 /* * Verify this is the root node for the file system to be unmounted. */ if ( !rtems_filesystem_nodes_equal( fs_root_loc, &loc) ){ rtems_filesystem_freenode( &loc ); 3000911c: e59d3010 ldr r3, [sp, #16] 30009120: e3530000 cmp r3, #0 30009124: 0a000004 beq 3000913c 30009128: e593301c ldr r3, [r3, #28] 3000912c: e3530000 cmp r3, #0 30009130: 11a00004 movne r0, r4 30009134: 11a0e00f movne lr, pc 30009138: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( EACCES ); 3000913c: eb00d5f6 bl 3003e91c <__errno> 30009140: e3a0300d mov r3, #13 30009144: e5803000 str r3, [r0] 30009148: e3e00000 mvn r0, #0 3000914c: eaffffd7 b 300090b0 * This was response was questionable but the best we could * come up with. */ if ((fs_root_loc->ops->fsunmount_me_h )( mt_entry ) != 0){ if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 30009150: e1a00005 mov r0, r5 <== NOT EXECUTED 30009154: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED 30009158: e1a0e00f mov lr, pc <== NOT EXECUTED 3000915c: e593f020 ldr pc, [r3, #32] <== NOT EXECUTED 30009160: e3500000 cmp r0, #0 <== NOT EXECUTED 30009164: 0affffd0 beq 300090ac <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 30009168: e1a00004 mov r0, r4 <== NOT EXECUTED 3000916c: eb0004be bl 3000a46c <== NOT EXECUTED if ( !fs_mount_loc->ops->unmount_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( !fs_root_loc->ops->fsunmount_me_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30009170: eb00d5e9 bl 3003e91c <__errno> <== NOT EXECUTED 30009174: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30009178: e5803000 str r3, [r0] <== NOT EXECUTED 3000917c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30009180: eaffffca b 300090b0 <== NOT EXECUTED 30009184: 30062da8 .word 0x30062da8 30009188: 30066b98 .word 0x30066b98 30027194 : int utime( const char *path, const struct utimbuf *times ) { 30027194: e92d4070 push {r4, r5, r6, lr} 30027198: e24dd018 sub sp, sp, #24 3002719c: e1a05001 mov r5, r1 300271a0: e1a06000 mov r6, r0 rtems_filesystem_location_info_t temp_loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) ) 300271a4: eb007867 bl 30045348 300271a8: e28d4004 add r4, sp, #4 300271ac: e1a01000 mov r1, r0 300271b0: e3a0c001 mov ip, #1 300271b4: e1a00006 mov r0, r6 300271b8: e3a02000 mov r2, #0 300271bc: e1a03004 mov r3, r4 300271c0: e58dc000 str ip, [sp] 300271c4: ebff7931 bl 30005690 300271c8: e3500000 cmp r0, #0 300271cc: 1a00001b bne 30027240 return -1; if ( !temp_loc.ops->utime_h ){ 300271d0: e59d2010 ldr r2, [sp, #16] 300271d4: e5923030 ldr r3, [r2, #48] ; 0x30 300271d8: e3530000 cmp r3, #0 300271dc: 0a00000f beq 30027220 rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 300271e0: e8950006 ldm r5, {r1, r2} 300271e4: e1a00004 mov r0, r4 300271e8: e1a0e00f mov lr, pc 300271ec: e12fff13 bx r3 rtems_filesystem_freenode( &temp_loc ); 300271f0: e59d3010 ldr r3, [sp, #16] if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 300271f4: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); 300271f8: e3530000 cmp r3, #0 300271fc: 0a000004 beq 30027214 30027200: e593301c ldr r3, [r3, #28] 30027204: e3530000 cmp r3, #0 30027208: 11a00004 movne r0, r4 3002720c: 11a0e00f movne lr, pc 30027210: 112fff13 bxne r3 return result; } 30027214: e1a00005 mov r0, r5 30027218: e28dd018 add sp, sp, #24 3002721c: e8bd8070 pop {r4, r5, r6, pc} if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &temp_loc, true ) ) return -1; if ( !temp_loc.ops->utime_h ){ rtems_filesystem_freenode( &temp_loc ); 30027220: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30027224: e3530000 cmp r3, #0 <== NOT EXECUTED 30027228: 11a00004 movne r0, r4 <== NOT EXECUTED 3002722c: 11a0e00f movne lr, pc <== NOT EXECUTED 30027230: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30027234: eb005db8 bl 3003e91c <__errno> <== NOT EXECUTED 30027238: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3002723c: e5803000 str r3, [r0] <== NOT EXECUTED 30027240: e3e05000 mvn r5, #0 30027244: eafffff2 b 30027214 300189c0 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300189c0: e59f30bc ldr r3, [pc, #188] ; 30018a84 ssize_t write( int fd, const void *buffer, size_t count ) { 300189c4: e92d4810 push {r4, fp, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300189c8: e5933000 ldr r3, [r3] 300189cc: e1500003 cmp r0, r3 300189d0: 2a00001c bcs 30018a48 iop = rtems_libio_iop( fd ); 300189d4: e59f40ac ldr r4, [pc, #172] ; 30018a88 300189d8: e5944000 ldr r4, [r4] 300189dc: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); 300189e0: e5940014 ldr r0, [r4, #20] 300189e4: e3100c01 tst r0, #256 ; 0x100 300189e8: 0a000016 beq 30018a48 rtems_libio_check_buffer( buffer ); 300189ec: e3510000 cmp r1, #0 300189f0: 0a000019 beq 30018a5c rtems_libio_check_count( count ); 300189f4: e3520000 cmp r2, #0 300189f8: 01a00002 moveq r0, r2 300189fc: 08bd8810 popeq {r4, fp, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30018a00: e3100004 tst r0, #4 30018a04: 0a000014 beq 30018a5c /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 30018a08: e594303c ldr r3, [r4, #60] ; 0x3c 30018a0c: e593300c ldr r3, [r3, #12] 30018a10: e3530000 cmp r3, #0 30018a14: 0a000015 beq 30018a70 rtems_set_errno_and_return_minus_one( ENOTSUP ); rc = (*iop->handlers->write_h)( iop, buffer, count ); 30018a18: e1a00004 mov r0, r4 30018a1c: e1a0e00f mov lr, pc 30018a20: e12fff13 bx r3 if ( rc > 0 ) 30018a24: e3500000 cmp r0, #0 30018a28: d8bd8810 pople {r4, fp, pc} iop->offset += rc; 30018a2c: e284c00c add ip, r4, #12 30018a30: e89c1800 ldm ip, {fp, ip} 30018a34: e09b2000 adds r2, fp, r0 30018a38: e0ac3fc0 adc r3, ip, r0, asr #31 30018a3c: e584200c str r2, [r4, #12] 30018a40: e5843010 str r3, [r4, #16] return rc; } 30018a44: e8bd8810 pop {r4, fp, pc} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 30018a48: ebffd365 bl 3000d7e4 <__errno> <== NOT EXECUTED 30018a4c: e3a03009 mov r3, #9 <== NOT EXECUTED 30018a50: e5803000 str r3, [r0] <== NOT EXECUTED 30018a54: e3e00000 mvn r0, #0 <== NOT EXECUTED 30018a58: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED rtems_libio_check_buffer( buffer ); rtems_libio_check_count( count ); rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30018a5c: ebffd360 bl 3000d7e4 <__errno> <== NOT EXECUTED 30018a60: e3a03016 mov r3, #22 <== NOT EXECUTED 30018a64: e5803000 str r3, [r0] <== NOT EXECUTED 30018a68: e3e00000 mvn r0, #0 <== NOT EXECUTED 30018a6c: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30018a70: ebffd35b bl 3000d7e4 <__errno> <== NOT EXECUTED 30018a74: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30018a78: e5803000 str r3, [r0] <== NOT EXECUTED 30018a7c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30018a80: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED 30018a84: 30019ea8 .word 0x30019ea8 30018a88: 3001a848 .word 0x3001a848 30005b04 : int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 30005b04: e59f3178 ldr r3, [pc, #376] ; 30005c84 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 30005b08: e92d49f0 push {r4, r5, r6, r7, r8, fp, lr} int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 30005b0c: e5933000 ldr r3, [r3] ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 30005b10: e1a05002 mov r5, r2 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 30005b14: e1500003 cmp r0, r3 30005b18: 2a00004d bcs 30005c54 iop = rtems_libio_iop( fd ); 30005b1c: e59f3164 ldr r3, [pc, #356] ; 30005c88 30005b20: e5937000 ldr r7, [r3] 30005b24: e0877300 add r7, r7, r0, lsl #6 rtems_libio_check_is_open( iop ); 30005b28: e5973014 ldr r3, [r7, #20] 30005b2c: e3130c01 tst r3, #256 ; 0x100 30005b30: 0a000047 beq 30005c54 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30005b34: e3130004 tst r3, #4 30005b38: 0a00003f beq 30005c3c /* * Argument validation on IO vector */ if ( !iov ) 30005b3c: e3510000 cmp r1, #0 30005b40: 0a00003d beq 30005c3c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 30005b44: e3520000 cmp r2, #0 30005b48: da00003b ble 30005c3c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 30005b4c: e3520b01 cmp r2, #1024 ; 0x400 30005b50: ca000039 bgt 30005c3c rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 30005b54: e597303c ldr r3, [r7, #60] ; 0x3c 30005b58: e593300c ldr r3, [r3, #12] 30005b5c: e3530000 cmp r3, #0 30005b60: 0a000042 beq 30005c70 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30005b64: e1a04001 mov r4, r1 30005b68: e3a01000 mov r1, #0 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 30005b6c: e59fc118 ldr ip, [pc, #280] ; 30005c8c if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30005b70: e1a02004 mov r2, r4 30005b74: e3a06001 mov r6, #1 30005b78: e1a08001 mov r8, r1 30005b7c: ea000000 b 30005b84 * 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++ ) { 30005b80: e1a08003 mov r8, r3 if ( !iov[v].iov_base ) 30005b84: e5923000 ldr r3, [r2] * 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++ ) { 30005b88: e2811001 add r1, r1, #1 if ( !iov[v].iov_base ) 30005b8c: e3530000 cmp r3, #0 30005b90: 0a000029 beq 30005c3c rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) 30005b94: e5920004 ldr r0, [r2, #4] * 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++ ) { 30005b98: e2822008 add r2, r2, #8 if ( iov[v].iov_len ) all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 30005b9c: e0883000 add r3, r8, r0 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len < 0 ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len ) 30005ba0: e3500000 cmp r0, #0 30005ba4: 13a06000 movne r6, #0 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 30005ba8: e1580003 cmp r8, r3 30005bac: d153000c cmple r3, ip 30005bb0: d3a08000 movle r8, #0 30005bb4: c3a08001 movgt r8, #1 30005bb8: ca00001f bgt 30005c3c * 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++ ) { 30005bbc: e1550001 cmp r5, r1 30005bc0: caffffee bgt 30005b80 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 30005bc4: e3560000 cmp r6, #0 <== NOT EXECUTED 30005bc8: 1a00001f bne 30005c4c <== NOT EXECUTED 30005bcc: e1a08006 mov r8, r6 <== NOT EXECUTED 30005bd0: ea000002 b 30005be0 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 30005bd4: e1550006 cmp r5, r6 <== NOT EXECUTED 30005bd8: e2844008 add r4, r4, #8 <== NOT EXECUTED 30005bdc: da00001a ble 30005c4c <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 30005be0: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 30005be4: e2866001 add r6, r6, #1 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 30005be8: e3520000 cmp r2, #0 <== NOT EXECUTED 30005bec: 0afffff8 beq 30005bd4 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); 30005bf0: e5941000 ldr r1, [r4] <== NOT EXECUTED 30005bf4: e597303c ldr r3, [r7, #60] ; 0x3c <== NOT EXECUTED 30005bf8: e1a00007 mov r0, r7 <== NOT EXECUTED 30005bfc: e1a0e00f mov lr, pc <== NOT EXECUTED 30005c00: e593f00c ldr pc, [r3, #12] <== NOT EXECUTED if ( bytes < 0 ) 30005c04: e3500000 cmp r0, #0 <== NOT EXECUTED 30005c08: ba000016 blt 30005c68 <== NOT EXECUTED return -1; if ( bytes > 0 ) { 30005c0c: 0a000006 beq 30005c2c <== NOT EXECUTED iop->offset += bytes; 30005c10: e287c00c add ip, r7, #12 <== NOT EXECUTED 30005c14: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED 30005c18: e09b2000 adds r2, fp, r0 <== NOT EXECUTED 30005c1c: e0ac3fc0 adc r3, ip, r0, asr #31 <== NOT EXECUTED 30005c20: e587200c str r2, [r7, #12] <== NOT EXECUTED 30005c24: e5873010 str r3, [r7, #16] <== NOT EXECUTED total += bytes; 30005c28: e0888000 add r8, r8, r0 <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) 30005c2c: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 30005c30: e1500003 cmp r0, r3 <== NOT EXECUTED 30005c34: 0affffe6 beq 30005bd4 <== NOT EXECUTED 30005c38: ea000003 b 30005c4c <== NOT EXECUTED /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); 30005c3c: eb0028c7 bl 3000ff60 <__errno> 30005c40: e3a03016 mov r3, #22 30005c44: e5803000 str r3, [r0] 30005c48: e3e08000 mvn r8, #0 if (bytes != iov[ v ].iov_len) break; } return total; } 30005c4c: e1a00008 mov r0, r8 30005c50: e8bd89f0 pop {r4, r5, r6, r7, r8, fp, pc} ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); iop = rtems_libio_iop( fd ); rtems_libio_check_is_open( iop ); 30005c54: eb0028c1 bl 3000ff60 <__errno> 30005c58: e3a03009 mov r3, #9 30005c5c: e5803000 str r3, [r0] 30005c60: e3e08000 mvn r8, #0 30005c64: eafffff8 b 30005c4c if ( iov[v].iov_len == 0 ) continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) 30005c68: e3e08000 mvn r8, #0 <== NOT EXECUTED 30005c6c: eafffff6 b 30005c4c <== NOT EXECUTED if ( iovcnt > IOV_MAX ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 30005c70: eb0028ba bl 3000ff60 <__errno> <== NOT EXECUTED 30005c74: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30005c78: e5803000 str r3, [r0] <== NOT EXECUTED 30005c7c: e3e08000 mvn r8, #0 <== NOT EXECUTED 30005c80: eafffff1 b 30005c4c <== NOT EXECUTED 30005c84: 3001eb00 .word 0x3001eb00 30005c88: 3001fc74 .word 0x3001fc74 30005c8c: 00007fff .word 0x00007fff