30007838 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { 30007838: e5902000 ldr r2, [r0] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; 3000783c: e5903010 ldr r3, [r0, #16] switch( node->type ) { 30007840: 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; 30007844: e5933034 ldr r3, [r3, #52] ; 0x34 switch( node->type ) { 30007848: e2422001 sub r2, r2, #1 3000784c: e3520006 cmp r2, #6 30007850: 979ff102 ldrls pc, [pc, r2, lsl #2] 30007854: ea000010 b 3000789c <== NOT EXECUTED 30007858: 30007874 .word 0x30007874 <== NOT EXECUTED 3000785c: 3000787c .word 0x3000787c <== NOT EXECUTED 30007860: 30007884 .word 0x30007884 <== NOT EXECUTED 30007864: 30007884 .word 0x30007884 <== NOT EXECUTED 30007868: 3000788c .word 0x3000788c <== NOT EXECUTED 3000786c: 3000788c .word 0x3000788c <== NOT EXECUTED 30007870: 30007894 .word 0x30007894 <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; 30007874: e5933008 ldr r3, [r3, #8] 30007878: ea000006 b 30007898 break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; 3000787c: e59f3020 ldr r3, [pc, #32] ; 300078a4 30007880: ea000004 b 30007898 break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; 30007884: e59f301c ldr r3, [pc, #28] ; 300078a8 30007888: ea000002 b 30007898 break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; 3000788c: e5933004 ldr r3, [r3, #4] 30007890: ea000000 b 30007898 break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; 30007894: e59f3010 ldr r3, [pc, #16] ; 300078ac 30007898: e5803008 str r3, [r0, #8] break; } return 0; } 3000789c: e3a00000 mov r0, #0 300078a0: e12fff1e bx lr 300078a4: 300171b4 .word 0x300171b4 300078a8: 300171ec .word 0x300171ec 300078ac: 3001715c .word 0x3001715c 3000a884 : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 3000a884: 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 ) 3000a888: e2504000 subs r4, r0, #0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { 3000a88c: e1a05001 mov r5, r1 3000a890: e59d6014 ldr r6, [sp, #20] IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) 3000a894: 01a07004 moveq r7, r4 3000a898: 0a000042 beq 3000a9a8 return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); 3000a89c: e1a01002 mov r1, r2 3000a8a0: e59f2108 ldr r2, [pc, #264] ; 3000a9b0 3000a8a4: e1a00005 mov r0, r5 3000a8a8: e5922000 ldr r2, [r2] 3000a8ac: e592202c ldr r2, [r2, #44] ; 0x2c 3000a8b0: e1c32002 bic r2, r3, r2 3000a8b4: ebffffc5 bl 3000a7d0 if ( !node ) 3000a8b8: e2507000 subs r7, r0, #0 3000a8bc: 0a000039 beq 3000a9a8 return NULL; /* * Set the type specific information */ switch (type) { 3000a8c0: e2455001 sub r5, r5, #1 3000a8c4: e3550006 cmp r5, #6 3000a8c8: 979ff105 ldrls pc, [pc, r5, lsl #2] 3000a8cc: ea000025 b 3000a968 <== NOT EXECUTED 3000a8d0: 3000a8ec .word 0x3000a8ec <== NOT EXECUTED 3000a8d4: 3000a910 .word 0x3000a910 <== NOT EXECUTED 3000a8d8: 3000a908 .word 0x3000a908 <== NOT EXECUTED 3000a8dc: 3000a908 .word 0x3000a908 <== NOT EXECUTED 3000a8e0: 3000a938 .word 0x3000a938 <== NOT EXECUTED 3000a8e4: 3000a920 .word 0x3000a920 <== NOT EXECUTED 3000a8e8: 3000a95c .word 0x3000a95c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 3000a8ec: e2872054 add r2, r7, #84 ; 0x54 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); 3000a8f0: e2873050 add r3, r7, #80 ; 0x50 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 3000a8f4: e5872050 str r2, [r7, #80] ; 0x50 the_chain->permanent_null = NULL; 3000a8f8: e3a02000 mov r2, #0 3000a8fc: e5872054 str r2, [r7, #84] ; 0x54 the_chain->last = _Chain_Head(the_chain); 3000a900: e5873058 str r3, [r7, #88] ; 0x58 3000a904: ea00001c b 3000a97c 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; 3000a908: e5963000 ldr r3, [r6] 3000a90c: ea000013 b 3000a960 break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; 3000a910: 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; 3000a914: e5963000 ldr r3, [r6] node->info.device.minor = info->device.minor; 3000a918: e5872054 str r2, [r7, #84] ; 0x54 3000a91c: ea00000f b 3000a960 break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; 3000a920: e3a03000 mov r3, #0 <== NOT EXECUTED 3000a924: e3a02000 mov r2, #0 <== NOT EXECUTED 3000a928: e5872050 str r2, [r7, #80] ; 0x50 <== NOT EXECUTED 3000a92c: e5873054 str r3, [r7, #84] ; 0x54 <== NOT EXECUTED node->info.linearfile.direct = 0; 3000a930: e3a03000 mov r3, #0 <== NOT EXECUTED 3000a934: e5873058 str r3, [r7, #88] ; 0x58 <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; 3000a938: 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; 3000a93c: e3a01000 mov r1, #0 3000a940: e3a02000 mov r2, #0 3000a944: e5871050 str r1, [r7, #80] ; 0x50 3000a948: e5872054 str r2, [r7, #84] ; 0x54 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; 3000a94c: 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; 3000a950: e5873058 str r3, [r7, #88] ; 0x58 node->info.file.doubly_indirect = 0; 3000a954: e587305c str r3, [r7, #92] ; 0x5c node->info.file.triply_indirect = 0; break; 3000a958: ea000007 b 3000a97c case IMFS_FIFO: node->info.fifo.pipe = NULL; 3000a95c: e3a03000 mov r3, #0 3000a960: e5873050 str r3, [r7, #80] ; 0x50 break; 3000a964: ea000004 b 3000a97c default: assert(0); 3000a968: e59f0044 ldr r0, [pc, #68] ; 3000a9b4 <== NOT EXECUTED 3000a96c: e3a0105c mov r1, #92 ; 0x5c <== NOT EXECUTED 3000a970: e59f2040 ldr r2, [pc, #64] ; 3000a9b8 <== NOT EXECUTED 3000a974: e59f3040 ldr r3, [pc, #64] ; 3000a9bc <== NOT EXECUTED 3000a978: ebfff733 bl 3000864c <__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; 3000a97c: e5943010 ldr r3, [r4, #16] } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; 3000a980: e5940000 ldr r0, [r4] fs_info = parent_loc->mt_entry->fs_info; 3000a984: e5932034 ldr r2, [r3, #52] ; 0x34 node->Parent = parent; 3000a988: e5870008 str r0, [r7, #8] node->st_ino = ++fs_info->ino_count; 3000a98c: 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 ); 3000a990: e2800050 add r0, r0, #80 ; 0x50 3000a994: e2833001 add r3, r3, #1 3000a998: e5823000 str r3, [r2] 3000a99c: e1a01007 mov r1, r7 3000a9a0: e5873038 str r3, [r7, #56] ; 0x38 3000a9a4: ebffe890 bl 30004bec <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } 3000a9a8: e1a00007 mov r0, r7 3000a9ac: e8bd80f0 pop {r4, r5, r6, r7, pc} 3000a9b0: 30017e84 .word 0x30017e84 3000a9b4: 300179e7 .word 0x300179e7 3000a9b8: 300172fc .word 0x300172fc 3000a9bc: 30017796 .word 0x30017796 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: eb003499 bl 300100d0 !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: 30020b44 .word 0x30020b44 30002ea0: 3001f8b8 .word 0x3001f8b8 30002ea4: 30020bfa .word 0x30020bfa 30002ea8: 30020c08 .word 0x30020c08 30002eac: 30020c13 .word 0x30020c13 30002eb0: 30021b68 .word 0x30021b68 30002eb4: 30020c39 .word 0x30020c39 30007a24 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 30007a24: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30007a28: e24dd040 sub sp, sp, #64 ; 0x40 30007a2c: e1a04003 mov r4, r3 30007a30: e1a0b000 mov fp, r0 30007a34: e1a06001 mov r6, r1 30007a38: e58d2000 str r2, [sp] /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 30007a3c: e5935000 ldr r5, [r3] 30007a40: e3a09001 mov r9, #1 30007a44: 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 ); 30007a48: e28d8004 add r8, sp, #4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 30007a4c: e59fa268 ldr sl, [pc, #616] ; 30007cbc /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 30007a50: ea00006a b 30007c00 type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); 30007a54: e28d303c add r3, sp, #60 ; 0x3c 30007a58: e08b0007 add r0, fp, r7 30007a5c: e1a01006 mov r1, r6 30007a60: e1a02008 mov r2, r8 30007a64: eb000203 bl 30008278 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 30007a68: 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 ); 30007a6c: e1a09000 mov r9, r0 pathnamelen -= len; i += len; if ( !pathloc->node_access ) 30007a70: 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; 30007a74: e59dc03c ldr ip, [sp, #60] ; 0x3c i += len; if ( !pathloc->node_access ) 30007a78: 0a000058 beq 30007be0 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 30007a7c: e3500000 cmp r0, #0 30007a80: 0a000005 beq 30007a9c if ( node->type == IMFS_DIRECTORY ) 30007a84: e595204c ldr r2, [r5, #76] ; 0x4c 30007a88: e3520001 cmp r2, #1 30007a8c: 1a000002 bne 30007a9c /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30007a90: e5932030 ldr r2, [r3, #48] ; 0x30 30007a94: e3120040 tst r2, #64 ; 0x40 30007a98: 0a000082 beq 30007ca8 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { 30007a9c: 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; 30007aa0: e06c6006 rsb r6, ip, r6 i += len; 30007aa4: e087700c add r7, r7, ip 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; 30007aa8: e1a05003 mov r5, r3 switch( type ) { 30007aac: 0a000020 beq 30007b34 30007ab0: e3590004 cmp r9, #4 30007ab4: 0a00004e beq 30007bf4 30007ab8: e3590002 cmp r9, #2 30007abc: 1a00004f bne 30007c00 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 30007ac0: e59a2000 ldr r2, [sl] 30007ac4: e5922018 ldr r2, [r2, #24] 30007ac8: e1530002 cmp r3, r2 30007acc: 0a00004b beq 30007c00 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { 30007ad0: e5945010 ldr r5, [r4, #16] /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == 30007ad4: e595201c ldr r2, [r5, #28] 30007ad8: e1530002 cmp r3, r2 30007adc: 1a00000e bne 30007b1c */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 30007ae0: e2855008 add r5, r5, #8 30007ae4: e28de028 add lr, sp, #40 ; 0x28 30007ae8: e8b5000f ldm r5!, {r0, r1, r2, r3} 30007aec: e8ae000f stmia lr!, {r0, r1, r2, r3} *pathloc = newloc; 30007af0: e28d8028 add r8, sp, #40 ; 0x28 30007af4: e8b8000f ldm r8!, {r0, r1, r2, r3} 30007af8: e1a08004 mov r8, r4 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 30007afc: e5955000 ldr r5, [r5] *pathloc = newloc; 30007b00: e8a8000f stmia r8!, {r0, r1, r2, r3} return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 30007b04: e06c0007 rsb r0, ip, r7 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; *pathloc = newloc; 30007b08: e5885000 str r5, [r8] return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 30007b0c: e08b0000 add r0, fp, r0 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; 30007b10: e58e5000 str r5, [lr] *pathloc = newloc; return (*pathloc->ops->evalpath_h)(&(pathname[i-len]), 30007b14: e08c1006 add r1, ip, r6 30007b18: ea000051 b 30007c64 pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) 30007b1c: e5935008 ldr r5, [r3, #8] 30007b20: e3550000 cmp r5, #0 30007b24: 1a000030 bne 30007bec rtems_set_errno_and_return_minus_one( ENOENT ); 30007b28: eb000ed0 bl 3000b670 <__errno> 30007b2c: e5809000 str r9, [r0] 30007b30: ea00005f b 30007cb4 case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { 30007b34: e593304c ldr r3, [r3, #76] ; 0x4c 30007b38: e3530003 cmp r3, #3 30007b3c: 1a000006 bne 30007b5c IMFS_evaluate_hard_link( pathloc, 0 ); 30007b40: e1a00004 mov r0, r4 30007b44: e3a01000 mov r1, #0 30007b48: ebffff60 bl 300078d0 node = pathloc->node_access; 30007b4c: e5945000 ldr r5, [r4] if ( !node ) 30007b50: e3550000 cmp r5, #0 30007b54: 1a000008 bne 30007b7c 30007b58: ea00000a b 30007b88 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { 30007b5c: e3530004 cmp r3, #4 30007b60: 1a000005 bne 30007b7c result = IMFS_evaluate_sym_link( pathloc, 0 ); 30007b64: e1a00004 mov r0, r4 30007b68: e3a01000 mov r1, #0 30007b6c: ebffff70 bl 30007934 node = pathloc->node_access; if ( result == -1 ) 30007b70: e3700001 cmn r0, #1 } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); node = pathloc->node_access; 30007b74: e5945000 ldr r5, [r4] if ( result == -1 ) 30007b78: 0a000048 beq 30007ca0 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 30007b7c: e595304c ldr r3, [r5, #76] ; 0x4c 30007b80: e3530001 cmp r3, #1 30007b84: 0a000002 beq 30007b94 rtems_set_errno_and_return_minus_one( ENOTDIR ); 30007b88: eb000eb8 bl 3000b670 <__errno> 30007b8c: e3a03014 mov r3, #20 30007b90: ea000046 b 30007cb0 /* * 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 ) { 30007b94: e595e05c ldr lr, [r5, #92] ; 0x5c 30007b98: e35e0000 cmp lr, #0 30007b9c: 0a00000a beq 30007bcc newloc = node->info.directory.mt_fs->mt_fs_root; 30007ba0: e28ee01c add lr, lr, #28 30007ba4: e28dc028 add ip, sp, #40 ; 0x28 30007ba8: e8be000f ldm lr!, {r0, r1, r2, r3} 30007bac: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; 30007bb0: e28d5028 add r5, sp, #40 ; 0x28 30007bb4: e8b5000f ldm r5!, {r0, r1, r2, r3} 30007bb8: e1a05004 mov r5, 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; 30007bbc: e59ee000 ldr lr, [lr] *pathloc = newloc; 30007bc0: e8a5000f stmia r5!, {r0, r1, r2, r3} 30007bc4: e1a03005 mov r3, r5 30007bc8: ea00001f b 30007c4c /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 30007bcc: e1a00005 mov r0, r5 30007bd0: e1a01008 mov r1, r8 30007bd4: eb00017f bl 300081d8 if ( !node ) 30007bd8: e2505000 subs r5, r0, #0 30007bdc: 1a000002 bne 30007bec rtems_set_errno_and_return_minus_one( ENOENT ); 30007be0: eb000ea2 bl 3000b670 <__errno> 30007be4: e3a03002 mov r3, #2 30007be8: ea000030 b 30007cb0 /* * Set the node access to the point we have found. */ pathloc->node_access = node; 30007bec: e5845000 str r5, [r4] 30007bf0: ea000002 b 30007c00 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 30007bf4: eb000e9d bl 3000b670 <__errno> 30007bf8: e3a0305b mov r3, #91 ; 0x5b 30007bfc: ea00002b b 30007cb0 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { 30007c00: e3590004 cmp r9, #4 30007c04: 13590000 cmpne r9, #0 30007c08: 1affff91 bne 30007a54 * 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 ) { 30007c0c: e595304c ldr r3, [r5, #76] ; 0x4c 30007c10: e3530001 cmp r3, #1 30007c14: 1a000018 bne 30007c7c if ( node->info.directory.mt_fs != NULL ) { 30007c18: e595e05c ldr lr, [r5, #92] ; 0x5c 30007c1c: e35e0000 cmp lr, #0 30007c20: 0a000015 beq 30007c7c newloc = node->info.directory.mt_fs->mt_fs_root; 30007c24: e28ee01c add lr, lr, #28 30007c28: e28dc028 add ip, sp, #40 ; 0x28 30007c2c: e8be000f ldm lr!, {r0, r1, r2, r3} 30007c30: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; 30007c34: e28d5028 add r5, sp, #40 ; 0x28 30007c38: e1a08004 mov r8, r4 30007c3c: e8b5000f ldm r5!, {r0, r1, r2, r3} * 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; 30007c40: e59ee000 ldr lr, [lr] *pathloc = newloc; 30007c44: e8a8000f stmia r8!, {r0, r1, r2, r3} 30007c48: e1a03008 mov r3, r8 return (*pathloc->ops->evalpath_h)( &pathname[i-len], 30007c4c: e59d103c ldr r1, [sp, #60] ; 0x3c */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; 30007c50: e583e000 str lr, [r3] return (*pathloc->ops->evalpath_h)( &pathname[i-len], 30007c54: 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; 30007c58: e58ce000 str lr, [ip] *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], 30007c5c: e08b0000 add r0, fp, r0 30007c60: e0861001 add r1, r6, r1 30007c64: e59d2000 ldr r2, [sp] 30007c68: e1a03004 mov r3, r4 30007c6c: e594c00c ldr ip, [r4, #12] 30007c70: e1a0e00f mov lr, pc 30007c74: e59cf000 ldr pc, [ip] 30007c78: ea000008 b 30007ca0 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); 30007c7c: e1a00004 mov r0, r4 30007c80: ebfffeec bl 30007838 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 30007c84: e5942000 ldr r2, [r4] /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30007c88: e59d1000 ldr r1, [sp] if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 30007c8c: e5922030 ldr r2, [r2, #48] ; 0x30 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30007c90: e1a03301 lsl r3, r1, #6 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 30007c94: e0032002 and r2, r3, r2 30007c98: e1520003 cmp r2, r3 30007c9c: 1a000001 bne 30007ca8 if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 30007ca0: e28dd040 add sp, sp, #64 ; 0x40 30007ca4: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 30007ca8: eb000e70 bl 3000b670 <__errno> 30007cac: e3a0300d mov r3, #13 30007cb0: e5803000 str r3, [r0] 30007cb4: e3e00000 mvn r0, #0 30007cb8: eafffff8 b 30007ca0 30007cbc: 30017e84 .word 0x30017e84 30007d74 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { 30007d74: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} 30007d78: e24dd03c sub sp, sp, #60 ; 0x3c 30007d7c: e1a04001 mov r4, r1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; 30007d80: 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 */ ) { 30007d84: e1a0b002 mov fp, r2 30007d88: e1a07000 mov r7, r0 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 30007d8c: eb001228 bl 3000c634 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) 30007d90: e59fa238 ldr sl, [pc, #568] ; 30007fd0 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 30007d94: e3a05000 mov r5, #0 * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); 30007d98: e1a0900d mov r9, sp node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); 30007d9c: 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 ); 30007da0: e1a01008 mov r1, r8 30007da4: e28d3038 add r3, sp, #56 ; 0x38 30007da8: e0870005 add r0, r7, r5 30007dac: e1a0200d mov r2, sp 30007db0: eb000130 bl 30008278 pathlen -= len; i += len; if ( !pathloc->node_access ) 30007db4: e5943000 ldr r3, [r4] */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 30007db8: e59dc038 ldr ip, [sp, #56] ; 0x38 i += len; if ( !pathloc->node_access ) 30007dbc: e3530000 cmp r3, #0 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; 30007dc0: e06c8008 rsb r8, ip, r8 i += len; if ( !pathloc->node_access ) 30007dc4: 0a000066 beq 30007f64 /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) 30007dc8: e3500000 cmp r0, #0 30007dcc: 0a000005 beq 30007de8 if ( node->type == IMFS_DIRECTORY ) 30007dd0: e596204c ldr r2, [r6, #76] ; 0x4c 30007dd4: e3520001 cmp r2, #1 30007dd8: 1a000002 bne 30007de8 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30007ddc: e5932030 ldr r2, [r3, #48] ; 0x30 30007de0: e3120040 tst r2, #64 ; 0x40 30007de4: 0a000074 beq 30007fbc while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; 30007de8: e085500c add r5, r5, ip 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; 30007dec: e1a06003 mov r6, r3 switch( type ) { 30007df0: e3500004 cmp r0, #4 30007df4: 979ff100 ldrls pc, [pc, r0, lsl #2] 30007df8: eaffffe8 b 30007da0 <== NOT EXECUTED 30007dfc: 30007f28 .word 0x30007f28 <== NOT EXECUTED 30007e00: 30007da0 .word 0x30007da0 <== NOT EXECUTED 30007e04: 30007e10 .word 0x30007e10 <== NOT EXECUTED 30007e08: 30007e74 .word 0x30007e74 <== NOT EXECUTED 30007e0c: 30007f34 .word 0x30007f34 <== 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 ) 30007e10: e59a2000 ldr r2, [sl] 30007e14: e5922018 ldr r2, [r2, #24] 30007e18: e1530002 cmp r3, r2 30007e1c: 0affffdf beq 30007da0 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ 30007e20: e5946010 ldr r6, [r4, #16] 30007e24: e596201c ldr r2, [r6, #28] 30007e28: e1530002 cmp r3, r2 30007e2c: 1a00000c bne 30007e64 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 30007e30: e2866008 add r6, r6, #8 30007e34: e28de024 add lr, sp, #36 ; 0x24 30007e38: e8b6000f ldm r6!, {r0, r1, r2, r3} 30007e3c: e8ae000f stmia lr!, {r0, r1, r2, r3} *pathloc = newloc; 30007e40: e28d8024 add r8, sp, #36 ; 0x24 30007e44: e8b8000f ldm r8!, {r0, r1, r2, r3} 30007e48: e1a08004 mov r8, r4 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 30007e4c: e5966000 ldr r6, [r6] *pathloc = newloc; 30007e50: e8a8000f stmia r8!, {r0, r1, r2, r3} return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30007e54: e06c5005 rsb r5, ip, r5 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; *pathloc = newloc; 30007e58: e5886000 str r6, [r8] if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; 30007e5c: e58e6000 str r6, [lr] 30007e60: ea000023 b 30007ef4 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) 30007e64: e5936008 ldr r6, [r3, #8] 30007e68: e3560000 cmp r6, #0 30007e6c: 1a00002b bne 30007f20 30007e70: ea00003b b 30007f64 pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { 30007e74: e593304c ldr r3, [r3, #76] ; 0x4c 30007e78: e3530003 cmp r3, #3 30007e7c: 0a000001 beq 30007e88 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { 30007e80: e3530004 cmp r3, #4 30007e84: 1a000004 bne 30007e9c result = IMFS_evaluate_link( pathloc, 0 ); 30007e88: e1a00004 mov r0, r4 30007e8c: e3a01000 mov r1, #0 30007e90: ebffff8a bl 30007cc0 if ( result == -1 ) 30007e94: e3700001 cmn r0, #1 30007e98: 0a000045 beq 30007fb4 return -1; } node = pathloc->node_access; 30007e9c: e5940000 ldr r0, [r4] if ( !node ) 30007ea0: e3500000 cmp r0, #0 30007ea4: 0a00003b beq 30007f98 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) 30007ea8: e590304c ldr r3, [r0, #76] ; 0x4c 30007eac: e3530001 cmp r3, #1 30007eb0: 1a000038 bne 30007f98 /* * 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 ) { 30007eb4: e590e05c ldr lr, [r0, #92] ; 0x5c 30007eb8: e35e0000 cmp lr, #0 30007ebc: 0a000013 beq 30007f10 newloc = node->info.directory.mt_fs->mt_fs_root; 30007ec0: e28ee01c add lr, lr, #28 30007ec4: e28dc024 add ip, sp, #36 ; 0x24 30007ec8: e8be000f ldm lr!, {r0, r1, r2, r3} 30007ecc: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; 30007ed0: e28d6024 add r6, sp, #36 ; 0x24 30007ed4: e8b6000f ldm r6!, {r0, r1, r2, r3} 30007ed8: 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; 30007edc: e59ee000 ldr lr, [lr] *pathloc = newloc; 30007ee0: e8a6000f stmia r6!, {r0, r1, r2, r3} return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30007ee4: e59d3038 ldr r3, [sp, #56] ; 0x38 * 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; 30007ee8: e586e000 str lr, [r6] return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30007eec: 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; 30007ef0: e58ce000 str lr, [ip] *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); 30007ef4: e0870005 add r0, r7, r5 30007ef8: e1a01004 mov r1, r4 30007efc: e1a0200b mov r2, fp 30007f00: e594300c ldr r3, [r4, #12] 30007f04: e1a0e00f mov lr, pc 30007f08: e593f004 ldr pc, [r3, #4] 30007f0c: ea000028 b 30007fb4 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); 30007f10: e1a0100d mov r1, sp 30007f14: eb0000af bl 300081d8 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) 30007f18: e2506000 subs r6, r0, #0 30007f1c: 0a000007 beq 30007f40 done = true; else pathloc->node_access = node; 30007f20: e5846000 str r6, [r4] 30007f24: eaffff9d b 30007da0 break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); 30007f28: eb000dd0 bl 3000b670 <__errno> 30007f2c: e3a03011 mov r3, #17 30007f30: ea000023 b 30007fc4 break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); 30007f34: eb000dcd bl 3000b670 <__errno> 30007f38: e3a0305b mov r3, #91 ; 0x5b 30007f3c: ea000020 b 30007fc4 case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; 30007f40: e59d2038 ldr r2, [sp, #56] ; 0x38 30007f44: e0873005 add r3, r7, r5 30007f48: e0625005 rsb r5, r2, r5 30007f4c: e0877005 add r7, r7, r5 30007f50: e58b7000 str r7, [fp] /* * 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++) { 30007f54: ea000005 b 30007f70 if ( !IMFS_is_separator( path[ i ] ) ) 30007f58: e352005c cmp r2, #92 ; 0x5c 30007f5c: 1352002f cmpne r2, #47 ; 0x2f 30007f60: 0a000002 beq 30007f70 rtems_set_errno_and_return_minus_one( ENOENT ); 30007f64: eb000dc1 bl 3000b670 <__errno> 30007f68: e3a03002 mov r3, #2 30007f6c: ea000014 b 30007fc4 /* * 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++) { 30007f70: e5d32000 ldrb r2, [r3] 30007f74: e2833001 add r3, r3, #1 30007f78: e3520000 cmp r2, #0 30007f7c: 1afffff5 bne 30007f58 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); 30007f80: e1a00004 mov r0, r4 30007f84: ebfffe2b bl 30007838 /* * The returned node must be a directory */ node = pathloc->node_access; 30007f88: e5943000 ldr r3, [r4] if ( node->type != IMFS_DIRECTORY ) 30007f8c: e593204c ldr r2, [r3, #76] ; 0x4c 30007f90: e3520001 cmp r2, #1 30007f94: 0a000002 beq 30007fa4 rtems_set_errno_and_return_minus_one( ENOTDIR ); 30007f98: eb000db4 bl 3000b670 <__errno> 30007f9c: e3a03014 mov r3, #20 30007fa0: ea000007 b 30007fc4 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 30007fa4: e5933030 ldr r3, [r3, #48] ; 0x30 30007fa8: e20330c0 and r3, r3, #192 ; 0xc0 30007fac: e35300c0 cmp r3, #192 ; 0xc0 30007fb0: 1a000001 bne 30007fbc if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 30007fb4: e28dd03c add sp, sp, #60 ; 0x3c 30007fb8: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} */ 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 ); 30007fbc: eb000dab bl 3000b670 <__errno> 30007fc0: e3a0300d mov r3, #13 30007fc4: e5803000 str r3, [r0] 30007fc8: e3e00000 mvn r0, #0 30007fcc: eafffff8 b 30007fb4 30007fd0: 30017e84 .word 0x30017e84 300078d0 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; 300078d0: e5903000 ldr r3, [r0] int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300078d4: e92d4030 push {r4, r5, lr} /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 300078d8: e593204c ldr r2, [r3, #76] ; 0x4c int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300078dc: e1a04000 mov r4, r0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) 300078e0: e3520003 cmp r2, #3 int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 300078e4: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) rtems_fatal_error_occurred (0xABCD0000); 300078e8: 159f0040 ldrne r0, [pc, #64] ; 30007930 300078ec: 1bfff415 blne 30004948 /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 300078f0: e5933050 ldr r3, [r3, #80] ; 0x50 /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 300078f4: e1a05305 lsl r5, r5, #6 /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; 300078f8: e5803000 str r3, [r0] IMFS_Set_handlers( node ); 300078fc: ebffffcd bl 30007838 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 30007900: e5943000 ldr r3, [r4] 30007904: e5933030 ldr r3, [r3, #48] ; 0x30 30007908: e0053003 and r3, r5, r3 3000790c: e1530005 cmp r3, r5 30007910: 1a000001 bne 3000791c 30007914: e3a00000 mov r0, #0 if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 30007918: e8bd8030 pop {r4, r5, pc} /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 3000791c: eb000f53 bl 3000b670 <__errno> <== NOT EXECUTED 30007920: e3a0300d mov r3, #13 <== NOT EXECUTED 30007924: e5803000 str r3, [r0] <== NOT EXECUTED 30007928: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000792c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 30007930: abcd0000 .word 0xabcd0000 300078b0 : /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 300078b0: e5903000 ldr r3, [r0] <== NOT EXECUTED 300078b4: e1a01301 lsl r1, r1, #6 <== NOT EXECUTED 300078b8: e5930030 ldr r0, [r3, #48] ; 0x30 <== NOT EXECUTED 300078bc: e0010000 and r0, r1, r0 <== NOT EXECUTED return 1; return 0; } 300078c0: e1500001 cmp r0, r1 <== NOT EXECUTED 300078c4: 13a00000 movne r0, #0 <== NOT EXECUTED 300078c8: 03a00001 moveq r0, #1 <== NOT EXECUTED 300078cc: e12fff1e bx lr <== NOT EXECUTED 30007934 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30007934: e92d40f0 push {r4, r5, r6, r7, lr} IMFS_jnode_t *jnode = node->node_access; 30007938: e590e000 ldr lr, [r0] int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 3000793c: e1a04000 mov r4, r0 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30007940: e59e304c ldr r3, [lr, #76] ; 0x4c int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { 30007944: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30007948: e3530004 cmp r3, #4 rtems_fatal_error_occurred (0xABCD0000); 3000794c: 159f00c4 ldrne r0, [pc, #196] ; 30007a18 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) 30007950: 1a000003 bne 30007964 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) 30007954: e59e3008 ldr r3, [lr, #8] 30007958: e3530000 cmp r3, #0 3000795c: 1a000001 bne 30007968 rtems_fatal_error_occurred( 0xBAD00000 ); 30007960: e59f00b4 ldr r0, [pc, #180] ; 30007a1c <== NOT EXECUTED 30007964: ebfff3f7 bl 30004948 <== 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; 30007968: e5843000 str r3, [r4] rtems_filesystem_get_sym_start_loc( 3000796c: e59e3050 ldr r3, [lr, #80] ; 0x50 30007970: e5d33000 ldrb r3, [r3] 30007974: e353002f cmp r3, #47 ; 0x2f 30007978: 1353005c cmpne r3, #92 ; 0x5c 3000797c: 13a06000 movne r6, #0 30007980: 03a06001 moveq r6, #1 30007984: 0a000001 beq 30007990 30007988: e3530000 cmp r3, #0 3000798c: 1a000008 bne 300079b4 30007990: e59f3088 ldr r3, [pc, #136] ; 30007a20 30007994: e1a07004 mov r7, r4 30007998: e593c000 ldr ip, [r3] 3000799c: e3a06001 mov r6, #1 300079a0: e28cc018 add ip, ip, #24 300079a4: e8bc000f ldm ip!, {r0, r1, r2, r3} 300079a8: e8a7000f stmia r7!, {r0, r1, r2, r3} 300079ac: e59c2000 ldr r2, [ip] 300079b0: 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] ), 300079b4: e59e3050 ldr r3, [lr, #80] ; 0x50 300079b8: e0836006 add r6, r3, r6 300079bc: e1a00006 mov r0, r6 300079c0: eb00131b bl 3000c634 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 300079c4: e1a02005 mov r2, r5 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), 300079c8: e1a01000 mov r1, r0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( 300079cc: e1a03004 mov r3, r4 300079d0: e1a00006 mov r0, r6 300079d4: eb000012 bl 30007a24 300079d8: e1a06000 mov r6, r0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); 300079dc: e1a00004 mov r0, r4 300079e0: ebffff94 bl 30007838 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 300079e4: e5943000 ldr r3, [r4] /* * If all of the flags are set we have permission * to do this. */ if ( ( flags_to_test & jnode->st_mode) == flags_to_test ) 300079e8: e1a05305 lsl r5, r5, #6 if ( !rtems_libio_is_valid_perms( flags ) ) { assert( 0 ); rtems_set_errno_and_return_minus_one( EIO ); } jnode = node->node_access; 300079ec: e5933030 ldr r3, [r3, #48] ; 0x30 300079f0: e0053003 and r3, r5, r3 300079f4: e1530005 cmp r3, r5 300079f8: 1a000001 bne 30007a04 if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); return result; } 300079fc: e1a00006 mov r0, r6 30007a00: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) rtems_set_errno_and_return_minus_one( EACCES ); 30007a04: eb000f19 bl 3000b670 <__errno> <== NOT EXECUTED 30007a08: e3a0300d mov r3, #13 <== NOT EXECUTED 30007a0c: e5803000 str r3, [r0] <== NOT EXECUTED 30007a10: e3e06000 mvn r6, #0 <== NOT EXECUTED 30007a14: eafffff8 b 300079fc <== NOT EXECUTED 30007a18: abcd0000 .word 0xabcd0000 30007a1c: bad00000 .word 0xbad00000 30007a20: 30017e84 .word 0x30017e84 30008134 : } int IMFS_fifo_close( rtems_libio_t *iop ) { 30008134: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 30008138: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); 3000813c: e1a01000 mov r1, r0 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { 30008140: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); 30008144: e2840050 add r0, r4, #80 ; 0x50 <== NOT EXECUTED 30008148: eb000891 bl 3000a394 <== NOT EXECUTED if (! err) { 3000814c: e2506000 subs r6, r0, #0 <== NOT EXECUTED 30008150: 1a00000c bne 30008188 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; 30008154: 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) 30008158: 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; 3000815c: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED 30008160: 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) 30008164: eb000212 bl 300089b4 <== NOT EXECUTED 30008168: e3500000 cmp r0, #0 <== NOT EXECUTED 3000816c: 1a00000a bne 3000819c <== NOT EXECUTED 30008170: e1d433b4 ldrh r3, [r4, #52] ; 0x34 <== NOT EXECUTED 30008174: e3530000 cmp r3, #0 <== NOT EXECUTED 30008178: 1a000007 bne 3000819c <== NOT EXECUTED free(jnode); 3000817c: e1a00004 mov r0, r4 <== NOT EXECUTED 30008180: eb00017e bl 30008780 <== NOT EXECUTED 30008184: ea000004 b 3000819c <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 30008188: aa000003 bge 3000819c <== NOT EXECUTED 3000818c: eb000d37 bl 3000b670 <__errno> <== NOT EXECUTED 30008190: e2666000 rsb r6, r6, #0 <== NOT EXECUTED 30008194: e5806000 str r6, [r0] <== NOT EXECUTED 30008198: e3e06000 mvn r6, #0 <== NOT EXECUTED } 3000819c: e1a00006 mov r0, r6 <== NOT EXECUTED 300081a0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3000801c : int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 3000801c: e1a03000 mov r3, r0 <== NOT EXECUTED int err; if (command == FIONBIO) { 30008020: e59f0064 ldr r0, [pc, #100] ; 3000808c <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { 30008024: e92d4010 push {r4, lr} <== NOT EXECUTED int err; if (command == FIONBIO) { 30008028: e1510000 cmp r1, r0 <== NOT EXECUTED 3000802c: 1a00000b bne 30008060 <== NOT EXECUTED if (buffer == NULL) 30008030: e3520000 cmp r2, #0 <== NOT EXECUTED 30008034: 03e0400d mvneq r4, #13 <== NOT EXECUTED 30008038: 0a00000d beq 30008074 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) 3000803c: e5924000 ldr r4, [r2] <== NOT EXECUTED 30008040: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED 30008044: e3540000 cmp r4, #0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; 30008048: 13822001 orrne r2, r2, #1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 3000804c: 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; 30008050: 15832014 strne r2, [r3, #20] <== NOT EXECUTED 30008054: 13a04000 movne r4, #0 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 30008058: 05832014 streq r2, [r3, #20] <== NOT EXECUTED 3000805c: ea000008 b 30008084 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); 30008060: e5930038 ldr r0, [r3, #56] ; 0x38 <== NOT EXECUTED 30008064: e5900050 ldr r0, [r0, #80] ; 0x50 <== NOT EXECUTED 30008068: eb0007e4 bl 3000a000 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 3000806c: e2504000 subs r4, r0, #0 <== NOT EXECUTED 30008070: aa000003 bge 30008084 <== NOT EXECUTED 30008074: eb000d7d bl 3000b670 <__errno> <== NOT EXECUTED 30008078: e2644000 rsb r4, r4, #0 <== NOT EXECUTED 3000807c: e5804000 str r4, [r0] <== NOT EXECUTED 30008080: e3e04000 mvn r4, #0 <== NOT EXECUTED } 30008084: e1a00004 mov r0, r4 <== NOT EXECUTED 30008088: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3000808c: 8004667e .word 0x8004667e 30007fd4 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 30007fd4: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); 30007fd8: e590c038 ldr ip, [r0, #56] ; 0x38 <== NOT EXECUTED 30007fdc: e58d0000 str r0, [sp] <== NOT EXECUTED 30007fe0: e59c0050 ldr r0, [ip, #80] ; 0x50 <== NOT EXECUTED 30007fe4: eb0007eb bl 30009f98 <== NOT EXECUTED 30007fe8: e1a03000 mov r3, r0 <== NOT EXECUTED 30007fec: e1a04fc3 asr r4, r3, #31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 30007ff0: 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); 30007ff4: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); 30007ff8: aa000004 bge 30008010 <== NOT EXECUTED 30007ffc: eb000d9b bl 3000b670 <__errno> <== NOT EXECUTED 30008000: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 30008004: e5805000 str r5, [r0] <== NOT EXECUTED 30008008: e3e03000 mvn r3, #0 <== NOT EXECUTED 3000800c: e3e04000 mvn r4, #0 <== NOT EXECUTED } 30008010: e1a01004 mov r1, r4 <== NOT EXECUTED 30008014: e1a00003 mov r0, r3 <== NOT EXECUTED 30008018: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED 300080e4 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 300080e4: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 300080e8: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { 300080ec: e1a03000 mov r3, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); 300080f0: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED 300080f4: eb00083d bl 3000a1f0 <== NOT EXECUTED if (err > 0) 300080f8: e2505000 subs r5, r0, #0 <== NOT EXECUTED 300080fc: da000005 ble 30008118 <== NOT EXECUTED IMFS_update_atime(jnode); 30008100: e1a0000d mov r0, sp <== NOT EXECUTED 30008104: e3a01000 mov r1, #0 <== NOT EXECUTED 30008108: eb0001ff bl 3000890c <== NOT EXECUTED 3000810c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30008110: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED 30008114: ea000004 b 3000812c <== NOT EXECUTED IMFS_FIFO_RETURN(err); 30008118: 0a000003 beq 3000812c <== NOT EXECUTED 3000811c: eb000d53 bl 3000b670 <__errno> <== NOT EXECUTED 30008120: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 30008124: e5805000 str r5, [r0] <== NOT EXECUTED 30008128: e3e05000 mvn r5, #0 <== NOT EXECUTED } 3000812c: e1a00005 mov r0, r5 <== NOT EXECUTED 30008130: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED 30008090 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 30008090: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; 30008094: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { 30008098: e1a03000 mov r3, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); 3000809c: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED 300080a0: eb0007ee bl 3000a060 <== NOT EXECUTED if (err > 0) { 300080a4: e2505000 subs r5, r0, #0 <== NOT EXECUTED 300080a8: da000006 ble 300080c8 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); 300080ac: e1a0000d mov r0, sp <== NOT EXECUTED 300080b0: e3a01000 mov r1, #0 <== NOT EXECUTED 300080b4: eb000214 bl 3000890c <== NOT EXECUTED 300080b8: e59d3000 ldr r3, [sp] <== NOT EXECUTED 300080bc: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED 300080c0: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED 300080c4: ea000004 b 300080dc <== NOT EXECUTED } IMFS_FIFO_RETURN(err); 300080c8: 0a000003 beq 300080dc <== NOT EXECUTED 300080cc: eb000d67 bl 3000b670 <__errno> <== NOT EXECUTED 300080d0: e2655000 rsb r5, r5, #0 <== NOT EXECUTED 300080d4: e5805000 str r5, [r0] <== NOT EXECUTED 300080d8: e3e05000 mvn r5, #0 <== NOT EXECUTED } 300080dc: e1a00005 mov r0, r5 <== NOT EXECUTED 300080e0: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED 3000d420 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { 3000d420: 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; 3000d424: e1a0c000 mov ip, r0 3000d428: 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 ) { 3000d42c: 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; 3000d430: 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 ) { 3000d434: 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; 3000d438: e8bc000f ldm ip!, {r0, r1, r2, r3} 3000d43c: e8ae000f stmia lr!, {r0, r1, r2, r3} 3000d440: e59c3000 ldr r3, [ip] 3000d444: e58e3000 str r3, [lr] /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; 3000d448: e3a03000 mov r3, #0 3000d44c: e585301c str r3, [r5, #28] do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 3000d450: e1a0500d mov r5, sp 3000d454: e1a0000d mov r0, sp temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; 3000d458: e58d4000 str r4, [sp] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; 3000d45c: e5946008 ldr r6, [r4, #8] loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); 3000d460: ebfffd84 bl 3000ca78 if ( jnode->type != IMFS_DIRECTORY ) { 3000d464: e594204c ldr r2, [r4, #76] ; 0x4c */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 3000d468: e2843054 add r3, r4, #84 ; 0x54 3000d46c: e3520001 cmp r2, #1 3000d470: 1a000002 bne 3000d480 3000d474: e5942050 ldr r2, [r4, #80] ; 0x50 3000d478: e1520003 cmp r2, r3 3000d47c: 1a000005 bne 3000d498 result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); 3000d480: e3a00000 mov r0, #0 3000d484: e1a0100d mov r1, sp 3000d488: ebffd3e6 bl 30002428 if (result != 0) 3000d48c: e3500000 cmp r0, #0 3000d490: 1a00000c bne 3000d4c8 3000d494: e1a04006 mov r4, r6 return -1; jnode = next; } if ( jnode != NULL ) { 3000d498: e3540000 cmp r4, #0 3000d49c: 0a00000b beq 3000d4d0 if ( jnode->type == IMFS_DIRECTORY ) { 3000d4a0: e594304c ldr r3, [r4, #76] ; 0x4c 3000d4a4: e3530001 cmp r3, #1 3000d4a8: 1affffe9 bne 3000d454 3000d4ac: e5943050 ldr r3, [r4, #80] ; 0x50 3000d4b0: e2842054 add r2, r4, #84 ; 0x54 3000d4b4: e1530002 cmp r3, r2 3000d4b8: 0affffe5 beq 3000d454 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); 3000d4bc: e2534000 subs r4, r3, #0 3000d4c0: 1affffe3 bne 3000d454 3000d4c4: ea000001 b 3000d4d0 <== NOT EXECUTED 3000d4c8: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000d4cc: ea000000 b 3000d4d4 <== NOT EXECUTED 3000d4d0: e3a00000 mov r0, #0 return 0; } 3000d4d4: e28dd014 add sp, sp, #20 3000d4d8: e8bd8070 pop {r4, r5, r6, pc} 30008340 : 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 ) { 30008340: e92d40f0 push {r4, r5, r6, r7, lr} 30008344: 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, 30008348: e59f00c0 ldr r0, [pc, #192] ; 30008410 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 ) { 3000834c: 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, 30008350: 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 ) { 30008354: e1a05003 mov r5, r3 30008358: 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, 3000835c: e3a02000 mov r2, #0 30008360: 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) { 30008364: e1530000 cmp r3, r0 30008368: e2822001 add r2, r2, #1 3000836c: 0a000003 beq 30008380 30008370: e3520006 cmp r2, #6 30008374: e1a03083 lsl r3, r3, #1 30008378: 1afffff9 bne 30008364 3000837c: e3a03080 mov r3, #128 ; 0x80 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) 30008380: e59f208c ldr r2, [pc, #140] ; 30008414 30008384: 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(); 30008388: eb00092d bl 3000a844 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; 3000838c: e59fe084 ldr lr, [pc, #132] ; 30008418 30008390: 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(); 30008394: 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; 30008398: e8be000f ldm lr!, {r0, r1, r2, r3} 3000839c: e8ac000f stmia ip!, {r0, r1, r2, r3} 300083a0: e8be000f ldm lr!, {r0, r1, r2, r3} 300083a4: e8ac000f stmia ip!, {r0, r1, r2, r3} 300083a8: 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; 300083ac: e5847028 str r7, [r4, #40] ; 0x28 temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; 300083b0: 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; 300083b4: 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 ) ); 300083b8: e3a00001 mov r0, #1 300083bc: e3a0100c mov r1, #12 300083c0: eb0000b2 bl 30008690 if ( !fs_info ) { 300083c4: e3500000 cmp r0, #0 300083c8: 1a000006 bne 300083e8 free(temp_mt_entry->mt_fs_root.node_access); 300083cc: e594001c ldr r0, [r4, #28] <== NOT EXECUTED 300083d0: eb0000ea bl 30008780 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); 300083d4: eb000ca5 bl 3000b670 <__errno> <== NOT EXECUTED 300083d8: e3a0300c mov r3, #12 <== NOT EXECUTED 300083dc: e5803000 str r3, [r0] <== NOT EXECUTED 300083e0: e3e00000 mvn r0, #0 <== NOT EXECUTED 300083e4: 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; 300083e8: e594201c ldr r2, [r4, #28] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; 300083ec: e3a03001 mov r3, #1 300083f0: e5803000 str r3, [r0] fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; 300083f4: e5805008 str r5, [r0, #8] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; 300083f8: 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; 300083fc: 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; 30008400: e5823038 str r3, [r2, #56] ; 0x38 /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); 30008404: eb0006e5 bl 30009fa0 30008408: e3a00000 mov r0, #0 return 0; } 3000840c: e8bd80f0 pop {r4, r5, r6, r7, pc} 30008410: 30017c90 .word 0x30017c90 30008414: 30018524 .word 0x30018524 30008418: 300172cc .word 0x300172cc 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: eb003a8d bl 30010b90 <__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: eb003e62 bl 30011af4 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: eb002cfe bl 3000d57c * 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: eb0029e7 bl 3000c93c 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: eb003a79 bl 30010b90 <__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 3000f840 : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 3000f840: e2503000 subs r3, r0, #0 MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { 3000f844: e92d4030 push {r4, r5, lr} block_p memory; block_p *block_entry_ptr; assert( the_jnode ); 3000f848: 059f0060 ldreq r0, [pc, #96] ; 3000f8b0 3000f84c: 059f1060 ldreq r1, [pc, #96] ; 3000f8b4 3000f850: 059f2060 ldreq r2, [pc, #96] ; 3000f8b8 3000f854: 059f3060 ldreq r3, [pc, #96] ; 3000f8bc 3000f858: 0a000006 beq 3000f878 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 3000f85c: e593304c ldr r3, [r3, #76] ; 0x4c 3000f860: e3530005 cmp r3, #5 3000f864: 0a000004 beq 3000f87c 3000f868: e59f0040 ldr r0, [pc, #64] ; 3000f8b0 <== NOT EXECUTED 3000f86c: e59f104c ldr r1, [pc, #76] ; 3000f8c0 <== NOT EXECUTED 3000f870: e59f2040 ldr r2, [pc, #64] ; 3000f8b8 <== NOT EXECUTED 3000f874: e59f3048 ldr r3, [pc, #72] ; 3000f8c4 <== NOT EXECUTED 3000f878: ebfff7cc bl 3000d7b0 <__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 ); 3000f87c: e3a02001 mov r2, #1 3000f880: ebfffeac bl 3000f338 if ( *block_entry_ptr ) 3000f884: 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 ); 3000f888: e1a05000 mov r5, r0 if ( *block_entry_ptr ) 3000f88c: e3540000 cmp r4, #0 3000f890: 13a00000 movne r0, #0 3000f894: 18bd8030 popne {r4, r5, pc} #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); 3000f898: ebfffe99 bl 3000f304 if ( !memory ) 3000f89c: e3500000 cmp r0, #0 return 1; *block_entry_ptr = memory; 3000f8a0: 15850000 strne r0, [r5] fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) 3000f8a4: 03a00001 moveq r0, #1 return 1; *block_entry_ptr = memory; 3000f8a8: 11a00004 movne r0, r4 return 0; } 3000f8ac: e8bd8030 pop {r4, r5, pc} 3000f8b0: 3001d731 .word 0x3001d731 3000f8b4: 00000169 .word 0x00000169 3000f8b8: 3001ced8 .word 0x3001ced8 3000f8bc: 3001d777 .word 0x3001d777 3000f8c0: 0000016d .word 0x0000016d 3000f8c4: 3001d781 .word 0x3001d781 3000f8c8 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 3000f8c8: e92d4df1 push {r0, r4, r5, r6, r7, r8, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 3000f8cc: e2504000 subs r4, r0, #0 MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { 3000f8d0: e1a05001 mov r5, r1 3000f8d4: e1a06002 mov r6, r2 /* * Perform internal consistency checks */ assert( the_jnode ); 3000f8d8: 059f0134 ldreq r0, [pc, #308] ; 3000fa14 3000f8dc: 059f1134 ldreq r1, [pc, #308] ; 3000fa18 3000f8e0: 059f2134 ldreq r2, [pc, #308] ; 3000fa1c 3000f8e4: 059f3134 ldreq r3, [pc, #308] ; 3000fa20 3000f8e8: 0a000006 beq 3000f908 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 3000f8ec: e594304c ldr r3, [r4, #76] ; 0x4c 3000f8f0: e3530005 cmp r3, #5 3000f8f4: 0a000004 beq 3000f90c 3000f8f8: e59f0114 ldr r0, [pc, #276] ; 3000fa14 <== NOT EXECUTED 3000f8fc: e59f1120 ldr r1, [pc, #288] ; 3000fa24 <== NOT EXECUTED 3000f900: e59f2114 ldr r2, [pc, #276] ; 3000fa1c <== NOT EXECUTED 3000f904: e59f311c ldr r3, [pc, #284] ; 3000fa28 <== NOT EXECUTED 3000f908: ebfff7a8 bl 3000d7b0 <__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 ) 3000f90c: e59f3118 ldr r3, [pc, #280] ; 3000fa2c 3000f910: e593b000 ldr fp, [r3] 3000f914: e3a03000 mov r3, #0 3000f918: e1530002 cmp r3, r2 3000f91c: e1a0312b lsr r3, fp, #2 3000f920: e2832001 add r2, r3, #1 3000f924: e0010293 mul r1, r3, r2 3000f928: e2811001 add r1, r1, #1 3000f92c: e0020193 mul r2, r3, r1 3000f930: e2422001 sub r2, r2, #1 3000f934: e003029b mul r3, fp, r2 3000f938: ca000005 bgt 3000f954 3000f93c: 1a000001 bne 3000f948 3000f940: e1530005 cmp r3, r5 3000f944: 8a000002 bhi 3000f954 rtems_set_errno_and_return_minus_one( EINVAL ); 3000f948: eb000490 bl 30010b90 <__errno> <== NOT EXECUTED 3000f94c: e3a03016 mov r3, #22 <== NOT EXECUTED 3000f950: ea000025 b 3000f9ec <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) 3000f954: e5948054 ldr r8, [r4, #84] ; 0x54 3000f958: e5947050 ldr r7, [r4, #80] ; 0x50 3000f95c: e1560008 cmp r6, r8 3000f960: ca000002 bgt 3000f970 3000f964: 1a000028 bne 3000fa0c 3000f968: e1550007 cmp r5, r7 3000f96c: 9a000026 bls 3000fa0c /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 3000f970: e1a0cfcb asr ip, fp, #31 3000f974: e1a0300c mov r3, ip 3000f978: e1a0200b mov r2, fp 3000f97c: e1a00005 mov r0, r5 3000f980: e1a01006 mov r1, r6 3000f984: e58dc000 str ip, [sp] 3000f988: eb002d36 bl 3001ae68 <__divdi3> old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 3000f98c: e59dc000 ldr ip, [sp] 3000f990: e1a01008 mov r1, r8 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; 3000f994: e1a0a000 mov sl, r0 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; 3000f998: e1a0200b mov r2, fp 3000f99c: e1a00007 mov r0, r7 3000f9a0: e1a0300c mov r3, ip 3000f9a4: eb002d2f bl 3001ae68 <__divdi3> 3000f9a8: e1a08000 mov r8, r0 3000f9ac: e1a07000 mov r7, r0 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 3000f9b0: ea000011 b 3000f9fc if ( IMFS_memfile_addblock( the_jnode, block ) ) { 3000f9b4: e1a00004 mov r0, r4 3000f9b8: e1a01007 mov r1, r7 3000f9bc: ebffff9f bl 3000f840 3000f9c0: e3500000 cmp r0, #0 3000f9c4: 0a00000b beq 3000f9f8 3000f9c8: ea000003 b 3000f9dc <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); 3000f9cc: e1a01007 mov r1, r7 <== NOT EXECUTED 3000f9d0: e1a00004 mov r0, r4 <== NOT EXECUTED 3000f9d4: ebfffefa bl 3000f5c4 <== 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-- ) { 3000f9d8: e2477001 sub r7, r7, #1 <== NOT EXECUTED 3000f9dc: e1570008 cmp r7, r8 <== NOT EXECUTED 3000f9e0: 2afffff9 bcs 3000f9cc <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); 3000f9e4: eb000469 bl 30010b90 <__errno> <== NOT EXECUTED 3000f9e8: e3a0301c mov r3, #28 <== NOT EXECUTED 3000f9ec: e5803000 str r3, [r0] <== NOT EXECUTED 3000f9f0: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000f9f4: ea000005 b 3000fa10 <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { 3000f9f8: e2877001 add r7, r7, #1 3000f9fc: e157000a cmp r7, sl 3000fa00: 9affffeb bls 3000f9b4 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; 3000fa04: e5846054 str r6, [r4, #84] ; 0x54 3000fa08: e5845050 str r5, [r4, #80] ; 0x50 3000fa0c: e3a00000 mov r0, #0 return 0; } 3000fa10: e8bd8df8 pop {r3, r4, r5, r6, r7, r8, sl, fp, pc} 3000fa14: 3001d731 .word 0x3001d731 3000fa18: 00000131 .word 0x00000131 3000fa1c: 3001cef0 .word 0x3001cef0 3000fa20: 3001d777 .word 0x3001d777 3000fa24: 00000135 .word 0x00000135 3000fa28: 3001d781 .word 0x3001d781 3000fa2c: 3001e250 .word 0x3001e250 3000f338 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 3000f338: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 3000f33c: e2504000 subs r4, r0, #0 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { 3000f340: e1a06001 mov r6, r1 3000f344: e1a08002 mov r8, r2 /* * Perform internal consistency checks */ assert( the_jnode ); 3000f348: 059f01e4 ldreq r0, [pc, #484] ; 3000f534 3000f34c: 03a01fe2 moveq r1, #904 ; 0x388 3000f350: 059f21e0 ldreq r2, [pc, #480] ; 3000f538 3000f354: 059f31e0 ldreq r3, [pc, #480] ; 3000f53c 3000f358: 0a000006 beq 3000f378 if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); 3000f35c: e594304c ldr r3, [r4, #76] ; 0x4c 3000f360: e3530005 cmp r3, #5 3000f364: 0a000004 beq 3000f37c 3000f368: e59f01c4 ldr r0, [pc, #452] ; 3000f534 <== NOT EXECUTED 3000f36c: e59f21c4 ldr r2, [pc, #452] ; 3000f538 <== NOT EXECUTED 3000f370: e59f31c8 ldr r3, [pc, #456] ; 3000f540 <== NOT EXECUTED 3000f374: e3a01fe3 mov r1, #908 ; 0x38c <== NOT EXECUTED 3000f378: ebfff90c bl 3000d7b0 <__assert_func> <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { 3000f37c: e59f31c0 ldr r3, [pc, #448] ; 3000f544 3000f380: e5935000 ldr r5, [r3] 3000f384: e1a05125 lsr r5, r5, #2 3000f388: e2453001 sub r3, r5, #1 3000f38c: e1510003 cmp r1, r3 3000f390: 8a00000e bhi 3000f3d0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { 3000f394: e3520000 cmp r2, #0 if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; 3000f398: e5940058 ldr r0, [r4, #88] ; 0x58 if ( malloc_it ) { 3000f39c: 0a000007 beq 3000f3c0 if ( !p ) { 3000f3a0: e3500000 cmp r0, #0 3000f3a4: 1a000003 bne 3000f3b8 p = memfile_alloc_block(); 3000f3a8: ebffffd5 bl 3000f304 if ( !p ) 3000f3ac: e3500000 cmp r0, #0 3000f3b0: 0a00005d beq 3000f52c return 0; info->indirect = p; 3000f3b4: e5840058 str r0, [r4, #88] ; 0x58 } return &info->indirect[ my_block ]; 3000f3b8: e5940058 ldr r0, [r4, #88] ; 0x58 3000f3bc: ea000001 b 3000f3c8 } if ( !p ) 3000f3c0: e3500000 cmp r0, #0 3000f3c4: 0a000058 beq 3000f52c return 0; return &info->indirect[ my_block ]; 3000f3c8: e0800106 add r0, r0, r6, lsl #2 3000f3cc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { 3000f3d0: e2852001 add r2, r5, #1 <== NOT EXECUTED 3000f3d4: e0030295 mul r3, r5, r2 <== NOT EXECUTED 3000f3d8: e2432001 sub r2, r3, #1 <== NOT EXECUTED 3000f3dc: e1510002 cmp r1, r2 <== NOT EXECUTED 3000f3e0: 8a00001a bhi 3000f450 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; 3000f3e4: e0656001 rsb r6, r5, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3000f3e8: e1a00006 mov r0, r6 <== NOT EXECUTED 3000f3ec: e1a01005 mov r1, r5 <== NOT EXECUTED 3000f3f0: eb002bd5 bl 3001a34c <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3000f3f4: e1a01005 mov r1, r5 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3000f3f8: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3000f3fc: e1a00006 mov r0, r6 <== NOT EXECUTED 3000f400: eb002b3d bl 3001a0fc <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { 3000f404: 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; 3000f408: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->doubly_indirect; 3000f40c: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED if ( malloc_it ) { 3000f410: 0a000008 beq 3000f438 <== NOT EXECUTED if ( !p ) { 3000f414: e3530000 cmp r3, #0 <== NOT EXECUTED 3000f418: 1a000003 bne 3000f42c <== NOT EXECUTED p = memfile_alloc_block(); 3000f41c: ebffffb8 bl 3000f304 <== NOT EXECUTED if ( !p ) 3000f420: e2503000 subs r3, r0, #0 <== NOT EXECUTED 3000f424: 0a000040 beq 3000f52c <== NOT EXECUTED return 0; info->doubly_indirect = p; 3000f428: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; 3000f42c: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED 3000f430: e0835105 add r5, r3, r5, lsl #2 <== NOT EXECUTED 3000f434: ea00002d b 3000f4f0 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) 3000f438: e3530000 cmp r3, #0 <== NOT EXECUTED 3000f43c: 0a00003a beq 3000f52c <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; 3000f440: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED if ( !p ) 3000f444: e3500000 cmp r0, #0 <== NOT EXECUTED 3000f448: 1a000035 bne 3000f524 <== NOT EXECUTED 3000f44c: ea000036 b 3000f52c <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { 3000f450: e2831001 add r1, r3, #1 <== NOT EXECUTED 3000f454: e0020195 mul r2, r5, r1 <== NOT EXECUTED 3000f458: e2422001 sub r2, r2, #1 <== NOT EXECUTED 3000f45c: e1560002 cmp r6, r2 <== NOT EXECUTED 3000f460: 8a000031 bhi 3000f52c <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; 3000f464: e0636006 rsb r6, r3, r6 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3000f468: e1a01005 mov r1, r5 <== NOT EXECUTED 3000f46c: e1a00006 mov r0, r6 <== NOT EXECUTED 3000f470: eb002bb5 bl 3001a34c <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3000f474: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; 3000f478: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; 3000f47c: e1a00006 mov r0, r6 <== NOT EXECUTED 3000f480: eb002b1d bl 3001a0fc <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 3000f484: 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; 3000f488: e1a06000 mov r6, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; 3000f48c: eb002b1a bl 3001a0fc <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 3000f490: 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; 3000f494: e1a07000 mov r7, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; 3000f498: e1a00006 mov r0, r6 <== NOT EXECUTED 3000f49c: eb002baa bl 3001a34c <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { 3000f4a0: 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; 3000f4a4: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->triply_indirect; 3000f4a8: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED if ( malloc_it ) { 3000f4ac: 0a000016 beq 3000f50c <== NOT EXECUTED if ( !p ) { 3000f4b0: e3530000 cmp r3, #0 <== NOT EXECUTED 3000f4b4: 1a000003 bne 3000f4c8 <== NOT EXECUTED p = memfile_alloc_block(); 3000f4b8: ebffff91 bl 3000f304 <== NOT EXECUTED if ( !p ) 3000f4bc: e2503000 subs r3, r0, #0 <== NOT EXECUTED 3000f4c0: 0a000019 beq 3000f52c <== NOT EXECUTED return 0; info->triply_indirect = p; 3000f4c4: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; 3000f4c8: e7932107 ldr r2, [r3, r7, lsl #2] <== NOT EXECUTED 3000f4cc: e0837107 add r7, r3, r7, lsl #2 <== NOT EXECUTED if ( !p1 ) { 3000f4d0: e3520000 cmp r2, #0 <== NOT EXECUTED 3000f4d4: 1a000003 bne 3000f4e8 <== NOT EXECUTED p1 = memfile_alloc_block(); 3000f4d8: ebffff89 bl 3000f304 <== NOT EXECUTED if ( !p1 ) 3000f4dc: e2502000 subs r2, r0, #0 <== NOT EXECUTED 3000f4e0: 0a000011 beq 3000f52c <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; 3000f4e4: e5872000 str r2, [r7] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; 3000f4e8: e7920105 ldr r0, [r2, r5, lsl #2] <== NOT EXECUTED 3000f4ec: e0825105 add r5, r2, r5, lsl #2 <== NOT EXECUTED if ( !p2 ) { 3000f4f0: e3500000 cmp r0, #0 <== NOT EXECUTED 3000f4f4: 1a00000a bne 3000f524 <== NOT EXECUTED p2 = memfile_alloc_block(); 3000f4f8: ebffff81 bl 3000f304 <== NOT EXECUTED if ( !p2 ) 3000f4fc: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; 3000f500: 15850000 strne r0, [r5] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); if ( !p2 ) 3000f504: 1a000006 bne 3000f524 <== NOT EXECUTED 3000f508: ea000007 b 3000f52c <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) 3000f50c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000f510: 0a000005 beq 3000f52c <== 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 ]; 3000f514: e7933107 ldr r3, [r3, r7, lsl #2] <== NOT EXECUTED if ( !p1 ) 3000f518: e3530000 cmp r3, #0 <== NOT EXECUTED 3000f51c: 0a000002 beq 3000f52c <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; 3000f520: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED 3000f524: e080010a add r0, r0, sl, lsl #2 <== NOT EXECUTED 3000f528: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 3000f52c: e3a00000 mov r0, #0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } 3000f530: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED 3000f534: 3001d731 .word 0x3001d731 3000f538: 3001ce68 .word 0x3001ce68 3000f53c: 3001d777 .word 0x3001d777 3000f540: 3001d781 .word 0x3001d781 3000f544: 3001e250 .word 0x3001e250 3000fe48 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 3000fe48: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 3000fe4c: e2504000 subs r4, r0, #0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { 3000fe50: e24dd014 sub sp, sp, #20 3000fe54: e1a06003 mov r6, r3 3000fe58: e1a08001 mov r8, r1 3000fe5c: e1a09002 mov r9, r2 3000fe60: e59d7038 ldr r7, [sp, #56] ; 0x38 /* * Perform internal consistency checks */ assert( the_jnode ); 3000fe64: 059f0268 ldreq r0, [pc, #616] ; 300100d4 3000fe68: 03a01f93 moveq r1, #588 ; 0x24c 3000fe6c: 059f2264 ldreq r2, [pc, #612] ; 300100d8 3000fe70: 059f3264 ldreq r3, [pc, #612] ; 300100dc 3000fe74: 0a000007 beq 3000fe98 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || 3000fe78: e594304c ldr r3, [r4, #76] ; 0x4c 3000fe7c: e2432005 sub r2, r3, #5 3000fe80: e3520001 cmp r2, #1 3000fe84: 9a000004 bls 3000fe9c 3000fe88: e59f0244 ldr r0, [pc, #580] ; 300100d4 <== NOT EXECUTED 3000fe8c: e59f124c ldr r1, [pc, #588] ; 300100e0 <== NOT EXECUTED 3000fe90: e59f2240 ldr r2, [pc, #576] ; 300100d8 <== NOT EXECUTED 3000fe94: e59f3248 ldr r3, [pc, #584] ; 300100e4 <== NOT EXECUTED 3000fe98: ebfff644 bl 3000d7b0 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); 3000fe9c: e3560000 cmp r6, #0 3000fea0: 059f022c ldreq r0, [pc, #556] ; 300100d4 3000fea4: 059f123c ldreq r1, [pc, #572] ; 300100e8 3000fea8: 059f2228 ldreq r2, [pc, #552] ; 300100d8 3000feac: 059f3238 ldreq r3, [pc, #568] ; 300100ec 3000feb0: 0afffff8 beq 3000fe98 /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) 3000feb4: e3570000 cmp r7, #0 3000feb8: 1a000004 bne 3000fed0 rtems_set_errno_and_return_minus_one( EINVAL ); 3000febc: eb000333 bl 30010b90 <__errno> <== NOT EXECUTED 3000fec0: e3a03016 mov r3, #22 <== NOT EXECUTED 3000fec4: e5803000 str r3, [r0] <== NOT EXECUTED 3000fec8: e3e07000 mvn r7, #0 <== NOT EXECUTED 3000fecc: ea00007d b 300100c8 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { 3000fed0: e3530006 cmp r3, #6 3000fed4: 1a000012 bne 3000ff24 unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) 3000fed8: e2843050 add r3, r4, #80 ; 0x50 <== NOT EXECUTED 3000fedc: e893000c ldm r3, {r2, r3} <== NOT EXECUTED 3000fee0: e1a00002 mov r0, r2 <== NOT EXECUTED 3000fee4: e1a01003 mov r1, r3 <== NOT EXECUTED 3000fee8: e3a0c000 mov ip, #0 <== NOT EXECUTED 3000feec: e0500008 subs r0, r0, r8 <== NOT EXECUTED 3000fef0: e0c11009 sbc r1, r1, r9 <== NOT EXECUTED 3000fef4: e15c0001 cmp ip, r1 <== NOT EXECUTED * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; 3000fef8: e594c058 ldr ip, [r4, #88] ; 0x58 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) 3000fefc: ca000002 bgt 3000ff0c <== NOT EXECUTED 3000ff00: 1a000002 bne 3000ff10 <== NOT EXECUTED 3000ff04: e1570000 cmp r7, r0 <== NOT EXECUTED 3000ff08: 9a000000 bls 3000ff10 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; 3000ff0c: e0687002 rsb r7, r8, r2 <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); 3000ff10: e08c1008 add r1, ip, r8 <== NOT EXECUTED 3000ff14: e1a00006 mov r0, r6 <== NOT EXECUTED 3000ff18: e1a02007 mov r2, r7 <== NOT EXECUTED 3000ff1c: eb000529 bl 300113c8 <== NOT EXECUTED 3000ff20: ea000063 b 300100b4 <== 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 ) 3000ff24: e5943054 ldr r3, [r4, #84] ; 0x54 3000ff28: e3a02000 mov r2, #0 3000ff2c: e1520003 cmp r2, r3 3000ff30: 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; 3000ff34: e1a03001 mov r3, r1 if ( last_byte > the_jnode->info.file.size ) 3000ff38: e0872001 add r2, r7, r1 3000ff3c: ca000004 bgt 3000ff54 3000ff40: 1a000001 bne 3000ff4c 3000ff44: e1520005 cmp r2, r5 3000ff48: 8a000001 bhi 3000ff54 3000ff4c: e1a05007 mov r5, r7 <== NOT EXECUTED 3000ff50: ea000000 b 3000ff58 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; 3000ff54: e0635005 rsb r5, r3, r5 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 3000ff58: e59f3190 ldr r3, [pc, #400] ; 300100f0 3000ff5c: e1a00008 mov r0, r8 3000ff60: e593a000 ldr sl, [r3] 3000ff64: e1a01009 mov r1, r9 3000ff68: e1a0b00a mov fp, sl 3000ff6c: e1a0cfcb asr ip, fp, #31 3000ff70: e1a0300c mov r3, ip 3000ff74: e1a0200b mov r2, fp 3000ff78: e58dc000 str ip, [sp] 3000ff7c: eb002ce3 bl 3001b310 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 3000ff80: e59dc000 ldr ip, [sp] /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 3000ff84: e1a07000 mov r7, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 3000ff88: e1a01009 mov r1, r9 3000ff8c: e1a00008 mov r0, r8 3000ff90: e1a0200b mov r2, fp 3000ff94: e1a0300c mov r3, ip 3000ff98: eb002bb2 bl 3001ae68 <__divdi3> if ( start_offset ) { 3000ff9c: 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; 3000ffa0: e1a08000 mov r8, r0 if ( start_offset ) { 3000ffa4: 058d6008 streq r6, [sp, #8] 3000ffa8: 01a09007 moveq r9, r7 3000ffac: 0a000013 beq 30010000 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 ); 3000ffb0: e1a00004 mov r0, r4 3000ffb4: e1a01008 mov r1, r8 3000ffb8: e3a02000 mov r2, #0 3000ffbc: ebfffcdd bl 3000f338 assert( block_ptr ); 3000ffc0: e3500000 cmp r0, #0 3000ffc4: 059f0108 ldreq r0, [pc, #264] ; 300100d4 3000ffc8: 059f1124 ldreq r1, [pc, #292] ; 300100f4 3000ffcc: 0a000030 beq 30010094 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); 3000ffd0: 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; 3000ffd4: e067900a rsb r9, r7, sl 3000ffd8: e1550009 cmp r5, r9 3000ffdc: 31a09005 movcc r9, 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 ); 3000ffe0: e1a00006 mov r0, r6 3000ffe4: e0811007 add r1, r1, r7 3000ffe8: e1a02009 mov r2, r9 dest += to_copy; 3000ffec: e0866009 add r6, r6, r9 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 ); 3000fff0: eb0004f4 bl 300113c8 dest += to_copy; block++; 3000fff4: e2888001 add r8, r8, #1 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); dest += to_copy; 3000fff8: e58d6008 str r6, [sp, #8] block++; my_length -= to_copy; 3000fffc: e0695005 rsb r5, r9, r5 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 30010000: e59f30e8 ldr r3, [pc, #232] ; 300100f0 30010004: e3a06000 mov r6, #0 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010008: e1a0b003 mov fp, r3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 3001000c: e593a000 ldr sl, [r3] while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010010: ea00000e b 30010050 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30010014: e1a00004 mov r0, r4 30010018: e1a01008 mov r1, r8 3001001c: e3a02000 mov r2, #0 30010020: ebfffcc4 bl 3000f338 assert( block_ptr ); 30010024: e2503000 subs r3, r0, #0 * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30010028: e086600a add r6, r6, sl assert( block_ptr ); 3001002c: 059f00a0 ldreq r0, [pc, #160] ; 300100d4 30010030: 059f10c0 ldreq r1, [pc, #192] ; 300100f8 30010034: 0a000016 beq 30010094 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); 30010038: e59d0004 ldr r0, [sp, #4] 3001003c: e5931000 ldr r1, [r3] 30010040: e1a0200a mov r2, sl 30010044: eb0004df bl 300113c8 dest += to_copy; block++; 30010048: e2888001 add r8, r8, #1 my_length -= to_copy; 3001004c: e06a5005 rsb r5, sl, r5 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010050: e59b3000 ldr r3, [fp] if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); dest += to_copy; block++; my_length -= to_copy; 30010054: e0867009 add r7, r6, r9 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010058: e1550003 cmp r5, r3 * are between the offset and the end of the file will result in * reading the data between offset and the end of the file (truncated * read). */ MEMFILE_STATIC ssize_t IMFS_memfile_read( 3001005c: e59d3008 ldr r3, [sp, #8] 30010060: e0833006 add r3, r3, r6 30010064: e58d3004 str r3, [sp, #4] /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 30010068: 2affffe9 bcs 30010014 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { 3001006c: e3550000 cmp r5, #0 30010070: 0a00000f beq 300100b4 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 30010074: e1a01008 mov r1, r8 30010078: e1a00004 mov r0, r4 3001007c: e3a02000 mov r2, #0 30010080: ebfffcac bl 3000f338 assert( block_ptr ); 30010084: e2503000 subs r3, r0, #0 30010088: 1a000004 bne 300100a0 3001008c: e59f0040 ldr r0, [pc, #64] ; 300100d4 <== NOT EXECUTED 30010090: e59f1064 ldr r1, [pc, #100] ; 300100fc <== NOT EXECUTED 30010094: e59f203c ldr r2, [pc, #60] ; 300100d8 <== NOT EXECUTED 30010098: e59f3060 ldr r3, [pc, #96] ; 30010100 <== NOT EXECUTED 3001009c: eaffff7d b 3000fe98 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); 300100a0: e59d0004 ldr r0, [sp, #4] 300100a4: e5931000 ldr r1, [r3] 300100a8: e1a02005 mov r2, r5 300100ac: eb0004c5 bl 300113c8 copied += my_length; 300100b0: e0857007 add r7, r5, r7 } IMFS_update_atime( the_jnode ); 300100b4: e28d000c add r0, sp, #12 300100b8: e3a01000 mov r1, #0 300100bc: ebffca80 bl 30002ac4 300100c0: e59d300c ldr r3, [sp, #12] 300100c4: e5843040 str r3, [r4, #64] ; 0x40 return copied; } 300100c8: e1a00007 mov r0, r7 300100cc: e28dd014 add sp, sp, #20 300100d0: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} 300100d4: 3001d731 .word 0x3001d731 300100d8: 3001cf18 .word 0x3001cf18 300100dc: 3001d777 .word 0x3001d777 300100e0: 00000251 .word 0x00000251 300100e4: 3001d7eb .word 0x3001d7eb 300100e8: 0000025a .word 0x0000025a 300100ec: 3001d836 .word 0x3001d836 300100f0: 3001e250 .word 0x3001e250 300100f4: 00000296 .word 0x00000296 300100f8: 000002a7 .word 0x000002a7 300100fc: 000002b9 .word 0x000002b9 30010100: 3001d7b1 .word 0x3001d7b1 3000f610 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { 3000f610: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 3000f614: e2504000 subs r4, r0, #0 3000f618: 059f012c ldreq r0, [pc, #300] ; 3000f74c 3000f61c: 059f112c ldreq r1, [pc, #300] ; 3000f750 3000f620: 059f212c ldreq r2, [pc, #300] ; 3000f754 3000f624: 059f312c ldreq r3, [pc, #300] ; 3000f758 3000f628: 0a000006 beq 3000f648 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 3000f62c: e594304c ldr r3, [r4, #76] ; 0x4c 3000f630: e3530005 cmp r3, #5 3000f634: 0a000004 beq 3000f64c 3000f638: e59f010c ldr r0, [pc, #268] ; 3000f74c <== NOT EXECUTED 3000f63c: e59f1118 ldr r1, [pc, #280] ; 3000f75c <== NOT EXECUTED 3000f640: e59f210c ldr r2, [pc, #268] ; 3000f754 <== NOT EXECUTED 3000f644: e59f3114 ldr r3, [pc, #276] ; 3000f760 <== NOT EXECUTED 3000f648: ebfff858 bl 3000d7b0 <__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; 3000f64c: e59f2110 ldr r2, [pc, #272] ; 3000f764 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 3000f650: 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; 3000f654: e5925000 ldr r5, [r2] * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 3000f658: 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; 3000f65c: e1a05125 lsr r5, r5, #2 */ info = &the_jnode->info.file; if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); 3000f660: 12840058 addne r0, r4, #88 ; 0x58 3000f664: 11a01005 movne r1, r5 3000f668: 1bffffb6 blne 3000f548 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 3000f66c: e594305c ldr r3, [r4, #92] ; 0x5c 3000f670: e3530000 cmp r3, #0 3000f674: 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; 3000f67c: 1a000008 bne 3000f6a4 3000f680: ea00000d b 3000f6bc } if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { 3000f684: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED 3000f688: e1a00106 lsl r0, r6, #2 <== NOT EXECUTED 3000f68c: e7932106 ldr r2, [r3, r6, lsl #2] <== NOT EXECUTED 3000f690: e3520000 cmp r2, #0 <== NOT EXECUTED memfile_free_blocks_in_table( 3000f694: 10830000 addne r0, r3, r0 <== NOT EXECUTED 3000f698: 11a01005 movne r1, r5 <== NOT EXECUTED 3000f69c: 1bffffa9 blne 3000f548 <== 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 ); 3000f6b0: e284005c add r0, r4, #92 ; 0x5c <== NOT EXECUTED 3000f6b4: e1a01005 mov r1, r5 <== NOT EXECUTED 3000f6b8: ebffffa2 bl 3000f548 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 3000f6bc: e5943060 ldr r3, [r4, #96] ; 0x60 3000f6c0: e3530000 cmp r3, #0 3000f6c4: 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; 3000f6cc: 1a000016 bne 3000f72c 3000f6d0: ea00001b b 3000f744 } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 3000f6d4: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; 3000f6d8: e1a09106 lsl r9, r6, #2 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; 3000f6dc: e7937106 ldr r7, [r3, r6, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ 3000f6e0: e3570000 cmp r7, #0 <== NOT EXECUTED 3000f6e4: 0a000013 beq 3000f738 <== NOT EXECUTED 3000f6e8: e3a08000 mov r8, #0 <== NOT EXECUTED 3000f6ec: ea000006 b 3000f70c <== 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( 3000f718: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED 3000f71c: e1a01005 mov r1, r5 <== NOT EXECUTED 3000f720: e0800009 add r0, r0, r9 <== NOT EXECUTED 3000f724: ebffff87 bl 3000f548 <== 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( 3000f738: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED 3000f73c: e1a01005 mov r1, r5 <== NOT EXECUTED 3000f740: ebffff80 bl 3000f548 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } 3000f744: e3a00000 mov r0, #0 3000f748: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} 3000f74c: 3001d731 .word 0x3001d731 3000f750: 000001ee .word 0x000001ee 3000f754: 3001cec4 .word 0x3001cec4 3000f758: 3001d777 .word 0x3001d777 3000f75c: 000001f2 .word 0x000001f2 3000f760: 3001d781 .word 0x3001d781 3000f764: 3001e250 .word 0x3001e250 3000f5c4 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { 3000f5c4: 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 ); 3000f5c8: e3a02000 mov r2, #0 <== NOT EXECUTED 3000f5cc: ebffff59 bl 3000f338 <== NOT EXECUTED assert( block_ptr ); 3000f5d0: e2503000 subs r3, r0, #0 <== NOT EXECUTED 3000f5d4: 059f0024 ldreq r0, [pc, #36] ; 3000f600 <== NOT EXECUTED 3000f5d8: 059f1024 ldreq r1, [pc, #36] ; 3000f604 <== NOT EXECUTED 3000f5dc: 059f2024 ldreq r2, [pc, #36] ; 3000f608 <== NOT EXECUTED 3000f5e0: 059f3024 ldreq r3, [pc, #36] ; 3000f60c <== NOT EXECUTED 3000f5e4: 0bfff871 bleq 3000d7b0 <__assert_func> <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; 3000f5e8: 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; 3000f5ec: e5930000 ldr r0, [r3] <== NOT EXECUTED *block_ptr = 0; 3000f5f0: e5832000 str r2, [r3] <== NOT EXECUTED memfile_free_block( ptr ); 3000f5f4: ebffff3a bl 3000f2e4 <== NOT EXECUTED } return 1; } 3000f5f8: e3a00001 mov r0, #1 <== NOT EXECUTED 3000f5fc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 3000f600: 3001d731 .word 0x3001d731 3000f604: 00000196 .word 0x00000196 3000f608: 3001cea8 .word 0x3001cea8 3000f60c: 3001d7b1 .word 0x3001d7b1 3000fb20 : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 3000fb20: e92d4ff7 push {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); 3000fb24: e2504000 subs r4, r0, #0 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { 3000fb28: e1a07001 mov r7, r1 3000fb2c: e1a08002 mov r8, r2 3000fb30: e1a06003 mov r6, r3 3000fb34: e59d5030 ldr r5, [sp, #48] ; 0x30 /* * Perform internal consistency checks */ assert( the_jnode ); 3000fb38: 059f0204 ldreq r0, [pc, #516] ; 3000fd44 3000fb3c: 059f1204 ldreq r1, [pc, #516] ; 3000fd48 3000fb40: 059f2204 ldreq r2, [pc, #516] ; 3000fd4c 3000fb44: 059f3204 ldreq r3, [pc, #516] ; 3000fd50 3000fb48: 0a000006 beq 3000fb68 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); 3000fb4c: e594304c ldr r3, [r4, #76] ; 0x4c 3000fb50: e3530005 cmp r3, #5 3000fb54: 0a000004 beq 3000fb6c 3000fb58: e59f01e4 ldr r0, [pc, #484] ; 3000fd44 <== NOT EXECUTED 3000fb5c: e59f11f0 ldr r1, [pc, #496] ; 3000fd54 <== NOT EXECUTED 3000fb60: e59f21e4 ldr r2, [pc, #484] ; 3000fd4c <== NOT EXECUTED 3000fb64: e59f31ec ldr r3, [pc, #492] ; 3000fd58 <== NOT EXECUTED 3000fb68: ebfff710 bl 3000d7b0 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); 3000fb6c: e3560000 cmp r6, #0 3000fb70: 059f01cc ldreq r0, [pc, #460] ; 3000fd44 3000fb74: 059f11e0 ldreq r1, [pc, #480] ; 3000fd5c 3000fb78: 059f21cc ldreq r2, [pc, #460] ; 3000fd4c 3000fb7c: 059f31dc ldreq r3, [pc, #476] ; 3000fd60 3000fb80: 0afffff8 beq 3000fb68 /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) 3000fb84: e3550000 cmp r5, #0 3000fb88: 1a000002 bne 3000fb98 rtems_set_errno_and_return_minus_one( EINVAL ); 3000fb8c: eb0003ff bl 30010b90 <__errno> <== NOT EXECUTED 3000fb90: e3a03016 mov r3, #22 <== NOT EXECUTED 3000fb94: ea00000e b 3000fbd4 <== 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 ) { 3000fb98: e5943054 ldr r3, [r4, #84] ; 0x54 3000fb9c: e0851001 add r1, r5, r1 3000fba0: e3530000 cmp r3, #0 3000fba4: ba000003 blt 3000fbb8 3000fba8: 1a00000c bne 3000fbe0 3000fbac: e5943050 ldr r3, [r4, #80] ; 0x50 3000fbb0: e1530001 cmp r3, r1 3000fbb4: 2a000009 bcs 3000fbe0 status = IMFS_memfile_extend( the_jnode, last_byte ); 3000fbb8: e1a00004 mov r0, r4 3000fbbc: e3a02000 mov r2, #0 3000fbc0: ebffff40 bl 3000f8c8 if ( status ) 3000fbc4: e3500000 cmp r0, #0 3000fbc8: 0a000004 beq 3000fbe0 rtems_set_errno_and_return_minus_one( ENOSPC ); 3000fbcc: eb0003ef bl 30010b90 <__errno> <== NOT EXECUTED 3000fbd0: e3a0301c mov r3, #28 <== NOT EXECUTED 3000fbd4: e5803000 str r3, [r0] <== NOT EXECUTED 3000fbd8: e3e08000 mvn r8, #0 <== NOT EXECUTED 3000fbdc: ea000056 b 3000fd3c <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 3000fbe0: e59f317c ldr r3, [pc, #380] ; 3000fd64 3000fbe4: e1a00007 mov r0, r7 3000fbe8: e5939000 ldr r9, [r3] 3000fbec: e1a01008 mov r1, r8 3000fbf0: e1a0b009 mov fp, r9 3000fbf4: e1a0cfcb asr ip, fp, #31 3000fbf8: e1a0300c mov r3, ip 3000fbfc: e1a0200b mov r2, fp 3000fc00: e58dc000 str ip, [sp] 3000fc04: eb002dc1 bl 3001b310 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 3000fc08: e59dc000 ldr ip, [sp] /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; 3000fc0c: e1a0a000 mov sl, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; 3000fc10: e1a01008 mov r1, r8 3000fc14: e1a00007 mov r0, r7 3000fc18: e1a0200b mov r2, fp 3000fc1c: e1a0300c mov r3, ip 3000fc20: eb002c90 bl 3001ae68 <__divdi3> if ( start_offset ) { 3000fc24: e35a0000 cmp sl, #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; 3000fc28: e1a07000 mov r7, r0 if ( start_offset ) { 3000fc2c: 01a0800a moveq r8, sl 3000fc30: 0a000012 beq 3000fc80 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 ); 3000fc34: e1a01007 mov r1, r7 3000fc38: e1a00004 mov r0, r4 3000fc3c: e3a02000 mov r2, #0 3000fc40: ebfffdbc bl 3000f338 assert( block_ptr ); 3000fc44: e3500000 cmp r0, #0 3000fc48: 059f00f4 ldreq r0, [pc, #244] ; 3000fd44 3000fc4c: 03a01fc7 moveq r1, #796 ; 0x31c 3000fc50: 0a00002b beq 3000fd04 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 ); 3000fc54: 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; 3000fc58: e06a8009 rsb r8, sl, r9 3000fc5c: e1580005 cmp r8, r5 3000fc60: 21a08005 movcs r8, 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 ); 3000fc64: e1a01006 mov r1, r6 3000fc68: e080000a add r0, r0, sl 3000fc6c: e1a02008 mov r2, r8 3000fc70: eb0005d4 bl 300113c8 src += to_copy; 3000fc74: e0866008 add r6, r6, r8 block++; 3000fc78: e2877001 add r7, r7, #1 my_length -= to_copy; 3000fc7c: e0685005 rsb r5, r8, r5 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 3000fc80: e59f30dc ldr r3, [pc, #220] ; 3000fd64 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 3000fc84: e1a09003 mov r9, r3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; 3000fc88: e593a000 ldr sl, [r3] while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 3000fc8c: ea00000f b 3000fcd0 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 3000fc90: e1a00004 mov r0, r4 3000fc94: e1a01007 mov r1, r7 3000fc98: e3a02000 mov r2, #0 3000fc9c: ebfffda5 bl 3000f338 assert( block_ptr ); 3000fca0: e3500000 cmp r0, #0 3000fca4: 059f0098 ldreq r0, [pc, #152] ; 3000fd44 3000fca8: 03a01e33 moveq r1, #816 ; 0x330 3000fcac: 0a000014 beq 3000fd04 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 ); 3000fcb0: e1a01006 mov r1, r6 3000fcb4: e5900000 ldr r0, [r0] 3000fcb8: e1a0200a mov r2, sl 3000fcbc: eb0005c1 bl 300113c8 src += to_copy; 3000fcc0: e086600a add r6, r6, sl block++; 3000fcc4: e2877001 add r7, r7, #1 my_length -= to_copy; 3000fcc8: 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( 3000fccc: e088800a add r8, r8, sl /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { 3000fcd0: e5993000 ldr r3, [r9] 3000fcd4: e1550003 cmp r5, r3 3000fcd8: 2affffec bcs 3000fc90 */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { 3000fcdc: e3550000 cmp r5, #0 3000fce0: 0a00000f beq 3000fd24 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); 3000fce4: e1a01007 mov r1, r7 3000fce8: e1a00004 mov r0, r4 3000fcec: e3a02000 mov r2, #0 3000fcf0: ebfffd90 bl 3000f338 assert( block_ptr ); 3000fcf4: e3500000 cmp r0, #0 3000fcf8: 1a000004 bne 3000fd10 3000fcfc: e59f0040 ldr r0, [pc, #64] ; 3000fd44 <== NOT EXECUTED 3000fd00: e59f1060 ldr r1, [pc, #96] ; 3000fd68 <== NOT EXECUTED 3000fd04: e59f2040 ldr r2, [pc, #64] ; 3000fd4c <== NOT EXECUTED 3000fd08: e59f305c ldr r3, [pc, #92] ; 3000fd6c <== NOT EXECUTED 3000fd0c: eaffff95 b 3000fb68 <== 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 ); 3000fd10: e5900000 ldr r0, [r0] 3000fd14: e1a01006 mov r1, r6 3000fd18: e1a02005 mov r2, r5 3000fd1c: eb0005a9 bl 300113c8 my_length = 0; copied += to_copy; 3000fd20: e0888005 add r8, r8, r5 } IMFS_mtime_ctime_update( the_jnode ); 3000fd24: e28d0004 add r0, sp, #4 3000fd28: e3a01000 mov r1, #0 3000fd2c: ebffcb64 bl 30002ac4 3000fd30: e59d3004 ldr r3, [sp, #4] 3000fd34: e5843048 str r3, [r4, #72] ; 0x48 3000fd38: e5843044 str r3, [r4, #68] ; 0x44 return copied; } 3000fd3c: e1a00008 mov r0, r8 3000fd40: e8bd8ffe pop {r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} 3000fd44: 3001d731 .word 0x3001d731 3000fd48: 000002e3 .word 0x000002e3 3000fd4c: 3001cf04 .word 0x3001cf04 3000fd50: 3001d777 .word 0x3001d777 3000fd54: 000002e7 .word 0x000002e7 3000fd58: 3001d781 .word 0x3001d781 3000fd5c: 000002ef .word 0x000002ef 3000fd60: 3001d7bb .word 0x3001d7bb 3000fd64: 3001e250 .word 0x3001e250 3000fd68: 00000346 .word 0x00000346 3000fd6c: 3001d7b1 .word 0x3001d7b1 3000841c : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { 3000841c: e92d40f0 push {r4, r5, r6, r7, lr} 30008420: e24dd040 sub sp, sp, #64 ; 0x40 30008424: e1a04001 mov r4, r1 30008428: e1a07000 mov r7, r0 3000842c: e1a06002 mov r6, r2 30008430: 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 ); 30008434: eb00107e bl 3000c634 30008438: e28d303c add r3, sp, #60 ; 0x3c 3000843c: e1a01000 mov r1, r0 30008440: e28d2004 add r2, sp, #4 30008444: e1a00007 mov r0, r7 30008448: ebffff8a bl 30008278 /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) 3000844c: e2043a0f and r3, r4, #61440 ; 0xf000 30008450: e3530901 cmp r3, #16384 ; 0x4000 30008454: 0a00000e beq 30008494 type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) 30008458: e3530902 cmp r3, #32768 ; 0x8000 3000845c: 03a01005 moveq r1, #5 30008460: 0a00000c beq 30008498 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { 30008464: e3530a06 cmp r3, #24576 ; 0x6000 30008468: 13530a02 cmpne r3, #8192 ; 0x2000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); 3000846c: 058d6028 streq r6, [sp, #40] ; 0x28 30008470: 058d502c streq r5, [sp, #44] ; 0x2c 30008474: 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) ) { 30008478: 0a000006 beq 30008498 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) 3000847c: e3530a01 cmp r3, #4096 ; 0x1000 30008480: 03a01007 moveq r1, #7 30008484: 0a000003 beq 30008498 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); 30008488: eb000c78 bl 3000b670 <__errno> <== NOT EXECUTED 3000848c: e3a03016 mov r3, #22 <== NOT EXECUTED 30008490: ea00000b b 300084c4 <== NOT EXECUTED 30008494: 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( 30008498: e28dc028 add ip, sp, #40 ; 0x28 3000849c: e59d0054 ldr r0, [sp, #84] ; 0x54 300084a0: e1a03004 mov r3, r4 300084a4: e28d2004 add r2, sp, #4 300084a8: e58dc000 str ip, [sp] 300084ac: eb0008f4 bl 3000a884 new_name, mode, &info ); if ( !new_node ) 300084b0: e3500000 cmp r0, #0 300084b4: 13a00000 movne r0, #0 300084b8: 1a000003 bne 300084cc rtems_set_errno_and_return_minus_one( ENOMEM ); 300084bc: eb000c6b bl 3000b670 <__errno> <== NOT EXECUTED 300084c0: e3a0300c mov r3, #12 <== NOT EXECUTED 300084c4: e5803000 str r3, [r0] <== NOT EXECUTED 300084c8: e3e00000 mvn r0, #0 <== NOT EXECUTED return 0; } 300084cc: e28dd040 add sp, sp, #64 ; 0x40 300084d0: 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: eb003a33 bl 30010b90 <__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: eb00350a bl 300100d0 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: eb0034b5 bl 3000ffbc 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: eb00348d bl 3000ff4c (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: eb003487 bl 3000ff4c (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: eb0034e3 bl 300100d0 <== 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: eb0034da bl 300100d0 <== 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: eb0034d3 bl 300100d0 <== 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: eb00346b bl 3000ff4c <== 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: ea003b92 b 30011c00 30002db4: 30020b44 .word 0x30020b44 30002db8: 3001f8a4 .word 0x3001f8a4 30002dbc: 30020b8d .word 0x30020b8d 30002dc0: 30021b68 .word 0x30021b68 30002dc4: 30020b97 .word 0x30020b97 30002dc8: 30020baa .word 0x30020baa 30002dcc: 30020bb9 .word 0x30020bb9 30002dd0: 30020bc5 .word 0x30020bc5 30002dd4: 30020509 .word 0x30020509 30002dd8: 30020bd9 .word 0x30020bd9 30002ddc: 30020bec .word 0x30020bec 30002de0: 30020d7d .word 0x30020d7d 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: eb003a22 bl 30010b90 <__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: eb003dff bl 30011b54 <== 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: 1b00119d blne 300069dc <_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: eb00118d bl 300069b0 <_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 30008588 : ) { IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; 30008588: e5903000 ldr r3, [r0] int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { 3000858c: e92d4800 push {fp, lr} IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { 30008590: e593204c ldr r2, [r3, #76] ; 0x4c 30008594: e2422002 sub r2, r2, #2 30008598: e3520005 cmp r2, #5 3000859c: 979ff102 ldrls pc, [pc, r2, lsl #2] 300085a0: ea000012 b 300085f0 <== NOT EXECUTED 300085a4: 300085bc .word 0x300085bc <== NOT EXECUTED 300085a8: 300085f0 .word 0x300085f0 <== NOT EXECUTED 300085ac: 300085dc .word 0x300085dc <== NOT EXECUTED 300085b0: 300085d0 .word 0x300085d0 <== NOT EXECUTED 300085b4: 300085d0 .word 0x300085d0 <== NOT EXECUTED 300085b8: 300085dc .word 0x300085dc <== NOT EXECUTED case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); 300085bc: e5930054 ldr r0, [r3, #84] ; 0x54 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; 300085c0: e5932050 ldr r2, [r3, #80] ; 0x50 300085c4: e581001c str r0, [r1, #28] 300085c8: e5812018 str r2, [r1, #24] break; 300085cc: ea00000c b 30008604 case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; 300085d0: e283c050 add ip, r3, #80 ; 0x50 300085d4: e89c1800 ldm ip, {fp, ip} 300085d8: ea000001 b 300085e4 case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; 300085dc: e3a0b000 mov fp, #0 <== NOT EXECUTED 300085e0: e3a0c000 mov ip, #0 <== NOT EXECUTED 300085e4: e581b020 str fp, [r1, #32] 300085e8: e581c024 str ip, [r1, #36] ; 0x24 break; 300085ec: ea000004 b 30008604 default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 300085f0: eb000c1e bl 3000b670 <__errno> <== NOT EXECUTED 300085f4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300085f8: e5803000 str r3, [r0] <== NOT EXECUTED 300085fc: e3e00000 mvn r0, #0 <== NOT EXECUTED 30008600: 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; 30008604: 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; 30008608: e1d303b4 ldrh r0, [r3, #52] ; 0x34 buf->st_ino = the_jnode->st_ino; 3000860c: 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; 30008610: 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; 30008614: 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; 30008618: e5812028 str r2, [r1, #40] ; 0x28 buf->st_mtime = the_jnode->stat_mtime; 3000861c: 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; 30008620: 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; 30008624: 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; 30008628: e1c1c1b2 strh ip, [r1, #18] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 3000862c: 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; 30008630: 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; 30008634: e1d333be ldrh r3, [r3, #62] ; 0x3e default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; 30008638: 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; 3000863c: 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; 30008640: 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; 30008644: e3a00000 mov r0, #0 return 0; } 30008648: 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: eb003dd0 bl 30011af4 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: eb002c6c bl 3000d57c /* * Duplicate link name */ info.sym_link.name = strdup(link_name); 300023c8: e1a00006 mov r0, r6 300023cc: eb003db4 bl 30011aa4 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: eb002950 bl 3000c93c 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: eb0039df bl 30010b90 <__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: eb0039cd bl 30010b90 <__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: eb00297a bl 3000ca78 /* * 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: eb00399e bl 30010b90 <__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: eb003998 bl 30010b90 <__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: eb001dcc bl 30008c30 /* * 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: 1b002a91 blne 3000bf98 * 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: eb000ebb bl 30005068 <_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: 0b000cf0 bleq 30004948 } } 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: eb001167 bl 30005b38 <_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: 30018408 .word 0x30018408 300015a8: 3001840c .word 0x3001840c 300015ac: 30018405 .word 0x30018405 300015b0: 30017d40 .word 0x30017d40 300015b4: 30017c98 .word 0x30017c98 300015b8: 300185b8 .word 0x300185b8 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: 159a60f0 ldrne r6, [sl, #240] ; 0xf0 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; 30003884: 128a40c0 addne r4, sl, #192 ; 0xc0 <== 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: 3005c8dc .word 0x3005c8dc 30003984: 3005f3c8 .word 0x3005f3c8 30003988: 30054cf3 .word 0x30054cf3 3000398c: 30054d00 .word 0x30054d00 30003990: 30054d0e .word 0x30054d0e 30003994: 30054d2c .word 0x30054d2c 30003998: 30054d39 .word 0x30054d39 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: e59640c4 ldr r4, [r6, #196] ; 0xc4 <== 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: e59610c0 ldr r1, [r6, #192] ; 0xc0 <== NOT EXECUTED ); printk( "task name string: %s\n", rtems_object_get_name(running->Object.id, sizeof(name), name) ); printk( 30003a70: e59620c4 ldr r2, [r6, #196] ; 0xc4 <== 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: eb0017fb bl 30009a90 <== NOT EXECUTED 30003aa0: 30054da0 .word 0x30054da0 30003aa4: 30054db0 .word 0x30054db0 30003aa8: 30054dcd .word 0x30054dcd 30003aac: 30054ddf .word 0x30054ddf 30003ab0: 30054df3 .word 0x30054df3 30003ab4: 30054e09 .word 0x30054e09 30003ab8: 30054e3a .word 0x30054e3a 30009350 <_CORE_mutex_Seize_interrupt_trylock>: { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 30009350: e59f3120 ldr r3, [pc, #288] ; 30009478 <_CORE_mutex_Seize_interrupt_trylock+0x128> executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 30009354: e3a02000 mov r2, #0 { Thread_Control *executing; /* disabled when you get here */ executing = _Thread_Executing; 30009358: e5933000 ldr r3, [r3] #if defined(__RTEMS_DO_NOT_INLINE_CORE_MUTEX_SEIZE__) int _CORE_mutex_Seize_interrupt_trylock( CORE_mutex_Control *the_mutex, ISR_Level *level_p ) { 3000935c: e52de004 push {lr} ; (str lr, [sp, #-4]!) executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; 30009360: e5832034 str r2, [r3, #52] ; 0x34 if ( !_CORE_mutex_Is_locked( the_mutex ) ) { 30009364: e590c050 ldr ip, [r0, #80] ; 0x50 30009368: e15c0002 cmp ip, r2 3000936c: 0a00002c beq 30009424 <_CORE_mutex_Seize_interrupt_trylock+0xd4> the_mutex->lock = CORE_MUTEX_LOCKED; 30009370: e5802050 str r2, [r0, #80] ; 0x50 the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 30009374: e593c008 ldr ip, [r3, #8] */ RTEMS_INLINE_ROUTINE bool _CORE_mutex_Is_inherit_priority( CORE_mutex_Attributes *the_attribute ) { return the_attribute->discipline == CORE_MUTEX_DISCIPLINES_PRIORITY_INHERIT; 30009378: e5902048 ldr r2, [r0, #72] ; 0x48 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; 3000937c: e580c060 str ip, [r0, #96] ; 0x60 the_mutex->nest_count = 1; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 30009380: e3520002 cmp r2, #2 executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; 30009384: e3a0c001 mov ip, #1 30009388: e580c054 str ip, [r0, #84] ; 0x54 executing = _Thread_Executing; executing->Wait.return_code = CORE_MUTEX_STATUS_SUCCESSFUL; if ( !_CORE_mutex_Is_locked( the_mutex ) ) { the_mutex->lock = CORE_MUTEX_LOCKED; the_mutex->holder = executing; 3000938c: e580305c str r3, [r0, #92] ; 0x5c the_mutex->holder_id = executing->Object.id; the_mutex->nest_count = 1; if ( _CORE_mutex_Is_inherit_priority( &the_mutex->Attributes ) || 30009390: 0a000001 beq 3000939c <_CORE_mutex_Seize_interrupt_trylock+0x4c> 30009394: e3520003 cmp r2, #3 30009398: 1a000004 bne 300093b0 <_CORE_mutex_Seize_interrupt_trylock+0x60> _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 3000939c: e593c01c ldr ip, [r3, #28] } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 300093a0: e3520003 cmp r2, #3 _Chain_Prepend_unprotected( &executing->lock_mutex, &the_mutex->queue.lock_queue ); the_mutex->queue.priority_before = executing->current_priority; #endif executing->resource_count++; 300093a4: e28c2001 add r2, ip, #1 300093a8: e583201c str r2, [r3, #28] } if ( !_CORE_mutex_Is_priority_ceiling( &the_mutex->Attributes ) ) { 300093ac: 0a000000 beq 300093b4 <_CORE_mutex_Seize_interrupt_trylock+0x64> _ISR_Enable( *level_p ); 300093b0: ea00002a b 30009460 <_CORE_mutex_Seize_interrupt_trylock+0x110> */ { Priority_Control ceiling; Priority_Control current; ceiling = the_mutex->Attributes.priority_ceiling; 300093b4: e590204c ldr r2, [r0, #76] ; 0x4c current = executing->current_priority; 300093b8: e593c014 ldr ip, [r3, #20] if ( current == ceiling ) { 300093bc: e15c0002 cmp ip, r2 300093c0: 1a000000 bne 300093c8 <_CORE_mutex_Seize_interrupt_trylock+0x78> _ISR_Enable( *level_p ); 300093c4: ea000025 b 30009460 <_CORE_mutex_Seize_interrupt_trylock+0x110> return 0; } if ( current > ceiling ) { 300093c8: 9a00000b bls 300093fc <_CORE_mutex_Seize_interrupt_trylock+0xac> rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; 300093cc: e59f30a8 ldr r3, [pc, #168] ; 3000947c <_CORE_mutex_Seize_interrupt_trylock+0x12c> 300093d0: e5932000 ldr r2, [r3] 300093d4: e2822001 add r2, r2, #1 300093d8: e5832000 str r2, [r3] 300093dc: e5913000 ldr r3, [r1] 300093e0: e129f003 msr CPSR_fc, r3 _Thread_Disable_dispatch(); _ISR_Enable( *level_p ); _Thread_Change_priority( 300093e4: e3a02000 mov r2, #0 300093e8: e590104c ldr r1, [r0, #76] ; 0x4c 300093ec: e590005c ldr r0, [r0, #92] ; 0x5c 300093f0: ebfff1e5 bl 30005b8c <_Thread_Change_priority> the_mutex->holder, the_mutex->Attributes.priority_ceiling, false ); _Thread_Enable_dispatch(); 300093f4: ebfff345 bl 30006110 <_Thread_Enable_dispatch> 300093f8: ea00001a b 30009468 <_CORE_mutex_Seize_interrupt_trylock+0x118> return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; 300093fc: e3a02006 mov r2, #6 30009400: e5832034 str r2, [r3, #52] ; 0x34 the_mutex->lock = CORE_MUTEX_UNLOCKED; the_mutex->nest_count = 0; /* undo locking above */ 30009404: e3a02000 mov r2, #0 30009408: e5802054 str r2, [r0, #84] ; 0x54 _Thread_Enable_dispatch(); return 0; } /* if ( current < ceiling ) */ { executing->Wait.return_code = CORE_MUTEX_STATUS_CEILING_VIOLATED; the_mutex->lock = CORE_MUTEX_UNLOCKED; 3000940c: e2822001 add r2, r2, #1 30009410: e5802050 str r2, [r0, #80] ; 0x50 the_mutex->nest_count = 0; /* undo locking above */ executing->resource_count--; /* undo locking above */ 30009414: e593201c ldr r2, [r3, #28] 30009418: e2422001 sub r2, r2, #1 3000941c: e583201c str r2, [r3, #28] _ISR_Enable( *level_p ); 30009420: ea00000e b 30009460 <_CORE_mutex_Seize_interrupt_trylock+0x110> /* * At this point, we know the mutex was not available. If this thread * is the thread that has locked the mutex, let's see if we are allowed * to nest access. */ if ( _Thread_Is_executing( the_mutex->holder ) ) { 30009424: e590205c ldr r2, [r0, #92] ; 0x5c 30009428: e1520003 cmp r2, r3 3000942c: 1a00000f bne 30009470 <_CORE_mutex_Seize_interrupt_trylock+0x120> switch ( the_mutex->Attributes.lock_nesting_behavior ) { 30009430: e5903040 ldr r3, [r0, #64] ; 0x40 30009434: e3530000 cmp r3, #0 30009438: 0a000002 beq 30009448 <_CORE_mutex_Seize_interrupt_trylock+0xf8> 3000943c: e3530001 cmp r3, #1 30009440: 1a00000a bne 30009470 <_CORE_mutex_Seize_interrupt_trylock+0x120> 30009444: ea000003 b 30009458 <_CORE_mutex_Seize_interrupt_trylock+0x108> <== NOT EXECUTED case CORE_MUTEX_NESTING_ACQUIRES: the_mutex->nest_count++; 30009448: e5903054 ldr r3, [r0, #84] ; 0x54 3000944c: e2833001 add r3, r3, #1 30009450: e5803054 str r3, [r0, #84] ; 0x54 _ISR_Enable( *level_p ); 30009454: ea000001 b 30009460 <_CORE_mutex_Seize_interrupt_trylock+0x110> return 0; case CORE_MUTEX_NESTING_IS_ERROR: executing->Wait.return_code = CORE_MUTEX_STATUS_NESTING_NOT_ALLOWED; 30009458: e3a03002 mov r3, #2 <== NOT EXECUTED 3000945c: e5823034 str r3, [r2, #52] ; 0x34 <== NOT EXECUTED 30009460: e5913000 ldr r3, [r1] 30009464: e129f003 msr CPSR_fc, r3 30009468: e3a00000 mov r0, #0 3000946c: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30009470: e3a00001 mov r0, #1 return _CORE_mutex_Seize_interrupt_trylock_body( the_mutex, level_p ); } 30009474: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30009478: 300187e0 .word 0x300187e0 3000947c: 3001872c .word 0x3001872c 3000666c <_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 ) { 3000666c: 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; 30006670: e5913014 ldr r3, [r1, #20] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); 30006674: e281503c add r5, r1, #60 ; 0x3c 30006678: e5815038 str r5, [r1, #56] ; 0x38 the_chain->permanent_null = NULL; 3000667c: e3a05000 mov r5, #0 the_chain->last = _Chain_Head(the_chain); 30006680: 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 ) ) 30006684: 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 ]; 30006688: 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; 3000668c: e581503c str r5, [r1, #60] ; 0x3c 30006690: e285500c add r5, r5, #12 the_chain->last = _Chain_Head(the_chain); 30006694: e581c040 str ip, [r1, #64] ; 0x40 block_state = the_thread_queue->state; 30006698: 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 ]; 3000669c: 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; 300066a0: 159f8154 ldrne r8, [pc, #340] ; 300067fc <_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 ) ) 300066a4: 1a000023 bne 30006738 <_Thread_queue_Enqueue_priority+0xcc> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; 300066a8: e28c8004 add r8, ip, #4 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 300066ac: e10f5000 mrs r5, CPSR 300066b0: e3854080 orr r4, r5, #128 ; 0x80 300066b4: 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; 300066b8: e3e06000 mvn r6, #0 300066bc: e59c4000 ldr r4, [ip] while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { 300066c0: ea00000b b 300066f4 <_Thread_queue_Enqueue_priority+0x88> search_priority = search_thread->current_priority; 300066c4: e5946014 ldr r6, [r4, #20] if ( priority <= search_priority ) 300066c8: e1530006 cmp r3, r6 300066cc: 9a00000a bls 300066fc <_Thread_queue_Enqueue_priority+0x90> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( 300066d0: e10fa000 mrs sl, CPSR 300066d4: e129f005 msr CPSR_fc, r5 300066d8: 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) ) { 300066dc: e594a010 ldr sl, [r4, #16] 300066e0: e117000a tst r7, sl 300066e4: 1a000001 bne 300066f0 <_Thread_queue_Enqueue_priority+0x84> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 300066e8: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED 300066ec: eaffffee b 300066ac <_Thread_queue_Enqueue_priority+0x40> <== NOT EXECUTED _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; 300066f0: 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 ) ) { 300066f4: e1540008 cmp r4, r8 300066f8: 1afffff1 bne 300066c4 <_Thread_queue_Enqueue_priority+0x58> } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 300066fc: 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 ) ) { 30006700: e1a0c005 mov ip, r5 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != 30006704: e3570001 cmp r7, #1 30006708: 1a000038 bne 300067f0 <_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 ) 3000670c: 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; 30006710: e3a03000 mov r3, #0 30006714: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) 30006718: 0a00002a beq 300067c8 <_Thread_queue_Enqueue_priority+0x15c> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; 3000671c: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 30006720: e5814000 str r4, [r1] the_node->previous = previous_node; 30006724: e5813004 str r3, [r1, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 30006728: 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; 3000672c: e5831000 str r1, [r3] search_node->previous = the_node; 30006730: e5841004 str r1, [r4, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); 30006734: ea000021 b 300067c0 <_Thread_queue_Enqueue_priority+0x154> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; 30006738: e5d86000 ldrb r6, [r8] 3000673c: e2866001 add r6, r6, #1 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 30006740: e10f5000 mrs r5, CPSR 30006744: e3854080 orr r4, r5, #128 ; 0x80 30006748: e129f004 msr CPSR_fc, r4 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; 3000674c: e59c4008 ldr r4, [ip, #8] while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { 30006750: ea00000b b 30006784 <_Thread_queue_Enqueue_priority+0x118> search_priority = search_thread->current_priority; 30006754: e5946014 ldr r6, [r4, #20] if ( priority >= search_priority ) 30006758: e1530006 cmp r3, r6 3000675c: 2a00000a bcs 3000678c <_Thread_queue_Enqueue_priority+0x120> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( 30006760: e10fa000 mrs sl, CPSR 30006764: e129f005 msr CPSR_fc, r5 30006768: 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) ) { 3000676c: e594a010 ldr sl, [r4, #16] 30006770: e117000a tst r7, sl 30006774: 1a000001 bne 30006780 <_Thread_queue_Enqueue_priority+0x114> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30006778: e129f005 msr CPSR_fc, r5 3000677c: eaffffed b 30006738 <_Thread_queue_Enqueue_priority+0xcc> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) 30006780: 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 ) ) { 30006784: e154000c cmp r4, ip 30006788: 1afffff1 bne 30006754 <_Thread_queue_Enqueue_priority+0xe8> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 3000678c: 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 ) ) { 30006790: e1a0c005 mov ip, r5 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != 30006794: e3570001 cmp r7, #1 30006798: 1a000014 bne 300067f0 <_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 ) 3000679c: 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; 300067a0: e3a03000 mov r3, #0 300067a4: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) 300067a8: 0a000006 beq 300067c8 <_Thread_queue_Enqueue_priority+0x15c> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; 300067ac: e5943000 ldr r3, [r4] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; 300067b0: e8810018 stm r1, {r3, r4} search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 300067b4: 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; 300067b8: e5841000 str r1, [r4] next_node->previous = the_node; 300067bc: e5831004 str r1, [r3, #4] 300067c0: e129f005 msr CPSR_fc, r5 300067c4: ea000007 b 300067e8 <_Thread_queue_Enqueue_priority+0x17c> 300067c8: 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; 300067cc: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; 300067d0: e5814000 str r4, [r1] the_node->previous = previous_node; 300067d4: e5813004 str r3, [r1, #4] previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; 300067d8: 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; 300067dc: e5831000 str r1, [r3] search_node->previous = the_node; 300067e0: e5841004 str r1, [r4, #4] 300067e4: e129f00c msr CPSR_fc, ip 300067e8: e3a00001 mov r0, #1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; 300067ec: 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; 300067f0: 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; 300067f4: e582c000 str ip, [r2] return the_thread_queue->sync_state; } 300067f8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 300067fc: 30017d3c .word 0x30017d3c 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: eb000fde bl 30017d84 <_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: eb000fd5 bl 30017d84 <_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: 3b000fa8 blcc 30017ce4 <_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: eb000229 bl 300146f4 <_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: eb000fee bl 30017e38 <_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: eb000d21 bl 300173b0 <_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: eb000a8d bl 30016974 <_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: eb001013 bl 30017f9c <_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: eb001011 bl 30017f9c <_Watchdog_Remove> 30013f54: eaffffa1 b 30013de0 <_Timer_server_Body+0x50> 30013f58: 30037c44 .word 0x30037c44 30013f5c: 30037b74 .word 0x30037b74 30013f60: 30037aec .word 0x30037aec 300203a8 <__kill>: #endif int __kill( pid_t pid, int sig ) { return 0; } 300203a8: e3a00000 mov r0, #0 <== NOT EXECUTED 300203ac: e12fff1e bx lr <== NOT EXECUTED 30016678 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); 30016678: e1a04000 mov r4, r0 3001667c: eb000228 bl 30016f24 <_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(); 30016680: ebffffe0 bl 30016608 rtems_shutdown_executive(status); 30016684: e1a00004 mov r0, r4 30016688: eb00003b bl 3001677c 3001668c: eafffffe b 3001668c <_exit+0x14> <== NOT EXECUTED 30032e18 <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); 30032e18: e1a00001 mov r0, r1 <== NOT EXECUTED 30032e1c: e1a01002 mov r1, r2 <== NOT EXECUTED 30032e20: e1a02003 mov r2, r3 <== NOT EXECUTED 30032e24: eaffff8b b 30032c58 <== NOT EXECUTED 30020388 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } 30020388: e3a00001 mov r0, #1 <== NOT EXECUTED 3002038c: e12fff1e bx lr <== NOT EXECUTED 30008964 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); 30008964: eaffffe8 b 3000890c <== NOT EXECUTED 300203a0 <_kill_r>: #include int _kill_r( struct _reent *ptr, pid_t pid, int sig ) { return 0; } 300203a0: e3a00000 mov r0, #0 <== NOT EXECUTED 300203a4: e12fff1e bx lr <== NOT EXECUTED 30022d2c <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); 30022d2c: e1a00001 mov r0, r1 <== NOT EXECUTED 30022d30: e1a01002 mov r1, r2 <== NOT EXECUTED 30022d34: eaffff6d b 30022af0 <== NOT EXECUTED 30022f28 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); 30022f28: e1a00001 mov r0, r1 <== NOT EXECUTED 30022f2c: e1a01002 mov r1, r2 <== NOT EXECUTED 30022f30: eaffffc4 b 30022e48 <== NOT EXECUTED 30016760 <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); 30016760: e1a00001 mov r0, r1 <== NOT EXECUTED 30016764: e1a01002 mov r1, r2 <== NOT EXECUTED 30016768: ea00000e b 300167a8 <== NOT EXECUTED 30051698 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 30051698: 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 ); 3005169c: e1a00001 mov r0, r1 <== NOT EXECUTED int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { 300516a0: e24dd044 sub sp, sp, #68 ; 0x44 <== NOT EXECUTED 300516a4: e1a05001 mov r5, r1 <== NOT EXECUTED 300516a8: 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 ); 300516ac: ebfece90 bl 300050f4 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) 300516b0: e2507000 subs r7, r0, #0 <== NOT EXECUTED 300516b4: 1a000015 bne 30051710 <_rename_r+0x78> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); 300516b8: e5d53000 ldrb r3, [r5] <== NOT EXECUTED 300516bc: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED 300516c0: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED 300516c4: 0a000001 beq 300516d0 <_rename_r+0x38> <== NOT EXECUTED 300516c8: e3530000 cmp r3, #0 <== NOT EXECUTED 300516cc: 1a000005 bne 300516e8 <_rename_r+0x50> <== NOT EXECUTED 300516d0: e59f3388 ldr r3, [pc, #904] ; 30051a60 <_rename_r+0x3c8> <== NOT EXECUTED 300516d4: e28dc018 add ip, sp, #24 <== NOT EXECUTED 300516d8: e593e000 ldr lr, [r3] <== NOT EXECUTED 300516dc: e3a04000 mov r4, #0 <== NOT EXECUTED 300516e0: e28ee018 add lr, lr, #24 <== NOT EXECUTED 300516e4: ea000004 b 300516fc <_rename_r+0x64> <== NOT EXECUTED 300516e8: e59f3370 ldr r3, [pc, #880] ; 30051a60 <_rename_r+0x3c8> <== NOT EXECUTED 300516ec: e28dc018 add ip, sp, #24 <== NOT EXECUTED 300516f0: e593e000 ldr lr, [r3] <== NOT EXECUTED 300516f4: e1a04007 mov r4, r7 <== NOT EXECUTED 300516f8: e28ee004 add lr, lr, #4 <== NOT EXECUTED 300516fc: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30051700: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30051704: e59e3000 ldr r3, [lr] <== NOT EXECUTED 30051708: e58c3000 str r3, [ip] <== NOT EXECUTED 3005170c: ea000009 b 30051738 <_rename_r+0xa0> <== NOT EXECUTED else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, 30051710: e3a0c000 mov ip, #0 <== NOT EXECUTED 30051714: e1a00005 mov r0, r5 <== NOT EXECUTED 30051718: e1a01007 mov r1, r7 <== NOT EXECUTED 3005171c: e3a02002 mov r2, #2 <== NOT EXECUTED 30051720: e28d3018 add r3, sp, #24 <== NOT EXECUTED 30051724: e58dc000 str ip, [sp] <== NOT EXECUTED 30051728: ebfeceb9 bl 30005214 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) 3005172c: e3500000 cmp r0, #0 <== NOT EXECUTED 30051730: 03a04001 moveq r4, #1 <== NOT EXECUTED 30051734: 1a000025 bne 300517d0 <_rename_r+0x138> <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; 30051738: e28dc02c add ip, sp, #44 ; 0x2c <== NOT EXECUTED 3005173c: e28de018 add lr, sp, #24 <== NOT EXECUTED 30051740: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30051744: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30051748: e59e3000 ldr r3, [lr] <== NOT EXECUTED name = old + old_parent_pathlen; 3005174c: 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; 30051750: e58c3000 str r3, [ip] <== NOT EXECUTED name = old + old_parent_pathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 30051754: 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; 30051758: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 3005175c: ebffb3bd bl 3003e658 <== NOT EXECUTED 30051760: e1a01000 mov r1, r0 <== NOT EXECUTED 30051764: e1a00005 mov r0, r5 <== NOT EXECUTED 30051768: ebfece55 bl 300050c4 <== NOT EXECUTED 3005176c: e0855000 add r5, r5, r0 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 30051770: 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 ) ); 30051774: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 30051778: ebffb3b6 bl 3003e658 <== NOT EXECUTED 3005177c: e3a0c000 mov ip, #0 <== NOT EXECUTED 30051780: e1a01000 mov r1, r0 <== NOT EXECUTED 30051784: e1a0200c mov r2, ip <== NOT EXECUTED 30051788: e1a00005 mov r0, r5 <== NOT EXECUTED 3005178c: e28d302c add r3, sp, #44 ; 0x2c <== NOT EXECUTED 30051790: e58dc000 str ip, [sp] <== NOT EXECUTED 30051794: ebfece66 bl 30005134 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { 30051798: e2505000 subs r5, r0, #0 <== NOT EXECUTED 3005179c: 0a00000d beq 300517d8 <_rename_r+0x140> <== NOT EXECUTED if ( free_old_parentloc ) 300517a0: e3540000 cmp r4, #0 <== NOT EXECUTED 300517a4: 0a000007 beq 300517c8 <_rename_r+0x130> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 300517a8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 300517ac: e3530000 cmp r3, #0 <== NOT EXECUTED 300517b0: 0a000004 beq 300517c8 <_rename_r+0x130> <== NOT EXECUTED 300517b4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300517b8: e3530000 cmp r3, #0 <== NOT EXECUTED 300517bc: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 300517c0: 11a0e00f movne lr, pc <== NOT EXECUTED 300517c4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 300517c8: ebff9928 bl 30037c70 <__errno> <== NOT EXECUTED 300517cc: e5805000 str r5, [r0] <== NOT EXECUTED 300517d0: e3e06000 mvn r6, #0 <== NOT EXECUTED 300517d4: ea00009e b 30051a54 <_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 ); 300517d8: e5d63000 ldrb r3, [r6] <== NOT EXECUTED 300517dc: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED 300517e0: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED 300517e4: 13a07000 movne r7, #0 <== NOT EXECUTED 300517e8: 03a07001 moveq r7, #1 <== NOT EXECUTED 300517ec: 0a000001 beq 300517f8 <_rename_r+0x160> <== NOT EXECUTED 300517f0: e3530000 cmp r3, #0 <== NOT EXECUTED 300517f4: 1a000005 bne 30051810 <_rename_r+0x178> <== NOT EXECUTED 300517f8: e59f3260 ldr r3, [pc, #608] ; 30051a60 <_rename_r+0x3c8> <== NOT EXECUTED 300517fc: e28dc004 add ip, sp, #4 <== NOT EXECUTED 30051800: e593e000 ldr lr, [r3] <== NOT EXECUTED 30051804: e3a07001 mov r7, #1 <== NOT EXECUTED 30051808: e28ee018 add lr, lr, #24 <== NOT EXECUTED 3005180c: ea000003 b 30051820 <_rename_r+0x188> <== NOT EXECUTED 30051810: e59f3248 ldr r3, [pc, #584] ; 30051a60 <_rename_r+0x3c8> <== NOT EXECUTED 30051814: e28dc004 add ip, sp, #4 <== NOT EXECUTED 30051818: e593e000 ldr lr, [r3] <== NOT EXECUTED 3005181c: e28ee004 add lr, lr, #4 <== NOT EXECUTED 30051820: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30051824: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30051828: e59e3000 ldr r3, [lr] <== NOT EXECUTED 3005182c: e58c3000 str r3, [ip] <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { 30051830: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30051834: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED 30051838: e3530000 cmp r3, #0 <== NOT EXECUTED 3005183c: 0a00004d beq 30051978 <_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 ); 30051840: e28d5004 add r5, sp, #4 <== NOT EXECUTED 30051844: e0860007 add r0, r6, r7 <== NOT EXECUTED 30051848: e1a01005 mov r1, r5 <== NOT EXECUTED 3005184c: e28d2040 add r2, sp, #64 ; 0x40 <== NOT EXECUTED 30051850: e1a0e00f mov lr, pc <== NOT EXECUTED 30051854: e12fff13 bx r3 <== NOT EXECUTED if ( result != 0 ) { 30051858: e2506000 subs r6, r0, #0 <== NOT EXECUTED 3005185c: 0a00001c beq 300518d4 <_rename_r+0x23c> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 30051860: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30051864: e3530000 cmp r3, #0 <== NOT EXECUTED 30051868: 0a000004 beq 30051880 <_rename_r+0x1e8> <== NOT EXECUTED 3005186c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30051870: e3530000 cmp r3, #0 <== NOT EXECUTED 30051874: 11a00005 movne r0, r5 <== NOT EXECUTED 30051878: 11a0e00f movne lr, pc <== NOT EXECUTED 3005187c: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 30051880: e3540000 cmp r4, #0 <== NOT EXECUTED 30051884: 0a000007 beq 300518a8 <_rename_r+0x210> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 30051888: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 3005188c: e3530000 cmp r3, #0 <== NOT EXECUTED 30051890: 0a000004 beq 300518a8 <_rename_r+0x210> <== NOT EXECUTED 30051894: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30051898: e3530000 cmp r3, #0 <== NOT EXECUTED 3005189c: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 300518a0: 11a0e00f movne lr, pc <== NOT EXECUTED 300518a4: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 300518a8: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 300518ac: e3530000 cmp r3, #0 <== NOT EXECUTED 300518b0: 0a000004 beq 300518c8 <_rename_r+0x230> <== NOT EXECUTED 300518b4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300518b8: e3530000 cmp r3, #0 <== NOT EXECUTED 300518bc: 128d002c addne r0, sp, #44 ; 0x2c <== NOT EXECUTED 300518c0: 11a0e00f movne lr, pc <== NOT EXECUTED 300518c4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); 300518c8: ebff98e8 bl 30037c70 <__errno> <== NOT EXECUTED 300518cc: e5806000 str r6, [r0] <== NOT EXECUTED 300518d0: eaffffbe b 300517d0 <_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 ) { 300518d4: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED 300518d8: e59d1028 ldr r1, [sp, #40] ; 0x28 <== NOT EXECUTED 300518dc: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 300518e0: e1510002 cmp r1, r2 <== NOT EXECUTED 300518e4: 0a00001b beq 30051958 <_rename_r+0x2c0> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 300518e8: e3530000 cmp r3, #0 <== NOT EXECUTED 300518ec: 0a000004 beq 30051904 <_rename_r+0x26c> <== NOT EXECUTED 300518f0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300518f4: e3530000 cmp r3, #0 <== NOT EXECUTED 300518f8: 11a00005 movne r0, r5 <== NOT EXECUTED 300518fc: 11a0e00f movne lr, pc <== NOT EXECUTED 30051900: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 30051904: e3540000 cmp r4, #0 <== NOT EXECUTED 30051908: 0a000007 beq 3005192c <_rename_r+0x294> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 3005190c: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30051910: e3530000 cmp r3, #0 <== NOT EXECUTED 30051914: 0a000004 beq 3005192c <_rename_r+0x294> <== NOT EXECUTED 30051918: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3005191c: e3530000 cmp r3, #0 <== NOT EXECUTED 30051920: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 30051924: 11a0e00f movne lr, pc <== NOT EXECUTED 30051928: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 3005192c: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 30051930: e3530000 cmp r3, #0 <== NOT EXECUTED 30051934: 0a000004 beq 3005194c <_rename_r+0x2b4> <== NOT EXECUTED 30051938: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3005193c: e3530000 cmp r3, #0 <== NOT EXECUTED 30051940: 128d002c addne r0, sp, #44 ; 0x2c <== NOT EXECUTED 30051944: 11a0e00f movne lr, pc <== NOT EXECUTED 30051948: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); 3005194c: ebff98c7 bl 30037c70 <__errno> <== NOT EXECUTED 30051950: e3a03012 mov r3, #18 <== NOT EXECUTED 30051954: ea00001b b 300519c8 <_rename_r+0x330> <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { 30051958: e593c040 ldr ip, [r3, #64] ; 0x40 <== NOT EXECUTED 3005195c: e35c0000 cmp ip, #0 <== NOT EXECUTED 30051960: 1a00001a bne 300519d0 <_rename_r+0x338> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 30051964: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30051968: e3530000 cmp r3, #0 <== NOT EXECUTED 3005196c: 11a00005 movne r0, r5 <== NOT EXECUTED 30051970: 11a0e00f movne lr, pc <== NOT EXECUTED 30051974: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 30051978: e3540000 cmp r4, #0 <== NOT EXECUTED 3005197c: 0a000007 beq 300519a0 <_rename_r+0x308> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 30051980: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30051984: e3530000 cmp r3, #0 <== NOT EXECUTED 30051988: 0a000004 beq 300519a0 <_rename_r+0x308> <== NOT EXECUTED 3005198c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30051990: e3530000 cmp r3, #0 <== NOT EXECUTED 30051994: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 30051998: 11a0e00f movne lr, pc <== NOT EXECUTED 3005199c: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 300519a0: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 300519a4: e3530000 cmp r3, #0 <== NOT EXECUTED 300519a8: 0a000004 beq 300519c0 <_rename_r+0x328> <== NOT EXECUTED 300519ac: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300519b0: e3530000 cmp r3, #0 <== NOT EXECUTED 300519b4: 128d002c addne r0, sp, #44 ; 0x2c <== NOT EXECUTED 300519b8: 11a0e00f movne lr, pc <== NOT EXECUTED 300519bc: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300519c0: ebff98aa bl 30037c70 <__errno> <== NOT EXECUTED 300519c4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300519c8: e5803000 str r3, [r0] <== NOT EXECUTED 300519cc: eaffff7f b 300517d0 <_rename_r+0x138> <== NOT EXECUTED } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); 300519d0: e59d3040 ldr r3, [sp, #64] ; 0x40 <== NOT EXECUTED 300519d4: e28d0018 add r0, sp, #24 <== NOT EXECUTED 300519d8: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED 300519dc: e1a02005 mov r2, r5 <== NOT EXECUTED 300519e0: e1a0e00f mov lr, pc <== NOT EXECUTED 300519e4: e12fff1c bx ip <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 300519e8: 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 ); 300519ec: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); 300519f0: e3530000 cmp r3, #0 <== NOT EXECUTED 300519f4: 0a000004 beq 30051a0c <_rename_r+0x374> <== NOT EXECUTED 300519f8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 300519fc: e3530000 cmp r3, #0 <== NOT EXECUTED 30051a00: 11a00005 movne r0, r5 <== NOT EXECUTED 30051a04: 11a0e00f movne lr, pc <== NOT EXECUTED 30051a08: 112fff13 bxne r3 <== NOT EXECUTED if ( free_old_parentloc ) 30051a0c: e3540000 cmp r4, #0 <== NOT EXECUTED 30051a10: 0a000007 beq 30051a34 <_rename_r+0x39c> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); 30051a14: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30051a18: e3530000 cmp r3, #0 <== NOT EXECUTED 30051a1c: 0a000004 beq 30051a34 <_rename_r+0x39c> <== NOT EXECUTED 30051a20: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30051a24: e3530000 cmp r3, #0 <== NOT EXECUTED 30051a28: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 30051a2c: 11a0e00f movne lr, pc <== NOT EXECUTED 30051a30: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); 30051a34: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED 30051a38: e3530000 cmp r3, #0 <== NOT EXECUTED 30051a3c: 0a000004 beq 30051a54 <_rename_r+0x3bc> <== NOT EXECUTED 30051a40: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30051a44: e3530000 cmp r3, #0 <== NOT EXECUTED 30051a48: 128d002c addne r0, sp, #44 ; 0x2c <== NOT EXECUTED 30051a4c: 11a0e00f movne lr, pc <== NOT EXECUTED 30051a50: 112fff13 bxne r3 <== NOT EXECUTED return result; } 30051a54: e1a00006 mov r0, r6 <== NOT EXECUTED 30051a58: e28dd044 add sp, sp, #68 ; 0x44 <== NOT EXECUTED 30051a5c: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED 30051a60: 3005b6a4 .word 0x3005b6a4 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 3000b5e4 <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); 3000b5e4: e1a00001 mov r0, r1 <== NOT EXECUTED 3000b5e8: eaffff60 b 3000b370 <== NOT EXECUTED 300218b8 : #include int chdir( const char *pathname ) { 300218b8: e92d4030 push {r4, r5, lr} 300218bc: e24dd018 sub sp, sp, #24 300218c0: 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 ); 300218c4: eb007363 bl 3003e658 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 300218c8: e28d4004 add r4, sp, #4 300218cc: e3a0c001 mov ip, #1 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); 300218d0: e1a01000 mov r1, r0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( 300218d4: e1a0200c mov r2, ip 300218d8: e1a00005 mov r0, r5 300218dc: e1a03004 mov r3, r4 300218e0: e58dc000 str ip, [sp] 300218e4: ebff8e4a bl 30005214 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) 300218e8: e3500000 cmp r0, #0 300218ec: 1a00000b bne 30021920 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { 300218f0: e59d2010 ldr r2, [sp, #16] 300218f4: e5923010 ldr r3, [r2, #16] 300218f8: e3530000 cmp r3, #0 300218fc: 1a000009 bne 30021928 rtems_filesystem_freenode( &loc ); 30021900: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30021904: e3530000 cmp r3, #0 <== NOT EXECUTED 30021908: 11a00004 movne r0, r4 <== NOT EXECUTED 3002190c: 11a0e00f movne lr, pc <== NOT EXECUTED 30021910: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30021914: eb0058d5 bl 30037c70 <__errno> <== NOT EXECUTED 30021918: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3002191c: e5803000 str r3, [r0] 30021920: e3e00000 mvn r0, #0 30021924: ea000022 b 300219b4 } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { 30021928: e1a00004 mov r0, r4 3002192c: e1a0e00f mov lr, pc 30021930: e12fff13 bx r3 30021934: e3500001 cmp r0, #1 30021938: 0a00000a beq 30021968 rtems_filesystem_freenode( &loc ); 3002193c: e59d3010 ldr r3, [sp, #16] 30021940: e3530000 cmp r3, #0 30021944: 0a000004 beq 3002195c 30021948: e593301c ldr r3, [r3, #28] 3002194c: e3530000 cmp r3, #0 30021950: 11a00004 movne r0, r4 30021954: 11a0e00f movne lr, pc 30021958: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( ENOTDIR ); 3002195c: eb0058c3 bl 30037c70 <__errno> 30021960: e3a03014 mov r3, #20 30021964: eaffffec b 3002191c } rtems_filesystem_freenode( &rtems_filesystem_current ); 30021968: e59f304c ldr r3, [pc, #76] ; 300219bc 3002196c: e5930000 ldr r0, [r3] 30021970: e5903010 ldr r3, [r0, #16] 30021974: e3530000 cmp r3, #0 30021978: 0a000004 beq 30021990 3002197c: e593301c ldr r3, [r3, #28] 30021980: e3530000 cmp r3, #0 30021984: 12800004 addne r0, r0, #4 30021988: 11a0e00f movne lr, pc 3002198c: 112fff13 bxne r3 rtems_filesystem_current = loc; 30021990: e59f3024 ldr r3, [pc, #36] ; 300219bc 30021994: e28d4004 add r4, sp, #4 30021998: e593c000 ldr ip, [r3] 3002199c: e8b4000f ldm r4!, {r0, r1, r2, r3} 300219a0: e28cc004 add ip, ip, #4 300219a4: e8ac000f stmia ip!, {r0, r1, r2, r3} 300219a8: e5943000 ldr r3, [r4] 300219ac: e3a00000 mov r0, #0 300219b0: e58c3000 str r3, [ip] return 0; } 300219b4: e28dd018 add sp, sp, #24 300219b8: e8bd8030 pop {r4, r5, pc} 300219bc: 3005b6a4 .word 0x3005b6a4 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: eb00e5c5 bl 3003e658 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: eb00cb35 bl 30037c70 <__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: eb00cb25 bl 30037c70 <__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} 300219c0 : int chown( const char *path, uid_t owner, gid_t group ) { 300219c0: e92d40f0 push {r4, r5, r6, r7, lr} 300219c4: e1a01801 lsl r1, r1, #16 300219c8: e24dd018 sub sp, sp, #24 300219cc: e1a02802 lsl r2, r2, #16 300219d0: e1a06821 lsr r6, r1, #16 300219d4: e1a05822 lsr r5, r2, #16 300219d8: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) 300219dc: eb00731d bl 3003e658 300219e0: e28d4004 add r4, sp, #4 300219e4: e1a01000 mov r1, r0 300219e8: e3a0c001 mov ip, #1 300219ec: e1a00007 mov r0, r7 300219f0: e3a02000 mov r2, #0 300219f4: e1a03004 mov r3, r4 300219f8: e58dc000 str ip, [sp] 300219fc: ebff8e04 bl 30005214 30021a00: e3500000 cmp r0, #0 30021a04: 1a00000b bne 30021a38 return -1; if ( !loc.ops->chown_h ) { 30021a08: e59d2010 ldr r2, [sp, #16] 30021a0c: e5923018 ldr r3, [r2, #24] 30021a10: e3530000 cmp r3, #0 30021a14: 1a000009 bne 30021a40 rtems_filesystem_freenode( &loc ); 30021a18: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30021a1c: e3530000 cmp r3, #0 <== NOT EXECUTED 30021a20: 11a00004 movne r0, r4 <== NOT EXECUTED 30021a24: 11a0e00f movne lr, pc <== NOT EXECUTED 30021a28: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30021a2c: eb00588f bl 30037c70 <__errno> <== NOT EXECUTED 30021a30: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30021a34: e5803000 str r3, [r0] <== NOT EXECUTED 30021a38: e3e05000 mvn r5, #0 30021a3c: ea00000d b 30021a78 } result = (*loc.ops->chown_h)( &loc, owner, group ); 30021a40: e1a02005 mov r2, r5 30021a44: e1a01006 mov r1, r6 30021a48: e1a00004 mov r0, r4 30021a4c: e1a0e00f mov lr, pc 30021a50: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 30021a54: 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 ); 30021a58: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 30021a5c: e3530000 cmp r3, #0 30021a60: 0a000004 beq 30021a78 30021a64: e593301c ldr r3, [r3, #28] 30021a68: e3530000 cmp r3, #0 30021a6c: 11a00004 movne r0, r4 30021a70: 11a0e00f movne lr, pc 30021a74: 112fff13 bxne r3 return result; } 30021a78: e1a00005 mov r0, r5 30021a7c: e28dd018 add sp, sp, #24 30021a80: e8bd80f0 pop {r4, r5, r6, r7, pc} 30021a84 : #include int chroot( const char *pathname ) { 30021a84: 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) { 30021a88: e59f50d8 ldr r5, [pc, #216] ; 30021b68 30021a8c: e59f30d8 ldr r3, [pc, #216] ; 30021b6c 30021a90: e5954000 ldr r4, [r5] #include int chroot( const char *pathname ) { 30021a94: 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) { 30021a98: e1540003 cmp r4, r3 #include int chroot( const char *pathname ) { 30021a9c: 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) { 30021aa0: 1a000008 bne 30021ac8 rtems_libio_set_private_env(); /* try to set a new private env*/ 30021aa4: eb0005d4 bl 300231fc if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ 30021aa8: e5953000 ldr r3, [r5] 30021aac: e1530004 cmp r3, r4 30021ab0: 1a000004 bne 30021ac8 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30021ab4: eb00586d bl 30037c70 <__errno> <== NOT EXECUTED 30021ab8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30021abc: e5803000 str r3, [r0] <== NOT EXECUTED 30021ac0: e3e00000 mvn r0, #0 <== NOT EXECUTED 30021ac4: ea000025 b 30021b60 <== NOT EXECUTED } result = chdir(pathname); 30021ac8: e1a00006 mov r0, r6 30021acc: ebffff79 bl 300218b8 if (result) { 30021ad0: e250c000 subs ip, r0, #0 30021ad4: 1a000007 bne 30021af8 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 30021ad8: e1a0200c mov r2, ip 30021adc: e59f008c ldr r0, [pc, #140] ; 30021b70 30021ae0: e3a01001 mov r1, #1 30021ae4: e28d3004 add r3, sp, #4 30021ae8: e58dc000 str ip, [sp] 30021aec: ebff8dc8 bl 30005214 30021af0: e3500000 cmp r0, #0 30021af4: 0a000006 beq 30021b14 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); 30021af8: eb00585c bl 30037c70 <__errno> <== NOT EXECUTED 30021afc: e1a04000 mov r4, r0 <== NOT EXECUTED 30021b00: eb00585a bl 30037c70 <__errno> <== NOT EXECUTED 30021b04: e5903000 ldr r3, [r0] <== NOT EXECUTED 30021b08: e3e00000 mvn r0, #0 <== NOT EXECUTED 30021b0c: e5843000 str r3, [r4] <== NOT EXECUTED 30021b10: ea000012 b 30021b60 <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); 30021b14: e59f304c ldr r3, [pc, #76] ; 30021b68 30021b18: e5930000 ldr r0, [r3] 30021b1c: e5903024 ldr r3, [r0, #36] ; 0x24 30021b20: e3530000 cmp r3, #0 30021b24: 0a000004 beq 30021b3c 30021b28: e593301c ldr r3, [r3, #28] 30021b2c: e3530000 cmp r3, #0 30021b30: 12800018 addne r0, r0, #24 30021b34: 11a0e00f movne lr, pc 30021b38: 112fff13 bxne r3 rtems_filesystem_root = loc; 30021b3c: e59f3024 ldr r3, [pc, #36] ; 30021b68 30021b40: e28d4004 add r4, sp, #4 30021b44: e593c000 ldr ip, [r3] 30021b48: e8b4000f ldm r4!, {r0, r1, r2, r3} 30021b4c: e28cc018 add ip, ip, #24 30021b50: e8ac000f stmia ip!, {r0, r1, r2, r3} 30021b54: e5943000 ldr r3, [r4] 30021b58: e3a00000 mov r0, #0 30021b5c: e58c3000 str r3, [ip] return 0; } 30021b60: e28dd018 add sp, sp, #24 30021b64: e8bd8070 pop {r4, r5, r6, pc} 30021b68: 3005b6a4 .word 0x3005b6a4 30021b6c: 3005f42c .word 0x3005f42c 30021b70: 30055eb7 .word 0x30055eb7 30007b60 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 30007b60: 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; 30007b64: e5935000 ldr r5, [r3] const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 30007b68: 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) 30007b6c: e3550000 cmp r5, #0 const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { 30007b70: e1a09000 mov r9, r0 30007b74: 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) 30007b78: 13a06000 movne r6, #0 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { 30007b7c: 159fa090 ldrne sl, [pc, #144] ; 30007c14 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) 30007b80: 1a000019 bne 30007bec rtems_set_errno_and_return_minus_one( EFAULT ); 30007b84: eb0006f3 bl 30009758 <__errno> <== NOT EXECUTED 30007b88: e3a0300e mov r3, #14 <== NOT EXECUTED 30007b8c: e5803000 str r3, [r0] <== NOT EXECUTED 30007b90: e3e00000 mvn r0, #0 <== NOT EXECUTED 30007b94: 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) 30007b98: 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++) { 30007b9c: e2866001 add r6, r6, #1 if (!device_name_table[i].device_name) 30007ba0: e2571000 subs r1, r7, #0 30007ba4: 0a00000f beq 30007be8 continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 30007ba8: eb000aa0 bl 3000a630 30007bac: e3500000 cmp r0, #0 30007bb0: 1a00000c bne 30007be8 continue; if (device_name_table[i].device_name[pathnamelen] != '\0') 30007bb4: e7d70008 ldrb r0, [r7, r8] 30007bb8: e3500000 cmp r0, #0 30007bbc: 1a000009 bne 30007be8 /* 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; 30007bc0: e59f3050 ldr r3, [pc, #80] ; 30007c18 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; 30007bc4: e5845000 str r5, [r4] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; 30007bc8: e5933000 ldr r3, [r3] 30007bcc: e5933028 ldr r3, [r3, #40] ; 0x28 30007bd0: 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; 30007bd4: e59f3040 ldr r3, [pc, #64] ; 30007c1c 30007bd8: e5843008 str r3, [r4, #8] pathloc->ops = &devFS_ops; 30007bdc: e59f303c ldr r3, [pc, #60] ; 30007c20 30007be0: e584300c str r3, [r4, #12] pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; 30007be4: 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++) { 30007be8: e2855014 add r5, r5, #20 30007bec: e59a3000 ldr r3, [sl] if (!device_name_table[i].device_name) continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 30007bf0: 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++) { 30007bf4: e1560003 cmp r6, r3 if (!device_name_table[i].device_name) continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) 30007bf8: 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++) { 30007bfc: 3affffe5 bcc 30007b98 pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); 30007c00: eb0006d4 bl 30009758 <__errno> 30007c04: e3a03002 mov r3, #2 30007c08: e5803000 str r3, [r0] 30007c0c: e3e00000 mvn r0, #0 } 30007c10: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} 30007c14: 3000d2ac .word 0x3000d2ac 30007c18: 3000d50c .word 0x3000d50c 30007c1c: 3000d478 .word 0x3000d478 30007c20: 3000d4b0 .word 0x3000d4b0 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: eb0019de bl 300076b0 <_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: eb002205 bl 30009758 <__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: eb00242b bl 3000a010 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: 3000d2ac .word 0x3000d2ac 30000f80: 3000d478 .word 0x3000d478 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: eb0021dc bl 30009758 <__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: eb0021d2 bl 30009758 <__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: eb00249f bl 3000a2b0 <== NOT EXECUTED 30001030: e3500000 cmp r0, #0 <== NOT EXECUTED 30001034: 1a000003 bne 30001048 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EEXIST ); 30001038: eb0021c6 bl 30009758 <__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: eb0021bb bl 30009758 <__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: eb00254c bl 3000a5d0 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: 3000d2ac .word 0x3000d2ac 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: eb000ee1 bl 30004d00 <== 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: 1b001aa7 blne 30007c24 <== 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: eb00216d bl 30009758 <__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) 30009edc : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30009edc: e92d4010 push {r4, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 30009ee0: e280400c add r4, r0, #12 <== NOT EXECUTED 30009ee4: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { 30009ee8: e24dd01c sub sp, sp, #28 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; 30009eec: e590c014 ldr ip, [r0, #20] <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; 30009ef0: e98d0018 stmib sp, {r3, r4} <== NOT EXECUTED args.buffer = buffer; args.count = count; 30009ef4: 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; 30009ef8: 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; 30009efc: e3a02000 mov r2, #0 <== NOT EXECUTED 30009f00: e58d2018 str r2, [sp, #24] <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; 30009f04: e58d100c str r1, [sp, #12] <== NOT EXECUTED args.count = count; args.flags = iop->flags; 30009f08: e58dc014 str ip, [sp, #20] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; 30009f0c: e58d0000 str r0, [sp] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( 30009f10: e5931054 ldr r1, [r3, #84] ; 0x54 <== NOT EXECUTED 30009f14: e5930050 ldr r0, [r3, #80] ; 0x50 <== NOT EXECUTED 30009f18: e1a0200d mov r2, sp <== NOT EXECUTED 30009f1c: eb0003eb bl 3000aed0 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) 30009f20: e3500000 cmp r0, #0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; 30009f24: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED the_jnode->info.device.minor, (void *) &args ); if ( status ) return rtems_deviceio_errno(status); 30009f28: 1b0004fc blne 3000b320 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } 30009f2c: e28dd01c add sp, sp, #28 <== NOT EXECUTED 30009f30: 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: 1b00073d blne 30004948 <== 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: 30017ee8 .word 0x30017ee8 3002211c : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) 3002211c: e59f300c ldr r3, [pc, #12] ; 30022130 <== NOT EXECUTED 30022120: e5930000 ldr r0, [r3] <== NOT EXECUTED 30022124: e3500000 cmp r0, #0 <== NOT EXECUTED 30022128: 012fff1e bxeq lr <== NOT EXECUTED fclose(group_fp); 3002212c: ea00571c b 30037da4 <== NOT EXECUTED 30022130: 3005f0e4 .word 0x3005f0e4 30022134 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) 30022134: e59f300c ldr r3, [pc, #12] ; 30022148 <== NOT EXECUTED 30022138: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED 3002213c: e3500000 cmp r0, #0 <== NOT EXECUTED 30022140: 012fff1e bxeq lr <== NOT EXECUTED fclose(passwd_fp); 30022144: ea005716 b 30037da4 <== NOT EXECUTED 30022148: 3005f0e4 .word 0x3005f0e4 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: 300177cd .word 0x300177cd 3000294c: 300177cb .word 0x300177cb 30002950: 30017ee8 .word 0x30017ee8 30032ae0 : #include int fchdir( int fd ) { 30032ae0: 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 ); 30032ae4: e59f315c ldr r3, [pc, #348] ; 30032c48 <== NOT EXECUTED #include int fchdir( int fd ) { 30032ae8: e24dd02c sub sp, sp, #44 ; 0x2c <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); 30032aec: e5933000 ldr r3, [r3] <== NOT EXECUTED 30032af0: e1500003 cmp r0, r3 <== NOT EXECUTED 30032af4: 2a000005 bcs 30032b10 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30032af8: e59f314c ldr r3, [pc, #332] ; 30032c4c <== NOT EXECUTED 30032afc: e5938000 ldr r8, [r3] <== NOT EXECUTED 30032b00: e0888300 add r8, r8, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 30032b04: e5983014 ldr r3, [r8, #20] <== NOT EXECUTED 30032b08: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30032b0c: 1a000002 bne 30032b1c <== NOT EXECUTED 30032b10: eb001456 bl 30037c70 <__errno> <== NOT EXECUTED 30032b14: e3a03009 mov r3, #9 <== NOT EXECUTED 30032b18: ea000016 b 30032b78 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 30032b1c: e3130002 tst r3, #2 <== NOT EXECUTED 30032b20: 1a000002 bne 30032b30 <== NOT EXECUTED 30032b24: eb001451 bl 30037c70 <__errno> <== NOT EXECUTED 30032b28: e3a03016 mov r3, #22 <== NOT EXECUTED 30032b2c: ea000011 b 30032b78 <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { 30032b30: e5983024 ldr r3, [r8, #36] ; 0x24 <== NOT EXECUTED 30032b34: e3530000 cmp r3, #0 <== NOT EXECUTED 30032b38: 0a000002 beq 30032b48 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { 30032b3c: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED 30032b40: e3530000 cmp r3, #0 <== NOT EXECUTED 30032b44: 1a000002 bne 30032b54 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30032b48: eb001448 bl 30037c70 <__errno> <== NOT EXECUTED 30032b4c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30032b50: ea000008 b 30032b78 <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != 30032b54: e2888018 add r8, r8, #24 <== NOT EXECUTED 30032b58: e1a00008 mov r0, r8 <== NOT EXECUTED 30032b5c: e1a0e00f mov lr, pc <== NOT EXECUTED 30032b60: e12fff13 bx r3 <== NOT EXECUTED 30032b64: e3500001 cmp r0, #1 <== NOT EXECUTED 30032b68: e1a07000 mov r7, r0 <== NOT EXECUTED 30032b6c: 0a000004 beq 30032b84 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); 30032b70: eb00143e bl 30037c70 <__errno> <== NOT EXECUTED 30032b74: e3a03014 mov r3, #20 <== NOT EXECUTED 30032b78: e5803000 str r3, [r0] <== NOT EXECUTED 30032b7c: e3e00000 mvn r0, #0 <== NOT EXECUTED 30032b80: ea00002e b 30032c40 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; 30032b84: e59f40c4 ldr r4, [pc, #196] ; 30032c50 <== NOT EXECUTED 30032b88: e28de004 add lr, sp, #4 <== NOT EXECUTED 30032b8c: e5945000 ldr r5, [r4] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 30032b90: 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; 30032b94: e285c004 add ip, r5, #4 <== NOT EXECUTED 30032b98: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30032b9c: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED 30032ba0: e59c3000 ldr r3, [ip] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 30032ba4: 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; 30032ba8: e58e3000 str r3, [lr] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; 30032bac: e8b8000f ldm r8!, {r0, r1, r2, r3} <== NOT EXECUTED 30032bb0: e8a5000f stmia r5!, {r0, r1, r2, r3} <== NOT EXECUTED 30032bb4: e5983000 ldr r3, [r8] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 30032bb8: e1a01007 mov r1, r7 <== NOT EXECUTED * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; rtems_filesystem_current = iop->pathinfo; 30032bbc: e58c3000 str r3, [ip] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { 30032bc0: e1a02006 mov r2, r6 <== NOT EXECUTED 30032bc4: e59f0088 ldr r0, [pc, #136] ; 30032c54 <== NOT EXECUTED 30032bc8: e28d3018 add r3, sp, #24 <== NOT EXECUTED 30032bcc: e58d6000 str r6, [sp] <== NOT EXECUTED 30032bd0: ebff498f bl 30005214 <== NOT EXECUTED 30032bd4: e1500006 cmp r0, r6 <== NOT EXECUTED 30032bd8: 0a000007 beq 30032bfc <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; 30032bdc: e594c000 ldr ip, [r4] <== NOT EXECUTED 30032be0: e28d4004 add r4, sp, #4 <== NOT EXECUTED 30032be4: e28cc004 add ip, ip, #4 <== NOT EXECUTED 30032be8: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED 30032bec: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30032bf0: e3e00000 mvn r0, #0 <== NOT EXECUTED 30032bf4: e5943000 ldr r3, [r4] <== NOT EXECUTED 30032bf8: ea00000f b 30032c3c <== NOT EXECUTED return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); 30032bfc: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30032c00: e3530000 cmp r3, #0 <== NOT EXECUTED 30032c04: 0a000004 beq 30032c1c <== NOT EXECUTED 30032c08: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30032c0c: e3530000 cmp r3, #0 <== NOT EXECUTED 30032c10: 128d0004 addne r0, sp, #4 <== NOT EXECUTED 30032c14: 11a0e00f movne lr, pc <== NOT EXECUTED 30032c18: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_current = loc; 30032c1c: e59f302c ldr r3, [pc, #44] ; 30032c50 <== NOT EXECUTED 30032c20: e28d4018 add r4, sp, #24 <== NOT EXECUTED 30032c24: e593c000 ldr ip, [r3] <== NOT EXECUTED 30032c28: e8b4000f ldm r4!, {r0, r1, r2, r3} <== NOT EXECUTED 30032c2c: e28cc004 add ip, ip, #4 <== NOT EXECUTED 30032c30: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED 30032c34: e5943000 ldr r3, [r4] <== NOT EXECUTED 30032c38: e3a00000 mov r0, #0 <== NOT EXECUTED 30032c3c: e58c3000 str r3, [ip] <== NOT EXECUTED return 0; } 30032c40: e28dd02c add sp, sp, #44 ; 0x2c <== NOT EXECUTED 30032c44: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 30032c48: 3005b36c .word 0x3005b36c 30032c4c: 3005f3d0 .word 0x3005f3d0 30032c50: 3005b6a4 .word 0x3005b6a4 30032c54: 30055eb7 .word 0x30055eb7 30021d7c : mode_t mode ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021d7c: e59f307c ldr r3, [pc, #124] ; 30021e00 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { 30021d80: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021d84: e5933000 ldr r3, [r3] <== NOT EXECUTED 30021d88: e1500003 cmp r0, r3 <== NOT EXECUTED 30021d8c: 2a000005 bcs 30021da8 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30021d90: e59f306c ldr r3, [pc, #108] ; 30021e04 <== NOT EXECUTED 30021d94: e5933000 ldr r3, [r3] <== NOT EXECUTED 30021d98: e0833300 add r3, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 30021d9c: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED 30021da0: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED 30021da4: 1a000002 bne 30021db4 <== NOT EXECUTED 30021da8: eb0057b0 bl 30037c70 <__errno> <== NOT EXECUTED 30021dac: e3a03009 mov r3, #9 <== NOT EXECUTED 30021db0: ea00000a b 30021de0 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30021db4: e3120004 tst r2, #4 <== NOT EXECUTED 30021db8: 1a000002 bne 30021dc8 <== NOT EXECUTED 30021dbc: eb0057ab bl 30037c70 <__errno> <== NOT EXECUTED 30021dc0: e3a03016 mov r3, #22 <== NOT EXECUTED 30021dc4: ea000005 b 30021de0 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) 30021dc8: e593203c ldr r2, [r3, #60] ; 0x3c <== NOT EXECUTED 30021dcc: e592201c ldr r2, [r2, #28] <== NOT EXECUTED 30021dd0: e3520000 cmp r2, #0 <== NOT EXECUTED 30021dd4: 1a000004 bne 30021dec <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30021dd8: eb0057a4 bl 30037c70 <__errno> <== NOT EXECUTED 30021ddc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30021de0: e5803000 str r3, [r0] <== NOT EXECUTED 30021de4: e3e00000 mvn r0, #0 <== NOT EXECUTED 30021de8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); 30021dec: e2830018 add r0, r3, #24 <== NOT EXECUTED 30021df0: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED 30021df4: e1a0e00f mov lr, pc <== NOT EXECUTED 30021df8: e593f01c ldr pc, [r3, #28] <== NOT EXECUTED } 30021dfc: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30021e00: 3005b36c .word 0x3005b36c 30021e04: 3005f3d0 .word 0x3005f3d0 30021e08 : gid_t group ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021e08: e59f3088 ldr r3, [pc, #136] ; 30021e98 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 30021e0c: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021e10: e5933000 ldr r3, [r3] <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 30021e14: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021e18: e1500003 cmp r0, r3 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { 30021e1c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED 30021e20: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 30021e24: e1a02822 lsr r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021e28: 2a000005 bcs 30021e44 <== NOT EXECUTED iop = rtems_libio_iop( fd ); 30021e2c: e59f3068 ldr r3, [pc, #104] ; 30021e9c <== NOT EXECUTED 30021e30: e5933000 ldr r3, [r3] <== NOT EXECUTED 30021e34: e0830300 add r0, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); 30021e38: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED 30021e3c: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED 30021e40: 1a000002 bne 30021e50 <== NOT EXECUTED 30021e44: eb005789 bl 30037c70 <__errno> <== NOT EXECUTED 30021e48: e3a03009 mov r3, #9 <== NOT EXECUTED 30021e4c: ea00000a b 30021e7c <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30021e50: e3130004 tst r3, #4 <== NOT EXECUTED 30021e54: 1a000002 bne 30021e64 <== NOT EXECUTED 30021e58: eb005784 bl 30037c70 <__errno> <== NOT EXECUTED 30021e5c: e3a03016 mov r3, #22 <== NOT EXECUTED 30021e60: ea000005 b 30021e7c <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) 30021e64: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED 30021e68: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 30021e6c: e3530000 cmp r3, #0 <== NOT EXECUTED 30021e70: 1a000004 bne 30021e88 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30021e74: eb00577d bl 30037c70 <__errno> <== NOT EXECUTED 30021e78: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30021e7c: e5803000 str r3, [r0] <== NOT EXECUTED 30021e80: e3e00000 mvn r0, #0 <== NOT EXECUTED 30021e84: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); 30021e88: e2800018 add r0, r0, #24 <== NOT EXECUTED 30021e8c: e1a0e00f mov lr, pc <== NOT EXECUTED 30021e90: e12fff13 bx r3 <== NOT EXECUTED } 30021e94: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 30021e98: 3005b36c .word 0x3005b36c 30021e9c: 3005f3d0 .word 0x3005f3d0 30032c58 : int fcntl( int fd, int cmd, ... ) { 30032c58: e92d000e push {r1, r2, r3} 30032c5c: e92d40f1 push {r0, r4, r5, r6, r7, lr} int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 30032c60: e59f31a4 ldr r3, [pc, #420] ; 30032e0c int fcntl( int fd, int cmd, ... ) { 30032c64: e59d7018 ldr r7, [sp, #24] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 30032c68: e5932000 ldr r2, [r3] ... ) { int ret; va_list ap; va_start( ap, cmd ); 30032c6c: e28d301c add r3, sp, #28 int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 30032c70: e1500002 cmp r0, r2 ... ) { int ret; va_list ap; va_start( ap, cmd ); 30032c74: e58d3000 str r3, [sp] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); 30032c78: 2a000005 bcs 30032c94 iop = rtems_libio_iop( fd ); 30032c7c: e59f118c ldr r1, [pc, #396] ; 30032e10 30032c80: e591c000 ldr ip, [r1] 30032c84: e08c4300 add r4, ip, r0, lsl #6 rtems_libio_check_is_open(iop); 30032c88: e5940014 ldr r0, [r4, #20] 30032c8c: e3100c01 tst r0, #256 ; 0x100 30032c90: 1a000002 bne 30032ca0 30032c94: eb0013f5 bl 30037c70 <__errno> <== NOT EXECUTED 30032c98: e3a03009 mov r3, #9 <== NOT EXECUTED 30032c9c: ea000045 b 30032db8 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { 30032ca0: e3570009 cmp r7, #9 30032ca4: 979ff107 ldrls pc, [pc, r7, lsl #2] 30032ca8: ea000040 b 30032db0 30032cac: 30032cd4 .word 0x30032cd4 <== NOT EXECUTED 30032cb0: 30032d40 .word 0x30032d40 <== NOT EXECUTED 30032cb4: 30032d4c .word 0x30032d4c <== NOT EXECUTED 30032cb8: 30032d6c .word 0x30032d6c <== NOT EXECUTED 30032cbc: 30032d78 .word 0x30032d78 <== NOT EXECUTED 30032cc0: 30032da4 .word 0x30032da4 <== NOT EXECUTED 30032cc4: 30032da4 .word 0x30032da4 <== NOT EXECUTED 30032cc8: 30032da4 .word 0x30032da4 <== NOT EXECUTED 30032ccc: 30032da4 .word 0x30032da4 <== NOT EXECUTED 30032cd0: 30032da4 .word 0x30032da4 <== NOT EXECUTED case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); 30032cd4: e5933000 ldr r3, [r3] if ( fd2 ) 30032cd8: e3530000 cmp r3, #0 30032cdc: 0a000003 beq 30032cf0 diop = rtems_libio_iop( fd2 ); 30032ce0: e1530002 cmp r3, r2 <== NOT EXECUTED 30032ce4: 23a0c000 movcs ip, #0 <== NOT EXECUTED 30032ce8: 308cc303 addcc ip, ip, r3, lsl #6 <== NOT EXECUTED 30032cec: ea000002 b 30032cfc <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); 30032cf0: ebff4a5b bl 30005664 if ( diop == 0 ) { 30032cf4: e250c000 subs ip, r0, #0 30032cf8: 0a00003e beq 30032df8 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 30032cfc: e28c5018 add r5, ip, #24 30032d00: e2846018 add r6, r4, #24 30032d04: e8b6000f ldm r6!, {r0, r1, r2, r3} 30032d08: e8a5000f stmia r5!, {r0, r1, r2, r3} ret = (int) (diop - rtems_libio_iops); 30032d0c: e59f30fc ldr r3, [pc, #252] ; 30032e10 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 30032d10: e5966000 ldr r6, [r6] ret = (int) (diop - rtems_libio_iops); 30032d14: e5933000 ldr r3, [r3] ret = -1; break; } } diop->handlers = iop->handlers; 30032d18: e594003c ldr r0, [r4, #60] ; 0x3c diop->file_info = iop->file_info; 30032d1c: e5941038 ldr r1, [r4, #56] ; 0x38 diop->flags = iop->flags; 30032d20: e5942014 ldr r2, [r4, #20] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 30032d24: e063300c rsb r3, r3, ip } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; 30032d28: e5856000 str r6, [r5] ret = -1; break; } } diop->handlers = iop->handlers; 30032d2c: e58c003c str r0, [ip, #60] ; 0x3c diop->file_info = iop->file_info; 30032d30: e58c1038 str r1, [ip, #56] ; 0x38 diop->flags = iop->flags; 30032d34: e58c2014 str r2, [ip, #20] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); 30032d38: e1a05343 asr r5, r3, #6 30032d3c: ea00001f b 30032dc0 break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); 30032d40: e1a055a0 lsr r5, r0, #11 30032d44: e2055001 and r5, r5, #1 30032d48: ea00001e b 30032dc8 * 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 ) ) 30032d4c: e5935000 ldr r5, [r3] 30032d50: e3550000 cmp r5, #0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; 30032d54: 13800b02 orrne r0, r0, #2048 ; 0x800 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 30032d58: 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; 30032d5c: 15840014 strne r0, [r4, #20] else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; 30032d60: 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 ) ) 30032d64: 0a000017 beq 30032dc8 30032d68: ea00000b b 30032d9c else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); 30032d6c: ebff49d3 bl 300054c0 30032d70: e1a05000 mov r5, r0 30032d74: ea000011 b 30032dc0 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); 30032d78: e5930000 ldr r0, [r3] 30032d7c: ebff4a65 bl 30005718 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); 30032d80: e5943014 ldr r3, [r4, #20] 30032d84: e59f2088 ldr r2, [pc, #136] ; 30032e14 30032d88: e3c33c02 bic r3, r3, #512 ; 0x200 30032d8c: e0002002 and r2, r0, r2 30032d90: e3c33001 bic r3, r3, #1 30032d94: e1823003 orr r3, r2, r3 30032d98: e5843014 str r3, [r4, #20] 30032d9c: e3a05000 mov r5, #0 30032da0: ea000008 b 30032dc8 errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; 30032da4: eb0013b1 bl 30037c70 <__errno> 30032da8: e3a03086 mov r3, #134 ; 0x86 30032dac: ea000001 b 30032db8 ret = -1; break; default: errno = EINVAL; 30032db0: eb0013ae bl 30037c70 <__errno> 30032db4: e3a03016 mov r3, #22 30032db8: e5803000 str r3, [r0] 30032dbc: ea00000d b 30032df8 /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { 30032dc0: e3550000 cmp r5, #0 30032dc4: ba00000c blt 30032dfc if (iop->handlers->fcntl_h) { 30032dc8: e594303c ldr r3, [r4, #60] ; 0x3c 30032dcc: e5933030 ldr r3, [r3, #48] ; 0x30 30032dd0: e3530000 cmp r3, #0 30032dd4: 0a000008 beq 30032dfc int err = (*iop->handlers->fcntl_h)( cmd, iop ); 30032dd8: e1a01004 mov r1, r4 30032ddc: e1a00007 mov r0, r7 30032de0: e1a0e00f mov lr, pc 30032de4: e12fff13 bx r3 if (err) { 30032de8: e2504000 subs r4, r0, #0 30032dec: 0a000002 beq 30032dfc errno = err; 30032df0: eb00139e bl 30037c70 <__errno> <== NOT EXECUTED 30032df4: e5804000 str r4, [r0] <== NOT EXECUTED 30032df8: e3e05000 mvn r5, #0 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } 30032dfc: e1a00005 mov r0, r5 30032e00: e8bd40f8 pop {r3, r4, r5, r6, r7, lr} 30032e04: e28dd00c add sp, sp, #12 30032e08: e12fff1e bx lr 30032e0c: 3005b36c .word 0x3005b36c 30032e10: 3005f3d0 .word 0x3005f3d0 30032e14: 00000201 .word 0x00000201 3000a490 : ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 3000a490: e59f3324 ldr r3, [pc, #804] ; 3000a7bc */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000a494: e92d45f3 push {r0, r1, r4, r5, r6, r7, r8, sl, lr} 3000a498: e1a08001 mov r8, r1 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 3000a49c: e3a01000 mov r1, #0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000a4a0: e1a07000 mov r7, r0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, 3000a4a4: e1a02001 mov r2, r1 3000a4a8: e5930000 ldr r0, [r3] 3000a4ac: ebffe792 bl 300042fc 3000a4b0: e250a000 subs sl, r0, #0 3000a4b4: 13e06003 mvnne r6, #3 3000a4b8: 1a0000bd bne 3000a7b4 RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; 3000a4bc: e5974000 ldr r4, [r7] <== NOT EXECUTED if (pipe == NULL) { 3000a4c0: e3540000 cmp r4, #0 <== NOT EXECUTED 3000a4c4: 1a00003e bne 3000a5c4 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 3000a4c8: e3a00034 mov r0, #52 ; 0x34 <== NOT EXECUTED 3000a4cc: ebfff9eb bl 30008c80 <== NOT EXECUTED if (pipe == NULL) 3000a4d0: e3500000 cmp r0, #0 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); 3000a4d4: e1a05000 mov r5, r0 <== NOT EXECUTED 3000a4d8: e1a04000 mov r4, r0 <== NOT EXECUTED if (pipe == NULL) 3000a4dc: 03e0600b mvneq r6, #11 <== NOT EXECUTED 3000a4e0: 0a000045 beq 3000a5fc <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); 3000a4e4: e1a0100a mov r1, sl <== NOT EXECUTED 3000a4e8: e3a02034 mov r2, #52 ; 0x34 <== NOT EXECUTED 3000a4ec: eb0006a9 bl 3000bf98 <== NOT EXECUTED pipe->Size = PIPE_BUF; 3000a4f0: e3a03c02 mov r3, #512 ; 0x200 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 3000a4f4: 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; 3000a4f8: e5853004 str r3, [r5, #4] <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); 3000a4fc: ebfff9df bl 30008c80 <== NOT EXECUTED if (! pipe->Buffer) 3000a500: 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); 3000a504: e5850000 str r0, [r5] <== NOT EXECUTED if (! pipe->Buffer) 3000a508: 03e0600b mvneq r6, #11 <== NOT EXECUTED 3000a50c: 0a000029 beq 3000a5b8 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( 3000a510: e59f62a8 ldr r6, [pc, #680] ; 3000a7c0 <== NOT EXECUTED 3000a514: e59f02a8 ldr r0, [pc, #680] ; 3000a7c4 <== NOT EXECUTED 3000a518: e5d63000 ldrb r3, [r6] <== NOT EXECUTED 3000a51c: e1a0100a mov r1, sl <== NOT EXECUTED 3000a520: e1830000 orr r0, r3, r0 <== NOT EXECUTED 3000a524: e1a0200a mov r2, sl <== NOT EXECUTED 3000a528: e285302c add r3, r5, #44 ; 0x2c <== NOT EXECUTED 3000a52c: eb000164 bl 3000aac4 <== NOT EXECUTED 3000a530: e2501000 subs r1, r0, #0 <== NOT EXECUTED 3000a534: 1a00001c bne 3000a5ac <== 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( 3000a538: e5d63000 ldrb r3, [r6] <== NOT EXECUTED 3000a53c: e59f0284 ldr r0, [pc, #644] ; 3000a7c8 <== NOT EXECUTED 3000a540: e1a02001 mov r2, r1 <== NOT EXECUTED 3000a544: e1830000 orr r0, r3, r0 <== NOT EXECUTED 3000a548: e2853030 add r3, r5, #48 ; 0x30 <== NOT EXECUTED 3000a54c: eb00015c bl 3000aac4 <== NOT EXECUTED 3000a550: e2503000 subs r3, r0, #0 <== NOT EXECUTED 3000a554: 1a000012 bne 3000a5a4 <== 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( 3000a558: e5d62000 ldrb r2, [r6] <== NOT EXECUTED 3000a55c: e59f0268 ldr r0, [pc, #616] ; 3000a7cc <== NOT EXECUTED 3000a560: e285c028 add ip, r5, #40 ; 0x28 <== NOT EXECUTED 3000a564: e1820000 orr r0, r2, r0 <== NOT EXECUTED 3000a568: e3a01001 mov r1, #1 <== NOT EXECUTED 3000a56c: e3a02010 mov r2, #16 <== NOT EXECUTED 3000a570: e58dc000 str ip, [sp] <== NOT EXECUTED 3000a574: ebffe6ce bl 300040b4 <== NOT EXECUTED 3000a578: e3500000 cmp r0, #0 <== NOT EXECUTED 3000a57c: 1a000006 bne 3000a59c <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') 3000a580: e5d63000 ldrb r3, [r6] <== NOT EXECUTED 3000a584: e353007a cmp r3, #122 ; 0x7a <== NOT EXECUTED 3000a588: e2833001 add r3, r3, #1 <== NOT EXECUTED 3000a58c: e5c63000 strb r3, [r6] <== NOT EXECUTED c = 'a'; 3000a590: 03a03061 moveq r3, #97 ; 0x61 <== NOT EXECUTED 3000a594: 05c63000 strbeq r3, [r6] <== NOT EXECUTED 3000a598: ea000009 b 3000a5c4 <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); 3000a59c: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED 3000a5a0: eb000175 bl 3000ab7c <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); 3000a5a4: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED 3000a5a8: eb000173 bl 3000ab7c <== NOT EXECUTED err_rbar: free(pipe->Buffer); 3000a5ac: e5950000 ldr r0, [r5] <== NOT EXECUTED 3000a5b0: ebfff872 bl 30008780 <== NOT EXECUTED 3000a5b4: e3e06003 mvn r6, #3 <== NOT EXECUTED err_buf: free(pipe); 3000a5b8: e1a00005 mov r0, r5 <== NOT EXECUTED 3000a5bc: ebfff86f bl 30008780 <== NOT EXECUTED 3000a5c0: ea00000d b 3000a5fc <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 3000a5c4: e3a01000 mov r1, #0 <== NOT EXECUTED 3000a5c8: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a5cc: e1a02001 mov r2, r1 <== NOT EXECUTED 3000a5d0: ebffe749 bl 300042fc <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 3000a5d4: e5973000 ldr r3, [r7] <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) 3000a5d8: e3500000 cmp r0, #0 <== NOT EXECUTED 3000a5dc: 01a06000 moveq r6, r0 <== NOT EXECUTED 3000a5e0: 13e06003 mvnne r6, #3 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { 3000a5e4: e3530000 cmp r3, #0 <== NOT EXECUTED 3000a5e8: 1a000003 bne 3000a5fc <== NOT EXECUTED if (err) 3000a5ec: e3560000 cmp r6, #0 <== NOT EXECUTED pipe_free(pipe); else *pipep = pipe; 3000a5f0: 05874000 streq r4, [r7] <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) pipe_free(pipe); 3000a5f4: 11a00004 movne r0, r4 <== NOT EXECUTED 3000a5f8: 1bffff58 blne 3000a360 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); 3000a5fc: e59f31b8 ldr r3, [pc, #440] ; 3000a7bc <== NOT EXECUTED 3000a600: e5930000 ldr r0, [r3] <== NOT EXECUTED 3000a604: ebffe782 bl 30004414 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) 3000a608: e3560000 cmp r6, #0 <== NOT EXECUTED 3000a60c: 1a000068 bne 3000a7b4 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { 3000a610: e5982014 ldr r2, [r8, #20] <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; 3000a614: e5974000 ldr r4, [r7] <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { 3000a618: e2023006 and r3, r2, #6 <== NOT EXECUTED 3000a61c: e3530004 cmp r3, #4 <== NOT EXECUTED 3000a620: 0a000024 beq 3000a6b8 <== NOT EXECUTED 3000a624: e3530006 cmp r3, #6 <== NOT EXECUTED 3000a628: 0a000046 beq 3000a748 <== NOT EXECUTED 3000a62c: e3530002 cmp r3, #2 <== NOT EXECUTED 3000a630: 1a000058 bne 3000a798 <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 3000a634: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 3000a638: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000a63c: e3530000 cmp r3, #0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 3000a640: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000a644: e2833001 add r3, r3, #1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; 3000a648: e5842020 str r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000a64c: e5843010 str r3, [r4, #16] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 3000a650: 05940030 ldreq r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000a654: 028d1004 addeq r1, sp, #4 <== NOT EXECUTED 3000a658: 0b00015f bleq 3000abdc <== NOT EXECUTED if (pipe->Writers == 0) { 3000a65c: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 3000a660: e3530000 cmp r3, #0 <== NOT EXECUTED 3000a664: 1a00004b bne 3000a798 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) 3000a668: e5983014 ldr r3, [r8, #20] <== NOT EXECUTED 3000a66c: e3130001 tst r3, #1 <== NOT EXECUTED 3000a670: 1a000048 bne 3000a798 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; 3000a674: e5945024 ldr r5, [r4, #36] ; 0x24 <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); 3000a678: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a67c: ebffe764 bl 30004414 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 3000a680: e3a01000 mov r1, #0 <== NOT EXECUTED 3000a684: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000a688: eb000169 bl 3000ac34 <== NOT EXECUTED 3000a68c: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 3000a690: 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)) 3000a694: 1a000042 bne 3000a7a4 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 3000a698: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a69c: ebffe716 bl 300042fc <== NOT EXECUTED 3000a6a0: e3500000 cmp r0, #0 <== NOT EXECUTED 3000a6a4: 1a00003e bne 3000a7a4 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); 3000a6a8: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED 3000a6ac: e1550003 cmp r5, r3 <== NOT EXECUTED 3000a6b0: 0afffff0 beq 3000a678 <== NOT EXECUTED 3000a6b4: ea000037 b 3000a798 <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { 3000a6b8: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3000a6bc: e3530000 cmp r3, #0 <== NOT EXECUTED 3000a6c0: 1a000002 bne 3000a6d0 <== NOT EXECUTED 3000a6c4: e3120001 tst r2, #1 <== NOT EXECUTED 3000a6c8: 13e06005 mvnne r6, #5 <== NOT EXECUTED 3000a6cc: 1a000035 bne 3000a7a8 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) 3000a6d0: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 3000a6d4: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000a6d8: e3530000 cmp r3, #0 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 3000a6dc: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000a6e0: e2833001 add r3, r3, #1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; 3000a6e4: e5842024 str r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000a6e8: e5843014 str r3, [r4, #20] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 3000a6ec: 0594002c ldreq r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000a6f0: 028d1004 addeq r1, sp, #4 <== NOT EXECUTED 3000a6f4: 0b000138 bleq 3000abdc <== NOT EXECUTED if (pipe->Readers == 0) { 3000a6f8: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3000a6fc: e3530000 cmp r3, #0 <== NOT EXECUTED 3000a700: 1a000024 bne 3000a798 <== NOT EXECUTED prevCounter = pipe->readerCounter; 3000a704: e5945020 ldr r5, [r4, #32] <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); 3000a708: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a70c: ebffe740 bl 30004414 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 3000a710: e3a01000 mov r1, #0 <== NOT EXECUTED 3000a714: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000a718: eb000145 bl 3000ac34 <== NOT EXECUTED 3000a71c: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 3000a720: e1a02001 mov r2, r1 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) 3000a724: 1a00001e bne 3000a7a4 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) 3000a728: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a72c: ebffe6f2 bl 300042fc <== NOT EXECUTED 3000a730: e3500000 cmp r0, #0 <== NOT EXECUTED 3000a734: 1a00001a bne 3000a7a4 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); 3000a738: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED 3000a73c: e1550003 cmp r5, r3 <== NOT EXECUTED 3000a740: 0afffff0 beq 3000a708 <== NOT EXECUTED 3000a744: ea000013 b 3000a798 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) 3000a748: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 3000a74c: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000a750: e3530000 cmp r3, #0 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 3000a754: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000a758: e2833001 add r3, r3, #1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; 3000a75c: e5842020 str r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) 3000a760: e5843010 str r3, [r4, #16] <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 3000a764: 05940030 ldreq r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000a768: 028d1004 addeq r1, sp, #4 <== NOT EXECUTED 3000a76c: 0b00011a bleq 3000abdc <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) 3000a770: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 3000a774: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000a778: e3530000 cmp r3, #0 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 3000a77c: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000a780: e2833001 add r3, r3, #1 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; 3000a784: e5842024 str r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) 3000a788: e5843014 str r3, [r4, #20] <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 3000a78c: 0594002c ldreq r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000a790: 028d1004 addeq r1, sp, #4 <== NOT EXECUTED 3000a794: 0b000110 bleq 3000abdc <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); 3000a798: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a79c: ebffe71c bl 30004414 <== NOT EXECUTED return 0; 3000a7a0: ea000003 b 3000a7b4 <== NOT EXECUTED 3000a7a4: e3e06003 mvn r6, #3 <== NOT EXECUTED out_error: pipe_release(pipep, iop); 3000a7a8: e1a00007 mov r0, r7 <== NOT EXECUTED 3000a7ac: e1a01008 mov r1, r8 <== NOT EXECUTED 3000a7b0: ebfffef7 bl 3000a394 <== NOT EXECUTED return err; } 3000a7b4: e1a00006 mov r0, r6 3000a7b8: e8bd85fc pop {r2, r3, r4, r5, r6, r7, r8, sl, pc} 3000a7bc: 30018528 .word 0x30018528 3000a7c0: 30017ed4 .word 0x30017ed4 3000a7c4: 50497200 .word 0x50497200 3000a7c8: 50497700 .word 0x50497700 3000a7cc: 50497300 .word 0x50497300 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: 3005f414 .word 0x3005f414 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: eb002de2 bl 3000dc64 <__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: eb002ddd bl 3000dc64 <__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: eb002db0 bl 3000dc64 <__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: 3001b9bc .word 0x3001b9bc 300025b4: 3001c2e4 .word 0x3001c2e4 30008780 : void free( void *ptr ) { MSBUMP(free_calls, 1); 30008780: e59f3088 ldr r3, [pc, #136] ; 30008810 30008784: e92d4030 push {r4, r5, lr} 30008788: e593200c ldr r2, [r3, #12] if ( !ptr ) 3000878c: e2504000 subs r4, r0, #0 void free( void *ptr ) { MSBUMP(free_calls, 1); 30008790: e2822001 add r2, r2, #1 30008794: e583200c str r2, [r3, #12] if ( !ptr ) 30008798: 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()) && 3000879c: e59f3070 ldr r3, [pc, #112] ; 30008814 300087a0: e5933000 ldr r3, [r3] 300087a4: e3530003 cmp r3, #3 300087a8: 1a000005 bne 300087c4 300087ac: eb000113 bl 30008c00 300087b0: e3500000 cmp r0, #0 300087b4: 1a000002 bne 300087c4 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); 300087b8: e1a00004 mov r0, r4 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 300087bc: 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); 300087c0: ea000121 b 30008c4c <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 300087c4: e59f304c ldr r3, [pc, #76] ; 30008818 300087c8: e5933000 ldr r3, [r3] 300087cc: e3530000 cmp r3, #0 (*rtems_malloc_statistics_helpers->at_free)(ptr); 300087d0: 11a00004 movne r0, r4 300087d4: 11a0e00f movne lr, pc 300087d8: 1593f008 ldrne pc, [r3, #8] if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { 300087dc: e59f5038 ldr r5, [pc, #56] ; 3000881c 300087e0: e1a01004 mov r1, r4 300087e4: e5950000 ldr r0, [r5] 300087e8: eb000472 bl 300099b8 <_Protected_heap_Free> 300087ec: e3500000 cmp r0, #0 300087f0: 18bd8030 popne {r4, r5, pc} printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, 300087f4: 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", 300087f8: e59f0020 ldr r0, [pc, #32] ; 30008820 <== NOT EXECUTED 300087fc: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30008800: e5922018 ldr r2, [r2, #24] <== NOT EXECUTED 30008804: e1a01004 mov r1, r4 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } 30008808: 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", 3000880c: eaffe5ba b 30001efc <== NOT EXECUTED 30008810: 300185b8 .word 0x300185b8 30008814: 300188d0 .word 0x300188d0 30008818: 30018408 .word 0x30018408 3000881c: 30017c98 .word 0x30017c98 30008820: 30017988 .word 0x30017988 300230f4 : static void free_user_env(void *venv) { rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 300230f4: e59f3058 ldr r3, [pc, #88] ; 30023154 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 300230f8: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 300230fc: e1500003 cmp r0, r3 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { 30023100: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env 30023104: 08bd8010 popeq {r4, pc} <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); 30023108: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED 3002310c: e3530000 cmp r3, #0 <== NOT EXECUTED 30023110: 0a000004 beq 30023128 <== NOT EXECUTED 30023114: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30023118: e3530000 cmp r3, #0 <== NOT EXECUTED 3002311c: 12800004 addne r0, r0, #4 <== NOT EXECUTED 30023120: 11a0e00f movne lr, pc <== NOT EXECUTED 30023124: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); 30023128: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED 3002312c: e3530000 cmp r3, #0 <== NOT EXECUTED 30023130: 0a000004 beq 30023148 <== NOT EXECUTED 30023134: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30023138: e3530000 cmp r3, #0 <== NOT EXECUTED 3002313c: 12840018 addne r0, r4, #24 <== NOT EXECUTED 30023140: 11a0e00f movne lr, pc <== NOT EXECUTED 30023144: 112fff13 bxne r3 <== NOT EXECUTED free(env); 30023148: e1a00004 mov r0, r4 <== NOT EXECUTED } } 3002314c: e8bd4010 pop {r4, lr} <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); 30023150: eaff885d b 300052cc <== NOT EXECUTED 30023154: 3005f42c .word 0x3005f42c 30016434 : int fstat( int fd, struct stat *sbuf ) { 30016434: e92d4030 push {r4, r5, lr} /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) 30016438: e2515000 subs r5, r1, #0 3001643c: 1a000002 bne 3001644c rtems_set_errno_and_return_minus_one( EFAULT ); 30016440: ebffd48a bl 3000b670 <__errno> 30016444: e3a0300e mov r3, #14 30016448: ea000014 b 300164a0 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); 3001644c: e59f3080 ldr r3, [pc, #128] ; 300164d4 30016450: e5933000 ldr r3, [r3] 30016454: e1500003 cmp r0, r3 30016458: 2a000008 bcs 30016480 3001645c: e59f3074 ldr r3, [pc, #116] ; 300164d8 30016460: e5934000 ldr r4, [r3] 30016464: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); 30016468: e5943014 ldr r3, [r4, #20] 3001646c: e3130c01 tst r3, #256 ; 0x100 30016470: 0a000002 beq 30016480 if ( !iop->handlers ) 30016474: e594303c ldr r3, [r4, #60] ; 0x3c 30016478: e3530000 cmp r3, #0 3001647c: 1a000002 bne 3001648c rtems_set_errno_and_return_minus_one( EBADF ); 30016480: ebffd47a bl 3000b670 <__errno> 30016484: e3a03009 mov r3, #9 30016488: ea000004 b 300164a0 if ( !iop->handlers->fstat_h ) 3001648c: e5933018 ldr r3, [r3, #24] 30016490: e3530000 cmp r3, #0 30016494: 1a000004 bne 300164ac rtems_set_errno_and_return_minus_one( ENOTSUP ); 30016498: ebffd474 bl 3000b670 <__errno> <== NOT EXECUTED 3001649c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300164a0: e5803000 str r3, [r0] 300164a4: e3e00000 mvn r0, #0 300164a8: 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) ); 300164ac: e3a01000 mov r1, #0 300164b0: e3a02048 mov r2, #72 ; 0x48 300164b4: e1a00005 mov r0, r5 300164b8: ebffd6b6 bl 3000bf98 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); 300164bc: e2840018 add r0, r4, #24 300164c0: e1a01005 mov r1, r5 300164c4: e594303c ldr r3, [r4, #60] ; 0x3c 300164c8: e1a0e00f mov lr, pc 300164cc: e593f018 ldr pc, [r3, #24] } 300164d0: e8bd8030 pop {r4, r5, pc} 300164d4: 30017c8c .word 0x30017c8c 300164d8: 300185ac .word 0x300185ac 30021f54 : int fd ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021f54: e59f307c ldr r3, [pc, #124] ; 30021fd8 #include int fsync( int fd ) { 30021f58: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30021f5c: e5933000 ldr r3, [r3] 30021f60: e1500003 cmp r0, r3 30021f64: 2a00000d bcs 30021fa0 iop = rtems_libio_iop( fd ); 30021f68: e59f306c ldr r3, [pc, #108] ; 30021fdc 30021f6c: e5933000 ldr r3, [r3] 30021f70: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); 30021f74: e5903014 ldr r3, [r0, #20] 30021f78: e3130c01 tst r3, #256 ; 0x100 30021f7c: 0a000007 beq 30021fa0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30021f80: e3130004 tst r3, #4 30021f84: 1a000002 bne 30021f94 30021f88: eb005738 bl 30037c70 <__errno> 30021f8c: e3a03016 mov r3, #22 30021f90: ea00000a b 30021fc0 /* * Now process the fsync(). */ if ( !iop->handlers ) 30021f94: e590303c ldr r3, [r0, #60] ; 0x3c 30021f98: e3530000 cmp r3, #0 30021f9c: 1a000002 bne 30021fac rtems_set_errno_and_return_minus_one( EBADF ); 30021fa0: eb005732 bl 30037c70 <__errno> <== NOT EXECUTED 30021fa4: e3a03009 mov r3, #9 <== NOT EXECUTED 30021fa8: ea000004 b 30021fc0 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) 30021fac: e5933028 ldr r3, [r3, #40] ; 0x28 30021fb0: e3530000 cmp r3, #0 30021fb4: 1a000004 bne 30021fcc rtems_set_errno_and_return_minus_one( ENOTSUP ); 30021fb8: eb00572c bl 30037c70 <__errno> 30021fbc: e3a03086 mov r3, #134 ; 0x86 30021fc0: e5803000 str r3, [r0] 30021fc4: e3e00000 mvn r0, #0 30021fc8: e49df004 pop {pc} ; (ldr pc, [sp], #4) return (*iop->handlers->fsync_h)( iop ); 30021fcc: e1a0e00f mov lr, pc 30021fd0: e12fff13 bx r3 } 30021fd4: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30021fd8: 3005b36c .word 0x3005b36c 30021fdc: 3005f3d0 .word 0x3005f3d0 30008824 : int ftruncate( int fd, off_t length ) { 30008824: e92d4070 push {r4, r5, r6, lr} rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 30008828: e59f30d4 ldr r3, [pc, #212] ; 30008904 int ftruncate( int fd, off_t length ) { 3000882c: e24dd014 sub sp, sp, #20 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 30008830: e5933000 ldr r3, [r3] int ftruncate( int fd, off_t length ) { 30008834: e1a05001 mov r5, r1 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 30008838: e1500003 cmp r0, r3 int ftruncate( int fd, off_t length ) { 3000883c: e1a06002 mov r6, r2 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); 30008840: 2a000005 bcs 3000885c iop = rtems_libio_iop( fd ); 30008844: e59f30bc ldr r3, [pc, #188] ; 30008908 30008848: e5934000 ldr r4, [r3] 3000884c: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); 30008850: e5943014 ldr r3, [r4, #20] 30008854: e3130c01 tst r3, #256 ; 0x100 30008858: 1a000002 bne 30008868 3000885c: eb000b83 bl 3000b670 <__errno> <== NOT EXECUTED 30008860: e3a03009 mov r3, #9 <== NOT EXECUTED 30008864: ea00001c b 300088dc <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 30008868: e1a0c00d mov ip, sp 3000886c: e284e018 add lr, r4, #24 30008870: e8be000f ldm lr!, {r0, r1, r2, r3} 30008874: e8ac000f stmia ip!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) 30008878: e5933010 ldr r3, [r3, #16] /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 3000887c: e59e2000 ldr r2, [lr] if ( !loc.ops->node_type_h ) 30008880: e3530000 cmp r3, #0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; 30008884: e58c2000 str r2, [ip] if ( !loc.ops->node_type_h ) 30008888: 0a000011 beq 300088d4 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) 3000888c: e1a0000d mov r0, sp 30008890: e1a0e00f mov lr, pc 30008894: e12fff13 bx r3 30008898: e3500001 cmp r0, #1 3000889c: 1a000002 bne 300088ac rtems_set_errno_and_return_minus_one( EISDIR ); 300088a0: eb000b72 bl 3000b670 <__errno> 300088a4: e3a03015 mov r3, #21 300088a8: ea00000b b 300088dc rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 300088ac: e5943014 ldr r3, [r4, #20] 300088b0: e3130004 tst r3, #4 300088b4: 1a000002 bne 300088c4 300088b8: eb000b6c bl 3000b670 <__errno> <== NOT EXECUTED 300088bc: e3a03016 mov r3, #22 <== NOT EXECUTED 300088c0: ea000005 b 300088dc <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) 300088c4: e594303c ldr r3, [r4, #60] ; 0x3c 300088c8: e5933020 ldr r3, [r3, #32] 300088cc: e3530000 cmp r3, #0 300088d0: 1a000004 bne 300088e8 rtems_set_errno_and_return_minus_one( ENOTSUP ); 300088d4: eb000b65 bl 3000b670 <__errno> <== NOT EXECUTED 300088d8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300088dc: e5803000 str r3, [r0] 300088e0: e3e00000 mvn r0, #0 300088e4: ea000004 b 300088fc return (*iop->handlers->ftruncate_h)( iop, length ); 300088e8: e1a00004 mov r0, r4 300088ec: e1a01005 mov r1, r5 300088f0: e1a02006 mov r2, r6 300088f4: e1a0e00f mov lr, pc 300088f8: e12fff13 bx r3 } 300088fc: e28dd014 add sp, sp, #20 30008900: e8bd8070 pop {r4, r5, r6, pc} 30008904: 30017c8c .word 0x30017c8c 30008908: 300185ac .word 0x300185ac 3005159c : /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 3005159c: e59f30a8 ldr r3, [pc, #168] ; 3005164c int getdents( int dd_fd, char *dd_buf, int dd_len ) { 300515a0: e92d4070 push {r4, r5, r6, lr} /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 300515a4: e5933000 ldr r3, [r3] int getdents( int dd_fd, char *dd_buf, int dd_len ) { 300515a8: e24dd014 sub sp, sp, #20 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 300515ac: e1500003 cmp r0, r3 300515b0: 359f3098 ldrcc r3, [pc, #152] ; 30051650 300515b4: 23a04000 movcs r4, #0 300515b8: 35934000 ldrcc r4, [r3] /* * Make sure we are working on a directory */ loc = iop->pathinfo; 300515bc: e1a0c00d mov ip, sp /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); 300515c0: 30844300 addcc r4, r4, r0, lsl #6 /* * Make sure we are working on a directory */ loc = iop->pathinfo; 300515c4: e284e018 add lr, r4, #24 int getdents( int dd_fd, char *dd_buf, int dd_len ) { 300515c8: e1a06001 mov r6, r1 300515cc: e1a05002 mov r5, r2 iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 300515d0: e8be000f ldm lr!, {r0, r1, r2, r3} 300515d4: e8ac000f stmia ip!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) 300515d8: e5933010 ldr r3, [r3, #16] iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 300515dc: e59e2000 ldr r2, [lr] if ( !loc.ops->node_type_h ) 300515e0: e3530000 cmp r3, #0 iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; 300515e4: e58c2000 str r2, [ip] if ( !loc.ops->node_type_h ) 300515e8: 0a00000d beq 30051624 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) 300515ec: e1a0000d mov r0, sp 300515f0: e1a0e00f mov lr, pc 300515f4: e12fff13 bx r3 300515f8: e3500001 cmp r0, #1 300515fc: 0a000004 beq 30051614 rtems_set_errno_and_return_minus_one( ENOTDIR ); 30051600: ebff999a bl 30037c70 <__errno> 30051604: e3a03014 mov r3, #20 30051608: e5803000 str r3, [r0] 3005160c: e3e00000 mvn r0, #0 30051610: ea00000b b 30051644 /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) 30051614: e594303c ldr r3, [r4, #60] ; 0x3c 30051618: e5933008 ldr r3, [r3, #8] 3005161c: e3530000 cmp r3, #0 30051620: 1a000002 bne 30051630 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30051624: ebff9991 bl 30037c70 <__errno> <== NOT EXECUTED 30051628: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3005162c: eafffff5 b 30051608 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); 30051630: e1a00004 mov r0, r4 30051634: e1a01006 mov r1, r6 30051638: e1a02005 mov r2, r5 3005163c: e1a0e00f mov lr, pc 30051640: e12fff13 bx r3 } 30051644: e28dd014 add sp, sp, #20 30051648: e8bd8070 pop {r4, r5, r6, pc} 3005164c: 3005b36c .word 0x3005b36c 30051650: 3005f3d0 .word 0x3005f3d0 300220f0 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { 300220f0: e59f3008 ldr r3, [pc, #8] ; 30022100 <== NOT EXECUTED 300220f4: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Gid; } 300220f8: e1d303b4 ldrh r0, [r3, #52] ; 0x34 <== NOT EXECUTED 300220fc: e12fff1e bx lr <== NOT EXECUTED 30022100: 3005b6a4 .word 0x3005b6a4 300226f8 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 300226f8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 300226fc: e59da01c ldr sl, [sp, #28] 30022700: e1a06000 mov r6, r0 30022704: e1a07001 mov r7, r1 30022708: e1a04002 mov r4, r2 3002270c: e1a08003 mov r8, r3 FILE *fp; int match; init_etc_passwd_group(); 30022710: ebffffb7 bl 300225f4 if ((fp = fopen("/etc/group", "r")) == NULL) { 30022714: e59f00a4 ldr r0, [pc, #164] ; 300227c0 30022718: e59f10a4 ldr r1, [pc, #164] ; 300227c4 3002271c: eb0057c3 bl 30038630 30022720: e2505000 subs r5, r0, #0 30022724: 1a000003 bne 30022738 errno = EINVAL; 30022728: eb005550 bl 30037c70 <__errno> <== NOT EXECUTED 3002272c: e3a03016 mov r3, #22 <== NOT EXECUTED 30022730: e5803000 str r3, [r0] <== NOT EXECUTED 30022734: ea00000c b 3002276c <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 30022738: e1a01004 mov r1, r4 3002273c: e1a02008 mov r2, r8 30022740: e1a0300a mov r3, sl 30022744: e1a00005 mov r0, r5 30022748: ebfffef2 bl 30022318 3002274c: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); 30022750: e1a01006 mov r1, r6 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { 30022754: 1a000006 bne 30022774 errno = EINVAL; 30022758: eb005544 bl 30037c70 <__errno> <== NOT EXECUTED 3002275c: e3a03016 mov r3, #22 <== NOT EXECUTED 30022760: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 30022764: e1a00005 mov r0, r5 <== NOT EXECUTED 30022768: eb00558d bl 30037da4 <== NOT EXECUTED 3002276c: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 30022770: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if (name) { 30022774: e3560000 cmp r6, #0 30022778: 0a000004 beq 30022790 match = (strcmp(grp->gr_name, name) == 0); 3002277c: e5940000 ldr r0, [r4] 30022780: eb006d4c bl 3003dcb8 30022784: e2700001 rsbs r0, r0, #1 30022788: 33a00000 movcc r0, #0 3002278c: ea000003 b 300227a0 } else { match = (grp->gr_gid == gid); 30022790: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED 30022794: e1500007 cmp r0, r7 <== NOT EXECUTED 30022798: 13a00000 movne r0, #0 <== NOT EXECUTED 3002279c: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { 300227a0: e3500000 cmp r0, #0 300227a4: 0affffe3 beq 30022738 fclose(fp); 300227a8: e1a00005 mov r0, r5 300227ac: eb00557c bl 30037da4 *result = grp; 300227b0: e59d3020 ldr r3, [sp, #32] 300227b4: e3a00000 mov r0, #0 300227b8: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } 300227bc: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 300227c0: 30054898 .word 0x30054898 300227c4: 30055632 .word 0x30055632 30022450 : return NULL; return p; } struct group *getgrent(void) { 30022450: e92d4010 push {r4, lr} <== NOT EXECUTED if (group_fp == NULL) 30022454: e59f402c ldr r4, [pc, #44] ; 30022488 <== NOT EXECUTED 30022458: e5940000 ldr r0, [r4] <== NOT EXECUTED 3002245c: e3500000 cmp r0, #0 <== NOT EXECUTED 30022460: 0a000006 beq 30022480 <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) 30022464: e2841008 add r1, r4, #8 <== NOT EXECUTED 30022468: e2842018 add r2, r4, #24 <== NOT EXECUTED 3002246c: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 30022470: ebffffa8 bl 30022318 <== NOT EXECUTED 30022474: e3500000 cmp r0, #0 <== NOT EXECUTED 30022478: 12840008 addne r0, r4, #8 <== NOT EXECUTED 3002247c: 18bd8010 popne {r4, pc} <== NOT EXECUTED 30022480: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &grent; } 30022484: e8bd8010 pop {r4, pc} <== NOT EXECUTED 30022488: 3005f0e4 .word 0x3005f0e4 300227fc : struct group *getgrgid( gid_t gid ) { 300227fc: e92d4003 push {r0, r1, lr} <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 30022800: e59f1028 ldr r1, [pc, #40] ; 30022830 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { 30022804: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) 30022808: e28dc004 add ip, sp, #4 <== NOT EXECUTED 3002280c: e2812010 add r2, r1, #16 <== NOT EXECUTED 30022810: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 30022814: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 30022818: e58dc000 str ip, [sp] <== NOT EXECUTED 3002281c: ebffffe9 bl 300227c8 <== NOT EXECUTED 30022820: e3500000 cmp r0, #0 <== NOT EXECUTED 30022824: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; 30022828: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 3002282c: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED 30022830: 3005f0ec .word 0x3005f0ec 300227c8 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 300227c8: e92d4003 push {r0, r1, lr} <== NOT EXECUTED 300227cc: e1a0c002 mov ip, r2 <== NOT EXECUTED 300227d0: e1a0e001 mov lr, r1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 300227d4: e58d3000 str r3, [sp] <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { 300227d8: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); 300227dc: e1a0300c mov r3, ip <== NOT EXECUTED 300227e0: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 300227e4: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 300227e8: e1a0200e mov r2, lr <== NOT EXECUTED 300227ec: e3a00000 mov r0, #0 <== NOT EXECUTED 300227f0: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 300227f4: ebffffbf bl 300226f8 <== NOT EXECUTED } 300227f8: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED 30020380 : */ pid_t getpid( void ) { return _Objects_Local_node; } 30020380: e3a00001 mov r0, #1 <== NOT EXECUTED 30020384: e12fff1e bx lr <== NOT EXECUTED 300228c8 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 300228c8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} 300228cc: e59da01c ldr sl, [sp, #28] 300228d0: e1a06000 mov r6, r0 300228d4: e1a07001 mov r7, r1 300228d8: e1a04002 mov r4, r2 300228dc: e1a08003 mov r8, r3 FILE *fp; int match; init_etc_passwd_group(); 300228e0: ebffff43 bl 300225f4 if ((fp = fopen("/etc/passwd", "r")) == NULL) { 300228e4: e59f00a4 ldr r0, [pc, #164] ; 30022990 300228e8: e59f10a4 ldr r1, [pc, #164] ; 30022994 300228ec: eb00574f bl 30038630 300228f0: e2505000 subs r5, r0, #0 300228f4: 1a000003 bne 30022908 errno = EINVAL; 300228f8: eb0054dc bl 30037c70 <__errno> <== NOT EXECUTED 300228fc: e3a03016 mov r3, #22 <== NOT EXECUTED 30022900: e5803000 str r3, [r0] <== NOT EXECUTED 30022904: ea00000c b 3002293c <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 30022908: e1a01004 mov r1, r4 3002290c: e1a02008 mov r2, r8 30022910: e1a0300a mov r3, sl 30022914: e1a00005 mov r0, r5 30022918: ebfffedb bl 3002248c 3002291c: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); 30022920: e1a01006 mov r1, r6 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { 30022924: 1a000006 bne 30022944 errno = EINVAL; 30022928: eb0054d0 bl 30037c70 <__errno> <== NOT EXECUTED 3002292c: e3a03016 mov r3, #22 <== NOT EXECUTED 30022930: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); 30022934: e1a00005 mov r0, r5 <== NOT EXECUTED 30022938: eb005519 bl 30037da4 <== NOT EXECUTED 3002293c: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 30022940: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if (name) { 30022944: e3560000 cmp r6, #0 30022948: 0a000004 beq 30022960 match = (strcmp(pwd->pw_name, name) == 0); 3002294c: e5940000 ldr r0, [r4] 30022950: eb006cd8 bl 3003dcb8 30022954: e2700001 rsbs r0, r0, #1 30022958: 33a00000 movcc r0, #0 3002295c: ea000003 b 30022970 } else { match = (pwd->pw_uid == uid); 30022960: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED 30022964: e1500007 cmp r0, r7 <== NOT EXECUTED 30022968: 13a00000 movne r0, #0 <== NOT EXECUTED 3002296c: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { 30022970: e3500000 cmp r0, #0 30022974: 0affffe3 beq 30022908 fclose(fp); 30022978: e1a00005 mov r0, r5 3002297c: eb005508 bl 30037da4 *result = pwd; 30022980: e59d3020 ldr r3, [sp, #32] 30022984: e3a00000 mov r0, #0 30022988: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } 3002298c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} 30022990: 300547ea .word 0x300547ea 30022994: 30055632 .word 0x30055632 300225b8 : return NULL; return p; } struct passwd *getpwent(void) { 300225b8: e92d4010 push {r4, lr} <== NOT EXECUTED if (passwd_fp == NULL) 300225bc: e59f402c ldr r4, [pc, #44] ; 300225f0 <== NOT EXECUTED 300225c0: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED 300225c4: e3500000 cmp r0, #0 <== NOT EXECUTED 300225c8: 0a000006 beq 300225e8 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) 300225cc: e28410e0 add r1, r4, #224 ; 0xe0 <== NOT EXECUTED 300225d0: e28420fc add r2, r4, #252 ; 0xfc <== NOT EXECUTED 300225d4: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 300225d8: ebffffab bl 3002248c <== NOT EXECUTED 300225dc: e3500000 cmp r0, #0 <== NOT EXECUTED 300225e0: 128400e0 addne r0, r4, #224 ; 0xe0 <== NOT EXECUTED 300225e4: 18bd8010 popne {r4, pc} <== NOT EXECUTED 300225e8: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &pwent; } 300225ec: e8bd8010 pop {r4, pc} <== NOT EXECUTED 300225f0: 3005f0e4 .word 0x3005f0e4 300229cc : struct passwd *getpwuid( uid_t uid ) { 300229cc: e92d4003 push {r0, r1, lr} <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 300229d0: e59f1028 ldr r1, [pc, #40] ; 30022a00 <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { 300229d4: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) 300229d8: e28dc004 add ip, sp, #4 <== NOT EXECUTED 300229dc: e281201c add r2, r1, #28 <== NOT EXECUTED 300229e0: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED 300229e4: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED 300229e8: e58dc000 str ip, [sp] <== NOT EXECUTED 300229ec: ebffffe9 bl 30022998 <== NOT EXECUTED 300229f0: e3500000 cmp r0, #0 <== NOT EXECUTED 300229f4: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; 300229f8: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } 300229fc: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED 30022a00: 3005f1c4 .word 0x3005f1c4 30022998 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 30022998: e92d4003 push {r0, r1, lr} <== NOT EXECUTED 3002299c: e1a0c002 mov ip, r2 <== NOT EXECUTED 300229a0: e1a0e001 mov lr, r1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 300229a4: e58d3000 str r3, [sp] <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { 300229a8: e1a01800 lsl r1, r0, #16 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); 300229ac: e1a0300c mov r3, ip <== NOT EXECUTED 300229b0: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED 300229b4: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED 300229b8: e1a0200e mov r2, lr <== NOT EXECUTED 300229bc: e3a00000 mov r0, #0 <== NOT EXECUTED 300229c0: e58dc004 str ip, [sp, #4] <== NOT EXECUTED 300229c4: ebffffbf bl 300228c8 <== NOT EXECUTED } 300229c8: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED 3000890c : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { 3000890c: e92d4033 push {r0, r1, r4, r5, lr} /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { 30008910: e2504000 subs r4, r0, #0 30008914: 1a000004 bne 3000892c errno = EFAULT; 30008918: eb000b54 bl 3000b670 <__errno> <== NOT EXECUTED 3000891c: e3a0300e mov r3, #14 <== NOT EXECUTED 30008920: e5803000 str r3, [r0] <== NOT EXECUTED 30008924: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; 30008928: ea00000c b 30008960 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( 3000892c: e10f5000 mrs r5, CPSR 30008930: e3853080 orr r3, r5, #128 ; 0x80 30008934: e129f003 msr CPSR_fc, r3 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); 30008938: e1a0000d mov r0, sp 3000893c: eb0002cf bl 30009480 <_TOD_Get> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( 30008940: 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; 30008944: e59d3000 ldr r3, [sp] time->tv_usec = useconds; 30008948: e59d0004 ldr r0, [sp, #4] 3000894c: 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; 30008950: e5843000 str r3, [r4] time->tv_usec = useconds; 30008954: eb0030fc bl 30014d4c <__aeabi_idiv> 30008958: e5840004 str r0, [r4, #4] 3000895c: 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; } 30008960: 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: 3005b6a4 .word 0x3005b6a4 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: eb003031 bl 30010f74 <__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: eb00302b bl 30010f74 <__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: 3001ded0 .word 0x3001ded0 30004ef0: 3001e8c0 .word 0x3001e8c0 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: 30017ee8 .word 0x30017ee8 30002ae4: 30017e70 .word 0x30017e70 30020398 : #if !defined(RTEMS_POSIX_API) int kill( pid_t pid, int sig ) { return 0; } 30020398: e3a00000 mov r0, #0 <== NOT EXECUTED 3002039c: e12fff1e bx lr <== NOT EXECUTED 30022af0 : int link( const char *existing, const char *new ) { 30022af0: e92d4070 push {r4, r5, r6, lr} 30022af4: e24dd030 sub sp, sp, #48 ; 0x30 30022af8: e1a04001 mov r4, r1 30022afc: e1a05000 mov r5, r0 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), 30022b00: eb006ed4 bl 3003e658 30022b04: e3a0c001 mov ip, #1 30022b08: e1a01000 mov r1, r0 30022b0c: e3a02000 mov r2, #0 30022b10: e1a00005 mov r0, r5 30022b14: e28d3018 add r3, sp, #24 30022b18: e58dc000 str ip, [sp] 30022b1c: ebff89bc bl 30005214 0, &existing_loc, true ); if ( result != 0 ) 30022b20: e3500000 cmp r0, #0 30022b24: 1a000025 bne 30022bc0 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); 30022b28: e5d43000 ldrb r3, [r4] 30022b2c: e353002f cmp r3, #47 ; 0x2f 30022b30: 1353005c cmpne r3, #92 ; 0x5c 30022b34: 13a05000 movne r5, #0 30022b38: 03a05001 moveq r5, #1 30022b3c: 0a000001 beq 30022b48 30022b40: e3530000 cmp r3, #0 30022b44: 1a000005 bne 30022b60 30022b48: e59f31d8 ldr r3, [pc, #472] ; 30022d28 30022b4c: e28dc004 add ip, sp, #4 30022b50: e593e000 ldr lr, [r3] 30022b54: e3a05001 mov r5, #1 30022b58: e28ee018 add lr, lr, #24 30022b5c: ea000003 b 30022b70 30022b60: e59f31c0 ldr r3, [pc, #448] ; 30022d28 30022b64: e28dc004 add ip, sp, #4 30022b68: e593e000 ldr lr, [r3] 30022b6c: e28ee004 add lr, lr, #4 30022b70: e8be000f ldm lr!, {r0, r1, r2, r3} 30022b74: e8ac000f stmia ip!, {r0, r1, r2, r3} 30022b78: e59e3000 ldr r3, [lr] 30022b7c: e58c3000 str r3, [ip] if ( !parent_loc.ops->evalformake_h ) { 30022b80: e59d3010 ldr r3, [sp, #16] 30022b84: e5933004 ldr r3, [r3, #4] 30022b88: e3530000 cmp r3, #0 30022b8c: 1a00000d bne 30022bc8 rtems_filesystem_freenode( &existing_loc ); 30022b90: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30022b94: e3530000 cmp r3, #0 <== NOT EXECUTED 30022b98: 0a000005 beq 30022bb4 <== NOT EXECUTED 30022b9c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30022ba0: e3530000 cmp r3, #0 <== NOT EXECUTED 30022ba4: 0a000002 beq 30022bb4 <== NOT EXECUTED 30022ba8: e28d0018 add r0, sp, #24 <== NOT EXECUTED 30022bac: e1a0e00f mov lr, pc <== NOT EXECUTED 30022bb0: e12fff13 bx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30022bb4: eb00542d bl 30037c70 <__errno> <== NOT EXECUTED 30022bb8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30022bbc: e5803000 str r3, [r0] 30022bc0: e3e05000 mvn r5, #0 30022bc4: ea000054 b 30022d1c } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); 30022bc8: e28d6004 add r6, sp, #4 30022bcc: e0840005 add r0, r4, r5 30022bd0: e1a01006 mov r1, r6 30022bd4: e28d202c add r2, sp, #44 ; 0x2c 30022bd8: e1a0e00f mov lr, pc 30022bdc: e12fff13 bx r3 if ( result != 0 ) { 30022be0: e2504000 subs r4, r0, #0 30022be4: 0a00000a beq 30022c14 rtems_filesystem_freenode( &existing_loc ); 30022be8: e59d3024 ldr r3, [sp, #36] ; 0x24 30022bec: e3530000 cmp r3, #0 30022bf0: 0a000004 beq 30022c08 30022bf4: e593301c ldr r3, [r3, #28] 30022bf8: e3530000 cmp r3, #0 30022bfc: 128d0018 addne r0, sp, #24 30022c00: 11a0e00f movne lr, pc 30022c04: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( result ); 30022c08: eb005418 bl 30037c70 <__errno> 30022c0c: e5804000 str r4, [r0] 30022c10: eaffffea b 30022bc0 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { 30022c14: e59d3028 ldr r3, [sp, #40] ; 0x28 30022c18: e59d2014 ldr r2, [sp, #20] 30022c1c: e1520003 cmp r2, r3 30022c20: 0a000012 beq 30022c70 rtems_filesystem_freenode( &existing_loc ); 30022c24: e59d3024 ldr r3, [sp, #36] ; 0x24 30022c28: e3530000 cmp r3, #0 30022c2c: 0a000004 beq 30022c44 30022c30: e593301c ldr r3, [r3, #28] 30022c34: e3530000 cmp r3, #0 30022c38: 128d0018 addne r0, sp, #24 30022c3c: 11a0e00f movne lr, pc 30022c40: 112fff13 bxne r3 rtems_filesystem_freenode( &parent_loc ); 30022c44: e59d3010 ldr r3, [sp, #16] 30022c48: e3530000 cmp r3, #0 30022c4c: 0a000004 beq 30022c64 30022c50: e593301c ldr r3, [r3, #28] 30022c54: e3530000 cmp r3, #0 30022c58: 128d0004 addne r0, sp, #4 30022c5c: 11a0e00f movne lr, pc 30022c60: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( EXDEV ); 30022c64: eb005401 bl 30037c70 <__errno> 30022c68: e3a03012 mov r3, #18 30022c6c: eaffffd2 b 30022bbc } if ( !parent_loc.ops->link_h ) { 30022c70: e59d3010 ldr r3, [sp, #16] 30022c74: e5933008 ldr r3, [r3, #8] 30022c78: e3530000 cmp r3, #0 30022c7c: 1a00000f bne 30022cc0 rtems_filesystem_freenode( &existing_loc ); 30022c80: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 30022c84: e3530000 cmp r3, #0 <== NOT EXECUTED 30022c88: 0a000004 beq 30022ca0 <== NOT EXECUTED 30022c8c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30022c90: e3530000 cmp r3, #0 <== NOT EXECUTED 30022c94: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 30022c98: 11a0e00f movne lr, pc <== NOT EXECUTED 30022c9c: 112fff13 bxne r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); 30022ca0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30022ca4: e3530000 cmp r3, #0 <== NOT EXECUTED 30022ca8: 0affffc1 beq 30022bb4 <== NOT EXECUTED 30022cac: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30022cb0: e3530000 cmp r3, #0 <== NOT EXECUTED 30022cb4: 128d0004 addne r0, sp, #4 <== NOT EXECUTED 30022cb8: 1affffbb bne 30022bac <== NOT EXECUTED 30022cbc: eaffffbc b 30022bb4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); 30022cc0: e28d4018 add r4, sp, #24 30022cc4: e1a01006 mov r1, r6 30022cc8: e1a00004 mov r0, r4 30022ccc: e59d202c ldr r2, [sp, #44] ; 0x2c 30022cd0: e1a0e00f mov lr, pc 30022cd4: e12fff13 bx r3 rtems_filesystem_freenode( &existing_loc ); 30022cd8: 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 ); 30022cdc: e1a05000 mov r5, r0 rtems_filesystem_freenode( &existing_loc ); 30022ce0: e3530000 cmp r3, #0 30022ce4: 0a000004 beq 30022cfc 30022ce8: e593301c ldr r3, [r3, #28] 30022cec: e3530000 cmp r3, #0 30022cf0: 11a00004 movne r0, r4 30022cf4: 11a0e00f movne lr, pc 30022cf8: 112fff13 bxne r3 rtems_filesystem_freenode( &parent_loc ); 30022cfc: e59d3010 ldr r3, [sp, #16] 30022d00: e3530000 cmp r3, #0 30022d04: 0a000004 beq 30022d1c 30022d08: e593301c ldr r3, [r3, #28] 30022d0c: e3530000 cmp r3, #0 30022d10: 128d0004 addne r0, sp, #4 30022d14: 11a0e00f movne lr, pc 30022d18: 112fff13 bxne r3 return result; } 30022d1c: e1a00005 mov r0, r5 30022d20: e28dd030 add sp, sp, #48 ; 0x30 30022d24: e8bd8070 pop {r4, r5, r6, pc} 30022d28: 3005b6a4 .word 0x3005b6a4 300164f0 : { rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 300164f0: e59fc0ec ldr ip, [pc, #236] ; 300165e4 off_t lseek( int fd, off_t offset, int whence ) { 300164f4: e92d4870 push {r4, r5, r6, fp, lr} rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); 300164f8: e59cc000 ldr ip, [ip] 300164fc: e150000c cmp r0, ip 30016500: 2a000005 bcs 3001651c iop = rtems_libio_iop( fd ); 30016504: e59fc0dc ldr ip, [pc, #220] ; 300165e8 30016508: e59c4000 ldr r4, [ip] 3001650c: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); 30016510: e5940014 ldr r0, [r4, #20] 30016514: e3100c01 tst r0, #256 ; 0x100 30016518: 1a000002 bne 30016528 3001651c: ebffd453 bl 3000b670 <__errno> 30016520: e3a03009 mov r3, #9 30016524: ea00001c b 3001659c /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) 30016528: e594003c ldr r0, [r4, #60] ; 0x3c 3001652c: e5900014 ldr r0, [r0, #20] 30016530: e3500000 cmp r0, #0 30016534: 1a000002 bne 30016544 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30016538: ebffd44c bl 3000b670 <__errno> <== NOT EXECUTED 3001653c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30016540: ea000015 b 3001659c <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { 30016544: e3530001 cmp r3, #1 /* * Now process the lseek(). */ old_offset = iop->offset; 30016548: e284600c add r6, r4, #12 3001654c: e8960060 ldm r6, {r5, r6} switch ( whence ) { 30016550: 0a000006 beq 30016570 30016554: e3530002 cmp r3, #2 30016558: 0a000007 beq 3001657c 3001655c: e3530000 cmp r3, #0 30016560: 1a00000b bne 30016594 case SEEK_SET: iop->offset = offset; 30016564: e584100c str r1, [r4, #12] 30016568: e5842010 str r2, [r4, #16] break; 3001656c: ea00000e b 300165ac case SEEK_CUR: iop->offset += offset; 30016570: e091b005 adds fp, r1, r5 30016574: e0a2c006 adc ip, r2, r6 30016578: ea000002 b 30016588 break; case SEEK_END: iop->offset = iop->size + offset; 3001657c: e9941800 ldmib r4, {fp, ip} 30016580: e09bb001 adds fp, fp, r1 30016584: e0acc002 adc ip, ip, r2 30016588: e584b00c str fp, [r4, #12] 3001658c: e584c010 str ip, [r4, #16] break; 30016590: ea000005 b 300165ac default: rtems_set_errno_and_return_minus_one( EINVAL ); 30016594: ebffd435 bl 3000b670 <__errno> 30016598: e3a03016 mov r3, #22 3001659c: e5803000 str r3, [r0] 300165a0: e3e02000 mvn r2, #0 300165a4: e3e03000 mvn r3, #0 300165a8: ea00000a b 300165d8 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 300165ac: e594c03c ldr ip, [r4, #60] ; 0x3c 300165b0: e1a00004 mov r0, r4 300165b4: e1a0e00f mov lr, pc 300165b8: e59cf014 ldr pc, [ip, #20] if ( status == (off_t) -1 ) 300165bc: e3700001 cmn r0, #1 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); 300165c0: e1a02000 mov r2, r0 300165c4: e1a03001 mov r3, r1 if ( status == (off_t) -1 ) 300165c8: 1a000002 bne 300165d8 300165cc: e3710001 cmn r1, #1 iop->offset = old_offset; 300165d0: 0584500c streq r5, [r4, #12] 300165d4: 05846010 streq r6, [r4, #16] /* * So if the operation failed, we have to restore iop->offset. */ return status; } 300165d8: e1a01003 mov r1, r3 300165dc: e1a00002 mov r0, r2 300165e0: e8bd8870 pop {r4, r5, r6, fp, pc} 300165e4: 30017c8c .word 0x30017c8c 300165e8: 300185ac .word 0x300185ac 30022e48 : int _STAT_NAME( const char *path, struct stat *buf ) { 30022e48: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 30022e4c: e2515000 subs r5, r1, #0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { 30022e50: e24dd018 sub sp, sp, #24 <== NOT EXECUTED 30022e54: e1a06000 mov r6, r0 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) 30022e58: 1a000002 bne 30022e68 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); 30022e5c: eb005383 bl 30037c70 <__errno> <== NOT EXECUTED 30022e60: e3a0300e mov r3, #14 <== NOT EXECUTED 30022e64: ea000018 b 30022ecc <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), 30022e68: eb006dfa bl 3003e658 <== NOT EXECUTED 30022e6c: e28d4004 add r4, sp, #4 <== NOT EXECUTED 30022e70: e3a0c000 mov ip, #0 <== NOT EXECUTED 30022e74: e1a01000 mov r1, r0 <== NOT EXECUTED 30022e78: e1a0200c mov r2, ip <== NOT EXECUTED 30022e7c: e1a00006 mov r0, r6 <== NOT EXECUTED 30022e80: e1a03004 mov r3, r4 <== NOT EXECUTED 30022e84: e58dc000 str ip, [sp] <== NOT EXECUTED 30022e88: ebff88e1 bl 30005214 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) 30022e8c: e2501000 subs r1, r0, #0 <== NOT EXECUTED 30022e90: 1a00000e bne 30022ed0 <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ 30022e94: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 30022e98: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED 30022e9c: e3530000 cmp r3, #0 <== NOT EXECUTED 30022ea0: 1a00000c bne 30022ed8 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30022ea4: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 30022ea8: e3530000 cmp r3, #0 <== NOT EXECUTED 30022eac: 0a000004 beq 30022ec4 <== NOT EXECUTED 30022eb0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30022eb4: e3530000 cmp r3, #0 <== NOT EXECUTED 30022eb8: 11a00004 movne r0, r4 <== NOT EXECUTED 30022ebc: 11a0e00f movne lr, pc <== NOT EXECUTED 30022ec0: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 30022ec4: eb005369 bl 30037c70 <__errno> <== NOT EXECUTED 30022ec8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30022ecc: e5803000 str r3, [r0] <== NOT EXECUTED 30022ed0: e3e05000 mvn r5, #0 <== NOT EXECUTED 30022ed4: ea000010 b 30022f1c <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); 30022ed8: e3a02048 mov r2, #72 ; 0x48 <== NOT EXECUTED 30022edc: e1a00005 mov r0, r5 <== NOT EXECUTED 30022ee0: eb00601a bl 3003af50 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); 30022ee4: e1a01005 mov r1, r5 <== NOT EXECUTED 30022ee8: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED 30022eec: e1a00004 mov r0, r4 <== NOT EXECUTED 30022ef0: e1a0e00f mov lr, pc <== NOT EXECUTED 30022ef4: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30022ef8: 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 ); 30022efc: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30022f00: e3530000 cmp r3, #0 <== NOT EXECUTED 30022f04: 0a000004 beq 30022f1c <== NOT EXECUTED 30022f08: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30022f0c: e3530000 cmp r3, #0 <== NOT EXECUTED 30022f10: 11a00004 movne r0, r4 <== NOT EXECUTED 30022f14: 11a0e00f movne lr, pc <== NOT EXECUTED 30022f18: 112fff13 bxne r3 <== NOT EXECUTED return status; } 30022f1c: e1a00005 mov r0, r5 <== NOT EXECUTED 30022f20: e28dd018 add sp, sp, #24 <== NOT EXECUTED 30022f24: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 30008c80 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); 30008c80: e59f30d8 ldr r3, [pc, #216] ; 30008d60 30008c84: e92d4070 push {r4, r5, r6, lr} 30008c88: e5932004 ldr r2, [r3, #4] 30008c8c: e1a04000 mov r4, r0 30008c90: e2822001 add r2, r2, #1 30008c94: e5832004 str r2, [r3, #4] /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); 30008c98: ebffffef bl 30008c5c /* * Validate the parameters */ if ( !size ) 30008c9c: e3540000 cmp r4, #0 30008ca0: 0a00002b beq 30008d54 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && 30008ca4: e59f30b8 ldr r3, [pc, #184] ; 30008d64 30008ca8: e5933000 ldr r3, [r3] 30008cac: e3530003 cmp r3, #3 30008cb0: 1a000002 bne 30008cc0 30008cb4: ebffffd1 bl 30008c00 30008cb8: e3500000 cmp r0, #0 30008cbc: 0a000024 beq 30008d54 RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); 30008cc0: e59f30a0 ldr r3, [pc, #160] ; 30008d68 30008cc4: e3a02000 mov r2, #0 30008cc8: e5930000 ldr r0, [r3] 30008ccc: e1a01004 mov r1, r4 30008cd0: e1a03002 mov r3, r2 30008cd4: eb000324 bl 3000996c <_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 ) { 30008cd8: 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; 30008cdc: 11a05006 movne r5, r6 * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { 30008ce0: 1a00000c bne 30008d18 if (rtems_malloc_sbrk_helpers) 30008ce4: e59f3080 ldr r3, [pc, #128] ; 30008d6c 30008ce8: e5933000 ldr r3, [r3] 30008cec: e3530000 cmp r3, #0 30008cf0: 0a000004 beq 30008d08 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); 30008cf4: e1a00004 mov r0, r4 <== NOT EXECUTED 30008cf8: e1a0e00f mov lr, pc <== NOT EXECUTED 30008cfc: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( !return_this ) { 30008d00: e2505000 subs r5, r0, #0 <== NOT EXECUTED 30008d04: 1a000003 bne 30008d18 <== NOT EXECUTED errno = ENOMEM; 30008d08: eb000a58 bl 3000b670 <__errno> 30008d0c: e3a0300c mov r3, #12 30008d10: e5803000 str r3, [r0] return (void *) 0; 30008d14: ea00000f b 30008d58 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) 30008d18: e59f3050 ldr r3, [pc, #80] ; 30008d70 30008d1c: e5933000 ldr r3, [r3] 30008d20: e3530000 cmp r3, #0 (*rtems_malloc_dirty_helper)( return_this, size ); 30008d24: 11a01004 movne r1, r4 30008d28: 11a00005 movne r0, r5 30008d2c: 11a0e00f movne lr, pc 30008d30: 1593f000 ldrne pc, [r3] /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) 30008d34: e59f3038 ldr r3, [pc, #56] ; 30008d74 30008d38: e5933000 ldr r3, [r3] 30008d3c: e3530000 cmp r3, #0 (*rtems_malloc_statistics_helpers->at_malloc)(return_this); 30008d40: 11a00005 movne r0, r5 30008d44: 11a0e00f movne lr, pc 30008d48: 1593f004 ldrne pc, [r3, #4] 30008d4c: e1a06005 mov r6, r5 30008d50: ea000000 b 30008d58 30008d54: e3a06000 mov r6, #0 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } 30008d58: e1a00006 mov r0, r6 30008d5c: e8bd8070 pop {r4, r5, r6, pc} 30008d60: 300185b8 .word 0x300185b8 30008d64: 300188d0 .word 0x300188d0 30008d68: 30017c98 .word 0x30017c98 30008d6c: 3001840c .word 0x3001840c 30008d70: 30018410 .word 0x30018410 30008d74: 30018408 .word 0x30018408 30008c4c : } void malloc_deferred_free( void *pointer ) { 30008c4c: e1a01000 mov r1, r0 <== NOT EXECUTED 30008c50: e59f0000 ldr r0, [pc, #0] ; 30008c58 <== NOT EXECUTED 30008c54: eaffefe4 b 30004bec <_Chain_Append> <== NOT EXECUTED 30008c58: 30018920 .word 0x30018920 30008c5c : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { 30008c5c: 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) 30008c60: ea000000 b 30008c68 free(to_be_freed); 30008c64: ebfffec5 bl 30008780 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); 30008c68: e59f000c ldr r0, [pc, #12] ; 30008c7c 30008c6c: eb00019b bl 300092e0 <_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) 30008c70: e3500000 cmp r0, #0 30008c74: 1afffffa bne 30008c64 free(to_be_freed); } 30008c78: e49df004 pop {pc} ; (ldr pc, [sp], #4) 30008c7c: 30018920 .word 0x30018920 3000fa30 : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { 3000fa30: e92d4013 push {r0, r1, r4, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 3000fa34: 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 ) 3000fa38: e5943054 ldr r3, [r4, #84] ; 0x54 3000fa3c: e1530002 cmp r3, r2 3000fa40: ba000003 blt 3000fa54 3000fa44: 1a000005 bne 3000fa60 3000fa48: e5943050 ldr r3, [r4, #80] ; 0x50 3000fa4c: e1530001 cmp r3, r1 3000fa50: 2a000002 bcs 3000fa60 return IMFS_memfile_extend( the_jnode, length ); 3000fa54: e1a00004 mov r0, r4 <== NOT EXECUTED 3000fa58: ebffff9a bl 3000f8c8 <== NOT EXECUTED 3000fa5c: ea000008 b 3000fa84 <== 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; 3000fa60: e5841050 str r1, [r4, #80] ; 0x50 3000fa64: e5842054 str r2, [r4, #84] ; 0x54 iop->size = the_jnode->info.file.size; 3000fa68: e9800006 stmib r0, {r1, r2} IMFS_update_atime( the_jnode ); 3000fa6c: e3a01000 mov r1, #0 3000fa70: e1a0000d mov r0, sp 3000fa74: ebffcc12 bl 30002ac4 3000fa78: e59d3000 ldr r3, [sp] 3000fa7c: e3a00000 mov r0, #0 3000fa80: e5843040 str r3, [r4, #64] ; 0x40 return 0; } 3000fa84: e8bd801c pop {r2, r3, r4, pc} 3000fa88 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 3000fa88: e92d4030 push {r4, r5, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 3000fa8c: e5905038 ldr r5, [r0, #56] ; 0x38 rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { 3000fa90: e1a04000 mov r4, r0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { 3000fa94: e595304c ldr r3, [r5, #76] ; 0x4c 3000fa98: e3530006 cmp r3, #6 3000fa9c: 1a00000b bne 3000fad0 if (iop->offset > the_jnode->info.linearfile.size) 3000faa0: e5953054 ldr r3, [r5, #84] ; 0x54 <== NOT EXECUTED 3000faa4: e5901010 ldr r1, [r0, #16] <== NOT EXECUTED 3000faa8: e5952050 ldr r2, [r5, #80] ; 0x50 <== NOT EXECUTED 3000faac: e1510003 cmp r1, r3 <== NOT EXECUTED 3000fab0: ca000003 bgt 3000fac4 <== NOT EXECUTED 3000fab4: 1a000014 bne 3000fb0c <== NOT EXECUTED 3000fab8: e590100c ldr r1, [r0, #12] <== NOT EXECUTED 3000fabc: e1510002 cmp r1, r2 <== NOT EXECUTED 3000fac0: 9a000011 bls 3000fb0c <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; 3000fac4: e584200c str r2, [r4, #12] <== NOT EXECUTED 3000fac8: e5843010 str r3, [r4, #16] <== NOT EXECUTED 3000facc: ea00000e b 3000fb0c <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) 3000fad0: e1a00005 mov r0, r5 3000fad4: e284200c add r2, r4, #12 3000fad8: e8920006 ldm r2, {r1, r2} 3000fadc: ebffff79 bl 3000f8c8 3000fae0: e3500000 cmp r0, #0 3000fae4: 0a000005 beq 3000fb00 rtems_set_errno_and_return_minus_one( ENOSPC ); 3000fae8: eb000428 bl 30010b90 <__errno> <== NOT EXECUTED 3000faec: e3a0301c mov r3, #28 <== NOT EXECUTED 3000faf0: e5803000 str r3, [r0] <== NOT EXECUTED 3000faf4: e3e04000 mvn r4, #0 <== NOT EXECUTED 3000faf8: e3e03000 mvn r3, #0 <== NOT EXECUTED 3000fafc: ea000004 b 3000fb14 <== NOT EXECUTED iop->size = the_jnode->info.file.size; 3000fb00: e2853050 add r3, r5, #80 ; 0x50 3000fb04: e893000c ldm r3, {r2, r3} 3000fb08: e984000c stmib r4, {r2, r3} } return iop->offset; 3000fb0c: e284400c add r4, r4, #12 3000fb10: e8940018 ldm r4, {r3, r4} } 3000fb14: e1a01004 mov r1, r4 3000fb18: e1a00003 mov r0, r3 3000fb1c: e8bd8030 pop {r4, r5, pc} 3000fda4 : the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 3000fda4: e5903014 ldr r3, [r0, #20] rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 3000fda8: 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)) 3000fdac: e3130f81 tst r3, #516 ; 0x204 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { 3000fdb0: e1a05000 mov r5, r0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; 3000fdb4: e5904038 ldr r4, [r0, #56] ; 0x38 /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) 3000fdb8: 0a000017 beq 3000fe1c && (the_jnode->type == IMFS_LINEAR_FILE)) { 3000fdbc: e594304c ldr r3, [r4, #76] ; 0x4c 3000fdc0: e3530006 cmp r3, #6 3000fdc4: 1a000014 bne 3000fe1c uint32_t count = the_jnode->info.linearfile.size; 3000fdc8: 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; 3000fdcc: 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; 3000fdd0: e3a03005 mov r3, #5 <== NOT EXECUTED the_jnode->info.file.size = 0; 3000fdd4: e3a00000 mov r0, #0 <== NOT EXECUTED 3000fdd8: 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) 3000fddc: 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; 3000fde0: 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; 3000fde4: 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; 3000fde8: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; 3000fdec: e5840050 str r0, [r4, #80] ; 0x50 <== NOT EXECUTED 3000fdf0: e5841054 str r1, [r4, #84] ; 0x54 <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; 3000fdf4: 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; 3000fdf8: 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) 3000fdfc: 0a000006 beq 3000fe1c <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) 3000fe00: e1a02001 mov r2, r1 <== NOT EXECUTED 3000fe04: e1a01000 mov r1, r0 <== NOT EXECUTED 3000fe08: e1a00004 mov r0, r4 <== NOT EXECUTED 3000fe0c: e58dc000 str ip, [sp] <== NOT EXECUTED 3000fe10: ebffff42 bl 3000fb20 <== 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) 3000fe14: e3700001 cmn r0, #1 <== NOT EXECUTED 3000fe18: 0a000009 beq 3000fe44 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) 3000fe1c: e5953014 ldr r3, [r5, #20] 3000fe20: e3130c02 tst r3, #512 ; 0x200 iop->offset = the_jnode->info.file.size; 3000fe24: 12843050 addne r3, r4, #80 ; 0x50 3000fe28: 1893000c ldmne r3, {r2, r3} 3000fe2c: 1585200c strne r2, [r5, #12] 3000fe30: 15853010 strne r3, [r5, #16] iop->size = the_jnode->info.file.size; 3000fe34: e2844050 add r4, r4, #80 ; 0x50 3000fe38: e8940018 ldm r4, {r3, r4} 3000fe3c: e9850018 stmib r5, {r3, r4} 3000fe40: e3a00000 mov r0, #0 return 0; } 3000fe44: 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: eb00281f bl 3000b670 <__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: eb002802 bl 3000b670 <__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: 30017e84 .word 0x30017e84 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: eb0027c5 bl 3000b670 <__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: eb0027bf bl 3000b670 <__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: eb002ba7 bl 3000c634 <== NOT EXECUTED 30001794: e280006d add r0, r0, #109 ; 0x6d <== NOT EXECUTED temp_mt_entry = malloc( size ); 30001798: eb001d38 bl 30008c80 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: eb0027af bl 3000b670 <__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: 1b002b58 blne 3000c544 /* * 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: eb002b90 bl 3000c634 * 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: eb002790 bl 3000b670 <__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: eb002788 bl 3000b670 <__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: eb002779 bl 3000b670 <__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: eb002776 bl 3000b670 <__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: eb000cb2 bl 30004bec <_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: eb001b8f bl 30008780 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: 300185e4 .word 0x300185e4 30001a14 : */ int newlib_free_buffers( FILE *fp ) { 30001a14: e92d4010 push {r4, lr} 30001a18: e1a04000 mov r4, r0 switch ( fileno(fp) ) { 30001a1c: eb002812 bl 3000ba6c 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: eb001b50 bl 30008780 <== 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: eb002750 bl 3000b7a4 <== 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: eb001b95 bl 30008b18 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: eb002a57 bl 3000c634 /* * 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: eb00265b bl 3000b670 <__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: eb00264c bl 3000b670 <__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: eb002a38 bl 3000c634 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: eb001b87 bl 30008bcc 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: eb00261a bl 3000b670 <__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: eb001a7b bl 30008824 if ( rc ) { 30001e34: e2505000 subs r5, r0, #0 30001e38: 0a00001f beq 30001ebc if(errno) rc = errno; 30001e3c: eb00260b bl 3000b670 <__errno> <== NOT EXECUTED 30001e40: e5903000 ldr r3, [r0] <== NOT EXECUTED 30001e44: e3530000 cmp r3, #0 <== NOT EXECUTED 30001e48: 0a000001 beq 30001e54 <== NOT EXECUTED 30001e4c: eb002607 bl 3000b670 <__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: eb001a1c bl 300086dc <== 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: 1b001b0d blne 30008abc 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: eb0025ef bl 3000b670 <__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: 300185ac .word 0x300185ac 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: eb000b32 bl 30004948 <== NOT EXECUTED 30001c7c: 3001775f .word 0x3001775f 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: 300178f1 .word 0x300178f1 30002700: 300177c2 .word 0x300177c2 30002704: 30017ee8 .word 0x30017ee8 3000b1a4 : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 3000b1a4: e92d4070 push {r4, r5, r6, lr} 3000b1a8: 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) 3000b1ac: e28d5004 add r5, sp, #4 3000b1b0: e3a0c001 mov ip, #1 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { 3000b1b4: 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) 3000b1b8: e3a01003 mov r1, #3 3000b1bc: e59f0140 ldr r0, [pc, #320] ; 3000b304 3000b1c0: e3a02007 mov r2, #7 3000b1c4: e1a03005 mov r3, r5 3000b1c8: e58dc000 str ip, [sp] 3000b1cc: ebffd863 bl 30001360 3000b1d0: e3500000 cmp r0, #0 3000b1d4: 0a000009 beq 3000b200 != 0) { if (errno != ENOENT) 3000b1d8: eb000124 bl 3000b670 <__errno> 3000b1dc: e5903000 ldr r3, [r0] 3000b1e0: e3530002 cmp r3, #2 3000b1e4: 1a000043 bne 3000b2f8 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) 3000b1e8: e59f0114 ldr r0, [pc, #276] ; 3000b304 3000b1ec: e59f1114 ldr r1, [pc, #276] ; 3000b308 3000b1f0: ebffd8f1 bl 300015bc 3000b1f4: e3500000 cmp r0, #0 3000b1f8: 0a000008 beq 3000b220 3000b1fc: ea00003d b 3000b2f8 <== NOT EXECUTED return -1; } else rtems_filesystem_freenode(&loc); 3000b200: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED 3000b204: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b208: 0a000004 beq 3000b220 <== NOT EXECUTED 3000b20c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000b210: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b214: 11a00005 movne r0, r5 <== NOT EXECUTED 3000b218: 11a0e00f movne lr, pc <== NOT EXECUTED 3000b21c: 112fff13 bxne r3 <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); 3000b220: e28d5018 add r5, sp, #24 3000b224: e59f10e0 ldr r1, [pc, #224] ; 3000b30c 3000b228: e3a0200a mov r2, #10 3000b22c: e1a00005 mov r0, r5 3000b230: eb00031c bl 3000bea8 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); 3000b234: e59f30d4 ldr r3, [pc, #212] ; 3000b310 3000b238: e59f10d4 ldr r1, [pc, #212] ; 3000b314 3000b23c: e1d3c0b0 ldrh ip, [r3] 3000b240: e285000a add r0, r5, #10 3000b244: e1a0200c mov r2, ip 3000b248: e28cc001 add ip, ip, #1 3000b24c: e1c3c0b0 strh ip, [r3] 3000b250: eb0003ba bl 3000c140 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { 3000b254: e1a00005 mov r0, r5 3000b258: e3a01d06 mov r1, #384 ; 0x180 3000b25c: eb00003f bl 3000b360 3000b260: e2506000 subs r6, r0, #0 3000b264: 0a000001 beq 3000b270 if (errno != EEXIST){ 3000b268: eb000100 bl 3000b670 <__errno> <== NOT EXECUTED 3000b26c: ea000021 b 3000b2f8 <== 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); 3000b270: e1a00005 mov r0, r5 3000b274: e3a01901 mov r1, #16384 ; 0x4000 3000b278: ebffda82 bl 30001c88 if (filsdes[0] < 0) { 3000b27c: 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); 3000b280: e5840000 str r0, [r4] if (filsdes[0] < 0) { 3000b284: aa000003 bge 3000b298 err = errno; 3000b288: eb0000f8 bl 3000b670 <__errno> 3000b28c: 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); 3000b290: e1a00005 mov r0, r5 3000b294: ea000014 b 3000b2ec } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); 3000b298: e59f3078 ldr r3, [pc, #120] ; 3000b318 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); 3000b29c: 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]); 3000b2a0: e5933000 ldr r3, [r3] <== NOT EXECUTED 3000b2a4: e1500003 cmp r0, r3 <== NOT EXECUTED 3000b2a8: 359f306c ldrcc r3, [pc, #108] ; 3000b31c <== NOT EXECUTED 3000b2ac: 35936000 ldrcc r6, [r3] <== NOT EXECUTED 3000b2b0: 30866300 addcc r6, r6, r0, lsl #6 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; 3000b2b4: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 3000b2b8: 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; 3000b2bc: e3c33001 bic r3, r3, #1 <== NOT EXECUTED 3000b2c0: e5863014 str r3, [r6, #20] <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); 3000b2c4: ebffda6f bl 30001c88 <== NOT EXECUTED if (filsdes[1] < 0) { 3000b2c8: 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); 3000b2cc: e5840004 str r0, [r4, #4] <== NOT EXECUTED if (filsdes[1] < 0) { 3000b2d0: a3a06000 movge r6, #0 <== NOT EXECUTED 3000b2d4: aa000003 bge 3000b2e8 <== NOT EXECUTED err = errno; 3000b2d8: eb0000e4 bl 3000b670 <__errno> <== NOT EXECUTED 3000b2dc: e5906000 ldr r6, [r0] <== NOT EXECUTED close(filsdes[0]); 3000b2e0: e5940000 ldr r0, [r4] <== NOT EXECUTED 3000b2e4: ebfff4fc bl 300086dc <== NOT EXECUTED } unlink(fifopath); 3000b2e8: e28d0018 add r0, sp, #24 <== NOT EXECUTED 3000b2ec: eb00001f bl 3000b370 } rtems_set_errno_and_return_minus_one(err); 3000b2f0: eb0000de bl 3000b670 <__errno> 3000b2f4: e5806000 str r6, [r0] } 3000b2f8: e3e00000 mvn r0, #0 3000b2fc: e28dd028 add sp, sp, #40 ; 0x28 3000b300: e8bd8070 pop {r4, r5, r6, pc} 3000b304: 30017a3a .word 0x30017a3a 3000b308: 000003ff .word 0x000003ff 3000b30c: 30017a3f .word 0x30017a3f 3000b310: 3001852e .word 0x3001852e 3000b314: 30017a4a .word 0x30017a4a 3000b318: 30017c8c .word 0x30017c8c 3000b31c: 300185ac .word 0x300185ac 3000a360 : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { 3000a360: e92d4010 push {r4, lr} <== NOT EXECUTED 3000a364: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); 3000a368: e590002c ldr r0, [r0, #44] ; 0x2c <== NOT EXECUTED 3000a36c: eb000202 bl 3000ab7c <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); 3000a370: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000a374: eb000200 bl 3000ab7c <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); 3000a378: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a37c: ebffe7b7 bl 30004260 <== NOT EXECUTED free(pipe->Buffer); 3000a380: e5940000 ldr r0, [r4] <== NOT EXECUTED 3000a384: ebfff8fd bl 30008780 <== NOT EXECUTED free(pipe); 3000a388: e1a00004 mov r0, r4 <== NOT EXECUTED } 3000a38c: 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); 3000a390: eafff8fa b 30008780 <== NOT EXECUTED 3000a000 : uint32_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { 3000a000: e59f3054 ldr r3, [pc, #84] ; 3000a05c <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 3000a004: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED if (cmd == FIONREAD) { 3000a008: e1510003 cmp r1, r3 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { 3000a00c: e1a04000 mov r4, r0 <== NOT EXECUTED 3000a010: e1a05002 mov r5, r2 <== NOT EXECUTED if (cmd == FIONREAD) { 3000a014: 13e00015 mvnne r0, #21 <== NOT EXECUTED 3000a018: 18bd8070 popne {r4, r5, r6, pc} <== NOT EXECUTED if (buffer == NULL) 3000a01c: e3520000 cmp r2, #0 <== NOT EXECUTED 3000a020: 03e0000d mvneq r0, #13 <== NOT EXECUTED 3000a024: 08bd8070 popeq {r4, r5, r6, pc} <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) 3000a028: e3a01000 mov r1, #0 <== NOT EXECUTED 3000a02c: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a030: e1a02001 mov r2, r1 <== NOT EXECUTED 3000a034: ebffe8b0 bl 300042fc <== NOT EXECUTED 3000a038: e2506000 subs r6, r0, #0 <== NOT EXECUTED 3000a03c: 13e00003 mvnne r0, #3 <== NOT EXECUTED 3000a040: 18bd8070 popne {r4, r5, r6, pc} <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 3000a044: e594300c ldr r3, [r4, #12] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000a048: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; 3000a04c: e5853000 str r3, [r5] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000a050: ebffe8ef bl 30004414 <== NOT EXECUTED 3000a054: e1a00006 mov r0, r6 <== NOT EXECUTED return 0; } return -EINVAL; } 3000a058: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 3000a05c: 4004667f .word 0x4004667f 30009f98 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } 30009f98: e3e0001c mvn r0, #28 <== NOT EXECUTED 30009f9c: e12fff1e bx lr <== NOT EXECUTED 3000a1f0 : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 3000a1f0: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED 3000a1f4: e1a09001 mov r9, r1 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 3000a1f8: e3a01000 mov r1, #0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 3000a1fc: e1a04000 mov r4, r0 <== NOT EXECUTED 3000a200: e1a05002 mov r5, r2 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 3000a204: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED 3000a208: e1a02001 mov r2, r1 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { 3000a20c: e1a0a003 mov sl, r3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 3000a210: ebffe839 bl 300042fc <== NOT EXECUTED 3000a214: e2506000 subs r6, r0, #0 <== NOT EXECUTED 3000a218: 13e06003 mvnne r6, #3 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); 3000a21c: 01a0b00d moveq fp, sp <== NOT EXECUTED rtems_libio_t *iop ) { int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) 3000a220: 0a000045 beq 3000a33c <== NOT EXECUTED 3000a224: ea00004b b 3000a358 <== NOT EXECUTED return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) 3000a228: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED 3000a22c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000a230: 0a000043 beq 3000a344 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { 3000a234: e59a7014 ldr r7, [sl, #20] <== NOT EXECUTED 3000a238: e2177001 ands r7, r7, #1 <== NOT EXECUTED 3000a23c: 13e0700a mvnne r7, #10 <== NOT EXECUTED 3000a240: 1a000040 bne 3000a348 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; 3000a244: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000a248: 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 ++; 3000a24c: e2833001 add r3, r3, #1 <== NOT EXECUTED 3000a250: e5843018 str r3, [r4, #24] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000a254: ebffe86e bl 30004414 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) 3000a258: e1a01007 mov r1, r7 <== NOT EXECUTED 3000a25c: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000a260: eb000273 bl 3000ac34 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000a264: e1a01007 mov r1, r7 <== NOT EXECUTED 3000a268: 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)) 3000a26c: e2507000 subs r7, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000a270: 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)) 3000a274: 13e07003 mvnne r7, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000a278: ebffe81f bl 300042fc <== NOT EXECUTED 3000a27c: e3500000 cmp r0, #0 <== NOT EXECUTED 3000a280: 13e07003 mvnne r7, #3 <== NOT EXECUTED 3000a284: 1a000031 bne 3000a350 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 3000a288: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED if (ret != 0) 3000a28c: e3570000 cmp r7, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; 3000a290: e2433001 sub r3, r3, #1 <== NOT EXECUTED 3000a294: e5843018 str r3, [r4, #24] <== NOT EXECUTED if (ret != 0) 3000a298: 1a00002a bne 3000a348 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { 3000a29c: e594200c ldr r2, [r4, #12] <== NOT EXECUTED 3000a2a0: e3520000 cmp r2, #0 <== NOT EXECUTED 3000a2a4: 0affffdf beq 3000a228 <== NOT EXECUTED goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; 3000a2a8: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED 3000a2ac: e5948004 ldr r8, [r4, #4] <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); 3000a2b0: e0667005 rsb r7, r6, r5 <== NOT EXECUTED 3000a2b4: e1520007 cmp r2, r7 <== NOT EXECUTED 3000a2b8: 31a07002 movcc r7, r2 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; 3000a2bc: e0638008 rsb r8, r3, r8 <== NOT EXECUTED 3000a2c0: e5941000 ldr r1, [r4] <== NOT EXECUTED if (chunk > chunk1) { 3000a2c4: e1570008 cmp r7, r8 <== NOT EXECUTED 3000a2c8: 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); 3000a2cc: d0811003 addle r1, r1, r3 <== NOT EXECUTED 3000a2d0: d1a02007 movle r2, r7 <== NOT EXECUTED } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; if (chunk > chunk1) { 3000a2d4: da000006 ble 3000a2f4 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); 3000a2d8: e0811003 add r1, r1, r3 <== NOT EXECUTED 3000a2dc: e1a02008 mov r2, r8 <== NOT EXECUTED 3000a2e0: eb0006f0 bl 3000bea8 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); 3000a2e4: e0860008 add r0, r6, r8 <== NOT EXECUTED 3000a2e8: e5941000 ldr r1, [r4] <== NOT EXECUTED 3000a2ec: e0890000 add r0, r9, r0 <== NOT EXECUTED 3000a2f0: e0682007 rsb r2, r8, r7 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); 3000a2f4: eb0006eb bl 3000bea8 <== NOT EXECUTED pipe->Start += chunk; 3000a2f8: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED pipe->Start %= pipe->Size; 3000a2fc: 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; 3000a300: e0870000 add r0, r7, r0 <== NOT EXECUTED 3000a304: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Start %= pipe->Size; 3000a308: eb002adf bl 30014e8c <__umodsi3> <== NOT EXECUTED pipe->Length -= chunk; 3000a30c: e594300c ldr r3, [r4, #12] <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; 3000a310: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Length -= chunk; 3000a314: e0673003 rsb r3, r7, r3 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) 3000a318: e3530000 cmp r3, #0 <== NOT EXECUTED pipe->Start = 0; 3000a31c: 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; 3000a320: e584300c str r3, [r4, #12] <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) 3000a324: e594301c ldr r3, [r4, #28] <== NOT EXECUTED 3000a328: e3530000 cmp r3, #0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); 3000a32c: 15940030 ldrne r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000a330: 11a0100d movne r1, sp <== NOT EXECUTED 3000a334: 1b000228 blne 3000abdc <== NOT EXECUTED read += chunk; 3000a338: e0866007 add r6, r6, r7 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { 3000a33c: e1560005 cmp r6, r5 <== NOT EXECUTED 3000a340: 3affffd5 bcc 3000a29c <== NOT EXECUTED 3000a344: e3a07000 mov r7, #0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); 3000a348: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a34c: ebffe830 bl 30004414 <== NOT EXECUTED out_nolock: if (read > 0) 3000a350: e3560000 cmp r6, #0 <== NOT EXECUTED 3000a354: d1a06007 movle r6, r7 <== NOT EXECUTED return read; return ret; } 3000a358: e1a00006 mov r0, r6 <== NOT EXECUTED 3000a35c: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 3000a394 : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000a394: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED pipe_control_t *pipe = *pipep; 3000a398: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000a39c: e1a05001 mov r5, r1 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 3000a3a0: e3a01000 mov r1, #0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { 3000a3a4: e1a06000 mov r6, r0 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, 3000a3a8: e1a02001 mov r2, r1 <== NOT EXECUTED 3000a3ac: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a3b0: ebffe7d1 bl 300042fc <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) 3000a3b4: e3500000 cmp r0, #0 <== NOT EXECUTED 3000a3b8: 1a000010 bne 3000a400 <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); 3000a3bc: 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, 3000a3c0: 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) 3000a3c4: e3150002 tst r5, #2 <== NOT EXECUTED pipe->Readers --; 3000a3c8: 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); 3000a3cc: e2055006 and r5, r5, #6 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) pipe->Readers --; 3000a3d0: 12433001 subne r3, r3, #1 <== NOT EXECUTED 3000a3d4: 15843010 strne r3, [r4, #16] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) 3000a3d8: e3150004 tst r5, #4 <== NOT EXECUTED pipe->Writers --; 3000a3dc: 15943014 ldrne r3, [r4, #20] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 3000a3e0: e1a02001 mov r2, r1 <== NOT EXECUTED mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) pipe->Readers --; if (mode & LIBIO_FLAGS_WRITE) pipe->Writers --; 3000a3e4: 12433001 subne r3, r3, #1 <== NOT EXECUTED 3000a3e8: 15843014 strne r3, [r4, #20] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, 3000a3ec: e59f3098 ldr r3, [pc, #152] ; 3000a48c <== NOT EXECUTED 3000a3f0: e5930000 ldr r0, [r3] <== NOT EXECUTED 3000a3f4: ebffe7c0 bl 300042fc <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) 3000a3f8: e3500000 cmp r0, #0 <== NOT EXECUTED 3000a3fc: 0a000000 beq 3000a404 <== NOT EXECUTED rtems_fatal_error_occurred(sc); 3000a400: ebffe950 bl 30004948 <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000a404: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a408: ebffe801 bl 30004414 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { 3000a40c: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3000a410: e3530000 cmp r3, #0 <== NOT EXECUTED 3000a414: 1a000006 bne 3000a434 <== NOT EXECUTED 3000a418: e5947014 ldr r7, [r4, #20] <== NOT EXECUTED 3000a41c: e3570000 cmp r7, #0 <== NOT EXECUTED 3000a420: 1a000003 bne 3000a434 <== NOT EXECUTED #if 0 /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); 3000a424: e1a00004 mov r0, r4 <== NOT EXECUTED 3000a428: ebffffcc bl 3000a360 <== NOT EXECUTED *pipep = NULL; 3000a42c: 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) { 3000a430: ea000010 b 3000a478 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) 3000a434: e2552004 subs r2, r5, #4 <== NOT EXECUTED 3000a438: 13a02001 movne r2, #1 <== NOT EXECUTED 3000a43c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000a440: 13a02000 movne r2, #0 <== NOT EXECUTED 3000a444: e3520000 cmp r2, #0 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); 3000a448: 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) 3000a44c: 1a000007 bne 3000a470 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) 3000a450: e5942014 ldr r2, [r4, #20] <== NOT EXECUTED 3000a454: e2553002 subs r3, r5, #2 <== NOT EXECUTED 3000a458: 13a03001 movne r3, #1 <== NOT EXECUTED 3000a45c: e3520000 cmp r2, #0 <== NOT EXECUTED 3000a460: 13a03000 movne r3, #0 <== NOT EXECUTED 3000a464: e3530000 cmp r3, #0 <== NOT EXECUTED 3000a468: 0a000002 beq 3000a478 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); 3000a46c: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000a470: e1a0100d mov r1, sp <== NOT EXECUTED 3000a474: eb0001d8 bl 3000abdc <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); 3000a478: e59f300c ldr r3, [pc, #12] ; 3000a48c <== NOT EXECUTED 3000a47c: e5930000 ldr r0, [r3] <== NOT EXECUTED 3000a480: ebffe7e3 bl 30004414 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } 3000a484: e3a00000 mov r0, #0 <== NOT EXECUTED 3000a488: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED 3000a48c: 30018528 .word 0x30018528 3000a060 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 3000a060: 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) 3000a064: e2525000 subs r5, r2, #0 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { 3000a068: e1a04000 mov r4, r0 <== NOT EXECUTED 3000a06c: e1a0b001 mov fp, r1 <== NOT EXECUTED 3000a070: e1a08003 mov r8, r3 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) 3000a074: 01a06005 moveq r6, r5 <== NOT EXECUTED 3000a078: 0a00005a beq 3000a1e8 <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) 3000a07c: e3a01000 mov r1, #0 <== NOT EXECUTED 3000a080: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED 3000a084: e1a02001 mov r2, r1 <== NOT EXECUTED 3000a088: ebffe89b bl 300042fc <== NOT EXECUTED 3000a08c: e3500000 cmp r0, #0 <== NOT EXECUTED 3000a090: 13e06003 mvnne r6, #3 <== NOT EXECUTED 3000a094: 1a000053 bne 3000a1e8 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { 3000a098: e5946010 ldr r6, [r4, #16] <== NOT EXECUTED 3000a09c: e3560000 cmp r6, #0 <== NOT EXECUTED 3000a0a0: 0a000022 beq 3000a130 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; 3000a0a4: e5949004 ldr r9, [r4, #4] <== NOT EXECUTED 3000a0a8: e1a06000 mov r6, r0 <== NOT EXECUTED 3000a0ac: e1550009 cmp r5, r9 <== NOT EXECUTED 3000a0b0: 91a09005 movls r9, r5 <== NOT EXECUTED 3000a0b4: 83a09001 movhi r9, #1 <== NOT EXECUTED 3000a0b8: ea000043 b 3000a1cc <== NOT EXECUTED while (written < count) { while (PIPE_SPACE(pipe) < chunk) { if (LIBIO_NODELAY(iop)) { 3000a0bc: e5987014 ldr r7, [r8, #20] <== NOT EXECUTED 3000a0c0: e2177001 ands r7, r7, #1 <== NOT EXECUTED 3000a0c4: 13e0700a mvnne r7, #10 <== NOT EXECUTED 3000a0c8: 1a000042 bne 3000a1d8 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; 3000a0cc: e594301c ldr r3, [r4, #28] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000a0d0: 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 ++; 3000a0d4: e2833001 add r3, r3, #1 <== NOT EXECUTED 3000a0d8: e584301c str r3, [r4, #28] <== NOT EXECUTED PIPE_UNLOCK(pipe); 3000a0dc: ebffe8cc bl 30004414 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) 3000a0e0: e1a01007 mov r1, r7 <== NOT EXECUTED 3000a0e4: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED 3000a0e8: eb0002d1 bl 3000ac34 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000a0ec: e1a01007 mov r1, r7 <== NOT EXECUTED 3000a0f0: 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)) 3000a0f4: e2507000 subs r7, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000a0f8: 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)) 3000a0fc: 13e07003 mvnne r7, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { 3000a100: ebffe87d bl 300042fc <== NOT EXECUTED 3000a104: e3500000 cmp r0, #0 <== NOT EXECUTED 3000a108: 13e07003 mvnne r7, #3 <== NOT EXECUTED 3000a10c: 1a000033 bne 3000a1e0 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 3000a110: e594301c ldr r3, [r4, #28] <== NOT EXECUTED if (ret != 0) 3000a114: e3570000 cmp r7, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; 3000a118: e2433001 sub r3, r3, #1 <== NOT EXECUTED 3000a11c: e584301c str r3, [r4, #28] <== NOT EXECUTED if (ret != 0) 3000a120: 1a00002c bne 3000a1d8 <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { 3000a124: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED 3000a128: e3530000 cmp r3, #0 <== NOT EXECUTED 3000a12c: 1a000001 bne 3000a138 <== NOT EXECUTED 3000a130: e3e0701f mvn r7, #31 <== NOT EXECUTED 3000a134: ea000027 b 3000a1d8 <== 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) { 3000a138: e594a004 ldr sl, [r4, #4] <== NOT EXECUTED 3000a13c: e594200c ldr r2, [r4, #12] <== NOT EXECUTED 3000a140: e062300a rsb r3, r2, sl <== NOT EXECUTED 3000a144: e1530009 cmp r3, r9 <== NOT EXECUTED 3000a148: 3affffdb bcc 3000a0bc <== NOT EXECUTED goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); chunk1 = pipe->Size - PIPE_WSTART(pipe); 3000a14c: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED 3000a150: e1a0100a mov r1, sl <== NOT EXECUTED 3000a154: e0820000 add r0, r2, r0 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); 3000a158: e0667005 rsb r7, r6, r5 <== NOT EXECUTED 3000a15c: e1530007 cmp r3, r7 <== NOT EXECUTED 3000a160: 31a07003 movcc r7, r3 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); 3000a164: eb002b48 bl 30014e8c <__umodsi3> <== NOT EXECUTED 3000a168: e5943000 ldr r3, [r4] <== NOT EXECUTED 3000a16c: e060a00a rsb sl, r0, sl <== NOT EXECUTED if (chunk > chunk1) { 3000a170: e157000a cmp r7, sl <== NOT EXECUTED 3000a174: 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); 3000a178: d0830000 addle r0, r3, r0 <== NOT EXECUTED 3000a17c: d1a02007 movle r2, r7 <== NOT EXECUTED } } chunk = MIN(count - written, PIPE_SPACE(pipe)); chunk1 = pipe->Size - PIPE_WSTART(pipe); if (chunk > chunk1) { 3000a180: da000006 ble 3000a1a0 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); 3000a184: e1a0200a mov r2, sl <== NOT EXECUTED 3000a188: e0830000 add r0, r3, r0 <== NOT EXECUTED 3000a18c: eb000745 bl 3000bea8 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); 3000a190: e08a1006 add r1, sl, r6 <== NOT EXECUTED 3000a194: e5940000 ldr r0, [r4] <== NOT EXECUTED 3000a198: e08b1001 add r1, fp, r1 <== NOT EXECUTED 3000a19c: e06a2007 rsb r2, sl, r7 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); 3000a1a0: eb000740 bl 3000bea8 <== NOT EXECUTED pipe->Length += chunk; 3000a1a4: e594300c ldr r3, [r4, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) 3000a1a8: 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; 3000a1ac: e0833007 add r3, r3, r7 <== NOT EXECUTED if (pipe->waitingReaders > 0) 3000a1b0: 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; 3000a1b4: e584300c str r3, [r4, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) PIPE_WAKEUPREADERS(pipe); 3000a1b8: 1594002c ldrne r0, [r4, #44] ; 0x2c <== NOT EXECUTED 3000a1bc: 11a0100d movne r1, sp <== NOT EXECUTED 3000a1c0: 1b000285 blne 3000abdc <== NOT EXECUTED written += chunk; 3000a1c4: e0866007 add r6, r6, r7 <== NOT EXECUTED 3000a1c8: 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) { 3000a1cc: e1560005 cmp r6, r5 <== NOT EXECUTED 3000a1d0: 3affffd8 bcc 3000a138 <== NOT EXECUTED 3000a1d4: e3a07000 mov r7, #0 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); 3000a1d8: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED 3000a1dc: ebffe88c bl 30004414 <== NOT EXECUTED /* Signal SIGPIPE */ if (ret == -EPIPE) kill(getpid(), SIGPIPE); #endif if (written > 0) 3000a1e0: e3560000 cmp r6, #0 <== NOT EXECUTED 3000a1e4: d1a06007 movle r6, r7 <== NOT EXECUTED return written; return ret; } 3000a1e8: e1a00006 mov r0, r6 <== NOT EXECUTED 3000a1ec: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED 30016690 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30016690: e59f30b0 ldr r3, [pc, #176] ; 30016748 ssize_t read( int fd, void *buffer, size_t count ) { 30016694: e92d4070 push {r4, r5, r6, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 30016698: e5933000 ldr r3, [r3] ssize_t read( int fd, void *buffer, size_t count ) { 3001669c: e1a05001 mov r5, r1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300166a0: e1500003 cmp r0, r3 300166a4: 2a000005 bcs 300166c0 iop = rtems_libio_iop( fd ); 300166a8: e59f309c ldr r3, [pc, #156] ; 3001674c 300166ac: e5934000 ldr r4, [r3] 300166b0: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); 300166b4: e5943014 ldr r3, [r4, #20] 300166b8: e3130c01 tst r3, #256 ; 0x100 300166bc: 1a000002 bne 300166cc 300166c0: ebffd3ea bl 3000b670 <__errno> 300166c4: e3a03009 mov r3, #9 300166c8: ea00000f b 3001670c rtems_libio_check_buffer( buffer ); 300166cc: e3510000 cmp r1, #0 300166d0: 0a000004 beq 300166e8 rtems_libio_check_count( count ); 300166d4: e3520000 cmp r2, #0 300166d8: 01a00002 moveq r0, r2 300166dc: 08bd8070 popeq {r4, r5, r6, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); 300166e0: e3130002 tst r3, #2 300166e4: 1a000002 bne 300166f4 300166e8: ebffd3e0 bl 3000b670 <__errno> <== NOT EXECUTED 300166ec: e3a03016 mov r3, #22 <== NOT EXECUTED 300166f0: ea000005 b 3001670c <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) 300166f4: e594303c ldr r3, [r4, #60] ; 0x3c 300166f8: e5933008 ldr r3, [r3, #8] 300166fc: e3530000 cmp r3, #0 30016700: 1a000004 bne 30016718 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30016704: ebffd3d9 bl 3000b670 <__errno> <== NOT EXECUTED 30016708: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001670c: e5803000 str r3, [r0] 30016710: e3e00000 mvn r0, #0 30016714: e8bd8070 pop {r4, r5, r6, pc} rc = (*iop->handlers->read_h)( iop, buffer, count ); 30016718: e1a00004 mov r0, r4 3001671c: e1a0e00f mov lr, pc 30016720: e12fff13 bx r3 if ( rc > 0 ) 30016724: e3500000 cmp r0, #0 30016728: d8bd8070 pople {r4, r5, r6, pc} iop->offset += rc; 3001672c: e284600c add r6, r4, #12 30016730: e8960060 ldm r6, {r5, r6} 30016734: e0952000 adds r2, r5, r0 30016738: e0a63fc0 adc r3, r6, r0, asr #31 3001673c: e584200c str r2, [r4, #12] 30016740: e5843010 str r3, [r4, #16] return rc; } 30016744: e8bd8070 pop {r4, r5, r6, pc} 30016748: 30017c8c .word 0x30017c8c 3001674c: 300185ac .word 0x300185ac 3002333c : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 3002333c: e92d40f0 push {r4, r5, r6, r7, lr} rtems_filesystem_location_info_t loc; int result; if (!buf) 30023340: e2516000 subs r6, r1, #0 ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { 30023344: e24dd018 sub sp, sp, #24 30023348: e1a05002 mov r5, r2 3002334c: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if (!buf) 30023350: 1a000002 bne 30023360 rtems_set_errno_and_return_minus_one( EFAULT ); 30023354: eb005245 bl 30037c70 <__errno> <== NOT EXECUTED 30023358: e3a0300e mov r3, #14 <== NOT EXECUTED 3002335c: ea000028 b 30023404 <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 30023360: eb006cbc bl 3003e658 30023364: e28d4004 add r4, sp, #4 30023368: e3a0c000 mov ip, #0 3002336c: e1a01000 mov r1, r0 30023370: e1a0200c mov r2, ip 30023374: e1a00007 mov r0, r7 30023378: e1a03004 mov r3, r4 3002337c: e58dc000 str ip, [sp] 30023380: ebff87a3 bl 30005214 0, &loc, false ); if ( result != 0 ) 30023384: e3500000 cmp r0, #0 30023388: 1a00001e bne 30023408 return -1; if ( !loc.ops->node_type_h ){ 3002338c: e59d2010 ldr r2, [sp, #16] 30023390: e5923010 ldr r3, [r2, #16] 30023394: e3530000 cmp r3, #0 30023398: 0a000012 beq 300233e8 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ 3002339c: e1a00004 mov r0, r4 300233a0: e1a0e00f mov lr, pc 300233a4: e12fff13 bx r3 300233a8: e3500004 cmp r0, #4 300233ac: e59d2010 ldr r2, [sp, #16] 300233b0: 0a000009 beq 300233dc rtems_filesystem_freenode( &loc ); 300233b4: e3520000 cmp r2, #0 300233b8: 0a000004 beq 300233d0 300233bc: e592301c ldr r3, [r2, #28] 300233c0: e3530000 cmp r3, #0 300233c4: 11a00004 movne r0, r4 300233c8: 11a0e00f movne lr, pc 300233cc: 112fff13 bxne r3 rtems_set_errno_and_return_minus_one( EINVAL ); 300233d0: eb005226 bl 30037c70 <__errno> 300233d4: e3a03016 mov r3, #22 300233d8: ea000009 b 30023404 } if ( !loc.ops->readlink_h ){ 300233dc: e592303c ldr r3, [r2, #60] ; 0x3c 300233e0: e3530000 cmp r3, #0 300233e4: 1a000009 bne 30023410 rtems_filesystem_freenode( &loc ); 300233e8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 300233ec: e3530000 cmp r3, #0 <== NOT EXECUTED 300233f0: 11a00004 movne r0, r4 <== NOT EXECUTED 300233f4: 11a0e00f movne lr, pc <== NOT EXECUTED 300233f8: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300233fc: eb00521b bl 30037c70 <__errno> <== NOT EXECUTED 30023400: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30023404: e5803000 str r3, [r0] 30023408: e3e05000 mvn r5, #0 3002340c: ea00000d b 30023448 } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); 30023410: e1a02005 mov r2, r5 30023414: e1a01006 mov r1, r6 30023418: e1a00004 mov r0, r4 3002341c: e1a0e00f mov lr, pc 30023420: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 30023424: 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 ); 30023428: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); 3002342c: e3530000 cmp r3, #0 30023430: 0a000004 beq 30023448 30023434: e593301c ldr r3, [r3, #28] 30023438: e3530000 cmp r3, #0 3002343c: 11a00004 movne r0, r4 30023440: 11a0e00f movne lr, pc 30023444: 112fff13 bxne r3 return result; } 30023448: e1a00005 mov r0, r5 3002344c: e28dd018 add sp, sp, #24 30023450: 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: eb0029b9 bl 3000daec <__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: eb0029aa bl 3000daec <__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: eb002998 bl 3000daec <__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: 3001c5d8 .word 0x3001c5d8 30003514: 3001d6cc .word 0x3001d6cc 300167a8 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 300167a8: e59f310c ldr r3, [pc, #268] ; 300168bc /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { 300167ac: e59fc10c ldr ip, [pc, #268] ; 300168c0 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 300167b0: 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())) { 300167b4: e59cc000 ldr ip, [ip] { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 300167b8: 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())) { 300167bc: e35c0003 cmp ip, #3 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); 300167c0: e92d40f1 push {r0, r4, r5, r6, r7, lr} 300167c4: e5832010 str r2, [r3, #16] 300167c8: e1a04000 mov r4, r0 300167cc: 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())) { 300167d0: 1a000007 bne 300167f4 if (_Thread_Dispatch_disable_level > 0) 300167d4: e59f30e8 ldr r3, [pc, #232] ; 300168c4 300167d8: e5933000 ldr r3, [r3] 300167dc: e3530000 cmp r3, #0 300167e0: 1a000032 bne 300168b0 return (void *) 0; if (_ISR_Nest_level > 0) 300167e4: e59f30dc ldr r3, [pc, #220] ; 300168c8 300167e8: e5933000 ldr r3, [r3] 300167ec: e3530000 cmp r3, #0 300167f0: 1a00002e bne 300168b0 } /* * Continue with realloc(). */ if ( !ptr ) 300167f4: e3540000 cmp r4, #0 300167f8: 1a000003 bne 3001680c return malloc( size ); 300167fc: e1a00005 mov r0, r5 30016800: ebffc91e bl 30008c80 30016804: e1a04000 mov r4, r0 30016808: ea000029 b 300168b4 if ( !size ) { 3001680c: e3550000 cmp r5, #0 30016810: 1a000003 bne 30016824 free( ptr ); 30016814: e1a00004 mov r0, r4 <== NOT EXECUTED 30016818: ebffc7d8 bl 30008780 <== NOT EXECUTED 3001681c: e1a04005 mov r4, r5 <== NOT EXECUTED return (void *) 0; 30016820: ea000023 b 300168b4 <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { 30016824: e59f60a0 ldr r6, [pc, #160] ; 300168cc 30016828: e1a01004 mov r1, r4 3001682c: e5960000 ldr r0, [r6] 30016830: e1a0200d mov r2, sp 30016834: eb000055 bl 30016990 <_Protected_heap_Get_block_size> 30016838: e2507000 subs r7, r0, #0 3001683c: 1a000004 bne 30016854 errno = EINVAL; 30016840: ebffd38a bl 3000b670 <__errno> 30016844: e3a03016 mov r3, #22 30016848: e5803000 str r3, [r0] 3001684c: e1a04007 mov r4, r7 return (void *) 0; 30016850: ea000017 b 300168b4 #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 ) ) { 30016854: e5960000 ldr r0, [r6] 30016858: e1a01004 mov r1, r4 3001685c: e1a02005 mov r2, r5 30016860: eb00005b bl 300169d4 <_Protected_heap_Resize_block> 30016864: e3500000 cmp r0, #0 30016868: 1a000011 bne 300168b4 * 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 ); 3001686c: e1a00005 mov r0, r5 30016870: ebffc902 bl 30008c80 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 30016874: e59f3040 ldr r3, [pc, #64] ; 300168bc if ( !new_area ) { 30016878: e2506000 subs r6, r0, #0 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ 3001687c: e5932004 ldr r2, [r3, #4] 30016880: e2422001 sub r2, r2, #1 30016884: e5832004 str r2, [r3, #4] if ( !new_area ) { 30016888: 0a000008 beq 300168b0 return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); 3001688c: e59d2000 ldr r2, [sp] 30016890: e1a01004 mov r1, r4 30016894: e1550002 cmp r5, r2 30016898: 31a02005 movcc r2, r5 3001689c: ebffd581 bl 3000bea8 free( ptr ); 300168a0: e1a00004 mov r0, r4 300168a4: ebffc7b5 bl 30008780 300168a8: e1a04006 mov r4, r6 return new_area; 300168ac: ea000000 b 300168b4 300168b0: e3a04000 mov r4, #0 } 300168b4: e1a00004 mov r0, r4 300168b8: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} 300168bc: 300185b8 .word 0x300185b8 300168c0: 300188d0 .word 0x300188d0 300168c4: 3001872c .word 0x3001872c 300168c8: 300187bc .word 0x300187bc 300168cc: 30017c98 .word 0x30017c98 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: eb00dfde bl 3003e658 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: eb00dfd8 bl 3003e658 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: eb00c52b bl 30037c70 <__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: eb00c512 bl 30037c70 <__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: 3005b6a4 .word 0x3005b6a4 300118dc : sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } 300118dc: e59f0000 ldr r0, [pc, #0] ; 300118e4 <== NOT EXECUTED 300118e0: e12fff1e bx lr <== NOT EXECUTED 300118e4: 30022cac .word 0x30022cac 3000eb44 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000eb44: e92d4010 push {r4, lr} 3000eb48: e1a04001 mov r4, r1 const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 3000eb4c: eb000006 bl 3000eb6c if (nap) 3000eb50: e3500000 cmp r0, #0 3000eb54: 0a000001 beq 3000eb60 return nap->name; return rtems_assoc_name_bad(local_value); } 3000eb58: e5900000 ldr r0, [r0] 3000eb5c: 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); 3000eb60: e1a00004 mov r0, r4 <== NOT EXECUTED } 3000eb64: 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); 3000eb68: ea000b5b b 300118dc <== NOT EXECUTED 3000b34c : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { 3000b34c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); 3000b350: eb0000a9 bl 3000b5fc <== NOT EXECUTED if (nap) 3000b354: e3500000 cmp r0, #0 <== NOT EXECUTED return nap->remote_value; 3000b358: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED return 0; } 3000b35c: 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: eb002d5d bl 3000cb54 <== 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: eb001287 bl 300068d0 <_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: eb001b4a bl 30008bec <_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: eb001b20 bl 30008bec <_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: eb001ae5 bl 30008b0c <_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: eb001af4 bl 30008b5c <_Timespec_Divide> /* * Print the information */ (*print)( context, 30001f88: e3a01ffa mov r1, #1000 ; 0x3e8 30001f8c: e59d0024 ldr r0, [sp, #36] ; 0x24 30001f90: eb005f7a bl 30019d80 <__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: eb005f63 bl 30019d80 <__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: 30026880 .word 0x30026880 30002014: 3001cd26 .word 0x3001cd26 30002018: 30026608 .word 0x30026608 3000201c: 30026700 .word 0x30026700 30002020: 3001ce98 .word 0x3001ce98 30002024: 30026708 .word 0x30026708 30002028: 3001ceab .word 0x3001ceab 3000202c: 30026618 .word 0x30026618 30002030: 3001cec3 .word 0x3001cec3 3000b320 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { 3000b320: e92d4010 push {r4, lr} <== NOT EXECUTED 3000b324: e1a01000 mov r1, r0 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) 3000b328: e59f0018 ldr r0, [pc, #24] ; 3000b348 <== NOT EXECUTED 3000b32c: eb000006 bl 3000b34c <== NOT EXECUTED 3000b330: e2504000 subs r4, r0, #0 <== NOT EXECUTED 3000b334: 0a000001 beq 3000b340 <== NOT EXECUTED { errno = rc; 3000b338: eb0000cc bl 3000b670 <__errno> <== NOT EXECUTED 3000b33c: e5804000 str r4, [r0] <== NOT EXECUTED return -1; } return -1; } 3000b340: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000b344: e8bd8010 pop {r4, pc} <== NOT EXECUTED 3000b348: 30017310 .word 0x30017310 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: eb002cf9 bl 3000c634 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: eb0028bb bl 3000b670 <__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: eb0028b6 bl 3000b670 <__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: 30017e84 .word 0x30017e84 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: eb0028f5 bl 3000b670 <__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: eb0028f0 bl 3000b670 <__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: eb0028cc bl 3000b670 <__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: eb000e02 bl 30004948 <== 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: 30017e84 .word 0x30017e84 300011f0: 30016f50 .word 0x30016f50 300011f4: abcd0001 .word 0xabcd0001 300011f8: 30017c94 .word 0x30017c94 300011fc: abcd0002 .word 0xabcd0002 30001200: 300177b9 .word 0x300177b9 30001204: 300177bb .word 0x300177bb 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: eb002d9f bl 3000c634 <== 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: eb00299a bl 3000b670 <__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: eb002d72 bl 3000c634 <== 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: eb001c96 bl 30008690 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: eb000d28 bl 30004948 <== 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: 30017c8c .word 0x30017c8c 300014c0: 300185ac .word 0x300185ac 300014c4: 300185b0 .word 0x300185b0 300014c8: 300185b4 .word 0x300185b4 300014cc: 4c42494f .word 0x4c42494f 300014d0: 30017c88 .word 0x30017c88 300231fc : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 300231fc: 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); 30023200: e3a00000 mov r0, #0 rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { 30023204: 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); 30023208: e1a01000 mov r1, r0 3002320c: e28d2018 add r2, sp, #24 30023210: eb00041f bl 30024294 if (sc != RTEMS_SUCCESSFUL) return sc; 30023214: e2508000 subs r8, r0, #0 30023218: 1a00003f bne 3002331c /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { 3002321c: e59f4104 ldr r4, [pc, #260] ; 30023328 30023220: e59f3104 ldr r3, [pc, #260] ; 3002332c 30023224: e5942000 ldr r2, [r4] 30023228: e1520003 cmp r2, r3 3002322c: 1a00000f bne 30023270 rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); 30023230: e2800048 add r0, r0, #72 ; 0x48 30023234: ebff89a6 bl 300058d4 if (!tmp) 30023238: e2505000 subs r5, r0, #0 3002323c: 03a0801a moveq r8, #26 30023240: 0a000035 beq 3002331c #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); 30023244: e1a00008 mov r0, r8 30023248: e1a01004 mov r1, r4 3002324c: e59f20dc ldr r2, [pc, #220] ; 30023330 30023250: eb000506 bl 30024670 if (sc != RTEMS_SUCCESSFUL) { 30023254: e2506000 subs r6, r0, #0 * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; 30023258: 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) { 3002325c: 0a000003 beq 30023270 /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); 30023260: e1a00005 mov r0, r5 <== NOT EXECUTED 30023264: ebff8818 bl 300052cc <== NOT EXECUTED 30023268: e1a08006 mov r8, r6 <== NOT EXECUTED return sc; 3002326c: ea00002a b 3002331c <== NOT EXECUTED } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ 30023270: e59f60b0 ldr r6, [pc, #176] ; 30023328 30023274: e59f10b0 ldr r1, [pc, #176] ; 3002332c 30023278: e5964000 ldr r4, [r6] 3002327c: e3a02048 mov r2, #72 ; 0x48 30023280: e1a00004 mov r0, r4 30023284: eb005eaa bl 3003ad34 rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30023288: e59f30a4 ldr r3, [pc, #164] ; 30023334 } 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*/ 3002328c: e1a0c004 mov ip, r4 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30023290: 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*/ 30023294: e59d3018 ldr r3, [sp, #24] /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 30023298: 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*/ 3002329c: e48c3018 str r3, [ip], #24 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; 300232a0: e8be000f ldm lr!, {r0, r1, r2, r3} 300232a4: e8ac000f stmia ip!, {r0, r1, r2, r3} 300232a8: 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); 300232ac: e28d4004 add r4, sp, #4 300232b0: 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; 300232b4: 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); 300232b8: e3a01001 mov r1, #1 300232bc: e1a03004 mov r3, r4 300232c0: e1a02005 mov r2, r5 300232c4: e59f006c ldr r0, [pc, #108] ; 30023338 300232c8: e58d5000 str r5, [sp] 300232cc: ebff87d0 bl 30005214 rtems_filesystem_root = loc; 300232d0: e596c000 ldr ip, [r6] 300232d4: e1a07004 mov r7, r4 300232d8: e28cc018 add ip, ip, #24 300232dc: e8b7000f ldm r7!, {r0, r1, r2, r3} 300232e0: e8ac000f stmia ip!, {r0, r1, r2, r3} 300232e4: e5973000 ldr r3, [r7] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 300232e8: 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; 300232ec: e58c3000 str r3, [ip] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); 300232f0: e3a01001 mov r1, #1 300232f4: e1a03004 mov r3, r4 300232f8: e59f0038 ldr r0, [pc, #56] ; 30023338 300232fc: e58d5000 str r5, [sp] 30023300: ebff87c3 bl 30005214 rtems_filesystem_current = loc; 30023304: e8b4000f ldm r4!, {r0, r1, r2, r3} 30023308: e596c000 ldr ip, [r6] 3002330c: e28cc004 add ip, ip, #4 30023310: e8ac000f stmia ip!, {r0, r1, r2, r3} 30023314: e5973000 ldr r3, [r7] 30023318: e58c3000 str r3, [ip] return RTEMS_SUCCESSFUL; } 3002331c: e1a00008 mov r0, r8 30023320: e28dd01c add sp, sp, #28 30023324: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30023328: 3005b6a4 .word 0x3005b6a4 3002332c: 3005f42c .word 0x3005f42c 30023330: 300230f4 .word 0x300230f4 30023334: 3005f414 .word 0x3005f414 30023338: 30054efd .word 0x30054efd 30023158 : * 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) { 30023158: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED 3002315c: 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); 30023160: e3a00000 mov r0, #0 <== NOT EXECUTED 30023164: e1a01000 mov r1, r0 <== NOT EXECUTED 30023168: e1a0200d mov r2, sp <== NOT EXECUTED 3002316c: eb000448 bl 30024294 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 30023170: e2503000 subs r3, r0, #0 <== NOT EXECUTED 30023174: 1a00001b bne 300231e8 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { 30023178: e59f1070 ldr r1, [pc, #112] ; 300231f0 <== NOT EXECUTED 3002317c: e59d3000 ldr r3, [sp] <== NOT EXECUTED 30023180: e5914000 ldr r4, [r1] <== NOT EXECUTED 30023184: e5942000 ldr r2, [r4] <== NOT EXECUTED 30023188: e1520003 cmp r2, r3 <== NOT EXECUTED 3002318c: 1a000004 bne 300231a4 <== 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); 30023190: eb00055f bl 30024714 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; 30023194: e2503000 subs r3, r0, #0 <== NOT EXECUTED 30023198: 1a000012 bne 300231e8 <== NOT EXECUTED free_user_env(tmp); 3002319c: e1a00004 mov r0, r4 <== NOT EXECUTED 300231a0: ebffffd3 bl 300230f4 <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, 300231a4: e59f4044 ldr r4, [pc, #68] ; 300231f0 <== NOT EXECUTED 300231a8: e1a00005 mov r0, r5 <== NOT EXECUTED 300231ac: e1a01004 mov r1, r4 <== NOT EXECUTED 300231b0: e28d2004 add r2, sp, #4 <== NOT EXECUTED 300231b4: eb000573 bl 30024788 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) 300231b8: e2503000 subs r3, r0, #0 <== NOT EXECUTED 300231bc: 1a000006 bne 300231dc <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); 300231c0: e59f202c ldr r2, [pc, #44] ; 300231f4 <== NOT EXECUTED 300231c4: e1a01004 mov r1, r4 <== NOT EXECUTED 300231c8: eb000528 bl 30024670 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) 300231cc: 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; 300231d0: 059d2004 ldreq r2, [sp, #4] <== NOT EXECUTED 300231d4: 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) 300231d8: 0a000002 beq 300231e8 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; 300231dc: e59f1014 ldr r1, [pc, #20] ; 300231f8 <== NOT EXECUTED 300231e0: e59f2008 ldr r2, [pc, #8] ; 300231f0 <== NOT EXECUTED 300231e4: e5821000 str r1, [r2] <== NOT EXECUTED return sc; } 300231e8: e1a00003 mov r0, r3 <== NOT EXECUTED 300231ec: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED 300231f0: 3005b6a4 .word 0x3005b6a4 300231f4: 300230f4 .word 0x300230f4 300231f8: 3005f42c .word 0x3005f42c 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: eb00152d bl 3000ae9c <_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: 3005b378 .word 0x3005b378 30005a14: 3005f3e8 .word 0x3005f3e8 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: eb001516 bl 3000ae9c <_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: 3005b378 .word 0x3005b378 30005a7c: 3005f3e8 .word 0x3005f3e8 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: ea00d52f b 3003af50 <== NOT EXECUTED 30005a90: 3005f3e8 .word 0x3005f3e8 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 30009fa0 : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { if (!rtems_pipe_configured) 30009fa0: e59f3048 ldr r3, [pc, #72] ; 30009ff0 /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { 30009fa4: e92d4001 push {r0, lr} if (!rtems_pipe_configured) 30009fa8: e5d33000 ldrb r3, [r3] 30009fac: e3530000 cmp r3, #0 30009fb0: 0a00000d beq 30009fec return; if (rtems_pipe_semaphore) 30009fb4: e59fc038 ldr ip, [pc, #56] ; 30009ff4 <== NOT EXECUTED 30009fb8: e59c3000 ldr r3, [ip] <== NOT EXECUTED 30009fbc: e3530000 cmp r3, #0 <== NOT EXECUTED 30009fc0: 1a000009 bne 30009fec <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( 30009fc4: e59f002c ldr r0, [pc, #44] ; 30009ff8 <== NOT EXECUTED 30009fc8: e3a01001 mov r1, #1 <== NOT EXECUTED 30009fcc: e3a02054 mov r2, #84 ; 0x54 <== NOT EXECUTED 30009fd0: e58dc000 str ip, [sp] <== NOT EXECUTED 30009fd4: ebffe836 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) 30009fd8: e3500000 cmp r0, #0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); 30009fdc: 1bffea59 blne 30004948 <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); 30009fe0: ebffe738 bl 30003cc8 <== NOT EXECUTED rtems_pipe_no = now; 30009fe4: e59f3010 ldr r3, [pc, #16] ; 30009ffc <== NOT EXECUTED 30009fe8: e1c300b0 strh r0, [r3] <== NOT EXECUTED } 30009fec: e8bd8008 pop {r3, pc} 30009ff0: 30018404 .word 0x30018404 30009ff4: 30018528 .word 0x30018528 30009ff8: 50495045 .word 0x50495045 30009ffc: 3001852e .word 0x3001852e 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: e59300c4 ldr r0, [r3, #196] ; 0xc4 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: e59340c0 ldr r4, [r3, #192] ; 0xc0 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: eb00dc5d bl 3003ac8c 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: 3005f600 .word 0x3005f600 30003b48: 3005c8dc .word 0x3005c8dc 30003b4c: 3005f3b8 .word 0x3005f3b8 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: eb001b28 bl 3000a67c <== 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: 3005c8dc .word 0x3005c8dc 300039f4: 30054d3f .word 0x30054d3f 300039f8: 30054d56 .word 0x30054d56 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: e59000c4 ldr r0, [r0, #196] ; 0xc4 */ 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: e59450c0 ldr r5, [r4, #192] ; 0xc0 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: eb00dc3e bl 3003ac8c 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: 3005f3b8 .word 0x3005f3b8 3000a818 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000a818: e92d41f1 push {r0, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000a81c: e2514000 subs r4, r1, #0 <== NOT EXECUTED #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000a820: e1a07000 mov r7, r0 <== NOT EXECUTED 3000a824: e1a08002 mov r8, r2 <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000a828: 03a00009 moveq r0, #9 <== NOT EXECUTED 3000a82c: 0a00001e beq 3000a8ac <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; errno = 0; 3000a830: eb000872 bl 3000ca00 <__errno> <== NOT EXECUTED 3000a834: e3a03000 mov r3, #0 <== NOT EXECUTED 3000a838: e5803000 str r3, [r0] <== NOT EXECUTED *n = 0; 3000a83c: e3a02000 mov r2, #0 <== NOT EXECUTED 3000a840: e3a03000 mov r3, #0 <== NOT EXECUTED 3000a844: e884000c stm r4, {r2, r3} <== NOT EXECUTED #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000a848: e1a00007 mov r0, r7 <== NOT EXECUTED 3000a84c: e1a0100d mov r1, sp <== NOT EXECUTED 3000a850: eb0013e1 bl 3000f7dc <== 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 ) 3000a854: e3580000 cmp r8, #0 <== NOT EXECUTED *endptr = end; 3000a858: 159d3000 ldrne r3, [sp] <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000a85c: 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; 3000a860: 15883000 strne r3, [r8] <== NOT EXECUTED /* nothing was converted */ if ( end == s ) 3000a864: e59d3000 ldr r3, [sp] <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000a868: 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 ) 3000a86c: e1530007 cmp r3, r7 <== NOT EXECUTED 3000a870: 03a0000b moveq r0, #11 <== NOT EXECUTED 3000a874: 0a00000c beq 3000a8ac <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 3000a878: e1a00005 mov r0, r5 <== NOT EXECUTED 3000a87c: e59f202c ldr r2, [pc, #44] ; 3000a8b0 <== NOT EXECUTED 3000a880: e3e03000 mvn r3, #0 <== NOT EXECUTED 3000a884: ebffe0d1 bl 30002bd0 <__gedf2> <== NOT EXECUTED 3000a888: e3500000 cmp r0, #0 <== NOT EXECUTED 3000a88c: da000004 ble 3000a8a4 <== NOT EXECUTED 3000a890: eb00085a bl 3000ca00 <__errno> <== NOT EXECUTED 3000a894: e5903000 ldr r3, [r0] <== NOT EXECUTED 3000a898: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 3000a89c: 03a0000a moveq r0, #10 <== NOT EXECUTED 3000a8a0: 0a000001 beq 3000a8ac <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 3000a8a4: e8840060 stm r4, {r5, r6} <== NOT EXECUTED 3000a8a8: e3a00000 mov r0, #0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } 3000a8ac: e8bd81f8 pop {r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 3000a8b0: 7fefffff .word 0x7fefffff 3000a8b4 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000a8b4: e92d40f1 push {r0, r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000a8b8: e2514000 subs r4, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 3000a8bc: e1a05000 mov r5, r0 3000a8c0: e1a07002 mov r7, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 3000a8c4: 03a00009 moveq r0, #9 3000a8c8: 0a00001b beq 3000a93c return RTEMS_INVALID_ADDRESS; errno = 0; 3000a8cc: eb00084b bl 3000ca00 <__errno> 3000a8d0: e3a03000 mov r3, #0 3000a8d4: e5803000 str r3, [r0] *n = 0; 3000a8d8: e3a03000 mov r3, #0 3000a8dc: e5843000 str r3, [r4] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000a8e0: e1a00005 mov r0, r5 3000a8e4: e1a0100d mov r1, sp 3000a8e8: eb0013a8 bl 3000f790 #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 ) 3000a8ec: e3570000 cmp r7, #0 *endptr = end; 3000a8f0: 159d3000 ldrne r3, [sp] errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); 3000a8f4: 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; 3000a8f8: 15873000 strne r3, [r7] /* nothing was converted */ if ( end == s ) 3000a8fc: e59d3000 ldr r3, [sp] 3000a900: e1530005 cmp r3, r5 3000a904: 03a0000b moveq r0, #11 3000a908: 0a00000b beq 3000a93c return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 3000a90c: e1a00006 mov r0, r6 3000a910: e59f1028 ldr r1, [pc, #40] ; 3000a940 3000a914: ebffe0f8 bl 30002cfc <__gesf2> 3000a918: e3500000 cmp r0, #0 3000a91c: da000004 ble 3000a934 3000a920: eb000836 bl 3000ca00 <__errno> <== NOT EXECUTED 3000a924: e5903000 ldr r3, [r0] <== NOT EXECUTED 3000a928: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 3000a92c: 03a0000a moveq r0, #10 <== NOT EXECUTED 3000a930: 0a000001 beq 3000a93c <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 3000a934: e5846000 str r6, [r4] 3000a938: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } 3000a93c: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} 3000a940: 7f7fffff .word 0x7f7fffff 30019cf8 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 30019cf8: e92d40f1 push {r0, r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 30019cfc: e2514000 subs r4, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { 30019d00: e1a05000 mov r5, r0 30019d04: e1a06002 mov r6, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) 30019d08: 03a00009 moveq r0, #9 30019d0c: 0a000018 beq 30019d74 return RTEMS_INVALID_ADDRESS; errno = 0; 30019d10: eb0077d6 bl 30037c70 <__errno> 30019d14: e3a03000 mov r3, #0 30019d18: e5803000 str r3, [r0] *n = 0; 30019d1c: 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 ); 30019d20: e1a00005 mov r0, r5 30019d24: e1a0100d mov r1, sp 30019d28: e3a02010 mov r2, #16 30019d2c: eb009765 bl 3003fac8 #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 ) 30019d30: e3560000 cmp r6, #0 *endptr = end; 30019d34: 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 ); 30019d38: 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; 30019d3c: 15863000 strne r3, [r6] /* nothing was converted */ if ( end == s ) 30019d40: e59d3000 ldr r3, [sp] 30019d44: e1530005 cmp r3, r5 30019d48: 03a0000b moveq r0, #11 30019d4c: 0a000008 beq 30019d74 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) 30019d50: e3770001 cmn r7, #1 30019d54: 1a000004 bne 30019d6c 30019d58: eb0077c4 bl 30037c70 <__errno> <== NOT EXECUTED 30019d5c: e5903000 ldr r3, [r0] <== NOT EXECUTED 30019d60: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED 30019d64: 03a0000a moveq r0, #10 <== NOT EXECUTED 30019d68: 0a000001 beq 30019d74 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; 30019d6c: e5847000 str r7, [r4] 30019d70: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } 30019d74: 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: 30017e70 .word 0x30017e70 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: eb000547 bl 30004948 <== 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: eb0014ad bl 30008780 free (tty->rawOutBuf.theBuf); 300034c8: e594007c ldr r0, [r4, #124] ; 0x7c 300034cc: eb0014ab bl 30008780 free (tty->cbuf); 300034d0: e594001c ldr r0, [r4, #28] 300034d4: eb0014a9 bl 30008780 free (tty); 300034d8: e1a00004 mov r0, r4 300034dc: eb0014a7 bl 30008780 } 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: 300185f0 .word 0x300185f0 300034f8: 3001841c .word 0x3001841c 300034fc: 300185f4 .word 0x300185f4 30003500: 300185f8 .word 0x300185f8 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: eb0009eb bl 30004948 <== 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: 3001841c .word 0x3001841c 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: eb004ad2 bl 30014e8c <__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: eb004ac7 bl 30014e8c <__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: 3001841c .word 0x3001841c 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: eb004684 bl 30014c3c <__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: 3001841c .word 0x3001841c 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: eb0015c0 bl 30008c80 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: eb0015b9 bl 30008c80 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: eb0015b4 bl 30008c80 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: eb00146f bl 30008780 <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); 300035c0: e5950058 ldr r0, [r5, #88] ; 0x58 <== NOT EXECUTED 300035c4: eb00146d bl 30008780 <== NOT EXECUTED free(tty); 300035c8: e1a00005 mov r0, r5 <== NOT EXECUTED 300035cc: eb00146b bl 30008780 <== 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: eb000424 bl 30004948 <== 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: eb00136e bl 30008690 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: 300185f0 .word 0x300185f0 300038ec: 300185f8 .word 0x300185f8 300038f0: 30017e70 .word 0x30017e70 300038f4: 300185f4 .word 0x300185f4 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: eb004a65 bl 30014e8c <__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: 1b000907 blne 30004948 <== 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: eb00481c bl 30014e8c <__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: eb004813 bl 30014e8c <__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: 3001841c .word 0x3001841c 30002fbc: 30017e70 .word 0x30017e70 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: eb004b81 bl 30014e8c <__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: 3001841c .word 0x3001841c 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: 3001841c .word 0x3001841c 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: eb003049 bl 30012024 <== 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: eb002f53 bl 30011c58 <__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: eb004860 bl 300180a8 <== 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: eb0030f2 bl 3001231c <== 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: eb0033ff bl 30012f68 <== 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: eb0033f7 bl 30012f68 <== 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: eb0030da bl 3001231c <== 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: eb0030d4 bl 3001231c <== 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: eb003012 bl 30012024 <== 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: eb002f08 bl 30011c34 <== 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: 300234a0 .word 0x300234a0 3000601c: 3002362c .word 0x3002362c 30006020: 30022ce8 .word 0x30022ce8 30006024: 30021b09 .word 0x30021b09 30006028: 30021b17 .word 0x30021b17 3000602c: 30021b24 .word 0x30021b24 30006030: 30021b00 .word 0x30021b00 30006034: 30021b38 .word 0x30021b38 30006038: 30021b4d .word 0x30021b4d 3002214c : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 3002214c: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} 30022150: e3a04000 mov r4, #0 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 30022154: e59fb0d4 ldr fp, [pc, #212] ; 30022230 limit++; continue; } sign = 1; } if (!isdigit(c)) 30022158: e59f90d4 ldr r9, [pc, #212] ; 30022234 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { 3002215c: e1a05000 mov r5, r0 30022160: e58d1000 str r1, [sp] 30022164: e3e08102 mvn r8, #-2147483648 ; 0x80000000 30022168: e1a07004 mov r7, r4 sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) 3002216c: e3a0a00a mov sl, #10 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); 30022170: e5953004 ldr r3, [r5, #4] 30022174: e2433001 sub r3, r3, #1 30022178: e3530000 cmp r3, #0 3002217c: e5853004 str r3, [r5, #4] 30022180: a5953000 ldrge r3, [r5] 30022184: a4d36001 ldrbge r6, [r3], #1 30022188: a5853000 strge r3, [r5] 3002218c: aa000003 bge 300221a0 30022190: e59b0000 ldr r0, [fp] <== NOT EXECUTED 30022194: e1a01005 mov r1, r5 <== NOT EXECUTED 30022198: eb006bb3 bl 3003d06c <__srget_r> <== NOT EXECUTED 3002219c: e1a06000 mov r6, r0 <== NOT EXECUTED if (c == ':') 300221a0: e356003a cmp r6, #58 ; 0x3a 300221a4: 0a000019 beq 30022210 break; if (sign == 0) { 300221a8: e3540000 cmp r4, #0 300221ac: 1a000004 bne 300221c4 if (c == '-') { 300221b0: e356002d cmp r6, #45 ; 0x2d sign = -1; limit++; 300221b4: 02888001 addeq r8, r8, #1 300221b8: 03e04000 mvneq r4, #0 for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { 300221bc: 0affffeb beq 30022170 sign = -1; limit++; continue; 300221c0: e3a04001 mov r4, #1 } sign = 1; } if (!isdigit(c)) 300221c4: e5993000 ldr r3, [r9] 300221c8: e0833006 add r3, r3, r6 300221cc: e5d33001 ldrb r3, [r3, #1] 300221d0: e3130004 tst r3, #4 300221d4: 0a000013 beq 30022228 return 0; d = c - '0'; if ((i > (limit / 10)) 300221d8: e1a00008 mov r0, r8 300221dc: e3a0100a mov r1, #10 300221e0: eb00b630 bl 3004faa8 <__aeabi_uidiv> 300221e4: e1570000 cmp r7, r0 300221e8: 8a00000e bhi 30022228 } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; 300221ec: e2466030 sub r6, r6, #48 ; 0x30 if ((i > (limit / 10)) 300221f0: 1a000004 bne 30022208 300221f4: e1a00008 mov r0, r8 <== NOT EXECUTED 300221f8: e3a0100a mov r1, #10 <== NOT EXECUTED 300221fc: eb00b6bd bl 3004fcf8 <__umodsi3> <== NOT EXECUTED 30022200: e1560000 cmp r6, r0 <== NOT EXECUTED 30022204: 8a000007 bhi 30022228 <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; 30022208: e027679a mla r7, sl, r7, r6 3002220c: eaffffd7 b 30022170 } if (sign == 0) 30022210: e3540000 cmp r4, #0 return 0; *val = i * sign; 30022214: 10030497 mulne r3, r7, r4 30022218: 159d2000 ldrne r2, [sp] 3002221c: 13a00001 movne r0, #1 30022220: 15823000 strne r3, [r2] return 1; 30022224: 1a000000 bne 3002222c 30022228: e3a00000 mov r0, #0 <== NOT EXECUTED } 3002222c: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} 30022230: 3005be78 .word 0x3005be78 30022234: 3005be6c .word 0x3005be6c 30022238 : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { 30022238: e92d41f0 push {r4, r5, r6, r7, r8, lr} 3002223c: e1a04002 mov r4, r2 int c; *name = *bufp; 30022240: 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) { 30022244: e59d6018 ldr r6, [sp, #24] int c; *name = *bufp; for (;;) { c = getc(fp); 30022248: e59f70c4 ldr r7, [pc, #196] ; 30022314 static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; 3002224c: 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) { 30022250: e1a05000 mov r5, r0 30022254: e1a08003 mov r8, r3 int c; *name = *bufp; for (;;) { c = getc(fp); 30022258: e5953004 ldr r3, [r5, #4] 3002225c: e2433001 sub r3, r3, #1 30022260: e3530000 cmp r3, #0 30022264: e5853004 str r3, [r5, #4] 30022268: a5953000 ldrge r3, [r5] 3002226c: a4d30001 ldrbge r0, [r3], #1 30022270: a5853000 strge r3, [r5] 30022274: b5970000 ldrlt r0, [r7] 30022278: b1a01005 movlt r1, r5 3002227c: bb006b7a bllt 3003d06c <__srget_r> if (c == ':') { 30022280: e350003a cmp r0, #58 ; 0x3a 30022284: 1a000002 bne 30022294 if (nlFlag) 30022288: e3560000 cmp r6, #0 3002228c: 0a000013 beq 300222e0 30022290: ea00001d b 3002230c <== NOT EXECUTED return 0; break; } if (c == '\n') { 30022294: e350000a cmp r0, #10 30022298: 1a000002 bne 300222a8 if (!nlFlag) 3002229c: e3560000 cmp r6, #0 300222a0: 1a00000e bne 300222e0 300222a4: ea000018 b 3002230c <== NOT EXECUTED return 0; break; } if (c == EOF) 300222a8: e3700001 cmn r0, #1 300222ac: 0a000016 beq 3002230c return 0; if (*nleft < 2) 300222b0: e5983000 ldr r3, [r8] 300222b4: e3530001 cmp r3, #1 300222b8: 9a000013 bls 3002230c return 0; **bufp = c; 300222bc: e5943000 ldr r3, [r4] 300222c0: e5c30000 strb r0, [r3] ++(*bufp); 300222c4: e5942000 ldr r2, [r4] --(*nleft); 300222c8: e5983000 ldr r3, [r8] if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 300222cc: e2822001 add r2, r2, #1 --(*nleft); 300222d0: e2433001 sub r3, r3, #1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); 300222d4: e5842000 str r2, [r4] --(*nleft); 300222d8: e5883000 str r3, [r8] } 300222dc: eaffffdd b 30022258 **bufp = '\0'; 300222e0: e5943000 ldr r3, [r4] 300222e4: e3a02000 mov r2, #0 300222e8: e5c32000 strb r2, [r3] ++(*bufp); 300222ec: e5942000 ldr r2, [r4] --(*nleft); 300222f0: e5983000 ldr r3, [r8] **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 300222f4: e2822001 add r2, r2, #1 --(*nleft); 300222f8: e2433001 sub r3, r3, #1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); 300222fc: e5842000 str r2, [r4] --(*nleft); 30022300: e5883000 str r3, [r8] 30022304: e3a00001 mov r0, #1 return 1; 30022308: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 3002230c: e3a00000 mov r0, #0 <== NOT EXECUTED } 30022310: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED 30022314: 3005be78 .word 0x3005be78 30022318 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 30022318: e92d41f0 push {r4, r5, r6, r7, r8, lr} 3002231c: e24dd014 sub sp, sp, #20 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 30022320: e28d6008 add r6, sp, #8 30022324: e28d5004 add r5, sp, #4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 30022328: e58d2008 str r2, [sp, #8] 3002232c: e58d3004 str r3, [sp, #4] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 30022330: e3a08000 mov r8, #0 30022334: e1a02006 mov r2, r6 30022338: e1a03005 mov r3, r5 3002233c: e58d8000 str r8, [sp] FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { 30022340: e1a07000 mov r7, r0 30022344: e1a04001 mov r4, r1 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 30022348: ebffffba bl 30022238 3002234c: e1500008 cmp r0, r8 30022350: 0a00003b beq 30022444 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) 30022354: e1a00007 mov r0, r7 30022358: e2841004 add r1, r4, #4 3002235c: e1a02006 mov r2, r6 30022360: e1a03005 mov r3, r5 30022364: e58d8000 str r8, [sp] 30022368: ebffffb2 bl 30022238 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 3002236c: e1500008 cmp r0, r8 30022370: 0a000033 beq 30022444 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) 30022374: e1a00007 mov r0, r7 30022378: e28d1010 add r1, sp, #16 3002237c: ebffff72 bl 3002214c { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 30022380: e1500008 cmp r0, r8 30022384: 0a00002e beq 30022444 || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) 30022388: e1a03005 mov r3, r5 3002238c: e28d100c add r1, sp, #12 30022390: e1a00007 mov r0, r7 30022394: e1a02006 mov r2, r6 30022398: e3a05001 mov r5, #1 3002239c: e58d5000 str r5, [sp] 300223a0: ebffffa4 bl 30022238 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 300223a4: 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; 300223a8: 11dd31b0 ldrhne r3, [sp, #16] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 300223ac: 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; 300223b0: 11c430b8 strhne r3, [r4, #8] { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) 300223b4: 1a000002 bne 300223c4 300223b8: ea000021 b 30022444 <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') 300223bc: e353002c cmp r3, #44 ; 0x2c memcount++; 300223c0: 02855001 addeq r5, r5, #1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 300223c4: e7d13008 ldrb r3, [r1, r8] if(*cp == ',') memcount++; 300223c8: e2888001 add r8, r8, #1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 300223cc: e3530000 cmp r3, #0 300223d0: 1afffff9 bne 300223bc } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) 300223d4: e1a05105 lsl r5, r5, #2 300223d8: e59d2004 ldr r2, [sp, #4] 300223dc: e2855013 add r5, r5, #19 300223e0: e1520005 cmp r2, r5 300223e4: 3a000016 bcc 30022444 return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); 300223e8: 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'; 300223ec: 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); 300223f0: e282200f add r2, r2, #15 300223f4: e3c2200f bic r2, r2, #15 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 300223f8: 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); 300223fc: e584200c str r2, [r4, #12] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; 30022400: e59d200c ldr r2, [sp, #12] 30022404: e2823001 add r3, r2, #1 30022408: e3a02001 mov r2, #1 for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 3002240c: ea000005 b 30022428 if(*cp == ',') { 30022410: e351002c cmp r1, #44 ; 0x2c *cp = '\0'; 30022414: 05430001 strbeq r0, [r3, #-1] grp->gr_mem[memcount++] = cp + 1; 30022418: 0594100c ldreq r1, [r4, #12] 3002241c: 07813102 streq r3, [r1, r2, lsl #2] 30022420: 02822001 addeq r2, r2, #1 30022424: e2833001 add r3, r3, #1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { 30022428: e5531001 ldrb r1, [r3, #-1] 3002242c: e3510000 cmp r1, #0 30022430: 1afffff6 bne 30022410 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; 30022434: e594300c ldr r3, [r4, #12] 30022438: e3a00001 mov r0, #1 3002243c: e7831102 str r1, [r3, r2, lsl #2] return 1; 30022440: ea000000 b 30022448 30022444: e3a00000 mov r0, #0 <== NOT EXECUTED } 30022448: e28dd014 add sp, sp, #20 3002244c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 3002248c : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 3002248c: e92d41f0 push {r4, r5, r6, r7, r8, lr} 30022490: e24dd014 sub sp, sp, #20 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30022494: e28d7008 add r7, sp, #8 30022498: e28d6004 add r6, sp, #4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 3002249c: e58d2008 str r2, [sp, #8] 300224a0: e58d3004 str r3, [sp, #4] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 300224a4: e3a08000 mov r8, #0 300224a8: e1a02007 mov r2, r7 300224ac: e1a03006 mov r3, r6 300224b0: e58d8000 str r8, [sp] FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { 300224b4: e1a05000 mov r5, r0 300224b8: e1a04001 mov r4, r1 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 300224bc: ebffff5d bl 30022238 300224c0: e1500008 cmp r0, r8 300224c4: 0a000038 beq 300225ac || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) 300224c8: e1a00005 mov r0, r5 300224cc: e2841004 add r1, r4, #4 300224d0: e1a02007 mov r2, r7 300224d4: e1a03006 mov r3, r6 300224d8: e58d8000 str r8, [sp] 300224dc: ebffff55 bl 30022238 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 300224e0: e1500008 cmp r0, r8 300224e4: 0a000030 beq 300225ac || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) 300224e8: e1a00005 mov r0, r5 300224ec: e28d1010 add r1, sp, #16 300224f0: ebffff15 bl 3002214c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 300224f4: e1500008 cmp r0, r8 300224f8: 0a00002b beq 300225ac || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) 300224fc: e1a00005 mov r0, r5 30022500: e28d100c add r1, sp, #12 30022504: ebffff10 bl 3002214c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30022508: e1500008 cmp r0, r8 3002250c: 0a000026 beq 300225ac || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) 30022510: e1a00005 mov r0, r5 30022514: e284100c add r1, r4, #12 30022518: e1a02007 mov r2, r7 3002251c: e1a03006 mov r3, r6 30022520: e58d8000 str r8, [sp] 30022524: ebffff43 bl 30022238 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30022528: e1500008 cmp r0, r8 3002252c: 0a00001e beq 300225ac || !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) 30022530: e1a00005 mov r0, r5 30022534: e2841010 add r1, r4, #16 30022538: e1a02007 mov r2, r7 3002253c: e1a03006 mov r3, r6 30022540: e58d8000 str r8, [sp] 30022544: ebffff3b bl 30022238 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30022548: e1500008 cmp r0, r8 3002254c: 0a000016 beq 300225ac || !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) 30022550: e1a00005 mov r0, r5 30022554: e2841014 add r1, r4, #20 30022558: e1a02007 mov r2, r7 3002255c: e1a03006 mov r3, r6 30022560: e58d8000 str r8, [sp] 30022564: ebffff33 bl 30022238 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 30022568: e1500008 cmp r0, r8 3002256c: 0a00000e beq 300225ac || !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)) 30022570: e1a00005 mov r0, r5 30022574: e1a02007 mov r2, r7 30022578: e1a03006 mov r3, r6 3002257c: e3a05001 mov r5, #1 30022580: e2841018 add r1, r4, #24 30022584: e58d5000 str r5, [sp] 30022588: ebffff2a bl 30022238 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) 3002258c: e1500008 cmp r0, r8 30022590: 0a000005 beq 300225ac || !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; 30022594: e1dd30bc ldrh r3, [sp, #12] 30022598: e1a00005 mov r0, r5 3002259c: 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; 300225a0: e1dd31b0 ldrh r3, [sp, #16] 300225a4: e1c430b8 strh r3, [r4, #8] pwd->pw_gid = pwgid; return 1; 300225a8: ea000000 b 300225b0 300225ac: e3a00000 mov r0, #0 <== NOT EXECUTED } 300225b0: e28dd014 add sp, sp, #20 300225b4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} 30022104 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; 30022104: e59f300c ldr r3, [pc, #12] ; 30022118 <== NOT EXECUTED 30022108: e5933000 ldr r3, [r3] <== NOT EXECUTED 3002210c: e1c303b4 strh r0, [r3, #52] ; 0x34 <== NOT EXECUTED return 0; } 30022110: e3a00000 mov r0, #0 <== NOT EXECUTED 30022114: e12fff1e bx lr <== NOT EXECUTED 30022118: 3005b6a4 .word 0x3005b6a4 300226bc : return NULL; return &grent; } void setgrent(void) { 300226bc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED init_etc_passwd_group(); 300226c0: ebffffcb bl 300225f4 <== NOT EXECUTED if (group_fp != NULL) 300226c4: e59f3020 ldr r3, [pc, #32] ; 300226ec <== NOT EXECUTED 300226c8: e5930000 ldr r0, [r3] <== NOT EXECUTED 300226cc: e3500000 cmp r0, #0 <== NOT EXECUTED fclose(group_fp); 300226d0: 1b0055b3 blne 30037da4 <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); 300226d4: e59f0014 ldr r0, [pc, #20] ; 300226f0 <== NOT EXECUTED 300226d8: e59f1014 ldr r1, [pc, #20] ; 300226f4 <== NOT EXECUTED 300226dc: eb0057d3 bl 30038630 <== NOT EXECUTED 300226e0: e59f3004 ldr r3, [pc, #4] ; 300226ec <== NOT EXECUTED 300226e4: e5830000 str r0, [r3] <== NOT EXECUTED } 300226e8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 300226ec: 3005f0e4 .word 0x3005f0e4 300226f0: 30054898 .word 0x30054898 300226f4: 30055632 .word 0x30055632 3002288c : return NULL; return &pwent; } void setpwent(void) { 3002288c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED init_etc_passwd_group(); 30022890: ebffff57 bl 300225f4 <== NOT EXECUTED if (passwd_fp != NULL) 30022894: e59f3020 ldr r3, [pc, #32] ; 300228bc <== NOT EXECUTED 30022898: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED 3002289c: e3500000 cmp r0, #0 <== NOT EXECUTED fclose(passwd_fp); 300228a0: 1b00553f blne 30037da4 <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); 300228a4: e59f0014 ldr r0, [pc, #20] ; 300228c0 <== NOT EXECUTED 300228a8: e59f1014 ldr r1, [pc, #20] ; 300228c4 <== NOT EXECUTED 300228ac: eb00575f bl 30038630 <== NOT EXECUTED 300228b0: e59f3004 ldr r3, [pc, #4] ; 300228bc <== NOT EXECUTED 300228b4: e5830004 str r0, [r3, #4] <== NOT EXECUTED } 300228b8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED 300228bc: 3005f0e4 .word 0x3005f0e4 300228c0: 300547ea .word 0x300547ea 300228c4: 30055632 .word 0x30055632 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: 3005b6a4 .word 0x3005b6a4 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: eb00c4eb bl 30037c70 <__errno> 300068c0: e3a0300e mov r3, #14 300068c4: ea000018 b 3000692c status = rtems_filesystem_evaluate_path( path, strlen( path ), 300068c8: eb00df62 bl 3003e658 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: eb00c4d1 bl 30037c70 <__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: eb00d182 bl 3003af50 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} 300234ec : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { 300234ec: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED 300234f0: e24dd018 sub sp, sp, #24 <== NOT EXECUTED 300234f4: e1a05001 mov r5, r1 <== NOT EXECUTED 300234f8: 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 ) ) 300234fc: eb006c55 bl 3003e658 <== NOT EXECUTED 30023500: e28d4004 add r4, sp, #4 <== NOT EXECUTED 30023504: e1a01000 mov r1, r0 <== NOT EXECUTED 30023508: e3a0c001 mov ip, #1 <== NOT EXECUTED 3002350c: e1a00006 mov r0, r6 <== NOT EXECUTED 30023510: e3a02000 mov r2, #0 <== NOT EXECUTED 30023514: e1a03004 mov r3, r4 <== NOT EXECUTED 30023518: e58dc000 str ip, [sp] <== NOT EXECUTED 3002351c: ebff873c bl 30005214 <== NOT EXECUTED 30023520: e2501000 subs r1, r0, #0 <== NOT EXECUTED 30023524: 1a000007 bne 30023548 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; 30023528: e59d6014 ldr r6, [sp, #20] <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; 3002352c: e5963028 ldr r3, [r6, #40] ; 0x28 <== NOT EXECUTED 30023530: e5933044 ldr r3, [r3, #68] ; 0x44 <== NOT EXECUTED 30023534: e3530000 cmp r3, #0 <== NOT EXECUTED 30023538: 1a000004 bne 30023550 <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); 3002353c: eb0051cb bl 30037c70 <__errno> <== NOT EXECUTED 30023540: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30023544: e5803000 str r3, [r0] <== NOT EXECUTED 30023548: e3e05000 mvn r5, #0 <== NOT EXECUTED 3002354c: ea000010 b 30023594 <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); 30023550: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED 30023554: e1a00005 mov r0, r5 <== NOT EXECUTED 30023558: eb005e7c bl 3003af50 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); 3002355c: e1a01005 mov r1, r5 <== NOT EXECUTED 30023560: e5963028 ldr r3, [r6, #40] ; 0x28 <== NOT EXECUTED 30023564: e286001c add r0, r6, #28 <== NOT EXECUTED 30023568: e1a0e00f mov lr, pc <== NOT EXECUTED 3002356c: e593f044 ldr pc, [r3, #68] ; 0x44 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30023570: 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 ); 30023574: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); 30023578: e3530000 cmp r3, #0 <== NOT EXECUTED 3002357c: 0a000004 beq 30023594 <== NOT EXECUTED 30023580: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 30023584: e3530000 cmp r3, #0 <== NOT EXECUTED 30023588: 11a00004 movne r0, r4 <== NOT EXECUTED 3002358c: 11a0e00f movne lr, pc <== NOT EXECUTED 30023590: 112fff13 bxne r3 <== NOT EXECUTED return result; } 30023594: e1a00005 mov r0, r5 <== NOT EXECUTED 30023598: e28dd018 add sp, sp, #24 <== NOT EXECUTED 3002359c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED 300235a0 : int symlink( const char *actualpath, const char *sympath ) { 300235a0: 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 ); 300235a4: e5d13000 ldrb r3, [r1] int symlink( const char *actualpath, const char *sympath ) { 300235a8: 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 ); 300235ac: e353002f cmp r3, #47 ; 0x2f 300235b0: 1353005c cmpne r3, #92 ; 0x5c int symlink( const char *actualpath, const char *sympath ) { 300235b4: e1a06001 mov r6, r1 300235b8: 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 ); 300235bc: 13a05000 movne r5, #0 300235c0: 03a05001 moveq r5, #1 300235c4: 0a000001 beq 300235d0 300235c8: e3530000 cmp r3, #0 300235cc: 1a000005 bne 300235e8 300235d0: e59f30dc ldr r3, [pc, #220] ; 300236b4 300235d4: e1a0c00d mov ip, sp 300235d8: e593e000 ldr lr, [r3] 300235dc: e3a05001 mov r5, #1 300235e0: e28ee018 add lr, lr, #24 300235e4: ea000003 b 300235f8 300235e8: e59f30c4 ldr r3, [pc, #196] ; 300236b4 300235ec: e1a0c00d mov ip, sp 300235f0: e593e000 ldr lr, [r3] 300235f4: e28ee004 add lr, lr, #4 300235f8: e8be000f ldm lr!, {r0, r1, r2, r3} 300235fc: e8ac000f stmia ip!, {r0, r1, r2, r3} 30023600: e59e3000 ldr r3, [lr] 30023604: e58c3000 str r3, [ip] if ( !loc.ops->evalformake_h ) { 30023608: e59d300c ldr r3, [sp, #12] 3002360c: e5933004 ldr r3, [r3, #4] 30023610: e3530000 cmp r3, #0 30023614: 0a000010 beq 3002365c rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); 30023618: e0860005 add r0, r6, r5 3002361c: e1a0100d mov r1, sp 30023620: e28d2014 add r2, sp, #20 30023624: e1a0e00f mov lr, pc 30023628: e12fff13 bx r3 if ( result != 0 ) 3002362c: 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 ); 30023630: e1a0700d mov r7, sp if ( result != 0 ) 30023634: 1a00000b bne 30023668 return -1; if ( !loc.ops->symlink_h ) { 30023638: e59d200c ldr r2, [sp, #12] 3002363c: e5923038 ldr r3, [r2, #56] ; 0x38 30023640: e3530000 cmp r3, #0 30023644: 1a000009 bne 30023670 rtems_filesystem_freenode( &loc ); 30023648: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3002364c: e3530000 cmp r3, #0 <== NOT EXECUTED 30023650: 11a0000d movne r0, sp <== NOT EXECUTED 30023654: 11a0e00f movne lr, pc <== NOT EXECUTED 30023658: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3002365c: eb005183 bl 30037c70 <__errno> <== NOT EXECUTED 30023660: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 30023664: e5803000 str r3, [r0] <== NOT EXECUTED 30023668: e3e04000 mvn r4, #0 3002366c: ea00000d b 300236a8 } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); 30023670: e1a01004 mov r1, r4 30023674: e1a0000d mov r0, sp 30023678: e59d2014 ldr r2, [sp, #20] 3002367c: e1a0e00f mov lr, pc 30023680: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 30023684: 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); 30023688: e1a04000 mov r4, r0 rtems_filesystem_freenode( &loc ); 3002368c: e3530000 cmp r3, #0 30023690: 0a000004 beq 300236a8 30023694: e593301c ldr r3, [r3, #28] 30023698: e3530000 cmp r3, #0 3002369c: 11a0000d movne r0, sp 300236a0: 11a0e00f movne lr, pc 300236a4: 112fff13 bxne r3 return result; } 300236a8: e1a00004 mov r0, r4 300236ac: e28dd018 add sp, sp, #24 300236b0: e8bd80f0 pop {r4, r5, r6, r7, pc} 300236b4: 3005b6a4 .word 0x3005b6a4 3000f5e4 : int fd, int opt, struct termios *tp ) { switch (opt) { 3000f5e4: e3510000 cmp r1, #0 int tcsetattr( int fd, int opt, struct termios *tp ) { 3000f5e8: e92d4030 push {r4, r5, lr} 3000f5ec: e1a04002 mov r4, r2 3000f5f0: e1a05000 mov r5, r0 switch (opt) { 3000f5f4: 0a00000a beq 3000f624 3000f5f8: e3510001 cmp r1, #1 <== NOT EXECUTED 3000f5fc: 0a000003 beq 3000f610 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000f600: eb000ec9 bl 3001312c <__errno> <== NOT EXECUTED 3000f604: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000f608: e5803000 str r3, [r0] <== NOT EXECUTED 3000f60c: ea000009 b 3000f638 <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) 3000f610: e3a01003 mov r1, #3 <== NOT EXECUTED 3000f614: e3a02000 mov r2, #0 <== NOT EXECUTED 3000f618: eb000b81 bl 30012424 <== NOT EXECUTED 3000f61c: e3500000 cmp r0, #0 <== NOT EXECUTED 3000f620: ba000004 blt 3000f638 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 3000f624: e1a00005 mov r0, r5 3000f628: e1a02004 mov r2, r4 3000f62c: e3a01002 mov r1, #2 } } 3000f630: e8bd4030 pop {r4, r5, lr} return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); 3000f634: ea000b7a b 30012424 } } 3000f638: e3e00000 mvn r0, #0 <== NOT EXECUTED 3000f63c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED 3000b370 : #include int unlink( const char *path ) { 3000b370: e92d4070 push {r4, r5, r6, lr} 3000b374: e24dd02c sub sp, sp, #44 ; 0x2c 3000b378: e1a06000 mov r6, r0 /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); 3000b37c: ebffd7af bl 30001240 if ( parentpathlen == 0 ) 3000b380: e2505000 subs r5, r0, #0 3000b384: 1a000015 bne 3000b3e0 rtems_filesystem_get_start_loc( path, &i, &parentloc ); 3000b388: e5d63000 ldrb r3, [r6] 3000b38c: e353002f cmp r3, #47 ; 0x2f 3000b390: 1353005c cmpne r3, #92 ; 0x5c 3000b394: 0a000001 beq 3000b3a0 3000b398: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b39c: 1a000005 bne 3000b3b8 <== NOT EXECUTED 3000b3a0: e59f3238 ldr r3, [pc, #568] ; 3000b5e0 3000b3a4: e28dc018 add ip, sp, #24 3000b3a8: e593e000 ldr lr, [r3] 3000b3ac: e3a04000 mov r4, #0 3000b3b0: e28ee018 add lr, lr, #24 3000b3b4: ea000004 b 3000b3cc 3000b3b8: e59f3220 ldr r3, [pc, #544] ; 3000b5e0 <== NOT EXECUTED 3000b3bc: e28dc018 add ip, sp, #24 <== NOT EXECUTED 3000b3c0: e593e000 ldr lr, [r3] <== NOT EXECUTED 3000b3c4: e1a04005 mov r4, r5 <== NOT EXECUTED 3000b3c8: e28ee004 add lr, lr, #4 <== NOT EXECUTED 3000b3cc: e8be000f ldm lr!, {r0, r1, r2, r3} 3000b3d0: e8ac000f stmia ip!, {r0, r1, r2, r3} 3000b3d4: e59e3000 ldr r3, [lr] 3000b3d8: e58c3000 str r3, [ip] 3000b3dc: ea000009 b 3000b408 else { result = rtems_filesystem_evaluate_path( path, parentpathlen, 3000b3e0: e3a0c000 mov ip, #0 3000b3e4: e1a00006 mov r0, r6 3000b3e8: e1a01005 mov r1, r5 3000b3ec: e3a02002 mov r2, #2 3000b3f0: e28d3018 add r3, sp, #24 3000b3f4: e58dc000 str ip, [sp] 3000b3f8: ebffd7d8 bl 30001360 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) 3000b3fc: e3500000 cmp r0, #0 3000b400: 1a000072 bne 3000b5d0 3000b404: e3a04001 mov r4, #1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 3000b408: e28dc004 add ip, sp, #4 3000b40c: e28de018 add lr, sp, #24 3000b410: e8be000f ldm lr!, {r0, r1, r2, r3} 3000b414: e8ac000f stmia ip!, {r0, r1, r2, r3} 3000b418: e59e3000 ldr r3, [lr] name = path + parentpathlen; 3000b41c: e0865005 add r5, r6, r5 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; 3000b420: e58c3000 str r3, [ip] name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); 3000b424: e1a00005 mov r0, r5 3000b428: eb000481 bl 3000c634 3000b42c: e1a01000 mov r1, r0 3000b430: e1a00005 mov r0, r5 3000b434: ebffd775 bl 30001210 3000b438: e0856000 add r6, r5, r0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), 3000b43c: e1a00006 mov r0, r6 3000b440: eb00047b bl 3000c634 3000b444: e28d5004 add r5, sp, #4 3000b448: e3a0c000 mov ip, #0 3000b44c: e1a01000 mov r1, r0 3000b450: e1a0200c mov r2, ip 3000b454: e1a00006 mov r0, r6 3000b458: e1a03005 mov r3, r5 3000b45c: e58dc000 str ip, [sp] 3000b460: ebffd786 bl 30001280 0, &loc, false ); if ( result != 0 ) { 3000b464: e3500000 cmp r0, #0 3000b468: 0a00000b beq 3000b49c if ( free_parentloc ) 3000b46c: e3540000 cmp r4, #0 3000b470: 0a000056 beq 3000b5d0 rtems_filesystem_freenode( &parentloc ); 3000b474: e59d3024 ldr r3, [sp, #36] ; 0x24 3000b478: e3530000 cmp r3, #0 3000b47c: 0a000053 beq 3000b5d0 3000b480: e593301c ldr r3, [r3, #28] 3000b484: e3530000 cmp r3, #0 3000b488: 0a000050 beq 3000b5d0 3000b48c: e28d0018 add r0, sp, #24 3000b490: e1a0e00f mov lr, pc 3000b494: e12fff13 bx r3 3000b498: ea00004c b 3000b5d0 return -1; } if ( !loc.ops->node_type_h ) { 3000b49c: e59d2010 ldr r2, [sp, #16] 3000b4a0: e5923010 ldr r3, [r2, #16] 3000b4a4: e3530000 cmp r3, #0 3000b4a8: 0a00001c beq 3000b520 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 ) { 3000b4ac: e1a00005 mov r0, r5 3000b4b0: e1a0e00f mov lr, pc 3000b4b4: e12fff13 bx r3 3000b4b8: e3500001 cmp r0, #1 3000b4bc: e59d2010 ldr r2, [sp, #16] 3000b4c0: 1a000013 bne 3000b514 rtems_filesystem_freenode( &loc ); 3000b4c4: e3520000 cmp r2, #0 3000b4c8: 0a000004 beq 3000b4e0 3000b4cc: e592301c ldr r3, [r2, #28] 3000b4d0: e3530000 cmp r3, #0 3000b4d4: 11a00005 movne r0, r5 3000b4d8: 11a0e00f movne lr, pc 3000b4dc: 112fff13 bxne r3 if ( free_parentloc ) 3000b4e0: e3540000 cmp r4, #0 3000b4e4: 0a000007 beq 3000b508 rtems_filesystem_freenode( &parentloc ); 3000b4e8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 3000b4ec: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b4f0: 0a000004 beq 3000b508 <== NOT EXECUTED 3000b4f4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000b4f8: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b4fc: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 3000b500: 11a0e00f movne lr, pc <== NOT EXECUTED 3000b504: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); 3000b508: eb000058 bl 3000b670 <__errno> 3000b50c: e3a03015 mov r3, #21 3000b510: ea000013 b 3000b564 } if ( !loc.ops->unlink_h ) { 3000b514: e592300c ldr r3, [r2, #12] 3000b518: e3530000 cmp r3, #0 3000b51c: 1a000012 bne 3000b56c rtems_filesystem_freenode( &loc ); 3000b520: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 3000b524: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b528: 11a00005 movne r0, r5 <== NOT EXECUTED 3000b52c: 11a0e00f movne lr, pc <== NOT EXECUTED 3000b530: 112fff13 bxne r3 <== NOT EXECUTED if ( free_parentloc ) 3000b534: e3540000 cmp r4, #0 <== NOT EXECUTED 3000b538: 0a000007 beq 3000b55c <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); 3000b53c: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED 3000b540: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b544: 0a000004 beq 3000b55c <== NOT EXECUTED 3000b548: e593301c ldr r3, [r3, #28] <== NOT EXECUTED 3000b54c: e3530000 cmp r3, #0 <== NOT EXECUTED 3000b550: 128d0018 addne r0, sp, #24 <== NOT EXECUTED 3000b554: 11a0e00f movne lr, pc <== NOT EXECUTED 3000b558: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 3000b55c: eb000043 bl 3000b670 <__errno> <== NOT EXECUTED 3000b560: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3000b564: e5803000 str r3, [r0] 3000b568: ea000018 b 3000b5d0 } result = (*loc.ops->unlink_h)( &parentloc, &loc ); 3000b56c: e28d0018 add r0, sp, #24 3000b570: e1a01005 mov r1, r5 3000b574: e1a0e00f mov lr, pc 3000b578: e12fff13 bx r3 rtems_filesystem_freenode( &loc ); 3000b57c: 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 ); 3000b580: e1a06000 mov r6, r0 rtems_filesystem_freenode( &loc ); 3000b584: e3530000 cmp r3, #0 3000b588: 0a000004 beq 3000b5a0 3000b58c: e593301c ldr r3, [r3, #28] 3000b590: e3530000 cmp r3, #0 3000b594: 11a00005 movne r0, r5 3000b598: 11a0e00f movne lr, pc 3000b59c: 112fff13 bxne r3 if ( free_parentloc ) 3000b5a0: e3540000 cmp r4, #0 3000b5a4: 0a00000a beq 3000b5d4 rtems_filesystem_freenode( &parentloc ); 3000b5a8: e59d3024 ldr r3, [sp, #36] ; 0x24 3000b5ac: e3530000 cmp r3, #0 3000b5b0: 0a000007 beq 3000b5d4 3000b5b4: e593301c ldr r3, [r3, #28] 3000b5b8: e3530000 cmp r3, #0 3000b5bc: 0a000004 beq 3000b5d4 3000b5c0: e28d0018 add r0, sp, #24 3000b5c4: e1a0e00f mov lr, pc 3000b5c8: e12fff13 bx r3 3000b5cc: ea000000 b 3000b5d4 3000b5d0: e3e06000 mvn r6, #0 return result; } 3000b5d4: e1a00006 mov r0, r6 3000b5d8: e28dd02c add sp, sp, #44 ; 0x2c 3000b5dc: e8bd8070 pop {r4, r5, r6, pc} 3000b5e0: 30017e84 .word 0x30017e84 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: eb00d7c0 bl 3003e658 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: eb00bd2e bl 30037c70 <__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: eb00bd1c bl 30037c70 <__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: eb00bd09 bl 30037c70 <__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: eb00047a bl 30009a90 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); 300088a4: e1a00005 mov r0, r5 300088a8: eb00052c bl 30009d60 <_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: 3005b6a4 .word 0x3005b6a4 30008900: 3005f414 .word 0x3005f414 30023748 : int utime( const char *path, const struct utimbuf *times ) { 30023748: e92d4070 push {r4, r5, r6, lr} 3002374c: e24dd018 sub sp, sp, #24 30023750: e1a05001 mov r5, r1 30023754: 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 ) ) 30023758: eb006bbe bl 3003e658 3002375c: e28d4004 add r4, sp, #4 30023760: e1a01000 mov r1, r0 30023764: e3a0c001 mov ip, #1 30023768: e1a00006 mov r0, r6 3002376c: e3a02000 mov r2, #0 30023770: e1a03004 mov r3, r4 30023774: e58dc000 str ip, [sp] 30023778: ebff86a5 bl 30005214 3002377c: e3500000 cmp r0, #0 30023780: 1a00000b bne 300237b4 return -1; if ( !temp_loc.ops->utime_h ){ 30023784: e59d2010 ldr r2, [sp, #16] 30023788: e5923030 ldr r3, [r2, #48] ; 0x30 3002378c: e3530000 cmp r3, #0 30023790: 1a000009 bne 300237bc rtems_filesystem_freenode( &temp_loc ); 30023794: e592301c ldr r3, [r2, #28] <== NOT EXECUTED 30023798: e3530000 cmp r3, #0 <== NOT EXECUTED 3002379c: 11a00004 movne r0, r4 <== NOT EXECUTED 300237a0: 11a0e00f movne lr, pc <== NOT EXECUTED 300237a4: 112fff13 bxne r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); 300237a8: eb005130 bl 30037c70 <__errno> <== NOT EXECUTED 300237ac: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 300237b0: e5803000 str r3, [r0] <== NOT EXECUTED 300237b4: e3e05000 mvn r5, #0 300237b8: ea00000c b 300237f0 } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); 300237bc: e8950006 ldm r5, {r1, r2} 300237c0: e1a00004 mov r0, r4 300237c4: e1a0e00f mov lr, pc 300237c8: e12fff13 bx r3 rtems_filesystem_freenode( &temp_loc ); 300237cc: 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 ); 300237d0: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); 300237d4: e3530000 cmp r3, #0 300237d8: 0a000004 beq 300237f0 300237dc: e593301c ldr r3, [r3, #28] 300237e0: e3530000 cmp r3, #0 300237e4: 11a00004 movne r0, r4 300237e8: 11a0e00f movne lr, pc 300237ec: 112fff13 bxne r3 return result; } 300237f0: e1a00005 mov r0, r5 300237f4: e28dd018 add sp, sp, #24 300237f8: e8bd8070 pop {r4, r5, r6, pc} 300168d0 : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300168d0: e59f30b0 ldr r3, [pc, #176] ; 30016988 ssize_t write( int fd, const void *buffer, size_t count ) { 300168d4: e92d4070 push {r4, r5, r6, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300168d8: e5933000 ldr r3, [r3] ssize_t write( int fd, const void *buffer, size_t count ) { 300168dc: e1a05001 mov r5, r1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); 300168e0: e1500003 cmp r0, r3 300168e4: 2a000005 bcs 30016900 iop = rtems_libio_iop( fd ); 300168e8: e59f309c ldr r3, [pc, #156] ; 3001698c 300168ec: e5934000 ldr r4, [r3] 300168f0: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); 300168f4: e5943014 ldr r3, [r4, #20] 300168f8: e3130c01 tst r3, #256 ; 0x100 300168fc: 1a000002 bne 3001690c 30016900: ebffd35a bl 3000b670 <__errno> <== NOT EXECUTED 30016904: e3a03009 mov r3, #9 <== NOT EXECUTED 30016908: ea00000f b 3001694c <== NOT EXECUTED rtems_libio_check_buffer( buffer ); 3001690c: e3510000 cmp r1, #0 30016910: 0a000004 beq 30016928 rtems_libio_check_count( count ); 30016914: e3520000 cmp r2, #0 30016918: 01a00002 moveq r0, r2 3001691c: 08bd8070 popeq {r4, r5, r6, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); 30016920: e3130004 tst r3, #4 30016924: 1a000002 bne 30016934 30016928: ebffd350 bl 3000b670 <__errno> <== NOT EXECUTED 3001692c: e3a03016 mov r3, #22 <== NOT EXECUTED 30016930: ea000005 b 3001694c <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) 30016934: e594303c ldr r3, [r4, #60] ; 0x3c 30016938: e593300c ldr r3, [r3, #12] 3001693c: e3530000 cmp r3, #0 30016940: 1a000004 bne 30016958 rtems_set_errno_and_return_minus_one( ENOTSUP ); 30016944: ebffd349 bl 3000b670 <__errno> <== NOT EXECUTED 30016948: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED 3001694c: e5803000 str r3, [r0] <== NOT EXECUTED 30016950: e3e00000 mvn r0, #0 <== NOT EXECUTED 30016954: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); 30016958: e1a00004 mov r0, r4 3001695c: e1a0e00f mov lr, pc 30016960: e12fff13 bx r3 if ( rc > 0 ) 30016964: e3500000 cmp r0, #0 30016968: d8bd8070 pople {r4, r5, r6, pc} iop->offset += rc; 3001696c: e284600c add r6, r4, #12 30016970: e8960060 ldm r6, {r5, r6} 30016974: e0952000 adds r2, r5, r0 30016978: e0a63fc0 adc r3, r6, r0, asr #31 3001697c: e584200c str r2, [r4, #12] 30016980: e5843010 str r3, [r4, #16] return rc; } 30016984: e8bd8070 pop {r4, r5, r6, pc} 30016988: 30017c8c .word 0x30017c8c 3001698c: 300185ac .word 0x300185ac 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: eb002167 bl 3000daec <__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: eb002158 bl 3000daec <__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: eb00213f bl 3000daec <__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: 3001c5d8 .word 0x3001c5d8 30005688: 3001d6cc .word 0x3001d6cc 3000568c: 00007fff .word 0x00007fff