30007918 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 30007918: e5902000 ldr r2, [r0] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 3000791c: e5903010 ldr r3, [r0, #16] switch( node->type ) { 30007920: e592204c ldr r2, [r2, #76] ; 0x4c ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 30007924: e5933034 ldr r3, [r3, #52] ; 0x34 switch( node->type ) { 30007928: e2422001 sub r2, r2, #1 3000792c: e3520006 cmp r2, #6 30007930: 979ff102 ldrls pc, [pc, r2, lsl #2] 30007934: ea000010 b 3000797c <== NOT EXECUTED 30007938: 30007954 .word 0x30007954 <== NOT EXECUTED 3000793c: 3000795c .word 0x3000795c <== NOT EXECUTED 30007940: 30007964 .word 0x30007964 <== NOT EXECUTED 30007944: 30007964 .word 0x30007964 <== NOT EXECUTED 30007948: 3000796c .word 0x3000796c <== NOT EXECUTED 3000794c: 3000796c .word 0x3000796c <== NOT EXECUTED 30007950: 30007974 .word 0x30007974 <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 30007954: e5933008 ldr r3, [r3, #8] 30007958: ea000006 b 30007978 break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 3000795c: e59f3020 ldr r3, [pc, #32] ; 30007984 30007960: ea000004 b 30007978 break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 30007964: e59f301c ldr r3, [pc, #28] ; 30007988 30007968: ea000002 b 30007978 break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 3000796c: e5933004 ldr r3, [r3, #4] 30007970: ea000000 b 30007978 break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 30007974: e59f3010 ldr r3, [pc, #16] ; 3000798c 30007978: e5803008 str r3, [r0, #8] break; } return 0; } 3000797c: e3a00000 mov r0, #0 30007980: e12fff1e bx lr 30007984: 30018554 .word 0x30018554 30007988: 3001858c .word 0x3001858c 3000798c: 300184fc .word 0x300184fc 3000c998 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 3000c998: e92d40f3 push {r0, r1, r4, r5, r6, r7, lr} 3000c99c: e1a02802 lsl r2, r2, #16 3000c9a0: e1a01801 lsl r1, r1, #16 IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; 3000c9a4: e5904000 ldr r4, [r0] int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { 3000c9a8: e1a07821 lsr r7, r1, #16 3000c9ac: 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(); 3000c9b0: eb000443 bl 3000dac4 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 3000c9b4: e1d453bc ldrh r5, [r4, #60] ; 0x3c 3000c9b8: e3500000 cmp r0, #0 3000c9bc: 11550000 cmpne r5, r0 3000c9c0: 03a05000 moveq r5, #0 3000c9c4: 13a05001 movne r5, #1 3000c9c8: 0a000004 beq 3000c9e0 rtems_set_errno_and_return_minus_one( EPERM ); 3000c9cc: eb00155f bl 30011f50 <__errno> <== NOT EXECUTED 3000c9d0: e3a03001 mov r3, #1 <== NOT EXECUTED 3000c9d4: e5803000 str r3, [r0] <== NOT EXECUTED 3000c9d8: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000c9dc: ea000007 b 3000ca00 <== NOT EXECUTED #endif jnode->st_uid = owner; 3000c9e0: e1c473bc strh r7, [r4, #60] ; 0x3c jnode->st_gid = group; 3000c9e4: e1c463be strh r6, [r4, #62] ; 0x3e IMFS_update_ctime( jnode ); 3000c9e8: e1a0000d mov r0, sp 3000c9ec: e1a01005 mov r1, r5 3000c9f0: ebffd833 bl 30002ac4 3000c9f4: e59d3000 ldr r3, [sp] 3000c9f8: e1a00005 mov r0, r5 3000c9fc: e5843048 str r3, [r4, #72] ; 0x48 return 0; } 3000ca00: e8bd80fc pop {r2, r3, r4, r5, r6, r7, pc} 3000b274 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 3000b274: 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 ) 3000b278: e2504000 subs r4, r0, #0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 3000b27c: e1a05001 mov r5, r1 3000b280: e59d6014 ldr r6, [sp, #20] IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) 3000b284: 01a07004 moveq r7, r4 3000b288: 0a000042 beq 3000b398 return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 3000b28c: e1a01002 mov r1, r2 3000b290: e59f2108 ldr r2, [pc, #264] ; 3000b3a0 3000b294: e1a00005 mov r0, r5 3000b298: e5922000 ldr r2, [r2] 3000b29c: e592202c ldr r2, [r2, #44] ; 0x2c 3000b2a0: e1c32002 bic r2, r3, r2 3000b2a4: ebffffc4 bl 3000b1bc if ( !node ) 3000b2a8: e2507000 subs r7, r0, #0 3000b2ac: 0a000039 beq 3000b398 return NULL; /* * Set the type specific information */ switch (type) { 3000b2b0: e2455001 sub r5, r5, #1 3000b2b4: e3550006 cmp r5, #6 3000b2b8: 979ff105 ldrls pc, [pc, r5, lsl #2] 3000b2bc: ea000025 b 3000b358 <== NOT EXECUTED 3000b2c0: 3000b2dc .word 0x3000b2dc <== NOT EXECUTED 3000b2c4: 3000b300 .word 0x3000b300 <== NOT EXECUTED 3000b2c8: 3000b2f8 .word 0x3000b2f8 <== NOT EXECUTED 3000b2cc: 3000b2f8 .word 0x3000b2f8 <== NOT EXECUTED 3000b2d0: 3000b328 .word 0x3000b328 <== NOT EXECUTED 3000b2d4: 3000b310 .word 0x3000b310 <== NOT EXECUTED 3000b2d8: 3000b34c .word 0x3000b34c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 3000b2dc: e2872054 add r2, r7, #84 ; 0x54 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 3000b2e0: e2873050 add r3, r7, #80 ; 0x50 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 3000b2e4: e5872050 str r2, [r7, #80] ; 0x50 the_chain->permanent_null = NULL; 3000b2e8: e3a02000 mov r2, #0 3000b2ec: e5872054 str r2, [r7, #84] ; 0x54 the_chain->last = _Chain_Head(the_chain); 3000b2f0: e5873058 str r3, [r7, #88] ; 0x58 3000b2f4: ea00001c b 3000b36c 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; 3000b2f8: e5963000 ldr r3, [r6] 3000b2fc: ea000013 b 3000b350 break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; 3000b300: 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; 3000b304: e5963000 ldr r3, [r6] node->info.device.minor = info->device.minor; 3000b308: e5872054 str r2, [r7, #84] ; 0x54 3000b30c: ea00000f b 3000b350 break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 3000b310: e3a03000 mov r3, #0 <== NOT EXECUTED 3000b314: e3a02000 mov r2, #0 <== NOT EXECUTED 3000b318: e5872050 str r2, [r7, #80] ; 0x50 <== NOT EXECUTED 3000b31c: e5873054 str r3, [r7, #84] ; 0x54 <== NOT EXECUTED node->info.linearfile.direct = 0; 3000b320: e3a03000 mov r3, #0 <== NOT EXECUTED 3000b324: e5873058 str r3, [r7, #88] ; 0x58 <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; 3000b328: 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; 3000b32c: e3a01000 mov r1, #0 3000b330: e3a02000 mov r2, #0 3000b334: e5871050 str r1, [r7, #80] ; 0x50 3000b338: e5872054 str r2, [r7, #84] ; 0x54 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; 3000b33c: 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; 3000b340: e5873058 str r3, [r7, #88] ; 0x58 node->info.file.doubly_indirect = 0; 3000b344: e587305c str r3, [r7, #92] ; 0x5c node->info.file.triply_indirect = 0; break; 3000b348: ea000007 b 3000b36c case IMFS_FIFO: node->info.fifo.pipe = NULL; 3000b34c: e3a03000 mov r3, #0 3000b350: e5873050 str r3, [r7, #80] ; 0x50 break; 3000b354: ea000004 b 3000b36c default: assert(0); 3000b358: e59f0044 ldr r0, [pc, #68] ; 3000b3a4 <== NOT EXECUTED 3000b35c: e3a0105c mov r1, #92 ; 0x5c <== NOT EXECUTED 3000b360: e59f2040 ldr r2, [pc, #64] ; 3000b3a8 <== NOT EXECUTED 3000b364: e59f3040 ldr r3, [pc, #64] ; 3000b3ac <== NOT EXECUTED 3000b368: ebfff4db bl 300086dc <__assert_func> <== NOT EXECUTED /* * 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; 3000b36c: e5943010 ldr r3, [r4, #16] } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 3000b370: e5940000 ldr r0, [r4] fs_info = parent_loc->mt_entry->fs_info; 3000b374: e5932034 ldr r2, [r3, #52] ; 0x34 node->Parent = parent; 3000b378: e5870008 str r0, [r7, #8] node->st_ino = ++fs_info->ino_count; 3000b37c: 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 ); 3000b380: e2800050 add r0, r0, #80 ; 0x50 3000b384: e2833001 add r3, r3, #1 3000b388: e5823000 str r3, [r2] 3000b38c: e1a01007 mov r1, r7 3000b390: e5873038 str r3, [r7, #56] ; 0x38 3000b394: ebffe627 bl 30004c38 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 3000b398: e1a00007 mov r0, r7 3000b39c: e8bd80f0 pop {r4, r5, r6, r7, pc} 3000b3a0: 300193dc .word 0x300193dc 3000b3a4: 30018f3f .word 0x30018f3f 3000b3a8: 30018854 .word 0x30018854 3000b3ac: 30018cee .word 0x30018cee 30002de4 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 30002de4: e3500000 cmp r0, #0 void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { 30002de8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 30002dec: e1a05001 mov r5, r1 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); 30002df0: 059f00a4 ldreq r0, [pc, #164] ; 30002e9c 30002df4: 03a01084 moveq r1, #132 ; 0x84 30002df8: 059f20a0 ldreq r2, [pc, #160] ; 30002ea0 30002dfc: 059f30a0 ldreq r3, [pc, #160] ; 30002ea4 30002e00: 0a000005 beq 30002e1c assert( level >= 0 ); 30002e04: e3510000 cmp r1, #0 30002e08: aa000004 bge 30002e20 30002e0c: e59f0088 ldr r0, [pc, #136] ; 30002e9c <== NOT EXECUTED 30002e10: e59f2088 ldr r2, [pc, #136] ; 30002ea0 <== NOT EXECUTED 30002e14: e59f308c ldr r3, [pc, #140] ; 30002ea8 <== NOT EXECUTED 30002e18: e3a01086 mov r1, #134 ; 0x86 <== NOT EXECUTED 30002e1c: eb0001d7 bl 30003580 <__assert_func> <== NOT EXECUTED assert( the_directory->type == IMFS_DIRECTORY ); 30002e20: e590304c ldr r3, [r0, #76] ; 0x4c 30002e24: e3530001 cmp r3, #1 30002e28: 159f006c ldrne r0, [pc, #108] ; 30002e9c 30002e2c: 13a01088 movne r1, #136 ; 0x88 30002e30: 159f2068 ldrne r2, [pc, #104] ; 30002ea0 30002e34: 159f3070 ldrne r3, [pc, #112] ; 30002eac 30002e38: 1afffff7 bne 30002e1c */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 30002e3c: e280a054 add sl, r0, #84 ; 0x54 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 30002e40: e5904050 ldr r4, [r0, #80] ; 0x50 the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 30002e44: e59f8064 ldr r8, [pc, #100] ; 30002eb0 IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); 30002e48: e2817001 add r7, r1, #1 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 30002e4c: ea00000f b 30002e90 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; 30002e50: e3a06000 mov r6, #0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); 30002e54: e5983000 ldr r3, [r8] !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++ ) 30002e58: e2866001 add r6, r6, #1 fprintf(stdout, "...." ); 30002e5c: e5931008 ldr r1, [r3, #8] 30002e60: e59f004c ldr r0, [pc, #76] ; 30002eb4 30002e64: eb003989 bl 30011490 !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++ ) 30002e68: e1560005 cmp r6, r5 30002e6c: dafffff8 ble 30002e54 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); 30002e70: e1a00004 mov r0, r4 30002e74: ebffff7e bl 30002c74 if ( the_jnode->type == IMFS_DIRECTORY ) 30002e78: e594304c ldr r3, [r4, #76] ; 0x4c 30002e7c: e3530001 cmp r3, #1 IMFS_dump_directory( the_jnode, level + 1 ); 30002e80: 01a00004 moveq r0, r4 30002e84: 01a01007 moveq r1, r7 30002e88: 0bffffd5 bleq 30002de4 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 ) { 30002e8c: e5944000 ldr r4, [r4] assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; 30002e90: e154000a cmp r4, sl 30002e94: 1affffed bne 30002e50 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } 30002e98: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 30002e9c: 300220bc .word 0x300220bc 30002ea0: 30020c78 .word 0x30020c78 30002ea4: 30022172 .word 0x30022172 30002ea8: 30022180 .word 0x30022180 30002eac: 3002218b .word 0x3002218b 30002eb0: 30023124 .word 0x30023124 30002eb4: 300221b1 .word 0x300221b1 30007b20 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 30007b20: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30007b24: e24dd044 sub sp, sp, #68 ; 0x44 30007b28: e1a04003 mov r4, r3 30007b2c: e58d0000 str r0, [sp] 30007b30: e1a06001 mov r6, r1 30007b34: e58d2004 str r2, [sp, #4] /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 30007b38: e5935000 ldr r5, [r3] 30007b3c: e3a09001 mov r9, #1 30007b40: e3a07000 mov r7, #0 * 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 ); 30007b44: e28d8008 add r8, sp, #8 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 30007b48: e59fa210 ldr sl, [pc, #528] ; 30007d60 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 30007b4c: ea000054 b 30007ca4 type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 30007b50: e59d3000 ldr r3, [sp] 30007b54: e1a01006 mov r1, r6 30007b58: e0830007 add r0, r3, r7 30007b5c: e1a02008 mov r2, r8 30007b60: e28d3040 add r3, sp, #64 ; 0x40 30007b64: eb0001e7 bl 30008308 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 30007b68: e5943000 ldr r3, [r4] * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 30007b6c: e1a09000 mov r9, r0 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 30007b70: 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; 30007b74: e59db040 ldr fp, [sp, #64] ; 0x40 i += len; if ( !pathloc->node_access ) 30007b78: 0a000041 beq 30007c84 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 30007b7c: e3500000 cmp r0, #0 30007b80: 0a000006 beq 30007ba0 if ( node->type == IMFS_DIRECTORY ) 30007b84: e595104c ldr r1, [r5, #76] ; 0x4c 30007b88: e3510001 cmp r1, #1 30007b8c: 1a000003 bne 30007ba0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 30007b90: e1a00004 mov r0, r4 30007b94: ebffff7d bl 30007990 30007b98: e3500000 cmp r0, #0 30007b9c: 0a000068 beq 30007d44 rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 30007ba0: e3590003 cmp r9, #3 while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; 30007ba4: e087700b add r7, r7, fp */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; 30007ba8: e06b6006 rsb r6, fp, r6 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; 30007bac: e5945000 ldr r5, [r4] switch( type ) { 30007bb0: 0a000012 beq 30007c00 30007bb4: e3590004 cmp r9, #4 30007bb8: 0a000036 beq 30007c98 30007bbc: e3590002 cmp r9, #2 30007bc0: 1a000037 bne 30007ca4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 30007bc4: e59a3000 ldr r3, [sl] 30007bc8: e5933018 ldr r3, [r3, #24] 30007bcc: e1550003 cmp r5, r3 30007bd0: 0a000033 beq 30007ca4 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 30007bd4: e594e010 ldr lr, [r4, #16] /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 30007bd8: e59e301c ldr r3, [lr, #28] 30007bdc: e1550003 cmp r5, r3 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 30007be0: 028ee008 addeq lr, lr, #8 30007be4: 0a000038 beq 30007ccc pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 30007be8: e5955008 ldr r5, [r5, #8] 30007bec: e3550000 cmp r5, #0 30007bf0: 1a000026 bne 30007c90 rtems_set_errno_and_return_minus_one( ENOENT ); 30007bf4: eb001385 bl 3000ca10 <__errno> 30007bf8: e5809000 str r9, [r0] 30007bfc: ea000053 b 30007d50 case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 30007c00: e595304c ldr r3, [r5, #76] ; 0x4c 30007c04: e3530003 cmp r3, #3 30007c08: 1a000006 bne 30007c28 IMFS_evaluate_hard_link( pathloc, 0 ); 30007c0c: e1a00004 mov r0, r4 30007c10: e3a01000 mov r1, #0 30007c14: ebffff70 bl 300079dc node = pathloc->node_access; 30007c18: e5945000 ldr r5, [r4] if ( !node ) 30007c1c: e3550000 cmp r5, #0 30007c20: 1a000009 bne 30007c4c 30007c24: ea00000b b 30007c58 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 30007c28: e3530004 cmp r3, #4 30007c2c: 1a000006 bne 30007c4c result = IMFS_evaluate_sym_link( pathloc, 0 ); 30007c30: e1a00004 mov r0, r4 30007c34: e3a01000 mov r1, #0 30007c38: ebffff7e bl 30007a38 node = pathloc->node_access; if ( result == -1 ) 30007c3c: 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 ); 30007c40: e1a0b000 mov fp, r0 node = pathloc->node_access; 30007c44: e5945000 ldr r5, [r4] if ( result == -1 ) 30007c48: 0a000041 beq 30007d54 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 30007c4c: e595304c ldr r3, [r5, #76] ; 0x4c 30007c50: e3530001 cmp r3, #1 30007c54: 0a000002 beq 30007c64 rtems_set_errno_and_return_minus_one( ENOTDIR ); 30007c58: eb00136c bl 3000ca10 <__errno> 30007c5c: e3a03014 mov r3, #20 30007c60: ea000039 b 30007d4c /* * 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 ) { 30007c64: e595e05c ldr lr, [r5, #92] ; 0x5c 30007c68: e35e0000 cmp lr, #0 30007c6c: 1a000015 bne 30007cc8 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 30007c70: e1a00005 mov r0, r5 30007c74: e1a01008 mov r1, r8 30007c78: eb00017a bl 30008268 if ( !node ) 30007c7c: e2505000 subs r5, r0, #0 30007c80: 1a000002 bne 30007c90 rtems_set_errno_and_return_minus_one( ENOENT ); 30007c84: eb001361 bl 3000ca10 <__errno> 30007c88: e3a03002 mov r3, #2 30007c8c: ea00002e b 30007d4c /* * Set the node access to the point we have found. */ pathloc->node_access = node; 30007c90: e5845000 str r5, [r4] 30007c94: ea000002 b 30007ca4 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 30007c98: eb00135c bl 3000ca10 <__errno> 30007c9c: e3a0305b mov r3, #91 ; 0x5b 30007ca0: ea000029 b 30007d4c /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 30007ca4: e3590004 cmp r9, #4 30007ca8: 13590000 cmpne r9, #0 30007cac: 1affffa7 bne 30007b50 * 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 ) { 30007cb0: e595304c ldr r3, [r5, #76] ; 0x4c 30007cb4: e3530001 cmp r3, #1 30007cb8: 1a000019 bne 30007d24 if ( node->info.directory.mt_fs != NULL ) { 30007cbc: e595e05c ldr lr, [r5, #92] ; 0x5c 30007cc0: e35e0000 cmp lr, #0 30007cc4: 0a000016 beq 30007d24 newloc = node->info.directory.mt_fs->mt_fs_root; 30007cc8: e28ee01c add lr, lr, #28 30007ccc: e28dc02c add ip, sp, #44 ; 0x2c 30007cd0: e8be000f ldm lr!, {r0, r1, r2, r3} 30007cd4: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; 30007cd8: e28d502c add r5, sp, #44 ; 0x2c 30007cdc: e8b5000f ldm r5!, {r0, r1, r2, r3} 30007ce0: e1a05004 mov r5, r4 * 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; 30007ce4: e59ee000 ldr lr, [lr] *pathloc = newloc; 30007ce8: e8a5000f stmia r5!, {r0, r1, r2, r3} return (*pathloc->ops->evalpath_h)( &pathname[i-len], 30007cec: e59d1040 ldr r1, [sp, #64] ; 0x40 30007cf0: e59d3000 ldr r3, [sp] */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 30007cf4: e585e000 str lr, [r5] return (*pathloc->ops->evalpath_h)( &pathname[i-len], 30007cf8: e0610007 rsb r0, r1, 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; 30007cfc: e58ce000 str lr, [ip] *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], 30007d00: e0830000 add r0, r3, r0 30007d04: e0861001 add r1, r6, r1 30007d08: e59d2004 ldr r2, [sp, #4] 30007d0c: e1a03004 mov r3, r4 30007d10: e594c00c ldr ip, [r4, #12] 30007d14: e1a0e00f mov lr, pc 30007d18: e59cf000 ldr pc, [ip] 30007d1c: e1a0b000 mov fp, r0 30007d20: ea00000b b 30007d54 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 30007d24: e1a00004 mov r0, r4 30007d28: ebfffefa bl 30007918 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 30007d2c: e59d1004 ldr r1, [sp, #4] flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 30007d30: e1a0b000 mov fp, r0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) 30007d34: e1a00004 mov r0, r4 30007d38: ebffff14 bl 30007990 30007d3c: e3500000 cmp r0, #0 30007d40: 1a000003 bne 30007d54 rtems_set_errno_and_return_minus_one( EACCES ); 30007d44: eb001331 bl 3000ca10 <__errno> 30007d48: e3a0300d mov r3, #13 30007d4c: e5803000 str r3, [r0] 30007d50: e3e0b000 mvn fp, #0 return result; } 30007d54: e1a0000b mov r0, fp 30007d58: e28dd044 add sp, sp, #68 ; 0x44 30007d5c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 30007d60: 300193dc .word 0x300193dc 30007e18 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 30007e18: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30007e1c: e24dd040 sub sp, sp, #64 ; 0x40 30007e20: e1a04001 mov r4, r1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 30007e24: e5916000 ldr r6, [r1] int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 30007e28: e58d2000 str r2, [sp] 30007e2c: e1a07000 mov r7, r0 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 30007e30: eb0016e7 bl 3000d9d4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 30007e34: e59fa224 ldr sl, [pc, #548] ; 30008060 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 30007e38: e3a05000 mov r5, #0 30007e3c: e1a08000 mov r8, r0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 30007e40: e1a01008 mov r1, r8 30007e44: e28d303c add r3, sp, #60 ; 0x3c 30007e48: e0870005 add r0, r7, r5 30007e4c: e28d2004 add r2, sp, #4 30007e50: eb00012c bl 30008308 pathlen -= len; i += len; if ( !pathloc->node_access ) 30007e54: e5943000 ldr r3, [r4] */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 30007e58: e59db03c ldr fp, [sp, #60] ; 0x3c i += len; if ( !pathloc->node_access ) 30007e5c: 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 ); 30007e60: e1a09000 mov r9, r0 pathlen -= len; 30007e64: e06b8008 rsb r8, fp, r8 i += len; if ( !pathloc->node_access ) 30007e68: 0a00005f beq 30007fec /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 30007e6c: e3500000 cmp r0, #0 30007e70: 0a000006 beq 30007e90 if ( node->type == IMFS_DIRECTORY ) 30007e74: e596104c ldr r1, [r6, #76] ; 0x4c 30007e78: e3510001 cmp r1, #1 30007e7c: 1a000003 bne 30007e90 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) 30007e80: e1a00004 mov r0, r4 30007e84: ebfffec1 bl 30007990 30007e88: e3500000 cmp r0, #0 30007e8c: 0a00006c beq 30008044 rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; 30007e90: e5943000 ldr r3, [r4] while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; 30007e94: e085500b add r5, r5, fp if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; 30007e98: e1a06003 mov r6, r3 switch( type ) { 30007e9c: e3590004 cmp r9, #4 30007ea0: 979ff109 ldrls pc, [pc, r9, lsl #2] 30007ea4: eaffffe5 b 30007e40 <== NOT EXECUTED 30007ea8: 30007fac .word 0x30007fac <== NOT EXECUTED 30007eac: 30007e40 .word 0x30007e40 <== NOT EXECUTED 30007eb0: 30007ebc .word 0x30007ebc <== NOT EXECUTED 30007eb4: 30007ef0 .word 0x30007ef0 <== NOT EXECUTED 30007eb8: 30007fb8 .word 0x30007fb8 <== NOT EXECUTED case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 30007ebc: e59a2000 ldr r2, [sl] 30007ec0: e5922018 ldr r2, [r2, #24] 30007ec4: e1530002 cmp r3, r2 30007ec8: 0affffdc beq 30007e40 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 30007ecc: e594e010 ldr lr, [r4, #16] 30007ed0: e59e201c ldr r2, [lr, #28] 30007ed4: e1530002 cmp r3, r2 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 30007ed8: 028ee008 addeq lr, lr, #8 30007edc: 0a000018 beq 30007f44 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 30007ee0: e5936008 ldr r6, [r3, #8] 30007ee4: e3560000 cmp r6, #0 30007ee8: 1a00002d bne 30007fa4 30007eec: ea00003e b 30007fec pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 30007ef0: e593304c ldr r3, [r3, #76] ; 0x4c 30007ef4: e3530003 cmp r3, #3 30007ef8: 0a000001 beq 30007f04 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 30007efc: e3530004 cmp r3, #4 30007f00: 1a000005 bne 30007f1c result = IMFS_evaluate_link( pathloc, 0 ); 30007f04: e1a00004 mov r0, r4 30007f08: e3a01000 mov r1, #0 30007f0c: ebffff94 bl 30007d64 if ( result == -1 ) 30007f10: e3700001 cmn r0, #1 if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); 30007f14: e1a06000 mov r6, r0 if ( result == -1 ) 30007f18: 0a00004d beq 30008054 return -1; } node = pathloc->node_access; 30007f1c: e5940000 ldr r0, [r4] if ( !node ) 30007f20: e3500000 cmp r0, #0 30007f24: 0a00003e beq 30008024 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 30007f28: e590304c ldr r3, [r0, #76] ; 0x4c 30007f2c: e3530001 cmp r3, #1 30007f30: 1a00003b bne 30008024 /* * 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 ) { 30007f34: e590e05c ldr lr, [r0, #92] ; 0x5c 30007f38: e35e0000 cmp lr, #0 30007f3c: 0a000014 beq 30007f94 newloc = node->info.directory.mt_fs->mt_fs_root; 30007f40: e28ee01c add lr, lr, #28 30007f44: e28dc028 add ip, sp, #40 ; 0x28 30007f48: e8be000f ldm lr!, {r0, r1, r2, r3} 30007f4c: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; 30007f50: e28d6028 add r6, sp, #40 ; 0x28 30007f54: e8b6000f ldm r6!, {r0, r1, r2, r3} 30007f58: e1a06004 mov r6, r4 * 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; 30007f5c: e59ee000 ldr lr, [lr] *pathloc = newloc; 30007f60: e8a6000f stmia r6!, {r0, r1, r2, r3} return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30007f64: e59d303c ldr r3, [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; 30007f68: e586e000 str lr, [r6] return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30007f6c: e0635005 rsb r5, r3, r5 * 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; 30007f70: e58ce000 str lr, [ip] *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30007f74: e0870005 add r0, r7, r5 30007f78: e1a01004 mov r1, r4 30007f7c: e59d2000 ldr r2, [sp] 30007f80: e594300c ldr r3, [r4, #12] 30007f84: e1a0e00f mov lr, pc 30007f88: e593f004 ldr pc, [r3, #4] 30007f8c: e1a06000 mov r6, r0 30007f90: ea00002f b 30008054 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 30007f94: e28d1004 add r1, sp, #4 30007f98: eb0000b2 bl 30008268 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 30007f9c: e2506000 subs r6, r0, #0 30007fa0: 0a000007 beq 30007fc4 done = true; else pathloc->node_access = node; 30007fa4: e5846000 str r6, [r4] 30007fa8: eaffffa4 b 30007e40 break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 30007fac: eb001297 bl 3000ca10 <__errno> 30007fb0: e3a03011 mov r3, #17 30007fb4: ea000024 b 3000804c break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 30007fb8: eb001294 bl 3000ca10 <__errno> 30007fbc: e3a0305b mov r3, #91 ; 0x5b 30007fc0: ea000021 b 3000804c case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 30007fc4: e59d203c ldr r2, [sp, #60] ; 0x3c 30007fc8: e0873005 add r3, r7, r5 30007fcc: e0625005 rsb r5, r2, r5 30007fd0: e59d2000 ldr r2, [sp] 30007fd4: e0877005 add r7, r7, r5 30007fd8: e5827000 str r7, [r2] /* * 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++) { 30007fdc: ea000005 b 30007ff8 if ( !IMFS_is_separator( path[ i ] ) ) 30007fe0: e352005c cmp r2, #92 ; 0x5c 30007fe4: 1352002f cmpne r2, #47 ; 0x2f 30007fe8: 0a000002 beq 30007ff8 rtems_set_errno_and_return_minus_one( ENOENT ); 30007fec: eb001287 bl 3000ca10 <__errno> 30007ff0: e3a03002 mov r3, #2 30007ff4: ea000014 b 3000804c /* * 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++) { 30007ff8: e5d32000 ldrb r2, [r3] 30007ffc: e2833001 add r3, r3, #1 30008000: e3520000 cmp r2, #0 30008004: 1afffff5 bne 30007fe0 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 30008008: e1a00004 mov r0, r4 3000800c: ebfffe41 bl 30007918 /* * The returned node must be a directory */ node = pathloc->node_access; 30008010: e5943000 ldr r3, [r4] /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 30008014: e1a06000 mov r6, r0 /* * The returned node must be a directory */ node = pathloc->node_access; 30008018: e593304c ldr r3, [r3, #76] ; 0x4c 3000801c: e3530001 cmp r3, #1 30008020: 0a000002 beq 30008030 if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); 30008024: eb001279 bl 3000ca10 <__errno> 30008028: e3a03014 mov r3, #20 3000802c: ea000006 b 3000804c /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) 30008030: e1a00004 mov r0, r4 30008034: e3a01003 mov r1, #3 30008038: ebfffe54 bl 30007990 3000803c: e3500000 cmp r0, #0 30008040: 1a000003 bne 30008054 rtems_set_errno_and_return_minus_one( EACCES ); 30008044: eb001271 bl 3000ca10 <__errno> 30008048: e3a0300d mov r3, #13 3000804c: e5803000 str r3, [r0] 30008050: e3e06000 mvn r6, #0 return result; } 30008054: e1a00006 mov r0, r6 30008058: e28dd040 add sp, sp, #64 ; 0x40 3000805c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 30008060: 300193dc .word 0x300193dc 300079dc : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; 300079dc: e5903000 ldr r3, [r0] int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300079e0: e92d4030 push {r4, r5, lr} /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 300079e4: e593204c ldr r2, [r3, #76] ; 0x4c int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300079e8: e1a04000 mov r4, r0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 300079ec: e3520003 cmp r2, #3 int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300079f0: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 300079f4: 159f0038 ldrne r0, [pc, #56] ; 30007a34 300079f8: 1bfff3d3 blne 3000494c /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 300079fc: e5933050 ldr r3, [r3, #80] ; 0x50 30007a00: e5803000 str r3, [r0] IMFS_Set_handlers( node ); 30007a04: ebffffc3 bl 30007918 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 30007a08: e1a00004 mov r0, r4 30007a0c: e1a01005 mov r1, r5 30007a10: ebffffde bl 30007990 30007a14: e3500000 cmp r0, #0 30007a18: 13a00000 movne r0, #0 30007a1c: 18bd8030 popne {r4, r5, pc} rtems_set_errno_and_return_minus_one( EACCES ); 30007a20: eb0013fa bl 3000ca10 <__errno> <== NOT EXECUTED 30007a24: e3a0300d mov r3, #13 <== NOT EXECUTED 30007a28: e5803000 str r3, [r0] <== NOT EXECUTED 30007a2c: e3e00000 mvn r0, #0 <== NOT EXECUTED return result; } 30007a30: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30007a34: abcd0000 .word 0xabcd0000 30007a38 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30007a38: e92d40f0 push {r4, r5, r6, r7, lr} IMFS_jnode_t *jnode = node->node_access; 30007a3c: e590e000 ldr lr, [r0] int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30007a40: e1a04000 mov r4, r0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30007a44: e59e304c ldr r3, [lr, #76] ; 0x4c int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30007a48: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30007a4c: e3530004 cmp r3, #4 rtems_fatal_error_occurred (0xABCD0000); 30007a50: 159f00bc ldrne r0, [pc, #188] ; 30007b14 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30007a54: 1a000003 bne 30007a68 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 30007a58: e59e3008 ldr r3, [lr, #8] 30007a5c: e3530000 cmp r3, #0 30007a60: 1a000001 bne 30007a6c rtems_fatal_error_occurred( 0xBAD00000 ); 30007a64: e59f00ac ldr r0, [pc, #172] ; 30007b18 <== NOT EXECUTED 30007a68: ebfff3b7 bl 3000494c <== NOT EXECUTED /* * Move the node_access to either the symbolic links parent or * root depending on the symbolic links path. */ node->node_access = jnode->Parent; 30007a6c: e5843000 str r3, [r4] rtems_filesystem_get_sym_start_loc( 30007a70: e59e3050 ldr r3, [lr, #80] ; 0x50 30007a74: e5d33000 ldrb r3, [r3] 30007a78: e353002f cmp r3, #47 ; 0x2f 30007a7c: 1353005c cmpne r3, #92 ; 0x5c 30007a80: 13a06000 movne r6, #0 30007a84: 03a06001 moveq r6, #1 30007a88: 0a000001 beq 30007a94 30007a8c: e3530000 cmp r3, #0 30007a90: 1a000008 bne 30007ab8 30007a94: e59f3080 ldr r3, [pc, #128] ; 30007b1c 30007a98: e1a07004 mov r7, r4 30007a9c: e593c000 ldr ip, [r3] 30007aa0: e3a06001 mov r6, #1 30007aa4: e28cc018 add ip, ip, #24 30007aa8: e8bc000f ldm ip!, {r0, r1, r2, r3} 30007aac: e8a7000f stmia r7!, {r0, r1, r2, r3} 30007ab0: e59c2000 ldr r2, [ip] 30007ab4: e5872000 str r2, [r7] * 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] ), 30007ab8: e59e3050 ldr r3, [lr, #80] ; 0x50 30007abc: e0836006 add r6, r3, r6 30007ac0: e1a00006 mov r0, r6 30007ac4: eb0017c2 bl 3000d9d4 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 30007ac8: e1a02005 mov r2, r5 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 30007acc: e1a01000 mov r1, r0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 30007ad0: e1a03004 mov r3, r4 30007ad4: e1a00006 mov r0, r6 30007ad8: eb000010 bl 30007b20 30007adc: e1a06000 mov r6, r0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 30007ae0: e1a00004 mov r0, r4 30007ae4: ebffff8b bl 30007918 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) 30007ae8: e1a00004 mov r0, r4 30007aec: e1a01005 mov r1, r5 30007af0: ebffffa6 bl 30007990 30007af4: e3500000 cmp r0, #0 30007af8: 1a000003 bne 30007b0c rtems_set_errno_and_return_minus_one( EACCES ); 30007afc: eb0013c3 bl 3000ca10 <__errno> <== NOT EXECUTED 30007b00: e3a0300d mov r3, #13 <== NOT EXECUTED 30007b04: e5803000 str r3, [r0] <== NOT EXECUTED 30007b08: e3e06000 mvn r6, #0 <== NOT EXECUTED return result; } 30007b0c: e1a00006 mov r0, r6 30007b10: e8bd80f0 pop {r4, r5, r6, r7, pc} 30007b14: abcd0000 .word 0xabcd0000 30007b18: bad00000 .word 0xbad00000 30007b1c: 300193dc .word 0x300193dc 3000b3b0 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 3000b3b0: e92d4073 push {r0, r1, r4, r5, r6, lr} IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; 3000b3b4: e5904000 ldr r4, [r0] int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { 3000b3b8: e1a06001 mov r6, r1 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); 3000b3bc: ebfff57b bl 300089b0 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) 3000b3c0: e1d453bc ldrh r5, [r4, #60] ; 0x3c 3000b3c4: e3500000 cmp r0, #0 3000b3c8: 11550000 cmpne r5, r0 3000b3cc: 03a05000 moveq r5, #0 3000b3d0: 13a05001 movne r5, #1 3000b3d4: 0a000004 beq 3000b3ec rtems_set_errno_and_return_minus_one( EPERM ); 3000b3d8: eb00058c bl 3000ca10 <__errno> <== NOT EXECUTED 3000b3dc: e3a03001 mov r3, #1 <== NOT EXECUTED 3000b3e0: e5803000 str r3, [r0] <== NOT EXECUTED 3000b3e4: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000b3e8: ea00000c b 3000b420 <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); 3000b3ec: e5943030 ldr r3, [r4, #48] ; 0x30 3000b3f0: e1a06a06 lsl r6, r6, #20 3000b3f4: e3c33eff bic r3, r3, #4080 ; 0xff0 3000b3f8: e3c3300f bic r3, r3, #15 3000b3fc: e1a06a26 lsr r6, r6, #20 3000b400: e1866003 orr r6, r6, r3 3000b404: e5846030 str r6, [r4, #48] ; 0x30 IMFS_update_ctime( jnode ); 3000b408: e1a0000d mov r0, sp 3000b40c: e1a01005 mov r1, r5 3000b410: ebfff56b bl 300089c4 3000b414: e59d3000 ldr r3, [sp] 3000b418: e1a00005 mov r0, r5 3000b41c: e5843048 str r3, [r4, #72] ; 0x48 return 0; } 3000b420: e8bd807c pop {r2, r3, r4, r5, r6, pc} 300081c4 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 300081c4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 300081c8: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 300081cc: e1a01000 mov r1, r0 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 300081d0: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 300081d4: e2840050 add r0, r4, #80 ; 0x50 <== NOT EXECUTED 300081d8: eb000ad6 bl 3000ad38 <== NOT EXECUTED if (! err) { 300081dc: e2506000 subs r6, r0, #0 <== NOT EXECUTED 300081e0: 1a00000c bne 30008218 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; 300081e4: e5953014 ldr r3, [r5, #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) 300081e8: e1a00004 mov r0, r4 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); if (! err) { iop->flags &= ~LIBIO_FLAGS_OPEN; 300081ec: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED 300081f0: e5853014 str r3, [r5, #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) 300081f4: eb00021c bl 30008a6c <== NOT EXECUTED 300081f8: e3500000 cmp r0, #0 <== NOT EXECUTED 300081fc: 1a00000a bne 3000822c <== NOT EXECUTED 30008200: e1d433b4 ldrh r3, [r4, #52] ; 0x34 <== NOT EXECUTED 30008204: e3530000 cmp r3, #0 <== NOT EXECUTED 30008208: 1a000007 bne 3000822c <== NOT EXECUTED free(jnode); 3000820c: e1a00004 mov r0, r4 <== NOT EXECUTED 30008210: eb00017e bl 30008810 <== NOT EXECUTED 30008214: ea000004 b 3000822c <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 30008218: aa000003 bge 3000822c <== NOT EXECUTED 3000821c: eb0011fb bl 3000ca10 <__errno> <== NOT EXECUTED 30008220: e2666000 rsb r6, r6, #0 <== NOT EXECUTED 30008224: e5806000 str r6, [r0] <== NOT EXECUTED 30008228: e3e06000 mvn r6, #0 <== NOT EXECUTED } 3000822c: e1a00006 mov r0, r6 <== NOT EXECUTED 30008230: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 300080ac : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 300080ac: e1a03000 mov r3, r0 <== NOT EXECUTED int err; if (command == FIONBIO) { 300080b0: e59f0064 ldr r0, [pc, #100] ; 3000811c <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 300080b4: e92d4010 push {r4, lr} <== NOT EXECUTED int err; if (command == FIONBIO) { 300080b8: e1510000 cmp r1, r0 <== NOT EXECUTED 300080bc: 1a00000b bne 300080f0 <== NOT EXECUTED if (buffer == NULL) 300080c0: e3520000 cmp r2, #0 <== NOT EXECUTED 300080c4: 03e0400d mvneq r4, #13 <== NOT EXECUTED 300080c8: 0a00000d beq 30008104 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 300080cc: e5924000 ldr r4, [r2] <== NOT EXECUTED 300080d0: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED 300080d4: e3540000 cmp r4, #0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 300080d8: 13822001 orrne r2, r2, #1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 300080dc: 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; 300080e0: 15832014 strne r2, [r3, #20] <== NOT EXECUTED 300080e4: 13a04000 movne r4, #0 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 300080e8: 05832014 streq r2, [r3, #20] <== NOT EXECUTED 300080ec: ea000008 b 30008114 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 300080f0: e5930038 ldr r0, [r3, #56] ; 0x38 <== NOT EXECUTED 300080f4: e5900050 ldr r0, [r0, #80] ; 0x50 <== NOT EXECUTED 300080f8: eb000a24 bl 3000a990 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 300080fc: e2504000 subs r4, r0, #0 <== NOT EXECUTED 30008100: aa000003 bge 30008114 <== NOT EXECUTED 30008104: eb001241 bl 3000ca10 <__errno> <== NOT EXECUTED 30008108: e2644000 rsb r4, r4, #0 <== NOT EXECUTED 3000810c: e5804000 str r4, [r0] <== NOT EXECUTED 30008110: e3e04000 mvn r4, #0 <== NOT EXECUTED } 30008114: e1a00004 mov r0, r4 <== NOT EXECUTED 30008118: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3000811c: 8004667e .word 0x8004667e 30008064 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 30008064: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 30008068: e590c038 ldr ip, [r0, #56] ; 0x38 <== NOT EXECUTED 3000806c: e58d0000 str r0, [sp] <== NOT EXECUTED 30008070: e59c0050 ldr r0, [ip, #80] ; 0x50 <== NOT EXECUTED 30008074: eb000a2b bl 3000a928 <== NOT EXECUTED 30008078: e1a03000 mov r3, r0 <== NOT EXECUTED 3000807c: e1a04fc3 asr r4, r3, #31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 30008080: 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); 30008084: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 30008088: aa000004 bge 300080a0 <== NOT EXECUTED 3000808c: eb00125f bl 3000ca10 <__errno> <== NOT EXECUTED 30008090: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 30008094: e5805000 str r5, [r0] <== NOT EXECUTED 30008098: e3e03000 mvn r3, #0 <== NOT EXECUTED 3000809c: e3e04000 mvn r4, #0 <== NOT EXECUTED } 300080a0: e1a01004 mov r1, r4 <== NOT EXECUTED 300080a4: e1a00003 mov r0, r3 <== NOT EXECUTED 300080a8: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED 30008174 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30008174: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 30008178: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3000817c: e1a03000 mov r3, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 30008180: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED 30008184: eb000a19 bl 3000a9f0 <== NOT EXECUTED if (err > 0) 30008188: e2505000 subs r5, r0, #0 <== NOT EXECUTED 3000818c: da000005 ble 300081a8 <== NOT EXECUTED IMFS_update_atime(jnode); 30008190: e1a0000d mov r0, sp <== NOT EXECUTED 30008194: e3a01000 mov r1, #0 <== NOT EXECUTED 30008198: eb000209 bl 300089c4 <== NOT EXECUTED 3000819c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 300081a0: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED 300081a4: ea000004 b 300081bc <== NOT EXECUTED IMFS_FIFO_RETURN(err); 300081a8: 0a000003 beq 300081bc <== NOT EXECUTED 300081ac: eb001217 bl 3000ca10 <__errno> <== NOT EXECUTED 300081b0: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 300081b4: e5805000 str r5, [r0] <== NOT EXECUTED 300081b8: e3e05000 mvn r5, #0 <== NOT EXECUTED } 300081bc: e1a00005 mov r0, r5 <== NOT EXECUTED 300081c0: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED 30008120 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 30008120: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 30008124: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 30008128: e1a03000 mov r3, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 3000812c: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED 30008130: eb000a8a bl 3000ab60 <== NOT EXECUTED if (err > 0) { 30008134: e2505000 subs r5, r0, #0 <== NOT EXECUTED 30008138: da000006 ble 30008158 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 3000813c: e1a0000d mov r0, sp <== NOT EXECUTED 30008140: e3a01000 mov r1, #0 <== NOT EXECUTED 30008144: eb00021e bl 300089c4 <== NOT EXECUTED 30008148: e59d3000 ldr r3, [sp] <== NOT EXECUTED 3000814c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED 30008150: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED 30008154: ea000004 b 3000816c <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 30008158: 0a000003 beq 3000816c <== NOT EXECUTED 3000815c: eb00122b bl 3000ca10 <__errno> <== NOT EXECUTED 30008160: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 30008164: e5805000 str r5, [r0] <== NOT EXECUTED 30008168: e3e05000 mvn r5, #0 <== NOT EXECUTED } 3000816c: e1a00005 mov r0, r5 <== NOT EXECUTED 30008170: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED 3000d550 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 3000d550: 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; 3000d554: e1a0c000 mov ip, r0 3000d558: 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 ) { 3000d55c: 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; 3000d560: e1a0e00d mov lr, sp ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 3000d564: e1a05000 mov r5, 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; 3000d568: e8bc000f ldm ip!, {r0, r1, r2, r3} 3000d56c: e8ae000f stmia lr!, {r0, r1, r2, r3} 3000d570: e59c3000 ldr r3, [ip] 3000d574: e58e3000 str r3, [lr] /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 3000d578: e3a03000 mov r3, #0 3000d57c: e585301c str r3, [r5, #28] do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 3000d580: e1a0500d mov r5, sp 3000d584: e1a0000d mov r0, sp temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; 3000d588: e58d4000 str r4, [sp] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 3000d58c: e5946008 ldr r6, [r4, #8] loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 3000d590: ebfffd98 bl 3000cbf8 if ( jnode->type != IMFS_DIRECTORY ) { 3000d594: e594204c ldr r2, [r4, #76] ; 0x4c */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 3000d598: e2843054 add r3, r4, #84 ; 0x54 3000d59c: e3520001 cmp r2, #1 3000d5a0: 1a000002 bne 3000d5b0 3000d5a4: e5942050 ldr r2, [r4, #80] ; 0x50 3000d5a8: e1520003 cmp r2, r3 3000d5ac: 1a000005 bne 3000d5c8 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 3000d5b0: e3a00000 mov r0, #0 3000d5b4: e1a0100d mov r1, sp 3000d5b8: ebffd39a bl 30002428 if (result != 0) 3000d5bc: e3500000 cmp r0, #0 3000d5c0: 1a00000c bne 3000d5f8 3000d5c4: e1a04006 mov r4, r6 return -1; jnode = next; } if ( jnode != NULL ) { 3000d5c8: e3540000 cmp r4, #0 3000d5cc: 0a00000b beq 3000d600 if ( jnode->type == IMFS_DIRECTORY ) { 3000d5d0: e594304c ldr r3, [r4, #76] ; 0x4c 3000d5d4: e3530001 cmp r3, #1 3000d5d8: 1affffe9 bne 3000d584 3000d5dc: e5943050 ldr r3, [r4, #80] ; 0x50 3000d5e0: e2842054 add r2, r4, #84 ; 0x54 3000d5e4: e1530002 cmp r3, r2 3000d5e8: 0affffe5 beq 3000d584 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 3000d5ec: e2534000 subs r4, r3, #0 3000d5f0: 1affffe3 bne 3000d584 3000d5f4: ea000001 b 3000d600 <== NOT EXECUTED 3000d5f8: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000d5fc: ea000000 b 3000d604 <== NOT EXECUTED 3000d600: e3a00000 mov r0, #0 return 0; } 3000d604: e28dd014 add sp, sp, #20 3000d608: e8bd8070 pop {r4, r5, r6, pc} 300083d0 : 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 ) { 300083d0: e92d40f0 push {r4, r5, r6, r7, lr} 300083d4: 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, 300083d8: e59f00c0 ldr r0, [pc, #192] ; 300084a0 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 ) { 300083dc: e1a06002 mov r6, r2 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 300083e0: 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 ) { 300083e4: e1a05003 mov r5, r3 300083e8: e1a07001 mov r7, r1 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, 300083ec: e3a02000 mov r2, #0 300083f0: e3a03010 mov r3, #16 int bit_mask; /* * check, whether requested bytes per block is valid */ for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) { 300083f4: e1530000 cmp r3, r0 300083f8: e2822001 add r2, r2, #1 300083fc: 0a000003 beq 30008410 30008400: e3520006 cmp r2, #6 30008404: e1a03083 lsl r3, r3, #1 30008408: 1afffff9 bne 300083f4 3000840c: e3a03080 mov r3, #128 ; 0x80 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 30008410: e59f208c ldr r2, [pc, #140] ; 300084a4 30008414: e5823000 str r3, [r2] /* * 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(); 30008418: eb000b85 bl 3000b234 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; 3000841c: e59fe084 ldr lr, [pc, #132] ; 300084a8 30008420: 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(); 30008424: 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; 30008428: e8be000f ldm lr!, {r0, r1, r2, r3} 3000842c: e8ac000f stmia ip!, {r0, r1, r2, r3} 30008430: e8be000f ldm lr!, {r0, r1, r2, r3} 30008434: e8ac000f stmia ip!, {r0, r1, r2, r3} 30008438: 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; 3000843c: e5847028 str r7, [r4, #40] ; 0x28 temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 30008440: 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; 30008444: 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 ) ); 30008448: e3a00001 mov r0, #1 3000844c: e3a0100c mov r1, #12 30008450: eb0000b2 bl 30008720 if ( !fs_info ) { 30008454: e3500000 cmp r0, #0 30008458: 1a000006 bne 30008478 free(temp_mt_entry->mt_fs_root.node_access); 3000845c: e594001c ldr r0, [r4, #28] <== NOT EXECUTED 30008460: eb0000ea bl 30008810 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 30008464: eb001169 bl 3000ca10 <__errno> <== NOT EXECUTED 30008468: e3a0300c mov r3, #12 <== NOT EXECUTED 3000846c: e5803000 str r3, [r0] <== NOT EXECUTED 30008470: e3e00000 mvn r0, #0 <== NOT EXECUTED 30008474: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 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; 30008478: e594201c ldr r2, [r4, #28] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 3000847c: e3a03001 mov r3, #1 30008480: e5803000 str r3, [r0] fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 30008484: e5805008 str r5, [r0, #8] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 30008488: e5806004 str r6, [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; 3000848c: 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; 30008490: e5823038 str r3, [r2, #56] ; 0x38 /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 30008494: eb000925 bl 3000a930 30008498: e3a00000 mov r0, #0 return 0; } 3000849c: e8bd80f0 pop {r4, r5, r6, r7, pc} 300084a0: 300191e8 .word 0x300191e8 300084a4: 30019afc .word 0x30019afc 300084a8: 30018824 .word 0x30018824 30002130 : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { 30002130: e92d4070 push {r4, r5, r6, lr} int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 30002134: 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 */ ) { 30002138: e24dd048 sub sp, sp, #72 ; 0x48 int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; 3000213c: e58d3028 str r3, [sp, #40] ; 0x28 if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) 30002140: 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 */ ) { 30002144: 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 ) 30002148: 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 */ ) { 3000214c: 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 ) 30002150: 9a000002 bls 30002160 rtems_set_errno_and_return_minus_one( EMLINK ); 30002154: eb003f7d bl 30011f50 <__errno> 30002158: e3a0301f mov r3, #31 3000215c: ea000012 b 300021ac /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); 30002160: e1a00002 mov r0, r2 30002164: eb004352 bl 30012eb4 30002168: e28d4004 add r4, sp, #4 3000216c: e1a01000 mov r1, r0 30002170: e1a02004 mov r2, r4 30002174: e28d3044 add r3, sp, #68 ; 0x44 30002178: e1a00006 mov r0, r6 3000217c: eb002d4a bl 3000d6ac * 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( 30002180: e28dc028 add ip, sp, #40 ; 0x28 30002184: e1a00005 mov r0, r5 30002188: e1a02004 mov r2, r4 3000218c: e3a01003 mov r1, #3 30002190: e59f3054 ldr r3, [pc, #84] ; 300021ec 30002194: e58dc000 str ip, [sp] 30002198: eb002a47 bl 3000cabc new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) 3000219c: e3500000 cmp r0, #0 300021a0: 1a000004 bne 300021b8 rtems_set_errno_and_return_minus_one( ENOMEM ); 300021a4: eb003f69 bl 30011f50 <__errno> <== NOT EXECUTED 300021a8: e3a0300c mov r3, #12 <== NOT EXECUTED 300021ac: e5803000 str r3, [r0] 300021b0: e3e00000 mvn r0, #0 300021b4: ea00000a b 300021e4 /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; 300021b8: e59d3028 ldr r3, [sp, #40] ; 0x28 IMFS_update_ctime( info.hard_link.link_node ); 300021bc: 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++; 300021c0: e1d323b4 ldrh r2, [r3, #52] ; 0x34 IMFS_update_ctime( info.hard_link.link_node ); 300021c4: 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++; 300021c8: e2822001 add r2, r2, #1 300021cc: e1c323b4 strh r2, [r3, #52] ; 0x34 IMFS_update_ctime( info.hard_link.link_node ); 300021d0: eb00023b bl 30002ac4 300021d4: e59d203c ldr r2, [sp, #60] ; 0x3c 300021d8: e59d3028 ldr r3, [sp, #40] ; 0x28 300021dc: e3a00000 mov r0, #0 300021e0: e5832048 str r2, [r3, #72] ; 0x48 return 0; } 300021e4: e28dd048 add sp, sp, #72 ; 0x48 300021e8: e8bd8070 pop {r4, r5, r6, pc} 300021ec: 0000a1ff .word 0x0000a1ff 30010288 : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 30010288: e2503000 subs r3, r0, #0 MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 3001028c: e92d4030 push {r4, r5, lr} block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 30010290: 059f0060 ldreq r0, [pc, #96] ; 300102f8 30010294: 059f1060 ldreq r1, [pc, #96] ; 300102fc 30010298: 059f2060 ldreq r2, [pc, #96] ; 30010300 3001029c: 059f3060 ldreq r3, [pc, #96] ; 30010304 300102a0: 0a000006 beq 300102c0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 300102a4: e593304c ldr r3, [r3, #76] ; 0x4c 300102a8: e3530005 cmp r3, #5 300102ac: 0a000004 beq 300102c4 300102b0: e59f0040 ldr r0, [pc, #64] ; 300102f8 <== NOT EXECUTED 300102b4: e59f104c ldr r1, [pc, #76] ; 30010308 <== NOT EXECUTED 300102b8: e59f2040 ldr r2, [pc, #64] ; 30010300 <== NOT EXECUTED 300102bc: e59f3048 ldr r3, [pc, #72] ; 3001030c <== NOT EXECUTED 300102c0: ebfff586 bl 3000d8e0 <__assert_func> <== NOT EXECUTED 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 ); 300102c4: e3a02001 mov r2, #1 300102c8: ebfffeac bl 3000fd80 if ( *block_entry_ptr ) 300102cc: 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 ); 300102d0: e1a05000 mov r5, r0 if ( *block_entry_ptr ) 300102d4: e3540000 cmp r4, #0 300102d8: 13a00000 movne r0, #0 300102dc: 18bd8030 popne {r4, r5, pc} #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 300102e0: ebfffe99 bl 3000fd4c if ( !memory ) 300102e4: e3500000 cmp r0, #0 return 1; *block_entry_ptr = memory; 300102e8: 15850000 strne r0, [r5] fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 300102ec: 03a00001 moveq r0, #1 return 1; *block_entry_ptr = memory; 300102f0: 11a00004 movne r0, r4 return 0; } 300102f4: e8bd8030 pop {r4, r5, pc} 300102f8: 3001eca9 .word 0x3001eca9 300102fc: 00000169 .word 0x00000169 30010300: 3001e450 .word 0x3001e450 30010304: 3001ecef .word 0x3001ecef 30010308: 0000016d .word 0x0000016d 3001030c: 3001ecf9 .word 0x3001ecf9 30010310 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 30010310: e92d4df1 push {r0, r4, r5, r6, r7, r8, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 30010314: e2504000 subs r4, r0, #0 MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 30010318: e1a05001 mov r5, r1 3001031c: e1a06002 mov r6, r2 /* * Perform internal consistency checks */ assert( the_jnode ); 30010320: 059f0134 ldreq r0, [pc, #308] ; 3001045c 30010324: 059f1134 ldreq r1, [pc, #308] ; 30010460 30010328: 059f2134 ldreq r2, [pc, #308] ; 30010464 3001032c: 059f3134 ldreq r3, [pc, #308] ; 30010468 30010330: 0a000006 beq 30010350 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30010334: e594304c ldr r3, [r4, #76] ; 0x4c 30010338: e3530005 cmp r3, #5 3001033c: 0a000004 beq 30010354 30010340: e59f0114 ldr r0, [pc, #276] ; 3001045c <== NOT EXECUTED 30010344: e59f1120 ldr r1, [pc, #288] ; 3001046c <== NOT EXECUTED 30010348: e59f2114 ldr r2, [pc, #276] ; 30010464 <== NOT EXECUTED 3001034c: e59f311c ldr r3, [pc, #284] ; 30010470 <== NOT EXECUTED 30010350: ebfff562 bl 3000d8e0 <__assert_func> <== NOT EXECUTED if ( the_jnode->type != IMFS_MEMORY_FILE ) rtems_set_errno_and_return_minus_one( EIO ); if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE ) 30010354: e59f3118 ldr r3, [pc, #280] ; 30010474 30010358: e593b000 ldr fp, [r3] 3001035c: e3a03000 mov r3, #0 30010360: e1530002 cmp r3, r2 30010364: e1a0312b lsr r3, fp, #2 30010368: e2832001 add r2, r3, #1 3001036c: e0010293 mul r1, r3, r2 30010370: e2811001 add r1, r1, #1 30010374: e0020193 mul r2, r3, r1 30010378: e2422001 sub r2, r2, #1 3001037c: e003029b mul r3, fp, r2 30010380: ca000005 bgt 3001039c 30010384: 1a000001 bne 30010390 30010388: e1530005 cmp r3, r5 3001038c: 8a000002 bhi 3001039c rtems_set_errno_and_return_minus_one( EINVAL ); 30010390: eb0006ee bl 30011f50 <__errno> <== NOT EXECUTED 30010394: e3a03016 mov r3, #22 <== NOT EXECUTED 30010398: ea000025 b 30010434 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 3001039c: e5948054 ldr r8, [r4, #84] ; 0x54 300103a0: e5947050 ldr r7, [r4, #80] ; 0x50 300103a4: e1560008 cmp r6, r8 300103a8: ca000002 bgt 300103b8 300103ac: 1a000028 bne 30010454 300103b0: e1550007 cmp r5, r7 300103b4: 9a000026 bls 30010454 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 300103b8: e1a0cfcb asr ip, fp, #31 300103bc: e1a0300c mov r3, ip 300103c0: e1a0200b mov r2, fp 300103c4: e1a00005 mov r0, r5 300103c8: e1a01006 mov r1, r6 300103cc: e58dc000 str ip, [sp] 300103d0: eb002f94 bl 3001c228 <__divdi3> old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 300103d4: e59dc000 ldr ip, [sp] 300103d8: e1a01008 mov r1, r8 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 300103dc: e1a0a000 mov sl, r0 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 300103e0: e1a0200b mov r2, fp 300103e4: e1a00007 mov r0, r7 300103e8: e1a0300c mov r3, ip 300103ec: eb002f8d bl 3001c228 <__divdi3> 300103f0: e1a08000 mov r8, r0 300103f4: e1a07000 mov r7, r0 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 300103f8: ea000011 b 30010444 if ( IMFS_memfile_addblock( the_jnode, block ) ) { 300103fc: e1a00004 mov r0, r4 30010400: e1a01007 mov r1, r7 30010404: ebffff9f bl 30010288 30010408: e3500000 cmp r0, #0 3001040c: 0a00000b beq 30010440 30010410: ea000003 b 30010424 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); 30010414: e1a01007 mov r1, r7 <== NOT EXECUTED 30010418: e1a00004 mov r0, r4 <== NOT EXECUTED 3001041c: ebfffefa bl 3001000c <== 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-- ) { 30010420: e2477001 sub r7, r7, #1 <== NOT EXECUTED 30010424: e1570008 cmp r7, r8 <== NOT EXECUTED 30010428: 2afffff9 bcs 30010414 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 3001042c: eb0006c7 bl 30011f50 <__errno> <== NOT EXECUTED 30010430: e3a0301c mov r3, #28 <== NOT EXECUTED 30010434: e5803000 str r3, [r0] <== NOT EXECUTED 30010438: e3e00000 mvn r0, #0 <== NOT EXECUTED 3001043c: ea000005 b 30010458 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 30010440: e2877001 add r7, r7, #1 30010444: e157000a cmp r7, sl 30010448: 9affffeb bls 300103fc /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 3001044c: e5846054 str r6, [r4, #84] ; 0x54 30010450: e5845050 str r5, [r4, #80] ; 0x50 30010454: e3a00000 mov r0, #0 return 0; } 30010458: e8bd8df8 pop {r3, r4, r5, r6, r7, r8, sl, fp, pc} 3001045c: 3001eca9 .word 0x3001eca9 30010460: 00000131 .word 0x00000131 30010464: 3001e468 .word 0x3001e468 30010468: 3001ecef .word 0x3001ecef 3001046c: 00000135 .word 0x00000135 30010470: 3001ecf9 .word 0x3001ecf9 30010474: 3001f848 .word 0x3001f848 3000fd80 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 3000fd80: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 3000fd84: e2504000 subs r4, r0, #0 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 3000fd88: e1a06001 mov r6, r1 3000fd8c: e1a08002 mov r8, r2 /* * Perform internal consistency checks */ assert( the_jnode ); 3000fd90: 059f01e4 ldreq r0, [pc, #484] ; 3000ff7c 3000fd94: 03a01fe2 moveq r1, #904 ; 0x388 3000fd98: 059f21e0 ldreq r2, [pc, #480] ; 3000ff80 3000fd9c: 059f31e0 ldreq r3, [pc, #480] ; 3000ff84 3000fda0: 0a000006 beq 3000fdc0 if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 3000fda4: e594304c ldr r3, [r4, #76] ; 0x4c 3000fda8: e3530005 cmp r3, #5 3000fdac: 0a000004 beq 3000fdc4 3000fdb0: e59f01c4 ldr r0, [pc, #452] ; 3000ff7c <== NOT EXECUTED 3000fdb4: e59f21c4 ldr r2, [pc, #452] ; 3000ff80 <== NOT EXECUTED 3000fdb8: e59f31c8 ldr r3, [pc, #456] ; 3000ff88 <== NOT EXECUTED 3000fdbc: e3a01fe3 mov r1, #908 ; 0x38c <== NOT EXECUTED 3000fdc0: ebfff6c6 bl 3000d8e0 <__assert_func> <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 3000fdc4: e59f31c0 ldr r3, [pc, #448] ; 3000ff8c 3000fdc8: e5935000 ldr r5, [r3] 3000fdcc: e1a05125 lsr r5, r5, #2 3000fdd0: e2453001 sub r3, r5, #1 3000fdd4: e1510003 cmp r1, r3 3000fdd8: 8a00000e bhi 3000fe18 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 3000fddc: e3520000 cmp r2, #0 if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; 3000fde0: e5940058 ldr r0, [r4, #88] ; 0x58 if ( malloc_it ) { 3000fde4: 0a000007 beq 3000fe08 if ( !p ) { 3000fde8: e3500000 cmp r0, #0 3000fdec: 1a000003 bne 3000fe00 p = memfile_alloc_block(); 3000fdf0: ebffffd5 bl 3000fd4c if ( !p ) 3000fdf4: e3500000 cmp r0, #0 3000fdf8: 0a00005d beq 3000ff74 return 0; info->indirect = p; 3000fdfc: e5840058 str r0, [r4, #88] ; 0x58 } return &info->indirect[ my_block ]; 3000fe00: e5940058 ldr r0, [r4, #88] ; 0x58 3000fe04: ea000001 b 3000fe10 } if ( !p ) 3000fe08: e3500000 cmp r0, #0 3000fe0c: 0a000058 beq 3000ff74 return 0; return &info->indirect[ my_block ]; 3000fe10: e0800106 add r0, r0, r6, lsl #2 3000fe14: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 3000fe18: e2852001 add r2, r5, #1 <== NOT EXECUTED 3000fe1c: e0030295 mul r3, r5, r2 <== NOT EXECUTED 3000fe20: e2432001 sub r2, r3, #1 <== NOT EXECUTED 3000fe24: e1510002 cmp r1, r2 <== NOT EXECUTED 3000fe28: 8a00001a bhi 3000fe98 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 3000fe2c: e0656001 rsb r6, r5, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3000fe30: e1a00006 mov r0, r6 <== NOT EXECUTED 3000fe34: e1a01005 mov r1, r5 <== NOT EXECUTED 3000fe38: eb002e33 bl 3001b70c <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3000fe3c: e1a01005 mov r1, r5 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3000fe40: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3000fe44: e1a00006 mov r0, r6 <== NOT EXECUTED 3000fe48: eb002d9b bl 3001b4bc <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 3000fe4c: e3580000 cmp r8, #0 <== NOT EXECUTED #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3000fe50: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->doubly_indirect; 3000fe54: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED if ( malloc_it ) { 3000fe58: 0a000008 beq 3000fe80 <== NOT EXECUTED if ( !p ) { 3000fe5c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000fe60: 1a000003 bne 3000fe74 <== NOT EXECUTED p = memfile_alloc_block(); 3000fe64: ebffffb8 bl 3000fd4c <== NOT EXECUTED if ( !p ) 3000fe68: e2503000 subs r3, r0, #0 <== NOT EXECUTED 3000fe6c: 0a000040 beq 3000ff74 <== NOT EXECUTED return 0; info->doubly_indirect = p; 3000fe70: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 3000fe74: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED 3000fe78: e0835105 add r5, r3, r5, lsl #2 <== NOT EXECUTED 3000fe7c: ea00002d b 3000ff38 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 3000fe80: e3530000 cmp r3, #0 <== NOT EXECUTED 3000fe84: 0a00003a beq 3000ff74 <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 3000fe88: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED if ( !p ) 3000fe8c: e3500000 cmp r0, #0 <== NOT EXECUTED 3000fe90: 1a000035 bne 3000ff6c <== NOT EXECUTED 3000fe94: ea000036 b 3000ff74 <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 3000fe98: e2831001 add r1, r3, #1 <== NOT EXECUTED 3000fe9c: e0020195 mul r2, r5, r1 <== NOT EXECUTED 3000fea0: e2422001 sub r2, r2, #1 <== NOT EXECUTED 3000fea4: e1560002 cmp r6, r2 <== NOT EXECUTED 3000fea8: 8a000031 bhi 3000ff74 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 3000feac: e0636006 rsb r6, r3, r6 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3000feb0: e1a01005 mov r1, r5 <== NOT EXECUTED 3000feb4: e1a00006 mov r0, r6 <== NOT EXECUTED 3000feb8: eb002e13 bl 3001b70c <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3000febc: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3000fec0: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3000fec4: e1a00006 mov r0, r6 <== NOT EXECUTED 3000fec8: eb002d7b bl 3001b4bc <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 3000fecc: 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; 3000fed0: e1a06000 mov r6, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 3000fed4: eb002d78 bl 3001b4bc <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 3000fed8: 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; 3000fedc: e1a07000 mov r7, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 3000fee0: e1a00006 mov r0, r6 <== NOT EXECUTED 3000fee4: eb002e08 bl 3001b70c <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 3000fee8: e3580000 cmp r8, #0 <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 3000feec: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->triply_indirect; 3000fef0: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED if ( malloc_it ) { 3000fef4: 0a000016 beq 3000ff54 <== NOT EXECUTED if ( !p ) { 3000fef8: e3530000 cmp r3, #0 <== NOT EXECUTED 3000fefc: 1a000003 bne 3000ff10 <== NOT EXECUTED p = memfile_alloc_block(); 3000ff00: ebffff91 bl 3000fd4c <== NOT EXECUTED if ( !p ) 3000ff04: e2503000 subs r3, r0, #0 <== NOT EXECUTED 3000ff08: 0a000019 beq 3000ff74 <== NOT EXECUTED return 0; info->triply_indirect = p; 3000ff0c: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 3000ff10: e7932107 ldr r2, [r3, r7, lsl #2] <== NOT EXECUTED 3000ff14: e0837107 add r7, r3, r7, lsl #2 <== NOT EXECUTED if ( !p1 ) { 3000ff18: e3520000 cmp r2, #0 <== NOT EXECUTED 3000ff1c: 1a000003 bne 3000ff30 <== NOT EXECUTED p1 = memfile_alloc_block(); 3000ff20: ebffff89 bl 3000fd4c <== NOT EXECUTED if ( !p1 ) 3000ff24: e2502000 subs r2, r0, #0 <== NOT EXECUTED 3000ff28: 0a000011 beq 3000ff74 <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 3000ff2c: e5872000 str r2, [r7] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 3000ff30: e7920105 ldr r0, [r2, r5, lsl #2] <== NOT EXECUTED 3000ff34: e0825105 add r5, r2, r5, lsl #2 <== NOT EXECUTED if ( !p2 ) { 3000ff38: e3500000 cmp r0, #0 <== NOT EXECUTED 3000ff3c: 1a00000a bne 3000ff6c <== NOT EXECUTED p2 = memfile_alloc_block(); 3000ff40: ebffff81 bl 3000fd4c <== NOT EXECUTED if ( !p2 ) 3000ff44: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 3000ff48: 15850000 strne r0, [r5] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); if ( !p2 ) 3000ff4c: 1a000006 bne 3000ff6c <== NOT EXECUTED 3000ff50: ea000007 b 3000ff74 <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 3000ff54: e3530000 cmp r3, #0 <== NOT EXECUTED 3000ff58: 0a000005 beq 3000ff74 <== 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 ]; 3000ff5c: e7933107 ldr r3, [r3, r7, lsl #2] <== NOT EXECUTED if ( !p1 ) 3000ff60: e3530000 cmp r3, #0 <== NOT EXECUTED 3000ff64: 0a000002 beq 3000ff74 <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 3000ff68: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED 3000ff6c: e080010a add r0, r0, sl, lsl #2 <== NOT EXECUTED 3000ff70: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 3000ff74: e3a00000 mov r0, #0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 3000ff78: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 3000ff7c: 3001eca9 .word 0x3001eca9 3000ff80: 3001e3e0 .word 0x3001e3e0 3000ff84: 3001ecef .word 0x3001ecef 3000ff88: 3001ecf9 .word 0x3001ecf9 3000ff8c: 3001f848 .word 0x3001f848 30010890 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 30010890: e92d4ff7 push {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 30010894: e2504000 subs r4, r0, #0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 30010898: e1a06003 mov r6, r3 3001089c: e1a08001 mov r8, r1 300108a0: e1a09002 mov r9, r2 300108a4: e59d7030 ldr r7, [sp, #48] ; 0x30 /* * Perform internal consistency checks */ assert( the_jnode ); 300108a8: 059f024c ldreq r0, [pc, #588] ; 30010afc 300108ac: 03a01f93 moveq r1, #588 ; 0x24c 300108b0: 059f2248 ldreq r2, [pc, #584] ; 30010b00 300108b4: 059f3248 ldreq r3, [pc, #584] ; 30010b04 300108b8: 0a000007 beq 300108dc if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 300108bc: e594304c ldr r3, [r4, #76] ; 0x4c 300108c0: e2432005 sub r2, r3, #5 300108c4: e3520001 cmp r2, #1 300108c8: 9a000004 bls 300108e0 300108cc: e59f0228 ldr r0, [pc, #552] ; 30010afc <== NOT EXECUTED 300108d0: e59f1230 ldr r1, [pc, #560] ; 30010b08 <== NOT EXECUTED 300108d4: e59f2224 ldr r2, [pc, #548] ; 30010b00 <== NOT EXECUTED 300108d8: e59f322c ldr r3, [pc, #556] ; 30010b0c <== NOT EXECUTED 300108dc: ebfff3ff bl 3000d8e0 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 300108e0: e3560000 cmp r6, #0 300108e4: 059f0210 ldreq r0, [pc, #528] ; 30010afc 300108e8: 059f1220 ldreq r1, [pc, #544] ; 30010b10 300108ec: 059f220c ldreq r2, [pc, #524] ; 30010b00 300108f0: 059f321c ldreq r3, [pc, #540] ; 30010b14 300108f4: 0afffff8 beq 300108dc /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 300108f8: e3570000 cmp r7, #0 300108fc: 1a000004 bne 30010914 rtems_set_errno_and_return_minus_one( EINVAL ); 30010900: eb000592 bl 30011f50 <__errno> <== NOT EXECUTED 30010904: e3a03016 mov r3, #22 <== NOT EXECUTED 30010908: e5803000 str r3, [r0] <== NOT EXECUTED 3001090c: e3e07000 mvn r7, #0 <== NOT EXECUTED 30010910: ea000077 b 30010af4 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 30010914: e3530006 cmp r3, #6 30010918: 1a000012 bne 30010968 unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 3001091c: e284b050 add fp, r4, #80 ; 0x50 <== NOT EXECUTED 30010920: e89b0c00 ldm fp, {sl, fp} <== NOT EXECUTED 30010924: e1a0200a mov r2, sl <== NOT EXECUTED 30010928: e1a0300b mov r3, fp <== NOT EXECUTED 3001092c: e3a01000 mov r1, #0 <== NOT EXECUTED 30010930: e0522008 subs r2, r2, r8 <== NOT EXECUTED 30010934: e0c33009 sbc r3, r3, r9 <== NOT EXECUTED 30010938: e1510003 cmp r1, r3 <== 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; 3001093c: e5941058 ldr r1, [r4, #88] ; 0x58 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) 30010940: ca000002 bgt 30010950 <== NOT EXECUTED 30010944: 1a000002 bne 30010954 <== NOT EXECUTED 30010948: e1570002 cmp r7, r2 <== NOT EXECUTED 3001094c: 9a000000 bls 30010954 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 30010950: e068700a rsb r7, r8, sl <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 30010954: e0811008 add r1, r1, r8 <== NOT EXECUTED 30010958: e1a00006 mov r0, r6 <== NOT EXECUTED 3001095c: e1a02007 mov r2, r7 <== NOT EXECUTED 30010960: eb000788 bl 30012788 <== NOT EXECUTED 30010964: ea00005d b 30010ae0 <== NOT EXECUTED * If the last byte we are supposed to read is past the end of this * in memory file, then shorten the length to read. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) 30010968: e5943054 ldr r3, [r4, #84] ; 0x54 3001096c: e3a02000 mov r2, #0 30010970: e1520003 cmp r2, r3 30010974: e5945050 ldr r5, [r4, #80] ; 0x50 /* * 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; 30010978: e1a03001 mov r3, r1 if ( last_byte > the_jnode->info.file.size ) 3001097c: e0872001 add r2, r7, r1 30010980: ca000004 bgt 30010998 30010984: 1a000001 bne 30010990 30010988: e1520005 cmp r2, r5 3001098c: 8a000001 bhi 30010998 30010990: e1a05007 mov r5, r7 <== NOT EXECUTED 30010994: ea000000 b 3001099c <== NOT EXECUTED my_length = the_jnode->info.file.size - start; 30010998: e0635005 rsb r5, r3, r5 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 3001099c: e59f3174 ldr r3, [pc, #372] ; 30010b18 300109a0: e1a00008 mov r0, r8 300109a4: e593a000 ldr sl, [r3] 300109a8: e1a01009 mov r1, r9 300109ac: e1a0b00a mov fp, sl 300109b0: e1a0cfcb asr ip, fp, #31 300109b4: e1a0300c mov r3, ip 300109b8: e1a0200b mov r2, fp 300109bc: e58dc000 str ip, [sp] 300109c0: eb002f42 bl 3001c6d0 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 300109c4: e59dc000 ldr ip, [sp] /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 300109c8: e1a07000 mov r7, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 300109cc: e1a01009 mov r1, r9 300109d0: e1a00008 mov r0, r8 300109d4: e1a0200b mov r2, fp 300109d8: e1a0300c mov r3, ip 300109dc: eb002e11 bl 3001c228 <__divdi3> if ( start_offset ) { 300109e0: e3570000 cmp r7, #0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 300109e4: e1a08000 mov r8, r0 if ( start_offset ) { 300109e8: 0a000013 beq 30010a3c 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 ); 300109ec: e1a00004 mov r0, r4 300109f0: e1a01008 mov r1, r8 300109f4: e3a02000 mov r2, #0 300109f8: ebfffce0 bl 3000fd80 assert( block_ptr ); 300109fc: e3500000 cmp r0, #0 30010a00: 059f00f4 ldreq r0, [pc, #244] ; 30010afc 30010a04: 059f1110 ldreq r1, [pc, #272] ; 30010b1c 30010a08: 0a00002c beq 30010ac0 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 30010a0c: 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; 30010a10: e067a00a rsb sl, r7, sl 30010a14: e155000a cmp r5, sl 30010a18: 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 ); 30010a1c: e0811007 add r1, r1, r7 30010a20: e1a00006 mov r0, r6 30010a24: e1a0200a mov r2, sl 30010a28: eb000756 bl 30012788 dest += to_copy; 30010a2c: e086600a add r6, r6, sl block++; 30010a30: e2888001 add r8, r8, #1 my_length -= to_copy; 30010a34: e06a5005 rsb r5, sl, r5 30010a38: e1a0700a mov r7, sl /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 30010a3c: e59f30d4 ldr r3, [pc, #212] ; 30010b18 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010a40: e1a09003 mov r9, r3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 30010a44: e593a000 ldr sl, [r3] while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010a48: ea00000f b 30010a8c block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30010a4c: e1a00004 mov r0, r4 30010a50: e1a01008 mov r1, r8 30010a54: e3a02000 mov r2, #0 30010a58: ebfffcc8 bl 3000fd80 assert( block_ptr ); 30010a5c: e3500000 cmp r0, #0 30010a60: 059f0094 ldreq r0, [pc, #148] ; 30010afc 30010a64: 059f10b4 ldreq r1, [pc, #180] ; 30010b20 30010a68: 0a000014 beq 30010ac0 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 30010a6c: e5901000 ldr r1, [r0] 30010a70: e1a0200a mov r2, sl 30010a74: e1a00006 mov r0, r6 30010a78: eb000742 bl 30012788 dest += to_copy; 30010a7c: e086600a add r6, r6, sl block++; 30010a80: e2888001 add r8, r8, #1 my_length -= to_copy; 30010a84: e06a5005 rsb r5, sl, r5 copied += to_copy; 30010a88: e087700a add r7, r7, sl /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010a8c: e5993000 ldr r3, [r9] 30010a90: e1550003 cmp r5, r3 30010a94: 2affffec bcs 30010a4c * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 30010a98: e3550000 cmp r5, #0 30010a9c: 0a00000f beq 30010ae0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30010aa0: e1a01008 mov r1, r8 30010aa4: e1a00004 mov r0, r4 30010aa8: e3a02000 mov r2, #0 30010aac: ebfffcb3 bl 3000fd80 assert( block_ptr ); 30010ab0: e2503000 subs r3, r0, #0 30010ab4: 1a000004 bne 30010acc 30010ab8: e59f003c ldr r0, [pc, #60] ; 30010afc <== NOT EXECUTED 30010abc: e59f1060 ldr r1, [pc, #96] ; 30010b24 <== NOT EXECUTED 30010ac0: e59f2038 ldr r2, [pc, #56] ; 30010b00 <== NOT EXECUTED 30010ac4: e59f305c ldr r3, [pc, #92] ; 30010b28 <== NOT EXECUTED 30010ac8: eaffff83 b 300108dc <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 30010acc: e1a00006 mov r0, r6 30010ad0: e5931000 ldr r1, [r3] 30010ad4: e1a02005 mov r2, r5 30010ad8: eb00072a bl 30012788 copied += my_length; 30010adc: e0857007 add r7, r5, r7 } IMFS_update_atime( the_jnode ); 30010ae0: e28d0004 add r0, sp, #4 30010ae4: e3a01000 mov r1, #0 30010ae8: ebffc7f5 bl 30002ac4 30010aec: e59d3004 ldr r3, [sp, #4] 30010af0: e5843040 str r3, [r4, #64] ; 0x40 return copied; } 30010af4: e1a00007 mov r0, r7 30010af8: e8bd8ffe pop {r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} 30010afc: 3001eca9 .word 0x3001eca9 30010b00: 3001e490 .word 0x3001e490 30010b04: 3001ecef .word 0x3001ecef 30010b08: 00000251 .word 0x00000251 30010b0c: 3001ed63 .word 0x3001ed63 30010b10: 0000025a .word 0x0000025a 30010b14: 3001edae .word 0x3001edae 30010b18: 3001f848 .word 0x3001f848 30010b1c: 00000296 .word 0x00000296 30010b20: 000002a7 .word 0x000002a7 30010b24: 000002b9 .word 0x000002b9 30010b28: 3001ed29 .word 0x3001ed29 30010058 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 30010058: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 3001005c: e2504000 subs r4, r0, #0 30010060: 059f012c ldreq r0, [pc, #300] ; 30010194 30010064: 059f112c ldreq r1, [pc, #300] ; 30010198 30010068: 059f212c ldreq r2, [pc, #300] ; 3001019c 3001006c: 059f312c ldreq r3, [pc, #300] ; 300101a0 30010070: 0a000006 beq 30010090 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30010074: e594304c ldr r3, [r4, #76] ; 0x4c 30010078: e3530005 cmp r3, #5 3001007c: 0a000004 beq 30010094 30010080: e59f010c ldr r0, [pc, #268] ; 30010194 <== NOT EXECUTED 30010084: e59f1118 ldr r1, [pc, #280] ; 300101a4 <== NOT EXECUTED 30010088: e59f210c ldr r2, [pc, #268] ; 3001019c <== NOT EXECUTED 3001008c: e59f3114 ldr r3, [pc, #276] ; 300101a8 <== NOT EXECUTED 30010090: ebfff612 bl 3000d8e0 <__assert_func> <== NOT EXECUTED /* * Eventually this could be set smarter at each call to * memfile_free_blocks_in_table to greatly speed this up. */ to_free = IMFS_MEMFILE_BLOCK_SLOTS; 30010094: e59f2110 ldr r2, [pc, #272] ; 300101ac * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 30010098: e5943058 ldr r3, [r4, #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; 3001009c: e5925000 ldr r5, [r2] * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 300100a0: 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; 300100a4: e1a05125 lsr r5, r5, #2 */ info = &the_jnode->info.file; if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 300100a8: 12840058 addne r0, r4, #88 ; 0x58 300100ac: 11a01005 movne r1, r5 300100b0: 1bffffb6 blne 3000ff90 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 300100b4: e594305c ldr r3, [r4, #92] ; 0x5c 300100b8: e3530000 cmp r3, #0 300100bc: 13a06000 movne r6, #0 memfile_free_blocks_in_table( &info->indirect, to_free ); } if ( info->doubly_indirect ) { for ( i=0 ; i * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 300100c4: 1a000008 bne 300100ec 300100c8: ea00000d b 30010104 } if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { 300100cc: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED 300100d0: e1a00106 lsl r0, r6, #2 <== NOT EXECUTED 300100d4: e7932106 ldr r2, [r3, r6, lsl #2] <== NOT EXECUTED 300100d8: e3520000 cmp r2, #0 <== NOT EXECUTED memfile_free_blocks_in_table( 300100dc: 10830000 addne r0, r3, r0 <== NOT EXECUTED 300100e0: 11a01005 movne r1, r5 <== NOT EXECUTED 300100e4: 1bffffa9 blne 3000ff90 <== 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 ); 300100f8: e284005c add r0, r4, #92 ; 0x5c <== NOT EXECUTED 300100fc: e1a01005 mov r1, r5 <== NOT EXECUTED 30010100: ebffffa2 bl 3000ff90 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 30010104: e5943060 ldr r3, [r4, #96] ; 0x60 30010108: e3530000 cmp r3, #0 3001010c: 13a06000 movne r6, #0 memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 30010114: 1a000016 bne 30010174 30010118: ea00001b b 3001018c } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 3001011c: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 30010120: e1a09106 lsl r9, r6, #2 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 30010124: e7937106 ldr r7, [r3, r6, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 30010128: e3570000 cmp r7, #0 <== NOT EXECUTED 3001012c: 0a000013 beq 30010180 <== NOT EXECUTED 30010130: e3a08000 mov r8, #0 <== NOT EXECUTED 30010134: ea000006 b 30010154 <== NOT EXECUTED break; for ( j=0 ; j <== 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 if ( p[j] ) { memfile_free_blocks_in_table( (block_p **)&p[j], to_free); } } memfile_free_blocks_in_table( 30010160: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED 30010164: e1a01005 mov r1, r5 <== NOT EXECUTED 30010168: e0800009 add r0, r0, r9 <== NOT EXECUTED 3001016c: ebffff87 bl 3000ff90 <== NOT EXECUTED memfile_free_blocks_in_table( &info->doubly_indirect, to_free ); } if ( info->triply_indirect ) { for ( i=0 ; i <== NOT EXECUTED } } memfile_free_blocks_in_table( (block_p **)&info->triply_indirect[i], to_free ); } memfile_free_blocks_in_table( 30010180: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED 30010184: e1a01005 mov r1, r5 <== NOT EXECUTED 30010188: ebffff80 bl 3000ff90 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 3001018c: e3a00000 mov r0, #0 30010190: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} 30010194: 3001eca9 .word 0x3001eca9 30010198: 000001ee .word 0x000001ee 3001019c: 3001e43c .word 0x3001e43c 300101a0: 3001ecef .word 0x3001ecef 300101a4: 000001f2 .word 0x000001f2 300101a8: 3001ecf9 .word 0x3001ecf9 300101ac: 3001f848 .word 0x3001f848 3001000c : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 3001000c: 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 ); 30010010: e3a02000 mov r2, #0 <== NOT EXECUTED 30010014: ebffff59 bl 3000fd80 <== NOT EXECUTED assert( block_ptr ); 30010018: e2503000 subs r3, r0, #0 <== NOT EXECUTED 3001001c: 059f0024 ldreq r0, [pc, #36] ; 30010048 <== NOT EXECUTED 30010020: 059f1024 ldreq r1, [pc, #36] ; 3001004c <== NOT EXECUTED 30010024: 059f2024 ldreq r2, [pc, #36] ; 30010050 <== NOT EXECUTED 30010028: 059f3024 ldreq r3, [pc, #36] ; 30010054 <== NOT EXECUTED 3001002c: 0bfff62b bleq 3000d8e0 <__assert_func> <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; 30010030: 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; 30010034: e5930000 ldr r0, [r3] <== NOT EXECUTED *block_ptr = 0; 30010038: e5832000 str r2, [r3] <== NOT EXECUTED memfile_free_block( ptr ); 3001003c: ebffff3a bl 3000fd2c <== NOT EXECUTED } return 1; } 30010040: e3a00001 mov r0, #1 <== NOT EXECUTED 30010044: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30010048: 3001eca9 .word 0x3001eca9 3001004c: 00000196 .word 0x00000196 30010050: 3001e420 .word 0x3001e420 30010054: 3001ed29 .word 0x3001ed29 30010568 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 30010568: e92d4ff7 push {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 3001056c: e2504000 subs r4, r0, #0 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 30010570: e1a08001 mov r8, r1 30010574: e1a0a002 mov sl, r2 30010578: e1a06003 mov r6, r3 3001057c: e59d5030 ldr r5, [sp, #48] ; 0x30 /* * Perform internal consistency checks */ assert( the_jnode ); 30010580: 059f0204 ldreq r0, [pc, #516] ; 3001078c 30010584: 059f1204 ldreq r1, [pc, #516] ; 30010790 30010588: 059f2204 ldreq r2, [pc, #516] ; 30010794 3001058c: 059f3204 ldreq r3, [pc, #516] ; 30010798 30010590: 0a000006 beq 300105b0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 30010594: e594304c ldr r3, [r4, #76] ; 0x4c 30010598: e3530005 cmp r3, #5 3001059c: 0a000004 beq 300105b4 300105a0: e59f01e4 ldr r0, [pc, #484] ; 3001078c <== NOT EXECUTED 300105a4: e59f11f0 ldr r1, [pc, #496] ; 3001079c <== NOT EXECUTED 300105a8: e59f21e4 ldr r2, [pc, #484] ; 30010794 <== NOT EXECUTED 300105ac: e59f31ec ldr r3, [pc, #492] ; 300107a0 <== NOT EXECUTED 300105b0: ebfff4ca bl 3000d8e0 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 300105b4: e3560000 cmp r6, #0 300105b8: 059f01cc ldreq r0, [pc, #460] ; 3001078c 300105bc: 059f11e0 ldreq r1, [pc, #480] ; 300107a4 300105c0: 059f21cc ldreq r2, [pc, #460] ; 30010794 300105c4: 059f31dc ldreq r3, [pc, #476] ; 300107a8 300105c8: 0afffff8 beq 300105b0 /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 300105cc: e3550000 cmp r5, #0 300105d0: 1a000002 bne 300105e0 rtems_set_errno_and_return_minus_one( EINVAL ); 300105d4: eb00065d bl 30011f50 <__errno> <== NOT EXECUTED 300105d8: e3a03016 mov r3, #22 <== NOT EXECUTED 300105dc: ea00000e b 3001061c <== NOT EXECUTED * If the last byte we are supposed to write is past the end of this * in memory file, then extend the length. */ last_byte = start + length; if ( last_byte > the_jnode->info.file.size ) { 300105e0: e5943054 ldr r3, [r4, #84] ; 0x54 300105e4: e0851001 add r1, r5, r1 300105e8: e3530000 cmp r3, #0 300105ec: ba000003 blt 30010600 300105f0: 1a00000c bne 30010628 300105f4: e5943050 ldr r3, [r4, #80] ; 0x50 300105f8: e1530001 cmp r3, r1 300105fc: 2a000009 bcs 30010628 status = IMFS_memfile_extend( the_jnode, last_byte ); 30010600: e1a00004 mov r0, r4 30010604: e3a02000 mov r2, #0 30010608: ebffff40 bl 30010310 if ( status ) 3001060c: e3500000 cmp r0, #0 30010610: 0a000004 beq 30010628 rtems_set_errno_and_return_minus_one( ENOSPC ); 30010614: eb00064d bl 30011f50 <__errno> <== NOT EXECUTED 30010618: e3a0301c mov r3, #28 <== NOT EXECUTED 3001061c: e5803000 str r3, [r0] <== NOT EXECUTED 30010620: e3e07000 mvn r7, #0 <== NOT EXECUTED 30010624: ea000056 b 30010784 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30010628: e59f317c ldr r3, [pc, #380] ; 300107ac 3001062c: e1a00008 mov r0, r8 30010630: e5939000 ldr r9, [r3] 30010634: e1a0100a mov r1, sl 30010638: e1a0b009 mov fp, r9 3001063c: e1a0cfcb asr ip, fp, #31 30010640: e1a0300c mov r3, ip 30010644: e1a0200b mov r2, fp 30010648: e58dc000 str ip, [sp] 3001064c: eb00301f bl 3001c6d0 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30010650: e59dc000 ldr ip, [sp] /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 30010654: e1a07000 mov r7, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30010658: e1a0100a mov r1, sl 3001065c: e1a00008 mov r0, r8 30010660: e1a0200b mov r2, fp 30010664: e1a0300c mov r3, ip 30010668: eb002eee bl 3001c228 <__divdi3> if ( start_offset ) { 3001066c: e3570000 cmp r7, #0 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 30010670: e1a08000 mov r8, r0 if ( start_offset ) { 30010674: 0a000013 beq 300106c8 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 ); 30010678: e1a01008 mov r1, r8 3001067c: e1a00004 mov r0, r4 30010680: e3a02000 mov r2, #0 30010684: ebfffdbd bl 3000fd80 assert( block_ptr ); 30010688: e3500000 cmp r0, #0 3001068c: 059f00f8 ldreq r0, [pc, #248] ; 3001078c 30010690: 03a01fc7 moveq r1, #796 ; 0x31c 30010694: 0a00002c beq 3001074c 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 ); 30010698: 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; 3001069c: e067a009 rsb sl, r7, r9 300106a0: e15a0005 cmp sl, r5 300106a4: 21a0a005 movcs sl, r5 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 ); 300106a8: e0800007 add r0, r0, r7 300106ac: e1a01006 mov r1, r6 300106b0: e1a0200a mov r2, sl 300106b4: eb000833 bl 30012788 src += to_copy; 300106b8: e086600a add r6, r6, sl block++; 300106bc: e2888001 add r8, r8, #1 my_length -= to_copy; 300106c0: e06a5005 rsb r5, sl, r5 copied += to_copy; 300106c4: e1a0700a mov r7, sl /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 300106c8: e59f30dc ldr r3, [pc, #220] ; 300107ac while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 300106cc: e1a09003 mov r9, r3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 300106d0: e593a000 ldr sl, [r3] while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 300106d4: ea00000f b 30010718 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 300106d8: e1a00004 mov r0, r4 300106dc: e1a01008 mov r1, r8 300106e0: e3a02000 mov r2, #0 300106e4: ebfffda5 bl 3000fd80 assert( block_ptr ); 300106e8: e3500000 cmp r0, #0 300106ec: 059f0098 ldreq r0, [pc, #152] ; 3001078c 300106f0: 03a01e33 moveq r1, #816 ; 0x330 300106f4: 0a000014 beq 3001074c 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 ); 300106f8: e1a01006 mov r1, r6 300106fc: e5900000 ldr r0, [r0] 30010700: e1a0200a mov r2, sl 30010704: eb00081f bl 30012788 src += to_copy; 30010708: e086600a add r6, r6, sl block++; 3001070c: e2888001 add r8, r8, #1 my_length -= to_copy; 30010710: e06a5005 rsb r5, sl, r5 * * 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( 30010714: e087700a add r7, r7, sl /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010718: e5993000 ldr r3, [r9] 3001071c: e1550003 cmp r5, r3 30010720: 2affffec bcs 300106d8 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 30010724: e3550000 cmp r5, #0 30010728: 0a00000f beq 3001076c block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 3001072c: e1a01008 mov r1, r8 30010730: e1a00004 mov r0, r4 30010734: e3a02000 mov r2, #0 30010738: ebfffd90 bl 3000fd80 assert( block_ptr ); 3001073c: e3500000 cmp r0, #0 30010740: 1a000004 bne 30010758 30010744: e59f0040 ldr r0, [pc, #64] ; 3001078c <== NOT EXECUTED 30010748: e59f1060 ldr r1, [pc, #96] ; 300107b0 <== NOT EXECUTED 3001074c: e59f2040 ldr r2, [pc, #64] ; 30010794 <== NOT EXECUTED 30010750: e59f305c ldr r3, [pc, #92] ; 300107b4 <== NOT EXECUTED 30010754: eaffff95 b 300105b0 <== NOT EXECUTED 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 ); 30010758: e5900000 ldr r0, [r0] 3001075c: e1a01006 mov r1, r6 30010760: e1a02005 mov r2, r5 30010764: eb000807 bl 30012788 my_length = 0; copied += to_copy; 30010768: e0877005 add r7, r7, r5 } IMFS_mtime_ctime_update( the_jnode ); 3001076c: e28d0004 add r0, sp, #4 30010770: e3a01000 mov r1, #0 30010774: ebffc8d2 bl 30002ac4 30010778: e59d3004 ldr r3, [sp, #4] 3001077c: e5843048 str r3, [r4, #72] ; 0x48 30010780: e5843044 str r3, [r4, #68] ; 0x44 return copied; } 30010784: e1a00007 mov r0, r7 30010788: e8bd8ffe pop {r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} 3001078c: 3001eca9 .word 0x3001eca9 30010790: 000002e3 .word 0x000002e3 30010794: 3001e47c .word 0x3001e47c 30010798: 3001ecef .word 0x3001ecef 3001079c: 000002e7 .word 0x000002e7 300107a0: 3001ecf9 .word 0x3001ecf9 300107a4: 000002ef .word 0x000002ef 300107a8: 3001ed33 .word 0x3001ed33 300107ac: 3001f848 .word 0x3001f848 300107b0: 00000346 .word 0x00000346 300107b4: 3001ed29 .word 0x3001ed29 300084ac : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 300084ac: e92d40f0 push {r4, r5, r6, r7, lr} 300084b0: e24dd040 sub sp, sp, #64 ; 0x40 300084b4: e1a04001 mov r4, r1 300084b8: e1a07000 mov r7, r0 300084bc: e1a06002 mov r6, r2 300084c0: e1a05003 mov r5, r3 IMFS_jnode_t *new_node; int result; char new_name[ IMFS_NAME_MAX + 1 ]; IMFS_types_union info; IMFS_get_token( token, strlen( token ), new_name, &result ); 300084c4: eb001542 bl 3000d9d4 300084c8: e28d303c add r3, sp, #60 ; 0x3c 300084cc: e1a01000 mov r1, r0 300084d0: e28d2004 add r2, sp, #4 300084d4: e1a00007 mov r0, r7 300084d8: ebffff8a bl 30008308 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 300084dc: e2043a0f and r3, r4, #61440 ; 0xf000 300084e0: e3530901 cmp r3, #16384 ; 0x4000 300084e4: 0a00000e beq 30008524 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 300084e8: e3530902 cmp r3, #32768 ; 0x8000 300084ec: 03a01005 moveq r1, #5 300084f0: 0a00000c beq 30008528 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 300084f4: e3530a06 cmp r3, #24576 ; 0x6000 300084f8: 13530a02 cmpne r3, #8192 ; 0x2000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 300084fc: 058d6028 streq r6, [sp, #40] ; 0x28 30008500: 058d502c streq r5, [sp, #44] ; 0x2c 30008504: 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) ) { 30008508: 0a000006 beq 30008528 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 3000850c: e3530a01 cmp r3, #4096 ; 0x1000 30008510: 03a01007 moveq r1, #7 30008514: 0a000003 beq 30008528 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 30008518: eb00113c bl 3000ca10 <__errno> <== NOT EXECUTED 3000851c: e3a03016 mov r3, #22 <== NOT EXECUTED 30008520: ea00000b b 30008554 <== NOT EXECUTED 30008524: e3a01001 mov r1, #1 * 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( 30008528: e28dc028 add ip, sp, #40 ; 0x28 3000852c: e59d0054 ldr r0, [sp, #84] ; 0x54 30008530: e1a03004 mov r3, r4 30008534: e28d2004 add r2, sp, #4 30008538: e58dc000 str ip, [sp] 3000853c: eb000b4c bl 3000b274 new_name, mode, &info ); if ( !new_node ) 30008540: e3500000 cmp r0, #0 30008544: 13a00000 movne r0, #0 30008548: 1a000003 bne 3000855c rtems_set_errno_and_return_minus_one( ENOMEM ); 3000854c: eb00112f bl 3000ca10 <__errno> <== NOT EXECUTED 30008550: e3a0300c mov r3, #12 <== NOT EXECUTED 30008554: e5803000 str r3, [r0] <== NOT EXECUTED 30008558: e3e00000 mvn r0, #0 <== NOT EXECUTED return 0; } 3000855c: e28dd040 add sp, sp, #64 ; 0x40 30008560: e8bd80f0 pop {r4, r5, r6, r7, pc} 300022a8 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 300022a8: e5903008 ldr r3, [r0, #8] #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 300022ac: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 300022b0: e593204c ldr r2, [r3, #76] ; 0x4c 300022b4: e3520001 cmp r2, #1 300022b8: 0a000004 beq 300022d0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 300022bc: eb003f23 bl 30011f50 <__errno> <== NOT EXECUTED 300022c0: e3a03014 mov r3, #20 <== NOT EXECUTED 300022c4: e5803000 str r3, [r0] <== NOT EXECUTED 300022c8: e3e00000 mvn r0, #0 <== NOT EXECUTED 300022cc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Set mt_fs pointer to point to the mount table entry for * the mounted file system. */ node->info.directory.mt_fs = mt_entry; 300022d0: e583005c str r0, [r3, #92] ; 0x5c 300022d4: e3a00000 mov r0, #0 return 0; } 300022d8: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30002c74 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { 30002c74: e92d4030 push {r4, r5, lr} assert( the_jnode ); 30002c78: e2504000 subs r4, r0, #0 30002c7c: 059f0130 ldreq r0, [pc, #304] ; 30002db4 30002c80: 03a01038 moveq r1, #56 ; 0x38 30002c84: 059f212c ldreq r2, [pc, #300] ; 30002db8 30002c88: 059f312c ldreq r3, [pc, #300] ; 30002dbc 30002c8c: 0a00002f beq 30002d50 fprintf(stdout, "%s", the_jnode->name ); 30002c90: e59f5128 ldr r5, [pc, #296] ; 30002dc0 30002c94: e284000c add r0, r4, #12 30002c98: e5953000 ldr r3, [r5] 30002c9c: e5931008 ldr r1, [r3, #8] 30002ca0: eb0039fa bl 30011490 switch( the_jnode->type ) { 30002ca4: e594204c ldr r2, [r4, #76] ; 0x4c 30002ca8: e2423001 sub r3, r2, #1 30002cac: e3530006 cmp r3, #6 30002cb0: 979ff103 ldrls pc, [pc, r3, lsl #2] 30002cb4: ea000034 b 30002d8c <== NOT EXECUTED 30002cb8: 30002cd4 .word 0x30002cd4 <== NOT EXECUTED 30002cbc: 30002ce8 .word 0x30002ce8 <== NOT EXECUTED 30002cc0: 30002d30 .word 0x30002d30 <== NOT EXECUTED 30002cc4: 30002d54 .word 0x30002d54 <== NOT EXECUTED 30002cc8: 30002d18 .word 0x30002d18 <== NOT EXECUTED 30002ccc: 30002cfc .word 0x30002cfc <== NOT EXECUTED 30002cd0: 30002d70 .word 0x30002d70 <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); 30002cd4: e5953000 ldr r3, [r5] 30002cd8: e3a0002f mov r0, #47 ; 0x2f 30002cdc: e5931008 ldr r1, [r3, #8] 30002ce0: eb0039a5 bl 3001137c break; 30002ce4: ea00002f b 30002da8 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", 30002ce8: e5952000 ldr r2, [r5] 30002cec: e5943054 ldr r3, [r4, #84] ; 0x54 30002cf0: e5920008 ldr r0, [r2, #8] 30002cf4: e59f10c8 ldr r1, [pc, #200] ; 30002dc4 30002cf8: ea000003 b 30002d0c the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", 30002cfc: e5952000 ldr r2, [r5] <== NOT EXECUTED 30002d00: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED 30002d04: e5920008 ldr r0, [r2, #8] <== NOT EXECUTED 30002d08: e59f10b8 ldr r1, [pc, #184] ; 30002dc8 <== NOT EXECUTED 30002d0c: e5942050 ldr r2, [r4, #80] ; 0x50 30002d10: eb00397d bl 3001130c (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; 30002d14: ea000023 b 30002da8 the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", 30002d18: e5953000 ldr r3, [r5] 30002d1c: e5942050 ldr r2, [r4, #80] ; 0x50 30002d20: e5930008 ldr r0, [r3, #8] 30002d24: e59f10a0 ldr r1, [pc, #160] ; 30002dcc 30002d28: eb003977 bl 3001130c (uint32_t)the_jnode->info.file.size ); #endif break; 30002d2c: ea00001d b 30002da8 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); 30002d30: e5953000 ldr r3, [r5] <== NOT EXECUTED 30002d34: e59f0094 ldr r0, [pc, #148] ; 30002dd0 <== NOT EXECUTED 30002d38: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED 30002d3c: eb0039d3 bl 30011490 <== NOT EXECUTED assert(0); 30002d40: e59f006c ldr r0, [pc, #108] ; 30002db4 <== NOT EXECUTED 30002d44: e3a0105d mov r1, #93 ; 0x5d <== NOT EXECUTED 30002d48: e59f2068 ldr r2, [pc, #104] ; 30002db8 <== NOT EXECUTED 30002d4c: e59f3080 ldr r3, [pc, #128] ; 30002dd4 <== NOT EXECUTED 30002d50: eb00020a bl 30003580 <__assert_func> <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); 30002d54: e5953000 ldr r3, [r5] <== NOT EXECUTED 30002d58: e59f0070 ldr r0, [pc, #112] ; 30002dd0 <== NOT EXECUTED 30002d5c: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED 30002d60: eb0039ca bl 30011490 <== NOT EXECUTED assert(0); 30002d64: e59f0048 ldr r0, [pc, #72] ; 30002db4 <== NOT EXECUTED 30002d68: e3a01062 mov r1, #98 ; 0x62 <== NOT EXECUTED 30002d6c: eafffff5 b 30002d48 <== NOT EXECUTED break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); 30002d70: e5953000 ldr r3, [r5] <== NOT EXECUTED 30002d74: e59f005c ldr r0, [pc, #92] ; 30002dd8 <== NOT EXECUTED 30002d78: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED 30002d7c: eb0039c3 bl 30011490 <== NOT EXECUTED assert(0); 30002d80: e59f002c ldr r0, [pc, #44] ; 30002db4 <== NOT EXECUTED 30002d84: e3a01067 mov r1, #103 ; 0x67 <== NOT EXECUTED 30002d88: eaffffee b 30002d48 <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); 30002d8c: e5953000 ldr r3, [r5] <== NOT EXECUTED 30002d90: e59f1044 ldr r1, [pc, #68] ; 30002ddc <== NOT EXECUTED 30002d94: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 30002d98: eb00395b bl 3001130c <== NOT EXECUTED assert(0); 30002d9c: e59f0010 ldr r0, [pc, #16] ; 30002db4 <== NOT EXECUTED 30002da0: e3a0106c mov r1, #108 ; 0x6c <== NOT EXECUTED 30002da4: eaffffe7 b 30002d48 <== NOT EXECUTED break; } puts(""); 30002da8: e59f0030 ldr r0, [pc, #48] ; 30002de0 } 30002dac: e8bd4030 pop {r4, r5, lr} default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); 30002db0: ea004082 b 30012fc0 30002db4: 300220bc .word 0x300220bc 30002db8: 30020c64 .word 0x30020c64 30002dbc: 30022105 .word 0x30022105 30002dc0: 30023124 .word 0x30023124 30002dc4: 3002210f .word 0x3002210f 30002dc8: 30022122 .word 0x30022122 30002dcc: 30022131 .word 0x30022131 30002dd0: 3002213d .word 0x3002213d 30002dd4: 30021a81 .word 0x30021a81 30002dd8: 30022151 .word 0x30022151 30002ddc: 30022164 .word 0x30022164 30002de0: 300222f5 .word 0x300222f5 300022e8 : ) { IMFS_jnode_t *node; int i; node = loc->node_access; 300022e8: e5903000 ldr r3, [r0] int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { 300022ec: e52de004 push {lr} ; (str lr, [sp, #-4]!) IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) 300022f0: e593004c ldr r0, [r3, #76] ; 0x4c 300022f4: e3500004 cmp r0, #4 300022f8: 03a00000 moveq r0, #0 300022fc: 0a000006 beq 3000231c rtems_set_errno_and_return_minus_one( EINVAL ); 30002300: eb003f12 bl 30011f50 <__errno> <== NOT EXECUTED 30002304: e3a03016 mov r3, #22 <== NOT EXECUTED 30002308: e5803000 str r3, [r0] <== NOT EXECUTED 3000230c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30002310: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED for( i=0; ((iinfo.sym_link.name[i] != '\0')); i++ ) buf[i] = node->info.sym_link.name[i]; 30002314: e7c1c000 strb ip, [r1, r0] 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++ ) 30002318: e2800001 add r0, r0, #1 3000231c: e1500002 cmp r0, r2 30002320: 249df004 popcs {pc} ; (ldrcs pc, [sp], #4) 30002324: e593c050 ldr ip, [r3, #80] ; 0x50 30002328: e7dcc000 ldrb ip, [ip, r0] 3000232c: e35c0000 cmp ip, #0 30002330: 1afffff7 bne 30002314 buf[i] = node->info.sym_link.name[i]; return i; } 30002334: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30002338 : 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 */ ) { 30002338: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; IMFS_jnode_t *new_parent; the_jnode = old_loc->node_access; 3000233c: 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 */ ) { 30002340: 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 ); 30002344: e1a01003 mov r1, r3 <== NOT EXECUTED 30002348: e284000c add r0, r4, #12 <== NOT EXECUTED 3000234c: e3a02020 mov r2, #32 <== NOT EXECUTED 30002350: eb0042ef bl 30012f14 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) 30002354: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 30002358: e3530000 cmp r3, #0 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 3000235c: 11a00004 movne r0, r4 <== NOT EXECUTED 30002360: 1b0011b0 blne 30006a28 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; 30002364: 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 ); 30002368: e1a01004 mov r1, r4 <== NOT EXECUTED 3000236c: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED the_jnode->Parent = new_parent; 30002370: e5843008 str r3, [r4, #8] <== NOT EXECUTED 30002374: eb0011a0 bl 300069fc <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); 30002378: e1a0000d mov r0, sp <== NOT EXECUTED 3000237c: e3a01000 mov r1, #0 <== NOT EXECUTED 30002380: eb0001cf bl 30002ac4 <== NOT EXECUTED 30002384: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } 30002388: 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 ); 3000238c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } 30002390: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED 30008618 : ) { IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 30008618: e5903000 ldr r3, [r0] int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 3000861c: e92d4800 push {fp, lr} IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 30008620: e593204c ldr r2, [r3, #76] ; 0x4c 30008624: e2422002 sub r2, r2, #2 30008628: e3520005 cmp r2, #5 3000862c: 979ff102 ldrls pc, [pc, r2, lsl #2] 30008630: ea000012 b 30008680 <== NOT EXECUTED 30008634: 3000864c .word 0x3000864c <== NOT EXECUTED 30008638: 30008680 .word 0x30008680 <== NOT EXECUTED 3000863c: 3000866c .word 0x3000866c <== NOT EXECUTED 30008640: 30008660 .word 0x30008660 <== NOT EXECUTED 30008644: 30008660 .word 0x30008660 <== NOT EXECUTED 30008648: 3000866c .word 0x3000866c <== NOT EXECUTED case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); 3000864c: e5930054 ldr r0, [r3, #84] ; 0x54 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 30008650: e5932050 ldr r2, [r3, #80] ; 0x50 30008654: e581001c str r0, [r1, #28] 30008658: e5812018 str r2, [r1, #24] break; 3000865c: ea00000c b 30008694 case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 30008660: e283c050 add ip, r3, #80 ; 0x50 30008664: e89c1800 ldm ip, {fp, ip} 30008668: ea000001 b 30008674 case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 3000866c: e3a0b000 mov fp, #0 <== NOT EXECUTED 30008670: e3a0c000 mov ip, #0 <== NOT EXECUTED 30008674: e581b020 str fp, [r1, #32] 30008678: e581c024 str ip, [r1, #36] ; 0x24 break; 3000867c: ea000004 b 30008694 default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 30008680: eb0010e2 bl 3000ca10 <__errno> <== NOT EXECUTED 30008684: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30008688: e5803000 str r3, [r0] <== NOT EXECUTED 3000868c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30008690: e8bd8800 pop {fp, pc} <== NOT EXECUTED break; } buf->st_mode = the_jnode->st_mode; buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; 30008694: 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; 30008698: e1d303b4 ldrh r0, [r3, #52] ; 0x34 buf->st_ino = the_jnode->st_ino; 3000869c: 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; 300086a0: 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; 300086a4: 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; 300086a8: e5812028 str r2, [r1, #40] ; 0x28 buf->st_mtime = the_jnode->stat_mtime; 300086ac: 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; 300086b0: 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; 300086b4: 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; 300086b8: e1c1c1b2 strh ip, [r1, #18] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 300086bc: 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; 300086c0: 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; 300086c4: e1d333be ldrh r3, [r3, #62] ; 0x3e default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 300086c8: 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; 300086cc: 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; 300086d0: 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; 300086d4: e3a00000 mov r0, #0 return 0; } 300086d8: e8bd8800 pop {fp, pc} 30002394 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 30002394: e92d40f0 push {r4, r5, r6, r7, lr} 30002398: e1a05000 mov r5, r0 3000239c: 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 ); 300023a0: e1a00002 mov r0, r2 int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { 300023a4: e1a07002 mov r7, r2 300023a8: e1a06001 mov r6, r1 int i; /* * Remove any separators at the end of the string. */ IMFS_get_token( node_name, strlen( node_name ), new_name, &i ); 300023ac: eb0042c0 bl 30012eb4 300023b0: e28d4004 add r4, sp, #4 300023b4: e1a01000 mov r1, r0 300023b8: e1a02004 mov r2, r4 300023bc: e28d303c add r3, sp, #60 ; 0x3c 300023c0: e1a00007 mov r0, r7 300023c4: eb002cb8 bl 3000d6ac /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 300023c8: e1a00006 mov r0, r6 300023cc: eb0042a4 bl 30012e64 if (info.sym_link.name == NULL) { 300023d0: 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); 300023d4: e58d0028 str r0, [sp, #40] ; 0x28 if (info.sym_link.name == NULL) { 300023d8: 0a00000b beq 3000240c * 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( 300023dc: e28dc028 add ip, sp, #40 ; 0x28 300023e0: e1a00005 mov r0, r5 300023e4: e1a02004 mov r2, r4 300023e8: e3a01004 mov r1, #4 300023ec: e59f3030 ldr r3, [pc, #48] ; 30002424 300023f0: e58dc000 str ip, [sp] 300023f4: eb0029b0 bl 3000cabc new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { 300023f8: e3500000 cmp r0, #0 300023fc: 13a00000 movne r0, #0 30002400: 1a000005 bne 3000241c free(info.sym_link.name); 30002404: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED 30002408: eb000184 bl 30002a20 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 3000240c: eb003ecf bl 30011f50 <__errno> <== NOT EXECUTED 30002410: e3a0300c mov r3, #12 <== NOT EXECUTED 30002414: e5803000 str r3, [r0] <== NOT EXECUTED 30002418: e3e00000 mvn r0, #0 <== NOT EXECUTED } return 0; } 3000241c: e28dd040 add sp, sp, #64 ; 0x40 30002420: e8bd80f0 pop {r4, r5, r6, r7, pc} 30002424: 0000a1ff .word 0x0000a1ff 30002428 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 30002428: 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; 3000242c: e5915000 ldr r5, [r1] int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 30002430: e24dd01c sub sp, sp, #28 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 30002434: e595304c ldr r3, [r5, #76] ; 0x4c int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 30002438: e1a04001 mov r4, r1 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 3000243c: e3530003 cmp r3, #3 int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { 30002440: e1a06000 mov r6, r0 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { 30002444: 1a000025 bne 300024e0 if ( !node->info.hard_link.link_node ) 30002448: e595e050 ldr lr, [r5, #80] ; 0x50 3000244c: e35e0000 cmp lr, #0 30002450: 1a000003 bne 30002464 rtems_set_errno_and_return_minus_one( EINVAL ); 30002454: eb003ebd bl 30011f50 <__errno> <== NOT EXECUTED 30002458: e3a03016 mov r3, #22 <== NOT EXECUTED 3000245c: e5803000 str r3, [r0] <== NOT EXECUTED 30002460: ea000014 b 300024b8 <== NOT EXECUTED the_link = *loc; 30002464: e1a0c00d mov ip, sp 30002468: e1a07001 mov r7, r1 3000246c: e8b7000f ldm r7!, {r0, r1, r2, r3} 30002470: e8ac000f stmia ip!, {r0, r1, r2, r3} the_link.node_access = node->info.hard_link.link_node; 30002474: e28d801c add r8, sp, #28 30002478: 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; 3000247c: e5973000 ldr r3, [r7] the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 30002480: 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; 30002484: e58c3000 str r3, [ip] the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); 30002488: eb0029da bl 3000cbf8 /* * 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) 3000248c: e5953050 ldr r3, [r5, #80] ; 0x50 30002490: e1d323b4 ldrh r2, [r3, #52] ; 0x34 30002494: e3520001 cmp r2, #1 30002498: 1a000008 bne 300024c0 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); 3000249c: e1a0100d mov r1, sp 300024a0: e1a00006 mov r0, r6 300024a4: e59d3008 ldr r3, [sp, #8] 300024a8: e1a0e00f mov lr, pc 300024ac: e593f034 ldr pc, [r3, #52] ; 0x34 if ( result != 0 ) 300024b0: e3500000 cmp r0, #0 300024b4: 0a000009 beq 300024e0 300024b8: e3e00000 mvn r0, #0 300024bc: ea00000c b 300024f4 return -1; } else { node->info.hard_link.link_node->st_nlink --; 300024c0: e2422001 sub r2, r2, #1 300024c4: e1c323b4 strh r2, [r3, #52] ; 0x34 IMFS_update_ctime( node->info.hard_link.link_node ); 300024c8: e28d0014 add r0, sp, #20 300024cc: e3a01000 mov r1, #0 300024d0: eb00017b bl 30002ac4 300024d4: e5953050 ldr r3, [r5, #80] ; 0x50 300024d8: e59d2014 ldr r2, [sp, #20] 300024dc: e5832048 str r2, [r3, #72] ; 0x48 /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); 300024e0: e1a00006 mov r0, r6 300024e4: e1a01004 mov r1, r4 300024e8: e5943008 ldr r3, [r4, #8] 300024ec: e1a0e00f mov lr, pc 300024f0: e593f034 ldr pc, [r3, #52] ; 0x34 return result; } 300024f4: e28dd01c add sp, sp, #28 300024f8: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 300024fc : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; 300024fc: e5903008 ldr r3, [r0, #8] #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { 30002500: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) 30002504: e593204c ldr r2, [r3, #76] ; 0x4c 30002508: e3520001 cmp r2, #1 3000250c: 0a000002 beq 3000251c rtems_set_errno_and_return_minus_one( ENOTDIR ); 30002510: eb003e8e bl 30011f50 <__errno> <== NOT EXECUTED 30002514: e3a03014 mov r3, #20 <== NOT EXECUTED 30002518: ea000004 b 30002530 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) 3000251c: e593205c ldr r2, [r3, #92] ; 0x5c 30002520: e3520000 cmp r2, #0 30002524: 1a000004 bne 3000253c rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ 30002528: eb003e88 bl 30011f50 <__errno> <== NOT EXECUTED 3000252c: e3a03016 mov r3, #22 <== NOT EXECUTED 30002530: e5803000 str r3, [r0] <== NOT EXECUTED 30002534: e3e00000 mvn r0, #0 <== NOT EXECUTED 30002538: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED /* * Set the mt_fs pointer to indicate that there is no longer * a file system mounted to this point. */ node->info.directory.mt_fs = NULL; 3000253c: e3a00000 mov r0, #0 30002540: e583005c str r0, [r3, #92] ; 0x5c return 0; } 30002544: e49df004 pop {pc} ; (ldr pc, [sp], #4) 300014d4 : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 300014d4: e59f30c8 ldr r3, [pc, #200] ; 300015a4 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 300014d8: e92d4070 push {r4, r5, r6, lr} #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 300014dc: e5933000 ldr r3, [r3] void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 300014e0: e1a04000 mov r4, r0 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { 300014e4: e3530000 cmp r3, #0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { 300014e8: e1a05001 mov r5, r1 300014ec: e1a06002 mov r6, r2 /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { (*rtems_malloc_statistics_helpers->initialize)(); 300014f0: 11a0e00f movne lr, pc 300014f4: 1593f000 ldrne pc, [r3] } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); 300014f8: eb001dfa bl 30008ce8 /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { 300014fc: e59f30a4 ldr r3, [pc, #164] ; 300015a8 30001500: e5933000 ldr r3, [r3] 30001504: e3530000 cmp r3, #0 30001508: 0a000006 beq 30001528 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( 3000150c: e1a00004 mov r0, r4 <== NOT EXECUTED 30001510: e1a01006 mov r1, r6 <== NOT EXECUTED 30001514: e1a0e00f mov lr, pc <== NOT EXECUTED 30001518: e593f000 ldr pc, [r3] <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; 3000151c: e0845005 add r5, r4, r5 <== NOT EXECUTED 30001520: e0605005 rsb r5, r0, r5 <== NOT EXECUTED 30001524: e1a04000 mov r4, r0 <== NOT EXECUTED * of the time under UNIX because zero'ing memory when it is first * given to a process eliminates the chance of a process seeing data * left over from another process. This would be a security violation. */ if ( 30001528: e59f307c ldr r3, [pc, #124] ; 300015ac 3000152c: e5d31000 ldrb r1, [r3] 30001530: e3510000 cmp r1, #0 30001534: 1a000005 bne 30001550 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() 30001538: e59f3070 ldr r3, [pc, #112] ; 300015b0 3000153c: e5d33028 ldrb r3, [r3, #40] ; 0x28 30001540: e3530000 cmp r3, #0 ) { memset( heap_begin, 0, heap_size ); 30001544: 11a00004 movne r0, r4 30001548: 11a02005 movne r2, r5 3000154c: 1b002f79 blne 3000d338 * 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 ) { 30001550: e59f3054 ldr r3, [pc, #84] ; 300015ac 30001554: e5d33000 ldrb r3, [r3] 30001558: e3530000 cmp r3, #0 3000155c: 1a000008 bne 30001584 void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); 30001560: e59f304c ldr r3, [pc, #76] ; 300015b4 30001564: e1a01004 mov r1, r4 30001568: e5930000 ldr r0, [r3] 3000156c: e1a02005 mov r2, r5 30001570: e3a03004 mov r3, #4 30001574: eb000ece bl 300050b4 <_Heap_Initialize> RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { 30001578: e3500000 cmp r0, #0 rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); 3000157c: 0280001a addeq r0, r0, #26 30001580: 0b000cf1 bleq 3000494c } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); 30001584: e59f3028 ldr r3, [pc, #40] ; 300015b4 30001588: e59f4028 ldr r4, [pc, #40] ; 300015b8 3000158c: e5930000 ldr r0, [r3] 30001590: e5945000 ldr r5, [r4] 30001594: eb001184 bl 30005bac <_Protected_heap_Get_size> 30001598: e0800005 add r0, r0, r5 3000159c: e5840000 str r0, [r4] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } 300015a0: e8bd8070 pop {r4, r5, r6, pc} 300015a4: 300199a4 .word 0x300199a4 300015a8: 300199a8 .word 0x300199a8 300015ac: 300199a1 .word 0x300199a1 300015b0: 30019298 .word 0x30019298 300015b4: 300191f0 .word 0x300191f0 300015b8: 30019b90 .word 0x30019b90 30003860 : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { 30003860: e92d47ff push {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, lr} <== NOT EXECUTED void *high_water_mark; void *current; Stack_Control *stack; char name[5]; if ( !the_thread ) 30003864: e250a000 subs sl, r0, #0 <== NOT EXECUTED 30003868: 0a000043 beq 3000397c <== NOT EXECUTED return; if ( !print_handler ) 3000386c: e59f310c ldr r3, [pc, #268] ; 30003980 <== NOT EXECUTED 30003870: e5937004 ldr r7, [r3, #4] <== NOT EXECUTED 30003874: e3570000 cmp r7, #0 <== NOT EXECUTED 30003878: 0a00003f beq 3000397c <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 3000387c: e37a0001 cmn sl, #1 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); 30003880: 159a60f4 ldrne r6, [sl, #244] ; 0xf4 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 30003884: 128a40c4 addne r4, sl, #196 ; 0xc4 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { 30003888: 1a000005 bne 300038a4 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { 3000388c: e59f40f0 ldr r4, [pc, #240] ; 30003984 <== NOT EXECUTED 30003890: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED 30003894: e3530000 cmp r3, #0 <== NOT EXECUTED 30003898: 13a06000 movne r6, #0 <== NOT EXECUTED 3000389c: 11a0a006 movne sl, r6 <== NOT EXECUTED 300038a0: 0a000035 beq 3000397c <== NOT EXECUTED } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); } low = Stack_check_usable_stack_start(stack); 300038a4: e8940220 ldm r4, {r5, r9} <== NOT EXECUTED 300038a8: e2899010 add r9, r9, #16 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); 300038ac: e2455010 sub r5, r5, #16 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); 300038b0: e1a00009 mov r0, r9 <== NOT EXECUTED 300038b4: e1a01005 mov r1, r5 <== NOT EXECUTED 300038b8: ebffffda bl 30003828 <== NOT EXECUTED if ( high_water_mark ) 300038bc: e2508000 subs r8, r0, #0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); 300038c0: 10899005 addne r9, r9, r5 <== NOT EXECUTED 300038c4: 10688009 rsbne r8, r8, r9 <== NOT EXECUTED else used = 0; if ( the_thread ) { 300038c8: e35a0000 cmp sl, #0 <== NOT EXECUTED 300038cc: e59f30ac ldr r3, [pc, #172] ; 30003980 <== NOT EXECUTED 300038d0: 0a00000c beq 30003908 <== NOT EXECUTED (*print_handler)( 300038d4: e59aa008 ldr sl, [sl, #8] <== NOT EXECUTED 300038d8: e28d2008 add r2, sp, #8 <== NOT EXECUTED 300038dc: e1a0000a mov r0, sl <== NOT EXECUTED 300038e0: e3a01005 mov r1, #5 <== NOT EXECUTED 300038e4: e5939008 ldr r9, [r3, #8] <== NOT EXECUTED 300038e8: eb001657 bl 3000924c <== NOT EXECUTED 300038ec: e1a0200a mov r2, sl <== NOT EXECUTED 300038f0: e1a03000 mov r3, r0 <== NOT EXECUTED 300038f4: e59f108c ldr r1, [pc, #140] ; 30003988 <== NOT EXECUTED 300038f8: e1a00009 mov r0, r9 <== NOT EXECUTED 300038fc: e1a0e00f mov lr, pc <== NOT EXECUTED 30003900: e12fff17 bx r7 <== NOT EXECUTED 30003904: ea000004 b 3000391c <== 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 ); 30003908: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 3000390c: e59f1078 ldr r1, [pc, #120] ; 3000398c <== NOT EXECUTED 30003910: e3e02000 mvn r2, #0 <== NOT EXECUTED 30003914: e1a0e00f mov lr, pc <== NOT EXECUTED 30003918: e12fff17 bx r7 <== NOT EXECUTED } (*print_handler)( 3000391c: e5943000 ldr r3, [r4] <== NOT EXECUTED 30003920: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED 30003924: e59f4054 ldr r4, [pc, #84] ; 30003980 <== NOT EXECUTED 30003928: e58d6000 str r6, [sp] <== NOT EXECUTED 3000392c: e58d5004 str r5, [sp, #4] <== NOT EXECUTED 30003930: e2433001 sub r3, r3, #1 <== NOT EXECUTED 30003934: e0823003 add r3, r2, r3 <== NOT EXECUTED 30003938: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED 3000393c: e59f104c ldr r1, [pc, #76] ; 30003990 <== NOT EXECUTED 30003940: e1a0e00f mov lr, pc <== NOT EXECUTED 30003944: e594f004 ldr pc, [r4, #4] <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { 30003948: e5943000 ldr r3, [r4] <== NOT EXECUTED 3000394c: e3530000 cmp r3, #0 <== NOT EXECUTED 30003950: 1a000004 bne 30003968 <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); 30003954: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED 30003958: e59f1034 ldr r1, [pc, #52] ; 30003994 <== NOT EXECUTED 3000395c: e1a0e00f mov lr, pc <== NOT EXECUTED 30003960: e594f004 ldr pc, [r4, #4] <== NOT EXECUTED 30003964: ea000004 b 3000397c <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); 30003968: e1a02008 mov r2, r8 <== NOT EXECUTED 3000396c: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED 30003970: e59f1020 ldr r1, [pc, #32] ; 30003998 <== NOT EXECUTED 30003974: e1a0e00f mov lr, pc <== NOT EXECUTED 30003978: e594f004 ldr pc, [r4, #4] <== NOT EXECUTED } } 3000397c: e8bd87ff pop {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 30003980: 3005e080 .word 0x3005e080 30003984: 30060b6c .word 0x30060b6c 30003988: 3005637f .word 0x3005637f 3000398c: 3005638c .word 0x3005638c 30003990: 3005639a .word 0x3005639a 30003994: 300563b8 .word 0x300563b8 30003998: 300563c5 .word 0x300563c5 30003828 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; 30003828: e2800010 add r0, r0, #16 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) 3000382c: e3c11003 bic r1, r1, #3 <== NOT EXECUTED 30003830: e0801001 add r1, r0, r1 <== NOT EXECUTED if (*base != U32_PATTERN) 30003834: e59f3020 ldr r3, [pc, #32] ; 3000385c <== 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++) 30003838: ea000003 b 3000384c <== NOT EXECUTED if (*base != U32_PATTERN) 3000383c: e5902000 ldr r2, [r0] <== NOT EXECUTED 30003840: e1520003 cmp r2, r3 <== NOT EXECUTED 30003844: 112fff1e bxne lr <== 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++) 30003848: e2800004 add r0, r0, #4 <== NOT EXECUTED 3000384c: e1500001 cmp r0, r1 <== NOT EXECUTED 30003850: 3afffff9 bcc 3000383c <== NOT EXECUTED 30003854: e3a00000 mov r0, #0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } 30003858: e12fff1e bx lr <== NOT EXECUTED 3000385c: a5a5a5a5 .word 0xa5a5a5a5 30003a10 : * * 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) { 30003a10: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 30003a14: e1a06000 mov r6, r0 <== NOT EXECUTED 30003a18: 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"); 30003a1c: e59f007c ldr r0, [pc, #124] ; 30003aa0 <== 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) { 30003a20: e20150ff and r5, r1, #255 ; 0xff <== NOT EXECUTED Stack_Control *stack = &running->Start.Initial_stack; void *pattern_area = Stack_check_Get_pattern_area(stack); 30003a24: e59640c8 ldr r4, [r6, #200] ; 0xc8 <== NOT EXECUTED char name [32]; printk("BLOWN STACK!!!\n"); 30003a28: eb000a69 bl 300063d4 <== NOT EXECUTED printk("task control block: 0x%08lx\n", (unsigned long) running); 30003a2c: e59f0070 ldr r0, [pc, #112] ; 30003aa4 <== NOT EXECUTED 30003a30: e1a01006 mov r1, r6 <== NOT EXECUTED 30003a34: eb000a66 bl 300063d4 <== NOT EXECUTED printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id); 30003a38: e59f0068 ldr r0, [pc, #104] ; 30003aa8 <== NOT EXECUTED 30003a3c: e5961008 ldr r1, [r6, #8] <== NOT EXECUTED 30003a40: eb000a63 bl 300063d4 <== NOT EXECUTED printk( 30003a44: e59f0060 ldr r0, [pc, #96] ; 30003aac <== NOT EXECUTED 30003a48: e596100c ldr r1, [r6, #12] <== NOT EXECUTED 30003a4c: eb000a60 bl 300063d4 <== NOT EXECUTED "task name: 0x%08lx\n", (unsigned long) running->Object.name.name_u32 ); printk( 30003a50: e1a0200d mov r2, sp <== NOT EXECUTED 30003a54: e3a01020 mov r1, #32 <== NOT EXECUTED 30003a58: e5960008 ldr r0, [r6, #8] <== NOT EXECUTED 30003a5c: eb0015fa bl 3000924c <== NOT EXECUTED 30003a60: e1a01000 mov r1, r0 <== NOT EXECUTED 30003a64: e59f0044 ldr r0, [pc, #68] ; 30003ab0 <== NOT EXECUTED 30003a68: eb000a59 bl 300063d4 <== NOT EXECUTED ); printk( "task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n", (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((char *) stack->area + stack->size) 30003a6c: e59610c4 ldr r1, [r6, #196] ; 0xc4 <== NOT EXECUTED ); printk( "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 30003a70: e59620c8 ldr r2, [r6, #200] ; 0xc8 <== NOT EXECUTED 30003a74: e59f0038 ldr r0, [pc, #56] ; 30003ab4 <== NOT EXECUTED 30003a78: e0823001 add r3, r2, r1 <== NOT EXECUTED 30003a7c: eb000a54 bl 300063d4 <== NOT EXECUTED "task stack area (%lu Bytes): 0x%08lx .. 0x%08lx\n", (unsigned long) stack->size, (unsigned long) stack->area, (unsigned long) ((char *) stack->area + stack->size) ); if (!pattern_ok) { 30003a80: e3550000 cmp r5, #0 <== NOT EXECUTED printk( 30003a84: 02843018 addeq r3, r4, #24 <== NOT EXECUTED 30003a88: 059f0028 ldreq r0, [pc, #40] ; 30003ab8 <== NOT EXECUTED 30003a8c: 03a01010 moveq r1, #16 <== NOT EXECUTED 30003a90: 02842008 addeq r2, r4, #8 <== NOT EXECUTED 30003a94: 0b000a4e bleq 300063d4 <== NOT EXECUTED rtems_configuration_get_user_multiprocessing_table()->node ); } #endif rtems_fatal_error_occurred(0x81); 30003a98: e3a00081 mov r0, #129 ; 0x81 <== NOT EXECUTED 30003a9c: eb0017fc bl 30009a94 <== NOT EXECUTED 30003aa0: 3005642c .word 0x3005642c 30003aa4: 3005643c .word 0x3005643c 30003aa8: 30056459 .word 0x30056459 30003aac: 3005646b .word 0x3005646b 30003ab0: 3005647f .word 0x3005647f 30003ab4: 30056495 .word 0x30056495 30003ab8: 300564c6 .word 0x300564c6 30005330 <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { 30005330: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} 30005334: e1a04001 mov r4, r1 30005338: 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 ) ) { 3000533c: e1a0100d mov r1, sp 30005340: e1a00004 mov r0, r4 pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { 30005344: e1a08002 mov r8, r2 30005348: 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 ) ) { 3000534c: eb00006f bl 30005510 <_POSIX_Mutex_Get> 30005350: e3500000 cmp r0, #0 30005354: 0a000032 beq 30005424 <_POSIX_Condition_variables_Wait_support+0xf4> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; 30005358: e59f30d0 ldr r3, [pc, #208] ; 30005430 <_POSIX_Condition_variables_Wait_support+0x100> return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); 3000535c: e1a0100d mov r1, sp 30005360: e5932000 ldr r2, [r3] 30005364: e1a00006 mov r0, r6 30005368: e2422001 sub r2, r2, #1 3000536c: e5832000 str r2, [r3] 30005370: ebffff7d bl 3000516c <_POSIX_Condition_variables_Get> switch ( location ) { 30005374: e59d3000 ldr r3, [sp] return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); 30005378: e1a0a000 mov sl, r0 switch ( location ) { 3000537c: e3530000 cmp r3, #0 30005380: 1a000027 bne 30005424 <_POSIX_Condition_variables_Wait_support+0xf4> case OBJECTS_LOCAL: if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { 30005384: e5903014 ldr r3, [r0, #20] 30005388: e3530000 cmp r3, #0 3000538c: 0a000004 beq 300053a4 <_POSIX_Condition_variables_Wait_support+0x74> 30005390: e5942000 ldr r2, [r4] 30005394: e1530002 cmp r3, r2 30005398: 0a000001 beq 300053a4 <_POSIX_Condition_variables_Wait_support+0x74> _Thread_Enable_dispatch(); 3000539c: eb000bac bl 30008254 <_Thread_Enable_dispatch> 300053a0: ea00001f b 30005424 <_POSIX_Condition_variables_Wait_support+0xf4> return EINVAL; } (void) pthread_mutex_unlock( mutex ); 300053a4: e1a00004 mov r0, r4 300053a8: eb0000de bl 30005728 _Thread_Enable_dispatch(); return EINVAL; } */ if ( !already_timedout ) { 300053ac: e3570000 cmp r7, #0 300053b0: 1a000015 bne 3000540c <_POSIX_Condition_variables_Wait_support+0xdc> the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 300053b4: e59f5078 ldr r5, [pc, #120] ; 30005434 <_POSIX_Condition_variables_Wait_support+0x104> return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; 300053b8: e5942000 ldr r2, [r4] _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 300053bc: e5953000 ldr r3, [r5] return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; 300053c0: e58a2014 str r2, [sl, #20] _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; 300053c4: e5837034 str r7, [r3, #52] ; 0x34 _Thread_Executing->Wait.queue = &the_cond->Wait_queue; _Thread_Executing->Wait.id = *cond; 300053c8: 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; 300053cc: e28a2018 add r2, sl, #24 _Thread_Executing->Wait.id = *cond; 300053d0: 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; 300053d4: 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; 300053d8: e5832044 str r2, [r3, #68] ; 0x44 _Thread_Executing->Wait.id = *cond; _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); 300053dc: e1a00002 mov r0, r2 300053e0: e58a1048 str r1, [sl, #72] ; 0x48 300053e4: e59f204c ldr r2, [pc, #76] ; 30005438 <_POSIX_Condition_variables_Wait_support+0x108> 300053e8: e1a01008 mov r1, r8 300053ec: eb000cd1 bl 30008738 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); 300053f0: eb000b97 bl 30008254 <_Thread_Enable_dispatch> /* * Switch ourself out because we blocked as a result of the * _Thread_queue_Enqueue. */ status = _Thread_Executing->Wait.return_code; 300053f4: e5953000 ldr r3, [r5] 300053f8: e5935034 ldr r5, [r3, #52] ; 0x34 if ( status && status != ETIMEDOUT ) 300053fc: e3550074 cmp r5, #116 ; 0x74 30005400: 13550000 cmpne r5, #0 30005404: 0a000002 beq 30005414 <_POSIX_Condition_variables_Wait_support+0xe4> 30005408: ea000006 b 30005428 <_POSIX_Condition_variables_Wait_support+0xf8> <== NOT EXECUTED return status; } else { _Thread_Enable_dispatch(); 3000540c: eb000b90 bl 30008254 <_Thread_Enable_dispatch> 30005410: e3a05074 mov r5, #116 ; 0x74 /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); 30005414: e1a00004 mov r0, r4 30005418: eb0000a3 bl 300056ac if ( mutex_status ) 3000541c: e3500000 cmp r0, #0 30005420: 0a000000 beq 30005428 <_POSIX_Condition_variables_Wait_support+0xf8> 30005424: e3a05016 mov r5, #22 case OBJECTS_ERROR: break; } return EINVAL; } 30005428: e1a00005 mov r0, r5 3000542c: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} 30005430: 3001c6ac .word 0x3001c6ac 30005434: 3001c760 .word 0x3001c760 30005438: 30008ae4 .word 0x30008ae4 30006708 <_Thread_queue_Enqueue_priority>: Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { 30006708: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; 3000670c: e5913014 ldr r3, [r1, #20] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 30006710: e281503c add r5, r1, #60 ; 0x3c 30006714: e5815038 str r5, [r1, #56] ; 0x38 the_chain->permanent_null = NULL; 30006718: e3a05000 mov r5, #0 the_chain->last = _Chain_Head(the_chain); 3000671c: e281c038 add ip, r1, #56 ; 0x38 header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 30006720: e3130020 tst r3, #32 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 30006724: e1a04323 lsr r4, r3, #6 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 30006728: e581503c str r5, [r1, #60] ; 0x3c 3000672c: e285500c add r5, r5, #12 the_chain->last = _Chain_Head(the_chain); 30006730: e581c040 str ip, [r1, #64] ; 0x40 block_state = the_thread_queue->state; 30006734: e5907038 ldr r7, [r0, #56] ; 0x38 _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; 30006738: e02c0495 mla ip, r5, r4, r0 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 3000673c: 159f8154 ldrne r8, [pc, #340] ; 30006898 <_Thread_queue_Enqueue_priority+0x190> priority = the_thread->current_priority; header_index = _Thread_queue_Header_number( priority ); header = &the_thread_queue->Queues.Priority[ header_index ]; block_state = the_thread_queue->state; if ( _Thread_queue_Is_reverse_search( priority ) ) 30006740: 1a000023 bne 300067d4 <_Thread_queue_Enqueue_priority+0xcc> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 30006744: e28c8004 add r8, ip, #4 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30006748: e10f5000 mrs r5, CPSR 3000674c: e3854080 orr r4, r5, #128 ; 0x80 30006750: 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; 30006754: e3e06000 mvn r6, #0 30006758: e59c4000 ldr r4, [ip] while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 3000675c: ea00000b b 30006790 <_Thread_queue_Enqueue_priority+0x88> search_priority = search_thread->current_priority; 30006760: e5946014 ldr r6, [r4, #20] if ( priority <= search_priority ) 30006764: e1530006 cmp r3, r6 30006768: 9a00000a bls 30006798 <_Thread_queue_Enqueue_priority+0x90> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( 3000676c: e10fa000 mrs sl, CPSR 30006770: e129f005 msr CPSR_fc, r5 30006774: e129f00a msr CPSR_fc, sl 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) ) { 30006778: e594a010 ldr sl, [r4, #16] 3000677c: e117000a tst r7, sl 30006780: 1a000001 bne 3000678c <_Thread_queue_Enqueue_priority+0x84> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30006784: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 30006788: eaffffee b 30006748 <_Thread_queue_Enqueue_priority+0x40> <== NOT EXECUTED _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; 3000678c: 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 ) ) { 30006790: e1540008 cmp r4, r8 30006794: 1afffff1 bne 30006760 <_Thread_queue_Enqueue_priority+0x58> } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 30006798: e5907030 ldr r7, [r0, #48] ; 0x30 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 ) ) { 3000679c: e1a0c005 mov ip, r5 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 300067a0: e3570001 cmp r7, #1 300067a4: 1a000038 bne 3000688c <_Thread_queue_Enqueue_priority+0x184> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 300067a8: e1530006 cmp r3, r6 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 300067ac: e3a03000 mov r3, #0 300067b0: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) 300067b4: 0a00002a beq 30006864 <_Thread_queue_Enqueue_priority+0x15c> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 300067b8: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 300067bc: e5814000 str r4, [r1] the_node->previous = previous_node; 300067c0: e5813004 str r3, [r1, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 300067c4: 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; 300067c8: e5831000 str r1, [r3] search_node->previous = the_node; 300067cc: e5841004 str r1, [r4, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 300067d0: ea000021 b 3000685c <_Thread_queue_Enqueue_priority+0x154> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 300067d4: e5d86000 ldrb r6, [r8] 300067d8: e2866001 add r6, r6, #1 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300067dc: e10f5000 mrs r5, CPSR 300067e0: e3854080 orr r4, r5, #128 ; 0x80 300067e4: e129f004 msr CPSR_fc, r4 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 300067e8: e59c4008 ldr r4, [ip, #8] while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 300067ec: ea00000b b 30006820 <_Thread_queue_Enqueue_priority+0x118> search_priority = search_thread->current_priority; 300067f0: e5946014 ldr r6, [r4, #20] if ( priority >= search_priority ) 300067f4: e1530006 cmp r3, r6 300067f8: 2a00000a bcs 30006828 <_Thread_queue_Enqueue_priority+0x120> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( 300067fc: e10fa000 mrs sl, CPSR 30006800: e129f005 msr CPSR_fc, r5 30006804: e129f00a msr CPSR_fc, sl 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) ) { 30006808: e594a010 ldr sl, [r4, #16] 3000680c: e117000a tst r7, sl 30006810: 1a000001 bne 3000681c <_Thread_queue_Enqueue_priority+0x114> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30006814: e129f005 msr CPSR_fc, r5 30006818: eaffffed b 300067d4 <_Thread_queue_Enqueue_priority+0xcc> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 3000681c: 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 ) ) { 30006820: e154000c cmp r4, ip 30006824: 1afffff1 bne 300067f0 <_Thread_queue_Enqueue_priority+0xe8> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 30006828: e5907030 ldr r7, [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 ) ) { 3000682c: e1a0c005 mov ip, r5 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 30006830: e3570001 cmp r7, #1 30006834: 1a000014 bne 3000688c <_Thread_queue_Enqueue_priority+0x184> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) 30006838: e1530006 cmp r3, r6 if ( the_thread_queue->sync_state != THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; 3000683c: e3a03000 mov r3, #0 30006840: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) 30006844: 0a000006 beq 30006864 <_Thread_queue_Enqueue_priority+0x15c> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 30006848: e5943000 ldr r3, [r4] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 3000684c: e8810018 stm r1, {r3, r4} search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 30006850: 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; 30006854: e5841000 str r1, [r4] next_node->previous = the_node; 30006858: e5831004 str r1, [r3, #4] 3000685c: e129f005 msr CPSR_fc, r5 30006860: ea000007 b 30006884 <_Thread_queue_Enqueue_priority+0x17c> 30006864: 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; 30006868: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 3000686c: e5814000 str r4, [r1] the_node->previous = previous_node; 30006870: e5813004 str r3, [r1, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 30006874: 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; 30006878: e5831000 str r1, [r3] search_node->previous = the_node; 3000687c: e5841004 str r1, [r4, #4] 30006880: e129f00c msr CPSR_fc, ip 30006884: e3a00001 mov r0, #1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 30006888: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} * the mutex by an ISR or timed out. * * WARNING! Returning with interrupts disabled! */ *level_p = level; return the_thread_queue->sync_state; 3000688c: e5900030 ldr r0, [r0, #48] ; 0x30 * 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; 30006890: e582c000 str ip, [r2] return the_thread_queue->sync_state; } 30006894: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 30006898: 30019294 .word 0x30019294 30013d90 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 30013d90: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30013d94: e24dd020 sub sp, sp, #32 30013d98: e28d3014 add r3, sp, #20 30013d9c: e28d5008 add r5, sp, #8 RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; 30013da0: e3a09000 mov r9, #0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 30013da4: e283a004 add sl, r3, #4 30013da8: e2858004 add r8, r5, #4 Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 30013dac: e58d301c str r3, [sp, #28] static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 30013db0: e2802008 add r2, r0, #8 static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 30013db4: e2803040 add r3, r0, #64 ; 0x40 * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { 30013db8: e1a04000 mov r4, r0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 30013dbc: e58da014 str sl, [sp, #20] the_chain->permanent_null = NULL; 30013dc0: e58d9018 str r9, [sp, #24] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 30013dc4: e58d8008 str r8, [sp, #8] the_chain->permanent_null = NULL; 30013dc8: e58d900c str r9, [sp, #12] the_chain->last = _Chain_Head(the_chain); 30013dcc: e58d5010 str r5, [sp, #16] */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 30013dd0: e280b030 add fp, r0, #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 ); 30013dd4: e2807068 add r7, r0, #104 ; 0x68 static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 30013dd8: e58d2004 str r2, [sp, #4] static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 30013ddc: e58d3000 str r3, [sp] { /* * 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; 30013de0: e28d2014 add r2, sp, #20 30013de4: 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; 30013de8: e59f2168 ldr r2, [pc, #360] ; 30013f58 <_Timer_server_Body+0x1c8> */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 30013dec: e1a0000b mov r0, fp static void _Timer_server_Process_interval_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot; 30013df0: e5923000 ldr r3, [r2] /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; 30013df4: e594103c ldr r1, [r4, #60] ; 0x3c watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 30013df8: e1a02005 mov r2, r5 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; 30013dfc: e584303c str r3, [r4, #60] ; 0x3c _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); 30013e00: e0611003 rsb r1, r1, r3 30013e04: eb00104c bl 30017f3c <_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(); 30013e08: e59f314c ldr r3, [pc, #332] ; 30013f5c <_Timer_server_Body+0x1cc> Watchdog_Interval last_snapshot = watchdogs->last_snapshot; 30013e0c: e5942074 ldr r2, [r4, #116] ; 0x74 static void _Timer_server_Process_tod_watchdogs( Timer_server_Watchdogs *watchdogs, Chain_Control *fire_chain ) { Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch(); 30013e10: e5936000 ldr r6, [r3] /* * 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 ) { 30013e14: e1560002 cmp r6, r2 30013e18: 9a000004 bls 30013e30 <_Timer_server_Body+0xa0> /* * 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 ); 30013e1c: e0621006 rsb r1, r2, r6 30013e20: e1a00007 mov r0, r7 30013e24: e1a02005 mov r2, r5 30013e28: eb001043 bl 30017f3c <_Watchdog_Adjust_to_chain> 30013e2c: ea000003 b 30013e40 <_Timer_server_Body+0xb0> /* * 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 ); 30013e30: 30662002 rsbcc r2, r6, r2 30013e34: 31a00007 movcc r0, r7 30013e38: 33a01001 movcc r1, #1 30013e3c: 3b001016 blcc 30017e9c <_Watchdog_Adjust> } watchdogs->last_snapshot = snapshot; 30013e40: e5846074 str r6, [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 ); 30013e44: e5940078 ldr r0, [r4, #120] ; 0x78 30013e48: eb00023c bl 30014740 <_Chain_Get> if ( timer == NULL ) { 30013e4c: e2501000 subs r1, r0, #0 30013e50: 0a00000a beq 30013e80 <_Timer_server_Body+0xf0> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 30013e54: e5913038 ldr r3, [r1, #56] ; 0x38 30013e58: e3530001 cmp r3, #1 _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); 30013e5c: 02811010 addeq r1, r1, #16 30013e60: 01a0000b moveq r0, fp static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { 30013e64: 0a000003 beq 30013e78 <_Timer_server_Body+0xe8> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { 30013e68: e3530003 cmp r3, #3 30013e6c: 1afffff4 bne 30013e44 <_Timer_server_Body+0xb4> _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); 30013e70: e2811010 add r1, r1, #16 30013e74: e1a00007 mov r0, r7 30013e78: eb00105c bl 30017ff0 <_Watchdog_Insert> 30013e7c: eafffff0 b 30013e44 <_Timer_server_Body+0xb4> static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30013e80: e10f3000 mrs r3, CPSR 30013e84: e3832080 orr r2, r3, #128 ; 0x80 30013e88: e129f002 msr CPSR_fc, r2 * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { 30013e8c: e59d2014 ldr r2, [sp, #20] 30013e90: e152000a cmp r2, sl 30013e94: 1a000005 bne 30013eb0 <_Timer_server_Body+0x120> ts->insert_chain = NULL; 30013e98: e5841078 str r1, [r4, #120] ; 0x78 static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30013e9c: e129f003 msr CPSR_fc, r3 _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 ) ) { 30013ea0: e59d3008 ldr r3, [sp, #8] 30013ea4: e1530008 cmp r3, r8 30013ea8: 1a000002 bne 30013eb8 <_Timer_server_Body+0x128> 30013eac: ea000015 b 30013f08 <_Timer_server_Body+0x178> 30013eb0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 30013eb4: eaffffcb b 30013de8 <_Timer_server_Body+0x58> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30013eb8: e10f2000 mrs r2, CPSR 30013ebc: e3823080 orr r3, r2, #128 ; 0x80 30013ec0: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); 30013ec4: e59d3008 ldr r3, [sp, #8] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) 30013ec8: e1530008 cmp r3, r8 30013ecc: 0a00000b beq 30013f00 <_Timer_server_Body+0x170> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; 30013ed0: e5931000 ldr r1, [r3] * It is essential that interrupts are disable here since an interrupt * service routine may remove a watchdog from the chain. */ _ISR_Disable( level ); watchdog = (Watchdog_Control *) _Chain_Get_unprotected( &fire_chain ); if ( watchdog != NULL ) { 30013ed4: e3530000 cmp r3, #0 the_chain->first = new_first; 30013ed8: e58d1008 str r1, [sp, #8] new_first->previous = _Chain_Head(the_chain); 30013edc: e5815004 str r5, [r1, #4] 30013ee0: 0a000006 beq 30013f00 <_Timer_server_Body+0x170> watchdog->state = WATCHDOG_INACTIVE; 30013ee4: e5839008 str r9, [r3, #8] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30013ee8: e129f002 msr CPSR_fc, r2 /* * 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 ); 30013eec: e5930020 ldr r0, [r3, #32] 30013ef0: e5931024 ldr r1, [r3, #36] ; 0x24 30013ef4: e1a0e00f mov lr, pc 30013ef8: e593f01c ldr pc, [r3, #28] } 30013efc: eaffffed b 30013eb8 <_Timer_server_Body+0x128> 30013f00: e129f002 msr CPSR_fc, r2 30013f04: eaffffb5 b 30013de0 <_Timer_server_Body+0x50> 30013f08: e59f3050 ldr r3, [pc, #80] ; 30013f60 <_Timer_server_Body+0x1d0> } else { ts->active = false; 30013f0c: e5c4907c strb r9, [r4, #124] ; 0x7c 30013f10: e5932000 ldr r2, [r3] 30013f14: e2822001 add r2, r2, #1 30013f18: e5832000 str r2, [r3] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); 30013f1c: e3a01008 mov r1, #8 30013f20: e5940000 ldr r0, [r4] 30013f24: eb000d7e bl 30017524 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); 30013f28: e1a00004 mov r0, r4 30013f2c: ebffff6b bl 30013ce0 <_Timer_server_Reset_interval_system_watchdog> _Timer_server_Reset_tod_system_watchdog( ts ); 30013f30: e1a00004 mov r0, r4 30013f34: ebffff7f bl 30013d38 <_Timer_server_Reset_tod_system_watchdog> _Thread_Enable_dispatch(); 30013f38: eb000ae0 bl 30016ac0 <_Thread_Enable_dispatch> ts->active = true; 30013f3c: e3a03001 mov r3, #1 30013f40: e5c4307c strb r3, [r4, #124] ; 0x7c static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); 30013f44: e59d0004 ldr r0, [sp, #4] 30013f48: eb001081 bl 30018154 <_Watchdog_Remove> static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); 30013f4c: e59d0000 ldr r0, [sp] 30013f50: eb00107f bl 30018154 <_Watchdog_Remove> 30013f54: eaffffa1 b 30013de0 <_Timer_server_Body+0x50> 30013f58: 30039364 .word 0x30039364 30013f5c: 30039294 .word 0x30039294 30013f60: 3003920c .word 0x3003920c 30017a18 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 30017a18: e1a04000 mov r4, r0 30017a1c: eb000228 bl 300182c4 <_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(); 30017a20: ebffffe0 bl 300179a8 rtems_shutdown_executive(status); 30017a24: e1a00004 mov r0, r4 30017a28: eb00003b bl 30017b1c 30017a2c: eafffffe b 30017a2c <_exit+0x14> <== NOT EXECUTED 300337fc <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 300337fc: e1a00001 mov r0, r1 <== NOT EXECUTED 30033800: e1a01002 mov r1, r2 <== NOT EXECUTED 30033804: e1a02003 mov r2, r3 <== NOT EXECUTED 30033808: eaffff8b b 3003363c <== NOT EXECUTED 3000b4f0 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 3000b4f0: e3a00001 mov r0, #1 <== NOT EXECUTED 3000b4f4: e12fff1e bx lr <== NOT EXECUTED 30008a1c <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 30008a1c: eaffffe8 b 300089c4 <== NOT EXECUTED 30022ea4 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 30022ea4: e1a00001 mov r0, r1 <== NOT EXECUTED 30022ea8: e1a01002 mov r1, r2 <== NOT EXECUTED 30022eac: eaffff6d b 30022c68 <== NOT EXECUTED 300230a0 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 300230a0: e1a00001 mov r0, r1 <== NOT EXECUTED 300230a4: e1a01002 mov r1, r2 <== NOT EXECUTED 300230a8: eaffffc4 b 30022fc0 <== NOT EXECUTED 30017b00 <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 30017b00: e1a00001 mov r0, r1 <== NOT EXECUTED 30017b04: e1a01002 mov r1, r2 <== NOT EXECUTED 30017b08: ea00000e b 30017b48 <== NOT EXECUTED 30052b1c <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 30052b1c: e92d40f0 push {r4, r5, r6, r7, lr} <== NOT EXECUTED /* * Get the parent node of the old path to be renamed. Find the parent path. */ old_parent_pathlen = rtems_filesystem_dirname ( old ); 30052b20: e1a00001 mov r0, r1 <== NOT EXECUTED int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 30052b24: e24dd044 sub sp, sp, #68 ; 0x44 <== NOT EXECUTED 30052b28: e1a05001 mov r5, r1 <== NOT EXECUTED 30052b2c: 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 ); 30052b30: ebfec96f bl 300050f4 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 30052b34: e2507000 subs r7, r0, #0 <== NOT EXECUTED 30052b38: 1a000015 bne 30052b94 <_rename_r+0x78> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 30052b3c: e5d53000 ldrb r3, [r5] <== NOT EXECUTED 30052b40: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED 30052b44: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED 30052b48: 0a000001 beq 30052b54 <_rename_r+0x38> <== NOT EXECUTED 30052b4c: e3530000 cmp r3, #0 <== NOT EXECUTED 30052b50: 1a000005 bne 30052b6c <_rename_r+0x50> <== NOT EXECUTED 30052b54: e59f3388 ldr r3, [pc, #904] ; 30052ee4 <_rename_r+0x3c8> <== NOT EXECUTED 30052b58: e28dc018 add ip, sp, #24 <== NOT EXECUTED 30052b5c: e593e000 ldr lr, [r3] <== NOT EXECUTED 30052b60: e3a04000 mov r4, #0 <== NOT EXECUTED 30052b64: e28ee018 add lr, lr, #24 <== NOT EXECUTED 30052b68: ea000004 b 30052b80 <_rename_r+0x64> <== NOT EXECUTED 30052b6c: e59f3370 ldr r3, [pc, #880] ; 30052ee4 <_rename_r+0x3c8> <== NOT EXECUTED 30052b70: e28dc018 add ip, sp, #24 <== NOT EXECUTED 30052b74: e593e000 ldr lr, [r3] <== NOT EXECUTED 30052b78: e1a04007 mov r4, r7 <== NOT EXECUTED 30052b7c: e28ee004 add lr, lr, #4 <== NOT EXECUTED 30052b80: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30052b84: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30052b88: e59e3000 ldr r3, [lr] <== NOT EXECUTED 30052b8c: e58c3000 str r3, [ip] <== NOT EXECUTED 30052b90: ea000009 b 30052bbc <_rename_r+0xa0> <== NOT EXECUTED else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 30052b94: e3a0c000 mov ip, #0 <== NOT EXECUTED 30052b98: e1a00005 mov r0, r5 <== NOT EXECUTED 30052b9c: e1a01007 mov r1, r7 <== NOT EXECUTED 30052ba0: e3a02002 mov r2, #2 <== NOT EXECUTED 30052ba4: e28d3018 add r3, sp, #24 <== NOT EXECUTED 30052ba8: e58dc000 str ip, [sp] <== NOT EXECUTED 30052bac: ebfec998 bl 30005214 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 30052bb0: e3500000 cmp r0, #0 <== NOT EXECUTED 30052bb4: 03a04001 moveq r4, #1 <== NOT EXECUTED 30052bb8: 1a000025 bne 30052c54 <_rename_r+0x138> <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 30052bbc: e28dc02c add ip, sp, #44 ; 0x2c <== NOT EXECUTED 30052bc0: e28de018 add lr, sp, #24 <== NOT EXECUTED 30052bc4: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30052bc8: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30052bcc: e59e3000 ldr r3, [lr] <== NOT EXECUTED name = old + old_parent_pathlen; 30052bd0: 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; 30052bd4: e58c3000 str r3, [ip] <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 30052bd8: 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; 30052bdc: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 30052be0: ebffb3c7 bl 3003fb04 <== NOT EXECUTED 30052be4: e1a01000 mov r1, r0 <== NOT EXECUTED 30052be8: e1a00005 mov r0, r5 <== NOT EXECUTED 30052bec: ebfec934 bl 300050c4 <== NOT EXECUTED 30052bf0: e0855000 add r5, r5, r0 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 30052bf4: 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 ) ); 30052bf8: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 30052bfc: ebffb3c0 bl 3003fb04 <== NOT EXECUTED 30052c00: e3a0c000 mov ip, #0 <== NOT EXECUTED 30052c04: e1a01000 mov r1, r0 <== NOT EXECUTED 30052c08: e1a0200c mov r2, ip <== NOT EXECUTED 30052c0c: e1a00005 mov r0, r5 <== NOT EXECUTED 30052c10: e28d302c add r3, sp, #44 ; 0x2c <== NOT EXECUTED 30052c14: e58dc000 str ip, [sp] <== NOT EXECUTED 30052c18: ebfec945 bl 30005134 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 30052c1c: e2505000 subs r5, r0, #0 <== NOT EXECUTED 30052c20: 0a00000d beq 30052c5c <_rename_r+0x140> <== NOT EXECUTED if ( free_old_parentloc ) 30052c24: e3540000 cmp r4, #0 <== NOT EXECUTED 30052c28: 0a000007 beq 30052c4c <_rename_r+0x130> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 30052c2c: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30052c30: e3530000 cmp r3, #0 <== NOT EXECUTED 30052c34: 0a000004 beq 30052c4c <_rename_r+0x130> <== NOT EXECUTED 30052c38: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052c3c: e3530000 cmp r3, #0 <== NOT EXECUTED 30052c40: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 30052c44: 11a0e00f movne lr, pc <== NOT EXECUTED 30052c48: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 30052c4c: ebff9921 bl 300390d8 <__errno> <== NOT EXECUTED 30052c50: e5805000 str r5, [r0] <== NOT EXECUTED 30052c54: e3e06000 mvn r6, #0 <== NOT EXECUTED 30052c58: ea00009e b 30052ed8 <_rename_r+0x3bc> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); 30052c5c: e5d63000 ldrb r3, [r6] <== NOT EXECUTED 30052c60: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED 30052c64: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED 30052c68: 13a07000 movne r7, #0 <== NOT EXECUTED 30052c6c: 03a07001 moveq r7, #1 <== NOT EXECUTED 30052c70: 0a000001 beq 30052c7c <_rename_r+0x160> <== NOT EXECUTED 30052c74: e3530000 cmp r3, #0 <== NOT EXECUTED 30052c78: 1a000005 bne 30052c94 <_rename_r+0x178> <== NOT EXECUTED 30052c7c: e59f3260 ldr r3, [pc, #608] ; 30052ee4 <_rename_r+0x3c8> <== NOT EXECUTED 30052c80: e28dc004 add ip, sp, #4 <== NOT EXECUTED 30052c84: e593e000 ldr lr, [r3] <== NOT EXECUTED 30052c88: e3a07001 mov r7, #1 <== NOT EXECUTED 30052c8c: e28ee018 add lr, lr, #24 <== NOT EXECUTED 30052c90: ea000003 b 30052ca4 <_rename_r+0x188> <== NOT EXECUTED 30052c94: e59f3248 ldr r3, [pc, #584] ; 30052ee4 <_rename_r+0x3c8> <== NOT EXECUTED 30052c98: e28dc004 add ip, sp, #4 <== NOT EXECUTED 30052c9c: e593e000 ldr lr, [r3] <== NOT EXECUTED 30052ca0: e28ee004 add lr, lr, #4 <== NOT EXECUTED 30052ca4: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30052ca8: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30052cac: e59e3000 ldr r3, [lr] <== NOT EXECUTED 30052cb0: e58c3000 str r3, [ip] <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 30052cb4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30052cb8: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 30052cbc: e3530000 cmp r3, #0 <== NOT EXECUTED 30052cc0: 0a00004d beq 30052dfc <_rename_r+0x2e0> <== 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 ); 30052cc4: e28d5004 add r5, sp, #4 <== NOT EXECUTED 30052cc8: e0860007 add r0, r6, r7 <== NOT EXECUTED 30052ccc: e1a01005 mov r1, r5 <== NOT EXECUTED 30052cd0: e28d2040 add r2, sp, #64 ; 0x40 <== NOT EXECUTED 30052cd4: e1a0e00f mov lr, pc <== NOT EXECUTED 30052cd8: e12fff13 bx r3 <== NOT EXECUTED if ( result != 0 ) { 30052cdc: e2506000 subs r6, r0, #0 <== NOT EXECUTED 30052ce0: 0a00001c beq 30052d58 <_rename_r+0x23c> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 30052ce4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30052ce8: e3530000 cmp r3, #0 <== NOT EXECUTED 30052cec: 0a000004 beq 30052d04 <_rename_r+0x1e8> <== NOT EXECUTED 30052cf0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052cf4: e3530000 cmp r3, #0 <== NOT EXECUTED 30052cf8: 11a00005 movne r0, r5 <== NOT EXECUTED 30052cfc: 11a0e00f movne lr, pc <== NOT EXECUTED 30052d00: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 30052d04: e3540000 cmp r4, #0 <== NOT EXECUTED 30052d08: 0a000007 beq 30052d2c <_rename_r+0x210> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 30052d0c: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30052d10: e3530000 cmp r3, #0 <== NOT EXECUTED 30052d14: 0a000004 beq 30052d2c <_rename_r+0x210> <== NOT EXECUTED 30052d18: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052d1c: e3530000 cmp r3, #0 <== NOT EXECUTED 30052d20: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 30052d24: 11a0e00f movne lr, pc <== NOT EXECUTED 30052d28: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 30052d2c: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 30052d30: e3530000 cmp r3, #0 <== NOT EXECUTED 30052d34: 0a000004 beq 30052d4c <_rename_r+0x230> <== NOT EXECUTED 30052d38: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052d3c: e3530000 cmp r3, #0 <== NOT EXECUTED 30052d40: 128d002c addne r0, sp, #44 ; 0x2c <== NOT EXECUTED 30052d44: 11a0e00f movne lr, pc <== NOT EXECUTED 30052d48: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 30052d4c: ebff98e1 bl 300390d8 <__errno> <== NOT EXECUTED 30052d50: e5806000 str r6, [r0] <== NOT EXECUTED 30052d54: eaffffbe b 30052c54 <_rename_r+0x138> <== 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 ) { 30052d58: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 30052d5c: e59d1028 ldr r1, [sp, #40] ; 0x28 <== NOT EXECUTED 30052d60: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30052d64: e1510002 cmp r1, r2 <== NOT EXECUTED 30052d68: 0a00001b beq 30052ddc <_rename_r+0x2c0> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 30052d6c: e3530000 cmp r3, #0 <== NOT EXECUTED 30052d70: 0a000004 beq 30052d88 <_rename_r+0x26c> <== NOT EXECUTED 30052d74: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052d78: e3530000 cmp r3, #0 <== NOT EXECUTED 30052d7c: 11a00005 movne r0, r5 <== NOT EXECUTED 30052d80: 11a0e00f movne lr, pc <== NOT EXECUTED 30052d84: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 30052d88: e3540000 cmp r4, #0 <== NOT EXECUTED 30052d8c: 0a000007 beq 30052db0 <_rename_r+0x294> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 30052d90: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30052d94: e3530000 cmp r3, #0 <== NOT EXECUTED 30052d98: 0a000004 beq 30052db0 <_rename_r+0x294> <== NOT EXECUTED 30052d9c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052da0: e3530000 cmp r3, #0 <== NOT EXECUTED 30052da4: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 30052da8: 11a0e00f movne lr, pc <== NOT EXECUTED 30052dac: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 30052db0: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 30052db4: e3530000 cmp r3, #0 <== NOT EXECUTED 30052db8: 0a000004 beq 30052dd0 <_rename_r+0x2b4> <== NOT EXECUTED 30052dbc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052dc0: e3530000 cmp r3, #0 <== NOT EXECUTED 30052dc4: 128d002c addne r0, sp, #44 ; 0x2c <== NOT EXECUTED 30052dc8: 11a0e00f movne lr, pc <== NOT EXECUTED 30052dcc: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 30052dd0: ebff98c0 bl 300390d8 <__errno> <== NOT EXECUTED 30052dd4: e3a03012 mov r3, #18 <== NOT EXECUTED 30052dd8: ea00001b b 30052e4c <_rename_r+0x330> <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { 30052ddc: e593c040 ldr ip, [r3, #64] ; 0x40 <== NOT EXECUTED 30052de0: e35c0000 cmp ip, #0 <== NOT EXECUTED 30052de4: 1a00001a bne 30052e54 <_rename_r+0x338> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 30052de8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052dec: e3530000 cmp r3, #0 <== NOT EXECUTED 30052df0: 11a00005 movne r0, r5 <== NOT EXECUTED 30052df4: 11a0e00f movne lr, pc <== NOT EXECUTED 30052df8: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 30052dfc: e3540000 cmp r4, #0 <== NOT EXECUTED 30052e00: 0a000007 beq 30052e24 <_rename_r+0x308> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 30052e04: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30052e08: e3530000 cmp r3, #0 <== NOT EXECUTED 30052e0c: 0a000004 beq 30052e24 <_rename_r+0x308> <== NOT EXECUTED 30052e10: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052e14: e3530000 cmp r3, #0 <== NOT EXECUTED 30052e18: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 30052e1c: 11a0e00f movne lr, pc <== NOT EXECUTED 30052e20: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 30052e24: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 30052e28: e3530000 cmp r3, #0 <== NOT EXECUTED 30052e2c: 0a000004 beq 30052e44 <_rename_r+0x328> <== NOT EXECUTED 30052e30: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052e34: e3530000 cmp r3, #0 <== NOT EXECUTED 30052e38: 128d002c addne r0, sp, #44 ; 0x2c <== NOT EXECUTED 30052e3c: 11a0e00f movne lr, pc <== NOT EXECUTED 30052e40: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30052e44: ebff98a3 bl 300390d8 <__errno> <== NOT EXECUTED 30052e48: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30052e4c: e5803000 str r3, [r0] <== NOT EXECUTED 30052e50: eaffff7f b 30052c54 <_rename_r+0x138> <== NOT EXECUTED } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 30052e54: e59d3040 ldr r3, [sp, #64] ; 0x40 <== NOT EXECUTED 30052e58: e28d0018 add r0, sp, #24 <== NOT EXECUTED 30052e5c: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 30052e60: e1a02005 mov r2, r5 <== NOT EXECUTED 30052e64: e1a0e00f mov lr, pc <== NOT EXECUTED 30052e68: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 30052e6c: 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 ); 30052e70: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 30052e74: e3530000 cmp r3, #0 <== NOT EXECUTED 30052e78: 0a000004 beq 30052e90 <_rename_r+0x374> <== NOT EXECUTED 30052e7c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052e80: e3530000 cmp r3, #0 <== NOT EXECUTED 30052e84: 11a00005 movne r0, r5 <== NOT EXECUTED 30052e88: 11a0e00f movne lr, pc <== NOT EXECUTED 30052e8c: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 30052e90: e3540000 cmp r4, #0 <== NOT EXECUTED 30052e94: 0a000007 beq 30052eb8 <_rename_r+0x39c> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 30052e98: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30052e9c: e3530000 cmp r3, #0 <== NOT EXECUTED 30052ea0: 0a000004 beq 30052eb8 <_rename_r+0x39c> <== NOT EXECUTED 30052ea4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052ea8: e3530000 cmp r3, #0 <== NOT EXECUTED 30052eac: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 30052eb0: 11a0e00f movne lr, pc <== NOT EXECUTED 30052eb4: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 30052eb8: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 30052ebc: e3530000 cmp r3, #0 <== NOT EXECUTED 30052ec0: 0a000004 beq 30052ed8 <_rename_r+0x3bc> <== NOT EXECUTED 30052ec4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30052ec8: e3530000 cmp r3, #0 <== NOT EXECUTED 30052ecc: 128d002c addne r0, sp, #44 ; 0x2c <== NOT EXECUTED 30052ed0: 11a0e00f movne lr, pc <== NOT EXECUTED 30052ed4: 112fff13 bxne r3 <== NOT EXECUTED return result; } 30052ed8: e1a00006 mov r0, r6 <== NOT EXECUTED 30052edc: e28dd044 add sp, sp, #68 ; 0x44 <== NOT EXECUTED 30052ee0: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30052ee4: 3005cdc8 .word 0x3005cdc8 30006988 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 30006988: e1a00001 mov r0, r1 <== NOT EXECUTED 3000698c: e1a01002 mov r1, r2 <== NOT EXECUTED 30006990: eaffffc4 b 300068a8 <== NOT EXECUTED 3000c440 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 3000c440: e1a00001 mov r0, r1 <== NOT EXECUTED 3000c444: eaffff60 b 3000c1cc <== NOT EXECUTED 30021a20 : #include int chdir( const char *pathname ) { 30021a20: e92d4030 push {r4, r5, lr} 30021a24: e24dd018 sub sp, sp, #24 30021a28: 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 ); 30021a2c: eb007834 bl 3003fb04 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 30021a30: e28d4004 add r4, sp, #4 30021a34: e3a0c001 mov ip, #1 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 30021a38: e1a01000 mov r1, r0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 30021a3c: e1a0200c mov r2, ip 30021a40: e1a00005 mov r0, r5 30021a44: e1a03004 mov r3, r4 30021a48: e58dc000 str ip, [sp] 30021a4c: ebff8df0 bl 30005214 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 30021a50: e3500000 cmp r0, #0 30021a54: 1a00000b bne 30021a88 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 30021a58: e59d2010 ldr r2, [sp, #16] 30021a5c: e5923010 ldr r3, [r2, #16] 30021a60: e3530000 cmp r3, #0 30021a64: 1a000009 bne 30021a90 rtems_filesystem_freenode( &loc ); 30021a68: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30021a6c: e3530000 cmp r3, #0 <== NOT EXECUTED 30021a70: 11a00004 movne r0, r4 <== NOT EXECUTED 30021a74: 11a0e00f movne lr, pc <== NOT EXECUTED 30021a78: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30021a7c: eb005d95 bl 300390d8 <__errno> <== NOT EXECUTED 30021a80: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30021a84: e5803000 str r3, [r0] 30021a88: e3e00000 mvn r0, #0 30021a8c: ea000022 b 30021b1c } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 30021a90: e1a00004 mov r0, r4 30021a94: e1a0e00f mov lr, pc 30021a98: e12fff13 bx r3 30021a9c: e3500001 cmp r0, #1 30021aa0: 0a00000a beq 30021ad0 rtems_filesystem_freenode( &loc ); 30021aa4: e59d3010 ldr r3, [sp, #16] 30021aa8: e3530000 cmp r3, #0 30021aac: 0a000004 beq 30021ac4 30021ab0: e593301c ldr r3, [r3, #28] 30021ab4: e3530000 cmp r3, #0 30021ab8: 11a00004 movne r0, r4 30021abc: 11a0e00f movne lr, pc 30021ac0: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( ENOTDIR ); 30021ac4: eb005d83 bl 300390d8 <__errno> 30021ac8: e3a03014 mov r3, #20 30021acc: eaffffec b 30021a84 } rtems_filesystem_freenode( &rtems_filesystem_current ); 30021ad0: e59f304c ldr r3, [pc, #76] ; 30021b24 30021ad4: e5930000 ldr r0, [r3] 30021ad8: e5903010 ldr r3, [r0, #16] 30021adc: e3530000 cmp r3, #0 30021ae0: 0a000004 beq 30021af8 30021ae4: e593301c ldr r3, [r3, #28] 30021ae8: e3530000 cmp r3, #0 30021aec: 12800004 addne r0, r0, #4 30021af0: 11a0e00f movne lr, pc 30021af4: 112fff13 bxne r3 rtems_filesystem_current = loc; 30021af8: e59f3024 ldr r3, [pc, #36] ; 30021b24 30021afc: e28d4004 add r4, sp, #4 30021b00: e593c000 ldr ip, [r3] 30021b04: e8b4000f ldm r4!, {r0, r1, r2, r3} 30021b08: e28cc004 add ip, ip, #4 30021b0c: e8ac000f stmia ip!, {r0, r1, r2, r3} 30021b10: e5943000 ldr r3, [r4] 30021b14: e3a00000 mov r0, #0 30021b18: e58c3000 str r3, [ip] return 0; } 30021b1c: e28dd018 add sp, sp, #24 30021b20: e8bd8030 pop {r4, r5, pc} 30021b24: 3005cdc8 .word 0x3005cdc8 30004f2c : int chmod( const char *path, mode_t mode ) { 30004f2c: e92d4070 push {r4, r5, r6, lr} 30004f30: e24dd018 sub sp, sp, #24 30004f34: e1a05001 mov r5, r1 30004f38: 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 ); 30004f3c: eb00eaf0 bl 3003fb04 30004f40: e28d4004 add r4, sp, #4 30004f44: e1a01000 mov r1, r0 30004f48: e3a0c001 mov ip, #1 30004f4c: e1a00006 mov r0, r6 30004f50: e3a02000 mov r2, #0 30004f54: e1a03004 mov r3, r4 30004f58: e58dc000 str ip, [sp] 30004f5c: eb0000ac bl 30005214 if ( status != 0 ) 30004f60: e3500000 cmp r0, #0 30004f64: 1a00000d bne 30004fa0 return -1; if ( !loc.handlers ){ 30004f68: e59d300c ldr r3, [sp, #12] 30004f6c: e3530000 cmp r3, #0 30004f70: 1a00000c bne 30004fa8 rtems_filesystem_freenode( &loc ); 30004f74: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30004f78: e3530000 cmp r3, #0 <== NOT EXECUTED 30004f7c: 0a000004 beq 30004f94 <== NOT EXECUTED 30004f80: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30004f84: e3530000 cmp r3, #0 <== NOT EXECUTED 30004f88: 11a00004 movne r0, r4 <== NOT EXECUTED 30004f8c: 11a0e00f movne lr, pc <== NOT EXECUTED 30004f90: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); 30004f94: eb00d04f bl 300390d8 <__errno> <== NOT EXECUTED 30004f98: e3a03009 mov r3, #9 <== NOT EXECUTED 30004f9c: e5803000 str r3, [r0] <== NOT EXECUTED 30004fa0: e3e05000 mvn r5, #0 30004fa4: ea00001a b 30005014 } if ( !loc.handlers->fchmod_h ){ 30004fa8: e593301c ldr r3, [r3, #28] 30004fac: e3530000 cmp r3, #0 30004fb0: 1a00000a bne 30004fe0 rtems_filesystem_freenode( &loc ); 30004fb4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30004fb8: e3530000 cmp r3, #0 <== NOT EXECUTED 30004fbc: 0a000004 beq 30004fd4 <== NOT EXECUTED 30004fc0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30004fc4: e3530000 cmp r3, #0 <== NOT EXECUTED 30004fc8: 11a00004 movne r0, r4 <== NOT EXECUTED 30004fcc: 11a0e00f movne lr, pc <== NOT EXECUTED 30004fd0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30004fd4: eb00d03f bl 300390d8 <__errno> <== NOT EXECUTED 30004fd8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30004fdc: eaffffee b 30004f9c <== NOT EXECUTED } result = (*loc.handlers->fchmod_h)( &loc, mode ); 30004fe0: e1a01005 mov r1, r5 30004fe4: e1a00004 mov r0, r4 30004fe8: e1a0e00f mov lr, pc 30004fec: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 30004ff0: 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 ); 30004ff4: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 30004ff8: e3530000 cmp r3, #0 30004ffc: 0a000004 beq 30005014 30005000: e593301c ldr r3, [r3, #28] 30005004: e3530000 cmp r3, #0 30005008: 11a00004 movne r0, r4 3000500c: 11a0e00f movne lr, pc 30005010: 112fff13 bxne r3 return result; } 30005014: e1a00005 mov r0, r5 30005018: e28dd018 add sp, sp, #24 3000501c: e8bd8070 pop {r4, r5, r6, pc} 30021b28 : int chown( const char *path, uid_t owner, gid_t group ) { 30021b28: e92d40f0 push {r4, r5, r6, r7, lr} 30021b2c: e1a01801 lsl r1, r1, #16 30021b30: e24dd018 sub sp, sp, #24 30021b34: e1a02802 lsl r2, r2, #16 30021b38: e1a06821 lsr r6, r1, #16 30021b3c: e1a05822 lsr r5, r2, #16 30021b40: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) 30021b44: eb0077ee bl 3003fb04 30021b48: e28d4004 add r4, sp, #4 30021b4c: e1a01000 mov r1, r0 30021b50: e3a0c001 mov ip, #1 30021b54: e1a00007 mov r0, r7 30021b58: e3a02000 mov r2, #0 30021b5c: e1a03004 mov r3, r4 30021b60: e58dc000 str ip, [sp] 30021b64: ebff8daa bl 30005214 30021b68: e3500000 cmp r0, #0 30021b6c: 1a00000b bne 30021ba0 return -1; if ( !loc.ops->chown_h ) { 30021b70: e59d2010 ldr r2, [sp, #16] 30021b74: e5923018 ldr r3, [r2, #24] 30021b78: e3530000 cmp r3, #0 30021b7c: 1a000009 bne 30021ba8 rtems_filesystem_freenode( &loc ); 30021b80: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30021b84: e3530000 cmp r3, #0 <== NOT EXECUTED 30021b88: 11a00004 movne r0, r4 <== NOT EXECUTED 30021b8c: 11a0e00f movne lr, pc <== NOT EXECUTED 30021b90: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30021b94: eb005d4f bl 300390d8 <__errno> <== NOT EXECUTED 30021b98: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30021b9c: e5803000 str r3, [r0] <== NOT EXECUTED 30021ba0: e3e05000 mvn r5, #0 30021ba4: ea00000d b 30021be0 } result = (*loc.ops->chown_h)( &loc, owner, group ); 30021ba8: e1a02005 mov r2, r5 30021bac: e1a01006 mov r1, r6 30021bb0: e1a00004 mov r0, r4 30021bb4: e1a0e00f mov lr, pc 30021bb8: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 30021bbc: 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 ); 30021bc0: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 30021bc4: e3530000 cmp r3, #0 30021bc8: 0a000004 beq 30021be0 30021bcc: e593301c ldr r3, [r3, #28] 30021bd0: e3530000 cmp r3, #0 30021bd4: 11a00004 movne r0, r4 30021bd8: 11a0e00f movne lr, pc 30021bdc: 112fff13 bxne r3 return result; } 30021be0: e1a00005 mov r0, r5 30021be4: e28dd018 add sp, sp, #24 30021be8: e8bd80f0 pop {r4, r5, r6, r7, pc} 30021bec : #include int chroot( const char *pathname ) { 30021bec: 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) { 30021bf0: e59f50d8 ldr r5, [pc, #216] ; 30021cd0 30021bf4: e59f30d8 ldr r3, [pc, #216] ; 30021cd4 30021bf8: e5954000 ldr r4, [r5] #include int chroot( const char *pathname ) { 30021bfc: 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) { 30021c00: e1540003 cmp r4, r3 #include int chroot( const char *pathname ) { 30021c04: 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) { 30021c08: 1a000008 bne 30021c30 rtems_libio_set_private_env(); /* try to set a new private env*/ 30021c0c: eb0005d8 bl 30023374 if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 30021c10: e5953000 ldr r3, [r5] 30021c14: e1530004 cmp r3, r4 30021c18: 1a000004 bne 30021c30 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30021c1c: eb005d2d bl 300390d8 <__errno> <== NOT EXECUTED 30021c20: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30021c24: e5803000 str r3, [r0] <== NOT EXECUTED 30021c28: e3e00000 mvn r0, #0 <== NOT EXECUTED 30021c2c: ea000025 b 30021cc8 <== NOT EXECUTED } result = chdir(pathname); 30021c30: e1a00006 mov r0, r6 30021c34: ebffff79 bl 30021a20 if (result) { 30021c38: e250c000 subs ip, r0, #0 30021c3c: 1a000007 bne 30021c60 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 30021c40: e1a0200c mov r2, ip 30021c44: e59f008c ldr r0, [pc, #140] ; 30021cd8 30021c48: e3a01001 mov r1, #1 30021c4c: e28d3004 add r3, sp, #4 30021c50: e58dc000 str ip, [sp] 30021c54: ebff8d6e bl 30005214 30021c58: e3500000 cmp r0, #0 30021c5c: 0a000006 beq 30021c7c /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 30021c60: eb005d1c bl 300390d8 <__errno> <== NOT EXECUTED 30021c64: e1a04000 mov r4, r0 <== NOT EXECUTED 30021c68: eb005d1a bl 300390d8 <__errno> <== NOT EXECUTED 30021c6c: e5903000 ldr r3, [r0] <== NOT EXECUTED 30021c70: e3e00000 mvn r0, #0 <== NOT EXECUTED 30021c74: e5843000 str r3, [r4] <== NOT EXECUTED 30021c78: ea000012 b 30021cc8 <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 30021c7c: e59f304c ldr r3, [pc, #76] ; 30021cd0 30021c80: e5930000 ldr r0, [r3] 30021c84: e5903024 ldr r3, [r0, #36] ; 0x24 30021c88: e3530000 cmp r3, #0 30021c8c: 0a000004 beq 30021ca4 30021c90: e593301c ldr r3, [r3, #28] 30021c94: e3530000 cmp r3, #0 30021c98: 12800018 addne r0, r0, #24 30021c9c: 11a0e00f movne lr, pc 30021ca0: 112fff13 bxne r3 rtems_filesystem_root = loc; 30021ca4: e59f3024 ldr r3, [pc, #36] ; 30021cd0 30021ca8: e28d4004 add r4, sp, #4 30021cac: e593c000 ldr ip, [r3] 30021cb0: e8b4000f ldm r4!, {r0, r1, r2, r3} 30021cb4: e28cc018 add ip, ip, #24 30021cb8: e8ac000f stmia ip!, {r0, r1, r2, r3} 30021cbc: e5943000 ldr r3, [r4] 30021cc0: e3a00000 mov r0, #0 30021cc4: e58c3000 str r3, [ip] return 0; } 30021cc8: e28dd018 add sp, sp, #24 30021ccc: e8bd8070 pop {r4, r5, r6, pc} 30021cd0: 3005cdc8 .word 0x3005cdc8 30021cd4: 30060bd0 .word 0x30060bd0 30021cd8: 30057543 .word 0x30057543 30007c40 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 30007c40: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, 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; 30007c44: e5935000 ldr r5, [r3] const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 30007c48: e1a04003 mov r4, 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) 30007c4c: e3550000 cmp r5, #0 const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 30007c50: e1a09000 mov r9, r0 30007c54: e1a08001 mov r8, 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) 30007c58: 13a06000 movne r6, #0 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 30007c5c: 159fa090 ldrne sl, [pc, #144] ; 30007cf4 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) 30007c60: 1a000019 bne 30007ccc rtems_set_errno_and_return_minus_one( EFAULT ); 30007c64: eb000b88 bl 3000aa8c <__errno> <== NOT EXECUTED 30007c68: e3a0300e mov r3, #14 <== NOT EXECUTED 30007c6c: e5803000 str r3, [r0] <== NOT EXECUTED 30007c70: e3e00000 mvn r0, #0 <== NOT EXECUTED 30007c74: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED for (i = 0; i < rtems_device_table_size; i++) { if (!device_name_table[i].device_name) 30007c78: e5957000 ldr r7, [r5] /* 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++) { 30007c7c: e2866001 add r6, r6, #1 if (!device_name_table[i].device_name) 30007c80: e2571000 subs r1, r7, #0 30007c84: 0a00000f beq 30007cc8 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 30007c88: eb000f35 bl 3000b964 30007c8c: e3500000 cmp r0, #0 30007c90: 1a00000c bne 30007cc8 continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 30007c94: e7d70008 ldrb r0, [r7, r8] 30007c98: e3500000 cmp r0, #0 30007c9c: 1a000009 bne 30007cc8 /* 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; 30007ca0: e59f3050 ldr r3, [pc, #80] ; 30007cf8 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 30007ca4: e5845000 str r5, [r4] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 30007ca8: e5933000 ldr r3, [r3] 30007cac: e5933028 ldr r3, [r3, #40] ; 0x28 30007cb0: e5843010 str r3, [r4, #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; 30007cb4: e59f3040 ldr r3, [pc, #64] ; 30007cfc 30007cb8: e5843008 str r3, [r4, #8] pathloc->ops = &devFS_ops; 30007cbc: e59f303c ldr r3, [pc, #60] ; 30007d00 30007cc0: e584300c str r3, [r4, #12] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 30007cc4: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, 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 ); for (i = 0; i < rtems_device_table_size; i++) { 30007cc8: e2855014 add r5, r5, #20 30007ccc: e59a3000 ldr r3, [sl] if (!device_name_table[i].device_name) continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 30007cd0: e1a00009 mov r0, r9 /* 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++) { 30007cd4: e1560003 cmp r6, r3 if (!device_name_table[i].device_name) continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 30007cd8: e1a02008 mov r2, r8 /* 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++) { 30007cdc: 3affffe5 bcc 30007c78 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 30007ce0: eb000b69 bl 3000aa8c <__errno> 30007ce4: e3a03002 mov r3, #2 30007ce8: e5803000 str r3, [r0] 30007cec: e3e00000 mvn r0, #0 } 30007cf0: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} 30007cf4: 3000e8e4 .word 0x3000e8e4 30007cf8: 3000eb44 .word 0x3000eb44 30007cfc: 3000eab0 .word 0x3000eab0 30007d00: 3000eae8 .word 0x3000eae8 30000f18 : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 30000f18: e92d40f0 push {r4, r5, r6, r7, lr} rtems_device_name_t *device_name_table; /* allocate device only filesystem name table */ device_name_table = (rtems_device_name_t *)_Workspace_Allocate( 30000f1c: e59f7058 ldr r7, [pc, #88] ; 30000f7c 30000f20: e3a06014 mov r6, #20 30000f24: e5973000 ldr r3, [r7] int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 30000f28: 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( 30000f2c: e0000396 mul r0, r6, r3 30000f30: eb001a16 bl 30007790 <_Workspace_Allocate> sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) 30000f34: e2505000 subs r5, r0, #0 30000f38: 1a000004 bne 30000f50 rtems_set_errno_and_return_minus_one( ENOMEM ); 30000f3c: eb0026d2 bl 3000aa8c <__errno> <== NOT EXECUTED 30000f40: e3a0300c mov r3, #12 <== NOT EXECUTED 30000f44: e5803000 str r3, [r0] <== NOT EXECUTED 30000f48: e3e00000 mvn r0, #0 <== NOT EXECUTED 30000f4c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED memset( 30000f50: e5972000 ldr r2, [r7] 30000f54: e3a01000 mov r1, #0 30000f58: e0020296 mul r2, r6, r2 30000f5c: eb0028f8 bl 3000b344 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; 30000f60: e59f3018 ldr r3, [pc, #24] ; 30000f80 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; 30000f64: 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; 30000f68: e2832038 add r2, r3, #56 ; 0x38 30000f6c: 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; 30000f70: 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; 30000f74: e3a00000 mov r0, #0 return 0; } 30000f78: e8bd80f0 pop {r4, r5, r6, r7, pc} 30000f7c: 3000e8e4 .word 0x3000e8e4 30000f80: 3000eab0 .word 0x3000eab0 30000f84 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 30000f84: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} 30000f88: 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') && 30000f8c: e5d00000 ldrb r0, [r0] const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 30000f90: 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') && 30000f94: e3500064 cmp r0, #100 ; 0x64 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { 30000f98: e58d2000 str r2, [sp] 30000f9c: e1a09003 mov r9, r3 * condition and do not create the '/dev' and the 'path' * actually passed in is 'dev', not '/dev'. Just return 0 to * indicate we are OK. */ if ((path[0] == 'd') && (path[1] == 'e') && 30000fa0: 1a000008 bne 30000fc8 30000fa4: e5d43001 ldrb r3, [r4, #1] 30000fa8: e3530065 cmp r3, #101 ; 0x65 30000fac: 1a000005 bne 30000fc8 (path[2] == 'v') && (path[3] == '\0')) 30000fb0: e5d43002 ldrb r3, [r4, #2] 30000fb4: e3530076 cmp r3, #118 ; 0x76 30000fb8: 1a000002 bne 30000fc8 30000fbc: e5d40003 ldrb r0, [r4, #3] 30000fc0: e3500000 cmp r0, #0 30000fc4: 0a000039 beq 300010b0 return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) 30000fc8: e205aa0f and sl, r5, #61440 ; 0xf000 30000fcc: e35a0a02 cmp sl, #8192 ; 0x2000 30000fd0: 135a0a06 cmpne sl, #24576 ; 0x6000 30000fd4: 03a0a000 moveq sl, #0 30000fd8: 13a0a001 movne sl, #1 30000fdc: 0a000002 beq 30000fec rtems_set_errno_and_return_minus_one( EINVAL ); 30000fe0: eb0026a9 bl 3000aa8c <__errno> <== NOT EXECUTED 30000fe4: e3a03016 mov r3, #22 <== NOT EXECUTED 30000fe8: ea000008 b 30001010 <== NOT EXECUTED else rtems_filesystem_split_dev_t(dev, major, minor); /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; 30000fec: e59d3028 ldr r3, [sp, #40] ; 0x28 30000ff0: e5936000 ldr r6, [r3] if (!device_name_table) 30000ff4: e3560000 cmp r6, #0 30000ff8: 13e07000 mvnne r7, #0 30000ffc: 11a0800a movne r8, sl rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 30001000: 159fb0ac ldrne fp, [pc, #172] ; 300010b4 30001004: 1a000010 bne 3000104c 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 ); 30001008: eb00269f bl 3000aa8c <__errno> <== NOT EXECUTED 3000100c: e3a0300e mov r3, #14 <== NOT EXECUTED 30001010: e5803000 str r3, [r0] <== NOT EXECUTED 30001014: e3e00000 mvn r0, #0 <== NOT EXECUTED 30001018: ea000024 b 300010b0 <== NOT EXECUTED for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) 3000101c: e796300a ldr r3, [r6, sl] /* 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++){ 30001020: e28aa014 add sl, sl, #20 if (device_name_table[i].device_name == NULL) 30001024: e2531000 subs r1, r3, #0 30001028: 0a000005 beq 30001044 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 3000102c: eb00296c bl 3000b5e4 <== NOT EXECUTED 30001030: e3500000 cmp r0, #0 <== NOT EXECUTED 30001034: 1a000003 bne 30001048 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EEXIST ); 30001038: eb002693 bl 3000aa8c <__errno> <== NOT EXECUTED 3000103c: e3a03011 mov r3, #17 <== NOT EXECUTED 30001040: eafffff2 b 30001010 <== NOT EXECUTED 30001044: e1a07008 mov r7, r8 /* Find an empty slot in device name table */ device_name_table = (rtems_device_name_t *)pathloc->node_access; if (!device_name_table) rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ 30001048: e2888001 add r8, r8, #1 3000104c: e59b3000 ldr r3, [fp] if (device_name_table[i].device_name == NULL) slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) 30001050: e1a00004 mov r0, r4 /* 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++){ 30001054: e1580003 cmp r8, r3 30001058: 3affffef bcc 3000101c else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) 3000105c: e3770001 cmn r7, #1 30001060: 1a000004 bne 30001078 rtems_set_errno_and_return_minus_one( ENOMEM ); 30001064: eb002688 bl 3000aa8c <__errno> <== NOT EXECUTED 30001068: e3a0300c mov r3, #12 <== NOT EXECUTED 3000106c: e5803000 str r3, [r0] <== NOT EXECUTED 30001070: e1a00007 mov r0, r7 <== NOT EXECUTED 30001074: ea00000d b 300010b0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30001078: e10f8000 mrs r8, CPSR 3000107c: e3883080 orr r3, r8, #128 ; 0x80 30001080: e129f003 msr CPSR_fc, r3 _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; 30001084: e3a02014 mov r2, #20 30001088: e0030792 mul r3, r2, r7 device_name_table[slot].device_name_length = strlen(path); 3000108c: e1a00004 mov r0, r4 if (slot == -1) rtems_set_errno_and_return_minus_one( ENOMEM ); _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; 30001090: e7864003 str r4, [r6, r3] 30001094: e0866003 add r6, r6, r3 device_name_table[slot].device_name_length = strlen(path); 30001098: eb002a19 bl 3000b904 device_name_table[slot].major = major; 3000109c: e59d3000 ldr r3, [sp] device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; 300010a0: e5865010 str r5, [r6, #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); 300010a4: e9860209 stmib r6, {r0, r3, r9} static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 300010a8: e129f008 msr CPSR_fc, r8 300010ac: e3a00000 mov r0, #0 device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } 300010b0: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} 300010b4: 3000e8e4 .word 0x3000e8e4 30001130 : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30001130: e92d4010 push {r4, lr} <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 30001134: e590c014 ldr ip, [r0, #20] <== NOT EXECUTED ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30001138: 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; 3000113c: e58d2010 str r2, [sp, #16] <== NOT EXECUTED ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30001140: 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; 30001144: 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; 30001148: 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; 3000114c: e58d2018 str r2, [sp, #24] <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 30001150: 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; 30001154: e58d100c str r1, [sp, #12] <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 30001158: e1a0200d mov r2, sp <== NOT EXECUTED 3000115c: e590100c ldr r1, [r0, #12] <== NOT EXECUTED 30001160: 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; 30001164: e58d3000 str r3, [sp] <== NOT EXECUTED args.offset = iop->offset; 30001168: e283400c add r4, r3, #12 <== NOT EXECUTED 3000116c: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED 30001170: 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( 30001174: eb000ee2 bl 30004d04 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) 30001178: e3500000 cmp r0, #0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 3000117c: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED np->minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 30001180: 1b001adf blne 30007d04 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 30001184: e28dd01c add sp, sp, #28 <== NOT EXECUTED 30001188: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3000118c : struct stat *buf ) { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; 3000118c: e5903000 ldr r3, [r0] int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 30001190: 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) 30001194: e3530000 cmp r3, #0 30001198: 1a000004 bne 300011b0 rtems_set_errno_and_return_minus_one( EFAULT ); 3000119c: eb00263a bl 3000aa8c <__errno> <== NOT EXECUTED 300011a0: e3a0300e mov r3, #14 <== NOT EXECUTED 300011a4: e5803000 str r3, [r0] <== NOT EXECUTED 300011a8: e3e00000 mvn r0, #0 <== NOT EXECUTED 300011ac: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor ); buf->st_mode = the_dev->mode; 300011b0: 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 ); 300011b4: e593200c ldr r2, [r3, #12] rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 300011b8: e5933008 ldr r3, [r3, #8] buf->st_mode = the_dev->mode; 300011bc: 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 ); 300011c0: e5813018 str r3, [r1, #24] 300011c4: e581201c str r2, [r1, #28] buf->st_mode = the_dev->mode; 300011c8: e3a00000 mov r0, #0 return 0; } 300011cc: e49df004 pop {pc} ; (ldr pc, [sp], #4) 3000a86c : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3000a86c: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 3000a870: e280400c add r4, r0, #12 <== NOT EXECUTED 3000a874: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 3000a878: e24dd01c sub sp, sp, #28 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 3000a87c: e590c014 ldr ip, [r0, #20] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 3000a880: e98d0018 stmib sp, {r3, r4} <== NOT EXECUTED args.buffer = buffer; args.count = count; 3000a884: 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; 3000a888: 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; 3000a88c: e3a02000 mov r2, #0 <== NOT EXECUTED 3000a890: e58d2018 str r2, [sp, #24] <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 3000a894: e58d100c str r1, [sp, #12] <== NOT EXECUTED args.count = count; args.flags = iop->flags; 3000a898: e58dc014 str ip, [sp, #20] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 3000a89c: e58d0000 str r0, [sp] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 3000a8a0: e5931054 ldr r1, [r3, #84] ; 0x54 <== NOT EXECUTED 3000a8a4: e5930050 ldr r0, [r3, #80] ; 0x50 <== NOT EXECUTED 3000a8a8: e1a0200d mov r2, sp <== NOT EXECUTED 3000a8ac: eb000513 bl 3000bd00 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 3000a8b0: e3500000 cmp r0, #0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 3000a8b4: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 3000a8b8: 1b00062f blne 3000c17c <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 3000a8bc: e28dd01c add sp, sp, #28 <== NOT EXECUTED 3000a8c0: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30002c08 : drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002c08: e59030b4 ldr r3, [r0, #180] ; 0xb4 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 30002c0c: e92d4030 push {r4, r5, lr} rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002c10: e3530000 cmp r3, #0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { 30002c14: e1a04000 mov r4, r0 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { 30002c18: 08bd8030 popeq {r4, r5, pc} static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30002c1c: e10f3000 mrs r3, CPSR <== NOT EXECUTED 30002c20: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 30002c24: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { tty->rawOutBufState = rob_wait; 30002c28: e3a05002 mov r5, #2 <== NOT EXECUTED rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { 30002c2c: ea00000a b 30002c5c <== NOT EXECUTED tty->rawOutBufState = rob_wait; 30002c30: e5845094 str r5, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002c34: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 30002c38: e3a01000 mov r1, #0 <== NOT EXECUTED 30002c3c: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED 30002c40: e1a02001 mov r2, r1 <== NOT EXECUTED 30002c44: eb0005ac bl 300042fc <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 30002c48: e3500000 cmp r0, #0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 30002c4c: 1b00073e blne 3000494c <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30002c50: e10f3000 mrs r3, CPSR <== NOT EXECUTED 30002c54: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 30002c58: 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) { 30002c5c: e5941084 ldr r1, [r4, #132] ; 0x84 <== NOT EXECUTED 30002c60: e5942080 ldr r2, [r4, #128] ; 0x80 <== NOT EXECUTED 30002c64: e1510002 cmp r1, r2 <== NOT EXECUTED 30002c68: 1afffff0 bne 30002c30 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002c6c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 30002c70: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30001fe8 : int dup2( int fildes, int fildes2 ) { 30001fe8: e92d4070 push {r4, r5, r6, lr} 30001fec: e24dd048 sub sp, sp, #72 ; 0x48 30001ff0: e1a04001 mov r4, r1 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 30001ff4: e1a0100d mov r1, sp int dup2( int fildes, int fildes2 ) { 30001ff8: e1a06000 mov r6, r0 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 30001ffc: eb000196 bl 3000265c if ( status == -1 ) 30002000: e3700001 cmn r0, #1 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); 30002004: e1a0500d mov r5, sp if ( status == -1 ) 30002008: 0a000009 beq 30002034 /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); 3000200c: e1a0100d mov r1, sp 30002010: e1a00004 mov r0, r4 30002014: eb000190 bl 3000265c if ( status == -1 ) 30002018: e3700001 cmn r0, #1 3000201c: 0a000004 beq 30002034 /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); 30002020: e1a00006 mov r0, r6 <== NOT EXECUTED 30002024: e1a02004 mov r2, r4 <== NOT EXECUTED 30002028: e3a01000 mov r1, #0 <== NOT EXECUTED 3000202c: eb000088 bl 30002254 <== NOT EXECUTED 30002030: ea000000 b 30002038 <== NOT EXECUTED 30002034: e3e00000 mvn r0, #0 } 30002038: e28dd048 add sp, sp, #72 ; 0x48 3000203c: e8bd8070 pop {r4, r5, r6, pc} 30002708 : * 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')) { 30002708: e591203c ldr r2, [r1, #60] ; 0x3c <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 3000270c: e92d4011 push {r0, r4, lr} <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 30002710: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { 30002714: e1a04001 mov r4, r1 <== NOT EXECUTED 30002718: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { 3000271c: 0a000015 beq 30002778 <== NOT EXECUTED 30002720: e59f205c ldr r2, [pc, #92] ; 30002784 <== NOT EXECUTED 30002724: e2503009 subs r3, r0, #9 <== NOT EXECUTED 30002728: 13a03001 movne r3, #1 <== NOT EXECUTED 3000272c: e5922000 ldr r2, [r2] <== NOT EXECUTED 30002730: e0822000 add r2, r2, r0 <== NOT EXECUTED 30002734: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED 30002738: e01332a2 ands r3, r3, r2, lsr #5 <== NOT EXECUTED 3000273c: 0a00000d beq 30002778 <== NOT EXECUTED 30002740: e350000a cmp r0, #10 <== NOT EXECUTED 30002744: 0a00000b beq 30002778 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; 30002748: 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] = '^'; 3000274c: e3a0c05e mov ip, #94 ; 0x5e <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 30002750: e1a0000d mov r0, sp <== NOT EXECUTED 30002754: e3a01002 mov r1, #2 <== NOT EXECUTED 30002758: 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; 3000275c: 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] = '^'; 30002760: e5cdc000 strb ip, [sp] <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); 30002764: ebffff4d bl 300024a0 <== NOT EXECUTED tty->column += 2; 30002768: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 3000276c: e2833002 add r3, r3, #2 <== NOT EXECUTED 30002770: 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')) { 30002774: ea000001 b 30002780 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); 30002778: e1a01004 mov r1, r4 <== NOT EXECUTED 3000277c: ebffff8b bl 300025b0 <== NOT EXECUTED } } 30002780: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED 30002784: 30019484 .word 0x30019484 30022294 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 30022294: e59f300c ldr r3, [pc, #12] ; 300222a8 <== NOT EXECUTED 30022298: e5930000 ldr r0, [r3] <== NOT EXECUTED 3002229c: e3500000 cmp r0, #0 <== NOT EXECUTED 300222a0: 012fff1e bxeq lr <== NOT EXECUTED fclose(group_fp); 300222a4: ea005bd8 b 3003920c <== NOT EXECUTED 300222a8: 30060888 .word 0x30060888 300222ac : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 300222ac: e59f300c ldr r3, [pc, #12] ; 300222c0 <== NOT EXECUTED 300222b0: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED 300222b4: e3500000 cmp r0, #0 <== NOT EXECUTED 300222b8: 012fff1e bxeq lr <== NOT EXECUTED fclose(passwd_fp); 300222bc: ea005bd2 b 3003920c <== NOT EXECUTED 300222c0: 30060888 .word 0x30060888 30002788 : * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) 30002788: 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) { 3000278c: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED if (tty->ccount == 0) 30002790: 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) { 30002794: e1a04000 mov r4, r0 <== NOT EXECUTED 30002798: e1a07001 mov r7, r1 <== NOT EXECUTED if (tty->ccount == 0) 3000279c: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED return; if (lineFlag) { 300027a0: e3510000 cmp r1, #0 <== NOT EXECUTED 300027a4: 0a000062 beq 30002934 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { 300027a8: e590303c ldr r3, [r0, #60] ; 0x3c <== NOT EXECUTED 300027ac: e2132008 ands r2, r3, #8 <== NOT EXECUTED tty->ccount = 0; 300027b0: 05802020 streq r2, [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)) { 300027b4: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED tty->ccount = 0; return; } if (!(tty->termios.c_lflag & ECHOE)) { 300027b8: e2133010 ands r3, r3, #16 <== NOT EXECUTED 300027bc: 1a00005c bne 30002934 <== NOT EXECUTED tty->ccount = 0; 300027c0: e5803020 str r3, [r0, #32] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); 300027c4: e1a01004 mov r1, r4 <== NOT EXECUTED 300027c8: e5d00044 ldrb r0, [r0, #68] ; 0x44 <== NOT EXECUTED 300027cc: ebffffcd bl 30002708 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) 300027d0: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED 300027d4: e3130020 tst r3, #32 <== NOT EXECUTED echo ('\n', tty); 300027d8: 11a01004 movne r1, r4 <== NOT EXECUTED 300027dc: 13a0000a movne r0, #10 <== NOT EXECUTED return; } if (!(tty->termios.c_lflag & ECHOE)) { tty->ccount = 0; echo (tty->termios.c_cc[VKILL], tty); if (tty->termios.c_lflag & ECHOK) 300027e0: 08bd81f0 popeq {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 300027e4: ea00000c b 3000281c <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { 300027e8: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 300027ec: e2411001 sub r1, r1, #1 <== NOT EXECUTED 300027f0: e594201c ldr r2, [r4, #28] <== NOT EXECUTED 300027f4: e5841020 str r1, [r4, #32] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 300027f8: e3130008 tst r3, #8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; 300027fc: e7d25001 ldrb r5, [r2, r1] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { 30002800: 0a000048 beq 30002928 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { 30002804: e3570000 cmp r7, #0 <== NOT EXECUTED 30002808: 1a000005 bne 30002824 <== NOT EXECUTED 3000280c: e3130010 tst r3, #16 <== NOT EXECUTED 30002810: 1a000003 bne 30002824 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); 30002814: e5d40043 ldrb r0, [r4, #67] ; 0x43 <== NOT EXECUTED 30002818: e1a01004 mov r1, r4 <== NOT EXECUTED } } if (!lineFlag) break; } } 3000281c: e8bd41f0 pop {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { echo (tty->termios.c_cc[VERASE], tty); 30002820: eaffffb8 b 30002708 <== NOT EXECUTED } else if (c == '\t') { 30002824: e3550009 cmp r5, #9 <== NOT EXECUTED 30002828: 1a000020 bne 300028b0 <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) 3000282c: e2033c02 and r3, r3, #512 ; 0x200 <== 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; 30002830: e594502c ldr r5, [r4, #44] ; 0x2c <== NOT EXECUTED while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { 30002834: e596c000 ldr ip, [r6] <== NOT EXECUTED 30002838: e3a02000 mov r2, #0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 3000283c: ea00000d b 30002878 <== NOT EXECUTED c = tty->cbuf[i++]; 30002840: e594001c ldr r0, [r4, #28] <== NOT EXECUTED 30002844: e7d00002 ldrb r0, [r0, r2] <== NOT EXECUTED if (c == '\t') { 30002848: e3500009 cmp r0, #9 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 3000284c: e08c8000 add r8, ip, r0 <== NOT EXECUTED * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; 30002850: 03855007 orreq r5, r5, #7 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { 30002854: 0a000005 beq 30002870 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { 30002858: e5d80001 ldrb r0, [r8, #1] <== NOT EXECUTED 3000285c: e3100020 tst r0, #32 <== NOT EXECUTED 30002860: 0a000002 beq 30002870 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) 30002864: e3530000 cmp r3, #0 <== NOT EXECUTED col += 2; 30002868: 12855002 addne r5, r5, #2 <== NOT EXECUTED 3000286c: ea000000 b 30002874 <== NOT EXECUTED } else { col++; 30002870: e2855001 add r5, r5, #1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; 30002874: e2822001 add r2, r2, #1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { 30002878: e1520001 cmp r2, r1 <== NOT EXECUTED 3000287c: 1affffef bne 30002840 <== NOT EXECUTED 30002880: ea000005 b 3000289c <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); 30002884: e3a01001 mov r1, #1 <== NOT EXECUTED 30002888: e1a02004 mov r2, r4 <== NOT EXECUTED 3000288c: ebffff03 bl 300024a0 <== NOT EXECUTED tty->column--; 30002890: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002894: e2433001 sub r3, r3, #1 <== NOT EXECUTED 30002898: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 3000289c: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); 300028a0: e59f00a0 ldr r0, [pc, #160] ; 30002948 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { 300028a4: e1530005 cmp r3, r5 <== NOT EXECUTED 300028a8: cafffff5 bgt 30002884 <== NOT EXECUTED 300028ac: ea00001d b 30002928 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { 300028b0: e5962000 ldr r2, [r6] <== NOT EXECUTED 300028b4: e2855001 add r5, r5, #1 <== NOT EXECUTED 300028b8: e7d22005 ldrb r2, [r2, r5] <== NOT EXECUTED 300028bc: e3120020 tst r2, #32 <== NOT EXECUTED 300028c0: 0a000009 beq 300028ec <== NOT EXECUTED 300028c4: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED 300028c8: 0a000007 beq 300028ec <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 300028cc: e59f0078 ldr r0, [pc, #120] ; 3000294c <== NOT EXECUTED 300028d0: e3a01003 mov r1, #3 <== NOT EXECUTED 300028d4: e1a02004 mov r2, r4 <== NOT EXECUTED 300028d8: ebfffef0 bl 300024a0 <== NOT EXECUTED if (tty->column) 300028dc: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 300028e0: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; 300028e4: 12433001 subne r3, r3, #1 <== NOT EXECUTED 300028e8: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { 300028ec: e5963000 ldr r3, [r6] <== NOT EXECUTED 300028f0: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED 300028f4: e3130020 tst r3, #32 <== NOT EXECUTED 300028f8: 0a000002 beq 30002908 <== NOT EXECUTED 300028fc: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED 30002900: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED 30002904: 0a000007 beq 30002928 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); 30002908: e59f003c ldr r0, [pc, #60] ; 3000294c <== NOT EXECUTED 3000290c: e3a01003 mov r1, #3 <== NOT EXECUTED 30002910: e1a02004 mov r2, r4 <== NOT EXECUTED 30002914: ebfffee1 bl 300024a0 <== NOT EXECUTED if (tty->column) 30002918: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 3000291c: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; 30002920: 12433001 subne r3, r3, #1 <== NOT EXECUTED 30002924: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED } } } if (!lineFlag) 30002928: e3570000 cmp r7, #0 <== NOT EXECUTED 3000292c: 1a000001 bne 30002938 <== NOT EXECUTED 30002930: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 30002934: e59f6014 ldr r6, [pc, #20] ; 30002950 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { 30002938: e5941020 ldr r1, [r4, #32] <== NOT EXECUTED 3000293c: e3510000 cmp r1, #0 <== NOT EXECUTED 30002940: 1affffa8 bne 300027e8 <== NOT EXECUTED 30002944: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 30002948: 30018d25 .word 0x30018d25 3000294c: 30018d23 .word 0x30018d23 30002950: 30019484 .word 0x30019484 300334c4 : #include int fchdir( int fd ) { 300334c4: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 300334c8: e59f315c ldr r3, [pc, #348] ; 3003362c <== NOT EXECUTED #include int fchdir( int fd ) { 300334cc: e24dd02c sub sp, sp, #44 ; 0x2c <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 300334d0: e5933000 ldr r3, [r3] <== NOT EXECUTED 300334d4: e1500003 cmp r0, r3 <== NOT EXECUTED 300334d8: 2a000005 bcs 300334f4 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 300334dc: e59f314c ldr r3, [pc, #332] ; 30033630 <== NOT EXECUTED 300334e0: e5938000 ldr r8, [r3] <== NOT EXECUTED 300334e4: e0888300 add r8, r8, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 300334e8: e5983014 ldr r3, [r8, #20] <== NOT EXECUTED 300334ec: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 300334f0: 1a000002 bne 30033500 <== NOT EXECUTED 300334f4: eb0016f7 bl 300390d8 <__errno> <== NOT EXECUTED 300334f8: e3a03009 mov r3, #9 <== NOT EXECUTED 300334fc: ea000016 b 3003355c <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 30033500: e3130002 tst r3, #2 <== NOT EXECUTED 30033504: 1a000002 bne 30033514 <== NOT EXECUTED 30033508: eb0016f2 bl 300390d8 <__errno> <== NOT EXECUTED 3003350c: e3a03016 mov r3, #22 <== NOT EXECUTED 30033510: ea000011 b 3003355c <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 30033514: e5983024 ldr r3, [r8, #36] ; 0x24 <== NOT EXECUTED 30033518: e3530000 cmp r3, #0 <== NOT EXECUTED 3003351c: 0a000002 beq 3003352c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 30033520: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 30033524: e3530000 cmp r3, #0 <== NOT EXECUTED 30033528: 1a000002 bne 30033538 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3003352c: eb0016e9 bl 300390d8 <__errno> <== NOT EXECUTED 30033530: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30033534: ea000008 b 3003355c <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 30033538: e2888018 add r8, r8, #24 <== NOT EXECUTED 3003353c: e1a00008 mov r0, r8 <== NOT EXECUTED 30033540: e1a0e00f mov lr, pc <== NOT EXECUTED 30033544: e12fff13 bx r3 <== NOT EXECUTED 30033548: e3500001 cmp r0, #1 <== NOT EXECUTED 3003354c: e1a07000 mov r7, r0 <== NOT EXECUTED 30033550: 0a000004 beq 30033568 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 30033554: eb0016df bl 300390d8 <__errno> <== NOT EXECUTED 30033558: e3a03014 mov r3, #20 <== NOT EXECUTED 3003355c: e5803000 str r3, [r0] <== NOT EXECUTED 30033560: e3e00000 mvn r0, #0 <== NOT EXECUTED 30033564: ea00002e b 30033624 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 30033568: e59f40c4 ldr r4, [pc, #196] ; 30033634 <== NOT EXECUTED 3003356c: e28de004 add lr, sp, #4 <== NOT EXECUTED 30033570: e5945000 ldr r5, [r4] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 30033574: e3a06000 mov r6, #0 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 30033578: e285c004 add ip, r5, #4 <== NOT EXECUTED 3003357c: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30033580: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30033584: e59c3000 ldr r3, [ip] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 30033588: e2855004 add r5, r5, #4 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 3003358c: e58e3000 str r3, [lr] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 30033590: e8b8000f ldm r8!, {r0, r1, r2, r3} <== NOT EXECUTED 30033594: e8a5000f stmia r5!, {r0, r1, r2, r3} <== NOT EXECUTED 30033598: e5983000 ldr r3, [r8] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 3003359c: e1a01007 mov r1, r7 <== NOT EXECUTED * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; rtems_filesystem_current = iop->pathinfo; 300335a0: e58c3000 str r3, [ip] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 300335a4: e1a02006 mov r2, r6 <== NOT EXECUTED 300335a8: e59f0088 ldr r0, [pc, #136] ; 30033638 <== NOT EXECUTED 300335ac: e28d3018 add r3, sp, #24 <== NOT EXECUTED 300335b0: e58d6000 str r6, [sp] <== NOT EXECUTED 300335b4: ebff4716 bl 30005214 <== NOT EXECUTED 300335b8: e1500006 cmp r0, r6 <== NOT EXECUTED 300335bc: 0a000007 beq 300335e0 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 300335c0: e594c000 ldr ip, [r4] <== NOT EXECUTED 300335c4: e28d4004 add r4, sp, #4 <== NOT EXECUTED 300335c8: e28cc004 add ip, ip, #4 <== NOT EXECUTED 300335cc: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED 300335d0: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 300335d4: e3e00000 mvn r0, #0 <== NOT EXECUTED 300335d8: e5943000 ldr r3, [r4] <== NOT EXECUTED 300335dc: ea00000f b 30033620 <== NOT EXECUTED return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 300335e0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 300335e4: e3530000 cmp r3, #0 <== NOT EXECUTED 300335e8: 0a000004 beq 30033600 <== NOT EXECUTED 300335ec: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300335f0: e3530000 cmp r3, #0 <== NOT EXECUTED 300335f4: 128d0004 addne r0, sp, #4 <== NOT EXECUTED 300335f8: 11a0e00f movne lr, pc <== NOT EXECUTED 300335fc: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_current = loc; 30033600: e59f302c ldr r3, [pc, #44] ; 30033634 <== NOT EXECUTED 30033604: e28d4018 add r4, sp, #24 <== NOT EXECUTED 30033608: e593c000 ldr ip, [r3] <== NOT EXECUTED 3003360c: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED 30033610: e28cc004 add ip, ip, #4 <== NOT EXECUTED 30033614: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30033618: e5943000 ldr r3, [r4] <== NOT EXECUTED 3003361c: e3a00000 mov r0, #0 <== NOT EXECUTED 30033620: e58c3000 str r3, [ip] <== NOT EXECUTED return 0; } 30033624: e28dd02c add sp, sp, #44 ; 0x2c <== NOT EXECUTED 30033628: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 3003362c: 3005ca90 .word 0x3005ca90 30033630: 30060b74 .word 0x30060b74 30033634: 3005cdc8 .word 0x3005cdc8 30033638: 30057543 .word 0x30057543 30021ee4 : mode_t mode ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021ee4: e59f307c ldr r3, [pc, #124] ; 30021f68 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { 30021ee8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021eec: e5933000 ldr r3, [r3] <== NOT EXECUTED 30021ef0: e1500003 cmp r0, r3 <== NOT EXECUTED 30021ef4: 2a000005 bcs 30021f10 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30021ef8: e59f306c ldr r3, [pc, #108] ; 30021f6c <== NOT EXECUTED 30021efc: e5933000 ldr r3, [r3] <== NOT EXECUTED 30021f00: e0833300 add r3, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 30021f04: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED 30021f08: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 30021f0c: 1a000002 bne 30021f1c <== NOT EXECUTED 30021f10: eb005c70 bl 300390d8 <__errno> <== NOT EXECUTED 30021f14: e3a03009 mov r3, #9 <== NOT EXECUTED 30021f18: ea00000a b 30021f48 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30021f1c: e3120004 tst r2, #4 <== NOT EXECUTED 30021f20: 1a000002 bne 30021f30 <== NOT EXECUTED 30021f24: eb005c6b bl 300390d8 <__errno> <== NOT EXECUTED 30021f28: e3a03016 mov r3, #22 <== NOT EXECUTED 30021f2c: ea000005 b 30021f48 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 30021f30: e593203c ldr r2, [r3, #60] ; 0x3c <== NOT EXECUTED 30021f34: e592201c ldr r2, [r2, #28] <== NOT EXECUTED 30021f38: e3520000 cmp r2, #0 <== NOT EXECUTED 30021f3c: 1a000004 bne 30021f54 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30021f40: eb005c64 bl 300390d8 <__errno> <== NOT EXECUTED 30021f44: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30021f48: e5803000 str r3, [r0] <== NOT EXECUTED 30021f4c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30021f50: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 30021f54: e2830018 add r0, r3, #24 <== NOT EXECUTED 30021f58: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED 30021f5c: e1a0e00f mov lr, pc <== NOT EXECUTED 30021f60: e593f01c ldr pc, [r3, #28] <== NOT EXECUTED } 30021f64: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30021f68: 3005ca90 .word 0x3005ca90 30021f6c: 30060b74 .word 0x30060b74 30021f70 : gid_t group ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021f70: e59f3088 ldr r3, [pc, #136] ; 30022000 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 30021f74: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021f78: e5933000 ldr r3, [r3] <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 30021f7c: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021f80: e1500003 cmp r0, r3 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 30021f84: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 30021f88: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 30021f8c: e1a02822 lsr r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021f90: 2a000005 bcs 30021fac <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30021f94: e59f3068 ldr r3, [pc, #104] ; 30022004 <== NOT EXECUTED 30021f98: e5933000 ldr r3, [r3] <== NOT EXECUTED 30021f9c: e0830300 add r0, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 30021fa0: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED 30021fa4: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30021fa8: 1a000002 bne 30021fb8 <== NOT EXECUTED 30021fac: eb005c49 bl 300390d8 <__errno> <== NOT EXECUTED 30021fb0: e3a03009 mov r3, #9 <== NOT EXECUTED 30021fb4: ea00000a b 30021fe4 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30021fb8: e3130004 tst r3, #4 <== NOT EXECUTED 30021fbc: 1a000002 bne 30021fcc <== NOT EXECUTED 30021fc0: eb005c44 bl 300390d8 <__errno> <== NOT EXECUTED 30021fc4: e3a03016 mov r3, #22 <== NOT EXECUTED 30021fc8: ea000005 b 30021fe4 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 30021fcc: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED 30021fd0: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 30021fd4: e3530000 cmp r3, #0 <== NOT EXECUTED 30021fd8: 1a000004 bne 30021ff0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30021fdc: eb005c3d bl 300390d8 <__errno> <== NOT EXECUTED 30021fe0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30021fe4: e5803000 str r3, [r0] <== NOT EXECUTED 30021fe8: e3e00000 mvn r0, #0 <== NOT EXECUTED 30021fec: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 30021ff0: e2800018 add r0, r0, #24 <== NOT EXECUTED 30021ff4: e1a0e00f mov lr, pc <== NOT EXECUTED 30021ff8: e12fff13 bx r3 <== NOT EXECUTED } 30021ffc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30022000: 3005ca90 .word 0x3005ca90 30022004: 30060b74 .word 0x30060b74 3003363c : int fcntl( int fd, int cmd, ... ) { 3003363c: e92d000e push {r1, r2, r3} 30033640: e92d40f1 push {r0, r4, r5, r6, r7, lr} int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 30033644: e59f31a4 ldr r3, [pc, #420] ; 300337f0 int fcntl( int fd, int cmd, ... ) { 30033648: e59d7018 ldr r7, [sp, #24] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 3003364c: e5932000 ldr r2, [r3] ... ) { int ret; va_list ap; va_start( ap, cmd ); 30033650: e28d301c add r3, sp, #28 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 30033654: e1500002 cmp r0, r2 ... ) { int ret; va_list ap; va_start( ap, cmd ); 30033658: e58d3000 str r3, [sp] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 3003365c: 2a000005 bcs 30033678 iop = rtems_libio_iop( fd ); 30033660: e59f118c ldr r1, [pc, #396] ; 300337f4 30033664: e591c000 ldr ip, [r1] 30033668: e08c4300 add r4, ip, r0, lsl #6 rtems_libio_check_is_open(iop); 3003366c: e5940014 ldr r0, [r4, #20] 30033670: e3100c01 tst r0, #256 ; 0x100 30033674: 1a000002 bne 30033684 30033678: eb001696 bl 300390d8 <__errno> <== NOT EXECUTED 3003367c: e3a03009 mov r3, #9 <== NOT EXECUTED 30033680: ea000045 b 3003379c <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 30033684: e3570009 cmp r7, #9 30033688: 979ff107 ldrls pc, [pc, r7, lsl #2] 3003368c: ea000040 b 30033794 30033690: 300336b8 .word 0x300336b8 <== NOT EXECUTED 30033694: 30033724 .word 0x30033724 <== NOT EXECUTED 30033698: 30033730 .word 0x30033730 <== NOT EXECUTED 3003369c: 30033750 .word 0x30033750 <== NOT EXECUTED 300336a0: 3003375c .word 0x3003375c <== NOT EXECUTED 300336a4: 30033788 .word 0x30033788 <== NOT EXECUTED 300336a8: 30033788 .word 0x30033788 <== NOT EXECUTED 300336ac: 30033788 .word 0x30033788 <== NOT EXECUTED 300336b0: 30033788 .word 0x30033788 <== NOT EXECUTED 300336b4: 30033788 .word 0x30033788 <== NOT EXECUTED case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 300336b8: e5933000 ldr r3, [r3] if ( fd2 ) 300336bc: e3530000 cmp r3, #0 300336c0: 0a000003 beq 300336d4 diop = rtems_libio_iop( fd2 ); 300336c4: e1530002 cmp r3, r2 <== NOT EXECUTED 300336c8: 23a0c000 movcs ip, #0 <== NOT EXECUTED 300336cc: 308cc303 addcc ip, ip, r3, lsl #6 <== NOT EXECUTED 300336d0: ea000002 b 300336e0 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 300336d4: ebff47e2 bl 30005664 if ( diop == 0 ) { 300336d8: e250c000 subs ip, r0, #0 300336dc: 0a00003e beq 300337dc } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 300336e0: e28c5018 add r5, ip, #24 300336e4: e2846018 add r6, r4, #24 300336e8: e8b6000f ldm r6!, {r0, r1, r2, r3} 300336ec: e8a5000f stmia r5!, {r0, r1, r2, r3} ret = (int) (diop - rtems_libio_iops); 300336f0: e59f30fc ldr r3, [pc, #252] ; 300337f4 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 300336f4: e5966000 ldr r6, [r6] ret = (int) (diop - rtems_libio_iops); 300336f8: e5933000 ldr r3, [r3] ret = -1; break; } } diop->handlers = iop->handlers; 300336fc: e594003c ldr r0, [r4, #60] ; 0x3c diop->file_info = iop->file_info; 30033700: e5941038 ldr r1, [r4, #56] ; 0x38 diop->flags = iop->flags; 30033704: e5942014 ldr r2, [r4, #20] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 30033708: e063300c rsb r3, r3, ip } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 3003370c: e5856000 str r6, [r5] ret = -1; break; } } diop->handlers = iop->handlers; 30033710: e58c003c str r0, [ip, #60] ; 0x3c diop->file_info = iop->file_info; 30033714: e58c1038 str r1, [ip, #56] ; 0x38 diop->flags = iop->flags; 30033718: e58c2014 str r2, [ip, #20] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 3003371c: e1a05343 asr r5, r3, #6 30033720: ea00001f b 300337a4 break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 30033724: e1a055a0 lsr r5, r0, #11 30033728: e2055001 and r5, r5, #1 3003372c: ea00001e b 300337ac * 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 ) ) 30033730: e5935000 ldr r5, [r3] 30033734: e3550000 cmp r5, #0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 30033738: 13800b02 orrne r0, r0, #2048 ; 0x800 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 3003373c: 03c00b02 biceq r0, r0, #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; 30033740: 15840014 strne r0, [r4, #20] else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 30033744: 05840014 streq r0, [r4, #20] * 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 ) ) 30033748: 0a000017 beq 300337ac 3003374c: ea00000b b 30033780 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 30033750: ebff475a bl 300054c0 30033754: e1a05000 mov r5, r0 30033758: ea000011 b 300337a4 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 3003375c: e5930000 ldr r0, [r3] 30033760: ebff47ec bl 30005718 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 30033764: e5943014 ldr r3, [r4, #20] 30033768: e59f2088 ldr r2, [pc, #136] ; 300337f8 3003376c: e3c33c02 bic r3, r3, #512 ; 0x200 30033770: e0002002 and r2, r0, r2 30033774: e3c33001 bic r3, r3, #1 30033778: e1823003 orr r3, r2, r3 3003377c: e5843014 str r3, [r4, #20] 30033780: e3a05000 mov r5, #0 30033784: ea000008 b 300337ac errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 30033788: eb001652 bl 300390d8 <__errno> 3003378c: e3a03086 mov r3, #134 ; 0x86 30033790: ea000001 b 3003379c ret = -1; break; default: errno = EINVAL; 30033794: eb00164f bl 300390d8 <__errno> 30033798: e3a03016 mov r3, #22 3003379c: e5803000 str r3, [r0] 300337a0: ea00000d b 300337dc /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 300337a4: e3550000 cmp r5, #0 300337a8: ba00000c blt 300337e0 if (iop->handlers->fcntl_h) { 300337ac: e594303c ldr r3, [r4, #60] ; 0x3c 300337b0: e5933030 ldr r3, [r3, #48] ; 0x30 300337b4: e3530000 cmp r3, #0 300337b8: 0a000008 beq 300337e0 int err = (*iop->handlers->fcntl_h)( cmd, iop ); 300337bc: e1a01004 mov r1, r4 300337c0: e1a00007 mov r0, r7 300337c4: e1a0e00f mov lr, pc 300337c8: e12fff13 bx r3 if (err) { 300337cc: e2504000 subs r4, r0, #0 300337d0: 0a000002 beq 300337e0 errno = err; 300337d4: eb00163f bl 300390d8 <__errno> <== NOT EXECUTED 300337d8: e5804000 str r4, [r0] <== NOT EXECUTED 300337dc: e3e05000 mvn r5, #0 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 300337e0: e1a00005 mov r0, r5 300337e4: e8bd40f8 pop {r3, r4, r5, r6, r7, lr} 300337e8: e28dd00c add sp, sp, #12 300337ec: e12fff1e bx lr 300337f0: 3005ca90 .word 0x3005ca90 300337f4: 30060b74 .word 0x30060b74 300337f8: 00000201 .word 0x00000201 3000ae34 : ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 3000ae34: e59f3368 ldr r3, [pc, #872] ; 3000b1a4 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000ae38: e92d45f7 push {r0, r1, r2, r4, r5, r6, r7, r8, sl, lr} 3000ae3c: e1a08001 mov r8, r1 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 3000ae40: e3a01000 mov r1, #0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000ae44: e1a07000 mov r7, r0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 3000ae48: e1a02001 mov r2, r1 3000ae4c: e5930000 ldr r0, [r3] 3000ae50: ebffe529 bl 300042fc 3000ae54: e250a000 subs sl, r0, #0 3000ae58: 13e06003 mvnne r6, #3 3000ae5c: 1a0000ce bne 3000b19c RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 3000ae60: e5974000 ldr r4, [r7] <== NOT EXECUTED if (pipe == NULL) { 3000ae64: e3540000 cmp r4, #0 <== NOT EXECUTED 3000ae68: 1a00004f bne 3000afac <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 3000ae6c: e3a00034 mov r0, #52 ; 0x34 <== NOT EXECUTED 3000ae70: ebfff7b0 bl 30008d38 <== NOT EXECUTED if (pipe == NULL) 3000ae74: e3500000 cmp r0, #0 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 3000ae78: e1a05000 mov r5, r0 <== NOT EXECUTED 3000ae7c: e1a04000 mov r4, r0 <== NOT EXECUTED if (pipe == NULL) 3000ae80: 03e0600b mvneq r6, #11 <== NOT EXECUTED 3000ae84: 0a000056 beq 3000afe4 <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 3000ae88: e1a0100a mov r1, sl <== NOT EXECUTED 3000ae8c: e3a02034 mov r2, #52 ; 0x34 <== NOT EXECUTED 3000ae90: eb000928 bl 3000d338 <== NOT EXECUTED pipe->Size = PIPE_BUF; 3000ae94: e3a03c02 mov r3, #512 ; 0x200 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 3000ae98: e1a00003 mov r0, r3 <== NOT EXECUTED pipe = malloc(sizeof(pipe_control_t)); if (pipe == NULL) return err; memset(pipe, 0, sizeof(pipe_control_t)); pipe->Size = PIPE_BUF; 3000ae9c: e5853004 str r3, [r5, #4] <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 3000aea0: ebfff7a4 bl 30008d38 <== NOT EXECUTED if (! pipe->Buffer) 3000aea4: 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); 3000aea8: e5850000 str r0, [r5] <== NOT EXECUTED if (! pipe->Buffer) 3000aeac: 03e0600b mvneq r6, #11 <== NOT EXECUTED 3000aeb0: 0a00003a beq 3000afa0 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 3000aeb4: e59f62ec ldr r6, [pc, #748] ; 3000b1a8 <== NOT EXECUTED 3000aeb8: e59f02ec ldr r0, [pc, #748] ; 3000b1ac <== NOT EXECUTED 3000aebc: e5d63000 ldrb r3, [r6] <== NOT EXECUTED 3000aec0: e1a0100a mov r1, sl <== NOT EXECUTED 3000aec4: e1830000 orr r0, r3, r0 <== NOT EXECUTED 3000aec8: e1a0200a mov r2, sl <== NOT EXECUTED 3000aecc: e285302c add r3, r5, #44 ; 0x2c <== NOT EXECUTED 3000aed0: eb000287 bl 3000b8f4 <== NOT EXECUTED 3000aed4: e2501000 subs r1, r0, #0 <== NOT EXECUTED 3000aed8: 1a00002d bne 3000af94 <== 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( 3000aedc: e5d63000 ldrb r3, [r6] <== NOT EXECUTED 3000aee0: e59f02c8 ldr r0, [pc, #712] ; 3000b1b0 <== NOT EXECUTED 3000aee4: e1a02001 mov r2, r1 <== NOT EXECUTED 3000aee8: e1830000 orr r0, r3, r0 <== NOT EXECUTED 3000aeec: e2853030 add r3, r5, #48 ; 0x30 <== NOT EXECUTED 3000aef0: eb00027f bl 3000b8f4 <== NOT EXECUTED 3000aef4: e2503000 subs r3, r0, #0 <== NOT EXECUTED 3000aef8: 1a000023 bne 3000af8c <== 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( 3000aefc: e5d62000 ldrb r2, [r6] <== NOT EXECUTED 3000af00: e59f02ac ldr r0, [pc, #684] ; 3000b1b4 <== NOT EXECUTED 3000af04: e285c028 add ip, r5, #40 ; 0x28 <== NOT EXECUTED 3000af08: e1820000 orr r0, r2, r0 <== NOT EXECUTED 3000af0c: e3a01001 mov r1, #1 <== NOT EXECUTED 3000af10: e3a02010 mov r2, #16 <== NOT EXECUTED 3000af14: e58dc000 str ip, [sp] <== NOT EXECUTED 3000af18: ebffe465 bl 300040b4 <== NOT EXECUTED 3000af1c: e3500000 cmp r0, #0 <== NOT EXECUTED 3000af20: 1a000017 bne 3000af84 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) 3000af24: e28d5004 add r5, sp, #4 <== NOT EXECUTED 3000af28: e594102c ldr r1, [r4, #44] ; 0x2c <== NOT EXECUTED 3000af2c: e1a02005 mov r2, r5 <== NOT EXECUTED 3000af30: e59f0280 ldr r0, [pc, #640] ; 3000b1b8 <== NOT EXECUTED 3000af34: ebffea77 bl 30005918 <_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 3000af38: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED 3000af3c: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED 3000af40: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 3000af44: ebffec8e bl 30006184 <_Thread_Enable_dispatch> <== NOT EXECUTED 3000af48: e1a02005 mov r2, r5 <== NOT EXECUTED 3000af4c: e5941030 ldr r1, [r4, #48] ; 0x30 <== NOT EXECUTED 3000af50: e59f0260 ldr r0, [pc, #608] ; 3000b1b8 <== NOT EXECUTED 3000af54: ebffea6f bl 30005918 <_Objects_Get> <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state 3000af58: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED 3000af5c: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED 3000af60: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); 3000af64: ebffec86 bl 30006184 <_Thread_Enable_dispatch> <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 3000af68: e5d63000 ldrb r3, [r6] <== NOT EXECUTED 3000af6c: e353007a cmp r3, #122 ; 0x7a <== NOT EXECUTED 3000af70: e2833001 add r3, r3, #1 <== NOT EXECUTED 3000af74: e5c63000 strb r3, [r6] <== NOT EXECUTED c = 'a'; 3000af78: 03a03061 moveq r3, #97 ; 0x61 <== NOT EXECUTED 3000af7c: 05c63000 strbeq r3, [r6] <== NOT EXECUTED 3000af80: ea000009 b 3000afac <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 3000af84: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED 3000af88: eb000287 bl 3000b9ac <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 3000af8c: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED 3000af90: eb000285 bl 3000b9ac <== NOT EXECUTED err_rbar: free(pipe->Buffer); 3000af94: e5950000 ldr r0, [r5] <== NOT EXECUTED 3000af98: ebfff61c bl 30008810 <== NOT EXECUTED 3000af9c: e3e06003 mvn r6, #3 <== NOT EXECUTED err_buf: free(pipe); 3000afa0: e1a00005 mov r0, r5 <== NOT EXECUTED 3000afa4: ebfff619 bl 30008810 <== NOT EXECUTED 3000afa8: ea00000d b 3000afe4 <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 3000afac: e3a01000 mov r1, #0 <== NOT EXECUTED 3000afb0: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000afb4: e1a02001 mov r2, r1 <== NOT EXECUTED 3000afb8: ebffe4cf bl 300042fc <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 3000afbc: e5973000 ldr r3, [r7] <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 3000afc0: e3500000 cmp r0, #0 <== NOT EXECUTED 3000afc4: 01a06000 moveq r6, r0 <== NOT EXECUTED 3000afc8: 13e06003 mvnne r6, #3 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 3000afcc: e3530000 cmp r3, #0 <== NOT EXECUTED 3000afd0: 1a000003 bne 3000afe4 <== NOT EXECUTED if (err) 3000afd4: e3560000 cmp r6, #0 <== NOT EXECUTED pipe_free(pipe); else *pipep = pipe; 3000afd8: 05874000 streq r4, [r7] <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) pipe_free(pipe); 3000afdc: 11a00004 movne r0, r4 <== NOT EXECUTED 3000afe0: 1bffff47 blne 3000ad04 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 3000afe4: e59f31b8 ldr r3, [pc, #440] ; 3000b1a4 <== NOT EXECUTED 3000afe8: e5930000 ldr r0, [r3] <== NOT EXECUTED 3000afec: ebffe508 bl 30004414 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 3000aff0: e3560000 cmp r6, #0 <== NOT EXECUTED 3000aff4: 1a000068 bne 3000b19c <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 3000aff8: e5982014 ldr r2, [r8, #20] <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; 3000affc: e5974000 ldr r4, [r7] <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { 3000b000: e2023006 and r3, r2, #6 <== NOT EXECUTED 3000b004: e3530004 cmp r3, #4 <== NOT EXECUTED 3000b008: 0a000024 beq 3000b0a0 <== NOT EXECUTED 3000b00c: e3530006 cmp r3, #6 <== NOT EXECUTED 3000b010: 0a000046 beq 3000b130 <== NOT EXECUTED 3000b014: e3530002 cmp r3, #2 <== NOT EXECUTED 3000b018: 1a000058 bne 3000b180 <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 3000b01c: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 3000b020: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000b024: e3530000 cmp r3, #0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 3000b028: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000b02c: e2833001 add r3, r3, #1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 3000b030: e5842020 str r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000b034: e5843010 str r3, [r4, #16] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 3000b038: 05940030 ldreq r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000b03c: 028d1008 addeq r1, sp, #8 <== NOT EXECUTED 3000b040: 0b000271 bleq 3000ba0c <== NOT EXECUTED if (pipe->Writers == 0) { 3000b044: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 3000b048: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b04c: 1a00004b bne 3000b180 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 3000b050: e5983014 ldr r3, [r8, #20] <== NOT EXECUTED 3000b054: e3130001 tst r3, #1 <== NOT EXECUTED 3000b058: 1a000048 bne 3000b180 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 3000b05c: e5945024 ldr r5, [r4, #36] ; 0x24 <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 3000b060: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000b064: ebffe4ea bl 30004414 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 3000b068: e3a01000 mov r1, #0 <== NOT EXECUTED 3000b06c: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000b070: eb00027b bl 3000ba64 <== NOT EXECUTED 3000b074: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 3000b078: 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)) 3000b07c: 1a000042 bne 3000b18c <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 3000b080: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000b084: ebffe49c bl 300042fc <== NOT EXECUTED 3000b088: e3500000 cmp r0, #0 <== NOT EXECUTED 3000b08c: 1a00003e bne 3000b18c <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 3000b090: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED 3000b094: e1550003 cmp r5, r3 <== NOT EXECUTED 3000b098: 0afffff0 beq 3000b060 <== NOT EXECUTED 3000b09c: ea000037 b 3000b180 <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 3000b0a0: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3000b0a4: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b0a8: 1a000002 bne 3000b0b8 <== NOT EXECUTED 3000b0ac: e3120001 tst r2, #1 <== NOT EXECUTED 3000b0b0: 13e06005 mvnne r6, #5 <== NOT EXECUTED 3000b0b4: 1a000035 bne 3000b190 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) 3000b0b8: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 3000b0bc: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000b0c0: e3530000 cmp r3, #0 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 3000b0c4: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000b0c8: e2833001 add r3, r3, #1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 3000b0cc: e5842024 str r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000b0d0: e5843014 str r3, [r4, #20] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 3000b0d4: 0594002c ldreq r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000b0d8: 028d1008 addeq r1, sp, #8 <== NOT EXECUTED 3000b0dc: 0b00024a bleq 3000ba0c <== NOT EXECUTED if (pipe->Readers == 0) { 3000b0e0: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3000b0e4: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b0e8: 1a000024 bne 3000b180 <== NOT EXECUTED prevCounter = pipe->readerCounter; 3000b0ec: e5945020 ldr r5, [r4, #32] <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); 3000b0f0: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000b0f4: ebffe4c6 bl 30004414 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 3000b0f8: e3a01000 mov r1, #0 <== NOT EXECUTED 3000b0fc: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000b100: eb000257 bl 3000ba64 <== NOT EXECUTED 3000b104: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 3000b108: e1a02001 mov r2, r1 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 3000b10c: 1a00001e bne 3000b18c <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 3000b110: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000b114: ebffe478 bl 300042fc <== NOT EXECUTED 3000b118: e3500000 cmp r0, #0 <== NOT EXECUTED 3000b11c: 1a00001a bne 3000b18c <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 3000b120: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 3000b124: e1550003 cmp r5, r3 <== NOT EXECUTED 3000b128: 0afffff0 beq 3000b0f0 <== NOT EXECUTED 3000b12c: ea000013 b 3000b180 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 3000b130: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 3000b134: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000b138: e3530000 cmp r3, #0 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 3000b13c: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000b140: e2833001 add r3, r3, #1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 3000b144: e5842020 str r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000b148: e5843010 str r3, [r4, #16] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 3000b14c: 05940030 ldreq r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000b150: 028d1008 addeq r1, sp, #8 <== NOT EXECUTED 3000b154: 0b00022c bleq 3000ba0c <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 3000b158: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 3000b15c: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000b160: e3530000 cmp r3, #0 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 3000b164: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000b168: e2833001 add r3, r3, #1 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 3000b16c: e5842024 str r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000b170: e5843014 str r3, [r4, #20] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 3000b174: 0594002c ldreq r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000b178: 028d1008 addeq r1, sp, #8 <== NOT EXECUTED 3000b17c: 0b000222 bleq 3000ba0c <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 3000b180: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000b184: ebffe4a2 bl 30004414 <== NOT EXECUTED return 0; 3000b188: ea000003 b 3000b19c <== NOT EXECUTED 3000b18c: e3e06003 mvn r6, #3 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 3000b190: e1a00007 mov r0, r7 <== NOT EXECUTED 3000b194: e1a01008 mov r1, r8 <== NOT EXECUTED 3000b198: ebfffee6 bl 3000ad38 <== NOT EXECUTED return err; } 3000b19c: e1a00006 mov r0, r6 3000b1a0: e8bd85fe pop {r1, r2, r3, r4, r5, r6, r7, r8, sl, pc} 3000b1a4: 30019b00 .word 0x30019b00 3000b1a8: 30019470 .word 0x30019470 3000b1ac: 50497200 .word 0x50497200 3000b1b0: 50497700 .word 0x50497700 3000b1b4: 50497300 .word 0x50497300 3000b1b8: 3001a5e4 .word 0x3001a5e4 30008708 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 30008708: e59f3030 ldr r3, [pc, #48] ; 30008740 <== NOT EXECUTED 3000870c: e4932004 ldr r2, [r3], #4 <== NOT EXECUTED 30008710: ea000006 b 30008730 <== 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 ) { 30008714: e592c018 ldr ip, [r2, #24] <== NOT EXECUTED 30008718: e5910010 ldr r0, [r1, #16] <== NOT EXECUTED 3000871c: e15c0000 cmp ip, r0 <== NOT EXECUTED 30008720: 1a000001 bne 3000872c <== NOT EXECUTED 30008724: e3a00001 mov r0, #1 <== NOT EXECUTED 30008728: e12fff1e bx lr <== 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 ) { 3000872c: e5922000 ldr r2, [r2] <== NOT EXECUTED 30008730: e1520003 cmp r2, r3 <== NOT EXECUTED 30008734: 1afffff6 bne 30008714 <== NOT EXECUTED 30008738: e3a00000 mov r0, #0 <== NOT EXECUTED return true; } } return false; } 3000873c: e12fff1e bx lr <== NOT EXECUTED 30008740: 30060bb8 .word 0x30060bb8 300024a8 : { long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); 300024a8: e59f3100 ldr r3, [pc, #256] ; 300025b0 long fpathconf( int fd, int name ) { 300024ac: 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); 300024b0: e5933000 ldr r3, [r3] 300024b4: e1500003 cmp r0, r3 300024b8: 2a000005 bcs 300024d4 iop = rtems_libio_iop(fd); 300024bc: e59f30f0 ldr r3, [pc, #240] ; 300025b4 300024c0: e5933000 ldr r3, [r3] 300024c4: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); 300024c8: e5903014 ldr r3, [r0, #20] 300024cc: e3130c01 tst r3, #256 ; 0x100 300024d0: 1a000002 bne 300024e0 300024d4: eb0032d2 bl 3000f024 <__errno> 300024d8: e3a03009 mov r3, #9 300024dc: ea000003 b 300024f0 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); 300024e0: e3130002 tst r3, #2 300024e4: 1a000004 bne 300024fc 300024e8: eb0032cd bl 3000f024 <__errno> <== NOT EXECUTED 300024ec: e3a03016 mov r3, #22 <== NOT EXECUTED 300024f0: e5803000 str r3, [r0] 300024f4: e3e00000 mvn r0, #0 300024f8: e49df004 pop {pc} ; (ldr pc, [sp], #4) /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; 300024fc: e5903028 ldr r3, [r0, #40] ; 0x28 switch ( name ) { 30002500: e351000b cmp r1, #11 30002504: 979ff101 ldrls pc, [pc, r1, lsl #2] 30002508: ea000023 b 3000259c 3000250c: 3000253c .word 0x3000253c <== NOT EXECUTED 30002510: 30002544 .word 0x30002544 <== NOT EXECUTED 30002514: 3000254c .word 0x3000254c <== NOT EXECUTED 30002518: 30002554 .word 0x30002554 <== NOT EXECUTED 3000251c: 3000255c .word 0x3000255c <== NOT EXECUTED 30002520: 30002564 .word 0x30002564 <== NOT EXECUTED 30002524: 3000256c .word 0x3000256c <== NOT EXECUTED 30002528: 30002574 .word 0x30002574 <== NOT EXECUTED 3000252c: 3000257c .word 0x3000257c <== NOT EXECUTED 30002530: 30002584 .word 0x30002584 <== NOT EXECUTED 30002534: 3000258c .word 0x3000258c <== NOT EXECUTED 30002538: 30002594 .word 0x30002594 <== NOT EXECUTED case _PC_LINK_MAX: return_value = the_limits->link_max; 3000253c: e5930038 ldr r0, [r3, #56] ; 0x38 break; 30002540: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_MAX_CANON: return_value = the_limits->max_canon; 30002544: e593003c ldr r0, [r3, #60] ; 0x3c break; 30002548: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_MAX_INPUT: return_value = the_limits->max_input; 3000254c: e5930040 ldr r0, [r3, #64] ; 0x40 break; 30002550: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_NAME_MAX: return_value = the_limits->name_max; 30002554: e5930044 ldr r0, [r3, #68] ; 0x44 break; 30002558: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PATH_MAX: return_value = the_limits->path_max; 3000255c: e5930048 ldr r0, [r3, #72] ; 0x48 break; 30002560: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; 30002564: e593004c ldr r0, [r3, #76] ; 0x4c break; 30002568: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; 3000256c: e5930054 ldr r0, [r3, #84] ; 0x54 break; 30002570: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; 30002574: e5930058 ldr r0, [r3, #88] ; 0x58 break; 30002578: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_VDISABLE: return_value = the_limits->posix_vdisable; 3000257c: e5930064 ldr r0, [r3, #100] ; 0x64 break; 30002580: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; 30002584: e5930050 ldr r0, [r3, #80] ; 0x50 break; 30002588: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; 3000258c: e593005c ldr r0, [r3, #92] ; 0x5c break; 30002590: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; 30002594: e5930060 ldr r0, [r3, #96] ; 0x60 break; 30002598: e49df004 pop {pc} ; (ldr pc, [sp], #4) default: rtems_set_errno_and_return_minus_one( EINVAL ); 3000259c: eb0032a0 bl 3000f024 <__errno> 300025a0: e3a03016 mov r3, #22 300025a4: e5803000 str r3, [r0] 300025a8: e3e00000 mvn r0, #0 break; } return return_value; } 300025ac: e49df004 pop {pc} ; (ldr pc, [sp], #4) 300025b0: 3001cf34 .word 0x3001cf34 300025b4: 3001d8dc .word 0x3001d8dc 30008810 : void free( void *ptr ) { MSBUMP(free_calls, 1); 30008810: e59f3088 ldr r3, [pc, #136] ; 300088a0 30008814: e92d4030 push {r4, r5, lr} 30008818: e593200c ldr r2, [r3, #12] if ( !ptr ) 3000881c: e2504000 subs r4, r0, #0 void free( void *ptr ) { MSBUMP(free_calls, 1); 30008820: e2822001 add r2, r2, #1 30008824: e583200c str r2, [r3, #12] if ( !ptr ) 30008828: 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()) && 3000882c: e59f3070 ldr r3, [pc, #112] ; 300088a4 30008830: e5933000 ldr r3, [r3] 30008834: e3530003 cmp r3, #3 30008838: 1a000005 bne 30008854 3000883c: eb00011d bl 30008cb8 30008840: e3500000 cmp r0, #0 30008844: 1a000002 bne 30008854 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 30008848: e1a00004 mov r0, r4 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 3000884c: 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); 30008850: ea00012b b 30008d04 <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 30008854: e59f304c ldr r3, [pc, #76] ; 300088a8 30008858: e5933000 ldr r3, [r3] 3000885c: e3530000 cmp r3, #0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 30008860: 11a00004 movne r0, r4 30008864: 11a0e00f movne lr, pc 30008868: 1593f008 ldrne pc, [r3, #8] if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 3000886c: e59f5038 ldr r5, [pc, #56] ; 300088ac 30008870: e1a01004 mov r1, r4 30008874: e5950000 ldr r0, [r5] 30008878: eb00068c bl 3000a2b0 <_Protected_heap_Free> 3000887c: e3500000 cmp r0, #0 30008880: 18bd8030 popne {r4, r5, pc} printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, 30008884: 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", 30008888: e59f0020 ldr r0, [pc, #32] ; 300088b0 <== NOT EXECUTED 3000888c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30008890: e5922018 ldr r2, [r2, #24] <== NOT EXECUTED 30008894: e1a01004 mov r1, r4 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 30008898: 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", 3000889c: eaffe596 b 30001efc <== NOT EXECUTED 300088a0: 30019b90 .word 0x30019b90 300088a4: 30019e90 .word 0x30019e90 300088a8: 300199a4 .word 0x300199a4 300088ac: 300191f0 .word 0x300191f0 300088b0: 30018ee0 .word 0x30018ee0 3002326c : static void free_user_env(void *venv) { rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 3002326c: e59f3058 ldr r3, [pc, #88] ; 300232cc <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 30023270: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 30023274: e1500003 cmp r0, r3 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 30023278: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 3002327c: 08bd8010 popeq {r4, pc} <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 30023280: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED 30023284: e3530000 cmp r3, #0 <== NOT EXECUTED 30023288: 0a000004 beq 300232a0 <== NOT EXECUTED 3002328c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30023290: e3530000 cmp r3, #0 <== NOT EXECUTED 30023294: 12800004 addne r0, r0, #4 <== NOT EXECUTED 30023298: 11a0e00f movne lr, pc <== NOT EXECUTED 3002329c: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 300232a0: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED 300232a4: e3530000 cmp r3, #0 <== NOT EXECUTED 300232a8: 0a000004 beq 300232c0 <== NOT EXECUTED 300232ac: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300232b0: e3530000 cmp r3, #0 <== NOT EXECUTED 300232b4: 12840018 addne r0, r4, #24 <== NOT EXECUTED 300232b8: 11a0e00f movne lr, pc <== NOT EXECUTED 300232bc: 112fff13 bxne r3 <== NOT EXECUTED free(env); 300232c0: e1a00004 mov r0, r4 <== NOT EXECUTED } } 300232c4: e8bd4010 pop {r4, lr} <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 300232c8: eaff87ff b 300052cc <== NOT EXECUTED 300232cc: 30060bd0 .word 0x30060bd0 300177d4 : int fstat( int fd, struct stat *sbuf ) { 300177d4: e92d4030 push {r4, r5, lr} /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 300177d8: e2515000 subs r5, r1, #0 300177dc: 1a000002 bne 300177ec rtems_set_errno_and_return_minus_one( EFAULT ); 300177e0: ebffd48a bl 3000ca10 <__errno> 300177e4: e3a0300e mov r3, #14 300177e8: ea000014 b 30017840 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 300177ec: e59f3080 ldr r3, [pc, #128] ; 30017874 300177f0: e5933000 ldr r3, [r3] 300177f4: e1500003 cmp r0, r3 300177f8: 2a000008 bcs 30017820 300177fc: e59f3074 ldr r3, [pc, #116] ; 30017878 30017800: e5934000 ldr r4, [r3] 30017804: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 30017808: e5943014 ldr r3, [r4, #20] 3001780c: e3130c01 tst r3, #256 ; 0x100 30017810: 0a000002 beq 30017820 if ( !iop->handlers ) 30017814: e594303c ldr r3, [r4, #60] ; 0x3c 30017818: e3530000 cmp r3, #0 3001781c: 1a000002 bne 3001782c rtems_set_errno_and_return_minus_one( EBADF ); 30017820: ebffd47a bl 3000ca10 <__errno> 30017824: e3a03009 mov r3, #9 30017828: ea000004 b 30017840 if ( !iop->handlers->fstat_h ) 3001782c: e5933018 ldr r3, [r3, #24] 30017830: e3530000 cmp r3, #0 30017834: 1a000004 bne 3001784c rtems_set_errno_and_return_minus_one( ENOTSUP ); 30017838: ebffd474 bl 3000ca10 <__errno> <== NOT EXECUTED 3001783c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30017840: e5803000 str r3, [r0] 30017844: e3e00000 mvn r0, #0 30017848: e8bd8030 pop {r4, r5, pc} /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( sbuf, 0, sizeof(struct stat) ); 3001784c: e3a01000 mov r1, #0 30017850: e3a02048 mov r2, #72 ; 0x48 30017854: e1a00005 mov r0, r5 30017858: ebffd6b6 bl 3000d338 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 3001785c: e2840018 add r0, r4, #24 30017860: e1a01005 mov r1, r5 30017864: e594303c ldr r3, [r4, #60] ; 0x3c 30017868: e1a0e00f mov lr, pc 3001786c: e593f018 ldr pc, [r3, #24] } 30017870: e8bd8030 pop {r4, r5, pc} 30017874: 300191e4 .word 0x300191e4 30017878: 30019b84 .word 0x30019b84 300220bc : int fd ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300220bc: e59f307c ldr r3, [pc, #124] ; 30022140 #include int fsync( int fd ) { 300220c0: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300220c4: e5933000 ldr r3, [r3] 300220c8: e1500003 cmp r0, r3 300220cc: 2a00000d bcs 30022108 iop = rtems_libio_iop( fd ); 300220d0: e59f306c ldr r3, [pc, #108] ; 30022144 300220d4: e5933000 ldr r3, [r3] 300220d8: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); 300220dc: e5903014 ldr r3, [r0, #20] 300220e0: e3130c01 tst r3, #256 ; 0x100 300220e4: 0a000007 beq 30022108 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 300220e8: e3130004 tst r3, #4 300220ec: 1a000002 bne 300220fc 300220f0: eb005bf8 bl 300390d8 <__errno> 300220f4: e3a03016 mov r3, #22 300220f8: ea00000a b 30022128 /* * Now process the fsync(). */ if ( !iop->handlers ) 300220fc: e590303c ldr r3, [r0, #60] ; 0x3c 30022100: e3530000 cmp r3, #0 30022104: 1a000002 bne 30022114 rtems_set_errno_and_return_minus_one( EBADF ); 30022108: eb005bf2 bl 300390d8 <__errno> <== NOT EXECUTED 3002210c: e3a03009 mov r3, #9 <== NOT EXECUTED 30022110: ea000004 b 30022128 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 30022114: e5933028 ldr r3, [r3, #40] ; 0x28 30022118: e3530000 cmp r3, #0 3002211c: 1a000004 bne 30022134 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30022120: eb005bec bl 300390d8 <__errno> 30022124: e3a03086 mov r3, #134 ; 0x86 30022128: e5803000 str r3, [r0] 3002212c: e3e00000 mvn r0, #0 30022130: e49df004 pop {pc} ; (ldr pc, [sp], #4) return (*iop->handlers->fsync_h)( iop ); 30022134: e1a0e00f mov lr, pc 30022138: e12fff13 bx r3 } 3002213c: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30022140: 3005ca90 .word 0x3005ca90 30022144: 30060b74 .word 0x30060b74 300088b4 : int ftruncate( int fd, off_t length ) { 300088b4: e92d4070 push {r4, r5, r6, lr} rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 300088b8: e59f30d4 ldr r3, [pc, #212] ; 30008994 int ftruncate( int fd, off_t length ) { 300088bc: e24dd014 sub sp, sp, #20 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 300088c0: e5933000 ldr r3, [r3] int ftruncate( int fd, off_t length ) { 300088c4: e1a05001 mov r5, r1 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 300088c8: e1500003 cmp r0, r3 int ftruncate( int fd, off_t length ) { 300088cc: e1a06002 mov r6, r2 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 300088d0: 2a000005 bcs 300088ec iop = rtems_libio_iop( fd ); 300088d4: e59f30bc ldr r3, [pc, #188] ; 30008998 300088d8: e5934000 ldr r4, [r3] 300088dc: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); 300088e0: e5943014 ldr r3, [r4, #20] 300088e4: e3130c01 tst r3, #256 ; 0x100 300088e8: 1a000002 bne 300088f8 300088ec: eb001047 bl 3000ca10 <__errno> <== NOT EXECUTED 300088f0: e3a03009 mov r3, #9 <== NOT EXECUTED 300088f4: ea00001c b 3000896c <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 300088f8: e1a0c00d mov ip, sp 300088fc: e284e018 add lr, r4, #24 30008900: e8be000f ldm lr!, {r0, r1, r2, r3} 30008904: e8ac000f stmia ip!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) 30008908: e5933010 ldr r3, [r3, #16] /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 3000890c: e59e2000 ldr r2, [lr] if ( !loc.ops->node_type_h ) 30008910: e3530000 cmp r3, #0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 30008914: e58c2000 str r2, [ip] if ( !loc.ops->node_type_h ) 30008918: 0a000011 beq 30008964 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 3000891c: e1a0000d mov r0, sp 30008920: e1a0e00f mov lr, pc 30008924: e12fff13 bx r3 30008928: e3500001 cmp r0, #1 3000892c: 1a000002 bne 3000893c rtems_set_errno_and_return_minus_one( EISDIR ); 30008930: eb001036 bl 3000ca10 <__errno> 30008934: e3a03015 mov r3, #21 30008938: ea00000b b 3000896c rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 3000893c: e5943014 ldr r3, [r4, #20] 30008940: e3130004 tst r3, #4 30008944: 1a000002 bne 30008954 30008948: eb001030 bl 3000ca10 <__errno> <== NOT EXECUTED 3000894c: e3a03016 mov r3, #22 <== NOT EXECUTED 30008950: ea000005 b 3000896c <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 30008954: e594303c ldr r3, [r4, #60] ; 0x3c 30008958: e5933020 ldr r3, [r3, #32] 3000895c: e3530000 cmp r3, #0 30008960: 1a000004 bne 30008978 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30008964: eb001029 bl 3000ca10 <__errno> <== NOT EXECUTED 30008968: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000896c: e5803000 str r3, [r0] 30008970: e3e00000 mvn r0, #0 30008974: ea000004 b 3000898c return (*iop->handlers->ftruncate_h)( iop, length ); 30008978: e1a00004 mov r0, r4 3000897c: e1a01005 mov r1, r5 30008980: e1a02006 mov r2, r6 30008984: e1a0e00f mov lr, pc 30008988: e12fff13 bx r3 } 3000898c: e28dd014 add sp, sp, #20 30008990: e8bd8070 pop {r4, r5, r6, pc} 30008994: 300191e4 .word 0x300191e4 30008998: 30019b84 .word 0x30019b84 30052a48 : /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 30052a48: e59f30a8 ldr r3, [pc, #168] ; 30052af8 int getdents( int dd_fd, char *dd_buf, int dd_len ) { 30052a4c: e92d4070 push {r4, r5, r6, lr} /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 30052a50: e5933000 ldr r3, [r3] int getdents( int dd_fd, char *dd_buf, int dd_len ) { 30052a54: e24dd014 sub sp, sp, #20 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 30052a58: e1500003 cmp r0, r3 30052a5c: 359f3098 ldrcc r3, [pc, #152] ; 30052afc 30052a60: 23a04000 movcs r4, #0 30052a64: 35934000 ldrcc r4, [r3] /* * Make sure we are working on a directory */ loc = iop->pathinfo; 30052a68: e1a0c00d mov ip, sp /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 30052a6c: 30844300 addcc r4, r4, r0, lsl #6 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 30052a70: e284e018 add lr, r4, #24 int getdents( int dd_fd, char *dd_buf, int dd_len ) { 30052a74: e1a06001 mov r6, r1 30052a78: e1a05002 mov r5, r2 iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 30052a7c: e8be000f ldm lr!, {r0, r1, r2, r3} 30052a80: e8ac000f stmia ip!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) 30052a84: e5933010 ldr r3, [r3, #16] iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 30052a88: e59e2000 ldr r2, [lr] if ( !loc.ops->node_type_h ) 30052a8c: e3530000 cmp r3, #0 iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 30052a90: e58c2000 str r2, [ip] if ( !loc.ops->node_type_h ) 30052a94: 0a00000d beq 30052ad0 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 30052a98: e1a0000d mov r0, sp 30052a9c: e1a0e00f mov lr, pc 30052aa0: e12fff13 bx r3 30052aa4: e3500001 cmp r0, #1 30052aa8: 0a000004 beq 30052ac0 rtems_set_errno_and_return_minus_one( ENOTDIR ); 30052aac: ebff9989 bl 300390d8 <__errno> 30052ab0: e3a03014 mov r3, #20 30052ab4: e5803000 str r3, [r0] 30052ab8: e3e00000 mvn r0, #0 30052abc: ea00000b b 30052af0 /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 30052ac0: e594303c ldr r3, [r4, #60] ; 0x3c 30052ac4: e5933008 ldr r3, [r3, #8] 30052ac8: e3530000 cmp r3, #0 30052acc: 1a000002 bne 30052adc rtems_set_errno_and_return_minus_one( ENOTSUP ); 30052ad0: ebff9980 bl 300390d8 <__errno> <== NOT EXECUTED 30052ad4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30052ad8: eafffff5 b 30052ab4 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 30052adc: e1a00004 mov r0, r4 30052ae0: e1a01006 mov r1, r6 30052ae4: e1a02005 mov r2, r5 30052ae8: e1a0e00f mov lr, pc 30052aec: e12fff13 bx r3 } 30052af0: e28dd014 add sp, sp, #20 30052af4: e8bd8070 pop {r4, r5, r6, pc} 30052af8: 3005ca90 .word 0x3005ca90 30052afc: 30060b74 .word 0x30060b74 30022258 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 30022258: e59f3008 ldr r3, [pc, #8] ; 30022268 <== NOT EXECUTED 3002225c: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Gid; } 30022260: e1d303b4 ldrh r0, [r3, #52] ; 0x34 <== NOT EXECUTED 30022264: e12fff1e bx lr <== NOT EXECUTED 30022268: 3005cdc8 .word 0x3005cdc8 30022870 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 30022870: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 30022874: e59da01c ldr sl, [sp, #28] 30022878: e1a06000 mov r6, r0 3002287c: e1a07001 mov r7, r1 30022880: e1a04002 mov r4, r2 30022884: e1a08003 mov r8, r3 FILE *fp; int match; init_etc_passwd_group(); 30022888: ebffffb7 bl 3002276c if ((fp = fopen("/etc/group", "r")) == NULL) { 3002288c: e59f00a4 ldr r0, [pc, #164] ; 30022938 30022890: e59f10a4 ldr r1, [pc, #164] ; 3002293c 30022894: eb005c7f bl 30039a98 30022898: e2505000 subs r5, r0, #0 3002289c: 1a000003 bne 300228b0 errno = EINVAL; 300228a0: eb005a0c bl 300390d8 <__errno> <== NOT EXECUTED 300228a4: e3a03016 mov r3, #22 <== NOT EXECUTED 300228a8: e5803000 str r3, [r0] <== NOT EXECUTED 300228ac: ea00000c b 300228e4 <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 300228b0: e1a01004 mov r1, r4 300228b4: e1a02008 mov r2, r8 300228b8: e1a0300a mov r3, sl 300228bc: e1a00005 mov r0, r5 300228c0: ebfffef2 bl 30022490 300228c4: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 300228c8: e1a01006 mov r1, r6 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 300228cc: 1a000006 bne 300228ec errno = EINVAL; 300228d0: eb005a00 bl 300390d8 <__errno> <== NOT EXECUTED 300228d4: e3a03016 mov r3, #22 <== NOT EXECUTED 300228d8: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 300228dc: e1a00005 mov r0, r5 <== NOT EXECUTED 300228e0: eb005a49 bl 3003920c <== NOT EXECUTED 300228e4: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 300228e8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if (name) { 300228ec: e3560000 cmp r6, #0 300228f0: 0a000004 beq 30022908 match = (strcmp(grp->gr_name, name) == 0); 300228f4: e5940000 ldr r0, [r4] 300228f8: eb007219 bl 3003f164 300228fc: e2700001 rsbs r0, r0, #1 30022900: 33a00000 movcc r0, #0 30022904: ea000003 b 30022918 } else { match = (grp->gr_gid == gid); 30022908: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED 3002290c: e1500007 cmp r0, r7 <== NOT EXECUTED 30022910: 13a00000 movne r0, #0 <== NOT EXECUTED 30022914: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { 30022918: e3500000 cmp r0, #0 3002291c: 0affffe3 beq 300228b0 fclose(fp); 30022920: e1a00005 mov r0, r5 30022924: eb005a38 bl 3003920c *result = grp; 30022928: e59d3020 ldr r3, [sp, #32] 3002292c: e3a00000 mov r0, #0 30022930: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } 30022934: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 30022938: 30055f24 .word 0x30055f24 3002293c: 30056cbe .word 0x30056cbe 300225c8 : return NULL; return p; } struct group *getgrent(void) { 300225c8: e92d4010 push {r4, lr} <== NOT EXECUTED if (group_fp == NULL) 300225cc: e59f402c ldr r4, [pc, #44] ; 30022600 <== NOT EXECUTED 300225d0: e5940000 ldr r0, [r4] <== NOT EXECUTED 300225d4: e3500000 cmp r0, #0 <== NOT EXECUTED 300225d8: 0a000006 beq 300225f8 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 300225dc: e2841008 add r1, r4, #8 <== NOT EXECUTED 300225e0: e2842018 add r2, r4, #24 <== NOT EXECUTED 300225e4: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 300225e8: ebffffa8 bl 30022490 <== NOT EXECUTED 300225ec: e3500000 cmp r0, #0 <== NOT EXECUTED 300225f0: 12840008 addne r0, r4, #8 <== NOT EXECUTED 300225f4: 18bd8010 popne {r4, pc} <== NOT EXECUTED 300225f8: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &grent; } 300225fc: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30022600: 30060888 .word 0x30060888 30022974 : struct group *getgrgid( gid_t gid ) { 30022974: e92d4003 push {r0, r1, lr} <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 30022978: e59f1028 ldr r1, [pc, #40] ; 300229a8 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { 3002297c: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 30022980: e28dc004 add ip, sp, #4 <== NOT EXECUTED 30022984: e2812010 add r2, r1, #16 <== NOT EXECUTED 30022988: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 3002298c: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 30022990: e58dc000 str ip, [sp] <== NOT EXECUTED 30022994: ebffffe9 bl 30022940 <== NOT EXECUTED 30022998: e3500000 cmp r0, #0 <== NOT EXECUTED 3002299c: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; 300229a0: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 300229a4: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED 300229a8: 30060890 .word 0x30060890 30022940 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 30022940: e92d4003 push {r0, r1, lr} <== NOT EXECUTED 30022944: e1a0c002 mov ip, r2 <== NOT EXECUTED 30022948: e1a0e001 mov lr, r1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 3002294c: e58d3000 str r3, [sp] <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 30022950: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 30022954: e1a0300c mov r3, ip <== NOT EXECUTED 30022958: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 3002295c: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 30022960: e1a0200e mov r2, lr <== NOT EXECUTED 30022964: e3a00000 mov r0, #0 <== NOT EXECUTED 30022968: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 3002296c: ebffffbf bl 30022870 <== NOT EXECUTED } 30022970: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED 30022a40 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 30022a40: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 30022a44: e59da01c ldr sl, [sp, #28] 30022a48: e1a06000 mov r6, r0 30022a4c: e1a07001 mov r7, r1 30022a50: e1a04002 mov r4, r2 30022a54: e1a08003 mov r8, r3 FILE *fp; int match; init_etc_passwd_group(); 30022a58: ebffff43 bl 3002276c if ((fp = fopen("/etc/passwd", "r")) == NULL) { 30022a5c: e59f00a4 ldr r0, [pc, #164] ; 30022b08 30022a60: e59f10a4 ldr r1, [pc, #164] ; 30022b0c 30022a64: eb005c0b bl 30039a98 30022a68: e2505000 subs r5, r0, #0 30022a6c: 1a000003 bne 30022a80 errno = EINVAL; 30022a70: eb005998 bl 300390d8 <__errno> <== NOT EXECUTED 30022a74: e3a03016 mov r3, #22 <== NOT EXECUTED 30022a78: e5803000 str r3, [r0] <== NOT EXECUTED 30022a7c: ea00000c b 30022ab4 <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 30022a80: e1a01004 mov r1, r4 30022a84: e1a02008 mov r2, r8 30022a88: e1a0300a mov r3, sl 30022a8c: e1a00005 mov r0, r5 30022a90: ebfffedb bl 30022604 30022a94: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 30022a98: e1a01006 mov r1, r6 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 30022a9c: 1a000006 bne 30022abc errno = EINVAL; 30022aa0: eb00598c bl 300390d8 <__errno> <== NOT EXECUTED 30022aa4: e3a03016 mov r3, #22 <== NOT EXECUTED 30022aa8: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 30022aac: e1a00005 mov r0, r5 <== NOT EXECUTED 30022ab0: eb0059d5 bl 3003920c <== NOT EXECUTED 30022ab4: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 30022ab8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if (name) { 30022abc: e3560000 cmp r6, #0 30022ac0: 0a000004 beq 30022ad8 match = (strcmp(pwd->pw_name, name) == 0); 30022ac4: e5940000 ldr r0, [r4] 30022ac8: eb0071a5 bl 3003f164 30022acc: e2700001 rsbs r0, r0, #1 30022ad0: 33a00000 movcc r0, #0 30022ad4: ea000003 b 30022ae8 } else { match = (pwd->pw_uid == uid); 30022ad8: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED 30022adc: e1500007 cmp r0, r7 <== NOT EXECUTED 30022ae0: 13a00000 movne r0, #0 <== NOT EXECUTED 30022ae4: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { 30022ae8: e3500000 cmp r0, #0 30022aec: 0affffe3 beq 30022a80 fclose(fp); 30022af0: e1a00005 mov r0, r5 30022af4: eb0059c4 bl 3003920c *result = pwd; 30022af8: e59d3020 ldr r3, [sp, #32] 30022afc: e3a00000 mov r0, #0 30022b00: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } 30022b04: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 30022b08: 30055e76 .word 0x30055e76 30022b0c: 30056cbe .word 0x30056cbe 30022730 : return NULL; return p; } struct passwd *getpwent(void) { 30022730: e92d4010 push {r4, lr} <== NOT EXECUTED if (passwd_fp == NULL) 30022734: e59f402c ldr r4, [pc, #44] ; 30022768 <== NOT EXECUTED 30022738: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED 3002273c: e3500000 cmp r0, #0 <== NOT EXECUTED 30022740: 0a000006 beq 30022760 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 30022744: e28410e0 add r1, r4, #224 ; 0xe0 <== NOT EXECUTED 30022748: e28420fc add r2, r4, #252 ; 0xfc <== NOT EXECUTED 3002274c: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 30022750: ebffffab bl 30022604 <== NOT EXECUTED 30022754: e3500000 cmp r0, #0 <== NOT EXECUTED 30022758: 128400e0 addne r0, r4, #224 ; 0xe0 <== NOT EXECUTED 3002275c: 18bd8010 popne {r4, pc} <== NOT EXECUTED 30022760: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &pwent; } 30022764: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30022768: 30060888 .word 0x30060888 30022b44 : struct passwd *getpwuid( uid_t uid ) { 30022b44: e92d4003 push {r0, r1, lr} <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 30022b48: e59f1028 ldr r1, [pc, #40] ; 30022b78 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { 30022b4c: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 30022b50: e28dc004 add ip, sp, #4 <== NOT EXECUTED 30022b54: e281201c add r2, r1, #28 <== NOT EXECUTED 30022b58: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 30022b5c: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 30022b60: e58dc000 str ip, [sp] <== NOT EXECUTED 30022b64: ebffffe9 bl 30022b10 <== NOT EXECUTED 30022b68: e3500000 cmp r0, #0 <== NOT EXECUTED 30022b6c: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; 30022b70: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 30022b74: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED 30022b78: 30060968 .word 0x30060968 30022b10 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 30022b10: e92d4003 push {r0, r1, lr} <== NOT EXECUTED 30022b14: e1a0c002 mov ip, r2 <== NOT EXECUTED 30022b18: e1a0e001 mov lr, r1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 30022b1c: e58d3000 str r3, [sp] <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 30022b20: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 30022b24: e1a0300c mov r3, ip <== NOT EXECUTED 30022b28: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 30022b2c: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 30022b30: e1a0200e mov r2, lr <== NOT EXECUTED 30022b34: e3a00000 mov r0, #0 <== NOT EXECUTED 30022b38: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 30022b3c: ebffffbf bl 30022a40 <== NOT EXECUTED } 30022b40: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED 300089c4 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 300089c4: e92d4033 push {r0, r1, r4, r5, lr} /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 300089c8: e2504000 subs r4, r0, #0 300089cc: 1a000004 bne 300089e4 errno = EFAULT; 300089d0: eb00100e bl 3000ca10 <__errno> <== NOT EXECUTED 300089d4: e3a0300e mov r3, #14 <== NOT EXECUTED 300089d8: e5803000 str r3, [r0] <== NOT EXECUTED 300089dc: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 300089e0: ea00000c b 30008a18 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300089e4: e10f5000 mrs r5, CPSR 300089e8: e3853080 orr r3, r5, #128 ; 0x80 300089ec: e129f003 msr CPSR_fc, r3 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); 300089f0: e1a0000d mov r0, sp 300089f4: eb0004df bl 30009d78 <_TOD_Get> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 300089f8: e129f005 msr CPSR_fc, r5 _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 300089fc: e59d3000 ldr r3, [sp] time->tv_usec = useconds; 30008a00: e59d0004 ldr r0, [sp, #4] 30008a04: e3a01ffa mov r1, #1000 ; 0x3e8 _ISR_Enable(level); useconds = (suseconds_t)now.tv_nsec; useconds /= (suseconds_t)TOD_NANOSECONDS_PER_MICROSECOND; time->tv_sec = now.tv_sec; 30008a08: e5843000 str r3, [r4] time->tv_usec = useconds; 30008a0c: eb0035b6 bl 300160ec <__aeabi_idiv> 30008a10: e5840004 str r0, [r4, #4] 30008a14: 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; } 30008a18: e8bd803c pop {r2, r3, r4, r5, pc} 300053d8 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { 300053d8: e59f3008 ldr r3, [pc, #8] ; 300053e8 <== NOT EXECUTED 300053dc: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Uid; } 300053e0: e1d303b2 ldrh r0, [r3, #50] ; 0x32 <== NOT EXECUTED 300053e4: e12fff1e bx lr <== NOT EXECUTED 300053e8: 3005cdc8 .word 0x3005cdc8 30004e60 : int ioctl( int fd, ioctl_command_t command, ... ) { 30004e60: e92d000e push {r1, r2, r3} va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 30004e64: e59f3080 ldr r3, [pc, #128] ; 30004eec int ioctl( int fd, ioctl_command_t command, ... ) { 30004e68: e92d4001 push {r0, lr} va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); 30004e6c: e5933000 ldr r3, [r3] 30004e70: e1500003 cmp r0, r3 30004e74: 2a00000b bcs 30004ea8 iop = rtems_libio_iop( fd ); 30004e78: e59f3070 ldr r3, [pc, #112] ; 30004ef0 30004e7c: e5933000 ldr r3, [r3] 30004e80: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); 30004e84: e5903014 ldr r3, [r0, #20] 30004e88: e3130c01 tst r3, #256 ; 0x100 30004e8c: 0a000005 beq 30004ea8 /* * Now process the ioctl(). */ if ( !iop->handlers ) 30004e90: 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 *); 30004e94: e28d2010 add r2, sp, #16 /* * Now process the ioctl(). */ if ( !iop->handlers ) 30004e98: e3530000 cmp r3, #0 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); 30004e9c: e58d2000 str r2, [sp] 30004ea0: e59d200c ldr r2, [sp, #12] /* * Now process the ioctl(). */ if ( !iop->handlers ) 30004ea4: 1a000002 bne 30004eb4 rtems_set_errno_and_return_minus_one( EBADF ); 30004ea8: eb003521 bl 30012334 <__errno> 30004eac: e3a03009 mov r3, #9 30004eb0: ea000004 b 30004ec8 if ( !iop->handlers->ioctl_h ) 30004eb4: e5933010 ldr r3, [r3, #16] 30004eb8: e3530000 cmp r3, #0 30004ebc: 1a000004 bne 30004ed4 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30004ec0: eb00351b bl 30012334 <__errno> <== NOT EXECUTED 30004ec4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30004ec8: e5803000 str r3, [r0] 30004ecc: e3e00000 mvn r0, #0 30004ed0: ea000002 b 30004ee0 rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); 30004ed4: e59d1008 ldr r1, [sp, #8] 30004ed8: e1a0e00f mov lr, pc 30004edc: e12fff13 bx r3 return rc; } 30004ee0: e8bd4008 pop {r3, lr} 30004ee4: e28dd00c add sp, sp, #12 30004ee8: e12fff1e bx lr 30004eec: 3001f448 .word 0x3001f448 30004ef0: 3001feb8 .word 0x3001feb8 30002954 : * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP) 30002954: e5913030 ldr r3, [r1, #48] ; 0x30 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 30002958: e92d4030 push {r4, r5, lr} <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) 3000295c: e3130020 tst r3, #32 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 30002960: e20050ff and r5, r0, #255 ; 0xff <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; 30002964: 1200507f andne r5, r0, #127 ; 0x7f <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) 30002968: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { 3000296c: e1a04001 mov r4, r1 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) 30002970: 0a000007 beq 30002994 <== NOT EXECUTED c = tolower (c); 30002974: e59f2164 ldr r2, [pc, #356] ; 30002ae0 <== NOT EXECUTED 30002978: e5922000 ldr r2, [r2] <== NOT EXECUTED 3000297c: e0822005 add r2, r2, r5 <== NOT EXECUTED 30002980: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED 30002984: e2022003 and r2, r2, #3 <== NOT EXECUTED 30002988: e3520001 cmp r2, #1 <== NOT EXECUTED 3000298c: 02855020 addeq r5, r5, #32 <== NOT EXECUTED 30002990: e20550ff and r5, r5, #255 ; 0xff <== NOT EXECUTED if (c == '\r') { 30002994: e355000d cmp r5, #13 <== NOT EXECUTED 30002998: 1a000005 bne 300029b4 <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) 3000299c: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED 300029a0: 1a00004c bne 30002ad8 <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) 300029a4: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 300029a8: 03a0500d moveq r5, #13 <== NOT EXECUTED 300029ac: 13a0500a movne r5, #10 <== NOT EXECUTED 300029b0: ea000007 b 300029d4 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { 300029b4: e355000a cmp r5, #10 <== NOT EXECUTED 300029b8: 1a000003 bne 300029cc <== NOT EXECUTED 300029bc: e3130040 tst r3, #64 ; 0x40 <== NOT EXECUTED 300029c0: 03a0500a moveq r5, #10 <== NOT EXECUTED 300029c4: 13a0500d movne r5, #13 <== NOT EXECUTED 300029c8: ea000001 b 300029d4 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { 300029cc: e3550000 cmp r5, #0 <== NOT EXECUTED 300029d0: 0a00002e beq 30002a90 <== NOT EXECUTED 300029d4: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED 300029d8: e3130002 tst r3, #2 <== NOT EXECUTED 300029dc: 0a00002b beq 30002a90 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { 300029e0: e5d42043 ldrb r2, [r4, #67] ; 0x43 <== NOT EXECUTED 300029e4: e1520005 cmp r2, r5 <== NOT EXECUTED erase (tty, 0); 300029e8: 01a00004 moveq r0, r4 <== NOT EXECUTED 300029ec: 03a01000 moveq r1, #0 <== NOT EXECUTED } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { if (c == tty->termios.c_cc[VERASE]) { 300029f0: 0a000004 beq 30002a08 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { 300029f4: e5d42044 ldrb r2, [r4, #68] ; 0x44 <== NOT EXECUTED 300029f8: e1520005 cmp r2, r5 <== NOT EXECUTED 300029fc: 1a000003 bne 30002a10 <== NOT EXECUTED erase (tty, 1); 30002a00: e1a00004 mov r0, r4 <== NOT EXECUTED 30002a04: e3a01001 mov r1, #1 <== NOT EXECUTED 30002a08: ebffff5e bl 30002788 <== NOT EXECUTED 30002a0c: ea00002f b 30002ad0 <== NOT EXECUTED return 0; } else if (c == tty->termios.c_cc[VEOF]) { 30002a10: e5d42045 ldrb r2, [r4, #69] ; 0x45 <== NOT EXECUTED 30002a14: e1520005 cmp r2, r5 <== NOT EXECUTED 30002a18: 0a00001a beq 30002a88 <== NOT EXECUTED return 1; } else if (c == '\n') { 30002a1c: e355000a cmp r5, #10 <== NOT EXECUTED 30002a20: 1a000009 bne 30002a4c <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) 30002a24: e3130048 tst r3, #72 ; 0x48 <== NOT EXECUTED echo (c, tty); 30002a28: 11a00005 movne r0, r5 <== NOT EXECUTED 30002a2c: 11a01004 movne r1, r4 <== NOT EXECUTED 30002a30: 1bffff34 blne 30002708 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 30002a34: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30002a38: e594101c ldr r1, [r4, #28] <== NOT EXECUTED 30002a3c: e3a0000a mov r0, #10 <== NOT EXECUTED 30002a40: e2832001 add r2, r3, #1 <== NOT EXECUTED 30002a44: e7c10003 strb r0, [r1, r3] <== NOT EXECUTED 30002a48: ea00000d b 30002a84 <== NOT EXECUTED return 1; } else if ((c == tty->termios.c_cc[VEOL]) 30002a4c: e5d4204c ldrb r2, [r4, #76] ; 0x4c <== NOT EXECUTED 30002a50: e1520005 cmp r2, r5 <== NOT EXECUTED 30002a54: 0a000002 beq 30002a64 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { 30002a58: e5d42051 ldrb r2, [r4, #81] ; 0x51 <== NOT EXECUTED 30002a5c: e1520005 cmp r2, r5 <== NOT EXECUTED 30002a60: 1a00000a bne 30002a90 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 30002a64: e3130008 tst r3, #8 <== NOT EXECUTED echo (c, tty); 30002a68: 11a00005 movne r0, r5 <== NOT EXECUTED 30002a6c: 11a01004 movne r1, r4 <== NOT EXECUTED 30002a70: 1bffff24 blne 30002708 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 30002a74: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30002a78: e594101c ldr r1, [r4, #28] <== NOT EXECUTED 30002a7c: e2832001 add r2, r3, #1 <== NOT EXECUTED 30002a80: e7c15003 strb r5, [r1, r3] <== NOT EXECUTED 30002a84: e5842020 str r2, [r4, #32] <== NOT EXECUTED 30002a88: e3a00001 mov r0, #1 <== NOT EXECUTED return 1; 30002a8c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { 30002a90: e59f304c ldr r3, [pc, #76] ; 30002ae4 <== NOT EXECUTED 30002a94: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 30002a98: e5933000 ldr r3, [r3] <== NOT EXECUTED 30002a9c: e2433001 sub r3, r3, #1 <== NOT EXECUTED 30002aa0: e1520003 cmp r2, r3 <== NOT EXECUTED 30002aa4: aa00000b bge 30002ad8 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) 30002aa8: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED 30002aac: e3130008 tst r3, #8 <== NOT EXECUTED echo (c, tty); 30002ab0: 11a00005 movne r0, r5 <== NOT EXECUTED 30002ab4: 11a01004 movne r1, r4 <== NOT EXECUTED 30002ab8: 1bffff12 blne 30002708 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; 30002abc: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30002ac0: e594101c ldr r1, [r4, #28] <== NOT EXECUTED 30002ac4: e2832001 add r2, r3, #1 <== NOT EXECUTED 30002ac8: e7c15003 strb r5, [r1, r3] <== NOT EXECUTED 30002acc: e5842020 str r2, [r4, #32] <== NOT EXECUTED 30002ad0: e3a00000 mov r0, #0 <== NOT EXECUTED 30002ad4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30002ad8: e3a00000 mov r0, #0 <== NOT EXECUTED } return 0; } 30002adc: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30002ae0: 30019484 .word 0x30019484 30002ae4: 300193c8 .word 0x300193c8 30022c68 : int link( const char *existing, const char *new ) { 30022c68: e92d4070 push {r4, r5, r6, lr} 30022c6c: e24dd030 sub sp, sp, #48 ; 0x30 30022c70: e1a04001 mov r4, r1 30022c74: e1a05000 mov r5, r0 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 30022c78: eb0073a1 bl 3003fb04 30022c7c: e3a0c001 mov ip, #1 30022c80: e1a01000 mov r1, r0 30022c84: e3a02000 mov r2, #0 30022c88: e1a00005 mov r0, r5 30022c8c: e28d3018 add r3, sp, #24 30022c90: e58dc000 str ip, [sp] 30022c94: ebff895e bl 30005214 0, &existing_loc, true ); if ( result != 0 ) 30022c98: e3500000 cmp r0, #0 30022c9c: 1a000025 bne 30022d38 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 30022ca0: e5d43000 ldrb r3, [r4] 30022ca4: e353002f cmp r3, #47 ; 0x2f 30022ca8: 1353005c cmpne r3, #92 ; 0x5c 30022cac: 13a05000 movne r5, #0 30022cb0: 03a05001 moveq r5, #1 30022cb4: 0a000001 beq 30022cc0 30022cb8: e3530000 cmp r3, #0 30022cbc: 1a000005 bne 30022cd8 30022cc0: e59f31d8 ldr r3, [pc, #472] ; 30022ea0 30022cc4: e28dc004 add ip, sp, #4 30022cc8: e593e000 ldr lr, [r3] 30022ccc: e3a05001 mov r5, #1 30022cd0: e28ee018 add lr, lr, #24 30022cd4: ea000003 b 30022ce8 30022cd8: e59f31c0 ldr r3, [pc, #448] ; 30022ea0 30022cdc: e28dc004 add ip, sp, #4 30022ce0: e593e000 ldr lr, [r3] 30022ce4: e28ee004 add lr, lr, #4 30022ce8: e8be000f ldm lr!, {r0, r1, r2, r3} 30022cec: e8ac000f stmia ip!, {r0, r1, r2, r3} 30022cf0: e59e3000 ldr r3, [lr] 30022cf4: e58c3000 str r3, [ip] if ( !parent_loc.ops->evalformake_h ) { 30022cf8: e59d3010 ldr r3, [sp, #16] 30022cfc: e5933004 ldr r3, [r3, #4] 30022d00: e3530000 cmp r3, #0 30022d04: 1a00000d bne 30022d40 rtems_filesystem_freenode( &existing_loc ); 30022d08: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30022d0c: e3530000 cmp r3, #0 <== NOT EXECUTED 30022d10: 0a000005 beq 30022d2c <== NOT EXECUTED 30022d14: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30022d18: e3530000 cmp r3, #0 <== NOT EXECUTED 30022d1c: 0a000002 beq 30022d2c <== NOT EXECUTED 30022d20: e28d0018 add r0, sp, #24 <== NOT EXECUTED 30022d24: e1a0e00f mov lr, pc <== NOT EXECUTED 30022d28: e12fff13 bx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30022d2c: eb0058e9 bl 300390d8 <__errno> <== NOT EXECUTED 30022d30: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30022d34: e5803000 str r3, [r0] 30022d38: e3e05000 mvn r5, #0 30022d3c: ea000054 b 30022e94 } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 30022d40: e28d6004 add r6, sp, #4 30022d44: e0840005 add r0, r4, r5 30022d48: e1a01006 mov r1, r6 30022d4c: e28d202c add r2, sp, #44 ; 0x2c 30022d50: e1a0e00f mov lr, pc 30022d54: e12fff13 bx r3 if ( result != 0 ) { 30022d58: e2504000 subs r4, r0, #0 30022d5c: 0a00000a beq 30022d8c rtems_filesystem_freenode( &existing_loc ); 30022d60: e59d3024 ldr r3, [sp, #36] ; 0x24 30022d64: e3530000 cmp r3, #0 30022d68: 0a000004 beq 30022d80 30022d6c: e593301c ldr r3, [r3, #28] 30022d70: e3530000 cmp r3, #0 30022d74: 128d0018 addne r0, sp, #24 30022d78: 11a0e00f movne lr, pc 30022d7c: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( result ); 30022d80: eb0058d4 bl 300390d8 <__errno> 30022d84: e5804000 str r4, [r0] 30022d88: eaffffea b 30022d38 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 30022d8c: e59d3028 ldr r3, [sp, #40] ; 0x28 30022d90: e59d2014 ldr r2, [sp, #20] 30022d94: e1520003 cmp r2, r3 30022d98: 0a000012 beq 30022de8 rtems_filesystem_freenode( &existing_loc ); 30022d9c: e59d3024 ldr r3, [sp, #36] ; 0x24 30022da0: e3530000 cmp r3, #0 30022da4: 0a000004 beq 30022dbc 30022da8: e593301c ldr r3, [r3, #28] 30022dac: e3530000 cmp r3, #0 30022db0: 128d0018 addne r0, sp, #24 30022db4: 11a0e00f movne lr, pc 30022db8: 112fff13 bxne r3 rtems_filesystem_freenode( &parent_loc ); 30022dbc: e59d3010 ldr r3, [sp, #16] 30022dc0: e3530000 cmp r3, #0 30022dc4: 0a000004 beq 30022ddc 30022dc8: e593301c ldr r3, [r3, #28] 30022dcc: e3530000 cmp r3, #0 30022dd0: 128d0004 addne r0, sp, #4 30022dd4: 11a0e00f movne lr, pc 30022dd8: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( EXDEV ); 30022ddc: eb0058bd bl 300390d8 <__errno> 30022de0: e3a03012 mov r3, #18 30022de4: eaffffd2 b 30022d34 } if ( !parent_loc.ops->link_h ) { 30022de8: e59d3010 ldr r3, [sp, #16] 30022dec: e5933008 ldr r3, [r3, #8] 30022df0: e3530000 cmp r3, #0 30022df4: 1a00000f bne 30022e38 rtems_filesystem_freenode( &existing_loc ); 30022df8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30022dfc: e3530000 cmp r3, #0 <== NOT EXECUTED 30022e00: 0a000004 beq 30022e18 <== NOT EXECUTED 30022e04: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30022e08: e3530000 cmp r3, #0 <== NOT EXECUTED 30022e0c: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 30022e10: 11a0e00f movne lr, pc <== NOT EXECUTED 30022e14: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 30022e18: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30022e1c: e3530000 cmp r3, #0 <== NOT EXECUTED 30022e20: 0affffc1 beq 30022d2c <== NOT EXECUTED 30022e24: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30022e28: e3530000 cmp r3, #0 <== NOT EXECUTED 30022e2c: 128d0004 addne r0, sp, #4 <== NOT EXECUTED 30022e30: 1affffbb bne 30022d24 <== NOT EXECUTED 30022e34: eaffffbc b 30022d2c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 30022e38: e28d4018 add r4, sp, #24 30022e3c: e1a01006 mov r1, r6 30022e40: e1a00004 mov r0, r4 30022e44: e59d202c ldr r2, [sp, #44] ; 0x2c 30022e48: e1a0e00f mov lr, pc 30022e4c: e12fff13 bx r3 rtems_filesystem_freenode( &existing_loc ); 30022e50: 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 ); 30022e54: e1a05000 mov r5, r0 rtems_filesystem_freenode( &existing_loc ); 30022e58: e3530000 cmp r3, #0 30022e5c: 0a000004 beq 30022e74 30022e60: e593301c ldr r3, [r3, #28] 30022e64: e3530000 cmp r3, #0 30022e68: 11a00004 movne r0, r4 30022e6c: 11a0e00f movne lr, pc 30022e70: 112fff13 bxne r3 rtems_filesystem_freenode( &parent_loc ); 30022e74: e59d3010 ldr r3, [sp, #16] 30022e78: e3530000 cmp r3, #0 30022e7c: 0a000004 beq 30022e94 30022e80: e593301c ldr r3, [r3, #28] 30022e84: e3530000 cmp r3, #0 30022e88: 128d0004 addne r0, sp, #4 30022e8c: 11a0e00f movne lr, pc 30022e90: 112fff13 bxne r3 return result; } 30022e94: e1a00005 mov r0, r5 30022e98: e28dd030 add sp, sp, #48 ; 0x30 30022e9c: e8bd8070 pop {r4, r5, r6, pc} 30022ea0: 3005cdc8 .word 0x3005cdc8 30017890 : { rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 30017890: e59fc0ec ldr ip, [pc, #236] ; 30017984 off_t lseek( int fd, off_t offset, int whence ) { 30017894: e92d4870 push {r4, r5, r6, fp, lr} rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 30017898: e59cc000 ldr ip, [ip] 3001789c: e150000c cmp r0, ip 300178a0: 2a000005 bcs 300178bc iop = rtems_libio_iop( fd ); 300178a4: e59fc0dc ldr ip, [pc, #220] ; 30017988 300178a8: e59c4000 ldr r4, [ip] 300178ac: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); 300178b0: e5940014 ldr r0, [r4, #20] 300178b4: e3100c01 tst r0, #256 ; 0x100 300178b8: 1a000002 bne 300178c8 300178bc: ebffd453 bl 3000ca10 <__errno> 300178c0: e3a03009 mov r3, #9 300178c4: ea00001c b 3001793c /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 300178c8: e594003c ldr r0, [r4, #60] ; 0x3c 300178cc: e5900014 ldr r0, [r0, #20] 300178d0: e3500000 cmp r0, #0 300178d4: 1a000002 bne 300178e4 rtems_set_errno_and_return_minus_one( ENOTSUP ); 300178d8: ebffd44c bl 3000ca10 <__errno> <== NOT EXECUTED 300178dc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300178e0: ea000015 b 3001793c <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 300178e4: e3530001 cmp r3, #1 /* * Now process the lseek(). */ old_offset = iop->offset; 300178e8: e284600c add r6, r4, #12 300178ec: e8960060 ldm r6, {r5, r6} switch ( whence ) { 300178f0: 0a000006 beq 30017910 300178f4: e3530002 cmp r3, #2 300178f8: 0a000007 beq 3001791c 300178fc: e3530000 cmp r3, #0 30017900: 1a00000b bne 30017934 case SEEK_SET: iop->offset = offset; 30017904: e584100c str r1, [r4, #12] 30017908: e5842010 str r2, [r4, #16] break; 3001790c: ea00000e b 3001794c case SEEK_CUR: iop->offset += offset; 30017910: e091b005 adds fp, r1, r5 30017914: e0a2c006 adc ip, r2, r6 30017918: ea000002 b 30017928 break; case SEEK_END: iop->offset = iop->size + offset; 3001791c: e9941800 ldmib r4, {fp, ip} 30017920: e09bb001 adds fp, fp, r1 30017924: e0acc002 adc ip, ip, r2 30017928: e584b00c str fp, [r4, #12] 3001792c: e584c010 str ip, [r4, #16] break; 30017930: ea000005 b 3001794c default: rtems_set_errno_and_return_minus_one( EINVAL ); 30017934: ebffd435 bl 3000ca10 <__errno> 30017938: e3a03016 mov r3, #22 3001793c: e5803000 str r3, [r0] 30017940: e3e02000 mvn r2, #0 30017944: e3e03000 mvn r3, #0 30017948: ea00000a b 30017978 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 3001794c: e594c03c ldr ip, [r4, #60] ; 0x3c 30017950: e1a00004 mov r0, r4 30017954: e1a0e00f mov lr, pc 30017958: e59cf014 ldr pc, [ip, #20] if ( status == (off_t) -1 ) 3001795c: e3700001 cmn r0, #1 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 30017960: e1a02000 mov r2, r0 30017964: e1a03001 mov r3, r1 if ( status == (off_t) -1 ) 30017968: 1a000002 bne 30017978 3001796c: e3710001 cmn r1, #1 iop->offset = old_offset; 30017970: 0584500c streq r5, [r4, #12] 30017974: 05846010 streq r6, [r4, #16] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 30017978: e1a01003 mov r1, r3 3001797c: e1a00002 mov r0, r2 30017980: e8bd8870 pop {r4, r5, r6, fp, pc} 30017984: 300191e4 .word 0x300191e4 30017988: 30019b84 .word 0x30019b84 30022fc0 : int _STAT_NAME( const char *path, struct stat *buf ) { 30022fc0: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 30022fc4: e2515000 subs r5, r1, #0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 30022fc8: e24dd018 sub sp, sp, #24 <== NOT EXECUTED 30022fcc: e1a06000 mov r6, r0 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 30022fd0: 1a000002 bne 30022fe0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 30022fd4: eb00583f bl 300390d8 <__errno> <== NOT EXECUTED 30022fd8: e3a0300e mov r3, #14 <== NOT EXECUTED 30022fdc: ea000018 b 30023044 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 30022fe0: eb0072c7 bl 3003fb04 <== NOT EXECUTED 30022fe4: e28d4004 add r4, sp, #4 <== NOT EXECUTED 30022fe8: e3a0c000 mov ip, #0 <== NOT EXECUTED 30022fec: e1a01000 mov r1, r0 <== NOT EXECUTED 30022ff0: e1a0200c mov r2, ip <== NOT EXECUTED 30022ff4: e1a00006 mov r0, r6 <== NOT EXECUTED 30022ff8: e1a03004 mov r3, r4 <== NOT EXECUTED 30022ffc: e58dc000 str ip, [sp] <== NOT EXECUTED 30023000: ebff8883 bl 30005214 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 30023004: e2501000 subs r1, r0, #0 <== NOT EXECUTED 30023008: 1a00000e bne 30023048 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 3002300c: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 30023010: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 30023014: e3530000 cmp r3, #0 <== NOT EXECUTED 30023018: 1a00000c bne 30023050 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 3002301c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30023020: e3530000 cmp r3, #0 <== NOT EXECUTED 30023024: 0a000004 beq 3002303c <== NOT EXECUTED 30023028: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3002302c: e3530000 cmp r3, #0 <== NOT EXECUTED 30023030: 11a00004 movne r0, r4 <== NOT EXECUTED 30023034: 11a0e00f movne lr, pc <== NOT EXECUTED 30023038: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3002303c: eb005825 bl 300390d8 <__errno> <== NOT EXECUTED 30023040: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30023044: e5803000 str r3, [r0] <== NOT EXECUTED 30023048: e3e05000 mvn r5, #0 <== NOT EXECUTED 3002304c: ea000010 b 30023094 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 30023050: e3a02048 mov r2, #72 ; 0x48 <== NOT EXECUTED 30023054: e1a00005 mov r0, r5 <== NOT EXECUTED 30023058: eb0064d6 bl 3003c3b8 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 3002305c: e1a01005 mov r1, r5 <== NOT EXECUTED 30023060: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 30023064: e1a00004 mov r0, r4 <== NOT EXECUTED 30023068: e1a0e00f mov lr, pc <== NOT EXECUTED 3002306c: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30023070: 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 ); 30023074: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30023078: e3530000 cmp r3, #0 <== NOT EXECUTED 3002307c: 0a000004 beq 30023094 <== NOT EXECUTED 30023080: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30023084: e3530000 cmp r3, #0 <== NOT EXECUTED 30023088: 11a00004 movne r0, r4 <== NOT EXECUTED 3002308c: 11a0e00f movne lr, pc <== NOT EXECUTED 30023090: 112fff13 bxne r3 <== NOT EXECUTED return status; } 30023094: e1a00005 mov r0, r5 <== NOT EXECUTED 30023098: e28dd018 add sp, sp, #24 <== NOT EXECUTED 3002309c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30008d38 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 30008d38: e59f30d8 ldr r3, [pc, #216] ; 30008e18 30008d3c: e92d4070 push {r4, r5, r6, lr} 30008d40: e5932004 ldr r2, [r3, #4] 30008d44: e1a04000 mov r4, r0 30008d48: e2822001 add r2, r2, #1 30008d4c: e5832004 str r2, [r3, #4] /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 30008d50: ebffffef bl 30008d14 /* * Validate the parameters */ if ( !size ) 30008d54: e3540000 cmp r4, #0 30008d58: 0a00002b beq 30008e0c return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 30008d5c: e59f30b8 ldr r3, [pc, #184] ; 30008e1c 30008d60: e5933000 ldr r3, [r3] 30008d64: e3530003 cmp r3, #3 30008d68: 1a000002 bne 30008d78 30008d6c: ebffffd1 bl 30008cb8 30008d70: e3500000 cmp r0, #0 30008d74: 0a000024 beq 30008e0c RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 30008d78: e59f30a0 ldr r3, [pc, #160] ; 30008e20 30008d7c: e3a02000 mov r2, #0 30008d80: e5930000 ldr r0, [r3] 30008d84: e1a01004 mov r1, r4 30008d88: e1a03002 mov r3, r2 30008d8c: eb000534 bl 3000a264 <_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 ) { 30008d90: 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; 30008d94: 11a05006 movne r5, r6 * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { 30008d98: 1a00000c bne 30008dd0 if (rtems_malloc_sbrk_helpers) 30008d9c: e59f3080 ldr r3, [pc, #128] ; 30008e24 30008da0: e5933000 ldr r3, [r3] 30008da4: e3530000 cmp r3, #0 30008da8: 0a000004 beq 30008dc0 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 30008dac: e1a00004 mov r0, r4 <== NOT EXECUTED 30008db0: e1a0e00f mov lr, pc <== NOT EXECUTED 30008db4: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( !return_this ) { 30008db8: e2505000 subs r5, r0, #0 <== NOT EXECUTED 30008dbc: 1a000003 bne 30008dd0 <== NOT EXECUTED errno = ENOMEM; 30008dc0: eb000f12 bl 3000ca10 <__errno> 30008dc4: e3a0300c mov r3, #12 30008dc8: e5803000 str r3, [r0] return (void *) 0; 30008dcc: ea00000f b 30008e10 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 30008dd0: e59f3050 ldr r3, [pc, #80] ; 30008e28 30008dd4: e5933000 ldr r3, [r3] 30008dd8: e3530000 cmp r3, #0 (*rtems_malloc_dirty_helper)( return_this, size ); 30008ddc: 11a01004 movne r1, r4 30008de0: 11a00005 movne r0, r5 30008de4: 11a0e00f movne lr, pc 30008de8: 1593f000 ldrne pc, [r3] /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 30008dec: e59f3038 ldr r3, [pc, #56] ; 30008e2c 30008df0: e5933000 ldr r3, [r3] 30008df4: e3530000 cmp r3, #0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 30008df8: 11a00005 movne r0, r5 30008dfc: 11a0e00f movne lr, pc 30008e00: 1593f004 ldrne pc, [r3, #4] 30008e04: e1a06005 mov r6, r5 30008e08: ea000000 b 30008e10 30008e0c: e3a06000 mov r6, #0 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 30008e10: e1a00006 mov r0, r6 30008e14: e8bd8070 pop {r4, r5, r6, pc} 30008e18: 30019b90 .word 0x30019b90 30008e1c: 30019e90 .word 0x30019e90 30008e20: 300191f0 .word 0x300191f0 30008e24: 300199a8 .word 0x300199a8 30008e28: 300199ac .word 0x300199ac 30008e2c: 300199a4 .word 0x300199a4 30008d04 : } void malloc_deferred_free( void *pointer ) { 30008d04: e1a01000 mov r1, r0 <== NOT EXECUTED 30008d08: e59f0000 ldr r0, [pc, #0] ; 30008d10 <== NOT EXECUTED 30008d0c: eaffefc9 b 30004c38 <_Chain_Append> <== NOT EXECUTED 30008d10: 3001a1ec .word 0x3001a1ec 30008d14 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 30008d14: 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) 30008d18: ea000000 b 30008d20 free(to_be_freed); 30008d1c: ebfffebb bl 30008810 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 30008d20: e59f000c ldr r0, [pc, #12] ; 30008d34 30008d24: eb0003ab bl 30009bd8 <_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) 30008d28: e3500000 cmp r0, #0 30008d2c: 1afffffa bne 30008d1c free(to_be_freed); } 30008d30: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30008d34: 3001a1ec .word 0x3001a1ec 30010478 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 30010478: e92d4013 push {r0, r1, r4, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 3001047c: e5904038 ldr r4, [r0, #56] ; 0x38 * 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 ) 30010480: e5943054 ldr r3, [r4, #84] ; 0x54 30010484: e1530002 cmp r3, r2 30010488: ba000003 blt 3001049c 3001048c: 1a000005 bne 300104a8 30010490: e5943050 ldr r3, [r4, #80] ; 0x50 30010494: e1530001 cmp r3, r1 30010498: 2a000002 bcs 300104a8 return IMFS_memfile_extend( the_jnode, length ); 3001049c: e1a00004 mov r0, r4 <== NOT EXECUTED 300104a0: ebffff9a bl 30010310 <== NOT EXECUTED 300104a4: ea000008 b 300104cc <== NOT EXECUTED * The in-memory files do not currently reclaim memory until the file is * deleted. So we leave the previously allocated blocks in place for * future use and just set the length. */ the_jnode->info.file.size = length; 300104a8: e5841050 str r1, [r4, #80] ; 0x50 300104ac: e5842054 str r2, [r4, #84] ; 0x54 iop->size = the_jnode->info.file.size; 300104b0: e9800006 stmib r0, {r1, r2} IMFS_update_atime( the_jnode ); 300104b4: e3a01000 mov r1, #0 300104b8: e1a0000d mov r0, sp 300104bc: ebffc980 bl 30002ac4 300104c0: e59d3000 ldr r3, [sp] 300104c4: e3a00000 mov r0, #0 300104c8: e5843040 str r3, [r4, #64] ; 0x40 return 0; } 300104cc: e8bd801c pop {r2, r3, r4, pc} 300104d0 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 300104d0: e92d4030 push {r4, r5, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 300104d4: e5905038 ldr r5, [r0, #56] ; 0x38 rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 300104d8: e1a04000 mov r4, r0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { 300104dc: e595304c ldr r3, [r5, #76] ; 0x4c 300104e0: e3530006 cmp r3, #6 300104e4: 1a00000b bne 30010518 if (iop->offset > the_jnode->info.linearfile.size) 300104e8: e5953054 ldr r3, [r5, #84] ; 0x54 <== NOT EXECUTED 300104ec: e5901010 ldr r1, [r0, #16] <== NOT EXECUTED 300104f0: e5952050 ldr r2, [r5, #80] ; 0x50 <== NOT EXECUTED 300104f4: e1510003 cmp r1, r3 <== NOT EXECUTED 300104f8: ca000003 bgt 3001050c <== NOT EXECUTED 300104fc: 1a000014 bne 30010554 <== NOT EXECUTED 30010500: e590100c ldr r1, [r0, #12] <== NOT EXECUTED 30010504: e1510002 cmp r1, r2 <== NOT EXECUTED 30010508: 9a000011 bls 30010554 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 3001050c: e584200c str r2, [r4, #12] <== NOT EXECUTED 30010510: e5843010 str r3, [r4, #16] <== NOT EXECUTED 30010514: ea00000e b 30010554 <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 30010518: e1a00005 mov r0, r5 3001051c: e284200c add r2, r4, #12 30010520: e8920006 ldm r2, {r1, r2} 30010524: ebffff79 bl 30010310 30010528: e3500000 cmp r0, #0 3001052c: 0a000005 beq 30010548 rtems_set_errno_and_return_minus_one( ENOSPC ); 30010530: eb000686 bl 30011f50 <__errno> <== NOT EXECUTED 30010534: e3a0301c mov r3, #28 <== NOT EXECUTED 30010538: e5803000 str r3, [r0] <== NOT EXECUTED 3001053c: e3e04000 mvn r4, #0 <== NOT EXECUTED 30010540: e3e03000 mvn r3, #0 <== NOT EXECUTED 30010544: ea000004 b 3001055c <== NOT EXECUTED iop->size = the_jnode->info.file.size; 30010548: e2853050 add r3, r5, #80 ; 0x50 3001054c: e893000c ldm r3, {r2, r3} 30010550: e984000c stmib r4, {r2, r3} } return iop->offset; 30010554: e284400c add r4, r4, #12 30010558: e8940018 ldm r4, {r3, r4} } 3001055c: e1a01004 mov r1, r4 30010560: e1a00003 mov r0, r3 30010564: e8bd8030 pop {r4, r5, pc} 300107ec : the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 300107ec: e5903014 ldr r3, [r0, #20] rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 300107f0: e92d4031 push {r0, r4, r5, lr} the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 300107f4: e3130f81 tst r3, #516 ; 0x204 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 300107f8: e1a05000 mov r5, r0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 300107fc: e5904038 ldr r4, [r0, #56] ; 0x38 /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 30010800: 0a000017 beq 30010864 && (the_jnode->type == IMFS_LINEAR_FILE)) { 30010804: e594304c ldr r3, [r4, #76] ; 0x4c 30010808: e3530006 cmp r3, #6 3001080c: 1a000014 bne 30010864 uint32_t count = the_jnode->info.linearfile.size; 30010810: e594c050 ldr ip, [r4, #80] ; 0x50 <== NOT EXECUTED const unsigned char *buffer = the_jnode->info.linearfile.direct; the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; the_jnode->info.file.indirect = 0; 30010814: e3a02000 mov r2, #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; 30010818: e3a03005 mov r3, #5 <== NOT EXECUTED the_jnode->info.file.size = 0; 3001081c: e3a00000 mov r0, #0 <== NOT EXECUTED 30010820: e3a01000 mov r1, #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) 30010824: e15c0002 cmp ip, r2 <== 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; 30010828: e584304c str r3, [r4, #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; 3001082c: e5842060 str r2, [r4, #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; 30010830: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; 30010834: e5840050 str r0, [r4, #80] ; 0x50 <== NOT EXECUTED 30010838: e5841054 str r1, [r4, #84] ; 0x54 <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; 3001083c: e584205c str r2, [r4, #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; 30010840: e5842058 str r2, [r4, #88] ; 0x58 <== NOT EXECUTED the_jnode->info.file.doubly_indirect = 0; the_jnode->info.file.triply_indirect = 0; if ((count != 0) 30010844: 0a000006 beq 30010864 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 30010848: e1a02001 mov r2, r1 <== NOT EXECUTED 3001084c: e1a01000 mov r1, r0 <== NOT EXECUTED 30010850: e1a00004 mov r0, r4 <== NOT EXECUTED 30010854: e58dc000 str ip, [sp] <== NOT EXECUTED 30010858: ebffff42 bl 30010568 <== 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) 3001085c: e3700001 cmn r0, #1 <== NOT EXECUTED 30010860: 0a000009 beq 3001088c <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 30010864: e5953014 ldr r3, [r5, #20] 30010868: e3130c02 tst r3, #512 ; 0x200 iop->offset = the_jnode->info.file.size; 3001086c: 12843050 addne r3, r4, #80 ; 0x50 30010870: 1893000c ldmne r3, {r2, r3} 30010874: 1585200c strne r2, [r5, #12] 30010878: 15853010 strne r3, [r5, #16] iop->size = the_jnode->info.file.size; 3001087c: e2844050 add r4, r4, #80 ; 0x50 30010880: e8940018 ldm r4, {r3, r4} 30010884: e9850018 stmib r5, {r3, r4} 30010888: e3a00000 mov r0, #0 return 0; } 3001088c: e8bd8038 pop {r3, r4, r5, pc} 300015cc : int mknod( const char *pathname, mode_t mode, dev_t dev ) { 300015cc: e92d43f0 push {r4, r5, r6, r7, r8, r9, 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) ) ) 300015d0: e3110a0f tst r1, #61440 ; 0xf000 int mknod( const char *pathname, mode_t mode, dev_t dev ) { 300015d4: e24dd01c sub sp, sp, #28 300015d8: e1a05001 mov r5, r1 300015dc: e1a07000 mov r7, r0 300015e0: e1a08002 mov r8, r2 300015e4: e1a09003 mov r9, 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) ) ) 300015e8: 1a000002 bne 300015f8 rtems_set_errno_and_return_minus_one( EINVAL ); 300015ec: eb002d07 bl 3000ca10 <__errno> <== NOT EXECUTED 300015f0: e3a03016 mov r3, #22 <== NOT EXECUTED 300015f4: ea00001b b 30001668 <== NOT EXECUTED rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); 300015f8: e5d03000 ldrb r3, [r0] 300015fc: e353002f cmp r3, #47 ; 0x2f 30001600: 1353005c cmpne r3, #92 ; 0x5c 30001604: 13a06000 movne r6, #0 30001608: 03a06001 moveq r6, #1 3000160c: 0a000001 beq 30001618 30001610: e3530000 cmp r3, #0 30001614: 1a000005 bne 30001630 30001618: e59f30ec ldr r3, [pc, #236] ; 3000170c 3000161c: e28dc004 add ip, sp, #4 30001620: e593e000 ldr lr, [r3] 30001624: e3a06001 mov r6, #1 30001628: e28ee018 add lr, lr, #24 3000162c: ea000003 b 30001640 30001630: e59f30d4 ldr r3, [pc, #212] ; 3000170c 30001634: e28dc004 add ip, sp, #4 30001638: e593e000 ldr lr, [r3] 3000163c: e28ee004 add lr, lr, #4 30001640: e8be000f ldm lr!, {r0, r1, r2, r3} 30001644: e8ac000f stmia ip!, {r0, r1, r2, r3} 30001648: e59e3000 ldr r3, [lr] 3000164c: e58c3000 str r3, [ip] if ( !temp_loc.ops->evalformake_h ) { 30001650: e59d3010 ldr r3, [sp, #16] 30001654: e5933004 ldr r3, [r3, #4] 30001658: e3530000 cmp r3, #0 3000165c: 1a000004 bne 30001674 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30001660: eb002cea bl 3000ca10 <__errno> <== NOT EXECUTED 30001664: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001668: e5803000 str r3, [r0] <== NOT EXECUTED 3000166c: e3e05000 mvn r5, #0 30001670: ea000022 b 30001700 } result = (*temp_loc.ops->evalformake_h)( 30001674: e28d4004 add r4, sp, #4 30001678: e0870006 add r0, r7, r6 3000167c: e1a01004 mov r1, r4 30001680: e28d2018 add r2, sp, #24 30001684: e1a0e00f mov lr, pc 30001688: e12fff13 bx r3 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) 3000168c: e3500000 cmp r0, #0 30001690: 1afffff5 bne 3000166c return -1; if ( !temp_loc.ops->mknod_h ) { 30001694: e59d3010 ldr r3, [sp, #16] 30001698: e593c014 ldr ip, [r3, #20] 3000169c: e35c0000 cmp ip, #0 300016a0: 1a000006 bne 300016c0 rtems_filesystem_freenode( &temp_loc ); 300016a4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300016a8: e3530000 cmp r3, #0 <== NOT EXECUTED 300016ac: 0affffeb beq 30001660 <== NOT EXECUTED 300016b0: e1a00004 mov r0, r4 <== NOT EXECUTED 300016b4: e1a0e00f mov lr, pc <== NOT EXECUTED 300016b8: e12fff13 bx r3 <== NOT EXECUTED 300016bc: eaffffe7 b 30001660 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); 300016c0: e1a01005 mov r1, r5 300016c4: e1a03009 mov r3, r9 300016c8: e58d4000 str r4, [sp] 300016cc: e1a02008 mov r2, r8 300016d0: e59d0018 ldr r0, [sp, #24] 300016d4: e1a0e00f mov lr, pc 300016d8: e12fff1c bx ip rtems_filesystem_freenode( &temp_loc ); 300016dc: 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 ); 300016e0: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); 300016e4: e3530000 cmp r3, #0 300016e8: 0a000004 beq 30001700 300016ec: e593301c ldr r3, [r3, #28] 300016f0: e3530000 cmp r3, #0 300016f4: 11a00004 movne r0, r4 300016f8: 11a0e00f movne lr, pc 300016fc: 112fff13 bxne r3 return result; } 30001700: e1a00005 mov r0, r5 30001704: e28dd01c add sp, sp, #28 30001708: e8bd83f0 pop {r4, r5, r6, r7, r8, r9, pc} 3000170c: 300193dc .word 0x300193dc 3000172c : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 3000172c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 30001730: e2517000 subs r7, r1, #0 const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { 30001734: e24dd018 sub sp, sp, #24 30001738: e1a06000 mov r6, r0 3000173c: e1a09002 mov r9, r2 30001740: e1a0b003 mov fp, r3 30001744: e59da03c ldr sl, [sp, #60] ; 0x3c /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { 30001748: 0a000001 beq 30001754 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && 3000174c: e3520001 cmp r2, #1 30001750: 9a000002 bls 30001760 options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; 30001754: eb002cad bl 3000ca10 <__errno> 30001758: e3a03016 mov r3, #22 3000175c: ea000014 b 300017b4 return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { 30001760: e5975024 ldr r5, [r7, #36] ; 0x24 30001764: e3550000 cmp r5, #0 30001768: 1a000004 bne 30001780 errno = ENOTSUP; 3000176c: eb002ca7 bl 3000ca10 <__errno> <== NOT EXECUTED 30001770: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001774: e5803000 str r3, [r0] <== NOT EXECUTED 30001778: e1a08005 mov r8, r5 <== NOT EXECUTED goto cleanup_and_bail; 3000177c: ea00006d b 30001938 <== NOT EXECUTED /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) 30001780: e3530000 cmp r3, #0 30001784: 03a0006c moveq r0, #108 ; 0x6c 30001788: 0a000002 beq 30001798 size += strlen( device ) + 1; 3000178c: e1a00003 mov r0, r3 <== NOT EXECUTED 30001790: eb00308f bl 3000d9d4 <== NOT EXECUTED 30001794: e280006d add r0, r0, #109 ; 0x6d <== NOT EXECUTED temp_mt_entry = malloc( size ); 30001798: eb001d66 bl 30008d38 if ( !temp_mt_entry ) { 3000179c: e3500000 cmp r0, #0 */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); 300017a0: e1a04000 mov r4, r0 300017a4: e1a08000 mov r8, r0 if ( !temp_mt_entry ) { 300017a8: 1a000003 bne 300017bc errno = ENOMEM; 300017ac: eb002c97 bl 3000ca10 <__errno> <== NOT EXECUTED 300017b0: e3a0300c mov r3, #12 <== NOT EXECUTED 300017b4: e5803000 str r3, [r0] 300017b8: ea00006a b 30001968 return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { 300017bc: e35b0000 cmp fp, #0 errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; 300017c0: e5809030 str r9, [r0, #48] ; 0x30 if ( !temp_mt_entry ) { errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; 300017c4: 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; 300017c8: 0580b068 streq fp, [r0, #104] ; 0x68 temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); 300017cc: 1280306c addne r3, r0, #108 ; 0x6c strcpy( temp_mt_entry->dev, device ); 300017d0: 11a00003 movne r0, r3 300017d4: 11a0100b movne r1, fp } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = 300017d8: 15843068 strne r3, [r4, #104] ; 0x68 (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); 300017dc: 1b003040 blne 3000d8e4 /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { 300017e0: e35a0000 cmp sl, #0 300017e4: 0a000035 beq 300018c0 if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 300017e8: e1a0000a mov r0, sl 300017ec: eb003078 bl 3000d9d4 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 300017f0: e28d5004 add r5, sp, #4 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) 300017f4: e1a01000 mov r1, r0 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( 300017f8: e3a0c001 mov ip, #1 300017fc: e1a0000a mov r0, sl 30001800: e3a02007 mov r2, #7 30001804: e1a03005 mov r3, r5 30001808: e58dc000 str ip, [sp] 3000180c: ebfffed3 bl 30001360 30001810: e3700001 cmn r0, #1 30001814: 0a000046 beq 30001934 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { 30001818: e59d3010 ldr r3, [sp, #16] 3000181c: e5933010 ldr r3, [r3, #16] 30001820: e3530000 cmp r3, #0 30001824: 1a000002 bne 30001834 errno = ENOTSUP; 30001828: eb002c78 bl 3000ca10 <__errno> <== NOT EXECUTED 3000182c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001830: ea000006 b 30001850 <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 30001834: e1a00005 mov r0, r5 30001838: e1a0e00f mov lr, pc 3000183c: e12fff13 bx r3 30001840: e3500001 cmp r0, #1 30001844: 0a000003 beq 30001858 errno = ENOTDIR; 30001848: eb002c70 bl 3000ca10 <__errno> 3000184c: e3a03014 mov r3, #20 30001850: e5803000 str r3, [r0] goto cleanup_and_bail; 30001854: ea000037 b 30001938 /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 30001858: e59f2140 ldr r2, [pc, #320] ; 300019a0 !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 ) 3000185c: e59d1004 ldr r1, [sp, #4] /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; 30001860: e4923004 ldr r3, [r2], #4 30001864: ea000003 b 30001878 !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 ) 30001868: e593001c ldr r0, [r3, #28] 3000186c: e1500001 cmp r0, r1 30001870: 0a000003 beq 30001884 * 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 ) { 30001874: e5933000 ldr r3, [r3] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 30001878: e1530002 cmp r3, r2 3000187c: 1afffff9 bne 30001868 30001880: ea00003b b 30001974 /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; 30001884: eb002c61 bl 3000ca10 <__errno> 30001888: e3a03010 mov r3, #16 3000188c: ea000001 b 30001898 * 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; 30001890: eb002c5e bl 3000ca10 <__errno> <== NOT EXECUTED 30001894: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001898: e5803000 str r3, [r0] 3000189c: e28d5004 add r5, sp, #4 goto cleanup_and_bail; 300018a0: ea000024 b 30001938 } if ( loc.ops->mount_h( temp_mt_entry ) ) { 300018a4: e1a00004 mov r0, r4 300018a8: e1a0e00f mov lr, pc 300018ac: e12fff13 bx r3 300018b0: e3500000 cmp r0, #0 300018b4: e28d5004 add r5, sp, #4 300018b8: 0a000008 beq 300018e0 300018bc: ea00001d b 30001938 <== 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; 300018c0: e584a01c str sl, [r4, #28] temp_mt_entry->mt_fs_root.handlers = NULL; 300018c4: e584a024 str sl, [r4, #36] ; 0x24 temp_mt_entry->mt_fs_root.ops = NULL; 300018c8: e584a028 str sl, [r4, #40] ; 0x28 temp_mt_entry->mt_point_node.node_access = NULL; 300018cc: e584a008 str sl, [r4, #8] temp_mt_entry->mt_point_node.handlers = NULL; 300018d0: e584a010 str sl, [r4, #16] temp_mt_entry->mt_point_node.ops = NULL; 300018d4: e584a014 str sl, [r4, #20] temp_mt_entry->mt_point_node.mt_entry = NULL; 300018d8: e584a018 str sl, [r4, #24] 300018dc: e1a0500a mov r5, sl } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { 300018e0: e1a00004 mov r0, r4 300018e4: e1a0e00f mov lr, pc 300018e8: e597f024 ldr pc, [r7, #36] ; 0x24 300018ec: e2507000 subs r7, r0, #0 300018f0: 0a000007 beq 30001914 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { 300018f4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 300018f8: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED 300018fc: e3530000 cmp r3, #0 <== NOT EXECUTED 30001900: 0a00000c beq 30001938 <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); 30001904: e1a00004 mov r0, r4 <== NOT EXECUTED 30001908: e1a0e00f mov lr, pc <== NOT EXECUTED 3000190c: e12fff13 bx r3 <== NOT EXECUTED 30001910: ea000008 b 30001938 <== 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 ); 30001914: e59f0084 ldr r0, [pc, #132] ; 300019a0 30001918: e1a01004 mov r1, r4 3000191c: eb000cc5 bl 30004c38 <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) 30001920: e3560000 cmp r6, #0 30001924: 01a00006 moveq r0, r6 *mt_entry = temp_mt_entry; 30001928: 15864000 strne r4, [r6] 3000192c: 11a00007 movne r0, r7 30001930: ea00000d b 3000196c 30001934: e3a05000 mov r5, #0 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); 30001938: e1a00008 mov r0, r8 3000193c: eb001bb3 bl 30008810 if ( loc_to_free ) 30001940: e3550000 cmp r5, #0 30001944: 0a000007 beq 30001968 rtems_filesystem_freenode( loc_to_free ); 30001948: e595300c ldr r3, [r5, #12] 3000194c: e3530000 cmp r3, #0 30001950: 0a000004 beq 30001968 30001954: e593301c ldr r3, [r3, #28] 30001958: e3530000 cmp r3, #0 3000195c: 11a00005 movne r0, r5 30001960: 11a0e00f movne lr, pc 30001964: 112fff13 bxne r3 30001968: e3e00000 mvn r0, #0 return -1; } 3000196c: e28dd018 add sp, sp, #24 30001970: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} * 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; 30001974: e59d2010 ldr r2, [sp, #16] * 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; 30001978: e5841008 str r1, [r4, #8] temp_mt_entry->mt_point_node.handlers = loc.handlers; 3000197c: 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 ){ 30001980: 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; 30001984: 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; 30001988: 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 ){ 3000198c: e3530000 cmp r3, #0 */ 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; temp_mt_entry->mt_point_node.mt_entry = loc.mt_entry; 30001990: 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; 30001994: 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 ){ 30001998: 1affffc1 bne 300018a4 3000199c: eaffffbb b 30001890 <== NOT EXECUTED 300019a0: 30019bbc .word 0x30019bbc 30001a14 : */ int newlib_free_buffers( FILE *fp ) { 30001a14: e92d4010 push {r4, lr} 30001a18: e1a04000 mov r4, r0 switch ( fileno(fp) ) { 30001a1c: eb002cfa bl 3000ce0c 30001a20: e3500002 cmp r0, #2 30001a24: 8a00000b bhi 30001a58 case 0: case 1: case 2: if (fp->_flags & __SMBF) { 30001a28: e1d430bc ldrh r3, [r4, #12] 30001a2c: e3130080 tst r3, #128 ; 0x80 30001a30: 0a00000a beq 30001a60 free( fp->_bf._base ); 30001a34: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30001a38: eb001b74 bl 30008810 <== NOT EXECUTED fp->_flags &= ~__SMBF; 30001a3c: e1d420bc ldrh r2, [r4, #12] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001a40: e3a03000 mov r3, #0 <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 30001a44: e3c22080 bic r2, r2, #128 ; 0x80 <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001a48: e5843010 str r3, [r4, #16] <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; 30001a4c: e1c420bc strh r2, [r4, #12] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; 30001a50: e5843000 str r3, [r4] <== NOT EXECUTED 30001a54: ea000001 b 30001a60 <== NOT EXECUTED } break; default: fclose(fp); 30001a58: e1a00004 mov r0, r4 <== NOT EXECUTED 30001a5c: eb002c38 bl 3000cb44 <== NOT EXECUTED } return 0; } 30001a60: e3a00000 mov r0, #0 30001a64: e8bd8010 pop {r4, pc} 30001c88 : int open( const char *pathname, int flags, ... ) { 30001c88: e92d000e push {r1, r2, r3} 30001c8c: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} 30001c90: e24dd01c sub sp, sp, #28 30001c94: e59d503c ldr r5, [sp, #60] ; 0x3c 30001c98: e1a06000 mov r6, r0 /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; 30001c9c: e2853001 add r3, r5, #1 if ( ( status & _FREAD ) == _FREAD ) 30001ca0: e2138001 ands r8, r3, #1 30001ca4: 13a08004 movne r8, #4 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) 30001ca8: e3130002 tst r3, #2 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); mode = va_arg( ap, int ); 30001cac: 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; 30001cb0: 13888002 orrne r8, r8, #2 va_start(ap, flags); mode = va_arg( ap, int ); 30001cb4: e58d3018 str r3, [sp, #24] 30001cb8: e59d9040 ldr r9, [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(); 30001cbc: eb001bc3 bl 30008bd0 if ( iop == 0 ) { 30001cc0: e2504000 subs r4, r0, #0 30001cc4: 03a05017 moveq r5, #23 30001cc8: 0a000077 beq 30001eac /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); 30001ccc: e1a00006 mov r0, r6 30001cd0: eb002f3f bl 3000d9d4 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 30001cd4: e28d7004 add r7, sp, #4 pathname, strlen( pathname ), eval_flags, &loc, true ); 30001cd8: e1a01000 mov r1, r0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( 30001cdc: e1a02008 mov r2, r8 30001ce0: e1a00006 mov r0, r6 30001ce4: e3a08001 mov r8, #1 30001ce8: e1a03007 mov r3, r7 30001cec: e58d8000 str r8, [sp] 30001cf0: ebfffd9a bl 30001360 pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { 30001cf4: e3700001 cmn r0, #1 30001cf8: 1a00001f bne 30001d7c if ( errno != ENOENT ) { 30001cfc: eb002b43 bl 3000ca10 <__errno> 30001d00: e5903000 ldr r3, [r0] 30001d04: e3530002 cmp r3, #2 30001d08: 1a00000a bne 30001d38 rc = errno; goto done; } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { 30001d0c: e215ac02 ands sl, r5, #512 ; 0x200 30001d10: 01a0700a moveq r7, sl 30001d14: 01a05003 moveq r5, r3 30001d18: 0a000056 beq 30001e78 rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); 30001d1c: e1a00006 mov r0, r6 30001d20: e3891902 orr r1, r9, #32768 ; 0x8000 30001d24: e3a02000 mov r2, #0 30001d28: e3a03000 mov r3, #0 30001d2c: ebfffe26 bl 300015cc if ( rc ) { 30001d30: e250a000 subs sl, r0, #0 30001d34: 0a000003 beq 30001d48 rc = errno; 30001d38: eb002b34 bl 3000ca10 <__errno> 30001d3c: e3a07000 mov r7, #0 30001d40: e5905000 ldr r5, [r0] goto done; 30001d44: ea000049 b 30001e70 } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true ); 30001d48: e1a00006 mov r0, r6 30001d4c: eb002f20 bl 3000d9d4 30001d50: e1a03007 mov r3, r7 30001d54: e1a01000 mov r1, r0 30001d58: e1a0200a mov r2, sl 30001d5c: e1a00006 mov r0, r6 30001d60: e58d8000 str r8, [sp] 30001d64: ebfffd7d bl 30001360 if ( status != 0 ) { /* The file did not exist */ 30001d68: e3500000 cmp r0, #0 30001d6c: 11a0700a movne r7, sl 30001d70: 13a0500d movne r5, #13 30001d74: 1a00003f bne 30001e78 30001d78: ea000003 b 30001d8c rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { 30001d7c: e2053c0a and r3, r5, #2560 ; 0xa00 30001d80: e3530c0a cmp r3, #2560 ; 0xa00 30001d84: 03a05011 moveq r5, #17 30001d88: 0a00003a beq 30001e78 * 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; 30001d8c: e28d701c add r7, sp, #28 30001d90: e5373018 ldr r3, [r7, #-24]! iop->flags |= rtems_libio_fcntl_flags( flags ); 30001d94: e1a00005 mov r0, r5 * 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; 30001d98: e5843038 str r3, [r4, #56] ; 0x38 /* * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; 30001d9c: e59d300c ldr r3, [sp, #12] iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 30001da0: 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; 30001da4: e584303c str r3, [r4, #60] ; 0x3c iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 30001da8: eb001bb5 bl 30008c84 iop->pathinfo = loc; 30001dac: e284c018 add ip, r4, #24 * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); 30001db0: e180e008 orr lr, r0, r8 iop->pathinfo = loc; 30001db4: e8b7000f ldm r7!, {r0, r1, r2, r3} 30001db8: e8ac000f stmia ip!, {r0, r1, r2, r3} if ( !iop->handlers || !iop->handlers->open_h ) { 30001dbc: 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; 30001dc0: e5972000 ldr r2, [r7] if ( !iop->handlers || !iop->handlers->open_h ) { 30001dc4: e3530000 cmp r3, #0 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; 30001dc8: 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 ); 30001dcc: e584e014 str lr, [r4, #20] iop->pathinfo = loc; if ( !iop->handlers || !iop->handlers->open_h ) { 30001dd0: 0a000041 beq 30001edc 30001dd4: e593c000 ldr ip, [r3] 30001dd8: e35c0000 cmp ip, #0 30001ddc: 0a00003e beq 30001edc rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); 30001de0: e1a01006 mov r1, r6 30001de4: e1a03009 mov r3, r9 30001de8: e1a00004 mov r0, r4 30001dec: e1a02005 mov r2, r5 30001df0: e1a0e00f mov lr, pc 30001df4: e12fff1c bx ip if ( rc ) { 30001df8: e3500000 cmp r0, #0 30001dfc: 0a000003 beq 30001e10 rc = errno; 30001e00: eb002b02 bl 3000ca10 <__errno> 30001e04: e28d7004 add r7, sp, #4 30001e08: e5905000 ldr r5, [r0] goto done; 30001e0c: ea000017 b 30001e70 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { 30001e10: e3150b01 tst r5, #1024 ; 0x400 30001e14: 0a000028 beq 30001ebc rc = ftruncate( iop - rtems_libio_iops, 0 ); 30001e18: e59f30c8 ldr r3, [pc, #200] ; 30001ee8 30001e1c: e3a01000 mov r1, #0 30001e20: e5930000 ldr r0, [r3] 30001e24: e3a02000 mov r2, #0 30001e28: e0600004 rsb r0, r0, r4 30001e2c: e1a00340 asr r0, r0, #6 30001e30: eb001a9f bl 300088b4 if ( rc ) { 30001e34: e2505000 subs r5, r0, #0 30001e38: 0a00001f beq 30001ebc if(errno) rc = errno; 30001e3c: eb002af3 bl 3000ca10 <__errno> <== NOT EXECUTED 30001e40: e5903000 ldr r3, [r0] <== NOT EXECUTED 30001e44: e3530000 cmp r3, #0 <== NOT EXECUTED 30001e48: 0a000001 beq 30001e54 <== NOT EXECUTED 30001e4c: eb002aef bl 3000ca10 <__errno> <== NOT EXECUTED 30001e50: e5905000 ldr r5, [r0] <== NOT EXECUTED close( iop - rtems_libio_iops ); 30001e54: e59f308c ldr r3, [pc, #140] ; 30001ee8 <== NOT EXECUTED 30001e58: e5933000 ldr r3, [r3] <== NOT EXECUTED 30001e5c: e0634004 rsb r4, r3, r4 <== NOT EXECUTED 30001e60: e1a00344 asr r0, r4, #6 <== NOT EXECUTED 30001e64: eb001a40 bl 3000876c <== NOT EXECUTED 30001e68: e3a04000 mov r4, #0 <== NOT EXECUTED 30001e6c: e1a07004 mov r7, r4 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { 30001e70: e3550000 cmp r5, #0 30001e74: 0a000010 beq 30001ebc if ( iop ) 30001e78: e3540000 cmp r4, #0 rtems_libio_free( iop ); 30001e7c: 11a00004 movne r0, r4 30001e80: 1b001b3b blne 30008b74 if ( loc_to_free ) 30001e84: e3570000 cmp r7, #0 30001e88: 0a000007 beq 30001eac rtems_filesystem_freenode( loc_to_free ); 30001e8c: e597300c ldr r3, [r7, #12] 30001e90: e3530000 cmp r3, #0 30001e94: 0a000004 beq 30001eac 30001e98: e593301c ldr r3, [r3, #28] 30001e9c: e3530000 cmp r3, #0 30001ea0: 11a00007 movne r0, r7 30001ea4: 11a0e00f movne lr, pc 30001ea8: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( rc ); 30001eac: eb002ad7 bl 3000ca10 <__errno> 30001eb0: e5805000 str r5, [r0] 30001eb4: e3e00000 mvn r0, #0 30001eb8: ea000003 b 30001ecc } return iop - rtems_libio_iops; 30001ebc: e59f3024 ldr r3, [pc, #36] ; 30001ee8 30001ec0: e5930000 ldr r0, [r3] 30001ec4: e0604004 rsb r4, r0, r4 30001ec8: e1a00344 asr r0, r4, #6 } 30001ecc: e28dd01c add sp, sp, #28 30001ed0: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr} 30001ed4: e28dd00c add sp, sp, #12 30001ed8: e12fff1e bx lr if ( loc_to_free ) rtems_filesystem_freenode( loc_to_free ); rtems_set_errno_and_return_minus_one( rc ); } return iop - rtems_libio_iops; 30001edc: e28d7004 add r7, sp, #4 <== NOT EXECUTED 30001ee0: e3a05086 mov r5, #134 ; 0x86 <== NOT EXECUTED 30001ee4: eaffffe3 b 30001e78 <== NOT EXECUTED 30001ee8: 30019b84 .word 0x30019b84 30001c24 : int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { 30001c24: e3a01000 mov r1, #0 /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { 30001c28: 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) { 30001c2c: e59f0048 ldr r0, [pc, #72] ; 30001c7c 30001c30: e1a02001 mov r2, r1 30001c34: eb000013 bl 30001c88 30001c38: e3700001 cmn r0, #1 30001c3c: 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) 30001c40: e59f0034 ldr r0, [pc, #52] ; 30001c7c 30001c44: e3a01001 mov r1, #1 30001c48: e3a02000 mov r2, #0 30001c4c: eb00000d bl 30001c88 30001c50: e3700001 cmn r0, #1 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ 30001c54: 059f0024 ldreq r0, [pc, #36] ; 30001c80 /* * 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) 30001c58: 0a000006 beq 30001c78 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) 30001c5c: e59f0018 ldr r0, [pc, #24] ; 30001c7c 30001c60: e3a01001 mov r1, #1 30001c64: e3a02000 mov r2, #0 30001c68: eb000006 bl 30001c88 30001c6c: e3700001 cmn r0, #1 30001c70: 149df004 popne {pc} ; (ldrne pc, [sp], #4) rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ 30001c74: e59f0008 ldr r0, [pc, #8] ; 30001c84 <== NOT EXECUTED 30001c78: eb000b33 bl 3000494c <== NOT EXECUTED 30001c7c: 30018cb7 .word 0x30018cb7 30001c80: 55544431 .word 0x55544431 30001c84: 55544432 .word 0x55544432 300025b0 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 300025b0: e92d4011 push {r0, r4, lr} int i; if (tty->termios.c_oflag & OPOST) { 300025b4: e5913034 ldr r3, [r1, #52] ; 0x34 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 300025b8: e1a04001 mov r4, r1 int i; if (tty->termios.c_oflag & OPOST) { 300025bc: e3130001 tst r3, #1 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { 300025c0: e5cd0000 strb r0, [sp] int i; if (tty->termios.c_oflag & OPOST) { 300025c4: 0a000047 beq 300026e8 switch (c) { 300025c8: e5dd2000 ldrb r2, [sp] 300025cc: e2421008 sub r1, r2, #8 300025d0: e3510005 cmp r1, #5 300025d4: 979ff101 ldrls pc, [pc, r1, lsl #2] 300025d8: ea00002e b 30002698 300025dc: 30002684 .word 0x30002684 <== NOT EXECUTED 300025e0: 30002658 .word 0x30002658 <== NOT EXECUTED 300025e4: 300025f4 .word 0x300025f4 <== NOT EXECUTED 300025e8: 30002698 .word 0x30002698 <== NOT EXECUTED 300025ec: 30002698 .word 0x30002698 <== NOT EXECUTED 300025f0: 30002620 .word 0x30002620 <== NOT EXECUTED case '\n': if (tty->termios.c_oflag & ONLRET) 300025f4: e3130020 tst r3, #32 tty->column = 0; 300025f8: 13a03000 movne r3, #0 300025fc: 15843028 strne r3, [r4, #40] ; 0x28 if (tty->termios.c_oflag & ONLCR) { 30002600: e5943034 ldr r3, [r4, #52] ; 0x34 30002604: e3130004 tst r3, #4 30002608: 0a000036 beq 300026e8 rtems_termios_puts ("\r", 1, tty); 3000260c: e59f00e8 ldr r0, [pc, #232] ; 300026fc 30002610: e3a01001 mov r1, #1 30002614: e1a02004 mov r2, r4 30002618: ebffffa0 bl 300024a0 3000261c: ea00000b b 30002650 tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) 30002620: e3130010 tst r3, #16 <== NOT EXECUTED 30002624: 0a000002 beq 30002634 <== NOT EXECUTED 30002628: e5942028 ldr r2, [r4, #40] ; 0x28 <== NOT EXECUTED 3000262c: e3520000 cmp r2, #0 <== NOT EXECUTED 30002630: 0a000030 beq 300026f8 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { 30002634: e2132008 ands r2, r3, #8 <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) tty->column = 0; break; } tty->column = 0; 30002638: 05842028 streq r2, [r4, #40] ; 0x28 <== NOT EXECUTED break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) return; if (tty->termios.c_oflag & OCRNL) { 3000263c: 0a000029 beq 300026e8 <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) 30002640: 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'; 30002644: e3a0300a mov r3, #10 <== NOT EXECUTED 30002648: e5cd3000 strb r3, [sp] <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) 3000264c: 0a000025 beq 300026e8 <== NOT EXECUTED tty->column = 0; 30002650: e3a03000 mov r3, #0 30002654: ea000022 b 300026e4 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 30002658: e5942028 ldr r2, [r4, #40] ; 0x28 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 3000265c: e2033b06 and r3, r3, #6144 ; 0x1800 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 30002660: e2021007 and r1, r2, #7 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 30002664: e3530b06 cmp r3, #6144 ; 0x1800 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); 30002668: e2611008 rsb r1, r1, #8 3000266c: e0813002 add r3, r1, r2 if ((tty->termios.c_oflag & TABDLY) == XTABS) { 30002670: 1a00001b bne 300026e4 tty->column += i; 30002674: e5843028 str r3, [r4, #40] ; 0x28 rtems_termios_puts ( " ", i, tty); 30002678: e1a02004 mov r2, r4 3000267c: e59f007c ldr r0, [pc, #124] ; 30002700 30002680: ea00001b b 300026f4 } tty->column += i; break; case '\b': if (tty->column > 0) 30002684: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED 30002688: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; 3000268c: c2433001 subgt r3, r3, #1 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) 30002690: ca000013 bgt 300026e4 <== NOT EXECUTED 30002694: ea000013 b 300026e8 <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) 30002698: e3130002 tst r3, #2 3000269c: 0a000007 beq 300026c0 c = toupper(c); 300026a0: e59f305c ldr r3, [pc, #92] ; 30002704 <== NOT EXECUTED 300026a4: e5933000 ldr r3, [r3] <== NOT EXECUTED 300026a8: e0833002 add r3, r3, r2 <== NOT EXECUTED 300026ac: e5d33001 ldrb r3, [r3, #1] <== NOT EXECUTED 300026b0: e2033003 and r3, r3, #3 <== NOT EXECUTED 300026b4: e3530002 cmp r3, #2 <== NOT EXECUTED 300026b8: 02422020 subeq r2, r2, #32 <== NOT EXECUTED 300026bc: e5cd2000 strb r2, [sp] <== NOT EXECUTED if (!iscntrl(c)) 300026c0: e59f203c ldr r2, [pc, #60] ; 30002704 300026c4: e5dd3000 ldrb r3, [sp] 300026c8: e5922000 ldr r2, [r2] 300026cc: e0823003 add r3, r2, r3 300026d0: e5d33001 ldrb r3, [r3, #1] 300026d4: e3130020 tst r3, #32 300026d8: 1a000002 bne 300026e8 tty->column++; 300026dc: e5943028 ldr r3, [r4, #40] ; 0x28 300026e0: e2833001 add r3, r3, #1 300026e4: e5843028 str r3, [r4, #40] ; 0x28 break; } } rtems_termios_puts (&c, 1, tty); 300026e8: e1a02004 mov r2, r4 300026ec: e1a0000d mov r0, sp 300026f0: e3a01001 mov r1, #1 300026f4: ebffff69 bl 300024a0 } 300026f8: e8bd8018 pop {r3, r4, pc} 300026fc: 30018e49 .word 0x30018e49 30002700: 30018d1a .word 0x30018d1a 30002704: 30019484 .word 0x30019484 3000c000 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 3000c000: e92d4070 push {r4, r5, r6, lr} 3000c004: 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) 3000c008: e28d5004 add r5, sp, #4 3000c00c: e3a0c001 mov ip, #1 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 3000c010: e1a04000 mov r4, 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) 3000c014: e3a01003 mov r1, #3 3000c018: e59f0140 ldr r0, [pc, #320] ; 3000c160 3000c01c: e3a02007 mov r2, #7 3000c020: e1a03005 mov r3, r5 3000c024: e58dc000 str ip, [sp] 3000c028: ebffd4cc bl 30001360 3000c02c: e3500000 cmp r0, #0 3000c030: 0a000009 beq 3000c05c != 0) { if (errno != ENOENT) 3000c034: eb000275 bl 3000ca10 <__errno> 3000c038: e5903000 ldr r3, [r0] 3000c03c: e3530002 cmp r3, #2 3000c040: 1a000043 bne 3000c154 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 3000c044: e59f0114 ldr r0, [pc, #276] ; 3000c160 3000c048: e59f1114 ldr r1, [pc, #276] ; 3000c164 3000c04c: ebffd55a bl 300015bc 3000c050: e3500000 cmp r0, #0 3000c054: 0a000008 beq 3000c07c 3000c058: ea00003d b 3000c154 <== NOT EXECUTED return -1; } else rtems_filesystem_freenode(&loc); 3000c05c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 3000c060: e3530000 cmp r3, #0 <== NOT EXECUTED 3000c064: 0a000004 beq 3000c07c <== NOT EXECUTED 3000c068: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000c06c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000c070: 11a00005 movne r0, r5 <== NOT EXECUTED 3000c074: 11a0e00f movne lr, pc <== NOT EXECUTED 3000c078: 112fff13 bxne r3 <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 3000c07c: e28d5018 add r5, sp, #24 3000c080: e59f10e0 ldr r1, [pc, #224] ; 3000c168 3000c084: e3a0200a mov r2, #10 3000c088: e1a00005 mov r0, r5 3000c08c: eb00046d bl 3000d248 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 3000c090: e59f30d4 ldr r3, [pc, #212] ; 3000c16c 3000c094: e59f10d4 ldr r1, [pc, #212] ; 3000c170 3000c098: e1d3c0b0 ldrh ip, [r3] 3000c09c: e285000a add r0, r5, #10 3000c0a0: e1a0200c mov r2, ip 3000c0a4: e28cc001 add ip, ip, #1 3000c0a8: e1c3c0b0 strh ip, [r3] 3000c0ac: eb00050b bl 3000d4e0 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 3000c0b0: e1a00005 mov r0, r5 3000c0b4: e3a01d06 mov r1, #384 ; 0x180 3000c0b8: eb00003f bl 3000c1bc 3000c0bc: e2506000 subs r6, r0, #0 3000c0c0: 0a000001 beq 3000c0cc if (errno != EEXIST){ 3000c0c4: eb000251 bl 3000ca10 <__errno> <== NOT EXECUTED 3000c0c8: ea000021 b 3000c154 <== NOT EXECUTED return -1; sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); } /* Non-blocking open to avoid waiting for writers */ filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK); 3000c0cc: e1a00005 mov r0, r5 3000c0d0: e3a01901 mov r1, #16384 ; 0x4000 3000c0d4: ebffd6eb bl 30001c88 if (filsdes[0] < 0) { 3000c0d8: 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); 3000c0dc: e5840000 str r0, [r4] if (filsdes[0] < 0) { 3000c0e0: aa000003 bge 3000c0f4 err = errno; 3000c0e4: eb000249 bl 3000ca10 <__errno> 3000c0e8: 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); 3000c0ec: e1a00005 mov r0, r5 3000c0f0: ea000014 b 3000c148 } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 3000c0f4: e59f3078 ldr r3, [pc, #120] ; 3000c174 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); 3000c0f8: 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]); 3000c0fc: e5933000 ldr r3, [r3] <== NOT EXECUTED 3000c100: e1500003 cmp r0, r3 <== NOT EXECUTED 3000c104: 359f306c ldrcc r3, [pc, #108] ; 3000c178 <== NOT EXECUTED 3000c108: 35936000 ldrcc r6, [r3] <== NOT EXECUTED 3000c10c: 30866300 addcc r6, r6, r0, lsl #6 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 3000c110: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 3000c114: e28d0018 add r0, sp, #24 <== NOT EXECUTED unlink(fifopath); } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 3000c118: e3c33001 bic r3, r3, #1 <== NOT EXECUTED 3000c11c: e5863014 str r3, [r6, #20] <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 3000c120: ebffd6d8 bl 30001c88 <== NOT EXECUTED if (filsdes[1] < 0) { 3000c124: 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); 3000c128: e5840004 str r0, [r4, #4] <== NOT EXECUTED if (filsdes[1] < 0) { 3000c12c: a3a06000 movge r6, #0 <== NOT EXECUTED 3000c130: aa000003 bge 3000c144 <== NOT EXECUTED err = errno; 3000c134: eb000235 bl 3000ca10 <__errno> <== NOT EXECUTED 3000c138: e5906000 ldr r6, [r0] <== NOT EXECUTED close(filsdes[0]); 3000c13c: e5940000 ldr r0, [r4] <== NOT EXECUTED 3000c140: ebfff189 bl 3000876c <== NOT EXECUTED } unlink(fifopath); 3000c144: e28d0018 add r0, sp, #24 <== NOT EXECUTED 3000c148: eb00001f bl 3000c1cc } rtems_set_errno_and_return_minus_one(err); 3000c14c: eb00022f bl 3000ca10 <__errno> 3000c150: e5806000 str r6, [r0] } 3000c154: e3e00000 mvn r0, #0 3000c158: e28dd028 add sp, sp, #40 ; 0x28 3000c15c: e8bd8070 pop {r4, r5, r6, pc} 3000c160: 30018f92 .word 0x30018f92 3000c164: 000003ff .word 0x000003ff 3000c168: 30018f97 .word 0x30018f97 3000c16c: 30019b06 .word 0x30019b06 3000c170: 30018fa2 .word 0x30018fa2 3000c174: 300191e4 .word 0x300191e4 3000c178: 30019b84 .word 0x30019b84 3000ad04 : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { 3000ad04: e92d4010 push {r4, lr} <== NOT EXECUTED 3000ad08: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); 3000ad0c: e590002c ldr r0, [r0, #44] ; 0x2c <== NOT EXECUTED 3000ad10: eb000325 bl 3000b9ac <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 3000ad14: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000ad18: eb000323 bl 3000b9ac <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 3000ad1c: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000ad20: ebffe54e bl 30004260 <== NOT EXECUTED free(pipe->Buffer); 3000ad24: e5940000 ldr r0, [r4] <== NOT EXECUTED 3000ad28: ebfff6b8 bl 30008810 <== NOT EXECUTED free(pipe); 3000ad2c: e1a00004 mov r0, r4 <== NOT EXECUTED } 3000ad30: e8bd4010 pop {r4, lr} <== NOT EXECUTED { rtems_barrier_delete(pipe->readBarrier); rtems_barrier_delete(pipe->writeBarrier); rtems_semaphore_delete(pipe->Semaphore); free(pipe->Buffer); free(pipe); 3000ad34: eafff6b5 b 30008810 <== NOT EXECUTED 3000a990 : uint32_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { 3000a990: e59f3054 ldr r3, [pc, #84] ; 3000a9ec <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 3000a994: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED if (cmd == FIONREAD) { 3000a998: e1510003 cmp r1, r3 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 3000a99c: e1a04000 mov r4, r0 <== NOT EXECUTED 3000a9a0: e1a05002 mov r5, r2 <== NOT EXECUTED if (cmd == FIONREAD) { 3000a9a4: 13e00015 mvnne r0, #21 <== NOT EXECUTED 3000a9a8: 18bd8070 popne {r4, r5, r6, pc} <== NOT EXECUTED if (buffer == NULL) 3000a9ac: e3520000 cmp r2, #0 <== NOT EXECUTED 3000a9b0: 03e0000d mvneq r0, #13 <== NOT EXECUTED 3000a9b4: 08bd8070 popeq {r4, r5, r6, pc} <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 3000a9b8: e3a01000 mov r1, #0 <== NOT EXECUTED 3000a9bc: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a9c0: e1a02001 mov r2, r1 <== NOT EXECUTED 3000a9c4: ebffe64c bl 300042fc <== NOT EXECUTED 3000a9c8: e2506000 subs r6, r0, #0 <== NOT EXECUTED 3000a9cc: 13e00003 mvnne r0, #3 <== NOT EXECUTED 3000a9d0: 18bd8070 popne {r4, r5, r6, pc} <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 3000a9d4: e594300c ldr r3, [r4, #12] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000a9d8: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 3000a9dc: e5853000 str r3, [r5] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000a9e0: ebffe68b bl 30004414 <== NOT EXECUTED 3000a9e4: e1a00006 mov r0, r6 <== NOT EXECUTED return 0; } return -EINVAL; } 3000a9e8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3000a9ec: 4004667f .word 0x4004667f 3000a928 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 3000a928: e3e0001c mvn r0, #28 <== NOT EXECUTED 3000a92c: e12fff1e bx lr <== NOT EXECUTED 3000a9f0 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 3000a9f0: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED 3000a9f4: e1a09001 mov r9, r1 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 3000a9f8: e3a01000 mov r1, #0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 3000a9fc: e1a04000 mov r4, r0 <== NOT EXECUTED 3000aa00: e1a05002 mov r5, r2 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 3000aa04: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED 3000aa08: e1a02001 mov r2, r1 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 3000aa0c: e1a0a003 mov sl, r3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 3000aa10: ebffe639 bl 300042fc <== NOT EXECUTED 3000aa14: e2506000 subs r6, r0, #0 <== NOT EXECUTED 3000aa18: 13e06003 mvnne r6, #3 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); 3000aa1c: 01a0b00d moveq fp, sp <== NOT EXECUTED rtems_libio_t *iop ) { int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 3000aa20: 0a000045 beq 3000ab3c <== NOT EXECUTED 3000aa24: ea00004b b 3000ab58 <== NOT EXECUTED return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) 3000aa28: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 3000aa2c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000aa30: 0a000043 beq 3000ab44 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 3000aa34: e59a7014 ldr r7, [sl, #20] <== NOT EXECUTED 3000aa38: e2177001 ands r7, r7, #1 <== NOT EXECUTED 3000aa3c: 13e0700a mvnne r7, #10 <== NOT EXECUTED 3000aa40: 1a000040 bne 3000ab48 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; 3000aa44: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000aa48: 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 ++; 3000aa4c: e2833001 add r3, r3, #1 <== NOT EXECUTED 3000aa50: e5843018 str r3, [r4, #24] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000aa54: ebffe66e bl 30004414 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 3000aa58: e1a01007 mov r1, r7 <== NOT EXECUTED 3000aa5c: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000aa60: eb0003ff bl 3000ba64 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000aa64: e1a01007 mov r1, r7 <== NOT EXECUTED 3000aa68: 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)) 3000aa6c: e2507000 subs r7, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000aa70: 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)) 3000aa74: 13e07003 mvnne r7, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000aa78: ebffe61f bl 300042fc <== NOT EXECUTED 3000aa7c: e3500000 cmp r0, #0 <== NOT EXECUTED 3000aa80: 13e07003 mvnne r7, #3 <== NOT EXECUTED 3000aa84: 1a000031 bne 3000ab50 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 3000aa88: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED if (ret != 0) 3000aa8c: e3570000 cmp r7, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 3000aa90: e2433001 sub r3, r3, #1 <== NOT EXECUTED 3000aa94: e5843018 str r3, [r4, #24] <== NOT EXECUTED if (ret != 0) 3000aa98: 1a00002a bne 3000ab48 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 3000aa9c: e594200c ldr r2, [r4, #12] <== NOT EXECUTED 3000aaa0: e3520000 cmp r2, #0 <== NOT EXECUTED 3000aaa4: 0affffdf beq 3000aa28 <== NOT EXECUTED goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; 3000aaa8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 3000aaac: e5948004 ldr r8, [r4, #4] <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); 3000aab0: e0667005 rsb r7, r6, r5 <== NOT EXECUTED 3000aab4: e1520007 cmp r2, r7 <== NOT EXECUTED 3000aab8: 31a07002 movcc r7, r2 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 3000aabc: e0638008 rsb r8, r3, r8 <== NOT EXECUTED 3000aac0: e5941000 ldr r1, [r4] <== NOT EXECUTED if (chunk > chunk1) { 3000aac4: e1570008 cmp r7, r8 <== NOT EXECUTED 3000aac8: e0890006 add r0, r9, r6 <== 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); 3000aacc: d0811003 addle r1, r1, r3 <== NOT EXECUTED 3000aad0: d1a02007 movle r2, r7 <== NOT EXECUTED } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; if (chunk > chunk1) { 3000aad4: da000006 ble 3000aaf4 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 3000aad8: e0811003 add r1, r1, r3 <== NOT EXECUTED 3000aadc: e1a02008 mov r2, r8 <== NOT EXECUTED 3000aae0: eb0009d8 bl 3000d248 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 3000aae4: e0860008 add r0, r6, r8 <== NOT EXECUTED 3000aae8: e5941000 ldr r1, [r4] <== NOT EXECUTED 3000aaec: e0890000 add r0, r9, r0 <== NOT EXECUTED 3000aaf0: e0682007 rsb r2, r8, r7 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 3000aaf4: eb0009d3 bl 3000d248 <== NOT EXECUTED pipe->Start += chunk; 3000aaf8: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED pipe->Start %= pipe->Size; 3000aafc: 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; 3000ab00: e0870000 add r0, r7, r0 <== NOT EXECUTED 3000ab04: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Start %= pipe->Size; 3000ab08: eb002dc7 bl 3001622c <__umodsi3> <== NOT EXECUTED pipe->Length -= chunk; 3000ab0c: e594300c ldr r3, [r4, #12] <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; 3000ab10: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Length -= chunk; 3000ab14: e0673003 rsb r3, r7, r3 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 3000ab18: e3530000 cmp r3, #0 <== NOT EXECUTED pipe->Start = 0; 3000ab1c: 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; 3000ab20: e584300c str r3, [r4, #12] <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) 3000ab24: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 3000ab28: e3530000 cmp r3, #0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 3000ab2c: 15940030 ldrne r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000ab30: 11a0100d movne r1, sp <== NOT EXECUTED 3000ab34: 1b0003b4 blne 3000ba0c <== NOT EXECUTED read += chunk; 3000ab38: e0866007 add r6, r6, r7 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 3000ab3c: e1560005 cmp r6, r5 <== NOT EXECUTED 3000ab40: 3affffd5 bcc 3000aa9c <== NOT EXECUTED 3000ab44: e3a07000 mov r7, #0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 3000ab48: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000ab4c: ebffe630 bl 30004414 <== NOT EXECUTED out_nolock: if (read > 0) 3000ab50: e3560000 cmp r6, #0 <== NOT EXECUTED 3000ab54: d1a06007 movle r6, r7 <== NOT EXECUTED return read; return ret; } 3000ab58: e1a00006 mov r0, r6 <== NOT EXECUTED 3000ab5c: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 3000ad38 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000ad38: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED pipe_control_t *pipe = *pipep; 3000ad3c: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000ad40: e1a05001 mov r5, r1 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 3000ad44: e3a01000 mov r1, #0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000ad48: e1a06000 mov r6, r0 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 3000ad4c: e1a02001 mov r2, r1 <== NOT EXECUTED 3000ad50: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000ad54: ebffe568 bl 300042fc <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 3000ad58: e3500000 cmp r0, #0 <== NOT EXECUTED 3000ad5c: 1a000010 bne 3000ada4 <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 3000ad60: e5955014 ldr r5, [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, 3000ad64: e3a01000 mov r1, #0 <== NOT EXECUTED /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) 3000ad68: e3150002 tst r5, #2 <== NOT EXECUTED pipe->Readers --; 3000ad6c: 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); 3000ad70: e2055006 and r5, r5, #6 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) pipe->Readers --; 3000ad74: 12433001 subne r3, r3, #1 <== NOT EXECUTED 3000ad78: 15843010 strne r3, [r4, #16] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 3000ad7c: e3150004 tst r5, #4 <== NOT EXECUTED pipe->Writers --; 3000ad80: 15943014 ldrne r3, [r4, #20] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 3000ad84: e1a02001 mov r2, r1 <== NOT EXECUTED mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; 3000ad88: 12433001 subne r3, r3, #1 <== NOT EXECUTED 3000ad8c: 15843014 strne r3, [r4, #20] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 3000ad90: e59f3098 ldr r3, [pc, #152] ; 3000ae30 <== NOT EXECUTED 3000ad94: e5930000 ldr r0, [r3] <== NOT EXECUTED 3000ad98: ebffe557 bl 300042fc <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) 3000ad9c: e3500000 cmp r0, #0 <== NOT EXECUTED 3000ada0: 0a000000 beq 3000ada8 <== NOT EXECUTED rtems_fatal_error_occurred(sc); 3000ada4: ebffe6e8 bl 3000494c <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000ada8: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000adac: ebffe598 bl 30004414 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 3000adb0: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3000adb4: e3530000 cmp r3, #0 <== NOT EXECUTED 3000adb8: 1a000006 bne 3000add8 <== NOT EXECUTED 3000adbc: e5947014 ldr r7, [r4, #20] <== NOT EXECUTED 3000adc0: e3570000 cmp r7, #0 <== NOT EXECUTED 3000adc4: 1a000003 bne 3000add8 <== NOT EXECUTED #if 0 /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); 3000adc8: e1a00004 mov r0, r4 <== NOT EXECUTED 3000adcc: ebffffcc bl 3000ad04 <== NOT EXECUTED *pipep = NULL; 3000add0: e5867000 str r7, [r6] <== NOT EXECUTED if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); PIPE_UNLOCK(pipe); if (pipe->Readers == 0 && pipe->Writers == 0) { 3000add4: ea000010 b 3000ae1c <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 3000add8: e2552004 subs r2, r5, #4 <== NOT EXECUTED 3000addc: 13a02001 movne r2, #1 <== NOT EXECUTED 3000ade0: e3530000 cmp r3, #0 <== NOT EXECUTED 3000ade4: 13a02000 movne r2, #0 <== NOT EXECUTED 3000ade8: e3520000 cmp r2, #0 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 3000adec: 15940030 ldrne r0, [r4, #48] ; 0x30 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 3000adf0: 1a000007 bne 3000ae14 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 3000adf4: e5942014 ldr r2, [r4, #20] <== NOT EXECUTED 3000adf8: e2553002 subs r3, r5, #2 <== NOT EXECUTED 3000adfc: 13a03001 movne r3, #1 <== NOT EXECUTED 3000ae00: e3520000 cmp r2, #0 <== NOT EXECUTED 3000ae04: 13a03000 movne r3, #0 <== NOT EXECUTED 3000ae08: e3530000 cmp r3, #0 <== NOT EXECUTED 3000ae0c: 0a000002 beq 3000ae1c <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 3000ae10: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000ae14: e1a0100d mov r1, sp <== NOT EXECUTED 3000ae18: eb0002fb bl 3000ba0c <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 3000ae1c: e59f300c ldr r3, [pc, #12] ; 3000ae30 <== NOT EXECUTED 3000ae20: e5930000 ldr r0, [r3] <== NOT EXECUTED 3000ae24: ebffe57a bl 30004414 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 3000ae28: e3a00000 mov r0, #0 <== NOT EXECUTED 3000ae2c: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED 3000ae30: 30019b00 .word 0x30019b00 3000ab60 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 3000ab60: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 3000ab64: e2525000 subs r5, r2, #0 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 3000ab68: e1a04000 mov r4, r0 <== NOT EXECUTED 3000ab6c: e1a0b001 mov fp, r1 <== NOT EXECUTED 3000ab70: e1a08003 mov r8, r3 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 3000ab74: 01a06005 moveq r6, r5 <== NOT EXECUTED 3000ab78: 0a00005f beq 3000acfc <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) 3000ab7c: e3a01000 mov r1, #0 <== NOT EXECUTED 3000ab80: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED 3000ab84: e1a02001 mov r2, r1 <== NOT EXECUTED 3000ab88: ebffe5db bl 300042fc <== NOT EXECUTED 3000ab8c: e3500000 cmp r0, #0 <== NOT EXECUTED 3000ab90: 13e06003 mvnne r6, #3 <== NOT EXECUTED 3000ab94: 1a000058 bne 3000acfc <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 3000ab98: e5946010 ldr r6, [r4, #16] <== NOT EXECUTED 3000ab9c: e3560000 cmp r6, #0 <== NOT EXECUTED 3000aba0: 0a000022 beq 3000ac30 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 3000aba4: e5949004 ldr r9, [r4, #4] <== NOT EXECUTED 3000aba8: e1a06000 mov r6, r0 <== NOT EXECUTED 3000abac: e1550009 cmp r5, r9 <== NOT EXECUTED 3000abb0: 91a09005 movls r9, r5 <== NOT EXECUTED 3000abb4: 83a09001 movhi r9, #1 <== NOT EXECUTED 3000abb8: ea000043 b 3000accc <== NOT EXECUTED while (written < count) { while (PIPE_SPACE(pipe) < chunk) { if (LIBIO_NODELAY(iop)) { 3000abbc: e5987014 ldr r7, [r8, #20] <== NOT EXECUTED 3000abc0: e2177001 ands r7, r7, #1 <== NOT EXECUTED 3000abc4: 13e0700a mvnne r7, #10 <== NOT EXECUTED 3000abc8: 1a000042 bne 3000acd8 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; 3000abcc: e594301c ldr r3, [r4, #28] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000abd0: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; 3000abd4: e2833001 add r3, r3, #1 <== NOT EXECUTED 3000abd8: e584301c str r3, [r4, #28] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000abdc: ebffe60c bl 30004414 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 3000abe0: e1a01007 mov r1, r7 <== NOT EXECUTED 3000abe4: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000abe8: eb00039d bl 3000ba64 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000abec: e1a01007 mov r1, r7 <== NOT EXECUTED 3000abf0: 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)) 3000abf4: e2507000 subs r7, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000abf8: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 3000abfc: 13e07003 mvnne r7, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000ac00: ebffe5bd bl 300042fc <== NOT EXECUTED 3000ac04: e3500000 cmp r0, #0 <== NOT EXECUTED 3000ac08: 13e07003 mvnne r7, #3 <== NOT EXECUTED 3000ac0c: 1a000038 bne 3000acf4 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 3000ac10: e594301c ldr r3, [r4, #28] <== NOT EXECUTED if (ret != 0) 3000ac14: e3570000 cmp r7, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 3000ac18: e2433001 sub r3, r3, #1 <== NOT EXECUTED 3000ac1c: e584301c str r3, [r4, #28] <== NOT EXECUTED if (ret != 0) 3000ac20: 1a00002c bne 3000acd8 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 3000ac24: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3000ac28: e3530000 cmp r3, #0 <== NOT EXECUTED 3000ac2c: 1a000001 bne 3000ac38 <== NOT EXECUTED 3000ac30: e3e0701f mvn r7, #31 <== NOT EXECUTED 3000ac34: ea000027 b 3000acd8 <== 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) { 3000ac38: e594a004 ldr sl, [r4, #4] <== NOT EXECUTED 3000ac3c: e594200c ldr r2, [r4, #12] <== NOT EXECUTED 3000ac40: e062300a rsb r3, r2, sl <== NOT EXECUTED 3000ac44: e1530009 cmp r3, r9 <== NOT EXECUTED 3000ac48: 3affffdb bcc 3000abbc <== NOT EXECUTED goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); chunk1 = pipe->Size - PIPE_WSTART(pipe); 3000ac4c: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED 3000ac50: e1a0100a mov r1, sl <== NOT EXECUTED 3000ac54: e0820000 add r0, r2, r0 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 3000ac58: e0667005 rsb r7, r6, r5 <== NOT EXECUTED 3000ac5c: e1530007 cmp r3, r7 <== NOT EXECUTED 3000ac60: 31a07003 movcc r7, r3 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 3000ac64: eb002d70 bl 3001622c <__umodsi3> <== NOT EXECUTED 3000ac68: e5943000 ldr r3, [r4] <== NOT EXECUTED 3000ac6c: e060a00a rsb sl, r0, sl <== NOT EXECUTED if (chunk > chunk1) { 3000ac70: e157000a cmp r7, sl <== NOT EXECUTED 3000ac74: e08b1006 add r1, fp, r6 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 3000ac78: d0830000 addle r0, r3, r0 <== NOT EXECUTED 3000ac7c: d1a02007 movle r2, r7 <== NOT EXECUTED } } chunk = MIN(count - written, PIPE_SPACE(pipe)); chunk1 = pipe->Size - PIPE_WSTART(pipe); if (chunk > chunk1) { 3000ac80: da000006 ble 3000aca0 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 3000ac84: e1a0200a mov r2, sl <== NOT EXECUTED 3000ac88: e0830000 add r0, r3, r0 <== NOT EXECUTED 3000ac8c: eb00096d bl 3000d248 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 3000ac90: e08a1006 add r1, sl, r6 <== NOT EXECUTED 3000ac94: e5940000 ldr r0, [r4] <== NOT EXECUTED 3000ac98: e08b1001 add r1, fp, r1 <== NOT EXECUTED 3000ac9c: e06a2007 rsb r2, sl, r7 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 3000aca0: eb000968 bl 3000d248 <== NOT EXECUTED pipe->Length += chunk; 3000aca4: e594300c ldr r3, [r4, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) 3000aca8: e5942018 ldr r2, [r4, #24] <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 3000acac: e0833007 add r3, r3, r7 <== NOT EXECUTED if (pipe->waitingReaders > 0) 3000acb0: e3520000 cmp r2, #0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); pipe->Length += chunk; 3000acb4: e584300c str r3, [r4, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); 3000acb8: 1594002c ldrne r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000acbc: 11a0100d movne r1, sp <== NOT EXECUTED 3000acc0: 1b000351 blne 3000ba0c <== NOT EXECUTED written += chunk; 3000acc4: e0866007 add r6, r6, r7 <== NOT EXECUTED 3000acc8: e3a09001 mov r9, #1 <== NOT EXECUTED } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; while (written < count) { 3000accc: e1560005 cmp r6, r5 <== NOT EXECUTED 3000acd0: 3affffd8 bcc 3000ac38 <== NOT EXECUTED 3000acd4: e3a07000 mov r7, #0 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 3000acd8: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000acdc: ebffe5cc bl 30004414 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) 3000ace0: e3770020 cmn r7, #32 <== NOT EXECUTED 3000ace4: 1a000002 bne 3000acf4 <== NOT EXECUTED kill(getpid(), SIGPIPE); 3000ace8: eb0001fe bl 3000b4e8 <== NOT EXECUTED 3000acec: e3a0100d mov r1, #13 <== NOT EXECUTED 3000acf0: eb00026b bl 3000b6a4 <== NOT EXECUTED #endif if (written > 0) 3000acf4: e3560000 cmp r6, #0 <== NOT EXECUTED 3000acf8: d1a06007 movle r6, r7 <== NOT EXECUTED return written; return ret; } 3000acfc: e1a00006 mov r0, r6 <== NOT EXECUTED 3000ad00: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30017a30 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30017a30: e59f30b0 ldr r3, [pc, #176] ; 30017ae8 ssize_t read( int fd, void *buffer, size_t count ) { 30017a34: e92d4070 push {r4, r5, r6, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30017a38: e5933000 ldr r3, [r3] ssize_t read( int fd, void *buffer, size_t count ) { 30017a3c: e1a05001 mov r5, r1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30017a40: e1500003 cmp r0, r3 30017a44: 2a000005 bcs 30017a60 iop = rtems_libio_iop( fd ); 30017a48: e59f309c ldr r3, [pc, #156] ; 30017aec 30017a4c: e5934000 ldr r4, [r3] 30017a50: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); 30017a54: e5943014 ldr r3, [r4, #20] 30017a58: e3130c01 tst r3, #256 ; 0x100 30017a5c: 1a000002 bne 30017a6c 30017a60: ebffd3ea bl 3000ca10 <__errno> 30017a64: e3a03009 mov r3, #9 30017a68: ea00000f b 30017aac rtems_libio_check_buffer( buffer ); 30017a6c: e3510000 cmp r1, #0 30017a70: 0a000004 beq 30017a88 rtems_libio_check_count( count ); 30017a74: e3520000 cmp r2, #0 30017a78: 01a00002 moveq r0, r2 30017a7c: 08bd8070 popeq {r4, r5, r6, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 30017a80: e3130002 tst r3, #2 30017a84: 1a000002 bne 30017a94 30017a88: ebffd3e0 bl 3000ca10 <__errno> <== NOT EXECUTED 30017a8c: e3a03016 mov r3, #22 <== NOT EXECUTED 30017a90: ea000005 b 30017aac <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 30017a94: e594303c ldr r3, [r4, #60] ; 0x3c 30017a98: e5933008 ldr r3, [r3, #8] 30017a9c: e3530000 cmp r3, #0 30017aa0: 1a000004 bne 30017ab8 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30017aa4: ebffd3d9 bl 3000ca10 <__errno> <== NOT EXECUTED 30017aa8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30017aac: e5803000 str r3, [r0] 30017ab0: e3e00000 mvn r0, #0 30017ab4: e8bd8070 pop {r4, r5, r6, pc} rc = (*iop->handlers->read_h)( iop, buffer, count ); 30017ab8: e1a00004 mov r0, r4 30017abc: e1a0e00f mov lr, pc 30017ac0: e12fff13 bx r3 if ( rc > 0 ) 30017ac4: e3500000 cmp r0, #0 30017ac8: d8bd8070 pople {r4, r5, r6, pc} iop->offset += rc; 30017acc: e284600c add r6, r4, #12 30017ad0: e8960060 ldm r6, {r5, r6} 30017ad4: e0952000 adds r2, r5, r0 30017ad8: e0a63fc0 adc r3, r6, r0, asr #31 30017adc: e584200c str r2, [r4, #12] 30017ae0: e5843010 str r3, [r4, #16] return rc; } 30017ae4: e8bd8070 pop {r4, r5, r6, pc} 30017ae8: 300191e4 .word 0x300191e4 30017aec: 30019b84 .word 0x30019b84 300234b4 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 300234b4: e92d40f0 push {r4, r5, r6, r7, lr} rtems_filesystem_location_info_t loc; int result; if (!buf) 300234b8: e2516000 subs r6, r1, #0 ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 300234bc: e24dd018 sub sp, sp, #24 300234c0: e1a05002 mov r5, r2 300234c4: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if (!buf) 300234c8: 1a000002 bne 300234d8 rtems_set_errno_and_return_minus_one( EFAULT ); 300234cc: eb005701 bl 300390d8 <__errno> <== NOT EXECUTED 300234d0: e3a0300e mov r3, #14 <== NOT EXECUTED 300234d4: ea000028 b 3002357c <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 300234d8: eb007189 bl 3003fb04 300234dc: e28d4004 add r4, sp, #4 300234e0: e3a0c000 mov ip, #0 300234e4: e1a01000 mov r1, r0 300234e8: e1a0200c mov r2, ip 300234ec: e1a00007 mov r0, r7 300234f0: e1a03004 mov r3, r4 300234f4: e58dc000 str ip, [sp] 300234f8: ebff8745 bl 30005214 0, &loc, false ); if ( result != 0 ) 300234fc: e3500000 cmp r0, #0 30023500: 1a00001e bne 30023580 return -1; if ( !loc.ops->node_type_h ){ 30023504: e59d2010 ldr r2, [sp, #16] 30023508: e5923010 ldr r3, [r2, #16] 3002350c: e3530000 cmp r3, #0 30023510: 0a000012 beq 30023560 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ 30023514: e1a00004 mov r0, r4 30023518: e1a0e00f mov lr, pc 3002351c: e12fff13 bx r3 30023520: e3500004 cmp r0, #4 30023524: e59d2010 ldr r2, [sp, #16] 30023528: 0a000009 beq 30023554 rtems_filesystem_freenode( &loc ); 3002352c: e3520000 cmp r2, #0 30023530: 0a000004 beq 30023548 30023534: e592301c ldr r3, [r2, #28] 30023538: e3530000 cmp r3, #0 3002353c: 11a00004 movne r0, r4 30023540: 11a0e00f movne lr, pc 30023544: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( EINVAL ); 30023548: eb0056e2 bl 300390d8 <__errno> 3002354c: e3a03016 mov r3, #22 30023550: ea000009 b 3002357c } if ( !loc.ops->readlink_h ){ 30023554: e592303c ldr r3, [r2, #60] ; 0x3c 30023558: e3530000 cmp r3, #0 3002355c: 1a000009 bne 30023588 rtems_filesystem_freenode( &loc ); 30023560: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30023564: e3530000 cmp r3, #0 <== NOT EXECUTED 30023568: 11a00004 movne r0, r4 <== NOT EXECUTED 3002356c: 11a0e00f movne lr, pc <== NOT EXECUTED 30023570: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30023574: eb0056d7 bl 300390d8 <__errno> <== NOT EXECUTED 30023578: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3002357c: e5803000 str r3, [r0] 30023580: e3e05000 mvn r5, #0 30023584: ea00000d b 300235c0 } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 30023588: e1a02005 mov r2, r5 3002358c: e1a01006 mov r1, r6 30023590: e1a00004 mov r0, r4 30023594: e1a0e00f mov lr, pc 30023598: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 3002359c: 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 ); 300235a0: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 300235a4: e3530000 cmp r3, #0 300235a8: 0a000004 beq 300235c0 300235ac: e593301c ldr r3, [r3, #28] 300235b0: e3530000 cmp r3, #0 300235b4: 11a00004 movne r0, r4 300235b8: 11a0e00f movne lr, pc 300235bc: 112fff13 bxne r3 return result; } 300235c0: e1a00005 mov r0, r5 300235c4: e28dd018 add sp, sp, #24 300235c8: e8bd80f0 pop {r4, r5, r6, r7, pc} 300033d0 : int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 300033d0: e59f3138 ldr r3, [pc, #312] ; 30003510 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 300033d4: 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 ); 300033d8: e5933000 ldr r3, [r3] ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { 300033dc: e1a08002 mov r8, r2 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); 300033e0: e1500003 cmp r0, r3 300033e4: 2a000005 bcs 30003400 iop = rtems_libio_iop( fd ); 300033e8: e59f3124 ldr r3, [pc, #292] ; 30003514 300033ec: e5936000 ldr r6, [r3] 300033f0: e0866300 add r6, r6, r0, lsl #6 rtems_libio_check_is_open( iop ); 300033f4: e5963014 ldr r3, [r6, #20] 300033f8: e3130c01 tst r3, #256 ; 0x100 300033fc: 1a000002 bne 3000340c 30003400: eb002ea9 bl 3000eeac <__errno> <== NOT EXECUTED 30003404: e3a03009 mov r3, #9 <== NOT EXECUTED 30003408: ea00001f b 3000348c <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 3000340c: e3130002 tst r3, #2 30003410: 0a00001b beq 30003484 /* * Argument validation on IO vector */ if ( !iov ) 30003414: e3510000 cmp r1, #0 30003418: 0a000019 beq 30003484 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 3000341c: e3520000 cmp r2, #0 30003420: da000017 ble 30003484 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 30003424: e3520b01 cmp r2, #1024 ; 0x400 30003428: ca000015 bgt 30003484 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) 3000342c: e596303c ldr r3, [r6, #60] ; 0x3c 30003430: e5933008 ldr r3, [r3, #8] 30003434: e3530000 cmp r3, #0 30003438: 1a000002 bne 30003448 rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000343c: eb002e9a bl 3000eeac <__errno> <== NOT EXECUTED 30003440: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30003444: ea000010 b 3000348c <== NOT EXECUTED 30003448: e3a03000 mov r3, #0 3000344c: e1a05001 mov r5, r1 30003450: e1a02001 mov r2, r1 30003454: e1a01003 mov r1, r3 all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ssize_t old; if ( !iov[v].iov_base ) 30003458: e5920000 ldr r0, [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++ ) { 3000345c: e2833001 add r3, r3, #1 ssize_t old; if ( !iov[v].iov_base ) 30003460: e3500000 cmp r0, #0 30003464: 0a000006 beq 30003484 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 30003468: 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++ ) { 3000346c: 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 ) 30003470: e35c0000 cmp ip, #0 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; 30003474: e081000c add r0, r1, ip ssize_t old; if ( !iov[v].iov_base ) rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) 30003478: 0a000001 beq 30003484 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) 3000347c: e1500001 cmp r0, r1 30003480: aa000003 bge 30003494 rtems_set_errno_and_return_minus_one( EINVAL ); 30003484: eb002e88 bl 3000eeac <__errno> 30003488: e3a03016 mov r3, #22 3000348c: e5803000 str r3, [r0] 30003490: ea00000c b 300034c8 * 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++ ) { 30003494: e1530008 cmp r3, r8 30003498: b1a01000 movlt r1, r0 3000349c: baffffed blt 30003458 300034a0: e3a07000 mov r7, #0 300034a4: e1a04007 mov r4, r7 /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); 300034a8: e8950006 ldm r5, {r1, r2} 300034ac: e596303c ldr r3, [r6, #60] ; 0x3c 300034b0: e1a00006 mov r0, r6 300034b4: e1a0e00f mov lr, pc 300034b8: e593f008 ldr pc, [r3, #8] if ( bytes < 0 ) 300034bc: e3500000 cmp r0, #0 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 300034c0: e2877001 add r7, r7, #1 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) 300034c4: aa000001 bge 300034d0 300034c8: e3e04000 mvn r4, #0 300034cc: ea00000d b 30003508 return -1; if ( bytes > 0 ) { 300034d0: 0a000006 beq 300034f0 iop->offset += bytes; 300034d4: e286c00c add ip, r6, #12 <== NOT EXECUTED 300034d8: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED 300034dc: e09b2000 adds r2, fp, r0 <== NOT EXECUTED 300034e0: e0ac3fc0 adc r3, ip, r0, asr #31 <== NOT EXECUTED 300034e4: e586200c str r2, [r6, #12] <== NOT EXECUTED 300034e8: e5863010 str r3, [r6, #16] <== NOT EXECUTED total += bytes; 300034ec: e0844000 add r4, r4, r0 <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) 300034f0: e5953004 ldr r3, [r5, #4] } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 300034f4: e2855008 add r5, r5, #8 if ( bytes > 0 ) { iop->offset += bytes; total += bytes; } if (bytes != iov[ v ].iov_len) 300034f8: e1500003 cmp r0, r3 300034fc: 1a000001 bne 30003508 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 30003500: e1570008 cmp r7, r8 <== NOT EXECUTED 30003504: baffffe7 blt 300034a8 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 30003508: e1a00004 mov r0, r4 3000350c: e8bd89f0 pop {r4, r5, r6, r7, r8, fp, pc} 30003510: 3001db50 .word 0x3001db50 30003514: 3001ecc4 .word 0x3001ecc4 30017b48 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 30017b48: e59f310c ldr r3, [pc, #268] ; 30017c5c /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30017b4c: e59fc10c ldr ip, [pc, #268] ; 30017c60 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 30017b50: e5932010 ldr r2, [r3, #16] /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30017b54: e59cc000 ldr ip, [ip] { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 30017b58: e2822001 add r2, r2, #1 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30017b5c: e35c0003 cmp ip, #3 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 30017b60: e92d40f1 push {r0, r4, r5, r6, r7, lr} 30017b64: e5832010 str r2, [r3, #16] 30017b68: e1a04000 mov r4, r0 30017b6c: e1a05001 mov r5, r1 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 30017b70: 1a000007 bne 30017b94 if (_Thread_Dispatch_disable_level > 0) 30017b74: e59f30e8 ldr r3, [pc, #232] ; 30017c64 30017b78: e5933000 ldr r3, [r3] 30017b7c: e3530000 cmp r3, #0 30017b80: 1a000032 bne 30017c50 return (void *) 0; if (_ISR_Nest_level > 0) 30017b84: e59f30dc ldr r3, [pc, #220] ; 30017c68 30017b88: e5933000 ldr r3, [r3] 30017b8c: e3530000 cmp r3, #0 30017b90: 1a00002e bne 30017c50 } /* * Continue with realloc(). */ if ( !ptr ) 30017b94: e3540000 cmp r4, #0 30017b98: 1a000003 bne 30017bac return malloc( size ); 30017b9c: e1a00005 mov r0, r5 30017ba0: ebffc464 bl 30008d38 30017ba4: e1a04000 mov r4, r0 30017ba8: ea000029 b 30017c54 if ( !size ) { 30017bac: e3550000 cmp r5, #0 30017bb0: 1a000003 bne 30017bc4 free( ptr ); 30017bb4: e1a00004 mov r0, r4 <== NOT EXECUTED 30017bb8: ebffc314 bl 30008810 <== NOT EXECUTED 30017bbc: e1a04005 mov r4, r5 <== NOT EXECUTED return (void *) 0; 30017bc0: ea000023 b 30017c54 <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 30017bc4: e59f60a0 ldr r6, [pc, #160] ; 30017c6c 30017bc8: e1a01004 mov r1, r4 30017bcc: e5960000 ldr r0, [r6] 30017bd0: e1a0200d mov r2, sp 30017bd4: eb000055 bl 30017d30 <_Protected_heap_Get_block_size> 30017bd8: e2507000 subs r7, r0, #0 30017bdc: 1a000004 bne 30017bf4 errno = EINVAL; 30017be0: ebffd38a bl 3000ca10 <__errno> 30017be4: e3a03016 mov r3, #22 30017be8: e5803000 str r3, [r0] 30017bec: e1a04007 mov r4, r7 return (void *) 0; 30017bf0: ea000017 b 30017c54 #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 ) ) { 30017bf4: e5960000 ldr r0, [r6] 30017bf8: e1a01004 mov r1, r4 30017bfc: e1a02005 mov r2, r5 30017c00: eb00005b bl 30017d74 <_Protected_heap_Resize_block> 30017c04: e3500000 cmp r0, #0 30017c08: 1a000011 bne 30017c54 * 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 ); 30017c0c: e1a00005 mov r0, r5 30017c10: ebffc448 bl 30008d38 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 30017c14: e59f3040 ldr r3, [pc, #64] ; 30017c5c if ( !new_area ) { 30017c18: e2506000 subs r6, r0, #0 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 30017c1c: e5932004 ldr r2, [r3, #4] 30017c20: e2422001 sub r2, r2, #1 30017c24: e5832004 str r2, [r3, #4] if ( !new_area ) { 30017c28: 0a000008 beq 30017c50 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 30017c2c: e59d2000 ldr r2, [sp] 30017c30: e1a01004 mov r1, r4 30017c34: e1550002 cmp r5, r2 30017c38: 31a02005 movcc r2, r5 30017c3c: ebffd581 bl 3000d248 free( ptr ); 30017c40: e1a00004 mov r0, r4 30017c44: ebffc2f1 bl 30008810 30017c48: e1a04006 mov r4, r6 return new_area; 30017c4c: ea000000 b 30017c54 30017c50: e3a04000 mov r4, #0 } 30017c54: e1a00004 mov r0, r4 30017c58: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} 30017c5c: 30019b90 .word 0x30019b90 30017c60: 30019e90 .word 0x30019e90 30017c64: 30019cec .word 0x30019cec 30017c68: 30019d7c .word 0x30019d7c 30017c6c: 300191f0 .word 0x300191f0 30006620 : #include int rmdir( const char *pathname ) { 30006620: e92d4070 push {r4, r5, r6, lr} 30006624: e24dd02c sub sp, sp, #44 ; 0x2c 30006628: e1a06000 mov r6, r0 /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); 3000662c: ebfffab0 bl 300050f4 if ( parentpathlen == 0 ) 30006630: e2505000 subs r5, r0, #0 30006634: 1a000015 bne 30006690 rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); 30006638: e5d63000 ldrb r3, [r6] 3000663c: e353002f cmp r3, #47 ; 0x2f 30006640: 1353005c cmpne r3, #92 ; 0x5c 30006644: 0a000001 beq 30006650 30006648: e3530000 cmp r3, #0 <== NOT EXECUTED 3000664c: 1a000005 bne 30006668 <== NOT EXECUTED 30006650: e59f324c ldr r3, [pc, #588] ; 300068a4 30006654: e28dc018 add ip, sp, #24 30006658: e593e000 ldr lr, [r3] 3000665c: e3a04000 mov r4, #0 30006660: e28ee018 add lr, lr, #24 30006664: ea000004 b 3000667c 30006668: e59f3234 ldr r3, [pc, #564] ; 300068a4 <== NOT EXECUTED 3000666c: e28dc018 add ip, sp, #24 <== NOT EXECUTED 30006670: e593e000 ldr lr, [r3] <== NOT EXECUTED 30006674: e1a04005 mov r4, r5 <== NOT EXECUTED 30006678: e28ee004 add lr, lr, #4 <== NOT EXECUTED 3000667c: e8be000f ldm lr!, {r0, r1, r2, r3} 30006680: e8ac000f stmia ip!, {r0, r1, r2, r3} 30006684: e59e3000 ldr r3, [lr] 30006688: e58c3000 str r3, [ip] 3000668c: ea000009 b 300066b8 else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, 30006690: e3a0c000 mov ip, #0 30006694: e1a00006 mov r0, r6 30006698: e1a01005 mov r1, r5 3000669c: e3a02002 mov r2, #2 300066a0: e28d3018 add r3, sp, #24 300066a4: e58dc000 str ip, [sp] 300066a8: ebfffad9 bl 30005214 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 300066ac: e3500000 cmp r0, #0 300066b0: 1a000077 bne 30006894 300066b4: e3a04001 mov r4, #1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 300066b8: e28dc004 add ip, sp, #4 300066bc: e28de018 add lr, sp, #24 300066c0: e8be000f ldm lr!, {r0, r1, r2, r3} 300066c4: e8ac000f stmia ip!, {r0, r1, r2, r3} 300066c8: e59e3000 ldr r3, [lr] name = pathname + parentpathlen; 300066cc: e0865005 add r5, r6, r5 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 300066d0: e58c3000 str r3, [ip] name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 300066d4: e1a00005 mov r0, r5 300066d8: eb00e509 bl 3003fb04 300066dc: e1a01000 mov r1, r0 300066e0: e1a00005 mov r0, r5 300066e4: ebfffa76 bl 300050c4 300066e8: e0856000 add r6, r5, r0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 300066ec: e1a00006 mov r0, r6 300066f0: eb00e503 bl 3003fb04 300066f4: e28d5004 add r5, sp, #4 300066f8: e3a0c000 mov ip, #0 300066fc: e1a01000 mov r1, r0 30006700: e1a0200c mov r2, ip 30006704: e1a00006 mov r0, r6 30006708: e1a03005 mov r3, r5 3000670c: e58dc000 str ip, [sp] 30006710: ebfffa87 bl 30005134 0, &loc, false ); if ( result != 0 ) { 30006714: e3500000 cmp r0, #0 30006718: 0a00000b beq 3000674c if ( free_parentloc ) 3000671c: e3540000 cmp r4, #0 30006720: 0a00005b beq 30006894 rtems_filesystem_freenode( &parentloc ); 30006724: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30006728: e3530000 cmp r3, #0 <== NOT EXECUTED 3000672c: 0a000058 beq 30006894 <== NOT EXECUTED 30006730: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30006734: e3530000 cmp r3, #0 <== NOT EXECUTED 30006738: 0a000055 beq 30006894 <== NOT EXECUTED 3000673c: e28d0018 add r0, sp, #24 <== NOT EXECUTED 30006740: e1a0e00f mov lr, pc <== NOT EXECUTED 30006744: e12fff13 bx r3 <== NOT EXECUTED 30006748: ea000051 b 30006894 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 3000674c: e59d2010 ldr r2, [sp, #16] 30006750: e5923010 ldr r3, [r2, #16] 30006754: e3530000 cmp r3, #0 rtems_filesystem_freenode( &loc ); 30006758: 0592301c ldreq r3, [r2, #28] /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ 3000675c: 0a000021 beq 300067e8 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 ){ 30006760: e1a00005 mov r0, r5 30006764: e1a0e00f mov lr, pc 30006768: e12fff13 bx r3 3000676c: e3500001 cmp r0, #1 30006770: 0a000014 beq 300067c8 rtems_filesystem_freenode( &loc ); 30006774: e59d3010 ldr r3, [sp, #16] 30006778: e3530000 cmp r3, #0 3000677c: 0a000004 beq 30006794 30006780: e593301c ldr r3, [r3, #28] 30006784: e3530000 cmp r3, #0 30006788: 11a00005 movne r0, r5 3000678c: 11a0e00f movne lr, pc 30006790: 112fff13 bxne r3 if ( free_parentloc ) 30006794: e3540000 cmp r4, #0 30006798: 0a000007 beq 300067bc rtems_filesystem_freenode( &parentloc ); 3000679c: e59d3024 ldr r3, [sp, #36] ; 0x24 300067a0: e3530000 cmp r3, #0 300067a4: 0a000004 beq 300067bc 300067a8: e593301c ldr r3, [r3, #28] 300067ac: e3530000 cmp r3, #0 300067b0: 128d0018 addne r0, sp, #24 300067b4: 11a0e00f movne lr, pc 300067b8: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( ENOTDIR ); 300067bc: eb00ca45 bl 300390d8 <__errno> 300067c0: e3a03014 mov r3, #20 300067c4: ea000017 b 30006828 /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ 300067c8: e59d300c ldr r3, [sp, #12] 300067cc: e5933034 ldr r3, [r3, #52] ; 0x34 300067d0: e3530000 cmp r3, #0 300067d4: 1a000015 bne 30006830 rtems_filesystem_freenode( &loc ); 300067d8: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 300067dc: e3530000 cmp r3, #0 <== NOT EXECUTED 300067e0: 0a000004 beq 300067f8 <== NOT EXECUTED 300067e4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300067e8: e3530000 cmp r3, #0 <== NOT EXECUTED 300067ec: 11a00005 movne r0, r5 <== NOT EXECUTED 300067f0: 11a0e00f movne lr, pc <== NOT EXECUTED 300067f4: 112fff13 bxne r3 <== NOT EXECUTED if ( free_parentloc ) 300067f8: e3540000 cmp r4, #0 <== NOT EXECUTED 300067fc: 0a000007 beq 30006820 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 30006800: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30006804: e3530000 cmp r3, #0 <== NOT EXECUTED 30006808: 0a000004 beq 30006820 <== NOT EXECUTED 3000680c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30006810: e3530000 cmp r3, #0 <== NOT EXECUTED 30006814: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 30006818: 11a0e00f movne lr, pc <== NOT EXECUTED 3000681c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30006820: eb00ca2c bl 300390d8 <__errno> <== NOT EXECUTED 30006824: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30006828: e5803000 str r3, [r0] 3000682c: ea000018 b 30006894 } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); 30006830: e28d0018 add r0, sp, #24 30006834: e1a01005 mov r1, r5 30006838: e1a0e00f mov lr, pc 3000683c: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 30006840: 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 ); 30006844: e1a06000 mov r6, r0 rtems_filesystem_freenode( &loc ); 30006848: e3530000 cmp r3, #0 3000684c: 0a000004 beq 30006864 30006850: e593301c ldr r3, [r3, #28] 30006854: e3530000 cmp r3, #0 30006858: 11a00005 movne r0, r5 3000685c: 11a0e00f movne lr, pc 30006860: 112fff13 bxne r3 if ( free_parentloc ) 30006864: e3540000 cmp r4, #0 30006868: 0a00000a beq 30006898 rtems_filesystem_freenode( &parentloc ); 3000686c: e59d3024 ldr r3, [sp, #36] ; 0x24 30006870: e3530000 cmp r3, #0 30006874: 0a000007 beq 30006898 30006878: e593301c ldr r3, [r3, #28] 3000687c: e3530000 cmp r3, #0 30006880: 0a000004 beq 30006898 30006884: e28d0018 add r0, sp, #24 30006888: e1a0e00f mov lr, pc 3000688c: e12fff13 bx r3 30006890: ea000000 b 30006898 30006894: e3e06000 mvn r6, #0 return result; } 30006898: e1a00006 mov r0, r6 3000689c: e28dd02c add sp, sp, #44 ; 0x2c 300068a0: e8bd8070 pop {r4, r5, r6, pc} 300068a4: 3005cdc8 .word 0x3005cdc8 30012338 : sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 30012338: e59f0000 ldr r0, [pc, #0] ; 30012340 <== NOT EXECUTED 3001233c: e12fff1e bx lr <== NOT EXECUTED 30012340: 30024258 .word 0x30024258 3000ec74 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000ec74: e92d4010 push {r4, lr} 3000ec78: e1a04001 mov r4, r1 const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 3000ec7c: eb000006 bl 3000ec9c if (nap) 3000ec80: e3500000 cmp r0, #0 3000ec84: 0a000001 beq 3000ec90 return nap->name; return rtems_assoc_name_bad(local_value); } 3000ec88: e5900000 ldr r0, [r0] 3000ec8c: 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); 3000ec90: e1a00004 mov r0, r4 <== NOT EXECUTED } 3000ec94: 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); 3000ec98: ea000da6 b 30012338 <== NOT EXECUTED 3000c1a8 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000c1a8: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 3000c1ac: eb0001fa bl 3000c99c <== NOT EXECUTED if (nap) 3000c1b0: e3500000 cmp r0, #0 <== NOT EXECUTED return nap->remote_value; 3000c1b4: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED return 0; } 3000c1b8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30001500 : size_t length ) { const char *p; if ( !name ) 30001500: e3500000 cmp r0, #0 const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { 30001504: e92d4070 push {r4, r5, r6, lr} 30001508: e1a04001 mov r4, r1 3000150c: e1a05002 mov r5, r2 const char *p; if ( !name ) 30001510: 0a00001c beq 30001588 return NULL; if ( !value ) 30001514: e3510000 cmp r1, #0 30001518: 0a00001b beq 3000158c return NULL; if ( !length ) 3000151c: e3520000 cmp r2, #0 30001520: 0a000018 beq 30001588 return NULL; value[0] = '\0'; 30001524: e3a06000 mov r6, #0 30001528: e5c16000 strb r6, [r1] p = rtems_bsp_cmdline_get_param_raw( name ); 3000152c: eb000018 bl 30001594 if ( !p ) 30001530: e3500000 cmp r0, #0 30001534: 0a000013 beq 30001588 int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i quotes++; } else if ( ((quotes % 2) == 0) && *p == ' ' ) 30001554: e3160001 tst r6, #1 30001558: 1a000001 bne 30001564 3000155c: e3520020 cmp r2, #32 30001560: 0a000009 beq 3000158c break; value[i++] = *p++; 30001564: e7c42003 strb r2, [r4, r3] 30001568: e2833001 add r3, r3, #1 value[i] = '\0'; 3000156c: e7c41003 strb r1, [r4, r3] int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i 3000157c: e1530005 cmp r3, r5 30001580: 3afffff0 bcc 30001548 30001584: ea000000 b 3000158c <== NOT EXECUTED 30001588: e3a04000 mov r4, #0 return NULL; copy_string( p, value, length ); return value; } 3000158c: e1a00004 mov r0, r4 30001590: e8bd8070 pop {r4, r5, r6, pc} 300015bc : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { 300015bc: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 300015c0: e1a05000 mov r5, r0 <== NOT EXECUTED 300015c4: e1a04001 mov r4, r1 <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); 300015c8: ebffffcc bl 30001500 <== NOT EXECUTED if ( !p ) 300015cc: e2506000 subs r6, r0, #0 <== NOT EXECUTED 300015d0: 0a000018 beq 30001638 <== NOT EXECUTED return NULL; rhs = &p[strlen(name)]; 300015d4: e1a00005 mov r0, r5 <== NOT EXECUTED 300015d8: eb003245 bl 3000def4 <== NOT EXECUTED if ( *rhs != '=' ) 300015dc: e7d63000 ldrb r3, [r6, r0] <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; 300015e0: e0866000 add r6, r6, r0 <== NOT EXECUTED if ( *rhs != '=' ) 300015e4: e353003d cmp r3, #61 ; 0x3d <== NOT EXECUTED 300015e8: 1a000012 bne 30001638 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) 300015ec: e5d63001 ldrb r3, [r6, #1] <== NOT EXECUTED rhs = &p[strlen(name)]; if ( *rhs != '=' ) return NULL; rhs++; 300015f0: e2866001 add r6, r6, #1 <== NOT EXECUTED if ( *rhs == '\"' ) 300015f4: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED rhs++; 300015f8: 02866001 addeq r6, r6, #1 <== NOT EXECUTED 300015fc: e1a02004 mov r2, r4 <== NOT EXECUTED 30001600: e3a0c000 mov ip, #0 <== NOT EXECUTED 30001604: ea000000 b 3000160c <== NOT EXECUTED for ( d=value ; *rhs ; ) *d++ = *rhs++; 30001608: e5421001 strb r1, [r2, #-1] <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 3000160c: e7d6100c ldrb r1, [r6, ip] <== NOT EXECUTED *d++ = *rhs++; 30001610: e1a03002 mov r3, r2 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) 30001614: e3510000 cmp r1, #0 <== NOT EXECUTED 30001618: e28cc001 add ip, ip, #1 <== NOT EXECUTED 3000161c: e2822001 add r2, r2, #1 <== NOT EXECUTED 30001620: 1afffff8 bne 30001608 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) 30001624: e5532001 ldrb r2, [r3, #-1] <== NOT EXECUTED 30001628: e3520022 cmp r2, #34 ; 0x22 <== NOT EXECUTED 3000162c: 02433001 subeq r3, r3, #1 <== NOT EXECUTED d--; *d = '\0'; 30001630: e5c31000 strb r1, [r3] <== NOT EXECUTED return value; 30001634: ea000000 b 3000163c <== NOT EXECUTED 30001638: e3a04000 mov r4, #0 <== NOT EXECUTED } 3000163c: e1a00004 mov r0, r4 <== NOT EXECUTED 30001640: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30001e8c : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 30001e8c: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 30001e90: e251a000 subs sl, r1, #0 void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { 30001e94: e24dd040 sub sp, sp, #64 ; 0x40 30001e98: e1a08000 mov r8, r0 Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) 30001e9c: 0a000059 beq 30002008 * When not using nanosecond CPU usage resolution, we have to count * the number of "ticks" we gave credit for to give the user a rough * guideline as to what each number means proportionally. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); 30001ea0: e28d4030 add r4, sp, #48 ; 0x30 30001ea4: e1a00004 mov r0, r4 _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 30001ea8: e28d5028 add r5, sp, #40 ; 0x28 * When not using nanosecond CPU usage resolution, we have to count * the number of "ticks" we gave credit for to give the user a rough * guideline as to what each number means proportionally. */ #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ _TOD_Get_uptime( &uptime ); 30001eac: eb00129a bl 3000691c <_TOD_Get_uptime> _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); 30001eb0: e1a01004 mov r1, r4 30001eb4: e1a02005 mov r2, r5 30001eb8: e59f0150 ldr r0, [pc, #336] ; 30002010 30001ebc: eb001b8a bl 30008cec <_Timespec_Subtract> } } } #endif (*print)( 30001ec0: e1a00008 mov r0, r8 30001ec4: e59f1148 ldr r1, [pc, #328] ; 30002014 30001ec8: e1a0e00f mov lr, pc 30001ecc: e12fff1a bx sl 30001ed0: e59f4140 ldr r4, [pc, #320] ; 30002018 /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 30001ed4: e59fb140 ldr fp, [pc, #320] ; 3000201c ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) 30001ed8: e5943004 ldr r3, [r4, #4] 30001edc: e3530000 cmp r3, #0 30001ee0: 0a00003b beq 30001fd4 continue; information = _Objects_Information_table[ api_index ][ 1 ]; 30001ee4: e5936004 ldr r6, [r3, #4] if ( information ) { 30001ee8: e3560000 cmp r6, #0 30001eec: 13a07001 movne r7, #1 * since the last context switch. */ ran = the_thread->cpu_time_used; if ( _Thread_Executing->Object.id == the_thread->Object.id ) { Timestamp_Control used; _Timestamp_Subtract( 30001ef0: 128d9018 addne r9, sp, #24 30001ef4: 11a05004 movne r5, r4 api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { 30001ef8: 1a00002f bne 30001fbc 30001efc: ea000034 b 30001fd4 <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; 30001f00: e596301c ldr r3, [r6, #28] 30001f04: e7934107 ldr r4, [r3, r7, lsl #2] api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { 30001f08: e2877001 add r7, r7, #1 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) 30001f0c: e3540000 cmp r4, #0 30001f10: 0a000029 beq 30001fbc continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 30001f14: e5940008 ldr r0, [r4, #8] 30001f18: eb000dfb bl 3000570c (*print)( 30001f1c: e28d3008 add r3, sp, #8 30001f20: e5942008 ldr r2, [r4, #8] 30001f24: e1a00008 mov r0, r8 30001f28: e59f10f0 ldr r1, [pc, #240] ; 30002020 30001f2c: e1a0e00f mov lr, pc 30001f30: e12fff1a bx sl #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ /* * If this is the currently executing thread, account for time * since the last context switch. */ ran = the_thread->cpu_time_used; 30001f34: e2843084 add r3, r4, #132 ; 0x84 30001f38: e893000c ldm r3, {r2, r3} 30001f3c: e58d2020 str r2, [sp, #32] 30001f40: e58d3024 str r3, [sp, #36] ; 0x24 if ( _Thread_Executing->Object.id == the_thread->Object.id ) { 30001f44: e59b2000 ldr r2, [fp] 30001f48: e5943008 ldr r3, [r4, #8] 30001f4c: e5922008 ldr r2, [r2, #8] 30001f50: e1520003 cmp r2, r3 30001f54: 1a000006 bne 30001f74 Timestamp_Control used; _Timestamp_Subtract( 30001f58: e59f00c4 ldr r0, [pc, #196] ; 30002024 30001f5c: e28d1030 add r1, sp, #48 ; 0x30 30001f60: e1a02009 mov r2, r9 30001f64: eb001b60 bl 30008cec <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); 30001f68: e28d0020 add r0, sp, #32 30001f6c: e1a01009 mov r1, r9 30001f70: eb001b25 bl 30008c0c <_Timespec_Add_to> }; _Timestamp_Divide( &ran, &total, &ival, &fval ); 30001f74: e28d203c add r2, sp, #60 ; 0x3c 30001f78: e28d3038 add r3, sp, #56 ; 0x38 30001f7c: e28d0020 add r0, sp, #32 30001f80: e28d1028 add r1, sp, #40 ; 0x28 30001f84: eb001b34 bl 30008c5c <_Timespec_Divide> /* * Print the information */ (*print)( context, 30001f88: e3a01ffa mov r1, #1000 ; 0x3e8 30001f8c: e59d0024 ldr r0, [sp, #36] ; 0x24 30001f90: eb00646a bl 3001b140 <__aeabi_uidiv> 30001f94: e59d203c ldr r2, [sp, #60] ; 0x3c 30001f98: e1a03000 mov r3, r0 30001f9c: e58d2000 str r2, [sp] 30001fa0: e59d2038 ldr r2, [sp, #56] ; 0x38 30001fa4: e1a00008 mov r0, r8 30001fa8: e58d2004 str r2, [sp, #4] 30001fac: e59f1074 ldr r1, [pc, #116] ; 30002028 30001fb0: e59d2020 ldr r2, [sp, #32] 30001fb4: e1a0e00f mov lr, pc 30001fb8: e12fff1a bx sl api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { 30001fbc: e1d631b0 ldrh r3, [r6, #16] the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 30001fc0: e3a0100d mov r1, #13 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { 30001fc4: e1570003 cmp r7, r3 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); 30001fc8: e28d2008 add r2, sp, #8 api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { 30001fcc: 9affffcb bls 30001f00 30001fd0: e1a04005 mov r4, r5 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; 30001fd4: e59f3050 ldr r3, [pc, #80] ; 3000202c api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) continue; information = _Objects_Information_table[ api_index ][ 1 ]; if ( information ) { for ( i=1 ; i <= information->maximum ; i++ ) { 30001fd8: e2844004 add r4, r4, #4 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; 30001fdc: e1540003 cmp r4, r3 30001fe0: 1affffbc bne 30001ed8 } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( 30001fe4: e3a01ffa mov r1, #1000 ; 0x3e8 30001fe8: e59d002c ldr r0, [sp, #44] ; 0x2c 30001fec: eb006453 bl 3001b140 <__aeabi_uidiv> 30001ff0: e59f1038 ldr r1, [pc, #56] ; 30002030 30001ff4: e1a03000 mov r3, r0 30001ff8: e59d2028 ldr r2, [sp, #40] ; 0x28 30001ffc: e1a00008 mov r0, r8 30002000: e1a0e00f mov lr, pc 30002004: e12fff1a bx sl "-------------------------------------------------------------------------------\n", _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset, total_units ); #endif } 30002008: e28dd040 add sp, sp, #64 ; 0x40 3000200c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 30002010: 3002816c .word 0x3002816c 30002014: 3001e28e .word 0x3001e28e 30002018: 30027be8 .word 0x30027be8 3000201c: 30027ce0 .word 0x30027ce0 30002020: 3001e400 .word 0x3001e400 30002024: 30027ce8 .word 0x30027ce8 30002028: 3001e413 .word 0x3001e413 3000202c: 30027bf8 .word 0x30027bf8 30002030: 3001e42b .word 0x3001e42b 3000c17c : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 3000c17c: e92d4010 push {r4, lr} <== NOT EXECUTED 3000c180: e1a01000 mov r1, r0 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 3000c184: e59f0018 ldr r0, [pc, #24] ; 3000c1a4 <== NOT EXECUTED 3000c188: eb000006 bl 3000c1a8 <== NOT EXECUTED 3000c18c: e2504000 subs r4, r0, #0 <== NOT EXECUTED 3000c190: 0a000001 beq 3000c19c <== NOT EXECUTED { errno = rc; 3000c194: eb00021d bl 3000ca10 <__errno> <== NOT EXECUTED 3000c198: e5804000 str r4, [r0] <== NOT EXECUTED return -1; } return -1; } 3000c19c: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000c1a0: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3000c1a4: 30018868 .word 0x30018868 30006068 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { 30006068: e92d000e push {r1, r2, r3} <== NOT EXECUTED 3000606c: e92d4001 push {r0, lr} <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); 30006070: e28d300c add r3, sp, #12 <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 30006074: e1a02003 mov r2, r3 <== NOT EXECUTED 30006078: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED ) { va_list arglist; int chars_written; va_start(arglist, printf_format); 3000607c: e58d3000 str r3, [sp] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); 30006080: ebffff84 bl 30005e98 <== NOT EXECUTED va_end(arglist); return chars_written; } 30006084: e8bd4008 pop {r3, lr} <== NOT EXECUTED 30006088: e28dd00c add sp, sp, #12 <== NOT EXECUTED 3000608c: e12fff1e bx lr <== NOT EXECUTED 30001240 : } int rtems_filesystem_dirname( const char *pathname ) { 30001240: e92d4010 push {r4, lr} 30001244: e1a04000 mov r4, r0 int len = strlen( pathname ); 30001248: eb0031e1 bl 3000d9d4 3000124c: e0844000 add r4, r4, r0 while ( len ) { 30001250: ea000007 b 30001274 len--; if ( rtems_filesystem_is_separator( pathname[len] ) ) 30001254: e5543001 ldrb r3, [r4, #-1] ) { int len = strlen( pathname ); while ( len ) { len--; 30001258: e2400001 sub r0, r0, #1 if ( rtems_filesystem_is_separator( pathname[len] ) ) 3000125c: e353002f cmp r3, #47 ; 0x2f 30001260: 1353005c cmpne r3, #92 ; 0x5c 30001264: 08bd8010 popeq {r4, pc} 30001268: e3530000 cmp r3, #0 3000126c: e2444001 sub r4, r4, #1 30001270: 08bd8010 popeq {r4, pc} const char *pathname ) { int len = strlen( pathname ); while ( len ) { 30001274: e3500000 cmp r0, #0 30001278: 1afffff5 bne 30001254 if ( rtems_filesystem_is_separator( pathname[len] ) ) break; } return len; } 3000127c: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30001360 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 30001360: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Verify Input parameters. */ if ( !pathname ) 30001364: e2506000 subs r6, r0, #0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 30001368: e1a08001 mov r8, r1 3000136c: e1a07002 mov r7, r2 30001370: e1a0c003 mov ip, r3 30001374: e59da020 ldr sl, [sp, #32] /* * Verify Input parameters. */ if ( !pathname ) 30001378: 1a000002 bne 30001388 rtems_set_errno_and_return_minus_one( EFAULT ); 3000137c: eb002da3 bl 3000ca10 <__errno> 30001380: e3a0300e mov r3, #14 30001384: ea000003 b 30001398 if ( !pathloc ) 30001388: e3530000 cmp r3, #0 3000138c: 1a000004 bne 300013a4 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 30001390: eb002d9e bl 3000ca10 <__errno> <== NOT EXECUTED 30001394: e3a03005 mov r3, #5 <== NOT EXECUTED 30001398: e5803000 str r3, [r0] return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } 3000139c: e3e00000 mvn r0, #0 300013a0: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 300013a4: e5d63000 ldrb r3, [r6] 300013a8: e353002f cmp r3, #47 ; 0x2f 300013ac: 1353005c cmpne r3, #92 ; 0x5c 300013b0: 13a05000 movne r5, #0 300013b4: 03a05001 moveq r5, #1 300013b8: 0a000001 beq 300013c4 300013bc: e3530000 cmp r3, #0 300013c0: 1a000004 bne 300013d8 300013c4: e59f3048 ldr r3, [pc, #72] ; 30001414 300013c8: e3a05001 mov r5, #1 300013cc: e5934000 ldr r4, [r3] 300013d0: e2844018 add r4, r4, #24 300013d4: ea000002 b 300013e4 300013d8: e59f3034 ldr r3, [pc, #52] ; 30001414 300013dc: e5934000 ldr r4, [r3] 300013e0: e2844004 add r4, r4, #4 300013e4: e1a0900c mov r9, ip 300013e8: e8b4000f ldm r4!, {r0, r1, r2, r3} 300013ec: e8a9000f stmia r9!, {r0, r1, r2, r3} 300013f0: e5942000 ldr r2, [r4] /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 300013f4: e0651008 rsb r1, r5, r8 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); 300013f8: e5892000 str r2, [r9] /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], 300013fc: e0860005 add r0, r6, r5 30001400: e1a02007 mov r2, r7 30001404: e1a0300c mov r3, ip 30001408: e58da020 str sl, [sp, #32] pathnamelen - i, flags, pathloc, follow_link ); } 3000140c: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, 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], 30001410: eaffff9a b 30001280 30001414: 300193dc .word 0x300193dc 30001280 : /* * Verify Input parameters. */ if ( !pathname ) 30001280: e3500000 cmp r0, #0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { 30001284: e92d4030 push {r4, r5, lr} 30001288: e1a05002 mov r5, r2 3000128c: e1a04003 mov r4, r3 /* * Verify Input parameters. */ if ( !pathname ) 30001290: 1a000002 bne 300012a0 rtems_set_errno_and_return_minus_one( EFAULT ); 30001294: eb002ddd bl 3000ca10 <__errno> <== NOT EXECUTED 30001298: e3a0300e mov r3, #14 <== NOT EXECUTED 3000129c: ea000027 b 30001340 <== NOT EXECUTED if ( !pathloc ) 300012a0: e3530000 cmp r3, #0 300012a4: 1a000002 bne 300012b4 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ 300012a8: eb002dd8 bl 3000ca10 <__errno> <== NOT EXECUTED 300012ac: e3a03005 mov r3, #5 <== NOT EXECUTED 300012b0: ea000022 b 30001340 <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) 300012b4: e593c00c ldr ip, [r3, #12] 300012b8: e59cc000 ldr ip, [ip] 300012bc: e35c0000 cmp ip, #0 300012c0: 0a00001c beq 30001338 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); 300012c4: e1a0e00f mov lr, pc 300012c8: e12fff1c bx ip /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { 300012cc: e59d200c ldr r2, [sp, #12] 300012d0: e2703001 rsbs r3, r0, #1 300012d4: 33a03000 movcc r3, #0 300012d8: e3520000 cmp r2, #0 300012dc: 03a03000 moveq r3, #0 300012e0: e3530000 cmp r3, #0 300012e4: 08bd8030 popeq {r4, r5, pc} if ( !pathloc->ops->node_type_h ){ 300012e8: e594200c ldr r2, [r4, #12] 300012ec: e5923010 ldr r3, [r2, #16] 300012f0: e3530000 cmp r3, #0 300012f4: 0a00000a beq 30001324 rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); 300012f8: e1a00004 mov r0, r4 300012fc: e1a0e00f mov lr, pc 30001300: e12fff13 bx r3 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || 30001304: e2400003 sub r0, r0, #3 30001308: e3500001 cmp r0, #1 3000130c: 83a00000 movhi r0, #0 30001310: 88bd8030 pophi {r4, r5, pc} ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ 30001314: e594200c ldr r2, [r4, #12] 30001318: e5923034 ldr r3, [r2, #52] ; 0x34 3000131c: e3530000 cmp r3, #0 30001320: 1a000009 bne 3000134c rtems_filesystem_freenode( pathloc ); 30001324: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30001328: e3530000 cmp r3, #0 <== NOT EXECUTED 3000132c: 11a00004 movne r0, r4 <== NOT EXECUTED 30001330: 11a0e00f movne lr, pc <== NOT EXECUTED 30001334: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30001338: eb002db4 bl 3000ca10 <__errno> <== NOT EXECUTED 3000133c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001340: e5803000 str r3, [r0] <== NOT EXECUTED 30001344: e3e00000 mvn r0, #0 <== NOT EXECUTED 30001348: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED * pathloc will be passed up (and eventually released). * Hence, the (valid) originial node that we submit to * eval_link_h() should be released by the handler. */ result = (*pathloc->ops->eval_link_h)( pathloc, flags ); 3000134c: e1a00004 mov r0, r4 30001350: e1a01005 mov r1, r5 30001354: e1a0e00f mov lr, pc 30001358: e12fff13 bx r3 } } return result; } 3000135c: e8bd8030 pop {r4, r5, pc} 300010e0 : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { 300010e0: e92d40f0 push {r4, r5, r6, r7, lr} /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 300010e4: e59f6100 ldr r6, [pc, #256] ; 300011ec 300010e8: e3a02012 mov r2, #18 300010ec: 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 ) { 300010f0: e24dd01c sub sp, sp, #28 /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; 300010f4: e583202c str r2, [r3, #44] ; 0x2c init_fs_mount_table(); 300010f8: eb000184 bl 30001710 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 300010fc: e59f30ec ldr r3, [pc, #236] ; 300011f0 30001100: e5933000 ldr r3, [r3] 30001104: e3530000 cmp r3, #0 rtems_fatal_error_occurred( 0xABCD0001 ); 30001108: 059f00e4 ldreq r0, [pc, #228] ; 300011f4 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) 3000110c: 0a000009 beq 30001138 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 30001110: e59f30e0 ldr r3, [pc, #224] ; 300011f8 status = mount( 30001114: e28d0018 add r0, sp, #24 */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; 30001118: e5932000 ldr r2, [r3] status = mount( 3000111c: e592300c ldr r3, [r2, #12] 30001120: e58d3000 str r3, [sp] 30001124: e892000e ldm r2, {r1, r2, r3} 30001128: eb00017f bl 3000172c &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) 3000112c: e3700001 cmn r0, #1 30001130: 1a000001 bne 3000113c rtems_fatal_error_occurred( 0xABCD0002 ); 30001134: e59f00c0 ldr r0, [pc, #192] ; 300011fc <== NOT EXECUTED 30001138: eb000e03 bl 3000494c <== NOT EXECUTED rtems_filesystem_link_counts = 0; 3000113c: 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; 30001140: e59de018 ldr lr, [sp, #24] 30001144: e287c018 add ip, r7, #24 30001148: e28ee01c add lr, lr, #28 3000114c: e8be000f ldm lr!, {r0, r1, r2, r3} 30001150: e8ac000f stmia ip!, {r0, r1, r2, r3} 30001154: 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; 30001158: 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); 3000115c: 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; 30001160: 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; 30001164: 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); 30001168: e1a03004 mov r3, r4 3000116c: e3a01001 mov r1, #1 30001170: e1a02005 mov r2, r5 30001174: e59f0084 ldr r0, [pc, #132] ; 30001200 30001178: e58d5000 str r5, [sp] 3000117c: eb000077 bl 30001360 rtems_filesystem_root = loc; 30001180: e596c000 ldr ip, [r6] 30001184: e1a07004 mov r7, r4 30001188: e28cc018 add ip, ip, #24 3000118c: e8b7000f ldm r7!, {r0, r1, r2, r3} 30001190: e8ac000f stmia ip!, {r0, r1, r2, r3} 30001194: e5973000 ldr r3, [r7] /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 30001198: 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; 3000119c: e58c3000 str r3, [ip] /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 300011a0: e3a01001 mov r1, #1 300011a4: e1a03004 mov r3, r4 300011a8: e59f0050 ldr r0, [pc, #80] ; 30001200 300011ac: e58d5000 str r5, [sp] 300011b0: eb00006a bl 30001360 rtems_filesystem_current = loc; 300011b4: e8b4000f ldm r4!, {r0, r1, r2, r3} 300011b8: e596c000 ldr ip, [r6] 300011bc: e28cc004 add ip, ip, #4 300011c0: e8ac000f stmia ip!, {r0, r1, r2, r3} 300011c4: 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); 300011c8: e59f0034 ldr r0, [pc, #52] ; 30001204 /* 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; 300011cc: 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); 300011d0: e59f1030 ldr r1, [pc, #48] ; 30001208 300011d4: eb0000f8 bl 300015bc if ( status != 0 ) 300011d8: e1500005 cmp r0, r5 rtems_fatal_error_occurred( 0xABCD0003 ); 300011dc: 159f0028 ldrne r0, [pc, #40] ; 3000120c * NOTE: UNIX root is 755 and owned by root/root (0/0). It is actually * created that way by the IMFS. */ status = mkdir( "/dev", 0777); if ( status != 0 ) 300011e0: 1affffd4 bne 30001138 * 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. */ } 300011e4: e28dd01c add sp, sp, #28 300011e8: e8bd80f0 pop {r4, r5, r6, r7, pc} 300011ec: 300193dc .word 0x300193dc 300011f0: 300182f0 .word 0x300182f0 300011f4: abcd0001 .word 0xabcd0001 300011f8: 300191ec .word 0x300191ec 300011fc: abcd0002 .word 0xabcd0002 30001200: 30018d11 .word 0x30018d11 30001204: 30018d13 .word 0x30018d13 30001208: 000001ff .word 0x000001ff 3000120c: abcd0003 .word 0xabcd0003 300086f0 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ 300086f0: e5903000 ldr r3, [r0] <== NOT EXECUTED 300086f4: e5910000 ldr r0, [r1] <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } 300086f8: e1530000 cmp r3, r0 <== NOT EXECUTED 300086fc: 13a00000 movne r0, #0 <== NOT EXECUTED 30008700: 03a00001 moveq r0, #1 <== NOT EXECUTED 30008704: e12fff1e bx lr <== NOT EXECUTED 30000fa0 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { 30000fa0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED 30000fa4: e24dd018 sub sp, sp, #24 <== NOT EXECUTED 30000fa8: e1a05001 mov r5, r1 <== NOT EXECUTED 30000fac: e1a06000 mov r6, 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 ); 30000fb0: eb003287 bl 3000d9d4 <== NOT EXECUTED 30000fb4: e28d4004 add r4, sp, #4 <== NOT EXECUTED 30000fb8: e1a01000 mov r1, r0 <== NOT EXECUTED 30000fbc: e3a02000 mov r2, #0 <== NOT EXECUTED 30000fc0: e1a03004 mov r3, r4 <== NOT EXECUTED 30000fc4: e3a0c001 mov ip, #1 <== NOT EXECUTED 30000fc8: e1a00006 mov r0, r6 <== NOT EXECUTED 30000fcc: e58dc000 str ip, [sp] <== NOT EXECUTED 30000fd0: eb0000e2 bl 30001360 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 30000fd4: 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 ); 30000fd8: e1a07000 mov r7, r0 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { 30000fdc: 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; 30000fe0: e59d8004 ldr r8, [sp, #4] <== NOT EXECUTED if ( !loc.ops->node_type_h ) { 30000fe4: e3530000 cmp r3, #0 <== NOT EXECUTED 30000fe8: 1a000009 bne 30001014 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30000fec: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30000ff0: e3530000 cmp r3, #0 <== NOT EXECUTED 30000ff4: 11a00004 movne r0, r4 <== NOT EXECUTED 30000ff8: 11a0e00f movne lr, pc <== NOT EXECUTED 30000ffc: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30001000: eb002e82 bl 3000ca10 <__errno> <== NOT EXECUTED 30001004: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30001008: e5803000 str r3, [r0] <== NOT EXECUTED 3000100c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30001010: ea000026 b 300010b0 <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); 30001014: e1a00004 mov r0, r4 <== NOT EXECUTED 30001018: e1a0e00f mov lr, pc <== NOT EXECUTED 3000101c: e12fff13 bx r3 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { 30001020: e3570000 cmp r7, #0 <== NOT EXECUTED 30001024: 03500002 cmpeq r0, #2 <== NOT EXECUTED 30001028: 03a0a000 moveq sl, #0 <== NOT EXECUTED 3000102c: 13a0a001 movne sl, #1 <== NOT EXECUTED 30001030: e59d7010 ldr r7, [sp, #16] <== NOT EXECUTED 30001034: 0a000008 beq 3000105c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30001038: e3570000 cmp r7, #0 <== NOT EXECUTED 3000103c: 0a000018 beq 300010a4 <== NOT EXECUTED 30001040: e597301c ldr r3, [r7, #28] <== NOT EXECUTED 30001044: e3530000 cmp r3, #0 <== NOT EXECUTED 30001048: 0a000015 beq 300010a4 <== NOT EXECUTED 3000104c: e1a00004 mov r0, r4 <== NOT EXECUTED 30001050: e1a0e00f mov lr, pc <== NOT EXECUTED 30001054: e12fff13 bx r3 <== NOT EXECUTED 30001058: ea000011 b 300010a4 <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; 3000105c: e5856000 str r6, [r5] <== NOT EXECUTED device_info->device_name_length = strlen( name ); 30001060: e1a00006 mov r0, r6 <== NOT EXECUTED 30001064: eb00325a bl 3000d9d4 <== NOT EXECUTED 30001068: e5850004 str r0, [r5, #4] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; 3000106c: e5983050 ldr r3, [r8, #80] ; 0x50 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); 30001070: e3570000 cmp r7, #0 <== 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; 30001074: e5853008 str r3, [r5, #8] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; 30001078: e5983054 ldr r3, [r8, #84] ; 0x54 <== NOT EXECUTED 3000107c: e585300c str r3, [r5, #12] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30001080: 0a000009 beq 300010ac <== NOT EXECUTED 30001084: e597301c ldr r3, [r7, #28] <== NOT EXECUTED 30001088: e3530000 cmp r3, #0 <== NOT EXECUTED 3000108c: 0a000006 beq 300010ac <== NOT EXECUTED 30001090: e1a00004 mov r0, r4 <== NOT EXECUTED 30001094: e1a0e00f mov lr, pc <== NOT EXECUTED 30001098: e12fff13 bx r3 <== NOT EXECUTED 3000109c: e1a0000a mov r0, sl <== NOT EXECUTED 300010a0: ea000002 b 300010b0 <== NOT EXECUTED 300010a4: e3a0000d mov r0, #13 <== NOT EXECUTED 300010a8: ea000000 b 300010b0 <== NOT EXECUTED 300010ac: e3a00000 mov r0, #0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 300010b0: e28dd018 add sp, sp, #24 <== NOT EXECUTED 300010b4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 30001418 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { 30001418: e92d4011 push {r0, r4, lr} rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) 3000141c: e59f4098 ldr r4, [pc, #152] ; 300014bc 30001420: e5940000 ldr r0, [r4] 30001424: e3500000 cmp r0, #0 30001428: 0a000013 beq 3000147c { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, 3000142c: e3a01040 mov r1, #64 ; 0x40 30001430: eb001cba bl 30008720 30001434: e59f3084 ldr r3, [pc, #132] ; 300014c0 sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 30001438: 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, 3000143c: e5830000 str r0, [r3] sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); 30001440: 0280001a addeq r0, r0, #26 if (rtems_libio_number_iops > 0) { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) 30001444: 0a000015 beq 300014a0 rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; 30001448: e59f3074 ldr r3, [pc, #116] ; 300014c4 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 3000144c: 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; 30001450: e5830000 str r0, [r3] for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) 30001454: e3a03000 mov r3, #0 30001458: ea000000 b 30001460 iop->data1 = iop + 1; 3000145c: e500000c str r0, [r0, #-12] 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++) 30001460: e2833001 add r3, r3, #1 30001464: e1530001 cmp r3, r1 iop->data1 = iop + 1; 30001468: e1a02000 mov r2, r0 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++) 3000146c: e2800040 add r0, r0, #64 ; 0x40 30001470: 3afffff9 bcc 3000145c iop->data1 = iop + 1; iop->data1 = NULL; 30001474: e3a03000 mov r3, #0 30001478: e5823034 str r3, [r2, #52] ; 0x34 /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( 3000147c: e59fc044 ldr ip, [pc, #68] ; 300014c8 30001480: e59f0044 ldr r0, [pc, #68] ; 300014cc 30001484: e3a01001 mov r1, #1 30001488: e3a02054 mov r2, #84 ; 0x54 3000148c: e3a03000 mov r3, #0 30001490: e58dc000 str ip, [sp] 30001494: eb000b06 bl 300040b4 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) 30001498: e3500000 cmp r0, #0 3000149c: 0a000000 beq 300014a4 rtems_fatal_error_occurred( rc ); 300014a0: eb000d29 bl 3000494c <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) 300014a4: e59f3024 ldr r3, [pc, #36] ; 300014d0 300014a8: e5933000 ldr r3, [r3] 300014ac: e3530000 cmp r3, #0 (* rtems_fs_init_helper)(); 300014b0: 11a0e00f movne lr, pc 300014b4: 112fff13 bxne r3 } 300014b8: e8bd8018 pop {r3, r4, pc} 300014bc: 300191e4 .word 0x300191e4 300014c0: 30019b84 .word 0x30019b84 300014c4: 30019b88 .word 0x30019b88 300014c8: 30019b8c .word 0x30019b8c 300014cc: 4c42494f .word 0x4c42494f 300014d0: 300191e0 .word 0x300191e0 30023374 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 30023374: 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); 30023378: e3a00000 mov r0, #0 rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 3002337c: 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); 30023380: e1a01000 mov r1, r0 30023384: e28d2018 add r2, sp, #24 30023388: eb000635 bl 30024c64 if (sc != RTEMS_SUCCESSFUL) return sc; 3002338c: e2508000 subs r8, r0, #0 30023390: 1a00003f bne 30023494 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 30023394: e59f4104 ldr r4, [pc, #260] ; 300234a0 30023398: e59f3104 ldr r3, [pc, #260] ; 300234a4 3002339c: e5942000 ldr r2, [r4] 300233a0: e1520003 cmp r2, r3 300233a4: 1a00000f bne 300233e8 rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 300233a8: e2800048 add r0, r0, #72 ; 0x48 300233ac: ebff8948 bl 300058d4 if (!tmp) 300233b0: e2505000 subs r5, r0, #0 300233b4: 03a0801a moveq r8, #26 300233b8: 0a000035 beq 30023494 #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); 300233bc: e1a00008 mov r0, r8 300233c0: e1a01004 mov r1, r4 300233c4: e59f20dc ldr r2, [pc, #220] ; 300234a8 300233c8: eb00071c bl 30025040 if (sc != RTEMS_SUCCESSFUL) { 300233cc: e2506000 subs r6, r0, #0 * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 300233d0: 05845000 streq r5, [r4] #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) { 300233d4: 0a000003 beq 300233e8 /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 300233d8: e1a00005 mov r0, r5 <== NOT EXECUTED 300233dc: ebff87ba bl 300052cc <== NOT EXECUTED 300233e0: e1a08006 mov r8, r6 <== NOT EXECUTED return sc; 300233e4: ea00002a b 30023494 <== NOT EXECUTED } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 300233e8: e59f60b0 ldr r6, [pc, #176] ; 300234a0 300233ec: e59f10b0 ldr r1, [pc, #176] ; 300234a4 300233f0: e5964000 ldr r4, [r6] 300233f4: e3a02048 mov r2, #72 ; 0x48 300233f8: e1a00004 mov r0, r4 300233fc: eb006366 bl 3003c19c rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30023400: e59f30a4 ldr r3, [pc, #164] ; 300234ac } 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*/ 30023404: e1a0c004 mov ip, r4 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30023408: 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*/ 3002340c: e59d3018 ldr r3, [sp, #24] /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30023410: 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*/ 30023414: e48c3018 str r3, [ip], #24 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30023418: e8be000f ldm lr!, {r0, r1, r2, r3} 3002341c: e8ac000f stmia ip!, {r0, r1, r2, r3} 30023420: 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); 30023424: e28d4004 add r4, sp, #4 30023428: e3a05000 mov r5, #0 *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; 3002342c: 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); 30023430: e3a01001 mov r1, #1 30023434: e1a03004 mov r3, r4 30023438: e1a02005 mov r2, r5 3002343c: e59f006c ldr r0, [pc, #108] ; 300234b0 30023440: e58d5000 str r5, [sp] 30023444: ebff8772 bl 30005214 rtems_filesystem_root = loc; 30023448: e596c000 ldr ip, [r6] 3002344c: e1a07004 mov r7, r4 30023450: e28cc018 add ip, ip, #24 30023454: e8b7000f ldm r7!, {r0, r1, r2, r3} 30023458: e8ac000f stmia ip!, {r0, r1, r2, r3} 3002345c: e5973000 ldr r3, [r7] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 30023460: e1a02005 mov r2, r5 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; 30023464: e58c3000 str r3, [ip] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 30023468: e3a01001 mov r1, #1 3002346c: e1a03004 mov r3, r4 30023470: e59f0038 ldr r0, [pc, #56] ; 300234b0 30023474: e58d5000 str r5, [sp] 30023478: ebff8765 bl 30005214 rtems_filesystem_current = loc; 3002347c: e8b4000f ldm r4!, {r0, r1, r2, r3} 30023480: e596c000 ldr ip, [r6] 30023484: e28cc004 add ip, ip, #4 30023488: e8ac000f stmia ip!, {r0, r1, r2, r3} 3002348c: e5973000 ldr r3, [r7] 30023490: e58c3000 str r3, [ip] return RTEMS_SUCCESSFUL; } 30023494: e1a00008 mov r0, r8 30023498: e28dd01c add sp, sp, #28 3002349c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 300234a0: 3005cdc8 .word 0x3005cdc8 300234a4: 30060bd0 .word 0x30060bd0 300234a8: 3002326c .word 0x3002326c 300234ac: 30060bb8 .word 0x30060bb8 300234b0: 30056589 .word 0x30056589 300232d0 : * 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) { 300232d0: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED 300232d4: e1a05000 mov r5, r0 <== 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); 300232d8: e3a00000 mov r0, #0 <== NOT EXECUTED 300232dc: e1a01000 mov r1, r0 <== NOT EXECUTED 300232e0: e1a0200d mov r2, sp <== NOT EXECUTED 300232e4: eb00065e bl 30024c64 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 300232e8: e2503000 subs r3, r0, #0 <== NOT EXECUTED 300232ec: 1a00001b bne 30023360 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 300232f0: e59f1070 ldr r1, [pc, #112] ; 30023368 <== NOT EXECUTED 300232f4: e59d3000 ldr r3, [sp] <== NOT EXECUTED 300232f8: e5914000 ldr r4, [r1] <== NOT EXECUTED 300232fc: e5942000 ldr r2, [r4] <== NOT EXECUTED 30023300: e1520003 cmp r2, r3 <== NOT EXECUTED 30023304: 1a000004 bne 3002331c <== NOT EXECUTED /* 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); 30023308: eb000775 bl 300250e4 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 3002330c: e2503000 subs r3, r0, #0 <== NOT EXECUTED 30023310: 1a000012 bne 30023360 <== NOT EXECUTED free_user_env(tmp); 30023314: e1a00004 mov r0, r4 <== NOT EXECUTED 30023318: ebffffd3 bl 3002326c <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 3002331c: e59f4044 ldr r4, [pc, #68] ; 30023368 <== NOT EXECUTED 30023320: e1a00005 mov r0, r5 <== NOT EXECUTED 30023324: e1a01004 mov r1, r4 <== NOT EXECUTED 30023328: e28d2004 add r2, sp, #4 <== NOT EXECUTED 3002332c: eb000789 bl 30025158 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 30023330: e2503000 subs r3, r0, #0 <== NOT EXECUTED 30023334: 1a000006 bne 30023354 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 30023338: e59f202c ldr r2, [pc, #44] ; 3002336c <== NOT EXECUTED 3002333c: e1a01004 mov r1, r4 <== NOT EXECUTED 30023340: eb00073e bl 30025040 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 30023344: e2503000 subs r3, r0, #0 <== NOT EXECUTED goto bailout; /* the current_user_env is the same pointer that remote env */ rtems_current_user_env = shared_user_env; 30023348: 059d2004 ldreq r2, [sp, #4] <== NOT EXECUTED 3002334c: 05842000 streq r2, [r4] <== NOT EXECUTED (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); if (sc != RTEMS_SUCCESSFUL) 30023350: 0a000002 beq 30023360 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 30023354: e59f1014 ldr r1, [pc, #20] ; 30023370 <== NOT EXECUTED 30023358: e59f2008 ldr r2, [pc, #8] ; 30023368 <== NOT EXECUTED 3002335c: e5821000 str r1, [r2] <== NOT EXECUTED return sc; } 30023360: e1a00003 mov r0, r3 <== NOT EXECUTED 30023364: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED 30023368: 3005cdc8 .word 0x3005cdc8 3002336c: 3002326c .word 0x3002326c 30023370: 30060bd0 .word 0x30060bd0 300059cc : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 300059cc: e92d4801 push {r0, fp, lr} <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 300059d0: e59f3038 ldr r3, [pc, #56] ; 30005a10 <== NOT EXECUTED * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { 300059d4: e1a01000 mov r1, r0 <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { 300059d8: e1a0200d mov r2, sp <== NOT EXECUTED 300059dc: e5930000 ldr r0, [r3] <== NOT EXECUTED 300059e0: eb001552 bl 3000af30 <_Protected_heap_Get_block_size> <== NOT EXECUTED 300059e4: e3500000 cmp r0, #0 <== NOT EXECUTED 300059e8: 0a000007 beq 30005a0c <== NOT EXECUTED MSBUMP(lifetime_freed, size); 300059ec: e59f3020 ldr r3, [pc, #32] ; 30005a14 <== NOT EXECUTED 300059f0: e59d0000 ldr r0, [sp] <== NOT EXECUTED 300059f4: e283c024 add ip, r3, #36 ; 0x24 <== NOT EXECUTED 300059f8: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED 300059fc: e09b1000 adds r1, fp, r0 <== NOT EXECUTED 30005a00: e2ac2000 adc r2, ip, #0 <== NOT EXECUTED 30005a04: e5831024 str r1, [r3, #36] ; 0x24 <== NOT EXECUTED 30005a08: e5832028 str r2, [r3, #40] ; 0x28 <== NOT EXECUTED } } 30005a0c: e8bd8808 pop {r3, fp, pc} <== NOT EXECUTED 30005a10: 3005ca9c .word 0x3005ca9c 30005a14: 30060b8c .word 0x30060b8c 30005a18 : { uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 30005a18: e2501000 subs r1, r0, #0 <== NOT EXECUTED } static void rtems_malloc_statistics_at_malloc( void *pointer ) { 30005a1c: e92d4811 push {r0, r4, fp, lr} <== NOT EXECUTED uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) 30005a20: 0a000013 beq 30005a74 <== NOT EXECUTED return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); 30005a24: e59f304c ldr r3, [pc, #76] ; 30005a78 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 30005a28: 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); 30005a2c: e5930000 ldr r0, [r3] <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; 30005a30: e3a03000 mov r3, #0 <== NOT EXECUTED 30005a34: 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); 30005a38: e1a0200d mov r2, sp <== NOT EXECUTED 30005a3c: eb00153b bl 3000af30 <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); 30005a40: e59f3034 ldr r3, [pc, #52] ; 30005a7c <== NOT EXECUTED 30005a44: e59d4000 ldr r4, [sp] <== NOT EXECUTED 30005a48: e283c01c add ip, r3, #28 <== NOT EXECUTED 30005a4c: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); 30005a50: e5932024 ldr r2, [r3, #36] ; 0x24 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 30005a54: e09b0004 adds r0, fp, r4 <== NOT EXECUTED 30005a58: e2ac1000 adc r1, ip, #0 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) 30005a5c: 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); 30005a60: e0622000 rsb r2, r2, r0 <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); 30005a64: e583001c str r0, [r3, #28] <== NOT EXECUTED 30005a68: e5831020 str r1, [r3, #32] <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) 30005a6c: e152000c cmp r2, ip <== NOT EXECUTED s->max_depth = current_depth; 30005a70: 85832018 strhi r2, [r3, #24] <== NOT EXECUTED } 30005a74: e8bd8818 pop {r3, r4, fp, pc} <== NOT EXECUTED 30005a78: 3005ca9c .word 0x3005ca9c 30005a7c: 30060b8c .word 0x30060b8c 30005a80 : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); 30005a80: e59f0008 ldr r0, [pc, #8] ; 30005a90 <== NOT EXECUTED 30005a84: e3a01000 mov r1, #0 <== NOT EXECUTED 30005a88: e3a0202c mov r2, #44 ; 0x2c <== NOT EXECUTED 30005a8c: ea00da49 b 3003c3b8 <== NOT EXECUTED 30005a90: 30060b8c .word 0x30060b8c 3000603c : void rtems_panic( const char *printf_format, ... ) { 3000603c: e92d000f push {r0, r1, r2, r3} <== NOT EXECUTED 30006040: e92d4001 push {r0, lr} <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); 30006044: e28d300c add r3, sp, #12 <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 30006048: e1a02003 mov r2, r3 <== NOT EXECUTED 3000604c: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED 30006050: e3a00202 mov r0, #536870912 ; 0x20000000 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); 30006054: e58d3000 str r3, [sp] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); 30006058: ebffff8e bl 30005e98 <== NOT EXECUTED va_end(arglist); } 3000605c: e8bd4008 pop {r3, lr} <== NOT EXECUTED 30006060: e28dd010 add sp, sp, #16 <== NOT EXECUTED 30006064: e12fff1e bx lr <== NOT EXECUTED 3000a930 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { if (!rtems_pipe_configured) 3000a930: e59f3048 ldr r3, [pc, #72] ; 3000a980 /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 3000a934: e92d4001 push {r0, lr} if (!rtems_pipe_configured) 3000a938: e5d33000 ldrb r3, [r3] 3000a93c: e3530000 cmp r3, #0 3000a940: 0a00000d beq 3000a97c return; if (rtems_pipe_semaphore) 3000a944: e59fc038 ldr ip, [pc, #56] ; 3000a984 <== NOT EXECUTED 3000a948: e59c3000 ldr r3, [ip] <== NOT EXECUTED 3000a94c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000a950: 1a000009 bne 3000a97c <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( 3000a954: e59f002c ldr r0, [pc, #44] ; 3000a988 <== NOT EXECUTED 3000a958: e3a01001 mov r1, #1 <== NOT EXECUTED 3000a95c: e3a02054 mov r2, #84 ; 0x54 <== NOT EXECUTED 3000a960: e58dc000 str ip, [sp] <== NOT EXECUTED 3000a964: ebffe5d2 bl 300040b4 <== 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) 3000a968: e3500000 cmp r0, #0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 3000a96c: 1bffe7f6 blne 3000494c <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 3000a970: ebffe4d4 bl 30003cc8 <== NOT EXECUTED rtems_pipe_no = now; 3000a974: e59f3010 ldr r3, [pc, #16] ; 3000a98c <== NOT EXECUTED 3000a978: e1c300b0 strh r0, [r3] <== NOT EXECUTED } 3000a97c: e8bd8008 pop {r3, pc} 3000a980: 300199a0 .word 0x300199a0 3000a984: 30019b00 .word 0x30019b00 3000a988: 50495045 .word 0x50495045 3000a98c: 30019b06 .word 0x30019b06 30003abc : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 30003abc: e92d4810 push {r4, fp, lr} Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 30003ac0: e59f307c ldr r3, [pc, #124] ; 30003b44 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { 30003ac4: e28db008 add fp, sp, #8 Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 30003ac8: e5933000 ldr r3, [r3] ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 30003acc: e59300c8 ldr r0, [r3, #200] ; 0xc8 30003ad0: e15b0000 cmp fp, r0 30003ad4: 33a04000 movcc r4, #0 30003ad8: 3a000004 bcc 30003af0 } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) 30003adc: e59340c4 ldr r4, [r3, #196] ; 0xc4 30003ae0: e0804004 add r4, r0, r4 30003ae4: e15b0004 cmp fp, r4 30003ae8: 83a04000 movhi r4, #0 30003aec: 93a04001 movls r4, #1 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { 30003af0: e59f3050 ldr r3, [pc, #80] ; 30003b48 30003af4: e5933000 ldr r3, [r3] 30003af8: e3530000 cmp r3, #0 30003afc: 03a01001 moveq r1, #1 30003b00: 0a000005 beq 30003b1c pattern_ok = (!memcmp( 30003b04: e59f1040 ldr r1, [pc, #64] ; 30003b4c 30003b08: e2800008 add r0, r0, #8 30003b0c: e3a02010 mov r2, #16 30003b10: eb00e177 bl 3003c0f4 30003b14: e2701001 rsbs r1, r0, #1 30003b18: 33a01000 movcc r1, #0 } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) 30003b1c: e3540000 cmp r4, #0 30003b20: 0a000002 beq 30003b30 30003b24: e3510000 cmp r1, #0 30003b28: 13a00000 movne r0, #0 30003b2c: 18bd8810 popne {r4, fp, pc} return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); 30003b30: e59f300c ldr r3, [pc, #12] ; 30003b44 <== NOT EXECUTED 30003b34: e5930000 ldr r0, [r3] <== NOT EXECUTED 30003b38: ebffffb4 bl 30003a10 <== NOT EXECUTED 30003b3c: e3a00001 mov r0, #1 <== NOT EXECUTED return true; } 30003b40: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED 30003b44: 30060da0 .word 0x30060da0 30003b48: 3005e080 .word 0x3005e080 30003b4c: 30060b5c .word 0x30060b5c 30003a00 : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); 30003a00: e59f1004 ldr r1, [pc, #4] ; 30003a0c <== NOT EXECUTED 30003a04: e3a00000 mov r0, #0 <== NOT EXECUTED 30003a08: eaffffe3 b 3000399c <== NOT EXECUTED 30003a0c: 300063fc .word 0x300063fc 3000399c : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 3000399c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED print_context = context; 300039a0: e59f4048 ldr r4, [pc, #72] ; 300039f0 <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { 300039a4: e1a05001 mov r5, r1 <== NOT EXECUTED 300039a8: e1a06000 mov r6, r0 <== NOT EXECUTED print_context = context; print_handler = print; 300039ac: 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; 300039b0: e5840008 str r0, [r4, #8] <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); 300039b4: e59f1038 ldr r1, [pc, #56] ; 300039f4 <== NOT EXECUTED 300039b8: e1a0e00f mov lr, pc <== NOT EXECUTED 300039bc: e12fff15 bx r5 <== NOT EXECUTED (*print)( context, 300039c0: e59f1030 ldr r1, [pc, #48] ; 300039f8 <== NOT EXECUTED 300039c4: e1a00006 mov r0, r6 <== NOT EXECUTED 300039c8: e1a0e00f mov lr, pc <== NOT EXECUTED 300039cc: 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 ); 300039d0: e59f0024 ldr r0, [pc, #36] ; 300039fc <== NOT EXECUTED 300039d4: eb001b3b bl 3000a6c8 <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); 300039d8: e3e00000 mvn r0, #0 <== NOT EXECUTED 300039dc: ebffff9f bl 30003860 <== NOT EXECUTED print_context = NULL; 300039e0: e3a03000 mov r3, #0 <== NOT EXECUTED print_handler = NULL; 300039e4: 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; 300039e8: e5843008 str r3, [r4, #8] <== NOT EXECUTED print_handler = NULL; } 300039ec: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 300039f0: 3005e080 .word 0x3005e080 300039f4: 300563cb .word 0x300563cb 300039f8: 300563e2 .word 0x300563e2 300039fc: 30003860 .word 0x30003860 30003b50 : */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 30003b50: e92d4830 push {r4, r5, fp, lr} 30003b54: 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; 30003b58: e59000c8 ldr r0, [r0, #200] ; 0xc8 */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) { 30003b5c: e28db00c add fp, sp, #12 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { 30003b60: e15b0000 cmp fp, r0 30003b64: 33a05000 movcc r5, #0 30003b68: 3a000004 bcc 30003b80 } /* * rtems_stack_checker_switch_extension */ void rtems_stack_checker_switch_extension( 30003b6c: e59450c4 ldr r5, [r4, #196] ; 0xc4 30003b70: e0805005 add r5, r0, r5 30003b74: e15b0005 cmp fp, r5 30003b78: 83a05000 movhi r5, #0 30003b7c: 93a05001 movls r5, #1 /* * 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, 30003b80: e59f102c ldr r1, [pc, #44] ; 30003bb4 30003b84: e2800008 add r0, r0, #8 30003b88: e3a02010 mov r2, #16 30003b8c: eb00e158 bl 3003c0f4 30003b90: e2701001 rsbs r1, r0, #1 30003b94: 33a01000 movcc r1, #0 (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES)); if ( !sp_ok || !pattern_ok ) { 30003b98: e3550000 cmp r5, #0 30003b9c: 0a000001 beq 30003ba8 30003ba0: e3510000 cmp r1, #0 30003ba4: 18bd8830 popne {r4, r5, fp, pc} Stack_check_report_blown_task( running, pattern_ok ); 30003ba8: e1a00004 mov r0, r4 <== NOT EXECUTED } } 30003bac: e8bd4830 pop {r4, r5, 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 ); 30003bb0: eaffff96 b 30003a10 <== NOT EXECUTED 30003bb4: 30060b5c .word 0x30060b5c 3000a8f8 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000a8f8: e92d41f1 push {r0, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000a8fc: e2514000 subs r4, r1, #0 <== NOT EXECUTED #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000a900: e1a07000 mov r7, r0 <== NOT EXECUTED 3000a904: e1a08002 mov r8, r2 <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000a908: 03a00009 moveq r0, #9 <== NOT EXECUTED 3000a90c: 0a00001e beq 3000a98c <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; errno = 0; 3000a910: eb000d07 bl 3000dd34 <__errno> <== NOT EXECUTED 3000a914: e3a03000 mov r3, #0 <== NOT EXECUTED 3000a918: e5803000 str r3, [r0] <== NOT EXECUTED *n = 0; 3000a91c: e3a02000 mov r2, #0 <== NOT EXECUTED 3000a920: e3a03000 mov r3, #0 <== NOT EXECUTED 3000a924: e884000c stm r4, {r2, r3} <== NOT EXECUTED #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000a928: e1a00007 mov r0, r7 <== NOT EXECUTED 3000a92c: e1a0100d mov r1, sp <== NOT EXECUTED 3000a930: eb001876 bl 30010b10 <== 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 ) 3000a934: e3580000 cmp r8, #0 <== NOT EXECUTED *endptr = end; 3000a938: 159d3000 ldrne r3, [sp] <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000a93c: e1a05000 mov r5, r0 <== NOT EXECUTED result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; 3000a940: 15883000 strne r3, [r8] <== NOT EXECUTED /* nothing was converted */ if ( end == s ) 3000a944: e59d3000 ldr r3, [sp] <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000a948: 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 ) 3000a94c: e1530007 cmp r3, r7 <== NOT EXECUTED 3000a950: 03a0000b moveq r0, #11 <== NOT EXECUTED 3000a954: 0a00000c beq 3000a98c <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 3000a958: e1a00005 mov r0, r5 <== NOT EXECUTED 3000a95c: e59f202c ldr r2, [pc, #44] ; 3000a990 <== NOT EXECUTED 3000a960: e3e03000 mvn r3, #0 <== NOT EXECUTED 3000a964: ebffe099 bl 30002bd0 <__gedf2> <== NOT EXECUTED 3000a968: e3500000 cmp r0, #0 <== NOT EXECUTED 3000a96c: da000004 ble 3000a984 <== NOT EXECUTED 3000a970: eb000cef bl 3000dd34 <__errno> <== NOT EXECUTED 3000a974: e5903000 ldr r3, [r0] <== NOT EXECUTED 3000a978: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 3000a97c: 03a0000a moveq r0, #10 <== NOT EXECUTED 3000a980: 0a000001 beq 3000a98c <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 3000a984: e8840060 stm r4, {r5, r6} <== NOT EXECUTED 3000a988: e3a00000 mov r0, #0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 3000a98c: e8bd81f8 pop {r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 3000a990: 7fefffff .word 0x7fefffff 3000a994 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000a994: e92d40f1 push {r0, r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000a998: e2514000 subs r4, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000a99c: e1a05000 mov r5, r0 3000a9a0: e1a07002 mov r7, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000a9a4: 03a00009 moveq r0, #9 3000a9a8: 0a00001b beq 3000aa1c return RTEMS_INVALID_ADDRESS; errno = 0; 3000a9ac: eb000ce0 bl 3000dd34 <__errno> 3000a9b0: e3a03000 mov r3, #0 3000a9b4: e5803000 str r3, [r0] *n = 0; 3000a9b8: e3a03000 mov r3, #0 3000a9bc: e5843000 str r3, [r4] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000a9c0: e1a00005 mov r0, r5 3000a9c4: e1a0100d mov r1, sp 3000a9c8: eb00183d bl 30010ac4 #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 ) 3000a9cc: e3570000 cmp r7, #0 *endptr = end; 3000a9d0: 159d3000 ldrne r3, [sp] errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000a9d4: e1a06000 mov r6, r0 result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; 3000a9d8: 15873000 strne r3, [r7] /* nothing was converted */ if ( end == s ) 3000a9dc: e59d3000 ldr r3, [sp] 3000a9e0: e1530005 cmp r3, r5 3000a9e4: 03a0000b moveq r0, #11 3000a9e8: 0a00000b beq 3000aa1c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 3000a9ec: e1a00006 mov r0, r6 3000a9f0: e59f1028 ldr r1, [pc, #40] ; 3000aa20 3000a9f4: ebffe0c0 bl 30002cfc <__gesf2> 3000a9f8: e3500000 cmp r0, #0 3000a9fc: da000004 ble 3000aa14 3000aa00: eb000ccb bl 3000dd34 <__errno> <== NOT EXECUTED 3000aa04: e5903000 ldr r3, [r0] <== NOT EXECUTED 3000aa08: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 3000aa0c: 03a0000a moveq r0, #10 <== NOT EXECUTED 3000aa10: 0a000001 beq 3000aa1c <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 3000aa14: e5846000 str r6, [r4] 3000aa18: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } 3000aa1c: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} 3000aa20: 7f7fffff .word 0x7f7fffff 30019e10 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 30019e10: e92d40f1 push {r0, r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 30019e14: e2514000 subs r4, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 30019e18: e1a05000 mov r5, r0 30019e1c: e1a06002 mov r6, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 30019e20: 03a00009 moveq r0, #9 30019e24: 0a000018 beq 30019e8c return RTEMS_INVALID_ADDRESS; errno = 0; 30019e28: eb007caa bl 300390d8 <__errno> 30019e2c: e3a03000 mov r3, #0 30019e30: e5803000 str r3, [r0] *n = 0; 30019e34: e5843000 str r3, [r4] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); 30019e38: e1a00005 mov r0, r5 30019e3c: e1a0100d mov r1, sp 30019e40: e3a02010 mov r2, #16 30019e44: eb009c4a bl 30040f74 #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 ) 30019e48: e3560000 cmp r6, #0 *endptr = end; 30019e4c: 159d3000 ldrne r3, [sp] *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); #elif defined(STRING_TO_POINTER) result = STRING_TO_METHOD( s, &end, 16 ); 30019e50: e1a07000 mov r7, r0 result = STRING_TO_METHOD( s, &end, base ); #endif /* If the user wants the end pointer back, then return it. */ if ( endptr ) *endptr = end; 30019e54: 15863000 strne r3, [r6] /* nothing was converted */ if ( end == s ) 30019e58: e59d3000 ldr r3, [sp] 30019e5c: e1530005 cmp r3, r5 30019e60: 03a0000b moveq r0, #11 30019e64: 0a000008 beq 30019e8c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 30019e68: e3770001 cmn r7, #1 30019e6c: 1a000004 bne 30019e84 30019e70: eb007c98 bl 300390d8 <__errno> <== NOT EXECUTED 30019e74: e5903000 ldr r3, [r0] <== NOT EXECUTED 30019e78: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 30019e7c: 03a0000a moveq r0, #10 <== NOT EXECUTED 30019e80: 0a000001 beq 30019e8c <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 30019e84: e5847000 str r7, [r4] 30019e88: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } 30019e8c: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} 30003434 : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 30003434: e3500009 cmp r0, #9 30003438: 012fff1e bxeq lr 3000343c: ca000016 bgt 3000349c 30003440: e3500004 cmp r0, #4 30003444: 012fff1e bxeq lr 30003448: ca00000a bgt 30003478 3000344c: e3500001 cmp r0, #1 30003450: 012fff1e bxeq lr 30003454: ca000002 bgt 30003464 30003458: e3500000 cmp r0, #0 3000345c: 012fff1e bxeq lr 30003460: ea000030 b 30003528 30003464: e3500002 cmp r0, #2 <== NOT EXECUTED 30003468: 012fff1e bxeq lr <== NOT EXECUTED 3000346c: e3500003 cmp r0, #3 <== NOT EXECUTED 30003470: 1a00002c bne 30003528 <== NOT EXECUTED 30003474: e12fff1e bx lr <== NOT EXECUTED 30003478: e3500006 cmp r0, #6 <== NOT EXECUTED 3000347c: 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; 30003480: b3a00005 movlt r0, #5 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 30003484: b12fff1e bxlt lr <== NOT EXECUTED 30003488: e3500007 cmp r0, #7 <== NOT EXECUTED 3000348c: 012fff1e bxeq lr <== NOT EXECUTED 30003490: e3500008 cmp r0, #8 <== NOT EXECUTED 30003494: 1a000023 bne 30003528 <== NOT EXECUTED 30003498: e12fff1e bx lr <== NOT EXECUTED 3000349c: e350000e cmp r0, #14 <== NOT EXECUTED 300034a0: 012fff1e bxeq lr <== NOT EXECUTED 300034a4: ca000008 bgt 300034cc <== NOT EXECUTED 300034a8: e350000b cmp r0, #11 <== NOT EXECUTED 300034ac: 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; 300034b0: b3a0000a movlt r0, #10 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 300034b4: b12fff1e bxlt lr <== NOT EXECUTED 300034b8: e350000c cmp r0, #12 <== NOT EXECUTED 300034bc: 012fff1e bxeq lr <== NOT EXECUTED 300034c0: e350000d cmp r0, #13 <== NOT EXECUTED 300034c4: 1a000017 bne 30003528 <== NOT EXECUTED 300034c8: e12fff1e bx lr <== NOT EXECUTED 300034cc: e59f305c ldr r3, [pc, #92] ; 30003530 <== NOT EXECUTED 300034d0: 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; 300034d4: 03a00011 moveq r0, #17 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 300034d8: 012fff1e bxeq lr <== NOT EXECUTED 300034dc: ca000005 bgt 300034f8 <== NOT EXECUTED 300034e0: e350000f cmp r0, #15 <== NOT EXECUTED 300034e4: 012fff1e bxeq lr <== NOT EXECUTED 300034e8: e2433001 sub r3, r3, #1 <== NOT EXECUTED 300034ec: e1500003 cmp r0, r3 <== NOT EXECUTED 300034f0: 1a00000c bne 30003528 <== NOT EXECUTED 300034f4: ea000007 b 30003518 <== NOT EXECUTED 300034f8: e59f3034 ldr r3, [pc, #52] ; 30003534 <== NOT EXECUTED 300034fc: 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; 30003500: 03a00012 moveq r0, #18 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { 30003504: 012fff1e bxeq lr <== NOT EXECUTED 30003508: e2833001 add r3, r3, #1 <== NOT EXECUTED 3000350c: e1500003 cmp r0, r3 <== NOT EXECUTED 30003510: 1a000004 bne 30003528 <== NOT EXECUTED 30003514: ea000001 b 30003520 <== 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; 30003518: e3a00010 mov r0, #16 <== NOT EXECUTED case B57600: baud_index = 16; break; 3000351c: e12fff1e bx lr <== NOT EXECUTED case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; 30003520: e3a00013 mov r0, #19 <== NOT EXECUTED case B460800: baud_index = 19; break; 30003524: e12fff1e bx lr <== NOT EXECUTED 30003528: e3e00000 mvn r0, #0 default: baud_index = -1; break; } return baud_index; } 3000352c: e12fff1e bx lr 30003530: 00001002 .word 0x00001002 30003534: 00001003 .word 0x00001003 30001f60 : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; 30001f60: e59f3008 ldr r3, [pc, #8] ; 30001f70 <== NOT EXECUTED 30001f64: 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; } 30001f68: e3a00000 mov r0, #0 <== NOT EXECUTED 30001f6c: e12fff1e bx lr <== NOT EXECUTED 30001f70: 300193c8 .word 0x300193c8 3000336c : { 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); 3000336c: e59f2180 ldr r2, [pc, #384] ; 300034f4 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30003370: e5903000 ldr r3, [r0] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30003374: e3a01000 mov r1, #0 } } rtems_status_code rtems_termios_close (void *arg) { 30003378: e92d4030 push {r4, r5, lr} 3000337c: e1a05000 mov r5, 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); 30003380: e5920000 ldr r0, [r2] 30003384: e1a02001 mov r2, r1 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30003388: e5934034 ldr r4, [r3, #52] ; 0x34 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 3000338c: eb0003da bl 300042fc if (sc != RTEMS_SUCCESSFUL) 30003390: e3500000 cmp r0, #0 30003394: 1a000022 bne 30003424 rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { 30003398: e5943008 ldr r3, [r4, #8] 3000339c: e2433001 sub r3, r3, #1 300033a0: e3530000 cmp r3, #0 300033a4: e5843008 str r3, [r4, #8] 300033a8: 1a00004c bne 300034e0 if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 300033ac: e59420cc ldr r2, [r4, #204] ; 0xcc 300033b0: e59f3140 ldr r3, [pc, #320] ; 300034f8 300033b4: e0833282 add r3, r3, r2, lsl #5 300033b8: e5931004 ldr r1, [r3, #4] 300033bc: e3510000 cmp r1, #0 300033c0: 0a000003 beq 300033d4 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); 300033c4: e1a00004 mov r0, r4 <== NOT EXECUTED 300033c8: e1a0e00f mov lr, pc <== NOT EXECUTED 300033cc: e12fff11 bx r1 <== NOT EXECUTED 300033d0: ea000006 b 300033f0 <== NOT EXECUTED } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 300033d4: e5940018 ldr r0, [r4, #24] 300033d8: e1a02001 mov r2, r1 300033dc: eb0003c6 bl 300042fc if (sc != RTEMS_SUCCESSFUL) { 300033e0: e3500000 cmp r0, #0 300033e4: 1a00000e bne 30003424 rtems_fatal_error_occurred (sc); } drainOutput (tty); 300033e8: e1a00004 mov r0, r4 300033ec: ebfffe05 bl 30002c08 } if (tty->device.outputUsesInterrupts 300033f0: e59430b4 ldr r3, [r4, #180] ; 0xb4 300033f4: e3530002 cmp r3, #2 300033f8: 1a00000a bne 30003428 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( 300033fc: e59400c4 ldr r0, [r4, #196] ; 0xc4 <== NOT EXECUTED 30003400: e3a01001 mov r1, #1 <== NOT EXECUTED 30003404: eb0002a8 bl 30003eac <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 30003408: e3500000 cmp r0, #0 <== NOT EXECUTED 3000340c: 1a000004 bne 30003424 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( 30003410: e59400c8 ldr r0, [r4, #200] ; 0xc8 <== NOT EXECUTED 30003414: e3a01001 mov r1, #1 <== NOT EXECUTED 30003418: eb0002a3 bl 30003eac <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) 3000341c: e3500000 cmp r0, #0 <== NOT EXECUTED 30003420: 0a000000 beq 30003428 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 30003424: eb000548 bl 3000494c <== NOT EXECUTED } if (tty->device.lastClose) 30003428: e594309c ldr r3, [r4, #156] ; 0x9c 3000342c: e3530000 cmp r3, #0 (*tty->device.lastClose)(tty->major, tty->minor, arg); 30003430: 11a02005 movne r2, r5 30003434: 1594000c ldrne r0, [r4, #12] 30003438: 15941010 ldrne r1, [r4, #16] 3000343c: 11a0e00f movne lr, pc 30003440: 112fff13 bxne r3 if (tty->forw == NULL) { 30003444: e894000c ldm r4, {r2, r3} 30003448: e3520000 cmp r2, #0 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; 3000344c: 15823004 strne r3, [r2, #4] if (sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred (sc); } if (tty->device.lastClose) (*tty->device.lastClose)(tty->major, tty->minor, arg); if (tty->forw == NULL) { 30003450: 1a000003 bne 30003464 rtems_termios_ttyTail = tty->back; 30003454: e59f10a0 ldr r1, [pc, #160] ; 300034fc if ( rtems_termios_ttyTail != NULL ) { 30003458: e3530000 cmp r3, #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; 3000345c: e5813000 str r3, [r1] if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; 30003460: 15832000 strne r2, [r3] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 30003464: e5942004 ldr r2, [r4, #4] 30003468: e5943000 ldr r3, [r4] 3000346c: e3520000 cmp r2, #0 if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; 30003470: 15823000 strne r3, [r2] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { 30003474: 1a000003 bne 30003488 rtems_termios_ttyHead = tty->forw; 30003478: e59f1080 ldr r1, [pc, #128] ; 30003500 if ( rtems_termios_ttyHead != NULL ) { 3000347c: e3530000 cmp r3, #0 } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; 30003480: e5813000 str r3, [r1] if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; 30003484: 15832004 strne r2, [r3, #4] } } else { tty->back->forw = tty->forw; } rtems_semaphore_delete (tty->isem); 30003488: e5940014 ldr r0, [r4, #20] 3000348c: eb000373 bl 30004260 rtems_semaphore_delete (tty->osem); 30003490: e5940018 ldr r0, [r4, #24] 30003494: eb000371 bl 30004260 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); 30003498: e594008c ldr r0, [r4, #140] ; 0x8c 3000349c: eb00036f bl 30004260 if ((tty->device.pollRead == NULL) || 300034a0: e59430a0 ldr r3, [r4, #160] ; 0xa0 300034a4: e3530000 cmp r3, #0 300034a8: 0a000002 beq 300034b8 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) 300034ac: e59430b4 ldr r3, [r4, #180] ; 0xb4 300034b0: e3530002 cmp r3, #2 300034b4: 1a000001 bne 300034c0 rtems_semaphore_delete (tty->rawInBuf.Semaphore); 300034b8: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED 300034bc: eb000367 bl 30004260 <== NOT EXECUTED free (tty->rawInBuf.theBuf); 300034c0: e5940058 ldr r0, [r4, #88] ; 0x58 300034c4: eb0014d1 bl 30008810 free (tty->rawOutBuf.theBuf); 300034c8: e594007c ldr r0, [r4, #124] ; 0x7c 300034cc: eb0014cf bl 30008810 free (tty->cbuf); 300034d0: e594001c ldr r0, [r4, #28] 300034d4: eb0014cd bl 30008810 free (tty); 300034d8: e1a00004 mov r0, r4 300034dc: eb0014cb bl 30008810 } rtems_semaphore_release (rtems_termios_ttyMutex); 300034e0: e59f300c ldr r3, [pc, #12] ; 300034f4 300034e4: e5930000 ldr r0, [r3] 300034e8: eb0003c9 bl 30004414 return RTEMS_SUCCESSFUL; } 300034ec: e3a00000 mov r0, #0 300034f0: e8bd8030 pop {r4, r5, pc} 300034f4: 30019bc8 .word 0x30019bc8 300034f8: 300199f4 .word 0x300199f4 300034fc: 30019bcc .word 0x30019bcc 30003500: 30019bd0 .word 0x30019bd0 30002164 : rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 30002164: e590c090 ldr ip, [r0, #144] ; 0x90 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30002168: e59020b4 ldr r2, [r0, #180] ; 0xb4 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 3000216c: e08c1001 add r1, ip, r1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30002170: 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) { 30002174: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; 30002178: e5801090 str r1, [r0, #144] ; 0x90 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 3000217c: 1a000005 bne 30002198 <== NOT EXECUTED /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, 30002180: e59000c8 ldr r0, [r0, #200] ; 0xc8 <== NOT EXECUTED 30002184: e1a01002 mov r1, r2 <== NOT EXECUTED 30002188: eb000747 bl 30003eac <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) 3000218c: e3500000 cmp r0, #0 <== NOT EXECUTED 30002190: 0a00000c beq 300021c8 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 30002194: eb0009ec bl 3000494c <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { 30002198: e59030cc ldr r3, [r0, #204] ; 0xcc <== NOT EXECUTED 3000219c: e3530005 cmp r3, #5 <== NOT EXECUTED 300021a0: 1a000006 bne 300021c0 <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 300021a4: e59f3024 ldr r3, [pc, #36] ; 300021d0 <== NOT EXECUTED 300021a8: e59330b4 ldr r3, [r3, #180] ; 0xb4 <== NOT EXECUTED 300021ac: e3530000 cmp r3, #0 <== NOT EXECUTED 300021b0: 0a000004 beq 300021c8 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 300021b4: e1a0e00f mov lr, pc <== NOT EXECUTED 300021b8: e12fff13 bx r3 <== NOT EXECUTED 300021bc: ea000001 b 300021c8 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } 300021c0: 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); 300021c4: eaffff6d b 30001f80 <== NOT EXECUTED } } 300021c8: e3a00000 mov r0, #0 <== NOT EXECUTED 300021cc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 300021d0: 300199f4 .word 0x300199f4 300021d4 : * 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) { 300021d4: e92d4ff7 push {r0, r1, r2, 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) { 300021d8: e59f32b8 ldr r3, [pc, #696] ; 30002498 <== 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) { 300021dc: 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) { 300021e0: e59000cc ldr r0, [r0, #204] ; 0xcc <== 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) { 300021e4: e1a0b001 mov fp, r1 <== NOT EXECUTED char c; int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { 300021e8: e0830280 add r0, r3, r0, lsl #5 <== NOT EXECUTED 300021ec: e5906010 ldr r6, [r0, #16] <== NOT EXECUTED 300021f0: e3560000 cmp r6, #0 <== 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); 300021f4: 11a05002 movne r5, r2 <== NOT EXECUTED rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 300021f8: 11a07003 movne r7, r3 <== 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); 300021fc: 13a06000 movne r6, #0 <== 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) { 30002200: 1a00000e bne 30002240 <== 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); 30002204: e1a08002 mov r8, r2 <== NOT EXECUTED 30002208: e2843030 add r3, r4, #48 ; 0x30 <== 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, 3000220c: e284204a add r2, r4, #74 ; 0x4a <== NOT EXECUTED 30002210: e58d2008 str r2, [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); 30002214: e58d3004 str r3, [sp, #4] <== NOT EXECUTED 30002218: e1a09006 mov r9, r6 <== NOT EXECUTED 3000221c: e1a05006 mov r5, r6 <== NOT EXECUTED 30002220: ea000091 b 3000246c <== NOT EXECUTED rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 30002224: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED 30002228: e7db0006 ldrb r0, [fp, r6] <== NOT EXECUTED 3000222c: e0873283 add r3, r7, r3, lsl #5 <== NOT EXECUTED 30002230: e1a0e00f mov lr, pc <== NOT EXECUTED 30002234: e593f010 ldr pc, [r3, #16] <== NOT EXECUTED 30002238: e2866001 add r6, r6, #1 <== NOT EXECUTED 3000223c: e2455001 sub r5, r5, #1 <== NOT EXECUTED int dropped = 0; bool flow_rcv = false; /* true, if flow control char received */ rtems_interrupt_level level; if (rtems_termios_linesw[tty->t_line].l_rint != NULL) { while (len--) { 30002240: e3550000 cmp r5, #0 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); 30002244: e1a01004 mov r1, r4 <== 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--) { 30002248: 1afffff5 bne 30002224 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 3000224c: e59430e4 ldr r3, [r4, #228] ; 0xe4 <== NOT EXECUTED 30002250: e3530000 cmp r3, #0 <== NOT EXECUTED 30002254: 1a00008c bne 3000248c <== NOT EXECUTED 30002258: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED 3000225c: e3530000 cmp r3, #0 <== NOT EXECUTED 30002260: 0a000089 beq 3000248c <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 30002264: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 30002268: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED 3000226c: e1a0e00f mov lr, pc <== NOT EXECUTED 30002270: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 30002274: e3a03001 mov r3, #1 <== NOT EXECUTED 30002278: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED 3000227c: ea000083 b 30002490 <== NOT EXECUTED while (len--) { c = *buf++; /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 30002280: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; 30002284: e7dba006 ldrb sl, [fp, r6] <== NOT EXECUTED /* FIXME: implement IXANY: any character restarts output */ /* if incoming XON/XOFF controls outgoing stream: */ if (tty->flow_ctrl & FL_MDXON) { 30002288: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED 3000228c: 0a00000f beq 300022d0 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { 30002290: e5d4204a ldrb r2, [r4, #74] ; 0x4a <== NOT EXECUTED 30002294: e5d43049 ldrb r3, [r4, #73] ; 0x49 <== NOT EXECUTED 30002298: e152000a cmp r2, sl <== NOT EXECUTED 3000229c: 1a000007 bne 300022c0 <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { 300022a0: e1530002 cmp r3, r2 <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; 300022a4: 059430b8 ldreq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 300022a8: 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; 300022ac: 02233010 eoreq r3, r3, #16 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; 300022b0: 13833010 orrne r3, r3, #16 <== NOT EXECUTED 300022b4: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; 300022b8: e3a09001 mov r9, #1 <== NOT EXECUTED 300022bc: ea000005 b 300022d8 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 300022c0: e153000a cmp r3, sl <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; 300022c4: 059430b8 ldreq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300022c8: 03c33010 biceq r3, r3, #16 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { 300022cc: 0afffff8 beq 300022b4 <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { 300022d0: e3590000 cmp r9, #0 <== NOT EXECUTED 300022d4: 0a000015 beq 30002330 <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { 300022d8: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300022dc: e2033030 and r3, r3, #48 ; 0x30 <== NOT EXECUTED 300022e0: e3530020 cmp r3, #32 <== NOT EXECUTED 300022e4: 1a00005e bne 30002464 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300022e8: e10f7000 mrs r7, CPSR <== NOT EXECUTED 300022ec: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED 300022f0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 300022f4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 300022f8: 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; 300022fc: e3c33020 bic r3, r3, #32 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 30002300: 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; 30002304: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 30002308: 0a000006 beq 30002328 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); 3000230c: 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, 30002310: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED 30002314: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002318: e0811003 add r1, r1, r3 <== NOT EXECUTED 3000231c: e3a02001 mov r2, #1 <== NOT EXECUTED 30002320: e1a0e00f mov lr, pc <== NOT EXECUTED 30002324: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002328: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED 3000232c: ea00004c b 30002464 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; 30002330: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED 30002334: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 30002338: e2800001 add r0, r0, #1 <== NOT EXECUTED 3000233c: eb004fba bl 3001622c <__umodsi3> <== NOT EXECUTED 30002340: e1a07000 mov r7, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30002344: e10f2000 mrs r2, CPSR <== NOT EXECUTED 30002348: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED 3000234c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 30002350: e58d2000 str r2, [sp] <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) 30002354: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED 30002358: e5940064 ldr r0, [r4, #100] ; 0x64 <== NOT EXECUTED 3000235c: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 30002360: e0630000 rsb r0, r3, r0 <== NOT EXECUTED 30002364: e0800007 add r0, r0, r7 <== NOT EXECUTED 30002368: eb004faf bl 3001622c <__umodsi3> <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && 3000236c: e59430c0 ldr r3, [r4, #192] ; 0xc0 <== NOT EXECUTED 30002370: e1500003 cmp r0, r3 <== NOT EXECUTED 30002374: 9a000025 bls 30002410 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { 30002378: 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) 3000237c: e3130001 tst r3, #1 <== NOT EXECUTED 30002380: 1a000022 bne 30002410 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; 30002384: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 30002388: e59f310c ldr r3, [pc, #268] ; 3000249c <== 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; 3000238c: e3822001 orr r2, r2, #1 <== NOT EXECUTED 30002390: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) 30002394: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED 30002398: e0023003 and r3, r2, r3 <== NOT EXECUTED 3000239c: e3530b01 cmp r3, #1024 ; 0x400 <== NOT EXECUTED 300023a0: 1a00000e bne 300023e0 <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || 300023a4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300023a8: e3130020 tst r3, #32 <== NOT EXECUTED 300023ac: 1a000002 bne 300023bc <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { 300023b0: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED 300023b4: e3530000 cmp r3, #0 <== NOT EXECUTED 300023b8: 1a000014 bne 30002410 <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; 300023bc: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED (*tty->device.write)(tty->minor, 300023c0: 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; 300023c4: e3833002 orr r3, r3, #2 <== NOT EXECUTED 300023c8: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED (*tty->device.write)(tty->minor, 300023cc: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED 300023d0: e3a02001 mov r2, #1 <== NOT EXECUTED 300023d4: e1a0e00f mov lr, pc <== NOT EXECUTED 300023d8: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED 300023dc: ea00000b b 30002410 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) 300023e0: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300023e4: e2033f41 and r3, r3, #260 ; 0x104 <== NOT EXECUTED 300023e8: e3530c01 cmp r3, #256 ; 0x100 <== NOT EXECUTED 300023ec: 1a000007 bne 30002410 <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 300023f0: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 300023f4: 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; 300023f8: e3822004 orr r2, r2, #4 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { 300023fc: e3530000 cmp r3, #0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; 30002400: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { tty->device.stopRemoteTx(tty->minor); 30002404: 15940010 ldrne r0, [r4, #16] <== NOT EXECUTED 30002408: 11a0e00f movne lr, pc <== NOT EXECUTED 3000240c: 112fff13 bxne r3 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002410: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30002414: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { 30002418: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED 3000241c: e1570003 cmp r7, r3 <== NOT EXECUTED dropped++; 30002420: 02855001 addeq r5, r5, #1 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { 30002424: 0a00000e beq 30002464 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; 30002428: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED 3000242c: e7c3a007 strb sl, [r3, r7] <== NOT EXECUTED tty->rawInBuf.Tail = newTail; /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 30002430: e59430e4 ldr r3, [r4, #228] ; 0xe4 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; 30002434: e5847060 str r7, [r4, #96] ; 0x60 <== NOT EXECUTED /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 30002438: e3530000 cmp r3, #0 <== NOT EXECUTED 3000243c: 1a000008 bne 30002464 <== NOT EXECUTED 30002440: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED 30002444: e3530000 cmp r3, #0 <== NOT EXECUTED 30002448: 0a000005 beq 30002464 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 3000244c: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED 30002450: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED 30002454: e1a0e00f mov lr, pc <== NOT EXECUTED 30002458: e12fff13 bx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; 3000245c: e3a02001 mov r2, #1 <== NOT EXECUTED 30002460: e58420e4 str r2, [r4, #228] ; 0xe4 <== NOT EXECUTED 30002464: e2866001 add r6, r6, #1 <== NOT EXECUTED 30002468: e2488001 sub r8, r8, #1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { 3000246c: e3580000 cmp r8, #0 <== NOT EXECUTED 30002470: 1affff82 bne 30002280 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 30002474: e5943078 ldr r3, [r4, #120] ; 0x78 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 30002478: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; 3000247c: e0833005 add r3, r3, r5 <== NOT EXECUTED 30002480: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); 30002484: eb0007e2 bl 30004414 <== NOT EXECUTED return dropped; 30002488: ea000000 b 30002490 <== NOT EXECUTED 3000248c: e3a05000 mov r5, #0 <== NOT EXECUTED } 30002490: e1a00005 mov r0, r5 <== NOT EXECUTED 30002494: e8bd8ffe pop {r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30002498: 300199f4 .word 0x300199f4 3000249c: 00000402 .word 0x00000402 30002fc4 : rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002fc4: e5903000 ldr r3, [r0] } } rtems_status_code rtems_termios_ioctl (void *arg) { 30002fc8: e92d41f0 push {r4, r5, r6, r7, r8, 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; 30002fcc: 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; 30002fd0: e5934034 ldr r4, [r3, #52] ; 0x34 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; 30002fd4: e580100c str r1, [r0, #12] } } rtems_status_code rtems_termios_ioctl (void *arg) { 30002fd8: e1a05000 mov r5, 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); 30002fdc: e1a02001 mov r2, r1 30002fe0: e5940018 ldr r0, [r4, #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; 30002fe4: e5957008 ldr r7, [r5, #8] rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002fe8: eb0004c3 bl 300042fc if (sc != RTEMS_SUCCESSFUL) { 30002fec: e2506000 subs r6, r0, #0 30002ff0: 1a0000d7 bne 30003354 args->ioctl_return = sc; return sc; } switch (args->command) { 30002ff4: e5953004 ldr r3, [r5, #4] 30002ff8: e3530004 cmp r3, #4 30002ffc: 0a0000ab beq 300032b0 30003000: 8a000005 bhi 3000301c 30003004: e3530002 cmp r3, #2 30003008: 0a000029 beq 300030b4 3000300c: 8a0000a0 bhi 30003294 30003010: e3530001 cmp r3, #1 30003014: 1a000010 bne 3000305c 30003018: ea00001b b 3000308c 3000301c: e59f233c ldr r2, [pc, #828] ; 30003360 <== NOT EXECUTED 30003020: e1530002 cmp r3, r2 <== NOT EXECUTED 30003024: 0a0000bd beq 30003320 <== NOT EXECUTED 30003028: 8a000002 bhi 30003038 <== NOT EXECUTED 3000302c: e3530005 cmp r3, #5 <== NOT EXECUTED 30003030: 1a000009 bne 3000305c <== NOT EXECUTED 30003034: ea000099 b 300032a0 <== NOT EXECUTED 30003038: e59f2324 ldr r2, [pc, #804] ; 30003364 <== NOT EXECUTED 3000303c: e1530002 cmp r3, r2 <== NOT EXECUTED if (rtems_termios_linesw[tty->t_line].l_open != NULL) { sc = rtems_termios_linesw[tty->t_line].l_open(tty); } break; case TIOCGETD: *(int*)(args->buffer)=tty->t_line; 30003040: 05953008 ldreq r3, [r5, #8] <== NOT EXECUTED 30003044: 059420cc ldreq r2, [r4, #204] ; 0xcc <== NOT EXECUTED 30003048: 05832000 streq r2, [r3] <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) { args->ioctl_return = sc; return sc; } switch (args->command) { 3000304c: 0a0000be beq 3000334c <== NOT EXECUTED 30003050: e2822105 add r2, r2, #1073741825 ; 0x40000001 <== NOT EXECUTED 30003054: e1530002 cmp r3, r2 <== NOT EXECUTED 30003058: 0a000098 beq 300032c0 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { 3000305c: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED 30003060: e59f3300 ldr r3, [pc, #768] ; 30003368 <== NOT EXECUTED 30003064: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 30003068: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 3000306c: e3530000 cmp r3, #0 <== NOT EXECUTED 30003070: 03a0600a moveq r6, #10 <== NOT EXECUTED 30003074: 0a0000b4 beq 3000334c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); 30003078: e1a00004 mov r0, r4 <== NOT EXECUTED 3000307c: e1a01005 mov r1, r5 <== NOT EXECUTED 30003080: e1a0e00f mov lr, pc <== NOT EXECUTED 30003084: e12fff13 bx r3 <== NOT EXECUTED 30003088: ea0000a2 b 30003318 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; 3000308c: e5957008 ldr r7, [r5, #8] 30003090: e284c030 add ip, r4, #48 ; 0x30 30003094: e1a0e007 mov lr, r7 30003098: e8bc000f ldm ip!, {r0, r1, r2, r3} 3000309c: e8ae000f stmia lr!, {r0, r1, r2, r3} 300030a0: e8bc000f ldm ip!, {r0, r1, r2, r3} 300030a4: e8ae000f stmia lr!, {r0, r1, r2, r3} 300030a8: e59c3000 ldr r3, [ip] 300030ac: e58e3000 str r3, [lr] break; 300030b0: ea0000a5 b 3000334c case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; 300030b4: e595e008 ldr lr, [r5, #8] 300030b8: e284c030 add ip, r4, #48 ; 0x30 300030bc: e8be000f ldm lr!, {r0, r1, r2, r3} 300030c0: e8ac000f stmia ip!, {r0, r1, r2, r3} 300030c4: e8be000f ldm lr!, {r0, r1, r2, r3} 300030c8: 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) && 300030cc: e59420b8 ldr r2, [r4, #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; 300030d0: 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) && 300030d4: 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; 300030d8: 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) && 300030dc: 0a000019 beq 30003148 300030e0: e5943030 ldr r3, [r4, #48] ; 0x30 300030e4: e3130b01 tst r3, #1024 ; 0x400 300030e8: 1a000016 bne 30003148 !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); 300030ec: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300030f0: e3c33e21 bic r3, r3, #528 ; 0x210 <== NOT EXECUTED 300030f4: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { 300030f8: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300030fc: e3130020 tst r3, #32 <== NOT EXECUTED 30003100: 0a000010 beq 30003148 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30003104: e10f7000 mrs r7, CPSR <== NOT EXECUTED 30003108: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED 3000310c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; 30003110: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 30003114: e5942094 ldr r2, [r4, #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; 30003118: e3c33020 bic r3, r3, #32 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 3000311c: 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; 30003120: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { 30003124: 0a000006 beq 30003144 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 30003128: 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, 3000312c: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED 30003130: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30003134: e0811003 add r1, r1, r3 <== NOT EXECUTED 30003138: e3a02001 mov r2, #1 <== NOT EXECUTED 3000313c: e1a0e00f mov lr, pc <== NOT EXECUTED 30003140: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30003144: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } /* check for incoming XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXOF) && 30003148: e59430b8 ldr r3, [r4, #184] ; 0xb8 3000314c: e3130b01 tst r3, #1024 ; 0x400 30003150: 0a000008 beq 30003178 30003154: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED 30003158: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED 3000315c: 1a000005 bne 30003178 <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); 30003160: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 30003164: e3c33b01 bic r3, r3, #1024 ; 0x400 <== NOT EXECUTED 30003168: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* FIXME: what happens, if we had sent XOFF but not yet XON? */ tty->flow_ctrl &= ~(FL_ISNTXOF); 3000316c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 30003170: e3c33002 bic r3, r3, #2 <== NOT EXECUTED 30003174: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && 30003178: e59430b8 ldr r3, [r4, #184] ; 0xb8 3000317c: e3130c01 tst r3, #256 ; 0x100 30003180: 0a000010 beq 300031c8 30003184: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED 30003188: e3530000 cmp r3, #0 <== NOT EXECUTED 3000318c: ba00000d blt 300031c8 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); 30003190: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 30003194: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED 30003198: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && 3000319c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300031a0: e3130004 tst r3, #4 <== NOT EXECUTED 300031a4: 0a000004 beq 300031bc <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { 300031a8: e59430b0 ldr r3, [r4, #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) && 300031ac: e3530000 cmp r3, #0 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); 300031b0: 15940010 ldrne r0, [r4, #16] <== NOT EXECUTED 300031b4: 11a0e00f movne lr, pc <== NOT EXECUTED 300031b8: 112fff13 bxne r3 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); 300031bc: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300031c0: e3c33004 bic r3, r3, #4 <== NOT EXECUTED 300031c4: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { 300031c8: e5943038 ldr r3, [r4, #56] ; 0x38 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) { 300031cc: e594703c ldr r7, [r4, #60] ; 0x3c /* * check for flow control options to be switched on */ /* check for incoming RTS/CTS flow control switched on */ if (tty->termios.c_cflag & CRTSCTS) { 300031d0: e3530000 cmp r3, #0 tty->flow_ctrl |= FL_MDRTS; 300031d4: b59430b8 ldrlt r3, [r4, #184] ; 0xb8 300031d8: b3833c01 orrlt r3, r3, #256 ; 0x100 300031dc: b58430b8 strlt r3, [r4, #184] ; 0xb8 } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { 300031e0: e5943030 ldr r3, [r4, #48] ; 0x30 300031e4: e3130a01 tst r3, #4096 ; 0x1000 tty->flow_ctrl |= FL_MDXOF; 300031e8: 159430b8 ldrne r3, [r4, #184] ; 0xb8 300031ec: 13833b01 orrne r3, r3, #1024 ; 0x400 300031f0: 158430b8 strne r3, [r4, #184] ; 0xb8 } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { 300031f4: e5943030 ldr r3, [r4, #48] ; 0x30 300031f8: e3130b01 tst r3, #1024 ; 0x400 tty->flow_ctrl |= FL_MDXON; 300031fc: 159430b8 ldrne r3, [r4, #184] ; 0xb8 30003200: 13833c02 orrne r3, r3, #512 ; 0x200 30003204: 158430b8 strne r3, [r4, #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) { 30003208: e2177002 ands r7, r7, #2 tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 3000320c: 13a03000 movne r3, #0 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) { 30003210: 1a000014 bne 30003268 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; 30003214: e5d48046 ldrb r8, [r4, #70] ; 0x46 <== NOT EXECUTED 30003218: eb0002a2 bl 30003ca8 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * 3000321c: e3a0100a mov r1, #10 <== NOT EXECUTED 30003220: e0000098 mul r0, r8, r0 <== NOT EXECUTED 30003224: eb004b6c bl 30015fdc <__aeabi_uidiv> <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 30003228: e5d43046 ldrb r3, [r4, #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] * 3000322c: e5840054 str r0, [r4, #84] ; 0x54 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { 30003230: e3530000 cmp r3, #0 <== NOT EXECUTED 30003234: e5d42047 ldrb r2, [r4, #71] ; 0x47 <== NOT EXECUTED 30003238: 0a000006 beq 30003258 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 3000323c: e3520000 cmp r2, #0 <== NOT EXECUTED 30003240: 01a02000 moveq r2, r0 <== NOT EXECUTED 30003244: 13a02000 movne r2, #0 <== NOT EXECUTED } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 30003248: e584706c str r7, [r4, #108] ; 0x6c <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 3000324c: e5842074 str r2, [r4, #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; 30003250: e5840070 str r0, [r4, #112] ; 0x70 <== NOT EXECUTED 30003254: ea000006 b 30003274 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 30003258: e3520000 cmp r2, #0 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; 3000325c: 03a03001 moveq r3, #1 <== NOT EXECUTED 30003260: 0584306c streq r3, [r4, #108] ; 0x6c <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { 30003264: 0a000002 beq 30003274 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; 30003268: e5843074 str r3, [r4, #116] ; 0x74 else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; 3000326c: e584306c str r3, [r4, #108] ; 0x6c tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; 30003270: e5843070 str r3, [r4, #112] ; 0x70 else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) 30003274: e59430a8 ldr r3, [r4, #168] ; 0xa8 30003278: e3530000 cmp r3, #0 3000327c: 0a000032 beq 3000334c (*tty->device.setAttributes)(tty->minor, &tty->termios); 30003280: e5940010 ldr r0, [r4, #16] 30003284: e2841030 add r1, r4, #48 ; 0x30 30003288: e1a0e00f mov lr, pc 3000328c: e12fff13 bx r3 30003290: ea00002d b 3000334c break; case RTEMS_IO_TCDRAIN: drainOutput (tty); 30003294: e1a00004 mov r0, r4 30003298: ebfffe5a bl 30002c08 break; 3000329c: ea00002a b 3000334c case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; 300032a0: e897000c ldm r7, {r2, r3} <== NOT EXECUTED 300032a4: e58420d4 str r2, [r4, #212] ; 0xd4 <== NOT EXECUTED 300032a8: e58430d8 str r3, [r4, #216] ; 0xd8 <== NOT EXECUTED break; 300032ac: ea000026 b 3000334c <== NOT EXECUTED case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; 300032b0: e897000c ldm r7, {r2, r3} <== NOT EXECUTED 300032b4: e58420dc str r2, [r4, #220] ; 0xdc <== NOT EXECUTED 300032b8: e58430e0 str r3, [r4, #224] ; 0xe0 <== NOT EXECUTED break; 300032bc: ea000022 b 3000334c <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { 300032c0: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED 300032c4: e59f309c ldr r3, [pc, #156] ; 30003368 <== NOT EXECUTED 300032c8: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 300032cc: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 300032d0: e3530000 cmp r3, #0 <== NOT EXECUTED 300032d4: 0a000003 beq 300032e8 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); 300032d8: e1a00004 mov r0, r4 <== NOT EXECUTED 300032dc: e1a0e00f mov lr, pc <== NOT EXECUTED 300032e0: e12fff13 bx r3 <== NOT EXECUTED 300032e4: e1a06000 mov r6, r0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); 300032e8: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ 300032ec: e3a01000 mov r1, #0 <== NOT EXECUTED * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { sc = rtems_termios_linesw[tty->t_line].l_close(tty); } tty->t_line=*(int*)(args->buffer); 300032f0: e5932000 ldr r2, [r3] <== 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) { 300032f4: e59f306c ldr r3, [pc, #108] ; 30003368 <== NOT EXECUTED */ 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); tty->t_sc = NULL; /* ensure that no more valid data */ 300032f8: e58410d0 str r1, [r4, #208] ; 0xd0 <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 300032fc: e7933282 ldr r3, [r3, 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); 30003300: e58420cc str r2, [r4, #204] ; 0xcc <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { 30003304: e1530001 cmp r3, r1 <== NOT EXECUTED 30003308: 0a00000f beq 3000334c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); 3000330c: e1a00004 mov r0, r4 <== NOT EXECUTED 30003310: e1a0e00f mov lr, pc <== NOT EXECUTED 30003314: e12fff13 bx r3 <== NOT EXECUTED 30003318: e1a06000 mov r6, r0 <== NOT EXECUTED 3000331c: ea00000a b 3000334c <== NOT EXECUTED *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; 30003320: e5942060 ldr r2, [r4, #96] ; 0x60 <== NOT EXECUTED 30003324: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 30003328: e5940020 ldr r0, [r4, #32] <== NOT EXECUTED break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) 3000332c: e0523003 subs r3, r2, r3 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; 30003330: 45942064 ldrmi r2, [r4, #100] ; 0x64 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 30003334: e5941024 ldr r1, [r4, #36] ; 0x24 <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; 30003338: 40833002 addmi r3, r3, r2 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; 3000333c: e0611000 rsb r1, r1, r0 <== NOT EXECUTED 30003340: e5952008 ldr r2, [r5, #8] <== NOT EXECUTED 30003344: e0813003 add r3, r1, r3 <== NOT EXECUTED 30003348: e5823000 str r3, [r2] <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); 3000334c: e5940018 ldr r0, [r4, #24] 30003350: eb00042f bl 30004414 args->ioctl_return = sc; 30003354: e585600c str r6, [r5, #12] return sc; } 30003358: e1a00006 mov r0, r6 3000335c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30003360: 4004667f .word 0x4004667f 30003364: 4004741a .word 0x4004741a 30003368: 300199f4 .word 0x300199f4 30003504 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003504: e92d4ff7 push {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} 30003508: e1a08002 mov r8, r2 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 3000350c: e59f23d4 ldr r2, [pc, #980] ; 300038e8 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003510: e1a0a001 mov sl, r1 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 30003514: e3a01000 mov r1, #0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003518: e1a0b000 mov fp, r0 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 3000351c: e5920000 ldr r0, [r2] 30003520: e1a02001 mov r2, r1 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { 30003524: e58d3008 str r3, [sp, #8] struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, 30003528: eb000373 bl 300042fc RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 3000352c: e2506000 subs r6, r0, #0 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 30003530: 059f33b4 ldreq r3, [pc, #948] ; 300038ec 30003534: 05935000 ldreq r5, [r3] /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 30003538: 0a000007 beq 3000355c 3000353c: ea0000df b 300038c0 <== NOT EXECUTED return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { if ((tty->major == major) && (tty->minor == minor)) 30003540: e595300c ldr r3, [r5, #12] 30003544: e153000b cmp r3, fp 30003548: 1a000002 bne 30003558 3000354c: e5953010 ldr r3, [r5, #16] 30003550: e153000a cmp r3, sl 30003554: 0a0000b8 beq 3000383c */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 30003558: e5955000 ldr r5, [r5] 3000355c: e3550000 cmp r5, #0 30003560: 1afffff6 bne 30003540 30003564: ea0000d7 b 300038c8 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; 30003568: e59f7380 ldr r7, [pc, #896] ; 300038f0 3000356c: e5973004 ldr r3, [r7, #4] 30003570: e5853064 str r3, [r5, #100] ; 0x64 tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 30003574: e5950064 ldr r0, [r5, #100] ; 0x64 30003578: eb0015ee bl 30008d38 if (tty->rawInBuf.theBuf == NULL) { 3000357c: e3500000 cmp r0, #0 } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); 30003580: e5850058 str r0, [r5, #88] ; 0x58 if (tty->rawInBuf.theBuf == NULL) { 30003584: 0a00000f beq 300035c8 return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; 30003588: e5973008 ldr r3, [r7, #8] 3000358c: e5853088 str r3, [r5, #136] ; 0x88 tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 30003590: e5950088 ldr r0, [r5, #136] ; 0x88 30003594: eb0015e7 bl 30008d38 if (tty->rawOutBuf.theBuf == NULL) { 30003598: e3500000 cmp r0, #0 } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); 3000359c: e585007c str r0, [r5, #124] ; 0x7c if (tty->rawOutBuf.theBuf == NULL) { 300035a0: 0a000006 beq 300035c0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 300035a4: e5970000 ldr r0, [r7] 300035a8: eb0015e2 bl 30008d38 if (tty->cbuf == NULL) { 300035ac: e3500000 cmp r0, #0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); 300035b0: e585001c str r0, [r5, #28] if (tty->cbuf == NULL) { 300035b4: 1a000007 bne 300035d8 free((void *)(tty->rawOutBuf.theBuf)); 300035b8: e595007c ldr r0, [r5, #124] ; 0x7c <== NOT EXECUTED 300035bc: eb001493 bl 30008810 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 300035c0: e5950058 ldr r0, [r5, #88] ; 0x58 <== NOT EXECUTED 300035c4: eb001491 bl 30008810 <== NOT EXECUTED free(tty); 300035c8: e1a00005 mov r0, r5 <== NOT EXECUTED 300035cc: eb00148f bl 30008810 <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); 300035d0: e3a0601a mov r6, #26 <== NOT EXECUTED 300035d4: ea0000b6 b 300038b4 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 300035d8: e59f230c ldr r2, [pc, #780] ; 300038ec return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 300035dc: e3a03000 mov r3, #0 tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 300035e0: e5922000 ldr r2, [r2] return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; 300035e4: e58530d4 str r3, [r5, #212] ; 0xd4 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; 300035e8: e5853004 str r3, [r5, #4] if (rtems_termios_ttyHead != NULL) 300035ec: e1520003 cmp r2, r3 } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; tty->tty_snd.sw_arg = NULL; 300035f0: e58530d8 str r3, [r5, #216] ; 0xd8 tty->tty_rcv.sw_pfn = NULL; 300035f4: e58530dc str r3, [r5, #220] ; 0xdc tty->tty_rcv.sw_arg = NULL; 300035f8: e58530e0 str r3, [r5, #224] ; 0xe0 tty->tty_rcvwakeup = 0; 300035fc: e58530e4 str r3, [r5, #228] ; 0xe4 tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 30003600: e59f32ec ldr r3, [pc, #748] ; 300038f4 * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; 30003604: 15825004 strne r5, [r2, #4] tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; 30003608: e5852000 str r2, [r5] tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 3000360c: e5932000 ldr r2, [r3] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003610: e59f72d8 ldr r7, [pc, #728] ; 300038f0 tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) 30003614: e3520000 cmp r2, #0 rtems_termios_ttyTail = tty; 30003618: 05834000 streq r4, [r3] */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 3000361c: e59f12c8 ldr r1, [pc, #712] ; 300038ec tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003620: e5d7300c ldrb r3, [r7, #12] 30003624: e59f02cc ldr r0, [pc, #716] ; 300038f8 */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; 30003628: e5814000 str r4, [r1] if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; 3000362c: e584a010 str sl, [r4, #16] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003630: e1830000 orr r0, r3, r0 rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; tty->major = major; 30003634: e584b00c str fp, [r4, #12] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( 30003638: e284c014 add ip, r4, #20 3000363c: e3a03000 mov r3, #0 30003640: e3a01001 mov r1, #1 30003644: e3a02054 mov r2, #84 ; 0x54 30003648: e58dc000 str ip, [sp] 3000364c: eb000298 bl 300040b4 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) 30003650: e2503000 subs r3, r0, #0 30003654: 1a000095 bne 300038b0 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 30003658: e5d7200c ldrb r2, [r7, #12] 3000365c: e59f0298 ldr r0, [pc, #664] ; 300038fc 30003660: e284c018 add ip, r4, #24 30003664: e1820000 orr r0, r2, r0 30003668: e3a01001 mov r1, #1 3000366c: e3a02054 mov r2, #84 ; 0x54 30003670: e58dc000 str ip, [sp] 30003674: eb00028e bl 300040b4 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) 30003678: e2501000 subs r1, r0, #0 3000367c: 1a00008b bne 300038b0 rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( 30003680: e5d7300c ldrb r3, [r7, #12] 30003684: e59f0274 ldr r0, [pc, #628] ; 30003900 30003688: e284c08c add ip, r4, #140 ; 0x8c 3000368c: e1830000 orr r0, r3, r0 30003690: e3a02020 mov r2, #32 30003694: e1a03001 mov r3, r1 30003698: e58dc000 str ip, [sp] 3000369c: eb000284 bl 300040b4 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) 300036a0: e2509000 subs r9, r0, #0 300036a4: 1a000081 bne 300038b0 tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; 300036a8: e59de008 ldr lr, [sp, #8] 300036ac: e284c098 add ip, r4, #152 ; 0x98 300036b0: e8be000f ldm lr!, {r0, r1, r2, r3} 300036b4: e8ac000f stmia ip!, {r0, r1, r2, r3} 300036b8: e89e000f ldm lr, {r0, r1, r2, r3} 300036bc: e88c000f stm ip, {r0, r1, r2, r3} /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 300036c0: e59430b4 ldr r3, [r4, #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; 300036c4: e5849094 str r9, [r4, #148] ; 0x94 tty->device = *callbacks; /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 300036c8: e3530002 cmp r3, #2 300036cc: 1a000016 bne 3000372c sc = rtems_task_create ( 300036d0: e5d7300c ldrb r3, [r7, #12] <== NOT EXECUTED 300036d4: e59f0228 ldr r0, [pc, #552] ; 30003904 <== NOT EXECUTED 300036d8: e284c0c8 add ip, r4, #200 ; 0xc8 <== NOT EXECUTED 300036dc: e1830000 orr r0, r3, r0 <== NOT EXECUTED 300036e0: e3a0100a mov r1, #10 <== NOT EXECUTED 300036e4: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 300036e8: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 300036ec: e88d1200 stm sp, {r9, ip} <== NOT EXECUTED 300036f0: eb00036e bl 300044b0 <== 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) 300036f4: e250e000 subs lr, r0, #0 <== NOT EXECUTED 300036f8: 1a00006c bne 300038b0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( 300036fc: e5d7300c ldrb r3, [r7, #12] <== NOT EXECUTED 30003700: e59f0200 ldr r0, [pc, #512] ; 30003908 <== NOT EXECUTED 30003704: e284c0c4 add ip, r4, #196 ; 0xc4 <== NOT EXECUTED 30003708: e1830000 orr r0, r3, r0 <== NOT EXECUTED 3000370c: e3a01009 mov r1, #9 <== NOT EXECUTED 30003710: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED 30003714: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED 30003718: e58de000 str lr, [sp] <== NOT EXECUTED 3000371c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 30003720: eb000362 bl 300044b0 <== 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) 30003724: e3500000 cmp r0, #0 <== NOT EXECUTED 30003728: 1a000060 bne 300038b0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || 3000372c: e59430a0 ldr r3, [r4, #160] ; 0xa0 30003730: e3530000 cmp r3, #0 30003734: 0a000002 beq 30003744 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ 30003738: e59430b4 ldr r3, [r4, #180] ; 0xb4 3000373c: e3530002 cmp r3, #2 30003740: 1a00000b bne 30003774 sc = rtems_semaphore_create ( 30003744: e59f31a4 ldr r3, [pc, #420] ; 300038f0 <== NOT EXECUTED 30003748: e59f01bc ldr r0, [pc, #444] ; 3000390c <== NOT EXECUTED 3000374c: e5d3300c ldrb r3, [r3, #12] <== NOT EXECUTED 30003750: e3a01000 mov r1, #0 <== NOT EXECUTED 30003754: e1830000 orr r0, r3, r0 <== NOT EXECUTED 30003758: e284c068 add ip, r4, #104 ; 0x68 <== NOT EXECUTED 3000375c: e3a02024 mov r2, #36 ; 0x24 <== NOT EXECUTED 30003760: e1a03001 mov r3, r1 <== NOT EXECUTED 30003764: e58dc000 str ip, [sp] <== NOT EXECUTED 30003768: eb000251 bl 300040b4 <== 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) 3000376c: e3500000 cmp r0, #0 <== NOT EXECUTED 30003770: 1a00004e bne 300038b0 <== NOT EXECUTED 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; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; 30003774: e3a0e01c mov lr, #28 30003778: e5c4e042 strb lr, [r4, #66] ; 0x42 tty->termios.c_cc[VERASE] = '\177'; 3000377c: e28ee063 add lr, lr, #99 ; 0x63 30003780: e5c4e043 strb lr, [r4, #67] ; 0x43 tty->termios.c_cc[VKILL] = '\025'; 30003784: e3a0e015 mov lr, #21 tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; 30003788: e3a02000 mov r2, #0 tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; tty->termios.c_cc[VINTR] = '\003'; tty->termios.c_cc[VQUIT] = '\034'; tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; 3000378c: e5c4e044 strb lr, [r4, #68] ; 0x44 tty->termios.c_cc[VEOF] = '\004'; 30003790: e3a0e004 mov lr, #4 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; 30003794: e58420b8 str r2, [r4, #184] ; 0xb8 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'; 30003798: e5c4e045 strb lr, [r4, #69] ; 0x45 tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 3000379c: e28ee00d add lr, lr, #13 /* 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; 300037a0: e594c064 ldr ip, [r4, #100] ; 0x64 tty->termios.c_cc[VERASE] = '\177'; tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; 300037a4: e5c4e049 strb lr, [r4, #73] ; 0x49 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; 300037a8: e5943064 ldr r3, [r4, #100] ; 0x64 tty->termios.c_cc[VKILL] = '\025'; tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; 300037ac: e28ee002 add lr, lr, #2 300037b0: e5c4e04a strb lr, [r4, #74] ; 0x4a 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; tty->termios.c_cc[VINTR] = '\003'; 300037b4: e3a01003 mov r1, #3 tty->termios.c_cc[VEOF] = '\004'; tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; 300037b8: e28ee007 add lr, lr, #7 300037bc: e5c4e04b strb lr, [r4, #75] ; 0x4b 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; 300037c0: e0000391 mul r0, r1, r3 tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; 300037c4: e3a0e012 mov lr, #18 300037c8: e5c4e04d strb lr, [r4, #77] ; 0x4d tty->termios.c_cc[VDISCARD] = '\017'; 300037cc: e3a0e00f mov lr, #15 300037d0: e5c4e04e strb lr, [r4, #78] ; 0x4e tty->termios.c_cc[VWERASE] = '\027'; 300037d4: e28ee008 add lr, lr, #8 300037d8: e5c4e04f strb lr, [r4, #79] ; 0x4f tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 300037dc: e59f310c ldr r3, [pc, #268] ; 300038f0 tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; 300037e0: e3a0e016 mov lr, #22 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; tty->termios.c_cc[VINTR] = '\003'; 300037e4: e5c41041 strb r1, [r4, #65] ; 0x41 tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; tty->termios.c_cc[VWERASE] = '\027'; tty->termios.c_cc[VLNEXT] = '\026'; 300037e8: e5c4e050 strb lr, [r4, #80] ; 0x50 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'; 300037ec: e5c4204c strb r2, [r4, #76] ; 0x4c tty->termios.c_cc[VEOL2] = '\000'; 300037f0: e5c42051 strb r2, [r4, #81] ; 0x51 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; 300037f4: e1a00120 lsr r0, r0, #2 /* * Bump name characer */ if (c++ == 'z') 300037f8: e5d3200c ldrb r2, [r3, #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; 300037fc: e58400c0 str r0, [r4, #192] ; 0xc0 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 30003800: e59f0108 ldr r0, [pc, #264] ; 30003910 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 30003804: e352007a cmp r2, #122 ; 0x7a } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; 30003808: e5840030 str r0, [r4, #48] ; 0x30 tty->termios.c_oflag = OPOST | ONLCR | XTABS; 3000380c: e59f0100 ldr r0, [pc, #256] ; 30003914 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 30003810: e2822001 add r2, r2, #1 /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; 30003814: e5840034 str r0, [r4, #52] ; 0x34 tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; 30003818: e59f00f8 ldr r0, [pc, #248] ; 30003918 /* 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; 3000381c: e1a010ac lsr r1, ip, #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; 30003820: e5840038 str r0, [r4, #56] ; 0x38 tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; 30003824: e59f00f0 ldr r0, [pc, #240] ; 3000391c /* 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; 30003828: e58410bc str r1, [r4, #188] ; 0xbc * 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; 3000382c: e584003c str r0, [r4, #60] ; 0x3c tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') 30003830: e5c3200c strb r2, [r3, #12] c = 'a'; 30003834: 03a02061 moveq r2, #97 ; 0x61 30003838: 05c3200c strbeq r2, [r3, #12] } args->iop->data1 = tty; if (!tty->refcount++) { 3000383c: e5953008 ldr r3, [r5, #8] */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 30003840: e5982000 ldr r2, [r8] if (!tty->refcount++) { 30003844: e3530000 cmp r3, #0 30003848: e2833001 add r3, r3, #1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; 3000384c: e5825034 str r5, [r2, #52] ; 0x34 if (!tty->refcount++) { 30003850: e5853008 str r3, [r5, #8] 30003854: 1a000016 bne 300038b4 if (tty->device.firstOpen) 30003858: e5953098 ldr r3, [r5, #152] ; 0x98 3000385c: e3530000 cmp r3, #0 (*tty->device.firstOpen)(major, minor, arg); 30003860: 11a0000b movne r0, fp 30003864: 11a0100a movne r1, sl 30003868: 11a02008 movne r2, r8 3000386c: 11a0e00f movne lr, pc 30003870: 112fff13 bxne r3 /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { 30003874: e59530b4 ldr r3, [r5, #180] ; 0xb4 30003878: e3530002 cmp r3, #2 3000387c: 1a00000c bne 300038b4 sc = rtems_task_start(tty->rxTaskId, 30003880: e59500c4 ldr r0, [r5, #196] ; 0xc4 <== NOT EXECUTED 30003884: e59f1094 ldr r1, [pc, #148] ; 30003920 <== NOT EXECUTED 30003888: e1a02005 mov r2, r5 <== NOT EXECUTED 3000388c: eb0003ac bl 30004744 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 30003890: e3500000 cmp r0, #0 <== NOT EXECUTED 30003894: 1a000005 bne 300038b0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, 30003898: e1a02005 mov r2, r5 <== NOT EXECUTED 3000389c: e59500c8 ldr r0, [r5, #200] ; 0xc8 <== NOT EXECUTED 300038a0: e59f107c ldr r1, [pc, #124] ; 30003924 <== NOT EXECUTED 300038a4: eb0003a6 bl 30004744 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) 300038a8: e3500000 cmp r0, #0 <== NOT EXECUTED 300038ac: 0a000000 beq 300038b4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 300038b0: eb000425 bl 3000494c <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); 300038b4: e59f302c ldr r3, [pc, #44] ; 300038e8 300038b8: e5930000 ldr r0, [r3] 300038bc: eb0002d4 bl 30004414 return RTEMS_SUCCESSFUL; } 300038c0: e1a00006 mov r0, r6 300038c4: e8bd8ffe pop {r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 300038c8: e3a00001 mov r0, #1 300038cc: e3a010e8 mov r1, #232 ; 0xe8 300038d0: eb001392 bl 30008720 if (tty == NULL) { 300038d4: e3500000 cmp r0, #0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); 300038d8: e1a05000 mov r5, r0 300038dc: e1a04000 mov r4, r0 if (tty == NULL) { 300038e0: 1affff20 bne 30003568 300038e4: eaffff39 b 300035d0 <== NOT EXECUTED 300038e8: 30019bc8 .word 0x30019bc8 300038ec: 30019bd0 .word 0x30019bd0 300038f0: 300193c8 .word 0x300193c8 300038f4: 30019bcc .word 0x30019bcc 300038f8: 54526900 .word 0x54526900 300038fc: 54526f00 .word 0x54526f00 30003900: 54527800 .word 0x54527800 30003904: 54785400 .word 0x54785400 30003908: 52785400 .word 0x52785400 3000390c: 54527200 .word 0x54527200 30003910: 00002502 .word 0x00002502 30003914: 00001805 .word 0x00001805 30003918: 000008bd .word 0x000008bd 3000391c: 0000823b .word 0x0000823b 30003920: 30003994 .word 0x30003994 30003924: 30003928 .word 0x30003928 300024a0 : const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 300024a0: 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) { 300024a4: 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) { 300024a8: e3530000 cmp r3, #0 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { 300024ac: e1a04002 mov r4, r2 300024b0: e1a0a000 mov sl, r0 300024b4: e1a06001 mov r6, r1 const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { 300024b8: 1a000005 bne 300024d4 (*tty->device.write)(tty->minor, (void *)buf, len); 300024bc: e1a01000 mov r1, r0 300024c0: e1a02006 mov r2, r6 300024c4: e5940010 ldr r0, [r4, #16] 300024c8: e1a0e00f mov lr, pc 300024cc: e594f0a4 ldr pc, [r4, #164] ; 0xa4 return; 300024d0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} } newHead = tty->rawOutBuf.Head; 300024d4: e5925080 ldr r5, [r2, #128] ; 0x80 <== NOT EXECUTED 300024d8: e3a07000 mov r7, #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; 300024dc: e3a09002 mov r9, #2 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 300024e0: e3a0b001 mov fp, #1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 300024e4: ea00002e b 300025a4 <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; 300024e8: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED 300024ec: e2850001 add r0, r5, #1 <== NOT EXECUTED 300024f0: eb004f4d bl 3001622c <__umodsi3> <== NOT EXECUTED 300024f4: e1a05000 mov r5, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300024f8: e10f8000 mrs r8, CPSR <== NOT EXECUTED 300024fc: e3883080 orr r3, r8, #128 ; 0x80 <== NOT EXECUTED 30002500: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { 30002504: ea00000a b 30002534 <== NOT EXECUTED tty->rawOutBufState = rob_wait; 30002508: e5849094 str r9, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 3000250c: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, 30002510: e3a01000 mov r1, #0 <== NOT EXECUTED 30002514: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED 30002518: e1a02001 mov r2, r1 <== NOT EXECUTED 3000251c: eb000776 bl 300042fc <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) 30002520: e3500000 cmp r0, #0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 30002524: 1b000908 blne 3000494c <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30002528: e10f8000 mrs r8, CPSR <== NOT EXECUTED 3000252c: e3883080 orr r3, r8, #128 ; 0x80 <== NOT EXECUTED 30002530: 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) { 30002534: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED 30002538: e1550003 cmp r5, r3 <== NOT EXECUTED 3000253c: 0afffff1 beq 30002508 <== 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++; 30002540: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED 30002544: e7da1007 ldrb r1, [sl, r7] <== NOT EXECUTED 30002548: e594207c ldr r2, [r4, #124] ; 0x7c <== NOT EXECUTED 3000254c: e7c21003 strb r1, [r2, r3] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { 30002550: 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; 30002554: e5845080 str r5, [r4, #128] ; 0x80 <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { 30002558: e3530000 cmp r3, #0 <== NOT EXECUTED 3000255c: 1a00000d bne 30002598 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 30002560: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 30002564: e3130010 tst r3, #16 <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; 30002568: 159430b8 ldrne r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 3000256c: 13833020 orrne r3, r3, #32 <== NOT EXECUTED 30002570: 158430b8 strne r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } tty->rawOutBuf.theBuf[tty->rawOutBuf.Head] = *buf++; tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { 30002574: 1a000006 bne 30002594 <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 30002578: 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, 3000257c: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED 30002580: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002584: e0811003 add r1, r1, r3 <== NOT EXECUTED 30002588: e3a02001 mov r2, #1 <== NOT EXECUTED 3000258c: e1a0e00f mov lr, pc <== NOT EXECUTED 30002590: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED } else { /* remember that output has been stopped due to flow ctrl*/ tty->flow_ctrl |= FL_OSTOP; } tty->rawOutBufState = rob_busy; 30002594: e584b094 str fp, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002598: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED } rtems_interrupt_enable (level); len--; 3000259c: e2466001 sub r6, r6, #1 <== NOT EXECUTED 300025a0: e2877001 add r7, r7, #1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { (*tty->device.write)(tty->minor, (void *)buf, len); return; } newHead = tty->rawOutBuf.Head; while (len) { 300025a4: e3560000 cmp r6, #0 <== NOT EXECUTED 300025a8: 1affffce bne 300024e8 <== NOT EXECUTED 300025ac: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30002c74 : return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 30002c74: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002c78: e5903000 ldr r3, [r0] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { 30002c7c: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002c80: 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); 30002c84: 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; 30002c88: e595300c ldr r3, [r5, #12] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002c8c: e1a02001 mov r2, r1 <== NOT EXECUTED 30002c90: 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; 30002c94: e5957010 ldr r7, [r5, #16] <== NOT EXECUTED char *buffer = args->buffer; 30002c98: e58d3000 str r3, [sp] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002c9c: eb000596 bl 300042fc <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 30002ca0: e2506000 subs r6, r0, #0 <== NOT EXECUTED 30002ca4: 1a0000c1 bne 30002fb0 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { 30002ca8: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED 30002cac: e59f3304 ldr r3, [pc, #772] ; 30002fb8 <== NOT EXECUTED 30002cb0: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED 30002cb4: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED 30002cb8: e3530000 cmp r3, #0 <== NOT EXECUTED 30002cbc: 0a000005 beq 30002cd8 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); 30002cc0: e1a01005 mov r1, r5 <== NOT EXECUTED 30002cc4: e1a00004 mov r0, r4 <== NOT EXECUTED 30002cc8: e1a0e00f mov lr, pc <== NOT EXECUTED 30002ccc: e12fff13 bx r3 <== NOT EXECUTED 30002cd0: e1a06000 mov r6, r0 <== NOT EXECUTED 30002cd4: ea0000b1 b 30002fa0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { 30002cd8: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED 30002cdc: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30002ce0: e1520003 cmp r2, r3 <== NOT EXECUTED 30002ce4: 1a00009a bne 30002f54 <== NOT EXECUTED tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 30002ce8: e59420a0 ldr r2, [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; 30002cec: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED if (tty->device.pollRead != NULL 30002cf0: e3520000 cmp r2, #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; 30002cf4: e584302c str r3, [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; 30002cf8: e5846020 str r6, [r4, #32] <== NOT EXECUTED 30002cfc: e5846024 str r6, [r4, #36] ; 0x24 <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL 30002d00: 0a00003b beq 30002df4 <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) 30002d04: e59430b4 ldr r3, [r4, #180] ; 0xb4 <== NOT EXECUTED 30002d08: e3530000 cmp r3, #0 <== NOT EXECUTED 30002d0c: 1a000038 bne 30002df4 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { 30002d10: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED 30002d14: e3130002 tst r3, #2 <== NOT EXECUTED 30002d18: 0a00000d beq 30002d54 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 30002d1c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002d20: e1a0e00f mov lr, pc <== NOT EXECUTED 30002d24: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (n < 0) { 30002d28: e3500000 cmp r0, #0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) 30002d2c: e1a01004 mov r1, r4 <== NOT EXECUTED 30002d30: 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) { 30002d34: aa000002 bge 30002d44 <== NOT EXECUTED rtems_task_wake_after (1); 30002d38: e3a00001 mov r0, #1 <== NOT EXECUTED 30002d3c: eb000698 bl 300047a4 <== NOT EXECUTED 30002d40: eafffff5 b 30002d1c <== NOT EXECUTED } else { if (siproc (n, tty)) 30002d44: ebffff67 bl 30002ae8 <== NOT EXECUTED 30002d48: e3500000 cmp r0, #0 <== NOT EXECUTED 30002d4c: 0afffff2 beq 30002d1c <== NOT EXECUTED 30002d50: ea00007f b 30002f54 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); 30002d54: eb0003db bl 30003cc8 <== NOT EXECUTED 30002d58: e1a08000 mov r8, r0 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); 30002d5c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002d60: e1a0e00f mov lr, pc <== NOT EXECUTED 30002d64: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (n < 0) { 30002d68: e3500000 cmp r0, #0 <== NOT EXECUTED 30002d6c: aa000013 bge 30002dc0 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { 30002d70: e5d42047 ldrb r2, [r4, #71] ; 0x47 <== NOT EXECUTED 30002d74: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED 30002d78: e3520000 cmp r2, #0 <== NOT EXECUTED 30002d7c: 0a000005 beq 30002d98 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { 30002d80: e3530000 cmp r3, #0 <== NOT EXECUTED 30002d84: 0a00000a beq 30002db4 <== NOT EXECUTED 30002d88: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 30002d8c: e3530000 cmp r3, #0 <== NOT EXECUTED 30002d90: 0a000007 beq 30002db4 <== NOT EXECUTED 30002d94: ea000001 b 30002da0 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) 30002d98: e3530000 cmp r3, #0 <== NOT EXECUTED 30002d9c: 0a00006c beq 30002f54 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); 30002da0: eb0003c8 bl 30003cc8 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { 30002da4: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED 30002da8: e0680000 rsb r0, r8, r0 <== NOT EXECUTED 30002dac: e1500003 cmp r0, r3 <== NOT EXECUTED 30002db0: 8a000067 bhi 30002f54 <== NOT EXECUTED break; } } rtems_task_wake_after (1); 30002db4: e3a00001 mov r0, #1 <== NOT EXECUTED 30002db8: eb000679 bl 300047a4 <== NOT EXECUTED 30002dbc: eaffffe6 b 30002d5c <== NOT EXECUTED } else { siproc (n, tty); 30002dc0: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED 30002dc4: e1a01004 mov r1, r4 <== NOT EXECUTED 30002dc8: ebffff46 bl 30002ae8 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 30002dcc: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED 30002dd0: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 30002dd4: e1520003 cmp r2, r3 <== NOT EXECUTED 30002dd8: aa00005d bge 30002f54 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) 30002ddc: e3530000 cmp r3, #0 <== NOT EXECUTED 30002de0: 0affffdd beq 30002d5c <== NOT EXECUTED 30002de4: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED 30002de8: e3530000 cmp r3, #0 <== NOT EXECUTED 30002dec: 0affffda beq 30002d5c <== NOT EXECUTED 30002df0: eaffffd7 b 30002d54 <== 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; 30002df4: e5948074 ldr r8, [r4, #116] ; 0x74 <== 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, 30002df8: e284b049 add fp, r4, #73 ; 0x49 <== NOT EXECUTED 30002dfc: e3a0a001 mov sl, #1 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 30002e00: e59f91b4 ldr r9, [pc, #436] ; 30002fbc <== NOT EXECUTED 30002e04: ea000041 b 30002f10 <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; 30002e08: e594005c ldr r0, [r4, #92] ; 0x5c <== NOT EXECUTED 30002e0c: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 30002e10: e2800001 add r0, r0, #1 <== NOT EXECUTED 30002e14: eb004d04 bl 3001622c <__umodsi3> <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; 30002e18: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED 30002e1c: e7d38000 ldrb r8, [r3, r0] <== NOT EXECUTED tty->rawInBuf.Head = newHead; 30002e20: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) 30002e24: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED 30002e28: e5942064 ldr r2, [r4, #100] ; 0x64 <== NOT EXECUTED 30002e2c: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED 30002e30: e0823003 add r3, r2, r3 <== NOT EXECUTED 30002e34: e0600003 rsb r0, r0, r3 <== NOT EXECUTED 30002e38: eb004cfb bl 3001622c <__umodsi3> <== NOT EXECUTED 30002e3c: e59430bc ldr r3, [r4, #188] ; 0xbc <== NOT EXECUTED 30002e40: e1500003 cmp r0, r3 <== NOT EXECUTED 30002e44: 2a00001f bcs 30002ec8 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; 30002e48: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 30002e4c: e59f316c ldr r3, [pc, #364] ; 30002fc0 <== 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; 30002e50: e3c22001 bic r2, r2, #1 <== NOT EXECUTED 30002e54: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) 30002e58: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED 30002e5c: e59f115c ldr r1, [pc, #348] ; 30002fc0 <== NOT EXECUTED 30002e60: e0023003 and r3, r2, r3 <== NOT EXECUTED 30002e64: e1530001 cmp r3, r1 <== NOT EXECUTED 30002e68: 1a00000b bne 30002e9c <== NOT EXECUTED 30002e6c: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED 30002e70: e3530000 cmp r3, #0 <== NOT EXECUTED 30002e74: 0a000002 beq 30002e84 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { 30002e78: 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)) 30002e7c: e3130020 tst r3, #32 <== NOT EXECUTED 30002e80: 0a000005 beq 30002e9c <== 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, 30002e84: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002e88: e1a0100b mov r1, fp <== NOT EXECUTED 30002e8c: e3a02001 mov r2, #1 <== NOT EXECUTED 30002e90: e1a0e00f mov lr, pc <== NOT EXECUTED 30002e94: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED 30002e98: ea00000a b 30002ec8 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { 30002e9c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 30002ea0: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30002ea4: 0a000007 beq 30002ec8 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; 30002ea8: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 30002eac: 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; 30002eb0: e3c22004 bic r2, r2, #4 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { 30002eb4: 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; 30002eb8: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { tty->device.startRemoteTx(tty->minor); 30002ebc: 15940010 ldrne r0, [r4, #16] <== NOT EXECUTED 30002ec0: 11a0e00f movne lr, pc <== NOT EXECUTED 30002ec4: 112fff13 bxne r3 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { 30002ec8: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED 30002ecc: e3130002 tst r3, #2 <== NOT EXECUTED 30002ed0: 0a000005 beq 30002eec <== NOT EXECUTED if (siproc (c, tty)) 30002ed4: e1a00008 mov r0, r8 <== NOT EXECUTED 30002ed8: e1a01004 mov r1, r4 <== NOT EXECUTED 30002edc: ebffff01 bl 30002ae8 <== NOT EXECUTED 30002ee0: e3500000 cmp r0, #0 <== NOT EXECUTED 30002ee4: 1a000007 bne 30002f08 <== NOT EXECUTED 30002ee8: ea000007 b 30002f0c <== NOT EXECUTED wait = 0; } else { siproc (c, tty); 30002eec: e1a00008 mov r0, r8 <== NOT EXECUTED 30002ef0: e1a01004 mov r1, r4 <== NOT EXECUTED 30002ef4: ebfffefb bl 30002ae8 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) 30002ef8: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED 30002efc: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 30002f00: e1520003 cmp r2, r3 <== NOT EXECUTED 30002f04: ba000000 blt 30002f0c <== NOT EXECUTED 30002f08: e3a0a000 mov sl, #0 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; 30002f0c: e5948070 ldr r8, [r4, #112] ; 0x70 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && 30002f10: e594205c ldr r2, [r4, #92] ; 0x5c <== NOT EXECUTED 30002f14: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED 30002f18: e1520003 cmp r2, r3 <== NOT EXECUTED 30002f1c: 0a000004 beq 30002f34 <== NOT EXECUTED 30002f20: e5993000 ldr r3, [r9] <== NOT EXECUTED 30002f24: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED 30002f28: e2433001 sub r3, r3, #1 <== NOT EXECUTED 30002f2c: e1520003 cmp r2, r3 <== NOT EXECUTED 30002f30: baffffb4 blt 30002e08 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { 30002f34: e35a0000 cmp sl, #0 <== NOT EXECUTED 30002f38: 0a000005 beq 30002f54 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, 30002f3c: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED 30002f40: e594106c ldr r1, [r4, #108] ; 0x6c <== NOT EXECUTED 30002f44: e1a02008 mov r2, r8 <== NOT EXECUTED 30002f48: eb0004eb bl 300042fc <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) 30002f4c: e3500000 cmp r0, #0 <== NOT EXECUTED 30002f50: 0affffee beq 30002f10 <== NOT EXECUTED { rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout; rtems_status_code sc; int wait = (int)1; while ( wait ) { 30002f54: e3a03000 mov r3, #0 <== NOT EXECUTED 30002f58: ea000006 b 30002f78 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; 30002f5c: e594101c ldr r1, [r4, #28] <== NOT EXECUTED count--; 30002f60: e2477001 sub r7, r7, #1 <== NOT EXECUTED sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; 30002f64: e7d12002 ldrb r2, [r1, r2] <== NOT EXECUTED 30002f68: e59d1000 ldr r1, [sp] <== NOT EXECUTED 30002f6c: e7c12003 strb r2, [r1, r3] <== NOT EXECUTED 30002f70: e5840024 str r0, [r4, #36] ; 0x24 <== NOT EXECUTED count--; 30002f74: e2833001 add r3, r3, #1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 30002f78: e3570000 cmp r7, #0 <== NOT EXECUTED 30002f7c: 0a000004 beq 30002f94 <== NOT EXECUTED 30002f80: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED 30002f84: e5941020 ldr r1, [r4, #32] <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; 30002f88: e2820001 add r0, r2, #1 <== NOT EXECUTED else sc = fillBufferQueue (tty); if (sc != RTEMS_SUCCESSFUL) tty->cindex = tty->ccount = 0; } while (count && (tty->cindex < tty->ccount)) { 30002f8c: e1520001 cmp r2, r1 <== NOT EXECUTED 30002f90: bafffff1 blt 30002f5c <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; 30002f94: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED 30002f98: e0677003 rsb r7, r7, r3 <== NOT EXECUTED 30002f9c: e5857018 str r7, [r5, #24] <== NOT EXECUTED tty->tty_rcvwakeup = 0; 30002fa0: e3a03000 mov r3, #0 <== NOT EXECUTED 30002fa4: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED rtems_semaphore_release (tty->isem); 30002fa8: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED 30002fac: eb000518 bl 30004414 <== NOT EXECUTED return sc; } 30002fb0: e1a00006 mov r0, r6 <== NOT EXECUTED 30002fb4: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30002fb8: 300199f4 .word 0x300199f4 30002fbc: 300193c8 .word 0x300193c8 30002fc0: 00000202 .word 0x00000202 30001f80 : int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) 30001f80: e59020b8 ldr r2, [r0, #184] ; 0xb8 <== NOT EXECUTED 30001f84: e59f31d0 ldr r3, [pc, #464] ; 3000215c <== 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) { 30001f88: 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)) 30001f8c: e0023003 and r3, r2, r3 <== NOT EXECUTED 30001f90: e59f21c8 ldr r2, [pc, #456] ; 30002160 <== 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) { 30001f94: 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)) 30001f98: e1530002 cmp r3, r2 <== NOT EXECUTED 30001f9c: 1a00000e bne 30001fdc <== NOT EXECUTED == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, 30001fa0: e284104a add r1, r4, #74 ; 0x4a <== NOT EXECUTED 30001fa4: e2422b01 sub r2, r2, #1024 ; 0x400 <== NOT EXECUTED 30001fa8: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 30001fac: e1a0e00f mov lr, pc <== NOT EXECUTED 30001fb0: 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 ( 30001fb4: e10f3000 mrs r3, CPSR <== NOT EXECUTED 30001fb8: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 30001fbc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 30001fc0: e5942090 ldr r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 30001fc4: 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--; 30001fc8: e2422001 sub r2, r2, #1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; 30001fcc: e3811002 orr r1, r1, #2 <== NOT EXECUTED 30001fd0: 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--; 30001fd4: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); 30001fd8: ea000011 b 30002024 <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) 30001fdc: e59030b8 ldr r3, [r0, #184] ; 0xb8 <== NOT EXECUTED 30001fe0: e2033003 and r3, r3, #3 <== NOT EXECUTED 30001fe4: e3530002 cmp r3, #2 <== NOT EXECUTED 30001fe8: 1a000010 bne 30002030 <== 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, 30001fec: e2841049 add r1, r4, #73 ; 0x49 <== NOT EXECUTED 30001ff0: e3a02001 mov r2, #1 <== NOT EXECUTED 30001ff4: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED 30001ff8: e1a0e00f mov lr, pc <== NOT EXECUTED 30001ffc: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED 30002000: e10f3000 mrs r3, CPSR <== NOT EXECUTED 30002004: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 30002008: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; 3000200c: e5942090 ldr r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 30002010: 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--; 30002014: e2422001 sub r2, r2, #1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; 30002018: e3c11002 bic r1, r1, #2 <== NOT EXECUTED 3000201c: 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--; 30002020: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002024: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 30002028: e3a05001 mov r5, #1 <== NOT EXECUTED 3000202c: ea000048 b 30002154 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { 30002030: e5902080 ldr r2, [r0, #128] ; 0x80 <== NOT EXECUTED 30002034: e5903084 ldr r3, [r0, #132] ; 0x84 <== NOT EXECUTED 30002038: e1520003 cmp r2, r3 <== NOT EXECUTED 3000203c: 1a000005 bne 30002058 <== NOT EXECUTED /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { 30002040: e5903094 ldr r3, [r0, #148] ; 0x94 <== NOT EXECUTED 30002044: e3530002 cmp r3, #2 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 30002048: 0590008c ldreq r0, [r0, #140] ; 0x8c <== NOT EXECUTED 3000204c: 0b0008f0 bleq 30004414 <== NOT EXECUTED 30002050: e3a05000 mov r5, #0 <== NOT EXECUTED 30002054: ea00003e b 30002154 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30002058: e10f3000 mrs r3, CPSR <== NOT EXECUTED 3000205c: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 30002060: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; 30002064: e3a02000 mov r2, #0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; 30002068: e5900090 ldr r0, [r0, #144] ; 0x90 <== NOT EXECUTED tty->t_dqlen = 0; 3000206c: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002070: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; 30002074: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED 30002078: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED 3000207c: e0800003 add r0, r0, r3 <== NOT EXECUTED 30002080: eb005069 bl 3001622c <__umodsi3> <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 30002084: 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; 30002088: e1a06000 mov r6, r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { 3000208c: 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; 30002090: e5840084 str r0, [r4, #132] ; 0x84 <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); 30002094: 0594008c ldreq r0, [r4, #140] ; 0x8c <== NOT EXECUTED 30002098: 0b0008dd bleq 30004414 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { 3000209c: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED 300020a0: e1560003 cmp r6, r3 <== NOT EXECUTED 300020a4: 1a00000a bne 300020d4 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 300020a8: e59430d4 ldr r3, [r4, #212] ; 0xd4 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 300020ac: e3a05000 mov r5, #0 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 300020b0: e1530005 cmp r3, r5 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; 300020b4: e5845094 str r5, [r4, #148] ; 0x94 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { 300020b8: 01a05003 moveq r5, r3 <== NOT EXECUTED 300020bc: 0a000023 beq 30002150 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); 300020c0: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED 300020c4: e59410d8 ldr r1, [r4, #216] ; 0xd8 <== NOT EXECUTED 300020c8: e1a0e00f mov lr, pc <== NOT EXECUTED 300020cc: e12fff13 bx r3 <== NOT EXECUTED 300020d0: ea00001e b 30002150 <== NOT EXECUTED } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) 300020d4: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED 300020d8: e2033e21 and r3, r3, #528 ; 0x210 <== NOT EXECUTED 300020dc: e3530e21 cmp r3, #528 ; 0x210 <== NOT EXECUTED 300020e0: 1a00000a bne 30002110 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300020e4: e10f3000 mrs r3, CPSR <== NOT EXECUTED 300020e8: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED 300020ec: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; 300020f0: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED 300020f4: e3822020 orr r2, r2, #32 <== NOT EXECUTED 300020f8: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ 300020fc: e3a02001 mov r2, #1 <== NOT EXECUTED 30002100: e5842094 str r2, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30002104: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED 30002108: e3a05000 mov r5, #0 <== NOT EXECUTED 3000210c: ea00000f b 30002150 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 30002110: 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, 30002114: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) 30002118: e1560003 cmp r6, r3 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; 3000211c: 85945088 ldrhi r5, [r4, #136] ; 0x88 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; 30002120: 95945080 ldrls r5, [r4, #128] ; 0x80 <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { 30002124: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; 30002128: e0665005 rsb r5, r6, r5 <== NOT EXECUTED /* when flow control XON or XOF, don't send blocks of data */ /* to allow fast reaction on incoming flow ctrl and low latency*/ /* for outgoing flow control */ if (tty->flow_ctrl & (FL_MDXON | FL_MDXOF)) { 3000212c: e3130c06 tst r3, #1536 ; 0x600 <== NOT EXECUTED 30002130: 13a05001 movne r5, #1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ 30002134: e3a03001 mov r3, #1 <== NOT EXECUTED 30002138: e5843094 str r3, [r4, #148] ; 0x94 <== NOT EXECUTED (*tty->device.write)(tty->minor, 3000213c: e0811006 add r1, r1, r6 <== NOT EXECUTED 30002140: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 30002144: e1a02005 mov r2, r5 <== NOT EXECUTED 30002148: e1a0e00f mov lr, pc <== NOT EXECUTED 3000214c: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ 30002150: e5846084 str r6, [r4, #132] ; 0x84 <== NOT EXECUTED } return nToSend; } 30002154: e1a00005 mov r0, r5 <== NOT EXECUTED 30002158: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3000215c: 00000403 .word 0x00000403 30002160: 00000401 .word 0x00000401 30003994 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { 30003994: e92d40f3 push {r0, r1, r4, r5, r6, r7, lr} <== NOT EXECUTED 30003998: e1a04000 mov r4, r0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 3000399c: e3a05000 mov r5, #0 <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 300039a0: e28d6007 add r6, sp, #7 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | 300039a4: e1a0300d mov r3, sp <== NOT EXECUTED 300039a8: e3a01002 mov r1, #2 <== NOT EXECUTED 300039ac: e3a02000 mov r2, #0 <== NOT EXECUTED 300039b0: e3a00003 mov r0, #3 <== NOT EXECUTED 300039b4: eb0000e0 bl 30003d3c <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { 300039b8: e59d3000 ldr r3, [sp] <== NOT EXECUTED 300039bc: e3130001 tst r3, #1 <== NOT EXECUTED 300039c0: 0a000003 beq 300039d4 <== NOT EXECUTED tty->rxTaskId = 0; 300039c4: e58450c4 str r5, [r4, #196] ; 0xc4 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 300039c8: e1a00005 mov r0, r5 <== NOT EXECUTED 300039cc: eb000309 bl 300045f8 <== NOT EXECUTED 300039d0: eafffff3 b 300039a4 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 300039d4: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED 300039d8: e1a0e00f mov lr, pc <== NOT EXECUTED 300039dc: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (c != EOF) { 300039e0: e3700001 cmn r0, #1 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); 300039e4: e1a03000 mov r3, r0 <== NOT EXECUTED if (c != EOF) { 300039e8: 0affffed beq 300039a4 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( 300039ec: e1a00004 mov r0, r4 <== NOT EXECUTED 300039f0: e1a01006 mov r1, r6 <== NOT EXECUTED 300039f4: e3a02001 mov r2, #1 <== NOT EXECUTED c = tty->device.pollRead(tty->minor); if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; 300039f8: e5cd3007 strb r3, [sp, #7] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( 300039fc: ebfff9f4 bl 300021d4 <== NOT EXECUTED 30003a00: eaffffe7 b 300039a4 <== NOT EXECUTED 30001f74 : 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); 30001f74: e59000c4 ldr r0, [r0, #196] ; 0xc4 <== NOT EXECUTED 30001f78: e3a01002 mov r1, #2 <== NOT EXECUTED 30001f7c: ea0007ca b 30003eac <== NOT EXECUTED 30003928 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 30003928: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 3000392c: e59f705c ldr r7, [pc, #92] ; 30003990 <== NOT EXECUTED /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { 30003930: e1a04000 mov r4, r0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | 30003934: e3a05000 mov r5, #0 <== NOT EXECUTED 30003938: e1a0300d mov r3, sp <== NOT EXECUTED 3000393c: e3a01002 mov r1, #2 <== NOT EXECUTED 30003940: e3a02000 mov r2, #0 <== NOT EXECUTED 30003944: e3a00003 mov r0, #3 <== NOT EXECUTED 30003948: eb0000fb bl 30003d3c <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { 3000394c: 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); 30003950: 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) { 30003954: e3130001 tst r3, #1 <== NOT EXECUTED 30003958: 0a000003 beq 3000396c <== NOT EXECUTED tty->txTaskId = 0; 3000395c: e58450c8 str r5, [r4, #200] ; 0xc8 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); 30003960: e1a00005 mov r0, r5 <== NOT EXECUTED 30003964: eb000323 bl 300045f8 <== NOT EXECUTED 30003968: eafffff2 b 30003938 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { 3000396c: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED 30003970: e0873283 add r3, r7, r3, lsl #5 <== NOT EXECUTED 30003974: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED 30003978: e3530000 cmp r3, #0 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); 3000397c: 11a0e00f movne lr, pc <== NOT EXECUTED 30003980: 112fff13 bxne r3 <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); 30003984: e1a00004 mov r0, r4 <== NOT EXECUTED 30003988: ebfff97c bl 30001f80 <== NOT EXECUTED 3000398c: eaffffe9 b 30003938 <== NOT EXECUTED 30003990: 300199f4 .word 0x300199f4 30002b48 : rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002b48: e5903000 ldr r3, [r0] rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 30002b4c: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; 30002b50: e5935034 ldr r5, [r3, #52] ; 0x34 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002b54: e3a01000 mov r1, #0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { 30002b58: e1a04000 mov r4, 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); 30002b5c: e1a02001 mov r2, r1 30002b60: e5950018 ldr r0, [r5, #24] 30002b64: eb0005e4 bl 300042fc if (sc != RTEMS_SUCCESSFUL) 30002b68: e2506000 subs r6, r0, #0 30002b6c: 1a000022 bne 30002bfc return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { 30002b70: e59520cc ldr r2, [r5, #204] ; 0xcc 30002b74: e59f3088 ldr r3, [pc, #136] ; 30002c04 30002b78: e0833282 add r3, r3, r2, lsl #5 30002b7c: e593300c ldr r3, [r3, #12] 30002b80: e3530000 cmp r3, #0 30002b84: 0a000005 beq 30002ba0 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); 30002b88: e1a01004 mov r1, r4 <== NOT EXECUTED 30002b8c: e1a00005 mov r0, r5 <== NOT EXECUTED 30002b90: e1a0e00f mov lr, pc <== NOT EXECUTED 30002b94: e12fff13 bx r3 <== NOT EXECUTED 30002b98: e1a06000 mov r6, r0 <== NOT EXECUTED 30002b9c: ea000014 b 30002bf4 <== NOT EXECUTED rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { 30002ba0: e5953034 ldr r3, [r5, #52] ; 0x34 30002ba4: e3130001 tst r3, #1 uint32_t count = args->count; 30002ba8: 15948010 ldrne r8, [r4, #16] char *buffer = args->buffer; 30002bac: 1594a00c ldrne sl, [r4, #12] 30002bb0: 11a07006 movne r7, r6 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) { 30002bb4: 1a000004 bne 30002bcc 30002bb8: ea000007 b 30002bdc <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; while (count--) oproc (*buffer++, tty); 30002bbc: e7da0007 ldrb r0, [sl, r7] 30002bc0: ebfffe7a bl 300025b0 30002bc4: e2877001 add r7, r7, #1 30002bc8: e2488001 sub r8, r8, #1 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 30002bcc: e3580000 cmp r8, #0 oproc (*buffer++, tty); 30002bd0: e1a01005 mov r1, r5 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) 30002bd4: 1afffff8 bne 30002bbc 30002bd8: ea000003 b 30002bec oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); 30002bdc: e594000c ldr r0, [r4, #12] <== NOT EXECUTED 30002be0: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED 30002be4: e1a02005 mov r2, r5 <== NOT EXECUTED 30002be8: ebfffe2c bl 300024a0 <== NOT EXECUTED args->bytes_moved = args->count; 30002bec: e5943010 ldr r3, [r4, #16] 30002bf0: e5843018 str r3, [r4, #24] } rtems_semaphore_release (tty->osem); 30002bf4: e5950018 ldr r0, [r5, #24] 30002bf8: eb000605 bl 30004414 return sc; } 30002bfc: e1a00006 mov r0, r6 30002c00: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 30002c04: 300199f4 .word 0x300199f4 30005e98 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 30005e98: 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) 30005e9c: e2107202 ands r7, r0, #536870912 ; 0x20000000 <== NOT EXECUTED static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { 30005ea0: e1a06000 mov r6, r0 <== NOT EXECUTED 30005ea4: e1a09001 mov r9, r1 <== NOT EXECUTED 30005ea8: e1a04002 mov r4, r2 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) 30005eac: 0a00000d beq 30005ee8 <== NOT EXECUTED { if (rtems_panic_in_progress++) 30005eb0: e59f3160 ldr r3, [pc, #352] ; 30006018 <== NOT EXECUTED 30005eb4: e5932000 ldr r2, [r3] <== NOT EXECUTED 30005eb8: e3520000 cmp r2, #0 <== NOT EXECUTED 30005ebc: e2822001 add r2, r2, #1 <== NOT EXECUTED 30005ec0: e5832000 str r2, [r3] <== NOT EXECUTED 30005ec4: 0a000003 beq 30005ed8 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 30005ec8: e59f314c ldr r3, [pc, #332] ; 3000601c <== NOT EXECUTED 30005ecc: e5932000 ldr r2, [r3] <== NOT EXECUTED 30005ed0: e2822001 add r2, r2, #1 <== NOT EXECUTED 30005ed4: e5832000 str r2, [r3] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) 30005ed8: e59f3138 ldr r3, [pc, #312] ; 30006018 <== NOT EXECUTED 30005edc: e5933000 ldr r3, [r3] <== NOT EXECUTED 30005ee0: e3530002 cmp r3, #2 <== NOT EXECUTED 30005ee4: ca000049 bgt 30006010 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 30005ee8: e59f3130 ldr r3, [pc, #304] ; 30006020 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; 30005eec: e3c68207 bic r8, r6, #1879048192 ; 0x70000000 <== NOT EXECUTED /* don't aggravate things */ if (rtems_panic_in_progress > 2) return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ 30005ef0: e5933000 ldr r3, [r3] <== NOT EXECUTED 30005ef4: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED 30005ef8: eb003539 bl 300133e4 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ 30005efc: e2165101 ands r5, r6, #1073741824 ; 0x40000000 <== NOT EXECUTED 30005f00: 0a000001 beq 30005f0c <== NOT EXECUTED local_errno = errno; 30005f04: eb003443 bl 30013018 <__errno> <== NOT EXECUTED 30005f08: e5905000 ldr r5, [r0] <== NOT EXECUTED #if defined(RTEMS_MULTIPROCESSING) if (_System_state_Is_multiprocessing) fprintf(stderr, "[%" PRIu32 "] ", _Configuration_MP_table->node); #endif chars_written += vfprintf(stderr, printf_format, arglist); 30005f0c: e59fa10c ldr sl, [pc, #268] ; 30006020 <== NOT EXECUTED 30005f10: e1a02004 mov r2, r4 <== NOT EXECUTED 30005f14: e59a3000 ldr r3, [sl] <== NOT EXECUTED 30005f18: e1a01009 mov r1, r9 <== NOT EXECUTED 30005f1c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 30005f20: eb004d50 bl 30019468 <== NOT EXECUTED if (status) 30005f24: e3580000 cmp r8, #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); 30005f28: e1a04000 mov r4, r0 <== NOT EXECUTED if (status) 30005f2c: 0a000008 beq 30005f54 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); 30005f30: e59a3000 ldr r3, [sl] <== NOT EXECUTED 30005f34: e1a00008 mov r0, r8 <== NOT EXECUTED 30005f38: e593800c ldr r8, [r3, #12] <== NOT EXECUTED 30005f3c: ebffffd1 bl 30005e88 <== NOT EXECUTED 30005f40: e59f10dc ldr r1, [pc, #220] ; 30006024 <== NOT EXECUTED 30005f44: e1a02000 mov r2, r0 <== NOT EXECUTED 30005f48: e1a00008 mov r0, r8 <== NOT EXECUTED 30005f4c: eb0035e2 bl 300136dc <== NOT EXECUTED 30005f50: e0844000 add r4, r4, r0 <== NOT EXECUTED if (local_errno) 30005f54: e3550000 cmp r5, #0 <== NOT EXECUTED 30005f58: 0a000015 beq 30005fb4 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) 30005f5c: da00000d ble 30005f98 <== NOT EXECUTED 30005f60: e1a00005 mov r0, r5 <== NOT EXECUTED 30005f64: eb0038ef bl 30014328 <== NOT EXECUTED 30005f68: e5d03000 ldrb r3, [r0] <== NOT EXECUTED 30005f6c: e3530000 cmp r3, #0 <== NOT EXECUTED 30005f70: 0a000008 beq 30005f98 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); 30005f74: e59f30a4 ldr r3, [pc, #164] ; 30006020 <== NOT EXECUTED 30005f78: e1a00005 mov r0, r5 <== NOT EXECUTED 30005f7c: e5933000 ldr r3, [r3] <== NOT EXECUTED 30005f80: e593800c ldr r8, [r3, #12] <== NOT EXECUTED 30005f84: eb0038e7 bl 30014328 <== NOT EXECUTED 30005f88: e59f1098 ldr r1, [pc, #152] ; 30006028 <== NOT EXECUTED 30005f8c: e1a02000 mov r2, r0 <== NOT EXECUTED 30005f90: e1a00008 mov r0, r8 <== NOT EXECUTED 30005f94: ea000004 b 30005fac <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); 30005f98: e59f3080 ldr r3, [pc, #128] ; 30006020 <== NOT EXECUTED 30005f9c: e59f1088 ldr r1, [pc, #136] ; 3000602c <== NOT EXECUTED 30005fa0: e5933000 ldr r3, [r3] <== NOT EXECUTED 30005fa4: e1a02005 mov r2, r5 <== NOT EXECUTED 30005fa8: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 30005fac: eb0035ca bl 300136dc <== NOT EXECUTED 30005fb0: e0844000 add r4, r4, r0 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); 30005fb4: e59f8064 ldr r8, [pc, #100] ; 30006020 <== NOT EXECUTED 30005fb8: e59f1070 ldr r1, [pc, #112] ; 30006030 <== NOT EXECUTED 30005fbc: e5983000 ldr r3, [r8] <== NOT EXECUTED 30005fc0: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 30005fc4: eb0035c4 bl 300136dc <== NOT EXECUTED (void) fflush(stderr); 30005fc8: e5983000 ldr r3, [r8] <== 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"); 30005fcc: e1a0a000 mov sl, r0 <== NOT EXECUTED (void) fflush(stderr); 30005fd0: e593000c ldr r0, [r3, #12] <== NOT EXECUTED 30005fd4: eb003502 bl 300133e4 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 30005fd8: e3160203 tst r6, #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"); 30005fdc: 008a0004 addeq r0, sl, r4 <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) 30005fe0: 08bd87f0 popeq {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED { if (error_flag & RTEMS_ERROR_PANIC) 30005fe4: e3570000 cmp r7, #0 <== NOT EXECUTED 30005fe8: 0a000004 beq 30006000 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); 30005fec: e3a00000 mov r0, #0 <== NOT EXECUTED 30005ff0: e59f103c ldr r1, [pc, #60] ; 30006034 <== NOT EXECUTED 30005ff4: eb00001b bl 30006068 <== NOT EXECUTED _exit(local_errno); 30005ff8: e1a00005 mov r0, r5 <== NOT EXECUTED 30005ffc: eb0002c5 bl 30006b18 <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); 30006000: e59f1030 ldr r1, [pc, #48] ; 30006038 <== NOT EXECUTED 30006004: e1a00007 mov r0, r7 <== NOT EXECUTED 30006008: eb000016 bl 30006068 <== NOT EXECUTED abort(); 3000600c: eb0033f8 bl 30012ff4 <== NOT EXECUTED 30006010: e3a00000 mov r0, #0 <== NOT EXECUTED } } return chars_written; } 30006014: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED 30006018: 30024a88 .word 0x30024a88 3000601c: 30024c0c .word 0x30024c0c 30006020: 30024294 .word 0x30024294 30006024: 30023071 .word 0x30023071 30006028: 3002307f .word 0x3002307f 3000602c: 3002308c .word 0x3002308c 30006030: 30023068 .word 0x30023068 30006034: 300230a0 .word 0x300230a0 30006038: 300230b5 .word 0x300230b5 300222c4 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 300222c4: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} 300222c8: e3a04000 mov r4, #0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 300222cc: e59fb0d4 ldr fp, [pc, #212] ; 300223a8 limit++; continue; } sign = 1; } if (!isdigit(c)) 300222d0: e59f90d4 ldr r9, [pc, #212] ; 300223ac /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 300222d4: e1a05000 mov r5, r0 300222d8: e58d1000 str r1, [sp] 300222dc: e3e08102 mvn r8, #-2147483648 ; 0x80000000 300222e0: e1a07004 mov r7, r4 sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 300222e4: e3a0a00a mov sl, #10 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 300222e8: e5953004 ldr r3, [r5, #4] 300222ec: e2433001 sub r3, r3, #1 300222f0: e3530000 cmp r3, #0 300222f4: e5853004 str r3, [r5, #4] 300222f8: a5953000 ldrge r3, [r5] 300222fc: a4d36001 ldrbge r6, [r3], #1 30022300: a5853000 strge r3, [r5] 30022304: aa000003 bge 30022318 30022308: e59b0000 ldr r0, [fp] <== NOT EXECUTED 3002230c: e1a01005 mov r1, r5 <== NOT EXECUTED 30022310: eb00706f bl 3003e4d4 <__srget_r> <== NOT EXECUTED 30022314: e1a06000 mov r6, r0 <== NOT EXECUTED if (c == ':') 30022318: e356003a cmp r6, #58 ; 0x3a 3002231c: 0a000019 beq 30022388 break; if (sign == 0) { 30022320: e3540000 cmp r4, #0 30022324: 1a000004 bne 3002233c if (c == '-') { 30022328: e356002d cmp r6, #45 ; 0x2d sign = -1; limit++; 3002232c: 02888001 addeq r8, r8, #1 30022330: 03e04000 mvneq r4, #0 for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { 30022334: 0affffeb beq 300222e8 sign = -1; limit++; continue; 30022338: e3a04001 mov r4, #1 } sign = 1; } if (!isdigit(c)) 3002233c: e5993000 ldr r3, [r9] 30022340: e0833006 add r3, r3, r6 30022344: e5d33001 ldrb r3, [r3, #1] 30022348: e3130004 tst r3, #4 3002234c: 0a000013 beq 300223a0 return 0; d = c - '0'; if ((i > (limit / 10)) 30022350: e1a00008 mov r0, r8 30022354: e3a0100a mov r1, #10 30022358: eb00bafd bl 30050f54 <__aeabi_uidiv> 3002235c: e1570000 cmp r7, r0 30022360: 8a00000e bhi 300223a0 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 30022364: e2466030 sub r6, r6, #48 ; 0x30 if ((i > (limit / 10)) 30022368: 1a000004 bne 30022380 3002236c: e1a00008 mov r0, r8 <== NOT EXECUTED 30022370: e3a0100a mov r1, #10 <== NOT EXECUTED 30022374: eb00bb8a bl 300511a4 <__umodsi3> <== NOT EXECUTED 30022378: e1560000 cmp r6, r0 <== NOT EXECUTED 3002237c: 8a000007 bhi 300223a0 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 30022380: e027679a mla r7, sl, r7, r6 30022384: eaffffd7 b 300222e8 } if (sign == 0) 30022388: e3540000 cmp r4, #0 return 0; *val = i * sign; 3002238c: 10030497 mulne r3, r7, r4 30022390: 159d2000 ldrne r2, [sp] 30022394: 13a00001 movne r0, #1 30022398: 15823000 strne r3, [r2] return 1; 3002239c: 1a000000 bne 300223a4 300223a0: e3a00000 mov r0, #0 <== NOT EXECUTED } 300223a4: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} 300223a8: 3005d5e0 .word 0x3005d5e0 300223ac: 3005d5d4 .word 0x3005d5d4 300223b0 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 300223b0: e92d41f0 push {r4, r5, r6, r7, r8, lr} 300223b4: e1a04002 mov r4, r2 int c; *name = *bufp; 300223b8: 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) { 300223bc: e59d6018 ldr r6, [sp, #24] int c; *name = *bufp; for (;;) { c = getc(fp); 300223c0: e59f70c4 ldr r7, [pc, #196] ; 3002248c static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 300223c4: 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) { 300223c8: e1a05000 mov r5, r0 300223cc: e1a08003 mov r8, r3 int c; *name = *bufp; for (;;) { c = getc(fp); 300223d0: e5953004 ldr r3, [r5, #4] 300223d4: e2433001 sub r3, r3, #1 300223d8: e3530000 cmp r3, #0 300223dc: e5853004 str r3, [r5, #4] 300223e0: a5953000 ldrge r3, [r5] 300223e4: a4d30001 ldrbge r0, [r3], #1 300223e8: a5853000 strge r3, [r5] 300223ec: b5970000 ldrlt r0, [r7] 300223f0: b1a01005 movlt r1, r5 300223f4: bb007036 bllt 3003e4d4 <__srget_r> if (c == ':') { 300223f8: e350003a cmp r0, #58 ; 0x3a 300223fc: 1a000002 bne 3002240c if (nlFlag) 30022400: e3560000 cmp r6, #0 30022404: 0a000013 beq 30022458 30022408: ea00001d b 30022484 <== NOT EXECUTED return 0; break; } if (c == '\n') { 3002240c: e350000a cmp r0, #10 30022410: 1a000002 bne 30022420 if (!nlFlag) 30022414: e3560000 cmp r6, #0 30022418: 1a00000e bne 30022458 3002241c: ea000018 b 30022484 <== NOT EXECUTED return 0; break; } if (c == EOF) 30022420: e3700001 cmn r0, #1 30022424: 0a000016 beq 30022484 return 0; if (*nleft < 2) 30022428: e5983000 ldr r3, [r8] 3002242c: e3530001 cmp r3, #1 30022430: 9a000013 bls 30022484 return 0; **bufp = c; 30022434: e5943000 ldr r3, [r4] 30022438: e5c30000 strb r0, [r3] ++(*bufp); 3002243c: e5942000 ldr r2, [r4] --(*nleft); 30022440: e5983000 ldr r3, [r8] if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 30022444: e2822001 add r2, r2, #1 --(*nleft); 30022448: e2433001 sub r3, r3, #1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 3002244c: e5842000 str r2, [r4] --(*nleft); 30022450: e5883000 str r3, [r8] } 30022454: eaffffdd b 300223d0 **bufp = '\0'; 30022458: e5943000 ldr r3, [r4] 3002245c: e3a02000 mov r2, #0 30022460: e5c32000 strb r2, [r3] ++(*bufp); 30022464: e5942000 ldr r2, [r4] --(*nleft); 30022468: e5983000 ldr r3, [r8] **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 3002246c: e2822001 add r2, r2, #1 --(*nleft); 30022470: e2433001 sub r3, r3, #1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 30022474: e5842000 str r2, [r4] --(*nleft); 30022478: e5883000 str r3, [r8] 3002247c: e3a00001 mov r0, #1 return 1; 30022480: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30022484: e3a00000 mov r0, #0 <== NOT EXECUTED } 30022488: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 3002248c: 3005d5e0 .word 0x3005d5e0 30022490 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 30022490: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30022494: e24dd014 sub sp, sp, #20 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 30022498: e28d6008 add r6, sp, #8 3002249c: e28d5004 add r5, sp, #4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 300224a0: e58d2008 str r2, [sp, #8] 300224a4: e58d3004 str r3, [sp, #4] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 300224a8: e3a08000 mov r8, #0 300224ac: e1a02006 mov r2, r6 300224b0: e1a03005 mov r3, r5 300224b4: e58d8000 str r8, [sp] FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 300224b8: e1a07000 mov r7, r0 300224bc: e1a04001 mov r4, r1 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 300224c0: ebffffba bl 300223b0 300224c4: e1500008 cmp r0, r8 300224c8: 0a00003b beq 300225bc || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 300224cc: e1a00007 mov r0, r7 300224d0: e2841004 add r1, r4, #4 300224d4: e1a02006 mov r2, r6 300224d8: e1a03005 mov r3, r5 300224dc: e58d8000 str r8, [sp] 300224e0: ebffffb2 bl 300223b0 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 300224e4: e1500008 cmp r0, r8 300224e8: 0a000033 beq 300225bc || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 300224ec: e1a00007 mov r0, r7 300224f0: e28d1010 add r1, sp, #16 300224f4: ebffff72 bl 300222c4 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 300224f8: e1500008 cmp r0, r8 300224fc: 0a00002e beq 300225bc || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 30022500: e1a03005 mov r3, r5 30022504: e28d100c add r1, sp, #12 30022508: e1a00007 mov r0, r7 3002250c: e1a02006 mov r2, r6 30022510: e3a05001 mov r5, #1 30022514: e58d5000 str r5, [sp] 30022518: ebffffa4 bl 300223b0 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 3002251c: e1500008 cmp r0, r8 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) return 0; grp->gr_gid = grgid; 30022520: 11dd31b0 ldrhne r3, [sp, #16] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30022524: 159d100c ldrne 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; 30022528: 11c430b8 strhne r3, [r4, #8] { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 3002252c: 1a000002 bne 3002253c 30022530: ea000021 b 300225bc <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') 30022534: e353002c cmp r3, #44 ; 0x2c memcount++; 30022538: 02855001 addeq r5, r5, #1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3002253c: e7d13008 ldrb r3, [r1, r8] if(*cp == ',') memcount++; 30022540: e2888001 add r8, r8, #1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30022544: e3530000 cmp r3, #0 30022548: 1afffff9 bne 30022534 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 3002254c: e1a05105 lsl r5, r5, #2 30022550: e59d2004 ldr r2, [sp, #4] 30022554: e2855013 add r5, r5, #19 30022558: e1520005 cmp r2, r5 3002255c: 3a000016 bcc 300225bc return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 30022560: e59d2008 ldr r2, [sp, #8] * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { *cp = '\0'; 30022564: e1a00003 mov r0, r3 /* * 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); 30022568: e282200f add r2, r2, #15 3002256c: e3c2200f bic r2, r2, #15 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 30022570: e5821000 str r1, [r2] /* * 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); 30022574: e584200c str r2, [r4, #12] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 30022578: e59d200c ldr r2, [sp, #12] 3002257c: e2823001 add r3, r2, #1 30022580: e3a02001 mov r2, #1 for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30022584: ea000005 b 300225a0 if(*cp == ',') { 30022588: e351002c cmp r1, #44 ; 0x2c *cp = '\0'; 3002258c: 05430001 strbeq r0, [r3, #-1] grp->gr_mem[memcount++] = cp + 1; 30022590: 0594100c ldreq r1, [r4, #12] 30022594: 07813102 streq r3, [r1, r2, lsl #2] 30022598: 02822001 addeq r2, r2, #1 3002259c: e2833001 add r3, r3, #1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 300225a0: e5531001 ldrb r1, [r3, #-1] 300225a4: e3510000 cmp r1, #0 300225a8: 1afffff6 bne 30022588 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 300225ac: e594300c ldr r3, [r4, #12] 300225b0: e3a00001 mov r0, #1 300225b4: e7831102 str r1, [r3, r2, lsl #2] return 1; 300225b8: ea000000 b 300225c0 300225bc: e3a00000 mov r0, #0 <== NOT EXECUTED } 300225c0: e28dd014 add sp, sp, #20 300225c4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30022604 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 30022604: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30022608: e24dd014 sub sp, sp, #20 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 3002260c: e28d7008 add r7, sp, #8 30022610: e28d6004 add r6, sp, #4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 30022614: e58d2008 str r2, [sp, #8] 30022618: e58d3004 str r3, [sp, #4] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 3002261c: e3a08000 mov r8, #0 30022620: e1a02007 mov r2, r7 30022624: e1a03006 mov r3, r6 30022628: e58d8000 str r8, [sp] FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 3002262c: e1a05000 mov r5, r0 30022630: e1a04001 mov r4, r1 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30022634: ebffff5d bl 300223b0 30022638: e1500008 cmp r0, r8 3002263c: 0a000038 beq 30022724 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 30022640: e1a00005 mov r0, r5 30022644: e2841004 add r1, r4, #4 30022648: e1a02007 mov r2, r7 3002264c: e1a03006 mov r3, r6 30022650: e58d8000 str r8, [sp] 30022654: ebffff55 bl 300223b0 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30022658: e1500008 cmp r0, r8 3002265c: 0a000030 beq 30022724 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 30022660: e1a00005 mov r0, r5 30022664: e28d1010 add r1, sp, #16 30022668: ebffff15 bl 300222c4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 3002266c: e1500008 cmp r0, r8 30022670: 0a00002b beq 30022724 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 30022674: e1a00005 mov r0, r5 30022678: e28d100c add r1, sp, #12 3002267c: ebffff10 bl 300222c4 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30022680: e1500008 cmp r0, r8 30022684: 0a000026 beq 30022724 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) 30022688: e1a00005 mov r0, r5 3002268c: e284100c add r1, r4, #12 30022690: e1a02007 mov r2, r7 30022694: e1a03006 mov r3, r6 30022698: e58d8000 str r8, [sp] 3002269c: ebffff43 bl 300223b0 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 300226a0: e1500008 cmp r0, r8 300226a4: 0a00001e beq 30022724 || !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) 300226a8: e1a00005 mov r0, r5 300226ac: e2841010 add r1, r4, #16 300226b0: e1a02007 mov r2, r7 300226b4: e1a03006 mov r3, r6 300226b8: e58d8000 str r8, [sp] 300226bc: ebffff3b bl 300223b0 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 300226c0: e1500008 cmp r0, r8 300226c4: 0a000016 beq 30022724 || !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) 300226c8: e1a00005 mov r0, r5 300226cc: e2841014 add r1, r4, #20 300226d0: e1a02007 mov r2, r7 300226d4: e1a03006 mov r3, r6 300226d8: e58d8000 str r8, [sp] 300226dc: ebffff33 bl 300223b0 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 300226e0: e1500008 cmp r0, r8 300226e4: 0a00000e beq 30022724 || !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)) 300226e8: e1a00005 mov r0, r5 300226ec: e1a02007 mov r2, r7 300226f0: e1a03006 mov r3, r6 300226f4: e3a05001 mov r5, #1 300226f8: e2841018 add r1, r4, #24 300226fc: e58d5000 str r5, [sp] 30022700: ebffff2a bl 300223b0 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30022704: e1500008 cmp r0, r8 30022708: 0a000005 beq 30022724 || !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; 3002270c: e1dd30bc ldrh r3, [sp, #12] 30022710: e1a00005 mov r0, r5 30022714: e1c430ba strh r3, [r4, #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; 30022718: e1dd31b0 ldrh r3, [sp, #16] 3002271c: e1c430b8 strh r3, [r4, #8] pwd->pw_gid = pwgid; return 1; 30022720: ea000000 b 30022728 30022724: e3a00000 mov r0, #0 <== NOT EXECUTED } 30022728: e28dd014 add sp, sp, #20 3002272c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 3002226c : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 3002226c: e59f300c ldr r3, [pc, #12] ; 30022280 <== NOT EXECUTED 30022270: e5933000 ldr r3, [r3] <== NOT EXECUTED 30022274: e1c303b4 strh r0, [r3, #52] ; 0x34 <== NOT EXECUTED return 0; } 30022278: e3a00000 mov r0, #0 <== NOT EXECUTED 3002227c: e12fff1e bx lr <== NOT EXECUTED 30022280: 3005cdc8 .word 0x3005cdc8 30022834 : return NULL; return &grent; } void setgrent(void) { 30022834: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED init_etc_passwd_group(); 30022838: ebffffcb bl 3002276c <== NOT EXECUTED if (group_fp != NULL) 3002283c: e59f3020 ldr r3, [pc, #32] ; 30022864 <== NOT EXECUTED 30022840: e5930000 ldr r0, [r3] <== NOT EXECUTED 30022844: e3500000 cmp r0, #0 <== NOT EXECUTED fclose(group_fp); 30022848: 1b005a6f blne 3003920c <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 3002284c: e59f0014 ldr r0, [pc, #20] ; 30022868 <== NOT EXECUTED 30022850: e59f1014 ldr r1, [pc, #20] ; 3002286c <== NOT EXECUTED 30022854: eb005c8f bl 30039a98 <== NOT EXECUTED 30022858: e59f3004 ldr r3, [pc, #4] ; 30022864 <== NOT EXECUTED 3002285c: e5830000 str r0, [r3] <== NOT EXECUTED } 30022860: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30022864: 30060888 .word 0x30060888 30022868: 30055f24 .word 0x30055f24 3002286c: 30056cbe .word 0x30056cbe 30022a04 : return NULL; return &pwent; } void setpwent(void) { 30022a04: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED init_etc_passwd_group(); 30022a08: ebffff57 bl 3002276c <== NOT EXECUTED if (passwd_fp != NULL) 30022a0c: e59f3020 ldr r3, [pc, #32] ; 30022a34 <== NOT EXECUTED 30022a10: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED 30022a14: e3500000 cmp r0, #0 <== NOT EXECUTED fclose(passwd_fp); 30022a18: 1b0059fb blne 3003920c <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 30022a1c: e59f0014 ldr r0, [pc, #20] ; 30022a38 <== NOT EXECUTED 30022a20: e59f1014 ldr r1, [pc, #20] ; 30022a3c <== NOT EXECUTED 30022a24: eb005c1b bl 30039a98 <== NOT EXECUTED 30022a28: e59f3004 ldr r3, [pc, #4] ; 30022a34 <== NOT EXECUTED 30022a2c: e5830004 str r0, [r3, #4] <== NOT EXECUTED } 30022a30: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30022a34: 30060888 .word 0x30060888 30022a38: 30055e76 .word 0x30055e76 30022a3c: 30056cbe .word 0x30056cbe 300053ec : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; 300053ec: e59f300c ldr r3, [pc, #12] ; 30005400 <== NOT EXECUTED 300053f0: e5933000 ldr r3, [r3] <== NOT EXECUTED 300053f4: e1c303b2 strh r0, [r3, #50] ; 0x32 <== NOT EXECUTED return 0; } 300053f8: e3a00000 mov r0, #0 <== NOT EXECUTED 300053fc: e12fff1e bx lr <== NOT EXECUTED 30005400: 3005cdc8 .word 0x3005cdc8 30002ae8 : int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { 30002ae8: e591203c ldr r2, [r1, #60] ; 0x3c <== NOT EXECUTED 30002aec: e59f3050 ldr r3, [pc, #80] ; 30002b44 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 30002af0: 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)) { 30002af4: e0023003 and r3, r2, r3 <== NOT EXECUTED 30002af8: e3530000 cmp r3, #0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { 30002afc: e1a04001 mov r4, r1 <== NOT EXECUTED 30002b00: 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)) { 30002b04: 0a00000b beq 30002b38 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); 30002b08: e3a01000 mov r1, #0 <== NOT EXECUTED 30002b0c: e1a02001 mov r2, r1 <== NOT EXECUTED 30002b10: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED 30002b14: eb0005f8 bl 300042fc <== NOT EXECUTED i = iproc (c, tty); 30002b18: e1a01004 mov r1, r4 <== NOT EXECUTED 30002b1c: e1a00005 mov r0, r5 <== NOT EXECUTED 30002b20: ebffff8b bl 30002954 <== NOT EXECUTED 30002b24: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); 30002b28: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED 30002b2c: eb000638 bl 30004414 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } 30002b30: e1a00005 mov r0, r5 <== NOT EXECUTED 30002b34: e8bd8030 pop {r4, r5, pc} <== 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); 30002b38: e1a00005 mov r0, r5 <== NOT EXECUTED } return i; } 30002b3c: 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); 30002b40: eaffff83 b 30002954 <== NOT EXECUTED 30002b44: 00000e78 .word 0x00000e78 300068a8 : int _STAT_NAME( const char *path, struct stat *buf ) { 300068a8: e92d4070 push {r4, r5, r6, lr} /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 300068ac: e2515000 subs r5, r1, #0 int _STAT_NAME( const char *path, struct stat *buf ) { 300068b0: e24dd018 sub sp, sp, #24 300068b4: e1a06000 mov r6, r0 /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 300068b8: 1a000002 bne 300068c8 rtems_set_errno_and_return_minus_one( EFAULT ); 300068bc: eb00ca05 bl 300390d8 <__errno> 300068c0: e3a0300e mov r3, #14 300068c4: ea000018 b 3000692c status = rtems_filesystem_evaluate_path( path, strlen( path ), 300068c8: eb00e48d bl 3003fb04 300068cc: e28d4004 add r4, sp, #4 300068d0: e1a01000 mov r1, r0 300068d4: e3a0c001 mov ip, #1 300068d8: e1a00006 mov r0, r6 300068dc: e3a02000 mov r2, #0 300068e0: e1a03004 mov r3, r4 300068e4: e58dc000 str ip, [sp] 300068e8: ebfffa49 bl 30005214 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 300068ec: e2501000 subs r1, r0, #0 300068f0: 1a00000e bne 30006930 return -1; if ( !loc.handlers->fstat_h ){ 300068f4: e59d300c ldr r3, [sp, #12] 300068f8: e5933018 ldr r3, [r3, #24] 300068fc: e3530000 cmp r3, #0 30006900: 1a00000c bne 30006938 rtems_filesystem_freenode( &loc ); 30006904: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30006908: e3530000 cmp r3, #0 <== NOT EXECUTED 3000690c: 0a000004 beq 30006924 <== NOT EXECUTED 30006910: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30006914: e3530000 cmp r3, #0 <== NOT EXECUTED 30006918: 11a00004 movne r0, r4 <== NOT EXECUTED 3000691c: 11a0e00f movne lr, pc <== NOT EXECUTED 30006920: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30006924: eb00c9eb bl 300390d8 <__errno> <== NOT EXECUTED 30006928: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000692c: e5803000 str r3, [r0] 30006930: e3e05000 mvn r5, #0 30006934: ea000010 b 3000697c /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 30006938: e3a02048 mov r2, #72 ; 0x48 3000693c: e1a00005 mov r0, r5 30006940: eb00d69c bl 3003c3b8 status = (*loc.handlers->fstat_h)( &loc, buf ); 30006944: e1a01005 mov r1, r5 30006948: e59d300c ldr r3, [sp, #12] 3000694c: e1a00004 mov r0, r4 30006950: e1a0e00f mov lr, pc 30006954: e593f018 ldr pc, [r3, #24] rtems_filesystem_freenode( &loc ); 30006958: 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 ); 3000695c: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 30006960: e3530000 cmp r3, #0 30006964: 0a000004 beq 3000697c 30006968: e593301c ldr r3, [r3, #28] 3000696c: e3530000 cmp r3, #0 30006970: 11a00004 movne r0, r4 30006974: 11a0e00f movne lr, pc 30006978: 112fff13 bxne r3 return status; } 3000697c: e1a00005 mov r0, r5 30006980: e28dd018 add sp, sp, #24 30006984: e8bd8070 pop {r4, r5, r6, pc} 30023664 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 30023664: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 30023668: e24dd018 sub sp, sp, #24 <== NOT EXECUTED 3002366c: e1a05001 mov r5, r1 <== NOT EXECUTED 30023670: 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 ) ) 30023674: eb007122 bl 3003fb04 <== NOT EXECUTED 30023678: e28d4004 add r4, sp, #4 <== NOT EXECUTED 3002367c: e1a01000 mov r1, r0 <== NOT EXECUTED 30023680: e3a0c001 mov ip, #1 <== NOT EXECUTED 30023684: e1a00006 mov r0, r6 <== NOT EXECUTED 30023688: e3a02000 mov r2, #0 <== NOT EXECUTED 3002368c: e1a03004 mov r3, r4 <== NOT EXECUTED 30023690: e58dc000 str ip, [sp] <== NOT EXECUTED 30023694: ebff86de bl 30005214 <== NOT EXECUTED 30023698: e2501000 subs r1, r0, #0 <== NOT EXECUTED 3002369c: 1a000007 bne 300236c0 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 300236a0: e59d6014 ldr r6, [sp, #20] <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; 300236a4: e5963028 ldr r3, [r6, #40] ; 0x28 <== NOT EXECUTED 300236a8: e5933044 ldr r3, [r3, #68] ; 0x44 <== NOT EXECUTED 300236ac: e3530000 cmp r3, #0 <== NOT EXECUTED 300236b0: 1a000004 bne 300236c8 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 300236b4: eb005687 bl 300390d8 <__errno> <== NOT EXECUTED 300236b8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300236bc: e5803000 str r3, [r0] <== NOT EXECUTED 300236c0: e3e05000 mvn r5, #0 <== NOT EXECUTED 300236c4: ea000010 b 3002370c <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); 300236c8: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED 300236cc: e1a00005 mov r0, r5 <== NOT EXECUTED 300236d0: eb006338 bl 3003c3b8 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 300236d4: e1a01005 mov r1, r5 <== NOT EXECUTED 300236d8: e5963028 ldr r3, [r6, #40] ; 0x28 <== NOT EXECUTED 300236dc: e286001c add r0, r6, #28 <== NOT EXECUTED 300236e0: e1a0e00f mov lr, pc <== NOT EXECUTED 300236e4: e593f044 ldr pc, [r3, #68] ; 0x44 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 300236e8: 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 ); 300236ec: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 300236f0: e3530000 cmp r3, #0 <== NOT EXECUTED 300236f4: 0a000004 beq 3002370c <== NOT EXECUTED 300236f8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300236fc: e3530000 cmp r3, #0 <== NOT EXECUTED 30023700: 11a00004 movne r0, r4 <== NOT EXECUTED 30023704: 11a0e00f movne lr, pc <== NOT EXECUTED 30023708: 112fff13 bxne r3 <== NOT EXECUTED return result; } 3002370c: e1a00005 mov r0, r5 <== NOT EXECUTED 30023710: e28dd018 add sp, sp, #24 <== NOT EXECUTED 30023714: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30023718 : int symlink( const char *actualpath, const char *sympath ) { 30023718: 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 ); 3002371c: e5d13000 ldrb r3, [r1] int symlink( const char *actualpath, const char *sympath ) { 30023720: 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 ); 30023724: e353002f cmp r3, #47 ; 0x2f 30023728: 1353005c cmpne r3, #92 ; 0x5c int symlink( const char *actualpath, const char *sympath ) { 3002372c: e1a06001 mov r6, r1 30023730: e1a04000 mov r4, r0 rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); 30023734: 13a05000 movne r5, #0 30023738: 03a05001 moveq r5, #1 3002373c: 0a000001 beq 30023748 30023740: e3530000 cmp r3, #0 30023744: 1a000005 bne 30023760 30023748: e59f30dc ldr r3, [pc, #220] ; 3002382c 3002374c: e1a0c00d mov ip, sp 30023750: e593e000 ldr lr, [r3] 30023754: e3a05001 mov r5, #1 30023758: e28ee018 add lr, lr, #24 3002375c: ea000003 b 30023770 30023760: e59f30c4 ldr r3, [pc, #196] ; 3002382c 30023764: e1a0c00d mov ip, sp 30023768: e593e000 ldr lr, [r3] 3002376c: e28ee004 add lr, lr, #4 30023770: e8be000f ldm lr!, {r0, r1, r2, r3} 30023774: e8ac000f stmia ip!, {r0, r1, r2, r3} 30023778: e59e3000 ldr r3, [lr] 3002377c: e58c3000 str r3, [ip] if ( !loc.ops->evalformake_h ) { 30023780: e59d300c ldr r3, [sp, #12] 30023784: e5933004 ldr r3, [r3, #4] 30023788: e3530000 cmp r3, #0 3002378c: 0a000010 beq 300237d4 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 30023790: e0860005 add r0, r6, r5 30023794: e1a0100d mov r1, sp 30023798: e28d2014 add r2, sp, #20 3002379c: e1a0e00f mov lr, pc 300237a0: e12fff13 bx r3 if ( result != 0 ) 300237a4: e3500000 cmp r0, #0 if ( !loc.ops->evalformake_h ) { rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 300237a8: e1a0700d mov r7, sp if ( result != 0 ) 300237ac: 1a00000b bne 300237e0 return -1; if ( !loc.ops->symlink_h ) { 300237b0: e59d200c ldr r2, [sp, #12] 300237b4: e5923038 ldr r3, [r2, #56] ; 0x38 300237b8: e3530000 cmp r3, #0 300237bc: 1a000009 bne 300237e8 rtems_filesystem_freenode( &loc ); 300237c0: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 300237c4: e3530000 cmp r3, #0 <== NOT EXECUTED 300237c8: 11a0000d movne r0, sp <== NOT EXECUTED 300237cc: 11a0e00f movne lr, pc <== NOT EXECUTED 300237d0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300237d4: eb00563f bl 300390d8 <__errno> <== NOT EXECUTED 300237d8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300237dc: e5803000 str r3, [r0] <== NOT EXECUTED 300237e0: e3e04000 mvn r4, #0 300237e4: ea00000d b 30023820 } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 300237e8: e1a01004 mov r1, r4 300237ec: e1a0000d mov r0, sp 300237f0: e59d2014 ldr r2, [sp, #20] 300237f4: e1a0e00f mov lr, pc 300237f8: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 300237fc: 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); 30023800: e1a04000 mov r4, r0 rtems_filesystem_freenode( &loc ); 30023804: e3530000 cmp r3, #0 30023808: 0a000004 beq 30023820 3002380c: e593301c ldr r3, [r3, #28] 30023810: e3530000 cmp r3, #0 30023814: 11a0000d movne r0, sp 30023818: 11a0e00f movne lr, pc 3002381c: 112fff13 bxne r3 return result; } 30023820: e1a00004 mov r0, r4 30023824: e28dd018 add sp, sp, #24 30023828: e8bd80f0 pop {r4, r5, r6, r7, pc} 3002382c: 3005cdc8 .word 0x3005cdc8 3000f6b4 : int fd, int opt, struct termios *tp ) { switch (opt) { 3000f6b4: e3510000 cmp r1, #0 int tcsetattr( int fd, int opt, struct termios *tp ) { 3000f6b8: e92d4030 push {r4, r5, lr} 3000f6bc: e1a04002 mov r4, r2 3000f6c0: e1a05000 mov r5, r0 switch (opt) { 3000f6c4: 0a00000a beq 3000f6f4 3000f6c8: e3510001 cmp r1, #1 <== NOT EXECUTED 3000f6cc: 0a000003 beq 3000f6e0 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000f6d0: eb0013e2 bl 30014660 <__errno> <== NOT EXECUTED 3000f6d4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000f6d8: e5803000 str r3, [r0] <== NOT EXECUTED 3000f6dc: ea000009 b 3000f708 <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 3000f6e0: e3a01003 mov r1, #3 <== NOT EXECUTED 3000f6e4: e3a02000 mov r2, #0 <== NOT EXECUTED 3000f6e8: eb000e19 bl 30012f54 <== NOT EXECUTED 3000f6ec: e3500000 cmp r0, #0 <== NOT EXECUTED 3000f6f0: ba000004 blt 3000f708 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 3000f6f4: e1a00005 mov r0, r5 3000f6f8: e1a02004 mov r2, r4 3000f6fc: e3a01002 mov r1, #2 } } 3000f700: e8bd4030 pop {r4, r5, lr} return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 3000f704: ea000e12 b 30012f54 } } 3000f708: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000f70c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3000c1cc : #include int unlink( const char *path ) { 3000c1cc: e92d4070 push {r4, r5, r6, lr} 3000c1d0: e24dd02c sub sp, sp, #44 ; 0x2c 3000c1d4: e1a06000 mov r6, r0 /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 3000c1d8: ebffd418 bl 30001240 if ( parentpathlen == 0 ) 3000c1dc: e2505000 subs r5, r0, #0 3000c1e0: 1a000015 bne 3000c23c rtems_filesystem_get_start_loc( path, &i, &parentloc ); 3000c1e4: e5d63000 ldrb r3, [r6] 3000c1e8: e353002f cmp r3, #47 ; 0x2f 3000c1ec: 1353005c cmpne r3, #92 ; 0x5c 3000c1f0: 0a000001 beq 3000c1fc 3000c1f4: e3530000 cmp r3, #0 <== NOT EXECUTED 3000c1f8: 1a000005 bne 3000c214 <== NOT EXECUTED 3000c1fc: e59f3238 ldr r3, [pc, #568] ; 3000c43c 3000c200: e28dc018 add ip, sp, #24 3000c204: e593e000 ldr lr, [r3] 3000c208: e3a04000 mov r4, #0 3000c20c: e28ee018 add lr, lr, #24 3000c210: ea000004 b 3000c228 3000c214: e59f3220 ldr r3, [pc, #544] ; 3000c43c <== NOT EXECUTED 3000c218: e28dc018 add ip, sp, #24 <== NOT EXECUTED 3000c21c: e593e000 ldr lr, [r3] <== NOT EXECUTED 3000c220: e1a04005 mov r4, r5 <== NOT EXECUTED 3000c224: e28ee004 add lr, lr, #4 <== NOT EXECUTED 3000c228: e8be000f ldm lr!, {r0, r1, r2, r3} 3000c22c: e8ac000f stmia ip!, {r0, r1, r2, r3} 3000c230: e59e3000 ldr r3, [lr] 3000c234: e58c3000 str r3, [ip] 3000c238: ea000009 b 3000c264 else { result = rtems_filesystem_evaluate_path( path, parentpathlen, 3000c23c: e3a0c000 mov ip, #0 3000c240: e1a00006 mov r0, r6 3000c244: e1a01005 mov r1, r5 3000c248: e3a02002 mov r2, #2 3000c24c: e28d3018 add r3, sp, #24 3000c250: e58dc000 str ip, [sp] 3000c254: ebffd441 bl 30001360 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 3000c258: e3500000 cmp r0, #0 3000c25c: 1a000072 bne 3000c42c 3000c260: e3a04001 mov r4, #1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 3000c264: e28dc004 add ip, sp, #4 3000c268: e28de018 add lr, sp, #24 3000c26c: e8be000f ldm lr!, {r0, r1, r2, r3} 3000c270: e8ac000f stmia ip!, {r0, r1, r2, r3} 3000c274: e59e3000 ldr r3, [lr] name = path + parentpathlen; 3000c278: e0865005 add r5, r6, r5 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 3000c27c: e58c3000 str r3, [ip] name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 3000c280: e1a00005 mov r0, r5 3000c284: eb0005d2 bl 3000d9d4 3000c288: e1a01000 mov r1, r0 3000c28c: e1a00005 mov r0, r5 3000c290: ebffd3de bl 30001210 3000c294: e0856000 add r6, r5, r0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 3000c298: e1a00006 mov r0, r6 3000c29c: eb0005cc bl 3000d9d4 3000c2a0: e28d5004 add r5, sp, #4 3000c2a4: e3a0c000 mov ip, #0 3000c2a8: e1a01000 mov r1, r0 3000c2ac: e1a0200c mov r2, ip 3000c2b0: e1a00006 mov r0, r6 3000c2b4: e1a03005 mov r3, r5 3000c2b8: e58dc000 str ip, [sp] 3000c2bc: ebffd3ef bl 30001280 0, &loc, false ); if ( result != 0 ) { 3000c2c0: e3500000 cmp r0, #0 3000c2c4: 0a00000b beq 3000c2f8 if ( free_parentloc ) 3000c2c8: e3540000 cmp r4, #0 3000c2cc: 0a000056 beq 3000c42c rtems_filesystem_freenode( &parentloc ); 3000c2d0: e59d3024 ldr r3, [sp, #36] ; 0x24 3000c2d4: e3530000 cmp r3, #0 3000c2d8: 0a000053 beq 3000c42c 3000c2dc: e593301c ldr r3, [r3, #28] 3000c2e0: e3530000 cmp r3, #0 3000c2e4: 0a000050 beq 3000c42c 3000c2e8: e28d0018 add r0, sp, #24 3000c2ec: e1a0e00f mov lr, pc 3000c2f0: e12fff13 bx r3 3000c2f4: ea00004c b 3000c42c return -1; } if ( !loc.ops->node_type_h ) { 3000c2f8: e59d2010 ldr r2, [sp, #16] 3000c2fc: e5923010 ldr r3, [r2, #16] 3000c300: e3530000 cmp r3, #0 3000c304: 0a00001c beq 3000c37c 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 ) { 3000c308: e1a00005 mov r0, r5 3000c30c: e1a0e00f mov lr, pc 3000c310: e12fff13 bx r3 3000c314: e3500001 cmp r0, #1 3000c318: e59d2010 ldr r2, [sp, #16] 3000c31c: 1a000013 bne 3000c370 rtems_filesystem_freenode( &loc ); 3000c320: e3520000 cmp r2, #0 3000c324: 0a000004 beq 3000c33c 3000c328: e592301c ldr r3, [r2, #28] 3000c32c: e3530000 cmp r3, #0 3000c330: 11a00005 movne r0, r5 3000c334: 11a0e00f movne lr, pc 3000c338: 112fff13 bxne r3 if ( free_parentloc ) 3000c33c: e3540000 cmp r4, #0 3000c340: 0a000007 beq 3000c364 rtems_filesystem_freenode( &parentloc ); 3000c344: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 3000c348: e3530000 cmp r3, #0 <== NOT EXECUTED 3000c34c: 0a000004 beq 3000c364 <== NOT EXECUTED 3000c350: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000c354: e3530000 cmp r3, #0 <== NOT EXECUTED 3000c358: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 3000c35c: 11a0e00f movne lr, pc <== NOT EXECUTED 3000c360: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 3000c364: eb0001a9 bl 3000ca10 <__errno> 3000c368: e3a03015 mov r3, #21 3000c36c: ea000013 b 3000c3c0 } if ( !loc.ops->unlink_h ) { 3000c370: e592300c ldr r3, [r2, #12] 3000c374: e3530000 cmp r3, #0 3000c378: 1a000012 bne 3000c3c8 rtems_filesystem_freenode( &loc ); 3000c37c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3000c380: e3530000 cmp r3, #0 <== NOT EXECUTED 3000c384: 11a00005 movne r0, r5 <== NOT EXECUTED 3000c388: 11a0e00f movne lr, pc <== NOT EXECUTED 3000c38c: 112fff13 bxne r3 <== NOT EXECUTED if ( free_parentloc ) 3000c390: e3540000 cmp r4, #0 <== NOT EXECUTED 3000c394: 0a000007 beq 3000c3b8 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 3000c398: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 3000c39c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000c3a0: 0a000004 beq 3000c3b8 <== NOT EXECUTED 3000c3a4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000c3a8: e3530000 cmp r3, #0 <== NOT EXECUTED 3000c3ac: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 3000c3b0: 11a0e00f movne lr, pc <== NOT EXECUTED 3000c3b4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000c3b8: eb000194 bl 3000ca10 <__errno> <== NOT EXECUTED 3000c3bc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000c3c0: e5803000 str r3, [r0] 3000c3c4: ea000018 b 3000c42c } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 3000c3c8: e28d0018 add r0, sp, #24 3000c3cc: e1a01005 mov r1, r5 3000c3d0: e1a0e00f mov lr, pc 3000c3d4: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 3000c3d8: 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 ); 3000c3dc: e1a06000 mov r6, r0 rtems_filesystem_freenode( &loc ); 3000c3e0: e3530000 cmp r3, #0 3000c3e4: 0a000004 beq 3000c3fc 3000c3e8: e593301c ldr r3, [r3, #28] 3000c3ec: e3530000 cmp r3, #0 3000c3f0: 11a00005 movne r0, r5 3000c3f4: 11a0e00f movne lr, pc 3000c3f8: 112fff13 bxne r3 if ( free_parentloc ) 3000c3fc: e3540000 cmp r4, #0 3000c400: 0a00000a beq 3000c430 rtems_filesystem_freenode( &parentloc ); 3000c404: e59d3024 ldr r3, [sp, #36] ; 0x24 3000c408: e3530000 cmp r3, #0 3000c40c: 0a000007 beq 3000c430 3000c410: e593301c ldr r3, [r3, #28] 3000c414: e3530000 cmp r3, #0 3000c418: 0a000004 beq 3000c430 3000c41c: e28d0018 add r0, sp, #24 3000c420: e1a0e00f mov lr, pc 3000c424: e12fff13 bx r3 3000c428: ea000000 b 3000c430 3000c42c: e3e06000 mvn r6, #0 return result; } 3000c430: e1a00006 mov r0, r6 3000c434: e28dd02c add sp, sp, #44 ; 0x2c 3000c438: e8bd8070 pop {r4, r5, r6, pc} 3000c43c: 300193dc .word 0x300193dc 30008744 : */ int unmount( const char *path ) { 30008744: e92d4030 push {r4, r5, lr} 30008748: e24dd018 sub sp, sp, #24 3000874c: 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 ) ) 30008750: eb00dceb bl 3003fb04 30008754: e28d4004 add r4, sp, #4 30008758: e1a01000 mov r1, r0 3000875c: e3a0c001 mov ip, #1 30008760: e1a00005 mov r0, r5 30008764: e3a02000 mov r2, #0 30008768: e1a03004 mov r3, r4 3000876c: e58dc000 str ip, [sp] 30008770: ebfff2a7 bl 30005214 30008774: e3500000 cmp r0, #0 30008778: 1a000057 bne 300088dc return -1; mt_entry = loc.mt_entry; 3000877c: e59d5014 ldr r5, [sp, #20] fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; 30008780: e59d2004 ldr r2, [sp, #4] 30008784: e595101c ldr r1, [r5, #28] 30008788: e59d3010 ldr r3, [sp, #16] 3000878c: e1510002 cmp r1, r2 30008790: 0a000009 beq 300087bc /* * 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 ); 30008794: e3530000 cmp r3, #0 30008798: 0a000004 beq 300087b0 3000879c: e593301c ldr r3, [r3, #28] 300087a0: e3530000 cmp r3, #0 300087a4: 11a00004 movne r0, r4 300087a8: 11a0e00f movne lr, pc 300087ac: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( EACCES ); 300087b0: eb00c248 bl 300390d8 <__errno> 300087b4: e3a0300d mov r3, #13 300087b8: ea000023 b 3000884c /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); 300087bc: e3530000 cmp r3, #0 300087c0: 0a000004 beq 300087d8 300087c4: e593301c ldr r3, [r3, #28] 300087c8: e3530000 cmp r3, #0 300087cc: 11a00004 movne r0, r4 300087d0: 11a0e00f movne lr, pc 300087d4: 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; 300087d8: e5953014 ldr r3, [r5, #20] 300087dc: e5933028 ldr r3, [r3, #40] ; 0x28 300087e0: e3530000 cmp r3, #0 300087e4: 0a000003 beq 300087f8 fs_root_loc = &mt_entry->mt_fs_root; 300087e8: e5953028 ldr r3, [r5, #40] ; 0x28 300087ec: e593302c ldr r3, [r3, #44] ; 0x2c 300087f0: e3530000 cmp r3, #0 300087f4: 1a000002 bne 30008804 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 ); 300087f8: eb00c236 bl 300390d8 <__errno> <== NOT EXECUTED 300087fc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30008800: ea000011 b 3000884c <== NOT EXECUTED * that made the current node thread based instead * of system based? I thought it was but it doesn't * look like it in this version. */ if ( rtems_filesystem_current.mt_entry == mt_entry ) 30008804: e59f30f0 ldr r3, [pc, #240] ; 300088fc 30008808: e5933000 ldr r3, [r3] 3000880c: e5933014 ldr r3, [r3, #20] 30008810: e1530005 cmp r3, r5 /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; 30008814: 159f20e4 ldrne r2, [pc, #228] ; 30008900 30008818: 14923004 ldrne r3, [r2], #4 * 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 ) 3000881c: 1a000005 bne 30008838 30008820: ea000007 b 30008844 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; fs_root_loc = &mt_entry->mt_fs_root; 30008824: e5930018 ldr r0, [r3, #24] 30008828: e595102c ldr r1, [r5, #44] ; 0x2c 3000882c: e1500001 cmp r0, r1 30008830: 0a000003 beq 30008844 * 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 ) { 30008834: e5933000 ldr r3, [r3] 30008838: e1530002 cmp r3, r2 3000883c: 1afffff8 bne 30008824 30008840: ea000028 b 300088e8 * 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 ); 30008844: eb00c223 bl 300390d8 <__errno> 30008848: e3a03010 mov r3, #16 3000884c: e5803000 str r3, [r0] 30008850: ea000021 b 300088dc * 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 ) 30008854: e5953014 ldr r3, [r5, #20] 30008858: e1a00005 mov r0, r5 3000885c: e1a0e00f mov lr, pc 30008860: e593f028 ldr pc, [r3, #40] ; 0x28 30008864: e2504000 subs r4, r0, #0 30008868: 1a00001b bne 300088dc * 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){ 3000886c: e5953028 ldr r3, [r5, #40] ; 0x28 30008870: e1a00005 mov r0, r5 30008874: e1a0e00f mov lr, pc 30008878: e593f02c ldr pc, [r3, #44] ; 0x2c 3000887c: e3500000 cmp r0, #0 30008880: 0a000007 beq 300088a4 if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) 30008884: e1a00005 mov r0, r5 <== NOT EXECUTED 30008888: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED 3000888c: e1a0e00f mov lr, pc <== NOT EXECUTED 30008890: e593f020 ldr pc, [r3, #32] <== NOT EXECUTED 30008894: e3500000 cmp r0, #0 <== NOT EXECUTED 30008898: 0a00000f beq 300088dc <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); 3000889c: e1a00004 mov r0, r4 <== NOT EXECUTED 300088a0: eb00047b bl 30009a94 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 300088a4: e1a00005 mov r0, r5 300088a8: eb00053f bl 30009dac <_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 ); 300088ac: e5953014 ldr r3, [r5, #20] 300088b0: e3530000 cmp r3, #0 300088b4: 0a000004 beq 300088cc 300088b8: e593301c ldr r3, [r3, #28] 300088bc: e3530000 cmp r3, #0 300088c0: 12850008 addne r0, r5, #8 300088c4: 11a0e00f movne lr, pc 300088c8: 112fff13 bxne r3 free( mt_entry ); 300088cc: e1a00005 mov r0, r5 300088d0: ebfff27d bl 300052cc 300088d4: e3a00000 mov r0, #0 return 0; 300088d8: ea000000 b 300088e0 300088dc: e3e00000 mvn r0, #0 } 300088e0: e28dd018 add sp, sp, #24 300088e4: e8bd8030 pop {r4, r5, pc} * 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 ) 300088e8: e1a00005 mov r0, r5 300088ec: ebfff324 bl 30005584 300088f0: e3500001 cmp r0, #1 300088f4: 1affffd6 bne 30008854 300088f8: eaffffd1 b 30008844 300088fc: 3005cdc8 .word 0x3005cdc8 30008900: 30060bb8 .word 0x30060bb8 300238c0 : int utime( const char *path, const struct utimbuf *times ) { 300238c0: e92d4070 push {r4, r5, r6, lr} 300238c4: e24dd018 sub sp, sp, #24 300238c8: e1a05001 mov r5, r1 300238cc: 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 ) ) 300238d0: eb00708b bl 3003fb04 300238d4: e28d4004 add r4, sp, #4 300238d8: e1a01000 mov r1, r0 300238dc: e3a0c001 mov ip, #1 300238e0: e1a00006 mov r0, r6 300238e4: e3a02000 mov r2, #0 300238e8: e1a03004 mov r3, r4 300238ec: e58dc000 str ip, [sp] 300238f0: ebff8647 bl 30005214 300238f4: e3500000 cmp r0, #0 300238f8: 1a00000b bne 3002392c return -1; if ( !temp_loc.ops->utime_h ){ 300238fc: e59d2010 ldr r2, [sp, #16] 30023900: e5923030 ldr r3, [r2, #48] ; 0x30 30023904: e3530000 cmp r3, #0 30023908: 1a000009 bne 30023934 rtems_filesystem_freenode( &temp_loc ); 3002390c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30023910: e3530000 cmp r3, #0 <== NOT EXECUTED 30023914: 11a00004 movne r0, r4 <== NOT EXECUTED 30023918: 11a0e00f movne lr, pc <== NOT EXECUTED 3002391c: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30023920: eb0055ec bl 300390d8 <__errno> <== NOT EXECUTED 30023924: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30023928: e5803000 str r3, [r0] <== NOT EXECUTED 3002392c: e3e05000 mvn r5, #0 30023930: ea00000c b 30023968 } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 30023934: e8950006 ldm r5, {r1, r2} 30023938: e1a00004 mov r0, r4 3002393c: e1a0e00f mov lr, pc 30023940: e12fff13 bx r3 rtems_filesystem_freenode( &temp_loc ); 30023944: 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 ); 30023948: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); 3002394c: e3530000 cmp r3, #0 30023950: 0a000004 beq 30023968 30023954: e593301c ldr r3, [r3, #28] 30023958: e3530000 cmp r3, #0 3002395c: 11a00004 movne r0, r4 30023960: 11a0e00f movne lr, pc 30023964: 112fff13 bxne r3 return result; } 30023968: e1a00005 mov r0, r5 3002396c: e28dd018 add sp, sp, #24 30023970: e8bd8070 pop {r4, r5, r6, pc} 30017c70 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30017c70: e59f30b0 ldr r3, [pc, #176] ; 30017d28 ssize_t write( int fd, const void *buffer, size_t count ) { 30017c74: e92d4070 push {r4, r5, r6, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30017c78: e5933000 ldr r3, [r3] ssize_t write( int fd, const void *buffer, size_t count ) { 30017c7c: e1a05001 mov r5, r1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30017c80: e1500003 cmp r0, r3 30017c84: 2a000005 bcs 30017ca0 iop = rtems_libio_iop( fd ); 30017c88: e59f309c ldr r3, [pc, #156] ; 30017d2c 30017c8c: e5934000 ldr r4, [r3] 30017c90: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); 30017c94: e5943014 ldr r3, [r4, #20] 30017c98: e3130c01 tst r3, #256 ; 0x100 30017c9c: 1a000002 bne 30017cac 30017ca0: ebffd35a bl 3000ca10 <__errno> <== NOT EXECUTED 30017ca4: e3a03009 mov r3, #9 <== NOT EXECUTED 30017ca8: ea00000f b 30017cec <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 30017cac: e3510000 cmp r1, #0 30017cb0: 0a000004 beq 30017cc8 rtems_libio_check_count( count ); 30017cb4: e3520000 cmp r2, #0 30017cb8: 01a00002 moveq r0, r2 30017cbc: 08bd8070 popeq {r4, r5, r6, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30017cc0: e3130004 tst r3, #4 30017cc4: 1a000002 bne 30017cd4 30017cc8: ebffd350 bl 3000ca10 <__errno> <== NOT EXECUTED 30017ccc: e3a03016 mov r3, #22 <== NOT EXECUTED 30017cd0: ea000005 b 30017cec <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 30017cd4: e594303c ldr r3, [r4, #60] ; 0x3c 30017cd8: e593300c ldr r3, [r3, #12] 30017cdc: e3530000 cmp r3, #0 30017ce0: 1a000004 bne 30017cf8 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30017ce4: ebffd349 bl 3000ca10 <__errno> <== NOT EXECUTED 30017ce8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30017cec: e5803000 str r3, [r0] <== NOT EXECUTED 30017cf0: e3e00000 mvn r0, #0 <== NOT EXECUTED 30017cf4: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 30017cf8: e1a00004 mov r0, r4 30017cfc: e1a0e00f mov lr, pc 30017d00: e12fff13 bx r3 if ( rc > 0 ) 30017d04: e3500000 cmp r0, #0 30017d08: d8bd8070 pople {r4, r5, r6, pc} iop->offset += rc; 30017d0c: e284600c add r6, r4, #12 30017d10: e8960060 ldm r6, {r5, r6} 30017d14: e0952000 adds r2, r5, r0 30017d18: e0a63fc0 adc r3, r6, r0, asr #31 30017d1c: e584200c str r2, [r4, #12] 30017d20: e5843010 str r3, [r4, #16] return rc; } 30017d24: e8bd8070 pop {r4, r5, r6, pc} 30017d28: 300191e4 .word 0x300191e4 30017d2c: 30019b84 .word 0x30019b84 30005518 : int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 30005518: e59f3164 ldr r3, [pc, #356] ; 30005684 ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 3000551c: 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 ); 30005520: e5933000 ldr r3, [r3] ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { 30005524: e1a08002 mov r8, r2 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); 30005528: e1500003 cmp r0, r3 3000552c: 2a000005 bcs 30005548 iop = rtems_libio_iop( fd ); 30005530: e59f3150 ldr r3, [pc, #336] ; 30005688 30005534: e5936000 ldr r6, [r3] 30005538: e0866300 add r6, r6, r0, lsl #6 rtems_libio_check_is_open( iop ); 3000553c: e5963014 ldr r3, [r6, #20] 30005540: e3130c01 tst r3, #256 ; 0x100 30005544: 1a000002 bne 30005554 30005548: eb002657 bl 3000eeac <__errno> 3000554c: e3a03009 mov r3, #9 30005550: ea000026 b 300055f0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30005554: e3130004 tst r3, #4 30005558: 0a000022 beq 300055e8 /* * Argument validation on IO vector */ if ( !iov ) 3000555c: e3510000 cmp r1, #0 30005560: 0a000020 beq 300055e8 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) 30005564: e3520000 cmp r2, #0 30005568: da00001e ble 300055e8 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) 3000556c: e3520b01 cmp r2, #1024 ; 0x400 30005570: ca00001c bgt 300055e8 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) 30005574: e596303c ldr r3, [r6, #60] ; 0x3c 30005578: e593300c ldr r3, [r3, #12] 3000557c: e3530000 cmp r3, #0 30005580: 1a000002 bne 30005590 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30005584: eb002648 bl 3000eeac <__errno> <== NOT EXECUTED 30005588: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000558c: ea000017 b 300055f0 <== NOT EXECUTED 30005590: e3a03000 mov r3, #0 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 30005594: e59fc0f0 ldr ip, [pc, #240] ; 3000568c 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 ); 30005598: e1a05001 mov r5, r1 3000559c: e1a02001 mov r2, r1 300055a0: e3a07001 mov r7, #1 300055a4: e1a04003 mov r4, r3 * entering the write loop. */ all_zeros = true; for ( old=0, total=0, v=0 ; v < iovcnt ; v++ ) { if ( !iov[v].iov_base ) 300055a8: e5921000 ldr r1, [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++ ) { 300055ac: e2833001 add r3, r3, #1 if ( !iov[v].iov_base ) 300055b0: e3510000 cmp r1, #0 300055b4: 0a00000b beq 300055e8 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 ) 300055b8: 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++ ) { 300055bc: e2822008 add r2, r2, #8 if ( iov[v].iov_len ) all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; 300055c0: e0841000 add r1, r4, r0 if ( total < old || total > SSIZE_MAX ) 300055c4: e1510004 cmp r1, r4 300055c8: a3a04000 movge r4, #0 300055cc: b3a04001 movlt r4, #1 300055d0: e151000c cmp r1, ip 300055d4: c3844001 orrgt r4, r4, #1 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 ) 300055d8: e3500000 cmp r0, #0 300055dc: 13a07000 movne r7, #0 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) 300055e0: e3540000 cmp r4, #0 300055e4: 0a000003 beq 300055f8 rtems_set_errno_and_return_minus_one( EINVAL ); 300055e8: eb00262f bl 3000eeac <__errno> 300055ec: e3a03016 mov r3, #22 300055f0: e5803000 str r3, [r0] 300055f4: ea000010 b 3000563c * 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++ ) { 300055f8: e1530008 cmp r3, r8 300055fc: b1a04001 movlt r4, r1 30005600: baffffe8 blt 300055a8 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { 30005604: e3570000 cmp r7, #0 <== NOT EXECUTED 30005608: 1a00001b bne 3000567c <== NOT EXECUTED 3000560c: e1a04007 mov r4, r7 <== NOT EXECUTED /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 30005610: e5952004 ldr r2, [r5, #4] <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 30005614: e2877001 add r7, r7, #1 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) 30005618: e3520000 cmp r2, #0 <== NOT EXECUTED 3000561c: 0a000013 beq 30005670 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); 30005620: e5951000 ldr r1, [r5] <== NOT EXECUTED 30005624: e596303c ldr r3, [r6, #60] ; 0x3c <== NOT EXECUTED 30005628: e1a00006 mov r0, r6 <== NOT EXECUTED 3000562c: e1a0e00f mov lr, pc <== NOT EXECUTED 30005630: e593f00c ldr pc, [r3, #12] <== NOT EXECUTED if ( bytes < 0 ) 30005634: e3500000 cmp r0, #0 <== NOT EXECUTED 30005638: aa000001 bge 30005644 <== NOT EXECUTED 3000563c: e3e04000 mvn r4, #0 30005640: ea00000d b 3000567c return -1; if ( bytes > 0 ) { 30005644: 0a000006 beq 30005664 <== NOT EXECUTED iop->offset += bytes; 30005648: e286c00c add ip, r6, #12 <== NOT EXECUTED 3000564c: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED 30005650: e09b2000 adds r2, fp, r0 <== NOT EXECUTED 30005654: e0ac3fc0 adc r3, ip, r0, asr #31 <== NOT EXECUTED 30005658: e586200c str r2, [r6, #12] <== NOT EXECUTED 3000565c: e5863010 str r3, [r6, #16] <== NOT EXECUTED total += bytes; 30005660: e0844000 add r4, r4, r0 <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) 30005664: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED 30005668: e1500003 cmp r0, r3 <== NOT EXECUTED 3000566c: 1a000002 bne 3000567c <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { 30005670: e1570008 cmp r7, r8 <== NOT EXECUTED 30005674: e2855008 add r5, r5, #8 <== NOT EXECUTED 30005678: baffffe4 blt 30005610 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } 3000567c: e1a00004 mov r0, r4 30005680: e8bd89f0 pop {r4, r5, r6, r7, r8, fp, pc} 30005684: 3001db50 .word 0x3001db50 30005688: 3001ecc4 .word 0x3001ecc4 3000568c: 00007fff .word 0x00007fff