a0007810 : { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; switch( node->type ) { a0007810: e5902000 ldr r2, [r0] ) { IMFS_jnode_t *node = loc->node_access; IMFS_fs_info_t *fs_info; fs_info = loc->mt_entry->fs_info; a0007814: e5903010 ldr r3, [r0, #16] switch( node->type ) { a0007818: 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; a000781c: e5933034 ldr r3, [r3, #52] ; 0x34 switch( node->type ) { a0007820: e2422001 sub r2, r2, #1 a0007824: e3520006 cmp r2, #6 a0007828: 979ff102 ldrls pc, [pc, r2, lsl #2] a000782c: ea000010 b a0007874 <== NOT EXECUTED a0007830: a000784c .word 0xa000784c <== NOT EXECUTED a0007834: a0007854 .word 0xa0007854 <== NOT EXECUTED a0007838: a000785c .word 0xa000785c <== NOT EXECUTED a000783c: a000785c .word 0xa000785c <== NOT EXECUTED a0007840: a0007864 .word 0xa0007864 <== NOT EXECUTED a0007844: a0007864 .word 0xa0007864 <== NOT EXECUTED a0007848: a000786c .word 0xa000786c <== NOT EXECUTED case IMFS_DIRECTORY: loc->handlers = fs_info->directory_handlers; a000784c: e5933008 ldr r3, [r3, #8] a0007850: ea000006 b a0007870 break; case IMFS_DEVICE: loc->handlers = &IMFS_device_handlers; a0007854: e59f3020 ldr r3, [pc, #32] ; a000787c a0007858: ea000004 b a0007870 break; case IMFS_SYM_LINK: case IMFS_HARD_LINK: loc->handlers = &IMFS_link_handlers; a000785c: e59f301c ldr r3, [pc, #28] ; a0007880 a0007860: ea000002 b a0007870 break; case IMFS_LINEAR_FILE: loc->handlers = fs_info->memfile_handlers; break; case IMFS_MEMORY_FILE: loc->handlers = fs_info->memfile_handlers; a0007864: e5933004 ldr r3, [r3, #4] a0007868: ea000000 b a0007870 break; case IMFS_FIFO: loc->handlers = &IMFS_fifo_handlers; a000786c: e59f3010 ldr r3, [pc, #16] ; a0007884 a0007870: e5803008 str r3, [r0, #8] break; } return 0; } a0007874: e3a00000 mov r0, #0 a0007878: e12fff1e bx lr a000787c: a0018c34 .word 0xa0018c34 a0007880: a0018c6c .word 0xa0018c6c a0007884: a0018bdc .word 0xa0018bdc a000c4e4 : int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { a000c4e4: e92d40f3 push {r0, r1, r4, r5, r6, r7, lr} a000c4e8: e1a02802 lsl r2, r2, #16 a000c4ec: e1a01801 lsl r1, r1, #16 IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = (IMFS_jnode_t *) pathloc->node_access; a000c4f0: e5904000 ldr r4, [r0] int IMFS_chown( rtems_filesystem_location_info_t *pathloc, /* IN */ uid_t owner, /* IN */ gid_t group /* IN */ ) { a000c4f4: e1a07821 lsr r7, r1, #16 a000c4f8: e1a06822 lsr r6, r2, #16 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); a000c4fc: eb000445 bl a000d618 if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) a000c500: e1d453bc ldrh r5, [r4, #60] ; 0x3c a000c504: e3500000 cmp r0, #0 a000c508: 11550000 cmpne r5, r0 a000c50c: 03a05000 moveq r5, #0 a000c510: 13a05001 movne r5, #1 a000c514: 0a000004 beq a000c52c rtems_set_errno_and_return_minus_one( EPERM ); a000c518: eb00155c bl a0011a90 <__errno> <== NOT EXECUTED a000c51c: e3a03001 mov r3, #1 <== NOT EXECUTED a000c520: e5803000 str r3, [r0] <== NOT EXECUTED a000c524: e3e00000 mvn r0, #0 <== NOT EXECUTED a000c528: ea000007 b a000c54c <== NOT EXECUTED #endif jnode->st_uid = owner; a000c52c: e1c473bc strh r7, [r4, #60] ; 0x3c jnode->st_gid = group; a000c530: e1c463be strh r6, [r4, #62] ; 0x3e IMFS_update_ctime( jnode ); a000c534: e1a0000d mov r0, sp a000c538: e1a01005 mov r1, r5 a000c53c: ebffd897 bl a00027a0 a000c540: e59d3000 ldr r3, [sp] a000c544: e1a00005 mov r0, r5 a000c548: e5843048 str r3, [r4, #72] ; 0x48 return 0; } a000c54c: e8bd80fc pop {r2, r3, r4, r5, r6, r7, pc} a000b1cc : IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { a000b1cc: 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 ) a000b1d0: e2504000 subs r4, r0, #0 IMFS_jnode_types_t type, const char *name, mode_t mode, const IMFS_types_union *info ) { a000b1d4: e1a05001 mov r5, r1 a000b1d8: e59d6014 ldr r6, [sp, #20] IMFS_fs_info_t *fs_info; /* * MUST have a parent node to call this routine. */ if ( parent_loc == NULL ) a000b1dc: 01a07004 moveq r7, r4 a000b1e0: 0a000042 beq a000b2f0 return NULL; /* * Allocate filesystem node and fill in basic information */ node = IMFS_allocate_node( type, name, mode & ~rtems_filesystem_umask ); a000b1e4: e1a01002 mov r1, r2 a000b1e8: e59f2108 ldr r2, [pc, #264] ; a000b2f8 a000b1ec: e1a00005 mov r0, r5 a000b1f0: e5922000 ldr r2, [r2] a000b1f4: e592202c ldr r2, [r2, #44] ; 0x2c a000b1f8: e1c32002 bic r2, r3, r2 a000b1fc: ebffffc4 bl a000b114 if ( !node ) a000b200: e2507000 subs r7, r0, #0 a000b204: 0a000039 beq a000b2f0 return NULL; /* * Set the type specific information */ switch (type) { a000b208: e2455001 sub r5, r5, #1 a000b20c: e3550006 cmp r5, #6 a000b210: 979ff105 ldrls pc, [pc, r5, lsl #2] a000b214: ea000025 b a000b2b0 <== NOT EXECUTED a000b218: a000b234 .word 0xa000b234 <== NOT EXECUTED a000b21c: a000b258 .word 0xa000b258 <== NOT EXECUTED a000b220: a000b250 .word 0xa000b250 <== NOT EXECUTED a000b224: a000b250 .word 0xa000b250 <== NOT EXECUTED a000b228: a000b280 .word 0xa000b280 <== NOT EXECUTED a000b22c: a000b268 .word 0xa000b268 <== NOT EXECUTED a000b230: a000b2a4 .word 0xa000b2a4 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); a000b234: e2872054 add r2, r7, #84 ; 0x54 the_chain->permanent_null = NULL; the_chain->last = _Chain_Head(the_chain); a000b238: e2873050 add r3, r7, #80 ; 0x50 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); a000b23c: e5872050 str r2, [r7, #80] ; 0x50 the_chain->permanent_null = NULL; a000b240: e3a02000 mov r2, #0 a000b244: e5872054 str r2, [r7, #84] ; 0x54 the_chain->last = _Chain_Head(the_chain); a000b248: e5873058 str r3, [r7, #88] ; 0x58 a000b24c: ea00001c b a000b2c4 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; a000b250: e5963000 ldr r3, [r6] a000b254: ea000013 b a000b2a8 break; case IMFS_DEVICE: node->info.device.major = info->device.major; node->info.device.minor = info->device.minor; a000b258: 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; a000b25c: e5963000 ldr r3, [r6] node->info.device.minor = info->device.minor; a000b260: e5872054 str r2, [r7, #84] ; 0x54 a000b264: ea00000f b a000b2a8 break; case IMFS_LINEAR_FILE: node->info.linearfile.size = 0; a000b268: e3a03000 mov r3, #0 <== NOT EXECUTED a000b26c: e3a02000 mov r2, #0 <== NOT EXECUTED a000b270: e5872050 str r2, [r7, #80] ; 0x50 <== NOT EXECUTED a000b274: e5873054 str r3, [r7, #84] ; 0x54 <== NOT EXECUTED node->info.linearfile.direct = 0; a000b278: e3a03000 mov r3, #0 <== NOT EXECUTED a000b27c: e5873058 str r3, [r7, #88] ; 0x58 <== NOT EXECUTED case IMFS_MEMORY_FILE: node->info.file.size = 0; node->info.file.indirect = 0; a000b280: 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; a000b284: e3a01000 mov r1, #0 a000b288: e3a02000 mov r2, #0 a000b28c: e5871050 str r1, [r7, #80] ; 0x50 a000b290: e5872054 str r2, [r7, #84] ; 0x54 node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; a000b294: 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; a000b298: e5873058 str r3, [r7, #88] ; 0x58 node->info.file.doubly_indirect = 0; a000b29c: e587305c str r3, [r7, #92] ; 0x5c node->info.file.triply_indirect = 0; break; a000b2a0: ea000007 b a000b2c4 case IMFS_FIFO: node->info.fifo.pipe = NULL; a000b2a4: e3a03000 mov r3, #0 a000b2a8: e5873050 str r3, [r7, #80] ; 0x50 break; a000b2ac: ea000004 b a000b2c4 default: assert(0); a000b2b0: e59f0044 ldr r0, [pc, #68] ; a000b2fc <== NOT EXECUTED a000b2b4: e3a0105c mov r1, #92 ; 0x5c <== NOT EXECUTED a000b2b8: e59f2040 ldr r2, [pc, #64] ; a000b300 <== NOT EXECUTED a000b2bc: e59f3040 ldr r3, [pc, #64] ; a000b304 <== NOT EXECUTED a000b2c0: ebfff4c8 bl a00085e8 <__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; a000b2c4: e5943010 ldr r3, [r4, #16] } /* * This node MUST have a parent, so put it in that directory list. */ parent = parent_loc->node_access; a000b2c8: e5940000 ldr r0, [r4] RTEMS_INLINE_ROUTINE void rtems_chain_append( rtems_chain_control *the_chain, rtems_chain_node *the_node ) { _Chain_Append( the_chain, the_node ); a000b2cc: e1a01007 mov r1, r7 fs_info = parent_loc->mt_entry->fs_info; a000b2d0: e5932034 ldr r2, [r3, #52] ; 0x34 node->Parent = parent; a000b2d4: e5870008 str r0, [r7, #8] a000b2d8: e2800050 add r0, r0, #80 ; 0x50 node->st_ino = ++fs_info->ino_count; a000b2dc: e5923000 ldr r3, [r2] a000b2e0: e2833001 add r3, r3, #1 a000b2e4: e5823000 str r3, [r2] a000b2e8: e5873038 str r3, [r7, #56] ; 0x38 a000b2ec: ebffe5f7 bl a0004ad0 <_Chain_Append> rtems_chain_append( &parent->info.directory.Entries, &node->Node ); return node; } a000b2f0: e1a00007 mov r0, r7 a000b2f4: e8bd80f0 pop {r4, r5, r6, r7, pc} a000b2f8: a0018418 .word 0xa0018418 a000b2fc: a0019632 .word 0xa0019632 a000b300: a0018f38 .word 0xa0018f38 a000b304: a001967b .word 0xa001967b a0002c60 : rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); a0002c60: e3500000 cmp r0, #0 void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) { a0002c64: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a0002c68: e1a05001 mov r5, r1 rtems_chain_node *the_node; rtems_chain_control *the_chain; IMFS_jnode_t *the_jnode; int i; assert( the_directory ); a0002c6c: 059f00a8 ldreq r0, [pc, #168] ; a0002d1c a0002c70: 03a01084 moveq r1, #132 ; 0x84 a0002c74: 059f20a4 ldreq r2, [pc, #164] ; a0002d20 a0002c78: 059f30a4 ldreq r3, [pc, #164] ; a0002d24 a0002c7c: 0a000005 beq a0002c98 assert( level >= 0 ); a0002c80: e3510000 cmp r1, #0 a0002c84: aa000004 bge a0002c9c a0002c88: e59f008c ldr r0, [pc, #140] ; a0002d1c <== NOT EXECUTED a0002c8c: e59f208c ldr r2, [pc, #140] ; a0002d20 <== NOT EXECUTED a0002c90: e59f3090 ldr r3, [pc, #144] ; a0002d28 <== NOT EXECUTED a0002c94: e3a01086 mov r1, #134 ; 0x86 <== NOT EXECUTED a0002c98: eb0001d6 bl a00033f8 <__assert_func> <== NOT EXECUTED assert( the_directory->type == IMFS_DIRECTORY ); a0002c9c: e590304c ldr r3, [r0, #76] ; 0x4c a0002ca0: e3530001 cmp r3, #1 a0002ca4: 159f0070 ldrne r0, [pc, #112] ; a0002d1c a0002ca8: 13a01088 movne r1, #136 ; 0x88 a0002cac: 159f206c ldrne r2, [pc, #108] ; a0002d20 a0002cb0: 159f3074 ldrne r3, [pc, #116] ; a0002d2c a0002cb4: 1afffff7 bne a0002c98 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a0002cb8: e280a054 add sl, r0, #84 ; 0x54 the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; a0002cbc: 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, "...." ); a0002cc0: e59f8068 ldr r8, [pc, #104] ; a0002d30 IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); a0002cc4: e2817001 add r7, r1, #1 assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; a0002cc8: ea000010 b a0002d10 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; a0002ccc: e3a06000 mov r6, #0 for ( i=0 ; i<=level ; i++ ) fprintf(stdout, "...." ); a0002cd0: 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++ ) a0002cd4: e2866001 add r6, r6, #1 fprintf(stdout, "...." ); a0002cd8: e59f0054 ldr r0, [pc, #84] ; a0002d34 a0002cdc: e5931008 ldr r1, [r3, #8] a0002ce0: eb0039d5 bl a001143c !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++ ) a0002ce4: e1560005 cmp r6, r5 a0002ce8: dafffff8 ble a0002cd0 fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); a0002cec: e1a00004 mov r0, r4 a0002cf0: ebffff7f bl a0002af4 if ( the_jnode->type == IMFS_DIRECTORY ) a0002cf4: e594304c ldr r3, [r4, #76] ; 0x4c a0002cf8: e3530001 cmp r3, #1 a0002cfc: 1a000002 bne a0002d0c IMFS_dump_directory( the_jnode, level + 1 ); a0002d00: e1a00004 mov r0, r4 a0002d04: e1a01007 mov r1, r7 a0002d08: ebffffd4 bl a0002c60 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 ) { a0002d0c: e5944000 ldr r4, [r4] assert( the_directory->type == IMFS_DIRECTORY ); the_chain = &the_directory->info.directory.Entries; for ( the_node = the_chain->first; a0002d10: e154000a cmp r4, sl a0002d14: 1affffec bne a0002ccc fprintf(stdout, "...." ); IMFS_print_jnode( the_jnode ); if ( the_jnode->type == IMFS_DIRECTORY ) IMFS_dump_directory( the_jnode, level + 1 ); } } a0002d18: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} a0002d1c: a002282a .word 0xa002282a a0002d20: a00213d0 .word 0xa00213d0 a0002d24: a00228e0 .word 0xa00228e0 a0002d28: a00228ee .word 0xa00228ee a0002d2c: a00228f9 .word 0xa00228f9 a0002d30: a0020e44 .word 0xa0020e44 a0002d34: a002291f .word 0xa002291f a0007a20 : const char *pathname, /* IN */ int pathnamelen, /* IN */ int flags, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { a0007a20: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a0007a24: e24dd044 sub sp, sp, #68 ; 0x44 a0007a28: e1a04003 mov r4, r3 a0007a2c: e58d0000 str r0, [sp] a0007a30: e1a06001 mov r6, r1 a0007a34: e58d2004 str r2, [sp, #4] /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; a0007a38: e5935000 ldr r5, [r3] a0007a3c: e3a09001 mov r9, #1 a0007a40: 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 ); a0007a44: e28d8008 add r8, sp, #8 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) a0007a48: e59fa210 ldr sl, [pc, #528] ; a0007c60 /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { a0007a4c: ea000054 b a0007ba4 type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); a0007a50: e59d3000 ldr r3, [sp] a0007a54: e1a01006 mov r1, r6 a0007a58: e1a02008 mov r2, r8 a0007a5c: e0830007 add r0, r3, r7 a0007a60: e28d3040 add r3, sp, #64 ; 0x40 a0007a64: eb0001e8 bl a000820c pathnamelen -= len; i += len; if ( !pathloc->node_access ) a0007a68: 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 ); a0007a6c: e1a09000 mov r9, r0 pathnamelen -= len; a0007a70: e59db040 ldr fp, [sp, #64] ; 0x40 i += len; if ( !pathloc->node_access ) a0007a74: e3530000 cmp r3, #0 a0007a78: 0a000041 beq a0007b84 rtems_set_errno_and_return_minus_one( ENOENT ); /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) a0007a7c: e3500000 cmp r0, #0 a0007a80: 0a000006 beq a0007aa0 if ( node->type == IMFS_DIRECTORY ) a0007a84: e595104c ldr r1, [r5, #76] ; 0x4c a0007a88: e3510001 cmp r1, #1 a0007a8c: 1a000003 bne a0007aa0 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) a0007a90: e1a00004 mov r0, r4 a0007a94: ebffff7b bl a0007888 a0007a98: e3500000 cmp r0, #0 a0007a9c: 0a000068 beq a0007c44 rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; switch( type ) { a0007aa0: e3590003 cmp r9, #3 while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; i += len; a0007aa4: e087700b add r7, r7, fp */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { type = IMFS_get_token( &pathname[i], pathnamelen, token, &len ); pathnamelen -= len; a0007aa8: e06b6006 rsb r6, fp, r6 if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; a0007aac: e5945000 ldr r5, [r4] switch( type ) { a0007ab0: 0a000012 beq a0007b00 a0007ab4: e3590004 cmp r9, #4 a0007ab8: 0a000036 beq a0007b98 a0007abc: e3590002 cmp r9, #2 a0007ac0: 1a000037 bne a0007ba4 case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) a0007ac4: e59a3000 ldr r3, [sl] a0007ac8: e5933018 ldr r3, [r3, #24] a0007acc: e1550003 cmp r5, r3 a0007ad0: 0a000033 beq a0007ba4 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access) { a0007ad4: e594e010 ldr lr, [r4, #16] /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == a0007ad8: e59e301c ldr r3, [lr, #28] a0007adc: e1550003 cmp r5, r3 */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; /* Throw out the .. in this case */ } else { newloc = pathloc->mt_entry->mt_point_node; a0007ae0: 028ee008 addeq lr, lr, #8 a0007ae4: 0a000038 beq a0007bcc pathnamelen+len, flags,pathloc); } } else { if ( !node->Parent ) a0007ae8: e5955008 ldr r5, [r5, #8] a0007aec: e3550000 cmp r5, #0 a0007af0: 1a000026 bne a0007b90 rtems_set_errno_and_return_minus_one( ENOENT ); a0007af4: eb0013ab bl a000c9a8 <__errno> a0007af8: e5809000 str r9, [r0] a0007afc: ea000053 b a0007c50 case IMFS_NAME: /* * If we are at a link follow it. */ if ( node->type == IMFS_HARD_LINK ) { a0007b00: e595304c ldr r3, [r5, #76] ; 0x4c a0007b04: e3530003 cmp r3, #3 a0007b08: 1a000006 bne a0007b28 IMFS_evaluate_hard_link( pathloc, 0 ); a0007b0c: e1a00004 mov r0, r4 a0007b10: e3a01000 mov r1, #0 a0007b14: ebffff6e bl a00078d4 node = pathloc->node_access; a0007b18: e5945000 ldr r5, [r4] if ( !node ) a0007b1c: e3550000 cmp r5, #0 a0007b20: 1a000009 bne a0007b4c a0007b24: ea00000b b a0007b58 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { a0007b28: e3530004 cmp r3, #4 a0007b2c: 1a000006 bne a0007b4c result = IMFS_evaluate_sym_link( pathloc, 0 ); a0007b30: e1a00004 mov r0, r4 a0007b34: e3a01000 mov r1, #0 a0007b38: ebffff7e bl a0007938 node = pathloc->node_access; if ( result == -1 ) a0007b3c: e3700001 cmn r0, #1 if ( !node ) rtems_set_errno_and_return_minus_one( ENOTDIR ); } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_sym_link( pathloc, 0 ); a0007b40: e1a0b000 mov fp, r0 node = pathloc->node_access; a0007b44: e5945000 ldr r5, [r4] if ( result == -1 ) a0007b48: 0a000041 beq a0007c54 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) a0007b4c: e595304c ldr r3, [r5, #76] ; 0x4c a0007b50: e3530001 cmp r3, #1 a0007b54: 0a000002 beq a0007b64 rtems_set_errno_and_return_minus_one( ENOTDIR ); a0007b58: eb001392 bl a000c9a8 <__errno> a0007b5c: e3a03014 mov r3, #20 a0007b60: ea000039 b a0007c4c /* * 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 ) { a0007b64: e595e05c ldr lr, [r5, #92] ; 0x5c a0007b68: e35e0000 cmp lr, #0 a0007b6c: 1a000015 bne a0007bc8 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); a0007b70: e1a00005 mov r0, r5 a0007b74: e1a01008 mov r1, r8 a0007b78: eb00017a bl a0008168 if ( !node ) a0007b7c: e2505000 subs r5, r0, #0 a0007b80: 1a000002 bne a0007b90 rtems_set_errno_and_return_minus_one( ENOENT ); a0007b84: eb001387 bl a000c9a8 <__errno> a0007b88: e3a03002 mov r3, #2 a0007b8c: ea00002e b a0007c4c /* * Set the node access to the point we have found. */ pathloc->node_access = node; a0007b90: e5845000 str r5, [r4] a0007b94: ea000002 b a0007ba4 case IMFS_NO_MORE_PATH: case IMFS_CURRENT_DIR: break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); a0007b98: eb001382 bl a000c9a8 <__errno> a0007b9c: e3a0305b mov r3, #91 ; 0x5b a0007ba0: ea000029 b a0007c4c /* * Evaluate all tokens until we are done or an error occurs. */ while( (type != IMFS_NO_MORE_PATH) && (type != IMFS_INVALID_TOKEN) ) { a0007ba4: e3590004 cmp r9, #4 a0007ba8: 13590000 cmpne r9, #0 a0007bac: 1affffa7 bne a0007a50 * 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 ) { a0007bb0: e595304c ldr r3, [r5, #76] ; 0x4c a0007bb4: e3530001 cmp r3, #1 a0007bb8: 1a000019 bne a0007c24 if ( node->info.directory.mt_fs != NULL ) { a0007bbc: e595e05c ldr lr, [r5, #92] ; 0x5c a0007bc0: e35e0000 cmp lr, #0 a0007bc4: 0a000016 beq a0007c24 newloc = node->info.directory.mt_fs->mt_fs_root; a0007bc8: e28ee01c add lr, lr, #28 a0007bcc: e28dc02c add ip, sp, #44 ; 0x2c a0007bd0: e8be000f ldm lr!, {r0, r1, r2, r3} a0007bd4: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; a0007bd8: e28d502c add r5, sp, #44 ; 0x2c a0007bdc: e8b5000f ldm r5!, {r0, r1, r2, r3} a0007be0: e1a05004 mov r5, r4 * NOTE: The behavior of stat() on a mount point appears to be questionable. */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; a0007be4: e59ee000 ldr lr, [lr] *pathloc = newloc; a0007be8: e8a5000f stmia r5!, {r0, r1, r2, r3} return (*pathloc->ops->evalpath_h)( &pathname[i-len], a0007bec: e59d1040 ldr r1, [sp, #64] ; 0x40 a0007bf0: e59d3000 ldr r3, [sp] */ if ( node->type == IMFS_DIRECTORY ) { if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; a0007bf4: e585e000 str lr, [r5] return (*pathloc->ops->evalpath_h)( &pathname[i-len], a0007bf8: 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; a0007bfc: e58ce000 str lr, [ip] *pathloc = newloc; return (*pathloc->ops->evalpath_h)( &pathname[i-len], a0007c00: e0830000 add r0, r3, r0 a0007c04: e0861001 add r1, r6, r1 a0007c08: e59d2004 ldr r2, [sp, #4] a0007c0c: e1a03004 mov r3, r4 a0007c10: e594c00c ldr ip, [r4, #12] a0007c14: e1a0e00f mov lr, pc a0007c18: e59cf000 ldr pc, [ip] a0007c1c: e1a0b000 mov fp, r0 a0007c20: ea00000b b a0007c54 flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); a0007c24: e1a00004 mov r0, r4 a0007c28: ebfffef8 bl a0007810 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) a0007c2c: e59d1004 ldr r1, [sp, #4] flags, pathloc ); } else { result = IMFS_Set_handlers( pathloc ); } } else { result = IMFS_Set_handlers( pathloc ); a0007c30: e1a0b000 mov fp, r0 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( pathloc, flags ) ) a0007c34: e1a00004 mov r0, r4 a0007c38: ebffff12 bl a0007888 a0007c3c: e3500000 cmp r0, #0 a0007c40: 1a000003 bne a0007c54 rtems_set_errno_and_return_minus_one( EACCES ); a0007c44: eb001357 bl a000c9a8 <__errno> a0007c48: e3a0300d mov r3, #13 a0007c4c: e5803000 str r3, [r0] a0007c50: e3e0b000 mvn fp, #0 return result; } a0007c54: e1a0000b mov r0, fp a0007c58: e28dd044 add sp, sp, #68 ; 0x44 a0007c5c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} a0007c60: a0018418 .word 0xa0018418 a0007d18 : int IMFS_evaluate_for_make( const char *path, /* IN */ rtems_filesystem_location_info_t *pathloc, /* IN/OUT */ const char **name /* OUT */ ) { a0007d18: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a0007d1c: e24dd040 sub sp, sp, #64 ; 0x40 a0007d20: e1a04001 mov r4, r1 /* * This was filled in by the caller and is valid in the * mount table. */ node = pathloc->node_access; a0007d24: 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 */ ) { a0007d28: e58d2000 str r2, [sp] a0007d2c: e1a07000 mov r7, r0 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); a0007d30: eb00170d bl a000d96c case IMFS_UP_DIR: /* * Am I at the root of all filesystems? (chroot'ed?) */ if ( pathloc->node_access == rtems_filesystem_root.node_access ) a0007d34: e59fa224 ldr sl, [pc, #548] ; a0007f60 node = pathloc->node_access; /* * Get the path length. */ pathlen = strlen( path ); a0007d38: e3a05000 mov r5, #0 a0007d3c: 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 ); a0007d40: e1a01008 mov r1, r8 a0007d44: e28d303c add r3, sp, #60 ; 0x3c a0007d48: e0870005 add r0, r7, r5 a0007d4c: e28d2004 add r2, sp, #4 a0007d50: eb00012d bl a000820c pathlen -= len; i += len; if ( !pathloc->node_access ) a0007d54: e5943000 ldr r3, [r4] */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; a0007d58: e59db03c ldr fp, [sp, #60] ; 0x3c * Evaluate all tokens until we are done or an error occurs. */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); a0007d5c: e1a09000 mov r9, r0 pathlen -= len; i += len; if ( !pathloc->node_access ) a0007d60: e3530000 cmp r3, #0 */ while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; a0007d64: e06b8008 rsb r8, fp, r8 i += len; if ( !pathloc->node_access ) a0007d68: 0a00005f beq a0007eec /* * I cannot move out of this directory without execute permission. */ if ( type != IMFS_NO_MORE_PATH ) a0007d6c: e3500000 cmp r0, #0 a0007d70: 0a000006 beq a0007d90 if ( node->type == IMFS_DIRECTORY ) a0007d74: e596104c ldr r1, [r6, #76] ; 0x4c a0007d78: e3510001 cmp r1, #1 a0007d7c: 1a000003 bne a0007d90 if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) a0007d80: e1a00004 mov r0, r4 a0007d84: ebfffebf bl a0007888 a0007d88: e3500000 cmp r0, #0 a0007d8c: 0a00006c beq a0007f44 rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; a0007d90: e5943000 ldr r3, [r4] while( !done ) { type = IMFS_get_token( &path[i], pathlen, token, &len ); pathlen -= len; i += len; a0007d94: e085500b add r5, r5, fp if ( type != IMFS_NO_MORE_PATH ) if ( node->type == IMFS_DIRECTORY ) if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_SEARCH ) ) rtems_set_errno_and_return_minus_one( EACCES ); node = pathloc->node_access; a0007d98: e1a06003 mov r6, r3 switch( type ) { a0007d9c: e3590004 cmp r9, #4 a0007da0: 979ff109 ldrls pc, [pc, r9, lsl #2] a0007da4: eaffffe5 b a0007d40 <== NOT EXECUTED a0007da8: a0007eac .word 0xa0007eac <== NOT EXECUTED a0007dac: a0007d40 .word 0xa0007d40 <== NOT EXECUTED a0007db0: a0007dbc .word 0xa0007dbc <== NOT EXECUTED a0007db4: a0007df0 .word 0xa0007df0 <== NOT EXECUTED a0007db8: a0007eb8 .word 0xa0007eb8 <== 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 ) a0007dbc: e59a2000 ldr r2, [sl] a0007dc0: e5922018 ldr r2, [r2, #24] a0007dc4: e1530002 cmp r3, r2 a0007dc8: 0affffdc beq a0007d40 /* * Am I at the root of this mounted filesystem? */ if (pathloc->node_access == pathloc->mt_entry->mt_fs_root.node_access){ a0007dcc: e594e010 ldr lr, [r4, #16] a0007dd0: e59e201c ldr r2, [lr, #28] a0007dd4: e1530002 cmp r3, r2 if ( pathloc->node_access == rtems_filesystem_root.node_access ) { break; } else { newloc = pathloc->mt_entry->mt_point_node; a0007dd8: 028ee008 addeq lr, lr, #8 a0007ddc: 0a000018 beq a0007e44 *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); } } else { if ( !node->Parent ) a0007de0: e5936008 ldr r6, [r3, #8] a0007de4: e3560000 cmp r6, #0 a0007de8: 1a00002d bne a0007ea4 a0007dec: ea00003e b a0007eec pathloc->node_access = node; break; case IMFS_NAME: if ( node->type == IMFS_HARD_LINK ) { a0007df0: e593304c ldr r3, [r3, #76] ; 0x4c a0007df4: e3530003 cmp r3, #3 a0007df8: 0a000001 beq a0007e04 result = IMFS_evaluate_link( pathloc, 0 ); if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { a0007dfc: e3530004 cmp r3, #4 a0007e00: 1a000005 bne a0007e1c result = IMFS_evaluate_link( pathloc, 0 ); a0007e04: e1a00004 mov r0, r4 a0007e08: e3a01000 mov r1, #0 a0007e0c: ebffff94 bl a0007c64 if ( result == -1 ) a0007e10: e3700001 cmn r0, #1 if ( result == -1 ) return -1; } else if ( node->type == IMFS_SYM_LINK ) { result = IMFS_evaluate_link( pathloc, 0 ); a0007e14: e1a06000 mov r6, r0 if ( result == -1 ) a0007e18: 0a00004d beq a0007f54 return -1; } node = pathloc->node_access; a0007e1c: e5940000 ldr r0, [r4] if ( !node ) a0007e20: e3500000 cmp r0, #0 a0007e24: 0a00003e beq a0007f24 /* * Only a directory can be decended into. */ if ( node->type != IMFS_DIRECTORY ) a0007e28: e590304c ldr r3, [r0, #76] ; 0x4c a0007e2c: e3530001 cmp r3, #1 a0007e30: 1a00003b bne a0007f24 /* * 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 ) { a0007e34: e590e05c ldr lr, [r0, #92] ; 0x5c a0007e38: e35e0000 cmp lr, #0 a0007e3c: 0a000014 beq a0007e94 newloc = node->info.directory.mt_fs->mt_fs_root; a0007e40: e28ee01c add lr, lr, #28 a0007e44: e28dc028 add ip, sp, #40 ; 0x28 a0007e48: e8be000f ldm lr!, {r0, r1, r2, r3} a0007e4c: e8ac000f stmia ip!, {r0, r1, r2, r3} *pathloc = newloc; a0007e50: e28d6028 add r6, sp, #40 ; 0x28 a0007e54: e8b6000f ldm r6!, {r0, r1, r2, r3} a0007e58: 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; a0007e5c: e59ee000 ldr lr, [lr] *pathloc = newloc; a0007e60: e8a6000f stmia r6!, {r0, r1, r2, r3} return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); a0007e64: e59d303c ldr r3, [sp, #60] ; 0x3c * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; *pathloc = newloc; a0007e68: e586e000 str lr, [r6] * If we are at a node that is a mount point. Set loc to the * new fs root node and let them finish evaluating the path. */ if ( node->info.directory.mt_fs != NULL ) { newloc = node->info.directory.mt_fs->mt_fs_root; a0007e6c: e58ce000 str lr, [ip] *pathloc = newloc; return (*pathloc->ops->evalformake_h)( &path[i-len], pathloc, name ); a0007e70: e0635005 rsb r5, r3, r5 a0007e74: e0870005 add r0, r7, r5 a0007e78: e1a01004 mov r1, r4 a0007e7c: e59d2000 ldr r2, [sp] a0007e80: e594300c ldr r3, [r4, #12] a0007e84: e1a0e00f mov lr, pc a0007e88: e593f004 ldr pc, [r3, #4] a0007e8c: e1a06000 mov r6, r0 a0007e90: ea00002f b a0007f54 /* * Otherwise find the token name in the present location. */ node = IMFS_find_match_in_dir( node, token ); a0007e94: e28d1004 add r1, sp, #4 a0007e98: eb0000b2 bl a0008168 /* * If there is no node we have found the name of the node we * wish to create. */ if ( ! node ) a0007e9c: e2506000 subs r6, r0, #0 a0007ea0: 0a000007 beq a0007ec4 done = true; else pathloc->node_access = node; a0007ea4: e5846000 str r6, [r4] a0007ea8: eaffffa4 b a0007d40 break; case IMFS_NO_MORE_PATH: rtems_set_errno_and_return_minus_one( EEXIST ); a0007eac: eb0012bd bl a000c9a8 <__errno> a0007eb0: e3a03011 mov r3, #17 a0007eb4: ea000024 b a0007f4c break; case IMFS_INVALID_TOKEN: rtems_set_errno_and_return_minus_one( ENAMETOOLONG ); a0007eb8: eb0012ba bl a000c9a8 <__errno> a0007ebc: e3a0305b mov r3, #91 ; 0x5b a0007ec0: ea000021 b a0007f4c case IMFS_CURRENT_DIR: break; } } *name = &path[ i - len ]; a0007ec4: e59d203c ldr r2, [sp, #60] ; 0x3c a0007ec8: e0873005 add r3, r7, r5 a0007ecc: e0625005 rsb r5, r2, r5 a0007ed0: e59d2000 ldr r2, [sp] a0007ed4: e0877005 add r7, r7, r5 a0007ed8: e5827000 str r7, [r2] /* * We have evaluated the path as far as we can. * Verify there is not any invalid stuff at the end of the name. */ for( ; path[i] != '\0'; i++) { a0007edc: ea000005 b a0007ef8 if ( !IMFS_is_separator( path[ i ] ) ) a0007ee0: e352005c cmp r2, #92 ; 0x5c a0007ee4: 1352002f cmpne r2, #47 ; 0x2f a0007ee8: 0a000002 beq a0007ef8 rtems_set_errno_and_return_minus_one( ENOENT ); a0007eec: eb0012ad bl a000c9a8 <__errno> a0007ef0: e3a03002 mov r3, #2 a0007ef4: ea000014 b a0007f4c /* * 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++) { a0007ef8: e5d32000 ldrb r2, [r3] a0007efc: e2833001 add r3, r3, #1 a0007f00: e3520000 cmp r2, #0 a0007f04: 1afffff5 bne a0007ee0 /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); a0007f08: e1a00004 mov r0, r4 a0007f0c: ebfffe3f bl a0007810 /* * The returned node must be a directory */ node = pathloc->node_access; a0007f10: e5943000 ldr r3, [r4] /* * Verify we can execute and write to this directory. */ result = IMFS_Set_handlers( pathloc ); a0007f14: e1a06000 mov r6, r0 /* * The returned node must be a directory */ node = pathloc->node_access; a0007f18: e593304c ldr r3, [r3, #76] ; 0x4c a0007f1c: e3530001 cmp r3, #1 a0007f20: 0a000002 beq a0007f30 if ( node->type != IMFS_DIRECTORY ) rtems_set_errno_and_return_minus_one( ENOTDIR ); a0007f24: eb00129f bl a000c9a8 <__errno> a0007f28: e3a03014 mov r3, #20 a0007f2c: ea000006 b a0007f4c /* * We must have Write and execute permission on the returned node. */ if ( !IMFS_evaluate_permission( pathloc, RTEMS_LIBIO_PERMS_WX ) ) a0007f30: e1a00004 mov r0, r4 a0007f34: e3a01003 mov r1, #3 a0007f38: ebfffe52 bl a0007888 a0007f3c: e3500000 cmp r0, #0 a0007f40: 1a000003 bne a0007f54 rtems_set_errno_and_return_minus_one( EACCES ); a0007f44: eb001297 bl a000c9a8 <__errno> a0007f48: e3a0300d mov r3, #13 a0007f4c: e5803000 str r3, [r0] a0007f50: e3e06000 mvn r6, #0 return result; } a0007f54: e1a00006 mov r0, r6 a0007f58: e28dd040 add sp, sp, #64 ; 0x40 a0007f5c: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} a0007f60: a0018418 .word 0xa0018418 a00078d4 : int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { IMFS_jnode_t *jnode = node->node_access; a00078d4: e5903000 ldr r3, [r0] int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a00078d8: e92d4030 push {r4, r5, lr} /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) a00078dc: e593204c ldr r2, [r3, #76] ; 0x4c int IMFS_evaluate_hard_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a00078e0: e1a04000 mov r4, r0 a00078e4: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_HARD_LINK ) a00078e8: e3520003 cmp r2, #3 a00078ec: 0a000001 beq a00078f8 rtems_fatal_error_occurred (0xABCD0000); a00078f0: e59f003c ldr r0, [pc, #60] ; a0007934 <== NOT EXECUTED a00078f4: ebfff3b9 bl a00047e0 <== NOT EXECUTED /* * Set the hard link value and the handlers. */ node->node_access = jnode->info.hard_link.link_node; a00078f8: e5933050 ldr r3, [r3, #80] ; 0x50 a00078fc: e5803000 str r3, [r0] IMFS_Set_handlers( node ); a0007900: ebffffc2 bl a0007810 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) a0007904: e1a00004 mov r0, r4 a0007908: e1a01005 mov r1, r5 a000790c: ebffffdd bl a0007888 a0007910: e3500000 cmp r0, #0 a0007914: 0a000001 beq a0007920 a0007918: e3a00000 mov r0, #0 a000791c: e8bd8030 pop {r4, r5, pc} rtems_set_errno_and_return_minus_one( EACCES ); a0007920: eb001420 bl a000c9a8 <__errno> <== NOT EXECUTED a0007924: e3a0300d mov r3, #13 <== NOT EXECUTED a0007928: e5803000 str r3, [r0] <== NOT EXECUTED a000792c: e3e00000 mvn r0, #0 <== NOT EXECUTED return result; } a0007930: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED a0007934: abcd0000 .word 0xabcd0000 a0007938 : int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a0007938: e92d40f0 push {r4, r5, r6, r7, lr} IMFS_jnode_t *jnode = node->node_access; a000793c: e590e000 ldr lr, [r0] int IMFS_evaluate_sym_link( rtems_filesystem_location_info_t *node, /* IN/OUT */ int flags /* IN */ ) { a0007940: e1a04000 mov r4, r0 a0007944: e1a05001 mov r5, r1 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) a0007948: e59e304c ldr r3, [lr, #76] ; 0x4c a000794c: e3530004 cmp r3, #4 rtems_fatal_error_occurred (0xABCD0000); a0007950: 159f00bc ldrne r0, [pc, #188] ; a0007a14 /* * Check for things that should never happen. */ if ( jnode->type != IMFS_SYM_LINK ) a0007954: 1a000003 bne a0007968 rtems_fatal_error_occurred (0xABCD0000); if ( !jnode->Parent ) a0007958: e59e3008 ldr r3, [lr, #8] a000795c: e3530000 cmp r3, #0 a0007960: 1a000001 bne a000796c rtems_fatal_error_occurred( 0xBAD00000 ); a0007964: e59f00ac ldr r0, [pc, #172] ; a0007a18 <== NOT EXECUTED a0007968: ebfff39c bl a00047e0 <== 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; a000796c: e5843000 str r3, [r4] rtems_filesystem_get_sym_start_loc( a0007970: e59e3050 ldr r3, [lr, #80] ; 0x50 a0007974: e5d33000 ldrb r3, [r3] a0007978: e353002f cmp r3, #47 ; 0x2f a000797c: 1353005c cmpne r3, #92 ; 0x5c a0007980: 13a06000 movne r6, #0 a0007984: 03a06001 moveq r6, #1 a0007988: 0a000001 beq a0007994 a000798c: e3530000 cmp r3, #0 a0007990: 1a000008 bne a00079b8 a0007994: e59f3080 ldr r3, [pc, #128] ; a0007a1c a0007998: e1a07004 mov r7, r4 a000799c: e3a06001 mov r6, #1 a00079a0: e593c000 ldr ip, [r3] a00079a4: e28cc018 add ip, ip, #24 a00079a8: e8bc000f ldm ip!, {r0, r1, r2, r3} a00079ac: e8a7000f stmia r7!, {r0, r1, r2, r3} a00079b0: e59c2000 ldr r2, [ip] a00079b4: 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] ), a00079b8: e59e3050 ldr r3, [lr, #80] ; 0x50 a00079bc: e0836006 add r6, r3, r6 a00079c0: e1a00006 mov r0, r6 a00079c4: eb0017e8 bl a000d96c /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( a00079c8: e1a02005 mov r2, r5 &jnode->info.sym_link.name[i], strlen( &jnode->info.sym_link.name[i] ), a00079cc: e1a01000 mov r1, r0 /* * Use eval path to evaluate the path of the symbolic link. */ result = IMFS_eval_path( a00079d0: e1a03004 mov r3, r4 a00079d4: e1a00006 mov r0, r6 a00079d8: eb000010 bl a0007a20 a00079dc: e1a06000 mov r6, r0 strlen( &jnode->info.sym_link.name[i] ), flags, node ); IMFS_Set_handlers( node ); a00079e0: e1a00004 mov r0, r4 a00079e4: ebffff89 bl a0007810 /* * Verify we have the correct permissions for this node. */ if ( !IMFS_evaluate_permission( node, flags ) ) a00079e8: e1a00004 mov r0, r4 a00079ec: e1a01005 mov r1, r5 a00079f0: ebffffa4 bl a0007888 a00079f4: e3500000 cmp r0, #0 a00079f8: 1a000003 bne a0007a0c rtems_set_errno_and_return_minus_one( EACCES ); a00079fc: eb0013e9 bl a000c9a8 <__errno> <== NOT EXECUTED a0007a00: e3a0300d mov r3, #13 <== NOT EXECUTED a0007a04: e5803000 str r3, [r0] <== NOT EXECUTED a0007a08: e3e06000 mvn r6, #0 <== NOT EXECUTED return result; } a0007a0c: e1a00006 mov r0, r6 a0007a10: e8bd80f0 pop {r4, r5, r6, r7, pc} a0007a14: abcd0000 .word 0xabcd0000 a0007a18: bad00000 .word 0xbad00000 a0007a1c: a0018418 .word 0xa0018418 a000b308 : int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { a000b308: e92d4073 push {r0, r1, r4, r5, r6, lr} IMFS_jnode_t *jnode; #if defined(RTEMS_POSIX_API) uid_t st_uid; #endif jnode = loc->node_access; a000b30c: e5904000 ldr r4, [r0] int IMFS_fchmod( rtems_filesystem_location_info_t *loc, mode_t mode ) { a000b310: e1a06001 mov r6, r1 /* * Verify I am the owner of the node or the super user. */ #if defined(RTEMS_POSIX_API) st_uid = geteuid(); a000b314: ebfff568 bl a00088bc if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) ) a000b318: e1d453bc ldrh r5, [r4, #60] ; 0x3c a000b31c: e3500000 cmp r0, #0 a000b320: 11550000 cmpne r5, r0 a000b324: 03a05000 moveq r5, #0 a000b328: 13a05001 movne r5, #1 a000b32c: 0a000004 beq a000b344 rtems_set_errno_and_return_minus_one( EPERM ); a000b330: eb00059c bl a000c9a8 <__errno> <== NOT EXECUTED a000b334: e3a03001 mov r3, #1 <== NOT EXECUTED a000b338: e5803000 str r3, [r0] <== NOT EXECUTED a000b33c: e3e00000 mvn r0, #0 <== NOT EXECUTED a000b340: ea00000c b a000b378 <== NOT EXECUTED /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); a000b344: e5943030 ldr r3, [r4, #48] ; 0x30 a000b348: e1a06a06 lsl r6, r6, #20 IMFS_update_ctime( jnode ); a000b34c: e1a0000d mov r0, sp /* * Change only the RWX permissions on the jnode to mode. */ jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX); a000b350: e3c33eff bic r3, r3, #4080 ; 0xff0 a000b354: e3c3300f bic r3, r3, #15 a000b358: e1a06a26 lsr r6, r6, #20 a000b35c: e1866003 orr r6, r6, r3 a000b360: e5846030 str r6, [r4, #48] ; 0x30 IMFS_update_ctime( jnode ); a000b364: e1a01005 mov r1, r5 a000b368: ebfff558 bl a00088d0 a000b36c: e59d3000 ldr r3, [sp] a000b370: e1a00005 mov r0, r5 a000b374: e5843048 str r3, [r4, #72] ; 0x48 return 0; } a000b378: e8bd807c pop {r2, r3, r4, r5, r6, pc} a00080c4 : } int IMFS_fifo_close( rtems_libio_t *iop ) { a00080c4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; a00080c8: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED int err = pipe_release(&JNODE2PIPE(jnode), iop); a00080cc: e1a01000 mov r1, r0 <== NOT EXECUTED } int IMFS_fifo_close( rtems_libio_t *iop ) { a00080d0: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_release(&JNODE2PIPE(jnode), iop); a00080d4: e2840050 add r0, r4, #80 ; 0x50 <== NOT EXECUTED a00080d8: eb000ae7 bl a000ac7c <== NOT EXECUTED if (! err) { a00080dc: e2506000 subs r6, r0, #0 <== NOT EXECUTED a00080e0: 1a00000c bne a0008118 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_OPEN; a00080e4: 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) a00080e8: 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; a00080ec: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED a00080f0: 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) a00080f4: eb00021f bl a0008978 <== NOT EXECUTED a00080f8: e3500000 cmp r0, #0 <== NOT EXECUTED a00080fc: 1a00000a bne a000812c <== NOT EXECUTED a0008100: e1d433b4 ldrh r3, [r4, #52] ; 0x34 <== NOT EXECUTED a0008104: e3530000 cmp r3, #0 <== NOT EXECUTED a0008108: 1a000007 bne a000812c <== NOT EXECUTED free(jnode); a000810c: e1a00004 mov r0, r4 <== NOT EXECUTED a0008110: eb000181 bl a000871c <== NOT EXECUTED a0008114: ea000004 b a000812c <== NOT EXECUTED } IMFS_FIFO_RETURN(err); a0008118: aa000003 bge a000812c <== NOT EXECUTED a000811c: eb001221 bl a000c9a8 <__errno> <== NOT EXECUTED a0008120: e2666000 rsb r6, r6, #0 <== NOT EXECUTED a0008124: e5806000 str r6, [r0] <== NOT EXECUTED a0008128: e3e06000 mvn r6, #0 <== NOT EXECUTED } a000812c: e1a00006 mov r0, r6 <== NOT EXECUTED a0008130: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a0007fac : void *buffer ) { int err; if (command == FIONBIO) { a0007fac: e59fc068 ldr ip, [pc, #104] ; a000801c <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a0007fb0: e92d4010 push {r4, lr} <== NOT EXECUTED int err; if (command == FIONBIO) { a0007fb4: e151000c cmp r1, ip <== NOT EXECUTED int IMFS_fifo_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a0007fb8: e1a03000 mov r3, r0 <== NOT EXECUTED int err; if (command == FIONBIO) { a0007fbc: 1a00000b bne a0007ff0 <== NOT EXECUTED if (buffer == NULL) a0007fc0: e3520000 cmp r2, #0 <== NOT EXECUTED a0007fc4: 03e0400d mvneq r4, #13 <== NOT EXECUTED a0007fc8: 0a00000d beq a0008004 <== NOT EXECUTED err = -EFAULT; else { if (*(int *)buffer) a0007fcc: e5924000 ldr r4, [r2] <== NOT EXECUTED a0007fd0: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED a0007fd4: e3540000 cmp r4, #0 <== NOT EXECUTED iop->flags |= LIBIO_FLAGS_NO_DELAY; a0007fd8: 13822001 orrne r2, r2, #1 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a0007fdc: 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; a0007fe0: 15832014 strne r2, [r3, #20] <== NOT EXECUTED a0007fe4: 13a04000 movne r4, #0 <== NOT EXECUTED else iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a0007fe8: 05832014 streq r2, [r3, #20] <== NOT EXECUTED a0007fec: ea000008 b a0008014 <== NOT EXECUTED return 0; } } else err = pipe_ioctl(LIBIO2PIPE(iop), command, buffer, iop); a0007ff0: e5930038 ldr r0, [r3, #56] ; 0x38 <== NOT EXECUTED a0007ff4: e5900050 ldr r0, [r0, #80] ; 0x50 <== NOT EXECUTED a0007ff8: eb000a30 bl a000a8c0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0007ffc: e2504000 subs r4, r0, #0 <== NOT EXECUTED a0008000: aa000003 bge a0008014 <== NOT EXECUTED a0008004: eb001267 bl a000c9a8 <__errno> <== NOT EXECUTED a0008008: e2644000 rsb r4, r4, #0 <== NOT EXECUTED a000800c: e5804000 str r4, [r0] <== NOT EXECUTED a0008010: e3e04000 mvn r4, #0 <== NOT EXECUTED } a0008014: e1a00004 mov r0, r4 <== NOT EXECUTED a0008018: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000801c: 8004667e .word 0x8004667e a0007f64 : rtems_off64_t IMFS_fifo_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { a0007f64: e92d4031 push {r0, r4, r5, lr} <== NOT EXECUTED off_t err = pipe_lseek(LIBIO2PIPE(iop), offset, whence, iop); a0007f68: e590c038 ldr ip, [r0, #56] ; 0x38 <== NOT EXECUTED a0007f6c: e58d0000 str r0, [sp] <== NOT EXECUTED a0007f70: e59c0050 ldr r0, [ip, #80] ; 0x50 <== NOT EXECUTED a0007f74: eb000a36 bl a000a854 <== NOT EXECUTED a0007f78: e1a03000 mov r3, r0 <== NOT EXECUTED a0007f7c: e1a04fc3 asr r4, r3, #31 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0007f80: 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); a0007f84: e1a05000 mov r5, r0 <== NOT EXECUTED IMFS_FIFO_RETURN(err); a0007f88: aa000004 bge a0007fa0 <== NOT EXECUTED a0007f8c: eb001285 bl a000c9a8 <__errno> <== NOT EXECUTED a0007f90: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a0007f94: e5805000 str r5, [r0] <== NOT EXECUTED a0007f98: e3e03000 mvn r3, #0 <== NOT EXECUTED a0007f9c: e3e04000 mvn r4, #0 <== NOT EXECUTED } a0007fa0: e1a01004 mov r1, r4 <== NOT EXECUTED a0007fa4: e1a00003 mov r0, r3 <== NOT EXECUTED a0007fa8: e8bd8038 pop {r3, r4, r5, pc} <== NOT EXECUTED a0008074 : ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { a0008074: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; a0008078: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_read( rtems_libio_t *iop, void *buffer, size_t count ) { a000807c: e1a03000 mov r3, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_read(JNODE2PIPE(jnode), buffer, count, iop); a0008080: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a0008084: eb000a28 bl a000a92c <== NOT EXECUTED if (err > 0) a0008088: e2505000 subs r5, r0, #0 <== NOT EXECUTED a000808c: da000005 ble a00080a8 <== NOT EXECUTED IMFS_update_atime(jnode); a0008090: e1a0000d mov r0, sp <== NOT EXECUTED a0008094: e3a01000 mov r1, #0 <== NOT EXECUTED a0008098: eb00020c bl a00088d0 <== NOT EXECUTED a000809c: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00080a0: e5843040 str r3, [r4, #64] ; 0x40 <== NOT EXECUTED a00080a4: ea000004 b a00080bc <== NOT EXECUTED IMFS_FIFO_RETURN(err); a00080a8: 0a000003 beq a00080bc <== NOT EXECUTED a00080ac: eb00123d bl a000c9a8 <__errno> <== NOT EXECUTED a00080b0: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a00080b4: e5805000 str r5, [r0] <== NOT EXECUTED a00080b8: e3e05000 mvn r5, #0 <== NOT EXECUTED } a00080bc: e1a00005 mov r0, r5 <== NOT EXECUTED a00080c0: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED a0008020 : ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a0008020: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; a0008024: e5904038 ldr r4, [r0, #56] ; 0x38 <== NOT EXECUTED ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a0008028: e1a03000 mov r3, r0 <== NOT EXECUTED IMFS_jnode_t *jnode = iop->file_info; int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop); a000802c: e5940050 ldr r0, [r4, #80] ; 0x50 <== NOT EXECUTED a0008030: eb000a9a bl a000aaa0 <== NOT EXECUTED if (err > 0) { a0008034: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0008038: da000006 ble a0008058 <== NOT EXECUTED IMFS_mtime_ctime_update(jnode); a000803c: e1a0000d mov r0, sp <== NOT EXECUTED a0008040: e3a01000 mov r1, #0 <== NOT EXECUTED a0008044: eb000221 bl a00088d0 <== NOT EXECUTED a0008048: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000804c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED a0008050: e5843044 str r3, [r4, #68] ; 0x44 <== NOT EXECUTED a0008054: ea000004 b a000806c <== NOT EXECUTED } IMFS_FIFO_RETURN(err); a0008058: 0a000003 beq a000806c <== NOT EXECUTED a000805c: eb001251 bl a000c9a8 <__errno> <== NOT EXECUTED a0008060: e2655000 rsb r5, r5, #0 <== NOT EXECUTED a0008064: e5805000 str r5, [r0] <== NOT EXECUTED a0008068: e3e05000 mvn r5, #0 <== NOT EXECUTED } a000806c: e1a00005 mov r0, r5 <== NOT EXECUTED a0008070: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED a0008168 : IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { a0008168: e92d4070 push {r4, r5, r6, lr} /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); a000816c: e2504000 subs r4, r0, #0 IMFS_jnode_t *IMFS_find_match_in_dir( IMFS_jnode_t *directory, char *name ) { a0008170: e1a05001 mov r5, r1 /* * Check for fatal errors. A NULL directory show a problem in the * the IMFS code. */ assert( directory ); a0008174: 1a000004 bne a000818c a0008178: e59f0078 ldr r0, [pc, #120] ; a00081f8 <== NOT EXECUTED a000817c: e3a0102a mov r1, #42 ; 0x2a <== NOT EXECUTED a0008180: e59f2074 ldr r2, [pc, #116] ; a00081fc <== NOT EXECUTED a0008184: e59f3074 ldr r3, [pc, #116] ; a0008200 <== NOT EXECUTED a0008188: eb000116 bl a00085e8 <__assert_func> <== NOT EXECUTED if ( !name ) a000818c: e3510000 cmp r1, #0 a0008190: 0a000015 beq a00081ec /* * Check for "." and ".." */ if ( !strcmp( name, dotname ) ) a0008194: e1a00001 mov r0, r1 a0008198: e59f1064 ldr r1, [pc, #100] ; a0008204 a000819c: eb00152a bl a000d64c a00081a0: e3500000 cmp r0, #0 a00081a4: 0a000011 beq a00081f0 return directory; if ( !strcmp( name, dotdotname ) ) a00081a8: e1a00005 mov r0, r5 a00081ac: e59f1054 ldr r1, [pc, #84] ; a0008208 a00081b0: eb001525 bl a000d64c a00081b4: e3500000 cmp r0, #0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a00081b8: 12846054 addne r6, r4, #84 ; 0x54 return directory->Parent; a00081bc: 05944008 ldreq r4, [r4, #8] the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; a00081c0: 15944050 ldrne r4, [r4, #80] ; 0x50 */ if ( !strcmp( name, dotname ) ) return directory; if ( !strcmp( name, dotdotname ) ) a00081c4: 0a000009 beq a00081f0 a00081c8: ea000005 b a00081e4 !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { the_jnode = (IMFS_jnode_t *) the_node; if ( !strcmp( name, the_jnode->name ) ) a00081cc: e1a00005 mov r0, r5 a00081d0: e284100c add r1, r4, #12 a00081d4: eb00151c bl a000d64c a00081d8: e3500000 cmp r0, #0 a00081dc: 0a000003 beq a00081f0 the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; !rtems_chain_is_tail( the_chain, the_node ); the_node = the_node->next ) { a00081e0: e5944000 ldr r4, [r4] if ( !strcmp( name, dotdotname ) ) return directory->Parent; the_chain = &directory->info.directory.Entries; for ( the_node = the_chain->first; a00081e4: e1540006 cmp r4, r6 a00081e8: 1afffff7 bne a00081cc a00081ec: e3a04000 mov r4, #0 if ( !strcmp( name, the_jnode->name ) ) return the_jnode; } return 0; } a00081f0: e1a00004 mov r0, r4 a00081f4: e8bd8070 pop {r4, r5, r6, pc} a00081f8: a0019541 .word 0xa0019541 a00081fc: a0018c14 .word 0xa0018c14 a0008200: a001958d .word 0xa001958d a0008204: a0018c2c .word 0xa0018c2c a0008208: a0018c30 .word 0xa0018c30 a000d0a4 : ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next)) int IMFS_fsunmount( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { a000d0a4: 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; a000d0a8: e1a0c000 mov ip, r0 a000d0ac: 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 ) { a000d0b0: 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; a000d0b4: 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 ) { a000d0b8: 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; a000d0bc: e8bc000f ldm ip!, {r0, r1, r2, r3} a000d0c0: e8ae000f stmia lr!, {r0, r1, r2, r3} a000d0c4: e59c3000 ldr r3, [ip] /* * Set this to null to indicate that it is being unmounted. */ temp_mt_entry->mt_fs_root.node_access = NULL; a000d0c8: e3a02000 mov r2, #0 a000d0cc: e585201c str r2, [r5, #28] do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); a000d0d0: e1a0500d mov r5, sp * 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; a000d0d4: e58e3000 str r3, [lr] temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); a000d0d8: e1a0000d mov r0, sp temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; loc.node_access = (void *)jnode; a000d0dc: e58d4000 str r4, [sp] */ temp_mt_entry->mt_fs_root.node_access = NULL; do { next = jnode->Parent; a000d0e0: e5946008 ldr r6, [r4, #8] loc.node_access = (void *)jnode; IMFS_Set_handlers( &loc ); a000d0e4: ebfffd96 bl a000c744 if ( jnode->type != IMFS_DIRECTORY ) { a000d0e8: e594204c ldr r2, [r4, #76] ; 0x4c */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a000d0ec: e2843054 add r3, r4, #84 ; 0x54 a000d0f0: e3520001 cmp r2, #1 a000d0f4: 1a000002 bne a000d104 a000d0f8: e5942050 ldr r2, [r4, #80] ; 0x50 a000d0fc: e1520003 cmp r2, r3 a000d100: 1a000005 bne a000d11c result = IMFS_unlink( NULL, &loc ); if (result != 0) return -1; jnode = next; } else if ( jnode_has_no_children( jnode ) ) { result = IMFS_unlink( NULL, &loc ); a000d104: e3a00000 mov r0, #0 a000d108: e1a0100d mov r1, sp a000d10c: ebffd3f5 bl a00020e8 if (result != 0) a000d110: e3500000 cmp r0, #0 a000d114: 1a00000c bne a000d14c a000d118: e1a04006 mov r4, r6 return -1; jnode = next; } if ( jnode != NULL ) { a000d11c: e3540000 cmp r4, #0 a000d120: 0a00000b beq a000d154 if ( jnode->type == IMFS_DIRECTORY ) { a000d124: e594304c ldr r3, [r4, #76] ; 0x4c a000d128: e3530001 cmp r3, #1 a000d12c: 1affffe9 bne a000d0d8 a000d130: e5943050 ldr r3, [r4, #80] ; 0x50 a000d134: e2842054 add r2, r4, #84 ; 0x54 a000d138: e1530002 cmp r3, r2 a000d13c: 0affffe5 beq a000d0d8 if ( jnode_has_children( jnode ) ) jnode = jnode_get_first_child( jnode ); } } } while (jnode != NULL); a000d140: e2534000 subs r4, r3, #0 a000d144: 1affffe3 bne a000d0d8 a000d148: ea000001 b a000d154 <== NOT EXECUTED a000d14c: e3e00000 mvn r0, #0 <== NOT EXECUTED a000d150: ea000000 b a000d158 <== NOT EXECUTED a000d154: e3a00000 mov r0, #0 return 0; } a000d158: e28dd014 add sp, sp, #20 a000d15c: e8bd8070 pop {r4, r5, r6, pc} a00082d8 : 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 ) { a00082d8: e92d40f0 push {r4, r5, r6, r7, lr} a00082dc: 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, a00082e0: e59f10c0 ldr r1, [pc, #192] ; a00083a8 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 ) { a00082e4: e1a06002 mov r6, r2 a00082e8: e1a05003 mov r5, r3 IMFS_jnode_t *jnode; /* * determine/check value for imfs_memfile_bytes_per_block */ IMFS_determine_bytes_per_block(&imfs_memfile_bytes_per_block, a00082ec: e5911000 ldr r1, [r1] 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 ) { a00082f0: 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, a00082f4: e3a02000 mov r2, #0 a00082f8: 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) { a00082fc: e1530001 cmp r3, r1 a0008300: e2822001 add r2, r2, #1 a0008304: 0a000003 beq a0008318 a0008308: e3520006 cmp r2, #6 a000830c: e1a03083 lsl r3, r3, #1 a0008310: 1afffff9 bne a00082fc a0008314: e3a03080 mov r3, #128 ; 0x80 <== NOT EXECUTED if (bit_mask == requested_bytes_per_block) { is_valid = true; } } *dest_bytes_per_block = ((is_valid) a0008318: e59f208c ldr r2, [pc, #140] ; a00083ac a000831c: 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(); a0008320: eb000b99 bl a000b18c 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; a0008324: e59fe084 ldr lr, [pc, #132] ; a00083b0 a0008328: 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(); a000832c: 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; a0008330: e8be000f ldm lr!, {r0, r1, r2, r3} a0008334: e8ac000f stmia ip!, {r0, r1, r2, r3} a0008338: e8be000f ldm lr!, {r0, r1, r2, r3} a000833c: e8ac000f stmia ip!, {r0, r1, r2, r3} a0008340: 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; a0008344: e5847028 str r7, [r4, #40] ; 0x28 temp_mt_entry->pathconf_limits_and_options = IMFS_LIMITS_AND_OPTIONS; a0008348: 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; a000834c: 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 ) ); a0008350: e3a00001 mov r0, #1 a0008354: e3a0100c mov r1, #12 a0008358: eb0000b3 bl a000862c if ( !fs_info ) { a000835c: e3500000 cmp r0, #0 a0008360: 1a000006 bne a0008380 free(temp_mt_entry->mt_fs_root.node_access); a0008364: e594001c ldr r0, [r4, #28] <== NOT EXECUTED a0008368: eb0000eb bl a000871c <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); a000836c: eb00118d bl a000c9a8 <__errno> <== NOT EXECUTED a0008370: e3a0300c mov r3, #12 <== NOT EXECUTED a0008374: e5803000 str r3, [r0] <== NOT EXECUTED a0008378: e3e00000 mvn r0, #0 <== NOT EXECUTED a000837c: 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; a0008380: e594201c ldr r2, [r4, #28] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; a0008384: e3a03001 mov r3, #1 a0008388: e5803000 str r3, [r0] fs_info->memfile_handlers = memfile_handlers; fs_info->directory_handlers = directory_handlers; a000838c: e5805008 str r5, [r0, #8] /* * Set st_ino for the root to 1. */ fs_info->ino_count = 1; fs_info->memfile_handlers = memfile_handlers; a0008390: 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; a0008394: 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; a0008398: e5823038 str r3, [r2, #56] ; 0x38 /* Initialize POSIX FIFO/pipe module */ rtems_pipe_initialize(); a000839c: eb00092e bl a000a85c a00083a0: e3a00000 mov r0, #0 return 0; } a00083a4: e8bd80f0 pop {r4, r5, r6, r7, pc} a00083a8: a0018244 .word 0xa0018244 a00083ac: a0019ac8 .word 0xa0019ac8 a00083b0: a0018f08 .word 0xa0018f08 a0001dec : int IMFS_link( rtems_filesystem_location_info_t *to_loc, /* IN */ rtems_filesystem_location_info_t *parent_loc, /* IN */ const char *token /* IN */ ) { a0001dec: e92d4070 push {r4, r5, r6, lr} int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; a0001df0: 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 */ ) { a0001df4: e24dd048 sub sp, sp, #72 ; 0x48 a0001df8: e1a05001 mov r5, r1 int i; /* * Verify this node can be linked to. */ info.hard_link.link_node = to_loc->node_access; a0001dfc: e58d3028 str r3, [sp, #40] ; 0x28 if ( info.hard_link.link_node->st_nlink >= LINK_MAX ) a0001e00: 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 */ ) { a0001e04: 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 ) a0001e08: e3530007 cmp r3, #7 a0001e0c: 9a000002 bls a0001e1c rtems_set_errno_and_return_minus_one( EMLINK ); a0001e10: eb003f1e bl a0011a90 <__errno> a0001e14: e3a0301f mov r3, #31 a0001e18: ea000012 b a0001e68 /* * Remove any separators at the end of the string. */ IMFS_get_token( token, strlen( token ), new_name, &i ); a0001e1c: e1a00002 mov r0, r2 a0001e20: eb0042f3 bl a00129f4 a0001e24: e28d4004 add r4, sp, #4 a0001e28: e1a01000 mov r1, r0 a0001e2c: e1a02004 mov r2, r4 a0001e30: e28d3044 add r3, sp, #68 ; 0x44 a0001e34: e1a00006 mov r0, r6 a0001e38: eb002cf1 bl a000d204 * 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( a0001e3c: e28dc028 add ip, sp, #40 ; 0x28 a0001e40: e1a00005 mov r0, r5 a0001e44: e1a02004 mov r2, r4 a0001e48: e3a01003 mov r1, #3 a0001e4c: e59f3054 ldr r3, [pc, #84] ; a0001ea8 a0001e50: e58dc000 str ip, [sp] a0001e54: eb0029eb bl a000c608 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if ( !new_node ) a0001e58: e3500000 cmp r0, #0 a0001e5c: 1a000004 bne a0001e74 rtems_set_errno_and_return_minus_one( ENOMEM ); a0001e60: eb003f0a bl a0011a90 <__errno> <== NOT EXECUTED a0001e64: e3a0300c mov r3, #12 <== NOT EXECUTED a0001e68: e5803000 str r3, [r0] a0001e6c: e3e00000 mvn r0, #0 a0001e70: ea00000a b a0001ea0 /* * Increment the link count of the node being pointed to. */ info.hard_link.link_node->st_nlink++; a0001e74: e59d3028 ldr r3, [sp, #40] ; 0x28 IMFS_update_ctime( info.hard_link.link_node ); a0001e78: e28d003c add r0, sp, #60 ; 0x3c a0001e7c: 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++; a0001e80: e1d323b4 ldrh r2, [r3, #52] ; 0x34 a0001e84: e2822001 add r2, r2, #1 a0001e88: e1c323b4 strh r2, [r3, #52] ; 0x34 IMFS_update_ctime( info.hard_link.link_node ); a0001e8c: eb000243 bl a00027a0 a0001e90: e59d203c ldr r2, [sp, #60] ; 0x3c a0001e94: e59d3028 ldr r3, [sp, #40] ; 0x28 a0001e98: e3a00000 mov r0, #0 a0001e9c: e5832048 str r2, [r3, #72] ; 0x48 return 0; } a0001ea0: e28dd048 add sp, sp, #72 ; 0x48 a0001ea4: e8bd8070 pop {r4, r5, r6, pc} a0001ea8: 0000a1ff .word 0x0000a1ff a000fd78 : ) { block_p memory; block_p *block_entry_ptr; assert( the_jnode ); a000fd78: e2503000 subs r3, r0, #0 MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) { a000fd7c: e92d4030 push {r4, r5, lr} block_p memory; block_p *block_entry_ptr; assert( the_jnode ); a000fd80: 059f0064 ldreq r0, [pc, #100] ; a000fdec a000fd84: 059f1064 ldreq r1, [pc, #100] ; a000fdf0 a000fd88: 059f2064 ldreq r2, [pc, #100] ; a000fdf4 a000fd8c: 059f3064 ldreq r3, [pc, #100] ; a000fdf8 a000fd90: 0a000006 beq a000fdb0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); a000fd94: e593304c ldr r3, [r3, #76] ; 0x4c a000fd98: e3530005 cmp r3, #5 a000fd9c: 0a000004 beq a000fdb4 a000fda0: e59f0044 ldr r0, [pc, #68] ; a000fdec <== NOT EXECUTED a000fda4: e59f1050 ldr r1, [pc, #80] ; a000fdfc <== NOT EXECUTED a000fda8: e59f2044 ldr r2, [pc, #68] ; a000fdf4 <== NOT EXECUTED a000fdac: e59f304c ldr r3, [pc, #76] ; a000fe00 <== NOT EXECUTED a000fdb0: ebfff5a2 bl a000d440 <__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 ); a000fdb4: e3a02001 mov r2, #1 a000fdb8: ebfffea6 bl a000f858 if ( *block_entry_ptr ) a000fdbc: 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 ); a000fdc0: e1a05000 mov r5, r0 if ( *block_entry_ptr ) a000fdc4: e3540000 cmp r4, #0 a000fdc8: 0a000001 beq a000fdd4 a000fdcc: e3a00000 mov r0, #0 a000fdd0: e8bd8030 pop {r4, r5, pc} #if 0 fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); a000fdd4: ebfffe92 bl a000f824 if ( !memory ) a000fdd8: e3500000 cmp r0, #0 return 1; *block_entry_ptr = memory; a000fddc: 15850000 strne r0, [r5] fprintf(stdout, "%d %p", block, block_entry_ptr ); fflush(stdout); #endif memory = memfile_alloc_block(); if ( !memory ) a000fde0: 03a00001 moveq r0, #1 return 1; *block_entry_ptr = memory; a000fde4: 11a00004 movne r0, r4 return 0; } a000fde8: e8bd8030 pop {r4, r5, pc} a000fdec: a001ee52 .word 0xa001ee52 a000fdf0: 00000169 .word 0x00000169 a000fdf4: a001e5e8 .word 0xa001e5e8 a000fdf8: a001ee98 .word 0xa001ee98 a000fdfc: 0000016d .word 0x0000016d a000fe00: a001eea2 .word 0xa001eea2 a000fe04 : MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a000fe04: e92d4df1 push {r0, r4, r5, r6, r7, r8, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); a000fe08: e2504000 subs r4, r0, #0 MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, off_t new_length ) { a000fe0c: e1a05001 mov r5, r1 a000fe10: e1a06002 mov r6, r2 /* * Perform internal consistency checks */ assert( the_jnode ); a000fe14: 059f0134 ldreq r0, [pc, #308] ; a000ff50 a000fe18: 059f1134 ldreq r1, [pc, #308] ; a000ff54 a000fe1c: 059f2134 ldreq r2, [pc, #308] ; a000ff58 a000fe20: 059f3134 ldreq r3, [pc, #308] ; a000ff5c a000fe24: 0a000006 beq a000fe44 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); a000fe28: e594304c ldr r3, [r4, #76] ; 0x4c a000fe2c: e3530005 cmp r3, #5 a000fe30: 0a000004 beq a000fe48 a000fe34: e59f0114 ldr r0, [pc, #276] ; a000ff50 <== NOT EXECUTED a000fe38: e59f1120 ldr r1, [pc, #288] ; a000ff60 <== NOT EXECUTED a000fe3c: e59f2114 ldr r2, [pc, #276] ; a000ff58 <== NOT EXECUTED a000fe40: e59f311c ldr r3, [pc, #284] ; a000ff64 <== NOT EXECUTED a000fe44: ebfff57d bl a000d440 <__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 ) a000fe48: e3a03000 mov r3, #0 a000fe4c: e1530002 cmp r3, r2 a000fe50: e59f3110 ldr r3, [pc, #272] ; a000ff68 a000fe54: e593b000 ldr fp, [r3] a000fe58: e1a0312b lsr r3, fp, #2 a000fe5c: e2832001 add r2, r3, #1 a000fe60: e0010293 mul r1, r3, r2 a000fe64: e2811001 add r1, r1, #1 a000fe68: e0020193 mul r2, r3, r1 a000fe6c: e2422001 sub r2, r2, #1 a000fe70: e003029b mul r3, fp, r2 a000fe74: ca000005 bgt a000fe90 a000fe78: 1a000001 bne a000fe84 a000fe7c: e1530005 cmp r3, r5 a000fe80: 8a000002 bhi a000fe90 rtems_set_errno_and_return_minus_one( EINVAL ); a000fe84: eb000701 bl a0011a90 <__errno> <== NOT EXECUTED a000fe88: e3a03016 mov r3, #22 <== NOT EXECUTED a000fe8c: ea000025 b a000ff28 <== NOT EXECUTED if ( new_length <= the_jnode->info.file.size ) a000fe90: e5948054 ldr r8, [r4, #84] ; 0x54 a000fe94: e5947050 ldr r7, [r4, #80] ; 0x50 a000fe98: e1560008 cmp r6, r8 a000fe9c: ca000002 bgt a000feac a000fea0: 1a000028 bne a000ff48 a000fea4: e1550007 cmp r5, r7 a000fea8: 9a000026 bls a000ff48 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; a000feac: e1a0cfcb asr ip, fp, #31 a000feb0: e1a0300c mov r3, ip a000feb4: e1a0200b mov r2, fp a000feb8: e1a00005 mov r0, r5 a000febc: e1a01006 mov r1, r6 a000fec0: e58dc000 str ip, [sp] a000fec4: eb002f54 bl a001bc1c <__divdi3> old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; a000fec8: e59dc000 ldr ip, [sp] a000fecc: e1a01008 mov r1, r8 /* * Calculate the number of range of blocks to allocate */ new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK; a000fed0: e1a0a000 mov sl, r0 old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK; a000fed4: e1a0200b mov r2, fp a000fed8: e1a00007 mov r0, r7 a000fedc: e1a0300c mov r3, ip a000fee0: eb002f4d bl a001bc1c <__divdi3> a000fee4: e1a08000 mov r8, r0 a000fee8: e1a07000 mov r7, r0 /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { a000feec: ea000011 b a000ff38 if ( IMFS_memfile_addblock( the_jnode, block ) ) { a000fef0: e1a00004 mov r0, r4 a000fef4: e1a01007 mov r1, r7 a000fef8: ebffff9e bl a000fd78 a000fefc: e3500000 cmp r0, #0 a000ff00: 0a00000b beq a000ff34 a000ff04: ea000003 b a000ff18 <== NOT EXECUTED for ( ; block>=old_blocks ; block-- ) { IMFS_memfile_remove_block( the_jnode, block ); a000ff08: e1a01007 mov r1, r7 <== NOT EXECUTED a000ff0c: e1a00004 mov r0, r4 <== NOT EXECUTED a000ff10: ebfffef4 bl a000fae8 <== 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-- ) { a000ff14: e2477001 sub r7, r7, #1 <== NOT EXECUTED a000ff18: e1570008 cmp r7, r8 <== NOT EXECUTED a000ff1c: 2afffff9 bcs a000ff08 <== NOT EXECUTED IMFS_memfile_remove_block( the_jnode, block ); } rtems_set_errno_and_return_minus_one( ENOSPC ); a000ff20: eb0006da bl a0011a90 <__errno> <== NOT EXECUTED a000ff24: e3a0301c mov r3, #28 <== NOT EXECUTED a000ff28: e5803000 str r3, [r0] <== NOT EXECUTED a000ff2c: e3e00000 mvn r0, #0 <== NOT EXECUTED a000ff30: ea000005 b a000ff4c <== NOT EXECUTED /* * Now allocate each of those blocks. */ for ( block=old_blocks ; block<=new_blocks ; block++ ) { a000ff34: e2877001 add r7, r7, #1 a000ff38: e157000a cmp r7, sl a000ff3c: 9affffeb bls a000fef0 /* * Set the new length of the file. */ the_jnode->info.file.size = new_length; a000ff40: e5846054 str r6, [r4, #84] ; 0x54 a000ff44: e5845050 str r5, [r4, #80] ; 0x50 a000ff48: e3a00000 mov r0, #0 return 0; } a000ff4c: e8bd8df8 pop {r3, r4, r5, r6, r7, r8, sl, fp, pc} a000ff50: a001ee52 .word 0xa001ee52 a000ff54: 00000131 .word 0x00000131 a000ff58: a001e600 .word 0xa001e600 a000ff5c: a001ee98 .word 0xa001ee98 a000ff60: 00000135 .word 0x00000135 a000ff64: a001eea2 .word 0xa001eea2 a000ff68: a001f288 .word 0xa001f288 a000f858 : #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { a000f858: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} /* * Perform internal consistency checks */ assert( the_jnode ); a000f85c: e2504000 subs r4, r0, #0 #endif IMFS_jnode_t *the_jnode, unsigned int block, int malloc_it ) { a000f860: e1a06001 mov r6, r1 a000f864: e1a08002 mov r8, r2 /* * Perform internal consistency checks */ assert( the_jnode ); a000f868: 059f01e4 ldreq r0, [pc, #484] ; a000fa54 a000f86c: 03a01fe2 moveq r1, #904 ; 0x388 a000f870: 059f21e0 ldreq r2, [pc, #480] ; a000fa58 a000f874: 059f31e0 ldreq r3, [pc, #480] ; a000fa5c a000f878: 0a000006 beq a000f898 if ( !the_jnode ) return NULL; assert( the_jnode->type == IMFS_MEMORY_FILE ); a000f87c: e594304c ldr r3, [r4, #76] ; 0x4c a000f880: e3530005 cmp r3, #5 a000f884: 0a000004 beq a000f89c a000f888: e59f01c4 ldr r0, [pc, #452] ; a000fa54 <== NOT EXECUTED a000f88c: e59f21c4 ldr r2, [pc, #452] ; a000fa58 <== NOT EXECUTED a000f890: e59f31c8 ldr r3, [pc, #456] ; a000fa60 <== NOT EXECUTED a000f894: e3a01fe3 mov r1, #908 ; 0x38c <== NOT EXECUTED a000f898: ebfff6e8 bl a000d440 <__assert_func> <== NOT EXECUTED /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) { a000f89c: e59f31c0 ldr r3, [pc, #448] ; a000fa64 a000f8a0: e5935000 ldr r5, [r3] a000f8a4: e1a05125 lsr r5, r5, #2 a000f8a8: e2453001 sub r3, r5, #1 a000f8ac: e1510003 cmp r1, r3 a000f8b0: 8a00000e bhi a000f8f0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; if ( malloc_it ) { a000f8b4: e3520000 cmp r2, #0 if ( my_block <= LAST_INDIRECT ) { #if 0 fprintf(stdout, "(s %d) ", block ); fflush(stdout); #endif p = info->indirect; a000f8b8: e5940058 ldr r0, [r4, #88] ; 0x58 if ( malloc_it ) { a000f8bc: 0a000007 beq a000f8e0 if ( !p ) { a000f8c0: e3500000 cmp r0, #0 a000f8c4: 1a000003 bne a000f8d8 p = memfile_alloc_block(); a000f8c8: ebffffd5 bl a000f824 if ( !p ) a000f8cc: e3500000 cmp r0, #0 a000f8d0: 0a00005d beq a000fa4c return 0; info->indirect = p; a000f8d4: e5840058 str r0, [r4, #88] ; 0x58 } return &info->indirect[ my_block ]; a000f8d8: e5940058 ldr r0, [r4, #88] ; 0x58 a000f8dc: ea000001 b a000f8e8 } if ( !p ) a000f8e0: e3500000 cmp r0, #0 a000f8e4: 0a000058 beq a000fa4c return 0; return &info->indirect[ my_block ]; a000f8e8: e0800106 add r0, r0, r6, lsl #2 a000f8ec: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} /* * Is the block number in the doubly indirect portion? */ if ( my_block <= LAST_DOUBLY_INDIRECT ) { a000f8f0: e2852001 add r2, r5, #1 <== NOT EXECUTED a000f8f4: e0030295 mul r3, r5, r2 <== NOT EXECUTED a000f8f8: e2432001 sub r2, r3, #1 <== NOT EXECUTED a000f8fc: e1510002 cmp r1, r2 <== NOT EXECUTED a000f900: 8a00001a bhi a000f970 <== NOT EXECUTED #if 0 fprintf(stdout, "(d %d) ", block ); fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; a000f904: e0656001 rsb r6, r5, r1 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a000f908: e1a00006 mov r0, r6 <== NOT EXECUTED a000f90c: e1a01005 mov r1, r5 <== NOT EXECUTED a000f910: eb002e0f bl a001b154 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a000f914: e1a01005 mov r1, r5 <== NOT EXECUTED fflush(stdout); #endif my_block -= FIRST_DOUBLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a000f918: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a000f91c: e1a00006 mov r0, r6 <== NOT EXECUTED a000f920: eb002d77 bl a001af04 <__aeabi_uidiv> <== NOT EXECUTED p = info->doubly_indirect; if ( malloc_it ) { a000f924: 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; a000f928: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->doubly_indirect; a000f92c: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED if ( malloc_it ) { a000f930: 0a000008 beq a000f958 <== NOT EXECUTED if ( !p ) { a000f934: e3530000 cmp r3, #0 <== NOT EXECUTED a000f938: 1a000003 bne a000f94c <== NOT EXECUTED p = memfile_alloc_block(); a000f93c: ebffffb8 bl a000f824 <== NOT EXECUTED if ( !p ) a000f940: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000f944: 0a000040 beq a000fa4c <== NOT EXECUTED return 0; info->doubly_indirect = p; a000f948: e584305c str r3, [r4, #92] ; 0x5c <== NOT EXECUTED } p1 = (block_p *)p[ doubly ]; a000f94c: e7930105 ldr r0, [r3, r5, lsl #2] <== NOT EXECUTED a000f950: e0835105 add r5, r3, r5, lsl #2 <== NOT EXECUTED a000f954: ea00002d b a000fa10 <== NOT EXECUTED } return (block_p *)&p1[ singly ]; } if ( !p ) a000f958: e3530000 cmp r3, #0 <== NOT EXECUTED a000f95c: 0a00003a beq a000fa4c <== NOT EXECUTED return 0; p = (block_p *)p[ doubly ]; a000f960: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED if ( !p ) a000f964: e3500000 cmp r0, #0 <== NOT EXECUTED a000f968: 1a000035 bne a000fa44 <== NOT EXECUTED a000f96c: ea000036 b a000fa4c <== NOT EXECUTED #endif /* * Is the block number in the triply indirect portion? */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { a000f970: e2831001 add r1, r3, #1 <== NOT EXECUTED a000f974: e0020195 mul r2, r5, r1 <== NOT EXECUTED a000f978: e2422001 sub r2, r2, #1 <== NOT EXECUTED a000f97c: e1560002 cmp r6, r2 <== NOT EXECUTED a000f980: 8a000031 bhi a000fa4c <== NOT EXECUTED my_block -= FIRST_TRIPLY_INDIRECT; a000f984: e0636006 rsb r6, r3, r6 <== NOT EXECUTED singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a000f988: e1a01005 mov r1, r5 <== NOT EXECUTED a000f98c: e1a00006 mov r0, r6 <== NOT EXECUTED a000f990: eb002def bl a001b154 <__umodsi3> <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a000f994: e1a01005 mov r1, r5 <== NOT EXECUTED */ if ( my_block <= LAST_TRIPLY_INDIRECT ) { my_block -= FIRST_TRIPLY_INDIRECT; singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS; a000f998: e1a0a000 mov sl, r0 <== NOT EXECUTED doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS; a000f99c: e1a00006 mov r0, r6 <== NOT EXECUTED a000f9a0: eb002d57 bl a001af04 <__aeabi_uidiv> <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; a000f9a4: 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; a000f9a8: e1a06000 mov r6, r0 <== NOT EXECUTED triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS; a000f9ac: eb002d54 bl a001af04 <__aeabi_uidiv> <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; a000f9b0: 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; a000f9b4: e1a07000 mov r7, r0 <== NOT EXECUTED doubly %= IMFS_MEMFILE_BLOCK_SLOTS; a000f9b8: e1a00006 mov r0, r6 <== NOT EXECUTED a000f9bc: eb002de4 bl a001b154 <__umodsi3> <== NOT EXECUTED p = info->triply_indirect; if ( malloc_it ) { a000f9c0: 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; a000f9c4: e1a05000 mov r5, r0 <== NOT EXECUTED p = info->triply_indirect; a000f9c8: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED if ( malloc_it ) { a000f9cc: 0a000016 beq a000fa2c <== NOT EXECUTED if ( !p ) { a000f9d0: e3530000 cmp r3, #0 <== NOT EXECUTED a000f9d4: 1a000003 bne a000f9e8 <== NOT EXECUTED p = memfile_alloc_block(); a000f9d8: ebffff91 bl a000f824 <== NOT EXECUTED if ( !p ) a000f9dc: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000f9e0: 0a000019 beq a000fa4c <== NOT EXECUTED return 0; info->triply_indirect = p; a000f9e4: e5843060 str r3, [r4, #96] ; 0x60 <== NOT EXECUTED } p1 = (block_p *) p[ triply ]; a000f9e8: e7932107 ldr r2, [r3, r7, lsl #2] <== NOT EXECUTED a000f9ec: e0837107 add r7, r3, r7, lsl #2 <== NOT EXECUTED if ( !p1 ) { a000f9f0: e3520000 cmp r2, #0 <== NOT EXECUTED a000f9f4: 1a000003 bne a000fa08 <== NOT EXECUTED p1 = memfile_alloc_block(); a000f9f8: ebffff89 bl a000f824 <== NOT EXECUTED if ( !p1 ) a000f9fc: e2502000 subs r2, r0, #0 <== NOT EXECUTED a000fa00: 0a000011 beq a000fa4c <== NOT EXECUTED return 0; p[ triply ] = (block_p) p1; a000fa04: e5872000 str r2, [r7] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; a000fa08: e7920105 ldr r0, [r2, r5, lsl #2] <== NOT EXECUTED a000fa0c: e0825105 add r5, r2, r5, lsl #2 <== NOT EXECUTED if ( !p2 ) { a000fa10: e3500000 cmp r0, #0 <== NOT EXECUTED a000fa14: 1a00000a bne a000fa44 <== NOT EXECUTED p2 = memfile_alloc_block(); a000fa18: ebffff81 bl a000f824 <== NOT EXECUTED if ( !p2 ) a000fa1c: e3500000 cmp r0, #0 <== NOT EXECUTED return 0; p1[ doubly ] = (block_p) p2; a000fa20: 15850000 strne r0, [r5] <== NOT EXECUTED } p2 = (block_p *)p1[ doubly ]; if ( !p2 ) { p2 = memfile_alloc_block(); if ( !p2 ) a000fa24: 1a000006 bne a000fa44 <== NOT EXECUTED a000fa28: ea000007 b a000fa4c <== NOT EXECUTED p1[ doubly ] = (block_p) p2; } return (block_p *)&p2[ singly ]; } if ( !p ) a000fa2c: e3530000 cmp r3, #0 <== NOT EXECUTED a000fa30: 0a000005 beq a000fa4c <== 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 ]; a000fa34: e7933107 ldr r3, [r3, r7, lsl #2] <== NOT EXECUTED if ( !p1 ) a000fa38: e3530000 cmp r3, #0 <== NOT EXECUTED a000fa3c: 0a000002 beq a000fa4c <== NOT EXECUTED p2 = (block_p *)p1[ doubly ]; if ( !p ) return 0; return (block_p *)&p2[ singly ]; a000fa40: e7930100 ldr r0, [r3, r0, lsl #2] <== NOT EXECUTED a000fa44: e080010a add r0, r0, sl, lsl #2 <== NOT EXECUTED a000fa48: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED a000fa4c: e3a00000 mov r0, #0 <== NOT EXECUTED /* * This means the requested block number is out of range. */ return 0; } a000fa50: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED a000fa54: a001ee52 .word 0xa001ee52 a000fa58: a001e578 .word 0xa001e578 a000fa5c: a001ee98 .word 0xa001ee98 a000fa60: a001eea2 .word 0xa001eea2 a000fa64: a001f288 .word 0xa001f288 a0010384 : IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { a0010384: e92d4ff7 push {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); a0010388: e2504000 subs r4, r0, #0 IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) { a001038c: e1a06003 mov r6, r3 a0010390: e1a08001 mov r8, r1 a0010394: e1a09002 mov r9, r2 a0010398: e59d7030 ldr r7, [sp, #48] ; 0x30 /* * Perform internal consistency checks */ assert( the_jnode ); a001039c: 059f024c ldreq r0, [pc, #588] ; a00105f0 a00103a0: 03a01f93 moveq r1, #588 ; 0x24c a00103a4: 059f2248 ldreq r2, [pc, #584] ; a00105f4 a00103a8: 059f3248 ldreq r3, [pc, #584] ; a00105f8 a00103ac: 0a000007 beq a00103d0 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE || a00103b0: e594304c ldr r3, [r4, #76] ; 0x4c a00103b4: e2432005 sub r2, r3, #5 a00103b8: e3520001 cmp r2, #1 a00103bc: 9a000004 bls a00103d4 a00103c0: e59f0228 ldr r0, [pc, #552] ; a00105f0 <== NOT EXECUTED a00103c4: e59f1230 ldr r1, [pc, #560] ; a00105fc <== NOT EXECUTED a00103c8: e59f2224 ldr r2, [pc, #548] ; a00105f4 <== NOT EXECUTED a00103cc: e59f322c ldr r3, [pc, #556] ; a0010600 <== NOT EXECUTED a00103d0: ebfff41a bl a000d440 <__assert_func> <== NOT EXECUTED /* * Error checks on arguments */ assert( dest ); a00103d4: e3560000 cmp r6, #0 a00103d8: 059f0210 ldreq r0, [pc, #528] ; a00105f0 a00103dc: 059f1220 ldreq r1, [pc, #544] ; a0010604 a00103e0: 059f220c ldreq r2, [pc, #524] ; a00105f4 a00103e4: 059f321c ldreq r3, [pc, #540] ; a0010608 a00103e8: 0afffff8 beq a00103d0 /* * If there is nothing to read, then quick exit. */ my_length = length; if ( !my_length ) a00103ec: e3570000 cmp r7, #0 a00103f0: 1a000004 bne a0010408 rtems_set_errno_and_return_minus_one( EINVAL ); a00103f4: eb0005a5 bl a0011a90 <__errno> <== NOT EXECUTED a00103f8: e3a03016 mov r3, #22 <== NOT EXECUTED a00103fc: e5803000 str r3, [r0] <== NOT EXECUTED a0010400: e3e07000 mvn r7, #0 <== NOT EXECUTED a0010404: ea000077 b a00105e8 <== NOT EXECUTED /* * Linear files (as created from a tar file are easier to handle * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { a0010408: e3530006 cmp r3, #6 a001040c: 1a000012 bne a001045c unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; if (my_length > (the_jnode->info.linearfile.size - start)) a0010410: e284b050 add fp, r4, #80 ; 0x50 <== NOT EXECUTED a0010414: e89b0c00 ldm fp, {sl, fp} <== NOT EXECUTED a0010418: e1a0200a mov r2, sl <== NOT EXECUTED a001041c: e1a0300b mov r3, fp <== NOT EXECUTED a0010420: e3a01000 mov r1, #0 <== NOT EXECUTED a0010424: e0522008 subs r2, r2, r8 <== NOT EXECUTED a0010428: e0c33009 sbc r3, r3, r9 <== NOT EXECUTED a001042c: e1510003 cmp r1, r3 <== NOT EXECUTED * than block files). */ if (the_jnode->type == IMFS_LINEAR_FILE) { unsigned char *file_ptr; file_ptr = (unsigned char *)the_jnode->info.linearfile.direct; a0010430: e5941058 ldr r1, [r4, #88] ; 0x58 <== NOT EXECUTED if (my_length > (the_jnode->info.linearfile.size - start)) a0010434: ca000002 bgt a0010444 <== NOT EXECUTED a0010438: 1a000002 bne a0010448 <== NOT EXECUTED a001043c: e1570002 cmp r7, r2 <== NOT EXECUTED a0010440: 9a000000 bls a0010448 <== NOT EXECUTED my_length = the_jnode->info.linearfile.size - start; a0010444: e068700a rsb r7, r8, sl <== NOT EXECUTED memcpy(dest, &file_ptr[start], my_length); a0010448: e0811008 add r1, r1, r8 <== NOT EXECUTED a001044c: e1a00006 mov r0, r6 <== NOT EXECUTED a0010450: e1a02007 mov r2, r7 <== NOT EXECUTED a0010454: eb00079b bl a00122c8 <== NOT EXECUTED a0010458: ea00005d b a00105d4 <== 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 ) a001045c: e5942054 ldr r2, [r4, #84] ; 0x54 /* * 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; a0010460: e1a03001 mov r3, r1 if ( last_byte > the_jnode->info.file.size ) a0010464: e3a01000 mov r1, #0 a0010468: e1510002 cmp r1, r2 a001046c: e5945050 ldr r5, [r4, #80] ; 0x50 a0010470: e0872008 add r2, r7, r8 a0010474: ca000004 bgt a001048c a0010478: 1a000001 bne a0010484 a001047c: e1520005 cmp r2, r5 a0010480: 8a000001 bhi a001048c a0010484: e1a05007 mov r5, r7 <== NOT EXECUTED a0010488: ea000000 b a0010490 <== NOT EXECUTED my_length = the_jnode->info.file.size - start; a001048c: e0635005 rsb r5, r3, r5 /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a0010490: e59f3174 ldr r3, [pc, #372] ; a001060c a0010494: e1a00008 mov r0, r8 a0010498: e1a01009 mov r1, r9 a001049c: e593a000 ldr sl, [r3] a00104a0: e1a0b00a mov fp, sl a00104a4: e1a0cfcb asr ip, fp, #31 a00104a8: e1a0300c mov r3, ip a00104ac: e1a0200b mov r2, fp a00104b0: e58dc000 str ip, [sp] a00104b4: eb002f02 bl a001c0c4 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a00104b8: e59dc000 ldr ip, [sp] /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a00104bc: e1a07000 mov r7, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a00104c0: e1a01009 mov r1, r9 a00104c4: e1a00008 mov r0, r8 a00104c8: e1a0200b mov r2, fp a00104cc: e1a0300c mov r3, ip a00104d0: eb002dd1 bl a001bc1c <__divdi3> if ( start_offset ) { a00104d4: 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; a00104d8: e1a08000 mov r8, r0 if ( start_offset ) { a00104dc: 0a000013 beq a0010530 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 ); a00104e0: e1a00004 mov r0, r4 a00104e4: e1a01008 mov r1, r8 a00104e8: e3a02000 mov r2, #0 a00104ec: ebfffcd9 bl a000f858 assert( block_ptr ); a00104f0: e3500000 cmp r0, #0 a00104f4: 059f00f4 ldreq r0, [pc, #244] ; a00105f0 a00104f8: 059f1110 ldreq r1, [pc, #272] ; a0010610 a00104fc: 0a00002c beq a00105b4 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); a0010500: 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; a0010504: e067a00a rsb sl, r7, sl a0010508: e155000a cmp r5, sl a001050c: 31a0a005 movcc sl, r5 to_copy = my_length; block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); assert( block_ptr ); if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ start_offset ], to_copy ); a0010510: e0811007 add r1, r1, r7 a0010514: e1a00006 mov r0, r6 a0010518: e1a0200a mov r2, sl a001051c: eb000769 bl a00122c8 dest += to_copy; a0010520: e086600a add r6, r6, sl block++; a0010524: e2888001 add r8, r8, #1 my_length -= to_copy; a0010528: e06a5005 rsb r5, sl, r5 a001052c: e1a0700a mov r7, sl /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; a0010530: e59f30d4 ldr r3, [pc, #212] ; a001060c while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a0010534: e1a09003 mov r9, r3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; a0010538: e593a000 ldr sl, [r3] while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a001053c: ea00000f b a0010580 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a0010540: e1a00004 mov r0, r4 a0010544: e1a01008 mov r1, r8 a0010548: e3a02000 mov r2, #0 a001054c: ebfffcc1 bl a000f858 assert( block_ptr ); a0010550: e3500000 cmp r0, #0 a0010554: 059f0094 ldreq r0, [pc, #148] ; a00105f0 a0010558: 059f10b4 ldreq r1, [pc, #180] ; a0010614 a001055c: 0a000014 beq a00105b4 if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], to_copy ); a0010560: e5901000 ldr r1, [r0] a0010564: e1a0200a mov r2, sl a0010568: e1a00006 mov r0, r6 a001056c: eb000755 bl a00122c8 dest += to_copy; a0010570: e086600a add r6, r6, sl block++; a0010574: e2888001 add r8, r8, #1 my_length -= to_copy; a0010578: e06a5005 rsb r5, sl, r5 copied += to_copy; a001057c: e087700a add r7, r7, sl /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a0010580: e5993000 ldr r3, [r9] a0010584: e1550003 cmp r5, r3 a0010588: 2affffec bcs a0010540 * Phase 3: possibly the first part of one block */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); if ( my_length ) { a001058c: e3550000 cmp r5, #0 a0010590: 0a00000f beq a00105d4 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a0010594: e1a01008 mov r1, r8 a0010598: e1a00004 mov r0, r4 a001059c: e3a02000 mov r2, #0 a00105a0: ebfffcac bl a000f858 assert( block_ptr ); a00105a4: e2503000 subs r3, r0, #0 a00105a8: 1a000004 bne a00105c0 a00105ac: e59f003c ldr r0, [pc, #60] ; a00105f0 <== NOT EXECUTED a00105b0: e59f1060 ldr r1, [pc, #96] ; a0010618 <== NOT EXECUTED a00105b4: e59f2038 ldr r2, [pc, #56] ; a00105f4 <== NOT EXECUTED a00105b8: e59f305c ldr r3, [pc, #92] ; a001061c <== NOT EXECUTED a00105bc: eaffff83 b a00103d0 <== NOT EXECUTED if ( !block_ptr ) return copied; memcpy( dest, &(*block_ptr)[ 0 ], my_length ); a00105c0: e1a00006 mov r0, r6 a00105c4: e5931000 ldr r1, [r3] a00105c8: e1a02005 mov r2, r5 a00105cc: eb00073d bl a00122c8 copied += my_length; a00105d0: e0857007 add r7, r5, r7 } IMFS_update_atime( the_jnode ); a00105d4: e28d0004 add r0, sp, #4 a00105d8: e3a01000 mov r1, #0 a00105dc: ebffc86f bl a00027a0 a00105e0: e59d3004 ldr r3, [sp, #4] a00105e4: e5843040 str r3, [r4, #64] ; 0x40 return copied; } a00105e8: e1a00007 mov r0, r7 a00105ec: e8bd8ffe pop {r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} a00105f0: a001ee52 .word 0xa001ee52 a00105f4: a001e628 .word 0xa001e628 a00105f8: a001ee98 .word 0xa001ee98 a00105fc: 00000251 .word 0x00000251 a0010600: a001ef0c .word 0xa001ef0c a0010604: 0000025a .word 0x0000025a a0010608: a001ef57 .word 0xa001ef57 a001060c: a001f288 .word 0xa001f288 a0010610: 00000296 .word 0x00000296 a0010614: 000002a7 .word 0x000002a7 a0010618: 000002b9 .word 0x000002b9 a001061c: a001eed2 .word 0xa001eed2 a000fb38 : */ int IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) { a000fb38: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Perform internal consistency checks */ assert( the_jnode ); a000fb3c: e2504000 subs r4, r0, #0 a000fb40: 059f0138 ldreq r0, [pc, #312] ; a000fc80 a000fb44: 059f1138 ldreq r1, [pc, #312] ; a000fc84 a000fb48: 059f2138 ldreq r2, [pc, #312] ; a000fc88 a000fb4c: 059f3138 ldreq r3, [pc, #312] ; a000fc8c a000fb50: 0a000006 beq a000fb70 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); a000fb54: e594304c ldr r3, [r4, #76] ; 0x4c a000fb58: e3530005 cmp r3, #5 a000fb5c: 0a000004 beq a000fb74 a000fb60: e59f0118 ldr r0, [pc, #280] ; a000fc80 <== NOT EXECUTED a000fb64: e59f1124 ldr r1, [pc, #292] ; a000fc90 <== NOT EXECUTED a000fb68: e59f2118 ldr r2, [pc, #280] ; a000fc88 <== NOT EXECUTED a000fb6c: e59f3120 ldr r3, [pc, #288] ; a000fc94 <== NOT EXECUTED a000fb70: ebfff632 bl a000d440 <__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; a000fb74: e59f211c ldr r2, [pc, #284] ; a000fc98 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; a000fb78: 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; a000fb7c: e5925000 ldr r5, [r2] * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; a000fb80: 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; a000fb84: e1a05125 lsr r5, r5, #2 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; a000fb88: 0a000002 beq a000fb98 if ( info->indirect ) { memfile_free_blocks_in_table( &info->indirect, to_free ); a000fb8c: e2840058 add r0, r4, #88 ; 0x58 a000fb90: e1a01005 mov r1, r5 a000fb94: ebffffb3 bl a000fa68 * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; a000fb98: e594305c ldr r3, [r4, #92] ; 0x5c a000fb9c: e3530000 cmp r3, #0 a000fba0: 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; a000fba8: 1a000009 bne a000fbd4 a000fbac: ea00000e b a000fbec } if ( info->doubly_indirect ) { for ( i=0 ; idoubly_indirect[i] ) { a000fbb0: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a000fbb4: e1a00106 lsl r0, r6, #2 <== NOT EXECUTED a000fbb8: e7932106 ldr r2, [r3, r6, lsl #2] <== NOT EXECUTED a000fbbc: e3520000 cmp r2, #0 <== NOT EXECUTED a000fbc0: 0a000002 beq a000fbd0 <== NOT EXECUTED memfile_free_blocks_in_table( a000fbc4: e0830000 add r0, r3, r0 <== NOT EXECUTED a000fbc8: e1a01005 mov r1, r5 <== NOT EXECUTED a000fbcc: ebffffa5 bl a000fa68 <== 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 ); a000fbe0: e284005c add r0, r4, #92 ; 0x5c <== NOT EXECUTED a000fbe4: e1a01005 mov r1, r5 <== NOT EXECUTED a000fbe8: ebffff9e bl a000fa68 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; a000fbec: e5943060 ldr r3, [r4, #96] ; 0x60 a000fbf0: e3530000 cmp r3, #0 a000fbf4: 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; a000fbfc: 1a000017 bne a000fc60 a000fc00: ea00001c b a000fc78 } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; a000fc04: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED * + indirect * + doubly indirect * + triply indirect */ info = &the_jnode->info.file; a000fc08: e1a09106 lsl r9, r6, #2 <== NOT EXECUTED } if ( info->triply_indirect ) { for ( i=0 ; itriply_indirect[i]; a000fc0c: e7937106 ldr r7, [r3, r6, lsl #2] <== NOT EXECUTED if ( !p ) /* ensure we have a valid pointer */ a000fc10: e3570000 cmp r7, #0 <== NOT EXECUTED a000fc14: 0a000014 beq a000fc6c <== NOT EXECUTED a000fc18: e3a08000 mov r8, #0 <== NOT EXECUTED a000fc1c: ea000007 b a000fc40 <== NOT EXECUTED break; for ( j=0 ; j <== NOT EXECUTED memfile_free_blocks_in_table( (block_p **)&p[j], to_free); a000fc2c: e1a00007 mov r0, r7 <== NOT EXECUTED a000fc30: e1a01005 mov r1, r5 <== NOT EXECUTED a000fc34: ebffff8b bl a000fa68 <== 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( a000fc4c: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED a000fc50: e1a01005 mov r1, r5 <== 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( &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( a000fc6c: e2840060 add r0, r4, #96 ; 0x60 <== NOT EXECUTED a000fc70: e1a01005 mov r1, r5 <== NOT EXECUTED a000fc74: ebffff7b bl a000fa68 <== NOT EXECUTED (block_p **)&info->triply_indirect, to_free ); } return 0; } a000fc78: e3a00000 mov r0, #0 a000fc7c: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} a000fc80: a001ee52 .word 0xa001ee52 a000fc84: 000001ee .word 0x000001ee a000fc88: a001e5d4 .word 0xa001e5d4 a000fc8c: a001ee98 .word 0xa001ee98 a000fc90: 000001f2 .word 0x000001f2 a000fc94: a001eea2 .word 0xa001eea2 a000fc98: a001f288 .word 0xa001f288 a000fae8 : MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) { a000fae8: 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 ); a000faec: e3a02000 mov r2, #0 <== NOT EXECUTED a000faf0: ebffff58 bl a000f858 <== NOT EXECUTED assert( block_ptr ); a000faf4: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000faf8: 1a000004 bne a000fb10 <== NOT EXECUTED a000fafc: e59f0024 ldr r0, [pc, #36] ; a000fb28 <== NOT EXECUTED a000fb00: e59f1024 ldr r1, [pc, #36] ; a000fb2c <== NOT EXECUTED a000fb04: e59f2024 ldr r2, [pc, #36] ; a000fb30 <== NOT EXECUTED a000fb08: e59f3024 ldr r3, [pc, #36] ; a000fb34 <== NOT EXECUTED a000fb0c: ebfff64b bl a000d440 <__assert_func> <== NOT EXECUTED if ( block_ptr ) { ptr = *block_ptr; *block_ptr = 0; a000fb10: 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; a000fb14: e5930000 ldr r0, [r3] <== NOT EXECUTED *block_ptr = 0; a000fb18: e5832000 str r2, [r3] <== NOT EXECUTED memfile_free_block( ptr ); a000fb1c: ebffff38 bl a000f804 <== NOT EXECUTED } return 1; } a000fb20: e3a00001 mov r0, #1 <== NOT EXECUTED a000fb24: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a000fb28: a001ee52 .word 0xa001ee52 a000fb2c: 00000196 .word 0x00000196 a000fb30: a001e5b8 .word 0xa001e5b8 a000fb34: a001eed2 .word 0xa001eed2 a001005c : IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { a001005c: e92d4ff7 push {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Perform internal consistency checks */ assert( the_jnode ); a0010060: e2504000 subs r4, r0, #0 IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) { a0010064: e1a08001 mov r8, r1 a0010068: e1a0a002 mov sl, r2 a001006c: e1a06003 mov r6, r3 a0010070: e59d5030 ldr r5, [sp, #48] ; 0x30 /* * Perform internal consistency checks */ assert( the_jnode ); a0010074: 059f0204 ldreq r0, [pc, #516] ; a0010280 a0010078: 059f1204 ldreq r1, [pc, #516] ; a0010284 a001007c: 059f2204 ldreq r2, [pc, #516] ; a0010288 a0010080: 059f3204 ldreq r3, [pc, #516] ; a001028c a0010084: 0a000006 beq a00100a4 if ( !the_jnode ) rtems_set_errno_and_return_minus_one( EIO ); assert( the_jnode->type == IMFS_MEMORY_FILE ); a0010088: e594304c ldr r3, [r4, #76] ; 0x4c a001008c: e3530005 cmp r3, #5 a0010090: 0a000004 beq a00100a8 a0010094: e59f01e4 ldr r0, [pc, #484] ; a0010280 <== NOT EXECUTED a0010098: e59f11f0 ldr r1, [pc, #496] ; a0010290 <== NOT EXECUTED a001009c: e59f21e4 ldr r2, [pc, #484] ; a0010288 <== NOT EXECUTED a00100a0: e59f31ec ldr r3, [pc, #492] ; a0010294 <== NOT EXECUTED a00100a4: ebfff4e5 bl a000d440 <__assert_func> <== NOT EXECUTED /* * Error check arguments */ assert( source ); a00100a8: e3560000 cmp r6, #0 a00100ac: 059f01cc ldreq r0, [pc, #460] ; a0010280 a00100b0: 059f11e0 ldreq r1, [pc, #480] ; a0010298 a00100b4: 059f21cc ldreq r2, [pc, #460] ; a0010288 a00100b8: 059f31dc ldreq r3, [pc, #476] ; a001029c a00100bc: 0afffff8 beq a00100a4 /* * If there is nothing to write, then quick exit. */ my_length = length; if ( !my_length ) a00100c0: e3550000 cmp r5, #0 a00100c4: 1a000002 bne a00100d4 rtems_set_errno_and_return_minus_one( EINVAL ); a00100c8: eb000670 bl a0011a90 <__errno> <== NOT EXECUTED a00100cc: e3a03016 mov r3, #22 <== NOT EXECUTED a00100d0: ea00000e b a0010110 <== 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 ) { a00100d4: e5943054 ldr r3, [r4, #84] ; 0x54 a00100d8: e0851001 add r1, r5, r1 a00100dc: e3530000 cmp r3, #0 a00100e0: ba000003 blt a00100f4 a00100e4: 1a00000c bne a001011c a00100e8: e5943050 ldr r3, [r4, #80] ; 0x50 a00100ec: e1530001 cmp r3, r1 a00100f0: 2a000009 bcs a001011c status = IMFS_memfile_extend( the_jnode, last_byte ); a00100f4: e1a00004 mov r0, r4 a00100f8: e3a02000 mov r2, #0 a00100fc: ebffff40 bl a000fe04 if ( status ) a0010100: e3500000 cmp r0, #0 a0010104: 0a000004 beq a001011c rtems_set_errno_and_return_minus_one( ENOSPC ); a0010108: eb000660 bl a0011a90 <__errno> <== NOT EXECUTED a001010c: e3a0301c mov r3, #28 <== NOT EXECUTED a0010110: e5803000 str r3, [r0] <== NOT EXECUTED a0010114: e3e07000 mvn r7, #0 <== NOT EXECUTED a0010118: ea000056 b a0010278 <== NOT EXECUTED /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a001011c: e59f317c ldr r3, [pc, #380] ; a00102a0 a0010120: e1a00008 mov r0, r8 a0010124: e1a0100a mov r1, sl a0010128: e5939000 ldr r9, [r3] a001012c: e1a0b009 mov fp, r9 a0010130: e1a0cfcb asr ip, fp, #31 a0010134: e1a0300c mov r3, ip a0010138: e1a0200b mov r2, fp a001013c: e58dc000 str ip, [sp] a0010140: eb002fdf bl a001c0c4 <__moddi3> block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a0010144: e59dc000 ldr ip, [sp] /* * Phase 1: possibly the last part of one block */ start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK; a0010148: e1a07000 mov r7, r0 block = start / IMFS_MEMFILE_BYTES_PER_BLOCK; a001014c: e1a0100a mov r1, sl a0010150: e1a00008 mov r0, r8 a0010154: e1a0200b mov r2, fp a0010158: e1a0300c mov r3, ip a001015c: eb002eae bl a001bc1c <__divdi3> if ( start_offset ) { a0010160: 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; a0010164: e1a08000 mov r8, r0 if ( start_offset ) { a0010168: 0a000013 beq a00101bc 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 ); a001016c: e1a01008 mov r1, r8 a0010170: e1a00004 mov r0, r4 a0010174: e3a02000 mov r2, #0 a0010178: ebfffdb6 bl a000f858 assert( block_ptr ); a001017c: e3500000 cmp r0, #0 a0010180: 059f00f8 ldreq r0, [pc, #248] ; a0010280 a0010184: 03a01fc7 moveq r1, #796 ; 0x31c a0010188: 0a00002c beq a0010240 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 ); a001018c: 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; a0010190: e067a009 rsb sl, r7, r9 a0010194: e15a0005 cmp sl, r5 a0010198: 21a0a005 movcs sl, r5 if ( !block_ptr ) return copied; #if 0 fprintf(stdout, "write %d at %d in %d: %*s\n", to_copy, start_offset, block, to_copy, src ); #endif memcpy( &(*block_ptr)[ start_offset ], src, to_copy ); a001019c: e0800007 add r0, r0, r7 a00101a0: e1a01006 mov r1, r6 a00101a4: e1a0200a mov r2, sl a00101a8: eb000846 bl a00122c8 src += to_copy; a00101ac: e086600a add r6, r6, sl block++; a00101b0: e2888001 add r8, r8, #1 my_length -= to_copy; a00101b4: e06a5005 rsb r5, sl, r5 copied += to_copy; a00101b8: e1a0700a mov r7, sl /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; a00101bc: e59f30dc ldr r3, [pc, #220] ; a00102a0 while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a00101c0: e1a09003 mov r9, r3 /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; a00101c4: e593a000 ldr sl, [r3] while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a00101c8: ea00000f b a001020c block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a00101cc: e1a00004 mov r0, r4 a00101d0: e1a01008 mov r1, r8 a00101d4: e3a02000 mov r2, #0 a00101d8: ebfffd9e bl a000f858 assert( block_ptr ); a00101dc: e3500000 cmp r0, #0 a00101e0: 059f0098 ldreq r0, [pc, #152] ; a0010280 a00101e4: 03a01e33 moveq r1, #816 ; 0x330 a00101e8: 0a000014 beq a0010240 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 ); a00101ec: e1a01006 mov r1, r6 a00101f0: e5900000 ldr r0, [r0] a00101f4: e1a0200a mov r2, sl a00101f8: eb000832 bl a00122c8 src += to_copy; a00101fc: e086600a add r6, r6, sl block++; a0010200: e2888001 add r8, r8, #1 my_length -= to_copy; a0010204: 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( a0010208: e087700a add r7, r7, sl /* * Phase 2: all of zero of more blocks */ to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK; while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) { a001020c: e5993000 ldr r3, [r9] a0010210: e1550003 cmp r5, r3 a0010214: 2affffec bcs a00101cc */ assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK ); to_copy = my_length; if ( my_length ) { a0010218: e3550000 cmp r5, #0 a001021c: 0a00000f beq a0010260 block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 ); a0010220: e1a01008 mov r1, r8 a0010224: e1a00004 mov r0, r4 a0010228: e3a02000 mov r2, #0 a001022c: ebfffd89 bl a000f858 assert( block_ptr ); a0010230: e3500000 cmp r0, #0 a0010234: 1a000004 bne a001024c a0010238: e59f0040 ldr r0, [pc, #64] ; a0010280 <== NOT EXECUTED a001023c: e59f1060 ldr r1, [pc, #96] ; a00102a4 <== NOT EXECUTED a0010240: e59f2040 ldr r2, [pc, #64] ; a0010288 <== NOT EXECUTED a0010244: e59f305c ldr r3, [pc, #92] ; a00102a8 <== NOT EXECUTED a0010248: eaffff95 b a00100a4 <== 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 ); a001024c: e5900000 ldr r0, [r0] a0010250: e1a01006 mov r1, r6 a0010254: e1a02005 mov r2, r5 a0010258: eb00081a bl a00122c8 my_length = 0; copied += to_copy; a001025c: e0877005 add r7, r7, r5 } IMFS_mtime_ctime_update( the_jnode ); a0010260: e28d0004 add r0, sp, #4 a0010264: e3a01000 mov r1, #0 a0010268: ebffc94c bl a00027a0 a001026c: e59d3004 ldr r3, [sp, #4] a0010270: e5843048 str r3, [r4, #72] ; 0x48 a0010274: e5843044 str r3, [r4, #68] ; 0x44 return copied; } a0010278: e1a00007 mov r0, r7 a001027c: e8bd8ffe pop {r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} a0010280: a001ee52 .word 0xa001ee52 a0010284: 000002e3 .word 0x000002e3 a0010288: a001e614 .word 0xa001e614 a001028c: a001ee98 .word 0xa001ee98 a0010290: 000002e7 .word 0x000002e7 a0010294: a001eea2 .word 0xa001eea2 a0010298: 000002ef .word 0x000002ef a001029c: a001eedc .word 0xa001eedc a00102a0: a001f288 .word 0xa001f288 a00102a4: 00000346 .word 0x00000346 a00102a8: a001eed2 .word 0xa001eed2 a00083b4 : const char *token, /* IN */ mode_t mode, /* IN */ dev_t dev, /* IN */ rtems_filesystem_location_info_t *pathloc /* IN/OUT */ ) { a00083b4: e92d40f0 push {r4, r5, r6, r7, lr} a00083b8: e24dd040 sub sp, sp, #64 ; 0x40 a00083bc: e1a04001 mov r4, r1 a00083c0: e1a07000 mov r7, r0 a00083c4: e1a06002 mov r6, r2 a00083c8: 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 ); a00083cc: eb001566 bl a000d96c a00083d0: e28d303c add r3, sp, #60 ; 0x3c a00083d4: e1a01000 mov r1, r0 a00083d8: e28d2004 add r2, sp, #4 a00083dc: e1a00007 mov r0, r7 a00083e0: ebffff89 bl a000820c /* * Figure out what type of IMFS node this is. */ if ( S_ISDIR(mode) ) a00083e4: e2043a0f and r3, r4, #61440 ; 0xf000 a00083e8: e3530901 cmp r3, #16384 ; 0x4000 a00083ec: 0a00000e beq a000842c type = IMFS_DIRECTORY; else if ( S_ISREG(mode) ) a00083f0: e3530902 cmp r3, #32768 ; 0x8000 a00083f4: 03a01005 moveq r1, #5 a00083f8: 0a00000c beq a0008430 type = IMFS_MEMORY_FILE; else if ( S_ISBLK(mode) || S_ISCHR(mode) ) { a00083fc: e3530a06 cmp r3, #24576 ; 0x6000 a0008400: 13530a02 cmpne r3, #8192 ; 0x2000 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); a0008404: 058d6028 streq r6, [sp, #40] ; 0x28 a0008408: 058d502c streq r5, [sp, #44] ; 0x2c a000840c: 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) ) { a0008410: 0a000006 beq a0008430 type = IMFS_DEVICE; rtems_filesystem_split_dev_t( dev, info.device.major, info.device.minor ); } else if (S_ISFIFO(mode)) a0008414: e3530a01 cmp r3, #4096 ; 0x1000 a0008418: 03a01007 moveq r1, #7 a000841c: 0a000003 beq a0008430 type = IMFS_FIFO; else { rtems_set_errno_and_return_minus_one( EINVAL ); a0008420: eb001160 bl a000c9a8 <__errno> <== NOT EXECUTED a0008424: e3a03016 mov r3, #22 <== NOT EXECUTED a0008428: ea00000b b a000845c <== NOT EXECUTED a000842c: 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( a0008430: e28dc028 add ip, sp, #40 ; 0x28 a0008434: e59d0054 ldr r0, [sp, #84] ; 0x54 a0008438: e1a03004 mov r3, r4 a000843c: e28d2004 add r2, sp, #4 a0008440: e58dc000 str ip, [sp] a0008444: eb000b60 bl a000b1cc new_name, mode, &info ); if ( !new_node ) a0008448: e3500000 cmp r0, #0 a000844c: 13a00000 movne r0, #0 a0008450: 1a000003 bne a0008464 rtems_set_errno_and_return_minus_one( ENOMEM ); a0008454: eb001153 bl a000c9a8 <__errno> <== NOT EXECUTED a0008458: e3a0300c mov r3, #12 <== NOT EXECUTED a000845c: e5803000 str r3, [r0] <== NOT EXECUTED a0008460: e3e00000 mvn r0, #0 <== NOT EXECUTED return 0; } a0008464: e28dd040 add sp, sp, #64 ; 0x40 a0008468: e8bd80f0 pop {r4, r5, r6, r7, pc} a0001f64 : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; a0001f64: e5903008 ldr r3, [r0, #8] #include int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) { a0001f68: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) a0001f6c: e593204c ldr r2, [r3, #76] ; 0x4c a0001f70: e3520001 cmp r2, #1 a0001f74: 0a000004 beq a0001f8c rtems_set_errno_and_return_minus_one( ENOTDIR ); a0001f78: eb003ec4 bl a0011a90 <__errno> <== NOT EXECUTED a0001f7c: e3a03014 mov r3, #20 <== NOT EXECUTED a0001f80: e5803000 str r3, [r0] <== NOT EXECUTED a0001f84: e3e00000 mvn r0, #0 <== NOT EXECUTED a0001f88: 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; a0001f8c: e583005c str r0, [r3, #92] ; 0x5c a0001f90: e3a00000 mov r0, #0 return 0; } a0001f94: e49df004 pop {pc} ; (ldr pc, [sp], #4) a0002af4 : */ void IMFS_print_jnode( IMFS_jnode_t *the_jnode ) { a0002af4: e92d4030 push {r4, r5, lr} assert( the_jnode ); a0002af8: e2504000 subs r4, r0, #0 a0002afc: 059f012c ldreq r0, [pc, #300] ; a0002c30 a0002b00: 03a01038 moveq r1, #56 ; 0x38 a0002b04: 059f2128 ldreq r2, [pc, #296] ; a0002c34 a0002b08: 059f3128 ldreq r3, [pc, #296] ; a0002c38 a0002b0c: 0a00002e beq a0002bcc fprintf(stdout, "%s", the_jnode->name ); a0002b10: e59f5124 ldr r5, [pc, #292] ; a0002c3c a0002b14: e284000c add r0, r4, #12 a0002b18: e5953000 ldr r3, [r5] a0002b1c: e5931008 ldr r1, [r3, #8] a0002b20: eb003a45 bl a001143c switch( the_jnode->type ) { a0002b24: e594204c ldr r2, [r4, #76] ; 0x4c a0002b28: e2423001 sub r3, r2, #1 a0002b2c: e3530006 cmp r3, #6 a0002b30: 979ff103 ldrls pc, [pc, r3, lsl #2] a0002b34: ea000033 b a0002c08 <== NOT EXECUTED a0002b38: a0002b54 .word 0xa0002b54 <== NOT EXECUTED a0002b3c: a0002b68 .word 0xa0002b68 <== NOT EXECUTED a0002b40: a0002bac .word 0xa0002bac <== NOT EXECUTED a0002b44: a0002bd0 .word 0xa0002bd0 <== NOT EXECUTED a0002b48: a0002b94 .word 0xa0002b94 <== NOT EXECUTED a0002b4c: a0002b78 .word 0xa0002b78 <== NOT EXECUTED a0002b50: a0002bec .word 0xa0002bec <== NOT EXECUTED case IMFS_DIRECTORY: fprintf(stdout, "/" ); a0002b54: e5953000 ldr r3, [r5] a0002b58: e3a0002f mov r0, #47 ; 0x2f a0002b5c: e5931008 ldr r1, [r3, #8] a0002b60: eb0039f0 bl a0011328 break; a0002b64: ea00002e b a0002c24 case IMFS_DEVICE: fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")", a0002b68: e5952000 ldr r2, [r5] a0002b6c: e5943054 ldr r3, [r4, #84] ; 0x54 a0002b70: e59f10c8 ldr r1, [pc, #200] ; a0002c40 a0002b74: ea000002 b a0002b84 the_jnode->info.device.major, the_jnode->info.device.minor ); break; case IMFS_LINEAR_FILE: fprintf(stdout, " (file %" PRId32 " %p)", a0002b78: e5952000 ldr r2, [r5] <== NOT EXECUTED a0002b7c: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED a0002b80: e59f10bc ldr r1, [pc, #188] ; a0002c44 <== NOT EXECUTED a0002b84: e5920008 ldr r0, [r2, #8] a0002b88: e5942050 ldr r2, [r4, #80] ; 0x50 a0002b8c: eb0039c9 bl a00112b8 (uint32_t)the_jnode->info.linearfile.size, the_jnode->info.linearfile.direct ); break; a0002b90: ea000023 b a0002c24 the_jnode->info.file.indirect, the_jnode->info.file.doubly_indirect, the_jnode->info.file.triply_indirect ); #else fprintf(stdout, " (file %" PRId32 ")", a0002b94: e5953000 ldr r3, [r5] a0002b98: e5942050 ldr r2, [r4, #80] ; 0x50 a0002b9c: e59f10a4 ldr r1, [pc, #164] ; a0002c48 a0002ba0: e5930008 ldr r0, [r3, #8] a0002ba4: eb0039c3 bl a00112b8 (uint32_t)the_jnode->info.file.size ); #endif break; a0002ba8: ea00001d b a0002c24 case IMFS_HARD_LINK: fprintf(stdout, " links not printed\n" ); a0002bac: e5953000 ldr r3, [r5] <== NOT EXECUTED a0002bb0: e59f0094 ldr r0, [pc, #148] ; a0002c4c <== NOT EXECUTED a0002bb4: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0002bb8: eb003a1f bl a001143c <== NOT EXECUTED assert(0); a0002bbc: e59f006c ldr r0, [pc, #108] ; a0002c30 <== NOT EXECUTED a0002bc0: e3a0105d mov r1, #93 ; 0x5d <== NOT EXECUTED a0002bc4: e59f2068 ldr r2, [pc, #104] ; a0002c34 <== NOT EXECUTED a0002bc8: e59f3080 ldr r3, [pc, #128] ; a0002c50 <== NOT EXECUTED a0002bcc: eb000209 bl a00033f8 <__assert_func> <== NOT EXECUTED break; case IMFS_SYM_LINK: fprintf(stdout, " links not printed\n" ); a0002bd0: e5953000 ldr r3, [r5] <== NOT EXECUTED a0002bd4: e59f0070 ldr r0, [pc, #112] ; a0002c4c <== NOT EXECUTED a0002bd8: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0002bdc: eb003a16 bl a001143c <== NOT EXECUTED assert(0); a0002be0: e59f0048 ldr r0, [pc, #72] ; a0002c30 <== NOT EXECUTED a0002be4: e3a01062 mov r1, #98 ; 0x62 <== NOT EXECUTED a0002be8: eafffff5 b a0002bc4 <== NOT EXECUTED break; case IMFS_FIFO: fprintf(stdout, " FIFO not printed\n" ); a0002bec: e5953000 ldr r3, [r5] <== NOT EXECUTED a0002bf0: e59f005c ldr r0, [pc, #92] ; a0002c54 <== NOT EXECUTED a0002bf4: e5931008 ldr r1, [r3, #8] <== NOT EXECUTED a0002bf8: eb003a0f bl a001143c <== NOT EXECUTED assert(0); a0002bfc: e59f002c ldr r0, [pc, #44] ; a0002c30 <== NOT EXECUTED a0002c00: e3a01067 mov r1, #103 ; 0x67 <== NOT EXECUTED a0002c04: eaffffee b a0002bc4 <== NOT EXECUTED break; default: fprintf(stdout, " bad type %d\n", the_jnode->type ); a0002c08: e5953000 ldr r3, [r5] <== NOT EXECUTED a0002c0c: e59f1044 ldr r1, [pc, #68] ; a0002c58 <== NOT EXECUTED a0002c10: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0002c14: eb0039a7 bl a00112b8 <== NOT EXECUTED assert(0); a0002c18: e59f0010 ldr r0, [pc, #16] ; a0002c30 <== NOT EXECUTED a0002c1c: e3a0106c mov r1, #108 ; 0x6c <== NOT EXECUTED a0002c20: eaffffe7 b a0002bc4 <== NOT EXECUTED break; } puts(""); a0002c24: e59f0030 ldr r0, [pc, #48] ; a0002c5c } a0002c28: e8bd4030 pop {r4, r5, lr} default: fprintf(stdout, " bad type %d\n", the_jnode->type ); assert(0); break; } puts(""); a0002c2c: ea0040ce b a0012f6c a0002c30: a002282a .word 0xa002282a a0002c34: a00213bc .word 0xa00213bc a0002c38: a0022873 .word 0xa0022873 a0002c3c: a0020e44 .word 0xa0020e44 a0002c40: a002287d .word 0xa002287d a0002c44: a0022890 .word 0xa0022890 a0002c48: a002289f .word 0xa002289f a0002c4c: a00228ab .word 0xa00228ab a0002c50: a00221dd .word 0xa00221dd a0002c54: a00228bf .word 0xa00228bf a0002c58: a00228d2 .word 0xa00228d2 a0002c5c: a0022a63 .word 0xa0022a63 a0001fa4 : ) { IMFS_jnode_t *node; int i; node = loc->node_access; a0001fa4: e5903000 ldr r3, [r0] int IMFS_readlink( rtems_filesystem_location_info_t *loc, char *buf, /* OUT */ size_t bufsize ) { a0001fa8: e52de004 push {lr} ; (str lr, [sp, #-4]!) IMFS_jnode_t *node; int i; node = loc->node_access; if ( node->type != IMFS_SYM_LINK ) a0001fac: e593004c ldr r0, [r3, #76] ; 0x4c a0001fb0: e3500004 cmp r0, #4 a0001fb4: 03a00000 moveq r0, #0 a0001fb8: 0a000006 beq a0001fd8 rtems_set_errno_and_return_minus_one( EINVAL ); a0001fbc: eb003eb3 bl a0011a90 <__errno> <== NOT EXECUTED a0001fc0: e3a03016 mov r3, #22 <== NOT EXECUTED a0001fc4: e5803000 str r3, [r0] <== NOT EXECUTED a0001fc8: e3e00000 mvn r0, #0 <== NOT EXECUTED a0001fcc: 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]; a0001fd0: 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++ ) a0001fd4: e2800001 add r0, r0, #1 a0001fd8: e1500002 cmp r0, r2 a0001fdc: 249df004 popcs {pc} ; (ldrcs pc, [sp], #4) a0001fe0: e593c050 ldr ip, [r3, #80] ; 0x50 a0001fe4: e7dcc000 ldrb ip, [ip, r0] a0001fe8: e35c0000 cmp ip, #0 a0001fec: 1afffff7 bne a0001fd0 buf[i] = node->info.sym_link.name[i]; return i; } a0001ff0: e49df004 pop {pc} ; (ldr pc, [sp], #4) a0001ff4 : 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 */ ) { a0001ff4: 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; a0001ff8: 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 */ ) { a0001ffc: 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 ); a0002000: e1a01003 mov r1, r3 <== NOT EXECUTED a0002004: e284000c add r0, r4, #12 <== NOT EXECUTED a0002008: e3a02020 mov r2, #32 <== NOT EXECUTED a000200c: eb004290 bl a0012a54 <== NOT EXECUTED if ( the_jnode->Parent != NULL ) a0002010: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a0002014: e3530000 cmp r3, #0 <== NOT EXECUTED a0002018: 0a000001 beq a0002024 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); a000201c: e1a00004 mov r0, r4 <== NOT EXECUTED a0002020: eb0011a2 bl a00066b0 <_Chain_Extract> <== NOT EXECUTED rtems_chain_extract( (rtems_chain_node *) the_jnode ); new_parent = new_parent_loc->node_access; a0002024: 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 ); a0002028: e1a01004 mov r1, r4 <== NOT EXECUTED a000202c: e2830050 add r0, r3, #80 ; 0x50 <== NOT EXECUTED the_jnode->Parent = new_parent; a0002030: e5843008 str r3, [r4, #8] <== NOT EXECUTED a0002034: eb001192 bl a0006684 <_Chain_Append> <== NOT EXECUTED rtems_chain_append( &new_parent->info.directory.Entries, &the_jnode->Node ); /* * Update the time. */ IMFS_update_ctime( the_jnode ); a0002038: e1a0000d mov r0, sp <== NOT EXECUTED a000203c: e3a01000 mov r1, #0 <== NOT EXECUTED a0002040: eb0001d6 bl a00027a0 <== NOT EXECUTED a0002044: e59d3000 ldr r3, [sp] <== NOT EXECUTED return 0; } a0002048: 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 ); a000204c: e5843048 str r3, [r4, #72] ; 0x48 <== NOT EXECUTED return 0; } a0002050: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED a0008524 : ) { IMFS_jnode_t *the_jnode; IMFS_device_t *io; the_jnode = loc->node_access; a0008524: e5903000 ldr r3, [r0] int IMFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { a0008528: e92d4800 push {fp, lr} IMFS_device_t *io; the_jnode = loc->node_access; switch ( the_jnode->type ) { a000852c: e593204c ldr r2, [r3, #76] ; 0x4c a0008530: e2422002 sub r2, r2, #2 a0008534: e3520005 cmp r2, #5 a0008538: 979ff102 ldrls pc, [pc, r2, lsl #2] a000853c: ea000012 b a000858c <== NOT EXECUTED a0008540: a0008558 .word 0xa0008558 <== NOT EXECUTED a0008544: a000858c .word 0xa000858c <== NOT EXECUTED a0008548: a0008578 .word 0xa0008578 <== NOT EXECUTED a000854c: a000856c .word 0xa000856c <== NOT EXECUTED a0008550: a000856c .word 0xa000856c <== NOT EXECUTED a0008554: a0008578 .word 0xa0008578 <== NOT EXECUTED case IMFS_DEVICE: io = &the_jnode->info.device; buf->st_rdev = rtems_filesystem_make_dev_t( io->major, io->minor ); a0008558: e5930054 ldr r0, [r3, #84] ; 0x54 rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; a000855c: e5932050 ldr r2, [r3, #80] ; 0x50 a0008560: e581001c str r0, [r1, #28] a0008564: e5812018 str r2, [r1, #24] break; a0008568: ea00000c b a00085a0 case IMFS_LINEAR_FILE: case IMFS_MEMORY_FILE: buf->st_size = the_jnode->info.file.size; a000856c: e283c050 add ip, r3, #80 ; 0x50 a0008570: e89c1800 ldm ip, {fp, ip} a0008574: ea000001 b a0008580 case IMFS_SYM_LINK: buf->st_size = 0; break; case IMFS_FIFO: buf->st_size = 0; a0008578: e3a0b000 mov fp, #0 <== NOT EXECUTED a000857c: e3a0c000 mov ip, #0 <== NOT EXECUTED a0008580: e581b020 str fp, [r1, #32] a0008584: e581c024 str ip, [r1, #36] ; 0x24 break; a0008588: ea000004 b a00085a0 default: rtems_set_errno_and_return_minus_one( ENOTSUP ); a000858c: eb001105 bl a000c9a8 <__errno> <== NOT EXECUTED a0008590: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0008594: e5803000 str r3, [r0] <== NOT EXECUTED a0008598: e3e00000 mvn r0, #0 <== NOT EXECUTED a000859c: 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; a00085a0: 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; a00085a4: e1d3c3b4 ldrh ip, [r3, #52] ; 0x34 default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; a00085a8: e5930030 ldr r0, [r3, #48] ; 0x30 buf->st_nlink = the_jnode->st_nlink; buf->st_ino = the_jnode->st_ino; a00085ac: 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; a00085b0: 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; a00085b4: e1c1c1b0 strh ip, [r1, #16] buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; a00085b8: e1d3c3bc ldrh ip, [r3, #60] ; 0x3c buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; a00085bc: e5812028 str r2, [r1, #40] ; 0x28 buf->st_mtime = the_jnode->stat_mtime; a00085c0: 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; a00085c4: e1c1c1b2 strh ip, [r1, #18] default: rtems_set_errno_and_return_minus_one( ENOTSUP ); break; } buf->st_mode = the_jnode->st_mode; a00085c8: e581000c str r0, [r1, #12] buf->st_ino = the_jnode->st_ino; buf->st_uid = the_jnode->st_uid; buf->st_gid = the_jnode->st_gid; buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; a00085cc: 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; buf->st_gid = the_jnode->st_gid; a00085d0: e1d303be ldrh r0, [r3, #62] ; 0x3e buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; a00085d4: e5933048 ldr r3, [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; a00085d8: e1c101b4 strh r0, [r1, #20] buf->st_atime = the_jnode->stat_atime; buf->st_mtime = the_jnode->stat_mtime; buf->st_ctime = the_jnode->stat_ctime; a00085dc: e5813038 str r3, [r1, #56] ; 0x38 a00085e0: e3a00000 mov r0, #0 return 0; } a00085e4: e8bd8800 pop {fp, pc} a0002054 : int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { a0002054: e92d40f0 push {r4, r5, r6, r7, lr} a0002058: e1a05000 mov r5, r0 a000205c: 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 ); a0002060: e1a00002 mov r0, r2 int IMFS_symlink( rtems_filesystem_location_info_t *parent_loc, const char *link_name, const char *node_name ) { a0002064: e1a07002 mov r7, r2 a0002068: 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 ); a000206c: eb004260 bl a00129f4 a0002070: e28d4004 add r4, sp, #4 a0002074: e1a01000 mov r1, r0 a0002078: e1a02004 mov r2, r4 a000207c: e28d303c add r3, sp, #60 ; 0x3c a0002080: e1a00007 mov r0, r7 a0002084: eb002c5e bl a000d204 /* * Duplicate link name */ info.sym_link.name = strdup(link_name); a0002088: e1a00006 mov r0, r6 a000208c: eb004244 bl a00129a4 if (info.sym_link.name == NULL) { a0002090: 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); a0002094: e58d0028 str r0, [sp, #40] ; 0x28 if (info.sym_link.name == NULL) { a0002098: 0a00000b beq a00020cc * 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( a000209c: e28dc028 add ip, sp, #40 ; 0x28 a00020a0: e1a00005 mov r0, r5 a00020a4: e1a02004 mov r2, r4 a00020a8: e3a01004 mov r1, #4 a00020ac: e59f3030 ldr r3, [pc, #48] ; a00020e4 a00020b0: e58dc000 str ip, [sp] a00020b4: eb002953 bl a000c608 new_name, ( S_IFLNK | ( S_IRWXU | S_IRWXG | S_IRWXO )), &info ); if (new_node == NULL) { a00020b8: e3500000 cmp r0, #0 a00020bc: 13a00000 movne r0, #0 a00020c0: 1a000005 bne a00020dc free(info.sym_link.name); a00020c4: e59d0028 ldr r0, [sp, #40] ; 0x28 <== NOT EXECUTED a00020c8: eb000180 bl a00026d0 <== NOT EXECUTED rtems_set_errno_and_return_minus_one(ENOMEM); a00020cc: eb003e6f bl a0011a90 <__errno> <== NOT EXECUTED a00020d0: e3a0300c mov r3, #12 <== NOT EXECUTED a00020d4: e5803000 str r3, [r0] <== NOT EXECUTED a00020d8: e3e00000 mvn r0, #0 <== NOT EXECUTED } return 0; } a00020dc: e28dd040 add sp, sp, #64 ; 0x40 a00020e0: e8bd80f0 pop {r4, r5, r6, r7, pc} a00020e4: 0000a1ff .word 0x0000a1ff a00020e8 : int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { a00020e8: e92d40f0 push {r4, r5, r6, r7, lr} IMFS_jnode_t *node; rtems_filesystem_location_info_t the_link; int result = 0; node = loc->node_access; a00020ec: e5915000 ldr r5, [r1] int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { a00020f0: e24dd01c sub sp, sp, #28 a00020f4: e1a04001 mov r4, r1 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { a00020f8: e595304c ldr r3, [r5, #76] ; 0x4c int IMFS_unlink( rtems_filesystem_location_info_t *parentloc, /* IN */ rtems_filesystem_location_info_t *loc /* IN */ ) { a00020fc: e1a06000 mov r6, r0 /* * If this is the last last pointer to the node * free the node. */ if ( node->type == IMFS_HARD_LINK ) { a0002100: e3530003 cmp r3, #3 a0002104: 1a000025 bne a00021a0 if ( !node->info.hard_link.link_node ) a0002108: e595e050 ldr lr, [r5, #80] ; 0x50 a000210c: e35e0000 cmp lr, #0 a0002110: 1a000003 bne a0002124 rtems_set_errno_and_return_minus_one( EINVAL ); a0002114: eb003e5d bl a0011a90 <__errno> <== NOT EXECUTED a0002118: e3a03016 mov r3, #22 <== NOT EXECUTED a000211c: e5803000 str r3, [r0] <== NOT EXECUTED a0002120: ea000014 b a0002178 <== NOT EXECUTED the_link = *loc; a0002124: e1a0c00d mov ip, sp a0002128: e1a07001 mov r7, r1 a000212c: e8b7000f ldm r7!, {r0, r1, r2, r3} a0002130: e8ac000f stmia ip!, {r0, r1, r2, r3} a0002134: e5973000 ldr r3, [r7] the_link.node_access = node->info.hard_link.link_node; a0002138: e28d701c add r7, sp, #28 a000213c: e527e01c str lr, [r7, #-28]! IMFS_Set_handlers( &the_link ); a0002140: 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; a0002144: e58c3000 str r3, [ip] the_link.node_access = node->info.hard_link.link_node; IMFS_Set_handlers( &the_link ); a0002148: eb00297d bl a000c744 /* * 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) a000214c: e5953050 ldr r3, [r5, #80] ; 0x50 a0002150: e1d323b4 ldrh r2, [r3, #52] ; 0x34 a0002154: e3520001 cmp r2, #1 a0002158: 1a000008 bne a0002180 { result = (*the_link.handlers->rmnod_h)( parentloc, &the_link ); a000215c: e1a0100d mov r1, sp a0002160: e1a00006 mov r0, r6 a0002164: e59d3008 ldr r3, [sp, #8] a0002168: e1a0e00f mov lr, pc a000216c: e593f034 ldr pc, [r3, #52] ; 0x34 if ( result != 0 ) a0002170: e3500000 cmp r0, #0 a0002174: 0a000009 beq a00021a0 a0002178: e3e00000 mvn r0, #0 a000217c: ea00000c b a00021b4 return -1; } else { node->info.hard_link.link_node->st_nlink --; a0002180: e2422001 sub r2, r2, #1 a0002184: e1c323b4 strh r2, [r3, #52] ; 0x34 IMFS_update_ctime( node->info.hard_link.link_node ); a0002188: e28d0014 add r0, sp, #20 a000218c: e3a01000 mov r1, #0 a0002190: eb000182 bl a00027a0 a0002194: e5953050 ldr r3, [r5, #80] ; 0x50 a0002198: e59d2014 ldr r2, [sp, #20] a000219c: e5832048 str r2, [r3, #72] ; 0x48 /* * Now actually free the node we were asked to free. */ result = (*loc->handlers->rmnod_h)( parentloc, loc ); a00021a0: e1a00006 mov r0, r6 a00021a4: e1a01004 mov r1, r4 a00021a8: e5943008 ldr r3, [r4, #8] a00021ac: e1a0e00f mov lr, pc a00021b0: e593f034 ldr pc, [r3, #52] ; 0x34 return result; } a00021b4: e28dd01c add sp, sp, #28 a00021b8: e8bd80f0 pop {r4, r5, r6, r7, pc} a00021bc : rtems_filesystem_mount_table_entry_t *mt_entry ) { IMFS_jnode_t *node; node = mt_entry->mt_point_node.node_access; a00021bc: e5903008 ldr r3, [r0, #8] #include int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) { a00021c0: e52de004 push {lr} ; (str lr, [sp, #-4]!) /* * Is the node that we are mounting onto a directory node ? */ if ( node->type != IMFS_DIRECTORY ) a00021c4: e593204c ldr r2, [r3, #76] ; 0x4c a00021c8: e3520001 cmp r2, #1 a00021cc: 0a000002 beq a00021dc rtems_set_errno_and_return_minus_one( ENOTDIR ); a00021d0: eb003e2e bl a0011a90 <__errno> <== NOT EXECUTED a00021d4: e3a03014 mov r3, #20 <== NOT EXECUTED a00021d8: ea000004 b a00021f0 <== NOT EXECUTED /* * Did the node indicate that there was a directory mounted here? */ if ( node->info.directory.mt_fs == NULL ) a00021dc: e593205c ldr r2, [r3, #92] ; 0x5c a00021e0: e3520000 cmp r2, #0 a00021e4: 1a000004 bne a00021fc rtems_set_errno_and_return_minus_one( EINVAL ); /* XXX */ a00021e8: eb003e28 bl a0011a90 <__errno> <== NOT EXECUTED a00021ec: e3a03016 mov r3, #22 <== NOT EXECUTED a00021f0: e5803000 str r3, [r0] <== NOT EXECUTED a00021f4: e3e00000 mvn r0, #0 <== NOT EXECUTED a00021f8: 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; a00021fc: e3a00000 mov r0, #0 a0002200: e583005c str r0, [r3, #92] ; 0x5c return 0; } a0002204: e49df004 pop {pc} ; (ldr pc, [sp], #4) a0001360 : #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { a0001360: e59f30d4 ldr r3, [pc, #212] ; a000143c void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { a0001364: e92d4070 push {r4, r5, r6, lr} #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { a0001368: e5933000 ldr r3, [r3] void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { a000136c: e1a04000 mov r4, r0 a0001370: e1a05001 mov r5, r1 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { a0001374: e3530000 cmp r3, #0 void RTEMS_Malloc_Initialize( void *heap_begin, uintptr_t heap_size, size_t sbrk_amount ) { a0001378: e1a06002 mov r6, r2 #endif /* * If configured, initialize the statistics support */ if ( rtems_malloc_statistics_helpers != NULL ) { a000137c: 0a000001 beq a0001388 (*rtems_malloc_statistics_helpers->initialize)(); a0001380: e1a0e00f mov lr, pc <== NOT EXECUTED a0001384: e593f000 ldr pc, [r3] <== NOT EXECUTED } /* * Initialize the garbage collection list to start with nothing on it. */ malloc_deferred_frees_initialize(); a0001388: eb001e1a bl a0008bf8 /* * Initialize the optional sbrk support for extending the heap */ if ( rtems_malloc_sbrk_helpers != NULL ) { a000138c: e59f30ac ldr r3, [pc, #172] ; a0001440 a0001390: e5933000 ldr r3, [r3] a0001394: e3530000 cmp r3, #0 a0001398: 0a000006 beq a00013b8 void *new_heap_begin = (*rtems_malloc_sbrk_helpers->initialize)( a000139c: e1a00004 mov r0, r4 <== NOT EXECUTED a00013a0: e1a01006 mov r1, r6 <== NOT EXECUTED a00013a4: e1a0e00f mov lr, pc <== NOT EXECUTED a00013a8: e593f000 ldr pc, [r3] <== NOT EXECUTED heap_begin, sbrk_amount ); heap_size -= (uintptr_t) new_heap_begin - (uintptr_t) heap_begin; a00013ac: e0845005 add r5, r4, r5 <== NOT EXECUTED a00013b0: e0605005 rsb r5, r0, r5 <== NOT EXECUTED a00013b4: 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 ( a00013b8: e59f3084 ldr r3, [pc, #132] ; a0001444 a00013bc: e5d31000 ldrb r1, [r3] a00013c0: e3510000 cmp r1, #0 a00013c4: 1a000006 bne a00013e4 !rtems_unified_work_area && rtems_configuration_get_do_zero_of_workspace() a00013c8: e59f3078 ldr r3, [pc, #120] ; a0001448 a00013cc: e5d33028 ldrb r3, [r3, #40] ; 0x28 a00013d0: e3530000 cmp r3, #0 a00013d4: 0a000002 beq a00013e4 ) { memset( heap_begin, 0, heap_size ); a00013d8: e1a00004 mov r0, r4 a00013dc: e1a02005 mov r2, r5 a00013e0: eb002fba bl a000d2d0 * 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 ) { a00013e4: e59f3058 ldr r3, [pc, #88] ; a0001444 a00013e8: e5d33000 ldrb r3, [r3] a00013ec: e3530000 cmp r3, #0 a00013f0: 1a000009 bne a000141c void *area_begin, uintptr_t area_size, uintptr_t page_size ) { return _Heap_Initialize( heap, area_begin, area_size, page_size ); a00013f4: e59f3050 ldr r3, [pc, #80] ; a000144c a00013f8: e1a01004 mov r1, r4 a00013fc: e1a02005 mov r2, r5 a0001400: e5930000 ldr r0, [r3] a0001404: e3a03004 mov r3, #4 a0001408: eb000ed7 bl a0004f6c <_Heap_Initialize> RTEMS_Malloc_Heap, heap_begin, heap_size, CPU_HEAP_ALIGNMENT ); if ( status == 0 ) { a000140c: e3500000 cmp r0, #0 a0001410: 1a000001 bne a000141c rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); a0001414: e280001a add r0, r0, #26 <== NOT EXECUTED a0001418: eb000cf0 bl a00047e0 <== NOT EXECUTED } } MSBUMP( space_available, _Protected_heap_Get_size(RTEMS_Malloc_Heap) ); a000141c: e59f3028 ldr r3, [pc, #40] ; a000144c a0001420: e59f4028 ldr r4, [pc, #40] ; a0001450 a0001424: e5930000 ldr r0, [r3] a0001428: e5945000 ldr r5, [r4] a000142c: eb001191 bl a0005a78 <_Protected_heap_Get_size> a0001430: e0800005 add r0, r0, r5 a0001434: e5840000 str r0, [r4] printk( "\n" ); rtems_print_buffer( (heap_begin + heap_size) - 48, 48 ); rtems_fatal_error_occurred( RTEMS_NO_MEMORY ); } #endif } a0001438: e8bd8070 pop {r4, r5, r6, pc} a000143c: a00198e8 .word 0xa00198e8 a0001440: a00198ec .word 0xa00198ec a0001444: a00198e5 .word 0xa00198e5 a0001448: a00182f4 .word 0xa00182f4 a000144c: a001824c .word 0xa001824c a0001450: a0019b58 .word 0xa0019b58 a00036fc : static rtems_printk_plugin_t print_handler; void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) { a00036fc: 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 ) a0003700: e250a000 subs sl, r0, #0 <== NOT EXECUTED a0003704: 0a000041 beq a0003810 <== NOT EXECUTED return; if ( !print_handler ) a0003708: e59f3104 ldr r3, [pc, #260] ; a0003814 <== NOT EXECUTED a000370c: e5937004 ldr r7, [r3, #4] <== NOT EXECUTED a0003710: e3570000 cmp r7, #0 <== NOT EXECUTED a0003714: 0a00003d beq a0003810 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { a0003718: e37a0001 cmn sl, #1 <== NOT EXECUTED } else return; } else { stack = &the_thread->Start.Initial_stack; current = (void *)_CPU_Context_Get_SP( &the_thread->Registers ); a000371c: 159a60f4 ldrne r6, [sl, #244] ; 0xf4 <== NOT EXECUTED current = 0; } else return; } else { stack = &the_thread->Start.Initial_stack; a0003720: 128a40c4 addne r4, sl, #196 ; 0xc4 <== NOT EXECUTED /* * Obtain interrupt stack information */ if (the_thread == (Thread_Control *) -1) { a0003724: 1a000005 bne a0003740 <== NOT EXECUTED if (Stack_check_Interrupt_stack.area) { a0003728: e59f40e8 ldr r4, [pc, #232] ; a0003818 <== NOT EXECUTED a000372c: e5943004 ldr r3, [r4, #4] <== NOT EXECUTED a0003730: e3530000 cmp r3, #0 <== NOT EXECUTED a0003734: 13a06000 movne r6, #0 <== NOT EXECUTED a0003738: 11a0a006 movne sl, r6 <== NOT EXECUTED a000373c: 0a000033 beq a0003810 <== 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); a0003740: e8940220 ldm r4, {r5, r9} <== NOT EXECUTED a0003744: e2899010 add r9, r9, #16 <== NOT EXECUTED size = Stack_check_usable_stack_size(stack); a0003748: e2455010 sub r5, r5, #16 <== NOT EXECUTED high_water_mark = Stack_check_find_high_water_mark(low, size); a000374c: e1a00009 mov r0, r9 <== NOT EXECUTED a0003750: e1a01005 mov r1, r5 <== NOT EXECUTED a0003754: ebffffda bl a00036c4 <== NOT EXECUTED if ( high_water_mark ) a0003758: e2508000 subs r8, r0, #0 <== NOT EXECUTED used = Stack_check_Calculate_used( low, size, high_water_mark ); a000375c: 10899005 addne r9, r9, r5 <== NOT EXECUTED a0003760: 10688009 rsbne r8, r8, r9 <== NOT EXECUTED else used = 0; if ( the_thread ) { a0003764: e35a0000 cmp sl, #0 <== NOT EXECUTED a0003768: e59f30a4 ldr r3, [pc, #164] ; a0003814 <== NOT EXECUTED a000376c: 0a00000b beq a00037a0 <== NOT EXECUTED (*print_handler)( a0003770: e59aa008 ldr sl, [sl, #8] <== NOT EXECUTED a0003774: e28d2008 add r2, sp, #8 <== NOT EXECUTED a0003778: e3a01005 mov r1, #5 <== NOT EXECUTED a000377c: e1a0000a mov r0, sl <== NOT EXECUTED a0003780: e5939008 ldr r9, [r3, #8] <== NOT EXECUTED a0003784: eb00165e bl a0009104 <== NOT EXECUTED a0003788: e1a0200a mov r2, sl <== NOT EXECUTED a000378c: e1a03000 mov r3, r0 <== NOT EXECUTED a0003790: e59f1084 ldr r1, [pc, #132] ; a000381c <== NOT EXECUTED a0003794: e1a00009 mov r0, r9 <== NOT EXECUTED a0003798: e12fff37 blx r7 <== NOT EXECUTED a000379c: ea000003 b a00037b0 <== 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 ); a00037a0: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a00037a4: e59f1074 ldr r1, [pc, #116] ; a0003820 <== NOT EXECUTED a00037a8: e3e02000 mvn r2, #0 <== NOT EXECUTED a00037ac: e12fff37 blx r7 <== NOT EXECUTED } (*print_handler)( a00037b0: e5943000 ldr r3, [r4] <== NOT EXECUTED a00037b4: e5942004 ldr r2, [r4, #4] <== NOT EXECUTED a00037b8: e59f4054 ldr r4, [pc, #84] ; a0003814 <== NOT EXECUTED a00037bc: e58d6000 str r6, [sp] <== NOT EXECUTED a00037c0: e58d5004 str r5, [sp, #4] <== NOT EXECUTED a00037c4: e2433001 sub r3, r3, #1 <== NOT EXECUTED a00037c8: e0823003 add r3, r2, r3 <== NOT EXECUTED a00037cc: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a00037d0: e59f104c ldr r1, [pc, #76] ; a0003824 <== NOT EXECUTED a00037d4: e1a0e00f mov lr, pc <== NOT EXECUTED a00037d8: e594f004 ldr pc, [r4, #4] <== NOT EXECUTED stack->area + stack->size - 1, current, size ); if (Stack_check_Initialized == 0) { a00037dc: e5943000 ldr r3, [r4] <== NOT EXECUTED a00037e0: e3530000 cmp r3, #0 <== NOT EXECUTED a00037e4: 1a000004 bne a00037fc <== NOT EXECUTED (*print_handler)( print_context, "Unavailable\n" ); a00037e8: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a00037ec: e59f1034 ldr r1, [pc, #52] ; a0003828 <== NOT EXECUTED a00037f0: e1a0e00f mov lr, pc <== NOT EXECUTED a00037f4: e594f004 ldr pc, [r4, #4] <== NOT EXECUTED a00037f8: ea000004 b a0003810 <== NOT EXECUTED } else { (*print_handler)( print_context, "%8" PRId32 "\n", used ); a00037fc: e1a02008 mov r2, r8 <== NOT EXECUTED a0003800: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a0003804: e59f1020 ldr r1, [pc, #32] ; a000382c <== NOT EXECUTED a0003808: e1a0e00f mov lr, pc <== NOT EXECUTED a000380c: e594f004 ldr pc, [r4, #4] <== NOT EXECUTED } } a0003810: e8bd87ff pop {r0, r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED a0003814: a005e39c .word 0xa005e39c a0003818: a0060e84 .word 0xa0060e84 a000381c: a0057c31 .word 0xa0057c31 a0003820: a0057c3e .word 0xa0057c3e a0003824: a0057c4c .word 0xa0057c4c a0003828: a0057c6a .word 0xa0057c6a a000382c: a0057c77 .word 0xa0057c77 a00036c4 : /* * start at lower memory and find first word that does not * match pattern */ base += PATTERN_SIZE_WORDS; a00036c4: e2800010 add r0, r0, #16 <== NOT EXECUTED for (ebase = base + length; base < ebase; base++) a00036c8: e3c11003 bic r1, r1, #3 <== NOT EXECUTED a00036cc: e0801001 add r1, r0, r1 <== NOT EXECUTED if (*base != U32_PATTERN) a00036d0: e59f3020 ldr r3, [pc, #32] ; a00036f8 <== 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++) a00036d4: ea000003 b a00036e8 <== NOT EXECUTED if (*base != U32_PATTERN) a00036d8: e5902000 ldr r2, [r0] <== NOT EXECUTED a00036dc: e1520003 cmp r2, r3 <== NOT EXECUTED a00036e0: 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++) a00036e4: e2800004 add r0, r0, #4 <== NOT EXECUTED a00036e8: e1500001 cmp r0, r1 <== NOT EXECUTED a00036ec: 3afffff9 bcc a00036d8 <== NOT EXECUTED a00036f0: e3a00000 mov r0, #0 <== NOT EXECUTED if (*base != U32_PATTERN) return (void *) base; #endif return (void *)0; } a00036f4: e12fff1e bx lr <== NOT EXECUTED a00036f8: a5a5a5a5 .word 0xa5a5a5a5 a0014670 <_CORE_message_queue_Broadcast>: { Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a0014670: e590304c ldr r3, [r0, #76] ; 0x4c Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { a0014674: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a0014678: e1520003 cmp r2, r3 Objects_Id id __attribute__((unused)), CORE_message_queue_API_mp_support_callout api_message_queue_mp_support __attribute__((unused)), #endif uint32_t *count ) { a001467c: e1a06000 mov r6, r0 a0014680: e1a07002 mov r7, r2 a0014684: e1a0a001 mov sl, r1 a0014688: e59d8020 ldr r8, [sp, #32] Thread_Control *the_thread; uint32_t number_broadcasted; Thread_Wait_information *waitp; if ( size > the_message_queue->maximum_message_size ) { a001468c: 9a000001 bls a0014698 <_CORE_message_queue_Broadcast+0x28> a0014690: e3a00001 mov r0, #1 <== NOT EXECUTED a0014694: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED * NOTE: This check is critical because threads can block on * send and receive and this ensures that we are broadcasting * the message to threads waiting to receive -- not to send. */ if ( the_message_queue->number_of_pending_messages != 0 ) { a0014698: e5905048 ldr r5, [r0, #72] ; 0x48 a001469c: e3550000 cmp r5, #0 a00146a0: 0a000009 beq a00146cc <_CORE_message_queue_Broadcast+0x5c> *count = 0; a00146a4: e3a00000 mov r0, #0 a00146a8: e5880000 str r0, [r8] return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; a00146ac: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} const void *source, void *destination, size_t size ) { memcpy(destination, source, size); a00146b0: e594002c ldr r0, [r4, #44] ; 0x2c a00146b4: e1a0100a mov r1, sl a00146b8: e1a02007 mov r2, r7 a00146bc: eb0024f7 bl a001daa0 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a00146c0: e5943028 ldr r3, [r4, #40] ; 0x28 */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { waitp = &the_thread->Wait; number_broadcasted += 1; a00146c4: e2855001 add r5, r5, #1 buffer, waitp->return_argument_second.mutable_object, size ); *(size_t *) the_thread->Wait.return_argument = size; a00146c8: e5837000 str r7, [r3] * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = _Thread_queue_Dequeue(&the_message_queue->Wait_queue))) { a00146cc: e1a00006 mov r0, r6 a00146d0: eb0009b9 bl a0016dbc <_Thread_queue_Dequeue> /* * There must be no pending messages if there is a thread waiting to * receive a message. */ number_broadcasted = 0; while ((the_thread = a00146d4: e2504000 subs r4, r0, #0 a00146d8: 1afffff4 bne a00146b0 <_CORE_message_queue_Broadcast+0x40> if ( !_Objects_Is_local_id( the_thread->Object.id ) ) (*api_message_queue_mp_support) ( the_thread, id ); #endif } *count = number_broadcasted; a00146dc: e5885000 str r5, [r8] a00146e0: e1a00004 mov r0, r4 return CORE_MESSAGE_QUEUE_STATUS_SUCCESSFUL; } a00146e4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} a000edd8 <_Heap_Extend>: Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { a000edd8: e92d41f0 push {r4, r5, r6, r7, r8, lr} a000eddc: e1a04000 mov r4, r0 Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; a000ede0: e594c018 ldr ip, [r4, #24] uintptr_t const heap_area_end = heap->area_end; a000ede4: e590001c ldr r0, [r0, #28] Heap_Control *heap, void *area_begin_ptr, uintptr_t area_size, uintptr_t *amount_extended ) { a000ede8: e1a08003 mov r8, r3 uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; uintptr_t const heap_area_end = heap->area_end; uintptr_t const new_heap_area_end = heap_area_end + area_size; uintptr_t extend_size = 0; Heap_Block *const last_block = heap->last_block; a000edec: e5946024 ldr r6, [r4, #36] ; 0x24 uintptr_t *amount_extended ) { Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; a000edf0: e1510000 cmp r1, r0 a000edf4: 23a05000 movcs r5, #0 a000edf8: 33a05001 movcc r5, #1 a000edfc: e151000c cmp r1, ip a000ee00: 33a05000 movcc r5, #0 a000ee04: e3550000 cmp r5, #0 a000ee08: 0a000001 beq a000ee14 <_Heap_Extend+0x3c> a000ee0c: e3a00001 mov r0, #1 a000ee10: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} * As noted, this code only supports (4). */ if ( area_begin >= heap_area_begin && area_begin < heap_area_end ) { return HEAP_EXTEND_ERROR; /* case 3 */ } else if ( area_begin != heap_area_end ) { a000ee14: e1510000 cmp r1, r0 a000ee18: 0a000001 beq a000ee24 <_Heap_Extend+0x4c> a000ee1c: e3a00002 mov r0, #2 a000ee20: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} * block and free it. */ heap->area_end = new_heap_area_end; extend_size = new_heap_area_end a000ee24: e3e07007 mvn r7, #7 { Heap_Statistics *const stats = &heap->stats; uintptr_t const area_begin = (uintptr_t) area_begin_ptr; uintptr_t const heap_area_begin = heap->area_begin; uintptr_t const heap_area_end = heap->area_end; uintptr_t const new_heap_area_end = heap_area_end + area_size; a000ee28: e0821001 add r1, r2, r1 * block and free it. */ heap->area_end = new_heap_area_end; extend_size = new_heap_area_end a000ee2c: e0667007 rsb r7, r6, r7 a000ee30: e0877001 add r7, r7, r1 * Currently only case 4 should make it to this point. * The basic trick is to make the extend area look like a used * block and free it. */ heap->area_end = new_heap_area_end; a000ee34: e584101c str r1, [r4, #28] RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment); a000ee38: e1a00007 mov r0, r7 a000ee3c: e5941010 ldr r1, [r4, #16] a000ee40: ebffd058 bl a0002fa8 <__umodsi3> a000ee44: e0600007 rsb r0, r0, r7 extend_size = new_heap_area_end - (uintptr_t) last_block - HEAP_BLOCK_HEADER_SIZE; extend_size = _Heap_Align_down( extend_size, heap->page_size ); *amount_extended = extend_size; a000ee48: e5880000 str r0, [r8] if( extend_size >= heap->min_block_size ) { a000ee4c: e5943014 ldr r3, [r4, #20] a000ee50: e1500003 cmp r0, r3 a000ee54: 2a000001 bcs a000ee60 <_Heap_Extend+0x88> a000ee58: e1a00005 mov r0, r5 <== NOT EXECUTED a000ee5c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; a000ee60: e5961004 ldr r1, [r6, #4] Heap_Block *const new_last_block = _Heap_Block_at( last_block, extend_size ); _Heap_Block_set_size( last_block, extend_size ); new_last_block->size_and_flag = a000ee64: e5942020 ldr r2, [r4, #32] RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at( const Heap_Block *block, uintptr_t offset ) { return (Heap_Block *) ((uintptr_t) block + offset); a000ee68: e0803006 add r3, r0, r6 uintptr_t size ) { uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED; block->size_and_flag = size | flag; a000ee6c: e2011001 and r1, r1, #1 a000ee70: e0632002 rsb r2, r3, r2 a000ee74: e1801001 orr r1, r0, r1 a000ee78: e3822001 orr r2, r2, #1 a000ee7c: e5861004 str r1, [r6, #4] a000ee80: e5832004 str r2, [r3, #4] | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; a000ee84: e594702c ldr r7, [r4, #44] ; 0x2c ++stats->used_blocks; a000ee88: e5941040 ldr r1, [r4, #64] ; 0x40 --stats->frees; /* Do not count subsequent call as actual free() */ a000ee8c: e5942050 ldr r2, [r4, #80] ; 0x50 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; a000ee90: e0870000 add r0, r7, r0 ++stats->used_blocks; a000ee94: e2811001 add r1, r1, #1 --stats->frees; /* Do not count subsequent call as actual free() */ a000ee98: e2422001 sub r2, r2, #1 | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; /* Statistics */ stats->size += extend_size; a000ee9c: e584002c str r0, [r4, #44] ; 0x2c ++stats->used_blocks; a000eea0: e5841040 str r1, [r4, #64] ; 0x40 new_last_block->size_and_flag = ((uintptr_t) heap->first_block - (uintptr_t) new_last_block) | HEAP_PREV_BLOCK_USED; heap->last_block = new_last_block; a000eea4: e5843024 str r3, [r4, #36] ; 0x24 /* Statistics */ stats->size += extend_size; ++stats->used_blocks; --stats->frees; /* Do not count subsequent call as actual free() */ a000eea8: e5842050 str r2, [r4, #80] ; 0x50 _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( last_block )); a000eeac: e1a00004 mov r0, r4 a000eeb0: e2861008 add r1, r6, #8 a000eeb4: ebffe9f0 bl a000967c <_Heap_Free> a000eeb8: e1a00005 mov r0, r5 } return HEAP_EXTEND_SUCCESSFUL; } a000eebc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} a0006004 <_Objects_Set_name>: bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { a0006004: e92d40f0 push {r4, r5, r6, r7, lr} a0006008: e1a06000 mov r6, r0 a000600c: e1a05001 mov r5, r1 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a0006010: e1a00002 mov r0, r2 a0006014: e1d613ba ldrh r1, [r6, #58] ; 0x3a bool _Objects_Set_name( Objects_Information *information, Objects_Control *the_object, const char *name ) { a0006018: e1a07002 mov r7, r2 size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a000601c: eb00234e bl a000ed5c #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { a0006020: e5d63038 ldrb r3, [r6, #56] ; 0x38 { size_t length; const char *s; s = name; length = strnlen( name, information->name_length ); a0006024: e1a04000 mov r4, r0 #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES) if ( information->is_string ) { a0006028: e3530000 cmp r3, #0 a000602c: 0a000014 beq a0006084 <_Objects_Set_name+0x80> char *d; d = _Workspace_Allocate( length + 1 ); a0006030: e2800001 add r0, r0, #1 a0006034: eb000699 bl a0007aa0 <_Workspace_Allocate> if ( !d ) a0006038: e2506000 subs r6, r0, #0 a000603c: 1a000001 bne a0006048 <_Objects_Set_name+0x44> a0006040: e1a00006 mov r0, r6 <== NOT EXECUTED a0006044: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED return false; if ( the_object->name.name_p ) { a0006048: e595000c ldr r0, [r5, #12] a000604c: e3500000 cmp r0, #0 a0006050: 0a000002 beq a0006060 <_Objects_Set_name+0x5c> _Workspace_Free( (void *)the_object->name.name_p ); a0006054: eb000697 bl a0007ab8 <_Workspace_Free> the_object->name.name_p = NULL; a0006058: e3a03000 mov r3, #0 a000605c: e585300c str r3, [r5, #12] } strncpy( d, name, length ); a0006060: e1a01007 mov r1, r7 a0006064: e1a00006 mov r0, r6 a0006068: e1a02004 mov r2, r4 a000606c: eb002300 bl a000ec74 d[length] = '\0'; a0006070: e3a03000 mov r3, #0 a0006074: e7c63004 strb r3, [r6, r4] the_object->name.name_p = d; a0006078: e3a00001 mov r0, #1 a000607c: e585600c str r6, [r5, #12] a0006080: e8bd80f0 pop {r4, r5, r6, r7, pc} } else #endif { the_object->name.name_u32 = _Objects_Build_name( a0006084: e3500001 cmp r0, #1 a0006088: e5d70000 ldrb r0, [r7] a000608c: 9a00000e bls a00060cc <_Objects_Set_name+0xc8> a0006090: e5d71001 ldrb r1, [r7, #1] a0006094: e3540002 cmp r4, #2 a0006098: e1a01801 lsl r1, r1, #16 a000609c: 9a00000b bls a00060d0 <_Objects_Set_name+0xcc> a00060a0: e5d72002 ldrb r2, [r7, #2] a00060a4: e3540003 cmp r4, #3 a00060a8: 85d73003 ldrbhi r3, [r7, #3] a00060ac: e1a02402 lsl r2, r2, #8 a00060b0: 9a000007 bls a00060d4 <_Objects_Set_name+0xd0> a00060b4: e1811c00 orr r1, r1, r0, lsl #24 a00060b8: e1812002 orr r2, r1, r2 a00060bc: e1823003 orr r3, r2, r3 a00060c0: e585300c str r3, [r5, #12] a00060c4: e3a00001 mov r0, #1 ); } return true; } a00060c8: e8bd80f0 pop {r4, r5, r6, r7, pc} d[length] = '\0'; the_object->name.name_p = d; } else #endif { the_object->name.name_u32 = _Objects_Build_name( a00060cc: e3a01602 mov r1, #2097152 ; 0x200000 a00060d0: e3a02a02 mov r2, #8192 ; 0x2000 a00060d4: e3a03020 mov r3, #32 a00060d8: eafffff5 b a00060b4 <_Objects_Set_name+0xb0> a00051c4 <_POSIX_Condition_variables_Wait_support>: pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { a00051c4: e92d45f1 push {r0, r4, r5, r6, r7, r8, sl, lr} a00051c8: e1a04001 mov r4, r1 a00051cc: e1a06000 mov r6, r0 register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { a00051d0: e1a0100d mov r1, sp a00051d4: e1a00004 mov r0, r4 pthread_cond_t *cond, pthread_mutex_t *mutex, Watchdog_Interval timeout, bool already_timedout ) { a00051d8: e1a08002 mov r8, r2 a00051dc: e20370ff and r7, r3, #255 ; 0xff register POSIX_Condition_variables_Control *the_cond; Objects_Locations location; int status; int mutex_status; if ( !_POSIX_Mutex_Get( mutex, &location ) ) { a00051e0: eb000071 bl a00053ac <_POSIX_Mutex_Get> a00051e4: e3500000 cmp r0, #0 a00051e8: 0a000032 beq a00052b8 <_POSIX_Condition_variables_Wait_support+0xf4> */ RTEMS_INLINE_ROUTINE void _Thread_Unnest_dispatch( void ) { RTEMS_COMPILER_MEMORY_BARRIER(); _Thread_Dispatch_disable_level -= 1; a00051ec: e59f30d0 ldr r3, [pc, #208] ; a00052c4 <_POSIX_Condition_variables_Wait_support+0x100> return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); a00051f0: e1a0100d mov r1, sp a00051f4: e1a00006 mov r0, r6 a00051f8: e5932000 ldr r2, [r3] a00051fc: e2422001 sub r2, r2, #1 a0005200: e5832000 str r2, [r3] a0005204: ebffff7b bl a0004ff8 <_POSIX_Condition_variables_Get> switch ( location ) { a0005208: e59d3000 ldr r3, [sp] return EINVAL; } _Thread_Unnest_dispatch(); the_cond = _POSIX_Condition_variables_Get( cond, &location ); a000520c: e1a0a000 mov sl, r0 switch ( location ) { a0005210: e3530000 cmp r3, #0 a0005214: 1a000027 bne a00052b8 <_POSIX_Condition_variables_Wait_support+0xf4> case OBJECTS_LOCAL: if ( the_cond->Mutex && ( the_cond->Mutex != *mutex ) ) { a0005218: e5903014 ldr r3, [r0, #20] a000521c: e3530000 cmp r3, #0 a0005220: 0a000004 beq a0005238 <_POSIX_Condition_variables_Wait_support+0x74> a0005224: e5942000 ldr r2, [r4] a0005228: e1530002 cmp r3, r2 a000522c: 0a000001 beq a0005238 <_POSIX_Condition_variables_Wait_support+0x74> _Thread_Enable_dispatch(); a0005230: eb000bc3 bl a0008144 <_Thread_Enable_dispatch> a0005234: ea00001f b a00052b8 <_POSIX_Condition_variables_Wait_support+0xf4> return EINVAL; } (void) pthread_mutex_unlock( mutex ); a0005238: e1a00004 mov r0, r4 a000523c: eb0000e3 bl a00055d0 _Thread_Enable_dispatch(); return EINVAL; } */ if ( !already_timedout ) { a0005240: e3570000 cmp r7, #0 a0005244: 1a000015 bne a00052a0 <_POSIX_Condition_variables_Wait_support+0xdc> the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; a0005248: e59f5078 ldr r5, [pc, #120] ; a00052c8 <_POSIX_Condition_variables_Wait_support+0x104> return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; a000524c: e5941000 ldr r1, [r4] _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; a0005250: e28a2018 add r2, sl, #24 if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; a0005254: e5953000 ldr r3, [r5] return EINVAL; } */ if ( !already_timedout ) { the_cond->Mutex = *mutex; a0005258: e58a1014 str r1, [sl, #20] RTEMS_INLINE_ROUTINE void _Thread_queue_Enter_critical_section ( Thread_queue_Control *the_thread_queue ) { the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a000525c: e3a00001 mov r0, #1 _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; a0005260: e5837034 str r7, [r3, #52] ; 0x34 _Thread_Executing->Wait.queue = &the_cond->Wait_queue; _Thread_Executing->Wait.id = *cond; a0005264: e5961000 ldr r1, [r6] if ( !already_timedout ) { the_cond->Mutex = *mutex; _Thread_queue_Enter_critical_section( &the_cond->Wait_queue ); _Thread_Executing->Wait.return_code = 0; _Thread_Executing->Wait.queue = &the_cond->Wait_queue; a0005268: e5832044 str r2, [r3, #68] ; 0x44 a000526c: e58a0048 str r0, [sl, #72] ; 0x48 _Thread_Executing->Wait.id = *cond; a0005270: e5831020 str r1, [r3, #32] _Thread_queue_Enqueue( &the_cond->Wait_queue, timeout ); a0005274: e1a00002 mov r0, r2 a0005278: e1a01008 mov r1, r8 a000527c: e59f2048 ldr r2, [pc, #72] ; a00052cc <_POSIX_Condition_variables_Wait_support+0x108> a0005280: eb000ceb bl a0008634 <_Thread_queue_Enqueue_with_handler> _Thread_Enable_dispatch(); a0005284: eb000bae bl a0008144 <_Thread_Enable_dispatch> /* * Switch ourself out because we blocked as a result of the * _Thread_queue_Enqueue. */ status = _Thread_Executing->Wait.return_code; a0005288: e5953000 ldr r3, [r5] a000528c: e5935034 ldr r5, [r3, #52] ; 0x34 if ( status && status != ETIMEDOUT ) a0005290: e3550074 cmp r5, #116 ; 0x74 a0005294: 13550000 cmpne r5, #0 a0005298: 0a000002 beq a00052a8 <_POSIX_Condition_variables_Wait_support+0xe4> a000529c: ea000006 b a00052bc <_POSIX_Condition_variables_Wait_support+0xf8> <== NOT EXECUTED return status; } else { _Thread_Enable_dispatch(); a00052a0: eb000ba7 bl a0008144 <_Thread_Enable_dispatch> a00052a4: e3a05074 mov r5, #116 ; 0x74 /* * When we get here the dispatch disable level is 0. */ mutex_status = pthread_mutex_lock( mutex ); a00052a8: e1a00004 mov r0, r4 a00052ac: eb0000a8 bl a0005554 if ( mutex_status ) a00052b0: e3500000 cmp r0, #0 a00052b4: 0a000000 beq a00052bc <_POSIX_Condition_variables_Wait_support+0xf8> a00052b8: e3a05016 mov r5, #22 case OBJECTS_ERROR: break; } return EINVAL; } a00052bc: e1a00005 mov r0, r5 a00052c0: e8bd85f8 pop {r3, r4, r5, r6, r7, r8, sl, pc} a00052c4: a001c68c .word 0xa001c68c a00052c8: a001c740 .word 0xa001c740 a00052cc: a00089e0 .word 0xa00089e0 a00065ec <_Thread_queue_Enqueue_priority>: Priority_Control priority; States_Control block_state; _Chain_Initialize_empty( &the_thread->Wait.Block2n ); priority = the_thread->current_priority; a00065ec: e5913014 ldr r3, [r1, #20] Thread_blocking_operation_States _Thread_queue_Enqueue_priority ( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread, ISR_Level *level_p ) { a00065f0: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); a00065f4: e281503c add r5, r1, #60 ; 0x3c a00065f8: e5815038 str r5, [r1, #56] ; 0x38 the_chain->permanent_null = NULL; a00065fc: e3a05000 mov r5, #0 the_chain->last = _Chain_Head(the_chain); a0006600: e281c038 add ip, r1, #56 ; 0x38 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 ) ) a0006604: 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 ]; a0006608: 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; a000660c: e581503c str r5, [r1, #60] ; 0x3c a0006610: e285500c add r5, r5, #12 the_chain->last = _Chain_Head(the_chain); a0006614: e581c040 str ip, [r1, #64] ; 0x40 block_state = the_thread_queue->state; a0006618: 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 ]; a000661c: 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; a0006620: 159f8158 ldrne r8, [pc, #344] ; a0006780 <_Thread_queue_Enqueue_priority+0x194> 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 ) ) a0006624: 1a000023 bne a00066b8 <_Thread_queue_Enqueue_priority+0xcc> */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a0006628: e28c8004 add r8, ip, #4 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a000662c: e10f5000 mrs r5, CPSR a0006630: e3854080 orr r4, r5, #128 ; 0x80 a0006634: 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; a0006638: e3e06000 mvn r6, #0 a000663c: e59c4000 ldr r4, [ip] while ( !_Chain_Is_tail( header, (Chain_Node *)search_thread ) ) { a0006640: ea00000b b a0006674 <_Thread_queue_Enqueue_priority+0x88> search_priority = search_thread->current_priority; a0006644: e5946014 ldr r6, [r4, #20] if ( priority <= search_priority ) a0006648: e1530006 cmp r3, r6 a000664c: 9a00000a bls a000667c <_Thread_queue_Enqueue_priority+0x90> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( a0006650: e10fa000 mrs sl, CPSR a0006654: e129f005 msr CPSR_fc, r5 a0006658: 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) ) { a000665c: e594a010 ldr sl, [r4, #16] a0006660: e117000a tst r7, sl a0006664: 1a000001 bne a0006670 <_Thread_queue_Enqueue_priority+0x84> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0006668: e129f005 msr CPSR_fc, r5 <== NOT EXECUTED a000666c: eaffffee b a000662c <_Thread_queue_Enqueue_priority+0x40> <== NOT EXECUTED _ISR_Enable( level ); goto restart_forward_search; } search_thread = (Thread_Control *)search_thread->Object.Node.next; a0006670: 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 ) ) { a0006674: e1540008 cmp r4, r8 a0006678: 1afffff1 bne a0006644 <_Thread_queue_Enqueue_priority+0x58> } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != a000667c: 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 ) ) { a0006680: e1a0c005 mov ip, r5 } search_thread = (Thread_Control *)search_thread->Object.Node.next; } if ( the_thread_queue->sync_state != a0006684: e3570001 cmp r7, #1 a0006688: 1a000039 bne a0006774 <_Thread_queue_Enqueue_priority+0x188> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) a000668c: 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; a0006690: e3a03000 mov r3, #0 a0006694: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) a0006698: 0a00002b beq a000674c <_Thread_queue_Enqueue_priority+0x160> goto equal_priority; search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; a000669c: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; a00066a0: e5814000 str r4, [r1] the_node->previous = previous_node; previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; a00066a4: e5810044 str r0, [r1, #68] ; 0x44 search_node = (Chain_Node *) search_thread; previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; a00066a8: e5813004 str r3, [r1, #4] previous_node->next = the_node; a00066ac: e5831000 str r1, [r3] search_node->previous = the_node; a00066b0: e5841004 str r1, [r4, #4] the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); a00066b4: ea000022 b a0006744 <_Thread_queue_Enqueue_priority+0x158> return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; restart_reverse_search: search_priority = PRIORITY_MAXIMUM + 1; a00066b8: e5d86000 ldrb r6, [r8] a00066bc: e2866001 add r6, r6, #1 static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a00066c0: e10f5000 mrs r5, CPSR a00066c4: e3854080 orr r4, r5, #128 ; 0x80 a00066c8: e129f004 msr CPSR_fc, r4 _ISR_Disable( level ); search_thread = (Thread_Control *) header->last; a00066cc: e59c4008 ldr r4, [ip, #8] while ( !_Chain_Is_head( header, (Chain_Node *)search_thread ) ) { a00066d0: ea00000b b a0006704 <_Thread_queue_Enqueue_priority+0x118> search_priority = search_thread->current_priority; a00066d4: e5946014 ldr r6, [r4, #20] if ( priority >= search_priority ) a00066d8: e1530006 cmp r3, r6 a00066dc: 2a00000a bcs a000670c <_Thread_queue_Enqueue_priority+0x120> static inline void arm_interrupt_flash( uint32_t level ) { uint32_t arm_switch_reg; asm volatile ( a00066e0: e10fa000 mrs sl, CPSR a00066e4: e129f005 msr CPSR_fc, r5 a00066e8: 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) ) { a00066ec: e594a010 ldr sl, [r4, #16] a00066f0: e117000a tst r7, sl a00066f4: 1a000001 bne a0006700 <_Thread_queue_Enqueue_priority+0x114> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a00066f8: e129f005 msr CPSR_fc, r5 a00066fc: eaffffed b a00066b8 <_Thread_queue_Enqueue_priority+0xcc> _ISR_Enable( level ); goto restart_reverse_search; } search_thread = (Thread_Control *) a0006700: 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 ) ) { a0006704: e154000c cmp r4, ip a0006708: 1afffff1 bne a00066d4 <_Thread_queue_Enqueue_priority+0xe8> } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != a000670c: 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 ) ) { a0006710: e1a0c005 mov ip, r5 } search_thread = (Thread_Control *) search_thread->Object.Node.previous; } if ( the_thread_queue->sync_state != a0006714: e3570001 cmp r7, #1 a0006718: 1a000015 bne a0006774 <_Thread_queue_Enqueue_priority+0x188> THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED ) goto synchronize; the_thread_queue->sync_state = THREAD_BLOCKING_OPERATION_SYNCHRONIZED; if ( priority == search_priority ) a000671c: 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; a0006720: e3a03000 mov r3, #0 a0006724: e5803030 str r3, [r0, #48] ; 0x30 if ( priority == search_priority ) a0006728: 0a000007 beq a000674c <_Thread_queue_Enqueue_priority+0x160> goto equal_priority; search_node = (Chain_Node *) search_thread; next_node = search_node->next; a000672c: e5943000 ldr r3, [r4] the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; a0006730: e5814004 str r4, [r1, #4] search_node->next = the_node; next_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; a0006734: e5810044 str r0, [r1, #68] ; 0x44 search_node = (Chain_Node *) search_thread; next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; a0006738: e5813000 str r3, [r1] the_node->previous = search_node; search_node->next = the_node; next_node->previous = the_node; a000673c: e5831004 str r1, [r3, #4] next_node = search_node->next; the_node = (Chain_Node *) the_thread; the_node->next = next_node; the_node->previous = search_node; search_node->next = the_node; a0006740: e5841000 str r1, [r4] a0006744: e129f005 msr CPSR_fc, r5 a0006748: ea000007 b a000676c <_Thread_queue_Enqueue_priority+0x180> a000674c: 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; a0006750: e5943004 ldr r3, [r4, #4] the_node = (Chain_Node *) the_thread; the_node->next = search_node; a0006754: e5814000 str r4, [r1] the_node->previous = previous_node; previous_node->next = the_node; search_node->previous = the_node; the_thread->Wait.queue = the_thread_queue; a0006758: e5810044 str r0, [r1, #68] ; 0x44 search_node = _Chain_Tail( &search_thread->Wait.Block2n ); previous_node = search_node->previous; the_node = (Chain_Node *) the_thread; the_node->next = search_node; the_node->previous = previous_node; a000675c: e5813004 str r3, [r1, #4] previous_node->next = the_node; a0006760: e5831000 str r1, [r3] search_node->previous = the_node; a0006764: e5841004 str r1, [r4, #4] a0006768: e129f00c msr CPSR_fc, ip a000676c: e3a00001 mov r0, #1 the_thread->Wait.queue = the_thread_queue; _ISR_Enable( level ); return THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED; a0006770: 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; a0006774: 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; a0006778: e582c000 str ip, [r2] return the_thread_queue->sync_state; } a000677c: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} a0006780: a00182f0 .word 0xa00182f0 a0013c40 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) { a0013c40: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} a0013c44: e24dd020 sub sp, sp, #32 a0013c48: e28d3014 add r3, sp, #20 a0013c4c: 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; a0013c50: e3a09000 mov r9, #0 */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a0013c54: e283a004 add sl, r3, #4 a0013c58: 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); a0013c5c: e58d301c str r3, [sp, #28] static void _Timer_server_Stop_interval_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog ); a0013c60: e2802008 add r2, r0, #8 static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); a0013c64: 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 ) { a0013c68: e1a04000 mov r4, r0 */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); a0013c6c: e58da014 str sl, [sp, #20] the_chain->permanent_null = NULL; a0013c70: e58d9018 str r9, [sp, #24] */ RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty( Chain_Control *the_chain ) { the_chain->first = _Chain_Tail(the_chain); a0013c74: e58d8008 str r8, [sp, #8] the_chain->permanent_null = NULL; a0013c78: e58d900c str r9, [sp, #12] the_chain->last = _Chain_Head(the_chain); a0013c7c: 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 ); a0013c80: 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 ); a0013c84: 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 ); a0013c88: e58d2004 str r2, [sp, #4] static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); a0013c8c: 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; a0013c90: e28d2014 add r2, sp, #20 a0013c94: 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; a0013c98: e59f216c ldr r2, [pc, #364] ; a0013e0c <_Timer_server_Body+0x1cc> */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a0013c9c: 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; a0013ca0: e5923000 ldr r3, [r2] /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; a0013ca4: e594103c ldr r1, [r4, #60] ; 0x3c watchdogs->last_snapshot = snapshot; _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a0013ca8: e1a02005 mov r2, r5 /* * We assume adequate unsigned arithmetic here. */ Watchdog_Interval delta = snapshot - watchdogs->last_snapshot; watchdogs->last_snapshot = snapshot; a0013cac: e584303c str r3, [r4, #60] ; 0x3c _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain ); a0013cb0: e0611003 rsb r1, r1, r3 a0013cb4: eb00106f bl a0017e78 <_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(); a0013cb8: e59f3150 ldr r3, [pc, #336] ; a0013e10 <_Timer_server_Body+0x1d0> Watchdog_Interval last_snapshot = watchdogs->last_snapshot; a0013cbc: 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(); a0013cc0: 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 ) { a0013cc4: e1560002 cmp r6, r2 a0013cc8: 9a000004 bls a0013ce0 <_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 ); a0013ccc: e0621006 rsb r1, r2, r6 a0013cd0: e1a00007 mov r0, r7 a0013cd4: e1a02005 mov r2, r5 a0013cd8: eb001066 bl a0017e78 <_Watchdog_Adjust_to_chain> a0013cdc: ea000004 b a0013cf4 <_Timer_server_Body+0xb4> } else if ( snapshot < last_snapshot ) { a0013ce0: 2a000003 bcs a0013cf4 <_Timer_server_Body+0xb4> /* * 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 ); a0013ce4: e0662002 rsb r2, r6, r2 a0013ce8: e1a00007 mov r0, r7 a0013cec: e3a01001 mov r1, #1 a0013cf0: eb001038 bl a0017dd8 <_Watchdog_Adjust> } watchdogs->last_snapshot = snapshot; a0013cf4: 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 ); a0013cf8: e5940078 ldr r0, [r4, #120] ; 0x78 a0013cfc: eb00023f bl a0014600 <_Chain_Get> if ( timer == NULL ) { a0013d00: e2501000 subs r1, r0, #0 a0013d04: 0a00000a beq a0013d34 <_Timer_server_Body+0xf4> static void _Timer_server_Insert_timer( Timer_server_Control *ts, Timer_Control *timer ) { if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) { a0013d08: e5913038 ldr r3, [r1, #56] ; 0x38 a0013d0c: e3530001 cmp r3, #1 _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); a0013d10: 02811010 addeq r1, r1, #16 a0013d14: 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 ) { a0013d18: 0a000003 beq a0013d2c <_Timer_server_Body+0xec> _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker ); } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) { a0013d1c: e3530003 cmp r3, #3 a0013d20: 1afffff4 bne a0013cf8 <_Timer_server_Body+0xb8> _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker ); a0013d24: e2811010 add r1, r1, #16 a0013d28: e1a00007 mov r0, r7 a0013d2c: eb00107e bl a0017f2c <_Watchdog_Insert> a0013d30: eafffff0 b a0013cf8 <_Timer_server_Body+0xb8> static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0013d34: e10f3000 mrs r3, CPSR a0013d38: e3832080 orr r2, r3, #128 ; 0x80 a0013d3c: e129f002 msr CPSR_fc, r2 * body loop. */ _Timer_server_Process_insertions( ts ); _ISR_Disable( level ); if ( _Chain_Is_empty( insert_chain ) ) { a0013d40: e59d2014 ldr r2, [sp, #20] a0013d44: e152000a cmp r2, sl a0013d48: 1a000005 bne a0013d64 <_Timer_server_Body+0x124> ts->insert_chain = NULL; a0013d4c: e5841078 str r1, [r4, #120] ; 0x78 static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0013d50: 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 ) ) { a0013d54: e59d3008 ldr r3, [sp, #8] a0013d58: e1530008 cmp r3, r8 a0013d5c: 1a000002 bne a0013d6c <_Timer_server_Body+0x12c> a0013d60: ea000015 b a0013dbc <_Timer_server_Body+0x17c> a0013d64: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0013d68: eaffffca b a0013c98 <_Timer_server_Body+0x58> <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0013d6c: e10f2000 mrs r2, CPSR a0013d70: e3823080 orr r3, r2, #128 ; 0x80 a0013d74: e129f003 msr CPSR_fc, r3 */ RTEMS_INLINE_ROUTINE bool _Chain_Is_empty( Chain_Control *the_chain ) { return (the_chain->first == _Chain_Tail(the_chain)); a0013d78: e59d3008 ldr r3, [sp, #8] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected( Chain_Control *the_chain ) { if ( !_Chain_Is_empty(the_chain)) a0013d7c: e1530008 cmp r3, r8 a0013d80: 0a00000b beq a0013db4 <_Timer_server_Body+0x174> { Chain_Node *return_node; Chain_Node *new_first; return_node = the_chain->first; new_first = return_node->next; a0013d84: 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 ) { a0013d88: e3530000 cmp r3, #0 the_chain->first = new_first; a0013d8c: e58d1008 str r1, [sp, #8] new_first->previous = _Chain_Head(the_chain); a0013d90: e5815004 str r5, [r1, #4] a0013d94: 0a000006 beq a0013db4 <_Timer_server_Body+0x174> watchdog->state = WATCHDOG_INACTIVE; a0013d98: e5839008 str r9, [r3, #8] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0013d9c: 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 ); a0013da0: e5930020 ldr r0, [r3, #32] a0013da4: e5931024 ldr r1, [r3, #36] ; 0x24 a0013da8: e1a0e00f mov lr, pc a0013dac: e593f01c ldr pc, [r3, #28] } a0013db0: eaffffed b a0013d6c <_Timer_server_Body+0x12c> a0013db4: e129f002 msr CPSR_fc, r2 a0013db8: eaffffb4 b a0013c90 <_Timer_server_Body+0x50> a0013dbc: e59f3050 ldr r3, [pc, #80] ; a0013e14 <_Timer_server_Body+0x1d4> } else { ts->active = false; a0013dc0: e5c4907c strb r9, [r4, #124] ; 0x7c a0013dc4: e5932000 ldr r2, [r3] a0013dc8: e2822001 add r2, r2, #1 a0013dcc: e5832000 str r2, [r3] /* * Block until there is something to do. */ _Thread_Disable_dispatch(); _Thread_Set_state( ts->thread, STATES_DELAYING ); a0013dd0: e3a01008 mov r1, #8 a0013dd4: e5940000 ldr r0, [r4] a0013dd8: eb000d9e bl a0017458 <_Thread_Set_state> _Timer_server_Reset_interval_system_watchdog( ts ); a0013ddc: e1a00004 mov r0, r4 a0013de0: ebffff6a bl a0013b90 <_Timer_server_Reset_interval_system_watchdog> _Timer_server_Reset_tod_system_watchdog( ts ); a0013de4: e1a00004 mov r0, r4 a0013de8: ebffff7e bl a0013be8 <_Timer_server_Reset_tod_system_watchdog> _Thread_Enable_dispatch(); a0013dec: eb000af9 bl a00169d8 <_Thread_Enable_dispatch> ts->active = true; a0013df0: e3a03001 mov r3, #1 a0013df4: 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 ); a0013df8: e59d0004 ldr r0, [sp, #4] a0013dfc: eb0010a3 bl a0018090 <_Watchdog_Remove> static void _Timer_server_Stop_tod_system_watchdog( Timer_server_Control *ts ) { _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog ); a0013e00: e59d0000 ldr r0, [sp] a0013e04: eb0010a1 bl a0018090 <_Watchdog_Remove> a0013e08: eaffffa0 b a0013c90 <_Timer_server_Body+0x50> a0013e0c: a0039364 .word 0xa0039364 a0013e10: a0039294 .word 0xa0039294 a0013e14: a003920c .word 0xa003920c a0017964 <_exit>: /* * If the toolset uses init/fini sections, then we need to * run the global destructors now. */ #if defined(__USE_INIT_FINI__) FINI_SYMBOL(); a0017964: e1a04000 mov r4, r0 a0017968: eb000228 bl a0018210 <___DTOR_END__> * 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(); a001796c: ebffffdf bl a00178f0 rtems_shutdown_executive(status); a0017970: e1a00004 mov r0, r4 a0017974: eb00003b bl a0017a68 a0017978: eafffffe b a0017978 <_exit+0x14> <== NOT EXECUTED a0033a2c <_fcntl_r>: int fd, int cmd, int arg ) { return fcntl( fd, cmd, arg ); a0033a2c: e1a00001 mov r0, r1 <== NOT EXECUTED a0033a30: e1a01002 mov r1, r2 <== NOT EXECUTED a0033a34: e1a02003 mov r2, r3 <== NOT EXECUTED a0033a38: eaffff8c b a0033870 <== NOT EXECUTED a000b448 <_getpid_r>: pid_t _getpid_r( struct _reent *ptr __attribute__((unused)) ) { return getpid(); } a000b448: e3a00001 mov r0, #1 <== NOT EXECUTED a000b44c: e12fff1e bx lr <== NOT EXECUTED a0008928 <_gettimeofday>: int _gettimeofday( struct timeval *tp, struct timezone *tzp ) { return gettimeofday( tp, tzp ); a0008928: eaffffe8 b a00088d0 <== NOT EXECUTED a0022f88 <_link_r>: struct _reent *ptr __attribute__((unused)), const char *existing, const char *new ) { return link( existing, new ); a0022f88: e1a00001 mov r0, r1 <== NOT EXECUTED a0022f8c: e1a01002 mov r1, r2 <== NOT EXECUTED a0022f90: eaffff70 b a0022d58 <== NOT EXECUTED a0023184 <_lstat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); a0023184: e1a00001 mov r0, r1 <== NOT EXECUTED a0023188: e1a01002 mov r1, r2 <== NOT EXECUTED a002318c: eaffffc4 b a00230a4 <== NOT EXECUTED a0017a4c <_realloc_r>: struct _reent *ignored __attribute__((unused)), void *ptr, size_t size ) { return realloc( ptr, size ); a0017a4c: e1a00001 mov r0, r1 <== NOT EXECUTED a0017a50: e1a01002 mov r1, r2 <== NOT EXECUTED a0017a54: ea00000e b a0017a94 <== NOT EXECUTED a0052d98 <_rename_r>: int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { a0052d98: 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 ); a0052d9c: e1a00001 mov r0, r1 <== NOT EXECUTED int _rename_r( struct _reent *ptr __attribute__((unused)), const char *old, const char *new ) { a0052da0: e24dd044 sub sp, sp, #68 ; 0x44 <== NOT EXECUTED a0052da4: e1a05001 mov r5, r1 <== NOT EXECUTED a0052da8: 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 ); a0052dac: ebfec877 bl a0004f90 <== NOT EXECUTED if ( old_parent_pathlen == 0 ) a0052db0: e2507000 subs r7, r0, #0 <== NOT EXECUTED a0052db4: 1a000015 bne a0052e10 <_rename_r+0x78> <== NOT EXECUTED rtems_filesystem_get_start_loc( old, &i, &old_parent_loc ); a0052db8: e5d53000 ldrb r3, [r5] <== NOT EXECUTED a0052dbc: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED a0052dc0: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED a0052dc4: 0a000001 beq a0052dd0 <_rename_r+0x38> <== NOT EXECUTED a0052dc8: e3530000 cmp r3, #0 <== NOT EXECUTED a0052dcc: 1a000005 bne a0052de8 <_rename_r+0x50> <== NOT EXECUTED a0052dd0: e59f3380 ldr r3, [pc, #896] ; a0053158 <_rename_r+0x3c0> <== NOT EXECUTED a0052dd4: e28dc018 add ip, sp, #24 <== NOT EXECUTED a0052dd8: e3a04000 mov r4, #0 <== NOT EXECUTED a0052ddc: e593e000 ldr lr, [r3] <== NOT EXECUTED a0052de0: e28ee018 add lr, lr, #24 <== NOT EXECUTED a0052de4: ea000004 b a0052dfc <_rename_r+0x64> <== NOT EXECUTED a0052de8: e59f3368 ldr r3, [pc, #872] ; a0053158 <_rename_r+0x3c0> <== NOT EXECUTED a0052dec: e28dc018 add ip, sp, #24 <== NOT EXECUTED a0052df0: e1a04007 mov r4, r7 <== NOT EXECUTED a0052df4: e593e000 ldr lr, [r3] <== NOT EXECUTED a0052df8: e28ee004 add lr, lr, #4 <== NOT EXECUTED a0052dfc: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a0052e00: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a0052e04: e59e3000 ldr r3, [lr] <== NOT EXECUTED a0052e08: e58c3000 str r3, [ip] <== NOT EXECUTED a0052e0c: ea000009 b a0052e38 <_rename_r+0xa0> <== NOT EXECUTED else { result = rtems_filesystem_evaluate_path( old, old_parent_pathlen, a0052e10: e3a0c000 mov ip, #0 <== NOT EXECUTED a0052e14: e1a00005 mov r0, r5 <== NOT EXECUTED a0052e18: e1a01007 mov r1, r7 <== NOT EXECUTED a0052e1c: e3a02002 mov r2, #2 <== NOT EXECUTED a0052e20: e28d3018 add r3, sp, #24 <== NOT EXECUTED a0052e24: e58dc000 str ip, [sp] <== NOT EXECUTED a0052e28: ebfec89e bl a00050a8 <== NOT EXECUTED RTEMS_LIBIO_PERMS_WRITE, &old_parent_loc, false ); if ( result != 0 ) a0052e2c: e3500000 cmp r0, #0 <== NOT EXECUTED a0052e30: 03a04001 moveq r4, #1 <== NOT EXECUTED a0052e34: 1a000025 bne a0052ed0 <_rename_r+0x138> <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; a0052e38: e28dc02c add ip, sp, #44 ; 0x2c <== NOT EXECUTED a0052e3c: e28de018 add lr, sp, #24 <== NOT EXECUTED a0052e40: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a0052e44: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a0052e48: e59e3000 ldr r3, [lr] <== NOT EXECUTED name = old + old_parent_pathlen; a0052e4c: e0855007 add r5, r5, r7 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a0052e50: e1a00005 mov r0, r5 <== NOT EXECUTED /* * Start from the parent to find the node that should be under it. */ old_loc = old_parent_loc; a0052e54: e58c3000 str r3, [ip] <== NOT EXECUTED name = old + old_parent_pathlen; a0052e58: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a0052e5c: ebffb3d2 bl a003fdac <== NOT EXECUTED a0052e60: e1a01000 mov r1, r0 <== NOT EXECUTED a0052e64: e1a00005 mov r0, r5 <== NOT EXECUTED a0052e68: ebfec83c bl a0004f60 <== NOT EXECUTED a0052e6c: e0855000 add r5, r5, r0 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), a0052e70: 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 ) ); a0052e74: e58d5040 str r5, [sp, #64] ; 0x40 <== NOT EXECUTED result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), a0052e78: ebffb3cb bl a003fdac <== NOT EXECUTED a0052e7c: e3a0c000 mov ip, #0 <== NOT EXECUTED a0052e80: e1a01000 mov r1, r0 <== NOT EXECUTED a0052e84: e1a0200c mov r2, ip <== NOT EXECUTED a0052e88: e1a00005 mov r0, r5 <== NOT EXECUTED a0052e8c: e28d302c add r3, sp, #44 ; 0x2c <== NOT EXECUTED a0052e90: e58dc000 str ip, [sp] <== NOT EXECUTED a0052e94: ebfec84d bl a0004fd0 <== NOT EXECUTED 0, &old_loc, false ); if ( result != 0 ) { a0052e98: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0052e9c: 0a00000d beq a0052ed8 <_rename_r+0x140> <== NOT EXECUTED if ( free_old_parentloc ) a0052ea0: e3540000 cmp r4, #0 <== NOT EXECUTED a0052ea4: 0a000007 beq a0052ec8 <_rename_r+0x130> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); a0052ea8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0052eac: e3530000 cmp r3, #0 <== NOT EXECUTED a0052eb0: 0a000004 beq a0052ec8 <_rename_r+0x130> <== NOT EXECUTED a0052eb4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0052eb8: e3530000 cmp r3, #0 <== NOT EXECUTED a0052ebc: 0a000001 beq a0052ec8 <_rename_r+0x130> <== NOT EXECUTED a0052ec0: e28d0018 add r0, sp, #24 <== NOT EXECUTED a0052ec4: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); a0052ec8: ebff992c bl a0039380 <__errno> <== NOT EXECUTED a0052ecc: e5805000 str r5, [r0] <== NOT EXECUTED a0052ed0: e3e06000 mvn r6, #0 <== NOT EXECUTED a0052ed4: ea00009c b a005314c <_rename_r+0x3b4> <== NOT EXECUTED /* * Get the parent of the new node we are renaming to. */ rtems_filesystem_get_start_loc( new, &i, &new_parent_loc ); a0052ed8: e5d63000 ldrb r3, [r6] <== NOT EXECUTED a0052edc: e353002f cmp r3, #47 ; 0x2f <== NOT EXECUTED a0052ee0: 1353005c cmpne r3, #92 ; 0x5c <== NOT EXECUTED a0052ee4: 13a07000 movne r7, #0 <== NOT EXECUTED a0052ee8: 03a07001 moveq r7, #1 <== NOT EXECUTED a0052eec: 0a000001 beq a0052ef8 <_rename_r+0x160> <== NOT EXECUTED a0052ef0: e3530000 cmp r3, #0 <== NOT EXECUTED a0052ef4: 1a000005 bne a0052f10 <_rename_r+0x178> <== NOT EXECUTED a0052ef8: e59f3258 ldr r3, [pc, #600] ; a0053158 <_rename_r+0x3c0> <== NOT EXECUTED a0052efc: e28dc004 add ip, sp, #4 <== NOT EXECUTED a0052f00: e3a07001 mov r7, #1 <== NOT EXECUTED a0052f04: e593e000 ldr lr, [r3] <== NOT EXECUTED a0052f08: e28ee018 add lr, lr, #24 <== NOT EXECUTED a0052f0c: ea000003 b a0052f20 <_rename_r+0x188> <== NOT EXECUTED a0052f10: e59f3240 ldr r3, [pc, #576] ; a0053158 <_rename_r+0x3c0> <== NOT EXECUTED a0052f14: e28dc004 add ip, sp, #4 <== NOT EXECUTED a0052f18: e593e000 ldr lr, [r3] <== NOT EXECUTED a0052f1c: e28ee004 add lr, lr, #4 <== NOT EXECUTED a0052f20: e8be000f ldm lr!, {r0, r1, r2, r3} <== NOT EXECUTED a0052f24: e8ac000f stmia ip!, {r0, r1, r2, r3} <== NOT EXECUTED a0052f28: e59e3000 ldr r3, [lr] <== NOT EXECUTED a0052f2c: e58c3000 str r3, [ip] <== NOT EXECUTED if ( !new_parent_loc.ops->evalformake_h ) { a0052f30: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0052f34: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0052f38: e3530000 cmp r3, #0 <== NOT EXECUTED a0052f3c: 0a00004c beq a0053074 <_rename_r+0x2dc> <== 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 ); a0052f40: e28d5004 add r5, sp, #4 <== NOT EXECUTED a0052f44: e0860007 add r0, r6, r7 <== NOT EXECUTED a0052f48: e1a01005 mov r1, r5 <== NOT EXECUTED a0052f4c: e28d2040 add r2, sp, #64 ; 0x40 <== NOT EXECUTED a0052f50: e12fff33 blx r3 <== NOT EXECUTED if ( result != 0 ) { a0052f54: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0052f58: 0a00001c beq a0052fd0 <_rename_r+0x238> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); a0052f5c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0052f60: e3530000 cmp r3, #0 <== NOT EXECUTED a0052f64: 0a000004 beq a0052f7c <_rename_r+0x1e4> <== NOT EXECUTED a0052f68: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0052f6c: e3530000 cmp r3, #0 <== NOT EXECUTED a0052f70: 0a000001 beq a0052f7c <_rename_r+0x1e4> <== NOT EXECUTED a0052f74: e1a00005 mov r0, r5 <== NOT EXECUTED a0052f78: e12fff33 blx r3 <== NOT EXECUTED if ( free_old_parentloc ) a0052f7c: e3540000 cmp r4, #0 <== NOT EXECUTED a0052f80: 0a000007 beq a0052fa4 <_rename_r+0x20c> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); a0052f84: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0052f88: e3530000 cmp r3, #0 <== NOT EXECUTED a0052f8c: 0a000004 beq a0052fa4 <_rename_r+0x20c> <== NOT EXECUTED a0052f90: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0052f94: e3530000 cmp r3, #0 <== NOT EXECUTED a0052f98: 0a000001 beq a0052fa4 <_rename_r+0x20c> <== NOT EXECUTED a0052f9c: e28d0018 add r0, sp, #24 <== NOT EXECUTED a0052fa0: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); a0052fa4: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED a0052fa8: e3530000 cmp r3, #0 <== NOT EXECUTED a0052fac: 0a000004 beq a0052fc4 <_rename_r+0x22c> <== NOT EXECUTED a0052fb0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0052fb4: e3530000 cmp r3, #0 <== NOT EXECUTED a0052fb8: 0a000001 beq a0052fc4 <_rename_r+0x22c> <== NOT EXECUTED a0052fbc: e28d002c add r0, sp, #44 ; 0x2c <== NOT EXECUTED a0052fc0: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( result ); a0052fc4: ebff98ed bl a0039380 <__errno> <== NOT EXECUTED a0052fc8: e5806000 str r6, [r0] <== NOT EXECUTED a0052fcc: eaffffbf b a0052ed0 <_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 ) { a0052fd0: e59d2014 ldr r2, [sp, #20] <== NOT EXECUTED a0052fd4: e59d1028 ldr r1, [sp, #40] ; 0x28 <== NOT EXECUTED a0052fd8: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0052fdc: e1510002 cmp r1, r2 <== NOT EXECUTED a0052fe0: 0a00001b beq a0053054 <_rename_r+0x2bc> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); a0052fe4: e3530000 cmp r3, #0 <== NOT EXECUTED a0052fe8: 0a000004 beq a0053000 <_rename_r+0x268> <== NOT EXECUTED a0052fec: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0052ff0: e3530000 cmp r3, #0 <== NOT EXECUTED a0052ff4: 0a000001 beq a0053000 <_rename_r+0x268> <== NOT EXECUTED a0052ff8: e1a00005 mov r0, r5 <== NOT EXECUTED a0052ffc: e12fff33 blx r3 <== NOT EXECUTED if ( free_old_parentloc ) a0053000: e3540000 cmp r4, #0 <== NOT EXECUTED a0053004: 0a000007 beq a0053028 <_rename_r+0x290> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); a0053008: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a005300c: e3530000 cmp r3, #0 <== NOT EXECUTED a0053010: 0a000004 beq a0053028 <_rename_r+0x290> <== NOT EXECUTED a0053014: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0053018: e3530000 cmp r3, #0 <== NOT EXECUTED a005301c: 0a000001 beq a0053028 <_rename_r+0x290> <== NOT EXECUTED a0053020: e28d0018 add r0, sp, #24 <== NOT EXECUTED a0053024: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); a0053028: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED a005302c: e3530000 cmp r3, #0 <== NOT EXECUTED a0053030: 0a000004 beq a0053048 <_rename_r+0x2b0> <== NOT EXECUTED a0053034: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0053038: e3530000 cmp r3, #0 <== NOT EXECUTED a005303c: 0a000001 beq a0053048 <_rename_r+0x2b0> <== NOT EXECUTED a0053040: e28d002c add r0, sp, #44 ; 0x2c <== NOT EXECUTED a0053044: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EXDEV ); a0053048: ebff98cc bl a0039380 <__errno> <== NOT EXECUTED a005304c: e3a03012 mov r3, #18 <== NOT EXECUTED a0053050: ea00001b b a00530c4 <_rename_r+0x32c> <== NOT EXECUTED } if ( !new_parent_loc.ops->rename_h ) { a0053054: e593c040 ldr ip, [r3, #64] ; 0x40 <== NOT EXECUTED a0053058: e35c0000 cmp ip, #0 <== NOT EXECUTED a005305c: 1a00001a bne a00530cc <_rename_r+0x334> <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); a0053060: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0053064: e3530000 cmp r3, #0 <== NOT EXECUTED a0053068: 0a000001 beq a0053074 <_rename_r+0x2dc> <== NOT EXECUTED a005306c: e1a00005 mov r0, r5 <== NOT EXECUTED a0053070: e12fff33 blx r3 <== NOT EXECUTED if ( free_old_parentloc ) a0053074: e3540000 cmp r4, #0 <== NOT EXECUTED a0053078: 0a000007 beq a005309c <_rename_r+0x304> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); a005307c: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0053080: e3530000 cmp r3, #0 <== NOT EXECUTED a0053084: 0a000004 beq a005309c <_rename_r+0x304> <== NOT EXECUTED a0053088: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a005308c: e3530000 cmp r3, #0 <== NOT EXECUTED a0053090: 0a000001 beq a005309c <_rename_r+0x304> <== NOT EXECUTED a0053094: e28d0018 add r0, sp, #24 <== NOT EXECUTED a0053098: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); a005309c: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED a00530a0: e3530000 cmp r3, #0 <== NOT EXECUTED a00530a4: 0a000004 beq a00530bc <_rename_r+0x324> <== NOT EXECUTED a00530a8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00530ac: e3530000 cmp r3, #0 <== NOT EXECUTED a00530b0: 0a000001 beq a00530bc <_rename_r+0x324> <== NOT EXECUTED a00530b4: e28d002c add r0, sp, #44 ; 0x2c <== NOT EXECUTED a00530b8: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00530bc: ebff98af bl a0039380 <__errno> <== NOT EXECUTED a00530c0: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00530c4: e5803000 str r3, [r0] <== NOT EXECUTED a00530c8: eaffff80 b a0052ed0 <_rename_r+0x138> <== NOT EXECUTED } result = (*new_parent_loc.ops->rename_h)( &old_parent_loc, &old_loc, &new_parent_loc, name ); a00530cc: e59d3040 ldr r3, [sp, #64] ; 0x40 <== NOT EXECUTED a00530d0: e28d0018 add r0, sp, #24 <== NOT EXECUTED a00530d4: e28d102c add r1, sp, #44 ; 0x2c <== NOT EXECUTED a00530d8: e1a02005 mov r2, r5 <== NOT EXECUTED a00530dc: e12fff3c blx ip <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); a00530e0: 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 ); a00530e4: e1a06000 mov r6, r0 <== NOT EXECUTED rtems_filesystem_freenode( &new_parent_loc ); a00530e8: e3530000 cmp r3, #0 <== NOT EXECUTED a00530ec: 0a000004 beq a0053104 <_rename_r+0x36c> <== NOT EXECUTED a00530f0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00530f4: e3530000 cmp r3, #0 <== NOT EXECUTED a00530f8: 0a000001 beq a0053104 <_rename_r+0x36c> <== NOT EXECUTED a00530fc: e1a00005 mov r0, r5 <== NOT EXECUTED a0053100: e12fff33 blx r3 <== NOT EXECUTED if ( free_old_parentloc ) a0053104: e3540000 cmp r4, #0 <== NOT EXECUTED a0053108: 0a000007 beq a005312c <_rename_r+0x394> <== NOT EXECUTED rtems_filesystem_freenode( &old_parent_loc ); a005310c: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0053110: e3530000 cmp r3, #0 <== NOT EXECUTED a0053114: 0a000004 beq a005312c <_rename_r+0x394> <== NOT EXECUTED a0053118: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a005311c: e3530000 cmp r3, #0 <== NOT EXECUTED a0053120: 0a000001 beq a005312c <_rename_r+0x394> <== NOT EXECUTED a0053124: e28d0018 add r0, sp, #24 <== NOT EXECUTED a0053128: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_freenode( &old_loc ); a005312c: e59d3038 ldr r3, [sp, #56] ; 0x38 <== NOT EXECUTED a0053130: e3530000 cmp r3, #0 <== NOT EXECUTED a0053134: 0a000004 beq a005314c <_rename_r+0x3b4> <== NOT EXECUTED a0053138: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a005313c: e3530000 cmp r3, #0 <== NOT EXECUTED a0053140: 0a000001 beq a005314c <_rename_r+0x3b4> <== NOT EXECUTED a0053144: e28d002c add r0, sp, #44 ; 0x2c <== NOT EXECUTED a0053148: e12fff33 blx r3 <== NOT EXECUTED return result; } a005314c: e1a00006 mov r0, r6 <== NOT EXECUTED a0053150: e28dd044 add sp, sp, #68 ; 0x44 <== NOT EXECUTED a0053154: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED a0053158: a00535c8 .word 0xa00535c8 a0006844 <_stat_r>: struct _reent *ptr __attribute__((unused)), const char *path, struct stat *buf ) { return _STAT_NAME( path, buf ); a0006844: e1a00001 mov r0, r1 <== NOT EXECUTED a0006848: e1a01002 mov r1, r2 <== NOT EXECUTED a000684c: eaffffc4 b a0006764 <== NOT EXECUTED a000c3ac <_unlink_r>: int _unlink_r( struct _reent *ptr __attribute__((unused)), const char *path ) { return unlink( path ); a000c3ac: e1a00001 mov r0, r1 <== NOT EXECUTED a000c3b0: eaffff64 b a000c148 <== NOT EXECUTED a0021b08 : #include int chdir( const char *pathname ) { a0021b08: e92d4030 push {r4, r5, lr} a0021b0c: e24dd018 sub sp, sp, #24 a0021b10: 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 ); a0021b14: eb0078a4 bl a003fdac /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( a0021b18: e28d4004 add r4, sp, #4 a0021b1c: e3a0c001 mov ip, #1 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); a0021b20: e1a01000 mov r1, r0 /* * Get the node where we wish to go. */ result = rtems_filesystem_evaluate_path( a0021b24: e1a0200c mov r2, ip a0021b28: e1a00005 mov r0, r5 a0021b2c: e1a03004 mov r3, r4 a0021b30: e58dc000 str ip, [sp] a0021b34: ebff8d5b bl a00050a8 pathname, strlen( pathname ), RTEMS_LIBIO_PERMS_SEARCH, &loc, true ); if ( result != 0 ) a0021b38: e3500000 cmp r0, #0 a0021b3c: 1a00000b bne a0021b70 /* * Verify you can change directory into this node. */ if ( !loc.ops->node_type_h ) { a0021b40: e59d2010 ldr r2, [sp, #16] a0021b44: e5923010 ldr r3, [r2, #16] a0021b48: e3530000 cmp r3, #0 a0021b4c: 1a000009 bne a0021b78 rtems_filesystem_freenode( &loc ); a0021b50: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0021b54: e3530000 cmp r3, #0 <== NOT EXECUTED a0021b58: 0a000001 beq a0021b64 <== NOT EXECUTED a0021b5c: e1a00004 mov r0, r4 <== NOT EXECUTED a0021b60: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0021b64: eb005e05 bl a0039380 <__errno> <== NOT EXECUTED a0021b68: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0021b6c: e5803000 str r3, [r0] a0021b70: e3e05000 mvn r5, #0 a0021b74: ea000021 b a0021c00 } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { a0021b78: e1a00004 mov r0, r4 a0021b7c: e12fff33 blx r3 a0021b80: e3500001 cmp r0, #1 a0021b84: 0a00000a beq a0021bb4 rtems_filesystem_freenode( &loc ); a0021b88: e59d3010 ldr r3, [sp, #16] a0021b8c: e3530000 cmp r3, #0 a0021b90: 0a000004 beq a0021ba8 a0021b94: e593301c ldr r3, [r3, #28] a0021b98: e3530000 cmp r3, #0 a0021b9c: 0a000001 beq a0021ba8 a0021ba0: e1a00004 mov r0, r4 a0021ba4: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( ENOTDIR ); a0021ba8: eb005df4 bl a0039380 <__errno> a0021bac: e3a03014 mov r3, #20 a0021bb0: eaffffed b a0021b6c } rtems_filesystem_freenode( &rtems_filesystem_current ); a0021bb4: e59f3050 ldr r3, [pc, #80] ; a0021c0c a0021bb8: e5930000 ldr r0, [r3] a0021bbc: e5903010 ldr r3, [r0, #16] a0021bc0: e3530000 cmp r3, #0 a0021bc4: 0a000004 beq a0021bdc a0021bc8: e593301c ldr r3, [r3, #28] a0021bcc: e3530000 cmp r3, #0 a0021bd0: 0a000001 beq a0021bdc a0021bd4: e2800004 add r0, r0, #4 a0021bd8: e12fff33 blx r3 rtems_filesystem_current = loc; a0021bdc: e59fc028 ldr ip, [pc, #40] ; a0021c0c a0021be0: e28d4004 add r4, sp, #4 a0021be4: e8b4000f ldm r4!, {r0, r1, r2, r3} a0021be8: e59cc000 ldr ip, [ip] a0021bec: e3a05000 mov r5, #0 a0021bf0: e28cc004 add ip, ip, #4 a0021bf4: e8ac000f stmia ip!, {r0, r1, r2, r3} a0021bf8: e5943000 ldr r3, [r4] a0021bfc: e58c3000 str r3, [ip] return 0; } a0021c00: e1a00005 mov r0, r5 a0021c04: e28dd018 add sp, sp, #24 a0021c08: e8bd8030 pop {r4, r5, pc} a0021c0c: a00535c8 .word 0xa00535c8 a0004dd0 : int chmod( const char *path, mode_t mode ) { a0004dd0: e92d4070 push {r4, r5, r6, lr} a0004dd4: e24dd018 sub sp, sp, #24 a0004dd8: e1a05001 mov r5, r1 a0004ddc: 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 ); a0004de0: eb00ebf1 bl a003fdac a0004de4: e28d4004 add r4, sp, #4 a0004de8: e1a01000 mov r1, r0 a0004dec: e3a0c001 mov ip, #1 a0004df0: e1a00006 mov r0, r6 a0004df4: e3a02000 mov r2, #0 a0004df8: e1a03004 mov r3, r4 a0004dfc: e58dc000 str ip, [sp] a0004e00: eb0000a8 bl a00050a8 if ( status != 0 ) a0004e04: e3500000 cmp r0, #0 a0004e08: 1a00000d bne a0004e44 return -1; if ( !loc.handlers ){ a0004e0c: e59d300c ldr r3, [sp, #12] a0004e10: e3530000 cmp r3, #0 a0004e14: 1a00000c bne a0004e4c rtems_filesystem_freenode( &loc ); a0004e18: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0004e1c: e3530000 cmp r3, #0 <== NOT EXECUTED a0004e20: 0a000004 beq a0004e38 <== NOT EXECUTED a0004e24: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0004e28: e3530000 cmp r3, #0 <== NOT EXECUTED a0004e2c: 0a000001 beq a0004e38 <== NOT EXECUTED a0004e30: e1a00004 mov r0, r4 <== NOT EXECUTED a0004e34: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EBADF ); a0004e38: eb00d150 bl a0039380 <__errno> <== NOT EXECUTED a0004e3c: e3a03009 mov r3, #9 <== NOT EXECUTED a0004e40: e5803000 str r3, [r0] <== NOT EXECUTED a0004e44: e3e05000 mvn r5, #0 a0004e48: ea000019 b a0004eb4 } if ( !loc.handlers->fchmod_h ){ a0004e4c: e593301c ldr r3, [r3, #28] a0004e50: e3530000 cmp r3, #0 a0004e54: 1a00000a bne a0004e84 rtems_filesystem_freenode( &loc ); a0004e58: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0004e5c: e3530000 cmp r3, #0 <== NOT EXECUTED a0004e60: 0a000004 beq a0004e78 <== NOT EXECUTED a0004e64: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0004e68: e3530000 cmp r3, #0 <== NOT EXECUTED a0004e6c: 0a000001 beq a0004e78 <== NOT EXECUTED a0004e70: e1a00004 mov r0, r4 <== NOT EXECUTED a0004e74: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0004e78: eb00d140 bl a0039380 <__errno> <== NOT EXECUTED a0004e7c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0004e80: eaffffee b a0004e40 <== NOT EXECUTED } result = (*loc.handlers->fchmod_h)( &loc, mode ); a0004e84: e1a01005 mov r1, r5 a0004e88: e1a00004 mov r0, r4 a0004e8c: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a0004e90: 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 ); a0004e94: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); a0004e98: e3530000 cmp r3, #0 a0004e9c: 0a000004 beq a0004eb4 a0004ea0: e593301c ldr r3, [r3, #28] a0004ea4: e3530000 cmp r3, #0 a0004ea8: 0a000001 beq a0004eb4 a0004eac: e1a00004 mov r0, r4 a0004eb0: e12fff33 blx r3 return result; } a0004eb4: e1a00005 mov r0, r5 a0004eb8: e28dd018 add sp, sp, #24 a0004ebc: e8bd8070 pop {r4, r5, r6, pc} a0021c10 : int chown( const char *path, uid_t owner, gid_t group ) { a0021c10: e92d40f0 push {r4, r5, r6, r7, lr} a0021c14: e1a01801 lsl r1, r1, #16 a0021c18: e1a02802 lsl r2, r2, #16 a0021c1c: e24dd018 sub sp, sp, #24 a0021c20: e1a06821 lsr r6, r1, #16 a0021c24: e1a05822 lsr r5, r2, #16 a0021c28: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if ( rtems_filesystem_evaluate_path( path, strlen( path ), 0x00, &loc, true ) ) a0021c2c: eb00785e bl a003fdac a0021c30: e28d4004 add r4, sp, #4 a0021c34: e1a01000 mov r1, r0 a0021c38: e3a0c001 mov ip, #1 a0021c3c: e1a00007 mov r0, r7 a0021c40: e3a02000 mov r2, #0 a0021c44: e1a03004 mov r3, r4 a0021c48: e58dc000 str ip, [sp] a0021c4c: ebff8d15 bl a00050a8 a0021c50: e3500000 cmp r0, #0 a0021c54: 1a00000b bne a0021c88 return -1; if ( !loc.ops->chown_h ) { a0021c58: e59d2010 ldr r2, [sp, #16] a0021c5c: e5923018 ldr r3, [r2, #24] a0021c60: e3530000 cmp r3, #0 a0021c64: 1a000009 bne a0021c90 rtems_filesystem_freenode( &loc ); a0021c68: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0021c6c: e3530000 cmp r3, #0 <== NOT EXECUTED a0021c70: 0a000001 beq a0021c7c <== NOT EXECUTED a0021c74: e1a00004 mov r0, r4 <== NOT EXECUTED a0021c78: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0021c7c: eb005dbf bl a0039380 <__errno> <== NOT EXECUTED a0021c80: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0021c84: e5803000 str r3, [r0] <== NOT EXECUTED a0021c88: e3e05000 mvn r5, #0 a0021c8c: ea00000c b a0021cc4 } result = (*loc.ops->chown_h)( &loc, owner, group ); a0021c90: e1a02005 mov r2, r5 a0021c94: e1a01006 mov r1, r6 a0021c98: e1a00004 mov r0, r4 a0021c9c: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a0021ca0: 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 ); a0021ca4: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); a0021ca8: e3530000 cmp r3, #0 a0021cac: 0a000004 beq a0021cc4 a0021cb0: e593301c ldr r3, [r3, #28] a0021cb4: e3530000 cmp r3, #0 a0021cb8: 0a000001 beq a0021cc4 a0021cbc: e1a00004 mov r0, r4 a0021cc0: e12fff33 blx r3 return result; } a0021cc4: e1a00005 mov r0, r5 a0021cc8: e28dd018 add sp, sp, #24 a0021ccc: e8bd80f0 pop {r4, r5, r6, r7, pc} a0021cd0 : #include int chroot( const char *pathname ) { a0021cd0: 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) { a0021cd4: e59f50dc ldr r5, [pc, #220] ; a0021db8 a0021cd8: e59f30dc ldr r3, [pc, #220] ; a0021dbc #include int chroot( const char *pathname ) { a0021cdc: 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) { a0021ce0: e5954000 ldr r4, [r5] #include int chroot( const char *pathname ) { a0021ce4: 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) { a0021ce8: e1540003 cmp r4, r3 a0021cec: 1a000008 bne a0021d14 rtems_libio_set_private_env(); /* try to set a new private env*/ a0021cf0: eb0005d8 bl a0023458 if (rtems_current_user_env == &rtems_global_user_env) /* not ok */ a0021cf4: e5953000 ldr r3, [r5] a0021cf8: e1530004 cmp r3, r4 a0021cfc: 1a000004 bne a0021d14 rtems_set_errno_and_return_minus_one( ENOTSUP ); a0021d00: eb005d9e bl a0039380 <__errno> <== NOT EXECUTED a0021d04: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0021d08: e5803000 str r3, [r0] <== NOT EXECUTED a0021d0c: e3e05000 mvn r5, #0 <== NOT EXECUTED a0021d10: ea000025 b a0021dac <== NOT EXECUTED } result = chdir(pathname); a0021d14: e1a00006 mov r0, r6 a0021d18: ebffff7a bl a0021b08 if (result) { a0021d1c: e250c000 subs ip, r0, #0 a0021d20: 1a000007 bne a0021d44 rtems_set_errno_and_return_minus_one( errno ); } /* clone the new root location */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { a0021d24: e1a0200c mov r2, ip a0021d28: e59f0090 ldr r0, [pc, #144] ; a0021dc0 a0021d2c: e3a01001 mov r1, #1 a0021d30: e28d3004 add r3, sp, #4 a0021d34: e58dc000 str ip, [sp] a0021d38: ebff8cda bl a00050a8 a0021d3c: e3500000 cmp r0, #0 a0021d40: 0a000006 beq a0021d60 /* our cwd has changed, though - but there is no easy way of return :-( */ rtems_set_errno_and_return_minus_one( errno ); a0021d44: eb005d8d bl a0039380 <__errno> <== NOT EXECUTED a0021d48: e1a04000 mov r4, r0 <== NOT EXECUTED a0021d4c: eb005d8b bl a0039380 <__errno> <== NOT EXECUTED a0021d50: e5903000 ldr r3, [r0] <== NOT EXECUTED a0021d54: e3e05000 mvn r5, #0 <== NOT EXECUTED a0021d58: e5843000 str r3, [r4] <== NOT EXECUTED a0021d5c: ea000012 b a0021dac <== NOT EXECUTED } rtems_filesystem_freenode(&rtems_filesystem_root); a0021d60: e59f3050 ldr r3, [pc, #80] ; a0021db8 a0021d64: e5930000 ldr r0, [r3] a0021d68: e5903024 ldr r3, [r0, #36] ; 0x24 a0021d6c: e3530000 cmp r3, #0 a0021d70: 0a000004 beq a0021d88 a0021d74: e593301c ldr r3, [r3, #28] a0021d78: e3530000 cmp r3, #0 a0021d7c: 0a000001 beq a0021d88 a0021d80: e2800018 add r0, r0, #24 a0021d84: e12fff33 blx r3 rtems_filesystem_root = loc; a0021d88: e59fc028 ldr ip, [pc, #40] ; a0021db8 a0021d8c: e28d4004 add r4, sp, #4 a0021d90: e8b4000f ldm r4!, {r0, r1, r2, r3} a0021d94: e59cc000 ldr ip, [ip] a0021d98: e3a05000 mov r5, #0 a0021d9c: e28cc018 add ip, ip, #24 a0021da0: e8ac000f stmia ip!, {r0, r1, r2, r3} a0021da4: e5943000 ldr r3, [r4] a0021da8: e58c3000 str r3, [ip] return 0; } a0021dac: e1a00005 mov r0, r5 a0021db0: e28dd018 add sp, sp, #24 a0021db4: e8bd8070 pop {r4, r5, r6, pc} a0021db8: a00535c8 .word 0xa00535c8 a0021dbc: a0060ee8 .word 0xa0060ee8 a0021dc0: a0058df5 .word 0xa0058df5 a0007728 : #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { a0007728: e92d4007 push {r0, r1, r2, lr} rtems_libio_open_close_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; a000772c: e5902038 ldr r2, [r0, #56] ; 0x38 args.iop = iop; args.flags = 0; a0007730: e3a01000 mov r1, #0 args.mode = 0; a0007734: e58d1008 str r1, [sp, #8] rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.flags = 0; a0007738: e58d1004 str r1, [sp, #4] #include "devfs.h" int devFS_close( rtems_libio_t *iop ) { a000773c: e1a03000 mov r3, r0 args.iop = iop; args.flags = 0; args.mode = 0; status = rtems_io_close( a0007740: e592100c ldr r1, [r2, #12] a0007744: e5920008 ldr r0, [r2, #8] a0007748: e1a0200d mov r2, sp rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; a000774c: e58d3000 str r3, [sp] args.flags = 0; args.mode = 0; status = rtems_io_close( a0007750: eb000538 bl a0008c38 np->major, np->minor, (void *) &args ); if ( status ) { a0007754: e2503000 subs r3, r0, #0 a0007758: 01a00003 moveq r0, r3 a000775c: 0a000000 beq a0007764 return rtems_deviceio_errno(status); a0007760: eb000034 bl a0007838 <== NOT EXECUTED } return 0; } a0007764: e8bd800e pop {r1, r2, r3, pc} a0007774 : const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { a0007774: 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; a0007778: e5935000 ldr r5, [r3] const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { a000777c: e1a04003 mov r4, r3 a0007780: e1a09000 mov r9, r0 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) a0007784: e3550000 cmp r5, #0 const char *pathname, int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc ) { a0007788: 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) a000778c: 13a06000 movne r6, #0 rtems_set_errno_and_return_minus_one( EFAULT ); for (i = 0; i < rtems_device_table_size; i++) { a0007790: 159fa090 ldrne sl, [pc, #144] ; a0007828 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) a0007794: 1a000019 bne a0007800 rtems_set_errno_and_return_minus_one( EFAULT ); a0007798: eb000b72 bl a000a568 <__errno> <== NOT EXECUTED a000779c: e3a0300e mov r3, #14 <== NOT EXECUTED a00077a0: e5803000 str r3, [r0] <== NOT EXECUTED a00077a4: e3e00000 mvn r0, #0 <== NOT EXECUTED a00077a8: 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) a00077ac: 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++) { a00077b0: e2866001 add r6, r6, #1 if (!device_name_table[i].device_name) a00077b4: e2571000 subs r1, r7, #0 a00077b8: 0a00000f beq a00077fc continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) a00077bc: eb000f1f bl a000b440 a00077c0: e3500000 cmp r0, #0 a00077c4: 1a00000c bne a00077fc continue; if (device_name_table[i].device_name[pathnamelen] != '\0') a00077c8: e7d70008 ldrb r0, [r7, r8] a00077cc: e3500000 cmp r0, #0 a00077d0: 1a000009 bne a00077fc /* 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; a00077d4: e59f3050 ldr r3, [pc, #80] ; a000782c 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; a00077d8: e59f2050 ldr r2, [pc, #80] ; a0007830 if (device_name_table[i].device_name[pathnamelen] != '\0') continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; a00077dc: e5845000 str r5, [r4] pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; pathloc->mt_entry = rtems_filesystem_root.mt_entry; a00077e0: e5933000 ldr r3, [r3] 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; a00077e4: e5842008 str r2, [r4, #8] pathloc->ops = &devFS_ops; a00077e8: e59f2044 ldr r2, [pc, #68] ; a0007834 pathloc->mt_entry = rtems_filesystem_root.mt_entry; a00077ec: e5933028 ldr r3, [r3, #40] ; 0x28 continue; /* find the device, set proper values */ pathloc->node_access = (void *)&device_name_table[i]; pathloc->handlers = &devFS_file_handlers; pathloc->ops = &devFS_ops; a00077f0: e584200c str r2, [r4, #12] pathloc->mt_entry = rtems_filesystem_root.mt_entry; a00077f4: e5843010 str r3, [r4, #16] return 0; a00077f8: 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++) { a00077fc: e2855014 add r5, r5, #20 a0007800: e59a3000 ldr r3, [sl] if (!device_name_table[i].device_name) continue; if (strncmp(pathname, device_name_table[i].device_name, pathnamelen) != 0) a0007804: e1a00009 mov r0, r9 a0007808: 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++) { a000780c: e1560003 cmp r6, r3 a0007810: 3affffe5 bcc a00077ac pathloc->mt_entry = rtems_filesystem_root.mt_entry; return 0; } /* no such file or directory */ rtems_set_errno_and_return_minus_one( ENOENT ); a0007814: eb000b53 bl a000a568 <__errno> a0007818: e3a03002 mov r3, #2 a000781c: e5803000 str r3, [r0] a0007820: e3e00000 mvn r0, #0 } a0007824: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} a0007828: a000d034 .word 0xa000d034 a000782c: a000d25c .word 0xa000d25c a0007830: a000d1c8 .word 0xa000d1c8 a0007834: a000d200 .word 0xa000d200 a0000bcc : int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { a0000bcc: 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( a0000bd0: e59f7058 ldr r7, [pc, #88] ; a0000c30 int devFS_initialize( rtems_filesystem_mount_table_entry_t *temp_mt_entry ) { a0000bd4: 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( a0000bd8: e3a06014 mov r6, #20 a0000bdc: e5970000 ldr r0, [r7] a0000be0: e0000096 mul r0, r6, r0 a0000be4: eb0019b3 bl a00072b8 <_Workspace_Allocate> sizeof( rtems_device_name_t ) * ( rtems_device_table_size ) ); /* no memory for device filesystem */ if (!device_name_table) a0000be8: e2505000 subs r5, r0, #0 a0000bec: 1a000004 bne a0000c04 rtems_set_errno_and_return_minus_one( ENOMEM ); a0000bf0: eb00265c bl a000a568 <__errno> <== NOT EXECUTED a0000bf4: e3a0300c mov r3, #12 <== NOT EXECUTED a0000bf8: e5803000 str r3, [r0] <== NOT EXECUTED a0000bfc: e3e00000 mvn r0, #0 <== NOT EXECUTED a0000c00: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED memset( a0000c04: e5972000 ldr r2, [r7] a0000c08: e3a01000 mov r1, #0 a0000c0c: e0020296 mul r2, r6, r2 a0000c10: eb002882 bl a000ae20 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; a0000c14: e59f3018 ldr r3, [pc, #24] ; a0000c34 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; a0000c18: e584501c str r5, [r4, #28] a0000c1c: e3a00000 mov r0, #0 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; a0000c20: e2832038 add r2, r3, #56 ; 0x38 a0000c24: 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; a0000c28: e5843024 str r3, [r4, #36] ; 0x24 /* Set the node_access to device name table */ temp_mt_entry->mt_fs_root.node_access = (void *)device_name_table; return 0; } a0000c2c: e8bd80f0 pop {r4, r5, r6, r7, pc} a0000c30: a000d034 .word 0xa000d034 a0000c34: a000d1c8 .word 0xa000d1c8 a0000d74 : int devFS_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a0000d74: e92d400f push {r0, r1, r2, r3, lr} a0000d78: e1a03000 mov r3, r0 rtems_libio_ioctl_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; a0000d7c: e5900038 ldr r0, [r0, #56] ; 0x38 args.iop = iop; args.command = command; a0000d80: e98d0006 stmib sp, {r1, r2} args.buffer = buffer; status = rtems_io_control( a0000d84: e590100c ldr r1, [r0, #12] a0000d88: e1a0200d mov r2, sp a0000d8c: e5900008 ldr r0, [r0, #8] rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; a0000d90: e58d3000 str r3, [sp] args.command = command; args.buffer = buffer; status = rtems_io_control( a0000d94: eb000e9c bl a000480c np->major, np->minor, (void *) &args ); if ( status ) a0000d98: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return args.ioctl_return; a0000d9c: 059d000c ldreq r0, [sp, #12] np->major, np->minor, (void *) &args ); if ( status ) a0000da0: 0a000000 beq a0000da8 return rtems_deviceio_errno(status); a0000da4: eb001aa3 bl a0007838 <== NOT EXECUTED return args.ioctl_return; } a0000da8: e28dd010 add sp, sp, #16 a0000dac: e8bd8000 pop {pc} a0000c38 : const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { a0000c38: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} a0000c3c: 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') && a0000c40: e5d00000 ldrb r0, [r0] const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { a0000c44: e1a05001 mov r5, r1 a0000c48: e58d2000 str r2, [sp] * 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') && a0000c4c: e3500064 cmp r0, #100 ; 0x64 const char *path, mode_t mode, dev_t dev, rtems_filesystem_location_info_t *pathloc ) { a0000c50: 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') && a0000c54: 1a000008 bne a0000c7c a0000c58: e5d43001 ldrb r3, [r4, #1] a0000c5c: e3530065 cmp r3, #101 ; 0x65 a0000c60: 1a000005 bne a0000c7c (path[2] == 'v') && (path[3] == '\0')) a0000c64: e5d43002 ldrb r3, [r4, #2] a0000c68: e3530076 cmp r3, #118 ; 0x76 a0000c6c: 1a000002 bne a0000c7c a0000c70: e5d40003 ldrb r0, [r4, #3] a0000c74: e3500000 cmp r0, #0 a0000c78: 0a000039 beq a0000d64 return 0; /* must be a character device or a block device */ if (!S_ISBLK(mode) && !S_ISCHR(mode)) a0000c7c: e205aa0f and sl, r5, #61440 ; 0xf000 a0000c80: e35a0a02 cmp sl, #8192 ; 0x2000 a0000c84: 135a0a06 cmpne sl, #24576 ; 0x6000 a0000c88: 03a0a000 moveq sl, #0 a0000c8c: 13a0a001 movne sl, #1 a0000c90: 0a000002 beq a0000ca0 rtems_set_errno_and_return_minus_one( EINVAL ); a0000c94: eb002633 bl a000a568 <__errno> <== NOT EXECUTED a0000c98: e3a03016 mov r3, #22 <== NOT EXECUTED a0000c9c: ea000008 b a0000cc4 <== 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; a0000ca0: e59d3028 ldr r3, [sp, #40] ; 0x28 a0000ca4: e5936000 ldr r6, [r3] if (!device_name_table) a0000ca8: e3560000 cmp r6, #0 a0000cac: 13e07000 mvnne r7, #0 a0000cb0: 11a0800a movne r8, sl rtems_set_errno_and_return_minus_one( EFAULT ); for (slot = -1, i = 0; i < rtems_device_table_size; i++){ a0000cb4: 159fb0ac ldrne fp, [pc, #172] ; a0000d68 a0000cb8: 1a000010 bne a0000d00 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 ); a0000cbc: eb002629 bl a000a568 <__errno> <== NOT EXECUTED a0000cc0: e3a0300e mov r3, #14 <== NOT EXECUTED a0000cc4: e5803000 str r3, [r0] <== NOT EXECUTED a0000cc8: e3e00000 mvn r0, #0 <== NOT EXECUTED a0000ccc: ea000024 b a0000d64 <== NOT EXECUTED for (slot = -1, i = 0; i < rtems_device_table_size; i++){ if (device_name_table[i].device_name == NULL) a0000cd0: 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++){ a0000cd4: e28aa014 add sl, sl, #20 if (device_name_table[i].device_name == NULL) a0000cd8: e2531000 subs r1, r3, #0 a0000cdc: 0a000005 beq a0000cf8 slot = i; else if (strcmp(path, device_name_table[i].device_name) == 0) a0000ce0: eb0028f6 bl a000b0c0 <== NOT EXECUTED a0000ce4: e3500000 cmp r0, #0 <== NOT EXECUTED a0000ce8: 1a000003 bne a0000cfc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EEXIST ); a0000cec: eb00261d bl a000a568 <__errno> <== NOT EXECUTED a0000cf0: e3a03011 mov r3, #17 <== NOT EXECUTED a0000cf4: eafffff2 b a0000cc4 <== NOT EXECUTED a0000cf8: 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++){ a0000cfc: e2888001 add r8, r8, #1 a0000d00: 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) a0000d04: 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++){ a0000d08: e1580003 cmp r8, r3 a0000d0c: 3affffef bcc a0000cd0 else if (strcmp(path, device_name_table[i].device_name) == 0) rtems_set_errno_and_return_minus_one( EEXIST ); } if (slot == -1) a0000d10: e3770001 cmn r7, #1 a0000d14: 1a000004 bne a0000d2c rtems_set_errno_and_return_minus_one( ENOMEM ); a0000d18: eb002612 bl a000a568 <__errno> <== NOT EXECUTED a0000d1c: e3a0300c mov r3, #12 <== NOT EXECUTED a0000d20: e5803000 str r3, [r0] <== NOT EXECUTED a0000d24: e1a00007 mov r0, r7 <== NOT EXECUTED a0000d28: ea00000d b a0000d64 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0000d2c: e10f8000 mrs r8, CPSR a0000d30: e3883080 orr r3, r8, #128 ; 0x80 a0000d34: e129f003 msr CPSR_fc, r3 _ISR_Disable(level); device_name_table[slot].device_name = (char *)path; a0000d38: e3a02014 mov r2, #20 a0000d3c: e0030792 mul r3, r2, r7 device_name_table[slot].device_name_length = strlen(path); a0000d40: 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; a0000d44: e7864003 str r4, [r6, r3] a0000d48: e0866003 add r6, r6, r3 device_name_table[slot].device_name_length = strlen(path); a0000d4c: eb0029a3 bl a000b3e0 device_name_table[slot].major = major; a0000d50: e59d3000 ldr r3, [sp] device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; a0000d54: 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); a0000d58: e9860209 stmib r6, {r0, r3, r9} static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0000d5c: e129f008 msr CPSR_fc, r8 a0000d60: e3a00000 mov r0, #0 device_name_table[slot].minor = minor; device_name_table[slot].mode = mode; _ISR_Enable(level); return 0; } a0000d64: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} a0000d68: a000d034 .word 0xa000d034 a0000db0 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a0000db0: e92d4007 push {r0, r1, r2, lr} rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.flags = iop->flags; a0000db4: e5901014 ldr r1, [r0, #20] { rtems_libio_open_close_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; a0000db8: e5902038 ldr r2, [r0, #56] ; 0x38 args.iop = iop; args.flags = iop->flags; args.mode = mode; a0000dbc: e98d000a stmib sp, {r1, r3} rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a0000dc0: e1a0c000 mov ip, r0 args.iop = iop; args.flags = iop->flags; args.mode = mode; status = rtems_io_open( a0000dc4: e592100c ldr r1, [r2, #12] a0000dc8: e5920008 ldr r0, [r2, #8] a0000dcc: e1a0200d mov r2, sp rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; a0000dd0: e58dc000 str ip, [sp] args.flags = iop->flags; args.mode = mode; status = rtems_io_open( a0000dd4: eb000ed5 bl a0004930 np->major, np->minor, (void *) &args ); if ( status ) a0000dd8: e2503000 subs r3, r0, #0 a0000ddc: 01a00003 moveq r0, r3 a0000de0: 0a000000 beq a0000de8 return rtems_deviceio_errno(status); a0000de4: eb001a93 bl a0007838 <== NOT EXECUTED return 0; } a0000de8: e8bd800e pop {r1, r2, r3, pc} a0000dec : ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { a0000dec: e92d4010 push {r4, lr} <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; a0000df0: e590c014 ldr ip, [r0, #20] <== NOT EXECUTED ssize_t devFS_read( rtems_libio_t *iop, void *buffer, size_t count ) { a0000df4: e24dd01c sub sp, sp, #28 <== NOT EXECUTED a0000df8: e1a03000 mov r3, r0 <== 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; a0000dfc: e5900038 ldr r0, [r0, #56] ; 0x38 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; a0000e00: e58d2010 str r2, [sp, #16] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; a0000e04: e3a02000 mov r2, #0 <== NOT EXECUTED a0000e08: e58d2018 str r2, [sp, #24] <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; a0000e0c: 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; a0000e10: e58d100c str r1, [sp, #12] <== NOT EXECUTED args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( a0000e14: e1a0200d mov r2, sp <== NOT EXECUTED a0000e18: e590100c ldr r1, [r0, #12] <== NOT EXECUTED a0000e1c: 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; a0000e20: e58d3000 str r3, [sp] <== NOT EXECUTED args.offset = iop->offset; a0000e24: e283400c add r4, r3, #12 <== NOT EXECUTED a0000e28: e8940018 ldm r4, {r3, r4} <== NOT EXECUTED a0000e2c: 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( a0000e30: eb000ed2 bl a0004980 <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) a0000e34: e3500000 cmp r0, #0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; a0000e38: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED np->major, np->minor, (void *) &args ); if ( status ) a0000e3c: 0a000000 beq a0000e44 <== NOT EXECUTED return rtems_deviceio_errno(status); a0000e40: eb001a7c bl a0007838 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } a0000e44: e28dd01c add sp, sp, #28 <== NOT EXECUTED a0000e48: e8bd8010 pop {r4, pc} <== NOT EXECUTED a0000e4c : struct stat *buf ) { rtems_device_name_t *the_dev; the_dev = (rtems_device_name_t *)loc->node_access; a0000e4c: e5903000 ldr r3, [r0] int devFS_stat( rtems_filesystem_location_info_t *loc, struct stat *buf ) { a0000e50: 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) a0000e54: e3530000 cmp r3, #0 a0000e58: 1a000004 bne a0000e70 rtems_set_errno_and_return_minus_one( EFAULT ); a0000e5c: eb0025c1 bl a000a568 <__errno> <== NOT EXECUTED a0000e60: e3a0300e mov r3, #14 <== NOT EXECUTED a0000e64: e5803000 str r3, [r0] <== NOT EXECUTED a0000e68: e3e00000 mvn r0, #0 <== NOT EXECUTED a0000e6c: 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; a0000e70: 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 ); a0000e74: e593200c ldr r2, [r3, #12] rtems_device_minor_number _minor ) { union __rtems_dev_t temp; temp.__overlay.major = _major; a0000e78: e5933008 ldr r3, [r3, #8] buf->st_mode = the_dev->mode; a0000e7c: 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 ); a0000e80: e581201c str r2, [r1, #28] a0000e84: e5813018 str r3, [r1, #24] buf->st_mode = the_dev->mode; a0000e88: e3a00000 mov r0, #0 return 0; } a0000e8c: e49df004 pop {pc} ; (ldr pc, [sp], #4) a0000e90 : ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a0000e90: e92d4010 push {r4, lr} args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; a0000e94: e590c014 ldr ip, [r0, #20] ssize_t devFS_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a0000e98: e24dd01c sub sp, sp, #28 a0000e9c: e1a03000 mov r3, r0 rtems_libio_rw_args_t args; rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; a0000ea0: e5900038 ldr r0, [r0, #56] ; 0x38 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; a0000ea4: e58d2010 str r2, [sp, #16] args.flags = iop->flags; args.bytes_moved = 0; a0000ea8: e3a02000 mov r2, #0 a0000eac: e58d2018 str r2, [sp, #24] args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; a0000eb0: e58dc014 str ip, [sp, #20] np = (rtems_device_name_t *)iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; a0000eb4: e58d100c str r1, [sp, #12] args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( a0000eb8: e1a0200d mov r2, sp a0000ebc: e590100c ldr r1, [r0, #12] a0000ec0: e5900008 ldr r0, [r0, #8] rtems_status_code status; rtems_device_name_t *np; np = (rtems_device_name_t *)iop->file_info; args.iop = iop; a0000ec4: e58d3000 str r3, [sp] args.offset = iop->offset; a0000ec8: e283400c add r4, r3, #12 a0000ecc: e8940018 ldm r4, {r3, r4} a0000ed0: e98d0018 stmib sp, {r3, r4} args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( a0000ed4: eb000ebd bl a00049d0 np->major, np->minor, (void *) &args ); if ( status ) a0000ed8: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; a0000edc: 059d0018 ldreq r0, [sp, #24] np->major, np->minor, (void *) &args ); if ( status ) a0000ee0: 0a000000 beq a0000ee8 return rtems_deviceio_errno(status); a0000ee4: eb001a53 bl a0007838 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } a0000ee8: e28dd01c add sp, sp, #28 a0000eec: e8bd8010 pop {r4, pc} a000a7e8 : */ int device_close( rtems_libio_t *iop ) { a000a7e8: e92d4007 push {r0, r1, r2, lr} rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a000a7ec: e5903038 ldr r3, [r0, #56] ; 0x38 args.iop = iop; args.flags = 0; a000a7f0: e3a02000 mov r2, #0 args.mode = 0; a000a7f4: e58d2008 str r2, [sp, #8] IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = 0; a000a7f8: e88d0005 stm sp, {r0, r2} args.mode = 0; status = rtems_io_close( a000a7fc: e5931054 ldr r1, [r3, #84] ; 0x54 a000a800: e5930050 ldr r0, [r3, #80] ; 0x50 a000a804: e1a0200d mov r2, sp a000a808: eb0004d9 bl a000bb74 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) { a000a80c: e2503000 subs r3, r0, #0 a000a810: 01a00003 moveq r0, r3 a000a814: 0a000000 beq a000a81c return rtems_deviceio_errno(status); a000a818: eb000636 bl a000c0f8 <== NOT EXECUTED } return 0; } a000a81c: e8bd800e pop {r1, r2, r3, pc} a000a6fc : int device_ioctl( rtems_libio_t *iop, uint32_t command, void *buffer ) { a000a6fc: e92d400f push {r0, r1, r2, r3, lr} args.iop = iop; args.command = command; args.buffer = buffer; the_jnode = iop->file_info; a000a700: e5903038 ldr r3, [r0, #56] ; 0x38 rtems_libio_ioctl_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; args.iop = iop; args.command = command; a000a704: e88d0007 stm sp, {r0, r1, r2} args.buffer = buffer; the_jnode = iop->file_info; status = rtems_io_control( a000a708: e5931054 ldr r1, [r3, #84] ; 0x54 a000a70c: e5930050 ldr r0, [r3, #80] ; 0x50 a000a710: e1a0200d mov r2, sp a000a714: eb00052a bl a000bbc4 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000a718: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return args.ioctl_return; a000a71c: 059d000c ldreq r0, [sp, #12] the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000a720: 0a000000 beq a000a728 return rtems_deviceio_errno(status); a000a724: eb000673 bl a000c0f8 <== NOT EXECUTED return args.ioctl_return; } a000a728: e28dd010 add sp, sp, #16 a000a72c: e8bd8000 pop {pc} a000a820 : rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a000a820: e92d4007 push {r0, r1, r2, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.flags = iop->flags; a000a824: e5901014 ldr r1, [r0, #20] { rtems_libio_open_close_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a000a828: e5902038 ldr r2, [r0, #56] ; 0x38 args.iop = iop; args.flags = iop->flags; args.mode = mode; a000a82c: e88d000b stm sp, {r0, r1, r3} status = rtems_io_open( a000a830: e5921054 ldr r1, [r2, #84] ; 0x54 a000a834: e5920050 ldr r0, [r2, #80] ; 0x50 a000a838: e1a0200d mov r2, sp a000a83c: eb0004f4 bl a000bc14 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000a840: e2503000 subs r3, r0, #0 a000a844: 01a00003 moveq r0, r3 a000a848: 0a000000 beq a000a850 return rtems_deviceio_errno(status); a000a84c: eb000629 bl a000c0f8 <== NOT EXECUTED return 0; } a000a850: e8bd800e pop {r1, r2, r3, pc} a000a78c : ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { a000a78c: e92d4030 push {r4, r5, lr} <== NOT EXECUTED IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; a000a790: e280500c add r5, r0, #12 <== NOT EXECUTED a000a794: e8950030 ldm r5, {r4, r5} <== NOT EXECUTED ssize_t device_read( rtems_libio_t *iop, void *buffer, size_t count ) { a000a798: e24dd01c sub sp, sp, #28 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; args.buffer = buffer; args.count = count; args.flags = iop->flags; a000a79c: e590c014 ldr ip, [r0, #20] <== NOT EXECUTED { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a000a7a0: e5903038 ldr r3, [r0, #56] ; 0x38 <== NOT EXECUTED args.iop = iop; args.offset = iop->offset; a000a7a4: e98d0030 stmib sp, {r4, r5} <== NOT EXECUTED args.buffer = buffer; args.count = count; a000a7a8: e58d2010 str r2, [sp, #16] <== NOT EXECUTED args.flags = iop->flags; args.bytes_moved = 0; a000a7ac: e3a02000 mov r2, #0 <== NOT EXECUTED a000a7b0: e58d2018 str r2, [sp, #24] <== NOT EXECUTED the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = buffer; a000a7b4: e58d100c str r1, [sp, #12] <== NOT EXECUTED args.count = count; args.flags = iop->flags; a000a7b8: e58dc014 str ip, [sp, #20] <== NOT EXECUTED rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; a000a7bc: e58d0000 str r0, [sp] <== NOT EXECUTED args.buffer = buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_read( a000a7c0: e5931054 ldr r1, [r3, #84] ; 0x54 <== NOT EXECUTED a000a7c4: e5930050 ldr r0, [r3, #80] ; 0x50 <== NOT EXECUTED a000a7c8: e1a0200d mov r2, sp <== NOT EXECUTED a000a7cc: eb000524 bl a000bc64 <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000a7d0: e3500000 cmp r0, #0 <== NOT EXECUTED return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; a000a7d4: 059d0018 ldreq r0, [sp, #24] <== NOT EXECUTED the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000a7d8: 0a000000 beq a000a7e0 <== NOT EXECUTED return rtems_deviceio_errno(status); a000a7dc: eb000645 bl a000c0f8 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } a000a7e0: e28dd01c add sp, sp, #28 <== NOT EXECUTED a000a7e4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED a000a730 : ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a000a730: e92d4030 push {r4, r5, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; a000a734: e280500c add r5, r0, #12 a000a738: e8950030 ldm r5, {r4, r5} ssize_t device_write( rtems_libio_t *iop, const void *buffer, size_t count ) { a000a73c: e24dd01c sub sp, sp, #28 args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; a000a740: e590c014 ldr ip, [r0, #20] { rtems_libio_rw_args_t args; rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a000a744: e5903038 ldr r3, [r0, #56] ; 0x38 args.iop = iop; args.offset = iop->offset; a000a748: e98d0030 stmib sp, {r4, r5} args.buffer = (void *) buffer; args.count = count; a000a74c: e58d2010 str r2, [sp, #16] args.flags = iop->flags; args.bytes_moved = 0; a000a750: e3a02000 mov r2, #0 a000a754: e58d2018 str r2, [sp, #24] the_jnode = iop->file_info; args.iop = iop; args.offset = iop->offset; args.buffer = (void *) buffer; a000a758: e58d100c str r1, [sp, #12] args.count = count; args.flags = iop->flags; a000a75c: e58dc014 str ip, [sp, #20] rtems_status_code status; IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; args.iop = iop; a000a760: e58d0000 str r0, [sp] args.buffer = (void *) buffer; args.count = count; args.flags = iop->flags; args.bytes_moved = 0; status = rtems_io_write( a000a764: e5931054 ldr r1, [r3, #84] ; 0x54 a000a768: e5930050 ldr r0, [r3, #80] ; 0x50 a000a76c: e1a0200d mov r2, sp a000a770: eb00054f bl a000bcb4 the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000a774: e3500000 cmp r0, #0 return rtems_deviceio_errno(status); return (ssize_t) args.bytes_moved; a000a778: 059d0018 ldreq r0, [sp, #24] the_jnode->info.device.major, the_jnode->info.device.minor, (void *) &args ); if ( status ) a000a77c: 0a000000 beq a000a784 return rtems_deviceio_errno(status); a000a780: eb00065c bl a000c0f8 <== NOT EXECUTED return (ssize_t) args.bytes_moved; } a000a784: e28dd01c add sp, sp, #28 a000a788: e8bd8030 pop {r4, r5, pc} a0002aa0 : drainOutput (struct rtems_termios_tty *tty) { rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { a0002aa0: e59030b4 ldr r3, [r0, #180] ; 0xb4 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { a0002aa4: e92d4030 push {r4, r5, lr} rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { a0002aa8: e3530000 cmp r3, #0 /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty) { a0002aac: e1a04000 mov r4, r0 rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) { a0002ab0: 0a000015 beq a0002b0c static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0002ab4: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0002ab8: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0002abc: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED rtems_interrupt_disable (level); while (tty->rawOutBuf.Tail != tty->rawOutBuf.Head) { tty->rawOutBufState = rob_wait; a0002ac0: 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) { a0002ac4: ea00000b b a0002af8 <== NOT EXECUTED tty->rawOutBufState = rob_wait; a0002ac8: e5845094 str r5, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0002acc: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, a0002ad0: e3a01000 mov r1, #0 <== NOT EXECUTED a0002ad4: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED a0002ad8: e1a02001 mov r2, r1 <== NOT EXECUTED a0002adc: eb0005aa bl a000418c <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) a0002ae0: e3500000 cmp r0, #0 <== NOT EXECUTED a0002ae4: 0a000000 beq a0002aec <== NOT EXECUTED rtems_fatal_error_occurred (sc); a0002ae8: eb00073c bl a00047e0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0002aec: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0002af0: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0002af4: 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) { a0002af8: e5941084 ldr r1, [r4, #132] ; 0x84 <== NOT EXECUTED a0002afc: e5942080 ldr r2, [r4, #128] ; 0x80 <== NOT EXECUTED a0002b00: e1510002 cmp r1, r2 <== NOT EXECUTED a0002b04: 1affffef bne a0002ac8 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0002b08: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0002b0c: e8bd8030 pop {r4, r5, pc} a0001e60 : int dup2( int fildes, int fildes2 ) { a0001e60: e92d4070 push {r4, r5, r6, lr} a0001e64: e24dd048 sub sp, sp, #72 ; 0x48 a0001e68: e1a04001 mov r4, r1 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); a0001e6c: e1a0100d mov r1, sp int dup2( int fildes, int fildes2 ) { a0001e70: e1a06000 mov r6, r0 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); a0001e74: eb000194 bl a00024cc if ( status == -1 ) a0001e78: e3700001 cmn r0, #1 /* * If fildes is not valid, then fildes2 should not be closed. */ status = fstat( fildes, &buf ); a0001e7c: e1a0500d mov r5, sp if ( status == -1 ) a0001e80: 0a000009 beq a0001eac /* * If fildes2 is not valid, then we should not do anything either. */ status = fstat( fildes2, &buf ); a0001e84: e1a0100d mov r1, sp a0001e88: e1a00004 mov r0, r4 a0001e8c: eb00018e bl a00024cc if ( status == -1 ) a0001e90: e3700001 cmn r0, #1 a0001e94: 0a000004 beq a0001eac /* * This fcntl handles everything else. */ return fcntl( fildes, F_DUPFD, fildes2 ); a0001e98: e1a00006 mov r0, r6 <== NOT EXECUTED a0001e9c: e1a02004 mov r2, r4 <== NOT EXECUTED a0001ea0: e3a01000 mov r1, #0 <== NOT EXECUTED a0001ea4: eb000086 bl a00020c4 <== NOT EXECUTED a0001ea8: ea000000 b a0001eb0 <== NOT EXECUTED a0001eac: e3e00000 mvn r0, #0 } a0001eb0: e28dd048 add sp, sp, #72 ; 0x48 a0001eb4: e8bd8070 pop {r4, r5, r6, pc} a0002590 : * 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')) { a0002590: e591203c ldr r2, [r1, #60] ; 0x3c <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { a0002594: e92d4011 push {r0, r4, lr} <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { a0002598: e3120c02 tst r2, #512 ; 0x200 <== NOT EXECUTED /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) { a000259c: e1a04001 mov r4, r1 <== NOT EXECUTED a00025a0: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED if ((tty->termios.c_lflag & ECHOCTL) && iscntrl(c) && (c != '\t') && (c != '\n')) { a00025a4: 0a000015 beq a0002600 <== NOT EXECUTED a00025a8: e59f205c ldr r2, [pc, #92] ; a000260c <== NOT EXECUTED a00025ac: e2503009 subs r3, r0, #9 <== NOT EXECUTED a00025b0: 13a03001 movne r3, #1 <== NOT EXECUTED a00025b4: e5922000 ldr r2, [r2] <== NOT EXECUTED a00025b8: e0822000 add r2, r2, r0 <== NOT EXECUTED a00025bc: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED a00025c0: e01332a2 ands r3, r3, r2, lsr #5 <== NOT EXECUTED a00025c4: 0a00000d beq a0002600 <== NOT EXECUTED a00025c8: e350000a cmp r0, #10 <== NOT EXECUTED a00025cc: 0a00000b beq a0002600 <== NOT EXECUTED char echobuf[2]; echobuf[0] = '^'; echobuf[1] = c ^ 0x40; a00025d0: 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] = '^'; a00025d4: e3a0c05e mov ip, #94 ; 0x5e <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); a00025d8: e1a0000d mov r0, sp <== NOT EXECUTED a00025dc: e3a01002 mov r1, #2 <== NOT EXECUTED a00025e0: 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; a00025e4: 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] = '^'; a00025e8: e5cdc000 strb ip, [sp] <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); a00025ec: ebffff4c bl a0002324 <== NOT EXECUTED tty->column += 2; a00025f0: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a00025f4: e2833002 add r3, r3, #2 <== NOT EXECUTED a00025f8: 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')) { a00025fc: ea000001 b a0002608 <== NOT EXECUTED echobuf[1] = c ^ 0x40; rtems_termios_puts (echobuf, 2, tty); tty->column += 2; } else { oproc (c, tty); a0002600: e1a01004 mov r1, r4 <== NOT EXECUTED a0002604: ebffff8b bl a0002438 <== NOT EXECUTED } } a0002608: e8bd8018 pop {r3, r4, pc} <== NOT EXECUTED a000260c: a00184c0 .word 0xa00184c0 a0022370 : group_fp = fopen("/etc/group", "r"); } void endgrent(void) { if (group_fp != NULL) a0022370: e59f300c ldr r3, [pc, #12] ; a0022384 <== NOT EXECUTED a0022374: e5930000 ldr r0, [r3] <== NOT EXECUTED a0022378: e3500000 cmp r0, #0 <== NOT EXECUTED a002237c: 012fff1e bxeq lr <== NOT EXECUTED fclose(group_fp); a0022380: ea005c4b b a00394b4 <== NOT EXECUTED a0022384: a0060ba4 .word 0xa0060ba4 a0022388 : passwd_fp = fopen("/etc/passwd", "r"); } void endpwent(void) { if (passwd_fp != NULL) a0022388: e59f300c ldr r3, [pc, #12] ; a002239c <== NOT EXECUTED a002238c: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a0022390: e3500000 cmp r0, #0 <== NOT EXECUTED a0022394: 012fff1e bxeq lr <== NOT EXECUTED fclose(passwd_fp); a0022398: ea005c45 b a00394b4 <== NOT EXECUTED a002239c: a0060ba4 .word 0xa0060ba4 a0002610 : * FIXME: Some of the tests should check for IEXTEN, too. */ static void erase (struct rtems_termios_tty *tty, int lineFlag) { if (tty->ccount == 0) a0002610: 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) { a0002614: e92d41f0 push {r4, r5, r6, r7, r8, lr} <== NOT EXECUTED if (tty->ccount == 0) a0002618: 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) { a000261c: e1a04000 mov r4, r0 <== NOT EXECUTED a0002620: e1a07001 mov r7, r1 <== NOT EXECUTED if (tty->ccount == 0) a0002624: 0a000069 beq a00027d0 <== NOT EXECUTED return; if (lineFlag) { a0002628: e3510000 cmp r1, #0 <== NOT EXECUTED a000262c: 0a000063 beq a00027c0 <== NOT EXECUTED if (!(tty->termios.c_lflag & ECHO)) { a0002630: e590303c ldr r3, [r0, #60] ; 0x3c <== NOT EXECUTED a0002634: e2132008 ands r2, r3, #8 <== NOT EXECUTED a0002638: 1a000001 bne a0002644 <== NOT EXECUTED tty->ccount = 0; a000263c: e5802020 str r2, [r0, #32] <== NOT EXECUTED return; a0002640: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED } if (!(tty->termios.c_lflag & ECHOE)) { a0002644: e2133010 ands r3, r3, #16 <== NOT EXECUTED a0002648: 1a00005c bne a00027c0 <== NOT EXECUTED tty->ccount = 0; a000264c: e5803020 str r3, [r0, #32] <== NOT EXECUTED echo (tty->termios.c_cc[VKILL], tty); a0002650: e1a01004 mov r1, r4 <== NOT EXECUTED a0002654: e5d00044 ldrb r0, [r0, #68] ; 0x44 <== NOT EXECUTED a0002658: ebffffcc bl a0002590 <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) a000265c: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a0002660: e3130020 tst r3, #32 <== NOT EXECUTED echo ('\n', tty); a0002664: 11a01004 movne r1, r4 <== NOT EXECUTED a0002668: 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) a000266c: 0a000057 beq a00027d0 <== NOT EXECUTED a0002670: ea00000c b a00026a8 <== NOT EXECUTED } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; if (tty->termios.c_lflag & ECHO) { a0002674: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; a0002678: e594201c ldr r2, [r4, #28] <== NOT EXECUTED a000267c: e2411001 sub r1, r1, #1 <== NOT EXECUTED a0002680: e5841020 str r1, [r4, #32] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { a0002684: e3130008 tst r3, #8 <== NOT EXECUTED echo ('\n', tty); return; } } while (tty->ccount) { unsigned char c = tty->cbuf[--tty->ccount]; a0002688: e7d25001 ldrb r5, [r2, r1] <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) { a000268c: 0a000048 beq a00027b4 <== NOT EXECUTED if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) { a0002690: e3570000 cmp r7, #0 <== NOT EXECUTED a0002694: 1a000005 bne a00026b0 <== NOT EXECUTED a0002698: e3130010 tst r3, #16 <== NOT EXECUTED a000269c: 1a000003 bne a00026b0 <== NOT EXECUTED echo (tty->termios.c_cc[VERASE], tty); a00026a0: e5d40043 ldrb r0, [r4, #67] ; 0x43 <== NOT EXECUTED a00026a4: e1a01004 mov r1, r4 <== NOT EXECUTED } } if (!lineFlag) break; } } a00026a8: 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); a00026ac: eaffffb7 b a0002590 <== NOT EXECUTED } else if (c == '\t') { a00026b0: e3550009 cmp r5, #9 <== NOT EXECUTED a00026b4: 1a000020 bne a000273c <== NOT EXECUTED c = tty->cbuf[i++]; if (c == '\t') { col = (col | 7) + 1; } else if (iscntrl (c)) { if (tty->termios.c_lflag & ECHOCTL) a00026b8: 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; a00026bc: 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)) { a00026c0: e596c000 ldr ip, [r6] <== NOT EXECUTED a00026c4: e3a02000 mov r2, #0 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { a00026c8: ea00000d b a0002704 <== NOT EXECUTED c = tty->cbuf[i++]; a00026cc: e594001c ldr r0, [r4, #28] <== NOT EXECUTED a00026d0: e7d00002 ldrb r0, [r0, r2] <== NOT EXECUTED if (c == '\t') { a00026d4: e3500009 cmp r0, #9 <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { a00026d8: 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; a00026dc: 03855007 orreq r5, r5, #7 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; if (c == '\t') { a00026e0: 0a000005 beq a00026fc <== NOT EXECUTED col = (col | 7) + 1; } else if (iscntrl (c)) { a00026e4: e5d80001 ldrb r0, [r8, #1] <== NOT EXECUTED a00026e8: e3100020 tst r0, #32 <== NOT EXECUTED a00026ec: 0a000002 beq a00026fc <== NOT EXECUTED if (tty->termios.c_lflag & ECHOCTL) a00026f0: e3530000 cmp r3, #0 <== NOT EXECUTED col += 2; a00026f4: 12855002 addne r5, r5, #2 <== NOT EXECUTED a00026f8: ea000000 b a0002700 <== NOT EXECUTED } else { col++; a00026fc: e2855001 add r5, r5, #1 <== NOT EXECUTED /* * Find the character before the tab */ while (i != tty->ccount) { c = tty->cbuf[i++]; a0002700: e2822001 add r2, r2, #1 <== NOT EXECUTED int i = 0; /* * Find the character before the tab */ while (i != tty->ccount) { a0002704: e1520001 cmp r2, r1 <== NOT EXECUTED a0002708: 1affffef bne a00026cc <== NOT EXECUTED a000270c: ea000004 b a0002724 <== NOT EXECUTED /* * Back up over the tab */ while (tty->column > col) { rtems_termios_puts ("\b", 1, tty); a0002710: e1a02004 mov r2, r4 <== NOT EXECUTED a0002714: ebffff02 bl a0002324 <== NOT EXECUTED tty->column--; a0002718: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a000271c: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0002720: e5843028 str r3, [r4, #40] ; 0x28 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { a0002724: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); a0002728: e59f00a4 ldr r0, [pc, #164] ; a00027d4 <== NOT EXECUTED a000272c: e3a01001 mov r1, #1 <== NOT EXECUTED } /* * Back up over the tab */ while (tty->column > col) { a0002730: e1530005 cmp r3, r5 <== NOT EXECUTED a0002734: cafffff5 bgt a0002710 <== NOT EXECUTED a0002738: ea00001d b a00027b4 <== NOT EXECUTED rtems_termios_puts ("\b", 1, tty); tty->column--; } } else { if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) { a000273c: e5962000 ldr r2, [r6] <== NOT EXECUTED a0002740: e2855001 add r5, r5, #1 <== NOT EXECUTED a0002744: e7d22005 ldrb r2, [r2, r5] <== NOT EXECUTED a0002748: e3120020 tst r2, #32 <== NOT EXECUTED a000274c: 0a000009 beq a0002778 <== NOT EXECUTED a0002750: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED a0002754: 0a000007 beq a0002778 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); a0002758: e59f0078 ldr r0, [pc, #120] ; a00027d8 <== NOT EXECUTED a000275c: e3a01003 mov r1, #3 <== NOT EXECUTED a0002760: e1a02004 mov r2, r4 <== NOT EXECUTED a0002764: ebfffeee bl a0002324 <== NOT EXECUTED if (tty->column) a0002768: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a000276c: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; a0002770: 12433001 subne r3, r3, #1 <== NOT EXECUTED a0002774: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED } if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) { a0002778: e5963000 ldr r3, [r6] <== NOT EXECUTED a000277c: e7d33005 ldrb r3, [r3, r5] <== NOT EXECUTED a0002780: e3130020 tst r3, #32 <== NOT EXECUTED a0002784: 0a000002 beq a0002794 <== NOT EXECUTED a0002788: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a000278c: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED a0002790: 0a000007 beq a00027b4 <== NOT EXECUTED rtems_termios_puts ("\b \b", 3, tty); a0002794: e59f003c ldr r0, [pc, #60] ; a00027d8 <== NOT EXECUTED a0002798: e3a01003 mov r1, #3 <== NOT EXECUTED a000279c: e1a02004 mov r2, r4 <== NOT EXECUTED a00027a0: ebfffedf bl a0002324 <== NOT EXECUTED if (tty->column) a00027a4: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a00027a8: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; a00027ac: 12433001 subne r3, r3, #1 <== NOT EXECUTED a00027b0: 15843028 strne r3, [r4, #40] ; 0x28 <== NOT EXECUTED } } } if (!lineFlag) a00027b4: e3570000 cmp r7, #0 <== NOT EXECUTED a00027b8: 1a000001 bne a00027c4 <== NOT EXECUTED a00027bc: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED a00027c0: e59f6014 ldr r6, [pc, #20] ; a00027dc <== NOT EXECUTED if (tty->termios.c_lflag & ECHOK) echo ('\n', tty); return; } } while (tty->ccount) { a00027c4: e5941020 ldr r1, [r4, #32] <== NOT EXECUTED a00027c8: e3510000 cmp r1, #0 <== NOT EXECUTED a00027cc: 1affffa8 bne a0002674 <== NOT EXECUTED a00027d0: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED a00027d4: a001941b .word 0xa001941b a00027d8: a0019419 .word 0xa0019419 a00027dc: a00184c0 .word 0xa00184c0 a00336f8 : ) { rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); a00336f8: e59f3160 ldr r3, [pc, #352] ; a0033860 <== NOT EXECUTED #include int fchdir( int fd ) { a00336fc: 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 ); a0033700: e5933000 ldr r3, [r3] <== NOT EXECUTED #include int fchdir( int fd ) { a0033704: e24dd02c sub sp, sp, #44 ; 0x2c <== NOT EXECUTED rtems_libio_t *iop; rtems_filesystem_location_info_t loc, saved; rtems_libio_check_fd( fd ); a0033708: e1500003 cmp r0, r3 <== NOT EXECUTED a003370c: 2a000005 bcs a0033728 <== NOT EXECUTED iop = rtems_libio_iop( fd ); a0033710: e59f314c ldr r3, [pc, #332] ; a0033864 <== NOT EXECUTED a0033714: e5938000 ldr r8, [r3] <== NOT EXECUTED a0033718: e0888300 add r8, r8, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); a003371c: e5983014 ldr r3, [r8, #20] <== NOT EXECUTED a0033720: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0033724: 1a000002 bne a0033734 <== NOT EXECUTED a0033728: eb001714 bl a0039380 <__errno> <== NOT EXECUTED a003372c: e3a03009 mov r3, #9 <== NOT EXECUTED a0033730: ea000015 b a003378c <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); a0033734: e3130002 tst r3, #2 <== NOT EXECUTED a0033738: 1a000002 bne a0033748 <== NOT EXECUTED a003373c: eb00170f bl a0039380 <__errno> <== NOT EXECUTED a0033740: e3a03016 mov r3, #22 <== NOT EXECUTED a0033744: ea000010 b a003378c <== NOT EXECUTED /* * Verify you can change directory into this node. */ if ( !iop->pathinfo.ops ) { a0033748: e5983024 ldr r3, [r8, #36] ; 0x24 <== NOT EXECUTED a003374c: e3530000 cmp r3, #0 <== NOT EXECUTED a0033750: 0a000002 beq a0033760 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( !iop->pathinfo.ops->node_type_h ) { a0033754: e5933010 ldr r3, [r3, #16] <== NOT EXECUTED a0033758: e3530000 cmp r3, #0 <== NOT EXECUTED a003375c: 1a000002 bne a003376c <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0033760: eb001706 bl a0039380 <__errno> <== NOT EXECUTED a0033764: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0033768: ea000007 b a003378c <== NOT EXECUTED } if ( (*iop->pathinfo.ops->node_type_h)( &iop->pathinfo ) != a003376c: e2888018 add r8, r8, #24 <== NOT EXECUTED a0033770: e1a00008 mov r0, r8 <== NOT EXECUTED a0033774: e12fff33 blx r3 <== NOT EXECUTED a0033778: e3500001 cmp r0, #1 <== NOT EXECUTED a003377c: e1a07000 mov r7, r0 <== NOT EXECUTED a0033780: 0a000004 beq a0033798 <== NOT EXECUTED RTEMS_FILESYSTEM_DIRECTORY ) { rtems_set_errno_and_return_minus_one( ENOTDIR ); a0033784: eb0016fd bl a0039380 <__errno> <== NOT EXECUTED a0033788: e3a03014 mov r3, #20 <== NOT EXECUTED a003378c: e5803000 str r3, [r0] <== NOT EXECUTED a0033790: e3e0c000 mvn ip, #0 <== NOT EXECUTED a0033794: ea00002e b a0033854 <== NOT EXECUTED * but note the race condition. Threads who * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; a0033798: e59f40c8 ldr r4, [pc, #200] ; a0033868 <== NOT EXECUTED a003379c: e28de004 add lr, sp, #4 <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { a00337a0: 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; a00337a4: e5945000 ldr r5, [r4] <== NOT EXECUTED a00337a8: e285c004 add ip, r5, #4 <== NOT EXECUTED a00337ac: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED a00337b0: e8ae000f stmia lr!, {r0, r1, r2, r3} <== NOT EXECUTED a00337b4: e59c3000 ldr r3, [ip] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; a00337b8: 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; a00337bc: e58e3000 str r3, [lr] <== NOT EXECUTED rtems_filesystem_current = iop->pathinfo; a00337c0: e8b8000f ldm r8!, {r0, r1, r2, r3} <== NOT EXECUTED a00337c4: e8a5000f stmia r5!, {r0, r1, r2, r3} <== NOT EXECUTED a00337c8: e5983000 ldr r3, [r8] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { a00337cc: e1a01007 mov r1, r7 <== NOT EXECUTED a00337d0: e1a02006 mov r2, r6 <== NOT EXECUTED * share their rtems_filesystem_current better * be synchronized! */ saved = rtems_filesystem_current; rtems_filesystem_current = iop->pathinfo; a00337d4: e58c3000 str r3, [ip] <== NOT EXECUTED /* clone the current node */ if (rtems_filesystem_evaluate_path(".", 1, 0, &loc, 0)) { a00337d8: e59f008c ldr r0, [pc, #140] ; a003386c <== NOT EXECUTED a00337dc: e28d3018 add r3, sp, #24 <== NOT EXECUTED a00337e0: e58d6000 str r6, [sp] <== NOT EXECUTED a00337e4: ebff462f bl a00050a8 <== NOT EXECUTED a00337e8: e1500006 cmp r0, r6 <== NOT EXECUTED a00337ec: 0a000007 beq a0033810 <== NOT EXECUTED /* cloning failed; restore original and bail out */ rtems_filesystem_current = saved; a00337f0: e5944000 ldr r4, [r4] <== NOT EXECUTED a00337f4: e28dc004 add ip, sp, #4 <== NOT EXECUTED a00337f8: e8bc000f ldm ip!, {r0, r1, r2, r3} <== NOT EXECUTED a00337fc: e2844004 add r4, r4, #4 <== NOT EXECUTED a0033800: e8a4000f stmia r4!, {r0, r1, r2, r3} <== NOT EXECUTED a0033804: e59c3000 ldr r3, [ip] <== NOT EXECUTED a0033808: e3e0c000 mvn ip, #0 <== NOT EXECUTED a003380c: ea00000f b a0033850 <== NOT EXECUTED return -1; } /* release the old one */ rtems_filesystem_freenode( &saved ); a0033810: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0033814: e3530000 cmp r3, #0 <== NOT EXECUTED a0033818: 0a000004 beq a0033830 <== NOT EXECUTED a003381c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0033820: e3530000 cmp r3, #0 <== NOT EXECUTED a0033824: 0a000001 beq a0033830 <== NOT EXECUTED a0033828: e28d0004 add r0, sp, #4 <== NOT EXECUTED a003382c: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_current = loc; a0033830: e59fc030 ldr ip, [pc, #48] ; a0033868 <== NOT EXECUTED a0033834: e28d5018 add r5, sp, #24 <== NOT EXECUTED a0033838: e8b5000f ldm r5!, {r0, r1, r2, r3} <== NOT EXECUTED a003383c: e59c4000 ldr r4, [ip] <== NOT EXECUTED a0033840: e3a0c000 mov ip, #0 <== NOT EXECUTED a0033844: e2844004 add r4, r4, #4 <== NOT EXECUTED a0033848: e8a4000f stmia r4!, {r0, r1, r2, r3} <== NOT EXECUTED a003384c: e5953000 ldr r3, [r5] <== NOT EXECUTED a0033850: e5843000 str r3, [r4] <== NOT EXECUTED return 0; } a0033854: e1a0000c mov r0, ip <== NOT EXECUTED a0033858: e28dd02c add sp, sp, #44 ; 0x2c <== NOT EXECUTED a003385c: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED a0033860: a00532b0 .word 0xa00532b0 a0033864: a0060e8c .word 0xa0060e8c a0033868: a00535c8 .word 0xa00535c8 a003386c: a0058df5 .word 0xa0058df5 a0021fd0 : mode_t mode ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0021fd0: e59f307c ldr r3, [pc, #124] ; a0022054 <== NOT EXECUTED int fchmod( int fd, mode_t mode ) { a0021fd4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0021fd8: e5933000 ldr r3, [r3] <== NOT EXECUTED a0021fdc: e1500003 cmp r0, r3 <== NOT EXECUTED a0021fe0: 2a000005 bcs a0021ffc <== NOT EXECUTED iop = rtems_libio_iop( fd ); a0021fe4: e59f306c ldr r3, [pc, #108] ; a0022058 <== NOT EXECUTED a0021fe8: e5933000 ldr r3, [r3] <== NOT EXECUTED a0021fec: e0833300 add r3, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); a0021ff0: e5932014 ldr r2, [r3, #20] <== NOT EXECUTED a0021ff4: e3120c01 tst r2, #256 ; 0x100 <== NOT EXECUTED a0021ff8: 1a000002 bne a0022008 <== NOT EXECUTED a0021ffc: eb005cdf bl a0039380 <__errno> <== NOT EXECUTED a0022000: e3a03009 mov r3, #9 <== NOT EXECUTED a0022004: ea00000a b a0022034 <== NOT EXECUTED /* * Now process the fchmod(). */ rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a0022008: e3120004 tst r2, #4 <== NOT EXECUTED a002200c: 1a000002 bne a002201c <== NOT EXECUTED a0022010: eb005cda bl a0039380 <__errno> <== NOT EXECUTED a0022014: e3a03016 mov r3, #22 <== NOT EXECUTED a0022018: ea000005 b a0022034 <== NOT EXECUTED if ( !iop->handlers->fchmod_h ) a002201c: e593203c ldr r2, [r3, #60] ; 0x3c <== NOT EXECUTED a0022020: e592201c ldr r2, [r2, #28] <== NOT EXECUTED a0022024: e3520000 cmp r2, #0 <== NOT EXECUTED a0022028: 1a000004 bne a0022040 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a002202c: eb005cd3 bl a0039380 <__errno> <== NOT EXECUTED a0022030: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0022034: e5803000 str r3, [r0] <== NOT EXECUTED a0022038: e3e00000 mvn r0, #0 <== NOT EXECUTED a002203c: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->pathinfo.handlers->fchmod_h)( &iop->pathinfo, mode ); a0022040: e2830018 add r0, r3, #24 <== NOT EXECUTED a0022044: e5933020 ldr r3, [r3, #32] <== NOT EXECUTED a0022048: e1a0e00f mov lr, pc <== NOT EXECUTED a002204c: e593f01c ldr pc, [r3, #28] <== NOT EXECUTED } a0022050: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a0022054: a00532b0 .word 0xa00532b0 a0022058: a0060e8c .word 0xa0060e8c a002205c : gid_t group ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); a002205c: e59f3084 ldr r3, [pc, #132] ; a00220e8 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { a0022060: e1a01801 lsl r1, r1, #16 <== NOT EXECUTED a0022064: e1a02802 lsl r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0022068: e5933000 ldr r3, [r3] <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { a002206c: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0022070: e1500003 cmp r0, r3 <== NOT EXECUTED int fchown( int fd, uid_t owner, gid_t group ) { a0022074: e1a01821 lsr r1, r1, #16 <== NOT EXECUTED a0022078: e1a02822 lsr r2, r2, #16 <== NOT EXECUTED rtems_libio_t *iop; rtems_libio_check_fd( fd ); a002207c: 2a000005 bcs a0022098 <== NOT EXECUTED iop = rtems_libio_iop( fd ); a0022080: e59f3064 ldr r3, [pc, #100] ; a00220ec <== NOT EXECUTED a0022084: e5933000 ldr r3, [r3] <== NOT EXECUTED a0022088: e0830300 add r0, r3, r0, lsl #6 <== NOT EXECUTED rtems_libio_check_is_open(iop); a002208c: e5903014 ldr r3, [r0, #20] <== NOT EXECUTED a0022090: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0022094: 1a000002 bne a00220a4 <== NOT EXECUTED a0022098: eb005cb8 bl a0039380 <__errno> <== NOT EXECUTED a002209c: e3a03009 mov r3, #9 <== NOT EXECUTED a00220a0: ea00000a b a00220d0 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a00220a4: e3130004 tst r3, #4 <== NOT EXECUTED a00220a8: 1a000002 bne a00220b8 <== NOT EXECUTED a00220ac: eb005cb3 bl a0039380 <__errno> <== NOT EXECUTED a00220b0: e3a03016 mov r3, #22 <== NOT EXECUTED a00220b4: ea000005 b a00220d0 <== NOT EXECUTED if ( !iop->pathinfo.ops->chown_h ) a00220b8: e5903024 ldr r3, [r0, #36] ; 0x24 <== NOT EXECUTED a00220bc: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a00220c0: e3530000 cmp r3, #0 <== NOT EXECUTED a00220c4: 1a000004 bne a00220dc <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00220c8: eb005cac bl a0039380 <__errno> <== NOT EXECUTED a00220cc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00220d0: e5803000 str r3, [r0] <== NOT EXECUTED a00220d4: e3e00000 mvn r0, #0 <== NOT EXECUTED a00220d8: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED return (*iop->pathinfo.ops->chown_h)( &iop->pathinfo, owner, group ); a00220dc: e2800018 add r0, r0, #24 <== NOT EXECUTED a00220e0: e12fff33 blx r3 <== NOT EXECUTED } a00220e4: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a00220e8: a00532b0 .word 0xa00532b0 a00220ec: a0060e8c .word 0xa0060e8c a0033870 : int fcntl( int fd, int cmd, ... ) { a0033870: e92d000e push {r1, r2, r3} int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); a0033874: e59f21a4 ldr r2, [pc, #420] ; a0033a20 int fcntl( int fd, int cmd, ... ) { a0033878: e92d40f1 push {r0, r4, r5, r6, r7, lr} int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); a003387c: e5922000 ldr r2, [r2] ... ) { int ret; va_list ap; va_start( ap, cmd ); a0033880: e28d301c add r3, sp, #28 a0033884: e58d3000 str r3, [sp] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); a0033888: e1500002 cmp r0, r2 int fcntl( int fd, int cmd, ... ) { a003388c: e59d7018 ldr r7, [sp, #24] int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd ); a0033890: 2a000005 bcs a00338ac iop = rtems_libio_iop( fd ); a0033894: e59f1188 ldr r1, [pc, #392] ; a0033a24 a0033898: e591c000 ldr ip, [r1] a003389c: e08c4300 add r4, ip, r0, lsl #6 rtems_libio_check_is_open(iop); a00338a0: e5940014 ldr r0, [r4, #20] a00338a4: e3100c01 tst r0, #256 ; 0x100 a00338a8: 1a000002 bne a00338b8 a00338ac: eb0016b3 bl a0039380 <__errno> <== NOT EXECUTED a00338b0: e3a03009 mov r3, #9 <== NOT EXECUTED a00338b4: ea000045 b a00339d0 <== NOT EXECUTED /* * This switch should contain all the cases from POSIX. */ switch ( cmd ) { a00338b8: e3570009 cmp r7, #9 a00338bc: 979ff107 ldrls pc, [pc, r7, lsl #2] a00338c0: ea000040 b a00339c8 a00338c4: a00338ec .word 0xa00338ec <== NOT EXECUTED a00338c8: a0033958 .word 0xa0033958 <== NOT EXECUTED a00338cc: a0033964 .word 0xa0033964 <== NOT EXECUTED a00338d0: a0033984 .word 0xa0033984 <== NOT EXECUTED a00338d4: a0033990 .word 0xa0033990 <== NOT EXECUTED a00338d8: a00339bc .word 0xa00339bc <== NOT EXECUTED a00338dc: a00339bc .word 0xa00339bc <== NOT EXECUTED a00338e0: a00339bc .word 0xa00339bc <== NOT EXECUTED a00338e4: a00339bc .word 0xa00339bc <== NOT EXECUTED a00338e8: a00339bc .word 0xa00339bc <== NOT EXECUTED case F_DUPFD: /* dup */ fd2 = va_arg( ap, int ); a00338ec: e5933000 ldr r3, [r3] if ( fd2 ) a00338f0: e3530000 cmp r3, #0 a00338f4: 0a000003 beq a0033908 diop = rtems_libio_iop( fd2 ); a00338f8: e1530002 cmp r3, r2 <== NOT EXECUTED a00338fc: 23a0c000 movcs ip, #0 <== NOT EXECUTED a0033900: 308cc303 addcc ip, ip, r3, lsl #6 <== NOT EXECUTED a0033904: ea000002 b a0033914 <== NOT EXECUTED else { /* allocate a file control block */ diop = rtems_libio_allocate(); a0033908: ebff4707 bl a000552c if ( diop == 0 ) { a003390c: e250c000 subs ip, r0, #0 a0033910: 0a00003d beq a0033a0c } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; a0033914: e28c5018 add r5, ip, #24 a0033918: e2846018 add r6, r4, #24 a003391c: e8b6000f ldm r6!, {r0, r1, r2, r3} a0033920: e8a5000f stmia r5!, {r0, r1, r2, r3} ret = (int) (diop - rtems_libio_iops); a0033924: e59f30f8 ldr r3, [pc, #248] ; a0033a24 } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; a0033928: e5966000 ldr r6, [r6] ret = -1; break; } } diop->handlers = iop->handlers; a003392c: e594003c ldr r0, [r4, #60] ; 0x3c diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); a0033930: e5933000 ldr r3, [r3] break; } } diop->handlers = iop->handlers; diop->file_info = iop->file_info; a0033934: e5941038 ldr r1, [r4, #56] ; 0x38 diop->flags = iop->flags; a0033938: e5942014 ldr r2, [r4, #20] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); a003393c: e063300c rsb r3, r3, ip } diop->handlers = iop->handlers; diop->file_info = iop->file_info; diop->flags = iop->flags; diop->pathinfo = iop->pathinfo; a0033940: e5856000 str r6, [r5] ret = -1; break; } } diop->handlers = iop->handlers; a0033944: e58c003c str r0, [ip, #60] ; 0x3c diop->file_info = iop->file_info; a0033948: e58c1038 str r1, [ip, #56] ; 0x38 diop->flags = iop->flags; a003394c: e58c2014 str r2, [ip, #20] diop->pathinfo = iop->pathinfo; ret = (int) (diop - rtems_libio_iops); a0033950: e1a05343 asr r5, r3, #6 a0033954: ea00001f b a00339d8 break; case F_GETFD: /* get f_flags */ ret = ((iop->flags & LIBIO_FLAGS_CLOSE_ON_EXEC) != 0); a0033958: e1a055a0 lsr r5, r0, #11 a003395c: e2055001 and r5, r5, #1 a0033960: ea00001e b a00339e0 * 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 ) ) a0033964: e5935000 ldr r5, [r3] a0033968: e3550000 cmp r5, #0 iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC; a003396c: 13800b02 orrne r0, r0, #2048 ; 0x800 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; a0033970: 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; a0033974: 15840014 strne r0, [r4, #20] a0033978: 13a05000 movne r5, #0 else iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC; a003397c: 05840014 streq r0, [r4, #20] a0033980: ea000016 b a00339e0 break; case F_GETFL: /* more flags (cloexec) */ ret = rtems_libio_to_fcntl_flags( iop->flags ); a0033984: ebff467e bl a0005384 a0033988: e1a05000 mov r5, r0 a003398c: ea000011 b a00339d8 break; case F_SETFL: flags = rtems_libio_fcntl_flags( va_arg( ap, int ) ); a0033990: e5930000 ldr r0, [r3] a0033994: ebff4711 bl a00055e0 /* * XXX If we are turning on append, should we seek to the end? */ iop->flags = (iop->flags & ~mask) | (flags & mask); a0033998: e5943014 ldr r3, [r4, #20] a003399c: e59f2084 ldr r2, [pc, #132] ; a0033a28 a00339a0: e3a05000 mov r5, #0 a00339a4: e3c33c02 bic r3, r3, #512 ; 0x200 a00339a8: e0002002 and r2, r0, r2 a00339ac: e3c33001 bic r3, r3, #1 a00339b0: e1823003 orr r3, r2, r3 a00339b4: e5843014 str r3, [r4, #20] a00339b8: ea000008 b a00339e0 errno = ENOTSUP; ret = -1; break; case F_GETOWN: /* for sockets. */ errno = ENOTSUP; a00339bc: eb00166f bl a0039380 <__errno> a00339c0: e3a03086 mov r3, #134 ; 0x86 a00339c4: ea000001 b a00339d0 ret = -1; break; default: errno = EINVAL; a00339c8: eb00166c bl a0039380 <__errno> a00339cc: e3a03016 mov r3, #22 a00339d0: e5803000 str r3, [r0] a00339d4: ea00000c b a0033a0c /* * If we got this far successfully, then we give the optional * filesystem specific handler a chance to process this. */ if (ret >= 0) { a00339d8: e3550000 cmp r5, #0 a00339dc: ba00000b blt a0033a10 if (iop->handlers->fcntl_h) { a00339e0: e594303c ldr r3, [r4, #60] ; 0x3c a00339e4: e5933030 ldr r3, [r3, #48] ; 0x30 a00339e8: e3530000 cmp r3, #0 a00339ec: 0a000007 beq a0033a10 int err = (*iop->handlers->fcntl_h)( cmd, iop ); a00339f0: e1a01004 mov r1, r4 a00339f4: e1a00007 mov r0, r7 a00339f8: e12fff33 blx r3 if (err) { a00339fc: e2504000 subs r4, r0, #0 a0033a00: 0a000002 beq a0033a10 errno = err; a0033a04: eb00165d bl a0039380 <__errno> <== NOT EXECUTED a0033a08: e5804000 str r4, [r0] <== NOT EXECUTED a0033a0c: e3e05000 mvn r5, #0 va_list ap; va_start( ap, cmd ); ret = vfcntl(fd,cmd,ap); va_end(ap); return ret; } a0033a10: e1a00005 mov r0, r5 a0033a14: e8bd40f8 pop {r3, r4, r5, r6, r7, lr} a0033a18: e28dd00c add sp, sp, #12 a0033a1c: e12fff1e bx lr a0033a20: a00532b0 .word 0xa00532b0 a0033a24: a0060e8c .word 0xa0060e8c a0033a28: 00000201 .word 0x00000201 a000ad78 : ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, a000ad78: e59f337c ldr r3, [pc, #892] ; a000b0fc */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { a000ad7c: e92d45f7 push {r0, r1, r2, r4, r5, r6, r7, r8, sl, lr} a000ad80: e1a08001 mov r8, r1 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, a000ad84: e3a01000 mov r1, #0 */ int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) { a000ad88: e1a07000 mov r7, r0 ) { pipe_control_t *pipe; int err = 0; if (rtems_semaphore_obtain(rtems_pipe_semaphore, a000ad8c: e1a02001 mov r2, r1 a000ad90: e5930000 ldr r0, [r3] a000ad94: ebffe4fc bl a000418c a000ad98: e250a000 subs sl, r0, #0 a000ad9c: 13e06003 mvnne r6, #3 a000ada0: 1a0000d3 bne a000b0f4 RTEMS_WAIT, RTEMS_NO_TIMEOUT) != RTEMS_SUCCESSFUL) return -EINTR; pipe = *pipep; a000ada4: e5974000 ldr r4, [r7] <== NOT EXECUTED if (pipe == NULL) { a000ada8: e3540000 cmp r4, #0 <== NOT EXECUTED a000adac: 1a00004f bne a000aef0 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); a000adb0: e3a00034 mov r0, #52 ; 0x34 <== NOT EXECUTED a000adb4: ebfff7a3 bl a0008c48 <== NOT EXECUTED if (pipe == NULL) a000adb8: e3500000 cmp r0, #0 <== NOT EXECUTED { static char c = 'a'; pipe_control_t *pipe; int err = -ENOMEM; pipe = malloc(sizeof(pipe_control_t)); a000adbc: e1a05000 mov r5, r0 <== NOT EXECUTED a000adc0: e1a04000 mov r4, r0 <== NOT EXECUTED if (pipe == NULL) a000adc4: 03e0600b mvneq r6, #11 <== NOT EXECUTED a000adc8: 0a000057 beq a000af2c <== NOT EXECUTED return err; memset(pipe, 0, sizeof(pipe_control_t)); a000adcc: e1a0100a mov r1, sl <== NOT EXECUTED a000add0: e3a02034 mov r2, #52 ; 0x34 <== NOT EXECUTED a000add4: eb00093d bl a000d2d0 <== NOT EXECUTED pipe->Size = PIPE_BUF; a000add8: e3a03c02 mov r3, #512 ; 0x200 <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); a000addc: 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; a000ade0: e5853004 str r3, [r5, #4] <== NOT EXECUTED pipe->Buffer = malloc(pipe->Size); a000ade4: ebfff797 bl a0008c48 <== NOT EXECUTED if (! pipe->Buffer) a000ade8: 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); a000adec: e5850000 str r0, [r5] <== NOT EXECUTED if (! pipe->Buffer) a000adf0: 03e0600b mvneq r6, #11 <== NOT EXECUTED a000adf4: 0a00003a beq a000aee4 <== NOT EXECUTED goto err_buf; err = -EINTR; if (rtems_barrier_create( a000adf8: e59f6300 ldr r6, [pc, #768] ; a000b100 <== NOT EXECUTED a000adfc: e59f0300 ldr r0, [pc, #768] ; a000b104 <== NOT EXECUTED a000ae00: e1a0100a mov r1, sl <== NOT EXECUTED a000ae04: e5d6c000 ldrb ip, [r6] <== NOT EXECUTED a000ae08: e1a0200a mov r2, sl <== NOT EXECUTED a000ae0c: e285302c add r3, r5, #44 ; 0x2c <== NOT EXECUTED a000ae10: e18c0000 orr r0, ip, r0 <== NOT EXECUTED a000ae14: eb00028e bl a000b854 <== NOT EXECUTED a000ae18: e2501000 subs r1, r0, #0 <== NOT EXECUTED a000ae1c: 1a00002d bne a000aed8 <== 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( a000ae20: e5d63000 ldrb r3, [r6] <== NOT EXECUTED a000ae24: e59f02dc ldr r0, [pc, #732] ; a000b108 <== NOT EXECUTED a000ae28: e1a02001 mov r2, r1 <== NOT EXECUTED a000ae2c: e1830000 orr r0, r3, r0 <== NOT EXECUTED a000ae30: e2853030 add r3, r5, #48 ; 0x30 <== NOT EXECUTED a000ae34: eb000286 bl a000b854 <== NOT EXECUTED a000ae38: e2503000 subs r3, r0, #0 <== NOT EXECUTED a000ae3c: 1a000023 bne a000aed0 <== 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( a000ae40: e5d62000 ldrb r2, [r6] <== NOT EXECUTED a000ae44: e59f02c0 ldr r0, [pc, #704] ; a000b10c <== NOT EXECUTED a000ae48: e285c028 add ip, r5, #40 ; 0x28 <== NOT EXECUTED a000ae4c: e3a01001 mov r1, #1 <== NOT EXECUTED a000ae50: e1820000 orr r0, r2, r0 <== NOT EXECUTED a000ae54: e3a02010 mov r2, #16 <== NOT EXECUTED a000ae58: e58dc000 str ip, [sp] <== NOT EXECUTED a000ae5c: ebffe438 bl a0003f44 <== NOT EXECUTED a000ae60: e3500000 cmp r0, #0 <== NOT EXECUTED a000ae64: 1a000017 bne a000aec8 <== NOT EXECUTED RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get ( Objects_Id id, Objects_Locations *location ) { return (Barrier_Control *) a000ae68: e28d5004 add r5, sp, #4 <== NOT EXECUTED a000ae6c: e594102c ldr r1, [r4, #44] ; 0x2c <== NOT EXECUTED a000ae70: e1a02005 mov r2, r5 <== NOT EXECUTED a000ae74: e59f0294 ldr r0, [pc, #660] ; a000b110 <== NOT EXECUTED a000ae78: ebffea54 bl a00057d0 <_Objects_Get> <== NOT EXECUTED /* Set barriers to be interruptible by signals. */ static void pipe_interruptible(pipe_control_t *pipe) { Objects_Locations location; _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state a000ae7c: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED a000ae80: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED a000ae84: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); a000ae88: ebffec73 bl a000605c <_Thread_Enable_dispatch> <== NOT EXECUTED a000ae8c: e1a02005 mov r2, r5 <== NOT EXECUTED a000ae90: e5941030 ldr r1, [r4, #48] ; 0x30 <== NOT EXECUTED a000ae94: e59f0274 ldr r0, [pc, #628] ; a000b110 <== NOT EXECUTED a000ae98: ebffea4c bl a00057d0 <_Objects_Get> <== NOT EXECUTED _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state a000ae9c: e590304c ldr r3, [r0, #76] ; 0x4c <== NOT EXECUTED a000aea0: e3833201 orr r3, r3, #268435456 ; 0x10000000 <== NOT EXECUTED a000aea4: e580304c str r3, [r0, #76] ; 0x4c <== NOT EXECUTED |= STATES_INTERRUPTIBLE_BY_SIGNAL; _Thread_Enable_dispatch(); a000aea8: ebffec6b bl a000605c <_Thread_Enable_dispatch> <== NOT EXECUTED #ifdef RTEMS_POSIX_API pipe_interruptible(pipe); #endif *pipep = pipe; if (c ++ == 'z') a000aeac: e5d63000 ldrb r3, [r6] <== NOT EXECUTED a000aeb0: e353007a cmp r3, #122 ; 0x7a <== NOT EXECUTED a000aeb4: e2833001 add r3, r3, #1 <== NOT EXECUTED a000aeb8: e5c63000 strb r3, [r6] <== NOT EXECUTED c = 'a'; a000aebc: 03a03061 moveq r3, #97 ; 0x61 <== NOT EXECUTED a000aec0: 05c63000 strbeq r3, [r6] <== NOT EXECUTED a000aec4: ea000009 b a000aef0 <== NOT EXECUTED return 0; err_sem: rtems_barrier_delete(pipe->writeBarrier); a000aec8: e5950030 ldr r0, [r5, #48] ; 0x30 <== NOT EXECUTED a000aecc: eb00028e bl a000b90c <== NOT EXECUTED err_wbar: rtems_barrier_delete(pipe->readBarrier); a000aed0: e595002c ldr r0, [r5, #44] ; 0x2c <== NOT EXECUTED a000aed4: eb00028c bl a000b90c <== NOT EXECUTED err_rbar: free(pipe->Buffer); a000aed8: e5950000 ldr r0, [r5] <== NOT EXECUTED a000aedc: ebfff60e bl a000871c <== NOT EXECUTED a000aee0: e3e06003 mvn r6, #3 <== NOT EXECUTED err_buf: free(pipe); a000aee4: e1a00005 mov r0, r5 <== NOT EXECUTED a000aee8: ebfff60b bl a000871c <== NOT EXECUTED a000aeec: ea00000e b a000af2c <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) a000aef0: e3a01000 mov r1, #0 <== NOT EXECUTED a000aef4: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000aef8: e1a02001 mov r2, r1 <== NOT EXECUTED a000aefc: ebffe4a2 bl a000418c <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { a000af00: e5973000 ldr r3, [r7] <== NOT EXECUTED err = pipe_alloc(&pipe); if (err) goto out; } if (! PIPE_LOCK(pipe)) a000af04: e3500000 cmp r0, #0 <== NOT EXECUTED a000af08: 01a06000 moveq r6, r0 <== NOT EXECUTED a000af0c: 13e06003 mvnne r6, #3 <== NOT EXECUTED err = -EINTR; if (*pipep == NULL) { a000af10: e3530000 cmp r3, #0 <== NOT EXECUTED a000af14: 1a000004 bne a000af2c <== NOT EXECUTED if (err) a000af18: e3560000 cmp r6, #0 <== NOT EXECUTED pipe_free(pipe); else *pipep = pipe; a000af1c: 05874000 streq r4, [r7] <== NOT EXECUTED if (! PIPE_LOCK(pipe)) err = -EINTR; if (*pipep == NULL) { if (err) a000af20: 0a000001 beq a000af2c <== NOT EXECUTED pipe_free(pipe); a000af24: e1a00004 mov r0, r4 <== NOT EXECUTED a000af28: ebffff46 bl a000ac48 <== NOT EXECUTED else *pipep = pipe; } out: rtems_semaphore_release(rtems_pipe_semaphore); a000af2c: e59f31c8 ldr r3, [pc, #456] ; a000b0fc <== NOT EXECUTED a000af30: e5930000 ldr r0, [r3] <== NOT EXECUTED a000af34: ebffe4da bl a00042a4 <== NOT EXECUTED pipe_control_t *pipe; uint prevCounter; int err; err = pipe_new(pipep); if (err) a000af38: e3560000 cmp r6, #0 <== NOT EXECUTED a000af3c: 1a00006c bne a000b0f4 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { a000af40: e5982014 ldr r2, [r8, #20] <== NOT EXECUTED int err; err = pipe_new(pipep); if (err) return err; pipe = *pipep; a000af44: e5974000 ldr r4, [r7] <== NOT EXECUTED switch (LIBIO_ACCMODE(iop)) { a000af48: e2023006 and r3, r2, #6 <== NOT EXECUTED a000af4c: e3530004 cmp r3, #4 <== NOT EXECUTED a000af50: 0a000025 beq a000afec <== NOT EXECUTED a000af54: e3530006 cmp r3, #6 <== NOT EXECUTED a000af58: 0a000048 beq a000b080 <== NOT EXECUTED a000af5c: e3530002 cmp r3, #2 <== NOT EXECUTED a000af60: 1a00005c bne a000b0d8 <== NOT EXECUTED case LIBIO_FLAGS_READ: pipe->readerCounter ++; if (pipe->Readers ++ == 0) a000af64: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; a000af68: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) a000af6c: e3530000 cmp r3, #0 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; a000af70: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) a000af74: e2833001 add r3, r3, #1 <== NOT EXECUTED return err; pipe = *pipep; switch (LIBIO_ACCMODE(iop)) { case LIBIO_FLAGS_READ: pipe->readerCounter ++; a000af78: e5842020 str r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) a000af7c: e5843010 str r3, [r4, #16] <== NOT EXECUTED a000af80: 1a000002 bne a000af90 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); a000af84: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000af88: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000af8c: eb000276 bl a000b96c <== NOT EXECUTED if (pipe->Writers == 0) { a000af90: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000af94: e3530000 cmp r3, #0 <== NOT EXECUTED a000af98: 1a00004e bne a000b0d8 <== NOT EXECUTED /* Not an error */ if (LIBIO_NODELAY(iop)) a000af9c: e5983014 ldr r3, [r8, #20] <== NOT EXECUTED a000afa0: e3130001 tst r3, #1 <== NOT EXECUTED a000afa4: 1a00004b bne a000b0d8 <== NOT EXECUTED break; prevCounter = pipe->writerCounter; a000afa8: e5945024 ldr r5, [r4, #36] ; 0x24 <== NOT EXECUTED err = -EINTR; /* Wait until a writer opens the pipe */ do { PIPE_UNLOCK(pipe); a000afac: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000afb0: ebffe4bb bl a00042a4 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) a000afb4: e3a01000 mov r1, #0 <== NOT EXECUTED a000afb8: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000afbc: eb000280 bl a000b9c4 <== NOT EXECUTED a000afc0: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) a000afc4: 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)) a000afc8: 1a000045 bne a000b0e4 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) a000afcc: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000afd0: ebffe46d bl a000418c <== NOT EXECUTED a000afd4: e3500000 cmp r0, #0 <== NOT EXECUTED a000afd8: 1a000041 bne a000b0e4 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->writerCounter); a000afdc: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a000afe0: e1550003 cmp r5, r3 <== NOT EXECUTED a000afe4: 0afffff0 beq a000afac <== NOT EXECUTED a000afe8: ea00003a b a000b0d8 <== NOT EXECUTED } break; case LIBIO_FLAGS_WRITE: if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { a000afec: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000aff0: e3530000 cmp r3, #0 <== NOT EXECUTED a000aff4: 1a000002 bne a000b004 <== NOT EXECUTED a000aff8: e3120001 tst r2, #1 <== NOT EXECUTED a000affc: 13e06005 mvnne r6, #5 <== NOT EXECUTED a000b000: 1a000038 bne a000b0e8 <== NOT EXECUTED err = -ENXIO; goto out_error; } pipe->writerCounter ++; if (pipe->Writers ++ == 0) a000b004: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; a000b008: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000b00c: e3530000 cmp r3, #0 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; a000b010: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000b014: e2833001 add r3, r3, #1 <== NOT EXECUTED if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) { err = -ENXIO; goto out_error; } pipe->writerCounter ++; a000b018: e5842024 str r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000b01c: e5843014 str r3, [r4, #20] <== NOT EXECUTED a000b020: 1a000002 bne a000b030 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); a000b024: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000b028: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000b02c: eb00024e bl a000b96c <== NOT EXECUTED if (pipe->Readers == 0) { a000b030: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000b034: e3530000 cmp r3, #0 <== NOT EXECUTED a000b038: 1a000026 bne a000b0d8 <== NOT EXECUTED prevCounter = pipe->readerCounter; a000b03c: e5945020 ldr r5, [r4, #32] <== NOT EXECUTED err = -EINTR; do { PIPE_UNLOCK(pipe); a000b040: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000b044: ebffe496 bl a00042a4 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) a000b048: e3a01000 mov r1, #0 <== NOT EXECUTED a000b04c: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000b050: eb00025b bl a000b9c4 <== NOT EXECUTED a000b054: e2501000 subs r1, r0, #0 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) a000b058: e1a02001 mov r2, r1 <== NOT EXECUTED if (pipe->Readers == 0) { prevCounter = pipe->readerCounter; err = -EINTR; do { PIPE_UNLOCK(pipe); if (! PIPE_WRITEWAIT(pipe)) a000b05c: 1a000020 bne a000b0e4 <== NOT EXECUTED goto out_error; if (! PIPE_LOCK(pipe)) a000b060: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000b064: ebffe448 bl a000418c <== NOT EXECUTED a000b068: e3500000 cmp r0, #0 <== NOT EXECUTED a000b06c: 1a00001c bne a000b0e4 <== NOT EXECUTED goto out_error; } while (prevCounter == pipe->readerCounter); a000b070: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a000b074: e1550003 cmp r5, r3 <== NOT EXECUTED a000b078: 0afffff0 beq a000b040 <== NOT EXECUTED a000b07c: ea000015 b a000b0d8 <== NOT EXECUTED } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) a000b080: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; a000b084: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) a000b088: e3530000 cmp r3, #0 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; a000b08c: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Readers ++ == 0) a000b090: e2833001 add r3, r3, #1 <== NOT EXECUTED } while (prevCounter == pipe->readerCounter); } break; case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; a000b094: e5842020 str r2, [r4, #32] <== NOT EXECUTED if (pipe->Readers ++ == 0) a000b098: e5843010 str r3, [r4, #16] <== NOT EXECUTED a000b09c: 1a000002 bne a000b0ac <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); a000b0a0: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000b0a4: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000b0a8: eb00022f bl a000b96c <== NOT EXECUTED pipe->writerCounter ++; if (pipe->Writers ++ == 0) a000b0ac: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; a000b0b0: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000b0b4: e3530000 cmp r3, #0 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; a000b0b8: e2822001 add r2, r2, #1 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000b0bc: e2833001 add r3, r3, #1 <== NOT EXECUTED case LIBIO_FLAGS_READ_WRITE: pipe->readerCounter ++; if (pipe->Readers ++ == 0) PIPE_WAKEUPWRITERS(pipe); pipe->writerCounter ++; a000b0c0: e5842024 str r2, [r4, #36] ; 0x24 <== NOT EXECUTED if (pipe->Writers ++ == 0) a000b0c4: e5843014 str r3, [r4, #20] <== NOT EXECUTED a000b0c8: 1a000002 bne a000b0d8 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); a000b0cc: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000b0d0: e28d1008 add r1, sp, #8 <== NOT EXECUTED a000b0d4: eb000224 bl a000b96c <== NOT EXECUTED break; } PIPE_UNLOCK(pipe); a000b0d8: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000b0dc: ebffe470 bl a00042a4 <== NOT EXECUTED return 0; a000b0e0: ea000003 b a000b0f4 <== NOT EXECUTED a000b0e4: e3e06003 mvn r6, #3 <== NOT EXECUTED out_error: pipe_release(pipep, iop); a000b0e8: e1a00007 mov r0, r7 <== NOT EXECUTED a000b0ec: e1a01008 mov r1, r8 <== NOT EXECUTED a000b0f0: ebfffee1 bl a000ac7c <== NOT EXECUTED return err; } a000b0f4: e1a00006 mov r0, r6 a000b0f8: e8bd85fe pop {r1, r2, r3, r4, r5, r6, r7, r8, sl, pc} a000b0fc: a0019acc .word 0xa0019acc a000b100: a00184ac .word 0xa00184ac a000b104: 50497200 .word 0x50497200 a000b108: 50497700 .word 0x50497700 a000b10c: 50497300 .word 0x50497300 a000b110: a001a5c4 .word 0xa001a5c4 a00085b8 : /* * Search the mount table for any mount entries referencing this * mount entry. */ for ( the_node = rtems_filesystem_mount_table_control.first; a00085b8: e59f3030 ldr r3, [pc, #48] ; a00085f0 <== NOT EXECUTED a00085bc: e4932004 ldr r2, [r3], #4 <== NOT EXECUTED a00085c0: ea000006 b a00085e0 <== 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 ) { a00085c4: e592c018 ldr ip, [r2, #24] <== NOT EXECUTED a00085c8: e5910010 ldr r0, [r1, #16] <== NOT EXECUTED a00085cc: e15c0000 cmp ip, r0 <== NOT EXECUTED a00085d0: 1a000001 bne a00085dc <== NOT EXECUTED a00085d4: e3a00001 mov r0, #1 <== NOT EXECUTED a00085d8: 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 ) { a00085dc: e5922000 ldr r2, [r2] <== NOT EXECUTED a00085e0: e1520003 cmp r2, r3 <== NOT EXECUTED a00085e4: 1afffff6 bne a00085c4 <== NOT EXECUTED a00085e8: e3a00000 mov r0, #0 <== NOT EXECUTED return true; } } return false; } a00085ec: e12fff1e bx lr <== NOT EXECUTED a00085f0: a0060ed0 .word 0xa0060ed0 a0002310 : { long return_value; rtems_libio_t *iop; rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd); a0002310: e59f3100 ldr r3, [pc, #256] ; a0002418 long fpathconf( int fd, int name ) { a0002314: 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); a0002318: e5933000 ldr r3, [r3] a000231c: e1500003 cmp r0, r3 a0002320: 2a000005 bcs a000233c iop = rtems_libio_iop(fd); a0002324: e59f30f0 ldr r3, [pc, #240] ; a000241c a0002328: e5933000 ldr r3, [r3] a000232c: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); a0002330: e5903014 ldr r3, [r0, #20] a0002334: e3130c01 tst r3, #256 ; 0x100 a0002338: 1a000002 bne a0002348 a000233c: eb003324 bl a000efd4 <__errno> a0002340: e3a03009 mov r3, #9 a0002344: ea000003 b a0002358 rtems_libio_check_permissions(iop, LIBIO_FLAGS_READ); a0002348: e3130002 tst r3, #2 a000234c: 1a000004 bne a0002364 a0002350: eb00331f bl a000efd4 <__errno> <== NOT EXECUTED a0002354: e3a03016 mov r3, #22 <== NOT EXECUTED a0002358: e5803000 str r3, [r0] a000235c: e3e00000 mvn r0, #0 a0002360: e49df004 pop {pc} ; (ldr pc, [sp], #4) /* * Now process the information request. */ the_limits = &iop->pathinfo.mt_entry->pathconf_limits_and_options; a0002364: e5903028 ldr r3, [r0, #40] ; 0x28 switch ( name ) { a0002368: e351000b cmp r1, #11 a000236c: 979ff101 ldrls pc, [pc, r1, lsl #2] a0002370: ea000023 b a0002404 a0002374: a00023a4 .word 0xa00023a4 <== NOT EXECUTED a0002378: a00023ac .word 0xa00023ac <== NOT EXECUTED a000237c: a00023b4 .word 0xa00023b4 <== NOT EXECUTED a0002380: a00023bc .word 0xa00023bc <== NOT EXECUTED a0002384: a00023c4 .word 0xa00023c4 <== NOT EXECUTED a0002388: a00023cc .word 0xa00023cc <== NOT EXECUTED a000238c: a00023d4 .word 0xa00023d4 <== NOT EXECUTED a0002390: a00023dc .word 0xa00023dc <== NOT EXECUTED a0002394: a00023e4 .word 0xa00023e4 <== NOT EXECUTED a0002398: a00023ec .word 0xa00023ec <== NOT EXECUTED a000239c: a00023f4 .word 0xa00023f4 <== NOT EXECUTED a00023a0: a00023fc .word 0xa00023fc <== NOT EXECUTED case _PC_LINK_MAX: return_value = the_limits->link_max; a00023a4: e5930038 ldr r0, [r3, #56] ; 0x38 break; a00023a8: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_MAX_CANON: return_value = the_limits->max_canon; a00023ac: e593003c ldr r0, [r3, #60] ; 0x3c break; a00023b0: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_MAX_INPUT: return_value = the_limits->max_input; a00023b4: e5930040 ldr r0, [r3, #64] ; 0x40 break; a00023b8: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_NAME_MAX: return_value = the_limits->name_max; a00023bc: e5930044 ldr r0, [r3, #68] ; 0x44 break; a00023c0: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PATH_MAX: return_value = the_limits->path_max; a00023c4: e5930048 ldr r0, [r3, #72] ; 0x48 break; a00023c8: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PIPE_BUF: return_value = the_limits->pipe_buf; a00023cc: e593004c ldr r0, [r3, #76] ; 0x4c break; a00023d0: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_CHOWN_RESTRICTED: return_value = the_limits->posix_chown_restrictions; a00023d4: e5930054 ldr r0, [r3, #84] ; 0x54 break; a00023d8: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_NO_TRUNC: return_value = the_limits->posix_no_trunc; a00023dc: e5930058 ldr r0, [r3, #88] ; 0x58 break; a00023e0: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_VDISABLE: return_value = the_limits->posix_vdisable; a00023e4: e5930064 ldr r0, [r3, #100] ; 0x64 break; a00023e8: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_ASYNC_IO: return_value = the_limits->posix_async_io; a00023ec: e5930050 ldr r0, [r3, #80] ; 0x50 break; a00023f0: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_PRIO_IO: return_value = the_limits->posix_prio_io; a00023f4: e593005c ldr r0, [r3, #92] ; 0x5c break; a00023f8: e49df004 pop {pc} ; (ldr pc, [sp], #4) case _PC_SYNC_IO: return_value = the_limits->posix_sync_io; a00023fc: e5930060 ldr r0, [r3, #96] ; 0x60 break; a0002400: e49df004 pop {pc} ; (ldr pc, [sp], #4) default: rtems_set_errno_and_return_minus_one( EINVAL ); a0002404: eb0032f2 bl a000efd4 <__errno> a0002408: e3a03016 mov r3, #22 a000240c: e5803000 str r3, [r0] a0002410: e3e00000 mvn r0, #0 break; } return return_value; } a0002414: e49df004 pop {pc} ; (ldr pc, [sp], #4) a0002418: a001bc30 .word 0xa001bc30 a000241c: a001d8b4 .word 0xa001d8b4 a000871c : void free( void *ptr ) { MSBUMP(free_calls, 1); a000871c: e59f3090 ldr r3, [pc, #144] ; a00087b4 a0008720: e92d4030 push {r4, r5, lr} a0008724: e593200c ldr r2, [r3, #12] if ( !ptr ) a0008728: e2504000 subs r4, r0, #0 void free( void *ptr ) { MSBUMP(free_calls, 1); a000872c: e2822001 add r2, r2, #1 a0008730: e583200c str r2, [r3, #12] if ( !ptr ) a0008734: 0a00001d beq a00087b0 /* * Do not attempt to free memory if in a critical section or ISR. */ if ( _System_state_Is_up(_System_state_Get()) && a0008738: e59f3078 ldr r3, [pc, #120] ; a00087b8 a000873c: e5933000 ldr r3, [r3] a0008740: e3530003 cmp r3, #3 a0008744: 1a000005 bne a0008760 a0008748: eb00011e bl a0008bc8 a000874c: e3500000 cmp r0, #0 a0008750: 1a000002 bne a0008760 !malloc_is_system_state_OK() ) { malloc_deferred_free(ptr); a0008754: e1a00004 mov r0, r4 <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } a0008758: 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); a000875c: ea00012c b a0008c14 <== NOT EXECUTED #endif /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) a0008760: e59f3054 ldr r3, [pc, #84] ; a00087bc a0008764: e5933000 ldr r3, [r3] a0008768: e3530000 cmp r3, #0 a000876c: 0a000002 beq a000877c (*rtems_malloc_statistics_helpers->at_free)(ptr); a0008770: e1a00004 mov r0, r4 <== NOT EXECUTED a0008774: e1a0e00f mov lr, pc <== NOT EXECUTED a0008778: e593f008 ldr pc, [r3, #8] <== NOT EXECUTED if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) { a000877c: e59f503c ldr r5, [pc, #60] ; a00087c0 a0008780: e1a01004 mov r1, r4 a0008784: e5950000 ldr r0, [r5] a0008788: eb00068c bl a000a1c0 <_Protected_heap_Free> a000878c: e3500000 cmp r0, #0 a0008790: 1a000006 bne a00087b0 printk( "Program heap: free of bad pointer %p -- range %p - %p \n", ptr, RTEMS_Malloc_Heap->area_begin, a0008794: 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", a0008798: e59f0024 ldr r0, [pc, #36] ; a00087c4 <== NOT EXECUTED a000879c: e1a01004 mov r1, r4 <== NOT EXECUTED a00087a0: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a00087a4: e5922018 ldr r2, [r2, #24] <== NOT EXECUTED RTEMS_Malloc_Heap->area_begin, RTEMS_Malloc_Heap->area_end ); } } a00087a8: 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", a00087ac: eaffe574 b a0001d84 <== NOT EXECUTED a00087b0: e8bd8030 pop {r4, r5, pc} a00087b4: a0019b58 .word 0xa0019b58 a00087b8: a0019e70 .word 0xa0019e70 a00087bc: a00198e8 .word 0xa00198e8 a00087c0: a001824c .word 0xa001824c a00087c4: a00195d3 .word 0xa00195d3 a002334c : static void free_user_env(void *venv) { rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env a002334c: e59f305c ldr r3, [pc, #92] ; a00233b0 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { a0023350: e92d4010 push {r4, lr} <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env a0023354: e1500003 cmp r0, r3 <== NOT EXECUTED * NOTE: this must be called with * thread dispatching disabled! */ static void free_user_env(void *venv) { a0023358: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_user_env_t *env = (rtems_user_env_t*) venv ; if (env != &rtems_global_user_env a002335c: 0a000012 beq a00233ac <== NOT EXECUTED #ifdef HAVE_USERENV_REFCNT && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); a0023360: e5903010 ldr r3, [r0, #16] <== NOT EXECUTED a0023364: e3530000 cmp r3, #0 <== NOT EXECUTED a0023368: 0a000004 beq a0023380 <== NOT EXECUTED a002336c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0023370: e3530000 cmp r3, #0 <== NOT EXECUTED a0023374: 0a000001 beq a0023380 <== NOT EXECUTED a0023378: e2800004 add r0, r0, #4 <== NOT EXECUTED a002337c: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_freenode( &env->root_directory); a0023380: e5943024 ldr r3, [r4, #36] ; 0x24 <== NOT EXECUTED a0023384: e3530000 cmp r3, #0 <== NOT EXECUTED a0023388: 0a000004 beq a00233a0 <== NOT EXECUTED a002338c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0023390: e3530000 cmp r3, #0 <== NOT EXECUTED a0023394: 0a000001 beq a00233a0 <== NOT EXECUTED a0023398: e2840018 add r0, r4, #24 <== NOT EXECUTED a002339c: e12fff33 blx r3 <== NOT EXECUTED free(env); a00233a0: e1a00004 mov r0, r4 <== NOT EXECUTED } } a00233a4: e8bd4010 pop {r4, lr} <== NOT EXECUTED && --env->refcnt <= 0 #endif ) { rtems_filesystem_freenode( &env->current_directory); rtems_filesystem_freenode( &env->root_directory); free(env); a00233a8: eaff876c b a0005160 <== NOT EXECUTED a00233ac: e8bd8010 pop {r4, pc} <== NOT EXECUTED a00233b0: a0060ee8 .word 0xa0060ee8 a001771c : int fstat( int fd, struct stat *sbuf ) { a001771c: e92d4030 push {r4, r5, lr} /* * Check to see if we were passed a valid pointer. */ if ( !sbuf ) a0017720: e2515000 subs r5, r1, #0 a0017724: 1a000002 bne a0017734 rtems_set_errno_and_return_minus_one( EFAULT ); a0017728: ebffd49e bl a000c9a8 <__errno> a001772c: e3a0300e mov r3, #14 a0017730: ea000014 b a0017788 /* * Now process the stat() request. */ iop = rtems_libio_iop( fd ); a0017734: e59f3080 ldr r3, [pc, #128] ; a00177bc a0017738: e5933000 ldr r3, [r3] a001773c: e1500003 cmp r0, r3 a0017740: 2a000008 bcs a0017768 a0017744: e59f3074 ldr r3, [pc, #116] ; a00177c0 a0017748: e5934000 ldr r4, [r3] a001774c: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_fd( fd ); rtems_libio_check_is_open(iop); a0017750: e5943014 ldr r3, [r4, #20] a0017754: e3130c01 tst r3, #256 ; 0x100 a0017758: 0a000002 beq a0017768 if ( !iop->handlers ) a001775c: e594303c ldr r3, [r4, #60] ; 0x3c a0017760: e3530000 cmp r3, #0 a0017764: 1a000002 bne a0017774 rtems_set_errno_and_return_minus_one( EBADF ); a0017768: ebffd48e bl a000c9a8 <__errno> a001776c: e3a03009 mov r3, #9 a0017770: ea000004 b a0017788 if ( !iop->handlers->fstat_h ) a0017774: e5933018 ldr r3, [r3, #24] a0017778: e3530000 cmp r3, #0 a001777c: 1a000004 bne a0017794 rtems_set_errno_and_return_minus_one( ENOTSUP ); a0017780: ebffd488 bl a000c9a8 <__errno> <== NOT EXECUTED a0017784: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0017788: e5803000 str r3, [r0] a001778c: e3e00000 mvn r0, #0 a0017790: 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) ); a0017794: e3a01000 mov r1, #0 a0017798: e3a02048 mov r2, #72 ; 0x48 a001779c: e1a00005 mov r0, r5 a00177a0: ebffd6ca bl a000d2d0 return (*iop->handlers->fstat_h)( &iop->pathinfo, sbuf ); a00177a4: e2840018 add r0, r4, #24 a00177a8: e1a01005 mov r1, r5 a00177ac: e594303c ldr r3, [r4, #60] ; 0x3c a00177b0: e1a0e00f mov lr, pc a00177b4: e593f018 ldr pc, [r3, #24] } a00177b8: e8bd8030 pop {r4, r5, pc} a00177bc: a0018240 .word 0xa0018240 a00177c0: a0019b4c .word 0xa0019b4c a00221a4 : int fd ) { rtems_libio_t *iop; rtems_libio_check_fd( fd ); a00221a4: e59f3078 ldr r3, [pc, #120] ; a0022224 #include int fsync( int fd ) { a00221a8: e52de004 push {lr} ; (str lr, [sp, #-4]!) rtems_libio_t *iop; rtems_libio_check_fd( fd ); a00221ac: e5933000 ldr r3, [r3] a00221b0: e1500003 cmp r0, r3 a00221b4: 2a00000d bcs a00221f0 iop = rtems_libio_iop( fd ); a00221b8: e59f3068 ldr r3, [pc, #104] ; a0022228 a00221bc: e5933000 ldr r3, [r3] a00221c0: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); a00221c4: e5903014 ldr r3, [r0, #20] a00221c8: e3130c01 tst r3, #256 ; 0x100 a00221cc: 0a000007 beq a00221f0 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a00221d0: e3130004 tst r3, #4 a00221d4: 1a000002 bne a00221e4 a00221d8: eb005c68 bl a0039380 <__errno> a00221dc: e3a03016 mov r3, #22 a00221e0: ea00000a b a0022210 /* * Now process the fsync(). */ if ( !iop->handlers ) a00221e4: e590303c ldr r3, [r0, #60] ; 0x3c a00221e8: e3530000 cmp r3, #0 a00221ec: 1a000002 bne a00221fc rtems_set_errno_and_return_minus_one( EBADF ); a00221f0: eb005c62 bl a0039380 <__errno> <== NOT EXECUTED a00221f4: e3a03009 mov r3, #9 <== NOT EXECUTED a00221f8: ea000004 b a0022210 <== NOT EXECUTED if ( !iop->handlers->fsync_h ) a00221fc: e5933028 ldr r3, [r3, #40] ; 0x28 a0022200: e3530000 cmp r3, #0 a0022204: 1a000004 bne a002221c rtems_set_errno_and_return_minus_one( ENOTSUP ); a0022208: eb005c5c bl a0039380 <__errno> a002220c: e3a03086 mov r3, #134 ; 0x86 a0022210: e5803000 str r3, [r0] a0022214: e3e00000 mvn r0, #0 a0022218: e49df004 pop {pc} ; (ldr pc, [sp], #4) return (*iop->handlers->fsync_h)( iop ); a002221c: e12fff33 blx r3 } a0022220: e49df004 pop {pc} ; (ldr pc, [sp], #4) a0022224: a00532b0 .word 0xa00532b0 a0022228: a0060e8c .word 0xa0060e8c a00087c8 : ) { rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); a00087c8: e59f30d0 ldr r3, [pc, #208] ; a00088a0 int ftruncate( int fd, off_t length ) { a00087cc: e92d4070 push {r4, r5, r6, lr} rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); a00087d0: e5933000 ldr r3, [r3] int ftruncate( int fd, off_t length ) { a00087d4: e24dd014 sub sp, sp, #20 a00087d8: e1a05001 mov r5, r1 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); a00087dc: e1500003 cmp r0, r3 int ftruncate( int fd, off_t length ) { a00087e0: e1a06002 mov r6, r2 rtems_libio_t *iop; rtems_filesystem_location_info_t loc; rtems_libio_check_fd( fd ); a00087e4: 2a000005 bcs a0008800 iop = rtems_libio_iop( fd ); a00087e8: e59f30b4 ldr r3, [pc, #180] ; a00088a4 a00087ec: e5934000 ldr r4, [r3] a00087f0: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); a00087f4: e5943014 ldr r3, [r4, #20] a00087f8: e3130c01 tst r3, #256 ; 0x100 a00087fc: 1a000002 bne a000880c a0008800: eb001068 bl a000c9a8 <__errno> <== NOT EXECUTED a0008804: e3a03009 mov r3, #9 <== NOT EXECUTED a0008808: ea00001b b a000887c <== NOT EXECUTED /* * Make sure we are not working on a directory */ loc = iop->pathinfo; a000880c: e1a0c00d mov ip, sp a0008810: e284e018 add lr, r4, #24 a0008814: e8be000f ldm lr!, {r0, r1, r2, r3} a0008818: e8ac000f stmia ip!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) a000881c: e5933010 ldr r3, [r3, #16] /* * Make sure we are not working on a directory */ loc = iop->pathinfo; a0008820: e59e2000 ldr r2, [lr] if ( !loc.ops->node_type_h ) a0008824: e3530000 cmp r3, #0 /* * Make sure we are not working on a directory */ loc = iop->pathinfo; a0008828: e58c2000 str r2, [ip] if ( !loc.ops->node_type_h ) a000882c: 0a000010 beq a0008874 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) == RTEMS_FILESYSTEM_DIRECTORY ) a0008830: e1a0000d mov r0, sp a0008834: e12fff33 blx r3 a0008838: e3500001 cmp r0, #1 a000883c: 1a000002 bne a000884c rtems_set_errno_and_return_minus_one( EISDIR ); a0008840: eb001058 bl a000c9a8 <__errno> a0008844: e3a03015 mov r3, #21 a0008848: ea00000b b a000887c rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a000884c: e5943014 ldr r3, [r4, #20] a0008850: e3130004 tst r3, #4 a0008854: 1a000002 bne a0008864 a0008858: eb001052 bl a000c9a8 <__errno> <== NOT EXECUTED a000885c: e3a03016 mov r3, #22 <== NOT EXECUTED a0008860: ea000005 b a000887c <== NOT EXECUTED if ( !iop->handlers->ftruncate_h ) a0008864: e594303c ldr r3, [r4, #60] ; 0x3c a0008868: e5933020 ldr r3, [r3, #32] a000886c: e3530000 cmp r3, #0 a0008870: 1a000004 bne a0008888 rtems_set_errno_and_return_minus_one( ENOTSUP ); a0008874: eb00104b bl a000c9a8 <__errno> <== NOT EXECUTED a0008878: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a000887c: e5803000 str r3, [r0] a0008880: e3e00000 mvn r0, #0 a0008884: ea000003 b a0008898 return (*iop->handlers->ftruncate_h)( iop, length ); a0008888: e1a00004 mov r0, r4 a000888c: e1a01005 mov r1, r5 a0008890: e1a02006 mov r2, r6 a0008894: e12fff33 blx r3 } a0008898: e28dd014 add sp, sp, #20 a000889c: e8bd8070 pop {r4, r5, r6, pc} a00088a0: a0018240 .word 0xa0018240 a00088a4: a0019b4c .word 0xa0019b4c a0052ccc : /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); a0052ccc: e59f30a0 ldr r3, [pc, #160] ; a0052d74 int getdents( int dd_fd, char *dd_buf, int dd_len ) { a0052cd0: e92d4070 push {r4, r5, r6, lr} /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); a0052cd4: e5933000 ldr r3, [r3] int getdents( int dd_fd, char *dd_buf, int dd_len ) { a0052cd8: e24dd014 sub sp, sp, #20 iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; a0052cdc: e1a0c00d mov ip, sp /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); a0052ce0: e1500003 cmp r0, r3 a0052ce4: 359f308c ldrcc r3, [pc, #140] ; a0052d78 a0052ce8: 23a04000 movcs r4, #0 int getdents( int dd_fd, char *dd_buf, int dd_len ) { a0052cec: e1a06001 mov r6, r1 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); a0052cf0: 35934000 ldrcc r4, [r3] int getdents( int dd_fd, char *dd_buf, int dd_len ) { a0052cf4: e1a05002 mov r5, r2 /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd ); a0052cf8: 30844300 addcc r4, r4, r0, lsl #6 /* * Make sure we are working on a directory */ loc = iop->pathinfo; a0052cfc: e284e018 add lr, r4, #24 a0052d00: e8be000f ldm lr!, {r0, r1, r2, r3} a0052d04: e8ac000f stmia ip!, {r0, r1, r2, r3} if ( !loc.ops->node_type_h ) a0052d08: e5933010 ldr r3, [r3, #16] iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; a0052d0c: e59e2000 ldr r2, [lr] if ( !loc.ops->node_type_h ) a0052d10: e3530000 cmp r3, #0 iop = rtems_libio_iop( dd_fd ); /* * Make sure we are working on a directory */ loc = iop->pathinfo; a0052d14: e58c2000 str r2, [ip] if ( !loc.ops->node_type_h ) a0052d18: 0a00000c beq a0052d50 rtems_set_errno_and_return_minus_one( ENOTSUP ); if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) a0052d1c: e1a0000d mov r0, sp a0052d20: e12fff33 blx r3 a0052d24: e3500001 cmp r0, #1 a0052d28: 0a000004 beq a0052d40 rtems_set_errno_and_return_minus_one( ENOTDIR ); a0052d2c: ebff9993 bl a0039380 <__errno> a0052d30: e3a03014 mov r3, #20 a0052d34: e5803000 str r3, [r0] a0052d38: e3e00000 mvn r0, #0 a0052d3c: ea00000a b a0052d6c /* * Return the number of bytes that were actually transfered as a result * of the read attempt. */ if ( !iop->handlers->read_h ) a0052d40: e594303c ldr r3, [r4, #60] ; 0x3c a0052d44: e5933008 ldr r3, [r3, #8] a0052d48: e3530000 cmp r3, #0 a0052d4c: 1a000002 bne a0052d5c rtems_set_errno_and_return_minus_one( ENOTSUP ); a0052d50: ebff998a bl a0039380 <__errno> <== NOT EXECUTED a0052d54: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0052d58: eafffff5 b a0052d34 <== NOT EXECUTED return (*iop->handlers->read_h)( iop, dd_buf, dd_len ); a0052d5c: e1a00004 mov r0, r4 a0052d60: e1a01006 mov r1, r6 a0052d64: e1a02005 mov r2, r5 a0052d68: e12fff33 blx r3 } a0052d6c: e28dd014 add sp, sp, #20 a0052d70: e8bd8070 pop {r4, r5, r6, pc} a0052d74: a00532b0 .word 0xa00532b0 a0052d78: a0060e8c .word 0xa0060e8c a0022334 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ gid_t getgid( void ) { a0022334: e59f3008 ldr r3, [pc, #8] ; a0022344 <== NOT EXECUTED a0022338: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Gid; } a002233c: e1d303b4 ldrh r0, [r3, #52] ; 0x34 <== NOT EXECUTED a0022340: e12fff1e bx lr <== NOT EXECUTED a0022344: a00535c8 .word 0xa00535c8 a0022960 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { a0022960: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a0022964: e59da01c ldr sl, [sp, #28] a0022968: e1a06000 mov r6, r0 a002296c: e1a07001 mov r7, r1 a0022970: e1a04002 mov r4, r2 a0022974: e1a08003 mov r8, r3 FILE *fp; int match; init_etc_passwd_group(); a0022978: ebffffb5 bl a0022854 if ((fp = fopen("/etc/group", "r")) == NULL) { a002297c: e59f00a4 ldr r0, [pc, #164] ; a0022a28 a0022980: e59f10a4 ldr r1, [pc, #164] ; a0022a2c a0022984: eb005ced bl a0039d40 a0022988: e2505000 subs r5, r0, #0 a002298c: 1a000003 bne a00229a0 errno = EINVAL; a0022990: eb005a7a bl a0039380 <__errno> <== NOT EXECUTED a0022994: e3a03016 mov r3, #22 <== NOT EXECUTED a0022998: e5803000 str r3, [r0] <== NOT EXECUTED a002299c: ea00000c b a00229d4 <== NOT EXECUTED return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { a00229a0: e1a01004 mov r1, r4 a00229a4: e1a02008 mov r2, r8 a00229a8: e1a0300a mov r3, sl a00229ac: e1a00005 mov r0, r5 a00229b0: ebfffeee bl a0022570 a00229b4: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(grp->gr_name, name) == 0); a00229b8: e1a01006 mov r1, r6 if ((fp = fopen("/etc/group", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scangr(fp, grp, buffer, bufsize)) { a00229bc: 1a000006 bne a00229dc errno = EINVAL; a00229c0: eb005a6e bl a0039380 <__errno> <== NOT EXECUTED a00229c4: e3a03016 mov r3, #22 <== NOT EXECUTED a00229c8: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); a00229cc: e1a00005 mov r0, r5 <== NOT EXECUTED a00229d0: eb005ab7 bl a00394b4 <== NOT EXECUTED a00229d4: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; a00229d8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if (name) { a00229dc: e3560000 cmp r6, #0 a00229e0: 0a000004 beq a00229f8 match = (strcmp(grp->gr_name, name) == 0); a00229e4: e5940000 ldr r0, [r4] a00229e8: eb007287 bl a003f40c a00229ec: e2700001 rsbs r0, r0, #1 a00229f0: 33a00000 movcc r0, #0 a00229f4: ea000003 b a0022a08 } else { match = (grp->gr_gid == gid); a00229f8: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED a00229fc: e1500007 cmp r0, r7 <== NOT EXECUTED a0022a00: 13a00000 movne r0, #0 <== NOT EXECUTED a0022a04: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { a0022a08: e3500000 cmp r0, #0 a0022a0c: 0affffe3 beq a00229a0 fclose(fp); a0022a10: e1a00005 mov r0, r5 a0022a14: eb005aa6 bl a00394b4 *result = grp; a0022a18: e59d3020 ldr r3, [sp, #32] a0022a1c: e3a00000 mov r0, #0 a0022a20: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } a0022a24: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} a0022a28: a00577c4 .word 0xa00577c4 a0022a2c: a0058570 .word 0xa0058570 a00226a8 : return NULL; return p; } struct group *getgrent(void) { a00226a8: e92d4010 push {r4, lr} <== NOT EXECUTED if (group_fp == NULL) a00226ac: e59f4030 ldr r4, [pc, #48] ; a00226e4 <== NOT EXECUTED a00226b0: e5940000 ldr r0, [r4] <== NOT EXECUTED a00226b4: e3500000 cmp r0, #0 <== NOT EXECUTED a00226b8: 0a000007 beq a00226dc <== NOT EXECUTED return NULL; if (!scangr(group_fp, &grent, grbuf, sizeof grbuf)) a00226bc: e2841008 add r1, r4, #8 <== NOT EXECUTED a00226c0: e2842018 add r2, r4, #24 <== NOT EXECUTED a00226c4: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a00226c8: ebffffa8 bl a0022570 <== NOT EXECUTED a00226cc: e3500000 cmp r0, #0 <== NOT EXECUTED a00226d0: 0a000001 beq a00226dc <== NOT EXECUTED a00226d4: e2840008 add r0, r4, #8 <== NOT EXECUTED a00226d8: e8bd8010 pop {r4, pc} <== NOT EXECUTED a00226dc: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &grent; } a00226e0: e8bd8010 pop {r4, pc} <== NOT EXECUTED a00226e4: a0060ba4 .word 0xa0060ba4 a0022a64 : struct group *getgrgid( gid_t gid ) { a0022a64: e92d4003 push {r0, r1, lr} <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) a0022a68: e59f1028 ldr r1, [pc, #40] ; a0022a98 <== NOT EXECUTED } struct group *getgrgid( gid_t gid ) { a0022a6c: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED struct group *p; if(getgrgid_r(gid, &grent, grbuf, sizeof grbuf, &p)) a0022a70: e28dc004 add ip, sp, #4 <== NOT EXECUTED a0022a74: e2812010 add r2, r1, #16 <== NOT EXECUTED a0022a78: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a0022a7c: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED a0022a80: e58dc000 str ip, [sp] <== NOT EXECUTED a0022a84: ebffffe9 bl a0022a30 <== NOT EXECUTED a0022a88: e3500000 cmp r0, #0 <== NOT EXECUTED a0022a8c: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; a0022a90: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } a0022a94: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED a0022a98: a0060bac .word 0xa0060bac a0022a30 : struct group *grp, char *buffer, size_t bufsize, struct group **result ) { a0022a30: e92d4003 push {r0, r1, lr} <== NOT EXECUTED a0022a34: e1a0c002 mov ip, r2 <== NOT EXECUTED a0022a38: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); a0022a3c: e58d3000 str r3, [sp] <== NOT EXECUTED a0022a40: e1a0300c mov r3, ip <== NOT EXECUTED a0022a44: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED struct group *grp, char *buffer, size_t bufsize, struct group **result ) { a0022a48: e1a0e001 mov lr, r1 <== NOT EXECUTED return getgr_r(NULL, gid, grp, buffer, bufsize, result); a0022a4c: e1a0200e mov r2, lr <== NOT EXECUTED a0022a50: e1a01820 lsr r1, r0, #16 <== NOT EXECUTED a0022a54: e3a00000 mov r0, #0 <== NOT EXECUTED a0022a58: e58dc004 str ip, [sp, #4] <== NOT EXECUTED a0022a5c: ebffffbf bl a0022960 <== NOT EXECUTED } a0022a60: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED a0022b34 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { a0022b34: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} a0022b38: e59da01c ldr sl, [sp, #28] a0022b3c: e1a06000 mov r6, r0 a0022b40: e1a07001 mov r7, r1 a0022b44: e1a04002 mov r4, r2 a0022b48: e1a08003 mov r8, r3 FILE *fp; int match; init_etc_passwd_group(); a0022b4c: ebffff40 bl a0022854 if ((fp = fopen("/etc/passwd", "r")) == NULL) { a0022b50: e59f00a4 ldr r0, [pc, #164] ; a0022bfc a0022b54: e59f10a4 ldr r1, [pc, #164] ; a0022c00 a0022b58: eb005c78 bl a0039d40 a0022b5c: e2505000 subs r5, r0, #0 a0022b60: 1a000003 bne a0022b74 errno = EINVAL; a0022b64: eb005a05 bl a0039380 <__errno> <== NOT EXECUTED a0022b68: e3a03016 mov r3, #22 <== NOT EXECUTED a0022b6c: e5803000 str r3, [r0] <== NOT EXECUTED a0022b70: ea00000c b a0022ba8 <== NOT EXECUTED return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { a0022b74: e1a01004 mov r1, r4 a0022b78: e1a02008 mov r2, r8 a0022b7c: e1a0300a mov r3, sl a0022b80: e1a00005 mov r0, r5 a0022b84: ebfffed7 bl a00226e8 a0022b88: e3500000 cmp r0, #0 errno = EINVAL; fclose(fp); return -1; } if (name) { match = (strcmp(pwd->pw_name, name) == 0); a0022b8c: e1a01006 mov r1, r6 if ((fp = fopen("/etc/passwd", "r")) == NULL) { errno = EINVAL; return -1; } for(;;) { if (!scanpw(fp, pwd, buffer, bufsize)) { a0022b90: 1a000006 bne a0022bb0 errno = EINVAL; a0022b94: eb0059f9 bl a0039380 <__errno> <== NOT EXECUTED a0022b98: e3a03016 mov r3, #22 <== NOT EXECUTED a0022b9c: e5803000 str r3, [r0] <== NOT EXECUTED fclose(fp); a0022ba0: e1a00005 mov r0, r5 <== NOT EXECUTED a0022ba4: eb005a42 bl a00394b4 <== NOT EXECUTED a0022ba8: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; a0022bac: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED } if (name) { a0022bb0: e3560000 cmp r6, #0 a0022bb4: 0a000004 beq a0022bcc match = (strcmp(pwd->pw_name, name) == 0); a0022bb8: e5940000 ldr r0, [r4] a0022bbc: eb007212 bl a003f40c a0022bc0: e2700001 rsbs r0, r0, #1 a0022bc4: 33a00000 movcc r0, #0 a0022bc8: ea000003 b a0022bdc } else { match = (pwd->pw_uid == uid); a0022bcc: e1d400b8 ldrh r0, [r4, #8] <== NOT EXECUTED a0022bd0: e1500007 cmp r0, r7 <== NOT EXECUTED a0022bd4: 13a00000 movne r0, #0 <== NOT EXECUTED a0022bd8: 03a00001 moveq r0, #1 <== NOT EXECUTED } if (match) { a0022bdc: e3500000 cmp r0, #0 a0022be0: 0affffe3 beq a0022b74 fclose(fp); a0022be4: e1a00005 mov r0, r5 a0022be8: eb005a31 bl a00394b4 *result = pwd; a0022bec: e59d3020 ldr r3, [sp, #32] a0022bf0: e3a00000 mov r0, #0 a0022bf4: e5834000 str r4, [r3] } } fclose(fp); errno = EINVAL; return -1; } a0022bf8: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} a0022bfc: a0057716 .word 0xa0057716 a0022c00: a0058570 .word 0xa0058570 a0022814 : return NULL; return p; } struct passwd *getpwent(void) { a0022814: e92d4010 push {r4, lr} <== NOT EXECUTED if (passwd_fp == NULL) a0022818: e59f4030 ldr r4, [pc, #48] ; a0022850 <== NOT EXECUTED a002281c: e5940004 ldr r0, [r4, #4] <== NOT EXECUTED a0022820: e3500000 cmp r0, #0 <== NOT EXECUTED a0022824: 0a000007 beq a0022848 <== NOT EXECUTED return NULL; if (!scanpw(passwd_fp, &pwent, pwbuf, sizeof pwbuf)) a0022828: e28410e0 add r1, r4, #224 ; 0xe0 <== NOT EXECUTED a002282c: e28420fc add r2, r4, #252 ; 0xfc <== NOT EXECUTED a0022830: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a0022834: ebffffab bl a00226e8 <== NOT EXECUTED a0022838: e3500000 cmp r0, #0 <== NOT EXECUTED a002283c: 0a000001 beq a0022848 <== NOT EXECUTED a0022840: e28400e0 add r0, r4, #224 ; 0xe0 <== NOT EXECUTED a0022844: e8bd8010 pop {r4, pc} <== NOT EXECUTED a0022848: e3a00000 mov r0, #0 <== NOT EXECUTED return NULL; return &pwent; } a002284c: e8bd8010 pop {r4, pc} <== NOT EXECUTED a0022850: a0060ba4 .word 0xa0060ba4 a0022c38 : struct passwd *getpwuid( uid_t uid ) { a0022c38: e92d4003 push {r0, r1, lr} <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) a0022c3c: e59f1028 ldr r1, [pc, #40] ; a0022c6c <== NOT EXECUTED } struct passwd *getpwuid( uid_t uid ) { a0022c40: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED struct passwd *p; if(getpwuid_r(uid, &pwent, pwbuf, sizeof pwbuf, &p)) a0022c44: e28dc004 add ip, sp, #4 <== NOT EXECUTED a0022c48: e281201c add r2, r1, #28 <== NOT EXECUTED a0022c4c: e3a030c8 mov r3, #200 ; 0xc8 <== NOT EXECUTED a0022c50: e1a00820 lsr r0, r0, #16 <== NOT EXECUTED a0022c54: e58dc000 str ip, [sp] <== NOT EXECUTED a0022c58: ebffffe9 bl a0022c04 <== NOT EXECUTED a0022c5c: e3500000 cmp r0, #0 <== NOT EXECUTED a0022c60: 13a00000 movne r0, #0 <== NOT EXECUTED return NULL; return p; a0022c64: 059d0004 ldreq r0, [sp, #4] <== NOT EXECUTED } a0022c68: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED a0022c6c: a0060c84 .word 0xa0060c84 a0022c04 : struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { a0022c04: e92d4003 push {r0, r1, lr} <== NOT EXECUTED a0022c08: e1a0c002 mov ip, r2 <== NOT EXECUTED a0022c0c: e1a00800 lsl r0, r0, #16 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); a0022c10: e58d3000 str r3, [sp] <== NOT EXECUTED a0022c14: e1a0300c mov r3, ip <== NOT EXECUTED a0022c18: e59dc00c ldr ip, [sp, #12] <== NOT EXECUTED struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result ) { a0022c1c: e1a0e001 mov lr, r1 <== NOT EXECUTED return getpw_r(NULL, uid, pwd, buffer, bufsize, result); a0022c20: e1a0200e mov r2, lr <== NOT EXECUTED a0022c24: e1a01820 lsr r1, r0, #16 <== NOT EXECUTED a0022c28: e3a00000 mov r0, #0 <== NOT EXECUTED a0022c2c: e58dc004 str ip, [sp, #4] <== NOT EXECUTED a0022c30: ebffffbf bl a0022b34 <== NOT EXECUTED } a0022c34: e8bd800c pop {r2, r3, pc} <== NOT EXECUTED a00088d0 : */ int gettimeofday( struct timeval *tp, void * __tz __attribute__((unused)) ) { a00088d0: e92d4033 push {r0, r1, r4, r5, lr} /* struct timezone* tzp = (struct timezone*) __tz; */ if ( !tp ) { a00088d4: e2504000 subs r4, r0, #0 a00088d8: 1a000004 bne a00088f0 errno = EFAULT; a00088dc: eb001031 bl a000c9a8 <__errno> <== NOT EXECUTED a00088e0: e3a0300e mov r3, #14 <== NOT EXECUTED a00088e4: e5803000 str r3, [r0] <== NOT EXECUTED a00088e8: e3e00000 mvn r0, #0 <== NOT EXECUTED return -1; a00088ec: ea00000c b a0008924 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a00088f0: e10f5000 mrs r5, CPSR a00088f4: e3853080 orr r3, r5, #128 ; 0x80 a00088f8: e129f003 msr CPSR_fc, r3 ISR_Level level; struct timespec now; suseconds_t useconds; _ISR_Disable(level); _TOD_Get( &now ); a00088fc: e1a0000d mov r0, sp a0008900: eb0004e2 bl a0009c90 <_TOD_Get> static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0008904: 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; a0008908: e59d3000 ldr r3, [sp] time->tv_usec = useconds; a000890c: e59d0004 ldr r0, [sp, #4] a0008910: 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; a0008914: e5843000 str r3, [r4] time->tv_usec = useconds; a0008918: eb0035d9 bl a0016084 <__aeabi_idiv> a000891c: e5840004 str r0, [r4, #4] a0008920: 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; } a0008924: e8bd803c pop {r2, r3, r4, r5, pc} a0005298 : * 4.2.1 Get Real User, Effective User, Ral Group, and Effective Group IDs, * P1003.1b-1993, p. 84 */ uid_t getuid( void ) { a0005298: e59f3008 ldr r3, [pc, #8] ; a00052a8 <== NOT EXECUTED a000529c: e5933000 ldr r3, [r3] <== NOT EXECUTED return _POSIX_types_Uid; } a00052a0: e1d303b2 ldrh r0, [r3, #50] ; 0x32 <== NOT EXECUTED a00052a4: e12fff1e bx lr <== NOT EXECUTED a00052a8: a00535c8 .word 0xa00535c8 a001093c : ) { IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; a001093c: e5903038 ldr r3, [r0, #56] ; 0x38 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a0010940: e92d4010 push {r4, lr} IMFS_jnode_t *the_jnode; /* Is the node a directory ? */ the_jnode = (IMFS_jnode_t *) iop->file_info; a0010944: e593304c ldr r3, [r3, #76] ; 0x4c a0010948: e3530001 cmp r3, #1 a001094c: 0a000001 beq a0010958 a0010950: e3e00000 mvn r0, #0 <== NOT EXECUTED a0010954: e8bd8010 pop {r4, pc} <== NOT EXECUTED if ( the_jnode->type != IMFS_DIRECTORY ) return -1; /* It wasn't a directory --> return error */ iop->offset = 0; a0010958: e3a03000 mov r3, #0 a001095c: e3a04000 mov r4, #0 a0010960: e580300c str r3, [r0, #12] a0010964: e5804010 str r4, [r0, #16] a0010968: e3a00000 mov r0, #0 return 0; } a001096c: e8bd8010 pop {r4, pc} a0004ba0 : int ioctl( int fd, ioctl_command_t command, ... ) { a0004ba0: e92d000e push {r1, r2, r3} va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); a0004ba4: e59f307c ldr r3, [pc, #124] ; a0004c28 int ioctl( int fd, ioctl_command_t command, ... ) { a0004ba8: e92d4001 push {r0, lr} va_list ap; rtems_status_code rc; rtems_libio_t *iop; void *buffer; rtems_libio_check_fd( fd ); a0004bac: e5933000 ldr r3, [r3] a0004bb0: e1500003 cmp r0, r3 a0004bb4: 2a00000b bcs a0004be8 iop = rtems_libio_iop( fd ); a0004bb8: e59f306c ldr r3, [pc, #108] ; a0004c2c a0004bbc: e5933000 ldr r3, [r3] a0004bc0: e0830300 add r0, r3, r0, lsl #6 rtems_libio_check_is_open(iop); a0004bc4: e5903014 ldr r3, [r0, #20] a0004bc8: e3130c01 tst r3, #256 ; 0x100 a0004bcc: 0a000005 beq a0004be8 /* * Now process the ioctl(). */ if ( !iop->handlers ) a0004bd0: 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 *); a0004bd4: e28d2010 add r2, sp, #16 a0004bd8: e58d2000 str r2, [sp] /* * Now process the ioctl(). */ if ( !iop->handlers ) a0004bdc: e3530000 cmp r3, #0 iop = rtems_libio_iop( fd ); rtems_libio_check_is_open(iop); va_start(ap, command); buffer = va_arg(ap, void *); a0004be0: e59d200c ldr r2, [sp, #12] /* * Now process the ioctl(). */ if ( !iop->handlers ) a0004be4: 1a000002 bne a0004bf4 rtems_set_errno_and_return_minus_one( EBADF ); a0004be8: eb0034a1 bl a0011e74 <__errno> a0004bec: e3a03009 mov r3, #9 a0004bf0: ea000004 b a0004c08 if ( !iop->handlers->ioctl_h ) a0004bf4: e5933010 ldr r3, [r3, #16] a0004bf8: e3530000 cmp r3, #0 a0004bfc: 1a000004 bne a0004c14 rtems_set_errno_and_return_minus_one( ENOTSUP ); a0004c00: eb00349b bl a0011e74 <__errno> <== NOT EXECUTED a0004c04: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0004c08: e5803000 str r3, [r0] a0004c0c: e3e00000 mvn r0, #0 a0004c10: ea000001 b a0004c1c rc = (*iop->handlers->ioctl_h)( iop, command, buffer ); a0004c14: e59d1008 ldr r1, [sp, #8] a0004c18: e12fff33 blx r3 return rc; } a0004c1c: e8bd4008 pop {r3, lr} a0004c20: e28dd00c add sp, sp, #12 a0004c24: e12fff1e bx lr a0004c28: a001dbd0 .word 0xa001dbd0 a0004c2c: a001f8f8 .word 0xa001f8f8 a00027e0 : * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { if (tty->termios.c_iflag & ISTRIP) a00027e0: e5913030 ldr r3, [r1, #48] ; 0x30 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { a00027e4: e92d4030 push {r4, r5, lr} <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) a00027e8: e3130020 tst r3, #32 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { a00027ec: e20050ff and r5, r0, #255 ; 0xff <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; a00027f0: 1200507f andne r5, r0, #127 ; 0x7f <== NOT EXECUTED if (tty->termios.c_iflag & IUCLC) a00027f4: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) { a00027f8: e1a04001 mov r4, r1 <== NOT EXECUTED if (tty->termios.c_iflag & ISTRIP) c &= 0x7f; if (tty->termios.c_iflag & IUCLC) a00027fc: 0a000007 beq a0002820 <== NOT EXECUTED c = tolower (c); a0002800: e59f2174 ldr r2, [pc, #372] ; a000297c <== NOT EXECUTED a0002804: e5922000 ldr r2, [r2] <== NOT EXECUTED a0002808: e0822005 add r2, r2, r5 <== NOT EXECUTED a000280c: e5d22001 ldrb r2, [r2, #1] <== NOT EXECUTED a0002810: e2022003 and r2, r2, #3 <== NOT EXECUTED a0002814: e3520001 cmp r2, #1 <== NOT EXECUTED a0002818: 02855020 addeq r5, r5, #32 <== NOT EXECUTED a000281c: e20550ff and r5, r5, #255 ; 0xff <== NOT EXECUTED if (c == '\r') { a0002820: e355000d cmp r5, #13 <== NOT EXECUTED a0002824: 1a000005 bne a0002840 <== NOT EXECUTED if (tty->termios.c_iflag & IGNCR) a0002828: e3130080 tst r3, #128 ; 0x80 <== NOT EXECUTED a000282c: 1a000050 bne a0002974 <== NOT EXECUTED return 0; if (tty->termios.c_iflag & ICRNL) a0002830: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0002834: 03a0500d moveq r5, #13 <== NOT EXECUTED a0002838: 13a0500a movne r5, #10 <== NOT EXECUTED a000283c: ea000007 b a0002860 <== NOT EXECUTED c = '\n'; } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) { a0002840: e355000a cmp r5, #10 <== NOT EXECUTED a0002844: 1a000003 bne a0002858 <== NOT EXECUTED a0002848: e3130040 tst r3, #64 ; 0x40 <== NOT EXECUTED a000284c: 03a0500a moveq r5, #10 <== NOT EXECUTED a0002850: 13a0500d movne r5, #13 <== NOT EXECUTED a0002854: ea000001 b a0002860 <== NOT EXECUTED c = '\r'; } if ((c != '\0') && (tty->termios.c_lflag & ICANON)) { a0002858: e3550000 cmp r5, #0 <== NOT EXECUTED a000285c: 0a000031 beq a0002928 <== NOT EXECUTED a0002860: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a0002864: e3130002 tst r3, #2 <== NOT EXECUTED a0002868: 0a00002e beq a0002928 <== NOT EXECUTED if (c == tty->termios.c_cc[VERASE]) { a000286c: e5d42043 ldrb r2, [r4, #67] ; 0x43 <== NOT EXECUTED a0002870: e1520005 cmp r2, r5 <== NOT EXECUTED erase (tty, 0); a0002874: 01a00004 moveq r0, r4 <== NOT EXECUTED a0002878: 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]) { a000287c: 0a000004 beq a0002894 <== NOT EXECUTED erase (tty, 0); return 0; } else if (c == tty->termios.c_cc[VKILL]) { a0002880: e5d42044 ldrb r2, [r4, #68] ; 0x44 <== NOT EXECUTED a0002884: e1520005 cmp r2, r5 <== NOT EXECUTED a0002888: 1a000004 bne a00028a0 <== NOT EXECUTED erase (tty, 1); a000288c: e1a00004 mov r0, r4 <== NOT EXECUTED a0002890: e3a01001 mov r1, #1 <== NOT EXECUTED a0002894: ebffff5d bl a0002610 <== NOT EXECUTED a0002898: e3a00000 mov r0, #0 <== NOT EXECUTED return 0; a000289c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } else if (c == tty->termios.c_cc[VEOF]) { a00028a0: e5d42045 ldrb r2, [r4, #69] ; 0x45 <== NOT EXECUTED a00028a4: e1520005 cmp r2, r5 <== NOT EXECUTED a00028a8: 0a00000c beq a00028e0 <== NOT EXECUTED return 1; } else if (c == '\n') { a00028ac: e355000a cmp r5, #10 <== NOT EXECUTED a00028b0: 1a00000c bne a00028e8 <== NOT EXECUTED if (tty->termios.c_lflag & (ECHO | ECHONL)) a00028b4: e3130048 tst r3, #72 ; 0x48 <== NOT EXECUTED a00028b8: 0a000002 beq a00028c8 <== NOT EXECUTED echo (c, tty); a00028bc: e1a00005 mov r0, r5 <== NOT EXECUTED a00028c0: e1a01004 mov r1, r4 <== NOT EXECUTED a00028c4: ebffff31 bl a0002590 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; a00028c8: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a00028cc: e594101c ldr r1, [r4, #28] <== NOT EXECUTED a00028d0: e3a0000a mov r0, #10 <== NOT EXECUTED a00028d4: e2832001 add r2, r3, #1 <== NOT EXECUTED a00028d8: e7c10003 strb r0, [r1, r3] <== NOT EXECUTED a00028dc: e5842020 str r2, [r4, #32] <== NOT EXECUTED a00028e0: e3a00001 mov r0, #1 <== NOT EXECUTED return 1; a00028e4: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED } else if ((c == tty->termios.c_cc[VEOL]) a00028e8: e5d4204c ldrb r2, [r4, #76] ; 0x4c <== NOT EXECUTED a00028ec: e1520005 cmp r2, r5 <== NOT EXECUTED a00028f0: 0a000002 beq a0002900 <== NOT EXECUTED || (c == tty->termios.c_cc[VEOL2])) { a00028f4: e5d42051 ldrb r2, [r4, #81] ; 0x51 <== NOT EXECUTED a00028f8: e1520005 cmp r2, r5 <== NOT EXECUTED a00028fc: 1a000009 bne a0002928 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) a0002900: e3130008 tst r3, #8 <== NOT EXECUTED a0002904: 0a000002 beq a0002914 <== NOT EXECUTED echo (c, tty); a0002908: e1a00005 mov r0, r5 <== NOT EXECUTED a000290c: e1a01004 mov r1, r4 <== NOT EXECUTED a0002910: ebffff1e bl a0002590 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; a0002914: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a0002918: e3a00001 mov r0, #1 <== NOT EXECUTED a000291c: e594101c ldr r1, [r4, #28] <== NOT EXECUTED a0002920: e0832000 add r2, r3, r0 <== NOT EXECUTED a0002924: ea00000f b a0002968 <== NOT EXECUTED } /* * FIXME: Should do IMAXBEL handling somehow */ if (tty->ccount < (CBUFSIZE-1)) { a0002928: e59f3050 ldr r3, [pc, #80] ; a0002980 <== NOT EXECUTED a000292c: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a0002930: e5933000 ldr r3, [r3] <== NOT EXECUTED a0002934: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0002938: e1520003 cmp r2, r3 <== NOT EXECUTED a000293c: aa00000c bge a0002974 <== NOT EXECUTED if (tty->termios.c_lflag & ECHO) a0002940: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a0002944: e3130008 tst r3, #8 <== NOT EXECUTED a0002948: 0a000002 beq a0002958 <== NOT EXECUTED echo (c, tty); a000294c: e1a00005 mov r0, r5 <== NOT EXECUTED a0002950: e1a01004 mov r1, r4 <== NOT EXECUTED a0002954: ebffff0d bl a0002590 <== NOT EXECUTED tty->cbuf[tty->ccount++] = c; a0002958: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a000295c: e594101c ldr r1, [r4, #28] <== NOT EXECUTED a0002960: e3a00000 mov r0, #0 <== NOT EXECUTED a0002964: e2832001 add r2, r3, #1 <== NOT EXECUTED a0002968: e7c15003 strb r5, [r1, r3] <== NOT EXECUTED a000296c: e5842020 str r2, [r4, #32] <== NOT EXECUTED a0002970: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED a0002974: e3a00000 mov r0, #0 <== NOT EXECUTED } return 0; } a0002978: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED a000297c: a00184c0 .word 0xa00184c0 a0002980: a0018404 .word 0xa0018404 a00178f0 : /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) a00178f0: e59f3060 ldr r3, [pc, #96] ; a0017958 extern void _wrapup_reent(struct _reent *); extern void _reclaim_reent(struct _reent *); void libc_wrapup(void) { a00178f4: e92d4030 push {r4, r5, lr} /* * In case RTEMS is already down, don't do this. It could be * dangerous. */ if (!_System_state_Is_up(_System_state_Get())) a00178f8: e5933000 ldr r3, [r3] a00178fc: e3530003 cmp r3, #3 a0017900: 1a000013 bne a0017954 /* * This was already done if the user called exit() directly . _wrapup_reent(0); */ if (_REENT != _global_impure_ptr) { a0017904: e59f3050 ldr r3, [pc, #80] ; a001795c a0017908: e59f5050 ldr r5, [pc, #80] ; a0017960 a001790c: e5934000 ldr r4, [r3] a0017910: e5953000 ldr r3, [r5] a0017914: e1530004 cmp r3, r4 a0017918: 0a000002 beq a0017928 _wrapup_reent(_global_impure_ptr); a001791c: e1a00004 mov r0, r4 a0017920: eb000170 bl a0017ee8 <_wrapup_reent> /* Don't reclaim this one, just in case we do printfs * on the way out to ROM. */ _reclaim_reent(&libc_global_reent); #endif _REENT = _global_impure_ptr; a0017924: e5854000 str r4, [r5] * * Should this be changed to do *all* file streams? * _fwalk (_REENT, fclose); */ fclose (stdin); a0017928: e59f4030 ldr r4, [pc, #48] ; a0017960 a001792c: e5943000 ldr r3, [r4] a0017930: e5930004 ldr r0, [r3, #4] a0017934: ebffd468 bl a000cadc fclose (stdout); a0017938: e5943000 ldr r3, [r4] a001793c: e5930008 ldr r0, [r3, #8] a0017940: ebffd465 bl a000cadc fclose (stderr); a0017944: e5943000 ldr r3, [r4] a0017948: e593000c ldr r0, [r3, #12] } a001794c: e8bd4030 pop {r4, r5, lr} * _fwalk (_REENT, fclose); */ fclose (stdin); fclose (stdout); fclose (stderr); a0017950: eaffd461 b a000cadc a0017954: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED a0017958: a0019e70 .word 0xa0019e70 a001795c: a00190d4 .word 0xa00190d4 a0017960: a00184c4 .word 0xa00184c4 a0022d58 : int link( const char *existing, const char *new ) { a0022d58: e92d4070 push {r4, r5, r6, lr} a0022d5c: e24dd030 sub sp, sp, #48 ; 0x30 a0022d60: e1a04001 mov r4, r1 a0022d64: e1a05000 mov r5, r0 /* * Get the node we are linking to. */ result = rtems_filesystem_evaluate_path( existing, strlen( existing ), a0022d68: eb00740f bl a003fdac a0022d6c: e3a0c001 mov ip, #1 a0022d70: e1a01000 mov r1, r0 a0022d74: e3a02000 mov r2, #0 a0022d78: e1a00005 mov r0, r5 a0022d7c: e28d3018 add r3, sp, #24 a0022d80: e58dc000 str ip, [sp] a0022d84: ebff88c7 bl a00050a8 0, &existing_loc, true ); if ( result != 0 ) a0022d88: e3500000 cmp r0, #0 a0022d8c: 1a000024 bne a0022e24 /* * Get the parent of the node we are creating. */ rtems_filesystem_get_start_loc( new, &i, &parent_loc ); a0022d90: e5d43000 ldrb r3, [r4] a0022d94: e353002f cmp r3, #47 ; 0x2f a0022d98: 1353005c cmpne r3, #92 ; 0x5c a0022d9c: 13a05000 movne r5, #0 a0022da0: 03a05001 moveq r5, #1 a0022da4: 0a000001 beq a0022db0 a0022da8: e3530000 cmp r3, #0 a0022dac: 1a000005 bne a0022dc8 a0022db0: e59f31cc ldr r3, [pc, #460] ; a0022f84 a0022db4: e28dc004 add ip, sp, #4 a0022db8: e3a05001 mov r5, #1 a0022dbc: e593e000 ldr lr, [r3] a0022dc0: e28ee018 add lr, lr, #24 a0022dc4: ea000003 b a0022dd8 a0022dc8: e59f31b4 ldr r3, [pc, #436] ; a0022f84 a0022dcc: e28dc004 add ip, sp, #4 a0022dd0: e593e000 ldr lr, [r3] a0022dd4: e28ee004 add lr, lr, #4 a0022dd8: e8be000f ldm lr!, {r0, r1, r2, r3} a0022ddc: e8ac000f stmia ip!, {r0, r1, r2, r3} a0022de0: e59e3000 ldr r3, [lr] a0022de4: e58c3000 str r3, [ip] if ( !parent_loc.ops->evalformake_h ) { a0022de8: e59d3010 ldr r3, [sp, #16] a0022dec: e5933004 ldr r3, [r3, #4] a0022df0: e3530000 cmp r3, #0 a0022df4: 1a00000c bne a0022e2c rtems_filesystem_freenode( &existing_loc ); a0022df8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0022dfc: e3530000 cmp r3, #0 <== NOT EXECUTED a0022e00: 0a000004 beq a0022e18 <== NOT EXECUTED a0022e04: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0022e08: e3530000 cmp r3, #0 <== NOT EXECUTED a0022e0c: 0a000001 beq a0022e18 <== NOT EXECUTED a0022e10: e28d0018 add r0, sp, #24 <== NOT EXECUTED a0022e14: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0022e18: eb005958 bl a0039380 <__errno> <== NOT EXECUTED a0022e1c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0022e20: e5803000 str r3, [r0] a0022e24: e3e05000 mvn r5, #0 a0022e28: ea000052 b a0022f78 } result = (*parent_loc.ops->evalformake_h)( &new[i], &parent_loc, &name_start ); a0022e2c: e28d6004 add r6, sp, #4 a0022e30: e0840005 add r0, r4, r5 a0022e34: e1a01006 mov r1, r6 a0022e38: e28d202c add r2, sp, #44 ; 0x2c a0022e3c: e12fff33 blx r3 if ( result != 0 ) { a0022e40: e2504000 subs r4, r0, #0 a0022e44: 0a00000a beq a0022e74 rtems_filesystem_freenode( &existing_loc ); a0022e48: e59d3024 ldr r3, [sp, #36] ; 0x24 a0022e4c: e3530000 cmp r3, #0 a0022e50: 0a000004 beq a0022e68 a0022e54: e593301c ldr r3, [r3, #28] a0022e58: e3530000 cmp r3, #0 a0022e5c: 0a000001 beq a0022e68 a0022e60: e28d0018 add r0, sp, #24 a0022e64: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( result ); a0022e68: eb005944 bl a0039380 <__errno> a0022e6c: e5804000 str r4, [r0] a0022e70: eaffffeb b a0022e24 /* * Check to see if the caller is trying to link across file system * boundaries. */ if ( parent_loc.mt_entry != existing_loc.mt_entry ) { a0022e74: e59d3028 ldr r3, [sp, #40] ; 0x28 a0022e78: e59d2014 ldr r2, [sp, #20] a0022e7c: e1520003 cmp r2, r3 a0022e80: 0a000012 beq a0022ed0 rtems_filesystem_freenode( &existing_loc ); a0022e84: e59d3024 ldr r3, [sp, #36] ; 0x24 a0022e88: e3530000 cmp r3, #0 a0022e8c: 0a000004 beq a0022ea4 a0022e90: e593301c ldr r3, [r3, #28] a0022e94: e3530000 cmp r3, #0 a0022e98: 0a000001 beq a0022ea4 a0022e9c: e28d0018 add r0, sp, #24 a0022ea0: e12fff33 blx r3 rtems_filesystem_freenode( &parent_loc ); a0022ea4: e59d3010 ldr r3, [sp, #16] a0022ea8: e3530000 cmp r3, #0 a0022eac: 0a000004 beq a0022ec4 a0022eb0: e593301c ldr r3, [r3, #28] a0022eb4: e3530000 cmp r3, #0 a0022eb8: 0a000001 beq a0022ec4 a0022ebc: e28d0004 add r0, sp, #4 a0022ec0: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( EXDEV ); a0022ec4: eb00592d bl a0039380 <__errno> a0022ec8: e3a03012 mov r3, #18 a0022ecc: eaffffd3 b a0022e20 } if ( !parent_loc.ops->link_h ) { a0022ed0: e59d3010 ldr r3, [sp, #16] a0022ed4: e5933008 ldr r3, [r3, #8] a0022ed8: e3530000 cmp r3, #0 a0022edc: 1a00000f bne a0022f20 rtems_filesystem_freenode( &existing_loc ); a0022ee0: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a0022ee4: e3530000 cmp r3, #0 <== NOT EXECUTED a0022ee8: 0a000004 beq a0022f00 <== NOT EXECUTED a0022eec: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0022ef0: e3530000 cmp r3, #0 <== NOT EXECUTED a0022ef4: 0a000001 beq a0022f00 <== NOT EXECUTED a0022ef8: e28d0018 add r0, sp, #24 <== NOT EXECUTED a0022efc: e12fff33 blx r3 <== NOT EXECUTED rtems_filesystem_freenode( &parent_loc ); a0022f00: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0022f04: e3530000 cmp r3, #0 <== NOT EXECUTED a0022f08: 0affffc2 beq a0022e18 <== NOT EXECUTED a0022f0c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0022f10: e3530000 cmp r3, #0 <== NOT EXECUTED a0022f14: 128d0004 addne r0, sp, #4 <== NOT EXECUTED a0022f18: 1affffbd bne a0022e14 <== NOT EXECUTED a0022f1c: eaffffbd b a0022e18 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*parent_loc.ops->link_h)( &existing_loc, &parent_loc, name_start ); a0022f20: e28d4018 add r4, sp, #24 a0022f24: e1a01006 mov r1, r6 a0022f28: e1a00004 mov r0, r4 a0022f2c: e59d202c ldr r2, [sp, #44] ; 0x2c a0022f30: e12fff33 blx r3 rtems_filesystem_freenode( &existing_loc ); a0022f34: 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 ); a0022f38: e1a05000 mov r5, r0 rtems_filesystem_freenode( &existing_loc ); a0022f3c: e3530000 cmp r3, #0 a0022f40: 0a000004 beq a0022f58 a0022f44: e593301c ldr r3, [r3, #28] a0022f48: e3530000 cmp r3, #0 a0022f4c: 0a000001 beq a0022f58 a0022f50: e1a00004 mov r0, r4 a0022f54: e12fff33 blx r3 rtems_filesystem_freenode( &parent_loc ); a0022f58: e59d3010 ldr r3, [sp, #16] a0022f5c: e3530000 cmp r3, #0 a0022f60: 0a000004 beq a0022f78 a0022f64: e593301c ldr r3, [r3, #28] a0022f68: e3530000 cmp r3, #0 a0022f6c: 0a000001 beq a0022f78 a0022f70: e28d0004 add r0, sp, #4 a0022f74: e12fff33 blx r3 return result; } a0022f78: e1a00005 mov r0, r5 a0022f7c: e28dd030 add sp, sp, #48 ; 0x30 a0022f80: e8bd8070 pop {r4, r5, r6, pc} a0022f84: a00535c8 .word 0xa00535c8 a00177d8 : { rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); a00177d8: e59fc0ec ldr ip, [pc, #236] ; a00178cc off_t lseek( int fd, off_t offset, int whence ) { a00177dc: e92d4870 push {r4, r5, r6, fp, lr} rtems_libio_t *iop; off_t old_offset; off_t status; rtems_libio_check_fd( fd ); a00177e0: e59cc000 ldr ip, [ip] a00177e4: e150000c cmp r0, ip a00177e8: 2a000005 bcs a0017804 iop = rtems_libio_iop( fd ); a00177ec: e59fc0dc ldr ip, [pc, #220] ; a00178d0 a00177f0: e59c4000 ldr r4, [ip] a00177f4: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open(iop); a00177f8: e5940014 ldr r0, [r4, #20] a00177fc: e3100c01 tst r0, #256 ; 0x100 a0017800: 1a000002 bne a0017810 a0017804: ebffd467 bl a000c9a8 <__errno> a0017808: e3a03009 mov r3, #9 a001780c: ea00001c b a0017884 /* * Check as many errors as possible before touching iop->offset. */ if ( !iop->handlers->lseek_h ) a0017810: e594003c ldr r0, [r4, #60] ; 0x3c a0017814: e5900014 ldr r0, [r0, #20] a0017818: e3500000 cmp r0, #0 a001781c: 1a000002 bne a001782c rtems_set_errno_and_return_minus_one( ENOTSUP ); a0017820: ebffd460 bl a000c9a8 <__errno> <== NOT EXECUTED a0017824: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0017828: ea000015 b a0017884 <== NOT EXECUTED /* * Now process the lseek(). */ old_offset = iop->offset; switch ( whence ) { a001782c: e3530001 cmp r3, #1 /* * Now process the lseek(). */ old_offset = iop->offset; a0017830: e284600c add r6, r4, #12 a0017834: e8960060 ldm r6, {r5, r6} switch ( whence ) { a0017838: 0a000006 beq a0017858 a001783c: e3530002 cmp r3, #2 a0017840: 0a000007 beq a0017864 a0017844: e3530000 cmp r3, #0 a0017848: 1a00000b bne a001787c case SEEK_SET: iop->offset = offset; a001784c: e584100c str r1, [r4, #12] a0017850: e5842010 str r2, [r4, #16] break; a0017854: ea00000e b a0017894 case SEEK_CUR: iop->offset += offset; a0017858: e091b005 adds fp, r1, r5 a001785c: e0a2c006 adc ip, r2, r6 a0017860: ea000002 b a0017870 break; case SEEK_END: iop->offset = iop->size + offset; a0017864: e9941800 ldmib r4, {fp, ip} a0017868: e09bb001 adds fp, fp, r1 a001786c: e0acc002 adc ip, ip, r2 a0017870: e584b00c str fp, [r4, #12] a0017874: e584c010 str ip, [r4, #16] break; a0017878: ea000005 b a0017894 default: rtems_set_errno_and_return_minus_one( EINVAL ); a001787c: ebffd449 bl a000c9a8 <__errno> a0017880: e3a03016 mov r3, #22 a0017884: e5803000 str r3, [r0] a0017888: e3e02000 mvn r2, #0 a001788c: e3e03000 mvn r3, #0 a0017890: ea00000a b a00178c0 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); a0017894: e594c03c ldr ip, [r4, #60] ; 0x3c a0017898: e1a00004 mov r0, r4 a001789c: e1a0e00f mov lr, pc a00178a0: e59cf014 ldr pc, [ip, #20] if ( status == (off_t) -1 ) a00178a4: e3700001 cmn r0, #1 /* * At this time, handlers assume iop->offset has the desired * new offset. */ status = (*iop->handlers->lseek_h)( iop, offset, whence ); a00178a8: e1a02000 mov r2, r0 a00178ac: e1a03001 mov r3, r1 if ( status == (off_t) -1 ) a00178b0: 1a000002 bne a00178c0 a00178b4: e3710001 cmn r1, #1 iop->offset = old_offset; a00178b8: 0584500c streq r5, [r4, #12] a00178bc: 05846010 streq r6, [r4, #16] /* * So if the operation failed, we have to restore iop->offset. */ return status; } a00178c0: e1a01003 mov r1, r3 a00178c4: e1a00002 mov r0, r2 a00178c8: e8bd8870 pop {r4, r5, r6, fp, pc} a00178cc: a0018240 .word 0xa0018240 a00178d0: a0019b4c .word 0xa0019b4c a00230a4 : int _STAT_NAME( const char *path, struct stat *buf ) { a00230a4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) a00230a8: e2515000 subs r5, r1, #0 <== NOT EXECUTED int _STAT_NAME( const char *path, struct stat *buf ) { a00230ac: e24dd018 sub sp, sp, #24 <== NOT EXECUTED a00230b0: e1a06000 mov r6, r0 <== NOT EXECUTED /* * Check to see if we were passed a valid pointer. */ if ( !buf ) a00230b4: 1a000002 bne a00230c4 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EFAULT ); a00230b8: eb0058b0 bl a0039380 <__errno> <== NOT EXECUTED a00230bc: e3a0300e mov r3, #14 <== NOT EXECUTED a00230c0: ea000018 b a0023128 <== NOT EXECUTED status = rtems_filesystem_evaluate_path( path, strlen( path ), a00230c4: eb007338 bl a003fdac <== NOT EXECUTED a00230c8: e28d4004 add r4, sp, #4 <== NOT EXECUTED a00230cc: e3a0c000 mov ip, #0 <== NOT EXECUTED a00230d0: e1a01000 mov r1, r0 <== NOT EXECUTED a00230d4: e1a0200c mov r2, ip <== NOT EXECUTED a00230d8: e1a00006 mov r0, r6 <== NOT EXECUTED a00230dc: e1a03004 mov r3, r4 <== NOT EXECUTED a00230e0: e58dc000 str ip, [sp] <== NOT EXECUTED a00230e4: ebff87ef bl a00050a8 <== NOT EXECUTED 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) a00230e8: e2501000 subs r1, r0, #0 <== NOT EXECUTED a00230ec: 1a00000e bne a002312c <== NOT EXECUTED return -1; if ( !loc.handlers->fstat_h ){ a00230f0: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a00230f4: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a00230f8: e3530000 cmp r3, #0 <== NOT EXECUTED a00230fc: 1a00000c bne a0023134 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a0023100: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0023104: e3530000 cmp r3, #0 <== NOT EXECUTED a0023108: 0a000004 beq a0023120 <== NOT EXECUTED a002310c: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0023110: e3530000 cmp r3, #0 <== NOT EXECUTED a0023114: 0a000001 beq a0023120 <== NOT EXECUTED a0023118: e1a00004 mov r0, r4 <== NOT EXECUTED a002311c: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0023120: eb005896 bl a0039380 <__errno> <== NOT EXECUTED a0023124: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0023128: e5803000 str r3, [r0] <== NOT EXECUTED a002312c: e3e05000 mvn r5, #0 <== NOT EXECUTED a0023130: ea000010 b a0023178 <== NOT EXECUTED /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); a0023134: e3a02048 mov r2, #72 ; 0x48 <== NOT EXECUTED a0023138: e1a00005 mov r0, r5 <== NOT EXECUTED a002313c: eb006547 bl a003c660 <== NOT EXECUTED status = (*loc.handlers->fstat_h)( &loc, buf ); a0023140: e1a01005 mov r1, r5 <== NOT EXECUTED a0023144: e59d300c ldr r3, [sp, #12] <== NOT EXECUTED a0023148: e1a00004 mov r0, r4 <== NOT EXECUTED a002314c: e1a0e00f mov lr, pc <== NOT EXECUTED a0023150: e593f018 ldr pc, [r3, #24] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a0023154: 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 ); a0023158: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a002315c: e3530000 cmp r3, #0 <== NOT EXECUTED a0023160: 0a000004 beq a0023178 <== NOT EXECUTED a0023164: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0023168: e3530000 cmp r3, #0 <== NOT EXECUTED a002316c: 0a000001 beq a0023178 <== NOT EXECUTED a0023170: e1a00004 mov r0, r4 <== NOT EXECUTED a0023174: e12fff33 blx r3 <== NOT EXECUTED return status; } a0023178: e1a00005 mov r0, r5 <== NOT EXECUTED a002317c: e28dd018 add sp, sp, #24 <== NOT EXECUTED a0023180: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a0008c48 : size_t size ) { void *return_this; MSBUMP(malloc_calls, 1); a0008c48: e59f30e0 ldr r3, [pc, #224] ; a0008d30 a0008c4c: e92d4070 push {r4, r5, r6, lr} a0008c50: e5932004 ldr r2, [r3, #4] a0008c54: e1a04000 mov r4, r0 a0008c58: e2822001 add r2, r2, #1 a0008c5c: e5832004 str r2, [r3, #4] /* * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); a0008c60: ebffffef bl a0008c24 /* * Validate the parameters */ if ( !size ) a0008c64: e3540000 cmp r4, #0 a0008c68: 0a00002d beq a0008d24 return (void *) 0; /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && a0008c6c: e59f30c0 ldr r3, [pc, #192] ; a0008d34 a0008c70: e5933000 ldr r3, [r3] a0008c74: e3530003 cmp r3, #3 a0008c78: 1a000002 bne a0008c88 a0008c7c: ebffffd1 bl a0008bc8 a0008c80: e3500000 cmp r0, #0 a0008c84: 0a000026 beq a0008d24 RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate( Heap_Control *heap, uintptr_t size ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 ); a0008c88: e59f30a8 ldr r3, [pc, #168] ; a0008d38 a0008c8c: e3a02000 mov r2, #0 a0008c90: e1a01004 mov r1, r4 a0008c94: e5930000 ldr r0, [r3] a0008c98: e1a03002 mov r3, r2 a0008c9c: eb000534 bl a000a174 <_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 ) { a0008ca0: 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; a0008ca4: 11a05006 movne r5, r6 * If this fails then return a NULL pointer. */ return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size ); if ( !return_this ) { a0008ca8: 1a00000c bne a0008ce0 if (rtems_malloc_sbrk_helpers) a0008cac: e59f3088 ldr r3, [pc, #136] ; a0008d3c a0008cb0: e5933000 ldr r3, [r3] a0008cb4: e3530000 cmp r3, #0 a0008cb8: 0a000004 beq a0008cd0 return_this = (*rtems_malloc_sbrk_helpers->extend)( size ); a0008cbc: e1a00004 mov r0, r4 <== NOT EXECUTED a0008cc0: e1a0e00f mov lr, pc <== NOT EXECUTED a0008cc4: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED if ( !return_this ) { a0008cc8: e2505000 subs r5, r0, #0 <== NOT EXECUTED a0008ccc: 1a000003 bne a0008ce0 <== NOT EXECUTED errno = ENOMEM; a0008cd0: eb000f34 bl a000c9a8 <__errno> a0008cd4: e3a0300c mov r3, #12 a0008cd8: e5803000 str r3, [r0] return (void *) 0; a0008cdc: ea000011 b a0008d28 } /* * If the user wants us to dirty the allocated memory, then do it. */ if ( rtems_malloc_dirty_helper ) a0008ce0: e59f3058 ldr r3, [pc, #88] ; a0008d40 a0008ce4: e5933000 ldr r3, [r3] a0008ce8: e3530000 cmp r3, #0 a0008cec: 0a000003 beq a0008d00 (*rtems_malloc_dirty_helper)( return_this, size ); a0008cf0: e1a01004 mov r1, r4 <== NOT EXECUTED a0008cf4: e1a00005 mov r0, r5 <== NOT EXECUTED a0008cf8: e1a0e00f mov lr, pc <== NOT EXECUTED a0008cfc: e593f000 ldr pc, [r3] <== NOT EXECUTED /* * If configured, update the statistics */ if ( rtems_malloc_statistics_helpers ) a0008d00: e59f303c ldr r3, [pc, #60] ; a0008d44 a0008d04: e5933000 ldr r3, [r3] a0008d08: e3530000 cmp r3, #0 a0008d0c: 0a000002 beq a0008d1c (*rtems_malloc_statistics_helpers->at_malloc)(return_this); a0008d10: e1a00005 mov r0, r5 <== NOT EXECUTED a0008d14: e1a0e00f mov lr, pc <== NOT EXECUTED a0008d18: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED a0008d1c: e1a06005 mov r6, r5 a0008d20: ea000000 b a0008d28 a0008d24: e3a06000 mov r6, #0 <== NOT EXECUTED if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif return return_this; } a0008d28: e1a00006 mov r0, r6 a0008d2c: e8bd8070 pop {r4, r5, r6, pc} a0008d30: a0019b58 .word 0xa0019b58 a0008d34: a0019e70 .word 0xa0019e70 a0008d38: a001824c .word 0xa001824c a0008d3c: a00198ec .word 0xa00198ec a0008d40: a00198f0 .word 0xa00198f0 a0008d44: a00198e8 .word 0xa00198e8 a0008c14 : } void malloc_deferred_free( void *pointer ) { a0008c14: e1a01000 mov r1, r0 <== NOT EXECUTED a0008c18: e59f0000 ldr r0, [pc, #0] ; a0008c20 <== NOT EXECUTED a0008c1c: eaffefab b a0004ad0 <_Chain_Append> <== NOT EXECUTED a0008c20: a001a1cc .word 0xa001a1cc a0008c24 : { rtems_chain_initialize_empty(&RTEMS_Malloc_GC_list); } void malloc_deferred_frees_process(void) { a0008c24: 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) a0008c28: ea000000 b a0008c30 free(to_be_freed); a0008c2c: ebfffeba bl a000871c <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get( rtems_chain_control *the_chain ) { return _Chain_Get( the_chain ); a0008c30: e59f000c ldr r0, [pc, #12] ; a0008c44 a0008c34: eb0003ad bl a0009af0 <_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) a0008c38: e3500000 cmp r0, #0 a0008c3c: 1afffffa bne a0008c2c free(to_be_freed); } a0008c40: e49df004 pop {pc} ; (ldr pc, [sp], #4) a0008c44: a001a1cc .word 0xa001a1cc a000fa68 : void memfile_free_blocks_in_table( block_p **block_table, int entries ) { a000fa68: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} /* * Perform internal consistency checks */ assert( block_table ); a000fa6c: e2504000 subs r4, r0, #0 void memfile_free_blocks_in_table( block_p **block_table, int entries ) { a000fa70: e1a0a001 mov sl, r1 /* * Perform internal consistency checks */ assert( block_table ); a000fa74: 1a000004 bne a000fa8c a000fa78: e59f0058 ldr r0, [pc, #88] ; a000fad8 <== NOT EXECUTED a000fa7c: e59f1058 ldr r1, [pc, #88] ; a000fadc <== NOT EXECUTED a000fa80: e59f2058 ldr r2, [pc, #88] ; a000fae0 <== NOT EXECUTED a000fa84: e59f3058 ldr r3, [pc, #88] ; a000fae4 <== NOT EXECUTED a000fa88: ebfff66c bl a000d440 <__assert_func> <== NOT EXECUTED /* * Now go through all the slots in the table and free the memory. */ b = *block_table; a000fa8c: e3a05000 mov r5, #0 a000fa90: e5947000 ldr r7, [r4] a000fa94: e1a06005 mov r6, r5 for ( i=0 ; i if ( b[i] ) { a000faa0: e7970005 ldr r0, [r7, r5] a000faa4: e3500000 cmp r0, #0 a000faa8: 0a000001 beq a000fab4 memfile_free_block( b[i] ); a000faac: ebffff54 bl a000f804 b[i] = 0; a000fab0: e7878005 str r8, [r7, r5] * Now go through all the slots in the table and free the memory. */ b = *block_table; for ( i=0 ; i /* * Now that all the blocks in the block table are free, we can * free the block table itself. */ memfile_free_block( *block_table ); a000fac4: e5940000 ldr r0, [r4] a000fac8: ebffff4d bl a000f804 *block_table = 0; a000facc: e3a03000 mov r3, #0 a000fad0: e5843000 str r3, [r4] } a000fad4: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} a000fad8: a001ee52 .word 0xa001ee52 a000fadc: 000001b3 .word 0x000001b3 a000fae0: a001e598 .word 0xa001e598 a000fae4: a001eec6 .word 0xa001eec6 a000ff6c : int memfile_ftruncate( rtems_libio_t *iop, rtems_off64_t length ) { a000ff6c: e92d4013 push {r0, r1, r4, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a000ff70: 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 ) a000ff74: e5943054 ldr r3, [r4, #84] ; 0x54 a000ff78: e1530002 cmp r3, r2 a000ff7c: ba000003 blt a000ff90 a000ff80: 1a000005 bne a000ff9c a000ff84: e5943050 ldr r3, [r4, #80] ; 0x50 a000ff88: e1530001 cmp r3, r1 a000ff8c: 2a000002 bcs a000ff9c return IMFS_memfile_extend( the_jnode, length ); a000ff90: e1a00004 mov r0, r4 <== NOT EXECUTED a000ff94: ebffff9a bl a000fe04 <== NOT EXECUTED a000ff98: ea000008 b a000ffc0 <== 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; a000ff9c: e5841050 str r1, [r4, #80] ; 0x50 a000ffa0: e5842054 str r2, [r4, #84] ; 0x54 iop->size = the_jnode->info.file.size; a000ffa4: e9800006 stmib r0, {r1, r2} IMFS_update_atime( the_jnode ); a000ffa8: e3a01000 mov r1, #0 a000ffac: e1a0000d mov r0, sp a000ffb0: ebffc9fa bl a00027a0 a000ffb4: e59d3000 ldr r3, [sp] a000ffb8: e3a00000 mov r0, #0 a000ffbc: e5843040 str r3, [r4, #64] ; 0x40 return 0; } a000ffc0: e8bd801c pop {r2, r3, r4, pc} a000ffc4 : rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { a000ffc4: e92d4030 push {r4, r5, lr} IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a000ffc8: e5905038 ldr r5, [r0, #56] ; 0x38 rtems_off64_t memfile_lseek( rtems_libio_t *iop, rtems_off64_t offset, int whence ) { a000ffcc: e1a04000 mov r4, r0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; if (the_jnode->type == IMFS_LINEAR_FILE) { a000ffd0: e595304c ldr r3, [r5, #76] ; 0x4c a000ffd4: e3530006 cmp r3, #6 a000ffd8: 1a00000b bne a001000c if (iop->offset > the_jnode->info.linearfile.size) a000ffdc: e5953054 ldr r3, [r5, #84] ; 0x54 <== NOT EXECUTED a000ffe0: e5901010 ldr r1, [r0, #16] <== NOT EXECUTED a000ffe4: e5952050 ldr r2, [r5, #80] ; 0x50 <== NOT EXECUTED a000ffe8: e1510003 cmp r1, r3 <== NOT EXECUTED a000ffec: ca000003 bgt a0010000 <== NOT EXECUTED a000fff0: 1a000014 bne a0010048 <== NOT EXECUTED a000fff4: e590100c ldr r1, [r0, #12] <== NOT EXECUTED a000fff8: e1510002 cmp r1, r2 <== NOT EXECUTED a000fffc: 9a000011 bls a0010048 <== NOT EXECUTED iop->offset = the_jnode->info.linearfile.size; a0010000: e584200c str r2, [r4, #12] <== NOT EXECUTED a0010004: e5843010 str r3, [r4, #16] <== NOT EXECUTED a0010008: ea00000e b a0010048 <== NOT EXECUTED } else { /* Must be a block file (IMFS_MEMORY_FILE). */ if (IMFS_memfile_extend( the_jnode, iop->offset )) a001000c: e1a00005 mov r0, r5 a0010010: e284200c add r2, r4, #12 a0010014: e8920006 ldm r2, {r1, r2} a0010018: ebffff79 bl a000fe04 a001001c: e3500000 cmp r0, #0 a0010020: 0a000005 beq a001003c rtems_set_errno_and_return_minus_one( ENOSPC ); a0010024: eb000699 bl a0011a90 <__errno> <== NOT EXECUTED a0010028: e3a0301c mov r3, #28 <== NOT EXECUTED a001002c: e5803000 str r3, [r0] <== NOT EXECUTED a0010030: e3e04000 mvn r4, #0 <== NOT EXECUTED a0010034: e3e03000 mvn r3, #0 <== NOT EXECUTED a0010038: ea000004 b a0010050 <== NOT EXECUTED iop->size = the_jnode->info.file.size; a001003c: e2853050 add r3, r5, #80 ; 0x50 a0010040: e893000c ldm r3, {r2, r3} a0010044: e984000c stmib r4, {r2, r3} } return iop->offset; a0010048: e284400c add r4, r4, #12 a001004c: e8940018 ldm r4, {r3, r4} } a0010050: e1a01004 mov r1, r4 a0010054: e1a00003 mov r0, r3 a0010058: e8bd8030 pop {r4, r5, pc} a00102e0 : the_jnode = iop->file_info; /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) a00102e0: e5903014 ldr r3, [r0, #20] rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a00102e4: 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)) a00102e8: e3130f81 tst r3, #516 ; 0x204 rtems_libio_t *iop, const char *pathname, uint32_t flag, uint32_t mode ) { a00102ec: e1a05000 mov r5, r0 IMFS_jnode_t *the_jnode; the_jnode = iop->file_info; a00102f0: e5904038 ldr r4, [r0, #56] ; 0x38 /* * Perform 'copy on write' for linear files */ if ((iop->flags & (LIBIO_FLAGS_WRITE | LIBIO_FLAGS_APPEND)) a00102f4: 0a000017 beq a0010358 && (the_jnode->type == IMFS_LINEAR_FILE)) { a00102f8: e594304c ldr r3, [r4, #76] ; 0x4c a00102fc: e3530006 cmp r3, #6 a0010300: 1a000014 bne a0010358 uint32_t count = the_jnode->info.linearfile.size; a0010304: 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; a0010308: 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; a001030c: e3a03005 mov r3, #5 <== NOT EXECUTED the_jnode->info.file.size = 0; a0010310: e3a00000 mov r0, #0 <== NOT EXECUTED a0010314: 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) a0010318: 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; a001031c: 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; a0010320: 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; a0010324: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED the_jnode->type = IMFS_MEMORY_FILE; the_jnode->info.file.size = 0; a0010328: e5840050 str r0, [r4, #80] ; 0x50 <== NOT EXECUTED a001032c: e5841054 str r1, [r4, #84] ; 0x54 <== NOT EXECUTED the_jnode->info.file.indirect = 0; the_jnode->info.file.doubly_indirect = 0; a0010330: 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; a0010334: 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) a0010338: 0a000006 beq a0010358 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) a001033c: e1a02001 mov r2, r1 <== NOT EXECUTED a0010340: e1a01000 mov r1, r0 <== NOT EXECUTED a0010344: e1a00004 mov r0, r4 <== NOT EXECUTED a0010348: e58dc000 str ip, [sp] <== NOT EXECUTED a001034c: ebffff42 bl a001005c <== 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) a0010350: e3700001 cmn r0, #1 <== NOT EXECUTED a0010354: 0a000009 beq a0010380 <== NOT EXECUTED && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1)) return -1; } if (iop->flags & LIBIO_FLAGS_APPEND) a0010358: e5953014 ldr r3, [r5, #20] a001035c: e3130c02 tst r3, #512 ; 0x200 iop->offset = the_jnode->info.file.size; a0010360: 12843050 addne r3, r4, #80 ; 0x50 a0010364: 1893000c ldmne r3, {r2, r3} a0010368: 1585200c strne r2, [r5, #12] a001036c: 15853010 strne r3, [r5, #16] iop->size = the_jnode->info.file.size; a0010370: e2844050 add r4, r4, #80 ; 0x50 a0010374: e8940018 ldm r4, {r3, r4} a0010378: e9850018 stmib r5, {r3, r4} a001037c: e3a00000 mov r0, #0 return 0; } a0010380: e8bd8038 pop {r3, r4, r5, pc} a0001464 : int mknod( const char *pathname, mode_t mode, dev_t dev ) { a0001464: 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) ) ) a0001468: e3110a0f tst r1, #61440 ; 0xf000 int mknod( const char *pathname, mode_t mode, dev_t dev ) { a000146c: e24dd01c sub sp, sp, #28 a0001470: e1a05001 mov r5, r1 a0001474: e1a07000 mov r7, r0 a0001478: e1a08002 mov r8, r2 a000147c: 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) ) ) a0001480: 1a000002 bne a0001490 rtems_set_errno_and_return_minus_one( EINVAL ); a0001484: eb002d47 bl a000c9a8 <__errno> <== NOT EXECUTED a0001488: e3a03016 mov r3, #22 <== NOT EXECUTED a000148c: ea00001b b a0001500 <== NOT EXECUTED rtems_filesystem_get_start_loc( pathname, &i, &temp_loc ); a0001490: e5d03000 ldrb r3, [r0] a0001494: e353002f cmp r3, #47 ; 0x2f a0001498: 1353005c cmpne r3, #92 ; 0x5c a000149c: 13a06000 movne r6, #0 a00014a0: 03a06001 moveq r6, #1 a00014a4: 0a000001 beq a00014b0 a00014a8: e3530000 cmp r3, #0 a00014ac: 1a000005 bne a00014c8 a00014b0: e59f30e0 ldr r3, [pc, #224] ; a0001598 a00014b4: e28dc004 add ip, sp, #4 a00014b8: e3a06001 mov r6, #1 a00014bc: e593e000 ldr lr, [r3] a00014c0: e28ee018 add lr, lr, #24 a00014c4: ea000003 b a00014d8 a00014c8: e59f30c8 ldr r3, [pc, #200] ; a0001598 a00014cc: e28dc004 add ip, sp, #4 a00014d0: e593e000 ldr lr, [r3] a00014d4: e28ee004 add lr, lr, #4 a00014d8: e8be000f ldm lr!, {r0, r1, r2, r3} a00014dc: e8ac000f stmia ip!, {r0, r1, r2, r3} a00014e0: e59e3000 ldr r3, [lr] a00014e4: e58c3000 str r3, [ip] if ( !temp_loc.ops->evalformake_h ) { a00014e8: e59d3010 ldr r3, [sp, #16] a00014ec: e5933004 ldr r3, [r3, #4] a00014f0: e3530000 cmp r3, #0 a00014f4: 1a000004 bne a000150c rtems_set_errno_and_return_minus_one( ENOTSUP ); a00014f8: eb002d2a bl a000c9a8 <__errno> <== NOT EXECUTED a00014fc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0001500: e5803000 str r3, [r0] <== NOT EXECUTED a0001504: e3e05000 mvn r5, #0 a0001508: ea00001f b a000158c } result = (*temp_loc.ops->evalformake_h)( a000150c: e28d4004 add r4, sp, #4 a0001510: e0870006 add r0, r7, r6 a0001514: e1a01004 mov r1, r4 a0001518: e28d2018 add r2, sp, #24 a000151c: e12fff33 blx r3 &pathname[i], &temp_loc, &name_start ); if ( result != 0 ) a0001520: e3500000 cmp r0, #0 a0001524: 1afffff6 bne a0001504 return -1; if ( !temp_loc.ops->mknod_h ) { a0001528: e59d3010 ldr r3, [sp, #16] a000152c: e593c014 ldr ip, [r3, #20] a0001530: e35c0000 cmp ip, #0 a0001534: 1a000005 bne a0001550 rtems_filesystem_freenode( &temp_loc ); a0001538: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a000153c: e3530000 cmp r3, #0 <== NOT EXECUTED a0001540: 0affffec beq a00014f8 <== NOT EXECUTED a0001544: e1a00004 mov r0, r4 <== NOT EXECUTED a0001548: e12fff33 blx r3 <== NOT EXECUTED a000154c: eaffffe9 b a00014f8 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*temp_loc.ops->mknod_h)( name_start, mode, dev, &temp_loc ); a0001550: e1a01005 mov r1, r5 a0001554: e1a03009 mov r3, r9 a0001558: e58d4000 str r4, [sp] a000155c: e1a02008 mov r2, r8 a0001560: e59d0018 ldr r0, [sp, #24] a0001564: e12fff3c blx ip rtems_filesystem_freenode( &temp_loc ); a0001568: 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 ); a000156c: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); a0001570: e3530000 cmp r3, #0 a0001574: 0a000004 beq a000158c a0001578: e593301c ldr r3, [r3, #28] a000157c: e3530000 cmp r3, #0 a0001580: 0a000001 beq a000158c a0001584: e1a00004 mov r0, r4 a0001588: e12fff33 blx r3 return result; } a000158c: e1a00005 mov r0, r5 a0001590: e28dd01c add sp, sp, #28 a0001594: e8bd83f0 pop {r4, r5, r6, r7, r8, r9, pc} a0001598: a0018418 .word 0xa0018418 a00015b8 : const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { a00015b8: e92d4ff0 push {r4, r5, r6, r7, r8, r9, sl, fp, lr} /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { a00015bc: e2517000 subs r7, r1, #0 const rtems_filesystem_operations_table *fs_ops, rtems_filesystem_options_t options, const char *device, const char *mount_point ) { a00015c0: e24dd018 sub sp, sp, #24 a00015c4: e1a06000 mov r6, r0 a00015c8: e1a09002 mov r9, r2 a00015cc: e1a0b003 mov fp, r3 a00015d0: e59da03c ldr sl, [sp, #60] ; 0x3c /* * Is there a file system operations table? */ if ( fs_ops == NULL ) { a00015d4: 0a000001 beq a00015e0 /* * Are the file system options valid? */ if ( options != RTEMS_FILESYSTEM_READ_ONLY && a00015d8: e3520001 cmp r2, #1 a00015dc: 9a000002 bls a00015ec options != RTEMS_FILESYSTEM_READ_WRITE ) { errno = EINVAL; a00015e0: eb002cf0 bl a000c9a8 <__errno> a00015e4: e3a03016 mov r3, #22 a00015e8: ea000014 b a0001640 return -1; } /* Do they support being mounted at all ? */ if ( !fs_ops->fsmount_me_h ) { a00015ec: e5975024 ldr r5, [r7, #36] ; 0x24 a00015f0: e3550000 cmp r5, #0 a00015f4: 1a000004 bne a000160c errno = ENOTSUP; a00015f8: eb002cea bl a000c9a8 <__errno> <== NOT EXECUTED a00015fc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0001600: e5803000 str r3, [r0] <== NOT EXECUTED a0001604: e1a08005 mov r8, r5 <== NOT EXECUTED goto cleanup_and_bail; a0001608: ea00006b b a00017bc <== NOT EXECUTED /* * Allocate a mount table entry */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) a000160c: e3530000 cmp r3, #0 a0001610: 03a0006c moveq r0, #108 ; 0x6c a0001614: 0a000002 beq a0001624 size += strlen( device ) + 1; a0001618: e1a00003 mov r0, r3 <== NOT EXECUTED a000161c: eb0030d2 bl a000d96c <== NOT EXECUTED a0001620: e280006d add r0, r0, #109 ; 0x6d <== NOT EXECUTED temp_mt_entry = malloc( size ); a0001624: eb001d87 bl a0008c48 if ( !temp_mt_entry ) { a0001628: e3500000 cmp r0, #0 */ size = sizeof(rtems_filesystem_mount_table_entry_t); if ( device ) size += strlen( device ) + 1; temp_mt_entry = malloc( size ); a000162c: e1a04000 mov r4, r0 a0001630: e1a08000 mov r8, r0 if ( !temp_mt_entry ) { a0001634: 1a000003 bne a0001648 errno = ENOMEM; a0001638: eb002cda bl a000c9a8 <__errno> <== NOT EXECUTED a000163c: e3a0300c mov r3, #12 <== NOT EXECUTED a0001640: e5803000 str r3, [r0] a0001644: ea000068 b a00017ec return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { a0001648: e35b0000 cmp fp, #0 errno = ENOMEM; return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; a000164c: 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; a0001650: 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; a0001654: 0580b068 streq fp, [r0, #104] ; 0x68 return -1; } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { a0001658: 0a000004 beq a0001670 temp_mt_entry->dev = (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); a000165c: e280306c add r3, r0, #108 ; 0x6c <== NOT EXECUTED strcpy( temp_mt_entry->dev, device ); a0001660: e1a00003 mov r0, r3 <== NOT EXECUTED a0001664: e1a0100b mov r1, fp <== NOT EXECUTED } temp_mt_entry->mt_fs_root.mt_entry = temp_mt_entry; temp_mt_entry->options = options; if ( device ) { temp_mt_entry->dev = a0001668: e5843068 str r3, [r4, #104] ; 0x68 <== NOT EXECUTED (char *)temp_mt_entry + sizeof( rtems_filesystem_mount_table_entry_t ); strcpy( temp_mt_entry->dev, device ); a000166c: eb003082 bl a000d87c <== NOT EXECUTED /* * The mount_point should be a directory with read/write/execute * permissions in the existing tree. */ if ( mount_point ) { a0001670: e35a0000 cmp sl, #0 a0001674: 0a000033 beq a0001748 if ( rtems_filesystem_evaluate_path( mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) a0001678: e1a0000a mov r0, sl a000167c: eb0030ba bl a000d96c * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( a0001680: e28d5004 add r5, sp, #4 mount_point, strlen( mount_point ), RTEMS_LIBIO_PERMS_RWX, &loc, true ) == -1 ) a0001684: e1a01000 mov r1, r0 * permissions in the existing tree. */ if ( mount_point ) { if ( rtems_filesystem_evaluate_path( a0001688: e3a0c001 mov ip, #1 a000168c: e1a0000a mov r0, sl a0001690: e3a02007 mov r2, #7 a0001694: e1a03005 mov r3, r5 a0001698: e58dc000 str ip, [sp] a000169c: ebfffec8 bl a00011c4 a00016a0: e3700001 cmn r0, #1 a00016a4: 0a000043 beq a00017b8 /* * Test for node_type_h */ if (!loc.ops->node_type_h) { a00016a8: e59d3010 ldr r3, [sp, #16] a00016ac: e5933010 ldr r3, [r3, #16] a00016b0: e3530000 cmp r3, #0 a00016b4: 1a000002 bne a00016c4 errno = ENOTSUP; a00016b8: eb002cba bl a000c9a8 <__errno> <== NOT EXECUTED a00016bc: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00016c0: ea000005 b a00016dc <== NOT EXECUTED /* * Test to see if it is a directory */ if ( loc.ops->node_type_h( &loc ) != RTEMS_FILESYSTEM_DIRECTORY ) { a00016c4: e1a00005 mov r0, r5 a00016c8: e12fff33 blx r3 a00016cc: e3500001 cmp r0, #1 a00016d0: 0a000003 beq a00016e4 errno = ENOTDIR; a00016d4: eb002cb3 bl a000c9a8 <__errno> a00016d8: e3a03014 mov r3, #20 a00016dc: e5803000 str r3, [r0] goto cleanup_and_bail; a00016e0: ea000035 b a00017bc /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; a00016e4: e59f2138 ldr r2, [pc, #312] ; a0001824 !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 ) a00016e8: e59d1004 ldr r1, [sp, #4] /* * For each mount table entry */ for ( the_node = rtems_filesystem_mount_table_control.first; a00016ec: e4923004 ldr r3, [r2], #4 a00016f0: ea000003 b a0001704 !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 ) a00016f4: e593001c ldr r0, [r3, #28] a00016f8: e1500001 cmp r0, r1 a00016fc: 0a000003 beq a0001710 * 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 ) { a0001700: e5933000 ldr r3, [r3] */ RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Tail( Chain_Control *the_chain ) { return (Chain_Node *) &the_chain->permanent_null; a0001704: e1530002 cmp r3, r2 a0001708: 1afffff9 bne a00016f4 a000170c: ea000039 b a00017f8 /* * You can only mount one file system onto a single mount point. */ if ( Is_node_fs_root( &loc ) ){ errno = EBUSY; a0001710: eb002ca4 bl a000c9a8 <__errno> a0001714: e3a03010 mov r3, #16 a0001718: ea000001 b a0001724 * 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; a000171c: eb002ca1 bl a000c9a8 <__errno> <== NOT EXECUTED a0001720: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0001724: e5803000 str r3, [r0] a0001728: e28d5004 add r5, sp, #4 goto cleanup_and_bail; a000172c: ea000022 b a00017bc } if ( loc.ops->mount_h( temp_mt_entry ) ) { a0001730: e1a00004 mov r0, r4 a0001734: e12fff33 blx r3 a0001738: e3500000 cmp r0, #0 a000173c: e28d5004 add r5, sp, #4 a0001740: 0a000008 beq a0001768 a0001744: ea00001c b a00017bc <== 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; a0001748: e584a01c str sl, [r4, #28] temp_mt_entry->mt_fs_root.handlers = NULL; a000174c: e584a024 str sl, [r4, #36] ; 0x24 temp_mt_entry->mt_fs_root.ops = NULL; a0001750: e584a028 str sl, [r4, #40] ; 0x28 temp_mt_entry->mt_point_node.node_access = NULL; a0001754: e584a008 str sl, [r4, #8] temp_mt_entry->mt_point_node.handlers = NULL; a0001758: e584a010 str sl, [r4, #16] temp_mt_entry->mt_point_node.ops = NULL; a000175c: e584a014 str sl, [r4, #20] temp_mt_entry->mt_point_node.mt_entry = NULL; a0001760: e584a018 str sl, [r4, #24] a0001764: e1a0500a mov r5, sl } if ( fs_ops->fsmount_me_h( temp_mt_entry ) ) { a0001768: e1a00004 mov r0, r4 a000176c: e1a0e00f mov lr, pc a0001770: e597f024 ldr pc, [r7, #36] ; 0x24 a0001774: e2507000 subs r7, r0, #0 a0001778: 0a000006 beq a0001798 /* try to undo the mount operation */ if ( loc.ops->unmount_h ) { a000177c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a0001780: e5933028 ldr r3, [r3, #40] ; 0x28 <== NOT EXECUTED a0001784: e3530000 cmp r3, #0 <== NOT EXECUTED a0001788: 0a00000b beq a00017bc <== NOT EXECUTED loc.ops->unmount_h( temp_mt_entry ); a000178c: e1a00004 mov r0, r4 <== NOT EXECUTED a0001790: e12fff33 blx r3 <== NOT EXECUTED a0001794: ea000008 b a00017bc <== 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 ); a0001798: e59f0084 ldr r0, [pc, #132] ; a0001824 a000179c: e1a01004 mov r1, r4 a00017a0: eb000cca bl a0004ad0 <_Chain_Append> */ rtems_chain_append( &rtems_filesystem_mount_table_control, &temp_mt_entry->Node ); if ( mt_entry ) a00017a4: e3560000 cmp r6, #0 a00017a8: 01a00006 moveq r0, r6 *mt_entry = temp_mt_entry; a00017ac: 15864000 strne r4, [r6] a00017b0: 11a00007 movne r0, r7 a00017b4: ea00000d b a00017f0 a00017b8: e3a05000 mov r5, #0 <== NOT EXECUTED return 0; cleanup_and_bail: free( temp_mt_entry ); a00017bc: e1a00008 mov r0, r8 a00017c0: eb001bd5 bl a000871c if ( loc_to_free ) a00017c4: e3550000 cmp r5, #0 a00017c8: 0a000007 beq a00017ec rtems_filesystem_freenode( loc_to_free ); a00017cc: e595300c ldr r3, [r5, #12] a00017d0: e3530000 cmp r3, #0 a00017d4: 0a000004 beq a00017ec a00017d8: e593301c ldr r3, [r3, #28] a00017dc: e3530000 cmp r3, #0 a00017e0: 0a000001 beq a00017ec a00017e4: e1a00005 mov r0, r5 a00017e8: e12fff33 blx r3 a00017ec: e3e00000 mvn r0, #0 return -1; } a00017f0: e28dd018 add sp, sp, #24 a00017f4: 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; a00017f8: 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; a00017fc: e5841008 str r1, [r4, #8] temp_mt_entry->mt_point_node.handlers = loc.handlers; a0001800: 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 ){ a0001804: e5923020 ldr r3, [r2, #32] * 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; a0001808: e5842014 str r2, [r4, #20] * 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; a000180c: 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; a0001810: 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 ){ a0001814: 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; a0001818: e5841018 str r1, [r4, #24] /* * This link to the parent is only done when we are dealing with system * below the base file system */ if ( !loc.ops->mount_h ){ a000181c: 1affffc3 bne a0001730 a0001820: eaffffbd b a000171c <== NOT EXECUTED a0001824: a0019b84 .word 0xa0019b84 a0001898 : */ int newlib_free_buffers( FILE *fp ) { a0001898: e92d4010 push {r4, lr} a000189c: e1a04000 mov r4, r0 switch ( fileno(fp) ) { a00018a0: eb002d3f bl a000cda4 a00018a4: e3500002 cmp r0, #2 a00018a8: 8a00000b bhi a00018dc case 0: case 1: case 2: if (fp->_flags & __SMBF) { a00018ac: e1d430bc ldrh r3, [r4, #12] a00018b0: e3130080 tst r3, #128 ; 0x80 a00018b4: 0a00000a beq a00018e4 free( fp->_bf._base ); a00018b8: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a00018bc: eb001b96 bl a000871c <== NOT EXECUTED fp->_flags &= ~__SMBF; a00018c0: e1d420bc ldrh r2, [r4, #12] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; a00018c4: e3a03000 mov r3, #0 <== NOT EXECUTED a00018c8: e5843010 str r3, [r4, #16] <== NOT EXECUTED case 0: case 1: case 2: if (fp->_flags & __SMBF) { free( fp->_bf._base ); fp->_flags &= ~__SMBF; a00018cc: e3c22080 bic r2, r2, #128 ; 0x80 <== NOT EXECUTED a00018d0: e1c420bc strh r2, [r4, #12] <== NOT EXECUTED fp->_bf._base = fp->_p = (unsigned char *) NULL; a00018d4: e5843000 str r3, [r4] <== NOT EXECUTED a00018d8: ea000001 b a00018e4 <== NOT EXECUTED } break; default: fclose(fp); a00018dc: e1a00004 mov r0, r4 <== NOT EXECUTED a00018e0: eb002c7d bl a000cadc <== NOT EXECUTED } return 0; } a00018e4: e3a00000 mov r0, #0 a00018e8: e8bd8010 pop {r4, pc} a0001b78 : rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { a0001b78: e92d4010 push {r4, lr} rtems_device_driver status; if ( !initialized ) { a0001b7c: e59f303c ldr r3, [pc, #60] ; a0001bc0 rtems_device_driver null_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *pargp __attribute__((unused)) ) { a0001b80: e1a04000 mov r4, r0 rtems_device_driver status; if ( !initialized ) { a0001b84: e5d32000 ldrb r2, [r3] a0001b88: e3520000 cmp r2, #0 a0001b8c: 1a000009 bne a0001bb8 initialized = 1; a0001b90: e3a0c001 mov ip, #1 a0001b94: e5c3c000 strb ip, [r3] status = rtems_io_register_name( a0001b98: e59f0024 ldr r0, [pc, #36] ; a0001bc4 a0001b9c: e1a01004 mov r1, r4 a0001ba0: eb00004c bl a0001cd8 "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) a0001ba4: e3500000 cmp r0, #0 rtems_fatal_error_occurred(status); NULL_major = major; a0001ba8: 059f3018 ldreq r3, [pc, #24] ; a0001bc8 a0001bac: 05834000 streq r4, [r3] "/dev/null", major, (rtems_device_minor_number) 0 ); if (status != RTEMS_SUCCESSFUL) a0001bb0: 0a000000 beq a0001bb8 rtems_fatal_error_occurred(status); a0001bb4: eb000f12 bl a0005804 <== NOT EXECUTED NULL_major = major; } return RTEMS_SUCCESSFUL; } a0001bb8: e3a00000 mov r0, #0 a0001bbc: e8bd8010 pop {r4, pc} a0001bc0: a001e8f8 .word 0xa001e8f8 a0001bc4: a001d9ff .word 0xa001d9ff a0001bc8: a001eaa8 .word 0xa001eaa8 a0001b10 : int open( const char *pathname, int flags, ... ) { a0001b10: e92d000e push {r1, r2, r3} a0001b14: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} a0001b18: e24dd01c sub sp, sp, #28 a0001b1c: e59d503c ldr r5, [sp, #60] ; 0x3c a0001b20: e1a06000 mov r6, r0 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); mode = va_arg( ap, int ); a0001b24: e59d9040 ldr r9, [sp, #64] ; 0x40 /* * Set the Evaluation flags */ eval_flags = 0; status = flags + 1; a0001b28: e2853001 add r3, r5, #1 if ( ( status & _FREAD ) == _FREAD ) a0001b2c: e2138001 ands r8, r3, #1 a0001b30: 13a08004 movne r8, #4 eval_flags |= RTEMS_LIBIO_PERMS_READ; if ( ( status & _FWRITE ) == _FWRITE ) a0001b34: e3130002 tst r3, #2 eval_flags |= RTEMS_LIBIO_PERMS_WRITE; va_start(ap, flags); mode = va_arg( ap, int ); a0001b38: 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; a0001b3c: 13888002 orrne r8, r8, #2 va_start(ap, flags); mode = va_arg( ap, int ); a0001b40: e58d3018 str r3, [sp, #24] * code does not require changes here since network file * descriptors are obtained using socket(), not open(). */ /* allocate a file control block */ iop = rtems_libio_allocate(); a0001b44: eb001be5 bl a0008ae0 if ( iop == 0 ) { a0001b48: e2504000 subs r4, r0, #0 a0001b4c: 03a05017 moveq r5, #23 a0001b50: 0a000077 beq a0001d34 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), eval_flags, &loc, true ); a0001b54: e1a00006 mov r0, r6 a0001b58: eb002f83 bl a000d96c /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( a0001b5c: e28d7004 add r7, sp, #4 pathname, strlen( pathname ), eval_flags, &loc, true ); a0001b60: e1a01000 mov r1, r0 /* * See if the file exists. */ status = rtems_filesystem_evaluate_path( a0001b64: e1a02008 mov r2, r8 a0001b68: e1a00006 mov r0, r6 a0001b6c: e3a08001 mov r8, #1 a0001b70: e1a03007 mov r3, r7 a0001b74: e58d8000 str r8, [sp] a0001b78: ebfffd91 bl a00011c4 pathname, strlen( pathname ), eval_flags, &loc, true ); if ( status == -1 ) { a0001b7c: e3700001 cmn r0, #1 a0001b80: 1a00001f bne a0001c04 if ( errno != ENOENT ) { a0001b84: eb002b87 bl a000c9a8 <__errno> a0001b88: e5903000 ldr r3, [r0] a0001b8c: e3530002 cmp r3, #2 a0001b90: 1a00000a bne a0001bc0 rc = errno; goto done; } /* If the file does not exist and we are not trying to create it--> error */ if ( !(flags & O_CREAT) ) { a0001b94: e215ac02 ands sl, r5, #512 ; 0x200 a0001b98: 01a0700a moveq r7, sl a0001b9c: 01a05003 moveq r5, r3 a0001ba0: 0a000055 beq a0001cfc rc = ENOENT; goto done; } /* Create the node for the new regular file */ rc = mknod( pathname, S_IFREG | mode, 0LL ); a0001ba4: e1a00006 mov r0, r6 a0001ba8: e3891902 orr r1, r9, #32768 ; 0x8000 a0001bac: e3a02000 mov r2, #0 a0001bb0: e3a03000 mov r3, #0 a0001bb4: ebfffe2a bl a0001464 if ( rc ) { a0001bb8: e250a000 subs sl, r0, #0 a0001bbc: 0a000003 beq a0001bd0 rc = errno; a0001bc0: eb002b78 bl a000c9a8 <__errno> a0001bc4: e3a07000 mov r7, #0 a0001bc8: e5905000 ldr r5, [r0] goto done; a0001bcc: ea000048 b a0001cf4 } /* Sanity check to see if the file name exists after the mknod() */ status = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), 0x0, &loc, true ); a0001bd0: e1a00006 mov r0, r6 a0001bd4: eb002f64 bl a000d96c a0001bd8: e1a03007 mov r3, r7 a0001bdc: e1a01000 mov r1, r0 a0001be0: e1a0200a mov r2, sl a0001be4: e1a00006 mov r0, r6 a0001be8: e58d8000 str r8, [sp] a0001bec: ebfffd74 bl a00011c4 if ( status != 0 ) { /* The file did not exist */ a0001bf0: e3500000 cmp r0, #0 a0001bf4: 11a0700a movne r7, sl a0001bf8: 13a0500d movne r5, #13 a0001bfc: 1a00003e bne a0001cfc a0001c00: ea000003 b a0001c14 rc = EACCES; goto done; } } else if ((flags & (O_EXCL|O_CREAT)) == (O_EXCL|O_CREAT)) { a0001c04: e2053c0a and r3, r5, #2560 ; 0xa00 a0001c08: e3530c0a cmp r3, #2560 ; 0xa00 a0001c0c: 03a05011 moveq r5, #17 a0001c10: 0a000039 beq a0001cfc * 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; a0001c14: e28d701c add r7, sp, #28 a0001c18: e5373018 ldr r3, [r7, #-24]! iop->flags |= rtems_libio_fcntl_flags( flags ); a0001c1c: e1a00005 mov r0, r5 a0001c20: e5948014 ldr r8, [r4, #20] * Fill in the file control block based on the loc structure * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; a0001c24: 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; a0001c28: e59d300c ldr r3, [sp, #12] a0001c2c: e584303c str r3, [r4, #60] ; 0x3c iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); a0001c30: eb001bd7 bl a0008b94 iop->pathinfo = loc; a0001c34: 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 ); a0001c38: e180e008 orr lr, r0, r8 iop->pathinfo = loc; a0001c3c: e8b7000f ldm r7!, {r0, r1, r2, r3} a0001c40: e8ac000f stmia ip!, {r0, r1, r2, r3} if ( !iop->handlers || !iop->handlers->open_h ) { a0001c44: 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; a0001c48: e5972000 ldr r2, [r7] * returned by successful path evaluation. */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); a0001c4c: e584e014 str lr, [r4, #20] iop->pathinfo = loc; if ( !iop->handlers || !iop->handlers->open_h ) { a0001c50: e3530000 cmp r3, #0 */ iop->handlers = loc.handlers; iop->file_info = loc.node_access; iop->flags |= rtems_libio_fcntl_flags( flags ); iop->pathinfo = loc; a0001c54: e58c2000 str r2, [ip] if ( !iop->handlers || !iop->handlers->open_h ) { a0001c58: 0a000041 beq a0001d64 a0001c5c: e593c000 ldr ip, [r3] a0001c60: e35c0000 cmp ip, #0 a0001c64: 0a00003e beq a0001d64 rc = ENOTSUP; goto done; } rc = (*iop->handlers->open_h)( iop, pathname, flags, mode ); a0001c68: e1a01006 mov r1, r6 a0001c6c: e1a03009 mov r3, r9 a0001c70: e1a00004 mov r0, r4 a0001c74: e1a02005 mov r2, r5 a0001c78: e12fff3c blx ip if ( rc ) { a0001c7c: e3500000 cmp r0, #0 a0001c80: 0a000003 beq a0001c94 rc = errno; a0001c84: eb002b47 bl a000c9a8 <__errno> a0001c88: e28d7004 add r7, sp, #4 a0001c8c: e5905000 ldr r5, [r0] goto done; a0001c90: ea000017 b a0001cf4 /* * Optionally truncate the file. */ if ( (flags & O_TRUNC) == O_TRUNC ) { a0001c94: e3150b01 tst r5, #1024 ; 0x400 a0001c98: 0a000029 beq a0001d44 rc = ftruncate( iop - rtems_libio_iops, 0 ); a0001c9c: e59f30cc ldr r3, [pc, #204] ; a0001d70 a0001ca0: e3a01000 mov r1, #0 a0001ca4: e3a02000 mov r2, #0 a0001ca8: e5930000 ldr r0, [r3] a0001cac: e0600004 rsb r0, r0, r4 a0001cb0: e1a00340 asr r0, r0, #6 a0001cb4: eb001ac3 bl a00087c8 if ( rc ) { a0001cb8: e2505000 subs r5, r0, #0 a0001cbc: 0a000020 beq a0001d44 if(errno) rc = errno; a0001cc0: eb002b38 bl a000c9a8 <__errno> <== NOT EXECUTED a0001cc4: e5903000 ldr r3, [r0] <== NOT EXECUTED a0001cc8: e3530000 cmp r3, #0 <== NOT EXECUTED a0001ccc: 0a000001 beq a0001cd8 <== NOT EXECUTED a0001cd0: eb002b34 bl a000c9a8 <__errno> <== NOT EXECUTED a0001cd4: e5905000 ldr r5, [r0] <== NOT EXECUTED close( iop - rtems_libio_iops ); a0001cd8: e59f3090 ldr r3, [pc, #144] ; a0001d70 <== NOT EXECUTED a0001cdc: e5933000 ldr r3, [r3] <== NOT EXECUTED a0001ce0: e0634004 rsb r4, r3, r4 <== NOT EXECUTED a0001ce4: e1a00344 asr r0, r4, #6 <== NOT EXECUTED a0001ce8: eb001a63 bl a000867c <== NOT EXECUTED a0001cec: e3a04000 mov r4, #0 <== NOT EXECUTED a0001cf0: e1a07004 mov r7, r4 <== NOT EXECUTED */ done: va_end(ap); if ( rc ) { a0001cf4: e3550000 cmp r5, #0 a0001cf8: 0a000011 beq a0001d44 if ( iop ) a0001cfc: e3540000 cmp r4, #0 a0001d00: 0a000001 beq a0001d0c rtems_libio_free( iop ); a0001d04: e1a00004 mov r0, r4 a0001d08: eb001b5c bl a0008a80 if ( loc_to_free ) a0001d0c: e3570000 cmp r7, #0 a0001d10: 0a000007 beq a0001d34 rtems_filesystem_freenode( loc_to_free ); a0001d14: e597300c ldr r3, [r7, #12] a0001d18: e3530000 cmp r3, #0 a0001d1c: 0a000004 beq a0001d34 a0001d20: e593301c ldr r3, [r3, #28] a0001d24: e3530000 cmp r3, #0 a0001d28: 0a000001 beq a0001d34 a0001d2c: e1a00007 mov r0, r7 a0001d30: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( rc ); a0001d34: eb002b1b bl a000c9a8 <__errno> a0001d38: e5805000 str r5, [r0] a0001d3c: e3e00000 mvn r0, #0 a0001d40: ea000003 b a0001d54 } return iop - rtems_libio_iops; a0001d44: e59f3024 ldr r3, [pc, #36] ; a0001d70 a0001d48: e5930000 ldr r0, [r3] a0001d4c: e0604004 rsb r4, r0, r4 a0001d50: e1a00344 asr r0, r4, #6 } a0001d54: e28dd01c add sp, sp, #28 a0001d58: e8bd47f0 pop {r4, r5, r6, r7, r8, r9, sl, lr} a0001d5c: e28dd00c add sp, sp, #12 a0001d60: 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; a0001d64: e28d7004 add r7, sp, #4 <== NOT EXECUTED a0001d68: e3a05086 mov r5, #134 ; 0x86 <== NOT EXECUTED a0001d6c: eaffffe2 b a0001cfc <== NOT EXECUTED a0001d70: a0019b4c .word 0xa0019b4c a0001aac : int stderr_fd; /* * Attempt to open /dev/console. */ if ((stdin_fd = open("/dev/console", O_RDONLY, 0)) == -1) { a0001aac: e3a01000 mov r1, #0 /* * This is a replaceable stub which opens the console, if present. */ void open_dev_console(void) { a0001ab0: 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) { a0001ab4: e59f0048 ldr r0, [pc, #72] ; a0001b04 a0001ab8: e1a02001 mov r2, r1 a0001abc: eb000013 bl a0001b10 a0001ac0: e3700001 cmn r0, #1 a0001ac4: 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) a0001ac8: e59f0034 ldr r0, [pc, #52] ; a0001b04 a0001acc: e3a01001 mov r1, #1 a0001ad0: e3a02000 mov r2, #0 a0001ad4: eb00000d bl a0001b10 a0001ad8: e3700001 cmn r0, #1 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ a0001adc: 059f0024 ldreq r0, [pc, #36] ; a0001b08 /* * 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) a0001ae0: 0a000006 beq a0001b00 rtems_fatal_error_occurred( 0x55544431 ); /* error STD1 */ if ((stderr_fd = open("/dev/console", O_WRONLY, 0)) == -1) a0001ae4: e59f0018 ldr r0, [pc, #24] ; a0001b04 a0001ae8: e3a01001 mov r1, #1 a0001aec: e3a02000 mov r2, #0 a0001af0: eb000006 bl a0001b10 a0001af4: e3700001 cmn r0, #1 a0001af8: 149df004 popne {pc} ; (ldrne pc, [sp], #4) rtems_fatal_error_occurred( 0x55544432 ); /* error STD2 */ a0001afc: e59f0008 ldr r0, [pc, #8] ; a0001b0c <== NOT EXECUTED a0001b00: eb000b36 bl a00047e0 <== NOT EXECUTED a0001b04: a00193c5 .word 0xa00193c5 a0001b08: 55544431 .word 0x55544431 a0001b0c: 55544432 .word 0x55544432 a0002438 : /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { a0002438: e92d4011 push {r0, r4, lr} int i; if (tty->termios.c_oflag & OPOST) { a000243c: e5913034 ldr r3, [r1, #52] ; 0x34 /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) { a0002440: e1a04001 mov r4, r1 a0002444: e5cd0000 strb r0, [sp] int i; if (tty->termios.c_oflag & OPOST) { a0002448: e3130001 tst r3, #1 a000244c: 0a000047 beq a0002570 switch (c) { a0002450: e5dd2000 ldrb r2, [sp] a0002454: e2421008 sub r1, r2, #8 a0002458: e3510005 cmp r1, #5 a000245c: 979ff101 ldrls pc, [pc, r1, lsl #2] a0002460: ea00002e b a0002520 a0002464: a000250c .word 0xa000250c <== NOT EXECUTED a0002468: a00024e0 .word 0xa00024e0 <== NOT EXECUTED a000246c: a000247c .word 0xa000247c <== NOT EXECUTED a0002470: a0002520 .word 0xa0002520 <== NOT EXECUTED a0002474: a0002520 .word 0xa0002520 <== NOT EXECUTED a0002478: a00024a8 .word 0xa00024a8 <== NOT EXECUTED case '\n': if (tty->termios.c_oflag & ONLRET) a000247c: e3130020 tst r3, #32 tty->column = 0; a0002480: 13a03000 movne r3, #0 a0002484: 15843028 strne r3, [r4, #40] ; 0x28 if (tty->termios.c_oflag & ONLCR) { a0002488: e5943034 ldr r3, [r4, #52] ; 0x34 a000248c: e3130004 tst r3, #4 a0002490: 0a000036 beq a0002570 rtems_termios_puts ("\r", 1, tty); a0002494: e59f00e8 ldr r0, [pc, #232] ; a0002584 a0002498: e3a01001 mov r1, #1 a000249c: e1a02004 mov r2, r4 a00024a0: ebffff9f bl a0002324 a00024a4: ea00000b b a00024d8 tty->column = 0; } break; case '\r': if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0)) a00024a8: e3130010 tst r3, #16 <== NOT EXECUTED a00024ac: 0a000002 beq a00024bc <== NOT EXECUTED a00024b0: e5942028 ldr r2, [r4, #40] ; 0x28 <== NOT EXECUTED a00024b4: e3520000 cmp r2, #0 <== NOT EXECUTED a00024b8: 0a000030 beq a0002580 <== NOT EXECUTED return; if (tty->termios.c_oflag & OCRNL) { a00024bc: e2132008 ands r2, r3, #8 <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) tty->column = 0; break; } tty->column = 0; a00024c0: 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) { a00024c4: 0a000029 beq a0002570 <== NOT EXECUTED c = '\n'; if (tty->termios.c_oflag & ONLRET) a00024c8: 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'; a00024cc: e3a0300a mov r3, #10 <== NOT EXECUTED a00024d0: e5cd3000 strb r3, [sp] <== NOT EXECUTED if (tty->termios.c_oflag & ONLRET) a00024d4: 0a000025 beq a0002570 <== NOT EXECUTED tty->column = 0; a00024d8: e3a03000 mov r3, #0 a00024dc: ea000022 b a000256c } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); a00024e0: e5942028 ldr r2, [r4, #40] ; 0x28 if ((tty->termios.c_oflag & TABDLY) == XTABS) { a00024e4: e2033b06 and r3, r3, #6144 ; 0x1800 a00024e8: e3530b06 cmp r3, #6144 ; 0x1800 } tty->column = 0; break; case '\t': i = 8 - (tty->column & 7); a00024ec: e2021007 and r1, r2, #7 a00024f0: e2611008 rsb r1, r1, #8 a00024f4: e0813002 add r3, r1, r2 if ((tty->termios.c_oflag & TABDLY) == XTABS) { a00024f8: 1a00001b bne a000256c tty->column += i; a00024fc: e5843028 str r3, [r4, #40] ; 0x28 rtems_termios_puts ( " ", i, tty); a0002500: e1a02004 mov r2, r4 a0002504: e59f007c ldr r0, [pc, #124] ; a0002588 a0002508: ea00001b b a000257c } tty->column += i; break; case '\b': if (tty->column > 0) a000250c: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED a0002510: e3530000 cmp r3, #0 <== NOT EXECUTED tty->column--; a0002514: c2433001 subgt r3, r3, #1 <== NOT EXECUTED } tty->column += i; break; case '\b': if (tty->column > 0) a0002518: ca000013 bgt a000256c <== NOT EXECUTED a000251c: ea000013 b a0002570 <== NOT EXECUTED tty->column--; break; default: if (tty->termios.c_oflag & OLCUC) a0002520: e3130002 tst r3, #2 a0002524: 0a000007 beq a0002548 c = toupper(c); a0002528: e59f305c ldr r3, [pc, #92] ; a000258c <== NOT EXECUTED a000252c: e5933000 ldr r3, [r3] <== NOT EXECUTED a0002530: e0833002 add r3, r3, r2 <== NOT EXECUTED a0002534: e5d33001 ldrb r3, [r3, #1] <== NOT EXECUTED a0002538: e2033003 and r3, r3, #3 <== NOT EXECUTED a000253c: e3530002 cmp r3, #2 <== NOT EXECUTED a0002540: 02422020 subeq r2, r2, #32 <== NOT EXECUTED a0002544: e5cd2000 strb r2, [sp] <== NOT EXECUTED if (!iscntrl(c)) a0002548: e59f203c ldr r2, [pc, #60] ; a000258c a000254c: e5dd3000 ldrb r3, [sp] a0002550: e5922000 ldr r2, [r2] a0002554: e0823003 add r3, r2, r3 a0002558: e5d33001 ldrb r3, [r3, #1] a000255c: e3130020 tst r3, #32 a0002560: 1a000002 bne a0002570 tty->column++; a0002564: e5943028 ldr r3, [r4, #40] ; 0x28 a0002568: e2833001 add r3, r3, #1 a000256c: e5843028 str r3, [r4, #40] ; 0x28 break; } } rtems_termios_puts (&c, 1, tty); a0002570: e1a02004 mov r2, r4 a0002574: e1a0000d mov r0, sp a0002578: e3a01001 mov r1, #1 a000257c: ebffff68 bl a0002324 } a0002580: e8bd8018 pop {r3, r4, pc} a0002584: a001953f .word 0xa001953f a0002588: a0019410 .word 0xa0019410 a000258c: a00184c0 .word 0xa00184c0 a000bf6c : * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { a000bf6c: e92d4070 push {r4, r5, r6, lr} a000bf70: 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) a000bf74: e28d5004 add r5, sp, #4 a000bf78: e3a0c001 mov ip, #1 * Called by pipe() to create an anonymous pipe. */ int pipe_create( int filsdes[2] ) { a000bf7c: 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) a000bf80: e3a01003 mov r1, #3 a000bf84: e59f0148 ldr r0, [pc, #328] ; a000c0d4 a000bf88: e3a02007 mov r2, #7 a000bf8c: e1a03005 mov r3, r5 a000bf90: e58dc000 str ip, [sp] a000bf94: ebffd48a bl a00011c4 a000bf98: e3500000 cmp r0, #0 a000bf9c: 0a000009 beq a000bfc8 != 0) { if (errno != ENOENT) a000bfa0: eb000280 bl a000c9a8 <__errno> a000bfa4: e5903000 ldr r3, [r0] a000bfa8: e3530002 cmp r3, #2 a000bfac: 1a000045 bne a000c0c8 return -1; if (mkdir("/tmp", S_IRWXU|S_IRWXG|S_IRWXO|S_ISVTX) != 0) a000bfb0: e59f011c ldr r0, [pc, #284] ; a000c0d4 a000bfb4: e59f111c ldr r1, [pc, #284] ; a000c0d8 a000bfb8: ebffd525 bl a0001454 a000bfbc: e3500000 cmp r0, #0 a000bfc0: 0a000008 beq a000bfe8 a000bfc4: ea00003f b a000c0c8 <== NOT EXECUTED return -1; } else rtems_filesystem_freenode(&loc); a000bfc8: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a000bfcc: e3530000 cmp r3, #0 <== NOT EXECUTED a000bfd0: 0a000004 beq a000bfe8 <== NOT EXECUTED a000bfd4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a000bfd8: e3530000 cmp r3, #0 <== NOT EXECUTED a000bfdc: 0a000001 beq a000bfe8 <== NOT EXECUTED a000bfe0: e1a00005 mov r0, r5 <== NOT EXECUTED a000bfe4: e12fff33 blx r3 <== NOT EXECUTED /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); a000bfe8: e59f30ec ldr r3, [pc, #236] ; a000c0dc else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); a000bfec: e28d5018 add r5, sp, #24 sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); a000bff0: e59f10e8 ldr r1, [pc, #232] ; a000c0e0 a000bff4: e1d3c0b0 ldrh ip, [r3] a000bff8: e285000a add r0, r5, #10 a000bffc: e1a0200c mov r2, ip a000c000: e28cc001 add ip, ip, #1 a000c004: e1c3c0b0 strh ip, [r3] else rtems_filesystem_freenode(&loc); /* /tmp/.fifoXXXX */ char fifopath[15]; memcpy(fifopath, "/tmp/.fifo", 10); a000c008: e59f30d4 ldr r3, [pc, #212] ; a000c0e4 a000c00c: e58d3018 str r3, [sp, #24] a000c010: e59f30d0 ldr r3, [pc, #208] ; a000c0e8 a000c014: e58d301c str r3, [sp, #28] a000c018: e59f30cc ldr r3, [pc, #204] ; a000c0ec a000c01c: e1c530b8 strh r3, [r5, #8] sprintf(fifopath + 10, "%04x", rtems_pipe_no ++); a000c020: eb000514 bl a000d478 /* Try creating FIFO file until find an available file name */ while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) { a000c024: e1a00005 mov r0, r5 a000c028: e3a01d06 mov r1, #384 ; 0x180 a000c02c: eb000041 bl a000c138 a000c030: e2506000 subs r6, r0, #0 a000c034: 0a000001 beq a000c040 if (errno != EEXIST){ a000c038: eb00025a bl a000c9a8 <__errno> <== NOT EXECUTED a000c03c: ea000021 b a000c0c8 <== 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); a000c040: e1a00005 mov r0, r5 a000c044: e3a01901 mov r1, #16384 ; 0x4000 a000c048: ebffd6b0 bl a0001b10 if (filsdes[0] < 0) { a000c04c: 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); a000c050: e5840000 str r0, [r4] if (filsdes[0] < 0) { a000c054: aa000003 bge a000c068 err = errno; a000c058: eb000252 bl a000c9a8 <__errno> a000c05c: 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); a000c060: e1a00005 mov r0, r5 a000c064: ea000014 b a000c0bc } else { /* Reset open file to blocking mode */ iop = rtems_libio_iop(filsdes[0]); a000c068: e59f3080 ldr r3, [pc, #128] ; a000c0f0 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; filsdes[1] = open(fifopath, O_WRONLY); a000c06c: 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]); a000c070: e5933000 ldr r3, [r3] <== NOT EXECUTED a000c074: e1500003 cmp r0, r3 <== NOT EXECUTED a000c078: 359f3074 ldrcc r3, [pc, #116] ; a000c0f4 <== NOT EXECUTED a000c07c: 35936000 ldrcc r6, [r3] <== NOT EXECUTED a000c080: 30866300 addcc r6, r6, r0, lsl #6 <== NOT EXECUTED iop->flags &= ~LIBIO_FLAGS_NO_DELAY; a000c084: e5963014 ldr r3, [r6, #20] <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); a000c088: 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; a000c08c: e3c33001 bic r3, r3, #1 <== NOT EXECUTED a000c090: e5863014 str r3, [r6, #20] <== NOT EXECUTED filsdes[1] = open(fifopath, O_WRONLY); a000c094: ebffd69d bl a0001b10 <== NOT EXECUTED if (filsdes[1] < 0) { a000c098: 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); a000c09c: e5840004 str r0, [r4, #4] <== NOT EXECUTED if (filsdes[1] < 0) { a000c0a0: a3a06000 movge r6, #0 <== NOT EXECUTED a000c0a4: aa000003 bge a000c0b8 <== NOT EXECUTED err = errno; a000c0a8: eb00023e bl a000c9a8 <__errno> <== NOT EXECUTED a000c0ac: e5906000 ldr r6, [r0] <== NOT EXECUTED close(filsdes[0]); a000c0b0: e5940000 ldr r0, [r4] <== NOT EXECUTED a000c0b4: ebfff170 bl a000867c <== NOT EXECUTED } unlink(fifopath); a000c0b8: e28d0018 add r0, sp, #24 <== NOT EXECUTED a000c0bc: eb000021 bl a000c148 } rtems_set_errno_and_return_minus_one(err); a000c0c0: eb000238 bl a000c9a8 <__errno> a000c0c4: e5806000 str r6, [r0] } a000c0c8: e3e00000 mvn r0, #0 a000c0cc: e28dd028 add sp, sp, #40 ; 0x28 a000c0d0: e8bd8070 pop {r4, r5, r6, pc} a000c0d4: a0019687 .word 0xa0019687 a000c0d8: 000003ff .word 0x000003ff a000c0dc: a0019ad2 .word 0xa0019ad2 a000c0e0: a001968c .word 0xa001968c a000c0e4: 706d742f .word 0x706d742f a000c0e8: 69662e2f .word 0x69662e2f a000c0ec: 00006f66 .word 0x00006f66 a000c0f0: a0018240 .word 0xa0018240 a000c0f4: a0019b4c .word 0xa0019b4c a000ac48 : /* Called with rtems_pipe_semaphore held. */ static inline void pipe_free( pipe_control_t *pipe ) { a000ac48: e92d4010 push {r4, lr} <== NOT EXECUTED a000ac4c: e1a04000 mov r4, r0 <== NOT EXECUTED rtems_barrier_delete(pipe->readBarrier); a000ac50: e590002c ldr r0, [r0, #44] ; 0x2c <== NOT EXECUTED a000ac54: eb00032c bl a000b90c <== NOT EXECUTED rtems_barrier_delete(pipe->writeBarrier); a000ac58: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000ac5c: eb00032a bl a000b90c <== NOT EXECUTED rtems_semaphore_delete(pipe->Semaphore); a000ac60: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000ac64: ebffe521 bl a00040f0 <== NOT EXECUTED free(pipe->Buffer); a000ac68: e5940000 ldr r0, [r4] <== NOT EXECUTED a000ac6c: ebfff6aa bl a000871c <== NOT EXECUTED free(pipe); a000ac70: e1a00004 mov r0, r4 <== NOT EXECUTED } a000ac74: 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); a000ac78: eafff6a7 b a000871c <== NOT EXECUTED a000a8c0 : uint32_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) { a000a8c0: e59f3060 ldr r3, [pc, #96] ; a000a928 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { a000a8c4: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED if (cmd == FIONREAD) { a000a8c8: e1510003 cmp r1, r3 <== NOT EXECUTED pipe_control_t *pipe, uint32_t cmd, void *buffer, rtems_libio_t *iop ) { a000a8cc: e1a04000 mov r4, r0 <== NOT EXECUTED a000a8d0: e1a05002 mov r5, r2 <== NOT EXECUTED if (cmd == FIONREAD) { a000a8d4: 0a000001 beq a000a8e0 <== NOT EXECUTED a000a8d8: e3e00015 mvn r0, #21 <== NOT EXECUTED a000a8dc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED if (buffer == NULL) a000a8e0: e3520000 cmp r2, #0 <== NOT EXECUTED a000a8e4: 1a000001 bne a000a8f0 <== NOT EXECUTED a000a8e8: e3e0000d mvn r0, #13 <== NOT EXECUTED a000a8ec: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED return -EFAULT; if (! PIPE_LOCK(pipe)) a000a8f0: e3a01000 mov r1, #0 <== NOT EXECUTED a000a8f4: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED a000a8f8: e1a02001 mov r2, r1 <== NOT EXECUTED a000a8fc: ebffe622 bl a000418c <== NOT EXECUTED a000a900: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000a904: 0a000001 beq a000a910 <== NOT EXECUTED a000a908: e3e00003 mvn r0, #3 <== NOT EXECUTED a000a90c: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; a000a910: e594300c ldr r3, [r4, #12] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000a914: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; /* Return length of pipe */ *(uint *)buffer = pipe->Length; a000a918: e5853000 str r3, [r5] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000a91c: ebffe660 bl a00042a4 <== NOT EXECUTED a000a920: e1a00006 mov r0, r6 <== NOT EXECUTED return 0; } return -EINVAL; } a000a924: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a000a928: 4004667f .word 0x4004667f a000a854 : rtems_libio_t *iop ) { /* Seek on pipe is not supported */ return -ESPIPE; } a000a854: e3e0001c mvn r0, #28 <== NOT EXECUTED a000a858: e12fff1e bx lr <== NOT EXECUTED a000a92c : pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { a000a92c: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} <== NOT EXECUTED a000a930: e1a09001 mov r9, r1 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) a000a934: e3a01000 mov r1, #0 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { a000a938: e1a04000 mov r4, r0 <== NOT EXECUTED a000a93c: e1a05002 mov r5, r2 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) a000a940: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED a000a944: e1a02001 mov r2, r1 <== NOT EXECUTED pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) { a000a948: e1a0a003 mov sl, r3 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) a000a94c: ebffe60e bl a000418c <== NOT EXECUTED a000a950: e2506000 subs r6, r0, #0 <== NOT EXECUTED a000a954: 13e06003 mvnne r6, #3 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) PIPE_WAKEUPWRITERS(pipe); a000a958: 01a0b00d moveq fp, sp <== NOT EXECUTED rtems_libio_t *iop ) { int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) a000a95c: 0a000046 beq a000aa7c <== NOT EXECUTED a000a960: ea00004c b a000aa98 <== NOT EXECUTED return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { /* Not an error */ if (pipe->Writers == 0) a000a964: e5943014 ldr r3, [r4, #20] <== NOT EXECUTED a000a968: e3530000 cmp r3, #0 <== NOT EXECUTED a000a96c: 0a000044 beq a000aa84 <== NOT EXECUTED goto out_locked; if (LIBIO_NODELAY(iop)) { a000a970: e59a7014 ldr r7, [sl, #20] <== NOT EXECUTED a000a974: e2177001 ands r7, r7, #1 <== NOT EXECUTED a000a978: 13e0700a mvnne r7, #10 <== NOT EXECUTED a000a97c: 1a000041 bne a000aa88 <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until pipe is no more empty or no writer exists */ pipe->waitingReaders ++; a000a980: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000a984: 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 ++; a000a988: e2833001 add r3, r3, #1 <== NOT EXECUTED a000a98c: e5843018 str r3, [r4, #24] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000a990: ebffe643 bl a00042a4 <== NOT EXECUTED if (! PIPE_READWAIT(pipe)) a000a994: e1a01007 mov r1, r7 <== NOT EXECUTED a000a998: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000a99c: eb000408 bl a000b9c4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000a9a0: e1a01007 mov r1, r7 <== NOT EXECUTED a000a9a4: 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)) a000a9a8: e2507000 subs r7, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000a9ac: 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)) a000a9b0: 13e07003 mvnne r7, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000a9b4: ebffe5f4 bl a000418c <== NOT EXECUTED a000a9b8: e3500000 cmp r0, #0 <== NOT EXECUTED a000a9bc: 13e07003 mvnne r7, #3 <== NOT EXECUTED a000a9c0: 1a000032 bne a000aa90 <== NOT EXECUTED /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; a000a9c4: e5943018 ldr r3, [r4, #24] <== NOT EXECUTED if (ret != 0) a000a9c8: e3570000 cmp r7, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingReaders not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingReaders --; a000a9cc: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000a9d0: e5843018 str r3, [r4, #24] <== NOT EXECUTED if (ret != 0) a000a9d4: 1a00002b bne a000aa88 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { while (PIPE_EMPTY(pipe)) { a000a9d8: e594200c ldr r2, [r4, #12] <== NOT EXECUTED a000a9dc: e3520000 cmp r2, #0 <== NOT EXECUTED a000a9e0: 0affffdf beq a000a964 <== NOT EXECUTED goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; a000a9e4: e5943008 ldr r3, [r4, #8] <== NOT EXECUTED a000a9e8: e5948004 ldr r8, [r4, #4] <== NOT EXECUTED if (ret != 0) goto out_locked; } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); a000a9ec: e0667005 rsb r7, r6, r5 <== NOT EXECUTED a000a9f0: e5941000 ldr r1, [r4] <== NOT EXECUTED a000a9f4: e1520007 cmp r2, r7 <== NOT EXECUTED a000a9f8: 31a07002 movcc r7, r2 <== NOT EXECUTED chunk1 = pipe->Size - pipe->Start; a000a9fc: e0638008 rsb r8, r3, r8 <== NOT EXECUTED if (chunk > chunk1) { a000aa00: e1570008 cmp r7, r8 <== NOT EXECUTED a000aa04: 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); a000aa08: d0811003 addle r1, r1, r3 <== NOT EXECUTED a000aa0c: d1a02007 movle r2, r7 <== NOT EXECUTED } /* Read chunk bytes */ chunk = MIN(count - read, pipe->Length); chunk1 = pipe->Size - pipe->Start; if (chunk > chunk1) { a000aa10: da000006 ble a000aa30 <== NOT EXECUTED memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1); a000aa14: e0811003 add r1, r1, r3 <== NOT EXECUTED a000aa18: e1a02008 mov r2, r8 <== NOT EXECUTED a000aa1c: eb0009ef bl a000d1e0 <== NOT EXECUTED memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1); a000aa20: e5941000 ldr r1, [r4] <== NOT EXECUTED a000aa24: e0860008 add r0, r6, r8 <== NOT EXECUTED a000aa28: e0890000 add r0, r9, r0 <== NOT EXECUTED a000aa2c: e0682007 rsb r2, r8, r7 <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); a000aa30: eb0009ea bl a000d1e0 <== NOT EXECUTED pipe->Start += chunk; a000aa34: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED pipe->Start %= pipe->Size; a000aa38: 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; a000aa3c: e0870000 add r0, r7, r0 <== NOT EXECUTED a000aa40: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Start %= pipe->Size; a000aa44: eb002dde bl a00161c4 <__umodsi3> <== NOT EXECUTED pipe->Length -= chunk; a000aa48: e594300c ldr r3, [r4, #12] <== NOT EXECUTED } else memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk); pipe->Start += chunk; pipe->Start %= pipe->Size; a000aa4c: e5840008 str r0, [r4, #8] <== NOT EXECUTED pipe->Length -= chunk; a000aa50: e0673003 rsb r3, r7, r3 <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) a000aa54: e3530000 cmp r3, #0 <== NOT EXECUTED pipe->Start = 0; a000aa58: 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; a000aa5c: e584300c str r3, [r4, #12] <== NOT EXECUTED /* For buffering optimization */ if (PIPE_EMPTY(pipe)) pipe->Start = 0; if (pipe->waitingWriters > 0) a000aa60: e594301c ldr r3, [r4, #28] <== NOT EXECUTED a000aa64: e3530000 cmp r3, #0 <== NOT EXECUTED a000aa68: 0a000002 beq a000aa78 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); a000aa6c: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000aa70: e1a0100d mov r1, sp <== NOT EXECUTED a000aa74: eb0003bc bl a000b96c <== NOT EXECUTED read += chunk; a000aa78: e0866007 add r6, r6, r7 <== NOT EXECUTED int chunk, chunk1, read = 0, ret = 0; if (! PIPE_LOCK(pipe)) return -EINTR; while (read < count) { a000aa7c: e1560005 cmp r6, r5 <== NOT EXECUTED a000aa80: 3affffd4 bcc a000a9d8 <== NOT EXECUTED a000aa84: e3a07000 mov r7, #0 <== NOT EXECUTED PIPE_WAKEUPWRITERS(pipe); read += chunk; } out_locked: PIPE_UNLOCK(pipe); a000aa88: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000aa8c: ebffe604 bl a00042a4 <== NOT EXECUTED out_nolock: if (read > 0) a000aa90: e3560000 cmp r6, #0 <== NOT EXECUTED a000aa94: d1a06007 movle r6, r7 <== NOT EXECUTED return read; return ret; } a000aa98: e1a00006 mov r0, r6 <== NOT EXECUTED a000aa9c: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED a000ac7c : */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { a000ac7c: e92d40f1 push {r0, r4, r5, r6, r7, lr} <== NOT EXECUTED pipe_control_t *pipe = *pipep; a000ac80: e5904000 ldr r4, [r0] <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { a000ac84: e1a05001 mov r5, r1 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, a000ac88: e3a01000 mov r1, #0 <== NOT EXECUTED */ int pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) { a000ac8c: e1a06000 mov r6, r0 <== NOT EXECUTED pipe_control_t *pipe = *pipep; uint32_t mode; rtems_status_code sc; sc = rtems_semaphore_obtain(pipe->Semaphore, a000ac90: e1a02001 mov r2, r1 <== NOT EXECUTED a000ac94: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000ac98: ebffe53b bl a000418c <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) a000ac9c: e3500000 cmp r0, #0 <== NOT EXECUTED a000aca0: 1a000010 bne a000ace8 <== NOT EXECUTED rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); a000aca4: 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, a000aca8: e3a01000 mov r1, #0 <== NOT EXECUTED a000acac: e1a02001 mov r2, r1 <== NOT EXECUTED /* WARN pipe not released! */ if(sc != RTEMS_SUCCESSFUL) rtems_fatal_error_occurred(sc); mode = LIBIO_ACCMODE(iop); if (mode & LIBIO_FLAGS_READ) a000acb0: e3150002 tst r5, #2 <== NOT EXECUTED pipe->Readers --; a000acb4: 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); a000acb8: e2055006 and r5, r5, #6 <== NOT EXECUTED if (mode & LIBIO_FLAGS_READ) pipe->Readers --; a000acbc: 12433001 subne r3, r3, #1 <== NOT EXECUTED a000acc0: 15843010 strne r3, [r4, #16] <== NOT EXECUTED if (mode & LIBIO_FLAGS_WRITE) a000acc4: e3150004 tst r5, #4 <== NOT EXECUTED pipe->Writers --; a000acc8: 15943014 ldrne r3, [r4, #20] <== NOT EXECUTED a000accc: 12433001 subne r3, r3, #1 <== NOT EXECUTED a000acd0: 15843014 strne r3, [r4, #20] <== NOT EXECUTED sc = rtems_semaphore_obtain(rtems_pipe_semaphore, a000acd4: e59f3098 ldr r3, [pc, #152] ; a000ad74 <== NOT EXECUTED a000acd8: e5930000 ldr r0, [r3] <== NOT EXECUTED a000acdc: ebffe52a bl a000418c <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); /* WARN pipe not freed and pipep not set to NULL! */ if(sc != RTEMS_SUCCESSFUL) a000ace0: e3500000 cmp r0, #0 <== NOT EXECUTED a000ace4: 0a000000 beq a000acec <== NOT EXECUTED rtems_fatal_error_occurred(sc); a000ace8: ebffe6bc bl a00047e0 <== NOT EXECUTED PIPE_UNLOCK(pipe); a000acec: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000acf0: ebffe56b bl a00042a4 <== NOT EXECUTED if (pipe->Readers == 0 && pipe->Writers == 0) { a000acf4: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000acf8: e3530000 cmp r3, #0 <== NOT EXECUTED a000acfc: 1a000006 bne a000ad1c <== NOT EXECUTED a000ad00: e5947014 ldr r7, [r4, #20] <== NOT EXECUTED a000ad04: e3570000 cmp r7, #0 <== NOT EXECUTED a000ad08: 1a000003 bne a000ad1c <== NOT EXECUTED #if 0 /* To delete an anonymous pipe file when all users closed it */ if (pipe->Anonymous) delfile = TRUE; #endif pipe_free(pipe); a000ad0c: e1a00004 mov r0, r4 <== NOT EXECUTED a000ad10: ebffffcc bl a000ac48 <== NOT EXECUTED *pipep = NULL; a000ad14: 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) { a000ad18: ea000010 b a000ad60 <== NOT EXECUTED delfile = TRUE; #endif pipe_free(pipe); *pipep = NULL; } else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE) a000ad1c: e2552004 subs r2, r5, #4 <== NOT EXECUTED a000ad20: 13a02001 movne r2, #1 <== NOT EXECUTED a000ad24: e3530000 cmp r3, #0 <== NOT EXECUTED a000ad28: 13a02000 movne r2, #0 <== NOT EXECUTED a000ad2c: e3520000 cmp r2, #0 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); a000ad30: 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) a000ad34: 1a000007 bne a000ad58 <== NOT EXECUTED /* Notify waiting Writers that all their partners left */ PIPE_WAKEUPWRITERS(pipe); else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ) a000ad38: e5942014 ldr r2, [r4, #20] <== NOT EXECUTED a000ad3c: e2553002 subs r3, r5, #2 <== NOT EXECUTED a000ad40: 13a03001 movne r3, #1 <== NOT EXECUTED a000ad44: e3520000 cmp r2, #0 <== NOT EXECUTED a000ad48: 13a03000 movne r3, #0 <== NOT EXECUTED a000ad4c: e3530000 cmp r3, #0 <== NOT EXECUTED a000ad50: 0a000002 beq a000ad60 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); a000ad54: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000ad58: e1a0100d mov r1, sp <== NOT EXECUTED a000ad5c: eb000302 bl a000b96c <== NOT EXECUTED rtems_semaphore_release(rtems_pipe_semaphore); a000ad60: e59f300c ldr r3, [pc, #12] ; a000ad74 <== NOT EXECUTED a000ad64: e5930000 ldr r0, [r3] <== NOT EXECUTED a000ad68: ebffe54d bl a00042a4 <== NOT EXECUTED if(iop->pathinfo.ops->unlink_h(&iop->pathinfo)) return -errno; #endif return 0; } a000ad6c: e3a00000 mov r0, #0 <== NOT EXECUTED a000ad70: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} <== NOT EXECUTED a000ad74: a0019acc .word 0xa0019acc a000aaa0 : pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { a000aaa0: 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) a000aaa4: e2525000 subs r5, r2, #0 <== NOT EXECUTED pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) { a000aaa8: e1a04000 mov r4, r0 <== NOT EXECUTED a000aaac: e1a0b001 mov fp, r1 <== NOT EXECUTED a000aab0: e1a08003 mov r8, r3 <== NOT EXECUTED int chunk, chunk1, written = 0, ret = 0; /* Write nothing */ if (count == 0) a000aab4: 01a06005 moveq r6, r5 <== NOT EXECUTED a000aab8: 0a000060 beq a000ac40 <== NOT EXECUTED return 0; if (! PIPE_LOCK(pipe)) a000aabc: e3a01000 mov r1, #0 <== NOT EXECUTED a000aac0: e5900028 ldr r0, [r0, #40] ; 0x28 <== NOT EXECUTED a000aac4: e1a02001 mov r2, r1 <== NOT EXECUTED a000aac8: ebffe5af bl a000418c <== NOT EXECUTED a000aacc: e3500000 cmp r0, #0 <== NOT EXECUTED a000aad0: 13e06003 mvnne r6, #3 <== NOT EXECUTED a000aad4: 1a000059 bne a000ac40 <== NOT EXECUTED return -EINTR; if (pipe->Readers == 0) { a000aad8: e5946010 ldr r6, [r4, #16] <== NOT EXECUTED a000aadc: e3560000 cmp r6, #0 <== NOT EXECUTED a000aae0: 0a000022 beq a000ab70 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } /* Write of PIPE_BUF bytes or less shall not be interleaved */ chunk = count <= pipe->Size ? count : 1; a000aae4: e5949004 ldr r9, [r4, #4] <== NOT EXECUTED a000aae8: e1a06000 mov r6, r0 <== NOT EXECUTED a000aaec: e1550009 cmp r5, r9 <== NOT EXECUTED a000aaf0: 91a09005 movls r9, r5 <== NOT EXECUTED a000aaf4: 83a09001 movhi r9, #1 <== NOT EXECUTED a000aaf8: ea000044 b a000ac10 <== NOT EXECUTED while (written < count) { while (PIPE_SPACE(pipe) < chunk) { if (LIBIO_NODELAY(iop)) { a000aafc: e5987014 ldr r7, [r8, #20] <== NOT EXECUTED a000ab00: e2177001 ands r7, r7, #1 <== NOT EXECUTED a000ab04: 13e0700a mvnne r7, #10 <== NOT EXECUTED a000ab08: 1a000043 bne a000ac1c <== NOT EXECUTED ret = -EAGAIN; goto out_locked; } /* Wait until there is chunk bytes space or no reader exists */ pipe->waitingWriters ++; a000ab0c: e594301c ldr r3, [r4, #28] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000ab10: 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 ++; a000ab14: e2833001 add r3, r3, #1 <== NOT EXECUTED a000ab18: e584301c str r3, [r4, #28] <== NOT EXECUTED PIPE_UNLOCK(pipe); a000ab1c: ebffe5e0 bl a00042a4 <== NOT EXECUTED if (! PIPE_WRITEWAIT(pipe)) a000ab20: e1a01007 mov r1, r7 <== NOT EXECUTED a000ab24: e5940030 ldr r0, [r4, #48] ; 0x30 <== NOT EXECUTED a000ab28: eb0003a5 bl a000b9c4 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000ab2c: e1a01007 mov r1, r7 <== NOT EXECUTED a000ab30: 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)) a000ab34: e2507000 subs r7, r0, #0 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000ab38: 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)) a000ab3c: 13e07003 mvnne r7, #3 <== NOT EXECUTED ret = -EINTR; if (! PIPE_LOCK(pipe)) { a000ab40: ebffe591 bl a000418c <== NOT EXECUTED a000ab44: e3500000 cmp r0, #0 <== NOT EXECUTED a000ab48: 13e07003 mvnne r7, #3 <== NOT EXECUTED a000ab4c: 1a000039 bne a000ac38 <== NOT EXECUTED /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; a000ab50: e594301c ldr r3, [r4, #28] <== NOT EXECUTED if (ret != 0) a000ab54: e3570000 cmp r7, #0 <== NOT EXECUTED if (! PIPE_LOCK(pipe)) { /* WARN waitingWriters not restored! */ ret = -EINTR; goto out_nolock; } pipe->waitingWriters --; a000ab58: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000ab5c: e584301c str r3, [r4, #28] <== NOT EXECUTED if (ret != 0) a000ab60: 1a00002d bne a000ac1c <== NOT EXECUTED goto out_locked; if (pipe->Readers == 0) { a000ab64: e5943010 ldr r3, [r4, #16] <== NOT EXECUTED a000ab68: e3530000 cmp r3, #0 <== NOT EXECUTED a000ab6c: 1a000001 bne a000ab78 <== NOT EXECUTED a000ab70: e3e0701f mvn r7, #31 <== NOT EXECUTED a000ab74: ea000028 b a000ac1c <== 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) { a000ab78: e594a004 ldr sl, [r4, #4] <== NOT EXECUTED a000ab7c: e594200c ldr r2, [r4, #12] <== NOT EXECUTED a000ab80: e062300a rsb r3, r2, sl <== NOT EXECUTED a000ab84: e1530009 cmp r3, r9 <== NOT EXECUTED a000ab88: 3affffdb bcc a000aafc <== NOT EXECUTED goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); chunk1 = pipe->Size - PIPE_WSTART(pipe); a000ab8c: e5940008 ldr r0, [r4, #8] <== NOT EXECUTED a000ab90: e1a0100a mov r1, sl <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); a000ab94: e0667005 rsb r7, r6, r5 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); a000ab98: e0820000 add r0, r2, r0 <== NOT EXECUTED ret = -EPIPE; goto out_locked; } } chunk = MIN(count - written, PIPE_SPACE(pipe)); a000ab9c: e1530007 cmp r3, r7 <== NOT EXECUTED a000aba0: 31a07003 movcc r7, r3 <== NOT EXECUTED chunk1 = pipe->Size - PIPE_WSTART(pipe); a000aba4: eb002d86 bl a00161c4 <__umodsi3> <== NOT EXECUTED a000aba8: e5943000 ldr r3, [r4] <== NOT EXECUTED a000abac: e060a00a rsb sl, r0, sl <== NOT EXECUTED if (chunk > chunk1) { a000abb0: e157000a cmp r7, sl <== NOT EXECUTED a000abb4: 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); a000abb8: d0830000 addle r0, r3, r0 <== NOT EXECUTED a000abbc: d1a02007 movle r2, r7 <== NOT EXECUTED } } chunk = MIN(count - written, PIPE_SPACE(pipe)); chunk1 = pipe->Size - PIPE_WSTART(pipe); if (chunk > chunk1) { a000abc0: da000006 ble a000abe0 <== NOT EXECUTED memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1); a000abc4: e1a0200a mov r2, sl <== NOT EXECUTED a000abc8: e0830000 add r0, r3, r0 <== NOT EXECUTED a000abcc: eb000983 bl a000d1e0 <== NOT EXECUTED memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1); a000abd0: e5940000 ldr r0, [r4] <== NOT EXECUTED a000abd4: e08a1006 add r1, sl, r6 <== NOT EXECUTED a000abd8: e08b1001 add r1, fp, r1 <== NOT EXECUTED a000abdc: e06a2007 rsb r2, sl, r7 <== NOT EXECUTED } else memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk); a000abe0: eb00097e bl a000d1e0 <== NOT EXECUTED pipe->Length += chunk; a000abe4: e594300c ldr r3, [r4, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) a000abe8: 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; a000abec: e0833007 add r3, r3, r7 <== NOT EXECUTED if (pipe->waitingReaders > 0) a000abf0: 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; a000abf4: e584300c str r3, [r4, #12] <== NOT EXECUTED if (pipe->waitingReaders > 0) a000abf8: 0a000002 beq a000ac08 <== NOT EXECUTED PIPE_WAKEUPREADERS(pipe); a000abfc: e594002c ldr r0, [r4, #44] ; 0x2c <== NOT EXECUTED a000ac00: e1a0100d mov r1, sp <== NOT EXECUTED a000ac04: eb000358 bl a000b96c <== NOT EXECUTED written += chunk; a000ac08: e0866007 add r6, r6, r7 <== NOT EXECUTED a000ac0c: 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) { a000ac10: e1560005 cmp r6, r5 <== NOT EXECUTED a000ac14: 3affffd7 bcc a000ab78 <== NOT EXECUTED a000ac18: e3a07000 mov r7, #0 <== NOT EXECUTED /* Write of more than PIPE_BUF bytes can be interleaved */ chunk = 1; } out_locked: PIPE_UNLOCK(pipe); a000ac1c: e5940028 ldr r0, [r4, #40] ; 0x28 <== NOT EXECUTED a000ac20: ebffe59f bl a00042a4 <== NOT EXECUTED out_nolock: #ifdef RTEMS_POSIX_API /* Signal SIGPIPE */ if (ret == -EPIPE) a000ac24: e3770020 cmn r7, #32 <== NOT EXECUTED a000ac28: 1a000002 bne a000ac38 <== NOT EXECUTED kill(getpid(), SIGPIPE); a000ac2c: eb000203 bl a000b440 <== NOT EXECUTED a000ac30: e3a0100d mov r1, #13 <== NOT EXECUTED a000ac34: eb000270 bl a000b5fc <== NOT EXECUTED #endif if (written > 0) a000ac38: e3560000 cmp r6, #0 <== NOT EXECUTED a000ac3c: d1a06007 movle r6, r7 <== NOT EXECUTED return written; return ret; } a000ac40: e1a00006 mov r0, r6 <== NOT EXECUTED a000ac44: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED a001797c : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a001797c: e59f30b0 ldr r3, [pc, #176] ; a0017a34 ssize_t read( int fd, void *buffer, size_t count ) { a0017980: e92d4070 push {r4, r5, r6, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0017984: e5933000 ldr r3, [r3] ssize_t read( int fd, void *buffer, size_t count ) { a0017988: e1a05001 mov r5, r1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a001798c: e1500003 cmp r0, r3 a0017990: 2a000005 bcs a00179ac iop = rtems_libio_iop( fd ); a0017994: e59f309c ldr r3, [pc, #156] ; a0017a38 a0017998: e5934000 ldr r4, [r3] a001799c: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); a00179a0: e5943014 ldr r3, [r4, #20] a00179a4: e3130c01 tst r3, #256 ; 0x100 a00179a8: 1a000002 bne a00179b8 a00179ac: ebffd3fd bl a000c9a8 <__errno> a00179b0: e3a03009 mov r3, #9 a00179b4: ea000010 b a00179fc rtems_libio_check_buffer( buffer ); a00179b8: e3510000 cmp r1, #0 a00179bc: 0a000005 beq a00179d8 rtems_libio_check_count( count ); a00179c0: e3520000 cmp r2, #0 a00179c4: 1a000001 bne a00179d0 a00179c8: e1a00002 mov r0, r2 <== NOT EXECUTED a00179cc: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); a00179d0: e3130002 tst r3, #2 a00179d4: 1a000002 bne a00179e4 a00179d8: ebffd3f2 bl a000c9a8 <__errno> <== NOT EXECUTED a00179dc: e3a03016 mov r3, #22 <== NOT EXECUTED a00179e0: ea000005 b a00179fc <== NOT EXECUTED /* * Now process the read(). */ if ( !iop->handlers->read_h ) a00179e4: e594303c ldr r3, [r4, #60] ; 0x3c a00179e8: e5933008 ldr r3, [r3, #8] a00179ec: e3530000 cmp r3, #0 a00179f0: 1a000004 bne a0017a08 rtems_set_errno_and_return_minus_one( ENOTSUP ); a00179f4: ebffd3eb bl a000c9a8 <__errno> <== NOT EXECUTED a00179f8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00179fc: e5803000 str r3, [r0] a0017a00: e3e00000 mvn r0, #0 a0017a04: e8bd8070 pop {r4, r5, r6, pc} rc = (*iop->handlers->read_h)( iop, buffer, count ); a0017a08: e1a00004 mov r0, r4 a0017a0c: e12fff33 blx r3 if ( rc > 0 ) a0017a10: e3500000 cmp r0, #0 a0017a14: da000005 ble a0017a30 iop->offset += rc; a0017a18: e284600c add r6, r4, #12 a0017a1c: e8960060 ldm r6, {r5, r6} a0017a20: e0952000 adds r2, r5, r0 a0017a24: e0a63fc0 adc r3, r6, r0, asr #31 a0017a28: e584200c str r2, [r4, #12] a0017a2c: e5843010 str r3, [r4, #16] return rc; } a0017a30: e8bd8070 pop {r4, r5, r6, pc} a0017a34: a0018240 .word 0xa0018240 a0017a38: a0019b4c .word 0xa0019b4c a0023598 : ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { a0023598: e92d40f0 push {r4, r5, r6, r7, lr} rtems_filesystem_location_info_t loc; int result; if (!buf) a002359c: e2516000 subs r6, r1, #0 ssize_t readlink( const char *pathname, char *buf, size_t bufsize ) { a00235a0: e24dd018 sub sp, sp, #24 a00235a4: e1a05002 mov r5, r2 a00235a8: e1a07000 mov r7, r0 rtems_filesystem_location_info_t loc; int result; if (!buf) a00235ac: 1a000002 bne a00235bc rtems_set_errno_and_return_minus_one( EFAULT ); a00235b0: eb005772 bl a0039380 <__errno> <== NOT EXECUTED a00235b4: e3a0300e mov r3, #14 <== NOT EXECUTED a00235b8: ea000027 b a002365c <== NOT EXECUTED result = rtems_filesystem_evaluate_path( pathname, strlen( pathname ), a00235bc: eb0071fa bl a003fdac a00235c0: e28d4004 add r4, sp, #4 a00235c4: e3a0c000 mov ip, #0 a00235c8: e1a01000 mov r1, r0 a00235cc: e1a0200c mov r2, ip a00235d0: e1a00007 mov r0, r7 a00235d4: e1a03004 mov r3, r4 a00235d8: e58dc000 str ip, [sp] a00235dc: ebff86b1 bl a00050a8 0, &loc, false ); if ( result != 0 ) a00235e0: e3500000 cmp r0, #0 a00235e4: 1a00001d bne a0023660 return -1; if ( !loc.ops->node_type_h ){ a00235e8: e59d2010 ldr r2, [sp, #16] a00235ec: e5923010 ldr r3, [r2, #16] a00235f0: e3530000 cmp r3, #0 a00235f4: 0a000011 beq a0023640 rtems_filesystem_freenode( &loc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } if ( (*loc.ops->node_type_h)( &loc ) != RTEMS_FILESYSTEM_SYM_LINK ){ a00235f8: e1a00004 mov r0, r4 a00235fc: e12fff33 blx r3 a0023600: e3500004 cmp r0, #4 a0023604: e59d2010 ldr r2, [sp, #16] a0023608: 0a000009 beq a0023634 rtems_filesystem_freenode( &loc ); a002360c: e3520000 cmp r2, #0 a0023610: 0a000004 beq a0023628 a0023614: e592301c ldr r3, [r2, #28] a0023618: e3530000 cmp r3, #0 a002361c: 0a000001 beq a0023628 a0023620: e1a00004 mov r0, r4 a0023624: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( EINVAL ); a0023628: eb005754 bl a0039380 <__errno> a002362c: e3a03016 mov r3, #22 a0023630: ea000009 b a002365c } if ( !loc.ops->readlink_h ){ a0023634: e592303c ldr r3, [r2, #60] ; 0x3c a0023638: e3530000 cmp r3, #0 a002363c: 1a000009 bne a0023668 rtems_filesystem_freenode( &loc ); a0023640: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0023644: e3530000 cmp r3, #0 <== NOT EXECUTED a0023648: 0a000001 beq a0023654 <== NOT EXECUTED a002364c: e1a00004 mov r0, r4 <== NOT EXECUTED a0023650: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0023654: eb005749 bl a0039380 <__errno> <== NOT EXECUTED a0023658: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a002365c: e5803000 str r3, [r0] a0023660: e3e05000 mvn r5, #0 a0023664: ea00000c b a002369c } result = (*loc.ops->readlink_h)( &loc, buf, bufsize ); a0023668: e1a02005 mov r2, r5 a002366c: e1a01006 mov r1, r6 a0023670: e1a00004 mov r0, r4 a0023674: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a0023678: 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 ); a002367c: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); a0023680: e3530000 cmp r3, #0 a0023684: 0a000004 beq a002369c a0023688: e593301c ldr r3, [r3, #28] a002368c: e3530000 cmp r3, #0 a0023690: 0a000001 beq a002369c a0023694: e1a00004 mov r0, r4 a0023698: e12fff33 blx r3 return result; } a002369c: e1a00005 mov r0, r5 a00236a0: e28dd018 add sp, sp, #24 a00236a4: e8bd80f0 pop {r4, r5, r6, r7, pc} a0003264 : int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); a0003264: e59f3138 ldr r3, [pc, #312] ; a00033a4 ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { a0003268: 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 ); a000326c: e5933000 ldr r3, [r3] ssize_t readv( int fd, const struct iovec *iov, int iovcnt ) { a0003270: e1a08002 mov r8, r2 int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd ); a0003274: e1500003 cmp r0, r3 a0003278: 2a000005 bcs a0003294 iop = rtems_libio_iop( fd ); a000327c: e59f3124 ldr r3, [pc, #292] ; a00033a8 a0003280: e5936000 ldr r6, [r3] a0003284: e0866300 add r6, r6, r0, lsl #6 rtems_libio_check_is_open( iop ); a0003288: e5963014 ldr r3, [r6, #20] a000328c: e3130c01 tst r3, #256 ; 0x100 a0003290: 1a000002 bne a00032a0 a0003294: eb002eef bl a000ee58 <__errno> <== NOT EXECUTED a0003298: e3a03009 mov r3, #9 <== NOT EXECUTED a000329c: ea00001f b a0003320 <== NOT EXECUTED rtems_libio_check_permissions( iop, LIBIO_FLAGS_READ ); a00032a0: e3130002 tst r3, #2 a00032a4: 0a00001b beq a0003318 /* * Argument validation on IO vector */ if ( !iov ) a00032a8: e3510000 cmp r1, #0 a00032ac: 0a000019 beq a0003318 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) a00032b0: e3520000 cmp r2, #0 a00032b4: da000017 ble a0003318 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) a00032b8: e3520b01 cmp r2, #1024 ; 0x400 a00032bc: ca000015 bgt a0003318 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->read_h ) a00032c0: e596303c ldr r3, [r6, #60] ; 0x3c a00032c4: e5933008 ldr r3, [r3, #8] a00032c8: e3530000 cmp r3, #0 a00032cc: 1a000002 bne a00032dc rtems_set_errno_and_return_minus_one( ENOTSUP ); a00032d0: eb002ee0 bl a000ee58 <__errno> <== NOT EXECUTED a00032d4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00032d8: ea000010 b a0003320 <== NOT EXECUTED a00032dc: e3a03000 mov r3, #0 a00032e0: e1a05001 mov r5, r1 a00032e4: e1a02001 mov r2, r1 a00032e8: e1a01003 mov r1, r3 all_zeros = true; for ( total=0, v=0 ; v < iovcnt ; v++ ) { ssize_t old; if ( !iov[v].iov_base ) a00032ec: 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++ ) { a00032f0: e2833001 add r3, r3, #1 ssize_t old; if ( !iov[v].iov_base ) a00032f4: e3500000 cmp r0, #0 a00032f8: 0a000006 beq a0003318 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iov[v].iov_len <= 0 ) a00032fc: 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++ ) { a0003300: 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 ) a0003304: e35c0000 cmp ip, #0 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; a0003308: 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 ) a000330c: 0a000001 beq a0003318 rtems_set_errno_and_return_minus_one( EINVAL ); /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old ) a0003310: e1500001 cmp r0, r1 a0003314: aa000003 bge a0003328 rtems_set_errno_and_return_minus_one( EINVAL ); a0003318: eb002ece bl a000ee58 <__errno> a000331c: e3a03016 mov r3, #22 a0003320: e5803000 str r3, [r0] a0003324: ea00000c b a000335c * 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++ ) { a0003328: e1530008 cmp r3, r8 a000332c: b1a01000 movlt r1, r0 a0003330: baffffed blt a00032ec a0003334: e3a07000 mov r7, #0 a0003338: 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 ); a000333c: e8950006 ldm r5, {r1, r2} a0003340: e596303c ldr r3, [r6, #60] ; 0x3c a0003344: e1a00006 mov r0, r6 a0003348: e1a0e00f mov lr, pc a000334c: e593f008 ldr pc, [r3, #8] if ( bytes < 0 ) a0003350: e3500000 cmp r0, #0 } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { a0003354: e2877001 add r7, r7, #1 bytes = (*iop->handlers->read_h)( iop, iov[v].iov_base, iov[v].iov_len ); if ( bytes < 0 ) a0003358: aa000001 bge a0003364 a000335c: e3e04000 mvn r4, #0 a0003360: ea00000d b a000339c return -1; if ( bytes > 0 ) { a0003364: 0a000006 beq a0003384 iop->offset += bytes; a0003368: e286c00c add ip, r6, #12 <== NOT EXECUTED a000336c: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED a0003370: e09b2000 adds r2, fp, r0 <== NOT EXECUTED a0003374: e0ac3fc0 adc r3, ip, r0, asr #31 <== NOT EXECUTED a0003378: e586200c str r2, [r6, #12] <== NOT EXECUTED a000337c: e5863010 str r3, [r6, #16] <== NOT EXECUTED total += bytes; a0003380: e0844000 add r4, r4, r0 <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) a0003384: e5953004 ldr r3, [r5, #4] } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { a0003388: e2855008 add r5, r5, #8 if ( bytes > 0 ) { iop->offset += bytes; total += bytes; } if (bytes != iov[ v ].iov_len) a000338c: e1500003 cmp r0, r3 a0003390: 1a000001 bne a000339c } /* * Now process the readv(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { a0003394: e1570008 cmp r7, r8 <== NOT EXECUTED a0003398: baffffe7 blt a000333c <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } a000339c: e1a00004 mov r0, r4 a00033a0: e8bd89f0 pop {r4, r5, r6, r7, r8, fp, pc} a00033a4: a001bf50 .word 0xa001bf50 a00033a8: a001eca0 .word 0xa001eca0 a0017a94 : { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); a0017a94: e59f310c ldr r3, [pc, #268] ; a0017ba8 /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { a0017a98: e59f210c ldr r2, [pc, #268] ; a0017bac { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); a0017a9c: e92d40f1 push {r0, r4, r5, r6, r7, lr} /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { a0017aa0: e5922000 ldr r2, [r2] { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); a0017aa4: e1a04000 mov r4, r0 a0017aa8: e5930010 ldr r0, [r3, #16] /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { a0017aac: e3520003 cmp r2, #3 { uintptr_t old_size; char *new_area; uintptr_t resize; MSBUMP(realloc_calls, 1); a0017ab0: e1a05001 mov r5, r1 a0017ab4: e2800001 add r0, r0, #1 a0017ab8: e5830010 str r0, [r3, #16] /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) { a0017abc: 1a000007 bne a0017ae0 if (_Thread_Dispatch_disable_level > 0) a0017ac0: e59f30e8 ldr r3, [pc, #232] ; a0017bb0 a0017ac4: e5933000 ldr r3, [r3] a0017ac8: e3530000 cmp r3, #0 a0017acc: 1a000032 bne a0017b9c return (void *) 0; if (_ISR_Nest_level > 0) a0017ad0: e59f30dc ldr r3, [pc, #220] ; a0017bb4 a0017ad4: e5933000 ldr r3, [r3] a0017ad8: e3530000 cmp r3, #0 a0017adc: 1a00002e bne a0017b9c } /* * Continue with realloc(). */ if ( !ptr ) a0017ae0: e3540000 cmp r4, #0 a0017ae4: 1a000003 bne a0017af8 return malloc( size ); a0017ae8: e1a00005 mov r0, r5 a0017aec: ebffc455 bl a0008c48 a0017af0: e1a04000 mov r4, r0 a0017af4: ea000029 b a0017ba0 if ( !size ) { a0017af8: e3550000 cmp r5, #0 a0017afc: 1a000003 bne a0017b10 free( ptr ); a0017b00: e1a00004 mov r0, r4 <== NOT EXECUTED a0017b04: ebffc304 bl a000871c <== NOT EXECUTED a0017b08: e1a04005 mov r4, r5 <== NOT EXECUTED return (void *) 0; a0017b0c: ea000023 b a0017ba0 <== NOT EXECUTED } if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) { a0017b10: e59f60a0 ldr r6, [pc, #160] ; a0017bb8 a0017b14: e1a01004 mov r1, r4 a0017b18: e1a0200d mov r2, sp a0017b1c: e5960000 ldr r0, [r6] a0017b20: eb000055 bl a0017c7c <_Protected_heap_Get_block_size> a0017b24: e2507000 subs r7, r0, #0 a0017b28: 1a000004 bne a0017b40 errno = EINVAL; a0017b2c: ebffd39d bl a000c9a8 <__errno> a0017b30: e3a03016 mov r3, #22 a0017b34: e5803000 str r3, [r0] a0017b38: e1a04007 mov r4, r7 return (void *) 0; a0017b3c: ea000017 b a0017ba0 #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 ) ) { a0017b40: e5960000 ldr r0, [r6] a0017b44: e1a01004 mov r1, r4 a0017b48: e1a02005 mov r2, r5 a0017b4c: eb00005b bl a0017cc0 <_Protected_heap_Resize_block> a0017b50: e3500000 cmp r0, #0 a0017b54: 1a000011 bne a0017ba0 * 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 ); a0017b58: e1a00005 mov r0, r5 a0017b5c: ebffc439 bl a0008c48 MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ a0017b60: e59f3040 ldr r3, [pc, #64] ; a0017ba8 if ( !new_area ) { a0017b64: e2506000 subs r6, r0, #0 * and the C Standard. */ new_area = malloc( size ); MSBUMP(malloc_calls, (uint32_t) -1); /* subtract off the malloc */ a0017b68: e5932004 ldr r2, [r3, #4] a0017b6c: e2422001 sub r2, r2, #1 a0017b70: e5832004 str r2, [r3, #4] if ( !new_area ) { a0017b74: 0a000008 beq a0017b9c return (void *) 0; } memcpy( new_area, ptr, (size < old_size) ? size : old_size ); a0017b78: e59d2000 ldr r2, [sp] a0017b7c: e1a01004 mov r1, r4 a0017b80: e1550002 cmp r5, r2 a0017b84: 31a02005 movcc r2, r5 a0017b88: ebffd594 bl a000d1e0 free( ptr ); a0017b8c: e1a00004 mov r0, r4 a0017b90: ebffc2e1 bl a000871c a0017b94: e1a04006 mov r4, r6 return new_area; a0017b98: ea000000 b a0017ba0 a0017b9c: e3a04000 mov r4, #0 } a0017ba0: e1a00004 mov r0, r4 a0017ba4: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} a0017ba8: a0019b58 .word 0xa0019b58 a0017bac: a0019e70 .word 0xa0019e70 a0017bb0: a0019ccc .word 0xa0019ccc a0017bb4: a0019d5c .word 0xa0019d5c a0017bb8: a001824c .word 0xa001824c a00064ec : #include int rmdir( const char *pathname ) { a00064ec: e92d4070 push {r4, r5, r6, lr} a00064f0: e24dd02c sub sp, sp, #44 ; 0x2c a00064f4: e1a06000 mov r6, r0 /* * Get the parent node of the node we wish to remove. Find the parent path. */ parentpathlen = rtems_filesystem_dirname ( pathname ); a00064f8: ebfffaa4 bl a0004f90 if ( parentpathlen == 0 ) a00064fc: e2505000 subs r5, r0, #0 a0006500: 1a000015 bne a000655c rtems_filesystem_get_start_loc( pathname, &i, &parentloc ); a0006504: e5d63000 ldrb r3, [r6] a0006508: e353002f cmp r3, #47 ; 0x2f a000650c: 1353005c cmpne r3, #92 ; 0x5c a0006510: 0a000001 beq a000651c a0006514: e3530000 cmp r3, #0 <== NOT EXECUTED a0006518: 1a000005 bne a0006534 <== NOT EXECUTED a000651c: e59f323c ldr r3, [pc, #572] ; a0006760 a0006520: e28dc018 add ip, sp, #24 a0006524: e3a04000 mov r4, #0 a0006528: e593e000 ldr lr, [r3] a000652c: e28ee018 add lr, lr, #24 a0006530: ea000004 b a0006548 a0006534: e59f3224 ldr r3, [pc, #548] ; a0006760 <== NOT EXECUTED a0006538: e28dc018 add ip, sp, #24 <== NOT EXECUTED a000653c: e1a04005 mov r4, r5 <== NOT EXECUTED a0006540: e593e000 ldr lr, [r3] <== NOT EXECUTED a0006544: e28ee004 add lr, lr, #4 <== NOT EXECUTED a0006548: e8be000f ldm lr!, {r0, r1, r2, r3} a000654c: e8ac000f stmia ip!, {r0, r1, r2, r3} a0006550: e59e3000 ldr r3, [lr] a0006554: e58c3000 str r3, [ip] a0006558: ea000009 b a0006584 else { result = rtems_filesystem_evaluate_path(pathname, parentpathlen, a000655c: e3a0c000 mov ip, #0 a0006560: e1a00006 mov r0, r6 a0006564: e1a01005 mov r1, r5 a0006568: e3a02002 mov r2, #2 a000656c: e28d3018 add r3, sp, #24 a0006570: e58dc000 str ip, [sp] a0006574: ebfffacb bl a00050a8 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) a0006578: e3500000 cmp r0, #0 a000657c: 1a000073 bne a0006750 a0006580: e3a04001 mov r4, #1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; a0006584: e28dc004 add ip, sp, #4 a0006588: e28de018 add lr, sp, #24 a000658c: e8be000f ldm lr!, {r0, r1, r2, r3} a0006590: e8ac000f stmia ip!, {r0, r1, r2, r3} a0006594: e59e3000 ldr r3, [lr] name = pathname + parentpathlen; a0006598: e0865005 add r5, r6, r5 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a000659c: e1a00005 mov r0, r5 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; a00065a0: e58c3000 str r3, [ip] name = pathname + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a00065a4: eb00e600 bl a003fdac a00065a8: e1a01000 mov r1, r0 a00065ac: e1a00005 mov r0, r5 a00065b0: ebfffa6a bl a0004f60 a00065b4: e0856000 add r6, r5, r0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), a00065b8: e1a00006 mov r0, r6 a00065bc: eb00e5fa bl a003fdac a00065c0: e28d5004 add r5, sp, #4 a00065c4: e3a0c000 mov ip, #0 a00065c8: e1a01000 mov r1, r0 a00065cc: e1a0200c mov r2, ip a00065d0: e1a00006 mov r0, r6 a00065d4: e1a03005 mov r3, r5 a00065d8: e58dc000 str ip, [sp] a00065dc: ebfffa7b bl a0004fd0 0, &loc, false ); if ( result != 0 ) { a00065e0: e3500000 cmp r0, #0 a00065e4: 0a00000a beq a0006614 if ( free_parentloc ) a00065e8: e3540000 cmp r4, #0 a00065ec: 0a000057 beq a0006750 rtems_filesystem_freenode( &parentloc ); a00065f0: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a00065f4: e3530000 cmp r3, #0 <== NOT EXECUTED a00065f8: 0a000054 beq a0006750 <== NOT EXECUTED a00065fc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a0006600: e3530000 cmp r3, #0 <== NOT EXECUTED a0006604: 0a000051 beq a0006750 <== NOT EXECUTED a0006608: e28d0018 add r0, sp, #24 <== NOT EXECUTED a000660c: e12fff33 blx r3 <== NOT EXECUTED a0006610: ea00004e b a0006750 <== NOT EXECUTED /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ a0006614: e59d2010 ldr r2, [sp, #16] a0006618: e5923010 ldr r3, [r2, #16] a000661c: e3530000 cmp r3, #0 rtems_filesystem_freenode( &loc ); a0006620: 0592301c ldreq r3, [r2, #28] /* * Verify you can remove this node as a directory. */ if ( !loc.ops->node_type_h ){ a0006624: 0a000020 beq a00066ac 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 ){ a0006628: e1a00005 mov r0, r5 a000662c: e12fff33 blx r3 a0006630: e3500001 cmp r0, #1 a0006634: 0a000014 beq a000668c rtems_filesystem_freenode( &loc ); a0006638: e59d3010 ldr r3, [sp, #16] a000663c: e3530000 cmp r3, #0 a0006640: 0a000004 beq a0006658 a0006644: e593301c ldr r3, [r3, #28] a0006648: e3530000 cmp r3, #0 a000664c: 0a000001 beq a0006658 a0006650: e1a00005 mov r0, r5 a0006654: e12fff33 blx r3 if ( free_parentloc ) a0006658: e3540000 cmp r4, #0 a000665c: 0a000007 beq a0006680 rtems_filesystem_freenode( &parentloc ); a0006660: e59d3024 ldr r3, [sp, #36] ; 0x24 a0006664: e3530000 cmp r3, #0 a0006668: 0a000004 beq a0006680 a000666c: e593301c ldr r3, [r3, #28] a0006670: e3530000 cmp r3, #0 a0006674: 0a000001 beq a0006680 a0006678: e28d0018 add r0, sp, #24 a000667c: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( ENOTDIR ); a0006680: eb00cb3e bl a0039380 <__errno> a0006684: e3a03014 mov r3, #20 a0006688: ea000017 b a00066ec /* * Use the filesystems rmnod to remove the node. */ if ( !loc.handlers->rmnod_h ){ a000668c: e59d300c ldr r3, [sp, #12] a0006690: e5933034 ldr r3, [r3, #52] ; 0x34 a0006694: e3530000 cmp r3, #0 a0006698: 1a000015 bne a00066f4 rtems_filesystem_freenode( &loc ); a000669c: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a00066a0: e3530000 cmp r3, #0 <== NOT EXECUTED a00066a4: 0a000004 beq a00066bc <== NOT EXECUTED a00066a8: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00066ac: e3530000 cmp r3, #0 <== NOT EXECUTED a00066b0: 0a000001 beq a00066bc <== NOT EXECUTED a00066b4: e1a00005 mov r0, r5 <== NOT EXECUTED a00066b8: e12fff33 blx r3 <== NOT EXECUTED if ( free_parentloc ) a00066bc: e3540000 cmp r4, #0 <== NOT EXECUTED a00066c0: 0a000007 beq a00066e4 <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); a00066c4: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a00066c8: e3530000 cmp r3, #0 <== NOT EXECUTED a00066cc: 0a000004 beq a00066e4 <== NOT EXECUTED a00066d0: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00066d4: e3530000 cmp r3, #0 <== NOT EXECUTED a00066d8: 0a000001 beq a00066e4 <== NOT EXECUTED a00066dc: e28d0018 add r0, sp, #24 <== NOT EXECUTED a00066e0: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00066e4: eb00cb25 bl a0039380 <__errno> <== NOT EXECUTED a00066e8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00066ec: e5803000 str r3, [r0] a00066f0: ea000016 b a0006750 } result = (*loc.handlers->rmnod_h)( &parentloc, &loc ); a00066f4: e28d0018 add r0, sp, #24 a00066f8: e1a01005 mov r1, r5 a00066fc: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a0006700: 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 ); a0006704: e1a06000 mov r6, r0 rtems_filesystem_freenode( &loc ); a0006708: e3530000 cmp r3, #0 a000670c: 0a000004 beq a0006724 a0006710: e593301c ldr r3, [r3, #28] a0006714: e3530000 cmp r3, #0 a0006718: 0a000001 beq a0006724 a000671c: e1a00005 mov r0, r5 a0006720: e12fff33 blx r3 if ( free_parentloc ) a0006724: e3540000 cmp r4, #0 a0006728: 0a000009 beq a0006754 rtems_filesystem_freenode( &parentloc ); a000672c: e59d3024 ldr r3, [sp, #36] ; 0x24 a0006730: e3530000 cmp r3, #0 a0006734: 0a000006 beq a0006754 a0006738: e593301c ldr r3, [r3, #28] a000673c: e3530000 cmp r3, #0 a0006740: 0a000003 beq a0006754 a0006744: e28d0018 add r0, sp, #24 a0006748: e12fff33 blx r3 a000674c: ea000000 b a0006754 a0006750: e3e06000 mvn r6, #0 return result; } a0006754: e1a00006 mov r0, r6 a0006758: e28dd02c add sp, sp, #44 ; 0x2c a000675c: e8bd8070 pop {r4, r5, r6, pc} a0006760: a00535c8 .word 0xa00535c8 a00122c4 : sprintf(bad_buffer, "< %" PRId32 "[0x%" PRIx32 " ] >", bad_value, bad_value); #else static char bad_buffer[40] = ""; #endif return bad_buffer; } a00122c4: e59f0000 ldr r0, [pc, #0] ; a00122cc <== NOT EXECUTED a00122c8: e12fff1e bx lr <== NOT EXECUTED a00122cc: a0021e1c .word 0xa0021e1c a000ebc0 : const char *rtems_assoc_name_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { a000ebc0: e92d4010 push {r4, lr} a000ebc4: e1a04001 mov r4, r1 const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); a000ebc8: eb000006 bl a000ebe8 if (nap) a000ebcc: e3500000 cmp r0, #0 a000ebd0: 0a000001 beq a000ebdc return nap->name; return rtems_assoc_name_bad(local_value); } a000ebd4: e5900000 ldr r0, [r0] a000ebd8: 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); a000ebdc: e1a00004 mov r0, r4 <== NOT EXECUTED } a000ebe0: 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); a000ebe4: ea000db6 b a00122c4 <== NOT EXECUTED a000c124 : uint32_t rtems_assoc_remote_by_local( const rtems_assoc_t *ap, uint32_t local_value ) { a000c124: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED const rtems_assoc_t *nap; nap = rtems_assoc_ptr_by_local(ap, local_value); a000c128: eb000201 bl a000c934 <== NOT EXECUTED if (nap) a000c12c: e3500000 cmp r0, #0 <== NOT EXECUTED return nap->remote_value; a000c130: 15900008 ldrne r0, [r0, #8] <== NOT EXECUTED return 0; } a000c134: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a00011b0 : size_t length ) { const char *p; if ( !name ) a00011b0: e3500000 cmp r0, #0 const char *rtems_bsp_cmdline_get_param( const char *name, char *value, size_t length ) { a00011b4: e92d4070 push {r4, r5, r6, lr} a00011b8: e1a04001 mov r4, r1 a00011bc: e1a05002 mov r5, r2 const char *p; if ( !name ) a00011c0: 0a00001c beq a0001238 return NULL; if ( !value ) a00011c4: e3510000 cmp r1, #0 a00011c8: 0a00001b beq a000123c return NULL; if ( !length ) a00011cc: e3520000 cmp r2, #0 a00011d0: 0a000018 beq a0001238 return NULL; value[0] = '\0'; a00011d4: e3a06000 mov r6, #0 a00011d8: e5c16000 strb r6, [r1] p = rtems_bsp_cmdline_get_param_raw( name ); a00011dc: eb000018 bl a0001244 if ( !p ) a00011e0: e3500000 cmp r0, #0 a00011e4: 0a000013 beq a0001238 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 == ' ' ) a0001204: e3160001 tst r6, #1 a0001208: 1a000001 bne a0001214 a000120c: e3520020 cmp r2, #32 a0001210: 0a000009 beq a000123c break; value[i++] = *p++; a0001214: e7c42003 strb r2, [r4, r3] a0001218: e2833001 add r3, r3, #1 value[i] = '\0'; a000121c: e7c41003 strb r1, [r4, r3] int i; int quotes; const char *p = start; quotes=0; for (i=0 ; *p && i a000122c: e1530005 cmp r3, r5 a0001230: 3afffff0 bcc a00011f8 a0001234: ea000000 b a000123c <== NOT EXECUTED a0001238: e3a04000 mov r4, #0 return NULL; copy_string( p, value, length ); return value; } a000123c: e1a00004 mov r0, r4 a0001240: e8bd8070 pop {r4, r5, r6, pc} a000126c : const char *rtems_bsp_cmdline_get_param_rhs( const char *name, char *value, size_t length ) { a000126c: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a0001270: e1a05000 mov r5, r0 <== NOT EXECUTED a0001274: e1a04001 mov r4, r1 <== NOT EXECUTED const char *p; const char *rhs; char *d; p = rtems_bsp_cmdline_get_param( name, value, length ); a0001278: ebffffcc bl a00011b0 <== NOT EXECUTED if ( !p ) a000127c: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0001280: 0a000018 beq a00012e8 <== NOT EXECUTED return NULL; rhs = &p[strlen(name)]; a0001284: e1a00005 mov r0, r5 <== NOT EXECUTED a0001288: eb0031de bl a000da08 <== NOT EXECUTED if ( *rhs != '=' ) a000128c: e7d63000 ldrb r3, [r6, r0] <== NOT EXECUTED p = rtems_bsp_cmdline_get_param( name, value, length ); if ( !p ) return NULL; rhs = &p[strlen(name)]; a0001290: e0866000 add r6, r6, r0 <== NOT EXECUTED if ( *rhs != '=' ) a0001294: e353003d cmp r3, #61 ; 0x3d <== NOT EXECUTED a0001298: 1a000012 bne a00012e8 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) a000129c: e5d63001 ldrb r3, [r6, #1] <== NOT EXECUTED rhs = &p[strlen(name)]; if ( *rhs != '=' ) return NULL; rhs++; a00012a0: e2866001 add r6, r6, #1 <== NOT EXECUTED if ( *rhs == '\"' ) rhs++; a00012a4: e1a02004 mov r2, r4 <== NOT EXECUTED rhs = &p[strlen(name)]; if ( *rhs != '=' ) return NULL; rhs++; if ( *rhs == '\"' ) a00012a8: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED rhs++; a00012ac: 02866001 addeq r6, r6, #1 <== NOT EXECUTED a00012b0: e3a0c000 mov ip, #0 <== NOT EXECUTED a00012b4: ea000000 b a00012bc <== NOT EXECUTED for ( d=value ; *rhs ; ) *d++ = *rhs++; a00012b8: e5421001 strb r1, [r2, #-1] <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) a00012bc: e7d6100c ldrb r1, [r6, ip] <== NOT EXECUTED *d++ = *rhs++; a00012c0: e1a03002 mov r3, r2 <== NOT EXECUTED return NULL; rhs++; if ( *rhs == '\"' ) rhs++; for ( d=value ; *rhs ; ) a00012c4: e28cc001 add ip, ip, #1 <== NOT EXECUTED a00012c8: e3510000 cmp r1, #0 <== NOT EXECUTED a00012cc: e2822001 add r2, r2, #1 <== NOT EXECUTED a00012d0: 1afffff8 bne a00012b8 <== NOT EXECUTED *d++ = *rhs++; if ( *(d-1) == '\"' ) a00012d4: e5532001 ldrb r2, [r3, #-1] <== NOT EXECUTED a00012d8: e3520022 cmp r2, #34 ; 0x22 <== NOT EXECUTED a00012dc: 02433001 subeq r3, r3, #1 <== NOT EXECUTED d--; *d = '\0'; a00012e0: e5c31000 strb r1, [r3] <== NOT EXECUTED return value; a00012e4: ea000000 b a00012ec <== NOT EXECUTED a00012e8: e3a04000 mov r4, #0 <== NOT EXECUTED } a00012ec: e1a00004 mov r0, r4 <== NOT EXECUTED a00012f0: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a0001d00 : void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { a0001d00: 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 ) a0001d04: e251a000 subs sl, r1, #0 void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) { a0001d08: e24dd040 sub sp, sp, #64 ; 0x40 a0001d0c: e1a08000 mov r8, r0 Timestamp_Control uptime, total, ran; #else uint32_t total_units = 0; #endif if ( !print ) a0001d10: 0a000055 beq a0001e6c * 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 ); a0001d14: e28d4030 add r4, sp, #48 ; 0x30 a0001d18: e1a00004 mov r0, r4 _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); a0001d1c: 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 ); a0001d20: eb0012a8 bl a00067c8 <_TOD_Get_uptime> _Timestamp_Subtract( &CPU_usage_Uptime_at_last_reset, &uptime, &total ); a0001d24: e1a01004 mov r1, r4 a0001d28: e1a02005 mov r2, r5 a0001d2c: e59f0140 ldr r0, [pc, #320] ; a0001e74 a0001d30: eb001ba7 bl a0008bd4 <_Timespec_Subtract> } } } #endif (*print)( a0001d34: e1a00008 mov r0, r8 a0001d38: e59f1138 ldr r1, [pc, #312] ; a0001e78 a0001d3c: e12fff3a blx sl a0001d40: e59f4134 ldr r4, [pc, #308] ; a0001e7c /* * 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 ) { a0001d44: e59fb134 ldr fp, [pc, #308] ; a0001e80 ); for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) { if ( !_Objects_Information_table[ api_index ] ) a0001d48: e5943004 ldr r3, [r4, #4] a0001d4c: e3530000 cmp r3, #0 a0001d50: 0a000039 beq a0001e3c continue; information = _Objects_Information_table[ api_index ][ 1 ]; a0001d54: e5936004 ldr r6, [r3, #4] if ( information ) { a0001d58: e3560000 cmp r6, #0 a0001d5c: 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( a0001d60: 128d9018 addne r9, sp, #24 a0001d64: 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 ) { a0001d68: 1a00002d bne a0001e24 a0001d6c: ea000032 b a0001e3c <== NOT EXECUTED for ( i=1 ; i <= information->maximum ; i++ ) { the_thread = (Thread_Control *)information->local_table[ i ]; a0001d70: e596301c ldr r3, [r6, #28] a0001d74: 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++ ) { a0001d78: e2877001 add r7, r7, #1 the_thread = (Thread_Control *)information->local_table[ i ]; if ( !the_thread ) a0001d7c: e3540000 cmp r4, #0 a0001d80: 0a000027 beq a0001e24 continue; rtems_object_get_name( the_thread->Object.id, sizeof(name), name ); a0001d84: e5940008 ldr r0, [r4, #8] a0001d88: eb000dff bl a000558c (*print)( a0001d8c: e28d3008 add r3, sp, #8 a0001d90: e5942008 ldr r2, [r4, #8] a0001d94: e1a00008 mov r0, r8 a0001d98: e59f10e4 ldr r1, [pc, #228] ; a0001e84 a0001d9c: e12fff3a blx 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; a0001da0: e2843084 add r3, r4, #132 ; 0x84 a0001da4: e893000c ldm r3, {r2, r3} a0001da8: e58d2020 str r2, [sp, #32] a0001dac: e58d3024 str r3, [sp, #36] ; 0x24 if ( _Thread_Executing->Object.id == the_thread->Object.id ) { a0001db0: e59b2000 ldr r2, [fp] a0001db4: e5943008 ldr r3, [r4, #8] a0001db8: e5922008 ldr r2, [r2, #8] a0001dbc: e1520003 cmp r2, r3 a0001dc0: 1a000006 bne a0001de0 Timestamp_Control used; _Timestamp_Subtract( a0001dc4: e59f00bc ldr r0, [pc, #188] ; a0001e88 a0001dc8: e28d1030 add r1, sp, #48 ; 0x30 a0001dcc: e1a02009 mov r2, r9 a0001dd0: eb001b7f bl a0008bd4 <_Timespec_Subtract> &_Thread_Time_of_last_context_switch, &uptime, &used ); _Timestamp_Add_to( &ran, &used ); a0001dd4: e28d0020 add r0, sp, #32 a0001dd8: e1a01009 mov r1, r9 a0001ddc: eb001b42 bl a0008aec <_Timespec_Add_to> }; _Timestamp_Divide( &ran, &total, &ival, &fval ); a0001de0: e28d203c add r2, sp, #60 ; 0x3c a0001de4: e28d3038 add r3, sp, #56 ; 0x38 a0001de8: e28d0020 add r0, sp, #32 a0001dec: e28d1028 add r1, sp, #40 ; 0x28 a0001df0: eb001b52 bl a0008b40 <_Timespec_Divide> /* * Print the information */ (*print)( context, a0001df4: e3a01ffa mov r1, #1000 ; 0x3e8 a0001df8: e59d0024 ldr r0, [sp, #36] ; 0x24 a0001dfc: eb0064b4 bl a001b0d4 <__aeabi_uidiv> a0001e00: e59d203c ldr r2, [sp, #60] ; 0x3c a0001e04: e1a03000 mov r3, r0 a0001e08: e59f107c ldr r1, [pc, #124] ; a0001e8c a0001e0c: e58d2000 str r2, [sp] a0001e10: e59d2038 ldr r2, [sp, #56] ; 0x38 a0001e14: e1a00008 mov r0, r8 a0001e18: e58d2004 str r2, [sp, #4] a0001e1c: e59d2020 ldr r2, [sp, #32] a0001e20: e12fff3a blx 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++ ) { a0001e24: 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 ); a0001e28: e3a0100d mov r1, #13 a0001e2c: 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++ ) { a0001e30: e1570003 cmp r7, r3 a0001e34: 9affffcd bls a0001d70 a0001e38: e1a04005 mov r4, r5 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; a0001e3c: e59f304c ldr r3, [pc, #76] ; a0001e90 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++ ) { a0001e40: e2844004 add r4, r4, #4 " ID | NAME | TICKS | PERCENT\n" #endif "------------+----------------------------------------+---------------+---------\n" ); for ( api_index = 1 ; a0001e44: e1540003 cmp r4, r3 a0001e48: 1affffbe bne a0001d48 } } } #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__ (*print)( a0001e4c: e3a01ffa mov r1, #1000 ; 0x3e8 a0001e50: e59d002c ldr r0, [sp, #44] ; 0x2c a0001e54: eb00649e bl a001b0d4 <__aeabi_uidiv> a0001e58: e59f1034 ldr r1, [pc, #52] ; a0001e94 a0001e5c: e1a03000 mov r3, r0 a0001e60: e59d2028 ldr r2, [sp, #40] ; 0x28 a0001e64: e1a00008 mov r0, r8 a0001e68: e12fff3a blx sl "-------------------------------------------------------------------------------\n", _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset, total_units ); #endif } a0001e6c: e28dd040 add sp, sp, #64 ; 0x40 a0001e70: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} a0001e74: a002812c .word 0xa002812c a0001e78: a001ea04 .word 0xa001ea04 a0001e7c: a0027ba8 .word 0xa0027ba8 a0001e80: a0027ca0 .word 0xa0027ca0 a0001e84: a001eb76 .word 0xa001eb76 a0001e88: a0027ca8 .word 0xa0027ca8 a0001e8c: a001eb89 .word 0xa001eb89 a0001e90: a0027bb8 .word 0xa0027bb8 a0001e94: a001eba1 .word 0xa001eba1 a000c0f8 : { 0, 0, 0 }, }; int rtems_deviceio_errno(rtems_status_code code) { a000c0f8: e92d4010 push {r4, lr} <== NOT EXECUTED a000c0fc: e1a01000 mov r1, r0 <== NOT EXECUTED int rc; if ((rc = rtems_assoc_remote_by_local(errno_assoc, (uint32_t ) code))) a000c100: e59f0018 ldr r0, [pc, #24] ; a000c120 <== NOT EXECUTED a000c104: eb000006 bl a000c124 <== NOT EXECUTED a000c108: e2504000 subs r4, r0, #0 <== NOT EXECUTED a000c10c: 0a000001 beq a000c118 <== NOT EXECUTED { errno = rc; a000c110: eb000224 bl a000c9a8 <__errno> <== NOT EXECUTED a000c114: e5804000 str r4, [r0] <== NOT EXECUTED return -1; } return -1; } a000c118: e3e00000 mvn r0, #0 <== NOT EXECUTED a000c11c: e8bd8010 pop {r4, pc} <== NOT EXECUTED a000c120: a0018f4c .word 0xa0018f4c a0005ed8 : int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) { a0005ed8: e92d000e push {r1, r2, r3} <== NOT EXECUTED a0005edc: e92d4001 push {r0, lr} <== NOT EXECUTED va_list arglist; int chars_written; va_start(arglist, printf_format); a0005ee0: e28d300c add r3, sp, #12 <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); a0005ee4: e1a02003 mov r2, r3 <== NOT EXECUTED a0005ee8: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED ) { va_list arglist; int chars_written; va_start(arglist, printf_format); a0005eec: e58d3000 str r3, [sp] <== NOT EXECUTED chars_written = rtems_verror(error_flag, printf_format, arglist); a0005ef0: ebffff83 bl a0005d04 <== NOT EXECUTED va_end(arglist); return chars_written; } a0005ef4: e8bd4008 pop {r3, lr} <== NOT EXECUTED a0005ef8: e28dd00c add sp, sp, #12 <== NOT EXECUTED a0005efc: e12fff1e bx lr <== NOT EXECUTED a00011c4 : int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { a00011c4: e92d47f0 push {r4, r5, r6, r7, r8, r9, sl, lr} /* * Verify Input parameters. */ if ( !pathname ) a00011c8: e2506000 subs r6, r0, #0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { a00011cc: e1a08001 mov r8, r1 a00011d0: e1a07002 mov r7, r2 a00011d4: e1a0c003 mov ip, r3 a00011d8: e59da020 ldr sl, [sp, #32] /* * Verify Input parameters. */ if ( !pathname ) a00011dc: 1a000002 bne a00011ec rtems_set_errno_and_return_minus_one( EFAULT ); a00011e0: eb002df0 bl a000c9a8 <__errno> a00011e4: e3a0300e mov r3, #14 a00011e8: ea000003 b a00011fc if ( !pathloc ) a00011ec: e3530000 cmp r3, #0 a00011f0: 1a000004 bne a0001208 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ a00011f4: eb002deb bl a000c9a8 <__errno> <== NOT EXECUTED a00011f8: e3a03005 mov r3, #5 <== NOT EXECUTED a00011fc: e5803000 str r3, [r0] return rtems_filesystem_evaluate_relative_path( &pathname[i], pathnamelen - i, flags, pathloc, follow_link ); } a0001200: e3e00000 mvn r0, #0 a0001204: 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 ); a0001208: e5d63000 ldrb r3, [r6] a000120c: e353002f cmp r3, #47 ; 0x2f a0001210: 1353005c cmpne r3, #92 ; 0x5c a0001214: 13a05000 movne r5, #0 a0001218: 03a05001 moveq r5, #1 a000121c: 0a000001 beq a0001228 a0001220: e3530000 cmp r3, #0 a0001224: 1a000004 bne a000123c a0001228: e59f3048 ldr r3, [pc, #72] ; a0001278 a000122c: e3a05001 mov r5, #1 a0001230: e5934000 ldr r4, [r3] a0001234: e2844018 add r4, r4, #24 a0001238: ea000002 b a0001248 a000123c: e59f3034 ldr r3, [pc, #52] ; a0001278 a0001240: e5934000 ldr r4, [r3] a0001244: e2844004 add r4, r4, #4 a0001248: e1a0900c mov r9, ip a000124c: e8b4000f ldm r4!, {r0, r1, r2, r3} a0001250: e8a9000f stmia r9!, {r0, r1, r2, r3} a0001254: e5942000 ldr r2, [r4] /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], a0001258: e0651008 rsb r1, r5, r8 a000125c: e0860005 add r0, r6, r5 /* * Evaluate the path using the optable evalpath. */ rtems_filesystem_get_start_loc( pathname, &i, pathloc ); a0001260: e5892000 str r2, [r9] /* * We evaluation the path relative to the start location we get got. */ return rtems_filesystem_evaluate_relative_path( &pathname[i], a0001264: e1a0300c mov r3, ip a0001268: e1a02007 mov r2, r7 a000126c: e58da020 str sl, [sp, #32] pathnamelen - i, flags, pathloc, follow_link ); } a0001270: 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], a0001274: eaffff9c b a00010ec a0001278: a0018418 .word 0xa0018418 a00010ec : /* * Verify Input parameters. */ if ( !pathname ) a00010ec: e3500000 cmp r0, #0 int pathnamelen, int flags, rtems_filesystem_location_info_t *pathloc, int follow_link ) { a00010f0: e92d4030 push {r4, r5, lr} a00010f4: e1a05002 mov r5, r2 a00010f8: e1a04003 mov r4, r3 /* * Verify Input parameters. */ if ( !pathname ) a00010fc: 1a000002 bne a000110c rtems_set_errno_and_return_minus_one( EFAULT ); a0001100: eb002e28 bl a000c9a8 <__errno> <== NOT EXECUTED a0001104: e3a0300e mov r3, #14 <== NOT EXECUTED a0001108: ea000026 b a00011a8 <== NOT EXECUTED if ( !pathloc ) a000110c: e3530000 cmp r3, #0 a0001110: 1a000002 bne a0001120 rtems_set_errno_and_return_minus_one( EIO ); /* should never happen */ a0001114: eb002e23 bl a000c9a8 <__errno> <== NOT EXECUTED a0001118: e3a03005 mov r3, #5 <== NOT EXECUTED a000111c: ea000021 b a00011a8 <== NOT EXECUTED if ( !pathloc->ops->evalpath_h ) a0001120: e593c00c ldr ip, [r3, #12] a0001124: e59cc000 ldr ip, [ip] a0001128: e35c0000 cmp ip, #0 a000112c: 0a00001b beq a00011a0 rtems_set_errno_and_return_minus_one( ENOTSUP ); result = (*pathloc->ops->evalpath_h)( pathname, pathnamelen, flags, pathloc ); a0001130: e12fff3c blx ip /* * Get the Node type and determine if you need to follow the link or * not. */ if ( (result == 0) && follow_link ) { a0001134: e59d200c ldr r2, [sp, #12] a0001138: e2703001 rsbs r3, r0, #1 a000113c: 33a03000 movcc r3, #0 a0001140: e3520000 cmp r2, #0 a0001144: 03a03000 moveq r3, #0 a0001148: e3530000 cmp r3, #0 a000114c: 0a00001b beq a00011c0 if ( !pathloc->ops->node_type_h ){ a0001150: e594200c ldr r2, [r4, #12] a0001154: e5923010 ldr r3, [r2, #16] a0001158: e3530000 cmp r3, #0 a000115c: 0a00000a beq a000118c rtems_filesystem_freenode( pathloc ); rtems_set_errno_and_return_minus_one( ENOTSUP ); } type = (*pathloc->ops->node_type_h)( pathloc ); a0001160: e1a00004 mov r0, r4 a0001164: e12fff33 blx r3 if ( ( type == RTEMS_FILESYSTEM_HARD_LINK ) || a0001168: e2400003 sub r0, r0, #3 a000116c: e3500001 cmp r0, #1 a0001170: 9a000001 bls a000117c a0001174: e3a00000 mov r0, #0 a0001178: e8bd8030 pop {r4, r5, pc} ( type == RTEMS_FILESYSTEM_SYM_LINK ) ) { if ( !pathloc->ops->eval_link_h ){ a000117c: e594200c ldr r2, [r4, #12] a0001180: e5923034 ldr r3, [r2, #52] ; 0x34 a0001184: e3530000 cmp r3, #0 a0001188: 1a000009 bne a00011b4 rtems_filesystem_freenode( pathloc ); a000118c: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0001190: e3530000 cmp r3, #0 <== NOT EXECUTED a0001194: 0a000001 beq a00011a0 <== NOT EXECUTED a0001198: e1a00004 mov r0, r4 <== NOT EXECUTED a000119c: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00011a0: eb002e00 bl a000c9a8 <__errno> <== NOT EXECUTED a00011a4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00011a8: e5803000 str r3, [r0] <== NOT EXECUTED a00011ac: e3e00000 mvn r0, #0 <== NOT EXECUTED a00011b0: 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 ); a00011b4: e1a00004 mov r0, r4 a00011b8: e1a01005 mov r1, r5 a00011bc: e12fff33 blx r3 } } return result; } a00011c0: e8bd8030 pop {r4, r5, pc} a0000f4c : * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { a0000f4c: e92d40f0 push {r4, r5, r6, r7, lr} /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; a0000f50: e59f6100 ldr r6, [pc, #256] ; a0001058 a0000f54: e3a02012 mov r2, #18 * configuration is a single instantiation of the IMFS or miniIMFS with * a single "/dev" directory in it. */ void rtems_filesystem_initialize( void ) { a0000f58: e24dd01c sub sp, sp, #28 /* * Set the default umask to "022". */ rtems_filesystem_umask = 022; a0000f5c: e5963000 ldr r3, [r6] a0000f60: e583202c str r2, [r3, #44] ; 0x2c init_fs_mount_table(); a0000f64: eb00018c bl a000159c /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) a0000f68: e59f30ec ldr r3, [pc, #236] ; a000105c a0000f6c: e5933000 ldr r3, [r3] a0000f70: e3530000 cmp r3, #0 rtems_fatal_error_occurred( 0xABCD0001 ); a0000f74: 059f00e4 ldreq r0, [pc, #228] ; a0001060 /* * mount the first filesystem. */ if ( rtems_filesystem_mount_table_size == 0 ) a0000f78: 0a000009 beq a0000fa4 rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; a0000f7c: e59f30e0 ldr r3, [pc, #224] ; a0001064 status = mount( a0000f80: e28d0018 add r0, sp, #24 */ if ( rtems_filesystem_mount_table_size == 0 ) rtems_fatal_error_occurred( 0xABCD0001 ); mt = &rtems_filesystem_mount_table[0]; a0000f84: e5932000 ldr r2, [r3] status = mount( a0000f88: e592300c ldr r3, [r2, #12] a0000f8c: e58d3000 str r3, [sp] a0000f90: e892000e ldm r2, {r1, r2, r3} a0000f94: eb000187 bl a00015b8 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) a0000f98: e3700001 cmn r0, #1 a0000f9c: 1a000001 bne a0000fa8 rtems_fatal_error_occurred( 0xABCD0002 ); a0000fa0: e59f00c0 ldr r0, [pc, #192] ; a0001068 <== NOT EXECUTED a0000fa4: eb000e0d bl a00047e0 <== NOT EXECUTED rtems_filesystem_link_counts = 0; a0000fa8: 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; a0000fac: e59de018 ldr lr, [sp, #24] &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; a0000fb0: e3a05000 mov r5, #0 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; a0000fb4: e287c018 add ip, r7, #24 a0000fb8: e28ee01c add lr, lr, #28 a0000fbc: e8be000f ldm lr!, {r0, r1, r2, r3} a0000fc0: e8ac000f stmia ip!, {r0, r1, r2, r3} a0000fc4: e59e3000 ldr r3, [lr] /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0000fc8: e28d4004 add r4, sp, #4 &entry, mt->fs_ops, mt->fsoptions, mt->device, mt->mount_point ); if ( status == -1 ) rtems_fatal_error_occurred( 0xABCD0002 ); rtems_filesystem_link_counts = 0; a0000fcc: e1c753b0 strh r5, [r7, #48] ; 0x30 * set_private_env() - but then: that's * gonna hit performance. * * Till Straumann, 10/25/2002 */ rtems_filesystem_root = entry->mt_fs_root; a0000fd0: e58c3000 str r3, [ip] /* Clone the root pathloc */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0000fd4: e3a01001 mov r1, #1 a0000fd8: e1a03004 mov r3, r4 a0000fdc: e1a02005 mov r2, r5 a0000fe0: e59f0084 ldr r0, [pc, #132] ; a000106c a0000fe4: e58d5000 str r5, [sp] a0000fe8: eb000075 bl a00011c4 rtems_filesystem_root = loc; a0000fec: e596c000 ldr ip, [r6] a0000ff0: e1a07004 mov r7, r4 a0000ff4: e8b7000f ldm r7!, {r0, r1, r2, r3} a0000ff8: e28cc018 add ip, ip, #24 a0000ffc: e8ac000f stmia ip!, {r0, r1, r2, r3} a0001000: e5973000 ldr r3, [r7] /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0001004: e1a02005 mov r2, r5 a0001008: e3a01001 mov r1, #1 * 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; a000100c: e58c3000 str r3, [ip] /* One more clone for the current node */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0001010: e59f0054 ldr r0, [pc, #84] ; a000106c a0001014: e1a03004 mov r3, r4 a0001018: e58d5000 str r5, [sp] a000101c: eb000068 bl a00011c4 rtems_filesystem_current = loc; a0001020: e8b4000f ldm r4!, {r0, r1, r2, r3} a0001024: e596c000 ldr ip, [r6] a0001028: e28cc004 add ip, ip, #4 a000102c: e8ac000f stmia ip!, {r0, r1, r2, r3} a0001030: 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); a0001034: e59f0034 ldr r0, [pc, #52] ; a0001070 a0001038: e59f1034 ldr r1, [pc, #52] ; a0001074 /* 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; a000103c: 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); a0001040: eb000103 bl a0001454 if ( status != 0 ) a0001044: e1500005 cmp r0, r5 rtems_fatal_error_occurred( 0xABCD0003 ); a0001048: 159f0028 ldrne r0, [pc, #40] ; a0001078 * 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 ) a000104c: 1affffd4 bne a0000fa4 * 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. */ } a0001050: e28dd01c add sp, sp, #28 a0001054: e8bd80f0 pop {r4, r5, r6, r7, pc} a0001058: a0018418 .word 0xa0018418 a000105c: a00189d0 .word 0xa00189d0 a0001060: abcd0001 .word 0xabcd0001 a0001064: a0018248 .word 0xa0018248 a0001068: abcd0002 .word 0xabcd0002 a000106c: a0019407 .word 0xa0019407 a0001070: a0019409 .word 0xa0019409 a0001074: 000001ff .word 0x000001ff a0001078: abcd0003 .word 0xabcd0003 a00085a0 : ); bool rtems_filesystem_nodes_equal( const rtems_filesystem_location_info_t *loc1, const rtems_filesystem_location_info_t *loc2 ){ a00085a0: e5903000 ldr r3, [r0] <== NOT EXECUTED a00085a4: e5910000 ldr r0, [r1] <== NOT EXECUTED return ( loc1->node_access == loc2->node_access ); } a00085a8: e1530000 cmp r3, r0 <== NOT EXECUTED a00085ac: 13a00000 movne r0, #0 <== NOT EXECUTED a00085b0: 03a00001 moveq r0, #1 <== NOT EXECUTED a00085b4: e12fff1e bx lr <== NOT EXECUTED a0000e18 : rtems_status_code rtems_io_lookup_name( const char *name, rtems_driver_name_t *device_info ) { a0000e18: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} <== NOT EXECUTED a0000e1c: e24dd018 sub sp, sp, #24 <== NOT EXECUTED a0000e20: e1a05001 mov r5, r1 <== NOT EXECUTED a0000e24: 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 ); a0000e28: eb0032cf bl a000d96c <== NOT EXECUTED a0000e2c: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0000e30: e1a01000 mov r1, r0 <== NOT EXECUTED a0000e34: e3a02000 mov r2, #0 <== NOT EXECUTED a0000e38: e1a03004 mov r3, r4 <== NOT EXECUTED a0000e3c: e3a0c001 mov ip, #1 <== NOT EXECUTED a0000e40: e1a00006 mov r0, r6 <== NOT EXECUTED a0000e44: e58dc000 str ip, [sp] <== NOT EXECUTED a0000e48: eb0000dd bl a00011c4 <== NOT EXECUTED the_jnode = loc.node_access; if ( !loc.ops->node_type_h ) { a0000e4c: 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 ); a0000e50: e1a07000 mov r7, r0 <== NOT EXECUTED the_jnode = loc.node_access; a0000e54: e59d8004 ldr r8, [sp, #4] <== NOT EXECUTED if ( !loc.ops->node_type_h ) { a0000e58: e5923010 ldr r3, [r2, #16] <== NOT EXECUTED a0000e5c: e3530000 cmp r3, #0 <== NOT EXECUTED a0000e60: 1a000009 bne a0000e8c <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a0000e64: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a0000e68: e3530000 cmp r3, #0 <== NOT EXECUTED a0000e6c: 0a000001 beq a0000e78 <== NOT EXECUTED a0000e70: e1a00004 mov r0, r4 <== NOT EXECUTED a0000e74: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a0000e78: eb002eca bl a000c9a8 <__errno> <== NOT EXECUTED a0000e7c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0000e80: e5803000 str r3, [r0] <== NOT EXECUTED a0000e84: e3e00000 mvn r0, #0 <== NOT EXECUTED a0000e88: ea000023 b a0000f1c <== NOT EXECUTED } node_type = (*loc.ops->node_type_h)( &loc ); a0000e8c: e1a00004 mov r0, r4 <== NOT EXECUTED a0000e90: e12fff33 blx r3 <== NOT EXECUTED if ( (result != 0) || node_type != RTEMS_FILESYSTEM_DEVICE ) { a0000e94: e3570000 cmp r7, #0 <== NOT EXECUTED a0000e98: 03500002 cmpeq r0, #2 <== NOT EXECUTED a0000e9c: 03a0a000 moveq sl, #0 <== NOT EXECUTED a0000ea0: 13a0a001 movne sl, #1 <== NOT EXECUTED a0000ea4: e59d7010 ldr r7, [sp, #16] <== NOT EXECUTED a0000ea8: 0a000007 beq a0000ecc <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a0000eac: e3570000 cmp r7, #0 <== NOT EXECUTED a0000eb0: 0a000016 beq a0000f10 <== NOT EXECUTED a0000eb4: e597301c ldr r3, [r7, #28] <== NOT EXECUTED a0000eb8: e3530000 cmp r3, #0 <== NOT EXECUTED a0000ebc: 0a000013 beq a0000f10 <== NOT EXECUTED a0000ec0: e1a00004 mov r0, r4 <== NOT EXECUTED a0000ec4: e12fff33 blx r3 <== NOT EXECUTED a0000ec8: ea000010 b a0000f10 <== NOT EXECUTED return RTEMS_UNSATISFIED; } device_info->device_name = (char *) name; a0000ecc: e5856000 str r6, [r5] <== NOT EXECUTED device_info->device_name_length = strlen( name ); a0000ed0: e1a00006 mov r0, r6 <== NOT EXECUTED a0000ed4: eb0032a4 bl a000d96c <== NOT EXECUTED a0000ed8: e5850004 str r0, [r5, #4] <== NOT EXECUTED device_info->major = the_jnode->info.device.major; a0000edc: e5983050 ldr r3, [r8, #80] ; 0x50 <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; rtems_filesystem_freenode( &loc ); a0000ee0: 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; a0000ee4: e5853008 str r3, [r5, #8] <== NOT EXECUTED device_info->minor = the_jnode->info.device.minor; a0000ee8: e5983054 ldr r3, [r8, #84] ; 0x54 <== NOT EXECUTED a0000eec: e585300c str r3, [r5, #12] <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a0000ef0: 0a000008 beq a0000f18 <== NOT EXECUTED a0000ef4: e597301c ldr r3, [r7, #28] <== NOT EXECUTED a0000ef8: e3530000 cmp r3, #0 <== NOT EXECUTED a0000efc: 0a000005 beq a0000f18 <== NOT EXECUTED a0000f00: e1a00004 mov r0, r4 <== NOT EXECUTED a0000f04: e12fff33 blx r3 <== NOT EXECUTED a0000f08: e1a0000a mov r0, sl <== NOT EXECUTED a0000f0c: ea000002 b a0000f1c <== NOT EXECUTED a0000f10: e3a0000d mov r0, #13 <== NOT EXECUTED a0000f14: ea000000 b a0000f1c <== NOT EXECUTED a0000f18: e3a00000 mov r0, #0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a0000f1c: e28dd018 add sp, sp, #24 <== NOT EXECUTED a0000f20: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} <== NOT EXECUTED a00012a0 : * * Called by BSP startup code to initialize the libio subsystem. */ void rtems_libio_init( void ) { a00012a0: e92d4011 push {r0, r4, lr} rtems_status_code rc; uint32_t i; rtems_libio_t *iop; if (rtems_libio_number_iops > 0) a00012a4: e59f409c ldr r4, [pc, #156] ; a0001348 a00012a8: e5940000 ldr r0, [r4] a00012ac: e3500000 cmp r0, #0 a00012b0: 0a000014 beq a0001308 { rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops, a00012b4: e3a01040 mov r1, #64 ; 0x40 a00012b8: eb001cdb bl a000862c a00012bc: e59f3088 ldr r3, [pc, #136] ; a000134c sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) a00012c0: 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, a00012c4: e5830000 str r0, [r3] sizeof(rtems_libio_t)); if (rtems_libio_iops == NULL) rtems_fatal_error_occurred(RTEMS_NO_MEMORY); a00012c8: 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) a00012cc: 0a000016 beq a000132c rtems_fatal_error_occurred(RTEMS_NO_MEMORY); iop = rtems_libio_iop_freelist = rtems_libio_iops; a00012d0: e59f2078 ldr r2, [pc, #120] ; a0001350 for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) a00012d4: e594c000 ldr ip, [r4] a00012d8: e1a03000 mov r3, r0 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; a00012dc: e5820000 str r0, [r2] for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++) a00012e0: e3a02000 mov r2, #0 a00012e4: ea000000 b a00012ec iop->data1 = iop + 1; a00012e8: e503300c str r3, [r3, #-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++) a00012ec: e2822001 add r2, r2, #1 a00012f0: e152000c cmp r2, ip iop->data1 = iop + 1; a00012f4: e1a01003 mov r1, r3 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++) a00012f8: e2833040 add r3, r3, #64 ; 0x40 a00012fc: 3afffff9 bcc a00012e8 iop->data1 = iop + 1; iop->data1 = NULL; a0001300: e3a03000 mov r3, #0 a0001304: e5813034 str r3, [r1, #52] ; 0x34 /* * Create the binary semaphore used to provide mutual exclusion * on the IOP Table. */ rc = rtems_semaphore_create( a0001308: e59fc044 ldr ip, [pc, #68] ; a0001354 a000130c: e59f0044 ldr r0, [pc, #68] ; a0001358 a0001310: e3a01001 mov r1, #1 a0001314: e3a02054 mov r2, #84 ; 0x54 a0001318: e3a03000 mov r3, #0 a000131c: e58dc000 str ip, [sp] a0001320: eb000b07 bl a0003f44 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_libio_semaphore ); if ( rc != RTEMS_SUCCESSFUL ) a0001324: e3500000 cmp r0, #0 a0001328: 0a000000 beq a0001330 rtems_fatal_error_occurred( rc ); a000132c: eb000d2b bl a00047e0 <== NOT EXECUTED /* * Initialize the base file system infrastructure. */ if (rtems_fs_init_helper) a0001330: e59f3024 ldr r3, [pc, #36] ; a000135c a0001334: e5933000 ldr r3, [r3] a0001338: e3530000 cmp r3, #0 a000133c: 0a000000 beq a0001344 (* rtems_fs_init_helper)(); a0001340: e12fff33 blx r3 } a0001344: e8bd8018 pop {r3, r4, pc} a0001348: a0018240 .word 0xa0018240 a000134c: a0019b4c .word 0xa0019b4c a0001350: a0019b50 .word 0xa0019b50 a0001354: a0019b54 .word 0xa0019b54 a0001358: 4c42494f .word 0x4c42494f a000135c: a001823c .word 0xa001823c a0023458 : rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { a0023458: 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); a002345c: e3a00000 mov r0, #0 rtems_filesystem_freenode( &env->root_directory); free(env); } } rtems_status_code rtems_libio_set_private_env(void) { a0023460: 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); a0023464: e1a01000 mov r1, r0 a0023468: e28d2018 add r2, sp, #24 a002346c: eb00062a bl a0024d1c if (sc != RTEMS_SUCCESSFUL) return sc; a0023470: e2508000 subs r8, r0, #0 a0023474: 1a00003f bne a0023578 /* Only for the first time a malloc is necesary */ if (rtems_current_user_env==&rtems_global_user_env) { a0023478: e59f4104 ldr r4, [pc, #260] ; a0023584 a002347c: e59f3104 ldr r3, [pc, #260] ; a0023588 a0023480: e5942000 ldr r2, [r4] a0023484: e1520003 cmp r2, r3 a0023488: 1a00000f bne a00234cc rtems_user_env_t *tmp = malloc(sizeof(rtems_user_env_t)); a002348c: e2800048 add r0, r0, #72 ; 0x48 a0023490: ebff88c4 bl a00057a8 if (!tmp) a0023494: e2505000 subs r5, r0, #0 a0023498: 03a0801a moveq r8, #26 a002349c: 0a000035 beq a0023578 #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); a00234a0: e1a00008 mov r0, r8 a00234a4: e1a01004 mov r1, r4 a00234a8: e59f20dc ldr r2, [pc, #220] ; a002358c a00234ac: eb000711 bl a00250f8 if (sc != RTEMS_SUCCESSFUL) { a00234b0: e2506000 subs r6, r0, #0 * not initialized yet */ free(tmp); return sc; } rtems_current_user_env = tmp; a00234b4: 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) { a00234b8: 0a000003 beq a00234cc /* don't use free_user_env because the pathlocs are * not initialized yet */ free(tmp); a00234bc: e1a00005 mov r0, r5 <== NOT EXECUTED a00234c0: ebff8726 bl a0005160 <== NOT EXECUTED a00234c4: e1a08006 mov r8, r6 <== NOT EXECUTED return sc; a00234c8: ea00002a b a0023578 <== NOT EXECUTED } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ a00234cc: e59f60b0 ldr r6, [pc, #176] ; a0023584 a00234d0: e59f10b0 ldr r1, [pc, #176] ; a0023588 a00234d4: e3a02048 mov r2, #72 ; 0x48 a00234d8: e5967000 ldr r7, [r6] * 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); a00234dc: e28d4004 add r4, sp, #4 a00234e0: e3a05000 mov r5, #0 return sc; } rtems_current_user_env = tmp; }; *rtems_current_user_env = rtems_global_user_env; /* get the global values*/ a00234e4: e1a00007 mov r0, r7 a00234e8: eb0063d5 bl a003c444 rtems_current_user_env->task_id=task_id; /* mark the local values*/ /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; a00234ec: e59f309c ldr r3, [pc, #156] ; a0023590 } 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*/ a00234f0: e1a0c007 mov ip, r7 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; a00234f4: e1a07004 mov r7, r4 *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; a00234f8: 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*/ a00234fc: e59d3018 ldr r3, [sp, #24] /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; a0023500: 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*/ a0023504: e48c3018 str r3, [ip], #24 /* get a clean root */ rtems_filesystem_root = THE_ROOT_FS_LOC; a0023508: e8be000f ldm lr!, {r0, r1, r2, r3} a002350c: e8ac000f stmia ip!, {r0, r1, r2, r3} a0023510: 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); a0023514: e3a01001 mov r1, #1 a0023518: e1a02005 mov r2, r5 *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; a002351c: 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); a0023520: e59f006c ldr r0, [pc, #108] ; a0023594 a0023524: e1a03004 mov r3, r4 a0023528: e58d5000 str r5, [sp] a002352c: ebff86dd bl a00050a8 rtems_filesystem_root = loc; a0023530: e8b7000f ldm r7!, {r0, r1, r2, r3} a0023534: e596c000 ldr ip, [r6] a0023538: e28cc018 add ip, ip, #24 a002353c: e8ac000f stmia ip!, {r0, r1, r2, r3} a0023540: e5973000 ldr r3, [r7] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0023544: e1a02005 mov r2, r5 a0023548: e3a01001 mov r1, #1 * what we are trying to do here is forking off * clones. */ rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); rtems_filesystem_root = loc; a002354c: e58c3000 str r3, [ip] rtems_filesystem_evaluate_path("/", 1, 0, &loc, 0); a0023550: e59f003c ldr r0, [pc, #60] ; a0023594 a0023554: e1a03004 mov r3, r4 a0023558: e58d5000 str r5, [sp] a002355c: ebff86d1 bl a00050a8 rtems_filesystem_current = loc; a0023560: e8b4000f ldm r4!, {r0, r1, r2, r3} a0023564: e596c000 ldr ip, [r6] a0023568: e28cc004 add ip, ip, #4 a002356c: e8ac000f stmia ip!, {r0, r1, r2, r3} a0023570: e5973000 ldr r3, [r7] a0023574: e58c3000 str r3, [ip] return RTEMS_SUCCESSFUL; } a0023578: e1a00008 mov r0, r8 a002357c: e28dd01c add sp, sp, #28 a0023580: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} a0023584: a00535c8 .word 0xa00535c8 a0023588: a0060ee8 .word 0xa0060ee8 a002358c: a002334c .word 0xa002334c a0023590: a0060ed0 .word 0xa0060ed0 a0023594: a0057e3b .word 0xa0057e3b a00233b4 : * 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) { a00233b4: e92d4033 push {r0, r1, r4, r5, lr} <== NOT EXECUTED a00233b8: 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); a00233bc: e3a00000 mov r0, #0 <== NOT EXECUTED a00233c0: e1a01000 mov r1, r0 <== NOT EXECUTED a00233c4: e1a0200d mov r2, sp <== NOT EXECUTED a00233c8: eb000653 bl a0024d1c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; a00233cc: e2503000 subs r3, r0, #0 <== NOT EXECUTED a00233d0: 1a00001b bne a0023444 <== NOT EXECUTED if (rtems_current_user_env->task_id==current_task_id) { a00233d4: e59f1070 ldr r1, [pc, #112] ; a002344c <== NOT EXECUTED a00233d8: e59d3000 ldr r3, [sp] <== NOT EXECUTED a00233dc: e5914000 ldr r4, [r1] <== NOT EXECUTED a00233e0: e5942000 ldr r2, [r4] <== NOT EXECUTED a00233e4: e1520003 cmp r2, r3 <== NOT EXECUTED a00233e8: 1a000004 bne a0023400 <== 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); a00233ec: eb00076a bl a002519c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) return sc; a00233f0: e2503000 subs r3, r0, #0 <== NOT EXECUTED a00233f4: 1a000012 bne a0023444 <== NOT EXECUTED free_user_env(tmp); a00233f8: e1a00004 mov r0, r4 <== NOT EXECUTED a00233fc: ebffffd2 bl a002334c <== NOT EXECUTED }; /* AT THIS POINT, rtems_current_user_env is DANGLING */ sc = rtems_task_variable_get(task_id,(void*)&rtems_current_user_env, a0023400: e59f4044 ldr r4, [pc, #68] ; a002344c <== NOT EXECUTED a0023404: e1a00005 mov r0, r5 <== NOT EXECUTED a0023408: e28d2004 add r2, sp, #4 <== NOT EXECUTED a002340c: e1a01004 mov r1, r4 <== NOT EXECUTED a0023410: eb00077e bl a0025210 <== NOT EXECUTED (void*)&shared_user_env ); if (sc != RTEMS_SUCCESSFUL) a0023414: e2503000 subs r3, r0, #0 <== NOT EXECUTED a0023418: 1a000006 bne a0023438 <== NOT EXECUTED goto bailout; sc = rtems_task_variable_add(RTEMS_SELF,(void*)&rtems_current_user_env,free_user_env); a002341c: e59f202c ldr r2, [pc, #44] ; a0023450 <== NOT EXECUTED a0023420: e1a01004 mov r1, r4 <== NOT EXECUTED a0023424: eb000733 bl a00250f8 <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) a0023428: 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; a002342c: 059d2004 ldreq r2, [sp, #4] <== NOT EXECUTED a0023430: 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) a0023434: 0a000002 beq a0023444 <== NOT EXECUTED return RTEMS_SUCCESSFUL; bailout: /* fallback to the global env */ rtems_current_user_env = &rtems_global_user_env; a0023438: e59f1014 ldr r1, [pc, #20] ; a0023454 <== NOT EXECUTED a002343c: e59f2008 ldr r2, [pc, #8] ; a002344c <== NOT EXECUTED a0023440: e5821000 str r1, [r2] <== NOT EXECUTED return sc; } a0023444: e1a00003 mov r0, r3 <== NOT EXECUTED a0023448: e8bd803c pop {r2, r3, r4, r5, pc} <== NOT EXECUTED a002344c: a00535c8 .word 0xa00535c8 a0023450: a002334c .word 0xa002334c a0023454: a0060ee8 .word 0xa0060ee8 a00058a8 : * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { a00058a8: e92d4801 push {r0, fp, lr} <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { a00058ac: e59f3038 ldr r3, [pc, #56] ; a00058ec <== NOT EXECUTED * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) { a00058b0: e1a01000 mov r1, r0 <== NOT EXECUTED uintptr_t size; if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) { a00058b4: e1a0200d mov r2, sp <== NOT EXECUTED a00058b8: e5930000 ldr r0, [r3] <== NOT EXECUTED a00058bc: eb001556 bl a000ae1c <_Protected_heap_Get_block_size> <== NOT EXECUTED a00058c0: e3500000 cmp r0, #0 <== NOT EXECUTED a00058c4: 0a000007 beq a00058e8 <== NOT EXECUTED MSBUMP(lifetime_freed, size); a00058c8: e59f3020 ldr r3, [pc, #32] ; a00058f0 <== NOT EXECUTED a00058cc: e59d0000 ldr r0, [sp] <== NOT EXECUTED a00058d0: e283c024 add ip, r3, #36 ; 0x24 <== NOT EXECUTED a00058d4: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED a00058d8: e09b1000 adds r1, fp, r0 <== NOT EXECUTED a00058dc: e2ac2000 adc r2, ip, #0 <== NOT EXECUTED a00058e0: e5831024 str r1, [r3, #36] ; 0x24 <== NOT EXECUTED a00058e4: e5832028 str r2, [r3, #40] ; 0x28 <== NOT EXECUTED } } a00058e8: e8bd8808 pop {r3, fp, pc} <== NOT EXECUTED a00058ec: a00532bc .word 0xa00532bc a00058f0: a0060ea4 .word 0xa0060ea4 a00058f4 : { uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) a00058f4: e2501000 subs r1, r0, #0 <== NOT EXECUTED } static void rtems_malloc_statistics_at_malloc( void *pointer ) { a00058f8: e92d4071 push {r0, r4, r5, r6, lr} <== NOT EXECUTED uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer ) a00058fc: 0a000013 beq a0005950 <== NOT EXECUTED return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); a0005900: e59f304c ldr r3, [pc, #76] ; a0005954 <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; a0005904: 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); a0005908: e5930000 ldr r0, [r3] <== NOT EXECUTED static void rtems_malloc_statistics_at_malloc( void *pointer ) { uintptr_t actual_size = 0; a000590c: e3a03000 mov r3, #0 <== NOT EXECUTED a0005910: 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); a0005914: e1a0200d mov r2, sp <== NOT EXECUTED a0005918: eb00153f bl a000ae1c <_Protected_heap_Get_block_size> <== NOT EXECUTED MSBUMP(lifetime_allocated, actual_size); a000591c: e59f3034 ldr r3, [pc, #52] ; a0005958 <== NOT EXECUTED a0005920: e59d6000 ldr r6, [sp] <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); a0005924: 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); a0005928: e283501c add r5, r3, #28 <== NOT EXECUTED a000592c: e8950030 ldm r5, {r4, r5} <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) a0005930: e593c018 ldr ip, [r3, #24] <== NOT EXECUTED if ( !pointer ) return; _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size); MSBUMP(lifetime_allocated, actual_size); a0005934: e0940006 adds r0, r4, r6 <== NOT EXECUTED a0005938: e2a51000 adc r1, r5, #0 <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); a000593c: 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); a0005940: e583001c str r0, [r3, #28] <== NOT EXECUTED a0005944: e5831020 str r1, [r3, #32] <== NOT EXECUTED current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed); if (current_depth > s->max_depth) a0005948: e152000c cmp r2, ip <== NOT EXECUTED s->max_depth = current_depth; a000594c: 85832018 strhi r2, [r3, #24] <== NOT EXECUTED } a0005950: e8bd8078 pop {r3, r4, r5, r6, pc} <== NOT EXECUTED a0005954: a00532bc .word 0xa00532bc a0005958: a0060ea4 .word 0xa0060ea4 a000595c : static void rtems_malloc_statistics_initialize( void ) { /* * Zero all the statistics */ (void) memset(&rtems_malloc_statistics, 0, sizeof(rtems_malloc_statistics)); a000595c: e59f0008 ldr r0, [pc, #8] ; a000596c <== NOT EXECUTED a0005960: e3a01000 mov r1, #0 <== NOT EXECUTED a0005964: e3a0202c mov r2, #44 ; 0x2c <== NOT EXECUTED a0005968: ea00db3c b a003c660 <== NOT EXECUTED a000596c: a0060ea4 .word 0xa0060ea4 a000d8cc : int rtems_memalign( void **pointer, size_t alignment, size_t size ) { a000d8cc: e92d4070 push {r4, r5, r6, lr} void *return_this; /* * Parameter error checks */ if ( !pointer ) a000d8d0: e2504000 subs r4, r0, #0 int rtems_memalign( void **pointer, size_t alignment, size_t size ) { a000d8d4: e1a05001 mov r5, r1 a000d8d8: e1a06002 mov r6, r2 void *return_this; /* * Parameter error checks */ if ( !pointer ) a000d8dc: 0a00001d beq a000d958 return EINVAL; *pointer = NULL; a000d8e0: e3a03000 mov r3, #0 a000d8e4: e5843000 str r3, [r4] /* * Do not attempt to allocate memory if not in correct system state. */ if ( _System_state_Is_up(_System_state_Get()) && a000d8e8: e59f3070 ldr r3, [pc, #112] ; a000d960 a000d8ec: e5933000 ldr r3, [r3] a000d8f0: e3530003 cmp r3, #3 a000d8f4: 1a000002 bne a000d904 a000d8f8: ebffd3f2 bl a00028c8 a000d8fc: e3500000 cmp r0, #0 a000d900: 0a000014 beq a000d958 /* * * If some free's have been deferred, then do them now. */ malloc_deferred_frees_process(); a000d904: ebffd406 bl a0002924 uintptr_t size, uintptr_t alignment ) { return _Protected_heap_Allocate_aligned_with_boundary( heap, size, alignment, 0 ); a000d908: e59f3054 ldr r3, [pc, #84] ; a000d964 a000d90c: e1a02005 mov r2, r5 a000d910: e1a01006 mov r1, r6 a000d914: e5930000 ldr r0, [r3] a000d918: e3a03000 mov r3, #0 a000d91c: ebffe732 bl a00075ec <_Protected_heap_Allocate_aligned_with_boundary> return_this = _Protected_heap_Allocate_aligned( RTEMS_Malloc_Heap, size, alignment ); if ( !return_this ) a000d920: e2505000 subs r5, r0, #0 a000d924: 1a000001 bne a000d930 a000d928: e280000c add r0, r0, #12 a000d92c: e8bd8070 pop {r4, r5, r6, pc} return ENOMEM; /* * If configured, update the more involved statistics */ if ( rtems_malloc_statistics_helpers ) a000d930: e59f3030 ldr r3, [pc, #48] ; a000d968 a000d934: e5933000 ldr r3, [r3] a000d938: e3530000 cmp r3, #0 a000d93c: 0a000002 beq a000d94c (*rtems_malloc_statistics_helpers->at_malloc)(pointer); a000d940: e1a00004 mov r0, r4 <== NOT EXECUTED a000d944: e1a0e00f mov lr, pc <== NOT EXECUTED a000d948: e593f004 ldr pc, [r3, #4] <== NOT EXECUTED */ if (rtems_malloc_boundary_helpers) (*rtems_malloc_boundary_helpers->at_malloc)(return_this, size); #endif *pointer = return_this; a000d94c: e5845000 str r5, [r4] a000d950: e3a00000 mov r0, #0 return 0; a000d954: e8bd8070 pop {r4, r5, r6, pc} a000d958: e3a00016 mov r0, #22 } a000d95c: e8bd8070 pop {r4, r5, r6, pc} a000d960: a001f7d0 .word 0xa001f7d0 a000d964: a001d7fc .word 0xa001d7fc a000d968: a001f1a8 .word 0xa001f1a8 a0005eac : void rtems_panic( const char *printf_format, ... ) { a0005eac: e92d000f push {r0, r1, r2, r3} <== NOT EXECUTED a0005eb0: e92d4001 push {r0, lr} <== NOT EXECUTED va_list arglist; va_start(arglist, printf_format); a0005eb4: e28d300c add r3, sp, #12 <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); a0005eb8: e1a02003 mov r2, r3 <== NOT EXECUTED a0005ebc: e59d1008 ldr r1, [sp, #8] <== NOT EXECUTED a0005ec0: e3a00202 mov r0, #536870912 ; 0x20000000 <== NOT EXECUTED ... ) { va_list arglist; va_start(arglist, printf_format); a0005ec4: e58d3000 str r3, [sp] <== NOT EXECUTED (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist); a0005ec8: ebffff8d bl a0005d04 <== NOT EXECUTED va_end(arglist); } a0005ecc: e8bd4008 pop {r3, lr} <== NOT EXECUTED a0005ed0: e28dd010 add sp, sp, #16 <== NOT EXECUTED a0005ed4: e12fff1e bx lr <== NOT EXECUTED a000a85c : /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { if (!rtems_pipe_configured) a000a85c: e59f304c ldr r3, [pc, #76] ; a000a8b0 /* * Initialization of FIFO/pipe module. */ void rtems_pipe_initialize (void) { a000a860: e92d4001 push {r0, lr} if (!rtems_pipe_configured) a000a864: e5d33000 ldrb r3, [r3] a000a868: e3530000 cmp r3, #0 a000a86c: 0a00000e beq a000a8ac return; if (rtems_pipe_semaphore) a000a870: e59fc03c ldr ip, [pc, #60] ; a000a8b4 <== NOT EXECUTED a000a874: e59c3000 ldr r3, [ip] <== NOT EXECUTED a000a878: e3530000 cmp r3, #0 <== NOT EXECUTED a000a87c: 1a00000a bne a000a8ac <== NOT EXECUTED return; rtems_status_code sc; sc = rtems_semaphore_create( a000a880: e59f0030 ldr r0, [pc, #48] ; a000a8b8 <== NOT EXECUTED a000a884: e3a01001 mov r1, #1 <== NOT EXECUTED a000a888: e3a02054 mov r2, #84 ; 0x54 <== NOT EXECUTED a000a88c: e58dc000 str ip, [sp] <== NOT EXECUTED a000a890: ebffe5ab bl a0003f44 <== 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) a000a894: e3500000 cmp r0, #0 <== NOT EXECUTED a000a898: 0a000000 beq a000a8a0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); a000a89c: ebffe7cf bl a00047e0 <== NOT EXECUTED rtems_interval now; now = rtems_clock_get_ticks_since_boot(); a000a8a0: ebffe4ab bl a0003b54 <== NOT EXECUTED rtems_pipe_no = now; a000a8a4: e59f3010 ldr r3, [pc, #16] ; a000a8bc <== NOT EXECUTED a000a8a8: e1c300b0 strh r0, [r3] <== NOT EXECUTED } a000a8ac: e8bd8008 pop {r3, pc} a000a8b0: a00198e4 .word 0xa00198e4 a000a8b4: a0019acc .word 0xa0019acc a000a8b8: 50495045 .word 0x50495045 a000a8bc: a0019ad2 .word 0xa0019ad2 a000394c : /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; a000394c: e59f3084 ldr r3, [pc, #132] ; a00039d8 /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { a0003950: e92d4810 push {r4, fp, lr} Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; a0003954: e5933000 ldr r3, [r3] /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) { a0003958: e28db008 add fp, sp, #8 ) { #if defined(__GNUC__) void *sp = __builtin_frame_address(0); if ( sp < the_stack->area ) { a000395c: e59300c8 ldr r0, [r3, #200] ; 0xc8 a0003960: e15b0000 cmp fp, r0 a0003964: 33a04000 movcc r4, #0 a0003968: 3a000004 bcc a0003980 } /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) a000396c: e59340c4 ldr r4, [r3, #196] ; 0xc4 a0003970: e0804004 add r4, r0, r4 a0003974: e15b0004 cmp fp, r4 a0003978: 83a04000 movhi r4, #0 a000397c: 93a04001 movls r4, #1 /* * The stack checker must be initialized before the pattern is there * to check. */ if ( Stack_check_Initialized ) { a0003980: e59f3054 ldr r3, [pc, #84] ; a00039dc a0003984: e5933000 ldr r3, [r3] a0003988: e3530000 cmp r3, #0 a000398c: 03a01001 moveq r1, #1 a0003990: 0a000005 beq a00039ac pattern_ok = (!memcmp( a0003994: e59f1044 ldr r1, [pc, #68] ; a00039e0 a0003998: e2800008 add r0, r0, #8 a000399c: e3a02010 mov r2, #16 a00039a0: eb00e27d bl a003c39c a00039a4: e2701001 rsbs r1, r0, #1 a00039a8: 33a01000 movcc r1, #0 } /* * The Stack Pointer and the Pattern Area are OK so return false. */ if ( sp_ok && pattern_ok ) a00039ac: e3540000 cmp r4, #0 a00039b0: 0a000003 beq a00039c4 a00039b4: e3510000 cmp r1, #0 a00039b8: 0a000001 beq a00039c4 a00039bc: e3a00000 mov r0, #0 a00039c0: e8bd8810 pop {r4, fp, pc} return false; /* * Let's report as much as we can. */ Stack_check_report_blown_task( _Thread_Executing, pattern_ok ); a00039c4: e59f300c ldr r3, [pc, #12] ; a00039d8 <== NOT EXECUTED a00039c8: e5930000 ldr r0, [r3] <== NOT EXECUTED a00039cc: ebffffb2 bl a000389c <== NOT EXECUTED a00039d0: e3a00001 mov r0, #1 <== NOT EXECUTED return true; } a00039d4: e8bd8810 pop {r4, fp, pc} <== NOT EXECUTED a00039d8: a00610c0 .word 0xa00610c0 a00039dc: a005e39c .word 0xa005e39c a00039e0: a0060e74 .word 0xa0060e74 a000388c : void rtems_stack_checker_report_usage( void ) { rtems_stack_checker_report_usage_with_plugin( NULL, printk_plugin ); a000388c: e59f1004 ldr r1, [pc, #4] ; a0003898 <== NOT EXECUTED a0003890: e3a00000 mov r0, #0 <== NOT EXECUTED a0003894: eaffffe5 b a0003830 <== NOT EXECUTED a0003898: a00062c8 .word 0xa00062c8 a0003830 : void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { a0003830: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED print_context = context; a0003834: e59f4040 ldr r4, [pc, #64] ; a000387c <== NOT EXECUTED void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) { a0003838: e1a05001 mov r5, r1 <== NOT EXECUTED a000383c: e1a06000 mov r6, r0 <== NOT EXECUTED print_context = context; print_handler = print; a0003840: 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; a0003844: e5840008 str r0, [r4, #8] <== NOT EXECUTED print_handler = print; (*print)( context, "Stack usage by thread\n"); a0003848: e59f1030 ldr r1, [pc, #48] ; a0003880 <== NOT EXECUTED a000384c: e12fff35 blx r5 <== NOT EXECUTED (*print)( context, a0003850: e59f102c ldr r1, [pc, #44] ; a0003884 <== NOT EXECUTED a0003854: e1a00006 mov r0, r6 <== NOT EXECUTED a0003858: e12fff35 blx r5 <== NOT EXECUTED " ID NAME LOW HIGH CURRENT AVAILABLE USED\n" ); /* iterate over all threads and dump the usage */ rtems_iterate_over_all_threads( Stack_check_Dump_threads_usage ); a000385c: e59f0024 ldr r0, [pc, #36] ; a0003888 <== NOT EXECUTED a0003860: eb001b4d bl a000a59c <== NOT EXECUTED /* dump interrupt stack info if any */ Stack_check_Dump_threads_usage((Thread_Control *) -1); a0003864: e3e00000 mvn r0, #0 <== NOT EXECUTED a0003868: ebffffa3 bl a00036fc <== NOT EXECUTED print_context = NULL; a000386c: e3a03000 mov r3, #0 <== NOT EXECUTED print_handler = NULL; a0003870: 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; a0003874: e5843008 str r3, [r4, #8] <== NOT EXECUTED print_handler = NULL; } a0003878: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a000387c: a005e39c .word 0xa005e39c a0003880: a0057c7d .word 0xa0057c7d a0003884: a0057c94 .word 0xa0057c94 a0003888: a00036fc .word 0xa00036fc a000a430 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a000a430: e92d41f1 push {r0, r4, r5, r6, r7, r8, lr} <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a000a434: e2514000 subs r4, r1, #0 <== NOT EXECUTED #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a000a438: e1a07000 mov r7, r0 <== NOT EXECUTED a000a43c: e1a08002 mov r8, r2 <== NOT EXECUTED STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a000a440: 03a00009 moveq r0, #9 <== NOT EXECUTED a000a444: 0a00001e beq a000a4c4 <== NOT EXECUTED return RTEMS_INVALID_ADDRESS; errno = 0; a000a448: eb000cf2 bl a000d818 <__errno> <== NOT EXECUTED a000a44c: e3a03000 mov r3, #0 <== NOT EXECUTED a000a450: e5803000 str r3, [r0] <== NOT EXECUTED *n = 0; a000a454: e3a02000 mov r2, #0 <== NOT EXECUTED a000a458: e3a03000 mov r3, #0 <== NOT EXECUTED a000a45c: e884000c stm r4, {r2, r3} <== NOT EXECUTED #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); a000a460: e1a00007 mov r0, r7 <== NOT EXECUTED a000a464: e1a0100d mov r1, sp <== NOT EXECUTED a000a468: eb001861 bl a00105f4 <== 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 ) a000a46c: e3580000 cmp r8, #0 <== NOT EXECUTED *endptr = end; a000a470: 159d3000 ldrne r3, [sp] <== NOT EXECUTED errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); a000a474: e1a05000 mov r5, r0 <== NOT EXECUTED a000a478: e1a06001 mov r6, r1 <== 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; a000a47c: 15883000 strne r3, [r8] <== NOT EXECUTED /* nothing was converted */ if ( end == s ) a000a480: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000a484: e1530007 cmp r3, r7 <== NOT EXECUTED a000a488: 03a0000b moveq r0, #11 <== NOT EXECUTED a000a48c: 0a00000c beq a000a4c4 <== NOT EXECUTED return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) a000a490: e1a00005 mov r0, r5 <== NOT EXECUTED a000a494: e59f202c ldr r2, [pc, #44] ; a000a4c8 <== NOT EXECUTED a000a498: e3e03000 mvn r3, #0 <== NOT EXECUTED a000a49c: ebffe182 bl a0002aac <__gedf2> <== NOT EXECUTED a000a4a0: e3500000 cmp r0, #0 <== NOT EXECUTED a000a4a4: da000004 ble a000a4bc <== NOT EXECUTED a000a4a8: eb000cda bl a000d818 <__errno> <== NOT EXECUTED a000a4ac: e5903000 ldr r3, [r0] <== NOT EXECUTED a000a4b0: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000a4b4: 03a0000a moveq r0, #10 <== NOT EXECUTED a000a4b8: 0a000001 beq a000a4c4 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; a000a4bc: e8840060 stm r4, {r5, r6} <== NOT EXECUTED a000a4c0: e3a00000 mov r0, #0 <== NOT EXECUTED return RTEMS_SUCCESSFUL; } a000a4c4: e8bd81f8 pop {r3, r4, r5, r6, r7, r8, pc} <== NOT EXECUTED a000a4c8: 7fefffff .word 0x7fefffff a000a4cc : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a000a4cc: e92d40f1 push {r0, r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a000a4d0: e2514000 subs r4, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a000a4d4: e1a05000 mov r5, r0 a000a4d8: e1a07002 mov r7, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a000a4dc: 03a00009 moveq r0, #9 a000a4e0: 0a00001b beq a000a554 return RTEMS_INVALID_ADDRESS; errno = 0; a000a4e4: eb000ccb bl a000d818 <__errno> a000a4e8: e3a03000 mov r3, #0 a000a4ec: e5803000 str r3, [r0] *n = 0; a000a4f0: e3a03000 mov r3, #0 a000a4f4: e5843000 str r3, [r4] #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); a000a4f8: e1a00005 mov r0, r5 a000a4fc: e1a0100d mov r1, sp a000a500: eb001828 bl a00105a8 #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 ) a000a504: e3570000 cmp r7, #0 *endptr = end; a000a508: 159d3000 ldrne r3, [sp] errno = 0; *n = 0; #ifdef STRING_TO_FLOAT result = STRING_TO_METHOD( s, &end ); a000a50c: 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; a000a510: 15873000 strne r3, [r7] /* nothing was converted */ if ( end == s ) a000a514: e59d3000 ldr r3, [sp] a000a518: e1530005 cmp r3, r5 a000a51c: 03a0000b moveq r0, #11 a000a520: 0a00000b beq a000a554 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) a000a524: e1a00006 mov r0, r6 a000a528: e59f1028 ldr r1, [pc, #40] ; a000a558 a000a52c: ebffe1a9 bl a0002bd8 <__gesf2> a000a530: e3500000 cmp r0, #0 a000a534: da000004 ble a000a54c a000a538: eb000cb6 bl a000d818 <__errno> <== NOT EXECUTED a000a53c: e5903000 ldr r3, [r0] <== NOT EXECUTED a000a540: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a000a544: 03a0000a moveq r0, #10 <== NOT EXECUTED a000a548: 0a000001 beq a000a554 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; a000a54c: e5846000 str r6, [r4] a000a550: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } a000a554: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} a000a558: 7f7fffff .word 0x7f7fffff a0019e38 : #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a0019e38: e92d40f1 push {r0, r4, r5, r6, r7, lr} STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a0019e3c: e2514000 subs r4, r1, #0 #if defined(STRING_TO_INTEGER) && !defined(STRING_TO_POINTER) , int base #endif ) { a0019e40: e1a05000 mov r5, r0 a0019e44: e1a06002 mov r6, r2 STRING_TO_INPUT_TYPE result; char *end; if ( !n ) a0019e48: 03a00009 moveq r0, #9 a0019e4c: 0a000018 beq a0019eb4 return RTEMS_INVALID_ADDRESS; errno = 0; a0019e50: eb007d4a bl a0039380 <__errno> a0019e54: e3a03000 mov r3, #0 a0019e58: e5803000 str r3, [r0] *n = 0; a0019e5c: 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 ); a0019e60: e1a00005 mov r0, r5 a0019e64: e1a0100d mov r1, sp a0019e68: e3a02010 mov r2, #16 a0019e6c: eb009cea bl a004121c #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 ) a0019e70: e3560000 cmp r6, #0 *endptr = end; a0019e74: 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 ); a0019e78: 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; a0019e7c: 15863000 strne r3, [r6] /* nothing was converted */ if ( end == s ) a0019e80: e59d3000 ldr r3, [sp] a0019e84: e1530005 cmp r3, r5 a0019e88: 03a0000b moveq r0, #11 a0019e8c: 0a000008 beq a0019eb4 return RTEMS_INVALID_NUMBER; #endif #ifdef STRING_TO_MAX /* there was an overflow */ if ( (result == STRING_TO_MAX) && (errno == ERANGE)) a0019e90: e3770001 cmn r7, #1 a0019e94: 1a000004 bne a0019eac a0019e98: eb007d38 bl a0039380 <__errno> <== NOT EXECUTED a0019e9c: e5903000 ldr r3, [r0] <== NOT EXECUTED a0019ea0: e3530022 cmp r3, #34 ; 0x22 <== NOT EXECUTED a0019ea4: 03a0000a moveq r0, #10 <== NOT EXECUTED a0019ea8: 0a000001 beq a0019eb4 <== NOT EXECUTED /* there was an underflow */ if ( (result == STRING_TO_MIN) && (errno == ERANGE)) return RTEMS_INVALID_NUMBER; #endif *n = (STRING_TO_TYPE) result; a0019eac: e5847000 str r7, [r4] a0019eb0: e3a00000 mov r0, #0 return RTEMS_SUCCESSFUL; } a0019eb4: e8bd80f8 pop {r3, r4, r5, r6, r7, pc} a00032c4 : rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a00032c4: e3500009 cmp r0, #9 a00032c8: 012fff1e bxeq lr a00032cc: ca000016 bgt a000332c a00032d0: e3500004 cmp r0, #4 a00032d4: 012fff1e bxeq lr a00032d8: ca00000a bgt a0003308 a00032dc: e3500001 cmp r0, #1 a00032e0: 012fff1e bxeq lr a00032e4: ca000002 bgt a00032f4 a00032e8: e3500000 cmp r0, #0 a00032ec: 012fff1e bxeq lr a00032f0: ea000030 b a00033b8 a00032f4: e3500002 cmp r0, #2 <== NOT EXECUTED a00032f8: 012fff1e bxeq lr <== NOT EXECUTED a00032fc: e3500003 cmp r0, #3 <== NOT EXECUTED a0003300: 1a00002c bne a00033b8 <== NOT EXECUTED a0003304: e12fff1e bx lr <== NOT EXECUTED a0003308: e3500006 cmp r0, #6 <== NOT EXECUTED a000330c: 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; a0003310: b3a00005 movlt r0, #5 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a0003314: b12fff1e bxlt lr <== NOT EXECUTED a0003318: e3500007 cmp r0, #7 <== NOT EXECUTED a000331c: 012fff1e bxeq lr <== NOT EXECUTED a0003320: e3500008 cmp r0, #8 <== NOT EXECUTED a0003324: 1a000023 bne a00033b8 <== NOT EXECUTED a0003328: e12fff1e bx lr <== NOT EXECUTED a000332c: e350000e cmp r0, #14 <== NOT EXECUTED a0003330: 012fff1e bxeq lr <== NOT EXECUTED a0003334: ca000008 bgt a000335c <== NOT EXECUTED a0003338: e350000b cmp r0, #11 <== NOT EXECUTED a000333c: 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; a0003340: b3a0000a movlt r0, #10 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a0003344: b12fff1e bxlt lr <== NOT EXECUTED a0003348: e350000c cmp r0, #12 <== NOT EXECUTED a000334c: 012fff1e bxeq lr <== NOT EXECUTED a0003350: e350000d cmp r0, #13 <== NOT EXECUTED a0003354: 1a000017 bne a00033b8 <== NOT EXECUTED a0003358: e12fff1e bx lr <== NOT EXECUTED a000335c: e59f305c ldr r3, [pc, #92] ; a00033c0 <== NOT EXECUTED a0003360: 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; a0003364: 03a00011 moveq r0, #17 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a0003368: 012fff1e bxeq lr <== NOT EXECUTED a000336c: ca000005 bgt a0003388 <== NOT EXECUTED a0003370: e350000f cmp r0, #15 <== NOT EXECUTED a0003374: 012fff1e bxeq lr <== NOT EXECUTED a0003378: e2433001 sub r3, r3, #1 <== NOT EXECUTED a000337c: e1500003 cmp r0, r3 <== NOT EXECUTED a0003380: 1a00000c bne a00033b8 <== NOT EXECUTED a0003384: ea000007 b a00033a8 <== NOT EXECUTED a0003388: e59f3034 ldr r3, [pc, #52] ; a00033c4 <== NOT EXECUTED a000338c: 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; a0003390: 03a00012 moveq r0, #18 <== NOT EXECUTED rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) { a0003394: 012fff1e bxeq lr <== NOT EXECUTED a0003398: e2833001 add r3, r3, #1 <== NOT EXECUTED a000339c: e1500003 cmp r0, r3 <== NOT EXECUTED a00033a0: 1a000004 bne a00033b8 <== NOT EXECUTED a00033a4: ea000001 b a00033b0 <== 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; a00033a8: e3a00010 mov r0, #16 <== NOT EXECUTED case B57600: baud_index = 16; break; a00033ac: e12fff1e bx lr <== NOT EXECUTED case B115200: baud_index = 17; break; case B230400: baud_index = 18; break; a00033b0: e3a00013 mov r0, #19 <== NOT EXECUTED case B460800: baud_index = 19; break; a00033b4: e12fff1e bx lr <== NOT EXECUTED a00033b8: e3e00000 mvn r0, #0 default: baud_index = -1; break; } return baud_index; } a00033bc: e12fff1e bx lr a00033c0: 00001002 .word 0x00001002 a00033c4: 00001003 .word 0x00001003 a0001dec : int cbufsize, int raw_input, int raw_output ) { rtems_termios_cbufsize = cbufsize; a0001dec: e59f3008 ldr r3, [pc, #8] ; a0001dfc <== NOT EXECUTED a0001df0: 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; } a0001df4: e3a00000 mov r0, #0 <== NOT EXECUTED a0001df8: e12fff1e bx lr <== NOT EXECUTED a0001dfc: a0018404 .word 0xa0018404 a00031fc : { 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); a00031fc: e59f217c ldr r2, [pc, #380] ; a0003380 rtems_status_code rtems_termios_close (void *arg) { rtems_libio_open_close_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a0003200: e5903000 ldr r3, [r0] rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0003204: e3a01000 mov r1, #0 } } rtems_status_code rtems_termios_close (void *arg) { a0003208: e92d4030 push {r4, r5, lr} a000320c: 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); a0003210: e5920000 ldr r0, [r2] a0003214: 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; a0003218: e5934034 ldr r4, [r3, #52] ; 0x34 rtems_status_code sc; sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a000321c: eb0003da bl a000418c if (sc != RTEMS_SUCCESSFUL) a0003220: e3500000 cmp r0, #0 a0003224: 1a000021 bne a00032b0 rtems_fatal_error_occurred (sc); if (--tty->refcount == 0) { a0003228: e5943008 ldr r3, [r4, #8] a000322c: e2433001 sub r3, r3, #1 a0003230: e3530000 cmp r3, #0 a0003234: e5843008 str r3, [r4, #8] a0003238: 1a00004b bne a000336c if (rtems_termios_linesw[tty->t_line].l_close != NULL) { a000323c: e59420cc ldr r2, [r4, #204] ; 0xcc a0003240: e59f313c ldr r3, [pc, #316] ; a0003384 a0003244: e0833282 add r3, r3, r2, lsl #5 a0003248: e5931004 ldr r1, [r3, #4] a000324c: e3510000 cmp r1, #0 a0003250: 0a000002 beq a0003260 /* * call discipline-specific close */ sc = rtems_termios_linesw[tty->t_line].l_close(tty); a0003254: e1a00004 mov r0, r4 <== NOT EXECUTED a0003258: e12fff31 blx r1 <== NOT EXECUTED a000325c: ea000006 b a000327c <== NOT EXECUTED } else { /* * default: just flush output buffer */ sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0003260: e5940018 ldr r0, [r4, #24] a0003264: e1a02001 mov r2, r1 a0003268: eb0003c7 bl a000418c if (sc != RTEMS_SUCCESSFUL) { a000326c: e3500000 cmp r0, #0 a0003270: 1a00000e bne a00032b0 rtems_fatal_error_occurred (sc); } drainOutput (tty); a0003274: e1a00004 mov r0, r4 a0003278: ebfffe08 bl a0002aa0 } if (tty->device.outputUsesInterrupts a000327c: e59430b4 ldr r3, [r4, #180] ; 0xb4 a0003280: e3530002 cmp r3, #2 a0003284: 1a00000a bne a00032b4 == TERMIOS_TASK_DRIVEN) { /* * send "terminate" to I/O tasks */ sc = rtems_event_send( a0003288: e59400c4 ldr r0, [r4, #196] ; 0xc4 <== NOT EXECUTED a000328c: e3a01001 mov r1, #1 <== NOT EXECUTED a0003290: eb0002a9 bl a0003d3c <== NOT EXECUTED tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) a0003294: e3500000 cmp r0, #0 <== NOT EXECUTED a0003298: 1a000004 bne a00032b0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_event_send( a000329c: e59400c8 ldr r0, [r4, #200] ; 0xc8 <== NOT EXECUTED a00032a0: e3a01001 mov r1, #1 <== NOT EXECUTED a00032a4: eb0002a4 bl a0003d3c <== NOT EXECUTED tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT); if (sc != RTEMS_SUCCESSFUL) a00032a8: e3500000 cmp r0, #0 <== NOT EXECUTED a00032ac: 0a000000 beq a00032b4 <== NOT EXECUTED rtems_fatal_error_occurred (sc); a00032b0: eb00054a bl a00047e0 <== NOT EXECUTED } if (tty->device.lastClose) a00032b4: e594309c ldr r3, [r4, #156] ; 0x9c a00032b8: e3530000 cmp r3, #0 a00032bc: 0a000003 beq a00032d0 (*tty->device.lastClose)(tty->major, tty->minor, arg); a00032c0: e1a02005 mov r2, r5 a00032c4: e594000c ldr r0, [r4, #12] a00032c8: e5941010 ldr r1, [r4, #16] a00032cc: e12fff33 blx r3 if (tty->forw == NULL) { a00032d0: e894000c ldm r4, {r2, r3} a00032d4: e3520000 cmp r2, #0 if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; } } else { tty->forw->back = tty->back; a00032d8: 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) { a00032dc: 1a000003 bne a00032f0 rtems_termios_ttyTail = tty->back; a00032e0: e59f10a0 ldr r1, [pc, #160] ; a0003388 if ( rtems_termios_ttyTail != NULL ) { a00032e4: 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; a00032e8: e5813000 str r3, [r1] if ( rtems_termios_ttyTail != NULL ) { rtems_termios_ttyTail->forw = NULL; a00032ec: 15832000 strne r2, [r3] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { a00032f0: e5942004 ldr r2, [r4, #4] a00032f4: e5943000 ldr r3, [r4] a00032f8: e3520000 cmp r2, #0 if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; } } else { tty->back->forw = tty->forw; a00032fc: 15823000 strne r3, [r2] } } else { tty->forw->back = tty->back; } if (tty->back == NULL) { a0003300: 1a000003 bne a0003314 rtems_termios_ttyHead = tty->forw; a0003304: e59f1080 ldr r1, [pc, #128] ; a000338c if ( rtems_termios_ttyHead != NULL ) { a0003308: e3530000 cmp r3, #0 } else { tty->forw->back = tty->back; } if (tty->back == NULL) { rtems_termios_ttyHead = tty->forw; a000330c: e5813000 str r3, [r1] if ( rtems_termios_ttyHead != NULL ) { rtems_termios_ttyHead->back = NULL; a0003310: 15832004 strne r2, [r3, #4] } } else { tty->back->forw = tty->forw; } rtems_semaphore_delete (tty->isem); a0003314: e5940014 ldr r0, [r4, #20] a0003318: eb000374 bl a00040f0 rtems_semaphore_delete (tty->osem); a000331c: e5940018 ldr r0, [r4, #24] a0003320: eb000372 bl a00040f0 rtems_semaphore_delete (tty->rawOutBuf.Semaphore); a0003324: e594008c ldr r0, [r4, #140] ; 0x8c a0003328: eb000370 bl a00040f0 if ((tty->device.pollRead == NULL) || a000332c: e59430a0 ldr r3, [r4, #160] ; 0xa0 a0003330: e3530000 cmp r3, #0 a0003334: 0a000002 beq a0003344 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)) a0003338: e59430b4 ldr r3, [r4, #180] ; 0xb4 a000333c: e3530002 cmp r3, #2 a0003340: 1a000001 bne a000334c rtems_semaphore_delete (tty->rawInBuf.Semaphore); a0003344: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED a0003348: eb000368 bl a00040f0 <== NOT EXECUTED free (tty->rawInBuf.theBuf); a000334c: e5940058 ldr r0, [r4, #88] ; 0x58 a0003350: eb0014f1 bl a000871c free (tty->rawOutBuf.theBuf); a0003354: e594007c ldr r0, [r4, #124] ; 0x7c a0003358: eb0014ef bl a000871c free (tty->cbuf); a000335c: e594001c ldr r0, [r4, #28] a0003360: eb0014ed bl a000871c free (tty); a0003364: e1a00004 mov r0, r4 a0003368: eb0014eb bl a000871c } rtems_semaphore_release (rtems_termios_ttyMutex); a000336c: e59f300c ldr r3, [pc, #12] ; a0003380 a0003370: e5930000 ldr r0, [r3] a0003374: eb0003ca bl a00042a4 return RTEMS_SUCCESSFUL; } a0003378: e3a00000 mov r0, #0 a000337c: e8bd8030 pop {r4, r5, pc} a0003380: a0019b90 .word 0xa0019b90 a0003384: a00199c0 .word 0xa00199c0 a0003388: a0019b94 .word 0xa0019b94 a000338c: a0019b98 .word 0xa0019b98 a0001ff4 : rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; a0001ff4: e590c090 ldr ip, [r0, #144] ; 0x90 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a0001ff8: e59020b4 ldr r2, [r0, #180] ; 0xb4 <== NOT EXECUTED * for each transmitted character. * It returns number of characters left to transmit */ int rtems_termios_dequeue_characters (void *ttyp, int len) { a0001ffc: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; a0002000: e08c1001 add r1, ip, r1 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a0002004: e3520002 cmp r2, #2 <== NOT EXECUTED rtems_status_code sc; /* * sum up character count already sent */ tty->t_dqlen += len; a0002008: e5801090 str r1, [r0, #144] ; 0x90 <== NOT EXECUTED if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a000200c: 1a000005 bne a0002028 <== NOT EXECUTED /* * send wake up to transmitter task */ sc = rtems_event_send(tty->txTaskId, a0002010: e59000c8 ldr r0, [r0, #200] ; 0xc8 <== NOT EXECUTED a0002014: e1a01002 mov r1, r2 <== NOT EXECUTED a0002018: eb000747 bl a0003d3c <== NOT EXECUTED TERMIOS_TX_START_EVENT); if (sc != RTEMS_SUCCESSFUL) a000201c: e3500000 cmp r0, #0 <== NOT EXECUTED a0002020: 0a00000b beq a0002054 <== NOT EXECUTED rtems_fatal_error_occurred (sc); a0002024: eb0009ed bl a00047e0 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else if (tty->t_line == PPPDISC ) { a0002028: e59030cc ldr r3, [r0, #204] ; 0xcc <== NOT EXECUTED a000202c: e3530005 cmp r3, #5 <== NOT EXECUTED a0002030: 1a000005 bne a000204c <== NOT EXECUTED /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { a0002034: e59f3020 ldr r3, [pc, #32] ; a000205c <== NOT EXECUTED a0002038: e59330b4 ldr r3, [r3, #180] ; 0xb4 <== NOT EXECUTED a000203c: e3530000 cmp r3, #0 <== NOT EXECUTED a0002040: 0a000003 beq a0002054 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); a0002044: e12fff33 blx r3 <== NOT EXECUTED a0002048: ea000001 b a0002054 <== NOT EXECUTED return 0; /* nothing to output in IRQ... */ } else { return rtems_termios_refill_transmitter(tty); } } a000204c: 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); a0002050: eaffff6d b a0001e0c <== NOT EXECUTED } } a0002054: e3a00000 mov r0, #0 <== NOT EXECUTED a0002058: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a000205c: a00199c0 .word 0xa00199c0 a0002060 : * 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) { a0002060: 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) { a0002064: e59f32b0 ldr r3, [pc, #688] ; a000231c <== 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) { a0002068: 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) { a000206c: 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) { a0002070: 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) { a0002074: e0830280 add r0, r3, r0, lsl #5 <== NOT EXECUTED a0002078: e5906010 ldr r6, [r0, #16] <== NOT EXECUTED a000207c: 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); a0002080: 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); a0002084: 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); a0002088: 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) { a000208c: 1a00000e bne a00020cc <== 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); a0002090: e1a08002 mov r8, r2 <== NOT EXECUTED a0002094: 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, a0002098: e284204a add r2, r4, #74 ; 0x4a <== NOT EXECUTED a000209c: 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); a00020a0: e58d3004 str r3, [sp, #4] <== NOT EXECUTED a00020a4: e1a09006 mov r9, r6 <== NOT EXECUTED a00020a8: e1a05006 mov r5, r6 <== NOT EXECUTED a00020ac: ea00008f b a00022f0 <== 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); a00020b0: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED a00020b4: e7db0006 ldrb r0, [fp, r6] <== NOT EXECUTED a00020b8: e2455001 sub r5, r5, #1 <== NOT EXECUTED a00020bc: e0873283 add r3, r7, r3, lsl #5 <== NOT EXECUTED a00020c0: e1a0e00f mov lr, pc <== NOT EXECUTED a00020c4: e593f010 ldr pc, [r3, #16] <== NOT EXECUTED a00020c8: e2866001 add r6, r6, #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--) { a00020cc: e3550000 cmp r5, #0 <== NOT EXECUTED c = *buf++; rtems_termios_linesw[tty->t_line].l_rint(c,tty); a00020d0: 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--) { a00020d4: 1afffff5 bne a00020b0 <== NOT EXECUTED } /* * check to see if rcv wakeup callback was set */ if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { a00020d8: e59430e4 ldr r3, [r4, #228] ; 0xe4 <== NOT EXECUTED a00020dc: e3530000 cmp r3, #0 <== NOT EXECUTED a00020e0: 1a00008a bne a0002310 <== NOT EXECUTED a00020e4: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED a00020e8: e3530000 cmp r3, #0 <== NOT EXECUTED a00020ec: 0a000087 beq a0002310 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); a00020f0: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED a00020f4: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED a00020f8: e12fff33 blx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; a00020fc: e3a03001 mov r3, #1 <== NOT EXECUTED a0002100: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED a0002104: ea000082 b a0002314 <== 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) { a0002108: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } return 0; } while (len--) { c = *buf++; a000210c: 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) { a0002110: e3130c02 tst r3, #512 ; 0x200 <== NOT EXECUTED a0002114: 0a00000f beq a0002158 <== NOT EXECUTED /* if received char is V_STOP and V_START (both are equal value) */ if (c == tty->termios.c_cc[VSTOP]) { a0002118: e5d4204a ldrb r2, [r4, #74] ; 0x4a <== NOT EXECUTED a000211c: e5d43049 ldrb r3, [r4, #73] ; 0x49 <== NOT EXECUTED a0002120: e152000a cmp r2, sl <== NOT EXECUTED a0002124: 1a000007 bne a0002148 <== NOT EXECUTED if (c == tty->termios.c_cc[VSTART]) { a0002128: e1530002 cmp r3, r2 <== NOT EXECUTED /* received VSTOP and VSTART==VSTOP? */ /* then toggle "stop output" status */ tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF; a000212c: 059430b8 ldreq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; a0002130: 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; a0002134: 02233010 eoreq r3, r3, #16 <== NOT EXECUTED } else { /* VSTOP received (other code than VSTART) */ /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; a0002138: 13833010 orrne r3, r3, #16 <== NOT EXECUTED a000213c: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } } } tty->rawInBufDropped += dropped; rtems_semaphore_release (tty->rawInBuf.Semaphore); return dropped; a0002140: e3a09001 mov r9, #1 <== NOT EXECUTED a0002144: ea000005 b a0002160 <== NOT EXECUTED /* stop output */ tty->flow_ctrl |= FL_ORCVXOF; } flow_rcv = true; } else if (c == tty->termios.c_cc[VSTART]) { a0002148: e153000a cmp r3, sl <== NOT EXECUTED /* VSTART received */ /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; a000214c: 059430b8 ldreq r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002150: 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]) { a0002154: 0afffff8 beq a000213c <== NOT EXECUTED /* restart output */ tty->flow_ctrl &= ~FL_ORCVXOF; flow_rcv = true; } } if (flow_rcv) { a0002158: e3590000 cmp r9, #0 <== NOT EXECUTED a000215c: 0a000015 beq a00021b8 <== NOT EXECUTED /* restart output according to FL_ORCVXOF flag */ if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) { a0002160: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002164: e2033030 and r3, r3, #48 ; 0x30 <== NOT EXECUTED a0002168: e3530020 cmp r3, #32 <== NOT EXECUTED a000216c: 1a00005d bne a00022e8 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0002170: e10f7000 mrs r7, CPSR <== NOT EXECUTED a0002174: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a0002178: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; a000217c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a0002180: 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; a0002184: e3c33020 bic r3, r3, #32 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a0002188: 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; a000218c: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a0002190: 0a000006 beq a00021b0 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1); a0002194: 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, a0002198: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED a000219c: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a00021a0: e3a02001 mov r2, #1 <== NOT EXECUTED a00021a4: e0811003 add r1, r1, r3 <== NOT EXECUTED a00021a8: e1a0e00f mov lr, pc <== NOT EXECUTED a00021ac: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a00021b0: e129f007 msr CPSR_fc, r7 <== NOT EXECUTED a00021b4: ea00004b b a00022e8 <== NOT EXECUTED /* reenable interrupts */ rtems_interrupt_enable(level); } } else { newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size; a00021b8: e5940060 ldr r0, [r4, #96] ; 0x60 <== NOT EXECUTED a00021bc: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED a00021c0: e2800001 add r0, r0, #1 <== NOT EXECUTED a00021c4: eb004ffe bl a00161c4 <__umodsi3> <== NOT EXECUTED a00021c8: e1a07000 mov r7, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a00021cc: e10f2000 mrs r2, CPSR <== NOT EXECUTED a00021d0: e3823080 orr r3, r2, #128 ; 0x80 <== NOT EXECUTED a00021d4: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a00021d8: e58d2000 str r2, [sp] <== NOT EXECUTED /* if chars_in_buffer > highwater */ rtems_interrupt_disable(level); if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size) a00021dc: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a00021e0: e5940064 ldr r0, [r4, #100] ; 0x64 <== NOT EXECUTED a00021e4: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED a00021e8: e0630000 rsb r0, r3, r0 <== NOT EXECUTED a00021ec: e0800007 add r0, r0, r7 <== NOT EXECUTED a00021f0: eb004ff3 bl a00161c4 <__umodsi3> <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && a00021f4: e59430c0 ldr r3, [r4, #192] ; 0xc0 <== NOT EXECUTED a00021f8: e1500003 cmp r0, r3 <== NOT EXECUTED a00021fc: 9a000025 bls a0002298 <== NOT EXECUTED !(tty->flow_ctrl & FL_IREQXOF)) { a0002200: 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) a0002204: e3130001 tst r3, #1 <== NOT EXECUTED a0002208: 1a000022 bne a0002298 <== NOT EXECUTED % tty->rawInBuf.Size) > tty->highwater) && !(tty->flow_ctrl & FL_IREQXOF)) { /* incoming data stream should be stopped */ tty->flow_ctrl |= FL_IREQXOF; a000220c: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) a0002210: e59f3108 ldr r3, [pc, #264] ; a0002320 <== 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; a0002214: e3822001 orr r2, r2, #1 <== NOT EXECUTED a0002218: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF)) a000221c: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002220: e0023003 and r3, r2, r3 <== NOT EXECUTED a0002224: e3530b01 cmp r3, #1024 ; 0x400 <== NOT EXECUTED a0002228: 1a00000e bne a0002268 <== NOT EXECUTED == (FL_MDXOF ) ){ if ((tty->flow_ctrl & FL_OSTOP) || a000222c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002230: e3130020 tst r3, #32 <== NOT EXECUTED a0002234: 1a000002 bne a0002244 <== NOT EXECUTED (tty->rawOutBufState == rob_idle)) { a0002238: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED a000223c: e3530000 cmp r3, #0 <== NOT EXECUTED a0002240: 1a000014 bne a0002298 <== NOT EXECUTED /* if tx is stopped due to XOFF or out of data */ /* call write function here */ tty->flow_ctrl |= FL_ISNTXOF; a0002244: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED (*tty->device.write)(tty->minor, a0002248: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000224c: e59d1008 ldr r1, [sp, #8] <== 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; a0002250: e3833002 orr r3, r3, #2 <== NOT EXECUTED a0002254: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED (*tty->device.write)(tty->minor, a0002258: e3a02001 mov r2, #1 <== NOT EXECUTED a000225c: e1a0e00f mov lr, pc <== NOT EXECUTED a0002260: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED a0002264: ea00000b b a0002298 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) a0002268: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a000226c: e2033f41 and r3, r3, #260 ; 0x104 <== NOT EXECUTED a0002270: e3530c01 cmp r3, #256 ; 0x100 <== NOT EXECUTED a0002274: 1a000007 bne a0002298 <== NOT EXECUTED == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; a0002278: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { a000227c: 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; a0002280: e3822004 orr r2, r2, #4 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { a0002284: e3530000 cmp r3, #0 <== NOT EXECUTED 1); } } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS ) ) { tty->flow_ctrl |= FL_IRTSOFF; a0002288: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* deactivate RTS line */ if (tty->device.stopRemoteTx != NULL) { a000228c: 0a000001 beq a0002298 <== NOT EXECUTED tty->device.stopRemoteTx(tty->minor); a0002290: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0002294: e12fff33 blx r3 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0002298: e59d3000 ldr r3, [sp] <== NOT EXECUTED a000229c: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { a00022a0: e594305c ldr r3, [r4, #92] ; 0x5c <== NOT EXECUTED a00022a4: e1570003 cmp r7, r3 <== NOT EXECUTED dropped++; a00022a8: 02855001 addeq r5, r5, #1 <== NOT EXECUTED } } /* reenable interrupts */ rtems_interrupt_enable(level); if (newTail == tty->rawInBuf.Head) { a00022ac: 0a00000d beq a00022e8 <== NOT EXECUTED dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; a00022b0: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED a00022b4: 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 )) { a00022b8: e59430e4 ldr r3, [r4, #228] ; 0xe4 <== NOT EXECUTED if (newTail == tty->rawInBuf.Head) { dropped++; } else { tty->rawInBuf.theBuf[newTail] = c; tty->rawInBuf.Tail = newTail; a00022bc: 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 )) { a00022c0: e3530000 cmp r3, #0 <== NOT EXECUTED a00022c4: 1a000007 bne a00022e8 <== NOT EXECUTED a00022c8: e59430dc ldr r3, [r4, #220] ; 0xdc <== NOT EXECUTED a00022cc: e3530000 cmp r3, #0 <== NOT EXECUTED a00022d0: 0a000004 beq a00022e8 <== NOT EXECUTED (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); a00022d4: e59d0004 ldr r0, [sp, #4] <== NOT EXECUTED a00022d8: e59410e0 ldr r1, [r4, #224] ; 0xe0 <== NOT EXECUTED a00022dc: e12fff33 blx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 1; a00022e0: e3a02001 mov r2, #1 <== NOT EXECUTED a00022e4: e58420e4 str r2, [r4, #228] ; 0xe4 <== NOT EXECUTED a00022e8: e2866001 add r6, r6, #1 <== NOT EXECUTED a00022ec: e2488001 sub r8, r8, #1 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } return 0; } while (len--) { a00022f0: e3580000 cmp r8, #0 <== NOT EXECUTED a00022f4: 1affff83 bne a0002108 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; a00022f8: e5943078 ldr r3, [r4, #120] ; 0x78 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); a00022fc: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED tty->tty_rcvwakeup = 1; } } } } tty->rawInBufDropped += dropped; a0002300: e0833005 add r3, r3, r5 <== NOT EXECUTED a0002304: e5843078 str r3, [r4, #120] ; 0x78 <== NOT EXECUTED rtems_semaphore_release (tty->rawInBuf.Semaphore); a0002308: eb0007e5 bl a00042a4 <== NOT EXECUTED return dropped; a000230c: ea000000 b a0002314 <== NOT EXECUTED a0002310: e3a05000 mov r5, #0 <== NOT EXECUTED } a0002314: e1a00005 mov r0, r5 <== NOT EXECUTED a0002318: e8bd8ffe pop {r1, r2, r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED a000231c: a00199c0 .word 0xa00199c0 a0002320: 00000402 .word 0x00000402 a0001dac : rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { a0001dac: e59fc030 ldr ip, [pc, #48] ; a0001de4 struct rtems_termios_tty *rtems_termios_ttyTail; rtems_id rtems_termios_ttyMutex; void rtems_termios_initialize (void) { a0001db0: e92d4001 push {r0, lr} rtems_status_code sc; /* * Create the mutex semaphore for the tty list */ if (!rtems_termios_ttyMutex) { a0001db4: e59c3000 ldr r3, [ip] a0001db8: e3530000 cmp r3, #0 a0001dbc: 1a000007 bne a0001de0 sc = rtems_semaphore_create ( a0001dc0: e59f0020 ldr r0, [pc, #32] ; a0001de8 a0001dc4: e3a01001 mov r1, #1 a0001dc8: e3a02054 mov r2, #84 ; 0x54 a0001dcc: e58dc000 str ip, [sp] a0001dd0: eb00085b bl a0003f44 rtems_build_name ('T', 'R', 'm', 'i'), 1, RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, RTEMS_NO_PRIORITY, &rtems_termios_ttyMutex); if (sc != RTEMS_SUCCESSFUL) a0001dd4: e3500000 cmp r0, #0 a0001dd8: 0a000000 beq a0001de0 rtems_fatal_error_occurred (sc); a0001ddc: eb000a7f bl a00047e0 <== NOT EXECUTED } } a0001de0: e8bd8008 pop {r3, pc} a0001de4: a0019b90 .word 0xa0019b90 a0001de8: 54526d69 .word 0x54526d69 a0002e64 : rtems_status_code rtems_termios_ioctl (void *arg) { rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a0002e64: e5903000 ldr r3, [r0] } } rtems_status_code rtems_termios_ioctl (void *arg) { a0002e68: e92d41f0 push {r4, r5, r6, r7, r8, lr} rtems_libio_ioctl_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a0002e6c: e5934034 ldr r4, [r3, #52] ; 0x34 struct ttywakeup *wakeup = (struct ttywakeup *)args->buffer; rtems_status_code sc; args->ioctl_return = 0; a0002e70: e3a01000 mov r1, #0 a0002e74: e580100c str r1, [r0, #12] } } rtems_status_code rtems_termios_ioctl (void *arg) { a0002e78: 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); a0002e7c: e1a02001 mov r2, r1 a0002e80: 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; a0002e84: e5957008 ldr r7, [r5, #8] rtems_status_code sc; args->ioctl_return = 0; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0002e88: eb0004bf bl a000418c if (sc != RTEMS_SUCCESSFUL) { a0002e8c: e2506000 subs r6, r0, #0 a0002e90: 1a0000d3 bne a00031e4 args->ioctl_return = sc; return sc; } switch (args->command) { a0002e94: e5953004 ldr r3, [r5, #4] a0002e98: e3530004 cmp r3, #4 a0002e9c: 0a0000a9 beq a0003148 a0002ea0: 8a000005 bhi a0002ebc a0002ea4: e3530002 cmp r3, #2 a0002ea8: 0a000028 beq a0002f50 a0002eac: 8a00009e bhi a000312c a0002eb0: e3530001 cmp r3, #1 a0002eb4: 1a000010 bne a0002efc a0002eb8: ea00001a b a0002f28 a0002ebc: e59f232c ldr r2, [pc, #812] ; a00031f0 <== NOT EXECUTED a0002ec0: e1530002 cmp r3, r2 <== NOT EXECUTED a0002ec4: 0a0000b9 beq a00031b0 <== NOT EXECUTED a0002ec8: 8a000002 bhi a0002ed8 <== NOT EXECUTED a0002ecc: e3530005 cmp r3, #5 <== NOT EXECUTED a0002ed0: 1a000009 bne a0002efc <== NOT EXECUTED a0002ed4: ea000097 b a0003138 <== NOT EXECUTED a0002ed8: e59f2314 ldr r2, [pc, #788] ; a00031f4 <== NOT EXECUTED a0002edc: 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; a0002ee0: 05953008 ldreq r3, [r5, #8] <== NOT EXECUTED a0002ee4: 059420cc ldreq r2, [r4, #204] ; 0xcc <== NOT EXECUTED a0002ee8: 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) { a0002eec: 0a0000ba beq a00031dc <== NOT EXECUTED a0002ef0: e2822105 add r2, r2, #1073741825 ; 0x40000001 <== NOT EXECUTED a0002ef4: e1530002 cmp r3, r2 <== NOT EXECUTED a0002ef8: 0a000096 beq a0003158 <== NOT EXECUTED default: if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) { a0002efc: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED a0002f00: e59f32f0 ldr r3, [pc, #752] ; a00031f8 <== NOT EXECUTED a0002f04: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED a0002f08: e5933018 ldr r3, [r3, #24] <== NOT EXECUTED a0002f0c: e3530000 cmp r3, #0 <== NOT EXECUTED a0002f10: 03a0600a moveq r6, #10 <== NOT EXECUTED a0002f14: 0a0000b0 beq a00031dc <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args); a0002f18: e1a00004 mov r0, r4 <== NOT EXECUTED a0002f1c: e1a01005 mov r1, r5 <== NOT EXECUTED a0002f20: e12fff33 blx r3 <== NOT EXECUTED a0002f24: ea00009f b a00031a8 <== NOT EXECUTED sc = RTEMS_INVALID_NUMBER; } break; case RTEMS_IO_GET_ATTRIBUTES: *(struct termios *)args->buffer = tty->termios; a0002f28: e5957008 ldr r7, [r5, #8] a0002f2c: e284c030 add ip, r4, #48 ; 0x30 a0002f30: e8bc000f ldm ip!, {r0, r1, r2, r3} a0002f34: e1a0e007 mov lr, r7 a0002f38: e8ae000f stmia lr!, {r0, r1, r2, r3} a0002f3c: e8bc000f ldm ip!, {r0, r1, r2, r3} a0002f40: e8ae000f stmia lr!, {r0, r1, r2, r3} a0002f44: e59c3000 ldr r3, [ip] a0002f48: e58e3000 str r3, [lr] break; a0002f4c: ea0000a2 b a00031dc case RTEMS_IO_SET_ATTRIBUTES: tty->termios = *(struct termios *)args->buffer; a0002f50: e595e008 ldr lr, [r5, #8] a0002f54: e284c030 add ip, r4, #48 ; 0x30 /* * check for flow control options to be switched off */ /* check for outgoing XON/XOFF flow control switched off */ if (( tty->flow_ctrl & FL_MDXON) && a0002f58: e59470b8 ldr r7, [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; a0002f5c: e8be000f ldm lr!, {r0, r1, r2, r3} a0002f60: e8ac000f stmia ip!, {r0, r1, r2, r3} a0002f64: e8be000f ldm lr!, {r0, r1, r2, r3} a0002f68: e8ac000f stmia ip!, {r0, r1, r2, r3} a0002f6c: 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) && a0002f70: e3170c02 tst r7, #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; a0002f74: 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) && a0002f78: 0a000019 beq a0002fe4 a0002f7c: e5943030 ldr r3, [r4, #48] ; 0x30 a0002f80: e3130b01 tst r3, #1024 ; 0x400 a0002f84: 1a000016 bne a0002fe4 !(tty->termios.c_iflag & IXON)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF); a0002f88: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002f8c: e3c33e21 bic r3, r3, #528 ; 0x210 <== NOT EXECUTED a0002f90: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* has output been stopped due to received XOFF? */ if (tty->flow_ctrl & FL_OSTOP) { a0002f94: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002f98: e3130020 tst r3, #32 <== NOT EXECUTED a0002f9c: 0a000010 beq a0002fe4 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0002fa0: e10f7000 mrs r7, CPSR <== NOT EXECUTED a0002fa4: e3873080 orr r3, r7, #128 ; 0x80 <== NOT EXECUTED a0002fa8: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED /* disable interrupts */ rtems_interrupt_disable(level); tty->flow_ctrl &= ~FL_OSTOP; a0002fac: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a0002fb0: 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; a0002fb4: e3c33020 bic r3, r3, #32 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a0002fb8: 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; a0002fbc: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* check for chars in output buffer (or rob_state?) */ if (tty->rawOutBufState != rob_idle) { a0002fc0: 0a000006 beq a0002fe0 <== NOT EXECUTED /* if chars available, call write function... */ (*tty->device.write)(tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); a0002fc4: 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, a0002fc8: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED a0002fcc: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0002fd0: e3a02001 mov r2, #1 <== NOT EXECUTED a0002fd4: e0811003 add r1, r1, r3 <== NOT EXECUTED a0002fd8: e1a0e00f mov lr, pc <== NOT EXECUTED a0002fdc: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0002fe0: 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) && a0002fe4: e59430b8 ldr r3, [r4, #184] ; 0xb8 a0002fe8: e3130b01 tst r3, #1024 ; 0x400 a0002fec: 0a000008 beq a0003014 a0002ff0: e5943030 ldr r3, [r4, #48] ; 0x30 <== NOT EXECUTED a0002ff4: e3130a01 tst r3, #4096 ; 0x1000 <== NOT EXECUTED a0002ff8: 1a000005 bne a0003014 <== NOT EXECUTED !(tty->termios.c_iflag & IXOFF)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDXOF); a0002ffc: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0003000: e3c33b01 bic r3, r3, #1024 ; 0x400 <== NOT EXECUTED a0003004: 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); a0003008: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a000300c: e3c33002 bic r3, r3, #2 <== NOT EXECUTED a0003010: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED } /* check for incoming RTS/CTS flow control switched off */ if (( tty->flow_ctrl & FL_MDRTS) && a0003014: e59430b8 ldr r3, [r4, #184] ; 0xb8 a0003018: e3130c01 tst r3, #256 ; 0x100 a000301c: 0a000010 beq a0003064 a0003020: e5943038 ldr r3, [r4, #56] ; 0x38 <== NOT EXECUTED a0003024: e3530000 cmp r3, #0 <== NOT EXECUTED a0003028: ba00000d blt a0003064 <== NOT EXECUTED !(tty->termios.c_cflag & CRTSCTS)) { /* clear related flags in flow_ctrl */ tty->flow_ctrl &= ~(FL_MDRTS); a000302c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0003030: e3c33c01 bic r3, r3, #256 ; 0x100 <== NOT EXECUTED a0003034: e58430b8 str r3, [r4, #184] ; 0xb8 <== NOT EXECUTED /* restart remote Tx, if it was stopped */ if ((tty->flow_ctrl & FL_IRTSOFF) && a0003038: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a000303c: e3130004 tst r3, #4 <== NOT EXECUTED a0003040: 0a000004 beq a0003058 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { a0003044: 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) && a0003048: e3530000 cmp r3, #0 <== NOT EXECUTED a000304c: 0a000001 beq a0003058 <== NOT EXECUTED (tty->device.startRemoteTx != NULL)) { tty->device.startRemoteTx(tty->minor); a0003050: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0003054: e12fff33 blx r3 <== NOT EXECUTED } tty->flow_ctrl &= ~(FL_IRTSOFF); a0003058: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a000305c: e3c33004 bic r3, r3, #4 <== NOT EXECUTED a0003060: 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) { a0003064: 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) { a0003068: 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) { a000306c: e3530000 cmp r3, #0 tty->flow_ctrl |= FL_MDRTS; a0003070: b59430b8 ldrlt r3, [r4, #184] ; 0xb8 a0003074: b3833c01 orrlt r3, r3, #256 ; 0x100 a0003078: b58430b8 strlt r3, [r4, #184] ; 0xb8 } /* check for incoming XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXOFF) { a000307c: e5943030 ldr r3, [r4, #48] ; 0x30 a0003080: e3130a01 tst r3, #4096 ; 0x1000 tty->flow_ctrl |= FL_MDXOF; a0003084: 159430b8 ldrne r3, [r4, #184] ; 0xb8 a0003088: 13833b01 orrne r3, r3, #1024 ; 0x400 a000308c: 158430b8 strne r3, [r4, #184] ; 0xb8 } /* check for outgoing XON/XOF flow control switched on */ if (tty->termios.c_iflag & IXON) { a0003090: e5943030 ldr r3, [r4, #48] ; 0x30 a0003094: e3130b01 tst r3, #1024 ; 0x400 tty->flow_ctrl |= FL_MDXON; a0003098: 159430b8 ldrne r3, [r4, #184] ; 0xb8 a000309c: 13833c02 orrne r3, r3, #512 ; 0x200 a00030a0: 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) { a00030a4: e2177002 ands r7, r7, #2 tty->rawInBufSemaphoreOptions = RTEMS_WAIT; a00030a8: 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) { a00030ac: 1a000014 bne a0003104 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; a00030b0: e5d48046 ldrb r8, [r4, #70] ; 0x46 <== NOT EXECUTED a00030b4: eb00029e bl a0003b34 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; } else { tty->vtimeTicks = tty->termios.c_cc[VTIME] * a00030b8: e3a0100a mov r1, #10 <== NOT EXECUTED a00030bc: e0000098 mul r0, r8, r0 <== NOT EXECUTED a00030c0: eb004bab bl a0015f74 <__aeabi_uidiv> <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { a00030c4: 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] * a00030c8: e5840054 str r0, [r4, #84] ; 0x54 <== NOT EXECUTED a00030cc: e5d42047 ldrb r2, [r4, #71] ; 0x47 <== NOT EXECUTED rtems_clock_get_ticks_per_second() / 10; if (tty->termios.c_cc[VTIME]) { a00030d0: e3530000 cmp r3, #0 <== NOT EXECUTED a00030d4: 0a000006 beq a00030f4 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; a00030d8: e3520000 cmp r2, #0 <== NOT EXECUTED a00030dc: 01a02000 moveq r2, r0 <== NOT EXECUTED a00030e0: 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; a00030e4: e584706c str r7, [r4, #108] ; 0x6c <== NOT EXECUTED tty->rawInBufSemaphoreTimeout = tty->vtimeTicks; if (tty->termios.c_cc[VMIN]) tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; a00030e8: 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; a00030ec: e5840070 str r0, [r4, #112] ; 0x70 <== NOT EXECUTED a00030f0: ea000006 b a0003110 <== NOT EXECUTED tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { a00030f4: 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; a00030f8: 03a03001 moveq r3, #1 <== NOT EXECUTED a00030fc: 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]) { a0003100: 0a000002 beq a0003110 <== NOT EXECUTED tty->rawInBufSemaphoreOptions = RTEMS_WAIT; tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT; a0003104: e5843074 str r3, [r4, #116] ; 0x74 else tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks; } else { if (tty->termios.c_cc[VMIN]) { tty->rawInBufSemaphoreOptions = RTEMS_WAIT; a0003108: e584306c str r3, [r4, #108] ; 0x6c tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT; a000310c: e5843070 str r3, [r4, #112] ; 0x70 else { tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT; } } } if (tty->device.setAttributes) a0003110: e59430a8 ldr r3, [r4, #168] ; 0xa8 a0003114: e3530000 cmp r3, #0 a0003118: 0a00002f beq a00031dc (*tty->device.setAttributes)(tty->minor, &tty->termios); a000311c: e5940010 ldr r0, [r4, #16] a0003120: e2841030 add r1, r4, #48 ; 0x30 a0003124: e12fff33 blx r3 a0003128: ea00002b b a00031dc break; case RTEMS_IO_TCDRAIN: drainOutput (tty); a000312c: e1a00004 mov r0, r4 a0003130: ebfffe5a bl a0002aa0 break; a0003134: ea000028 b a00031dc case RTEMS_IO_SNDWAKEUP: tty->tty_snd = *wakeup; a0003138: e897000c ldm r7, {r2, r3} <== NOT EXECUTED a000313c: e58420d4 str r2, [r4, #212] ; 0xd4 <== NOT EXECUTED a0003140: e58430d8 str r3, [r4, #216] ; 0xd8 <== NOT EXECUTED break; a0003144: ea000024 b a00031dc <== NOT EXECUTED case RTEMS_IO_RCVWAKEUP: tty->tty_rcv = *wakeup; a0003148: e897000c ldm r7, {r2, r3} <== NOT EXECUTED a000314c: e58420dc str r2, [r4, #220] ; 0xdc <== NOT EXECUTED a0003150: e58430e0 str r3, [r4, #224] ; 0xe0 <== NOT EXECUTED break; a0003154: ea000020 b a00031dc <== NOT EXECUTED #if 1 /* FIXME */ case TIOCSETD: /* * close old line discipline */ if (rtems_termios_linesw[tty->t_line].l_close != NULL) { a0003158: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED a000315c: e59f3094 ldr r3, [pc, #148] ; a00031f8 <== NOT EXECUTED a0003160: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED a0003164: e5933004 ldr r3, [r3, #4] <== NOT EXECUTED a0003168: e3530000 cmp r3, #0 <== NOT EXECUTED a000316c: 0a000002 beq a000317c <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_close(tty); a0003170: e1a00004 mov r0, r4 <== NOT EXECUTED a0003174: e12fff33 blx r3 <== NOT EXECUTED a0003178: e1a06000 mov r6, r0 <== NOT EXECUTED } tty->t_line=*(int*)(args->buffer); a000317c: e5953008 ldr r3, [r5, #8] <== NOT EXECUTED a0003180: e5932000 ldr r2, [r3] <== NOT EXECUTED tty->t_sc = NULL; /* ensure that no more valid data */ a0003184: e3a03000 mov r3, #0 <== NOT EXECUTED a0003188: e58430d0 str r3, [r4, #208] ; 0xd0 <== NOT EXECUTED /* * open new line discipline */ if (rtems_termios_linesw[tty->t_line].l_open != NULL) { a000318c: e59f3064 ldr r3, [pc, #100] ; a00031f8 <== 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); a0003190: 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) { a0003194: e7933282 ldr r3, [r3, r2, lsl #5] <== NOT EXECUTED a0003198: e3530000 cmp r3, #0 <== NOT EXECUTED a000319c: 0a00000e beq a00031dc <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_open(tty); a00031a0: e1a00004 mov r0, r4 <== NOT EXECUTED a00031a4: e12fff33 blx r3 <== NOT EXECUTED a00031a8: e1a06000 mov r6, r0 <== NOT EXECUTED a00031ac: ea00000a b a00031dc <== NOT EXECUTED *(int*)(args->buffer)=tty->t_line; break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; a00031b0: e5942060 ldr r2, [r4, #96] ; 0x60 <== NOT EXECUTED a00031b4: 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; a00031b8: e5940020 ldr r0, [r4, #32] <== NOT EXECUTED a00031bc: e5941024 ldr r1, [r4, #36] ; 0x24 <== NOT EXECUTED break; #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) a00031c0: e0523003 subs r3, r2, r3 <== NOT EXECUTED rawnc += tty->rawInBuf.Size; a00031c4: 45942064 ldrmi r2, [r4, #100] ; 0x64 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; a00031c8: e0611000 rsb r1, r1, r0 <== NOT EXECUTED #endif case FIONREAD: { int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head; if ( rawnc < 0 ) rawnc += tty->rawInBuf.Size; a00031cc: 40833002 addmi r3, r3, r2 <== NOT EXECUTED /* Half guess that this is the right operation */ *(int *)args->buffer = tty->ccount - tty->cindex + rawnc; a00031d0: e5952008 ldr r2, [r5, #8] <== NOT EXECUTED a00031d4: e0813003 add r3, r1, r3 <== NOT EXECUTED a00031d8: e5823000 str r3, [r2] <== NOT EXECUTED } break; } rtems_semaphore_release (tty->osem); a00031dc: e5940018 ldr r0, [r4, #24] a00031e0: eb00042f bl a00042a4 args->ioctl_return = sc; a00031e4: e585600c str r6, [r5, #12] return sc; } a00031e8: e1a00006 mov r0, r6 a00031ec: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} a00031f0: 4004667f .word 0x4004667f a00031f4: 4004741a .word 0x4004741a a00031f8: a00199c0 .word 0xa00199c0 a0003390 : rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { a0003390: e92d4ff7 push {r0, r1, r2, r4, r5, r6, r7, r8, r9, sl, fp, lr} a0003394: e1a08002 mov r8, r2 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, a0003398: e59f23d4 ldr r2, [pc, #980] ; a0003774 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { a000339c: e1a0a001 mov sl, r1 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, a00033a0: e3a01000 mov r1, #0 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { a00033a4: e1a0b000 mov fp, r0 struct rtems_termios_tty *tty; /* * See if the device has already been opened */ sc = rtems_semaphore_obtain (rtems_termios_ttyMutex, a00033a8: e5920000 ldr r0, [r2] a00033ac: e1a02001 mov r2, r1 rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) { a00033b0: 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, a00033b4: eb000374 bl a000418c RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) a00033b8: e2506000 subs r6, r0, #0 return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { a00033bc: 059f33b4 ldreq r3, [pc, #948] ; a0003778 a00033c0: 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) a00033c4: 0a000007 beq a00033e8 a00033c8: ea0000df b a000374c <== NOT EXECUTED return sc; for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { if ((tty->major == major) && (tty->minor == minor)) a00033cc: e595300c ldr r3, [r5, #12] a00033d0: e153000b cmp r3, fp a00033d4: 1a000002 bne a00033e4 a00033d8: e5953010 ldr r3, [r5, #16] a00033dc: e153000a cmp r3, sl a00033e0: 0a0000b8 beq a00036c8 */ 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) { a00033e4: e5955000 ldr r5, [r5] a00033e8: e3550000 cmp r5, #0 a00033ec: 1afffff6 bne a00033cc a00033f0: ea0000d7 b a0003754 return RTEMS_NO_MEMORY; } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; a00033f4: e59f7380 ldr r7, [pc, #896] ; a000377c a00033f8: e5973004 ldr r3, [r7, #4] a00033fc: e5853064 str r3, [r5, #100] ; 0x64 tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); a0003400: e5950064 ldr r0, [r5, #100] ; 0x64 a0003404: eb00160f bl a0008c48 if (tty->rawInBuf.theBuf == NULL) { a0003408: e3500000 cmp r0, #0 } /* * allocate raw input buffer */ tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE; tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size); a000340c: e5850058 str r0, [r5, #88] ; 0x58 if (tty->rawInBuf.theBuf == NULL) { a0003410: 0a00000f beq a0003454 return RTEMS_NO_MEMORY; } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; a0003414: e5973008 ldr r3, [r7, #8] a0003418: e5853088 str r3, [r5, #136] ; 0x88 tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); a000341c: e5950088 ldr r0, [r5, #136] ; 0x88 a0003420: eb001608 bl a0008c48 if (tty->rawOutBuf.theBuf == NULL) { a0003424: e3500000 cmp r0, #0 } /* * allocate raw output buffer */ tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE; tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size); a0003428: e585007c str r0, [r5, #124] ; 0x7c if (tty->rawOutBuf.theBuf == NULL) { a000342c: 0a000006 beq a000344c return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); a0003430: e5970000 ldr r0, [r7] a0003434: eb001603 bl a0008c48 if (tty->cbuf == NULL) { a0003438: e3500000 cmp r0, #0 return RTEMS_NO_MEMORY; } /* * allocate cooked buffer */ tty->cbuf = malloc (CBUFSIZE); a000343c: e585001c str r0, [r5, #28] if (tty->cbuf == NULL) { a0003440: 1a000007 bne a0003464 free((void *)(tty->rawOutBuf.theBuf)); a0003444: e595007c ldr r0, [r5, #124] ; 0x7c <== NOT EXECUTED a0003448: eb0014b3 bl a000871c <== NOT EXECUTED free((void *)(tty->rawInBuf.theBuf)); a000344c: e5950058 ldr r0, [r5, #88] ; 0x58 <== NOT EXECUTED a0003450: eb0014b1 bl a000871c <== NOT EXECUTED free(tty); a0003454: e1a00005 mov r0, r5 <== NOT EXECUTED a0003458: eb0014af bl a000871c <== NOT EXECUTED rtems_semaphore_release (rtems_termios_ttyMutex); a000345c: e3a0601a mov r6, #26 <== NOT EXECUTED a0003460: ea0000b6 b a0003740 <== NOT EXECUTED tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; a0003464: e59f230c ldr r2, [pc, #780] ; a0003778 return RTEMS_NO_MEMORY; } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; a0003468: e3a03000 mov r3, #0 a000346c: e58530d4 str r3, [r5, #212] ; 0xd4 tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; a0003470: e5922000 ldr r2, [r2] } /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; tty->tty_snd.sw_arg = NULL; a0003474: e58530d8 str r3, [r5, #216] ; 0xd8 /* * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; a0003478: e5853004 str r3, [r5, #4] if (rtems_termios_ttyHead != NULL) a000347c: e1520003 cmp r2, r3 /* * Initialize wakeup callbacks */ tty->tty_snd.sw_pfn = NULL; tty->tty_snd.sw_arg = NULL; tty->tty_rcv.sw_pfn = NULL; a0003480: e58530dc str r3, [r5, #220] ; 0xdc tty->tty_rcv.sw_arg = NULL; a0003484: e58530e0 str r3, [r5, #224] ; 0xe0 tty->tty_rcvwakeup = 0; a0003488: 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) a000348c: e59f32ec ldr r3, [pc, #748] ; a0003780 * link tty */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; a0003490: 15825004 strne r5, [r2, #4] tty->tty_rcvwakeup = 0; /* * link tty */ tty->forw = rtems_termios_ttyHead; a0003494: 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) a0003498: e5932000 ldr r2, [r3] tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( a000349c: e59f72d8 ldr r7, [pc, #728] ; a000377c rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; a00034a0: e584a010 str sl, [r4, #16] 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) a00034a4: e3520000 cmp r2, #0 rtems_termios_ttyTail = tty; a00034a8: 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; a00034ac: e59f12c4 ldr r1, [pc, #708] ; a0003778 tty->major = major; /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( a00034b0: e5d7300c ldrb r3, [r7, #12] a00034b4: e59f02c8 ldr r0, [pc, #712] ; a0003784 */ tty->forw = rtems_termios_ttyHead; tty->back = NULL; if (rtems_termios_ttyHead != NULL) rtems_termios_ttyHead->back = tty; rtems_termios_ttyHead = tty; a00034b8: e5814000 str r4, [r1] if (rtems_termios_ttyTail == NULL) rtems_termios_ttyTail = tty; tty->minor = minor; tty->major = major; a00034bc: e584b00c str fp, [r4, #12] /* * Set up mutex semaphores */ sc = rtems_semaphore_create ( a00034c0: e284c014 add ip, r4, #20 a00034c4: e1830000 orr r0, r3, r0 a00034c8: e3a01001 mov r1, #1 a00034cc: e3a03000 mov r3, #0 a00034d0: e3a02054 mov r2, #84 ; 0x54 a00034d4: e58dc000 str ip, [sp] a00034d8: eb000299 bl a0003f44 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) a00034dc: e2503000 subs r3, r0, #0 a00034e0: 1a000095 bne a000373c rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( a00034e4: e5d7200c ldrb r2, [r7, #12] a00034e8: e59f0298 ldr r0, [pc, #664] ; a0003788 a00034ec: e284c018 add ip, r4, #24 a00034f0: e3a01001 mov r1, #1 a00034f4: e1820000 orr r0, r2, r0 a00034f8: e3a02054 mov r2, #84 ; 0x54 a00034fc: e58dc000 str ip, [sp] a0003500: eb00028f bl a0003f44 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) a0003504: e2501000 subs r1, r0, #0 a0003508: 1a00008b bne a000373c rtems_fatal_error_occurred (sc); sc = rtems_semaphore_create ( a000350c: e5d7300c ldrb r3, [r7, #12] a0003510: e59f0274 ldr r0, [pc, #628] ; a000378c a0003514: e284c08c add ip, r4, #140 ; 0x8c a0003518: e3a02020 mov r2, #32 a000351c: e1830000 orr r0, r3, r0 a0003520: e1a03001 mov r3, r1 a0003524: e58dc000 str ip, [sp] a0003528: eb000285 bl a0003f44 rtems_build_name ('T', 'R', 'x', c), 0, RTEMS_SIMPLE_BINARY_SEMAPHORE | RTEMS_FIFO, RTEMS_NO_PRIORITY, &tty->rawOutBuf.Semaphore); if (sc != RTEMS_SUCCESSFUL) a000352c: e2509000 subs r9, r0, #0 a0003530: 1a000081 bne a000373c tty->rawOutBufState = rob_idle; /* * Set callbacks */ tty->device = *callbacks; a0003534: e59de008 ldr lr, [sp, #8] a0003538: e284c098 add ip, r4, #152 ; 0x98 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; a000353c: e5849094 str r9, [r4, #148] ; 0x94 /* * Set callbacks */ tty->device = *callbacks; a0003540: e8be000f ldm lr!, {r0, r1, r2, r3} a0003544: e8ac000f stmia ip!, {r0, r1, r2, r3} a0003548: e89e000f ldm lr, {r0, r1, r2, r3} a000354c: e88c000f stm ip, {r0, r1, r2, r3} /* * Create I/O tasks */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a0003550: e59430b4 ldr r3, [r4, #180] ; 0xb4 a0003554: e3530002 cmp r3, #2 a0003558: 1a000016 bne a00035b8 sc = rtems_task_create ( a000355c: e5d7300c ldrb r3, [r7, #12] <== NOT EXECUTED a0003560: e59f0228 ldr r0, [pc, #552] ; a0003790 <== NOT EXECUTED a0003564: e284c0c8 add ip, r4, #200 ; 0xc8 <== NOT EXECUTED a0003568: e3a0100a mov r1, #10 <== NOT EXECUTED a000356c: e1830000 orr r0, r3, r0 <== NOT EXECUTED a0003570: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED a0003574: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED a0003578: e88d1200 stm sp, {r9, ip} <== NOT EXECUTED a000357c: eb00036f bl a0004340 <== 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) a0003580: e250e000 subs lr, r0, #0 <== NOT EXECUTED a0003584: 1a00006c bne a000373c <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_create ( a0003588: e5d7300c ldrb r3, [r7, #12] <== NOT EXECUTED a000358c: e59f0200 ldr r0, [pc, #512] ; a0003794 <== NOT EXECUTED a0003590: e284c0c4 add ip, r4, #196 ; 0xc4 <== NOT EXECUTED a0003594: e3a01009 mov r1, #9 <== NOT EXECUTED a0003598: e1830000 orr r0, r3, r0 <== NOT EXECUTED a000359c: e3a02b01 mov r2, #1024 ; 0x400 <== NOT EXECUTED a00035a0: e3a03c05 mov r3, #1280 ; 0x500 <== NOT EXECUTED a00035a4: e58de000 str lr, [sp] <== NOT EXECUTED a00035a8: e58dc004 str ip, [sp, #4] <== NOT EXECUTED a00035ac: eb000363 bl a0004340 <== 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) a00035b0: e3500000 cmp r0, #0 <== NOT EXECUTED a00035b4: 1a000060 bne a000373c <== NOT EXECUTED rtems_fatal_error_occurred (sc); } if ((tty->device.pollRead == NULL) || a00035b8: e59430a0 ldr r3, [r4, #160] ; 0xa0 a00035bc: e3530000 cmp r3, #0 a00035c0: 0a000002 beq a00035d0 (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){ a00035c4: e59430b4 ldr r3, [r4, #180] ; 0xb4 a00035c8: e3530002 cmp r3, #2 a00035cc: 1a00000b bne a0003600 sc = rtems_semaphore_create ( a00035d0: e59f31a4 ldr r3, [pc, #420] ; a000377c <== NOT EXECUTED a00035d4: e59f01bc ldr r0, [pc, #444] ; a0003798 <== NOT EXECUTED a00035d8: e3a01000 mov r1, #0 <== NOT EXECUTED a00035dc: e5d3300c ldrb r3, [r3, #12] <== NOT EXECUTED a00035e0: e284c068 add ip, r4, #104 ; 0x68 <== NOT EXECUTED a00035e4: e3a02024 mov r2, #36 ; 0x24 <== NOT EXECUTED a00035e8: e1830000 orr r0, r3, r0 <== NOT EXECUTED a00035ec: e1a03001 mov r3, r1 <== NOT EXECUTED a00035f0: e58dc000 str ip, [sp] <== NOT EXECUTED a00035f4: eb000252 bl a0003f44 <== 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) a00035f8: e3500000 cmp r0, #0 <== NOT EXECUTED a00035fc: 1a00004e bne a000373c <== 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'; a0003600: e3a0001c mov r0, #28 a0003604: e5c40042 strb r0, [r4, #66] ; 0x42 tty->termios.c_cc[VERASE] = '\177'; a0003608: e2800063 add r0, r0, #99 ; 0x63 a000360c: e5c40043 strb r0, [r4, #67] ; 0x43 tty->termios.c_cc[VKILL] = '\025'; a0003610: e3a00015 mov r0, #21 a0003614: e5c40044 strb r0, [r4, #68] ; 0x44 tty->termios.c_cc[VEOF] = '\004'; a0003618: e3a00004 mov r0, #4 a000361c: e5c40045 strb r0, [r4, #69] ; 0x45 tty->termios.c_cc[VEOL] = '\000'; tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; a0003620: e280000d add r0, r0, #13 a0003624: e5c40049 strb r0, [r4, #73] ; 0x49 tty->termios.c_cc[VSTOP] = '\023'; a0003628: e2800002 add r0, r0, #2 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'; a000362c: e3a02000 mov r2, #0 tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; a0003630: e5c4004a strb r0, [r4, #74] ; 0x4a tty->termios.c_cc[VSUSP] = '\032'; a0003634: e2800007 add r0, r0, #7 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; a0003638: e58420b8 str r2, [r4, #184] ; 0xb8 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'; a000363c: e5c4004b strb r0, [r4, #75] ; 0x4b tty->termios.c_cc[VREPRINT] = '\022'; a0003640: e3a00012 mov r0, #18 /* 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; a0003644: e594c064 ldr ip, [r4, #100] ; 0x64 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'; a0003648: e5c4004d strb r0, [r4, #77] ; 0x4d 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; a000364c: e594e064 ldr lr, [r4, #100] ; 0x64 tty->termios.c_cc[VEOL2] = '\000'; tty->termios.c_cc[VSTART] = '\021'; tty->termios.c_cc[VSTOP] = '\023'; tty->termios.c_cc[VSUSP] = '\032'; tty->termios.c_cc[VREPRINT] = '\022'; tty->termios.c_cc[VDISCARD] = '\017'; a0003650: e3a0000f mov r0, #15 a0003654: e5c4004e strb r0, [r4, #78] ; 0x4e tty->termios.c_cc[VWERASE] = '\027'; a0003658: e2800008 add r0, r0, #8 a000365c: e5c4004f strb r0, [r4, #79] ; 0x4f 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'; a0003660: e3a01003 mov r1, #3 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'; a0003664: e3a00016 mov r0, #22 a0003668: e5c40050 strb r0, [r4, #80] ; 0x50 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; a000366c: e0000e91 mul r0, r1, lr /* * Bump name characer */ if (c++ == 'z') a0003670: e59f3104 ldr r3, [pc, #260] ; a000377c 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'; a0003674: e5c41041 strb r1, [r4, #65] ; 0x41 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'; a0003678: e5c4204c strb r2, [r4, #76] ; 0x4c tty->termios.c_cc[VEOL2] = '\000'; a000367c: 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; a0003680: e1a00120 lsr r0, r0, #2 /* * Bump name characer */ if (c++ == 'z') a0003684: 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; a0003688: e58400c0 str r0, [r4, #192] ; 0xc0 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; a000368c: e59f0108 ldr r0, [pc, #264] ; a000379c tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') a0003690: e352007a cmp r2, #122 ; 0x7a /* 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; a0003694: e1a010ac lsr r1, ip, #1 } /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; a0003698: e5840030 str r0, [r4, #48] ; 0x30 tty->termios.c_oflag = OPOST | ONLCR | XTABS; a000369c: e59f00fc ldr r0, [pc, #252] ; a00037a0 tty->lowwater = tty->rawInBuf.Size * 1/2; tty->highwater = tty->rawInBuf.Size * 3/4; /* * Bump name characer */ if (c++ == 'z') a00036a0: e2822001 add r2, r2, #1 /* 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; a00036a4: e58410bc str r1, [r4, #188] ; 0xbc /* * Set default parameters */ tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL; tty->termios.c_oflag = OPOST | ONLCR | XTABS; a00036a8: e5840034 str r0, [r4, #52] ; 0x34 tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL; a00036ac: e59f00f0 ldr r0, [pc, #240] ; a00037a4 a00036b0: e5840038 str r0, [r4, #56] ; 0x38 tty->termios.c_lflag = ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL; a00036b4: e59f00ec ldr r0, [pc, #236] ; a00037a8 a00036b8: 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') a00036bc: e5c3200c strb r2, [r3, #12] c = 'a'; a00036c0: 03a02061 moveq r2, #97 ; 0x61 a00036c4: 05c3200c strbeq r2, [r3, #12] } args->iop->data1 = tty; if (!tty->refcount++) { a00036c8: e5953008 ldr r3, [r5, #8] */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; a00036cc: e5982000 ldr r2, [r8] if (!tty->refcount++) { a00036d0: e3530000 cmp r3, #0 a00036d4: e2833001 add r3, r3, #1 */ if (c++ == 'z') c = 'a'; } args->iop->data1 = tty; a00036d8: e5825034 str r5, [r2, #52] ; 0x34 if (!tty->refcount++) { a00036dc: e5853008 str r3, [r5, #8] a00036e0: 1a000016 bne a0003740 if (tty->device.firstOpen) a00036e4: e5953098 ldr r3, [r5, #152] ; 0x98 a00036e8: e3530000 cmp r3, #0 a00036ec: 0a000003 beq a0003700 (*tty->device.firstOpen)(major, minor, arg); a00036f0: e1a0000b mov r0, fp a00036f4: e1a0100a mov r1, sl a00036f8: e1a02008 mov r2, r8 a00036fc: e12fff33 blx r3 /* * start I/O tasks, if needed */ if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) { a0003700: e59530b4 ldr r3, [r5, #180] ; 0xb4 a0003704: e3530002 cmp r3, #2 a0003708: 1a00000c bne a0003740 sc = rtems_task_start(tty->rxTaskId, a000370c: e59500c4 ldr r0, [r5, #196] ; 0xc4 <== NOT EXECUTED a0003710: e59f1094 ldr r1, [pc, #148] ; a00037ac <== NOT EXECUTED a0003714: e1a02005 mov r2, r5 <== NOT EXECUTED a0003718: eb0003ad bl a00045d4 <== NOT EXECUTED rtems_termios_rxdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) a000371c: e3500000 cmp r0, #0 <== NOT EXECUTED a0003720: 1a000005 bne a000373c <== NOT EXECUTED rtems_fatal_error_occurred (sc); sc = rtems_task_start(tty->txTaskId, a0003724: e1a02005 mov r2, r5 <== NOT EXECUTED a0003728: e59500c8 ldr r0, [r5, #200] ; 0xc8 <== NOT EXECUTED a000372c: e59f107c ldr r1, [pc, #124] ; a00037b0 <== NOT EXECUTED a0003730: eb0003a7 bl a00045d4 <== NOT EXECUTED rtems_termios_txdaemon, (rtems_task_argument)tty); if (sc != RTEMS_SUCCESSFUL) a0003734: e3500000 cmp r0, #0 <== NOT EXECUTED a0003738: 0a000000 beq a0003740 <== NOT EXECUTED rtems_fatal_error_occurred (sc); a000373c: eb000427 bl a00047e0 <== NOT EXECUTED } } rtems_semaphore_release (rtems_termios_ttyMutex); a0003740: e59f302c ldr r3, [pc, #44] ; a0003774 a0003744: e5930000 ldr r0, [r3] a0003748: eb0002d5 bl a00042a4 return RTEMS_SUCCESSFUL; } a000374c: e1a00006 mov r0, r6 a0003750: 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)); a0003754: e3a00001 mov r0, #1 a0003758: e3a010e8 mov r1, #232 ; 0xe8 a000375c: eb0013b2 bl a000862c if (tty == NULL) { a0003760: e3500000 cmp r0, #0 static char c = 'a'; /* * Create a new device */ tty = calloc (1, sizeof (struct rtems_termios_tty)); a0003764: e1a05000 mov r5, r0 a0003768: e1a04000 mov r4, r0 if (tty == NULL) { a000376c: 1affff20 bne a00033f4 a0003770: eaffff39 b a000345c <== NOT EXECUTED a0003774: a0019b90 .word 0xa0019b90 a0003778: a0019b98 .word 0xa0019b98 a000377c: a0018404 .word 0xa0018404 a0003780: a0019b94 .word 0xa0019b94 a0003784: 54526900 .word 0x54526900 a0003788: 54526f00 .word 0x54526f00 a000378c: 54527800 .word 0x54527800 a0003790: 54785400 .word 0x54785400 a0003794: 52785400 .word 0x52785400 a0003798: 54527200 .word 0x54527200 a000379c: 00002502 .word 0x00002502 a00037a0: 00001805 .word 0x00001805 a00037a4: 000008bd .word 0x000008bd a00037a8: 0000823b .word 0x0000823b a00037ac: a0003820 .word 0xa0003820 a00037b0: a00037b4 .word 0xa00037b4 a0002324 : const unsigned char *buf = _buf; unsigned int newHead; rtems_interrupt_level level; rtems_status_code sc; if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) { a0002324: 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) { a0002328: 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) { a000232c: e3530000 cmp r3, #0 * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, int len, struct rtems_termios_tty *tty) { a0002330: e1a04002 mov r4, r2 a0002334: e1a0a000 mov sl, r0 a0002338: 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) { a000233c: 1a000005 bne a0002358 (*tty->device.write)(tty->minor, (void *)buf, len); a0002340: e1a01000 mov r1, r0 a0002344: e1a02006 mov r2, r6 a0002348: e5940010 ldr r0, [r4, #16] a000234c: e1a0e00f mov lr, pc a0002350: e594f0a4 ldr pc, [r4, #164] ; 0xa4 return; a0002354: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} } newHead = tty->rawOutBuf.Head; a0002358: e5925080 ldr r5, [r2, #128] ; 0x80 <== NOT EXECUTED a000235c: 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; a0002360: 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; a0002364: 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) { a0002368: ea00002f b a000242c <== NOT EXECUTED * len -= ncopy * * To minimize latency, the memcpy should be done * with interrupts enabled. */ newHead = (newHead + 1) % tty->rawOutBuf.Size; a000236c: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED a0002370: e2850001 add r0, r5, #1 <== NOT EXECUTED a0002374: eb004f92 bl a00161c4 <__umodsi3> <== NOT EXECUTED a0002378: e1a05000 mov r5, r0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a000237c: e10f8000 mrs r8, CPSR <== NOT EXECUTED a0002380: e3883080 orr r3, r8, #128 ; 0x80 <== NOT EXECUTED a0002384: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_disable (level); while (newHead == tty->rawOutBuf.Tail) { a0002388: ea00000b b a00023bc <== NOT EXECUTED tty->rawOutBufState = rob_wait; a000238c: e5849094 str r9, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0002390: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED rtems_interrupt_enable (level); sc = rtems_semaphore_obtain (tty->rawOutBuf.Semaphore, a0002394: e3a01000 mov r1, #0 <== NOT EXECUTED a0002398: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED a000239c: e1a02001 mov r2, r1 <== NOT EXECUTED a00023a0: eb000779 bl a000418c <== NOT EXECUTED RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) a00023a4: e3500000 cmp r0, #0 <== NOT EXECUTED a00023a8: 0a000000 beq a00023b0 <== NOT EXECUTED rtems_fatal_error_occurred (sc); a00023ac: eb00090b bl a00047e0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a00023b0: e10f8000 mrs r8, CPSR <== NOT EXECUTED a00023b4: e3883080 orr r3, r8, #128 ; 0x80 <== NOT EXECUTED a00023b8: 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) { a00023bc: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED a00023c0: e1550003 cmp r5, r3 <== NOT EXECUTED a00023c4: 0afffff0 beq a000238c <== 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++; a00023c8: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED a00023cc: e7da1007 ldrb r1, [sl, r7] <== NOT EXECUTED a00023d0: e594207c ldr r2, [r4, #124] ; 0x7c <== NOT EXECUTED a00023d4: e7c21003 strb r1, [r2, r3] <== NOT EXECUTED tty->rawOutBuf.Head = newHead; if (tty->rawOutBufState == rob_idle) { a00023d8: 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; a00023dc: e5845080 str r5, [r4, #128] ; 0x80 <== NOT EXECUTED if (tty->rawOutBufState == rob_idle) { a00023e0: e3530000 cmp r3, #0 <== NOT EXECUTED a00023e4: 1a00000d bne a0002420 <== NOT EXECUTED /* check, whether XOFF has been received */ if (!(tty->flow_ctrl & FL_ORCVXOF)) { a00023e8: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00023ec: 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; a00023f0: 159430b8 ldrne r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a00023f4: 13833020 orrne r3, r3, #32 <== NOT EXECUTED a00023f8: 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)) { a00023fc: 1a000006 bne a000241c <== NOT EXECUTED (*tty->device.write)(tty->minor, (char *)&tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); a0002400: 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, a0002404: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED a0002408: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a000240c: e3a02001 mov r2, #1 <== NOT EXECUTED a0002410: e0811003 add r1, r1, r3 <== NOT EXECUTED a0002414: e1a0e00f mov lr, pc <== NOT EXECUTED a0002418: 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; a000241c: e584b094 str fp, [r4, #148] ; 0x94 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0002420: e129f008 msr CPSR_fc, r8 <== NOT EXECUTED } rtems_interrupt_enable (level); len--; a0002424: e2466001 sub r6, r6, #1 <== NOT EXECUTED a0002428: 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) { a000242c: e3560000 cmp r6, #0 <== NOT EXECUTED a0002430: 1affffcd bne a000236c <== NOT EXECUTED a0002434: e8bd8ff0 pop {r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED a0002b10 : rtems_status_code rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a0002b10: e5903000 ldr r3, [r0] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { a0002b14: 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; a0002b18: e5934034 ldr r4, [r3, #52] ; 0x34 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; a0002b1c: e590300c ldr r3, [r0, #12] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0002b20: e3a01000 mov r1, #0 <== NOT EXECUTED rtems_status_code rtems_termios_read (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; a0002b24: e5907010 ldr r7, [r0, #16] <== NOT EXECUTED return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) { a0002b28: e1a05000 mov r5, r0 <== NOT EXECUTED struct rtems_termios_tty *tty = args->iop->data1; uint32_t count = args->count; char *buffer = args->buffer; rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0002b2c: e1a02001 mov r2, r1 <== NOT EXECUTED a0002b30: e5940014 ldr r0, [r4, #20] <== 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; a0002b34: e58d3000 str r3, [sp] <== NOT EXECUTED rtems_status_code sc; sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a0002b38: eb000593 bl a000418c <== NOT EXECUTED if (sc != RTEMS_SUCCESSFUL) a0002b3c: e2506000 subs r6, r0, #0 <== NOT EXECUTED a0002b40: 1a0000c2 bne a0002e50 <== NOT EXECUTED return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { a0002b44: e59420cc ldr r2, [r4, #204] ; 0xcc <== NOT EXECUTED a0002b48: e59f3308 ldr r3, [pc, #776] ; a0002e58 <== NOT EXECUTED a0002b4c: e0833282 add r3, r3, r2, lsl #5 <== NOT EXECUTED a0002b50: e5933008 ldr r3, [r3, #8] <== NOT EXECUTED a0002b54: e3530000 cmp r3, #0 <== NOT EXECUTED a0002b58: 0a000006 beq a0002b78 <== NOT EXECUTED sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); a0002b5c: e1a01005 mov r1, r5 <== NOT EXECUTED a0002b60: e1a00004 mov r0, r4 <== NOT EXECUTED a0002b64: e12fff33 blx r3 <== NOT EXECUTED tty->tty_rcvwakeup = 0; a0002b68: e3a03000 mov r3, #0 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); if (sc != RTEMS_SUCCESSFUL) return sc; if (rtems_termios_linesw[tty->t_line].l_read != NULL) { sc = rtems_termios_linesw[tty->t_line].l_read(tty,args); a0002b6c: e1a06000 mov r6, r0 <== NOT EXECUTED tty->tty_rcvwakeup = 0; a0002b70: e58430e4 str r3, [r4, #228] ; 0xe4 <== NOT EXECUTED a0002b74: ea0000b3 b a0002e48 <== NOT EXECUTED rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { a0002b78: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED a0002b7c: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a0002b80: e1520003 cmp r2, r3 <== NOT EXECUTED a0002b84: 1a00009a bne a0002df4 <== NOT EXECUTED tty->cindex = tty->ccount = 0; tty->read_start_column = tty->column; if (tty->device.pollRead != NULL a0002b88: 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; a0002b8c: e5943028 ldr r3, [r4, #40] ; 0x28 <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); return sc; } if (tty->cindex == tty->ccount) { tty->cindex = tty->ccount = 0; a0002b90: e5846020 str r6, [r4, #32] <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL a0002b94: 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; a0002b98: 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; a0002b9c: e5846024 str r6, [r4, #36] ; 0x24 <== NOT EXECUTED tty->read_start_column = tty->column; if (tty->device.pollRead != NULL a0002ba0: 0a00003b beq a0002c94 <== NOT EXECUTED && tty->device.outputUsesInterrupts == TERMIOS_POLLED) a0002ba4: e59430b4 ldr r3, [r4, #180] ; 0xb4 <== NOT EXECUTED a0002ba8: e3530000 cmp r3, #0 <== NOT EXECUTED a0002bac: 1a000038 bne a0002c94 <== NOT EXECUTED static rtems_status_code fillBufferPoll (struct rtems_termios_tty *tty) { int n; if (tty->termios.c_lflag & ICANON) { a0002bb0: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a0002bb4: e3130002 tst r3, #2 <== NOT EXECUTED a0002bb8: 0a00000d beq a0002bf4 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); a0002bbc: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0002bc0: e1a0e00f mov lr, pc <== NOT EXECUTED a0002bc4: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (n < 0) { a0002bc8: e3500000 cmp r0, #0 <== NOT EXECUTED rtems_task_wake_after (1); } else { if (siproc (n, tty)) a0002bcc: e1a01004 mov r1, r4 <== NOT EXECUTED a0002bd0: 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) { a0002bd4: aa000002 bge a0002be4 <== NOT EXECUTED rtems_task_wake_after (1); a0002bd8: e3a00001 mov r0, #1 <== NOT EXECUTED a0002bdc: eb000694 bl a0004634 <== NOT EXECUTED a0002be0: eafffff5 b a0002bbc <== NOT EXECUTED } else { if (siproc (n, tty)) a0002be4: ebffff66 bl a0002984 <== NOT EXECUTED a0002be8: e3500000 cmp r0, #0 <== NOT EXECUTED a0002bec: 0afffff2 beq a0002bbc <== NOT EXECUTED a0002bf0: ea00007f b a0002df4 <== NOT EXECUTED } } } else { rtems_interval then, now; then = rtems_clock_get_ticks_since_boot(); a0002bf4: eb0003d6 bl a0003b54 <== NOT EXECUTED a0002bf8: e1a08000 mov r8, r0 <== NOT EXECUTED for (;;) { n = (*tty->device.pollRead)(tty->minor); a0002bfc: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0002c00: e1a0e00f mov lr, pc <== NOT EXECUTED a0002c04: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (n < 0) { a0002c08: e3500000 cmp r0, #0 <== NOT EXECUTED a0002c0c: aa000013 bge a0002c60 <== NOT EXECUTED if (tty->termios.c_cc[VMIN]) { a0002c10: e5d42047 ldrb r2, [r4, #71] ; 0x47 <== NOT EXECUTED a0002c14: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED a0002c18: e3520000 cmp r2, #0 <== NOT EXECUTED a0002c1c: 0a000005 beq a0002c38 <== NOT EXECUTED if (tty->termios.c_cc[VTIME] && tty->ccount) { a0002c20: e3530000 cmp r3, #0 <== NOT EXECUTED a0002c24: 0a00000a beq a0002c54 <== NOT EXECUTED a0002c28: e5943020 ldr r3, [r4, #32] <== NOT EXECUTED a0002c2c: e3530000 cmp r3, #0 <== NOT EXECUTED a0002c30: 0a000007 beq a0002c54 <== NOT EXECUTED a0002c34: ea000001 b a0002c40 <== NOT EXECUTED break; } } } else { if (!tty->termios.c_cc[VTIME]) a0002c38: e3530000 cmp r3, #0 <== NOT EXECUTED a0002c3c: 0a00006c beq a0002df4 <== NOT EXECUTED break; now = rtems_clock_get_ticks_since_boot(); a0002c40: eb0003c3 bl a0003b54 <== NOT EXECUTED if ((now - then) > tty->vtimeTicks) { a0002c44: e5943054 ldr r3, [r4, #84] ; 0x54 <== NOT EXECUTED a0002c48: e0680000 rsb r0, r8, r0 <== NOT EXECUTED a0002c4c: e1500003 cmp r0, r3 <== NOT EXECUTED a0002c50: 8a000067 bhi a0002df4 <== NOT EXECUTED break; } } rtems_task_wake_after (1); a0002c54: e3a00001 mov r0, #1 <== NOT EXECUTED a0002c58: eb000675 bl a0004634 <== NOT EXECUTED a0002c5c: eaffffe6 b a0002bfc <== NOT EXECUTED } else { siproc (n, tty); a0002c60: e20000ff and r0, r0, #255 ; 0xff <== NOT EXECUTED a0002c64: e1a01004 mov r1, r4 <== NOT EXECUTED a0002c68: ebffff45 bl a0002984 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) a0002c6c: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED a0002c70: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a0002c74: e1520003 cmp r2, r3 <== NOT EXECUTED a0002c78: aa00005d bge a0002df4 <== NOT EXECUTED break; if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME]) a0002c7c: e3530000 cmp r3, #0 <== NOT EXECUTED a0002c80: 0affffdd beq a0002bfc <== NOT EXECUTED a0002c84: e5d43046 ldrb r3, [r4, #70] ; 0x46 <== NOT EXECUTED a0002c88: e3530000 cmp r3, #0 <== NOT EXECUTED a0002c8c: 0affffda beq a0002bfc <== NOT EXECUTED a0002c90: eaffffd7 b a0002bf4 <== 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; a0002c94: 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, a0002c98: e284b049 add fp, r4, #73 ; 0x49 <== NOT EXECUTED a0002c9c: e3a0a001 mov sl, #1 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && a0002ca0: e59f91b4 ldr r9, [pc, #436] ; a0002e5c <== NOT EXECUTED a0002ca4: ea000041 b a0002db0 <== NOT EXECUTED (tty->ccount < (CBUFSIZE-1))) { unsigned char c; unsigned int newHead; newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size; a0002ca8: e594005c ldr r0, [r4, #92] ; 0x5c <== NOT EXECUTED a0002cac: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED a0002cb0: e2800001 add r0, r0, #1 <== NOT EXECUTED a0002cb4: eb004d42 bl a00161c4 <__umodsi3> <== NOT EXECUTED c = tty->rawInBuf.theBuf[newHead]; a0002cb8: e5943058 ldr r3, [r4, #88] ; 0x58 <== NOT EXECUTED a0002cbc: e7d38000 ldrb r8, [r3, r0] <== NOT EXECUTED tty->rawInBuf.Head = newHead; a0002cc0: e584005c str r0, [r4, #92] ; 0x5c <== NOT EXECUTED if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size) a0002cc4: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED a0002cc8: e5942064 ldr r2, [r4, #100] ; 0x64 <== NOT EXECUTED a0002ccc: e5941064 ldr r1, [r4, #100] ; 0x64 <== NOT EXECUTED a0002cd0: e0823003 add r3, r2, r3 <== NOT EXECUTED a0002cd4: e0600003 rsb r0, r0, r3 <== NOT EXECUTED a0002cd8: eb004d39 bl a00161c4 <__umodsi3> <== NOT EXECUTED a0002cdc: e59430bc ldr r3, [r4, #188] ; 0xbc <== NOT EXECUTED a0002ce0: e1500003 cmp r0, r3 <== NOT EXECUTED a0002ce4: 2a00001f bcs a0002d68 <== NOT EXECUTED % tty->rawInBuf.Size) < tty->lowwater) { tty->flow_ctrl &= ~FL_IREQXOF; a0002ce8: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) a0002cec: e59f316c ldr r3, [pc, #364] ; a0002e60 <== NOT EXECUTED a0002cf0: e59f1168 ldr r1, [pc, #360] ; a0002e60 <== 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; a0002cf4: e3c22001 bic r2, r2, #1 <== NOT EXECUTED a0002cf8: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* if tx stopped and XON should be sent... */ if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF)) a0002cfc: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002d00: e0023003 and r3, r2, r3 <== NOT EXECUTED a0002d04: e1530001 cmp r3, r1 <== NOT EXECUTED a0002d08: 1a00000b bne a0002d3c <== NOT EXECUTED a0002d0c: e5943094 ldr r3, [r4, #148] ; 0x94 <== NOT EXECUTED a0002d10: e3530000 cmp r3, #0 <== NOT EXECUTED a0002d14: 0a000002 beq a0002d24 <== NOT EXECUTED == (FL_MDXON | FL_ISNTXOF)) && ((tty->rawOutBufState == rob_idle) || (tty->flow_ctrl & FL_OSTOP))) { a0002d18: 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)) a0002d1c: e3130020 tst r3, #32 <== NOT EXECUTED a0002d20: 0a000005 beq a0002d3c <== 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, a0002d24: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0002d28: e1a0100b mov r1, fp <== NOT EXECUTED a0002d2c: e3a02001 mov r2, #1 <== NOT EXECUTED a0002d30: e1a0e00f mov lr, pc <== NOT EXECUTED a0002d34: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED a0002d38: ea00000a b a0002d68 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); } else if (tty->flow_ctrl & FL_MDRTS) { a0002d3c: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0002d40: e3130c01 tst r3, #256 ; 0x100 <== NOT EXECUTED a0002d44: 0a000007 beq a0002d68 <== NOT EXECUTED tty->flow_ctrl &= ~FL_IRTSOFF; a0002d48: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { a0002d4c: 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; a0002d50: e3c22004 bic r2, r2, #4 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { a0002d54: 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; a0002d58: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED /* activate RTS line */ if (tty->device.startRemoteTx != NULL) { a0002d5c: 0a000001 beq a0002d68 <== NOT EXECUTED tty->device.startRemoteTx(tty->minor); a0002d60: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0002d64: e12fff33 blx r3 <== NOT EXECUTED } } } /* continue processing new character */ if (tty->termios.c_lflag & ICANON) { a0002d68: e594303c ldr r3, [r4, #60] ; 0x3c <== NOT EXECUTED a0002d6c: e3130002 tst r3, #2 <== NOT EXECUTED a0002d70: 0a000005 beq a0002d8c <== NOT EXECUTED if (siproc (c, tty)) a0002d74: e1a00008 mov r0, r8 <== NOT EXECUTED a0002d78: e1a01004 mov r1, r4 <== NOT EXECUTED a0002d7c: ebffff00 bl a0002984 <== NOT EXECUTED a0002d80: e3500000 cmp r0, #0 <== NOT EXECUTED a0002d84: 1a000007 bne a0002da8 <== NOT EXECUTED a0002d88: ea000007 b a0002dac <== NOT EXECUTED wait = 0; } else { siproc (c, tty); a0002d8c: e1a00008 mov r0, r8 <== NOT EXECUTED a0002d90: e1a01004 mov r1, r4 <== NOT EXECUTED a0002d94: ebfffefa bl a0002984 <== NOT EXECUTED if (tty->ccount >= tty->termios.c_cc[VMIN]) a0002d98: e5d43047 ldrb r3, [r4, #71] ; 0x47 <== NOT EXECUTED a0002d9c: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a0002da0: e1520003 cmp r2, r3 <== NOT EXECUTED a0002da4: ba000000 blt a0002dac <== NOT EXECUTED a0002da8: e3a0a000 mov sl, #0 <== NOT EXECUTED wait = 0; } timeout = tty->rawInBufSemaphoreTimeout; a0002dac: e5948070 ldr r8, [r4, #112] ; 0x70 <== NOT EXECUTED while ( wait ) { /* * Process characters read from raw queue */ while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) && a0002db0: e594205c ldr r2, [r4, #92] ; 0x5c <== NOT EXECUTED a0002db4: e5943060 ldr r3, [r4, #96] ; 0x60 <== NOT EXECUTED a0002db8: e1520003 cmp r2, r3 <== NOT EXECUTED a0002dbc: 0a000004 beq a0002dd4 <== NOT EXECUTED a0002dc0: e5993000 ldr r3, [r9] <== NOT EXECUTED a0002dc4: e5942020 ldr r2, [r4, #32] <== NOT EXECUTED a0002dc8: e2433001 sub r3, r3, #1 <== NOT EXECUTED a0002dcc: e1520003 cmp r2, r3 <== NOT EXECUTED a0002dd0: baffffb4 blt a0002ca8 <== NOT EXECUTED } /* * Wait for characters */ if ( wait ) { a0002dd4: e35a0000 cmp sl, #0 <== NOT EXECUTED a0002dd8: 0a000005 beq a0002df4 <== NOT EXECUTED sc = rtems_semaphore_obtain (tty->rawInBuf.Semaphore, a0002ddc: e5940068 ldr r0, [r4, #104] ; 0x68 <== NOT EXECUTED a0002de0: e594106c ldr r1, [r4, #108] ; 0x6c <== NOT EXECUTED a0002de4: e1a02008 mov r2, r8 <== NOT EXECUTED a0002de8: eb0004e7 bl a000418c <== NOT EXECUTED tty->rawInBufSemaphoreOptions, timeout); if (sc != RTEMS_SUCCESSFUL) a0002dec: e3500000 cmp r0, #0 <== NOT EXECUTED a0002df0: 0affffee beq a0002db0 <== NOT EXECUTED { rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout; rtems_status_code sc; int wait = (int)1; while ( wait ) { a0002df4: e3a03000 mov r3, #0 <== NOT EXECUTED a0002df8: ea000006 b a0002e18 <== 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++]; a0002dfc: e594101c ldr r1, [r4, #28] <== NOT EXECUTED count--; a0002e00: 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++]; a0002e04: e7d12002 ldrb r2, [r1, r2] <== NOT EXECUTED a0002e08: e59d1000 ldr r1, [sp] <== NOT EXECUTED a0002e0c: e7c12003 strb r2, [r1, r3] <== NOT EXECUTED a0002e10: e5840024 str r0, [r4, #36] ; 0x24 <== NOT EXECUTED count--; a0002e14: 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)) { a0002e18: e3570000 cmp r7, #0 <== NOT EXECUTED a0002e1c: 0a000004 beq a0002e34 <== NOT EXECUTED a0002e20: e5942024 ldr r2, [r4, #36] ; 0x24 <== NOT EXECUTED a0002e24: e5941020 ldr r1, [r4, #32] <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; a0002e28: 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)) { a0002e2c: e1520001 cmp r2, r1 <== NOT EXECUTED a0002e30: bafffff1 blt a0002dfc <== NOT EXECUTED *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; a0002e34: e5953010 ldr r3, [r5, #16] <== NOT EXECUTED tty->tty_rcvwakeup = 0; a0002e38: e3a02000 mov r2, #0 <== NOT EXECUTED a0002e3c: e58420e4 str r2, [r4, #228] ; 0xe4 <== NOT EXECUTED } while (count && (tty->cindex < tty->ccount)) { *buffer++ = tty->cbuf[tty->cindex++]; count--; } args->bytes_moved = args->count - count; a0002e40: e0677003 rsb r7, r7, r3 <== NOT EXECUTED a0002e44: e5857018 str r7, [r5, #24] <== NOT EXECUTED tty->tty_rcvwakeup = 0; rtems_semaphore_release (tty->isem); a0002e48: e5940014 ldr r0, [r4, #20] <== NOT EXECUTED a0002e4c: eb000514 bl a00042a4 <== NOT EXECUTED return sc; } a0002e50: e1a00006 mov r0, r6 <== NOT EXECUTED a0002e54: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} <== NOT EXECUTED a0002e58: a00199c0 .word 0xa00199c0 a0002e5c: a0018404 .word 0xa0018404 a0002e60: 00000202 .word 0x00000202 a0001e0c : int nToSend; rtems_interrupt_level level; int len; /* check for XOF/XON to send */ if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF)) a0001e0c: e59020b8 ldr r2, [r0, #184] ; 0xb8 <== NOT EXECUTED a0001e10: e59f31d4 ldr r3, [pc, #468] ; a0001fec <== 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) { a0001e14: 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)) a0001e18: e0023003 and r3, r2, r3 <== NOT EXECUTED a0001e1c: e59f21cc ldr r2, [pc, #460] ; a0001ff0 <== 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) { a0001e20: 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)) a0001e24: e1530002 cmp r3, r2 <== NOT EXECUTED a0001e28: 1a00000e bne a0001e68 <== NOT EXECUTED == (FL_MDXOF | FL_IREQXOF)) { /* XOFF should be sent now... */ (*tty->device.write)(tty->minor, a0001e2c: e284104a add r1, r4, #74 ; 0x4a <== NOT EXECUTED a0001e30: e2422b01 sub r2, r2, #1024 ; 0x400 <== NOT EXECUTED a0001e34: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED a0001e38: e1a0e00f mov lr, pc <== NOT EXECUTED a0001e3c: 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 ( a0001e40: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0001e44: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0001e48: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTOP]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; a0001e4c: e5942090 ldr r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; a0001e50: 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--; a0001e54: e2422001 sub r2, r2, #1 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; a0001e58: e3811002 orr r1, r1, #2 <== NOT EXECUTED a0001e5c: 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--; a0001e60: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl |= FL_ISNTXOF; rtems_interrupt_enable(level); a0001e64: ea000011 b a0001eb0 <== NOT EXECUTED nToSend = 1; } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) a0001e68: e59030b8 ldr r3, [r0, #184] ; 0xb8 <== NOT EXECUTED a0001e6c: e2033003 and r3, r3, #3 <== NOT EXECUTED a0001e70: e3530002 cmp r3, #2 <== NOT EXECUTED a0001e74: 1a000010 bne a0001ebc <== 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, a0001e78: e2841049 add r1, r4, #73 ; 0x49 <== NOT EXECUTED a0001e7c: e3a02001 mov r2, #1 <== NOT EXECUTED a0001e80: e5900010 ldr r0, [r0, #16] <== NOT EXECUTED a0001e84: e1a0e00f mov lr, pc <== NOT EXECUTED a0001e88: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED a0001e8c: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0001e90: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0001e94: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED (void *)&(tty->termios.c_cc[VSTART]), 1); rtems_interrupt_disable(level); tty->t_dqlen--; a0001e98: e5942090 ldr r2, [r4, #144] ; 0x90 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; a0001e9c: 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--; a0001ea0: e2422001 sub r2, r2, #1 <== NOT EXECUTED tty->flow_ctrl &= ~FL_ISNTXOF; a0001ea4: e3c11002 bic r1, r1, #2 <== NOT EXECUTED a0001ea8: 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--; a0001eac: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0001eb0: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0001eb4: e3a05001 mov r5, #1 <== NOT EXECUTED a0001eb8: ea000049 b a0001fe4 <== NOT EXECUTED rtems_interrupt_enable(level); nToSend = 1; } else { if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) { a0001ebc: e5902080 ldr r2, [r0, #128] ; 0x80 <== NOT EXECUTED a0001ec0: e5903084 ldr r3, [r0, #132] ; 0x84 <== NOT EXECUTED a0001ec4: e1520003 cmp r2, r3 <== NOT EXECUTED a0001ec8: 1a000006 bne a0001ee8 <== NOT EXECUTED /* * buffer was empty */ if (tty->rawOutBufState == rob_wait) { a0001ecc: e5903094 ldr r3, [r0, #148] ; 0x94 <== NOT EXECUTED a0001ed0: e3530002 cmp r3, #2 <== NOT EXECUTED a0001ed4: 1a000001 bne a0001ee0 <== NOT EXECUTED /* * this should never happen... */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); a0001ed8: e590008c ldr r0, [r0, #140] ; 0x8c <== NOT EXECUTED a0001edc: eb0008f0 bl a00042a4 <== NOT EXECUTED a0001ee0: e3a05000 mov r5, #0 <== NOT EXECUTED a0001ee4: ea00003e b a0001fe4 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0001ee8: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0001eec: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0001ef0: e129f002 msr CPSR_fc, r2 <== NOT EXECUTED return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; tty->t_dqlen = 0; a0001ef4: e3a02000 mov r2, #0 <== NOT EXECUTED } return 0; } rtems_interrupt_disable(level); len = tty->t_dqlen; a0001ef8: e5900090 ldr r0, [r0, #144] ; 0x90 <== NOT EXECUTED tty->t_dqlen = 0; a0001efc: e5842090 str r2, [r4, #144] ; 0x90 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0001f00: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED rtems_interrupt_enable(level); newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size; a0001f04: e5943084 ldr r3, [r4, #132] ; 0x84 <== NOT EXECUTED a0001f08: e5941088 ldr r1, [r4, #136] ; 0x88 <== NOT EXECUTED a0001f0c: e0800003 add r0, r0, r3 <== NOT EXECUTED a0001f10: eb0050ab bl a00161c4 <__umodsi3> <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; if (tty->rawOutBufState == rob_wait) { a0001f14: 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; a0001f18: e1a06000 mov r6, r0 <== NOT EXECUTED tty->rawOutBuf.Tail = newTail; a0001f1c: e5840084 str r0, [r4, #132] ; 0x84 <== NOT EXECUTED if (tty->rawOutBufState == rob_wait) { a0001f20: e3530002 cmp r3, #2 <== NOT EXECUTED a0001f24: 1a000001 bne a0001f30 <== NOT EXECUTED /* * wake up any pending writer task */ rtems_semaphore_release (tty->rawOutBuf.Semaphore); a0001f28: e594008c ldr r0, [r4, #140] ; 0x8c <== NOT EXECUTED a0001f2c: eb0008dc bl a00042a4 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { a0001f30: e5943080 ldr r3, [r4, #128] ; 0x80 <== NOT EXECUTED a0001f34: e1560003 cmp r6, r3 <== NOT EXECUTED a0001f38: 1a000009 bne a0001f64 <== NOT EXECUTED nToSend = 0; /* * check to see if snd wakeup callback was set */ if ( tty->tty_snd.sw_pfn != NULL) { a0001f3c: e59430d4 ldr r3, [r4, #212] ; 0xd4 <== NOT EXECUTED } if (newTail == tty->rawOutBuf.Head) { /* * Buffer has become empty */ tty->rawOutBufState = rob_idle; a0001f40: e3a05000 mov r5, #0 <== NOT EXECUTED a0001f44: 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) { a0001f48: e1530005 cmp r3, r5 <== NOT EXECUTED a0001f4c: 01a05003 moveq r5, r3 <== NOT EXECUTED a0001f50: 0a000022 beq a0001fe0 <== NOT EXECUTED (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg); a0001f54: e2840030 add r0, r4, #48 ; 0x30 <== NOT EXECUTED a0001f58: e59410d8 ldr r1, [r4, #216] ; 0xd8 <== NOT EXECUTED a0001f5c: e12fff33 blx r3 <== NOT EXECUTED a0001f60: ea00001e b a0001fe0 <== NOT EXECUTED } } /* check, whether output should stop due to received XOFF */ else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) a0001f64: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED a0001f68: e2033e21 and r3, r3, #528 ; 0x210 <== NOT EXECUTED a0001f6c: e3530e21 cmp r3, #528 ; 0x210 <== NOT EXECUTED a0001f70: 1a00000a bne a0001fa0 <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0001f74: e10f3000 mrs r3, CPSR <== NOT EXECUTED a0001f78: e3832080 orr r2, r3, #128 ; 0x80 <== NOT EXECUTED a0001f7c: 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; a0001f80: e59420b8 ldr r2, [r4, #184] ; 0xb8 <== NOT EXECUTED tty->rawOutBufState = rob_busy; /*apm*/ a0001f84: e3a01001 mov r1, #1 <== NOT EXECUTED a0001f88: e5841094 str r1, [r4, #148] ; 0x94 <== NOT EXECUTED else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF)) == (FL_MDXON | FL_ORCVXOF)) { /* Buffer not empty, but output stops due to XOFF */ /* set flag, that output has been stopped */ rtems_interrupt_disable(level); tty->flow_ctrl |= FL_OSTOP; a0001f8c: e3822020 orr r2, r2, #32 <== NOT EXECUTED a0001f90: e58420b8 str r2, [r4, #184] ; 0xb8 <== NOT EXECUTED static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0001f94: e129f003 msr CPSR_fc, r3 <== NOT EXECUTED a0001f98: e3a05000 mov r5, #0 <== NOT EXECUTED a0001f9c: ea00000f b a0001fe0 <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) a0001fa0: 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, a0001fa4: e594107c ldr r1, [r4, #124] ; 0x7c <== NOT EXECUTED a0001fa8: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED } else { /* * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) a0001fac: e1560003 cmp r6, r3 <== NOT EXECUTED nToSend = tty->rawOutBuf.Size - newTail; a0001fb0: 85945088 ldrhi r5, [r4, #136] ; 0x88 <== NOT EXECUTED else nToSend = tty->rawOutBuf.Head - newTail; a0001fb4: 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)) { a0001fb8: e59430b8 ldr r3, [r4, #184] ; 0xb8 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ (*tty->device.write)(tty->minor, a0001fbc: e0811006 add r1, r1, r6 <== NOT EXECUTED * Buffer not empty, start tranmitter */ if (newTail > tty->rawOutBuf.Head) nToSend = tty->rawOutBuf.Size - newTail; else nToSend = tty->rawOutBuf.Head - newTail; a0001fc0: 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)) { a0001fc4: e3130c06 tst r3, #1536 ; 0x600 <== NOT EXECUTED a0001fc8: 13a05001 movne r5, #1 <== NOT EXECUTED nToSend = 1; } tty->rawOutBufState = rob_busy; /*apm*/ a0001fcc: e3a03001 mov r3, #1 <== NOT EXECUTED a0001fd0: e5843094 str r3, [r4, #148] ; 0x94 <== NOT EXECUTED (*tty->device.write)(tty->minor, a0001fd4: e1a02005 mov r2, r5 <== NOT EXECUTED a0001fd8: e1a0e00f mov lr, pc <== NOT EXECUTED a0001fdc: e594f0a4 ldr pc, [r4, #164] ; 0xa4 <== NOT EXECUTED &tty->rawOutBuf.theBuf[newTail], nToSend); } tty->rawOutBuf.Tail = newTail; /*apm*/ a0001fe0: e5846084 str r6, [r4, #132] ; 0x84 <== NOT EXECUTED } return nToSend; } a0001fe4: e1a00005 mov r0, r5 <== NOT EXECUTED a0001fe8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a0001fec: 00000403 .word 0x00000403 a0001ff0: 00000401 .word 0x00000401 a0003820 : /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) { a0003820: e92d40f3 push {r0, r1, r4, r5, r6, r7, lr} <== NOT EXECUTED a0003824: e1a04000 mov r4, r0 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | a0003828: e3a05000 mov r5, #0 <== NOT EXECUTED if (c != EOF) { /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( a000382c: e28d6007 add r6, sp, #7 <== NOT EXECUTED char c_buf; while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_RX_PROC_EVENT | a0003830: e1a0300d mov r3, sp <== NOT EXECUTED a0003834: e3a01002 mov r1, #2 <== NOT EXECUTED a0003838: e3a02000 mov r2, #0 <== NOT EXECUTED a000383c: e3a00003 mov r0, #3 <== NOT EXECUTED a0003840: eb0000e1 bl a0003bcc <== NOT EXECUTED TERMIOS_RX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_RX_TERMINATE_EVENT) != 0) { a0003844: e59d3000 ldr r3, [sp] <== NOT EXECUTED a0003848: e3130001 tst r3, #1 <== NOT EXECUTED a000384c: 0a000003 beq a0003860 <== NOT EXECUTED tty->rxTaskId = 0; a0003850: e58450c4 str r5, [r4, #196] ; 0xc4 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); a0003854: e1a00005 mov r0, r5 <== NOT EXECUTED a0003858: eb00030a bl a0004488 <== NOT EXECUTED a000385c: eafffff3 b a0003830 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); a0003860: e5940010 ldr r0, [r4, #16] <== NOT EXECUTED a0003864: e1a0e00f mov lr, pc <== NOT EXECUTED a0003868: e594f0a0 ldr pc, [r4, #160] ; 0xa0 <== NOT EXECUTED if (c != EOF) { a000386c: e3700001 cmn r0, #1 <== NOT EXECUTED } else { /* * do something */ c = tty->device.pollRead(tty->minor); a0003870: e1a03000 mov r3, r0 <== NOT EXECUTED if (c != EOF) { a0003874: 0affffed beq a0003830 <== NOT EXECUTED /* * pollRead did call enqueue on its own */ c_buf = c; rtems_termios_enqueue_raw_characters ( a0003878: e1a00004 mov r0, r4 <== NOT EXECUTED a000387c: e1a01006 mov r1, r6 <== NOT EXECUTED a0003880: 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; a0003884: e5cd3007 strb r3, [sp, #7] <== NOT EXECUTED rtems_termios_enqueue_raw_characters ( a0003888: ebfff9f4 bl a0002060 <== NOT EXECUTED a000388c: eaffffe7 b a0003830 <== NOT EXECUTED a0001e00 : 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); a0001e00: e59000c4 ldr r0, [r0, #196] ; 0xc4 <== NOT EXECUTED a0001e04: e3a01002 mov r1, #2 <== NOT EXECUTED a0001e08: ea0007cb b a0003d3c <== NOT EXECUTED a00037b4 : /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { a00037b4: 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) { a00037b8: e59f705c ldr r7, [pc, #92] ; a000381c <== NOT EXECUTED /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) { a00037bc: e1a04000 mov r4, r0 <== NOT EXECUTED while (1) { /* * wait for rtems event */ rtems_event_receive((TERMIOS_TX_START_EVENT | a00037c0: e3a05000 mov r5, #0 <== NOT EXECUTED a00037c4: e1a0300d mov r3, sp <== NOT EXECUTED a00037c8: e3a01002 mov r1, #2 <== NOT EXECUTED a00037cc: e3a02000 mov r2, #0 <== NOT EXECUTED a00037d0: e3a00003 mov r0, #3 <== NOT EXECUTED a00037d4: eb0000fc bl a0003bcc <== NOT EXECUTED TERMIOS_TX_TERMINATE_EVENT), RTEMS_EVENT_ANY | RTEMS_WAIT, RTEMS_NO_TIMEOUT, &the_event); if ((the_event & TERMIOS_TX_TERMINATE_EVENT) != 0) { a00037d8: 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); a00037dc: 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) { a00037e0: e3130001 tst r3, #1 <== NOT EXECUTED a00037e4: 0a000003 beq a00037f8 <== NOT EXECUTED tty->txTaskId = 0; a00037e8: e58450c8 str r5, [r4, #200] ; 0xc8 <== NOT EXECUTED rtems_task_delete(RTEMS_SELF); a00037ec: e1a00005 mov r0, r5 <== NOT EXECUTED a00037f0: eb000324 bl a0004488 <== NOT EXECUTED a00037f4: eafffff2 b a00037c4 <== NOT EXECUTED } else { /* * call any line discipline start function */ if (rtems_termios_linesw[tty->t_line].l_start != NULL) { a00037f8: e59430cc ldr r3, [r4, #204] ; 0xcc <== NOT EXECUTED a00037fc: e0873283 add r3, r7, r3, lsl #5 <== NOT EXECUTED a0003800: e5933014 ldr r3, [r3, #20] <== NOT EXECUTED a0003804: e3530000 cmp r3, #0 <== NOT EXECUTED a0003808: 0a000000 beq a0003810 <== NOT EXECUTED rtems_termios_linesw[tty->t_line].l_start(tty); a000380c: e12fff33 blx r3 <== NOT EXECUTED } /* * try to push further characters to device */ rtems_termios_refill_transmitter(tty); a0003810: e1a00004 mov r0, r4 <== NOT EXECUTED a0003814: ebfff97c bl a0001e0c <== NOT EXECUTED a0003818: eaffffe9 b a00037c4 <== NOT EXECUTED a000381c: a00199c0 .word 0xa00199c0 a00029e4 : rtems_status_code rtems_termios_write (void *arg) { rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a00029e4: e5903000 ldr r3, [r0] rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { a00029e8: e92d45f0 push {r4, r5, r6, r7, r8, sl, lr} rtems_libio_rw_args_t *args = arg; struct rtems_termios_tty *tty = args->iop->data1; a00029ec: e5935034 ldr r5, [r3, #52] ; 0x34 rtems_status_code sc; sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a00029f0: e3a01000 mov r1, #0 rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) { a00029f4: 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); a00029f8: e1a02001 mov r2, r1 a00029fc: e5950018 ldr r0, [r5, #24] a0002a00: eb0005e1 bl a000418c if (sc != RTEMS_SUCCESSFUL) a0002a04: e2506000 subs r6, r0, #0 a0002a08: 1a000021 bne a0002a94 return sc; if (rtems_termios_linesw[tty->t_line].l_write != NULL) { a0002a0c: e59520cc ldr r2, [r5, #204] ; 0xcc a0002a10: e59f3084 ldr r3, [pc, #132] ; a0002a9c a0002a14: e0833282 add r3, r3, r2, lsl #5 a0002a18: e593300c ldr r3, [r3, #12] a0002a1c: e3530000 cmp r3, #0 a0002a20: 0a000004 beq a0002a38 sc = rtems_termios_linesw[tty->t_line].l_write(tty,args); a0002a24: e1a01004 mov r1, r4 <== NOT EXECUTED a0002a28: e1a00005 mov r0, r5 <== NOT EXECUTED a0002a2c: e12fff33 blx r3 <== NOT EXECUTED a0002a30: e1a06000 mov r6, r0 <== NOT EXECUTED a0002a34: ea000014 b a0002a8c <== NOT EXECUTED rtems_semaphore_release (tty->osem); return sc; } if (tty->termios.c_oflag & OPOST) { a0002a38: e5953034 ldr r3, [r5, #52] ; 0x34 a0002a3c: e3130001 tst r3, #1 uint32_t count = args->count; a0002a40: 15948010 ldrne r8, [r4, #16] char *buffer = args->buffer; a0002a44: 1594a00c ldrne sl, [r4, #12] a0002a48: 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) { a0002a4c: 1a000004 bne a0002a64 a0002a50: ea000007 b a0002a74 <== NOT EXECUTED uint32_t count = args->count; char *buffer = args->buffer; while (count--) oproc (*buffer++, tty); a0002a54: e7da0007 ldrb r0, [sl, r7] a0002a58: ebfffe76 bl a0002438 a0002a5c: e2877001 add r7, r7, #1 a0002a60: e2488001 sub r8, r8, #1 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) a0002a64: e3580000 cmp r8, #0 oproc (*buffer++, tty); a0002a68: e1a01005 mov r1, r5 return sc; } if (tty->termios.c_oflag & OPOST) { uint32_t count = args->count; char *buffer = args->buffer; while (count--) a0002a6c: 1afffff8 bne a0002a54 a0002a70: ea000003 b a0002a84 oproc (*buffer++, tty); args->bytes_moved = args->count; } else { rtems_termios_puts (args->buffer, args->count, tty); a0002a74: e594000c ldr r0, [r4, #12] <== NOT EXECUTED a0002a78: e5941010 ldr r1, [r4, #16] <== NOT EXECUTED a0002a7c: e1a02005 mov r2, r5 <== NOT EXECUTED a0002a80: ebfffe27 bl a0002324 <== NOT EXECUTED args->bytes_moved = args->count; a0002a84: e5943010 ldr r3, [r4, #16] a0002a88: e5843018 str r3, [r4, #24] } rtems_semaphore_release (tty->osem); a0002a8c: e5950018 ldr r0, [r5, #24] a0002a90: eb000603 bl a00042a4 return sc; } a0002a94: e1a00006 mov r0, r6 a0002a98: e8bd85f0 pop {r4, r5, r6, r7, r8, sl, pc} a0002a9c: a00199c0 .word 0xa00199c0 a0005d04 : static int rtems_verror( rtems_error_code_t error_flag, const char *printf_format, va_list arglist ) { a0005d04: 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) a0005d08: 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 ) { a0005d0c: e1a06000 mov r6, r0 <== NOT EXECUTED a0005d10: e1a09001 mov r9, r1 <== NOT EXECUTED a0005d14: e1a04002 mov r4, r2 <== NOT EXECUTED int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) a0005d18: 0a00000d beq a0005d54 <== NOT EXECUTED { if (rtems_panic_in_progress++) a0005d1c: e59f3164 ldr r3, [pc, #356] ; a0005e88 <== NOT EXECUTED a0005d20: e5932000 ldr r2, [r3] <== NOT EXECUTED a0005d24: e3520000 cmp r2, #0 <== NOT EXECUTED a0005d28: e2822001 add r2, r2, #1 <== NOT EXECUTED a0005d2c: e5832000 str r2, [r3] <== NOT EXECUTED a0005d30: 0a000003 beq a0005d44 <== NOT EXECUTED rtems_fatal_error_occurred( 99 ); } } #endif _Thread_Dispatch_disable_level += 1; a0005d34: e59f3150 ldr r3, [pc, #336] ; a0005e8c <== NOT EXECUTED a0005d38: e5932000 ldr r2, [r3] <== NOT EXECUTED a0005d3c: e2822001 add r2, r2, #1 <== NOT EXECUTED a0005d40: e5832000 str r2, [r3] <== NOT EXECUTED _Thread_Disable_dispatch(); /* disable task switches */ /* don't aggravate things */ if (rtems_panic_in_progress > 2) a0005d44: e59f313c ldr r3, [pc, #316] ; a0005e88 <== NOT EXECUTED a0005d48: e5933000 ldr r3, [r3] <== NOT EXECUTED a0005d4c: e3530002 cmp r3, #2 <== NOT EXECUTED a0005d50: ca00004a bgt a0005e80 <== NOT EXECUTED return 0; } (void) fflush(stdout); /* in case stdout/stderr same */ a0005d54: e59f3134 ldr r3, [pc, #308] ; a0005e90 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; a0005d58: 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 */ a0005d5c: e5933000 ldr r3, [r3] <== NOT EXECUTED a0005d60: e5930008 ldr r0, [r3, #8] <== NOT EXECUTED a0005d64: eb00358f bl a00133a8 <== NOT EXECUTED status = error_flag & ~RTEMS_ERROR_MASK; if (error_flag & RTEMS_ERROR_ERRNO) /* include errno? */ a0005d68: e2165101 ands r5, r6, #1073741824 ; 0x40000000 <== NOT EXECUTED a0005d6c: 0a000001 beq a0005d78 <== NOT EXECUTED local_errno = errno; a0005d70: eb003499 bl a0012fdc <__errno> <== NOT EXECUTED a0005d74: 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); a0005d78: e59fa110 ldr sl, [pc, #272] ; a0005e90 <== NOT EXECUTED a0005d7c: e1a02004 mov r2, r4 <== NOT EXECUTED a0005d80: e1a01009 mov r1, r9 <== NOT EXECUTED a0005d84: e59a3000 ldr r3, [sl] <== NOT EXECUTED a0005d88: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a0005d8c: eb004da6 bl a001942c <== NOT EXECUTED if (status) a0005d90: 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); a0005d94: e1a04000 mov r4, r0 <== NOT EXECUTED if (status) a0005d98: 0a000008 beq a0005dc0 <== NOT EXECUTED chars_written += fprintf(stderr, " (status: %s)", rtems_status_text(status)); a0005d9c: e59a3000 ldr r3, [sl] <== NOT EXECUTED a0005da0: e1a00008 mov r0, r8 <== NOT EXECUTED a0005da4: e593800c ldr r8, [r3, #12] <== NOT EXECUTED a0005da8: ebffffd1 bl a0005cf4 <== NOT EXECUTED a0005dac: e59f10e0 ldr r1, [pc, #224] ; a0005e94 <== NOT EXECUTED a0005db0: e1a02000 mov r2, r0 <== NOT EXECUTED a0005db4: e1a00008 mov r0, r8 <== NOT EXECUTED a0005db8: eb003638 bl a00136a0 <== NOT EXECUTED a0005dbc: e0844000 add r4, r4, r0 <== NOT EXECUTED if (local_errno) a0005dc0: e3550000 cmp r5, #0 <== NOT EXECUTED a0005dc4: 0a000015 beq a0005e20 <== NOT EXECUTED { if ((local_errno > 0) && *strerror(local_errno)) a0005dc8: da00000d ble a0005e04 <== NOT EXECUTED a0005dcc: e1a00005 mov r0, r5 <== NOT EXECUTED a0005dd0: eb003945 bl a00142ec <== NOT EXECUTED a0005dd4: e5d03000 ldrb r3, [r0] <== NOT EXECUTED a0005dd8: e3530000 cmp r3, #0 <== NOT EXECUTED a0005ddc: 0a000008 beq a0005e04 <== NOT EXECUTED chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno)); a0005de0: e59f30a8 ldr r3, [pc, #168] ; a0005e90 <== NOT EXECUTED a0005de4: e1a00005 mov r0, r5 <== NOT EXECUTED a0005de8: e5933000 ldr r3, [r3] <== NOT EXECUTED a0005dec: e593800c ldr r8, [r3, #12] <== NOT EXECUTED a0005df0: eb00393d bl a00142ec <== NOT EXECUTED a0005df4: e59f109c ldr r1, [pc, #156] ; a0005e98 <== NOT EXECUTED a0005df8: e1a02000 mov r2, r0 <== NOT EXECUTED a0005dfc: e1a00008 mov r0, r8 <== NOT EXECUTED a0005e00: ea000004 b a0005e18 <== NOT EXECUTED else chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno); a0005e04: e59f3084 ldr r3, [pc, #132] ; a0005e90 <== NOT EXECUTED a0005e08: e59f108c ldr r1, [pc, #140] ; a0005e9c <== NOT EXECUTED a0005e0c: e1a02005 mov r2, r5 <== NOT EXECUTED a0005e10: e5933000 ldr r3, [r3] <== NOT EXECUTED a0005e14: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a0005e18: eb003620 bl a00136a0 <== NOT EXECUTED a0005e1c: e0844000 add r4, r4, r0 <== NOT EXECUTED } chars_written += fprintf(stderr, "\n"); a0005e20: e59f8068 ldr r8, [pc, #104] ; a0005e90 <== NOT EXECUTED a0005e24: e59f1074 ldr r1, [pc, #116] ; a0005ea0 <== NOT EXECUTED a0005e28: e5983000 ldr r3, [r8] <== NOT EXECUTED a0005e2c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a0005e30: eb00361a bl a00136a0 <== NOT EXECUTED (void) fflush(stderr); a0005e34: 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"); a0005e38: e1a0a000 mov sl, r0 <== NOT EXECUTED (void) fflush(stderr); a0005e3c: e593000c ldr r0, [r3, #12] <== NOT EXECUTED a0005e40: eb003558 bl a00133a8 <== NOT EXECUTED if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) a0005e44: e3160203 tst r6, #805306368 ; 0x30000000 <== NOT EXECUTED a0005e48: 1a000001 bne a0005e54 <== 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"); a0005e4c: e08a0004 add r0, sl, r4 <== NOT EXECUTED a0005e50: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED (void) fflush(stderr); if (error_flag & (RTEMS_ERROR_PANIC | RTEMS_ERROR_ABORT)) { if (error_flag & RTEMS_ERROR_PANIC) a0005e54: e3570000 cmp r7, #0 <== NOT EXECUTED a0005e58: 0a000004 beq a0005e70 <== NOT EXECUTED { rtems_error(0, "fatal error, exiting"); a0005e5c: e3a00000 mov r0, #0 <== NOT EXECUTED a0005e60: e59f103c ldr r1, [pc, #60] ; a0005ea4 <== NOT EXECUTED a0005e64: eb00001b bl a0005ed8 <== NOT EXECUTED _exit(local_errno); a0005e68: e1a00005 mov r0, r5 <== NOT EXECUTED a0005e6c: eb0002d0 bl a00069b4 <_exit> <== NOT EXECUTED } else { rtems_error(0, "fatal error, aborting"); a0005e70: e59f1030 ldr r1, [pc, #48] ; a0005ea8 <== NOT EXECUTED a0005e74: e1a00007 mov r0, r7 <== NOT EXECUTED a0005e78: eb000016 bl a0005ed8 <== NOT EXECUTED abort(); a0005e7c: eb00344d bl a0012fb8 <== NOT EXECUTED a0005e80: e3a00000 mov r0, #0 <== NOT EXECUTED } } return chars_written; } a0005e84: e8bd87f0 pop {r4, r5, r6, r7, r8, r9, sl, pc} <== NOT EXECUTED a0005e88: a0024a64 .word 0xa0024a64 a0005e8c: a0024bec .word 0xa0024bec a0005e90: a0021e58 .word 0xa0021e58 a0005e94: a00237fb .word 0xa00237fb a0005e98: a0023809 .word 0xa0023809 a0005e9c: a0023816 .word 0xa0023816 a0005ea0: a00237f2 .word 0xa00237f2 a0005ea4: a002382a .word 0xa002382a a0005ea8: a002383f .word 0xa002383f a00223a0 : /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { a00223a0: e92d4ff1 push {r0, r4, r5, r6, r7, r8, r9, sl, fp, lr} unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); a00223a4: e59fb0d8 ldr fp, [pc, #216] ; a0022484 limit++; continue; } sign = 1; } if (!isdigit(c)) a00223a8: e59f90d8 ldr r9, [pc, #216] ; a0022488 /* * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) { a00223ac: e3a04000 mov r4, #0 a00223b0: e1a05000 mov r5, r0 a00223b4: e58d1000 str r1, [sp] a00223b8: e3e08102 mvn r8, #-2147483648 ; 0x80000000 a00223bc: e1a07004 mov r7, r4 sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; if ((i > (limit / 10)) a00223c0: e3a0a00a mov sl, #10 unsigned int limit = INT_MAX; int sign = 0; int d; for (;;) { c = getc(fp); a00223c4: e5953004 ldr r3, [r5, #4] a00223c8: e2433001 sub r3, r3, #1 a00223cc: e3530000 cmp r3, #0 a00223d0: e5853004 str r3, [r5, #4] a00223d4: a5953000 ldrge r3, [r5] a00223d8: a4d36001 ldrbge r6, [r3], #1 a00223dc: a5853000 strge r3, [r5] a00223e0: aa000003 bge a00223f4 a00223e4: e59b0000 ldr r0, [fp] <== NOT EXECUTED a00223e8: e1a01005 mov r1, r5 <== NOT EXECUTED a00223ec: eb0070e2 bl a003e77c <__srget_r> <== NOT EXECUTED a00223f0: e1a06000 mov r6, r0 <== NOT EXECUTED if (c == ':') a00223f4: e356003a cmp r6, #58 ; 0x3a a00223f8: 0a000019 beq a0022464 break; if (sign == 0) { a00223fc: e3540000 cmp r4, #0 a0022400: 1a000004 bne a0022418 if (c == '-') { a0022404: e356002d cmp r6, #45 ; 0x2d sign = -1; limit++; a0022408: 02888001 addeq r8, r8, #1 a002240c: 03e04000 mvneq r4, #0 for (;;) { c = getc(fp); if (c == ':') break; if (sign == 0) { if (c == '-') { a0022410: 0affffeb beq a00223c4 sign = -1; limit++; continue; a0022414: e3a04001 mov r4, #1 } sign = 1; } if (!isdigit(c)) a0022418: e5993000 ldr r3, [r9] a002241c: e0833006 add r3, r3, r6 a0022420: e5d33001 ldrb r3, [r3, #1] a0022424: e3130004 tst r3, #4 a0022428: 0a000013 beq a002247c return 0; d = c - '0'; if ((i > (limit / 10)) a002242c: e1a00008 mov r0, r8 a0022430: e3a0100a mov r1, #10 a0022434: eb00bb66 bl a00511d4 <__aeabi_uidiv> a0022438: e1570000 cmp r7, r0 a002243c: 8a00000e bhi a002247c } sign = 1; } if (!isdigit(c)) return 0; d = c - '0'; a0022440: e2466030 sub r6, r6, #48 ; 0x30 if ((i > (limit / 10)) a0022444: 1a000004 bne a002245c a0022448: e1a00008 mov r0, r8 <== NOT EXECUTED a002244c: e3a0100a mov r1, #10 <== NOT EXECUTED a0022450: eb00bbf3 bl a0051424 <__umodsi3> <== NOT EXECUTED a0022454: e1560000 cmp r6, r0 <== NOT EXECUTED a0022458: 8a000007 bhi a002247c <== NOT EXECUTED || ((i == (limit / 10)) && (d > (limit % 10)))) return 0; i = i * 10 + d; a002245c: e027679a mla r7, sl, r7, r6 a0022460: eaffffd7 b a00223c4 } if (sign == 0) a0022464: e3540000 cmp r4, #0 return 0; *val = i * sign; a0022468: 10030497 mulne r3, r7, r4 a002246c: 159d2000 ldrne r2, [sp] a0022470: 13a00001 movne r0, #1 a0022474: 15823000 strne r3, [r2] return 1; a0022478: 1a000000 bne a0022480 a002247c: e3a00000 mov r0, #0 <== NOT EXECUTED } a0022480: e8bd8ff8 pop {r3, r4, r5, r6, r7, r8, r9, sl, fp, pc} a0022484: a0053de0 .word 0xa0053de0 a0022488: a0053dd4 .word 0xa0053dd4 a002248c : /* * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { a002248c: e92d41f0 push {r4, r5, r6, r7, r8, lr} a0022490: e1a04002 mov r4, r2 int c; *name = *bufp; a0022494: 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) { a0022498: e59d6018 ldr r6, [sp, #24] int c; *name = *bufp; for (;;) { c = getc(fp); a002249c: e59f70c8 ldr r7, [pc, #200] ; a002256c static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) { int c; *name = *bufp; a00224a0: 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) { a00224a4: e1a05000 mov r5, r0 a00224a8: e1a08003 mov r8, r3 int c; *name = *bufp; for (;;) { c = getc(fp); a00224ac: e5953004 ldr r3, [r5, #4] a00224b0: e2433001 sub r3, r3, #1 a00224b4: e3530000 cmp r3, #0 a00224b8: e5853004 str r3, [r5, #4] a00224bc: a5953000 ldrge r3, [r5] a00224c0: a4d30001 ldrbge r0, [r3], #1 a00224c4: a5853000 strge r3, [r5] a00224c8: aa000002 bge a00224d8 a00224cc: e5970000 ldr r0, [r7] a00224d0: e1a01005 mov r1, r5 a00224d4: eb0070a8 bl a003e77c <__srget_r> if (c == ':') { a00224d8: e350003a cmp r0, #58 ; 0x3a a00224dc: 1a000002 bne a00224ec if (nlFlag) a00224e0: e3560000 cmp r6, #0 a00224e4: 0a000013 beq a0022538 a00224e8: ea00001d b a0022564 <== NOT EXECUTED return 0; break; } if (c == '\n') { a00224ec: e350000a cmp r0, #10 a00224f0: 1a000002 bne a0022500 if (!nlFlag) a00224f4: e3560000 cmp r6, #0 a00224f8: 1a00000e bne a0022538 a00224fc: ea000018 b a0022564 <== NOT EXECUTED return 0; break; } if (c == EOF) a0022500: e3700001 cmn r0, #1 a0022504: 0a000016 beq a0022564 return 0; if (*nleft < 2) a0022508: e5983000 ldr r3, [r8] a002250c: e3530001 cmp r3, #1 a0022510: 9a000013 bls a0022564 return 0; **bufp = c; a0022514: e5943000 ldr r3, [r4] a0022518: e5c30000 strb r0, [r3] ++(*bufp); a002251c: e5942000 ldr r2, [r4] --(*nleft); a0022520: e5983000 ldr r3, [r8] if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); a0022524: e2822001 add r2, r2, #1 --(*nleft); a0022528: e2433001 sub r3, r3, #1 if (c == EOF) return 0; if (*nleft < 2) return 0; **bufp = c; ++(*bufp); a002252c: e5842000 str r2, [r4] --(*nleft); a0022530: e5883000 str r3, [r8] } a0022534: eaffffdc b a00224ac **bufp = '\0'; a0022538: e5943000 ldr r3, [r4] a002253c: e3a02000 mov r2, #0 ++(*bufp); --(*nleft); a0022540: e3a00001 mov r0, #1 return 0; **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; a0022544: e5c32000 strb r2, [r3] ++(*bufp); a0022548: e5942000 ldr r2, [r4] --(*nleft); a002254c: e5983000 ldr r3, [r8] **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); a0022550: e0822000 add r2, r2, r0 --(*nleft); a0022554: e2433001 sub r3, r3, #1 **bufp = c; ++(*bufp); --(*nleft); } **bufp = '\0'; ++(*bufp); a0022558: e5842000 str r2, [r4] --(*nleft); a002255c: e5883000 str r3, [r8] return 1; a0022560: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} a0022564: e3a00000 mov r0, #0 <== NOT EXECUTED } a0022568: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} <== NOT EXECUTED a002256c: a0053de0 .word 0xa0053de0 a0022570 : FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { a0022570: e92d41f0 push {r4, r5, r6, r7, r8, lr} a0022574: e24dd014 sub sp, sp, #20 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a0022578: e28d6008 add r6, sp, #8 a002257c: e28d5004 add r5, sp, #4 FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { a0022580: e58d2008 str r2, [sp, #8] a0022584: e58d3004 str r3, [sp, #4] int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a0022588: e3a08000 mov r8, #0 a002258c: e1a02006 mov r2, r6 a0022590: e1a03005 mov r3, r5 a0022594: e58d8000 str r8, [sp] FILE *fp, struct group *grp, char *buffer, size_t bufsize ) { a0022598: e1a07000 mov r7, r0 a002259c: e1a04001 mov r4, r1 int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a00225a0: ebffffb9 bl a002248c a00225a4: e1500008 cmp r0, r8 a00225a8: 0a00003b beq a002269c || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) a00225ac: e1a00007 mov r0, r7 a00225b0: e2841004 add r1, r4, #4 a00225b4: e1a02006 mov r2, r6 a00225b8: e1a03005 mov r3, r5 a00225bc: e58d8000 str r8, [sp] a00225c0: ebffffb1 bl a002248c { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a00225c4: e1500008 cmp r0, r8 a00225c8: 0a000033 beq a002269c || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) a00225cc: e1a00007 mov r0, r7 a00225d0: e28d1010 add r1, sp, #16 a00225d4: ebffff71 bl a00223a0 { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a00225d8: e1500008 cmp r0, r8 a00225dc: 0a00002e beq a002269c || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &grgid) || !scanString(fp, &grmem, &buffer, &bufsize, 1)) a00225e0: e1a03005 mov r3, r5 a00225e4: e1a00007 mov r0, r7 a00225e8: e1a02006 mov r2, r6 a00225ec: e3a05001 mov r5, #1 a00225f0: e28d100c add r1, sp, #12 a00225f4: e58d5000 str r5, [sp] a00225f8: ebffffa3 bl a002248c { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a00225fc: 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; a0022600: 11dd31b0 ldrhne r3, [sp, #16] /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0022604: 159d000c ldrne r0, [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; a0022608: 11c430b8 strhne r3, [r4, #8] { int grgid; char *grmem, *cp; int memcount; if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0) a002260c: 1a000002 bne a002261c a0022610: ea000021 b a002269c <== NOT EXECUTED /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') a0022614: e353002c cmp r3, #44 ; 0x2c memcount++; a0022618: 02855001 addeq r5, r5, #1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a002261c: e7d03008 ldrb r3, [r0, r8] if(*cp == ',') memcount++; a0022620: e2888001 add r8, r8, #1 grp->gr_gid = grgid; /* * Determine number of members */ for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0022624: e3530000 cmp r3, #0 a0022628: 1afffff9 bne a0022614 } /* * Hack to produce (hopefully) a suitably-aligned array of pointers */ if (bufsize < (((memcount+1)*sizeof(char *)) + 15)) a002262c: e59d2004 ldr r2, [sp, #4] a0022630: e1a05105 lsl r5, r5, #2 a0022634: e2855013 add r5, r5, #19 a0022638: e1520005 cmp r2, r5 a002263c: 3a000016 bcc a002269c return 0; grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15); a0022640: e59d1008 ldr r1, [sp, #8] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; a0022644: e3a02001 mov r2, #1 for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { if(*cp == ',') { *cp = '\0'; a0022648: e1a0c003 mov ip, 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); a002264c: e281100f add r1, r1, #15 a0022650: e3c1100f bic r1, r1, #15 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; a0022654: e5810000 str r0, [r1] /* * 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); a0022658: e584100c str r1, [r4, #12] /* * Fill in pointer array */ grp->gr_mem[0] = grmem; a002265c: e59d100c ldr r1, [sp, #12] a0022660: e0813002 add r3, r1, r2 for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0022664: ea000005 b a0022680 if(*cp == ',') { a0022668: e351002c cmp r1, #44 ; 0x2c *cp = '\0'; a002266c: 0543c001 strbeq ip, [r3, #-1] grp->gr_mem[memcount++] = cp + 1; a0022670: 0594100c ldreq r1, [r4, #12] a0022674: 07813102 streq r3, [r1, r2, lsl #2] a0022678: 02822001 addeq r2, r2, #1 a002267c: e2833001 add r3, r3, #1 /* * Fill in pointer array */ grp->gr_mem[0] = grmem; for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) { a0022680: e5531001 ldrb r1, [r3, #-1] a0022684: e3510000 cmp r1, #0 a0022688: 1afffff6 bne a0022668 if(*cp == ',') { *cp = '\0'; grp->gr_mem[memcount++] = cp + 1; } } grp->gr_mem[memcount] = NULL; a002268c: e594300c ldr r3, [r4, #12] a0022690: e3a00001 mov r0, #1 a0022694: e7831102 str r1, [r3, r2, lsl #2] return 1; a0022698: ea000000 b a00226a0 a002269c: e3a00000 mov r0, #0 <== NOT EXECUTED } a00226a0: e28dd014 add sp, sp, #20 a00226a4: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} a00226e8 : FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { a00226e8: e92d41f0 push {r4, r5, r6, r7, r8, lr} a00226ec: e24dd014 sub sp, sp, #20 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a00226f0: e28d7008 add r7, sp, #8 a00226f4: e28d6004 add r6, sp, #4 FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { a00226f8: e58d2008 str r2, [sp, #8] a00226fc: e58d3004 str r3, [sp, #4] int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0022700: e3a08000 mov r8, #0 a0022704: e1a02007 mov r2, r7 a0022708: e1a03006 mov r3, r6 a002270c: e58d8000 str r8, [sp] FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) { a0022710: e1a05000 mov r5, r0 a0022714: e1a04001 mov r4, r1 int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0022718: ebffff5b bl a002248c a002271c: e1500008 cmp r0, r8 a0022720: 0a000038 beq a0022808 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) a0022724: e1a00005 mov r0, r5 a0022728: e2841004 add r1, r4, #4 a002272c: e1a02007 mov r2, r7 a0022730: e1a03006 mov r3, r6 a0022734: e58d8000 str r8, [sp] a0022738: ebffff53 bl a002248c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a002273c: e1500008 cmp r0, r8 a0022740: 0a000030 beq a0022808 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) a0022744: e1a00005 mov r0, r5 a0022748: e28d1010 add r1, sp, #16 a002274c: ebffff13 bl a00223a0 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0022750: e1500008 cmp r0, r8 a0022754: 0a00002b beq a0022808 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) a0022758: e1a00005 mov r0, r5 a002275c: e28d100c add r1, sp, #12 a0022760: ebffff0e bl a00223a0 size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0022764: e1500008 cmp r0, r8 a0022768: 0a000026 beq a0022808 || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0) || !scanInt(fp, &pwuid) || !scanInt(fp, &pwgid) || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0) a002276c: e1a00005 mov r0, r5 a0022770: e284100c add r1, r4, #12 a0022774: e1a02007 mov r2, r7 a0022778: e1a03006 mov r3, r6 a002277c: e58d8000 str r8, [sp] a0022780: ebffff41 bl a002248c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a0022784: e1500008 cmp r0, r8 a0022788: 0a00001e beq a0022808 || !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) a002278c: e1a00005 mov r0, r5 a0022790: e2841010 add r1, r4, #16 a0022794: e1a02007 mov r2, r7 a0022798: e1a03006 mov r3, r6 a002279c: e58d8000 str r8, [sp] a00227a0: ebffff39 bl a002248c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a00227a4: e1500008 cmp r0, r8 a00227a8: 0a000016 beq a0022808 || !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) a00227ac: e1a00005 mov r0, r5 a00227b0: e2841014 add r1, r4, #20 a00227b4: e1a02007 mov r2, r7 a00227b8: e1a03006 mov r3, r6 a00227bc: e58d8000 str r8, [sp] a00227c0: ebffff31 bl a002248c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a00227c4: e1500008 cmp r0, r8 a00227c8: 0a00000e beq a0022808 || !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)) a00227cc: e1a00005 mov r0, r5 a00227d0: e1a02007 mov r2, r7 a00227d4: e1a03006 mov r3, r6 a00227d8: e3a05001 mov r5, #1 a00227dc: e2841018 add r1, r4, #24 a00227e0: e58d5000 str r5, [sp] a00227e4: ebffff28 bl a002248c size_t bufsize ) { int pwuid, pwgid; if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0) a00227e8: e1500008 cmp r0, r8 a00227ec: 0a000005 beq a0022808 || !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; a00227f0: e1dd30bc ldrh r3, [sp, #12] a00227f4: e1a00005 mov r0, r5 a00227f8: 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; a00227fc: e1dd31b0 ldrh r3, [sp, #16] a0022800: e1c430b8 strh r3, [r4, #8] pwd->pw_gid = pwgid; return 1; a0022804: ea000000 b a002280c a0022808: e3a00000 mov r0, #0 <== NOT EXECUTED } a002280c: e28dd014 add sp, sp, #20 a0022810: e8bd81f0 pop {r4, r5, r6, r7, r8, pc} a0022348 : int setgid( gid_t gid ) { _POSIX_types_Gid = gid; a0022348: e59f300c ldr r3, [pc, #12] ; a002235c <== NOT EXECUTED a002234c: e5933000 ldr r3, [r3] <== NOT EXECUTED a0022350: e1c303b4 strh r0, [r3, #52] ; 0x34 <== NOT EXECUTED return 0; } a0022354: e3a00000 mov r0, #0 <== NOT EXECUTED a0022358: e12fff1e bx lr <== NOT EXECUTED a002235c: a00535c8 .word 0xa00535c8 a0022920 : return NULL; return &grent; } void setgrent(void) { a0022920: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED init_etc_passwd_group(); a0022924: ebffffca bl a0022854 <== NOT EXECUTED if (group_fp != NULL) a0022928: e59f3024 ldr r3, [pc, #36] ; a0022954 <== NOT EXECUTED a002292c: e5930000 ldr r0, [r3] <== NOT EXECUTED a0022930: e3500000 cmp r0, #0 <== NOT EXECUTED a0022934: 0a000000 beq a002293c <== NOT EXECUTED fclose(group_fp); a0022938: eb005add bl a00394b4 <== NOT EXECUTED group_fp = fopen("/etc/group", "r"); a002293c: e59f0014 ldr r0, [pc, #20] ; a0022958 <== NOT EXECUTED a0022940: e59f1014 ldr r1, [pc, #20] ; a002295c <== NOT EXECUTED a0022944: eb005cfd bl a0039d40 <== NOT EXECUTED a0022948: e59f3004 ldr r3, [pc, #4] ; a0022954 <== NOT EXECUTED a002294c: e5830000 str r0, [r3] <== NOT EXECUTED } a0022950: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a0022954: a0060ba4 .word 0xa0060ba4 a0022958: a00577c4 .word 0xa00577c4 a002295c: a0058570 .word 0xa0058570 a0022af4 : return NULL; return &pwent; } void setpwent(void) { a0022af4: e52de004 push {lr} ; (str lr, [sp, #-4]!) <== NOT EXECUTED init_etc_passwd_group(); a0022af8: ebffff55 bl a0022854 <== NOT EXECUTED if (passwd_fp != NULL) a0022afc: e59f3024 ldr r3, [pc, #36] ; a0022b28 <== NOT EXECUTED a0022b00: e5930004 ldr r0, [r3, #4] <== NOT EXECUTED a0022b04: e3500000 cmp r0, #0 <== NOT EXECUTED a0022b08: 0a000000 beq a0022b10 <== NOT EXECUTED fclose(passwd_fp); a0022b0c: eb005a68 bl a00394b4 <== NOT EXECUTED passwd_fp = fopen("/etc/passwd", "r"); a0022b10: e59f0014 ldr r0, [pc, #20] ; a0022b2c <== NOT EXECUTED a0022b14: e59f1014 ldr r1, [pc, #20] ; a0022b30 <== NOT EXECUTED a0022b18: eb005c88 bl a0039d40 <== NOT EXECUTED a0022b1c: e59f3004 ldr r3, [pc, #4] ; a0022b28 <== NOT EXECUTED a0022b20: e5830004 str r0, [r3, #4] <== NOT EXECUTED } a0022b24: e49df004 pop {pc} ; (ldr pc, [sp], #4) <== NOT EXECUTED a0022b28: a0060ba4 .word 0xa0060ba4 a0022b2c: a0057716 .word 0xa0057716 a0022b30: a0058570 .word 0xa0058570 a00052ac : int setuid( uid_t uid ) { _POSIX_types_Uid = uid; a00052ac: e59f300c ldr r3, [pc, #12] ; a00052c0 <== NOT EXECUTED a00052b0: e5933000 ldr r3, [r3] <== NOT EXECUTED a00052b4: e1c303b2 strh r0, [r3, #50] ; 0x32 <== NOT EXECUTED return 0; } a00052b8: e3a00000 mov r0, #0 <== NOT EXECUTED a00052bc: e12fff1e bx lr <== NOT EXECUTED a00052c0: a00535c8 .word 0xa00535c8 a0004a7c : struct sigaction *oact ) { ISR_Level level; if ( oact ) a0004a7c: e3520000 cmp r2, #0 int sigaction( int sig, const struct sigaction *act, struct sigaction *oact ) { a0004a80: e92d40f0 push {r4, r5, r6, r7, lr} a0004a84: e1a04000 mov r4, r0 a0004a88: e1a05001 mov r5, r1 ISR_Level level; if ( oact ) a0004a8c: 0a00000a beq a0004abc *oact = _POSIX_signals_Vectors[ sig ]; a0004a90: e3a0300c mov r3, #12 a0004a94: e0010093 mul r1, r3, r0 a0004a98: e59f00e4 ldr r0, [pc, #228] ; a0004b84 a0004a9c: e1a03002 mov r3, r2 a0004aa0: e790c001 ldr ip, [r0, r1] a0004aa4: e0801001 add r1, r0, r1 a0004aa8: e483c004 str ip, [r3], #4 a0004aac: e5910004 ldr r0, [r1, #4] a0004ab0: e5820004 str r0, [r2, #4] a0004ab4: e5912008 ldr r2, [r1, #8] a0004ab8: e5832004 str r2, [r3, #4] if ( !sig ) a0004abc: e3540000 cmp r4, #0 a0004ac0: 0a000004 beq a0004ad8 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !is_valid_signo(sig) ) a0004ac4: e2443001 sub r3, r4, #1 a0004ac8: e353001f cmp r3, #31 a0004acc: 8a000001 bhi a0004ad8 * * NOTE: Solaris documentation claims to "silently enforce" this which * contradicts the POSIX specification. */ if ( sig == SIGKILL ) a0004ad0: e3540009 cmp r4, #9 a0004ad4: 1a000004 bne a0004aec rtems_set_errno_and_return_minus_one( EINVAL ); a0004ad8: eb0023ba bl a000d9c8 <__errno> a0004adc: e3a03016 mov r3, #22 a0004ae0: e5803000 str r3, [r0] a0004ae4: e3e00000 mvn r0, #0 a0004ae8: e8bd80f0 pop {r4, r5, r6, r7, pc} /* * Evaluate the new action structure and set the global signal vector * appropriately. */ if ( act ) { a0004aec: e3550000 cmp r5, #0 a0004af0: 1a000001 bne a0004afc a0004af4: e1a00005 mov r0, r5 <== NOT EXECUTED a0004af8: e8bd80f0 pop {r4, r5, r6, r7, pc} <== NOT EXECUTED static inline uint32_t arm_interrupt_disable( void ) { uint32_t arm_switch_reg; uint32_t level; asm volatile ( a0004afc: e10f7000 mrs r7, CPSR a0004b00: e3873080 orr r3, r7, #128 ; 0x80 a0004b04: e129f003 msr CPSR_fc, r3 * Unless the user is installing the default signal actions, then * we can just copy the provided sigaction structure into the vectors. */ _ISR_Disable( level ); if ( act->sa_handler == SIG_DFL ) { a0004b08: e5953008 ldr r3, [r5, #8] a0004b0c: e59f6070 ldr r6, [pc, #112] ; a0004b84 a0004b10: e3530000 cmp r3, #0 a0004b14: 1a00000b bne a0004b48 _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ]; a0004b18: e3a0200c mov r2, #12 a0004b1c: e0030492 mul r3, r2, r4 a0004b20: e59f0060 ldr r0, [pc, #96] ; a0004b88 a0004b24: e0862003 add r2, r6, r3 a0004b28: e0801003 add r1, r0, r3 a0004b2c: e790c003 ldr ip, [r0, r3] a0004b30: e5910008 ldr r0, [r1, #8] a0004b34: e5911004 ldr r1, [r1, #4] a0004b38: e786c003 str ip, [r6, r3] a0004b3c: e5820008 str r0, [r2, #8] a0004b40: e5821004 str r1, [r2, #4] a0004b44: ea00000b b a0004b78 } else { _POSIX_signals_Clear_process_signals( sig ); a0004b48: e1a00004 mov r0, r4 a0004b4c: eb0015d3 bl a000a2a0 <_POSIX_signals_Clear_process_signals> _POSIX_signals_Vectors[ sig ] = *act; a0004b50: e1a03005 mov r3, r5 a0004b54: e3a0200c mov r2, #12 a0004b58: e4930004 ldr r0, [r3], #4 a0004b5c: e0010492 mul r1, r2, r4 a0004b60: e7860001 str r0, [r6, r1] a0004b64: e0862001 add r2, r6, r1 a0004b68: e5951004 ldr r1, [r5, #4] a0004b6c: e5821004 str r1, [r2, #4] a0004b70: e5933004 ldr r3, [r3, #4] a0004b74: e5823008 str r3, [r2, #8] static inline void arm_interrupt_enable( uint32_t level ) { ARM_SWITCH_REGISTERS; asm volatile ( a0004b78: e129f007 msr CPSR_fc, r7 a0004b7c: e3a00000 mov r0, #0 * + If we are now ignoring a signal that was previously pending, * we clear the pending signal indicator. */ return 0; } a0004b80: e8bd80f0 pop {r4, r5, r6, r7, pc} a0004b84: a001c3b8 .word 0xa001c3b8 a0004b88: a001ad14 .word 0xa001ad14 a0002984 : int i; /* * Obtain output semaphore if character will be echoed */ if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) { a0002984: e591203c ldr r2, [r1, #60] ; 0x3c <== NOT EXECUTED a0002988: e59f3050 ldr r3, [pc, #80] ; a00029e0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { a000298c: 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)) { a0002990: e0023003 and r3, r2, r3 <== NOT EXECUTED a0002994: e3530000 cmp r3, #0 <== NOT EXECUTED /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) { a0002998: e1a04001 mov r4, r1 <== NOT EXECUTED a000299c: 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)) { a00029a0: 0a00000b beq a00029d4 <== NOT EXECUTED rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT); a00029a4: e3a01000 mov r1, #0 <== NOT EXECUTED a00029a8: e1a02001 mov r2, r1 <== NOT EXECUTED a00029ac: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED a00029b0: eb0005f5 bl a000418c <== NOT EXECUTED i = iproc (c, tty); a00029b4: e1a01004 mov r1, r4 <== NOT EXECUTED a00029b8: e1a00005 mov r0, r5 <== NOT EXECUTED a00029bc: ebffff87 bl a00027e0 <== NOT EXECUTED a00029c0: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_semaphore_release (tty->osem); a00029c4: e5940018 ldr r0, [r4, #24] <== NOT EXECUTED a00029c8: eb000635 bl a00042a4 <== NOT EXECUTED } else { i = iproc (c, tty); } return i; } a00029cc: e1a00005 mov r0, r5 <== NOT EXECUTED a00029d0: 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); a00029d4: e1a00005 mov r0, r5 <== NOT EXECUTED } return i; } a00029d8: 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); a00029dc: eaffff7f b a00027e0 <== NOT EXECUTED a00029e0: 00000e78 .word 0x00000e78 a0006764 : int _STAT_NAME( const char *path, struct stat *buf ) { a0006764: e92d4070 push {r4, r5, r6, lr} /* * Check to see if we were passed a valid pointer. */ if ( !buf ) a0006768: e2515000 subs r5, r1, #0 int _STAT_NAME( const char *path, struct stat *buf ) { a000676c: e24dd018 sub sp, sp, #24 a0006770: e1a06000 mov r6, r0 /* * Check to see if we were passed a valid pointer. */ if ( !buf ) a0006774: 1a000002 bne a0006784 rtems_set_errno_and_return_minus_one( EFAULT ); a0006778: eb00cb00 bl a0039380 <__errno> a000677c: e3a0300e mov r3, #14 a0006780: ea000018 b a00067e8 status = rtems_filesystem_evaluate_path( path, strlen( path ), a0006784: eb00e588 bl a003fdac a0006788: e28d4004 add r4, sp, #4 a000678c: e1a01000 mov r1, r0 a0006790: e3a0c001 mov ip, #1 a0006794: e1a00006 mov r0, r6 a0006798: e3a02000 mov r2, #0 a000679c: e1a03004 mov r3, r4 a00067a0: e58dc000 str ip, [sp] a00067a4: ebfffa3f bl a00050a8 0, &loc, _STAT_FOLLOW_LINKS ); if ( status != 0 ) a00067a8: e2501000 subs r1, r0, #0 a00067ac: 1a00000e bne a00067ec return -1; if ( !loc.handlers->fstat_h ){ a00067b0: e59d300c ldr r3, [sp, #12] a00067b4: e5933018 ldr r3, [r3, #24] a00067b8: e3530000 cmp r3, #0 a00067bc: 1a00000c bne a00067f4 rtems_filesystem_freenode( &loc ); a00067c0: e59d3010 ldr r3, [sp, #16] <== NOT EXECUTED a00067c4: e3530000 cmp r3, #0 <== NOT EXECUTED a00067c8: 0a000004 beq a00067e0 <== NOT EXECUTED a00067cc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00067d0: e3530000 cmp r3, #0 <== NOT EXECUTED a00067d4: 0a000001 beq a00067e0 <== NOT EXECUTED a00067d8: e1a00004 mov r0, r4 <== NOT EXECUTED a00067dc: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00067e0: eb00cae6 bl a0039380 <__errno> <== NOT EXECUTED a00067e4: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00067e8: e5803000 str r3, [r0] a00067ec: e3e05000 mvn r5, #0 a00067f0: ea000010 b a0006838 /* * Zero out the stat structure so the various support * versions of stat don't have to. */ memset( buf, 0, sizeof(struct stat) ); a00067f4: e3a02048 mov r2, #72 ; 0x48 a00067f8: e1a00005 mov r0, r5 a00067fc: eb00d797 bl a003c660 status = (*loc.handlers->fstat_h)( &loc, buf ); a0006800: e1a01005 mov r1, r5 a0006804: e59d300c ldr r3, [sp, #12] a0006808: e1a00004 mov r0, r4 a000680c: e1a0e00f mov lr, pc a0006810: e593f018 ldr pc, [r3, #24] rtems_filesystem_freenode( &loc ); a0006814: 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 ); a0006818: e1a05000 mov r5, r0 rtems_filesystem_freenode( &loc ); a000681c: e3530000 cmp r3, #0 a0006820: 0a000004 beq a0006838 a0006824: e593301c ldr r3, [r3, #28] a0006828: e3530000 cmp r3, #0 a000682c: 0a000001 beq a0006838 a0006830: e1a00004 mov r0, r4 a0006834: e12fff33 blx r3 return status; } a0006838: e1a00005 mov r0, r5 a000683c: e28dd018 add sp, sp, #24 a0006840: e8bd8070 pop {r4, r5, r6, pc} a0023748 : */ extern rtems_chain_control rtems_filesystem_mount_table_control; int statvfs (const char *path, struct statvfs *sb) { a0023748: e92d4070 push {r4, r5, r6, lr} <== NOT EXECUTED a002374c: e24dd018 sub sp, sp, #24 <== NOT EXECUTED a0023750: e1a05001 mov r5, r1 <== NOT EXECUTED a0023754: 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 ) ) a0023758: eb007193 bl a003fdac <== NOT EXECUTED a002375c: e28d4004 add r4, sp, #4 <== NOT EXECUTED a0023760: e1a01000 mov r1, r0 <== NOT EXECUTED a0023764: e3a0c001 mov ip, #1 <== NOT EXECUTED a0023768: e1a00006 mov r0, r6 <== NOT EXECUTED a002376c: e3a02000 mov r2, #0 <== NOT EXECUTED a0023770: e1a03004 mov r3, r4 <== NOT EXECUTED a0023774: e58dc000 str ip, [sp] <== NOT EXECUTED a0023778: ebff864a bl a00050a8 <== NOT EXECUTED a002377c: e2501000 subs r1, r0, #0 <== NOT EXECUTED a0023780: 1a000007 bne a00237a4 <== NOT EXECUTED return -1; mt_entry = loc.mt_entry; a0023784: e59d6014 ldr r6, [sp, #20] <== NOT EXECUTED fs_mount_root = &mt_entry->mt_fs_root; a0023788: e5963028 ldr r3, [r6, #40] ; 0x28 <== NOT EXECUTED a002378c: e5933044 ldr r3, [r3, #68] ; 0x44 <== NOT EXECUTED a0023790: e3530000 cmp r3, #0 <== NOT EXECUTED a0023794: 1a000004 bne a00237ac <== NOT EXECUTED if ( !fs_mount_root->ops->statvfs_h ) rtems_set_errno_and_return_minus_one( ENOTSUP ); a0023798: eb0056f8 bl a0039380 <__errno> <== NOT EXECUTED a002379c: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00237a0: e5803000 str r3, [r0] <== NOT EXECUTED a00237a4: e3e05000 mvn r5, #0 <== NOT EXECUTED a00237a8: ea000010 b a00237f0 <== NOT EXECUTED memset (sb, 0, sizeof (struct statvfs)); a00237ac: e3a02038 mov r2, #56 ; 0x38 <== NOT EXECUTED a00237b0: e1a00005 mov r0, r5 <== NOT EXECUTED a00237b4: eb0063a9 bl a003c660 <== NOT EXECUTED result = ( fs_mount_root->ops->statvfs_h )( fs_mount_root, sb ); a00237b8: e1a01005 mov r1, r5 <== NOT EXECUTED a00237bc: e5963028 ldr r3, [r6, #40] ; 0x28 <== NOT EXECUTED a00237c0: e286001c add r0, r6, #28 <== NOT EXECUTED a00237c4: e1a0e00f mov lr, pc <== NOT EXECUTED a00237c8: e593f044 ldr pc, [r3, #68] ; 0x44 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a00237cc: 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 ); a00237d0: e1a05000 mov r5, r0 <== NOT EXECUTED rtems_filesystem_freenode( &loc ); a00237d4: e3530000 cmp r3, #0 <== NOT EXECUTED a00237d8: 0a000004 beq a00237f0 <== NOT EXECUTED a00237dc: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a00237e0: e3530000 cmp r3, #0 <== NOT EXECUTED a00237e4: 0a000001 beq a00237f0 <== NOT EXECUTED a00237e8: e1a00004 mov r0, r4 <== NOT EXECUTED a00237ec: e12fff33 blx r3 <== NOT EXECUTED return result; } a00237f0: e1a00005 mov r0, r5 <== NOT EXECUTED a00237f4: e28dd018 add sp, sp, #24 <== NOT EXECUTED a00237f8: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED a00237fc : int symlink( const char *actualpath, const char *sympath ) { a00237fc: 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 ); a0023800: e5d13000 ldrb r3, [r1] int symlink( const char *actualpath, const char *sympath ) { a0023804: e24dd018 sub sp, sp, #24 a0023808: e1a06001 mov r6, r1 rtems_filesystem_location_info_t loc; int i; const char *name_start; int result; rtems_filesystem_get_start_loc( sympath, &i, &loc ); a002380c: e353002f cmp r3, #47 ; 0x2f a0023810: 1353005c cmpne r3, #92 ; 0x5c int symlink( const char *actualpath, const char *sympath ) { a0023814: 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 ); a0023818: 13a05000 movne r5, #0 a002381c: 03a05001 moveq r5, #1 a0023820: 0a000001 beq a002382c a0023824: e3530000 cmp r3, #0 a0023828: 1a000005 bne a0023844 a002382c: e59f30d4 ldr r3, [pc, #212] ; a0023908 a0023830: e1a0c00d mov ip, sp a0023834: e3a05001 mov r5, #1 a0023838: e593e000 ldr lr, [r3] a002383c: e28ee018 add lr, lr, #24 a0023840: ea000003 b a0023854 a0023844: e59f30bc ldr r3, [pc, #188] ; a0023908 a0023848: e1a0c00d mov ip, sp a002384c: e593e000 ldr lr, [r3] a0023850: e28ee004 add lr, lr, #4 a0023854: e8be000f ldm lr!, {r0, r1, r2, r3} a0023858: e8ac000f stmia ip!, {r0, r1, r2, r3} a002385c: e59e3000 ldr r3, [lr] a0023860: e58c3000 str r3, [ip] if ( !loc.ops->evalformake_h ) { a0023864: e59d300c ldr r3, [sp, #12] a0023868: e5933004 ldr r3, [r3, #4] a002386c: e3530000 cmp r3, #0 a0023870: 0a00000f beq a00238b4 rtems_set_errno_and_return_minus_one( ENOTSUP ); } result = (*loc.ops->evalformake_h)( &sympath[i], &loc, &name_start ); a0023874: e0860005 add r0, r6, r5 a0023878: e1a0100d mov r1, sp a002387c: e28d2014 add r2, sp, #20 a0023880: e12fff33 blx r3 if ( result != 0 ) a0023884: 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 ); a0023888: e1a0700d mov r7, sp if ( result != 0 ) a002388c: 1a00000b bne a00238c0 return -1; if ( !loc.ops->symlink_h ) { a0023890: e59d200c ldr r2, [sp, #12] a0023894: e5923038 ldr r3, [r2, #56] ; 0x38 a0023898: e3530000 cmp r3, #0 a002389c: 1a000009 bne a00238c8 rtems_filesystem_freenode( &loc ); a00238a0: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a00238a4: e3530000 cmp r3, #0 <== NOT EXECUTED a00238a8: 0a000001 beq a00238b4 <== NOT EXECUTED a00238ac: e1a0000d mov r0, sp <== NOT EXECUTED a00238b0: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00238b4: eb0056b1 bl a0039380 <__errno> <== NOT EXECUTED a00238b8: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00238bc: e5803000 str r3, [r0] <== NOT EXECUTED a00238c0: e3e04000 mvn r4, #0 a00238c4: ea00000c b a00238fc } result = (*loc.ops->symlink_h)( &loc, actualpath, name_start); a00238c8: e1a01004 mov r1, r4 a00238cc: e1a0000d mov r0, sp a00238d0: e59d2014 ldr r2, [sp, #20] a00238d4: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a00238d8: 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); a00238dc: e1a04000 mov r4, r0 rtems_filesystem_freenode( &loc ); a00238e0: e3530000 cmp r3, #0 a00238e4: 0a000004 beq a00238fc a00238e8: e593301c ldr r3, [r3, #28] a00238ec: e3530000 cmp r3, #0 a00238f0: 0a000001 beq a00238fc a00238f4: e1a0000d mov r0, sp a00238f8: e12fff33 blx r3 return result; } a00238fc: e1a00004 mov r0, r4 a0023900: e28dd018 add sp, sp, #24 a0023904: e8bd80f0 pop {r4, r5, r6, r7, pc} a0023908: a00535c8 .word 0xa00535c8 a000f644 : int fd, int opt, struct termios *tp ) { switch (opt) { a000f644: e3510000 cmp r1, #0 int tcsetattr( int fd, int opt, struct termios *tp ) { a000f648: e92d4030 push {r4, r5, lr} a000f64c: e1a04002 mov r4, r2 a000f650: e1a05000 mov r5, r0 switch (opt) { a000f654: 0a00000a beq a000f684 a000f658: e3510001 cmp r1, #1 <== NOT EXECUTED a000f65c: 0a000003 beq a000f670 <== NOT EXECUTED default: rtems_set_errno_and_return_minus_one( ENOTSUP ); a000f660: eb001402 bl a0014670 <__errno> <== NOT EXECUTED a000f664: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a000f668: e5803000 str r3, [r0] <== NOT EXECUTED a000f66c: ea000009 b a000f698 <== NOT EXECUTED case TCSADRAIN: if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0) a000f670: e3a01003 mov r1, #3 <== NOT EXECUTED a000f674: e3a02000 mov r2, #0 <== NOT EXECUTED a000f678: eb000e2d bl a0012f34 <== NOT EXECUTED a000f67c: e3500000 cmp r0, #0 <== NOT EXECUTED a000f680: ba000004 blt a000f698 <== NOT EXECUTED return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); a000f684: e1a00005 mov r0, r5 a000f688: e1a02004 mov r2, r4 a000f68c: e3a01002 mov r1, #2 } } a000f690: e8bd4030 pop {r4, r5, lr} return -1; /* * Fall through to.... */ case TCSANOW: return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp ); a000f694: ea000e26 b a0012f34 } } a000f698: e3e00000 mvn r0, #0 <== NOT EXECUTED a000f69c: e8bd8030 pop {r4, r5, pc} <== NOT EXECUTED a000c148 : #include int unlink( const char *path ) { a000c148: e92d4070 push {r4, r5, r6, lr} a000c14c: e24dd02c sub sp, sp, #44 ; 0x2c a000c150: e1a06000 mov r6, r0 /* * Get the node to be unlinked. Find the parent path first. */ parentpathlen = rtems_filesystem_dirname ( path ); a000c154: ebffd3d4 bl a00010ac if ( parentpathlen == 0 ) a000c158: e2505000 subs r5, r0, #0 a000c15c: 1a000015 bne a000c1b8 rtems_filesystem_get_start_loc( path, &i, &parentloc ); a000c160: e5d63000 ldrb r3, [r6] a000c164: e353002f cmp r3, #47 ; 0x2f a000c168: 1353005c cmpne r3, #92 ; 0x5c a000c16c: 0a000001 beq a000c178 a000c170: e3530000 cmp r3, #0 <== NOT EXECUTED a000c174: 1a000005 bne a000c190 <== NOT EXECUTED a000c178: e59f3228 ldr r3, [pc, #552] ; a000c3a8 a000c17c: e28dc018 add ip, sp, #24 a000c180: e3a04000 mov r4, #0 a000c184: e593e000 ldr lr, [r3] a000c188: e28ee018 add lr, lr, #24 a000c18c: ea000004 b a000c1a4 a000c190: e59f3210 ldr r3, [pc, #528] ; a000c3a8 <== NOT EXECUTED a000c194: e28dc018 add ip, sp, #24 <== NOT EXECUTED a000c198: e1a04005 mov r4, r5 <== NOT EXECUTED a000c19c: e593e000 ldr lr, [r3] <== NOT EXECUTED a000c1a0: e28ee004 add lr, lr, #4 <== NOT EXECUTED a000c1a4: e8be000f ldm lr!, {r0, r1, r2, r3} a000c1a8: e8ac000f stmia ip!, {r0, r1, r2, r3} a000c1ac: e59e3000 ldr r3, [lr] a000c1b0: e58c3000 str r3, [ip] a000c1b4: ea000009 b a000c1e0 else { result = rtems_filesystem_evaluate_path( path, parentpathlen, a000c1b8: e3a0c000 mov ip, #0 a000c1bc: e1a00006 mov r0, r6 a000c1c0: e1a01005 mov r1, r5 a000c1c4: e3a02002 mov r2, #2 a000c1c8: e28d3018 add r3, sp, #24 a000c1cc: e58dc000 str ip, [sp] a000c1d0: ebffd3fb bl a00011c4 RTEMS_LIBIO_PERMS_WRITE, &parentloc, false ); if ( result != 0 ) a000c1d4: e3500000 cmp r0, #0 a000c1d8: 1a00006e bne a000c398 a000c1dc: e3a04001 mov r4, #1 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; a000c1e0: e28dc004 add ip, sp, #4 a000c1e4: e28de018 add lr, sp, #24 a000c1e8: e8be000f ldm lr!, {r0, r1, r2, r3} a000c1ec: e8ac000f stmia ip!, {r0, r1, r2, r3} a000c1f0: e59e3000 ldr r3, [lr] name = path + parentpathlen; a000c1f4: e0865005 add r5, r6, r5 name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a000c1f8: e1a00005 mov r0, r5 /* * Start from the parent to find the node that should be under it. */ loc = parentloc; a000c1fc: e58c3000 str r3, [ip] name = path + parentpathlen; name += rtems_filesystem_prefix_separators( name, strlen( name ) ); a000c200: eb0005d9 bl a000d96c a000c204: e1a01000 mov r1, r0 a000c208: e1a00005 mov r0, r5 a000c20c: ebffd39a bl a000107c a000c210: e0856000 add r6, r5, r0 result = rtems_filesystem_evaluate_relative_path( name , strlen( name ), a000c214: e1a00006 mov r0, r6 a000c218: eb0005d3 bl a000d96c a000c21c: e28d5004 add r5, sp, #4 a000c220: e3a0c000 mov ip, #0 a000c224: e1a01000 mov r1, r0 a000c228: e1a0200c mov r2, ip a000c22c: e1a00006 mov r0, r6 a000c230: e1a03005 mov r3, r5 a000c234: e58dc000 str ip, [sp] a000c238: ebffd3ab bl a00010ec 0, &loc, false ); if ( result != 0 ) { a000c23c: e3500000 cmp r0, #0 a000c240: 0a00000a beq a000c270 if ( free_parentloc ) a000c244: e3540000 cmp r4, #0 a000c248: 0a000052 beq a000c398 rtems_filesystem_freenode( &parentloc ); a000c24c: e59d3024 ldr r3, [sp, #36] ; 0x24 a000c250: e3530000 cmp r3, #0 a000c254: 0a00004f beq a000c398 a000c258: e593301c ldr r3, [r3, #28] a000c25c: e3530000 cmp r3, #0 a000c260: 0a00004c beq a000c398 a000c264: e28d0018 add r0, sp, #24 a000c268: e12fff33 blx r3 a000c26c: ea000049 b a000c398 return -1; } if ( !loc.ops->node_type_h ) { a000c270: e59d2010 ldr r2, [sp, #16] a000c274: e5923010 ldr r3, [r2, #16] a000c278: e3530000 cmp r3, #0 a000c27c: 0a00001b beq a000c2f0 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 ) { a000c280: e1a00005 mov r0, r5 a000c284: e12fff33 blx r3 a000c288: e3500001 cmp r0, #1 a000c28c: e59d2010 ldr r2, [sp, #16] a000c290: 1a000013 bne a000c2e4 rtems_filesystem_freenode( &loc ); a000c294: e3520000 cmp r2, #0 a000c298: 0a000004 beq a000c2b0 a000c29c: e592301c ldr r3, [r2, #28] a000c2a0: e3530000 cmp r3, #0 a000c2a4: 0a000001 beq a000c2b0 a000c2a8: e1a00005 mov r0, r5 a000c2ac: e12fff33 blx r3 if ( free_parentloc ) a000c2b0: e3540000 cmp r4, #0 a000c2b4: 0a000007 beq a000c2d8 rtems_filesystem_freenode( &parentloc ); a000c2b8: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a000c2bc: e3530000 cmp r3, #0 <== NOT EXECUTED a000c2c0: 0a000004 beq a000c2d8 <== NOT EXECUTED a000c2c4: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a000c2c8: e3530000 cmp r3, #0 <== NOT EXECUTED a000c2cc: 0a000001 beq a000c2d8 <== NOT EXECUTED a000c2d0: e28d0018 add r0, sp, #24 <== NOT EXECUTED a000c2d4: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( EISDIR ); a000c2d8: eb0001b2 bl a000c9a8 <__errno> a000c2dc: e3a03015 mov r3, #21 a000c2e0: ea000013 b a000c334 } if ( !loc.ops->unlink_h ) { a000c2e4: e592300c ldr r3, [r2, #12] a000c2e8: e3530000 cmp r3, #0 a000c2ec: 1a000012 bne a000c33c rtems_filesystem_freenode( &loc ); a000c2f0: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a000c2f4: e3530000 cmp r3, #0 <== NOT EXECUTED a000c2f8: 0a000001 beq a000c304 <== NOT EXECUTED a000c2fc: e1a00005 mov r0, r5 <== NOT EXECUTED a000c300: e12fff33 blx r3 <== NOT EXECUTED if ( free_parentloc ) a000c304: e3540000 cmp r4, #0 <== NOT EXECUTED a000c308: 0a000007 beq a000c32c <== NOT EXECUTED rtems_filesystem_freenode( &parentloc ); a000c30c: e59d3024 ldr r3, [sp, #36] ; 0x24 <== NOT EXECUTED a000c310: e3530000 cmp r3, #0 <== NOT EXECUTED a000c314: 0a000004 beq a000c32c <== NOT EXECUTED a000c318: e593301c ldr r3, [r3, #28] <== NOT EXECUTED a000c31c: e3530000 cmp r3, #0 <== NOT EXECUTED a000c320: 0a000001 beq a000c32c <== NOT EXECUTED a000c324: e28d0018 add r0, sp, #24 <== NOT EXECUTED a000c328: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a000c32c: eb00019d bl a000c9a8 <__errno> <== NOT EXECUTED a000c330: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a000c334: e5803000 str r3, [r0] a000c338: ea000016 b a000c398 } result = (*loc.ops->unlink_h)( &parentloc, &loc ); a000c33c: e28d0018 add r0, sp, #24 a000c340: e1a01005 mov r1, r5 a000c344: e12fff33 blx r3 rtems_filesystem_freenode( &loc ); a000c348: 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 ); a000c34c: e1a06000 mov r6, r0 rtems_filesystem_freenode( &loc ); a000c350: e3530000 cmp r3, #0 a000c354: 0a000004 beq a000c36c a000c358: e593301c ldr r3, [r3, #28] a000c35c: e3530000 cmp r3, #0 a000c360: 0a000001 beq a000c36c a000c364: e1a00005 mov r0, r5 a000c368: e12fff33 blx r3 if ( free_parentloc ) a000c36c: e3540000 cmp r4, #0 a000c370: 0a000009 beq a000c39c rtems_filesystem_freenode( &parentloc ); a000c374: e59d3024 ldr r3, [sp, #36] ; 0x24 a000c378: e3530000 cmp r3, #0 a000c37c: 0a000006 beq a000c39c a000c380: e593301c ldr r3, [r3, #28] a000c384: e3530000 cmp r3, #0 a000c388: 0a000003 beq a000c39c a000c38c: e28d0018 add r0, sp, #24 a000c390: e12fff33 blx r3 a000c394: ea000000 b a000c39c a000c398: e3e06000 mvn r6, #0 return result; } a000c39c: e1a00006 mov r0, r6 a000c3a0: e28dd02c add sp, sp, #44 ; 0x2c a000c3a4: e8bd8070 pop {r4, r5, r6, pc} a000c3a8: a0018418 .word 0xa0018418 a00085f4 : */ int unmount( const char *path ) { a00085f4: e92d4030 push {r4, r5, lr} a00085f8: e24dd018 sub sp, sp, #24 a00085fc: 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 ) ) a0008600: eb00dde9 bl a003fdac a0008604: e28d4004 add r4, sp, #4 a0008608: e1a01000 mov r1, r0 a000860c: e3a0c001 mov ip, #1 a0008610: e1a00005 mov r0, r5 a0008614: e3a02000 mov r2, #0 a0008618: e1a03004 mov r3, r4 a000861c: e58dc000 str ip, [sp] a0008620: ebfff2a0 bl a00050a8 a0008624: e3500000 cmp r0, #0 a0008628: 1a000057 bne a000878c return -1; mt_entry = loc.mt_entry; a000862c: e59d5014 ldr r5, [sp, #20] fs_mount_loc = &mt_entry->mt_point_node; fs_root_loc = &mt_entry->mt_fs_root; a0008630: e59d2004 ldr r2, [sp, #4] a0008634: e59d3010 ldr r3, [sp, #16] a0008638: e595101c ldr r1, [r5, #28] a000863c: e1510002 cmp r1, r2 a0008640: 0a000009 beq a000866c /* * 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 ); a0008644: e3530000 cmp r3, #0 a0008648: 0a000004 beq a0008660 a000864c: e593301c ldr r3, [r3, #28] a0008650: e3530000 cmp r3, #0 a0008654: 0a000001 beq a0008660 a0008658: e1a00004 mov r0, r4 a000865c: e12fff33 blx r3 rtems_set_errno_and_return_minus_one( EACCES ); a0008660: eb00c346 bl a0039380 <__errno> a0008664: e3a0300d mov r3, #13 a0008668: ea000023 b a00086fc /* * Free the loc node and just use the nodes from the mt_entry . */ rtems_filesystem_freenode( &loc ); a000866c: e3530000 cmp r3, #0 a0008670: 0a000004 beq a0008688 a0008674: e593301c ldr r3, [r3, #28] a0008678: e3530000 cmp r3, #0 a000867c: 0a000001 beq a0008688 a0008680: e1a00004 mov r0, r4 a0008684: e12fff33 blx 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; a0008688: e5953014 ldr r3, [r5, #20] a000868c: e5933028 ldr r3, [r3, #40] ; 0x28 a0008690: e3530000 cmp r3, #0 a0008694: 0a000003 beq a00086a8 fs_root_loc = &mt_entry->mt_fs_root; a0008698: e5953028 ldr r3, [r5, #40] ; 0x28 a000869c: e593302c ldr r3, [r3, #44] ; 0x2c a00086a0: e3530000 cmp r3, #0 a00086a4: 1a000002 bne a00086b4 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 ); a00086a8: eb00c334 bl a0039380 <__errno> <== NOT EXECUTED a00086ac: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a00086b0: ea000011 b a00086fc <== 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 ) a00086b4: e59f30f0 ldr r3, [pc, #240] ; a00087ac a00086b8: e5933000 ldr r3, [r3] a00086bc: e5933014 ldr r3, [r3, #20] a00086c0: 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; a00086c4: 159f20e4 ldrne r2, [pc, #228] ; a00087b0 a00086c8: 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 ) a00086cc: 1a000005 bne a00086e8 a00086d0: ea000007 b a00086f4 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; a00086d4: e5930018 ldr r0, [r3, #24] a00086d8: e595102c ldr r1, [r5, #44] ; 0x2c a00086dc: e1500001 cmp r0, r1 a00086e0: 0a000003 beq a00086f4 * 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 ) { a00086e4: e5933000 ldr r3, [r3] a00086e8: e1530002 cmp r3, r2 a00086ec: 1afffff8 bne a00086d4 a00086f0: ea000028 b a0008798 * 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 ); a00086f4: eb00c321 bl a0039380 <__errno> a00086f8: e3a03010 mov r3, #16 a00086fc: e5803000 str r3, [r0] a0008700: ea000021 b a000878c * 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 ) a0008704: e5953014 ldr r3, [r5, #20] a0008708: e1a00005 mov r0, r5 a000870c: e1a0e00f mov lr, pc a0008710: e593f028 ldr pc, [r3, #40] ; 0x28 a0008714: e2504000 subs r4, r0, #0 a0008718: 1a00001b bne a000878c * 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){ a000871c: e5953028 ldr r3, [r5, #40] ; 0x28 a0008720: e1a00005 mov r0, r5 a0008724: e1a0e00f mov lr, pc a0008728: e593f02c ldr pc, [r3, #44] ; 0x2c a000872c: e3500000 cmp r0, #0 a0008730: 0a000007 beq a0008754 if (( fs_mount_loc->ops->mount_h )( mt_entry ) != 0 ) a0008734: e1a00005 mov r0, r5 <== NOT EXECUTED a0008738: e5953014 ldr r3, [r5, #20] <== NOT EXECUTED a000873c: e1a0e00f mov lr, pc <== NOT EXECUTED a0008740: e593f020 ldr pc, [r3, #32] <== NOT EXECUTED a0008744: e3500000 cmp r0, #0 <== NOT EXECUTED a0008748: 0a00000f beq a000878c <== NOT EXECUTED rtems_fatal_error_occurred( 0 ); a000874c: e1a00004 mov r0, r4 <== NOT EXECUTED a0008750: eb00047e bl a0009950 <== NOT EXECUTED */ RTEMS_INLINE_ROUTINE void rtems_chain_extract( rtems_chain_node *the_node ) { _Chain_Extract( the_node ); a0008754: e1a00005 mov r0, r5 a0008758: eb000543 bl a0009c6c <_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 ); a000875c: e5953014 ldr r3, [r5, #20] a0008760: e3530000 cmp r3, #0 a0008764: 0a000004 beq a000877c a0008768: e593301c ldr r3, [r3, #28] a000876c: e3530000 cmp r3, #0 a0008770: 0a000001 beq a000877c a0008774: e2850008 add r0, r5, #8 a0008778: e12fff33 blx r3 free( mt_entry ); a000877c: e1a00005 mov r0, r5 a0008780: ebfff276 bl a0005160 a0008784: e3a00000 mov r0, #0 return 0; a0008788: ea000000 b a0008790 a000878c: e3e00000 mvn r0, #0 } a0008790: e28dd018 add sp, sp, #24 a0008794: 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 ) a0008798: e1a00005 mov r0, r5 a000879c: ebfff329 bl a0005448 a00087a0: e3500001 cmp r0, #1 a00087a4: 1affffd6 bne a0008704 a00087a8: eaffffd1 b a00086f4 a00087ac: a00535c8 .word 0xa00535c8 a00087b0: a0060ed0 .word 0xa0060ed0 a002399c : int utime( const char *path, const struct utimbuf *times ) { a002399c: e92d4070 push {r4, r5, r6, lr} a00239a0: e24dd018 sub sp, sp, #24 a00239a4: e1a05001 mov r5, r1 a00239a8: 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 ) ) a00239ac: eb0070fe bl a003fdac a00239b0: e28d4004 add r4, sp, #4 a00239b4: e1a01000 mov r1, r0 a00239b8: e3a0c001 mov ip, #1 a00239bc: e1a00006 mov r0, r6 a00239c0: e3a02000 mov r2, #0 a00239c4: e1a03004 mov r3, r4 a00239c8: e58dc000 str ip, [sp] a00239cc: ebff85b5 bl a00050a8 a00239d0: e3500000 cmp r0, #0 a00239d4: 1a00000b bne a0023a08 return -1; if ( !temp_loc.ops->utime_h ){ a00239d8: e59d2010 ldr r2, [sp, #16] a00239dc: e5923030 ldr r3, [r2, #48] ; 0x30 a00239e0: e3530000 cmp r3, #0 a00239e4: 1a000009 bne a0023a10 rtems_filesystem_freenode( &temp_loc ); a00239e8: e592301c ldr r3, [r2, #28] <== NOT EXECUTED a00239ec: e3530000 cmp r3, #0 <== NOT EXECUTED a00239f0: 0a000001 beq a00239fc <== NOT EXECUTED a00239f4: e1a00004 mov r0, r4 <== NOT EXECUTED a00239f8: e12fff33 blx r3 <== NOT EXECUTED rtems_set_errno_and_return_minus_one( ENOTSUP ); a00239fc: eb00565f bl a0039380 <__errno> <== NOT EXECUTED a0023a00: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0023a04: e5803000 str r3, [r0] <== NOT EXECUTED a0023a08: e3e05000 mvn r5, #0 a0023a0c: ea00000b b a0023a40 } result = (*temp_loc.ops->utime_h)( &temp_loc, times->actime, times->modtime ); a0023a10: e8950006 ldm r5, {r1, r2} a0023a14: e1a00004 mov r0, r4 a0023a18: e12fff33 blx r3 rtems_filesystem_freenode( &temp_loc ); a0023a1c: 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 ); a0023a20: e1a05000 mov r5, r0 rtems_filesystem_freenode( &temp_loc ); a0023a24: e3530000 cmp r3, #0 a0023a28: 0a000004 beq a0023a40 a0023a2c: e593301c ldr r3, [r3, #28] a0023a30: e3530000 cmp r3, #0 a0023a34: 0a000001 beq a0023a40 a0023a38: e1a00004 mov r0, r4 a0023a3c: e12fff33 blx r3 return result; } a0023a40: e1a00005 mov r0, r5 a0023a44: e28dd018 add sp, sp, #24 a0023a48: e8bd8070 pop {r4, r5, r6, pc} a0017bbc : ) { ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0017bbc: e59f30b0 ldr r3, [pc, #176] ; a0017c74 ssize_t write( int fd, const void *buffer, size_t count ) { a0017bc0: e92d4070 push {r4, r5, r6, lr} ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0017bc4: e5933000 ldr r3, [r3] ssize_t write( int fd, const void *buffer, size_t count ) { a0017bc8: e1a05001 mov r5, r1 ssize_t rc; rtems_libio_t *iop; rtems_libio_check_fd( fd ); a0017bcc: e1500003 cmp r0, r3 a0017bd0: 2a000005 bcs a0017bec iop = rtems_libio_iop( fd ); a0017bd4: e59f309c ldr r3, [pc, #156] ; a0017c78 a0017bd8: e5934000 ldr r4, [r3] a0017bdc: e0844300 add r4, r4, r0, lsl #6 rtems_libio_check_is_open( iop ); a0017be0: e5943014 ldr r3, [r4, #20] a0017be4: e3130c01 tst r3, #256 ; 0x100 a0017be8: 1a000002 bne a0017bf8 a0017bec: ebffd36d bl a000c9a8 <__errno> <== NOT EXECUTED a0017bf0: e3a03009 mov r3, #9 <== NOT EXECUTED a0017bf4: ea000010 b a0017c3c <== NOT EXECUTED rtems_libio_check_buffer( buffer ); a0017bf8: e3510000 cmp r1, #0 a0017bfc: 0a000005 beq a0017c18 rtems_libio_check_count( count ); a0017c00: e3520000 cmp r2, #0 a0017c04: 1a000001 bne a0017c10 a0017c08: e1a00002 mov r0, r2 a0017c0c: e8bd8070 pop {r4, r5, r6, pc} rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a0017c10: e3130004 tst r3, #4 a0017c14: 1a000002 bne a0017c24 a0017c18: ebffd362 bl a000c9a8 <__errno> <== NOT EXECUTED a0017c1c: e3a03016 mov r3, #22 <== NOT EXECUTED a0017c20: ea000005 b a0017c3c <== NOT EXECUTED /* * Now process the write() request. */ if ( !iop->handlers->write_h ) a0017c24: e594303c ldr r3, [r4, #60] ; 0x3c a0017c28: e593300c ldr r3, [r3, #12] a0017c2c: e3530000 cmp r3, #0 a0017c30: 1a000004 bne a0017c48 rtems_set_errno_and_return_minus_one( ENOTSUP ); a0017c34: ebffd35b bl a000c9a8 <__errno> <== NOT EXECUTED a0017c38: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0017c3c: e5803000 str r3, [r0] <== NOT EXECUTED a0017c40: e3e00000 mvn r0, #0 <== NOT EXECUTED a0017c44: e8bd8070 pop {r4, r5, r6, pc} <== NOT EXECUTED rc = (*iop->handlers->write_h)( iop, buffer, count ); a0017c48: e1a00004 mov r0, r4 a0017c4c: e12fff33 blx r3 if ( rc > 0 ) a0017c50: e3500000 cmp r0, #0 a0017c54: da000005 ble a0017c70 iop->offset += rc; a0017c58: e284600c add r6, r4, #12 a0017c5c: e8960060 ldm r6, {r5, r6} a0017c60: e0952000 adds r2, r5, r0 a0017c64: e0a63fc0 adc r3, r6, r0, asr #31 a0017c68: e584200c str r2, [r4, #12] a0017c6c: e5843010 str r3, [r4, #16] return rc; } a0017c70: e8bd8070 pop {r4, r5, r6, pc} a0017c74: a0018240 .word 0xa0018240 a0017c78: a0019b4c .word 0xa0019b4c a00053a0 : int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); a00053a0: e59f3164 ldr r3, [pc, #356] ; a000550c ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { a00053a4: 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 ); a00053a8: e5933000 ldr r3, [r3] ssize_t writev( int fd, const struct iovec *iov, int iovcnt ) { a00053ac: e1a08002 mov r8, r2 int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd ); a00053b0: e1500003 cmp r0, r3 a00053b4: 2a000005 bcs a00053d0 iop = rtems_libio_iop( fd ); a00053b8: e59f3150 ldr r3, [pc, #336] ; a0005510 a00053bc: e5936000 ldr r6, [r3] a00053c0: e0866300 add r6, r6, r0, lsl #6 rtems_libio_check_is_open( iop ); a00053c4: e5963014 ldr r3, [r6, #20] a00053c8: e3130c01 tst r3, #256 ; 0x100 a00053cc: 1a000002 bne a00053dc a00053d0: eb0026a0 bl a000ee58 <__errno> a00053d4: e3a03009 mov r3, #9 a00053d8: ea000026 b a0005478 rtems_libio_check_permissions( iop, LIBIO_FLAGS_WRITE ); a00053dc: e3130004 tst r3, #4 a00053e0: 0a000022 beq a0005470 /* * Argument validation on IO vector */ if ( !iov ) a00053e4: e3510000 cmp r1, #0 a00053e8: 0a000020 beq a0005470 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt <= 0 ) a00053ec: e3520000 cmp r2, #0 a00053f0: da00001e ble a0005470 rtems_set_errno_and_return_minus_one( EINVAL ); if ( iovcnt > IOV_MAX ) a00053f4: e3520b01 cmp r2, #1024 ; 0x400 a00053f8: ca00001c bgt a0005470 rtems_set_errno_and_return_minus_one( EINVAL ); if ( !iop->handlers->write_h ) a00053fc: e596303c ldr r3, [r6, #60] ; 0x3c a0005400: e593300c ldr r3, [r3, #12] a0005404: e3530000 cmp r3, #0 a0005408: 1a000002 bne a0005418 rtems_set_errno_and_return_minus_one( ENOTSUP ); a000540c: eb002691 bl a000ee58 <__errno> <== NOT EXECUTED a0005410: e3a03086 mov r3, #134 ; 0x86 <== NOT EXECUTED a0005414: ea000017 b a0005478 <== NOT EXECUTED all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) a0005418: e59fc0f4 ldr ip, [pc, #244] ; a0005514 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 ); a000541c: e3a03000 mov r3, #0 a0005420: e1a05001 mov r5, r1 a0005424: e1a02001 mov r2, r1 a0005428: e3a07001 mov r7, #1 a000542c: 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 ) a0005430: 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++ ) { a0005434: e2833001 add r3, r3, #1 if ( !iov[v].iov_base ) a0005438: e3510000 cmp r1, #0 a000543c: 0a00000b beq a0005470 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 ) a0005440: 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++ ) { a0005444: e2822008 add r2, r2, #8 if ( iov[v].iov_len ) all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; a0005448: e0841000 add r1, r4, r0 if ( total < old || total > SSIZE_MAX ) a000544c: e1510004 cmp r1, r4 a0005450: a3a04000 movge r4, #0 a0005454: b3a04001 movlt r4, #1 a0005458: e151000c cmp r1, ip a000545c: 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 ) a0005460: e3500000 cmp r0, #0 a0005464: 13a07000 movne r7, #0 all_zeros = false; /* check for wrap */ old = total; total += iov[v].iov_len; if ( total < old || total > SSIZE_MAX ) a0005468: e3540000 cmp r4, #0 a000546c: 0a000003 beq a0005480 rtems_set_errno_and_return_minus_one( EINVAL ); a0005470: eb002678 bl a000ee58 <__errno> a0005474: e3a03016 mov r3, #22 a0005478: e5803000 str r3, [r0] a000547c: ea000010 b a00054c4 * 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++ ) { a0005480: e1530008 cmp r3, r8 a0005484: b1a04001 movlt r4, r1 a0005488: baffffe8 blt a0005430 } /* * A writev with all zeros is supposed to have no effect per OpenGroup. */ if ( all_zeros == true ) { a000548c: e3570000 cmp r7, #0 <== NOT EXECUTED a0005490: 1a00001b bne a0005504 <== NOT EXECUTED a0005494: 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 ) a0005498: e5952004 ldr r2, [r5, #4] <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { a000549c: e2877001 add r7, r7, #1 <== NOT EXECUTED /* all zero lengths has no effect */ if ( iov[v].iov_len == 0 ) a00054a0: e3520000 cmp r2, #0 <== NOT EXECUTED a00054a4: 0a000013 beq a00054f8 <== NOT EXECUTED continue; bytes = (*iop->handlers->write_h)( iop, iov[v].iov_base, iov[v].iov_len ); a00054a8: e5951000 ldr r1, [r5] <== NOT EXECUTED a00054ac: e596303c ldr r3, [r6, #60] ; 0x3c <== NOT EXECUTED a00054b0: e1a00006 mov r0, r6 <== NOT EXECUTED a00054b4: e1a0e00f mov lr, pc <== NOT EXECUTED a00054b8: e593f00c ldr pc, [r3, #12] <== NOT EXECUTED if ( bytes < 0 ) a00054bc: e3500000 cmp r0, #0 <== NOT EXECUTED a00054c0: aa000001 bge a00054cc <== NOT EXECUTED a00054c4: e3e04000 mvn r4, #0 a00054c8: ea00000d b a0005504 return -1; if ( bytes > 0 ) { a00054cc: 0a000006 beq a00054ec <== NOT EXECUTED iop->offset += bytes; a00054d0: e286c00c add ip, r6, #12 <== NOT EXECUTED a00054d4: e89c1800 ldm ip, {fp, ip} <== NOT EXECUTED a00054d8: e09b2000 adds r2, fp, r0 <== NOT EXECUTED a00054dc: e0ac3fc0 adc r3, ip, r0, asr #31 <== NOT EXECUTED a00054e0: e586200c str r2, [r6, #12] <== NOT EXECUTED a00054e4: e5863010 str r3, [r6, #16] <== NOT EXECUTED total += bytes; a00054e8: e0844000 add r4, r4, r0 <== NOT EXECUTED } if (bytes != iov[ v ].iov_len) a00054ec: e5953004 ldr r3, [r5, #4] <== NOT EXECUTED a00054f0: e1500003 cmp r0, r3 <== NOT EXECUTED a00054f4: 1a000002 bne a0005504 <== NOT EXECUTED } /* * Now process the writev(). */ for ( total=0, v=0 ; v < iovcnt ; v++ ) { a00054f8: e1570008 cmp r7, r8 <== NOT EXECUTED a00054fc: e2855008 add r5, r5, #8 <== NOT EXECUTED a0005500: baffffe4 blt a0005498 <== NOT EXECUTED if (bytes != iov[ v ].iov_len) break; } return total; } a0005504: e1a00004 mov r0, r4 a0005508: e8bd89f0 pop {r4, r5, r6, r7, r8, fp, pc} a000550c: a001bf50 .word 0xa001bf50 a0005510: a001eca0 .word 0xa001eca0 a0005514: 00007fff .word 0x00007fff